]> git.saurik.com Git - wxWidgets.git/blame - configure
attempts to fix vsnprintf() detection under HP-UX
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
2b5f62a0
VZ
55
56
57
a0b9e27f
MB
58
59
60
61
62# Configure paths for GTK+
63# Owen Taylor 1997-2001
64
65
66
2b5f62a0
VZ
67# Configure paths for GTK+
68# Owen Taylor 97-11-3
a0b9e27f
MB
69
70
71
72
73
a0b9e27f
MB
74
75
76
77# Guess values for system-dependent variables and create Makefiles.
78# Generated automatically using autoconf version 2.13
79# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80#
81# This configure script is free software; the Free Software Foundation
82# gives unlimited permission to copy, distribute and modify it.
83
84# Defaults:
85ac_help=
86ac_default_prefix=/usr/local
87# Any additions from configure.in:
88ac_help="$ac_help
89 --enable-gui use GUI classes"
90ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92ac_help="$ac_help
93 --with-gtk use GTK+"
94ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96ac_help="$ac_help
97 --with-mac use Mac OS X"
98ac_help="$ac_help
89e6bf6d 99 --with-wine use Wine"
a0b9e27f
MB
100ac_help="$ac_help
101 --with-msw use MS-Windows"
102ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106ac_help="$ac_help
107 --with-microwin use MicroWindows"
108ac_help="$ac_help
109 --with-x11 use X11"
110ac_help="$ac_help
111 --enable-nanox use NanoX"
112ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130ac_help="$ac_help
131 --enable-shared create shared library code"
132ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134ac_help="$ac_help
135 --enable-optimise create optimised code"
136ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138ac_help="$ac_help
b2fee376 139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
140ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150ac_help="$ac_help
151 --enable-profile create code with profiling information"
152ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162ac_help="$ac_help
65d8ef1e
VS
163 --enable-compat22 enable wxWindows 2.2 compatibility"
164ac_help="$ac_help
165 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
166ac_help="$ac_help
167 --enable-rpath=DIR output the rpath flag from wx-config"
168ac_help="$ac_help
169 --enable-intl use internationalization system"
170ac_help="$ac_help
171 --enable-config use wxConfig (and derived) classes"
172ac_help="$ac_help
173 --enable-protocols use wxProtocol and derived classes"
174ac_help="$ac_help
175 --enable-ftp use wxFTP (requires wxProtocol"
176ac_help="$ac_help
177 --enable-http use wxHTTP (requires wxProtocol"
178ac_help="$ac_help
179 --enable-fileproto use wxFileProto class (requires wxProtocol"
180ac_help="$ac_help
181 --enable-sockets use socket/network classes"
3bce6687
JS
182ac_help="$ac_help
183 --enable-ole use OLE classes"
184ac_help="$ac_help
185 --enable-dataobj use data object classes"
a0b9e27f
MB
186ac_help="$ac_help
187 --enable-ipc use interprocess communication (wxSocket etc.)"
188ac_help="$ac_help
189 --enable-cmdline use wxCmdLineParser class"
190ac_help="$ac_help
191 --enable-datetime use wxDateTime class"
192ac_help="$ac_help
193 --enable-timedate use obsolete wxDate/wxTime classes"
194ac_help="$ac_help
195 --enable-stopwatch use wxStopWatch class"
196ac_help="$ac_help
197 --enable-dialupman use dialup network classes"
198ac_help="$ac_help
199 --enable-apple_ieee use the Apple IEEE codec"
200ac_help="$ac_help
201 --enable-timer use wxTimer class"
202ac_help="$ac_help
203 --enable-wave use wxWave class"
204ac_help="$ac_help
205 --enable-fraction use wxFraction class"
206ac_help="$ac_help
207 --enable-dynlib use wxLibrary class for DLL loading"
208ac_help="$ac_help
209 --enable-dynamicloader use (new) wxDynamicLibrary class"
210ac_help="$ac_help
211 --enable-longlong use wxLongLong class"
212ac_help="$ac_help
213 --enable-geometry use geometry class"
214ac_help="$ac_help
215 --enable-log use logging system"
216ac_help="$ac_help
217 --enable-streams use wxStream etc classes"
218ac_help="$ac_help
219 --enable-file use wxFile classes"
220ac_help="$ac_help
221 --enable-ffile use wxFFile classes"
222ac_help="$ac_help
223 --enable-textbuf use wxTextBuffer class"
224ac_help="$ac_help
225 --enable-textfile use wxTextFile class"
226ac_help="$ac_help
227 --enable-fontmap use font encodings conversion classes"
228ac_help="$ac_help
229 --enable-unicode compile wxString with Unicode support"
230ac_help="$ac_help
231 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
232ac_help="$ac_help
233 --enable-wxprintfv use wxWindows implementation of vprintf()"
234ac_help="$ac_help
235 --enable-std_iostreams use standard C++ stream classes"
236ac_help="$ac_help
237 --enable-filesystem use virtual file systems classes"
238ac_help="$ac_help
239 --enable-fs_inet use virtual HTTP/FTP filesystems"
240ac_help="$ac_help
241 --enable-fs_zip use virtual ZIP filesystems"
242ac_help="$ac_help
243 --enable-zipstream use wxZipInputStream"
244ac_help="$ac_help
245 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
246ac_help="$ac_help
247 --enable-snglinst use wxSingleInstanceChecker class"
248ac_help="$ac_help
249 --enable-mimetype use wxMimeTypesManager"
250ac_help="$ac_help
251 --enable-sysoptions use wxSystemOptions"
252ac_help="$ac_help
253 --enable-url use wxURL class"
254ac_help="$ac_help
255 --enable-protocol use wxProtocol class"
256ac_help="$ac_help
257 --enable-protocol-http HTTP support in wxProtocol"
258ac_help="$ac_help
259 --enable-protocol-ftp FTP support in wxProtocol"
260ac_help="$ac_help
261 --enable-protocol-file FILE support in wxProtocol"
262ac_help="$ac_help
263 --enable-threads use threads"
264ac_help="$ac_help
265 --enable-docview use document view architecture"
266ac_help="$ac_help
267 --enable-help use help subsystem"
268ac_help="$ac_help
269 --enable-mshtmlhelp use MS HTML Help (win32)"
270ac_help="$ac_help
271 --enable-html use wxHTML sub-library"
272ac_help="$ac_help
273 --enable-htmlhelp use wxHTML-based help"
274ac_help="$ac_help
275 --enable-constraints use layout-constraints system"
276ac_help="$ac_help
277 --enable-printarch use printing architecture"
278ac_help="$ac_help
279 --enable-mdi use multiple document interface architecture"
280ac_help="$ac_help
281 --enable-loggui use standard GUI logger"
282ac_help="$ac_help
283 --enable-logwin use wxLogWindow"
284ac_help="$ac_help
285 --enable-logdialog use wxLogDialog"
286ac_help="$ac_help
287 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
288ac_help="$ac_help
289 --enable-prologio use Prolog IO library"
290ac_help="$ac_help
291 --enable-resources use wxWindows resources"
292ac_help="$ac_help
293 --enable-xresources use X resources for save (default for gtk+)"
294ac_help="$ac_help
295 --enable-clipboard use wxClipboard classes"
296ac_help="$ac_help
297 --enable-dnd use Drag'n'Drop classes"
298ac_help="$ac_help
299 --enable-metafile use win32 metafiles"
300ac_help="$ac_help
301 --enable-treelayout use wxTreeLayout classes"
302ac_help="$ac_help
303 --enable-controls use all usual controls"
304ac_help="$ac_help
305 --enable-accel use accelerators"
306ac_help="$ac_help
307 --enable-button use wxButton class"
308ac_help="$ac_help
309 --enable-bmpbutton use wxBitmapButton class"
310ac_help="$ac_help
311 --enable-calendar use wxCalendarCtrl class"
312ac_help="$ac_help
313 --enable-caret use wxCaret class"
314ac_help="$ac_help
315 --enable-checkbox use wxCheckBox class"
316ac_help="$ac_help
317 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
318ac_help="$ac_help
319 --enable-choice use wxChoice class"
320ac_help="$ac_help
321 --enable-combobox use wxComboBox classes"
322ac_help="$ac_help
323 --enable-gauge use wxGauge class"
324ac_help="$ac_help
325 --enable-grid use wxGrid class"
326ac_help="$ac_help
327 --enable-newgrid use new wxGrid class"
328ac_help="$ac_help
329 --enable-imaglist use wxImageList class"
330ac_help="$ac_help
331 --enable-listbox use wxListBox class"
332ac_help="$ac_help
333 --enable-listctrl use wxListCtrl class"
334ac_help="$ac_help
335 --enable-notebook use wxNotebook class"
336ac_help="$ac_help
337 --enable-propsheet use wxPropertySheet class"
338ac_help="$ac_help
339 --enable-radiobox use wxRadioBox class"
340ac_help="$ac_help
341 --enable-radiobtn use wxRadioButton class"
342ac_help="$ac_help
343 --enable-sash use wxSashWindow class"
344ac_help="$ac_help
345 --enable-scrollbar use wxScrollBar class and scrollable windows"
346ac_help="$ac_help
347 --enable-slider use wxSlider class"
348ac_help="$ac_help
349 --enable-spinbtn use wxSpinButton class"
350ac_help="$ac_help
351 --enable-spinctrl use wxSpinCtrl class"
352ac_help="$ac_help
353 --enable-splitter use wxSplitterWindow class"
354ac_help="$ac_help
355 --enable-statbmp use wxStaticBitmap class"
356ac_help="$ac_help
357 --enable-statbox use wxStaticBox class"
358ac_help="$ac_help
359 --enable-statline use wxStaticLine class"
360ac_help="$ac_help
361 --enable-stattext use wxStaticText class"
362ac_help="$ac_help
363 --enable-statusbar use wxStatusBar class"
364ac_help="$ac_help
365 --enable-tabdialog use wxTabControl class"
366ac_help="$ac_help
367 --enable-textctrl use wxTextCtrl class"
368ac_help="$ac_help
369 --enable-togglebtn use wxToggleButton class"
370ac_help="$ac_help
371 --enable-toolbar use wxToolBar class"
372ac_help="$ac_help
373 --enable-tbarnative use native wxToolBar class"
374ac_help="$ac_help
375 --enable-tbarsmpl use wxToolBarSimple class"
376ac_help="$ac_help
377 --enable-treectrl use wxTreeCtrl class"
378ac_help="$ac_help
379 --enable-tipwindow use wxTipWindow class"
380ac_help="$ac_help
381 --enable-popupwin use wxPopUpWindow class"
382ac_help="$ac_help
383 --enable-commondlg use all common dialogs"
384ac_help="$ac_help
385 --enable-choicedlg use wxChoiceDialog"
386ac_help="$ac_help
387 --enable-coldlg use wxColourDialog"
388ac_help="$ac_help
389 --enable-filedlg use wxFileDialog"
390ac_help="$ac_help
391 --enable-finddlg use wxFindReplaceDialog"
392ac_help="$ac_help
393 --enable-fontdlg use wxFontDialog"
394ac_help="$ac_help
395 --enable-dirdlg use wxDirDialog"
396ac_help="$ac_help
397 --enable-msgdlg use wxMessageDialog"
398ac_help="$ac_help
399 --enable-numberdlg use wxNumberEntryDialog"
400ac_help="$ac_help
401 --enable-splash use wxSplashScreen"
402ac_help="$ac_help
403 --enable-textdlg use wxTextDialog"
404ac_help="$ac_help
405 --enable-tipdlg use startup tips"
406ac_help="$ac_help
407 --enable-progressdlg use wxProgressDialog"
408ac_help="$ac_help
409 --enable-wizarddlg use wxWizard"
410ac_help="$ac_help
411 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
412ac_help="$ac_help
413 --enable-miniframe use wxMiniFrame class"
414ac_help="$ac_help
415 --enable-tooltips use wxToolTip class"
416ac_help="$ac_help
417 --enable-splines use spline drawing code"
418ac_help="$ac_help
419 --enable-validators use wxValidator and derived classes"
420ac_help="$ac_help
421 --enable-busyinfo use wxBusyInfo"
422ac_help="$ac_help
423 --enable-joystick use wxJoystick (Linux only)"
424ac_help="$ac_help
425 --enable-metafiles use wxMetaFile (Windows only)"
426ac_help="$ac_help
427 --enable-dragimage use wxDragImage"
428ac_help="$ac_help
429 --enable-palette use wxPalette class"
430ac_help="$ac_help
431 --enable-image use wxImage class"
432ac_help="$ac_help
433 --enable-gif use gif images (GIF file format)"
434ac_help="$ac_help
435 --enable-pcx use pcx images (PCX file format)"
436ac_help="$ac_help
437 --enable-iff use iff images (IFF file format)"
438ac_help="$ac_help
439 --enable-pnm use pnm images (PNM file format)"
440ac_help="$ac_help
441 --enable-xpm use xpm images (XPM file format)"
442ac_help="$ac_help
443 --enable-icocur use Windows ICO and CUR formats"
444ac_help="$ac_help
445 --disable-largefile omit support for large files"
446ac_help="$ac_help
447 --disable-gtktest do not try to compile and run a test GTK+ program"
448ac_help="$ac_help
449 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
450ac_help="$ac_help
451 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
452ac_help="$ac_help
453 --disable-gtktest Do not try to compile and run a test GTK program"
454ac_help="$ac_help
455 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
456ac_help="$ac_help
457 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
458ac_help="$ac_help
459 --disable-gtktest Do not try to compile and run a test GTK program"
460ac_help="$ac_help
461 --with-x use the X Window System"
462ac_help="$ac_help
463 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
464
465# Initialize some variables set by options.
466# The variables have the same names as the options, with
467# dashes changed to underlines.
a0b9e27f
MB
468build=NONE
469cache_file=./config.cache
10f2d63a 470exec_prefix=NONE
a0b9e27f 471host=NONE
10f2d63a 472no_create=
a0b9e27f 473nonopt=NONE
10f2d63a
VZ
474no_recursion=
475prefix=NONE
476program_prefix=NONE
477program_suffix=NONE
478program_transform_name=s,x,x,
479silent=
480site=
481srcdir=
a0b9e27f 482target=NONE
10f2d63a
VZ
483verbose=
484x_includes=NONE
485x_libraries=NONE
486bindir='${exec_prefix}/bin'
487sbindir='${exec_prefix}/sbin'
488libexecdir='${exec_prefix}/libexec'
489datadir='${prefix}/share'
490sysconfdir='${prefix}/etc'
491sharedstatedir='${prefix}/com'
492localstatedir='${prefix}/var'
493libdir='${exec_prefix}/lib'
494includedir='${prefix}/include'
495oldincludedir='/usr/include'
496infodir='${prefix}/info'
497mandir='${prefix}/man'
498
a0b9e27f
MB
499# Initialize some other variables.
500subdirs=
501MFLAGS= MAKEFLAGS=
502SHELL=${CONFIG_SHELL-/bin/sh}
503# Maximum number of lines to put in a shell here document.
504ac_max_here_lines=12
505
10f2d63a
VZ
506ac_prev=
507for ac_option
508do
a0b9e27f 509
10f2d63a
VZ
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
a0b9e27f
MB
517 case "$ac_option" in
518 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519 *) ac_optarg= ;;
520 esac
10f2d63a
VZ
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
a0b9e27f 524 case "$ac_option" in
10f2d63a
VZ
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 529 bindir="$ac_optarg" ;;
10f2d63a
VZ
530
531 -build | --build | --buil | --bui | --bu)
a0b9e27f 532 ac_prev=build ;;
10f2d63a 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 534 build="$ac_optarg" ;;
10f2d63a
VZ
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 541 cache_file="$ac_optarg" ;;
10f2d63a
VZ
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
a0b9e27f 547 datadir="$ac_optarg" ;;
10f2d63a
VZ
548
549 -disable-* | --disable-*)
a0b9e27f 550 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 551 # Reject names that are not valid shell variable names.
a0b9e27f
MB
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
557
558 -enable-* | --enable-*)
a0b9e27f 559 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 560 # Reject names that are not valid shell variable names.
a0b9e27f
MB
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563 fi
564 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565 case "$ac_option" in
566 *=*) ;;
10f2d63a
VZ
567 *) ac_optarg=yes ;;
568 esac
a0b9e27f 569 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
a0b9e27f 578 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
a0b9e27f
MB
584 -help | --help | --hel | --he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
587 cat << EOF
588Usage: configure [options] [host]
589Options: [defaults in brackets after descriptions]
590Configuration:
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
598 [$ac_default_prefix]
599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
600 [same as prefix]
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
605 [PREFIX/share]
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
608 [PREFIX/com]
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
620EOF
621 cat << EOF
622Host type:
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
633EOF
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
636 fi
637 exit 0 ;;
10f2d63a
VZ
638
639 -host | --host | --hos | --ho)
a0b9e27f 640 ac_prev=host ;;
10f2d63a 641 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 642 host="$ac_optarg" ;;
10f2d63a
VZ
643
644 -includedir | --includedir | --includedi | --included | --include \
645 | --includ | --inclu | --incl | --inc)
646 ac_prev=includedir ;;
647 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 649 includedir="$ac_optarg" ;;
10f2d63a
VZ
650
651 -infodir | --infodir | --infodi | --infod | --info | --inf)
652 ac_prev=infodir ;;
653 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 654 infodir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -libdir | --libdir | --libdi | --libd)
657 ac_prev=libdir ;;
658 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 659 libdir="$ac_optarg" ;;
10f2d63a
VZ
660
661 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662 | --libexe | --libex | --libe)
663 ac_prev=libexecdir ;;
664 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 666 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
667
668 -localstatedir | --localstatedir | --localstatedi | --localstated \
669 | --localstate | --localstat | --localsta | --localst \
670 | --locals | --local | --loca | --loc | --lo)
671 ac_prev=localstatedir ;;
672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 675 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
676
677 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678 ac_prev=mandir ;;
679 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 680 mandir="$ac_optarg" ;;
10f2d63a
VZ
681
682 -nfp | --nfp | --nf)
683 # Obsolete; use --without-fp.
684 with_fp=no ;;
685
686 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 687 | --no-cr | --no-c)
10f2d63a
VZ
688 no_create=yes ;;
689
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692 no_recursion=yes ;;
693
694 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696 | --oldin | --oldi | --old | --ol | --o)
697 ac_prev=oldincludedir ;;
698 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 701 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
702
703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704 ac_prev=prefix ;;
705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 706 prefix="$ac_optarg" ;;
10f2d63a
VZ
707
708 -program-prefix | --program-prefix | --program-prefi | --program-pref \
709 | --program-pre | --program-pr | --program-p)
710 ac_prev=program_prefix ;;
711 -program-prefix=* | --program-prefix=* | --program-prefi=* \
712 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 713 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
714
715 -program-suffix | --program-suffix | --program-suffi | --program-suff \
716 | --program-suf | --program-su | --program-s)
717 ac_prev=program_suffix ;;
718 -program-suffix=* | --program-suffix=* | --program-suffi=* \
719 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 720 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
721
722 -program-transform-name | --program-transform-name \
723 | --program-transform-nam | --program-transform-na \
724 | --program-transform-n | --program-transform- \
725 | --program-transform | --program-transfor \
726 | --program-transfo | --program-transf \
727 | --program-trans | --program-tran \
728 | --progr-tra | --program-tr | --program-t)
729 ac_prev=program_transform_name ;;
730 -program-transform-name=* | --program-transform-name=* \
731 | --program-transform-nam=* | --program-transform-na=* \
732 | --program-transform-n=* | --program-transform-=* \
733 | --program-transform=* | --program-transfor=* \
734 | --program-transfo=* | --program-transf=* \
735 | --program-trans=* | --program-tran=* \
736 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 737 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
738
739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740 | -silent | --silent | --silen | --sile | --sil)
741 silent=yes ;;
742
743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744 ac_prev=sbindir ;;
745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746 | --sbi=* | --sb=*)
a0b9e27f 747 sbindir="$ac_optarg" ;;
10f2d63a
VZ
748
749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751 | --sharedst | --shareds | --shared | --share | --shar \
752 | --sha | --sh)
753 ac_prev=sharedstatedir ;;
754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757 | --sha=* | --sh=*)
a0b9e27f 758 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
759
760 -site | --site | --sit)
761 ac_prev=site ;;
762 -site=* | --site=* | --sit=*)
a0b9e27f 763 site="$ac_optarg" ;;
10f2d63a
VZ
764
765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766 ac_prev=srcdir ;;
767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 768 srcdir="$ac_optarg" ;;
10f2d63a
VZ
769
770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771 | --syscon | --sysco | --sysc | --sys | --sy)
772 ac_prev=sysconfdir ;;
773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 775 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
776
777 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 778 ac_prev=target ;;
10f2d63a 779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 780 target="$ac_optarg" ;;
10f2d63a
VZ
781
782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
783 verbose=yes ;;
784
a0b9e27f
MB
785 -version | --version | --versio | --versi | --vers)
786 echo "configure generated by autoconf version 2.13"
787 exit 0 ;;
10f2d63a
VZ
788
789 -with-* | --with-*)
a0b9e27f 790 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 791 # Reject names that are not valid shell variable names.
a0b9e27f
MB
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 fi
10f2d63a 795 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
796 case "$ac_option" in
797 *=*) ;;
10f2d63a
VZ
798 *) ac_optarg=yes ;;
799 esac
a0b9e27f 800 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
801
802 -without-* | --without-*)
a0b9e27f 803 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 804 # Reject names that are not valid shell variable names.
a0b9e27f
MB
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807 fi
808 ac_package=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
810
811 --x)
812 # Obsolete; use --with-x.
813 with_x=yes ;;
814
815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816 | --x-incl | --x-inc | --x-in | --x-i)
817 ac_prev=x_includes ;;
818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 820 x_includes="$ac_optarg" ;;
10f2d63a
VZ
821
822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824 ac_prev=x_libraries ;;
825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 827 x_libraries="$ac_optarg" ;;
10f2d63a 828
a0b9e27f 829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
830 ;;
831
832 *)
a0b9e27f
MB
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
835 fi
836 if test "x$nonopt" != xNONE; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838 fi
839 nonopt="$ac_option"
10f2d63a
VZ
840 ;;
841
842 esac
843done
844
845if test -n "$ac_prev"; then
a0b9e27f 846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 847fi
8284b0c5 848
a0b9e27f
MB
849trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851# File descriptor usage:
852# 0 standard input
853# 1 file creation
854# 2 errors and warnings
855# 3 some systems may open it to /dev/tty
856# 4 used on the Kubota Titan
857# 6 checking for... messages and results
858# 5 compiler messages saved in config.log
859if test "$silent" = yes; then
860 exec 6>/dev/null
861else
862 exec 6>&1
863fi
864exec 5>./config.log
865
866echo "\
867This file contains any messages produced by compilers while
868running configure, to aid debugging if configure makes a mistake.
869" 1>&5
8284b0c5 870
a0b9e27f
MB
871# Strip out --no-create and --no-recursion so they do not pile up.
872# Also quote any args containing shell metacharacters.
873ac_configure_args=
874for ac_arg
10f2d63a 875do
a0b9e27f
MB
876 case "$ac_arg" in
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c) ;;
879 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
884 esac
885done
886
a0b9e27f
MB
887# NLS nuisances.
888# Only set these to C if already set. These must not be set unconditionally
889# because not all systems understand e.g. LANG=C (notably SCO).
890# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891# Non-C LC_CTYPE values break the ctype check.
892if test "${LANG+set}" = set; then LANG=C; export LANG; fi
893if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 896
a0b9e27f
MB
897# confdefs.h avoids OS command line length limits that DEFS can exceed.
898rm -rf conftest* confdefs.h
899# AIX cpp loses on an empty file, so make sure it contains at least a newline.
900echo > confdefs.h
10f2d63a 901
a0b9e27f
MB
902# A filename unique to this package, relative to the directory that
903# configure is in, which we can look for to find out if srcdir is correct.
904ac_unique_file=wx-config.in
10f2d63a
VZ
905
906# Find the source files, if location was not specified.
907if test -z "$srcdir"; then
908 ac_srcdir_defaulted=yes
909 # Try the directory containing this script, then its parent.
a0b9e27f
MB
910 ac_prog=$0
911 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
913 srcdir=$ac_confdir
914 if test ! -r $srcdir/$ac_unique_file; then
915 srcdir=..
916 fi
917else
918 ac_srcdir_defaulted=no
919fi
920if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 923 else
a0b9e27f 924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
925 fi
926fi
a0b9e27f 927srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 928
10f2d63a
VZ
929# Prefer explicitly selected file to automatically selected ones.
930if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933 else
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935 fi
936fi
937for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
a0b9e27f 939 echo "loading site script $ac_site_file"
10f2d63a
VZ
940 . "$ac_site_file"
941 fi
942done
943
944if test -r "$cache_file"; then
a0b9e27f
MB
945 echo "loading cache $cache_file"
946 . $cache_file
10f2d63a 947else
a0b9e27f
MB
948 echo "creating cache $cache_file"
949 > $cache_file
10f2d63a
VZ
950fi
951
952ac_ext=c
a0b9e27f 953# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 954ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
955ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957cross_compiling=$ac_cv_prog_cc_cross
958
959ac_exeext=
960ac_objext=o
961if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964 ac_n= ac_c='
965' ac_t=' '
966 else
967 ac_n=-n ac_c= ac_t=
968 fi
969else
970 ac_n= ac_c='\c' ac_t=
971fi
8284b0c5
MB
972
973
10f2d63a 974
7c66a493
VZ
975ac_aux_dir=
976for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977 if test -f $ac_dir/install-sh; then
978 ac_aux_dir=$ac_dir
979 ac_install_sh="$ac_aux_dir/install-sh -c"
980 break
981 elif test -f $ac_dir/install.sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install.sh -c"
984 break
247f5006 985 fi
7c66a493
VZ
986done
987if test -z "$ac_aux_dir"; then
a0b9e27f 988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 989fi
a0b9e27f
MB
990ac_config_guess=$ac_aux_dir/config.guess
991ac_config_sub=$ac_aux_dir/config.sub
992ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 993
8284b0c5 994
a0b9e27f
MB
995# Do some error checking and defaulting for the host and target type.
996# The inputs are:
997# configure --host=HOST --target=TARGET --build=BUILD NONOPT
998#
999# The rules are:
1000# 1. You are not allowed to specify --host, --target, and nonopt at the
1001# same time.
1002# 2. Host defaults to nonopt.
1003# 3. If nonopt is not specified, then host defaults to the current host,
1004# as determined by config.guess.
1005# 4. Target and build default to nonopt.
1006# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1007
1008# The aliases save the names the user supplied, while $host etc.
1009# will get canonicalized.
a0b9e27f
MB
1010case $host---$target---$nonopt in
1011NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013esac
1014
1015
1016# Make sure we can run config.sub.
1017if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1018else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019fi
1020
1021echo $ac_n "checking host system type""... $ac_c" 1>&6
65d8ef1e 1022echo "configure:1023: checking host system type" >&5
a0b9e27f
MB
1023
1024host_alias=$host
1025case "$host_alias" in
1026NONE)
1027 case $nonopt in
1028 NONE)
1029 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031 fi ;;
1032 *) host_alias=$nonopt ;;
1033 esac ;;
1034esac
1035
1036host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040echo "$ac_t""$host" 1>&6
1041
1042echo $ac_n "checking target system type""... $ac_c" 1>&6
65d8ef1e 1043echo "configure:1044: checking target system type" >&5
a0b9e27f
MB
1044
1045target_alias=$target
1046case "$target_alias" in
1047NONE)
1048 case $nonopt in
1049 NONE) target_alias=$host_alias ;;
1050 *) target_alias=$nonopt ;;
1051 esac ;;
1052esac
1053
1054target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058echo "$ac_t""$target" 1>&6
1059
1060echo $ac_n "checking build system type""... $ac_c" 1>&6
65d8ef1e 1061echo "configure:1062: checking build system type" >&5
a0b9e27f
MB
1062
1063build_alias=$build
1064case "$build_alias" in
1065NONE)
1066 case $nonopt in
1067 NONE) build_alias=$host_alias ;;
1068 *) build_alias=$nonopt ;;
1069 esac ;;
1070esac
1071
1072build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076echo "$ac_t""$build" 1>&6
1077
1078test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1080 NONENONEs,x,x, &&
1081 program_prefix=${target_alias}-
8284b0c5
MB
1082
1083
a0b9e27f 1084
10f2d63a 1085WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1086WX_MINOR_VERSION_NUMBER=5
1087WX_RELEASE_NUMBER=0
10f2d63a 1088
10f2d63a 1089WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1090WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1091
978f1259
RL
1092WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1093
34bed6d9 1094WX_CURRENT=0
6426998c
RL
1095WX_REVISION=0
1096WX_AGE=0
1097
8284b0c5
MB
1098
1099
10f2d63a
VZ
1100USE_UNIX=1
1101USE_WIN32=0
f9bc1684 1102USE_DOS=0
b12915c1 1103USE_BEOS=0
1216f52d 1104USE_MAC=0
b12915c1 1105
10f2d63a
VZ
1106USE_LINUX=
1107USE_SGI=
1108USE_HPUX=
1109USE_SYSV=
1110USE_SVR4=
1111USE_AIX=
1112USE_SUN=
1113USE_SOLARIS=
1114USE_SUNOS=
1115USE_ALPHA=
1116USE_OSF=
1117USE_BSD=
f11bdd03 1118USE_DARWIN=
10f2d63a 1119USE_FREEBSD=
95c8801c 1120USE_OPENBSD=
f6bcfd97 1121USE_NETBSD=
10f2d63a
VZ
1122USE_VMS=
1123USE_ULTRIX=
10f2d63a
VZ
1124USE_DATA_GENERAL=
1125
ab9b9eab
VZ
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
89e6bf6d 1128ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a
VZ
1129
1130DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1131DEFAULT_wxUSE_MAC=0
1132DEFAULT_wxUSE_MGL=0
1725144d 1133DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1134DEFAULT_wxUSE_MOTIF=0
1135DEFAULT_wxUSE_MSW=0
e07802fc 1136DEFAULT_wxUSE_PM=0
f79bd02d 1137DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1138
1139DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1140DEFAULT_DEFAULT_wxUSE_MAC=0
1141DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1142DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1143DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1145DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1146DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1147
d6a55c4b 1148PROGRAM_EXT=
3a922bb4 1149SO_SUFFIX=so
d6a55c4b 1150
10f2d63a
VZ
1151case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1156 SO_SUFFIX=sl
a0b9e27f 1157 cat >> confdefs.h <<\EOF
10f2d63a 1158#define __HPUX__ 1
a0b9e27f 1159EOF
10f2d63a
VZ
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
a0b9e27f 1164 cat >> confdefs.h <<\EOF
10f2d63a 1165#define __LINUX__ 1
a0b9e27f 1166EOF
10f2d63a
VZ
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
a0b9e27f 1171 cat >> confdefs.h <<\EOF
10f2d63a 1172#define __ALPHA__ 1
a0b9e27f 1173EOF
10f2d63a
VZ
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
a0b9e27f 1181 cat >> confdefs.h <<\EOF
10f2d63a 1182#define __SGI__ 1
a0b9e27f 1183EOF
10f2d63a 1184
a0b9e27f 1185 cat >> confdefs.h <<\EOF
10f2d63a 1186#define __SVR4__ 1
a0b9e27f 1187EOF
10f2d63a
VZ
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
a0b9e27f 1195 cat >> confdefs.h <<\EOF
10f2d63a 1196#define __SUN__ 1
a0b9e27f 1197EOF
10f2d63a 1198
a0b9e27f 1199 cat >> confdefs.h <<\EOF
10f2d63a 1200#define __SOLARIS__ 1
a0b9e27f 1201EOF
10f2d63a 1202
a0b9e27f 1203 cat >> confdefs.h <<\EOF
10f2d63a 1204#define __SVR4__ 1
a0b9e27f 1205EOF
10f2d63a
VZ
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
a0b9e27f 1214 cat >> confdefs.h <<\EOF
10f2d63a 1215#define __SUN__ 1
a0b9e27f 1216EOF
10f2d63a 1217
a0b9e27f 1218 cat >> confdefs.h <<\EOF
10f2d63a 1219#define __SUNOS__ 1
a0b9e27f 1220EOF
10f2d63a 1221
a0b9e27f 1222 cat >> confdefs.h <<\EOF
10f2d63a 1223#define __BSD__ 1
a0b9e27f 1224EOF
10f2d63a
VZ
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
f6bcfd97 1228 *-*-freebsd*)
10f2d63a
VZ
1229 USE_BSD=1
1230 USE_FREEBSD=1
a0b9e27f 1231 cat >> confdefs.h <<\EOF
10f2d63a 1232#define __FREEBSD__ 1
a0b9e27f 1233EOF
10f2d63a 1234
a0b9e27f 1235 cat >> confdefs.h <<\EOF
10f2d63a 1236#define __BSD__ 1
a0b9e27f 1237EOF
95c8801c
VS
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
a0b9e27f 1244 cat >> confdefs.h <<\EOF
2b5f62a0 1245#define __OPENBSD__ 1
a0b9e27f 1246EOF
95c8801c 1247
a0b9e27f 1248 cat >> confdefs.h <<\EOF
2b5f62a0 1249#define __BSD__ 1
a0b9e27f 1250EOF
f6bcfd97
BP
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
a0b9e27f 1257 cat >> confdefs.h <<\EOF
2b5f62a0 1258#define __NETBSD__ 1
a0b9e27f 1259EOF
f6bcfd97 1260
a0b9e27f 1261 cat >> confdefs.h <<\EOF
2b5f62a0 1262#define __BSD__ 1
a0b9e27f 1263EOF
10f2d63a
VZ
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
a0b9e27f 1270 cat >> confdefs.h <<\EOF
10f2d63a 1271#define __ALPHA__ 1
a0b9e27f 1272EOF
10f2d63a 1273
a0b9e27f 1274 cat >> confdefs.h <<\EOF
10f2d63a 1275#define __OSF__ 1
a0b9e27f 1276EOF
10f2d63a
VZ
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
a0b9e27f 1284 cat >> confdefs.h <<\EOF
10f2d63a 1285#define __ALPHA__ 1
a0b9e27f 1286EOF
10f2d63a 1287
a0b9e27f 1288 cat >> confdefs.h <<\EOF
10f2d63a 1289#define __SVR4__ 1
a0b9e27f 1290EOF
10f2d63a
VZ
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
a0b9e27f 1297 cat >> confdefs.h <<\EOF
10f2d63a 1298#define __SYSV__ 1
a0b9e27f 1299EOF
10f2d63a 1300
a0b9e27f 1301 cat >> confdefs.h <<\EOF
10f2d63a 1302#define __SVR4__ 1
a0b9e27f 1303EOF
10f2d63a
VZ
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
2b5f62a0 1311 SO_SUFFIX=a
a0b9e27f 1312 cat >> confdefs.h <<\EOF
10f2d63a 1313#define __AIX__ 1
a0b9e27f 1314EOF
10f2d63a 1315
a0b9e27f 1316 cat >> confdefs.h <<\EOF
10f2d63a 1317#define __SYSV__ 1
a0b9e27f 1318EOF
10f2d63a 1319
a0b9e27f 1320 cat >> confdefs.h <<\EOF
10f2d63a 1321#define __SVR4__ 1
a0b9e27f 1322EOF
10f2d63a
VZ
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1c8183e2 1327 *-*-cygwin* | *-*-mingw32* )
17234b26 1328 SO_SUFFIX=dll
cf27ef00 1329 PROGRAM_EXT=".exe"
7b7a7637 1330 RESCOMP=windres
10f2d63a
VZ
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
f9bc1684
VS
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
a0b9e27f 1337 cat >> confdefs.h <<\EOF
f9bc1684 1338#define __DOS__ 1
a0b9e27f 1339EOF
f9bc1684
VS
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1343 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1344 ;;
1345
6fa882bd 1346 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1347 cat >> confdefs.h <<\EOF
10f2d63a 1348#define __EMX__ 1
a0b9e27f 1349EOF
10f2d63a 1350
cf27ef00 1351 PROGRAM_EXT=".exe"
e07802fc 1352 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1353 ;;
1354
d08b457b
GD
1355 powerpc-*-darwin* )
1356 USE_BSD=1
f11bdd03 1357 USE_DARWIN=1
3a922bb4 1358 SO_SUFFIX=dylib
a0b9e27f 1359 cat >> confdefs.h <<\EOF
f11bdd03 1360#define __BSD__ 1
a0b9e27f 1361EOF
b4085ce6 1362
a0b9e27f 1363 cat >> confdefs.h <<\EOF
f11bdd03 1364#define __DARWIN__ 1
a0b9e27f 1365EOF
d08b457b 1366
a0b9e27f 1367 cat >> confdefs.h <<\EOF
d08b457b 1368#define __POWERPC__ 1
a0b9e27f 1369EOF
b4085ce6
GD
1370
1371 DEFAULT_DEFAULT_wxUSE_MAC=1
1372 ;;
1373
b12915c1
VZ
1374 *-*-beos* )
1375 USE_BEOS=1
a0b9e27f 1376 cat >> confdefs.h <<\EOF
b12915c1 1377#define __BEOS__ 1
a0b9e27f 1378EOF
b12915c1
VZ
1379
1380 ;;
1381
10f2d63a 1382 *)
a0b9e27f 1383 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1384esac
1385
8284b0c5
MB
1386
1387
1388
1389 wx_arg_cache_file="configarg.cache"
1390 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1391 rm -f ${wx_arg_cache_file}.tmp
1392 touch ${wx_arg_cache_file}.tmp
1393 touch ${wx_arg_cache_file}
a0b9e27f 1394
10f2d63a
VZ
1395
1396DEBUG_CONFIGURE=0
1397if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1398 DEFAULT_wxUSE_UNIVERSAL=no
1399
d8356fa3
VZ
1400 DEFAULT_wxUSE_NANOX=no
1401
10f2d63a
VZ
1402 DEFAULT_wxUSE_THREADS=yes
1403
1404 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1405 DEFAULT_wxUSE_SONAME=no
1e6feb95 1406 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1407 DEFAULT_wxUSE_PROFILE=no
1408 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1409 DEFAULT_wxUSE_NO_RTTI=no
1410 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1411 DEFAULT_wxUSE_PERMISSIVE=no
1412 DEFAULT_wxUSE_DEBUG_FLAG=yes
1413 DEFAULT_wxUSE_DEBUG_INFO=yes
1414 DEFAULT_wxUSE_DEBUG_GDB=yes
1415 DEFAULT_wxUSE_MEM_TRACING=no
1416 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1417 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1418 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1419 DEFAULT_wxUSE_APPLE_IEEE=no
1420
1421 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1422 DEFAULT_wxUSE_LOGWINDOW=no
1423 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1424 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1425
1426 DEFAULT_wxUSE_GUI=yes
1e6feb95 1427 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1428
3e44f09d 1429 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1430 DEFAULT_wxUSE_ZLIB=no
1431 DEFAULT_wxUSE_LIBPNG=no
1432 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1433 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1434 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1435 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1436
eb4efbdc 1437 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1438 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1439 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1440 DEFAULT_wxUSE_CMDLINE_PARSER=no
1441 DEFAULT_wxUSE_DATETIME=no
1442 DEFAULT_wxUSE_TIMEDATE=no
1443 DEFAULT_wxUSE_TIMER=no
1444 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1445 DEFAULT_wxUSE_FILE=no
1e6feb95 1446 DEFAULT_wxUSE_FFILE=no
a3a584a7 1447 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1448 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1449 DEFAULT_wxUSE_WAVE=no
1450 DEFAULT_wxUSE_INTL=no
1451 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1452 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_STREAMS=no
1454 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1455 DEFAULT_wxUSE_OLE=no
1456 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1457 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1458 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1459 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1460 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1461 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1462 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1466 DEFAULT_wxUSE_POSTSCRIPT=no
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=no
1470 DEFAULT_wxUSE_TOOLTIPS=no
1471 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1472 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1473 DEFAULT_wxUSE_SPLINES=no
1474
1475 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1478
1479 DEFAULT_wxUSE_PROLOGIO=no
1480 DEFAULT_wxUSE_RESOURCES=no
1481 DEFAULT_wxUSE_CONSTRAINTS=no
1482 DEFAULT_wxUSE_IPC=no
1483 DEFAULT_wxUSE_HELP=no
29fd3c0c 1484 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1485 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1486 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1487 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1488 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1489 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1490 DEFAULT_wxUSE_PROTOCOL=no
1491 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1492 DEFAULT_wxUSE_PROTOCOL_FTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FILE=no
1494 DEFAULT_wxUSE_URL=no
3bd8fb5f 1495
10f2d63a 1496 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1497 DEFAULT_wxUSE_CHOICEDLG=no
1498 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1499 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1500 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1501 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1502 DEFAULT_wxUSE_FONTDLG=no
1503 DEFAULT_wxUSE_MSGDLG=no
1504 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1505 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1506 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1507 DEFAULT_wxUSE_STARTUP_TIPS=no
1508 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1509 DEFAULT_wxUSE_WIZARDDLG=no
1510
1e6feb95 1511 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1512 DEFAULT_wxUSE_MINIFRAME=no
1513 DEFAULT_wxUSE_HTML=no
24528b0c 1514 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_FS_INET=no
1516 DEFAULT_wxUSE_FS_ZIP=no
1517 DEFAULT_wxUSE_BUSYINFO=no
1518 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1519 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1520
1521 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1522 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1523 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1524 DEFAULT_wxUSE_CALCTRL=no
1525 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_CHECKBOX=no
1527 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1528 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_COMBOBOX=no
1530 DEFAULT_wxUSE_GAUGE=no
1531 DEFAULT_wxUSE_GRID=no
1532 DEFAULT_wxUSE_NEW_GRID=no
1533 DEFAULT_wxUSE_IMAGLIST=no
1534 DEFAULT_wxUSE_LISTBOX=no
1535 DEFAULT_wxUSE_LISTCTRL=no
1536 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1537 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1544 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1549 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1552 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1553 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1554 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1557 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1558 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1559 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1560
1561 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1562 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
edae8572 1565 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1566 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1570 DEFAULT_wxUSE_IFF=no
0046ff7c 1571 DEFAULT_wxUSE_XPM=no
658974ae 1572 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1573else
1e6feb95
VZ
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
d8356fa3
VZ
1576 DEFAULT_wxUSE_NANOX=no
1577
10f2d63a
VZ
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1581 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1594 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1600 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
831b3152 1604 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1608 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1609 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1610 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1611
eb4efbdc 1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1617 DEFAULT_wxUSE_TIMEDATE=no
1618 DEFAULT_wxUSE_TIMER=yes
1619 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1620 DEFAULT_wxUSE_FILE=yes
1e6feb95 1621 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1622 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1623 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1624 DEFAULT_wxUSE_WAVE=no
1625 DEFAULT_wxUSE_INTL=yes
1626 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1627 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1628 DEFAULT_wxUSE_STREAMS=yes
1629 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1630 DEFAULT_wxUSE_OLE=yes
1631 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1632 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1633 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1634 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1635 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1636 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1637 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1638
1639 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1640 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1641 DEFAULT_wxUSE_POSTSCRIPT=yes
1642
1643 DEFAULT_wxUSE_X_RESOURCES=no
1644 DEFAULT_wxUSE_CLIPBOARD=yes
1645 DEFAULT_wxUSE_TOOLTIPS=yes
1646 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1647 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1648 DEFAULT_wxUSE_SPLINES=yes
1649
1650 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1653
2b5f62a0
VZ
1654 DEFAULT_wxUSE_PROLOGIO=no
1655 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1656 DEFAULT_wxUSE_CONSTRAINTS=yes
1657 DEFAULT_wxUSE_IPC=yes
1658 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1659 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1660 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1661 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1662 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1663 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1664 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1665 DEFAULT_wxUSE_PROTOCOL=yes
1666 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1667 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1668 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1669 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1670
1671 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1672 DEFAULT_wxUSE_CHOICEDLG=yes
1673 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1674 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1675 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1676 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1677 DEFAULT_wxUSE_FONTDLG=yes
1678 DEFAULT_wxUSE_MSGDLG=yes
1679 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1680 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1681 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1682 DEFAULT_wxUSE_STARTUP_TIPS=yes
1683 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1684 DEFAULT_wxUSE_WIZARDDLG=yes
1685
1e6feb95 1686 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1687 DEFAULT_wxUSE_MINIFRAME=yes
1688 DEFAULT_wxUSE_HTML=yes
24528b0c 1689 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1690 DEFAULT_wxUSE_FS_INET=yes
1691 DEFAULT_wxUSE_FS_ZIP=yes
1692 DEFAULT_wxUSE_BUSYINFO=yes
1693 DEFAULT_wxUSE_ZIPSTREAM=yes
1694 DEFAULT_wxUSE_VALIDATORS=yes
1695
1696 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1697 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1698 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1699 DEFAULT_wxUSE_CALCTRL=yes
1700 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1701 DEFAULT_wxUSE_CHECKBOX=yes
1702 DEFAULT_wxUSE_CHECKLST=yes
1703 DEFAULT_wxUSE_CHOICE=yes
1704 DEFAULT_wxUSE_COMBOBOX=yes
1705 DEFAULT_wxUSE_GAUGE=yes
1706 DEFAULT_wxUSE_GRID=yes
cc977e5f 1707 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1708 DEFAULT_wxUSE_IMAGLIST=yes
1709 DEFAULT_wxUSE_LISTBOX=yes
1710 DEFAULT_wxUSE_LISTCTRL=yes
1711 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1712 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1713 DEFAULT_wxUSE_RADIOBOX=yes
1714 DEFAULT_wxUSE_RADIOBTN=yes
1715 DEFAULT_wxUSE_SASH=yes
1716 DEFAULT_wxUSE_SCROLLBAR=yes
1717 DEFAULT_wxUSE_SLIDER=yes
1718 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1719 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_SPLITTER=yes
1721 DEFAULT_wxUSE_STATBMP=yes
1722 DEFAULT_wxUSE_STATBOX=yes
1723 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1724 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1725 DEFAULT_wxUSE_STATUSBAR=yes
1726 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1727 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1728 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1729 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1732 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1733 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1734 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1735
1736 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1737 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1738 DEFAULT_wxUSE_WCSRTOMBS=no
1739
edae8572 1740 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1741 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1742 DEFAULT_wxUSE_GIF=yes
1743 DEFAULT_wxUSE_PCX=yes
cc0e8480 1744 DEFAULT_wxUSE_IFF=no
10f2d63a 1745 DEFAULT_wxUSE_PNM=yes
0046ff7c 1746 DEFAULT_wxUSE_XPM=yes
658974ae 1747 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1748fi
1749
8284b0c5
MB
1750
1751
10f2d63a 1752for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1753 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1754 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1755 has_toolkit_in_cache=1
1756 eval "DEFAULT_$LINE"
1757 eval "CACHE_$toolkit=1"
1758 fi
1759done
1760
8284b0c5
MB
1761
1762
5005acfe
VZ
1763 enablestring=
1764 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
65d8ef1e 1765echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1766 no_cache=0
1767 # Check whether --enable-gui or --disable-gui was given.
1768if test "${enable_gui+set}" = set; then
1769 enableval="$enable_gui"
a0b9e27f 1770
10f2d63a
VZ
1771 if test "$enableval" = yes; then
1772 ac_cv_use_gui='wxUSE_GUI=yes'
1773 else
1774 ac_cv_use_gui='wxUSE_GUI=no'
1775 fi
a0b9e27f 1776
10f2d63a 1777else
a0b9e27f 1778
10f2d63a
VZ
1779 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1787
1788fi
10f2d63a
VZ
1789
1790
1791 eval "$ac_cv_use_gui"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1797 echo "$ac_t""yes" 1>&6
10f2d63a 1798 else
a0b9e27f 1799 echo "$ac_t""no" 1>&6
10f2d63a 1800 fi
a0b9e27f 1801
10f2d63a 1802
b12915c1 1803if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1804
8284b0c5 1805
5005acfe
VZ
1806 enablestring=
1807 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
65d8ef1e 1808echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1809 no_cache=0
1810 # Check whether --enable-universal or --disable-universal was given.
1811if test "${enable_universal+set}" = set; then
1812 enableval="$enable_universal"
a0b9e27f 1813
1e6feb95
VZ
1814 if test "$enableval" = yes; then
1815 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1816 else
1817 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1818 fi
a0b9e27f 1819
1e6feb95 1820else
a0b9e27f 1821
1e6feb95
VZ
1822 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1823 if test "x$LINE" != x ; then
1824 eval "DEFAULT_$LINE"
1825 else
1826 no_cache=1
1827 fi
1828
1829 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1830
1831fi
1e6feb95
VZ
1832
1833
1834 eval "$ac_cv_use_universal"
1835 if test "$no_cache" != 1; then
1836 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1837 fi
1838
1839 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1840 echo "$ac_t""yes" 1>&6
1e6feb95 1841 else
a0b9e27f 1842 echo "$ac_t""no" 1>&6
1e6feb95 1843 fi
a0b9e27f 1844
10f2d63a
VZ
1845# Check whether --with-gtk or --without-gtk was given.
1846if test "${with_gtk+set}" = set; then
1847 withval="$with_gtk"
1848 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1849fi
10f2d63a
VZ
1850
1851# Check whether --with-motif or --without-motif was given.
1852if test "${with_motif+set}" = set; then
1853 withval="$with_motif"
1854 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1855fi
10f2d63a 1856
b4085ce6
GD
1857# Check whether --with-mac or --without-mac was given.
1858if test "${with_mac+set}" = set; then
1859 withval="$with_mac"
1860 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1861fi
b4085ce6 1862
10f2d63a
VZ
1863# Check whether --with-wine or --without-wine was given.
1864if test "${with_wine+set}" = set; then
1865 withval="$with_wine"
89e6bf6d 1866 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1867fi
10f2d63a 1868
77e13408
RL
1869# Check whether --with-msw or --without-msw was given.
1870if test "${with_msw+set}" = set; then
1871 withval="$with_msw"
b4efce5e 1872 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1873fi
10f2d63a 1874
e07802fc
VZ
1875# Check whether --with-pm or --without-pm was given.
1876if test "${with_pm+set}" = set; then
1877 withval="$with_pm"
1878 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1879fi
698dcdb6 1880
1e6feb95
VZ
1881# Check whether --with-mgl or --without-mgl was given.
1882if test "${with_mgl+set}" = set; then
1883 withval="$with_mgl"
6c657b52 1884 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1885fi
1e6feb95 1886
1725144d
RR
1887# Check whether --with-microwin or --without-microwin was given.
1888if test "${with_microwin+set}" = set; then
1889 withval="$with_microwin"
1890 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1891fi
1725144d 1892
f79bd02d
JS
1893# Check whether --with-x11 or --without-x11 was given.
1894if test "${with_x11+set}" = set; then
1895 withval="$with_x11"
3c011993 1896 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1897fi
10f2d63a 1898
a0b9e27f 1899
5005acfe
VZ
1900 enablestring=
1901 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
65d8ef1e 1902echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1903 no_cache=0
ba875e66
VZ
1904 # Check whether --enable-nanox or --disable-nanox was given.
1905if test "${enable_nanox+set}" = set; then
1906 enableval="$enable_nanox"
a0b9e27f 1907
d8356fa3 1908 if test "$enableval" = yes; then
ba875e66 1909 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1910 else
ba875e66 1911 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1912 fi
a0b9e27f 1913
d8356fa3 1914else
a0b9e27f 1915
d8356fa3
VZ
1916 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
ba875e66 1923 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1924
1925fi
d8356fa3
VZ
1926
1927
ba875e66 1928 eval "$ac_cv_use_nanox"
d8356fa3 1929 if test "$no_cache" != 1; then
ba875e66 1930 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1931 fi
1932
1933 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1934 echo "$ac_t""yes" 1>&6
d8356fa3 1935 else
a0b9e27f 1936 echo "$ac_t""no" 1>&6
d8356fa3 1937 fi
a0b9e27f 1938
8284b0c5 1939
d74f4b5a 1940
5005acfe
VZ
1941 enablestring=
1942 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
65d8ef1e 1943echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1944 no_cache=0
1945 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1946if test "${enable_gtk2+set}" = set; then
1947 enableval="$enable_gtk2"
a0b9e27f 1948
d74f4b5a
VZ
1949 if test "$enableval" = yes; then
1950 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1951 else
1952 ac_cv_use_gtk2='wxUSE_GTK2=no'
1953 fi
a0b9e27f 1954
10f2d63a 1955else
a0b9e27f 1956
d74f4b5a
VZ
1957 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
1964 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1965
1966fi
52127426 1967
328a083c 1968
d74f4b5a
VZ
1969 eval "$ac_cv_use_gtk2"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1975 echo "$ac_t""yes" 1>&6
d74f4b5a 1976 else
a0b9e27f 1977 echo "$ac_t""no" 1>&6
d74f4b5a 1978 fi
a0b9e27f 1979
d74f4b5a 1980
5c6fa7d2 1981
a0b9e27f 1982 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
65d8ef1e 1983echo "configure:1984: checking for --with-libpng" >&5
8284b0c5 1984 no_cache=0
a0b9e27f 1985 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1986if test "${with_libpng+set}" = set; then
1987 withval="$with_libpng"
a0b9e27f 1988
10f2d63a 1989 if test "$withval" = yes; then
b12915c1 1990 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1991 elif test "$withval" = no; then
b12915c1 1992 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1993 elif test "$withval" = sys; then
1994 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1995 elif test "$withval" = builtin; then
1996 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1997 else
a0b9e27f 1998 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1999 fi
a0b9e27f 2000
10f2d63a 2001else
a0b9e27f 2002
b12915c1 2003 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2004 if test "x$LINE" != x ; then
2005 eval "DEFAULT_$LINE"
2006 else
2007 no_cache=1
2008 fi
2009
b12915c1 2010 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2011
2012fi
10f2d63a
VZ
2013
2014
b12915c1 2015 eval "$ac_cv_use_libpng"
10f2d63a 2016 if test "$no_cache" != 1; then
b12915c1 2017 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2018 fi
2019
b12915c1 2020 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2021 echo "$ac_t""yes" 1>&6
422107f9 2022 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2023 echo "$ac_t""no" 1>&6
422107f9 2024 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2025 echo "$ac_t""system version" 1>&6
4f14bcd8 2026 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2027 echo "$ac_t""builtin version" 1>&6
422107f9 2028 else
a0b9e27f 2029 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2030 fi
a0b9e27f 2031
10f2d63a 2032
a0b9e27f 2033 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
65d8ef1e 2034echo "configure:2035: checking for --with-libjpeg" >&5
10f2d63a 2035 no_cache=0
a0b9e27f 2036 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2037if test "${with_libjpeg+set}" = set; then
2038 withval="$with_libjpeg"
a0b9e27f 2039
10f2d63a 2040 if test "$withval" = yes; then
b12915c1 2041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2042 elif test "$withval" = no; then
b12915c1 2043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2044 elif test "$withval" = sys; then
2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2046 elif test "$withval" = builtin; then
2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2048 else
a0b9e27f 2049 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2050 fi
a0b9e27f 2051
10f2d63a 2052else
a0b9e27f 2053
b12915c1 2054 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
b12915c1 2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2062
2063fi
10f2d63a
VZ
2064
2065
b12915c1 2066 eval "$ac_cv_use_libjpeg"
10f2d63a 2067 if test "$no_cache" != 1; then
b12915c1 2068 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2069 fi
2070
b12915c1 2071 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2072 echo "$ac_t""yes" 1>&6
422107f9 2073 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2074 echo "$ac_t""no" 1>&6
422107f9 2075 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2076 echo "$ac_t""system version" 1>&6
4f14bcd8 2077 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2078 echo "$ac_t""builtin version" 1>&6
422107f9 2079 else
a0b9e27f 2080 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2081 fi
a0b9e27f 2082
10f2d63a 2083
a0b9e27f 2084 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
65d8ef1e 2085echo "configure:2086: checking for --with-libtiff" >&5
10f2d63a 2086 no_cache=0
a0b9e27f 2087 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2088if test "${with_libtiff+set}" = set; then
2089 withval="$with_libtiff"
a0b9e27f 2090
10f2d63a 2091 if test "$withval" = yes; then
b12915c1 2092 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2093 elif test "$withval" = no; then
b12915c1 2094 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2095 elif test "$withval" = sys; then
2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2097 elif test "$withval" = builtin; then
2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2099 else
a0b9e27f 2100 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2101 fi
a0b9e27f 2102
10f2d63a 2103else
a0b9e27f 2104
b12915c1 2105 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
b12915c1 2112 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2113
2114fi
10f2d63a
VZ
2115
2116
b12915c1 2117 eval "$ac_cv_use_libtiff"
10f2d63a 2118 if test "$no_cache" != 1; then
b12915c1 2119 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2120 fi
2121
b12915c1 2122 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2123 echo "$ac_t""yes" 1>&6
0dcf9893 2124 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2125 echo "$ac_t""no" 1>&6
0dcf9893 2126 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2127 echo "$ac_t""system version" 1>&6
4f14bcd8 2128 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2129 echo "$ac_t""builtin version" 1>&6
0dcf9893 2130 else
a0b9e27f 2131 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2132 fi
a0b9e27f 2133
10f2d63a 2134
a0b9e27f 2135 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
65d8ef1e 2136echo "configure:2137: checking for --with-opengl" >&5
10f2d63a 2137 no_cache=0
a0b9e27f 2138 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2139if test "${with_opengl+set}" = set; then
2140 withval="$with_opengl"
a0b9e27f 2141
10f2d63a 2142 if test "$withval" = yes; then
b12915c1 2143 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2144 else
b12915c1 2145 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2146 fi
a0b9e27f 2147
10f2d63a 2148else
a0b9e27f 2149
b12915c1 2150 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2151 if test "x$LINE" != x ; then
2152 eval "DEFAULT_$LINE"
2153 else
2154 no_cache=1
2155 fi
2156
b12915c1 2157 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2158
2159fi
10f2d63a
VZ
2160
2161
b12915c1 2162 eval "$ac_cv_use_opengl"
10f2d63a 2163 if test "$no_cache" != 1; then
b12915c1 2164 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2165 fi
2166
b12915c1 2167 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2168 echo "$ac_t""yes" 1>&6
10f2d63a 2169 else
a0b9e27f 2170 echo "$ac_t""no" 1>&6
10f2d63a 2171 fi
a0b9e27f 2172
10f2d63a 2173
b12915c1
VZ
2174fi
2175
5c6fa7d2 2176
a0b9e27f 2177 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
65d8ef1e 2178echo "configure:2179: checking for --with-dmalloc" >&5
8284b0c5 2179 no_cache=0
a0b9e27f 2180 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2181if test "${with_dmalloc+set}" = set; then
2182 withval="$with_dmalloc"
a0b9e27f 2183
c7a2bf27 2184 if test "$withval" = yes; then
b12915c1 2185 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2186 else
b12915c1 2187 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2188 fi
a0b9e27f 2189
c7a2bf27 2190else
a0b9e27f 2191
b12915c1 2192 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
b12915c1 2199 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2200
2201fi
c7a2bf27
RR
2202
2203
b12915c1 2204 eval "$ac_cv_use_dmalloc"
c7a2bf27 2205 if test "$no_cache" != 1; then
b12915c1 2206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2207 fi
2208
b12915c1 2209 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2210 echo "$ac_t""yes" 1>&6
c7a2bf27 2211 else
a0b9e27f 2212 echo "$ac_t""no" 1>&6
c7a2bf27 2213 fi
a0b9e27f 2214
c7a2bf27 2215
a0b9e27f 2216 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
65d8ef1e 2217echo "configure:2218: checking for --with-regex" >&5
3e44f09d 2218 no_cache=0
a0b9e27f 2219 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2220if test "${with_regex+set}" = set; then
2221 withval="$with_regex"
a0b9e27f 2222
3e44f09d
VZ
2223 if test "$withval" = yes; then
2224 ac_cv_use_regex='wxUSE_REGEX=yes'
2225 elif test "$withval" = no; then
2226 ac_cv_use_regex='wxUSE_REGEX=no'
2227 elif test "$withval" = sys; then
2228 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2229 elif test "$withval" = builtin; then
2230 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2231 else
a0b9e27f 2232 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2233 fi
a0b9e27f 2234
3e44f09d 2235else
a0b9e27f 2236
3e44f09d
VZ
2237 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2238 if test "x$LINE" != x ; then
2239 eval "DEFAULT_$LINE"
2240 else
2241 no_cache=1
2242 fi
2243
2244 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2245
2246fi
3e44f09d
VZ
2247
2248
2249 eval "$ac_cv_use_regex"
2250 if test "$no_cache" != 1; then
2251 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2252 fi
2253
2254 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2255 echo "$ac_t""yes" 1>&6
3e44f09d 2256 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2257 echo "$ac_t""no" 1>&6
3e44f09d 2258 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2259 echo "$ac_t""system version" 1>&6
4f14bcd8 2260 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2261 echo "$ac_t""builtin version" 1>&6
3e44f09d 2262 else
a0b9e27f 2263 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2264 fi
a0b9e27f 2265
3e44f09d 2266
a0b9e27f 2267 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
65d8ef1e 2268echo "configure:2269: checking for --with-zlib" >&5
10f2d63a 2269 no_cache=0
a0b9e27f 2270 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2271if test "${with_zlib+set}" = set; then
2272 withval="$with_zlib"
a0b9e27f 2273
10f2d63a 2274 if test "$withval" = yes; then
b12915c1 2275 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2276 elif test "$withval" = no; then
b12915c1 2277 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2278 elif test "$withval" = sys; then
2279 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2280 elif test "$withval" = builtin; then
2281 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2282 else
a0b9e27f 2283 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2284 fi
a0b9e27f 2285
10f2d63a 2286else
a0b9e27f 2287
b12915c1 2288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
b12915c1 2295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2296
2297fi
10f2d63a
VZ
2298
2299
b12915c1 2300 eval "$ac_cv_use_zlib"
10f2d63a 2301 if test "$no_cache" != 1; then
b12915c1 2302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2303 fi
2304
b12915c1 2305 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2306 echo "$ac_t""yes" 1>&6
422107f9 2307 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2308 echo "$ac_t""no" 1>&6
422107f9 2309 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2310 echo "$ac_t""system version" 1>&6
4f14bcd8 2311 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2312 echo "$ac_t""builtin version" 1>&6
422107f9 2313 else
a0b9e27f 2314 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2315 fi
a0b9e27f 2316
10f2d63a 2317
a0b9e27f 2318 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
65d8ef1e 2319echo "configure:2320: checking for --with-odbc" >&5
10f2d63a 2320 no_cache=0
a0b9e27f 2321 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2322if test "${with_odbc+set}" = set; then
2323 withval="$with_odbc"
a0b9e27f 2324
10f2d63a
VZ
2325 if test "$withval" = yes; then
2326 ac_cv_use_odbc='wxUSE_ODBC=yes'
2327 else
2328 ac_cv_use_odbc='wxUSE_ODBC=no'
2329 fi
a0b9e27f 2330
10f2d63a 2331else
a0b9e27f 2332
10f2d63a
VZ
2333 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2334 if test "x$LINE" != x ; then
2335 eval "DEFAULT_$LINE"
2336 else
2337 no_cache=1
2338 fi
2339
2340 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2341
2342fi
10f2d63a
VZ
2343
2344
2345 eval "$ac_cv_use_odbc"
2346 if test "$no_cache" != 1; then
2347 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2348 fi
2349
2350 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2351 echo "$ac_t""yes" 1>&6
10f2d63a 2352 else
a0b9e27f 2353 echo "$ac_t""no" 1>&6
10f2d63a 2354 fi
a0b9e27f 2355
52127426 2356
8284b0c5
MB
2357
2358
5005acfe
VZ
2359 enablestring=
2360 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
65d8ef1e 2361echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
a0b9e27f 2366
10f2d63a
VZ
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
a0b9e27f 2372
10f2d63a 2373else
a0b9e27f 2374
10f2d63a
VZ
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2383
2384fi
10f2d63a
VZ
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2393 echo "$ac_t""yes" 1>&6
10f2d63a 2394 else
a0b9e27f 2395 echo "$ac_t""no" 1>&6
10f2d63a 2396 fi
a0b9e27f 2397
10f2d63a 2398
5005acfe
VZ
2399 enablestring=
2400 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
65d8ef1e 2401echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2402 no_cache=0
3a922bb4
RL
2403 # Check whether --enable-soname or --disable-soname was given.
2404if test "${enable_soname+set}" = set; then
2405 enableval="$enable_soname"
a0b9e27f 2406
00cf1208 2407 if test "$enableval" = yes; then
3a922bb4 2408 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2409 else
3a922bb4 2410 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2411 fi
a0b9e27f 2412
00cf1208 2413else
a0b9e27f 2414
3a922bb4 2415 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
3a922bb4 2422 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2423
2424fi
00cf1208
RR
2425
2426
3a922bb4 2427 eval "$ac_cv_use_soname"
00cf1208 2428 if test "$no_cache" != 1; then
3a922bb4 2429 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2430 fi
2431
3a922bb4 2432 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2433 echo "$ac_t""yes" 1>&6
00cf1208 2434 else
a0b9e27f 2435 echo "$ac_t""no" 1>&6
00cf1208 2436 fi
a0b9e27f 2437
00cf1208 2438
5005acfe
VZ
2439 enablestring=
2440 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
65d8ef1e 2441echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2442 no_cache=0
2443 # Check whether --enable-optimise or --disable-optimise was given.
2444if test "${enable_optimise+set}" = set; then
2445 enableval="$enable_optimise"
a0b9e27f 2446
10f2d63a
VZ
2447 if test "$enableval" = yes; then
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2449 else
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2451 fi
a0b9e27f 2452
10f2d63a 2453else
a0b9e27f 2454
10f2d63a
VZ
2455 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2463
2464fi
10f2d63a
VZ
2465
2466
2467 eval "$ac_cv_use_optimise"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2473 echo "$ac_t""yes" 1>&6
10f2d63a 2474 else
a0b9e27f 2475 echo "$ac_t""no" 1>&6
10f2d63a 2476 fi
a0b9e27f 2477
10f2d63a 2478
5005acfe
VZ
2479 enablestring=
2480 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
65d8ef1e 2481echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2482 no_cache=0
2483 # Check whether --enable-debug or --disable-debug was given.
2484if test "${enable_debug+set}" = set; then
2485 enableval="$enable_debug"
a0b9e27f 2486
10f2d63a
VZ
2487 if test "$enableval" = yes; then
2488 ac_cv_use_debug='wxUSE_DEBUG=yes'
2489 else
2490 ac_cv_use_debug='wxUSE_DEBUG=no'
2491 fi
a0b9e27f 2492
10f2d63a 2493else
a0b9e27f 2494
10f2d63a
VZ
2495 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2503
2504fi
10f2d63a
VZ
2505
2506
2507 eval "$ac_cv_use_debug"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2513 echo "$ac_t""yes" 1>&6
10f2d63a 2514 else
a0b9e27f 2515 echo "$ac_t""no" 1>&6
10f2d63a 2516 fi
a0b9e27f 2517
52127426 2518
8284b0c5 2519
5005acfe
VZ
2520 enablestring=
2521 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
65d8ef1e 2522echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
a0b9e27f 2527
683dccda
GD
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
a0b9e27f 2533
683dccda 2534else
a0b9e27f 2535
683dccda
GD
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2544
2545fi
683dccda
GD
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2554 echo "$ac_t""yes" 1>&6
683dccda 2555 else
a0b9e27f 2556 echo "$ac_t""no" 1>&6
683dccda 2557 fi
a0b9e27f 2558
683dccda 2559
10f2d63a
VZ
2560if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566fi
2567
8284b0c5 2568
5005acfe
VZ
2569 enablestring=
2570 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
65d8ef1e 2571echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2572 no_cache=0
2573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2574if test "${enable_debug_flag+set}" = set; then
2575 enableval="$enable_debug_flag"
a0b9e27f 2576
10f2d63a
VZ
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2579 else
2580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2581 fi
a0b9e27f 2582
10f2d63a 2583else
a0b9e27f 2584
10f2d63a
VZ
2585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2593
2594fi
10f2d63a
VZ
2595
2596
2597 eval "$ac_cv_use_debug_flag"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2603 echo "$ac_t""yes" 1>&6
10f2d63a 2604 else
a0b9e27f 2605 echo "$ac_t""no" 1>&6
10f2d63a 2606 fi
a0b9e27f 2607
10f2d63a 2608
5005acfe
VZ
2609 enablestring=
2610 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
65d8ef1e 2611echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2612 no_cache=0
2613 # Check whether --enable-debug_info or --disable-debug_info was given.
2614if test "${enable_debug_info+set}" = set; then
2615 enableval="$enable_debug_info"
a0b9e27f 2616
10f2d63a
VZ
2617 if test "$enableval" = yes; then
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2619 else
2620 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2621 fi
a0b9e27f 2622
10f2d63a 2623else
a0b9e27f 2624
10f2d63a
VZ
2625 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2633
2634fi
10f2d63a
VZ
2635
2636
2637 eval "$ac_cv_use_debug_info"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2643 echo "$ac_t""yes" 1>&6
10f2d63a 2644 else
a0b9e27f 2645 echo "$ac_t""no" 1>&6
10f2d63a 2646 fi
a0b9e27f 2647
10f2d63a 2648
5005acfe
VZ
2649 enablestring=
2650 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
65d8ef1e 2651echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2652 no_cache=0
2653 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2654if test "${enable_debug_gdb+set}" = set; then
2655 enableval="$enable_debug_gdb"
a0b9e27f 2656
10f2d63a
VZ
2657 if test "$enableval" = yes; then
2658 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2659 else
2660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2661 fi
a0b9e27f 2662
10f2d63a 2663else
a0b9e27f 2664
10f2d63a
VZ
2665 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2673
2674fi
10f2d63a
VZ
2675
2676
2677 eval "$ac_cv_use_debug_gdb"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2683 echo "$ac_t""yes" 1>&6
10f2d63a 2684 else
a0b9e27f 2685 echo "$ac_t""no" 1>&6
10f2d63a 2686 fi
a0b9e27f 2687
10f2d63a 2688
5005acfe
VZ
2689 enablestring=
2690 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
65d8ef1e 2691echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2692 no_cache=0
2693 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2694if test "${enable_debug_cntxt+set}" = set; then
2695 enableval="$enable_debug_cntxt"
a0b9e27f 2696
10f2d63a
VZ
2697 if test "$enableval" = yes; then
2698 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2699 else
2700 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2701 fi
a0b9e27f 2702
10f2d63a 2703else
a0b9e27f 2704
10f2d63a
VZ
2705 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2713
2714fi
10f2d63a
VZ
2715
2716
2717 eval "$ac_cv_use_debug_cntxt"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2723 echo "$ac_t""yes" 1>&6
10f2d63a 2724 else
a0b9e27f 2725 echo "$ac_t""no" 1>&6
10f2d63a 2726 fi
a0b9e27f 2727
10f2d63a 2728
5005acfe
VZ
2729 enablestring=
2730 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
65d8ef1e 2731echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2732 no_cache=0
2733 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2734if test "${enable_mem_tracing+set}" = set; then
2735 enableval="$enable_mem_tracing"
a0b9e27f 2736
10f2d63a
VZ
2737 if test "$enableval" = yes; then
2738 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2739 else
2740 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2741 fi
a0b9e27f 2742
10f2d63a 2743else
a0b9e27f 2744
10f2d63a
VZ
2745 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2753
2754fi
10f2d63a
VZ
2755
2756
2757 eval "$ac_cv_use_mem_tracing"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2763 echo "$ac_t""yes" 1>&6
10f2d63a 2764 else
a0b9e27f 2765 echo "$ac_t""no" 1>&6
10f2d63a 2766 fi
a0b9e27f 2767
10f2d63a 2768
5005acfe
VZ
2769 enablestring=
2770 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
65d8ef1e 2771echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2772 no_cache=0
2773 # Check whether --enable-profile or --disable-profile was given.
2774if test "${enable_profile+set}" = set; then
2775 enableval="$enable_profile"
a0b9e27f 2776
10f2d63a
VZ
2777 if test "$enableval" = yes; then
2778 ac_cv_use_profile='wxUSE_PROFILE=yes'
2779 else
2780 ac_cv_use_profile='wxUSE_PROFILE=no'
2781 fi
a0b9e27f 2782
10f2d63a 2783else
a0b9e27f 2784
10f2d63a
VZ
2785 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2793
2794fi
10f2d63a
VZ
2795
2796
2797 eval "$ac_cv_use_profile"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2803 echo "$ac_t""yes" 1>&6
10f2d63a 2804 else
a0b9e27f 2805 echo "$ac_t""no" 1>&6
10f2d63a 2806 fi
a0b9e27f 2807
10f2d63a 2808
5005acfe
VZ
2809 enablestring=
2810 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
65d8ef1e 2811echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2812 no_cache=0
2813 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2814if test "${enable_no_rtti+set}" = set; then
2815 enableval="$enable_no_rtti"
a0b9e27f 2816
10f2d63a
VZ
2817 if test "$enableval" = yes; then
2818 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2819 else
2820 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2821 fi
a0b9e27f 2822
10f2d63a 2823else
a0b9e27f 2824
10f2d63a
VZ
2825 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2833
2834fi
10f2d63a
VZ
2835
2836
2837 eval "$ac_cv_use_no_rtti"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2843 echo "$ac_t""yes" 1>&6
10f2d63a 2844 else
a0b9e27f 2845 echo "$ac_t""no" 1>&6
10f2d63a 2846 fi
a0b9e27f 2847
10f2d63a 2848
5005acfe
VZ
2849 enablestring=
2850 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
65d8ef1e 2851echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2852 no_cache=0
2853 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2854if test "${enable_no_exceptions+set}" = set; then
2855 enableval="$enable_no_exceptions"
a0b9e27f 2856
10f2d63a
VZ
2857 if test "$enableval" = yes; then
2858 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2859 else
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2861 fi
a0b9e27f 2862
10f2d63a 2863else
a0b9e27f 2864
10f2d63a
VZ
2865 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2873
2874fi
10f2d63a
VZ
2875
2876
2877 eval "$ac_cv_use_no_exceptions"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2883 echo "$ac_t""yes" 1>&6
10f2d63a 2884 else
a0b9e27f 2885 echo "$ac_t""no" 1>&6
10f2d63a 2886 fi
a0b9e27f 2887
10f2d63a 2888
5005acfe
VZ
2889 enablestring=
2890 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
65d8ef1e 2891echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2892 no_cache=0
2893 # Check whether --enable-permissive or --disable-permissive was given.
2894if test "${enable_permissive+set}" = set; then
2895 enableval="$enable_permissive"
a0b9e27f 2896
10f2d63a
VZ
2897 if test "$enableval" = yes; then
2898 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2899 else
2900 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2901 fi
a0b9e27f 2902
10f2d63a 2903else
a0b9e27f 2904
10f2d63a
VZ
2905 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2913
2914fi
10f2d63a
VZ
2915
2916
2917 eval "$ac_cv_use_permissive"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2923 echo "$ac_t""yes" 1>&6
10f2d63a 2924 else
a0b9e27f 2925 echo "$ac_t""no" 1>&6
10f2d63a 2926 fi
a0b9e27f 2927
10f2d63a 2928
5005acfe
VZ
2929 enablestring=
2930 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
65d8ef1e 2931echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2932 no_cache=0
2933 # Check whether --enable-no_deps or --disable-no_deps was given.
2934if test "${enable_no_deps+set}" = set; then
2935 enableval="$enable_no_deps"
a0b9e27f 2936
10f2d63a
VZ
2937 if test "$enableval" = yes; then
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2939 else
2940 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2941 fi
a0b9e27f 2942
10f2d63a 2943else
a0b9e27f 2944
10f2d63a
VZ
2945 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2953
2954fi
10f2d63a
VZ
2955
2956
2957 eval "$ac_cv_use_no_deps"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2963 echo "$ac_t""yes" 1>&6
10f2d63a 2964 else
a0b9e27f 2965 echo "$ac_t""no" 1>&6
10f2d63a 2966 fi
a0b9e27f 2967
52127426 2968
8284b0c5 2969
5005acfe
VZ
2970 enablestring=
2971 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
65d8ef1e 2972echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2973 no_cache=0
2974 # Check whether --enable-compat20 or --disable-compat20 was given.
2975if test "${enable_compat20+set}" = set; then
2976 enableval="$enable_compat20"
a0b9e27f 2977
54276ccf
VZ
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2980 else
2981 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2982 fi
a0b9e27f 2983
54276ccf 2984else
a0b9e27f 2985
54276ccf
VZ
2986 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
2994
2995fi
54276ccf
VZ
2996
2997
2998 eval "$ac_cv_use_compat20"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3004 echo "$ac_t""yes" 1>&6
54276ccf 3005 else
a0b9e27f 3006 echo "$ac_t""no" 1>&6
54276ccf 3007 fi
a0b9e27f 3008
54276ccf 3009
65d8ef1e 3010 enablestring=
5005acfe 3011 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
65d8ef1e 3012echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3013 no_cache=0
3014 # Check whether --enable-compat22 or --disable-compat22 was given.
3015if test "${enable_compat22+set}" = set; then
3016 enableval="$enable_compat22"
a0b9e27f 3017
54276ccf
VZ
3018 if test "$enableval" = yes; then
3019 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3020 else
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3022 fi
a0b9e27f 3023
54276ccf 3024else
a0b9e27f 3025
54276ccf
VZ
3026 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3034
3035fi
54276ccf
VZ
3036
3037
3038 eval "$ac_cv_use_compat22"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3044 echo "$ac_t""yes" 1>&6
54276ccf 3045 else
a0b9e27f 3046 echo "$ac_t""no" 1>&6
54276ccf 3047 fi
a0b9e27f 3048
54276ccf 3049
65d8ef1e
VS
3050 enablestring=disable
3051 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3052echo "configure:3053: checking for --${enablestring:-enable}-compat24" >&5
3053 no_cache=0
3054 # Check whether --enable-compat24 or --disable-compat24 was given.
3055if test "${enable_compat24+set}" = set; then
3056 enableval="$enable_compat24"
3057
3058 if test "$enableval" = yes; then
3059 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3060 else
3061 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3062 fi
3063
3064else
3065
3066 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3074
3075fi
3076
3077
3078 eval "$ac_cv_use_compat24"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3084 echo "$ac_t""yes" 1>&6
3085 else
3086 echo "$ac_t""no" 1>&6
3087 fi
3088
3089
3bd8fb5f
RD
3090# Check whether --enable-rpath or --disable-rpath was given.
3091if test "${enable_rpath+set}" = set; then
3092 enableval="$enable_rpath"
3093 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3094fi
3095
3bd8fb5f
RD
3096
3097if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3098 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3099fi
3100
8284b0c5
MB
3101
3102
3103
5005acfe
VZ
3104 enablestring=
3105 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
65d8ef1e 3106echo "configure:3107: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3107 no_cache=0
3108 # Check whether --enable-intl or --disable-intl was given.
3109if test "${enable_intl+set}" = set; then
3110 enableval="$enable_intl"
a0b9e27f 3111
10f2d63a
VZ
3112 if test "$enableval" = yes; then
3113 ac_cv_use_intl='wxUSE_INTL=yes'
3114 else
3115 ac_cv_use_intl='wxUSE_INTL=no'
3116 fi
a0b9e27f 3117
10f2d63a 3118else
a0b9e27f 3119
10f2d63a
VZ
3120 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3128
3129fi
10f2d63a
VZ
3130
3131
3132 eval "$ac_cv_use_intl"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3138 echo "$ac_t""yes" 1>&6
10f2d63a 3139 else
a0b9e27f 3140 echo "$ac_t""no" 1>&6
10f2d63a 3141 fi
a0b9e27f 3142
10f2d63a 3143
5005acfe
VZ
3144 enablestring=
3145 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
65d8ef1e 3146echo "configure:3147: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3147 no_cache=0
3148 # Check whether --enable-config or --disable-config was given.
3149if test "${enable_config+set}" = set; then
3150 enableval="$enable_config"
a0b9e27f 3151
10f2d63a
VZ
3152 if test "$enableval" = yes; then
3153 ac_cv_use_config='wxUSE_CONFIG=yes'
3154 else
3155 ac_cv_use_config='wxUSE_CONFIG=no'
3156 fi
a0b9e27f 3157
10f2d63a 3158else
a0b9e27f 3159
10f2d63a
VZ
3160 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3168
3169fi
10f2d63a
VZ
3170
3171
3172 eval "$ac_cv_use_config"
3173 if test "$no_cache" != 1; then
3174 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3175 fi
3176
3177 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3178 echo "$ac_t""yes" 1>&6
10f2d63a 3179 else
a0b9e27f 3180 echo "$ac_t""no" 1>&6
10f2d63a 3181 fi
a0b9e27f 3182
52127426 3183
8284b0c5 3184
5005acfe
VZ
3185 enablestring=
3186 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
65d8ef1e 3187echo "configure:3188: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3188 no_cache=0
3189 # Check whether --enable-protocols or --disable-protocols was given.
3190if test "${enable_protocols+set}" = set; then
3191 enableval="$enable_protocols"
a0b9e27f 3192
a1622950
VZ
3193 if test "$enableval" = yes; then
3194 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3195 else
3196 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3197 fi
a0b9e27f 3198
a1622950 3199else
a0b9e27f 3200
a1622950
VZ
3201 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3209
3210fi
a1622950
VZ
3211
3212
3213 eval "$ac_cv_use_protocols"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3219 echo "$ac_t""yes" 1>&6
a1622950 3220 else
a0b9e27f 3221 echo "$ac_t""no" 1>&6
a1622950 3222 fi
a0b9e27f 3223
a1622950 3224
5005acfe
VZ
3225 enablestring=
3226 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
65d8ef1e 3227echo "configure:3228: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3228 no_cache=0
3229 # Check whether --enable-ftp or --disable-ftp was given.
3230if test "${enable_ftp+set}" = set; then
3231 enableval="$enable_ftp"
a0b9e27f 3232
a1622950
VZ
3233 if test "$enableval" = yes; then
3234 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3235 else
3236 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3237 fi
a0b9e27f 3238
a1622950 3239else
a0b9e27f 3240
a1622950
VZ
3241 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3249
3250fi
a1622950
VZ
3251
3252
3253 eval "$ac_cv_use_ftp"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3259 echo "$ac_t""yes" 1>&6
a1622950 3260 else
a0b9e27f 3261 echo "$ac_t""no" 1>&6
a1622950 3262 fi
a0b9e27f 3263
a1622950 3264
5005acfe
VZ
3265 enablestring=
3266 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
65d8ef1e 3267echo "configure:3268: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3268 no_cache=0
3269 # Check whether --enable-http or --disable-http was given.
3270if test "${enable_http+set}" = set; then
3271 enableval="$enable_http"
a0b9e27f 3272
a1622950
VZ
3273 if test "$enableval" = yes; then
3274 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3275 else
3276 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3277 fi
a0b9e27f 3278
a1622950 3279else
a0b9e27f 3280
a1622950
VZ
3281 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3289
3290fi
a1622950
VZ
3291
3292
3293 eval "$ac_cv_use_http"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3299 echo "$ac_t""yes" 1>&6
a1622950 3300 else
a0b9e27f 3301 echo "$ac_t""no" 1>&6
a1622950 3302 fi
a0b9e27f 3303
a1622950 3304
5005acfe
VZ
3305 enablestring=
3306 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
65d8ef1e 3307echo "configure:3308: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3308 no_cache=0
3309 # Check whether --enable-fileproto or --disable-fileproto was given.
3310if test "${enable_fileproto+set}" = set; then
3311 enableval="$enable_fileproto"
a0b9e27f 3312
a1622950
VZ
3313 if test "$enableval" = yes; then
3314 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3315 else
3316 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3317 fi
a0b9e27f 3318
a1622950 3319else
a0b9e27f 3320
a1622950
VZ
3321 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3329
3330fi
a1622950
VZ
3331
3332
3333 eval "$ac_cv_use_fileproto"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3339 echo "$ac_t""yes" 1>&6
a1622950 3340 else
a0b9e27f 3341 echo "$ac_t""no" 1>&6
a1622950 3342 fi
a0b9e27f 3343
a1622950 3344
5005acfe
VZ
3345 enablestring=
3346 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
65d8ef1e 3347echo "configure:3348: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3348 no_cache=0
3349 # Check whether --enable-sockets or --disable-sockets was given.
3350if test "${enable_sockets+set}" = set; then
3351 enableval="$enable_sockets"
a0b9e27f 3352
10f2d63a
VZ
3353 if test "$enableval" = yes; then
3354 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3355 else
3356 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3357 fi
a0b9e27f 3358
10f2d63a 3359else
a0b9e27f 3360
10f2d63a
VZ
3361 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3369
3370fi
10f2d63a
VZ
3371
3372
3373 eval "$ac_cv_use_sockets"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3379 echo "$ac_t""yes" 1>&6
10f2d63a 3380 else
a0b9e27f 3381 echo "$ac_t""no" 1>&6
10f2d63a 3382 fi
a0b9e27f 3383
8284b0c5 3384
5005acfe
VZ
3385 enablestring=
3386 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
65d8ef1e 3387echo "configure:3388: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3388 no_cache=0
3389 # Check whether --enable-ole or --disable-ole was given.
3390if test "${enable_ole+set}" = set; then
3391 enableval="$enable_ole"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_ole='wxUSE_OLE=yes'
3395 else
3396 ac_cv_use_ole='wxUSE_OLE=no'
3397 fi
3398
3399else
3400
3401 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3409
3410fi
3411
3412
3413 eval "$ac_cv_use_ole"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_OLE" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
5005acfe
VZ
3425 enablestring=
3426 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
65d8ef1e 3427echo "configure:3428: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3428 no_cache=0
3429 # Check whether --enable-dataobj or --disable-dataobj was given.
3430if test "${enable_dataobj+set}" = set; then
3431 enableval="$enable_dataobj"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3435 else
3436 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3437 fi
3438
3439else
3440
3441 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3449
3450fi
3451
3452
3453 eval "$ac_cv_use_dataobj"
3454 if test "$no_cache" != 1; then
3455 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3456 fi
3457
3458 if test "$wxUSE_DATAOBJ" = yes; then
3459 echo "$ac_t""yes" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 fi
3463
3464
52127426 3465
5005acfe
VZ
3466 enablestring=
3467 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
65d8ef1e 3468echo "configure:3469: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3469 no_cache=0
eb4efbdc
VZ
3470 # Check whether --enable-ipc or --disable-ipc was given.
3471if test "${enable_ipc+set}" = set; then
3472 enableval="$enable_ipc"
a0b9e27f 3473
10f2d63a 3474 if test "$enableval" = yes; then
eb4efbdc 3475 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3476 else
eb4efbdc 3477 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3478 fi
a0b9e27f 3479
10f2d63a 3480else
a0b9e27f 3481
eb4efbdc 3482 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
eb4efbdc 3489 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3490
3491fi
10f2d63a
VZ
3492
3493
eb4efbdc 3494 eval "$ac_cv_use_ipc"
10f2d63a 3495 if test "$no_cache" != 1; then
eb4efbdc 3496 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3497 fi
3498
eb4efbdc 3499 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3500 echo "$ac_t""yes" 1>&6
10f2d63a 3501 else
a0b9e27f 3502 echo "$ac_t""no" 1>&6
10f2d63a 3503 fi
a0b9e27f 3504
52127426 3505
8284b0c5 3506
5005acfe
VZ
3507 enablestring=
3508 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
65d8ef1e 3509echo "configure:3510: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3510 no_cache=0
3511 # Check whether --enable-cmdline or --disable-cmdline was given.
3512if test "${enable_cmdline+set}" = set; then
3513 enableval="$enable_cmdline"
a0b9e27f 3514
1e6feb95
VZ
3515 if test "$enableval" = yes; then
3516 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3517 else
3518 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3519 fi
a0b9e27f 3520
1e6feb95 3521else
a0b9e27f 3522
1e6feb95
VZ
3523 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3531
3532fi
1e6feb95
VZ
3533
3534
3535 eval "$ac_cv_use_cmdline"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3541 echo "$ac_t""yes" 1>&6
1e6feb95 3542 else
a0b9e27f 3543 echo "$ac_t""no" 1>&6
1e6feb95 3544 fi
a0b9e27f 3545
1e6feb95 3546
5005acfe
VZ
3547 enablestring=
3548 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
65d8ef1e 3549echo "configure:3550: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3550 no_cache=0
3551 # Check whether --enable-datetime or --disable-datetime was given.
3552if test "${enable_datetime+set}" = set; then
3553 enableval="$enable_datetime"
a0b9e27f 3554
1e6feb95
VZ
3555 if test "$enableval" = yes; then
3556 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3557 else
3558 ac_cv_use_datetime='wxUSE_DATETIME=no'
3559 fi
a0b9e27f 3560
1e6feb95 3561else
a0b9e27f 3562
1e6feb95
VZ
3563 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3571
3572fi
1e6feb95
VZ
3573
3574
3575 eval "$ac_cv_use_datetime"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3581 echo "$ac_t""yes" 1>&6
1e6feb95 3582 else
a0b9e27f 3583 echo "$ac_t""no" 1>&6
1e6feb95 3584 fi
a0b9e27f 3585
1e6feb95 3586
5005acfe
VZ
3587 enablestring=
3588 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
65d8ef1e 3589echo "configure:3590: checking for --${enablestring:-enable}-timedate" >&5
1e6feb95
VZ
3590 no_cache=0
3591 # Check whether --enable-timedate or --disable-timedate was given.
3592if test "${enable_timedate+set}" = set; then
3593 enableval="$enable_timedate"
a0b9e27f 3594
1e6feb95
VZ
3595 if test "$enableval" = yes; then
3596 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3597 else
3598 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3599 fi
a0b9e27f 3600
1e6feb95 3601else
a0b9e27f 3602
1e6feb95
VZ
3603 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
a0b9e27f
MB
3611
3612fi
1e6feb95
VZ
3613
3614
3615 eval "$ac_cv_use_timedate"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_TIMEDATE" = yes; then
a0b9e27f 3621 echo "$ac_t""yes" 1>&6
1e6feb95 3622 else
a0b9e27f 3623 echo "$ac_t""no" 1>&6
1e6feb95 3624 fi
a0b9e27f 3625
1e6feb95 3626
5005acfe
VZ
3627 enablestring=
3628 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
65d8ef1e 3629echo "configure:3630: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3630 no_cache=0
3631 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3632if test "${enable_stopwatch+set}" = set; then
3633 enableval="$enable_stopwatch"
a0b9e27f 3634
1e6feb95
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3637 else
3638 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3639 fi
a0b9e27f 3640
1e6feb95 3641else
a0b9e27f 3642
1e6feb95
VZ
3643 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3651
3652fi
1e6feb95
VZ
3653
3654
3655 eval "$ac_cv_use_stopwatch"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3661 echo "$ac_t""yes" 1>&6
1e6feb95 3662 else
a0b9e27f 3663 echo "$ac_t""no" 1>&6
1e6feb95 3664 fi
a0b9e27f 3665
1e6feb95 3666
5005acfe
VZ
3667 enablestring=
3668 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
65d8ef1e 3669echo "configure:3670: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3670 no_cache=0
eb4efbdc
VZ
3671 # Check whether --enable-dialupman or --disable-dialupman was given.
3672if test "${enable_dialupman+set}" = set; then
3673 enableval="$enable_dialupman"
a0b9e27f 3674
10f2d63a 3675 if test "$enableval" = yes; then
eb4efbdc 3676 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3677 else
eb4efbdc 3678 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3679 fi
a0b9e27f 3680
10f2d63a 3681else
a0b9e27f 3682
eb4efbdc 3683 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
eb4efbdc 3690 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3691
3692fi
10f2d63a
VZ
3693
3694
eb4efbdc 3695 eval "$ac_cv_use_dialupman"
10f2d63a 3696 if test "$no_cache" != 1; then
eb4efbdc 3697 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3698 fi
3699
eb4efbdc 3700 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3701 echo "$ac_t""yes" 1>&6
10f2d63a 3702 else
a0b9e27f 3703 echo "$ac_t""no" 1>&6
10f2d63a 3704 fi
a0b9e27f 3705
10f2d63a 3706
5005acfe
VZ
3707 enablestring=
3708 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
65d8ef1e 3709echo "configure:3710: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3710 no_cache=0
3711 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3712if test "${enable_apple_ieee+set}" = set; then
3713 enableval="$enable_apple_ieee"
a0b9e27f 3714
10f2d63a
VZ
3715 if test "$enableval" = yes; then
3716 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3717 else
3718 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3719 fi
a0b9e27f 3720
10f2d63a 3721else
a0b9e27f 3722
10f2d63a
VZ
3723 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3731
3732fi
10f2d63a
VZ
3733
3734
3735 eval "$ac_cv_use_apple_ieee"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3741 echo "$ac_t""yes" 1>&6
10f2d63a 3742 else
a0b9e27f 3743 echo "$ac_t""no" 1>&6
10f2d63a 3744 fi
a0b9e27f 3745
10f2d63a 3746
5005acfe
VZ
3747 enablestring=
3748 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
65d8ef1e 3749echo "configure:3750: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3750 no_cache=0
1e6feb95
VZ
3751 # Check whether --enable-timer or --disable-timer was given.
3752if test "${enable_timer+set}" = set; then
3753 enableval="$enable_timer"
a0b9e27f 3754
10f2d63a 3755 if test "$enableval" = yes; then
1e6feb95 3756 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3757 else
1e6feb95 3758 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3759 fi
a0b9e27f 3760
10f2d63a 3761else
a0b9e27f 3762
1e6feb95 3763 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
1e6feb95 3770 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3771
3772fi
10f2d63a
VZ
3773
3774
1e6feb95 3775 eval "$ac_cv_use_timer"
10f2d63a 3776 if test "$no_cache" != 1; then
1e6feb95 3777 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3778 fi
3779
1e6feb95 3780 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3781 echo "$ac_t""yes" 1>&6
10f2d63a 3782 else
a0b9e27f 3783 echo "$ac_t""no" 1>&6
10f2d63a 3784 fi
a0b9e27f 3785
10f2d63a 3786
5005acfe
VZ
3787 enablestring=
3788 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
65d8ef1e 3789echo "configure:3790: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3790 no_cache=0
3791 # Check whether --enable-wave or --disable-wave was given.
3792if test "${enable_wave+set}" = set; then
3793 enableval="$enable_wave"
a0b9e27f 3794
10f2d63a
VZ
3795 if test "$enableval" = yes; then
3796 ac_cv_use_wave='wxUSE_WAVE=yes'
3797 else
3798 ac_cv_use_wave='wxUSE_WAVE=no'
3799 fi
a0b9e27f 3800
10f2d63a 3801else
a0b9e27f 3802
10f2d63a
VZ
3803 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3811
3812fi
10f2d63a
VZ
3813
3814
3815 eval "$ac_cv_use_wave"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3821 echo "$ac_t""yes" 1>&6
10f2d63a 3822 else
a0b9e27f 3823 echo "$ac_t""no" 1>&6
10f2d63a 3824 fi
a0b9e27f 3825
10f2d63a 3826
5005acfe
VZ
3827 enablestring=
3828 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
65d8ef1e 3829echo "configure:3830: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3830 no_cache=0
3831 # Check whether --enable-fraction or --disable-fraction was given.
3832if test "${enable_fraction+set}" = set; then
3833 enableval="$enable_fraction"
a0b9e27f 3834
10f2d63a
VZ
3835 if test "$enableval" = yes; then
3836 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3837 else
3838 ac_cv_use_fraction='wxUSE_FRACTION=no'
3839 fi
a0b9e27f 3840
10f2d63a 3841else
a0b9e27f 3842
10f2d63a
VZ
3843 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3851
3852fi
10f2d63a
VZ
3853
3854
3855 eval "$ac_cv_use_fraction"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3861 echo "$ac_t""yes" 1>&6
10f2d63a 3862 else
a0b9e27f 3863 echo "$ac_t""no" 1>&6
10f2d63a 3864 fi
a0b9e27f 3865
10f2d63a 3866
5005acfe
VZ
3867 enablestring=
3868 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
65d8ef1e 3869echo "configure:3870: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3870 no_cache=0
3871 # Check whether --enable-dynlib or --disable-dynlib was given.
3872if test "${enable_dynlib+set}" = set; then
3873 enableval="$enable_dynlib"
a0b9e27f 3874
10f2d63a
VZ
3875 if test "$enableval" = yes; then
3876 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3877 else
3878 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3879 fi
a0b9e27f 3880
10f2d63a 3881else
a0b9e27f 3882
10f2d63a
VZ
3883 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3891
3892fi
10f2d63a
VZ
3893
3894
3895 eval "$ac_cv_use_dynlib"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3901 echo "$ac_t""yes" 1>&6
10f2d63a 3902 else
a0b9e27f 3903 echo "$ac_t""no" 1>&6
10f2d63a 3904 fi
a0b9e27f 3905
10f2d63a 3906
5005acfe
VZ
3907 enablestring=
3908 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
65d8ef1e 3909echo "configure:3910: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3910 no_cache=0
3911 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3912if test "${enable_dynamicloader+set}" = set; then
3913 enableval="$enable_dynamicloader"
a0b9e27f 3914
0b9ab0bd
RL
3915 if test "$enableval" = yes; then
3916 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3917 else
3918 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3919 fi
a0b9e27f 3920
0b9ab0bd 3921else
a0b9e27f 3922
0b9ab0bd
RL
3923 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3931
3932fi
0b9ab0bd
RL
3933
3934
3935 eval "$ac_cv_use_dynamicloader"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3941 echo "$ac_t""yes" 1>&6
0b9ab0bd 3942 else
a0b9e27f 3943 echo "$ac_t""no" 1>&6
0b9ab0bd 3944 fi
a0b9e27f 3945
0b9ab0bd 3946
5005acfe
VZ
3947 enablestring=
3948 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
65d8ef1e 3949echo "configure:3950: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3950 no_cache=0
3951 # Check whether --enable-longlong or --disable-longlong was given.
3952if test "${enable_longlong+set}" = set; then
3953 enableval="$enable_longlong"
a0b9e27f 3954
10f2d63a
VZ
3955 if test "$enableval" = yes; then
3956 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3957 else
3958 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3959 fi
a0b9e27f 3960
10f2d63a 3961else
a0b9e27f 3962
10f2d63a
VZ
3963 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3971
3972fi
10f2d63a
VZ
3973
3974
3975 eval "$ac_cv_use_longlong"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3981 echo "$ac_t""yes" 1>&6
10f2d63a 3982 else
a0b9e27f 3983 echo "$ac_t""no" 1>&6
10f2d63a 3984 fi
a0b9e27f 3985
10f2d63a 3986
5005acfe
VZ
3987 enablestring=
3988 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
65d8ef1e 3989echo "configure:3990: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3990 no_cache=0
3991 # Check whether --enable-geometry or --disable-geometry was given.
3992if test "${enable_geometry+set}" = set; then
3993 enableval="$enable_geometry"
a0b9e27f 3994
e8f65ba6
RR
3995 if test "$enableval" = yes; then
3996 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3997 else
3998 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3999 fi
a0b9e27f 4000
e8f65ba6 4001else
a0b9e27f 4002
e8f65ba6
RR
4003 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
4011
4012fi
e8f65ba6
RR
4013
4014
4015 eval "$ac_cv_use_geometry"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 4021 echo "$ac_t""yes" 1>&6
e8f65ba6 4022 else
a0b9e27f 4023 echo "$ac_t""no" 1>&6
e8f65ba6 4024 fi
a0b9e27f 4025
e8f65ba6 4026
5005acfe
VZ
4027 enablestring=
4028 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
65d8ef1e 4029echo "configure:4030: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4030 no_cache=0
4031 # Check whether --enable-log or --disable-log was given.
4032if test "${enable_log+set}" = set; then
4033 enableval="$enable_log"
a0b9e27f 4034
10f2d63a
VZ
4035 if test "$enableval" = yes; then
4036 ac_cv_use_log='wxUSE_LOG=yes'
4037 else
4038 ac_cv_use_log='wxUSE_LOG=no'
4039 fi
a0b9e27f 4040
10f2d63a 4041else
a0b9e27f 4042
10f2d63a
VZ
4043 LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4051
4052fi
10f2d63a
VZ
4053
4054
4055 eval "$ac_cv_use_log"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4061 echo "$ac_t""yes" 1>&6
10f2d63a 4062 else
a0b9e27f 4063 echo "$ac_t""no" 1>&6
10f2d63a 4064 fi
a0b9e27f 4065
10f2d63a 4066
5005acfe
VZ
4067 enablestring=
4068 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
65d8ef1e 4069echo "configure:4070: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4070 no_cache=0
4071 # Check whether --enable-streams or --disable-streams was given.
4072if test "${enable_streams+set}" = set; then
4073 enableval="$enable_streams"
a0b9e27f 4074
10f2d63a
VZ
4075 if test "$enableval" = yes; then
4076 ac_cv_use_streams='wxUSE_STREAMS=yes'
4077 else
4078 ac_cv_use_streams='wxUSE_STREAMS=no'
4079 fi
a0b9e27f 4080
10f2d63a 4081else
a0b9e27f 4082
10f2d63a
VZ
4083 LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4091
4092fi
10f2d63a
VZ
4093
4094
4095 eval "$ac_cv_use_streams"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4101 echo "$ac_t""yes" 1>&6
10f2d63a 4102 else
a0b9e27f 4103 echo "$ac_t""no" 1>&6
10f2d63a 4104 fi
a0b9e27f 4105
10f2d63a 4106
5005acfe
VZ
4107 enablestring=
4108 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
65d8ef1e 4109echo "configure:4110: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4110 no_cache=0
4111 # Check whether --enable-file or --disable-file was given.
4112if test "${enable_file+set}" = set; then
4113 enableval="$enable_file"
a0b9e27f 4114
10f2d63a
VZ
4115 if test "$enableval" = yes; then
4116 ac_cv_use_file='wxUSE_FILE=yes'
4117 else
4118 ac_cv_use_file='wxUSE_FILE=no'
4119 fi
a0b9e27f 4120
10f2d63a 4121else
a0b9e27f 4122
10f2d63a
VZ
4123 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4131
4132fi
10f2d63a
VZ
4133
4134
4135 eval "$ac_cv_use_file"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4141 echo "$ac_t""yes" 1>&6
10f2d63a 4142 else
a0b9e27f 4143 echo "$ac_t""no" 1>&6
10f2d63a 4144 fi
a0b9e27f 4145
10f2d63a 4146
5005acfe
VZ
4147 enablestring=
4148 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
65d8ef1e 4149echo "configure:4150: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4150 no_cache=0
1e6feb95
VZ
4151 # Check whether --enable-ffile or --disable-ffile was given.
4152if test "${enable_ffile+set}" = set; then
4153 enableval="$enable_ffile"
a0b9e27f 4154
10f2d63a 4155 if test "$enableval" = yes; then
1e6feb95 4156 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4157 else
1e6feb95 4158 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4159 fi
a0b9e27f 4160
10f2d63a 4161else
a0b9e27f 4162
1e6feb95 4163 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
1e6feb95 4170 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4171
4172fi
10f2d63a
VZ
4173
4174
1e6feb95 4175 eval "$ac_cv_use_ffile"
10f2d63a 4176 if test "$no_cache" != 1; then
1e6feb95 4177 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4178 fi
4179
1e6feb95 4180 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4181 echo "$ac_t""yes" 1>&6
10f2d63a 4182 else
a0b9e27f 4183 echo "$ac_t""no" 1>&6
10f2d63a 4184 fi
a0b9e27f 4185
10f2d63a 4186
5005acfe
VZ
4187 enablestring=
4188 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
65d8ef1e 4189echo "configure:4190: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4190 no_cache=0
4191 # Check whether --enable-textbuf or --disable-textbuf was given.
4192if test "${enable_textbuf+set}" = set; then
4193 enableval="$enable_textbuf"
a0b9e27f 4194
a3a584a7
VZ
4195 if test "$enableval" = yes; then
4196 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4197 else
4198 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4199 fi
a0b9e27f 4200
a3a584a7 4201else
a0b9e27f 4202
a3a584a7
VZ
4203 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4211
4212fi
a3a584a7
VZ
4213
4214
4215 eval "$ac_cv_use_textbuf"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4221 echo "$ac_t""yes" 1>&6
a3a584a7 4222 else
a0b9e27f 4223 echo "$ac_t""no" 1>&6
a3a584a7 4224 fi
a0b9e27f 4225
a3a584a7 4226
5005acfe
VZ
4227 enablestring=
4228 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
65d8ef1e 4229echo "configure:4230: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4230 no_cache=0
1e6feb95
VZ
4231 # Check whether --enable-textfile or --disable-textfile was given.
4232if test "${enable_textfile+set}" = set; then
4233 enableval="$enable_textfile"
a0b9e27f 4234
10f2d63a 4235 if test "$enableval" = yes; then
1e6feb95 4236 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4237 else
1e6feb95 4238 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4239 fi
a0b9e27f 4240
10f2d63a 4241else
a0b9e27f 4242
1e6feb95 4243 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
1e6feb95 4250 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4251
4252fi
10f2d63a
VZ
4253
4254
1e6feb95 4255 eval "$ac_cv_use_textfile"
10f2d63a 4256 if test "$no_cache" != 1; then
1e6feb95 4257 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4258 fi
4259
1e6feb95 4260 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4261 echo "$ac_t""yes" 1>&6
10f2d63a 4262 else
a0b9e27f 4263 echo "$ac_t""no" 1>&6
10f2d63a 4264 fi
a0b9e27f 4265
10f2d63a 4266
5005acfe
VZ
4267 enablestring=
4268 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
65d8ef1e 4269echo "configure:4270: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4270 no_cache=0
1e6feb95
VZ
4271 # Check whether --enable-fontmap or --disable-fontmap was given.
4272if test "${enable_fontmap+set}" = set; then
4273 enableval="$enable_fontmap"
a0b9e27f 4274
10f2d63a 4275 if test "$enableval" = yes; then
1e6feb95 4276 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4277 else
1e6feb95 4278 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4279 fi
a0b9e27f 4280
10f2d63a 4281else
a0b9e27f 4282
1e6feb95 4283 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
1e6feb95 4290 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4291
4292fi
10f2d63a
VZ
4293
4294
1e6feb95 4295 eval "$ac_cv_use_fontmap"
10f2d63a 4296 if test "$no_cache" != 1; then
1e6feb95 4297 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4298 fi
4299
1e6feb95 4300 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4301 echo "$ac_t""yes" 1>&6
10f2d63a 4302 else
a0b9e27f 4303 echo "$ac_t""no" 1>&6
10f2d63a 4304 fi
a0b9e27f 4305
10f2d63a 4306
5005acfe
VZ
4307 enablestring=
4308 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
65d8ef1e 4309echo "configure:4310: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4310 no_cache=0
1e6feb95
VZ
4311 # Check whether --enable-unicode or --disable-unicode was given.
4312if test "${enable_unicode+set}" = set; then
4313 enableval="$enable_unicode"
a0b9e27f 4314
1e6feb95
VZ
4315 if test "$enableval" = yes; then
4316 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4317 else
4318 ac_cv_use_unicode='wxUSE_UNICODE=no'
4319 fi
a0b9e27f 4320
1e6feb95 4321else
a0b9e27f 4322
1e6feb95
VZ
4323 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4331
4332fi
1e6feb95
VZ
4333
4334
4335 eval "$ac_cv_use_unicode"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4341 echo "$ac_t""yes" 1>&6
1e6feb95 4342 else
a0b9e27f 4343 echo "$ac_t""no" 1>&6
1e6feb95 4344 fi
a0b9e27f 4345
1e6feb95 4346
5005acfe
VZ
4347 enablestring=
4348 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
65d8ef1e 4349echo "configure:4350: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4350 no_cache=0
4351 # Check whether --enable-mslu or --disable-mslu was given.
4352if test "${enable_mslu+set}" = set; then
4353 enableval="$enable_mslu"
a0b9e27f 4354
a72a4bfa
VS
4355 if test "$enableval" = yes; then
4356 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4357 else
4358 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4359 fi
a0b9e27f 4360
a72a4bfa 4361else
a0b9e27f 4362
a72a4bfa
VS
4363 LINE=`grep "wxUSE_UNICODE_MSLU" ${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_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4371
4372fi
a72a4bfa
VS
4373
4374
4375 eval "$ac_cv_use_mslu"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4381 echo "$ac_t""yes" 1>&6
a72a4bfa 4382 else
a0b9e27f 4383 echo "$ac_t""no" 1>&6
a72a4bfa 4384 fi
a0b9e27f 4385
a72a4bfa 4386
5005acfe
VZ
4387 enablestring=
4388 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
65d8ef1e 4389echo "configure:4390: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4390 no_cache=0
4391 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4392if test "${enable_wxprintfv+set}" = set; then
4393 enableval="$enable_wxprintfv"
a0b9e27f 4394
1e6feb95 4395 if test "$enableval" = yes; then
10f2d63a
VZ
4396 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4397 else
4398 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4399 fi
a0b9e27f 4400
10f2d63a 4401else
a0b9e27f 4402
10f2d63a
VZ
4403 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4411
4412fi
10f2d63a
VZ
4413
4414
4415 eval "$ac_cv_use_wxprintfv"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4421 echo "$ac_t""yes" 1>&6
10f2d63a 4422 else
a0b9e27f 4423 echo "$ac_t""no" 1>&6
10f2d63a 4424 fi
a0b9e27f 4425
10f2d63a 4426
5005acfe
VZ
4427 enablestring=
4428 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
65d8ef1e 4429echo "configure:4430: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4430 no_cache=0
4431 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4432if test "${enable_std_iostreams+set}" = set; then
4433 enableval="$enable_std_iostreams"
a0b9e27f 4434
10f2d63a
VZ
4435 if test "$enableval" = yes; then
4436 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4437 else
4438 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4439 fi
a0b9e27f 4440
10f2d63a 4441else
a0b9e27f 4442
10f2d63a
VZ
4443 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4451
4452fi
10f2d63a
VZ
4453
4454
4455 eval "$ac_cv_use_std_iostreams"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4461 echo "$ac_t""yes" 1>&6
10f2d63a 4462 else
a0b9e27f 4463 echo "$ac_t""no" 1>&6
10f2d63a 4464 fi
a0b9e27f 4465
10f2d63a 4466
5005acfe
VZ
4467 enablestring=
4468 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
65d8ef1e 4469echo "configure:4470: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4470 no_cache=0
4471 # Check whether --enable-filesystem or --disable-filesystem was given.
4472if test "${enable_filesystem+set}" = set; then
4473 enableval="$enable_filesystem"
a0b9e27f 4474
24528b0c
VS
4475 if test "$enableval" = yes; then
4476 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4477 else
4478 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4479 fi
a0b9e27f 4480
24528b0c 4481else
a0b9e27f 4482
24528b0c
VS
4483 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4491
4492fi
24528b0c
VS
4493
4494
4495 eval "$ac_cv_use_filesystem"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4501 echo "$ac_t""yes" 1>&6
24528b0c 4502 else
a0b9e27f 4503 echo "$ac_t""no" 1>&6
24528b0c 4504 fi
a0b9e27f 4505
24528b0c 4506
5005acfe
VZ
4507 enablestring=
4508 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
65d8ef1e 4509echo "configure:4510: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4510 no_cache=0
4511 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4512if test "${enable_fs_inet+set}" = set; then
4513 enableval="$enable_fs_inet"
a0b9e27f 4514
10f2d63a
VZ
4515 if test "$enableval" = yes; then
4516 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4517 else
4518 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4519 fi
a0b9e27f 4520
10f2d63a 4521else
a0b9e27f 4522
10f2d63a
VZ
4523 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4531
4532fi
10f2d63a
VZ
4533
4534
4535 eval "$ac_cv_use_fs_inet"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4541 echo "$ac_t""yes" 1>&6
10f2d63a 4542 else
a0b9e27f 4543 echo "$ac_t""no" 1>&6
10f2d63a 4544 fi
a0b9e27f 4545
10f2d63a 4546
5005acfe
VZ
4547 enablestring=
4548 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
65d8ef1e 4549echo "configure:4550: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4550 no_cache=0
4551 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4552if test "${enable_fs_zip+set}" = set; then
4553 enableval="$enable_fs_zip"
a0b9e27f 4554
10f2d63a
VZ
4555 if test "$enableval" = yes; then
4556 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4557 else
4558 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4559 fi
a0b9e27f 4560
10f2d63a 4561else
a0b9e27f 4562
10f2d63a
VZ
4563 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4571
4572fi
10f2d63a
VZ
4573
4574
4575 eval "$ac_cv_use_fs_zip"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4581 echo "$ac_t""yes" 1>&6
10f2d63a 4582 else
a0b9e27f 4583 echo "$ac_t""no" 1>&6
10f2d63a 4584 fi
a0b9e27f 4585
10f2d63a 4586
5005acfe
VZ
4587 enablestring=
4588 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
65d8ef1e 4589echo "configure:4590: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4590 no_cache=0
4591 # Check whether --enable-zipstream or --disable-zipstream was given.
4592if test "${enable_zipstream+set}" = set; then
4593 enableval="$enable_zipstream"
a0b9e27f 4594
10f2d63a
VZ
4595 if test "$enableval" = yes; then
4596 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4597 else
4598 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4599 fi
a0b9e27f 4600
10f2d63a 4601else
a0b9e27f 4602
10f2d63a
VZ
4603 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4611
4612fi
10f2d63a
VZ
4613
4614
4615 eval "$ac_cv_use_zipstream"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4621 echo "$ac_t""yes" 1>&6
10f2d63a 4622 else
a0b9e27f 4623 echo "$ac_t""no" 1>&6
10f2d63a 4624 fi
a0b9e27f 4625
8284b0c5 4626
52127426 4627
5005acfe
VZ
4628 enablestring=
4629 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
65d8ef1e 4630echo "configure:4631: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4631 no_cache=0
4632 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4633if test "${enable_catch_segvs+set}" = set; then
4634 enableval="$enable_catch_segvs"
a0b9e27f 4635
eb4efbdc
VZ
4636 if test "$enableval" = yes; then
4637 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4638 else
4639 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4640 fi
a0b9e27f 4641
eb4efbdc 4642else
a0b9e27f 4643
eb4efbdc
VZ
4644 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4652
4653fi
eb4efbdc
VZ
4654
4655
4656 eval "$ac_cv_use_catch_segvs"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4662 echo "$ac_t""yes" 1>&6
eb4efbdc 4663 else
a0b9e27f 4664 echo "$ac_t""no" 1>&6
eb4efbdc 4665 fi
a0b9e27f 4666
eb4efbdc 4667
5005acfe
VZ
4668 enablestring=
4669 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
65d8ef1e 4670echo "configure:4671: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4671 no_cache=0
4672 # Check whether --enable-snglinst or --disable-snglinst was given.
4673if test "${enable_snglinst+set}" = set; then
4674 enableval="$enable_snglinst"
a0b9e27f 4675
4f3c5f06
VZ
4676 if test "$enableval" = yes; then
4677 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4678 else
4679 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4680 fi
a0b9e27f 4681
4f3c5f06 4682else
a0b9e27f 4683
4f3c5f06
VZ
4684 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4685 if test "x$LINE" != x ; then
4686 eval "DEFAULT_$LINE"
4687 else
4688 no_cache=1
4689 fi
4690
4691 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4692
4693fi
4f3c5f06
VZ
4694
4695
4696 eval "$ac_cv_use_snglinst"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4702 echo "$ac_t""yes" 1>&6
4f3c5f06 4703 else
a0b9e27f 4704 echo "$ac_t""no" 1>&6
4f3c5f06 4705 fi
a0b9e27f 4706
52127426 4707
8284b0c5 4708
5005acfe
VZ
4709 enablestring=
4710 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
65d8ef1e 4711echo "configure:4712: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4712 no_cache=0
4713 # Check whether --enable-mimetype or --disable-mimetype was given.
4714if test "${enable_mimetype+set}" = set; then
4715 enableval="$enable_mimetype"
a0b9e27f 4716
1e6feb95
VZ
4717 if test "$enableval" = yes; then
4718 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4719 else
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4721 fi
a0b9e27f 4722
1e6feb95 4723else
a0b9e27f 4724
1e6feb95
VZ
4725 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4733
4734fi
1e6feb95
VZ
4735
4736
4737 eval "$ac_cv_use_mimetype"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4743 echo "$ac_t""yes" 1>&6
1e6feb95 4744 else
a0b9e27f 4745 echo "$ac_t""no" 1>&6
1e6feb95 4746 fi
a0b9e27f 4747
1e6feb95 4748
5005acfe
VZ
4749 enablestring=
4750 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
65d8ef1e 4751echo "configure:4752: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4752 no_cache=0
4753 # Check whether --enable-system_options or --disable-system_options was given.
4754if test "${enable_system_options+set}" = set; then
4755 enableval="$enable_system_options"
a0b9e27f 4756
3e44f09d
VZ
4757 if test "$enableval" = yes; then
4758 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4759 else
4760 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4761 fi
a0b9e27f 4762
3e44f09d 4763else
a0b9e27f 4764
3e44f09d
VZ
4765 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4766 if test "x$LINE" != x ; then
4767 eval "DEFAULT_$LINE"
4768 else
4769 no_cache=1
4770 fi
4771
4772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4773
4774fi
3e44f09d
VZ
4775
4776
4777 eval "$ac_cv_use_system_options"
4778 if test "$no_cache" != 1; then
4779 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4780 fi
4781
4782 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4783 echo "$ac_t""yes" 1>&6
3e44f09d 4784 else
a0b9e27f 4785 echo "$ac_t""no" 1>&6
3e44f09d 4786 fi
a0b9e27f 4787
8284b0c5 4788
52127426 4789
5005acfe
VZ
4790 enablestring=
4791 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
65d8ef1e 4792echo "configure:4793: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4793 no_cache=0
4794 # Check whether --enable-url or --disable-url was given.
4795if test "${enable_url+set}" = set; then
4796 enableval="$enable_url"
a0b9e27f 4797
4cdb0ab0
VS
4798 if test "$enableval" = yes; then
4799 ac_cv_use_url='wxUSE_URL=yes'
4800 else
4801 ac_cv_use_url='wxUSE_URL=no'
4802 fi
a0b9e27f 4803
4cdb0ab0 4804else
a0b9e27f 4805
4cdb0ab0
VS
4806 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4814
4815fi
4cdb0ab0
VS
4816
4817
4818 eval "$ac_cv_use_url"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_URL" = yes; then
a0b9e27f 4824 echo "$ac_t""yes" 1>&6
4cdb0ab0 4825 else
a0b9e27f 4826 echo "$ac_t""no" 1>&6
4cdb0ab0 4827 fi
a0b9e27f 4828
4cdb0ab0 4829
5005acfe
VZ
4830 enablestring=
4831 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
65d8ef1e 4832echo "configure:4833: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4833 no_cache=0
4834 # Check whether --enable-protocol or --disable-protocol was given.
4835if test "${enable_protocol+set}" = set; then
4836 enableval="$enable_protocol"
a0b9e27f 4837
4cdb0ab0
VS
4838 if test "$enableval" = yes; then
4839 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4840 else
4841 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4842 fi
a0b9e27f 4843
4cdb0ab0 4844else
a0b9e27f 4845
4cdb0ab0
VS
4846 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4854
4855fi
4cdb0ab0
VS
4856
4857
4858 eval "$ac_cv_use_protocol"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4864 echo "$ac_t""yes" 1>&6
4cdb0ab0 4865 else
a0b9e27f 4866 echo "$ac_t""no" 1>&6
4cdb0ab0 4867 fi
a0b9e27f 4868
4cdb0ab0 4869
5005acfe
VZ
4870 enablestring=
4871 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
65d8ef1e 4872echo "configure:4873: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4873 no_cache=0
4874 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4875if test "${enable_protocol_http+set}" = set; then
4876 enableval="$enable_protocol_http"
a0b9e27f 4877
4cdb0ab0
VS
4878 if test "$enableval" = yes; then
4879 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4880 else
4881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4882 fi
a0b9e27f 4883
4cdb0ab0 4884else
a0b9e27f 4885
4cdb0ab0
VS
4886 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4894
4895fi
4cdb0ab0
VS
4896
4897
4898 eval "$ac_cv_use_protocol_http"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4904 echo "$ac_t""yes" 1>&6
4cdb0ab0 4905 else
a0b9e27f 4906 echo "$ac_t""no" 1>&6
4cdb0ab0 4907 fi
a0b9e27f 4908
4cdb0ab0 4909
5005acfe
VZ
4910 enablestring=
4911 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
65d8ef1e 4912echo "configure:4913: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4913 no_cache=0
4914 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4915if test "${enable_protocol_ftp+set}" = set; then
4916 enableval="$enable_protocol_ftp"
a0b9e27f 4917
4cdb0ab0
VS
4918 if test "$enableval" = yes; then
4919 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4920 else
4921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4922 fi
a0b9e27f 4923
4cdb0ab0 4924else
a0b9e27f 4925
4cdb0ab0
VS
4926 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4934
4935fi
4cdb0ab0
VS
4936
4937
4938 eval "$ac_cv_use_protocol_ftp"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4944 echo "$ac_t""yes" 1>&6
4cdb0ab0 4945 else
a0b9e27f 4946 echo "$ac_t""no" 1>&6
4cdb0ab0 4947 fi
a0b9e27f 4948
4cdb0ab0 4949
5005acfe
VZ
4950 enablestring=
4951 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
65d8ef1e 4952echo "configure:4953: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4953 no_cache=0
4954 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4955if test "${enable_protocol_file+set}" = set; then
4956 enableval="$enable_protocol_file"
a0b9e27f 4957
4cdb0ab0
VS
4958 if test "$enableval" = yes; then
4959 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4960 else
4961 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4962 fi
a0b9e27f 4963
4cdb0ab0 4964else
a0b9e27f 4965
4cdb0ab0
VS
4966 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
4973 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4974
4975fi
4cdb0ab0
VS
4976
4977
4978 eval "$ac_cv_use_protocol_file"
4979 if test "$no_cache" != 1; then
4980 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4981 fi
4982
4983 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4984 echo "$ac_t""yes" 1>&6
4cdb0ab0 4985 else
a0b9e27f 4986 echo "$ac_t""no" 1>&6
4cdb0ab0 4987 fi
a0b9e27f 4988
52127426 4989
8284b0c5
MB
4990
4991
4992
5005acfe
VZ
4993 enablestring=
4994 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
65d8ef1e 4995echo "configure:4996: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4996 no_cache=0
4997 # Check whether --enable-threads or --disable-threads was given.
4998if test "${enable_threads+set}" = set; then
4999 enableval="$enable_threads"
a0b9e27f 5000
10f2d63a
VZ
5001 if test "$enableval" = yes; then
5002 ac_cv_use_threads='wxUSE_THREADS=yes'
5003 else
5004 ac_cv_use_threads='wxUSE_THREADS=no'
5005 fi
a0b9e27f 5006
10f2d63a 5007else
a0b9e27f 5008
10f2d63a
VZ
5009 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5010 if test "x$LINE" != x ; then
5011 eval "DEFAULT_$LINE"
5012 else
5013 no_cache=1
5014 fi
5015
5016 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
5017
5018fi
10f2d63a
VZ
5019
5020
5021 eval "$ac_cv_use_threads"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5027 echo "$ac_t""yes" 1>&6
10f2d63a 5028 else
a0b9e27f 5029 echo "$ac_t""no" 1>&6
10f2d63a 5030 fi
a0b9e27f 5031
10f2d63a 5032
b12915c1
VZ
5033if test "$wxUSE_GUI" = "yes"; then
5034
8284b0c5
MB
5035
5036
5005acfe
VZ
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
65d8ef1e 5039echo "configure:5040: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-docview or --disable-docview was given.
5042if test "${enable_docview+set}" = set; then
5043 enableval="$enable_docview"
a0b9e27f 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5047 else
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5049 fi
a0b9e27f 5050
10f2d63a 5051else
a0b9e27f 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_docview"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
a0b9e27f 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
a0b9e27f 5075
10f2d63a 5076
5005acfe
VZ
5077 enablestring=
5078 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
65d8ef1e 5079echo "configure:5080: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5080 no_cache=0
5081 # Check whether --enable-help or --disable-help was given.
5082if test "${enable_help+set}" = set; then
5083 enableval="$enable_help"
a0b9e27f 5084
10f2d63a
VZ
5085 if test "$enableval" = yes; then
5086 ac_cv_use_help='wxUSE_HELP=yes'
5087 else
5088 ac_cv_use_help='wxUSE_HELP=no'
5089 fi
a0b9e27f 5090
10f2d63a 5091else
a0b9e27f 5092
10f2d63a
VZ
5093 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5101
5102fi
10f2d63a
VZ
5103
5104
5105 eval "$ac_cv_use_help"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5111 echo "$ac_t""yes" 1>&6
10f2d63a 5112 else
a0b9e27f 5113 echo "$ac_t""no" 1>&6
10f2d63a 5114 fi
a0b9e27f 5115
10f2d63a 5116
5005acfe
VZ
5117 enablestring=
5118 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
65d8ef1e 5119echo "configure:5120: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5120 no_cache=0
5121 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5122if test "${enable_mshtmlhelp+set}" = set; then
5123 enableval="$enable_mshtmlhelp"
a0b9e27f 5124
29fd3c0c
VS
5125 if test "$enableval" = yes; then
5126 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5127 else
5128 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5129 fi
a0b9e27f 5130
29fd3c0c 5131else
a0b9e27f 5132
29fd3c0c
VS
5133 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5141
5142fi
29fd3c0c
VS
5143
5144
5145 eval "$ac_cv_use_mshtmlhelp"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5151 echo "$ac_t""yes" 1>&6
29fd3c0c 5152 else
a0b9e27f 5153 echo "$ac_t""no" 1>&6
29fd3c0c 5154 fi
a0b9e27f 5155
29fd3c0c 5156
5005acfe
VZ
5157 enablestring=
5158 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
65d8ef1e 5159echo "configure:5160: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5160 no_cache=0
5161 # Check whether --enable-html or --disable-html was given.
5162if test "${enable_html+set}" = set; then
5163 enableval="$enable_html"
a0b9e27f 5164
3379ed37
VZ
5165 if test "$enableval" = yes; then
5166 ac_cv_use_html='wxUSE_HTML=yes'
5167 else
5168 ac_cv_use_html='wxUSE_HTML=no'
5169 fi
a0b9e27f 5170
3379ed37 5171else
a0b9e27f 5172
3379ed37
VZ
5173 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5174 if test "x$LINE" != x ; then
5175 eval "DEFAULT_$LINE"
5176 else
5177 no_cache=1
5178 fi
5179
5180 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5181
5182fi
3379ed37
VZ
5183
5184
5185 eval "$ac_cv_use_html"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5191 echo "$ac_t""yes" 1>&6
3379ed37 5192 else
a0b9e27f 5193 echo "$ac_t""no" 1>&6
3379ed37 5194 fi
a0b9e27f 5195
3379ed37 5196
5005acfe
VZ
5197 enablestring=
5198 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
65d8ef1e 5199echo "configure:5200: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5200 no_cache=0
5201 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5202if test "${enable_htmlhelp+set}" = set; then
5203 enableval="$enable_htmlhelp"
a0b9e27f 5204
3379ed37
VZ
5205 if test "$enableval" = yes; then
5206 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5207 else
5208 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5209 fi
a0b9e27f 5210
3379ed37 5211else
a0b9e27f 5212
3379ed37
VZ
5213 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5221
5222fi
3379ed37
VZ
5223
5224
5225 eval "$ac_cv_use_htmlhelp"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5231 echo "$ac_t""yes" 1>&6
3379ed37 5232 else
a0b9e27f 5233 echo "$ac_t""no" 1>&6
3379ed37 5234 fi
a0b9e27f 5235
3379ed37 5236
5005acfe
VZ
5237 enablestring=
5238 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
65d8ef1e 5239echo "configure:5240: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5240 no_cache=0
5241 # Check whether --enable-constraints or --disable-constraints was given.
5242if test "${enable_constraints+set}" = set; then
5243 enableval="$enable_constraints"
a0b9e27f 5244
10f2d63a
VZ
5245 if test "$enableval" = yes; then
5246 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5247 else
5248 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5249 fi
a0b9e27f 5250
10f2d63a 5251else
a0b9e27f 5252
10f2d63a
VZ
5253 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5261
5262fi
10f2d63a
VZ
5263
5264
5265 eval "$ac_cv_use_constraints"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5271 echo "$ac_t""yes" 1>&6
10f2d63a 5272 else
a0b9e27f 5273 echo "$ac_t""no" 1>&6
10f2d63a 5274 fi
a0b9e27f 5275
10f2d63a 5276
5005acfe
VZ
5277 enablestring=
5278 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
65d8ef1e 5279echo "configure:5280: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5280 no_cache=0
5281 # Check whether --enable-printarch or --disable-printarch was given.
5282if test "${enable_printarch+set}" = set; then
5283 enableval="$enable_printarch"
a0b9e27f 5284
10f2d63a
VZ
5285 if test "$enableval" = yes; then
5286 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5287 else
5288 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5289 fi
a0b9e27f 5290
10f2d63a 5291else
a0b9e27f 5292
10f2d63a
VZ
5293 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5301
5302fi
10f2d63a
VZ
5303
5304
5305 eval "$ac_cv_use_printarch"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5311 echo "$ac_t""yes" 1>&6
10f2d63a 5312 else
a0b9e27f 5313 echo "$ac_t""no" 1>&6
10f2d63a 5314 fi
a0b9e27f 5315
10f2d63a 5316
5005acfe
VZ
5317 enablestring=
5318 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
65d8ef1e 5319echo "configure:5320: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5320 no_cache=0
5321 # Check whether --enable-mdi or --disable-mdi was given.
5322if test "${enable_mdi+set}" = set; then
5323 enableval="$enable_mdi"
a0b9e27f 5324
10f2d63a
VZ
5325 if test "$enableval" = yes; then
5326 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5327 else
5328 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5329 fi
a0b9e27f 5330
10f2d63a 5331else
a0b9e27f 5332
10f2d63a
VZ
5333 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5341
5342fi
10f2d63a
VZ
5343
5344
5345 eval "$ac_cv_use_mdi"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5351 echo "$ac_t""yes" 1>&6
10f2d63a 5352 else
a0b9e27f 5353 echo "$ac_t""no" 1>&6
10f2d63a 5354 fi
a0b9e27f 5355
698dcdb6 5356
5005acfe
VZ
5357 enablestring=
5358 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
65d8ef1e 5359echo "configure:5360: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5360 no_cache=0
5361 # Check whether --enable-loggui or --disable-loggui was given.
5362if test "${enable_loggui+set}" = set; then
5363 enableval="$enable_loggui"
a0b9e27f 5364
1e6feb95
VZ
5365 if test "$enableval" = yes; then
5366 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5367 else
5368 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5369 fi
a0b9e27f 5370
1e6feb95 5371else
a0b9e27f 5372
1e6feb95
VZ
5373 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5381
5382fi
1e6feb95
VZ
5383
5384
5385 eval "$ac_cv_use_loggui"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5391 echo "$ac_t""yes" 1>&6
1e6feb95 5392 else
a0b9e27f 5393 echo "$ac_t""no" 1>&6
1e6feb95 5394 fi
a0b9e27f 5395
1e6feb95 5396
5005acfe
VZ
5397 enablestring=
5398 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
65d8ef1e 5399echo "configure:5400: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5400 no_cache=0
5401 # Check whether --enable-logwin or --disable-logwin was given.
5402if test "${enable_logwin+set}" = set; then
5403 enableval="$enable_logwin"
a0b9e27f 5404
1e6feb95
VZ
5405 if test "$enableval" = yes; then
5406 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5407 else
5408 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5409 fi
a0b9e27f 5410
1e6feb95 5411else
a0b9e27f 5412
1e6feb95
VZ
5413 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5421
5422fi
1e6feb95
VZ
5423
5424
5425 eval "$ac_cv_use_logwin"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5431 echo "$ac_t""yes" 1>&6
1e6feb95 5432 else
a0b9e27f 5433 echo "$ac_t""no" 1>&6
1e6feb95 5434 fi
a0b9e27f 5435
1e6feb95 5436
5005acfe
VZ
5437 enablestring=
5438 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
65d8ef1e 5439echo "configure:5440: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5440 no_cache=0
5441 # Check whether --enable-logdialog or --disable-logdialog was given.
5442if test "${enable_logdialog+set}" = set; then
5443 enableval="$enable_logdialog"
a0b9e27f 5444
69d27ff7
MB
5445 if test "$enableval" = yes; then
5446 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5447 else
5448 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5449 fi
a0b9e27f 5450
69d27ff7 5451else
a0b9e27f 5452
69d27ff7
MB
5453 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5454 if test "x$LINE" != x ; then
5455 eval "DEFAULT_$LINE"
5456 else
5457 no_cache=1
5458 fi
5459
5460 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5461
5462fi
69d27ff7
MB
5463
5464
5465 eval "$ac_cv_use_logdialog"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5471 echo "$ac_t""yes" 1>&6
69d27ff7 5472 else
a0b9e27f 5473 echo "$ac_t""no" 1>&6
69d27ff7 5474 fi
a0b9e27f 5475
8284b0c5 5476
52127426 5477
5005acfe
VZ
5478 enablestring=
5479 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
65d8ef1e 5480echo "configure:5481: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5481 no_cache=0
5482 # Check whether --enable-postscript or --disable-postscript was given.
5483if test "${enable_postscript+set}" = set; then
5484 enableval="$enable_postscript"
a0b9e27f 5485
10f2d63a
VZ
5486 if test "$enableval" = yes; then
5487 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5488 else
5489 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5490 fi
a0b9e27f 5491
10f2d63a 5492else
a0b9e27f 5493
10f2d63a
VZ
5494 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5502
5503fi
10f2d63a
VZ
5504
5505
5506 eval "$ac_cv_use_postscript"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5512 echo "$ac_t""yes" 1>&6
10f2d63a 5513 else
a0b9e27f 5514 echo "$ac_t""no" 1>&6
10f2d63a 5515 fi
a0b9e27f 5516
8284b0c5
MB
5517
5518
52127426 5519
8284b0c5 5520
5005acfe
VZ
5521 enablestring=
5522 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
65d8ef1e 5523echo "configure:5524: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a
VZ
5524 no_cache=0
5525 # Check whether --enable-prologio or --disable-prologio was given.
5526if test "${enable_prologio+set}" = set; then
5527 enableval="$enable_prologio"
a0b9e27f 5528
10f2d63a
VZ
5529 if test "$enableval" = yes; then
5530 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5531 else
5532 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5533 fi
a0b9e27f 5534
10f2d63a 5535else
a0b9e27f 5536
10f2d63a
VZ
5537 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5545
5546fi
10f2d63a
VZ
5547
5548
5549 eval "$ac_cv_use_prologio"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5555 echo "$ac_t""yes" 1>&6
10f2d63a 5556 else
a0b9e27f 5557 echo "$ac_t""no" 1>&6
10f2d63a 5558 fi
a0b9e27f 5559
10f2d63a 5560
5005acfe
VZ
5561 enablestring=
5562 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
65d8ef1e 5563echo "configure:5564: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5564 no_cache=0
5565 # Check whether --enable-resources or --disable-resources was given.
5566if test "${enable_resources+set}" = set; then
5567 enableval="$enable_resources"
a0b9e27f 5568
10f2d63a
VZ
5569 if test "$enableval" = yes; then
5570 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5571 else
5572 ac_cv_use_resources='wxUSE_RESOURCES=no'
5573 fi
a0b9e27f 5574
10f2d63a 5575else
a0b9e27f 5576
10f2d63a
VZ
5577 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5585
5586fi
10f2d63a
VZ
5587
5588
5589 eval "$ac_cv_use_resources"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5595 echo "$ac_t""yes" 1>&6
10f2d63a 5596 else
a0b9e27f 5597 echo "$ac_t""no" 1>&6
10f2d63a 5598 fi
a0b9e27f 5599
8284b0c5 5600
52127426 5601
5005acfe
VZ
5602 enablestring=
5603 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
65d8ef1e 5604echo "configure:5605: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5605 no_cache=0
5606 # Check whether --enable-xresources or --disable-xresources was given.
5607if test "${enable_xresources+set}" = set; then
5608 enableval="$enable_xresources"
a0b9e27f 5609
10f2d63a
VZ
5610 if test "$enableval" = yes; then
5611 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5612 else
5613 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5614 fi
a0b9e27f 5615
10f2d63a 5616else
a0b9e27f 5617
10f2d63a
VZ
5618 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5626
5627fi
10f2d63a
VZ
5628
5629
5630 eval "$ac_cv_use_xresources"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5636 echo "$ac_t""yes" 1>&6
10f2d63a 5637 else
a0b9e27f 5638 echo "$ac_t""no" 1>&6
10f2d63a 5639 fi
a0b9e27f 5640
8284b0c5
MB
5641
5642
52127426 5643
5005acfe
VZ
5644 enablestring=
5645 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
65d8ef1e 5646echo "configure:5647: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5647 no_cache=0
5648 # Check whether --enable-clipboard or --disable-clipboard was given.
5649if test "${enable_clipboard+set}" = set; then
5650 enableval="$enable_clipboard"
a0b9e27f 5651
10f2d63a
VZ
5652 if test "$enableval" = yes; then
5653 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5654 else
5655 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5656 fi
a0b9e27f 5657
10f2d63a 5658else
a0b9e27f 5659
10f2d63a
VZ
5660 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5668
5669fi
10f2d63a
VZ
5670
5671
5672 eval "$ac_cv_use_clipboard"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5678 echo "$ac_t""yes" 1>&6
10f2d63a 5679 else
a0b9e27f 5680 echo "$ac_t""no" 1>&6
10f2d63a 5681 fi
a0b9e27f 5682
10f2d63a 5683
5005acfe
VZ
5684 enablestring=
5685 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
65d8ef1e 5686echo "configure:5687: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5687 no_cache=0
5688 # Check whether --enable-dnd or --disable-dnd was given.
5689if test "${enable_dnd+set}" = set; then
5690 enableval="$enable_dnd"
a0b9e27f 5691
10f2d63a
VZ
5692 if test "$enableval" = yes; then
5693 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5694 else
5695 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5696 fi
a0b9e27f 5697
10f2d63a 5698else
a0b9e27f 5699
10f2d63a
VZ
5700 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5708
5709fi
10f2d63a
VZ
5710
5711
5712 eval "$ac_cv_use_dnd"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5718 echo "$ac_t""yes" 1>&6
10f2d63a 5719 else
a0b9e27f 5720 echo "$ac_t""no" 1>&6
10f2d63a 5721 fi
a0b9e27f 5722
10f2d63a 5723
5005acfe
VZ
5724 enablestring=
5725 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
65d8ef1e 5726echo "configure:5727: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5727 no_cache=0
5728 # Check whether --enable-metafile or --disable-metafile was given.
5729if test "${enable_metafile+set}" = set; then
5730 enableval="$enable_metafile"
a0b9e27f 5731
b64f0a5f
RL
5732 if test "$enableval" = yes; then
5733 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5734 else
5735 ac_cv_use_metafile='wxUSE_METAFILE=no'
5736 fi
a0b9e27f 5737
b64f0a5f 5738else
a0b9e27f 5739
b64f0a5f
RL
5740 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5741 if test "x$LINE" != x ; then
5742 eval "DEFAULT_$LINE"
5743 else
5744 no_cache=1
5745 fi
5746
5747 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5748
5749fi
b64f0a5f
RL
5750
5751
5752 eval "$ac_cv_use_metafile"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5758 echo "$ac_t""yes" 1>&6
b64f0a5f 5759 else
a0b9e27f 5760 echo "$ac_t""no" 1>&6
b64f0a5f 5761 fi
a0b9e27f 5762
52127426 5763
8284b0c5 5764
5005acfe
VZ
5765 enablestring=
5766 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
65d8ef1e 5767echo "configure:5768: checking for --${enablestring:-enable}-treelayout" >&5
10f2d63a 5768 no_cache=0
24176f2c
GD
5769 # Check whether --enable-treelayout or --disable-treelayout was given.
5770if test "${enable_treelayout+set}" = set; then
5771 enableval="$enable_treelayout"
a0b9e27f 5772
10f2d63a 5773 if test "$enableval" = yes; then
24176f2c 5774 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5775 else
24176f2c 5776 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5777 fi
a0b9e27f 5778
10f2d63a 5779else
a0b9e27f 5780
24176f2c 5781 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
24176f2c 5788 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5789
5790fi
10f2d63a
VZ
5791
5792
24176f2c 5793 eval "$ac_cv_use_treelayout"
10f2d63a 5794 if test "$no_cache" != 1; then
24176f2c 5795 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5796 fi
5797
24176f2c 5798 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5799 echo "$ac_t""yes" 1>&6
10f2d63a 5800 else
a0b9e27f 5801 echo "$ac_t""no" 1>&6
10f2d63a 5802 fi
a0b9e27f 5803
8284b0c5 5804
52127426 5805
8284b0c5 5806
5005acfe
VZ
5807 enablestring=
5808 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
65d8ef1e 5809echo "configure:5810: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5810 no_cache=0
5811 # Check whether --enable-controls or --disable-controls was given.
5812if test "${enable_controls+set}" = set; then
5813 enableval="$enable_controls"
a0b9e27f 5814
10f2d63a
VZ
5815 if test "$enableval" = yes; then
5816 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5817 else
5818 ac_cv_use_controls='wxUSE_CONTROLS=no'
5819 fi
a0b9e27f 5820
10f2d63a 5821else
a0b9e27f 5822
10f2d63a
VZ
5823 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5824 if test "x$LINE" != x ; then
5825 eval "DEFAULT_$LINE"
5826 else
5827 no_cache=1
5828 fi
5829
5830 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5831
5832fi
10f2d63a
VZ
5833
5834
5835 eval "$ac_cv_use_controls"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5841 echo "$ac_t""yes" 1>&6
10f2d63a 5842 else
a0b9e27f 5843 echo "$ac_t""no" 1>&6
10f2d63a 5844 fi
a0b9e27f 5845
10f2d63a
VZ
5846
5847if test "$wxUSE_CONTROLS" = "yes"; then
5848 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5849 DEFAULT_wxUSE_BMPBUTTON=yes
5850 DEFAULT_wxUSE_BUTTON=yes
5851 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5852 DEFAULT_wxUSE_CARET=yes
5853 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5854 DEFAULT_wxUSE_CHECKBOX=yes
5855 DEFAULT_wxUSE_CHECKLISTBOX=yes
5856 DEFAULT_wxUSE_CHOICE=yes
5857 DEFAULT_wxUSE_GAUGE=yes
5858 DEFAULT_wxUSE_GRID=yes
cc977e5f 5859 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5860 DEFAULT_wxUSE_IMAGLIST=yes
5861 DEFAULT_wxUSE_LISTBOX=yes
5862 DEFAULT_wxUSE_LISTCTRL=yes
5863 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5864 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5865 DEFAULT_wxUSE_RADIOBOX=yes
5866 DEFAULT_wxUSE_RADIOBTN=yes
5867 DEFAULT_wxUSE_SASH=yes
5868 DEFAULT_wxUSE_SCROLLBAR=yes
5869 DEFAULT_wxUSE_SLIDER=yes
5870 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5871 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5872 DEFAULT_wxUSE_SPLITTER=yes
5873 DEFAULT_wxUSE_STATBMP=yes
5874 DEFAULT_wxUSE_STATBOX=yes
5875 DEFAULT_wxUSE_STATLINE=yes
5876 DEFAULT_wxUSE_STATUSBAR=yes
5877 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5878 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5879 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5880 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5881 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5882 DEFAULT_wxUSE_TOOLTIPS=yes
5883 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5884 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5885 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5886elif test "$wxUSE_CONTROLS" = "no"; then
5887 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5888 DEFAULT_wxUSE_BMPBUTTON=no
5889 DEFAULT_wxUSE_BUTTON=no
5890 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5891 DEFAULT_wxUSE_CARET=no
5892 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5893 DEFAULT_wxUSE_CHECKBOX=no
5894 DEFAULT_wxUSE_CHECKLISTBOX=no
5895 DEFAULT_wxUSE_CHOICE=no
5896 DEFAULT_wxUSE_GAUGE=no
5897 DEFAULT_wxUSE_GRID=no
5898 DEFAULT_wxUSE_NEW_GRID=no
5899 DEFAULT_wxUSE_IMAGLIST=no
5900 DEFAULT_wxUSE_LISTBOX=no
5901 DEFAULT_wxUSE_LISTCTRL=no
5902 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5903 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5904 DEFAULT_wxUSE_RADIOBOX=no
5905 DEFAULT_wxUSE_RADIOBTN=no
5906 DEFAULT_wxUSE_SASH=no
5907 DEFAULT_wxUSE_SCROLLBAR=no
5908 DEFAULT_wxUSE_SLIDER=no
5909 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5910 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5911 DEFAULT_wxUSE_SPLITTER=no
5912 DEFAULT_wxUSE_STATBMP=no
5913 DEFAULT_wxUSE_STATBOX=no
5914 DEFAULT_wxUSE_STATLINE=no
5915 DEFAULT_wxUSE_STATUSBAR=no
5916 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5917 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5918 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5919 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5920 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5921 DEFAULT_wxUSE_TOOLTIPS=no
5922 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5923 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5924 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5925fi
5926
8284b0c5 5927
5005acfe
VZ
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
65d8ef1e 5930echo "configure:5931: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5931 no_cache=0
5932 # Check whether --enable-accel or --disable-accel was given.
5933if test "${enable_accel+set}" = set; then
5934 enableval="$enable_accel"
a0b9e27f 5935
10f2d63a
VZ
5936 if test "$enableval" = yes; then
5937 ac_cv_use_accel='wxUSE_ACCEL=yes'
5938 else
5939 ac_cv_use_accel='wxUSE_ACCEL=no'
5940 fi
a0b9e27f 5941
10f2d63a 5942else
a0b9e27f 5943
10f2d63a
VZ
5944 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5952
5953fi
10f2d63a
VZ
5954
5955
5956 eval "$ac_cv_use_accel"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5962 echo "$ac_t""yes" 1>&6
10f2d63a 5963 else
a0b9e27f 5964 echo "$ac_t""no" 1>&6
10f2d63a 5965 fi
a0b9e27f 5966
10f2d63a 5967
5005acfe
VZ
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
65d8ef1e 5970echo "configure:5971: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5971 no_cache=0
1e6feb95
VZ
5972 # Check whether --enable-button or --disable-button was given.
5973if test "${enable_button+set}" = set; then
5974 enableval="$enable_button"
a0b9e27f 5975
10f2d63a 5976 if test "$enableval" = yes; then
1e6feb95 5977 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5978 else
1e6feb95 5979 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5980 fi
a0b9e27f 5981
10f2d63a 5982else
a0b9e27f 5983
1e6feb95 5984 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
1e6feb95 5991 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5992
5993fi
10f2d63a
VZ
5994
5995
1e6feb95 5996 eval "$ac_cv_use_button"
10f2d63a 5997 if test "$no_cache" != 1; then
1e6feb95 5998 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5999 fi
6000
1e6feb95 6001 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 6002 echo "$ac_t""yes" 1>&6
10f2d63a 6003 else
a0b9e27f 6004 echo "$ac_t""no" 1>&6
10f2d63a 6005 fi
a0b9e27f 6006
10f2d63a 6007
5005acfe
VZ
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
65d8ef1e 6010echo "configure:6011: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
6011 no_cache=0
6012 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6013if test "${enable_bmpbutton+set}" = set; then
6014 enableval="$enable_bmpbutton"
a0b9e27f 6015
10f2d63a
VZ
6016 if test "$enableval" = yes; then
6017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6018 else
6019 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6020 fi
a0b9e27f 6021
10f2d63a 6022else
a0b9e27f 6023
10f2d63a
VZ
6024 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
6032
6033fi
10f2d63a
VZ
6034
6035
6036 eval "$ac_cv_use_bmpbutton"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 6042 echo "$ac_t""yes" 1>&6
10f2d63a 6043 else
a0b9e27f 6044 echo "$ac_t""no" 1>&6
10f2d63a 6045 fi
a0b9e27f 6046
10f2d63a 6047
5005acfe
VZ
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
65d8ef1e 6050echo "configure:6051: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
6051 no_cache=0
6052 # Check whether --enable-calendar or --disable-calendar was given.
6053if test "${enable_calendar+set}" = set; then
6054 enableval="$enable_calendar"
a0b9e27f 6055
1e6feb95
VZ
6056 if test "$enableval" = yes; then
6057 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6058 else
6059 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6060 fi
a0b9e27f 6061
1e6feb95 6062else
a0b9e27f 6063
1e6feb95
VZ
6064 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6072
6073fi
1e6feb95
VZ
6074
6075
6076 eval "$ac_cv_use_calendar"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6082 echo "$ac_t""yes" 1>&6
1e6feb95 6083 else
a0b9e27f 6084 echo "$ac_t""no" 1>&6
1e6feb95 6085 fi
a0b9e27f 6086
1e6feb95 6087
5005acfe
VZ
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
65d8ef1e 6090echo "configure:6091: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6091 no_cache=0
6092 # Check whether --enable-caret or --disable-caret was given.
6093if test "${enable_caret+set}" = set; then
6094 enableval="$enable_caret"
a0b9e27f 6095
1e6feb95
VZ
6096 if test "$enableval" = yes; then
6097 ac_cv_use_caret='wxUSE_CARET=yes'
6098 else
6099 ac_cv_use_caret='wxUSE_CARET=no'
6100 fi
a0b9e27f 6101
1e6feb95 6102else
a0b9e27f 6103
1e6feb95
VZ
6104 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6112
6113fi
1e6feb95
VZ
6114
6115
6116 eval "$ac_cv_use_caret"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6122 echo "$ac_t""yes" 1>&6
1e6feb95 6123 else
a0b9e27f 6124 echo "$ac_t""no" 1>&6
1e6feb95 6125 fi
a0b9e27f 6126
1e6feb95 6127
5005acfe
VZ
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
65d8ef1e 6130echo "configure:6131: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6131 no_cache=0
6132 # Check whether --enable-checkbox or --disable-checkbox was given.
6133if test "${enable_checkbox+set}" = set; then
6134 enableval="$enable_checkbox"
a0b9e27f 6135
10f2d63a
VZ
6136 if test "$enableval" = yes; then
6137 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6138 else
6139 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6140 fi
a0b9e27f 6141
10f2d63a 6142else
a0b9e27f 6143
10f2d63a
VZ
6144 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6152
6153fi
10f2d63a
VZ
6154
6155
6156 eval "$ac_cv_use_checkbox"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6162 echo "$ac_t""yes" 1>&6
10f2d63a 6163 else
a0b9e27f 6164 echo "$ac_t""no" 1>&6
10f2d63a 6165 fi
a0b9e27f 6166
10f2d63a 6167
5005acfe
VZ
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
65d8ef1e 6170echo "configure:6171: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6171 no_cache=0
6172 # Check whether --enable-checklst or --disable-checklst was given.
6173if test "${enable_checklst+set}" = set; then
6174 enableval="$enable_checklst"
a0b9e27f 6175
10f2d63a
VZ
6176 if test "$enableval" = yes; then
6177 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6178 else
6179 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6180 fi
a0b9e27f 6181
10f2d63a 6182else
a0b9e27f 6183
10f2d63a
VZ
6184 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6192
6193fi
10f2d63a
VZ
6194
6195
6196 eval "$ac_cv_use_checklst"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6202 echo "$ac_t""yes" 1>&6
10f2d63a 6203 else
a0b9e27f 6204 echo "$ac_t""no" 1>&6
10f2d63a 6205 fi
a0b9e27f 6206
10f2d63a 6207
5005acfe
VZ
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
65d8ef1e 6210echo "configure:6211: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6211 no_cache=0
6212 # Check whether --enable-choice or --disable-choice was given.
6213if test "${enable_choice+set}" = set; then
6214 enableval="$enable_choice"
a0b9e27f 6215
10f2d63a
VZ
6216 if test "$enableval" = yes; then
6217 ac_cv_use_choice='wxUSE_CHOICE=yes'
6218 else
6219 ac_cv_use_choice='wxUSE_CHOICE=no'
6220 fi
a0b9e27f 6221
10f2d63a 6222else
a0b9e27f 6223
10f2d63a
VZ
6224 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6232
6233fi
10f2d63a
VZ
6234
6235
6236 eval "$ac_cv_use_choice"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6242 echo "$ac_t""yes" 1>&6
10f2d63a 6243 else
a0b9e27f 6244 echo "$ac_t""no" 1>&6
10f2d63a 6245 fi
a0b9e27f 6246
10f2d63a 6247
5005acfe
VZ
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
65d8ef1e 6250echo "configure:6251: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6251 no_cache=0
6252 # Check whether --enable-combobox or --disable-combobox was given.
6253if test "${enable_combobox+set}" = set; then
6254 enableval="$enable_combobox"
a0b9e27f 6255
10f2d63a
VZ
6256 if test "$enableval" = yes; then
6257 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6258 else
6259 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6260 fi
a0b9e27f 6261
10f2d63a 6262else
a0b9e27f 6263
10f2d63a
VZ
6264 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6272
6273fi
10f2d63a
VZ
6274
6275
6276 eval "$ac_cv_use_combobox"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6282 echo "$ac_t""yes" 1>&6
10f2d63a 6283 else
a0b9e27f 6284 echo "$ac_t""no" 1>&6
10f2d63a 6285 fi
a0b9e27f 6286
10f2d63a 6287
5005acfe
VZ
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
65d8ef1e 6290echo "configure:6291: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6291 no_cache=0
6292 # Check whether --enable-gauge or --disable-gauge was given.
6293if test "${enable_gauge+set}" = set; then
6294 enableval="$enable_gauge"
a0b9e27f 6295
10f2d63a
VZ
6296 if test "$enableval" = yes; then
6297 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6298 else
6299 ac_cv_use_gauge='wxUSE_GAUGE=no'
6300 fi
a0b9e27f 6301
10f2d63a 6302else
a0b9e27f 6303
10f2d63a
VZ
6304 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6312
6313fi
10f2d63a
VZ
6314
6315
6316 eval "$ac_cv_use_gauge"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6322 echo "$ac_t""yes" 1>&6
10f2d63a 6323 else
a0b9e27f 6324 echo "$ac_t""no" 1>&6
10f2d63a 6325 fi
a0b9e27f 6326
10f2d63a 6327
5005acfe
VZ
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
65d8ef1e 6330echo "configure:6331: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6331 no_cache=0
6332 # Check whether --enable-grid or --disable-grid was given.
6333if test "${enable_grid+set}" = set; then
6334 enableval="$enable_grid"
a0b9e27f 6335
10f2d63a
VZ
6336 if test "$enableval" = yes; then
6337 ac_cv_use_grid='wxUSE_GRID=yes'
6338 else
6339 ac_cv_use_grid='wxUSE_GRID=no'
6340 fi
a0b9e27f 6341
10f2d63a 6342else
a0b9e27f 6343
10f2d63a
VZ
6344 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6352
6353fi
10f2d63a
VZ
6354
6355
6356 eval "$ac_cv_use_grid"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6362 echo "$ac_t""yes" 1>&6
10f2d63a 6363 else
a0b9e27f 6364 echo "$ac_t""no" 1>&6
10f2d63a 6365 fi
a0b9e27f 6366
10f2d63a 6367
5005acfe
VZ
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
65d8ef1e 6370echo "configure:6371: checking for --${enablestring:-enable}-newgrid" >&5
10f2d63a
VZ
6371 no_cache=0
6372 # Check whether --enable-newgrid or --disable-newgrid was given.
6373if test "${enable_newgrid+set}" = set; then
6374 enableval="$enable_newgrid"
a0b9e27f 6375
10f2d63a
VZ
6376 if test "$enableval" = yes; then
6377 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6378 else
6379 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6380 fi
a0b9e27f 6381
10f2d63a 6382else
a0b9e27f 6383
10f2d63a
VZ
6384 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
a0b9e27f
MB
6392
6393fi
10f2d63a
VZ
6394
6395
6396 eval "$ac_cv_use_newgrid"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_NEW_GRID" = yes; then
a0b9e27f 6402 echo "$ac_t""yes" 1>&6
10f2d63a 6403 else
a0b9e27f 6404 echo "$ac_t""no" 1>&6
10f2d63a 6405 fi
a0b9e27f 6406
10f2d63a 6407
5005acfe
VZ
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
65d8ef1e 6410echo "configure:6411: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6411 no_cache=0
6412 # Check whether --enable-imaglist or --disable-imaglist was given.
6413if test "${enable_imaglist+set}" = set; then
6414 enableval="$enable_imaglist"
a0b9e27f 6415
10f2d63a
VZ
6416 if test "$enableval" = yes; then
6417 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6418 else
6419 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6420 fi
a0b9e27f 6421
10f2d63a 6422else
a0b9e27f 6423
10f2d63a
VZ
6424 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6432
6433fi
10f2d63a
VZ
6434
6435
6436 eval "$ac_cv_use_imaglist"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6442 echo "$ac_t""yes" 1>&6
10f2d63a 6443 else
a0b9e27f 6444 echo "$ac_t""no" 1>&6
10f2d63a 6445 fi
a0b9e27f 6446
10f2d63a 6447
5005acfe
VZ
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
65d8ef1e 6450echo "configure:6451: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6451 no_cache=0
6452 # Check whether --enable-listbox or --disable-listbox was given.
6453if test "${enable_listbox+set}" = set; then
6454 enableval="$enable_listbox"
a0b9e27f 6455
10f2d63a
VZ
6456 if test "$enableval" = yes; then
6457 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6458 else
6459 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6460 fi
a0b9e27f 6461
10f2d63a 6462else
a0b9e27f 6463
10f2d63a
VZ
6464 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6472
6473fi
10f2d63a
VZ
6474
6475
6476 eval "$ac_cv_use_listbox"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6482 echo "$ac_t""yes" 1>&6
10f2d63a 6483 else
a0b9e27f 6484 echo "$ac_t""no" 1>&6
10f2d63a 6485 fi
a0b9e27f 6486
10f2d63a 6487
5005acfe
VZ
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
65d8ef1e 6490echo "configure:6491: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6491 no_cache=0
6492 # Check whether --enable-listctrl or --disable-listctrl was given.
6493if test "${enable_listctrl+set}" = set; then
6494 enableval="$enable_listctrl"
a0b9e27f 6495
10f2d63a
VZ
6496 if test "$enableval" = yes; then
6497 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6498 else
6499 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6500 fi
a0b9e27f 6501
10f2d63a 6502else
a0b9e27f 6503
10f2d63a
VZ
6504 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6512
6513fi
10f2d63a
VZ
6514
6515
6516 eval "$ac_cv_use_listctrl"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6522 echo "$ac_t""yes" 1>&6
10f2d63a 6523 else
a0b9e27f 6524 echo "$ac_t""no" 1>&6
10f2d63a 6525 fi
a0b9e27f 6526
10f2d63a 6527
5005acfe
VZ
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
65d8ef1e 6530echo "configure:6531: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6531 no_cache=0
6532 # Check whether --enable-notebook or --disable-notebook was given.
6533if test "${enable_notebook+set}" = set; then
6534 enableval="$enable_notebook"
a0b9e27f 6535
10f2d63a
VZ
6536 if test "$enableval" = yes; then
6537 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6538 else
6539 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6540 fi
a0b9e27f 6541
10f2d63a 6542else
a0b9e27f 6543
10f2d63a
VZ
6544 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6552
6553fi
10f2d63a
VZ
6554
6555
6556 eval "$ac_cv_use_notebook"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6562 echo "$ac_t""yes" 1>&6
10f2d63a 6563 else
a0b9e27f 6564 echo "$ac_t""no" 1>&6
10f2d63a 6565 fi
a0b9e27f 6566
10f2d63a 6567
5005acfe
VZ
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
65d8ef1e 6570echo "configure:6571: checking for --${enablestring:-enable}-propsheet" >&5
24176f2c
GD
6571 no_cache=0
6572 # Check whether --enable-propsheet or --disable-propsheet was given.
6573if test "${enable_propsheet+set}" = set; then
6574 enableval="$enable_propsheet"
a0b9e27f 6575
24176f2c
GD
6576 if test "$enableval" = yes; then
6577 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6578 else
6579 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6580 fi
a0b9e27f 6581
24176f2c 6582else
a0b9e27f 6583
24176f2c
GD
6584 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6592
6593fi
24176f2c
GD
6594
6595
6596 eval "$ac_cv_use_propsheet"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6602 echo "$ac_t""yes" 1>&6
24176f2c 6603 else
a0b9e27f 6604 echo "$ac_t""no" 1>&6
24176f2c 6605 fi
a0b9e27f 6606
24176f2c 6607
5005acfe
VZ
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
65d8ef1e 6610echo "configure:6611: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6611 no_cache=0
6612 # Check whether --enable-radiobox or --disable-radiobox was given.
6613if test "${enable_radiobox+set}" = set; then
6614 enableval="$enable_radiobox"
a0b9e27f 6615
10f2d63a
VZ
6616 if test "$enableval" = yes; then
6617 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6618 else
6619 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6620 fi
a0b9e27f 6621
10f2d63a 6622else
a0b9e27f 6623
10f2d63a
VZ
6624 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6632
6633fi
10f2d63a
VZ
6634
6635
6636 eval "$ac_cv_use_radiobox"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6642 echo "$ac_t""yes" 1>&6
10f2d63a 6643 else
a0b9e27f 6644 echo "$ac_t""no" 1>&6
10f2d63a 6645 fi
a0b9e27f 6646
10f2d63a 6647
5005acfe
VZ
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
65d8ef1e 6650echo "configure:6651: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6651 no_cache=0
6652 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6653if test "${enable_radiobtn+set}" = set; then
6654 enableval="$enable_radiobtn"
a0b9e27f 6655
10f2d63a
VZ
6656 if test "$enableval" = yes; then
6657 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6658 else
6659 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6660 fi
a0b9e27f 6661
10f2d63a 6662else
a0b9e27f 6663
10f2d63a
VZ
6664 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6672
6673fi
10f2d63a
VZ
6674
6675
6676 eval "$ac_cv_use_radiobtn"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6682 echo "$ac_t""yes" 1>&6
10f2d63a 6683 else
a0b9e27f 6684 echo "$ac_t""no" 1>&6
10f2d63a 6685 fi
a0b9e27f 6686
10f2d63a 6687
5005acfe
VZ
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
65d8ef1e 6690echo "configure:6691: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-sash or --disable-sash was given.
6693if test "${enable_sash+set}" = set; then
6694 enableval="$enable_sash"
a0b9e27f 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_sash='wxUSE_SASH=yes'
6698 else
6699 ac_cv_use_sash='wxUSE_SASH=no'
6700 fi
a0b9e27f 6701
10f2d63a 6702else
a0b9e27f 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6712
6713fi
10f2d63a
VZ
6714
6715
6716 eval "$ac_cv_use_sash"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6722 echo "$ac_t""yes" 1>&6
10f2d63a 6723 else
a0b9e27f 6724 echo "$ac_t""no" 1>&6
10f2d63a 6725 fi
a0b9e27f 6726
10f2d63a 6727
5005acfe
VZ
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
65d8ef1e 6730echo "configure:6731: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6731 no_cache=0
6732 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6733if test "${enable_scrollbar+set}" = set; then
6734 enableval="$enable_scrollbar"
a0b9e27f 6735
10f2d63a
VZ
6736 if test "$enableval" = yes; then
6737 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6738 else
6739 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6740 fi
a0b9e27f 6741
10f2d63a 6742else
a0b9e27f 6743
10f2d63a
VZ
6744 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6752
6753fi
10f2d63a
VZ
6754
6755
6756 eval "$ac_cv_use_scrollbar"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6762 echo "$ac_t""yes" 1>&6
10f2d63a 6763 else
a0b9e27f 6764 echo "$ac_t""no" 1>&6
10f2d63a 6765 fi
a0b9e27f 6766
10f2d63a 6767
5005acfe
VZ
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
65d8ef1e 6770echo "configure:6771: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6771 no_cache=0
6772 # Check whether --enable-slider or --disable-slider was given.
6773if test "${enable_slider+set}" = set; then
6774 enableval="$enable_slider"
a0b9e27f 6775
10f2d63a
VZ
6776 if test "$enableval" = yes; then
6777 ac_cv_use_slider='wxUSE_SLIDER=yes'
6778 else
6779 ac_cv_use_slider='wxUSE_SLIDER=no'
6780 fi
a0b9e27f 6781
10f2d63a 6782else
a0b9e27f 6783
10f2d63a
VZ
6784 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6792
6793fi
10f2d63a
VZ
6794
6795
6796 eval "$ac_cv_use_slider"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6802 echo "$ac_t""yes" 1>&6
10f2d63a 6803 else
a0b9e27f 6804 echo "$ac_t""no" 1>&6
10f2d63a 6805 fi
a0b9e27f 6806
10f2d63a 6807
5005acfe
VZ
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
65d8ef1e 6810echo "configure:6811: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6811 no_cache=0
6812 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6813if test "${enable_spinbtn+set}" = set; then
6814 enableval="$enable_spinbtn"
a0b9e27f 6815
10f2d63a
VZ
6816 if test "$enableval" = yes; then
6817 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6818 else
6819 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6820 fi
a0b9e27f 6821
10f2d63a 6822else
a0b9e27f 6823
10f2d63a
VZ
6824 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6832
6833fi
10f2d63a
VZ
6834
6835
6836 eval "$ac_cv_use_spinbtn"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6842 echo "$ac_t""yes" 1>&6
10f2d63a 6843 else
a0b9e27f 6844 echo "$ac_t""no" 1>&6
10f2d63a 6845 fi
a0b9e27f 6846
10f2d63a 6847
5005acfe
VZ
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
65d8ef1e 6850echo "configure:6851: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6851 no_cache=0
6852 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6853if test "${enable_spinctrl+set}" = set; then
6854 enableval="$enable_spinctrl"
a0b9e27f 6855
56cfaa52
RR
6856 if test "$enableval" = yes; then
6857 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6858 else
6859 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6860 fi
a0b9e27f 6861
56cfaa52 6862else
a0b9e27f 6863
56cfaa52
RR
6864 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6872
6873fi
56cfaa52
RR
6874
6875
6876 eval "$ac_cv_use_spinctrl"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6882 echo "$ac_t""yes" 1>&6
56cfaa52 6883 else
a0b9e27f 6884 echo "$ac_t""no" 1>&6
56cfaa52 6885 fi
a0b9e27f 6886
56cfaa52 6887
5005acfe
VZ
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
65d8ef1e 6890echo "configure:6891: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-splitter or --disable-splitter was given.
6893if test "${enable_splitter+set}" = set; then
6894 enableval="$enable_splitter"
a0b9e27f 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6898 else
6899 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6900 fi
a0b9e27f 6901
10f2d63a 6902else
a0b9e27f 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6912
6913fi
10f2d63a
VZ
6914
6915
6916 eval "$ac_cv_use_splitter"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6922 echo "$ac_t""yes" 1>&6
10f2d63a 6923 else
a0b9e27f 6924 echo "$ac_t""no" 1>&6
10f2d63a 6925 fi
a0b9e27f 6926
10f2d63a 6927
5005acfe
VZ
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
65d8ef1e 6930echo "configure:6931: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6931 no_cache=0
6932 # Check whether --enable-statbmp or --disable-statbmp was given.
6933if test "${enable_statbmp+set}" = set; then
6934 enableval="$enable_statbmp"
a0b9e27f 6935
10f2d63a
VZ
6936 if test "$enableval" = yes; then
6937 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6938 else
6939 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6940 fi
a0b9e27f 6941
10f2d63a 6942else
a0b9e27f 6943
10f2d63a
VZ
6944 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6952
6953fi
10f2d63a
VZ
6954
6955
6956 eval "$ac_cv_use_statbmp"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6962 echo "$ac_t""yes" 1>&6
10f2d63a 6963 else
a0b9e27f 6964 echo "$ac_t""no" 1>&6
10f2d63a 6965 fi
a0b9e27f 6966
10f2d63a 6967
5005acfe
VZ
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
65d8ef1e 6970echo "configure:6971: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6971 no_cache=0
6972 # Check whether --enable-statbox or --disable-statbox was given.
6973if test "${enable_statbox+set}" = set; then
6974 enableval="$enable_statbox"
a0b9e27f 6975
10f2d63a
VZ
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6978 else
6979 ac_cv_use_statbox='wxUSE_STATBOX=no'
6980 fi
a0b9e27f 6981
10f2d63a 6982else
a0b9e27f 6983
10f2d63a
VZ
6984 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6992
6993fi
10f2d63a
VZ
6994
6995
6996 eval "$ac_cv_use_statbox"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 7002 echo "$ac_t""yes" 1>&6
10f2d63a 7003 else
a0b9e27f 7004 echo "$ac_t""no" 1>&6
10f2d63a 7005 fi
a0b9e27f 7006
10f2d63a 7007
5005acfe
VZ
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
65d8ef1e 7010echo "configure:7011: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
7011 no_cache=0
7012 # Check whether --enable-statline or --disable-statline was given.
7013if test "${enable_statline+set}" = set; then
7014 enableval="$enable_statline"
a0b9e27f 7015
10f2d63a
VZ
7016 if test "$enableval" = yes; then
7017 ac_cv_use_statline='wxUSE_STATLINE=yes'
7018 else
7019 ac_cv_use_statline='wxUSE_STATLINE=no'
7020 fi
a0b9e27f 7021
10f2d63a 7022else
a0b9e27f 7023
10f2d63a
VZ
7024 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
7032
7033fi
10f2d63a
VZ
7034
7035
7036 eval "$ac_cv_use_statline"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 7042 echo "$ac_t""yes" 1>&6
10f2d63a 7043 else
a0b9e27f 7044 echo "$ac_t""no" 1>&6
10f2d63a 7045 fi
a0b9e27f 7046
10f2d63a 7047
5005acfe
VZ
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
65d8ef1e 7050echo "configure:7051: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
7051 no_cache=0
7052 # Check whether --enable-stattext or --disable-stattext was given.
7053if test "${enable_stattext+set}" = set; then
7054 enableval="$enable_stattext"
a0b9e27f 7055
1e6feb95
VZ
7056 if test "$enableval" = yes; then
7057 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7058 else
7059 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7060 fi
a0b9e27f 7061
1e6feb95 7062else
a0b9e27f 7063
1e6feb95
VZ
7064 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
7072
7073fi
1e6feb95
VZ
7074
7075
7076 eval "$ac_cv_use_stattext"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 7082 echo "$ac_t""yes" 1>&6
1e6feb95 7083 else
a0b9e27f 7084 echo "$ac_t""no" 1>&6
1e6feb95 7085 fi
a0b9e27f 7086
1e6feb95 7087
5005acfe
VZ
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
65d8ef1e 7090echo "configure:7091: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
7091 no_cache=0
7092 # Check whether --enable-statusbar or --disable-statusbar was given.
7093if test "${enable_statusbar+set}" = set; then
7094 enableval="$enable_statusbar"
a0b9e27f 7095
10f2d63a
VZ
7096 if test "$enableval" = yes; then
7097 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7098 else
7099 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7100 fi
a0b9e27f 7101
10f2d63a 7102else
a0b9e27f 7103
10f2d63a
VZ
7104 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7112
7113fi
10f2d63a
VZ
7114
7115
7116 eval "$ac_cv_use_statusbar"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7122 echo "$ac_t""yes" 1>&6
10f2d63a 7123 else
a0b9e27f 7124 echo "$ac_t""no" 1>&6
10f2d63a 7125 fi
a0b9e27f 7126
10f2d63a 7127
5005acfe
VZ
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
65d8ef1e 7130echo "configure:7131: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7131 no_cache=0
7132 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7133if test "${enable_tabdialog+set}" = set; then
7134 enableval="$enable_tabdialog"
a0b9e27f 7135
10f2d63a
VZ
7136 if test "$enableval" = yes; then
7137 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7138 else
7139 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7140 fi
a0b9e27f 7141
10f2d63a 7142else
a0b9e27f 7143
10f2d63a
VZ
7144 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7152
7153fi
10f2d63a
VZ
7154
7155
7156 eval "$ac_cv_use_tabdialog"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7162 echo "$ac_t""yes" 1>&6
10f2d63a 7163 else
a0b9e27f 7164 echo "$ac_t""no" 1>&6
10f2d63a 7165 fi
a0b9e27f 7166
10f2d63a 7167
5005acfe
VZ
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
65d8ef1e 7170echo "configure:7171: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7171 no_cache=0
7172 # Check whether --enable-textctrl or --disable-textctrl was given.
7173if test "${enable_textctrl+set}" = set; then
7174 enableval="$enable_textctrl"
a0b9e27f 7175
1e6feb95
VZ
7176 if test "$enableval" = yes; then
7177 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7178 else
7179 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7180 fi
a0b9e27f 7181
1e6feb95 7182else
a0b9e27f 7183
1e6feb95
VZ
7184 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7192
7193fi
1e6feb95
VZ
7194
7195
7196 eval "$ac_cv_use_textctrl"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7202 echo "$ac_t""yes" 1>&6
1e6feb95 7203 else
a0b9e27f 7204 echo "$ac_t""no" 1>&6
1e6feb95 7205 fi
a0b9e27f 7206
1e6feb95 7207
5005acfe
VZ
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
65d8ef1e 7210echo "configure:7211: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7211 no_cache=0
7212 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7213if test "${enable_togglebtn+set}" = set; then
7214 enableval="$enable_togglebtn"
a0b9e27f 7215
1db8dc4a
VZ
7216 if test "$enableval" = yes; then
7217 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7218 else
7219 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7220 fi
a0b9e27f 7221
1db8dc4a 7222else
a0b9e27f 7223
1db8dc4a
VZ
7224 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7232
7233fi
1db8dc4a
VZ
7234
7235
7236 eval "$ac_cv_use_togglebtn"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7242 echo "$ac_t""yes" 1>&6
1db8dc4a 7243 else
a0b9e27f 7244 echo "$ac_t""no" 1>&6
1db8dc4a 7245 fi
a0b9e27f 7246
1db8dc4a 7247
5005acfe
VZ
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
65d8ef1e 7250echo "configure:7251: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7251 no_cache=0
7252 # Check whether --enable-toolbar or --disable-toolbar was given.
7253if test "${enable_toolbar+set}" = set; then
7254 enableval="$enable_toolbar"
a0b9e27f 7255
10f2d63a
VZ
7256 if test "$enableval" = yes; then
7257 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7258 else
7259 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7260 fi
a0b9e27f 7261
10f2d63a 7262else
a0b9e27f 7263
10f2d63a
VZ
7264 LINE=`grep "wxUSE_TOOLBAR" ${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_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7272
7273fi
10f2d63a
VZ
7274
7275
7276 eval "$ac_cv_use_toolbar"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7282 echo "$ac_t""yes" 1>&6
10f2d63a 7283 else
a0b9e27f 7284 echo "$ac_t""no" 1>&6
10f2d63a 7285 fi
a0b9e27f 7286
10f2d63a 7287
5005acfe
VZ
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
65d8ef1e 7290echo "configure:7291: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7291 no_cache=0
7292 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7293if test "${enable_tbarnative+set}" = set; then
7294 enableval="$enable_tbarnative"
a0b9e27f 7295
360d6699
VZ
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7298 else
7299 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7300 fi
a0b9e27f 7301
360d6699 7302else
a0b9e27f 7303
360d6699
VZ
7304 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7312
7313fi
360d6699
VZ
7314
7315
7316 eval "$ac_cv_use_tbarnative"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7322 echo "$ac_t""yes" 1>&6
360d6699 7323 else
a0b9e27f 7324 echo "$ac_t""no" 1>&6
360d6699 7325 fi
a0b9e27f 7326
360d6699 7327
5005acfe
VZ
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
65d8ef1e 7330echo "configure:7331: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7331 no_cache=0
7332 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7333if test "${enable_tbarsmpl+set}" = set; then
7334 enableval="$enable_tbarsmpl"
a0b9e27f 7335
360d6699
VZ
7336 if test "$enableval" = yes; then
7337 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7338 else
7339 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7340 fi
a0b9e27f 7341
360d6699 7342else
a0b9e27f 7343
360d6699
VZ
7344 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7352
7353fi
360d6699
VZ
7354
7355
7356 eval "$ac_cv_use_tbarsmpl"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7362 echo "$ac_t""yes" 1>&6
360d6699 7363 else
a0b9e27f 7364 echo "$ac_t""no" 1>&6
360d6699 7365 fi
a0b9e27f 7366
360d6699 7367
5005acfe
VZ
7368 enablestring=
7369 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
65d8ef1e 7370echo "configure:7371: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7371 no_cache=0
7372 # Check whether --enable-treectrl or --disable-treectrl was given.
7373if test "${enable_treectrl+set}" = set; then
7374 enableval="$enable_treectrl"
a0b9e27f 7375
10f2d63a
VZ
7376 if test "$enableval" = yes; then
7377 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7378 else
7379 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7380 fi
a0b9e27f 7381
10f2d63a 7382else
a0b9e27f 7383
10f2d63a
VZ
7384 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
7391 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7392
7393fi
10f2d63a
VZ
7394
7395
1e6feb95
VZ
7396 eval "$ac_cv_use_treectrl"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7402 echo "$ac_t""yes" 1>&6
1e6feb95 7403 else
a0b9e27f 7404 echo "$ac_t""no" 1>&6
1e6feb95 7405 fi
a0b9e27f 7406
1e6feb95 7407
5005acfe
VZ
7408 enablestring=
7409 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
65d8ef1e 7410echo "configure:7411: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7411 no_cache=0
7412 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7413if test "${enable_tipwindow+set}" = set; then
7414 enableval="$enable_tipwindow"
a0b9e27f 7415
9926e4a4
VZ
7416 if test "$enableval" = yes; then
7417 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7418 else
7419 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7420 fi
a0b9e27f 7421
9926e4a4 7422else
a0b9e27f 7423
9926e4a4
VZ
7424 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7432
7433fi
9926e4a4
VZ
7434
7435
7436 eval "$ac_cv_use_tipwindow"
7437 if test "$no_cache" != 1; then
7438 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7439 fi
7440
7441 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7442 echo "$ac_t""yes" 1>&6
9926e4a4 7443 else
a0b9e27f 7444 echo "$ac_t""no" 1>&6
9926e4a4 7445 fi
a0b9e27f 7446
9926e4a4 7447
5005acfe
VZ
7448 enablestring=
7449 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
65d8ef1e 7450echo "configure:7451: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7451 no_cache=0
7452 # Check whether --enable-popupwin or --disable-popupwin was given.
7453if test "${enable_popupwin+set}" = set; then
7454 enableval="$enable_popupwin"
a0b9e27f 7455
9f41d601
RR
7456 if test "$enableval" = yes; then
7457 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7458 else
7459 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7460 fi
a0b9e27f 7461
9f41d601 7462else
a0b9e27f 7463
9f41d601
RR
7464 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7465 if test "x$LINE" != x ; then
7466 eval "DEFAULT_$LINE"
7467 else
7468 no_cache=1
7469 fi
7470
7471 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7472
7473fi
9f41d601
RR
7474
7475
7476 eval "$ac_cv_use_popupwin"
7477 if test "$no_cache" != 1; then
7478 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7479 fi
7480
7481 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7482 echo "$ac_t""yes" 1>&6
9f41d601 7483 else
a0b9e27f 7484 echo "$ac_t""no" 1>&6
9f41d601 7485 fi
a0b9e27f 7486
52127426 7487
8284b0c5
MB
7488
7489
5005acfe
VZ
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
65d8ef1e 7492echo "configure:7493: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7493 no_cache=0
7494 # Check whether --enable-commondlg or --disable-commondlg was given.
7495if test "${enable_commondlg+set}" = set; then
7496 enableval="$enable_commondlg"
a0b9e27f 7497
1e6feb95
VZ
7498 if test "$enableval" = yes; then
7499 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7500 else
7501 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7502 fi
a0b9e27f 7503
1e6feb95 7504else
a0b9e27f 7505
1e6feb95
VZ
7506 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7514
7515fi
1e6feb95
VZ
7516
7517
7518 eval "$ac_cv_use_commondlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7524 echo "$ac_t""yes" 1>&6
1e6feb95 7525 else
a0b9e27f 7526 echo "$ac_t""no" 1>&6
1e6feb95 7527 fi
a0b9e27f 7528
1e6feb95 7529
5005acfe
VZ
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
65d8ef1e 7532echo "configure:7533: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7533 no_cache=0
7534 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7535if test "${enable_choicedlg+set}" = set; then
7536 enableval="$enable_choicedlg"
a0b9e27f 7537
1e6feb95
VZ
7538 if test "$enableval" = yes; then
7539 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7540 else
7541 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7542 fi
a0b9e27f 7543
1e6feb95 7544else
a0b9e27f 7545
1e6feb95
VZ
7546 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7554
7555fi
1e6feb95
VZ
7556
7557
7558 eval "$ac_cv_use_choicedlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7564 echo "$ac_t""yes" 1>&6
1e6feb95 7565 else
a0b9e27f 7566 echo "$ac_t""no" 1>&6
1e6feb95 7567 fi
a0b9e27f 7568
1e6feb95 7569
5005acfe
VZ
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
65d8ef1e 7572echo "configure:7573: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7573 no_cache=0
7574 # Check whether --enable-coldlg or --disable-coldlg was given.
7575if test "${enable_coldlg+set}" = set; then
7576 enableval="$enable_coldlg"
a0b9e27f 7577
1e6feb95
VZ
7578 if test "$enableval" = yes; then
7579 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7580 else
7581 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7582 fi
a0b9e27f 7583
1e6feb95 7584else
a0b9e27f 7585
1e6feb95
VZ
7586 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7594
7595fi
1e6feb95
VZ
7596
7597
7598 eval "$ac_cv_use_coldlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7604 echo "$ac_t""yes" 1>&6
1e6feb95 7605 else
a0b9e27f 7606 echo "$ac_t""no" 1>&6
1e6feb95 7607 fi
a0b9e27f 7608
1e6feb95 7609
5005acfe
VZ
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
65d8ef1e 7612echo "configure:7613: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7613 no_cache=0
7614 # Check whether --enable-filedlg or --disable-filedlg was given.
7615if test "${enable_filedlg+set}" = set; then
7616 enableval="$enable_filedlg"
a0b9e27f 7617
1e6feb95
VZ
7618 if test "$enableval" = yes; then
7619 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7620 else
7621 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7622 fi
a0b9e27f 7623
1e6feb95 7624else
a0b9e27f 7625
1e6feb95
VZ
7626 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7634
7635fi
1e6feb95
VZ
7636
7637
7638 eval "$ac_cv_use_filedlg"
7639 if test "$no_cache" != 1; then
7640 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7641 fi
7642
7643 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7644 echo "$ac_t""yes" 1>&6
1e6feb95 7645 else
a0b9e27f 7646 echo "$ac_t""no" 1>&6
1e6feb95 7647 fi
a0b9e27f 7648
1e6feb95 7649
5005acfe
VZ
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
65d8ef1e 7652echo "configure:7653: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7653 no_cache=0
69d27ff7
MB
7654 # Check whether --enable-finddlg or --disable-finddlg was given.
7655if test "${enable_finddlg+set}" = set; then
7656 enableval="$enable_finddlg"
a0b9e27f 7657
8db37e06 7658 if test "$enableval" = yes; then
69d27ff7 7659 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7660 else
69d27ff7 7661 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7662 fi
a0b9e27f 7663
8db37e06 7664else
a0b9e27f 7665
8db37e06
VZ
7666 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
69d27ff7 7673 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7674
7675fi
8db37e06
VZ
7676
7677
69d27ff7 7678 eval "$ac_cv_use_finddlg"
8db37e06 7679 if test "$no_cache" != 1; then
69d27ff7 7680 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7681 fi
7682
7683 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7684 echo "$ac_t""yes" 1>&6
8db37e06 7685 else
a0b9e27f 7686 echo "$ac_t""no" 1>&6
8db37e06 7687 fi
a0b9e27f 7688
8db37e06 7689
5005acfe
VZ
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
65d8ef1e 7692echo "configure:7693: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7693 no_cache=0
7694 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7695if test "${enable_fontdlg+set}" = set; then
7696 enableval="$enable_fontdlg"
a0b9e27f 7697
1e6feb95
VZ
7698 if test "$enableval" = yes; then
7699 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7700 else
7701 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7702 fi
a0b9e27f 7703
1e6feb95 7704else
a0b9e27f 7705
1e6feb95
VZ
7706 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7714
7715fi
1e6feb95
VZ
7716
7717
7718 eval "$ac_cv_use_fontdlg"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7724 echo "$ac_t""yes" 1>&6
1e6feb95 7725 else
a0b9e27f 7726 echo "$ac_t""no" 1>&6
1e6feb95 7727 fi
a0b9e27f 7728
1e6feb95 7729
5005acfe
VZ
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
65d8ef1e 7732echo "configure:7733: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7733 no_cache=0
7734 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7735if test "${enable_dirdlg+set}" = set; then
7736 enableval="$enable_dirdlg"
a0b9e27f 7737
1e6feb95
VZ
7738 if test "$enableval" = yes; then
7739 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7740 else
7741 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7742 fi
a0b9e27f 7743
1e6feb95 7744else
a0b9e27f 7745
1e6feb95
VZ
7746 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7754
7755fi
1e6feb95
VZ
7756
7757
7758 eval "$ac_cv_use_dirdlg"
10f2d63a 7759 if test "$no_cache" != 1; then
1e6feb95 7760 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7761 fi
7762
1e6feb95 7763 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7764 echo "$ac_t""yes" 1>&6
10f2d63a 7765 else
a0b9e27f 7766 echo "$ac_t""no" 1>&6
10f2d63a 7767 fi
a0b9e27f 7768
698dcdb6 7769
5005acfe
VZ
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
65d8ef1e 7772echo "configure:7773: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7773 no_cache=0
1e6feb95
VZ
7774 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7775if test "${enable_msgdlg+set}" = set; then
7776 enableval="$enable_msgdlg"
a0b9e27f 7777
10f2d63a 7778 if test "$enableval" = yes; then
1e6feb95 7779 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7780 else
1e6feb95 7781 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7782 fi
a0b9e27f 7783
10f2d63a 7784else
a0b9e27f 7785
1e6feb95 7786 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
1e6feb95 7793 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7794
7795fi
10f2d63a
VZ
7796
7797
1e6feb95 7798 eval "$ac_cv_use_msgdlg"
10f2d63a 7799 if test "$no_cache" != 1; then
1e6feb95 7800 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7801 fi
7802
1e6feb95 7803 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7804 echo "$ac_t""yes" 1>&6
10f2d63a 7805 else
a0b9e27f 7806 echo "$ac_t""no" 1>&6
10f2d63a 7807 fi
a0b9e27f 7808
10f2d63a 7809
5005acfe
VZ
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
65d8ef1e 7812echo "configure:7813: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7813 no_cache=0
1e6feb95
VZ
7814 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7815if test "${enable_numberdlg+set}" = set; then
7816 enableval="$enable_numberdlg"
a0b9e27f 7817
10f2d63a 7818 if test "$enableval" = yes; then
1e6feb95 7819 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7820 else
1e6feb95 7821 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7822 fi
a0b9e27f 7823
10f2d63a 7824else
a0b9e27f 7825
1e6feb95 7826 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
1e6feb95 7833 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7834
7835fi
10f2d63a
VZ
7836
7837
1e6feb95 7838 eval "$ac_cv_use_numberdlg"
10f2d63a 7839 if test "$no_cache" != 1; then
1e6feb95 7840 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7841 fi
7842
1e6feb95 7843 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7844 echo "$ac_t""yes" 1>&6
10f2d63a 7845 else
a0b9e27f 7846 echo "$ac_t""no" 1>&6
10f2d63a 7847 fi
a0b9e27f 7848
10f2d63a 7849
5005acfe
VZ
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
65d8ef1e 7852echo "configure:7853: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7853 no_cache=0
7854 # Check whether --enable-splash or --disable-splash was given.
7855if test "${enable_splash+set}" = set; then
7856 enableval="$enable_splash"
a0b9e27f 7857
cbca9943
VZ
7858 if test "$enableval" = yes; then
7859 ac_cv_use_splash='wxUSE_SPLASH=yes'
7860 else
7861 ac_cv_use_splash='wxUSE_SPLASH=no'
7862 fi
a0b9e27f 7863
cbca9943 7864else
a0b9e27f 7865
cbca9943
VZ
7866 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7874
7875fi
cbca9943
VZ
7876
7877
7878 eval "$ac_cv_use_splash"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7884 echo "$ac_t""yes" 1>&6
cbca9943 7885 else
a0b9e27f 7886 echo "$ac_t""no" 1>&6
cbca9943 7887 fi
a0b9e27f 7888
cbca9943 7889
5005acfe
VZ
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
65d8ef1e 7892echo "configure:7893: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7893 no_cache=0
7894 # Check whether --enable-textdlg or --disable-textdlg was given.
7895if test "${enable_textdlg+set}" = set; then
7896 enableval="$enable_textdlg"
a0b9e27f 7897
10f2d63a
VZ
7898 if test "$enableval" = yes; then
7899 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7900 else
7901 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7902 fi
a0b9e27f 7903
10f2d63a 7904else
a0b9e27f 7905
10f2d63a
VZ
7906 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7914
7915fi
10f2d63a
VZ
7916
7917
7918 eval "$ac_cv_use_textdlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7924 echo "$ac_t""yes" 1>&6
10f2d63a 7925 else
a0b9e27f 7926 echo "$ac_t""no" 1>&6
10f2d63a 7927 fi
a0b9e27f 7928
10f2d63a 7929
5005acfe
VZ
7930 enablestring=
7931 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
65d8ef1e 7932echo "configure:7933: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7933 no_cache=0
7934 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7935if test "${enable_tipdlg+set}" = set; then
7936 enableval="$enable_tipdlg"
a0b9e27f 7937
10f2d63a
VZ
7938 if test "$enableval" = yes; then
7939 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7940 else
7941 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7942 fi
a0b9e27f 7943
10f2d63a 7944else
a0b9e27f 7945
10f2d63a
VZ
7946 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7954
7955fi
10f2d63a
VZ
7956
7957
7958 eval "$ac_cv_use_tipdlg"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7964 echo "$ac_t""yes" 1>&6
10f2d63a 7965 else
a0b9e27f 7966 echo "$ac_t""no" 1>&6
10f2d63a 7967 fi
a0b9e27f 7968
10f2d63a 7969
5005acfe
VZ
7970 enablestring=
7971 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
65d8ef1e 7972echo "configure:7973: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7973 no_cache=0
7974 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7975if test "${enable_progressdlg+set}" = set; then
7976 enableval="$enable_progressdlg"
a0b9e27f 7977
10f2d63a
VZ
7978 if test "$enableval" = yes; then
7979 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7980 else
7981 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7982 fi
a0b9e27f 7983
10f2d63a 7984else
a0b9e27f 7985
10f2d63a
VZ
7986 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7994
7995fi
10f2d63a
VZ
7996
7997
7998 eval "$ac_cv_use_progressdlg"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 8004 echo "$ac_t""yes" 1>&6
10f2d63a 8005 else
a0b9e27f 8006 echo "$ac_t""no" 1>&6
10f2d63a 8007 fi
a0b9e27f 8008
10f2d63a 8009
5005acfe
VZ
8010 enablestring=
8011 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
65d8ef1e 8012echo "configure:8013: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
8013 no_cache=0
8014 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8015if test "${enable_wizarddlg+set}" = set; then
8016 enableval="$enable_wizarddlg"
a0b9e27f 8017
b1f5d087
VZ
8018 if test "$enableval" = yes; then
8019 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8020 else
8021 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8022 fi
a0b9e27f 8023
b1f5d087 8024else
a0b9e27f 8025
b1f5d087
VZ
8026 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
8034
8035fi
b1f5d087
VZ
8036
8037
8038 eval "$ac_cv_use_wizarddlg"
8039 if test "$no_cache" != 1; then
8040 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8041 fi
8042
8043 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 8044 echo "$ac_t""yes" 1>&6
b1f5d087 8045 else
a0b9e27f 8046 echo "$ac_t""no" 1>&6
b1f5d087 8047 fi
a0b9e27f 8048
8284b0c5
MB
8049
8050
52127426 8051
5005acfe
VZ
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
65d8ef1e 8054echo "configure:8055: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
8055 no_cache=0
8056 # Check whether --enable-menus or --disable-menus was given.
8057if test "${enable_menus+set}" = set; then
8058 enableval="$enable_menus"
a0b9e27f 8059
1e6feb95
VZ
8060 if test "$enableval" = yes; then
8061 ac_cv_use_menus='wxUSE_MENUS=yes'
8062 else
8063 ac_cv_use_menus='wxUSE_MENUS=no'
8064 fi
a0b9e27f 8065
1e6feb95 8066else
a0b9e27f 8067
1e6feb95
VZ
8068 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
8076
8077fi
1e6feb95
VZ
8078
8079
8080 eval "$ac_cv_use_menus"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 8086 echo "$ac_t""yes" 1>&6
1e6feb95 8087 else
a0b9e27f 8088 echo "$ac_t""no" 1>&6
1e6feb95 8089 fi
a0b9e27f 8090
1e6feb95 8091
5005acfe
VZ
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
65d8ef1e 8094echo "configure:8095: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
8095 no_cache=0
8096 # Check whether --enable-miniframe or --disable-miniframe was given.
8097if test "${enable_miniframe+set}" = set; then
8098 enableval="$enable_miniframe"
a0b9e27f 8099
10f2d63a
VZ
8100 if test "$enableval" = yes; then
8101 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8102 else
8103 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8104 fi
a0b9e27f 8105
10f2d63a 8106else
a0b9e27f 8107
10f2d63a
VZ
8108 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8116
8117fi
10f2d63a
VZ
8118
8119
8120 eval "$ac_cv_use_miniframe"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8126 echo "$ac_t""yes" 1>&6
10f2d63a 8127 else
a0b9e27f 8128 echo "$ac_t""no" 1>&6
10f2d63a 8129 fi
a0b9e27f 8130
10f2d63a 8131
5005acfe
VZ
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
65d8ef1e 8134echo "configure:8135: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8135 no_cache=0
8136 # Check whether --enable-tooltips or --disable-tooltips was given.
8137if test "${enable_tooltips+set}" = set; then
8138 enableval="$enable_tooltips"
a0b9e27f 8139
10f2d63a
VZ
8140 if test "$enableval" = yes; then
8141 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8142 else
8143 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8144 fi
a0b9e27f 8145
10f2d63a 8146else
a0b9e27f 8147
10f2d63a
VZ
8148 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8156
8157fi
10f2d63a
VZ
8158
8159
8160 eval "$ac_cv_use_tooltips"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8166 echo "$ac_t""yes" 1>&6
10f2d63a 8167 else
a0b9e27f 8168 echo "$ac_t""no" 1>&6
10f2d63a 8169 fi
a0b9e27f 8170
10f2d63a 8171
5005acfe
VZ
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
65d8ef1e 8174echo "configure:8175: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8175 no_cache=0
8176 # Check whether --enable-splines or --disable-splines was given.
8177if test "${enable_splines+set}" = set; then
8178 enableval="$enable_splines"
a0b9e27f 8179
10f2d63a
VZ
8180 if test "$enableval" = yes; then
8181 ac_cv_use_splines='wxUSE_SPLINES=yes'
8182 else
8183 ac_cv_use_splines='wxUSE_SPLINES=no'
8184 fi
a0b9e27f 8185
10f2d63a 8186else
a0b9e27f 8187
10f2d63a
VZ
8188 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8196
8197fi
10f2d63a
VZ
8198
8199
8200 eval "$ac_cv_use_splines"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8206 echo "$ac_t""yes" 1>&6
10f2d63a 8207 else
a0b9e27f 8208 echo "$ac_t""no" 1>&6
10f2d63a 8209 fi
a0b9e27f 8210
10f2d63a 8211
5005acfe
VZ
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
65d8ef1e 8214echo "configure:8215: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8215 no_cache=0
8216 # Check whether --enable-validators or --disable-validators was given.
8217if test "${enable_validators+set}" = set; then
8218 enableval="$enable_validators"
a0b9e27f 8219
10f2d63a
VZ
8220 if test "$enableval" = yes; then
8221 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8222 else
8223 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8224 fi
a0b9e27f 8225
10f2d63a 8226else
a0b9e27f 8227
10f2d63a
VZ
8228 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8236
8237fi
10f2d63a
VZ
8238
8239
8240 eval "$ac_cv_use_validators"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8246 echo "$ac_t""yes" 1>&6
10f2d63a 8247 else
a0b9e27f 8248 echo "$ac_t""no" 1>&6
10f2d63a 8249 fi
a0b9e27f 8250
10f2d63a 8251
5005acfe
VZ
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
65d8ef1e 8254echo "configure:8255: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8255 no_cache=0
8256 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8257if test "${enable_busyinfo+set}" = set; then
8258 enableval="$enable_busyinfo"
a0b9e27f 8259
10f2d63a
VZ
8260 if test "$enableval" = yes; then
8261 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8262 else
8263 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8264 fi
a0b9e27f 8265
10f2d63a 8266else
a0b9e27f 8267
10f2d63a
VZ
8268 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8276
8277fi
10f2d63a
VZ
8278
8279
8280 eval "$ac_cv_use_busyinfo"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8286 echo "$ac_t""yes" 1>&6
10f2d63a 8287 else
a0b9e27f 8288 echo "$ac_t""no" 1>&6
10f2d63a 8289 fi
a0b9e27f 8290
10f2d63a 8291
5005acfe
VZ
8292 enablestring=
8293 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
65d8ef1e 8294echo "configure:8295: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8295 no_cache=0
8296 # Check whether --enable-joystick or --disable-joystick was given.
8297if test "${enable_joystick+set}" = set; then
8298 enableval="$enable_joystick"
a0b9e27f 8299
f6bcfd97
BP
8300 if test "$enableval" = yes; then
8301 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8302 else
8303 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8304 fi
a0b9e27f 8305
f6bcfd97 8306else
a0b9e27f 8307
f6bcfd97
BP
8308 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8309 if test "x$LINE" != x ; then
8310 eval "DEFAULT_$LINE"
8311 else
8312 no_cache=1
8313 fi
8314
8315 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8316
8317fi
f6bcfd97
BP
8318
8319
8320 eval "$ac_cv_use_joystick"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8326 echo "$ac_t""yes" 1>&6
f6bcfd97 8327 else
a0b9e27f 8328 echo "$ac_t""no" 1>&6
f6bcfd97 8329 fi
a0b9e27f 8330
698dcdb6 8331
5005acfe
VZ
8332 enablestring=
8333 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
65d8ef1e 8334echo "configure:8335: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8335 no_cache=0
8336 # Check whether --enable-metafile or --disable-metafile was given.
8337if test "${enable_metafile+set}" = set; then
8338 enableval="$enable_metafile"
a0b9e27f 8339
1e6feb95
VZ
8340 if test "$enableval" = yes; then
8341 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8342 else
8343 ac_cv_use_metafile='wxUSE_METAFILE=no'
8344 fi
a0b9e27f 8345
1e6feb95 8346else
a0b9e27f 8347
1e6feb95
VZ
8348 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8356
8357fi
1e6feb95
VZ
8358
8359
8360 eval "$ac_cv_use_metafile"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8366 echo "$ac_t""yes" 1>&6
1e6feb95 8367 else
a0b9e27f 8368 echo "$ac_t""no" 1>&6
1e6feb95 8369 fi
a0b9e27f 8370
1e6feb95 8371
5005acfe
VZ
8372 enablestring=
8373 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
65d8ef1e 8374echo "configure:8375: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8375 no_cache=0
8376 # Check whether --enable-dragimage or --disable-dragimage was given.
8377if test "${enable_dragimage+set}" = set; then
8378 enableval="$enable_dragimage"
a0b9e27f 8379
24fd6d87
VZ
8380 if test "$enableval" = yes; then
8381 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8382 else
8383 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8384 fi
a0b9e27f 8385
24fd6d87 8386else
a0b9e27f 8387
24fd6d87
VZ
8388 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8396
8397fi
24fd6d87
VZ
8398
8399
8400 eval "$ac_cv_use_dragimage"
8401 if test "$no_cache" != 1; then
8402 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8403 fi
8404
8405 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8406 echo "$ac_t""yes" 1>&6
24fd6d87 8407 else
a0b9e27f 8408 echo "$ac_t""no" 1>&6
24fd6d87 8409 fi
a0b9e27f 8410
52127426 8411
8284b0c5
MB
8412
8413
5005acfe
VZ
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
65d8ef1e 8416echo "configure:8417: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8417 no_cache=0
8418 # Check whether --enable-palette or --disable-palette was given.
8419if test "${enable_palette+set}" = set; then
8420 enableval="$enable_palette"
a0b9e27f 8421
edae8572
VZ
8422 if test "$enableval" = yes; then
8423 ac_cv_use_palette='wxUSE_PALETTE=yes'
8424 else
8425 ac_cv_use_palette='wxUSE_PALETTE=no'
8426 fi
a0b9e27f 8427
edae8572 8428else
a0b9e27f 8429
edae8572
VZ
8430 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8438
8439fi
edae8572
VZ
8440
8441
8442 eval "$ac_cv_use_palette"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8448 echo "$ac_t""yes" 1>&6
edae8572 8449 else
a0b9e27f 8450 echo "$ac_t""no" 1>&6
edae8572 8451 fi
a0b9e27f 8452
edae8572 8453
5005acfe
VZ
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
65d8ef1e 8456echo "configure:8457: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8457 no_cache=0
8458 # Check whether --enable-image or --disable-image was given.
8459if test "${enable_image+set}" = set; then
8460 enableval="$enable_image"
a0b9e27f 8461
0046ff7c
VS
8462 if test "$enableval" = yes; then
8463 ac_cv_use_image='wxUSE_IMAGE=yes'
8464 else
8465 ac_cv_use_image='wxUSE_IMAGE=no'
8466 fi
a0b9e27f 8467
0046ff7c 8468else
a0b9e27f 8469
0046ff7c
VS
8470 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8478
8479fi
0046ff7c
VS
8480
8481
8482 eval "$ac_cv_use_image"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8488 echo "$ac_t""yes" 1>&6
0046ff7c 8489 else
a0b9e27f 8490 echo "$ac_t""no" 1>&6
0046ff7c 8491 fi
a0b9e27f 8492
0046ff7c 8493
5005acfe
VZ
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
65d8ef1e 8496echo "configure:8497: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8497 no_cache=0
8498 # Check whether --enable-gif or --disable-gif was given.
8499if test "${enable_gif+set}" = set; then
8500 enableval="$enable_gif"
a0b9e27f 8501
10f2d63a
VZ
8502 if test "$enableval" = yes; then
8503 ac_cv_use_gif='wxUSE_GIF=yes'
8504 else
8505 ac_cv_use_gif='wxUSE_GIF=no'
8506 fi
a0b9e27f 8507
10f2d63a 8508else
a0b9e27f 8509
10f2d63a
VZ
8510 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8518
8519fi
10f2d63a
VZ
8520
8521
8522 eval "$ac_cv_use_gif"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8528 echo "$ac_t""yes" 1>&6
10f2d63a 8529 else
a0b9e27f 8530 echo "$ac_t""no" 1>&6
10f2d63a 8531 fi
a0b9e27f 8532
10f2d63a 8533
5005acfe
VZ
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
65d8ef1e 8536echo "configure:8537: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8537 no_cache=0
8538 # Check whether --enable-pcx or --disable-pcx was given.
8539if test "${enable_pcx+set}" = set; then
8540 enableval="$enable_pcx"
a0b9e27f 8541
10f2d63a
VZ
8542 if test "$enableval" = yes; then
8543 ac_cv_use_pcx='wxUSE_PCX=yes'
8544 else
8545 ac_cv_use_pcx='wxUSE_PCX=no'
8546 fi
a0b9e27f 8547
10f2d63a 8548else
a0b9e27f 8549
10f2d63a
VZ
8550 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
8557 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8558
8559fi
10f2d63a
VZ
8560
8561
8562 eval "$ac_cv_use_pcx"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8568 echo "$ac_t""yes" 1>&6
10f2d63a 8569 else
a0b9e27f 8570 echo "$ac_t""no" 1>&6
10f2d63a 8571 fi
a0b9e27f 8572
10f2d63a 8573
5005acfe
VZ
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
65d8ef1e 8576echo "configure:8577: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8577 no_cache=0
8578 # Check whether --enable-iff or --disable-iff was given.
8579if test "${enable_iff+set}" = set; then
8580 enableval="$enable_iff"
a0b9e27f 8581
4b6b4dfc
RR
8582 if test "$enableval" = yes; then
8583 ac_cv_use_iff='wxUSE_IFF=yes'
8584 else
8585 ac_cv_use_iff='wxUSE_IFF=no'
8586 fi
a0b9e27f 8587
4b6b4dfc 8588else
a0b9e27f 8589
4b6b4dfc
RR
8590 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8598
8599fi
4b6b4dfc
RR
8600
8601
8602 eval "$ac_cv_use_iff"
8603 if test "$no_cache" != 1; then
8604 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8605 fi
8606
8607 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8608 echo "$ac_t""yes" 1>&6
4b6b4dfc 8609 else
a0b9e27f 8610 echo "$ac_t""no" 1>&6
4b6b4dfc 8611 fi
a0b9e27f 8612
4b6b4dfc 8613
5005acfe
VZ
8614 enablestring=
8615 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
65d8ef1e 8616echo "configure:8617: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8617 no_cache=0
8618 # Check whether --enable-pnm or --disable-pnm was given.
8619if test "${enable_pnm+set}" = set; then
8620 enableval="$enable_pnm"
a0b9e27f 8621
10f2d63a
VZ
8622 if test "$enableval" = yes; then
8623 ac_cv_use_pnm='wxUSE_PNM=yes'
8624 else
8625 ac_cv_use_pnm='wxUSE_PNM=no'
8626 fi
a0b9e27f 8627
10f2d63a 8628else
a0b9e27f 8629
10f2d63a
VZ
8630 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8638
8639fi
10f2d63a
VZ
8640
8641
8642 eval "$ac_cv_use_pnm"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8648 echo "$ac_t""yes" 1>&6
10f2d63a 8649 else
a0b9e27f 8650 echo "$ac_t""no" 1>&6
10f2d63a 8651 fi
a0b9e27f 8652
10f2d63a 8653
5005acfe
VZ
8654 enablestring=
8655 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
65d8ef1e 8656echo "configure:8657: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8657 no_cache=0
69d27ff7
MB
8658 # Check whether --enable-xpm or --disable-xpm was given.
8659if test "${enable_xpm+set}" = set; then
8660 enableval="$enable_xpm"
a0b9e27f 8661
0046ff7c 8662 if test "$enableval" = yes; then
69d27ff7 8663 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8664 else
69d27ff7 8665 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8666 fi
a0b9e27f 8667
0046ff7c 8668else
a0b9e27f 8669
0046ff7c
VS
8670 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
69d27ff7 8677 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8678
8679fi
0046ff7c
VS
8680
8681
69d27ff7 8682 eval "$ac_cv_use_xpm"
0046ff7c 8683 if test "$no_cache" != 1; then
69d27ff7 8684 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8685 fi
8686
8687 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8688 echo "$ac_t""yes" 1>&6
0046ff7c 8689 else
a0b9e27f 8690 echo "$ac_t""no" 1>&6
0046ff7c 8691 fi
a0b9e27f 8692
0046ff7c 8693
5005acfe
VZ
8694 enablestring=
8695 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
65d8ef1e 8696echo "configure:8697: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8697 no_cache=0
c7206e64
VS
8698 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8699if test "${enable_ico_cur+set}" = set; then
8700 enableval="$enable_ico_cur"
a0b9e27f 8701
658974ae 8702 if test "$enableval" = yes; then
c7206e64 8703 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8704 else
c7206e64 8705 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8706 fi
a0b9e27f 8707
658974ae 8708else
a0b9e27f 8709
658974ae
VS
8710 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
c7206e64 8717 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8718
8719fi
658974ae
VS
8720
8721
c7206e64 8722 eval "$ac_cv_use_ico_cur"
658974ae 8723 if test "$no_cache" != 1; then
c7206e64 8724 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8725 fi
8726
8727 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8728 echo "$ac_t""yes" 1>&6
658974ae 8729 else
a0b9e27f 8730 echo "$ac_t""no" 1>&6
658974ae 8731 fi
a0b9e27f 8732
658974ae 8733
b12915c1
VZ
8734fi
8735
d558c907
VS
8736case "${host}" in
8737 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8738 PATH_IFS=';'
8739 LEX_STEM="lexyy"
d558c907
VS
8740 ;;
8741 *)
8742 PATH_IFS=':'
8743 LEX_STEM="lex.yy"
8744 ;;
8745esac
8746
8284b0c5
MB
8747
8748
10f2d63a
VZ
8749 echo "saving argument cache $wx_arg_cache_file"
8750 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8751
52127426 8752
8284b0c5 8753
a0b9e27f 8754echo $ac_n "checking for toolkit""... $ac_c" 1>&6
65d8ef1e 8755echo "configure:8756: checking for toolkit" >&5
89e6bf6d
VZ
8756
8757# In Wine, we need to default to MSW, not GTK or MOTIF
8758if test "$wxUSE_WINE" = "yes"; then
8759 DEFAULT_DEFAULT_wxUSE_GTK=0
8760 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8761 DEFAULT_DEFAULT_wxUSE_MSW=1
8762fi
10f2d63a
VZ
8763
8764if test "$wxUSE_GUI" = "yes"; then
8765
3a922bb4 8766 if test "$USE_BEOS" = 1; then
a0b9e27f 8767 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8768 fi
b12915c1 8769
3a922bb4
RL
8770 if test "$TOOLKIT_GIVEN" = 1; then
8771 for toolkit in `echo $ALL_TOOLKITS`; do
8772 var=wxUSE_$toolkit
8773 eval "value=\$${var}"
8774 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8775 done
10f2d63a 8776 else
3a922bb4
RL
8777 for toolkit in `echo $ALL_TOOLKITS`; do
8778 if test "$has_toolkit_in_cache" != 1; then
8779 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8780 else
8781 var=DEFAULT_wxUSE_$toolkit
8782 fi
8783 eval "wxUSE_$toolkit=\$${var}"
8784 done
10f2d63a 8785 fi
10f2d63a 8786
3a922bb4 8787 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
89e6bf6d 8788 + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8789
d558c907 8790 case "${host}" in
6fa882bd 8791 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8792 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8793 esac
10f2d63a 8794
3a922bb4
RL
8795 case "$NUM_TOOLKITS" in
8796 1)
8797 ;;
8798 0)
a0b9e27f 8799 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8800 ;;
8801 *)
a0b9e27f 8802 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8803 esac
10f2d63a 8804
3a922bb4
RL
8805 for toolkit in `echo $ALL_TOOLKITS`; do
8806 var=wxUSE_$toolkit
8807 eval "value=\$${var}"
8808 if test "x$value" != x; then
8809 cache_var=CACHE_$toolkit
8810 eval "cache=\$${cache_var}"
8811 if test "$cache" = 1; then
8812 echo "$var=$value" >> ${wx_arg_cache_file}
8813 fi
8814 if test "$value" = 1; then
8815 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8816 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8817 fi
8818 fi
8819 done
10f2d63a 8820else
a0b9e27f 8821 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8822fi
8823
43d99b6d
VS
8824wants_win32=0
8825doesnt_want_win32=0
17234b26
MB
8826case "${host}" in
8827 *-*-cygwin*)
8828 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8829 wants_win32=1
8830 else
8831 doesnt_want_win32=1
17234b26
MB
8832 fi
8833 ;;
8834 *-*-mingw*)
43d99b6d 8835 wants_win32=1
17234b26
MB
8836 ;;
8837esac
8838
89e6bf6d
VZ
8839if test "$wxUSE_WINE" = "yes"; then
8840 wants_win32=1
8841 CC=winegcc
8842 CXX=wineg++
8843 RESCOMP=wrc
8844fi
8845
43d99b6d 8846if test "$wants_win32" = 1 ; then
17234b26
MB
8847 USE_UNIX=0
8848 USE_WIN32=1
a0b9e27f 8849 cat >> confdefs.h <<\EOF
17234b26 8850#define __WIN32__ 1
a0b9e27f 8851EOF
17234b26 8852
a0b9e27f 8853 cat >> confdefs.h <<\EOF
17234b26 8854#define __WIN95__ 1
a0b9e27f 8855EOF
17234b26 8856
a0b9e27f 8857 cat >> confdefs.h <<\EOF
17234b26 8858#define __WINDOWS__ 1
a0b9e27f 8859EOF
17234b26 8860
a0b9e27f 8861 cat >> confdefs.h <<\EOF
17234b26 8862#define __GNUWIN32__ 1
a0b9e27f 8863EOF
17234b26 8864
a0b9e27f 8865 cat >> confdefs.h <<\EOF
17234b26 8866#define STRICT 1
a0b9e27f 8867EOF
17234b26 8868
a0b9e27f 8869 cat >> confdefs.h <<\EOF
17234b26 8870#define WINVER 0x0400
a0b9e27f 8871EOF
17234b26 8872
43d99b6d
VS
8873fi
8874if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8875 USE_UNIX=1
8876 USE_WIN32=0
8877fi
8878
8879if test "$USE_UNIX" = 1 ; then
8880 wxUSE_UNIX=yes
a0b9e27f 8881 cat >> confdefs.h <<\EOF
17234b26 8882#define __UNIX__ 1
a0b9e27f 8883EOF
17234b26
MB
8884
8885fi
8886
8284b0c5 8887
a0b9e27f 8888cat > confcache <<\EOF
10f2d63a
VZ
8889# This file is a shell script that caches the results of configure
8890# tests run on this system so they can be shared between configure
a0b9e27f
MB
8891# scripts and configure runs. It is not useful on other systems.
8892# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8893#
a0b9e27f
MB
8894# By default, configure uses ./config.cache as the cache file,
8895# creating it if it does not exist already. You can give configure
8896# the --cache-file=FILE option to use a different cache file; that is
8897# what configure does when it calls configure scripts in
8898# subdirectories, so they share the cache.
8899# Giving --cache-file=/dev/null disables caching, for debugging configure.
8900# config.status only pays attention to the cache file if you give it the
8901# --recheck option to rerun configure.
10f2d63a 8902#
a0b9e27f 8903EOF
10f2d63a
VZ
8904# The following way of writing the cache mishandles newlines in values,
8905# but we know of no workaround that is simple, portable, and efficient.
8906# So, don't put newlines in cache variables' values.
8907# Ultrix sh set writes to stderr and can't be redirected directly,
8908# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8909(set) 2>&1 |
8910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8911 *ac_space=\ *)
8912 # `set' does not quote correctly, so add quotes (double-quote substitution
8913 # turns \\\\ into \\, and sed turns \\ into \).
8914 sed -n \
8915 -e "s/'/'\\\\''/g" \
8916 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8917 ;;
8918 *)
8919 # `set' quotes correctly as required by POSIX, so do not add quotes.
8920 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8921 ;;
8922 esac >> confcache
8923if cmp -s $cache_file confcache; then
8924 :
8925else
10f2d63a 8926 if test -w $cache_file; then
a0b9e27f
MB
8927 echo "updating cache $cache_file"
8928 cat confcache > $cache_file
10f2d63a
VZ
8929 else
8930 echo "not updating unwritable cache $cache_file"
8931 fi
8932fi
8933rm -f confcache
8934
a0b9e27f 8935
e59890c3 8936if test "$build" != "$host" ; then
9d353d4a 8937 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8938 CC=$host_alias-gcc
8939 CXX=$host_alias-c++
8940 AR=$host_alias-ar
8941 RANLIB=$host_alias-ranlib
8942 DLLTOOL=$host_alias-dlltool
8943 RESCOMP=$host_alias-windres
8944 LD=$host_alias-ld
8945 NM=$host_alias-nm
8946 STRIP=$host_alias-strip
8947 else
a0b9e27f 8948 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8949 fi
10f2d63a
VZ
8950fi
8951
ec603395 8952CFLAGS=${CFLAGS:=}
a0b9e27f 8953# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8954set dummy gcc; ac_word=$2
a0b9e27f 8955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 8956echo "configure:8957: checking for $ac_word" >&5
a0b9e27f
MB
8957if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8959else
8960 if test -n "$CC"; then
8961 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8962else
a0b9e27f
MB
8963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8964 ac_dummy="$PATH"
8965 for ac_dir in $ac_dummy; do
8966 test -z "$ac_dir" && ac_dir=.
8967 if test -f $ac_dir/$ac_word; then
8968 ac_cv_prog_CC="gcc"
8969 break
8970 fi
8971 done
8972 IFS="$ac_save_ifs"
10f2d63a 8973fi
6232543b 8974fi
a0b9e27f 8975CC="$ac_cv_prog_CC"
6232543b 8976if test -n "$CC"; then
a0b9e27f 8977 echo "$ac_t""$CC" 1>&6
247f5006 8978else
a0b9e27f 8979 echo "$ac_t""no" 1>&6
247f5006
VZ
8980fi
8981
5c6fa7d2
RR
8982if test -z "$CC"; then
8983 # Extract the first word of "cc", so it can be a program name with args.
8984set dummy cc; ac_word=$2
a0b9e27f 8985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 8986echo "configure:8987: checking for $ac_word" >&5
a0b9e27f
MB
8987if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8989else
8990 if test -n "$CC"; then
8991 ac_cv_prog_CC="$CC" # Let the user override the test.
8992else
a0b9e27f 8993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8994 ac_prog_rejected=no
a0b9e27f
MB
8995 ac_dummy="$PATH"
8996 for ac_dir in $ac_dummy; do
8997 test -z "$ac_dir" && ac_dir=.
8998 if test -f $ac_dir/$ac_word; then
8999 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9000 ac_prog_rejected=yes
9001 continue
9002 fi
9003 ac_cv_prog_CC="cc"
9004 break
9005 fi
9006 done
9007 IFS="$ac_save_ifs"
328a083c
RR
9008if test $ac_prog_rejected = yes; then
9009 # We found a bogon in the path, so make sure we never use it.
9010 set dummy $ac_cv_prog_CC
9011 shift
a0b9e27f 9012 if test $# -gt 0; then
328a083c 9013 # We chose a different compiler from the bogus one.
1e487827
VS
9014 # However, it has the same basename, so the bogon will be chosen
9015 # first if we set CC to just the basename; use the full file name.
9016 shift
a0b9e27f 9017 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
9018 shift
9019 ac_cv_prog_CC="$@"
703e0a69 9020 fi
1e487827
VS
9021fi
9022fi
9023fi
a0b9e27f 9024CC="$ac_cv_prog_CC"
1e487827 9025if test -n "$CC"; then
a0b9e27f 9026 echo "$ac_t""$CC" 1>&6
703e0a69 9027else
a0b9e27f 9028 echo "$ac_t""no" 1>&6
703e0a69 9029fi
1e487827 9030
a0b9e27f
MB
9031 if test -z "$CC"; then
9032 case "`uname -s`" in
9033 *win32* | *WIN32*)
9034 # Extract the first word of "cl", so it can be a program name with args.
9035set dummy cl; ac_word=$2
9036echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9037echo "configure:9038: checking for $ac_word" >&5
a0b9e27f
MB
9038if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9039 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
9040else
9041 if test -n "$CC"; then
9042 ac_cv_prog_CC="$CC" # Let the user override the test.
9043else
a0b9e27f
MB
9044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9045 ac_dummy="$PATH"
9046 for ac_dir in $ac_dummy; do
9047 test -z "$ac_dir" && ac_dir=.
9048 if test -f $ac_dir/$ac_word; then
9049 ac_cv_prog_CC="cl"
9050 break
9051 fi
9052 done
9053 IFS="$ac_save_ifs"
f09359cf
VS
9054fi
9055fi
a0b9e27f 9056CC="$ac_cv_prog_CC"
f09359cf 9057if test -n "$CC"; then
a0b9e27f 9058 echo "$ac_t""$CC" 1>&6
f09359cf 9059else
a0b9e27f 9060 echo "$ac_t""no" 1>&6
247f5006 9061fi
a0b9e27f
MB
9062 ;;
9063 esac
8284b0c5 9064 fi
a0b9e27f 9065 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9066fi
1e487827 9067
a0b9e27f 9068echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
65d8ef1e 9069echo "configure:9070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9070
a0b9e27f
MB
9071ac_ext=c
9072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9073ac_cpp='$CPP $CPPFLAGS'
9074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9076cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9077
a0b9e27f 9078cat > conftest.$ac_ext << EOF
247f5006 9079
65d8ef1e 9080#line 9081 "configure"
a0b9e27f 9081#include "confdefs.h"
247f5006 9082
a0b9e27f
MB
9083main(){return(0);}
9084EOF
65d8ef1e 9085if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9086 ac_cv_prog_cc_works=yes
9087 # If we can't run a trivial program, we are probably using a cross compiler.
9088 if (./conftest; exit) 2>/dev/null; then
9089 ac_cv_prog_cc_cross=no
698dcdb6 9090 else
a0b9e27f 9091 ac_cv_prog_cc_cross=yes
698dcdb6 9092 fi
7b4a847f 9093else
a0b9e27f
MB
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 ac_cv_prog_cc_works=no
52127426 9097fi
a0b9e27f
MB
9098rm -fr conftest*
9099ac_ext=c
9100# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9101ac_cpp='$CPP $CPPFLAGS'
9102ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9103ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9104cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9105
a0b9e27f
MB
9106echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9107if test $ac_cv_prog_cc_works = no; then
9108 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9109fi
9110echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
65d8ef1e 9111echo "configure:9112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9112echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9113cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9114
a0b9e27f 9115echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
65d8ef1e 9116echo "configure:9117: checking whether we are using GNU C" >&5
a0b9e27f
MB
9117if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9119else
a0b9e27f
MB
9120 cat > conftest.c <<EOF
9121#ifdef __GNUC__
9122 yes;
8284b0c5 9123#endif
a0b9e27f 9124EOF
65d8ef1e 9125if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9126 ac_cv_prog_gcc=yes
5c6fa7d2 9127else
a0b9e27f 9128 ac_cv_prog_gcc=no
8284b0c5
MB
9129fi
9130fi
1e487827 9131
a0b9e27f 9132echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9133
a0b9e27f
MB
9134if test $ac_cv_prog_gcc = yes; then
9135 GCC=yes
9136else
9137 GCC=
9138fi
247f5006 9139
a0b9e27f
MB
9140ac_test_CFLAGS="${CFLAGS+set}"
9141ac_save_CFLAGS="$CFLAGS"
9142CFLAGS=
9143echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
65d8ef1e 9144echo "configure:9145: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9145if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9147else
9148 echo 'void f(){}' > conftest.c
9149if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9150 ac_cv_prog_cc_g=yes
9151else
a0b9e27f 9152 ac_cv_prog_cc_g=no
10f2d63a 9153fi
a0b9e27f
MB
9154rm -f conftest*
9155
10f2d63a 9156fi
a0b9e27f
MB
9157
9158echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9159if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9160 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9161elif test $ac_cv_prog_cc_g = yes; then
9162 if test "$GCC" = yes; then
10f2d63a
VZ
9163 CFLAGS="-g -O2"
9164 else
f09359cf 9165 CFLAGS="-g"
10f2d63a 9166 fi
5c0a20c3 9167else
f09359cf
VS
9168 if test "$GCC" = yes; then
9169 CFLAGS="-O2"
9170 else
9171 CFLAGS=
9172 fi
10f2d63a
VZ
9173fi
9174
9175
a0b9e27f 9176echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
65d8ef1e 9177echo "configure:9178: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9178# On Suns, sometimes $CPP names a directory.
9179if test -n "$CPP" && test -d "$CPP"; then
9180 CPP=
9181fi
9182if test -z "$CPP"; then
a0b9e27f
MB
9183if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9184 echo $ac_n "(cached) $ac_c" 1>&6
9185else
9186 # This must be in double quotes, not single quotes, because CPP may get
9187 # substituted into the Makefile and "${CC-cc}" will confuse make.
9188 CPP="${CC-cc} -E"
10f2d63a 9189 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9190 # not just through cpp.
9191 cat > conftest.$ac_ext <<EOF
65d8ef1e 9192#line 9193 "configure"
10f2d63a
VZ
9193#include "confdefs.h"
9194#include <assert.h>
a0b9e27f
MB
9195Syntax Error
9196EOF
9197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 9198{ (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9200if test -z "$ac_err"; then
10f2d63a
VZ
9201 :
9202else
a0b9e27f
MB
9203 echo "$ac_err" >&5
9204 echo "configure: failed program was:" >&5
10f2d63a 9205 cat conftest.$ac_ext >&5
a0b9e27f
MB
9206 rm -rf conftest*
9207 CPP="${CC-cc} -E -traditional-cpp"
9208 cat > conftest.$ac_ext <<EOF
65d8ef1e 9209#line 9210 "configure"
f09359cf 9210#include "confdefs.h"
a0b9e27f
MB
9211#include <assert.h>
9212Syntax Error
9213EOF
9214ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 9215{ (eval echo configure:9216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9216ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9217if test -z "$ac_err"; then
9218 :
247f5006 9219else
a0b9e27f
MB
9220 echo "$ac_err" >&5
9221 echo "configure: failed program was:" >&5
f09359cf 9222 cat conftest.$ac_ext >&5
a0b9e27f
MB
9223 rm -rf conftest*
9224 CPP="${CC-cc} -nologo -E"
9225 cat > conftest.$ac_ext <<EOF
65d8ef1e 9226#line 9227 "configure"
10f2d63a
VZ
9227#include "confdefs.h"
9228#include <assert.h>
a0b9e27f
MB
9229Syntax Error
9230EOF
9231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 9232{ (eval echo configure:9233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9233ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9234if test -z "$ac_err"; then
10f2d63a
VZ
9235 :
9236else
a0b9e27f
MB
9237 echo "$ac_err" >&5
9238 echo "configure: failed program was:" >&5
10f2d63a 9239 cat conftest.$ac_ext >&5
a0b9e27f
MB
9240 rm -rf conftest*
9241 CPP=/lib/cpp
579d8138 9242fi
a0b9e27f 9243rm -f conftest*
52127426 9244fi
a0b9e27f 9245rm -f conftest*
8284b0c5 9246fi
a0b9e27f
MB
9247rm -f conftest*
9248 ac_cv_prog_CPP="$CPP"
9249fi
9250 CPP="$ac_cv_prog_CPP"
10f2d63a 9251else
a0b9e27f 9252 ac_cv_prog_CPP="$CPP"
10f2d63a 9253fi
a0b9e27f 9254echo "$ac_t""$CPP" 1>&6
10f2d63a 9255
a0b9e27f
MB
9256if test $ac_cv_prog_gcc = yes; then
9257 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
65d8ef1e 9258echo "configure:9259: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9259if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9261else
9262 ac_pattern="Autoconf.*'x'"
a0b9e27f 9263 cat > conftest.$ac_ext <<EOF
65d8ef1e 9264#line 9265 "configure"
10f2d63a
VZ
9265#include "confdefs.h"
9266#include <sgtty.h>
9267Autoconf TIOCGETP
a0b9e27f 9268EOF
10f2d63a
VZ
9269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9270 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9271 rm -rf conftest*
10f2d63a
VZ
9272 ac_cv_prog_gcc_traditional=yes
9273else
a0b9e27f 9274 rm -rf conftest*
10f2d63a
VZ
9275 ac_cv_prog_gcc_traditional=no
9276fi
9277rm -f conftest*
9278
8284b0c5 9279
10f2d63a 9280 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9281 cat > conftest.$ac_ext <<EOF
65d8ef1e 9282#line 9283 "configure"
10f2d63a
VZ
9283#include "confdefs.h"
9284#include <termio.h>
9285Autoconf TCGETA
a0b9e27f 9286EOF
10f2d63a
VZ
9287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9288 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9289 rm -rf conftest*
10f2d63a
VZ
9290 ac_cv_prog_gcc_traditional=yes
9291fi
9292rm -f conftest*
9293
9294 fi
9295fi
a0b9e27f
MB
9296
9297echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9298 if test $ac_cv_prog_gcc_traditional = yes; then
9299 CC="$CC -traditional"
9300 fi
9301fi
9302
8284b0c5
MB
9303
9304
a0b9e27f
MB
9305ac_ext=C
9306# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9307ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9308ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9309ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9310cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9311
698dcdb6 9312
ec603395 9313CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9314for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9315do
9316# Extract the first word of "$ac_prog", so it can be a program name with args.
9317set dummy $ac_prog; ac_word=$2
9318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9319echo "configure:9320: checking for $ac_word" >&5
a0b9e27f
MB
9320if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9322else
9323 if test -n "$CXX"; then
9324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9325else
a0b9e27f
MB
9326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9327 ac_dummy="$PATH"
9328 for ac_dir in $ac_dummy; do
9329 test -z "$ac_dir" && ac_dir=.
9330 if test -f $ac_dir/$ac_word; then
9331 ac_cv_prog_CXX="$ac_prog"
9332 break
9333 fi
9334 done
9335 IFS="$ac_save_ifs"
10f2d63a
VZ
9336fi
9337fi
a0b9e27f 9338CXX="$ac_cv_prog_CXX"
10f2d63a 9339if test -n "$CXX"; then
a0b9e27f 9340 echo "$ac_t""$CXX" 1>&6
10f2d63a 9341else
a0b9e27f 9342 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9343fi
9344
a0b9e27f 9345test -n "$CXX" && break
10f2d63a 9346done
a0b9e27f 9347test -n "$CXX" || CXX="gcc"
f09359cf 9348
a0b9e27f
MB
9349
9350echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
65d8ef1e 9351echo "configure:9352: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9352
9353ac_ext=C
9354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9355ac_cpp='$CXXCPP $CPPFLAGS'
9356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9358cross_compiling=$ac_cv_prog_cxx_cross
9359
9360cat > conftest.$ac_ext << EOF
9361
65d8ef1e 9362#line 9363 "configure"
a0b9e27f
MB
9363#include "confdefs.h"
9364
9365int main(){return(0);}
9366EOF
65d8ef1e 9367if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9368 ac_cv_prog_cxx_works=yes
9369 # If we can't run a trivial program, we are probably using a cross compiler.
9370 if (./conftest; exit) 2>/dev/null; then
9371 ac_cv_prog_cxx_cross=no
9372 else
9373 ac_cv_prog_cxx_cross=yes
9374 fi
8284b0c5 9375else
a0b9e27f
MB
9376 echo "configure: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9378 ac_cv_prog_cxx_works=no
8284b0c5 9379fi
a0b9e27f
MB
9380rm -fr conftest*
9381ac_ext=C
9382# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9383ac_cpp='$CXXCPP $CPPFLAGS'
9384ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9385ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9386cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9387
a0b9e27f
MB
9388echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9389if test $ac_cv_prog_cxx_works = no; then
9390 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9391fi
9392echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
65d8ef1e 9393echo "configure:9394: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9394echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9395cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9396
a0b9e27f 9397echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
65d8ef1e 9398echo "configure:9399: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9399if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9401else
9402 cat > conftest.C <<EOF
9403#ifdef __GNUC__
9404 yes;
10f2d63a 9405#endif
a0b9e27f 9406EOF
65d8ef1e 9407if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9408 ac_cv_prog_gxx=yes
9409else
9410 ac_cv_prog_gxx=no
9411fi
9412fi
10f2d63a 9413
a0b9e27f 9414echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9415
a0b9e27f
MB
9416if test $ac_cv_prog_gxx = yes; then
9417 GXX=yes
9418else
9419 GXX=
9420fi
f09359cf 9421
a0b9e27f
MB
9422ac_test_CXXFLAGS="${CXXFLAGS+set}"
9423ac_save_CXXFLAGS="$CXXFLAGS"
9424CXXFLAGS=
9425echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
65d8ef1e 9426echo "configure:9427: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9427if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9428 echo $ac_n "(cached) $ac_c" 1>&6
9429else
9430 echo 'void f(){}' > conftest.cc
9431if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9432 ac_cv_prog_cxx_g=yes
9433else
a0b9e27f 9434 ac_cv_prog_cxx_g=no
10f2d63a 9435fi
a0b9e27f
MB
9436rm -f conftest*
9437
10f2d63a 9438fi
a0b9e27f
MB
9439
9440echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9441if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9442 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9443elif test $ac_cv_prog_cxx_g = yes; then
9444 if test "$GXX" = yes; then
10f2d63a
VZ
9445 CXXFLAGS="-g -O2"
9446 else
f09359cf 9447 CXXFLAGS="-g"
10f2d63a 9448 fi
5c0a20c3 9449else
f09359cf
VS
9450 if test "$GXX" = yes; then
9451 CXXFLAGS="-O2"
9452 else
9453 CXXFLAGS=
9454 fi
10f2d63a
VZ
9455fi
9456
9457
10f2d63a 9458ac_ext=c
a0b9e27f 9459# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9460ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9461ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9462ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9463cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9464
9465
a0b9e27f
MB
9466# Extract the first word of "ranlib", so it can be a program name with args.
9467set dummy ranlib; ac_word=$2
9468echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9469echo "configure:9470: checking for $ac_word" >&5
a0b9e27f
MB
9470if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9472else
9473 if test -n "$RANLIB"; then
9474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9475else
a0b9e27f
MB
9476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9477 ac_dummy="$PATH"
9478 for ac_dir in $ac_dummy; do
9479 test -z "$ac_dir" && ac_dir=.
9480 if test -f $ac_dir/$ac_word; then
9481 ac_cv_prog_RANLIB="ranlib"
9482 break
9483 fi
9484 done
9485 IFS="$ac_save_ifs"
9486 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9487fi
9488fi
a0b9e27f 9489RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9490if test -n "$RANLIB"; then
a0b9e27f 9491 echo "$ac_t""$RANLIB" 1>&6
328a083c 9492else
a0b9e27f 9493 echo "$ac_t""no" 1>&6
328a083c
RR
9494fi
9495
10f2d63a
VZ
9496
9497# Extract the first word of "ar", so it can be a program name with args.
9498set dummy ar; ac_word=$2
a0b9e27f 9499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9500echo "configure:9501: checking for $ac_word" >&5
a0b9e27f
MB
9501if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9503else
9504 if test -n "$AR"; then
9505 ac_cv_prog_AR="$AR" # Let the user override the test.
9506else
a0b9e27f
MB
9507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9508 ac_dummy="$PATH"
9509 for ac_dir in $ac_dummy; do
9510 test -z "$ac_dir" && ac_dir=.
9511 if test -f $ac_dir/$ac_word; then
9512 ac_cv_prog_AR="ar"
9513 break
9514 fi
9515 done
9516 IFS="$ac_save_ifs"
10f2d63a
VZ
9517 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9518fi
9519fi
a0b9e27f 9520AR="$ac_cv_prog_AR"
10f2d63a 9521if test -n "$AR"; then
a0b9e27f 9522 echo "$ac_t""$AR" 1>&6
10f2d63a 9523else
a0b9e27f 9524 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9525fi
9526
8284b0c5 9527
6054113a 9528# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9529# so one script is as good as another. But avoid the broken or
9530# incompatible versions:
9531# SysV /etc/install, /usr/sbin/install
9532# SunOS /usr/etc/install
9533# IRIX /sbin/install
9534# AIX /bin/install
f09359cf 9535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9536# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9538# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9539echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
65d8ef1e 9540echo "configure:9541: checking for a BSD compatible install" >&5
10f2d63a 9541if test -z "$INSTALL"; then
a0b9e27f
MB
9542if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544else
9545 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9546 for ac_dir in $PATH; do
9547 # Account for people who put trailing slashes in PATH elements.
9548 case "$ac_dir/" in
9549 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9550 *)
9551 # OSF1 and SCO ODT 3.0 have their own names for install.
9552 # Don't use installbsd from OSF since it installs stuff as root
9553 # by default.
9554 for ac_prog in ginstall scoinst install; do
9555 if test -f $ac_dir/$ac_prog; then
9556 if test $ac_prog = install &&
9557 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9558 # AIX install. It has an incompatible calling convention.
9559 :
9560 else
9561 ac_cv_path_install="$ac_dir/$ac_prog -c"
9562 break 2
9563 fi
9564 fi
10f2d63a 9565 done
a0b9e27f
MB
9566 ;;
9567 esac
9568 done
9569 IFS="$ac_save_IFS"
10f2d63a
VZ
9570
9571fi
9572 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9573 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9574 else
9575 # As a last resort, use the slow shell script. We don't cache a
9576 # path for INSTALL within a source directory, because that will
9577 # break other packages using the cache if that directory is
9578 # removed, or if the path is relative.
a0b9e27f 9579 INSTALL="$ac_install_sh"
10f2d63a
VZ
9580 fi
9581fi
a0b9e27f 9582echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9583
9584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9585# It thinks the first close brace ends the variable substitution.
9586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9587
a0b9e27f 9588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9589
10f2d63a
VZ
9590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9591
8284b0c5 9592
1d1b75ac
VZ
9593case ${INSTALL} in
9594 /* ) # Absolute
9595 ;;
3bd8fb5f 9596 *)
1d1b75ac
VZ
9597 INSTALL=`pwd`/${INSTALL} ;;
9598esac
9599
8284b0c5 9600
6054113a
GD
9601case "${host}" in
9602
b5853384 9603 powerpc-*-darwin* )
eb99ae0b
GD
9604 INSTALL_PROGRAM="cp -fp"
9605 INSTALL_DATA="cp -fp"
6054113a
GD
9606 ;;
9607 *)
9608 ;;
d6853540 9609esac
698dcdb6 9610
10f2d63a
VZ
9611# Extract the first word of "strip", so it can be a program name with args.
9612set dummy strip; ac_word=$2
a0b9e27f 9613echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9614echo "configure:9615: checking for $ac_word" >&5
a0b9e27f
MB
9615if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9617else
9618 if test -n "$STRIP"; then
9619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9620else
a0b9e27f
MB
9621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9622 ac_dummy="$PATH"
9623 for ac_dir in $ac_dummy; do
9624 test -z "$ac_dir" && ac_dir=.
9625 if test -f $ac_dir/$ac_word; then
9626 ac_cv_prog_STRIP="strip"
9627 break
9628 fi
9629 done
9630 IFS="$ac_save_ifs"
10f2d63a
VZ
9631 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9632fi
9633fi
a0b9e27f 9634STRIP="$ac_cv_prog_STRIP"
10f2d63a 9635if test -n "$STRIP"; then
a0b9e27f 9636 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9637else
a0b9e27f 9638 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9639fi
9640
5c6fa7d2 9641
a0b9e27f 9642echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
65d8ef1e 9643echo "configure:9644: checking if make is GNU make" >&5
a0b9e27f
MB
9644if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9646else
a0b9e27f 9647
414eab6d 9648 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9649 egrep -s GNU > /dev/null); then
414eab6d
VZ
9650 wx_cv_prog_makeisgnu="yes"
9651 else
9652 wx_cv_prog_makeisgnu="no"
9653 fi
9654
9655fi
a0b9e27f
MB
9656
9657echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9658
9659if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9660 IF_GNU_MAKE=""
9661else
9662 IF_GNU_MAKE="#"
9663fi
9664
8284b0c5
MB
9665
9666
414eab6d 9667if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9668echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
65d8ef1e 9669echo "configure:9670: checking if make supports VPATH" >&5
a0b9e27f
MB
9670if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9672else
a0b9e27f 9673
10f2d63a
VZ
9674cat - << EOF > confMake
9675check : file
9676 cp \$? \$@
9677 cp \$? final_file
9678EOF
9679
9680if test ! -d sub ; then
9681 mkdir sub
9682fi
9683echo dummy > sub/file
f6bcfd97 9684${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9685RESULT=$?
9686rm -f sub/file check final_file confMake
9687rmdir sub
9688if test "$RESULT" = 0; then
04e7a216 9689 wx_cv_prog_makevpath="yes"
10f2d63a 9690else
04e7a216
VZ
9691 wx_cv_prog_makevpath="no"
9692fi
9693
9694fi
a0b9e27f
MB
9695
9696echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9697
9698if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9699{ echo "configure: error:
5c6fa7d2
RR
9700You need a make-utility that is able to use the variable
9701VPATH correctly.
9702If your version of make does not support VPATH correctly,
9703please install GNU-make (possibly as gmake), and start
9704configure with the following command:
9705export MAKE=gmake; ./configure for sh-type shells
9706setenv MAKE gmake; ./configure for csh-type shells
9707Also please do remember to use gmake in this case every time
9708you are trying to compile.
a0b9e27f
MB
9709" 1>&2; exit 1; }
9710fi fi
10f2d63a
VZ
9711for ac_prog in 'bison -y' byacc
9712do
a0b9e27f 9713# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9714set dummy $ac_prog; ac_word=$2
a0b9e27f 9715echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9716echo "configure:9717: checking for $ac_word" >&5
a0b9e27f
MB
9717if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9719else
9720 if test -n "$YACC"; then
9721 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9722else
a0b9e27f
MB
9723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9724 ac_dummy="$PATH"
9725 for ac_dir in $ac_dummy; do
9726 test -z "$ac_dir" && ac_dir=.
9727 if test -f $ac_dir/$ac_word; then
9728 ac_cv_prog_YACC="$ac_prog"
9729 break
9730 fi
9731 done
9732 IFS="$ac_save_ifs"
10f2d63a
VZ
9733fi
9734fi
a0b9e27f 9735YACC="$ac_cv_prog_YACC"
10f2d63a 9736if test -n "$YACC"; then
a0b9e27f 9737 echo "$ac_t""$YACC" 1>&6
10f2d63a 9738else
a0b9e27f 9739 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9740fi
9741
a0b9e27f 9742test -n "$YACC" && break
10f2d63a
VZ
9743done
9744test -n "$YACC" || YACC="yacc"
9745
8284b0c5 9746
a0b9e27f
MB
9747# Extract the first word of "flex", so it can be a program name with args.
9748set dummy flex; ac_word=$2
9749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 9750echo "configure:9751: checking for $ac_word" >&5
a0b9e27f
MB
9751if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9753else
9754 if test -n "$LEX"; then
9755 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9756else
a0b9e27f
MB
9757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9758 ac_dummy="$PATH"
9759 for ac_dir in $ac_dummy; do
9760 test -z "$ac_dir" && ac_dir=.
9761 if test -f $ac_dir/$ac_word; then
9762 ac_cv_prog_LEX="flex"
9763 break
9764 fi
9765 done
9766 IFS="$ac_save_ifs"
9767 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9768fi
9769fi
a0b9e27f 9770LEX="$ac_cv_prog_LEX"
10f2d63a 9771if test -n "$LEX"; then
a0b9e27f 9772 echo "$ac_t""$LEX" 1>&6
10f2d63a 9773else
a0b9e27f 9774 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9775fi
9776
9777if test -z "$LEXLIB"
9778then
a0b9e27f
MB
9779 case "$LEX" in
9780 flex*) ac_lib=fl ;;
9781 *) ac_lib=l ;;
9782 esac
9783 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
65d8ef1e 9784echo "configure:9785: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9785ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9788else
9789 ac_save_LIBS="$LIBS"
9790LIBS="-l$ac_lib $LIBS"
9791cat > conftest.$ac_ext <<EOF
65d8ef1e 9792#line 9793 "configure"
247f5006 9793#include "confdefs.h"
247f5006 9794/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9795/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9796 builtin and then its argument prototype would still apply. */
9797char yywrap();
10f2d63a 9798
a0b9e27f
MB
9799int main() {
9800yywrap()
9801; return 0; }
9802EOF
65d8ef1e 9803if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=yes"
9806else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9811fi
a0b9e27f
MB
9812rm -f conftest*
9813LIBS="$ac_save_LIBS"
8284b0c5 9814
10f2d63a 9815fi
a0b9e27f
MB
9816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9817 echo "$ac_t""yes" 1>&6
9818 LEXLIB="-l$ac_lib"
8284b0c5 9819else
a0b9e27f 9820 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9821fi
9822
a0b9e27f 9823fi
10f2d63a
VZ
9824
9825
a0b9e27f 9826echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
65d8ef1e 9827echo "configure:9828: checking whether ln -s works" >&5
a0b9e27f
MB
9828if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9830else
a0b9e27f
MB
9831 rm -f conftestdata
9832if ln -s X conftestdata 2>/dev/null
9833then
9834 rm -f conftestdata
9835 ac_cv_prog_LN_S="ln -s"
10f2d63a 9836else
a0b9e27f 9837 ac_cv_prog_LN_S=ln
10f2d63a 9838fi
a0b9e27f
MB
9839fi
9840LN_S="$ac_cv_prog_LN_S"
9841if test "$ac_cv_prog_LN_S" = "ln -s"; then
9842 echo "$ac_t""yes" 1>&6
10f2d63a 9843else
a0b9e27f 9844 echo "$ac_t""no" 1>&6
5c6fa7d2 9845fi
5c6fa7d2 9846
247f5006 9847
2b5f62a0
VZ
9848case "${host}" in
9849 *-pc-os2_emx | *-pc-os2-emx )
9850 LIBS="$LIBS -lstdcpp"
9851 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9852 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
65d8ef1e 9853echo "configure:9854: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9854ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9857else
9858 ac_save_LIBS="$LIBS"
9859LIBS="-lcExt $LIBS"
9860cat > conftest.$ac_ext <<EOF
65d8ef1e 9861#line 9862 "configure"
2b5f62a0
VZ
9862#include "confdefs.h"
9863/* Override any gcc2 internal prototype to avoid an error. */
9864/* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866char drand48();
9867
9868int main() {
9869drand48()
9870; return 0; }
9871EOF
65d8ef1e 9872if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=yes"
9875else
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 rm -rf conftest*
9879 eval "ac_cv_lib_$ac_lib_var=no"
9880fi
9881rm -f conftest*
9882LIBS="$ac_save_LIBS"
9883
9884fi
9885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
9887 LIBS="$LIBS -lcExt"
9888else
9889 echo "$ac_t""no" 1>&6
9890fi
9891
9892 else
9893 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9894 fi
9895 ;;
9896esac
9897
a0b9e27f
MB
9898
9899if test "$wxUSE_MAC" != 1; then
9900 for ac_hdr in strings.h
9901do
9902ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9903echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 9904echo "configure:9905: checking for $ac_hdr" >&5
a0b9e27f
MB
9905if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9906 echo $ac_n "(cached) $ac_c" 1>&6
9907else
9908 cat > conftest.$ac_ext <<EOF
65d8ef1e 9909#line 9910 "configure"
a0b9e27f
MB
9910#include "confdefs.h"
9911#include <$ac_hdr>
9912EOF
9913ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 9914{ (eval echo configure:9915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9915ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9916if test -z "$ac_err"; then
9917 rm -rf conftest*
9918 eval "ac_cv_header_$ac_safe=yes"
9919else
9920 echo "$ac_err" >&5
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 rm -rf conftest*
9924 eval "ac_cv_header_$ac_safe=no"
21d1c967 9925fi
247f5006 9926rm -f conftest*
19bc6aad 9927fi
a0b9e27f
MB
9928if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9931 cat >> confdefs.h <<EOF
9932#define $ac_tr_hdr 1
9933EOF
9934
247f5006 9935else
a0b9e27f 9936 echo "$ac_t""no" 1>&6
18dbb1f6 9937fi
a0b9e27f 9938done
247f5006 9939
90dd450c 9940fi
90dd450c 9941
a0b9e27f
MB
9942for ac_hdr in stdlib.h
9943do
9944ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9945echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 9946echo "configure:9947: checking for $ac_hdr" >&5
a0b9e27f
MB
9947if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9949else
9950 cat > conftest.$ac_ext <<EOF
65d8ef1e 9951#line 9952 "configure"
90dd450c 9952#include "confdefs.h"
a0b9e27f
MB
9953#include <$ac_hdr>
9954EOF
9955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 9956{ (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9958if test -z "$ac_err"; then
9959 rm -rf conftest*
9960 eval "ac_cv_header_$ac_safe=yes"
9961else
9962 echo "$ac_err" >&5
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9965 rm -rf conftest*
9966 eval "ac_cv_header_$ac_safe=no"
9967fi
9968rm -f conftest*
9969fi
9970if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9971 echo "$ac_t""yes" 1>&6
9972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9973 cat >> confdefs.h <<EOF
9974#define $ac_tr_hdr 1
9975EOF
9976
8284b0c5 9977else
a0b9e27f 9978 echo "$ac_t""no" 1>&6
21d1c967 9979fi
a0b9e27f
MB
9980done
9981
9982for ac_hdr in malloc.h
9983do
9984ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9985echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 9986echo "configure:9987: checking for $ac_hdr" >&5
a0b9e27f
MB
9987if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9989else
9990 cat > conftest.$ac_ext <<EOF
65d8ef1e 9991#line 9992 "configure"
a0b9e27f
MB
9992#include "confdefs.h"
9993#include <$ac_hdr>
9994EOF
9995ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 9996{ (eval echo configure:9997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9997ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9998if test -z "$ac_err"; then
9999 rm -rf conftest*
10000 eval "ac_cv_header_$ac_safe=yes"
10001else
10002 echo "$ac_err" >&5
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 rm -rf conftest*
10006 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10007fi
a0b9e27f 10008rm -f conftest*
90dd450c 10009fi
a0b9e27f
MB
10010if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10011 echo "$ac_t""yes" 1>&6
10012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10013 cat >> confdefs.h <<EOF
10014#define $ac_tr_hdr 1
10015EOF
10016
10017else
10018 echo "$ac_t""no" 1>&6
21d1c967 10019fi
a0b9e27f 10020done
247f5006 10021
a0b9e27f
MB
10022for ac_hdr in unistd.h
10023do
10024ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10025echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 10026echo "configure:10027: checking for $ac_hdr" >&5
a0b9e27f
MB
10027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10029else
10030 cat > conftest.$ac_ext <<EOF
65d8ef1e 10031#line 10032 "configure"
a0b9e27f
MB
10032#include "confdefs.h"
10033#include <$ac_hdr>
10034EOF
10035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 10036{ (eval echo configure:10037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10038if test -z "$ac_err"; then
10039 rm -rf conftest*
10040 eval "ac_cv_header_$ac_safe=yes"
10041else
10042 echo "$ac_err" >&5
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 eval "ac_cv_header_$ac_safe=no"
247f5006 10047fi
a0b9e27f
MB
10048rm -f conftest*
10049fi
10050if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10051 echo "$ac_t""yes" 1>&6
10052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10053 cat >> confdefs.h <<EOF
10054#define $ac_tr_hdr 1
10055EOF
10056
10057else
10058 echo "$ac_t""no" 1>&6
10059fi
10060done
90dd450c 10061
a0b9e27f 10062for ac_hdr in wchar.h
21d1c967 10063do
a0b9e27f
MB
10064ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10065echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 10066echo "configure:10067: checking for $ac_hdr" >&5
a0b9e27f
MB
10067if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069else
10070 cat > conftest.$ac_ext <<EOF
65d8ef1e 10071#line 10072 "configure"
4f14bcd8 10072#include "confdefs.h"
a0b9e27f
MB
10073#include <$ac_hdr>
10074EOF
10075ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 10076{ (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10077ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10078if test -z "$ac_err"; then
10079 rm -rf conftest*
10080 eval "ac_cv_header_$ac_safe=yes"
10081else
10082 echo "$ac_err" >&5
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 rm -rf conftest*
10086 eval "ac_cv_header_$ac_safe=no"
10087fi
10088rm -f conftest*
10089fi
10090if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10091 echo "$ac_t""yes" 1>&6
10092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10093 cat >> confdefs.h <<EOF
10094#define $ac_tr_hdr 1
10095EOF
10096
10097else
10098 echo "$ac_t""no" 1>&6
21d1c967
GD
10099fi
10100done
4f14bcd8 10101
5c6fa7d2 10102
a0b9e27f
MB
10103if test "$ac_cv_header_wchar_h" != "yes"; then
10104 for ac_hdr in wcstr.h
21d1c967 10105do
a0b9e27f
MB
10106ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10107echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 10108echo "configure:10109: checking for $ac_hdr" >&5
a0b9e27f
MB
10109if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10111else
10112 cat > conftest.$ac_ext <<EOF
65d8ef1e 10113#line 10114 "configure"
d4158b5d 10114#include "confdefs.h"
a0b9e27f
MB
10115#include <$ac_hdr>
10116EOF
10117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 10118{ (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10120if test -z "$ac_err"; then
10121 rm -rf conftest*
10122 eval "ac_cv_header_$ac_safe=yes"
10123else
10124 echo "$ac_err" >&5
10125 echo "configure: failed program was:" >&5
d4158b5d 10126 cat conftest.$ac_ext >&5
a0b9e27f
MB
10127 rm -rf conftest*
10128 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10129fi
a0b9e27f 10130rm -f conftest*
21d1c967 10131fi
a0b9e27f
MB
10132if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10133 echo "$ac_t""yes" 1>&6
10134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10135 cat >> confdefs.h <<EOF
10136#define $ac_tr_hdr 1
10137EOF
10138
10139else
10140 echo "$ac_t""no" 1>&6
d4158b5d 10141fi
21d1c967 10142done
f6bcfd97 10143
90dd450c 10144fi
90dd450c 10145
a0b9e27f 10146for ac_hdr in fnmatch.h
21d1c967 10147do
a0b9e27f
MB
10148ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10149echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 10150echo "configure:10151: checking for $ac_hdr" >&5
a0b9e27f
MB
10151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10153else
10154 cat > conftest.$ac_ext <<EOF
65d8ef1e 10155#line 10156 "configure"
90dd450c 10156#include "confdefs.h"
a0b9e27f
MB
10157#include <$ac_hdr>
10158EOF
10159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 10160{ (eval echo configure:10161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10162if test -z "$ac_err"; then
10163 rm -rf conftest*
10164 eval "ac_cv_header_$ac_safe=yes"
10165else
10166 echo "$ac_err" >&5
10167 echo "configure: failed program was:" >&5
3a922bb4 10168 cat conftest.$ac_ext >&5
a0b9e27f
MB
10169 rm -rf conftest*
10170 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10171fi
a0b9e27f 10172rm -f conftest*
4f14bcd8 10173fi
a0b9e27f
MB
10174if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10175 echo "$ac_t""yes" 1>&6
10176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10177 cat >> confdefs.h <<EOF
10178#define $ac_tr_hdr 1
10179EOF
10180
10181else
10182 echo "$ac_t""no" 1>&6
21d1c967
GD
10183fi
10184done
90dd450c 10185
5c6fa7d2 10186
a0b9e27f
MB
10187if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10188 for ac_func in fnmatch
21d1c967 10189do
a0b9e27f 10190echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 10191echo "configure:10192: checking for $ac_func" >&5
a0b9e27f
MB
10192if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10194else
a0b9e27f 10195 cat > conftest.$ac_ext <<EOF
65d8ef1e 10196#line 10197 "configure"
a0b9e27f
MB
10197#include "confdefs.h"
10198/* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char $ac_func(); below. */
10200#include <assert.h>
10201/* Override any gcc2 internal prototype to avoid an error. */
10202/* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10204char $ac_func();
10205
10206int main() {
10207
10208/* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10212choke me
10213#else
10214$ac_func();
10215#endif
10216
10217; return 0; }
10218EOF
65d8ef1e 10219if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10220 rm -rf conftest*
10221 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10222else
a0b9e27f 10223 echo "configure: failed program was:" >&5
8284b0c5 10224 cat conftest.$ac_ext >&5
a0b9e27f
MB
10225 rm -rf conftest*
10226 eval "ac_cv_func_$ac_func=no"
8284b0c5 10227fi
a0b9e27f 10228rm -f conftest*
8284b0c5 10229fi
32832908 10230
a0b9e27f
MB
10231if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10234 cat >> confdefs.h <<EOF
10235#define $ac_tr_func 1
10236EOF
10237
10238else
10239 echo "$ac_t""no" 1>&6
21d1c967
GD
10240fi
10241done
90dd450c 10242
a0b9e27f 10243fi
90dd450c 10244
a0b9e27f 10245for ac_hdr in langinfo.h
21d1c967 10246do
a0b9e27f
MB
10247ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10248echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 10249echo "configure:10250: checking for $ac_hdr" >&5
a0b9e27f
MB
10250if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10252else
10253 cat > conftest.$ac_ext <<EOF
65d8ef1e 10254#line 10255 "configure"
247f5006 10255#include "confdefs.h"
a0b9e27f
MB
10256#include <$ac_hdr>
10257EOF
10258ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 10259{ (eval echo configure:10260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10260ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10261if test -z "$ac_err"; then
10262 rm -rf conftest*
10263 eval "ac_cv_header_$ac_safe=yes"
10264else
10265 echo "$ac_err" >&5
10266 echo "configure: failed program was:" >&5
90dd450c 10267 cat conftest.$ac_ext >&5
a0b9e27f
MB
10268 rm -rf conftest*
10269 eval "ac_cv_header_$ac_safe=no"
90dd450c 10270fi
a0b9e27f 10271rm -f conftest*
4f14bcd8 10272fi
a0b9e27f
MB
10273if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10276 cat >> confdefs.h <<EOF
10277#define $ac_tr_hdr 1
10278EOF
10279
10280else
10281 echo "$ac_t""no" 1>&6
21d1c967
GD
10282fi
10283done
3a922bb4 10284
8284b0c5 10285
a0b9e27f
MB
10286if test "$wxUSE_GUI" = "yes"; then
10287 if test "$wxUSE_UNIX" = "yes"; then
10288 for ac_hdr in X11/XKBlib.h
21d1c967 10289do
a0b9e27f
MB
10290ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10291echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 10292echo "configure:10293: checking for $ac_hdr" >&5
a0b9e27f
MB
10293if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10295else
10296 cat > conftest.$ac_ext <<EOF
65d8ef1e 10297#line 10298 "configure"
90dd450c 10298#include "confdefs.h"
a0b9e27f
MB
10299#include <$ac_hdr>
10300EOF
10301ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 10302{ (eval echo configure:10303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10303ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10304if test -z "$ac_err"; then
10305 rm -rf conftest*
10306 eval "ac_cv_header_$ac_safe=yes"
10307else
10308 echo "$ac_err" >&5
10309 echo "configure: failed program was:" >&5
90dd450c 10310 cat conftest.$ac_ext >&5
a0b9e27f
MB
10311 rm -rf conftest*
10312 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10313fi
a0b9e27f 10314rm -f conftest*
90dd450c 10315fi
a0b9e27f
MB
10316if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10319 cat >> confdefs.h <<EOF
10320#define $ac_tr_hdr 1
10321EOF
10322
10323else
10324 echo "$ac_t""no" 1>&6
247f5006 10325fi
247f5006
VZ
10326done
10327
a0b9e27f
MB
10328 fi
10329fi
247f5006 10330
247f5006 10331
a0b9e27f 10332echo $ac_n "checking for working const""... $ac_c" 1>&6
65d8ef1e 10333echo "configure:10334: checking for working const" >&5
a0b9e27f
MB
10334if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10336else
a0b9e27f 10337 cat > conftest.$ac_ext <<EOF
65d8ef1e 10338#line 10339 "configure"
a0b9e27f
MB
10339#include "confdefs.h"
10340
10341int main() {
10342
10343/* Ultrix mips cc rejects this. */
10344typedef int charset[2]; const charset x;
10345/* SunOS 4.1.1 cc rejects this. */
10346char const *const *ccp;
10347char **p;
10348/* NEC SVR4.0.2 mips cc rejects this. */
10349struct point {int x, y;};
10350static struct point const zero = {0,0};
10351/* AIX XL C 1.02.0.0 rejects this.
10352 It does not let you subtract one const X* pointer from another in an arm
10353 of an if-expression whose if-part is not a constant expression */
10354const char *g = "string";
10355ccp = &g + (g ? g-g : 0);
10356/* HPUX 7.0 cc rejects these. */
10357++ccp;
10358p = (char**) ccp;
10359ccp = (char const *const *) p;
10360{ /* SCO 3.2v4 cc rejects this. */
10361 char *t;
10362 char const *s = 0 ? (char *) 0 : (char const *) 0;
10363
10364 *t++ = 0;
10365}
10366{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10367 int x[] = {25, 17};
10368 const int *foo = &x[0];
10369 ++foo;
10370}
10371{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10372 typedef const int *iptr;
10373 iptr p = 0;
10374 ++p;
10375}
10376{ /* AIX XL C 1.02.0.0 rejects this saying
10377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10378 struct s { int j; const int *ap[3]; };
10379 struct s *b; b->j = 5;
10380}
10381{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10382 const int foo = 10;
10383}
10384
10385; return 0; }
10386EOF
65d8ef1e 10387if { (eval echo configure:10388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10388 rm -rf conftest*
10389 ac_cv_c_const=yes
247f5006 10390else
a0b9e27f 10391 echo "configure: failed program was:" >&5
247f5006 10392 cat conftest.$ac_ext >&5
a0b9e27f
MB
10393 rm -rf conftest*
10394 ac_cv_c_const=no
247f5006 10395fi
a0b9e27f 10396rm -f conftest*
21d1c967 10397fi
247f5006 10398
a0b9e27f
MB
10399echo "$ac_t""$ac_cv_c_const" 1>&6
10400if test $ac_cv_c_const = no; then
10401 cat >> confdefs.h <<\EOF
10402#define const
10403EOF
10f2d63a 10404
90dd450c 10405fi
81809c07 10406
a0b9e27f 10407echo $ac_n "checking for inline""... $ac_c" 1>&6
65d8ef1e 10408echo "configure:10409: checking for inline" >&5
a0b9e27f
MB
10409if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10411else
a0b9e27f
MB
10412 ac_cv_c_inline=no
10413for ac_kw in inline __inline__ __inline; do
10414 cat > conftest.$ac_ext <<EOF
65d8ef1e 10415#line 10416 "configure"
a0b9e27f
MB
10416#include "confdefs.h"
10417
10418int main() {
10419} $ac_kw foo() {
10420; return 0; }
10421EOF
65d8ef1e 10422if { (eval echo configure:10423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10423 rm -rf conftest*
10424 ac_cv_c_inline=$ac_kw; break
247f5006 10425else
a0b9e27f 10426 echo "configure: failed program was:" >&5
247f5006 10427 cat conftest.$ac_ext >&5
247f5006 10428fi
a0b9e27f
MB
10429rm -f conftest*
10430done
247f5006
VZ
10431
10432fi
10433
a0b9e27f
MB
10434echo "$ac_t""$ac_cv_c_inline" 1>&6
10435case "$ac_cv_c_inline" in
10436 inline | yes) ;;
10437 no) cat >> confdefs.h <<\EOF
10438#define inline
10439EOF
10440 ;;
10441 *) cat >> confdefs.h <<EOF
10442#define inline $ac_cv_c_inline
10443EOF
10444 ;;
10445esac
247f5006 10446
247f5006 10447
a0b9e27f 10448echo $ac_n "checking size of char""... $ac_c" 1>&6
65d8ef1e 10449echo "configure:10450: checking size of char" >&5
a0b9e27f
MB
10450if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10452else
10453 if test "$cross_compiling" = yes; then
10454 ac_cv_sizeof_char=1
10455else
10456 cat > conftest.$ac_ext <<EOF
65d8ef1e 10457#line 10458 "configure"
4f14bcd8 10458#include "confdefs.h"
a0b9e27f 10459#include <stdio.h>
a0b9e27f 10460main()
247f5006 10461{
a0b9e27f
MB
10462 FILE *f=fopen("conftestval", "w");
10463 if (!f) exit(1);
10464 fprintf(f, "%d\n", sizeof(char));
10465 exit(0);
52127426 10466}
a0b9e27f 10467EOF
65d8ef1e 10468if { (eval echo configure:10469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10469then
10470 ac_cv_sizeof_char=`cat conftestval`
247f5006 10471else
a0b9e27f 10472 echo "configure: failed program was:" >&5
247f5006 10473 cat conftest.$ac_ext >&5
a0b9e27f
MB
10474 rm -fr conftest*
10475 ac_cv_sizeof_char=0
247f5006 10476fi
a0b9e27f 10477rm -fr conftest*
247f5006 10478fi
247f5006
VZ
10479
10480fi
a0b9e27f
MB
10481echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10482cat >> confdefs.h <<EOF
10483#define SIZEOF_CHAR $ac_cv_sizeof_char
10484EOF
247f5006 10485
247f5006 10486
a0b9e27f 10487echo $ac_n "checking size of short""... $ac_c" 1>&6
65d8ef1e 10488echo "configure:10489: checking size of short" >&5
a0b9e27f
MB
10489if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10491else
a0b9e27f
MB
10492 if test "$cross_compiling" = yes; then
10493 ac_cv_sizeof_short=2
247f5006 10494else
a0b9e27f 10495 cat > conftest.$ac_ext <<EOF
65d8ef1e 10496#line 10497 "configure"
a0b9e27f
MB
10497#include "confdefs.h"
10498#include <stdio.h>
a0b9e27f
MB
10499main()
10500{
10501 FILE *f=fopen("conftestval", "w");
10502 if (!f) exit(1);
10503 fprintf(f, "%d\n", sizeof(short));
10504 exit(0);
10505}
10506EOF
65d8ef1e 10507if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10508then
10509 ac_cv_sizeof_short=`cat conftestval`
247f5006 10510else
a0b9e27f
MB
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10513 rm -fr conftest*
10514 ac_cv_sizeof_short=0
247f5006 10515fi
a0b9e27f 10516rm -fr conftest*
247f5006
VZ
10517fi
10518
247f5006 10519fi
a0b9e27f
MB
10520echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10521cat >> confdefs.h <<EOF
10522#define SIZEOF_SHORT $ac_cv_sizeof_short
10523EOF
247f5006
VZ
10524
10525
a0b9e27f 10526echo $ac_n "checking size of void *""... $ac_c" 1>&6
65d8ef1e 10527echo "configure:10528: checking size of void *" >&5
a0b9e27f
MB
10528if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10529 echo $ac_n "(cached) $ac_c" 1>&6
10530else
10531 if test "$cross_compiling" = yes; then
10532 ac_cv_sizeof_void_p=4
247f5006 10533else
a0b9e27f 10534 cat > conftest.$ac_ext <<EOF
65d8ef1e 10535#line 10536 "configure"
247f5006 10536#include "confdefs.h"
247f5006 10537#include <stdio.h>
a0b9e27f 10538main()
247f5006 10539{
a0b9e27f
MB
10540 FILE *f=fopen("conftestval", "w");
10541 if (!f) exit(1);
10542 fprintf(f, "%d\n", sizeof(void *));
10543 exit(0);
5c6fa7d2 10544}
a0b9e27f 10545EOF
65d8ef1e 10546if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10547then
10548 ac_cv_sizeof_void_p=`cat conftestval`
10549else
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 rm -fr conftest*
10553 ac_cv_sizeof_void_p=0
10554fi
10555rm -fr conftest*
10556fi
8284b0c5 10557
247f5006 10558fi
a0b9e27f
MB
10559echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10560cat >> confdefs.h <<EOF
10561#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10562EOF
247f5006 10563
247f5006 10564
a0b9e27f 10565echo $ac_n "checking size of int""... $ac_c" 1>&6
65d8ef1e 10566echo "configure:10567: checking size of int" >&5
a0b9e27f
MB
10567if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10569else
a0b9e27f
MB
10570 if test "$cross_compiling" = yes; then
10571 ac_cv_sizeof_int=4
10572else
10573 cat > conftest.$ac_ext <<EOF
65d8ef1e 10574#line 10575 "configure"
247f5006 10575#include "confdefs.h"
a0b9e27f 10576#include <stdio.h>
a0b9e27f 10577main()
247f5006 10578{
a0b9e27f
MB
10579 FILE *f=fopen("conftestval", "w");
10580 if (!f) exit(1);
10581 fprintf(f, "%d\n", sizeof(int));
10582 exit(0);
247f5006 10583}
a0b9e27f 10584EOF
65d8ef1e 10585if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10586then
10587 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10588else
a0b9e27f
MB
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 rm -fr conftest*
10592 ac_cv_sizeof_int=0
21d1c967 10593fi
a0b9e27f 10594rm -fr conftest*
698dcdb6 10595fi
4f14bcd8 10596
21d1c967 10597fi
a0b9e27f
MB
10598echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10599cat >> confdefs.h <<EOF
10600#define SIZEOF_INT $ac_cv_sizeof_int
10601EOF
4f14bcd8 10602
5c6fa7d2 10603
a0b9e27f 10604echo $ac_n "checking size of long""... $ac_c" 1>&6
65d8ef1e 10605echo "configure:10606: checking size of long" >&5
a0b9e27f
MB
10606if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10608else
247f5006 10609 if test "$cross_compiling" = yes; then
a0b9e27f 10610 ac_cv_sizeof_long=4
247f5006 10611else
a0b9e27f 10612 cat > conftest.$ac_ext <<EOF
65d8ef1e 10613#line 10614 "configure"
247f5006 10614#include "confdefs.h"
a0b9e27f 10615#include <stdio.h>
a0b9e27f 10616main()
247f5006 10617{
a0b9e27f
MB
10618 FILE *f=fopen("conftestval", "w");
10619 if (!f) exit(1);
10620 fprintf(f, "%d\n", sizeof(long));
10621 exit(0);
247f5006 10622}
a0b9e27f 10623EOF
65d8ef1e 10624if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10625then
10626 ac_cv_sizeof_long=`cat conftestval`
247f5006 10627else
a0b9e27f
MB
10628 echo "configure: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10630 rm -fr conftest*
10631 ac_cv_sizeof_long=0
247f5006 10632fi
a0b9e27f 10633rm -fr conftest*
247f5006 10634fi
247f5006 10635
5c6fa7d2 10636fi
a0b9e27f
MB
10637echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10638cat >> confdefs.h <<EOF
10639#define SIZEOF_LONG $ac_cv_sizeof_long
10640EOF
247f5006 10641
a0b9e27f
MB
10642
10643
10644case "${host}" in
10645 arm-*-linux* )
10646 echo $ac_n "checking size of long long""... $ac_c" 1>&6
65d8ef1e 10647echo "configure:10648: checking size of long long" >&5
a0b9e27f
MB
10648if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10650else
10651 if test "$cross_compiling" = yes; then
10652 ac_cv_sizeof_long_long=8
10653else
10654 cat > conftest.$ac_ext <<EOF
65d8ef1e 10655#line 10656 "configure"
247f5006 10656#include "confdefs.h"
a0b9e27f 10657#include <stdio.h>
a0b9e27f 10658main()
247f5006 10659{
a0b9e27f
MB
10660 FILE *f=fopen("conftestval", "w");
10661 if (!f) exit(1);
10662 fprintf(f, "%d\n", sizeof(long long));
10663 exit(0);
247f5006 10664}
a0b9e27f 10665EOF
65d8ef1e 10666if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10667then
10668 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10669else
a0b9e27f
MB
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -fr conftest*
10673 ac_cv_sizeof_long_long=0
5c6fa7d2 10674fi
a0b9e27f 10675rm -fr conftest*
5c6fa7d2 10676fi
8284b0c5 10677
a0b9e27f
MB
10678fi
10679echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10680cat >> confdefs.h <<EOF
10681#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10682EOF
10683
10684
10685 ;;
4f57cf11 10686 *-hp-hpux* )
a0b9e27f 10687 echo $ac_n "checking size of long long""... $ac_c" 1>&6
65d8ef1e 10688echo "configure:10689: checking size of long long" >&5
a0b9e27f
MB
10689if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10691else
10692 if test "$cross_compiling" = yes; then
a0b9e27f 10693 ac_cv_sizeof_long_long=0
8284b0c5 10694else
a0b9e27f 10695 cat > conftest.$ac_ext <<EOF
65d8ef1e 10696#line 10697 "configure"
8284b0c5
MB
10697#include "confdefs.h"
10698#include <stdio.h>
a0b9e27f 10699main()
8284b0c5 10700{
a0b9e27f
MB
10701 FILE *f=fopen("conftestval", "w");
10702 if (!f) exit(1);
10703 fprintf(f, "%d\n", sizeof(long long));
10704 exit(0);
8284b0c5 10705}
a0b9e27f 10706EOF
65d8ef1e 10707if { (eval echo configure:10708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10708then
10709 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10710else
a0b9e27f
MB
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10713 rm -fr conftest*
5c6fa7d2 10714 ac_cv_sizeof_long_long=0
52127426 10715fi
a0b9e27f
MB
10716rm -fr conftest*
10717fi
10718
4f57cf11
GD
10719fi
10720echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10721cat >> confdefs.h <<EOF
10722#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10723EOF
10724
10725
10726 if test "$ac_cv_sizeof_long_long" != "0"; then
10727 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10728 fi
10729 ;;
10730 * )
10731 echo $ac_n "checking size of long long""... $ac_c" 1>&6
65d8ef1e 10732echo "configure:10733: checking size of long long" >&5
4f57cf11
GD
10733if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10735else
10736 if test "$cross_compiling" = yes; then
10737 ac_cv_sizeof_long_long=0
10738else
10739 cat > conftest.$ac_ext <<EOF
65d8ef1e 10740#line 10741 "configure"
4f57cf11
GD
10741#include "confdefs.h"
10742#include <stdio.h>
10743main()
10744{
10745 FILE *f=fopen("conftestval", "w");
10746 if (!f) exit(1);
10747 fprintf(f, "%d\n", sizeof(long long));
10748 exit(0);
10749}
10750EOF
65d8ef1e 10751if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10752then
10753 ac_cv_sizeof_long_long=`cat conftestval`
10754else
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -fr conftest*
10758 ac_cv_sizeof_long_long=0
10759fi
10760rm -fr conftest*
10761fi
10762
7b4a847f 10763fi
a0b9e27f
MB
10764echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10765cat >> confdefs.h <<EOF
21d1c967 10766#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10767EOF
9e691f46 10768
8284b0c5 10769
21d1c967
GD
10770esac
10771
a0b9e27f 10772echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
65d8ef1e 10773echo "configure:10774: checking size of wchar_t" >&5
a0b9e27f
MB
10774if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10776else
a0b9e27f 10777
21d1c967 10778 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10779
10780 case "${host}" in
10781 *-pc-msdosdjgpp )
10782 wx_cv_sizeof_wchar_t=0
10783 ;;
10784 * )
10785 wx_cv_sizeof_wchar_t=4
10786 ;;
10787 esac
10788
a0b9e27f 10789
6f72b082 10790else
a0b9e27f 10791 cat > conftest.$ac_ext <<EOF
65d8ef1e 10792#line 10793 "configure"
6f72b082 10793#include "confdefs.h"
21d1c967 10794
2b5f62a0
VZ
10795 /* DJGPP only has fake wchar_t: */
10796 #ifdef __DJGPP__
10797 # error "fake wchar_t"
10798 #endif
21d1c967
GD
10799 #ifdef HAVE_WCHAR_H
10800 # ifdef __CYGWIN__
10801 # include <stddef.h>
10802 # endif
10803 # include <wchar.h>
10804 #endif
10805 #ifdef HAVE_STDLIB_H
10806 # include <stdlib.h>
10807 #endif
10808 #include <stdio.h>
10809 int main()
10810 {
10811 FILE *f=fopen("conftestval", "w");
10812 if (!f) exit(1);
10813 fprintf(f, "%i", sizeof(wchar_t));
10814 exit(0);
10815 }
a0b9e27f
MB
10816
10817EOF
65d8ef1e 10818if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10819then
21d1c967 10820 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10821else
a0b9e27f
MB
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -fr conftest*
10825 wx_cv_sizeof_wchar_t=0
6f72b082 10826fi
a0b9e27f 10827rm -fr conftest*
6f72b082 10828fi
6f72b082 10829
a0b9e27f 10830
3f345b47
VZ
10831fi
10832
a0b9e27f
MB
10833echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10834
10835cat >> confdefs.h <<EOF
21d1c967 10836#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10837EOF
90dd450c 10838
8284b0c5 10839
21d1c967
GD
10840# Check whether --enable-largefile or --disable-largefile was given.
10841if test "${enable_largefile+set}" = set; then
10842 enableval="$enable_largefile"
a0b9e27f
MB
10843 :
10844fi
3f345b47 10845
21d1c967
GD
10846if test "$enable_largefile" != no; then
10847 wx_largefile=no
a0b9e27f
MB
10848
10849 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
65d8ef1e 10850echo "configure:10851: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10851if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10853else
10854
10855 cat > conftest.$ac_ext <<EOF
65d8ef1e 10856#line 10857 "configure"
90dd450c 10857#include "confdefs.h"
21d1c967
GD
10858#define _FILE_OFFSET_BITS 64
10859 #include <sys/types.h>
a0b9e27f 10860int main() {
21d1c967
GD
10861typedef struct {
10862 unsigned int field: sizeof(off_t) == 8;
10863} wxlf;
10864
a0b9e27f
MB
10865; return 0; }
10866EOF
65d8ef1e 10867if { (eval echo configure:10868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10868 rm -rf conftest*
21d1c967 10869 ac_cv_sys_file_offset_bits=64
f6bcfd97 10870else
a0b9e27f
MB
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 rm -rf conftest*
10874 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10875fi
a0b9e27f
MB
10876rm -f conftest*
10877
10878
247f5006 10879fi
a0b9e27f
MB
10880
10881echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10882
10883 if test "$ac_cv_sys_file_offset_bits" != no; then
10884 wx_largefile=yes
a0b9e27f 10885 cat >> confdefs.h <<EOF
21d1c967 10886#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10887EOF
21d1c967
GD
10888
10889 fi
10890
10891 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10892
10893 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
65d8ef1e 10894echo "configure:10895: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10895if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897else
10898
10899 cat > conftest.$ac_ext <<EOF
65d8ef1e 10900#line 10901 "configure"
f6bcfd97 10901#include "confdefs.h"
21d1c967
GD
10902#define _LARGE_FILES 1
10903 #include <sys/types.h>
a0b9e27f 10904int main() {
21d1c967
GD
10905typedef struct {
10906 unsigned int field: sizeof(off_t) == 8;
10907} wxlf;
10908
a0b9e27f
MB
10909; return 0; }
10910EOF
65d8ef1e 10911if { (eval echo configure:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10912 rm -rf conftest*
21d1c967 10913 ac_cv_sys_large_files=1
f6bcfd97 10914else
a0b9e27f
MB
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 ac_cv_sys_large_files=no
5c6fa7d2 10919fi
a0b9e27f
MB
10920rm -f conftest*
10921
10922
247f5006 10923fi
a0b9e27f
MB
10924
10925echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10926
21d1c967
GD
10927 if test "$ac_cv_sys_large_files" != no; then
10928 wx_largefile=yes
a0b9e27f 10929 cat >> confdefs.h <<EOF
21d1c967 10930#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10931EOF
90dd450c 10932
90dd450c
VZ
10933 fi
10934
90dd450c 10935 fi
90dd450c 10936
a0b9e27f 10937 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
65d8ef1e 10938echo "configure:10939: checking if large file support is available" >&5
21d1c967 10939 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10940 cat >> confdefs.h <<\EOF
21d1c967 10941#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10942EOF
90dd450c 10943
90dd450c 10944 fi
a0b9e27f 10945 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10946fi
90dd450c 10947
8284b0c5 10948
f02444d0 10949if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10950 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10951 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10952 else
e26c13cf 10953 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10954 fi
e26c13cf 10955 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10956fi
10957
a0b9e27f 10958echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
65d8ef1e 10959echo "configure:10960: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10960if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10962else
21d1c967
GD
10963 ac_cv_c_bigendian=unknown
10964# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10965cat > conftest.$ac_ext <<EOF
65d8ef1e 10966#line 10967 "configure"
90dd450c 10967#include "confdefs.h"
21d1c967
GD
10968#include <sys/types.h>
10969#include <sys/param.h>
a0b9e27f 10970int main() {
21d1c967
GD
10971
10972#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10973 bogus endian macros
10974#endif
a0b9e27f
MB
10975; return 0; }
10976EOF
65d8ef1e 10977if { (eval echo configure:10978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10978 rm -rf conftest*
21d1c967 10979 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10980cat > conftest.$ac_ext <<EOF
65d8ef1e 10981#line 10982 "configure"
90dd450c 10982#include "confdefs.h"
21d1c967
GD
10983#include <sys/types.h>
10984#include <sys/param.h>
a0b9e27f 10985int main() {
21d1c967
GD
10986
10987#if BYTE_ORDER != BIG_ENDIAN
10988 not big endian
10989#endif
a0b9e27f
MB
10990; return 0; }
10991EOF
65d8ef1e 10992if { (eval echo configure:10993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10993 rm -rf conftest*
21d1c967 10994 ac_cv_c_bigendian=yes
3f345b47 10995else
a0b9e27f
MB
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -rf conftest*
10999 ac_cv_c_bigendian=no
3f345b47 11000fi
a0b9e27f 11001rm -f conftest*
3f345b47 11002else
a0b9e27f
MB
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
3f345b47 11005fi
a0b9e27f 11006rm -f conftest*
21d1c967
GD
11007if test $ac_cv_c_bigendian = unknown; then
11008if test "$cross_compiling" = yes; then
11009 ac_cv_c_bigendian=unknown
10f2d63a 11010else
a0b9e27f 11011 cat > conftest.$ac_ext <<EOF
65d8ef1e 11012#line 11013 "configure"
90dd450c 11013#include "confdefs.h"
21d1c967
GD
11014main () {
11015 /* Are we little or big endian? From Harbison&Steele. */
11016 union
11017 {
11018 long l;
11019 char c[sizeof (long)];
11020 } u;
11021 u.l = 1;
11022 exit (u.c[sizeof (long) - 1] == 1);
11023}
a0b9e27f 11024EOF
65d8ef1e 11025if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 11026then
21d1c967 11027 ac_cv_c_bigendian=no
3f345b47 11028else
a0b9e27f
MB
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 rm -fr conftest*
11032 ac_cv_c_bigendian=yes
247f5006 11033fi
a0b9e27f 11034rm -fr conftest*
247f5006 11035fi
a0b9e27f 11036
3f345b47 11037fi
8168de4c 11038fi
a0b9e27f
MB
11039
11040echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 11041if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 11042 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
247f5006
VZ
11043fi
11044if test $ac_cv_c_bigendian = yes; then
a0b9e27f 11045 cat >> confdefs.h <<\EOF
247f5006 11046#define WORDS_BIGENDIAN 1
a0b9e27f 11047EOF
247f5006
VZ
11048
11049fi
11050
11051
a0b9e27f 11052echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
65d8ef1e 11053echo "configure:11054: checking how to run the C++ preprocessor" >&5
247f5006 11054if test -z "$CXXCPP"; then
a0b9e27f
MB
11055if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11057else
a0b9e27f
MB
11058 ac_ext=C
11059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060ac_cpp='$CXXCPP $CPPFLAGS'
11061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063cross_compiling=$ac_cv_prog_cxx_cross
11064 CXXCPP="${CXX-g++} -E"
11065 cat > conftest.$ac_ext <<EOF
65d8ef1e 11066#line 11067 "configure"
5c6fa7d2 11067#include "confdefs.h"
a0b9e27f
MB
11068#include <stdlib.h>
11069EOF
11070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 11071{ (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11073if test -z "$ac_err"; then
21d1c967 11074 :
698dcdb6 11075else
a0b9e27f
MB
11076 echo "$ac_err" >&5
11077 echo "configure: failed program was:" >&5
698dcdb6 11078 cat conftest.$ac_ext >&5
a0b9e27f
MB
11079 rm -rf conftest*
11080 CXXCPP=/lib/cpp
247f5006 11081fi
a0b9e27f
MB
11082rm -f conftest*
11083 ac_cv_prog_CXXCPP="$CXXCPP"
11084ac_ext=C
11085# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11086ac_cpp='$CXXCPP $CPPFLAGS'
11087ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11088ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11089cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11090fi
90dd450c 11091fi
a0b9e27f
MB
11092CXXCPP="$ac_cv_prog_CXXCPP"
11093echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11094
1725144d 11095
21d1c967 11096 if test "$cross_compiling" = "yes"; then
a0b9e27f 11097 cat >> confdefs.h <<\EOF
21d1c967 11098#define wxUSE_IOSTREAMH 1
a0b9e27f 11099EOF
ab9b9eab 11100
21d1c967 11101 else
a0b9e27f
MB
11102
11103 ac_ext=C
11104# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11105ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11106ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11107ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11108cross_compiling=$ac_cv_prog_cxx_cross
52127426 11109
247f5006 11110
a0b9e27f 11111 for ac_hdr in iostream
21d1c967 11112do
a0b9e27f
MB
11113ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11114echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 11115echo "configure:11116: checking for $ac_hdr" >&5
a0b9e27f
MB
11116if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11118else
11119 cat > conftest.$ac_ext <<EOF
65d8ef1e 11120#line 11121 "configure"
ab9b9eab 11121#include "confdefs.h"
a0b9e27f
MB
11122#include <$ac_hdr>
11123EOF
11124ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 11125{ (eval echo configure:11126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11126ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11127if test -z "$ac_err"; then
11128 rm -rf conftest*
11129 eval "ac_cv_header_$ac_safe=yes"
11130else
11131 echo "$ac_err" >&5
11132 echo "configure: failed program was:" >&5
ab9b9eab 11133 cat conftest.$ac_ext >&5
a0b9e27f
MB
11134 rm -rf conftest*
11135 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11136fi
a0b9e27f 11137rm -f conftest*
90dd450c 11138fi
a0b9e27f
MB
11139if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11142 cat >> confdefs.h <<EOF
11143#define $ac_tr_hdr 1
11144EOF
11145
11146else
11147 echo "$ac_t""no" 1>&6
90dd450c 11148fi
21d1c967 11149done
10f2d63a 11150
8284b0c5 11151
21d1c967
GD
11152 if test "$ac_cv_header_iostream" = "yes" ; then
11153 :
11154 else
a0b9e27f 11155 cat >> confdefs.h <<\EOF
21d1c967 11156#define wxUSE_IOSTREAMH 1
a0b9e27f 11157EOF
788deba1 11158
90dd450c 11159 fi
ab9b9eab 11160
21d1c967 11161 ac_ext=c
a0b9e27f 11162# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11163ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11164ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11165ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11166cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11167
21d1c967 11168 fi
ab9b9eab 11169
52127426 11170
8284b0c5 11171
a0b9e27f 11172 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
65d8ef1e 11173echo "configure:11174: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11174if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11176else
a0b9e27f
MB
11177
11178
11179 ac_ext=C
11180# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11181ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11182ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11183ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11184cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11185
8284b0c5 11186
a0b9e27f 11187 cat > conftest.$ac_ext <<EOF
65d8ef1e 11188#line 11189 "configure"
ab9b9eab 11189#include "confdefs.h"
21d1c967 11190
a0b9e27f
MB
11191
11192int main() {
21d1c967
GD
11193
11194 bool b = true;
11195
11196 return 0;
a0b9e27f
MB
11197
11198; return 0; }
11199EOF
65d8ef1e 11200if { (eval echo configure:11201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11201 rm -rf conftest*
11202
21d1c967 11203 wx_cv_cpp_bool=yes
a0b9e27f 11204
698dcdb6 11205else
a0b9e27f
MB
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11208 rm -rf conftest*
11209
21d1c967 11210 wx_cv_cpp_bool=no
a0b9e27f
MB
11211
11212
698dcdb6 11213fi
a0b9e27f 11214rm -f conftest*
21d1c967
GD
11215
11216 ac_ext=c
a0b9e27f 11217# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11218ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11219ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11220ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11221cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11222
a0b9e27f 11223
247f5006 11224fi
a0b9e27f
MB
11225
11226echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11227
11228 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11229 cat >> confdefs.h <<\EOF
21d1c967 11230#define HAVE_BOOL 1
a0b9e27f 11231EOF
ab9b9eab 11232
21d1c967
GD
11233 fi
11234
52127426 11235
8284b0c5 11236
a0b9e27f 11237 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
65d8ef1e 11238echo "configure:11239: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11239if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11240 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11241else
a0b9e27f
MB
11242
11243
11244 ac_ext=C
11245# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11246ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11247ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11248ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11249cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11250
8284b0c5 11251
a0b9e27f 11252 cat > conftest.$ac_ext <<EOF
65d8ef1e 11253#line 11254 "configure"
986ecc86
VZ
11254#include "confdefs.h"
11255
11256 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11257
11258int main() {
986ecc86
VZ
11259
11260 return 0;
a0b9e27f
MB
11261
11262; return 0; }
11263EOF
65d8ef1e 11264if { (eval echo configure:11265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11265 rm -rf conftest*
11266
11267 cat > conftest.$ac_ext <<EOF
65d8ef1e 11268#line 11269 "configure"
986ecc86
VZ
11269#include "confdefs.h"
11270
11271 class Foo { public: explicit Foo(int) {} };
11272 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11273
11274int main() {
986ecc86
VZ
11275
11276 TakeFoo(17);
11277 return 0;
a0b9e27f
MB
11278
11279; return 0; }
11280EOF
65d8ef1e 11281if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11282 rm -rf conftest*
986ecc86
VZ
11283 wx_cv_explicit=no
11284else
a0b9e27f
MB
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 wx_cv_explicit=yes
11289
986ecc86 11290fi
a0b9e27f
MB
11291rm -f conftest*
11292
986ecc86 11293else
a0b9e27f
MB
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 rm -rf conftest*
11297 wx_cv_explicit=no
11298
986ecc86 11299fi
a0b9e27f 11300rm -f conftest*
986ecc86
VZ
11301
11302 ac_ext=c
a0b9e27f 11303# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11304ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11305ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11306ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11307cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11308
a0b9e27f 11309
247f5006 11310fi
a0b9e27f
MB
11311
11312echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11313
11314 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11315 cat >> confdefs.h <<\EOF
986ecc86 11316#define HAVE_EXPLICIT 1
a0b9e27f 11317EOF
986ecc86
VZ
11318
11319 fi
11320
8284b0c5
MB
11321
11322
21d1c967
GD
11323SEARCH_INCLUDE="\
11324 /usr/local/include \
11325 \
11326 /usr/Motif-1.2/include \
11327 /usr/Motif-2.1/include \
11328 \
11329 /usr/include/Motif1.2 \
11330 /opt/xpm/include/X11 \
11331 /opt/GBxpm/include/ \
11332 /opt/GBxpm/X11/include/ \
11333 \
11334 /usr/Motif1.2/include \
11335 /usr/dt/include \
11336 /usr/openwin/include \
11337 \
11338 /usr/include/Xm \
11339 \
11340 /usr/X11R6/include \
11341 /usr/X11R6.4/include \
11342 /usr/X11R5/include \
11343 /usr/X11R4/include \
11344 \
11345 /usr/include/X11R6 \
11346 /usr/include/X11R5 \
11347 /usr/include/X11R4 \
11348 \
11349 /usr/local/X11R6/include \
11350 /usr/local/X11R5/include \
11351 /usr/local/X11R4/include \
11352 \
11353 /usr/local/include/X11R6 \
11354 /usr/local/include/X11R5 \
11355 /usr/local/include/X11R4 \
11356 \
11357 /usr/X11/include \
11358 /usr/include/X11 \
11359 /usr/local/X11/include \
11360 /usr/local/include/X11 \
11361 \
11362 /usr/X386/include \
11363 /usr/x386/include \
11364 /usr/XFree86/include/X11 \
11365 \
11366 X:/XFree86/include \
11367 X:/XFree86/include/X11 \
11368 \
11369 /usr/include/gtk \
11370 /usr/local/include/gtk \
11371 /usr/include/glib \
11372 /usr/local/include/glib \
11373 \
11374 /usr/include/qt \
11375 /usr/local/include/qt \
11376 \
11377 /usr/include/windows \
11378 /usr/include/wine \
11379 /usr/local/include/wine \
11380 \
11381 /usr/unsupported/include \
11382 /usr/athena/include \
11383 /usr/local/x11r5/include \
11384 /usr/lpp/Xamples/include \
11385 \
2b5f62a0 11386 /usr/openwin/share/include"
21d1c967
GD
11387
11388SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11389
8284b0c5 11390
a0b9e27f 11391cat > confcache <<\EOF
21d1c967
GD
11392# This file is a shell script that caches the results of configure
11393# tests run on this system so they can be shared between configure
a0b9e27f
MB
11394# scripts and configure runs. It is not useful on other systems.
11395# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11396#
a0b9e27f
MB
11397# By default, configure uses ./config.cache as the cache file,
11398# creating it if it does not exist already. You can give configure
11399# the --cache-file=FILE option to use a different cache file; that is
11400# what configure does when it calls configure scripts in
11401# subdirectories, so they share the cache.
11402# Giving --cache-file=/dev/null disables caching, for debugging configure.
11403# config.status only pays attention to the cache file if you give it the
11404# --recheck option to rerun configure.
21d1c967 11405#
a0b9e27f 11406EOF
21d1c967
GD
11407# The following way of writing the cache mishandles newlines in values,
11408# but we know of no workaround that is simple, portable, and efficient.
11409# So, don't put newlines in cache variables' values.
11410# Ultrix sh set writes to stderr and can't be redirected directly,
11411# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11412(set) 2>&1 |
11413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11414 *ac_space=\ *)
11415 # `set' does not quote correctly, so add quotes (double-quote substitution
11416 # turns \\\\ into \\, and sed turns \\ into \).
11417 sed -n \
11418 -e "s/'/'\\\\''/g" \
11419 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11420 ;;
11421 *)
11422 # `set' quotes correctly as required by POSIX, so do not add quotes.
11423 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11424 ;;
11425 esac >> confcache
11426if cmp -s $cache_file confcache; then
11427 :
11428else
21d1c967 11429 if test -w $cache_file; then
a0b9e27f
MB
11430 echo "updating cache $cache_file"
11431 cat confcache > $cache_file
21d1c967
GD
11432 else
11433 echo "not updating unwritable cache $cache_file"
11434 fi
ab9b9eab 11435fi
21d1c967 11436rm -f confcache
ab9b9eab 11437
247f5006 11438
a0b9e27f
MB
11439if test "$USE_LINUX" = 1; then
11440 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
65d8ef1e 11441echo "configure:11442: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11442if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11443 echo $ac_n "(cached) $ac_c" 1>&6
11444else
11445
11446 cat > conftest.$ac_ext <<EOF
65d8ef1e 11447#line 11448 "configure"
ab9b9eab 11448#include "confdefs.h"
21d1c967 11449#include <features.h>
a0b9e27f 11450int main() {
ab9b9eab 11451
21d1c967
GD
11452 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11453 #error not glibc2.1
11454 #endif
a0b9e27f
MB
11455
11456; return 0; }
11457EOF
65d8ef1e 11458if { (eval echo configure:11459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11459 rm -rf conftest*
11460
21d1c967 11461 wx_cv_lib_glibc21=yes
a0b9e27f 11462
698dcdb6 11463else
a0b9e27f
MB
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 rm -rf conftest*
11467
21d1c967 11468 wx_cv_lib_glibc21=no
a0b9e27f
MB
11469
11470
5c6fa7d2 11471fi
a0b9e27f
MB
11472rm -f conftest*
11473
247f5006 11474fi
a0b9e27f
MB
11475
11476echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11477 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11478 cat >> confdefs.h <<\EOF
21d1c967 11479#define wxHAVE_GLIBC2 1
a0b9e27f 11480EOF
1e487827 11481
90dd450c 11482 fi
ab9b9eab
VZ
11483fi
11484
5c0a20c3
VZ
11485if test "x$wx_cv_lib_glibc21" = "xyes"; then
11486 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11487 cat >> confdefs.h <<\EOF
5c0a20c3 11488#define _GNU_SOURCE 1
a0b9e27f 11489EOF
5c0a20c3
VZ
11490
11491 fi
11492fi
11493
8284b0c5
MB
11494
11495
21d1c967
GD
11496REGEX_INCLUDE=
11497if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11498 cat >> confdefs.h <<\EOF
21d1c967 11499#define wxUSE_REGEX 1
a0b9e27f 11500EOF
698dcdb6 11501
8284b0c5 11502
21d1c967 11503 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11504 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11505echo $ac_n "checking for regex.h""... $ac_c" 1>&6
65d8ef1e 11506echo "configure:11507: checking for regex.h" >&5
a0b9e27f
MB
11507if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11509else
11510 cat > conftest.$ac_ext <<EOF
65d8ef1e 11511#line 11512 "configure"
247f5006
VZ
11512#include "confdefs.h"
11513#include <regex.h>
a0b9e27f
MB
11514EOF
11515ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 11516{ (eval echo configure:11517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11517ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11518if test -z "$ac_err"; then
11519 rm -rf conftest*
11520 eval "ac_cv_header_$ac_safe=yes"
11521else
11522 echo "$ac_err" >&5
11523 echo "configure: failed program was:" >&5
21d1c967 11524 cat conftest.$ac_ext >&5
a0b9e27f
MB
11525 rm -rf conftest*
11526 eval "ac_cv_header_$ac_safe=no"
21d1c967 11527fi
a0b9e27f 11528rm -f conftest*
698dcdb6 11529fi
a0b9e27f
MB
11530if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11531 echo "$ac_t""yes" 1>&6
11532 for ac_func in regcomp
21d1c967 11533do
a0b9e27f 11534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 11535echo "configure:11536: checking for $ac_func" >&5
a0b9e27f
MB
11536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11538else
a0b9e27f 11539 cat > conftest.$ac_ext <<EOF
65d8ef1e 11540#line 11541 "configure"
a0b9e27f
MB
11541#include "confdefs.h"
11542/* System header to define __stub macros and hopefully few prototypes,
11543 which can conflict with char $ac_func(); below. */
21d1c967
GD
11544#include <assert.h>
11545/* Override any gcc2 internal prototype to avoid an error. */
11546/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11547 builtin and then its argument prototype would still apply. */
11548char $ac_func();
11549
11550int main() {
11551
21d1c967
GD
11552/* The GNU C library defines this for functions which it implements
11553 to always fail with ENOSYS. Some functions are actually named
11554 something starting with __ and the normal name is an alias. */
11555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11556choke me
11557#else
a0b9e27f 11558$ac_func();
21d1c967 11559#endif
90dd450c 11560
a0b9e27f
MB
11561; return 0; }
11562EOF
65d8ef1e 11563if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11564 rm -rf conftest*
11565 eval "ac_cv_func_$ac_func=yes"
11566else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -rf conftest*
11570 eval "ac_cv_func_$ac_func=no"
11571fi
11572rm -f conftest*
11573fi
5c6fa7d2 11574
a0b9e27f
MB
11575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11576 echo "$ac_t""yes" 1>&6
11577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11578 cat >> confdefs.h <<EOF
11579#define $ac_tr_func 1
11580EOF
11581
11582else
11583 echo "$ac_t""no" 1>&6
698dcdb6 11584fi
21d1c967
GD
11585done
11586
a0b9e27f
MB
11587else
11588 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11589fi
11590
8284b0c5 11591
21d1c967
GD
11592 if test "x$ac_cv_func_regcomp" != "xyes"; then
11593 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11594 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11595 else
a0b9e27f 11596 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11597 wxUSE_REGEX=builtin
11598 fi
11599 else
11600 wxUSE_REGEX=sys
11601 fi
ab9b9eab 11602 fi
90dd450c 11603
21d1c967
GD
11604 if test "$wxUSE_REGEX" = "builtin" ; then
11605 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11606 fi
21d1c967 11607fi
90dd450c 11608
8284b0c5 11609
21d1c967
GD
11610ZLIB_INCLUDE=
11611ZLIB_LINK=
11612if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11613 cat >> confdefs.h <<\EOF
21d1c967 11614#define wxUSE_ZLIB 1
a0b9e27f 11615EOF
21d1c967 11616
8284b0c5 11617
21d1c967 11618 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11619 if test "$USE_DARWIN" = 1; then
11620 system_zlib_h_ok="yes"
11621 else
11622 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
65d8ef1e 11623echo "configure:11624: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11624if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11625 echo $ac_n "(cached) $ac_c" 1>&6
11626else
11627 if test "$cross_compiling" = yes; then
89e6bf6d 11628 unset ac_cv_header_zlib_h
d775acfa 11629
d643b80e
VZ
11630else
11631 cat > conftest.$ac_ext <<EOF
65d8ef1e 11632#line 11633 "configure"
d643b80e
VZ
11633#include "confdefs.h"
11634
d775acfa
VZ
11635 #include <zlib.h>
11636 #include <stdio.h>
d643b80e 11637
d775acfa
VZ
11638
11639 int main()
11640 {
11641 FILE *f=fopen("conftestval", "w");
11642 if (!f) exit(1);
11643 fprintf(f, "%s",
11644 ZLIB_VERSION[0] == '1' &&
11645 (ZLIB_VERSION[2] > '1' ||
11646 (ZLIB_VERSION[2] == '1' &&
11647 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11648 exit(0);
11649 }
11650
d643b80e 11651
d643b80e 11652EOF
65d8ef1e 11653if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11654then
11655 ac_cv_header_zlib_h=`cat conftestval`
11656else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_header_zlib_h=no
11661fi
11662rm -fr conftest*
11663fi
11664
d775acfa 11665
d643b80e
VZ
11666fi
11667
11668echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11669 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11670echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
65d8ef1e 11671echo "configure:11672: checking for zlib.h" >&5
89e6bf6d
VZ
11672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11674else
11675 cat > conftest.$ac_ext <<EOF
65d8ef1e 11676#line 11677 "configure"
89e6bf6d
VZ
11677#include "confdefs.h"
11678#include <zlib.h>
11679EOF
11680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 11681{ (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11682ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683if test -z "$ac_err"; then
11684 rm -rf conftest*
11685 eval "ac_cv_header_$ac_safe=yes"
11686else
11687 echo "$ac_err" >&5
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 rm -rf conftest*
11691 eval "ac_cv_header_$ac_safe=no"
11692fi
11693rm -f conftest*
11694fi
11695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 :
11698else
11699 echo "$ac_t""no" 1>&6
11700fi
11701
d643b80e 11702
d775acfa
VZ
11703 system_zlib_h_ok=$ac_cv_header_zlib_h
11704 fi
11705
11706 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11707 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
65d8ef1e 11708echo "configure:11709: checking for deflate in -lz" >&5
a0b9e27f
MB
11709ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11712else
a0b9e27f 11713 ac_save_LIBS="$LIBS"
21d1c967 11714LIBS="-lz $LIBS"
a0b9e27f 11715cat > conftest.$ac_ext <<EOF
65d8ef1e 11716#line 11717 "configure"
ab9b9eab 11717#include "confdefs.h"
21d1c967
GD
11718/* Override any gcc2 internal prototype to avoid an error. */
11719/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11720 builtin and then its argument prototype would still apply. */
11721char deflate();
11722
11723int main() {
11724deflate()
11725; return 0; }
11726EOF
65d8ef1e 11727if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11728 rm -rf conftest*
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11730else
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11735fi
a0b9e27f
MB
11736rm -f conftest*
11737LIBS="$ac_save_LIBS"
698dcdb6 11738
698dcdb6 11739fi
a0b9e27f
MB
11740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ZLIB_LINK=" -lz"
11743else
11744 echo "$ac_t""no" 1>&6
11745fi
698dcdb6 11746
d643b80e 11747 fi
247f5006 11748
21d1c967
GD
11749 if test "x$ZLIB_LINK" = "x" ; then
11750 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11751 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11752 else
d643b80e 11753 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11754 wxUSE_ZLIB=builtin
11755 fi
11756 else
11757 wxUSE_ZLIB=sys
11758 fi
11759 fi
11760
11761 if test "$wxUSE_ZLIB" = "builtin" ; then
11762 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11763 fi
ab9b9eab
VZ
11764fi
11765
8284b0c5 11766
21d1c967
GD
11767PNG_INCLUDE=
11768PNG_LINK=
11769if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11770 cat >> confdefs.h <<\EOF
21d1c967 11771#define wxUSE_LIBPNG 1
a0b9e27f 11772EOF
90dd450c 11773
8284b0c5 11774
21d1c967 11775 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11776 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11777 wxUSE_LIBPNG=sys
11778 fi
90dd450c 11779
21d1c967 11780 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11781 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11782 wxUSE_LIBPNG=builtin
11783 fi
11784
11785 if test "$wxUSE_MGL" != 1 ; then
11786 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11787 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
65d8ef1e 11788echo "configure:11789: checking for png.h > 0.90" >&5
5d3f766d
VZ
11789if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791else
11792 if test "$cross_compiling" = yes; then
89e6bf6d 11793 unset ac_cv_header_png_h
5d3f766d
VZ
11794
11795else
11796 cat > conftest.$ac_ext <<EOF
65d8ef1e 11797#line 11798 "configure"
5d3f766d
VZ
11798#include "confdefs.h"
11799
11800 #include <png.h>
11801 #include <stdio.h>
11802
11803 int main()
11804 {
11805 FILE *f=fopen("conftestval", "w");
11806 if (!f) exit(1);
11807 fprintf(f, "%s",
11808 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11809 exit(0);
11810 }
11811
11812EOF
65d8ef1e 11813if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11814then
11815 ac_cv_header_png_h=`cat conftestval`
11816else
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 rm -fr conftest*
11820 ac_cv_header_png_h=no
11821fi
11822rm -fr conftest*
11823fi
11824
11825
11826fi
11827
11828echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11829 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11830echo $ac_n "checking for png.h""... $ac_c" 1>&6
65d8ef1e 11831echo "configure:11832: checking for png.h" >&5
89e6bf6d
VZ
11832if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
11834else
11835 cat > conftest.$ac_ext <<EOF
65d8ef1e 11836#line 11837 "configure"
89e6bf6d
VZ
11837#include "confdefs.h"
11838#include <png.h>
11839EOF
11840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 11841{ (eval echo configure:11842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11842ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11843if test -z "$ac_err"; then
11844 rm -rf conftest*
11845 eval "ac_cv_header_$ac_safe=yes"
11846else
11847 echo "$ac_err" >&5
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 eval "ac_cv_header_$ac_safe=no"
11852fi
11853rm -f conftest*
11854fi
11855if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 :
11858else
11859 echo "$ac_t""no" 1>&6
11860fi
11861
5d3f766d
VZ
11862
11863 if test "$ac_cv_header_png_h" = "yes"; then
11864 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
65d8ef1e 11865echo "configure:11866: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11866ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11869else
a0b9e27f 11870 ac_save_LIBS="$LIBS"
21d1c967 11871LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11872cat > conftest.$ac_ext <<EOF
65d8ef1e 11873#line 11874 "configure"
90dd450c 11874#include "confdefs.h"
21d1c967
GD
11875/* Override any gcc2 internal prototype to avoid an error. */
11876/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11877 builtin and then its argument prototype would still apply. */
11878char png_check_sig();
90dd450c 11879
a0b9e27f
MB
11880int main() {
11881png_check_sig()
11882; return 0; }
11883EOF
65d8ef1e 11884if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11885 rm -rf conftest*
11886 eval "ac_cv_lib_$ac_lib_var=yes"
11887else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891 eval "ac_cv_lib_$ac_lib_var=no"
11892fi
11893rm -f conftest*
11894LIBS="$ac_save_LIBS"
247f5006 11895
90dd450c 11896fi
a0b9e27f
MB
11897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11898 echo "$ac_t""yes" 1>&6
11899 PNG_LINK=" -lpng"
11900else
11901 echo "$ac_t""no" 1>&6
11902fi
90dd450c 11903
5d3f766d 11904 fi
247f5006 11905
21d1c967
GD
11906 if test "x$PNG_LINK" = "x" ; then
11907 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11908 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11909 else
0c98a14e 11910 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11911 wxUSE_LIBPNG=builtin
11912 fi
11913 else
2b5f62a0 11914 wxUSE_LIBPNG=sys
21d1c967
GD
11915 fi
11916 fi
11917 fi
90dd450c 11918
21d1c967
GD
11919 if test "$wxUSE_LIBPNG" = "builtin" ; then
11920 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11921 fi
90dd450c 11922
21d1c967 11923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11924fi
11925
8284b0c5 11926
21d1c967
GD
11927JPEG_INCLUDE=
11928JPEG_LINK=
11929if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11930 cat >> confdefs.h <<\EOF
21d1c967 11931#define wxUSE_LIBJPEG 1
a0b9e27f 11932EOF
90dd450c 11933
8284b0c5 11934
21d1c967 11935 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11936 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11937 wxUSE_LIBJPEG=sys
11938 fi
90dd450c 11939
21d1c967
GD
11940 if test "$wxUSE_MGL" != 1 ; then
11941 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11942 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
65d8ef1e 11943echo "configure:11944: checking for jpeglib.h" >&5
a0b9e27f
MB
11944 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11946else
a0b9e27f 11947 cat > conftest.$ac_ext <<EOF
65d8ef1e 11948#line 11949 "configure"
21d1c967 11949#include "confdefs.h"
90dd450c 11950
21d1c967
GD
11951 #undef HAVE_STDLIB_H
11952 #include <stdio.h>
11953 #include <jpeglib.h>
a0b9e27f
MB
11954
11955int main() {
90dd450c 11956
a0b9e27f
MB
11957
11958; return 0; }
11959EOF
65d8ef1e 11960if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11961 rm -rf conftest*
21d1c967 11962 ac_cv_header_jpeglib_h=yes
90dd450c 11963else
a0b9e27f
MB
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 rm -rf conftest*
11967 ac_cv_header_jpeglib_h=no
11968
90dd450c 11969fi
a0b9e27f
MB
11970rm -f conftest*
11971
90dd450c
VZ
11972fi
11973
a0b9e27f 11974 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11975
21d1c967 11976 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11977 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
65d8ef1e 11978echo "configure:11979: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11979ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11982else
a0b9e27f 11983 ac_save_LIBS="$LIBS"
21d1c967 11984LIBS="-ljpeg $LIBS"
a0b9e27f 11985cat > conftest.$ac_ext <<EOF
65d8ef1e 11986#line 11987 "configure"
21d1c967
GD
11987#include "confdefs.h"
11988/* Override any gcc2 internal prototype to avoid an error. */
11989/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11990 builtin and then its argument prototype would still apply. */
11991char jpeg_read_header();
11992
11993int main() {
11994jpeg_read_header()
11995; return 0; }
11996EOF
65d8ef1e 11997if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11998 rm -rf conftest*
11999 eval "ac_cv_lib_$ac_lib_var=yes"
12000else
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=no"
12005fi
12006rm -f conftest*
12007LIBS="$ac_save_LIBS"
12008
12009fi
12010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
21d1c967 12012 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12013else
12014 echo "$ac_t""no" 1>&6
90dd450c
VZ
12015fi
12016
21d1c967 12017 fi
90dd450c 12018
21d1c967
GD
12019 if test "x$JPEG_LINK" = "x" ; then
12020 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12021 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12022 else
a0b9e27f 12023 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12024 wxUSE_LIBJPEG=builtin
12025 fi
12026 else
12027 wxUSE_LIBJPEG=sys
12028 fi
12029 fi
12030 fi
90dd450c 12031
21d1c967
GD
12032 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12033 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12034 fi
12035fi
90dd450c 12036
8284b0c5 12037
21d1c967
GD
12038TIFF_INCLUDE=
12039TIFF_LINK=
2b5f62a0 12040TIFF_PREREQ_LINKS=-lm
21d1c967 12041if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12042 cat >> confdefs.h <<\EOF
21d1c967 12043#define wxUSE_LIBTIFF 1
a0b9e27f 12044EOF
21d1c967 12045
8284b0c5 12046
21d1c967 12047 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12048 if test "$wxUSE_LIBJPEG" = "sys"; then
12049 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12050 fi
12051 if test "$wxUSE_ZLIB" = "sys"; then
12052 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12053 fi
a0b9e27f
MB
12054 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12055echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
65d8ef1e 12056echo "configure:12057: checking for tiffio.h" >&5
a0b9e27f
MB
12057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059else
12060 cat > conftest.$ac_ext <<EOF
65d8ef1e 12061#line 12062 "configure"
247f5006
VZ
12062#include "confdefs.h"
12063#include <tiffio.h>
a0b9e27f
MB
12064EOF
12065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 12066{ (eval echo configure:12067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12068if test -z "$ac_err"; then
12069 rm -rf conftest*
12070 eval "ac_cv_header_$ac_safe=yes"
12071else
12072 echo "$ac_err" >&5
12073 echo "configure: failed program was:" >&5
21d1c967 12074 cat conftest.$ac_ext >&5
a0b9e27f
MB
12075 rm -rf conftest*
12076 eval "ac_cv_header_$ac_safe=no"
21d1c967 12077fi
a0b9e27f 12078rm -f conftest*
21d1c967 12079fi
a0b9e27f
MB
12080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12081 echo "$ac_t""yes" 1>&6
12082 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
65d8ef1e 12083echo "configure:12084: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12084ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12087else
a0b9e27f 12088 ac_save_LIBS="$LIBS"
2b5f62a0 12089LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12090cat > conftest.$ac_ext <<EOF
65d8ef1e 12091#line 12092 "configure"
ab9b9eab
VZ
12092#include "confdefs.h"
12093/* Override any gcc2 internal prototype to avoid an error. */
12094/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12095 builtin and then its argument prototype would still apply. */
12096char TIFFError();
ab9b9eab 12097
a0b9e27f
MB
12098int main() {
12099TIFFError()
12100; return 0; }
12101EOF
65d8ef1e 12102if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12103 rm -rf conftest*
12104 eval "ac_cv_lib_$ac_lib_var=yes"
12105else
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 rm -rf conftest*
12109 eval "ac_cv_lib_$ac_lib_var=no"
12110fi
12111rm -f conftest*
12112LIBS="$ac_save_LIBS"
247f5006 12113
21d1c967 12114fi
a0b9e27f
MB
12115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 TIFF_LINK=" -ltiff"
12118else
12119 echo "$ac_t""no" 1>&6
12120fi
cd6d6d5b 12121
a0b9e27f
MB
12122
12123else
12124 echo "$ac_t""no" 1>&6
12125fi
8284b0c5 12126
247f5006 12127
21d1c967
GD
12128 if test "x$TIFF_LINK" = "x" ; then
12129 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12130 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12131 else
a0b9e27f 12132 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12133 wxUSE_LIBTIFF=builtin
d8356fa3 12134 fi
d8356fa3 12135 else
21d1c967 12136 wxUSE_LIBTIFF=sys
d8356fa3 12137 fi
21d1c967 12138 fi
d8356fa3 12139
21d1c967
GD
12140 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12141 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12142 fi
21d1c967 12143fi
10f2d63a 12144
8284b0c5 12145
21d1c967 12146AFMINSTALL=
2b5f62a0 12147WIN32INSTALL=
90dd450c 12148
21d1c967
GD
12149TOOLKIT=
12150TOOLKIT_INCLUDE=
12151WIDGET_SET=
12152
12153if test "$USE_WIN32" = 1 ; then
a0b9e27f 12154 for ac_hdr in w32api.h
21d1c967 12155do
a0b9e27f
MB
12156ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12157echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 12158echo "configure:12159: checking for $ac_hdr" >&5
a0b9e27f
MB
12159if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162 cat > conftest.$ac_ext <<EOF
65d8ef1e 12163#line 12164 "configure"
247f5006 12164#include "confdefs.h"
a0b9e27f
MB
12165#include <$ac_hdr>
12166EOF
12167ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 12168{ (eval echo configure:12169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12169ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12170if test -z "$ac_err"; then
12171 rm -rf conftest*
12172 eval "ac_cv_header_$ac_safe=yes"
12173else
12174 echo "$ac_err" >&5
12175 echo "configure: failed program was:" >&5
f79bd02d 12176 cat conftest.$ac_ext >&5
a0b9e27f
MB
12177 rm -rf conftest*
12178 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12179fi
a0b9e27f 12180rm -f conftest*
21d1c967 12181fi
a0b9e27f
MB
12182if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12183 echo "$ac_t""yes" 1>&6
12184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12185 cat >> confdefs.h <<EOF
12186#define $ac_tr_hdr 1
12187EOF
12188
12189else
12190 echo "$ac_t""no" 1>&6
21d1c967
GD
12191fi
12192done
f79bd02d 12193
a0b9e27f
MB
12194 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12195echo $ac_n "checking for windows.h""... $ac_c" 1>&6
65d8ef1e 12196echo "configure:12197: checking for windows.h" >&5
a0b9e27f
MB
12197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12198 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12199else
a0b9e27f 12200 cat > conftest.$ac_ext <<EOF
65d8ef1e 12201#line 12202 "configure"
247f5006
VZ
12202#include "confdefs.h"
12203#include <windows.h>
a0b9e27f
MB
12204EOF
12205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 12206{ (eval echo configure:12207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12208if test -z "$ac_err"; then
12209 rm -rf conftest*
12210 eval "ac_cv_header_$ac_safe=yes"
12211else
12212 echo "$ac_err" >&5
12213 echo "configure: failed program was:" >&5
90dd450c 12214 cat conftest.$ac_ext >&5
a0b9e27f
MB
12215 rm -rf conftest*
12216 eval "ac_cv_header_$ac_safe=no"
90dd450c 12217fi
a0b9e27f 12218rm -f conftest*
90dd450c 12219fi
a0b9e27f
MB
12220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
21d1c967 12222 :
90dd450c 12223else
a0b9e27f 12224 echo "$ac_t""no" 1>&6
21d1c967 12225
a0b9e27f
MB
12226 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12227
5c6fa7d2 12228fi
7b4a847f 12229
5c6fa7d2 12230
a0b9e27f 12231 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
65d8ef1e 12232echo "configure:12233: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12233if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12235else
a0b9e27f
MB
12236
12237 cat > conftest.$ac_ext <<EOF
65d8ef1e 12238#line 12239 "configure"
f79bd02d 12239#include "confdefs.h"
21d1c967 12240#include <w32api.h>
a0b9e27f 12241int main() {
f79bd02d 12242
21d1c967
GD
12243 #define wxCHECK_W32API_VERSION( major, minor ) \
12244 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12245 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12246 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12247
12248 #if !wxCHECK_W32API_VERSION(1,1)
12249 #error You need w32api 1.1 or newer
12250 #endif
a0b9e27f
MB
12251
12252; return 0; }
12253EOF
65d8ef1e 12254if { (eval echo configure:12255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12255 rm -rf conftest*
12256
21d1c967 12257 wx_cv_w32api_win32_ie=yes
a0b9e27f 12258
f79bd02d 12259else
a0b9e27f
MB
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263
21d1c967 12264 wx_cv_w32api_win32_ie=no
a0b9e27f 12265
5c6fa7d2 12266fi
a0b9e27f
MB
12267rm -f conftest*
12268
247f5006 12269fi
a0b9e27f
MB
12270
12271echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12272 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12273 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12274 fi
f79bd02d 12275
21d1c967
GD
12276 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12277
12278 case "${host}" in
12279 *-*-cygwin* )
12280 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12281 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12282 esac
f79bd02d 12283
21d1c967
GD
12284 if test "$wxUSE_ODBC" = "yes" ; then
12285 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12286 fi
f79bd02d 12287
21d1c967
GD
12288 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12289 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12290
12291 WIN32INSTALL=win32install
f79bd02d 12292fi
f79bd02d 12293
b2fee376 12294if test "$USE_DARWIN" = 1; then
50bcbd3d 12295 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12296 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12297 else
12298 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12299 fi
12300fi
12301
21d1c967
GD
12302if test "$wxUSE_GUI" = "yes"; then
12303 USE_GUI=1
f79bd02d 12304
21d1c967 12305 GUI_TK_LIBRARY=
f79bd02d 12306
21d1c967
GD
12307 WXGTK12=
12308 WXGTK127=
12309 WXGTK20=
f79bd02d 12310
21d1c967
GD
12311 if test "$wxUSE_MSW" = 1 ; then
12312 TOOLKIT=MSW
12313 GUIDIST=MSW_DIST
f79bd02d 12314
89e6bf6d 12315 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12316 fi
12317
21d1c967 12318 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12319 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
65d8ef1e 12320echo "configure:12321: checking for GTK+ version" >&5
21d1c967
GD
12321
12322 gtk_version_cached=1
a0b9e27f
MB
12323 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12325else
a0b9e27f 12326
21d1c967 12327 gtk_version_cached=0
a0b9e27f 12328 echo "$ac_t""" 1>&6
f79bd02d 12329
21d1c967
GD
12330 GTK_MODULES=
12331 if test "$wxUSE_THREADS" = "yes"; then
12332 GTK_MODULES=gthread
12333 fi
f79bd02d 12334
2b5f62a0 12335 wx_cv_lib_gtk=
21d1c967
GD
12336 if test "x$wxUSE_GTK2" = "xyes"; then
12337 # Check whether --enable-gtktest or --disable-gtktest was given.
12338if test "${enable_gtktest+set}" = set; then
12339 enableval="$enable_gtktest"
a0b9e27f 12340 :
f79bd02d 12341else
21d1c967 12342 enable_gtktest=yes
a0b9e27f
MB
12343fi
12344
f79bd02d 12345
21d1c967
GD
12346 pkg_config_args=gtk+-2.0
12347 for module in . $GTK_MODULES
12348 do
12349 case "$module" in
a0b9e27f 12350 gthread)
21d1c967
GD
12351 pkg_config_args="$pkg_config_args gthread-2.0"
12352 ;;
12353 esac
12354 done
12355
12356 no_gtk=""
f79bd02d 12357
21d1c967
GD
12358 # Extract the first word of "pkg-config", so it can be a program name with args.
12359set dummy pkg-config; ac_word=$2
a0b9e27f 12360echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 12361echo "configure:12362: checking for $ac_word" >&5
a0b9e27f
MB
12362if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12364else
a0b9e27f
MB
12365 case "$PKG_CONFIG" in
12366 /*)
21d1c967
GD
12367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12368 ;;
a0b9e27f
MB
12369 ?:/*)
12370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12371 ;;
21d1c967 12372 *)
a0b9e27f
MB
12373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12374 ac_dummy="$PATH"
12375 for ac_dir in $ac_dummy; do
12376 test -z "$ac_dir" && ac_dir=.
12377 if test -f $ac_dir/$ac_word; then
12378 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12379 break
12380 fi
12381 done
12382 IFS="$ac_save_ifs"
21d1c967
GD
12383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12384 ;;
12385esac
f79bd02d 12386fi
a0b9e27f 12387PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12388if test -n "$PKG_CONFIG"; then
a0b9e27f 12389 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12390else
a0b9e27f 12391 echo "$ac_t""no" 1>&6
f79bd02d
JS
12392fi
12393
8284b0c5 12394
21d1c967
GD
12395 if test x$PKG_CONFIG != xno ; then
12396 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12397 :
12398 else
12399 echo *** pkg-config too old; version 0.7 or better required.
12400 no_gtk=yes
12401 PKG_CONFIG=no
12402 fi
12403 else
12404 no_gtk=yes
12405 fi
f79bd02d 12406
21d1c967 12407 min_gtk_version=2.0.0
a0b9e27f 12408 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
65d8ef1e 12409echo "configure:12410: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12410
21d1c967
GD
12411 if test x$PKG_CONFIG != xno ; then
12412 ## don't try to run the test against uninstalled libtool libs
12413 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12414 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12415 enable_gtktest=no
12416 fi
f79bd02d 12417
21d1c967
GD
12418 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12419 :
12420 else
12421 no_gtk=yes
12422 fi
12423 fi
f79bd02d 12424
21d1c967
GD
12425 if test x"$no_gtk" = x ; then
12426 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12427 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12428 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12430 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12432 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12434 if test "x$enable_gtktest" = "xyes" ; then
12435 ac_save_CFLAGS="$CFLAGS"
12436 ac_save_LIBS="$LIBS"
12437 CFLAGS="$CFLAGS $GTK_CFLAGS"
12438 LIBS="$GTK_LIBS $LIBS"
12439 rm -f conf.gtktest
12440 if test "$cross_compiling" = yes; then
12441 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12442else
a0b9e27f 12443 cat > conftest.$ac_ext <<EOF
65d8ef1e 12444#line 12445 "configure"
f79bd02d 12445#include "confdefs.h"
f79bd02d 12446
21d1c967
GD
12447#include <gtk/gtk.h>
12448#include <stdio.h>
12449#include <stdlib.h>
f79bd02d 12450
a0b9e27f 12451int
21d1c967
GD
12452main ()
12453{
12454 int major, minor, micro;
12455 char *tmp_version;
f79bd02d 12456
21d1c967 12457 system ("touch conf.gtktest");
f79bd02d 12458
21d1c967
GD
12459 /* HP/UX 9 (%@#!) writes to sscanf strings */
12460 tmp_version = g_strdup("$min_gtk_version");
12461 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12462 printf("%s, bad version string\n", "$min_gtk_version");
12463 exit(1);
12464 }
f79bd02d 12465
21d1c967
GD
12466 if ((gtk_major_version != $gtk_config_major_version) ||
12467 (gtk_minor_version != $gtk_config_minor_version) ||
12468 (gtk_micro_version != $gtk_config_micro_version))
12469 {
a0b9e27f 12470 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12471 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12472 gtk_major_version, gtk_minor_version, gtk_micro_version);
12473 printf ("*** was found! If pkg-config was correct, then it is best\n");
12474 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12475 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12476 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12477 printf("*** required on your system.\n");
12478 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12479 printf("*** to point to the correct configuration files\n");
a0b9e27f 12480 }
21d1c967
GD
12481 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12482 (gtk_minor_version != GTK_MINOR_VERSION) ||
12483 (gtk_micro_version != GTK_MICRO_VERSION))
12484 {
12485 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12486 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12487 printf("*** library (version %d.%d.%d)\n",
12488 gtk_major_version, gtk_minor_version, gtk_micro_version);
12489 }
12490 else
12491 {
12492 if ((gtk_major_version > major) ||
12493 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12494 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12495 {
12496 return 0;
12497 }
12498 else
12499 {
12500 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12501 gtk_major_version, gtk_minor_version, gtk_micro_version);
12502 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12503 major, minor, micro);
12504 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12505 printf("***\n");
12506 printf("*** If you have already installed a sufficiently new version, this error\n");
12507 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12508 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12509 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12510 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12511 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12512 printf("*** so that the correct libraries are found at run-time))\n");
12513 }
12514 }
12515 return 1;
12516}
f79bd02d 12517
a0b9e27f 12518EOF
65d8ef1e 12519if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12520then
21d1c967 12521 :
f79bd02d 12522else
a0b9e27f
MB
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12525 rm -fr conftest*
12526 no_gtk=yes
f79bd02d 12527fi
a0b9e27f 12528rm -fr conftest*
f79bd02d 12529fi
a0b9e27f 12530
21d1c967
GD
12531 CFLAGS="$ac_save_CFLAGS"
12532 LIBS="$ac_save_LIBS"
12533 fi
12534 fi
12535 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12536 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12537 wx_cv_lib_gtk=2.0
21d1c967 12538 else
a0b9e27f 12539 echo "$ac_t""no" 1>&6
21d1c967
GD
12540 if test "$PKG_CONFIG" = "no" ; then
12541 echo "*** A new enough version of pkg-config was not found."
12542 echo "*** See http://pkgconfig.sourceforge.net"
12543 else
12544 if test -f conf.gtktest ; then
12545 :
12546 else
12547 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12548 ac_save_CFLAGS="$CFLAGS"
12549 ac_save_LIBS="$LIBS"
21d1c967
GD
12550 CFLAGS="$CFLAGS $GTK_CFLAGS"
12551 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12552 cat > conftest.$ac_ext <<EOF
65d8ef1e 12553#line 12554 "configure"
f79bd02d 12554#include "confdefs.h"
21d1c967
GD
12555
12556#include <gtk/gtk.h>
12557#include <stdio.h>
f79bd02d 12558
a0b9e27f
MB
12559int main() {
12560 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12561; return 0; }
12562EOF
65d8ef1e 12563if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12564 rm -rf conftest*
21d1c967
GD
12565 echo "*** The test program compiled, but did not run. This usually means"
12566 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12567 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12568 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12569 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12570 echo "*** is required on your system"
12571 echo "***"
12572 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12573 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12574else
a0b9e27f
MB
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 rm -rf conftest*
12578 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12579 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12580fi
a0b9e27f 12581rm -f conftest*
21d1c967
GD
12582 CFLAGS="$ac_save_CFLAGS"
12583 LIBS="$ac_save_LIBS"
12584 fi
12585 fi
12586 GTK_CFLAGS=""
12587 GTK_LIBS=""
12588 :
12589 fi
a0b9e27f
MB
12590
12591
21d1c967 12592 rm -f conf.gtktest
f79bd02d 12593
2b5f62a0 12594 else
a0b9e27f 12595 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12596if test "${with_gtk_prefix+set}" = set; then
12597 withval="$with_gtk_prefix"
12598 gtk_config_prefix="$withval"
12599else
12600 gtk_config_prefix=""
a0b9e27f 12601fi
f79bd02d 12602
21d1c967
GD
12603# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12604if test "${with_gtk_exec_prefix+set}" = set; then
12605 withval="$with_gtk_exec_prefix"
12606 gtk_config_exec_prefix="$withval"
12607else
12608 gtk_config_exec_prefix=""
a0b9e27f
MB
12609fi
12610
21d1c967
GD
12611# Check whether --enable-gtktest or --disable-gtktest was given.
12612if test "${enable_gtktest+set}" = set; then
12613 enableval="$enable_gtktest"
a0b9e27f 12614 :
21d1c967
GD
12615else
12616 enable_gtktest=yes
a0b9e27f
MB
12617fi
12618
21d1c967
GD
12619
12620 for module in . $GTK_MODULES
12621 do
12622 case "$module" in
a0b9e27f 12623 gthread)
21d1c967
GD
12624 gtk_config_args="$gtk_config_args gthread"
12625 ;;
12626 esac
12627 done
12628
12629 if test x$gtk_config_exec_prefix != x ; then
12630 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12631 if test x${GTK_CONFIG+set} != xset ; then
12632 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12633 fi
12634 fi
12635 if test x$gtk_config_prefix != x ; then
12636 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12637 if test x${GTK_CONFIG+set} != xset ; then
12638 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12639 fi
12640 fi
12641
12642 # Extract the first word of "gtk-config", so it can be a program name with args.
12643set dummy gtk-config; ac_word=$2
a0b9e27f 12644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 12645echo "configure:12646: checking for $ac_word" >&5
a0b9e27f
MB
12646if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12647 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12648else
a0b9e27f
MB
12649 case "$GTK_CONFIG" in
12650 /*)
21d1c967
GD
12651 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12652 ;;
a0b9e27f
MB
12653 ?:/*)
12654 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12655 ;;
21d1c967 12656 *)
a0b9e27f
MB
12657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12658 ac_dummy="$PATH"
12659 for ac_dir in $ac_dummy; do
12660 test -z "$ac_dir" && ac_dir=.
12661 if test -f $ac_dir/$ac_word; then
12662 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12663 break
12664 fi
12665 done
12666 IFS="$ac_save_ifs"
21d1c967
GD
12667 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12668 ;;
12669esac
12670fi
a0b9e27f 12671GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12672if test -n "$GTK_CONFIG"; then
a0b9e27f 12673 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12674else
a0b9e27f 12675 echo "$ac_t""no" 1>&6
21d1c967
GD
12676fi
12677
12678 min_gtk_version=1.2.7
a0b9e27f 12679 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
65d8ef1e 12680echo "configure:12681: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12681 no_gtk=""
12682 if test "$GTK_CONFIG" = "no" ; then
12683 no_gtk=yes
12684 else
12685 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12686 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12687 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12688 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12689 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12690 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12691 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12693 if test "x$enable_gtktest" = "xyes" ; then
12694 ac_save_CFLAGS="$CFLAGS"
12695 ac_save_LIBS="$LIBS"
12696 CFLAGS="$CFLAGS $GTK_CFLAGS"
12697 LIBS="$GTK_LIBS $LIBS"
12698 rm -f conf.gtktest
12699 if test "$cross_compiling" = yes; then
12700 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12701else
a0b9e27f 12702 cat > conftest.$ac_ext <<EOF
65d8ef1e 12703#line 12704 "configure"
f79bd02d
JS
12704#include "confdefs.h"
12705
21d1c967
GD
12706#include <gtk/gtk.h>
12707#include <stdio.h>
12708#include <stdlib.h>
f79bd02d 12709
a0b9e27f 12710int
21d1c967
GD
12711main ()
12712{
12713 int major, minor, micro;
12714 char *tmp_version;
12715
12716 system ("touch conf.gtktest");
12717
12718 /* HP/UX 9 (%@#!) writes to sscanf strings */
12719 tmp_version = g_strdup("$min_gtk_version");
12720 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12721 printf("%s, bad version string\n", "$min_gtk_version");
12722 exit(1);
12723 }
90dd450c 12724
21d1c967
GD
12725 if ((gtk_major_version != $gtk_config_major_version) ||
12726 (gtk_minor_version != $gtk_config_minor_version) ||
12727 (gtk_micro_version != $gtk_config_micro_version))
12728 {
a0b9e27f 12729 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12730 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12731 gtk_major_version, gtk_minor_version, gtk_micro_version);
12732 printf ("*** was found! If gtk-config was correct, then it is best\n");
12733 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12734 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12735 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12736 printf("*** required on your system.\n");
12737 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12738 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12739 printf("*** before re-running configure\n");
a0b9e27f 12740 }
21d1c967
GD
12741#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12742 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12743 (gtk_minor_version != GTK_MINOR_VERSION) ||
12744 (gtk_micro_version != GTK_MICRO_VERSION))
12745 {
12746 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12747 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12748 printf("*** library (version %d.%d.%d)\n",
12749 gtk_major_version, gtk_minor_version, gtk_micro_version);
12750 }
12751#endif /* defined (GTK_MAJOR_VERSION) ... */
12752 else
12753 {
12754 if ((gtk_major_version > major) ||
12755 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12756 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12757 {
12758 return 0;
12759 }
12760 else
12761 {
12762 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12763 gtk_major_version, gtk_minor_version, gtk_micro_version);
12764 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12765 major, minor, micro);
12766 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12767 printf("***\n");
12768 printf("*** If you have already installed a sufficiently new version, this error\n");
12769 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12770 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12771 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12772 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12773 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12774 printf("*** so that the correct libraries are found at run-time))\n");
12775 }
12776 }
12777 return 1;
12778}
12779
a0b9e27f 12780EOF
65d8ef1e 12781if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12782then
21d1c967
GD
12783 :
12784else
a0b9e27f
MB
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -fr conftest*
12788 no_gtk=yes
21d1c967 12789fi
a0b9e27f 12790rm -fr conftest*
21d1c967 12791fi
a0b9e27f 12792
21d1c967
GD
12793 CFLAGS="$ac_save_CFLAGS"
12794 LIBS="$ac_save_LIBS"
12795 fi
12796 fi
12797 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12798 echo "$ac_t""yes" 1>&6
12799 wx_cv_lib_gtk=1.2.7
21d1c967 12800 else
a0b9e27f 12801 echo "$ac_t""no" 1>&6
21d1c967
GD
12802 if test "$GTK_CONFIG" = "no" ; then
12803 echo "*** The gtk-config script installed by GTK could not be found"
12804 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12805 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12806 echo "*** full path to gtk-config."
12807 else
12808 if test -f conf.gtktest ; then
12809 :
12810 else
12811 echo "*** Could not run GTK test program, checking why..."
12812 CFLAGS="$CFLAGS $GTK_CFLAGS"
12813 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12814 cat > conftest.$ac_ext <<EOF
65d8ef1e 12815#line 12816 "configure"
21d1c967
GD
12816#include "confdefs.h"
12817
12818#include <gtk/gtk.h>
12819#include <stdio.h>
12820
a0b9e27f
MB
12821int main() {
12822 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12823; return 0; }
12824EOF
65d8ef1e 12825if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12826 rm -rf conftest*
21d1c967
GD
12827 echo "*** The test program compiled, but did not run. This usually means"
12828 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12829 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12830 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12831 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12832 echo "*** is required on your system"
12833 echo "***"
12834 echo "*** If you have an old version installed, it is best to remove it, although"
12835 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12836 echo "***"
12837 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12838 echo "*** came with the system with the command"
12839 echo "***"
a0b9e27f 12840 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12841else
a0b9e27f
MB
12842 echo "configure: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 rm -rf conftest*
12845 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12846 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12847 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12848 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12849fi
a0b9e27f 12850rm -f conftest*
21d1c967
GD
12851 CFLAGS="$ac_save_CFLAGS"
12852 LIBS="$ac_save_LIBS"
12853 fi
12854 fi
12855 GTK_CFLAGS=""
12856 GTK_LIBS=""
12857 :
12858 fi
a0b9e27f
MB
12859
12860
21d1c967
GD
12861 rm -f conf.gtktest
12862
21d1c967 12863
2b5f62a0
VZ
12864 if test -z "$wx_cv_lib_gtk"; then
12865 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12866if test "${with_gtk_prefix+set}" = set; then
12867 withval="$with_gtk_prefix"
12868 gtk_config_prefix="$withval"
12869else
12870 gtk_config_prefix=""
a0b9e27f 12871fi
f79bd02d 12872
21d1c967
GD
12873# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12874if test "${with_gtk_exec_prefix+set}" = set; then
12875 withval="$with_gtk_exec_prefix"
12876 gtk_config_exec_prefix="$withval"
12877else
12878 gtk_config_exec_prefix=""
a0b9e27f
MB
12879fi
12880
21d1c967
GD
12881# Check whether --enable-gtktest or --disable-gtktest was given.
12882if test "${enable_gtktest+set}" = set; then
12883 enableval="$enable_gtktest"
a0b9e27f 12884 :
90dd450c 12885else
21d1c967 12886 enable_gtktest=yes
a0b9e27f
MB
12887fi
12888
21d1c967
GD
12889
12890 for module in . $GTK_MODULES
12891 do
12892 case "$module" in
a0b9e27f 12893 gthread)
21d1c967
GD
12894 gtk_config_args="$gtk_config_args gthread"
12895 ;;
12896 esac
12897 done
12898
12899 if test x$gtk_config_exec_prefix != x ; then
12900 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12901 if test x${GTK_CONFIG+set} != xset ; then
12902 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12903 fi
12904 fi
12905 if test x$gtk_config_prefix != x ; then
12906 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12907 if test x${GTK_CONFIG+set} != xset ; then
12908 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12909 fi
12910 fi
12911
12912 # Extract the first word of "gtk-config", so it can be a program name with args.
12913set dummy gtk-config; ac_word=$2
a0b9e27f 12914echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 12915echo "configure:12916: checking for $ac_word" >&5
a0b9e27f
MB
12916if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12918else
a0b9e27f
MB
12919 case "$GTK_CONFIG" in
12920 /*)
21d1c967
GD
12921 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12922 ;;
a0b9e27f
MB
12923 ?:/*)
12924 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12925 ;;
21d1c967 12926 *)
a0b9e27f
MB
12927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12928 ac_dummy="$PATH"
12929 for ac_dir in $ac_dummy; do
12930 test -z "$ac_dir" && ac_dir=.
12931 if test -f $ac_dir/$ac_word; then
12932 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12933 break
12934 fi
12935 done
12936 IFS="$ac_save_ifs"
21d1c967
GD
12937 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12938 ;;
12939esac
12940fi
a0b9e27f 12941GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12942if test -n "$GTK_CONFIG"; then
a0b9e27f 12943 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12944else
a0b9e27f 12945 echo "$ac_t""no" 1>&6
21d1c967
GD
12946fi
12947
12948 min_gtk_version=1.2.3
a0b9e27f 12949 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
65d8ef1e 12950echo "configure:12951: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12951 no_gtk=""
12952 if test "$GTK_CONFIG" = "no" ; then
12953 no_gtk=yes
12954 else
12955 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12956 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12957 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12958 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12959 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12960 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12961 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12963 if test "x$enable_gtktest" = "xyes" ; then
12964 ac_save_CFLAGS="$CFLAGS"
12965 ac_save_LIBS="$LIBS"
12966 CFLAGS="$CFLAGS $GTK_CFLAGS"
12967 LIBS="$GTK_LIBS $LIBS"
12968 rm -f conf.gtktest
12969 if test "$cross_compiling" = yes; then
12970 echo $ac_n "cross compiling; assumed OK... $ac_c"
12971else
a0b9e27f 12972 cat > conftest.$ac_ext <<EOF
65d8ef1e 12973#line 12974 "configure"
f79bd02d 12974#include "confdefs.h"
21d1c967
GD
12975
12976#include <gtk/gtk.h>
12977#include <stdio.h>
12978#include <stdlib.h>
12979
a0b9e27f 12980int
21d1c967
GD
12981main ()
12982{
12983 int major, minor, micro;
12984 char *tmp_version;
12985
12986 system ("touch conf.gtktest");
12987
12988 /* HP/UX 9 (%@#!) writes to sscanf strings */
12989 tmp_version = g_strdup("$min_gtk_version");
12990 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12991 printf("%s, bad version string\n", "$min_gtk_version");
12992 exit(1);
12993 }
12994
12995 if ((gtk_major_version != $gtk_config_major_version) ||
12996 (gtk_minor_version != $gtk_config_minor_version) ||
12997 (gtk_micro_version != $gtk_config_micro_version))
12998 {
a0b9e27f 12999 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13000 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13001 gtk_major_version, gtk_minor_version, gtk_micro_version);
13002 printf ("*** was found! If gtk-config was correct, then it is best\n");
13003 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13004 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13005 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13006 printf("*** required on your system.\n");
13007 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13008 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13009 printf("*** before re-running configure\n");
a0b9e27f 13010 }
21d1c967
GD
13011#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13012 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13013 (gtk_minor_version != GTK_MINOR_VERSION) ||
13014 (gtk_micro_version != GTK_MICRO_VERSION))
13015 {
13016 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13017 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13018 printf("*** library (version %d.%d.%d)\n",
13019 gtk_major_version, gtk_minor_version, gtk_micro_version);
13020 }
13021#endif /* defined (GTK_MAJOR_VERSION) ... */
13022 else
13023 {
13024 if ((gtk_major_version > major) ||
13025 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13026 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13027 {
13028 return 0;
13029 }
13030 else
13031 {
13032 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13033 gtk_major_version, gtk_minor_version, gtk_micro_version);
13034 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13035 major, minor, micro);
13036 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13037 printf("***\n");
13038 printf("*** If you have already installed a sufficiently new version, this error\n");
13039 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13040 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13041 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13042 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13043 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13044 printf("*** so that the correct libraries are found at run-time))\n");
13045 }
13046 }
13047 return 1;
13048}
13049
a0b9e27f 13050EOF
65d8ef1e 13051if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13052then
21d1c967
GD
13053 :
13054else
a0b9e27f
MB
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 rm -fr conftest*
13058 no_gtk=yes
21d1c967 13059fi
a0b9e27f 13060rm -fr conftest*
21d1c967 13061fi
a0b9e27f 13062
21d1c967
GD
13063 CFLAGS="$ac_save_CFLAGS"
13064 LIBS="$ac_save_LIBS"
13065 fi
13066 fi
13067 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13068 echo "$ac_t""yes" 1>&6
13069 wx_cv_lib_gtk=1.2.3
21d1c967 13070 else
a0b9e27f 13071 echo "$ac_t""no" 1>&6
21d1c967
GD
13072 if test "$GTK_CONFIG" = "no" ; then
13073 echo "*** The gtk-config script installed by GTK could not be found"
13074 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13075 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13076 echo "*** full path to gtk-config."
13077 else
13078 if test -f conf.gtktest ; then
13079 :
13080 else
13081 echo "*** Could not run GTK test program, checking why..."
13082 CFLAGS="$CFLAGS $GTK_CFLAGS"
13083 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13084 cat > conftest.$ac_ext <<EOF
65d8ef1e 13085#line 13086 "configure"
21d1c967
GD
13086#include "confdefs.h"
13087
13088#include <gtk/gtk.h>
13089#include <stdio.h>
f79bd02d 13090
a0b9e27f
MB
13091int main() {
13092 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13093; return 0; }
13094EOF
65d8ef1e 13095if { (eval echo configure:13096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13096 rm -rf conftest*
21d1c967
GD
13097 echo "*** The test program compiled, but did not run. This usually means"
13098 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13099 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13100 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13101 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13102 echo "*** is required on your system"
13103 echo "***"
13104 echo "*** If you have an old version installed, it is best to remove it, although"
13105 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13106 echo "***"
13107 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13108 echo "*** came with the system with the command"
13109 echo "***"
a0b9e27f 13110 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13111else
a0b9e27f
MB
13112 echo "configure: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13114 rm -rf conftest*
13115 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13116 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13117 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13118 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13119fi
a0b9e27f 13120rm -f conftest*
21d1c967
GD
13121 CFLAGS="$ac_save_CFLAGS"
13122 LIBS="$ac_save_LIBS"
13123 fi
13124 fi
13125 GTK_CFLAGS=""
13126 GTK_LIBS=""
13127 :
13128 fi
a0b9e27f
MB
13129
13130
21d1c967 13131 rm -f conf.gtktest
f79bd02d 13132
2b5f62a0 13133 fi
21d1c967
GD
13134 fi
13135
13136 if test -z "$wx_cv_lib_gtk"; then
13137 wx_cv_lib_gtk=none
13138 else
13139 wx_cv_cflags_gtk=$GTK_CFLAGS
13140 wx_cv_libs_gtk=$GTK_LIBS
13141 fi
a0b9e27f
MB
13142
13143
5c6fa7d2 13144fi
52127426 13145
8284b0c5 13146
21d1c967 13147 if test "$gtk_version_cached" = 1; then
a0b9e27f 13148 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13149 fi
13150
13151 case "$wx_cv_lib_gtk" in
13152 2.0) WXGTK20=1
2b5f62a0 13153 TOOLKIT_VERSION=2
21d1c967
GD
13154 ;;
13155 1.2.7) WXGTK127=1
13156 WXGTK12=1
13157 ;;
13158 1.2.3) WXGTK12=1
13159 ;;
a0b9e27f 13160 *) { echo "configure: error:
247f5006
VZ
13161Please check that gtk-config is in path, the directory
13162where GTK+ libraries are installed (returned by
13163'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13164equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13165 " 1>&2; exit 1; }
21d1c967
GD
13166 ;;
13167 esac
13168
b13cd66e
VZ
13169 if test "$WXGTK20" = 1; then
13170 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13171
f09359cf
VS
13172 succeeded=no
13173
13174 if test -z "$PKG_CONFIG"; then
13175 # Extract the first word of "pkg-config", so it can be a program name with args.
13176set dummy pkg-config; ac_word=$2
a0b9e27f 13177echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 13178echo "configure:13179: checking for $ac_word" >&5
a0b9e27f
MB
13179if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13181else
a0b9e27f
MB
13182 case "$PKG_CONFIG" in
13183 /*)
f09359cf
VS
13184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13185 ;;
a0b9e27f
MB
13186 ?:/*)
13187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13188 ;;
f09359cf 13189 *)
a0b9e27f
MB
13190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13191 ac_dummy="$PATH"
13192 for ac_dir in $ac_dummy; do
13193 test -z "$ac_dir" && ac_dir=.
13194 if test -f $ac_dir/$ac_word; then
13195 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13196 break
13197 fi
13198 done
13199 IFS="$ac_save_ifs"
f09359cf
VS
13200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13201 ;;
13202esac
13203fi
a0b9e27f 13204PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13205if test -n "$PKG_CONFIG"; then
a0b9e27f 13206 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13207else
a0b9e27f 13208 echo "$ac_t""no" 1>&6
f09359cf
VS
13209fi
13210
13211 fi
13212
13213 if test "$PKG_CONFIG" = "no" ; then
13214 echo "*** The pkg-config script could not be found. Make sure it is"
13215 echo "*** in your path, or set the PKG_CONFIG environment variable"
13216 echo "*** to the full path to pkg-config."
13217 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13218 else
13219 PKG_CONFIG_MIN_VERSION=0.9.0
13220 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13221 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
65d8ef1e 13222echo "configure:13223: checking for pangoft2" >&5
f09359cf
VS
13223
13224 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13225 echo "$ac_t""yes" 1>&6
f09359cf
VS
13226 succeeded=yes
13227
a0b9e27f 13228 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
65d8ef1e 13229echo "configure:13230: checking PANGOFT2_CFLAGS" >&5
f09359cf 13230 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13231 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13232
a0b9e27f 13233 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
65d8ef1e 13234echo "configure:13235: checking PANGOFT2_LIBS" >&5
f09359cf 13235 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13236 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13237 else
13238 PANGOFT2_CFLAGS=""
13239 PANGOFT2_LIBS=""
a0b9e27f 13240 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13241 ## do set a variable so people can do so.
13242 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13243
f09359cf
VS
13244 fi
13245
a0b9e27f
MB
13246
13247
f09359cf
VS
13248 else
13249 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13250 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13251 fi
13252 fi
13253
13254 if test $succeeded = yes; then
a0b9e27f 13255
b13cd66e
VZ
13256 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13257 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13258
f09359cf 13259 else
a0b9e27f
MB
13260
13261 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13262 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13263
13264
f09359cf
VS
13265 fi
13266
b13cd66e 13267 fi
2b5f62a0
VZ
13268 else
13269 if test "$wxUSE_UNICODE" = "yes"; then
13270 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13271 wxUSE_UNICODE=no
13272 fi
13273 fi
13274
13275 if test "$USE_DARWIN" != 1; then
13276 for ac_func in poll
13277do
13278echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 13279echo "configure:13280: checking for $ac_func" >&5
2b5f62a0
VZ
13280if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13282else
13283 cat > conftest.$ac_ext <<EOF
65d8ef1e 13284#line 13285 "configure"
2b5f62a0
VZ
13285#include "confdefs.h"
13286/* System header to define __stub macros and hopefully few prototypes,
13287 which can conflict with char $ac_func(); below. */
13288#include <assert.h>
13289/* Override any gcc2 internal prototype to avoid an error. */
13290/* We use char because int might match the return type of a gcc2
13291 builtin and then its argument prototype would still apply. */
13292char $ac_func();
13293
13294int main() {
13295
13296/* The GNU C library defines this for functions which it implements
13297 to always fail with ENOSYS. Some functions are actually named
13298 something starting with __ and the normal name is an alias. */
13299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13300choke me
13301#else
13302$ac_func();
13303#endif
13304
13305; return 0; }
13306EOF
65d8ef1e 13307if { (eval echo configure:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13308 rm -rf conftest*
13309 eval "ac_cv_func_$ac_func=yes"
13310else
13311 echo "configure: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 rm -rf conftest*
13314 eval "ac_cv_func_$ac_func=no"
13315fi
13316rm -f conftest*
13317fi
13318
13319if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13320 echo "$ac_t""yes" 1>&6
13321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13322 cat >> confdefs.h <<EOF
13323#define $ac_tr_func 1
13324EOF
13325
13326else
13327 echo "$ac_t""no" 1>&6
13328fi
13329done
13330
f09359cf
VS
13331 fi
13332
21d1c967
GD
13333 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13334 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13335
13336 AFMINSTALL=afminstall
13337 TOOLKIT=GTK
13338 GUIDIST=GTK_DIST
13339
a0b9e27f 13340 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
65d8ef1e 13341echo "configure:13342: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13342ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13343if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13344 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13345else
a0b9e27f 13346 ac_save_LIBS="$LIBS"
21d1c967 13347LIBS="-lgdk $LIBS"
a0b9e27f 13348cat > conftest.$ac_ext <<EOF
65d8ef1e 13349#line 13350 "configure"
90dd450c 13350#include "confdefs.h"
5c6fa7d2 13351/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13352/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13353 builtin and then its argument prototype would still apply. */
13354char gdk_im_open();
13355
13356int main() {
13357gdk_im_open()
13358; return 0; }
13359EOF
65d8ef1e 13360if { (eval echo configure:13361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13361 rm -rf conftest*
13362 eval "ac_cv_lib_$ac_lib_var=yes"
13363else
13364 echo "configure: failed program was:" >&5
13365 cat conftest.$ac_ext >&5
13366 rm -rf conftest*
13367 eval "ac_cv_lib_$ac_lib_var=no"
13368fi
13369rm -f conftest*
13370LIBS="$ac_save_LIBS"
13371
13372fi
13373if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13374 echo "$ac_t""yes" 1>&6
13375 cat >> confdefs.h <<\EOF
21d1c967 13376#define HAVE_XIM 1
a0b9e27f 13377EOF
21d1c967 13378
a0b9e27f
MB
13379else
13380 echo "$ac_t""no" 1>&6
90dd450c 13381fi
1e6feb95 13382
21d1c967 13383 fi
1e6feb95 13384
21d1c967 13385 if test "$wxUSE_MGL" = 1; then
a0b9e27f 13386 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
65d8ef1e 13387echo "configure:13388: checking for SciTech MGL library" >&5
21d1c967 13388 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13389 echo "$ac_t""not found" 1>&6
13390 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13391 else
a0b9e27f 13392 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13393 fi
13394
13395 case "${host}" in
13396 *-*-linux* )
2b5f62a0 13397 mgl_os="linux/gcc/glibc*"
21d1c967
GD
13398 ;;
13399 *-pc-msdosdjgpp )
13400 mgl_os=dos32/dj2
13401 ;;
13402 *)
a0b9e27f 13403 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13404 esac
1e6feb95 13405
21d1c967 13406 mgl_lib_type=""
3fcdd07b 13407
21d1c967
GD
13408 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13409 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
13410 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
13411 mgl_lib_type=debug
13412 fi
13413 fi
13414 if test "x$mgl_lib_type" = x ; then
13415 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
13416 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
13417 mgl_lib_type=release
13418 else
a0b9e27f 13419 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
21d1c967 13420 fi
90dd450c 13421 fi
2224580a 13422
1d1b75ac
VZ
13423 wxUSE_UNIVERSAL="yes"
13424
21d1c967
GD
13425 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13426 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13427
90dd450c 13428 AFMINSTALL=afminstall
21d1c967
GD
13429 TOOLKIT=MGL
13430 GUIDIST=MGL_DIST
13431 fi
dad6c0ea 13432
21d1c967 13433 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13434 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
65d8ef1e 13435echo "configure:13436: checking for MicroWindows" >&5
21d1c967 13436 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13437 echo "$ac_t""not found" 1>&6
13438 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13439 else
a0b9e27f 13440 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13441 fi
f6bcfd97 13442
21d1c967 13443 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13444 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13445 else
a0b9e27f 13446 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13447 fi
0b2effe9 13448
21d1c967
GD
13449 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13450 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13451
1d1b75ac
VZ
13452 wxUSE_UNIVERSAL="yes"
13453
21d1c967
GD
13454 AFMINSTALL=afminstall
13455 TOOLKIT=MICROWIN
13456 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13457
13458 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13459 fi
f6bcfd97 13460
21d1c967 13461 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13462 # If we find X, set shell vars x_includes and x_libraries to the
13463# paths, otherwise set no_x=yes.
13464# Uses ac_ vars as temps to allow command line to override cache and checks.
13465# --without-x overrides everything else, but does not touch the cache.
13466echo $ac_n "checking for X""... $ac_c" 1>&6
65d8ef1e 13467echo "configure:13468: checking for X" >&5
d8356fa3 13468
21d1c967
GD
13469# Check whether --with-x or --without-x was given.
13470if test "${with_x+set}" = set; then
13471 withval="$with_x"
a0b9e27f
MB
13472 :
13473fi
2224580a 13474
21d1c967
GD
13475# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13476if test "x$with_x" = xno; then
13477 # The user explicitly disabled X.
13478 have_x=disabled
13479else
13480 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13481 # Both variables are already set.
13482 have_x=yes
13483 else
a0b9e27f
MB
13484if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13486else
13487 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13488ac_x_includes=NO ac_x_libraries=NO
13489rm -fr conftestdir
13490if mkdir conftestdir; then
13491 cd conftestdir
21d1c967 13492 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13493 cat > Imakefile <<'EOF'
21d1c967
GD
13494acfindx:
13495 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13496EOF
21d1c967
GD
13497 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13498 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13499 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13500 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13501 for ac_extension in a so sl; do
13502 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13503 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13504 ac_im_usrlibdir=$ac_im_libdir; break
13505 fi
13506 done
13507 # Screen out bogus values from the imake configuration. They are
13508 # bogus both because they are the default anyway, and because
13509 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13510 case "$ac_im_incroot" in
21d1c967 13511 /usr/include) ;;
a0b9e27f 13512 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13513 esac
a0b9e27f 13514 case "$ac_im_usrlibdir" in
21d1c967 13515 /usr/lib | /lib) ;;
a0b9e27f 13516 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13517 esac
13518 fi
13519 cd ..
a0b9e27f 13520 rm -fr conftestdir
21d1c967 13521fi
10f2d63a 13522
a0b9e27f
MB
13523if test "$ac_x_includes" = NO; then
13524 # Guess where to find include files, by looking for this one X11 .h file.
13525 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13526
21d1c967 13527 # First, try using that file with no special directory specified.
a0b9e27f 13528cat > conftest.$ac_ext <<EOF
65d8ef1e 13529#line 13530 "configure"
21d1c967 13530#include "confdefs.h"
a0b9e27f
MB
13531#include <$x_direct_test_include>
13532EOF
13533ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 13534{ (eval echo configure:13535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13535ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13536if test -z "$ac_err"; then
13537 rm -rf conftest*
21d1c967
GD
13538 # We can compile using X headers with no special include directory.
13539ac_x_includes=
90dd450c 13540else
a0b9e27f
MB
13541 echo "$ac_err" >&5
13542 echo "configure: failed program was:" >&5
90dd450c 13543 cat conftest.$ac_ext >&5
a0b9e27f
MB
13544 rm -rf conftest*
13545 # Look for the header file in a standard set of common directories.
13546# Check X11 before X11Rn because it is often a symlink to the current release.
13547 for ac_dir in \
13548 /usr/X11/include \
13549 /usr/X11R6/include \
13550 /usr/X11R5/include \
13551 /usr/X11R4/include \
13552 \
13553 /usr/include/X11 \
13554 /usr/include/X11R6 \
13555 /usr/include/X11R5 \
13556 /usr/include/X11R4 \
13557 \
13558 /usr/local/X11/include \
13559 /usr/local/X11R6/include \
13560 /usr/local/X11R5/include \
13561 /usr/local/X11R4/include \
13562 \
13563 /usr/local/include/X11 \
13564 /usr/local/include/X11R6 \
13565 /usr/local/include/X11R5 \
13566 /usr/local/include/X11R4 \
13567 \
13568 /usr/X386/include \
13569 /usr/x386/include \
13570 /usr/XFree86/include/X11 \
13571 \
13572 /usr/include \
13573 /usr/local/include \
13574 /usr/unsupported/include \
13575 /usr/athena/include \
13576 /usr/local/x11r5/include \
13577 /usr/lpp/Xamples/include \
13578 \
13579 /usr/openwin/include \
13580 /usr/openwin/share/include \
13581 ; \
13582 do
13583 if test -r "$ac_dir/$x_direct_test_include"; then
13584 ac_x_includes=$ac_dir
13585 break
13586 fi
13587 done
3a922bb4 13588fi
a0b9e27f
MB
13589rm -f conftest*
13590fi # $ac_x_includes = NO
10f2d63a 13591
a0b9e27f 13592if test "$ac_x_libraries" = NO; then
21d1c967 13593 # Check for the libraries.
a0b9e27f
MB
13594
13595 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13596 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13597
21d1c967
GD
13598 # See if we find them without any special options.
13599 # Don't add to $LIBS permanently.
a0b9e27f
MB
13600 ac_save_LIBS="$LIBS"
13601 LIBS="-l$x_direct_test_library $LIBS"
13602cat > conftest.$ac_ext <<EOF
65d8ef1e 13603#line 13604 "configure"
3a922bb4 13604#include "confdefs.h"
a0b9e27f
MB
13605
13606int main() {
13607${x_direct_test_function}()
13608; return 0; }
13609EOF
65d8ef1e 13610if { (eval echo configure:13611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13611 rm -rf conftest*
13612 LIBS="$ac_save_LIBS"
21d1c967
GD
13613# We can link X programs with no special library path.
13614ac_x_libraries=
3a922bb4 13615else
a0b9e27f
MB
13616 echo "configure: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13618 rm -rf conftest*
13619 LIBS="$ac_save_LIBS"
13620# First see if replacing the include by lib works.
13621# Check X11 before X11Rn because it is often a symlink to the current release.
13622for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13623 /usr/X11/lib \
13624 /usr/X11R6/lib \
13625 /usr/X11R5/lib \
13626 /usr/X11R4/lib \
13627 \
13628 /usr/lib/X11 \
13629 /usr/lib/X11R6 \
13630 /usr/lib/X11R5 \
13631 /usr/lib/X11R4 \
13632 \
13633 /usr/local/X11/lib \
13634 /usr/local/X11R6/lib \
13635 /usr/local/X11R5/lib \
13636 /usr/local/X11R4/lib \
13637 \
13638 /usr/local/lib/X11 \
13639 /usr/local/lib/X11R6 \
13640 /usr/local/lib/X11R5 \
13641 /usr/local/lib/X11R4 \
13642 \
13643 /usr/X386/lib \
13644 /usr/x386/lib \
13645 /usr/XFree86/lib/X11 \
13646 \
13647 /usr/lib \
13648 /usr/local/lib \
13649 /usr/unsupported/lib \
13650 /usr/athena/lib \
13651 /usr/local/x11r5/lib \
13652 /usr/lpp/Xamples/lib \
13653 /lib/usr/lib/X11 \
13654 \
13655 /usr/openwin/lib \
13656 /usr/openwin/share/lib \
13657 ; \
21d1c967
GD
13658do
13659 for ac_extension in a so sl; do
a0b9e27f 13660 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13661 ac_x_libraries=$ac_dir
13662 break 2
13663 fi
13664 done
13665done
3a922bb4 13666fi
a0b9e27f
MB
13667rm -f conftest*
13668fi # $ac_x_libraries = NO
90dd450c 13669
a0b9e27f 13670if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13671 # Didn't find X anywhere. Cache the known absence of X.
13672 ac_cv_have_x="have_x=no"
13673else
13674 # Record where we found X for the cache.
13675 ac_cv_have_x="have_x=yes \
13676 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13677fi
21d1c967
GD
13678fi
13679 fi
13680 eval "$ac_cv_have_x"
13681fi # $with_x != no
90dd450c 13682
21d1c967 13683if test "$have_x" != yes; then
a0b9e27f 13684 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13685 no_x=yes
13686else
13687 # If each of the values was on the command line, it overrides each guess.
13688 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13689 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13690 # Update the cache value to reflect the command line values.
13691 ac_cv_have_x="have_x=yes \
13692 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13693 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13694fi
90dd450c 13695
21d1c967 13696if test "$no_x" = yes; then
90dd450c 13697 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13698 cat >> confdefs.h <<\EOF
90dd450c 13699#define X_DISPLAY_MISSING 1
a0b9e27f 13700EOF
90dd450c
VZ
13701
13702 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13703else
13704 if test -n "$x_includes"; then
13705 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13706 fi
3a922bb4 13707
90dd450c
VZ
13708 # It would also be nice to do this for all -L options, not just this one.
13709 if test -n "$x_libraries"; then
13710 X_LIBS="$X_LIBS -L$x_libraries"
13711 # For Solaris; some versions of Sun CC require a space after -R and
13712 # others require no space. Words are not sufficient . . . .
a0b9e27f 13713 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13714 "SunOS 5"*)
a0b9e27f 13715 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
65d8ef1e 13716echo "configure:13717: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13717 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13718 cat > conftest.$ac_ext <<EOF
65d8ef1e 13719#line 13720 "configure"
90dd450c
VZ
13720#include "confdefs.h"
13721
a0b9e27f 13722int main() {
90dd450c 13723
a0b9e27f
MB
13724; return 0; }
13725EOF
65d8ef1e 13726if { (eval echo configure:13727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13727 rm -rf conftest*
90dd450c 13728 ac_R_nospace=yes
3a922bb4 13729else
a0b9e27f
MB
13730 echo "configure: failed program was:" >&5
13731 cat conftest.$ac_ext >&5
13732 rm -rf conftest*
13733 ac_R_nospace=no
3a922bb4 13734fi
a0b9e27f 13735rm -f conftest*
90dd450c 13736 if test $ac_R_nospace = yes; then
a0b9e27f 13737 echo "$ac_t""no" 1>&6
90dd450c
VZ
13738 X_LIBS="$X_LIBS -R$x_libraries"
13739 else
13740 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13741 cat > conftest.$ac_ext <<EOF
65d8ef1e 13742#line 13743 "configure"
90dd450c 13743#include "confdefs.h"
3a922bb4 13744
a0b9e27f 13745int main() {
6f754473 13746
a0b9e27f
MB
13747; return 0; }
13748EOF
65d8ef1e 13749if { (eval echo configure:13750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13750 rm -rf conftest*
90dd450c
VZ
13751 ac_R_space=yes
13752else
a0b9e27f
MB
13753 echo "configure: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 rm -rf conftest*
13756 ac_R_space=no
90dd450c 13757fi
a0b9e27f 13758rm -f conftest*
90dd450c 13759 if test $ac_R_space = yes; then
a0b9e27f 13760 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13761 X_LIBS="$X_LIBS -R $x_libraries"
13762 else
a0b9e27f 13763 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13764 fi
13765 fi
a0b9e27f 13766 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13767 esac
13768 fi
13769
13770 # Check for system-dependent libraries X programs must link with.
13771 # Do this before checking for the system-independent R6 libraries
13772 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13773
90dd450c
VZ
13774 if test "$ISC" = yes; then
13775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13776 else
a0b9e27f
MB
13777 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13778 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13779 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13780 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
65d8ef1e 13781echo "configure:13782: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13782ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13784 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13785else
a0b9e27f 13786 ac_save_LIBS="$LIBS"
247f5006 13787LIBS="-ldnet $LIBS"
a0b9e27f 13788cat > conftest.$ac_ext <<EOF
65d8ef1e 13789#line 13790 "configure"
247f5006 13790#include "confdefs.h"
247f5006 13791/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13792/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13793 builtin and then its argument prototype would still apply. */
13794char dnet_ntoa();
13795
13796int main() {
13797dnet_ntoa()
13798; return 0; }
13799EOF
65d8ef1e 13800if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13801 rm -rf conftest*
13802 eval "ac_cv_lib_$ac_lib_var=yes"
13803else
13804 echo "configure: failed program was:" >&5
13805 cat conftest.$ac_ext >&5
13806 rm -rf conftest*
13807 eval "ac_cv_lib_$ac_lib_var=no"
13808fi
13809rm -f conftest*
13810LIBS="$ac_save_LIBS"
13811
13812fi
13813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13814 echo "$ac_t""yes" 1>&6
90dd450c 13815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13816else
13817 echo "$ac_t""no" 1>&6
3a922bb4
RL
13818fi
13819
90dd450c 13820 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13821 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
65d8ef1e 13822echo "configure:13823: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13823ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13825 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13826else
a0b9e27f 13827 ac_save_LIBS="$LIBS"
90dd450c 13828LIBS="-ldnet_stub $LIBS"
a0b9e27f 13829cat > conftest.$ac_ext <<EOF
65d8ef1e 13830#line 13831 "configure"
90dd450c
VZ
13831#include "confdefs.h"
13832/* Override any gcc2 internal prototype to avoid an error. */
13833/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13834 builtin and then its argument prototype would still apply. */
13835char dnet_ntoa();
13836
13837int main() {
13838dnet_ntoa()
13839; return 0; }
13840EOF
65d8ef1e 13841if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13842 rm -rf conftest*
13843 eval "ac_cv_lib_$ac_lib_var=yes"
13844else
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 rm -rf conftest*
13848 eval "ac_cv_lib_$ac_lib_var=no"
13849fi
13850rm -f conftest*
13851LIBS="$ac_save_LIBS"
13852
13853fi
13854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13855 echo "$ac_t""yes" 1>&6
90dd450c 13856 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13857else
13858 echo "$ac_t""no" 1>&6
3a922bb4
RL
13859fi
13860
90dd450c 13861 fi
978f1259 13862
90dd450c
VZ
13863 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13864 # to get the SysV transport functions.
a0b9e27f 13865 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13866 # needs -lnsl.
13867 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13868 # on Irix 5.2, according to dickey@clark.net.
13869 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
65d8ef1e 13870echo "configure:13871: checking for gethostbyname" >&5
a0b9e27f
MB
13871if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13872 echo $ac_n "(cached) $ac_c" 1>&6
13873else
13874 cat > conftest.$ac_ext <<EOF
65d8ef1e 13875#line 13876 "configure"
90dd450c
VZ
13876#include "confdefs.h"
13877/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13878 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13879#include <assert.h>
13880/* Override any gcc2 internal prototype to avoid an error. */
13881/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13882 builtin and then its argument prototype would still apply. */
13883char gethostbyname();
13884
13885int main() {
13886
90dd450c
VZ
13887/* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13891choke me
13892#else
a0b9e27f 13893gethostbyname();
90dd450c 13894#endif
978f1259 13895
a0b9e27f
MB
13896; return 0; }
13897EOF
65d8ef1e 13898if { (eval echo configure:13899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13899 rm -rf conftest*
13900 eval "ac_cv_func_gethostbyname=yes"
13901else
13902 echo "configure: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 rm -rf conftest*
13905 eval "ac_cv_func_gethostbyname=no"
13906fi
13907rm -f conftest*
13908fi
13909
13910if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13911 echo "$ac_t""yes" 1>&6
13912 :
13913else
13914 echo "$ac_t""no" 1>&6
13915fi
698dcdb6 13916
90dd450c 13917 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13918 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
65d8ef1e 13919echo "configure:13920: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13920ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13922 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13923else
a0b9e27f 13924 ac_save_LIBS="$LIBS"
90dd450c 13925LIBS="-lnsl $LIBS"
a0b9e27f 13926cat > conftest.$ac_ext <<EOF
65d8ef1e 13927#line 13928 "configure"
90dd450c
VZ
13928#include "confdefs.h"
13929/* Override any gcc2 internal prototype to avoid an error. */
13930/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13931 builtin and then its argument prototype would still apply. */
13932char gethostbyname();
5c6fa7d2 13933
a0b9e27f
MB
13934int main() {
13935gethostbyname()
13936; return 0; }
13937EOF
65d8ef1e 13938if { (eval echo configure:13939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13939 rm -rf conftest*
13940 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13941else
a0b9e27f
MB
13942 echo "configure: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 rm -rf conftest*
13945 eval "ac_cv_lib_$ac_lib_var=no"
13946fi
13947rm -f conftest*
13948LIBS="$ac_save_LIBS"
247f5006 13949
a0b9e27f
MB
13950fi
13951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13952 echo "$ac_t""yes" 1>&6
13953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13954else
13955 echo "$ac_t""no" 1>&6
90dd450c 13956fi
b12915c1 13957
90dd450c
VZ
13958 fi
13959
13960 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13961 # socket/setsockopt and other routines are undefined under SCO ODT
13962 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13963 # on later versions), says simon@lia.di.epfl.ch: it contains
13964 # gethostby* variants that don't use the nameserver (or something).
13965 # -lsocket must be given before -lnsl if both are needed.
13966 # We assume that if connect needs -lnsl, so does gethostbyname.
13967 echo $ac_n "checking for connect""... $ac_c" 1>&6
65d8ef1e 13968echo "configure:13969: checking for connect" >&5
a0b9e27f
MB
13969if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13971else
13972 cat > conftest.$ac_ext <<EOF
65d8ef1e 13973#line 13974 "configure"
55e80573 13974#include "confdefs.h"
90dd450c 13975/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13976 which can conflict with char connect(); below. */
90dd450c
VZ
13977#include <assert.h>
13978/* Override any gcc2 internal prototype to avoid an error. */
13979/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13980 builtin and then its argument prototype would still apply. */
13981char connect();
13982
13983int main() {
13984
90dd450c
VZ
13985/* The GNU C library defines this for functions which it implements
13986 to always fail with ENOSYS. Some functions are actually named
13987 something starting with __ and the normal name is an alias. */
13988#if defined (__stub_connect) || defined (__stub___connect)
13989choke me
13990#else
a0b9e27f 13991connect();
90dd450c
VZ
13992#endif
13993
a0b9e27f
MB
13994; return 0; }
13995EOF
65d8ef1e 13996if { (eval echo configure:13997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13997 rm -rf conftest*
13998 eval "ac_cv_func_connect=yes"
13999else
14000 echo "configure: failed program was:" >&5
14001 cat conftest.$ac_ext >&5
14002 rm -rf conftest*
14003 eval "ac_cv_func_connect=no"
14004fi
14005rm -f conftest*
14006fi
14007
14008if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14009 echo "$ac_t""yes" 1>&6
14010 :
14011else
14012 echo "$ac_t""no" 1>&6
14013fi
55e80573 14014
90dd450c 14015 if test $ac_cv_func_connect = no; then
a0b9e27f 14016 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
65d8ef1e 14017echo "configure:14018: checking for connect in -lsocket" >&5
a0b9e27f
MB
14018ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14020 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14021else
a0b9e27f 14022 ac_save_LIBS="$LIBS"
90dd450c 14023LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14024cat > conftest.$ac_ext <<EOF
65d8ef1e 14025#line 14026 "configure"
90dd450c
VZ
14026#include "confdefs.h"
14027/* Override any gcc2 internal prototype to avoid an error. */
14028/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14029 builtin and then its argument prototype would still apply. */
14030char connect();
14031
14032int main() {
14033connect()
14034; return 0; }
14035EOF
65d8ef1e 14036if { (eval echo configure:14037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14037 rm -rf conftest*
14038 eval "ac_cv_lib_$ac_lib_var=yes"
14039else
14040 echo "configure: failed program was:" >&5
14041 cat conftest.$ac_ext >&5
14042 rm -rf conftest*
14043 eval "ac_cv_lib_$ac_lib_var=no"
14044fi
14045rm -f conftest*
14046LIBS="$ac_save_LIBS"
14047
14048fi
14049if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14050 echo "$ac_t""yes" 1>&6
90dd450c 14051 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14052else
14053 echo "$ac_t""no" 1>&6
90dd450c 14054fi
77e13408 14055
90dd450c 14056 fi
25d0687a 14057
a0b9e27f
MB
14058 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14059 echo $ac_n "checking for remove""... $ac_c" 1>&6
65d8ef1e 14060echo "configure:14061: checking for remove" >&5
a0b9e27f
MB
14061if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14063else
a0b9e27f 14064 cat > conftest.$ac_ext <<EOF
65d8ef1e 14065#line 14066 "configure"
90dd450c
VZ
14066#include "confdefs.h"
14067/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14068 which can conflict with char remove(); below. */
90dd450c
VZ
14069#include <assert.h>
14070/* Override any gcc2 internal prototype to avoid an error. */
14071/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14072 builtin and then its argument prototype would still apply. */
14073char remove();
14074
14075int main() {
14076
90dd450c
VZ
14077/* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080#if defined (__stub_remove) || defined (__stub___remove)
14081choke me
14082#else
a0b9e27f 14083remove();
90dd450c 14084#endif
55e80573 14085
a0b9e27f
MB
14086; return 0; }
14087EOF
65d8ef1e 14088if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14089 rm -rf conftest*
14090 eval "ac_cv_func_remove=yes"
14091else
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -rf conftest*
14095 eval "ac_cv_func_remove=no"
14096fi
14097rm -f conftest*
14098fi
14099
14100if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14101 echo "$ac_t""yes" 1>&6
14102 :
14103else
14104 echo "$ac_t""no" 1>&6
14105fi
10f2d63a 14106
90dd450c 14107 if test $ac_cv_func_remove = no; then
a0b9e27f 14108 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
65d8ef1e 14109echo "configure:14110: checking for remove in -lposix" >&5
a0b9e27f
MB
14110ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14113else
a0b9e27f 14114 ac_save_LIBS="$LIBS"
90dd450c 14115LIBS="-lposix $LIBS"
a0b9e27f 14116cat > conftest.$ac_ext <<EOF
65d8ef1e 14117#line 14118 "configure"
90dd450c
VZ
14118#include "confdefs.h"
14119/* Override any gcc2 internal prototype to avoid an error. */
14120/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14121 builtin and then its argument prototype would still apply. */
14122char remove();
14123
14124int main() {
14125remove()
14126; return 0; }
14127EOF
65d8ef1e 14128if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14129 rm -rf conftest*
14130 eval "ac_cv_lib_$ac_lib_var=yes"
14131else
14132 echo "configure: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 rm -rf conftest*
14135 eval "ac_cv_lib_$ac_lib_var=no"
14136fi
14137rm -f conftest*
14138LIBS="$ac_save_LIBS"
14139
14140fi
14141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14142 echo "$ac_t""yes" 1>&6
90dd450c 14143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14144else
14145 echo "$ac_t""no" 1>&6
90dd450c 14146fi
f6bcfd97 14147
6fa882bd
RR
14148 fi
14149
90dd450c 14150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14151 echo $ac_n "checking for shmat""... $ac_c" 1>&6
65d8ef1e 14152echo "configure:14153: checking for shmat" >&5
a0b9e27f
MB
14153if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14154 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14155else
a0b9e27f 14156 cat > conftest.$ac_ext <<EOF
65d8ef1e 14157#line 14158 "configure"
90dd450c
VZ
14158#include "confdefs.h"
14159/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14160 which can conflict with char shmat(); below. */
90dd450c
VZ
14161#include <assert.h>
14162/* Override any gcc2 internal prototype to avoid an error. */
14163/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14164 builtin and then its argument prototype would still apply. */
14165char shmat();
14166
14167int main() {
14168
90dd450c
VZ
14169/* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172#if defined (__stub_shmat) || defined (__stub___shmat)
14173choke me
14174#else
a0b9e27f 14175shmat();
90dd450c 14176#endif
10f2d63a 14177
a0b9e27f
MB
14178; return 0; }
14179EOF
65d8ef1e 14180if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14181 rm -rf conftest*
14182 eval "ac_cv_func_shmat=yes"
14183else
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 eval "ac_cv_func_shmat=no"
14188fi
14189rm -f conftest*
14190fi
14191
14192if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14193 echo "$ac_t""yes" 1>&6
14194 :
14195else
14196 echo "$ac_t""no" 1>&6
14197fi
d08b457b 14198
90dd450c 14199 if test $ac_cv_func_shmat = no; then
a0b9e27f 14200 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
65d8ef1e 14201echo "configure:14202: checking for shmat in -lipc" >&5
a0b9e27f
MB
14202ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14205else
a0b9e27f 14206 ac_save_LIBS="$LIBS"
90dd450c 14207LIBS="-lipc $LIBS"
a0b9e27f 14208cat > conftest.$ac_ext <<EOF
65d8ef1e 14209#line 14210 "configure"
90dd450c 14210#include "confdefs.h"
8284b0c5 14211/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14212/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14213 builtin and then its argument prototype would still apply. */
14214char shmat();
14215
14216int main() {
14217shmat()
14218; return 0; }
14219EOF
65d8ef1e 14220if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14221 rm -rf conftest*
14222 eval "ac_cv_lib_$ac_lib_var=yes"
14223else
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=no"
14228fi
14229rm -f conftest*
14230LIBS="$ac_save_LIBS"
14231
14232fi
14233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14234 echo "$ac_t""yes" 1>&6
90dd450c 14235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14236else
14237 echo "$ac_t""no" 1>&6
d08b457b
GD
14238fi
14239
d558c907 14240 fi
90dd450c 14241 fi
3a922bb4 14242
90dd450c 14243 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14244 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14245 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14246 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14247 # check for ICE first), but we must link in the order -lSM -lICE or
14248 # we get undefined symbols. So assume we have SM if we have ICE.
14249 # These have to be linked with before -lX11, unlike the other
14250 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14251 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14252 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
65d8ef1e 14253echo "configure:14254: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14254ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14257else
14258 ac_save_LIBS="$LIBS"
f09359cf 14259LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14260cat > conftest.$ac_ext <<EOF
65d8ef1e 14261#line 14262 "configure"
9cfadba2 14262#include "confdefs.h"
90dd450c
VZ
14263/* Override any gcc2 internal prototype to avoid an error. */
14264/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14265 builtin and then its argument prototype would still apply. */
14266char IceConnectionNumber();
14267
14268int main() {
14269IceConnectionNumber()
14270; return 0; }
14271EOF
65d8ef1e 14272if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14273 rm -rf conftest*
14274 eval "ac_cv_lib_$ac_lib_var=yes"
14275else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_lib_$ac_lib_var=no"
14280fi
14281rm -f conftest*
14282LIBS="$ac_save_LIBS"
14283
14284fi
14285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14286 echo "$ac_t""yes" 1>&6
90dd450c 14287 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14288else
14289 echo "$ac_t""no" 1>&6
9cfadba2 14290fi
10f2d63a 14291
a0b9e27f 14292 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14293
14294fi
14295
8284b0c5 14296
90dd450c 14297 if test "$no_x" = "yes"; then
a0b9e27f 14298 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14299 fi
14300
14301 GUI_TK_LIBRARY="$X_LIBS"
14302 TOOLKIT_INCLUDE="$X_CFLAGS"
14303 AFMINSTALL=afminstall
14304 COMPILED_X_PROGRAM=0
14305
21d1c967 14306 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14307 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
65d8ef1e 14308echo "configure:14309: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14309 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14310 echo "$ac_t""not found" 1>&6
14311 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14312 else
a0b9e27f
MB
14313 echo "$ac_t""$MICROWIN" 1>&6
14314 cat >> confdefs.h <<\EOF
21d1c967 14315#define wxUSE_NANOX 1
a0b9e27f 14316EOF
21d1c967 14317
90dd450c
VZ
14318 fi
14319 fi
14320
14321 xpm_link=
a0b9e27f 14322 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
65d8ef1e 14323echo "configure:14324: checking for Xpm library" >&5
a0b9e27f 14324
90dd450c 14325ac_find_libraries=
2b5f62a0 14326for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14327 do
14328 for ac_extension in a so sl dylib; do
14329 if test -f "$ac_dir/libXpm.$ac_extension"; then
14330 ac_find_libraries=$ac_dir
14331 break 2
14332 fi
14333 done
14334 done
14335
14336 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14337
90dd450c
VZ
14338 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14339 result=$?
14340 if test $result = 0; then
14341 ac_path_to_link=""
14342 else
14343 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14344 fi
90dd450c 14345
21d1c967
GD
14346 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14347 xpm_link=" -lXpm"
a0b9e27f 14348 cat >> confdefs.h <<\EOF
21d1c967 14349#define wxHAVE_LIB_XPM 1
a0b9e27f 14350EOF
90dd450c 14351
a0b9e27f 14352 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14353 else
a0b9e27f 14354 cat > conftest.$ac_ext <<EOF
65d8ef1e 14355#line 14356 "configure"
21d1c967 14356#include "confdefs.h"
90dd450c 14357
21d1c967 14358 #include <X11/xpm.h>
a0b9e27f
MB
14359
14360int main() {
6f72b082 14361
21d1c967
GD
14362 int version;
14363 version = XpmLibraryVersion();
a0b9e27f
MB
14364
14365; return 0; }
14366EOF
65d8ef1e 14367if { (eval echo configure:14368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14368 rm -rf conftest*
14369
21d1c967 14370 xpm_link=" -lXpm"
a0b9e27f 14371 cat >> confdefs.h <<\EOF
21d1c967 14372#define wxHAVE_LIB_XPM 1
a0b9e27f 14373EOF
90dd450c 14374
a0b9e27f 14375 echo "$ac_t""found in default search path" 1>&6
21d1c967 14376 COMPILED_X_PROGRAM=0
a0b9e27f 14377
21d1c967 14378else
a0b9e27f
MB
14379 echo "configure: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14381 rm -rf conftest*
14382
14383 echo "$ac_t""no" 1>&6
14384 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14385
14386
6f72b082 14387fi
a0b9e27f 14388rm -f conftest*
21d1c967 14389 fi
90dd450c 14390
2b5f62a0
VZ
14391 if test "$wxUSE_UNICODE" = "yes"; then
14392
14393 succeeded=no
90dd450c 14394
2b5f62a0
VZ
14395 if test -z "$PKG_CONFIG"; then
14396 # Extract the first word of "pkg-config", so it can be a program name with args.
14397set dummy pkg-config; ac_word=$2
14398echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 14399echo "configure:14400: checking for $ac_word" >&5
2b5f62a0 14400if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14401 echo $ac_n "(cached) $ac_c" 1>&6
14402else
2b5f62a0
VZ
14403 case "$PKG_CONFIG" in
14404 /*)
14405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14406 ;;
14407 ?:/*)
14408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14409 ;;
14410 *)
14411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14412 ac_dummy="$PATH"
14413 for ac_dir in $ac_dummy; do
14414 test -z "$ac_dir" && ac_dir=.
14415 if test -f $ac_dir/$ac_word; then
14416 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14417 break
14418 fi
14419 done
14420 IFS="$ac_save_ifs"
14421 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14422 ;;
14423esac
14424fi
14425PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14426if test -n "$PKG_CONFIG"; then
14427 echo "$ac_t""$PKG_CONFIG" 1>&6
14428else
14429 echo "$ac_t""no" 1>&6
14430fi
14431
14432 fi
14433
14434 if test "$PKG_CONFIG" = "no" ; then
14435 echo "*** The pkg-config script could not be found. Make sure it is"
14436 echo "*** in your path, or set the PKG_CONFIG environment variable"
14437 echo "*** to the full path to pkg-config."
14438 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14439 else
14440 PKG_CONFIG_MIN_VERSION=0.9.0
14441 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14442 echo $ac_n "checking for pangox""... $ac_c" 1>&6
65d8ef1e 14443echo "configure:14444: checking for pangox" >&5
2b5f62a0
VZ
14444
14445 if $PKG_CONFIG --exists "pangox" ; then
14446 echo "$ac_t""yes" 1>&6
14447 succeeded=yes
14448
14449 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
65d8ef1e 14450echo "configure:14451: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14451 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14452 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14453
14454 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
65d8ef1e 14455echo "configure:14456: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14456 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14457 echo "$ac_t""$PANGOX_LIBS" 1>&6
14458 else
14459 PANGOX_CFLAGS=""
14460 PANGOX_LIBS=""
14461 ## If we have a custom action on failure, don't print errors, but
14462 ## do set a variable so people can do so.
14463 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14464
14465 fi
14466
14467
14468
14469 else
14470 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14471 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14472 fi
14473 fi
14474
14475 if test $succeeded = yes; then
14476
14477 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14478 LIBS="$LIBS $PANGOX_LIBS"
14479
14480 else
14481
14482 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14483
14484
14485 fi
14486
14487
14488 succeeded=no
14489
14490 if test -z "$PKG_CONFIG"; then
14491 # Extract the first word of "pkg-config", so it can be a program name with args.
14492set dummy pkg-config; ac_word=$2
14493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 14494echo "configure:14495: checking for $ac_word" >&5
2b5f62a0
VZ
14495if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14496 echo $ac_n "(cached) $ac_c" 1>&6
14497else
14498 case "$PKG_CONFIG" in
14499 /*)
14500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14501 ;;
14502 ?:/*)
14503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14504 ;;
14505 *)
14506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14507 ac_dummy="$PATH"
14508 for ac_dir in $ac_dummy; do
14509 test -z "$ac_dir" && ac_dir=.
14510 if test -f $ac_dir/$ac_word; then
14511 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14512 break
14513 fi
14514 done
14515 IFS="$ac_save_ifs"
14516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14517 ;;
14518esac
14519fi
14520PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14521if test -n "$PKG_CONFIG"; then
14522 echo "$ac_t""$PKG_CONFIG" 1>&6
14523else
14524 echo "$ac_t""no" 1>&6
14525fi
14526
14527 fi
14528
14529 if test "$PKG_CONFIG" = "no" ; then
14530 echo "*** The pkg-config script could not be found. Make sure it is"
14531 echo "*** in your path, or set the PKG_CONFIG environment variable"
14532 echo "*** to the full path to pkg-config."
14533 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14534 else
14535 PKG_CONFIG_MIN_VERSION=0.9.0
14536 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14537 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
65d8ef1e 14538echo "configure:14539: checking for pangoft2" >&5
2b5f62a0
VZ
14539
14540 if $PKG_CONFIG --exists "pangoft2" ; then
14541 echo "$ac_t""yes" 1>&6
14542 succeeded=yes
14543
14544 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
65d8ef1e 14545echo "configure:14546: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14546 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14547 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14548
14549 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
65d8ef1e 14550echo "configure:14551: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14551 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14552 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14553 else
14554 PANGOFT2_CFLAGS=""
14555 PANGOFT2_LIBS=""
14556 ## If we have a custom action on failure, don't print errors, but
14557 ## do set a variable so people can do so.
14558 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14559
14560 fi
14561
14562
14563
14564 else
14565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14567 fi
14568 fi
14569
14570 if test $succeeded = yes; then
14571
14572 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14573 LIBS="$LIBS $PANGOFT2_LIBS"
14574
14575 else
14576
14577 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14578 wxUSE_PRINTING_ARCHITECTURE="no"
14579
14580
14581 fi
14582
14583
14584 succeeded=no
14585
14586 if test -z "$PKG_CONFIG"; then
14587 # Extract the first word of "pkg-config", so it can be a program name with args.
14588set dummy pkg-config; ac_word=$2
14589echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 14590echo "configure:14591: checking for $ac_word" >&5
2b5f62a0
VZ
14591if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14592 echo $ac_n "(cached) $ac_c" 1>&6
14593else
14594 case "$PKG_CONFIG" in
14595 /*)
14596 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14597 ;;
14598 ?:/*)
14599 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14600 ;;
14601 *)
14602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14603 ac_dummy="$PATH"
14604 for ac_dir in $ac_dummy; do
14605 test -z "$ac_dir" && ac_dir=.
14606 if test -f $ac_dir/$ac_word; then
14607 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14608 break
14609 fi
14610 done
14611 IFS="$ac_save_ifs"
14612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14613 ;;
14614esac
14615fi
14616PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14617if test -n "$PKG_CONFIG"; then
14618 echo "$ac_t""$PKG_CONFIG" 1>&6
14619else
14620 echo "$ac_t""no" 1>&6
14621fi
14622
14623 fi
14624
14625 if test "$PKG_CONFIG" = "no" ; then
14626 echo "*** The pkg-config script could not be found. Make sure it is"
14627 echo "*** in your path, or set the PKG_CONFIG environment variable"
14628 echo "*** to the full path to pkg-config."
14629 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14630 else
14631 PKG_CONFIG_MIN_VERSION=0.9.0
14632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14633 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
65d8ef1e 14634echo "configure:14635: checking for pangoxft" >&5
2b5f62a0
VZ
14635
14636 if $PKG_CONFIG --exists "pangoxft" ; then
14637 echo "$ac_t""yes" 1>&6
14638 succeeded=yes
14639
14640 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
65d8ef1e 14641echo "configure:14642: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14642 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14643 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14644
14645 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
65d8ef1e 14646echo "configure:14647: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14647 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14648 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14649 else
14650 PANGOXFT_CFLAGS=""
14651 PANGOXFT_LIBS=""
14652 ## If we have a custom action on failure, don't print errors, but
14653 ## do set a variable so people can do so.
14654 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14655
14656 fi
14657
14658
14659
14660 else
14661 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14662 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14663 fi
14664 fi
14665
14666 if test $succeeded = yes; then
14667
14668 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14669 LIBS="$LIBS $PANGOXFT_LIBS"
14670
14671 else
14672
14673 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14674
14675
14676 fi
14677
14678 fi
14679
14680 wxUSE_UNIVERSAL="yes"
14681
14682 if test "$wxUSE_NANOX" = "yes"; then
14683 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14684 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14685 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14686 else
14687 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14688 fi
14689
14690 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14691 TOOLKIT=X11
14692 GUIDIST=X11_DIST
14693 fi
14694
21d1c967
GD
14695 if test "$wxUSE_MOTIF" = 1; then
14696 if test "$no_x" = yes; then
14697 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14698 cat >> confdefs.h <<\EOF
21d1c967 14699#define X_DISPLAY_MISSING 1
a0b9e27f 14700EOF
21d1c967
GD
14701
14702 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14703else
14704 if test -n "$x_includes"; then
14705 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14706 fi
14707
21d1c967
GD
14708 # It would also be nice to do this for all -L options, not just this one.
14709 if test -n "$x_libraries"; then
14710 X_LIBS="$X_LIBS -L$x_libraries"
14711 # For Solaris; some versions of Sun CC require a space after -R and
14712 # others require no space. Words are not sufficient . . . .
a0b9e27f 14713 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14714 "SunOS 5"*)
a0b9e27f 14715 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
65d8ef1e 14716echo "configure:14717: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14717 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14718 cat > conftest.$ac_ext <<EOF
65d8ef1e 14719#line 14720 "configure"
21d1c967
GD
14720#include "confdefs.h"
14721
a0b9e27f 14722int main() {
21d1c967 14723
a0b9e27f
MB
14724; return 0; }
14725EOF
65d8ef1e 14726if { (eval echo configure:14727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14727 rm -rf conftest*
21d1c967 14728 ac_R_nospace=yes
698dcdb6 14729else
a0b9e27f
MB
14730 echo "configure: failed program was:" >&5
14731 cat conftest.$ac_ext >&5
14732 rm -rf conftest*
14733 ac_R_nospace=no
10f2d63a 14734fi
a0b9e27f 14735rm -f conftest*
21d1c967 14736 if test $ac_R_nospace = yes; then
a0b9e27f 14737 echo "$ac_t""no" 1>&6
21d1c967
GD
14738 X_LIBS="$X_LIBS -R$x_libraries"
14739 else
14740 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14741 cat > conftest.$ac_ext <<EOF
65d8ef1e 14742#line 14743 "configure"
21d1c967 14743#include "confdefs.h"
10f2d63a 14744
a0b9e27f 14745int main() {
f0c87536 14746
a0b9e27f
MB
14747; return 0; }
14748EOF
65d8ef1e 14749if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14750 rm -rf conftest*
21d1c967
GD
14751 ac_R_space=yes
14752else
a0b9e27f
MB
14753 echo "configure: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14755 rm -rf conftest*
14756 ac_R_space=no
21d1c967 14757fi
a0b9e27f 14758rm -f conftest*
21d1c967 14759 if test $ac_R_space = yes; then
a0b9e27f 14760 echo "$ac_t""yes" 1>&6
21d1c967
GD
14761 X_LIBS="$X_LIBS -R $x_libraries"
14762 else
a0b9e27f 14763 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14764 fi
14765 fi
a0b9e27f 14766 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14767 esac
14768 fi
90dd450c 14769
21d1c967
GD
14770 # Check for system-dependent libraries X programs must link with.
14771 # Do this before checking for the system-independent R6 libraries
14772 # (-lICE), since we may need -lsocket or whatever for X linking.
14773
14774 if test "$ISC" = yes; then
14775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14776 else
a0b9e27f
MB
14777 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14778 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14779 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14780 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
65d8ef1e 14781echo "configure:14782: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14782ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14784 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14785else
a0b9e27f 14786 ac_save_LIBS="$LIBS"
247f5006 14787LIBS="-ldnet $LIBS"
a0b9e27f 14788cat > conftest.$ac_ext <<EOF
65d8ef1e 14789#line 14790 "configure"
247f5006 14790#include "confdefs.h"
247f5006 14791/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14792/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14793 builtin and then its argument prototype would still apply. */
14794char dnet_ntoa();
14795
14796int main() {
14797dnet_ntoa()
14798; return 0; }
14799EOF
65d8ef1e 14800if { (eval echo configure:14801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14801 rm -rf conftest*
14802 eval "ac_cv_lib_$ac_lib_var=yes"
14803else
14804 echo "configure: failed program was:" >&5
14805 cat conftest.$ac_ext >&5
14806 rm -rf conftest*
14807 eval "ac_cv_lib_$ac_lib_var=no"
14808fi
14809rm -f conftest*
14810LIBS="$ac_save_LIBS"
14811
14812fi
14813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14814 echo "$ac_t""yes" 1>&6
21d1c967 14815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14816else
14817 echo "$ac_t""no" 1>&6
0fb0dd83 14818fi
0fb0dd83 14819
21d1c967 14820 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14821 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
65d8ef1e 14822echo "configure:14823: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14823ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14825 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14826else
a0b9e27f 14827 ac_save_LIBS="$LIBS"
21d1c967 14828LIBS="-ldnet_stub $LIBS"
a0b9e27f 14829cat > conftest.$ac_ext <<EOF
65d8ef1e 14830#line 14831 "configure"
21d1c967
GD
14831#include "confdefs.h"
14832/* Override any gcc2 internal prototype to avoid an error. */
14833/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14834 builtin and then its argument prototype would still apply. */
14835char dnet_ntoa();
14836
14837int main() {
14838dnet_ntoa()
14839; return 0; }
14840EOF
65d8ef1e 14841if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14842 rm -rf conftest*
14843 eval "ac_cv_lib_$ac_lib_var=yes"
14844else
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 eval "ac_cv_lib_$ac_lib_var=no"
14849fi
14850rm -f conftest*
14851LIBS="$ac_save_LIBS"
14852
14853fi
14854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14855 echo "$ac_t""yes" 1>&6
21d1c967 14856 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14857else
14858 echo "$ac_t""no" 1>&6
90dd450c
VZ
14859fi
14860
21d1c967 14861 fi
90dd450c 14862
21d1c967
GD
14863 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14864 # to get the SysV transport functions.
a0b9e27f 14865 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14866 # needs -lnsl.
14867 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14868 # on Irix 5.2, according to dickey@clark.net.
14869 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
65d8ef1e 14870echo "configure:14871: checking for gethostbyname" >&5
a0b9e27f
MB
14871if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
14873else
14874 cat > conftest.$ac_ext <<EOF
65d8ef1e 14875#line 14876 "configure"
21d1c967
GD
14876#include "confdefs.h"
14877/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14878 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14879#include <assert.h>
14880/* Override any gcc2 internal prototype to avoid an error. */
14881/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14882 builtin and then its argument prototype would still apply. */
14883char gethostbyname();
14884
14885int main() {
14886
21d1c967
GD
14887/* The GNU C library defines this for functions which it implements
14888 to always fail with ENOSYS. Some functions are actually named
14889 something starting with __ and the normal name is an alias. */
14890#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14891choke me
14892#else
a0b9e27f 14893gethostbyname();
21d1c967 14894#endif
90dd450c 14895
a0b9e27f
MB
14896; return 0; }
14897EOF
65d8ef1e 14898if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14899 rm -rf conftest*
14900 eval "ac_cv_func_gethostbyname=yes"
14901else
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 rm -rf conftest*
14905 eval "ac_cv_func_gethostbyname=no"
14906fi
14907rm -f conftest*
14908fi
14909
14910if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14911 echo "$ac_t""yes" 1>&6
14912 :
14913else
14914 echo "$ac_t""no" 1>&6
14915fi
90dd450c 14916
21d1c967 14917 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14918 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
65d8ef1e 14919echo "configure:14920: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14920ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14922 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14923else
a0b9e27f 14924 ac_save_LIBS="$LIBS"
21d1c967 14925LIBS="-lnsl $LIBS"
a0b9e27f 14926cat > conftest.$ac_ext <<EOF
65d8ef1e 14927#line 14928 "configure"
21d1c967
GD
14928#include "confdefs.h"
14929/* Override any gcc2 internal prototype to avoid an error. */
14930/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14931 builtin and then its argument prototype would still apply. */
14932char gethostbyname();
5c6fa7d2 14933
a0b9e27f
MB
14934int main() {
14935gethostbyname()
14936; return 0; }
14937EOF
65d8ef1e 14938if { (eval echo configure:14939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14939 rm -rf conftest*
14940 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14941else
a0b9e27f
MB
14942 echo "configure: failed program was:" >&5
14943 cat conftest.$ac_ext >&5
14944 rm -rf conftest*
14945 eval "ac_cv_lib_$ac_lib_var=no"
14946fi
14947rm -f conftest*
14948LIBS="$ac_save_LIBS"
247f5006 14949
a0b9e27f
MB
14950fi
14951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14952 echo "$ac_t""yes" 1>&6
14953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14954else
14955 echo "$ac_t""no" 1>&6
21d1c967 14956fi
90dd450c 14957
90dd450c
VZ
14958 fi
14959
21d1c967
GD
14960 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14961 # socket/setsockopt and other routines are undefined under SCO ODT
14962 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14963 # on later versions), says simon@lia.di.epfl.ch: it contains
14964 # gethostby* variants that don't use the nameserver (or something).
14965 # -lsocket must be given before -lnsl if both are needed.
14966 # We assume that if connect needs -lnsl, so does gethostbyname.
14967 echo $ac_n "checking for connect""... $ac_c" 1>&6
65d8ef1e 14968echo "configure:14969: checking for connect" >&5
a0b9e27f
MB
14969if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14971else
14972 cat > conftest.$ac_ext <<EOF
65d8ef1e 14973#line 14974 "configure"
21d1c967
GD
14974#include "confdefs.h"
14975/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14976 which can conflict with char connect(); below. */
21d1c967
GD
14977#include <assert.h>
14978/* Override any gcc2 internal prototype to avoid an error. */
14979/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14980 builtin and then its argument prototype would still apply. */
14981char connect();
14982
14983int main() {
14984
21d1c967
GD
14985/* The GNU C library defines this for functions which it implements
14986 to always fail with ENOSYS. Some functions are actually named
14987 something starting with __ and the normal name is an alias. */
14988#if defined (__stub_connect) || defined (__stub___connect)
14989choke me
14990#else
a0b9e27f 14991connect();
21d1c967 14992#endif
90dd450c 14993
a0b9e27f
MB
14994; return 0; }
14995EOF
65d8ef1e 14996if { (eval echo configure:14997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14997 rm -rf conftest*
14998 eval "ac_cv_func_connect=yes"
14999else
15000 echo "configure: failed program was:" >&5
15001 cat conftest.$ac_ext >&5
15002 rm -rf conftest*
15003 eval "ac_cv_func_connect=no"
15004fi
15005rm -f conftest*
15006fi
15007
15008if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15009 echo "$ac_t""yes" 1>&6
15010 :
15011else
15012 echo "$ac_t""no" 1>&6
15013fi
1f8ae82f 15014
21d1c967 15015 if test $ac_cv_func_connect = no; then
a0b9e27f 15016 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
65d8ef1e 15017echo "configure:15018: checking for connect in -lsocket" >&5
a0b9e27f
MB
15018ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15020 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15021else
a0b9e27f 15022 ac_save_LIBS="$LIBS"
21d1c967 15023LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15024cat > conftest.$ac_ext <<EOF
65d8ef1e 15025#line 15026 "configure"
0fbb762e 15026#include "confdefs.h"
21d1c967
GD
15027/* Override any gcc2 internal prototype to avoid an error. */
15028/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15029 builtin and then its argument prototype would still apply. */
15030char connect();
15031
15032int main() {
15033connect()
15034; return 0; }
15035EOF
65d8ef1e 15036if { (eval echo configure:15037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15037 rm -rf conftest*
15038 eval "ac_cv_lib_$ac_lib_var=yes"
15039else
15040 echo "configure: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15042 rm -rf conftest*
15043 eval "ac_cv_lib_$ac_lib_var=no"
15044fi
15045rm -f conftest*
15046LIBS="$ac_save_LIBS"
15047
15048fi
15049if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15050 echo "$ac_t""yes" 1>&6
21d1c967 15051 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15052else
15053 echo "$ac_t""no" 1>&6
21d1c967 15054fi
90dd450c 15055
21d1c967 15056 fi
90dd450c 15057
a0b9e27f
MB
15058 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15059 echo $ac_n "checking for remove""... $ac_c" 1>&6
65d8ef1e 15060echo "configure:15061: checking for remove" >&5
a0b9e27f
MB
15061if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15063else
a0b9e27f 15064 cat > conftest.$ac_ext <<EOF
65d8ef1e 15065#line 15066 "configure"
21d1c967
GD
15066#include "confdefs.h"
15067/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15068 which can conflict with char remove(); below. */
21d1c967
GD
15069#include <assert.h>
15070/* Override any gcc2 internal prototype to avoid an error. */
15071/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15072 builtin and then its argument prototype would still apply. */
15073char remove();
15074
15075int main() {
15076
21d1c967
GD
15077/* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080#if defined (__stub_remove) || defined (__stub___remove)
15081choke me
15082#else
a0b9e27f 15083remove();
21d1c967 15084#endif
90dd450c 15085
a0b9e27f
MB
15086; return 0; }
15087EOF
65d8ef1e 15088if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15089 rm -rf conftest*
15090 eval "ac_cv_func_remove=yes"
15091else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 eval "ac_cv_func_remove=no"
15096fi
15097rm -f conftest*
15098fi
15099
15100if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 :
15103else
15104 echo "$ac_t""no" 1>&6
15105fi
90dd450c 15106
21d1c967 15107 if test $ac_cv_func_remove = no; then
a0b9e27f 15108 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
65d8ef1e 15109echo "configure:15110: checking for remove in -lposix" >&5
a0b9e27f
MB
15110ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15112 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15113else
a0b9e27f 15114 ac_save_LIBS="$LIBS"
21d1c967 15115LIBS="-lposix $LIBS"
a0b9e27f 15116cat > conftest.$ac_ext <<EOF
65d8ef1e 15117#line 15118 "configure"
21d1c967
GD
15118#include "confdefs.h"
15119/* Override any gcc2 internal prototype to avoid an error. */
15120/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15121 builtin and then its argument prototype would still apply. */
15122char remove();
15123
15124int main() {
15125remove()
15126; return 0; }
15127EOF
65d8ef1e 15128if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15129 rm -rf conftest*
15130 eval "ac_cv_lib_$ac_lib_var=yes"
15131else
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15134 rm -rf conftest*
15135 eval "ac_cv_lib_$ac_lib_var=no"
15136fi
15137rm -f conftest*
15138LIBS="$ac_save_LIBS"
15139
15140fi
15141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
21d1c967 15143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15144else
15145 echo "$ac_t""no" 1>&6
21d1c967 15146fi
19bc6aad 15147
90dd450c 15148 fi
19bc6aad 15149
21d1c967 15150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15151 echo $ac_n "checking for shmat""... $ac_c" 1>&6
65d8ef1e 15152echo "configure:15153: checking for shmat" >&5
a0b9e27f
MB
15153if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15155else
a0b9e27f 15156 cat > conftest.$ac_ext <<EOF
65d8ef1e 15157#line 15158 "configure"
21d1c967
GD
15158#include "confdefs.h"
15159/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15160 which can conflict with char shmat(); below. */
21d1c967
GD
15161#include <assert.h>
15162/* Override any gcc2 internal prototype to avoid an error. */
15163/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15164 builtin and then its argument prototype would still apply. */
15165char shmat();
15166
15167int main() {
15168
21d1c967
GD
15169/* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172#if defined (__stub_shmat) || defined (__stub___shmat)
15173choke me
15174#else
a0b9e27f 15175shmat();
21d1c967 15176#endif
90dd450c 15177
a0b9e27f
MB
15178; return 0; }
15179EOF
65d8ef1e 15180if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15181 rm -rf conftest*
15182 eval "ac_cv_func_shmat=yes"
15183else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_shmat=no"
15188fi
15189rm -f conftest*
15190fi
15191
15192if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 :
15195else
15196 echo "$ac_t""no" 1>&6
15197fi
19bc6aad 15198
21d1c967 15199 if test $ac_cv_func_shmat = no; then
a0b9e27f 15200 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
65d8ef1e 15201echo "configure:15202: checking for shmat in -lipc" >&5
a0b9e27f
MB
15202ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15204 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15205else
a0b9e27f 15206 ac_save_LIBS="$LIBS"
5c6fa7d2 15207LIBS="-lipc $LIBS"
a0b9e27f 15208cat > conftest.$ac_ext <<EOF
65d8ef1e 15209#line 15210 "configure"
5c6fa7d2 15210#include "confdefs.h"
5c6fa7d2 15211/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15212/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15213 builtin and then its argument prototype would still apply. */
15214char shmat();
15215
15216int main() {
15217shmat()
15218; return 0; }
15219EOF
65d8ef1e 15220if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15221 rm -rf conftest*
15222 eval "ac_cv_lib_$ac_lib_var=yes"
15223else
15224 echo "configure: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15226 rm -rf conftest*
15227 eval "ac_cv_lib_$ac_lib_var=no"
15228fi
15229rm -f conftest*
15230LIBS="$ac_save_LIBS"
15231
15232fi
15233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15234 echo "$ac_t""yes" 1>&6
21d1c967 15235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15236else
15237 echo "$ac_t""no" 1>&6
9f8148b1 15238fi
90dd450c 15239
90dd450c 15240 fi
21d1c967 15241 fi
10f2d63a 15242
21d1c967 15243 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15244 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15245 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15246 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15247 # check for ICE first), but we must link in the order -lSM -lICE or
15248 # we get undefined symbols. So assume we have SM if we have ICE.
15249 # These have to be linked with before -lX11, unlike the other
15250 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15251 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15252 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
65d8ef1e 15253echo "configure:15254: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15254ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15256 echo $ac_n "(cached) $ac_c" 1>&6
15257else
15258 ac_save_LIBS="$LIBS"
f09359cf 15259LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15260cat > conftest.$ac_ext <<EOF
65d8ef1e 15261#line 15262 "configure"
29fd3c0c 15262#include "confdefs.h"
21d1c967
GD
15263/* Override any gcc2 internal prototype to avoid an error. */
15264/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15265 builtin and then its argument prototype would still apply. */
15266char IceConnectionNumber();
15267
15268int main() {
15269IceConnectionNumber()
15270; return 0; }
15271EOF
65d8ef1e 15272if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15273 rm -rf conftest*
15274 eval "ac_cv_lib_$ac_lib_var=yes"
15275else
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15278 rm -rf conftest*
15279 eval "ac_cv_lib_$ac_lib_var=no"
15280fi
15281rm -f conftest*
15282LIBS="$ac_save_LIBS"
15283
15284fi
15285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15286 echo "$ac_t""yes" 1>&6
21d1c967 15287 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15288else
15289 echo "$ac_t""no" 1>&6
29fd3c0c 15290fi
21d1c967 15291
a0b9e27f 15292 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15293
10f2d63a
VZ
15294fi
15295
8284b0c5 15296
21d1c967 15297 if test "$no_x" = "yes"; then
a0b9e27f 15298 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15299 fi
15300
2b5f62a0
VZ
15301 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15302 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15303 AFMINSTALL=afminstall
15304 COMPILED_X_PROGRAM=0
15305
a0b9e27f 15306 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
65d8ef1e 15307echo "configure:15308: checking for Motif/Lesstif headers" >&5
a0b9e27f 15308
21d1c967 15309ac_find_includes=
2b5f62a0 15310for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15311 do
15312 if test -f "$ac_dir/Xm/Xm.h"; then
15313 ac_find_includes=$ac_dir
15314 break
15315 fi
15316 done
15317
15318 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15319 echo "$ac_t""found in $ac_find_includes" 1>&6
15320
2b5f62a0 15321 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15322 ac_path_to_include=""
15323 else
2b5f62a0
VZ
15324 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15325 result=$?
15326 if test $result = 0; then
15327 ac_path_to_include=""
15328 else
15329 ac_path_to_include=" -I$ac_find_includes"
15330 fi
dd0e4a90
VZ
15331 fi
15332
15333 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15334 else
a0b9e27f 15335 cat > conftest.$ac_ext <<EOF
65d8ef1e 15336#line 15337 "configure"
10f2d63a 15337#include "confdefs.h"
21d1c967
GD
15338
15339 #include <Xm/Xm.h>
a0b9e27f
MB
15340
15341int main() {
21d1c967
GD
15342
15343 int version;
15344 version = xmUseVersion;
a0b9e27f
MB
15345
15346; return 0; }
15347EOF
65d8ef1e 15348if { (eval echo configure:15349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15349 rm -rf conftest*
15350
15351 echo "$ac_t""found in default search path" 1>&6
21d1c967 15352 COMPILED_X_PROGRAM=1
a0b9e27f 15353
10f2d63a 15354else
a0b9e27f
MB
15355 echo "configure: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 rm -rf conftest*
15358
15359 echo "$ac_t""no" 1>&6
15360 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15361
15362
10f2d63a 15363fi
a0b9e27f 15364rm -f conftest*
21d1c967 15365 fi
10f2d63a 15366
21d1c967 15367 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15368 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
65d8ef1e 15369echo "configure:15370: checking for Motif/Lesstif library" >&5
a0b9e27f 15370
21d1c967 15371ac_find_libraries=
2b5f62a0 15372for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15373 do
15374 for ac_extension in a so sl dylib; do
15375 if test -f "$ac_dir/libXm.$ac_extension"; then
15376 ac_find_libraries=$ac_dir
15377 break 2
15378 fi
15379 done
15380 done
15381
15382 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15383 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15384
a0b9e27f 15385
21d1c967
GD
15386 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15387 result=$?
15388 if test $result = 0; then
15389 ac_path_to_link=""
15390 else
15391 ac_path_to_link=" -L$ac_find_libraries"
15392 fi
15393
21d1c967 15394 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15395 else
dd0e4a90
VZ
15396 save_CFLAGS=$CFLAGS
15397 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15398
a0b9e27f 15399 cat > conftest.$ac_ext <<EOF
65d8ef1e 15400#line 15401 "configure"
d836ee96 15401#include "confdefs.h"
21d1c967
GD
15402
15403 #include <Xm/Xm.h>
a0b9e27f
MB
15404
15405int main() {
21d1c967
GD
15406
15407 int version;
15408 version = xmUseVersion;
a0b9e27f
MB
15409
15410; return 0; }
15411EOF
65d8ef1e 15412if { (eval echo configure:15413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15413 rm -rf conftest*
15414
15415 echo "$ac_t""found in default search path" 1>&6
21d1c967 15416 COMPILED_X_PROGRAM=1
a0b9e27f 15417
d836ee96 15418else
a0b9e27f
MB
15419 echo "configure: failed program was:" >&5
15420 cat conftest.$ac_ext >&5
15421 rm -rf conftest*
15422
15423 echo "$ac_t""no" 1>&6
15424 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15425
15426
d836ee96 15427fi
a0b9e27f 15428rm -f conftest*
dd0e4a90
VZ
15429
15430 CFLAGS=$save_CFLAGS
21d1c967
GD
15431 fi
15432 fi
15433
15434 xpm_link=
a0b9e27f 15435 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
65d8ef1e 15436echo "configure:15437: checking for Xpm library" >&5
a0b9e27f 15437
21d1c967 15438ac_find_libraries=
2b5f62a0 15439for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15440 do
15441 for ac_extension in a so sl dylib; do
15442 if test -f "$ac_dir/libXpm.$ac_extension"; then
15443 ac_find_libraries=$ac_dir
15444 break 2
15445 fi
15446 done
15447 done
15448
15449 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15450
21d1c967
GD
15451 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15452 result=$?
15453 if test $result = 0; then
15454 ac_path_to_link=""
15455 else
15456 ac_path_to_link=" -L$ac_find_libraries"
15457 fi
15458
15459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15460
21d1c967 15461 xpm_link=" -lXpm"
a0b9e27f 15462 cat >> confdefs.h <<\EOF
21d1c967 15463#define wxHAVE_LIB_XPM 1
a0b9e27f 15464EOF
90dd450c 15465
a0b9e27f 15466 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15467 else
dd0e4a90
VZ
15468 save_CFLAGS=$CFLAGS
15469 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15470
a0b9e27f 15471 cat > conftest.$ac_ext <<EOF
65d8ef1e 15472#line 15473 "configure"
d836ee96 15473#include "confdefs.h"
21d1c967
GD
15474
15475 #include <X11/xpm.h>
a0b9e27f
MB
15476
15477int main() {
21d1c967
GD
15478
15479 int version;
15480 version = XpmLibraryVersion();
a0b9e27f
MB
15481
15482; return 0; }
15483EOF
65d8ef1e 15484if { (eval echo configure:15485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15485 rm -rf conftest*
15486
21d1c967 15487 xpm_link=" -lXpm"
a0b9e27f 15488 cat >> confdefs.h <<\EOF
21d1c967 15489#define wxHAVE_LIB_XPM 1
a0b9e27f 15490EOF
21d1c967 15491
a0b9e27f 15492 echo "$ac_t""found in default search path" 1>&6
21d1c967 15493 COMPILED_X_PROGRAM=0
a0b9e27f 15494
d836ee96 15495else
a0b9e27f
MB
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 rm -rf conftest*
15499
15500 echo "$ac_t""no" 1>&6
15501 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15502
15503
d836ee96 15504fi
a0b9e27f 15505rm -f conftest*
dd0e4a90
VZ
15506
15507 CFLAGS=$save_CFLAGS
21d1c967
GD
15508 fi
15509
a0b9e27f 15510 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
65d8ef1e 15511echo "configure:15512: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15512 libp_link=""
15513 libsm_ice_link=""
15514 libs_found=0
15515 for libp in "" " -lXp"; do
15516 if test "$libs_found" = "0"; then
15517 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15518 if test "$libs_found" = "0"; then
6a30f1c8
MB
15519 save_LIBS="$LIBS"
15520 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15521 save_CFLAGS=$CFLAGS
15522 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15523
a0b9e27f 15524 cat > conftest.$ac_ext <<EOF
65d8ef1e 15525#line 15526 "configure"
6a30f1c8 15526#include "confdefs.h"
17234b26 15527
6a30f1c8
MB
15528 #include <Xm/Xm.h>
15529 #include <Xm/List.h>
a0b9e27f
MB
15530
15531int main() {
6a30f1c8
MB
15532
15533 XmString string = NULL;
15534 Widget w = NULL;
15535 int position = 0;
15536 XmListAddItem(w, string, position);
a0b9e27f
MB
15537
15538; return 0; }
15539EOF
65d8ef1e 15540if { (eval echo configure:15541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15541 rm -rf conftest*
15542
6a30f1c8
MB
15543 libp_link="$libp"
15544 libsm_ice_link="$libsm_ice"
a0b9e27f 15545 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15546 libs_found=1
a0b9e27f 15547
6a30f1c8 15548else
a0b9e27f
MB
15549 echo "configure: failed program was:" >&5
15550 cat conftest.$ac_ext >&5
15551 rm -rf conftest*
15552
15553
6a30f1c8 15554fi
a0b9e27f 15555rm -f conftest*
dd0e4a90 15556
6a30f1c8 15557 LIBS="$save_LIBS"
dd0e4a90 15558 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15559 fi
15560 done
15561 fi
15562 done
15563
15564 if test "$libs_found" = "0"; then
a0b9e27f
MB
15565 echo "$ac_t""can't find the right libraries" 1>&6
15566 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15567 fi
15568
15569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
15570 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15571 TOOLKIT=MOTIF
15572 GUIDIST=MOTIF_DIST
15573 fi
15574
15575 if test "$wxUSE_MAC" = 1; then
0c98a14e 15576 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15577
0c98a14e 15578 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15579 TOOLKIT=MAC
15580 GUIDIST=MACX_DIST
15581 fi
15582
15583 if test "$wxUSE_PM" = 1; then
15584 TOOLKIT=PM
15585 GUIDIST=GTK_DIST
2b5f62a0 15586 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
f657dbe7
MB
15587 wxUSE_PROLOGIO="yes"
15588 wxUSE_RESOURCES="yes"
2b5f62a0 15589 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15590 wxUSE_THREADS="no"
21d1c967
GD
15591 fi
15592
15593 if test "$TOOLKIT" = "PM" ; then
15594 TOOLKIT_DIR="os2"
15595 else
15596 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15597 fi
15598
15599 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15600
15601 if test "$wxUSE_UNIVERSAL" = "yes"; then
15602 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15603
15604 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15605 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15606
15607 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15608 if test "$wxUSE_X11" = 1; then
15609 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15610 else
15611 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15612 fi
15613 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15614 WIDGET_SET=univ
15615 else
15616 ALL_OBJECTS="\$(GUIOBJS)"
15617 ALL_SOURCES="\$(ALL_SOURCES)"
15618 ALL_HEADERS="\$(ALL_HEADERS)"
15619 fi
15620
15621 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15622
15623 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15624 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15625 fi
15626
15627 if test "$wxUSE_HTML" = "yes"; then
15628 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15629 fi
15630
15631 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15632 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15633 fi
15634 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15635 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15636 fi
15637 if test "$wxUSE_LIBPNG" = "builtin" ; then
15638 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15639 fi
15640
15641 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15642 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15643else
21d1c967
GD
15644 USE_GUI=0
15645
15646 TOOLKIT_DIR="base"
15647
15648 if test "$USE_WIN32" = 1 ; then
15649 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15650 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15651
15652 TOOLKIT="MSW"
15653 else
15654 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15655 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15656 fi
15657
15658 ALL_SOURCES="\$(ALL_SOURCES)"
15659 ALL_HEADERS="\$(ALL_HEADERS)"
15660
15661 PORT_FILES="\${top_srcdir}/src/files.lst"
15662
15663 GUIDIST="BASE_DIST"
15664 DISTDIR="wxBase"
d836ee96
VZ
15665fi
15666
8284b0c5 15667
21d1c967
GD
15668if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15669 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15670fi
21d1c967
GD
15671
15672if test "$wxUSE_REGEX" = "builtin" ; then
15673 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15674fi
21d1c967
GD
15675if test "$wxUSE_ZLIB" = "builtin" ; then
15676 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15677fi
15678
8284b0c5 15679
21d1c967
GD
15680if test "$wxUSE_OPENGL" = "yes"; then
15681 if test "$wxUSE_MAC" = 1; then
15682 OPENGL_LIBS="-framework OpenGL -framework AGL"
15683 elif test "$wxUSE_MSW" = 1; then
15684 OPENGL_LIBS="-lopengl32 -lglu32"
15685 else
a0b9e27f
MB
15686 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15687echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
65d8ef1e 15688echo "configure:15689: checking for GL/gl.h" >&5
a0b9e27f
MB
15689if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15691else
15692 cat > conftest.$ac_ext <<EOF
65d8ef1e 15693#line 15694 "configure"
10f2d63a 15694#include "confdefs.h"
21d1c967 15695#include <GL/gl.h>
a0b9e27f
MB
15696EOF
15697ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 15698{ (eval echo configure:15699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15699ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15700if test -z "$ac_err"; then
15701 rm -rf conftest*
15702 eval "ac_cv_header_$ac_safe=yes"
15703else
15704 echo "$ac_err" >&5
15705 echo "configure: failed program was:" >&5
698dcdb6 15706 cat conftest.$ac_ext >&5
a0b9e27f
MB
15707 rm -rf conftest*
15708 eval "ac_cv_header_$ac_safe=no"
703e0a69 15709fi
a0b9e27f 15710rm -f conftest*
698dcdb6 15711fi
a0b9e27f
MB
15712if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15713 echo "$ac_t""yes" 1>&6
15714
15715 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
65d8ef1e 15716echo "configure:15717: checking for -lGL" >&5
a0b9e27f 15717
21d1c967 15718ac_find_libraries=
2b5f62a0 15719for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15720 do
15721 for ac_extension in a so sl dylib; do
15722 if test -f "$ac_dir/libGL.$ac_extension"; then
15723 ac_find_libraries=$ac_dir
15724 break 2
15725 fi
15726 done
15727 done
15728
15729 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15730
21d1c967
GD
15731 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15732 result=$?
15733 if test $result = 0; then
15734 ac_path_to_link=""
15735 else
15736 ac_path_to_link=" -L$ac_find_libraries"
15737 fi
15738
15739 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15740 LDFLAGS_GL="$LDFLAGS"
15741 else
15742 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15743 fi
15744 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15745 echo "$ac_t""yes" 1>&6
21d1c967 15746 else
a0b9e27f
MB
15747 echo "$ac_t""no" 1>&6
15748 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
65d8ef1e 15749echo "configure:15750: checking for -lMesaGL" >&5
a0b9e27f 15750
21d1c967 15751ac_find_libraries=
2b5f62a0 15752for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15753 do
15754 for ac_extension in a so sl dylib; do
15755 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15756 ac_find_libraries=$ac_dir
15757 break 2
15758 fi
15759 done
15760 done
15761
15762 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15763
21d1c967
GD
15764 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15765 result=$?
15766 if test $result = 0; then
15767 ac_path_to_link=""
15768 else
15769 ac_path_to_link=" -L$ac_find_libraries"
15770 fi
15771
15772 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15773 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15774 echo "$ac_t""yes" 1>&6
21d1c967 15775 else
a0b9e27f 15776 echo "$ac_t""no" 1>&6
21d1c967
GD
15777 fi
15778 fi
a0b9e27f
MB
15779
15780else
15781 echo "$ac_t""no" 1>&6
5c6fa7d2 15782fi
52127426 15783
8284b0c5 15784
21d1c967 15785 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15786 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15787 fi
15788 fi
90dd450c 15789
21d1c967 15790 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15791 cat >> confdefs.h <<\EOF
21d1c967 15792#define wxUSE_OPENGL 1
a0b9e27f 15793EOF
21d1c967 15794
a0b9e27f 15795 cat >> confdefs.h <<\EOF
21d1c967 15796#define wxUSE_GLCANVAS 1
a0b9e27f 15797EOF
21d1c967
GD
15798
15799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15800 fi
10f2d63a 15801fi
21d1c967
GD
15802
15803if test -z "$TOOLKIT_VPATH" ; then
15804 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15805fi
21d1c967
GD
15806
15807if test -n "$TOOLKIT" ; then
15808 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15809fi
15810
15811lib_unicode_suffix=
15812if test "$wxUSE_UNICODE" = "yes"; then
15813 lib_unicode_suffix=u
90dd450c 15814fi
698dcdb6 15815
21d1c967
GD
15816lib_debug_suffix=
15817if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15818 lib_debug_suffix=d
15819fi
698dcdb6 15820
2b5f62a0
VZ
15821WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15822
15823TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15824TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15825
15826if test "$cross_compiling" = "yes"; then
15827 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15828 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15829fi
15830
15831WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15832WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15833WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15834
15835WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15836WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15837
15838WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15839WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15840WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15841WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15842
15843case "${host}" in
15844 *-*-cygwin* | *-*-mingw32* )
15845
a0b9e27f
MB
15846
15847
17234b26 15848 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15849 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15850 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15851 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15852 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15853 else
15854 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15855 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15856 fi
15857 ;;
15858
15859 *-*-darwin* )
0c98a14e 15860
05159a27
GD
15861 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15862 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15863
15864 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15865 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15866 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15867 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15868
21d1c967 15869 if test "$wxUSE_MAC" = 1; then
f346733b
GD
15870 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15871 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
15872 fi
15873 ;;
15874esac
15875
15876WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15877WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15878
15879WXCONFIG_LIBS="-l${WX_LIBRARY}"
15880WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15881
15882if test "$wxUSE_OPENGL" = "yes"; then
15883 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15884 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15885fi
15886
8284b0c5
MB
15887
15888
21d1c967
GD
15889if test "$wxUSE_SHARED" = "yes"; then
15890 case "${host}" in
15891 *-pc-os2_emx | *-pc-os2-emx | \
15892 *-pc-msdosdjgpp )
15893 wxUSE_SHARED=no
a0b9e27f 15894 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15895 ;;
15896 esac
15897fi
15898
2b5f62a0
VZ
15899if test "$wxUSE_SHARED" = "yes"; then
15900
15901 if test "$wxUSE_OPENGL" = "yes"; then
15902 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15903 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15904 else
15905 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15906 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15907 fi
15908
15909 if test "$GCC" = "yes"; then
15910 PIC_FLAG="-fPIC"
15911 fi
15912
15913
15914
15915 found_versioning=no
15916
b4eecb7e 15917
2b5f62a0
VZ
15918 if test $found_versioning = no ; then
15919 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
65d8ef1e 15920echo "configure:15921: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
15921if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15922 echo $ac_n "(cached) $ac_c" 1>&6
15923else
15924
15925 echo "VER_1 { *; };" >conftest.sym
15926 echo "int main() { return 0; }" >conftest.cpp
15927
15928 if { ac_try='
15929 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
65d8ef1e 15930 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
15931 if test -s conftest.stderr ; then
15932 wx_cv_version_script=no
15933 else
15934 wx_cv_version_script=yes
15935 fi
15936 else
15937 wx_cv_version_script=no
15938 fi
15939 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15940
15941fi
15942
15943echo "$ac_t""$wx_cv_version_script" 1>&6
15944 if test $wx_cv_version_script = yes ; then
15945 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15946 fi
15947 fi
21d1c967 15948
21d1c967
GD
15949
15950 SHARED_LD="${CXX} -shared -o"
15951
15952 case "${host}" in
15953 *-hp-hpux* )
ad2622f1 15954 if test "$GCC" = "yes"; then
85d5e282 15955 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
15956 else
15957 LDFLAGS="$LDFLAGS -L/usr/lib"
15958
15959 SHARED_LD="${CXX} -b -o"
15960 PIC_FLAG="+Z"
15961 fi
15962
15963 if test "$wxUSE_OPENGL" = "yes"; then
15964 WX_ALL_INSTALLED="preinstall_gl"
15965 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15966 else
15967 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15968 fi
15969 ;;
15970
15971 *-*-linux* )
15972 if test "$GCC" != "yes"; then
a0b9e27f 15973 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
65d8ef1e 15974echo "configure:15975: checking for Intel compiler" >&5
a0b9e27f
MB
15975if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15977else
15978
15979 cat > conftest.$ac_ext <<EOF
65d8ef1e 15980#line 15981 "configure"
698dcdb6 15981#include "confdefs.h"
90dd450c 15982
a0b9e27f 15983int main() {
90dd450c 15984
21d1c967
GD
15985 #ifndef __INTEL_COMPILER
15986 #error Not icc
15987 #endif
a0b9e27f
MB
15988
15989; return 0; }
15990EOF
65d8ef1e 15991if { (eval echo configure:15992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15992 rm -rf conftest*
21d1c967 15993 wx_cv_prog_icc=yes
6232543b 15994else
a0b9e27f
MB
15995 echo "configure: failed program was:" >&5
15996 cat conftest.$ac_ext >&5
15997 rm -rf conftest*
15998 wx_cv_prog_icc=no
15999
5c6fa7d2 16000fi
a0b9e27f
MB
16001rm -f conftest*
16002
247f5006 16003fi
a0b9e27f
MB
16004
16005echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16006 if test "$wx_cv_prog_icc" = "yes"; then
16007 PIC_FLAG="-KPIC"
16008 fi
16009 fi
16010
16011 if test "$wxUSE_SONAME" = "yes" ; then
16012 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16013 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16014 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16015 fi
16016 ;;
16017
16018 *-*-solaris2* )
16019 if test "$GCC" = yes ; then
16020 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16021 else
16022 SHARED_LD="${CXX} -G -o"
16023 PIC_FLAG="-KPIC"
16024 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16025 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16026 fi
16027 ;;
16028
16029 *-*-darwin* )
b2fee376
GD
16030 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16031 CFLAGS="$CFLAGS -fno-common"
16032 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16033 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16034 PIC_FLAG="-dynamic -fPIC"
f346733b 16035 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16036 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16037 ;;
16038
16039 *-*-aix* )
2b5f62a0
VZ
16040 if test "$GCC" != "yes"; then
16041 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16042set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16043echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 16044echo "configure:16045: checking for $ac_word" >&5
a0b9e27f
MB
16045if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16046 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16047else
16048 if test -n "$AIX_CXX_LD"; then
16049 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16050else
a0b9e27f
MB
16051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16052 ac_dummy="$PATH"
16053 for ac_dir in $ac_dummy; do
16054 test -z "$ac_dir" && ac_dir=.
16055 if test -f $ac_dir/$ac_word; then
16056 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16057 break
16058 fi
16059 done
16060 IFS="$ac_save_ifs"
321d2b14
VZ
16061 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16062fi
16063fi
a0b9e27f 16064AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16065if test -n "$AIX_CXX_LD"; then
a0b9e27f 16066 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16067else
a0b9e27f 16068 echo "$ac_t""no" 1>&6
321d2b14
VZ
16069fi
16070
8284b0c5 16071
2b5f62a0
VZ
16072 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16073 fi
21d1c967
GD
16074 ;;
16075
16076 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16077 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16078
16079 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16080 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16081
16082 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16083
f657dbe7
MB
16084 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16085 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16086
16087 if test "$wxUSE_OPENGL" = "yes"; then
16088 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16089 fi
16090 ;;
16091
16092 *-*-beos* )
16093 SHARED_LD="${LD} -shared -o"
16094 ;;
16095
2b5f62a0
VZ
16096 *-*-irix* )
16097 if test "$GCC" != "yes"; then
16098 PIC_FLAG="-KPIC"
16099 fi
16100 ;;
16101
21d1c967
GD
16102 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16103 *-*-sunos4* | \
21d1c967
GD
16104 *-*-osf* | \
16105 *-*-dgux5* | \
16106 *-*-sysv5* )
16107 ;;
16108
16109 *)
a0b9e27f 16110 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16111 esac
16112
16113 if test "x$WX_TARGET_LIBRARY" = "x"; then
16114 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16115 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16116 fi
16117
16118 WX_TARGET_LIBRARY_TYPE="so"
16119 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16120fi
10f2d63a 16121
21d1c967
GD
16122if test "$wxUSE_SHARED" = "no"; then
16123
16124 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16125 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16126 fi
16127
16128 if test "$wxUSE_MAC" = 1; then
16129 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16130 fi
16131
16132 if test "$wxUSE_OPENGL" = "yes"; then
16133 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16134 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16135 else
16136 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16137 fi
16138
16139 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16140 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16141
16142 WX_TARGET_LIBRARY_TYPE="a"
16143 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16144
16145 STATIC_FLAG="yes"
16146else
16147 STATIC_FLAG="no"
90dd450c 16148fi
1e487827 16149
21d1c967
GD
16150if test "$wxUSE_MAC" = 1; then
16151 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16152 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16153 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16154 # Extract the first word of "Rez", so it can be a program name with args.
16155set dummy Rez; ac_word=$2
a0b9e27f 16156echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 16157echo "configure:16158: checking for $ac_word" >&5
a0b9e27f
MB
16158if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16159 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16160else
21d1c967
GD
16161 if test -n "$RESCOMP"; then
16162 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16163else
a0b9e27f
MB
16164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16165 ac_dummy="$PATH"
16166 for ac_dir in $ac_dummy; do
16167 test -z "$ac_dir" && ac_dir=.
16168 if test -f $ac_dir/$ac_word; then
16169 ac_cv_prog_RESCOMP="Rez"
16170 break
16171 fi
16172 done
16173 IFS="$ac_save_ifs"
21d1c967 16174 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16175fi
b93d0d08 16176fi
a0b9e27f 16177RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16178if test -n "$RESCOMP"; then
a0b9e27f 16179 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16180else
a0b9e27f 16181 echo "$ac_t""no" 1>&6
90dd450c 16182fi
b93d0d08 16183
21d1c967
GD
16184 # Extract the first word of "DeRez", so it can be a program name with args.
16185set dummy DeRez; ac_word=$2
a0b9e27f 16186echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
65d8ef1e 16187echo "configure:16188: checking for $ac_word" >&5
a0b9e27f
MB
16188if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16189 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16190else
21d1c967
GD
16191 if test -n "$DEREZ"; then
16192 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16193else
a0b9e27f
MB
16194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16195 ac_dummy="$PATH"
16196 for ac_dir in $ac_dummy; do
16197 test -z "$ac_dir" && ac_dir=.
16198 if test -f $ac_dir/$ac_word; then
16199 ac_cv_prog_DEREZ="DeRez"
16200 break
16201 fi
16202 done
16203 IFS="$ac_save_ifs"
21d1c967 16204 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16205fi
90dd450c 16206fi
a0b9e27f 16207DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16208if test -n "$DEREZ"; then
a0b9e27f 16209 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16210else
a0b9e27f 16211 echo "$ac_t""no" 1>&6
3a922bb4 16212fi
698dcdb6 16213
21d1c967 16214 MACOSX_BUNDLE="bundle"
2b5f62a0
VZ
16215 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
16216 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
16217else
16218 if test "$wxUSE_PM" = 1; then
16219 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 16220 fi
4f14bcd8 16221fi
10f2d63a 16222
8284b0c5 16223
a0b9e27f 16224echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
65d8ef1e 16225echo "configure:16226: checking for ANSI C header files" >&5
a0b9e27f
MB
16226if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16227 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16228else
a0b9e27f 16229 cat > conftest.$ac_ext <<EOF
65d8ef1e 16230#line 16231 "configure"
52127426 16231#include "confdefs.h"
a0b9e27f
MB
16232#include <stdlib.h>
16233#include <stdarg.h>
16234#include <string.h>
16235#include <float.h>
16236EOF
16237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 16238{ (eval echo configure:16239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16240if test -z "$ac_err"; then
16241 rm -rf conftest*
16242 ac_cv_header_stdc=yes
16243else
16244 echo "$ac_err" >&5
16245 echo "configure: failed program was:" >&5
16246 cat conftest.$ac_ext >&5
16247 rm -rf conftest*
16248 ac_cv_header_stdc=no
16249fi
16250rm -f conftest*
16251
16252if test $ac_cv_header_stdc = yes; then
16253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16254cat > conftest.$ac_ext <<EOF
65d8ef1e 16255#line 16256 "configure"
a0b9e27f
MB
16256#include "confdefs.h"
16257#include <string.h>
16258EOF
16259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16260 egrep "memchr" >/dev/null 2>&1; then
16261 :
16262else
16263 rm -rf conftest*
16264 ac_cv_header_stdc=no
16265fi
16266rm -f conftest*
16267
16268fi
16269
16270if test $ac_cv_header_stdc = yes; then
16271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16272cat > conftest.$ac_ext <<EOF
65d8ef1e 16273#line 16274 "configure"
a0b9e27f
MB
16274#include "confdefs.h"
16275#include <stdlib.h>
16276EOF
16277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16278 egrep "free" >/dev/null 2>&1; then
16279 :
7b4a847f 16280else
a0b9e27f
MB
16281 rm -rf conftest*
16282 ac_cv_header_stdc=no
52127426 16283fi
a0b9e27f
MB
16284rm -f conftest*
16285
52127426 16286fi
a0b9e27f
MB
16287
16288if test $ac_cv_header_stdc = yes; then
16289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16290if test "$cross_compiling" = yes; then
247f5006
VZ
16291 :
16292else
a0b9e27f 16293 cat > conftest.$ac_ext <<EOF
65d8ef1e 16294#line 16295 "configure"
a0b9e27f
MB
16295#include "confdefs.h"
16296#include <ctype.h>
16297#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16298#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16299#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16300int main () { int i; for (i = 0; i < 256; i++)
16301if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16302exit (0); }
247f5006 16303
a0b9e27f 16304EOF
65d8ef1e 16305if { (eval echo configure:16306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16306then
16307 :
16308else
16309 echo "configure: failed program was:" >&5
16310 cat conftest.$ac_ext >&5
16311 rm -fr conftest*
16312 ac_cv_header_stdc=no
16313fi
16314rm -fr conftest*
16315fi
16316
16317fi
16318fi
16319
16320echo "$ac_t""$ac_cv_header_stdc" 1>&6
16321if test $ac_cv_header_stdc = yes; then
16322 cat >> confdefs.h <<\EOF
16323#define STDC_HEADERS 1
16324EOF
8284b0c5
MB
16325
16326fi
16327
a0b9e27f 16328echo $ac_n "checking for mode_t""... $ac_c" 1>&6
65d8ef1e 16329echo "configure:16330: checking for mode_t" >&5
a0b9e27f
MB
16330if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16331 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16332else
a0b9e27f 16333 cat > conftest.$ac_ext <<EOF
65d8ef1e 16334#line 16335 "configure"
8284b0c5 16335#include "confdefs.h"
a0b9e27f
MB
16336#include <sys/types.h>
16337#if STDC_HEADERS
16338#include <stdlib.h>
16339#include <stddef.h>
8284b0c5 16340#endif
a0b9e27f
MB
16341EOF
16342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16343 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16344 rm -rf conftest*
16345 ac_cv_type_mode_t=yes
5c6fa7d2 16346else
a0b9e27f
MB
16347 rm -rf conftest*
16348 ac_cv_type_mode_t=no
16349fi
16350rm -f conftest*
16351
8284b0c5 16352fi
a0b9e27f
MB
16353echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16354if test $ac_cv_type_mode_t = no; then
16355 cat >> confdefs.h <<\EOF
16356#define mode_t int
16357EOF
16358
8284b0c5 16359fi
a0b9e27f
MB
16360
16361echo $ac_n "checking for off_t""... $ac_c" 1>&6
65d8ef1e 16362echo "configure:16363: checking for off_t" >&5
a0b9e27f
MB
16363if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16364 echo $ac_n "(cached) $ac_c" 1>&6
16365else
16366 cat > conftest.$ac_ext <<EOF
65d8ef1e 16367#line 16368 "configure"
a0b9e27f
MB
16368#include "confdefs.h"
16369#include <sys/types.h>
16370#if STDC_HEADERS
16371#include <stdlib.h>
16372#include <stddef.h>
16373#endif
16374EOF
16375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16376 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16377 rm -rf conftest*
16378 ac_cv_type_off_t=yes
247f5006 16379else
a0b9e27f
MB
16380 rm -rf conftest*
16381 ac_cv_type_off_t=no
16382fi
16383rm -f conftest*
247f5006 16384
a0b9e27f
MB
16385fi
16386echo "$ac_t""$ac_cv_type_off_t" 1>&6
16387if test $ac_cv_type_off_t = no; then
16388 cat >> confdefs.h <<\EOF
90dd450c 16389#define off_t long
a0b9e27f 16390EOF
10f2d63a 16391
90dd450c 16392fi
10f2d63a 16393
a0b9e27f 16394echo $ac_n "checking for pid_t""... $ac_c" 1>&6
65d8ef1e 16395echo "configure:16396: checking for pid_t" >&5
a0b9e27f
MB
16396if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16397 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16398else
a0b9e27f 16399 cat > conftest.$ac_ext <<EOF
65d8ef1e 16400#line 16401 "configure"
10f2d63a 16401#include "confdefs.h"
a0b9e27f
MB
16402#include <sys/types.h>
16403#if STDC_HEADERS
16404#include <stdlib.h>
16405#include <stddef.h>
8284b0c5 16406#endif
a0b9e27f
MB
16407EOF
16408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16409 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16410 rm -rf conftest*
90dd450c 16411 ac_cv_type_pid_t=yes
698dcdb6 16412else
a0b9e27f
MB
16413 rm -rf conftest*
16414 ac_cv_type_pid_t=no
8284b0c5 16415fi
a0b9e27f 16416rm -f conftest*
247f5006 16417
a0b9e27f
MB
16418fi
16419echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16420if test $ac_cv_type_pid_t = no; then
16421 cat >> confdefs.h <<\EOF
90dd450c 16422#define pid_t int
a0b9e27f 16423EOF
10f2d63a 16424
7b4a847f
RR
16425fi
16426
a0b9e27f 16427echo $ac_n "checking for size_t""... $ac_c" 1>&6
65d8ef1e 16428echo "configure:16429: checking for size_t" >&5
a0b9e27f
MB
16429if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16430 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16431else
a0b9e27f 16432 cat > conftest.$ac_ext <<EOF
65d8ef1e 16433#line 16434 "configure"
7b4a847f 16434#include "confdefs.h"
a0b9e27f
MB
16435#include <sys/types.h>
16436#if STDC_HEADERS
16437#include <stdlib.h>
16438#include <stddef.h>
8284b0c5 16439#endif
a0b9e27f
MB
16440EOF
16441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16442 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16443 rm -rf conftest*
90dd450c 16444 ac_cv_type_size_t=yes
18dbb1f6 16445else
a0b9e27f
MB
16446 rm -rf conftest*
16447 ac_cv_type_size_t=no
52127426 16448fi
a0b9e27f 16449rm -f conftest*
247f5006 16450
a0b9e27f
MB
16451fi
16452echo "$ac_t""$ac_cv_type_size_t" 1>&6
16453if test $ac_cv_type_size_t = no; then
16454 cat >> confdefs.h <<\EOF
90dd450c 16455#define size_t unsigned
a0b9e27f 16456EOF
90dd450c
VZ
16457
16458fi
16459
a0b9e27f 16460echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
65d8ef1e 16461echo "configure:16462: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16462if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16463 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16464else
a0b9e27f 16465 cat > conftest.$ac_ext <<EOF
65d8ef1e 16466#line 16467 "configure"
b3e8d00a 16467#include "confdefs.h"
90dd450c 16468#include <sys/types.h>
a0b9e27f 16469EOF
90dd450c
VZ
16470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16472 rm -rf conftest*
90dd450c 16473 ac_cv_type_uid_t=yes
b3e8d00a 16474else
a0b9e27f 16475 rm -rf conftest*
90dd450c 16476 ac_cv_type_uid_t=no
b3e8d00a 16477fi
90dd450c 16478rm -f conftest*
b3e8d00a 16479
4f14bcd8 16480fi
247f5006 16481
a0b9e27f
MB
16482echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16483if test $ac_cv_type_uid_t = no; then
16484 cat >> confdefs.h <<\EOF
90dd450c 16485#define uid_t int
a0b9e27f 16486EOF
247f5006 16487
a0b9e27f 16488 cat >> confdefs.h <<\EOF
90dd450c 16489#define gid_t int
a0b9e27f 16490EOF
4f14bcd8 16491
b3e8d00a 16492fi
b3e8d00a 16493
8284b0c5
MB
16494
16495
a0b9e27f
MB
16496ac_ext=C
16497# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16498ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16499ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16500ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16501cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16502
a0b9e27f 16503echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
65d8ef1e 16504echo "configure:16505: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16505if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16506 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16507else
a0b9e27f 16508 cat > conftest.$ac_ext <<EOF
65d8ef1e 16509#line 16510 "configure"
10f2d63a 16510#include "confdefs.h"
90dd450c 16511#include <stddef.h>
a0b9e27f 16512int main() {
90dd450c
VZ
16513
16514 return 0; }
16515
16516 struct Foo { void foo(size_t); void foo(unsigned int); };
16517
16518 int bar() {
a0b9e27f
MB
16519
16520; return 0; }
16521EOF
65d8ef1e 16522if { (eval echo configure:16523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16523 rm -rf conftest*
90dd450c 16524 wx_cv_size_t_is_uint=no
698dcdb6 16525else
a0b9e27f
MB
16526 echo "configure: failed program was:" >&5
16527 cat conftest.$ac_ext >&5
16528 rm -rf conftest*
16529 wx_cv_size_t_is_uint=yes
16530
5c6fa7d2 16531fi
a0b9e27f 16532rm -f conftest*
8284b0c5 16533
247f5006 16534fi
a0b9e27f
MB
16535
16536echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16537
90dd450c 16538if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16539 cat >> confdefs.h <<\EOF
90dd450c 16540#define wxSIZE_T_IS_UINT 1
a0b9e27f 16541EOF
698dcdb6 16542
90dd450c 16543else
a0b9e27f 16544 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
65d8ef1e 16545echo "configure:16546: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16546if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16547 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16548else
a0b9e27f 16549 cat > conftest.$ac_ext <<EOF
65d8ef1e 16550#line 16551 "configure"
10f2d63a 16551#include "confdefs.h"
90dd450c 16552#include <stddef.h>
a0b9e27f 16553int main() {
90dd450c
VZ
16554
16555 return 0; }
16556
16557 struct Foo { void foo(size_t); void foo(unsigned long); };
16558
16559 int bar() {
a0b9e27f
MB
16560
16561; return 0; }
16562EOF
65d8ef1e 16563if { (eval echo configure:16564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16564 rm -rf conftest*
90dd450c 16565 wx_cv_size_t_is_ulong=no
698dcdb6 16566else
a0b9e27f
MB
16567 echo "configure: failed program was:" >&5
16568 cat conftest.$ac_ext >&5
16569 rm -rf conftest*
16570 wx_cv_size_t_is_ulong=yes
16571
5c6fa7d2 16572fi
a0b9e27f
MB
16573rm -f conftest*
16574
247f5006 16575fi
a0b9e27f
MB
16576
16577echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16578
90dd450c 16579 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16580 cat >> confdefs.h <<\EOF
90dd450c 16581#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16582EOF
4f14bcd8
GD
16583
16584 fi
90dd450c 16585fi
1e487827 16586
90dd450c 16587ac_ext=c
a0b9e27f 16588# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16589ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16590ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16591ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16592cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16593
5c6fa7d2 16594
8284b0c5 16595
a0b9e27f 16596echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
65d8ef1e 16597echo "configure:16598: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16598if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16599 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16600else
a0b9e27f
MB
16601
16602 cat > conftest.$ac_ext <<EOF
65d8ef1e 16603#line 16604 "configure"
4f14bcd8 16604#include "confdefs.h"
90dd450c 16605#include <pwd.h>
a0b9e27f 16606int main() {
f6bcfd97 16607
90dd450c
VZ
16608 char *p;
16609 struct passwd *pw;
16610 p = pw->pw_gecos;
a0b9e27f
MB
16611
16612; return 0; }
16613EOF
65d8ef1e 16614if { (eval echo configure:16615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16615 rm -rf conftest*
16616
90dd450c 16617 wx_cv_struct_pw_gecos=yes
a0b9e27f 16618
10f2d63a 16619else
a0b9e27f
MB
16620 echo "configure: failed program was:" >&5
16621 cat conftest.$ac_ext >&5
16622 rm -rf conftest*
16623
90dd450c 16624 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16625
16626
5c6fa7d2 16627fi
a0b9e27f
MB
16628rm -f conftest*
16629
247f5006
VZ
16630
16631fi
a0b9e27f
MB
16632
16633echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16634
90dd450c 16635if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16636 cat >> confdefs.h <<\EOF
90dd450c 16637#define HAVE_PW_GECOS 1
a0b9e27f 16638EOF
c521c494 16639
90dd450c 16640fi
4f14bcd8 16641
8284b0c5 16642
d29b553b 16643if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16644 cat >> confdefs.h <<\EOF
d74f4b5a 16645#define wxUSE_WCHAR_T 1
a0b9e27f 16646EOF
d74f4b5a 16647
8284b0c5 16648
d74f4b5a
VZ
16649 WCSLEN_FOUND=0
16650 WCHAR_LINK=
a0b9e27f 16651 for ac_func in wcslen
7a30264c 16652do
a0b9e27f 16653echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 16654echo "configure:16655: checking for $ac_func" >&5
a0b9e27f
MB
16655if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657else
16658 cat > conftest.$ac_ext <<EOF
65d8ef1e 16659#line 16660 "configure"
4f14bcd8 16660#include "confdefs.h"
7a30264c 16661/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16662 which can conflict with char $ac_func(); below. */
7a30264c 16663#include <assert.h>
4f14bcd8
GD
16664/* Override any gcc2 internal prototype to avoid an error. */
16665/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16666 builtin and then its argument prototype would still apply. */
16667char $ac_func();
16668
16669int main() {
16670
7a30264c
VZ
16671/* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16675choke me
16676#else
a0b9e27f 16677$ac_func();
7a30264c
VZ
16678#endif
16679
a0b9e27f
MB
16680; return 0; }
16681EOF
65d8ef1e 16682if { (eval echo configure:16683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16683 rm -rf conftest*
16684 eval "ac_cv_func_$ac_func=yes"
16685else
16686 echo "configure: failed program was:" >&5
16687 cat conftest.$ac_ext >&5
16688 rm -rf conftest*
16689 eval "ac_cv_func_$ac_func=no"
16690fi
16691rm -f conftest*
16692fi
16693
16694if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16695 echo "$ac_t""yes" 1>&6
16696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16697 cat >> confdefs.h <<EOF
16698#define $ac_tr_func 1
16699EOF
d74f4b5a 16700 WCSLEN_FOUND=1
a0b9e27f
MB
16701else
16702 echo "$ac_t""no" 1>&6
7a30264c
VZ
16703fi
16704done
9d8deca0 16705
8284b0c5 16706
d74f4b5a 16707 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16708 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16709 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
65d8ef1e 16710echo "configure:16711: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16711ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16712if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16713 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16714else
a0b9e27f 16715 ac_save_LIBS="$LIBS"
7a30264c 16716LIBS="-lmsvcrt $LIBS"
a0b9e27f 16717cat > conftest.$ac_ext <<EOF
65d8ef1e 16718#line 16719 "configure"
10f2d63a 16719#include "confdefs.h"
4f14bcd8
GD
16720/* Override any gcc2 internal prototype to avoid an error. */
16721/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16722 builtin and then its argument prototype would still apply. */
16723char wcslen();
16724
16725int main() {
16726wcslen()
16727; return 0; }
16728EOF
65d8ef1e 16729if { (eval echo configure:16730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16730 rm -rf conftest*
16731 eval "ac_cv_lib_$ac_lib_var=yes"
16732else
16733 echo "configure: failed program was:" >&5
16734 cat conftest.$ac_ext >&5
16735 rm -rf conftest*
16736 eval "ac_cv_lib_$ac_lib_var=no"
16737fi
16738rm -f conftest*
16739LIBS="$ac_save_LIBS"
16740
16741fi
16742if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16743 echo "$ac_t""yes" 1>&6
d74f4b5a 16744 WCHAR_OK=1
a0b9e27f
MB
16745else
16746 echo "$ac_t""no" 1>&6
d29b553b 16747fi
698dcdb6 16748
7a30264c 16749 else
a0b9e27f 16750 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
65d8ef1e 16751echo "configure:16752: checking for wcslen in -lw" >&5
a0b9e27f
MB
16752ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16754 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16755else
a0b9e27f 16756 ac_save_LIBS="$LIBS"
7a30264c 16757LIBS="-lw $LIBS"
a0b9e27f 16758cat > conftest.$ac_ext <<EOF
65d8ef1e 16759#line 16760 "configure"
95c8801c 16760#include "confdefs.h"
4f14bcd8
GD
16761/* Override any gcc2 internal prototype to avoid an error. */
16762/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16763 builtin and then its argument prototype would still apply. */
16764char wcslen();
52127426 16765
a0b9e27f
MB
16766int main() {
16767wcslen()
16768; return 0; }
16769EOF
65d8ef1e 16770if { (eval echo configure:16771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16771 rm -rf conftest*
16772 eval "ac_cv_lib_$ac_lib_var=yes"
16773else
16774 echo "configure: failed program was:" >&5
16775 cat conftest.$ac_ext >&5
16776 rm -rf conftest*
16777 eval "ac_cv_lib_$ac_lib_var=no"
16778fi
16779rm -f conftest*
16780LIBS="$ac_save_LIBS"
16781
16782fi
16783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16784 echo "$ac_t""yes" 1>&6
16785
7a30264c 16786 WCHAR_LINK=" -lw"
d74f4b5a 16787 WCSLEN_FOUND=1
a0b9e27f
MB
16788
16789else
16790 echo "$ac_t""no" 1>&6
4f14bcd8 16791fi
10f2d63a 16792
7a30264c 16793 fi
d29b553b 16794 fi
95c8801c 16795
d74f4b5a 16796 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16797 cat >> confdefs.h <<\EOF
d74f4b5a 16798#define HAVE_WCSLEN 1
a0b9e27f 16799EOF
10f2d63a 16800
d74f4b5a 16801 fi
52127426 16802
a0b9e27f 16803 for ac_func in wcsrtombs
eb4efbdc 16804do
a0b9e27f 16805echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 16806echo "configure:16807: checking for $ac_func" >&5
a0b9e27f
MB
16807if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16808 echo $ac_n "(cached) $ac_c" 1>&6
16809else
16810 cat > conftest.$ac_ext <<EOF
65d8ef1e 16811#line 16812 "configure"
eb4efbdc
VZ
16812#include "confdefs.h"
16813/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16814 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16815#include <assert.h>
16816/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16817/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16818 builtin and then its argument prototype would still apply. */
16819char $ac_func();
16820
16821int main() {
16822
10f2d63a
VZ
16823/* The GNU C library defines this for functions which it implements
16824 to always fail with ENOSYS. Some functions are actually named
16825 something starting with __ and the normal name is an alias. */
247f5006 16826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
16827choke me
16828#else
a0b9e27f 16829$ac_func();
10f2d63a
VZ
16830#endif
16831
a0b9e27f
MB
16832; return 0; }
16833EOF
65d8ef1e 16834if { (eval echo configure:16835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16835 rm -rf conftest*
16836 eval "ac_cv_func_$ac_func=yes"
16837else
16838 echo "configure: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16840 rm -rf conftest*
16841 eval "ac_cv_func_$ac_func=no"
16842fi
16843rm -f conftest*
16844fi
270a909e 16845
a0b9e27f
MB
16846if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16847 echo "$ac_t""yes" 1>&6
16848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16849 cat >> confdefs.h <<EOF
16850#define $ac_tr_func 1
16851EOF
16852
16853else
16854 echo "$ac_t""no" 1>&6
4f14bcd8 16855fi
247f5006 16856done
1e487827 16857
af15babd 16858else
a0b9e27f 16859 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 16860fi
52127426 16861
8284b0c5 16862
a0b9e27f
MB
16863ac_ext=C
16864# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16865ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16866ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16867ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16868cross_compiling=$ac_cv_prog_cxx_cross
af15babd 16869
247f5006
VZ
16870
16871for ac_func in vsnprintf
16872do
a0b9e27f 16873echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 16874echo "configure:16875: checking for $ac_func" >&5
a0b9e27f
MB
16875if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16876 echo $ac_n "(cached) $ac_c" 1>&6
16877else
16878 cat > conftest.$ac_ext <<EOF
65d8ef1e 16879#line 16880 "configure"
af15babd 16880#include "confdefs.h"
247f5006 16881/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16882 which can conflict with char $ac_func(); below. */
247f5006
VZ
16883#include <assert.h>
16884/* Override any gcc2 internal prototype to avoid an error. */
16885#ifdef __cplusplus
16886extern "C"
16887#endif
16888/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16889 builtin and then its argument prototype would still apply. */
16890char $ac_func();
16891
16892int main() {
16893
247f5006
VZ
16894/* The GNU C library defines this for functions which it implements
16895 to always fail with ENOSYS. Some functions are actually named
16896 something starting with __ and the normal name is an alias. */
16897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16898choke me
16899#else
a0b9e27f 16900$ac_func();
247f5006 16901#endif
af15babd 16902
a0b9e27f
MB
16903; return 0; }
16904EOF
65d8ef1e 16905if { (eval echo configure:16906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16906 rm -rf conftest*
16907 eval "ac_cv_func_$ac_func=yes"
16908else
16909 echo "configure: failed program was:" >&5
16910 cat conftest.$ac_ext >&5
16911 rm -rf conftest*
16912 eval "ac_cv_func_$ac_func=no"
16913fi
16914rm -f conftest*
16915fi
52127426 16916
a0b9e27f
MB
16917if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16918 echo "$ac_t""yes" 1>&6
16919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16920 cat >> confdefs.h <<EOF
16921#define $ac_tr_func 1
16922EOF
16923
16924else
16925 echo "$ac_t""no" 1>&6
5c6fa7d2 16926fi
247f5006 16927done
8284b0c5 16928
4f14bcd8 16929
247f5006 16930if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 16931 for ac_func in fputwc wprintf vswprintf
d74f4b5a 16932do
a0b9e27f 16933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 16934echo "configure:16935: checking for $ac_func" >&5
a0b9e27f
MB
16935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16936 echo $ac_n "(cached) $ac_c" 1>&6
16937else
16938 cat > conftest.$ac_ext <<EOF
65d8ef1e 16939#line 16940 "configure"
d74f4b5a
VZ
16940#include "confdefs.h"
16941/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16942 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
16943#include <assert.h>
16944/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
16945#ifdef __cplusplus
16946extern "C"
16947#endif
d74f4b5a 16948/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16949 builtin and then its argument prototype would still apply. */
16950char $ac_func();
16951
16952int main() {
16953
d74f4b5a
VZ
16954/* The GNU C library defines this for functions which it implements
16955 to always fail with ENOSYS. Some functions are actually named
16956 something starting with __ and the normal name is an alias. */
16957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16958choke me
16959#else
a0b9e27f 16960$ac_func();
d74f4b5a
VZ
16961#endif
16962
a0b9e27f
MB
16963; return 0; }
16964EOF
65d8ef1e 16965if { (eval echo configure:16966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16966 rm -rf conftest*
16967 eval "ac_cv_func_$ac_func=yes"
16968else
16969 echo "configure: failed program was:" >&5
16970 cat conftest.$ac_ext >&5
16971 rm -rf conftest*
16972 eval "ac_cv_func_$ac_func=no"
16973fi
16974rm -f conftest*
16975fi
d74f4b5a 16976
a0b9e27f
MB
16977if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16978 echo "$ac_t""yes" 1>&6
16979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16980 cat >> confdefs.h <<EOF
16981#define $ac_tr_func 1
16982EOF
16983
16984else
16985 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
16986fi
16987done
16988
79668cae 16989 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
65d8ef1e 16990echo "configure:16991: checking for _vsnwprintf" >&5
79668cae 16991 cat > conftest.$ac_ext <<EOF
65d8ef1e 16992#line 16993 "configure"
79668cae
MB
16993#include "confdefs.h"
16994#include <wchar.h>
16995int main() {
16996&_vsnwprintf;
16997; return 0; }
16998EOF
65d8ef1e 16999if { (eval echo configure:17000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17000 rm -rf conftest*
17001 echo "$ac_t""yes" 1>&6
17002 cat >> confdefs.h <<\EOF
17003#define HAVE__VSNWPRINTF 1
17004EOF
17005
17006else
17007 echo "configure: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17009 rm -rf conftest*
17010 echo "$ac_t""no" 1>&6
17011fi
17012rm -f conftest*;
d74f4b5a
VZ
17013fi
17014
247f5006 17015ac_ext=c
a0b9e27f 17016# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17017ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17018ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17019ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17020cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17021
17022
17023
17024
4f14bcd8 17025if test "$TOOLKIT" != "MSW"; then
af15babd 17026
8284b0c5
MB
17027
17028
a0b9e27f
MB
17029ac_ext=C
17030# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17031ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17032ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17033ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17034cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17035
52127426 17036
a0b9e27f
MB
17037
17038 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17039if test "${with_libiconv_prefix+set}" = set; then
17040 withval="$with_libiconv_prefix"
a0b9e27f 17041
b040e242
VS
17042 for dir in `echo "$withval" | tr : ' '`; do
17043 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17044 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17045 done
a0b9e27f
MB
17046
17047fi
b040e242
VS
17048
17049
a0b9e27f 17050 echo $ac_n "checking for iconv""... $ac_c" 1>&6
65d8ef1e 17051echo "configure:17052: checking for iconv" >&5
a0b9e27f
MB
17052if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17053 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17054else
a0b9e27f 17055
b040e242
VS
17056 am_cv_func_iconv="no, consider installing GNU libiconv"
17057 am_cv_lib_iconv=no
a0b9e27f 17058 cat > conftest.$ac_ext <<EOF
65d8ef1e 17059#line 17060 "configure"
af15babd 17060#include "confdefs.h"
b040e242 17061#include <stdlib.h>
4f14bcd8 17062#include <iconv.h>
a0b9e27f 17063int main() {
b040e242
VS
17064iconv_t cd = iconv_open("","");
17065 iconv(cd,NULL,NULL,NULL,NULL);
17066 iconv_close(cd);
a0b9e27f
MB
17067; return 0; }
17068EOF
65d8ef1e 17069if { (eval echo configure:17070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17070 rm -rf conftest*
b040e242 17071 am_cv_func_iconv=yes
af15babd 17072else
a0b9e27f
MB
17073 echo "configure: failed program was:" >&5
17074 cat conftest.$ac_ext >&5
b040e242 17075fi
a0b9e27f 17076rm -f conftest*
b040e242
VS
17077 if test "$am_cv_func_iconv" != yes; then
17078 am_save_LIBS="$LIBS"
17079 LIBS="$LIBS -liconv"
a0b9e27f 17080 cat > conftest.$ac_ext <<EOF
65d8ef1e 17081#line 17082 "configure"
b040e242
VS
17082#include "confdefs.h"
17083#include <stdlib.h>
17084#include <iconv.h>
a0b9e27f 17085int main() {
b040e242
VS
17086iconv_t cd = iconv_open("","");
17087 iconv(cd,NULL,NULL,NULL,NULL);
17088 iconv_close(cd);
a0b9e27f
MB
17089; return 0; }
17090EOF
65d8ef1e 17091if { (eval echo configure:17092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17092 rm -rf conftest*
b040e242
VS
17093 am_cv_lib_iconv=yes
17094 am_cv_func_iconv=yes
17095else
a0b9e27f
MB
17096 echo "configure: failed program was:" >&5
17097 cat conftest.$ac_ext >&5
af15babd 17098fi
a0b9e27f 17099rm -f conftest*
b040e242
VS
17100 LIBS="$am_save_LIBS"
17101 fi
a0b9e27f 17102
247f5006 17103fi
247f5006 17104
a0b9e27f
MB
17105echo "$ac_t""$am_cv_func_iconv" 1>&6
17106 if test "$am_cv_func_iconv" = yes; then
17107 cat >> confdefs.h <<\EOF
b040e242 17108#define HAVE_ICONV 1
a0b9e27f 17109EOF
b040e242 17110
a0b9e27f 17111 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
65d8ef1e 17112echo "configure:17113: checking if iconv needs const" >&5
a0b9e27f
MB
17113if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17114 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17115else
a0b9e27f 17116 cat > conftest.$ac_ext <<EOF
65d8ef1e 17117#line 17118 "configure"
b040e242
VS
17118#include "confdefs.h"
17119
17120#include <stdlib.h>
17121#include <iconv.h>
17122extern
17123#ifdef __cplusplus
17124"C"
17125#endif
17126#if defined(__STDC__) || defined(__cplusplus)
17127size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17128#else
17129size_t iconv();
17130#endif
a0b9e27f
MB
17131
17132int main() {
af15babd 17133
a0b9e27f
MB
17134; return 0; }
17135EOF
65d8ef1e 17136if { (eval echo configure:17137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17137 rm -rf conftest*
b7043674 17138 wx_cv_func_iconv_const="no"
b040e242 17139else
a0b9e27f
MB
17140 echo "configure: failed program was:" >&5
17141 cat conftest.$ac_ext >&5
17142 rm -rf conftest*
17143 wx_cv_func_iconv_const="yes"
17144
5c6fa7d2 17145fi
a0b9e27f
MB
17146rm -f conftest*
17147
247f5006 17148fi
a0b9e27f
MB
17149
17150echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17151
17152 iconv_const=
1c405bb5 17153 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17154 iconv_const="const"
17155 fi
17156
a0b9e27f 17157 cat >> confdefs.h <<EOF
f09359cf 17158#define ICONV_CONST $iconv_const
a0b9e27f 17159EOF
b040e242
VS
17160
17161 fi
17162 LIBICONV=
17163 if test "$am_cv_lib_iconv" = yes; then
17164 LIBICONV="-liconv"
17165 fi
a0b9e27f 17166
b040e242
VS
17167
17168LIBS="$LIBICONV $LIBS"
4f14bcd8 17169ac_ext=c
a0b9e27f 17170# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17171ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17172ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17173ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17174cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17175
5c6fa7d2 17176
8284b0c5 17177if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17178 for ac_func in sigaction
af15babd 17179do
a0b9e27f 17180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17181echo "configure:17182: checking for $ac_func" >&5
a0b9e27f
MB
17182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17183 echo $ac_n "(cached) $ac_c" 1>&6
17184else
17185 cat > conftest.$ac_ext <<EOF
65d8ef1e 17186#line 17187 "configure"
af15babd
VZ
17187#include "confdefs.h"
17188/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17189 which can conflict with char $ac_func(); below. */
af15babd
VZ
17190#include <assert.h>
17191/* Override any gcc2 internal prototype to avoid an error. */
17192/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17193 builtin and then its argument prototype would still apply. */
17194char $ac_func();
17195
17196int main() {
17197
af15babd
VZ
17198/* The GNU C library defines this for functions which it implements
17199 to always fail with ENOSYS. Some functions are actually named
17200 something starting with __ and the normal name is an alias. */
17201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17202choke me
17203#else
a0b9e27f 17204$ac_func();
af15babd
VZ
17205#endif
17206
a0b9e27f
MB
17207; return 0; }
17208EOF
65d8ef1e 17209if { (eval echo configure:17210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17210 rm -rf conftest*
17211 eval "ac_cv_func_$ac_func=yes"
17212else
17213 echo "configure: failed program was:" >&5
17214 cat conftest.$ac_ext >&5
17215 rm -rf conftest*
17216 eval "ac_cv_func_$ac_func=no"
17217fi
17218rm -f conftest*
17219fi
7b4a847f 17220
a0b9e27f
MB
17221if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17222 echo "$ac_t""yes" 1>&6
17223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17224 cat >> confdefs.h <<EOF
17225#define $ac_tr_func 1
17226EOF
17227
17228else
17229 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17230fi
17231done
17232
8284b0c5 17233
4f14bcd8 17234 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17235 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17236 wxUSE_ON_FATAL_EXCEPTION=no
17237 fi
17238
17239 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17240
17241 ac_ext=C
17242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17243ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17246cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17247
5c6fa7d2 17248
a0b9e27f 17249 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
65d8ef1e 17250echo "configure:17251: checking for sa_handler type" >&5
a0b9e27f
MB
17251if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17252 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17253else
a0b9e27f
MB
17254
17255 cat > conftest.$ac_ext <<EOF
65d8ef1e 17256#line 17257 "configure"
af15babd 17257#include "confdefs.h"
4f14bcd8 17258#include <signal.h>
a0b9e27f 17259int main() {
4f14bcd8
GD
17260
17261 extern void testSigHandler(int);
17262
17263 struct sigaction sa;
17264 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17265
17266; return 0; }
17267EOF
65d8ef1e 17268if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17269 rm -rf conftest*
17270
4f14bcd8 17271 wx_cv_type_sa_handler=int
a0b9e27f 17272
af15babd 17273else
a0b9e27f
MB
17274 echo "configure: failed program was:" >&5
17275 cat conftest.$ac_ext >&5
17276 rm -rf conftest*
17277
4f14bcd8 17278 wx_cv_type_sa_handler=void
a0b9e27f 17279
5c6fa7d2 17280fi
a0b9e27f
MB
17281rm -f conftest*
17282
247f5006 17283fi
a0b9e27f
MB
17284
17285echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17286
17287 ac_ext=c
a0b9e27f 17288# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17289ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17290ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17291ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17292cross_compiling=$ac_cv_prog_cc_cross
579d8138 17293
8284b0c5 17294
a0b9e27f 17295 cat >> confdefs.h <<EOF
4f14bcd8 17296#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17297EOF
af15babd 17298
4f14bcd8
GD
17299 fi
17300fi
af15babd 17301
a1d22ad7 17302for ac_func in mkstemp mktemp
af15babd 17303do
a0b9e27f 17304echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17305echo "configure:17306: checking for $ac_func" >&5
a0b9e27f
MB
17306if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17307 echo $ac_n "(cached) $ac_c" 1>&6
17308else
17309 cat > conftest.$ac_ext <<EOF
65d8ef1e 17310#line 17311 "configure"
af15babd
VZ
17311#include "confdefs.h"
17312/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17313 which can conflict with char $ac_func(); below. */
af15babd
VZ
17314#include <assert.h>
17315/* Override any gcc2 internal prototype to avoid an error. */
17316/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17317 builtin and then its argument prototype would still apply. */
17318char $ac_func();
17319
17320int main() {
17321
af15babd
VZ
17322/* The GNU C library defines this for functions which it implements
17323 to always fail with ENOSYS. Some functions are actually named
17324 something starting with __ and the normal name is an alias. */
17325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17326choke me
17327#else
a0b9e27f 17328$ac_func();
af15babd
VZ
17329#endif
17330
a0b9e27f
MB
17331; return 0; }
17332EOF
65d8ef1e 17333if { (eval echo configure:17334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17334 rm -rf conftest*
17335 eval "ac_cv_func_$ac_func=yes"
17336else
17337 echo "configure: failed program was:" >&5
17338 cat conftest.$ac_ext >&5
17339 rm -rf conftest*
17340 eval "ac_cv_func_$ac_func=no"
17341fi
17342rm -f conftest*
17343fi
af15babd 17344
a0b9e27f
MB
17345if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17346 echo "$ac_t""yes" 1>&6
17347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17348 cat >> confdefs.h <<EOF
17349#define $ac_tr_func 1
17350EOF
ade35f11 17351 break
a0b9e27f
MB
17352else
17353 echo "$ac_t""no" 1>&6
ade35f11
VZ
17354fi
17355done
17356
8284b0c5 17357
a0b9e27f 17358echo $ac_n "checking for statfs""... $ac_c" 1>&6
65d8ef1e 17359echo "configure:17360: checking for statfs" >&5
a0b9e27f
MB
17360if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17361 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17362else
a0b9e27f 17363 cat > conftest.$ac_ext <<EOF
65d8ef1e 17364#line 17365 "configure"
4f14bcd8
GD
17365#include "confdefs.h"
17366
17367 #if defined(__BSD__)
17368 #include <sys/param.h>
17369 #include <sys/mount.h>
17370 #else
17371 #include <sys/vfs.h>
17372 #endif
a0b9e27f
MB
17373
17374int main() {
4f14bcd8
GD
17375
17376 long l;
17377 struct statfs fs;
17378 statfs("/", &fs);
17379 l = fs.f_bsize;
17380 l += fs.f_blocks;
17381 l += fs.f_bavail;
a0b9e27f
MB
17382
17383; return 0; }
17384EOF
65d8ef1e 17385if { (eval echo configure:17386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17386 rm -rf conftest*
17387
4f14bcd8 17388 wx_cv_func_statfs=yes
a0b9e27f 17389
4f14bcd8 17390else
a0b9e27f
MB
17391 echo "configure: failed program was:" >&5
17392 cat conftest.$ac_ext >&5
17393 rm -rf conftest*
17394
4f14bcd8 17395 wx_cv_func_statfs=no
a0b9e27f
MB
17396
17397
5c6fa7d2 17398fi
a0b9e27f 17399rm -f conftest*
8284b0c5 17400
247f5006 17401fi
a0b9e27f
MB
17402
17403echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17404
17405if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17406 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17407 cat >> confdefs.h <<\EOF
4f14bcd8 17408#define HAVE_STATFS 1
a0b9e27f 17409EOF
4f14bcd8
GD
17410
17411else
a0b9e27f 17412 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
65d8ef1e 17413echo "configure:17414: checking for statvfs" >&5
a0b9e27f
MB
17414if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17415 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17416else
a0b9e27f 17417 cat > conftest.$ac_ext <<EOF
65d8ef1e 17418#line 17419 "configure"
af15babd 17419#include "confdefs.h"
af15babd 17420
54ab82b3
VZ
17421 #include <stddef.h>
17422 #include <sys/statvfs.h>
a0b9e27f
MB
17423
17424int main() {
af15babd 17425
54ab82b3 17426 statvfs("/", NULL);
a0b9e27f
MB
17427
17428; return 0; }
17429EOF
65d8ef1e 17430if { (eval echo configure:17431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17431 rm -rf conftest*
54ab82b3 17432 wx_cv_func_statvfs=yes
af15babd 17433else
a0b9e27f
MB
17434 echo "configure: failed program was:" >&5
17435 cat conftest.$ac_ext >&5
17436 rm -rf conftest*
54ab82b3 17437 wx_cv_func_statvfs=no
a0b9e27f 17438
5c6fa7d2 17439fi
a0b9e27f
MB
17440rm -f conftest*
17441
247f5006 17442fi
a0b9e27f
MB
17443
17444echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17445
4f14bcd8 17446 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17447
17448 ac_ext=C
17449# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17450ac_cpp='$CXXCPP $CPPFLAGS'
17451ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17452ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17453cross_compiling=$ac_cv_prog_cxx_cross
17454
17455
17456 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
65d8ef1e 17457echo "configure:17458: checking for statvfs argument type" >&5
54ab82b3
VZ
17458if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17459 echo $ac_n "(cached) $ac_c" 1>&6
17460else
17461 cat > conftest.$ac_ext <<EOF
65d8ef1e 17462#line 17463 "configure"
54ab82b3
VZ
17463#include "confdefs.h"
17464
17465 #include <sys/statvfs.h>
17466
17467int main() {
17468
17469 long l;
17470 statvfs_t fs;
17471 statvfs("/", &fs);
17472 l = fs.f_bsize;
17473 l += fs.f_blocks;
17474 l += fs.f_bavail;
17475
17476; return 0; }
17477EOF
65d8ef1e 17478if { (eval echo configure:17479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17479 rm -rf conftest*
17480 wx_cv_type_statvfs_t=statvfs_t
17481else
17482 echo "configure: failed program was:" >&5
17483 cat conftest.$ac_ext >&5
17484 rm -rf conftest*
17485
17486 cat > conftest.$ac_ext <<EOF
65d8ef1e 17487#line 17488 "configure"
54ab82b3
VZ
17488#include "confdefs.h"
17489
17490 #include <sys/statvfs.h>
17491
17492int main() {
17493
17494 long l;
65d8ef1e 17495 struct statvfs fs;
54ab82b3
VZ
17496 statvfs("/", &fs);
17497 l = fs.f_bsize;
17498 l += fs.f_blocks;
17499 l += fs.f_bavail;
17500
17501; return 0; }
17502EOF
65d8ef1e 17503if { (eval echo configure:17504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17504 rm -rf conftest*
17505 wx_cv_type_statvfs_t="struct statvfs"
17506else
17507 echo "configure: failed program was:" >&5
17508 cat conftest.$ac_ext >&5
17509 rm -rf conftest*
17510 wx_cv_type_statvfs_t="unknown"
17511
17512fi
17513rm -f conftest*
17514
17515
17516fi
17517rm -f conftest*
17518
17519fi
17520
17521echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17522
17523 ac_ext=c
17524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17525ac_cpp='$CPP $CPPFLAGS'
17526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17528cross_compiling=$ac_cv_prog_cc_cross
17529
17530
17531 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17532 cat >> confdefs.h <<\EOF
4f14bcd8 17533#define HAVE_STATVFS 1
a0b9e27f 17534EOF
af15babd 17535
54ab82b3 17536 fi
4f14bcd8 17537 else
54ab82b3 17538 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17539 fi
17540fi
af15babd 17541
54ab82b3
VZ
17542if test "$wx_cv_type_statvfs_t" != "unknown"; then
17543 cat >> confdefs.h <<EOF
17544#define WX_STATFS_T $wx_cv_type_statvfs_t
17545EOF
17546
17547else
17548 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17549fi
17550
4f14bcd8 17551if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17552 for ac_func in fcntl flock
af15babd 17553do
a0b9e27f 17554echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17555echo "configure:17556: checking for $ac_func" >&5
a0b9e27f
MB
17556if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17557 echo $ac_n "(cached) $ac_c" 1>&6
17558else
17559 cat > conftest.$ac_ext <<EOF
65d8ef1e 17560#line 17561 "configure"
af15babd
VZ
17561#include "confdefs.h"
17562/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17563 which can conflict with char $ac_func(); below. */
af15babd
VZ
17564#include <assert.h>
17565/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17566/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17567 builtin and then its argument prototype would still apply. */
17568char $ac_func();
17569
17570int main() {
17571
af15babd
VZ
17572/* The GNU C library defines this for functions which it implements
17573 to always fail with ENOSYS. Some functions are actually named
17574 something starting with __ and the normal name is an alias. */
17575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17576choke me
17577#else
a0b9e27f 17578$ac_func();
af15babd
VZ
17579#endif
17580
a0b9e27f
MB
17581; return 0; }
17582EOF
65d8ef1e 17583if { (eval echo configure:17584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17584 rm -rf conftest*
17585 eval "ac_cv_func_$ac_func=yes"
17586else
17587 echo "configure: failed program was:" >&5
17588 cat conftest.$ac_ext >&5
17589 rm -rf conftest*
17590 eval "ac_cv_func_$ac_func=no"
17591fi
17592rm -f conftest*
17593fi
17594
17595if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17596 echo "$ac_t""yes" 1>&6
17597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17598 cat >> confdefs.h <<EOF
17599#define $ac_tr_func 1
17600EOF
4f14bcd8 17601 break
a0b9e27f
MB
17602else
17603 echo "$ac_t""no" 1>&6
af15babd
VZ
17604fi
17605done
17606
8284b0c5 17607
4f14bcd8 17608 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17609 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17610 wxUSE_SNGLINST_CHECKER=no
17611 fi
17612fi
af15babd 17613
4f14bcd8 17614for ac_func in timegm
af15babd 17615do
a0b9e27f 17616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17617echo "configure:17618: checking for $ac_func" >&5
a0b9e27f
MB
17618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17619 echo $ac_n "(cached) $ac_c" 1>&6
17620else
17621 cat > conftest.$ac_ext <<EOF
65d8ef1e 17622#line 17623 "configure"
af15babd
VZ
17623#include "confdefs.h"
17624/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17625 which can conflict with char $ac_func(); below. */
af15babd
VZ
17626#include <assert.h>
17627/* Override any gcc2 internal prototype to avoid an error. */
17628/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17629 builtin and then its argument prototype would still apply. */
17630char $ac_func();
17631
17632int main() {
17633
af15babd
VZ
17634/* The GNU C library defines this for functions which it implements
17635 to always fail with ENOSYS. Some functions are actually named
17636 something starting with __ and the normal name is an alias. */
247f5006
VZ
17637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17638choke me
17639#else
a0b9e27f 17640$ac_func();
247f5006
VZ
17641#endif
17642
a0b9e27f
MB
17643; return 0; }
17644EOF
65d8ef1e 17645if { (eval echo configure:17646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17646 rm -rf conftest*
17647 eval "ac_cv_func_$ac_func=yes"
17648else
17649 echo "configure: failed program was:" >&5
17650 cat conftest.$ac_ext >&5
17651 rm -rf conftest*
17652 eval "ac_cv_func_$ac_func=no"
17653fi
17654rm -f conftest*
17655fi
703e0a69 17656
a0b9e27f
MB
17657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17658 echo "$ac_t""yes" 1>&6
17659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17660 cat >> confdefs.h <<EOF
17661#define $ac_tr_func 1
17662EOF
17663
17664else
17665 echo "$ac_t""no" 1>&6
af15babd
VZ
17666fi
17667done
17668
8284b0c5 17669
4f14bcd8 17670for ac_func in putenv setenv
10f2d63a 17671do
a0b9e27f 17672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17673echo "configure:17674: checking for $ac_func" >&5
a0b9e27f
MB
17674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676else
17677 cat > conftest.$ac_ext <<EOF
65d8ef1e 17678#line 17679 "configure"
af15babd
VZ
17679#include "confdefs.h"
17680/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17681 which can conflict with char $ac_func(); below. */
af15babd
VZ
17682#include <assert.h>
17683/* Override any gcc2 internal prototype to avoid an error. */
17684/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17685 builtin and then its argument prototype would still apply. */
17686char $ac_func();
17687
17688int main() {
17689
af15babd
VZ
17690/* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17694choke me
17695#else
a0b9e27f 17696$ac_func();
af15babd
VZ
17697#endif
17698
a0b9e27f
MB
17699; return 0; }
17700EOF
65d8ef1e 17701if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17702 rm -rf conftest*
17703 eval "ac_cv_func_$ac_func=yes"
17704else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708 eval "ac_cv_func_$ac_func=no"
17709fi
17710rm -f conftest*
17711fi
17712
17713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17714 echo "$ac_t""yes" 1>&6
17715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17716 cat >> confdefs.h <<EOF
17717#define $ac_tr_func 1
17718EOF
4f14bcd8 17719 break
a0b9e27f
MB
17720else
17721 echo "$ac_t""no" 1>&6
af15babd 17722fi
af15babd
VZ
17723done
17724
8284b0c5 17725
4f14bcd8
GD
17726HAVE_SOME_SLEEP_FUNC=0
17727if test "$USE_BEOS" = 1; then
a0b9e27f 17728 cat >> confdefs.h <<\EOF
4f14bcd8 17729#define HAVE_SLEEP 1
a0b9e27f 17730EOF
af15babd 17731
4f14bcd8 17732 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17733fi
17734
4f14bcd8 17735if test "$USE_DARWIN" = 1; then
a0b9e27f 17736 cat >> confdefs.h <<\EOF
4f14bcd8 17737#define HAVE_USLEEP 1
a0b9e27f 17738EOF
10f2d63a 17739
4f14bcd8 17740 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17741fi
17742
4f14bcd8
GD
17743if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17744 POSIX4_LINK=
a0b9e27f 17745 for ac_func in nanosleep
4f14bcd8 17746do
a0b9e27f 17747echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17748echo "configure:17749: checking for $ac_func" >&5
a0b9e27f
MB
17749if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17750 echo $ac_n "(cached) $ac_c" 1>&6
17751else
17752 cat > conftest.$ac_ext <<EOF
65d8ef1e 17753#line 17754 "configure"
10f2d63a 17754#include "confdefs.h"
4f14bcd8 17755/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17756 which can conflict with char $ac_func(); below. */
4f14bcd8 17757#include <assert.h>
10f2d63a
VZ
17758/* Override any gcc2 internal prototype to avoid an error. */
17759/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17760 builtin and then its argument prototype would still apply. */
17761char $ac_func();
17762
17763int main() {
17764
4f14bcd8
GD
17765/* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17769choke me
17770#else
a0b9e27f 17771$ac_func();
4f14bcd8
GD
17772#endif
17773
a0b9e27f
MB
17774; return 0; }
17775EOF
65d8ef1e 17776if { (eval echo configure:17777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17777 rm -rf conftest*
17778 eval "ac_cv_func_$ac_func=yes"
17779else
17780 echo "configure: failed program was:" >&5
17781 cat conftest.$ac_ext >&5
17782 rm -rf conftest*
17783 eval "ac_cv_func_$ac_func=no"
17784fi
17785rm -f conftest*
17786fi
17787
17788if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17789 echo "$ac_t""yes" 1>&6
17790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17791 cat >> confdefs.h <<EOF
17792#define $ac_tr_func 1
17793EOF
17794 cat >> confdefs.h <<\EOF
4f14bcd8 17795#define HAVE_NANOSLEEP 1
a0b9e27f 17796EOF
4f14bcd8 17797
10f2d63a 17798else
a0b9e27f
MB
17799 echo "$ac_t""no" 1>&6
17800echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
65d8ef1e 17801echo "configure:17802: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
17802ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17804 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17805else
a0b9e27f 17806 ac_save_LIBS="$LIBS"
4f14bcd8 17807LIBS="-lposix4 $LIBS"
a0b9e27f 17808cat > conftest.$ac_ext <<EOF
65d8ef1e 17809#line 17810 "configure"
10f2d63a
VZ
17810#include "confdefs.h"
17811/* Override any gcc2 internal prototype to avoid an error. */
17812/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17813 builtin and then its argument prototype would still apply. */
17814char nanosleep();
17815
17816int main() {
17817nanosleep()
17818; return 0; }
17819EOF
65d8ef1e 17820if { (eval echo configure:17821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17821 rm -rf conftest*
17822 eval "ac_cv_lib_$ac_lib_var=yes"
17823else
17824 echo "configure: failed program was:" >&5
17825 cat conftest.$ac_ext >&5
17826 rm -rf conftest*
17827 eval "ac_cv_lib_$ac_lib_var=no"
17828fi
17829rm -f conftest*
17830LIBS="$ac_save_LIBS"
17831
17832fi
17833if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17834 echo "$ac_t""yes" 1>&6
17835
17836 cat >> confdefs.h <<\EOF
4f14bcd8 17837#define HAVE_NANOSLEEP 1
a0b9e27f 17838EOF
4f14bcd8 17839
3d63bc3a 17840 POSIX4_LINK=" -lposix4"
a0b9e27f 17841
10f2d63a 17842else
a0b9e27f 17843 echo "$ac_t""no" 1>&6
10f2d63a 17844
a0b9e27f 17845 for ac_func in usleep
4f14bcd8 17846do
a0b9e27f 17847echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17848echo "configure:17849: checking for $ac_func" >&5
a0b9e27f
MB
17849if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17850 echo $ac_n "(cached) $ac_c" 1>&6
17851else
17852 cat > conftest.$ac_ext <<EOF
65d8ef1e 17853#line 17854 "configure"
10f2d63a 17854#include "confdefs.h"
4f14bcd8 17855/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17856 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17857#include <assert.h>
17858/* Override any gcc2 internal prototype to avoid an error. */
17859/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17860 builtin and then its argument prototype would still apply. */
17861char $ac_func();
17862
17863int main() {
17864
4f14bcd8
GD
17865/* The GNU C library defines this for functions which it implements
17866 to always fail with ENOSYS. Some functions are actually named
17867 something starting with __ and the normal name is an alias. */
17868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17869choke me
17870#else
a0b9e27f 17871$ac_func();
4f14bcd8
GD
17872#endif
17873
a0b9e27f
MB
17874; return 0; }
17875EOF
65d8ef1e 17876if { (eval echo configure:17877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17877 rm -rf conftest*
17878 eval "ac_cv_func_$ac_func=yes"
17879else
17880 echo "configure: failed program was:" >&5
17881 cat conftest.$ac_ext >&5
17882 rm -rf conftest*
17883 eval "ac_cv_func_$ac_func=no"
17884fi
17885rm -f conftest*
17886fi
17887
17888if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17889 echo "$ac_t""yes" 1>&6
17890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17891 cat >> confdefs.h <<EOF
17892#define $ac_tr_func 1
17893EOF
17894 cat >> confdefs.h <<\EOF
4f14bcd8 17895#define HAVE_USLEEP 1
a0b9e27f 17896EOF
4f14bcd8 17897
698dcdb6 17898else
a0b9e27f
MB
17899 echo "$ac_t""no" 1>&6
17900echo "configure: warning: wxSleep() function will not work" 1>&2
17901
10f2d63a 17902fi
4f14bcd8 17903done
10f2d63a 17904
a0b9e27f
MB
17905
17906
6232543b 17907fi
10f2d63a 17908
a0b9e27f
MB
17909
17910
1e487827 17911fi
4f14bcd8 17912done
703e0a69 17913
10f2d63a
VZ
17914fi
17915
4f14bcd8 17916for ac_func in uname gethostname
70846f0a 17917do
a0b9e27f 17918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17919echo "configure:17920: checking for $ac_func" >&5
a0b9e27f
MB
17920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17921 echo $ac_n "(cached) $ac_c" 1>&6
17922else
17923 cat > conftest.$ac_ext <<EOF
65d8ef1e 17924#line 17925 "configure"
70846f0a
VZ
17925#include "confdefs.h"
17926/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17927 which can conflict with char $ac_func(); below. */
70846f0a
VZ
17928#include <assert.h>
17929/* Override any gcc2 internal prototype to avoid an error. */
17930/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17931 builtin and then its argument prototype would still apply. */
17932char $ac_func();
17933
17934int main() {
17935
70846f0a
VZ
17936/* The GNU C library defines this for functions which it implements
17937 to always fail with ENOSYS. Some functions are actually named
17938 something starting with __ and the normal name is an alias. */
17939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17940choke me
17941#else
a0b9e27f 17942$ac_func();
70846f0a
VZ
17943#endif
17944
a0b9e27f
MB
17945; return 0; }
17946EOF
65d8ef1e 17947if { (eval echo configure:17948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17948 rm -rf conftest*
17949 eval "ac_cv_func_$ac_func=yes"
17950else
17951 echo "configure: failed program was:" >&5
17952 cat conftest.$ac_ext >&5
17953 rm -rf conftest*
17954 eval "ac_cv_func_$ac_func=no"
17955fi
17956rm -f conftest*
17957fi
17958
17959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17960 echo "$ac_t""yes" 1>&6
17961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17962 cat >> confdefs.h <<EOF
17963#define $ac_tr_func 1
17964EOF
4f14bcd8 17965 break
a0b9e27f
MB
17966else
17967 echo "$ac_t""no" 1>&6
70846f0a
VZ
17968fi
17969done
17970
8284b0c5
MB
17971
17972
a0b9e27f
MB
17973ac_ext=C
17974# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17975ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17976ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17977ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17978cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17979
4f14bcd8
GD
17980
17981for ac_func in strtok_r
10f2d63a 17982do
a0b9e27f 17983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 17984echo "configure:17985: checking for $ac_func" >&5
a0b9e27f
MB
17985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17986 echo $ac_n "(cached) $ac_c" 1>&6
17987else
17988 cat > conftest.$ac_ext <<EOF
65d8ef1e 17989#line 17990 "configure"
10f2d63a 17990#include "confdefs.h"
4f14bcd8 17991/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17992 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17993#include <assert.h>
17994/* Override any gcc2 internal prototype to avoid an error. */
17995#ifdef __cplusplus
17996extern "C"
17997#endif
17998/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17999 builtin and then its argument prototype would still apply. */
18000char $ac_func();
18001
18002int main() {
18003
4f14bcd8
GD
18004/* The GNU C library defines this for functions which it implements
18005 to always fail with ENOSYS. Some functions are actually named
18006 something starting with __ and the normal name is an alias. */
18007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18008choke me
18009#else
a0b9e27f 18010$ac_func();
4f14bcd8
GD
18011#endif
18012
a0b9e27f
MB
18013; return 0; }
18014EOF
65d8ef1e 18015if { (eval echo configure:18016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18016 rm -rf conftest*
18017 eval "ac_cv_func_$ac_func=yes"
18018else
18019 echo "configure: failed program was:" >&5
18020 cat conftest.$ac_ext >&5
18021 rm -rf conftest*
18022 eval "ac_cv_func_$ac_func=no"
18023fi
18024rm -f conftest*
18025fi
4f14bcd8 18026
a0b9e27f
MB
18027if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18028 echo "$ac_t""yes" 1>&6
18029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18030 cat >> confdefs.h <<EOF
18031#define $ac_tr_func 1
18032EOF
18033
18034else
18035 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18036fi
18037done
18038
8284b0c5 18039
4f14bcd8 18040ac_ext=c
a0b9e27f 18041# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18042ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18043ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18044ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18045cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18046
5c6fa7d2 18047
8284b0c5 18048INET_LINK=
4f14bcd8
GD
18049for ac_func in inet_addr
18050do
a0b9e27f 18051echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 18052echo "configure:18053: checking for $ac_func" >&5
a0b9e27f
MB
18053if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18054 echo $ac_n "(cached) $ac_c" 1>&6
18055else
18056 cat > conftest.$ac_ext <<EOF
65d8ef1e 18057#line 18058 "configure"
10f2d63a 18058#include "confdefs.h"
4f14bcd8 18059/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18060 which can conflict with char $ac_func(); below. */
4f14bcd8 18061#include <assert.h>
10f2d63a
VZ
18062/* Override any gcc2 internal prototype to avoid an error. */
18063/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18064 builtin and then its argument prototype would still apply. */
18065char $ac_func();
18066
18067int main() {
18068
4f14bcd8
GD
18069/* The GNU C library defines this for functions which it implements
18070 to always fail with ENOSYS. Some functions are actually named
18071 something starting with __ and the normal name is an alias. */
18072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18073choke me
18074#else
a0b9e27f 18075$ac_func();
4f14bcd8
GD
18076#endif
18077
a0b9e27f
MB
18078; return 0; }
18079EOF
65d8ef1e 18080if { (eval echo configure:18081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18081 rm -rf conftest*
18082 eval "ac_cv_func_$ac_func=yes"
18083else
18084 echo "configure: failed program was:" >&5
18085 cat conftest.$ac_ext >&5
18086 rm -rf conftest*
18087 eval "ac_cv_func_$ac_func=no"
18088fi
18089rm -f conftest*
18090fi
18091
18092if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18093 echo "$ac_t""yes" 1>&6
18094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18095 cat >> confdefs.h <<EOF
18096#define $ac_tr_func 1
18097EOF
18098 cat >> confdefs.h <<\EOF
4f14bcd8 18099#define HAVE_INET_ADDR 1
a0b9e27f 18100EOF
10f2d63a
VZ
18101
18102else
a0b9e27f
MB
18103 echo "$ac_t""no" 1>&6
18104echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
65d8ef1e 18105echo "configure:18106: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18106ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18107if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18108 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18109else
a0b9e27f 18110 ac_save_LIBS="$LIBS"
4f14bcd8 18111LIBS="-lnsl $LIBS"
a0b9e27f 18112cat > conftest.$ac_ext <<EOF
65d8ef1e 18113#line 18114 "configure"
10f2d63a
VZ
18114#include "confdefs.h"
18115/* Override any gcc2 internal prototype to avoid an error. */
18116/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18117 builtin and then its argument prototype would still apply. */
18118char inet_addr();
18119
18120int main() {
18121inet_addr()
18122; return 0; }
18123EOF
65d8ef1e 18124if { (eval echo configure:18125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18125 rm -rf conftest*
18126 eval "ac_cv_lib_$ac_lib_var=yes"
18127else
18128 echo "configure: failed program was:" >&5
18129 cat conftest.$ac_ext >&5
18130 rm -rf conftest*
18131 eval "ac_cv_lib_$ac_lib_var=no"
18132fi
18133rm -f conftest*
18134LIBS="$ac_save_LIBS"
18135
18136fi
18137if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18138 echo "$ac_t""yes" 1>&6
4f14bcd8 18139 INET_LINK="nsl"
10f2d63a 18140else
a0b9e27f
MB
18141 echo "$ac_t""no" 1>&6
18142echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
65d8ef1e 18143echo "configure:18144: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18144ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18145if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18146 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18147else
a0b9e27f 18148 ac_save_LIBS="$LIBS"
4f14bcd8 18149LIBS="-lresolv $LIBS"
a0b9e27f 18150cat > conftest.$ac_ext <<EOF
65d8ef1e 18151#line 18152 "configure"
7b4a847f 18152#include "confdefs.h"
5c6fa7d2 18153/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18154/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18155 builtin and then its argument prototype would still apply. */
18156char inet_addr();
18157
18158int main() {
18159inet_addr()
18160; return 0; }
18161EOF
65d8ef1e 18162if { (eval echo configure:18163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18163 rm -rf conftest*
18164 eval "ac_cv_lib_$ac_lib_var=yes"
18165else
18166 echo "configure: failed program was:" >&5
18167 cat conftest.$ac_ext >&5
18168 rm -rf conftest*
18169 eval "ac_cv_lib_$ac_lib_var=no"
18170fi
18171rm -f conftest*
18172LIBS="$ac_save_LIBS"
18173
18174fi
18175if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18176 echo "$ac_t""yes" 1>&6
4f14bcd8 18177 INET_LINK="resolv"
698dcdb6 18178else
a0b9e27f
MB
18179 echo "$ac_t""no" 1>&6
18180echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
65d8ef1e 18181echo "configure:18182: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18182ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18184 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18185else
a0b9e27f 18186 ac_save_LIBS="$LIBS"
3c011993 18187LIBS="-lsocket $LIBS"
a0b9e27f 18188cat > conftest.$ac_ext <<EOF
65d8ef1e 18189#line 18190 "configure"
3c011993
VZ
18190#include "confdefs.h"
18191/* Override any gcc2 internal prototype to avoid an error. */
18192/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18193 builtin and then its argument prototype would still apply. */
18194char inet_addr();
4f14bcd8 18195
a0b9e27f
MB
18196int main() {
18197inet_addr()
18198; return 0; }
18199EOF
65d8ef1e 18200if { (eval echo configure:18201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18201 rm -rf conftest*
18202 eval "ac_cv_lib_$ac_lib_var=yes"
18203else
18204 echo "configure: failed program was:" >&5
18205 cat conftest.$ac_ext >&5
18206 rm -rf conftest*
18207 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18208fi
a0b9e27f
MB
18209rm -f conftest*
18210LIBS="$ac_save_LIBS"
698dcdb6 18211
7b4a847f 18212fi
a0b9e27f
MB
18213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18214 echo "$ac_t""yes" 1>&6
18215 INET_LINK="socket"
18216
18217else
18218 echo "$ac_t""no" 1>&6
18219fi
579d8138 18220
a0b9e27f 18221
5c6fa7d2 18222fi
52127426 18223
a0b9e27f
MB
18224
18225fi
247f5006 18226
a0b9e27f 18227
8284b0c5 18228
698dcdb6 18229fi
4f14bcd8
GD
18230done
18231
8284b0c5 18232
4f14bcd8
GD
18233for ac_func in inet_aton
18234do
a0b9e27f 18235echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 18236echo "configure:18237: checking for $ac_func" >&5
a0b9e27f
MB
18237if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239else
18240 cat > conftest.$ac_ext <<EOF
65d8ef1e 18241#line 18242 "configure"
f6bcfd97 18242#include "confdefs.h"
4f14bcd8 18243/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18244 which can conflict with char $ac_func(); below. */
4f14bcd8 18245#include <assert.h>
f6bcfd97
BP
18246/* Override any gcc2 internal prototype to avoid an error. */
18247/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18248 builtin and then its argument prototype would still apply. */
18249char $ac_func();
18250
18251int main() {
18252
4f14bcd8
GD
18253/* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257choke me
18258#else
a0b9e27f 18259$ac_func();
4f14bcd8
GD
18260#endif
18261
a0b9e27f
MB
18262; return 0; }
18263EOF
65d8ef1e 18264if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18265 rm -rf conftest*
18266 eval "ac_cv_func_$ac_func=yes"
18267else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=no"
18272fi
18273rm -f conftest*
18274fi
18275
18276if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18277 echo "$ac_t""yes" 1>&6
18278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18279 cat >> confdefs.h <<EOF
18280#define $ac_tr_func 1
18281EOF
18282 cat >> confdefs.h <<\EOF
4f14bcd8 18283#define HAVE_INET_ATON 1
a0b9e27f 18284EOF
4f14bcd8 18285
10f2d63a 18286else
a0b9e27f
MB
18287 echo "$ac_t""no" 1>&6
18288 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
65d8ef1e 18289echo "configure:18290: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18290ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18292 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18293else
a0b9e27f 18294 ac_save_LIBS="$LIBS"
4f14bcd8 18295LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18296cat > conftest.$ac_ext <<EOF
65d8ef1e 18297#line 18298 "configure"
10f2d63a 18298#include "confdefs.h"
6232543b 18299/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18300/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18301 builtin and then its argument prototype would still apply. */
18302char inet_aton();
18303
18304int main() {
18305inet_aton()
18306; return 0; }
18307EOF
65d8ef1e 18308if { (eval echo configure:18309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18309 rm -rf conftest*
18310 eval "ac_cv_lib_$ac_lib_var=yes"
18311else
18312 echo "configure: failed program was:" >&5
18313 cat conftest.$ac_ext >&5
18314 rm -rf conftest*
18315 eval "ac_cv_lib_$ac_lib_var=no"
18316fi
18317rm -f conftest*
18318LIBS="$ac_save_LIBS"
4f14bcd8 18319
10f2d63a 18320fi
a0b9e27f
MB
18321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18322 echo "$ac_t""yes" 1>&6
18323 cat >> confdefs.h <<\EOF
18324#define HAVE_INET_ATON 1
18325EOF
10f2d63a 18326
a0b9e27f
MB
18327else
18328 echo "$ac_t""no" 1>&6
18329fi
247f5006 18330
a0b9e27f 18331
10f2d63a 18332fi
4f14bcd8 18333done
10f2d63a 18334
8284b0c5 18335
4f14bcd8 18336if test "x$INET_LINK" != "x"; then
a0b9e27f 18337 cat >> confdefs.h <<\EOF
4f14bcd8 18338#define HAVE_INET_ADDR 1
a0b9e27f 18339EOF
4f14bcd8 18340
3d63bc3a 18341 INET_LINK=" -l$INET_LINK"
6232543b 18342fi
10f2d63a 18343
1e487827 18344fi
703e0a69 18345
8284b0c5 18346
a0b9e27f 18347cat > confcache <<\EOF
4f14bcd8
GD
18348# This file is a shell script that caches the results of configure
18349# tests run on this system so they can be shared between configure
a0b9e27f
MB
18350# scripts and configure runs. It is not useful on other systems.
18351# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18352#
a0b9e27f
MB
18353# By default, configure uses ./config.cache as the cache file,
18354# creating it if it does not exist already. You can give configure
18355# the --cache-file=FILE option to use a different cache file; that is
18356# what configure does when it calls configure scripts in
18357# subdirectories, so they share the cache.
18358# Giving --cache-file=/dev/null disables caching, for debugging configure.
18359# config.status only pays attention to the cache file if you give it the
18360# --recheck option to rerun configure.
4f14bcd8 18361#
a0b9e27f 18362EOF
4f14bcd8
GD
18363# The following way of writing the cache mishandles newlines in values,
18364# but we know of no workaround that is simple, portable, and efficient.
18365# So, don't put newlines in cache variables' values.
18366# Ultrix sh set writes to stderr and can't be redirected directly,
18367# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18368(set) 2>&1 |
18369 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18370 *ac_space=\ *)
18371 # `set' does not quote correctly, so add quotes (double-quote substitution
18372 # turns \\\\ into \\, and sed turns \\ into \).
18373 sed -n \
18374 -e "s/'/'\\\\''/g" \
18375 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18376 ;;
18377 *)
18378 # `set' quotes correctly as required by POSIX, so do not add quotes.
18379 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18380 ;;
18381 esac >> confcache
18382if cmp -s $cache_file confcache; then
18383 :
18384else
4f14bcd8 18385 if test -w $cache_file; then
a0b9e27f
MB
18386 echo "updating cache $cache_file"
18387 cat confcache > $cache_file
f6bcfd97 18388 else
4f14bcd8 18389 echo "not updating unwritable cache $cache_file"
f6bcfd97 18390 fi
4f14bcd8
GD
18391fi
18392rm -f confcache
f6bcfd97 18393
8284b0c5 18394
a0b9e27f 18395
009fead0 18396CPP_MT_FLAG=
4f14bcd8
GD
18397if test "$TOOLKIT" != "MSW"; then
18398
a0b9e27f 18399
7274f1c7 18400 THREADS_LINK=
009fead0 18401 THREADS_CFLAGS=
7274f1c7
RL
18402
18403 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18404 if test "$USE_BEOS" = 1; then
a0b9e27f 18405 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18406 wxUSE_THREADS="no"
18407 fi
4f14bcd8 18408 fi
4f14bcd8 18409
7274f1c7 18410 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18411
18412
009fead0
VZ
18413 THREAD_OPTS="-pthread"
18414 case "${host}" in
18415 *-*-solaris2* | *-*-sunos4* )
18416 if test "x$GCC" = "xyes"; then
126be6b4 18417 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18418 else
18419 THREAD_OPTS="-mt $THREAD_OPTS"
18420 fi
18421 ;;
18422 *-*-freebsd*)
18423 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18424 ;;
17234b26
MB
18425 *-*-darwin* | *-*-cygwin* )
18426 THREAD_OPTS=""
4101db81 18427 ;;
8f4a9a10 18428 *-*-aix*)
009fead0
VZ
18429 THREAD_OPTS="pthreads"
18430 ;;
009fead0 18431 esac
4f14bcd8 18432
02a1dfba 18433 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18434
009fead0
VZ
18435 THREADS_OK=no
18436 for flag in $THREAD_OPTS; do
18437 case $flag in
18438 none)
a0b9e27f 18439 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
65d8ef1e 18440echo "configure:18441: checking whether pthreads work without any flags" >&5
009fead0 18441 ;;
698dcdb6 18442
009fead0 18443 -*)
a0b9e27f 18444 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
65d8ef1e 18445echo "configure:18446: checking whether pthreads work with $flag" >&5
009fead0
VZ
18446 THREADS_CFLAGS="$flag"
18447 ;;
698dcdb6 18448
009fead0 18449 *)
a0b9e27f 18450 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
65d8ef1e 18451echo "configure:18452: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18452 THREADS_LINK="-l$flag"
18453 ;;
18454 esac
10f2d63a 18455
009fead0
VZ
18456 save_LIBS="$LIBS"
18457 save_CFLAGS="$CFLAGS"
18458 LIBS="$THREADS_LINK $LIBS"
04727afd 18459 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18460
a0b9e27f 18461 cat > conftest.$ac_ext <<EOF
65d8ef1e 18462#line 18463 "configure"
009fead0
VZ
18463#include "confdefs.h"
18464#include <pthread.h>
a0b9e27f 18465int main() {
009fead0 18466pthread_create(0,0,0,0);
a0b9e27f
MB
18467; return 0; }
18468EOF
65d8ef1e 18469if { (eval echo configure:18470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18470 rm -rf conftest*
009fead0 18471 THREADS_OK=yes
10f2d63a 18472else
a0b9e27f
MB
18473 echo "configure: failed program was:" >&5
18474 cat conftest.$ac_ext >&5
6232543b 18475fi
a0b9e27f 18476rm -f conftest*
698dcdb6 18477
009fead0
VZ
18478 LIBS="$save_LIBS"
18479 CFLAGS="$save_CFLAGS"
d9b9876f 18480
a0b9e27f 18481 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18482 if test "x$THREADS_OK" = "xyes"; then
18483 break;
18484 fi
d9b9876f 18485
009fead0
VZ
18486 THREADS_LINK=""
18487 THREADS_CFLAGS=""
18488 done
4f14bcd8 18489
009fead0
VZ
18490 if test "x$THREADS_OK" != "xyes"; then
18491 wxUSE_THREADS=no
a0b9e27f 18492 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18493 else
db82f09e
VZ
18494 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18495 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18496
a0b9e27f 18497 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
65d8ef1e 18498echo "configure:18499: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18499 flag=no
18500 case "${host}" in
2b5f62a0
VZ
18501 *-aix*)
18502 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18503 flag="-D_THREAD_SAFE"
18504 ;;
18505 *-freebsd*)
009fead0
VZ
18506 flag="-D_THREAD_SAFE"
18507 ;;
06313569
GD
18508 *-hp-hpux* )
18509 flag="-D_REENTRANT"
18510 ;;
009fead0
VZ
18511 *solaris* | alpha*-osf*)
18512 flag="-D_REENTRANT"
18513 ;;
18514 esac
a0b9e27f 18515 echo "$ac_t""${flag}" 1>&6
009fead0 18516 if test "x$flag" != xno; then
04727afd 18517 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18518 fi
18519
009fead0 18520 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18521 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18522 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18523 fi
18524 fi
4f14bcd8 18525 fi
4f14bcd8 18526
7274f1c7 18527 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18528 for ac_func in thr_setconcurrency
4f14bcd8 18529do
a0b9e27f 18530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 18531echo "configure:18532: checking for $ac_func" >&5
a0b9e27f
MB
18532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533 echo $ac_n "(cached) $ac_c" 1>&6
18534else
18535 cat > conftest.$ac_ext <<EOF
65d8ef1e 18536#line 18537 "configure"
d9b9876f 18537#include "confdefs.h"
4f14bcd8 18538/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18539 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18540#include <assert.h>
18541/* Override any gcc2 internal prototype to avoid an error. */
18542/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18543 builtin and then its argument prototype would still apply. */
18544char $ac_func();
18545
18546int main() {
18547
4f14bcd8
GD
18548/* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552choke me
18553#else
a0b9e27f 18554$ac_func();
4f14bcd8
GD
18555#endif
18556
a0b9e27f
MB
18557; return 0; }
18558EOF
65d8ef1e 18559if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18560 rm -rf conftest*
18561 eval "ac_cv_func_$ac_func=yes"
18562else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 eval "ac_cv_func_$ac_func=no"
18567fi
18568rm -f conftest*
18569fi
698dcdb6 18570
a0b9e27f
MB
18571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572 echo "$ac_t""yes" 1>&6
18573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574 cat >> confdefs.h <<EOF
18575#define $ac_tr_func 1
18576EOF
18577
18578else
18579 echo "$ac_t""no" 1>&6
10f2d63a 18580fi
4f14bcd8 18581done
10f2d63a 18582
8284b0c5 18583
a0b9e27f 18584 for ac_hdr in sched.h
4f14bcd8 18585do
a0b9e27f
MB
18586ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18587echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 18588echo "configure:18589: checking for $ac_hdr" >&5
a0b9e27f
MB
18589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18590 echo $ac_n "(cached) $ac_c" 1>&6
18591else
18592 cat > conftest.$ac_ext <<EOF
65d8ef1e 18593#line 18594 "configure"
247f5006 18594#include "confdefs.h"
a0b9e27f
MB
18595#include <$ac_hdr>
18596EOF
18597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 18598{ (eval echo configure:18599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18600if test -z "$ac_err"; then
18601 rm -rf conftest*
18602 eval "ac_cv_header_$ac_safe=yes"
18603else
18604 echo "$ac_err" >&5
18605 echo "configure: failed program was:" >&5
4f14bcd8 18606 cat conftest.$ac_ext >&5
a0b9e27f
MB
18607 rm -rf conftest*
18608 eval "ac_cv_header_$ac_safe=no"
13111b2a 18609fi
a0b9e27f 18610rm -f conftest*
10f2d63a 18611fi
a0b9e27f
MB
18612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18613 echo "$ac_t""yes" 1>&6
18614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18615 cat >> confdefs.h <<EOF
18616#define $ac_tr_hdr 1
18617EOF
18618
18619else
18620 echo "$ac_t""no" 1>&6
f6bcfd97 18621fi
4f14bcd8 18622done
f6bcfd97 18623
009fead0 18624 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18625 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
65d8ef1e 18626echo "configure:18627: checking for sched_yield" >&5
a0b9e27f
MB
18627if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18628 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18629else
a0b9e27f 18630 cat > conftest.$ac_ext <<EOF
65d8ef1e 18631#line 18632 "configure"
4f14bcd8 18632#include "confdefs.h"
009fead0 18633/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18634 which can conflict with char sched_yield(); below. */
009fead0 18635#include <assert.h>
4f14bcd8
GD
18636/* Override any gcc2 internal prototype to avoid an error. */
18637/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18638 builtin and then its argument prototype would still apply. */
18639char sched_yield();
18640
18641int main() {
18642
009fead0
VZ
18643/* The GNU C library defines this for functions which it implements
18644 to always fail with ENOSYS. Some functions are actually named
18645 something starting with __ and the normal name is an alias. */
18646#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18647choke me
18648#else
a0b9e27f 18649sched_yield();
009fead0
VZ
18650#endif
18651
a0b9e27f
MB
18652; return 0; }
18653EOF
65d8ef1e 18654if { (eval echo configure:18655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18655 rm -rf conftest*
18656 eval "ac_cv_func_sched_yield=yes"
18657else
18658 echo "configure: failed program was:" >&5
18659 cat conftest.$ac_ext >&5
18660 rm -rf conftest*
18661 eval "ac_cv_func_sched_yield=no"
18662fi
18663rm -f conftest*
18664fi
18665
18666if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18667 echo "$ac_t""yes" 1>&6
18668 cat >> confdefs.h <<\EOF
4f14bcd8 18669#define HAVE_SCHED_YIELD 1
a0b9e27f 18670EOF
10f2d63a 18671
4f14bcd8 18672else
a0b9e27f 18673 echo "$ac_t""no" 1>&6
009fead0 18674
a0b9e27f 18675 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
65d8ef1e 18676echo "configure:18677: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
18677ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18679 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18680else
a0b9e27f 18681 ac_save_LIBS="$LIBS"
4f14bcd8 18682LIBS="-lposix4 $LIBS"
a0b9e27f 18683cat > conftest.$ac_ext <<EOF
65d8ef1e 18684#line 18685 "configure"
4f14bcd8
GD
18685#include "confdefs.h"
18686/* Override any gcc2 internal prototype to avoid an error. */
18687/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18688 builtin and then its argument prototype would still apply. */
18689char sched_yield();
18690
18691int main() {
18692sched_yield()
18693; return 0; }
18694EOF
65d8ef1e 18695if { (eval echo configure:18696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18696 rm -rf conftest*
18697 eval "ac_cv_lib_$ac_lib_var=yes"
18698else
18699 echo "configure: failed program was:" >&5
18700 cat conftest.$ac_ext >&5
18701 rm -rf conftest*
18702 eval "ac_cv_lib_$ac_lib_var=no"
18703fi
18704rm -f conftest*
18705LIBS="$ac_save_LIBS"
18706
18707fi
18708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18709 echo "$ac_t""yes" 1>&6
18710 cat >> confdefs.h <<\EOF
4f14bcd8 18711#define HAVE_SCHED_YIELD 1
a0b9e27f 18712EOF
3d63bc3a 18713 POSIX4_LINK=" -lposix4"
4f14bcd8 18714else
a0b9e27f
MB
18715 echo "$ac_t""no" 1>&6
18716echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18717
54276ccf
VZ
18718fi
18719
a0b9e27f
MB
18720
18721
4f14bcd8 18722fi
698dcdb6 18723
009fead0 18724 fi
10f2d63a 18725
7274f1c7 18726 HAVE_PRIOR_FUNCS=0
a0b9e27f 18727 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
65d8ef1e 18728echo "configure:18729: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
18729if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18730 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18731else
a0b9e27f 18732 cat > conftest.$ac_ext <<EOF
65d8ef1e 18733#line 18734 "configure"
422107f9 18734#include "confdefs.h"
009fead0 18735/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18736 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 18737#include <assert.h>
4f14bcd8
GD
18738/* Override any gcc2 internal prototype to avoid an error. */
18739/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18740 builtin and then its argument prototype would still apply. */
18741char pthread_attr_getschedpolicy();
18742
18743int main() {
18744
009fead0
VZ
18745/* The GNU C library defines this for functions which it implements
18746 to always fail with ENOSYS. Some functions are actually named
18747 something starting with __ and the normal name is an alias. */
18748#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18749choke me
18750#else
a0b9e27f 18751pthread_attr_getschedpolicy();
009fead0
VZ
18752#endif
18753
a0b9e27f
MB
18754; return 0; }
18755EOF
65d8ef1e 18756if { (eval echo configure:18757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18757 rm -rf conftest*
18758 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18759else
18760 echo "configure: failed program was:" >&5
18761 cat conftest.$ac_ext >&5
18762 rm -rf conftest*
18763 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18764fi
18765rm -f conftest*
18766fi
18767
18768if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18769 echo "$ac_t""yes" 1>&6
18770 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
65d8ef1e 18771echo "configure:18772: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
18772if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18773 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 18774else
a0b9e27f 18775 cat > conftest.$ac_ext <<EOF
65d8ef1e 18776#line 18777 "configure"
a0b9e27f
MB
18777#include "confdefs.h"
18778/* System header to define __stub macros and hopefully few prototypes,
18779 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 18780#include <assert.h>
422107f9
VZ
18781/* Override any gcc2 internal prototype to avoid an error. */
18782/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18783 builtin and then its argument prototype would still apply. */
18784char pthread_attr_setschedparam();
18785
18786int main() {
18787
009fead0
VZ
18788/* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18792choke me
18793#else
a0b9e27f 18794pthread_attr_setschedparam();
009fead0
VZ
18795#endif
18796
a0b9e27f
MB
18797; return 0; }
18798EOF
65d8ef1e 18799if { (eval echo configure:18800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18800 rm -rf conftest*
18801 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18802else
18803 echo "configure: failed program was:" >&5
18804 cat conftest.$ac_ext >&5
18805 rm -rf conftest*
18806 eval "ac_cv_func_pthread_attr_setschedparam=no"
18807fi
18808rm -f conftest*
18809fi
18810
18811if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18812 echo "$ac_t""yes" 1>&6
18813 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
65d8ef1e 18814echo "configure:18815: checking for sched_get_priority_max" >&5
a0b9e27f
MB
18815if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18816 echo $ac_n "(cached) $ac_c" 1>&6
18817else
18818 cat > conftest.$ac_ext <<EOF
65d8ef1e 18819#line 18820 "configure"
422107f9 18820#include "confdefs.h"
009fead0
VZ
18821/* System header to define __stub macros and hopefully few prototypes
18822else
a0b9e27f
MB
18823 echo "$ac_t""no" 1>&6
18824which can conflict with char sched_get_priority_max(); below. */
009fead0 18825#include <assert.h>
4f14bcd8
GD
18826/* Override any gcc2 internal prototype to avoid an error. */
18827/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18828 builtin and then its argument prototype would still apply. */
18829char sched_get_priority_max();
18830
18831int main() {
18832
009fead0
VZ
18833/* The GNU C library defines this for functions which it implements
18834 to always fail with ENOSYS. Some functions are actually named
18835 something starting with __ and the normal name is an alias. */
18836#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18837choke me
18838#else
a0b9e27f 18839sched_get_priority_max();
009fead0
VZ
18840#endif
18841
a0b9e27f
MB
18842; return 0; }
18843EOF
65d8ef1e 18844if { (eval echo configure:18845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18845 rm -rf conftest*
18846 eval "ac_cv_func_sched_get_priority_max=yes"
18847else
18848 echo "configure: failed program was:" >&5
18849 cat conftest.$ac_ext >&5
18850 rm -rf conftest*
18851 eval "ac_cv_func_sched_get_priority_max=no"
18852fi
18853rm -f conftest*
18854fi
18855
18856if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18857 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18858 HAVE_PRIOR_FUNCS=1
18859else
a0b9e27f
MB
18860 echo "$ac_t""no" 1>&6
18861echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
65d8ef1e 18862echo "configure:18863: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
18863ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18865 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18866else
a0b9e27f 18867 ac_save_LIBS="$LIBS"
4f14bcd8 18868LIBS="-lposix4 $LIBS"
a0b9e27f 18869cat > conftest.$ac_ext <<EOF
65d8ef1e 18870#line 18871 "configure"
422107f9
VZ
18871#include "confdefs.h"
18872/* Override any gcc2 internal prototype to avoid an error. */
18873/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18874 builtin and then its argument prototype would still apply. */
18875char sched_get_priority_max();
18876
18877int main() {
18878sched_get_priority_max()
18879; return 0; }
18880EOF
65d8ef1e 18881if { (eval echo configure:18882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18882 rm -rf conftest*
18883 eval "ac_cv_lib_$ac_lib_var=yes"
18884else
18885 echo "configure: failed program was:" >&5
18886 cat conftest.$ac_ext >&5
18887 rm -rf conftest*
18888 eval "ac_cv_lib_$ac_lib_var=no"
18889fi
18890rm -f conftest*
18891LIBS="$ac_save_LIBS"
698dcdb6 18892
a0b9e27f
MB
18893fi
18894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18895 echo "$ac_t""yes" 1>&6
18896
7274f1c7
RL
18897 HAVE_PRIOR_FUNCS=1
18898 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
18899
18900else
18901 echo "$ac_t""no" 1>&6
4f14bcd8 18902fi
463abc64 18903
a0b9e27f 18904
328a083c 18905fi
463abc64 18906
a0b9e27f
MB
18907
18908else
18909 echo "$ac_t""no" 1>&6
7b4a847f 18910fi
579d8138 18911
a0b9e27f 18912
5c6fa7d2 18913fi
52127426 18914
8284b0c5 18915
7274f1c7 18916 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 18917 cat >> confdefs.h <<\EOF
4f14bcd8 18918#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 18919EOF
463abc64 18920
7274f1c7 18921 else
a0b9e27f 18922 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 18923 fi
463abc64 18924
a0b9e27f 18925 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
65d8ef1e 18926echo "configure:18927: checking for pthread_cancel" >&5
a0b9e27f
MB
18927if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18928 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18929else
a0b9e27f 18930 cat > conftest.$ac_ext <<EOF
65d8ef1e 18931#line 18932 "configure"
422107f9 18932#include "confdefs.h"
009fead0 18933/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18934 which can conflict with char pthread_cancel(); below. */
009fead0 18935#include <assert.h>
422107f9
VZ
18936/* Override any gcc2 internal prototype to avoid an error. */
18937/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18938 builtin and then its argument prototype would still apply. */
18939char pthread_cancel();
18940
18941int main() {
18942
009fead0
VZ
18943/* The GNU C library defines this for functions which it implements
18944 to always fail with ENOSYS. Some functions are actually named
18945 something starting with __ and the normal name is an alias. */
18946#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18947choke me
18948#else
a0b9e27f 18949pthread_cancel();
009fead0
VZ
18950#endif
18951
a0b9e27f
MB
18952; return 0; }
18953EOF
65d8ef1e 18954if { (eval echo configure:18955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18955 rm -rf conftest*
18956 eval "ac_cv_func_pthread_cancel=yes"
18957else
18958 echo "configure: failed program was:" >&5
18959 cat conftest.$ac_ext >&5
18960 rm -rf conftest*
18961 eval "ac_cv_func_pthread_cancel=no"
18962fi
18963rm -f conftest*
18964fi
18965
18966if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18967 echo "$ac_t""yes" 1>&6
18968 cat >> confdefs.h <<\EOF
4f14bcd8 18969#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 18970EOF
4f14bcd8 18971
698dcdb6 18972else
a0b9e27f
MB
18973 echo "$ac_t""no" 1>&6
18974echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
18975fi
18976
5c6fa7d2 18977
a0b9e27f 18978 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
65d8ef1e 18979echo "configure:18980: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
18980if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18981 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 18982else
a0b9e27f
MB
18983
18984 cat > conftest.$ac_ext <<EOF
65d8ef1e 18985#line 18986 "configure"
4f14bcd8
GD
18986#include "confdefs.h"
18987#include <pthread.h>
a0b9e27f 18988int main() {
4f14bcd8 18989
7274f1c7
RL
18990 pthread_cleanup_push(NULL, NULL);
18991 pthread_cleanup_pop(0);
a0b9e27f
MB
18992
18993; return 0; }
18994EOF
65d8ef1e 18995if { (eval echo configure:18996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18996 rm -rf conftest*
18997
7274f1c7 18998 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 18999
4f14bcd8 19000else
a0b9e27f
MB
19001 echo "configure: failed program was:" >&5
19002 cat conftest.$ac_ext >&5
19003 rm -rf conftest*
19004
7274f1c7 19005 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19006
5c6fa7d2 19007fi
a0b9e27f
MB
19008rm -f conftest*
19009
247f5006 19010fi
a0b9e27f
MB
19011
19012echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19013
7274f1c7 19014 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19015 cat >> confdefs.h <<\EOF
4f14bcd8 19016#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19017EOF
c7a2bf27 19018
7274f1c7 19019 fi
4f14bcd8 19020
a0b9e27f
MB
19021
19022 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
65d8ef1e 19023echo "configure:19024: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19024if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19025 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19026else
a0b9e27f
MB
19027
19028 cat > conftest.$ac_ext <<EOF
65d8ef1e 19029#line 19030 "configure"
0dcf9893 19030#include "confdefs.h"
4f14bcd8 19031#include <pthread.h>
a0b9e27f 19032int main() {
4f14bcd8 19033
7274f1c7
RL
19034 pthread_mutexattr_t attr;
19035 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19036
19037; return 0; }
19038EOF
65d8ef1e 19039if { (eval echo configure:19040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19040 rm -rf conftest*
19041
7274f1c7 19042 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19043
3fed1840 19044else
a0b9e27f
MB
19045 echo "configure: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19047 rm -rf conftest*
19048
7274f1c7 19049 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19050
19051
5c6fa7d2 19052fi
a0b9e27f
MB
19053rm -f conftest*
19054
247f5006 19055fi
a0b9e27f
MB
19056
19057echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19058
7274f1c7 19059 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19060 cat >> confdefs.h <<\EOF
4f14bcd8 19061#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19062EOF
4f14bcd8 19063
7274f1c7 19064 else
a0b9e27f 19065 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
65d8ef1e 19066echo "configure:19067: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19067if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19068 echo $ac_n "(cached) $ac_c" 1>&6
19069else
19070
19071 cat > conftest.$ac_ext <<EOF
65d8ef1e 19072#line 19073 "configure"
3fed1840 19073#include "confdefs.h"
4f14bcd8 19074#include <pthread.h>
a0b9e27f 19075int main() {
4f14bcd8 19076
7274f1c7 19077 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19078
19079; return 0; }
19080EOF
65d8ef1e 19081if { (eval echo configure:19082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19082 rm -rf conftest*
19083
7274f1c7 19084 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19085
698dcdb6 19086else
a0b9e27f
MB
19087 echo "configure: failed program was:" >&5
19088 cat conftest.$ac_ext >&5
19089 rm -rf conftest*
19090
7274f1c7 19091 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19092
19093
5c6fa7d2 19094fi
a0b9e27f
MB
19095rm -f conftest*
19096
247f5006 19097fi
a0b9e27f
MB
19098
19099echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19100 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19101 cat >> confdefs.h <<\EOF
4f14bcd8 19102#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19103EOF
3fed1840 19104
7274f1c7 19105 else
a0b9e27f 19106 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19107 fi
19108 fi
7274f1c7 19109 fi
3fed1840 19110
a0b9e27f
MB
19111else
19112 if test "$wxUSE_THREADS" = "yes" ; then
19113 case "${host}" in
19114 *-*-mingw32* )
ca8e52b3 19115 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
65d8ef1e 19116echo "configure:19117: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19117if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19118 echo $ac_n "(cached) $ac_c" 1>&6
19119else
19120
19121 CFLAGS_OLD="$CFLAGS"
19122 CFLAGS="$CFLAGS -mthreads"
19123 cat > conftest.$ac_ext <<EOF
65d8ef1e 19124#line 19125 "configure"
ca8e52b3
VZ
19125#include "confdefs.h"
19126
19127int main() {
19128
19129; return 0; }
19130EOF
65d8ef1e 19131if { (eval echo configure:19132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19132 rm -rf conftest*
19133 wx_cv_cflags_mthread=yes
19134else
19135 echo "configure: failed program was:" >&5
19136 cat conftest.$ac_ext >&5
19137 rm -rf conftest*
19138 wx_cv_cflags_mthread=no
19139
19140fi
19141rm -f conftest*
19142
19143
19144fi
19145
19146echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19147
19148 if test "$wx_cv_cflags_mthread" = "yes"; then
19149 CXXFLAGS="$CXXFLAGS -mthreads"
19150 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19151 LDFLAGS="$LDFLAGS -mthreads"
19152 else
19153 CFLAGS="$CFLAGS_OLD"
19154 fi
a0b9e27f
MB
19155 ;;
19156 esac
19157 fi
4f14bcd8
GD
19158fi
19159
19160if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19161 cat >> confdefs.h <<\EOF
4f14bcd8 19162#define wxUSE_THREADS 1
a0b9e27f 19163EOF
7b6058cd 19164
8284b0c5 19165
4f14bcd8 19166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19167else
4f14bcd8 19168 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19169 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
65d8ef1e 19170echo "configure:19171: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19171 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19172 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19173 echo "$ac_t""yes" 1>&6
4f14bcd8 19174 else
a0b9e27f 19175 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19176 fi
19177 fi
19178fi
19179
19180if test "$WXGTK20" = 1 ; then
a0b9e27f 19181 cat >> confdefs.h <<EOF
4f14bcd8 19182#define __WXGTK20__ $WXGTK20
a0b9e27f 19183EOF
4f14bcd8
GD
19184
19185 WXGTK12=1
10f2d63a 19186fi
4f14bcd8
GD
19187
19188if test "$WXGTK12" = 1 ; then
a0b9e27f 19189 cat >> confdefs.h <<EOF
4f14bcd8 19190#define __WXGTK12__ $WXGTK12
a0b9e27f 19191EOF
4f14bcd8 19192
10f2d63a 19193fi
698dcdb6 19194
4f14bcd8 19195if test "$WXGTK127" = 1 ; then
a0b9e27f 19196 cat >> confdefs.h <<EOF
4f14bcd8 19197#define __WXGTK127__ $WXGTK127
a0b9e27f 19198EOF
4f14bcd8 19199
698dcdb6 19200fi
10f2d63a 19201
4f14bcd8
GD
19202WXDEBUG=
19203
19204if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19205 WXDEBUG="-g"
19206 wxUSE_OPTIMISE=no
698dcdb6 19207fi
4f14bcd8
GD
19208
19209if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19210 wxUSE_DEBUG_INFO=yes
19211 WXDEBUG="-ggdb"
10f2d63a
VZ
19212fi
19213
4f14bcd8 19214if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19215 cat >> confdefs.h <<\EOF
4f14bcd8 19216#define WXDEBUG 1
a0b9e27f 19217EOF
4f14bcd8
GD
19218
19219 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19220else
4f14bcd8
GD
19221 if test "$wxUSE_GTK" = 1 ; then
19222 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19223 fi
19224fi
19225
19226if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19227 cat >> confdefs.h <<\EOF
4f14bcd8 19228#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19229EOF
4f14bcd8 19230
a0b9e27f 19231 cat >> confdefs.h <<\EOF
4f14bcd8 19232#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19233EOF
4f14bcd8 19234
a0b9e27f 19235 cat >> confdefs.h <<\EOF
4f14bcd8 19236#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19237EOF
4f14bcd8
GD
19238
19239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19240fi
19241
19242if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19243 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19244fi
19245
19246PROFILE=
19247if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19248 PROFILE=" -pg"
10f2d63a
VZ
19249fi
19250
009fead0
VZ
19251CODE_GEN_FLAGS=
19252CODE_GEN_FLAGS_CXX=
88e30f2b 19253if test "$GCC" = "yes" ; then
4f14bcd8
GD
19254 if test "$wxUSE_NO_RTTI" = "yes" ; then
19255 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19256 fi
4f14bcd8
GD
19257 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19258 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19259 fi
19260 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19261 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19262 fi
4f14bcd8
GD
19263 if test "$USE_WIN32" = 1 ; then
19264 # I'm not even really sure what this was ever added to solve,
19265 # but someone added it for mingw native builds, so I guess
19266 # they had a reason, right??
19267 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19268 fi
1d1b75ac 19269
2b5f62a0 19270 case "${host}" in
1d1b75ac
VZ
19271 powerpc*-*-aix* )
19272 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19273 ;;
2b5f62a0
VZ
19274 *-hppa* )
19275 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19276 ;;
1d1b75ac 19277 esac
4f14bcd8
GD
19278fi
19279
4f14bcd8
GD
19280if test "$wxUSE_OPTIMISE" = "no" ; then
19281 OPTIMISE=
19282else
19283 if test "$GCC" = yes ; then
19284 OPTIMISE="-O2"
19285 case "${host}" in
19286 i586-*-*|i686-*-* )
19287 OPTIMISE="${OPTIMISE} "
19288 ;;
19289 esac
19290 else
19291 OPTIMISE="-O"
19292 fi
19293fi
19294
19295if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19296 cat >> confdefs.h <<\EOF
4f14bcd8 19297#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19298EOF
4f14bcd8 19299
8284b0c5 19300
4f14bcd8
GD
19301 WXWIN_COMPATIBILITY_2_2="yes"
19302fi
19303
65d8ef1e 19304if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19305 cat >> confdefs.h <<\EOF
4f14bcd8 19306#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19307EOF
4f14bcd8 19308
10f2d63a
VZ
19309fi
19310
65d8ef1e
VS
19311if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19312 cat >> confdefs.h <<\EOF
19313#define WXWIN_COMPATIBILITY_2_4 1
19314EOF
19315
19316fi
19317
8284b0c5 19318
10f2d63a 19319if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19320 cat >> confdefs.h <<\EOF
10f2d63a 19321#define wxUSE_GUI 1
a0b9e27f 19322EOF
10f2d63a 19323
8284b0c5 19324
10f2d63a 19325 else
a0b9e27f 19326 cat >> confdefs.h <<\EOF
10f2d63a 19327#define wxUSE_NOGUI 1
a0b9e27f 19328EOF
10f2d63a
VZ
19329
19330fi
19331
8284b0c5 19332
10f2d63a 19333if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19334 cat >> confdefs.h <<\EOF
10f2d63a 19335#define wxUSE_UNIX 1
a0b9e27f 19336EOF
10f2d63a
VZ
19337
19338fi
19339
8284b0c5 19340
10f2d63a 19341if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19342 cat >> confdefs.h <<\EOF
10f2d63a 19343#define wxUSE_APPLE_IEEE 1
a0b9e27f 19344EOF
10f2d63a
VZ
19345
19346fi
19347
1e6feb95 19348if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19349 cat >> confdefs.h <<\EOF
1e6feb95 19350#define wxUSE_TIMER 1
a0b9e27f 19351EOF
1e6feb95
VZ
19352
19353fi
19354
10f2d63a 19355if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19356 cat >> confdefs.h <<\EOF
10f2d63a 19357#define wxUSE_WAVE 1
a0b9e27f 19358EOF
10f2d63a
VZ
19359
19360fi
19361
1e6feb95 19362if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19363 cat >> confdefs.h <<\EOF
1e6feb95 19364#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19365EOF
1e6feb95
VZ
19366
19367fi
19368
19369if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19370 cat >> confdefs.h <<\EOF
1e6feb95 19371#define wxUSE_STOPWATCH 1
a0b9e27f 19372EOF
1e6feb95
VZ
19373
19374fi
19375
19376if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19377 cat >> confdefs.h <<\EOF
1e6feb95 19378#define wxUSE_DATETIME 1
a0b9e27f 19379EOF
1e6feb95
VZ
19380
19381fi
19382
19383if test "$wxUSE_TIMEDATE" = "yes"; then
a0b9e27f 19384 cat >> confdefs.h <<\EOF
1e6feb95 19385#define wxUSE_TIMEDATE 1
a0b9e27f 19386EOF
1e6feb95
VZ
19387
19388fi
19389
10f2d63a 19390if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19391 cat >> confdefs.h <<\EOF
10f2d63a 19392#define wxUSE_FILE 1
a0b9e27f 19393EOF
10f2d63a
VZ
19394
19395fi
19396
1e6feb95 19397if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19398 cat >> confdefs.h <<\EOF
1e6feb95 19399#define wxUSE_FFILE 1
a0b9e27f 19400EOF
1e6feb95
VZ
19401
19402fi
19403
24528b0c 19404if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19405 cat >> confdefs.h <<\EOF
24528b0c 19406#define wxUSE_FILESYSTEM 1
a0b9e27f 19407EOF
24528b0c
VS
19408
19409fi
19410
10f2d63a 19411if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19412 cat >> confdefs.h <<\EOF
10f2d63a 19413#define wxUSE_FS_INET 1
a0b9e27f 19414EOF
10f2d63a
VZ
19415
19416fi
19417
19418if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19419 cat >> confdefs.h <<\EOF
10f2d63a 19420#define wxUSE_FS_ZIP 1
a0b9e27f 19421EOF
10f2d63a
VZ
19422
19423fi
19424
19425if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19426 cat >> confdefs.h <<\EOF
10f2d63a 19427#define wxUSE_ZIPSTREAM 1
a0b9e27f 19428EOF
10f2d63a
VZ
19429
19430fi
19431
eb4efbdc 19432if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19433 cat >> confdefs.h <<\EOF
eb4efbdc 19434#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19435EOF
eb4efbdc
VZ
19436
19437fi
19438
4f3c5f06 19439if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19440 cat >> confdefs.h <<\EOF
4f3c5f06 19441#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19442EOF
4f3c5f06
VZ
19443
19444fi
19445
10f2d63a 19446if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19447 cat >> confdefs.h <<\EOF
10f2d63a 19448#define wxUSE_BUSYINFO 1
a0b9e27f 19449EOF
10f2d63a
VZ
19450
19451fi
19452
19453if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19454 cat >> confdefs.h <<\EOF
10f2d63a 19455#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19456EOF
10f2d63a
VZ
19457
19458fi
19459
a3a584a7 19460if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19461 cat >> confdefs.h <<\EOF
a3a584a7 19462#define wxUSE_TEXTBUFFER 1
a0b9e27f 19463EOF
a3a584a7
VZ
19464
19465fi
19466
10f2d63a 19467if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19468 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19469 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19470 else
a0b9e27f 19471 cat >> confdefs.h <<\EOF
10f2d63a 19472#define wxUSE_TEXTFILE 1
a0b9e27f 19473EOF
10f2d63a
VZ
19474
19475 fi
19476fi
19477
19478if test "$wxUSE_CONFIG" = "yes" ; then
19479 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19480 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19481 else
a0b9e27f 19482 cat >> confdefs.h <<\EOF
10f2d63a 19483#define wxUSE_CONFIG 1
a0b9e27f 19484EOF
10f2d63a
VZ
19485
19486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19487 fi
19488fi
19489
19490if test "$wxUSE_INTL" = "yes" ; then
19491 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19492 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19493 else
a0b9e27f 19494 cat >> confdefs.h <<\EOF
10f2d63a 19495#define wxUSE_INTL 1
a0b9e27f 19496EOF
10f2d63a
VZ
19497
19498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19499 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19500 fi
19501fi
19502
19503if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19504 cat >> confdefs.h <<\EOF
10f2d63a 19505#define wxUSE_LOG 1
a0b9e27f 19506EOF
10f2d63a 19507
8284b0c5 19508
d73be714 19509 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19510 cat >> confdefs.h <<\EOF
d73be714 19511#define wxUSE_LOGGUI 1
a0b9e27f 19512EOF
d73be714
VZ
19513
19514 fi
19515
19516 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19517 cat >> confdefs.h <<\EOF
d73be714 19518#define wxUSE_LOGWINDOW 1
a0b9e27f 19519EOF
69d27ff7
MB
19520
19521 fi
19522
19523 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19524 cat >> confdefs.h <<\EOF
69d27ff7 19525#define wxUSE_LOG_DIALOG 1
a0b9e27f 19526EOF
d73be714
VZ
19527
19528 fi
10f2d63a
VZ
19529fi
19530
19531if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19532 cat >> confdefs.h <<\EOF
10f2d63a 19533#define wxUSE_LONGLONG 1
a0b9e27f 19534EOF
10f2d63a
VZ
19535
19536fi
19537
e8f65ba6 19538if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19539 cat >> confdefs.h <<\EOF
e8f65ba6 19540#define wxUSE_GEOMETRY 1
a0b9e27f 19541EOF
e8f65ba6
RR
19542
19543fi
19544
10f2d63a 19545if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19546 cat >> confdefs.h <<\EOF
10f2d63a 19547#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19548EOF
10f2d63a 19549
70f7a477 19550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19551fi
19552
19553if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19554 cat >> confdefs.h <<\EOF
10f2d63a 19555#define wxUSE_STREAMS 1
a0b9e27f 19556EOF
10f2d63a
VZ
19557
19558fi
19559
5c6fa7d2 19560
8284b0c5 19561if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19562 for ac_func in strptime
83307f33 19563do
a0b9e27f 19564echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 19565echo "configure:19566: checking for $ac_func" >&5
a0b9e27f
MB
19566if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19567 echo $ac_n "(cached) $ac_c" 1>&6
19568else
19569 cat > conftest.$ac_ext <<EOF
65d8ef1e 19570#line 19571 "configure"
83307f33
VZ
19571#include "confdefs.h"
19572/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19573 which can conflict with char $ac_func(); below. */
83307f33
VZ
19574#include <assert.h>
19575/* Override any gcc2 internal prototype to avoid an error. */
19576/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19577 builtin and then its argument prototype would still apply. */
19578char $ac_func();
19579
19580int main() {
19581
83307f33
VZ
19582/* The GNU C library defines this for functions which it implements
19583 to always fail with ENOSYS. Some functions are actually named
19584 something starting with __ and the normal name is an alias. */
19585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19586choke me
19587#else
a0b9e27f 19588$ac_func();
83307f33
VZ
19589#endif
19590
a0b9e27f
MB
19591; return 0; }
19592EOF
65d8ef1e 19593if { (eval echo configure:19594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19594 rm -rf conftest*
19595 eval "ac_cv_func_$ac_func=yes"
19596else
19597 echo "configure: failed program was:" >&5
19598 cat conftest.$ac_ext >&5
19599 rm -rf conftest*
19600 eval "ac_cv_func_$ac_func=no"
19601fi
19602rm -f conftest*
19603fi
83307f33 19604
a0b9e27f
MB
19605if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19606 echo "$ac_t""yes" 1>&6
19607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19608 cat >> confdefs.h <<EOF
19609#define $ac_tr_func 1
19610EOF
19611
19612else
19613 echo "$ac_t""no" 1>&6
83307f33
VZ
19614fi
19615done
19616
5c6fa7d2 19617
a0b9e27f 19618 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
65d8ef1e 19619echo "configure:19620: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19620if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19621 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19622else
a0b9e27f
MB
19623
19624 cat > conftest.$ac_ext <<EOF
65d8ef1e 19625#line 19626 "configure"
360d6699
VZ
19626#include "confdefs.h"
19627
b4085ce6 19628 #include <time.h>
a0b9e27f
MB
19629
19630int main() {
360d6699
VZ
19631
19632 int tz;
4f11a343 19633 tz = timezone;
a0b9e27f
MB
19634
19635; return 0; }
19636EOF
65d8ef1e 19637if { (eval echo configure:19638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19638 rm -rf conftest*
19639
4f11a343 19640 wx_cv_var_timezone=timezone
a0b9e27f 19641
360d6699 19642else
a0b9e27f
MB
19643 echo "configure: failed program was:" >&5
19644 cat conftest.$ac_ext >&5
19645 rm -rf conftest*
19646
19647 cat > conftest.$ac_ext <<EOF
65d8ef1e 19648#line 19649 "configure"
360d6699
VZ
19649#include "confdefs.h"
19650
b4085ce6 19651 #include <time.h>
a0b9e27f
MB
19652
19653int main() {
360d6699
VZ
19654
19655 int tz;
19656 tz = _timezone;
a0b9e27f
MB
19657
19658; return 0; }
19659EOF
65d8ef1e 19660if { (eval echo configure:19661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19661 rm -rf conftest*
19662
360d6699 19663 wx_cv_var_timezone=_timezone
a0b9e27f 19664
5357c8e8 19665else
a0b9e27f
MB
19666 echo "configure: failed program was:" >&5
19667 cat conftest.$ac_ext >&5
19668 rm -rf conftest*
19669
19670 cat > conftest.$ac_ext <<EOF
65d8ef1e 19671#line 19672 "configure"
5357c8e8
VZ
19672#include "confdefs.h"
19673
b4085ce6 19674 #include <time.h>
a0b9e27f
MB
19675
19676int main() {
5357c8e8
VZ
19677
19678 int tz;
4f11a343 19679 tz = __timezone;
a0b9e27f
MB
19680
19681; return 0; }
19682EOF
65d8ef1e 19683if { (eval echo configure:19684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19684 rm -rf conftest*
19685
4f11a343 19686 wx_cv_var_timezone=__timezone
a0b9e27f 19687
360d6699 19688else
a0b9e27f
MB
19689 echo "configure: failed program was:" >&5
19690 cat conftest.$ac_ext >&5
19691 rm -rf conftest*
19692
f9bc1684 19693 if test "$USE_DOS" = 0 ; then
a0b9e27f 19694 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 19695 fi
a0b9e27f
MB
19696
19697
328a083c 19698fi
a0b9e27f
MB
19699rm -f conftest*
19700
19701
7b4a847f 19702fi
a0b9e27f
MB
19703rm -f conftest*
19704
19705
5c6fa7d2 19706fi
a0b9e27f
MB
19707rm -f conftest*
19708
19709
247f5006 19710fi
a0b9e27f
MB
19711
19712echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 19713
f9bc1684 19714 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 19715 cat >> confdefs.h <<EOF
360d6699 19716#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 19717EOF
360d6699 19718
f9bc1684 19719 fi
698dcdb6 19720
a0b9e27f 19721 for ac_func in localtime
afc31813 19722do
a0b9e27f 19723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 19724echo "configure:19725: checking for $ac_func" >&5
a0b9e27f
MB
19725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19726 echo $ac_n "(cached) $ac_c" 1>&6
19727else
19728 cat > conftest.$ac_ext <<EOF
65d8ef1e 19729#line 19730 "configure"
10f2d63a 19730#include "confdefs.h"
afc31813 19731/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19732 which can conflict with char $ac_func(); below. */
afc31813
VZ
19733#include <assert.h>
19734/* Override any gcc2 internal prototype to avoid an error. */
19735/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19736 builtin and then its argument prototype would still apply. */
19737char $ac_func();
19738
19739int main() {
19740
afc31813
VZ
19741/* The GNU C library defines this for functions which it implements
19742 to always fail with ENOSYS. Some functions are actually named
19743 something starting with __ and the normal name is an alias. */
19744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19745choke me
19746#else
a0b9e27f 19747$ac_func();
afc31813
VZ
19748#endif
19749
a0b9e27f
MB
19750; return 0; }
19751EOF
65d8ef1e 19752if { (eval echo configure:19753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19753 rm -rf conftest*
19754 eval "ac_cv_func_$ac_func=yes"
19755else
19756 echo "configure: failed program was:" >&5
19757 cat conftest.$ac_ext >&5
19758 rm -rf conftest*
19759 eval "ac_cv_func_$ac_func=no"
19760fi
19761rm -f conftest*
19762fi
afc31813 19763
a0b9e27f
MB
19764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19765 echo "$ac_t""yes" 1>&6
19766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19767 cat >> confdefs.h <<EOF
19768#define $ac_tr_func 1
19769EOF
19770
19771else
19772 echo "$ac_t""no" 1>&6
afc31813
VZ
19773fi
19774done
19775
5c6fa7d2 19776
8284b0c5 19777 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 19778 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
65d8ef1e 19779echo "configure:19780: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
19780if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19781 echo $ac_n "(cached) $ac_c" 1>&6
19782else
19783
19784 cat > conftest.$ac_ext <<EOF
65d8ef1e 19785#line 19786 "configure"
0470b1e6
VZ
19786#include "confdefs.h"
19787
b4085ce6 19788 #include <time.h>
a0b9e27f
MB
19789
19790int main() {
0470b1e6
VZ
19791
19792 struct tm tm;
19793 tm.tm_gmtoff++;
a0b9e27f
MB
19794
19795; return 0; }
19796EOF
65d8ef1e 19797if { (eval echo configure:19798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19798 rm -rf conftest*
19799
f03a98d8 19800 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 19801
0470b1e6 19802else
a0b9e27f
MB
19803 echo "configure: failed program was:" >&5
19804 cat conftest.$ac_ext >&5
19805 rm -rf conftest*
19806 wx_cv_struct_tm_has_gmtoff=no
19807
5c6fa7d2 19808fi
a0b9e27f
MB
19809rm -f conftest*
19810
247f5006 19811fi
a0b9e27f
MB
19812
19813echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
19814 fi
19815
19816 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 19817 cat >> confdefs.h <<\EOF
6232543b 19818#define WX_GMTOFF_IN_TM 1
a0b9e27f 19819EOF
0470b1e6 19820
3fcdd07b
VZ
19821 fi
19822
a0b9e27f 19823 for ac_func in gettimeofday ftime
3fcdd07b 19824do
a0b9e27f 19825echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 19826echo "configure:19827: checking for $ac_func" >&5
a0b9e27f
MB
19827if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19828 echo $ac_n "(cached) $ac_c" 1>&6
19829else
19830 cat > conftest.$ac_ext <<EOF
65d8ef1e 19831#line 19832 "configure"
3fcdd07b
VZ
19832#include "confdefs.h"
19833/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19834 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
19835#include <assert.h>
19836/* Override any gcc2 internal prototype to avoid an error. */
19837/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19838 builtin and then its argument prototype would still apply. */
19839char $ac_func();
19840
19841int main() {
19842
3fcdd07b
VZ
19843/* The GNU C library defines this for functions which it implements
19844 to always fail with ENOSYS. Some functions are actually named
19845 something starting with __ and the normal name is an alias. */
19846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19847choke me
19848#else
a0b9e27f 19849$ac_func();
3fcdd07b
VZ
19850#endif
19851
a0b9e27f
MB
19852; return 0; }
19853EOF
65d8ef1e 19854if { (eval echo configure:19855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19855 rm -rf conftest*
19856 eval "ac_cv_func_$ac_func=yes"
19857else
19858 echo "configure: failed program was:" >&5
19859 cat conftest.$ac_ext >&5
19860 rm -rf conftest*
19861 eval "ac_cv_func_$ac_func=no"
19862fi
19863rm -f conftest*
19864fi
19865
19866if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19867 echo "$ac_t""yes" 1>&6
19868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19869 cat >> confdefs.h <<EOF
19870#define $ac_tr_func 1
19871EOF
3fcdd07b 19872 break
a0b9e27f
MB
19873else
19874 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19875fi
19876done
19877
698dcdb6 19878
8284b0c5 19879 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 19880 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
65d8ef1e 19881echo "configure:19882: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
19882if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19883 echo $ac_n "(cached) $ac_c" 1>&6
19884else
19885
19886
19887 ac_ext=C
19888# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19889ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19890ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19891ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19892cross_compiling=$ac_cv_prog_cxx_cross
52127426 19893
8284b0c5 19894
a0b9e27f 19895 cat > conftest.$ac_ext <<EOF
65d8ef1e 19896#line 19897 "configure"
10f2d63a 19897#include "confdefs.h"
afc31813
VZ
19898
19899 #include <sys/time.h>
19900 #include <unistd.h>
a0b9e27f
MB
19901
19902int main() {
afc31813
VZ
19903
19904 struct timeval tv;
776862b4 19905 gettimeofday(&tv, NULL);
a0b9e27f
MB
19906
19907; return 0; }
19908EOF
65d8ef1e 19909if { (eval echo configure:19910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19910 rm -rf conftest*
afc31813 19911 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 19912else
a0b9e27f
MB
19913 echo "configure: failed program was:" >&5
19914 cat conftest.$ac_ext >&5
19915 rm -rf conftest*
19916 cat > conftest.$ac_ext <<EOF
65d8ef1e 19917#line 19918 "configure"
10f2d63a 19918#include "confdefs.h"
afc31813
VZ
19919
19920 #include <sys/time.h>
19921 #include <unistd.h>
a0b9e27f
MB
19922
19923int main() {
afc31813
VZ
19924
19925 struct timeval tv;
19926 gettimeofday(&tv);
a0b9e27f
MB
19927
19928; return 0; }
19929EOF
65d8ef1e 19930if { (eval echo configure:19931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19931 rm -rf conftest*
afc31813 19932 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 19933else
a0b9e27f
MB
19934 echo "configure: failed program was:" >&5
19935 cat conftest.$ac_ext >&5
19936 rm -rf conftest*
19937
19938 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 19939 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
19940
19941
10f2d63a 19942fi
a0b9e27f
MB
19943rm -f conftest*
19944
10f2d63a 19945fi
a0b9e27f 19946rm -f conftest*
afc31813 19947 ac_ext=c
a0b9e27f 19948# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 19949ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
19950ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19951ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19952cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 19953
a0b9e27f 19954
247f5006 19955fi
a0b9e27f
MB
19956
19957echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 19958
afc31813 19959 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 19960 cat >> confdefs.h <<\EOF
afc31813 19961#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 19962EOF
afc31813
VZ
19963
19964 fi
19965 fi
19966
a0b9e27f 19967 cat >> confdefs.h <<\EOF
afc31813 19968#define wxUSE_TIMEDATE 1
a0b9e27f 19969EOF
afc31813
VZ
19970
19971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19972fi
19973
8284b0c5 19974
52127426 19975if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 19976 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 19977 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
19978 wxUSE_SOCKETS="no"
19979 fi
0feee163 19980fi
b089607b 19981
0feee163
VZ
19982if test "$wxUSE_SOCKETS" = "yes"; then
19983 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 19984 echo $ac_n "checking for socket""... $ac_c" 1>&6
65d8ef1e 19985echo "configure:19986: checking for socket" >&5
a0b9e27f
MB
19986if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19987 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19988else
a0b9e27f 19989 cat > conftest.$ac_ext <<EOF
65d8ef1e 19990#line 19991 "configure"
c63c7106
VZ
19991#include "confdefs.h"
19992/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19993 which can conflict with char socket(); below. */
c63c7106
VZ
19994#include <assert.h>
19995/* Override any gcc2 internal prototype to avoid an error. */
19996/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19997 builtin and then its argument prototype would still apply. */
19998char socket();
19999
20000int main() {
20001
c63c7106
VZ
20002/* The GNU C library defines this for functions which it implements
20003 to always fail with ENOSYS. Some functions are actually named
20004 something starting with __ and the normal name is an alias. */
20005#if defined (__stub_socket) || defined (__stub___socket)
20006choke me
20007#else
a0b9e27f 20008socket();
c63c7106
VZ
20009#endif
20010
a0b9e27f
MB
20011; return 0; }
20012EOF
65d8ef1e 20013if { (eval echo configure:20014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20014 rm -rf conftest*
20015 eval "ac_cv_func_socket=yes"
20016else
20017 echo "configure: failed program was:" >&5
20018 cat conftest.$ac_ext >&5
20019 rm -rf conftest*
20020 eval "ac_cv_func_socket=no"
20021fi
20022rm -f conftest*
20023fi
20024
20025if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20026 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20027 :
20028else
a0b9e27f
MB
20029 echo "$ac_t""no" 1>&6
20030echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
65d8ef1e 20031echo "configure:20032: checking for socket in -lsocket" >&5
a0b9e27f
MB
20032ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20033if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20034 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20035else
a0b9e27f 20036 ac_save_LIBS="$LIBS"
c63c7106 20037LIBS="-lsocket $LIBS"
a0b9e27f 20038cat > conftest.$ac_ext <<EOF
65d8ef1e 20039#line 20040 "configure"
c63c7106
VZ
20040#include "confdefs.h"
20041/* Override any gcc2 internal prototype to avoid an error. */
20042/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20043 builtin and then its argument prototype would still apply. */
20044char socket();
20045
20046int main() {
20047socket()
20048; return 0; }
20049EOF
65d8ef1e 20050if { (eval echo configure:20051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20051 rm -rf conftest*
20052 eval "ac_cv_lib_$ac_lib_var=yes"
20053else
20054 echo "configure: failed program was:" >&5
20055 cat conftest.$ac_ext >&5
20056 rm -rf conftest*
20057 eval "ac_cv_lib_$ac_lib_var=no"
20058fi
20059rm -f conftest*
20060LIBS="$ac_save_LIBS"
20061
20062fi
20063if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20064 echo "$ac_t""yes" 1>&6
d558c907
VS
20065 if test "$INET_LINK" != " -lsocket"; then
20066 INET_LINK="$INET_LINK -lsocket"
20067 fi
c63c7106 20068else
a0b9e27f 20069 echo "$ac_t""no" 1>&6
afc31813 20070
a0b9e27f 20071 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20072 wxUSE_SOCKETS=no
a0b9e27f
MB
20073
20074
6232543b 20075fi
b089607b 20076
a0b9e27f 20077
1e487827 20078fi
afc31813 20079
3a922bb4 20080 fi
0feee163 20081fi
51a9faba 20082
0feee163
VZ
20083if test "$wxUSE_SOCKETS" = "yes" ; then
20084 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20085 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
65d8ef1e 20086echo "configure:20087: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20087if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20088 echo $ac_n "(cached) $ac_c" 1>&6
20089else
20090
20091
20092 ac_ext=C
20093# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20094ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20095ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20096ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20097cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20098
8284b0c5 20099
a0b9e27f 20100 cat > conftest.$ac_ext <<EOF
65d8ef1e 20101#line 20102 "configure"
afc31813 20102#include "confdefs.h"
51a9faba 20103
3a922bb4
RL
20104 #include <sys/types.h>
20105 #include <sys/socket.h>
a0b9e27f
MB
20106
20107int main() {
51a9faba 20108
3a922bb4
RL
20109 socklen_t len;
20110 getsockname(0, 0, &len);
a0b9e27f
MB
20111
20112; return 0; }
20113EOF
65d8ef1e 20114if { (eval echo configure:20115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20115 rm -rf conftest*
51a9faba 20116 wx_cv_type_getsockname3=socklen_t
afc31813 20117else
a0b9e27f
MB
20118 echo "configure: failed program was:" >&5
20119 cat conftest.$ac_ext >&5
20120 rm -rf conftest*
20121 cat > conftest.$ac_ext <<EOF
65d8ef1e 20122#line 20123 "configure"
afc31813 20123#include "confdefs.h"
51a9faba 20124
3a922bb4
RL
20125 #include <sys/types.h>
20126 #include <sys/socket.h>
a0b9e27f
MB
20127
20128int main() {
51a9faba 20129
3a922bb4
RL
20130 size_t len;
20131 getsockname(0, 0, &len);
a0b9e27f
MB
20132
20133; return 0; }
20134EOF
65d8ef1e 20135if { (eval echo configure:20136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20136 rm -rf conftest*
51a9faba 20137 wx_cv_type_getsockname3=size_t
afc31813 20138else
a0b9e27f
MB
20139 echo "configure: failed program was:" >&5
20140 cat conftest.$ac_ext >&5
20141 rm -rf conftest*
20142 cat > conftest.$ac_ext <<EOF
65d8ef1e 20143#line 20144 "configure"
afc31813 20144#include "confdefs.h"
51a9faba 20145
3a922bb4
RL
20146 #include <sys/types.h>
20147 #include <sys/socket.h>
a0b9e27f
MB
20148
20149int main() {
51a9faba 20150
3a922bb4
RL
20151 int len;
20152 getsockname(0, 0, &len);
a0b9e27f
MB
20153
20154; return 0; }
20155EOF
65d8ef1e 20156if { (eval echo configure:20157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20157 rm -rf conftest*
51a9faba 20158 wx_cv_type_getsockname3=int
afc31813 20159else
a0b9e27f
MB
20160 echo "configure: failed program was:" >&5
20161 cat conftest.$ac_ext >&5
20162 rm -rf conftest*
20163 wx_cv_type_getsockname3=unknown
20164
afc31813 20165fi
a0b9e27f
MB
20166rm -f conftest*
20167
afc31813 20168fi
a0b9e27f
MB
20169rm -f conftest*
20170
afc31813 20171fi
a0b9e27f 20172rm -f conftest*
51a9faba 20173
3a922bb4 20174 ac_ext=c
a0b9e27f 20175# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20176ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20177ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20178ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20179cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20180
a0b9e27f 20181
247f5006 20182fi
a0b9e27f
MB
20183
20184echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20185
3a922bb4
RL
20186 if test "$wx_cv_type_getsockname3" = "unknown"; then
20187 wxUSE_SOCKETS=no
a0b9e27f 20188 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20189 else
a0b9e27f 20190 cat >> confdefs.h <<EOF
51a9faba 20191#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20192EOF
51a9faba 20193
3a922bb4 20194 fi
51a9faba
VZ
20195 fi
20196fi
afc31813 20197
51a9faba 20198if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20199 cat >> confdefs.h <<\EOF
afc31813 20200#define wxUSE_SOCKETS 1
a0b9e27f 20201EOF
afc31813 20202
70f7a477 20203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20204fi
20205
8284b0c5 20206
dc3d889d
VZ
20207if test "$wxUSE_GUI" = "yes"; then
20208
156b2523 20209 if test "$TOOLKIT" = "MAC"; then
a0b9e27f 20210 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20211 wxUSE_JOYSTICK=no
20212 fi
20213 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20214 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20215 wxUSE_JOYSTICK=no
f79bd02d
JS
20216 fi
20217 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20218 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20219 wxUSE_JOYSTICK=no
156b2523
GD
20220 fi
20221
3a922bb4
RL
20222 if test "$TOOLKIT" != "MSW"; then
20223 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20224 for ac_hdr in linux/joystick.h
10f2d63a 20225do
a0b9e27f
MB
20226ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20227echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 20228echo "configure:20229: checking for $ac_hdr" >&5
a0b9e27f
MB
20229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20230 echo $ac_n "(cached) $ac_c" 1>&6
20231else
20232 cat > conftest.$ac_ext <<EOF
65d8ef1e 20233#line 20234 "configure"
247f5006 20234#include "confdefs.h"
a0b9e27f
MB
20235#include <$ac_hdr>
20236EOF
20237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 20238{ (eval echo configure:20239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20240if test -z "$ac_err"; then
20241 rm -rf conftest*
20242 eval "ac_cv_header_$ac_safe=yes"
20243else
20244 echo "$ac_err" >&5
20245 echo "configure: failed program was:" >&5
247f5006 20246 cat conftest.$ac_ext >&5
a0b9e27f
MB
20247 rm -rf conftest*
20248 eval "ac_cv_header_$ac_safe=no"
247f5006 20249fi
a0b9e27f 20250rm -f conftest*
10f2d63a 20251fi
a0b9e27f
MB
20252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20253 echo "$ac_t""yes" 1>&6
20254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20255 cat >> confdefs.h <<EOF
20256#define $ac_tr_hdr 1
20257EOF
20258
20259else
20260 echo "$ac_t""no" 1>&6
247f5006 20261fi
10f2d63a
VZ
20262done
20263
3a922bb4
RL
20264 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20265 wxUSE_JOYSTICK=no
a0b9e27f 20266 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20267 fi
20268 fi
20269 fi
b089607b 20270
3a922bb4 20271 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20272 cat >> confdefs.h <<\EOF
10f2d63a 20273#define wxUSE_JOYSTICK 1
a0b9e27f 20274EOF
10f2d63a 20275
3a922bb4
RL
20276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20277 fi
dc3d889d
VZ
20278fi
20279
8284b0c5 20280
b089607b
VZ
20281if test "$TOOLKIT" != "MSW"; then
20282
3a922bb4
RL
20283 HAVE_DL_FUNCS=0
20284 HAVE_SHL_FUNCS=0
0b9ab0bd 20285 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20286 if test "$USE_DARWIN" = 1; then
20287 HAVE_DL_FUNCS=1
20288 else
a0b9e27f 20289 for ac_func in dlopen
10f2d63a 20290do
a0b9e27f 20291echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 20292echo "configure:20293: checking for $ac_func" >&5
a0b9e27f
MB
20293if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20294 echo $ac_n "(cached) $ac_c" 1>&6
20295else
20296 cat > conftest.$ac_ext <<EOF
65d8ef1e 20297#line 20298 "configure"
10f2d63a
VZ
20298#include "confdefs.h"
20299/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20300 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20301#include <assert.h>
20302/* Override any gcc2 internal prototype to avoid an error. */
20303/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20304 builtin and then its argument prototype would still apply. */
20305char $ac_func();
20306
20307int main() {
20308
10f2d63a
VZ
20309/* The GNU C library defines this for functions which it implements
20310 to always fail with ENOSYS. Some functions are actually named
20311 something starting with __ and the normal name is an alias. */
20312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20313choke me
20314#else
a0b9e27f 20315$ac_func();
10f2d63a
VZ
20316#endif
20317
a0b9e27f
MB
20318; return 0; }
20319EOF
65d8ef1e 20320if { (eval echo configure:20321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20321 rm -rf conftest*
20322 eval "ac_cv_func_$ac_func=yes"
20323else
20324 echo "configure: failed program was:" >&5
20325 cat conftest.$ac_ext >&5
20326 rm -rf conftest*
20327 eval "ac_cv_func_$ac_func=no"
20328fi
20329rm -f conftest*
20330fi
20331
20332if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20333 echo "$ac_t""yes" 1>&6
20334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20335 cat >> confdefs.h <<EOF
20336#define $ac_tr_func 1
20337EOF
20338
20339 cat >> confdefs.h <<\EOF
10f2d63a 20340#define HAVE_DLOPEN 1
a0b9e27f 20341EOF
10f2d63a 20342
3a922bb4 20343 HAVE_DL_FUNCS=1
a0b9e27f 20344
10f2d63a 20345else
a0b9e27f
MB
20346 echo "$ac_t""no" 1>&6
20347echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
65d8ef1e 20348echo "configure:20349: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20349ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20350if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20351 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20352else
a0b9e27f 20353 ac_save_LIBS="$LIBS"
10f2d63a 20354LIBS="-ldl $LIBS"
a0b9e27f 20355cat > conftest.$ac_ext <<EOF
65d8ef1e 20356#line 20357 "configure"
10f2d63a
VZ
20357#include "confdefs.h"
20358/* Override any gcc2 internal prototype to avoid an error. */
20359/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20360 builtin and then its argument prototype would still apply. */
20361char dlopen();
20362
20363int main() {
20364dlopen()
20365; return 0; }
20366EOF
65d8ef1e 20367if { (eval echo configure:20368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20368 rm -rf conftest*
20369 eval "ac_cv_lib_$ac_lib_var=yes"
20370else
20371 echo "configure: failed program was:" >&5
20372 cat conftest.$ac_ext >&5
20373 rm -rf conftest*
20374 eval "ac_cv_lib_$ac_lib_var=no"
20375fi
20376rm -f conftest*
20377LIBS="$ac_save_LIBS"
20378
20379fi
20380if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20381 echo "$ac_t""yes" 1>&6
20382
20383 cat >> confdefs.h <<\EOF
10f2d63a 20384#define HAVE_DLOPEN 1
a0b9e27f 20385EOF
10f2d63a 20386
3a922bb4 20387 HAVE_DL_FUNCS=1
3d63bc3a 20388 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20389
10f2d63a 20390else
a0b9e27f 20391 echo "$ac_t""no" 1>&6
10f2d63a 20392
a0b9e27f 20393 for ac_func in shl_load
10f2d63a 20394do
a0b9e27f 20395echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 20396echo "configure:20397: checking for $ac_func" >&5
a0b9e27f
MB
20397if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20398 echo $ac_n "(cached) $ac_c" 1>&6
20399else
20400 cat > conftest.$ac_ext <<EOF
65d8ef1e 20401#line 20402 "configure"
10f2d63a
VZ
20402#include "confdefs.h"
20403/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20404 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20405#include <assert.h>
20406/* Override any gcc2 internal prototype to avoid an error. */
20407/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20408 builtin and then its argument prototype would still apply. */
20409char $ac_func();
20410
20411int main() {
20412
10f2d63a
VZ
20413/* The GNU C library defines this for functions which it implements
20414 to always fail with ENOSYS. Some functions are actually named
20415 something starting with __ and the normal name is an alias. */
20416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20417choke me
20418#else
a0b9e27f 20419$ac_func();
10f2d63a
VZ
20420#endif
20421
a0b9e27f
MB
20422; return 0; }
20423EOF
65d8ef1e 20424if { (eval echo configure:20425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20425 rm -rf conftest*
20426 eval "ac_cv_func_$ac_func=yes"
20427else
20428 echo "configure: failed program was:" >&5
20429 cat conftest.$ac_ext >&5
20430 rm -rf conftest*
20431 eval "ac_cv_func_$ac_func=no"
20432fi
20433rm -f conftest*
20434fi
20435
20436if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20437 echo "$ac_t""yes" 1>&6
20438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20439 cat >> confdefs.h <<EOF
20440#define $ac_tr_func 1
20441EOF
20442
20443 cat >> confdefs.h <<\EOF
10f2d63a 20444#define HAVE_SHL_LOAD 1
a0b9e27f 20445EOF
10f2d63a 20446
3a922bb4 20447 HAVE_SHL_FUNCS=1
a0b9e27f 20448
10f2d63a 20449else
a0b9e27f
MB
20450 echo "$ac_t""no" 1>&6
20451echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
65d8ef1e 20452echo "configure:20453: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20453ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20455 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20456else
a0b9e27f 20457 ac_save_LIBS="$LIBS"
f6bcfd97 20458LIBS="-lshl_load $LIBS"
a0b9e27f 20459cat > conftest.$ac_ext <<EOF
65d8ef1e 20460#line 20461 "configure"
f6bcfd97 20461#include "confdefs.h"
8284b0c5 20462/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20463/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20464 builtin and then its argument prototype would still apply. */
20465char dld();
20466
20467int main() {
20468dld()
20469; return 0; }
20470EOF
65d8ef1e 20471if { (eval echo configure:20472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20472 rm -rf conftest*
20473 eval "ac_cv_lib_$ac_lib_var=yes"
20474else
20475 echo "configure: failed program was:" >&5
20476 cat conftest.$ac_ext >&5
20477 rm -rf conftest*
20478 eval "ac_cv_lib_$ac_lib_var=no"
20479fi
20480rm -f conftest*
20481LIBS="$ac_save_LIBS"
f6bcfd97 20482
a0b9e27f
MB
20483fi
20484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20485 echo "$ac_t""yes" 1>&6
20486
3a922bb4 20487 HAVE_SHL_FUNCS=1
3d63bc3a 20488 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20489
20490else
20491 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20492fi
20493
a0b9e27f 20494
10f2d63a
VZ
20495fi
20496done
20497
a0b9e27f 20498
10f2d63a
VZ
20499fi
20500
a0b9e27f 20501
10f2d63a
VZ
20502fi
20503done
20504
5c6fa7d2 20505
8284b0c5 20506 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20507 for ac_func in dlerror
f6bcfd97 20508do
a0b9e27f 20509echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 20510echo "configure:20511: checking for $ac_func" >&5
a0b9e27f
MB
20511if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20512 echo $ac_n "(cached) $ac_c" 1>&6
20513else
20514 cat > conftest.$ac_ext <<EOF
65d8ef1e 20515#line 20516 "configure"
f6bcfd97
BP
20516#include "confdefs.h"
20517/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20518 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20519#include <assert.h>
20520/* Override any gcc2 internal prototype to avoid an error. */
20521/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20522 builtin and then its argument prototype would still apply. */
20523char $ac_func();
20524
20525int main() {
20526
f6bcfd97
BP
20527/* The GNU C library defines this for functions which it implements
20528 to always fail with ENOSYS. Some functions are actually named
20529 something starting with __ and the normal name is an alias. */
20530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20531choke me
20532#else
a0b9e27f 20533$ac_func();
f6bcfd97
BP
20534#endif
20535
a0b9e27f
MB
20536; return 0; }
20537EOF
65d8ef1e 20538if { (eval echo configure:20539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20539 rm -rf conftest*
20540 eval "ac_cv_func_$ac_func=yes"
20541else
20542 echo "configure: failed program was:" >&5
20543 cat conftest.$ac_ext >&5
20544 rm -rf conftest*
20545 eval "ac_cv_func_$ac_func=no"
20546fi
20547rm -f conftest*
20548fi
20549
20550if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20551 echo "$ac_t""yes" 1>&6
20552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20553 cat >> confdefs.h <<EOF
20554#define $ac_tr_func 1
20555EOF
20556 cat >> confdefs.h <<\EOF
f6bcfd97 20557#define HAVE_DLERROR 1
a0b9e27f 20558EOF
f6bcfd97
BP
20559
20560else
a0b9e27f
MB
20561 echo "$ac_t""no" 1>&6
20562echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
65d8ef1e 20563echo "configure:20564: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20564ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20566 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20567else
a0b9e27f 20568 ac_save_LIBS="$LIBS"
f6bcfd97 20569LIBS="-ldl $LIBS"
a0b9e27f 20570cat > conftest.$ac_ext <<EOF
65d8ef1e 20571#line 20572 "configure"
f6bcfd97
BP
20572#include "confdefs.h"
20573/* Override any gcc2 internal prototype to avoid an error. */
20574/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20575 builtin and then its argument prototype would still apply. */
20576char dlerror();
20577
20578int main() {
20579dlerror()
20580; return 0; }
20581EOF
65d8ef1e 20582if { (eval echo configure:20583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20583 rm -rf conftest*
20584 eval "ac_cv_lib_$ac_lib_var=yes"
20585else
20586 echo "configure: failed program was:" >&5
20587 cat conftest.$ac_ext >&5
20588 rm -rf conftest*
20589 eval "ac_cv_lib_$ac_lib_var=no"
20590fi
20591rm -f conftest*
20592LIBS="$ac_save_LIBS"
20593
20594fi
20595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20596 echo "$ac_t""yes" 1>&6
20597 cat >> confdefs.h <<\EOF
f6bcfd97 20598#define HAVE_DLERROR 1
a0b9e27f 20599EOF
f6bcfd97 20600
a0b9e27f
MB
20601else
20602 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20603fi
20604
20605fi
20606done
20607
3a922bb4
RL
20608 fi
20609 fi
f6bcfd97 20610
3a922bb4
RL
20611 if test "$HAVE_DL_FUNCS" = 0; then
20612 if test "$HAVE_SHL_FUNCS" = 0; then
20613 if test "$USE_UNIX" = 1; then
a0b9e27f 20614 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20615 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20616 wxUSE_DYNLIB_CLASS=no
20617 else
a0b9e27f 20618 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20619 fi
20620 fi
10f2d63a
VZ
20621 fi
20622 fi
20623fi
20624
0b9ab0bd 20625if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20626 cat >> confdefs.h <<\EOF
0b9ab0bd 20627#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20628EOF
0b9ab0bd
RL
20629
20630elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20631 cat >> confdefs.h <<\EOF
10f2d63a 20632#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20633EOF
10f2d63a
VZ
20634
20635fi
20636
8284b0c5 20637
1e6feb95 20638if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20639 cat >> confdefs.h <<\EOF
1e6feb95 20640#define wxUSE_FONTMAP 1
a0b9e27f 20641EOF
1e6feb95
VZ
20642
20643fi
20644
10f2d63a 20645if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20646 cat >> confdefs.h <<\EOF
10f2d63a 20647#define wxUSE_UNICODE 1
a0b9e27f 20648EOF
10f2d63a 20649
8284b0c5 20650
bbc3925a
VS
20651 if test "$wxUSE_MSW" != 1; then
20652 wxUSE_UNICODE_MSLU=no
20653 fi
a72a4bfa
VS
20654
20655 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20656 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
65d8ef1e 20657echo "configure:20658: checking for main in -lunicows" >&5
a0b9e27f
MB
20658ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20659if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20660 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20661else
a0b9e27f 20662 ac_save_LIBS="$LIBS"
a72a4bfa 20663LIBS="-lunicows $LIBS"
a0b9e27f 20664cat > conftest.$ac_ext <<EOF
65d8ef1e 20665#line 20666 "configure"
a72a4bfa
VS
20666#include "confdefs.h"
20667
a0b9e27f
MB
20668int main() {
20669main()
20670; return 0; }
20671EOF
65d8ef1e 20672if { (eval echo configure:20673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20673 rm -rf conftest*
20674 eval "ac_cv_lib_$ac_lib_var=yes"
20675else
20676 echo "configure: failed program was:" >&5
20677 cat conftest.$ac_ext >&5
20678 rm -rf conftest*
20679 eval "ac_cv_lib_$ac_lib_var=no"
20680fi
20681rm -f conftest*
20682LIBS="$ac_save_LIBS"
8284b0c5 20683
a0b9e27f
MB
20684fi
20685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20686 echo "$ac_t""yes" 1>&6
20687
20688 cat >> confdefs.h <<\EOF
a72a4bfa 20689#define wxUSE_UNICODE_MSLU 1
a0b9e27f 20690EOF
a72a4bfa 20691
a0b9e27f 20692
a72a4bfa 20693else
a0b9e27f 20694 echo "$ac_t""no" 1>&6
a72a4bfa 20695
a0b9e27f
MB
20696 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20697 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 20698 wxUSE_UNICODE_MSLU=no
a0b9e27f 20699
a72a4bfa
VS
20700fi
20701
20702 fi
10f2d63a
VZ
20703fi
20704
10f2d63a 20705if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 20706 cat >> confdefs.h <<\EOF
10f2d63a 20707#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 20708EOF
10f2d63a
VZ
20709
20710fi
20711
8284b0c5
MB
20712
20713
10f2d63a
VZ
20714IODBC_C_SRC=""
20715if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 20716 cat >> confdefs.h <<\EOF
10f2d63a 20717#define wxUSE_ODBC 1
a0b9e27f 20718EOF
10f2d63a
VZ
20719
20720 WXODBCFLAG="-D_IODBC_"
20721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
20722fi
20723
8284b0c5 20724
10f2d63a 20725if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 20726 cat >> confdefs.h <<\EOF
10f2d63a 20727#define wxUSE_POSTSCRIPT 1
a0b9e27f 20728EOF
10f2d63a
VZ
20729
20730fi
20731
a0b9e27f 20732cat >> confdefs.h <<\EOF
10f2d63a 20733#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 20734EOF
10f2d63a 20735
8284b0c5 20736
a0b9e27f 20737cat >> confdefs.h <<\EOF
10f2d63a 20738#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 20739EOF
10f2d63a 20740
8284b0c5
MB
20741
20742
10f2d63a 20743if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 20744 cat >> confdefs.h <<\EOF
10f2d63a 20745#define wxUSE_CONSTRAINTS 1
a0b9e27f 20746EOF
10f2d63a
VZ
20747
20748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20749fi
20750
20751if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 20752
8284b0c5 20753
bb811f17 20754 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 20755 cat >> confdefs.h <<\EOF
10f2d63a 20756#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 20757EOF
10f2d63a 20758
bb811f17
JS
20759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20760 fi
10f2d63a
VZ
20761fi
20762
20763if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 20764 cat >> confdefs.h <<\EOF
10f2d63a 20765#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 20766EOF
10f2d63a
VZ
20767
20768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20769 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20771 fi
20772fi
20773
20774if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 20775 cat >> confdefs.h <<\EOF
10f2d63a 20776#define wxUSE_HELP 1
a0b9e27f 20777EOF
10f2d63a
VZ
20778
20779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 20780
77e13408 20781 if test "$wxUSE_MSW" = 1; then
031d8228 20782 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 20783 cat >> confdefs.h <<\EOF
29fd3c0c 20784#define wxUSE_MS_HTML_HELP 1
a0b9e27f 20785EOF
29fd3c0c 20786
3e44f09d 20787 fi
3379ed37 20788 fi
031d8228
VS
20789
20790 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20791 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 20792 cat >> confdefs.h <<\EOF
031d8228 20793#define wxUSE_WXHTML_HELP 1
a0b9e27f 20794EOF
031d8228
VS
20795
20796 else
a0b9e27f 20797 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
20798 wxUSE_WXHTML_HELP=no
20799 fi
20800 fi
10f2d63a
VZ
20801fi
20802
20803if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20804 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20805 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 20806 else
a0b9e27f 20807 cat >> confdefs.h <<\EOF
10f2d63a 20808#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 20809EOF
10f2d63a
VZ
20810
20811 fi
20812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20813fi
20814
20815if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 20816 cat >> confdefs.h <<\EOF
10f2d63a 20817#define wxUSE_PROLOGIO 1
a0b9e27f 20818EOF
10f2d63a 20819
2b5f62a0 20820 ALL_OBJECTS="$ALL_OBJECTS parser.o"
10f2d63a
VZ
20821fi
20822
20823if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 20824 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 20825 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
2b5f62a0
VZ
20826 else
20827 cat >> confdefs.h <<\EOF
10f2d63a 20828#define wxUSE_RESOURCES 1
a0b9e27f 20829EOF
10f2d63a 20830
2b5f62a0
VZ
20831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20832 fi
20833 if test "$wxUSE_PROLOGIO" != "yes" ; then
20834 ALL_OBJECTS="$ALL_OBJECTS parser.o"
e334d0ea 20835 fi
10f2d63a
VZ
20836fi
20837
20838if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 20839 cat >> confdefs.h <<\EOF
10f2d63a 20840#define wxUSE_X_RESOURCES 1
a0b9e27f 20841EOF
10f2d63a
VZ
20842
20843fi
20844
8284b0c5 20845
77e13408
RL
20846if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20847 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 20848 -o "$wxUSE_OLE" = "yes" \
77e13408 20849 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 20850 for ac_hdr in ole2.h
10f2d63a 20851do
a0b9e27f
MB
20852ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20853echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
65d8ef1e 20854echo "configure:20855: checking for $ac_hdr" >&5
a0b9e27f
MB
20855if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20856 echo $ac_n "(cached) $ac_c" 1>&6
20857else
20858 cat > conftest.$ac_ext <<EOF
65d8ef1e 20859#line 20860 "configure"
10f2d63a 20860#include "confdefs.h"
a0b9e27f
MB
20861#include <$ac_hdr>
20862EOF
20863ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d8ef1e 20864{ (eval echo configure:20865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20865ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20866if test -z "$ac_err"; then
20867 rm -rf conftest*
20868 eval "ac_cv_header_$ac_safe=yes"
20869else
20870 echo "$ac_err" >&5
20871 echo "configure: failed program was:" >&5
10f2d63a 20872 cat conftest.$ac_ext >&5
a0b9e27f
MB
20873 rm -rf conftest*
20874 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20875fi
a0b9e27f 20876rm -f conftest*
10f2d63a 20877fi
a0b9e27f
MB
20878if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20879 echo "$ac_t""yes" 1>&6
20880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20881 cat >> confdefs.h <<EOF
20882#define $ac_tr_hdr 1
20883EOF
20884
20885else
20886 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20887fi
20888done
20889
8284b0c5 20890
2b9bdf71
VZ
20891 if test "$ac_cv_header_ole2_h" = "yes" ; then
20892 if test "$GCC" = yes ; then
a0b9e27f
MB
20893
20894 ac_ext=C
20895# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20896ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20897ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20898ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20899cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
20900
20901
a0b9e27f 20902 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
65d8ef1e 20903echo "configure:20904: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 20904 cat > conftest.$ac_ext <<EOF
65d8ef1e 20905#line 20906 "configure"
8284b0c5
MB
20906#include "confdefs.h"
20907#include <windows.h>
20908 #include <ole2.h>
a0b9e27f 20909int main() {
8284b0c5 20910
a0b9e27f
MB
20911; return 0; }
20912EOF
65d8ef1e 20913if { (eval echo configure:20914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20914 rm -rf conftest*
20915 echo "$ac_t""no" 1>&6
20916else
20917 echo "configure: failed program was:" >&5
20918 cat conftest.$ac_ext >&5
20919 rm -rf conftest*
20920 echo "$ac_t""yes" 1>&6
8284b0c5
MB
20921 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20922fi
a0b9e27f 20923rm -f conftest*
8284b0c5 20924 ac_ext=c
a0b9e27f 20925# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20926ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20927ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20928ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20929cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20930
2b9bdf71 20931 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 20932 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 20933 cat >> confdefs.h <<\EOF
4f11a343 20934#define wxUSE_OLE 1
a0b9e27f 20935EOF
4f11a343 20936
8284b0c5 20937
2b9bdf71
VZ
20938 fi
20939
a0b9e27f 20940 cat >> confdefs.h <<\EOF
2b9bdf71 20941#define wxUSE_DATAOBJ 1
a0b9e27f 20942EOF
2b9bdf71
VZ
20943
20944 else
a0b9e27f 20945 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
20946
20947 wxUSE_CLIPBOARD=no
20948 wxUSE_DRAG_AND_DROP=no
20949 wxUSE_DATAOBJ=no
3bce6687
JS
20950 wxUSE_OLE=no
20951 fi
20952
20953 if test "$wxUSE_METAFILE" = "yes"; then
20954 cat >> confdefs.h <<\EOF
20955#define wxUSE_METAFILE 1
20956EOF
20957
20958
20959 cat >> confdefs.h <<\EOF
20960#define wxUSE_ENH_METAFILE 1
20961EOF
20962
20963 fi
20964fi
20965
2b9bdf71
VZ
20966if test "$wxUSE_IPC" = "yes"; then
20967 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 20968 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
20969 fi
20970
a0b9e27f 20971 cat >> confdefs.h <<\EOF
2b9bdf71 20972#define wxUSE_IPC 1
a0b9e27f 20973EOF
2b9bdf71
VZ
20974
20975fi
20976
20977if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 20978 if test "$wxUSE_MGL" = 1; then
a0b9e27f 20979 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20980 wxUSE_CLIPBOARD=no
20981 fi
20982
20983 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 20984 cat >> confdefs.h <<\EOF
2b9bdf71 20985#define wxUSE_CLIPBOARD 1
a0b9e27f 20986EOF
2b9bdf71 20987
8284b0c5 20988
a0b9e27f 20989 cat >> confdefs.h <<\EOF
673f4220 20990#define wxUSE_DATAOBJ 1
a0b9e27f 20991EOF
673f4220 20992
6c657b52 20993 fi
2b9bdf71
VZ
20994fi
20995
20996if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20997 if test "$wxUSE_GTK" = 1; then
20998 if test "$WXGTK12" != 1; then
a0b9e27f 20999 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21000 wxUSE_DRAG_AND_DROP=no
21001 fi
21002 fi
21003
2b9bdf71 21004 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21005 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21006 wxUSE_DRAG_AND_DROP=no
21007 fi
21008
f79bd02d 21009 if test "$wxUSE_X11" = 1; then
a0b9e27f 21010 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21011 wxUSE_DRAG_AND_DROP=no
21012 fi
21013
6c657b52 21014 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21015 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21016 wxUSE_DRAG_AND_DROP=no
21017 fi
21018
10f2d63a 21019 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21020 cat >> confdefs.h <<\EOF
10f2d63a 21021#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21022EOF
10f2d63a
VZ
21023
21024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21025 fi
21026
21027fi
21028
21029if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21030 cat >> confdefs.h <<\EOF
10f2d63a 21031#define wxUSE_SPLINES 1
a0b9e27f 21032EOF
10f2d63a
VZ
21033
21034fi
21035
8284b0c5 21036
1e6feb95
VZ
21037USES_CONTROLS=0
21038if test "$wxUSE_CONTROLS" = "yes"; then
21039 USES_CONTROLS=1
21040fi
21041
10f2d63a 21042if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21043 cat >> confdefs.h <<\EOF
10f2d63a 21044#define wxUSE_ACCEL 1
a0b9e27f 21045EOF
10f2d63a 21046
1e6feb95
VZ
21047 USES_CONTROLS=1
21048fi
21049
21050if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21051 cat >> confdefs.h <<\EOF
1e6feb95 21052#define wxUSE_BUTTON 1
a0b9e27f 21053EOF
1e6feb95
VZ
21054
21055 USES_CONTROLS=1
21056fi
21057
21058if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21059 cat >> confdefs.h <<\EOF
1e6feb95 21060#define wxUSE_BMPBUTTON 1
a0b9e27f 21061EOF
1e6feb95
VZ
21062
21063 USES_CONTROLS=1
21064fi
21065
21066if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21067 cat >> confdefs.h <<\EOF
1e6feb95 21068#define wxUSE_CALENDARCTRL 1
a0b9e27f 21069EOF
1e6feb95
VZ
21070
21071 USES_CONTROLS=1
21072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21073fi
21074
21075if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21076 cat >> confdefs.h <<\EOF
10f2d63a 21077#define wxUSE_CARET 1
a0b9e27f 21078EOF
10f2d63a 21079
1e6feb95 21080 USES_CONTROLS=1
10f2d63a
VZ
21081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21082fi
21083
21084if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21085 cat >> confdefs.h <<\EOF
10f2d63a 21086#define wxUSE_COMBOBOX 1
a0b9e27f 21087EOF
10f2d63a 21088
1e6feb95 21089 USES_CONTROLS=1
10f2d63a
VZ
21090fi
21091
21092if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21093 cat >> confdefs.h <<\EOF
10f2d63a 21094#define wxUSE_CHOICE 1
a0b9e27f 21095EOF
10f2d63a 21096
1e6feb95 21097 USES_CONTROLS=1
10f2d63a
VZ
21098fi
21099
21100if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21101 cat >> confdefs.h <<\EOF
10f2d63a 21102#define wxUSE_CHECKBOX 1
a0b9e27f 21103EOF
10f2d63a 21104
1e6feb95 21105 USES_CONTROLS=1
10f2d63a
VZ
21106fi
21107
21108if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21109 cat >> confdefs.h <<\EOF
10f2d63a 21110#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21111EOF
10f2d63a 21112
1e6feb95 21113 USES_CONTROLS=1
10f2d63a
VZ
21114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21115fi
21116
21117if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21118 cat >> confdefs.h <<\EOF
10f2d63a 21119#define wxUSE_GAUGE 1
a0b9e27f 21120EOF
10f2d63a 21121
1e6feb95 21122 USES_CONTROLS=1
10f2d63a
VZ
21123fi
21124
d6a55c4b
VZ
21125if test "$wxUSE_NEW_GRID" = "yes"; then
21126 wxUSE_GRID="yes"
a0b9e27f 21127 cat >> confdefs.h <<\EOF
d6a55c4b 21128#define wxUSE_NEW_GRID 1
a0b9e27f 21129EOF
10f2d63a 21130
1e6feb95 21131 USES_CONTROLS=1
d6a55c4b 21132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
21133fi
21134
d6a55c4b 21135if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21136 cat >> confdefs.h <<\EOF
d6a55c4b 21137#define wxUSE_GRID 1
a0b9e27f 21138EOF
10f2d63a 21139
1e6feb95 21140 USES_CONTROLS=1
d6a55c4b 21141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21142fi
21143
21144if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21145 cat >> confdefs.h <<\EOF
10f2d63a 21146#define wxUSE_IMAGLIST 1
a0b9e27f 21147EOF
10f2d63a
VZ
21148
21149fi
21150
21151if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21152 cat >> confdefs.h <<\EOF
10f2d63a 21153#define wxUSE_LISTBOX 1
a0b9e27f 21154EOF
10f2d63a 21155
1e6feb95 21156 USES_CONTROLS=1
10f2d63a
VZ
21157fi
21158
21159if test "$wxUSE_LISTCTRL" = "yes"; then
21160 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21161 cat >> confdefs.h <<\EOF
10f2d63a 21162#define wxUSE_LISTCTRL 1
a0b9e27f 21163EOF
10f2d63a 21164
1e6feb95 21165 USES_CONTROLS=1
10f2d63a
VZ
21166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21167 else
a0b9e27f 21168 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21169 fi
21170fi
21171
21172if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21173 cat >> confdefs.h <<\EOF
10f2d63a 21174#define wxUSE_NOTEBOOK 1
a0b9e27f 21175EOF
10f2d63a 21176
1e6feb95 21177 USES_CONTROLS=1
10f2d63a
VZ
21178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21179fi
21180
24176f2c 21181if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 21182 cat >> confdefs.h <<\EOF
24176f2c 21183#define wxUSE_PROPSHEET 1
a0b9e27f 21184EOF
24176f2c
GD
21185
21186 USES_CONTROLS=1
21187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21188fi
21189
10f2d63a 21190if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21191 cat >> confdefs.h <<\EOF
10f2d63a 21192#define wxUSE_RADIOBOX 1
a0b9e27f 21193EOF
10f2d63a 21194
1e6feb95 21195 USES_CONTROLS=1
10f2d63a
VZ
21196fi
21197
21198if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21199 cat >> confdefs.h <<\EOF
10f2d63a 21200#define wxUSE_RADIOBTN 1
a0b9e27f 21201EOF
10f2d63a 21202
1e6feb95 21203 USES_CONTROLS=1
10f2d63a
VZ
21204fi
21205
21206if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21207 cat >> confdefs.h <<\EOF
10f2d63a 21208#define wxUSE_SASH 1
a0b9e27f 21209EOF
10f2d63a
VZ
21210
21211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21212fi
21213
21214if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21215 cat >> confdefs.h <<\EOF
10f2d63a 21216#define wxUSE_SCROLLBAR 1
a0b9e27f 21217EOF
10f2d63a 21218
1e6feb95 21219 USES_CONTROLS=1
741a9306 21220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21221fi
21222
21223if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21224 cat >> confdefs.h <<\EOF
10f2d63a 21225#define wxUSE_SLIDER 1
a0b9e27f 21226EOF
10f2d63a 21227
1e6feb95 21228 USES_CONTROLS=1
10f2d63a
VZ
21229fi
21230
21231if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21232 cat >> confdefs.h <<\EOF
10f2d63a 21233#define wxUSE_SPINBTN 1
a0b9e27f 21234EOF
10f2d63a 21235
1e6feb95 21236 USES_CONTROLS=1
10f2d63a
VZ
21237fi
21238
56cfaa52 21239if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21240 cat >> confdefs.h <<\EOF
56cfaa52 21241#define wxUSE_SPINCTRL 1
a0b9e27f 21242EOF
56cfaa52 21243
1e6feb95 21244 USES_CONTROLS=1
56cfaa52
RR
21245fi
21246
10f2d63a 21247if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21248 cat >> confdefs.h <<\EOF
10f2d63a 21249#define wxUSE_SPLITTER 1
a0b9e27f 21250EOF
10f2d63a
VZ
21251
21252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21253fi
21254
21255if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21256 cat >> confdefs.h <<\EOF
10f2d63a 21257#define wxUSE_STATBMP 1
a0b9e27f 21258EOF
10f2d63a 21259
1e6feb95 21260 USES_CONTROLS=1
10f2d63a
VZ
21261fi
21262
21263if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21264 cat >> confdefs.h <<\EOF
10f2d63a 21265#define wxUSE_STATBOX 1
a0b9e27f 21266EOF
10f2d63a 21267
1e6feb95
VZ
21268 USES_CONTROLS=1
21269fi
21270
21271if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21272 cat >> confdefs.h <<\EOF
1e6feb95 21273#define wxUSE_STATTEXT 1
a0b9e27f 21274EOF
1e6feb95
VZ
21275
21276 USES_CONTROLS=1
10f2d63a
VZ
21277fi
21278
21279if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21280 cat >> confdefs.h <<\EOF
10f2d63a 21281#define wxUSE_STATLINE 1
a0b9e27f 21282EOF
10f2d63a 21283
89e6bf6d 21284 USES_CONTROLS=1
10f2d63a
VZ
21285fi
21286
21287if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21288 cat >> confdefs.h <<\EOF
10f2d63a 21289#define wxUSE_STATUSBAR 1
a0b9e27f 21290EOF
10f2d63a 21291
1e6feb95 21292 USES_CONTROLS=1
698dcdb6 21293
2286341c 21294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21295fi
21296
21297if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21298 cat >> confdefs.h <<\EOF
10f2d63a 21299#define wxUSE_TAB_DIALOG 1
a0b9e27f 21300EOF
10f2d63a
VZ
21301
21302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21303fi
21304
1e6feb95 21305if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21306 cat >> confdefs.h <<\EOF
1e6feb95 21307#define wxUSE_TEXTCTRL 1
a0b9e27f 21308EOF
1e6feb95
VZ
21309
21310 USES_CONTROLS=1
21311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21312fi
21313
1db8dc4a 21314if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 21315 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21316 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21317 wxUSE_TOGGLEBTN=no
21318 fi
21319 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21320 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21321 wxUSE_TOGGLEBTN=no
21322 fi
21323
21324 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21325 cat >> confdefs.h <<\EOF
1db8dc4a 21326#define wxUSE_TOGGLEBTN 1
a0b9e27f 21327EOF
1db8dc4a 21328
1e6feb95 21329 USES_CONTROLS=1
a45d7ab7 21330 fi
1db8dc4a
VZ
21331fi
21332
360d6699 21333if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21334 cat >> confdefs.h <<\EOF
360d6699 21335#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21336EOF
360d6699
VZ
21337
21338 wxUSE_TOOLBAR="yes"
1e6feb95 21339 USES_CONTROLS=1
360d6699
VZ
21340fi
21341
10f2d63a 21342if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21343 cat >> confdefs.h <<\EOF
10f2d63a 21344#define wxUSE_TOOLBAR 1
a0b9e27f 21345EOF
10f2d63a 21346
1e6feb95 21347 USES_CONTROLS=1
698dcdb6 21348
360d6699
VZ
21349 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21350 wxUSE_TOOLBAR_NATIVE="yes"
21351 fi
21352
1e6feb95 21353 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21354 cat >> confdefs.h <<\EOF
360d6699 21355#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21356EOF
360d6699 21357
1e6feb95
VZ
21358 USES_CONTROLS=1
21359 fi
21360
21361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21362fi
21363
10f2d63a
VZ
21364if test "$wxUSE_TOOLTIPS" = "yes"; then
21365 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21366 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21367 else
89e6bf6d
VZ
21368 if test "$wxUSE_UNIVERSAL" = "yes"; then
21369 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21370 else
89e6bf6d 21371 cat >> confdefs.h <<\EOF
10f2d63a 21372#define wxUSE_TOOLTIPS 1
a0b9e27f 21373EOF
10f2d63a
VZ
21374
21375 fi
21376 fi
21377fi
21378
21379if test "$wxUSE_TREECTRL" = "yes"; then
21380 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21381 cat >> confdefs.h <<\EOF
10f2d63a 21382#define wxUSE_TREECTRL 1
a0b9e27f 21383EOF
10f2d63a 21384
1e6feb95 21385 USES_CONTROLS=1
10f2d63a
VZ
21386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21387 else
a0b9e27f 21388 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21389 fi
21390fi
21391
9f41d601 21392if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 21393 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21394 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21395 else
485cf710 21396 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21397 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21398 else
3c011993 21399 if test "$wxUSE_PM" = 1; then
a0b9e27f 21400 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21401 else
a0b9e27f 21402 cat >> confdefs.h <<\EOF
9f41d601 21403#define wxUSE_POPUPWIN 1
a0b9e27f 21404EOF
9f41d601 21405
8284b0c5 21406
3c011993
VZ
21407 USES_CONTROLS=1
21408 fi
485cf710 21409 fi
6abe4b65 21410 fi
9f41d601
RR
21411fi
21412
dd964dcc 21413if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21414 if test "$wxUSE_PM" = 1; then
a0b9e27f 21415 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21416 else
a0b9e27f 21417 cat >> confdefs.h <<\EOF
dd964dcc 21418#define wxUSE_TIPWINDOW 1
a0b9e27f 21419EOF
dd964dcc 21420
3c011993 21421 fi
dd964dcc
VZ
21422fi
21423
1e6feb95 21424if test "$USES_CONTROLS" = 1; then
a0b9e27f 21425 cat >> confdefs.h <<\EOF
1e6feb95 21426#define wxUSE_CONTROLS 1
a0b9e27f 21427EOF
10f2d63a 21428
10f2d63a
VZ
21429fi
21430
8284b0c5 21431
24176f2c 21432if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 21433 cat >> confdefs.h <<\EOF
24176f2c 21434#define wxUSE_TREELAYOUT 1
a0b9e27f 21435EOF
24176f2c
GD
21436
21437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21438fi
1e6feb95 21439
24fd6d87 21440if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21441 cat >> confdefs.h <<\EOF
24fd6d87 21442#define wxUSE_DRAGIMAGE 1
a0b9e27f 21443EOF
24fd6d87
VZ
21444
21445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21446fi
21447
1e6feb95 21448if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21449 cat >> confdefs.h <<\EOF
1e6feb95 21450#define wxUSE_MENUS 1
a0b9e27f 21451EOF
10f2d63a 21452
1e6feb95 21453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21454fi
21455
1e6feb95 21456if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21457 cat >> confdefs.h <<\EOF
1e6feb95 21458#define wxUSE_METAFILE 1
a0b9e27f 21459EOF
10f2d63a 21460
10f2d63a
VZ
21461fi
21462
1e6feb95 21463if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21464 cat >> confdefs.h <<\EOF
1e6feb95 21465#define wxUSE_MIMETYPE 1
a0b9e27f 21466EOF
10f2d63a 21467
10f2d63a
VZ
21468fi
21469
3e44f09d 21470if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21471 cat >> confdefs.h <<\EOF
3e44f09d 21472#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21473EOF
3e44f09d 21474
321d2b14
VZ
21475if test "$TOOLKIT" = "MSW"; then
21476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21477fi
21478
3e44f09d
VZ
21479fi
21480
4cdb0ab0 21481if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21482 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21483 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21484 wxUSE_PROTOCOL=no
21485 fi
21486
21487 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21488 cat >> confdefs.h <<\EOF
4cdb0ab0 21489#define wxUSE_PROTOCOL 1
a0b9e27f 21490EOF
4cdb0ab0 21491
8284b0c5 21492
3954f9ca 21493 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21494 cat >> confdefs.h <<\EOF
4cdb0ab0 21495#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21496EOF
4cdb0ab0 21497
3954f9ca
VS
21498 fi
21499 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21500 cat >> confdefs.h <<\EOF
4cdb0ab0 21501#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21502EOF
4cdb0ab0 21503
3954f9ca
VS
21504 fi
21505 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21506 cat >> confdefs.h <<\EOF
3954f9ca 21507#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21508EOF
3954f9ca
VS
21509
21510 fi
4cdb0ab0 21511 fi
3954f9ca
VS
21512fi
21513
21514if test "$wxUSE_URL" = "yes"; then
21515 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21516 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21517 wxUSE_URL=no
21518 fi
21519 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21520 cat >> confdefs.h <<\EOF
3954f9ca 21521#define wxUSE_URL 1
a0b9e27f 21522EOF
4cdb0ab0
VS
21523
21524 fi
21525fi
21526
10f2d63a 21527if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21528 cat >> confdefs.h <<\EOF
10f2d63a 21529#define wxUSE_MINIFRAME 1
a0b9e27f 21530EOF
10f2d63a
VZ
21531
21532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21533fi
21534
21535if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21536 cat >> confdefs.h <<\EOF
10f2d63a 21537#define wxUSE_HTML 1
a0b9e27f 21538EOF
10f2d63a
VZ
21539
21540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21541fi
21542
21543if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21544 cat >> confdefs.h <<\EOF
1e487827 21545#define wxUSE_VALIDATORS 1
a0b9e27f 21546EOF
703e0a69 21547
698dcdb6
VZ
21548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21549fi
21550
edae8572 21551if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21552 cat >> confdefs.h <<\EOF
edae8572 21553#define wxUSE_PALETTE 1
a0b9e27f 21554EOF
edae8572
VZ
21555
21556fi
21557
698dcdb6 21558if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21559 cat >> confdefs.h <<\EOF
698dcdb6 21560#define wxUSE_IMAGE 1
a0b9e27f 21561EOF
698dcdb6
VZ
21562
21563fi
21564
21565if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21566 cat >> confdefs.h <<\EOF
698dcdb6 21567#define wxUSE_GIF 1
a0b9e27f 21568EOF
698dcdb6
VZ
21569
21570fi
21571
21572if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21573 cat >> confdefs.h <<\EOF
698dcdb6 21574#define wxUSE_PCX 1
a0b9e27f 21575EOF
698dcdb6
VZ
21576
21577fi
21578
4b6b4dfc 21579if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21580 cat >> confdefs.h <<\EOF
4b6b4dfc 21581#define wxUSE_IFF 1
a0b9e27f 21582EOF
4b6b4dfc
RR
21583
21584fi
21585
698dcdb6 21586if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21587 cat >> confdefs.h <<\EOF
698dcdb6 21588#define wxUSE_PNM 1
a0b9e27f 21589EOF
698dcdb6
VZ
21590
21591fi
21592
21593if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21594 cat >> confdefs.h <<\EOF
698dcdb6 21595#define wxUSE_XPM 1
a0b9e27f 21596EOF
698dcdb6
VZ
21597
21598fi
21599
658974ae 21600if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21601 cat >> confdefs.h <<\EOF
658974ae 21602#define wxUSE_ICO_CUR 1
a0b9e27f 21603EOF
658974ae
VS
21604
21605fi
21606
a72a4bfa
VS
21607if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21608 LIBS=" -lunicows $LIBS"
21609fi
21610
8284b0c5 21611
1e6feb95 21612if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21613 cat >> confdefs.h <<\EOF
1e6feb95 21614#define wxUSE_CHOICEDLG 1
a0b9e27f 21615EOF
1e6feb95
VZ
21616
21617fi
21618
21619if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21620 cat >> confdefs.h <<\EOF
1e6feb95 21621#define wxUSE_COLOURDLG 1
a0b9e27f 21622EOF
1e6feb95
VZ
21623
21624fi
21625
21626if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21627 cat >> confdefs.h <<\EOF
1e6feb95 21628#define wxUSE_FILEDLG 1
a0b9e27f 21629EOF
1e6feb95
VZ
21630
21631fi
21632
8db37e06 21633if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21634 cat >> confdefs.h <<\EOF
8db37e06 21635#define wxUSE_FINDREPLDLG 1
a0b9e27f 21636EOF
8db37e06
VZ
21637
21638fi
21639
1e6feb95 21640if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21641 cat >> confdefs.h <<\EOF
1e6feb95 21642#define wxUSE_FONTDLG 1
a0b9e27f 21643EOF
1e6feb95
VZ
21644
21645fi
21646
21647if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21648 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21649 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21650 else
a0b9e27f 21651 cat >> confdefs.h <<\EOF
1e6feb95 21652#define wxUSE_DIRDLG 1
a0b9e27f 21653EOF
1e6feb95 21654
1e6feb95
VZ
21655 fi
21656fi
21657
21658if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21659 cat >> confdefs.h <<\EOF
1e6feb95 21660#define wxUSE_MSGDLG 1
a0b9e27f 21661EOF
1e6feb95
VZ
21662
21663fi
21664
21665if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21666 cat >> confdefs.h <<\EOF
1e6feb95 21667#define wxUSE_NUMBERDLG 1
a0b9e27f 21668EOF
1e6feb95
VZ
21669
21670fi
21671
21672if test "$wxUSE_PROGRESSDLG" = "yes"; then
21673 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21674 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21675 else
a0b9e27f 21676 cat >> confdefs.h <<\EOF
1e6feb95 21677#define wxUSE_PROGRESSDLG 1
a0b9e27f 21678EOF
1e6feb95
VZ
21679
21680 fi
21681fi
21682
cbca9943 21683if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21684 cat >> confdefs.h <<\EOF
cbca9943 21685#define wxUSE_SPLASH 1
a0b9e27f 21686EOF
cbca9943
VZ
21687
21688fi
21689
1e6feb95
VZ
21690if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21691 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21692 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21693 else
a0b9e27f 21694 cat >> confdefs.h <<\EOF
1e6feb95 21695#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21696EOF
1e6feb95 21697
7b4a847f
RR
21698 fi
21699fi
579d8138 21700
8284b0c5 21701if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21702 cat >> confdefs.h <<\EOF
8284b0c5 21703#define wxUSE_TEXTDLG 1
a0b9e27f 21704EOF
8284b0c5
MB
21705
21706fi
21707
21708if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21709 cat >> confdefs.h <<\EOF
8284b0c5 21710#define wxUSE_WIZARDDLG 1
a0b9e27f 21711EOF
8284b0c5
MB
21712
21713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21714fi
21715
21716
21717if test "$cross_compiling" = "yes"; then
21718 OSINFO="\"$host\""
21719else
21720 OSINFO=`uname -s -r -m`
21721 OSINFO="\"$OSINFO\""
21722fi
21723
a0b9e27f 21724cat >> confdefs.h <<EOF
8284b0c5 21725#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 21726EOF
8284b0c5
MB
21727
21728
21729
21730if test "x$prefix" != "xNONE"; then
21731 wxPREFIX=$prefix
21732else
21733 wxPREFIX=$ac_default_prefix
21734fi
21735
a0b9e27f 21736cat >> confdefs.h <<EOF
8284b0c5 21737#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21738EOF
8284b0c5
MB
21739
21740
21741
21742
21743
21744if test "$wxUSE_MAC" = 1 ; then
21745 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21746fi
21747
21748
2b5f62a0
VZ
21749LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21750
21751have_cos=0
21752have_floor=0
21753for ac_func in cos
21754do
21755echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 21756echo "configure:21757: checking for $ac_func" >&5
2b5f62a0
VZ
21757if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21758 echo $ac_n "(cached) $ac_c" 1>&6
21759else
21760 cat > conftest.$ac_ext <<EOF
65d8ef1e 21761#line 21762 "configure"
2b5f62a0
VZ
21762#include "confdefs.h"
21763/* System header to define __stub macros and hopefully few prototypes,
21764 which can conflict with char $ac_func(); below. */
21765#include <assert.h>
21766/* Override any gcc2 internal prototype to avoid an error. */
21767/* We use char because int might match the return type of a gcc2
21768 builtin and then its argument prototype would still apply. */
21769char $ac_func();
21770
21771int main() {
21772
21773/* The GNU C library defines this for functions which it implements
21774 to always fail with ENOSYS. Some functions are actually named
21775 something starting with __ and the normal name is an alias. */
21776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21777choke me
21778#else
21779$ac_func();
21780#endif
21781
21782; return 0; }
21783EOF
65d8ef1e 21784if { (eval echo configure:21785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21785 rm -rf conftest*
21786 eval "ac_cv_func_$ac_func=yes"
21787else
21788 echo "configure: failed program was:" >&5
21789 cat conftest.$ac_ext >&5
21790 rm -rf conftest*
21791 eval "ac_cv_func_$ac_func=no"
21792fi
21793rm -f conftest*
21794fi
21795
21796if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21797 echo "$ac_t""yes" 1>&6
21798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21799 cat >> confdefs.h <<EOF
21800#define $ac_tr_func 1
21801EOF
21802 have_cos=1
21803else
21804 echo "$ac_t""no" 1>&6
21805fi
21806done
21807
21808for ac_func in floor
21809do
21810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 21811echo "configure:21812: checking for $ac_func" >&5
2b5f62a0
VZ
21812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21813 echo $ac_n "(cached) $ac_c" 1>&6
21814else
21815 cat > conftest.$ac_ext <<EOF
65d8ef1e 21816#line 21817 "configure"
2b5f62a0
VZ
21817#include "confdefs.h"
21818/* System header to define __stub macros and hopefully few prototypes,
21819 which can conflict with char $ac_func(); below. */
21820#include <assert.h>
21821/* Override any gcc2 internal prototype to avoid an error. */
21822/* We use char because int might match the return type of a gcc2
21823 builtin and then its argument prototype would still apply. */
21824char $ac_func();
21825
21826int main() {
21827
21828/* The GNU C library defines this for functions which it implements
21829 to always fail with ENOSYS. Some functions are actually named
21830 something starting with __ and the normal name is an alias. */
21831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21832choke me
21833#else
21834$ac_func();
21835#endif
21836
21837; return 0; }
21838EOF
65d8ef1e 21839if { (eval echo configure:21840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21840 rm -rf conftest*
21841 eval "ac_cv_func_$ac_func=yes"
21842else
21843 echo "configure: failed program was:" >&5
21844 cat conftest.$ac_ext >&5
21845 rm -rf conftest*
21846 eval "ac_cv_func_$ac_func=no"
21847fi
21848rm -f conftest*
21849fi
21850
21851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21852 echo "$ac_t""yes" 1>&6
21853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21854 cat >> confdefs.h <<EOF
21855#define $ac_tr_func 1
21856EOF
21857 have_floor=1
21858else
21859 echo "$ac_t""no" 1>&6
21860fi
21861done
21862
21863echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
65d8ef1e 21864echo "configure:21865: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
21865if test "$have_cos" = 1 -a "$have_floor" = 1; then
21866 echo "$ac_t""yes" 1>&6
21867else
21868 echo "$ac_t""no" 1>&6
21869 LIBS="$LIBS -lm"
21870 # use different functions to avoid configure caching
21871 have_sin=0
21872 have_ceil=0
21873 for ac_func in sin
21874do
21875echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 21876echo "configure:21877: checking for $ac_func" >&5
2b5f62a0
VZ
21877if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21878 echo $ac_n "(cached) $ac_c" 1>&6
21879else
21880 cat > conftest.$ac_ext <<EOF
65d8ef1e 21881#line 21882 "configure"
2b5f62a0
VZ
21882#include "confdefs.h"
21883/* System header to define __stub macros and hopefully few prototypes,
21884 which can conflict with char $ac_func(); below. */
21885#include <assert.h>
21886/* Override any gcc2 internal prototype to avoid an error. */
21887/* We use char because int might match the return type of a gcc2
21888 builtin and then its argument prototype would still apply. */
21889char $ac_func();
21890
21891int main() {
21892
21893/* The GNU C library defines this for functions which it implements
21894 to always fail with ENOSYS. Some functions are actually named
21895 something starting with __ and the normal name is an alias. */
21896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21897choke me
21898#else
21899$ac_func();
21900#endif
21901
21902; return 0; }
21903EOF
65d8ef1e 21904if { (eval echo configure:21905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21905 rm -rf conftest*
21906 eval "ac_cv_func_$ac_func=yes"
21907else
21908 echo "configure: failed program was:" >&5
21909 cat conftest.$ac_ext >&5
21910 rm -rf conftest*
21911 eval "ac_cv_func_$ac_func=no"
21912fi
21913rm -f conftest*
21914fi
21915
21916if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21917 echo "$ac_t""yes" 1>&6
21918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21919 cat >> confdefs.h <<EOF
21920#define $ac_tr_func 1
21921EOF
21922 have_sin=1
21923else
21924 echo "$ac_t""no" 1>&6
21925fi
21926done
21927
21928 for ac_func in ceil
21929do
21930echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
65d8ef1e 21931echo "configure:21932: checking for $ac_func" >&5
2b5f62a0
VZ
21932if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21933 echo $ac_n "(cached) $ac_c" 1>&6
21934else
21935 cat > conftest.$ac_ext <<EOF
65d8ef1e 21936#line 21937 "configure"
2b5f62a0
VZ
21937#include "confdefs.h"
21938/* System header to define __stub macros and hopefully few prototypes,
21939 which can conflict with char $ac_func(); below. */
21940#include <assert.h>
21941/* Override any gcc2 internal prototype to avoid an error. */
21942/* We use char because int might match the return type of a gcc2
21943 builtin and then its argument prototype would still apply. */
21944char $ac_func();
21945
21946int main() {
21947
21948/* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21952choke me
21953#else
21954$ac_func();
21955#endif
21956
21957; return 0; }
21958EOF
65d8ef1e 21959if { (eval echo configure:21960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21960 rm -rf conftest*
21961 eval "ac_cv_func_$ac_func=yes"
21962else
21963 echo "configure: failed program was:" >&5
21964 cat conftest.$ac_ext >&5
21965 rm -rf conftest*
21966 eval "ac_cv_func_$ac_func=no"
21967fi
21968rm -f conftest*
21969fi
21970
21971if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21972 echo "$ac_t""yes" 1>&6
21973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21974 cat >> confdefs.h <<EOF
21975#define $ac_tr_func 1
21976EOF
21977 have_ceil=1
21978else
21979 echo "$ac_t""no" 1>&6
21980fi
21981done
21982
21983 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
65d8ef1e 21984echo "configure:21985: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
21985 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
21986 echo "$ac_t""yes" 1>&6
21987 else
21988 echo "$ac_t""no" 1>&6
21989 # not sure we should warn the user, crash, etc.
21990 fi
21991fi
8284b0c5
MB
21992
21993if test "$wxUSE_GUI" = "yes"; then
21994
21995 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21996
a0b9e27f 21997
8284b0c5
MB
21998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21999 drawing dynamic erase event exec font image \
22000 minimal propsize rotate widgets"
22001
22002 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22003else
22004 SAMPLES_SUBDIRS="console"
22005fi
22006
22007
22008INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22009-I\${top_srcdir}/include \
22010$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22011$TOOLKIT_INCLUDE"
22012
22013if test "$wxUSE_GTK" = 1; then
22014 WXCONFIG_INCLUDE=
22015else
22016 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22017fi
22018
22019if test "$GXX" = yes ; then
22020 CXXWARNINGS="-Wall"
a0b9e27f 22021
8284b0c5
MB
22022 if test "$wxUSE_NO_DEPS" = "no" ; then
22023 CFLAGS="-MMD $CFLAGS"
22024 CXXFLAGS="-MMD $CXXFLAGS"
22025 fi
22026fi
22027
b2fee376 22028EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22029
b2fee376 22030CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22031CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22032CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22033LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22034
22035LDFLAGS="$LDFLAGS $PROFILE"
22036
22037SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
2f51a9ec
GD
22106
22107
22108
22109
f6bcfd97 22110
dad6c0ea 22111
caa2c79b 22112
3711412e 22113
1e6feb95
VZ
22114
22115
885d4bf5
VS
22116
22117
22118
22119
9b695262
VZ
22120
22121
62d0491b 22122
ef7f2189 22123
40f7145c 22124
2b5f62a0
VZ
22125
22126
22127
22128
22129
2bffed64
VZ
22130
22131
3bd8fb5f 22132
e26c13cf 22133
10f2d63a 22134
a0b9e27f
MB
22135
22136echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
65d8ef1e 22137echo "configure:22138: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22138set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22139if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22140 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22141else
a0b9e27f 22142 cat > conftestmake <<\EOF
10f2d63a
VZ
22143all:
22144 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22145EOF
10f2d63a 22146# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22147eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22148if test -n "$ac_maketemp"; then
22149 eval ac_cv_prog_make_${ac_make}_set=yes
22150else
22151 eval ac_cv_prog_make_${ac_make}_set=no
22152fi
a0b9e27f 22153rm -f conftestmake
10f2d63a
VZ
22154fi
22155if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22156 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22157 SET_MAKE=
22158else
a0b9e27f 22159 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22160 SET_MAKE="MAKE=${MAKE-make}"
22161fi
22162
8284b0c5 22163
3a922bb4
RL
22164if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22165 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22166fi
665bbe97 22167
8284b0c5 22168
10f2d63a 22169
57973b9c
VZ
22170wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22171wx_cv_if_gnu_make=$IF_GNU_MAKE
22172wx_cv_path_ifs=$PATH_IFS
22173wx_cv_program_ext=$PROGRAM_EXT
22174wx_cv_target_library=$WX_TARGET_LIBRARY
22175wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22176wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22177wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22178wx_cv_release=${WX_RELEASE}
22179wx_cv_current=${WX_CURRENT}
22180wx_cv_revision=${WX_REVISION}
22181wx_cv_age=${WX_AGE}
27635a90 22182wx_cv_use_gui=${USE_GUI}
5e66eee1 22183wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22184export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22185 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22186 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22187 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22188 wx_cv_use_gui wx_cv_use_resources
57973b9c 22189
a0b9e27f 22190subdirs="demos samples utils contrib"
8284b0c5 22191
10f2d63a 22192
a0b9e27f
MB
22193trap '' 1 2 15
22194cat > confcache <<\EOF
10f2d63a
VZ
22195# This file is a shell script that caches the results of configure
22196# tests run on this system so they can be shared between configure
a0b9e27f
MB
22197# scripts and configure runs. It is not useful on other systems.
22198# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22199#
a0b9e27f
MB
22200# By default, configure uses ./config.cache as the cache file,
22201# creating it if it does not exist already. You can give configure
22202# the --cache-file=FILE option to use a different cache file; that is
22203# what configure does when it calls configure scripts in
22204# subdirectories, so they share the cache.
22205# Giving --cache-file=/dev/null disables caching, for debugging configure.
22206# config.status only pays attention to the cache file if you give it the
22207# --recheck option to rerun configure.
10f2d63a 22208#
a0b9e27f 22209EOF
10f2d63a
VZ
22210# The following way of writing the cache mishandles newlines in values,
22211# but we know of no workaround that is simple, portable, and efficient.
22212# So, don't put newlines in cache variables' values.
22213# Ultrix sh set writes to stderr and can't be redirected directly,
22214# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22215(set) 2>&1 |
22216 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22217 *ac_space=\ *)
22218 # `set' does not quote correctly, so add quotes (double-quote substitution
22219 # turns \\\\ into \\, and sed turns \\ into \).
22220 sed -n \
22221 -e "s/'/'\\\\''/g" \
22222 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22223 ;;
22224 *)
22225 # `set' quotes correctly as required by POSIX, so do not add quotes.
22226 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22227 ;;
22228 esac >> confcache
22229if cmp -s $cache_file confcache; then
22230 :
22231else
10f2d63a 22232 if test -w $cache_file; then
a0b9e27f
MB
22233 echo "updating cache $cache_file"
22234 cat confcache > $cache_file
10f2d63a
VZ
22235 else
22236 echo "not updating unwritable cache $cache_file"
22237 fi
22238fi
22239rm -f confcache
22240
a0b9e27f
MB
22241trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22242
10f2d63a
VZ
22243test "x$prefix" = xNONE && prefix=$ac_default_prefix
22244# Let make expand exec_prefix.
22245test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22246
a0b9e27f
MB
22247# Any assignment to VPATH causes Sun make to only execute
22248# the first set of double-colon rules, so remove it if not needed.
22249# If there is a colon in the path, we need to keep it.
10f2d63a 22250if test "x$srcdir" = x.; then
a0b9e27f 22251 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22252fi
22253
a0b9e27f 22254trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22255
a0b9e27f 22256DEFS=-DHAVE_CONFIG_H
8284b0c5 22257
a0b9e27f 22258# Without the "./", some shells look in PATH for config.status.
247f5006 22259: ${CONFIG_STATUS=./config.status}
52127426 22260
a0b9e27f
MB
22261echo creating $CONFIG_STATUS
22262rm -f $CONFIG_STATUS
22263cat > $CONFIG_STATUS <<EOF
22264#! /bin/sh
22265# Generated automatically by configure.
22266# Run this file to recreate the current configuration.
22267# This directory was configured as follows,
22268# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22269#
a0b9e27f 22270# $0 $ac_configure_args
247f5006 22271#
a0b9e27f
MB
22272# Compiler output produced by configure, useful for debugging
22273# configure, is in ./config.log if it exists.
247f5006 22274
a0b9e27f
MB
22275ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22276for ac_option
247f5006 22277do
a0b9e27f
MB
22278 case "\$ac_option" in
22279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22280 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22281 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22282 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22283 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22284 exit 0 ;;
22285 -help | --help | --hel | --he | --h)
22286 echo "\$ac_cs_usage"; exit 0 ;;
22287 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22288 esac
22289done
22290
a0b9e27f
MB
22291ac_given_srcdir=$srcdir
22292ac_given_INSTALL="$INSTALL"
247f5006 22293
a0b9e27f
MB
22294trap 'rm -fr `echo "
22295 wx-config
2b5f62a0 22296 version-script
a0b9e27f
MB
22297 src/make.env
22298 src/makeprog.env
22299 src/makelib.env
22300 Makefile
22301 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22302EOF
22303cat >> $CONFIG_STATUS <<EOF
247f5006 22304
a0b9e27f
MB
22305# Protect against being on the right side of a sed subst in config.status.
22306sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22307 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22308$ac_vpsub
22309$extrasub
22310s%@SHELL@%$SHELL%g
22311s%@CFLAGS@%$CFLAGS%g
22312s%@CPPFLAGS@%$CPPFLAGS%g
22313s%@CXXFLAGS@%$CXXFLAGS%g
22314s%@FFLAGS@%$FFLAGS%g
22315s%@DEFS@%$DEFS%g
22316s%@LDFLAGS@%$LDFLAGS%g
22317s%@LIBS@%$LIBS%g
22318s%@exec_prefix@%$exec_prefix%g
22319s%@prefix@%$prefix%g
22320s%@program_transform_name@%$program_transform_name%g
22321s%@bindir@%$bindir%g
22322s%@sbindir@%$sbindir%g
22323s%@libexecdir@%$libexecdir%g
22324s%@datadir@%$datadir%g
22325s%@sysconfdir@%$sysconfdir%g
22326s%@sharedstatedir@%$sharedstatedir%g
22327s%@localstatedir@%$localstatedir%g
22328s%@libdir@%$libdir%g
22329s%@includedir@%$includedir%g
22330s%@oldincludedir@%$oldincludedir%g
22331s%@infodir@%$infodir%g
22332s%@mandir@%$mandir%g
22333s%@host@%$host%g
22334s%@host_alias@%$host_alias%g
22335s%@host_cpu@%$host_cpu%g
22336s%@host_vendor@%$host_vendor%g
22337s%@host_os@%$host_os%g
22338s%@target@%$target%g
22339s%@target_alias@%$target_alias%g
22340s%@target_cpu@%$target_cpu%g
22341s%@target_vendor@%$target_vendor%g
22342s%@target_os@%$target_os%g
22343s%@build@%$build%g
22344s%@build_alias@%$build_alias%g
22345s%@build_cpu@%$build_cpu%g
22346s%@build_vendor@%$build_vendor%g
22347s%@build_os@%$build_os%g
22348s%@CC@%$CC%g
22349s%@CPP@%$CPP%g
22350s%@CXX@%$CXX%g
22351s%@RANLIB@%$RANLIB%g
22352s%@AR@%$AR%g
22353s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22354s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22355s%@INSTALL_DATA@%$INSTALL_DATA%g
22356s%@STRIP@%$STRIP%g
22357s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22358s%@YACC@%$YACC%g
22359s%@LEX@%$LEX%g
22360s%@LEXLIB@%$LEXLIB%g
22361s%@LN_S@%$LN_S%g
22362s%@CXXCPP@%$CXXCPP%g
22363s%@PKG_CONFIG@%$PKG_CONFIG%g
22364s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22365s%@GTK_LIBS@%$GTK_LIBS%g
22366s%@GTK_CONFIG@%$GTK_CONFIG%g
22367s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22368s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22369s%@X_CFLAGS@%$X_CFLAGS%g
22370s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22371s%@X_LIBS@%$X_LIBS%g
22372s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22373s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22374s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22375s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22376s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22377s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22378s%@RESCOMP@%$RESCOMP%g
22379s%@DEREZ@%$DEREZ%g
22380s%@LIBICONV@%$LIBICONV%g
22381s%@LEX_STEM@%$LEX_STEM%g
22382s%@PATH_IFS@%$PATH_IFS%g
22383s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22384s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22385s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22386s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22387s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22388s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22389s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22390s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22391s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22392s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22393s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22394s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22395s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22396s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22397s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22398s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22399s%@WX_ALL@%$WX_ALL%g
22400s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22401s%@SHARED_LD@%$SHARED_LD%g
22402s%@PIC_FLAG@%$PIC_FLAG%g
22403s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22404s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22405s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22406s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22407s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22408s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22409s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22410s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22411s%@USE_GUI@%$USE_GUI%g
22412s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22413s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22414s%@TOOLKIT@%$TOOLKIT%g
22415s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22416s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22417s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22418s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22419s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22420s%@cross_compiling@%$cross_compiling%g
22421s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22422s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22423s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22424s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22425s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22426s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22427s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22428s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22429s%@ALL_HEADERS@%$ALL_HEADERS%g
22430s%@ALL_SOURCES@%$ALL_SOURCES%g
22431s%@GUIDIST@%$GUIDIST%g
22432s%@PORT_FILES@%$PORT_FILES%g
22433s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22434s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22435s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22436s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22437s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22438s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22439s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22440s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22441s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22442s%@RESFLAGS@%$RESFLAGS%g
22443s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22444s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22445s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22446s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22447s%@LIBWXMACRES@%$LIBWXMACRES%g
22448s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
22449s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
2b5f62a0 22450s%@GCC@%$GCC%g
a0b9e27f
MB
22451s%@DLLTOOL@%$DLLTOOL%g
22452s%@AS@%$AS%g
22453s%@NM@%$NM%g
22454s%@LD@%$LD%g
22455s%@MAKEINFO@%$MAKEINFO%g
22456s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22457s%@SET_MAKE@%$SET_MAKE%g
22458s%@subdirs@%$subdirs%g
247f5006 22459
247f5006 22460CEOF
a0b9e27f 22461EOF
247f5006 22462
a0b9e27f
MB
22463cat >> $CONFIG_STATUS <<\EOF
22464
22465# Split the substitutions into bite-sized pieces for seds with
22466# small command number limits, like on Digital OSF/1 and HP-UX.
22467ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22468ac_file=1 # Number of current file.
22469ac_beg=1 # First line for current file.
22470ac_end=$ac_max_sed_cmds # Line after last line for current file.
22471ac_more_lines=:
22472ac_sed_cmds=""
22473while $ac_more_lines; do
22474 if test $ac_beg -gt 1; then
22475 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22476 else
22477 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22478 fi
22479 if test ! -s conftest.s$ac_file; then
22480 ac_more_lines=false
22481 rm -f conftest.s$ac_file
22482 else
22483 if test -z "$ac_sed_cmds"; then
22484 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22485 else
a0b9e27f 22486 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22487 fi
a0b9e27f
MB
22488 ac_file=`expr $ac_file + 1`
22489 ac_beg=$ac_end
22490 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22491 fi
a0b9e27f
MB
22492done
22493if test -z "$ac_sed_cmds"; then
22494 ac_sed_cmds=cat
22495fi
22496EOF
10f2d63a 22497
a0b9e27f 22498cat >> $CONFIG_STATUS <<EOF
10f2d63a 22499
a0b9e27f 22500CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22501 version-script
a0b9e27f
MB
22502 src/make.env
22503 src/makeprog.env
22504 src/makelib.env
22505 Makefile
22506 "}
22507EOF
22508cat >> $CONFIG_STATUS <<\EOF
22509for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22511 case "$ac_file" in
22512 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22513 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22514 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22515 esac
247f5006 22516
a0b9e27f 22517 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22518
a0b9e27f
MB
22519 # Remove last slash and all that follows it. Not all systems have dirname.
22520 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22521 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22522 # The file is in a subdirectory.
22523 test ! -d "$ac_dir" && mkdir "$ac_dir"
22524 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22525 # A "../" for each directory in $ac_dir_suffix.
22526 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22527 else
22528 ac_dir_suffix= ac_dots=
22529 fi
247f5006 22530
a0b9e27f
MB
22531 case "$ac_given_srcdir" in
22532 .) srcdir=.
22533 if test -z "$ac_dots"; then top_srcdir=.
22534 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22535 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22536 *) # Relative path.
a0b9e27f
MB
22537 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22538 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22539 esac
10f2d63a 22540
a0b9e27f
MB
22541 case "$ac_given_INSTALL" in
22542 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22543 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22544 esac
247f5006 22545
a0b9e27f
MB
22546 echo creating "$ac_file"
22547 rm -f "$ac_file"
22548 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22549 case "$ac_file" in
22550 *Makefile*) ac_comsub="1i\\
22551# $configure_input" ;;
22552 *) ac_comsub= ;;
22553 esac
247f5006 22554
a0b9e27f
MB
22555 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22556 sed -e "$ac_comsub
22557s%@configure_input@%$configure_input%g
22558s%@srcdir@%$srcdir%g
22559s%@top_srcdir@%$top_srcdir%g
22560s%@INSTALL@%$INSTALL%g
22561" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22562fi; done
22563rm -f conftest.s*
10f2d63a
VZ
22564
22565# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22566# NAME is the cpp macro being defined and VALUE is the value it is being given.
22567#
22568# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22569ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22570ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22571ac_dC='\3'
22572ac_dD='%g'
22573# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22574ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22575ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22576ac_uC=' '
a0b9e27f
MB
22577ac_uD='\4%g'
22578# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22579ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22580ac_eB='$%\1#\2define\3'
22581ac_eC=' '
22582ac_eD='%g'
22583
22584if test "${CONFIG_HEADERS+set}" != set; then
22585EOF
22586cat >> $CONFIG_STATUS <<EOF
22587 CONFIG_HEADERS="setup.h:setup.h.in"
22588EOF
22589cat >> $CONFIG_STATUS <<\EOF
22590fi
22591for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22593 case "$ac_file" in
22594 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22595 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22596 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22597 esac
22598
a0b9e27f
MB
22599 echo creating $ac_file
22600
22601 rm -f conftest.frag conftest.in conftest.out
22602 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22603 cat $ac_file_inputs > conftest.in
22604
22605EOF
22606
22607# Transform confdefs.h into a sed script conftest.vals that substitutes
22608# the proper values into config.h.in to produce config.h. And first:
22609# Protect against being on the right side of a sed subst in config.status.
22610# Protect against being in an unquoted here document in config.status.
22611rm -f conftest.vals
22612cat > conftest.hdr <<\EOF
22613s/[\\&%]/\\&/g
22614s%[\\$`]%\\&%g
22615s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22616s%ac_d%ac_u%gp
22617s%ac_u%ac_e%gp
22618EOF
22619sed -n -f conftest.hdr confdefs.h > conftest.vals
22620rm -f conftest.hdr
10f2d63a
VZ
22621
22622# This sed command replaces #undef with comments. This is necessary, for
22623# example, in the case of _POSIX_SOURCE, which is predefined and required
22624# on some systems where configure will not decide to define it.
a0b9e27f
MB
22625cat >> conftest.vals <<\EOF
22626s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22627EOF
22628
22629# Break up conftest.vals because some shells have a limit on
22630# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22631
22632rm -f conftest.tail
a0b9e27f 22633while :
10f2d63a 22634do
a0b9e27f
MB
22635 ac_lines=`grep -c . conftest.vals`
22636 # grep -c gives empty output for an empty file on some AIX systems.
22637 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22638 # Write a limited-size here document to conftest.frag.
22639 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22640 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22641 echo 'CEOF
a0b9e27f
MB
22642 sed -f conftest.frag conftest.in > conftest.out
22643 rm -f conftest.in
22644 mv conftest.out conftest.in
22645' >> $CONFIG_STATUS
22646 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22647 rm -f conftest.vals
22648 mv conftest.tail conftest.vals
10f2d63a 22649done
a0b9e27f
MB
22650rm -f conftest.vals
22651
22652cat >> $CONFIG_STATUS <<\EOF
22653 rm -f conftest.frag conftest.h
22654 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22655 cat conftest.in >> conftest.h
22656 rm -f conftest.in
22657 if cmp -s $ac_file conftest.h 2>/dev/null; then
22658 echo "$ac_file is unchanged"
22659 rm -f conftest.h
10f2d63a 22660 else
a0b9e27f
MB
22661 # Remove last slash and all that follows it. Not all systems have dirname.
22662 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22663 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22664 # The file is in a subdirectory.
22665 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22666 fi
a0b9e27f
MB
22667 rm -f $ac_file
22668 mv conftest.h $ac_file
247f5006 22669 fi
a0b9e27f
MB
22670fi; done
22671
22672EOF
22673cat >> $CONFIG_STATUS <<EOF
22674
22675 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22676 LN_S="${LN_S}"
22677
22678
22679EOF
22680cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22681
652d930d 22682 if test ! -h wx-config; then
991a5759 22683 chmod +x wx-config
3a922bb4
RL
22684 mv wx-config wx${TOOLCHAIN_NAME}-config
22685 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22686 fi
665bbe97 22687
00cf1208
RR
22688 if test ! -d lib; then
22689 mkdir lib
22690 fi
22691 if test ! -d lib/wx; then
22692 mkdir lib/wx
22693 fi
22694 if test ! -d lib/wx/include; then
22695 mkdir lib/wx/include
22696 fi
3a922bb4
RL
22697 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22698 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22699 fi
3a922bb4
RL
22700 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22701 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
22702 fi
22703 if test -f setup.h; then
3a922bb4 22704 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 22705 fi
a0b9e27f
MB
22706
22707exit 0
22708EOF
10f2d63a 22709chmod +x $CONFIG_STATUS
a0b9e27f
MB
22710rm -fr confdefs* $ac_clean_files
22711test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 22712
2224580a
VZ
22713if test "$no_recursion" != yes; then
22714
22715 # Remove --cache-file and --srcdir arguments so they do not pile up.
22716 ac_sub_configure_args=
22717 ac_prev=
22718 for ac_arg in $ac_configure_args; do
22719 if test -n "$ac_prev"; then
22720 ac_prev=
22721 continue
22722 fi
a0b9e27f 22723 case "$ac_arg" in
2224580a
VZ
22724 -cache-file | --cache-file | --cache-fil | --cache-fi \
22725 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22726 ac_prev=cache_file ;;
22727 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 22728 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
22729 ;;
22730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22731 ac_prev=srcdir ;;
22732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22733 ;;
22734 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22735 esac
22736 done
22737
a0b9e27f 22738 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
22739
22740 # Do not complain, so a configure script can configure whichever
22741 # parts of a large source tree are present.
a0b9e27f
MB
22742 if test ! -d $srcdir/$ac_config_dir; then
22743 continue
22744 fi
2224580a 22745
a0b9e27f 22746 echo configuring in $ac_config_dir
2224580a 22747
a0b9e27f
MB
22748 case "$srcdir" in
22749 .) ;;
22750 *)
22751 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22752 else
22753 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22754 fi
22755 ;;
22756 esac
2224580a 22757
a0b9e27f
MB
22758 ac_popdir=`pwd`
22759 cd $ac_config_dir
247f5006 22760
a0b9e27f
MB
22761 # A "../" for each directory in /$ac_config_dir.
22762 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 22763
a0b9e27f
MB
22764 case "$srcdir" in
22765 .) # No --srcdir option. We are building in place.
22766 ac_sub_srcdir=$srcdir ;;
22767 /*) # Absolute path.
22768 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22769 *) # Relative path.
22770 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22771 esac
2224580a
VZ
22772
22773 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
22774 if test -f $ac_sub_srcdir/configure; then
22775 ac_sub_configure=$ac_sub_srcdir/configure
22776 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
22777 ac_sub_configure=$ac_configure
22778 else
a0b9e27f 22779 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
22780 ac_sub_configure=
22781 fi
22782
22783 # The recursion is here.
22784 if test -n "$ac_sub_configure"; then
a0b9e27f 22785
2224580a 22786 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
22787 case "$cache_file" in
22788 /*) ac_sub_cache_file=$cache_file ;;
2224580a 22789 *) # Relative path.
a0b9e27f 22790 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 22791 esac
a0b9e27f
MB
22792 case "$ac_given_INSTALL" in
22793 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22794 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22795 esac
2224580a 22796
a0b9e27f 22797 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 22798 # The eval makes quoting arguments work.
a0b9e27f
MB
22799 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22800 then :
22801 else
22802 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22803 fi
2224580a
VZ
22804 fi
22805
22806 cd $ac_popdir
22807 done
22808fi
22809
8284b0c5 22810
2b5f62a0
VZ
22811echo
22812echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22813echo ""
22814echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22815
22816echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22817echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22818echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22819
0c98a14e
GD
22820echo " What level of wxWindows compatibility should be enabled?"
22821echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
22822echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
22823echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 22824
2b5f62a0
VZ
22825echo " Which libraries should wxWindows use?"
22826echo " jpeg ${wxUSE_LIBJPEG-none}"
22827echo " png ${wxUSE_LIBPNG-none}"
22828echo " regex ${wxUSE_REGEX}"
22829echo " tiff ${wxUSE_LIBTIFF-none}"
22830echo " zlib ${wxUSE_ZLIB}"
22831
22832echo ""
22833