]> git.saurik.com Git - wxWidgets.git/blame - configure
Corrected copyright
[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
521196a2
MB
58
59
60
a0b9e27f
MB
61
62
63
64
65# Configure paths for GTK+
66# Owen Taylor 1997-2001
67
68
69
2b5f62a0
VZ
70# Configure paths for GTK+
71# Owen Taylor 97-11-3
a0b9e27f
MB
72
73
74
75
76
a0b9e27f
MB
77
78
79
80# Guess values for system-dependent variables and create Makefiles.
81# Generated automatically using autoconf version 2.13
82# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83#
84# This configure script is free software; the Free Software Foundation
85# gives unlimited permission to copy, distribute and modify it.
86
87# Defaults:
88ac_help=
89ac_default_prefix=/usr/local
90# Any additions from configure.in:
91ac_help="$ac_help
92 --enable-gui use GUI classes"
93ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95ac_help="$ac_help
96 --with-gtk use GTK+"
97ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99ac_help="$ac_help
100 --with-mac use Mac OS X"
101ac_help="$ac_help
89e6bf6d 102 --with-wine use Wine"
a0b9e27f
MB
103ac_help="$ac_help
104 --with-msw use MS-Windows"
105ac_help="$ac_help
106 --with-pm use OS/2 Presentation Manager"
107ac_help="$ac_help
108 --with-mgl use SciTech MGL"
109ac_help="$ac_help
110 --with-microwin use MicroWindows"
111ac_help="$ac_help
112 --with-x11 use X11"
113ac_help="$ac_help
114 --enable-nanox use NanoX"
115ac_help="$ac_help
116 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
117ac_help="$ac_help
118 --with-libpng use libpng (PNG image format)"
119ac_help="$ac_help
120 --with-libjpeg use libjpeg (JPEG file format)"
121ac_help="$ac_help
122 --with-libtiff use libtiff (TIFF file format)"
123ac_help="$ac_help
124 --with-opengl use OpenGL (or Mesa)"
125ac_help="$ac_help
126 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
127ac_help="$ac_help
128 --with-regex enable support for wxRegEx class"
129ac_help="$ac_help
130 --with-zlib use zlib for LZW compression"
131ac_help="$ac_help
132 --with-odbc use the IODBC and wxODBC classes"
133ac_help="$ac_help
134 --enable-shared create shared library code"
135ac_help="$ac_help
136 --enable-soname set the DT_SONAME field in ELF shared libraries"
137ac_help="$ac_help
138 --enable-optimise create optimised code"
139ac_help="$ac_help
140 --enable-debug same as debug_flag and debug_info"
141ac_help="$ac_help
b2fee376 142 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
143ac_help="$ac_help
144 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
145ac_help="$ac_help
146 --enable-debug_info create code with debugging information"
147ac_help="$ac_help
148 --enable-debug_gdb create code with extra GDB debugging information"
149ac_help="$ac_help
150 --enable-debug_cntxt use wxDebugContext"
151ac_help="$ac_help
152 --enable-mem_tracing create code with memory tracing"
153ac_help="$ac_help
154 --enable-profile create code with profiling information"
155ac_help="$ac_help
156 --enable-no_rtti create code without RTTI information"
157ac_help="$ac_help
158 --enable-no_exceptions create code without C++ exceptions handling"
159ac_help="$ac_help
160 --enable-permissive compile code disregarding strict ANSI"
161ac_help="$ac_help
162 --enable-no_deps create code without dependency information"
163ac_help="$ac_help
164 --enable-compat20 enable wxWindows 2.0 compatibility"
165ac_help="$ac_help
65d8ef1e
VS
166 --enable-compat22 enable wxWindows 2.2 compatibility"
167ac_help="$ac_help
168 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
169ac_help="$ac_help
170 --enable-rpath=DIR output the rpath flag from wx-config"
171ac_help="$ac_help
172 --enable-intl use internationalization system"
173ac_help="$ac_help
174 --enable-config use wxConfig (and derived) classes"
175ac_help="$ac_help
176 --enable-protocols use wxProtocol and derived classes"
177ac_help="$ac_help
178 --enable-ftp use wxFTP (requires wxProtocol"
179ac_help="$ac_help
180 --enable-http use wxHTTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-fileproto use wxFileProto class (requires wxProtocol"
183ac_help="$ac_help
184 --enable-sockets use socket/network classes"
3bce6687
JS
185ac_help="$ac_help
186 --enable-ole use OLE classes"
187ac_help="$ac_help
188 --enable-dataobj use data object classes"
a0b9e27f
MB
189ac_help="$ac_help
190 --enable-ipc use interprocess communication (wxSocket etc.)"
191ac_help="$ac_help
192 --enable-cmdline use wxCmdLineParser class"
193ac_help="$ac_help
194 --enable-datetime use wxDateTime class"
195ac_help="$ac_help
196 --enable-timedate use obsolete wxDate/wxTime classes"
197ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203ac_help="$ac_help
204 --enable-timer use wxTimer class"
205ac_help="$ac_help
206 --enable-wave use wxWave class"
207ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215ac_help="$ac_help
216 --enable-geometry use geometry class"
217ac_help="$ac_help
218 --enable-log use logging system"
219ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221ac_help="$ac_help
222 --enable-file use wxFile classes"
223ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255ac_help="$ac_help
256 --enable-url use wxURL class"
257ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265ac_help="$ac_help
266 --enable-threads use threads"
267ac_help="$ac_help
268 --enable-docview use document view architecture"
269ac_help="$ac_help
270 --enable-help use help subsystem"
271ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279ac_help="$ac_help
280 --enable-printarch use printing architecture"
281ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291ac_help="$ac_help
292 --enable-prologio use Prolog IO library"
293ac_help="$ac_help
294 --enable-resources use wxWindows resources"
295ac_help="$ac_help
296 --enable-xresources use X resources for save (default for gtk+)"
297ac_help="$ac_help
da494b40 298 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
299ac_help="$ac_help
300 --enable-dnd use Drag'n'Drop classes"
301ac_help="$ac_help
302 --enable-metafile use win32 metafiles"
303ac_help="$ac_help
da494b40 304 --enable-treelayout use wxTreeLayout class"
a0b9e27f
MB
305ac_help="$ac_help
306 --enable-controls use all usual controls"
307ac_help="$ac_help
308 --enable-accel use accelerators"
309ac_help="$ac_help
310 --enable-button use wxButton class"
311ac_help="$ac_help
312 --enable-bmpbutton use wxBitmapButton class"
313ac_help="$ac_help
314 --enable-calendar use wxCalendarCtrl class"
315ac_help="$ac_help
316 --enable-caret use wxCaret class"
317ac_help="$ac_help
318 --enable-checkbox use wxCheckBox class"
319ac_help="$ac_help
320 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
321ac_help="$ac_help
322 --enable-choice use wxChoice class"
323ac_help="$ac_help
da494b40
MB
324 --enable-combobox use wxComboBox class"
325ac_help="$ac_help
326 --enable-display use wxDisplay class"
a0b9e27f
MB
327ac_help="$ac_help
328 --enable-gauge use wxGauge class"
329ac_help="$ac_help
330 --enable-grid use wxGrid class"
331ac_help="$ac_help
332 --enable-newgrid use new wxGrid class"
333ac_help="$ac_help
334 --enable-imaglist use wxImageList class"
335ac_help="$ac_help
336 --enable-listbox use wxListBox class"
337ac_help="$ac_help
338 --enable-listctrl use wxListCtrl class"
339ac_help="$ac_help
340 --enable-notebook use wxNotebook class"
341ac_help="$ac_help
342 --enable-propsheet use wxPropertySheet class"
343ac_help="$ac_help
344 --enable-radiobox use wxRadioBox class"
345ac_help="$ac_help
346 --enable-radiobtn use wxRadioButton class"
347ac_help="$ac_help
348 --enable-sash use wxSashWindow class"
349ac_help="$ac_help
350 --enable-scrollbar use wxScrollBar class and scrollable windows"
351ac_help="$ac_help
352 --enable-slider use wxSlider class"
353ac_help="$ac_help
354 --enable-spinbtn use wxSpinButton class"
355ac_help="$ac_help
356 --enable-spinctrl use wxSpinCtrl class"
357ac_help="$ac_help
358 --enable-splitter use wxSplitterWindow class"
359ac_help="$ac_help
360 --enable-statbmp use wxStaticBitmap class"
361ac_help="$ac_help
362 --enable-statbox use wxStaticBox class"
363ac_help="$ac_help
364 --enable-statline use wxStaticLine class"
365ac_help="$ac_help
366 --enable-stattext use wxStaticText class"
367ac_help="$ac_help
368 --enable-statusbar use wxStatusBar class"
369ac_help="$ac_help
370 --enable-tabdialog use wxTabControl class"
371ac_help="$ac_help
372 --enable-textctrl use wxTextCtrl class"
373ac_help="$ac_help
374 --enable-togglebtn use wxToggleButton class"
375ac_help="$ac_help
376 --enable-toolbar use wxToolBar class"
377ac_help="$ac_help
378 --enable-tbarnative use native wxToolBar class"
379ac_help="$ac_help
380 --enable-tbarsmpl use wxToolBarSimple class"
381ac_help="$ac_help
382 --enable-treectrl use wxTreeCtrl class"
383ac_help="$ac_help
384 --enable-tipwindow use wxTipWindow class"
385ac_help="$ac_help
386 --enable-popupwin use wxPopUpWindow class"
387ac_help="$ac_help
388 --enable-commondlg use all common dialogs"
389ac_help="$ac_help
390 --enable-choicedlg use wxChoiceDialog"
391ac_help="$ac_help
392 --enable-coldlg use wxColourDialog"
393ac_help="$ac_help
394 --enable-filedlg use wxFileDialog"
395ac_help="$ac_help
396 --enable-finddlg use wxFindReplaceDialog"
397ac_help="$ac_help
398 --enable-fontdlg use wxFontDialog"
399ac_help="$ac_help
400 --enable-dirdlg use wxDirDialog"
401ac_help="$ac_help
402 --enable-msgdlg use wxMessageDialog"
403ac_help="$ac_help
404 --enable-numberdlg use wxNumberEntryDialog"
405ac_help="$ac_help
406 --enable-splash use wxSplashScreen"
407ac_help="$ac_help
408 --enable-textdlg use wxTextDialog"
409ac_help="$ac_help
410 --enable-tipdlg use startup tips"
411ac_help="$ac_help
412 --enable-progressdlg use wxProgressDialog"
413ac_help="$ac_help
414 --enable-wizarddlg use wxWizard"
415ac_help="$ac_help
416 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
417ac_help="$ac_help
418 --enable-miniframe use wxMiniFrame class"
419ac_help="$ac_help
420 --enable-tooltips use wxToolTip class"
421ac_help="$ac_help
422 --enable-splines use spline drawing code"
423ac_help="$ac_help
424 --enable-validators use wxValidator and derived classes"
425ac_help="$ac_help
426 --enable-busyinfo use wxBusyInfo"
427ac_help="$ac_help
428 --enable-joystick use wxJoystick (Linux only)"
429ac_help="$ac_help
430 --enable-metafiles use wxMetaFile (Windows only)"
431ac_help="$ac_help
432 --enable-dragimage use wxDragImage"
433ac_help="$ac_help
434 --enable-palette use wxPalette class"
435ac_help="$ac_help
436 --enable-image use wxImage class"
437ac_help="$ac_help
438 --enable-gif use gif images (GIF file format)"
439ac_help="$ac_help
440 --enable-pcx use pcx images (PCX file format)"
441ac_help="$ac_help
442 --enable-iff use iff images (IFF file format)"
443ac_help="$ac_help
444 --enable-pnm use pnm images (PNM file format)"
445ac_help="$ac_help
446 --enable-xpm use xpm images (XPM file format)"
447ac_help="$ac_help
448 --enable-icocur use Windows ICO and CUR formats"
449ac_help="$ac_help
450 --disable-largefile omit support for large files"
451ac_help="$ac_help
452 --disable-gtktest do not try to compile and run a test GTK+ program"
453ac_help="$ac_help
454 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457ac_help="$ac_help
458 --disable-gtktest Do not try to compile and run a test GTK program"
459ac_help="$ac_help
460 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
461ac_help="$ac_help
462 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
463ac_help="$ac_help
464 --disable-gtktest Do not try to compile and run a test GTK program"
465ac_help="$ac_help
466 --with-x use the X Window System"
467ac_help="$ac_help
468 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
469
470# Initialize some variables set by options.
471# The variables have the same names as the options, with
472# dashes changed to underlines.
a0b9e27f
MB
473build=NONE
474cache_file=./config.cache
10f2d63a 475exec_prefix=NONE
a0b9e27f 476host=NONE
10f2d63a 477no_create=
a0b9e27f 478nonopt=NONE
10f2d63a
VZ
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
a0b9e27f 487target=NONE
10f2d63a
VZ
488verbose=
489x_includes=NONE
490x_libraries=NONE
491bindir='${exec_prefix}/bin'
492sbindir='${exec_prefix}/sbin'
493libexecdir='${exec_prefix}/libexec'
494datadir='${prefix}/share'
495sysconfdir='${prefix}/etc'
496sharedstatedir='${prefix}/com'
497localstatedir='${prefix}/var'
498libdir='${exec_prefix}/lib'
499includedir='${prefix}/include'
500oldincludedir='/usr/include'
501infodir='${prefix}/info'
502mandir='${prefix}/man'
503
a0b9e27f
MB
504# Initialize some other variables.
505subdirs=
506MFLAGS= MAKEFLAGS=
507SHELL=${CONFIG_SHELL-/bin/sh}
508# Maximum number of lines to put in a shell here document.
509ac_max_here_lines=12
510
10f2d63a
VZ
511ac_prev=
512for ac_option
513do
a0b9e27f 514
10f2d63a
VZ
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
520 fi
521
a0b9e27f
MB
522 case "$ac_option" in
523 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
524 *) ac_optarg= ;;
525 esac
10f2d63a
VZ
526
527 # Accept the important Cygnus configure options, so we can diagnose typos.
528
a0b9e27f 529 case "$ac_option" in
10f2d63a
VZ
530
531 -bindir | --bindir | --bindi | --bind | --bin | --bi)
532 ac_prev=bindir ;;
533 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 534 bindir="$ac_optarg" ;;
10f2d63a
VZ
535
536 -build | --build | --buil | --bui | --bu)
a0b9e27f 537 ac_prev=build ;;
10f2d63a 538 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 539 build="$ac_optarg" ;;
10f2d63a
VZ
540
541 -cache-file | --cache-file | --cache-fil | --cache-fi \
542 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
543 ac_prev=cache_file ;;
544 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
545 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 546 cache_file="$ac_optarg" ;;
10f2d63a
VZ
547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
a0b9e27f 552 datadir="$ac_optarg" ;;
10f2d63a
VZ
553
554 -disable-* | --disable-*)
a0b9e27f 555 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 556 # Reject names that are not valid shell variable names.
a0b9e27f
MB
557 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
558 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
559 fi
560 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
561 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
562
563 -enable-* | --enable-*)
a0b9e27f 564 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 565 # Reject names that are not valid shell variable names.
a0b9e27f
MB
566 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
567 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
568 fi
569 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
570 case "$ac_option" in
571 *=*) ;;
10f2d63a
VZ
572 *) ac_optarg=yes ;;
573 esac
a0b9e27f 574 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
575
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
a0b9e27f 583 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
a0b9e27f
MB
589 -help | --help | --hel | --he)
590 # Omit some internal or obsolete options to make the list less imposing.
591 # This message is too long to be a string in the A/UX 3.1 sh.
592 cat << EOF
593Usage: configure [options] [host]
594Options: [defaults in brackets after descriptions]
595Configuration:
596 --cache-file=FILE cache test results in FILE
597 --help print this message
598 --no-create do not create output files
599 --quiet, --silent do not print \`checking...' messages
600 --version print the version of autoconf that created configure
601Directory and file names:
602 --prefix=PREFIX install architecture-independent files in PREFIX
603 [$ac_default_prefix]
604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 [same as prefix]
606 --bindir=DIR user executables in DIR [EPREFIX/bin]
607 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
608 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
609 --datadir=DIR read-only architecture-independent data in DIR
610 [PREFIX/share]
611 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
612 --sharedstatedir=DIR modifiable architecture-independent data in DIR
613 [PREFIX/com]
614 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
615 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
616 --includedir=DIR C header files in DIR [PREFIX/include]
617 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
618 --infodir=DIR info documentation in DIR [PREFIX/info]
619 --mandir=DIR man documentation in DIR [PREFIX/man]
620 --srcdir=DIR find the sources in DIR [configure dir or ..]
621 --program-prefix=PREFIX prepend PREFIX to installed program names
622 --program-suffix=SUFFIX append SUFFIX to installed program names
623 --program-transform-name=PROGRAM
624 run sed PROGRAM on installed program names
625EOF
626 cat << EOF
627Host type:
628 --build=BUILD configure for building on BUILD [BUILD=HOST]
629 --host=HOST configure for HOST [guessed]
630 --target=TARGET configure for TARGET [TARGET=HOST]
631Features and packages:
632 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
633 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
638EOF
639 if test -n "$ac_help"; then
640 echo "--enable and --with options recognized:$ac_help"
641 fi
642 exit 0 ;;
10f2d63a
VZ
643
644 -host | --host | --hos | --ho)
a0b9e27f 645 ac_prev=host ;;
10f2d63a 646 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 647 host="$ac_optarg" ;;
10f2d63a
VZ
648
649 -includedir | --includedir | --includedi | --included | --include \
650 | --includ | --inclu | --incl | --inc)
651 ac_prev=includedir ;;
652 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
653 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 654 includedir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -infodir | --infodir | --infodi | --infod | --info | --inf)
657 ac_prev=infodir ;;
658 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 659 infodir="$ac_optarg" ;;
10f2d63a
VZ
660
661 -libdir | --libdir | --libdi | --libd)
662 ac_prev=libdir ;;
663 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 664 libdir="$ac_optarg" ;;
10f2d63a
VZ
665
666 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
667 | --libexe | --libex | --libe)
668 ac_prev=libexecdir ;;
669 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
670 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 671 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
672
673 -localstatedir | --localstatedir | --localstatedi | --localstated \
674 | --localstate | --localstat | --localsta | --localst \
675 | --locals | --local | --loca | --loc | --lo)
676 ac_prev=localstatedir ;;
677 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
678 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
679 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 680 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
681
682 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
683 ac_prev=mandir ;;
684 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 685 mandir="$ac_optarg" ;;
10f2d63a
VZ
686
687 -nfp | --nfp | --nf)
688 # Obsolete; use --without-fp.
689 with_fp=no ;;
690
691 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 692 | --no-cr | --no-c)
10f2d63a
VZ
693 no_create=yes ;;
694
695 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
696 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
697 no_recursion=yes ;;
698
699 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
700 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
701 | --oldin | --oldi | --old | --ol | --o)
702 ac_prev=oldincludedir ;;
703 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
704 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
705 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 706 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
707
708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
709 ac_prev=prefix ;;
710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 711 prefix="$ac_optarg" ;;
10f2d63a
VZ
712
713 -program-prefix | --program-prefix | --program-prefi | --program-pref \
714 | --program-pre | --program-pr | --program-p)
715 ac_prev=program_prefix ;;
716 -program-prefix=* | --program-prefix=* | --program-prefi=* \
717 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 718 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
719
720 -program-suffix | --program-suffix | --program-suffi | --program-suff \
721 | --program-suf | --program-su | --program-s)
722 ac_prev=program_suffix ;;
723 -program-suffix=* | --program-suffix=* | --program-suffi=* \
724 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 725 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
726
727 -program-transform-name | --program-transform-name \
728 | --program-transform-nam | --program-transform-na \
729 | --program-transform-n | --program-transform- \
730 | --program-transform | --program-transfor \
731 | --program-transfo | --program-transf \
732 | --program-trans | --program-tran \
733 | --progr-tra | --program-tr | --program-t)
734 ac_prev=program_transform_name ;;
735 -program-transform-name=* | --program-transform-name=* \
736 | --program-transform-nam=* | --program-transform-na=* \
737 | --program-transform-n=* | --program-transform-=* \
738 | --program-transform=* | --program-transfor=* \
739 | --program-transfo=* | --program-transf=* \
740 | --program-trans=* | --program-tran=* \
741 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 742 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
743
744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
745 | -silent | --silent | --silen | --sile | --sil)
746 silent=yes ;;
747
748 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
749 ac_prev=sbindir ;;
750 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
751 | --sbi=* | --sb=*)
a0b9e27f 752 sbindir="$ac_optarg" ;;
10f2d63a
VZ
753
754 -sharedstatedir | --sharedstatedir | --sharedstatedi \
755 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
756 | --sharedst | --shareds | --shared | --share | --shar \
757 | --sha | --sh)
758 ac_prev=sharedstatedir ;;
759 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
760 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
761 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
762 | --sha=* | --sh=*)
a0b9e27f 763 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
764
765 -site | --site | --sit)
766 ac_prev=site ;;
767 -site=* | --site=* | --sit=*)
a0b9e27f 768 site="$ac_optarg" ;;
10f2d63a
VZ
769
770 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
771 ac_prev=srcdir ;;
772 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 773 srcdir="$ac_optarg" ;;
10f2d63a
VZ
774
775 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
776 | --syscon | --sysco | --sysc | --sys | --sy)
777 ac_prev=sysconfdir ;;
778 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
779 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 780 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
781
782 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 783 ac_prev=target ;;
10f2d63a 784 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 785 target="$ac_optarg" ;;
10f2d63a
VZ
786
787 -v | -verbose | --verbose | --verbos | --verbo | --verb)
788 verbose=yes ;;
789
a0b9e27f
MB
790 -version | --version | --versio | --versi | --vers)
791 echo "configure generated by autoconf version 2.13"
792 exit 0 ;;
10f2d63a
VZ
793
794 -with-* | --with-*)
a0b9e27f 795 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 796 # Reject names that are not valid shell variable names.
a0b9e27f
MB
797 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
798 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
799 fi
10f2d63a 800 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
801 case "$ac_option" in
802 *=*) ;;
10f2d63a
VZ
803 *) ac_optarg=yes ;;
804 esac
a0b9e27f 805 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
806
807 -without-* | --without-*)
a0b9e27f 808 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 809 # Reject names that are not valid shell variable names.
a0b9e27f
MB
810 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
811 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
812 fi
813 ac_package=`echo $ac_package| sed 's/-/_/g'`
814 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
815
816 --x)
817 # Obsolete; use --with-x.
818 with_x=yes ;;
819
820 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
821 | --x-incl | --x-inc | --x-in | --x-i)
822 ac_prev=x_includes ;;
823 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
824 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 825 x_includes="$ac_optarg" ;;
10f2d63a
VZ
826
827 -x-libraries | --x-libraries | --x-librarie | --x-librari \
828 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
829 ac_prev=x_libraries ;;
830 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
831 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 832 x_libraries="$ac_optarg" ;;
10f2d63a 833
a0b9e27f 834 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
835 ;;
836
837 *)
a0b9e27f
MB
838 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
839 echo "configure: warning: $ac_option: invalid host type" 1>&2
840 fi
841 if test "x$nonopt" != xNONE; then
842 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
843 fi
844 nonopt="$ac_option"
10f2d63a
VZ
845 ;;
846
847 esac
848done
849
850if test -n "$ac_prev"; then
a0b9e27f 851 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 852fi
8284b0c5 853
a0b9e27f
MB
854trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
855
856# File descriptor usage:
857# 0 standard input
858# 1 file creation
859# 2 errors and warnings
860# 3 some systems may open it to /dev/tty
861# 4 used on the Kubota Titan
862# 6 checking for... messages and results
863# 5 compiler messages saved in config.log
864if test "$silent" = yes; then
865 exec 6>/dev/null
866else
867 exec 6>&1
868fi
869exec 5>./config.log
870
871echo "\
872This file contains any messages produced by compilers while
873running configure, to aid debugging if configure makes a mistake.
874" 1>&5
8284b0c5 875
a0b9e27f
MB
876# Strip out --no-create and --no-recursion so they do not pile up.
877# Also quote any args containing shell metacharacters.
878ac_configure_args=
879for ac_arg
10f2d63a 880do
a0b9e27f
MB
881 case "$ac_arg" in
882 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
883 | --no-cr | --no-c) ;;
884 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
885 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
886 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
887 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
888 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
889 esac
890done
891
a0b9e27f
MB
892# NLS nuisances.
893# Only set these to C if already set. These must not be set unconditionally
894# because not all systems understand e.g. LANG=C (notably SCO).
895# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
896# Non-C LC_CTYPE values break the ctype check.
897if test "${LANG+set}" = set; then LANG=C; export LANG; fi
898if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
899if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
900if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 901
a0b9e27f
MB
902# confdefs.h avoids OS command line length limits that DEFS can exceed.
903rm -rf conftest* confdefs.h
904# AIX cpp loses on an empty file, so make sure it contains at least a newline.
905echo > confdefs.h
10f2d63a 906
a0b9e27f
MB
907# A filename unique to this package, relative to the directory that
908# configure is in, which we can look for to find out if srcdir is correct.
909ac_unique_file=wx-config.in
10f2d63a
VZ
910
911# Find the source files, if location was not specified.
912if test -z "$srcdir"; then
913 ac_srcdir_defaulted=yes
914 # Try the directory containing this script, then its parent.
a0b9e27f
MB
915 ac_prog=$0
916 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
917 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
918 srcdir=$ac_confdir
919 if test ! -r $srcdir/$ac_unique_file; then
920 srcdir=..
921 fi
922else
923 ac_srcdir_defaulted=no
924fi
925if test ! -r $srcdir/$ac_unique_file; then
926 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 927 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 928 else
a0b9e27f 929 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
930 fi
931fi
a0b9e27f 932srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 933
10f2d63a
VZ
934# Prefer explicitly selected file to automatically selected ones.
935if test -z "$CONFIG_SITE"; then
936 if test "x$prefix" != xNONE; then
937 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
938 else
939 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
940 fi
941fi
942for ac_site_file in $CONFIG_SITE; do
943 if test -r "$ac_site_file"; then
a0b9e27f 944 echo "loading site script $ac_site_file"
10f2d63a
VZ
945 . "$ac_site_file"
946 fi
947done
948
949if test -r "$cache_file"; then
a0b9e27f
MB
950 echo "loading cache $cache_file"
951 . $cache_file
10f2d63a 952else
a0b9e27f
MB
953 echo "creating cache $cache_file"
954 > $cache_file
10f2d63a
VZ
955fi
956
957ac_ext=c
a0b9e27f 958# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 959ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
960ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
961ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
962cross_compiling=$ac_cv_prog_cc_cross
963
964ac_exeext=
965ac_objext=o
966if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
967 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
968 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
969 ac_n= ac_c='
970' ac_t=' '
971 else
972 ac_n=-n ac_c= ac_t=
973 fi
974else
975 ac_n= ac_c='\c' ac_t=
976fi
8284b0c5
MB
977
978
10f2d63a 979
7c66a493
VZ
980ac_aux_dir=
981for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
982 if test -f $ac_dir/install-sh; then
983 ac_aux_dir=$ac_dir
984 ac_install_sh="$ac_aux_dir/install-sh -c"
985 break
986 elif test -f $ac_dir/install.sh; then
987 ac_aux_dir=$ac_dir
988 ac_install_sh="$ac_aux_dir/install.sh -c"
989 break
247f5006 990 fi
7c66a493
VZ
991done
992if test -z "$ac_aux_dir"; then
a0b9e27f 993 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 994fi
a0b9e27f
MB
995ac_config_guess=$ac_aux_dir/config.guess
996ac_config_sub=$ac_aux_dir/config.sub
997ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 998
8284b0c5 999
a0b9e27f
MB
1000# Do some error checking and defaulting for the host and target type.
1001# The inputs are:
1002# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1003#
1004# The rules are:
1005# 1. You are not allowed to specify --host, --target, and nonopt at the
1006# same time.
1007# 2. Host defaults to nonopt.
1008# 3. If nonopt is not specified, then host defaults to the current host,
1009# as determined by config.guess.
1010# 4. Target and build default to nonopt.
1011# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1012
1013# The aliases save the names the user supplied, while $host etc.
1014# will get canonicalized.
a0b9e27f
MB
1015case $host---$target---$nonopt in
1016NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1018esac
1019
1020
1021# Make sure we can run config.sub.
1022if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1023else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1024fi
1025
1026echo $ac_n "checking host system type""... $ac_c" 1>&6
521196a2 1027echo "configure:1028: checking host system type" >&5
a0b9e27f
MB
1028
1029host_alias=$host
1030case "$host_alias" in
1031NONE)
1032 case $nonopt in
1033 NONE)
1034 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1035 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1036 fi ;;
1037 *) host_alias=$nonopt ;;
1038 esac ;;
1039esac
1040
1041host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1042host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1043host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1044host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1045echo "$ac_t""$host" 1>&6
1046
1047echo $ac_n "checking target system type""... $ac_c" 1>&6
521196a2 1048echo "configure:1049: checking target system type" >&5
a0b9e27f
MB
1049
1050target_alias=$target
1051case "$target_alias" in
1052NONE)
1053 case $nonopt in
1054 NONE) target_alias=$host_alias ;;
1055 *) target_alias=$nonopt ;;
1056 esac ;;
1057esac
1058
1059target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1060target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063echo "$ac_t""$target" 1>&6
1064
1065echo $ac_n "checking build system type""... $ac_c" 1>&6
521196a2 1066echo "configure:1067: checking build system type" >&5
a0b9e27f
MB
1067
1068build_alias=$build
1069case "$build_alias" in
1070NONE)
1071 case $nonopt in
1072 NONE) build_alias=$host_alias ;;
1073 *) build_alias=$nonopt ;;
1074 esac ;;
1075esac
1076
1077build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1078build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081echo "$ac_t""$build" 1>&6
1082
1083test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1084 test "$program_prefix$program_suffix$program_transform_name" = \
1085 NONENONEs,x,x, &&
1086 program_prefix=${target_alias}-
8284b0c5
MB
1087
1088
a0b9e27f 1089
10f2d63a 1090WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1091WX_MINOR_VERSION_NUMBER=5
1092WX_RELEASE_NUMBER=0
10f2d63a 1093
10f2d63a 1094WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1095WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1096
978f1259
RL
1097WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1098
34bed6d9 1099WX_CURRENT=0
6426998c
RL
1100WX_REVISION=0
1101WX_AGE=0
1102
8284b0c5
MB
1103
1104
10f2d63a
VZ
1105USE_UNIX=1
1106USE_WIN32=0
f9bc1684 1107USE_DOS=0
b12915c1 1108USE_BEOS=0
1216f52d 1109USE_MAC=0
b12915c1 1110
10f2d63a
VZ
1111USE_LINUX=
1112USE_SGI=
1113USE_HPUX=
1114USE_SYSV=
1115USE_SVR4=
1116USE_AIX=
1117USE_SUN=
1118USE_SOLARIS=
1119USE_SUNOS=
1120USE_ALPHA=
1121USE_OSF=
1122USE_BSD=
f11bdd03 1123USE_DARWIN=
10f2d63a 1124USE_FREEBSD=
95c8801c 1125USE_OPENBSD=
f6bcfd97 1126USE_NETBSD=
10f2d63a
VZ
1127USE_VMS=
1128USE_ULTRIX=
10f2d63a
VZ
1129USE_DATA_GENERAL=
1130
ab9b9eab
VZ
1131NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1132
89e6bf6d 1133ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a
VZ
1134
1135DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1136DEFAULT_wxUSE_MAC=0
1137DEFAULT_wxUSE_MGL=0
1725144d 1138DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1139DEFAULT_wxUSE_MOTIF=0
1140DEFAULT_wxUSE_MSW=0
e07802fc 1141DEFAULT_wxUSE_PM=0
f79bd02d 1142DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1143
1144DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1145DEFAULT_DEFAULT_wxUSE_MAC=0
1146DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1147DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1148DEFAULT_DEFAULT_wxUSE_MOTIF=0
1149DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1150DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1151DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1152
d6a55c4b 1153PROGRAM_EXT=
3a922bb4 1154SO_SUFFIX=so
d6a55c4b 1155
10f2d63a
VZ
1156case "${host}" in
1157 *-hp-hpux* )
1158 USE_HPUX=1
1159 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1160 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1161 SO_SUFFIX=sl
a0b9e27f 1162 cat >> confdefs.h <<\EOF
10f2d63a 1163#define __HPUX__ 1
a0b9e27f 1164EOF
10f2d63a
VZ
1165
1166 ;;
1167 *-*-linux* )
1168 USE_LINUX=1
a0b9e27f 1169 cat >> confdefs.h <<\EOF
10f2d63a 1170#define __LINUX__ 1
a0b9e27f 1171EOF
10f2d63a
VZ
1172
1173 TMP=`uname -m`
1174 if test "x$TMP" = "xalpha"; then
1175 USE_ALPHA=1
a0b9e27f 1176 cat >> confdefs.h <<\EOF
10f2d63a 1177#define __ALPHA__ 1
a0b9e27f 1178EOF
10f2d63a
VZ
1179
1180 fi
1181 DEFAULT_DEFAULT_wxUSE_GTK=1
1182 ;;
1183 *-*-irix5* | *-*-irix6* )
1184 USE_SGI=1
1185 USE_SVR4=1
a0b9e27f 1186 cat >> confdefs.h <<\EOF
10f2d63a 1187#define __SGI__ 1
a0b9e27f 1188EOF
10f2d63a 1189
a0b9e27f 1190 cat >> confdefs.h <<\EOF
10f2d63a 1191#define __SVR4__ 1
a0b9e27f 1192EOF
10f2d63a
VZ
1193
1194 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1195 ;;
1196 *-*-solaris2* )
1197 USE_SUN=1
1198 USE_SOLARIS=1
1199 USE_SVR4=1
a0b9e27f 1200 cat >> confdefs.h <<\EOF
10f2d63a 1201#define __SUN__ 1
a0b9e27f 1202EOF
10f2d63a 1203
a0b9e27f 1204 cat >> confdefs.h <<\EOF
10f2d63a 1205#define __SOLARIS__ 1
a0b9e27f 1206EOF
10f2d63a 1207
a0b9e27f 1208 cat >> confdefs.h <<\EOF
10f2d63a 1209#define __SVR4__ 1
a0b9e27f 1210EOF
10f2d63a
VZ
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1213 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1214 ;;
1215 *-*-sunos4* )
1216 USE_SUN=1
1217 USE_SUNOS=1
1218 USE_BSD=1
a0b9e27f 1219 cat >> confdefs.h <<\EOF
10f2d63a 1220#define __SUN__ 1
a0b9e27f 1221EOF
10f2d63a 1222
a0b9e27f 1223 cat >> confdefs.h <<\EOF
10f2d63a 1224#define __SUNOS__ 1
a0b9e27f 1225EOF
10f2d63a 1226
a0b9e27f 1227 cat >> confdefs.h <<\EOF
10f2d63a 1228#define __BSD__ 1
a0b9e27f 1229EOF
10f2d63a
VZ
1230
1231 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1232 ;;
f6bcfd97 1233 *-*-freebsd*)
10f2d63a
VZ
1234 USE_BSD=1
1235 USE_FREEBSD=1
a0b9e27f 1236 cat >> confdefs.h <<\EOF
10f2d63a 1237#define __FREEBSD__ 1
a0b9e27f 1238EOF
10f2d63a 1239
a0b9e27f 1240 cat >> confdefs.h <<\EOF
10f2d63a 1241#define __BSD__ 1
a0b9e27f 1242EOF
95c8801c
VS
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-openbsd*)
1247 USE_BSD=1
1248 USE_OPENBSD=1
a0b9e27f 1249 cat >> confdefs.h <<\EOF
2b5f62a0 1250#define __OPENBSD__ 1
a0b9e27f 1251EOF
95c8801c 1252
a0b9e27f 1253 cat >> confdefs.h <<\EOF
2b5f62a0 1254#define __BSD__ 1
a0b9e27f 1255EOF
f6bcfd97
BP
1256
1257 DEFAULT_DEFAULT_wxUSE_GTK=1
1258 ;;
1259 *-*-netbsd*)
1260 USE_BSD=1
1261 USE_NETBSD=1
a0b9e27f 1262 cat >> confdefs.h <<\EOF
2b5f62a0 1263#define __NETBSD__ 1
a0b9e27f 1264EOF
f6bcfd97 1265
a0b9e27f 1266 cat >> confdefs.h <<\EOF
2b5f62a0 1267#define __BSD__ 1
a0b9e27f 1268EOF
10f2d63a
VZ
1269
1270 DEFAULT_DEFAULT_wxUSE_GTK=1
1271 ;;
1272 *-*-osf* )
1273 USE_ALPHA=1
1274 USE_OSF=1
a0b9e27f 1275 cat >> confdefs.h <<\EOF
10f2d63a 1276#define __ALPHA__ 1
a0b9e27f 1277EOF
10f2d63a 1278
a0b9e27f 1279 cat >> confdefs.h <<\EOF
10f2d63a 1280#define __OSF__ 1
a0b9e27f 1281EOF
10f2d63a
VZ
1282
1283 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1284 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1285 ;;
1286 *-*-dgux5* )
1287 USE_ALPHA=1
1288 USE_SVR4=1
a0b9e27f 1289 cat >> confdefs.h <<\EOF
10f2d63a 1290#define __ALPHA__ 1
a0b9e27f 1291EOF
10f2d63a 1292
a0b9e27f 1293 cat >> confdefs.h <<\EOF
10f2d63a 1294#define __SVR4__ 1
a0b9e27f 1295EOF
10f2d63a
VZ
1296
1297 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1298 ;;
1299 *-*-sysv5* )
1300 USE_SYSV=1
1301 USE_SVR4=1
a0b9e27f 1302 cat >> confdefs.h <<\EOF
10f2d63a 1303#define __SYSV__ 1
a0b9e27f 1304EOF
10f2d63a 1305
a0b9e27f 1306 cat >> confdefs.h <<\EOF
10f2d63a 1307#define __SVR4__ 1
a0b9e27f 1308EOF
10f2d63a
VZ
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312 *-*-aix* )
1313 USE_AIX=1
1314 USE_SYSV=1
1315 USE_SVR4=1
2b5f62a0 1316 SO_SUFFIX=a
a0b9e27f 1317 cat >> confdefs.h <<\EOF
10f2d63a 1318#define __AIX__ 1
a0b9e27f 1319EOF
10f2d63a 1320
a0b9e27f 1321 cat >> confdefs.h <<\EOF
10f2d63a 1322#define __SYSV__ 1
a0b9e27f 1323EOF
10f2d63a 1324
a0b9e27f 1325 cat >> confdefs.h <<\EOF
10f2d63a 1326#define __SVR4__ 1
a0b9e27f 1327EOF
10f2d63a
VZ
1328
1329 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1330 ;;
1331
1c8183e2 1332 *-*-cygwin* | *-*-mingw32* )
17234b26 1333 SO_SUFFIX=dll
cf27ef00 1334 PROGRAM_EXT=".exe"
7b7a7637 1335 RESCOMP=windres
10f2d63a
VZ
1336 DEFAULT_DEFAULT_wxUSE_MSW=1
1337 ;;
1338
f9bc1684
VS
1339 *-pc-msdosdjgpp )
1340 USE_UNIX=0
1341 USE_DOS=1
a0b9e27f 1342 cat >> confdefs.h <<\EOF
f9bc1684 1343#define __DOS__ 1
a0b9e27f 1344EOF
f9bc1684
VS
1345
1346 PROGRAM_EXT=".exe"
1347 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1348 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1349 ;;
1350
6fa882bd 1351 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1352 cat >> confdefs.h <<\EOF
10f2d63a 1353#define __EMX__ 1
a0b9e27f 1354EOF
10f2d63a 1355
cf27ef00 1356 PROGRAM_EXT=".exe"
e07802fc 1357 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1358 ;;
1359
d08b457b
GD
1360 powerpc-*-darwin* )
1361 USE_BSD=1
f11bdd03 1362 USE_DARWIN=1
3a922bb4 1363 SO_SUFFIX=dylib
a0b9e27f 1364 cat >> confdefs.h <<\EOF
f11bdd03 1365#define __BSD__ 1
a0b9e27f 1366EOF
b4085ce6 1367
a0b9e27f 1368 cat >> confdefs.h <<\EOF
f11bdd03 1369#define __DARWIN__ 1
a0b9e27f 1370EOF
d08b457b 1371
a0b9e27f 1372 cat >> confdefs.h <<\EOF
d08b457b 1373#define __POWERPC__ 1
82d43113
GD
1374EOF
1375
1376 cat >> confdefs.h <<\EOF
1377#define TARGET_CARBON 1
a0b9e27f 1378EOF
b4085ce6
GD
1379
1380 DEFAULT_DEFAULT_wxUSE_MAC=1
1381 ;;
1382
b12915c1
VZ
1383 *-*-beos* )
1384 USE_BEOS=1
a0b9e27f 1385 cat >> confdefs.h <<\EOF
b12915c1 1386#define __BEOS__ 1
a0b9e27f 1387EOF
b12915c1
VZ
1388
1389 ;;
1390
10f2d63a 1391 *)
a0b9e27f 1392 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1393esac
1394
8284b0c5
MB
1395
1396
1397
1398 wx_arg_cache_file="configarg.cache"
1399 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1400 rm -f ${wx_arg_cache_file}.tmp
1401 touch ${wx_arg_cache_file}.tmp
1402 touch ${wx_arg_cache_file}
a0b9e27f 1403
10f2d63a
VZ
1404
1405DEBUG_CONFIGURE=0
1406if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1407 DEFAULT_wxUSE_UNIVERSAL=no
1408
d8356fa3
VZ
1409 DEFAULT_wxUSE_NANOX=no
1410
10f2d63a
VZ
1411 DEFAULT_wxUSE_THREADS=yes
1412
1413 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1414 DEFAULT_wxUSE_SONAME=no
1e6feb95 1415 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_PROFILE=no
1417 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1418 DEFAULT_wxUSE_NO_RTTI=no
1419 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1420 DEFAULT_wxUSE_PERMISSIVE=no
1421 DEFAULT_wxUSE_DEBUG_FLAG=yes
1422 DEFAULT_wxUSE_DEBUG_INFO=yes
1423 DEFAULT_wxUSE_DEBUG_GDB=yes
1424 DEFAULT_wxUSE_MEM_TRACING=no
1425 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1426 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1427 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_APPLE_IEEE=no
1429
1430 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1431 DEFAULT_wxUSE_LOGWINDOW=no
1432 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1433 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1434
1435 DEFAULT_wxUSE_GUI=yes
1e6feb95 1436 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1437
3e44f09d 1438 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_ZLIB=no
1440 DEFAULT_wxUSE_LIBPNG=no
1441 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1442 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1443 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1444 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1445
eb4efbdc 1446 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1447 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1448 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1449 DEFAULT_wxUSE_CMDLINE_PARSER=no
1450 DEFAULT_wxUSE_DATETIME=no
1451 DEFAULT_wxUSE_TIMEDATE=no
1452 DEFAULT_wxUSE_TIMER=no
1453 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1454 DEFAULT_wxUSE_FILE=no
1e6feb95 1455 DEFAULT_wxUSE_FFILE=no
a3a584a7 1456 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1457 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1458 DEFAULT_wxUSE_WAVE=no
1459 DEFAULT_wxUSE_INTL=no
1460 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1461 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1462 DEFAULT_wxUSE_STREAMS=no
1463 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1464 DEFAULT_wxUSE_OLE=no
1465 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1466 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1467 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1468 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1469 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1470 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1471 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1472
1473 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1474 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1475 DEFAULT_wxUSE_POSTSCRIPT=no
1476
1477 DEFAULT_wxUSE_X_RESOURCES=no
1478 DEFAULT_wxUSE_CLIPBOARD=no
1479 DEFAULT_wxUSE_TOOLTIPS=no
1480 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1481 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1482 DEFAULT_wxUSE_SPLINES=no
1483
1484 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1485 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1486 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1487
1488 DEFAULT_wxUSE_PROLOGIO=no
1489 DEFAULT_wxUSE_RESOURCES=no
1490 DEFAULT_wxUSE_CONSTRAINTS=no
1491 DEFAULT_wxUSE_IPC=no
1492 DEFAULT_wxUSE_HELP=no
29fd3c0c 1493 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1494 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1495 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1496 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1497 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1498 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1499 DEFAULT_wxUSE_PROTOCOL=no
1500 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1501 DEFAULT_wxUSE_PROTOCOL_FTP=no
1502 DEFAULT_wxUSE_PROTOCOL_FILE=no
1503 DEFAULT_wxUSE_URL=no
3bd8fb5f 1504
10f2d63a 1505 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1506 DEFAULT_wxUSE_CHOICEDLG=no
1507 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1508 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1509 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1510 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1511 DEFAULT_wxUSE_FONTDLG=no
1512 DEFAULT_wxUSE_MSGDLG=no
1513 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1514 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1515 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_STARTUP_TIPS=no
1517 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1518 DEFAULT_wxUSE_WIZARDDLG=no
1519
1e6feb95 1520 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_MINIFRAME=no
1522 DEFAULT_wxUSE_HTML=no
24528b0c 1523 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1524 DEFAULT_wxUSE_FS_INET=no
1525 DEFAULT_wxUSE_FS_ZIP=no
1526 DEFAULT_wxUSE_BUSYINFO=no
1527 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1528 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1529
1530 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1531 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1532 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1533 DEFAULT_wxUSE_CALCTRL=no
1534 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1535 DEFAULT_wxUSE_CHECKBOX=no
1536 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1537 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1538 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1539 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_GAUGE=no
1541 DEFAULT_wxUSE_GRID=no
1542 DEFAULT_wxUSE_NEW_GRID=no
1543 DEFAULT_wxUSE_IMAGLIST=no
1544 DEFAULT_wxUSE_LISTBOX=no
1545 DEFAULT_wxUSE_LISTCTRL=no
1546 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1547 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1548 DEFAULT_wxUSE_RADIOBOX=no
1549 DEFAULT_wxUSE_RADIOBTN=no
1550 DEFAULT_wxUSE_SASH=no
1551 DEFAULT_wxUSE_SCROLLBAR=no
1552 DEFAULT_wxUSE_SLIDER=no
1553 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1554 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1555 DEFAULT_wxUSE_SPLITTER=no
1556 DEFAULT_wxUSE_STATBMP=no
1557 DEFAULT_wxUSE_STATBOX=no
1558 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1559 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1560 DEFAULT_wxUSE_STATUSBAR=yes
1561 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1562 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1563 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1564 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1565 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1566 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1567 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1568 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1569 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1570
1571 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1572 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1573 DEFAULT_wxUSE_WCSRTOMBS=no
1574
edae8572 1575 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1576 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1577 DEFAULT_wxUSE_GIF=no
1578 DEFAULT_wxUSE_PCX=no
1579 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1580 DEFAULT_wxUSE_IFF=no
0046ff7c 1581 DEFAULT_wxUSE_XPM=no
658974ae 1582 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1583else
1e6feb95
VZ
1584 DEFAULT_wxUSE_UNIVERSAL=no
1585
d8356fa3
VZ
1586 DEFAULT_wxUSE_NANOX=no
1587
10f2d63a
VZ
1588 DEFAULT_wxUSE_THREADS=yes
1589
1590 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1591 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1592 DEFAULT_wxUSE_OPTIMISE=yes
1593 DEFAULT_wxUSE_PROFILE=no
1594 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1595 DEFAULT_wxUSE_NO_RTTI=no
1596 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1597 DEFAULT_wxUSE_PERMISSIVE=no
1598 DEFAULT_wxUSE_DEBUG_FLAG=no
1599 DEFAULT_wxUSE_DEBUG_INFO=no
1600 DEFAULT_wxUSE_DEBUG_GDB=no
1601 DEFAULT_wxUSE_MEM_TRACING=no
1602 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1603 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1604 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1605 DEFAULT_wxUSE_APPLE_IEEE=yes
1606
1607 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1608 DEFAULT_wxUSE_LOGWINDOW=yes
1609 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1610 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1611
1612 DEFAULT_wxUSE_GUI=yes
1613
831b3152 1614 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1615 DEFAULT_wxUSE_ZLIB=yes
1616 DEFAULT_wxUSE_LIBPNG=yes
1617 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1618 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1619 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1620 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1621
eb4efbdc 1622 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1623 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1624 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1625 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1626 DEFAULT_wxUSE_DATETIME=yes
1627 DEFAULT_wxUSE_TIMEDATE=no
1628 DEFAULT_wxUSE_TIMER=yes
1629 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1630 DEFAULT_wxUSE_FILE=yes
1e6feb95 1631 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1632 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1633 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1634 DEFAULT_wxUSE_WAVE=no
1635 DEFAULT_wxUSE_INTL=yes
1636 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1637 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_STREAMS=yes
1639 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1640 DEFAULT_wxUSE_OLE=yes
1641 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1642 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1643 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1644 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1645 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1646 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1647 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1648
1649 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1650 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1651 DEFAULT_wxUSE_POSTSCRIPT=yes
1652
1653 DEFAULT_wxUSE_X_RESOURCES=no
1654 DEFAULT_wxUSE_CLIPBOARD=yes
1655 DEFAULT_wxUSE_TOOLTIPS=yes
1656 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1657 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1658 DEFAULT_wxUSE_SPLINES=yes
1659
1660 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1661 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1663
2b5f62a0
VZ
1664 DEFAULT_wxUSE_PROLOGIO=no
1665 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1666 DEFAULT_wxUSE_CONSTRAINTS=yes
1667 DEFAULT_wxUSE_IPC=yes
1668 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1669 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1670 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1671 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1672 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1673 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1674 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1675 DEFAULT_wxUSE_PROTOCOL=yes
1676 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1678 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1679 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1680
1681 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1682 DEFAULT_wxUSE_CHOICEDLG=yes
1683 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1684 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1685 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1686 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1687 DEFAULT_wxUSE_FONTDLG=yes
1688 DEFAULT_wxUSE_MSGDLG=yes
1689 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1690 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1691 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1692 DEFAULT_wxUSE_STARTUP_TIPS=yes
1693 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1694 DEFAULT_wxUSE_WIZARDDLG=yes
1695
1e6feb95 1696 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1697 DEFAULT_wxUSE_MINIFRAME=yes
1698 DEFAULT_wxUSE_HTML=yes
24528b0c 1699 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1700 DEFAULT_wxUSE_FS_INET=yes
1701 DEFAULT_wxUSE_FS_ZIP=yes
1702 DEFAULT_wxUSE_BUSYINFO=yes
1703 DEFAULT_wxUSE_ZIPSTREAM=yes
1704 DEFAULT_wxUSE_VALIDATORS=yes
1705
1706 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1707 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1708 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1709 DEFAULT_wxUSE_CALCTRL=yes
1710 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1711 DEFAULT_wxUSE_CHECKBOX=yes
1712 DEFAULT_wxUSE_CHECKLST=yes
1713 DEFAULT_wxUSE_CHOICE=yes
1714 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1715 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1716 DEFAULT_wxUSE_GAUGE=yes
1717 DEFAULT_wxUSE_GRID=yes
cc977e5f 1718 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1719 DEFAULT_wxUSE_IMAGLIST=yes
1720 DEFAULT_wxUSE_LISTBOX=yes
1721 DEFAULT_wxUSE_LISTCTRL=yes
1722 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1723 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1724 DEFAULT_wxUSE_RADIOBOX=yes
1725 DEFAULT_wxUSE_RADIOBTN=yes
1726 DEFAULT_wxUSE_SASH=yes
1727 DEFAULT_wxUSE_SCROLLBAR=yes
1728 DEFAULT_wxUSE_SLIDER=yes
1729 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1730 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1731 DEFAULT_wxUSE_SPLITTER=yes
1732 DEFAULT_wxUSE_STATBMP=yes
1733 DEFAULT_wxUSE_STATBOX=yes
1734 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1735 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1736 DEFAULT_wxUSE_STATUSBAR=yes
1737 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1738 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1739 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1740 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1741 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1742 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1743 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1744 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1745 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1746
1747 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1748 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1749 DEFAULT_wxUSE_WCSRTOMBS=no
1750
edae8572 1751 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1752 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1753 DEFAULT_wxUSE_GIF=yes
1754 DEFAULT_wxUSE_PCX=yes
cc0e8480 1755 DEFAULT_wxUSE_IFF=no
10f2d63a 1756 DEFAULT_wxUSE_PNM=yes
0046ff7c 1757 DEFAULT_wxUSE_XPM=yes
658974ae 1758 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1759fi
1760
8284b0c5
MB
1761
1762
10f2d63a 1763for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1764 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1765 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1766 has_toolkit_in_cache=1
1767 eval "DEFAULT_$LINE"
1768 eval "CACHE_$toolkit=1"
1769 fi
1770done
1771
8284b0c5
MB
1772
1773
5005acfe
VZ
1774 enablestring=
1775 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
521196a2 1776echo "configure:1777: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1777 no_cache=0
1778 # Check whether --enable-gui or --disable-gui was given.
1779if test "${enable_gui+set}" = set; then
1780 enableval="$enable_gui"
a0b9e27f 1781
10f2d63a
VZ
1782 if test "$enableval" = yes; then
1783 ac_cv_use_gui='wxUSE_GUI=yes'
1784 else
1785 ac_cv_use_gui='wxUSE_GUI=no'
1786 fi
a0b9e27f 1787
10f2d63a 1788else
a0b9e27f 1789
10f2d63a
VZ
1790 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1791 if test "x$LINE" != x ; then
1792 eval "DEFAULT_$LINE"
1793 else
1794 no_cache=1
1795 fi
1796
1797 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1798
1799fi
10f2d63a
VZ
1800
1801
1802 eval "$ac_cv_use_gui"
1803 if test "$no_cache" != 1; then
1804 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1805 fi
1806
1807 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1808 echo "$ac_t""yes" 1>&6
10f2d63a 1809 else
a0b9e27f 1810 echo "$ac_t""no" 1>&6
10f2d63a 1811 fi
a0b9e27f 1812
10f2d63a 1813
b12915c1 1814if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1815
8284b0c5 1816
5005acfe
VZ
1817 enablestring=
1818 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
521196a2 1819echo "configure:1820: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1820 no_cache=0
1821 # Check whether --enable-universal or --disable-universal was given.
1822if test "${enable_universal+set}" = set; then
1823 enableval="$enable_universal"
a0b9e27f 1824
1e6feb95
VZ
1825 if test "$enableval" = yes; then
1826 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1827 else
1828 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1829 fi
a0b9e27f 1830
1e6feb95 1831else
a0b9e27f 1832
1e6feb95
VZ
1833 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1841
1842fi
1e6feb95
VZ
1843
1844
1845 eval "$ac_cv_use_universal"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1851 echo "$ac_t""yes" 1>&6
1e6feb95 1852 else
a0b9e27f 1853 echo "$ac_t""no" 1>&6
1e6feb95 1854 fi
a0b9e27f 1855
10f2d63a
VZ
1856# Check whether --with-gtk or --without-gtk was given.
1857if test "${with_gtk+set}" = set; then
1858 withval="$with_gtk"
1859 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1860fi
10f2d63a
VZ
1861
1862# Check whether --with-motif or --without-motif was given.
1863if test "${with_motif+set}" = set; then
1864 withval="$with_motif"
1865 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1866fi
10f2d63a 1867
b4085ce6
GD
1868# Check whether --with-mac or --without-mac was given.
1869if test "${with_mac+set}" = set; then
1870 withval="$with_mac"
1871 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1872fi
b4085ce6 1873
10f2d63a
VZ
1874# Check whether --with-wine or --without-wine was given.
1875if test "${with_wine+set}" = set; then
1876 withval="$with_wine"
89e6bf6d 1877 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1878fi
10f2d63a 1879
77e13408
RL
1880# Check whether --with-msw or --without-msw was given.
1881if test "${with_msw+set}" = set; then
1882 withval="$with_msw"
b4efce5e 1883 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1884fi
10f2d63a 1885
e07802fc
VZ
1886# Check whether --with-pm or --without-pm was given.
1887if test "${with_pm+set}" = set; then
1888 withval="$with_pm"
1889 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1890fi
698dcdb6 1891
1e6feb95
VZ
1892# Check whether --with-mgl or --without-mgl was given.
1893if test "${with_mgl+set}" = set; then
1894 withval="$with_mgl"
6c657b52 1895 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1896fi
1e6feb95 1897
1725144d
RR
1898# Check whether --with-microwin or --without-microwin was given.
1899if test "${with_microwin+set}" = set; then
1900 withval="$with_microwin"
1901 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1902fi
1725144d 1903
f79bd02d
JS
1904# Check whether --with-x11 or --without-x11 was given.
1905if test "${with_x11+set}" = set; then
1906 withval="$with_x11"
3c011993 1907 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1908fi
10f2d63a 1909
a0b9e27f 1910
5005acfe
VZ
1911 enablestring=
1912 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
521196a2 1913echo "configure:1914: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1914 no_cache=0
ba875e66
VZ
1915 # Check whether --enable-nanox or --disable-nanox was given.
1916if test "${enable_nanox+set}" = set; then
1917 enableval="$enable_nanox"
a0b9e27f 1918
d8356fa3 1919 if test "$enableval" = yes; then
ba875e66 1920 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1921 else
ba875e66 1922 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1923 fi
a0b9e27f 1924
d8356fa3 1925else
a0b9e27f 1926
d8356fa3
VZ
1927 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1928 if test "x$LINE" != x ; then
1929 eval "DEFAULT_$LINE"
1930 else
1931 no_cache=1
1932 fi
1933
ba875e66 1934 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1935
1936fi
d8356fa3
VZ
1937
1938
ba875e66 1939 eval "$ac_cv_use_nanox"
d8356fa3 1940 if test "$no_cache" != 1; then
ba875e66 1941 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1942 fi
1943
1944 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1945 echo "$ac_t""yes" 1>&6
d8356fa3 1946 else
a0b9e27f 1947 echo "$ac_t""no" 1>&6
d8356fa3 1948 fi
a0b9e27f 1949
8284b0c5 1950
d74f4b5a 1951
5005acfe
VZ
1952 enablestring=
1953 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
521196a2 1954echo "configure:1955: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1955 no_cache=0
1956 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1957if test "${enable_gtk2+set}" = set; then
1958 enableval="$enable_gtk2"
a0b9e27f 1959
d74f4b5a
VZ
1960 if test "$enableval" = yes; then
1961 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1962 else
1963 ac_cv_use_gtk2='wxUSE_GTK2=no'
1964 fi
a0b9e27f 1965
10f2d63a 1966else
a0b9e27f 1967
d74f4b5a
VZ
1968 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1976
1977fi
52127426 1978
328a083c 1979
d74f4b5a
VZ
1980 eval "$ac_cv_use_gtk2"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1986 echo "$ac_t""yes" 1>&6
d74f4b5a 1987 else
a0b9e27f 1988 echo "$ac_t""no" 1>&6
d74f4b5a 1989 fi
a0b9e27f 1990
d74f4b5a 1991
5c6fa7d2 1992
a0b9e27f 1993 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
521196a2 1994echo "configure:1995: checking for --with-libpng" >&5
8284b0c5 1995 no_cache=0
a0b9e27f 1996 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1997if test "${with_libpng+set}" = set; then
1998 withval="$with_libpng"
a0b9e27f 1999
10f2d63a 2000 if test "$withval" = yes; then
b12915c1 2001 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2002 elif test "$withval" = no; then
b12915c1 2003 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2004 elif test "$withval" = sys; then
2005 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2006 elif test "$withval" = builtin; then
2007 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2008 else
a0b9e27f 2009 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2010 fi
a0b9e27f 2011
10f2d63a 2012else
a0b9e27f 2013
b12915c1 2014 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2015 if test "x$LINE" != x ; then
2016 eval "DEFAULT_$LINE"
2017 else
2018 no_cache=1
2019 fi
2020
b12915c1 2021 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2022
2023fi
10f2d63a
VZ
2024
2025
b12915c1 2026 eval "$ac_cv_use_libpng"
10f2d63a 2027 if test "$no_cache" != 1; then
b12915c1 2028 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2029 fi
2030
b12915c1 2031 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2032 echo "$ac_t""yes" 1>&6
422107f9 2033 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2034 echo "$ac_t""no" 1>&6
422107f9 2035 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2036 echo "$ac_t""system version" 1>&6
4f14bcd8 2037 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2038 echo "$ac_t""builtin version" 1>&6
422107f9 2039 else
a0b9e27f 2040 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2041 fi
a0b9e27f 2042
10f2d63a 2043
a0b9e27f 2044 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
521196a2 2045echo "configure:2046: checking for --with-libjpeg" >&5
10f2d63a 2046 no_cache=0
a0b9e27f 2047 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2048if test "${with_libjpeg+set}" = set; then
2049 withval="$with_libjpeg"
a0b9e27f 2050
10f2d63a 2051 if test "$withval" = yes; then
b12915c1 2052 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2053 elif test "$withval" = no; then
b12915c1 2054 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2055 elif test "$withval" = sys; then
2056 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2057 elif test "$withval" = builtin; then
2058 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2059 else
a0b9e27f 2060 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2061 fi
a0b9e27f 2062
10f2d63a 2063else
a0b9e27f 2064
b12915c1 2065 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2066 if test "x$LINE" != x ; then
2067 eval "DEFAULT_$LINE"
2068 else
2069 no_cache=1
2070 fi
2071
b12915c1 2072 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2073
2074fi
10f2d63a
VZ
2075
2076
b12915c1 2077 eval "$ac_cv_use_libjpeg"
10f2d63a 2078 if test "$no_cache" != 1; then
b12915c1 2079 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2080 fi
2081
b12915c1 2082 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2083 echo "$ac_t""yes" 1>&6
422107f9 2084 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2085 echo "$ac_t""no" 1>&6
422107f9 2086 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2087 echo "$ac_t""system version" 1>&6
4f14bcd8 2088 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2089 echo "$ac_t""builtin version" 1>&6
422107f9 2090 else
a0b9e27f 2091 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2092 fi
a0b9e27f 2093
10f2d63a 2094
a0b9e27f 2095 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
521196a2 2096echo "configure:2097: checking for --with-libtiff" >&5
10f2d63a 2097 no_cache=0
a0b9e27f 2098 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2099if test "${with_libtiff+set}" = set; then
2100 withval="$with_libtiff"
a0b9e27f 2101
10f2d63a 2102 if test "$withval" = yes; then
b12915c1 2103 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2104 elif test "$withval" = no; then
b12915c1 2105 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2106 elif test "$withval" = sys; then
2107 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2108 elif test "$withval" = builtin; then
2109 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2110 else
a0b9e27f 2111 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2112 fi
a0b9e27f 2113
10f2d63a 2114else
a0b9e27f 2115
b12915c1 2116 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2117 if test "x$LINE" != x ; then
2118 eval "DEFAULT_$LINE"
2119 else
2120 no_cache=1
2121 fi
2122
b12915c1 2123 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2124
2125fi
10f2d63a
VZ
2126
2127
b12915c1 2128 eval "$ac_cv_use_libtiff"
10f2d63a 2129 if test "$no_cache" != 1; then
b12915c1 2130 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2131 fi
2132
b12915c1 2133 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2134 echo "$ac_t""yes" 1>&6
0dcf9893 2135 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2136 echo "$ac_t""no" 1>&6
0dcf9893 2137 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2138 echo "$ac_t""system version" 1>&6
4f14bcd8 2139 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2140 echo "$ac_t""builtin version" 1>&6
0dcf9893 2141 else
a0b9e27f 2142 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2143 fi
a0b9e27f 2144
10f2d63a 2145
a0b9e27f 2146 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
521196a2 2147echo "configure:2148: checking for --with-opengl" >&5
10f2d63a 2148 no_cache=0
a0b9e27f 2149 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2150if test "${with_opengl+set}" = set; then
2151 withval="$with_opengl"
a0b9e27f 2152
10f2d63a 2153 if test "$withval" = yes; then
b12915c1 2154 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2155 else
b12915c1 2156 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2157 fi
a0b9e27f 2158
10f2d63a 2159else
a0b9e27f 2160
b12915c1 2161 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2162 if test "x$LINE" != x ; then
2163 eval "DEFAULT_$LINE"
2164 else
2165 no_cache=1
2166 fi
2167
b12915c1 2168 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2169
2170fi
10f2d63a
VZ
2171
2172
b12915c1 2173 eval "$ac_cv_use_opengl"
10f2d63a 2174 if test "$no_cache" != 1; then
b12915c1 2175 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2176 fi
2177
b12915c1 2178 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2179 echo "$ac_t""yes" 1>&6
10f2d63a 2180 else
a0b9e27f 2181 echo "$ac_t""no" 1>&6
10f2d63a 2182 fi
a0b9e27f 2183
10f2d63a 2184
b12915c1
VZ
2185fi
2186
5c6fa7d2 2187
a0b9e27f 2188 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
521196a2 2189echo "configure:2190: checking for --with-dmalloc" >&5
8284b0c5 2190 no_cache=0
a0b9e27f 2191 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2192if test "${with_dmalloc+set}" = set; then
2193 withval="$with_dmalloc"
a0b9e27f 2194
c7a2bf27 2195 if test "$withval" = yes; then
b12915c1 2196 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2197 else
b12915c1 2198 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2199 fi
a0b9e27f 2200
c7a2bf27 2201else
a0b9e27f 2202
b12915c1 2203 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2204 if test "x$LINE" != x ; then
2205 eval "DEFAULT_$LINE"
2206 else
2207 no_cache=1
2208 fi
2209
b12915c1 2210 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2211
2212fi
c7a2bf27
RR
2213
2214
b12915c1 2215 eval "$ac_cv_use_dmalloc"
c7a2bf27 2216 if test "$no_cache" != 1; then
b12915c1 2217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2218 fi
2219
b12915c1 2220 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2221 echo "$ac_t""yes" 1>&6
c7a2bf27 2222 else
a0b9e27f 2223 echo "$ac_t""no" 1>&6
c7a2bf27 2224 fi
a0b9e27f 2225
c7a2bf27 2226
a0b9e27f 2227 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
521196a2 2228echo "configure:2229: checking for --with-regex" >&5
3e44f09d 2229 no_cache=0
a0b9e27f 2230 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2231if test "${with_regex+set}" = set; then
2232 withval="$with_regex"
a0b9e27f 2233
3e44f09d
VZ
2234 if test "$withval" = yes; then
2235 ac_cv_use_regex='wxUSE_REGEX=yes'
2236 elif test "$withval" = no; then
2237 ac_cv_use_regex='wxUSE_REGEX=no'
2238 elif test "$withval" = sys; then
2239 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2240 elif test "$withval" = builtin; then
2241 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2242 else
a0b9e27f 2243 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2244 fi
a0b9e27f 2245
3e44f09d 2246else
a0b9e27f 2247
3e44f09d
VZ
2248 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2249 if test "x$LINE" != x ; then
2250 eval "DEFAULT_$LINE"
2251 else
2252 no_cache=1
2253 fi
2254
2255 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2256
2257fi
3e44f09d
VZ
2258
2259
2260 eval "$ac_cv_use_regex"
2261 if test "$no_cache" != 1; then
2262 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2263 fi
2264
2265 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2266 echo "$ac_t""yes" 1>&6
3e44f09d 2267 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2268 echo "$ac_t""no" 1>&6
3e44f09d 2269 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2270 echo "$ac_t""system version" 1>&6
4f14bcd8 2271 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2272 echo "$ac_t""builtin version" 1>&6
3e44f09d 2273 else
a0b9e27f 2274 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2275 fi
a0b9e27f 2276
3e44f09d 2277
a0b9e27f 2278 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
521196a2 2279echo "configure:2280: checking for --with-zlib" >&5
10f2d63a 2280 no_cache=0
a0b9e27f 2281 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2282if test "${with_zlib+set}" = set; then
2283 withval="$with_zlib"
a0b9e27f 2284
10f2d63a 2285 if test "$withval" = yes; then
b12915c1 2286 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2287 elif test "$withval" = no; then
b12915c1 2288 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2289 elif test "$withval" = sys; then
2290 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2291 elif test "$withval" = builtin; then
2292 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2293 else
a0b9e27f 2294 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2295 fi
a0b9e27f 2296
10f2d63a 2297else
a0b9e27f 2298
b12915c1 2299 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2300 if test "x$LINE" != x ; then
2301 eval "DEFAULT_$LINE"
2302 else
2303 no_cache=1
2304 fi
2305
b12915c1 2306 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2307
2308fi
10f2d63a
VZ
2309
2310
b12915c1 2311 eval "$ac_cv_use_zlib"
10f2d63a 2312 if test "$no_cache" != 1; then
b12915c1 2313 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2314 fi
2315
b12915c1 2316 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2317 echo "$ac_t""yes" 1>&6
422107f9 2318 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2319 echo "$ac_t""no" 1>&6
422107f9 2320 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2321 echo "$ac_t""system version" 1>&6
4f14bcd8 2322 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2323 echo "$ac_t""builtin version" 1>&6
422107f9 2324 else
a0b9e27f 2325 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2326 fi
a0b9e27f 2327
10f2d63a 2328
a0b9e27f 2329 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
521196a2 2330echo "configure:2331: checking for --with-odbc" >&5
10f2d63a 2331 no_cache=0
a0b9e27f 2332 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2333if test "${with_odbc+set}" = set; then
2334 withval="$with_odbc"
a0b9e27f 2335
10f2d63a
VZ
2336 if test "$withval" = yes; then
2337 ac_cv_use_odbc='wxUSE_ODBC=yes'
2338 else
2339 ac_cv_use_odbc='wxUSE_ODBC=no'
2340 fi
a0b9e27f 2341
10f2d63a 2342else
a0b9e27f 2343
10f2d63a
VZ
2344 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2345 if test "x$LINE" != x ; then
2346 eval "DEFAULT_$LINE"
2347 else
2348 no_cache=1
2349 fi
2350
2351 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2352
2353fi
10f2d63a
VZ
2354
2355
2356 eval "$ac_cv_use_odbc"
2357 if test "$no_cache" != 1; then
2358 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2359 fi
2360
2361 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2362 echo "$ac_t""yes" 1>&6
10f2d63a 2363 else
a0b9e27f 2364 echo "$ac_t""no" 1>&6
10f2d63a 2365 fi
a0b9e27f 2366
52127426 2367
8284b0c5
MB
2368
2369
5005acfe
VZ
2370 enablestring=
2371 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
521196a2 2372echo "configure:2373: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2373 no_cache=0
2374 # Check whether --enable-shared or --disable-shared was given.
2375if test "${enable_shared+set}" = set; then
2376 enableval="$enable_shared"
a0b9e27f 2377
10f2d63a
VZ
2378 if test "$enableval" = yes; then
2379 ac_cv_use_shared='wxUSE_SHARED=yes'
2380 else
2381 ac_cv_use_shared='wxUSE_SHARED=no'
2382 fi
a0b9e27f 2383
10f2d63a 2384else
a0b9e27f 2385
10f2d63a
VZ
2386 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2387 if test "x$LINE" != x ; then
2388 eval "DEFAULT_$LINE"
2389 else
2390 no_cache=1
2391 fi
2392
2393 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2394
2395fi
10f2d63a
VZ
2396
2397
2398 eval "$ac_cv_use_shared"
2399 if test "$no_cache" != 1; then
2400 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2401 fi
2402
2403 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2404 echo "$ac_t""yes" 1>&6
10f2d63a 2405 else
a0b9e27f 2406 echo "$ac_t""no" 1>&6
10f2d63a 2407 fi
a0b9e27f 2408
10f2d63a 2409
5005acfe
VZ
2410 enablestring=
2411 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
521196a2 2412echo "configure:2413: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2413 no_cache=0
3a922bb4
RL
2414 # Check whether --enable-soname or --disable-soname was given.
2415if test "${enable_soname+set}" = set; then
2416 enableval="$enable_soname"
a0b9e27f 2417
00cf1208 2418 if test "$enableval" = yes; then
3a922bb4 2419 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2420 else
3a922bb4 2421 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2422 fi
a0b9e27f 2423
00cf1208 2424else
a0b9e27f 2425
3a922bb4 2426 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
3a922bb4 2433 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2434
2435fi
00cf1208
RR
2436
2437
3a922bb4 2438 eval "$ac_cv_use_soname"
00cf1208 2439 if test "$no_cache" != 1; then
3a922bb4 2440 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2441 fi
2442
3a922bb4 2443 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2444 echo "$ac_t""yes" 1>&6
00cf1208 2445 else
a0b9e27f 2446 echo "$ac_t""no" 1>&6
00cf1208 2447 fi
a0b9e27f 2448
00cf1208 2449
5005acfe
VZ
2450 enablestring=
2451 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
521196a2 2452echo "configure:2453: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2453 no_cache=0
2454 # Check whether --enable-optimise or --disable-optimise was given.
2455if test "${enable_optimise+set}" = set; then
2456 enableval="$enable_optimise"
a0b9e27f 2457
10f2d63a
VZ
2458 if test "$enableval" = yes; then
2459 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2460 else
2461 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2462 fi
a0b9e27f 2463
10f2d63a 2464else
a0b9e27f 2465
10f2d63a
VZ
2466 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2474
2475fi
10f2d63a
VZ
2476
2477
2478 eval "$ac_cv_use_optimise"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2484 echo "$ac_t""yes" 1>&6
10f2d63a 2485 else
a0b9e27f 2486 echo "$ac_t""no" 1>&6
10f2d63a 2487 fi
a0b9e27f 2488
10f2d63a 2489
5005acfe
VZ
2490 enablestring=
2491 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
521196a2 2492echo "configure:2493: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2493 no_cache=0
2494 # Check whether --enable-debug or --disable-debug was given.
2495if test "${enable_debug+set}" = set; then
2496 enableval="$enable_debug"
a0b9e27f 2497
10f2d63a
VZ
2498 if test "$enableval" = yes; then
2499 ac_cv_use_debug='wxUSE_DEBUG=yes'
2500 else
2501 ac_cv_use_debug='wxUSE_DEBUG=no'
2502 fi
a0b9e27f 2503
10f2d63a 2504else
a0b9e27f 2505
10f2d63a
VZ
2506 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2514
2515fi
10f2d63a
VZ
2516
2517
2518 eval "$ac_cv_use_debug"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2524 echo "$ac_t""yes" 1>&6
10f2d63a 2525 else
a0b9e27f 2526 echo "$ac_t""no" 1>&6
10f2d63a 2527 fi
a0b9e27f 2528
52127426 2529
8284b0c5 2530
5005acfe
VZ
2531 enablestring=
2532 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
521196a2 2533echo "configure:2534: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2534 no_cache=0
2535 # Check whether --enable-precomp or --disable-precomp was given.
2536if test "${enable_precomp+set}" = set; then
2537 enableval="$enable_precomp"
a0b9e27f 2538
683dccda
GD
2539 if test "$enableval" = yes; then
2540 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2541 else
2542 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2543 fi
a0b9e27f 2544
683dccda 2545else
a0b9e27f 2546
683dccda
GD
2547 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2555
2556fi
683dccda
GD
2557
2558
2559 eval "$ac_cv_use_precomp"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2565 echo "$ac_t""yes" 1>&6
683dccda 2566 else
a0b9e27f 2567 echo "$ac_t""no" 1>&6
683dccda 2568 fi
a0b9e27f 2569
683dccda 2570
10f2d63a
VZ
2571if test "$wxUSE_DEBUG" = "yes"; then
2572 DEFAULT_wxUSE_DEBUG_FLAG=yes
2573 DEFAULT_wxUSE_DEBUG_INFO=yes
2574elif test "$wxUSE_DEBUG" = "no"; then
2575 DEFAULT_wxUSE_DEBUG_FLAG=no
2576 DEFAULT_wxUSE_DEBUG_INFO=no
2577fi
2578
8284b0c5 2579
5005acfe
VZ
2580 enablestring=
2581 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
521196a2 2582echo "configure:2583: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2583 no_cache=0
2584 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2585if test "${enable_debug_flag+set}" = set; then
2586 enableval="$enable_debug_flag"
a0b9e27f 2587
10f2d63a
VZ
2588 if test "$enableval" = yes; then
2589 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2590 else
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2592 fi
a0b9e27f 2593
10f2d63a 2594else
a0b9e27f 2595
10f2d63a
VZ
2596 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
2603 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2604
2605fi
10f2d63a
VZ
2606
2607
2608 eval "$ac_cv_use_debug_flag"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2614 echo "$ac_t""yes" 1>&6
10f2d63a 2615 else
a0b9e27f 2616 echo "$ac_t""no" 1>&6
10f2d63a 2617 fi
a0b9e27f 2618
10f2d63a 2619
5005acfe
VZ
2620 enablestring=
2621 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
521196a2 2622echo "configure:2623: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2623 no_cache=0
2624 # Check whether --enable-debug_info or --disable-debug_info was given.
2625if test "${enable_debug_info+set}" = set; then
2626 enableval="$enable_debug_info"
a0b9e27f 2627
10f2d63a
VZ
2628 if test "$enableval" = yes; then
2629 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2630 else
2631 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2632 fi
a0b9e27f 2633
10f2d63a 2634else
a0b9e27f 2635
10f2d63a
VZ
2636 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2637 if test "x$LINE" != x ; then
2638 eval "DEFAULT_$LINE"
2639 else
2640 no_cache=1
2641 fi
2642
2643 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2644
2645fi
10f2d63a
VZ
2646
2647
2648 eval "$ac_cv_use_debug_info"
2649 if test "$no_cache" != 1; then
2650 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2651 fi
2652
2653 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2654 echo "$ac_t""yes" 1>&6
10f2d63a 2655 else
a0b9e27f 2656 echo "$ac_t""no" 1>&6
10f2d63a 2657 fi
a0b9e27f 2658
10f2d63a 2659
5005acfe
VZ
2660 enablestring=
2661 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
521196a2 2662echo "configure:2663: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2663 no_cache=0
2664 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2665if test "${enable_debug_gdb+set}" = set; then
2666 enableval="$enable_debug_gdb"
a0b9e27f 2667
10f2d63a
VZ
2668 if test "$enableval" = yes; then
2669 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2670 else
2671 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2672 fi
a0b9e27f 2673
10f2d63a 2674else
a0b9e27f 2675
10f2d63a
VZ
2676 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2684
2685fi
10f2d63a
VZ
2686
2687
2688 eval "$ac_cv_use_debug_gdb"
2689 if test "$no_cache" != 1; then
2690 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2691 fi
2692
2693 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2694 echo "$ac_t""yes" 1>&6
10f2d63a 2695 else
a0b9e27f 2696 echo "$ac_t""no" 1>&6
10f2d63a 2697 fi
a0b9e27f 2698
10f2d63a 2699
5005acfe
VZ
2700 enablestring=
2701 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
521196a2 2702echo "configure:2703: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2703 no_cache=0
2704 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2705if test "${enable_debug_cntxt+set}" = set; then
2706 enableval="$enable_debug_cntxt"
a0b9e27f 2707
10f2d63a
VZ
2708 if test "$enableval" = yes; then
2709 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2710 else
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2712 fi
a0b9e27f 2713
10f2d63a 2714else
a0b9e27f 2715
10f2d63a
VZ
2716 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2717 if test "x$LINE" != x ; then
2718 eval "DEFAULT_$LINE"
2719 else
2720 no_cache=1
2721 fi
2722
2723 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2724
2725fi
10f2d63a
VZ
2726
2727
2728 eval "$ac_cv_use_debug_cntxt"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2734 echo "$ac_t""yes" 1>&6
10f2d63a 2735 else
a0b9e27f 2736 echo "$ac_t""no" 1>&6
10f2d63a 2737 fi
a0b9e27f 2738
10f2d63a 2739
5005acfe
VZ
2740 enablestring=
2741 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
521196a2 2742echo "configure:2743: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2743 no_cache=0
2744 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2745if test "${enable_mem_tracing+set}" = set; then
2746 enableval="$enable_mem_tracing"
a0b9e27f 2747
10f2d63a
VZ
2748 if test "$enableval" = yes; then
2749 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2750 else
2751 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2752 fi
a0b9e27f 2753
10f2d63a 2754else
a0b9e27f 2755
10f2d63a
VZ
2756 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2757 if test "x$LINE" != x ; then
2758 eval "DEFAULT_$LINE"
2759 else
2760 no_cache=1
2761 fi
2762
2763 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2764
2765fi
10f2d63a
VZ
2766
2767
2768 eval "$ac_cv_use_mem_tracing"
2769 if test "$no_cache" != 1; then
2770 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2771 fi
2772
2773 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2774 echo "$ac_t""yes" 1>&6
10f2d63a 2775 else
a0b9e27f 2776 echo "$ac_t""no" 1>&6
10f2d63a 2777 fi
a0b9e27f 2778
10f2d63a 2779
5005acfe
VZ
2780 enablestring=
2781 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
521196a2 2782echo "configure:2783: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2783 no_cache=0
2784 # Check whether --enable-profile or --disable-profile was given.
2785if test "${enable_profile+set}" = set; then
2786 enableval="$enable_profile"
a0b9e27f 2787
10f2d63a
VZ
2788 if test "$enableval" = yes; then
2789 ac_cv_use_profile='wxUSE_PROFILE=yes'
2790 else
2791 ac_cv_use_profile='wxUSE_PROFILE=no'
2792 fi
a0b9e27f 2793
10f2d63a 2794else
a0b9e27f 2795
10f2d63a
VZ
2796 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2797 if test "x$LINE" != x ; then
2798 eval "DEFAULT_$LINE"
2799 else
2800 no_cache=1
2801 fi
2802
2803 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2804
2805fi
10f2d63a
VZ
2806
2807
2808 eval "$ac_cv_use_profile"
2809 if test "$no_cache" != 1; then
2810 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2811 fi
2812
2813 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2814 echo "$ac_t""yes" 1>&6
10f2d63a 2815 else
a0b9e27f 2816 echo "$ac_t""no" 1>&6
10f2d63a 2817 fi
a0b9e27f 2818
10f2d63a 2819
5005acfe
VZ
2820 enablestring=
2821 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
521196a2 2822echo "configure:2823: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2823 no_cache=0
2824 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2825if test "${enable_no_rtti+set}" = set; then
2826 enableval="$enable_no_rtti"
a0b9e27f 2827
10f2d63a
VZ
2828 if test "$enableval" = yes; then
2829 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2830 else
2831 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2832 fi
a0b9e27f 2833
10f2d63a 2834else
a0b9e27f 2835
10f2d63a
VZ
2836 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2837 if test "x$LINE" != x ; then
2838 eval "DEFAULT_$LINE"
2839 else
2840 no_cache=1
2841 fi
2842
2843 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2844
2845fi
10f2d63a
VZ
2846
2847
2848 eval "$ac_cv_use_no_rtti"
2849 if test "$no_cache" != 1; then
2850 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2851 fi
2852
2853 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2854 echo "$ac_t""yes" 1>&6
10f2d63a 2855 else
a0b9e27f 2856 echo "$ac_t""no" 1>&6
10f2d63a 2857 fi
a0b9e27f 2858
10f2d63a 2859
5005acfe
VZ
2860 enablestring=
2861 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
521196a2 2862echo "configure:2863: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2863 no_cache=0
2864 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2865if test "${enable_no_exceptions+set}" = set; then
2866 enableval="$enable_no_exceptions"
a0b9e27f 2867
10f2d63a
VZ
2868 if test "$enableval" = yes; then
2869 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2870 else
2871 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2872 fi
a0b9e27f 2873
10f2d63a 2874else
a0b9e27f 2875
10f2d63a
VZ
2876 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2877 if test "x$LINE" != x ; then
2878 eval "DEFAULT_$LINE"
2879 else
2880 no_cache=1
2881 fi
2882
2883 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2884
2885fi
10f2d63a
VZ
2886
2887
2888 eval "$ac_cv_use_no_exceptions"
2889 if test "$no_cache" != 1; then
2890 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2891 fi
2892
2893 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2894 echo "$ac_t""yes" 1>&6
10f2d63a 2895 else
a0b9e27f 2896 echo "$ac_t""no" 1>&6
10f2d63a 2897 fi
a0b9e27f 2898
10f2d63a 2899
5005acfe
VZ
2900 enablestring=
2901 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
521196a2 2902echo "configure:2903: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2903 no_cache=0
2904 # Check whether --enable-permissive or --disable-permissive was given.
2905if test "${enable_permissive+set}" = set; then
2906 enableval="$enable_permissive"
a0b9e27f 2907
10f2d63a
VZ
2908 if test "$enableval" = yes; then
2909 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2910 else
2911 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2912 fi
a0b9e27f 2913
10f2d63a 2914else
a0b9e27f 2915
10f2d63a
VZ
2916 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2924
2925fi
10f2d63a
VZ
2926
2927
2928 eval "$ac_cv_use_permissive"
2929 if test "$no_cache" != 1; then
2930 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2931 fi
2932
2933 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2934 echo "$ac_t""yes" 1>&6
10f2d63a 2935 else
a0b9e27f 2936 echo "$ac_t""no" 1>&6
10f2d63a 2937 fi
a0b9e27f 2938
10f2d63a 2939
5005acfe
VZ
2940 enablestring=
2941 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
521196a2 2942echo "configure:2943: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2943 no_cache=0
2944 # Check whether --enable-no_deps or --disable-no_deps was given.
2945if test "${enable_no_deps+set}" = set; then
2946 enableval="$enable_no_deps"
a0b9e27f 2947
10f2d63a
VZ
2948 if test "$enableval" = yes; then
2949 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2950 else
2951 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2952 fi
a0b9e27f 2953
10f2d63a 2954else
a0b9e27f 2955
10f2d63a
VZ
2956 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2957 if test "x$LINE" != x ; then
2958 eval "DEFAULT_$LINE"
2959 else
2960 no_cache=1
2961 fi
2962
2963 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2964
2965fi
10f2d63a
VZ
2966
2967
2968 eval "$ac_cv_use_no_deps"
2969 if test "$no_cache" != 1; then
2970 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2971 fi
2972
2973 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2974 echo "$ac_t""yes" 1>&6
10f2d63a 2975 else
a0b9e27f 2976 echo "$ac_t""no" 1>&6
10f2d63a 2977 fi
a0b9e27f 2978
52127426 2979
8284b0c5 2980
5005acfe
VZ
2981 enablestring=
2982 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
521196a2 2983echo "configure:2984: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2984 no_cache=0
2985 # Check whether --enable-compat20 or --disable-compat20 was given.
2986if test "${enable_compat20+set}" = set; then
2987 enableval="$enable_compat20"
a0b9e27f 2988
54276ccf
VZ
2989 if test "$enableval" = yes; then
2990 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2991 else
2992 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2993 fi
a0b9e27f 2994
54276ccf 2995else
a0b9e27f 2996
54276ccf
VZ
2997 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2998 if test "x$LINE" != x ; then
2999 eval "DEFAULT_$LINE"
3000 else
3001 no_cache=1
3002 fi
3003
3004 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
3005
3006fi
54276ccf
VZ
3007
3008
3009 eval "$ac_cv_use_compat20"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3015 echo "$ac_t""yes" 1>&6
54276ccf 3016 else
a0b9e27f 3017 echo "$ac_t""no" 1>&6
54276ccf 3018 fi
a0b9e27f 3019
54276ccf 3020
65d8ef1e 3021 enablestring=
5005acfe 3022 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
521196a2 3023echo "configure:3024: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3024 no_cache=0
3025 # Check whether --enable-compat22 or --disable-compat22 was given.
3026if test "${enable_compat22+set}" = set; then
3027 enableval="$enable_compat22"
a0b9e27f 3028
54276ccf
VZ
3029 if test "$enableval" = yes; then
3030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3031 else
3032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3033 fi
a0b9e27f 3034
54276ccf 3035else
a0b9e27f 3036
54276ccf
VZ
3037 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3045
3046fi
54276ccf
VZ
3047
3048
3049 eval "$ac_cv_use_compat22"
3050 if test "$no_cache" != 1; then
3051 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3052 fi
3053
3054 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3055 echo "$ac_t""yes" 1>&6
54276ccf 3056 else
a0b9e27f 3057 echo "$ac_t""no" 1>&6
54276ccf 3058 fi
a0b9e27f 3059
54276ccf 3060
65d8ef1e
VS
3061 enablestring=disable
3062 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
521196a2 3063echo "configure:3064: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3064 no_cache=0
3065 # Check whether --enable-compat24 or --disable-compat24 was given.
3066if test "${enable_compat24+set}" = set; then
3067 enableval="$enable_compat24"
3068
3069 if test "$enableval" = yes; then
3070 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3071 else
3072 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3073 fi
3074
3075else
3076
3077 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3085
3086fi
3087
3088
3089 eval "$ac_cv_use_compat24"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3095 echo "$ac_t""yes" 1>&6
3096 else
3097 echo "$ac_t""no" 1>&6
3098 fi
3099
3100
3bd8fb5f
RD
3101# Check whether --enable-rpath or --disable-rpath was given.
3102if test "${enable_rpath+set}" = set; then
3103 enableval="$enable_rpath"
3104 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3105fi
3106
3bd8fb5f
RD
3107
3108if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3109 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3110fi
3111
8284b0c5
MB
3112
3113
3114
5005acfe
VZ
3115 enablestring=
3116 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
521196a2 3117echo "configure:3118: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3118 no_cache=0
3119 # Check whether --enable-intl or --disable-intl was given.
3120if test "${enable_intl+set}" = set; then
3121 enableval="$enable_intl"
a0b9e27f 3122
10f2d63a
VZ
3123 if test "$enableval" = yes; then
3124 ac_cv_use_intl='wxUSE_INTL=yes'
3125 else
3126 ac_cv_use_intl='wxUSE_INTL=no'
3127 fi
a0b9e27f 3128
10f2d63a 3129else
a0b9e27f 3130
10f2d63a
VZ
3131 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3139
3140fi
10f2d63a
VZ
3141
3142
3143 eval "$ac_cv_use_intl"
3144 if test "$no_cache" != 1; then
3145 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3146 fi
3147
3148 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3149 echo "$ac_t""yes" 1>&6
10f2d63a 3150 else
a0b9e27f 3151 echo "$ac_t""no" 1>&6
10f2d63a 3152 fi
a0b9e27f 3153
10f2d63a 3154
5005acfe
VZ
3155 enablestring=
3156 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
521196a2 3157echo "configure:3158: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3158 no_cache=0
3159 # Check whether --enable-config or --disable-config was given.
3160if test "${enable_config+set}" = set; then
3161 enableval="$enable_config"
a0b9e27f 3162
10f2d63a
VZ
3163 if test "$enableval" = yes; then
3164 ac_cv_use_config='wxUSE_CONFIG=yes'
3165 else
3166 ac_cv_use_config='wxUSE_CONFIG=no'
3167 fi
a0b9e27f 3168
10f2d63a 3169else
a0b9e27f 3170
10f2d63a
VZ
3171 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3172 if test "x$LINE" != x ; then
3173 eval "DEFAULT_$LINE"
3174 else
3175 no_cache=1
3176 fi
3177
3178 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3179
3180fi
10f2d63a
VZ
3181
3182
3183 eval "$ac_cv_use_config"
3184 if test "$no_cache" != 1; then
3185 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3186 fi
3187
3188 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3189 echo "$ac_t""yes" 1>&6
10f2d63a 3190 else
a0b9e27f 3191 echo "$ac_t""no" 1>&6
10f2d63a 3192 fi
a0b9e27f 3193
52127426 3194
8284b0c5 3195
5005acfe
VZ
3196 enablestring=
3197 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
521196a2 3198echo "configure:3199: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3199 no_cache=0
3200 # Check whether --enable-protocols or --disable-protocols was given.
3201if test "${enable_protocols+set}" = set; then
3202 enableval="$enable_protocols"
a0b9e27f 3203
a1622950
VZ
3204 if test "$enableval" = yes; then
3205 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3206 else
3207 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3208 fi
a0b9e27f 3209
a1622950 3210else
a0b9e27f 3211
a1622950
VZ
3212 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3220
3221fi
a1622950
VZ
3222
3223
3224 eval "$ac_cv_use_protocols"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3230 echo "$ac_t""yes" 1>&6
a1622950 3231 else
a0b9e27f 3232 echo "$ac_t""no" 1>&6
a1622950 3233 fi
a0b9e27f 3234
a1622950 3235
5005acfe
VZ
3236 enablestring=
3237 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
521196a2 3238echo "configure:3239: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3239 no_cache=0
3240 # Check whether --enable-ftp or --disable-ftp was given.
3241if test "${enable_ftp+set}" = set; then
3242 enableval="$enable_ftp"
a0b9e27f 3243
a1622950
VZ
3244 if test "$enableval" = yes; then
3245 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3246 else
3247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3248 fi
a0b9e27f 3249
a1622950 3250else
a0b9e27f 3251
a1622950
VZ
3252 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3260
3261fi
a1622950
VZ
3262
3263
3264 eval "$ac_cv_use_ftp"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3270 echo "$ac_t""yes" 1>&6
a1622950 3271 else
a0b9e27f 3272 echo "$ac_t""no" 1>&6
a1622950 3273 fi
a0b9e27f 3274
a1622950 3275
5005acfe
VZ
3276 enablestring=
3277 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
521196a2 3278echo "configure:3279: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3279 no_cache=0
3280 # Check whether --enable-http or --disable-http was given.
3281if test "${enable_http+set}" = set; then
3282 enableval="$enable_http"
a0b9e27f 3283
a1622950
VZ
3284 if test "$enableval" = yes; then
3285 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3286 else
3287 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3288 fi
a0b9e27f 3289
a1622950 3290else
a0b9e27f 3291
a1622950
VZ
3292 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3300
3301fi
a1622950
VZ
3302
3303
3304 eval "$ac_cv_use_http"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3310 echo "$ac_t""yes" 1>&6
a1622950 3311 else
a0b9e27f 3312 echo "$ac_t""no" 1>&6
a1622950 3313 fi
a0b9e27f 3314
a1622950 3315
5005acfe
VZ
3316 enablestring=
3317 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
521196a2 3318echo "configure:3319: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3319 no_cache=0
3320 # Check whether --enable-fileproto or --disable-fileproto was given.
3321if test "${enable_fileproto+set}" = set; then
3322 enableval="$enable_fileproto"
a0b9e27f 3323
a1622950
VZ
3324 if test "$enableval" = yes; then
3325 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3326 else
3327 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3328 fi
a0b9e27f 3329
a1622950 3330else
a0b9e27f 3331
a1622950
VZ
3332 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3340
3341fi
a1622950
VZ
3342
3343
3344 eval "$ac_cv_use_fileproto"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3350 echo "$ac_t""yes" 1>&6
a1622950 3351 else
a0b9e27f 3352 echo "$ac_t""no" 1>&6
a1622950 3353 fi
a0b9e27f 3354
a1622950 3355
5005acfe
VZ
3356 enablestring=
3357 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
521196a2 3358echo "configure:3359: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3359 no_cache=0
3360 # Check whether --enable-sockets or --disable-sockets was given.
3361if test "${enable_sockets+set}" = set; then
3362 enableval="$enable_sockets"
a0b9e27f 3363
10f2d63a
VZ
3364 if test "$enableval" = yes; then
3365 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3366 else
3367 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3368 fi
a0b9e27f 3369
10f2d63a 3370else
a0b9e27f 3371
10f2d63a
VZ
3372 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3373 if test "x$LINE" != x ; then
3374 eval "DEFAULT_$LINE"
3375 else
3376 no_cache=1
3377 fi
3378
3379 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3380
3381fi
10f2d63a
VZ
3382
3383
3384 eval "$ac_cv_use_sockets"
3385 if test "$no_cache" != 1; then
3386 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3387 fi
3388
3389 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3390 echo "$ac_t""yes" 1>&6
10f2d63a 3391 else
a0b9e27f 3392 echo "$ac_t""no" 1>&6
10f2d63a 3393 fi
a0b9e27f 3394
8284b0c5 3395
5005acfe
VZ
3396 enablestring=
3397 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
521196a2 3398echo "configure:3399: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3399 no_cache=0
3400 # Check whether --enable-ole or --disable-ole was given.
3401if test "${enable_ole+set}" = set; then
3402 enableval="$enable_ole"
3403
3404 if test "$enableval" = yes; then
3405 ac_cv_use_ole='wxUSE_OLE=yes'
3406 else
3407 ac_cv_use_ole='wxUSE_OLE=no'
3408 fi
3409
3410else
3411
3412 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3420
3421fi
3422
3423
3424 eval "$ac_cv_use_ole"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_OLE" = yes; then
3430 echo "$ac_t""yes" 1>&6
3431 else
3432 echo "$ac_t""no" 1>&6
3433 fi
3434
3435
5005acfe
VZ
3436 enablestring=
3437 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
521196a2 3438echo "configure:3439: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3439 no_cache=0
3440 # Check whether --enable-dataobj or --disable-dataobj was given.
3441if test "${enable_dataobj+set}" = set; then
3442 enableval="$enable_dataobj"
3443
3444 if test "$enableval" = yes; then
3445 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3446 else
3447 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3460
3461fi
3462
3463
3464 eval "$ac_cv_use_dataobj"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_DATAOBJ" = yes; then
3470 echo "$ac_t""yes" 1>&6
3471 else
3472 echo "$ac_t""no" 1>&6
3473 fi
3474
3475
52127426 3476
5005acfe
VZ
3477 enablestring=
3478 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
521196a2 3479echo "configure:3480: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3480 no_cache=0
eb4efbdc
VZ
3481 # Check whether --enable-ipc or --disable-ipc was given.
3482if test "${enable_ipc+set}" = set; then
3483 enableval="$enable_ipc"
a0b9e27f 3484
10f2d63a 3485 if test "$enableval" = yes; then
eb4efbdc 3486 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3487 else
eb4efbdc 3488 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3489 fi
a0b9e27f 3490
10f2d63a 3491else
a0b9e27f 3492
eb4efbdc 3493 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3494 if test "x$LINE" != x ; then
3495 eval "DEFAULT_$LINE"
3496 else
3497 no_cache=1
3498 fi
3499
eb4efbdc 3500 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3501
3502fi
10f2d63a
VZ
3503
3504
eb4efbdc 3505 eval "$ac_cv_use_ipc"
10f2d63a 3506 if test "$no_cache" != 1; then
eb4efbdc 3507 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3508 fi
3509
eb4efbdc 3510 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3511 echo "$ac_t""yes" 1>&6
10f2d63a 3512 else
a0b9e27f 3513 echo "$ac_t""no" 1>&6
10f2d63a 3514 fi
a0b9e27f 3515
52127426 3516
8284b0c5 3517
5005acfe
VZ
3518 enablestring=
3519 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
521196a2 3520echo "configure:3521: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3521 no_cache=0
3522 # Check whether --enable-cmdline or --disable-cmdline was given.
3523if test "${enable_cmdline+set}" = set; then
3524 enableval="$enable_cmdline"
a0b9e27f 3525
1e6feb95
VZ
3526 if test "$enableval" = yes; then
3527 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3528 else
3529 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3530 fi
a0b9e27f 3531
1e6feb95 3532else
a0b9e27f 3533
1e6feb95
VZ
3534 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3535 if test "x$LINE" != x ; then
3536 eval "DEFAULT_$LINE"
3537 else
3538 no_cache=1
3539 fi
3540
3541 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3542
3543fi
1e6feb95
VZ
3544
3545
3546 eval "$ac_cv_use_cmdline"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3552 echo "$ac_t""yes" 1>&6
1e6feb95 3553 else
a0b9e27f 3554 echo "$ac_t""no" 1>&6
1e6feb95 3555 fi
a0b9e27f 3556
1e6feb95 3557
5005acfe
VZ
3558 enablestring=
3559 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
521196a2 3560echo "configure:3561: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3561 no_cache=0
3562 # Check whether --enable-datetime or --disable-datetime was given.
3563if test "${enable_datetime+set}" = set; then
3564 enableval="$enable_datetime"
a0b9e27f 3565
1e6feb95
VZ
3566 if test "$enableval" = yes; then
3567 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3568 else
3569 ac_cv_use_datetime='wxUSE_DATETIME=no'
3570 fi
a0b9e27f 3571
1e6feb95 3572else
a0b9e27f 3573
1e6feb95
VZ
3574 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
3581 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3582
3583fi
1e6feb95
VZ
3584
3585
3586 eval "$ac_cv_use_datetime"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3592 echo "$ac_t""yes" 1>&6
1e6feb95 3593 else
a0b9e27f 3594 echo "$ac_t""no" 1>&6
1e6feb95 3595 fi
a0b9e27f 3596
1e6feb95 3597
5005acfe
VZ
3598 enablestring=
3599 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
521196a2 3600echo "configure:3601: checking for --${enablestring:-enable}-timedate" >&5
1e6feb95
VZ
3601 no_cache=0
3602 # Check whether --enable-timedate or --disable-timedate was given.
3603if test "${enable_timedate+set}" = set; then
3604 enableval="$enable_timedate"
a0b9e27f 3605
1e6feb95
VZ
3606 if test "$enableval" = yes; then
3607 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3608 else
3609 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3610 fi
a0b9e27f 3611
1e6feb95 3612else
a0b9e27f 3613
1e6feb95
VZ
3614 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
a0b9e27f
MB
3622
3623fi
1e6feb95
VZ
3624
3625
3626 eval "$ac_cv_use_timedate"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_TIMEDATE" = yes; then
a0b9e27f 3632 echo "$ac_t""yes" 1>&6
1e6feb95 3633 else
a0b9e27f 3634 echo "$ac_t""no" 1>&6
1e6feb95 3635 fi
a0b9e27f 3636
1e6feb95 3637
5005acfe
VZ
3638 enablestring=
3639 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
521196a2 3640echo "configure:3641: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3641 no_cache=0
3642 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3643if test "${enable_stopwatch+set}" = set; then
3644 enableval="$enable_stopwatch"
a0b9e27f 3645
1e6feb95
VZ
3646 if test "$enableval" = yes; then
3647 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3648 else
3649 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3650 fi
a0b9e27f 3651
1e6feb95 3652else
a0b9e27f 3653
1e6feb95
VZ
3654 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3662
3663fi
1e6feb95
VZ
3664
3665
3666 eval "$ac_cv_use_stopwatch"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3672 echo "$ac_t""yes" 1>&6
1e6feb95 3673 else
a0b9e27f 3674 echo "$ac_t""no" 1>&6
1e6feb95 3675 fi
a0b9e27f 3676
1e6feb95 3677
5005acfe
VZ
3678 enablestring=
3679 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
521196a2 3680echo "configure:3681: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3681 no_cache=0
eb4efbdc
VZ
3682 # Check whether --enable-dialupman or --disable-dialupman was given.
3683if test "${enable_dialupman+set}" = set; then
3684 enableval="$enable_dialupman"
a0b9e27f 3685
10f2d63a 3686 if test "$enableval" = yes; then
eb4efbdc 3687 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3688 else
eb4efbdc 3689 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3690 fi
a0b9e27f 3691
10f2d63a 3692else
a0b9e27f 3693
eb4efbdc 3694 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
eb4efbdc 3701 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3702
3703fi
10f2d63a
VZ
3704
3705
eb4efbdc 3706 eval "$ac_cv_use_dialupman"
10f2d63a 3707 if test "$no_cache" != 1; then
eb4efbdc 3708 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3709 fi
3710
eb4efbdc 3711 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3712 echo "$ac_t""yes" 1>&6
10f2d63a 3713 else
a0b9e27f 3714 echo "$ac_t""no" 1>&6
10f2d63a 3715 fi
a0b9e27f 3716
10f2d63a 3717
5005acfe
VZ
3718 enablestring=
3719 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
521196a2 3720echo "configure:3721: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3721 no_cache=0
3722 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3723if test "${enable_apple_ieee+set}" = set; then
3724 enableval="$enable_apple_ieee"
a0b9e27f 3725
10f2d63a
VZ
3726 if test "$enableval" = yes; then
3727 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3728 else
3729 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3730 fi
a0b9e27f 3731
10f2d63a 3732else
a0b9e27f 3733
10f2d63a
VZ
3734 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3742
3743fi
10f2d63a
VZ
3744
3745
3746 eval "$ac_cv_use_apple_ieee"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3752 echo "$ac_t""yes" 1>&6
10f2d63a 3753 else
a0b9e27f 3754 echo "$ac_t""no" 1>&6
10f2d63a 3755 fi
a0b9e27f 3756
10f2d63a 3757
5005acfe
VZ
3758 enablestring=
3759 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
521196a2 3760echo "configure:3761: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3761 no_cache=0
1e6feb95
VZ
3762 # Check whether --enable-timer or --disable-timer was given.
3763if test "${enable_timer+set}" = set; then
3764 enableval="$enable_timer"
a0b9e27f 3765
10f2d63a 3766 if test "$enableval" = yes; then
1e6feb95 3767 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3768 else
1e6feb95 3769 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3770 fi
a0b9e27f 3771
10f2d63a 3772else
a0b9e27f 3773
1e6feb95 3774 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3775 if test "x$LINE" != x ; then
3776 eval "DEFAULT_$LINE"
3777 else
3778 no_cache=1
3779 fi
3780
1e6feb95 3781 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3782
3783fi
10f2d63a
VZ
3784
3785
1e6feb95 3786 eval "$ac_cv_use_timer"
10f2d63a 3787 if test "$no_cache" != 1; then
1e6feb95 3788 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3789 fi
3790
1e6feb95 3791 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3792 echo "$ac_t""yes" 1>&6
10f2d63a 3793 else
a0b9e27f 3794 echo "$ac_t""no" 1>&6
10f2d63a 3795 fi
a0b9e27f 3796
10f2d63a 3797
5005acfe
VZ
3798 enablestring=
3799 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
521196a2 3800echo "configure:3801: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3801 no_cache=0
3802 # Check whether --enable-wave or --disable-wave was given.
3803if test "${enable_wave+set}" = set; then
3804 enableval="$enable_wave"
a0b9e27f 3805
10f2d63a
VZ
3806 if test "$enableval" = yes; then
3807 ac_cv_use_wave='wxUSE_WAVE=yes'
3808 else
3809 ac_cv_use_wave='wxUSE_WAVE=no'
3810 fi
a0b9e27f 3811
10f2d63a 3812else
a0b9e27f 3813
10f2d63a
VZ
3814 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3815 if test "x$LINE" != x ; then
3816 eval "DEFAULT_$LINE"
3817 else
3818 no_cache=1
3819 fi
3820
3821 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3822
3823fi
10f2d63a
VZ
3824
3825
3826 eval "$ac_cv_use_wave"
3827 if test "$no_cache" != 1; then
3828 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3829 fi
3830
3831 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3832 echo "$ac_t""yes" 1>&6
10f2d63a 3833 else
a0b9e27f 3834 echo "$ac_t""no" 1>&6
10f2d63a 3835 fi
a0b9e27f 3836
10f2d63a 3837
5005acfe
VZ
3838 enablestring=
3839 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
521196a2 3840echo "configure:3841: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3841 no_cache=0
3842 # Check whether --enable-fraction or --disable-fraction was given.
3843if test "${enable_fraction+set}" = set; then
3844 enableval="$enable_fraction"
a0b9e27f 3845
10f2d63a
VZ
3846 if test "$enableval" = yes; then
3847 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3848 else
3849 ac_cv_use_fraction='wxUSE_FRACTION=no'
3850 fi
a0b9e27f 3851
10f2d63a 3852else
a0b9e27f 3853
10f2d63a
VZ
3854 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3862
3863fi
10f2d63a
VZ
3864
3865
3866 eval "$ac_cv_use_fraction"
3867 if test "$no_cache" != 1; then
3868 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3869 fi
3870
3871 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3872 echo "$ac_t""yes" 1>&6
10f2d63a 3873 else
a0b9e27f 3874 echo "$ac_t""no" 1>&6
10f2d63a 3875 fi
a0b9e27f 3876
10f2d63a 3877
5005acfe
VZ
3878 enablestring=
3879 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
521196a2 3880echo "configure:3881: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3881 no_cache=0
3882 # Check whether --enable-dynlib or --disable-dynlib was given.
3883if test "${enable_dynlib+set}" = set; then
3884 enableval="$enable_dynlib"
a0b9e27f 3885
10f2d63a
VZ
3886 if test "$enableval" = yes; then
3887 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3888 else
3889 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3890 fi
a0b9e27f 3891
10f2d63a 3892else
a0b9e27f 3893
10f2d63a
VZ
3894 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3895 if test "x$LINE" != x ; then
3896 eval "DEFAULT_$LINE"
3897 else
3898 no_cache=1
3899 fi
3900
3901 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3902
3903fi
10f2d63a
VZ
3904
3905
3906 eval "$ac_cv_use_dynlib"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3912 echo "$ac_t""yes" 1>&6
10f2d63a 3913 else
a0b9e27f 3914 echo "$ac_t""no" 1>&6
10f2d63a 3915 fi
a0b9e27f 3916
10f2d63a 3917
5005acfe
VZ
3918 enablestring=
3919 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
521196a2 3920echo "configure:3921: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3921 no_cache=0
3922 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3923if test "${enable_dynamicloader+set}" = set; then
3924 enableval="$enable_dynamicloader"
a0b9e27f 3925
0b9ab0bd
RL
3926 if test "$enableval" = yes; then
3927 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3928 else
3929 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3930 fi
a0b9e27f 3931
0b9ab0bd 3932else
a0b9e27f 3933
0b9ab0bd
RL
3934 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3935 if test "x$LINE" != x ; then
3936 eval "DEFAULT_$LINE"
3937 else
3938 no_cache=1
3939 fi
3940
3941 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3942
3943fi
0b9ab0bd
RL
3944
3945
3946 eval "$ac_cv_use_dynamicloader"
3947 if test "$no_cache" != 1; then
3948 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3949 fi
3950
3951 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3952 echo "$ac_t""yes" 1>&6
0b9ab0bd 3953 else
a0b9e27f 3954 echo "$ac_t""no" 1>&6
0b9ab0bd 3955 fi
a0b9e27f 3956
0b9ab0bd 3957
5005acfe
VZ
3958 enablestring=
3959 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
521196a2 3960echo "configure:3961: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3961 no_cache=0
3962 # Check whether --enable-longlong or --disable-longlong was given.
3963if test "${enable_longlong+set}" = set; then
3964 enableval="$enable_longlong"
a0b9e27f 3965
10f2d63a
VZ
3966 if test "$enableval" = yes; then
3967 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3968 else
3969 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3970 fi
a0b9e27f 3971
10f2d63a 3972else
a0b9e27f 3973
10f2d63a
VZ
3974 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3982
3983fi
10f2d63a
VZ
3984
3985
3986 eval "$ac_cv_use_longlong"
3987 if test "$no_cache" != 1; then
3988 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3989 fi
3990
3991 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3992 echo "$ac_t""yes" 1>&6
10f2d63a 3993 else
a0b9e27f 3994 echo "$ac_t""no" 1>&6
10f2d63a 3995 fi
a0b9e27f 3996
10f2d63a 3997
5005acfe
VZ
3998 enablestring=
3999 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
521196a2 4000echo "configure:4001: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
4001 no_cache=0
4002 # Check whether --enable-geometry or --disable-geometry was given.
4003if test "${enable_geometry+set}" = set; then
4004 enableval="$enable_geometry"
a0b9e27f 4005
e8f65ba6
RR
4006 if test "$enableval" = yes; then
4007 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4008 else
4009 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4010 fi
a0b9e27f 4011
e8f65ba6 4012else
a0b9e27f 4013
e8f65ba6
RR
4014 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4015 if test "x$LINE" != x ; then
4016 eval "DEFAULT_$LINE"
4017 else
4018 no_cache=1
4019 fi
4020
4021 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
4022
4023fi
e8f65ba6
RR
4024
4025
4026 eval "$ac_cv_use_geometry"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 4032 echo "$ac_t""yes" 1>&6
e8f65ba6 4033 else
a0b9e27f 4034 echo "$ac_t""no" 1>&6
e8f65ba6 4035 fi
a0b9e27f 4036
e8f65ba6 4037
5005acfe
VZ
4038 enablestring=
4039 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
521196a2 4040echo "configure:4041: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4041 no_cache=0
4042 # Check whether --enable-log or --disable-log was given.
4043if test "${enable_log+set}" = set; then
4044 enableval="$enable_log"
a0b9e27f 4045
10f2d63a
VZ
4046 if test "$enableval" = yes; then
4047 ac_cv_use_log='wxUSE_LOG=yes'
4048 else
4049 ac_cv_use_log='wxUSE_LOG=no'
4050 fi
a0b9e27f 4051
10f2d63a 4052else
a0b9e27f 4053
10f2d63a
VZ
4054 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4055 if test "x$LINE" != x ; then
4056 eval "DEFAULT_$LINE"
4057 else
4058 no_cache=1
4059 fi
4060
4061 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4062
4063fi
10f2d63a
VZ
4064
4065
4066 eval "$ac_cv_use_log"
4067 if test "$no_cache" != 1; then
4068 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4069 fi
4070
4071 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4072 echo "$ac_t""yes" 1>&6
10f2d63a 4073 else
a0b9e27f 4074 echo "$ac_t""no" 1>&6
10f2d63a 4075 fi
a0b9e27f 4076
10f2d63a 4077
5005acfe
VZ
4078 enablestring=
4079 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
521196a2 4080echo "configure:4081: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4081 no_cache=0
4082 # Check whether --enable-streams or --disable-streams was given.
4083if test "${enable_streams+set}" = set; then
4084 enableval="$enable_streams"
a0b9e27f 4085
10f2d63a
VZ
4086 if test "$enableval" = yes; then
4087 ac_cv_use_streams='wxUSE_STREAMS=yes'
4088 else
4089 ac_cv_use_streams='wxUSE_STREAMS=no'
4090 fi
a0b9e27f 4091
10f2d63a 4092else
a0b9e27f 4093
10f2d63a
VZ
4094 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4095 if test "x$LINE" != x ; then
4096 eval "DEFAULT_$LINE"
4097 else
4098 no_cache=1
4099 fi
4100
4101 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4102
4103fi
10f2d63a
VZ
4104
4105
4106 eval "$ac_cv_use_streams"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4112 echo "$ac_t""yes" 1>&6
10f2d63a 4113 else
a0b9e27f 4114 echo "$ac_t""no" 1>&6
10f2d63a 4115 fi
a0b9e27f 4116
10f2d63a 4117
5005acfe
VZ
4118 enablestring=
4119 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
521196a2 4120echo "configure:4121: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4121 no_cache=0
4122 # Check whether --enable-file or --disable-file was given.
4123if test "${enable_file+set}" = set; then
4124 enableval="$enable_file"
a0b9e27f 4125
10f2d63a
VZ
4126 if test "$enableval" = yes; then
4127 ac_cv_use_file='wxUSE_FILE=yes'
4128 else
4129 ac_cv_use_file='wxUSE_FILE=no'
4130 fi
a0b9e27f 4131
10f2d63a 4132else
a0b9e27f 4133
10f2d63a
VZ
4134 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4135 if test "x$LINE" != x ; then
4136 eval "DEFAULT_$LINE"
4137 else
4138 no_cache=1
4139 fi
4140
4141 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4142
4143fi
10f2d63a
VZ
4144
4145
4146 eval "$ac_cv_use_file"
4147 if test "$no_cache" != 1; then
4148 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4149 fi
4150
4151 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4152 echo "$ac_t""yes" 1>&6
10f2d63a 4153 else
a0b9e27f 4154 echo "$ac_t""no" 1>&6
10f2d63a 4155 fi
a0b9e27f 4156
10f2d63a 4157
5005acfe
VZ
4158 enablestring=
4159 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
521196a2 4160echo "configure:4161: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4161 no_cache=0
1e6feb95
VZ
4162 # Check whether --enable-ffile or --disable-ffile was given.
4163if test "${enable_ffile+set}" = set; then
4164 enableval="$enable_ffile"
a0b9e27f 4165
10f2d63a 4166 if test "$enableval" = yes; then
1e6feb95 4167 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4168 else
1e6feb95 4169 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4170 fi
a0b9e27f 4171
10f2d63a 4172else
a0b9e27f 4173
1e6feb95 4174 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4175 if test "x$LINE" != x ; then
4176 eval "DEFAULT_$LINE"
4177 else
4178 no_cache=1
4179 fi
4180
1e6feb95 4181 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4182
4183fi
10f2d63a
VZ
4184
4185
1e6feb95 4186 eval "$ac_cv_use_ffile"
10f2d63a 4187 if test "$no_cache" != 1; then
1e6feb95 4188 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4189 fi
4190
1e6feb95 4191 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4192 echo "$ac_t""yes" 1>&6
10f2d63a 4193 else
a0b9e27f 4194 echo "$ac_t""no" 1>&6
10f2d63a 4195 fi
a0b9e27f 4196
10f2d63a 4197
5005acfe
VZ
4198 enablestring=
4199 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
521196a2 4200echo "configure:4201: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4201 no_cache=0
4202 # Check whether --enable-textbuf or --disable-textbuf was given.
4203if test "${enable_textbuf+set}" = set; then
4204 enableval="$enable_textbuf"
a0b9e27f 4205
a3a584a7
VZ
4206 if test "$enableval" = yes; then
4207 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4208 else
4209 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4210 fi
a0b9e27f 4211
a3a584a7 4212else
a0b9e27f 4213
a3a584a7
VZ
4214 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4222
4223fi
a3a584a7
VZ
4224
4225
4226 eval "$ac_cv_use_textbuf"
4227 if test "$no_cache" != 1; then
4228 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4229 fi
4230
4231 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4232 echo "$ac_t""yes" 1>&6
a3a584a7 4233 else
a0b9e27f 4234 echo "$ac_t""no" 1>&6
a3a584a7 4235 fi
a0b9e27f 4236
a3a584a7 4237
5005acfe
VZ
4238 enablestring=
4239 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
521196a2 4240echo "configure:4241: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4241 no_cache=0
1e6feb95
VZ
4242 # Check whether --enable-textfile or --disable-textfile was given.
4243if test "${enable_textfile+set}" = set; then
4244 enableval="$enable_textfile"
a0b9e27f 4245
10f2d63a 4246 if test "$enableval" = yes; then
1e6feb95 4247 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4248 else
1e6feb95 4249 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4250 fi
a0b9e27f 4251
10f2d63a 4252else
a0b9e27f 4253
1e6feb95 4254 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
1e6feb95 4261 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4262
4263fi
10f2d63a
VZ
4264
4265
1e6feb95 4266 eval "$ac_cv_use_textfile"
10f2d63a 4267 if test "$no_cache" != 1; then
1e6feb95 4268 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4269 fi
4270
1e6feb95 4271 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4272 echo "$ac_t""yes" 1>&6
10f2d63a 4273 else
a0b9e27f 4274 echo "$ac_t""no" 1>&6
10f2d63a 4275 fi
a0b9e27f 4276
10f2d63a 4277
5005acfe
VZ
4278 enablestring=
4279 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
521196a2 4280echo "configure:4281: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4281 no_cache=0
1e6feb95
VZ
4282 # Check whether --enable-fontmap or --disable-fontmap was given.
4283if test "${enable_fontmap+set}" = set; then
4284 enableval="$enable_fontmap"
a0b9e27f 4285
10f2d63a 4286 if test "$enableval" = yes; then
1e6feb95 4287 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4288 else
1e6feb95 4289 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4290 fi
a0b9e27f 4291
10f2d63a 4292else
a0b9e27f 4293
1e6feb95 4294 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
1e6feb95 4301 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4302
4303fi
10f2d63a
VZ
4304
4305
1e6feb95 4306 eval "$ac_cv_use_fontmap"
10f2d63a 4307 if test "$no_cache" != 1; then
1e6feb95 4308 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4309 fi
4310
1e6feb95 4311 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4312 echo "$ac_t""yes" 1>&6
10f2d63a 4313 else
a0b9e27f 4314 echo "$ac_t""no" 1>&6
10f2d63a 4315 fi
a0b9e27f 4316
10f2d63a 4317
5005acfe
VZ
4318 enablestring=
4319 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
521196a2 4320echo "configure:4321: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4321 no_cache=0
1e6feb95
VZ
4322 # Check whether --enable-unicode or --disable-unicode was given.
4323if test "${enable_unicode+set}" = set; then
4324 enableval="$enable_unicode"
a0b9e27f 4325
1e6feb95
VZ
4326 if test "$enableval" = yes; then
4327 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4328 else
4329 ac_cv_use_unicode='wxUSE_UNICODE=no'
4330 fi
a0b9e27f 4331
1e6feb95 4332else
a0b9e27f 4333
1e6feb95
VZ
4334 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4335 if test "x$LINE" != x ; then
4336 eval "DEFAULT_$LINE"
4337 else
4338 no_cache=1
4339 fi
4340
4341 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4342
4343fi
1e6feb95
VZ
4344
4345
4346 eval "$ac_cv_use_unicode"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4352 echo "$ac_t""yes" 1>&6
1e6feb95 4353 else
a0b9e27f 4354 echo "$ac_t""no" 1>&6
1e6feb95 4355 fi
a0b9e27f 4356
1e6feb95 4357
5005acfe
VZ
4358 enablestring=
4359 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
521196a2 4360echo "configure:4361: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4361 no_cache=0
4362 # Check whether --enable-mslu or --disable-mslu was given.
4363if test "${enable_mslu+set}" = set; then
4364 enableval="$enable_mslu"
a0b9e27f 4365
a72a4bfa
VS
4366 if test "$enableval" = yes; then
4367 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4368 else
4369 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4370 fi
a0b9e27f 4371
a72a4bfa 4372else
a0b9e27f 4373
a72a4bfa
VS
4374 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4382
4383fi
a72a4bfa
VS
4384
4385
4386 eval "$ac_cv_use_mslu"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4392 echo "$ac_t""yes" 1>&6
a72a4bfa 4393 else
a0b9e27f 4394 echo "$ac_t""no" 1>&6
a72a4bfa 4395 fi
a0b9e27f 4396
a72a4bfa 4397
5005acfe
VZ
4398 enablestring=
4399 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
521196a2 4400echo "configure:4401: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4401 no_cache=0
4402 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4403if test "${enable_wxprintfv+set}" = set; then
4404 enableval="$enable_wxprintfv"
a0b9e27f 4405
1e6feb95 4406 if test "$enableval" = yes; then
10f2d63a
VZ
4407 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4408 else
4409 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4410 fi
a0b9e27f 4411
10f2d63a 4412else
a0b9e27f 4413
10f2d63a
VZ
4414 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4415 if test "x$LINE" != x ; then
4416 eval "DEFAULT_$LINE"
4417 else
4418 no_cache=1
4419 fi
4420
4421 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4422
4423fi
10f2d63a
VZ
4424
4425
4426 eval "$ac_cv_use_wxprintfv"
4427 if test "$no_cache" != 1; then
4428 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4429 fi
4430
4431 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4432 echo "$ac_t""yes" 1>&6
10f2d63a 4433 else
a0b9e27f 4434 echo "$ac_t""no" 1>&6
10f2d63a 4435 fi
a0b9e27f 4436
10f2d63a 4437
5005acfe
VZ
4438 enablestring=
4439 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
521196a2 4440echo "configure:4441: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4441 no_cache=0
4442 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4443if test "${enable_std_iostreams+set}" = set; then
4444 enableval="$enable_std_iostreams"
a0b9e27f 4445
10f2d63a
VZ
4446 if test "$enableval" = yes; then
4447 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4448 else
4449 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4450 fi
a0b9e27f 4451
10f2d63a 4452else
a0b9e27f 4453
10f2d63a
VZ
4454 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4455 if test "x$LINE" != x ; then
4456 eval "DEFAULT_$LINE"
4457 else
4458 no_cache=1
4459 fi
4460
4461 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4462
4463fi
10f2d63a
VZ
4464
4465
4466 eval "$ac_cv_use_std_iostreams"
4467 if test "$no_cache" != 1; then
4468 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4469 fi
4470
4471 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4472 echo "$ac_t""yes" 1>&6
10f2d63a 4473 else
a0b9e27f 4474 echo "$ac_t""no" 1>&6
10f2d63a 4475 fi
a0b9e27f 4476
10f2d63a 4477
5005acfe
VZ
4478 enablestring=
4479 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
521196a2 4480echo "configure:4481: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4481 no_cache=0
4482 # Check whether --enable-filesystem or --disable-filesystem was given.
4483if test "${enable_filesystem+set}" = set; then
4484 enableval="$enable_filesystem"
a0b9e27f 4485
24528b0c
VS
4486 if test "$enableval" = yes; then
4487 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4488 else
4489 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4490 fi
a0b9e27f 4491
24528b0c 4492else
a0b9e27f 4493
24528b0c
VS
4494 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4495 if test "x$LINE" != x ; then
4496 eval "DEFAULT_$LINE"
4497 else
4498 no_cache=1
4499 fi
4500
4501 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4502
4503fi
24528b0c
VS
4504
4505
4506 eval "$ac_cv_use_filesystem"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4512 echo "$ac_t""yes" 1>&6
24528b0c 4513 else
a0b9e27f 4514 echo "$ac_t""no" 1>&6
24528b0c 4515 fi
a0b9e27f 4516
24528b0c 4517
5005acfe
VZ
4518 enablestring=
4519 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
521196a2 4520echo "configure:4521: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4521 no_cache=0
4522 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4523if test "${enable_fs_inet+set}" = set; then
4524 enableval="$enable_fs_inet"
a0b9e27f 4525
10f2d63a
VZ
4526 if test "$enableval" = yes; then
4527 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4528 else
4529 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4530 fi
a0b9e27f 4531
10f2d63a 4532else
a0b9e27f 4533
10f2d63a
VZ
4534 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4542
4543fi
10f2d63a
VZ
4544
4545
4546 eval "$ac_cv_use_fs_inet"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4552 echo "$ac_t""yes" 1>&6
10f2d63a 4553 else
a0b9e27f 4554 echo "$ac_t""no" 1>&6
10f2d63a 4555 fi
a0b9e27f 4556
10f2d63a 4557
5005acfe
VZ
4558 enablestring=
4559 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
521196a2 4560echo "configure:4561: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4561 no_cache=0
4562 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4563if test "${enable_fs_zip+set}" = set; then
4564 enableval="$enable_fs_zip"
a0b9e27f 4565
10f2d63a
VZ
4566 if test "$enableval" = yes; then
4567 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4568 else
4569 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4570 fi
a0b9e27f 4571
10f2d63a 4572else
a0b9e27f 4573
10f2d63a
VZ
4574 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4575 if test "x$LINE" != x ; then
4576 eval "DEFAULT_$LINE"
4577 else
4578 no_cache=1
4579 fi
4580
4581 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4582
4583fi
10f2d63a
VZ
4584
4585
4586 eval "$ac_cv_use_fs_zip"
4587 if test "$no_cache" != 1; then
4588 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4589 fi
4590
4591 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4592 echo "$ac_t""yes" 1>&6
10f2d63a 4593 else
a0b9e27f 4594 echo "$ac_t""no" 1>&6
10f2d63a 4595 fi
a0b9e27f 4596
10f2d63a 4597
5005acfe
VZ
4598 enablestring=
4599 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
521196a2 4600echo "configure:4601: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4601 no_cache=0
4602 # Check whether --enable-zipstream or --disable-zipstream was given.
4603if test "${enable_zipstream+set}" = set; then
4604 enableval="$enable_zipstream"
a0b9e27f 4605
10f2d63a
VZ
4606 if test "$enableval" = yes; then
4607 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4608 else
4609 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4610 fi
a0b9e27f 4611
10f2d63a 4612else
a0b9e27f 4613
10f2d63a
VZ
4614 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4622
4623fi
10f2d63a
VZ
4624
4625
4626 eval "$ac_cv_use_zipstream"
4627 if test "$no_cache" != 1; then
4628 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4629 fi
4630
4631 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4632 echo "$ac_t""yes" 1>&6
10f2d63a 4633 else
a0b9e27f 4634 echo "$ac_t""no" 1>&6
10f2d63a 4635 fi
a0b9e27f 4636
8284b0c5 4637
52127426 4638
5005acfe
VZ
4639 enablestring=
4640 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
521196a2 4641echo "configure:4642: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4642 no_cache=0
4643 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4644if test "${enable_catch_segvs+set}" = set; then
4645 enableval="$enable_catch_segvs"
a0b9e27f 4646
eb4efbdc
VZ
4647 if test "$enableval" = yes; then
4648 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4649 else
4650 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4651 fi
a0b9e27f 4652
eb4efbdc 4653else
a0b9e27f 4654
eb4efbdc
VZ
4655 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4656 if test "x$LINE" != x ; then
4657 eval "DEFAULT_$LINE"
4658 else
4659 no_cache=1
4660 fi
4661
4662 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4663
4664fi
eb4efbdc
VZ
4665
4666
4667 eval "$ac_cv_use_catch_segvs"
4668 if test "$no_cache" != 1; then
4669 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4670 fi
4671
4672 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4673 echo "$ac_t""yes" 1>&6
eb4efbdc 4674 else
a0b9e27f 4675 echo "$ac_t""no" 1>&6
eb4efbdc 4676 fi
a0b9e27f 4677
eb4efbdc 4678
5005acfe
VZ
4679 enablestring=
4680 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
521196a2 4681echo "configure:4682: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4682 no_cache=0
4683 # Check whether --enable-snglinst or --disable-snglinst was given.
4684if test "${enable_snglinst+set}" = set; then
4685 enableval="$enable_snglinst"
a0b9e27f 4686
4f3c5f06
VZ
4687 if test "$enableval" = yes; then
4688 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4689 else
4690 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4691 fi
a0b9e27f 4692
4f3c5f06 4693else
a0b9e27f 4694
4f3c5f06
VZ
4695 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4703
4704fi
4f3c5f06
VZ
4705
4706
4707 eval "$ac_cv_use_snglinst"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4713 echo "$ac_t""yes" 1>&6
4f3c5f06 4714 else
a0b9e27f 4715 echo "$ac_t""no" 1>&6
4f3c5f06 4716 fi
a0b9e27f 4717
52127426 4718
8284b0c5 4719
5005acfe
VZ
4720 enablestring=
4721 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
521196a2 4722echo "configure:4723: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4723 no_cache=0
4724 # Check whether --enable-mimetype or --disable-mimetype was given.
4725if test "${enable_mimetype+set}" = set; then
4726 enableval="$enable_mimetype"
a0b9e27f 4727
1e6feb95
VZ
4728 if test "$enableval" = yes; then
4729 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4730 else
4731 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4732 fi
a0b9e27f 4733
1e6feb95 4734else
a0b9e27f 4735
1e6feb95
VZ
4736 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4744
4745fi
1e6feb95
VZ
4746
4747
4748 eval "$ac_cv_use_mimetype"
4749 if test "$no_cache" != 1; then
4750 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4751 fi
4752
4753 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4754 echo "$ac_t""yes" 1>&6
1e6feb95 4755 else
a0b9e27f 4756 echo "$ac_t""no" 1>&6
1e6feb95 4757 fi
a0b9e27f 4758
1e6feb95 4759
5005acfe
VZ
4760 enablestring=
4761 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
521196a2 4762echo "configure:4763: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4763 no_cache=0
4764 # Check whether --enable-system_options or --disable-system_options was given.
4765if test "${enable_system_options+set}" = set; then
4766 enableval="$enable_system_options"
a0b9e27f 4767
3e44f09d
VZ
4768 if test "$enableval" = yes; then
4769 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4770 else
4771 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4772 fi
a0b9e27f 4773
3e44f09d 4774else
a0b9e27f 4775
3e44f09d
VZ
4776 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4784
4785fi
3e44f09d
VZ
4786
4787
4788 eval "$ac_cv_use_system_options"
4789 if test "$no_cache" != 1; then
4790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4791 fi
4792
4793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4794 echo "$ac_t""yes" 1>&6
3e44f09d 4795 else
a0b9e27f 4796 echo "$ac_t""no" 1>&6
3e44f09d 4797 fi
a0b9e27f 4798
8284b0c5 4799
52127426 4800
5005acfe
VZ
4801 enablestring=
4802 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
521196a2 4803echo "configure:4804: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4804 no_cache=0
4805 # Check whether --enable-url or --disable-url was given.
4806if test "${enable_url+set}" = set; then
4807 enableval="$enable_url"
a0b9e27f 4808
4cdb0ab0
VS
4809 if test "$enableval" = yes; then
4810 ac_cv_use_url='wxUSE_URL=yes'
4811 else
4812 ac_cv_use_url='wxUSE_URL=no'
4813 fi
a0b9e27f 4814
4cdb0ab0 4815else
a0b9e27f 4816
4cdb0ab0
VS
4817 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4825
4826fi
4cdb0ab0
VS
4827
4828
4829 eval "$ac_cv_use_url"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_URL" = yes; then
a0b9e27f 4835 echo "$ac_t""yes" 1>&6
4cdb0ab0 4836 else
a0b9e27f 4837 echo "$ac_t""no" 1>&6
4cdb0ab0 4838 fi
a0b9e27f 4839
4cdb0ab0 4840
5005acfe
VZ
4841 enablestring=
4842 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
521196a2 4843echo "configure:4844: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4844 no_cache=0
4845 # Check whether --enable-protocol or --disable-protocol was given.
4846if test "${enable_protocol+set}" = set; then
4847 enableval="$enable_protocol"
a0b9e27f 4848
4cdb0ab0
VS
4849 if test "$enableval" = yes; then
4850 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4851 else
4852 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4853 fi
a0b9e27f 4854
4cdb0ab0 4855else
a0b9e27f 4856
4cdb0ab0
VS
4857 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
4864 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4865
4866fi
4cdb0ab0
VS
4867
4868
4869 eval "$ac_cv_use_protocol"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4875 echo "$ac_t""yes" 1>&6
4cdb0ab0 4876 else
a0b9e27f 4877 echo "$ac_t""no" 1>&6
4cdb0ab0 4878 fi
a0b9e27f 4879
4cdb0ab0 4880
5005acfe
VZ
4881 enablestring=
4882 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
521196a2 4883echo "configure:4884: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4884 no_cache=0
4885 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4886if test "${enable_protocol_http+set}" = set; then
4887 enableval="$enable_protocol_http"
a0b9e27f 4888
4cdb0ab0
VS
4889 if test "$enableval" = yes; then
4890 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4891 else
4892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4893 fi
a0b9e27f 4894
4cdb0ab0 4895else
a0b9e27f 4896
4cdb0ab0
VS
4897 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4905
4906fi
4cdb0ab0
VS
4907
4908
4909 eval "$ac_cv_use_protocol_http"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4915 echo "$ac_t""yes" 1>&6
4cdb0ab0 4916 else
a0b9e27f 4917 echo "$ac_t""no" 1>&6
4cdb0ab0 4918 fi
a0b9e27f 4919
4cdb0ab0 4920
5005acfe
VZ
4921 enablestring=
4922 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
521196a2 4923echo "configure:4924: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4924 no_cache=0
4925 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4926if test "${enable_protocol_ftp+set}" = set; then
4927 enableval="$enable_protocol_ftp"
a0b9e27f 4928
4cdb0ab0
VS
4929 if test "$enableval" = yes; then
4930 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4931 else
4932 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4933 fi
a0b9e27f 4934
4cdb0ab0 4935else
a0b9e27f 4936
4cdb0ab0
VS
4937 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4945
4946fi
4cdb0ab0
VS
4947
4948
4949 eval "$ac_cv_use_protocol_ftp"
4950 if test "$no_cache" != 1; then
4951 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4952 fi
4953
4954 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4955 echo "$ac_t""yes" 1>&6
4cdb0ab0 4956 else
a0b9e27f 4957 echo "$ac_t""no" 1>&6
4cdb0ab0 4958 fi
a0b9e27f 4959
4cdb0ab0 4960
5005acfe
VZ
4961 enablestring=
4962 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
521196a2 4963echo "configure:4964: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4964 no_cache=0
4965 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4966if test "${enable_protocol_file+set}" = set; then
4967 enableval="$enable_protocol_file"
a0b9e27f 4968
4cdb0ab0
VS
4969 if test "$enableval" = yes; then
4970 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4971 else
4972 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4973 fi
a0b9e27f 4974
4cdb0ab0 4975else
a0b9e27f 4976
4cdb0ab0
VS
4977 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4978 if test "x$LINE" != x ; then
4979 eval "DEFAULT_$LINE"
4980 else
4981 no_cache=1
4982 fi
4983
4984 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4985
4986fi
4cdb0ab0
VS
4987
4988
4989 eval "$ac_cv_use_protocol_file"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4992 fi
4993
4994 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4995 echo "$ac_t""yes" 1>&6
4cdb0ab0 4996 else
a0b9e27f 4997 echo "$ac_t""no" 1>&6
4cdb0ab0 4998 fi
a0b9e27f 4999
52127426 5000
8284b0c5
MB
5001
5002
5003
5005acfe
VZ
5004 enablestring=
5005 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
521196a2 5006echo "configure:5007: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
5007 no_cache=0
5008 # Check whether --enable-threads or --disable-threads was given.
5009if test "${enable_threads+set}" = set; then
5010 enableval="$enable_threads"
a0b9e27f 5011
10f2d63a
VZ
5012 if test "$enableval" = yes; then
5013 ac_cv_use_threads='wxUSE_THREADS=yes'
5014 else
5015 ac_cv_use_threads='wxUSE_THREADS=no'
5016 fi
a0b9e27f 5017
10f2d63a 5018else
a0b9e27f 5019
10f2d63a
VZ
5020 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5021 if test "x$LINE" != x ; then
5022 eval "DEFAULT_$LINE"
5023 else
5024 no_cache=1
5025 fi
5026
5027 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
5028
5029fi
10f2d63a
VZ
5030
5031
5032 eval "$ac_cv_use_threads"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5038 echo "$ac_t""yes" 1>&6
10f2d63a 5039 else
a0b9e27f 5040 echo "$ac_t""no" 1>&6
10f2d63a 5041 fi
a0b9e27f 5042
10f2d63a 5043
b12915c1
VZ
5044if test "$wxUSE_GUI" = "yes"; then
5045
8284b0c5
MB
5046
5047
5005acfe
VZ
5048 enablestring=
5049 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
521196a2 5050echo "configure:5051: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5051 no_cache=0
5052 # Check whether --enable-docview or --disable-docview was given.
5053if test "${enable_docview+set}" = set; then
5054 enableval="$enable_docview"
a0b9e27f 5055
10f2d63a
VZ
5056 if test "$enableval" = yes; then
5057 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5058 else
5059 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5060 fi
a0b9e27f 5061
10f2d63a 5062else
a0b9e27f 5063
10f2d63a
VZ
5064 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5065 if test "x$LINE" != x ; then
5066 eval "DEFAULT_$LINE"
5067 else
5068 no_cache=1
5069 fi
5070
5071 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5072
5073fi
10f2d63a
VZ
5074
5075
5076 eval "$ac_cv_use_docview"
5077 if test "$no_cache" != 1; then
5078 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5079 fi
5080
5081 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5082 echo "$ac_t""yes" 1>&6
10f2d63a 5083 else
a0b9e27f 5084 echo "$ac_t""no" 1>&6
10f2d63a 5085 fi
a0b9e27f 5086
10f2d63a 5087
5005acfe
VZ
5088 enablestring=
5089 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
521196a2 5090echo "configure:5091: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5091 no_cache=0
5092 # Check whether --enable-help or --disable-help was given.
5093if test "${enable_help+set}" = set; then
5094 enableval="$enable_help"
a0b9e27f 5095
10f2d63a
VZ
5096 if test "$enableval" = yes; then
5097 ac_cv_use_help='wxUSE_HELP=yes'
5098 else
5099 ac_cv_use_help='wxUSE_HELP=no'
5100 fi
a0b9e27f 5101
10f2d63a 5102else
a0b9e27f 5103
10f2d63a
VZ
5104 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5112
5113fi
10f2d63a
VZ
5114
5115
5116 eval "$ac_cv_use_help"
5117 if test "$no_cache" != 1; then
5118 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5119 fi
5120
5121 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5122 echo "$ac_t""yes" 1>&6
10f2d63a 5123 else
a0b9e27f 5124 echo "$ac_t""no" 1>&6
10f2d63a 5125 fi
a0b9e27f 5126
10f2d63a 5127
5005acfe
VZ
5128 enablestring=
5129 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
521196a2 5130echo "configure:5131: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5131 no_cache=0
5132 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5133if test "${enable_mshtmlhelp+set}" = set; then
5134 enableval="$enable_mshtmlhelp"
a0b9e27f 5135
29fd3c0c
VS
5136 if test "$enableval" = yes; then
5137 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5138 else
5139 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5140 fi
a0b9e27f 5141
29fd3c0c 5142else
a0b9e27f 5143
29fd3c0c
VS
5144 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5152
5153fi
29fd3c0c
VS
5154
5155
5156 eval "$ac_cv_use_mshtmlhelp"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5162 echo "$ac_t""yes" 1>&6
29fd3c0c 5163 else
a0b9e27f 5164 echo "$ac_t""no" 1>&6
29fd3c0c 5165 fi
a0b9e27f 5166
29fd3c0c 5167
5005acfe
VZ
5168 enablestring=
5169 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
521196a2 5170echo "configure:5171: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5171 no_cache=0
5172 # Check whether --enable-html or --disable-html was given.
5173if test "${enable_html+set}" = set; then
5174 enableval="$enable_html"
a0b9e27f 5175
3379ed37
VZ
5176 if test "$enableval" = yes; then
5177 ac_cv_use_html='wxUSE_HTML=yes'
5178 else
5179 ac_cv_use_html='wxUSE_HTML=no'
5180 fi
a0b9e27f 5181
3379ed37 5182else
a0b9e27f 5183
3379ed37
VZ
5184 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5185 if test "x$LINE" != x ; then
5186 eval "DEFAULT_$LINE"
5187 else
5188 no_cache=1
5189 fi
5190
5191 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5192
5193fi
3379ed37
VZ
5194
5195
5196 eval "$ac_cv_use_html"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5202 echo "$ac_t""yes" 1>&6
3379ed37 5203 else
a0b9e27f 5204 echo "$ac_t""no" 1>&6
3379ed37 5205 fi
a0b9e27f 5206
3379ed37 5207
5005acfe
VZ
5208 enablestring=
5209 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
521196a2 5210echo "configure:5211: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5211 no_cache=0
5212 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5213if test "${enable_htmlhelp+set}" = set; then
5214 enableval="$enable_htmlhelp"
a0b9e27f 5215
3379ed37
VZ
5216 if test "$enableval" = yes; then
5217 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5218 else
5219 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5220 fi
a0b9e27f 5221
3379ed37 5222else
a0b9e27f 5223
3379ed37
VZ
5224 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5232
5233fi
3379ed37
VZ
5234
5235
5236 eval "$ac_cv_use_htmlhelp"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5242 echo "$ac_t""yes" 1>&6
3379ed37 5243 else
a0b9e27f 5244 echo "$ac_t""no" 1>&6
3379ed37 5245 fi
a0b9e27f 5246
3379ed37 5247
5005acfe
VZ
5248 enablestring=
5249 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
521196a2 5250echo "configure:5251: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5251 no_cache=0
5252 # Check whether --enable-constraints or --disable-constraints was given.
5253if test "${enable_constraints+set}" = set; then
5254 enableval="$enable_constraints"
a0b9e27f 5255
10f2d63a
VZ
5256 if test "$enableval" = yes; then
5257 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5258 else
5259 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5260 fi
a0b9e27f 5261
10f2d63a 5262else
a0b9e27f 5263
10f2d63a
VZ
5264 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5272
5273fi
10f2d63a
VZ
5274
5275
5276 eval "$ac_cv_use_constraints"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5282 echo "$ac_t""yes" 1>&6
10f2d63a 5283 else
a0b9e27f 5284 echo "$ac_t""no" 1>&6
10f2d63a 5285 fi
a0b9e27f 5286
10f2d63a 5287
5005acfe
VZ
5288 enablestring=
5289 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
521196a2 5290echo "configure:5291: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5291 no_cache=0
5292 # Check whether --enable-printarch or --disable-printarch was given.
5293if test "${enable_printarch+set}" = set; then
5294 enableval="$enable_printarch"
a0b9e27f 5295
10f2d63a
VZ
5296 if test "$enableval" = yes; then
5297 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5298 else
5299 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5300 fi
a0b9e27f 5301
10f2d63a 5302else
a0b9e27f 5303
10f2d63a
VZ
5304 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5305 if test "x$LINE" != x ; then
5306 eval "DEFAULT_$LINE"
5307 else
5308 no_cache=1
5309 fi
5310
5311 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5312
5313fi
10f2d63a
VZ
5314
5315
5316 eval "$ac_cv_use_printarch"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5322 echo "$ac_t""yes" 1>&6
10f2d63a 5323 else
a0b9e27f 5324 echo "$ac_t""no" 1>&6
10f2d63a 5325 fi
a0b9e27f 5326
10f2d63a 5327
5005acfe
VZ
5328 enablestring=
5329 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
521196a2 5330echo "configure:5331: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5331 no_cache=0
5332 # Check whether --enable-mdi or --disable-mdi was given.
5333if test "${enable_mdi+set}" = set; then
5334 enableval="$enable_mdi"
a0b9e27f 5335
10f2d63a
VZ
5336 if test "$enableval" = yes; then
5337 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5338 else
5339 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5340 fi
a0b9e27f 5341
10f2d63a 5342else
a0b9e27f 5343
10f2d63a
VZ
5344 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5352
5353fi
10f2d63a
VZ
5354
5355
5356 eval "$ac_cv_use_mdi"
5357 if test "$no_cache" != 1; then
5358 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5359 fi
5360
5361 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5362 echo "$ac_t""yes" 1>&6
10f2d63a 5363 else
a0b9e27f 5364 echo "$ac_t""no" 1>&6
10f2d63a 5365 fi
a0b9e27f 5366
698dcdb6 5367
5005acfe
VZ
5368 enablestring=
5369 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
521196a2 5370echo "configure:5371: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5371 no_cache=0
5372 # Check whether --enable-loggui or --disable-loggui was given.
5373if test "${enable_loggui+set}" = set; then
5374 enableval="$enable_loggui"
a0b9e27f 5375
1e6feb95
VZ
5376 if test "$enableval" = yes; then
5377 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5378 else
5379 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5380 fi
a0b9e27f 5381
1e6feb95 5382else
a0b9e27f 5383
1e6feb95
VZ
5384 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5392
5393fi
1e6feb95
VZ
5394
5395
5396 eval "$ac_cv_use_loggui"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5402 echo "$ac_t""yes" 1>&6
1e6feb95 5403 else
a0b9e27f 5404 echo "$ac_t""no" 1>&6
1e6feb95 5405 fi
a0b9e27f 5406
1e6feb95 5407
5005acfe
VZ
5408 enablestring=
5409 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
521196a2 5410echo "configure:5411: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5411 no_cache=0
5412 # Check whether --enable-logwin or --disable-logwin was given.
5413if test "${enable_logwin+set}" = set; then
5414 enableval="$enable_logwin"
a0b9e27f 5415
1e6feb95
VZ
5416 if test "$enableval" = yes; then
5417 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5418 else
5419 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5420 fi
a0b9e27f 5421
1e6feb95 5422else
a0b9e27f 5423
1e6feb95
VZ
5424 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5432
5433fi
1e6feb95
VZ
5434
5435
5436 eval "$ac_cv_use_logwin"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5442 echo "$ac_t""yes" 1>&6
1e6feb95 5443 else
a0b9e27f 5444 echo "$ac_t""no" 1>&6
1e6feb95 5445 fi
a0b9e27f 5446
1e6feb95 5447
5005acfe
VZ
5448 enablestring=
5449 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
521196a2 5450echo "configure:5451: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5451 no_cache=0
5452 # Check whether --enable-logdialog or --disable-logdialog was given.
5453if test "${enable_logdialog+set}" = set; then
5454 enableval="$enable_logdialog"
a0b9e27f 5455
69d27ff7
MB
5456 if test "$enableval" = yes; then
5457 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5458 else
5459 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5460 fi
a0b9e27f 5461
69d27ff7 5462else
a0b9e27f 5463
69d27ff7
MB
5464 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5472
5473fi
69d27ff7
MB
5474
5475
5476 eval "$ac_cv_use_logdialog"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5482 echo "$ac_t""yes" 1>&6
69d27ff7 5483 else
a0b9e27f 5484 echo "$ac_t""no" 1>&6
69d27ff7 5485 fi
a0b9e27f 5486
8284b0c5 5487
52127426 5488
5005acfe
VZ
5489 enablestring=
5490 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
521196a2 5491echo "configure:5492: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5492 no_cache=0
5493 # Check whether --enable-postscript or --disable-postscript was given.
5494if test "${enable_postscript+set}" = set; then
5495 enableval="$enable_postscript"
a0b9e27f 5496
10f2d63a
VZ
5497 if test "$enableval" = yes; then
5498 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5499 else
5500 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5501 fi
a0b9e27f 5502
10f2d63a 5503else
a0b9e27f 5504
10f2d63a
VZ
5505 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5513
5514fi
10f2d63a
VZ
5515
5516
5517 eval "$ac_cv_use_postscript"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5523 echo "$ac_t""yes" 1>&6
10f2d63a 5524 else
a0b9e27f 5525 echo "$ac_t""no" 1>&6
10f2d63a 5526 fi
a0b9e27f 5527
8284b0c5
MB
5528
5529
52127426 5530
8284b0c5 5531
5005acfe
VZ
5532 enablestring=
5533 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
521196a2 5534echo "configure:5535: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a
VZ
5535 no_cache=0
5536 # Check whether --enable-prologio or --disable-prologio was given.
5537if test "${enable_prologio+set}" = set; then
5538 enableval="$enable_prologio"
a0b9e27f 5539
10f2d63a
VZ
5540 if test "$enableval" = yes; then
5541 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5542 else
5543 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5544 fi
a0b9e27f 5545
10f2d63a 5546else
a0b9e27f 5547
10f2d63a
VZ
5548 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5556
5557fi
10f2d63a
VZ
5558
5559
5560 eval "$ac_cv_use_prologio"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5566 echo "$ac_t""yes" 1>&6
10f2d63a 5567 else
a0b9e27f 5568 echo "$ac_t""no" 1>&6
10f2d63a 5569 fi
a0b9e27f 5570
10f2d63a 5571
5005acfe
VZ
5572 enablestring=
5573 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
521196a2 5574echo "configure:5575: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5575 no_cache=0
5576 # Check whether --enable-resources or --disable-resources was given.
5577if test "${enable_resources+set}" = set; then
5578 enableval="$enable_resources"
a0b9e27f 5579
10f2d63a
VZ
5580 if test "$enableval" = yes; then
5581 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5582 else
5583 ac_cv_use_resources='wxUSE_RESOURCES=no'
5584 fi
a0b9e27f 5585
10f2d63a 5586else
a0b9e27f 5587
10f2d63a
VZ
5588 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5589 if test "x$LINE" != x ; then
5590 eval "DEFAULT_$LINE"
5591 else
5592 no_cache=1
5593 fi
5594
5595 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5596
5597fi
10f2d63a
VZ
5598
5599
5600 eval "$ac_cv_use_resources"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5606 echo "$ac_t""yes" 1>&6
10f2d63a 5607 else
a0b9e27f 5608 echo "$ac_t""no" 1>&6
10f2d63a 5609 fi
a0b9e27f 5610
8284b0c5 5611
52127426 5612
5005acfe
VZ
5613 enablestring=
5614 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
521196a2 5615echo "configure:5616: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5616 no_cache=0
5617 # Check whether --enable-xresources or --disable-xresources was given.
5618if test "${enable_xresources+set}" = set; then
5619 enableval="$enable_xresources"
a0b9e27f 5620
10f2d63a
VZ
5621 if test "$enableval" = yes; then
5622 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5623 else
5624 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5625 fi
a0b9e27f 5626
10f2d63a 5627else
a0b9e27f 5628
10f2d63a
VZ
5629 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5630 if test "x$LINE" != x ; then
5631 eval "DEFAULT_$LINE"
5632 else
5633 no_cache=1
5634 fi
5635
5636 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5637
5638fi
10f2d63a
VZ
5639
5640
5641 eval "$ac_cv_use_xresources"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5647 echo "$ac_t""yes" 1>&6
10f2d63a 5648 else
a0b9e27f 5649 echo "$ac_t""no" 1>&6
10f2d63a 5650 fi
a0b9e27f 5651
8284b0c5
MB
5652
5653
52127426 5654
5005acfe
VZ
5655 enablestring=
5656 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
521196a2 5657echo "configure:5658: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5658 no_cache=0
5659 # Check whether --enable-clipboard or --disable-clipboard was given.
5660if test "${enable_clipboard+set}" = set; then
5661 enableval="$enable_clipboard"
a0b9e27f 5662
10f2d63a
VZ
5663 if test "$enableval" = yes; then
5664 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5665 else
5666 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5667 fi
a0b9e27f 5668
10f2d63a 5669else
a0b9e27f 5670
10f2d63a
VZ
5671 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5679
5680fi
10f2d63a
VZ
5681
5682
5683 eval "$ac_cv_use_clipboard"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5689 echo "$ac_t""yes" 1>&6
10f2d63a 5690 else
a0b9e27f 5691 echo "$ac_t""no" 1>&6
10f2d63a 5692 fi
a0b9e27f 5693
10f2d63a 5694
5005acfe
VZ
5695 enablestring=
5696 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
521196a2 5697echo "configure:5698: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5698 no_cache=0
5699 # Check whether --enable-dnd or --disable-dnd was given.
5700if test "${enable_dnd+set}" = set; then
5701 enableval="$enable_dnd"
a0b9e27f 5702
10f2d63a
VZ
5703 if test "$enableval" = yes; then
5704 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5705 else
5706 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5707 fi
a0b9e27f 5708
10f2d63a 5709else
a0b9e27f 5710
10f2d63a
VZ
5711 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5719
5720fi
10f2d63a
VZ
5721
5722
5723 eval "$ac_cv_use_dnd"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5729 echo "$ac_t""yes" 1>&6
10f2d63a 5730 else
a0b9e27f 5731 echo "$ac_t""no" 1>&6
10f2d63a 5732 fi
a0b9e27f 5733
10f2d63a 5734
5005acfe
VZ
5735 enablestring=
5736 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
521196a2 5737echo "configure:5738: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5738 no_cache=0
5739 # Check whether --enable-metafile or --disable-metafile was given.
5740if test "${enable_metafile+set}" = set; then
5741 enableval="$enable_metafile"
a0b9e27f 5742
b64f0a5f
RL
5743 if test "$enableval" = yes; then
5744 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5745 else
5746 ac_cv_use_metafile='wxUSE_METAFILE=no'
5747 fi
a0b9e27f 5748
b64f0a5f 5749else
a0b9e27f 5750
b64f0a5f
RL
5751 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5759
5760fi
b64f0a5f
RL
5761
5762
5763 eval "$ac_cv_use_metafile"
5764 if test "$no_cache" != 1; then
5765 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5766 fi
5767
5768 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5769 echo "$ac_t""yes" 1>&6
b64f0a5f 5770 else
a0b9e27f 5771 echo "$ac_t""no" 1>&6
b64f0a5f 5772 fi
a0b9e27f 5773
52127426 5774
8284b0c5 5775
5005acfe
VZ
5776 enablestring=
5777 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
521196a2 5778echo "configure:5779: checking for --${enablestring:-enable}-treelayout" >&5
10f2d63a 5779 no_cache=0
24176f2c
GD
5780 # Check whether --enable-treelayout or --disable-treelayout was given.
5781if test "${enable_treelayout+set}" = set; then
5782 enableval="$enable_treelayout"
a0b9e27f 5783
10f2d63a 5784 if test "$enableval" = yes; then
24176f2c 5785 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5786 else
24176f2c 5787 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5788 fi
a0b9e27f 5789
10f2d63a 5790else
a0b9e27f 5791
24176f2c 5792 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
24176f2c 5799 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5800
5801fi
10f2d63a
VZ
5802
5803
24176f2c 5804 eval "$ac_cv_use_treelayout"
10f2d63a 5805 if test "$no_cache" != 1; then
24176f2c 5806 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5807 fi
5808
24176f2c 5809 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5810 echo "$ac_t""yes" 1>&6
10f2d63a 5811 else
a0b9e27f 5812 echo "$ac_t""no" 1>&6
10f2d63a 5813 fi
a0b9e27f 5814
8284b0c5 5815
52127426 5816
8284b0c5 5817
5005acfe
VZ
5818 enablestring=
5819 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
521196a2 5820echo "configure:5821: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5821 no_cache=0
5822 # Check whether --enable-controls or --disable-controls was given.
5823if test "${enable_controls+set}" = set; then
5824 enableval="$enable_controls"
a0b9e27f 5825
10f2d63a
VZ
5826 if test "$enableval" = yes; then
5827 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5828 else
5829 ac_cv_use_controls='wxUSE_CONTROLS=no'
5830 fi
a0b9e27f 5831
10f2d63a 5832else
a0b9e27f 5833
10f2d63a
VZ
5834 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5842
5843fi
10f2d63a
VZ
5844
5845
5846 eval "$ac_cv_use_controls"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5852 echo "$ac_t""yes" 1>&6
10f2d63a 5853 else
a0b9e27f 5854 echo "$ac_t""no" 1>&6
10f2d63a 5855 fi
a0b9e27f 5856
10f2d63a
VZ
5857
5858if test "$wxUSE_CONTROLS" = "yes"; then
5859 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5860 DEFAULT_wxUSE_BMPBUTTON=yes
5861 DEFAULT_wxUSE_BUTTON=yes
5862 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5863 DEFAULT_wxUSE_CARET=yes
5864 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5865 DEFAULT_wxUSE_CHECKBOX=yes
5866 DEFAULT_wxUSE_CHECKLISTBOX=yes
5867 DEFAULT_wxUSE_CHOICE=yes
5868 DEFAULT_wxUSE_GAUGE=yes
5869 DEFAULT_wxUSE_GRID=yes
cc977e5f 5870 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5871 DEFAULT_wxUSE_IMAGLIST=yes
5872 DEFAULT_wxUSE_LISTBOX=yes
5873 DEFAULT_wxUSE_LISTCTRL=yes
5874 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5875 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5876 DEFAULT_wxUSE_RADIOBOX=yes
5877 DEFAULT_wxUSE_RADIOBTN=yes
5878 DEFAULT_wxUSE_SASH=yes
5879 DEFAULT_wxUSE_SCROLLBAR=yes
5880 DEFAULT_wxUSE_SLIDER=yes
5881 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5882 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5883 DEFAULT_wxUSE_SPLITTER=yes
5884 DEFAULT_wxUSE_STATBMP=yes
5885 DEFAULT_wxUSE_STATBOX=yes
5886 DEFAULT_wxUSE_STATLINE=yes
5887 DEFAULT_wxUSE_STATUSBAR=yes
5888 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5889 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5890 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5891 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5892 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5893 DEFAULT_wxUSE_TOOLTIPS=yes
5894 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5895 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5896 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5897elif test "$wxUSE_CONTROLS" = "no"; then
5898 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5899 DEFAULT_wxUSE_BMPBUTTON=no
5900 DEFAULT_wxUSE_BUTTON=no
5901 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5902 DEFAULT_wxUSE_CARET=no
5903 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5904 DEFAULT_wxUSE_CHECKBOX=no
5905 DEFAULT_wxUSE_CHECKLISTBOX=no
5906 DEFAULT_wxUSE_CHOICE=no
5907 DEFAULT_wxUSE_GAUGE=no
5908 DEFAULT_wxUSE_GRID=no
5909 DEFAULT_wxUSE_NEW_GRID=no
5910 DEFAULT_wxUSE_IMAGLIST=no
5911 DEFAULT_wxUSE_LISTBOX=no
5912 DEFAULT_wxUSE_LISTCTRL=no
5913 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5914 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5915 DEFAULT_wxUSE_RADIOBOX=no
5916 DEFAULT_wxUSE_RADIOBTN=no
5917 DEFAULT_wxUSE_SASH=no
5918 DEFAULT_wxUSE_SCROLLBAR=no
5919 DEFAULT_wxUSE_SLIDER=no
5920 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5921 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5922 DEFAULT_wxUSE_SPLITTER=no
5923 DEFAULT_wxUSE_STATBMP=no
5924 DEFAULT_wxUSE_STATBOX=no
5925 DEFAULT_wxUSE_STATLINE=no
5926 DEFAULT_wxUSE_STATUSBAR=no
5927 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5928 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5929 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5930 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5931 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5932 DEFAULT_wxUSE_TOOLTIPS=no
5933 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5934 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5935 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5936fi
5937
8284b0c5 5938
5005acfe
VZ
5939 enablestring=
5940 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
521196a2 5941echo "configure:5942: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5942 no_cache=0
5943 # Check whether --enable-accel or --disable-accel was given.
5944if test "${enable_accel+set}" = set; then
5945 enableval="$enable_accel"
a0b9e27f 5946
10f2d63a
VZ
5947 if test "$enableval" = yes; then
5948 ac_cv_use_accel='wxUSE_ACCEL=yes'
5949 else
5950 ac_cv_use_accel='wxUSE_ACCEL=no'
5951 fi
a0b9e27f 5952
10f2d63a 5953else
a0b9e27f 5954
10f2d63a
VZ
5955 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5956 if test "x$LINE" != x ; then
5957 eval "DEFAULT_$LINE"
5958 else
5959 no_cache=1
5960 fi
5961
5962 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5963
5964fi
10f2d63a
VZ
5965
5966
5967 eval "$ac_cv_use_accel"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5973 echo "$ac_t""yes" 1>&6
10f2d63a 5974 else
a0b9e27f 5975 echo "$ac_t""no" 1>&6
10f2d63a 5976 fi
a0b9e27f 5977
10f2d63a 5978
5005acfe
VZ
5979 enablestring=
5980 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
521196a2 5981echo "configure:5982: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5982 no_cache=0
1e6feb95
VZ
5983 # Check whether --enable-button or --disable-button was given.
5984if test "${enable_button+set}" = set; then
5985 enableval="$enable_button"
a0b9e27f 5986
10f2d63a 5987 if test "$enableval" = yes; then
1e6feb95 5988 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5989 else
1e6feb95 5990 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5991 fi
a0b9e27f 5992
10f2d63a 5993else
a0b9e27f 5994
1e6feb95 5995 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
1e6feb95 6002 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
6003
6004fi
10f2d63a
VZ
6005
6006
1e6feb95 6007 eval "$ac_cv_use_button"
10f2d63a 6008 if test "$no_cache" != 1; then
1e6feb95 6009 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6010 fi
6011
1e6feb95 6012 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 6013 echo "$ac_t""yes" 1>&6
10f2d63a 6014 else
a0b9e27f 6015 echo "$ac_t""no" 1>&6
10f2d63a 6016 fi
a0b9e27f 6017
10f2d63a 6018
5005acfe
VZ
6019 enablestring=
6020 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
521196a2 6021echo "configure:6022: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
6022 no_cache=0
6023 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6024if test "${enable_bmpbutton+set}" = set; then
6025 enableval="$enable_bmpbutton"
a0b9e27f 6026
10f2d63a
VZ
6027 if test "$enableval" = yes; then
6028 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6029 else
6030 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6031 fi
a0b9e27f 6032
10f2d63a 6033else
a0b9e27f 6034
10f2d63a
VZ
6035 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
6043
6044fi
10f2d63a
VZ
6045
6046
6047 eval "$ac_cv_use_bmpbutton"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 6053 echo "$ac_t""yes" 1>&6
10f2d63a 6054 else
a0b9e27f 6055 echo "$ac_t""no" 1>&6
10f2d63a 6056 fi
a0b9e27f 6057
10f2d63a 6058
5005acfe
VZ
6059 enablestring=
6060 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
521196a2 6061echo "configure:6062: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
6062 no_cache=0
6063 # Check whether --enable-calendar or --disable-calendar was given.
6064if test "${enable_calendar+set}" = set; then
6065 enableval="$enable_calendar"
a0b9e27f 6066
1e6feb95
VZ
6067 if test "$enableval" = yes; then
6068 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6069 else
6070 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6071 fi
a0b9e27f 6072
1e6feb95 6073else
a0b9e27f 6074
1e6feb95
VZ
6075 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6083
6084fi
1e6feb95
VZ
6085
6086
6087 eval "$ac_cv_use_calendar"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6093 echo "$ac_t""yes" 1>&6
1e6feb95 6094 else
a0b9e27f 6095 echo "$ac_t""no" 1>&6
1e6feb95 6096 fi
a0b9e27f 6097
1e6feb95 6098
5005acfe
VZ
6099 enablestring=
6100 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
521196a2 6101echo "configure:6102: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6102 no_cache=0
6103 # Check whether --enable-caret or --disable-caret was given.
6104if test "${enable_caret+set}" = set; then
6105 enableval="$enable_caret"
a0b9e27f 6106
1e6feb95
VZ
6107 if test "$enableval" = yes; then
6108 ac_cv_use_caret='wxUSE_CARET=yes'
6109 else
6110 ac_cv_use_caret='wxUSE_CARET=no'
6111 fi
a0b9e27f 6112
1e6feb95 6113else
a0b9e27f 6114
1e6feb95
VZ
6115 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6123
6124fi
1e6feb95
VZ
6125
6126
6127 eval "$ac_cv_use_caret"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6133 echo "$ac_t""yes" 1>&6
1e6feb95 6134 else
a0b9e27f 6135 echo "$ac_t""no" 1>&6
1e6feb95 6136 fi
a0b9e27f 6137
1e6feb95 6138
5005acfe
VZ
6139 enablestring=
6140 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
521196a2 6141echo "configure:6142: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6142 no_cache=0
6143 # Check whether --enable-checkbox or --disable-checkbox was given.
6144if test "${enable_checkbox+set}" = set; then
6145 enableval="$enable_checkbox"
a0b9e27f 6146
10f2d63a
VZ
6147 if test "$enableval" = yes; then
6148 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6149 else
6150 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6151 fi
a0b9e27f 6152
10f2d63a 6153else
a0b9e27f 6154
10f2d63a
VZ
6155 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6163
6164fi
10f2d63a
VZ
6165
6166
6167 eval "$ac_cv_use_checkbox"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6173 echo "$ac_t""yes" 1>&6
10f2d63a 6174 else
a0b9e27f 6175 echo "$ac_t""no" 1>&6
10f2d63a 6176 fi
a0b9e27f 6177
10f2d63a 6178
5005acfe
VZ
6179 enablestring=
6180 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
521196a2 6181echo "configure:6182: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6182 no_cache=0
6183 # Check whether --enable-checklst or --disable-checklst was given.
6184if test "${enable_checklst+set}" = set; then
6185 enableval="$enable_checklst"
a0b9e27f 6186
10f2d63a
VZ
6187 if test "$enableval" = yes; then
6188 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6189 else
6190 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6191 fi
a0b9e27f 6192
10f2d63a 6193else
a0b9e27f 6194
10f2d63a
VZ
6195 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6196 if test "x$LINE" != x ; then
6197 eval "DEFAULT_$LINE"
6198 else
6199 no_cache=1
6200 fi
6201
6202 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6203
6204fi
10f2d63a
VZ
6205
6206
6207 eval "$ac_cv_use_checklst"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6213 echo "$ac_t""yes" 1>&6
10f2d63a 6214 else
a0b9e27f 6215 echo "$ac_t""no" 1>&6
10f2d63a 6216 fi
a0b9e27f 6217
10f2d63a 6218
5005acfe
VZ
6219 enablestring=
6220 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
521196a2 6221echo "configure:6222: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6222 no_cache=0
6223 # Check whether --enable-choice or --disable-choice was given.
6224if test "${enable_choice+set}" = set; then
6225 enableval="$enable_choice"
a0b9e27f 6226
10f2d63a
VZ
6227 if test "$enableval" = yes; then
6228 ac_cv_use_choice='wxUSE_CHOICE=yes'
6229 else
6230 ac_cv_use_choice='wxUSE_CHOICE=no'
6231 fi
a0b9e27f 6232
10f2d63a 6233else
a0b9e27f 6234
10f2d63a
VZ
6235 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6243
6244fi
10f2d63a
VZ
6245
6246
6247 eval "$ac_cv_use_choice"
6248 if test "$no_cache" != 1; then
6249 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6250 fi
6251
6252 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6253 echo "$ac_t""yes" 1>&6
10f2d63a 6254 else
a0b9e27f 6255 echo "$ac_t""no" 1>&6
10f2d63a 6256 fi
a0b9e27f 6257
10f2d63a 6258
5005acfe
VZ
6259 enablestring=
6260 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
521196a2 6261echo "configure:6262: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6262 no_cache=0
6263 # Check whether --enable-combobox or --disable-combobox was given.
6264if test "${enable_combobox+set}" = set; then
6265 enableval="$enable_combobox"
a0b9e27f 6266
10f2d63a
VZ
6267 if test "$enableval" = yes; then
6268 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6269 else
6270 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6271 fi
a0b9e27f 6272
10f2d63a 6273else
a0b9e27f 6274
10f2d63a
VZ
6275 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6283
6284fi
10f2d63a
VZ
6285
6286
6287 eval "$ac_cv_use_combobox"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6293 echo "$ac_t""yes" 1>&6
10f2d63a 6294 else
a0b9e27f 6295 echo "$ac_t""no" 1>&6
10f2d63a 6296 fi
a0b9e27f 6297
10f2d63a 6298
da494b40
MB
6299 enablestring=
6300 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
521196a2 6301echo "configure:6302: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6302 no_cache=0
6303 # Check whether --enable-display or --disable-display was given.
6304if test "${enable_display+set}" = set; then
6305 enableval="$enable_display"
6306
6307 if test "$enableval" = yes; then
6308 ac_cv_use_display='wxUSE_DISPLAY=yes'
6309 else
6310 ac_cv_use_display='wxUSE_DISPLAY=no'
6311 fi
6312
6313else
6314
6315 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6323
6324fi
6325
6326
6327 eval "$ac_cv_use_display"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_DISPLAY" = yes; then
6333 echo "$ac_t""yes" 1>&6
6334 else
6335 echo "$ac_t""no" 1>&6
6336 fi
6337
6338
5005acfe
VZ
6339 enablestring=
6340 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
521196a2 6341echo "configure:6342: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6342 no_cache=0
6343 # Check whether --enable-gauge or --disable-gauge was given.
6344if test "${enable_gauge+set}" = set; then
6345 enableval="$enable_gauge"
a0b9e27f 6346
10f2d63a
VZ
6347 if test "$enableval" = yes; then
6348 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6349 else
6350 ac_cv_use_gauge='wxUSE_GAUGE=no'
6351 fi
a0b9e27f 6352
10f2d63a 6353else
a0b9e27f 6354
10f2d63a
VZ
6355 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6363
6364fi
10f2d63a
VZ
6365
6366
6367 eval "$ac_cv_use_gauge"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6373 echo "$ac_t""yes" 1>&6
10f2d63a 6374 else
a0b9e27f 6375 echo "$ac_t""no" 1>&6
10f2d63a 6376 fi
a0b9e27f 6377
10f2d63a 6378
5005acfe
VZ
6379 enablestring=
6380 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
521196a2 6381echo "configure:6382: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6382 no_cache=0
6383 # Check whether --enable-grid or --disable-grid was given.
6384if test "${enable_grid+set}" = set; then
6385 enableval="$enable_grid"
a0b9e27f 6386
10f2d63a
VZ
6387 if test "$enableval" = yes; then
6388 ac_cv_use_grid='wxUSE_GRID=yes'
6389 else
6390 ac_cv_use_grid='wxUSE_GRID=no'
6391 fi
a0b9e27f 6392
10f2d63a 6393else
a0b9e27f 6394
10f2d63a
VZ
6395 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6403
6404fi
10f2d63a
VZ
6405
6406
6407 eval "$ac_cv_use_grid"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6410 fi
6411
6412 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6413 echo "$ac_t""yes" 1>&6
10f2d63a 6414 else
a0b9e27f 6415 echo "$ac_t""no" 1>&6
10f2d63a 6416 fi
a0b9e27f 6417
10f2d63a 6418
5005acfe
VZ
6419 enablestring=
6420 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
521196a2 6421echo "configure:6422: checking for --${enablestring:-enable}-newgrid" >&5
10f2d63a
VZ
6422 no_cache=0
6423 # Check whether --enable-newgrid or --disable-newgrid was given.
6424if test "${enable_newgrid+set}" = set; then
6425 enableval="$enable_newgrid"
a0b9e27f 6426
10f2d63a
VZ
6427 if test "$enableval" = yes; then
6428 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6429 else
6430 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6431 fi
a0b9e27f 6432
10f2d63a 6433else
a0b9e27f 6434
10f2d63a
VZ
6435 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
a0b9e27f
MB
6443
6444fi
10f2d63a
VZ
6445
6446
6447 eval "$ac_cv_use_newgrid"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_NEW_GRID" = yes; then
a0b9e27f 6453 echo "$ac_t""yes" 1>&6
10f2d63a 6454 else
a0b9e27f 6455 echo "$ac_t""no" 1>&6
10f2d63a 6456 fi
a0b9e27f 6457
10f2d63a 6458
5005acfe
VZ
6459 enablestring=
6460 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
521196a2 6461echo "configure:6462: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6462 no_cache=0
6463 # Check whether --enable-imaglist or --disable-imaglist was given.
6464if test "${enable_imaglist+set}" = set; then
6465 enableval="$enable_imaglist"
a0b9e27f 6466
10f2d63a
VZ
6467 if test "$enableval" = yes; then
6468 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6469 else
6470 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6471 fi
a0b9e27f 6472
10f2d63a 6473else
a0b9e27f 6474
10f2d63a
VZ
6475 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6483
6484fi
10f2d63a
VZ
6485
6486
6487 eval "$ac_cv_use_imaglist"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6493 echo "$ac_t""yes" 1>&6
10f2d63a 6494 else
a0b9e27f 6495 echo "$ac_t""no" 1>&6
10f2d63a 6496 fi
a0b9e27f 6497
10f2d63a 6498
5005acfe
VZ
6499 enablestring=
6500 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
521196a2 6501echo "configure:6502: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6502 no_cache=0
6503 # Check whether --enable-listbox or --disable-listbox was given.
6504if test "${enable_listbox+set}" = set; then
6505 enableval="$enable_listbox"
a0b9e27f 6506
10f2d63a
VZ
6507 if test "$enableval" = yes; then
6508 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6509 else
6510 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6511 fi
a0b9e27f 6512
10f2d63a 6513else
a0b9e27f 6514
10f2d63a
VZ
6515 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6516 if test "x$LINE" != x ; then
6517 eval "DEFAULT_$LINE"
6518 else
6519 no_cache=1
6520 fi
6521
6522 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6523
6524fi
10f2d63a
VZ
6525
6526
6527 eval "$ac_cv_use_listbox"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6533 echo "$ac_t""yes" 1>&6
10f2d63a 6534 else
a0b9e27f 6535 echo "$ac_t""no" 1>&6
10f2d63a 6536 fi
a0b9e27f 6537
10f2d63a 6538
5005acfe
VZ
6539 enablestring=
6540 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
521196a2 6541echo "configure:6542: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6542 no_cache=0
6543 # Check whether --enable-listctrl or --disable-listctrl was given.
6544if test "${enable_listctrl+set}" = set; then
6545 enableval="$enable_listctrl"
a0b9e27f 6546
10f2d63a
VZ
6547 if test "$enableval" = yes; then
6548 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6549 else
6550 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6551 fi
a0b9e27f 6552
10f2d63a 6553else
a0b9e27f 6554
10f2d63a
VZ
6555 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6563
6564fi
10f2d63a
VZ
6565
6566
6567 eval "$ac_cv_use_listctrl"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6573 echo "$ac_t""yes" 1>&6
10f2d63a 6574 else
a0b9e27f 6575 echo "$ac_t""no" 1>&6
10f2d63a 6576 fi
a0b9e27f 6577
10f2d63a 6578
5005acfe
VZ
6579 enablestring=
6580 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
521196a2 6581echo "configure:6582: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6582 no_cache=0
6583 # Check whether --enable-notebook or --disable-notebook was given.
6584if test "${enable_notebook+set}" = set; then
6585 enableval="$enable_notebook"
a0b9e27f 6586
10f2d63a
VZ
6587 if test "$enableval" = yes; then
6588 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6589 else
6590 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6591 fi
a0b9e27f 6592
10f2d63a 6593else
a0b9e27f 6594
10f2d63a
VZ
6595 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6596 if test "x$LINE" != x ; then
6597 eval "DEFAULT_$LINE"
6598 else
6599 no_cache=1
6600 fi
6601
6602 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6603
6604fi
10f2d63a
VZ
6605
6606
6607 eval "$ac_cv_use_notebook"
6608 if test "$no_cache" != 1; then
6609 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6610 fi
6611
6612 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6613 echo "$ac_t""yes" 1>&6
10f2d63a 6614 else
a0b9e27f 6615 echo "$ac_t""no" 1>&6
10f2d63a 6616 fi
a0b9e27f 6617
10f2d63a 6618
5005acfe
VZ
6619 enablestring=
6620 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
521196a2 6621echo "configure:6622: checking for --${enablestring:-enable}-propsheet" >&5
24176f2c
GD
6622 no_cache=0
6623 # Check whether --enable-propsheet or --disable-propsheet was given.
6624if test "${enable_propsheet+set}" = set; then
6625 enableval="$enable_propsheet"
a0b9e27f 6626
24176f2c
GD
6627 if test "$enableval" = yes; then
6628 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6629 else
6630 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6631 fi
a0b9e27f 6632
24176f2c 6633else
a0b9e27f 6634
24176f2c
GD
6635 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6636 if test "x$LINE" != x ; then
6637 eval "DEFAULT_$LINE"
6638 else
6639 no_cache=1
6640 fi
6641
6642 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6643
6644fi
24176f2c
GD
6645
6646
6647 eval "$ac_cv_use_propsheet"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6653 echo "$ac_t""yes" 1>&6
24176f2c 6654 else
a0b9e27f 6655 echo "$ac_t""no" 1>&6
24176f2c 6656 fi
a0b9e27f 6657
24176f2c 6658
5005acfe
VZ
6659 enablestring=
6660 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
521196a2 6661echo "configure:6662: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6662 no_cache=0
6663 # Check whether --enable-radiobox or --disable-radiobox was given.
6664if test "${enable_radiobox+set}" = set; then
6665 enableval="$enable_radiobox"
a0b9e27f 6666
10f2d63a
VZ
6667 if test "$enableval" = yes; then
6668 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6669 else
6670 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6671 fi
a0b9e27f 6672
10f2d63a 6673else
a0b9e27f 6674
10f2d63a
VZ
6675 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6676 if test "x$LINE" != x ; then
6677 eval "DEFAULT_$LINE"
6678 else
6679 no_cache=1
6680 fi
6681
6682 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6683
6684fi
10f2d63a
VZ
6685
6686
6687 eval "$ac_cv_use_radiobox"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6693 echo "$ac_t""yes" 1>&6
10f2d63a 6694 else
a0b9e27f 6695 echo "$ac_t""no" 1>&6
10f2d63a 6696 fi
a0b9e27f 6697
10f2d63a 6698
5005acfe
VZ
6699 enablestring=
6700 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
521196a2 6701echo "configure:6702: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6702 no_cache=0
6703 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6704if test "${enable_radiobtn+set}" = set; then
6705 enableval="$enable_radiobtn"
a0b9e27f 6706
10f2d63a
VZ
6707 if test "$enableval" = yes; then
6708 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6709 else
6710 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6711 fi
a0b9e27f 6712
10f2d63a 6713else
a0b9e27f 6714
10f2d63a
VZ
6715 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6716 if test "x$LINE" != x ; then
6717 eval "DEFAULT_$LINE"
6718 else
6719 no_cache=1
6720 fi
6721
6722 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6723
6724fi
10f2d63a
VZ
6725
6726
6727 eval "$ac_cv_use_radiobtn"
6728 if test "$no_cache" != 1; then
6729 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6730 fi
6731
6732 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6733 echo "$ac_t""yes" 1>&6
10f2d63a 6734 else
a0b9e27f 6735 echo "$ac_t""no" 1>&6
10f2d63a 6736 fi
a0b9e27f 6737
10f2d63a 6738
5005acfe
VZ
6739 enablestring=
6740 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
521196a2 6741echo "configure:6742: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6742 no_cache=0
6743 # Check whether --enable-sash or --disable-sash was given.
6744if test "${enable_sash+set}" = set; then
6745 enableval="$enable_sash"
a0b9e27f 6746
10f2d63a
VZ
6747 if test "$enableval" = yes; then
6748 ac_cv_use_sash='wxUSE_SASH=yes'
6749 else
6750 ac_cv_use_sash='wxUSE_SASH=no'
6751 fi
a0b9e27f 6752
10f2d63a 6753else
a0b9e27f 6754
10f2d63a
VZ
6755 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6756 if test "x$LINE" != x ; then
6757 eval "DEFAULT_$LINE"
6758 else
6759 no_cache=1
6760 fi
6761
6762 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6763
6764fi
10f2d63a
VZ
6765
6766
6767 eval "$ac_cv_use_sash"
6768 if test "$no_cache" != 1; then
6769 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6770 fi
6771
6772 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6773 echo "$ac_t""yes" 1>&6
10f2d63a 6774 else
a0b9e27f 6775 echo "$ac_t""no" 1>&6
10f2d63a 6776 fi
a0b9e27f 6777
10f2d63a 6778
5005acfe
VZ
6779 enablestring=
6780 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
521196a2 6781echo "configure:6782: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6782 no_cache=0
6783 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6784if test "${enable_scrollbar+set}" = set; then
6785 enableval="$enable_scrollbar"
a0b9e27f 6786
10f2d63a
VZ
6787 if test "$enableval" = yes; then
6788 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6789 else
6790 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6791 fi
a0b9e27f 6792
10f2d63a 6793else
a0b9e27f 6794
10f2d63a
VZ
6795 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6803
6804fi
10f2d63a
VZ
6805
6806
6807 eval "$ac_cv_use_scrollbar"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6813 echo "$ac_t""yes" 1>&6
10f2d63a 6814 else
a0b9e27f 6815 echo "$ac_t""no" 1>&6
10f2d63a 6816 fi
a0b9e27f 6817
10f2d63a 6818
5005acfe
VZ
6819 enablestring=
6820 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
521196a2 6821echo "configure:6822: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6822 no_cache=0
6823 # Check whether --enable-slider or --disable-slider was given.
6824if test "${enable_slider+set}" = set; then
6825 enableval="$enable_slider"
a0b9e27f 6826
10f2d63a
VZ
6827 if test "$enableval" = yes; then
6828 ac_cv_use_slider='wxUSE_SLIDER=yes'
6829 else
6830 ac_cv_use_slider='wxUSE_SLIDER=no'
6831 fi
a0b9e27f 6832
10f2d63a 6833else
a0b9e27f 6834
10f2d63a
VZ
6835 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6836 if test "x$LINE" != x ; then
6837 eval "DEFAULT_$LINE"
6838 else
6839 no_cache=1
6840 fi
6841
6842 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6843
6844fi
10f2d63a
VZ
6845
6846
6847 eval "$ac_cv_use_slider"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6853 echo "$ac_t""yes" 1>&6
10f2d63a 6854 else
a0b9e27f 6855 echo "$ac_t""no" 1>&6
10f2d63a 6856 fi
a0b9e27f 6857
10f2d63a 6858
5005acfe
VZ
6859 enablestring=
6860 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
521196a2 6861echo "configure:6862: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6862 no_cache=0
6863 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6864if test "${enable_spinbtn+set}" = set; then
6865 enableval="$enable_spinbtn"
a0b9e27f 6866
10f2d63a
VZ
6867 if test "$enableval" = yes; then
6868 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6869 else
6870 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6871 fi
a0b9e27f 6872
10f2d63a 6873else
a0b9e27f 6874
10f2d63a
VZ
6875 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6883
6884fi
10f2d63a
VZ
6885
6886
6887 eval "$ac_cv_use_spinbtn"
6888 if test "$no_cache" != 1; then
6889 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6890 fi
6891
6892 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6893 echo "$ac_t""yes" 1>&6
10f2d63a 6894 else
a0b9e27f 6895 echo "$ac_t""no" 1>&6
10f2d63a 6896 fi
a0b9e27f 6897
10f2d63a 6898
5005acfe
VZ
6899 enablestring=
6900 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
521196a2 6901echo "configure:6902: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6902 no_cache=0
6903 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6904if test "${enable_spinctrl+set}" = set; then
6905 enableval="$enable_spinctrl"
a0b9e27f 6906
56cfaa52
RR
6907 if test "$enableval" = yes; then
6908 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6909 else
6910 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6911 fi
a0b9e27f 6912
56cfaa52 6913else
a0b9e27f 6914
56cfaa52
RR
6915 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6923
6924fi
56cfaa52
RR
6925
6926
6927 eval "$ac_cv_use_spinctrl"
6928 if test "$no_cache" != 1; then
6929 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6930 fi
6931
6932 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6933 echo "$ac_t""yes" 1>&6
56cfaa52 6934 else
a0b9e27f 6935 echo "$ac_t""no" 1>&6
56cfaa52 6936 fi
a0b9e27f 6937
56cfaa52 6938
5005acfe
VZ
6939 enablestring=
6940 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
521196a2 6941echo "configure:6942: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6942 no_cache=0
6943 # Check whether --enable-splitter or --disable-splitter was given.
6944if test "${enable_splitter+set}" = set; then
6945 enableval="$enable_splitter"
a0b9e27f 6946
10f2d63a
VZ
6947 if test "$enableval" = yes; then
6948 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6949 else
6950 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6951 fi
a0b9e27f 6952
10f2d63a 6953else
a0b9e27f 6954
10f2d63a
VZ
6955 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6956 if test "x$LINE" != x ; then
6957 eval "DEFAULT_$LINE"
6958 else
6959 no_cache=1
6960 fi
6961
6962 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6963
6964fi
10f2d63a
VZ
6965
6966
6967 eval "$ac_cv_use_splitter"
6968 if test "$no_cache" != 1; then
6969 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6970 fi
6971
6972 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6973 echo "$ac_t""yes" 1>&6
10f2d63a 6974 else
a0b9e27f 6975 echo "$ac_t""no" 1>&6
10f2d63a 6976 fi
a0b9e27f 6977
10f2d63a 6978
5005acfe
VZ
6979 enablestring=
6980 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
521196a2 6981echo "configure:6982: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6982 no_cache=0
6983 # Check whether --enable-statbmp or --disable-statbmp was given.
6984if test "${enable_statbmp+set}" = set; then
6985 enableval="$enable_statbmp"
a0b9e27f 6986
10f2d63a
VZ
6987 if test "$enableval" = yes; then
6988 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6989 else
6990 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6991 fi
a0b9e27f 6992
10f2d63a 6993else
a0b9e27f 6994
10f2d63a
VZ
6995 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
7003
7004fi
10f2d63a
VZ
7005
7006
7007 eval "$ac_cv_use_statbmp"
7008 if test "$no_cache" != 1; then
7009 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7010 fi
7011
7012 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 7013 echo "$ac_t""yes" 1>&6
10f2d63a 7014 else
a0b9e27f 7015 echo "$ac_t""no" 1>&6
10f2d63a 7016 fi
a0b9e27f 7017
10f2d63a 7018
5005acfe
VZ
7019 enablestring=
7020 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
521196a2 7021echo "configure:7022: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
7022 no_cache=0
7023 # Check whether --enable-statbox or --disable-statbox was given.
7024if test "${enable_statbox+set}" = set; then
7025 enableval="$enable_statbox"
a0b9e27f 7026
10f2d63a
VZ
7027 if test "$enableval" = yes; then
7028 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7029 else
7030 ac_cv_use_statbox='wxUSE_STATBOX=no'
7031 fi
a0b9e27f 7032
10f2d63a 7033else
a0b9e27f 7034
10f2d63a
VZ
7035 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
7043
7044fi
10f2d63a
VZ
7045
7046
7047 eval "$ac_cv_use_statbox"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 7053 echo "$ac_t""yes" 1>&6
10f2d63a 7054 else
a0b9e27f 7055 echo "$ac_t""no" 1>&6
10f2d63a 7056 fi
a0b9e27f 7057
10f2d63a 7058
5005acfe
VZ
7059 enablestring=
7060 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
521196a2 7061echo "configure:7062: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
7062 no_cache=0
7063 # Check whether --enable-statline or --disable-statline was given.
7064if test "${enable_statline+set}" = set; then
7065 enableval="$enable_statline"
a0b9e27f 7066
10f2d63a
VZ
7067 if test "$enableval" = yes; then
7068 ac_cv_use_statline='wxUSE_STATLINE=yes'
7069 else
7070 ac_cv_use_statline='wxUSE_STATLINE=no'
7071 fi
a0b9e27f 7072
10f2d63a 7073else
a0b9e27f 7074
10f2d63a
VZ
7075 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7076 if test "x$LINE" != x ; then
7077 eval "DEFAULT_$LINE"
7078 else
7079 no_cache=1
7080 fi
7081
7082 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
7083
7084fi
10f2d63a
VZ
7085
7086
7087 eval "$ac_cv_use_statline"
7088 if test "$no_cache" != 1; then
7089 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7090 fi
7091
7092 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 7093 echo "$ac_t""yes" 1>&6
10f2d63a 7094 else
a0b9e27f 7095 echo "$ac_t""no" 1>&6
10f2d63a 7096 fi
a0b9e27f 7097
10f2d63a 7098
5005acfe
VZ
7099 enablestring=
7100 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
521196a2 7101echo "configure:7102: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
7102 no_cache=0
7103 # Check whether --enable-stattext or --disable-stattext was given.
7104if test "${enable_stattext+set}" = set; then
7105 enableval="$enable_stattext"
a0b9e27f 7106
1e6feb95
VZ
7107 if test "$enableval" = yes; then
7108 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7109 else
7110 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7111 fi
a0b9e27f 7112
1e6feb95 7113else
a0b9e27f 7114
1e6feb95
VZ
7115 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7116 if test "x$LINE" != x ; then
7117 eval "DEFAULT_$LINE"
7118 else
7119 no_cache=1
7120 fi
7121
7122 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
7123
7124fi
1e6feb95
VZ
7125
7126
7127 eval "$ac_cv_use_stattext"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 7133 echo "$ac_t""yes" 1>&6
1e6feb95 7134 else
a0b9e27f 7135 echo "$ac_t""no" 1>&6
1e6feb95 7136 fi
a0b9e27f 7137
1e6feb95 7138
5005acfe
VZ
7139 enablestring=
7140 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
521196a2 7141echo "configure:7142: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
7142 no_cache=0
7143 # Check whether --enable-statusbar or --disable-statusbar was given.
7144if test "${enable_statusbar+set}" = set; then
7145 enableval="$enable_statusbar"
a0b9e27f 7146
10f2d63a
VZ
7147 if test "$enableval" = yes; then
7148 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7149 else
7150 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7151 fi
a0b9e27f 7152
10f2d63a 7153else
a0b9e27f 7154
10f2d63a
VZ
7155 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7156 if test "x$LINE" != x ; then
7157 eval "DEFAULT_$LINE"
7158 else
7159 no_cache=1
7160 fi
7161
7162 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7163
7164fi
10f2d63a
VZ
7165
7166
7167 eval "$ac_cv_use_statusbar"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7173 echo "$ac_t""yes" 1>&6
10f2d63a 7174 else
a0b9e27f 7175 echo "$ac_t""no" 1>&6
10f2d63a 7176 fi
a0b9e27f 7177
10f2d63a 7178
5005acfe
VZ
7179 enablestring=
7180 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
521196a2 7181echo "configure:7182: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7182 no_cache=0
7183 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7184if test "${enable_tabdialog+set}" = set; then
7185 enableval="$enable_tabdialog"
a0b9e27f 7186
10f2d63a
VZ
7187 if test "$enableval" = yes; then
7188 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7189 else
7190 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7191 fi
a0b9e27f 7192
10f2d63a 7193else
a0b9e27f 7194
10f2d63a
VZ
7195 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7196 if test "x$LINE" != x ; then
7197 eval "DEFAULT_$LINE"
7198 else
7199 no_cache=1
7200 fi
7201
7202 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7203
7204fi
10f2d63a
VZ
7205
7206
7207 eval "$ac_cv_use_tabdialog"
7208 if test "$no_cache" != 1; then
7209 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7210 fi
7211
7212 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7213 echo "$ac_t""yes" 1>&6
10f2d63a 7214 else
a0b9e27f 7215 echo "$ac_t""no" 1>&6
10f2d63a 7216 fi
a0b9e27f 7217
10f2d63a 7218
5005acfe
VZ
7219 enablestring=
7220 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
521196a2 7221echo "configure:7222: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7222 no_cache=0
7223 # Check whether --enable-textctrl or --disable-textctrl was given.
7224if test "${enable_textctrl+set}" = set; then
7225 enableval="$enable_textctrl"
a0b9e27f 7226
1e6feb95
VZ
7227 if test "$enableval" = yes; then
7228 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7229 else
7230 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7231 fi
a0b9e27f 7232
1e6feb95 7233else
a0b9e27f 7234
1e6feb95
VZ
7235 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7243
7244fi
1e6feb95
VZ
7245
7246
7247 eval "$ac_cv_use_textctrl"
7248 if test "$no_cache" != 1; then
7249 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7250 fi
7251
7252 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7253 echo "$ac_t""yes" 1>&6
1e6feb95 7254 else
a0b9e27f 7255 echo "$ac_t""no" 1>&6
1e6feb95 7256 fi
a0b9e27f 7257
1e6feb95 7258
5005acfe
VZ
7259 enablestring=
7260 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
521196a2 7261echo "configure:7262: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7262 no_cache=0
7263 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7264if test "${enable_togglebtn+set}" = set; then
7265 enableval="$enable_togglebtn"
a0b9e27f 7266
1db8dc4a
VZ
7267 if test "$enableval" = yes; then
7268 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7269 else
7270 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7271 fi
a0b9e27f 7272
1db8dc4a 7273else
a0b9e27f 7274
1db8dc4a
VZ
7275 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7276 if test "x$LINE" != x ; then
7277 eval "DEFAULT_$LINE"
7278 else
7279 no_cache=1
7280 fi
7281
7282 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7283
7284fi
1db8dc4a
VZ
7285
7286
7287 eval "$ac_cv_use_togglebtn"
7288 if test "$no_cache" != 1; then
7289 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7290 fi
7291
7292 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7293 echo "$ac_t""yes" 1>&6
1db8dc4a 7294 else
a0b9e27f 7295 echo "$ac_t""no" 1>&6
1db8dc4a 7296 fi
a0b9e27f 7297
1db8dc4a 7298
5005acfe
VZ
7299 enablestring=
7300 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
521196a2 7301echo "configure:7302: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7302 no_cache=0
7303 # Check whether --enable-toolbar or --disable-toolbar was given.
7304if test "${enable_toolbar+set}" = set; then
7305 enableval="$enable_toolbar"
a0b9e27f 7306
10f2d63a
VZ
7307 if test "$enableval" = yes; then
7308 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7309 else
7310 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7311 fi
a0b9e27f 7312
10f2d63a 7313else
a0b9e27f 7314
10f2d63a
VZ
7315 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7316 if test "x$LINE" != x ; then
7317 eval "DEFAULT_$LINE"
7318 else
7319 no_cache=1
7320 fi
7321
7322 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7323
7324fi
10f2d63a
VZ
7325
7326
7327 eval "$ac_cv_use_toolbar"
7328 if test "$no_cache" != 1; then
7329 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7330 fi
7331
7332 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7333 echo "$ac_t""yes" 1>&6
10f2d63a 7334 else
a0b9e27f 7335 echo "$ac_t""no" 1>&6
10f2d63a 7336 fi
a0b9e27f 7337
10f2d63a 7338
5005acfe
VZ
7339 enablestring=
7340 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
521196a2 7341echo "configure:7342: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7342 no_cache=0
7343 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7344if test "${enable_tbarnative+set}" = set; then
7345 enableval="$enable_tbarnative"
a0b9e27f 7346
360d6699
VZ
7347 if test "$enableval" = yes; then
7348 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7349 else
7350 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7351 fi
a0b9e27f 7352
360d6699 7353else
a0b9e27f 7354
360d6699
VZ
7355 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7363
7364fi
360d6699
VZ
7365
7366
7367 eval "$ac_cv_use_tbarnative"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7373 echo "$ac_t""yes" 1>&6
360d6699 7374 else
a0b9e27f 7375 echo "$ac_t""no" 1>&6
360d6699 7376 fi
a0b9e27f 7377
360d6699 7378
5005acfe
VZ
7379 enablestring=
7380 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
521196a2 7381echo "configure:7382: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7382 no_cache=0
7383 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7384if test "${enable_tbarsmpl+set}" = set; then
7385 enableval="$enable_tbarsmpl"
a0b9e27f 7386
360d6699
VZ
7387 if test "$enableval" = yes; then
7388 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7389 else
7390 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7391 fi
a0b9e27f 7392
360d6699 7393else
a0b9e27f 7394
360d6699
VZ
7395 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7403
7404fi
360d6699
VZ
7405
7406
7407 eval "$ac_cv_use_tbarsmpl"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7413 echo "$ac_t""yes" 1>&6
360d6699 7414 else
a0b9e27f 7415 echo "$ac_t""no" 1>&6
360d6699 7416 fi
a0b9e27f 7417
360d6699 7418
5005acfe
VZ
7419 enablestring=
7420 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
521196a2 7421echo "configure:7422: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7422 no_cache=0
7423 # Check whether --enable-treectrl or --disable-treectrl was given.
7424if test "${enable_treectrl+set}" = set; then
7425 enableval="$enable_treectrl"
a0b9e27f 7426
10f2d63a
VZ
7427 if test "$enableval" = yes; then
7428 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7429 else
7430 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7431 fi
a0b9e27f 7432
10f2d63a 7433else
a0b9e27f 7434
10f2d63a
VZ
7435 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7443
7444fi
10f2d63a
VZ
7445
7446
1e6feb95
VZ
7447 eval "$ac_cv_use_treectrl"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7453 echo "$ac_t""yes" 1>&6
1e6feb95 7454 else
a0b9e27f 7455 echo "$ac_t""no" 1>&6
1e6feb95 7456 fi
a0b9e27f 7457
1e6feb95 7458
5005acfe
VZ
7459 enablestring=
7460 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
521196a2 7461echo "configure:7462: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7462 no_cache=0
7463 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7464if test "${enable_tipwindow+set}" = set; then
7465 enableval="$enable_tipwindow"
a0b9e27f 7466
9926e4a4
VZ
7467 if test "$enableval" = yes; then
7468 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7469 else
7470 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7471 fi
a0b9e27f 7472
9926e4a4 7473else
a0b9e27f 7474
9926e4a4
VZ
7475 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7476 if test "x$LINE" != x ; then
7477 eval "DEFAULT_$LINE"
7478 else
7479 no_cache=1
7480 fi
7481
7482 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7483
7484fi
9926e4a4
VZ
7485
7486
7487 eval "$ac_cv_use_tipwindow"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7493 echo "$ac_t""yes" 1>&6
9926e4a4 7494 else
a0b9e27f 7495 echo "$ac_t""no" 1>&6
9926e4a4 7496 fi
a0b9e27f 7497
9926e4a4 7498
5005acfe
VZ
7499 enablestring=
7500 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
521196a2 7501echo "configure:7502: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7502 no_cache=0
7503 # Check whether --enable-popupwin or --disable-popupwin was given.
7504if test "${enable_popupwin+set}" = set; then
7505 enableval="$enable_popupwin"
a0b9e27f 7506
9f41d601
RR
7507 if test "$enableval" = yes; then
7508 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7509 else
7510 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7511 fi
a0b9e27f 7512
9f41d601 7513else
a0b9e27f 7514
9f41d601
RR
7515 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7516 if test "x$LINE" != x ; then
7517 eval "DEFAULT_$LINE"
7518 else
7519 no_cache=1
7520 fi
7521
7522 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7523
7524fi
9f41d601
RR
7525
7526
7527 eval "$ac_cv_use_popupwin"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7533 echo "$ac_t""yes" 1>&6
9f41d601 7534 else
a0b9e27f 7535 echo "$ac_t""no" 1>&6
9f41d601 7536 fi
a0b9e27f 7537
52127426 7538
8284b0c5
MB
7539
7540
5005acfe
VZ
7541 enablestring=
7542 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
521196a2 7543echo "configure:7544: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7544 no_cache=0
7545 # Check whether --enable-commondlg or --disable-commondlg was given.
7546if test "${enable_commondlg+set}" = set; then
7547 enableval="$enable_commondlg"
a0b9e27f 7548
1e6feb95
VZ
7549 if test "$enableval" = yes; then
7550 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7551 else
7552 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7553 fi
a0b9e27f 7554
1e6feb95 7555else
a0b9e27f 7556
1e6feb95
VZ
7557 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7558 if test "x$LINE" != x ; then
7559 eval "DEFAULT_$LINE"
7560 else
7561 no_cache=1
7562 fi
7563
7564 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7565
7566fi
1e6feb95
VZ
7567
7568
7569 eval "$ac_cv_use_commondlg"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7575 echo "$ac_t""yes" 1>&6
1e6feb95 7576 else
a0b9e27f 7577 echo "$ac_t""no" 1>&6
1e6feb95 7578 fi
a0b9e27f 7579
1e6feb95 7580
5005acfe
VZ
7581 enablestring=
7582 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
521196a2 7583echo "configure:7584: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7584 no_cache=0
7585 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7586if test "${enable_choicedlg+set}" = set; then
7587 enableval="$enable_choicedlg"
a0b9e27f 7588
1e6feb95
VZ
7589 if test "$enableval" = yes; then
7590 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7591 else
7592 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7593 fi
a0b9e27f 7594
1e6feb95 7595else
a0b9e27f 7596
1e6feb95
VZ
7597 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7598 if test "x$LINE" != x ; then
7599 eval "DEFAULT_$LINE"
7600 else
7601 no_cache=1
7602 fi
7603
7604 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7605
7606fi
1e6feb95
VZ
7607
7608
7609 eval "$ac_cv_use_choicedlg"
7610 if test "$no_cache" != 1; then
7611 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7612 fi
7613
7614 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7615 echo "$ac_t""yes" 1>&6
1e6feb95 7616 else
a0b9e27f 7617 echo "$ac_t""no" 1>&6
1e6feb95 7618 fi
a0b9e27f 7619
1e6feb95 7620
5005acfe
VZ
7621 enablestring=
7622 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
521196a2 7623echo "configure:7624: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7624 no_cache=0
7625 # Check whether --enable-coldlg or --disable-coldlg was given.
7626if test "${enable_coldlg+set}" = set; then
7627 enableval="$enable_coldlg"
a0b9e27f 7628
1e6feb95
VZ
7629 if test "$enableval" = yes; then
7630 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7631 else
7632 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7633 fi
a0b9e27f 7634
1e6feb95 7635else
a0b9e27f 7636
1e6feb95
VZ
7637 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7645
7646fi
1e6feb95
VZ
7647
7648
7649 eval "$ac_cv_use_coldlg"
7650 if test "$no_cache" != 1; then
7651 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7652 fi
7653
7654 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7655 echo "$ac_t""yes" 1>&6
1e6feb95 7656 else
a0b9e27f 7657 echo "$ac_t""no" 1>&6
1e6feb95 7658 fi
a0b9e27f 7659
1e6feb95 7660
5005acfe
VZ
7661 enablestring=
7662 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
521196a2 7663echo "configure:7664: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7664 no_cache=0
7665 # Check whether --enable-filedlg or --disable-filedlg was given.
7666if test "${enable_filedlg+set}" = set; then
7667 enableval="$enable_filedlg"
a0b9e27f 7668
1e6feb95
VZ
7669 if test "$enableval" = yes; then
7670 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7671 else
7672 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7673 fi
a0b9e27f 7674
1e6feb95 7675else
a0b9e27f 7676
1e6feb95
VZ
7677 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7678 if test "x$LINE" != x ; then
7679 eval "DEFAULT_$LINE"
7680 else
7681 no_cache=1
7682 fi
7683
7684 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7685
7686fi
1e6feb95
VZ
7687
7688
7689 eval "$ac_cv_use_filedlg"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7695 echo "$ac_t""yes" 1>&6
1e6feb95 7696 else
a0b9e27f 7697 echo "$ac_t""no" 1>&6
1e6feb95 7698 fi
a0b9e27f 7699
1e6feb95 7700
5005acfe
VZ
7701 enablestring=
7702 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
521196a2 7703echo "configure:7704: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7704 no_cache=0
69d27ff7
MB
7705 # Check whether --enable-finddlg or --disable-finddlg was given.
7706if test "${enable_finddlg+set}" = set; then
7707 enableval="$enable_finddlg"
a0b9e27f 7708
8db37e06 7709 if test "$enableval" = yes; then
69d27ff7 7710 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7711 else
69d27ff7 7712 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7713 fi
a0b9e27f 7714
8db37e06 7715else
a0b9e27f 7716
8db37e06
VZ
7717 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7718 if test "x$LINE" != x ; then
7719 eval "DEFAULT_$LINE"
7720 else
7721 no_cache=1
7722 fi
7723
69d27ff7 7724 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7725
7726fi
8db37e06
VZ
7727
7728
69d27ff7 7729 eval "$ac_cv_use_finddlg"
8db37e06 7730 if test "$no_cache" != 1; then
69d27ff7 7731 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7732 fi
7733
7734 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7735 echo "$ac_t""yes" 1>&6
8db37e06 7736 else
a0b9e27f 7737 echo "$ac_t""no" 1>&6
8db37e06 7738 fi
a0b9e27f 7739
8db37e06 7740
5005acfe
VZ
7741 enablestring=
7742 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
521196a2 7743echo "configure:7744: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7744 no_cache=0
7745 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7746if test "${enable_fontdlg+set}" = set; then
7747 enableval="$enable_fontdlg"
a0b9e27f 7748
1e6feb95
VZ
7749 if test "$enableval" = yes; then
7750 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7751 else
7752 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7753 fi
a0b9e27f 7754
1e6feb95 7755else
a0b9e27f 7756
1e6feb95
VZ
7757 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7758 if test "x$LINE" != x ; then
7759 eval "DEFAULT_$LINE"
7760 else
7761 no_cache=1
7762 fi
7763
7764 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7765
7766fi
1e6feb95
VZ
7767
7768
7769 eval "$ac_cv_use_fontdlg"
7770 if test "$no_cache" != 1; then
7771 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7772 fi
7773
7774 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7775 echo "$ac_t""yes" 1>&6
1e6feb95 7776 else
a0b9e27f 7777 echo "$ac_t""no" 1>&6
1e6feb95 7778 fi
a0b9e27f 7779
1e6feb95 7780
5005acfe
VZ
7781 enablestring=
7782 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
521196a2 7783echo "configure:7784: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7784 no_cache=0
7785 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7786if test "${enable_dirdlg+set}" = set; then
7787 enableval="$enable_dirdlg"
a0b9e27f 7788
1e6feb95
VZ
7789 if test "$enableval" = yes; then
7790 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7791 else
7792 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7793 fi
a0b9e27f 7794
1e6feb95 7795else
a0b9e27f 7796
1e6feb95
VZ
7797 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7798 if test "x$LINE" != x ; then
7799 eval "DEFAULT_$LINE"
7800 else
7801 no_cache=1
7802 fi
7803
7804 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7805
7806fi
1e6feb95
VZ
7807
7808
7809 eval "$ac_cv_use_dirdlg"
10f2d63a 7810 if test "$no_cache" != 1; then
1e6feb95 7811 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7812 fi
7813
1e6feb95 7814 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7815 echo "$ac_t""yes" 1>&6
10f2d63a 7816 else
a0b9e27f 7817 echo "$ac_t""no" 1>&6
10f2d63a 7818 fi
a0b9e27f 7819
698dcdb6 7820
5005acfe
VZ
7821 enablestring=
7822 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
521196a2 7823echo "configure:7824: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7824 no_cache=0
1e6feb95
VZ
7825 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7826if test "${enable_msgdlg+set}" = set; then
7827 enableval="$enable_msgdlg"
a0b9e27f 7828
10f2d63a 7829 if test "$enableval" = yes; then
1e6feb95 7830 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7831 else
1e6feb95 7832 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7833 fi
a0b9e27f 7834
10f2d63a 7835else
a0b9e27f 7836
1e6feb95 7837 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7838 if test "x$LINE" != x ; then
7839 eval "DEFAULT_$LINE"
7840 else
7841 no_cache=1
7842 fi
7843
1e6feb95 7844 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7845
7846fi
10f2d63a
VZ
7847
7848
1e6feb95 7849 eval "$ac_cv_use_msgdlg"
10f2d63a 7850 if test "$no_cache" != 1; then
1e6feb95 7851 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7852 fi
7853
1e6feb95 7854 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7855 echo "$ac_t""yes" 1>&6
10f2d63a 7856 else
a0b9e27f 7857 echo "$ac_t""no" 1>&6
10f2d63a 7858 fi
a0b9e27f 7859
10f2d63a 7860
5005acfe
VZ
7861 enablestring=
7862 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
521196a2 7863echo "configure:7864: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7864 no_cache=0
1e6feb95
VZ
7865 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7866if test "${enable_numberdlg+set}" = set; then
7867 enableval="$enable_numberdlg"
a0b9e27f 7868
10f2d63a 7869 if test "$enableval" = yes; then
1e6feb95 7870 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7871 else
1e6feb95 7872 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7873 fi
a0b9e27f 7874
10f2d63a 7875else
a0b9e27f 7876
1e6feb95 7877 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7878 if test "x$LINE" != x ; then
7879 eval "DEFAULT_$LINE"
7880 else
7881 no_cache=1
7882 fi
7883
1e6feb95 7884 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7885
7886fi
10f2d63a
VZ
7887
7888
1e6feb95 7889 eval "$ac_cv_use_numberdlg"
10f2d63a 7890 if test "$no_cache" != 1; then
1e6feb95 7891 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7892 fi
7893
1e6feb95 7894 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7895 echo "$ac_t""yes" 1>&6
10f2d63a 7896 else
a0b9e27f 7897 echo "$ac_t""no" 1>&6
10f2d63a 7898 fi
a0b9e27f 7899
10f2d63a 7900
5005acfe
VZ
7901 enablestring=
7902 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
521196a2 7903echo "configure:7904: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7904 no_cache=0
7905 # Check whether --enable-splash or --disable-splash was given.
7906if test "${enable_splash+set}" = set; then
7907 enableval="$enable_splash"
a0b9e27f 7908
cbca9943
VZ
7909 if test "$enableval" = yes; then
7910 ac_cv_use_splash='wxUSE_SPLASH=yes'
7911 else
7912 ac_cv_use_splash='wxUSE_SPLASH=no'
7913 fi
a0b9e27f 7914
cbca9943 7915else
a0b9e27f 7916
cbca9943
VZ
7917 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7918 if test "x$LINE" != x ; then
7919 eval "DEFAULT_$LINE"
7920 else
7921 no_cache=1
7922 fi
7923
7924 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7925
7926fi
cbca9943
VZ
7927
7928
7929 eval "$ac_cv_use_splash"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7935 echo "$ac_t""yes" 1>&6
cbca9943 7936 else
a0b9e27f 7937 echo "$ac_t""no" 1>&6
cbca9943 7938 fi
a0b9e27f 7939
cbca9943 7940
5005acfe
VZ
7941 enablestring=
7942 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
521196a2 7943echo "configure:7944: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7944 no_cache=0
7945 # Check whether --enable-textdlg or --disable-textdlg was given.
7946if test "${enable_textdlg+set}" = set; then
7947 enableval="$enable_textdlg"
a0b9e27f 7948
10f2d63a
VZ
7949 if test "$enableval" = yes; then
7950 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7951 else
7952 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7953 fi
a0b9e27f 7954
10f2d63a 7955else
a0b9e27f 7956
10f2d63a
VZ
7957 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7958 if test "x$LINE" != x ; then
7959 eval "DEFAULT_$LINE"
7960 else
7961 no_cache=1
7962 fi
7963
7964 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7965
7966fi
10f2d63a
VZ
7967
7968
7969 eval "$ac_cv_use_textdlg"
7970 if test "$no_cache" != 1; then
7971 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7972 fi
7973
7974 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7975 echo "$ac_t""yes" 1>&6
10f2d63a 7976 else
a0b9e27f 7977 echo "$ac_t""no" 1>&6
10f2d63a 7978 fi
a0b9e27f 7979
10f2d63a 7980
5005acfe
VZ
7981 enablestring=
7982 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
521196a2 7983echo "configure:7984: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7984 no_cache=0
7985 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7986if test "${enable_tipdlg+set}" = set; then
7987 enableval="$enable_tipdlg"
a0b9e27f 7988
10f2d63a
VZ
7989 if test "$enableval" = yes; then
7990 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7991 else
7992 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7993 fi
a0b9e27f 7994
10f2d63a 7995else
a0b9e27f 7996
10f2d63a
VZ
7997 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7998 if test "x$LINE" != x ; then
7999 eval "DEFAULT_$LINE"
8000 else
8001 no_cache=1
8002 fi
8003
8004 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
8005
8006fi
10f2d63a
VZ
8007
8008
8009 eval "$ac_cv_use_tipdlg"
8010 if test "$no_cache" != 1; then
8011 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8012 fi
8013
8014 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 8015 echo "$ac_t""yes" 1>&6
10f2d63a 8016 else
a0b9e27f 8017 echo "$ac_t""no" 1>&6
10f2d63a 8018 fi
a0b9e27f 8019
10f2d63a 8020
5005acfe
VZ
8021 enablestring=
8022 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
521196a2 8023echo "configure:8024: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
8024 no_cache=0
8025 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8026if test "${enable_progressdlg+set}" = set; then
8027 enableval="$enable_progressdlg"
a0b9e27f 8028
10f2d63a
VZ
8029 if test "$enableval" = yes; then
8030 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8031 else
8032 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8033 fi
a0b9e27f 8034
10f2d63a 8035else
a0b9e27f 8036
10f2d63a
VZ
8037 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8038 if test "x$LINE" != x ; then
8039 eval "DEFAULT_$LINE"
8040 else
8041 no_cache=1
8042 fi
8043
8044 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
8045
8046fi
10f2d63a
VZ
8047
8048
8049 eval "$ac_cv_use_progressdlg"
8050 if test "$no_cache" != 1; then
8051 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8052 fi
8053
8054 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 8055 echo "$ac_t""yes" 1>&6
10f2d63a 8056 else
a0b9e27f 8057 echo "$ac_t""no" 1>&6
10f2d63a 8058 fi
a0b9e27f 8059
10f2d63a 8060
5005acfe
VZ
8061 enablestring=
8062 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
521196a2 8063echo "configure:8064: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
8064 no_cache=0
8065 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8066if test "${enable_wizarddlg+set}" = set; then
8067 enableval="$enable_wizarddlg"
a0b9e27f 8068
b1f5d087
VZ
8069 if test "$enableval" = yes; then
8070 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8071 else
8072 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8073 fi
a0b9e27f 8074
b1f5d087 8075else
a0b9e27f 8076
b1f5d087
VZ
8077 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
8085
8086fi
b1f5d087
VZ
8087
8088
8089 eval "$ac_cv_use_wizarddlg"
8090 if test "$no_cache" != 1; then
8091 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8092 fi
8093
8094 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 8095 echo "$ac_t""yes" 1>&6
b1f5d087 8096 else
a0b9e27f 8097 echo "$ac_t""no" 1>&6
b1f5d087 8098 fi
a0b9e27f 8099
8284b0c5
MB
8100
8101
52127426 8102
5005acfe
VZ
8103 enablestring=
8104 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
521196a2 8105echo "configure:8106: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
8106 no_cache=0
8107 # Check whether --enable-menus or --disable-menus was given.
8108if test "${enable_menus+set}" = set; then
8109 enableval="$enable_menus"
a0b9e27f 8110
1e6feb95
VZ
8111 if test "$enableval" = yes; then
8112 ac_cv_use_menus='wxUSE_MENUS=yes'
8113 else
8114 ac_cv_use_menus='wxUSE_MENUS=no'
8115 fi
a0b9e27f 8116
1e6feb95 8117else
a0b9e27f 8118
1e6feb95
VZ
8119 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8120 if test "x$LINE" != x ; then
8121 eval "DEFAULT_$LINE"
8122 else
8123 no_cache=1
8124 fi
8125
8126 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
8127
8128fi
1e6feb95
VZ
8129
8130
8131 eval "$ac_cv_use_menus"
8132 if test "$no_cache" != 1; then
8133 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8134 fi
8135
8136 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 8137 echo "$ac_t""yes" 1>&6
1e6feb95 8138 else
a0b9e27f 8139 echo "$ac_t""no" 1>&6
1e6feb95 8140 fi
a0b9e27f 8141
1e6feb95 8142
5005acfe
VZ
8143 enablestring=
8144 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
521196a2 8145echo "configure:8146: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
8146 no_cache=0
8147 # Check whether --enable-miniframe or --disable-miniframe was given.
8148if test "${enable_miniframe+set}" = set; then
8149 enableval="$enable_miniframe"
a0b9e27f 8150
10f2d63a
VZ
8151 if test "$enableval" = yes; then
8152 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8153 else
8154 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8155 fi
a0b9e27f 8156
10f2d63a 8157else
a0b9e27f 8158
10f2d63a
VZ
8159 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8160 if test "x$LINE" != x ; then
8161 eval "DEFAULT_$LINE"
8162 else
8163 no_cache=1
8164 fi
8165
8166 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8167
8168fi
10f2d63a
VZ
8169
8170
8171 eval "$ac_cv_use_miniframe"
8172 if test "$no_cache" != 1; then
8173 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8174 fi
8175
8176 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8177 echo "$ac_t""yes" 1>&6
10f2d63a 8178 else
a0b9e27f 8179 echo "$ac_t""no" 1>&6
10f2d63a 8180 fi
a0b9e27f 8181
10f2d63a 8182
5005acfe
VZ
8183 enablestring=
8184 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
521196a2 8185echo "configure:8186: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8186 no_cache=0
8187 # Check whether --enable-tooltips or --disable-tooltips was given.
8188if test "${enable_tooltips+set}" = set; then
8189 enableval="$enable_tooltips"
a0b9e27f 8190
10f2d63a
VZ
8191 if test "$enableval" = yes; then
8192 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8193 else
8194 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8195 fi
a0b9e27f 8196
10f2d63a 8197else
a0b9e27f 8198
10f2d63a
VZ
8199 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8200 if test "x$LINE" != x ; then
8201 eval "DEFAULT_$LINE"
8202 else
8203 no_cache=1
8204 fi
8205
8206 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8207
8208fi
10f2d63a
VZ
8209
8210
8211 eval "$ac_cv_use_tooltips"
8212 if test "$no_cache" != 1; then
8213 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8214 fi
8215
8216 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8217 echo "$ac_t""yes" 1>&6
10f2d63a 8218 else
a0b9e27f 8219 echo "$ac_t""no" 1>&6
10f2d63a 8220 fi
a0b9e27f 8221
10f2d63a 8222
5005acfe
VZ
8223 enablestring=
8224 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
521196a2 8225echo "configure:8226: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8226 no_cache=0
8227 # Check whether --enable-splines or --disable-splines was given.
8228if test "${enable_splines+set}" = set; then
8229 enableval="$enable_splines"
a0b9e27f 8230
10f2d63a
VZ
8231 if test "$enableval" = yes; then
8232 ac_cv_use_splines='wxUSE_SPLINES=yes'
8233 else
8234 ac_cv_use_splines='wxUSE_SPLINES=no'
8235 fi
a0b9e27f 8236
10f2d63a 8237else
a0b9e27f 8238
10f2d63a
VZ
8239 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8240 if test "x$LINE" != x ; then
8241 eval "DEFAULT_$LINE"
8242 else
8243 no_cache=1
8244 fi
8245
8246 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8247
8248fi
10f2d63a
VZ
8249
8250
8251 eval "$ac_cv_use_splines"
8252 if test "$no_cache" != 1; then
8253 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8254 fi
8255
8256 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8257 echo "$ac_t""yes" 1>&6
10f2d63a 8258 else
a0b9e27f 8259 echo "$ac_t""no" 1>&6
10f2d63a 8260 fi
a0b9e27f 8261
10f2d63a 8262
5005acfe
VZ
8263 enablestring=
8264 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
521196a2 8265echo "configure:8266: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8266 no_cache=0
8267 # Check whether --enable-validators or --disable-validators was given.
8268if test "${enable_validators+set}" = set; then
8269 enableval="$enable_validators"
a0b9e27f 8270
10f2d63a
VZ
8271 if test "$enableval" = yes; then
8272 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8273 else
8274 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8275 fi
a0b9e27f 8276
10f2d63a 8277else
a0b9e27f 8278
10f2d63a
VZ
8279 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8280 if test "x$LINE" != x ; then
8281 eval "DEFAULT_$LINE"
8282 else
8283 no_cache=1
8284 fi
8285
8286 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8287
8288fi
10f2d63a
VZ
8289
8290
8291 eval "$ac_cv_use_validators"
8292 if test "$no_cache" != 1; then
8293 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8294 fi
8295
8296 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8297 echo "$ac_t""yes" 1>&6
10f2d63a 8298 else
a0b9e27f 8299 echo "$ac_t""no" 1>&6
10f2d63a 8300 fi
a0b9e27f 8301
10f2d63a 8302
5005acfe
VZ
8303 enablestring=
8304 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
521196a2 8305echo "configure:8306: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8306 no_cache=0
8307 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8308if test "${enable_busyinfo+set}" = set; then
8309 enableval="$enable_busyinfo"
a0b9e27f 8310
10f2d63a
VZ
8311 if test "$enableval" = yes; then
8312 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8313 else
8314 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8315 fi
a0b9e27f 8316
10f2d63a 8317else
a0b9e27f 8318
10f2d63a
VZ
8319 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8327
8328fi
10f2d63a
VZ
8329
8330
8331 eval "$ac_cv_use_busyinfo"
8332 if test "$no_cache" != 1; then
8333 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8334 fi
8335
8336 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8337 echo "$ac_t""yes" 1>&6
10f2d63a 8338 else
a0b9e27f 8339 echo "$ac_t""no" 1>&6
10f2d63a 8340 fi
a0b9e27f 8341
10f2d63a 8342
5005acfe
VZ
8343 enablestring=
8344 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
521196a2 8345echo "configure:8346: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8346 no_cache=0
8347 # Check whether --enable-joystick or --disable-joystick was given.
8348if test "${enable_joystick+set}" = set; then
8349 enableval="$enable_joystick"
a0b9e27f 8350
f6bcfd97
BP
8351 if test "$enableval" = yes; then
8352 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8353 else
8354 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8355 fi
a0b9e27f 8356
f6bcfd97 8357else
a0b9e27f 8358
f6bcfd97
BP
8359 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8360 if test "x$LINE" != x ; then
8361 eval "DEFAULT_$LINE"
8362 else
8363 no_cache=1
8364 fi
8365
8366 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8367
8368fi
f6bcfd97
BP
8369
8370
8371 eval "$ac_cv_use_joystick"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8377 echo "$ac_t""yes" 1>&6
f6bcfd97 8378 else
a0b9e27f 8379 echo "$ac_t""no" 1>&6
f6bcfd97 8380 fi
a0b9e27f 8381
698dcdb6 8382
5005acfe
VZ
8383 enablestring=
8384 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
521196a2 8385echo "configure:8386: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8386 no_cache=0
8387 # Check whether --enable-metafile or --disable-metafile was given.
8388if test "${enable_metafile+set}" = set; then
8389 enableval="$enable_metafile"
a0b9e27f 8390
1e6feb95
VZ
8391 if test "$enableval" = yes; then
8392 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8393 else
8394 ac_cv_use_metafile='wxUSE_METAFILE=no'
8395 fi
a0b9e27f 8396
1e6feb95 8397else
a0b9e27f 8398
1e6feb95
VZ
8399 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8400 if test "x$LINE" != x ; then
8401 eval "DEFAULT_$LINE"
8402 else
8403 no_cache=1
8404 fi
8405
8406 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8407
8408fi
1e6feb95
VZ
8409
8410
8411 eval "$ac_cv_use_metafile"
8412 if test "$no_cache" != 1; then
8413 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8414 fi
8415
8416 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8417 echo "$ac_t""yes" 1>&6
1e6feb95 8418 else
a0b9e27f 8419 echo "$ac_t""no" 1>&6
1e6feb95 8420 fi
a0b9e27f 8421
1e6feb95 8422
5005acfe
VZ
8423 enablestring=
8424 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
521196a2 8425echo "configure:8426: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8426 no_cache=0
8427 # Check whether --enable-dragimage or --disable-dragimage was given.
8428if test "${enable_dragimage+set}" = set; then
8429 enableval="$enable_dragimage"
a0b9e27f 8430
24fd6d87
VZ
8431 if test "$enableval" = yes; then
8432 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8433 else
8434 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8435 fi
a0b9e27f 8436
24fd6d87 8437else
a0b9e27f 8438
24fd6d87
VZ
8439 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8440 if test "x$LINE" != x ; then
8441 eval "DEFAULT_$LINE"
8442 else
8443 no_cache=1
8444 fi
8445
8446 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8447
8448fi
24fd6d87
VZ
8449
8450
8451 eval "$ac_cv_use_dragimage"
8452 if test "$no_cache" != 1; then
8453 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8454 fi
8455
8456 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8457 echo "$ac_t""yes" 1>&6
24fd6d87 8458 else
a0b9e27f 8459 echo "$ac_t""no" 1>&6
24fd6d87 8460 fi
a0b9e27f 8461
52127426 8462
8284b0c5
MB
8463
8464
5005acfe
VZ
8465 enablestring=
8466 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
521196a2 8467echo "configure:8468: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8468 no_cache=0
8469 # Check whether --enable-palette or --disable-palette was given.
8470if test "${enable_palette+set}" = set; then
8471 enableval="$enable_palette"
a0b9e27f 8472
edae8572
VZ
8473 if test "$enableval" = yes; then
8474 ac_cv_use_palette='wxUSE_PALETTE=yes'
8475 else
8476 ac_cv_use_palette='wxUSE_PALETTE=no'
8477 fi
a0b9e27f 8478
edae8572 8479else
a0b9e27f 8480
edae8572
VZ
8481 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8482 if test "x$LINE" != x ; then
8483 eval "DEFAULT_$LINE"
8484 else
8485 no_cache=1
8486 fi
8487
8488 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8489
8490fi
edae8572
VZ
8491
8492
8493 eval "$ac_cv_use_palette"
8494 if test "$no_cache" != 1; then
8495 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8496 fi
8497
8498 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8499 echo "$ac_t""yes" 1>&6
edae8572 8500 else
a0b9e27f 8501 echo "$ac_t""no" 1>&6
edae8572 8502 fi
a0b9e27f 8503
edae8572 8504
5005acfe
VZ
8505 enablestring=
8506 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
521196a2 8507echo "configure:8508: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8508 no_cache=0
8509 # Check whether --enable-image or --disable-image was given.
8510if test "${enable_image+set}" = set; then
8511 enableval="$enable_image"
a0b9e27f 8512
0046ff7c
VS
8513 if test "$enableval" = yes; then
8514 ac_cv_use_image='wxUSE_IMAGE=yes'
8515 else
8516 ac_cv_use_image='wxUSE_IMAGE=no'
8517 fi
a0b9e27f 8518
0046ff7c 8519else
a0b9e27f 8520
0046ff7c
VS
8521 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8522 if test "x$LINE" != x ; then
8523 eval "DEFAULT_$LINE"
8524 else
8525 no_cache=1
8526 fi
8527
8528 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8529
8530fi
0046ff7c
VS
8531
8532
8533 eval "$ac_cv_use_image"
8534 if test "$no_cache" != 1; then
8535 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8536 fi
8537
8538 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8539 echo "$ac_t""yes" 1>&6
0046ff7c 8540 else
a0b9e27f 8541 echo "$ac_t""no" 1>&6
0046ff7c 8542 fi
a0b9e27f 8543
0046ff7c 8544
5005acfe
VZ
8545 enablestring=
8546 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
521196a2 8547echo "configure:8548: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8548 no_cache=0
8549 # Check whether --enable-gif or --disable-gif was given.
8550if test "${enable_gif+set}" = set; then
8551 enableval="$enable_gif"
a0b9e27f 8552
10f2d63a
VZ
8553 if test "$enableval" = yes; then
8554 ac_cv_use_gif='wxUSE_GIF=yes'
8555 else
8556 ac_cv_use_gif='wxUSE_GIF=no'
8557 fi
a0b9e27f 8558
10f2d63a 8559else
a0b9e27f 8560
10f2d63a
VZ
8561 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8562 if test "x$LINE" != x ; then
8563 eval "DEFAULT_$LINE"
8564 else
8565 no_cache=1
8566 fi
8567
8568 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8569
8570fi
10f2d63a
VZ
8571
8572
8573 eval "$ac_cv_use_gif"
8574 if test "$no_cache" != 1; then
8575 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8576 fi
8577
8578 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8579 echo "$ac_t""yes" 1>&6
10f2d63a 8580 else
a0b9e27f 8581 echo "$ac_t""no" 1>&6
10f2d63a 8582 fi
a0b9e27f 8583
10f2d63a 8584
5005acfe
VZ
8585 enablestring=
8586 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
521196a2 8587echo "configure:8588: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8588 no_cache=0
8589 # Check whether --enable-pcx or --disable-pcx was given.
8590if test "${enable_pcx+set}" = set; then
8591 enableval="$enable_pcx"
a0b9e27f 8592
10f2d63a
VZ
8593 if test "$enableval" = yes; then
8594 ac_cv_use_pcx='wxUSE_PCX=yes'
8595 else
8596 ac_cv_use_pcx='wxUSE_PCX=no'
8597 fi
a0b9e27f 8598
10f2d63a 8599else
a0b9e27f 8600
10f2d63a
VZ
8601 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8602 if test "x$LINE" != x ; then
8603 eval "DEFAULT_$LINE"
8604 else
8605 no_cache=1
8606 fi
8607
8608 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8609
8610fi
10f2d63a
VZ
8611
8612
8613 eval "$ac_cv_use_pcx"
8614 if test "$no_cache" != 1; then
8615 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8616 fi
8617
8618 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8619 echo "$ac_t""yes" 1>&6
10f2d63a 8620 else
a0b9e27f 8621 echo "$ac_t""no" 1>&6
10f2d63a 8622 fi
a0b9e27f 8623
10f2d63a 8624
5005acfe
VZ
8625 enablestring=
8626 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
521196a2 8627echo "configure:8628: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8628 no_cache=0
8629 # Check whether --enable-iff or --disable-iff was given.
8630if test "${enable_iff+set}" = set; then
8631 enableval="$enable_iff"
a0b9e27f 8632
4b6b4dfc
RR
8633 if test "$enableval" = yes; then
8634 ac_cv_use_iff='wxUSE_IFF=yes'
8635 else
8636 ac_cv_use_iff='wxUSE_IFF=no'
8637 fi
a0b9e27f 8638
4b6b4dfc 8639else
a0b9e27f 8640
4b6b4dfc
RR
8641 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8649
8650fi
4b6b4dfc
RR
8651
8652
8653 eval "$ac_cv_use_iff"
8654 if test "$no_cache" != 1; then
8655 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8656 fi
8657
8658 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8659 echo "$ac_t""yes" 1>&6
4b6b4dfc 8660 else
a0b9e27f 8661 echo "$ac_t""no" 1>&6
4b6b4dfc 8662 fi
a0b9e27f 8663
4b6b4dfc 8664
5005acfe
VZ
8665 enablestring=
8666 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
521196a2 8667echo "configure:8668: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8668 no_cache=0
8669 # Check whether --enable-pnm or --disable-pnm was given.
8670if test "${enable_pnm+set}" = set; then
8671 enableval="$enable_pnm"
a0b9e27f 8672
10f2d63a
VZ
8673 if test "$enableval" = yes; then
8674 ac_cv_use_pnm='wxUSE_PNM=yes'
8675 else
8676 ac_cv_use_pnm='wxUSE_PNM=no'
8677 fi
a0b9e27f 8678
10f2d63a 8679else
a0b9e27f 8680
10f2d63a
VZ
8681 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8682 if test "x$LINE" != x ; then
8683 eval "DEFAULT_$LINE"
8684 else
8685 no_cache=1
8686 fi
8687
8688 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8689
8690fi
10f2d63a
VZ
8691
8692
8693 eval "$ac_cv_use_pnm"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8699 echo "$ac_t""yes" 1>&6
10f2d63a 8700 else
a0b9e27f 8701 echo "$ac_t""no" 1>&6
10f2d63a 8702 fi
a0b9e27f 8703
10f2d63a 8704
5005acfe
VZ
8705 enablestring=
8706 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
521196a2 8707echo "configure:8708: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8708 no_cache=0
69d27ff7
MB
8709 # Check whether --enable-xpm or --disable-xpm was given.
8710if test "${enable_xpm+set}" = set; then
8711 enableval="$enable_xpm"
a0b9e27f 8712
0046ff7c 8713 if test "$enableval" = yes; then
69d27ff7 8714 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8715 else
69d27ff7 8716 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8717 fi
a0b9e27f 8718
0046ff7c 8719else
a0b9e27f 8720
0046ff7c
VS
8721 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8722 if test "x$LINE" != x ; then
8723 eval "DEFAULT_$LINE"
8724 else
8725 no_cache=1
8726 fi
8727
69d27ff7 8728 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8729
8730fi
0046ff7c
VS
8731
8732
69d27ff7 8733 eval "$ac_cv_use_xpm"
0046ff7c 8734 if test "$no_cache" != 1; then
69d27ff7 8735 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8736 fi
8737
8738 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8739 echo "$ac_t""yes" 1>&6
0046ff7c 8740 else
a0b9e27f 8741 echo "$ac_t""no" 1>&6
0046ff7c 8742 fi
a0b9e27f 8743
0046ff7c 8744
5005acfe
VZ
8745 enablestring=
8746 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
521196a2 8747echo "configure:8748: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8748 no_cache=0
c7206e64
VS
8749 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8750if test "${enable_ico_cur+set}" = set; then
8751 enableval="$enable_ico_cur"
a0b9e27f 8752
658974ae 8753 if test "$enableval" = yes; then
c7206e64 8754 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8755 else
c7206e64 8756 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8757 fi
a0b9e27f 8758
658974ae 8759else
a0b9e27f 8760
658974ae
VS
8761 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8762 if test "x$LINE" != x ; then
8763 eval "DEFAULT_$LINE"
8764 else
8765 no_cache=1
8766 fi
8767
c7206e64 8768 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8769
8770fi
658974ae
VS
8771
8772
c7206e64 8773 eval "$ac_cv_use_ico_cur"
658974ae 8774 if test "$no_cache" != 1; then
c7206e64 8775 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8776 fi
8777
8778 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8779 echo "$ac_t""yes" 1>&6
658974ae 8780 else
a0b9e27f 8781 echo "$ac_t""no" 1>&6
658974ae 8782 fi
a0b9e27f 8783
658974ae 8784
b12915c1
VZ
8785fi
8786
d558c907
VS
8787case "${host}" in
8788 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8789 PATH_IFS=';'
8790 LEX_STEM="lexyy"
d558c907
VS
8791 ;;
8792 *)
8793 PATH_IFS=':'
8794 LEX_STEM="lex.yy"
8795 ;;
8796esac
8797
8284b0c5
MB
8798
8799
10f2d63a
VZ
8800 echo "saving argument cache $wx_arg_cache_file"
8801 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8802
52127426 8803
8284b0c5 8804
a0b9e27f 8805echo $ac_n "checking for toolkit""... $ac_c" 1>&6
521196a2 8806echo "configure:8807: checking for toolkit" >&5
89e6bf6d
VZ
8807
8808# In Wine, we need to default to MSW, not GTK or MOTIF
8809if test "$wxUSE_WINE" = "yes"; then
8810 DEFAULT_DEFAULT_wxUSE_GTK=0
8811 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8812 DEFAULT_DEFAULT_wxUSE_MSW=1
8813fi
10f2d63a
VZ
8814
8815if test "$wxUSE_GUI" = "yes"; then
8816
3a922bb4 8817 if test "$USE_BEOS" = 1; then
a0b9e27f 8818 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8819 fi
b12915c1 8820
3a922bb4
RL
8821 if test "$TOOLKIT_GIVEN" = 1; then
8822 for toolkit in `echo $ALL_TOOLKITS`; do
8823 var=wxUSE_$toolkit
8824 eval "value=\$${var}"
8825 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8826 done
10f2d63a 8827 else
3a922bb4
RL
8828 for toolkit in `echo $ALL_TOOLKITS`; do
8829 if test "$has_toolkit_in_cache" != 1; then
8830 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8831 else
8832 var=DEFAULT_wxUSE_$toolkit
8833 fi
8834 eval "wxUSE_$toolkit=\$${var}"
8835 done
10f2d63a 8836 fi
10f2d63a 8837
3a922bb4 8838 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
89e6bf6d 8839 + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8840
d558c907 8841 case "${host}" in
6fa882bd 8842 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8843 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8844 esac
10f2d63a 8845
3a922bb4
RL
8846 case "$NUM_TOOLKITS" in
8847 1)
8848 ;;
8849 0)
a0b9e27f 8850 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8851 ;;
8852 *)
a0b9e27f 8853 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8854 esac
10f2d63a 8855
3a922bb4
RL
8856 for toolkit in `echo $ALL_TOOLKITS`; do
8857 var=wxUSE_$toolkit
8858 eval "value=\$${var}"
8859 if test "x$value" != x; then
8860 cache_var=CACHE_$toolkit
8861 eval "cache=\$${cache_var}"
8862 if test "$cache" = 1; then
8863 echo "$var=$value" >> ${wx_arg_cache_file}
8864 fi
8865 if test "$value" = 1; then
8866 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8867 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8868 fi
8869 fi
8870 done
10f2d63a 8871else
a0b9e27f 8872 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8873fi
8874
43d99b6d
VS
8875wants_win32=0
8876doesnt_want_win32=0
17234b26
MB
8877case "${host}" in
8878 *-*-cygwin*)
8879 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8880 wants_win32=1
8881 else
8882 doesnt_want_win32=1
17234b26
MB
8883 fi
8884 ;;
8885 *-*-mingw*)
43d99b6d 8886 wants_win32=1
17234b26
MB
8887 ;;
8888esac
8889
89e6bf6d
VZ
8890if test "$wxUSE_WINE" = "yes"; then
8891 wants_win32=1
8892 CC=winegcc
8893 CXX=wineg++
8894 RESCOMP=wrc
8895fi
8896
43d99b6d 8897if test "$wants_win32" = 1 ; then
17234b26
MB
8898 USE_UNIX=0
8899 USE_WIN32=1
a0b9e27f 8900 cat >> confdefs.h <<\EOF
17234b26 8901#define __WIN32__ 1
a0b9e27f 8902EOF
17234b26 8903
a0b9e27f 8904 cat >> confdefs.h <<\EOF
17234b26 8905#define __WIN95__ 1
a0b9e27f 8906EOF
17234b26 8907
a0b9e27f 8908 cat >> confdefs.h <<\EOF
17234b26 8909#define __WINDOWS__ 1
a0b9e27f 8910EOF
17234b26 8911
a0b9e27f 8912 cat >> confdefs.h <<\EOF
17234b26 8913#define __GNUWIN32__ 1
a0b9e27f 8914EOF
17234b26 8915
a0b9e27f 8916 cat >> confdefs.h <<\EOF
17234b26 8917#define STRICT 1
a0b9e27f 8918EOF
17234b26 8919
a0b9e27f 8920 cat >> confdefs.h <<\EOF
17234b26 8921#define WINVER 0x0400
a0b9e27f 8922EOF
17234b26 8923
43d99b6d
VS
8924fi
8925if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8926 USE_UNIX=1
8927 USE_WIN32=0
8928fi
8929
8930if test "$USE_UNIX" = 1 ; then
8931 wxUSE_UNIX=yes
a0b9e27f 8932 cat >> confdefs.h <<\EOF
17234b26 8933#define __UNIX__ 1
a0b9e27f 8934EOF
17234b26
MB
8935
8936fi
8937
8284b0c5 8938
a0b9e27f 8939cat > confcache <<\EOF
10f2d63a
VZ
8940# This file is a shell script that caches the results of configure
8941# tests run on this system so they can be shared between configure
a0b9e27f
MB
8942# scripts and configure runs. It is not useful on other systems.
8943# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8944#
a0b9e27f
MB
8945# By default, configure uses ./config.cache as the cache file,
8946# creating it if it does not exist already. You can give configure
8947# the --cache-file=FILE option to use a different cache file; that is
8948# what configure does when it calls configure scripts in
8949# subdirectories, so they share the cache.
8950# Giving --cache-file=/dev/null disables caching, for debugging configure.
8951# config.status only pays attention to the cache file if you give it the
8952# --recheck option to rerun configure.
10f2d63a 8953#
a0b9e27f 8954EOF
10f2d63a
VZ
8955# The following way of writing the cache mishandles newlines in values,
8956# but we know of no workaround that is simple, portable, and efficient.
8957# So, don't put newlines in cache variables' values.
8958# Ultrix sh set writes to stderr and can't be redirected directly,
8959# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8960(set) 2>&1 |
8961 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8962 *ac_space=\ *)
8963 # `set' does not quote correctly, so add quotes (double-quote substitution
8964 # turns \\\\ into \\, and sed turns \\ into \).
8965 sed -n \
8966 -e "s/'/'\\\\''/g" \
8967 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8968 ;;
8969 *)
8970 # `set' quotes correctly as required by POSIX, so do not add quotes.
8971 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8972 ;;
8973 esac >> confcache
8974if cmp -s $cache_file confcache; then
8975 :
8976else
10f2d63a 8977 if test -w $cache_file; then
a0b9e27f
MB
8978 echo "updating cache $cache_file"
8979 cat confcache > $cache_file
10f2d63a
VZ
8980 else
8981 echo "not updating unwritable cache $cache_file"
8982 fi
8983fi
8984rm -f confcache
8985
a0b9e27f 8986
e59890c3 8987if test "$build" != "$host" ; then
9d353d4a 8988 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8989 CC=$host_alias-gcc
8990 CXX=$host_alias-c++
8991 AR=$host_alias-ar
8992 RANLIB=$host_alias-ranlib
8993 DLLTOOL=$host_alias-dlltool
8994 RESCOMP=$host_alias-windres
8995 LD=$host_alias-ld
8996 NM=$host_alias-nm
8997 STRIP=$host_alias-strip
8998 else
a0b9e27f 8999 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 9000 fi
10f2d63a
VZ
9001fi
9002
ec603395 9003CFLAGS=${CFLAGS:=}
a0b9e27f 9004# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9005set dummy gcc; ac_word=$2
a0b9e27f 9006echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9007echo "configure:9008: checking for $ac_word" >&5
a0b9e27f
MB
9008if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
9010else
9011 if test -n "$CC"; then
9012 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9013else
a0b9e27f
MB
9014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9015 ac_dummy="$PATH"
9016 for ac_dir in $ac_dummy; do
9017 test -z "$ac_dir" && ac_dir=.
9018 if test -f $ac_dir/$ac_word; then
9019 ac_cv_prog_CC="gcc"
9020 break
9021 fi
9022 done
9023 IFS="$ac_save_ifs"
10f2d63a 9024fi
6232543b 9025fi
a0b9e27f 9026CC="$ac_cv_prog_CC"
6232543b 9027if test -n "$CC"; then
a0b9e27f 9028 echo "$ac_t""$CC" 1>&6
247f5006 9029else
a0b9e27f 9030 echo "$ac_t""no" 1>&6
247f5006
VZ
9031fi
9032
5c6fa7d2
RR
9033if test -z "$CC"; then
9034 # Extract the first word of "cc", so it can be a program name with args.
9035set dummy cc; ac_word=$2
a0b9e27f 9036echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 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
5c6fa7d2
RR
9040else
9041 if test -n "$CC"; then
9042 ac_cv_prog_CC="$CC" # Let the user override the test.
9043else
a0b9e27f 9044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 9045 ac_prog_rejected=no
a0b9e27f
MB
9046 ac_dummy="$PATH"
9047 for ac_dir in $ac_dummy; do
9048 test -z "$ac_dir" && ac_dir=.
9049 if test -f $ac_dir/$ac_word; then
9050 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9051 ac_prog_rejected=yes
9052 continue
9053 fi
9054 ac_cv_prog_CC="cc"
9055 break
9056 fi
9057 done
9058 IFS="$ac_save_ifs"
328a083c
RR
9059if test $ac_prog_rejected = yes; then
9060 # We found a bogon in the path, so make sure we never use it.
9061 set dummy $ac_cv_prog_CC
9062 shift
a0b9e27f 9063 if test $# -gt 0; then
328a083c 9064 # We chose a different compiler from the bogus one.
1e487827
VS
9065 # However, it has the same basename, so the bogon will be chosen
9066 # first if we set CC to just the basename; use the full file name.
9067 shift
a0b9e27f 9068 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
9069 shift
9070 ac_cv_prog_CC="$@"
703e0a69 9071 fi
1e487827
VS
9072fi
9073fi
9074fi
a0b9e27f 9075CC="$ac_cv_prog_CC"
1e487827 9076if test -n "$CC"; then
a0b9e27f 9077 echo "$ac_t""$CC" 1>&6
703e0a69 9078else
a0b9e27f 9079 echo "$ac_t""no" 1>&6
703e0a69 9080fi
1e487827 9081
a0b9e27f
MB
9082 if test -z "$CC"; then
9083 case "`uname -s`" in
9084 *win32* | *WIN32*)
9085 # Extract the first word of "cl", so it can be a program name with args.
9086set dummy cl; ac_word=$2
9087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9088echo "configure:9089: checking for $ac_word" >&5
a0b9e27f
MB
9089if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
9091else
9092 if test -n "$CC"; then
9093 ac_cv_prog_CC="$CC" # Let the user override the test.
9094else
a0b9e27f
MB
9095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9096 ac_dummy="$PATH"
9097 for ac_dir in $ac_dummy; do
9098 test -z "$ac_dir" && ac_dir=.
9099 if test -f $ac_dir/$ac_word; then
9100 ac_cv_prog_CC="cl"
9101 break
9102 fi
9103 done
9104 IFS="$ac_save_ifs"
f09359cf
VS
9105fi
9106fi
a0b9e27f 9107CC="$ac_cv_prog_CC"
f09359cf 9108if test -n "$CC"; then
a0b9e27f 9109 echo "$ac_t""$CC" 1>&6
f09359cf 9110else
a0b9e27f 9111 echo "$ac_t""no" 1>&6
247f5006 9112fi
a0b9e27f
MB
9113 ;;
9114 esac
8284b0c5 9115 fi
a0b9e27f 9116 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9117fi
1e487827 9118
a0b9e27f 9119echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
521196a2 9120echo "configure:9121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9121
a0b9e27f
MB
9122ac_ext=c
9123# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9124ac_cpp='$CPP $CPPFLAGS'
9125ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9126ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9127cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9128
a0b9e27f 9129cat > conftest.$ac_ext << EOF
247f5006 9130
521196a2 9131#line 9132 "configure"
a0b9e27f 9132#include "confdefs.h"
247f5006 9133
a0b9e27f
MB
9134main(){return(0);}
9135EOF
521196a2 9136if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9137 ac_cv_prog_cc_works=yes
9138 # If we can't run a trivial program, we are probably using a cross compiler.
9139 if (./conftest; exit) 2>/dev/null; then
9140 ac_cv_prog_cc_cross=no
698dcdb6 9141 else
a0b9e27f 9142 ac_cv_prog_cc_cross=yes
698dcdb6 9143 fi
7b4a847f 9144else
a0b9e27f
MB
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 ac_cv_prog_cc_works=no
52127426 9148fi
a0b9e27f
MB
9149rm -fr conftest*
9150ac_ext=c
9151# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9152ac_cpp='$CPP $CPPFLAGS'
9153ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9154ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9155cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9156
a0b9e27f
MB
9157echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9158if test $ac_cv_prog_cc_works = no; then
9159 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9160fi
9161echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
521196a2 9162echo "configure:9163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9163echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9164cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9165
a0b9e27f 9166echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
521196a2 9167echo "configure:9168: checking whether we are using GNU C" >&5
a0b9e27f
MB
9168if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9170else
a0b9e27f
MB
9171 cat > conftest.c <<EOF
9172#ifdef __GNUC__
9173 yes;
8284b0c5 9174#endif
a0b9e27f 9175EOF
521196a2 9176if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9177 ac_cv_prog_gcc=yes
5c6fa7d2 9178else
a0b9e27f 9179 ac_cv_prog_gcc=no
8284b0c5
MB
9180fi
9181fi
1e487827 9182
a0b9e27f 9183echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9184
a0b9e27f
MB
9185if test $ac_cv_prog_gcc = yes; then
9186 GCC=yes
9187else
9188 GCC=
9189fi
247f5006 9190
a0b9e27f
MB
9191ac_test_CFLAGS="${CFLAGS+set}"
9192ac_save_CFLAGS="$CFLAGS"
9193CFLAGS=
9194echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
521196a2 9195echo "configure:9196: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9196if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9198else
9199 echo 'void f(){}' > conftest.c
9200if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9201 ac_cv_prog_cc_g=yes
9202else
a0b9e27f 9203 ac_cv_prog_cc_g=no
10f2d63a 9204fi
a0b9e27f
MB
9205rm -f conftest*
9206
10f2d63a 9207fi
a0b9e27f
MB
9208
9209echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9210if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9211 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9212elif test $ac_cv_prog_cc_g = yes; then
9213 if test "$GCC" = yes; then
10f2d63a
VZ
9214 CFLAGS="-g -O2"
9215 else
f09359cf 9216 CFLAGS="-g"
10f2d63a 9217 fi
5c0a20c3 9218else
f09359cf
VS
9219 if test "$GCC" = yes; then
9220 CFLAGS="-O2"
9221 else
9222 CFLAGS=
9223 fi
10f2d63a
VZ
9224fi
9225
9226
a0b9e27f 9227echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
521196a2 9228echo "configure:9229: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9229# On Suns, sometimes $CPP names a directory.
9230if test -n "$CPP" && test -d "$CPP"; then
9231 CPP=
9232fi
9233if test -z "$CPP"; then
a0b9e27f
MB
9234if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9236else
9237 # This must be in double quotes, not single quotes, because CPP may get
9238 # substituted into the Makefile and "${CC-cc}" will confuse make.
9239 CPP="${CC-cc} -E"
10f2d63a 9240 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9241 # not just through cpp.
9242 cat > conftest.$ac_ext <<EOF
521196a2 9243#line 9244 "configure"
10f2d63a
VZ
9244#include "confdefs.h"
9245#include <assert.h>
a0b9e27f
MB
9246Syntax Error
9247EOF
9248ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 9249{ (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9250ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9251if test -z "$ac_err"; then
10f2d63a
VZ
9252 :
9253else
a0b9e27f
MB
9254 echo "$ac_err" >&5
9255 echo "configure: failed program was:" >&5
10f2d63a 9256 cat conftest.$ac_ext >&5
a0b9e27f
MB
9257 rm -rf conftest*
9258 CPP="${CC-cc} -E -traditional-cpp"
9259 cat > conftest.$ac_ext <<EOF
521196a2 9260#line 9261 "configure"
f09359cf 9261#include "confdefs.h"
a0b9e27f
MB
9262#include <assert.h>
9263Syntax Error
9264EOF
9265ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 9266{ (eval echo configure:9267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9267ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9268if test -z "$ac_err"; then
9269 :
247f5006 9270else
a0b9e27f
MB
9271 echo "$ac_err" >&5
9272 echo "configure: failed program was:" >&5
f09359cf 9273 cat conftest.$ac_ext >&5
a0b9e27f
MB
9274 rm -rf conftest*
9275 CPP="${CC-cc} -nologo -E"
9276 cat > conftest.$ac_ext <<EOF
521196a2 9277#line 9278 "configure"
10f2d63a
VZ
9278#include "confdefs.h"
9279#include <assert.h>
a0b9e27f
MB
9280Syntax Error
9281EOF
9282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 9283{ (eval echo configure:9284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9285if test -z "$ac_err"; then
10f2d63a
VZ
9286 :
9287else
a0b9e27f
MB
9288 echo "$ac_err" >&5
9289 echo "configure: failed program was:" >&5
10f2d63a 9290 cat conftest.$ac_ext >&5
a0b9e27f
MB
9291 rm -rf conftest*
9292 CPP=/lib/cpp
579d8138 9293fi
a0b9e27f 9294rm -f conftest*
52127426 9295fi
a0b9e27f 9296rm -f conftest*
8284b0c5 9297fi
a0b9e27f
MB
9298rm -f conftest*
9299 ac_cv_prog_CPP="$CPP"
9300fi
9301 CPP="$ac_cv_prog_CPP"
10f2d63a 9302else
a0b9e27f 9303 ac_cv_prog_CPP="$CPP"
10f2d63a 9304fi
a0b9e27f 9305echo "$ac_t""$CPP" 1>&6
10f2d63a 9306
a0b9e27f
MB
9307if test $ac_cv_prog_gcc = yes; then
9308 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
521196a2 9309echo "configure:9310: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9310if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9312else
9313 ac_pattern="Autoconf.*'x'"
a0b9e27f 9314 cat > conftest.$ac_ext <<EOF
521196a2 9315#line 9316 "configure"
10f2d63a
VZ
9316#include "confdefs.h"
9317#include <sgtty.h>
9318Autoconf TIOCGETP
a0b9e27f 9319EOF
10f2d63a
VZ
9320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9321 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9322 rm -rf conftest*
10f2d63a
VZ
9323 ac_cv_prog_gcc_traditional=yes
9324else
a0b9e27f 9325 rm -rf conftest*
10f2d63a
VZ
9326 ac_cv_prog_gcc_traditional=no
9327fi
9328rm -f conftest*
9329
8284b0c5 9330
10f2d63a 9331 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9332 cat > conftest.$ac_ext <<EOF
521196a2 9333#line 9334 "configure"
10f2d63a
VZ
9334#include "confdefs.h"
9335#include <termio.h>
9336Autoconf TCGETA
a0b9e27f 9337EOF
10f2d63a
VZ
9338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9339 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9340 rm -rf conftest*
10f2d63a
VZ
9341 ac_cv_prog_gcc_traditional=yes
9342fi
9343rm -f conftest*
9344
9345 fi
9346fi
a0b9e27f
MB
9347
9348echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9349 if test $ac_cv_prog_gcc_traditional = yes; then
9350 CC="$CC -traditional"
9351 fi
9352fi
9353
8284b0c5
MB
9354
9355
a0b9e27f
MB
9356ac_ext=C
9357# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9358ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9359ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9360ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9361cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9362
698dcdb6 9363
ec603395 9364CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9365for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9366do
9367# Extract the first word of "$ac_prog", so it can be a program name with args.
9368set dummy $ac_prog; ac_word=$2
9369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9370echo "configure:9371: checking for $ac_word" >&5
a0b9e27f
MB
9371if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9373else
9374 if test -n "$CXX"; then
9375 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9376else
a0b9e27f
MB
9377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9378 ac_dummy="$PATH"
9379 for ac_dir in $ac_dummy; do
9380 test -z "$ac_dir" && ac_dir=.
9381 if test -f $ac_dir/$ac_word; then
9382 ac_cv_prog_CXX="$ac_prog"
9383 break
9384 fi
9385 done
9386 IFS="$ac_save_ifs"
10f2d63a
VZ
9387fi
9388fi
a0b9e27f 9389CXX="$ac_cv_prog_CXX"
10f2d63a 9390if test -n "$CXX"; then
a0b9e27f 9391 echo "$ac_t""$CXX" 1>&6
10f2d63a 9392else
a0b9e27f 9393 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9394fi
9395
a0b9e27f 9396test -n "$CXX" && break
10f2d63a 9397done
a0b9e27f 9398test -n "$CXX" || CXX="gcc"
f09359cf 9399
a0b9e27f
MB
9400
9401echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
521196a2 9402echo "configure:9403: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9403
9404ac_ext=C
9405# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9406ac_cpp='$CXXCPP $CPPFLAGS'
9407ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9408ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9409cross_compiling=$ac_cv_prog_cxx_cross
9410
9411cat > conftest.$ac_ext << EOF
9412
521196a2 9413#line 9414 "configure"
a0b9e27f
MB
9414#include "confdefs.h"
9415
9416int main(){return(0);}
9417EOF
521196a2 9418if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9419 ac_cv_prog_cxx_works=yes
9420 # If we can't run a trivial program, we are probably using a cross compiler.
9421 if (./conftest; exit) 2>/dev/null; then
9422 ac_cv_prog_cxx_cross=no
9423 else
9424 ac_cv_prog_cxx_cross=yes
9425 fi
8284b0c5 9426else
a0b9e27f
MB
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 ac_cv_prog_cxx_works=no
8284b0c5 9430fi
a0b9e27f
MB
9431rm -fr conftest*
9432ac_ext=C
9433# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9434ac_cpp='$CXXCPP $CPPFLAGS'
9435ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9436ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9437cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9438
a0b9e27f
MB
9439echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9440if test $ac_cv_prog_cxx_works = no; then
9441 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9442fi
9443echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
521196a2 9444echo "configure:9445: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9445echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9446cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9447
a0b9e27f 9448echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
521196a2 9449echo "configure:9450: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9450if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9452else
9453 cat > conftest.C <<EOF
9454#ifdef __GNUC__
9455 yes;
10f2d63a 9456#endif
a0b9e27f 9457EOF
521196a2 9458if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9459 ac_cv_prog_gxx=yes
9460else
9461 ac_cv_prog_gxx=no
9462fi
9463fi
10f2d63a 9464
a0b9e27f 9465echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9466
a0b9e27f
MB
9467if test $ac_cv_prog_gxx = yes; then
9468 GXX=yes
9469else
9470 GXX=
9471fi
f09359cf 9472
a0b9e27f
MB
9473ac_test_CXXFLAGS="${CXXFLAGS+set}"
9474ac_save_CXXFLAGS="$CXXFLAGS"
9475CXXFLAGS=
9476echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
521196a2 9477echo "configure:9478: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9478if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
9480else
9481 echo 'void f(){}' > conftest.cc
9482if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9483 ac_cv_prog_cxx_g=yes
9484else
a0b9e27f 9485 ac_cv_prog_cxx_g=no
10f2d63a 9486fi
a0b9e27f
MB
9487rm -f conftest*
9488
10f2d63a 9489fi
a0b9e27f
MB
9490
9491echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9492if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9493 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9494elif test $ac_cv_prog_cxx_g = yes; then
9495 if test "$GXX" = yes; then
10f2d63a
VZ
9496 CXXFLAGS="-g -O2"
9497 else
f09359cf 9498 CXXFLAGS="-g"
10f2d63a 9499 fi
5c0a20c3 9500else
f09359cf
VS
9501 if test "$GXX" = yes; then
9502 CXXFLAGS="-O2"
9503 else
9504 CXXFLAGS=
9505 fi
10f2d63a
VZ
9506fi
9507
9508
10f2d63a 9509ac_ext=c
a0b9e27f 9510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9511ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9513ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9514cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9515
9516
a0b9e27f
MB
9517# Extract the first word of "ranlib", so it can be a program name with args.
9518set dummy ranlib; ac_word=$2
9519echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9520echo "configure:9521: checking for $ac_word" >&5
a0b9e27f
MB
9521if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9523else
9524 if test -n "$RANLIB"; then
9525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9526else
a0b9e27f
MB
9527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9528 ac_dummy="$PATH"
9529 for ac_dir in $ac_dummy; do
9530 test -z "$ac_dir" && ac_dir=.
9531 if test -f $ac_dir/$ac_word; then
9532 ac_cv_prog_RANLIB="ranlib"
9533 break
9534 fi
9535 done
9536 IFS="$ac_save_ifs"
9537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9538fi
9539fi
a0b9e27f 9540RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9541if test -n "$RANLIB"; then
a0b9e27f 9542 echo "$ac_t""$RANLIB" 1>&6
328a083c 9543else
a0b9e27f 9544 echo "$ac_t""no" 1>&6
328a083c
RR
9545fi
9546
10f2d63a
VZ
9547
9548# Extract the first word of "ar", so it can be a program name with args.
9549set dummy ar; ac_word=$2
a0b9e27f 9550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9551echo "configure:9552: checking for $ac_word" >&5
a0b9e27f
MB
9552if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9554else
9555 if test -n "$AR"; then
9556 ac_cv_prog_AR="$AR" # Let the user override the test.
9557else
a0b9e27f
MB
9558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9559 ac_dummy="$PATH"
9560 for ac_dir in $ac_dummy; do
9561 test -z "$ac_dir" && ac_dir=.
9562 if test -f $ac_dir/$ac_word; then
9563 ac_cv_prog_AR="ar"
9564 break
9565 fi
9566 done
9567 IFS="$ac_save_ifs"
10f2d63a
VZ
9568 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9569fi
9570fi
a0b9e27f 9571AR="$ac_cv_prog_AR"
10f2d63a 9572if test -n "$AR"; then
a0b9e27f 9573 echo "$ac_t""$AR" 1>&6
10f2d63a 9574else
a0b9e27f 9575 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9576fi
9577
8284b0c5 9578
6054113a 9579# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9580# so one script is as good as another. But avoid the broken or
9581# incompatible versions:
9582# SysV /etc/install, /usr/sbin/install
9583# SunOS /usr/etc/install
9584# IRIX /sbin/install
9585# AIX /bin/install
f09359cf 9586# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9587# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9588# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9589# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9590echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
521196a2 9591echo "configure:9592: checking for a BSD compatible install" >&5
10f2d63a 9592if test -z "$INSTALL"; then
a0b9e27f
MB
9593if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9594 echo $ac_n "(cached) $ac_c" 1>&6
9595else
9596 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9597 for ac_dir in $PATH; do
9598 # Account for people who put trailing slashes in PATH elements.
9599 case "$ac_dir/" in
9600 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9601 *)
9602 # OSF1 and SCO ODT 3.0 have their own names for install.
9603 # Don't use installbsd from OSF since it installs stuff as root
9604 # by default.
9605 for ac_prog in ginstall scoinst install; do
9606 if test -f $ac_dir/$ac_prog; then
9607 if test $ac_prog = install &&
9608 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9609 # AIX install. It has an incompatible calling convention.
9610 :
9611 else
9612 ac_cv_path_install="$ac_dir/$ac_prog -c"
9613 break 2
9614 fi
9615 fi
10f2d63a 9616 done
a0b9e27f
MB
9617 ;;
9618 esac
9619 done
9620 IFS="$ac_save_IFS"
10f2d63a
VZ
9621
9622fi
9623 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9624 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9625 else
9626 # As a last resort, use the slow shell script. We don't cache a
9627 # path for INSTALL within a source directory, because that will
9628 # break other packages using the cache if that directory is
9629 # removed, or if the path is relative.
a0b9e27f 9630 INSTALL="$ac_install_sh"
10f2d63a
VZ
9631 fi
9632fi
a0b9e27f 9633echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9634
9635# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9636# It thinks the first close brace ends the variable substitution.
9637test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9638
a0b9e27f 9639test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9640
10f2d63a
VZ
9641test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9642
8284b0c5 9643
1d1b75ac
VZ
9644case ${INSTALL} in
9645 /* ) # Absolute
9646 ;;
4f5a7f74
VZ
9647 ?:* ) # Drive letter, considered as absolute.
9648 ;;
3bd8fb5f 9649 *)
1d1b75ac
VZ
9650 INSTALL=`pwd`/${INSTALL} ;;
9651esac
9652
4f5a7f74
VZ
9653case ${host} in
9654 *-hp-hpux* )
9655 INSTALL_DIR="mkdir"
9656 ;;
9657
9658 *) INSTALL_DIR="$INSTALL -d"
9659 ;;
9660esac
9661
8284b0c5 9662
6054113a
GD
9663case "${host}" in
9664
b5853384 9665 powerpc-*-darwin* )
eb99ae0b
GD
9666 INSTALL_PROGRAM="cp -fp"
9667 INSTALL_DATA="cp -fp"
6054113a
GD
9668 ;;
9669 *)
9670 ;;
d6853540 9671esac
698dcdb6 9672
10f2d63a
VZ
9673# Extract the first word of "strip", so it can be a program name with args.
9674set dummy strip; ac_word=$2
a0b9e27f 9675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9676echo "configure:9677: checking for $ac_word" >&5
a0b9e27f
MB
9677if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9679else
9680 if test -n "$STRIP"; then
9681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9682else
a0b9e27f
MB
9683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9684 ac_dummy="$PATH"
9685 for ac_dir in $ac_dummy; do
9686 test -z "$ac_dir" && ac_dir=.
9687 if test -f $ac_dir/$ac_word; then
9688 ac_cv_prog_STRIP="strip"
9689 break
9690 fi
9691 done
9692 IFS="$ac_save_ifs"
10f2d63a
VZ
9693 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9694fi
9695fi
a0b9e27f 9696STRIP="$ac_cv_prog_STRIP"
10f2d63a 9697if test -n "$STRIP"; then
a0b9e27f 9698 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9699else
a0b9e27f 9700 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9701fi
9702
5c6fa7d2 9703
a0b9e27f 9704echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
521196a2 9705echo "configure:9706: checking if make is GNU make" >&5
a0b9e27f
MB
9706if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9708else
a0b9e27f 9709
414eab6d 9710 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9711 egrep -s GNU > /dev/null); then
414eab6d
VZ
9712 wx_cv_prog_makeisgnu="yes"
9713 else
9714 wx_cv_prog_makeisgnu="no"
9715 fi
9716
9717fi
a0b9e27f
MB
9718
9719echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9720
9721if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9722 IF_GNU_MAKE=""
9723else
9724 IF_GNU_MAKE="#"
9725fi
9726
8284b0c5
MB
9727
9728
414eab6d 9729if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9730echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
521196a2 9731echo "configure:9732: checking if make supports VPATH" >&5
a0b9e27f
MB
9732if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9734else
a0b9e27f 9735
10f2d63a
VZ
9736cat - << EOF > confMake
9737check : file
9738 cp \$? \$@
9739 cp \$? final_file
9740EOF
9741
9742if test ! -d sub ; then
9743 mkdir sub
9744fi
9745echo dummy > sub/file
f6bcfd97 9746${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9747RESULT=$?
9748rm -f sub/file check final_file confMake
9749rmdir sub
9750if test "$RESULT" = 0; then
04e7a216 9751 wx_cv_prog_makevpath="yes"
10f2d63a 9752else
04e7a216
VZ
9753 wx_cv_prog_makevpath="no"
9754fi
9755
9756fi
a0b9e27f
MB
9757
9758echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9759
9760if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9761{ echo "configure: error:
5c6fa7d2
RR
9762You need a make-utility that is able to use the variable
9763VPATH correctly.
9764If your version of make does not support VPATH correctly,
9765please install GNU-make (possibly as gmake), and start
9766configure with the following command:
9767export MAKE=gmake; ./configure for sh-type shells
9768setenv MAKE gmake; ./configure for csh-type shells
9769Also please do remember to use gmake in this case every time
9770you are trying to compile.
a0b9e27f
MB
9771" 1>&2; exit 1; }
9772fi fi
10f2d63a
VZ
9773for ac_prog in 'bison -y' byacc
9774do
a0b9e27f 9775# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9776set dummy $ac_prog; ac_word=$2
a0b9e27f 9777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9778echo "configure:9779: checking for $ac_word" >&5
a0b9e27f
MB
9779if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9781else
9782 if test -n "$YACC"; then
9783 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9784else
a0b9e27f
MB
9785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9786 ac_dummy="$PATH"
9787 for ac_dir in $ac_dummy; do
9788 test -z "$ac_dir" && ac_dir=.
9789 if test -f $ac_dir/$ac_word; then
9790 ac_cv_prog_YACC="$ac_prog"
9791 break
9792 fi
9793 done
9794 IFS="$ac_save_ifs"
10f2d63a
VZ
9795fi
9796fi
a0b9e27f 9797YACC="$ac_cv_prog_YACC"
10f2d63a 9798if test -n "$YACC"; then
a0b9e27f 9799 echo "$ac_t""$YACC" 1>&6
10f2d63a 9800else
a0b9e27f 9801 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9802fi
9803
a0b9e27f 9804test -n "$YACC" && break
10f2d63a
VZ
9805done
9806test -n "$YACC" || YACC="yacc"
9807
8284b0c5 9808
a0b9e27f
MB
9809# Extract the first word of "flex", so it can be a program name with args.
9810set dummy flex; ac_word=$2
9811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 9812echo "configure:9813: checking for $ac_word" >&5
a0b9e27f
MB
9813if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9814 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9815else
9816 if test -n "$LEX"; then
9817 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9818else
a0b9e27f
MB
9819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9820 ac_dummy="$PATH"
9821 for ac_dir in $ac_dummy; do
9822 test -z "$ac_dir" && ac_dir=.
9823 if test -f $ac_dir/$ac_word; then
9824 ac_cv_prog_LEX="flex"
9825 break
9826 fi
9827 done
9828 IFS="$ac_save_ifs"
9829 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9830fi
9831fi
a0b9e27f 9832LEX="$ac_cv_prog_LEX"
10f2d63a 9833if test -n "$LEX"; then
a0b9e27f 9834 echo "$ac_t""$LEX" 1>&6
10f2d63a 9835else
a0b9e27f 9836 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9837fi
9838
9839if test -z "$LEXLIB"
9840then
a0b9e27f
MB
9841 case "$LEX" in
9842 flex*) ac_lib=fl ;;
9843 *) ac_lib=l ;;
9844 esac
9845 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
521196a2 9846echo "configure:9847: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9847ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9849 echo $ac_n "(cached) $ac_c" 1>&6
9850else
9851 ac_save_LIBS="$LIBS"
9852LIBS="-l$ac_lib $LIBS"
9853cat > conftest.$ac_ext <<EOF
521196a2 9854#line 9855 "configure"
247f5006 9855#include "confdefs.h"
247f5006 9856/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9857/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9858 builtin and then its argument prototype would still apply. */
9859char yywrap();
10f2d63a 9860
a0b9e27f
MB
9861int main() {
9862yywrap()
9863; return 0; }
9864EOF
521196a2 9865if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9866 rm -rf conftest*
9867 eval "ac_cv_lib_$ac_lib_var=yes"
9868else
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9871 rm -rf conftest*
9872 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9873fi
a0b9e27f
MB
9874rm -f conftest*
9875LIBS="$ac_save_LIBS"
8284b0c5 9876
10f2d63a 9877fi
a0b9e27f
MB
9878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9879 echo "$ac_t""yes" 1>&6
9880 LEXLIB="-l$ac_lib"
8284b0c5 9881else
a0b9e27f 9882 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9883fi
9884
a0b9e27f 9885fi
10f2d63a
VZ
9886
9887
a0b9e27f 9888echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
521196a2 9889echo "configure:9890: checking whether ln -s works" >&5
a0b9e27f
MB
9890if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9892else
a0b9e27f
MB
9893 rm -f conftestdata
9894if ln -s X conftestdata 2>/dev/null
9895then
9896 rm -f conftestdata
9897 ac_cv_prog_LN_S="ln -s"
10f2d63a 9898else
a0b9e27f 9899 ac_cv_prog_LN_S=ln
10f2d63a 9900fi
a0b9e27f
MB
9901fi
9902LN_S="$ac_cv_prog_LN_S"
9903if test "$ac_cv_prog_LN_S" = "ln -s"; then
9904 echo "$ac_t""yes" 1>&6
10f2d63a 9905else
a0b9e27f 9906 echo "$ac_t""no" 1>&6
5c6fa7d2 9907fi
5c6fa7d2 9908
247f5006 9909
2b5f62a0
VZ
9910case "${host}" in
9911 *-pc-os2_emx | *-pc-os2-emx )
9912 LIBS="$LIBS -lstdcpp"
9913 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9914 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
521196a2 9915echo "configure:9916: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9916ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9918 echo $ac_n "(cached) $ac_c" 1>&6
9919else
9920 ac_save_LIBS="$LIBS"
9921LIBS="-lcExt $LIBS"
9922cat > conftest.$ac_ext <<EOF
521196a2 9923#line 9924 "configure"
2b5f62a0
VZ
9924#include "confdefs.h"
9925/* Override any gcc2 internal prototype to avoid an error. */
9926/* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9928char drand48();
9929
9930int main() {
9931drand48()
9932; return 0; }
9933EOF
521196a2 9934if { (eval echo configure:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9935 rm -rf conftest*
9936 eval "ac_cv_lib_$ac_lib_var=yes"
9937else
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 eval "ac_cv_lib_$ac_lib_var=no"
9942fi
9943rm -f conftest*
9944LIBS="$ac_save_LIBS"
9945
9946fi
9947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9948 echo "$ac_t""yes" 1>&6
9949 LIBS="$LIBS -lcExt"
9950else
9951 echo "$ac_t""no" 1>&6
9952fi
9953
9954 else
9955 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9956 fi
9957 ;;
9958esac
9959
a0b9e27f
MB
9960
9961if test "$wxUSE_MAC" != 1; then
9962 for ac_hdr in strings.h
9963do
9964ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9965echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 9966echo "configure:9967: checking for $ac_hdr" >&5
a0b9e27f
MB
9967if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969else
9970 cat > conftest.$ac_ext <<EOF
521196a2 9971#line 9972 "configure"
a0b9e27f
MB
9972#include "confdefs.h"
9973#include <$ac_hdr>
9974EOF
9975ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 9976{ (eval echo configure:9977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9977ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9978if test -z "$ac_err"; then
9979 rm -rf conftest*
9980 eval "ac_cv_header_$ac_safe=yes"
9981else
9982 echo "$ac_err" >&5
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 rm -rf conftest*
9986 eval "ac_cv_header_$ac_safe=no"
21d1c967 9987fi
247f5006 9988rm -f conftest*
19bc6aad 9989fi
a0b9e27f
MB
9990if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9993 cat >> confdefs.h <<EOF
9994#define $ac_tr_hdr 1
9995EOF
9996
247f5006 9997else
a0b9e27f 9998 echo "$ac_t""no" 1>&6
18dbb1f6 9999fi
a0b9e27f 10000done
247f5006 10001
90dd450c 10002fi
90dd450c 10003
a0b9e27f
MB
10004for ac_hdr in stdlib.h
10005do
10006ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10007echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10008echo "configure:10009: checking for $ac_hdr" >&5
a0b9e27f
MB
10009if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10010 echo $ac_n "(cached) $ac_c" 1>&6
10011else
10012 cat > conftest.$ac_ext <<EOF
521196a2 10013#line 10014 "configure"
90dd450c 10014#include "confdefs.h"
a0b9e27f
MB
10015#include <$ac_hdr>
10016EOF
10017ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10018{ (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10019ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10020if test -z "$ac_err"; then
10021 rm -rf conftest*
10022 eval "ac_cv_header_$ac_safe=yes"
10023else
10024 echo "$ac_err" >&5
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10027 rm -rf conftest*
10028 eval "ac_cv_header_$ac_safe=no"
10029fi
10030rm -f conftest*
10031fi
10032if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10033 echo "$ac_t""yes" 1>&6
10034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10035 cat >> confdefs.h <<EOF
10036#define $ac_tr_hdr 1
10037EOF
10038
8284b0c5 10039else
a0b9e27f 10040 echo "$ac_t""no" 1>&6
21d1c967 10041fi
a0b9e27f
MB
10042done
10043
10044for ac_hdr in malloc.h
10045do
10046ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10047echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10048echo "configure:10049: checking for $ac_hdr" >&5
a0b9e27f
MB
10049if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10050 echo $ac_n "(cached) $ac_c" 1>&6
10051else
10052 cat > conftest.$ac_ext <<EOF
521196a2 10053#line 10054 "configure"
a0b9e27f
MB
10054#include "confdefs.h"
10055#include <$ac_hdr>
10056EOF
10057ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10058{ (eval echo configure:10059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10059ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10060if test -z "$ac_err"; then
10061 rm -rf conftest*
10062 eval "ac_cv_header_$ac_safe=yes"
10063else
10064 echo "$ac_err" >&5
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 rm -rf conftest*
10068 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10069fi
a0b9e27f 10070rm -f conftest*
90dd450c 10071fi
a0b9e27f
MB
10072if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10073 echo "$ac_t""yes" 1>&6
10074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10075 cat >> confdefs.h <<EOF
10076#define $ac_tr_hdr 1
10077EOF
10078
10079else
10080 echo "$ac_t""no" 1>&6
21d1c967 10081fi
a0b9e27f 10082done
247f5006 10083
a0b9e27f
MB
10084for ac_hdr in unistd.h
10085do
10086ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10087echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10088echo "configure:10089: checking for $ac_hdr" >&5
a0b9e27f
MB
10089if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10090 echo $ac_n "(cached) $ac_c" 1>&6
10091else
10092 cat > conftest.$ac_ext <<EOF
521196a2 10093#line 10094 "configure"
a0b9e27f
MB
10094#include "confdefs.h"
10095#include <$ac_hdr>
10096EOF
10097ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10098{ (eval echo configure:10099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10099ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10100if test -z "$ac_err"; then
10101 rm -rf conftest*
10102 eval "ac_cv_header_$ac_safe=yes"
10103else
10104 echo "$ac_err" >&5
10105 echo "configure: failed program was:" >&5
10106 cat conftest.$ac_ext >&5
10107 rm -rf conftest*
10108 eval "ac_cv_header_$ac_safe=no"
247f5006 10109fi
a0b9e27f
MB
10110rm -f conftest*
10111fi
10112if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10113 echo "$ac_t""yes" 1>&6
10114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10115 cat >> confdefs.h <<EOF
10116#define $ac_tr_hdr 1
10117EOF
10118
10119else
10120 echo "$ac_t""no" 1>&6
10121fi
10122done
90dd450c 10123
a0b9e27f 10124for ac_hdr in wchar.h
21d1c967 10125do
a0b9e27f
MB
10126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10128echo "configure:10129: checking for $ac_hdr" >&5
a0b9e27f
MB
10129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10131else
10132 cat > conftest.$ac_ext <<EOF
521196a2 10133#line 10134 "configure"
4f14bcd8 10134#include "confdefs.h"
a0b9e27f
MB
10135#include <$ac_hdr>
10136EOF
10137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10138{ (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10140if test -z "$ac_err"; then
10141 rm -rf conftest*
10142 eval "ac_cv_header_$ac_safe=yes"
10143else
10144 echo "$ac_err" >&5
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10147 rm -rf conftest*
10148 eval "ac_cv_header_$ac_safe=no"
10149fi
10150rm -f conftest*
10151fi
10152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10153 echo "$ac_t""yes" 1>&6
10154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10155 cat >> confdefs.h <<EOF
10156#define $ac_tr_hdr 1
10157EOF
10158
10159else
10160 echo "$ac_t""no" 1>&6
21d1c967
GD
10161fi
10162done
4f14bcd8 10163
5c6fa7d2 10164
a0b9e27f
MB
10165if test "$ac_cv_header_wchar_h" != "yes"; then
10166 for ac_hdr in wcstr.h
21d1c967 10167do
a0b9e27f
MB
10168ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10169echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10170echo "configure:10171: checking for $ac_hdr" >&5
a0b9e27f
MB
10171if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10173else
10174 cat > conftest.$ac_ext <<EOF
521196a2 10175#line 10176 "configure"
d4158b5d 10176#include "confdefs.h"
a0b9e27f
MB
10177#include <$ac_hdr>
10178EOF
10179ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10180{ (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10181ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10182if test -z "$ac_err"; then
10183 rm -rf conftest*
10184 eval "ac_cv_header_$ac_safe=yes"
10185else
10186 echo "$ac_err" >&5
10187 echo "configure: failed program was:" >&5
d4158b5d 10188 cat conftest.$ac_ext >&5
a0b9e27f
MB
10189 rm -rf conftest*
10190 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10191fi
a0b9e27f 10192rm -f conftest*
21d1c967 10193fi
a0b9e27f
MB
10194if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10197 cat >> confdefs.h <<EOF
10198#define $ac_tr_hdr 1
10199EOF
10200
10201else
10202 echo "$ac_t""no" 1>&6
d4158b5d 10203fi
21d1c967 10204done
f6bcfd97 10205
90dd450c 10206fi
90dd450c 10207
a0b9e27f 10208for ac_hdr in fnmatch.h
21d1c967 10209do
a0b9e27f
MB
10210ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10211echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10212echo "configure:10213: checking for $ac_hdr" >&5
a0b9e27f
MB
10213if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10215else
10216 cat > conftest.$ac_ext <<EOF
521196a2 10217#line 10218 "configure"
90dd450c 10218#include "confdefs.h"
a0b9e27f
MB
10219#include <$ac_hdr>
10220EOF
10221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10222{ (eval echo configure:10223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10224if test -z "$ac_err"; then
10225 rm -rf conftest*
10226 eval "ac_cv_header_$ac_safe=yes"
10227else
10228 echo "$ac_err" >&5
10229 echo "configure: failed program was:" >&5
3a922bb4 10230 cat conftest.$ac_ext >&5
a0b9e27f
MB
10231 rm -rf conftest*
10232 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10233fi
a0b9e27f 10234rm -f conftest*
4f14bcd8 10235fi
a0b9e27f
MB
10236if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10237 echo "$ac_t""yes" 1>&6
10238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10239 cat >> confdefs.h <<EOF
10240#define $ac_tr_hdr 1
10241EOF
10242
10243else
10244 echo "$ac_t""no" 1>&6
21d1c967
GD
10245fi
10246done
90dd450c 10247
5c6fa7d2 10248
a0b9e27f
MB
10249if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10250 for ac_func in fnmatch
21d1c967 10251do
a0b9e27f 10252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 10253echo "configure:10254: checking for $ac_func" >&5
a0b9e27f
MB
10254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10256else
a0b9e27f 10257 cat > conftest.$ac_ext <<EOF
521196a2 10258#line 10259 "configure"
a0b9e27f
MB
10259#include "confdefs.h"
10260/* System header to define __stub macros and hopefully few prototypes,
10261 which can conflict with char $ac_func(); below. */
10262#include <assert.h>
10263/* Override any gcc2 internal prototype to avoid an error. */
10264/* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266char $ac_func();
10267
10268int main() {
10269
10270/* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
10273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10274choke me
10275#else
10276$ac_func();
10277#endif
10278
10279; return 0; }
10280EOF
521196a2 10281if { (eval echo configure:10282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10282 rm -rf conftest*
10283 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10284else
a0b9e27f 10285 echo "configure: failed program was:" >&5
8284b0c5 10286 cat conftest.$ac_ext >&5
a0b9e27f
MB
10287 rm -rf conftest*
10288 eval "ac_cv_func_$ac_func=no"
8284b0c5 10289fi
a0b9e27f 10290rm -f conftest*
8284b0c5 10291fi
32832908 10292
a0b9e27f
MB
10293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10294 echo "$ac_t""yes" 1>&6
10295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10296 cat >> confdefs.h <<EOF
10297#define $ac_tr_func 1
10298EOF
10299
10300else
10301 echo "$ac_t""no" 1>&6
21d1c967
GD
10302fi
10303done
90dd450c 10304
a0b9e27f 10305fi
90dd450c 10306
a0b9e27f 10307for ac_hdr in langinfo.h
21d1c967 10308do
a0b9e27f
MB
10309ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10310echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10311echo "configure:10312: checking for $ac_hdr" >&5
a0b9e27f
MB
10312if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10314else
10315 cat > conftest.$ac_ext <<EOF
521196a2 10316#line 10317 "configure"
247f5006 10317#include "confdefs.h"
a0b9e27f
MB
10318#include <$ac_hdr>
10319EOF
10320ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10321{ (eval echo configure:10322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10322ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10323if test -z "$ac_err"; then
10324 rm -rf conftest*
10325 eval "ac_cv_header_$ac_safe=yes"
10326else
10327 echo "$ac_err" >&5
10328 echo "configure: failed program was:" >&5
90dd450c 10329 cat conftest.$ac_ext >&5
a0b9e27f
MB
10330 rm -rf conftest*
10331 eval "ac_cv_header_$ac_safe=no"
90dd450c 10332fi
a0b9e27f 10333rm -f conftest*
4f14bcd8 10334fi
a0b9e27f
MB
10335if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6
10337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10338 cat >> confdefs.h <<EOF
10339#define $ac_tr_hdr 1
10340EOF
10341
10342else
10343 echo "$ac_t""no" 1>&6
21d1c967
GD
10344fi
10345done
3a922bb4 10346
8284b0c5 10347
4f5a7f74
VZ
10348case "${host}" in
10349 *-pc-os2_emx | *-pc-os2-emx )
10350 if test $ac_cv_header_langinfo_h = "yes"; then
10351 LIBS="$LIBS -lintl"
10352 fi
10353 ;;
10354esac
10355
a0b9e27f
MB
10356if test "$wxUSE_GUI" = "yes"; then
10357 if test "$wxUSE_UNIX" = "yes"; then
10358 for ac_hdr in X11/XKBlib.h
21d1c967 10359do
a0b9e27f
MB
10360ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10361echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 10362echo "configure:10363: checking for $ac_hdr" >&5
a0b9e27f
MB
10363if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
10365else
10366 cat > conftest.$ac_ext <<EOF
521196a2 10367#line 10368 "configure"
90dd450c 10368#include "confdefs.h"
a0b9e27f
MB
10369#include <$ac_hdr>
10370EOF
10371ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 10372{ (eval echo configure:10373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10373ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10374if test -z "$ac_err"; then
10375 rm -rf conftest*
10376 eval "ac_cv_header_$ac_safe=yes"
10377else
10378 echo "$ac_err" >&5
10379 echo "configure: failed program was:" >&5
90dd450c 10380 cat conftest.$ac_ext >&5
a0b9e27f
MB
10381 rm -rf conftest*
10382 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10383fi
a0b9e27f 10384rm -f conftest*
90dd450c 10385fi
a0b9e27f
MB
10386if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10389 cat >> confdefs.h <<EOF
10390#define $ac_tr_hdr 1
10391EOF
10392
10393else
10394 echo "$ac_t""no" 1>&6
247f5006 10395fi
247f5006
VZ
10396done
10397
a0b9e27f
MB
10398 fi
10399fi
247f5006 10400
247f5006 10401
a0b9e27f 10402echo $ac_n "checking for working const""... $ac_c" 1>&6
521196a2 10403echo "configure:10404: checking for working const" >&5
a0b9e27f
MB
10404if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10406else
a0b9e27f 10407 cat > conftest.$ac_ext <<EOF
521196a2 10408#line 10409 "configure"
a0b9e27f
MB
10409#include "confdefs.h"
10410
10411int main() {
10412
10413/* Ultrix mips cc rejects this. */
10414typedef int charset[2]; const charset x;
10415/* SunOS 4.1.1 cc rejects this. */
10416char const *const *ccp;
10417char **p;
10418/* NEC SVR4.0.2 mips cc rejects this. */
10419struct point {int x, y;};
10420static struct point const zero = {0,0};
10421/* AIX XL C 1.02.0.0 rejects this.
10422 It does not let you subtract one const X* pointer from another in an arm
10423 of an if-expression whose if-part is not a constant expression */
10424const char *g = "string";
10425ccp = &g + (g ? g-g : 0);
10426/* HPUX 7.0 cc rejects these. */
10427++ccp;
10428p = (char**) ccp;
10429ccp = (char const *const *) p;
10430{ /* SCO 3.2v4 cc rejects this. */
10431 char *t;
10432 char const *s = 0 ? (char *) 0 : (char const *) 0;
10433
10434 *t++ = 0;
10435}
10436{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10437 int x[] = {25, 17};
10438 const int *foo = &x[0];
10439 ++foo;
10440}
10441{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10442 typedef const int *iptr;
10443 iptr p = 0;
10444 ++p;
10445}
10446{ /* AIX XL C 1.02.0.0 rejects this saying
10447 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10448 struct s { int j; const int *ap[3]; };
10449 struct s *b; b->j = 5;
10450}
10451{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10452 const int foo = 10;
10453}
10454
10455; return 0; }
10456EOF
521196a2 10457if { (eval echo configure:10458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10458 rm -rf conftest*
10459 ac_cv_c_const=yes
247f5006 10460else
a0b9e27f 10461 echo "configure: failed program was:" >&5
247f5006 10462 cat conftest.$ac_ext >&5
a0b9e27f
MB
10463 rm -rf conftest*
10464 ac_cv_c_const=no
247f5006 10465fi
a0b9e27f 10466rm -f conftest*
21d1c967 10467fi
247f5006 10468
a0b9e27f
MB
10469echo "$ac_t""$ac_cv_c_const" 1>&6
10470if test $ac_cv_c_const = no; then
10471 cat >> confdefs.h <<\EOF
10472#define const
10473EOF
10f2d63a 10474
90dd450c 10475fi
81809c07 10476
a0b9e27f 10477echo $ac_n "checking for inline""... $ac_c" 1>&6
521196a2 10478echo "configure:10479: checking for inline" >&5
a0b9e27f
MB
10479if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10481else
a0b9e27f
MB
10482 ac_cv_c_inline=no
10483for ac_kw in inline __inline__ __inline; do
10484 cat > conftest.$ac_ext <<EOF
521196a2 10485#line 10486 "configure"
a0b9e27f
MB
10486#include "confdefs.h"
10487
10488int main() {
10489} $ac_kw foo() {
10490; return 0; }
10491EOF
521196a2 10492if { (eval echo configure:10493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10493 rm -rf conftest*
10494 ac_cv_c_inline=$ac_kw; break
247f5006 10495else
a0b9e27f 10496 echo "configure: failed program was:" >&5
247f5006 10497 cat conftest.$ac_ext >&5
247f5006 10498fi
a0b9e27f
MB
10499rm -f conftest*
10500done
247f5006
VZ
10501
10502fi
10503
a0b9e27f
MB
10504echo "$ac_t""$ac_cv_c_inline" 1>&6
10505case "$ac_cv_c_inline" in
10506 inline | yes) ;;
10507 no) cat >> confdefs.h <<\EOF
10508#define inline
10509EOF
10510 ;;
10511 *) cat >> confdefs.h <<EOF
10512#define inline $ac_cv_c_inline
10513EOF
10514 ;;
10515esac
247f5006 10516
247f5006 10517
a0b9e27f 10518echo $ac_n "checking size of char""... $ac_c" 1>&6
521196a2 10519echo "configure:10520: checking size of char" >&5
a0b9e27f
MB
10520if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
10522else
10523 if test "$cross_compiling" = yes; then
10524 ac_cv_sizeof_char=1
10525else
10526 cat > conftest.$ac_ext <<EOF
521196a2 10527#line 10528 "configure"
4f14bcd8 10528#include "confdefs.h"
a0b9e27f 10529#include <stdio.h>
93fac604 10530#include <sys/types.h>
a0b9e27f 10531main()
247f5006 10532{
a0b9e27f
MB
10533 FILE *f=fopen("conftestval", "w");
10534 if (!f) exit(1);
10535 fprintf(f, "%d\n", sizeof(char));
10536 exit(0);
52127426 10537}
a0b9e27f 10538EOF
521196a2 10539if { (eval echo configure:10540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10540then
10541 ac_cv_sizeof_char=`cat conftestval`
247f5006 10542else
a0b9e27f 10543 echo "configure: failed program was:" >&5
247f5006 10544 cat conftest.$ac_ext >&5
a0b9e27f
MB
10545 rm -fr conftest*
10546 ac_cv_sizeof_char=0
247f5006 10547fi
a0b9e27f 10548rm -fr conftest*
247f5006 10549fi
247f5006
VZ
10550
10551fi
a0b9e27f
MB
10552echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10553cat >> confdefs.h <<EOF
10554#define SIZEOF_CHAR $ac_cv_sizeof_char
10555EOF
247f5006 10556
247f5006 10557
a0b9e27f 10558echo $ac_n "checking size of short""... $ac_c" 1>&6
521196a2 10559echo "configure:10560: checking size of short" >&5
a0b9e27f
MB
10560if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10562else
a0b9e27f
MB
10563 if test "$cross_compiling" = yes; then
10564 ac_cv_sizeof_short=2
247f5006 10565else
a0b9e27f 10566 cat > conftest.$ac_ext <<EOF
521196a2 10567#line 10568 "configure"
a0b9e27f
MB
10568#include "confdefs.h"
10569#include <stdio.h>
93fac604 10570#include <sys/types.h>
a0b9e27f
MB
10571main()
10572{
10573 FILE *f=fopen("conftestval", "w");
10574 if (!f) exit(1);
10575 fprintf(f, "%d\n", sizeof(short));
10576 exit(0);
10577}
10578EOF
521196a2 10579if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10580then
10581 ac_cv_sizeof_short=`cat conftestval`
247f5006 10582else
a0b9e27f
MB
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 rm -fr conftest*
10586 ac_cv_sizeof_short=0
247f5006 10587fi
a0b9e27f 10588rm -fr conftest*
247f5006
VZ
10589fi
10590
247f5006 10591fi
a0b9e27f
MB
10592echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10593cat >> confdefs.h <<EOF
10594#define SIZEOF_SHORT $ac_cv_sizeof_short
10595EOF
247f5006
VZ
10596
10597
a0b9e27f 10598echo $ac_n "checking size of void *""... $ac_c" 1>&6
521196a2 10599echo "configure:10600: checking size of void *" >&5
a0b9e27f
MB
10600if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10602else
10603 if test "$cross_compiling" = yes; then
10604 ac_cv_sizeof_void_p=4
247f5006 10605else
a0b9e27f 10606 cat > conftest.$ac_ext <<EOF
521196a2 10607#line 10608 "configure"
247f5006 10608#include "confdefs.h"
247f5006 10609#include <stdio.h>
93fac604 10610#include <sys/types.h>
a0b9e27f 10611main()
247f5006 10612{
a0b9e27f
MB
10613 FILE *f=fopen("conftestval", "w");
10614 if (!f) exit(1);
10615 fprintf(f, "%d\n", sizeof(void *));
10616 exit(0);
5c6fa7d2 10617}
a0b9e27f 10618EOF
521196a2 10619if { (eval echo configure:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10620then
10621 ac_cv_sizeof_void_p=`cat conftestval`
10622else
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 rm -fr conftest*
10626 ac_cv_sizeof_void_p=0
10627fi
10628rm -fr conftest*
10629fi
8284b0c5 10630
247f5006 10631fi
a0b9e27f
MB
10632echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10633cat >> confdefs.h <<EOF
10634#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10635EOF
247f5006 10636
247f5006 10637
a0b9e27f 10638echo $ac_n "checking size of int""... $ac_c" 1>&6
521196a2 10639echo "configure:10640: checking size of int" >&5
a0b9e27f
MB
10640if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10642else
a0b9e27f
MB
10643 if test "$cross_compiling" = yes; then
10644 ac_cv_sizeof_int=4
10645else
10646 cat > conftest.$ac_ext <<EOF
521196a2 10647#line 10648 "configure"
247f5006 10648#include "confdefs.h"
a0b9e27f 10649#include <stdio.h>
93fac604 10650#include <sys/types.h>
a0b9e27f 10651main()
247f5006 10652{
a0b9e27f
MB
10653 FILE *f=fopen("conftestval", "w");
10654 if (!f) exit(1);
10655 fprintf(f, "%d\n", sizeof(int));
10656 exit(0);
247f5006 10657}
a0b9e27f 10658EOF
521196a2 10659if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10660then
10661 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10662else
a0b9e27f
MB
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 rm -fr conftest*
10666 ac_cv_sizeof_int=0
21d1c967 10667fi
a0b9e27f 10668rm -fr conftest*
698dcdb6 10669fi
4f14bcd8 10670
21d1c967 10671fi
a0b9e27f
MB
10672echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10673cat >> confdefs.h <<EOF
10674#define SIZEOF_INT $ac_cv_sizeof_int
10675EOF
4f14bcd8 10676
5c6fa7d2 10677
a0b9e27f 10678echo $ac_n "checking size of long""... $ac_c" 1>&6
521196a2 10679echo "configure:10680: checking size of long" >&5
a0b9e27f
MB
10680if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10681 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10682else
247f5006 10683 if test "$cross_compiling" = yes; then
a0b9e27f 10684 ac_cv_sizeof_long=4
247f5006 10685else
a0b9e27f 10686 cat > conftest.$ac_ext <<EOF
521196a2 10687#line 10688 "configure"
247f5006 10688#include "confdefs.h"
a0b9e27f 10689#include <stdio.h>
93fac604 10690#include <sys/types.h>
a0b9e27f 10691main()
247f5006 10692{
a0b9e27f
MB
10693 FILE *f=fopen("conftestval", "w");
10694 if (!f) exit(1);
10695 fprintf(f, "%d\n", sizeof(long));
10696 exit(0);
247f5006 10697}
a0b9e27f 10698EOF
521196a2 10699if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10700then
10701 ac_cv_sizeof_long=`cat conftestval`
247f5006 10702else
a0b9e27f
MB
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 rm -fr conftest*
10706 ac_cv_sizeof_long=0
247f5006 10707fi
a0b9e27f 10708rm -fr conftest*
247f5006 10709fi
247f5006 10710
5c6fa7d2 10711fi
a0b9e27f
MB
10712echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10713cat >> confdefs.h <<EOF
10714#define SIZEOF_LONG $ac_cv_sizeof_long
10715EOF
247f5006 10716
a0b9e27f
MB
10717
10718
10719case "${host}" in
10720 arm-*-linux* )
10721 echo $ac_n "checking size of long long""... $ac_c" 1>&6
521196a2 10722echo "configure:10723: checking size of long long" >&5
a0b9e27f
MB
10723if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10725else
10726 if test "$cross_compiling" = yes; then
10727 ac_cv_sizeof_long_long=8
10728else
10729 cat > conftest.$ac_ext <<EOF
521196a2 10730#line 10731 "configure"
247f5006 10731#include "confdefs.h"
a0b9e27f 10732#include <stdio.h>
93fac604 10733#include <sys/types.h>
a0b9e27f 10734main()
247f5006 10735{
a0b9e27f
MB
10736 FILE *f=fopen("conftestval", "w");
10737 if (!f) exit(1);
10738 fprintf(f, "%d\n", sizeof(long long));
10739 exit(0);
247f5006 10740}
a0b9e27f 10741EOF
521196a2 10742if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10743then
10744 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10745else
a0b9e27f
MB
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10748 rm -fr conftest*
10749 ac_cv_sizeof_long_long=0
5c6fa7d2 10750fi
a0b9e27f 10751rm -fr conftest*
5c6fa7d2 10752fi
8284b0c5 10753
a0b9e27f
MB
10754fi
10755echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10756cat >> confdefs.h <<EOF
10757#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10758EOF
10759
10760
10761 ;;
4f57cf11 10762 *-hp-hpux* )
a0b9e27f 10763 echo $ac_n "checking size of long long""... $ac_c" 1>&6
521196a2 10764echo "configure:10765: checking size of long long" >&5
a0b9e27f
MB
10765if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10767else
10768 if test "$cross_compiling" = yes; then
a0b9e27f 10769 ac_cv_sizeof_long_long=0
8284b0c5 10770else
a0b9e27f 10771 cat > conftest.$ac_ext <<EOF
521196a2 10772#line 10773 "configure"
8284b0c5
MB
10773#include "confdefs.h"
10774#include <stdio.h>
93fac604 10775#include <sys/types.h>
a0b9e27f 10776main()
8284b0c5 10777{
a0b9e27f
MB
10778 FILE *f=fopen("conftestval", "w");
10779 if (!f) exit(1);
10780 fprintf(f, "%d\n", sizeof(long long));
10781 exit(0);
8284b0c5 10782}
a0b9e27f 10783EOF
521196a2 10784if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10785then
10786 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10787else
a0b9e27f
MB
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10790 rm -fr conftest*
5c6fa7d2 10791 ac_cv_sizeof_long_long=0
52127426 10792fi
a0b9e27f
MB
10793rm -fr conftest*
10794fi
10795
4f57cf11
GD
10796fi
10797echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10798cat >> confdefs.h <<EOF
10799#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10800EOF
10801
10802
10803 if test "$ac_cv_sizeof_long_long" != "0"; then
10804 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10805 fi
10806 ;;
10807 * )
10808 echo $ac_n "checking size of long long""... $ac_c" 1>&6
521196a2 10809echo "configure:10810: checking size of long long" >&5
4f57cf11
GD
10810if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10812else
10813 if test "$cross_compiling" = yes; then
10814 ac_cv_sizeof_long_long=0
10815else
10816 cat > conftest.$ac_ext <<EOF
521196a2 10817#line 10818 "configure"
4f57cf11
GD
10818#include "confdefs.h"
10819#include <stdio.h>
93fac604 10820#include <sys/types.h>
4f57cf11
GD
10821main()
10822{
10823 FILE *f=fopen("conftestval", "w");
10824 if (!f) exit(1);
10825 fprintf(f, "%d\n", sizeof(long long));
10826 exit(0);
10827}
10828EOF
521196a2 10829if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10830then
10831 ac_cv_sizeof_long_long=`cat conftestval`
10832else
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 rm -fr conftest*
10836 ac_cv_sizeof_long_long=0
10837fi
10838rm -fr conftest*
10839fi
10840
7b4a847f 10841fi
a0b9e27f
MB
10842echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10843cat >> confdefs.h <<EOF
21d1c967 10844#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10845EOF
9e691f46 10846
8284b0c5 10847
21d1c967
GD
10848esac
10849
a0b9e27f 10850echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
521196a2 10851echo "configure:10852: checking size of wchar_t" >&5
a0b9e27f
MB
10852if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10854else
a0b9e27f 10855
21d1c967 10856 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10857
10858 case "${host}" in
10859 *-pc-msdosdjgpp )
10860 wx_cv_sizeof_wchar_t=0
10861 ;;
10862 * )
10863 wx_cv_sizeof_wchar_t=4
10864 ;;
10865 esac
10866
a0b9e27f 10867
6f72b082 10868else
a0b9e27f 10869 cat > conftest.$ac_ext <<EOF
521196a2 10870#line 10871 "configure"
6f72b082 10871#include "confdefs.h"
21d1c967 10872
2b5f62a0
VZ
10873 /* DJGPP only has fake wchar_t: */
10874 #ifdef __DJGPP__
10875 # error "fake wchar_t"
10876 #endif
21d1c967
GD
10877 #ifdef HAVE_WCHAR_H
10878 # ifdef __CYGWIN__
10879 # include <stddef.h>
10880 # endif
10881 # include <wchar.h>
10882 #endif
10883 #ifdef HAVE_STDLIB_H
10884 # include <stdlib.h>
10885 #endif
10886 #include <stdio.h>
10887 int main()
10888 {
10889 FILE *f=fopen("conftestval", "w");
10890 if (!f) exit(1);
10891 fprintf(f, "%i", sizeof(wchar_t));
10892 exit(0);
10893 }
a0b9e27f
MB
10894
10895EOF
521196a2 10896if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10897then
21d1c967 10898 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10899else
a0b9e27f
MB
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10902 rm -fr conftest*
10903 wx_cv_sizeof_wchar_t=0
6f72b082 10904fi
a0b9e27f 10905rm -fr conftest*
6f72b082 10906fi
6f72b082 10907
a0b9e27f 10908
3f345b47
VZ
10909fi
10910
a0b9e27f
MB
10911echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10912
10913cat >> confdefs.h <<EOF
21d1c967 10914#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10915EOF
90dd450c 10916
8284b0c5 10917
21d1c967
GD
10918# Check whether --enable-largefile or --disable-largefile was given.
10919if test "${enable_largefile+set}" = set; then
10920 enableval="$enable_largefile"
a0b9e27f
MB
10921 :
10922fi
3f345b47 10923
21d1c967
GD
10924if test "$enable_largefile" != no; then
10925 wx_largefile=no
a0b9e27f
MB
10926
10927 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
521196a2 10928echo "configure:10929: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10929if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10930 echo $ac_n "(cached) $ac_c" 1>&6
10931else
10932
10933 cat > conftest.$ac_ext <<EOF
521196a2 10934#line 10935 "configure"
90dd450c 10935#include "confdefs.h"
21d1c967
GD
10936#define _FILE_OFFSET_BITS 64
10937 #include <sys/types.h>
a0b9e27f 10938int main() {
21d1c967
GD
10939typedef struct {
10940 unsigned int field: sizeof(off_t) == 8;
10941} wxlf;
10942
a0b9e27f
MB
10943; return 0; }
10944EOF
521196a2 10945if { (eval echo configure:10946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10946 rm -rf conftest*
21d1c967 10947 ac_cv_sys_file_offset_bits=64
f6bcfd97 10948else
a0b9e27f
MB
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951 rm -rf conftest*
10952 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10953fi
a0b9e27f
MB
10954rm -f conftest*
10955
10956
247f5006 10957fi
a0b9e27f
MB
10958
10959echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10960
10961 if test "$ac_cv_sys_file_offset_bits" != no; then
10962 wx_largefile=yes
a0b9e27f 10963 cat >> confdefs.h <<EOF
21d1c967 10964#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10965EOF
21d1c967
GD
10966
10967 fi
10968
10969 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10970
10971 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
521196a2 10972echo "configure:10973: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10973if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10974 echo $ac_n "(cached) $ac_c" 1>&6
10975else
10976
10977 cat > conftest.$ac_ext <<EOF
521196a2 10978#line 10979 "configure"
f6bcfd97 10979#include "confdefs.h"
21d1c967
GD
10980#define _LARGE_FILES 1
10981 #include <sys/types.h>
a0b9e27f 10982int main() {
21d1c967
GD
10983typedef struct {
10984 unsigned int field: sizeof(off_t) == 8;
10985} wxlf;
10986
a0b9e27f
MB
10987; return 0; }
10988EOF
521196a2 10989if { (eval echo configure:10990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10990 rm -rf conftest*
21d1c967 10991 ac_cv_sys_large_files=1
f6bcfd97 10992else
a0b9e27f
MB
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10995 rm -rf conftest*
10996 ac_cv_sys_large_files=no
5c6fa7d2 10997fi
a0b9e27f
MB
10998rm -f conftest*
10999
11000
247f5006 11001fi
a0b9e27f
MB
11002
11003echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 11004
21d1c967
GD
11005 if test "$ac_cv_sys_large_files" != no; then
11006 wx_largefile=yes
a0b9e27f 11007 cat >> confdefs.h <<EOF
21d1c967 11008#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 11009EOF
90dd450c 11010
90dd450c
VZ
11011 fi
11012
90dd450c 11013 fi
90dd450c 11014
a0b9e27f 11015 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
521196a2 11016echo "configure:11017: checking if large file support is available" >&5
21d1c967 11017 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 11018 cat >> confdefs.h <<\EOF
21d1c967 11019#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 11020EOF
90dd450c 11021
90dd450c 11022 fi
a0b9e27f 11023 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 11024fi
90dd450c 11025
8284b0c5 11026
f02444d0 11027if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
11028 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
11029 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 11030 else
e26c13cf 11031 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 11032 fi
e26c13cf 11033 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
11034fi
11035
a0b9e27f 11036echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
521196a2 11037echo "configure:11038: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
11038if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 11040else
21d1c967
GD
11041 ac_cv_c_bigendian=unknown
11042# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 11043cat > conftest.$ac_ext <<EOF
521196a2 11044#line 11045 "configure"
90dd450c 11045#include "confdefs.h"
21d1c967
GD
11046#include <sys/types.h>
11047#include <sys/param.h>
a0b9e27f 11048int main() {
21d1c967
GD
11049
11050#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11051 bogus endian macros
11052#endif
a0b9e27f
MB
11053; return 0; }
11054EOF
521196a2 11055if { (eval echo configure:11056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11056 rm -rf conftest*
21d1c967 11057 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 11058cat > conftest.$ac_ext <<EOF
521196a2 11059#line 11060 "configure"
90dd450c 11060#include "confdefs.h"
21d1c967
GD
11061#include <sys/types.h>
11062#include <sys/param.h>
a0b9e27f 11063int main() {
21d1c967
GD
11064
11065#if BYTE_ORDER != BIG_ENDIAN
11066 not big endian
11067#endif
a0b9e27f
MB
11068; return 0; }
11069EOF
521196a2 11070if { (eval echo configure:11071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11071 rm -rf conftest*
21d1c967 11072 ac_cv_c_bigendian=yes
3f345b47 11073else
a0b9e27f
MB
11074 echo "configure: failed program was:" >&5
11075 cat conftest.$ac_ext >&5
11076 rm -rf conftest*
11077 ac_cv_c_bigendian=no
3f345b47 11078fi
a0b9e27f 11079rm -f conftest*
3f345b47 11080else
a0b9e27f
MB
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
3f345b47 11083fi
a0b9e27f 11084rm -f conftest*
21d1c967
GD
11085if test $ac_cv_c_bigendian = unknown; then
11086if test "$cross_compiling" = yes; then
11087 ac_cv_c_bigendian=unknown
10f2d63a 11088else
a0b9e27f 11089 cat > conftest.$ac_ext <<EOF
521196a2 11090#line 11091 "configure"
90dd450c 11091#include "confdefs.h"
21d1c967
GD
11092main () {
11093 /* Are we little or big endian? From Harbison&Steele. */
11094 union
11095 {
11096 long l;
11097 char c[sizeof (long)];
11098 } u;
11099 u.l = 1;
11100 exit (u.c[sizeof (long) - 1] == 1);
11101}
a0b9e27f 11102EOF
521196a2 11103if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 11104then
21d1c967 11105 ac_cv_c_bigendian=no
3f345b47 11106else
a0b9e27f
MB
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 rm -fr conftest*
11110 ac_cv_c_bigendian=yes
247f5006 11111fi
a0b9e27f 11112rm -fr conftest*
247f5006 11113fi
a0b9e27f 11114
3f345b47 11115fi
8168de4c 11116fi
a0b9e27f
MB
11117
11118echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 11119if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 11120 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
11121fi
11122if test $ac_cv_c_bigendian = yes; then
a0b9e27f 11123 cat >> confdefs.h <<\EOF
247f5006 11124#define WORDS_BIGENDIAN 1
a0b9e27f 11125EOF
247f5006
VZ
11126
11127fi
11128
11129
a0b9e27f 11130echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
521196a2 11131echo "configure:11132: checking how to run the C++ preprocessor" >&5
247f5006 11132if test -z "$CXXCPP"; then
a0b9e27f
MB
11133if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11135else
a0b9e27f
MB
11136 ac_ext=C
11137# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11138ac_cpp='$CXXCPP $CPPFLAGS'
11139ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11140ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11141cross_compiling=$ac_cv_prog_cxx_cross
11142 CXXCPP="${CXX-g++} -E"
11143 cat > conftest.$ac_ext <<EOF
521196a2 11144#line 11145 "configure"
5c6fa7d2 11145#include "confdefs.h"
a0b9e27f
MB
11146#include <stdlib.h>
11147EOF
11148ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 11149{ (eval echo configure:11150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11150ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11151if test -z "$ac_err"; then
21d1c967 11152 :
698dcdb6 11153else
a0b9e27f
MB
11154 echo "$ac_err" >&5
11155 echo "configure: failed program was:" >&5
698dcdb6 11156 cat conftest.$ac_ext >&5
a0b9e27f
MB
11157 rm -rf conftest*
11158 CXXCPP=/lib/cpp
247f5006 11159fi
a0b9e27f
MB
11160rm -f conftest*
11161 ac_cv_prog_CXXCPP="$CXXCPP"
11162ac_ext=C
11163# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11164ac_cpp='$CXXCPP $CPPFLAGS'
11165ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11166ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11167cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11168fi
90dd450c 11169fi
a0b9e27f
MB
11170CXXCPP="$ac_cv_prog_CXXCPP"
11171echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11172
1725144d 11173
21d1c967 11174 if test "$cross_compiling" = "yes"; then
a0b9e27f 11175 cat >> confdefs.h <<\EOF
21d1c967 11176#define wxUSE_IOSTREAMH 1
a0b9e27f 11177EOF
ab9b9eab 11178
21d1c967 11179 else
a0b9e27f
MB
11180
11181 ac_ext=C
11182# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11183ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11184ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11185ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11186cross_compiling=$ac_cv_prog_cxx_cross
52127426 11187
247f5006 11188
a0b9e27f 11189 for ac_hdr in iostream
21d1c967 11190do
a0b9e27f
MB
11191ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11192echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 11193echo "configure:11194: checking for $ac_hdr" >&5
a0b9e27f
MB
11194if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11196else
11197 cat > conftest.$ac_ext <<EOF
521196a2 11198#line 11199 "configure"
ab9b9eab 11199#include "confdefs.h"
a0b9e27f
MB
11200#include <$ac_hdr>
11201EOF
11202ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 11203{ (eval echo configure:11204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11204ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11205if test -z "$ac_err"; then
11206 rm -rf conftest*
11207 eval "ac_cv_header_$ac_safe=yes"
11208else
11209 echo "$ac_err" >&5
11210 echo "configure: failed program was:" >&5
ab9b9eab 11211 cat conftest.$ac_ext >&5
a0b9e27f
MB
11212 rm -rf conftest*
11213 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11214fi
a0b9e27f 11215rm -f conftest*
90dd450c 11216fi
a0b9e27f
MB
11217if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11220 cat >> confdefs.h <<EOF
11221#define $ac_tr_hdr 1
11222EOF
11223
11224else
11225 echo "$ac_t""no" 1>&6
90dd450c 11226fi
21d1c967 11227done
10f2d63a 11228
8284b0c5 11229
21d1c967
GD
11230 if test "$ac_cv_header_iostream" = "yes" ; then
11231 :
11232 else
a0b9e27f 11233 cat >> confdefs.h <<\EOF
21d1c967 11234#define wxUSE_IOSTREAMH 1
a0b9e27f 11235EOF
788deba1 11236
90dd450c 11237 fi
ab9b9eab 11238
21d1c967 11239 ac_ext=c
a0b9e27f 11240# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11241ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11242ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11243ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11244cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11245
21d1c967 11246 fi
ab9b9eab 11247
52127426 11248
8284b0c5 11249
a0b9e27f 11250 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
521196a2 11251echo "configure:11252: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11252if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11254else
a0b9e27f
MB
11255
11256
11257 ac_ext=C
11258# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11259ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11260ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11261ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11262cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11263
8284b0c5 11264
a0b9e27f 11265 cat > conftest.$ac_ext <<EOF
521196a2 11266#line 11267 "configure"
ab9b9eab 11267#include "confdefs.h"
21d1c967 11268
a0b9e27f
MB
11269
11270int main() {
21d1c967
GD
11271
11272 bool b = true;
11273
11274 return 0;
a0b9e27f
MB
11275
11276; return 0; }
11277EOF
521196a2 11278if { (eval echo configure:11279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11279 rm -rf conftest*
11280
21d1c967 11281 wx_cv_cpp_bool=yes
a0b9e27f 11282
698dcdb6 11283else
a0b9e27f
MB
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287
21d1c967 11288 wx_cv_cpp_bool=no
a0b9e27f
MB
11289
11290
698dcdb6 11291fi
a0b9e27f 11292rm -f conftest*
21d1c967
GD
11293
11294 ac_ext=c
a0b9e27f 11295# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11296ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11297ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11298ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11299cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11300
a0b9e27f 11301
247f5006 11302fi
a0b9e27f
MB
11303
11304echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11305
11306 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11307 cat >> confdefs.h <<\EOF
21d1c967 11308#define HAVE_BOOL 1
a0b9e27f 11309EOF
ab9b9eab 11310
21d1c967
GD
11311 fi
11312
52127426 11313
8284b0c5 11314
a0b9e27f 11315 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
521196a2 11316echo "configure:11317: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11317if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11319else
a0b9e27f
MB
11320
11321
11322 ac_ext=C
11323# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11324ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11325ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11326ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11327cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11328
8284b0c5 11329
a0b9e27f 11330 cat > conftest.$ac_ext <<EOF
521196a2 11331#line 11332 "configure"
986ecc86
VZ
11332#include "confdefs.h"
11333
11334 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11335
11336int main() {
986ecc86
VZ
11337
11338 return 0;
a0b9e27f
MB
11339
11340; return 0; }
11341EOF
521196a2 11342if { (eval echo configure:11343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11343 rm -rf conftest*
11344
11345 cat > conftest.$ac_ext <<EOF
521196a2 11346#line 11347 "configure"
986ecc86
VZ
11347#include "confdefs.h"
11348
11349 class Foo { public: explicit Foo(int) {} };
11350 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11351
11352int main() {
986ecc86
VZ
11353
11354 TakeFoo(17);
11355 return 0;
a0b9e27f
MB
11356
11357; return 0; }
11358EOF
521196a2 11359if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11360 rm -rf conftest*
986ecc86
VZ
11361 wx_cv_explicit=no
11362else
a0b9e27f
MB
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -rf conftest*
11366 wx_cv_explicit=yes
11367
986ecc86 11368fi
a0b9e27f
MB
11369rm -f conftest*
11370
986ecc86 11371else
a0b9e27f
MB
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11374 rm -rf conftest*
11375 wx_cv_explicit=no
11376
986ecc86 11377fi
a0b9e27f 11378rm -f conftest*
986ecc86
VZ
11379
11380 ac_ext=c
a0b9e27f 11381# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11382ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11383ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11384ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11385cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11386
a0b9e27f 11387
247f5006 11388fi
a0b9e27f
MB
11389
11390echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11391
11392 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11393 cat >> confdefs.h <<\EOF
986ecc86 11394#define HAVE_EXPLICIT 1
a0b9e27f 11395EOF
986ecc86
VZ
11396
11397 fi
11398
8284b0c5 11399
521196a2
MB
11400echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11401echo "configure:11402: checking whether the compiler supports const_cast<>" >&5
11402if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11403 echo $ac_n "(cached) $ac_c" 1>&6
11404else
11405
11406 ac_ext=C
11407# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11408ac_cpp='$CXXCPP $CPPFLAGS'
11409ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11410ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11411cross_compiling=$ac_cv_prog_cxx_cross
11412
11413 cat > conftest.$ac_ext <<EOF
11414#line 11415 "configure"
11415#include "confdefs.h"
11416
11417int main() {
11418int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11419; return 0; }
11420EOF
11421if { (eval echo configure:11422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11422 rm -rf conftest*
11423 ac_cv_cxx_const_cast=yes
11424else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428 ac_cv_cxx_const_cast=no
11429fi
11430rm -f conftest*
11431 ac_ext=c
11432# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11433ac_cpp='$CPP $CPPFLAGS'
11434ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11435ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11436cross_compiling=$ac_cv_prog_cc_cross
11437
11438
11439fi
11440
11441echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11442if test "$ac_cv_cxx_const_cast" = yes; then
11443 cat >> confdefs.h <<\EOF
11444#define HAVE_CONST_CAST
11445EOF
11446
11447fi
11448
11449
8284b0c5 11450
21d1c967
GD
11451SEARCH_INCLUDE="\
11452 /usr/local/include \
11453 \
11454 /usr/Motif-1.2/include \
11455 /usr/Motif-2.1/include \
11456 \
11457 /usr/include/Motif1.2 \
11458 /opt/xpm/include/X11 \
11459 /opt/GBxpm/include/ \
11460 /opt/GBxpm/X11/include/ \
11461 \
11462 /usr/Motif1.2/include \
11463 /usr/dt/include \
11464 /usr/openwin/include \
11465 \
11466 /usr/include/Xm \
11467 \
11468 /usr/X11R6/include \
11469 /usr/X11R6.4/include \
11470 /usr/X11R5/include \
11471 /usr/X11R4/include \
11472 \
11473 /usr/include/X11R6 \
11474 /usr/include/X11R5 \
11475 /usr/include/X11R4 \
11476 \
11477 /usr/local/X11R6/include \
11478 /usr/local/X11R5/include \
11479 /usr/local/X11R4/include \
11480 \
11481 /usr/local/include/X11R6 \
11482 /usr/local/include/X11R5 \
11483 /usr/local/include/X11R4 \
11484 \
11485 /usr/X11/include \
11486 /usr/include/X11 \
11487 /usr/local/X11/include \
11488 /usr/local/include/X11 \
11489 \
11490 /usr/X386/include \
11491 /usr/x386/include \
11492 /usr/XFree86/include/X11 \
11493 \
11494 X:/XFree86/include \
11495 X:/XFree86/include/X11 \
11496 \
11497 /usr/include/gtk \
11498 /usr/local/include/gtk \
11499 /usr/include/glib \
11500 /usr/local/include/glib \
11501 \
11502 /usr/include/qt \
11503 /usr/local/include/qt \
11504 \
11505 /usr/include/windows \
11506 /usr/include/wine \
11507 /usr/local/include/wine \
11508 \
11509 /usr/unsupported/include \
11510 /usr/athena/include \
11511 /usr/local/x11r5/include \
11512 /usr/lpp/Xamples/include \
11513 \
2b5f62a0 11514 /usr/openwin/share/include"
21d1c967
GD
11515
11516SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11517
8284b0c5 11518
a0b9e27f 11519cat > confcache <<\EOF
21d1c967
GD
11520# This file is a shell script that caches the results of configure
11521# tests run on this system so they can be shared between configure
a0b9e27f
MB
11522# scripts and configure runs. It is not useful on other systems.
11523# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11524#
a0b9e27f
MB
11525# By default, configure uses ./config.cache as the cache file,
11526# creating it if it does not exist already. You can give configure
11527# the --cache-file=FILE option to use a different cache file; that is
11528# what configure does when it calls configure scripts in
11529# subdirectories, so they share the cache.
11530# Giving --cache-file=/dev/null disables caching, for debugging configure.
11531# config.status only pays attention to the cache file if you give it the
11532# --recheck option to rerun configure.
21d1c967 11533#
a0b9e27f 11534EOF
21d1c967
GD
11535# The following way of writing the cache mishandles newlines in values,
11536# but we know of no workaround that is simple, portable, and efficient.
11537# So, don't put newlines in cache variables' values.
11538# Ultrix sh set writes to stderr and can't be redirected directly,
11539# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11540(set) 2>&1 |
11541 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11542 *ac_space=\ *)
11543 # `set' does not quote correctly, so add quotes (double-quote substitution
11544 # turns \\\\ into \\, and sed turns \\ into \).
11545 sed -n \
11546 -e "s/'/'\\\\''/g" \
11547 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11548 ;;
11549 *)
11550 # `set' quotes correctly as required by POSIX, so do not add quotes.
11551 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11552 ;;
11553 esac >> confcache
11554if cmp -s $cache_file confcache; then
11555 :
11556else
21d1c967 11557 if test -w $cache_file; then
a0b9e27f
MB
11558 echo "updating cache $cache_file"
11559 cat confcache > $cache_file
21d1c967
GD
11560 else
11561 echo "not updating unwritable cache $cache_file"
11562 fi
ab9b9eab 11563fi
21d1c967 11564rm -f confcache
ab9b9eab 11565
247f5006 11566
a0b9e27f
MB
11567if test "$USE_LINUX" = 1; then
11568 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
521196a2 11569echo "configure:11570: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11570if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11571 echo $ac_n "(cached) $ac_c" 1>&6
11572else
11573
11574 cat > conftest.$ac_ext <<EOF
521196a2 11575#line 11576 "configure"
ab9b9eab 11576#include "confdefs.h"
21d1c967 11577#include <features.h>
a0b9e27f 11578int main() {
ab9b9eab 11579
21d1c967
GD
11580 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11581 #error not glibc2.1
11582 #endif
a0b9e27f
MB
11583
11584; return 0; }
11585EOF
521196a2 11586if { (eval echo configure:11587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11587 rm -rf conftest*
11588
21d1c967 11589 wx_cv_lib_glibc21=yes
a0b9e27f 11590
698dcdb6 11591else
a0b9e27f
MB
11592 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 rm -rf conftest*
11595
21d1c967 11596 wx_cv_lib_glibc21=no
a0b9e27f
MB
11597
11598
5c6fa7d2 11599fi
a0b9e27f
MB
11600rm -f conftest*
11601
247f5006 11602fi
a0b9e27f
MB
11603
11604echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11605 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11606 cat >> confdefs.h <<\EOF
21d1c967 11607#define wxHAVE_GLIBC2 1
a0b9e27f 11608EOF
1e487827 11609
90dd450c 11610 fi
ab9b9eab
VZ
11611fi
11612
5c0a20c3
VZ
11613if test "x$wx_cv_lib_glibc21" = "xyes"; then
11614 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11615 cat >> confdefs.h <<\EOF
5c0a20c3 11616#define _GNU_SOURCE 1
a0b9e27f 11617EOF
5c0a20c3
VZ
11618
11619 fi
11620fi
11621
8284b0c5
MB
11622
11623
21d1c967
GD
11624REGEX_INCLUDE=
11625if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11626 cat >> confdefs.h <<\EOF
21d1c967 11627#define wxUSE_REGEX 1
a0b9e27f 11628EOF
698dcdb6 11629
8284b0c5 11630
21d1c967 11631 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11632 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11633echo $ac_n "checking for regex.h""... $ac_c" 1>&6
521196a2 11634echo "configure:11635: checking for regex.h" >&5
a0b9e27f
MB
11635if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637else
11638 cat > conftest.$ac_ext <<EOF
521196a2 11639#line 11640 "configure"
247f5006
VZ
11640#include "confdefs.h"
11641#include <regex.h>
a0b9e27f
MB
11642EOF
11643ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 11644{ (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11645ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11646if test -z "$ac_err"; then
11647 rm -rf conftest*
11648 eval "ac_cv_header_$ac_safe=yes"
11649else
11650 echo "$ac_err" >&5
11651 echo "configure: failed program was:" >&5
21d1c967 11652 cat conftest.$ac_ext >&5
a0b9e27f
MB
11653 rm -rf conftest*
11654 eval "ac_cv_header_$ac_safe=no"
21d1c967 11655fi
a0b9e27f 11656rm -f conftest*
698dcdb6 11657fi
a0b9e27f
MB
11658if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11659 echo "$ac_t""yes" 1>&6
11660 for ac_func in regcomp
21d1c967 11661do
a0b9e27f 11662echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 11663echo "configure:11664: checking for $ac_func" >&5
a0b9e27f
MB
11664if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11666else
a0b9e27f 11667 cat > conftest.$ac_ext <<EOF
521196a2 11668#line 11669 "configure"
a0b9e27f
MB
11669#include "confdefs.h"
11670/* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func(); below. */
21d1c967
GD
11672#include <assert.h>
11673/* Override any gcc2 internal prototype to avoid an error. */
11674/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11675 builtin and then its argument prototype would still apply. */
11676char $ac_func();
11677
11678int main() {
11679
21d1c967
GD
11680/* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11684choke me
11685#else
a0b9e27f 11686$ac_func();
21d1c967 11687#endif
90dd450c 11688
a0b9e27f
MB
11689; return 0; }
11690EOF
521196a2 11691if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11692 rm -rf conftest*
11693 eval "ac_cv_func_$ac_func=yes"
11694else
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 eval "ac_cv_func_$ac_func=no"
11699fi
11700rm -f conftest*
11701fi
5c6fa7d2 11702
a0b9e27f
MB
11703if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11706 cat >> confdefs.h <<EOF
11707#define $ac_tr_func 1
11708EOF
11709
11710else
11711 echo "$ac_t""no" 1>&6
698dcdb6 11712fi
21d1c967
GD
11713done
11714
a0b9e27f
MB
11715else
11716 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11717fi
11718
8284b0c5 11719
21d1c967
GD
11720 if test "x$ac_cv_func_regcomp" != "xyes"; then
11721 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11722 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11723 else
a0b9e27f 11724 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11725 wxUSE_REGEX=builtin
11726 fi
11727 else
11728 wxUSE_REGEX=sys
11729 fi
ab9b9eab 11730 fi
90dd450c 11731
21d1c967
GD
11732 if test "$wxUSE_REGEX" = "builtin" ; then
11733 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11734 fi
21d1c967 11735fi
90dd450c 11736
8284b0c5 11737
21d1c967
GD
11738ZLIB_INCLUDE=
11739ZLIB_LINK=
11740if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11741 cat >> confdefs.h <<\EOF
21d1c967 11742#define wxUSE_ZLIB 1
a0b9e27f 11743EOF
21d1c967 11744
8284b0c5 11745
21d1c967 11746 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11747 if test "$USE_DARWIN" = 1; then
11748 system_zlib_h_ok="yes"
11749 else
11750 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
521196a2 11751echo "configure:11752: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11752if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11753 echo $ac_n "(cached) $ac_c" 1>&6
11754else
11755 if test "$cross_compiling" = yes; then
89e6bf6d 11756 unset ac_cv_header_zlib_h
d775acfa 11757
d643b80e
VZ
11758else
11759 cat > conftest.$ac_ext <<EOF
521196a2 11760#line 11761 "configure"
d643b80e
VZ
11761#include "confdefs.h"
11762
d775acfa
VZ
11763 #include <zlib.h>
11764 #include <stdio.h>
d643b80e 11765
d775acfa
VZ
11766
11767 int main()
11768 {
11769 FILE *f=fopen("conftestval", "w");
11770 if (!f) exit(1);
11771 fprintf(f, "%s",
11772 ZLIB_VERSION[0] == '1' &&
11773 (ZLIB_VERSION[2] > '1' ||
11774 (ZLIB_VERSION[2] == '1' &&
11775 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11776 exit(0);
11777 }
11778
d643b80e 11779
d643b80e 11780EOF
521196a2 11781if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11782then
11783 ac_cv_header_zlib_h=`cat conftestval`
11784else
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 rm -fr conftest*
11788 ac_cv_header_zlib_h=no
11789fi
11790rm -fr conftest*
11791fi
11792
d775acfa 11793
d643b80e
VZ
11794fi
11795
11796echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11797 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11798echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
521196a2 11799echo "configure:11800: checking for zlib.h" >&5
89e6bf6d
VZ
11800if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11802else
11803 cat > conftest.$ac_ext <<EOF
521196a2 11804#line 11805 "configure"
89e6bf6d
VZ
11805#include "confdefs.h"
11806#include <zlib.h>
11807EOF
11808ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 11809{ (eval echo configure:11810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11810ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11811if test -z "$ac_err"; then
11812 rm -rf conftest*
11813 eval "ac_cv_header_$ac_safe=yes"
11814else
11815 echo "$ac_err" >&5
11816 echo "configure: failed program was:" >&5
11817 cat conftest.$ac_ext >&5
11818 rm -rf conftest*
11819 eval "ac_cv_header_$ac_safe=no"
11820fi
11821rm -f conftest*
11822fi
11823if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11824 echo "$ac_t""yes" 1>&6
11825 :
11826else
11827 echo "$ac_t""no" 1>&6
11828fi
11829
d643b80e 11830
d775acfa
VZ
11831 system_zlib_h_ok=$ac_cv_header_zlib_h
11832 fi
11833
11834 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11835 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
521196a2 11836echo "configure:11837: checking for deflate in -lz" >&5
a0b9e27f
MB
11837ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11838if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11840else
a0b9e27f 11841 ac_save_LIBS="$LIBS"
21d1c967 11842LIBS="-lz $LIBS"
a0b9e27f 11843cat > conftest.$ac_ext <<EOF
521196a2 11844#line 11845 "configure"
ab9b9eab 11845#include "confdefs.h"
21d1c967
GD
11846/* Override any gcc2 internal prototype to avoid an error. */
11847/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11848 builtin and then its argument prototype would still apply. */
11849char deflate();
11850
11851int main() {
11852deflate()
11853; return 0; }
11854EOF
521196a2 11855if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11856 rm -rf conftest*
11857 eval "ac_cv_lib_$ac_lib_var=yes"
11858else
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11861 rm -rf conftest*
11862 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11863fi
a0b9e27f
MB
11864rm -f conftest*
11865LIBS="$ac_save_LIBS"
698dcdb6 11866
698dcdb6 11867fi
a0b9e27f
MB
11868if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11869 echo "$ac_t""yes" 1>&6
11870 ZLIB_LINK=" -lz"
11871else
11872 echo "$ac_t""no" 1>&6
11873fi
698dcdb6 11874
d643b80e 11875 fi
247f5006 11876
21d1c967
GD
11877 if test "x$ZLIB_LINK" = "x" ; then
11878 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11879 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11880 else
d643b80e 11881 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11882 wxUSE_ZLIB=builtin
11883 fi
11884 else
11885 wxUSE_ZLIB=sys
11886 fi
11887 fi
11888
11889 if test "$wxUSE_ZLIB" = "builtin" ; then
11890 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11891 fi
ab9b9eab
VZ
11892fi
11893
8284b0c5 11894
21d1c967
GD
11895PNG_INCLUDE=
11896PNG_LINK=
11897if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11898 cat >> confdefs.h <<\EOF
21d1c967 11899#define wxUSE_LIBPNG 1
a0b9e27f 11900EOF
90dd450c 11901
8284b0c5 11902
21d1c967 11903 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11904 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11905 wxUSE_LIBPNG=sys
11906 fi
90dd450c 11907
21d1c967 11908 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11909 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11910 wxUSE_LIBPNG=builtin
11911 fi
11912
11913 if test "$wxUSE_MGL" != 1 ; then
11914 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11915 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
521196a2 11916echo "configure:11917: checking for png.h > 0.90" >&5
5d3f766d
VZ
11917if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11918 echo $ac_n "(cached) $ac_c" 1>&6
11919else
11920 if test "$cross_compiling" = yes; then
89e6bf6d 11921 unset ac_cv_header_png_h
5d3f766d
VZ
11922
11923else
11924 cat > conftest.$ac_ext <<EOF
521196a2 11925#line 11926 "configure"
5d3f766d
VZ
11926#include "confdefs.h"
11927
11928 #include <png.h>
11929 #include <stdio.h>
11930
11931 int main()
11932 {
11933 FILE *f=fopen("conftestval", "w");
11934 if (!f) exit(1);
11935 fprintf(f, "%s",
11936 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11937 exit(0);
11938 }
11939
11940EOF
521196a2 11941if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11942then
11943 ac_cv_header_png_h=`cat conftestval`
11944else
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11947 rm -fr conftest*
11948 ac_cv_header_png_h=no
11949fi
11950rm -fr conftest*
11951fi
11952
11953
11954fi
11955
11956echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11957 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11958echo $ac_n "checking for png.h""... $ac_c" 1>&6
521196a2 11959echo "configure:11960: checking for png.h" >&5
89e6bf6d
VZ
11960if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11961 echo $ac_n "(cached) $ac_c" 1>&6
11962else
11963 cat > conftest.$ac_ext <<EOF
521196a2 11964#line 11965 "configure"
89e6bf6d
VZ
11965#include "confdefs.h"
11966#include <png.h>
11967EOF
11968ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 11969{ (eval echo configure:11970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11970ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11971if test -z "$ac_err"; then
11972 rm -rf conftest*
11973 eval "ac_cv_header_$ac_safe=yes"
11974else
11975 echo "$ac_err" >&5
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 rm -rf conftest*
11979 eval "ac_cv_header_$ac_safe=no"
11980fi
11981rm -f conftest*
11982fi
11983if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11984 echo "$ac_t""yes" 1>&6
11985 :
11986else
11987 echo "$ac_t""no" 1>&6
11988fi
11989
5d3f766d
VZ
11990
11991 if test "$ac_cv_header_png_h" = "yes"; then
11992 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
521196a2 11993echo "configure:11994: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11994ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11997else
a0b9e27f 11998 ac_save_LIBS="$LIBS"
21d1c967 11999LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 12000cat > conftest.$ac_ext <<EOF
521196a2 12001#line 12002 "configure"
90dd450c 12002#include "confdefs.h"
21d1c967
GD
12003/* Override any gcc2 internal prototype to avoid an error. */
12004/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12005 builtin and then its argument prototype would still apply. */
12006char png_check_sig();
90dd450c 12007
a0b9e27f
MB
12008int main() {
12009png_check_sig()
12010; return 0; }
12011EOF
521196a2 12012if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12013 rm -rf conftest*
12014 eval "ac_cv_lib_$ac_lib_var=yes"
12015else
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 eval "ac_cv_lib_$ac_lib_var=no"
12020fi
12021rm -f conftest*
12022LIBS="$ac_save_LIBS"
247f5006 12023
90dd450c 12024fi
a0b9e27f
MB
12025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12026 echo "$ac_t""yes" 1>&6
12027 PNG_LINK=" -lpng"
12028else
12029 echo "$ac_t""no" 1>&6
12030fi
90dd450c 12031
5d3f766d 12032 fi
247f5006 12033
21d1c967
GD
12034 if test "x$PNG_LINK" = "x" ; then
12035 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 12036 { 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 12037 else
0c98a14e 12038 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
12039 wxUSE_LIBPNG=builtin
12040 fi
12041 else
2b5f62a0 12042 wxUSE_LIBPNG=sys
21d1c967
GD
12043 fi
12044 fi
12045 fi
90dd450c 12046
21d1c967
GD
12047 if test "$wxUSE_LIBPNG" = "builtin" ; then
12048 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12049 fi
90dd450c 12050
21d1c967 12051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
12052fi
12053
8284b0c5 12054
21d1c967
GD
12055JPEG_INCLUDE=
12056JPEG_LINK=
12057if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 12058 cat >> confdefs.h <<\EOF
21d1c967 12059#define wxUSE_LIBJPEG 1
a0b9e27f 12060EOF
90dd450c 12061
8284b0c5 12062
21d1c967 12063 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 12064 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
12065 wxUSE_LIBJPEG=sys
12066 fi
90dd450c 12067
21d1c967
GD
12068 if test "$wxUSE_MGL" != 1 ; then
12069 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 12070 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
521196a2 12071echo "configure:12072: checking for jpeglib.h" >&5
a0b9e27f
MB
12072 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12074else
a0b9e27f 12075 cat > conftest.$ac_ext <<EOF
521196a2 12076#line 12077 "configure"
21d1c967 12077#include "confdefs.h"
90dd450c 12078
21d1c967
GD
12079 #undef HAVE_STDLIB_H
12080 #include <stdio.h>
12081 #include <jpeglib.h>
a0b9e27f
MB
12082
12083int main() {
90dd450c 12084
a0b9e27f
MB
12085
12086; return 0; }
12087EOF
521196a2 12088if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 12089 rm -rf conftest*
21d1c967 12090 ac_cv_header_jpeglib_h=yes
90dd450c 12091else
a0b9e27f
MB
12092 echo "configure: failed program was:" >&5
12093 cat conftest.$ac_ext >&5
12094 rm -rf conftest*
12095 ac_cv_header_jpeglib_h=no
12096
90dd450c 12097fi
a0b9e27f
MB
12098rm -f conftest*
12099
90dd450c
VZ
12100fi
12101
a0b9e27f 12102 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 12103
21d1c967 12104 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 12105 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
521196a2 12106echo "configure:12107: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
12107ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12108if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12110else
a0b9e27f 12111 ac_save_LIBS="$LIBS"
21d1c967 12112LIBS="-ljpeg $LIBS"
a0b9e27f 12113cat > conftest.$ac_ext <<EOF
521196a2 12114#line 12115 "configure"
21d1c967
GD
12115#include "confdefs.h"
12116/* Override any gcc2 internal prototype to avoid an error. */
12117/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12118 builtin and then its argument prototype would still apply. */
12119char jpeg_read_header();
12120
12121int main() {
12122jpeg_read_header()
12123; return 0; }
12124EOF
521196a2 12125if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12126 rm -rf conftest*
12127 eval "ac_cv_lib_$ac_lib_var=yes"
12128else
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 rm -rf conftest*
12132 eval "ac_cv_lib_$ac_lib_var=no"
12133fi
12134rm -f conftest*
12135LIBS="$ac_save_LIBS"
12136
12137fi
12138if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
21d1c967 12140 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12141else
12142 echo "$ac_t""no" 1>&6
90dd450c
VZ
12143fi
12144
21d1c967 12145 fi
90dd450c 12146
21d1c967
GD
12147 if test "x$JPEG_LINK" = "x" ; then
12148 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12149 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12150 else
a0b9e27f 12151 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12152 wxUSE_LIBJPEG=builtin
12153 fi
12154 else
12155 wxUSE_LIBJPEG=sys
12156 fi
12157 fi
12158 fi
90dd450c 12159
21d1c967
GD
12160 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12161 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12162 fi
12163fi
90dd450c 12164
8284b0c5 12165
21d1c967
GD
12166TIFF_INCLUDE=
12167TIFF_LINK=
2b5f62a0 12168TIFF_PREREQ_LINKS=-lm
21d1c967 12169if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12170 cat >> confdefs.h <<\EOF
21d1c967 12171#define wxUSE_LIBTIFF 1
a0b9e27f 12172EOF
21d1c967 12173
8284b0c5 12174
21d1c967 12175 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12176 if test "$wxUSE_LIBJPEG" = "sys"; then
12177 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12178 fi
12179 if test "$wxUSE_ZLIB" = "sys"; then
12180 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12181 fi
a0b9e27f
MB
12182 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12183echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
521196a2 12184echo "configure:12185: checking for tiffio.h" >&5
a0b9e27f
MB
12185if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
12187else
12188 cat > conftest.$ac_ext <<EOF
521196a2 12189#line 12190 "configure"
247f5006
VZ
12190#include "confdefs.h"
12191#include <tiffio.h>
a0b9e27f
MB
12192EOF
12193ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 12194{ (eval echo configure:12195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12195ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12196if test -z "$ac_err"; then
12197 rm -rf conftest*
12198 eval "ac_cv_header_$ac_safe=yes"
12199else
12200 echo "$ac_err" >&5
12201 echo "configure: failed program was:" >&5
21d1c967 12202 cat conftest.$ac_ext >&5
a0b9e27f
MB
12203 rm -rf conftest*
12204 eval "ac_cv_header_$ac_safe=no"
21d1c967 12205fi
a0b9e27f 12206rm -f conftest*
21d1c967 12207fi
a0b9e27f
MB
12208if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12209 echo "$ac_t""yes" 1>&6
12210 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
521196a2 12211echo "configure:12212: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12212ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12213if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12214 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12215else
a0b9e27f 12216 ac_save_LIBS="$LIBS"
2b5f62a0 12217LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12218cat > conftest.$ac_ext <<EOF
521196a2 12219#line 12220 "configure"
ab9b9eab
VZ
12220#include "confdefs.h"
12221/* Override any gcc2 internal prototype to avoid an error. */
12222/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12223 builtin and then its argument prototype would still apply. */
12224char TIFFError();
ab9b9eab 12225
a0b9e27f
MB
12226int main() {
12227TIFFError()
12228; return 0; }
12229EOF
521196a2 12230if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12231 rm -rf conftest*
12232 eval "ac_cv_lib_$ac_lib_var=yes"
12233else
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12236 rm -rf conftest*
12237 eval "ac_cv_lib_$ac_lib_var=no"
12238fi
12239rm -f conftest*
12240LIBS="$ac_save_LIBS"
247f5006 12241
21d1c967 12242fi
a0b9e27f
MB
12243if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12244 echo "$ac_t""yes" 1>&6
12245 TIFF_LINK=" -ltiff"
12246else
12247 echo "$ac_t""no" 1>&6
12248fi
cd6d6d5b 12249
a0b9e27f
MB
12250
12251else
12252 echo "$ac_t""no" 1>&6
12253fi
8284b0c5 12254
247f5006 12255
21d1c967
GD
12256 if test "x$TIFF_LINK" = "x" ; then
12257 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12258 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12259 else
a0b9e27f 12260 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12261 wxUSE_LIBTIFF=builtin
d8356fa3 12262 fi
d8356fa3 12263 else
21d1c967 12264 wxUSE_LIBTIFF=sys
d8356fa3 12265 fi
21d1c967 12266 fi
d8356fa3 12267
21d1c967
GD
12268 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12269 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12270 fi
21d1c967 12271fi
10f2d63a 12272
8284b0c5 12273
21d1c967 12274AFMINSTALL=
2b5f62a0 12275WIN32INSTALL=
90dd450c 12276
21d1c967
GD
12277TOOLKIT=
12278TOOLKIT_INCLUDE=
12279WIDGET_SET=
12280
12281if test "$USE_WIN32" = 1 ; then
a0b9e27f 12282 for ac_hdr in w32api.h
21d1c967 12283do
a0b9e27f
MB
12284ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12285echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 12286echo "configure:12287: checking for $ac_hdr" >&5
a0b9e27f
MB
12287if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12289else
12290 cat > conftest.$ac_ext <<EOF
521196a2 12291#line 12292 "configure"
247f5006 12292#include "confdefs.h"
a0b9e27f
MB
12293#include <$ac_hdr>
12294EOF
12295ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 12296{ (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12297ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12298if test -z "$ac_err"; then
12299 rm -rf conftest*
12300 eval "ac_cv_header_$ac_safe=yes"
12301else
12302 echo "$ac_err" >&5
12303 echo "configure: failed program was:" >&5
f79bd02d 12304 cat conftest.$ac_ext >&5
a0b9e27f
MB
12305 rm -rf conftest*
12306 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12307fi
a0b9e27f 12308rm -f conftest*
21d1c967 12309fi
a0b9e27f
MB
12310if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12313 cat >> confdefs.h <<EOF
12314#define $ac_tr_hdr 1
12315EOF
12316
12317else
12318 echo "$ac_t""no" 1>&6
21d1c967
GD
12319fi
12320done
f79bd02d 12321
a0b9e27f
MB
12322 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12323echo $ac_n "checking for windows.h""... $ac_c" 1>&6
521196a2 12324echo "configure:12325: checking for windows.h" >&5
a0b9e27f
MB
12325if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12326 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12327else
a0b9e27f 12328 cat > conftest.$ac_ext <<EOF
521196a2 12329#line 12330 "configure"
247f5006
VZ
12330#include "confdefs.h"
12331#include <windows.h>
a0b9e27f
MB
12332EOF
12333ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 12334{ (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12335ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12336if test -z "$ac_err"; then
12337 rm -rf conftest*
12338 eval "ac_cv_header_$ac_safe=yes"
12339else
12340 echo "$ac_err" >&5
12341 echo "configure: failed program was:" >&5
90dd450c 12342 cat conftest.$ac_ext >&5
a0b9e27f
MB
12343 rm -rf conftest*
12344 eval "ac_cv_header_$ac_safe=no"
90dd450c 12345fi
a0b9e27f 12346rm -f conftest*
90dd450c 12347fi
a0b9e27f
MB
12348if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12349 echo "$ac_t""yes" 1>&6
21d1c967 12350 :
90dd450c 12351else
a0b9e27f 12352 echo "$ac_t""no" 1>&6
21d1c967 12353
a0b9e27f
MB
12354 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12355
5c6fa7d2 12356fi
7b4a847f 12357
5c6fa7d2 12358
a0b9e27f 12359 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
521196a2 12360echo "configure:12361: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12361if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12363else
a0b9e27f
MB
12364
12365 cat > conftest.$ac_ext <<EOF
521196a2 12366#line 12367 "configure"
f79bd02d 12367#include "confdefs.h"
21d1c967 12368#include <w32api.h>
a0b9e27f 12369int main() {
f79bd02d 12370
21d1c967
GD
12371 #define wxCHECK_W32API_VERSION( major, minor ) \
12372 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12373 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12374 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12375
12376 #if !wxCHECK_W32API_VERSION(1,1)
12377 #error You need w32api 1.1 or newer
12378 #endif
a0b9e27f
MB
12379
12380; return 0; }
12381EOF
521196a2 12382if { (eval echo configure:12383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12383 rm -rf conftest*
12384
21d1c967 12385 wx_cv_w32api_win32_ie=yes
a0b9e27f 12386
f79bd02d 12387else
a0b9e27f
MB
12388 echo "configure: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12390 rm -rf conftest*
12391
21d1c967 12392 wx_cv_w32api_win32_ie=no
a0b9e27f 12393
5c6fa7d2 12394fi
a0b9e27f
MB
12395rm -f conftest*
12396
247f5006 12397fi
a0b9e27f
MB
12398
12399echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12400 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12401 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12402 fi
f79bd02d 12403
21d1c967
GD
12404 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12405
12406 case "${host}" in
12407 *-*-cygwin* )
12408 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12409 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12410 esac
f79bd02d 12411
21d1c967
GD
12412 if test "$wxUSE_ODBC" = "yes" ; then
12413 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12414 fi
f79bd02d 12415
21d1c967
GD
12416 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12417 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12418
12419 WIN32INSTALL=win32install
f79bd02d 12420fi
f79bd02d 12421
b2fee376 12422if test "$USE_DARWIN" = 1; then
50bcbd3d 12423 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12424 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12425 else
12426 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12427 fi
12428fi
12429
21d1c967
GD
12430if test "$wxUSE_GUI" = "yes"; then
12431 USE_GUI=1
f79bd02d 12432
21d1c967 12433 GUI_TK_LIBRARY=
f79bd02d 12434
21d1c967
GD
12435 WXGTK12=
12436 WXGTK127=
12437 WXGTK20=
f79bd02d 12438
21d1c967
GD
12439 if test "$wxUSE_MSW" = 1 ; then
12440 TOOLKIT=MSW
12441 GUIDIST=MSW_DIST
f79bd02d 12442
89e6bf6d 12443 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12444 fi
12445
21d1c967 12446 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12447 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
521196a2 12448echo "configure:12449: checking for GTK+ version" >&5
21d1c967
GD
12449
12450 gtk_version_cached=1
a0b9e27f
MB
12451 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12452 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12453else
a0b9e27f 12454
21d1c967 12455 gtk_version_cached=0
a0b9e27f 12456 echo "$ac_t""" 1>&6
f79bd02d 12457
21d1c967
GD
12458 GTK_MODULES=
12459 if test "$wxUSE_THREADS" = "yes"; then
12460 GTK_MODULES=gthread
12461 fi
f79bd02d 12462
2b5f62a0 12463 wx_cv_lib_gtk=
21d1c967
GD
12464 if test "x$wxUSE_GTK2" = "xyes"; then
12465 # Check whether --enable-gtktest or --disable-gtktest was given.
12466if test "${enable_gtktest+set}" = set; then
12467 enableval="$enable_gtktest"
a0b9e27f 12468 :
f79bd02d 12469else
21d1c967 12470 enable_gtktest=yes
a0b9e27f
MB
12471fi
12472
f79bd02d 12473
21d1c967
GD
12474 pkg_config_args=gtk+-2.0
12475 for module in . $GTK_MODULES
12476 do
12477 case "$module" in
a0b9e27f 12478 gthread)
21d1c967
GD
12479 pkg_config_args="$pkg_config_args gthread-2.0"
12480 ;;
12481 esac
12482 done
12483
12484 no_gtk=""
f79bd02d 12485
21d1c967
GD
12486 # Extract the first word of "pkg-config", so it can be a program name with args.
12487set dummy pkg-config; ac_word=$2
a0b9e27f 12488echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 12489echo "configure:12490: checking for $ac_word" >&5
a0b9e27f
MB
12490if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12491 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12492else
a0b9e27f
MB
12493 case "$PKG_CONFIG" in
12494 /*)
21d1c967
GD
12495 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12496 ;;
a0b9e27f
MB
12497 ?:/*)
12498 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12499 ;;
21d1c967 12500 *)
a0b9e27f
MB
12501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12502 ac_dummy="$PATH"
12503 for ac_dir in $ac_dummy; do
12504 test -z "$ac_dir" && ac_dir=.
12505 if test -f $ac_dir/$ac_word; then
12506 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12507 break
12508 fi
12509 done
12510 IFS="$ac_save_ifs"
21d1c967
GD
12511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12512 ;;
12513esac
f79bd02d 12514fi
a0b9e27f 12515PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12516if test -n "$PKG_CONFIG"; then
a0b9e27f 12517 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12518else
a0b9e27f 12519 echo "$ac_t""no" 1>&6
f79bd02d
JS
12520fi
12521
8284b0c5 12522
21d1c967
GD
12523 if test x$PKG_CONFIG != xno ; then
12524 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12525 :
12526 else
12527 echo *** pkg-config too old; version 0.7 or better required.
12528 no_gtk=yes
12529 PKG_CONFIG=no
12530 fi
12531 else
12532 no_gtk=yes
12533 fi
f79bd02d 12534
21d1c967 12535 min_gtk_version=2.0.0
a0b9e27f 12536 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
521196a2 12537echo "configure:12538: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12538
21d1c967
GD
12539 if test x$PKG_CONFIG != xno ; then
12540 ## don't try to run the test against uninstalled libtool libs
12541 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12542 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12543 enable_gtktest=no
12544 fi
f79bd02d 12545
21d1c967
GD
12546 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12547 :
12548 else
12549 no_gtk=yes
12550 fi
12551 fi
f79bd02d 12552
21d1c967
GD
12553 if test x"$no_gtk" = x ; then
12554 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12555 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12556 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12557 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12558 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12559 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12560 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12562 if test "x$enable_gtktest" = "xyes" ; then
12563 ac_save_CFLAGS="$CFLAGS"
12564 ac_save_LIBS="$LIBS"
12565 CFLAGS="$CFLAGS $GTK_CFLAGS"
12566 LIBS="$GTK_LIBS $LIBS"
12567 rm -f conf.gtktest
12568 if test "$cross_compiling" = yes; then
12569 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12570else
a0b9e27f 12571 cat > conftest.$ac_ext <<EOF
521196a2 12572#line 12573 "configure"
f79bd02d 12573#include "confdefs.h"
f79bd02d 12574
21d1c967
GD
12575#include <gtk/gtk.h>
12576#include <stdio.h>
12577#include <stdlib.h>
f79bd02d 12578
a0b9e27f 12579int
21d1c967
GD
12580main ()
12581{
12582 int major, minor, micro;
12583 char *tmp_version;
f79bd02d 12584
21d1c967 12585 system ("touch conf.gtktest");
f79bd02d 12586
21d1c967
GD
12587 /* HP/UX 9 (%@#!) writes to sscanf strings */
12588 tmp_version = g_strdup("$min_gtk_version");
12589 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12590 printf("%s, bad version string\n", "$min_gtk_version");
12591 exit(1);
12592 }
f79bd02d 12593
21d1c967
GD
12594 if ((gtk_major_version != $gtk_config_major_version) ||
12595 (gtk_minor_version != $gtk_config_minor_version) ||
12596 (gtk_micro_version != $gtk_config_micro_version))
12597 {
a0b9e27f 12598 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12599 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12600 gtk_major_version, gtk_minor_version, gtk_micro_version);
12601 printf ("*** was found! If pkg-config was correct, then it is best\n");
12602 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12603 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12604 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12605 printf("*** required on your system.\n");
12606 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12607 printf("*** to point to the correct configuration files\n");
a0b9e27f 12608 }
21d1c967
GD
12609 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12610 (gtk_minor_version != GTK_MINOR_VERSION) ||
12611 (gtk_micro_version != GTK_MICRO_VERSION))
12612 {
12613 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12614 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12615 printf("*** library (version %d.%d.%d)\n",
12616 gtk_major_version, gtk_minor_version, gtk_micro_version);
12617 }
12618 else
12619 {
12620 if ((gtk_major_version > major) ||
12621 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12622 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12623 {
12624 return 0;
12625 }
12626 else
12627 {
12628 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12629 gtk_major_version, gtk_minor_version, gtk_micro_version);
12630 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12631 major, minor, micro);
12632 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12633 printf("***\n");
12634 printf("*** If you have already installed a sufficiently new version, this error\n");
12635 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12636 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12637 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12638 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12639 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12640 printf("*** so that the correct libraries are found at run-time))\n");
12641 }
12642 }
12643 return 1;
12644}
f79bd02d 12645
a0b9e27f 12646EOF
521196a2 12647if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12648then
21d1c967 12649 :
f79bd02d 12650else
a0b9e27f
MB
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12653 rm -fr conftest*
12654 no_gtk=yes
f79bd02d 12655fi
a0b9e27f 12656rm -fr conftest*
f79bd02d 12657fi
a0b9e27f 12658
21d1c967
GD
12659 CFLAGS="$ac_save_CFLAGS"
12660 LIBS="$ac_save_LIBS"
12661 fi
12662 fi
12663 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12664 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12665 wx_cv_lib_gtk=2.0
21d1c967 12666 else
a0b9e27f 12667 echo "$ac_t""no" 1>&6
21d1c967
GD
12668 if test "$PKG_CONFIG" = "no" ; then
12669 echo "*** A new enough version of pkg-config was not found."
12670 echo "*** See http://pkgconfig.sourceforge.net"
12671 else
12672 if test -f conf.gtktest ; then
12673 :
12674 else
12675 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12676 ac_save_CFLAGS="$CFLAGS"
12677 ac_save_LIBS="$LIBS"
21d1c967
GD
12678 CFLAGS="$CFLAGS $GTK_CFLAGS"
12679 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12680 cat > conftest.$ac_ext <<EOF
521196a2 12681#line 12682 "configure"
f79bd02d 12682#include "confdefs.h"
21d1c967
GD
12683
12684#include <gtk/gtk.h>
12685#include <stdio.h>
f79bd02d 12686
a0b9e27f
MB
12687int main() {
12688 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12689; return 0; }
12690EOF
521196a2 12691if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12692 rm -rf conftest*
21d1c967
GD
12693 echo "*** The test program compiled, but did not run. This usually means"
12694 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12695 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12696 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12697 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12698 echo "*** is required on your system"
12699 echo "***"
12700 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12701 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12702else
a0b9e27f
MB
12703 echo "configure: failed program was:" >&5
12704 cat conftest.$ac_ext >&5
12705 rm -rf conftest*
12706 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12707 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12708fi
a0b9e27f 12709rm -f conftest*
21d1c967
GD
12710 CFLAGS="$ac_save_CFLAGS"
12711 LIBS="$ac_save_LIBS"
12712 fi
12713 fi
12714 GTK_CFLAGS=""
12715 GTK_LIBS=""
12716 :
12717 fi
a0b9e27f
MB
12718
12719
21d1c967 12720 rm -f conf.gtktest
f79bd02d 12721
2b5f62a0 12722 else
a0b9e27f 12723 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12724if test "${with_gtk_prefix+set}" = set; then
12725 withval="$with_gtk_prefix"
12726 gtk_config_prefix="$withval"
12727else
12728 gtk_config_prefix=""
a0b9e27f 12729fi
f79bd02d 12730
21d1c967
GD
12731# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12732if test "${with_gtk_exec_prefix+set}" = set; then
12733 withval="$with_gtk_exec_prefix"
12734 gtk_config_exec_prefix="$withval"
12735else
12736 gtk_config_exec_prefix=""
a0b9e27f
MB
12737fi
12738
21d1c967
GD
12739# Check whether --enable-gtktest or --disable-gtktest was given.
12740if test "${enable_gtktest+set}" = set; then
12741 enableval="$enable_gtktest"
a0b9e27f 12742 :
21d1c967
GD
12743else
12744 enable_gtktest=yes
a0b9e27f
MB
12745fi
12746
21d1c967
GD
12747
12748 for module in . $GTK_MODULES
12749 do
12750 case "$module" in
a0b9e27f 12751 gthread)
21d1c967
GD
12752 gtk_config_args="$gtk_config_args gthread"
12753 ;;
12754 esac
12755 done
12756
12757 if test x$gtk_config_exec_prefix != x ; then
12758 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12759 if test x${GTK_CONFIG+set} != xset ; then
12760 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12761 fi
12762 fi
12763 if test x$gtk_config_prefix != x ; then
12764 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12765 if test x${GTK_CONFIG+set} != xset ; then
12766 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12767 fi
12768 fi
12769
12770 # Extract the first word of "gtk-config", so it can be a program name with args.
12771set dummy gtk-config; ac_word=$2
a0b9e27f 12772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 12773echo "configure:12774: checking for $ac_word" >&5
a0b9e27f
MB
12774if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12775 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12776else
a0b9e27f
MB
12777 case "$GTK_CONFIG" in
12778 /*)
21d1c967
GD
12779 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12780 ;;
a0b9e27f
MB
12781 ?:/*)
12782 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12783 ;;
21d1c967 12784 *)
a0b9e27f
MB
12785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12786 ac_dummy="$PATH"
12787 for ac_dir in $ac_dummy; do
12788 test -z "$ac_dir" && ac_dir=.
12789 if test -f $ac_dir/$ac_word; then
12790 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12791 break
12792 fi
12793 done
12794 IFS="$ac_save_ifs"
21d1c967
GD
12795 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12796 ;;
12797esac
12798fi
a0b9e27f 12799GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12800if test -n "$GTK_CONFIG"; then
a0b9e27f 12801 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12802else
a0b9e27f 12803 echo "$ac_t""no" 1>&6
21d1c967
GD
12804fi
12805
12806 min_gtk_version=1.2.7
a0b9e27f 12807 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
521196a2 12808echo "configure:12809: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12809 no_gtk=""
12810 if test "$GTK_CONFIG" = "no" ; then
12811 no_gtk=yes
12812 else
12813 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12814 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12815 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12817 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12818 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12819 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12820 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12821 if test "x$enable_gtktest" = "xyes" ; then
12822 ac_save_CFLAGS="$CFLAGS"
12823 ac_save_LIBS="$LIBS"
12824 CFLAGS="$CFLAGS $GTK_CFLAGS"
12825 LIBS="$GTK_LIBS $LIBS"
12826 rm -f conf.gtktest
12827 if test "$cross_compiling" = yes; then
12828 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12829else
a0b9e27f 12830 cat > conftest.$ac_ext <<EOF
521196a2 12831#line 12832 "configure"
f79bd02d
JS
12832#include "confdefs.h"
12833
21d1c967
GD
12834#include <gtk/gtk.h>
12835#include <stdio.h>
12836#include <stdlib.h>
f79bd02d 12837
a0b9e27f 12838int
21d1c967
GD
12839main ()
12840{
12841 int major, minor, micro;
12842 char *tmp_version;
12843
12844 system ("touch conf.gtktest");
12845
12846 /* HP/UX 9 (%@#!) writes to sscanf strings */
12847 tmp_version = g_strdup("$min_gtk_version");
12848 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12849 printf("%s, bad version string\n", "$min_gtk_version");
12850 exit(1);
12851 }
90dd450c 12852
21d1c967
GD
12853 if ((gtk_major_version != $gtk_config_major_version) ||
12854 (gtk_minor_version != $gtk_config_minor_version) ||
12855 (gtk_micro_version != $gtk_config_micro_version))
12856 {
a0b9e27f 12857 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12858 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12859 gtk_major_version, gtk_minor_version, gtk_micro_version);
12860 printf ("*** was found! If gtk-config was correct, then it is best\n");
12861 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12862 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12863 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12864 printf("*** required on your system.\n");
12865 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12866 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12867 printf("*** before re-running configure\n");
a0b9e27f 12868 }
21d1c967
GD
12869#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12870 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12871 (gtk_minor_version != GTK_MINOR_VERSION) ||
12872 (gtk_micro_version != GTK_MICRO_VERSION))
12873 {
12874 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12875 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12876 printf("*** library (version %d.%d.%d)\n",
12877 gtk_major_version, gtk_minor_version, gtk_micro_version);
12878 }
12879#endif /* defined (GTK_MAJOR_VERSION) ... */
12880 else
12881 {
12882 if ((gtk_major_version > major) ||
12883 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12884 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12885 {
12886 return 0;
12887 }
12888 else
12889 {
12890 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12891 gtk_major_version, gtk_minor_version, gtk_micro_version);
12892 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12893 major, minor, micro);
12894 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12895 printf("***\n");
12896 printf("*** If you have already installed a sufficiently new version, this error\n");
12897 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12898 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12899 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12900 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12901 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12902 printf("*** so that the correct libraries are found at run-time))\n");
12903 }
12904 }
12905 return 1;
12906}
12907
a0b9e27f 12908EOF
521196a2 12909if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12910then
21d1c967
GD
12911 :
12912else
a0b9e27f
MB
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 rm -fr conftest*
12916 no_gtk=yes
21d1c967 12917fi
a0b9e27f 12918rm -fr conftest*
21d1c967 12919fi
a0b9e27f 12920
21d1c967
GD
12921 CFLAGS="$ac_save_CFLAGS"
12922 LIBS="$ac_save_LIBS"
12923 fi
12924 fi
12925 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12926 echo "$ac_t""yes" 1>&6
12927 wx_cv_lib_gtk=1.2.7
21d1c967 12928 else
a0b9e27f 12929 echo "$ac_t""no" 1>&6
21d1c967
GD
12930 if test "$GTK_CONFIG" = "no" ; then
12931 echo "*** The gtk-config script installed by GTK could not be found"
12932 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12933 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12934 echo "*** full path to gtk-config."
12935 else
12936 if test -f conf.gtktest ; then
12937 :
12938 else
12939 echo "*** Could not run GTK test program, checking why..."
12940 CFLAGS="$CFLAGS $GTK_CFLAGS"
12941 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12942 cat > conftest.$ac_ext <<EOF
521196a2 12943#line 12944 "configure"
21d1c967
GD
12944#include "confdefs.h"
12945
12946#include <gtk/gtk.h>
12947#include <stdio.h>
12948
a0b9e27f
MB
12949int main() {
12950 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12951; return 0; }
12952EOF
521196a2 12953if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12954 rm -rf conftest*
21d1c967
GD
12955 echo "*** The test program compiled, but did not run. This usually means"
12956 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12957 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12958 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12959 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12960 echo "*** is required on your system"
12961 echo "***"
12962 echo "*** If you have an old version installed, it is best to remove it, although"
12963 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12964 echo "***"
12965 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12966 echo "*** came with the system with the command"
12967 echo "***"
a0b9e27f 12968 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12969else
a0b9e27f
MB
12970 echo "configure: failed program was:" >&5
12971 cat conftest.$ac_ext >&5
12972 rm -rf conftest*
12973 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12974 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12975 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12976 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12977fi
a0b9e27f 12978rm -f conftest*
21d1c967
GD
12979 CFLAGS="$ac_save_CFLAGS"
12980 LIBS="$ac_save_LIBS"
12981 fi
12982 fi
12983 GTK_CFLAGS=""
12984 GTK_LIBS=""
12985 :
12986 fi
a0b9e27f
MB
12987
12988
21d1c967
GD
12989 rm -f conf.gtktest
12990
21d1c967 12991
2b5f62a0
VZ
12992 if test -z "$wx_cv_lib_gtk"; then
12993 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12994if test "${with_gtk_prefix+set}" = set; then
12995 withval="$with_gtk_prefix"
12996 gtk_config_prefix="$withval"
12997else
12998 gtk_config_prefix=""
a0b9e27f 12999fi
f79bd02d 13000
21d1c967
GD
13001# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
13002if test "${with_gtk_exec_prefix+set}" = set; then
13003 withval="$with_gtk_exec_prefix"
13004 gtk_config_exec_prefix="$withval"
13005else
13006 gtk_config_exec_prefix=""
a0b9e27f
MB
13007fi
13008
21d1c967
GD
13009# Check whether --enable-gtktest or --disable-gtktest was given.
13010if test "${enable_gtktest+set}" = set; then
13011 enableval="$enable_gtktest"
a0b9e27f 13012 :
90dd450c 13013else
21d1c967 13014 enable_gtktest=yes
a0b9e27f
MB
13015fi
13016
21d1c967
GD
13017
13018 for module in . $GTK_MODULES
13019 do
13020 case "$module" in
a0b9e27f 13021 gthread)
21d1c967
GD
13022 gtk_config_args="$gtk_config_args gthread"
13023 ;;
13024 esac
13025 done
13026
13027 if test x$gtk_config_exec_prefix != x ; then
13028 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
13029 if test x${GTK_CONFIG+set} != xset ; then
13030 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
13031 fi
13032 fi
13033 if test x$gtk_config_prefix != x ; then
13034 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
13035 if test x${GTK_CONFIG+set} != xset ; then
13036 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
13037 fi
13038 fi
13039
13040 # Extract the first word of "gtk-config", so it can be a program name with args.
13041set dummy gtk-config; ac_word=$2
a0b9e27f 13042echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 13043echo "configure:13044: checking for $ac_word" >&5
a0b9e27f
MB
13044if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
13045 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13046else
a0b9e27f
MB
13047 case "$GTK_CONFIG" in
13048 /*)
21d1c967
GD
13049 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13050 ;;
a0b9e27f
MB
13051 ?:/*)
13052 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
13053 ;;
21d1c967 13054 *)
a0b9e27f
MB
13055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13056 ac_dummy="$PATH"
13057 for ac_dir in $ac_dummy; do
13058 test -z "$ac_dir" && ac_dir=.
13059 if test -f $ac_dir/$ac_word; then
13060 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13061 break
13062 fi
13063 done
13064 IFS="$ac_save_ifs"
21d1c967
GD
13065 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13066 ;;
13067esac
13068fi
a0b9e27f 13069GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 13070if test -n "$GTK_CONFIG"; then
a0b9e27f 13071 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 13072else
a0b9e27f 13073 echo "$ac_t""no" 1>&6
21d1c967
GD
13074fi
13075
13076 min_gtk_version=1.2.3
a0b9e27f 13077 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
521196a2 13078echo "configure:13079: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
13079 no_gtk=""
13080 if test "$GTK_CONFIG" = "no" ; then
13081 no_gtk=yes
13082 else
13083 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13084 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13085 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13086 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13087 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13088 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13089 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13090 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13091 if test "x$enable_gtktest" = "xyes" ; then
13092 ac_save_CFLAGS="$CFLAGS"
13093 ac_save_LIBS="$LIBS"
13094 CFLAGS="$CFLAGS $GTK_CFLAGS"
13095 LIBS="$GTK_LIBS $LIBS"
13096 rm -f conf.gtktest
13097 if test "$cross_compiling" = yes; then
13098 echo $ac_n "cross compiling; assumed OK... $ac_c"
13099else
a0b9e27f 13100 cat > conftest.$ac_ext <<EOF
521196a2 13101#line 13102 "configure"
f79bd02d 13102#include "confdefs.h"
21d1c967
GD
13103
13104#include <gtk/gtk.h>
13105#include <stdio.h>
13106#include <stdlib.h>
13107
a0b9e27f 13108int
21d1c967
GD
13109main ()
13110{
13111 int major, minor, micro;
13112 char *tmp_version;
13113
13114 system ("touch conf.gtktest");
13115
13116 /* HP/UX 9 (%@#!) writes to sscanf strings */
13117 tmp_version = g_strdup("$min_gtk_version");
13118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13119 printf("%s, bad version string\n", "$min_gtk_version");
13120 exit(1);
13121 }
13122
13123 if ((gtk_major_version != $gtk_config_major_version) ||
13124 (gtk_minor_version != $gtk_config_minor_version) ||
13125 (gtk_micro_version != $gtk_config_micro_version))
13126 {
a0b9e27f 13127 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13128 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13129 gtk_major_version, gtk_minor_version, gtk_micro_version);
13130 printf ("*** was found! If gtk-config was correct, then it is best\n");
13131 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13132 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13133 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13134 printf("*** required on your system.\n");
13135 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13136 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13137 printf("*** before re-running configure\n");
a0b9e27f 13138 }
21d1c967
GD
13139#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13140 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13141 (gtk_minor_version != GTK_MINOR_VERSION) ||
13142 (gtk_micro_version != GTK_MICRO_VERSION))
13143 {
13144 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13145 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13146 printf("*** library (version %d.%d.%d)\n",
13147 gtk_major_version, gtk_minor_version, gtk_micro_version);
13148 }
13149#endif /* defined (GTK_MAJOR_VERSION) ... */
13150 else
13151 {
13152 if ((gtk_major_version > major) ||
13153 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13154 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13155 {
13156 return 0;
13157 }
13158 else
13159 {
13160 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13161 gtk_major_version, gtk_minor_version, gtk_micro_version);
13162 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13163 major, minor, micro);
13164 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13165 printf("***\n");
13166 printf("*** If you have already installed a sufficiently new version, this error\n");
13167 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13168 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13169 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13170 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13171 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13172 printf("*** so that the correct libraries are found at run-time))\n");
13173 }
13174 }
13175 return 1;
13176}
13177
a0b9e27f 13178EOF
521196a2 13179if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13180then
21d1c967
GD
13181 :
13182else
a0b9e27f
MB
13183 echo "configure: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13185 rm -fr conftest*
13186 no_gtk=yes
21d1c967 13187fi
a0b9e27f 13188rm -fr conftest*
21d1c967 13189fi
a0b9e27f 13190
21d1c967
GD
13191 CFLAGS="$ac_save_CFLAGS"
13192 LIBS="$ac_save_LIBS"
13193 fi
13194 fi
13195 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13196 echo "$ac_t""yes" 1>&6
13197 wx_cv_lib_gtk=1.2.3
21d1c967 13198 else
a0b9e27f 13199 echo "$ac_t""no" 1>&6
21d1c967
GD
13200 if test "$GTK_CONFIG" = "no" ; then
13201 echo "*** The gtk-config script installed by GTK could not be found"
13202 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13203 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13204 echo "*** full path to gtk-config."
13205 else
13206 if test -f conf.gtktest ; then
13207 :
13208 else
13209 echo "*** Could not run GTK test program, checking why..."
13210 CFLAGS="$CFLAGS $GTK_CFLAGS"
13211 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13212 cat > conftest.$ac_ext <<EOF
521196a2 13213#line 13214 "configure"
21d1c967
GD
13214#include "confdefs.h"
13215
13216#include <gtk/gtk.h>
13217#include <stdio.h>
f79bd02d 13218
a0b9e27f
MB
13219int main() {
13220 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13221; return 0; }
13222EOF
521196a2 13223if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13224 rm -rf conftest*
21d1c967
GD
13225 echo "*** The test program compiled, but did not run. This usually means"
13226 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13227 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13228 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13229 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13230 echo "*** is required on your system"
13231 echo "***"
13232 echo "*** If you have an old version installed, it is best to remove it, although"
13233 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13234 echo "***"
13235 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13236 echo "*** came with the system with the command"
13237 echo "***"
a0b9e27f 13238 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13239else
a0b9e27f
MB
13240 echo "configure: failed program was:" >&5
13241 cat conftest.$ac_ext >&5
13242 rm -rf conftest*
13243 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13244 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13245 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13246 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13247fi
a0b9e27f 13248rm -f conftest*
21d1c967
GD
13249 CFLAGS="$ac_save_CFLAGS"
13250 LIBS="$ac_save_LIBS"
13251 fi
13252 fi
13253 GTK_CFLAGS=""
13254 GTK_LIBS=""
13255 :
13256 fi
a0b9e27f
MB
13257
13258
21d1c967 13259 rm -f conf.gtktest
f79bd02d 13260
2b5f62a0 13261 fi
21d1c967
GD
13262 fi
13263
13264 if test -z "$wx_cv_lib_gtk"; then
13265 wx_cv_lib_gtk=none
13266 else
13267 wx_cv_cflags_gtk=$GTK_CFLAGS
13268 wx_cv_libs_gtk=$GTK_LIBS
13269 fi
a0b9e27f
MB
13270
13271
5c6fa7d2 13272fi
52127426 13273
8284b0c5 13274
21d1c967 13275 if test "$gtk_version_cached" = 1; then
a0b9e27f 13276 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13277 fi
13278
13279 case "$wx_cv_lib_gtk" in
13280 2.0) WXGTK20=1
2b5f62a0 13281 TOOLKIT_VERSION=2
21d1c967
GD
13282 ;;
13283 1.2.7) WXGTK127=1
13284 WXGTK12=1
13285 ;;
13286 1.2.3) WXGTK12=1
13287 ;;
a0b9e27f 13288 *) { echo "configure: error:
247f5006
VZ
13289Please check that gtk-config is in path, the directory
13290where GTK+ libraries are installed (returned by
13291'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13292equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13293 " 1>&2; exit 1; }
21d1c967
GD
13294 ;;
13295 esac
13296
b13cd66e
VZ
13297 if test "$WXGTK20" = 1; then
13298 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13299
f09359cf
VS
13300 succeeded=no
13301
13302 if test -z "$PKG_CONFIG"; then
13303 # Extract the first word of "pkg-config", so it can be a program name with args.
13304set dummy pkg-config; ac_word=$2
a0b9e27f 13305echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 13306echo "configure:13307: checking for $ac_word" >&5
a0b9e27f
MB
13307if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13308 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13309else
a0b9e27f
MB
13310 case "$PKG_CONFIG" in
13311 /*)
f09359cf
VS
13312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13313 ;;
a0b9e27f
MB
13314 ?:/*)
13315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13316 ;;
f09359cf 13317 *)
a0b9e27f
MB
13318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13319 ac_dummy="$PATH"
13320 for ac_dir in $ac_dummy; do
13321 test -z "$ac_dir" && ac_dir=.
13322 if test -f $ac_dir/$ac_word; then
13323 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13324 break
13325 fi
13326 done
13327 IFS="$ac_save_ifs"
f09359cf
VS
13328 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13329 ;;
13330esac
13331fi
a0b9e27f 13332PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13333if test -n "$PKG_CONFIG"; then
a0b9e27f 13334 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13335else
a0b9e27f 13336 echo "$ac_t""no" 1>&6
f09359cf
VS
13337fi
13338
13339 fi
13340
13341 if test "$PKG_CONFIG" = "no" ; then
13342 echo "*** The pkg-config script could not be found. Make sure it is"
13343 echo "*** in your path, or set the PKG_CONFIG environment variable"
13344 echo "*** to the full path to pkg-config."
13345 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13346 else
13347 PKG_CONFIG_MIN_VERSION=0.9.0
13348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13349 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
521196a2 13350echo "configure:13351: checking for pangoft2" >&5
f09359cf
VS
13351
13352 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13353 echo "$ac_t""yes" 1>&6
f09359cf
VS
13354 succeeded=yes
13355
a0b9e27f 13356 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
521196a2 13357echo "configure:13358: checking PANGOFT2_CFLAGS" >&5
f09359cf 13358 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13359 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13360
a0b9e27f 13361 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
521196a2 13362echo "configure:13363: checking PANGOFT2_LIBS" >&5
f09359cf 13363 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13364 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13365 else
13366 PANGOFT2_CFLAGS=""
13367 PANGOFT2_LIBS=""
a0b9e27f 13368 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13369 ## do set a variable so people can do so.
13370 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13371
f09359cf
VS
13372 fi
13373
a0b9e27f
MB
13374
13375
f09359cf
VS
13376 else
13377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13379 fi
13380 fi
13381
13382 if test $succeeded = yes; then
a0b9e27f 13383
b13cd66e
VZ
13384 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13385 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13386
f09359cf 13387 else
a0b9e27f
MB
13388
13389 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13390 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13391
13392
f09359cf
VS
13393 fi
13394
b13cd66e 13395 fi
2b5f62a0
VZ
13396 else
13397 if test "$wxUSE_UNICODE" = "yes"; then
13398 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13399 wxUSE_UNICODE=no
13400 fi
13401 fi
13402
13403 if test "$USE_DARWIN" != 1; then
13404 for ac_func in poll
13405do
13406echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 13407echo "configure:13408: checking for $ac_func" >&5
2b5f62a0
VZ
13408if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13409 echo $ac_n "(cached) $ac_c" 1>&6
13410else
13411 cat > conftest.$ac_ext <<EOF
521196a2 13412#line 13413 "configure"
2b5f62a0
VZ
13413#include "confdefs.h"
13414/* System header to define __stub macros and hopefully few prototypes,
13415 which can conflict with char $ac_func(); below. */
13416#include <assert.h>
13417/* Override any gcc2 internal prototype to avoid an error. */
13418/* We use char because int might match the return type of a gcc2
13419 builtin and then its argument prototype would still apply. */
13420char $ac_func();
13421
13422int main() {
13423
13424/* The GNU C library defines this for functions which it implements
13425 to always fail with ENOSYS. Some functions are actually named
13426 something starting with __ and the normal name is an alias. */
13427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13428choke me
13429#else
13430$ac_func();
13431#endif
13432
13433; return 0; }
13434EOF
521196a2 13435if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13436 rm -rf conftest*
13437 eval "ac_cv_func_$ac_func=yes"
13438else
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13441 rm -rf conftest*
13442 eval "ac_cv_func_$ac_func=no"
13443fi
13444rm -f conftest*
13445fi
13446
13447if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13448 echo "$ac_t""yes" 1>&6
13449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13450 cat >> confdefs.h <<EOF
13451#define $ac_tr_func 1
13452EOF
13453
13454else
13455 echo "$ac_t""no" 1>&6
13456fi
13457done
13458
f09359cf
VS
13459 fi
13460
21d1c967
GD
13461 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13462 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13463
13464 AFMINSTALL=afminstall
13465 TOOLKIT=GTK
13466 GUIDIST=GTK_DIST
13467
a0b9e27f 13468 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
521196a2 13469echo "configure:13470: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13470ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13472 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13473else
a0b9e27f 13474 ac_save_LIBS="$LIBS"
21d1c967 13475LIBS="-lgdk $LIBS"
a0b9e27f 13476cat > conftest.$ac_ext <<EOF
521196a2 13477#line 13478 "configure"
90dd450c 13478#include "confdefs.h"
5c6fa7d2 13479/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13480/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13481 builtin and then its argument prototype would still apply. */
13482char gdk_im_open();
13483
13484int main() {
13485gdk_im_open()
13486; return 0; }
13487EOF
521196a2 13488if { (eval echo configure:13489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13489 rm -rf conftest*
13490 eval "ac_cv_lib_$ac_lib_var=yes"
13491else
13492 echo "configure: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13494 rm -rf conftest*
13495 eval "ac_cv_lib_$ac_lib_var=no"
13496fi
13497rm -f conftest*
13498LIBS="$ac_save_LIBS"
13499
13500fi
13501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13502 echo "$ac_t""yes" 1>&6
13503 cat >> confdefs.h <<\EOF
21d1c967 13504#define HAVE_XIM 1
a0b9e27f 13505EOF
21d1c967 13506
a0b9e27f
MB
13507else
13508 echo "$ac_t""no" 1>&6
90dd450c 13509fi
1e6feb95 13510
21d1c967 13511 fi
1e6feb95 13512
21d1c967 13513 if test "$wxUSE_MGL" = 1; then
63a76696 13514 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
521196a2 13515echo "configure:13516: checking for SciTech MGL library" >&5
21d1c967 13516 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13517 echo "$ac_t""not found" 1>&6
13518 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13519 else
a0b9e27f 13520 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13521 fi
13522
63a76696 13523 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
521196a2 13524echo "configure:13525: checking for libmgl location" >&5
21d1c967
GD
13525 case "${host}" in
13526 *-*-linux* )
63a76696
VS
13527 if test "x$wxUSE_SHARED" = xyes ; then
13528 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13529 else
13530 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13531 fi
21d1c967
GD
13532 ;;
13533 *-pc-msdosdjgpp )
63a76696 13534 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13535 ;;
13536 *)
a0b9e27f 13537 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13538 esac
1e6feb95 13539
21d1c967 13540 mgl_lib_type=""
63a76696
VS
13541 mgl_os=""
13542
13543 for mgl_os_i in $mgl_os_candidates ; do
13544 if test "x$mgl_os" = x ; then
13545 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13546 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13547 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13548 mgl_lib_type=debug
13549 mgl_os=$mgl_os_i
13550 fi
13551 fi
13552 if test "x$mgl_lib_type" = x ; then
13553 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13554 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13555 mgl_lib_type=release
13556 mgl_os=$mgl_os_i
13557 fi
13558 fi
21d1c967 13559 fi
63a76696 13560 done
2224580a 13561
63a76696
VS
13562 if test "x$mgl_os" = x ; then
13563 echo "$ac_t""not found" 1>&6
13564 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13565 fi
13566 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13567
1d1b75ac
VZ
13568 wxUSE_UNIVERSAL="yes"
13569
21d1c967
GD
13570 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13571 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13572
90dd450c 13573 AFMINSTALL=afminstall
21d1c967
GD
13574 TOOLKIT=MGL
13575 GUIDIST=MGL_DIST
13576 fi
dad6c0ea 13577
21d1c967 13578 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13579 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
521196a2 13580echo "configure:13581: checking for MicroWindows" >&5
21d1c967 13581 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13582 echo "$ac_t""not found" 1>&6
13583 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13584 else
a0b9e27f 13585 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13586 fi
f6bcfd97 13587
21d1c967 13588 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13589 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13590 else
a0b9e27f 13591 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13592 fi
0b2effe9 13593
21d1c967
GD
13594 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13595 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13596
1d1b75ac
VZ
13597 wxUSE_UNIVERSAL="yes"
13598
21d1c967
GD
13599 AFMINSTALL=afminstall
13600 TOOLKIT=MICROWIN
13601 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13602
13603 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13604 fi
f6bcfd97 13605
21d1c967 13606 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13607 # If we find X, set shell vars x_includes and x_libraries to the
13608# paths, otherwise set no_x=yes.
13609# Uses ac_ vars as temps to allow command line to override cache and checks.
13610# --without-x overrides everything else, but does not touch the cache.
13611echo $ac_n "checking for X""... $ac_c" 1>&6
521196a2 13612echo "configure:13613: checking for X" >&5
d8356fa3 13613
21d1c967
GD
13614# Check whether --with-x or --without-x was given.
13615if test "${with_x+set}" = set; then
13616 withval="$with_x"
a0b9e27f
MB
13617 :
13618fi
2224580a 13619
21d1c967
GD
13620# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13621if test "x$with_x" = xno; then
13622 # The user explicitly disabled X.
13623 have_x=disabled
13624else
13625 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13626 # Both variables are already set.
13627 have_x=yes
13628 else
a0b9e27f
MB
13629if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13630 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13631else
13632 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13633ac_x_includes=NO ac_x_libraries=NO
13634rm -fr conftestdir
13635if mkdir conftestdir; then
13636 cd conftestdir
21d1c967 13637 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13638 cat > Imakefile <<'EOF'
21d1c967
GD
13639acfindx:
13640 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13641EOF
21d1c967
GD
13642 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13644 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13645 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13646 for ac_extension in a so sl; do
13647 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13648 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13649 ac_im_usrlibdir=$ac_im_libdir; break
13650 fi
13651 done
13652 # Screen out bogus values from the imake configuration. They are
13653 # bogus both because they are the default anyway, and because
13654 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13655 case "$ac_im_incroot" in
21d1c967 13656 /usr/include) ;;
a0b9e27f 13657 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13658 esac
a0b9e27f 13659 case "$ac_im_usrlibdir" in
21d1c967 13660 /usr/lib | /lib) ;;
a0b9e27f 13661 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13662 esac
13663 fi
13664 cd ..
a0b9e27f 13665 rm -fr conftestdir
21d1c967 13666fi
10f2d63a 13667
a0b9e27f
MB
13668if test "$ac_x_includes" = NO; then
13669 # Guess where to find include files, by looking for this one X11 .h file.
13670 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13671
21d1c967 13672 # First, try using that file with no special directory specified.
a0b9e27f 13673cat > conftest.$ac_ext <<EOF
521196a2 13674#line 13675 "configure"
21d1c967 13675#include "confdefs.h"
a0b9e27f
MB
13676#include <$x_direct_test_include>
13677EOF
13678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 13679{ (eval echo configure:13680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13680ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13681if test -z "$ac_err"; then
13682 rm -rf conftest*
21d1c967
GD
13683 # We can compile using X headers with no special include directory.
13684ac_x_includes=
90dd450c 13685else
a0b9e27f
MB
13686 echo "$ac_err" >&5
13687 echo "configure: failed program was:" >&5
90dd450c 13688 cat conftest.$ac_ext >&5
a0b9e27f
MB
13689 rm -rf conftest*
13690 # Look for the header file in a standard set of common directories.
13691# Check X11 before X11Rn because it is often a symlink to the current release.
13692 for ac_dir in \
13693 /usr/X11/include \
13694 /usr/X11R6/include \
13695 /usr/X11R5/include \
13696 /usr/X11R4/include \
13697 \
13698 /usr/include/X11 \
13699 /usr/include/X11R6 \
13700 /usr/include/X11R5 \
13701 /usr/include/X11R4 \
13702 \
13703 /usr/local/X11/include \
13704 /usr/local/X11R6/include \
13705 /usr/local/X11R5/include \
13706 /usr/local/X11R4/include \
13707 \
13708 /usr/local/include/X11 \
13709 /usr/local/include/X11R6 \
13710 /usr/local/include/X11R5 \
13711 /usr/local/include/X11R4 \
13712 \
13713 /usr/X386/include \
13714 /usr/x386/include \
13715 /usr/XFree86/include/X11 \
13716 \
13717 /usr/include \
13718 /usr/local/include \
13719 /usr/unsupported/include \
13720 /usr/athena/include \
13721 /usr/local/x11r5/include \
13722 /usr/lpp/Xamples/include \
13723 \
13724 /usr/openwin/include \
13725 /usr/openwin/share/include \
13726 ; \
13727 do
13728 if test -r "$ac_dir/$x_direct_test_include"; then
13729 ac_x_includes=$ac_dir
13730 break
13731 fi
13732 done
3a922bb4 13733fi
a0b9e27f
MB
13734rm -f conftest*
13735fi # $ac_x_includes = NO
10f2d63a 13736
a0b9e27f 13737if test "$ac_x_libraries" = NO; then
21d1c967 13738 # Check for the libraries.
a0b9e27f
MB
13739
13740 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13741 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13742
21d1c967
GD
13743 # See if we find them without any special options.
13744 # Don't add to $LIBS permanently.
a0b9e27f
MB
13745 ac_save_LIBS="$LIBS"
13746 LIBS="-l$x_direct_test_library $LIBS"
13747cat > conftest.$ac_ext <<EOF
521196a2 13748#line 13749 "configure"
3a922bb4 13749#include "confdefs.h"
a0b9e27f
MB
13750
13751int main() {
13752${x_direct_test_function}()
13753; return 0; }
13754EOF
521196a2 13755if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13756 rm -rf conftest*
13757 LIBS="$ac_save_LIBS"
21d1c967
GD
13758# We can link X programs with no special library path.
13759ac_x_libraries=
3a922bb4 13760else
a0b9e27f
MB
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13763 rm -rf conftest*
13764 LIBS="$ac_save_LIBS"
13765# First see if replacing the include by lib works.
13766# Check X11 before X11Rn because it is often a symlink to the current release.
13767for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13768 /usr/X11/lib \
13769 /usr/X11R6/lib \
13770 /usr/X11R5/lib \
13771 /usr/X11R4/lib \
13772 \
13773 /usr/lib/X11 \
13774 /usr/lib/X11R6 \
13775 /usr/lib/X11R5 \
13776 /usr/lib/X11R4 \
13777 \
13778 /usr/local/X11/lib \
13779 /usr/local/X11R6/lib \
13780 /usr/local/X11R5/lib \
13781 /usr/local/X11R4/lib \
13782 \
13783 /usr/local/lib/X11 \
13784 /usr/local/lib/X11R6 \
13785 /usr/local/lib/X11R5 \
13786 /usr/local/lib/X11R4 \
13787 \
13788 /usr/X386/lib \
13789 /usr/x386/lib \
13790 /usr/XFree86/lib/X11 \
13791 \
13792 /usr/lib \
13793 /usr/local/lib \
13794 /usr/unsupported/lib \
13795 /usr/athena/lib \
13796 /usr/local/x11r5/lib \
13797 /usr/lpp/Xamples/lib \
13798 /lib/usr/lib/X11 \
13799 \
13800 /usr/openwin/lib \
13801 /usr/openwin/share/lib \
13802 ; \
21d1c967
GD
13803do
13804 for ac_extension in a so sl; do
a0b9e27f 13805 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13806 ac_x_libraries=$ac_dir
13807 break 2
13808 fi
13809 done
13810done
3a922bb4 13811fi
a0b9e27f
MB
13812rm -f conftest*
13813fi # $ac_x_libraries = NO
90dd450c 13814
a0b9e27f 13815if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13816 # Didn't find X anywhere. Cache the known absence of X.
13817 ac_cv_have_x="have_x=no"
13818else
13819 # Record where we found X for the cache.
13820 ac_cv_have_x="have_x=yes \
13821 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13822fi
21d1c967
GD
13823fi
13824 fi
13825 eval "$ac_cv_have_x"
13826fi # $with_x != no
90dd450c 13827
21d1c967 13828if test "$have_x" != yes; then
a0b9e27f 13829 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13830 no_x=yes
13831else
13832 # If each of the values was on the command line, it overrides each guess.
13833 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13834 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13835 # Update the cache value to reflect the command line values.
13836 ac_cv_have_x="have_x=yes \
13837 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13838 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13839fi
90dd450c 13840
21d1c967 13841if test "$no_x" = yes; then
90dd450c 13842 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13843 cat >> confdefs.h <<\EOF
90dd450c 13844#define X_DISPLAY_MISSING 1
a0b9e27f 13845EOF
90dd450c
VZ
13846
13847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13848else
13849 if test -n "$x_includes"; then
13850 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13851 fi
3a922bb4 13852
90dd450c
VZ
13853 # It would also be nice to do this for all -L options, not just this one.
13854 if test -n "$x_libraries"; then
13855 X_LIBS="$X_LIBS -L$x_libraries"
13856 # For Solaris; some versions of Sun CC require a space after -R and
13857 # others require no space. Words are not sufficient . . . .
a0b9e27f 13858 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13859 "SunOS 5"*)
a0b9e27f 13860 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
521196a2 13861echo "configure:13862: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13862 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13863 cat > conftest.$ac_ext <<EOF
521196a2 13864#line 13865 "configure"
90dd450c
VZ
13865#include "confdefs.h"
13866
a0b9e27f 13867int main() {
90dd450c 13868
a0b9e27f
MB
13869; return 0; }
13870EOF
521196a2 13871if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13872 rm -rf conftest*
90dd450c 13873 ac_R_nospace=yes
3a922bb4 13874else
a0b9e27f
MB
13875 echo "configure: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13877 rm -rf conftest*
13878 ac_R_nospace=no
3a922bb4 13879fi
a0b9e27f 13880rm -f conftest*
90dd450c 13881 if test $ac_R_nospace = yes; then
a0b9e27f 13882 echo "$ac_t""no" 1>&6
90dd450c
VZ
13883 X_LIBS="$X_LIBS -R$x_libraries"
13884 else
13885 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13886 cat > conftest.$ac_ext <<EOF
521196a2 13887#line 13888 "configure"
90dd450c 13888#include "confdefs.h"
3a922bb4 13889
a0b9e27f 13890int main() {
6f754473 13891
a0b9e27f
MB
13892; return 0; }
13893EOF
521196a2 13894if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13895 rm -rf conftest*
90dd450c
VZ
13896 ac_R_space=yes
13897else
a0b9e27f
MB
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13900 rm -rf conftest*
13901 ac_R_space=no
90dd450c 13902fi
a0b9e27f 13903rm -f conftest*
90dd450c 13904 if test $ac_R_space = yes; then
a0b9e27f 13905 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13906 X_LIBS="$X_LIBS -R $x_libraries"
13907 else
a0b9e27f 13908 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13909 fi
13910 fi
a0b9e27f 13911 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13912 esac
13913 fi
13914
13915 # Check for system-dependent libraries X programs must link with.
13916 # Do this before checking for the system-independent R6 libraries
13917 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13918
90dd450c
VZ
13919 if test "$ISC" = yes; then
13920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13921 else
a0b9e27f
MB
13922 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13923 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13924 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13925 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
521196a2 13926echo "configure:13927: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13927ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13928if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13929 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13930else
a0b9e27f 13931 ac_save_LIBS="$LIBS"
247f5006 13932LIBS="-ldnet $LIBS"
a0b9e27f 13933cat > conftest.$ac_ext <<EOF
521196a2 13934#line 13935 "configure"
247f5006 13935#include "confdefs.h"
247f5006 13936/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13937/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13938 builtin and then its argument prototype would still apply. */
13939char dnet_ntoa();
13940
13941int main() {
13942dnet_ntoa()
13943; return 0; }
13944EOF
521196a2 13945if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13946 rm -rf conftest*
13947 eval "ac_cv_lib_$ac_lib_var=yes"
13948else
13949 echo "configure: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13951 rm -rf conftest*
13952 eval "ac_cv_lib_$ac_lib_var=no"
13953fi
13954rm -f conftest*
13955LIBS="$ac_save_LIBS"
13956
13957fi
13958if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13959 echo "$ac_t""yes" 1>&6
90dd450c 13960 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13961else
13962 echo "$ac_t""no" 1>&6
3a922bb4
RL
13963fi
13964
90dd450c 13965 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13966 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
521196a2 13967echo "configure:13968: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13968ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13969if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13971else
a0b9e27f 13972 ac_save_LIBS="$LIBS"
90dd450c 13973LIBS="-ldnet_stub $LIBS"
a0b9e27f 13974cat > conftest.$ac_ext <<EOF
521196a2 13975#line 13976 "configure"
90dd450c
VZ
13976#include "confdefs.h"
13977/* Override any gcc2 internal prototype to avoid an error. */
13978/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13979 builtin and then its argument prototype would still apply. */
13980char dnet_ntoa();
13981
13982int main() {
13983dnet_ntoa()
13984; return 0; }
13985EOF
521196a2 13986if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13987 rm -rf conftest*
13988 eval "ac_cv_lib_$ac_lib_var=yes"
13989else
13990 echo "configure: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13992 rm -rf conftest*
13993 eval "ac_cv_lib_$ac_lib_var=no"
13994fi
13995rm -f conftest*
13996LIBS="$ac_save_LIBS"
13997
13998fi
13999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14000 echo "$ac_t""yes" 1>&6
90dd450c 14001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14002else
14003 echo "$ac_t""no" 1>&6
3a922bb4
RL
14004fi
14005
90dd450c 14006 fi
978f1259 14007
90dd450c
VZ
14008 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14009 # to get the SysV transport functions.
a0b9e27f 14010 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
14011 # needs -lnsl.
14012 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14013 # on Irix 5.2, according to dickey@clark.net.
14014 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
521196a2 14015echo "configure:14016: checking for gethostbyname" >&5
a0b9e27f
MB
14016if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14017 echo $ac_n "(cached) $ac_c" 1>&6
14018else
14019 cat > conftest.$ac_ext <<EOF
521196a2 14020#line 14021 "configure"
90dd450c
VZ
14021#include "confdefs.h"
14022/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14023 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
14024#include <assert.h>
14025/* Override any gcc2 internal prototype to avoid an error. */
14026/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14027 builtin and then its argument prototype would still apply. */
14028char gethostbyname();
14029
14030int main() {
14031
90dd450c
VZ
14032/* The GNU C library defines this for functions which it implements
14033 to always fail with ENOSYS. Some functions are actually named
14034 something starting with __ and the normal name is an alias. */
14035#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14036choke me
14037#else
a0b9e27f 14038gethostbyname();
90dd450c 14039#endif
978f1259 14040
a0b9e27f
MB
14041; return 0; }
14042EOF
521196a2 14043if { (eval echo configure:14044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14044 rm -rf conftest*
14045 eval "ac_cv_func_gethostbyname=yes"
14046else
14047 echo "configure: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 rm -rf conftest*
14050 eval "ac_cv_func_gethostbyname=no"
14051fi
14052rm -f conftest*
14053fi
14054
14055if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14056 echo "$ac_t""yes" 1>&6
14057 :
14058else
14059 echo "$ac_t""no" 1>&6
14060fi
698dcdb6 14061
90dd450c 14062 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14063 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
521196a2 14064echo "configure:14065: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14065ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14068else
a0b9e27f 14069 ac_save_LIBS="$LIBS"
90dd450c 14070LIBS="-lnsl $LIBS"
a0b9e27f 14071cat > conftest.$ac_ext <<EOF
521196a2 14072#line 14073 "configure"
90dd450c
VZ
14073#include "confdefs.h"
14074/* Override any gcc2 internal prototype to avoid an error. */
14075/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14076 builtin and then its argument prototype would still apply. */
14077char gethostbyname();
5c6fa7d2 14078
a0b9e27f
MB
14079int main() {
14080gethostbyname()
14081; return 0; }
14082EOF
521196a2 14083if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14084 rm -rf conftest*
14085 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14086else
a0b9e27f
MB
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 rm -rf conftest*
14090 eval "ac_cv_lib_$ac_lib_var=no"
14091fi
14092rm -f conftest*
14093LIBS="$ac_save_LIBS"
247f5006 14094
a0b9e27f
MB
14095fi
14096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14097 echo "$ac_t""yes" 1>&6
14098 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14099else
14100 echo "$ac_t""no" 1>&6
90dd450c 14101fi
b12915c1 14102
90dd450c
VZ
14103 fi
14104
14105 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14106 # socket/setsockopt and other routines are undefined under SCO ODT
14107 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14108 # on later versions), says simon@lia.di.epfl.ch: it contains
14109 # gethostby* variants that don't use the nameserver (or something).
14110 # -lsocket must be given before -lnsl if both are needed.
14111 # We assume that if connect needs -lnsl, so does gethostbyname.
14112 echo $ac_n "checking for connect""... $ac_c" 1>&6
521196a2 14113echo "configure:14114: checking for connect" >&5
a0b9e27f
MB
14114if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14115 echo $ac_n "(cached) $ac_c" 1>&6
14116else
14117 cat > conftest.$ac_ext <<EOF
521196a2 14118#line 14119 "configure"
55e80573 14119#include "confdefs.h"
90dd450c 14120/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14121 which can conflict with char connect(); below. */
90dd450c
VZ
14122#include <assert.h>
14123/* Override any gcc2 internal prototype to avoid an error. */
14124/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14125 builtin and then its argument prototype would still apply. */
14126char connect();
14127
14128int main() {
14129
90dd450c
VZ
14130/* The GNU C library defines this for functions which it implements
14131 to always fail with ENOSYS. Some functions are actually named
14132 something starting with __ and the normal name is an alias. */
14133#if defined (__stub_connect) || defined (__stub___connect)
14134choke me
14135#else
a0b9e27f 14136connect();
90dd450c
VZ
14137#endif
14138
a0b9e27f
MB
14139; return 0; }
14140EOF
521196a2 14141if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14142 rm -rf conftest*
14143 eval "ac_cv_func_connect=yes"
14144else
14145 echo "configure: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 rm -rf conftest*
14148 eval "ac_cv_func_connect=no"
14149fi
14150rm -f conftest*
14151fi
14152
14153if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14154 echo "$ac_t""yes" 1>&6
14155 :
14156else
14157 echo "$ac_t""no" 1>&6
14158fi
55e80573 14159
90dd450c 14160 if test $ac_cv_func_connect = no; then
a0b9e27f 14161 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
521196a2 14162echo "configure:14163: checking for connect in -lsocket" >&5
a0b9e27f
MB
14163ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14164if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14165 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14166else
a0b9e27f 14167 ac_save_LIBS="$LIBS"
90dd450c 14168LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14169cat > conftest.$ac_ext <<EOF
521196a2 14170#line 14171 "configure"
90dd450c
VZ
14171#include "confdefs.h"
14172/* Override any gcc2 internal prototype to avoid an error. */
14173/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14174 builtin and then its argument prototype would still apply. */
14175char connect();
14176
14177int main() {
14178connect()
14179; return 0; }
14180EOF
521196a2 14181if { (eval echo configure:14182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14182 rm -rf conftest*
14183 eval "ac_cv_lib_$ac_lib_var=yes"
14184else
14185 echo "configure: failed program was:" >&5
14186 cat conftest.$ac_ext >&5
14187 rm -rf conftest*
14188 eval "ac_cv_lib_$ac_lib_var=no"
14189fi
14190rm -f conftest*
14191LIBS="$ac_save_LIBS"
14192
14193fi
14194if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14195 echo "$ac_t""yes" 1>&6
90dd450c 14196 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14197else
14198 echo "$ac_t""no" 1>&6
90dd450c 14199fi
77e13408 14200
90dd450c 14201 fi
25d0687a 14202
a0b9e27f
MB
14203 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14204 echo $ac_n "checking for remove""... $ac_c" 1>&6
521196a2 14205echo "configure:14206: checking for remove" >&5
a0b9e27f
MB
14206if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14207 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14208else
a0b9e27f 14209 cat > conftest.$ac_ext <<EOF
521196a2 14210#line 14211 "configure"
90dd450c
VZ
14211#include "confdefs.h"
14212/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14213 which can conflict with char remove(); below. */
90dd450c
VZ
14214#include <assert.h>
14215/* Override any gcc2 internal prototype to avoid an error. */
14216/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14217 builtin and then its argument prototype would still apply. */
14218char remove();
14219
14220int main() {
14221
90dd450c
VZ
14222/* The GNU C library defines this for functions which it implements
14223 to always fail with ENOSYS. Some functions are actually named
14224 something starting with __ and the normal name is an alias. */
14225#if defined (__stub_remove) || defined (__stub___remove)
14226choke me
14227#else
a0b9e27f 14228remove();
90dd450c 14229#endif
55e80573 14230
a0b9e27f
MB
14231; return 0; }
14232EOF
521196a2 14233if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14234 rm -rf conftest*
14235 eval "ac_cv_func_remove=yes"
14236else
14237 echo "configure: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14239 rm -rf conftest*
14240 eval "ac_cv_func_remove=no"
14241fi
14242rm -f conftest*
14243fi
14244
14245if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14246 echo "$ac_t""yes" 1>&6
14247 :
14248else
14249 echo "$ac_t""no" 1>&6
14250fi
10f2d63a 14251
90dd450c 14252 if test $ac_cv_func_remove = no; then
a0b9e27f 14253 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
521196a2 14254echo "configure:14255: checking for remove in -lposix" >&5
a0b9e27f
MB
14255ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14256if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14258else
a0b9e27f 14259 ac_save_LIBS="$LIBS"
90dd450c 14260LIBS="-lposix $LIBS"
a0b9e27f 14261cat > conftest.$ac_ext <<EOF
521196a2 14262#line 14263 "configure"
90dd450c
VZ
14263#include "confdefs.h"
14264/* Override any gcc2 internal prototype to avoid an error. */
14265/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14266 builtin and then its argument prototype would still apply. */
14267char remove();
14268
14269int main() {
14270remove()
14271; return 0; }
14272EOF
521196a2 14273if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14274 rm -rf conftest*
14275 eval "ac_cv_lib_$ac_lib_var=yes"
14276else
14277 echo "configure: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 rm -rf conftest*
14280 eval "ac_cv_lib_$ac_lib_var=no"
14281fi
14282rm -f conftest*
14283LIBS="$ac_save_LIBS"
14284
14285fi
14286if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14287 echo "$ac_t""yes" 1>&6
90dd450c 14288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14289else
14290 echo "$ac_t""no" 1>&6
90dd450c 14291fi
f6bcfd97 14292
6fa882bd
RR
14293 fi
14294
90dd450c 14295 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14296 echo $ac_n "checking for shmat""... $ac_c" 1>&6
521196a2 14297echo "configure:14298: checking for shmat" >&5
a0b9e27f
MB
14298if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14300else
a0b9e27f 14301 cat > conftest.$ac_ext <<EOF
521196a2 14302#line 14303 "configure"
90dd450c
VZ
14303#include "confdefs.h"
14304/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14305 which can conflict with char shmat(); below. */
90dd450c
VZ
14306#include <assert.h>
14307/* Override any gcc2 internal prototype to avoid an error. */
14308/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14309 builtin and then its argument prototype would still apply. */
14310char shmat();
14311
14312int main() {
14313
90dd450c
VZ
14314/* The GNU C library defines this for functions which it implements
14315 to always fail with ENOSYS. Some functions are actually named
14316 something starting with __ and the normal name is an alias. */
14317#if defined (__stub_shmat) || defined (__stub___shmat)
14318choke me
14319#else
a0b9e27f 14320shmat();
90dd450c 14321#endif
10f2d63a 14322
a0b9e27f
MB
14323; return 0; }
14324EOF
521196a2 14325if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14326 rm -rf conftest*
14327 eval "ac_cv_func_shmat=yes"
14328else
14329 echo "configure: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14331 rm -rf conftest*
14332 eval "ac_cv_func_shmat=no"
14333fi
14334rm -f conftest*
14335fi
14336
14337if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14338 echo "$ac_t""yes" 1>&6
14339 :
14340else
14341 echo "$ac_t""no" 1>&6
14342fi
d08b457b 14343
90dd450c 14344 if test $ac_cv_func_shmat = no; then
a0b9e27f 14345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
521196a2 14346echo "configure:14347: checking for shmat in -lipc" >&5
a0b9e27f
MB
14347ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14348if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14349 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14350else
a0b9e27f 14351 ac_save_LIBS="$LIBS"
90dd450c 14352LIBS="-lipc $LIBS"
a0b9e27f 14353cat > conftest.$ac_ext <<EOF
521196a2 14354#line 14355 "configure"
90dd450c 14355#include "confdefs.h"
8284b0c5 14356/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14357/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14358 builtin and then its argument prototype would still apply. */
14359char shmat();
14360
14361int main() {
14362shmat()
14363; return 0; }
14364EOF
521196a2 14365if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14366 rm -rf conftest*
14367 eval "ac_cv_lib_$ac_lib_var=yes"
14368else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 eval "ac_cv_lib_$ac_lib_var=no"
14373fi
14374rm -f conftest*
14375LIBS="$ac_save_LIBS"
14376
14377fi
14378if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14379 echo "$ac_t""yes" 1>&6
90dd450c 14380 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14381else
14382 echo "$ac_t""no" 1>&6
d08b457b
GD
14383fi
14384
d558c907 14385 fi
90dd450c 14386 fi
3a922bb4 14387
90dd450c 14388 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14389 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14390 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14391 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14392 # check for ICE first), but we must link in the order -lSM -lICE or
14393 # we get undefined symbols. So assume we have SM if we have ICE.
14394 # These have to be linked with before -lX11, unlike the other
14395 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14396 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14397 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
521196a2 14398echo "configure:14399: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14399ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14401 echo $ac_n "(cached) $ac_c" 1>&6
14402else
14403 ac_save_LIBS="$LIBS"
f09359cf 14404LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14405cat > conftest.$ac_ext <<EOF
521196a2 14406#line 14407 "configure"
9cfadba2 14407#include "confdefs.h"
90dd450c
VZ
14408/* Override any gcc2 internal prototype to avoid an error. */
14409/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14410 builtin and then its argument prototype would still apply. */
14411char IceConnectionNumber();
14412
14413int main() {
14414IceConnectionNumber()
14415; return 0; }
14416EOF
521196a2 14417if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=yes"
14420else
14421 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14423 rm -rf conftest*
14424 eval "ac_cv_lib_$ac_lib_var=no"
14425fi
14426rm -f conftest*
14427LIBS="$ac_save_LIBS"
14428
14429fi
14430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14431 echo "$ac_t""yes" 1>&6
90dd450c 14432 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14433else
14434 echo "$ac_t""no" 1>&6
9cfadba2 14435fi
10f2d63a 14436
a0b9e27f 14437 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14438
14439fi
14440
8284b0c5 14441
90dd450c 14442 if test "$no_x" = "yes"; then
a0b9e27f 14443 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14444 fi
14445
14446 GUI_TK_LIBRARY="$X_LIBS"
14447 TOOLKIT_INCLUDE="$X_CFLAGS"
14448 AFMINSTALL=afminstall
14449 COMPILED_X_PROGRAM=0
14450
21d1c967 14451 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14452 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
521196a2 14453echo "configure:14454: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14454 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14455 echo "$ac_t""not found" 1>&6
14456 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14457 else
a0b9e27f
MB
14458 echo "$ac_t""$MICROWIN" 1>&6
14459 cat >> confdefs.h <<\EOF
21d1c967 14460#define wxUSE_NANOX 1
a0b9e27f 14461EOF
21d1c967 14462
90dd450c
VZ
14463 fi
14464 fi
14465
14466 xpm_link=
a0b9e27f 14467 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
521196a2 14468echo "configure:14469: checking for Xpm library" >&5
a0b9e27f 14469
90dd450c 14470ac_find_libraries=
2b5f62a0 14471for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14472 do
14473 for ac_extension in a so sl dylib; do
14474 if test -f "$ac_dir/libXpm.$ac_extension"; then
14475 ac_find_libraries=$ac_dir
14476 break 2
14477 fi
14478 done
14479 done
14480
14481 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14482
90dd450c
VZ
14483 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14484 result=$?
14485 if test $result = 0; then
14486 ac_path_to_link=""
14487 else
14488 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14489 fi
90dd450c 14490
21d1c967
GD
14491 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14492 xpm_link=" -lXpm"
a0b9e27f 14493 cat >> confdefs.h <<\EOF
21d1c967 14494#define wxHAVE_LIB_XPM 1
a0b9e27f 14495EOF
90dd450c 14496
a0b9e27f 14497 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14498 else
a0b9e27f 14499 cat > conftest.$ac_ext <<EOF
521196a2 14500#line 14501 "configure"
21d1c967 14501#include "confdefs.h"
90dd450c 14502
21d1c967 14503 #include <X11/xpm.h>
a0b9e27f
MB
14504
14505int main() {
6f72b082 14506
21d1c967
GD
14507 int version;
14508 version = XpmLibraryVersion();
a0b9e27f
MB
14509
14510; return 0; }
14511EOF
521196a2 14512if { (eval echo configure:14513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14513 rm -rf conftest*
14514
21d1c967 14515 xpm_link=" -lXpm"
a0b9e27f 14516 cat >> confdefs.h <<\EOF
21d1c967 14517#define wxHAVE_LIB_XPM 1
a0b9e27f 14518EOF
90dd450c 14519
a0b9e27f 14520 echo "$ac_t""found in default search path" 1>&6
21d1c967 14521 COMPILED_X_PROGRAM=0
a0b9e27f 14522
21d1c967 14523else
a0b9e27f
MB
14524 echo "configure: failed program was:" >&5
14525 cat conftest.$ac_ext >&5
14526 rm -rf conftest*
14527
14528 echo "$ac_t""no" 1>&6
14529 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14530
14531
6f72b082 14532fi
a0b9e27f 14533rm -f conftest*
21d1c967 14534 fi
90dd450c 14535
2b5f62a0
VZ
14536 if test "$wxUSE_UNICODE" = "yes"; then
14537
14538 succeeded=no
90dd450c 14539
2b5f62a0
VZ
14540 if test -z "$PKG_CONFIG"; then
14541 # Extract the first word of "pkg-config", so it can be a program name with args.
14542set dummy pkg-config; ac_word=$2
14543echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 14544echo "configure:14545: checking for $ac_word" >&5
2b5f62a0 14545if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14546 echo $ac_n "(cached) $ac_c" 1>&6
14547else
2b5f62a0
VZ
14548 case "$PKG_CONFIG" in
14549 /*)
14550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14551 ;;
14552 ?:/*)
14553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14554 ;;
14555 *)
14556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14557 ac_dummy="$PATH"
14558 for ac_dir in $ac_dummy; do
14559 test -z "$ac_dir" && ac_dir=.
14560 if test -f $ac_dir/$ac_word; then
14561 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14562 break
14563 fi
14564 done
14565 IFS="$ac_save_ifs"
14566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14567 ;;
14568esac
14569fi
14570PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14571if test -n "$PKG_CONFIG"; then
14572 echo "$ac_t""$PKG_CONFIG" 1>&6
14573else
14574 echo "$ac_t""no" 1>&6
14575fi
14576
14577 fi
14578
14579 if test "$PKG_CONFIG" = "no" ; then
14580 echo "*** The pkg-config script could not be found. Make sure it is"
14581 echo "*** in your path, or set the PKG_CONFIG environment variable"
14582 echo "*** to the full path to pkg-config."
14583 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14584 else
14585 PKG_CONFIG_MIN_VERSION=0.9.0
14586 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14587 echo $ac_n "checking for pangox""... $ac_c" 1>&6
521196a2 14588echo "configure:14589: checking for pangox" >&5
2b5f62a0
VZ
14589
14590 if $PKG_CONFIG --exists "pangox" ; then
14591 echo "$ac_t""yes" 1>&6
14592 succeeded=yes
14593
14594 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
521196a2 14595echo "configure:14596: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14596 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14597 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14598
14599 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
521196a2 14600echo "configure:14601: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14601 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14602 echo "$ac_t""$PANGOX_LIBS" 1>&6
14603 else
14604 PANGOX_CFLAGS=""
14605 PANGOX_LIBS=""
14606 ## If we have a custom action on failure, don't print errors, but
14607 ## do set a variable so people can do so.
14608 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14609
14610 fi
14611
14612
14613
14614 else
14615 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14616 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14617 fi
14618 fi
14619
14620 if test $succeeded = yes; then
14621
14622 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14623 LIBS="$LIBS $PANGOX_LIBS"
14624
14625 else
14626
14627 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14628
14629
14630 fi
14631
14632
14633 succeeded=no
14634
14635 if test -z "$PKG_CONFIG"; then
14636 # Extract the first word of "pkg-config", so it can be a program name with args.
14637set dummy pkg-config; ac_word=$2
14638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 14639echo "configure:14640: checking for $ac_word" >&5
2b5f62a0
VZ
14640if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14642else
14643 case "$PKG_CONFIG" in
14644 /*)
14645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14646 ;;
14647 ?:/*)
14648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14649 ;;
14650 *)
14651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14652 ac_dummy="$PATH"
14653 for ac_dir in $ac_dummy; do
14654 test -z "$ac_dir" && ac_dir=.
14655 if test -f $ac_dir/$ac_word; then
14656 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14657 break
14658 fi
14659 done
14660 IFS="$ac_save_ifs"
14661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14662 ;;
14663esac
14664fi
14665PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14666if test -n "$PKG_CONFIG"; then
14667 echo "$ac_t""$PKG_CONFIG" 1>&6
14668else
14669 echo "$ac_t""no" 1>&6
14670fi
14671
14672 fi
14673
14674 if test "$PKG_CONFIG" = "no" ; then
14675 echo "*** The pkg-config script could not be found. Make sure it is"
14676 echo "*** in your path, or set the PKG_CONFIG environment variable"
14677 echo "*** to the full path to pkg-config."
14678 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14679 else
14680 PKG_CONFIG_MIN_VERSION=0.9.0
14681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14682 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
521196a2 14683echo "configure:14684: checking for pangoft2" >&5
2b5f62a0
VZ
14684
14685 if $PKG_CONFIG --exists "pangoft2" ; then
14686 echo "$ac_t""yes" 1>&6
14687 succeeded=yes
14688
14689 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
521196a2 14690echo "configure:14691: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14691 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14692 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14693
14694 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
521196a2 14695echo "configure:14696: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14696 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14697 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14698 else
14699 PANGOFT2_CFLAGS=""
14700 PANGOFT2_LIBS=""
14701 ## If we have a custom action on failure, don't print errors, but
14702 ## do set a variable so people can do so.
14703 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14704
14705 fi
14706
14707
14708
14709 else
14710 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14711 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14712 fi
14713 fi
14714
14715 if test $succeeded = yes; then
14716
14717 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14718 LIBS="$LIBS $PANGOFT2_LIBS"
14719
14720 else
14721
14722 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14723 wxUSE_PRINTING_ARCHITECTURE="no"
14724
14725
14726 fi
14727
14728
14729 succeeded=no
14730
14731 if test -z "$PKG_CONFIG"; then
14732 # Extract the first word of "pkg-config", so it can be a program name with args.
14733set dummy pkg-config; ac_word=$2
14734echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 14735echo "configure:14736: checking for $ac_word" >&5
2b5f62a0
VZ
14736if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
14738else
14739 case "$PKG_CONFIG" in
14740 /*)
14741 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14742 ;;
14743 ?:/*)
14744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14745 ;;
14746 *)
14747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14748 ac_dummy="$PATH"
14749 for ac_dir in $ac_dummy; do
14750 test -z "$ac_dir" && ac_dir=.
14751 if test -f $ac_dir/$ac_word; then
14752 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14753 break
14754 fi
14755 done
14756 IFS="$ac_save_ifs"
14757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14758 ;;
14759esac
14760fi
14761PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14762if test -n "$PKG_CONFIG"; then
14763 echo "$ac_t""$PKG_CONFIG" 1>&6
14764else
14765 echo "$ac_t""no" 1>&6
14766fi
14767
14768 fi
14769
14770 if test "$PKG_CONFIG" = "no" ; then
14771 echo "*** The pkg-config script could not be found. Make sure it is"
14772 echo "*** in your path, or set the PKG_CONFIG environment variable"
14773 echo "*** to the full path to pkg-config."
14774 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14775 else
14776 PKG_CONFIG_MIN_VERSION=0.9.0
14777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14778 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
521196a2 14779echo "configure:14780: checking for pangoxft" >&5
2b5f62a0
VZ
14780
14781 if $PKG_CONFIG --exists "pangoxft" ; then
14782 echo "$ac_t""yes" 1>&6
14783 succeeded=yes
14784
14785 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
521196a2 14786echo "configure:14787: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14787 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14788 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14789
14790 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
521196a2 14791echo "configure:14792: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14792 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14793 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14794 else
14795 PANGOXFT_CFLAGS=""
14796 PANGOXFT_LIBS=""
14797 ## If we have a custom action on failure, don't print errors, but
14798 ## do set a variable so people can do so.
14799 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14800
14801 fi
14802
14803
14804
14805 else
14806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14808 fi
14809 fi
14810
14811 if test $succeeded = yes; then
14812
14813 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14814 LIBS="$LIBS $PANGOXFT_LIBS"
14815
14816 else
14817
14818 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14819
14820
14821 fi
14822
14823 fi
14824
14825 wxUSE_UNIVERSAL="yes"
14826
14827 if test "$wxUSE_NANOX" = "yes"; then
14828 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14829 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"
14830 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14831 else
14832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14833 fi
14834
14835 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14836 TOOLKIT=X11
14837 GUIDIST=X11_DIST
14838 fi
14839
21d1c967
GD
14840 if test "$wxUSE_MOTIF" = 1; then
14841 if test "$no_x" = yes; then
14842 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14843 cat >> confdefs.h <<\EOF
21d1c967 14844#define X_DISPLAY_MISSING 1
a0b9e27f 14845EOF
21d1c967
GD
14846
14847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14848else
14849 if test -n "$x_includes"; then
14850 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14851 fi
14852
21d1c967
GD
14853 # It would also be nice to do this for all -L options, not just this one.
14854 if test -n "$x_libraries"; then
14855 X_LIBS="$X_LIBS -L$x_libraries"
14856 # For Solaris; some versions of Sun CC require a space after -R and
14857 # others require no space. Words are not sufficient . . . .
a0b9e27f 14858 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14859 "SunOS 5"*)
a0b9e27f 14860 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
521196a2 14861echo "configure:14862: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14862 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14863 cat > conftest.$ac_ext <<EOF
521196a2 14864#line 14865 "configure"
21d1c967
GD
14865#include "confdefs.h"
14866
a0b9e27f 14867int main() {
21d1c967 14868
a0b9e27f
MB
14869; return 0; }
14870EOF
521196a2 14871if { (eval echo configure:14872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14872 rm -rf conftest*
21d1c967 14873 ac_R_nospace=yes
698dcdb6 14874else
a0b9e27f
MB
14875 echo "configure: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14877 rm -rf conftest*
14878 ac_R_nospace=no
10f2d63a 14879fi
a0b9e27f 14880rm -f conftest*
21d1c967 14881 if test $ac_R_nospace = yes; then
a0b9e27f 14882 echo "$ac_t""no" 1>&6
21d1c967
GD
14883 X_LIBS="$X_LIBS -R$x_libraries"
14884 else
14885 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14886 cat > conftest.$ac_ext <<EOF
521196a2 14887#line 14888 "configure"
21d1c967 14888#include "confdefs.h"
10f2d63a 14889
a0b9e27f 14890int main() {
f0c87536 14891
a0b9e27f
MB
14892; return 0; }
14893EOF
521196a2 14894if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14895 rm -rf conftest*
21d1c967
GD
14896 ac_R_space=yes
14897else
a0b9e27f
MB
14898 echo "configure: failed program was:" >&5
14899 cat conftest.$ac_ext >&5
14900 rm -rf conftest*
14901 ac_R_space=no
21d1c967 14902fi
a0b9e27f 14903rm -f conftest*
21d1c967 14904 if test $ac_R_space = yes; then
a0b9e27f 14905 echo "$ac_t""yes" 1>&6
21d1c967
GD
14906 X_LIBS="$X_LIBS -R $x_libraries"
14907 else
a0b9e27f 14908 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14909 fi
14910 fi
a0b9e27f 14911 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14912 esac
14913 fi
90dd450c 14914
21d1c967
GD
14915 # Check for system-dependent libraries X programs must link with.
14916 # Do this before checking for the system-independent R6 libraries
14917 # (-lICE), since we may need -lsocket or whatever for X linking.
14918
14919 if test "$ISC" = yes; then
14920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14921 else
a0b9e27f
MB
14922 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14923 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14924 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14925 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
521196a2 14926echo "configure:14927: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14927ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14928if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14929 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14930else
a0b9e27f 14931 ac_save_LIBS="$LIBS"
247f5006 14932LIBS="-ldnet $LIBS"
a0b9e27f 14933cat > conftest.$ac_ext <<EOF
521196a2 14934#line 14935 "configure"
247f5006 14935#include "confdefs.h"
247f5006 14936/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14937/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14938 builtin and then its argument prototype would still apply. */
14939char dnet_ntoa();
14940
14941int main() {
14942dnet_ntoa()
14943; return 0; }
14944EOF
521196a2 14945if { (eval echo configure:14946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14946 rm -rf conftest*
14947 eval "ac_cv_lib_$ac_lib_var=yes"
14948else
14949 echo "configure: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 rm -rf conftest*
14952 eval "ac_cv_lib_$ac_lib_var=no"
14953fi
14954rm -f conftest*
14955LIBS="$ac_save_LIBS"
14956
14957fi
14958if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14959 echo "$ac_t""yes" 1>&6
21d1c967 14960 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14961else
14962 echo "$ac_t""no" 1>&6
0fb0dd83 14963fi
0fb0dd83 14964
21d1c967 14965 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14966 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
521196a2 14967echo "configure:14968: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14968ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14969if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14971else
a0b9e27f 14972 ac_save_LIBS="$LIBS"
21d1c967 14973LIBS="-ldnet_stub $LIBS"
a0b9e27f 14974cat > conftest.$ac_ext <<EOF
521196a2 14975#line 14976 "configure"
21d1c967
GD
14976#include "confdefs.h"
14977/* Override any gcc2 internal prototype to avoid an error. */
14978/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14979 builtin and then its argument prototype would still apply. */
14980char dnet_ntoa();
14981
14982int main() {
14983dnet_ntoa()
14984; return 0; }
14985EOF
521196a2 14986if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14987 rm -rf conftest*
14988 eval "ac_cv_lib_$ac_lib_var=yes"
14989else
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 rm -rf conftest*
14993 eval "ac_cv_lib_$ac_lib_var=no"
14994fi
14995rm -f conftest*
14996LIBS="$ac_save_LIBS"
14997
14998fi
14999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15000 echo "$ac_t""yes" 1>&6
21d1c967 15001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
15002else
15003 echo "$ac_t""no" 1>&6
90dd450c
VZ
15004fi
15005
21d1c967 15006 fi
90dd450c 15007
21d1c967
GD
15008 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15009 # to get the SysV transport functions.
a0b9e27f 15010 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
15011 # needs -lnsl.
15012 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
15013 # on Irix 5.2, according to dickey@clark.net.
15014 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
521196a2 15015echo "configure:15016: checking for gethostbyname" >&5
a0b9e27f
MB
15016if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
15017 echo $ac_n "(cached) $ac_c" 1>&6
15018else
15019 cat > conftest.$ac_ext <<EOF
521196a2 15020#line 15021 "configure"
21d1c967
GD
15021#include "confdefs.h"
15022/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15023 which can conflict with char gethostbyname(); below. */
21d1c967
GD
15024#include <assert.h>
15025/* Override any gcc2 internal prototype to avoid an error. */
15026/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15027 builtin and then its argument prototype would still apply. */
15028char gethostbyname();
15029
15030int main() {
15031
21d1c967
GD
15032/* The GNU C library defines this for functions which it implements
15033 to always fail with ENOSYS. Some functions are actually named
15034 something starting with __ and the normal name is an alias. */
15035#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
15036choke me
15037#else
a0b9e27f 15038gethostbyname();
21d1c967 15039#endif
90dd450c 15040
a0b9e27f
MB
15041; return 0; }
15042EOF
521196a2 15043if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15044 rm -rf conftest*
15045 eval "ac_cv_func_gethostbyname=yes"
15046else
15047 echo "configure: failed program was:" >&5
15048 cat conftest.$ac_ext >&5
15049 rm -rf conftest*
15050 eval "ac_cv_func_gethostbyname=no"
15051fi
15052rm -f conftest*
15053fi
15054
15055if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15056 echo "$ac_t""yes" 1>&6
15057 :
15058else
15059 echo "$ac_t""no" 1>&6
15060fi
90dd450c 15061
21d1c967 15062 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 15063 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
521196a2 15064echo "configure:15065: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
15065ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15067 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15068else
a0b9e27f 15069 ac_save_LIBS="$LIBS"
21d1c967 15070LIBS="-lnsl $LIBS"
a0b9e27f 15071cat > conftest.$ac_ext <<EOF
521196a2 15072#line 15073 "configure"
21d1c967
GD
15073#include "confdefs.h"
15074/* Override any gcc2 internal prototype to avoid an error. */
15075/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15076 builtin and then its argument prototype would still apply. */
15077char gethostbyname();
5c6fa7d2 15078
a0b9e27f
MB
15079int main() {
15080gethostbyname()
15081; return 0; }
15082EOF
521196a2 15083if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15084 rm -rf conftest*
15085 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 15086else
a0b9e27f
MB
15087 echo "configure: failed program was:" >&5
15088 cat conftest.$ac_ext >&5
15089 rm -rf conftest*
15090 eval "ac_cv_lib_$ac_lib_var=no"
15091fi
15092rm -f conftest*
15093LIBS="$ac_save_LIBS"
247f5006 15094
a0b9e27f
MB
15095fi
15096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15097 echo "$ac_t""yes" 1>&6
15098 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15099else
15100 echo "$ac_t""no" 1>&6
21d1c967 15101fi
90dd450c 15102
90dd450c
VZ
15103 fi
15104
21d1c967
GD
15105 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15106 # socket/setsockopt and other routines are undefined under SCO ODT
15107 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
15108 # on later versions), says simon@lia.di.epfl.ch: it contains
15109 # gethostby* variants that don't use the nameserver (or something).
15110 # -lsocket must be given before -lnsl if both are needed.
15111 # We assume that if connect needs -lnsl, so does gethostbyname.
15112 echo $ac_n "checking for connect""... $ac_c" 1>&6
521196a2 15113echo "configure:15114: checking for connect" >&5
a0b9e27f
MB
15114if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15115 echo $ac_n "(cached) $ac_c" 1>&6
15116else
15117 cat > conftest.$ac_ext <<EOF
521196a2 15118#line 15119 "configure"
21d1c967
GD
15119#include "confdefs.h"
15120/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15121 which can conflict with char connect(); below. */
21d1c967
GD
15122#include <assert.h>
15123/* Override any gcc2 internal prototype to avoid an error. */
15124/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15125 builtin and then its argument prototype would still apply. */
15126char connect();
15127
15128int main() {
15129
21d1c967
GD
15130/* The GNU C library defines this for functions which it implements
15131 to always fail with ENOSYS. Some functions are actually named
15132 something starting with __ and the normal name is an alias. */
15133#if defined (__stub_connect) || defined (__stub___connect)
15134choke me
15135#else
a0b9e27f 15136connect();
21d1c967 15137#endif
90dd450c 15138
a0b9e27f
MB
15139; return 0; }
15140EOF
521196a2 15141if { (eval echo configure:15142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15142 rm -rf conftest*
15143 eval "ac_cv_func_connect=yes"
15144else
15145 echo "configure: failed program was:" >&5
15146 cat conftest.$ac_ext >&5
15147 rm -rf conftest*
15148 eval "ac_cv_func_connect=no"
15149fi
15150rm -f conftest*
15151fi
15152
15153if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15154 echo "$ac_t""yes" 1>&6
15155 :
15156else
15157 echo "$ac_t""no" 1>&6
15158fi
1f8ae82f 15159
21d1c967 15160 if test $ac_cv_func_connect = no; then
a0b9e27f 15161 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
521196a2 15162echo "configure:15163: checking for connect in -lsocket" >&5
a0b9e27f
MB
15163ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15164if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15165 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15166else
a0b9e27f 15167 ac_save_LIBS="$LIBS"
21d1c967 15168LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15169cat > conftest.$ac_ext <<EOF
521196a2 15170#line 15171 "configure"
0fbb762e 15171#include "confdefs.h"
21d1c967
GD
15172/* Override any gcc2 internal prototype to avoid an error. */
15173/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15174 builtin and then its argument prototype would still apply. */
15175char connect();
15176
15177int main() {
15178connect()
15179; return 0; }
15180EOF
521196a2 15181if { (eval echo configure:15182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15182 rm -rf conftest*
15183 eval "ac_cv_lib_$ac_lib_var=yes"
15184else
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 rm -rf conftest*
15188 eval "ac_cv_lib_$ac_lib_var=no"
15189fi
15190rm -f conftest*
15191LIBS="$ac_save_LIBS"
15192
15193fi
15194if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15195 echo "$ac_t""yes" 1>&6
21d1c967 15196 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15197else
15198 echo "$ac_t""no" 1>&6
21d1c967 15199fi
90dd450c 15200
21d1c967 15201 fi
90dd450c 15202
a0b9e27f
MB
15203 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15204 echo $ac_n "checking for remove""... $ac_c" 1>&6
521196a2 15205echo "configure:15206: checking for remove" >&5
a0b9e27f
MB
15206if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15207 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15208else
a0b9e27f 15209 cat > conftest.$ac_ext <<EOF
521196a2 15210#line 15211 "configure"
21d1c967
GD
15211#include "confdefs.h"
15212/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15213 which can conflict with char remove(); below. */
21d1c967
GD
15214#include <assert.h>
15215/* Override any gcc2 internal prototype to avoid an error. */
15216/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15217 builtin and then its argument prototype would still apply. */
15218char remove();
15219
15220int main() {
15221
21d1c967
GD
15222/* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225#if defined (__stub_remove) || defined (__stub___remove)
15226choke me
15227#else
a0b9e27f 15228remove();
21d1c967 15229#endif
90dd450c 15230
a0b9e27f
MB
15231; return 0; }
15232EOF
521196a2 15233if { (eval echo configure:15234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15234 rm -rf conftest*
15235 eval "ac_cv_func_remove=yes"
15236else
15237 echo "configure: failed program was:" >&5
15238 cat conftest.$ac_ext >&5
15239 rm -rf conftest*
15240 eval "ac_cv_func_remove=no"
15241fi
15242rm -f conftest*
15243fi
15244
15245if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15246 echo "$ac_t""yes" 1>&6
15247 :
15248else
15249 echo "$ac_t""no" 1>&6
15250fi
90dd450c 15251
21d1c967 15252 if test $ac_cv_func_remove = no; then
a0b9e27f 15253 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
521196a2 15254echo "configure:15255: checking for remove in -lposix" >&5
a0b9e27f
MB
15255ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15256if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15257 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15258else
a0b9e27f 15259 ac_save_LIBS="$LIBS"
21d1c967 15260LIBS="-lposix $LIBS"
a0b9e27f 15261cat > conftest.$ac_ext <<EOF
521196a2 15262#line 15263 "configure"
21d1c967
GD
15263#include "confdefs.h"
15264/* Override any gcc2 internal prototype to avoid an error. */
15265/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15266 builtin and then its argument prototype would still apply. */
15267char remove();
15268
15269int main() {
15270remove()
15271; return 0; }
15272EOF
521196a2 15273if { (eval echo configure:15274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15274 rm -rf conftest*
15275 eval "ac_cv_lib_$ac_lib_var=yes"
15276else
15277 echo "configure: failed program was:" >&5
15278 cat conftest.$ac_ext >&5
15279 rm -rf conftest*
15280 eval "ac_cv_lib_$ac_lib_var=no"
15281fi
15282rm -f conftest*
15283LIBS="$ac_save_LIBS"
15284
15285fi
15286if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15287 echo "$ac_t""yes" 1>&6
21d1c967 15288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15289else
15290 echo "$ac_t""no" 1>&6
21d1c967 15291fi
19bc6aad 15292
90dd450c 15293 fi
19bc6aad 15294
21d1c967 15295 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15296 echo $ac_n "checking for shmat""... $ac_c" 1>&6
521196a2 15297echo "configure:15298: checking for shmat" >&5
a0b9e27f
MB
15298if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15299 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15300else
a0b9e27f 15301 cat > conftest.$ac_ext <<EOF
521196a2 15302#line 15303 "configure"
21d1c967
GD
15303#include "confdefs.h"
15304/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15305 which can conflict with char shmat(); below. */
21d1c967
GD
15306#include <assert.h>
15307/* Override any gcc2 internal prototype to avoid an error. */
15308/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15309 builtin and then its argument prototype would still apply. */
15310char shmat();
15311
15312int main() {
15313
21d1c967
GD
15314/* The GNU C library defines this for functions which it implements
15315 to always fail with ENOSYS. Some functions are actually named
15316 something starting with __ and the normal name is an alias. */
15317#if defined (__stub_shmat) || defined (__stub___shmat)
15318choke me
15319#else
a0b9e27f 15320shmat();
21d1c967 15321#endif
90dd450c 15322
a0b9e27f
MB
15323; return 0; }
15324EOF
521196a2 15325if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15326 rm -rf conftest*
15327 eval "ac_cv_func_shmat=yes"
15328else
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 rm -rf conftest*
15332 eval "ac_cv_func_shmat=no"
15333fi
15334rm -f conftest*
15335fi
15336
15337if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
15339 :
15340else
15341 echo "$ac_t""no" 1>&6
15342fi
19bc6aad 15343
21d1c967 15344 if test $ac_cv_func_shmat = no; then
a0b9e27f 15345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
521196a2 15346echo "configure:15347: checking for shmat in -lipc" >&5
a0b9e27f
MB
15347ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15348if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15349 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15350else
a0b9e27f 15351 ac_save_LIBS="$LIBS"
5c6fa7d2 15352LIBS="-lipc $LIBS"
a0b9e27f 15353cat > conftest.$ac_ext <<EOF
521196a2 15354#line 15355 "configure"
5c6fa7d2 15355#include "confdefs.h"
5c6fa7d2 15356/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15357/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15358 builtin and then its argument prototype would still apply. */
15359char shmat();
15360
15361int main() {
15362shmat()
15363; return 0; }
15364EOF
521196a2 15365if { (eval echo configure:15366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15366 rm -rf conftest*
15367 eval "ac_cv_lib_$ac_lib_var=yes"
15368else
15369 echo "configure: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15371 rm -rf conftest*
15372 eval "ac_cv_lib_$ac_lib_var=no"
15373fi
15374rm -f conftest*
15375LIBS="$ac_save_LIBS"
15376
15377fi
15378if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15379 echo "$ac_t""yes" 1>&6
21d1c967 15380 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15381else
15382 echo "$ac_t""no" 1>&6
9f8148b1 15383fi
90dd450c 15384
90dd450c 15385 fi
21d1c967 15386 fi
10f2d63a 15387
21d1c967 15388 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15389 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15390 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15391 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15392 # check for ICE first), but we must link in the order -lSM -lICE or
15393 # we get undefined symbols. So assume we have SM if we have ICE.
15394 # These have to be linked with before -lX11, unlike the other
15395 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15396 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15397 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
521196a2 15398echo "configure:15399: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15399ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15401 echo $ac_n "(cached) $ac_c" 1>&6
15402else
15403 ac_save_LIBS="$LIBS"
f09359cf 15404LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15405cat > conftest.$ac_ext <<EOF
521196a2 15406#line 15407 "configure"
29fd3c0c 15407#include "confdefs.h"
21d1c967
GD
15408/* Override any gcc2 internal prototype to avoid an error. */
15409/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15410 builtin and then its argument prototype would still apply. */
15411char IceConnectionNumber();
15412
15413int main() {
15414IceConnectionNumber()
15415; return 0; }
15416EOF
521196a2 15417if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15418 rm -rf conftest*
15419 eval "ac_cv_lib_$ac_lib_var=yes"
15420else
15421 echo "configure: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15423 rm -rf conftest*
15424 eval "ac_cv_lib_$ac_lib_var=no"
15425fi
15426rm -f conftest*
15427LIBS="$ac_save_LIBS"
15428
15429fi
15430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15431 echo "$ac_t""yes" 1>&6
21d1c967 15432 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15433else
15434 echo "$ac_t""no" 1>&6
29fd3c0c 15435fi
21d1c967 15436
a0b9e27f 15437 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15438
10f2d63a
VZ
15439fi
15440
8284b0c5 15441
21d1c967 15442 if test "$no_x" = "yes"; then
a0b9e27f 15443 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15444 fi
15445
2b5f62a0
VZ
15446 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15447 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15448 AFMINSTALL=afminstall
15449 COMPILED_X_PROGRAM=0
15450
a0b9e27f 15451 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
521196a2 15452echo "configure:15453: checking for Motif/Lesstif headers" >&5
a0b9e27f 15453
21d1c967 15454ac_find_includes=
2b5f62a0 15455for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15456 do
15457 if test -f "$ac_dir/Xm/Xm.h"; then
15458 ac_find_includes=$ac_dir
15459 break
15460 fi
15461 done
15462
15463 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15464 echo "$ac_t""found in $ac_find_includes" 1>&6
15465
2b5f62a0 15466 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15467 ac_path_to_include=""
15468 else
2b5f62a0
VZ
15469 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15470 result=$?
15471 if test $result = 0; then
15472 ac_path_to_include=""
15473 else
15474 ac_path_to_include=" -I$ac_find_includes"
15475 fi
dd0e4a90
VZ
15476 fi
15477
15478 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15479 else
a0b9e27f 15480 cat > conftest.$ac_ext <<EOF
521196a2 15481#line 15482 "configure"
10f2d63a 15482#include "confdefs.h"
21d1c967
GD
15483
15484 #include <Xm/Xm.h>
a0b9e27f
MB
15485
15486int main() {
21d1c967
GD
15487
15488 int version;
15489 version = xmUseVersion;
a0b9e27f
MB
15490
15491; return 0; }
15492EOF
521196a2 15493if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15494 rm -rf conftest*
15495
15496 echo "$ac_t""found in default search path" 1>&6
21d1c967 15497 COMPILED_X_PROGRAM=1
a0b9e27f 15498
10f2d63a 15499else
a0b9e27f
MB
15500 echo "configure: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 rm -rf conftest*
15503
15504 echo "$ac_t""no" 1>&6
15505 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15506
15507
10f2d63a 15508fi
a0b9e27f 15509rm -f conftest*
21d1c967 15510 fi
10f2d63a 15511
21d1c967 15512 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15513 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
521196a2 15514echo "configure:15515: checking for Motif/Lesstif library" >&5
a0b9e27f 15515
21d1c967 15516ac_find_libraries=
2b5f62a0 15517for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15518 do
15519 for ac_extension in a so sl dylib; do
15520 if test -f "$ac_dir/libXm.$ac_extension"; then
15521 ac_find_libraries=$ac_dir
15522 break 2
15523 fi
15524 done
15525 done
15526
15527 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15528 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15529
a0b9e27f 15530
21d1c967
GD
15531 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15532 result=$?
15533 if test $result = 0; then
15534 ac_path_to_link=""
15535 else
15536 ac_path_to_link=" -L$ac_find_libraries"
15537 fi
15538
21d1c967 15539 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15540 else
dd0e4a90
VZ
15541 save_CFLAGS=$CFLAGS
15542 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15543
a0b9e27f 15544 cat > conftest.$ac_ext <<EOF
521196a2 15545#line 15546 "configure"
d836ee96 15546#include "confdefs.h"
21d1c967
GD
15547
15548 #include <Xm/Xm.h>
a0b9e27f
MB
15549
15550int main() {
21d1c967
GD
15551
15552 int version;
15553 version = xmUseVersion;
a0b9e27f
MB
15554
15555; return 0; }
15556EOF
521196a2 15557if { (eval echo configure:15558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15558 rm -rf conftest*
15559
15560 echo "$ac_t""found in default search path" 1>&6
21d1c967 15561 COMPILED_X_PROGRAM=1
a0b9e27f 15562
d836ee96 15563else
a0b9e27f
MB
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567
15568 echo "$ac_t""no" 1>&6
15569 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15570
15571
d836ee96 15572fi
a0b9e27f 15573rm -f conftest*
dd0e4a90
VZ
15574
15575 CFLAGS=$save_CFLAGS
21d1c967
GD
15576 fi
15577 fi
15578
15579 xpm_link=
a0b9e27f 15580 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
521196a2 15581echo "configure:15582: checking for Xpm library" >&5
a0b9e27f 15582
21d1c967 15583ac_find_libraries=
2b5f62a0 15584for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15585 do
15586 for ac_extension in a so sl dylib; do
15587 if test -f "$ac_dir/libXpm.$ac_extension"; then
15588 ac_find_libraries=$ac_dir
15589 break 2
15590 fi
15591 done
15592 done
15593
15594 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15595
21d1c967
GD
15596 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15597 result=$?
15598 if test $result = 0; then
15599 ac_path_to_link=""
15600 else
15601 ac_path_to_link=" -L$ac_find_libraries"
15602 fi
15603
15604 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15605
21d1c967 15606 xpm_link=" -lXpm"
a0b9e27f 15607 cat >> confdefs.h <<\EOF
21d1c967 15608#define wxHAVE_LIB_XPM 1
a0b9e27f 15609EOF
90dd450c 15610
a0b9e27f 15611 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15612 else
dd0e4a90
VZ
15613 save_CFLAGS=$CFLAGS
15614 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15615
a0b9e27f 15616 cat > conftest.$ac_ext <<EOF
521196a2 15617#line 15618 "configure"
d836ee96 15618#include "confdefs.h"
21d1c967
GD
15619
15620 #include <X11/xpm.h>
a0b9e27f
MB
15621
15622int main() {
21d1c967
GD
15623
15624 int version;
15625 version = XpmLibraryVersion();
a0b9e27f
MB
15626
15627; return 0; }
15628EOF
521196a2 15629if { (eval echo configure:15630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15630 rm -rf conftest*
15631
21d1c967 15632 xpm_link=" -lXpm"
a0b9e27f 15633 cat >> confdefs.h <<\EOF
21d1c967 15634#define wxHAVE_LIB_XPM 1
a0b9e27f 15635EOF
21d1c967 15636
a0b9e27f 15637 echo "$ac_t""found in default search path" 1>&6
21d1c967 15638 COMPILED_X_PROGRAM=0
a0b9e27f 15639
d836ee96 15640else
a0b9e27f
MB
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644
15645 echo "$ac_t""no" 1>&6
15646 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15647
15648
d836ee96 15649fi
a0b9e27f 15650rm -f conftest*
dd0e4a90
VZ
15651
15652 CFLAGS=$save_CFLAGS
21d1c967
GD
15653 fi
15654
a0b9e27f 15655 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
521196a2 15656echo "configure:15657: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15657 libp_link=""
15658 libsm_ice_link=""
15659 libs_found=0
15660 for libp in "" " -lXp"; do
15661 if test "$libs_found" = "0"; then
15662 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15663 if test "$libs_found" = "0"; then
6a30f1c8
MB
15664 save_LIBS="$LIBS"
15665 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15666 save_CFLAGS=$CFLAGS
15667 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15668
a0b9e27f 15669 cat > conftest.$ac_ext <<EOF
521196a2 15670#line 15671 "configure"
6a30f1c8 15671#include "confdefs.h"
17234b26 15672
6a30f1c8
MB
15673 #include <Xm/Xm.h>
15674 #include <Xm/List.h>
a0b9e27f
MB
15675
15676int main() {
6a30f1c8
MB
15677
15678 XmString string = NULL;
15679 Widget w = NULL;
15680 int position = 0;
15681 XmListAddItem(w, string, position);
a0b9e27f
MB
15682
15683; return 0; }
15684EOF
521196a2 15685if { (eval echo configure:15686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15686 rm -rf conftest*
15687
6a30f1c8
MB
15688 libp_link="$libp"
15689 libsm_ice_link="$libsm_ice"
a0b9e27f 15690 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15691 libs_found=1
a0b9e27f 15692
6a30f1c8 15693else
a0b9e27f
MB
15694 echo "configure: failed program was:" >&5
15695 cat conftest.$ac_ext >&5
15696 rm -rf conftest*
15697
15698
6a30f1c8 15699fi
a0b9e27f 15700rm -f conftest*
dd0e4a90 15701
6a30f1c8 15702 LIBS="$save_LIBS"
dd0e4a90 15703 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15704 fi
15705 done
15706 fi
15707 done
15708
15709 if test "$libs_found" = "0"; then
a0b9e27f
MB
15710 echo "$ac_t""can't find the right libraries" 1>&6
15711 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15712 fi
15713
da494b40
MB
15714 save_CFLAGS=$CFLAGS
15715 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15716 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
521196a2 15717echo "configure:15718: checking for Motif 2" >&5
da494b40 15718 cat > conftest.$ac_ext <<EOF
521196a2 15719#line 15720 "configure"
da494b40
MB
15720#include "confdefs.h"
15721
15722 #include <Xm/Xm.h>
15723
15724int main() {
15725
15726 #if XmVersion < 2000
15727 #error "Not Motif 2"
15728 #endif
15729
15730; return 0; }
15731EOF
521196a2 15732if { (eval echo configure:15733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15733 rm -rf conftest*
15734
15735 cat >> confdefs.h <<\EOF
15736#define __WXMOTIF20__ 1
15737EOF
15738
15739 echo "$ac_t""found" 1>&6
15740
15741else
15742 echo "configure: failed program was:" >&5
15743 cat conftest.$ac_ext >&5
15744 rm -rf conftest*
15745
15746 cat >> confdefs.h <<\EOF
15747#define __WXMOTIF20__ 0
15748EOF
15749
15750 echo "$ac_t""not found" 1>&6
15751
15752fi
15753rm -f conftest*
15754 CFLAGS=$save_CFLAGS
15755
6a30f1c8 15756 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15757 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15758 TOOLKIT=MOTIF
15759 GUIDIST=MOTIF_DIST
15760 fi
15761
15762 if test "$wxUSE_MAC" = 1; then
0c98a14e 15763 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15764
0c98a14e 15765 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15766 TOOLKIT=MAC
15767 GUIDIST=MACX_DIST
15768 fi
15769
15770 if test "$wxUSE_PM" = 1; then
15771 TOOLKIT=PM
15772 GUIDIST=GTK_DIST
2b5f62a0 15773 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
f657dbe7
MB
15774 wxUSE_PROLOGIO="yes"
15775 wxUSE_RESOURCES="yes"
2b5f62a0 15776 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15777 wxUSE_THREADS="no"
21d1c967
GD
15778 fi
15779
15780 if test "$TOOLKIT" = "PM" ; then
15781 TOOLKIT_DIR="os2"
15782 else
15783 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15784 fi
15785
15786 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15787
15788 if test "$wxUSE_UNIVERSAL" = "yes"; then
15789 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15790
15791 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15792 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15793
15794 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15795 if test "$wxUSE_X11" = 1; then
15796 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15797 else
15798 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15799 fi
15800 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15801 WIDGET_SET=univ
15802 else
15803 ALL_OBJECTS="\$(GUIOBJS)"
15804 ALL_SOURCES="\$(ALL_SOURCES)"
15805 ALL_HEADERS="\$(ALL_HEADERS)"
15806 fi
15807
15808 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15809
15810 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15811 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15812 fi
15813
15814 if test "$wxUSE_HTML" = "yes"; then
15815 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15816 fi
15817
15818 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15819 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15820 fi
15821 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15822 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15823 fi
15824 if test "$wxUSE_LIBPNG" = "builtin" ; then
15825 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15826 fi
15827
15828 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15829 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15830else
21d1c967
GD
15831 USE_GUI=0
15832
15833 TOOLKIT_DIR="base"
15834
15835 if test "$USE_WIN32" = 1 ; then
15836 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15837 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15838
15839 TOOLKIT="MSW"
15840 else
15841 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15842 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15843 fi
15844
15845 ALL_SOURCES="\$(ALL_SOURCES)"
15846 ALL_HEADERS="\$(ALL_HEADERS)"
15847
15848 PORT_FILES="\${top_srcdir}/src/files.lst"
15849
15850 GUIDIST="BASE_DIST"
15851 DISTDIR="wxBase"
d836ee96
VZ
15852fi
15853
8284b0c5 15854
21d1c967
GD
15855if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15856 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15857fi
21d1c967
GD
15858
15859if test "$wxUSE_REGEX" = "builtin" ; then
15860 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15861fi
21d1c967
GD
15862if test "$wxUSE_ZLIB" = "builtin" ; then
15863 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15864fi
15865
8284b0c5 15866
21d1c967
GD
15867if test "$wxUSE_OPENGL" = "yes"; then
15868 if test "$wxUSE_MAC" = 1; then
15869 OPENGL_LIBS="-framework OpenGL -framework AGL"
15870 elif test "$wxUSE_MSW" = 1; then
15871 OPENGL_LIBS="-lopengl32 -lglu32"
15872 else
a0b9e27f
MB
15873 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15874echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
521196a2 15875echo "configure:15876: checking for GL/gl.h" >&5
a0b9e27f
MB
15876if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15877 echo $ac_n "(cached) $ac_c" 1>&6
15878else
15879 cat > conftest.$ac_ext <<EOF
521196a2 15880#line 15881 "configure"
10f2d63a 15881#include "confdefs.h"
21d1c967 15882#include <GL/gl.h>
a0b9e27f
MB
15883EOF
15884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 15885{ (eval echo configure:15886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15886ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15887if test -z "$ac_err"; then
15888 rm -rf conftest*
15889 eval "ac_cv_header_$ac_safe=yes"
15890else
15891 echo "$ac_err" >&5
15892 echo "configure: failed program was:" >&5
698dcdb6 15893 cat conftest.$ac_ext >&5
a0b9e27f
MB
15894 rm -rf conftest*
15895 eval "ac_cv_header_$ac_safe=no"
703e0a69 15896fi
a0b9e27f 15897rm -f conftest*
698dcdb6 15898fi
a0b9e27f
MB
15899if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15900 echo "$ac_t""yes" 1>&6
15901
15902 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
521196a2 15903echo "configure:15904: checking for -lGL" >&5
a0b9e27f 15904
21d1c967 15905ac_find_libraries=
2b5f62a0 15906for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15907 do
15908 for ac_extension in a so sl dylib; do
15909 if test -f "$ac_dir/libGL.$ac_extension"; then
15910 ac_find_libraries=$ac_dir
15911 break 2
15912 fi
15913 done
15914 done
15915
15916 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15917
21d1c967
GD
15918 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15919 result=$?
15920 if test $result = 0; then
15921 ac_path_to_link=""
15922 else
15923 ac_path_to_link=" -L$ac_find_libraries"
15924 fi
15925
15926 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15927 LDFLAGS_GL="$LDFLAGS"
15928 else
15929 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15930 fi
15931 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15932 echo "$ac_t""yes" 1>&6
21d1c967 15933 else
a0b9e27f
MB
15934 echo "$ac_t""no" 1>&6
15935 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
521196a2 15936echo "configure:15937: checking for -lMesaGL" >&5
a0b9e27f 15937
21d1c967 15938ac_find_libraries=
2b5f62a0 15939for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15940 do
15941 for ac_extension in a so sl dylib; do
15942 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15943 ac_find_libraries=$ac_dir
15944 break 2
15945 fi
15946 done
15947 done
15948
15949 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15950
21d1c967
GD
15951 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15952 result=$?
15953 if test $result = 0; then
15954 ac_path_to_link=""
15955 else
15956 ac_path_to_link=" -L$ac_find_libraries"
15957 fi
15958
15959 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15960 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15961 echo "$ac_t""yes" 1>&6
21d1c967 15962 else
a0b9e27f 15963 echo "$ac_t""no" 1>&6
21d1c967
GD
15964 fi
15965 fi
a0b9e27f
MB
15966
15967else
15968 echo "$ac_t""no" 1>&6
5c6fa7d2 15969fi
52127426 15970
8284b0c5 15971
21d1c967 15972 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15973 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15974 fi
15975 fi
90dd450c 15976
21d1c967 15977 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15978 cat >> confdefs.h <<\EOF
21d1c967 15979#define wxUSE_OPENGL 1
a0b9e27f 15980EOF
21d1c967 15981
a0b9e27f 15982 cat >> confdefs.h <<\EOF
21d1c967 15983#define wxUSE_GLCANVAS 1
a0b9e27f 15984EOF
21d1c967
GD
15985
15986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15987 fi
10f2d63a 15988fi
21d1c967
GD
15989
15990if test -z "$TOOLKIT_VPATH" ; then
15991 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15992fi
21d1c967
GD
15993
15994if test -n "$TOOLKIT" ; then
15995 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15996fi
15997
15998lib_unicode_suffix=
15999if test "$wxUSE_UNICODE" = "yes"; then
16000 lib_unicode_suffix=u
90dd450c 16001fi
698dcdb6 16002
21d1c967
GD
16003lib_debug_suffix=
16004if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16005 lib_debug_suffix=d
16006fi
698dcdb6 16007
2b5f62a0
VZ
16008WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16009
16010TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16011TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
16012
16013if test "$cross_compiling" = "yes"; then
16014 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16015 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16016fi
16017
16018WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16019WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 16020WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
16021
16022WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16023WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16024
16025WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16026WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16027WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16028WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16029
16030case "${host}" in
16031 *-*-cygwin* | *-*-mingw32* )
16032
a0b9e27f
MB
16033
16034
17234b26 16035 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
16036 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16037 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16038 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16039 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16040 else
16041 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16042 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16043 fi
16044 ;;
16045
16046 *-*-darwin* )
0c98a14e 16047
05159a27
GD
16048 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16049 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16050
16051 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16052 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16053 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16054 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16055
21d1c967 16056 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16057 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16058 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16059 fi
16060 ;;
16061esac
16062
16063WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16064WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16065
16066WXCONFIG_LIBS="-l${WX_LIBRARY}"
16067WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16068
16069if test "$wxUSE_OPENGL" = "yes"; then
16070 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16071 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16072fi
16073
8284b0c5
MB
16074
16075
21d1c967
GD
16076if test "$wxUSE_SHARED" = "yes"; then
16077 case "${host}" in
16078 *-pc-os2_emx | *-pc-os2-emx | \
16079 *-pc-msdosdjgpp )
16080 wxUSE_SHARED=no
a0b9e27f 16081 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16082 ;;
16083 esac
16084fi
16085
2b5f62a0
VZ
16086if test "$wxUSE_SHARED" = "yes"; then
16087
16088 if test "$wxUSE_OPENGL" = "yes"; then
16089 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16090 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16091 else
16092 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16093 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16094 fi
16095
16096 if test "$GCC" = "yes"; then
16097 PIC_FLAG="-fPIC"
16098 fi
16099
16100
16101
16102 found_versioning=no
16103
b4eecb7e 16104
2b5f62a0
VZ
16105 if test $found_versioning = no ; then
16106 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
521196a2 16107echo "configure:16108: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16108if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16109 echo $ac_n "(cached) $ac_c" 1>&6
16110else
16111
16112 echo "VER_1 { *; };" >conftest.sym
16113 echo "int main() { return 0; }" >conftest.cpp
16114
16115 if { ac_try='
16116 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
521196a2 16117 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16118 if test -s conftest.stderr ; then
16119 wx_cv_version_script=no
16120 else
16121 wx_cv_version_script=yes
16122 fi
16123 else
16124 wx_cv_version_script=no
16125 fi
16126 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16127
16128fi
16129
16130echo "$ac_t""$wx_cv_version_script" 1>&6
16131 if test $wx_cv_version_script = yes ; then
16132 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16133 fi
16134 fi
21d1c967 16135
21d1c967
GD
16136
16137 SHARED_LD="${CXX} -shared -o"
16138
16139 case "${host}" in
16140 *-hp-hpux* )
ad2622f1 16141 if test "$GCC" = "yes"; then
85d5e282 16142 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16143 else
16144 LDFLAGS="$LDFLAGS -L/usr/lib"
16145
16146 SHARED_LD="${CXX} -b -o"
16147 PIC_FLAG="+Z"
16148 fi
16149
16150 if test "$wxUSE_OPENGL" = "yes"; then
16151 WX_ALL_INSTALLED="preinstall_gl"
16152 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16153 else
16154 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16155 fi
16156 ;;
16157
16158 *-*-linux* )
16159 if test "$GCC" != "yes"; then
a0b9e27f 16160 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
521196a2 16161echo "configure:16162: checking for Intel compiler" >&5
a0b9e27f
MB
16162if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
16164else
16165
16166 cat > conftest.$ac_ext <<EOF
521196a2 16167#line 16168 "configure"
698dcdb6 16168#include "confdefs.h"
90dd450c 16169
a0b9e27f 16170int main() {
90dd450c 16171
21d1c967
GD
16172 #ifndef __INTEL_COMPILER
16173 #error Not icc
16174 #endif
a0b9e27f
MB
16175
16176; return 0; }
16177EOF
521196a2 16178if { (eval echo configure:16179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16179 rm -rf conftest*
21d1c967 16180 wx_cv_prog_icc=yes
6232543b 16181else
a0b9e27f
MB
16182 echo "configure: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16184 rm -rf conftest*
16185 wx_cv_prog_icc=no
16186
5c6fa7d2 16187fi
a0b9e27f
MB
16188rm -f conftest*
16189
247f5006 16190fi
a0b9e27f
MB
16191
16192echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16193 if test "$wx_cv_prog_icc" = "yes"; then
16194 PIC_FLAG="-KPIC"
16195 fi
16196 fi
16197
16198 if test "$wxUSE_SONAME" = "yes" ; then
16199 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16200 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16201 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16202 fi
16203 ;;
16204
16205 *-*-solaris2* )
16206 if test "$GCC" = yes ; then
16207 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16208 else
16209 SHARED_LD="${CXX} -G -o"
16210 PIC_FLAG="-KPIC"
16211 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16212 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16213 fi
16214 ;;
16215
16216 *-*-darwin* )
b2fee376
GD
16217 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16218 CFLAGS="$CFLAGS -fno-common"
16219 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16220 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16221 PIC_FLAG="-dynamic -fPIC"
f346733b 16222 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16223 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16224 ;;
16225
16226 *-*-aix* )
2b5f62a0
VZ
16227 if test "$GCC" != "yes"; then
16228 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16229set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16230echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 16231echo "configure:16232: checking for $ac_word" >&5
a0b9e27f
MB
16232if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16233 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16234else
16235 if test -n "$AIX_CXX_LD"; then
16236 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16237else
a0b9e27f
MB
16238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16239 ac_dummy="$PATH"
16240 for ac_dir in $ac_dummy; do
16241 test -z "$ac_dir" && ac_dir=.
16242 if test -f $ac_dir/$ac_word; then
16243 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16244 break
16245 fi
16246 done
16247 IFS="$ac_save_ifs"
321d2b14
VZ
16248 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16249fi
16250fi
a0b9e27f 16251AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16252if test -n "$AIX_CXX_LD"; then
a0b9e27f 16253 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16254else
a0b9e27f 16255 echo "$ac_t""no" 1>&6
321d2b14
VZ
16256fi
16257
8284b0c5 16258
2b5f62a0
VZ
16259 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16260 fi
21d1c967
GD
16261 ;;
16262
16263 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16264 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16265
16266 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16267 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16268
16269 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16270
f657dbe7
MB
16271 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16272 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16273
16274 if test "$wxUSE_OPENGL" = "yes"; then
16275 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16276 fi
16277 ;;
16278
16279 *-*-beos* )
16280 SHARED_LD="${LD} -shared -o"
16281 ;;
16282
2b5f62a0
VZ
16283 *-*-irix* )
16284 if test "$GCC" != "yes"; then
16285 PIC_FLAG="-KPIC"
16286 fi
16287 ;;
16288
21d1c967
GD
16289 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16290 *-*-sunos4* | \
21d1c967
GD
16291 *-*-osf* | \
16292 *-*-dgux5* | \
16293 *-*-sysv5* )
16294 ;;
16295
16296 *)
a0b9e27f 16297 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16298 esac
16299
16300 if test "x$WX_TARGET_LIBRARY" = "x"; then
16301 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16302 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16303 fi
16304
16305 WX_TARGET_LIBRARY_TYPE="so"
16306 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16307fi
10f2d63a 16308
21d1c967
GD
16309if test "$wxUSE_SHARED" = "no"; then
16310
16311 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16312 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16313 fi
16314
16315 if test "$wxUSE_MAC" = 1; then
16316 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16317 fi
16318
16319 if test "$wxUSE_OPENGL" = "yes"; then
16320 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16321 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16322 else
16323 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16324 fi
16325
16326 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16327 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16328
16329 WX_TARGET_LIBRARY_TYPE="a"
16330 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16331
16332 STATIC_FLAG="yes"
16333else
16334 STATIC_FLAG="no"
90dd450c 16335fi
1e487827 16336
93fac604
VZ
16337MACRESCOMP="@#"
16338MACSETFILE="@#"
36825681 16339MACRESWXCONFIG="#"
21d1c967
GD
16340if test "$wxUSE_MAC" = 1; then
16341 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16342 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16343 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16344 # Extract the first word of "Rez", so it can be a program name with args.
16345set dummy Rez; ac_word=$2
a0b9e27f 16346echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 16347echo "configure:16348: checking for $ac_word" >&5
a0b9e27f
MB
16348if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16349 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16350else
21d1c967
GD
16351 if test -n "$RESCOMP"; then
16352 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16353else
a0b9e27f
MB
16354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16355 ac_dummy="$PATH"
16356 for ac_dir in $ac_dummy; do
16357 test -z "$ac_dir" && ac_dir=.
16358 if test -f $ac_dir/$ac_word; then
16359 ac_cv_prog_RESCOMP="Rez"
16360 break
16361 fi
16362 done
16363 IFS="$ac_save_ifs"
21d1c967 16364 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16365fi
b93d0d08 16366fi
a0b9e27f 16367RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16368if test -n "$RESCOMP"; then
a0b9e27f 16369 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16370else
a0b9e27f 16371 echo "$ac_t""no" 1>&6
90dd450c 16372fi
b93d0d08 16373
21d1c967
GD
16374 # Extract the first word of "DeRez", so it can be a program name with args.
16375set dummy DeRez; ac_word=$2
a0b9e27f 16376echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 16377echo "configure:16378: checking for $ac_word" >&5
a0b9e27f
MB
16378if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16379 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16380else
21d1c967
GD
16381 if test -n "$DEREZ"; then
16382 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16383else
a0b9e27f
MB
16384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16385 ac_dummy="$PATH"
16386 for ac_dir in $ac_dummy; do
16387 test -z "$ac_dir" && ac_dir=.
16388 if test -f $ac_dir/$ac_word; then
16389 ac_cv_prog_DEREZ="DeRez"
16390 break
16391 fi
16392 done
16393 IFS="$ac_save_ifs"
21d1c967 16394 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16395fi
90dd450c 16396fi
a0b9e27f 16397DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16398if test -n "$DEREZ"; then
a0b9e27f 16399 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16400else
a0b9e27f 16401 echo "$ac_t""no" 1>&6
3a922bb4 16402fi
698dcdb6 16403
36825681
GD
16404 # Extract the first word of "SetFile", so it can be a program name with args.
16405set dummy SetFile; ac_word=$2
16406echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
521196a2 16407echo "configure:16408: checking for $ac_word" >&5
36825681
GD
16408if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16409 echo $ac_n "(cached) $ac_c" 1>&6
16410else
16411 if test -n "$SETFILE"; then
16412 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16413else
16414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16415 ac_dummy="$PATH"
16416 for ac_dir in $ac_dummy; do
16417 test -z "$ac_dir" && ac_dir=.
16418 if test -f $ac_dir/$ac_word; then
16419 ac_cv_prog_SETFILE="SetFile"
16420 break
16421 fi
16422 done
16423 IFS="$ac_save_ifs"
16424 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16425fi
16426fi
16427SETFILE="$ac_cv_prog_SETFILE"
16428if test -n "$SETFILE"; then
16429 echo "$ac_t""$SETFILE" 1>&6
16430else
16431 echo "$ac_t""no" 1>&6
16432fi
16433
21d1c967 16434 MACOSX_BUNDLE="bundle"
36825681
GD
16435 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16436 MACSETFILE="\$(SETFILE)"
16437 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16438else
16439 if test "$wxUSE_PM" = 1; then
36825681 16440 MACRESCOMP="emxbind -ep"
90dd450c 16441 fi
4f14bcd8 16442fi
10f2d63a 16443
8284b0c5 16444
a0b9e27f 16445echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
521196a2 16446echo "configure:16447: checking for ANSI C header files" >&5
a0b9e27f
MB
16447if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16448 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16449else
a0b9e27f 16450 cat > conftest.$ac_ext <<EOF
521196a2 16451#line 16452 "configure"
52127426 16452#include "confdefs.h"
a0b9e27f
MB
16453#include <stdlib.h>
16454#include <stdarg.h>
16455#include <string.h>
16456#include <float.h>
16457EOF
16458ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 16459{ (eval echo configure:16460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16460ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16461if test -z "$ac_err"; then
16462 rm -rf conftest*
16463 ac_cv_header_stdc=yes
16464else
16465 echo "$ac_err" >&5
16466 echo "configure: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16468 rm -rf conftest*
16469 ac_cv_header_stdc=no
16470fi
16471rm -f conftest*
16472
16473if test $ac_cv_header_stdc = yes; then
16474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16475cat > conftest.$ac_ext <<EOF
521196a2 16476#line 16477 "configure"
a0b9e27f
MB
16477#include "confdefs.h"
16478#include <string.h>
16479EOF
16480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16481 egrep "memchr" >/dev/null 2>&1; then
16482 :
16483else
16484 rm -rf conftest*
16485 ac_cv_header_stdc=no
16486fi
16487rm -f conftest*
16488
16489fi
16490
16491if test $ac_cv_header_stdc = yes; then
16492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16493cat > conftest.$ac_ext <<EOF
521196a2 16494#line 16495 "configure"
a0b9e27f
MB
16495#include "confdefs.h"
16496#include <stdlib.h>
16497EOF
16498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499 egrep "free" >/dev/null 2>&1; then
16500 :
7b4a847f 16501else
a0b9e27f
MB
16502 rm -rf conftest*
16503 ac_cv_header_stdc=no
52127426 16504fi
a0b9e27f
MB
16505rm -f conftest*
16506
52127426 16507fi
a0b9e27f
MB
16508
16509if test $ac_cv_header_stdc = yes; then
16510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16511if test "$cross_compiling" = yes; then
247f5006
VZ
16512 :
16513else
a0b9e27f 16514 cat > conftest.$ac_ext <<EOF
521196a2 16515#line 16516 "configure"
a0b9e27f
MB
16516#include "confdefs.h"
16517#include <ctype.h>
16518#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16519#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16521int main () { int i; for (i = 0; i < 256; i++)
16522if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16523exit (0); }
247f5006 16524
a0b9e27f 16525EOF
521196a2 16526if { (eval echo configure:16527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16527then
16528 :
16529else
16530 echo "configure: failed program was:" >&5
16531 cat conftest.$ac_ext >&5
16532 rm -fr conftest*
16533 ac_cv_header_stdc=no
16534fi
16535rm -fr conftest*
16536fi
16537
16538fi
16539fi
16540
16541echo "$ac_t""$ac_cv_header_stdc" 1>&6
16542if test $ac_cv_header_stdc = yes; then
16543 cat >> confdefs.h <<\EOF
16544#define STDC_HEADERS 1
16545EOF
8284b0c5
MB
16546
16547fi
16548
a0b9e27f 16549echo $ac_n "checking for mode_t""... $ac_c" 1>&6
521196a2 16550echo "configure:16551: checking for mode_t" >&5
a0b9e27f
MB
16551if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16552 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16553else
a0b9e27f 16554 cat > conftest.$ac_ext <<EOF
521196a2 16555#line 16556 "configure"
8284b0c5 16556#include "confdefs.h"
a0b9e27f
MB
16557#include <sys/types.h>
16558#if STDC_HEADERS
16559#include <stdlib.h>
16560#include <stddef.h>
8284b0c5 16561#endif
a0b9e27f
MB
16562EOF
16563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16564 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16565 rm -rf conftest*
16566 ac_cv_type_mode_t=yes
5c6fa7d2 16567else
a0b9e27f
MB
16568 rm -rf conftest*
16569 ac_cv_type_mode_t=no
16570fi
16571rm -f conftest*
16572
8284b0c5 16573fi
a0b9e27f
MB
16574echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16575if test $ac_cv_type_mode_t = no; then
16576 cat >> confdefs.h <<\EOF
16577#define mode_t int
16578EOF
16579
8284b0c5 16580fi
a0b9e27f
MB
16581
16582echo $ac_n "checking for off_t""... $ac_c" 1>&6
521196a2 16583echo "configure:16584: checking for off_t" >&5
a0b9e27f
MB
16584if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16585 echo $ac_n "(cached) $ac_c" 1>&6
16586else
16587 cat > conftest.$ac_ext <<EOF
521196a2 16588#line 16589 "configure"
a0b9e27f
MB
16589#include "confdefs.h"
16590#include <sys/types.h>
16591#if STDC_HEADERS
16592#include <stdlib.h>
16593#include <stddef.h>
16594#endif
16595EOF
16596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16597 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16598 rm -rf conftest*
16599 ac_cv_type_off_t=yes
247f5006 16600else
a0b9e27f
MB
16601 rm -rf conftest*
16602 ac_cv_type_off_t=no
16603fi
16604rm -f conftest*
247f5006 16605
a0b9e27f
MB
16606fi
16607echo "$ac_t""$ac_cv_type_off_t" 1>&6
16608if test $ac_cv_type_off_t = no; then
16609 cat >> confdefs.h <<\EOF
90dd450c 16610#define off_t long
a0b9e27f 16611EOF
10f2d63a 16612
90dd450c 16613fi
10f2d63a 16614
a0b9e27f 16615echo $ac_n "checking for pid_t""... $ac_c" 1>&6
521196a2 16616echo "configure:16617: checking for pid_t" >&5
a0b9e27f
MB
16617if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16618 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16619else
a0b9e27f 16620 cat > conftest.$ac_ext <<EOF
521196a2 16621#line 16622 "configure"
10f2d63a 16622#include "confdefs.h"
a0b9e27f
MB
16623#include <sys/types.h>
16624#if STDC_HEADERS
16625#include <stdlib.h>
16626#include <stddef.h>
8284b0c5 16627#endif
a0b9e27f
MB
16628EOF
16629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16630 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16631 rm -rf conftest*
90dd450c 16632 ac_cv_type_pid_t=yes
698dcdb6 16633else
a0b9e27f
MB
16634 rm -rf conftest*
16635 ac_cv_type_pid_t=no
8284b0c5 16636fi
a0b9e27f 16637rm -f conftest*
247f5006 16638
a0b9e27f
MB
16639fi
16640echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16641if test $ac_cv_type_pid_t = no; then
16642 cat >> confdefs.h <<\EOF
90dd450c 16643#define pid_t int
a0b9e27f 16644EOF
10f2d63a 16645
7b4a847f
RR
16646fi
16647
a0b9e27f 16648echo $ac_n "checking for size_t""... $ac_c" 1>&6
521196a2 16649echo "configure:16650: checking for size_t" >&5
a0b9e27f
MB
16650if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16651 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16652else
a0b9e27f 16653 cat > conftest.$ac_ext <<EOF
521196a2 16654#line 16655 "configure"
7b4a847f 16655#include "confdefs.h"
a0b9e27f
MB
16656#include <sys/types.h>
16657#if STDC_HEADERS
16658#include <stdlib.h>
16659#include <stddef.h>
8284b0c5 16660#endif
a0b9e27f
MB
16661EOF
16662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16663 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16664 rm -rf conftest*
90dd450c 16665 ac_cv_type_size_t=yes
18dbb1f6 16666else
a0b9e27f
MB
16667 rm -rf conftest*
16668 ac_cv_type_size_t=no
52127426 16669fi
a0b9e27f 16670rm -f conftest*
247f5006 16671
a0b9e27f
MB
16672fi
16673echo "$ac_t""$ac_cv_type_size_t" 1>&6
16674if test $ac_cv_type_size_t = no; then
16675 cat >> confdefs.h <<\EOF
90dd450c 16676#define size_t unsigned
a0b9e27f 16677EOF
90dd450c
VZ
16678
16679fi
16680
a0b9e27f 16681echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
521196a2 16682echo "configure:16683: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16683if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16684 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16685else
a0b9e27f 16686 cat > conftest.$ac_ext <<EOF
521196a2 16687#line 16688 "configure"
b3e8d00a 16688#include "confdefs.h"
90dd450c 16689#include <sys/types.h>
a0b9e27f 16690EOF
90dd450c
VZ
16691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16692 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16693 rm -rf conftest*
90dd450c 16694 ac_cv_type_uid_t=yes
b3e8d00a 16695else
a0b9e27f 16696 rm -rf conftest*
90dd450c 16697 ac_cv_type_uid_t=no
b3e8d00a 16698fi
90dd450c 16699rm -f conftest*
b3e8d00a 16700
4f14bcd8 16701fi
247f5006 16702
a0b9e27f
MB
16703echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16704if test $ac_cv_type_uid_t = no; then
16705 cat >> confdefs.h <<\EOF
90dd450c 16706#define uid_t int
a0b9e27f 16707EOF
247f5006 16708
a0b9e27f 16709 cat >> confdefs.h <<\EOF
90dd450c 16710#define gid_t int
a0b9e27f 16711EOF
4f14bcd8 16712
b3e8d00a 16713fi
b3e8d00a 16714
8284b0c5
MB
16715
16716
a0b9e27f
MB
16717ac_ext=C
16718# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16719ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16720ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16721ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16722cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16723
a0b9e27f 16724echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
521196a2 16725echo "configure:16726: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16726if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16727 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16728else
a0b9e27f 16729 cat > conftest.$ac_ext <<EOF
521196a2 16730#line 16731 "configure"
10f2d63a 16731#include "confdefs.h"
90dd450c 16732#include <stddef.h>
a0b9e27f 16733int main() {
90dd450c
VZ
16734
16735 return 0; }
16736
16737 struct Foo { void foo(size_t); void foo(unsigned int); };
16738
16739 int bar() {
a0b9e27f
MB
16740
16741; return 0; }
16742EOF
521196a2 16743if { (eval echo configure:16744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16744 rm -rf conftest*
90dd450c 16745 wx_cv_size_t_is_uint=no
698dcdb6 16746else
a0b9e27f
MB
16747 echo "configure: failed program was:" >&5
16748 cat conftest.$ac_ext >&5
16749 rm -rf conftest*
16750 wx_cv_size_t_is_uint=yes
16751
5c6fa7d2 16752fi
a0b9e27f 16753rm -f conftest*
8284b0c5 16754
247f5006 16755fi
a0b9e27f
MB
16756
16757echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16758
90dd450c 16759if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16760 cat >> confdefs.h <<\EOF
90dd450c 16761#define wxSIZE_T_IS_UINT 1
a0b9e27f 16762EOF
698dcdb6 16763
90dd450c 16764else
a0b9e27f 16765 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
521196a2 16766echo "configure:16767: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16767if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16768 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16769else
a0b9e27f 16770 cat > conftest.$ac_ext <<EOF
521196a2 16771#line 16772 "configure"
10f2d63a 16772#include "confdefs.h"
90dd450c 16773#include <stddef.h>
a0b9e27f 16774int main() {
90dd450c
VZ
16775
16776 return 0; }
16777
16778 struct Foo { void foo(size_t); void foo(unsigned long); };
16779
16780 int bar() {
a0b9e27f
MB
16781
16782; return 0; }
16783EOF
521196a2 16784if { (eval echo configure:16785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16785 rm -rf conftest*
90dd450c 16786 wx_cv_size_t_is_ulong=no
698dcdb6 16787else
a0b9e27f
MB
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791 wx_cv_size_t_is_ulong=yes
16792
5c6fa7d2 16793fi
a0b9e27f
MB
16794rm -f conftest*
16795
247f5006 16796fi
a0b9e27f
MB
16797
16798echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16799
90dd450c 16800 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16801 cat >> confdefs.h <<\EOF
90dd450c 16802#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16803EOF
4f14bcd8
GD
16804
16805 fi
90dd450c 16806fi
1e487827 16807
90dd450c 16808ac_ext=c
a0b9e27f 16809# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16810ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16811ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16812ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16813cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16814
5c6fa7d2 16815
8284b0c5 16816
a0b9e27f 16817echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
521196a2 16818echo "configure:16819: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16819if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16821else
a0b9e27f
MB
16822
16823 cat > conftest.$ac_ext <<EOF
521196a2 16824#line 16825 "configure"
4f14bcd8 16825#include "confdefs.h"
90dd450c 16826#include <pwd.h>
a0b9e27f 16827int main() {
f6bcfd97 16828
90dd450c
VZ
16829 char *p;
16830 struct passwd *pw;
16831 p = pw->pw_gecos;
a0b9e27f
MB
16832
16833; return 0; }
16834EOF
521196a2 16835if { (eval echo configure:16836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16836 rm -rf conftest*
16837
90dd450c 16838 wx_cv_struct_pw_gecos=yes
a0b9e27f 16839
10f2d63a 16840else
a0b9e27f
MB
16841 echo "configure: failed program was:" >&5
16842 cat conftest.$ac_ext >&5
16843 rm -rf conftest*
16844
90dd450c 16845 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16846
16847
5c6fa7d2 16848fi
a0b9e27f
MB
16849rm -f conftest*
16850
247f5006
VZ
16851
16852fi
a0b9e27f
MB
16853
16854echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16855
90dd450c 16856if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16857 cat >> confdefs.h <<\EOF
90dd450c 16858#define HAVE_PW_GECOS 1
a0b9e27f 16859EOF
c521c494 16860
90dd450c 16861fi
4f14bcd8 16862
8284b0c5 16863
d29b553b 16864if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16865 cat >> confdefs.h <<\EOF
d74f4b5a 16866#define wxUSE_WCHAR_T 1
a0b9e27f 16867EOF
d74f4b5a 16868
8284b0c5 16869
d74f4b5a
VZ
16870 WCSLEN_FOUND=0
16871 WCHAR_LINK=
a0b9e27f 16872 for ac_func in wcslen
7a30264c 16873do
a0b9e27f 16874echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 16875echo "configure:16876: checking for $ac_func" >&5
a0b9e27f
MB
16876if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16877 echo $ac_n "(cached) $ac_c" 1>&6
16878else
16879 cat > conftest.$ac_ext <<EOF
521196a2 16880#line 16881 "configure"
4f14bcd8 16881#include "confdefs.h"
7a30264c 16882/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16883 which can conflict with char $ac_func(); below. */
7a30264c 16884#include <assert.h>
4f14bcd8
GD
16885/* Override any gcc2 internal prototype to avoid an error. */
16886/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16887 builtin and then its argument prototype would still apply. */
16888char $ac_func();
16889
16890int main() {
16891
7a30264c
VZ
16892/* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16896choke me
16897#else
a0b9e27f 16898$ac_func();
7a30264c
VZ
16899#endif
16900
a0b9e27f
MB
16901; return 0; }
16902EOF
521196a2 16903if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16904 rm -rf conftest*
16905 eval "ac_cv_func_$ac_func=yes"
16906else
16907 echo "configure: failed program was:" >&5
16908 cat conftest.$ac_ext >&5
16909 rm -rf conftest*
16910 eval "ac_cv_func_$ac_func=no"
16911fi
16912rm -f conftest*
16913fi
16914
16915if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16916 echo "$ac_t""yes" 1>&6
16917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16918 cat >> confdefs.h <<EOF
16919#define $ac_tr_func 1
16920EOF
d74f4b5a 16921 WCSLEN_FOUND=1
a0b9e27f
MB
16922else
16923 echo "$ac_t""no" 1>&6
7a30264c
VZ
16924fi
16925done
9d8deca0 16926
8284b0c5 16927
d74f4b5a 16928 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16929 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16930 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
521196a2 16931echo "configure:16932: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16932ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16933if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16934 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16935else
a0b9e27f 16936 ac_save_LIBS="$LIBS"
7a30264c 16937LIBS="-lmsvcrt $LIBS"
a0b9e27f 16938cat > conftest.$ac_ext <<EOF
521196a2 16939#line 16940 "configure"
10f2d63a 16940#include "confdefs.h"
4f14bcd8
GD
16941/* Override any gcc2 internal prototype to avoid an error. */
16942/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16943 builtin and then its argument prototype would still apply. */
16944char wcslen();
16945
16946int main() {
16947wcslen()
16948; return 0; }
16949EOF
521196a2 16950if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16951 rm -rf conftest*
16952 eval "ac_cv_lib_$ac_lib_var=yes"
16953else
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16956 rm -rf conftest*
16957 eval "ac_cv_lib_$ac_lib_var=no"
16958fi
16959rm -f conftest*
16960LIBS="$ac_save_LIBS"
16961
16962fi
16963if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
d74f4b5a 16965 WCHAR_OK=1
a0b9e27f
MB
16966else
16967 echo "$ac_t""no" 1>&6
d29b553b 16968fi
698dcdb6 16969
7a30264c 16970 else
a0b9e27f 16971 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
521196a2 16972echo "configure:16973: checking for wcslen in -lw" >&5
a0b9e27f
MB
16973ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16974if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16975 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16976else
a0b9e27f 16977 ac_save_LIBS="$LIBS"
7a30264c 16978LIBS="-lw $LIBS"
a0b9e27f 16979cat > conftest.$ac_ext <<EOF
521196a2 16980#line 16981 "configure"
95c8801c 16981#include "confdefs.h"
4f14bcd8
GD
16982/* Override any gcc2 internal prototype to avoid an error. */
16983/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16984 builtin and then its argument prototype would still apply. */
16985char wcslen();
52127426 16986
a0b9e27f
MB
16987int main() {
16988wcslen()
16989; return 0; }
16990EOF
521196a2 16991if { (eval echo configure:16992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16992 rm -rf conftest*
16993 eval "ac_cv_lib_$ac_lib_var=yes"
16994else
16995 echo "configure: failed program was:" >&5
16996 cat conftest.$ac_ext >&5
16997 rm -rf conftest*
16998 eval "ac_cv_lib_$ac_lib_var=no"
16999fi
17000rm -f conftest*
17001LIBS="$ac_save_LIBS"
17002
17003fi
17004if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17005 echo "$ac_t""yes" 1>&6
17006
7a30264c 17007 WCHAR_LINK=" -lw"
d74f4b5a 17008 WCSLEN_FOUND=1
a0b9e27f
MB
17009
17010else
17011 echo "$ac_t""no" 1>&6
4f14bcd8 17012fi
10f2d63a 17013
7a30264c 17014 fi
d29b553b 17015 fi
95c8801c 17016
d74f4b5a 17017 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 17018 cat >> confdefs.h <<\EOF
d74f4b5a 17019#define HAVE_WCSLEN 1
a0b9e27f 17020EOF
10f2d63a 17021
d74f4b5a 17022 fi
52127426 17023
a0b9e27f 17024 for ac_func in wcsrtombs
eb4efbdc 17025do
a0b9e27f 17026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17027echo "configure:17028: checking for $ac_func" >&5
a0b9e27f
MB
17028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17030else
17031 cat > conftest.$ac_ext <<EOF
521196a2 17032#line 17033 "configure"
eb4efbdc
VZ
17033#include "confdefs.h"
17034/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17035 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
17036#include <assert.h>
17037/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 17038/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17039 builtin and then its argument prototype would still apply. */
17040char $ac_func();
17041
17042int main() {
17043
10f2d63a
VZ
17044/* The GNU C library defines this for functions which it implements
17045 to always fail with ENOSYS. Some functions are actually named
17046 something starting with __ and the normal name is an alias. */
247f5006 17047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17048choke me
17049#else
a0b9e27f 17050$ac_func();
10f2d63a
VZ
17051#endif
17052
a0b9e27f
MB
17053; return 0; }
17054EOF
521196a2 17055if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17056 rm -rf conftest*
17057 eval "ac_cv_func_$ac_func=yes"
17058else
17059 echo "configure: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17061 rm -rf conftest*
17062 eval "ac_cv_func_$ac_func=no"
17063fi
17064rm -f conftest*
17065fi
270a909e 17066
a0b9e27f
MB
17067if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17068 echo "$ac_t""yes" 1>&6
17069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17070 cat >> confdefs.h <<EOF
17071#define $ac_tr_func 1
17072EOF
17073
17074else
17075 echo "$ac_t""no" 1>&6
4f14bcd8 17076fi
247f5006 17077done
1e487827 17078
af15babd 17079else
a0b9e27f 17080 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17081fi
52127426 17082
8284b0c5 17083
a0b9e27f
MB
17084ac_ext=C
17085# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17086ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17087ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17088ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17089cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17090
247f5006
VZ
17091
17092for ac_func in vsnprintf
17093do
a0b9e27f 17094echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17095echo "configure:17096: checking for $ac_func" >&5
a0b9e27f
MB
17096if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17097 echo $ac_n "(cached) $ac_c" 1>&6
17098else
17099 cat > conftest.$ac_ext <<EOF
521196a2 17100#line 17101 "configure"
af15babd 17101#include "confdefs.h"
247f5006 17102/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17103 which can conflict with char $ac_func(); below. */
247f5006
VZ
17104#include <assert.h>
17105/* Override any gcc2 internal prototype to avoid an error. */
17106#ifdef __cplusplus
17107extern "C"
17108#endif
17109/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17110 builtin and then its argument prototype would still apply. */
17111char $ac_func();
17112
17113int main() {
17114
247f5006
VZ
17115/* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17119choke me
17120#else
a0b9e27f 17121$ac_func();
247f5006 17122#endif
af15babd 17123
a0b9e27f
MB
17124; return 0; }
17125EOF
521196a2 17126if { (eval echo configure:17127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17127 rm -rf conftest*
17128 eval "ac_cv_func_$ac_func=yes"
17129else
17130 echo "configure: failed program was:" >&5
17131 cat conftest.$ac_ext >&5
17132 rm -rf conftest*
17133 eval "ac_cv_func_$ac_func=no"
17134fi
17135rm -f conftest*
17136fi
52127426 17137
a0b9e27f
MB
17138if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17139 echo "$ac_t""yes" 1>&6
17140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17141 cat >> confdefs.h <<EOF
17142#define $ac_tr_func 1
17143EOF
17144
17145else
17146 echo "$ac_t""no" 1>&6
5c6fa7d2 17147fi
247f5006 17148done
8284b0c5 17149
4f14bcd8 17150
8d90d2f2
VZ
17151if test "$ac_cv_func_vsnprintf" = "yes"; then
17152 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
521196a2 17153echo "configure:17154: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17154if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17155 echo $ac_n "(cached) $ac_c" 1>&6
17156else
17157
17158 cat > conftest.$ac_ext <<EOF
521196a2 17159#line 17160 "configure"
8d90d2f2
VZ
17160#include "confdefs.h"
17161
17162 #include <stdio.h>
17163 #include <stdarg.h>
17164
17165int main() {
17166
17167 char *buf;
17168 va_list ap;
17169 vsnprintf(buf, 10u, "%s", ap);
17170
17171; return 0; }
17172EOF
521196a2 17173if { (eval echo configure:17174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17174 rm -rf conftest*
17175 wx_cv_func_vsnprintf_decl=yes
17176else
17177 echo "configure: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17179 rm -rf conftest*
17180 wx_cv_func_vsnprintf_decl=no
17181
17182fi
17183rm -f conftest*
17184
17185
17186fi
17187
17188echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17189
17190 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17191 cat >> confdefs.h <<\EOF
17192#define HAVE_VSNPRINTF_DECL 1
17193EOF
17194
17195 fi
17196fi
17197
247f5006 17198if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17199 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17200do
a0b9e27f 17201echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17202echo "configure:17203: checking for $ac_func" >&5
a0b9e27f
MB
17203if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17204 echo $ac_n "(cached) $ac_c" 1>&6
17205else
17206 cat > conftest.$ac_ext <<EOF
521196a2 17207#line 17208 "configure"
d74f4b5a
VZ
17208#include "confdefs.h"
17209/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17210 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17211#include <assert.h>
17212/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17213#ifdef __cplusplus
17214extern "C"
17215#endif
d74f4b5a 17216/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17217 builtin and then its argument prototype would still apply. */
17218char $ac_func();
17219
17220int main() {
17221
d74f4b5a
VZ
17222/* The GNU C library defines this for functions which it implements
17223 to always fail with ENOSYS. Some functions are actually named
17224 something starting with __ and the normal name is an alias. */
17225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17226choke me
17227#else
a0b9e27f 17228$ac_func();
d74f4b5a
VZ
17229#endif
17230
a0b9e27f
MB
17231; return 0; }
17232EOF
521196a2 17233if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17234 rm -rf conftest*
17235 eval "ac_cv_func_$ac_func=yes"
17236else
17237 echo "configure: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17239 rm -rf conftest*
17240 eval "ac_cv_func_$ac_func=no"
17241fi
17242rm -f conftest*
17243fi
d74f4b5a 17244
a0b9e27f
MB
17245if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17246 echo "$ac_t""yes" 1>&6
17247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17248 cat >> confdefs.h <<EOF
17249#define $ac_tr_func 1
17250EOF
17251
17252else
17253 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17254fi
17255done
17256
8d90d2f2 17257
79668cae 17258 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
521196a2 17259echo "configure:17260: checking for _vsnwprintf" >&5
79668cae 17260 cat > conftest.$ac_ext <<EOF
521196a2 17261#line 17262 "configure"
79668cae
MB
17262#include "confdefs.h"
17263#include <wchar.h>
17264int main() {
17265&_vsnwprintf;
17266; return 0; }
17267EOF
521196a2 17268if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17269 rm -rf conftest*
17270 echo "$ac_t""yes" 1>&6
17271 cat >> confdefs.h <<\EOF
17272#define HAVE__VSNWPRINTF 1
17273EOF
17274
17275else
17276 echo "configure: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 rm -rf conftest*
17279 echo "$ac_t""no" 1>&6
17280fi
17281rm -f conftest*;
d74f4b5a
VZ
17282fi
17283
247f5006 17284ac_ext=c
a0b9e27f 17285# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17286ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17287ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17288ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17289cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17290
17291
17292
17293
4f14bcd8 17294if test "$TOOLKIT" != "MSW"; then
af15babd 17295
8284b0c5
MB
17296
17297
a0b9e27f
MB
17298ac_ext=C
17299# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17300ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17301ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17302ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17303cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17304
52127426 17305
a0b9e27f
MB
17306
17307 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17308if test "${with_libiconv_prefix+set}" = set; then
17309 withval="$with_libiconv_prefix"
a0b9e27f 17310
b040e242
VS
17311 for dir in `echo "$withval" | tr : ' '`; do
17312 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17313 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17314 done
a0b9e27f
MB
17315
17316fi
b040e242
VS
17317
17318
a0b9e27f 17319 echo $ac_n "checking for iconv""... $ac_c" 1>&6
521196a2 17320echo "configure:17321: checking for iconv" >&5
a0b9e27f
MB
17321if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17322 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17323else
a0b9e27f 17324
b040e242
VS
17325 am_cv_func_iconv="no, consider installing GNU libiconv"
17326 am_cv_lib_iconv=no
a0b9e27f 17327 cat > conftest.$ac_ext <<EOF
521196a2 17328#line 17329 "configure"
af15babd 17329#include "confdefs.h"
b040e242 17330#include <stdlib.h>
4f14bcd8 17331#include <iconv.h>
a0b9e27f 17332int main() {
b040e242
VS
17333iconv_t cd = iconv_open("","");
17334 iconv(cd,NULL,NULL,NULL,NULL);
17335 iconv_close(cd);
a0b9e27f
MB
17336; return 0; }
17337EOF
521196a2 17338if { (eval echo configure:17339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17339 rm -rf conftest*
b040e242 17340 am_cv_func_iconv=yes
af15babd 17341else
a0b9e27f
MB
17342 echo "configure: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
b040e242 17344fi
a0b9e27f 17345rm -f conftest*
b040e242
VS
17346 if test "$am_cv_func_iconv" != yes; then
17347 am_save_LIBS="$LIBS"
17348 LIBS="$LIBS -liconv"
a0b9e27f 17349 cat > conftest.$ac_ext <<EOF
521196a2 17350#line 17351 "configure"
b040e242
VS
17351#include "confdefs.h"
17352#include <stdlib.h>
17353#include <iconv.h>
a0b9e27f 17354int main() {
b040e242
VS
17355iconv_t cd = iconv_open("","");
17356 iconv(cd,NULL,NULL,NULL,NULL);
17357 iconv_close(cd);
a0b9e27f
MB
17358; return 0; }
17359EOF
521196a2 17360if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17361 rm -rf conftest*
b040e242
VS
17362 am_cv_lib_iconv=yes
17363 am_cv_func_iconv=yes
17364else
a0b9e27f
MB
17365 echo "configure: failed program was:" >&5
17366 cat conftest.$ac_ext >&5
af15babd 17367fi
a0b9e27f 17368rm -f conftest*
b040e242
VS
17369 LIBS="$am_save_LIBS"
17370 fi
a0b9e27f 17371
247f5006 17372fi
247f5006 17373
a0b9e27f
MB
17374echo "$ac_t""$am_cv_func_iconv" 1>&6
17375 if test "$am_cv_func_iconv" = yes; then
17376 cat >> confdefs.h <<\EOF
b040e242 17377#define HAVE_ICONV 1
a0b9e27f 17378EOF
b040e242 17379
a0b9e27f 17380 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
521196a2 17381echo "configure:17382: checking if iconv needs const" >&5
a0b9e27f
MB
17382if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17383 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17384else
a0b9e27f 17385 cat > conftest.$ac_ext <<EOF
521196a2 17386#line 17387 "configure"
b040e242
VS
17387#include "confdefs.h"
17388
17389#include <stdlib.h>
17390#include <iconv.h>
17391extern
17392#ifdef __cplusplus
17393"C"
17394#endif
17395#if defined(__STDC__) || defined(__cplusplus)
17396size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17397#else
17398size_t iconv();
17399#endif
a0b9e27f
MB
17400
17401int main() {
af15babd 17402
a0b9e27f
MB
17403; return 0; }
17404EOF
521196a2 17405if { (eval echo configure:17406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17406 rm -rf conftest*
b7043674 17407 wx_cv_func_iconv_const="no"
b040e242 17408else
a0b9e27f
MB
17409 echo "configure: failed program was:" >&5
17410 cat conftest.$ac_ext >&5
17411 rm -rf conftest*
17412 wx_cv_func_iconv_const="yes"
17413
5c6fa7d2 17414fi
a0b9e27f
MB
17415rm -f conftest*
17416
247f5006 17417fi
a0b9e27f
MB
17418
17419echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17420
17421 iconv_const=
1c405bb5 17422 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17423 iconv_const="const"
17424 fi
17425
a0b9e27f 17426 cat >> confdefs.h <<EOF
f09359cf 17427#define ICONV_CONST $iconv_const
a0b9e27f 17428EOF
b040e242
VS
17429
17430 fi
17431 LIBICONV=
17432 if test "$am_cv_lib_iconv" = yes; then
17433 LIBICONV="-liconv"
17434 fi
a0b9e27f 17435
b040e242
VS
17436
17437LIBS="$LIBICONV $LIBS"
4f14bcd8 17438ac_ext=c
a0b9e27f 17439# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17440ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17441ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17442ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17443cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17444
5c6fa7d2 17445
8284b0c5 17446if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17447 for ac_func in sigaction
af15babd 17448do
a0b9e27f 17449echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17450echo "configure:17451: checking for $ac_func" >&5
a0b9e27f
MB
17451if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17452 echo $ac_n "(cached) $ac_c" 1>&6
17453else
17454 cat > conftest.$ac_ext <<EOF
521196a2 17455#line 17456 "configure"
af15babd
VZ
17456#include "confdefs.h"
17457/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17458 which can conflict with char $ac_func(); below. */
af15babd
VZ
17459#include <assert.h>
17460/* Override any gcc2 internal prototype to avoid an error. */
17461/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17462 builtin and then its argument prototype would still apply. */
17463char $ac_func();
17464
17465int main() {
17466
af15babd
VZ
17467/* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17471choke me
17472#else
a0b9e27f 17473$ac_func();
af15babd
VZ
17474#endif
17475
a0b9e27f
MB
17476; return 0; }
17477EOF
521196a2 17478if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17479 rm -rf conftest*
17480 eval "ac_cv_func_$ac_func=yes"
17481else
17482 echo "configure: failed program was:" >&5
17483 cat conftest.$ac_ext >&5
17484 rm -rf conftest*
17485 eval "ac_cv_func_$ac_func=no"
17486fi
17487rm -f conftest*
17488fi
7b4a847f 17489
a0b9e27f
MB
17490if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17491 echo "$ac_t""yes" 1>&6
17492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17493 cat >> confdefs.h <<EOF
17494#define $ac_tr_func 1
17495EOF
17496
17497else
17498 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17499fi
17500done
17501
8284b0c5 17502
4f14bcd8 17503 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17504 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17505 wxUSE_ON_FATAL_EXCEPTION=no
17506 fi
17507
17508 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17509
17510 ac_ext=C
17511# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17512ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17513ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17514ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17515cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17516
5c6fa7d2 17517
a0b9e27f 17518 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
521196a2 17519echo "configure:17520: checking for sa_handler type" >&5
a0b9e27f
MB
17520if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17521 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17522else
a0b9e27f
MB
17523
17524 cat > conftest.$ac_ext <<EOF
521196a2 17525#line 17526 "configure"
af15babd 17526#include "confdefs.h"
4f14bcd8 17527#include <signal.h>
a0b9e27f 17528int main() {
4f14bcd8
GD
17529
17530 extern void testSigHandler(int);
17531
17532 struct sigaction sa;
17533 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17534
17535; return 0; }
17536EOF
521196a2 17537if { (eval echo configure:17538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17538 rm -rf conftest*
17539
4f14bcd8 17540 wx_cv_type_sa_handler=int
a0b9e27f 17541
af15babd 17542else
a0b9e27f
MB
17543 echo "configure: failed program was:" >&5
17544 cat conftest.$ac_ext >&5
17545 rm -rf conftest*
17546
4f14bcd8 17547 wx_cv_type_sa_handler=void
a0b9e27f 17548
5c6fa7d2 17549fi
a0b9e27f
MB
17550rm -f conftest*
17551
247f5006 17552fi
a0b9e27f
MB
17553
17554echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17555
17556 ac_ext=c
a0b9e27f 17557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17558ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17561cross_compiling=$ac_cv_prog_cc_cross
579d8138 17562
8284b0c5 17563
a0b9e27f 17564 cat >> confdefs.h <<EOF
4f14bcd8 17565#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17566EOF
af15babd 17567
4f14bcd8
GD
17568 fi
17569fi
af15babd 17570
a1d22ad7 17571for ac_func in mkstemp mktemp
af15babd 17572do
a0b9e27f 17573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17574echo "configure:17575: checking for $ac_func" >&5
a0b9e27f
MB
17575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17576 echo $ac_n "(cached) $ac_c" 1>&6
17577else
17578 cat > conftest.$ac_ext <<EOF
521196a2 17579#line 17580 "configure"
af15babd
VZ
17580#include "confdefs.h"
17581/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17582 which can conflict with char $ac_func(); below. */
af15babd
VZ
17583#include <assert.h>
17584/* Override any gcc2 internal prototype to avoid an error. */
17585/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17586 builtin and then its argument prototype would still apply. */
17587char $ac_func();
17588
17589int main() {
17590
af15babd
VZ
17591/* The GNU C library defines this for functions which it implements
17592 to always fail with ENOSYS. Some functions are actually named
17593 something starting with __ and the normal name is an alias. */
17594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17595choke me
17596#else
a0b9e27f 17597$ac_func();
af15babd
VZ
17598#endif
17599
a0b9e27f
MB
17600; return 0; }
17601EOF
521196a2 17602if { (eval echo configure:17603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17603 rm -rf conftest*
17604 eval "ac_cv_func_$ac_func=yes"
17605else
17606 echo "configure: failed program was:" >&5
17607 cat conftest.$ac_ext >&5
17608 rm -rf conftest*
17609 eval "ac_cv_func_$ac_func=no"
17610fi
17611rm -f conftest*
17612fi
af15babd 17613
a0b9e27f
MB
17614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17615 echo "$ac_t""yes" 1>&6
17616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17617 cat >> confdefs.h <<EOF
17618#define $ac_tr_func 1
17619EOF
ade35f11 17620 break
a0b9e27f
MB
17621else
17622 echo "$ac_t""no" 1>&6
ade35f11
VZ
17623fi
17624done
17625
8284b0c5 17626
a0b9e27f 17627echo $ac_n "checking for statfs""... $ac_c" 1>&6
521196a2 17628echo "configure:17629: checking for statfs" >&5
a0b9e27f
MB
17629if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17630 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17631else
a0b9e27f 17632 cat > conftest.$ac_ext <<EOF
521196a2 17633#line 17634 "configure"
4f14bcd8
GD
17634#include "confdefs.h"
17635
17636 #if defined(__BSD__)
17637 #include <sys/param.h>
17638 #include <sys/mount.h>
17639 #else
17640 #include <sys/vfs.h>
17641 #endif
a0b9e27f
MB
17642
17643int main() {
4f14bcd8
GD
17644
17645 long l;
17646 struct statfs fs;
17647 statfs("/", &fs);
17648 l = fs.f_bsize;
17649 l += fs.f_blocks;
17650 l += fs.f_bavail;
a0b9e27f
MB
17651
17652; return 0; }
17653EOF
521196a2 17654if { (eval echo configure:17655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17655 rm -rf conftest*
17656
4f14bcd8 17657 wx_cv_func_statfs=yes
a0b9e27f 17658
4f14bcd8 17659else
a0b9e27f
MB
17660 echo "configure: failed program was:" >&5
17661 cat conftest.$ac_ext >&5
17662 rm -rf conftest*
17663
4f14bcd8 17664 wx_cv_func_statfs=no
a0b9e27f
MB
17665
17666
5c6fa7d2 17667fi
a0b9e27f 17668rm -f conftest*
8284b0c5 17669
247f5006 17670fi
a0b9e27f
MB
17671
17672echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17673
17674if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17675 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17676 cat >> confdefs.h <<\EOF
4f14bcd8 17677#define HAVE_STATFS 1
a0b9e27f 17678EOF
4f14bcd8
GD
17679
17680else
a0b9e27f 17681 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
521196a2 17682echo "configure:17683: checking for statvfs" >&5
a0b9e27f
MB
17683if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17684 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17685else
a0b9e27f 17686 cat > conftest.$ac_ext <<EOF
521196a2 17687#line 17688 "configure"
af15babd 17688#include "confdefs.h"
af15babd 17689
54ab82b3
VZ
17690 #include <stddef.h>
17691 #include <sys/statvfs.h>
a0b9e27f
MB
17692
17693int main() {
af15babd 17694
54ab82b3 17695 statvfs("/", NULL);
a0b9e27f
MB
17696
17697; return 0; }
17698EOF
521196a2 17699if { (eval echo configure:17700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17700 rm -rf conftest*
54ab82b3 17701 wx_cv_func_statvfs=yes
af15babd 17702else
a0b9e27f
MB
17703 echo "configure: failed program was:" >&5
17704 cat conftest.$ac_ext >&5
17705 rm -rf conftest*
54ab82b3 17706 wx_cv_func_statvfs=no
a0b9e27f 17707
5c6fa7d2 17708fi
a0b9e27f
MB
17709rm -f conftest*
17710
247f5006 17711fi
a0b9e27f
MB
17712
17713echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17714
4f14bcd8 17715 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17716
17717 ac_ext=C
17718# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17719ac_cpp='$CXXCPP $CPPFLAGS'
17720ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17721ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17722cross_compiling=$ac_cv_prog_cxx_cross
17723
17724
17725 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
521196a2 17726echo "configure:17727: checking for statvfs argument type" >&5
54ab82b3
VZ
17727if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17728 echo $ac_n "(cached) $ac_c" 1>&6
17729else
17730 cat > conftest.$ac_ext <<EOF
521196a2 17731#line 17732 "configure"
54ab82b3
VZ
17732#include "confdefs.h"
17733
17734 #include <sys/statvfs.h>
17735
17736int main() {
17737
17738 long l;
17739 statvfs_t fs;
17740 statvfs("/", &fs);
17741 l = fs.f_bsize;
17742 l += fs.f_blocks;
17743 l += fs.f_bavail;
17744
17745; return 0; }
17746EOF
521196a2 17747if { (eval echo configure:17748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17748 rm -rf conftest*
17749 wx_cv_type_statvfs_t=statvfs_t
17750else
17751 echo "configure: failed program was:" >&5
17752 cat conftest.$ac_ext >&5
17753 rm -rf conftest*
17754
17755 cat > conftest.$ac_ext <<EOF
521196a2 17756#line 17757 "configure"
54ab82b3
VZ
17757#include "confdefs.h"
17758
17759 #include <sys/statvfs.h>
17760
17761int main() {
17762
17763 long l;
65d8ef1e 17764 struct statvfs fs;
54ab82b3
VZ
17765 statvfs("/", &fs);
17766 l = fs.f_bsize;
17767 l += fs.f_blocks;
17768 l += fs.f_bavail;
17769
17770; return 0; }
17771EOF
521196a2 17772if { (eval echo configure:17773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17773 rm -rf conftest*
17774 wx_cv_type_statvfs_t="struct statvfs"
17775else
17776 echo "configure: failed program was:" >&5
17777 cat conftest.$ac_ext >&5
17778 rm -rf conftest*
17779 wx_cv_type_statvfs_t="unknown"
17780
17781fi
17782rm -f conftest*
17783
17784
17785fi
17786rm -f conftest*
17787
17788fi
17789
17790echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17791
17792 ac_ext=c
17793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17794ac_cpp='$CPP $CPPFLAGS'
17795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17797cross_compiling=$ac_cv_prog_cc_cross
17798
17799
17800 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17801 cat >> confdefs.h <<\EOF
4f14bcd8 17802#define HAVE_STATVFS 1
a0b9e27f 17803EOF
af15babd 17804
54ab82b3 17805 fi
4f14bcd8 17806 else
54ab82b3 17807 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17808 fi
17809fi
af15babd 17810
54ab82b3
VZ
17811if test "$wx_cv_type_statvfs_t" != "unknown"; then
17812 cat >> confdefs.h <<EOF
17813#define WX_STATFS_T $wx_cv_type_statvfs_t
17814EOF
17815
17816else
17817 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17818fi
17819
4f14bcd8 17820if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17821 for ac_func in fcntl flock
af15babd 17822do
a0b9e27f 17823echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17824echo "configure:17825: checking for $ac_func" >&5
a0b9e27f
MB
17825if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17826 echo $ac_n "(cached) $ac_c" 1>&6
17827else
17828 cat > conftest.$ac_ext <<EOF
521196a2 17829#line 17830 "configure"
af15babd
VZ
17830#include "confdefs.h"
17831/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17832 which can conflict with char $ac_func(); below. */
af15babd
VZ
17833#include <assert.h>
17834/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17835/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17836 builtin and then its argument prototype would still apply. */
17837char $ac_func();
17838
17839int main() {
17840
af15babd
VZ
17841/* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17845choke me
17846#else
a0b9e27f 17847$ac_func();
af15babd
VZ
17848#endif
17849
a0b9e27f
MB
17850; return 0; }
17851EOF
521196a2 17852if { (eval echo configure:17853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17853 rm -rf conftest*
17854 eval "ac_cv_func_$ac_func=yes"
17855else
17856 echo "configure: failed program was:" >&5
17857 cat conftest.$ac_ext >&5
17858 rm -rf conftest*
17859 eval "ac_cv_func_$ac_func=no"
17860fi
17861rm -f conftest*
17862fi
17863
17864if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17865 echo "$ac_t""yes" 1>&6
17866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17867 cat >> confdefs.h <<EOF
17868#define $ac_tr_func 1
17869EOF
4f14bcd8 17870 break
a0b9e27f
MB
17871else
17872 echo "$ac_t""no" 1>&6
af15babd
VZ
17873fi
17874done
17875
8284b0c5 17876
4f14bcd8 17877 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17878 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17879 wxUSE_SNGLINST_CHECKER=no
17880 fi
17881fi
af15babd 17882
4f14bcd8 17883for ac_func in timegm
af15babd 17884do
a0b9e27f 17885echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17886echo "configure:17887: checking for $ac_func" >&5
a0b9e27f
MB
17887if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17888 echo $ac_n "(cached) $ac_c" 1>&6
17889else
17890 cat > conftest.$ac_ext <<EOF
521196a2 17891#line 17892 "configure"
af15babd
VZ
17892#include "confdefs.h"
17893/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17894 which can conflict with char $ac_func(); below. */
af15babd
VZ
17895#include <assert.h>
17896/* Override any gcc2 internal prototype to avoid an error. */
17897/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17898 builtin and then its argument prototype would still apply. */
17899char $ac_func();
17900
17901int main() {
17902
af15babd
VZ
17903/* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
247f5006
VZ
17906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17907choke me
17908#else
a0b9e27f 17909$ac_func();
247f5006
VZ
17910#endif
17911
a0b9e27f
MB
17912; return 0; }
17913EOF
521196a2 17914if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17915 rm -rf conftest*
17916 eval "ac_cv_func_$ac_func=yes"
17917else
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17920 rm -rf conftest*
17921 eval "ac_cv_func_$ac_func=no"
17922fi
17923rm -f conftest*
17924fi
703e0a69 17925
a0b9e27f
MB
17926if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17927 echo "$ac_t""yes" 1>&6
17928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17929 cat >> confdefs.h <<EOF
17930#define $ac_tr_func 1
17931EOF
17932
17933else
17934 echo "$ac_t""no" 1>&6
af15babd
VZ
17935fi
17936done
17937
8284b0c5 17938
4f14bcd8 17939for ac_func in putenv setenv
10f2d63a 17940do
a0b9e27f 17941echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 17942echo "configure:17943: checking for $ac_func" >&5
a0b9e27f
MB
17943if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17944 echo $ac_n "(cached) $ac_c" 1>&6
17945else
17946 cat > conftest.$ac_ext <<EOF
521196a2 17947#line 17948 "configure"
af15babd
VZ
17948#include "confdefs.h"
17949/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17950 which can conflict with char $ac_func(); below. */
af15babd
VZ
17951#include <assert.h>
17952/* Override any gcc2 internal prototype to avoid an error. */
17953/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17954 builtin and then its argument prototype would still apply. */
17955char $ac_func();
17956
17957int main() {
17958
af15babd
VZ
17959/* The GNU C library defines this for functions which it implements
17960 to always fail with ENOSYS. Some functions are actually named
17961 something starting with __ and the normal name is an alias. */
17962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17963choke me
17964#else
a0b9e27f 17965$ac_func();
af15babd
VZ
17966#endif
17967
a0b9e27f
MB
17968; return 0; }
17969EOF
521196a2 17970if { (eval echo configure:17971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17971 rm -rf conftest*
17972 eval "ac_cv_func_$ac_func=yes"
17973else
17974 echo "configure: failed program was:" >&5
17975 cat conftest.$ac_ext >&5
17976 rm -rf conftest*
17977 eval "ac_cv_func_$ac_func=no"
17978fi
17979rm -f conftest*
17980fi
17981
17982if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17983 echo "$ac_t""yes" 1>&6
17984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17985 cat >> confdefs.h <<EOF
17986#define $ac_tr_func 1
17987EOF
4f14bcd8 17988 break
a0b9e27f
MB
17989else
17990 echo "$ac_t""no" 1>&6
af15babd 17991fi
af15babd
VZ
17992done
17993
8284b0c5 17994
4f14bcd8
GD
17995HAVE_SOME_SLEEP_FUNC=0
17996if test "$USE_BEOS" = 1; then
a0b9e27f 17997 cat >> confdefs.h <<\EOF
4f14bcd8 17998#define HAVE_SLEEP 1
a0b9e27f 17999EOF
af15babd 18000
4f14bcd8 18001 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18002fi
18003
4f14bcd8 18004if test "$USE_DARWIN" = 1; then
a0b9e27f 18005 cat >> confdefs.h <<\EOF
4f14bcd8 18006#define HAVE_USLEEP 1
a0b9e27f 18007EOF
10f2d63a 18008
4f14bcd8 18009 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18010fi
18011
4f14bcd8
GD
18012if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18013 POSIX4_LINK=
a0b9e27f 18014 for ac_func in nanosleep
4f14bcd8 18015do
a0b9e27f 18016echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18017echo "configure:18018: checking for $ac_func" >&5
a0b9e27f
MB
18018if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18019 echo $ac_n "(cached) $ac_c" 1>&6
18020else
18021 cat > conftest.$ac_ext <<EOF
521196a2 18022#line 18023 "configure"
10f2d63a 18023#include "confdefs.h"
4f14bcd8 18024/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18025 which can conflict with char $ac_func(); below. */
4f14bcd8 18026#include <assert.h>
10f2d63a
VZ
18027/* Override any gcc2 internal prototype to avoid an error. */
18028/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18029 builtin and then its argument prototype would still apply. */
18030char $ac_func();
18031
18032int main() {
18033
4f14bcd8
GD
18034/* The GNU C library defines this for functions which it implements
18035 to always fail with ENOSYS. Some functions are actually named
18036 something starting with __ and the normal name is an alias. */
18037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18038choke me
18039#else
a0b9e27f 18040$ac_func();
4f14bcd8
GD
18041#endif
18042
a0b9e27f
MB
18043; return 0; }
18044EOF
521196a2 18045if { (eval echo configure:18046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18046 rm -rf conftest*
18047 eval "ac_cv_func_$ac_func=yes"
18048else
18049 echo "configure: failed program was:" >&5
18050 cat conftest.$ac_ext >&5
18051 rm -rf conftest*
18052 eval "ac_cv_func_$ac_func=no"
18053fi
18054rm -f conftest*
18055fi
18056
18057if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18058 echo "$ac_t""yes" 1>&6
18059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18060 cat >> confdefs.h <<EOF
18061#define $ac_tr_func 1
18062EOF
18063 cat >> confdefs.h <<\EOF
4f14bcd8 18064#define HAVE_NANOSLEEP 1
a0b9e27f 18065EOF
4f14bcd8 18066
10f2d63a 18067else
a0b9e27f
MB
18068 echo "$ac_t""no" 1>&6
18069echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
521196a2 18070echo "configure:18071: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18071ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18073 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18074else
a0b9e27f 18075 ac_save_LIBS="$LIBS"
4f14bcd8 18076LIBS="-lposix4 $LIBS"
a0b9e27f 18077cat > conftest.$ac_ext <<EOF
521196a2 18078#line 18079 "configure"
10f2d63a
VZ
18079#include "confdefs.h"
18080/* Override any gcc2 internal prototype to avoid an error. */
18081/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18082 builtin and then its argument prototype would still apply. */
18083char nanosleep();
18084
18085int main() {
18086nanosleep()
18087; return 0; }
18088EOF
521196a2 18089if { (eval echo configure:18090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18090 rm -rf conftest*
18091 eval "ac_cv_lib_$ac_lib_var=yes"
18092else
18093 echo "configure: failed program was:" >&5
18094 cat conftest.$ac_ext >&5
18095 rm -rf conftest*
18096 eval "ac_cv_lib_$ac_lib_var=no"
18097fi
18098rm -f conftest*
18099LIBS="$ac_save_LIBS"
18100
18101fi
18102if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18103 echo "$ac_t""yes" 1>&6
18104
18105 cat >> confdefs.h <<\EOF
4f14bcd8 18106#define HAVE_NANOSLEEP 1
a0b9e27f 18107EOF
4f14bcd8 18108
3d63bc3a 18109 POSIX4_LINK=" -lposix4"
a0b9e27f 18110
10f2d63a 18111else
a0b9e27f 18112 echo "$ac_t""no" 1>&6
10f2d63a 18113
a0b9e27f 18114 for ac_func in usleep
4f14bcd8 18115do
a0b9e27f 18116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18117echo "configure:18118: checking for $ac_func" >&5
a0b9e27f
MB
18118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18119 echo $ac_n "(cached) $ac_c" 1>&6
18120else
18121 cat > conftest.$ac_ext <<EOF
521196a2 18122#line 18123 "configure"
10f2d63a 18123#include "confdefs.h"
4f14bcd8 18124/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18125 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18126#include <assert.h>
18127/* Override any gcc2 internal prototype to avoid an error. */
18128/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18129 builtin and then its argument prototype would still apply. */
18130char $ac_func();
18131
18132int main() {
18133
4f14bcd8
GD
18134/* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18138choke me
18139#else
a0b9e27f 18140$ac_func();
4f14bcd8
GD
18141#endif
18142
a0b9e27f
MB
18143; return 0; }
18144EOF
521196a2 18145if { (eval echo configure:18146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18146 rm -rf conftest*
18147 eval "ac_cv_func_$ac_func=yes"
18148else
18149 echo "configure: failed program was:" >&5
18150 cat conftest.$ac_ext >&5
18151 rm -rf conftest*
18152 eval "ac_cv_func_$ac_func=no"
18153fi
18154rm -f conftest*
18155fi
18156
18157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18158 echo "$ac_t""yes" 1>&6
18159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18160 cat >> confdefs.h <<EOF
18161#define $ac_tr_func 1
18162EOF
18163 cat >> confdefs.h <<\EOF
4f14bcd8 18164#define HAVE_USLEEP 1
a0b9e27f 18165EOF
4f14bcd8 18166
698dcdb6 18167else
a0b9e27f
MB
18168 echo "$ac_t""no" 1>&6
18169echo "configure: warning: wxSleep() function will not work" 1>&2
18170
10f2d63a 18171fi
4f14bcd8 18172done
10f2d63a 18173
a0b9e27f
MB
18174
18175
6232543b 18176fi
10f2d63a 18177
a0b9e27f
MB
18178
18179
1e487827 18180fi
4f14bcd8 18181done
703e0a69 18182
10f2d63a
VZ
18183fi
18184
4f14bcd8 18185for ac_func in uname gethostname
70846f0a 18186do
a0b9e27f 18187echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18188echo "configure:18189: checking for $ac_func" >&5
a0b9e27f
MB
18189if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18190 echo $ac_n "(cached) $ac_c" 1>&6
18191else
18192 cat > conftest.$ac_ext <<EOF
521196a2 18193#line 18194 "configure"
70846f0a
VZ
18194#include "confdefs.h"
18195/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18196 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18197#include <assert.h>
18198/* Override any gcc2 internal prototype to avoid an error. */
18199/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18200 builtin and then its argument prototype would still apply. */
18201char $ac_func();
18202
18203int main() {
18204
70846f0a
VZ
18205/* The GNU C library defines this for functions which it implements
18206 to always fail with ENOSYS. Some functions are actually named
18207 something starting with __ and the normal name is an alias. */
18208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18209choke me
18210#else
a0b9e27f 18211$ac_func();
70846f0a
VZ
18212#endif
18213
a0b9e27f
MB
18214; return 0; }
18215EOF
521196a2 18216if { (eval echo configure:18217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18217 rm -rf conftest*
18218 eval "ac_cv_func_$ac_func=yes"
18219else
18220 echo "configure: failed program was:" >&5
18221 cat conftest.$ac_ext >&5
18222 rm -rf conftest*
18223 eval "ac_cv_func_$ac_func=no"
18224fi
18225rm -f conftest*
18226fi
18227
18228if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18229 echo "$ac_t""yes" 1>&6
18230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18231 cat >> confdefs.h <<EOF
18232#define $ac_tr_func 1
18233EOF
4f14bcd8 18234 break
a0b9e27f
MB
18235else
18236 echo "$ac_t""no" 1>&6
70846f0a
VZ
18237fi
18238done
18239
8284b0c5
MB
18240
18241
a0b9e27f
MB
18242ac_ext=C
18243# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18244ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18245ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18246ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18247cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18248
4f14bcd8
GD
18249
18250for ac_func in strtok_r
10f2d63a 18251do
a0b9e27f 18252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18253echo "configure:18254: checking for $ac_func" >&5
a0b9e27f
MB
18254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18255 echo $ac_n "(cached) $ac_c" 1>&6
18256else
18257 cat > conftest.$ac_ext <<EOF
521196a2 18258#line 18259 "configure"
10f2d63a 18259#include "confdefs.h"
4f14bcd8 18260/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18261 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18262#include <assert.h>
18263/* Override any gcc2 internal prototype to avoid an error. */
18264#ifdef __cplusplus
18265extern "C"
18266#endif
18267/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18268 builtin and then its argument prototype would still apply. */
18269char $ac_func();
18270
18271int main() {
18272
4f14bcd8
GD
18273/* The GNU C library defines this for functions which it implements
18274 to always fail with ENOSYS. Some functions are actually named
18275 something starting with __ and the normal name is an alias. */
18276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18277choke me
18278#else
a0b9e27f 18279$ac_func();
4f14bcd8
GD
18280#endif
18281
a0b9e27f
MB
18282; return 0; }
18283EOF
521196a2 18284if { (eval echo configure:18285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18285 rm -rf conftest*
18286 eval "ac_cv_func_$ac_func=yes"
18287else
18288 echo "configure: failed program was:" >&5
18289 cat conftest.$ac_ext >&5
18290 rm -rf conftest*
18291 eval "ac_cv_func_$ac_func=no"
18292fi
18293rm -f conftest*
18294fi
4f14bcd8 18295
a0b9e27f
MB
18296if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18297 echo "$ac_t""yes" 1>&6
18298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18299 cat >> confdefs.h <<EOF
18300#define $ac_tr_func 1
18301EOF
18302
18303else
18304 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18305fi
18306done
18307
8284b0c5 18308
4f14bcd8 18309ac_ext=c
a0b9e27f 18310# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18311ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18312ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18313ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18314cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18315
5c6fa7d2 18316
8284b0c5 18317INET_LINK=
4f14bcd8
GD
18318for ac_func in inet_addr
18319do
a0b9e27f 18320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18321echo "configure:18322: checking for $ac_func" >&5
a0b9e27f
MB
18322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18323 echo $ac_n "(cached) $ac_c" 1>&6
18324else
18325 cat > conftest.$ac_ext <<EOF
521196a2 18326#line 18327 "configure"
10f2d63a 18327#include "confdefs.h"
4f14bcd8 18328/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18329 which can conflict with char $ac_func(); below. */
4f14bcd8 18330#include <assert.h>
10f2d63a
VZ
18331/* Override any gcc2 internal prototype to avoid an error. */
18332/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18333 builtin and then its argument prototype would still apply. */
18334char $ac_func();
18335
18336int main() {
18337
4f14bcd8
GD
18338/* The GNU C library defines this for functions which it implements
18339 to always fail with ENOSYS. Some functions are actually named
18340 something starting with __ and the normal name is an alias. */
18341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18342choke me
18343#else
a0b9e27f 18344$ac_func();
4f14bcd8
GD
18345#endif
18346
a0b9e27f
MB
18347; return 0; }
18348EOF
521196a2 18349if { (eval echo configure:18350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18350 rm -rf conftest*
18351 eval "ac_cv_func_$ac_func=yes"
18352else
18353 echo "configure: failed program was:" >&5
18354 cat conftest.$ac_ext >&5
18355 rm -rf conftest*
18356 eval "ac_cv_func_$ac_func=no"
18357fi
18358rm -f conftest*
18359fi
18360
18361if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18362 echo "$ac_t""yes" 1>&6
18363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18364 cat >> confdefs.h <<EOF
18365#define $ac_tr_func 1
18366EOF
18367 cat >> confdefs.h <<\EOF
4f14bcd8 18368#define HAVE_INET_ADDR 1
a0b9e27f 18369EOF
10f2d63a
VZ
18370
18371else
a0b9e27f
MB
18372 echo "$ac_t""no" 1>&6
18373echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
521196a2 18374echo "configure:18375: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18375ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18376if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18377 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18378else
a0b9e27f 18379 ac_save_LIBS="$LIBS"
4f14bcd8 18380LIBS="-lnsl $LIBS"
a0b9e27f 18381cat > conftest.$ac_ext <<EOF
521196a2 18382#line 18383 "configure"
10f2d63a
VZ
18383#include "confdefs.h"
18384/* Override any gcc2 internal prototype to avoid an error. */
18385/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18386 builtin and then its argument prototype would still apply. */
18387char inet_addr();
18388
18389int main() {
18390inet_addr()
18391; return 0; }
18392EOF
521196a2 18393if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18394 rm -rf conftest*
18395 eval "ac_cv_lib_$ac_lib_var=yes"
18396else
18397 echo "configure: failed program was:" >&5
18398 cat conftest.$ac_ext >&5
18399 rm -rf conftest*
18400 eval "ac_cv_lib_$ac_lib_var=no"
18401fi
18402rm -f conftest*
18403LIBS="$ac_save_LIBS"
18404
18405fi
18406if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18407 echo "$ac_t""yes" 1>&6
4f14bcd8 18408 INET_LINK="nsl"
10f2d63a 18409else
a0b9e27f
MB
18410 echo "$ac_t""no" 1>&6
18411echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
521196a2 18412echo "configure:18413: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18413ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18414if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18415 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18416else
a0b9e27f 18417 ac_save_LIBS="$LIBS"
4f14bcd8 18418LIBS="-lresolv $LIBS"
a0b9e27f 18419cat > conftest.$ac_ext <<EOF
521196a2 18420#line 18421 "configure"
7b4a847f 18421#include "confdefs.h"
5c6fa7d2 18422/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18423/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18424 builtin and then its argument prototype would still apply. */
18425char inet_addr();
18426
18427int main() {
18428inet_addr()
18429; return 0; }
18430EOF
521196a2 18431if { (eval echo configure:18432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18432 rm -rf conftest*
18433 eval "ac_cv_lib_$ac_lib_var=yes"
18434else
18435 echo "configure: failed program was:" >&5
18436 cat conftest.$ac_ext >&5
18437 rm -rf conftest*
18438 eval "ac_cv_lib_$ac_lib_var=no"
18439fi
18440rm -f conftest*
18441LIBS="$ac_save_LIBS"
18442
18443fi
18444if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18445 echo "$ac_t""yes" 1>&6
4f14bcd8 18446 INET_LINK="resolv"
698dcdb6 18447else
a0b9e27f
MB
18448 echo "$ac_t""no" 1>&6
18449echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
521196a2 18450echo "configure:18451: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18451ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18454else
a0b9e27f 18455 ac_save_LIBS="$LIBS"
3c011993 18456LIBS="-lsocket $LIBS"
a0b9e27f 18457cat > conftest.$ac_ext <<EOF
521196a2 18458#line 18459 "configure"
3c011993
VZ
18459#include "confdefs.h"
18460/* Override any gcc2 internal prototype to avoid an error. */
18461/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18462 builtin and then its argument prototype would still apply. */
18463char inet_addr();
4f14bcd8 18464
a0b9e27f
MB
18465int main() {
18466inet_addr()
18467; return 0; }
18468EOF
521196a2 18469if { (eval echo configure:18470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18470 rm -rf conftest*
18471 eval "ac_cv_lib_$ac_lib_var=yes"
18472else
18473 echo "configure: failed program was:" >&5
18474 cat conftest.$ac_ext >&5
18475 rm -rf conftest*
18476 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18477fi
a0b9e27f
MB
18478rm -f conftest*
18479LIBS="$ac_save_LIBS"
698dcdb6 18480
7b4a847f 18481fi
a0b9e27f
MB
18482if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18483 echo "$ac_t""yes" 1>&6
18484 INET_LINK="socket"
18485
18486else
18487 echo "$ac_t""no" 1>&6
18488fi
579d8138 18489
a0b9e27f 18490
5c6fa7d2 18491fi
52127426 18492
a0b9e27f
MB
18493
18494fi
247f5006 18495
a0b9e27f 18496
8284b0c5 18497
698dcdb6 18498fi
4f14bcd8
GD
18499done
18500
8284b0c5 18501
4f14bcd8
GD
18502for ac_func in inet_aton
18503do
a0b9e27f 18504echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18505echo "configure:18506: checking for $ac_func" >&5
a0b9e27f
MB
18506if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18507 echo $ac_n "(cached) $ac_c" 1>&6
18508else
18509 cat > conftest.$ac_ext <<EOF
521196a2 18510#line 18511 "configure"
f6bcfd97 18511#include "confdefs.h"
4f14bcd8 18512/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18513 which can conflict with char $ac_func(); below. */
4f14bcd8 18514#include <assert.h>
f6bcfd97
BP
18515/* Override any gcc2 internal prototype to avoid an error. */
18516/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18517 builtin and then its argument prototype would still apply. */
18518char $ac_func();
18519
18520int main() {
18521
4f14bcd8
GD
18522/* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18526choke me
18527#else
a0b9e27f 18528$ac_func();
4f14bcd8
GD
18529#endif
18530
a0b9e27f
MB
18531; return 0; }
18532EOF
521196a2 18533if { (eval echo configure:18534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18534 rm -rf conftest*
18535 eval "ac_cv_func_$ac_func=yes"
18536else
18537 echo "configure: failed program was:" >&5
18538 cat conftest.$ac_ext >&5
18539 rm -rf conftest*
18540 eval "ac_cv_func_$ac_func=no"
18541fi
18542rm -f conftest*
18543fi
18544
18545if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18546 echo "$ac_t""yes" 1>&6
18547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18548 cat >> confdefs.h <<EOF
18549#define $ac_tr_func 1
18550EOF
18551 cat >> confdefs.h <<\EOF
4f14bcd8 18552#define HAVE_INET_ATON 1
a0b9e27f 18553EOF
4f14bcd8 18554
10f2d63a 18555else
a0b9e27f
MB
18556 echo "$ac_t""no" 1>&6
18557 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
521196a2 18558echo "configure:18559: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18559ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18560if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18561 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18562else
a0b9e27f 18563 ac_save_LIBS="$LIBS"
4f14bcd8 18564LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18565cat > conftest.$ac_ext <<EOF
521196a2 18566#line 18567 "configure"
10f2d63a 18567#include "confdefs.h"
6232543b 18568/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18569/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18570 builtin and then its argument prototype would still apply. */
18571char inet_aton();
18572
18573int main() {
18574inet_aton()
18575; return 0; }
18576EOF
521196a2 18577if { (eval echo configure:18578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18578 rm -rf conftest*
18579 eval "ac_cv_lib_$ac_lib_var=yes"
18580else
18581 echo "configure: failed program was:" >&5
18582 cat conftest.$ac_ext >&5
18583 rm -rf conftest*
18584 eval "ac_cv_lib_$ac_lib_var=no"
18585fi
18586rm -f conftest*
18587LIBS="$ac_save_LIBS"
4f14bcd8 18588
10f2d63a 18589fi
a0b9e27f
MB
18590if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18591 echo "$ac_t""yes" 1>&6
18592 cat >> confdefs.h <<\EOF
18593#define HAVE_INET_ATON 1
18594EOF
10f2d63a 18595
a0b9e27f
MB
18596else
18597 echo "$ac_t""no" 1>&6
18598fi
247f5006 18599
a0b9e27f 18600
10f2d63a 18601fi
4f14bcd8 18602done
10f2d63a 18603
8284b0c5 18604
4f14bcd8 18605if test "x$INET_LINK" != "x"; then
a0b9e27f 18606 cat >> confdefs.h <<\EOF
4f14bcd8 18607#define HAVE_INET_ADDR 1
a0b9e27f 18608EOF
4f14bcd8 18609
3d63bc3a 18610 INET_LINK=" -l$INET_LINK"
6232543b 18611fi
10f2d63a 18612
1e487827 18613fi
703e0a69 18614
8284b0c5 18615
a0b9e27f 18616cat > confcache <<\EOF
4f14bcd8
GD
18617# This file is a shell script that caches the results of configure
18618# tests run on this system so they can be shared between configure
a0b9e27f
MB
18619# scripts and configure runs. It is not useful on other systems.
18620# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18621#
a0b9e27f
MB
18622# By default, configure uses ./config.cache as the cache file,
18623# creating it if it does not exist already. You can give configure
18624# the --cache-file=FILE option to use a different cache file; that is
18625# what configure does when it calls configure scripts in
18626# subdirectories, so they share the cache.
18627# Giving --cache-file=/dev/null disables caching, for debugging configure.
18628# config.status only pays attention to the cache file if you give it the
18629# --recheck option to rerun configure.
4f14bcd8 18630#
a0b9e27f 18631EOF
4f14bcd8
GD
18632# The following way of writing the cache mishandles newlines in values,
18633# but we know of no workaround that is simple, portable, and efficient.
18634# So, don't put newlines in cache variables' values.
18635# Ultrix sh set writes to stderr and can't be redirected directly,
18636# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18637(set) 2>&1 |
18638 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18639 *ac_space=\ *)
18640 # `set' does not quote correctly, so add quotes (double-quote substitution
18641 # turns \\\\ into \\, and sed turns \\ into \).
18642 sed -n \
18643 -e "s/'/'\\\\''/g" \
18644 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18645 ;;
18646 *)
18647 # `set' quotes correctly as required by POSIX, so do not add quotes.
18648 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18649 ;;
18650 esac >> confcache
18651if cmp -s $cache_file confcache; then
18652 :
18653else
4f14bcd8 18654 if test -w $cache_file; then
a0b9e27f
MB
18655 echo "updating cache $cache_file"
18656 cat confcache > $cache_file
f6bcfd97 18657 else
4f14bcd8 18658 echo "not updating unwritable cache $cache_file"
f6bcfd97 18659 fi
4f14bcd8
GD
18660fi
18661rm -f confcache
f6bcfd97 18662
8284b0c5 18663
a0b9e27f 18664
009fead0 18665CPP_MT_FLAG=
4f14bcd8
GD
18666if test "$TOOLKIT" != "MSW"; then
18667
a0b9e27f 18668
7274f1c7 18669 THREADS_LINK=
009fead0 18670 THREADS_CFLAGS=
7274f1c7
RL
18671
18672 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18673 if test "$USE_BEOS" = 1; then
a0b9e27f 18674 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18675 wxUSE_THREADS="no"
18676 fi
4f14bcd8 18677 fi
4f14bcd8 18678
7274f1c7 18679 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18680
18681
009fead0
VZ
18682 THREAD_OPTS="-pthread"
18683 case "${host}" in
18684 *-*-solaris2* | *-*-sunos4* )
18685 if test "x$GCC" = "xyes"; then
126be6b4 18686 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18687 else
18688 THREAD_OPTS="-mt $THREAD_OPTS"
18689 fi
18690 ;;
18691 *-*-freebsd*)
18692 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18693 ;;
17234b26
MB
18694 *-*-darwin* | *-*-cygwin* )
18695 THREAD_OPTS=""
4101db81 18696 ;;
8f4a9a10 18697 *-*-aix*)
009fead0
VZ
18698 THREAD_OPTS="pthreads"
18699 ;;
4f5a7f74
VZ
18700 *-hp-hpux* )
18701 if test "x$GCC" != "xyes"; then
18702 THREAD_OPTS=""
18703 fi
009fead0 18704 esac
4f14bcd8 18705
02a1dfba 18706 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18707
009fead0
VZ
18708 THREADS_OK=no
18709 for flag in $THREAD_OPTS; do
18710 case $flag in
18711 none)
a0b9e27f 18712 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
521196a2 18713echo "configure:18714: checking whether pthreads work without any flags" >&5
009fead0 18714 ;;
698dcdb6 18715
009fead0 18716 -*)
a0b9e27f 18717 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
521196a2 18718echo "configure:18719: checking whether pthreads work with $flag" >&5
009fead0
VZ
18719 THREADS_CFLAGS="$flag"
18720 ;;
698dcdb6 18721
009fead0 18722 *)
a0b9e27f 18723 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
521196a2 18724echo "configure:18725: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18725 THREADS_LINK="-l$flag"
18726 ;;
18727 esac
10f2d63a 18728
009fead0
VZ
18729 save_LIBS="$LIBS"
18730 save_CFLAGS="$CFLAGS"
18731 LIBS="$THREADS_LINK $LIBS"
04727afd 18732 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18733
a0b9e27f 18734 cat > conftest.$ac_ext <<EOF
521196a2 18735#line 18736 "configure"
009fead0
VZ
18736#include "confdefs.h"
18737#include <pthread.h>
a0b9e27f 18738int main() {
009fead0 18739pthread_create(0,0,0,0);
a0b9e27f
MB
18740; return 0; }
18741EOF
521196a2 18742if { (eval echo configure:18743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18743 rm -rf conftest*
009fead0 18744 THREADS_OK=yes
10f2d63a 18745else
a0b9e27f
MB
18746 echo "configure: failed program was:" >&5
18747 cat conftest.$ac_ext >&5
6232543b 18748fi
a0b9e27f 18749rm -f conftest*
698dcdb6 18750
009fead0
VZ
18751 LIBS="$save_LIBS"
18752 CFLAGS="$save_CFLAGS"
d9b9876f 18753
a0b9e27f 18754 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18755 if test "x$THREADS_OK" = "xyes"; then
18756 break;
18757 fi
d9b9876f 18758
009fead0
VZ
18759 THREADS_LINK=""
18760 THREADS_CFLAGS=""
18761 done
4f14bcd8 18762
009fead0
VZ
18763 if test "x$THREADS_OK" != "xyes"; then
18764 wxUSE_THREADS=no
a0b9e27f 18765 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18766 else
db82f09e
VZ
18767 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18768 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18769
a0b9e27f 18770 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
521196a2 18771echo "configure:18772: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18772 flag=no
18773 case "${host}" in
2b5f62a0
VZ
18774 *-aix*)
18775 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18776 flag="-D_THREAD_SAFE"
18777 ;;
18778 *-freebsd*)
009fead0
VZ
18779 flag="-D_THREAD_SAFE"
18780 ;;
06313569
GD
18781 *-hp-hpux* )
18782 flag="-D_REENTRANT"
4f5a7f74
VZ
18783 if test "x$GCC" != "xyes"; then
18784 flag="$flag -D_RWSTD_MULTI_THREAD"
18785 fi
06313569 18786 ;;
009fead0
VZ
18787 *solaris* | alpha*-osf*)
18788 flag="-D_REENTRANT"
18789 ;;
18790 esac
a0b9e27f 18791 echo "$ac_t""${flag}" 1>&6
009fead0 18792 if test "x$flag" != xno; then
04727afd 18793 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18794 fi
18795
009fead0 18796 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18797 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18798 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18799 fi
18800 fi
4f14bcd8 18801 fi
4f14bcd8 18802
7274f1c7 18803 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18804 for ac_func in thr_setconcurrency
4f14bcd8 18805do
a0b9e27f 18806echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 18807echo "configure:18808: checking for $ac_func" >&5
a0b9e27f
MB
18808if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18809 echo $ac_n "(cached) $ac_c" 1>&6
18810else
18811 cat > conftest.$ac_ext <<EOF
521196a2 18812#line 18813 "configure"
d9b9876f 18813#include "confdefs.h"
4f14bcd8 18814/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18815 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18816#include <assert.h>
18817/* Override any gcc2 internal prototype to avoid an error. */
18818/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18819 builtin and then its argument prototype would still apply. */
18820char $ac_func();
18821
18822int main() {
18823
4f14bcd8
GD
18824/* The GNU C library defines this for functions which it implements
18825 to always fail with ENOSYS. Some functions are actually named
18826 something starting with __ and the normal name is an alias. */
18827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18828choke me
18829#else
a0b9e27f 18830$ac_func();
4f14bcd8
GD
18831#endif
18832
a0b9e27f
MB
18833; return 0; }
18834EOF
521196a2 18835if { (eval echo configure:18836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18836 rm -rf conftest*
18837 eval "ac_cv_func_$ac_func=yes"
18838else
18839 echo "configure: failed program was:" >&5
18840 cat conftest.$ac_ext >&5
18841 rm -rf conftest*
18842 eval "ac_cv_func_$ac_func=no"
18843fi
18844rm -f conftest*
18845fi
698dcdb6 18846
a0b9e27f
MB
18847if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18848 echo "$ac_t""yes" 1>&6
18849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18850 cat >> confdefs.h <<EOF
18851#define $ac_tr_func 1
18852EOF
18853
18854else
18855 echo "$ac_t""no" 1>&6
10f2d63a 18856fi
4f14bcd8 18857done
10f2d63a 18858
8284b0c5 18859
a0b9e27f 18860 for ac_hdr in sched.h
4f14bcd8 18861do
a0b9e27f
MB
18862ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18863echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 18864echo "configure:18865: checking for $ac_hdr" >&5
a0b9e27f
MB
18865if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18866 echo $ac_n "(cached) $ac_c" 1>&6
18867else
18868 cat > conftest.$ac_ext <<EOF
521196a2 18869#line 18870 "configure"
247f5006 18870#include "confdefs.h"
a0b9e27f
MB
18871#include <$ac_hdr>
18872EOF
18873ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 18874{ (eval echo configure:18875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18875ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18876if test -z "$ac_err"; then
18877 rm -rf conftest*
18878 eval "ac_cv_header_$ac_safe=yes"
18879else
18880 echo "$ac_err" >&5
18881 echo "configure: failed program was:" >&5
4f14bcd8 18882 cat conftest.$ac_ext >&5
a0b9e27f
MB
18883 rm -rf conftest*
18884 eval "ac_cv_header_$ac_safe=no"
13111b2a 18885fi
a0b9e27f 18886rm -f conftest*
10f2d63a 18887fi
a0b9e27f
MB
18888if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18889 echo "$ac_t""yes" 1>&6
18890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18891 cat >> confdefs.h <<EOF
18892#define $ac_tr_hdr 1
18893EOF
18894
18895else
18896 echo "$ac_t""no" 1>&6
f6bcfd97 18897fi
4f14bcd8 18898done
f6bcfd97 18899
009fead0 18900 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18901 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
521196a2 18902echo "configure:18903: checking for sched_yield" >&5
a0b9e27f
MB
18903if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18904 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18905else
a0b9e27f 18906 cat > conftest.$ac_ext <<EOF
521196a2 18907#line 18908 "configure"
4f14bcd8 18908#include "confdefs.h"
009fead0 18909/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18910 which can conflict with char sched_yield(); below. */
009fead0 18911#include <assert.h>
4f14bcd8
GD
18912/* Override any gcc2 internal prototype to avoid an error. */
18913/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18914 builtin and then its argument prototype would still apply. */
18915char sched_yield();
18916
18917int main() {
18918
009fead0
VZ
18919/* The GNU C library defines this for functions which it implements
18920 to always fail with ENOSYS. Some functions are actually named
18921 something starting with __ and the normal name is an alias. */
18922#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18923choke me
18924#else
a0b9e27f 18925sched_yield();
009fead0
VZ
18926#endif
18927
a0b9e27f
MB
18928; return 0; }
18929EOF
521196a2 18930if { (eval echo configure:18931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18931 rm -rf conftest*
18932 eval "ac_cv_func_sched_yield=yes"
18933else
18934 echo "configure: failed program was:" >&5
18935 cat conftest.$ac_ext >&5
18936 rm -rf conftest*
18937 eval "ac_cv_func_sched_yield=no"
18938fi
18939rm -f conftest*
18940fi
18941
18942if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18943 echo "$ac_t""yes" 1>&6
18944 cat >> confdefs.h <<\EOF
4f14bcd8 18945#define HAVE_SCHED_YIELD 1
a0b9e27f 18946EOF
10f2d63a 18947
4f14bcd8 18948else
a0b9e27f 18949 echo "$ac_t""no" 1>&6
009fead0 18950
a0b9e27f 18951 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
521196a2 18952echo "configure:18953: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
18953ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18954if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18955 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18956else
a0b9e27f 18957 ac_save_LIBS="$LIBS"
4f14bcd8 18958LIBS="-lposix4 $LIBS"
a0b9e27f 18959cat > conftest.$ac_ext <<EOF
521196a2 18960#line 18961 "configure"
4f14bcd8
GD
18961#include "confdefs.h"
18962/* Override any gcc2 internal prototype to avoid an error. */
18963/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18964 builtin and then its argument prototype would still apply. */
18965char sched_yield();
18966
18967int main() {
18968sched_yield()
18969; return 0; }
18970EOF
521196a2 18971if { (eval echo configure:18972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18972 rm -rf conftest*
18973 eval "ac_cv_lib_$ac_lib_var=yes"
18974else
18975 echo "configure: failed program was:" >&5
18976 cat conftest.$ac_ext >&5
18977 rm -rf conftest*
18978 eval "ac_cv_lib_$ac_lib_var=no"
18979fi
18980rm -f conftest*
18981LIBS="$ac_save_LIBS"
18982
18983fi
18984if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18985 echo "$ac_t""yes" 1>&6
18986 cat >> confdefs.h <<\EOF
4f14bcd8 18987#define HAVE_SCHED_YIELD 1
a0b9e27f 18988EOF
3d63bc3a 18989 POSIX4_LINK=" -lposix4"
4f14bcd8 18990else
a0b9e27f
MB
18991 echo "$ac_t""no" 1>&6
18992echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18993
54276ccf
VZ
18994fi
18995
a0b9e27f
MB
18996
18997
4f14bcd8 18998fi
698dcdb6 18999
009fead0 19000 fi
10f2d63a 19001
7274f1c7 19002 HAVE_PRIOR_FUNCS=0
a0b9e27f 19003 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
521196a2 19004echo "configure:19005: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
19005if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19006 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19007else
a0b9e27f 19008 cat > conftest.$ac_ext <<EOF
521196a2 19009#line 19010 "configure"
422107f9 19010#include "confdefs.h"
009fead0 19011/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19012 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 19013#include <assert.h>
4f14bcd8
GD
19014/* Override any gcc2 internal prototype to avoid an error. */
19015/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19016 builtin and then its argument prototype would still apply. */
19017char pthread_attr_getschedpolicy();
19018
19019int main() {
19020
009fead0
VZ
19021/* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19025choke me
19026#else
a0b9e27f 19027pthread_attr_getschedpolicy();
009fead0
VZ
19028#endif
19029
a0b9e27f
MB
19030; return 0; }
19031EOF
521196a2 19032if { (eval echo configure:19033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19033 rm -rf conftest*
19034 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19035else
19036 echo "configure: failed program was:" >&5
19037 cat conftest.$ac_ext >&5
19038 rm -rf conftest*
19039 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19040fi
19041rm -f conftest*
19042fi
19043
19044if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19045 echo "$ac_t""yes" 1>&6
19046 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
521196a2 19047echo "configure:19048: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19048if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19049 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19050else
a0b9e27f 19051 cat > conftest.$ac_ext <<EOF
521196a2 19052#line 19053 "configure"
a0b9e27f
MB
19053#include "confdefs.h"
19054/* System header to define __stub macros and hopefully few prototypes,
19055 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19056#include <assert.h>
422107f9
VZ
19057/* Override any gcc2 internal prototype to avoid an error. */
19058/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19059 builtin and then its argument prototype would still apply. */
19060char pthread_attr_setschedparam();
19061
19062int main() {
19063
009fead0
VZ
19064/* The GNU C library defines this for functions which it implements
19065 to always fail with ENOSYS. Some functions are actually named
19066 something starting with __ and the normal name is an alias. */
19067#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19068choke me
19069#else
a0b9e27f 19070pthread_attr_setschedparam();
009fead0
VZ
19071#endif
19072
a0b9e27f
MB
19073; return 0; }
19074EOF
521196a2 19075if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19076 rm -rf conftest*
19077 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19078else
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19081 rm -rf conftest*
19082 eval "ac_cv_func_pthread_attr_setschedparam=no"
19083fi
19084rm -f conftest*
19085fi
19086
19087if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19088 echo "$ac_t""yes" 1>&6
19089 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
521196a2 19090echo "configure:19091: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19091if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19092 echo $ac_n "(cached) $ac_c" 1>&6
19093else
19094 cat > conftest.$ac_ext <<EOF
521196a2 19095#line 19096 "configure"
422107f9 19096#include "confdefs.h"
009fead0
VZ
19097/* System header to define __stub macros and hopefully few prototypes
19098else
a0b9e27f
MB
19099 echo "$ac_t""no" 1>&6
19100which can conflict with char sched_get_priority_max(); below. */
009fead0 19101#include <assert.h>
4f14bcd8
GD
19102/* Override any gcc2 internal prototype to avoid an error. */
19103/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19104 builtin and then its argument prototype would still apply. */
19105char sched_get_priority_max();
19106
19107int main() {
19108
009fead0
VZ
19109/* The GNU C library defines this for functions which it implements
19110 to always fail with ENOSYS. Some functions are actually named
19111 something starting with __ and the normal name is an alias. */
19112#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19113choke me
19114#else
a0b9e27f 19115sched_get_priority_max();
009fead0
VZ
19116#endif
19117
a0b9e27f
MB
19118; return 0; }
19119EOF
521196a2 19120if { (eval echo configure:19121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19121 rm -rf conftest*
19122 eval "ac_cv_func_sched_get_priority_max=yes"
19123else
19124 echo "configure: failed program was:" >&5
19125 cat conftest.$ac_ext >&5
19126 rm -rf conftest*
19127 eval "ac_cv_func_sched_get_priority_max=no"
19128fi
19129rm -f conftest*
19130fi
19131
19132if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19133 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19134 HAVE_PRIOR_FUNCS=1
19135else
a0b9e27f
MB
19136 echo "$ac_t""no" 1>&6
19137echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
521196a2 19138echo "configure:19139: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19139ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19141 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19142else
a0b9e27f 19143 ac_save_LIBS="$LIBS"
4f14bcd8 19144LIBS="-lposix4 $LIBS"
a0b9e27f 19145cat > conftest.$ac_ext <<EOF
521196a2 19146#line 19147 "configure"
422107f9
VZ
19147#include "confdefs.h"
19148/* Override any gcc2 internal prototype to avoid an error. */
19149/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19150 builtin and then its argument prototype would still apply. */
19151char sched_get_priority_max();
19152
19153int main() {
19154sched_get_priority_max()
19155; return 0; }
19156EOF
521196a2 19157if { (eval echo configure:19158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19158 rm -rf conftest*
19159 eval "ac_cv_lib_$ac_lib_var=yes"
19160else
19161 echo "configure: failed program was:" >&5
19162 cat conftest.$ac_ext >&5
19163 rm -rf conftest*
19164 eval "ac_cv_lib_$ac_lib_var=no"
19165fi
19166rm -f conftest*
19167LIBS="$ac_save_LIBS"
698dcdb6 19168
a0b9e27f
MB
19169fi
19170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19171 echo "$ac_t""yes" 1>&6
19172
7274f1c7
RL
19173 HAVE_PRIOR_FUNCS=1
19174 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19175
19176else
19177 echo "$ac_t""no" 1>&6
4f14bcd8 19178fi
463abc64 19179
a0b9e27f 19180
328a083c 19181fi
463abc64 19182
a0b9e27f
MB
19183
19184else
19185 echo "$ac_t""no" 1>&6
7b4a847f 19186fi
579d8138 19187
a0b9e27f 19188
5c6fa7d2 19189fi
52127426 19190
8284b0c5 19191
7274f1c7 19192 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19193 cat >> confdefs.h <<\EOF
4f14bcd8 19194#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19195EOF
463abc64 19196
7274f1c7 19197 else
a0b9e27f 19198 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19199 fi
463abc64 19200
a0b9e27f 19201 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
521196a2 19202echo "configure:19203: checking for pthread_cancel" >&5
a0b9e27f
MB
19203if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19205else
a0b9e27f 19206 cat > conftest.$ac_ext <<EOF
521196a2 19207#line 19208 "configure"
422107f9 19208#include "confdefs.h"
009fead0 19209/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19210 which can conflict with char pthread_cancel(); below. */
009fead0 19211#include <assert.h>
422107f9
VZ
19212/* Override any gcc2 internal prototype to avoid an error. */
19213/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19214 builtin and then its argument prototype would still apply. */
19215char pthread_cancel();
19216
19217int main() {
19218
009fead0
VZ
19219/* The GNU C library defines this for functions which it implements
19220 to always fail with ENOSYS. Some functions are actually named
19221 something starting with __ and the normal name is an alias. */
19222#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19223choke me
19224#else
a0b9e27f 19225pthread_cancel();
009fead0
VZ
19226#endif
19227
a0b9e27f
MB
19228; return 0; }
19229EOF
521196a2 19230if { (eval echo configure:19231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19231 rm -rf conftest*
19232 eval "ac_cv_func_pthread_cancel=yes"
19233else
19234 echo "configure: failed program was:" >&5
19235 cat conftest.$ac_ext >&5
19236 rm -rf conftest*
19237 eval "ac_cv_func_pthread_cancel=no"
19238fi
19239rm -f conftest*
19240fi
19241
19242if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19243 echo "$ac_t""yes" 1>&6
19244 cat >> confdefs.h <<\EOF
4f14bcd8 19245#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19246EOF
4f14bcd8 19247
698dcdb6 19248else
a0b9e27f
MB
19249 echo "$ac_t""no" 1>&6
19250echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19251fi
19252
5c6fa7d2 19253
a0b9e27f 19254 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
521196a2 19255echo "configure:19256: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19256if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19257 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19258else
a0b9e27f
MB
19259
19260 cat > conftest.$ac_ext <<EOF
521196a2 19261#line 19262 "configure"
4f14bcd8
GD
19262#include "confdefs.h"
19263#include <pthread.h>
a0b9e27f 19264int main() {
4f14bcd8 19265
7274f1c7
RL
19266 pthread_cleanup_push(NULL, NULL);
19267 pthread_cleanup_pop(0);
a0b9e27f
MB
19268
19269; return 0; }
19270EOF
521196a2 19271if { (eval echo configure:19272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19272 rm -rf conftest*
19273
7274f1c7 19274 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19275
4f14bcd8 19276else
a0b9e27f
MB
19277 echo "configure: failed program was:" >&5
19278 cat conftest.$ac_ext >&5
19279 rm -rf conftest*
19280
7274f1c7 19281 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19282
5c6fa7d2 19283fi
a0b9e27f
MB
19284rm -f conftest*
19285
247f5006 19286fi
a0b9e27f
MB
19287
19288echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19289
7274f1c7 19290 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19291 cat >> confdefs.h <<\EOF
4f14bcd8 19292#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19293EOF
c7a2bf27 19294
7274f1c7 19295 fi
4f14bcd8 19296
a0b9e27f
MB
19297
19298 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
521196a2 19299echo "configure:19300: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19300if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19301 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19302else
a0b9e27f
MB
19303
19304 cat > conftest.$ac_ext <<EOF
521196a2 19305#line 19306 "configure"
0dcf9893 19306#include "confdefs.h"
4f14bcd8 19307#include <pthread.h>
a0b9e27f 19308int main() {
4f14bcd8 19309
7274f1c7
RL
19310 pthread_mutexattr_t attr;
19311 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19312
19313; return 0; }
19314EOF
521196a2 19315if { (eval echo configure:19316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19316 rm -rf conftest*
19317
7274f1c7 19318 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19319
3fed1840 19320else
a0b9e27f
MB
19321 echo "configure: failed program was:" >&5
19322 cat conftest.$ac_ext >&5
19323 rm -rf conftest*
19324
7274f1c7 19325 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19326
19327
5c6fa7d2 19328fi
a0b9e27f
MB
19329rm -f conftest*
19330
247f5006 19331fi
a0b9e27f
MB
19332
19333echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19334
7274f1c7 19335 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19336 cat >> confdefs.h <<\EOF
4f14bcd8 19337#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19338EOF
4f14bcd8 19339
7274f1c7 19340 else
a0b9e27f 19341 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
521196a2 19342echo "configure:19343: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19343if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19344 echo $ac_n "(cached) $ac_c" 1>&6
19345else
19346
19347 cat > conftest.$ac_ext <<EOF
521196a2 19348#line 19349 "configure"
3fed1840 19349#include "confdefs.h"
4f14bcd8 19350#include <pthread.h>
a0b9e27f 19351int main() {
4f14bcd8 19352
7274f1c7 19353 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19354
19355; return 0; }
19356EOF
521196a2 19357if { (eval echo configure:19358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19358 rm -rf conftest*
19359
7274f1c7 19360 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19361
698dcdb6 19362else
a0b9e27f
MB
19363 echo "configure: failed program was:" >&5
19364 cat conftest.$ac_ext >&5
19365 rm -rf conftest*
19366
7274f1c7 19367 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19368
19369
5c6fa7d2 19370fi
a0b9e27f
MB
19371rm -f conftest*
19372
247f5006 19373fi
a0b9e27f
MB
19374
19375echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19376 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19377 cat >> confdefs.h <<\EOF
4f14bcd8 19378#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19379EOF
3fed1840 19380
7274f1c7 19381 else
a0b9e27f 19382 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19383 fi
19384 fi
7274f1c7 19385 fi
3fed1840 19386
a0b9e27f
MB
19387else
19388 if test "$wxUSE_THREADS" = "yes" ; then
19389 case "${host}" in
19390 *-*-mingw32* )
ca8e52b3 19391 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
521196a2 19392echo "configure:19393: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19393if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19394 echo $ac_n "(cached) $ac_c" 1>&6
19395else
19396
19397 CFLAGS_OLD="$CFLAGS"
19398 CFLAGS="$CFLAGS -mthreads"
19399 cat > conftest.$ac_ext <<EOF
521196a2 19400#line 19401 "configure"
ca8e52b3
VZ
19401#include "confdefs.h"
19402
19403int main() {
19404
19405; return 0; }
19406EOF
521196a2 19407if { (eval echo configure:19408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19408 rm -rf conftest*
19409 wx_cv_cflags_mthread=yes
19410else
19411 echo "configure: failed program was:" >&5
19412 cat conftest.$ac_ext >&5
19413 rm -rf conftest*
19414 wx_cv_cflags_mthread=no
19415
19416fi
19417rm -f conftest*
19418
19419
19420fi
19421
19422echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19423
19424 if test "$wx_cv_cflags_mthread" = "yes"; then
19425 CXXFLAGS="$CXXFLAGS -mthreads"
19426 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19427 LDFLAGS="$LDFLAGS -mthreads"
19428 else
19429 CFLAGS="$CFLAGS_OLD"
19430 fi
a0b9e27f
MB
19431 ;;
19432 esac
19433 fi
4f14bcd8
GD
19434fi
19435
19436if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19437 cat >> confdefs.h <<\EOF
4f14bcd8 19438#define wxUSE_THREADS 1
a0b9e27f 19439EOF
7b6058cd 19440
8284b0c5 19441
4f14bcd8 19442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19443else
4f14bcd8 19444 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19445 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
521196a2 19446echo "configure:19447: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19447 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19448 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19449 echo "$ac_t""yes" 1>&6
4f14bcd8 19450 else
a0b9e27f 19451 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19452 fi
19453 fi
19454fi
19455
19456if test "$WXGTK20" = 1 ; then
a0b9e27f 19457 cat >> confdefs.h <<EOF
4f14bcd8 19458#define __WXGTK20__ $WXGTK20
a0b9e27f 19459EOF
4f14bcd8
GD
19460
19461 WXGTK12=1
10f2d63a 19462fi
4f14bcd8
GD
19463
19464if test "$WXGTK12" = 1 ; then
a0b9e27f 19465 cat >> confdefs.h <<EOF
4f14bcd8 19466#define __WXGTK12__ $WXGTK12
a0b9e27f 19467EOF
4f14bcd8 19468
10f2d63a 19469fi
698dcdb6 19470
4f14bcd8 19471if test "$WXGTK127" = 1 ; then
a0b9e27f 19472 cat >> confdefs.h <<EOF
4f14bcd8 19473#define __WXGTK127__ $WXGTK127
a0b9e27f 19474EOF
4f14bcd8 19475
698dcdb6 19476fi
10f2d63a 19477
4f14bcd8
GD
19478WXDEBUG=
19479
19480if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19481 WXDEBUG="-g"
19482 wxUSE_OPTIMISE=no
698dcdb6 19483fi
4f14bcd8
GD
19484
19485if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19486 wxUSE_DEBUG_INFO=yes
19487 WXDEBUG="-ggdb"
10f2d63a
VZ
19488fi
19489
4f14bcd8 19490if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19491 cat >> confdefs.h <<\EOF
4f14bcd8 19492#define WXDEBUG 1
a0b9e27f 19493EOF
4f14bcd8
GD
19494
19495 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19496else
4f14bcd8
GD
19497 if test "$wxUSE_GTK" = 1 ; then
19498 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19499 fi
19500fi
19501
19502if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19503 cat >> confdefs.h <<\EOF
4f14bcd8 19504#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19505EOF
4f14bcd8 19506
a0b9e27f 19507 cat >> confdefs.h <<\EOF
4f14bcd8 19508#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19509EOF
4f14bcd8 19510
a0b9e27f 19511 cat >> confdefs.h <<\EOF
4f14bcd8 19512#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19513EOF
4f14bcd8
GD
19514
19515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19516fi
19517
19518if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19519 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19520fi
19521
19522PROFILE=
19523if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19524 PROFILE=" -pg"
10f2d63a
VZ
19525fi
19526
009fead0
VZ
19527CODE_GEN_FLAGS=
19528CODE_GEN_FLAGS_CXX=
88e30f2b 19529if test "$GCC" = "yes" ; then
4f14bcd8
GD
19530 if test "$wxUSE_NO_RTTI" = "yes" ; then
19531 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19532 fi
4f14bcd8
GD
19533 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19534 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19535 fi
19536 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19537 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19538 fi
4f14bcd8
GD
19539 if test "$USE_WIN32" = 1 ; then
19540 # I'm not even really sure what this was ever added to solve,
19541 # but someone added it for mingw native builds, so I guess
19542 # they had a reason, right??
19543 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19544 fi
1d1b75ac 19545
2b5f62a0 19546 case "${host}" in
1d1b75ac
VZ
19547 powerpc*-*-aix* )
19548 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19549 ;;
2b5f62a0
VZ
19550 *-hppa* )
19551 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19552 ;;
1d1b75ac 19553 esac
4f14bcd8
GD
19554fi
19555
af7b5345 19556OPTIMISE=
4f14bcd8 19557if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19558 if test "$GCC" = yes ; then
19559 OPTIMISE="-O0"
19560 fi
4f14bcd8
GD
19561else
19562 if test "$GCC" = yes ; then
19563 OPTIMISE="-O2"
af7b5345
VZ
19564
19565 case "${host}" in
4f14bcd8
GD
19566 i586-*-*|i686-*-* )
19567 OPTIMISE="${OPTIMISE} "
19568 ;;
19569 esac
19570 else
19571 OPTIMISE="-O"
19572 fi
19573fi
19574
8d90d2f2 19575
4f14bcd8 19576if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19577 cat >> confdefs.h <<\EOF
4f14bcd8 19578#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19579EOF
4f14bcd8 19580
8284b0c5 19581
4f14bcd8
GD
19582 WXWIN_COMPATIBILITY_2_2="yes"
19583fi
19584
65d8ef1e 19585if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19586 cat >> confdefs.h <<\EOF
4f14bcd8 19587#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19588EOF
4f14bcd8 19589
8d90d2f2
VZ
19590
19591 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19592fi
19593
65d8ef1e
VS
19594if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19595 cat >> confdefs.h <<\EOF
19596#define WXWIN_COMPATIBILITY_2_4 1
19597EOF
19598
19599fi
19600
8284b0c5 19601
10f2d63a 19602if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19603 cat >> confdefs.h <<\EOF
10f2d63a 19604#define wxUSE_GUI 1
a0b9e27f 19605EOF
10f2d63a 19606
8284b0c5 19607
10f2d63a 19608 else
a0b9e27f 19609 cat >> confdefs.h <<\EOF
10f2d63a 19610#define wxUSE_NOGUI 1
a0b9e27f 19611EOF
10f2d63a
VZ
19612
19613fi
19614
8284b0c5 19615
10f2d63a 19616if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19617 cat >> confdefs.h <<\EOF
10f2d63a 19618#define wxUSE_UNIX 1
a0b9e27f 19619EOF
10f2d63a
VZ
19620
19621fi
19622
8284b0c5 19623
10f2d63a 19624if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19625 cat >> confdefs.h <<\EOF
10f2d63a 19626#define wxUSE_APPLE_IEEE 1
a0b9e27f 19627EOF
10f2d63a
VZ
19628
19629fi
19630
1e6feb95 19631if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19632 cat >> confdefs.h <<\EOF
1e6feb95 19633#define wxUSE_TIMER 1
a0b9e27f 19634EOF
1e6feb95
VZ
19635
19636fi
19637
10f2d63a 19638if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19639 cat >> confdefs.h <<\EOF
10f2d63a 19640#define wxUSE_WAVE 1
a0b9e27f 19641EOF
10f2d63a
VZ
19642
19643fi
19644
1e6feb95 19645if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19646 cat >> confdefs.h <<\EOF
1e6feb95 19647#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19648EOF
1e6feb95
VZ
19649
19650fi
19651
19652if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19653 cat >> confdefs.h <<\EOF
1e6feb95 19654#define wxUSE_STOPWATCH 1
a0b9e27f 19655EOF
1e6feb95
VZ
19656
19657fi
19658
19659if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19660 cat >> confdefs.h <<\EOF
1e6feb95 19661#define wxUSE_DATETIME 1
a0b9e27f 19662EOF
1e6feb95
VZ
19663
19664fi
19665
19666if test "$wxUSE_TIMEDATE" = "yes"; then
a0b9e27f 19667 cat >> confdefs.h <<\EOF
1e6feb95 19668#define wxUSE_TIMEDATE 1
a0b9e27f 19669EOF
1e6feb95
VZ
19670
19671fi
19672
10f2d63a 19673if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19674 cat >> confdefs.h <<\EOF
10f2d63a 19675#define wxUSE_FILE 1
a0b9e27f 19676EOF
10f2d63a
VZ
19677
19678fi
19679
1e6feb95 19680if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19681 cat >> confdefs.h <<\EOF
1e6feb95 19682#define wxUSE_FFILE 1
a0b9e27f 19683EOF
1e6feb95
VZ
19684
19685fi
19686
24528b0c 19687if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19688 cat >> confdefs.h <<\EOF
24528b0c 19689#define wxUSE_FILESYSTEM 1
a0b9e27f 19690EOF
24528b0c
VS
19691
19692fi
19693
10f2d63a 19694if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19695 cat >> confdefs.h <<\EOF
10f2d63a 19696#define wxUSE_FS_INET 1
a0b9e27f 19697EOF
10f2d63a
VZ
19698
19699fi
19700
19701if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19702 cat >> confdefs.h <<\EOF
10f2d63a 19703#define wxUSE_FS_ZIP 1
a0b9e27f 19704EOF
10f2d63a
VZ
19705
19706fi
19707
19708if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19709 cat >> confdefs.h <<\EOF
10f2d63a 19710#define wxUSE_ZIPSTREAM 1
a0b9e27f 19711EOF
10f2d63a
VZ
19712
19713fi
19714
eb4efbdc 19715if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19716 cat >> confdefs.h <<\EOF
eb4efbdc 19717#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19718EOF
eb4efbdc
VZ
19719
19720fi
19721
4f3c5f06 19722if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19723 cat >> confdefs.h <<\EOF
4f3c5f06 19724#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19725EOF
4f3c5f06
VZ
19726
19727fi
19728
10f2d63a 19729if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19730 cat >> confdefs.h <<\EOF
10f2d63a 19731#define wxUSE_BUSYINFO 1
a0b9e27f 19732EOF
10f2d63a
VZ
19733
19734fi
19735
19736if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19737 cat >> confdefs.h <<\EOF
10f2d63a 19738#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19739EOF
10f2d63a
VZ
19740
19741fi
19742
a3a584a7 19743if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19744 cat >> confdefs.h <<\EOF
a3a584a7 19745#define wxUSE_TEXTBUFFER 1
a0b9e27f 19746EOF
a3a584a7
VZ
19747
19748fi
19749
10f2d63a 19750if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19751 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19752 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19753 else
a0b9e27f 19754 cat >> confdefs.h <<\EOF
10f2d63a 19755#define wxUSE_TEXTFILE 1
a0b9e27f 19756EOF
10f2d63a
VZ
19757
19758 fi
19759fi
19760
19761if test "$wxUSE_CONFIG" = "yes" ; then
19762 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19763 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19764 else
a0b9e27f 19765 cat >> confdefs.h <<\EOF
10f2d63a 19766#define wxUSE_CONFIG 1
a0b9e27f 19767EOF
10f2d63a
VZ
19768
19769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19770 fi
19771fi
19772
19773if test "$wxUSE_INTL" = "yes" ; then
19774 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19775 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19776 else
a0b9e27f 19777 cat >> confdefs.h <<\EOF
10f2d63a 19778#define wxUSE_INTL 1
a0b9e27f 19779EOF
10f2d63a
VZ
19780
19781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19782 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19783 fi
19784fi
19785
19786if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19787 cat >> confdefs.h <<\EOF
10f2d63a 19788#define wxUSE_LOG 1
a0b9e27f 19789EOF
10f2d63a 19790
8284b0c5 19791
d73be714 19792 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19793 cat >> confdefs.h <<\EOF
d73be714 19794#define wxUSE_LOGGUI 1
a0b9e27f 19795EOF
d73be714
VZ
19796
19797 fi
19798
19799 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19800 cat >> confdefs.h <<\EOF
d73be714 19801#define wxUSE_LOGWINDOW 1
a0b9e27f 19802EOF
69d27ff7
MB
19803
19804 fi
19805
19806 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19807 cat >> confdefs.h <<\EOF
69d27ff7 19808#define wxUSE_LOG_DIALOG 1
a0b9e27f 19809EOF
d73be714
VZ
19810
19811 fi
10f2d63a
VZ
19812fi
19813
19814if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19815 cat >> confdefs.h <<\EOF
10f2d63a 19816#define wxUSE_LONGLONG 1
a0b9e27f 19817EOF
10f2d63a
VZ
19818
19819fi
19820
e8f65ba6 19821if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19822 cat >> confdefs.h <<\EOF
e8f65ba6 19823#define wxUSE_GEOMETRY 1
a0b9e27f 19824EOF
e8f65ba6
RR
19825
19826fi
19827
10f2d63a 19828if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19829 cat >> confdefs.h <<\EOF
10f2d63a 19830#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19831EOF
10f2d63a 19832
70f7a477 19833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19834fi
19835
19836if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19837 cat >> confdefs.h <<\EOF
10f2d63a 19838#define wxUSE_STREAMS 1
a0b9e27f 19839EOF
10f2d63a
VZ
19840
19841fi
19842
5c6fa7d2 19843
8284b0c5 19844if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19845 for ac_func in strptime
83307f33 19846do
a0b9e27f 19847echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 19848echo "configure:19849: checking for $ac_func" >&5
a0b9e27f
MB
19849if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19850 echo $ac_n "(cached) $ac_c" 1>&6
19851else
19852 cat > conftest.$ac_ext <<EOF
521196a2 19853#line 19854 "configure"
83307f33
VZ
19854#include "confdefs.h"
19855/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19856 which can conflict with char $ac_func(); below. */
83307f33
VZ
19857#include <assert.h>
19858/* Override any gcc2 internal prototype to avoid an error. */
19859/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19860 builtin and then its argument prototype would still apply. */
19861char $ac_func();
19862
19863int main() {
19864
83307f33
VZ
19865/* The GNU C library defines this for functions which it implements
19866 to always fail with ENOSYS. Some functions are actually named
19867 something starting with __ and the normal name is an alias. */
19868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19869choke me
19870#else
a0b9e27f 19871$ac_func();
83307f33
VZ
19872#endif
19873
a0b9e27f
MB
19874; return 0; }
19875EOF
521196a2 19876if { (eval echo configure:19877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19877 rm -rf conftest*
19878 eval "ac_cv_func_$ac_func=yes"
19879else
19880 echo "configure: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19882 rm -rf conftest*
19883 eval "ac_cv_func_$ac_func=no"
19884fi
19885rm -f conftest*
19886fi
83307f33 19887
a0b9e27f
MB
19888if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19889 echo "$ac_t""yes" 1>&6
19890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19891 cat >> confdefs.h <<EOF
19892#define $ac_tr_func 1
19893EOF
19894
19895else
19896 echo "$ac_t""no" 1>&6
83307f33
VZ
19897fi
19898done
19899
5c6fa7d2 19900
a0b9e27f 19901 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
521196a2 19902echo "configure:19903: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19903if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19904 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19905else
a0b9e27f
MB
19906
19907 cat > conftest.$ac_ext <<EOF
521196a2 19908#line 19909 "configure"
360d6699
VZ
19909#include "confdefs.h"
19910
b4085ce6 19911 #include <time.h>
a0b9e27f
MB
19912
19913int main() {
360d6699
VZ
19914
19915 int tz;
4f11a343 19916 tz = timezone;
a0b9e27f
MB
19917
19918; return 0; }
19919EOF
521196a2 19920if { (eval echo configure:19921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19921 rm -rf conftest*
19922
4f11a343 19923 wx_cv_var_timezone=timezone
a0b9e27f 19924
360d6699 19925else
a0b9e27f
MB
19926 echo "configure: failed program was:" >&5
19927 cat conftest.$ac_ext >&5
19928 rm -rf conftest*
19929
19930 cat > conftest.$ac_ext <<EOF
521196a2 19931#line 19932 "configure"
360d6699
VZ
19932#include "confdefs.h"
19933
b4085ce6 19934 #include <time.h>
a0b9e27f
MB
19935
19936int main() {
360d6699
VZ
19937
19938 int tz;
19939 tz = _timezone;
a0b9e27f
MB
19940
19941; return 0; }
19942EOF
521196a2 19943if { (eval echo configure:19944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19944 rm -rf conftest*
19945
360d6699 19946 wx_cv_var_timezone=_timezone
a0b9e27f 19947
5357c8e8 19948else
a0b9e27f
MB
19949 echo "configure: failed program was:" >&5
19950 cat conftest.$ac_ext >&5
19951 rm -rf conftest*
19952
19953 cat > conftest.$ac_ext <<EOF
521196a2 19954#line 19955 "configure"
5357c8e8
VZ
19955#include "confdefs.h"
19956
b4085ce6 19957 #include <time.h>
a0b9e27f
MB
19958
19959int main() {
5357c8e8
VZ
19960
19961 int tz;
4f11a343 19962 tz = __timezone;
a0b9e27f
MB
19963
19964; return 0; }
19965EOF
521196a2 19966if { (eval echo configure:19967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19967 rm -rf conftest*
19968
4f11a343 19969 wx_cv_var_timezone=__timezone
a0b9e27f 19970
360d6699 19971else
a0b9e27f
MB
19972 echo "configure: failed program was:" >&5
19973 cat conftest.$ac_ext >&5
19974 rm -rf conftest*
19975
f9bc1684 19976 if test "$USE_DOS" = 0 ; then
a0b9e27f 19977 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 19978 fi
a0b9e27f
MB
19979
19980
328a083c 19981fi
a0b9e27f
MB
19982rm -f conftest*
19983
19984
7b4a847f 19985fi
a0b9e27f
MB
19986rm -f conftest*
19987
19988
5c6fa7d2 19989fi
a0b9e27f
MB
19990rm -f conftest*
19991
19992
247f5006 19993fi
a0b9e27f
MB
19994
19995echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 19996
f9bc1684 19997 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 19998 cat >> confdefs.h <<EOF
360d6699 19999#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 20000EOF
360d6699 20001
f9bc1684 20002 fi
698dcdb6 20003
a0b9e27f 20004 for ac_func in localtime
afc31813 20005do
a0b9e27f 20006echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 20007echo "configure:20008: checking for $ac_func" >&5
a0b9e27f
MB
20008if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20010else
20011 cat > conftest.$ac_ext <<EOF
521196a2 20012#line 20013 "configure"
10f2d63a 20013#include "confdefs.h"
afc31813 20014/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20015 which can conflict with char $ac_func(); below. */
afc31813
VZ
20016#include <assert.h>
20017/* Override any gcc2 internal prototype to avoid an error. */
20018/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20019 builtin and then its argument prototype would still apply. */
20020char $ac_func();
20021
20022int main() {
20023
afc31813
VZ
20024/* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20028choke me
20029#else
a0b9e27f 20030$ac_func();
afc31813
VZ
20031#endif
20032
a0b9e27f
MB
20033; return 0; }
20034EOF
521196a2 20035if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20036 rm -rf conftest*
20037 eval "ac_cv_func_$ac_func=yes"
20038else
20039 echo "configure: failed program was:" >&5
20040 cat conftest.$ac_ext >&5
20041 rm -rf conftest*
20042 eval "ac_cv_func_$ac_func=no"
20043fi
20044rm -f conftest*
20045fi
afc31813 20046
a0b9e27f
MB
20047if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20048 echo "$ac_t""yes" 1>&6
20049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20050 cat >> confdefs.h <<EOF
20051#define $ac_tr_func 1
20052EOF
20053
20054else
20055 echo "$ac_t""no" 1>&6
afc31813
VZ
20056fi
20057done
20058
5c6fa7d2 20059
8284b0c5 20060 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20061 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
521196a2 20062echo "configure:20063: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20063if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20064 echo $ac_n "(cached) $ac_c" 1>&6
20065else
20066
20067 cat > conftest.$ac_ext <<EOF
521196a2 20068#line 20069 "configure"
0470b1e6
VZ
20069#include "confdefs.h"
20070
b4085ce6 20071 #include <time.h>
a0b9e27f
MB
20072
20073int main() {
0470b1e6
VZ
20074
20075 struct tm tm;
20076 tm.tm_gmtoff++;
a0b9e27f
MB
20077
20078; return 0; }
20079EOF
521196a2 20080if { (eval echo configure:20081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20081 rm -rf conftest*
20082
f03a98d8 20083 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20084
0470b1e6 20085else
a0b9e27f
MB
20086 echo "configure: failed program was:" >&5
20087 cat conftest.$ac_ext >&5
20088 rm -rf conftest*
20089 wx_cv_struct_tm_has_gmtoff=no
20090
5c6fa7d2 20091fi
a0b9e27f
MB
20092rm -f conftest*
20093
247f5006 20094fi
a0b9e27f
MB
20095
20096echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20097 fi
20098
20099 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20100 cat >> confdefs.h <<\EOF
6232543b 20101#define WX_GMTOFF_IN_TM 1
a0b9e27f 20102EOF
0470b1e6 20103
3fcdd07b
VZ
20104 fi
20105
a0b9e27f 20106 for ac_func in gettimeofday ftime
3fcdd07b 20107do
a0b9e27f 20108echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 20109echo "configure:20110: checking for $ac_func" >&5
a0b9e27f
MB
20110if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20111 echo $ac_n "(cached) $ac_c" 1>&6
20112else
20113 cat > conftest.$ac_ext <<EOF
521196a2 20114#line 20115 "configure"
3fcdd07b
VZ
20115#include "confdefs.h"
20116/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20117 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20118#include <assert.h>
20119/* Override any gcc2 internal prototype to avoid an error. */
20120/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20121 builtin and then its argument prototype would still apply. */
20122char $ac_func();
20123
20124int main() {
20125
3fcdd07b
VZ
20126/* The GNU C library defines this for functions which it implements
20127 to always fail with ENOSYS. Some functions are actually named
20128 something starting with __ and the normal name is an alias. */
20129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20130choke me
20131#else
a0b9e27f 20132$ac_func();
3fcdd07b
VZ
20133#endif
20134
a0b9e27f
MB
20135; return 0; }
20136EOF
521196a2 20137if { (eval echo configure:20138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20138 rm -rf conftest*
20139 eval "ac_cv_func_$ac_func=yes"
20140else
20141 echo "configure: failed program was:" >&5
20142 cat conftest.$ac_ext >&5
20143 rm -rf conftest*
20144 eval "ac_cv_func_$ac_func=no"
20145fi
20146rm -f conftest*
20147fi
20148
20149if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20150 echo "$ac_t""yes" 1>&6
20151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20152 cat >> confdefs.h <<EOF
20153#define $ac_tr_func 1
20154EOF
3fcdd07b 20155 break
a0b9e27f
MB
20156else
20157 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20158fi
20159done
20160
698dcdb6 20161
8284b0c5 20162 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20163 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
521196a2 20164echo "configure:20165: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20165if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20166 echo $ac_n "(cached) $ac_c" 1>&6
20167else
20168
20169
20170 ac_ext=C
20171# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20172ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20173ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20174ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20175cross_compiling=$ac_cv_prog_cxx_cross
52127426 20176
8284b0c5 20177
a0b9e27f 20178 cat > conftest.$ac_ext <<EOF
521196a2 20179#line 20180 "configure"
10f2d63a 20180#include "confdefs.h"
afc31813
VZ
20181
20182 #include <sys/time.h>
20183 #include <unistd.h>
a0b9e27f
MB
20184
20185int main() {
afc31813
VZ
20186
20187 struct timeval tv;
776862b4 20188 gettimeofday(&tv, NULL);
a0b9e27f
MB
20189
20190; return 0; }
20191EOF
521196a2 20192if { (eval echo configure:20193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20193 rm -rf conftest*
afc31813 20194 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20195else
a0b9e27f
MB
20196 echo "configure: failed program was:" >&5
20197 cat conftest.$ac_ext >&5
20198 rm -rf conftest*
20199 cat > conftest.$ac_ext <<EOF
521196a2 20200#line 20201 "configure"
10f2d63a 20201#include "confdefs.h"
afc31813
VZ
20202
20203 #include <sys/time.h>
20204 #include <unistd.h>
a0b9e27f
MB
20205
20206int main() {
afc31813
VZ
20207
20208 struct timeval tv;
20209 gettimeofday(&tv);
a0b9e27f
MB
20210
20211; return 0; }
20212EOF
521196a2 20213if { (eval echo configure:20214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20214 rm -rf conftest*
afc31813 20215 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20216else
a0b9e27f
MB
20217 echo "configure: failed program was:" >&5
20218 cat conftest.$ac_ext >&5
20219 rm -rf conftest*
20220
20221 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20222 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20223
20224
10f2d63a 20225fi
a0b9e27f
MB
20226rm -f conftest*
20227
10f2d63a 20228fi
a0b9e27f 20229rm -f conftest*
afc31813 20230 ac_ext=c
a0b9e27f 20231# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20232ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20233ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20234ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20235cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20236
a0b9e27f 20237
247f5006 20238fi
a0b9e27f
MB
20239
20240echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20241
afc31813 20242 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20243 cat >> confdefs.h <<\EOF
afc31813 20244#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20245EOF
afc31813
VZ
20246
20247 fi
20248 fi
20249
a0b9e27f 20250 cat >> confdefs.h <<\EOF
afc31813 20251#define wxUSE_TIMEDATE 1
a0b9e27f 20252EOF
afc31813
VZ
20253
20254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20255fi
20256
8284b0c5 20257
52127426 20258if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20259 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20260 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20261 wxUSE_SOCKETS="no"
20262 fi
0feee163 20263fi
b089607b 20264
0feee163
VZ
20265if test "$wxUSE_SOCKETS" = "yes"; then
20266 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20267 echo $ac_n "checking for socket""... $ac_c" 1>&6
521196a2 20268echo "configure:20269: checking for socket" >&5
a0b9e27f
MB
20269if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20270 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20271else
a0b9e27f 20272 cat > conftest.$ac_ext <<EOF
521196a2 20273#line 20274 "configure"
c63c7106
VZ
20274#include "confdefs.h"
20275/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20276 which can conflict with char socket(); below. */
c63c7106
VZ
20277#include <assert.h>
20278/* Override any gcc2 internal prototype to avoid an error. */
20279/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20280 builtin and then its argument prototype would still apply. */
20281char socket();
20282
20283int main() {
20284
c63c7106
VZ
20285/* The GNU C library defines this for functions which it implements
20286 to always fail with ENOSYS. Some functions are actually named
20287 something starting with __ and the normal name is an alias. */
20288#if defined (__stub_socket) || defined (__stub___socket)
20289choke me
20290#else
a0b9e27f 20291socket();
c63c7106
VZ
20292#endif
20293
a0b9e27f
MB
20294; return 0; }
20295EOF
521196a2 20296if { (eval echo configure:20297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20297 rm -rf conftest*
20298 eval "ac_cv_func_socket=yes"
20299else
20300 echo "configure: failed program was:" >&5
20301 cat conftest.$ac_ext >&5
20302 rm -rf conftest*
20303 eval "ac_cv_func_socket=no"
20304fi
20305rm -f conftest*
20306fi
20307
20308if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20309 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20310 :
20311else
a0b9e27f
MB
20312 echo "$ac_t""no" 1>&6
20313echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
521196a2 20314echo "configure:20315: checking for socket in -lsocket" >&5
a0b9e27f
MB
20315ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20318else
a0b9e27f 20319 ac_save_LIBS="$LIBS"
c63c7106 20320LIBS="-lsocket $LIBS"
a0b9e27f 20321cat > conftest.$ac_ext <<EOF
521196a2 20322#line 20323 "configure"
c63c7106
VZ
20323#include "confdefs.h"
20324/* Override any gcc2 internal prototype to avoid an error. */
20325/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20326 builtin and then its argument prototype would still apply. */
20327char socket();
20328
20329int main() {
20330socket()
20331; return 0; }
20332EOF
521196a2 20333if { (eval echo configure:20334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20334 rm -rf conftest*
20335 eval "ac_cv_lib_$ac_lib_var=yes"
20336else
20337 echo "configure: failed program was:" >&5
20338 cat conftest.$ac_ext >&5
20339 rm -rf conftest*
20340 eval "ac_cv_lib_$ac_lib_var=no"
20341fi
20342rm -f conftest*
20343LIBS="$ac_save_LIBS"
20344
20345fi
20346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20347 echo "$ac_t""yes" 1>&6
d558c907
VS
20348 if test "$INET_LINK" != " -lsocket"; then
20349 INET_LINK="$INET_LINK -lsocket"
20350 fi
c63c7106 20351else
a0b9e27f 20352 echo "$ac_t""no" 1>&6
afc31813 20353
a0b9e27f 20354 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20355 wxUSE_SOCKETS=no
a0b9e27f
MB
20356
20357
6232543b 20358fi
b089607b 20359
a0b9e27f 20360
1e487827 20361fi
afc31813 20362
3a922bb4 20363 fi
0feee163 20364fi
51a9faba 20365
0feee163
VZ
20366if test "$wxUSE_SOCKETS" = "yes" ; then
20367 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20368 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
521196a2 20369echo "configure:20370: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20370if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20371 echo $ac_n "(cached) $ac_c" 1>&6
20372else
20373
20374
20375 ac_ext=C
20376# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20377ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20378ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20379ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20380cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20381
8284b0c5 20382
a0b9e27f 20383 cat > conftest.$ac_ext <<EOF
521196a2 20384#line 20385 "configure"
afc31813 20385#include "confdefs.h"
51a9faba 20386
3a922bb4
RL
20387 #include <sys/types.h>
20388 #include <sys/socket.h>
a0b9e27f
MB
20389
20390int main() {
51a9faba 20391
3a922bb4
RL
20392 socklen_t len;
20393 getsockname(0, 0, &len);
a0b9e27f
MB
20394
20395; return 0; }
20396EOF
521196a2 20397if { (eval echo configure:20398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20398 rm -rf conftest*
51a9faba 20399 wx_cv_type_getsockname3=socklen_t
afc31813 20400else
a0b9e27f
MB
20401 echo "configure: failed program was:" >&5
20402 cat conftest.$ac_ext >&5
20403 rm -rf conftest*
20404 cat > conftest.$ac_ext <<EOF
521196a2 20405#line 20406 "configure"
afc31813 20406#include "confdefs.h"
51a9faba 20407
3a922bb4
RL
20408 #include <sys/types.h>
20409 #include <sys/socket.h>
a0b9e27f
MB
20410
20411int main() {
51a9faba 20412
3a922bb4
RL
20413 size_t len;
20414 getsockname(0, 0, &len);
a0b9e27f
MB
20415
20416; return 0; }
20417EOF
521196a2 20418if { (eval echo configure:20419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20419 rm -rf conftest*
51a9faba 20420 wx_cv_type_getsockname3=size_t
afc31813 20421else
a0b9e27f
MB
20422 echo "configure: failed program was:" >&5
20423 cat conftest.$ac_ext >&5
20424 rm -rf conftest*
20425 cat > conftest.$ac_ext <<EOF
521196a2 20426#line 20427 "configure"
afc31813 20427#include "confdefs.h"
51a9faba 20428
3a922bb4
RL
20429 #include <sys/types.h>
20430 #include <sys/socket.h>
a0b9e27f
MB
20431
20432int main() {
51a9faba 20433
3a922bb4
RL
20434 int len;
20435 getsockname(0, 0, &len);
a0b9e27f
MB
20436
20437; return 0; }
20438EOF
521196a2 20439if { (eval echo configure:20440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20440 rm -rf conftest*
51a9faba 20441 wx_cv_type_getsockname3=int
afc31813 20442else
a0b9e27f
MB
20443 echo "configure: failed program was:" >&5
20444 cat conftest.$ac_ext >&5
20445 rm -rf conftest*
20446 wx_cv_type_getsockname3=unknown
20447
afc31813 20448fi
a0b9e27f
MB
20449rm -f conftest*
20450
afc31813 20451fi
a0b9e27f
MB
20452rm -f conftest*
20453
afc31813 20454fi
a0b9e27f 20455rm -f conftest*
51a9faba 20456
3a922bb4 20457 ac_ext=c
a0b9e27f 20458# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20459ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20460ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20461ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20462cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20463
a0b9e27f 20464
247f5006 20465fi
a0b9e27f
MB
20466
20467echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20468
3a922bb4
RL
20469 if test "$wx_cv_type_getsockname3" = "unknown"; then
20470 wxUSE_SOCKETS=no
a0b9e27f 20471 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20472 else
a0b9e27f 20473 cat >> confdefs.h <<EOF
51a9faba 20474#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20475EOF
51a9faba 20476
3a922bb4 20477 fi
51a9faba
VZ
20478 fi
20479fi
afc31813 20480
51a9faba 20481if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20482 cat >> confdefs.h <<\EOF
afc31813 20483#define wxUSE_SOCKETS 1
a0b9e27f 20484EOF
afc31813 20485
70f7a477 20486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20487fi
20488
8284b0c5 20489
dc3d889d
VZ
20490if test "$wxUSE_GUI" = "yes"; then
20491
156b2523 20492 if test "$TOOLKIT" = "MAC"; then
a0b9e27f 20493 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20494 wxUSE_JOYSTICK=no
20495 fi
20496 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20497 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20498 wxUSE_JOYSTICK=no
f79bd02d
JS
20499 fi
20500 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20501 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20502 wxUSE_JOYSTICK=no
156b2523
GD
20503 fi
20504
3a922bb4
RL
20505 if test "$TOOLKIT" != "MSW"; then
20506 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20507 for ac_hdr in linux/joystick.h
10f2d63a 20508do
a0b9e27f
MB
20509ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20510echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 20511echo "configure:20512: checking for $ac_hdr" >&5
a0b9e27f
MB
20512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20513 echo $ac_n "(cached) $ac_c" 1>&6
20514else
20515 cat > conftest.$ac_ext <<EOF
521196a2 20516#line 20517 "configure"
247f5006 20517#include "confdefs.h"
a0b9e27f
MB
20518#include <$ac_hdr>
20519EOF
20520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 20521{ (eval echo configure:20522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20523if test -z "$ac_err"; then
20524 rm -rf conftest*
20525 eval "ac_cv_header_$ac_safe=yes"
20526else
20527 echo "$ac_err" >&5
20528 echo "configure: failed program was:" >&5
247f5006 20529 cat conftest.$ac_ext >&5
a0b9e27f
MB
20530 rm -rf conftest*
20531 eval "ac_cv_header_$ac_safe=no"
247f5006 20532fi
a0b9e27f 20533rm -f conftest*
10f2d63a 20534fi
a0b9e27f
MB
20535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20536 echo "$ac_t""yes" 1>&6
20537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20538 cat >> confdefs.h <<EOF
20539#define $ac_tr_hdr 1
20540EOF
20541
20542else
20543 echo "$ac_t""no" 1>&6
247f5006 20544fi
10f2d63a
VZ
20545done
20546
3a922bb4
RL
20547 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20548 wxUSE_JOYSTICK=no
a0b9e27f 20549 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20550 fi
20551 fi
20552 fi
b089607b 20553
3a922bb4 20554 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20555 cat >> confdefs.h <<\EOF
10f2d63a 20556#define wxUSE_JOYSTICK 1
a0b9e27f 20557EOF
10f2d63a 20558
3a922bb4
RL
20559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20560 fi
dc3d889d
VZ
20561fi
20562
8284b0c5 20563
b089607b
VZ
20564if test "$TOOLKIT" != "MSW"; then
20565
3a922bb4
RL
20566 HAVE_DL_FUNCS=0
20567 HAVE_SHL_FUNCS=0
0b9ab0bd 20568 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20569 if test "$USE_DARWIN" = 1; then
20570 HAVE_DL_FUNCS=1
20571 else
a0b9e27f 20572 for ac_func in dlopen
10f2d63a 20573do
a0b9e27f 20574echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 20575echo "configure:20576: checking for $ac_func" >&5
a0b9e27f
MB
20576if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20577 echo $ac_n "(cached) $ac_c" 1>&6
20578else
20579 cat > conftest.$ac_ext <<EOF
521196a2 20580#line 20581 "configure"
10f2d63a
VZ
20581#include "confdefs.h"
20582/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20583 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20584#include <assert.h>
20585/* Override any gcc2 internal prototype to avoid an error. */
20586/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20587 builtin and then its argument prototype would still apply. */
20588char $ac_func();
20589
20590int main() {
20591
10f2d63a
VZ
20592/* The GNU C library defines this for functions which it implements
20593 to always fail with ENOSYS. Some functions are actually named
20594 something starting with __ and the normal name is an alias. */
20595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20596choke me
20597#else
a0b9e27f 20598$ac_func();
10f2d63a
VZ
20599#endif
20600
a0b9e27f
MB
20601; return 0; }
20602EOF
521196a2 20603if { (eval echo configure:20604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20604 rm -rf conftest*
20605 eval "ac_cv_func_$ac_func=yes"
20606else
20607 echo "configure: failed program was:" >&5
20608 cat conftest.$ac_ext >&5
20609 rm -rf conftest*
20610 eval "ac_cv_func_$ac_func=no"
20611fi
20612rm -f conftest*
20613fi
20614
20615if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20616 echo "$ac_t""yes" 1>&6
20617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20618 cat >> confdefs.h <<EOF
20619#define $ac_tr_func 1
20620EOF
20621
20622 cat >> confdefs.h <<\EOF
10f2d63a 20623#define HAVE_DLOPEN 1
a0b9e27f 20624EOF
10f2d63a 20625
3a922bb4 20626 HAVE_DL_FUNCS=1
a0b9e27f 20627
10f2d63a 20628else
a0b9e27f
MB
20629 echo "$ac_t""no" 1>&6
20630echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
521196a2 20631echo "configure:20632: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20632ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20633if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20634 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20635else
a0b9e27f 20636 ac_save_LIBS="$LIBS"
10f2d63a 20637LIBS="-ldl $LIBS"
a0b9e27f 20638cat > conftest.$ac_ext <<EOF
521196a2 20639#line 20640 "configure"
10f2d63a
VZ
20640#include "confdefs.h"
20641/* Override any gcc2 internal prototype to avoid an error. */
20642/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20643 builtin and then its argument prototype would still apply. */
20644char dlopen();
20645
20646int main() {
20647dlopen()
20648; return 0; }
20649EOF
521196a2 20650if { (eval echo configure:20651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20651 rm -rf conftest*
20652 eval "ac_cv_lib_$ac_lib_var=yes"
20653else
20654 echo "configure: failed program was:" >&5
20655 cat conftest.$ac_ext >&5
20656 rm -rf conftest*
20657 eval "ac_cv_lib_$ac_lib_var=no"
20658fi
20659rm -f conftest*
20660LIBS="$ac_save_LIBS"
20661
20662fi
20663if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20664 echo "$ac_t""yes" 1>&6
20665
20666 cat >> confdefs.h <<\EOF
10f2d63a 20667#define HAVE_DLOPEN 1
a0b9e27f 20668EOF
10f2d63a 20669
3a922bb4 20670 HAVE_DL_FUNCS=1
3d63bc3a 20671 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20672
10f2d63a 20673else
a0b9e27f 20674 echo "$ac_t""no" 1>&6
10f2d63a 20675
a0b9e27f 20676 for ac_func in shl_load
10f2d63a 20677do
a0b9e27f 20678echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 20679echo "configure:20680: checking for $ac_func" >&5
a0b9e27f
MB
20680if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20681 echo $ac_n "(cached) $ac_c" 1>&6
20682else
20683 cat > conftest.$ac_ext <<EOF
521196a2 20684#line 20685 "configure"
10f2d63a
VZ
20685#include "confdefs.h"
20686/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20687 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20688#include <assert.h>
20689/* Override any gcc2 internal prototype to avoid an error. */
20690/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20691 builtin and then its argument prototype would still apply. */
20692char $ac_func();
20693
20694int main() {
20695
10f2d63a
VZ
20696/* The GNU C library defines this for functions which it implements
20697 to always fail with ENOSYS. Some functions are actually named
20698 something starting with __ and the normal name is an alias. */
20699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20700choke me
20701#else
a0b9e27f 20702$ac_func();
10f2d63a
VZ
20703#endif
20704
a0b9e27f
MB
20705; return 0; }
20706EOF
521196a2 20707if { (eval echo configure:20708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20708 rm -rf conftest*
20709 eval "ac_cv_func_$ac_func=yes"
20710else
20711 echo "configure: failed program was:" >&5
20712 cat conftest.$ac_ext >&5
20713 rm -rf conftest*
20714 eval "ac_cv_func_$ac_func=no"
20715fi
20716rm -f conftest*
20717fi
20718
20719if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20720 echo "$ac_t""yes" 1>&6
20721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20722 cat >> confdefs.h <<EOF
20723#define $ac_tr_func 1
20724EOF
20725
20726 cat >> confdefs.h <<\EOF
10f2d63a 20727#define HAVE_SHL_LOAD 1
a0b9e27f 20728EOF
10f2d63a 20729
3a922bb4 20730 HAVE_SHL_FUNCS=1
a0b9e27f 20731
10f2d63a 20732else
a0b9e27f
MB
20733 echo "$ac_t""no" 1>&6
20734echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
521196a2 20735echo "configure:20736: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20736ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20737if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20738 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20739else
a0b9e27f 20740 ac_save_LIBS="$LIBS"
f6bcfd97 20741LIBS="-lshl_load $LIBS"
a0b9e27f 20742cat > conftest.$ac_ext <<EOF
521196a2 20743#line 20744 "configure"
f6bcfd97 20744#include "confdefs.h"
8284b0c5 20745/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20746/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20747 builtin and then its argument prototype would still apply. */
20748char dld();
20749
20750int main() {
20751dld()
20752; return 0; }
20753EOF
521196a2 20754if { (eval echo configure:20755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20755 rm -rf conftest*
20756 eval "ac_cv_lib_$ac_lib_var=yes"
20757else
20758 echo "configure: failed program was:" >&5
20759 cat conftest.$ac_ext >&5
20760 rm -rf conftest*
20761 eval "ac_cv_lib_$ac_lib_var=no"
20762fi
20763rm -f conftest*
20764LIBS="$ac_save_LIBS"
f6bcfd97 20765
a0b9e27f
MB
20766fi
20767if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20768 echo "$ac_t""yes" 1>&6
20769
3a922bb4 20770 HAVE_SHL_FUNCS=1
3d63bc3a 20771 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20772
20773else
20774 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20775fi
20776
a0b9e27f 20777
10f2d63a
VZ
20778fi
20779done
20780
a0b9e27f 20781
10f2d63a
VZ
20782fi
20783
a0b9e27f 20784
10f2d63a
VZ
20785fi
20786done
20787
5c6fa7d2 20788
8284b0c5 20789 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20790 for ac_func in dlerror
f6bcfd97 20791do
a0b9e27f 20792echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 20793echo "configure:20794: checking for $ac_func" >&5
a0b9e27f
MB
20794if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20795 echo $ac_n "(cached) $ac_c" 1>&6
20796else
20797 cat > conftest.$ac_ext <<EOF
521196a2 20798#line 20799 "configure"
f6bcfd97
BP
20799#include "confdefs.h"
20800/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20801 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20802#include <assert.h>
20803/* Override any gcc2 internal prototype to avoid an error. */
20804/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20805 builtin and then its argument prototype would still apply. */
20806char $ac_func();
20807
20808int main() {
20809
f6bcfd97
BP
20810/* The GNU C library defines this for functions which it implements
20811 to always fail with ENOSYS. Some functions are actually named
20812 something starting with __ and the normal name is an alias. */
20813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20814choke me
20815#else
a0b9e27f 20816$ac_func();
f6bcfd97
BP
20817#endif
20818
a0b9e27f
MB
20819; return 0; }
20820EOF
521196a2 20821if { (eval echo configure:20822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20822 rm -rf conftest*
20823 eval "ac_cv_func_$ac_func=yes"
20824else
20825 echo "configure: failed program was:" >&5
20826 cat conftest.$ac_ext >&5
20827 rm -rf conftest*
20828 eval "ac_cv_func_$ac_func=no"
20829fi
20830rm -f conftest*
20831fi
20832
20833if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20834 echo "$ac_t""yes" 1>&6
20835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20836 cat >> confdefs.h <<EOF
20837#define $ac_tr_func 1
20838EOF
20839 cat >> confdefs.h <<\EOF
f6bcfd97 20840#define HAVE_DLERROR 1
a0b9e27f 20841EOF
f6bcfd97
BP
20842
20843else
a0b9e27f
MB
20844 echo "$ac_t""no" 1>&6
20845echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
521196a2 20846echo "configure:20847: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20847ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20849 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20850else
a0b9e27f 20851 ac_save_LIBS="$LIBS"
f6bcfd97 20852LIBS="-ldl $LIBS"
a0b9e27f 20853cat > conftest.$ac_ext <<EOF
521196a2 20854#line 20855 "configure"
f6bcfd97
BP
20855#include "confdefs.h"
20856/* Override any gcc2 internal prototype to avoid an error. */
20857/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20858 builtin and then its argument prototype would still apply. */
20859char dlerror();
20860
20861int main() {
20862dlerror()
20863; return 0; }
20864EOF
521196a2 20865if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20866 rm -rf conftest*
20867 eval "ac_cv_lib_$ac_lib_var=yes"
20868else
20869 echo "configure: failed program was:" >&5
20870 cat conftest.$ac_ext >&5
20871 rm -rf conftest*
20872 eval "ac_cv_lib_$ac_lib_var=no"
20873fi
20874rm -f conftest*
20875LIBS="$ac_save_LIBS"
20876
20877fi
20878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20879 echo "$ac_t""yes" 1>&6
20880 cat >> confdefs.h <<\EOF
f6bcfd97 20881#define HAVE_DLERROR 1
a0b9e27f 20882EOF
f6bcfd97 20883
a0b9e27f
MB
20884else
20885 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20886fi
20887
20888fi
20889done
20890
3a922bb4
RL
20891 fi
20892 fi
f6bcfd97 20893
3a922bb4
RL
20894 if test "$HAVE_DL_FUNCS" = 0; then
20895 if test "$HAVE_SHL_FUNCS" = 0; then
20896 if test "$USE_UNIX" = 1; then
a0b9e27f 20897 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20898 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20899 wxUSE_DYNLIB_CLASS=no
20900 else
a0b9e27f 20901 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20902 fi
20903 fi
10f2d63a
VZ
20904 fi
20905 fi
20906fi
20907
0b9ab0bd 20908if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20909 cat >> confdefs.h <<\EOF
0b9ab0bd 20910#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20911EOF
0b9ab0bd
RL
20912
20913elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20914 cat >> confdefs.h <<\EOF
10f2d63a 20915#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20916EOF
10f2d63a
VZ
20917
20918fi
20919
8284b0c5 20920
1e6feb95 20921if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20922 cat >> confdefs.h <<\EOF
1e6feb95 20923#define wxUSE_FONTMAP 1
a0b9e27f 20924EOF
1e6feb95
VZ
20925
20926fi
20927
10f2d63a 20928if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20929 cat >> confdefs.h <<\EOF
10f2d63a 20930#define wxUSE_UNICODE 1
a0b9e27f 20931EOF
10f2d63a 20932
8284b0c5 20933
bbc3925a
VS
20934 if test "$wxUSE_MSW" != 1; then
20935 wxUSE_UNICODE_MSLU=no
20936 fi
a72a4bfa
VS
20937
20938 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20939 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
521196a2 20940echo "configure:20941: checking for main in -lunicows" >&5
a0b9e27f
MB
20941ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20943 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20944else
a0b9e27f 20945 ac_save_LIBS="$LIBS"
a72a4bfa 20946LIBS="-lunicows $LIBS"
a0b9e27f 20947cat > conftest.$ac_ext <<EOF
521196a2 20948#line 20949 "configure"
a72a4bfa
VS
20949#include "confdefs.h"
20950
a0b9e27f
MB
20951int main() {
20952main()
20953; return 0; }
20954EOF
521196a2 20955if { (eval echo configure:20956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20956 rm -rf conftest*
20957 eval "ac_cv_lib_$ac_lib_var=yes"
20958else
20959 echo "configure: failed program was:" >&5
20960 cat conftest.$ac_ext >&5
20961 rm -rf conftest*
20962 eval "ac_cv_lib_$ac_lib_var=no"
20963fi
20964rm -f conftest*
20965LIBS="$ac_save_LIBS"
8284b0c5 20966
a0b9e27f
MB
20967fi
20968if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20969 echo "$ac_t""yes" 1>&6
20970
20971 cat >> confdefs.h <<\EOF
a72a4bfa 20972#define wxUSE_UNICODE_MSLU 1
a0b9e27f 20973EOF
a72a4bfa 20974
a0b9e27f 20975
a72a4bfa 20976else
a0b9e27f 20977 echo "$ac_t""no" 1>&6
a72a4bfa 20978
a0b9e27f
MB
20979 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20980 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 20981 wxUSE_UNICODE_MSLU=no
a0b9e27f 20982
a72a4bfa
VS
20983fi
20984
20985 fi
10f2d63a
VZ
20986fi
20987
10f2d63a 20988if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 20989 cat >> confdefs.h <<\EOF
10f2d63a 20990#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 20991EOF
10f2d63a
VZ
20992
20993fi
20994
8284b0c5
MB
20995
20996
10f2d63a
VZ
20997IODBC_C_SRC=""
20998if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 20999 cat >> confdefs.h <<\EOF
10f2d63a 21000#define wxUSE_ODBC 1
a0b9e27f 21001EOF
10f2d63a
VZ
21002
21003 WXODBCFLAG="-D_IODBC_"
21004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
21005fi
21006
8284b0c5 21007
10f2d63a 21008if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 21009 cat >> confdefs.h <<\EOF
10f2d63a 21010#define wxUSE_POSTSCRIPT 1
a0b9e27f 21011EOF
10f2d63a
VZ
21012
21013fi
21014
a0b9e27f 21015cat >> confdefs.h <<\EOF
10f2d63a 21016#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 21017EOF
10f2d63a 21018
8284b0c5 21019
a0b9e27f 21020cat >> confdefs.h <<\EOF
10f2d63a 21021#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 21022EOF
10f2d63a 21023
8284b0c5
MB
21024
21025
10f2d63a 21026if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 21027 cat >> confdefs.h <<\EOF
10f2d63a 21028#define wxUSE_CONSTRAINTS 1
a0b9e27f 21029EOF
10f2d63a
VZ
21030
21031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21032fi
21033
21034if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 21035
8284b0c5 21036
bb811f17 21037 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 21038 cat >> confdefs.h <<\EOF
10f2d63a 21039#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 21040EOF
10f2d63a 21041
bb811f17
JS
21042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21043 fi
10f2d63a
VZ
21044fi
21045
21046if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 21047 cat >> confdefs.h <<\EOF
10f2d63a 21048#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 21049EOF
10f2d63a
VZ
21050
21051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21052 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21054 fi
21055fi
21056
21057if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21058 cat >> confdefs.h <<\EOF
10f2d63a 21059#define wxUSE_HELP 1
a0b9e27f 21060EOF
10f2d63a
VZ
21061
21062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21063
77e13408 21064 if test "$wxUSE_MSW" = 1; then
031d8228 21065 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21066 cat >> confdefs.h <<\EOF
29fd3c0c 21067#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21068EOF
29fd3c0c 21069
3e44f09d 21070 fi
3379ed37 21071 fi
031d8228
VS
21072
21073 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21074 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21075 cat >> confdefs.h <<\EOF
031d8228 21076#define wxUSE_WXHTML_HELP 1
a0b9e27f 21077EOF
031d8228
VS
21078
21079 else
a0b9e27f 21080 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21081 wxUSE_WXHTML_HELP=no
21082 fi
21083 fi
10f2d63a
VZ
21084fi
21085
21086if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21087 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21088 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21089 else
a0b9e27f 21090 cat >> confdefs.h <<\EOF
10f2d63a 21091#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21092EOF
10f2d63a
VZ
21093
21094 fi
21095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21096fi
21097
21098if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 21099 cat >> confdefs.h <<\EOF
10f2d63a 21100#define wxUSE_PROLOGIO 1
a0b9e27f 21101EOF
10f2d63a 21102
2b5f62a0 21103 ALL_OBJECTS="$ALL_OBJECTS parser.o"
10f2d63a
VZ
21104fi
21105
21106if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 21107 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 21108 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
2b5f62a0
VZ
21109 else
21110 cat >> confdefs.h <<\EOF
10f2d63a 21111#define wxUSE_RESOURCES 1
a0b9e27f 21112EOF
10f2d63a 21113
2b5f62a0
VZ
21114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
21115 fi
21116 if test "$wxUSE_PROLOGIO" != "yes" ; then
21117 ALL_OBJECTS="$ALL_OBJECTS parser.o"
e334d0ea 21118 fi
10f2d63a
VZ
21119fi
21120
21121if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 21122 cat >> confdefs.h <<\EOF
10f2d63a 21123#define wxUSE_X_RESOURCES 1
a0b9e27f 21124EOF
10f2d63a
VZ
21125
21126fi
21127
8284b0c5 21128
77e13408
RL
21129if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21130 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21131 -o "$wxUSE_OLE" = "yes" \
77e13408 21132 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21133 for ac_hdr in ole2.h
10f2d63a 21134do
a0b9e27f
MB
21135ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21136echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
521196a2 21137echo "configure:21138: checking for $ac_hdr" >&5
a0b9e27f
MB
21138if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21139 echo $ac_n "(cached) $ac_c" 1>&6
21140else
21141 cat > conftest.$ac_ext <<EOF
521196a2 21142#line 21143 "configure"
10f2d63a 21143#include "confdefs.h"
a0b9e27f
MB
21144#include <$ac_hdr>
21145EOF
21146ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521196a2 21147{ (eval echo configure:21148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21148ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21149if test -z "$ac_err"; then
21150 rm -rf conftest*
21151 eval "ac_cv_header_$ac_safe=yes"
21152else
21153 echo "$ac_err" >&5
21154 echo "configure: failed program was:" >&5
10f2d63a 21155 cat conftest.$ac_ext >&5
a0b9e27f
MB
21156 rm -rf conftest*
21157 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21158fi
a0b9e27f 21159rm -f conftest*
10f2d63a 21160fi
a0b9e27f
MB
21161if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21162 echo "$ac_t""yes" 1>&6
21163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21164 cat >> confdefs.h <<EOF
21165#define $ac_tr_hdr 1
21166EOF
21167
21168else
21169 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21170fi
21171done
21172
8284b0c5 21173
2b9bdf71
VZ
21174 if test "$ac_cv_header_ole2_h" = "yes" ; then
21175 if test "$GCC" = yes ; then
a0b9e27f
MB
21176
21177 ac_ext=C
21178# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21179ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21180ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21181ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21182cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21183
21184
a0b9e27f 21185 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
521196a2 21186echo "configure:21187: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21187 cat > conftest.$ac_ext <<EOF
521196a2 21188#line 21189 "configure"
8284b0c5
MB
21189#include "confdefs.h"
21190#include <windows.h>
21191 #include <ole2.h>
a0b9e27f 21192int main() {
8284b0c5 21193
a0b9e27f
MB
21194; return 0; }
21195EOF
521196a2 21196if { (eval echo configure:21197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21197 rm -rf conftest*
21198 echo "$ac_t""no" 1>&6
21199else
21200 echo "configure: failed program was:" >&5
21201 cat conftest.$ac_ext >&5
21202 rm -rf conftest*
21203 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21204 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21205fi
a0b9e27f 21206rm -f conftest*
8284b0c5 21207 ac_ext=c
a0b9e27f 21208# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21209ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21210ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21211ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21212cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21213
2b9bdf71 21214 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21215 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21216 cat >> confdefs.h <<\EOF
4f11a343 21217#define wxUSE_OLE 1
a0b9e27f 21218EOF
4f11a343 21219
8284b0c5 21220
2b9bdf71
VZ
21221 fi
21222
a0b9e27f 21223 cat >> confdefs.h <<\EOF
2b9bdf71 21224#define wxUSE_DATAOBJ 1
a0b9e27f 21225EOF
2b9bdf71
VZ
21226
21227 else
a0b9e27f 21228 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21229
21230 wxUSE_CLIPBOARD=no
21231 wxUSE_DRAG_AND_DROP=no
21232 wxUSE_DATAOBJ=no
3bce6687
JS
21233 wxUSE_OLE=no
21234 fi
21235
21236 if test "$wxUSE_METAFILE" = "yes"; then
21237 cat >> confdefs.h <<\EOF
21238#define wxUSE_METAFILE 1
21239EOF
21240
21241
21242 cat >> confdefs.h <<\EOF
21243#define wxUSE_ENH_METAFILE 1
21244EOF
21245
21246 fi
21247fi
21248
2b9bdf71
VZ
21249if test "$wxUSE_IPC" = "yes"; then
21250 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21251 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21252 fi
21253
a0b9e27f 21254 cat >> confdefs.h <<\EOF
2b9bdf71 21255#define wxUSE_IPC 1
a0b9e27f 21256EOF
2b9bdf71
VZ
21257
21258fi
21259
21260if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21261 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21262 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21263 wxUSE_CLIPBOARD=no
21264 fi
21265
21266 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21267 cat >> confdefs.h <<\EOF
2b9bdf71 21268#define wxUSE_CLIPBOARD 1
a0b9e27f 21269EOF
2b9bdf71 21270
8284b0c5 21271
a0b9e27f 21272 cat >> confdefs.h <<\EOF
673f4220 21273#define wxUSE_DATAOBJ 1
a0b9e27f 21274EOF
673f4220 21275
6c657b52 21276 fi
2b9bdf71
VZ
21277fi
21278
21279if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21280 if test "$wxUSE_GTK" = 1; then
21281 if test "$WXGTK12" != 1; then
a0b9e27f 21282 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21283 wxUSE_DRAG_AND_DROP=no
21284 fi
21285 fi
21286
2b9bdf71 21287 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21288 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21289 wxUSE_DRAG_AND_DROP=no
21290 fi
21291
f79bd02d 21292 if test "$wxUSE_X11" = 1; then
a0b9e27f 21293 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21294 wxUSE_DRAG_AND_DROP=no
21295 fi
21296
6c657b52 21297 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21298 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21299 wxUSE_DRAG_AND_DROP=no
21300 fi
21301
10f2d63a 21302 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21303 cat >> confdefs.h <<\EOF
10f2d63a 21304#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21305EOF
10f2d63a
VZ
21306
21307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21308 fi
21309
21310fi
21311
21312if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21313 cat >> confdefs.h <<\EOF
10f2d63a 21314#define wxUSE_SPLINES 1
a0b9e27f 21315EOF
10f2d63a
VZ
21316
21317fi
21318
8284b0c5 21319
1e6feb95
VZ
21320USES_CONTROLS=0
21321if test "$wxUSE_CONTROLS" = "yes"; then
21322 USES_CONTROLS=1
21323fi
21324
10f2d63a 21325if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21326 cat >> confdefs.h <<\EOF
10f2d63a 21327#define wxUSE_ACCEL 1
a0b9e27f 21328EOF
10f2d63a 21329
1e6feb95
VZ
21330 USES_CONTROLS=1
21331fi
21332
21333if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21334 cat >> confdefs.h <<\EOF
1e6feb95 21335#define wxUSE_BUTTON 1
a0b9e27f 21336EOF
1e6feb95
VZ
21337
21338 USES_CONTROLS=1
21339fi
21340
21341if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21342 cat >> confdefs.h <<\EOF
1e6feb95 21343#define wxUSE_BMPBUTTON 1
a0b9e27f 21344EOF
1e6feb95
VZ
21345
21346 USES_CONTROLS=1
21347fi
21348
21349if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21350 cat >> confdefs.h <<\EOF
1e6feb95 21351#define wxUSE_CALENDARCTRL 1
a0b9e27f 21352EOF
1e6feb95
VZ
21353
21354 USES_CONTROLS=1
21355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21356fi
21357
21358if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21359 cat >> confdefs.h <<\EOF
10f2d63a 21360#define wxUSE_CARET 1
a0b9e27f 21361EOF
10f2d63a 21362
1e6feb95 21363 USES_CONTROLS=1
10f2d63a
VZ
21364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21365fi
21366
21367if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21368 cat >> confdefs.h <<\EOF
10f2d63a 21369#define wxUSE_COMBOBOX 1
a0b9e27f 21370EOF
10f2d63a 21371
1e6feb95 21372 USES_CONTROLS=1
10f2d63a
VZ
21373fi
21374
21375if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21376 cat >> confdefs.h <<\EOF
10f2d63a 21377#define wxUSE_CHOICE 1
a0b9e27f 21378EOF
10f2d63a 21379
1e6feb95 21380 USES_CONTROLS=1
10f2d63a
VZ
21381fi
21382
21383if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21384 cat >> confdefs.h <<\EOF
10f2d63a 21385#define wxUSE_CHECKBOX 1
a0b9e27f 21386EOF
10f2d63a 21387
1e6feb95 21388 USES_CONTROLS=1
10f2d63a
VZ
21389fi
21390
21391if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21392 cat >> confdefs.h <<\EOF
10f2d63a 21393#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21394EOF
10f2d63a 21395
1e6feb95 21396 USES_CONTROLS=1
10f2d63a
VZ
21397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21398fi
21399
da494b40
MB
21400if test "$wxUSE_DISPLAY" = "yes"; then
21401 cat >> confdefs.h <<\EOF
21402#define wxUSE_DISPLAY 1
21403EOF
21404
21405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21406fi
21407
10f2d63a 21408if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21409 cat >> confdefs.h <<\EOF
10f2d63a 21410#define wxUSE_GAUGE 1
a0b9e27f 21411EOF
10f2d63a 21412
1e6feb95 21413 USES_CONTROLS=1
10f2d63a
VZ
21414fi
21415
d6a55c4b
VZ
21416if test "$wxUSE_NEW_GRID" = "yes"; then
21417 wxUSE_GRID="yes"
a0b9e27f 21418 cat >> confdefs.h <<\EOF
d6a55c4b 21419#define wxUSE_NEW_GRID 1
a0b9e27f 21420EOF
10f2d63a 21421
1e6feb95 21422 USES_CONTROLS=1
d6a55c4b 21423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
21424fi
21425
d6a55c4b 21426if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21427 cat >> confdefs.h <<\EOF
d6a55c4b 21428#define wxUSE_GRID 1
a0b9e27f 21429EOF
10f2d63a 21430
1e6feb95 21431 USES_CONTROLS=1
d6a55c4b 21432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21433fi
21434
21435if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21436 cat >> confdefs.h <<\EOF
10f2d63a 21437#define wxUSE_IMAGLIST 1
a0b9e27f 21438EOF
10f2d63a
VZ
21439
21440fi
21441
21442if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21443 cat >> confdefs.h <<\EOF
10f2d63a 21444#define wxUSE_LISTBOX 1
a0b9e27f 21445EOF
10f2d63a 21446
1e6feb95 21447 USES_CONTROLS=1
10f2d63a
VZ
21448fi
21449
21450if test "$wxUSE_LISTCTRL" = "yes"; then
21451 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21452 cat >> confdefs.h <<\EOF
10f2d63a 21453#define wxUSE_LISTCTRL 1
a0b9e27f 21454EOF
10f2d63a 21455
1e6feb95 21456 USES_CONTROLS=1
10f2d63a
VZ
21457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21458 else
a0b9e27f 21459 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21460 fi
21461fi
21462
21463if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21464 cat >> confdefs.h <<\EOF
10f2d63a 21465#define wxUSE_NOTEBOOK 1
a0b9e27f 21466EOF
10f2d63a 21467
1e6feb95 21468 USES_CONTROLS=1
10f2d63a
VZ
21469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21470fi
21471
24176f2c 21472if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 21473 cat >> confdefs.h <<\EOF
24176f2c 21474#define wxUSE_PROPSHEET 1
a0b9e27f 21475EOF
24176f2c
GD
21476
21477 USES_CONTROLS=1
21478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21479fi
21480
10f2d63a 21481if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21482 cat >> confdefs.h <<\EOF
10f2d63a 21483#define wxUSE_RADIOBOX 1
a0b9e27f 21484EOF
10f2d63a 21485
1e6feb95 21486 USES_CONTROLS=1
10f2d63a
VZ
21487fi
21488
21489if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21490 cat >> confdefs.h <<\EOF
10f2d63a 21491#define wxUSE_RADIOBTN 1
a0b9e27f 21492EOF
10f2d63a 21493
1e6feb95 21494 USES_CONTROLS=1
10f2d63a
VZ
21495fi
21496
21497if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21498 cat >> confdefs.h <<\EOF
10f2d63a 21499#define wxUSE_SASH 1
a0b9e27f 21500EOF
10f2d63a
VZ
21501
21502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21503fi
21504
21505if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21506 cat >> confdefs.h <<\EOF
10f2d63a 21507#define wxUSE_SCROLLBAR 1
a0b9e27f 21508EOF
10f2d63a 21509
1e6feb95 21510 USES_CONTROLS=1
741a9306 21511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21512fi
21513
21514if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21515 cat >> confdefs.h <<\EOF
10f2d63a 21516#define wxUSE_SLIDER 1
a0b9e27f 21517EOF
10f2d63a 21518
1e6feb95 21519 USES_CONTROLS=1
10f2d63a
VZ
21520fi
21521
21522if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21523 cat >> confdefs.h <<\EOF
10f2d63a 21524#define wxUSE_SPINBTN 1
a0b9e27f 21525EOF
10f2d63a 21526
1e6feb95 21527 USES_CONTROLS=1
10f2d63a
VZ
21528fi
21529
56cfaa52 21530if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21531 cat >> confdefs.h <<\EOF
56cfaa52 21532#define wxUSE_SPINCTRL 1
a0b9e27f 21533EOF
56cfaa52 21534
1e6feb95 21535 USES_CONTROLS=1
56cfaa52
RR
21536fi
21537
10f2d63a 21538if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21539 cat >> confdefs.h <<\EOF
10f2d63a 21540#define wxUSE_SPLITTER 1
a0b9e27f 21541EOF
10f2d63a
VZ
21542
21543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21544fi
21545
21546if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21547 cat >> confdefs.h <<\EOF
10f2d63a 21548#define wxUSE_STATBMP 1
a0b9e27f 21549EOF
10f2d63a 21550
1e6feb95 21551 USES_CONTROLS=1
10f2d63a
VZ
21552fi
21553
21554if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21555 cat >> confdefs.h <<\EOF
10f2d63a 21556#define wxUSE_STATBOX 1
a0b9e27f 21557EOF
10f2d63a 21558
1e6feb95
VZ
21559 USES_CONTROLS=1
21560fi
21561
21562if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21563 cat >> confdefs.h <<\EOF
1e6feb95 21564#define wxUSE_STATTEXT 1
a0b9e27f 21565EOF
1e6feb95
VZ
21566
21567 USES_CONTROLS=1
10f2d63a
VZ
21568fi
21569
21570if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21571 cat >> confdefs.h <<\EOF
10f2d63a 21572#define wxUSE_STATLINE 1
a0b9e27f 21573EOF
10f2d63a 21574
89e6bf6d 21575 USES_CONTROLS=1
10f2d63a
VZ
21576fi
21577
21578if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21579 cat >> confdefs.h <<\EOF
10f2d63a 21580#define wxUSE_STATUSBAR 1
a0b9e27f 21581EOF
10f2d63a 21582
1e6feb95 21583 USES_CONTROLS=1
698dcdb6 21584
2286341c 21585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21586fi
21587
21588if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21589 cat >> confdefs.h <<\EOF
10f2d63a 21590#define wxUSE_TAB_DIALOG 1
a0b9e27f 21591EOF
10f2d63a
VZ
21592
21593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21594fi
21595
1e6feb95 21596if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21597 cat >> confdefs.h <<\EOF
1e6feb95 21598#define wxUSE_TEXTCTRL 1
a0b9e27f 21599EOF
1e6feb95
VZ
21600
21601 USES_CONTROLS=1
21602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21603fi
21604
1db8dc4a 21605if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 21606 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21607 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21608 wxUSE_TOGGLEBTN=no
21609 fi
21610 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21611 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21612 wxUSE_TOGGLEBTN=no
21613 fi
21614
21615 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21616 cat >> confdefs.h <<\EOF
1db8dc4a 21617#define wxUSE_TOGGLEBTN 1
a0b9e27f 21618EOF
1db8dc4a 21619
1e6feb95 21620 USES_CONTROLS=1
a45d7ab7 21621 fi
1db8dc4a
VZ
21622fi
21623
360d6699 21624if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21625 cat >> confdefs.h <<\EOF
360d6699 21626#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21627EOF
360d6699
VZ
21628
21629 wxUSE_TOOLBAR="yes"
1e6feb95 21630 USES_CONTROLS=1
360d6699
VZ
21631fi
21632
10f2d63a 21633if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21634 cat >> confdefs.h <<\EOF
10f2d63a 21635#define wxUSE_TOOLBAR 1
a0b9e27f 21636EOF
10f2d63a 21637
1e6feb95 21638 USES_CONTROLS=1
698dcdb6 21639
360d6699
VZ
21640 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21641 wxUSE_TOOLBAR_NATIVE="yes"
21642 fi
21643
1e6feb95 21644 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21645 cat >> confdefs.h <<\EOF
360d6699 21646#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21647EOF
360d6699 21648
1e6feb95
VZ
21649 USES_CONTROLS=1
21650 fi
21651
21652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21653fi
21654
10f2d63a
VZ
21655if test "$wxUSE_TOOLTIPS" = "yes"; then
21656 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21657 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21658 else
89e6bf6d
VZ
21659 if test "$wxUSE_UNIVERSAL" = "yes"; then
21660 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21661 else
89e6bf6d 21662 cat >> confdefs.h <<\EOF
10f2d63a 21663#define wxUSE_TOOLTIPS 1
a0b9e27f 21664EOF
10f2d63a
VZ
21665
21666 fi
21667 fi
21668fi
21669
21670if test "$wxUSE_TREECTRL" = "yes"; then
21671 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21672 cat >> confdefs.h <<\EOF
10f2d63a 21673#define wxUSE_TREECTRL 1
a0b9e27f 21674EOF
10f2d63a 21675
1e6feb95 21676 USES_CONTROLS=1
10f2d63a
VZ
21677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21678 else
a0b9e27f 21679 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21680 fi
21681fi
21682
9f41d601 21683if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 21684 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21685 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21686 else
485cf710 21687 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21688 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21689 else
3c011993 21690 if test "$wxUSE_PM" = 1; then
a0b9e27f 21691 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21692 else
a0b9e27f 21693 cat >> confdefs.h <<\EOF
9f41d601 21694#define wxUSE_POPUPWIN 1
a0b9e27f 21695EOF
9f41d601 21696
8284b0c5 21697
3c011993
VZ
21698 USES_CONTROLS=1
21699 fi
485cf710 21700 fi
6abe4b65 21701 fi
9f41d601
RR
21702fi
21703
dd964dcc 21704if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21705 if test "$wxUSE_PM" = 1; then
a0b9e27f 21706 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21707 else
a0b9e27f 21708 cat >> confdefs.h <<\EOF
dd964dcc 21709#define wxUSE_TIPWINDOW 1
a0b9e27f 21710EOF
dd964dcc 21711
3c011993 21712 fi
dd964dcc
VZ
21713fi
21714
1e6feb95 21715if test "$USES_CONTROLS" = 1; then
a0b9e27f 21716 cat >> confdefs.h <<\EOF
1e6feb95 21717#define wxUSE_CONTROLS 1
a0b9e27f 21718EOF
10f2d63a 21719
10f2d63a
VZ
21720fi
21721
8284b0c5 21722
24176f2c 21723if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 21724 cat >> confdefs.h <<\EOF
24176f2c 21725#define wxUSE_TREELAYOUT 1
a0b9e27f 21726EOF
24176f2c
GD
21727
21728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21729fi
1e6feb95 21730
24fd6d87 21731if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21732 cat >> confdefs.h <<\EOF
24fd6d87 21733#define wxUSE_DRAGIMAGE 1
a0b9e27f 21734EOF
24fd6d87
VZ
21735
21736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21737fi
21738
1e6feb95 21739if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21740 cat >> confdefs.h <<\EOF
1e6feb95 21741#define wxUSE_MENUS 1
a0b9e27f 21742EOF
10f2d63a 21743
1e6feb95 21744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21745fi
21746
1e6feb95 21747if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21748 cat >> confdefs.h <<\EOF
1e6feb95 21749#define wxUSE_METAFILE 1
a0b9e27f 21750EOF
10f2d63a 21751
10f2d63a
VZ
21752fi
21753
1e6feb95 21754if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21755 cat >> confdefs.h <<\EOF
1e6feb95 21756#define wxUSE_MIMETYPE 1
a0b9e27f 21757EOF
10f2d63a 21758
10f2d63a
VZ
21759fi
21760
3e44f09d 21761if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21762 cat >> confdefs.h <<\EOF
3e44f09d 21763#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21764EOF
3e44f09d 21765
321d2b14
VZ
21766if test "$TOOLKIT" = "MSW"; then
21767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21768fi
21769
3e44f09d
VZ
21770fi
21771
4cdb0ab0 21772if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21773 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21774 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21775 wxUSE_PROTOCOL=no
21776 fi
21777
21778 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21779 cat >> confdefs.h <<\EOF
4cdb0ab0 21780#define wxUSE_PROTOCOL 1
a0b9e27f 21781EOF
4cdb0ab0 21782
8284b0c5 21783
3954f9ca 21784 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21785 cat >> confdefs.h <<\EOF
4cdb0ab0 21786#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21787EOF
4cdb0ab0 21788
3954f9ca
VS
21789 fi
21790 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21791 cat >> confdefs.h <<\EOF
4cdb0ab0 21792#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21793EOF
4cdb0ab0 21794
3954f9ca
VS
21795 fi
21796 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21797 cat >> confdefs.h <<\EOF
3954f9ca 21798#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21799EOF
3954f9ca
VS
21800
21801 fi
4cdb0ab0 21802 fi
3954f9ca
VS
21803fi
21804
21805if test "$wxUSE_URL" = "yes"; then
21806 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21807 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21808 wxUSE_URL=no
21809 fi
21810 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21811 cat >> confdefs.h <<\EOF
3954f9ca 21812#define wxUSE_URL 1
a0b9e27f 21813EOF
4cdb0ab0
VS
21814
21815 fi
21816fi
21817
10f2d63a 21818if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21819 cat >> confdefs.h <<\EOF
10f2d63a 21820#define wxUSE_MINIFRAME 1
a0b9e27f 21821EOF
10f2d63a
VZ
21822
21823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21824fi
21825
21826if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21827 cat >> confdefs.h <<\EOF
10f2d63a 21828#define wxUSE_HTML 1
a0b9e27f 21829EOF
10f2d63a
VZ
21830
21831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21832fi
21833
21834if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21835 cat >> confdefs.h <<\EOF
1e487827 21836#define wxUSE_VALIDATORS 1
a0b9e27f 21837EOF
703e0a69 21838
698dcdb6
VZ
21839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21840fi
21841
edae8572 21842if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21843 cat >> confdefs.h <<\EOF
edae8572 21844#define wxUSE_PALETTE 1
a0b9e27f 21845EOF
edae8572
VZ
21846
21847fi
21848
698dcdb6 21849if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21850 cat >> confdefs.h <<\EOF
698dcdb6 21851#define wxUSE_IMAGE 1
a0b9e27f 21852EOF
698dcdb6
VZ
21853
21854fi
21855
21856if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21857 cat >> confdefs.h <<\EOF
698dcdb6 21858#define wxUSE_GIF 1
a0b9e27f 21859EOF
698dcdb6
VZ
21860
21861fi
21862
21863if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21864 cat >> confdefs.h <<\EOF
698dcdb6 21865#define wxUSE_PCX 1
a0b9e27f 21866EOF
698dcdb6
VZ
21867
21868fi
21869
4b6b4dfc 21870if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21871 cat >> confdefs.h <<\EOF
4b6b4dfc 21872#define wxUSE_IFF 1
a0b9e27f 21873EOF
4b6b4dfc
RR
21874
21875fi
21876
698dcdb6 21877if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21878 cat >> confdefs.h <<\EOF
698dcdb6 21879#define wxUSE_PNM 1
a0b9e27f 21880EOF
698dcdb6
VZ
21881
21882fi
21883
21884if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21885 cat >> confdefs.h <<\EOF
698dcdb6 21886#define wxUSE_XPM 1
a0b9e27f 21887EOF
698dcdb6
VZ
21888
21889fi
21890
658974ae 21891if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21892 cat >> confdefs.h <<\EOF
658974ae 21893#define wxUSE_ICO_CUR 1
a0b9e27f 21894EOF
658974ae
VS
21895
21896fi
21897
a72a4bfa
VS
21898if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21899 LIBS=" -lunicows $LIBS"
21900fi
21901
8284b0c5 21902
1e6feb95 21903if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21904 cat >> confdefs.h <<\EOF
1e6feb95 21905#define wxUSE_CHOICEDLG 1
a0b9e27f 21906EOF
1e6feb95
VZ
21907
21908fi
21909
21910if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21911 cat >> confdefs.h <<\EOF
1e6feb95 21912#define wxUSE_COLOURDLG 1
a0b9e27f 21913EOF
1e6feb95
VZ
21914
21915fi
21916
21917if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21918 cat >> confdefs.h <<\EOF
1e6feb95 21919#define wxUSE_FILEDLG 1
a0b9e27f 21920EOF
1e6feb95
VZ
21921
21922fi
21923
8db37e06 21924if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21925 cat >> confdefs.h <<\EOF
8db37e06 21926#define wxUSE_FINDREPLDLG 1
a0b9e27f 21927EOF
8db37e06
VZ
21928
21929fi
21930
1e6feb95 21931if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21932 cat >> confdefs.h <<\EOF
1e6feb95 21933#define wxUSE_FONTDLG 1
a0b9e27f 21934EOF
1e6feb95
VZ
21935
21936fi
21937
21938if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21939 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21940 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21941 else
a0b9e27f 21942 cat >> confdefs.h <<\EOF
1e6feb95 21943#define wxUSE_DIRDLG 1
a0b9e27f 21944EOF
1e6feb95 21945
1e6feb95
VZ
21946 fi
21947fi
21948
21949if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21950 cat >> confdefs.h <<\EOF
1e6feb95 21951#define wxUSE_MSGDLG 1
a0b9e27f 21952EOF
1e6feb95
VZ
21953
21954fi
21955
21956if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21957 cat >> confdefs.h <<\EOF
1e6feb95 21958#define wxUSE_NUMBERDLG 1
a0b9e27f 21959EOF
1e6feb95
VZ
21960
21961fi
21962
21963if test "$wxUSE_PROGRESSDLG" = "yes"; then
21964 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21965 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21966 else
a0b9e27f 21967 cat >> confdefs.h <<\EOF
1e6feb95 21968#define wxUSE_PROGRESSDLG 1
a0b9e27f 21969EOF
1e6feb95
VZ
21970
21971 fi
21972fi
21973
cbca9943 21974if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21975 cat >> confdefs.h <<\EOF
cbca9943 21976#define wxUSE_SPLASH 1
a0b9e27f 21977EOF
cbca9943
VZ
21978
21979fi
21980
1e6feb95
VZ
21981if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21982 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21983 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21984 else
a0b9e27f 21985 cat >> confdefs.h <<\EOF
1e6feb95 21986#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21987EOF
1e6feb95 21988
7b4a847f
RR
21989 fi
21990fi
579d8138 21991
8284b0c5 21992if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21993 cat >> confdefs.h <<\EOF
8284b0c5 21994#define wxUSE_TEXTDLG 1
a0b9e27f 21995EOF
8284b0c5
MB
21996
21997fi
21998
21999if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 22000 cat >> confdefs.h <<\EOF
8284b0c5 22001#define wxUSE_WIZARDDLG 1
a0b9e27f 22002EOF
8284b0c5
MB
22003
22004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22005fi
22006
22007
22008if test "$cross_compiling" = "yes"; then
22009 OSINFO="\"$host\""
22010else
22011 OSINFO=`uname -s -r -m`
22012 OSINFO="\"$OSINFO\""
22013fi
22014
a0b9e27f 22015cat >> confdefs.h <<EOF
8284b0c5 22016#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 22017EOF
8284b0c5
MB
22018
22019
22020
22021if test "x$prefix" != "xNONE"; then
22022 wxPREFIX=$prefix
22023else
22024 wxPREFIX=$ac_default_prefix
22025fi
22026
a0b9e27f 22027cat >> confdefs.h <<EOF
8284b0c5 22028#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 22029EOF
8284b0c5
MB
22030
22031
52c71b80
VZ
22032top_builddir=`pwd`
22033
8284b0c5
MB
22034
22035
22036
22037if test "$wxUSE_MAC" = 1 ; then
22038 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22039fi
22040
22041
2b5f62a0
VZ
22042LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22043
22044have_cos=0
22045have_floor=0
22046for ac_func in cos
22047do
22048echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 22049echo "configure:22050: checking for $ac_func" >&5
2b5f62a0
VZ
22050if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22051 echo $ac_n "(cached) $ac_c" 1>&6
22052else
22053 cat > conftest.$ac_ext <<EOF
521196a2 22054#line 22055 "configure"
2b5f62a0
VZ
22055#include "confdefs.h"
22056/* System header to define __stub macros and hopefully few prototypes,
22057 which can conflict with char $ac_func(); below. */
22058#include <assert.h>
22059/* Override any gcc2 internal prototype to avoid an error. */
22060/* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22062char $ac_func();
22063
22064int main() {
22065
22066/* The GNU C library defines this for functions which it implements
22067 to always fail with ENOSYS. Some functions are actually named
22068 something starting with __ and the normal name is an alias. */
22069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22070choke me
22071#else
22072$ac_func();
22073#endif
22074
22075; return 0; }
22076EOF
521196a2 22077if { (eval echo configure:22078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22078 rm -rf conftest*
22079 eval "ac_cv_func_$ac_func=yes"
22080else
22081 echo "configure: failed program was:" >&5
22082 cat conftest.$ac_ext >&5
22083 rm -rf conftest*
22084 eval "ac_cv_func_$ac_func=no"
22085fi
22086rm -f conftest*
22087fi
22088
22089if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22090 echo "$ac_t""yes" 1>&6
22091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22092 cat >> confdefs.h <<EOF
22093#define $ac_tr_func 1
22094EOF
22095 have_cos=1
22096else
22097 echo "$ac_t""no" 1>&6
22098fi
22099done
22100
22101for ac_func in floor
22102do
22103echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 22104echo "configure:22105: checking for $ac_func" >&5
2b5f62a0
VZ
22105if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22106 echo $ac_n "(cached) $ac_c" 1>&6
22107else
22108 cat > conftest.$ac_ext <<EOF
521196a2 22109#line 22110 "configure"
2b5f62a0
VZ
22110#include "confdefs.h"
22111/* System header to define __stub macros and hopefully few prototypes,
22112 which can conflict with char $ac_func(); below. */
22113#include <assert.h>
22114/* Override any gcc2 internal prototype to avoid an error. */
22115/* We use char because int might match the return type of a gcc2
22116 builtin and then its argument prototype would still apply. */
22117char $ac_func();
22118
22119int main() {
22120
22121/* The GNU C library defines this for functions which it implements
22122 to always fail with ENOSYS. Some functions are actually named
22123 something starting with __ and the normal name is an alias. */
22124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22125choke me
22126#else
22127$ac_func();
22128#endif
22129
22130; return 0; }
22131EOF
521196a2 22132if { (eval echo configure:22133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22133 rm -rf conftest*
22134 eval "ac_cv_func_$ac_func=yes"
22135else
22136 echo "configure: failed program was:" >&5
22137 cat conftest.$ac_ext >&5
22138 rm -rf conftest*
22139 eval "ac_cv_func_$ac_func=no"
22140fi
22141rm -f conftest*
22142fi
22143
22144if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22145 echo "$ac_t""yes" 1>&6
22146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22147 cat >> confdefs.h <<EOF
22148#define $ac_tr_func 1
22149EOF
22150 have_floor=1
22151else
22152 echo "$ac_t""no" 1>&6
22153fi
22154done
22155
22156echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
521196a2 22157echo "configure:22158: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22158if test "$have_cos" = 1 -a "$have_floor" = 1; then
22159 echo "$ac_t""yes" 1>&6
22160else
22161 echo "$ac_t""no" 1>&6
22162 LIBS="$LIBS -lm"
22163 # use different functions to avoid configure caching
22164 have_sin=0
22165 have_ceil=0
22166 for ac_func in sin
22167do
22168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 22169echo "configure:22170: checking for $ac_func" >&5
2b5f62a0
VZ
22170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22171 echo $ac_n "(cached) $ac_c" 1>&6
22172else
22173 cat > conftest.$ac_ext <<EOF
521196a2 22174#line 22175 "configure"
2b5f62a0
VZ
22175#include "confdefs.h"
22176/* System header to define __stub macros and hopefully few prototypes,
22177 which can conflict with char $ac_func(); below. */
22178#include <assert.h>
22179/* Override any gcc2 internal prototype to avoid an error. */
22180/* We use char because int might match the return type of a gcc2
22181 builtin and then its argument prototype would still apply. */
22182char $ac_func();
22183
22184int main() {
22185
22186/* The GNU C library defines this for functions which it implements
22187 to always fail with ENOSYS. Some functions are actually named
22188 something starting with __ and the normal name is an alias. */
22189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22190choke me
22191#else
22192$ac_func();
22193#endif
22194
22195; return 0; }
22196EOF
521196a2 22197if { (eval echo configure:22198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22198 rm -rf conftest*
22199 eval "ac_cv_func_$ac_func=yes"
22200else
22201 echo "configure: failed program was:" >&5
22202 cat conftest.$ac_ext >&5
22203 rm -rf conftest*
22204 eval "ac_cv_func_$ac_func=no"
22205fi
22206rm -f conftest*
22207fi
22208
22209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22210 echo "$ac_t""yes" 1>&6
22211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22212 cat >> confdefs.h <<EOF
22213#define $ac_tr_func 1
22214EOF
22215 have_sin=1
22216else
22217 echo "$ac_t""no" 1>&6
22218fi
22219done
22220
22221 for ac_func in ceil
22222do
22223echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
521196a2 22224echo "configure:22225: checking for $ac_func" >&5
2b5f62a0
VZ
22225if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22226 echo $ac_n "(cached) $ac_c" 1>&6
22227else
22228 cat > conftest.$ac_ext <<EOF
521196a2 22229#line 22230 "configure"
2b5f62a0
VZ
22230#include "confdefs.h"
22231/* System header to define __stub macros and hopefully few prototypes,
22232 which can conflict with char $ac_func(); below. */
22233#include <assert.h>
22234/* Override any gcc2 internal prototype to avoid an error. */
22235/* We use char because int might match the return type of a gcc2
22236 builtin and then its argument prototype would still apply. */
22237char $ac_func();
22238
22239int main() {
22240
22241/* The GNU C library defines this for functions which it implements
22242 to always fail with ENOSYS. Some functions are actually named
22243 something starting with __ and the normal name is an alias. */
22244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22245choke me
22246#else
22247$ac_func();
22248#endif
22249
22250; return 0; }
22251EOF
521196a2 22252if { (eval echo configure:22253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22253 rm -rf conftest*
22254 eval "ac_cv_func_$ac_func=yes"
22255else
22256 echo "configure: failed program was:" >&5
22257 cat conftest.$ac_ext >&5
22258 rm -rf conftest*
22259 eval "ac_cv_func_$ac_func=no"
22260fi
22261rm -f conftest*
22262fi
22263
22264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22265 echo "$ac_t""yes" 1>&6
22266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22267 cat >> confdefs.h <<EOF
22268#define $ac_tr_func 1
22269EOF
22270 have_ceil=1
22271else
22272 echo "$ac_t""no" 1>&6
22273fi
22274done
22275
22276 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
521196a2 22277echo "configure:22278: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22278 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22279 echo "$ac_t""yes" 1>&6
22280 else
22281 echo "$ac_t""no" 1>&6
22282 # not sure we should warn the user, crash, etc.
22283 fi
22284fi
8284b0c5
MB
22285
22286if test "$wxUSE_GUI" = "yes"; then
22287
22288 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22289
a0b9e27f 22290
8284b0c5
MB
22291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22292 drawing dynamic erase event exec font image \
22293 minimal propsize rotate widgets"
22294
22295 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22296else
22297 SAMPLES_SUBDIRS="console"
22298fi
22299
22300
22301INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22302-I\${top_srcdir}/include \
22303$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22304$TOOLKIT_INCLUDE"
22305
22306if test "$wxUSE_GTK" = 1; then
22307 WXCONFIG_INCLUDE=
22308else
22309 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22310fi
22311
22312if test "$GXX" = yes ; then
22313 CXXWARNINGS="-Wall"
a0b9e27f 22314
8284b0c5
MB
22315 if test "$wxUSE_NO_DEPS" = "no" ; then
22316 CFLAGS="-MMD $CFLAGS"
22317 CXXFLAGS="-MMD $CXXFLAGS"
22318 fi
22319fi
22320
b2fee376 22321EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22322
b2fee376 22323CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22324CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22325CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22326LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22327
22328LDFLAGS="$LDFLAGS $PROFILE"
22329
22330SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
2f51a9ec
GD
22399
22400
22401
22402
f6bcfd97 22403
dad6c0ea 22404
caa2c79b 22405
3711412e 22406
1e6feb95
VZ
22407
22408
885d4bf5
VS
22409
22410
22411
22412
9b695262
VZ
22413
22414
62d0491b 22415
ef7f2189 22416
40f7145c 22417
2b5f62a0
VZ
22418
22419
22420
22421
22422
2bffed64
VZ
22423
22424
3bd8fb5f 22425
e26c13cf 22426
52c71b80 22427
36825681 22428
4f5a7f74 22429
10f2d63a 22430
a0b9e27f
MB
22431
22432echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
521196a2 22433echo "configure:22434: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22434set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22435if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22436 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22437else
a0b9e27f 22438 cat > conftestmake <<\EOF
10f2d63a
VZ
22439all:
22440 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22441EOF
10f2d63a 22442# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22443eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22444if test -n "$ac_maketemp"; then
22445 eval ac_cv_prog_make_${ac_make}_set=yes
22446else
22447 eval ac_cv_prog_make_${ac_make}_set=no
22448fi
a0b9e27f 22449rm -f conftestmake
10f2d63a
VZ
22450fi
22451if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22452 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22453 SET_MAKE=
22454else
a0b9e27f 22455 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22456 SET_MAKE="MAKE=${MAKE-make}"
22457fi
22458
8284b0c5 22459
3a922bb4
RL
22460if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22461 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22462fi
665bbe97 22463
8284b0c5 22464
10f2d63a 22465
57973b9c
VZ
22466wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22467wx_cv_if_gnu_make=$IF_GNU_MAKE
22468wx_cv_path_ifs=$PATH_IFS
22469wx_cv_program_ext=$PROGRAM_EXT
22470wx_cv_target_library=$WX_TARGET_LIBRARY
22471wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22472wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22473wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22474wx_cv_release=${WX_RELEASE}
22475wx_cv_current=${WX_CURRENT}
22476wx_cv_revision=${WX_REVISION}
22477wx_cv_age=${WX_AGE}
27635a90 22478wx_cv_use_gui=${USE_GUI}
5e66eee1 22479wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22480export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22481 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22482 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22483 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22484 wx_cv_use_gui wx_cv_use_resources
57973b9c 22485
a0b9e27f 22486subdirs="demos samples utils contrib"
8284b0c5 22487
10f2d63a 22488
a0b9e27f
MB
22489trap '' 1 2 15
22490cat > confcache <<\EOF
10f2d63a
VZ
22491# This file is a shell script that caches the results of configure
22492# tests run on this system so they can be shared between configure
a0b9e27f
MB
22493# scripts and configure runs. It is not useful on other systems.
22494# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22495#
a0b9e27f
MB
22496# By default, configure uses ./config.cache as the cache file,
22497# creating it if it does not exist already. You can give configure
22498# the --cache-file=FILE option to use a different cache file; that is
22499# what configure does when it calls configure scripts in
22500# subdirectories, so they share the cache.
22501# Giving --cache-file=/dev/null disables caching, for debugging configure.
22502# config.status only pays attention to the cache file if you give it the
22503# --recheck option to rerun configure.
10f2d63a 22504#
a0b9e27f 22505EOF
10f2d63a
VZ
22506# The following way of writing the cache mishandles newlines in values,
22507# but we know of no workaround that is simple, portable, and efficient.
22508# So, don't put newlines in cache variables' values.
22509# Ultrix sh set writes to stderr and can't be redirected directly,
22510# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22511(set) 2>&1 |
22512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22513 *ac_space=\ *)
22514 # `set' does not quote correctly, so add quotes (double-quote substitution
22515 # turns \\\\ into \\, and sed turns \\ into \).
22516 sed -n \
22517 -e "s/'/'\\\\''/g" \
22518 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22519 ;;
22520 *)
22521 # `set' quotes correctly as required by POSIX, so do not add quotes.
22522 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22523 ;;
22524 esac >> confcache
22525if cmp -s $cache_file confcache; then
22526 :
22527else
10f2d63a 22528 if test -w $cache_file; then
a0b9e27f
MB
22529 echo "updating cache $cache_file"
22530 cat confcache > $cache_file
10f2d63a
VZ
22531 else
22532 echo "not updating unwritable cache $cache_file"
22533 fi
22534fi
22535rm -f confcache
22536
a0b9e27f
MB
22537trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22538
10f2d63a
VZ
22539test "x$prefix" = xNONE && prefix=$ac_default_prefix
22540# Let make expand exec_prefix.
22541test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22542
a0b9e27f
MB
22543# Any assignment to VPATH causes Sun make to only execute
22544# the first set of double-colon rules, so remove it if not needed.
22545# If there is a colon in the path, we need to keep it.
10f2d63a 22546if test "x$srcdir" = x.; then
a0b9e27f 22547 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22548fi
22549
a0b9e27f 22550trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22551
a0b9e27f 22552DEFS=-DHAVE_CONFIG_H
8284b0c5 22553
a0b9e27f 22554# Without the "./", some shells look in PATH for config.status.
247f5006 22555: ${CONFIG_STATUS=./config.status}
52127426 22556
a0b9e27f
MB
22557echo creating $CONFIG_STATUS
22558rm -f $CONFIG_STATUS
22559cat > $CONFIG_STATUS <<EOF
22560#! /bin/sh
22561# Generated automatically by configure.
22562# Run this file to recreate the current configuration.
22563# This directory was configured as follows,
22564# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22565#
a0b9e27f 22566# $0 $ac_configure_args
247f5006 22567#
a0b9e27f
MB
22568# Compiler output produced by configure, useful for debugging
22569# configure, is in ./config.log if it exists.
247f5006 22570
a0b9e27f
MB
22571ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22572for ac_option
247f5006 22573do
a0b9e27f
MB
22574 case "\$ac_option" in
22575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22576 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22577 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22578 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22579 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22580 exit 0 ;;
22581 -help | --help | --hel | --he | --h)
22582 echo "\$ac_cs_usage"; exit 0 ;;
22583 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22584 esac
22585done
22586
a0b9e27f
MB
22587ac_given_srcdir=$srcdir
22588ac_given_INSTALL="$INSTALL"
247f5006 22589
a0b9e27f
MB
22590trap 'rm -fr `echo "
22591 wx-config
2b5f62a0 22592 version-script
a0b9e27f
MB
22593 src/make.env
22594 src/makeprog.env
22595 src/makelib.env
22596 Makefile
22597 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22598EOF
22599cat >> $CONFIG_STATUS <<EOF
247f5006 22600
a0b9e27f
MB
22601# Protect against being on the right side of a sed subst in config.status.
22602sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22603 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22604$ac_vpsub
22605$extrasub
22606s%@SHELL@%$SHELL%g
22607s%@CFLAGS@%$CFLAGS%g
22608s%@CPPFLAGS@%$CPPFLAGS%g
22609s%@CXXFLAGS@%$CXXFLAGS%g
22610s%@FFLAGS@%$FFLAGS%g
22611s%@DEFS@%$DEFS%g
22612s%@LDFLAGS@%$LDFLAGS%g
22613s%@LIBS@%$LIBS%g
22614s%@exec_prefix@%$exec_prefix%g
22615s%@prefix@%$prefix%g
22616s%@program_transform_name@%$program_transform_name%g
22617s%@bindir@%$bindir%g
22618s%@sbindir@%$sbindir%g
22619s%@libexecdir@%$libexecdir%g
22620s%@datadir@%$datadir%g
22621s%@sysconfdir@%$sysconfdir%g
22622s%@sharedstatedir@%$sharedstatedir%g
22623s%@localstatedir@%$localstatedir%g
22624s%@libdir@%$libdir%g
22625s%@includedir@%$includedir%g
22626s%@oldincludedir@%$oldincludedir%g
22627s%@infodir@%$infodir%g
22628s%@mandir@%$mandir%g
22629s%@host@%$host%g
22630s%@host_alias@%$host_alias%g
22631s%@host_cpu@%$host_cpu%g
22632s%@host_vendor@%$host_vendor%g
22633s%@host_os@%$host_os%g
22634s%@target@%$target%g
22635s%@target_alias@%$target_alias%g
22636s%@target_cpu@%$target_cpu%g
22637s%@target_vendor@%$target_vendor%g
22638s%@target_os@%$target_os%g
22639s%@build@%$build%g
22640s%@build_alias@%$build_alias%g
22641s%@build_cpu@%$build_cpu%g
22642s%@build_vendor@%$build_vendor%g
22643s%@build_os@%$build_os%g
22644s%@CC@%$CC%g
22645s%@CPP@%$CPP%g
22646s%@CXX@%$CXX%g
22647s%@RANLIB@%$RANLIB%g
22648s%@AR@%$AR%g
22649s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22650s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22651s%@INSTALL_DATA@%$INSTALL_DATA%g
22652s%@STRIP@%$STRIP%g
22653s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22654s%@YACC@%$YACC%g
22655s%@LEX@%$LEX%g
22656s%@LEXLIB@%$LEXLIB%g
22657s%@LN_S@%$LN_S%g
22658s%@CXXCPP@%$CXXCPP%g
22659s%@PKG_CONFIG@%$PKG_CONFIG%g
22660s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22661s%@GTK_LIBS@%$GTK_LIBS%g
22662s%@GTK_CONFIG@%$GTK_CONFIG%g
22663s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22664s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22665s%@X_CFLAGS@%$X_CFLAGS%g
22666s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22667s%@X_LIBS@%$X_LIBS%g
22668s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22669s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22670s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22671s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22672s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22673s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22674s%@RESCOMP@%$RESCOMP%g
22675s%@DEREZ@%$DEREZ%g
36825681 22676s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22677s%@LIBICONV@%$LIBICONV%g
22678s%@LEX_STEM@%$LEX_STEM%g
22679s%@PATH_IFS@%$PATH_IFS%g
22680s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22681s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22682s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22683s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22684s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22685s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22686s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22687s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22688s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22689s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22690s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22691s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22692s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22693s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22694s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22695s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22696s%@WX_ALL@%$WX_ALL%g
22697s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22698s%@SHARED_LD@%$SHARED_LD%g
22699s%@PIC_FLAG@%$PIC_FLAG%g
22700s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22701s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22702s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22703s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22704s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22705s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22706s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22707s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22708s%@USE_GUI@%$USE_GUI%g
22709s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22710s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22711s%@TOOLKIT@%$TOOLKIT%g
22712s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22713s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22714s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22715s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22716s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22717s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22718s%@cross_compiling@%$cross_compiling%g
22719s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22720s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22721s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22722s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22723s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22724s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22725s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22726s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22727s%@ALL_HEADERS@%$ALL_HEADERS%g
22728s%@ALL_SOURCES@%$ALL_SOURCES%g
22729s%@GUIDIST@%$GUIDIST%g
22730s%@PORT_FILES@%$PORT_FILES%g
22731s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22732s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22733s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22734s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22735s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22736s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22737s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22738s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22739s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22740s%@RESFLAGS@%$RESFLAGS%g
22741s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22742s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22743s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22744s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22745s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22746s%@MACRESCOMP@%$MACRESCOMP%g
22747s%@MACSETFILE@%$MACSETFILE%g
22748s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22749s%@GCC@%$GCC%g
a0b9e27f
MB
22750s%@DLLTOOL@%$DLLTOOL%g
22751s%@AS@%$AS%g
22752s%@NM@%$NM%g
22753s%@LD@%$LD%g
22754s%@MAKEINFO@%$MAKEINFO%g
22755s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22756s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22757s%@SET_MAKE@%$SET_MAKE%g
22758s%@subdirs@%$subdirs%g
247f5006 22759
247f5006 22760CEOF
a0b9e27f 22761EOF
247f5006 22762
a0b9e27f
MB
22763cat >> $CONFIG_STATUS <<\EOF
22764
22765# Split the substitutions into bite-sized pieces for seds with
22766# small command number limits, like on Digital OSF/1 and HP-UX.
22767ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22768ac_file=1 # Number of current file.
22769ac_beg=1 # First line for current file.
22770ac_end=$ac_max_sed_cmds # Line after last line for current file.
22771ac_more_lines=:
22772ac_sed_cmds=""
22773while $ac_more_lines; do
22774 if test $ac_beg -gt 1; then
22775 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22776 else
22777 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22778 fi
22779 if test ! -s conftest.s$ac_file; then
22780 ac_more_lines=false
22781 rm -f conftest.s$ac_file
22782 else
22783 if test -z "$ac_sed_cmds"; then
22784 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22785 else
a0b9e27f 22786 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22787 fi
a0b9e27f
MB
22788 ac_file=`expr $ac_file + 1`
22789 ac_beg=$ac_end
22790 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22791 fi
a0b9e27f
MB
22792done
22793if test -z "$ac_sed_cmds"; then
22794 ac_sed_cmds=cat
22795fi
22796EOF
10f2d63a 22797
a0b9e27f 22798cat >> $CONFIG_STATUS <<EOF
10f2d63a 22799
a0b9e27f 22800CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22801 version-script
a0b9e27f
MB
22802 src/make.env
22803 src/makeprog.env
22804 src/makelib.env
22805 Makefile
22806 "}
22807EOF
22808cat >> $CONFIG_STATUS <<\EOF
22809for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22811 case "$ac_file" in
22812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22814 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22815 esac
247f5006 22816
a0b9e27f 22817 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22818
a0b9e27f
MB
22819 # Remove last slash and all that follows it. Not all systems have dirname.
22820 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22821 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22822 # The file is in a subdirectory.
22823 test ! -d "$ac_dir" && mkdir "$ac_dir"
22824 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22825 # A "../" for each directory in $ac_dir_suffix.
22826 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22827 else
22828 ac_dir_suffix= ac_dots=
22829 fi
247f5006 22830
a0b9e27f
MB
22831 case "$ac_given_srcdir" in
22832 .) srcdir=.
22833 if test -z "$ac_dots"; then top_srcdir=.
22834 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22835 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22836 *) # Relative path.
a0b9e27f
MB
22837 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22838 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22839 esac
10f2d63a 22840
a0b9e27f
MB
22841 case "$ac_given_INSTALL" in
22842 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22843 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22844 esac
247f5006 22845
a0b9e27f
MB
22846 echo creating "$ac_file"
22847 rm -f "$ac_file"
22848 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22849 case "$ac_file" in
22850 *Makefile*) ac_comsub="1i\\
22851# $configure_input" ;;
22852 *) ac_comsub= ;;
22853 esac
247f5006 22854
a0b9e27f
MB
22855 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22856 sed -e "$ac_comsub
22857s%@configure_input@%$configure_input%g
22858s%@srcdir@%$srcdir%g
22859s%@top_srcdir@%$top_srcdir%g
22860s%@INSTALL@%$INSTALL%g
22861" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22862fi; done
22863rm -f conftest.s*
10f2d63a
VZ
22864
22865# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22866# NAME is the cpp macro being defined and VALUE is the value it is being given.
22867#
22868# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22869ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22870ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22871ac_dC='\3'
22872ac_dD='%g'
22873# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22874ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22875ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22876ac_uC=' '
a0b9e27f
MB
22877ac_uD='\4%g'
22878# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22879ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22880ac_eB='$%\1#\2define\3'
22881ac_eC=' '
22882ac_eD='%g'
22883
22884if test "${CONFIG_HEADERS+set}" != set; then
22885EOF
22886cat >> $CONFIG_STATUS <<EOF
22887 CONFIG_HEADERS="setup.h:setup.h.in"
22888EOF
22889cat >> $CONFIG_STATUS <<\EOF
22890fi
22891for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22893 case "$ac_file" in
22894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22896 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22897 esac
22898
a0b9e27f
MB
22899 echo creating $ac_file
22900
22901 rm -f conftest.frag conftest.in conftest.out
22902 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22903 cat $ac_file_inputs > conftest.in
22904
22905EOF
22906
22907# Transform confdefs.h into a sed script conftest.vals that substitutes
22908# the proper values into config.h.in to produce config.h. And first:
22909# Protect against being on the right side of a sed subst in config.status.
22910# Protect against being in an unquoted here document in config.status.
22911rm -f conftest.vals
22912cat > conftest.hdr <<\EOF
22913s/[\\&%]/\\&/g
22914s%[\\$`]%\\&%g
22915s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22916s%ac_d%ac_u%gp
22917s%ac_u%ac_e%gp
22918EOF
22919sed -n -f conftest.hdr confdefs.h > conftest.vals
22920rm -f conftest.hdr
10f2d63a
VZ
22921
22922# This sed command replaces #undef with comments. This is necessary, for
22923# example, in the case of _POSIX_SOURCE, which is predefined and required
22924# on some systems where configure will not decide to define it.
a0b9e27f
MB
22925cat >> conftest.vals <<\EOF
22926s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22927EOF
22928
22929# Break up conftest.vals because some shells have a limit on
22930# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22931
22932rm -f conftest.tail
a0b9e27f 22933while :
10f2d63a 22934do
a0b9e27f
MB
22935 ac_lines=`grep -c . conftest.vals`
22936 # grep -c gives empty output for an empty file on some AIX systems.
22937 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22938 # Write a limited-size here document to conftest.frag.
22939 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22940 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22941 echo 'CEOF
a0b9e27f
MB
22942 sed -f conftest.frag conftest.in > conftest.out
22943 rm -f conftest.in
22944 mv conftest.out conftest.in
22945' >> $CONFIG_STATUS
22946 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22947 rm -f conftest.vals
22948 mv conftest.tail conftest.vals
10f2d63a 22949done
a0b9e27f
MB
22950rm -f conftest.vals
22951
22952cat >> $CONFIG_STATUS <<\EOF
22953 rm -f conftest.frag conftest.h
22954 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22955 cat conftest.in >> conftest.h
22956 rm -f conftest.in
22957 if cmp -s $ac_file conftest.h 2>/dev/null; then
22958 echo "$ac_file is unchanged"
22959 rm -f conftest.h
10f2d63a 22960 else
a0b9e27f
MB
22961 # Remove last slash and all that follows it. Not all systems have dirname.
22962 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22963 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22964 # The file is in a subdirectory.
22965 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22966 fi
a0b9e27f
MB
22967 rm -f $ac_file
22968 mv conftest.h $ac_file
247f5006 22969 fi
a0b9e27f
MB
22970fi; done
22971
22972EOF
22973cat >> $CONFIG_STATUS <<EOF
22974
22975 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22976 LN_S="${LN_S}"
22977
22978
22979EOF
22980cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22981
652d930d 22982 if test ! -h wx-config; then
991a5759 22983 chmod +x wx-config
3a922bb4
RL
22984 mv wx-config wx${TOOLCHAIN_NAME}-config
22985 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22986 fi
665bbe97 22987
00cf1208
RR
22988 if test ! -d lib; then
22989 mkdir lib
22990 fi
22991 if test ! -d lib/wx; then
22992 mkdir lib/wx
22993 fi
22994 if test ! -d lib/wx/include; then
22995 mkdir lib/wx/include
22996 fi
3a922bb4
RL
22997 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22998 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22999 fi
3a922bb4
RL
23000 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23001 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
23002 fi
23003 if test -f setup.h; then
3a922bb4 23004 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 23005 fi
a0b9e27f
MB
23006
23007exit 0
23008EOF
10f2d63a 23009chmod +x $CONFIG_STATUS
a0b9e27f
MB
23010rm -fr confdefs* $ac_clean_files
23011test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 23012
2224580a
VZ
23013if test "$no_recursion" != yes; then
23014
23015 # Remove --cache-file and --srcdir arguments so they do not pile up.
23016 ac_sub_configure_args=
23017 ac_prev=
23018 for ac_arg in $ac_configure_args; do
23019 if test -n "$ac_prev"; then
23020 ac_prev=
23021 continue
23022 fi
a0b9e27f 23023 case "$ac_arg" in
2224580a
VZ
23024 -cache-file | --cache-file | --cache-fil | --cache-fi \
23025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23026 ac_prev=cache_file ;;
23027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 23028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
23029 ;;
23030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23031 ac_prev=srcdir ;;
23032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23033 ;;
23034 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23035 esac
23036 done
23037
a0b9e27f 23038 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
23039
23040 # Do not complain, so a configure script can configure whichever
23041 # parts of a large source tree are present.
a0b9e27f
MB
23042 if test ! -d $srcdir/$ac_config_dir; then
23043 continue
23044 fi
2224580a 23045
a0b9e27f 23046 echo configuring in $ac_config_dir
2224580a 23047
a0b9e27f
MB
23048 case "$srcdir" in
23049 .) ;;
23050 *)
23051 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23052 else
23053 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23054 fi
23055 ;;
23056 esac
2224580a 23057
a0b9e27f
MB
23058 ac_popdir=`pwd`
23059 cd $ac_config_dir
247f5006 23060
a0b9e27f
MB
23061 # A "../" for each directory in /$ac_config_dir.
23062 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 23063
a0b9e27f
MB
23064 case "$srcdir" in
23065 .) # No --srcdir option. We are building in place.
23066 ac_sub_srcdir=$srcdir ;;
23067 /*) # Absolute path.
23068 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23069 *) # Relative path.
23070 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23071 esac
2224580a
VZ
23072
23073 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
23074 if test -f $ac_sub_srcdir/configure; then
23075 ac_sub_configure=$ac_sub_srcdir/configure
23076 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
23077 ac_sub_configure=$ac_configure
23078 else
a0b9e27f 23079 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
23080 ac_sub_configure=
23081 fi
23082
23083 # The recursion is here.
23084 if test -n "$ac_sub_configure"; then
a0b9e27f 23085
2224580a 23086 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
23087 case "$cache_file" in
23088 /*) ac_sub_cache_file=$cache_file ;;
2224580a 23089 *) # Relative path.
a0b9e27f 23090 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 23091 esac
a0b9e27f
MB
23092 case "$ac_given_INSTALL" in
23093 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23094 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23095 esac
2224580a 23096
a0b9e27f 23097 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 23098 # The eval makes quoting arguments work.
a0b9e27f
MB
23099 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23100 then :
23101 else
23102 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23103 fi
2224580a
VZ
23104 fi
23105
23106 cd $ac_popdir
23107 done
23108fi
23109
8284b0c5 23110
2b5f62a0
VZ
23111echo
23112echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23113echo ""
23114echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23115
23116echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23117echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23118echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23119
0c98a14e
GD
23120echo " What level of wxWindows compatibility should be enabled?"
23121echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
23122echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23123echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 23124
2b5f62a0
VZ
23125echo " Which libraries should wxWindows use?"
23126echo " jpeg ${wxUSE_LIBJPEG-none}"
23127echo " png ${wxUSE_LIBPNG-none}"
23128echo " regex ${wxUSE_REGEX}"
23129echo " tiff ${wxUSE_LIBTIFF-none}"
23130echo " zlib ${wxUSE_ZLIB}"
23131
23132echo ""
23133