]> git.saurik.com Git - wxWidgets.git/blame - configure
Added --enable-accessibility switch to configure
[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"
ac0c4cc3
DE
101ac_help="$ac_help
102 --with-cocoa use Cocoa"
a0b9e27f 103ac_help="$ac_help
89e6bf6d 104 --with-wine use Wine"
a0b9e27f
MB
105ac_help="$ac_help
106 --with-msw use MS-Windows"
107ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111ac_help="$ac_help
112 --with-microwin use MicroWindows"
113ac_help="$ac_help
114 --with-x11 use X11"
115ac_help="$ac_help
116 --enable-nanox use NanoX"
117ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135ac_help="$ac_help
136 --enable-shared create shared library code"
137ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139ac_help="$ac_help
140 --enable-optimise create optimised code"
141ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143ac_help="$ac_help
b2fee376 144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
145ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155ac_help="$ac_help
156 --enable-profile create code with profiling information"
157ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167ac_help="$ac_help
65d8ef1e
VS
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
171ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173ac_help="$ac_help
174 --enable-intl use internationalization system"
175ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185ac_help="$ac_help
186 --enable-sockets use socket/network classes"
3bce6687
JS
187ac_help="$ac_help
188 --enable-ole use OLE classes"
189ac_help="$ac_help
190 --enable-dataobj use data object classes"
a0b9e27f
MB
191ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
a0b9e27f
MB
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+)"
a0b9e27f
MB
291ac_help="$ac_help
292 --enable-resources use wxWindows resources"
293ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
295ac_help="$ac_help
da494b40 296 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
297ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
a0b9e27f
MB
301ac_help="$ac_help
302 --enable-controls use all usual controls"
303ac_help="$ac_help
304 --enable-accel use accelerators"
305ac_help="$ac_help
306 --enable-button use wxButton class"
307ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311ac_help="$ac_help
312 --enable-caret use wxCaret class"
313ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317ac_help="$ac_help
318 --enable-choice use wxChoice class"
319ac_help="$ac_help
da494b40
MB
320 --enable-combobox use wxComboBox class"
321ac_help="$ac_help
322 --enable-display use wxDisplay class"
a0b9e27f
MB
323ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325ac_help="$ac_help
326 --enable-grid use wxGrid class"
a0b9e27f
MB
327ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
a0b9e27f
MB
335ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343ac_help="$ac_help
344 --enable-slider use wxSlider class"
345ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413ac_help="$ac_help
414 --enable-splines use spline drawing code"
415ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
7bb2947d
MB
425ac_help="$ac_help
426 --enable-accessibility enable accessibility support"
a0b9e27f
MB
427ac_help="$ac_help
428 --enable-palette use wxPalette class"
429ac_help="$ac_help
430 --enable-image use wxImage class"
431ac_help="$ac_help
432 --enable-gif use gif images (GIF file format)"
433ac_help="$ac_help
434 --enable-pcx use pcx images (PCX file format)"
435ac_help="$ac_help
436 --enable-iff use iff images (IFF file format)"
437ac_help="$ac_help
438 --enable-pnm use pnm images (PNM file format)"
439ac_help="$ac_help
440 --enable-xpm use xpm images (XPM file format)"
441ac_help="$ac_help
442 --enable-icocur use Windows ICO and CUR formats"
443ac_help="$ac_help
444 --disable-largefile omit support for large files"
445ac_help="$ac_help
446 --disable-gtktest do not try to compile and run a test GTK+ program"
447ac_help="$ac_help
448 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
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-x use the X Window System"
461ac_help="$ac_help
462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
463
464# Initialize some variables set by options.
465# The variables have the same names as the options, with
466# dashes changed to underlines.
a0b9e27f
MB
467build=NONE
468cache_file=./config.cache
10f2d63a 469exec_prefix=NONE
a0b9e27f 470host=NONE
10f2d63a 471no_create=
a0b9e27f 472nonopt=NONE
10f2d63a
VZ
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
a0b9e27f 481target=NONE
10f2d63a
VZ
482verbose=
483x_includes=NONE
484x_libraries=NONE
485bindir='${exec_prefix}/bin'
486sbindir='${exec_prefix}/sbin'
487libexecdir='${exec_prefix}/libexec'
488datadir='${prefix}/share'
489sysconfdir='${prefix}/etc'
490sharedstatedir='${prefix}/com'
491localstatedir='${prefix}/var'
492libdir='${exec_prefix}/lib'
493includedir='${prefix}/include'
494oldincludedir='/usr/include'
495infodir='${prefix}/info'
496mandir='${prefix}/man'
497
a0b9e27f
MB
498# Initialize some other variables.
499subdirs=
500MFLAGS= MAKEFLAGS=
501SHELL=${CONFIG_SHELL-/bin/sh}
502# Maximum number of lines to put in a shell here document.
503ac_max_here_lines=12
504
10f2d63a
VZ
505ac_prev=
506for ac_option
507do
a0b9e27f 508
10f2d63a
VZ
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
a0b9e27f
MB
516 case "$ac_option" in
517 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518 *) ac_optarg= ;;
519 esac
10f2d63a
VZ
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
a0b9e27f 523 case "$ac_option" in
10f2d63a
VZ
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 528 bindir="$ac_optarg" ;;
10f2d63a
VZ
529
530 -build | --build | --buil | --bui | --bu)
a0b9e27f 531 ac_prev=build ;;
10f2d63a 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 533 build="$ac_optarg" ;;
10f2d63a
VZ
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 540 cache_file="$ac_optarg" ;;
10f2d63a
VZ
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
a0b9e27f 546 datadir="$ac_optarg" ;;
10f2d63a
VZ
547
548 -disable-* | --disable-*)
a0b9e27f 549 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 550 # Reject names that are not valid shell variable names.
a0b9e27f
MB
551 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
552 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553 fi
554 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
556
557 -enable-* | --enable-*)
a0b9e27f 558 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 559 # Reject names that are not valid shell variable names.
a0b9e27f
MB
560 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562 fi
563 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564 case "$ac_option" in
565 *=*) ;;
10f2d63a
VZ
566 *) ac_optarg=yes ;;
567 esac
a0b9e27f 568 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
a0b9e27f 577 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
a0b9e27f
MB
583 -help | --help | --hel | --he)
584 # Omit some internal or obsolete options to make the list less imposing.
585 # This message is too long to be a string in the A/UX 3.1 sh.
586 cat << EOF
587Usage: configure [options] [host]
588Options: [defaults in brackets after descriptions]
589Configuration:
590 --cache-file=FILE cache test results in FILE
591 --help print this message
592 --no-create do not create output files
593 --quiet, --silent do not print \`checking...' messages
594 --version print the version of autoconf that created configure
595Directory and file names:
596 --prefix=PREFIX install architecture-independent files in PREFIX
597 [$ac_default_prefix]
598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
599 [same as prefix]
600 --bindir=DIR user executables in DIR [EPREFIX/bin]
601 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
602 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
603 --datadir=DIR read-only architecture-independent data in DIR
604 [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data in DIR
607 [PREFIX/com]
608 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
609 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
610 --includedir=DIR C header files in DIR [PREFIX/include]
611 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
612 --infodir=DIR info documentation in DIR [PREFIX/info]
613 --mandir=DIR man documentation in DIR [PREFIX/man]
614 --srcdir=DIR find the sources in DIR [configure dir or ..]
615 --program-prefix=PREFIX prepend PREFIX to installed program names
616 --program-suffix=SUFFIX append SUFFIX to installed program names
617 --program-transform-name=PROGRAM
618 run sed PROGRAM on installed program names
619EOF
620 cat << EOF
621Host type:
622 --build=BUILD configure for building on BUILD [BUILD=HOST]
623 --host=HOST configure for HOST [guessed]
624 --target=TARGET configure for TARGET [TARGET=HOST]
625Features and packages:
626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
630 --x-includes=DIR X include files are in DIR
631 --x-libraries=DIR X library files are in DIR
632EOF
633 if test -n "$ac_help"; then
634 echo "--enable and --with options recognized:$ac_help"
635 fi
636 exit 0 ;;
10f2d63a
VZ
637
638 -host | --host | --hos | --ho)
a0b9e27f 639 ac_prev=host ;;
10f2d63a 640 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 641 host="$ac_optarg" ;;
10f2d63a
VZ
642
643 -includedir | --includedir | --includedi | --included | --include \
644 | --includ | --inclu | --incl | --inc)
645 ac_prev=includedir ;;
646 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 648 includedir="$ac_optarg" ;;
10f2d63a
VZ
649
650 -infodir | --infodir | --infodi | --infod | --info | --inf)
651 ac_prev=infodir ;;
652 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 653 infodir="$ac_optarg" ;;
10f2d63a
VZ
654
655 -libdir | --libdir | --libdi | --libd)
656 ac_prev=libdir ;;
657 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 658 libdir="$ac_optarg" ;;
10f2d63a
VZ
659
660 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661 | --libexe | --libex | --libe)
662 ac_prev=libexecdir ;;
663 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 665 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
666
667 -localstatedir | --localstatedir | --localstatedi | --localstated \
668 | --localstate | --localstat | --localsta | --localst \
669 | --locals | --local | --loca | --loc | --lo)
670 ac_prev=localstatedir ;;
671 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 674 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677 ac_prev=mandir ;;
678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 679 mandir="$ac_optarg" ;;
10f2d63a
VZ
680
681 -nfp | --nfp | --nf)
682 # Obsolete; use --without-fp.
683 with_fp=no ;;
684
685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 686 | --no-cr | --no-c)
10f2d63a
VZ
687 no_create=yes ;;
688
689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691 no_recursion=yes ;;
692
693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695 | --oldin | --oldi | --old | --ol | --o)
696 ac_prev=oldincludedir ;;
697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 700 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
701
702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703 ac_prev=prefix ;;
704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 705 prefix="$ac_optarg" ;;
10f2d63a
VZ
706
707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
708 | --program-pre | --program-pr | --program-p)
709 ac_prev=program_prefix ;;
710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 712 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
713
714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
715 | --program-suf | --program-su | --program-s)
716 ac_prev=program_suffix ;;
717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 719 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
720
721 -program-transform-name | --program-transform-name \
722 | --program-transform-nam | --program-transform-na \
723 | --program-transform-n | --program-transform- \
724 | --program-transform | --program-transfor \
725 | --program-transfo | --program-transf \
726 | --program-trans | --program-tran \
727 | --progr-tra | --program-tr | --program-t)
728 ac_prev=program_transform_name ;;
729 -program-transform-name=* | --program-transform-name=* \
730 | --program-transform-nam=* | --program-transform-na=* \
731 | --program-transform-n=* | --program-transform-=* \
732 | --program-transform=* | --program-transfor=* \
733 | --program-transfo=* | --program-transf=* \
734 | --program-trans=* | --program-tran=* \
735 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 736 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
737
738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739 | -silent | --silent | --silen | --sile | --sil)
740 silent=yes ;;
741
742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743 ac_prev=sbindir ;;
744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745 | --sbi=* | --sb=*)
a0b9e27f 746 sbindir="$ac_optarg" ;;
10f2d63a
VZ
747
748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750 | --sharedst | --shareds | --shared | --share | --shar \
751 | --sha | --sh)
752 ac_prev=sharedstatedir ;;
753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756 | --sha=* | --sh=*)
a0b9e27f 757 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
758
759 -site | --site | --sit)
760 ac_prev=site ;;
761 -site=* | --site=* | --sit=*)
a0b9e27f 762 site="$ac_optarg" ;;
10f2d63a
VZ
763
764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765 ac_prev=srcdir ;;
766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 767 srcdir="$ac_optarg" ;;
10f2d63a
VZ
768
769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770 | --syscon | --sysco | --sysc | --sys | --sy)
771 ac_prev=sysconfdir ;;
772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 774 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
775
776 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 777 ac_prev=target ;;
10f2d63a 778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 779 target="$ac_optarg" ;;
10f2d63a
VZ
780
781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
782 verbose=yes ;;
783
a0b9e27f
MB
784 -version | --version | --versio | --versi | --vers)
785 echo "configure generated by autoconf version 2.13"
786 exit 0 ;;
10f2d63a
VZ
787
788 -with-* | --with-*)
a0b9e27f 789 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 790 # Reject names that are not valid shell variable names.
a0b9e27f
MB
791 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
10f2d63a 794 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
795 case "$ac_option" in
796 *=*) ;;
10f2d63a
VZ
797 *) ac_optarg=yes ;;
798 esac
a0b9e27f 799 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
800
801 -without-* | --without-*)
a0b9e27f 802 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 803 # Reject names that are not valid shell variable names.
a0b9e27f
MB
804 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806 fi
807 ac_package=`echo $ac_package| sed 's/-/_/g'`
808 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
809
810 --x)
811 # Obsolete; use --with-x.
812 with_x=yes ;;
813
814 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815 | --x-incl | --x-inc | --x-in | --x-i)
816 ac_prev=x_includes ;;
817 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 819 x_includes="$ac_optarg" ;;
10f2d63a
VZ
820
821 -x-libraries | --x-libraries | --x-librarie | --x-librari \
822 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823 ac_prev=x_libraries ;;
824 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 826 x_libraries="$ac_optarg" ;;
10f2d63a 827
a0b9e27f 828 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
829 ;;
830
831 *)
a0b9e27f
MB
832 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833 echo "configure: warning: $ac_option: invalid host type" 1>&2
834 fi
835 if test "x$nonopt" != xNONE; then
836 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837 fi
838 nonopt="$ac_option"
10f2d63a
VZ
839 ;;
840
841 esac
842done
843
844if test -n "$ac_prev"; then
a0b9e27f 845 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 846fi
8284b0c5 847
a0b9e27f
MB
848trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850# File descriptor usage:
851# 0 standard input
852# 1 file creation
853# 2 errors and warnings
854# 3 some systems may open it to /dev/tty
855# 4 used on the Kubota Titan
856# 6 checking for... messages and results
857# 5 compiler messages saved in config.log
858if test "$silent" = yes; then
859 exec 6>/dev/null
860else
861 exec 6>&1
862fi
863exec 5>./config.log
864
865echo "\
866This file contains any messages produced by compilers while
867running configure, to aid debugging if configure makes a mistake.
868" 1>&5
8284b0c5 869
a0b9e27f
MB
870# Strip out --no-create and --no-recursion so they do not pile up.
871# Also quote any args containing shell metacharacters.
872ac_configure_args=
873for ac_arg
10f2d63a 874do
a0b9e27f
MB
875 case "$ac_arg" in
876 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877 | --no-cr | --no-c) ;;
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
883 esac
884done
885
a0b9e27f
MB
886# NLS nuisances.
887# Only set these to C if already set. These must not be set unconditionally
888# because not all systems understand e.g. LANG=C (notably SCO).
889# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890# Non-C LC_CTYPE values break the ctype check.
891if test "${LANG+set}" = set; then LANG=C; export LANG; fi
892if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 895
a0b9e27f
MB
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo > confdefs.h
10f2d63a 900
a0b9e27f
MB
901# A filename unique to this package, relative to the directory that
902# configure is in, which we can look for to find out if srcdir is correct.
903ac_unique_file=wx-config.in
10f2d63a
VZ
904
905# Find the source files, if location was not specified.
906if test -z "$srcdir"; then
907 ac_srcdir_defaulted=yes
908 # Try the directory containing this script, then its parent.
a0b9e27f
MB
909 ac_prog=$0
910 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
912 srcdir=$ac_confdir
913 if test ! -r $srcdir/$ac_unique_file; then
914 srcdir=..
915 fi
916else
917 ac_srcdir_defaulted=no
918fi
919if test ! -r $srcdir/$ac_unique_file; then
920 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 921 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 922 else
a0b9e27f 923 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
924 fi
925fi
a0b9e27f 926srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 927
10f2d63a
VZ
928# Prefer explicitly selected file to automatically selected ones.
929if test -z "$CONFIG_SITE"; then
930 if test "x$prefix" != xNONE; then
931 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932 else
933 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934 fi
935fi
936for ac_site_file in $CONFIG_SITE; do
937 if test -r "$ac_site_file"; then
a0b9e27f 938 echo "loading site script $ac_site_file"
10f2d63a
VZ
939 . "$ac_site_file"
940 fi
941done
942
943if test -r "$cache_file"; then
a0b9e27f
MB
944 echo "loading cache $cache_file"
945 . $cache_file
10f2d63a 946else
a0b9e27f
MB
947 echo "creating cache $cache_file"
948 > $cache_file
10f2d63a
VZ
949fi
950
951ac_ext=c
a0b9e27f 952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 953ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956cross_compiling=$ac_cv_prog_cc_cross
957
958ac_exeext=
959ac_objext=o
960if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963 ac_n= ac_c='
964' ac_t=' '
965 else
966 ac_n=-n ac_c= ac_t=
967 fi
968else
969 ac_n= ac_c='\c' ac_t=
970fi
8284b0c5
MB
971
972
10f2d63a 973
7c66a493
VZ
974ac_aux_dir=
975for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 if test -f $ac_dir/install-sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install-sh -c"
979 break
980 elif test -f $ac_dir/install.sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install.sh -c"
983 break
247f5006 984 fi
7c66a493
VZ
985done
986if test -z "$ac_aux_dir"; then
a0b9e27f 987 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 988fi
a0b9e27f
MB
989ac_config_guess=$ac_aux_dir/config.guess
990ac_config_sub=$ac_aux_dir/config.sub
991ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 992
8284b0c5 993
a0b9e27f
MB
994# Do some error checking and defaulting for the host and target type.
995# The inputs are:
996# configure --host=HOST --target=TARGET --build=BUILD NONOPT
997#
998# The rules are:
999# 1. You are not allowed to specify --host, --target, and nonopt at the
1000# same time.
1001# 2. Host defaults to nonopt.
1002# 3. If nonopt is not specified, then host defaults to the current host,
1003# as determined by config.guess.
1004# 4. Target and build default to nonopt.
1005# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1006
1007# The aliases save the names the user supplied, while $host etc.
1008# will get canonicalized.
a0b9e27f
MB
1009case $host---$target---$nonopt in
1010NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012esac
1013
1014
1015# Make sure we can run config.sub.
1016if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018fi
1019
1020echo $ac_n "checking host system type""... $ac_c" 1>&6
7bb2947d 1021echo "configure:1022: checking host system type" >&5
a0b9e27f
MB
1022
1023host_alias=$host
1024case "$host_alias" in
1025NONE)
1026 case $nonopt in
1027 NONE)
1028 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 fi ;;
1031 *) host_alias=$nonopt ;;
1032 esac ;;
1033esac
1034
1035host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039echo "$ac_t""$host" 1>&6
1040
1041echo $ac_n "checking target system type""... $ac_c" 1>&6
7bb2947d 1042echo "configure:1043: checking target system type" >&5
a0b9e27f
MB
1043
1044target_alias=$target
1045case "$target_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE) target_alias=$host_alias ;;
1049 *) target_alias=$nonopt ;;
1050 esac ;;
1051esac
1052
1053target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057echo "$ac_t""$target" 1>&6
1058
1059echo $ac_n "checking build system type""... $ac_c" 1>&6
7bb2947d 1060echo "configure:1061: checking build system type" >&5
a0b9e27f
MB
1061
1062build_alias=$build
1063case "$build_alias" in
1064NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069esac
1070
1071build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075echo "$ac_t""$build" 1>&6
1076
1077test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1078 test "$program_prefix$program_suffix$program_transform_name" = \
1079 NONENONEs,x,x, &&
1080 program_prefix=${target_alias}-
8284b0c5
MB
1081
1082
a0b9e27f 1083
10f2d63a 1084WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1085WX_MINOR_VERSION_NUMBER=5
1086WX_RELEASE_NUMBER=0
10f2d63a 1087
10f2d63a 1088WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1089WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1090
978f1259
RL
1091WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
34bed6d9 1093WX_CURRENT=0
6426998c
RL
1094WX_REVISION=0
1095WX_AGE=0
1096
8284b0c5
MB
1097
1098
10f2d63a
VZ
1099USE_UNIX=1
1100USE_WIN32=0
f9bc1684 1101USE_DOS=0
b12915c1 1102USE_BEOS=0
1216f52d 1103USE_MAC=0
b12915c1 1104
10f2d63a 1105USE_AIX=
10f2d63a 1106USE_BSD=
f11bdd03 1107USE_DARWIN=
10f2d63a 1108USE_FREEBSD=
89e3b3e4
VZ
1109USE_HPUX=
1110USE_LINUX=
f6bcfd97 1111USE_NETBSD=
89e3b3e4
VZ
1112USE_OPENBSD=
1113USE_OSF=
1114USE_SGI=
1115USE_SOLARIS=
1116USE_SUN=
1117USE_SUNOS=
1118USE_SVR4=
1119USE_SYSV=
10f2d63a
VZ
1120USE_VMS=
1121USE_ULTRIX=
89e3b3e4
VZ
1122USE_UNIXWARE=
1123
1124USE_ALPHA=
10f2d63a 1125
ab9b9eab
VZ
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
ac0c4cc3 1128ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1129
ac0c4cc3 1130DEFAULT_wxUSE_COCOA=0
10f2d63a 1131DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1132DEFAULT_wxUSE_MAC=0
1133DEFAULT_wxUSE_MGL=0
1725144d 1134DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1135DEFAULT_wxUSE_MOTIF=0
1136DEFAULT_wxUSE_MSW=0
e07802fc 1137DEFAULT_wxUSE_PM=0
f79bd02d 1138DEFAULT_wxUSE_X11=0
10f2d63a 1139
ac0c4cc3 1140DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1141DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1142DEFAULT_DEFAULT_wxUSE_MAC=0
1143DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1144DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1145DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1147DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1148DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1149
d6a55c4b 1150PROGRAM_EXT=
3a922bb4 1151SO_SUFFIX=so
d6a55c4b 1152
10f2d63a
VZ
1153case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1158 SO_SUFFIX=sl
a0b9e27f 1159 cat >> confdefs.h <<\EOF
10f2d63a 1160#define __HPUX__ 1
a0b9e27f 1161EOF
10f2d63a
VZ
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
a0b9e27f 1166 cat >> confdefs.h <<\EOF
10f2d63a 1167#define __LINUX__ 1
a0b9e27f 1168EOF
10f2d63a
VZ
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
a0b9e27f 1173 cat >> confdefs.h <<\EOF
10f2d63a 1174#define __ALPHA__ 1
a0b9e27f 1175EOF
10f2d63a
VZ
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
a0b9e27f 1183 cat >> confdefs.h <<\EOF
10f2d63a 1184#define __SGI__ 1
a0b9e27f 1185EOF
10f2d63a 1186
a0b9e27f 1187 cat >> confdefs.h <<\EOF
10f2d63a 1188#define __SVR4__ 1
a0b9e27f 1189EOF
10f2d63a
VZ
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
a0b9e27f 1197 cat >> confdefs.h <<\EOF
10f2d63a 1198#define __SUN__ 1
a0b9e27f 1199EOF
10f2d63a 1200
a0b9e27f 1201 cat >> confdefs.h <<\EOF
10f2d63a 1202#define __SOLARIS__ 1
a0b9e27f 1203EOF
10f2d63a 1204
a0b9e27f 1205 cat >> confdefs.h <<\EOF
10f2d63a 1206#define __SVR4__ 1
a0b9e27f 1207EOF
10f2d63a
VZ
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
a0b9e27f 1216 cat >> confdefs.h <<\EOF
10f2d63a 1217#define __SUN__ 1
a0b9e27f 1218EOF
10f2d63a 1219
a0b9e27f 1220 cat >> confdefs.h <<\EOF
10f2d63a 1221#define __SUNOS__ 1
a0b9e27f 1222EOF
10f2d63a 1223
a0b9e27f 1224 cat >> confdefs.h <<\EOF
10f2d63a 1225#define __BSD__ 1
a0b9e27f 1226EOF
10f2d63a
VZ
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
f6bcfd97 1230 *-*-freebsd*)
10f2d63a
VZ
1231 USE_BSD=1
1232 USE_FREEBSD=1
a0b9e27f 1233 cat >> confdefs.h <<\EOF
10f2d63a 1234#define __FREEBSD__ 1
a0b9e27f 1235EOF
10f2d63a 1236
a0b9e27f 1237 cat >> confdefs.h <<\EOF
10f2d63a 1238#define __BSD__ 1
a0b9e27f 1239EOF
95c8801c
VS
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
a0b9e27f 1246 cat >> confdefs.h <<\EOF
2b5f62a0 1247#define __OPENBSD__ 1
a0b9e27f 1248EOF
95c8801c 1249
a0b9e27f 1250 cat >> confdefs.h <<\EOF
2b5f62a0 1251#define __BSD__ 1
a0b9e27f 1252EOF
f6bcfd97
BP
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
a0b9e27f 1259 cat >> confdefs.h <<\EOF
2b5f62a0 1260#define __NETBSD__ 1
a0b9e27f 1261EOF
f6bcfd97 1262
a0b9e27f 1263 cat >> confdefs.h <<\EOF
2b5f62a0 1264#define __BSD__ 1
a0b9e27f 1265EOF
10f2d63a
VZ
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
a0b9e27f 1272 cat >> confdefs.h <<\EOF
10f2d63a 1273#define __ALPHA__ 1
a0b9e27f 1274EOF
10f2d63a 1275
a0b9e27f 1276 cat >> confdefs.h <<\EOF
10f2d63a 1277#define __OSF__ 1
a0b9e27f 1278EOF
10f2d63a
VZ
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
a0b9e27f 1286 cat >> confdefs.h <<\EOF
10f2d63a 1287#define __ALPHA__ 1
a0b9e27f 1288EOF
10f2d63a 1289
a0b9e27f 1290 cat >> confdefs.h <<\EOF
10f2d63a 1291#define __SVR4__ 1
a0b9e27f 1292EOF
10f2d63a
VZ
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
a0b9e27f 1299 cat >> confdefs.h <<\EOF
10f2d63a 1300#define __SYSV__ 1
a0b9e27f 1301EOF
10f2d63a 1302
a0b9e27f 1303 cat >> confdefs.h <<\EOF
10f2d63a 1304#define __SVR4__ 1
a0b9e27f 1305EOF
10f2d63a
VZ
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
2b5f62a0 1313 SO_SUFFIX=a
a0b9e27f 1314 cat >> confdefs.h <<\EOF
10f2d63a 1315#define __AIX__ 1
a0b9e27f 1316EOF
10f2d63a 1317
a0b9e27f 1318 cat >> confdefs.h <<\EOF
10f2d63a 1319#define __SYSV__ 1
a0b9e27f 1320EOF
10f2d63a 1321
a0b9e27f 1322 cat >> confdefs.h <<\EOF
10f2d63a 1323#define __SVR4__ 1
a0b9e27f 1324EOF
10f2d63a
VZ
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
89e3b3e4
VZ
1329 *-*-*UnixWare*)
1330 USE_SYSV=1
1331 USE_SVR4=1
1332 USE_UNIXWARE=1
1333 cat >> confdefs.h <<\EOF
1334#define __UNIXWARE__ 1
1335EOF
1336
1337 ;;
1338
1c8183e2 1339 *-*-cygwin* | *-*-mingw32* )
17234b26 1340 SO_SUFFIX=dll
cf27ef00 1341 PROGRAM_EXT=".exe"
7b7a7637 1342 RESCOMP=windres
10f2d63a
VZ
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
f9bc1684
VS
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
a0b9e27f 1349 cat >> confdefs.h <<\EOF
f9bc1684 1350#define __DOS__ 1
a0b9e27f 1351EOF
f9bc1684
VS
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1355 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1356 ;;
1357
6fa882bd 1358 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1359 cat >> confdefs.h <<\EOF
10f2d63a 1360#define __EMX__ 1
a0b9e27f 1361EOF
10f2d63a 1362
cf27ef00 1363 PROGRAM_EXT=".exe"
e07802fc 1364 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1365 ;;
1366
d08b457b
GD
1367 powerpc-*-darwin* )
1368 USE_BSD=1
f11bdd03 1369 USE_DARWIN=1
3a922bb4 1370 SO_SUFFIX=dylib
a0b9e27f 1371 cat >> confdefs.h <<\EOF
f11bdd03 1372#define __BSD__ 1
a0b9e27f 1373EOF
b4085ce6 1374
a0b9e27f 1375 cat >> confdefs.h <<\EOF
f11bdd03 1376#define __DARWIN__ 1
a0b9e27f 1377EOF
d08b457b 1378
a0b9e27f 1379 cat >> confdefs.h <<\EOF
d08b457b 1380#define __POWERPC__ 1
82d43113
GD
1381EOF
1382
1383 cat >> confdefs.h <<\EOF
1384#define TARGET_CARBON 1
a0b9e27f 1385EOF
b4085ce6
GD
1386
1387 DEFAULT_DEFAULT_wxUSE_MAC=1
1388 ;;
1389
b12915c1
VZ
1390 *-*-beos* )
1391 USE_BEOS=1
a0b9e27f 1392 cat >> confdefs.h <<\EOF
b12915c1 1393#define __BEOS__ 1
a0b9e27f 1394EOF
b12915c1
VZ
1395
1396 ;;
1397
10f2d63a 1398 *)
a0b9e27f 1399 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1400esac
1401
8284b0c5
MB
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
a0b9e27f 1410
10f2d63a
VZ
1411
1412DEBUG_CONFIGURE=0
1413if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
d8356fa3
VZ
1416 DEFAULT_wxUSE_NANOX=no
1417
10f2d63a
VZ
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1421 DEFAULT_wxUSE_SONAME=no
1e6feb95 1422 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1434 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1440 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1441
1442 DEFAULT_wxUSE_GUI=yes
1e6feb95 1443 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1444
3e44f09d 1445 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1449 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1450 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1451 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1452
eb4efbdc 1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1458 DEFAULT_wxUSE_TIMER=no
1459 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1460 DEFAULT_wxUSE_FILE=no
1e6feb95 1461 DEFAULT_wxUSE_FFILE=no
a3a584a7 1462 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1463 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1464 DEFAULT_wxUSE_WAVE=no
1465 DEFAULT_wxUSE_INTL=no
1466 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1467 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1468 DEFAULT_wxUSE_STREAMS=no
1469 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1470 DEFAULT_wxUSE_OLE=no
1471 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1473 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1476 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1477 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=no
1485 DEFAULT_wxUSE_TOOLTIPS=no
1486 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1487 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1488 DEFAULT_wxUSE_SPLINES=no
1489
1490 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1491 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1492 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1493
10f2d63a
VZ
1494 DEFAULT_wxUSE_RESOURCES=no
1495 DEFAULT_wxUSE_CONSTRAINTS=no
1496 DEFAULT_wxUSE_IPC=no
1497 DEFAULT_wxUSE_HELP=no
29fd3c0c 1498 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1499 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1500 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1501 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1502 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1503 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1504 DEFAULT_wxUSE_PROTOCOL=no
1505 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FILE=no
1508 DEFAULT_wxUSE_URL=no
3bd8fb5f 1509
10f2d63a 1510 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1511 DEFAULT_wxUSE_CHOICEDLG=no
1512 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1513 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1514 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1515 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1516 DEFAULT_wxUSE_FONTDLG=no
1517 DEFAULT_wxUSE_MSGDLG=no
1518 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1519 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1520 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1523 DEFAULT_wxUSE_WIZARDDLG=no
1524
1e6feb95 1525 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_MINIFRAME=no
1527 DEFAULT_wxUSE_HTML=no
24528b0c 1528 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_FS_INET=no
1530 DEFAULT_wxUSE_FS_ZIP=no
1531 DEFAULT_wxUSE_BUSYINFO=no
1532 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1533 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1534
1535 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1536 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1537 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1538 DEFAULT_wxUSE_CALCTRL=no
1539 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_CHECKBOX=no
1541 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1542 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1543 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1544 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_GAUGE=no
1546 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
1551 DEFAULT_wxUSE_RADIOBOX=no
1552 DEFAULT_wxUSE_RADIOBTN=no
1553 DEFAULT_wxUSE_SASH=no
1554 DEFAULT_wxUSE_SCROLLBAR=no
1555 DEFAULT_wxUSE_SLIDER=no
1556 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1557 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1558 DEFAULT_wxUSE_SPLITTER=no
1559 DEFAULT_wxUSE_STATBMP=no
1560 DEFAULT_wxUSE_STATBOX=no
1561 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1562 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_STATUSBAR=yes
1564 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1565 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1566 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1567 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1568 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1569 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1570 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1571 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1572 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1573
1574 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1575 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1576 DEFAULT_wxUSE_WCSRTOMBS=no
1577
edae8572 1578 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1579 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1580 DEFAULT_wxUSE_GIF=no
1581 DEFAULT_wxUSE_PCX=no
1582 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1583 DEFAULT_wxUSE_IFF=no
0046ff7c 1584 DEFAULT_wxUSE_XPM=no
658974ae 1585 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 1586 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a 1587else
1e6feb95
VZ
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
d8356fa3
VZ
1590 DEFAULT_wxUSE_NANOX=no
1591
10f2d63a
VZ
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1595 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1608 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1614 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
831b3152 1618 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1622 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1623 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1624 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1625
eb4efbdc 1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
1631 DEFAULT_wxUSE_TIMER=yes
1632 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1633 DEFAULT_wxUSE_FILE=yes
1e6feb95 1634 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1635 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1636 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1637 DEFAULT_wxUSE_WAVE=no
1638 DEFAULT_wxUSE_INTL=yes
1639 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1640 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1641 DEFAULT_wxUSE_STREAMS=yes
1642 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1643 DEFAULT_wxUSE_OLE=yes
1644 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1645 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1646 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1647 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1648 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1649 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1650 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1651
1652 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1653 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1654 DEFAULT_wxUSE_POSTSCRIPT=yes
1655
1656 DEFAULT_wxUSE_X_RESOURCES=no
1657 DEFAULT_wxUSE_CLIPBOARD=yes
1658 DEFAULT_wxUSE_TOOLTIPS=yes
1659 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1660 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_SPLINES=yes
1662
1663 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1666
2b5f62a0 1667 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1668 DEFAULT_wxUSE_CONSTRAINTS=yes
1669 DEFAULT_wxUSE_IPC=yes
1670 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1671 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1672 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1673 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1674 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1675 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1676 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1677 DEFAULT_wxUSE_PROTOCOL=yes
1678 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1679 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1681 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1682
1683 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1684 DEFAULT_wxUSE_CHOICEDLG=yes
1685 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1686 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1687 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1688 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1689 DEFAULT_wxUSE_FONTDLG=yes
1690 DEFAULT_wxUSE_MSGDLG=yes
1691 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1692 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1693 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1694 DEFAULT_wxUSE_STARTUP_TIPS=yes
1695 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1696 DEFAULT_wxUSE_WIZARDDLG=yes
1697
1e6feb95 1698 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1699 DEFAULT_wxUSE_MINIFRAME=yes
1700 DEFAULT_wxUSE_HTML=yes
24528b0c 1701 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1702 DEFAULT_wxUSE_FS_INET=yes
1703 DEFAULT_wxUSE_FS_ZIP=yes
1704 DEFAULT_wxUSE_BUSYINFO=yes
1705 DEFAULT_wxUSE_ZIPSTREAM=yes
1706 DEFAULT_wxUSE_VALIDATORS=yes
1707
1708 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1709 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1710 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1711 DEFAULT_wxUSE_CALCTRL=yes
1712 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1713 DEFAULT_wxUSE_CHECKBOX=yes
1714 DEFAULT_wxUSE_CHECKLST=yes
1715 DEFAULT_wxUSE_CHOICE=yes
1716 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1717 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1718 DEFAULT_wxUSE_GAUGE=yes
1719 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_IMAGLIST=yes
1721 DEFAULT_wxUSE_LISTBOX=yes
1722 DEFAULT_wxUSE_LISTCTRL=yes
1723 DEFAULT_wxUSE_NOTEBOOK=yes
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
7bb2947d 1759 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a
VZ
1760fi
1761
8284b0c5
MB
1762
1763
10f2d63a 1764for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1765 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1766 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1767 has_toolkit_in_cache=1
1768 eval "DEFAULT_$LINE"
1769 eval "CACHE_$toolkit=1"
1770 fi
1771done
1772
8284b0c5
MB
1773
1774
5005acfe
VZ
1775 enablestring=
1776 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
7bb2947d 1777echo "configure:1778: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1778 no_cache=0
1779 # Check whether --enable-gui or --disable-gui was given.
1780if test "${enable_gui+set}" = set; then
1781 enableval="$enable_gui"
a0b9e27f 1782
10f2d63a
VZ
1783 if test "$enableval" = yes; then
1784 ac_cv_use_gui='wxUSE_GUI=yes'
1785 else
1786 ac_cv_use_gui='wxUSE_GUI=no'
1787 fi
a0b9e27f 1788
10f2d63a 1789else
a0b9e27f 1790
10f2d63a
VZ
1791 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1799
1800fi
10f2d63a
VZ
1801
1802
1803 eval "$ac_cv_use_gui"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1809 echo "$ac_t""yes" 1>&6
10f2d63a 1810 else
a0b9e27f 1811 echo "$ac_t""no" 1>&6
10f2d63a 1812 fi
a0b9e27f 1813
10f2d63a 1814
b12915c1 1815if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1816
8284b0c5 1817
5005acfe
VZ
1818 enablestring=
1819 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
7bb2947d 1820echo "configure:1821: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1821 no_cache=0
1822 # Check whether --enable-universal or --disable-universal was given.
1823if test "${enable_universal+set}" = set; then
1824 enableval="$enable_universal"
a0b9e27f 1825
1e6feb95
VZ
1826 if test "$enableval" = yes; then
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1828 else
1829 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1830 fi
a0b9e27f 1831
1e6feb95 1832else
a0b9e27f 1833
1e6feb95
VZ
1834 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1835 if test "x$LINE" != x ; then
1836 eval "DEFAULT_$LINE"
1837 else
1838 no_cache=1
1839 fi
1840
1841 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1842
1843fi
1e6feb95
VZ
1844
1845
1846 eval "$ac_cv_use_universal"
1847 if test "$no_cache" != 1; then
1848 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1849 fi
1850
1851 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1852 echo "$ac_t""yes" 1>&6
1e6feb95 1853 else
a0b9e27f 1854 echo "$ac_t""no" 1>&6
1e6feb95 1855 fi
a0b9e27f 1856
10f2d63a
VZ
1857# Check whether --with-gtk or --without-gtk was given.
1858if test "${with_gtk+set}" = set; then
1859 withval="$with_gtk"
1860 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1861fi
10f2d63a
VZ
1862
1863# Check whether --with-motif or --without-motif was given.
1864if test "${with_motif+set}" = set; then
1865 withval="$with_motif"
1866 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1867fi
10f2d63a 1868
b4085ce6
GD
1869# Check whether --with-mac or --without-mac was given.
1870if test "${with_mac+set}" = set; then
1871 withval="$with_mac"
1872 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1873fi
b4085ce6 1874
ac0c4cc3
DE
1875# Check whether --with-cocoa or --without-cocoa was given.
1876if test "${with_cocoa+set}" = set; then
1877 withval="$with_cocoa"
1878 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1879fi
1880
10f2d63a
VZ
1881# Check whether --with-wine or --without-wine was given.
1882if test "${with_wine+set}" = set; then
1883 withval="$with_wine"
89e6bf6d 1884 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1885fi
10f2d63a 1886
77e13408
RL
1887# Check whether --with-msw or --without-msw was given.
1888if test "${with_msw+set}" = set; then
1889 withval="$with_msw"
b4efce5e 1890 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1891fi
10f2d63a 1892
e07802fc
VZ
1893# Check whether --with-pm or --without-pm was given.
1894if test "${with_pm+set}" = set; then
1895 withval="$with_pm"
1896 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1897fi
698dcdb6 1898
1e6feb95
VZ
1899# Check whether --with-mgl or --without-mgl was given.
1900if test "${with_mgl+set}" = set; then
1901 withval="$with_mgl"
6c657b52 1902 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1903fi
1e6feb95 1904
1725144d
RR
1905# Check whether --with-microwin or --without-microwin was given.
1906if test "${with_microwin+set}" = set; then
1907 withval="$with_microwin"
1908 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1909fi
1725144d 1910
f79bd02d
JS
1911# Check whether --with-x11 or --without-x11 was given.
1912if test "${with_x11+set}" = set; then
1913 withval="$with_x11"
3c011993 1914 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1915fi
10f2d63a 1916
a0b9e27f 1917
5005acfe
VZ
1918 enablestring=
1919 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
7bb2947d 1920echo "configure:1921: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1921 no_cache=0
ba875e66
VZ
1922 # Check whether --enable-nanox or --disable-nanox was given.
1923if test "${enable_nanox+set}" = set; then
1924 enableval="$enable_nanox"
a0b9e27f 1925
d8356fa3 1926 if test "$enableval" = yes; then
ba875e66 1927 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1928 else
ba875e66 1929 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1930 fi
a0b9e27f 1931
d8356fa3 1932else
a0b9e27f 1933
d8356fa3
VZ
1934 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1935 if test "x$LINE" != x ; then
1936 eval "DEFAULT_$LINE"
1937 else
1938 no_cache=1
1939 fi
1940
ba875e66 1941 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1942
1943fi
d8356fa3
VZ
1944
1945
ba875e66 1946 eval "$ac_cv_use_nanox"
d8356fa3 1947 if test "$no_cache" != 1; then
ba875e66 1948 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1949 fi
1950
1951 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1952 echo "$ac_t""yes" 1>&6
d8356fa3 1953 else
a0b9e27f 1954 echo "$ac_t""no" 1>&6
d8356fa3 1955 fi
a0b9e27f 1956
8284b0c5 1957
d74f4b5a 1958
5005acfe
VZ
1959 enablestring=
1960 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
7bb2947d 1961echo "configure:1962: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1962 no_cache=0
1963 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1964if test "${enable_gtk2+set}" = set; then
1965 enableval="$enable_gtk2"
a0b9e27f 1966
d74f4b5a
VZ
1967 if test "$enableval" = yes; then
1968 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1969 else
1970 ac_cv_use_gtk2='wxUSE_GTK2=no'
1971 fi
a0b9e27f 1972
10f2d63a 1973else
a0b9e27f 1974
d74f4b5a
VZ
1975 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1976 if test "x$LINE" != x ; then
1977 eval "DEFAULT_$LINE"
1978 else
1979 no_cache=1
1980 fi
1981
1982 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1983
1984fi
52127426 1985
328a083c 1986
d74f4b5a
VZ
1987 eval "$ac_cv_use_gtk2"
1988 if test "$no_cache" != 1; then
1989 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1990 fi
1991
1992 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1993 echo "$ac_t""yes" 1>&6
d74f4b5a 1994 else
a0b9e27f 1995 echo "$ac_t""no" 1>&6
d74f4b5a 1996 fi
a0b9e27f 1997
d74f4b5a 1998
5c6fa7d2 1999
a0b9e27f 2000 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
7bb2947d 2001echo "configure:2002: checking for --with-libpng" >&5
8284b0c5 2002 no_cache=0
a0b9e27f 2003 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2004if test "${with_libpng+set}" = set; then
2005 withval="$with_libpng"
a0b9e27f 2006
10f2d63a 2007 if test "$withval" = yes; then
b12915c1 2008 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2009 elif test "$withval" = no; then
b12915c1 2010 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2011 elif test "$withval" = sys; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2013 elif test "$withval" = builtin; then
2014 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2015 else
a0b9e27f 2016 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2017 fi
a0b9e27f 2018
10f2d63a 2019else
a0b9e27f 2020
b12915c1 2021 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2022 if test "x$LINE" != x ; then
2023 eval "DEFAULT_$LINE"
2024 else
2025 no_cache=1
2026 fi
2027
b12915c1 2028 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2029
2030fi
10f2d63a
VZ
2031
2032
b12915c1 2033 eval "$ac_cv_use_libpng"
10f2d63a 2034 if test "$no_cache" != 1; then
b12915c1 2035 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2036 fi
2037
b12915c1 2038 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2039 echo "$ac_t""yes" 1>&6
422107f9 2040 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2041 echo "$ac_t""no" 1>&6
422107f9 2042 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2043 echo "$ac_t""system version" 1>&6
4f14bcd8 2044 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2045 echo "$ac_t""builtin version" 1>&6
422107f9 2046 else
a0b9e27f 2047 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2048 fi
a0b9e27f 2049
10f2d63a 2050
a0b9e27f 2051 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
7bb2947d 2052echo "configure:2053: checking for --with-libjpeg" >&5
10f2d63a 2053 no_cache=0
a0b9e27f 2054 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2055if test "${with_libjpeg+set}" = set; then
2056 withval="$with_libjpeg"
a0b9e27f 2057
10f2d63a 2058 if test "$withval" = yes; then
b12915c1 2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2060 elif test "$withval" = no; then
b12915c1 2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2062 elif test "$withval" = sys; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2064 elif test "$withval" = builtin; then
2065 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2066 else
a0b9e27f 2067 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2068 fi
a0b9e27f 2069
10f2d63a 2070else
a0b9e27f 2071
b12915c1 2072 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2073 if test "x$LINE" != x ; then
2074 eval "DEFAULT_$LINE"
2075 else
2076 no_cache=1
2077 fi
2078
b12915c1 2079 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2080
2081fi
10f2d63a
VZ
2082
2083
b12915c1 2084 eval "$ac_cv_use_libjpeg"
10f2d63a 2085 if test "$no_cache" != 1; then
b12915c1 2086 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2087 fi
2088
b12915c1 2089 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2090 echo "$ac_t""yes" 1>&6
422107f9 2091 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2092 echo "$ac_t""no" 1>&6
422107f9 2093 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2094 echo "$ac_t""system version" 1>&6
4f14bcd8 2095 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2096 echo "$ac_t""builtin version" 1>&6
422107f9 2097 else
a0b9e27f 2098 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2099 fi
a0b9e27f 2100
10f2d63a 2101
a0b9e27f 2102 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
7bb2947d 2103echo "configure:2104: checking for --with-libtiff" >&5
10f2d63a 2104 no_cache=0
a0b9e27f 2105 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2106if test "${with_libtiff+set}" = set; then
2107 withval="$with_libtiff"
a0b9e27f 2108
10f2d63a 2109 if test "$withval" = yes; then
b12915c1 2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2111 elif test "$withval" = no; then
b12915c1 2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2113 elif test "$withval" = sys; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2115 elif test "$withval" = builtin; then
2116 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2117 else
a0b9e27f 2118 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2119 fi
a0b9e27f 2120
10f2d63a 2121else
a0b9e27f 2122
b12915c1 2123 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2124 if test "x$LINE" != x ; then
2125 eval "DEFAULT_$LINE"
2126 else
2127 no_cache=1
2128 fi
2129
b12915c1 2130 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2131
2132fi
10f2d63a
VZ
2133
2134
b12915c1 2135 eval "$ac_cv_use_libtiff"
10f2d63a 2136 if test "$no_cache" != 1; then
b12915c1 2137 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2138 fi
2139
b12915c1 2140 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2141 echo "$ac_t""yes" 1>&6
0dcf9893 2142 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2143 echo "$ac_t""no" 1>&6
0dcf9893 2144 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2145 echo "$ac_t""system version" 1>&6
4f14bcd8 2146 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2147 echo "$ac_t""builtin version" 1>&6
0dcf9893 2148 else
a0b9e27f 2149 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2150 fi
a0b9e27f 2151
10f2d63a 2152
a0b9e27f 2153 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
7bb2947d 2154echo "configure:2155: checking for --with-opengl" >&5
10f2d63a 2155 no_cache=0
a0b9e27f 2156 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2157if test "${with_opengl+set}" = set; then
2158 withval="$with_opengl"
a0b9e27f 2159
10f2d63a 2160 if test "$withval" = yes; then
b12915c1 2161 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2162 else
b12915c1 2163 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2164 fi
a0b9e27f 2165
10f2d63a 2166else
a0b9e27f 2167
b12915c1 2168 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2169 if test "x$LINE" != x ; then
2170 eval "DEFAULT_$LINE"
2171 else
2172 no_cache=1
2173 fi
2174
b12915c1 2175 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2176
2177fi
10f2d63a
VZ
2178
2179
b12915c1 2180 eval "$ac_cv_use_opengl"
10f2d63a 2181 if test "$no_cache" != 1; then
b12915c1 2182 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2183 fi
2184
b12915c1 2185 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2186 echo "$ac_t""yes" 1>&6
10f2d63a 2187 else
a0b9e27f 2188 echo "$ac_t""no" 1>&6
10f2d63a 2189 fi
a0b9e27f 2190
10f2d63a 2191
b12915c1
VZ
2192fi
2193
5c6fa7d2 2194
a0b9e27f 2195 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
7bb2947d 2196echo "configure:2197: checking for --with-dmalloc" >&5
8284b0c5 2197 no_cache=0
a0b9e27f 2198 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2199if test "${with_dmalloc+set}" = set; then
2200 withval="$with_dmalloc"
a0b9e27f 2201
c7a2bf27 2202 if test "$withval" = yes; then
b12915c1 2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2204 else
b12915c1 2205 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2206 fi
a0b9e27f 2207
c7a2bf27 2208else
a0b9e27f 2209
b12915c1 2210 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2211 if test "x$LINE" != x ; then
2212 eval "DEFAULT_$LINE"
2213 else
2214 no_cache=1
2215 fi
2216
b12915c1 2217 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2218
2219fi
c7a2bf27
RR
2220
2221
b12915c1 2222 eval "$ac_cv_use_dmalloc"
c7a2bf27 2223 if test "$no_cache" != 1; then
b12915c1 2224 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2225 fi
2226
b12915c1 2227 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2228 echo "$ac_t""yes" 1>&6
c7a2bf27 2229 else
a0b9e27f 2230 echo "$ac_t""no" 1>&6
c7a2bf27 2231 fi
a0b9e27f 2232
c7a2bf27 2233
a0b9e27f 2234 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
7bb2947d 2235echo "configure:2236: checking for --with-regex" >&5
3e44f09d 2236 no_cache=0
a0b9e27f 2237 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2238if test "${with_regex+set}" = set; then
2239 withval="$with_regex"
a0b9e27f 2240
3e44f09d
VZ
2241 if test "$withval" = yes; then
2242 ac_cv_use_regex='wxUSE_REGEX=yes'
2243 elif test "$withval" = no; then
2244 ac_cv_use_regex='wxUSE_REGEX=no'
2245 elif test "$withval" = sys; then
2246 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2247 elif test "$withval" = builtin; then
2248 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2249 else
a0b9e27f 2250 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2251 fi
a0b9e27f 2252
3e44f09d 2253else
a0b9e27f 2254
3e44f09d
VZ
2255 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2263
2264fi
3e44f09d
VZ
2265
2266
2267 eval "$ac_cv_use_regex"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2273 echo "$ac_t""yes" 1>&6
3e44f09d 2274 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2275 echo "$ac_t""no" 1>&6
3e44f09d 2276 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2277 echo "$ac_t""system version" 1>&6
4f14bcd8 2278 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2279 echo "$ac_t""builtin version" 1>&6
3e44f09d 2280 else
a0b9e27f 2281 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2282 fi
a0b9e27f 2283
3e44f09d 2284
a0b9e27f 2285 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
7bb2947d 2286echo "configure:2287: checking for --with-zlib" >&5
10f2d63a 2287 no_cache=0
a0b9e27f 2288 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2289if test "${with_zlib+set}" = set; then
2290 withval="$with_zlib"
a0b9e27f 2291
10f2d63a 2292 if test "$withval" = yes; then
b12915c1 2293 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2294 elif test "$withval" = no; then
b12915c1 2295 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2296 elif test "$withval" = sys; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2298 elif test "$withval" = builtin; then
2299 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2300 else
a0b9e27f 2301 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2302 fi
a0b9e27f 2303
10f2d63a 2304else
a0b9e27f 2305
b12915c1 2306 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2307 if test "x$LINE" != x ; then
2308 eval "DEFAULT_$LINE"
2309 else
2310 no_cache=1
2311 fi
2312
b12915c1 2313 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2314
2315fi
10f2d63a
VZ
2316
2317
b12915c1 2318 eval "$ac_cv_use_zlib"
10f2d63a 2319 if test "$no_cache" != 1; then
b12915c1 2320 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2321 fi
2322
b12915c1 2323 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2324 echo "$ac_t""yes" 1>&6
422107f9 2325 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2326 echo "$ac_t""no" 1>&6
422107f9 2327 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2328 echo "$ac_t""system version" 1>&6
4f14bcd8 2329 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2330 echo "$ac_t""builtin version" 1>&6
422107f9 2331 else
a0b9e27f 2332 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2333 fi
a0b9e27f 2334
10f2d63a 2335
a0b9e27f 2336 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
7bb2947d 2337echo "configure:2338: checking for --with-odbc" >&5
10f2d63a 2338 no_cache=0
a0b9e27f 2339 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2340if test "${with_odbc+set}" = set; then
2341 withval="$with_odbc"
a0b9e27f 2342
10f2d63a
VZ
2343 if test "$withval" = yes; then
2344 ac_cv_use_odbc='wxUSE_ODBC=yes'
2345 else
2346 ac_cv_use_odbc='wxUSE_ODBC=no'
2347 fi
a0b9e27f 2348
10f2d63a 2349else
a0b9e27f 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2359
2360fi
10f2d63a
VZ
2361
2362
2363 eval "$ac_cv_use_odbc"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2369 echo "$ac_t""yes" 1>&6
10f2d63a 2370 else
a0b9e27f 2371 echo "$ac_t""no" 1>&6
10f2d63a 2372 fi
a0b9e27f 2373
52127426 2374
8284b0c5
MB
2375
2376
5005acfe
VZ
2377 enablestring=
2378 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
7bb2947d 2379echo "configure:2380: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-shared or --disable-shared was given.
2382if test "${enable_shared+set}" = set; then
2383 enableval="$enable_shared"
a0b9e27f 2384
10f2d63a
VZ
2385 if test "$enableval" = yes; then
2386 ac_cv_use_shared='wxUSE_SHARED=yes'
2387 else
2388 ac_cv_use_shared='wxUSE_SHARED=no'
2389 fi
a0b9e27f 2390
10f2d63a 2391else
a0b9e27f 2392
10f2d63a
VZ
2393 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2401
2402fi
10f2d63a
VZ
2403
2404
2405 eval "$ac_cv_use_shared"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2411 echo "$ac_t""yes" 1>&6
10f2d63a 2412 else
a0b9e27f 2413 echo "$ac_t""no" 1>&6
10f2d63a 2414 fi
a0b9e27f 2415
10f2d63a 2416
5005acfe
VZ
2417 enablestring=
2418 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
7bb2947d 2419echo "configure:2420: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2420 no_cache=0
3a922bb4
RL
2421 # Check whether --enable-soname or --disable-soname was given.
2422if test "${enable_soname+set}" = set; then
2423 enableval="$enable_soname"
a0b9e27f 2424
00cf1208 2425 if test "$enableval" = yes; then
3a922bb4 2426 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2427 else
3a922bb4 2428 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2429 fi
a0b9e27f 2430
00cf1208 2431else
a0b9e27f 2432
3a922bb4 2433 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2434 if test "x$LINE" != x ; then
2435 eval "DEFAULT_$LINE"
2436 else
2437 no_cache=1
2438 fi
2439
3a922bb4 2440 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2441
2442fi
00cf1208
RR
2443
2444
3a922bb4 2445 eval "$ac_cv_use_soname"
00cf1208 2446 if test "$no_cache" != 1; then
3a922bb4 2447 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2448 fi
2449
3a922bb4 2450 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2451 echo "$ac_t""yes" 1>&6
00cf1208 2452 else
a0b9e27f 2453 echo "$ac_t""no" 1>&6
00cf1208 2454 fi
a0b9e27f 2455
00cf1208 2456
5005acfe
VZ
2457 enablestring=
2458 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
7bb2947d 2459echo "configure:2460: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2460 no_cache=0
2461 # Check whether --enable-optimise or --disable-optimise was given.
2462if test "${enable_optimise+set}" = set; then
2463 enableval="$enable_optimise"
a0b9e27f 2464
10f2d63a
VZ
2465 if test "$enableval" = yes; then
2466 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2467 else
2468 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2469 fi
a0b9e27f 2470
10f2d63a 2471else
a0b9e27f 2472
10f2d63a
VZ
2473 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2481
2482fi
10f2d63a
VZ
2483
2484
2485 eval "$ac_cv_use_optimise"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2491 echo "$ac_t""yes" 1>&6
10f2d63a 2492 else
a0b9e27f 2493 echo "$ac_t""no" 1>&6
10f2d63a 2494 fi
a0b9e27f 2495
10f2d63a 2496
5005acfe
VZ
2497 enablestring=
2498 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
7bb2947d 2499echo "configure:2500: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2500 no_cache=0
2501 # Check whether --enable-debug or --disable-debug was given.
2502if test "${enable_debug+set}" = set; then
2503 enableval="$enable_debug"
a0b9e27f 2504
10f2d63a
VZ
2505 if test "$enableval" = yes; then
2506 ac_cv_use_debug='wxUSE_DEBUG=yes'
2507 else
2508 ac_cv_use_debug='wxUSE_DEBUG=no'
2509 fi
a0b9e27f 2510
10f2d63a 2511else
a0b9e27f 2512
10f2d63a
VZ
2513 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
2520 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2521
2522fi
10f2d63a
VZ
2523
2524
2525 eval "$ac_cv_use_debug"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2531 echo "$ac_t""yes" 1>&6
10f2d63a 2532 else
a0b9e27f 2533 echo "$ac_t""no" 1>&6
10f2d63a 2534 fi
a0b9e27f 2535
52127426 2536
8284b0c5 2537
5005acfe
VZ
2538 enablestring=
2539 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
7bb2947d 2540echo "configure:2541: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2541 no_cache=0
2542 # Check whether --enable-precomp or --disable-precomp was given.
2543if test "${enable_precomp+set}" = set; then
2544 enableval="$enable_precomp"
a0b9e27f 2545
683dccda
GD
2546 if test "$enableval" = yes; then
2547 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2548 else
2549 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2550 fi
a0b9e27f 2551
683dccda 2552else
a0b9e27f 2553
683dccda
GD
2554 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2562
2563fi
683dccda
GD
2564
2565
2566 eval "$ac_cv_use_precomp"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2572 echo "$ac_t""yes" 1>&6
683dccda 2573 else
a0b9e27f 2574 echo "$ac_t""no" 1>&6
683dccda 2575 fi
a0b9e27f 2576
683dccda 2577
10f2d63a
VZ
2578if test "$wxUSE_DEBUG" = "yes"; then
2579 DEFAULT_wxUSE_DEBUG_FLAG=yes
2580 DEFAULT_wxUSE_DEBUG_INFO=yes
2581elif test "$wxUSE_DEBUG" = "no"; then
2582 DEFAULT_wxUSE_DEBUG_FLAG=no
2583 DEFAULT_wxUSE_DEBUG_INFO=no
2584fi
2585
8284b0c5 2586
5005acfe
VZ
2587 enablestring=
2588 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
7bb2947d 2589echo "configure:2590: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2590 no_cache=0
2591 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2592if test "${enable_debug_flag+set}" = set; then
2593 enableval="$enable_debug_flag"
a0b9e27f 2594
10f2d63a
VZ
2595 if test "$enableval" = yes; then
2596 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2597 else
2598 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2599 fi
a0b9e27f 2600
10f2d63a 2601else
a0b9e27f 2602
10f2d63a
VZ
2603 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2611
2612fi
10f2d63a
VZ
2613
2614
2615 eval "$ac_cv_use_debug_flag"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2621 echo "$ac_t""yes" 1>&6
10f2d63a 2622 else
a0b9e27f 2623 echo "$ac_t""no" 1>&6
10f2d63a 2624 fi
a0b9e27f 2625
10f2d63a 2626
5005acfe
VZ
2627 enablestring=
2628 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
7bb2947d 2629echo "configure:2630: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2630 no_cache=0
2631 # Check whether --enable-debug_info or --disable-debug_info was given.
2632if test "${enable_debug_info+set}" = set; then
2633 enableval="$enable_debug_info"
a0b9e27f 2634
10f2d63a
VZ
2635 if test "$enableval" = yes; then
2636 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2637 else
2638 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2639 fi
a0b9e27f 2640
10f2d63a 2641else
a0b9e27f 2642
10f2d63a
VZ
2643 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2651
2652fi
10f2d63a
VZ
2653
2654
2655 eval "$ac_cv_use_debug_info"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2661 echo "$ac_t""yes" 1>&6
10f2d63a 2662 else
a0b9e27f 2663 echo "$ac_t""no" 1>&6
10f2d63a 2664 fi
a0b9e27f 2665
10f2d63a 2666
5005acfe
VZ
2667 enablestring=
2668 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
7bb2947d 2669echo "configure:2670: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2670 no_cache=0
2671 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2672if test "${enable_debug_gdb+set}" = set; then
2673 enableval="$enable_debug_gdb"
a0b9e27f 2674
10f2d63a
VZ
2675 if test "$enableval" = yes; then
2676 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2677 else
2678 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2679 fi
a0b9e27f 2680
10f2d63a 2681else
a0b9e27f 2682
10f2d63a
VZ
2683 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2691
2692fi
10f2d63a
VZ
2693
2694
2695 eval "$ac_cv_use_debug_gdb"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2701 echo "$ac_t""yes" 1>&6
10f2d63a 2702 else
a0b9e27f 2703 echo "$ac_t""no" 1>&6
10f2d63a 2704 fi
a0b9e27f 2705
10f2d63a 2706
5005acfe
VZ
2707 enablestring=
2708 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
7bb2947d 2709echo "configure:2710: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2710 no_cache=0
2711 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2712if test "${enable_debug_cntxt+set}" = set; then
2713 enableval="$enable_debug_cntxt"
a0b9e27f 2714
10f2d63a
VZ
2715 if test "$enableval" = yes; then
2716 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2717 else
2718 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2719 fi
a0b9e27f 2720
10f2d63a 2721else
a0b9e27f 2722
10f2d63a
VZ
2723 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2731
2732fi
10f2d63a
VZ
2733
2734
2735 eval "$ac_cv_use_debug_cntxt"
2736 if test "$no_cache" != 1; then
2737 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2738 fi
2739
2740 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2741 echo "$ac_t""yes" 1>&6
10f2d63a 2742 else
a0b9e27f 2743 echo "$ac_t""no" 1>&6
10f2d63a 2744 fi
a0b9e27f 2745
10f2d63a 2746
5005acfe
VZ
2747 enablestring=
2748 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
7bb2947d 2749echo "configure:2750: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2750 no_cache=0
2751 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2752if test "${enable_mem_tracing+set}" = set; then
2753 enableval="$enable_mem_tracing"
a0b9e27f 2754
10f2d63a
VZ
2755 if test "$enableval" = yes; then
2756 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2757 else
2758 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2759 fi
a0b9e27f 2760
10f2d63a 2761else
a0b9e27f 2762
10f2d63a
VZ
2763 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2771
2772fi
10f2d63a
VZ
2773
2774
2775 eval "$ac_cv_use_mem_tracing"
2776 if test "$no_cache" != 1; then
2777 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2778 fi
2779
2780 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2781 echo "$ac_t""yes" 1>&6
10f2d63a 2782 else
a0b9e27f 2783 echo "$ac_t""no" 1>&6
10f2d63a 2784 fi
a0b9e27f 2785
10f2d63a 2786
5005acfe
VZ
2787 enablestring=
2788 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
7bb2947d 2789echo "configure:2790: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2790 no_cache=0
2791 # Check whether --enable-profile or --disable-profile was given.
2792if test "${enable_profile+set}" = set; then
2793 enableval="$enable_profile"
a0b9e27f 2794
10f2d63a
VZ
2795 if test "$enableval" = yes; then
2796 ac_cv_use_profile='wxUSE_PROFILE=yes'
2797 else
2798 ac_cv_use_profile='wxUSE_PROFILE=no'
2799 fi
a0b9e27f 2800
10f2d63a 2801else
a0b9e27f 2802
10f2d63a
VZ
2803 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2804 if test "x$LINE" != x ; then
2805 eval "DEFAULT_$LINE"
2806 else
2807 no_cache=1
2808 fi
2809
2810 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2811
2812fi
10f2d63a
VZ
2813
2814
2815 eval "$ac_cv_use_profile"
2816 if test "$no_cache" != 1; then
2817 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2818 fi
2819
2820 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2821 echo "$ac_t""yes" 1>&6
10f2d63a 2822 else
a0b9e27f 2823 echo "$ac_t""no" 1>&6
10f2d63a 2824 fi
a0b9e27f 2825
10f2d63a 2826
5005acfe
VZ
2827 enablestring=
2828 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
7bb2947d 2829echo "configure:2830: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2830 no_cache=0
2831 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2832if test "${enable_no_rtti+set}" = set; then
2833 enableval="$enable_no_rtti"
a0b9e27f 2834
10f2d63a
VZ
2835 if test "$enableval" = yes; then
2836 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2837 else
2838 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2839 fi
a0b9e27f 2840
10f2d63a 2841else
a0b9e27f 2842
10f2d63a
VZ
2843 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2851
2852fi
10f2d63a
VZ
2853
2854
2855 eval "$ac_cv_use_no_rtti"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2861 echo "$ac_t""yes" 1>&6
10f2d63a 2862 else
a0b9e27f 2863 echo "$ac_t""no" 1>&6
10f2d63a 2864 fi
a0b9e27f 2865
10f2d63a 2866
5005acfe
VZ
2867 enablestring=
2868 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
7bb2947d 2869echo "configure:2870: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2870 no_cache=0
2871 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2872if test "${enable_no_exceptions+set}" = set; then
2873 enableval="$enable_no_exceptions"
a0b9e27f 2874
10f2d63a
VZ
2875 if test "$enableval" = yes; then
2876 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2877 else
2878 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2879 fi
a0b9e27f 2880
10f2d63a 2881else
a0b9e27f 2882
10f2d63a
VZ
2883 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2884 if test "x$LINE" != x ; then
2885 eval "DEFAULT_$LINE"
2886 else
2887 no_cache=1
2888 fi
2889
2890 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2891
2892fi
10f2d63a
VZ
2893
2894
2895 eval "$ac_cv_use_no_exceptions"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2901 echo "$ac_t""yes" 1>&6
10f2d63a 2902 else
a0b9e27f 2903 echo "$ac_t""no" 1>&6
10f2d63a 2904 fi
a0b9e27f 2905
10f2d63a 2906
5005acfe
VZ
2907 enablestring=
2908 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
7bb2947d 2909echo "configure:2910: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2910 no_cache=0
2911 # Check whether --enable-permissive or --disable-permissive was given.
2912if test "${enable_permissive+set}" = set; then
2913 enableval="$enable_permissive"
a0b9e27f 2914
10f2d63a
VZ
2915 if test "$enableval" = yes; then
2916 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2917 else
2918 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2919 fi
a0b9e27f 2920
10f2d63a 2921else
a0b9e27f 2922
10f2d63a
VZ
2923 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2924 if test "x$LINE" != x ; then
2925 eval "DEFAULT_$LINE"
2926 else
2927 no_cache=1
2928 fi
2929
2930 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2931
2932fi
10f2d63a
VZ
2933
2934
2935 eval "$ac_cv_use_permissive"
2936 if test "$no_cache" != 1; then
2937 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2938 fi
2939
2940 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2941 echo "$ac_t""yes" 1>&6
10f2d63a 2942 else
a0b9e27f 2943 echo "$ac_t""no" 1>&6
10f2d63a 2944 fi
a0b9e27f 2945
10f2d63a 2946
5005acfe
VZ
2947 enablestring=
2948 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
7bb2947d 2949echo "configure:2950: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2950 no_cache=0
2951 # Check whether --enable-no_deps or --disable-no_deps was given.
2952if test "${enable_no_deps+set}" = set; then
2953 enableval="$enable_no_deps"
a0b9e27f 2954
10f2d63a
VZ
2955 if test "$enableval" = yes; then
2956 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2957 else
2958 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2959 fi
a0b9e27f 2960
10f2d63a 2961else
a0b9e27f 2962
10f2d63a
VZ
2963 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2971
2972fi
10f2d63a
VZ
2973
2974
2975 eval "$ac_cv_use_no_deps"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2981 echo "$ac_t""yes" 1>&6
10f2d63a 2982 else
a0b9e27f 2983 echo "$ac_t""no" 1>&6
10f2d63a 2984 fi
a0b9e27f 2985
52127426 2986
8284b0c5 2987
5005acfe
VZ
2988 enablestring=
2989 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
7bb2947d 2990echo "configure:2991: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2991 no_cache=0
2992 # Check whether --enable-compat20 or --disable-compat20 was given.
2993if test "${enable_compat20+set}" = set; then
2994 enableval="$enable_compat20"
a0b9e27f 2995
54276ccf
VZ
2996 if test "$enableval" = yes; then
2997 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2998 else
2999 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3000 fi
a0b9e27f 3001
54276ccf 3002else
a0b9e27f 3003
54276ccf
VZ
3004 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3005 if test "x$LINE" != x ; then
3006 eval "DEFAULT_$LINE"
3007 else
3008 no_cache=1
3009 fi
3010
3011 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
3012
3013fi
54276ccf
VZ
3014
3015
3016 eval "$ac_cv_use_compat20"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3022 echo "$ac_t""yes" 1>&6
54276ccf 3023 else
a0b9e27f 3024 echo "$ac_t""no" 1>&6
54276ccf 3025 fi
a0b9e27f 3026
54276ccf 3027
65d8ef1e 3028 enablestring=
5005acfe 3029 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
7bb2947d 3030echo "configure:3031: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3031 no_cache=0
3032 # Check whether --enable-compat22 or --disable-compat22 was given.
3033if test "${enable_compat22+set}" = set; then
3034 enableval="$enable_compat22"
a0b9e27f 3035
54276ccf
VZ
3036 if test "$enableval" = yes; then
3037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3038 else
3039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3040 fi
a0b9e27f 3041
54276ccf 3042else
a0b9e27f 3043
54276ccf
VZ
3044 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3052
3053fi
54276ccf
VZ
3054
3055
3056 eval "$ac_cv_use_compat22"
3057 if test "$no_cache" != 1; then
3058 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3059 fi
3060
3061 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3062 echo "$ac_t""yes" 1>&6
54276ccf 3063 else
a0b9e27f 3064 echo "$ac_t""no" 1>&6
54276ccf 3065 fi
a0b9e27f 3066
54276ccf 3067
65d8ef1e
VS
3068 enablestring=disable
3069 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
7bb2947d 3070echo "configure:3071: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3071 no_cache=0
3072 # Check whether --enable-compat24 or --disable-compat24 was given.
3073if test "${enable_compat24+set}" = set; then
3074 enableval="$enable_compat24"
3075
3076 if test "$enableval" = yes; then
3077 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3078 else
3079 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3080 fi
3081
3082else
3083
3084 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3092
3093fi
3094
3095
3096 eval "$ac_cv_use_compat24"
3097 if test "$no_cache" != 1; then
3098 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3099 fi
3100
3101 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3102 echo "$ac_t""yes" 1>&6
3103 else
3104 echo "$ac_t""no" 1>&6
3105 fi
3106
3107
3bd8fb5f
RD
3108# Check whether --enable-rpath or --disable-rpath was given.
3109if test "${enable_rpath+set}" = set; then
3110 enableval="$enable_rpath"
3111 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3112fi
3113
3bd8fb5f
RD
3114
3115if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3116 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3117fi
3118
8284b0c5
MB
3119
3120
3121
5005acfe
VZ
3122 enablestring=
3123 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
7bb2947d 3124echo "configure:3125: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3125 no_cache=0
3126 # Check whether --enable-intl or --disable-intl was given.
3127if test "${enable_intl+set}" = set; then
3128 enableval="$enable_intl"
a0b9e27f 3129
10f2d63a
VZ
3130 if test "$enableval" = yes; then
3131 ac_cv_use_intl='wxUSE_INTL=yes'
3132 else
3133 ac_cv_use_intl='wxUSE_INTL=no'
3134 fi
a0b9e27f 3135
10f2d63a 3136else
a0b9e27f 3137
10f2d63a
VZ
3138 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3146
3147fi
10f2d63a
VZ
3148
3149
3150 eval "$ac_cv_use_intl"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3156 echo "$ac_t""yes" 1>&6
10f2d63a 3157 else
a0b9e27f 3158 echo "$ac_t""no" 1>&6
10f2d63a 3159 fi
a0b9e27f 3160
10f2d63a 3161
5005acfe
VZ
3162 enablestring=
3163 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
7bb2947d 3164echo "configure:3165: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3165 no_cache=0
3166 # Check whether --enable-config or --disable-config was given.
3167if test "${enable_config+set}" = set; then
3168 enableval="$enable_config"
a0b9e27f 3169
10f2d63a
VZ
3170 if test "$enableval" = yes; then
3171 ac_cv_use_config='wxUSE_CONFIG=yes'
3172 else
3173 ac_cv_use_config='wxUSE_CONFIG=no'
3174 fi
a0b9e27f 3175
10f2d63a 3176else
a0b9e27f 3177
10f2d63a
VZ
3178 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3186
3187fi
10f2d63a
VZ
3188
3189
3190 eval "$ac_cv_use_config"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3196 echo "$ac_t""yes" 1>&6
10f2d63a 3197 else
a0b9e27f 3198 echo "$ac_t""no" 1>&6
10f2d63a 3199 fi
a0b9e27f 3200
52127426 3201
8284b0c5 3202
5005acfe
VZ
3203 enablestring=
3204 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
7bb2947d 3205echo "configure:3206: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3206 no_cache=0
3207 # Check whether --enable-protocols or --disable-protocols was given.
3208if test "${enable_protocols+set}" = set; then
3209 enableval="$enable_protocols"
a0b9e27f 3210
a1622950
VZ
3211 if test "$enableval" = yes; then
3212 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3213 else
3214 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3215 fi
a0b9e27f 3216
a1622950 3217else
a0b9e27f 3218
a1622950
VZ
3219 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3220 if test "x$LINE" != x ; then
3221 eval "DEFAULT_$LINE"
3222 else
3223 no_cache=1
3224 fi
3225
3226 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3227
3228fi
a1622950
VZ
3229
3230
3231 eval "$ac_cv_use_protocols"
3232 if test "$no_cache" != 1; then
3233 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3234 fi
3235
3236 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3237 echo "$ac_t""yes" 1>&6
a1622950 3238 else
a0b9e27f 3239 echo "$ac_t""no" 1>&6
a1622950 3240 fi
a0b9e27f 3241
a1622950 3242
5005acfe
VZ
3243 enablestring=
3244 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
7bb2947d 3245echo "configure:3246: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3246 no_cache=0
3247 # Check whether --enable-ftp or --disable-ftp was given.
3248if test "${enable_ftp+set}" = set; then
3249 enableval="$enable_ftp"
a0b9e27f 3250
a1622950
VZ
3251 if test "$enableval" = yes; then
3252 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3253 else
3254 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3255 fi
a0b9e27f 3256
a1622950 3257else
a0b9e27f 3258
a1622950
VZ
3259 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3267
3268fi
a1622950
VZ
3269
3270
3271 eval "$ac_cv_use_ftp"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3277 echo "$ac_t""yes" 1>&6
a1622950 3278 else
a0b9e27f 3279 echo "$ac_t""no" 1>&6
a1622950 3280 fi
a0b9e27f 3281
a1622950 3282
5005acfe
VZ
3283 enablestring=
3284 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
7bb2947d 3285echo "configure:3286: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3286 no_cache=0
3287 # Check whether --enable-http or --disable-http was given.
3288if test "${enable_http+set}" = set; then
3289 enableval="$enable_http"
a0b9e27f 3290
a1622950
VZ
3291 if test "$enableval" = yes; then
3292 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3293 else
3294 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3295 fi
a0b9e27f 3296
a1622950 3297else
a0b9e27f 3298
a1622950
VZ
3299 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
3306 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3307
3308fi
a1622950
VZ
3309
3310
3311 eval "$ac_cv_use_http"
3312 if test "$no_cache" != 1; then
3313 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3314 fi
3315
3316 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3317 echo "$ac_t""yes" 1>&6
a1622950 3318 else
a0b9e27f 3319 echo "$ac_t""no" 1>&6
a1622950 3320 fi
a0b9e27f 3321
a1622950 3322
5005acfe
VZ
3323 enablestring=
3324 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
7bb2947d 3325echo "configure:3326: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3326 no_cache=0
3327 # Check whether --enable-fileproto or --disable-fileproto was given.
3328if test "${enable_fileproto+set}" = set; then
3329 enableval="$enable_fileproto"
a0b9e27f 3330
a1622950
VZ
3331 if test "$enableval" = yes; then
3332 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3333 else
3334 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3335 fi
a0b9e27f 3336
a1622950 3337else
a0b9e27f 3338
a1622950
VZ
3339 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3340 if test "x$LINE" != x ; then
3341 eval "DEFAULT_$LINE"
3342 else
3343 no_cache=1
3344 fi
3345
3346 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3347
3348fi
a1622950
VZ
3349
3350
3351 eval "$ac_cv_use_fileproto"
3352 if test "$no_cache" != 1; then
3353 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3354 fi
3355
3356 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3357 echo "$ac_t""yes" 1>&6
a1622950 3358 else
a0b9e27f 3359 echo "$ac_t""no" 1>&6
a1622950 3360 fi
a0b9e27f 3361
a1622950 3362
5005acfe
VZ
3363 enablestring=
3364 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
7bb2947d 3365echo "configure:3366: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3366 no_cache=0
3367 # Check whether --enable-sockets or --disable-sockets was given.
3368if test "${enable_sockets+set}" = set; then
3369 enableval="$enable_sockets"
a0b9e27f 3370
10f2d63a
VZ
3371 if test "$enableval" = yes; then
3372 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3373 else
3374 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3375 fi
a0b9e27f 3376
10f2d63a 3377else
a0b9e27f 3378
10f2d63a
VZ
3379 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3380 if test "x$LINE" != x ; then
3381 eval "DEFAULT_$LINE"
3382 else
3383 no_cache=1
3384 fi
3385
3386 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3387
3388fi
10f2d63a
VZ
3389
3390
3391 eval "$ac_cv_use_sockets"
3392 if test "$no_cache" != 1; then
3393 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3394 fi
3395
3396 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3397 echo "$ac_t""yes" 1>&6
10f2d63a 3398 else
a0b9e27f 3399 echo "$ac_t""no" 1>&6
10f2d63a 3400 fi
a0b9e27f 3401
8284b0c5 3402
5005acfe
VZ
3403 enablestring=
3404 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
7bb2947d 3405echo "configure:3406: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3406 no_cache=0
3407 # Check whether --enable-ole or --disable-ole was given.
3408if test "${enable_ole+set}" = set; then
3409 enableval="$enable_ole"
3410
3411 if test "$enableval" = yes; then
3412 ac_cv_use_ole='wxUSE_OLE=yes'
3413 else
3414 ac_cv_use_ole='wxUSE_OLE=no'
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3427
3428fi
3429
3430
3431 eval "$ac_cv_use_ole"
3432 if test "$no_cache" != 1; then
3433 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3434 fi
3435
3436 if test "$wxUSE_OLE" = yes; then
3437 echo "$ac_t""yes" 1>&6
3438 else
3439 echo "$ac_t""no" 1>&6
3440 fi
3441
3442
5005acfe
VZ
3443 enablestring=
3444 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
7bb2947d 3445echo "configure:3446: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3446 no_cache=0
3447 # Check whether --enable-dataobj or --disable-dataobj was given.
3448if test "${enable_dataobj+set}" = set; then
3449 enableval="$enable_dataobj"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3453 else
3454 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3467
3468fi
3469
3470
3471 eval "$ac_cv_use_dataobj"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_DATAOBJ" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
52127426 3483
5005acfe
VZ
3484 enablestring=
3485 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
7bb2947d 3486echo "configure:3487: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3487 no_cache=0
eb4efbdc
VZ
3488 # Check whether --enable-ipc or --disable-ipc was given.
3489if test "${enable_ipc+set}" = set; then
3490 enableval="$enable_ipc"
a0b9e27f 3491
10f2d63a 3492 if test "$enableval" = yes; then
eb4efbdc 3493 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3494 else
eb4efbdc 3495 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3496 fi
a0b9e27f 3497
10f2d63a 3498else
a0b9e27f 3499
eb4efbdc 3500 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
eb4efbdc 3507 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3508
3509fi
10f2d63a
VZ
3510
3511
eb4efbdc 3512 eval "$ac_cv_use_ipc"
10f2d63a 3513 if test "$no_cache" != 1; then
eb4efbdc 3514 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3515 fi
3516
eb4efbdc 3517 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3518 echo "$ac_t""yes" 1>&6
10f2d63a 3519 else
a0b9e27f 3520 echo "$ac_t""no" 1>&6
10f2d63a 3521 fi
a0b9e27f 3522
52127426 3523
8284b0c5 3524
5005acfe
VZ
3525 enablestring=
3526 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
7bb2947d 3527echo "configure:3528: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3528 no_cache=0
3529 # Check whether --enable-cmdline or --disable-cmdline was given.
3530if test "${enable_cmdline+set}" = set; then
3531 enableval="$enable_cmdline"
a0b9e27f 3532
1e6feb95
VZ
3533 if test "$enableval" = yes; then
3534 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3535 else
3536 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3537 fi
a0b9e27f 3538
1e6feb95 3539else
a0b9e27f 3540
1e6feb95
VZ
3541 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3549
3550fi
1e6feb95
VZ
3551
3552
3553 eval "$ac_cv_use_cmdline"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3559 echo "$ac_t""yes" 1>&6
1e6feb95 3560 else
a0b9e27f 3561 echo "$ac_t""no" 1>&6
1e6feb95 3562 fi
a0b9e27f 3563
1e6feb95 3564
5005acfe
VZ
3565 enablestring=
3566 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
7bb2947d 3567echo "configure:3568: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3568 no_cache=0
3569 # Check whether --enable-datetime or --disable-datetime was given.
3570if test "${enable_datetime+set}" = set; then
3571 enableval="$enable_datetime"
a0b9e27f 3572
1e6feb95
VZ
3573 if test "$enableval" = yes; then
3574 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3575 else
3576 ac_cv_use_datetime='wxUSE_DATETIME=no'
3577 fi
a0b9e27f 3578
1e6feb95 3579else
a0b9e27f 3580
1e6feb95
VZ
3581 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3582 if test "x$LINE" != x ; then
3583 eval "DEFAULT_$LINE"
3584 else
3585 no_cache=1
3586 fi
3587
3588 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3589
3590fi
1e6feb95
VZ
3591
3592
3593 eval "$ac_cv_use_datetime"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3599 echo "$ac_t""yes" 1>&6
1e6feb95 3600 else
a0b9e27f 3601 echo "$ac_t""no" 1>&6
1e6feb95 3602 fi
a0b9e27f 3603
1e6feb95 3604
5005acfe
VZ
3605 enablestring=
3606 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
7bb2947d 3607echo "configure:3608: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3608 no_cache=0
3609 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3610if test "${enable_stopwatch+set}" = set; then
3611 enableval="$enable_stopwatch"
a0b9e27f 3612
1e6feb95
VZ
3613 if test "$enableval" = yes; then
3614 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3615 else
3616 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3617 fi
a0b9e27f 3618
1e6feb95 3619else
a0b9e27f 3620
1e6feb95
VZ
3621 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
3628 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3629
3630fi
1e6feb95
VZ
3631
3632
3633 eval "$ac_cv_use_stopwatch"
3634 if test "$no_cache" != 1; then
3635 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3636 fi
3637
3638 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3639 echo "$ac_t""yes" 1>&6
1e6feb95 3640 else
a0b9e27f 3641 echo "$ac_t""no" 1>&6
1e6feb95 3642 fi
a0b9e27f 3643
1e6feb95 3644
5005acfe
VZ
3645 enablestring=
3646 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
7bb2947d 3647echo "configure:3648: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3648 no_cache=0
eb4efbdc
VZ
3649 # Check whether --enable-dialupman or --disable-dialupman was given.
3650if test "${enable_dialupman+set}" = set; then
3651 enableval="$enable_dialupman"
a0b9e27f 3652
10f2d63a 3653 if test "$enableval" = yes; then
eb4efbdc 3654 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3655 else
eb4efbdc 3656 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3657 fi
a0b9e27f 3658
10f2d63a 3659else
a0b9e27f 3660
eb4efbdc 3661 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3662 if test "x$LINE" != x ; then
3663 eval "DEFAULT_$LINE"
3664 else
3665 no_cache=1
3666 fi
3667
eb4efbdc 3668 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3669
3670fi
10f2d63a
VZ
3671
3672
eb4efbdc 3673 eval "$ac_cv_use_dialupman"
10f2d63a 3674 if test "$no_cache" != 1; then
eb4efbdc 3675 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3676 fi
3677
eb4efbdc 3678 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3679 echo "$ac_t""yes" 1>&6
10f2d63a 3680 else
a0b9e27f 3681 echo "$ac_t""no" 1>&6
10f2d63a 3682 fi
a0b9e27f 3683
10f2d63a 3684
5005acfe
VZ
3685 enablestring=
3686 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
7bb2947d 3687echo "configure:3688: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3688 no_cache=0
3689 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3690if test "${enable_apple_ieee+set}" = set; then
3691 enableval="$enable_apple_ieee"
a0b9e27f 3692
10f2d63a
VZ
3693 if test "$enableval" = yes; then
3694 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3695 else
3696 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3697 fi
a0b9e27f 3698
10f2d63a 3699else
a0b9e27f 3700
10f2d63a
VZ
3701 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3709
3710fi
10f2d63a
VZ
3711
3712
3713 eval "$ac_cv_use_apple_ieee"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3719 echo "$ac_t""yes" 1>&6
10f2d63a 3720 else
a0b9e27f 3721 echo "$ac_t""no" 1>&6
10f2d63a 3722 fi
a0b9e27f 3723
10f2d63a 3724
5005acfe
VZ
3725 enablestring=
3726 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
7bb2947d 3727echo "configure:3728: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3728 no_cache=0
1e6feb95
VZ
3729 # Check whether --enable-timer or --disable-timer was given.
3730if test "${enable_timer+set}" = set; then
3731 enableval="$enable_timer"
a0b9e27f 3732
10f2d63a 3733 if test "$enableval" = yes; then
1e6feb95 3734 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3735 else
1e6feb95 3736 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3737 fi
a0b9e27f 3738
10f2d63a 3739else
a0b9e27f 3740
1e6feb95 3741 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
1e6feb95 3748 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3749
3750fi
10f2d63a
VZ
3751
3752
1e6feb95 3753 eval "$ac_cv_use_timer"
10f2d63a 3754 if test "$no_cache" != 1; then
1e6feb95 3755 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3756 fi
3757
1e6feb95 3758 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3759 echo "$ac_t""yes" 1>&6
10f2d63a 3760 else
a0b9e27f 3761 echo "$ac_t""no" 1>&6
10f2d63a 3762 fi
a0b9e27f 3763
10f2d63a 3764
5005acfe
VZ
3765 enablestring=
3766 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
7bb2947d 3767echo "configure:3768: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3768 no_cache=0
3769 # Check whether --enable-wave or --disable-wave was given.
3770if test "${enable_wave+set}" = set; then
3771 enableval="$enable_wave"
a0b9e27f 3772
10f2d63a
VZ
3773 if test "$enableval" = yes; then
3774 ac_cv_use_wave='wxUSE_WAVE=yes'
3775 else
3776 ac_cv_use_wave='wxUSE_WAVE=no'
3777 fi
a0b9e27f 3778
10f2d63a 3779else
a0b9e27f 3780
10f2d63a
VZ
3781 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3789
3790fi
10f2d63a
VZ
3791
3792
3793 eval "$ac_cv_use_wave"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3799 echo "$ac_t""yes" 1>&6
10f2d63a 3800 else
a0b9e27f 3801 echo "$ac_t""no" 1>&6
10f2d63a 3802 fi
a0b9e27f 3803
10f2d63a 3804
5005acfe
VZ
3805 enablestring=
3806 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
7bb2947d 3807echo "configure:3808: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3808 no_cache=0
3809 # Check whether --enable-fraction or --disable-fraction was given.
3810if test "${enable_fraction+set}" = set; then
3811 enableval="$enable_fraction"
a0b9e27f 3812
10f2d63a
VZ
3813 if test "$enableval" = yes; then
3814 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3815 else
3816 ac_cv_use_fraction='wxUSE_FRACTION=no'
3817 fi
a0b9e27f 3818
10f2d63a 3819else
a0b9e27f 3820
10f2d63a
VZ
3821 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3829
3830fi
10f2d63a
VZ
3831
3832
3833 eval "$ac_cv_use_fraction"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3839 echo "$ac_t""yes" 1>&6
10f2d63a 3840 else
a0b9e27f 3841 echo "$ac_t""no" 1>&6
10f2d63a 3842 fi
a0b9e27f 3843
10f2d63a 3844
5005acfe
VZ
3845 enablestring=
3846 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
7bb2947d 3847echo "configure:3848: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3848 no_cache=0
3849 # Check whether --enable-dynlib or --disable-dynlib was given.
3850if test "${enable_dynlib+set}" = set; then
3851 enableval="$enable_dynlib"
a0b9e27f 3852
10f2d63a
VZ
3853 if test "$enableval" = yes; then
3854 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3855 else
3856 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3857 fi
a0b9e27f 3858
10f2d63a 3859else
a0b9e27f 3860
10f2d63a
VZ
3861 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3869
3870fi
10f2d63a
VZ
3871
3872
3873 eval "$ac_cv_use_dynlib"
3874 if test "$no_cache" != 1; then
3875 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3876 fi
3877
3878 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3879 echo "$ac_t""yes" 1>&6
10f2d63a 3880 else
a0b9e27f 3881 echo "$ac_t""no" 1>&6
10f2d63a 3882 fi
a0b9e27f 3883
10f2d63a 3884
5005acfe
VZ
3885 enablestring=
3886 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
7bb2947d 3887echo "configure:3888: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3888 no_cache=0
3889 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3890if test "${enable_dynamicloader+set}" = set; then
3891 enableval="$enable_dynamicloader"
a0b9e27f 3892
0b9ab0bd
RL
3893 if test "$enableval" = yes; then
3894 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3895 else
3896 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3897 fi
a0b9e27f 3898
0b9ab0bd 3899else
a0b9e27f 3900
0b9ab0bd
RL
3901 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3909
3910fi
0b9ab0bd
RL
3911
3912
3913 eval "$ac_cv_use_dynamicloader"
3914 if test "$no_cache" != 1; then
3915 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3916 fi
3917
3918 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3919 echo "$ac_t""yes" 1>&6
0b9ab0bd 3920 else
a0b9e27f 3921 echo "$ac_t""no" 1>&6
0b9ab0bd 3922 fi
a0b9e27f 3923
0b9ab0bd 3924
5005acfe
VZ
3925 enablestring=
3926 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
7bb2947d 3927echo "configure:3928: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3928 no_cache=0
3929 # Check whether --enable-longlong or --disable-longlong was given.
3930if test "${enable_longlong+set}" = set; then
3931 enableval="$enable_longlong"
a0b9e27f 3932
10f2d63a
VZ
3933 if test "$enableval" = yes; then
3934 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3935 else
3936 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3937 fi
a0b9e27f 3938
10f2d63a 3939else
a0b9e27f 3940
10f2d63a
VZ
3941 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3949
3950fi
10f2d63a
VZ
3951
3952
3953 eval "$ac_cv_use_longlong"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3959 echo "$ac_t""yes" 1>&6
10f2d63a 3960 else
a0b9e27f 3961 echo "$ac_t""no" 1>&6
10f2d63a 3962 fi
a0b9e27f 3963
10f2d63a 3964
5005acfe
VZ
3965 enablestring=
3966 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
7bb2947d 3967echo "configure:3968: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3968 no_cache=0
3969 # Check whether --enable-geometry or --disable-geometry was given.
3970if test "${enable_geometry+set}" = set; then
3971 enableval="$enable_geometry"
a0b9e27f 3972
e8f65ba6
RR
3973 if test "$enableval" = yes; then
3974 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3975 else
3976 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3977 fi
a0b9e27f 3978
e8f65ba6 3979else
a0b9e27f 3980
e8f65ba6
RR
3981 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3982 if test "x$LINE" != x ; then
3983 eval "DEFAULT_$LINE"
3984 else
3985 no_cache=1
3986 fi
3987
3988 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3989
3990fi
e8f65ba6
RR
3991
3992
3993 eval "$ac_cv_use_geometry"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3999 echo "$ac_t""yes" 1>&6
e8f65ba6 4000 else
a0b9e27f 4001 echo "$ac_t""no" 1>&6
e8f65ba6 4002 fi
a0b9e27f 4003
e8f65ba6 4004
5005acfe
VZ
4005 enablestring=
4006 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
7bb2947d 4007echo "configure:4008: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4008 no_cache=0
4009 # Check whether --enable-log or --disable-log was given.
4010if test "${enable_log+set}" = set; then
4011 enableval="$enable_log"
a0b9e27f 4012
10f2d63a
VZ
4013 if test "$enableval" = yes; then
4014 ac_cv_use_log='wxUSE_LOG=yes'
4015 else
4016 ac_cv_use_log='wxUSE_LOG=no'
4017 fi
a0b9e27f 4018
10f2d63a 4019else
a0b9e27f 4020
10f2d63a
VZ
4021 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4029
4030fi
10f2d63a
VZ
4031
4032
4033 eval "$ac_cv_use_log"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4039 echo "$ac_t""yes" 1>&6
10f2d63a 4040 else
a0b9e27f 4041 echo "$ac_t""no" 1>&6
10f2d63a 4042 fi
a0b9e27f 4043
10f2d63a 4044
5005acfe
VZ
4045 enablestring=
4046 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
7bb2947d 4047echo "configure:4048: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4048 no_cache=0
4049 # Check whether --enable-streams or --disable-streams was given.
4050if test "${enable_streams+set}" = set; then
4051 enableval="$enable_streams"
a0b9e27f 4052
10f2d63a
VZ
4053 if test "$enableval" = yes; then
4054 ac_cv_use_streams='wxUSE_STREAMS=yes'
4055 else
4056 ac_cv_use_streams='wxUSE_STREAMS=no'
4057 fi
a0b9e27f 4058
10f2d63a 4059else
a0b9e27f 4060
10f2d63a
VZ
4061 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4062 if test "x$LINE" != x ; then
4063 eval "DEFAULT_$LINE"
4064 else
4065 no_cache=1
4066 fi
4067
4068 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4069
4070fi
10f2d63a
VZ
4071
4072
4073 eval "$ac_cv_use_streams"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4079 echo "$ac_t""yes" 1>&6
10f2d63a 4080 else
a0b9e27f 4081 echo "$ac_t""no" 1>&6
10f2d63a 4082 fi
a0b9e27f 4083
10f2d63a 4084
5005acfe
VZ
4085 enablestring=
4086 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
7bb2947d 4087echo "configure:4088: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4088 no_cache=0
4089 # Check whether --enable-file or --disable-file was given.
4090if test "${enable_file+set}" = set; then
4091 enableval="$enable_file"
a0b9e27f 4092
10f2d63a
VZ
4093 if test "$enableval" = yes; then
4094 ac_cv_use_file='wxUSE_FILE=yes'
4095 else
4096 ac_cv_use_file='wxUSE_FILE=no'
4097 fi
a0b9e27f 4098
10f2d63a 4099else
a0b9e27f 4100
10f2d63a
VZ
4101 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4109
4110fi
10f2d63a
VZ
4111
4112
4113 eval "$ac_cv_use_file"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4119 echo "$ac_t""yes" 1>&6
10f2d63a 4120 else
a0b9e27f 4121 echo "$ac_t""no" 1>&6
10f2d63a 4122 fi
a0b9e27f 4123
10f2d63a 4124
5005acfe
VZ
4125 enablestring=
4126 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
7bb2947d 4127echo "configure:4128: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4128 no_cache=0
1e6feb95
VZ
4129 # Check whether --enable-ffile or --disable-ffile was given.
4130if test "${enable_ffile+set}" = set; then
4131 enableval="$enable_ffile"
a0b9e27f 4132
10f2d63a 4133 if test "$enableval" = yes; then
1e6feb95 4134 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4135 else
1e6feb95 4136 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4137 fi
a0b9e27f 4138
10f2d63a 4139else
a0b9e27f 4140
1e6feb95 4141 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4142 if test "x$LINE" != x ; then
4143 eval "DEFAULT_$LINE"
4144 else
4145 no_cache=1
4146 fi
4147
1e6feb95 4148 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4149
4150fi
10f2d63a
VZ
4151
4152
1e6feb95 4153 eval "$ac_cv_use_ffile"
10f2d63a 4154 if test "$no_cache" != 1; then
1e6feb95 4155 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4156 fi
4157
1e6feb95 4158 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4159 echo "$ac_t""yes" 1>&6
10f2d63a 4160 else
a0b9e27f 4161 echo "$ac_t""no" 1>&6
10f2d63a 4162 fi
a0b9e27f 4163
10f2d63a 4164
5005acfe
VZ
4165 enablestring=
4166 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
7bb2947d 4167echo "configure:4168: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4168 no_cache=0
4169 # Check whether --enable-textbuf or --disable-textbuf was given.
4170if test "${enable_textbuf+set}" = set; then
4171 enableval="$enable_textbuf"
a0b9e27f 4172
a3a584a7
VZ
4173 if test "$enableval" = yes; then
4174 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4175 else
4176 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4177 fi
a0b9e27f 4178
a3a584a7 4179else
a0b9e27f 4180
a3a584a7
VZ
4181 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4182 if test "x$LINE" != x ; then
4183 eval "DEFAULT_$LINE"
4184 else
4185 no_cache=1
4186 fi
4187
4188 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4189
4190fi
a3a584a7
VZ
4191
4192
4193 eval "$ac_cv_use_textbuf"
4194 if test "$no_cache" != 1; then
4195 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4196 fi
4197
4198 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4199 echo "$ac_t""yes" 1>&6
a3a584a7 4200 else
a0b9e27f 4201 echo "$ac_t""no" 1>&6
a3a584a7 4202 fi
a0b9e27f 4203
a3a584a7 4204
5005acfe
VZ
4205 enablestring=
4206 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
7bb2947d 4207echo "configure:4208: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4208 no_cache=0
1e6feb95
VZ
4209 # Check whether --enable-textfile or --disable-textfile was given.
4210if test "${enable_textfile+set}" = set; then
4211 enableval="$enable_textfile"
a0b9e27f 4212
10f2d63a 4213 if test "$enableval" = yes; then
1e6feb95 4214 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4215 else
1e6feb95 4216 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4217 fi
a0b9e27f 4218
10f2d63a 4219else
a0b9e27f 4220
1e6feb95 4221 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
1e6feb95 4228 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4229
4230fi
10f2d63a
VZ
4231
4232
1e6feb95 4233 eval "$ac_cv_use_textfile"
10f2d63a 4234 if test "$no_cache" != 1; then
1e6feb95 4235 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4236 fi
4237
1e6feb95 4238 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4239 echo "$ac_t""yes" 1>&6
10f2d63a 4240 else
a0b9e27f 4241 echo "$ac_t""no" 1>&6
10f2d63a 4242 fi
a0b9e27f 4243
10f2d63a 4244
5005acfe
VZ
4245 enablestring=
4246 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
7bb2947d 4247echo "configure:4248: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4248 no_cache=0
1e6feb95
VZ
4249 # Check whether --enable-fontmap or --disable-fontmap was given.
4250if test "${enable_fontmap+set}" = set; then
4251 enableval="$enable_fontmap"
a0b9e27f 4252
10f2d63a 4253 if test "$enableval" = yes; then
1e6feb95 4254 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4255 else
1e6feb95 4256 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4257 fi
a0b9e27f 4258
10f2d63a 4259else
a0b9e27f 4260
1e6feb95 4261 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
1e6feb95 4268 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4269
4270fi
10f2d63a
VZ
4271
4272
1e6feb95 4273 eval "$ac_cv_use_fontmap"
10f2d63a 4274 if test "$no_cache" != 1; then
1e6feb95 4275 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4276 fi
4277
1e6feb95 4278 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4279 echo "$ac_t""yes" 1>&6
10f2d63a 4280 else
a0b9e27f 4281 echo "$ac_t""no" 1>&6
10f2d63a 4282 fi
a0b9e27f 4283
10f2d63a 4284
5005acfe
VZ
4285 enablestring=
4286 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
7bb2947d 4287echo "configure:4288: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4288 no_cache=0
1e6feb95
VZ
4289 # Check whether --enable-unicode or --disable-unicode was given.
4290if test "${enable_unicode+set}" = set; then
4291 enableval="$enable_unicode"
a0b9e27f 4292
1e6feb95
VZ
4293 if test "$enableval" = yes; then
4294 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4295 else
4296 ac_cv_use_unicode='wxUSE_UNICODE=no'
4297 fi
a0b9e27f 4298
1e6feb95 4299else
a0b9e27f 4300
1e6feb95
VZ
4301 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4302 if test "x$LINE" != x ; then
4303 eval "DEFAULT_$LINE"
4304 else
4305 no_cache=1
4306 fi
4307
4308 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4309
4310fi
1e6feb95
VZ
4311
4312
4313 eval "$ac_cv_use_unicode"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4319 echo "$ac_t""yes" 1>&6
1e6feb95 4320 else
a0b9e27f 4321 echo "$ac_t""no" 1>&6
1e6feb95 4322 fi
a0b9e27f 4323
1e6feb95 4324
5005acfe
VZ
4325 enablestring=
4326 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
7bb2947d 4327echo "configure:4328: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4328 no_cache=0
4329 # Check whether --enable-mslu or --disable-mslu was given.
4330if test "${enable_mslu+set}" = set; then
4331 enableval="$enable_mslu"
a0b9e27f 4332
a72a4bfa
VS
4333 if test "$enableval" = yes; then
4334 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4335 else
4336 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4337 fi
a0b9e27f 4338
a72a4bfa 4339else
a0b9e27f 4340
a72a4bfa
VS
4341 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4349
4350fi
a72a4bfa
VS
4351
4352
4353 eval "$ac_cv_use_mslu"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4359 echo "$ac_t""yes" 1>&6
a72a4bfa 4360 else
a0b9e27f 4361 echo "$ac_t""no" 1>&6
a72a4bfa 4362 fi
a0b9e27f 4363
a72a4bfa 4364
5005acfe
VZ
4365 enablestring=
4366 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
7bb2947d 4367echo "configure:4368: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4368 no_cache=0
4369 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4370if test "${enable_wxprintfv+set}" = set; then
4371 enableval="$enable_wxprintfv"
a0b9e27f 4372
1e6feb95 4373 if test "$enableval" = yes; then
10f2d63a
VZ
4374 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4375 else
4376 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4377 fi
a0b9e27f 4378
10f2d63a 4379else
a0b9e27f 4380
10f2d63a
VZ
4381 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4389
4390fi
10f2d63a
VZ
4391
4392
4393 eval "$ac_cv_use_wxprintfv"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4399 echo "$ac_t""yes" 1>&6
10f2d63a 4400 else
a0b9e27f 4401 echo "$ac_t""no" 1>&6
10f2d63a 4402 fi
a0b9e27f 4403
10f2d63a 4404
5005acfe
VZ
4405 enablestring=
4406 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
7bb2947d 4407echo "configure:4408: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4408 no_cache=0
4409 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4410if test "${enable_std_iostreams+set}" = set; then
4411 enableval="$enable_std_iostreams"
a0b9e27f 4412
10f2d63a
VZ
4413 if test "$enableval" = yes; then
4414 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4415 else
4416 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4417 fi
a0b9e27f 4418
10f2d63a 4419else
a0b9e27f 4420
10f2d63a
VZ
4421 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4422 if test "x$LINE" != x ; then
4423 eval "DEFAULT_$LINE"
4424 else
4425 no_cache=1
4426 fi
4427
4428 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4429
4430fi
10f2d63a
VZ
4431
4432
4433 eval "$ac_cv_use_std_iostreams"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4439 echo "$ac_t""yes" 1>&6
10f2d63a 4440 else
a0b9e27f 4441 echo "$ac_t""no" 1>&6
10f2d63a 4442 fi
a0b9e27f 4443
10f2d63a 4444
5005acfe
VZ
4445 enablestring=
4446 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
7bb2947d 4447echo "configure:4448: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4448 no_cache=0
4449 # Check whether --enable-filesystem or --disable-filesystem was given.
4450if test "${enable_filesystem+set}" = set; then
4451 enableval="$enable_filesystem"
a0b9e27f 4452
24528b0c
VS
4453 if test "$enableval" = yes; then
4454 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4455 else
4456 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4457 fi
a0b9e27f 4458
24528b0c 4459else
a0b9e27f 4460
24528b0c
VS
4461 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4469
4470fi
24528b0c
VS
4471
4472
4473 eval "$ac_cv_use_filesystem"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4479 echo "$ac_t""yes" 1>&6
24528b0c 4480 else
a0b9e27f 4481 echo "$ac_t""no" 1>&6
24528b0c 4482 fi
a0b9e27f 4483
24528b0c 4484
5005acfe
VZ
4485 enablestring=
4486 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
7bb2947d 4487echo "configure:4488: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4488 no_cache=0
4489 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4490if test "${enable_fs_inet+set}" = set; then
4491 enableval="$enable_fs_inet"
a0b9e27f 4492
10f2d63a
VZ
4493 if test "$enableval" = yes; then
4494 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4495 else
4496 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4497 fi
a0b9e27f 4498
10f2d63a 4499else
a0b9e27f 4500
10f2d63a
VZ
4501 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4509
4510fi
10f2d63a
VZ
4511
4512
4513 eval "$ac_cv_use_fs_inet"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4519 echo "$ac_t""yes" 1>&6
10f2d63a 4520 else
a0b9e27f 4521 echo "$ac_t""no" 1>&6
10f2d63a 4522 fi
a0b9e27f 4523
10f2d63a 4524
5005acfe
VZ
4525 enablestring=
4526 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
7bb2947d 4527echo "configure:4528: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4528 no_cache=0
4529 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4530if test "${enable_fs_zip+set}" = set; then
4531 enableval="$enable_fs_zip"
a0b9e27f 4532
10f2d63a
VZ
4533 if test "$enableval" = yes; then
4534 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4535 else
4536 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4537 fi
a0b9e27f 4538
10f2d63a 4539else
a0b9e27f 4540
10f2d63a
VZ
4541 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4549
4550fi
10f2d63a
VZ
4551
4552
4553 eval "$ac_cv_use_fs_zip"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4559 echo "$ac_t""yes" 1>&6
10f2d63a 4560 else
a0b9e27f 4561 echo "$ac_t""no" 1>&6
10f2d63a 4562 fi
a0b9e27f 4563
10f2d63a 4564
5005acfe
VZ
4565 enablestring=
4566 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
7bb2947d 4567echo "configure:4568: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4568 no_cache=0
4569 # Check whether --enable-zipstream or --disable-zipstream was given.
4570if test "${enable_zipstream+set}" = set; then
4571 enableval="$enable_zipstream"
a0b9e27f 4572
10f2d63a
VZ
4573 if test "$enableval" = yes; then
4574 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4575 else
4576 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4577 fi
a0b9e27f 4578
10f2d63a 4579else
a0b9e27f 4580
10f2d63a
VZ
4581 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4589
4590fi
10f2d63a
VZ
4591
4592
4593 eval "$ac_cv_use_zipstream"
4594 if test "$no_cache" != 1; then
4595 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4596 fi
4597
4598 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4599 echo "$ac_t""yes" 1>&6
10f2d63a 4600 else
a0b9e27f 4601 echo "$ac_t""no" 1>&6
10f2d63a 4602 fi
a0b9e27f 4603
8284b0c5 4604
52127426 4605
5005acfe
VZ
4606 enablestring=
4607 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
7bb2947d 4608echo "configure:4609: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4609 no_cache=0
4610 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4611if test "${enable_catch_segvs+set}" = set; then
4612 enableval="$enable_catch_segvs"
a0b9e27f 4613
eb4efbdc
VZ
4614 if test "$enableval" = yes; then
4615 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4616 else
4617 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4618 fi
a0b9e27f 4619
eb4efbdc 4620else
a0b9e27f 4621
eb4efbdc
VZ
4622 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4630
4631fi
eb4efbdc
VZ
4632
4633
4634 eval "$ac_cv_use_catch_segvs"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4640 echo "$ac_t""yes" 1>&6
eb4efbdc 4641 else
a0b9e27f 4642 echo "$ac_t""no" 1>&6
eb4efbdc 4643 fi
a0b9e27f 4644
eb4efbdc 4645
5005acfe
VZ
4646 enablestring=
4647 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
7bb2947d 4648echo "configure:4649: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4649 no_cache=0
4650 # Check whether --enable-snglinst or --disable-snglinst was given.
4651if test "${enable_snglinst+set}" = set; then
4652 enableval="$enable_snglinst"
a0b9e27f 4653
4f3c5f06
VZ
4654 if test "$enableval" = yes; then
4655 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4656 else
4657 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4658 fi
a0b9e27f 4659
4f3c5f06 4660else
a0b9e27f 4661
4f3c5f06
VZ
4662 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4663 if test "x$LINE" != x ; then
4664 eval "DEFAULT_$LINE"
4665 else
4666 no_cache=1
4667 fi
4668
4669 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4670
4671fi
4f3c5f06
VZ
4672
4673
4674 eval "$ac_cv_use_snglinst"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4680 echo "$ac_t""yes" 1>&6
4f3c5f06 4681 else
a0b9e27f 4682 echo "$ac_t""no" 1>&6
4f3c5f06 4683 fi
a0b9e27f 4684
52127426 4685
8284b0c5 4686
5005acfe
VZ
4687 enablestring=
4688 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
7bb2947d 4689echo "configure:4690: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4690 no_cache=0
4691 # Check whether --enable-mimetype or --disable-mimetype was given.
4692if test "${enable_mimetype+set}" = set; then
4693 enableval="$enable_mimetype"
a0b9e27f 4694
1e6feb95
VZ
4695 if test "$enableval" = yes; then
4696 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4697 else
4698 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4699 fi
a0b9e27f 4700
1e6feb95 4701else
a0b9e27f 4702
1e6feb95
VZ
4703 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4711
4712fi
1e6feb95
VZ
4713
4714
4715 eval "$ac_cv_use_mimetype"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4721 echo "$ac_t""yes" 1>&6
1e6feb95 4722 else
a0b9e27f 4723 echo "$ac_t""no" 1>&6
1e6feb95 4724 fi
a0b9e27f 4725
1e6feb95 4726
5005acfe
VZ
4727 enablestring=
4728 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
7bb2947d 4729echo "configure:4730: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4730 no_cache=0
4731 # Check whether --enable-system_options or --disable-system_options was given.
4732if test "${enable_system_options+set}" = set; then
4733 enableval="$enable_system_options"
a0b9e27f 4734
3e44f09d
VZ
4735 if test "$enableval" = yes; then
4736 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4737 else
4738 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4739 fi
a0b9e27f 4740
3e44f09d 4741else
a0b9e27f 4742
3e44f09d
VZ
4743 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4744 if test "x$LINE" != x ; then
4745 eval "DEFAULT_$LINE"
4746 else
4747 no_cache=1
4748 fi
4749
4750 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4751
4752fi
3e44f09d
VZ
4753
4754
4755 eval "$ac_cv_use_system_options"
4756 if test "$no_cache" != 1; then
4757 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4758 fi
4759
4760 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4761 echo "$ac_t""yes" 1>&6
3e44f09d 4762 else
a0b9e27f 4763 echo "$ac_t""no" 1>&6
3e44f09d 4764 fi
a0b9e27f 4765
8284b0c5 4766
52127426 4767
5005acfe
VZ
4768 enablestring=
4769 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
7bb2947d 4770echo "configure:4771: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4771 no_cache=0
4772 # Check whether --enable-url or --disable-url was given.
4773if test "${enable_url+set}" = set; then
4774 enableval="$enable_url"
a0b9e27f 4775
4cdb0ab0
VS
4776 if test "$enableval" = yes; then
4777 ac_cv_use_url='wxUSE_URL=yes'
4778 else
4779 ac_cv_use_url='wxUSE_URL=no'
4780 fi
a0b9e27f 4781
4cdb0ab0 4782else
a0b9e27f 4783
4cdb0ab0
VS
4784 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4792
4793fi
4cdb0ab0
VS
4794
4795
4796 eval "$ac_cv_use_url"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_URL" = yes; then
a0b9e27f 4802 echo "$ac_t""yes" 1>&6
4cdb0ab0 4803 else
a0b9e27f 4804 echo "$ac_t""no" 1>&6
4cdb0ab0 4805 fi
a0b9e27f 4806
4cdb0ab0 4807
5005acfe
VZ
4808 enablestring=
4809 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
7bb2947d 4810echo "configure:4811: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4811 no_cache=0
4812 # Check whether --enable-protocol or --disable-protocol was given.
4813if test "${enable_protocol+set}" = set; then
4814 enableval="$enable_protocol"
a0b9e27f 4815
4cdb0ab0
VS
4816 if test "$enableval" = yes; then
4817 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4818 else
4819 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4820 fi
a0b9e27f 4821
4cdb0ab0 4822else
a0b9e27f 4823
4cdb0ab0
VS
4824 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4832
4833fi
4cdb0ab0
VS
4834
4835
4836 eval "$ac_cv_use_protocol"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4842 echo "$ac_t""yes" 1>&6
4cdb0ab0 4843 else
a0b9e27f 4844 echo "$ac_t""no" 1>&6
4cdb0ab0 4845 fi
a0b9e27f 4846
4cdb0ab0 4847
5005acfe
VZ
4848 enablestring=
4849 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
7bb2947d 4850echo "configure:4851: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4851 no_cache=0
4852 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4853if test "${enable_protocol_http+set}" = set; then
4854 enableval="$enable_protocol_http"
a0b9e27f 4855
4cdb0ab0
VS
4856 if test "$enableval" = yes; then
4857 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4858 else
4859 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4860 fi
a0b9e27f 4861
4cdb0ab0 4862else
a0b9e27f 4863
4cdb0ab0
VS
4864 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4865 if test "x$LINE" != x ; then
4866 eval "DEFAULT_$LINE"
4867 else
4868 no_cache=1
4869 fi
4870
4871 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4872
4873fi
4cdb0ab0
VS
4874
4875
4876 eval "$ac_cv_use_protocol_http"
4877 if test "$no_cache" != 1; then
4878 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4879 fi
4880
4881 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4882 echo "$ac_t""yes" 1>&6
4cdb0ab0 4883 else
a0b9e27f 4884 echo "$ac_t""no" 1>&6
4cdb0ab0 4885 fi
a0b9e27f 4886
4cdb0ab0 4887
5005acfe
VZ
4888 enablestring=
4889 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
7bb2947d 4890echo "configure:4891: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4891 no_cache=0
4892 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4893if test "${enable_protocol_ftp+set}" = set; then
4894 enableval="$enable_protocol_ftp"
a0b9e27f 4895
4cdb0ab0
VS
4896 if test "$enableval" = yes; then
4897 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4898 else
4899 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4900 fi
a0b9e27f 4901
4cdb0ab0 4902else
a0b9e27f 4903
4cdb0ab0
VS
4904 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4912
4913fi
4cdb0ab0
VS
4914
4915
4916 eval "$ac_cv_use_protocol_ftp"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4922 echo "$ac_t""yes" 1>&6
4cdb0ab0 4923 else
a0b9e27f 4924 echo "$ac_t""no" 1>&6
4cdb0ab0 4925 fi
a0b9e27f 4926
4cdb0ab0 4927
5005acfe
VZ
4928 enablestring=
4929 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
7bb2947d 4930echo "configure:4931: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4931 no_cache=0
4932 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4933if test "${enable_protocol_file+set}" = set; then
4934 enableval="$enable_protocol_file"
a0b9e27f 4935
4cdb0ab0
VS
4936 if test "$enableval" = yes; then
4937 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4938 else
4939 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4940 fi
a0b9e27f 4941
4cdb0ab0 4942else
a0b9e27f 4943
4cdb0ab0
VS
4944 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4952
4953fi
4cdb0ab0
VS
4954
4955
4956 eval "$ac_cv_use_protocol_file"
4957 if test "$no_cache" != 1; then
4958 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4959 fi
4960
4961 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4962 echo "$ac_t""yes" 1>&6
4cdb0ab0 4963 else
a0b9e27f 4964 echo "$ac_t""no" 1>&6
4cdb0ab0 4965 fi
a0b9e27f 4966
52127426 4967
8284b0c5
MB
4968
4969
4970
5005acfe
VZ
4971 enablestring=
4972 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
7bb2947d 4973echo "configure:4974: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4974 no_cache=0
4975 # Check whether --enable-threads or --disable-threads was given.
4976if test "${enable_threads+set}" = set; then
4977 enableval="$enable_threads"
a0b9e27f 4978
10f2d63a
VZ
4979 if test "$enableval" = yes; then
4980 ac_cv_use_threads='wxUSE_THREADS=yes'
4981 else
4982 ac_cv_use_threads='wxUSE_THREADS=no'
4983 fi
a0b9e27f 4984
10f2d63a 4985else
a0b9e27f 4986
10f2d63a
VZ
4987 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4995
4996fi
10f2d63a
VZ
4997
4998
4999 eval "$ac_cv_use_threads"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5005 echo "$ac_t""yes" 1>&6
10f2d63a 5006 else
a0b9e27f 5007 echo "$ac_t""no" 1>&6
10f2d63a 5008 fi
a0b9e27f 5009
10f2d63a 5010
b12915c1
VZ
5011if test "$wxUSE_GUI" = "yes"; then
5012
8284b0c5
MB
5013
5014
5005acfe
VZ
5015 enablestring=
5016 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
7bb2947d 5017echo "configure:5018: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5018 no_cache=0
5019 # Check whether --enable-docview or --disable-docview was given.
5020if test "${enable_docview+set}" = set; then
5021 enableval="$enable_docview"
a0b9e27f 5022
10f2d63a
VZ
5023 if test "$enableval" = yes; then
5024 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5025 else
5026 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5027 fi
a0b9e27f 5028
10f2d63a 5029else
a0b9e27f 5030
10f2d63a
VZ
5031 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5032 if test "x$LINE" != x ; then
5033 eval "DEFAULT_$LINE"
5034 else
5035 no_cache=1
5036 fi
5037
5038 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5039
5040fi
10f2d63a
VZ
5041
5042
5043 eval "$ac_cv_use_docview"
5044 if test "$no_cache" != 1; then
5045 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5046 fi
5047
5048 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5049 echo "$ac_t""yes" 1>&6
10f2d63a 5050 else
a0b9e27f 5051 echo "$ac_t""no" 1>&6
10f2d63a 5052 fi
a0b9e27f 5053
10f2d63a 5054
5005acfe
VZ
5055 enablestring=
5056 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
7bb2947d 5057echo "configure:5058: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5058 no_cache=0
5059 # Check whether --enable-help or --disable-help was given.
5060if test "${enable_help+set}" = set; then
5061 enableval="$enable_help"
a0b9e27f 5062
10f2d63a
VZ
5063 if test "$enableval" = yes; then
5064 ac_cv_use_help='wxUSE_HELP=yes'
5065 else
5066 ac_cv_use_help='wxUSE_HELP=no'
5067 fi
a0b9e27f 5068
10f2d63a 5069else
a0b9e27f 5070
10f2d63a
VZ
5071 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5072 if test "x$LINE" != x ; then
5073 eval "DEFAULT_$LINE"
5074 else
5075 no_cache=1
5076 fi
5077
5078 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5079
5080fi
10f2d63a
VZ
5081
5082
5083 eval "$ac_cv_use_help"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5089 echo "$ac_t""yes" 1>&6
10f2d63a 5090 else
a0b9e27f 5091 echo "$ac_t""no" 1>&6
10f2d63a 5092 fi
a0b9e27f 5093
10f2d63a 5094
5005acfe
VZ
5095 enablestring=
5096 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
7bb2947d 5097echo "configure:5098: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5098 no_cache=0
5099 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5100if test "${enable_mshtmlhelp+set}" = set; then
5101 enableval="$enable_mshtmlhelp"
a0b9e27f 5102
29fd3c0c
VS
5103 if test "$enableval" = yes; then
5104 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5105 else
5106 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5107 fi
a0b9e27f 5108
29fd3c0c 5109else
a0b9e27f 5110
29fd3c0c
VS
5111 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5119
5120fi
29fd3c0c
VS
5121
5122
5123 eval "$ac_cv_use_mshtmlhelp"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5129 echo "$ac_t""yes" 1>&6
29fd3c0c 5130 else
a0b9e27f 5131 echo "$ac_t""no" 1>&6
29fd3c0c 5132 fi
a0b9e27f 5133
29fd3c0c 5134
5005acfe
VZ
5135 enablestring=
5136 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
7bb2947d 5137echo "configure:5138: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5138 no_cache=0
5139 # Check whether --enable-html or --disable-html was given.
5140if test "${enable_html+set}" = set; then
5141 enableval="$enable_html"
a0b9e27f 5142
3379ed37
VZ
5143 if test "$enableval" = yes; then
5144 ac_cv_use_html='wxUSE_HTML=yes'
5145 else
5146 ac_cv_use_html='wxUSE_HTML=no'
5147 fi
a0b9e27f 5148
3379ed37 5149else
a0b9e27f 5150
3379ed37
VZ
5151 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5159
5160fi
3379ed37
VZ
5161
5162
5163 eval "$ac_cv_use_html"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5169 echo "$ac_t""yes" 1>&6
3379ed37 5170 else
a0b9e27f 5171 echo "$ac_t""no" 1>&6
3379ed37 5172 fi
a0b9e27f 5173
3379ed37 5174
5005acfe
VZ
5175 enablestring=
5176 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
7bb2947d 5177echo "configure:5178: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5178 no_cache=0
5179 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5180if test "${enable_htmlhelp+set}" = set; then
5181 enableval="$enable_htmlhelp"
a0b9e27f 5182
3379ed37
VZ
5183 if test "$enableval" = yes; then
5184 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5185 else
5186 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5187 fi
a0b9e27f 5188
3379ed37 5189else
a0b9e27f 5190
3379ed37
VZ
5191 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5199
5200fi
3379ed37
VZ
5201
5202
5203 eval "$ac_cv_use_htmlhelp"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5209 echo "$ac_t""yes" 1>&6
3379ed37 5210 else
a0b9e27f 5211 echo "$ac_t""no" 1>&6
3379ed37 5212 fi
a0b9e27f 5213
3379ed37 5214
5005acfe
VZ
5215 enablestring=
5216 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
7bb2947d 5217echo "configure:5218: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5218 no_cache=0
5219 # Check whether --enable-constraints or --disable-constraints was given.
5220if test "${enable_constraints+set}" = set; then
5221 enableval="$enable_constraints"
a0b9e27f 5222
10f2d63a
VZ
5223 if test "$enableval" = yes; then
5224 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5225 else
5226 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5227 fi
a0b9e27f 5228
10f2d63a 5229else
a0b9e27f 5230
10f2d63a
VZ
5231 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5239
5240fi
10f2d63a
VZ
5241
5242
5243 eval "$ac_cv_use_constraints"
5244 if test "$no_cache" != 1; then
5245 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5246 fi
5247
5248 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5249 echo "$ac_t""yes" 1>&6
10f2d63a 5250 else
a0b9e27f 5251 echo "$ac_t""no" 1>&6
10f2d63a 5252 fi
a0b9e27f 5253
10f2d63a 5254
5005acfe
VZ
5255 enablestring=
5256 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
7bb2947d 5257echo "configure:5258: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5258 no_cache=0
5259 # Check whether --enable-printarch or --disable-printarch was given.
5260if test "${enable_printarch+set}" = set; then
5261 enableval="$enable_printarch"
a0b9e27f 5262
10f2d63a
VZ
5263 if test "$enableval" = yes; then
5264 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5265 else
5266 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5267 fi
a0b9e27f 5268
10f2d63a 5269else
a0b9e27f 5270
10f2d63a
VZ
5271 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5279
5280fi
10f2d63a
VZ
5281
5282
5283 eval "$ac_cv_use_printarch"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5289 echo "$ac_t""yes" 1>&6
10f2d63a 5290 else
a0b9e27f 5291 echo "$ac_t""no" 1>&6
10f2d63a 5292 fi
a0b9e27f 5293
10f2d63a 5294
5005acfe
VZ
5295 enablestring=
5296 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
7bb2947d 5297echo "configure:5298: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5298 no_cache=0
5299 # Check whether --enable-mdi or --disable-mdi was given.
5300if test "${enable_mdi+set}" = set; then
5301 enableval="$enable_mdi"
a0b9e27f 5302
10f2d63a
VZ
5303 if test "$enableval" = yes; then
5304 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5305 else
5306 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5307 fi
a0b9e27f 5308
10f2d63a 5309else
a0b9e27f 5310
10f2d63a
VZ
5311 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5319
5320fi
10f2d63a
VZ
5321
5322
5323 eval "$ac_cv_use_mdi"
5324 if test "$no_cache" != 1; then
5325 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5326 fi
5327
5328 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5329 echo "$ac_t""yes" 1>&6
10f2d63a 5330 else
a0b9e27f 5331 echo "$ac_t""no" 1>&6
10f2d63a 5332 fi
a0b9e27f 5333
698dcdb6 5334
5005acfe
VZ
5335 enablestring=
5336 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
7bb2947d 5337echo "configure:5338: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5338 no_cache=0
5339 # Check whether --enable-loggui or --disable-loggui was given.
5340if test "${enable_loggui+set}" = set; then
5341 enableval="$enable_loggui"
a0b9e27f 5342
1e6feb95
VZ
5343 if test "$enableval" = yes; then
5344 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5345 else
5346 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5347 fi
a0b9e27f 5348
1e6feb95 5349else
a0b9e27f 5350
1e6feb95
VZ
5351 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5359
5360fi
1e6feb95
VZ
5361
5362
5363 eval "$ac_cv_use_loggui"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5369 echo "$ac_t""yes" 1>&6
1e6feb95 5370 else
a0b9e27f 5371 echo "$ac_t""no" 1>&6
1e6feb95 5372 fi
a0b9e27f 5373
1e6feb95 5374
5005acfe
VZ
5375 enablestring=
5376 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
7bb2947d 5377echo "configure:5378: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5378 no_cache=0
5379 # Check whether --enable-logwin or --disable-logwin was given.
5380if test "${enable_logwin+set}" = set; then
5381 enableval="$enable_logwin"
a0b9e27f 5382
1e6feb95
VZ
5383 if test "$enableval" = yes; then
5384 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5385 else
5386 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5387 fi
a0b9e27f 5388
1e6feb95 5389else
a0b9e27f 5390
1e6feb95
VZ
5391 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5399
5400fi
1e6feb95
VZ
5401
5402
5403 eval "$ac_cv_use_logwin"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5409 echo "$ac_t""yes" 1>&6
1e6feb95 5410 else
a0b9e27f 5411 echo "$ac_t""no" 1>&6
1e6feb95 5412 fi
a0b9e27f 5413
1e6feb95 5414
5005acfe
VZ
5415 enablestring=
5416 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
7bb2947d 5417echo "configure:5418: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5418 no_cache=0
5419 # Check whether --enable-logdialog or --disable-logdialog was given.
5420if test "${enable_logdialog+set}" = set; then
5421 enableval="$enable_logdialog"
a0b9e27f 5422
69d27ff7
MB
5423 if test "$enableval" = yes; then
5424 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5425 else
5426 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5427 fi
a0b9e27f 5428
69d27ff7 5429else
a0b9e27f 5430
69d27ff7
MB
5431 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5439
5440fi
69d27ff7
MB
5441
5442
5443 eval "$ac_cv_use_logdialog"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5449 echo "$ac_t""yes" 1>&6
69d27ff7 5450 else
a0b9e27f 5451 echo "$ac_t""no" 1>&6
69d27ff7 5452 fi
a0b9e27f 5453
8284b0c5 5454
52127426 5455
5005acfe
VZ
5456 enablestring=
5457 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
7bb2947d 5458echo "configure:5459: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5459 no_cache=0
5460 # Check whether --enable-postscript or --disable-postscript was given.
5461if test "${enable_postscript+set}" = set; then
5462 enableval="$enable_postscript"
a0b9e27f 5463
10f2d63a
VZ
5464 if test "$enableval" = yes; then
5465 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5466 else
5467 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5468 fi
a0b9e27f 5469
10f2d63a 5470else
a0b9e27f 5471
10f2d63a
VZ
5472 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5480
5481fi
10f2d63a
VZ
5482
5483
5484 eval "$ac_cv_use_postscript"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5490 echo "$ac_t""yes" 1>&6
10f2d63a 5491 else
a0b9e27f 5492 echo "$ac_t""no" 1>&6
10f2d63a 5493 fi
a0b9e27f 5494
8284b0c5
MB
5495
5496
52127426 5497
8284b0c5 5498
5005acfe
VZ
5499 enablestring=
5500 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
7bb2947d 5501echo "configure:5502: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5502 no_cache=0
5503 # Check whether --enable-resources or --disable-resources was given.
5504if test "${enable_resources+set}" = set; then
5505 enableval="$enable_resources"
a0b9e27f 5506
10f2d63a
VZ
5507 if test "$enableval" = yes; then
5508 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5509 else
5510 ac_cv_use_resources='wxUSE_RESOURCES=no'
5511 fi
a0b9e27f 5512
10f2d63a 5513else
a0b9e27f 5514
10f2d63a
VZ
5515 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5523
5524fi
10f2d63a
VZ
5525
5526
5527 eval "$ac_cv_use_resources"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5533 echo "$ac_t""yes" 1>&6
10f2d63a 5534 else
a0b9e27f 5535 echo "$ac_t""no" 1>&6
10f2d63a 5536 fi
a0b9e27f 5537
8284b0c5 5538
52127426 5539
5005acfe
VZ
5540 enablestring=
5541 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
7bb2947d 5542echo "configure:5543: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5543 no_cache=0
5544 # Check whether --enable-xresources or --disable-xresources was given.
5545if test "${enable_xresources+set}" = set; then
5546 enableval="$enable_xresources"
a0b9e27f 5547
10f2d63a
VZ
5548 if test "$enableval" = yes; then
5549 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5550 else
5551 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5552 fi
a0b9e27f 5553
10f2d63a 5554else
a0b9e27f 5555
10f2d63a
VZ
5556 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5564
5565fi
10f2d63a
VZ
5566
5567
5568 eval "$ac_cv_use_xresources"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5574 echo "$ac_t""yes" 1>&6
10f2d63a 5575 else
a0b9e27f 5576 echo "$ac_t""no" 1>&6
10f2d63a 5577 fi
a0b9e27f 5578
8284b0c5
MB
5579
5580
52127426 5581
5005acfe
VZ
5582 enablestring=
5583 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
7bb2947d 5584echo "configure:5585: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5585 no_cache=0
5586 # Check whether --enable-clipboard or --disable-clipboard was given.
5587if test "${enable_clipboard+set}" = set; then
5588 enableval="$enable_clipboard"
a0b9e27f 5589
10f2d63a
VZ
5590 if test "$enableval" = yes; then
5591 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5592 else
5593 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5594 fi
a0b9e27f 5595
10f2d63a 5596else
a0b9e27f 5597
10f2d63a
VZ
5598 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5606
5607fi
10f2d63a
VZ
5608
5609
5610 eval "$ac_cv_use_clipboard"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5616 echo "$ac_t""yes" 1>&6
10f2d63a 5617 else
a0b9e27f 5618 echo "$ac_t""no" 1>&6
10f2d63a 5619 fi
a0b9e27f 5620
10f2d63a 5621
5005acfe
VZ
5622 enablestring=
5623 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
7bb2947d 5624echo "configure:5625: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5625 no_cache=0
5626 # Check whether --enable-dnd or --disable-dnd was given.
5627if test "${enable_dnd+set}" = set; then
5628 enableval="$enable_dnd"
a0b9e27f 5629
10f2d63a
VZ
5630 if test "$enableval" = yes; then
5631 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5632 else
5633 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5634 fi
a0b9e27f 5635
10f2d63a 5636else
a0b9e27f 5637
10f2d63a
VZ
5638 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5646
5647fi
10f2d63a
VZ
5648
5649
5650 eval "$ac_cv_use_dnd"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5656 echo "$ac_t""yes" 1>&6
10f2d63a 5657 else
a0b9e27f 5658 echo "$ac_t""no" 1>&6
10f2d63a 5659 fi
a0b9e27f 5660
10f2d63a 5661
5005acfe
VZ
5662 enablestring=
5663 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
7bb2947d 5664echo "configure:5665: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5665 no_cache=0
5666 # Check whether --enable-metafile or --disable-metafile was given.
5667if test "${enable_metafile+set}" = set; then
5668 enableval="$enable_metafile"
a0b9e27f 5669
b64f0a5f
RL
5670 if test "$enableval" = yes; then
5671 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5672 else
5673 ac_cv_use_metafile='wxUSE_METAFILE=no'
5674 fi
a0b9e27f 5675
b64f0a5f 5676else
a0b9e27f 5677
b64f0a5f
RL
5678 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5686
5687fi
b64f0a5f
RL
5688
5689
5690 eval "$ac_cv_use_metafile"
5691 if test "$no_cache" != 1; then
5692 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5693 fi
5694
5695 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5696 echo "$ac_t""yes" 1>&6
b64f0a5f 5697 else
a0b9e27f 5698 echo "$ac_t""no" 1>&6
b64f0a5f 5699 fi
a0b9e27f 5700
52127426 5701
8284b0c5 5702
52127426 5703
8284b0c5 5704
5005acfe
VZ
5705 enablestring=
5706 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
7bb2947d 5707echo "configure:5708: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5708 no_cache=0
5709 # Check whether --enable-controls or --disable-controls was given.
5710if test "${enable_controls+set}" = set; then
5711 enableval="$enable_controls"
a0b9e27f 5712
10f2d63a
VZ
5713 if test "$enableval" = yes; then
5714 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5715 else
5716 ac_cv_use_controls='wxUSE_CONTROLS=no'
5717 fi
a0b9e27f 5718
10f2d63a 5719else
a0b9e27f 5720
10f2d63a
VZ
5721 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5729
5730fi
10f2d63a
VZ
5731
5732
5733 eval "$ac_cv_use_controls"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5739 echo "$ac_t""yes" 1>&6
10f2d63a 5740 else
a0b9e27f 5741 echo "$ac_t""no" 1>&6
10f2d63a 5742 fi
a0b9e27f 5743
10f2d63a
VZ
5744
5745if test "$wxUSE_CONTROLS" = "yes"; then
5746 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5747 DEFAULT_wxUSE_BMPBUTTON=yes
5748 DEFAULT_wxUSE_BUTTON=yes
5749 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5750 DEFAULT_wxUSE_CARET=yes
5751 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5752 DEFAULT_wxUSE_CHECKBOX=yes
5753 DEFAULT_wxUSE_CHECKLISTBOX=yes
5754 DEFAULT_wxUSE_CHOICE=yes
5755 DEFAULT_wxUSE_GAUGE=yes
5756 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
5757 DEFAULT_wxUSE_IMAGLIST=yes
5758 DEFAULT_wxUSE_LISTBOX=yes
5759 DEFAULT_wxUSE_LISTCTRL=yes
5760 DEFAULT_wxUSE_NOTEBOOK=yes
5761 DEFAULT_wxUSE_RADIOBOX=yes
5762 DEFAULT_wxUSE_RADIOBTN=yes
5763 DEFAULT_wxUSE_SASH=yes
5764 DEFAULT_wxUSE_SCROLLBAR=yes
5765 DEFAULT_wxUSE_SLIDER=yes
5766 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5767 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5768 DEFAULT_wxUSE_SPLITTER=yes
5769 DEFAULT_wxUSE_STATBMP=yes
5770 DEFAULT_wxUSE_STATBOX=yes
5771 DEFAULT_wxUSE_STATLINE=yes
5772 DEFAULT_wxUSE_STATUSBAR=yes
5773 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5774 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5775 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5776 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5777 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5778 DEFAULT_wxUSE_TOOLTIPS=yes
5779 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5780 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5781 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5782elif test "$wxUSE_CONTROLS" = "no"; then
5783 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5784 DEFAULT_wxUSE_BMPBUTTON=no
5785 DEFAULT_wxUSE_BUTTON=no
5786 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5787 DEFAULT_wxUSE_CARET=no
5788 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5789 DEFAULT_wxUSE_CHECKBOX=no
5790 DEFAULT_wxUSE_CHECKLISTBOX=no
5791 DEFAULT_wxUSE_CHOICE=no
5792 DEFAULT_wxUSE_GAUGE=no
5793 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
5794 DEFAULT_wxUSE_IMAGLIST=no
5795 DEFAULT_wxUSE_LISTBOX=no
5796 DEFAULT_wxUSE_LISTCTRL=no
5797 DEFAULT_wxUSE_NOTEBOOK=no
5798 DEFAULT_wxUSE_RADIOBOX=no
5799 DEFAULT_wxUSE_RADIOBTN=no
5800 DEFAULT_wxUSE_SASH=no
5801 DEFAULT_wxUSE_SCROLLBAR=no
5802 DEFAULT_wxUSE_SLIDER=no
5803 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5804 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5805 DEFAULT_wxUSE_SPLITTER=no
5806 DEFAULT_wxUSE_STATBMP=no
5807 DEFAULT_wxUSE_STATBOX=no
5808 DEFAULT_wxUSE_STATLINE=no
5809 DEFAULT_wxUSE_STATUSBAR=no
5810 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5811 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5812 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5813 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5814 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5815 DEFAULT_wxUSE_TOOLTIPS=no
5816 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5817 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5818 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5819fi
5820
ac0c4cc3
DE
5821## FIXME: This is a blatant hack
5822if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5823 wxUSE_PRINTING_ARCHITECTURE=no
5824 wxUSE_HELP=no
5825 wxUSE_CLIPBOARD=no
5826 wxUSE_DRAG_AND_DROP=no
5827 wxUSE_DATAOBJ=no
5828 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
5829 DEFAULT_wxUSE_GAUGE=no
5830 DEFAULT_wxUSE_SCROLLBAR=no
5831 DEFAULT_wxUSE_SLIDER=no
5832 DEFAULT_wxUSE_COMBOBOX=no
5833 DEFAULT_wxUSE_CALCTRL=no
5834 DEFAULT_wxUSE_SPINBTN=no
5835 DEFAULT_wxUSE_SPINCTRL=no
5836 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 5837 DEFAULT_wxUSE_COLOURDLG=no
ac0c4cc3
DE
5838 DEFAULT_wxUSE_DRAGIMAGE=no
5839 DEFAULT_wxUSE_FINDREPLDLG=no
5840 DEFAULT_wxUSE_FONTDLG=no
5841 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5842 DEFAULT_wxUSE_NUMBERDLG=no
5843 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
5844 DEFAULT_wxUSE_SASH=no
5845 DEFAULT_wxUSE_SPLITTER=no
5846 DEFAULT_wxUSE_WIZARDDLG=no
5847 DEFAULT_wxUSE_SPLITTER=no
5848 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
5849fi
5850
8284b0c5 5851
5005acfe
VZ
5852 enablestring=
5853 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
7bb2947d 5854echo "configure:5855: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5855 no_cache=0
5856 # Check whether --enable-accel or --disable-accel was given.
5857if test "${enable_accel+set}" = set; then
5858 enableval="$enable_accel"
a0b9e27f 5859
10f2d63a
VZ
5860 if test "$enableval" = yes; then
5861 ac_cv_use_accel='wxUSE_ACCEL=yes'
5862 else
5863 ac_cv_use_accel='wxUSE_ACCEL=no'
5864 fi
a0b9e27f 5865
10f2d63a 5866else
a0b9e27f 5867
10f2d63a
VZ
5868 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5876
5877fi
10f2d63a
VZ
5878
5879
5880 eval "$ac_cv_use_accel"
5881 if test "$no_cache" != 1; then
5882 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5883 fi
5884
5885 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5886 echo "$ac_t""yes" 1>&6
10f2d63a 5887 else
a0b9e27f 5888 echo "$ac_t""no" 1>&6
10f2d63a 5889 fi
a0b9e27f 5890
10f2d63a 5891
5005acfe
VZ
5892 enablestring=
5893 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
7bb2947d 5894echo "configure:5895: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5895 no_cache=0
1e6feb95
VZ
5896 # Check whether --enable-button or --disable-button was given.
5897if test "${enable_button+set}" = set; then
5898 enableval="$enable_button"
a0b9e27f 5899
10f2d63a 5900 if test "$enableval" = yes; then
1e6feb95 5901 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5902 else
1e6feb95 5903 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5904 fi
a0b9e27f 5905
10f2d63a 5906else
a0b9e27f 5907
1e6feb95 5908 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5909 if test "x$LINE" != x ; then
5910 eval "DEFAULT_$LINE"
5911 else
5912 no_cache=1
5913 fi
5914
1e6feb95 5915 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5916
5917fi
10f2d63a
VZ
5918
5919
1e6feb95 5920 eval "$ac_cv_use_button"
10f2d63a 5921 if test "$no_cache" != 1; then
1e6feb95 5922 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5923 fi
5924
1e6feb95 5925 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5926 echo "$ac_t""yes" 1>&6
10f2d63a 5927 else
a0b9e27f 5928 echo "$ac_t""no" 1>&6
10f2d63a 5929 fi
a0b9e27f 5930
10f2d63a 5931
5005acfe
VZ
5932 enablestring=
5933 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
7bb2947d 5934echo "configure:5935: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
5935 no_cache=0
5936 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5937if test "${enable_bmpbutton+set}" = set; then
5938 enableval="$enable_bmpbutton"
a0b9e27f 5939
10f2d63a
VZ
5940 if test "$enableval" = yes; then
5941 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5942 else
5943 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5944 fi
a0b9e27f 5945
10f2d63a 5946else
a0b9e27f 5947
10f2d63a
VZ
5948 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5956
5957fi
10f2d63a
VZ
5958
5959
5960 eval "$ac_cv_use_bmpbutton"
5961 if test "$no_cache" != 1; then
5962 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5963 fi
5964
5965 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5966 echo "$ac_t""yes" 1>&6
10f2d63a 5967 else
a0b9e27f 5968 echo "$ac_t""no" 1>&6
10f2d63a 5969 fi
a0b9e27f 5970
10f2d63a 5971
5005acfe
VZ
5972 enablestring=
5973 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
7bb2947d 5974echo "configure:5975: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
5975 no_cache=0
5976 # Check whether --enable-calendar or --disable-calendar was given.
5977if test "${enable_calendar+set}" = set; then
5978 enableval="$enable_calendar"
a0b9e27f 5979
1e6feb95
VZ
5980 if test "$enableval" = yes; then
5981 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5982 else
5983 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5984 fi
a0b9e27f 5985
1e6feb95 5986else
a0b9e27f 5987
1e6feb95
VZ
5988 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
5996
5997fi
1e6feb95
VZ
5998
5999
6000 eval "$ac_cv_use_calendar"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6006 echo "$ac_t""yes" 1>&6
1e6feb95 6007 else
a0b9e27f 6008 echo "$ac_t""no" 1>&6
1e6feb95 6009 fi
a0b9e27f 6010
1e6feb95 6011
5005acfe
VZ
6012 enablestring=
6013 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
7bb2947d 6014echo "configure:6015: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6015 no_cache=0
6016 # Check whether --enable-caret or --disable-caret was given.
6017if test "${enable_caret+set}" = set; then
6018 enableval="$enable_caret"
a0b9e27f 6019
1e6feb95
VZ
6020 if test "$enableval" = yes; then
6021 ac_cv_use_caret='wxUSE_CARET=yes'
6022 else
6023 ac_cv_use_caret='wxUSE_CARET=no'
6024 fi
a0b9e27f 6025
1e6feb95 6026else
a0b9e27f 6027
1e6feb95
VZ
6028 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6036
6037fi
1e6feb95
VZ
6038
6039
6040 eval "$ac_cv_use_caret"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6046 echo "$ac_t""yes" 1>&6
1e6feb95 6047 else
a0b9e27f 6048 echo "$ac_t""no" 1>&6
1e6feb95 6049 fi
a0b9e27f 6050
1e6feb95 6051
5005acfe
VZ
6052 enablestring=
6053 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
7bb2947d 6054echo "configure:6055: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6055 no_cache=0
6056 # Check whether --enable-checkbox or --disable-checkbox was given.
6057if test "${enable_checkbox+set}" = set; then
6058 enableval="$enable_checkbox"
a0b9e27f 6059
10f2d63a
VZ
6060 if test "$enableval" = yes; then
6061 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6062 else
6063 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6064 fi
a0b9e27f 6065
10f2d63a 6066else
a0b9e27f 6067
10f2d63a
VZ
6068 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6076
6077fi
10f2d63a
VZ
6078
6079
6080 eval "$ac_cv_use_checkbox"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6086 echo "$ac_t""yes" 1>&6
10f2d63a 6087 else
a0b9e27f 6088 echo "$ac_t""no" 1>&6
10f2d63a 6089 fi
a0b9e27f 6090
10f2d63a 6091
5005acfe
VZ
6092 enablestring=
6093 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
7bb2947d 6094echo "configure:6095: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6095 no_cache=0
6096 # Check whether --enable-checklst or --disable-checklst was given.
6097if test "${enable_checklst+set}" = set; then
6098 enableval="$enable_checklst"
a0b9e27f 6099
10f2d63a
VZ
6100 if test "$enableval" = yes; then
6101 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6102 else
6103 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6104 fi
a0b9e27f 6105
10f2d63a 6106else
a0b9e27f 6107
10f2d63a
VZ
6108 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6116
6117fi
10f2d63a
VZ
6118
6119
6120 eval "$ac_cv_use_checklst"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6126 echo "$ac_t""yes" 1>&6
10f2d63a 6127 else
a0b9e27f 6128 echo "$ac_t""no" 1>&6
10f2d63a 6129 fi
a0b9e27f 6130
10f2d63a 6131
5005acfe
VZ
6132 enablestring=
6133 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
7bb2947d 6134echo "configure:6135: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6135 no_cache=0
6136 # Check whether --enable-choice or --disable-choice was given.
6137if test "${enable_choice+set}" = set; then
6138 enableval="$enable_choice"
a0b9e27f 6139
10f2d63a
VZ
6140 if test "$enableval" = yes; then
6141 ac_cv_use_choice='wxUSE_CHOICE=yes'
6142 else
6143 ac_cv_use_choice='wxUSE_CHOICE=no'
6144 fi
a0b9e27f 6145
10f2d63a 6146else
a0b9e27f 6147
10f2d63a
VZ
6148 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6156
6157fi
10f2d63a
VZ
6158
6159
6160 eval "$ac_cv_use_choice"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6166 echo "$ac_t""yes" 1>&6
10f2d63a 6167 else
a0b9e27f 6168 echo "$ac_t""no" 1>&6
10f2d63a 6169 fi
a0b9e27f 6170
10f2d63a 6171
5005acfe
VZ
6172 enablestring=
6173 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
7bb2947d 6174echo "configure:6175: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6175 no_cache=0
6176 # Check whether --enable-combobox or --disable-combobox was given.
6177if test "${enable_combobox+set}" = set; then
6178 enableval="$enable_combobox"
a0b9e27f 6179
10f2d63a
VZ
6180 if test "$enableval" = yes; then
6181 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6182 else
6183 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6184 fi
a0b9e27f 6185
10f2d63a 6186else
a0b9e27f 6187
10f2d63a
VZ
6188 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6196
6197fi
10f2d63a
VZ
6198
6199
6200 eval "$ac_cv_use_combobox"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6206 echo "$ac_t""yes" 1>&6
10f2d63a 6207 else
a0b9e27f 6208 echo "$ac_t""no" 1>&6
10f2d63a 6209 fi
a0b9e27f 6210
10f2d63a 6211
da494b40
MB
6212 enablestring=
6213 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
7bb2947d 6214echo "configure:6215: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6215 no_cache=0
6216 # Check whether --enable-display or --disable-display was given.
6217if test "${enable_display+set}" = set; then
6218 enableval="$enable_display"
6219
6220 if test "$enableval" = yes; then
6221 ac_cv_use_display='wxUSE_DISPLAY=yes'
6222 else
6223 ac_cv_use_display='wxUSE_DISPLAY=no'
6224 fi
6225
6226else
6227
6228 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6236
6237fi
6238
6239
6240 eval "$ac_cv_use_display"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_DISPLAY" = yes; then
6246 echo "$ac_t""yes" 1>&6
6247 else
6248 echo "$ac_t""no" 1>&6
6249 fi
6250
6251
5005acfe
VZ
6252 enablestring=
6253 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
7bb2947d 6254echo "configure:6255: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6255 no_cache=0
6256 # Check whether --enable-gauge or --disable-gauge was given.
6257if test "${enable_gauge+set}" = set; then
6258 enableval="$enable_gauge"
a0b9e27f 6259
10f2d63a
VZ
6260 if test "$enableval" = yes; then
6261 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6262 else
6263 ac_cv_use_gauge='wxUSE_GAUGE=no'
6264 fi
a0b9e27f 6265
10f2d63a 6266else
a0b9e27f 6267
10f2d63a
VZ
6268 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6276
6277fi
10f2d63a
VZ
6278
6279
6280 eval "$ac_cv_use_gauge"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6286 echo "$ac_t""yes" 1>&6
10f2d63a 6287 else
a0b9e27f 6288 echo "$ac_t""no" 1>&6
10f2d63a 6289 fi
a0b9e27f 6290
10f2d63a 6291
5005acfe
VZ
6292 enablestring=
6293 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
7bb2947d 6294echo "configure:6295: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6295 no_cache=0
6296 # Check whether --enable-grid or --disable-grid was given.
6297if test "${enable_grid+set}" = set; then
6298 enableval="$enable_grid"
a0b9e27f 6299
10f2d63a
VZ
6300 if test "$enableval" = yes; then
6301 ac_cv_use_grid='wxUSE_GRID=yes'
6302 else
6303 ac_cv_use_grid='wxUSE_GRID=no'
6304 fi
a0b9e27f 6305
10f2d63a 6306else
a0b9e27f 6307
10f2d63a
VZ
6308 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6316
6317fi
10f2d63a
VZ
6318
6319
6320 eval "$ac_cv_use_grid"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6326 echo "$ac_t""yes" 1>&6
10f2d63a 6327 else
a0b9e27f 6328 echo "$ac_t""no" 1>&6
10f2d63a 6329 fi
a0b9e27f 6330
10f2d63a 6331
5005acfe
VZ
6332 enablestring=
6333 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
7bb2947d 6334echo "configure:6335: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6335 no_cache=0
6336 # Check whether --enable-imaglist or --disable-imaglist was given.
6337if test "${enable_imaglist+set}" = set; then
6338 enableval="$enable_imaglist"
a0b9e27f 6339
10f2d63a
VZ
6340 if test "$enableval" = yes; then
6341 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6342 else
6343 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6344 fi
a0b9e27f 6345
10f2d63a 6346else
a0b9e27f 6347
10f2d63a
VZ
6348 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6356
6357fi
10f2d63a
VZ
6358
6359
6360 eval "$ac_cv_use_imaglist"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6366 echo "$ac_t""yes" 1>&6
10f2d63a 6367 else
a0b9e27f 6368 echo "$ac_t""no" 1>&6
10f2d63a 6369 fi
a0b9e27f 6370
10f2d63a 6371
5005acfe
VZ
6372 enablestring=
6373 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
7bb2947d 6374echo "configure:6375: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6375 no_cache=0
6376 # Check whether --enable-listbox or --disable-listbox was given.
6377if test "${enable_listbox+set}" = set; then
6378 enableval="$enable_listbox"
a0b9e27f 6379
10f2d63a
VZ
6380 if test "$enableval" = yes; then
6381 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6382 else
6383 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6384 fi
a0b9e27f 6385
10f2d63a 6386else
a0b9e27f 6387
10f2d63a
VZ
6388 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6396
6397fi
10f2d63a
VZ
6398
6399
6400 eval "$ac_cv_use_listbox"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6406 echo "$ac_t""yes" 1>&6
10f2d63a 6407 else
a0b9e27f 6408 echo "$ac_t""no" 1>&6
10f2d63a 6409 fi
a0b9e27f 6410
10f2d63a 6411
5005acfe
VZ
6412 enablestring=
6413 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
7bb2947d 6414echo "configure:6415: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6415 no_cache=0
6416 # Check whether --enable-listctrl or --disable-listctrl was given.
6417if test "${enable_listctrl+set}" = set; then
6418 enableval="$enable_listctrl"
a0b9e27f 6419
10f2d63a
VZ
6420 if test "$enableval" = yes; then
6421 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6422 else
6423 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6424 fi
a0b9e27f 6425
10f2d63a 6426else
a0b9e27f 6427
10f2d63a
VZ
6428 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6436
6437fi
10f2d63a
VZ
6438
6439
6440 eval "$ac_cv_use_listctrl"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6446 echo "$ac_t""yes" 1>&6
10f2d63a 6447 else
a0b9e27f 6448 echo "$ac_t""no" 1>&6
10f2d63a 6449 fi
a0b9e27f 6450
10f2d63a 6451
5005acfe
VZ
6452 enablestring=
6453 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
7bb2947d 6454echo "configure:6455: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6455 no_cache=0
6456 # Check whether --enable-notebook or --disable-notebook was given.
6457if test "${enable_notebook+set}" = set; then
6458 enableval="$enable_notebook"
a0b9e27f 6459
10f2d63a
VZ
6460 if test "$enableval" = yes; then
6461 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6462 else
6463 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6464 fi
a0b9e27f 6465
10f2d63a 6466else
a0b9e27f 6467
10f2d63a
VZ
6468 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6476
6477fi
10f2d63a
VZ
6478
6479
6480 eval "$ac_cv_use_notebook"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6486 echo "$ac_t""yes" 1>&6
10f2d63a 6487 else
a0b9e27f 6488 echo "$ac_t""no" 1>&6
10f2d63a 6489 fi
a0b9e27f 6490
10f2d63a 6491
5005acfe
VZ
6492 enablestring=
6493 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
7bb2947d 6494echo "configure:6495: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6495 no_cache=0
6496 # Check whether --enable-radiobox or --disable-radiobox was given.
6497if test "${enable_radiobox+set}" = set; then
6498 enableval="$enable_radiobox"
a0b9e27f 6499
10f2d63a
VZ
6500 if test "$enableval" = yes; then
6501 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6502 else
6503 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6504 fi
a0b9e27f 6505
10f2d63a 6506else
a0b9e27f 6507
10f2d63a
VZ
6508 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6516
6517fi
10f2d63a
VZ
6518
6519
6520 eval "$ac_cv_use_radiobox"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6526 echo "$ac_t""yes" 1>&6
10f2d63a 6527 else
a0b9e27f 6528 echo "$ac_t""no" 1>&6
10f2d63a 6529 fi
a0b9e27f 6530
10f2d63a 6531
5005acfe
VZ
6532 enablestring=
6533 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
7bb2947d 6534echo "configure:6535: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6535 no_cache=0
6536 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6537if test "${enable_radiobtn+set}" = set; then
6538 enableval="$enable_radiobtn"
a0b9e27f 6539
10f2d63a
VZ
6540 if test "$enableval" = yes; then
6541 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6542 else
6543 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6544 fi
a0b9e27f 6545
10f2d63a 6546else
a0b9e27f 6547
10f2d63a
VZ
6548 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6556
6557fi
10f2d63a
VZ
6558
6559
6560 eval "$ac_cv_use_radiobtn"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6566 echo "$ac_t""yes" 1>&6
10f2d63a 6567 else
a0b9e27f 6568 echo "$ac_t""no" 1>&6
10f2d63a 6569 fi
a0b9e27f 6570
10f2d63a 6571
5005acfe
VZ
6572 enablestring=
6573 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
7bb2947d 6574echo "configure:6575: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6575 no_cache=0
6576 # Check whether --enable-sash or --disable-sash was given.
6577if test "${enable_sash+set}" = set; then
6578 enableval="$enable_sash"
a0b9e27f 6579
10f2d63a
VZ
6580 if test "$enableval" = yes; then
6581 ac_cv_use_sash='wxUSE_SASH=yes'
6582 else
6583 ac_cv_use_sash='wxUSE_SASH=no'
6584 fi
a0b9e27f 6585
10f2d63a 6586else
a0b9e27f 6587
10f2d63a
VZ
6588 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6596
6597fi
10f2d63a
VZ
6598
6599
6600 eval "$ac_cv_use_sash"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6606 echo "$ac_t""yes" 1>&6
10f2d63a 6607 else
a0b9e27f 6608 echo "$ac_t""no" 1>&6
10f2d63a 6609 fi
a0b9e27f 6610
10f2d63a 6611
5005acfe
VZ
6612 enablestring=
6613 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
7bb2947d 6614echo "configure:6615: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6615 no_cache=0
6616 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6617if test "${enable_scrollbar+set}" = set; then
6618 enableval="$enable_scrollbar"
a0b9e27f 6619
10f2d63a
VZ
6620 if test "$enableval" = yes; then
6621 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6622 else
6623 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6624 fi
a0b9e27f 6625
10f2d63a 6626else
a0b9e27f 6627
10f2d63a
VZ
6628 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6636
6637fi
10f2d63a
VZ
6638
6639
6640 eval "$ac_cv_use_scrollbar"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6646 echo "$ac_t""yes" 1>&6
10f2d63a 6647 else
a0b9e27f 6648 echo "$ac_t""no" 1>&6
10f2d63a 6649 fi
a0b9e27f 6650
10f2d63a 6651
5005acfe
VZ
6652 enablestring=
6653 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
7bb2947d 6654echo "configure:6655: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6655 no_cache=0
6656 # Check whether --enable-slider or --disable-slider was given.
6657if test "${enable_slider+set}" = set; then
6658 enableval="$enable_slider"
a0b9e27f 6659
10f2d63a
VZ
6660 if test "$enableval" = yes; then
6661 ac_cv_use_slider='wxUSE_SLIDER=yes'
6662 else
6663 ac_cv_use_slider='wxUSE_SLIDER=no'
6664 fi
a0b9e27f 6665
10f2d63a 6666else
a0b9e27f 6667
10f2d63a
VZ
6668 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6676
6677fi
10f2d63a
VZ
6678
6679
6680 eval "$ac_cv_use_slider"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6686 echo "$ac_t""yes" 1>&6
10f2d63a 6687 else
a0b9e27f 6688 echo "$ac_t""no" 1>&6
10f2d63a 6689 fi
a0b9e27f 6690
10f2d63a 6691
5005acfe
VZ
6692 enablestring=
6693 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
7bb2947d 6694echo "configure:6695: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6695 no_cache=0
6696 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6697if test "${enable_spinbtn+set}" = set; then
6698 enableval="$enable_spinbtn"
a0b9e27f 6699
10f2d63a
VZ
6700 if test "$enableval" = yes; then
6701 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6702 else
6703 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6704 fi
a0b9e27f 6705
10f2d63a 6706else
a0b9e27f 6707
10f2d63a
VZ
6708 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6716
6717fi
10f2d63a
VZ
6718
6719
6720 eval "$ac_cv_use_spinbtn"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6726 echo "$ac_t""yes" 1>&6
10f2d63a 6727 else
a0b9e27f 6728 echo "$ac_t""no" 1>&6
10f2d63a 6729 fi
a0b9e27f 6730
10f2d63a 6731
5005acfe
VZ
6732 enablestring=
6733 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
7bb2947d 6734echo "configure:6735: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6735 no_cache=0
6736 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6737if test "${enable_spinctrl+set}" = set; then
6738 enableval="$enable_spinctrl"
a0b9e27f 6739
56cfaa52
RR
6740 if test "$enableval" = yes; then
6741 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6742 else
6743 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6744 fi
a0b9e27f 6745
56cfaa52 6746else
a0b9e27f 6747
56cfaa52
RR
6748 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6756
6757fi
56cfaa52
RR
6758
6759
6760 eval "$ac_cv_use_spinctrl"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6766 echo "$ac_t""yes" 1>&6
56cfaa52 6767 else
a0b9e27f 6768 echo "$ac_t""no" 1>&6
56cfaa52 6769 fi
a0b9e27f 6770
56cfaa52 6771
5005acfe
VZ
6772 enablestring=
6773 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
7bb2947d 6774echo "configure:6775: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6775 no_cache=0
6776 # Check whether --enable-splitter or --disable-splitter was given.
6777if test "${enable_splitter+set}" = set; then
6778 enableval="$enable_splitter"
a0b9e27f 6779
10f2d63a
VZ
6780 if test "$enableval" = yes; then
6781 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6782 else
6783 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6784 fi
a0b9e27f 6785
10f2d63a 6786else
a0b9e27f 6787
10f2d63a
VZ
6788 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6796
6797fi
10f2d63a
VZ
6798
6799
6800 eval "$ac_cv_use_splitter"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6806 echo "$ac_t""yes" 1>&6
10f2d63a 6807 else
a0b9e27f 6808 echo "$ac_t""no" 1>&6
10f2d63a 6809 fi
a0b9e27f 6810
10f2d63a 6811
5005acfe
VZ
6812 enablestring=
6813 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
7bb2947d 6814echo "configure:6815: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6815 no_cache=0
6816 # Check whether --enable-statbmp or --disable-statbmp was given.
6817if test "${enable_statbmp+set}" = set; then
6818 enableval="$enable_statbmp"
a0b9e27f 6819
10f2d63a
VZ
6820 if test "$enableval" = yes; then
6821 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6822 else
6823 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6824 fi
a0b9e27f 6825
10f2d63a 6826else
a0b9e27f 6827
10f2d63a
VZ
6828 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6829 if test "x$LINE" != x ; then
6830 eval "DEFAULT_$LINE"
6831 else
6832 no_cache=1
6833 fi
6834
6835 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6836
6837fi
10f2d63a
VZ
6838
6839
6840 eval "$ac_cv_use_statbmp"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6846 echo "$ac_t""yes" 1>&6
10f2d63a 6847 else
a0b9e27f 6848 echo "$ac_t""no" 1>&6
10f2d63a 6849 fi
a0b9e27f 6850
10f2d63a 6851
5005acfe
VZ
6852 enablestring=
6853 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
7bb2947d 6854echo "configure:6855: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6855 no_cache=0
6856 # Check whether --enable-statbox or --disable-statbox was given.
6857if test "${enable_statbox+set}" = set; then
6858 enableval="$enable_statbox"
a0b9e27f 6859
10f2d63a
VZ
6860 if test "$enableval" = yes; then
6861 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6862 else
6863 ac_cv_use_statbox='wxUSE_STATBOX=no'
6864 fi
a0b9e27f 6865
10f2d63a 6866else
a0b9e27f 6867
10f2d63a
VZ
6868 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6876
6877fi
10f2d63a
VZ
6878
6879
6880 eval "$ac_cv_use_statbox"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6886 echo "$ac_t""yes" 1>&6
10f2d63a 6887 else
a0b9e27f 6888 echo "$ac_t""no" 1>&6
10f2d63a 6889 fi
a0b9e27f 6890
10f2d63a 6891
5005acfe
VZ
6892 enablestring=
6893 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7bb2947d 6894echo "configure:6895: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6895 no_cache=0
6896 # Check whether --enable-statline or --disable-statline was given.
6897if test "${enable_statline+set}" = set; then
6898 enableval="$enable_statline"
a0b9e27f 6899
10f2d63a
VZ
6900 if test "$enableval" = yes; then
6901 ac_cv_use_statline='wxUSE_STATLINE=yes'
6902 else
6903 ac_cv_use_statline='wxUSE_STATLINE=no'
6904 fi
a0b9e27f 6905
10f2d63a 6906else
a0b9e27f 6907
10f2d63a
VZ
6908 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6909 if test "x$LINE" != x ; then
6910 eval "DEFAULT_$LINE"
6911 else
6912 no_cache=1
6913 fi
6914
6915 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6916
6917fi
10f2d63a
VZ
6918
6919
6920 eval "$ac_cv_use_statline"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6926 echo "$ac_t""yes" 1>&6
10f2d63a 6927 else
a0b9e27f 6928 echo "$ac_t""no" 1>&6
10f2d63a 6929 fi
a0b9e27f 6930
10f2d63a 6931
5005acfe
VZ
6932 enablestring=
6933 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7bb2947d 6934echo "configure:6935: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
6935 no_cache=0
6936 # Check whether --enable-stattext or --disable-stattext was given.
6937if test "${enable_stattext+set}" = set; then
6938 enableval="$enable_stattext"
a0b9e27f 6939
1e6feb95
VZ
6940 if test "$enableval" = yes; then
6941 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6942 else
6943 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6944 fi
a0b9e27f 6945
1e6feb95 6946else
a0b9e27f 6947
1e6feb95
VZ
6948 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6956
6957fi
1e6feb95
VZ
6958
6959
6960 eval "$ac_cv_use_stattext"
6961 if test "$no_cache" != 1; then
6962 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6963 fi
6964
6965 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6966 echo "$ac_t""yes" 1>&6
1e6feb95 6967 else
a0b9e27f 6968 echo "$ac_t""no" 1>&6
1e6feb95 6969 fi
a0b9e27f 6970
1e6feb95 6971
5005acfe
VZ
6972 enablestring=
6973 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7bb2947d 6974echo "configure:6975: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
6975 no_cache=0
6976 # Check whether --enable-statusbar or --disable-statusbar was given.
6977if test "${enable_statusbar+set}" = set; then
6978 enableval="$enable_statusbar"
a0b9e27f 6979
10f2d63a
VZ
6980 if test "$enableval" = yes; then
6981 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6982 else
6983 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6984 fi
a0b9e27f 6985
10f2d63a 6986else
a0b9e27f 6987
10f2d63a
VZ
6988 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6989 if test "x$LINE" != x ; then
6990 eval "DEFAULT_$LINE"
6991 else
6992 no_cache=1
6993 fi
6994
6995 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
6996
6997fi
10f2d63a
VZ
6998
6999
7000 eval "$ac_cv_use_statusbar"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7006 echo "$ac_t""yes" 1>&6
10f2d63a 7007 else
a0b9e27f 7008 echo "$ac_t""no" 1>&6
10f2d63a 7009 fi
a0b9e27f 7010
10f2d63a 7011
5005acfe
VZ
7012 enablestring=
7013 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7bb2947d 7014echo "configure:7015: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7015 no_cache=0
7016 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7017if test "${enable_tabdialog+set}" = set; then
7018 enableval="$enable_tabdialog"
a0b9e27f 7019
10f2d63a
VZ
7020 if test "$enableval" = yes; then
7021 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7022 else
7023 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7024 fi
a0b9e27f 7025
10f2d63a 7026else
a0b9e27f 7027
10f2d63a
VZ
7028 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7036
7037fi
10f2d63a
VZ
7038
7039
7040 eval "$ac_cv_use_tabdialog"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7046 echo "$ac_t""yes" 1>&6
10f2d63a 7047 else
a0b9e27f 7048 echo "$ac_t""no" 1>&6
10f2d63a 7049 fi
a0b9e27f 7050
10f2d63a 7051
5005acfe
VZ
7052 enablestring=
7053 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7bb2947d 7054echo "configure:7055: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7055 no_cache=0
7056 # Check whether --enable-textctrl or --disable-textctrl was given.
7057if test "${enable_textctrl+set}" = set; then
7058 enableval="$enable_textctrl"
a0b9e27f 7059
1e6feb95
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7062 else
7063 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7064 fi
a0b9e27f 7065
1e6feb95 7066else
a0b9e27f 7067
1e6feb95
VZ
7068 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7076
7077fi
1e6feb95
VZ
7078
7079
7080 eval "$ac_cv_use_textctrl"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7086 echo "$ac_t""yes" 1>&6
1e6feb95 7087 else
a0b9e27f 7088 echo "$ac_t""no" 1>&6
1e6feb95 7089 fi
a0b9e27f 7090
1e6feb95 7091
5005acfe
VZ
7092 enablestring=
7093 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7bb2947d 7094echo "configure:7095: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7095 no_cache=0
7096 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7097if test "${enable_togglebtn+set}" = set; then
7098 enableval="$enable_togglebtn"
a0b9e27f 7099
1db8dc4a
VZ
7100 if test "$enableval" = yes; then
7101 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7102 else
7103 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7104 fi
a0b9e27f 7105
1db8dc4a 7106else
a0b9e27f 7107
1db8dc4a
VZ
7108 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7116
7117fi
1db8dc4a
VZ
7118
7119
7120 eval "$ac_cv_use_togglebtn"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7126 echo "$ac_t""yes" 1>&6
1db8dc4a 7127 else
a0b9e27f 7128 echo "$ac_t""no" 1>&6
1db8dc4a 7129 fi
a0b9e27f 7130
1db8dc4a 7131
5005acfe
VZ
7132 enablestring=
7133 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7bb2947d 7134echo "configure:7135: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7135 no_cache=0
7136 # Check whether --enable-toolbar or --disable-toolbar was given.
7137if test "${enable_toolbar+set}" = set; then
7138 enableval="$enable_toolbar"
a0b9e27f 7139
10f2d63a
VZ
7140 if test "$enableval" = yes; then
7141 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7142 else
7143 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7144 fi
a0b9e27f 7145
10f2d63a 7146else
a0b9e27f 7147
10f2d63a
VZ
7148 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7156
7157fi
10f2d63a
VZ
7158
7159
7160 eval "$ac_cv_use_toolbar"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7166 echo "$ac_t""yes" 1>&6
10f2d63a 7167 else
a0b9e27f 7168 echo "$ac_t""no" 1>&6
10f2d63a 7169 fi
a0b9e27f 7170
10f2d63a 7171
5005acfe
VZ
7172 enablestring=
7173 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7bb2947d 7174echo "configure:7175: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7175 no_cache=0
7176 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7177if test "${enable_tbarnative+set}" = set; then
7178 enableval="$enable_tbarnative"
a0b9e27f 7179
360d6699
VZ
7180 if test "$enableval" = yes; then
7181 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7182 else
7183 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7184 fi
a0b9e27f 7185
360d6699 7186else
a0b9e27f 7187
360d6699
VZ
7188 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7196
7197fi
360d6699
VZ
7198
7199
7200 eval "$ac_cv_use_tbarnative"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7206 echo "$ac_t""yes" 1>&6
360d6699 7207 else
a0b9e27f 7208 echo "$ac_t""no" 1>&6
360d6699 7209 fi
a0b9e27f 7210
360d6699 7211
5005acfe
VZ
7212 enablestring=
7213 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7bb2947d 7214echo "configure:7215: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7215 no_cache=0
7216 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7217if test "${enable_tbarsmpl+set}" = set; then
7218 enableval="$enable_tbarsmpl"
a0b9e27f 7219
360d6699
VZ
7220 if test "$enableval" = yes; then
7221 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7222 else
7223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7224 fi
a0b9e27f 7225
360d6699 7226else
a0b9e27f 7227
360d6699
VZ
7228 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7236
7237fi
360d6699
VZ
7238
7239
7240 eval "$ac_cv_use_tbarsmpl"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7246 echo "$ac_t""yes" 1>&6
360d6699 7247 else
a0b9e27f 7248 echo "$ac_t""no" 1>&6
360d6699 7249 fi
a0b9e27f 7250
360d6699 7251
5005acfe
VZ
7252 enablestring=
7253 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7bb2947d 7254echo "configure:7255: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7255 no_cache=0
7256 # Check whether --enable-treectrl or --disable-treectrl was given.
7257if test "${enable_treectrl+set}" = set; then
7258 enableval="$enable_treectrl"
a0b9e27f 7259
10f2d63a
VZ
7260 if test "$enableval" = yes; then
7261 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7262 else
7263 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7264 fi
a0b9e27f 7265
10f2d63a 7266else
a0b9e27f 7267
10f2d63a
VZ
7268 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7276
7277fi
10f2d63a
VZ
7278
7279
1e6feb95
VZ
7280 eval "$ac_cv_use_treectrl"
7281 if test "$no_cache" != 1; then
7282 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7283 fi
7284
7285 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7286 echo "$ac_t""yes" 1>&6
1e6feb95 7287 else
a0b9e27f 7288 echo "$ac_t""no" 1>&6
1e6feb95 7289 fi
a0b9e27f 7290
1e6feb95 7291
5005acfe
VZ
7292 enablestring=
7293 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7bb2947d 7294echo "configure:7295: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7295 no_cache=0
7296 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7297if test "${enable_tipwindow+set}" = set; then
7298 enableval="$enable_tipwindow"
a0b9e27f 7299
9926e4a4
VZ
7300 if test "$enableval" = yes; then
7301 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7302 else
7303 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7304 fi
a0b9e27f 7305
9926e4a4 7306else
a0b9e27f 7307
9926e4a4
VZ
7308 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7309 if test "x$LINE" != x ; then
7310 eval "DEFAULT_$LINE"
7311 else
7312 no_cache=1
7313 fi
7314
7315 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7316
7317fi
9926e4a4
VZ
7318
7319
7320 eval "$ac_cv_use_tipwindow"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7326 echo "$ac_t""yes" 1>&6
9926e4a4 7327 else
a0b9e27f 7328 echo "$ac_t""no" 1>&6
9926e4a4 7329 fi
a0b9e27f 7330
9926e4a4 7331
5005acfe
VZ
7332 enablestring=
7333 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7bb2947d 7334echo "configure:7335: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7335 no_cache=0
7336 # Check whether --enable-popupwin or --disable-popupwin was given.
7337if test "${enable_popupwin+set}" = set; then
7338 enableval="$enable_popupwin"
a0b9e27f 7339
9f41d601
RR
7340 if test "$enableval" = yes; then
7341 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7342 else
7343 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7344 fi
a0b9e27f 7345
9f41d601 7346else
a0b9e27f 7347
9f41d601
RR
7348 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7356
7357fi
9f41d601
RR
7358
7359
7360 eval "$ac_cv_use_popupwin"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7366 echo "$ac_t""yes" 1>&6
9f41d601 7367 else
a0b9e27f 7368 echo "$ac_t""no" 1>&6
9f41d601 7369 fi
a0b9e27f 7370
52127426 7371
8284b0c5
MB
7372
7373
5005acfe
VZ
7374 enablestring=
7375 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7bb2947d 7376echo "configure:7377: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7377 no_cache=0
7378 # Check whether --enable-commondlg or --disable-commondlg was given.
7379if test "${enable_commondlg+set}" = set; then
7380 enableval="$enable_commondlg"
a0b9e27f 7381
1e6feb95
VZ
7382 if test "$enableval" = yes; then
7383 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7384 else
7385 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7386 fi
a0b9e27f 7387
1e6feb95 7388else
a0b9e27f 7389
1e6feb95
VZ
7390 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7398
7399fi
1e6feb95
VZ
7400
7401
7402 eval "$ac_cv_use_commondlg"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7408 echo "$ac_t""yes" 1>&6
1e6feb95 7409 else
a0b9e27f 7410 echo "$ac_t""no" 1>&6
1e6feb95 7411 fi
a0b9e27f 7412
1e6feb95 7413
5005acfe
VZ
7414 enablestring=
7415 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7bb2947d 7416echo "configure:7417: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7417 no_cache=0
7418 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7419if test "${enable_choicedlg+set}" = set; then
7420 enableval="$enable_choicedlg"
a0b9e27f 7421
1e6feb95
VZ
7422 if test "$enableval" = yes; then
7423 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7424 else
7425 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7426 fi
a0b9e27f 7427
1e6feb95 7428else
a0b9e27f 7429
1e6feb95
VZ
7430 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7431 if test "x$LINE" != x ; then
7432 eval "DEFAULT_$LINE"
7433 else
7434 no_cache=1
7435 fi
7436
7437 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7438
7439fi
1e6feb95
VZ
7440
7441
7442 eval "$ac_cv_use_choicedlg"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7448 echo "$ac_t""yes" 1>&6
1e6feb95 7449 else
a0b9e27f 7450 echo "$ac_t""no" 1>&6
1e6feb95 7451 fi
a0b9e27f 7452
1e6feb95 7453
5005acfe
VZ
7454 enablestring=
7455 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7bb2947d 7456echo "configure:7457: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7457 no_cache=0
7458 # Check whether --enable-coldlg or --disable-coldlg was given.
7459if test "${enable_coldlg+set}" = set; then
7460 enableval="$enable_coldlg"
a0b9e27f 7461
1e6feb95
VZ
7462 if test "$enableval" = yes; then
7463 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7464 else
7465 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7466 fi
a0b9e27f 7467
1e6feb95 7468else
a0b9e27f 7469
1e6feb95
VZ
7470 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7478
7479fi
1e6feb95
VZ
7480
7481
7482 eval "$ac_cv_use_coldlg"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7488 echo "$ac_t""yes" 1>&6
1e6feb95 7489 else
a0b9e27f 7490 echo "$ac_t""no" 1>&6
1e6feb95 7491 fi
a0b9e27f 7492
1e6feb95 7493
5005acfe
VZ
7494 enablestring=
7495 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7bb2947d 7496echo "configure:7497: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7497 no_cache=0
7498 # Check whether --enable-filedlg or --disable-filedlg was given.
7499if test "${enable_filedlg+set}" = set; then
7500 enableval="$enable_filedlg"
a0b9e27f 7501
1e6feb95
VZ
7502 if test "$enableval" = yes; then
7503 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7504 else
7505 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7506 fi
a0b9e27f 7507
1e6feb95 7508else
a0b9e27f 7509
1e6feb95
VZ
7510 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
7517 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7518
7519fi
1e6feb95
VZ
7520
7521
7522 eval "$ac_cv_use_filedlg"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7528 echo "$ac_t""yes" 1>&6
1e6feb95 7529 else
a0b9e27f 7530 echo "$ac_t""no" 1>&6
1e6feb95 7531 fi
a0b9e27f 7532
1e6feb95 7533
5005acfe
VZ
7534 enablestring=
7535 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7bb2947d 7536echo "configure:7537: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7537 no_cache=0
69d27ff7
MB
7538 # Check whether --enable-finddlg or --disable-finddlg was given.
7539if test "${enable_finddlg+set}" = set; then
7540 enableval="$enable_finddlg"
a0b9e27f 7541
8db37e06 7542 if test "$enableval" = yes; then
69d27ff7 7543 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7544 else
69d27ff7 7545 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7546 fi
a0b9e27f 7547
8db37e06 7548else
a0b9e27f 7549
8db37e06
VZ
7550 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
69d27ff7 7557 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7558
7559fi
8db37e06
VZ
7560
7561
69d27ff7 7562 eval "$ac_cv_use_finddlg"
8db37e06 7563 if test "$no_cache" != 1; then
69d27ff7 7564 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7565 fi
7566
7567 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7568 echo "$ac_t""yes" 1>&6
8db37e06 7569 else
a0b9e27f 7570 echo "$ac_t""no" 1>&6
8db37e06 7571 fi
a0b9e27f 7572
8db37e06 7573
5005acfe
VZ
7574 enablestring=
7575 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7bb2947d 7576echo "configure:7577: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7577 no_cache=0
7578 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7579if test "${enable_fontdlg+set}" = set; then
7580 enableval="$enable_fontdlg"
a0b9e27f 7581
1e6feb95
VZ
7582 if test "$enableval" = yes; then
7583 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7584 else
7585 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7586 fi
a0b9e27f 7587
1e6feb95 7588else
a0b9e27f 7589
1e6feb95
VZ
7590 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7598
7599fi
1e6feb95
VZ
7600
7601
7602 eval "$ac_cv_use_fontdlg"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7608 echo "$ac_t""yes" 1>&6
1e6feb95 7609 else
a0b9e27f 7610 echo "$ac_t""no" 1>&6
1e6feb95 7611 fi
a0b9e27f 7612
1e6feb95 7613
5005acfe
VZ
7614 enablestring=
7615 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7bb2947d 7616echo "configure:7617: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7617 no_cache=0
7618 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7619if test "${enable_dirdlg+set}" = set; then
7620 enableval="$enable_dirdlg"
a0b9e27f 7621
1e6feb95
VZ
7622 if test "$enableval" = yes; then
7623 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7624 else
7625 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7626 fi
a0b9e27f 7627
1e6feb95 7628else
a0b9e27f 7629
1e6feb95
VZ
7630 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7631 if test "x$LINE" != x ; then
7632 eval "DEFAULT_$LINE"
7633 else
7634 no_cache=1
7635 fi
7636
7637 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7638
7639fi
1e6feb95
VZ
7640
7641
7642 eval "$ac_cv_use_dirdlg"
10f2d63a 7643 if test "$no_cache" != 1; then
1e6feb95 7644 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7645 fi
7646
1e6feb95 7647 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7648 echo "$ac_t""yes" 1>&6
10f2d63a 7649 else
a0b9e27f 7650 echo "$ac_t""no" 1>&6
10f2d63a 7651 fi
a0b9e27f 7652
698dcdb6 7653
5005acfe
VZ
7654 enablestring=
7655 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7bb2947d 7656echo "configure:7657: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7657 no_cache=0
1e6feb95
VZ
7658 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7659if test "${enable_msgdlg+set}" = set; then
7660 enableval="$enable_msgdlg"
a0b9e27f 7661
10f2d63a 7662 if test "$enableval" = yes; then
1e6feb95 7663 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7664 else
1e6feb95 7665 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7666 fi
a0b9e27f 7667
10f2d63a 7668else
a0b9e27f 7669
1e6feb95 7670 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7671 if test "x$LINE" != x ; then
7672 eval "DEFAULT_$LINE"
7673 else
7674 no_cache=1
7675 fi
7676
1e6feb95 7677 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7678
7679fi
10f2d63a
VZ
7680
7681
1e6feb95 7682 eval "$ac_cv_use_msgdlg"
10f2d63a 7683 if test "$no_cache" != 1; then
1e6feb95 7684 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7685 fi
7686
1e6feb95 7687 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7688 echo "$ac_t""yes" 1>&6
10f2d63a 7689 else
a0b9e27f 7690 echo "$ac_t""no" 1>&6
10f2d63a 7691 fi
a0b9e27f 7692
10f2d63a 7693
5005acfe
VZ
7694 enablestring=
7695 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7bb2947d 7696echo "configure:7697: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7697 no_cache=0
1e6feb95
VZ
7698 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7699if test "${enable_numberdlg+set}" = set; then
7700 enableval="$enable_numberdlg"
a0b9e27f 7701
10f2d63a 7702 if test "$enableval" = yes; then
1e6feb95 7703 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7704 else
1e6feb95 7705 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7706 fi
a0b9e27f 7707
10f2d63a 7708else
a0b9e27f 7709
1e6feb95 7710 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7711 if test "x$LINE" != x ; then
7712 eval "DEFAULT_$LINE"
7713 else
7714 no_cache=1
7715 fi
7716
1e6feb95 7717 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7718
7719fi
10f2d63a
VZ
7720
7721
1e6feb95 7722 eval "$ac_cv_use_numberdlg"
10f2d63a 7723 if test "$no_cache" != 1; then
1e6feb95 7724 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7725 fi
7726
1e6feb95 7727 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7728 echo "$ac_t""yes" 1>&6
10f2d63a 7729 else
a0b9e27f 7730 echo "$ac_t""no" 1>&6
10f2d63a 7731 fi
a0b9e27f 7732
10f2d63a 7733
5005acfe
VZ
7734 enablestring=
7735 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7bb2947d 7736echo "configure:7737: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7737 no_cache=0
7738 # Check whether --enable-splash or --disable-splash was given.
7739if test "${enable_splash+set}" = set; then
7740 enableval="$enable_splash"
a0b9e27f 7741
cbca9943
VZ
7742 if test "$enableval" = yes; then
7743 ac_cv_use_splash='wxUSE_SPLASH=yes'
7744 else
7745 ac_cv_use_splash='wxUSE_SPLASH=no'
7746 fi
a0b9e27f 7747
cbca9943 7748else
a0b9e27f 7749
cbca9943
VZ
7750 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7751 if test "x$LINE" != x ; then
7752 eval "DEFAULT_$LINE"
7753 else
7754 no_cache=1
7755 fi
7756
7757 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7758
7759fi
cbca9943
VZ
7760
7761
7762 eval "$ac_cv_use_splash"
7763 if test "$no_cache" != 1; then
7764 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7765 fi
7766
7767 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7768 echo "$ac_t""yes" 1>&6
cbca9943 7769 else
a0b9e27f 7770 echo "$ac_t""no" 1>&6
cbca9943 7771 fi
a0b9e27f 7772
cbca9943 7773
5005acfe
VZ
7774 enablestring=
7775 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7bb2947d 7776echo "configure:7777: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7777 no_cache=0
7778 # Check whether --enable-textdlg or --disable-textdlg was given.
7779if test "${enable_textdlg+set}" = set; then
7780 enableval="$enable_textdlg"
a0b9e27f 7781
10f2d63a
VZ
7782 if test "$enableval" = yes; then
7783 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7784 else
7785 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7786 fi
a0b9e27f 7787
10f2d63a 7788else
a0b9e27f 7789
10f2d63a
VZ
7790 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7791 if test "x$LINE" != x ; then
7792 eval "DEFAULT_$LINE"
7793 else
7794 no_cache=1
7795 fi
7796
7797 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7798
7799fi
10f2d63a
VZ
7800
7801
7802 eval "$ac_cv_use_textdlg"
7803 if test "$no_cache" != 1; then
7804 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7805 fi
7806
7807 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7808 echo "$ac_t""yes" 1>&6
10f2d63a 7809 else
a0b9e27f 7810 echo "$ac_t""no" 1>&6
10f2d63a 7811 fi
a0b9e27f 7812
10f2d63a 7813
5005acfe
VZ
7814 enablestring=
7815 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7bb2947d 7816echo "configure:7817: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7817 no_cache=0
7818 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7819if test "${enable_tipdlg+set}" = set; then
7820 enableval="$enable_tipdlg"
a0b9e27f 7821
10f2d63a
VZ
7822 if test "$enableval" = yes; then
7823 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7824 else
7825 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7826 fi
a0b9e27f 7827
10f2d63a 7828else
a0b9e27f 7829
10f2d63a
VZ
7830 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7831 if test "x$LINE" != x ; then
7832 eval "DEFAULT_$LINE"
7833 else
7834 no_cache=1
7835 fi
7836
7837 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7838
7839fi
10f2d63a
VZ
7840
7841
7842 eval "$ac_cv_use_tipdlg"
7843 if test "$no_cache" != 1; then
7844 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7845 fi
7846
7847 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7848 echo "$ac_t""yes" 1>&6
10f2d63a 7849 else
a0b9e27f 7850 echo "$ac_t""no" 1>&6
10f2d63a 7851 fi
a0b9e27f 7852
10f2d63a 7853
5005acfe
VZ
7854 enablestring=
7855 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7bb2947d 7856echo "configure:7857: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7857 no_cache=0
7858 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7859if test "${enable_progressdlg+set}" = set; then
7860 enableval="$enable_progressdlg"
a0b9e27f 7861
10f2d63a
VZ
7862 if test "$enableval" = yes; then
7863 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7864 else
7865 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7866 fi
a0b9e27f 7867
10f2d63a 7868else
a0b9e27f 7869
10f2d63a
VZ
7870 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7878
7879fi
10f2d63a
VZ
7880
7881
7882 eval "$ac_cv_use_progressdlg"
7883 if test "$no_cache" != 1; then
7884 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7885 fi
7886
7887 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7888 echo "$ac_t""yes" 1>&6
10f2d63a 7889 else
a0b9e27f 7890 echo "$ac_t""no" 1>&6
10f2d63a 7891 fi
a0b9e27f 7892
10f2d63a 7893
5005acfe
VZ
7894 enablestring=
7895 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7bb2947d 7896echo "configure:7897: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7897 no_cache=0
7898 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7899if test "${enable_wizarddlg+set}" = set; then
7900 enableval="$enable_wizarddlg"
a0b9e27f 7901
b1f5d087
VZ
7902 if test "$enableval" = yes; then
7903 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7904 else
7905 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7906 fi
a0b9e27f 7907
b1f5d087 7908else
a0b9e27f 7909
b1f5d087
VZ
7910 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7918
7919fi
b1f5d087
VZ
7920
7921
7922 eval "$ac_cv_use_wizarddlg"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7928 echo "$ac_t""yes" 1>&6
b1f5d087 7929 else
a0b9e27f 7930 echo "$ac_t""no" 1>&6
b1f5d087 7931 fi
a0b9e27f 7932
8284b0c5
MB
7933
7934
52127426 7935
5005acfe
VZ
7936 enablestring=
7937 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7bb2947d 7938echo "configure:7939: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
7939 no_cache=0
7940 # Check whether --enable-menus or --disable-menus was given.
7941if test "${enable_menus+set}" = set; then
7942 enableval="$enable_menus"
a0b9e27f 7943
1e6feb95
VZ
7944 if test "$enableval" = yes; then
7945 ac_cv_use_menus='wxUSE_MENUS=yes'
7946 else
7947 ac_cv_use_menus='wxUSE_MENUS=no'
7948 fi
a0b9e27f 7949
1e6feb95 7950else
a0b9e27f 7951
1e6feb95
VZ
7952 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7960
7961fi
1e6feb95
VZ
7962
7963
7964 eval "$ac_cv_use_menus"
7965 if test "$no_cache" != 1; then
7966 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7967 fi
7968
7969 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7970 echo "$ac_t""yes" 1>&6
1e6feb95 7971 else
a0b9e27f 7972 echo "$ac_t""no" 1>&6
1e6feb95 7973 fi
a0b9e27f 7974
1e6feb95 7975
5005acfe
VZ
7976 enablestring=
7977 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7bb2947d 7978echo "configure:7979: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
7979 no_cache=0
7980 # Check whether --enable-miniframe or --disable-miniframe was given.
7981if test "${enable_miniframe+set}" = set; then
7982 enableval="$enable_miniframe"
a0b9e27f 7983
10f2d63a
VZ
7984 if test "$enableval" = yes; then
7985 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7986 else
7987 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7988 fi
a0b9e27f 7989
10f2d63a 7990else
a0b9e27f 7991
10f2d63a
VZ
7992 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7993 if test "x$LINE" != x ; then
7994 eval "DEFAULT_$LINE"
7995 else
7996 no_cache=1
7997 fi
7998
7999 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8000
8001fi
10f2d63a
VZ
8002
8003
8004 eval "$ac_cv_use_miniframe"
8005 if test "$no_cache" != 1; then
8006 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8007 fi
8008
8009 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8010 echo "$ac_t""yes" 1>&6
10f2d63a 8011 else
a0b9e27f 8012 echo "$ac_t""no" 1>&6
10f2d63a 8013 fi
a0b9e27f 8014
10f2d63a 8015
5005acfe
VZ
8016 enablestring=
8017 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
7bb2947d 8018echo "configure:8019: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8019 no_cache=0
8020 # Check whether --enable-tooltips or --disable-tooltips was given.
8021if test "${enable_tooltips+set}" = set; then
8022 enableval="$enable_tooltips"
a0b9e27f 8023
10f2d63a
VZ
8024 if test "$enableval" = yes; then
8025 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8026 else
8027 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8028 fi
a0b9e27f 8029
10f2d63a 8030else
a0b9e27f 8031
10f2d63a
VZ
8032 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8040
8041fi
10f2d63a
VZ
8042
8043
8044 eval "$ac_cv_use_tooltips"
8045 if test "$no_cache" != 1; then
8046 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8047 fi
8048
8049 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8050 echo "$ac_t""yes" 1>&6
10f2d63a 8051 else
a0b9e27f 8052 echo "$ac_t""no" 1>&6
10f2d63a 8053 fi
a0b9e27f 8054
10f2d63a 8055
5005acfe
VZ
8056 enablestring=
8057 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
7bb2947d 8058echo "configure:8059: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8059 no_cache=0
8060 # Check whether --enable-splines or --disable-splines was given.
8061if test "${enable_splines+set}" = set; then
8062 enableval="$enable_splines"
a0b9e27f 8063
10f2d63a
VZ
8064 if test "$enableval" = yes; then
8065 ac_cv_use_splines='wxUSE_SPLINES=yes'
8066 else
8067 ac_cv_use_splines='wxUSE_SPLINES=no'
8068 fi
a0b9e27f 8069
10f2d63a 8070else
a0b9e27f 8071
10f2d63a
VZ
8072 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8080
8081fi
10f2d63a
VZ
8082
8083
8084 eval "$ac_cv_use_splines"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8090 echo "$ac_t""yes" 1>&6
10f2d63a 8091 else
a0b9e27f 8092 echo "$ac_t""no" 1>&6
10f2d63a 8093 fi
a0b9e27f 8094
10f2d63a 8095
5005acfe
VZ
8096 enablestring=
8097 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
7bb2947d 8098echo "configure:8099: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8099 no_cache=0
8100 # Check whether --enable-validators or --disable-validators was given.
8101if test "${enable_validators+set}" = set; then
8102 enableval="$enable_validators"
a0b9e27f 8103
10f2d63a
VZ
8104 if test "$enableval" = yes; then
8105 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8106 else
8107 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8108 fi
a0b9e27f 8109
10f2d63a 8110else
a0b9e27f 8111
10f2d63a
VZ
8112 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8120
8121fi
10f2d63a
VZ
8122
8123
8124 eval "$ac_cv_use_validators"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8130 echo "$ac_t""yes" 1>&6
10f2d63a 8131 else
a0b9e27f 8132 echo "$ac_t""no" 1>&6
10f2d63a 8133 fi
a0b9e27f 8134
10f2d63a 8135
5005acfe
VZ
8136 enablestring=
8137 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
7bb2947d 8138echo "configure:8139: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8139 no_cache=0
8140 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8141if test "${enable_busyinfo+set}" = set; then
8142 enableval="$enable_busyinfo"
a0b9e27f 8143
10f2d63a
VZ
8144 if test "$enableval" = yes; then
8145 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8146 else
8147 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8148 fi
a0b9e27f 8149
10f2d63a 8150else
a0b9e27f 8151
10f2d63a
VZ
8152 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8153 if test "x$LINE" != x ; then
8154 eval "DEFAULT_$LINE"
8155 else
8156 no_cache=1
8157 fi
8158
8159 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8160
8161fi
10f2d63a
VZ
8162
8163
8164 eval "$ac_cv_use_busyinfo"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8170 echo "$ac_t""yes" 1>&6
10f2d63a 8171 else
a0b9e27f 8172 echo "$ac_t""no" 1>&6
10f2d63a 8173 fi
a0b9e27f 8174
10f2d63a 8175
5005acfe
VZ
8176 enablestring=
8177 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
7bb2947d 8178echo "configure:8179: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8179 no_cache=0
8180 # Check whether --enable-joystick or --disable-joystick was given.
8181if test "${enable_joystick+set}" = set; then
8182 enableval="$enable_joystick"
a0b9e27f 8183
f6bcfd97
BP
8184 if test "$enableval" = yes; then
8185 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8186 else
8187 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8188 fi
a0b9e27f 8189
f6bcfd97 8190else
a0b9e27f 8191
f6bcfd97
BP
8192 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8200
8201fi
f6bcfd97
BP
8202
8203
8204 eval "$ac_cv_use_joystick"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8210 echo "$ac_t""yes" 1>&6
f6bcfd97 8211 else
a0b9e27f 8212 echo "$ac_t""no" 1>&6
f6bcfd97 8213 fi
a0b9e27f 8214
698dcdb6 8215
5005acfe
VZ
8216 enablestring=
8217 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
7bb2947d 8218echo "configure:8219: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8219 no_cache=0
8220 # Check whether --enable-metafile or --disable-metafile was given.
8221if test "${enable_metafile+set}" = set; then
8222 enableval="$enable_metafile"
a0b9e27f 8223
1e6feb95
VZ
8224 if test "$enableval" = yes; then
8225 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8226 else
8227 ac_cv_use_metafile='wxUSE_METAFILE=no'
8228 fi
a0b9e27f 8229
1e6feb95 8230else
a0b9e27f 8231
1e6feb95
VZ
8232 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8240
8241fi
1e6feb95
VZ
8242
8243
8244 eval "$ac_cv_use_metafile"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8250 echo "$ac_t""yes" 1>&6
1e6feb95 8251 else
a0b9e27f 8252 echo "$ac_t""no" 1>&6
1e6feb95 8253 fi
a0b9e27f 8254
1e6feb95 8255
5005acfe
VZ
8256 enablestring=
8257 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
7bb2947d 8258echo "configure:8259: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8259 no_cache=0
8260 # Check whether --enable-dragimage or --disable-dragimage was given.
8261if test "${enable_dragimage+set}" = set; then
8262 enableval="$enable_dragimage"
a0b9e27f 8263
24fd6d87
VZ
8264 if test "$enableval" = yes; then
8265 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8266 else
8267 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8268 fi
a0b9e27f 8269
24fd6d87 8270else
a0b9e27f 8271
24fd6d87
VZ
8272 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8280
8281fi
24fd6d87
VZ
8282
8283
8284 eval "$ac_cv_use_dragimage"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8290 echo "$ac_t""yes" 1>&6
24fd6d87 8291 else
a0b9e27f 8292 echo "$ac_t""no" 1>&6
24fd6d87 8293 fi
a0b9e27f 8294
52127426 8295
7bb2947d
MB
8296 enablestring=
8297 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8298echo "configure:8299: checking for --${enablestring:-enable}-accessibility" >&5
8299 no_cache=0
8300 # Check whether --enable-accessibility or --disable-accessibility was given.
8301if test "${enable_accessibility+set}" = set; then
8302 enableval="$enable_accessibility"
8303
8304 if test "$enableval" = yes; then
8305 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8306 else
8307 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8308 fi
8309
8310else
8311
8312 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8313 if test "x$LINE" != x ; then
8314 eval "DEFAULT_$LINE"
8315 else
8316 no_cache=1
8317 fi
8318
8319 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8320
8321fi
8322
8323
8324 eval "$ac_cv_use_accessibility"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_ACCESSIBILITY" = yes; then
8330 echo "$ac_t""yes" 1>&6
8331 else
8332 echo "$ac_t""no" 1>&6
8333 fi
8334
8335
8284b0c5
MB
8336
8337
5005acfe
VZ
8338 enablestring=
8339 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
7bb2947d 8340echo "configure:8341: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8341 no_cache=0
8342 # Check whether --enable-palette or --disable-palette was given.
8343if test "${enable_palette+set}" = set; then
8344 enableval="$enable_palette"
a0b9e27f 8345
edae8572
VZ
8346 if test "$enableval" = yes; then
8347 ac_cv_use_palette='wxUSE_PALETTE=yes'
8348 else
8349 ac_cv_use_palette='wxUSE_PALETTE=no'
8350 fi
a0b9e27f 8351
edae8572 8352else
a0b9e27f 8353
edae8572
VZ
8354 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8362
8363fi
edae8572
VZ
8364
8365
8366 eval "$ac_cv_use_palette"
8367 if test "$no_cache" != 1; then
8368 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8369 fi
8370
8371 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8372 echo "$ac_t""yes" 1>&6
edae8572 8373 else
a0b9e27f 8374 echo "$ac_t""no" 1>&6
edae8572 8375 fi
a0b9e27f 8376
edae8572 8377
5005acfe
VZ
8378 enablestring=
8379 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
7bb2947d 8380echo "configure:8381: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8381 no_cache=0
8382 # Check whether --enable-image or --disable-image was given.
8383if test "${enable_image+set}" = set; then
8384 enableval="$enable_image"
a0b9e27f 8385
0046ff7c
VS
8386 if test "$enableval" = yes; then
8387 ac_cv_use_image='wxUSE_IMAGE=yes'
8388 else
8389 ac_cv_use_image='wxUSE_IMAGE=no'
8390 fi
a0b9e27f 8391
0046ff7c 8392else
a0b9e27f 8393
0046ff7c
VS
8394 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8395 if test "x$LINE" != x ; then
8396 eval "DEFAULT_$LINE"
8397 else
8398 no_cache=1
8399 fi
8400
8401 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8402
8403fi
0046ff7c
VS
8404
8405
8406 eval "$ac_cv_use_image"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8412 echo "$ac_t""yes" 1>&6
0046ff7c 8413 else
a0b9e27f 8414 echo "$ac_t""no" 1>&6
0046ff7c 8415 fi
a0b9e27f 8416
0046ff7c 8417
5005acfe
VZ
8418 enablestring=
8419 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
7bb2947d 8420echo "configure:8421: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8421 no_cache=0
8422 # Check whether --enable-gif or --disable-gif was given.
8423if test "${enable_gif+set}" = set; then
8424 enableval="$enable_gif"
a0b9e27f 8425
10f2d63a
VZ
8426 if test "$enableval" = yes; then
8427 ac_cv_use_gif='wxUSE_GIF=yes'
8428 else
8429 ac_cv_use_gif='wxUSE_GIF=no'
8430 fi
a0b9e27f 8431
10f2d63a 8432else
a0b9e27f 8433
10f2d63a
VZ
8434 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8435 if test "x$LINE" != x ; then
8436 eval "DEFAULT_$LINE"
8437 else
8438 no_cache=1
8439 fi
8440
8441 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8442
8443fi
10f2d63a
VZ
8444
8445
8446 eval "$ac_cv_use_gif"
8447 if test "$no_cache" != 1; then
8448 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8449 fi
8450
8451 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8452 echo "$ac_t""yes" 1>&6
10f2d63a 8453 else
a0b9e27f 8454 echo "$ac_t""no" 1>&6
10f2d63a 8455 fi
a0b9e27f 8456
10f2d63a 8457
5005acfe
VZ
8458 enablestring=
8459 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
7bb2947d 8460echo "configure:8461: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8461 no_cache=0
8462 # Check whether --enable-pcx or --disable-pcx was given.
8463if test "${enable_pcx+set}" = set; then
8464 enableval="$enable_pcx"
a0b9e27f 8465
10f2d63a
VZ
8466 if test "$enableval" = yes; then
8467 ac_cv_use_pcx='wxUSE_PCX=yes'
8468 else
8469 ac_cv_use_pcx='wxUSE_PCX=no'
8470 fi
a0b9e27f 8471
10f2d63a 8472else
a0b9e27f 8473
10f2d63a
VZ
8474 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
8481 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8482
8483fi
10f2d63a
VZ
8484
8485
8486 eval "$ac_cv_use_pcx"
8487 if test "$no_cache" != 1; then
8488 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8489 fi
8490
8491 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8492 echo "$ac_t""yes" 1>&6
10f2d63a 8493 else
a0b9e27f 8494 echo "$ac_t""no" 1>&6
10f2d63a 8495 fi
a0b9e27f 8496
10f2d63a 8497
5005acfe
VZ
8498 enablestring=
8499 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
7bb2947d 8500echo "configure:8501: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8501 no_cache=0
8502 # Check whether --enable-iff or --disable-iff was given.
8503if test "${enable_iff+set}" = set; then
8504 enableval="$enable_iff"
a0b9e27f 8505
4b6b4dfc
RR
8506 if test "$enableval" = yes; then
8507 ac_cv_use_iff='wxUSE_IFF=yes'
8508 else
8509 ac_cv_use_iff='wxUSE_IFF=no'
8510 fi
a0b9e27f 8511
4b6b4dfc 8512else
a0b9e27f 8513
4b6b4dfc
RR
8514 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8522
8523fi
4b6b4dfc
RR
8524
8525
8526 eval "$ac_cv_use_iff"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8532 echo "$ac_t""yes" 1>&6
4b6b4dfc 8533 else
a0b9e27f 8534 echo "$ac_t""no" 1>&6
4b6b4dfc 8535 fi
a0b9e27f 8536
4b6b4dfc 8537
5005acfe
VZ
8538 enablestring=
8539 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
7bb2947d 8540echo "configure:8541: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8541 no_cache=0
8542 # Check whether --enable-pnm or --disable-pnm was given.
8543if test "${enable_pnm+set}" = set; then
8544 enableval="$enable_pnm"
a0b9e27f 8545
10f2d63a
VZ
8546 if test "$enableval" = yes; then
8547 ac_cv_use_pnm='wxUSE_PNM=yes'
8548 else
8549 ac_cv_use_pnm='wxUSE_PNM=no'
8550 fi
a0b9e27f 8551
10f2d63a 8552else
a0b9e27f 8553
10f2d63a
VZ
8554 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8555 if test "x$LINE" != x ; then
8556 eval "DEFAULT_$LINE"
8557 else
8558 no_cache=1
8559 fi
8560
8561 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8562
8563fi
10f2d63a
VZ
8564
8565
8566 eval "$ac_cv_use_pnm"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8572 echo "$ac_t""yes" 1>&6
10f2d63a 8573 else
a0b9e27f 8574 echo "$ac_t""no" 1>&6
10f2d63a 8575 fi
a0b9e27f 8576
10f2d63a 8577
5005acfe
VZ
8578 enablestring=
8579 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
7bb2947d 8580echo "configure:8581: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8581 no_cache=0
69d27ff7
MB
8582 # Check whether --enable-xpm or --disable-xpm was given.
8583if test "${enable_xpm+set}" = set; then
8584 enableval="$enable_xpm"
a0b9e27f 8585
0046ff7c 8586 if test "$enableval" = yes; then
69d27ff7 8587 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8588 else
69d27ff7 8589 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8590 fi
a0b9e27f 8591
0046ff7c 8592else
a0b9e27f 8593
0046ff7c
VS
8594 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
69d27ff7 8601 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8602
8603fi
0046ff7c
VS
8604
8605
69d27ff7 8606 eval "$ac_cv_use_xpm"
0046ff7c 8607 if test "$no_cache" != 1; then
69d27ff7 8608 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8609 fi
8610
8611 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8612 echo "$ac_t""yes" 1>&6
0046ff7c 8613 else
a0b9e27f 8614 echo "$ac_t""no" 1>&6
0046ff7c 8615 fi
a0b9e27f 8616
0046ff7c 8617
5005acfe
VZ
8618 enablestring=
8619 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
7bb2947d 8620echo "configure:8621: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8621 no_cache=0
c7206e64
VS
8622 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8623if test "${enable_ico_cur+set}" = set; then
8624 enableval="$enable_ico_cur"
a0b9e27f 8625
658974ae 8626 if test "$enableval" = yes; then
c7206e64 8627 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8628 else
c7206e64 8629 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8630 fi
a0b9e27f 8631
658974ae 8632else
a0b9e27f 8633
658974ae
VS
8634 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
c7206e64 8641 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8642
8643fi
658974ae
VS
8644
8645
c7206e64 8646 eval "$ac_cv_use_ico_cur"
658974ae 8647 if test "$no_cache" != 1; then
c7206e64 8648 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8649 fi
8650
8651 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8652 echo "$ac_t""yes" 1>&6
658974ae 8653 else
a0b9e27f 8654 echo "$ac_t""no" 1>&6
658974ae 8655 fi
a0b9e27f 8656
658974ae 8657
b12915c1
VZ
8658fi
8659
d558c907
VS
8660case "${host}" in
8661 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8662 PATH_IFS=';'
8663 LEX_STEM="lexyy"
d558c907
VS
8664 ;;
8665 *)
8666 PATH_IFS=':'
8667 LEX_STEM="lex.yy"
8668 ;;
8669esac
8670
8284b0c5
MB
8671
8672
10f2d63a
VZ
8673 echo "saving argument cache $wx_arg_cache_file"
8674 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8675
52127426 8676
8284b0c5 8677
a0b9e27f 8678echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7bb2947d 8679echo "configure:8680: checking for toolkit" >&5
89e6bf6d
VZ
8680
8681# In Wine, we need to default to MSW, not GTK or MOTIF
8682if test "$wxUSE_WINE" = "yes"; then
8683 DEFAULT_DEFAULT_wxUSE_GTK=0
8684 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8685 DEFAULT_DEFAULT_wxUSE_MSW=1
8686fi
10f2d63a
VZ
8687
8688if test "$wxUSE_GUI" = "yes"; then
8689
3a922bb4 8690 if test "$USE_BEOS" = 1; then
a0b9e27f 8691 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8692 fi
b12915c1 8693
3a922bb4
RL
8694 if test "$TOOLKIT_GIVEN" = 1; then
8695 for toolkit in `echo $ALL_TOOLKITS`; do
8696 var=wxUSE_$toolkit
8697 eval "value=\$${var}"
8698 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8699 done
10f2d63a 8700 else
3a922bb4
RL
8701 for toolkit in `echo $ALL_TOOLKITS`; do
8702 if test "$has_toolkit_in_cache" != 1; then
8703 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8704 else
8705 var=DEFAULT_wxUSE_$toolkit
8706 fi
8707 eval "wxUSE_$toolkit=\$${var}"
8708 done
10f2d63a 8709 fi
10f2d63a 8710
ac0c4cc3
DE
8711 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8712 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8713 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8714
d558c907 8715 case "${host}" in
6fa882bd 8716 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8717 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8718 esac
10f2d63a 8719
3a922bb4
RL
8720 case "$NUM_TOOLKITS" in
8721 1)
8722 ;;
8723 0)
a0b9e27f 8724 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8725 ;;
8726 *)
a0b9e27f 8727 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8728 esac
10f2d63a 8729
3a922bb4
RL
8730 for toolkit in `echo $ALL_TOOLKITS`; do
8731 var=wxUSE_$toolkit
8732 eval "value=\$${var}"
8733 if test "x$value" != x; then
8734 cache_var=CACHE_$toolkit
8735 eval "cache=\$${cache_var}"
8736 if test "$cache" = 1; then
8737 echo "$var=$value" >> ${wx_arg_cache_file}
8738 fi
8739 if test "$value" = 1; then
8740 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8741 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8742 fi
8743 fi
8744 done
10f2d63a 8745else
a0b9e27f 8746 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8747fi
8748
43d99b6d
VS
8749wants_win32=0
8750doesnt_want_win32=0
17234b26
MB
8751case "${host}" in
8752 *-*-cygwin*)
8753 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8754 wants_win32=1
8755 else
8756 doesnt_want_win32=1
17234b26
MB
8757 fi
8758 ;;
8759 *-*-mingw*)
43d99b6d 8760 wants_win32=1
17234b26
MB
8761 ;;
8762esac
8763
89e6bf6d
VZ
8764if test "$wxUSE_WINE" = "yes"; then
8765 wants_win32=1
8766 CC=winegcc
8767 CXX=wineg++
8768 RESCOMP=wrc
8769fi
8770
43d99b6d 8771if test "$wants_win32" = 1 ; then
17234b26
MB
8772 USE_UNIX=0
8773 USE_WIN32=1
a0b9e27f 8774 cat >> confdefs.h <<\EOF
17234b26 8775#define __WIN32__ 1
a0b9e27f 8776EOF
17234b26 8777
a0b9e27f 8778 cat >> confdefs.h <<\EOF
17234b26 8779#define __WIN95__ 1
a0b9e27f 8780EOF
17234b26 8781
a0b9e27f 8782 cat >> confdefs.h <<\EOF
17234b26 8783#define __WINDOWS__ 1
a0b9e27f 8784EOF
17234b26 8785
a0b9e27f 8786 cat >> confdefs.h <<\EOF
17234b26 8787#define __GNUWIN32__ 1
a0b9e27f 8788EOF
17234b26 8789
a0b9e27f 8790 cat >> confdefs.h <<\EOF
17234b26 8791#define STRICT 1
a0b9e27f 8792EOF
17234b26 8793
a0b9e27f 8794 cat >> confdefs.h <<\EOF
17234b26 8795#define WINVER 0x0400
a0b9e27f 8796EOF
17234b26 8797
43d99b6d
VS
8798fi
8799if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8800 USE_UNIX=1
8801 USE_WIN32=0
8802fi
8803
8804if test "$USE_UNIX" = 1 ; then
8805 wxUSE_UNIX=yes
a0b9e27f 8806 cat >> confdefs.h <<\EOF
17234b26 8807#define __UNIX__ 1
a0b9e27f 8808EOF
17234b26
MB
8809
8810fi
8811
8284b0c5 8812
a0b9e27f 8813cat > confcache <<\EOF
10f2d63a
VZ
8814# This file is a shell script that caches the results of configure
8815# tests run on this system so they can be shared between configure
a0b9e27f
MB
8816# scripts and configure runs. It is not useful on other systems.
8817# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8818#
a0b9e27f
MB
8819# By default, configure uses ./config.cache as the cache file,
8820# creating it if it does not exist already. You can give configure
8821# the --cache-file=FILE option to use a different cache file; that is
8822# what configure does when it calls configure scripts in
8823# subdirectories, so they share the cache.
8824# Giving --cache-file=/dev/null disables caching, for debugging configure.
8825# config.status only pays attention to the cache file if you give it the
8826# --recheck option to rerun configure.
10f2d63a 8827#
a0b9e27f 8828EOF
10f2d63a
VZ
8829# The following way of writing the cache mishandles newlines in values,
8830# but we know of no workaround that is simple, portable, and efficient.
8831# So, don't put newlines in cache variables' values.
8832# Ultrix sh set writes to stderr and can't be redirected directly,
8833# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8834(set) 2>&1 |
8835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8836 *ac_space=\ *)
8837 # `set' does not quote correctly, so add quotes (double-quote substitution
8838 # turns \\\\ into \\, and sed turns \\ into \).
8839 sed -n \
8840 -e "s/'/'\\\\''/g" \
8841 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8842 ;;
8843 *)
8844 # `set' quotes correctly as required by POSIX, so do not add quotes.
8845 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8846 ;;
8847 esac >> confcache
8848if cmp -s $cache_file confcache; then
8849 :
8850else
10f2d63a 8851 if test -w $cache_file; then
a0b9e27f
MB
8852 echo "updating cache $cache_file"
8853 cat confcache > $cache_file
10f2d63a
VZ
8854 else
8855 echo "not updating unwritable cache $cache_file"
8856 fi
8857fi
8858rm -f confcache
8859
a0b9e27f 8860
e59890c3 8861if test "$build" != "$host" ; then
9d353d4a 8862 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8863 CC=$host_alias-gcc
8864 CXX=$host_alias-c++
8865 AR=$host_alias-ar
8866 RANLIB=$host_alias-ranlib
8867 DLLTOOL=$host_alias-dlltool
8868 RESCOMP=$host_alias-windres
8869 LD=$host_alias-ld
8870 NM=$host_alias-nm
8871 STRIP=$host_alias-strip
8872 else
a0b9e27f 8873 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8874 fi
10f2d63a
VZ
8875fi
8876
ec603395 8877CFLAGS=${CFLAGS:=}
a0b9e27f 8878# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8879set dummy gcc; ac_word=$2
a0b9e27f 8880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 8881echo "configure:8882: checking for $ac_word" >&5
a0b9e27f
MB
8882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8884else
8885 if test -n "$CC"; then
8886 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8887else
a0b9e27f
MB
8888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8889 ac_dummy="$PATH"
8890 for ac_dir in $ac_dummy; do
8891 test -z "$ac_dir" && ac_dir=.
8892 if test -f $ac_dir/$ac_word; then
8893 ac_cv_prog_CC="gcc"
8894 break
8895 fi
8896 done
8897 IFS="$ac_save_ifs"
10f2d63a 8898fi
6232543b 8899fi
a0b9e27f 8900CC="$ac_cv_prog_CC"
6232543b 8901if test -n "$CC"; then
a0b9e27f 8902 echo "$ac_t""$CC" 1>&6
247f5006 8903else
a0b9e27f 8904 echo "$ac_t""no" 1>&6
247f5006
VZ
8905fi
8906
5c6fa7d2
RR
8907if test -z "$CC"; then
8908 # Extract the first word of "cc", so it can be a program name with args.
8909set dummy cc; ac_word=$2
a0b9e27f 8910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 8911echo "configure:8912: checking for $ac_word" >&5
a0b9e27f
MB
8912if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8914else
8915 if test -n "$CC"; then
8916 ac_cv_prog_CC="$CC" # Let the user override the test.
8917else
a0b9e27f 8918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8919 ac_prog_rejected=no
a0b9e27f
MB
8920 ac_dummy="$PATH"
8921 for ac_dir in $ac_dummy; do
8922 test -z "$ac_dir" && ac_dir=.
8923 if test -f $ac_dir/$ac_word; then
8924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8925 ac_prog_rejected=yes
8926 continue
8927 fi
8928 ac_cv_prog_CC="cc"
8929 break
8930 fi
8931 done
8932 IFS="$ac_save_ifs"
328a083c
RR
8933if test $ac_prog_rejected = yes; then
8934 # We found a bogon in the path, so make sure we never use it.
8935 set dummy $ac_cv_prog_CC
8936 shift
a0b9e27f 8937 if test $# -gt 0; then
328a083c 8938 # We chose a different compiler from the bogus one.
1e487827
VS
8939 # However, it has the same basename, so the bogon will be chosen
8940 # first if we set CC to just the basename; use the full file name.
8941 shift
a0b9e27f 8942 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8943 shift
8944 ac_cv_prog_CC="$@"
703e0a69 8945 fi
1e487827
VS
8946fi
8947fi
8948fi
a0b9e27f 8949CC="$ac_cv_prog_CC"
1e487827 8950if test -n "$CC"; then
a0b9e27f 8951 echo "$ac_t""$CC" 1>&6
703e0a69 8952else
a0b9e27f 8953 echo "$ac_t""no" 1>&6
703e0a69 8954fi
1e487827 8955
a0b9e27f
MB
8956 if test -z "$CC"; then
8957 case "`uname -s`" in
8958 *win32* | *WIN32*)
8959 # Extract the first word of "cl", so it can be a program name with args.
8960set dummy cl; ac_word=$2
8961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 8962echo "configure:8963: checking for $ac_word" >&5
a0b9e27f
MB
8963if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8965else
8966 if test -n "$CC"; then
8967 ac_cv_prog_CC="$CC" # Let the user override the test.
8968else
a0b9e27f
MB
8969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8970 ac_dummy="$PATH"
8971 for ac_dir in $ac_dummy; do
8972 test -z "$ac_dir" && ac_dir=.
8973 if test -f $ac_dir/$ac_word; then
8974 ac_cv_prog_CC="cl"
8975 break
8976 fi
8977 done
8978 IFS="$ac_save_ifs"
f09359cf
VS
8979fi
8980fi
a0b9e27f 8981CC="$ac_cv_prog_CC"
f09359cf 8982if test -n "$CC"; then
a0b9e27f 8983 echo "$ac_t""$CC" 1>&6
f09359cf 8984else
a0b9e27f 8985 echo "$ac_t""no" 1>&6
247f5006 8986fi
a0b9e27f
MB
8987 ;;
8988 esac
8284b0c5 8989 fi
a0b9e27f 8990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 8991fi
1e487827 8992
a0b9e27f 8993echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7bb2947d 8994echo "configure:8995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 8995
a0b9e27f
MB
8996ac_ext=c
8997# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8998ac_cpp='$CPP $CPPFLAGS'
8999ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9000ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9001cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9002
a0b9e27f 9003cat > conftest.$ac_ext << EOF
247f5006 9004
7bb2947d 9005#line 9006 "configure"
a0b9e27f 9006#include "confdefs.h"
247f5006 9007
a0b9e27f
MB
9008main(){return(0);}
9009EOF
7bb2947d 9010if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9011 ac_cv_prog_cc_works=yes
9012 # If we can't run a trivial program, we are probably using a cross compiler.
9013 if (./conftest; exit) 2>/dev/null; then
9014 ac_cv_prog_cc_cross=no
698dcdb6 9015 else
a0b9e27f 9016 ac_cv_prog_cc_cross=yes
698dcdb6 9017 fi
7b4a847f 9018else
a0b9e27f
MB
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9021 ac_cv_prog_cc_works=no
52127426 9022fi
a0b9e27f
MB
9023rm -fr conftest*
9024ac_ext=c
9025# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9026ac_cpp='$CPP $CPPFLAGS'
9027ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9028ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9029cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9030
a0b9e27f
MB
9031echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9032if test $ac_cv_prog_cc_works = no; then
9033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9034fi
9035echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7bb2947d 9036echo "configure:9037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9037echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9038cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9039
a0b9e27f 9040echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7bb2947d 9041echo "configure:9042: checking whether we are using GNU C" >&5
a0b9e27f
MB
9042if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9044else
a0b9e27f
MB
9045 cat > conftest.c <<EOF
9046#ifdef __GNUC__
9047 yes;
8284b0c5 9048#endif
a0b9e27f 9049EOF
7bb2947d 9050if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9051 ac_cv_prog_gcc=yes
5c6fa7d2 9052else
a0b9e27f 9053 ac_cv_prog_gcc=no
8284b0c5
MB
9054fi
9055fi
1e487827 9056
a0b9e27f 9057echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9058
a0b9e27f
MB
9059if test $ac_cv_prog_gcc = yes; then
9060 GCC=yes
9061else
9062 GCC=
9063fi
247f5006 9064
a0b9e27f
MB
9065ac_test_CFLAGS="${CFLAGS+set}"
9066ac_save_CFLAGS="$CFLAGS"
9067CFLAGS=
9068echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7bb2947d 9069echo "configure:9070: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9070if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072else
9073 echo 'void f(){}' > conftest.c
9074if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9075 ac_cv_prog_cc_g=yes
9076else
a0b9e27f 9077 ac_cv_prog_cc_g=no
10f2d63a 9078fi
a0b9e27f
MB
9079rm -f conftest*
9080
10f2d63a 9081fi
a0b9e27f
MB
9082
9083echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9084if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9085 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9086elif test $ac_cv_prog_cc_g = yes; then
9087 if test "$GCC" = yes; then
10f2d63a
VZ
9088 CFLAGS="-g -O2"
9089 else
f09359cf 9090 CFLAGS="-g"
10f2d63a 9091 fi
5c0a20c3 9092else
f09359cf
VS
9093 if test "$GCC" = yes; then
9094 CFLAGS="-O2"
9095 else
9096 CFLAGS=
9097 fi
10f2d63a
VZ
9098fi
9099
9100
a0b9e27f 9101echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7bb2947d 9102echo "configure:9103: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9103# On Suns, sometimes $CPP names a directory.
9104if test -n "$CPP" && test -d "$CPP"; then
9105 CPP=
9106fi
9107if test -z "$CPP"; then
a0b9e27f
MB
9108if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9109 echo $ac_n "(cached) $ac_c" 1>&6
9110else
9111 # This must be in double quotes, not single quotes, because CPP may get
9112 # substituted into the Makefile and "${CC-cc}" will confuse make.
9113 CPP="${CC-cc} -E"
10f2d63a 9114 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9115 # not just through cpp.
9116 cat > conftest.$ac_ext <<EOF
7bb2947d 9117#line 9118 "configure"
10f2d63a
VZ
9118#include "confdefs.h"
9119#include <assert.h>
a0b9e27f
MB
9120Syntax Error
9121EOF
9122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9123{ (eval echo configure:9124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9125if test -z "$ac_err"; then
10f2d63a
VZ
9126 :
9127else
a0b9e27f
MB
9128 echo "$ac_err" >&5
9129 echo "configure: failed program was:" >&5
10f2d63a 9130 cat conftest.$ac_ext >&5
a0b9e27f
MB
9131 rm -rf conftest*
9132 CPP="${CC-cc} -E -traditional-cpp"
9133 cat > conftest.$ac_ext <<EOF
7bb2947d 9134#line 9135 "configure"
f09359cf 9135#include "confdefs.h"
a0b9e27f
MB
9136#include <assert.h>
9137Syntax Error
9138EOF
9139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9140{ (eval echo configure:9141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9142if test -z "$ac_err"; then
9143 :
247f5006 9144else
a0b9e27f
MB
9145 echo "$ac_err" >&5
9146 echo "configure: failed program was:" >&5
f09359cf 9147 cat conftest.$ac_ext >&5
a0b9e27f
MB
9148 rm -rf conftest*
9149 CPP="${CC-cc} -nologo -E"
9150 cat > conftest.$ac_ext <<EOF
7bb2947d 9151#line 9152 "configure"
10f2d63a
VZ
9152#include "confdefs.h"
9153#include <assert.h>
a0b9e27f
MB
9154Syntax Error
9155EOF
9156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9157{ (eval echo configure:9158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9159if test -z "$ac_err"; then
10f2d63a
VZ
9160 :
9161else
a0b9e27f
MB
9162 echo "$ac_err" >&5
9163 echo "configure: failed program was:" >&5
10f2d63a 9164 cat conftest.$ac_ext >&5
a0b9e27f
MB
9165 rm -rf conftest*
9166 CPP=/lib/cpp
579d8138 9167fi
a0b9e27f 9168rm -f conftest*
52127426 9169fi
a0b9e27f 9170rm -f conftest*
8284b0c5 9171fi
a0b9e27f
MB
9172rm -f conftest*
9173 ac_cv_prog_CPP="$CPP"
9174fi
9175 CPP="$ac_cv_prog_CPP"
10f2d63a 9176else
a0b9e27f 9177 ac_cv_prog_CPP="$CPP"
10f2d63a 9178fi
a0b9e27f 9179echo "$ac_t""$CPP" 1>&6
10f2d63a 9180
a0b9e27f
MB
9181if test $ac_cv_prog_gcc = yes; then
9182 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7bb2947d 9183echo "configure:9184: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9184if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9186else
9187 ac_pattern="Autoconf.*'x'"
a0b9e27f 9188 cat > conftest.$ac_ext <<EOF
7bb2947d 9189#line 9190 "configure"
10f2d63a
VZ
9190#include "confdefs.h"
9191#include <sgtty.h>
9192Autoconf TIOCGETP
a0b9e27f 9193EOF
10f2d63a
VZ
9194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9196 rm -rf conftest*
10f2d63a
VZ
9197 ac_cv_prog_gcc_traditional=yes
9198else
a0b9e27f 9199 rm -rf conftest*
10f2d63a
VZ
9200 ac_cv_prog_gcc_traditional=no
9201fi
9202rm -f conftest*
9203
8284b0c5 9204
10f2d63a 9205 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9206 cat > conftest.$ac_ext <<EOF
7bb2947d 9207#line 9208 "configure"
10f2d63a
VZ
9208#include "confdefs.h"
9209#include <termio.h>
9210Autoconf TCGETA
a0b9e27f 9211EOF
10f2d63a
VZ
9212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9213 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9214 rm -rf conftest*
10f2d63a
VZ
9215 ac_cv_prog_gcc_traditional=yes
9216fi
9217rm -f conftest*
9218
9219 fi
9220fi
a0b9e27f
MB
9221
9222echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9223 if test $ac_cv_prog_gcc_traditional = yes; then
9224 CC="$CC -traditional"
9225 fi
9226fi
9227
8284b0c5
MB
9228
9229
a0b9e27f
MB
9230ac_ext=C
9231# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9232ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9233ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9234ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9235cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9236
698dcdb6 9237
ec603395 9238CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9239for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9240do
9241# Extract the first word of "$ac_prog", so it can be a program name with args.
9242set dummy $ac_prog; ac_word=$2
9243echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 9244echo "configure:9245: checking for $ac_word" >&5
a0b9e27f
MB
9245if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9247else
9248 if test -n "$CXX"; then
9249 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9250else
a0b9e27f
MB
9251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9252 ac_dummy="$PATH"
9253 for ac_dir in $ac_dummy; do
9254 test -z "$ac_dir" && ac_dir=.
9255 if test -f $ac_dir/$ac_word; then
9256 ac_cv_prog_CXX="$ac_prog"
9257 break
9258 fi
9259 done
9260 IFS="$ac_save_ifs"
10f2d63a
VZ
9261fi
9262fi
a0b9e27f 9263CXX="$ac_cv_prog_CXX"
10f2d63a 9264if test -n "$CXX"; then
a0b9e27f 9265 echo "$ac_t""$CXX" 1>&6
10f2d63a 9266else
a0b9e27f 9267 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9268fi
9269
a0b9e27f 9270test -n "$CXX" && break
10f2d63a 9271done
a0b9e27f 9272test -n "$CXX" || CXX="gcc"
f09359cf 9273
a0b9e27f
MB
9274
9275echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7bb2947d 9276echo "configure:9277: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9277
9278ac_ext=C
9279# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9280ac_cpp='$CXXCPP $CPPFLAGS'
9281ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9282ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9283cross_compiling=$ac_cv_prog_cxx_cross
9284
9285cat > conftest.$ac_ext << EOF
9286
7bb2947d 9287#line 9288 "configure"
a0b9e27f
MB
9288#include "confdefs.h"
9289
9290int main(){return(0);}
9291EOF
7bb2947d 9292if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9293 ac_cv_prog_cxx_works=yes
9294 # If we can't run a trivial program, we are probably using a cross compiler.
9295 if (./conftest; exit) 2>/dev/null; then
9296 ac_cv_prog_cxx_cross=no
9297 else
9298 ac_cv_prog_cxx_cross=yes
9299 fi
8284b0c5 9300else
a0b9e27f
MB
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 ac_cv_prog_cxx_works=no
8284b0c5 9304fi
a0b9e27f
MB
9305rm -fr conftest*
9306ac_ext=C
9307# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9308ac_cpp='$CXXCPP $CPPFLAGS'
9309ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9310ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9311cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9312
a0b9e27f
MB
9313echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9314if test $ac_cv_prog_cxx_works = no; then
9315 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9316fi
9317echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7bb2947d 9318echo "configure:9319: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9319echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9320cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9321
a0b9e27f 9322echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7bb2947d 9323echo "configure:9324: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9324if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326else
9327 cat > conftest.C <<EOF
9328#ifdef __GNUC__
9329 yes;
10f2d63a 9330#endif
a0b9e27f 9331EOF
7bb2947d 9332if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9333 ac_cv_prog_gxx=yes
9334else
9335 ac_cv_prog_gxx=no
9336fi
9337fi
10f2d63a 9338
a0b9e27f 9339echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9340
a0b9e27f
MB
9341if test $ac_cv_prog_gxx = yes; then
9342 GXX=yes
9343else
9344 GXX=
9345fi
f09359cf 9346
a0b9e27f
MB
9347ac_test_CXXFLAGS="${CXXFLAGS+set}"
9348ac_save_CXXFLAGS="$CXXFLAGS"
9349CXXFLAGS=
9350echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7bb2947d 9351echo "configure:9352: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9352if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9354else
9355 echo 'void f(){}' > conftest.cc
9356if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9357 ac_cv_prog_cxx_g=yes
9358else
a0b9e27f 9359 ac_cv_prog_cxx_g=no
10f2d63a 9360fi
a0b9e27f
MB
9361rm -f conftest*
9362
10f2d63a 9363fi
a0b9e27f
MB
9364
9365echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9366if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9367 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9368elif test $ac_cv_prog_cxx_g = yes; then
9369 if test "$GXX" = yes; then
10f2d63a
VZ
9370 CXXFLAGS="-g -O2"
9371 else
f09359cf 9372 CXXFLAGS="-g"
10f2d63a 9373 fi
5c0a20c3 9374else
f09359cf
VS
9375 if test "$GXX" = yes; then
9376 CXXFLAGS="-O2"
9377 else
9378 CXXFLAGS=
9379 fi
10f2d63a
VZ
9380fi
9381
9382
10f2d63a 9383ac_ext=c
a0b9e27f 9384# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9385ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9386ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9387ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9388cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9389
9390
a0b9e27f
MB
9391# Extract the first word of "ranlib", so it can be a program name with args.
9392set dummy ranlib; ac_word=$2
9393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 9394echo "configure:9395: checking for $ac_word" >&5
a0b9e27f
MB
9395if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9397else
9398 if test -n "$RANLIB"; then
9399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9400else
a0b9e27f
MB
9401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9402 ac_dummy="$PATH"
9403 for ac_dir in $ac_dummy; do
9404 test -z "$ac_dir" && ac_dir=.
9405 if test -f $ac_dir/$ac_word; then
9406 ac_cv_prog_RANLIB="ranlib"
9407 break
9408 fi
9409 done
9410 IFS="$ac_save_ifs"
9411 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9412fi
9413fi
a0b9e27f 9414RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9415if test -n "$RANLIB"; then
a0b9e27f 9416 echo "$ac_t""$RANLIB" 1>&6
328a083c 9417else
a0b9e27f 9418 echo "$ac_t""no" 1>&6
328a083c
RR
9419fi
9420
10f2d63a
VZ
9421
9422# Extract the first word of "ar", so it can be a program name with args.
9423set dummy ar; ac_word=$2
a0b9e27f 9424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 9425echo "configure:9426: checking for $ac_word" >&5
a0b9e27f
MB
9426if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9427 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9428else
9429 if test -n "$AR"; then
9430 ac_cv_prog_AR="$AR" # Let the user override the test.
9431else
a0b9e27f
MB
9432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9433 ac_dummy="$PATH"
9434 for ac_dir in $ac_dummy; do
9435 test -z "$ac_dir" && ac_dir=.
9436 if test -f $ac_dir/$ac_word; then
9437 ac_cv_prog_AR="ar"
9438 break
9439 fi
9440 done
9441 IFS="$ac_save_ifs"
10f2d63a
VZ
9442 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9443fi
9444fi
a0b9e27f 9445AR="$ac_cv_prog_AR"
10f2d63a 9446if test -n "$AR"; then
a0b9e27f 9447 echo "$ac_t""$AR" 1>&6
10f2d63a 9448else
a0b9e27f 9449 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9450fi
9451
8284b0c5 9452
6054113a 9453# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9454# so one script is as good as another. But avoid the broken or
9455# incompatible versions:
9456# SysV /etc/install, /usr/sbin/install
9457# SunOS /usr/etc/install
9458# IRIX /sbin/install
9459# AIX /bin/install
f09359cf 9460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9463# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9464echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7bb2947d 9465echo "configure:9466: checking for a BSD compatible install" >&5
10f2d63a 9466if test -z "$INSTALL"; then
a0b9e27f
MB
9467if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469else
9470 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9471 for ac_dir in $PATH; do
9472 # Account for people who put trailing slashes in PATH elements.
9473 case "$ac_dir/" in
9474 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9475 *)
9476 # OSF1 and SCO ODT 3.0 have their own names for install.
9477 # Don't use installbsd from OSF since it installs stuff as root
9478 # by default.
9479 for ac_prog in ginstall scoinst install; do
9480 if test -f $ac_dir/$ac_prog; then
9481 if test $ac_prog = install &&
9482 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9483 # AIX install. It has an incompatible calling convention.
9484 :
9485 else
9486 ac_cv_path_install="$ac_dir/$ac_prog -c"
9487 break 2
9488 fi
9489 fi
10f2d63a 9490 done
a0b9e27f
MB
9491 ;;
9492 esac
9493 done
9494 IFS="$ac_save_IFS"
10f2d63a
VZ
9495
9496fi
9497 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9498 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9499 else
9500 # As a last resort, use the slow shell script. We don't cache a
9501 # path for INSTALL within a source directory, because that will
9502 # break other packages using the cache if that directory is
9503 # removed, or if the path is relative.
a0b9e27f 9504 INSTALL="$ac_install_sh"
10f2d63a
VZ
9505 fi
9506fi
a0b9e27f 9507echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9508
9509# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9510# It thinks the first close brace ends the variable substitution.
9511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9512
a0b9e27f 9513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9514
10f2d63a
VZ
9515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9516
8284b0c5 9517
1d1b75ac
VZ
9518case ${INSTALL} in
9519 /* ) # Absolute
9520 ;;
4f5a7f74
VZ
9521 ?:* ) # Drive letter, considered as absolute.
9522 ;;
3bd8fb5f 9523 *)
1d1b75ac
VZ
9524 INSTALL=`pwd`/${INSTALL} ;;
9525esac
9526
4f5a7f74
VZ
9527case ${host} in
9528 *-hp-hpux* )
9529 INSTALL_DIR="mkdir"
9530 ;;
9531
9532 *) INSTALL_DIR="$INSTALL -d"
9533 ;;
9534esac
9535
8284b0c5 9536
6054113a
GD
9537case "${host}" in
9538
b5853384 9539 powerpc-*-darwin* )
eb99ae0b
GD
9540 INSTALL_PROGRAM="cp -fp"
9541 INSTALL_DATA="cp -fp"
6054113a
GD
9542 ;;
9543 *)
9544 ;;
d6853540 9545esac
698dcdb6 9546
10f2d63a
VZ
9547# Extract the first word of "strip", so it can be a program name with args.
9548set dummy strip; ac_word=$2
a0b9e27f 9549echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 9550echo "configure:9551: checking for $ac_word" >&5
a0b9e27f
MB
9551if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9553else
9554 if test -n "$STRIP"; then
9555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9556else
a0b9e27f
MB
9557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9558 ac_dummy="$PATH"
9559 for ac_dir in $ac_dummy; do
9560 test -z "$ac_dir" && ac_dir=.
9561 if test -f $ac_dir/$ac_word; then
9562 ac_cv_prog_STRIP="strip"
9563 break
9564 fi
9565 done
9566 IFS="$ac_save_ifs"
10f2d63a
VZ
9567 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9568fi
9569fi
a0b9e27f 9570STRIP="$ac_cv_prog_STRIP"
10f2d63a 9571if test -n "$STRIP"; then
a0b9e27f 9572 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9573else
a0b9e27f 9574 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9575fi
9576
5c6fa7d2 9577
a0b9e27f 9578echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
7bb2947d 9579echo "configure:9580: checking if make is GNU make" >&5
a0b9e27f
MB
9580if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9582else
a0b9e27f 9583
414eab6d 9584 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9585 egrep -s GNU > /dev/null); then
414eab6d
VZ
9586 wx_cv_prog_makeisgnu="yes"
9587 else
9588 wx_cv_prog_makeisgnu="no"
9589 fi
9590
9591fi
a0b9e27f
MB
9592
9593echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9594
9595if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9596 IF_GNU_MAKE=""
9597else
9598 IF_GNU_MAKE="#"
9599fi
9600
8284b0c5
MB
9601
9602
414eab6d 9603if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9604echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
7bb2947d 9605echo "configure:9606: checking if make supports VPATH" >&5
a0b9e27f
MB
9606if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9607 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9608else
a0b9e27f 9609
10f2d63a
VZ
9610cat - << EOF > confMake
9611check : file
9612 cp \$? \$@
9613 cp \$? final_file
9614EOF
9615
9616if test ! -d sub ; then
9617 mkdir sub
9618fi
9619echo dummy > sub/file
f6bcfd97 9620${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9621RESULT=$?
9622rm -f sub/file check final_file confMake
9623rmdir sub
9624if test "$RESULT" = 0; then
04e7a216 9625 wx_cv_prog_makevpath="yes"
10f2d63a 9626else
04e7a216
VZ
9627 wx_cv_prog_makevpath="no"
9628fi
9629
9630fi
a0b9e27f
MB
9631
9632echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9633
9634if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9635{ echo "configure: error:
5c6fa7d2
RR
9636You need a make-utility that is able to use the variable
9637VPATH correctly.
9638If your version of make does not support VPATH correctly,
9639please install GNU-make (possibly as gmake), and start
9640configure with the following command:
9641export MAKE=gmake; ./configure for sh-type shells
9642setenv MAKE gmake; ./configure for csh-type shells
9643Also please do remember to use gmake in this case every time
9644you are trying to compile.
a0b9e27f
MB
9645" 1>&2; exit 1; }
9646fi fi
10f2d63a
VZ
9647for ac_prog in 'bison -y' byacc
9648do
a0b9e27f 9649# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9650set dummy $ac_prog; ac_word=$2
a0b9e27f 9651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 9652echo "configure:9653: checking for $ac_word" >&5
a0b9e27f
MB
9653if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9655else
9656 if test -n "$YACC"; then
9657 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9658else
a0b9e27f
MB
9659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9660 ac_dummy="$PATH"
9661 for ac_dir in $ac_dummy; do
9662 test -z "$ac_dir" && ac_dir=.
9663 if test -f $ac_dir/$ac_word; then
9664 ac_cv_prog_YACC="$ac_prog"
9665 break
9666 fi
9667 done
9668 IFS="$ac_save_ifs"
10f2d63a
VZ
9669fi
9670fi
a0b9e27f 9671YACC="$ac_cv_prog_YACC"
10f2d63a 9672if test -n "$YACC"; then
a0b9e27f 9673 echo "$ac_t""$YACC" 1>&6
10f2d63a 9674else
a0b9e27f 9675 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9676fi
9677
a0b9e27f 9678test -n "$YACC" && break
10f2d63a
VZ
9679done
9680test -n "$YACC" || YACC="yacc"
9681
8284b0c5 9682
a0b9e27f
MB
9683# Extract the first word of "flex", so it can be a program name with args.
9684set dummy flex; ac_word=$2
9685echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 9686echo "configure:9687: checking for $ac_word" >&5
a0b9e27f
MB
9687if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9689else
9690 if test -n "$LEX"; then
9691 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9692else
a0b9e27f
MB
9693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9694 ac_dummy="$PATH"
9695 for ac_dir in $ac_dummy; do
9696 test -z "$ac_dir" && ac_dir=.
9697 if test -f $ac_dir/$ac_word; then
9698 ac_cv_prog_LEX="flex"
9699 break
9700 fi
9701 done
9702 IFS="$ac_save_ifs"
9703 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9704fi
9705fi
a0b9e27f 9706LEX="$ac_cv_prog_LEX"
10f2d63a 9707if test -n "$LEX"; then
a0b9e27f 9708 echo "$ac_t""$LEX" 1>&6
10f2d63a 9709else
a0b9e27f 9710 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9711fi
9712
9713if test -z "$LEXLIB"
9714then
a0b9e27f
MB
9715 case "$LEX" in
9716 flex*) ac_lib=fl ;;
9717 *) ac_lib=l ;;
9718 esac
9719 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7bb2947d 9720echo "configure:9721: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9721ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9722if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9724else
9725 ac_save_LIBS="$LIBS"
9726LIBS="-l$ac_lib $LIBS"
9727cat > conftest.$ac_ext <<EOF
7bb2947d 9728#line 9729 "configure"
247f5006 9729#include "confdefs.h"
247f5006 9730/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9731/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9732 builtin and then its argument prototype would still apply. */
9733char yywrap();
10f2d63a 9734
a0b9e27f
MB
9735int main() {
9736yywrap()
9737; return 0; }
9738EOF
7bb2947d 9739if { (eval echo configure:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9740 rm -rf conftest*
9741 eval "ac_cv_lib_$ac_lib_var=yes"
9742else
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9747fi
a0b9e27f
MB
9748rm -f conftest*
9749LIBS="$ac_save_LIBS"
8284b0c5 9750
10f2d63a 9751fi
a0b9e27f
MB
9752if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 LEXLIB="-l$ac_lib"
8284b0c5 9755else
a0b9e27f 9756 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9757fi
9758
a0b9e27f 9759fi
10f2d63a
VZ
9760
9761
a0b9e27f 9762echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7bb2947d 9763echo "configure:9764: checking whether ln -s works" >&5
a0b9e27f
MB
9764if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9765 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9766else
a0b9e27f
MB
9767 rm -f conftestdata
9768if ln -s X conftestdata 2>/dev/null
9769then
9770 rm -f conftestdata
9771 ac_cv_prog_LN_S="ln -s"
10f2d63a 9772else
a0b9e27f 9773 ac_cv_prog_LN_S=ln
10f2d63a 9774fi
a0b9e27f
MB
9775fi
9776LN_S="$ac_cv_prog_LN_S"
9777if test "$ac_cv_prog_LN_S" = "ln -s"; then
9778 echo "$ac_t""yes" 1>&6
10f2d63a 9779else
a0b9e27f 9780 echo "$ac_t""no" 1>&6
5c6fa7d2 9781fi
5c6fa7d2 9782
247f5006 9783
2b5f62a0
VZ
9784case "${host}" in
9785 *-pc-os2_emx | *-pc-os2-emx )
9786 LIBS="$LIBS -lstdcpp"
9787 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9788 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
7bb2947d 9789echo "configure:9790: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9790ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9793else
9794 ac_save_LIBS="$LIBS"
9795LIBS="-lcExt $LIBS"
9796cat > conftest.$ac_ext <<EOF
7bb2947d 9797#line 9798 "configure"
2b5f62a0
VZ
9798#include "confdefs.h"
9799/* Override any gcc2 internal prototype to avoid an error. */
9800/* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9802char drand48();
9803
9804int main() {
9805drand48()
9806; return 0; }
9807EOF
7bb2947d 9808if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=yes"
9811else
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 rm -rf conftest*
9815 eval "ac_cv_lib_$ac_lib_var=no"
9816fi
9817rm -f conftest*
9818LIBS="$ac_save_LIBS"
9819
9820fi
9821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9822 echo "$ac_t""yes" 1>&6
9823 LIBS="$LIBS -lcExt"
9824else
9825 echo "$ac_t""no" 1>&6
9826fi
9827
9828 else
9829 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9830 fi
9831 ;;
9832esac
9833
a0b9e27f 9834
ac0c4cc3 9835if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9836 for ac_hdr in strings.h
9837do
9838ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9839echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 9840echo "configure:9841: checking for $ac_hdr" >&5
a0b9e27f
MB
9841if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9843else
9844 cat > conftest.$ac_ext <<EOF
7bb2947d 9845#line 9846 "configure"
a0b9e27f
MB
9846#include "confdefs.h"
9847#include <$ac_hdr>
9848EOF
9849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9850{ (eval echo configure:9851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9852if test -z "$ac_err"; then
9853 rm -rf conftest*
9854 eval "ac_cv_header_$ac_safe=yes"
9855else
9856 echo "$ac_err" >&5
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 rm -rf conftest*
9860 eval "ac_cv_header_$ac_safe=no"
21d1c967 9861fi
247f5006 9862rm -f conftest*
19bc6aad 9863fi
a0b9e27f
MB
9864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9865 echo "$ac_t""yes" 1>&6
9866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9867 cat >> confdefs.h <<EOF
9868#define $ac_tr_hdr 1
9869EOF
9870
247f5006 9871else
a0b9e27f 9872 echo "$ac_t""no" 1>&6
18dbb1f6 9873fi
a0b9e27f 9874done
247f5006 9875
90dd450c 9876fi
90dd450c 9877
a0b9e27f
MB
9878for ac_hdr in stdlib.h
9879do
9880ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9881echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 9882echo "configure:9883: checking for $ac_hdr" >&5
a0b9e27f
MB
9883if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9885else
9886 cat > conftest.$ac_ext <<EOF
7bb2947d 9887#line 9888 "configure"
90dd450c 9888#include "confdefs.h"
a0b9e27f
MB
9889#include <$ac_hdr>
9890EOF
9891ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9892{ (eval echo configure:9893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9893ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9894if test -z "$ac_err"; then
9895 rm -rf conftest*
9896 eval "ac_cv_header_$ac_safe=yes"
9897else
9898 echo "$ac_err" >&5
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 eval "ac_cv_header_$ac_safe=no"
9903fi
9904rm -f conftest*
9905fi
9906if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9907 echo "$ac_t""yes" 1>&6
9908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9909 cat >> confdefs.h <<EOF
9910#define $ac_tr_hdr 1
9911EOF
9912
8284b0c5 9913else
a0b9e27f 9914 echo "$ac_t""no" 1>&6
21d1c967 9915fi
a0b9e27f
MB
9916done
9917
9918for ac_hdr in malloc.h
9919do
9920ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9921echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 9922echo "configure:9923: checking for $ac_hdr" >&5
a0b9e27f
MB
9923if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925else
9926 cat > conftest.$ac_ext <<EOF
7bb2947d 9927#line 9928 "configure"
a0b9e27f
MB
9928#include "confdefs.h"
9929#include <$ac_hdr>
9930EOF
9931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9932{ (eval echo configure:9933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9934if test -z "$ac_err"; then
9935 rm -rf conftest*
9936 eval "ac_cv_header_$ac_safe=yes"
9937else
9938 echo "$ac_err" >&5
9939 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 rm -rf conftest*
9942 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9943fi
a0b9e27f 9944rm -f conftest*
90dd450c 9945fi
a0b9e27f
MB
9946if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9947 echo "$ac_t""yes" 1>&6
9948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9949 cat >> confdefs.h <<EOF
9950#define $ac_tr_hdr 1
9951EOF
9952
9953else
9954 echo "$ac_t""no" 1>&6
21d1c967 9955fi
a0b9e27f 9956done
247f5006 9957
a0b9e27f
MB
9958for ac_hdr in unistd.h
9959do
9960ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9961echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 9962echo "configure:9963: checking for $ac_hdr" >&5
a0b9e27f
MB
9963if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9965else
9966 cat > conftest.$ac_ext <<EOF
7bb2947d 9967#line 9968 "configure"
a0b9e27f
MB
9968#include "confdefs.h"
9969#include <$ac_hdr>
9970EOF
9971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 9972{ (eval echo configure:9973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9974if test -z "$ac_err"; then
9975 rm -rf conftest*
9976 eval "ac_cv_header_$ac_safe=yes"
9977else
9978 echo "$ac_err" >&5
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 rm -rf conftest*
9982 eval "ac_cv_header_$ac_safe=no"
247f5006 9983fi
a0b9e27f
MB
9984rm -f conftest*
9985fi
9986if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9987 echo "$ac_t""yes" 1>&6
9988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9989 cat >> confdefs.h <<EOF
9990#define $ac_tr_hdr 1
9991EOF
9992
9993else
9994 echo "$ac_t""no" 1>&6
9995fi
9996done
90dd450c 9997
a0b9e27f 9998for ac_hdr in wchar.h
21d1c967 9999do
a0b9e27f
MB
10000ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10001echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 10002echo "configure:10003: checking for $ac_hdr" >&5
a0b9e27f
MB
10003if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10005else
10006 cat > conftest.$ac_ext <<EOF
7bb2947d 10007#line 10008 "configure"
4f14bcd8 10008#include "confdefs.h"
a0b9e27f
MB
10009#include <$ac_hdr>
10010EOF
10011ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 10012{ (eval echo configure:10013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10013ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10014if test -z "$ac_err"; then
10015 rm -rf conftest*
10016 eval "ac_cv_header_$ac_safe=yes"
10017else
10018 echo "$ac_err" >&5
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 rm -rf conftest*
10022 eval "ac_cv_header_$ac_safe=no"
10023fi
10024rm -f conftest*
10025fi
10026if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10027 echo "$ac_t""yes" 1>&6
10028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10029 cat >> confdefs.h <<EOF
10030#define $ac_tr_hdr 1
10031EOF
10032
10033else
10034 echo "$ac_t""no" 1>&6
21d1c967
GD
10035fi
10036done
4f14bcd8 10037
5c6fa7d2 10038
a0b9e27f
MB
10039if test "$ac_cv_header_wchar_h" != "yes"; then
10040 for ac_hdr in wcstr.h
21d1c967 10041do
a0b9e27f
MB
10042ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10043echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 10044echo "configure:10045: checking for $ac_hdr" >&5
a0b9e27f
MB
10045if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10047else
10048 cat > conftest.$ac_ext <<EOF
7bb2947d 10049#line 10050 "configure"
d4158b5d 10050#include "confdefs.h"
a0b9e27f
MB
10051#include <$ac_hdr>
10052EOF
10053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 10054{ (eval echo configure:10055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10056if test -z "$ac_err"; then
10057 rm -rf conftest*
10058 eval "ac_cv_header_$ac_safe=yes"
10059else
10060 echo "$ac_err" >&5
10061 echo "configure: failed program was:" >&5
d4158b5d 10062 cat conftest.$ac_ext >&5
a0b9e27f
MB
10063 rm -rf conftest*
10064 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10065fi
a0b9e27f 10066rm -f conftest*
21d1c967 10067fi
a0b9e27f
MB
10068if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10071 cat >> confdefs.h <<EOF
10072#define $ac_tr_hdr 1
10073EOF
10074
10075else
10076 echo "$ac_t""no" 1>&6
d4158b5d 10077fi
21d1c967 10078done
f6bcfd97 10079
90dd450c 10080fi
90dd450c 10081
a0b9e27f 10082for ac_hdr in fnmatch.h
21d1c967 10083do
a0b9e27f
MB
10084ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10085echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 10086echo "configure:10087: checking for $ac_hdr" >&5
a0b9e27f
MB
10087if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10089else
10090 cat > conftest.$ac_ext <<EOF
7bb2947d 10091#line 10092 "configure"
90dd450c 10092#include "confdefs.h"
a0b9e27f
MB
10093#include <$ac_hdr>
10094EOF
10095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 10096{ (eval echo configure:10097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10098if test -z "$ac_err"; then
10099 rm -rf conftest*
10100 eval "ac_cv_header_$ac_safe=yes"
10101else
10102 echo "$ac_err" >&5
10103 echo "configure: failed program was:" >&5
3a922bb4 10104 cat conftest.$ac_ext >&5
a0b9e27f
MB
10105 rm -rf conftest*
10106 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10107fi
a0b9e27f 10108rm -f conftest*
4f14bcd8 10109fi
a0b9e27f
MB
10110if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10111 echo "$ac_t""yes" 1>&6
10112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10113 cat >> confdefs.h <<EOF
10114#define $ac_tr_hdr 1
10115EOF
10116
10117else
10118 echo "$ac_t""no" 1>&6
21d1c967
GD
10119fi
10120done
90dd450c 10121
5c6fa7d2 10122
a0b9e27f
MB
10123if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10124 for ac_func in fnmatch
21d1c967 10125do
a0b9e27f 10126echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 10127echo "configure:10128: checking for $ac_func" >&5
a0b9e27f
MB
10128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10130else
a0b9e27f 10131 cat > conftest.$ac_ext <<EOF
7bb2947d 10132#line 10133 "configure"
a0b9e27f
MB
10133#include "confdefs.h"
10134/* System header to define __stub macros and hopefully few prototypes,
10135 which can conflict with char $ac_func(); below. */
10136#include <assert.h>
10137/* Override any gcc2 internal prototype to avoid an error. */
10138/* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140char $ac_func();
10141
10142int main() {
10143
10144/* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10148choke me
10149#else
10150$ac_func();
10151#endif
10152
10153; return 0; }
10154EOF
7bb2947d 10155if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10156 rm -rf conftest*
10157 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10158else
a0b9e27f 10159 echo "configure: failed program was:" >&5
8284b0c5 10160 cat conftest.$ac_ext >&5
a0b9e27f
MB
10161 rm -rf conftest*
10162 eval "ac_cv_func_$ac_func=no"
8284b0c5 10163fi
a0b9e27f 10164rm -f conftest*
8284b0c5 10165fi
32832908 10166
a0b9e27f
MB
10167if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10168 echo "$ac_t""yes" 1>&6
10169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10170 cat >> confdefs.h <<EOF
10171#define $ac_tr_func 1
10172EOF
10173
10174else
10175 echo "$ac_t""no" 1>&6
21d1c967
GD
10176fi
10177done
90dd450c 10178
a0b9e27f 10179fi
90dd450c 10180
a0b9e27f 10181for ac_hdr in langinfo.h
21d1c967 10182do
a0b9e27f
MB
10183ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10184echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 10185echo "configure:10186: checking for $ac_hdr" >&5
a0b9e27f
MB
10186if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189 cat > conftest.$ac_ext <<EOF
7bb2947d 10190#line 10191 "configure"
247f5006 10191#include "confdefs.h"
a0b9e27f
MB
10192#include <$ac_hdr>
10193EOF
10194ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 10195{ (eval echo configure:10196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10196ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10197if test -z "$ac_err"; then
10198 rm -rf conftest*
10199 eval "ac_cv_header_$ac_safe=yes"
10200else
10201 echo "$ac_err" >&5
10202 echo "configure: failed program was:" >&5
90dd450c 10203 cat conftest.$ac_ext >&5
a0b9e27f
MB
10204 rm -rf conftest*
10205 eval "ac_cv_header_$ac_safe=no"
90dd450c 10206fi
a0b9e27f 10207rm -f conftest*
4f14bcd8 10208fi
a0b9e27f
MB
10209if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10210 echo "$ac_t""yes" 1>&6
10211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10212 cat >> confdefs.h <<EOF
10213#define $ac_tr_hdr 1
10214EOF
10215
10216else
10217 echo "$ac_t""no" 1>&6
21d1c967
GD
10218fi
10219done
3a922bb4 10220
8284b0c5 10221
4f5a7f74
VZ
10222case "${host}" in
10223 *-pc-os2_emx | *-pc-os2-emx )
10224 if test $ac_cv_header_langinfo_h = "yes"; then
10225 LIBS="$LIBS -lintl"
10226 fi
10227 ;;
10228esac
1542ea39 10229
a0b9e27f
MB
10230if test "$wxUSE_GUI" = "yes"; then
10231 if test "$wxUSE_UNIX" = "yes"; then
10232 for ac_hdr in X11/XKBlib.h
21d1c967 10233do
a0b9e27f
MB
10234ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10235echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 10236echo "configure:10237: checking for $ac_hdr" >&5
a0b9e27f
MB
10237if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239else
10240 cat > conftest.$ac_ext <<EOF
7bb2947d 10241#line 10242 "configure"
90dd450c 10242#include "confdefs.h"
a0b9e27f
MB
10243#include <$ac_hdr>
10244EOF
10245ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 10246{ (eval echo configure:10247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10247ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10248if test -z "$ac_err"; then
10249 rm -rf conftest*
10250 eval "ac_cv_header_$ac_safe=yes"
10251else
10252 echo "$ac_err" >&5
10253 echo "configure: failed program was:" >&5
90dd450c 10254 cat conftest.$ac_ext >&5
a0b9e27f
MB
10255 rm -rf conftest*
10256 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10257fi
a0b9e27f 10258rm -f conftest*
90dd450c 10259fi
a0b9e27f
MB
10260if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10261 echo "$ac_t""yes" 1>&6
10262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10263 cat >> confdefs.h <<EOF
10264#define $ac_tr_hdr 1
10265EOF
10266
10267else
10268 echo "$ac_t""no" 1>&6
247f5006 10269fi
247f5006
VZ
10270done
10271
a0b9e27f
MB
10272 fi
10273fi
247f5006 10274
247f5006 10275
a0b9e27f 10276echo $ac_n "checking for working const""... $ac_c" 1>&6
7bb2947d 10277echo "configure:10278: checking for working const" >&5
a0b9e27f
MB
10278if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10279 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10280else
a0b9e27f 10281 cat > conftest.$ac_ext <<EOF
7bb2947d 10282#line 10283 "configure"
a0b9e27f
MB
10283#include "confdefs.h"
10284
10285int main() {
10286
10287/* Ultrix mips cc rejects this. */
10288typedef int charset[2]; const charset x;
10289/* SunOS 4.1.1 cc rejects this. */
10290char const *const *ccp;
10291char **p;
10292/* NEC SVR4.0.2 mips cc rejects this. */
10293struct point {int x, y;};
10294static struct point const zero = {0,0};
10295/* AIX XL C 1.02.0.0 rejects this.
10296 It does not let you subtract one const X* pointer from another in an arm
10297 of an if-expression whose if-part is not a constant expression */
10298const char *g = "string";
10299ccp = &g + (g ? g-g : 0);
10300/* HPUX 7.0 cc rejects these. */
10301++ccp;
10302p = (char**) ccp;
10303ccp = (char const *const *) p;
10304{ /* SCO 3.2v4 cc rejects this. */
10305 char *t;
10306 char const *s = 0 ? (char *) 0 : (char const *) 0;
10307
10308 *t++ = 0;
10309}
10310{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10311 int x[] = {25, 17};
10312 const int *foo = &x[0];
10313 ++foo;
10314}
10315{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10316 typedef const int *iptr;
10317 iptr p = 0;
10318 ++p;
10319}
10320{ /* AIX XL C 1.02.0.0 rejects this saying
10321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10322 struct s { int j; const int *ap[3]; };
10323 struct s *b; b->j = 5;
10324}
10325{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10326 const int foo = 10;
10327}
10328
10329; return 0; }
10330EOF
7bb2947d 10331if { (eval echo configure:10332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10332 rm -rf conftest*
10333 ac_cv_c_const=yes
247f5006 10334else
a0b9e27f 10335 echo "configure: failed program was:" >&5
247f5006 10336 cat conftest.$ac_ext >&5
a0b9e27f
MB
10337 rm -rf conftest*
10338 ac_cv_c_const=no
247f5006 10339fi
a0b9e27f 10340rm -f conftest*
21d1c967 10341fi
247f5006 10342
a0b9e27f
MB
10343echo "$ac_t""$ac_cv_c_const" 1>&6
10344if test $ac_cv_c_const = no; then
10345 cat >> confdefs.h <<\EOF
10346#define const
10347EOF
10f2d63a 10348
90dd450c 10349fi
81809c07 10350
a0b9e27f 10351echo $ac_n "checking for inline""... $ac_c" 1>&6
7bb2947d 10352echo "configure:10353: checking for inline" >&5
a0b9e27f
MB
10353if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10355else
a0b9e27f
MB
10356 ac_cv_c_inline=no
10357for ac_kw in inline __inline__ __inline; do
10358 cat > conftest.$ac_ext <<EOF
7bb2947d 10359#line 10360 "configure"
a0b9e27f
MB
10360#include "confdefs.h"
10361
10362int main() {
10363} $ac_kw foo() {
10364; return 0; }
10365EOF
7bb2947d 10366if { (eval echo configure:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10367 rm -rf conftest*
10368 ac_cv_c_inline=$ac_kw; break
247f5006 10369else
a0b9e27f 10370 echo "configure: failed program was:" >&5
247f5006 10371 cat conftest.$ac_ext >&5
247f5006 10372fi
a0b9e27f
MB
10373rm -f conftest*
10374done
247f5006
VZ
10375
10376fi
10377
a0b9e27f
MB
10378echo "$ac_t""$ac_cv_c_inline" 1>&6
10379case "$ac_cv_c_inline" in
10380 inline | yes) ;;
10381 no) cat >> confdefs.h <<\EOF
10382#define inline
10383EOF
10384 ;;
10385 *) cat >> confdefs.h <<EOF
10386#define inline $ac_cv_c_inline
10387EOF
10388 ;;
10389esac
247f5006 10390
247f5006 10391
a0b9e27f 10392echo $ac_n "checking size of char""... $ac_c" 1>&6
7bb2947d 10393echo "configure:10394: checking size of char" >&5
a0b9e27f
MB
10394if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10396else
10397 if test "$cross_compiling" = yes; then
10398 ac_cv_sizeof_char=1
10399else
10400 cat > conftest.$ac_ext <<EOF
7bb2947d 10401#line 10402 "configure"
4f14bcd8 10402#include "confdefs.h"
a0b9e27f 10403#include <stdio.h>
ef33c576 10404#include <sys/types.h>
a0b9e27f 10405main()
247f5006 10406{
a0b9e27f
MB
10407 FILE *f=fopen("conftestval", "w");
10408 if (!f) exit(1);
10409 fprintf(f, "%d\n", sizeof(char));
10410 exit(0);
52127426 10411}
a0b9e27f 10412EOF
7bb2947d 10413if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10414then
10415 ac_cv_sizeof_char=`cat conftestval`
247f5006 10416else
a0b9e27f 10417 echo "configure: failed program was:" >&5
247f5006 10418 cat conftest.$ac_ext >&5
a0b9e27f
MB
10419 rm -fr conftest*
10420 ac_cv_sizeof_char=0
247f5006 10421fi
a0b9e27f 10422rm -fr conftest*
247f5006 10423fi
247f5006
VZ
10424
10425fi
a0b9e27f
MB
10426echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10427cat >> confdefs.h <<EOF
10428#define SIZEOF_CHAR $ac_cv_sizeof_char
10429EOF
247f5006 10430
247f5006 10431
a0b9e27f 10432echo $ac_n "checking size of short""... $ac_c" 1>&6
7bb2947d 10433echo "configure:10434: checking size of short" >&5
a0b9e27f
MB
10434if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10436else
a0b9e27f
MB
10437 if test "$cross_compiling" = yes; then
10438 ac_cv_sizeof_short=2
247f5006 10439else
a0b9e27f 10440 cat > conftest.$ac_ext <<EOF
7bb2947d 10441#line 10442 "configure"
a0b9e27f
MB
10442#include "confdefs.h"
10443#include <stdio.h>
ef33c576 10444#include <sys/types.h>
a0b9e27f
MB
10445main()
10446{
10447 FILE *f=fopen("conftestval", "w");
10448 if (!f) exit(1);
10449 fprintf(f, "%d\n", sizeof(short));
10450 exit(0);
10451}
10452EOF
7bb2947d 10453if { (eval echo configure:10454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10454then
10455 ac_cv_sizeof_short=`cat conftestval`
247f5006 10456else
a0b9e27f
MB
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 rm -fr conftest*
10460 ac_cv_sizeof_short=0
247f5006 10461fi
a0b9e27f 10462rm -fr conftest*
247f5006
VZ
10463fi
10464
247f5006 10465fi
a0b9e27f
MB
10466echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10467cat >> confdefs.h <<EOF
10468#define SIZEOF_SHORT $ac_cv_sizeof_short
10469EOF
247f5006
VZ
10470
10471
a0b9e27f 10472echo $ac_n "checking size of void *""... $ac_c" 1>&6
7bb2947d 10473echo "configure:10474: checking size of void *" >&5
a0b9e27f
MB
10474if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476else
10477 if test "$cross_compiling" = yes; then
10478 ac_cv_sizeof_void_p=4
247f5006 10479else
a0b9e27f 10480 cat > conftest.$ac_ext <<EOF
7bb2947d 10481#line 10482 "configure"
247f5006 10482#include "confdefs.h"
247f5006 10483#include <stdio.h>
ef33c576 10484#include <sys/types.h>
a0b9e27f 10485main()
247f5006 10486{
a0b9e27f
MB
10487 FILE *f=fopen("conftestval", "w");
10488 if (!f) exit(1);
10489 fprintf(f, "%d\n", sizeof(void *));
10490 exit(0);
5c6fa7d2 10491}
a0b9e27f 10492EOF
7bb2947d 10493if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10494then
10495 ac_cv_sizeof_void_p=`cat conftestval`
10496else
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 rm -fr conftest*
10500 ac_cv_sizeof_void_p=0
10501fi
10502rm -fr conftest*
10503fi
8284b0c5 10504
247f5006 10505fi
a0b9e27f
MB
10506echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10507cat >> confdefs.h <<EOF
10508#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10509EOF
247f5006 10510
247f5006 10511
a0b9e27f 10512echo $ac_n "checking size of int""... $ac_c" 1>&6
7bb2947d 10513echo "configure:10514: checking size of int" >&5
a0b9e27f
MB
10514if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10516else
a0b9e27f
MB
10517 if test "$cross_compiling" = yes; then
10518 ac_cv_sizeof_int=4
10519else
10520 cat > conftest.$ac_ext <<EOF
7bb2947d 10521#line 10522 "configure"
247f5006 10522#include "confdefs.h"
a0b9e27f 10523#include <stdio.h>
ef33c576 10524#include <sys/types.h>
a0b9e27f 10525main()
247f5006 10526{
a0b9e27f
MB
10527 FILE *f=fopen("conftestval", "w");
10528 if (!f) exit(1);
10529 fprintf(f, "%d\n", sizeof(int));
10530 exit(0);
247f5006 10531}
a0b9e27f 10532EOF
7bb2947d 10533if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10534then
10535 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10536else
a0b9e27f
MB
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 rm -fr conftest*
10540 ac_cv_sizeof_int=0
21d1c967 10541fi
a0b9e27f 10542rm -fr conftest*
698dcdb6 10543fi
4f14bcd8 10544
21d1c967 10545fi
a0b9e27f
MB
10546echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10547cat >> confdefs.h <<EOF
10548#define SIZEOF_INT $ac_cv_sizeof_int
10549EOF
4f14bcd8 10550
5c6fa7d2 10551
a0b9e27f 10552echo $ac_n "checking size of long""... $ac_c" 1>&6
7bb2947d 10553echo "configure:10554: checking size of long" >&5
a0b9e27f
MB
10554if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10556else
247f5006 10557 if test "$cross_compiling" = yes; then
a0b9e27f 10558 ac_cv_sizeof_long=4
247f5006 10559else
a0b9e27f 10560 cat > conftest.$ac_ext <<EOF
7bb2947d 10561#line 10562 "configure"
247f5006 10562#include "confdefs.h"
a0b9e27f 10563#include <stdio.h>
ef33c576 10564#include <sys/types.h>
a0b9e27f 10565main()
247f5006 10566{
a0b9e27f
MB
10567 FILE *f=fopen("conftestval", "w");
10568 if (!f) exit(1);
10569 fprintf(f, "%d\n", sizeof(long));
10570 exit(0);
247f5006 10571}
a0b9e27f 10572EOF
7bb2947d 10573if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10574then
10575 ac_cv_sizeof_long=`cat conftestval`
247f5006 10576else
a0b9e27f
MB
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 rm -fr conftest*
10580 ac_cv_sizeof_long=0
247f5006 10581fi
a0b9e27f 10582rm -fr conftest*
247f5006 10583fi
247f5006 10584
5c6fa7d2 10585fi
a0b9e27f
MB
10586echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10587cat >> confdefs.h <<EOF
10588#define SIZEOF_LONG $ac_cv_sizeof_long
10589EOF
247f5006 10590
a0b9e27f
MB
10591
10592
10593case "${host}" in
10594 arm-*-linux* )
10595 echo $ac_n "checking size of long long""... $ac_c" 1>&6
7bb2947d 10596echo "configure:10597: checking size of long long" >&5
a0b9e27f
MB
10597if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10599else
10600 if test "$cross_compiling" = yes; then
10601 ac_cv_sizeof_long_long=8
10602else
10603 cat > conftest.$ac_ext <<EOF
7bb2947d 10604#line 10605 "configure"
247f5006 10605#include "confdefs.h"
a0b9e27f 10606#include <stdio.h>
ef33c576 10607#include <sys/types.h>
a0b9e27f 10608main()
247f5006 10609{
a0b9e27f
MB
10610 FILE *f=fopen("conftestval", "w");
10611 if (!f) exit(1);
10612 fprintf(f, "%d\n", sizeof(long long));
10613 exit(0);
247f5006 10614}
a0b9e27f 10615EOF
7bb2947d 10616if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10617then
10618 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10619else
a0b9e27f
MB
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -fr conftest*
10623 ac_cv_sizeof_long_long=0
5c6fa7d2 10624fi
a0b9e27f 10625rm -fr conftest*
5c6fa7d2 10626fi
8284b0c5 10627
a0b9e27f
MB
10628fi
10629echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10630cat >> confdefs.h <<EOF
10631#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10632EOF
10633
10634
10635 ;;
4f57cf11 10636 *-hp-hpux* )
a0b9e27f 10637 echo $ac_n "checking size of long long""... $ac_c" 1>&6
7bb2947d 10638echo "configure:10639: checking size of long long" >&5
a0b9e27f
MB
10639if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10640 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10641else
10642 if test "$cross_compiling" = yes; then
a0b9e27f 10643 ac_cv_sizeof_long_long=0
8284b0c5 10644else
a0b9e27f 10645 cat > conftest.$ac_ext <<EOF
7bb2947d 10646#line 10647 "configure"
8284b0c5
MB
10647#include "confdefs.h"
10648#include <stdio.h>
ef33c576 10649#include <sys/types.h>
a0b9e27f 10650main()
8284b0c5 10651{
a0b9e27f
MB
10652 FILE *f=fopen("conftestval", "w");
10653 if (!f) exit(1);
10654 fprintf(f, "%d\n", sizeof(long long));
10655 exit(0);
8284b0c5 10656}
a0b9e27f 10657EOF
7bb2947d 10658if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10659then
10660 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10661else
a0b9e27f
MB
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -fr conftest*
5c6fa7d2 10665 ac_cv_sizeof_long_long=0
52127426 10666fi
a0b9e27f
MB
10667rm -fr conftest*
10668fi
10669
4f57cf11
GD
10670fi
10671echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10672cat >> confdefs.h <<EOF
10673#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10674EOF
10675
10676
10677 if test "$ac_cv_sizeof_long_long" != "0"; then
10678 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10679 fi
10680 ;;
10681 * )
10682 echo $ac_n "checking size of long long""... $ac_c" 1>&6
7bb2947d 10683echo "configure:10684: checking size of long long" >&5
4f57cf11
GD
10684if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10685 echo $ac_n "(cached) $ac_c" 1>&6
10686else
10687 if test "$cross_compiling" = yes; then
10688 ac_cv_sizeof_long_long=0
10689else
10690 cat > conftest.$ac_ext <<EOF
7bb2947d 10691#line 10692 "configure"
4f57cf11
GD
10692#include "confdefs.h"
10693#include <stdio.h>
ef33c576 10694#include <sys/types.h>
4f57cf11
GD
10695main()
10696{
10697 FILE *f=fopen("conftestval", "w");
10698 if (!f) exit(1);
10699 fprintf(f, "%d\n", sizeof(long long));
10700 exit(0);
10701}
10702EOF
7bb2947d 10703if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10704then
10705 ac_cv_sizeof_long_long=`cat conftestval`
10706else
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 rm -fr conftest*
10710 ac_cv_sizeof_long_long=0
10711fi
10712rm -fr conftest*
10713fi
10714
7b4a847f 10715fi
a0b9e27f
MB
10716echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10717cat >> confdefs.h <<EOF
21d1c967 10718#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10719EOF
9e691f46 10720
8284b0c5 10721
21d1c967
GD
10722esac
10723
a0b9e27f 10724echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
7bb2947d 10725echo "configure:10726: checking size of wchar_t" >&5
a0b9e27f
MB
10726if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10728else
a0b9e27f 10729
21d1c967 10730 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10731
10732 case "${host}" in
10733 *-pc-msdosdjgpp )
10734 wx_cv_sizeof_wchar_t=0
10735 ;;
10736 * )
10737 wx_cv_sizeof_wchar_t=4
10738 ;;
10739 esac
10740
a0b9e27f 10741
6f72b082 10742else
a0b9e27f 10743 cat > conftest.$ac_ext <<EOF
7bb2947d 10744#line 10745 "configure"
6f72b082 10745#include "confdefs.h"
21d1c967 10746
2b5f62a0
VZ
10747 /* DJGPP only has fake wchar_t: */
10748 #ifdef __DJGPP__
10749 # error "fake wchar_t"
10750 #endif
21d1c967
GD
10751 #ifdef HAVE_WCHAR_H
10752 # ifdef __CYGWIN__
10753 # include <stddef.h>
10754 # endif
10755 # include <wchar.h>
10756 #endif
10757 #ifdef HAVE_STDLIB_H
10758 # include <stdlib.h>
10759 #endif
10760 #include <stdio.h>
10761 int main()
10762 {
10763 FILE *f=fopen("conftestval", "w");
10764 if (!f) exit(1);
10765 fprintf(f, "%i", sizeof(wchar_t));
10766 exit(0);
10767 }
a0b9e27f
MB
10768
10769EOF
7bb2947d 10770if { (eval echo configure:10771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10771then
21d1c967 10772 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10773else
a0b9e27f
MB
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -fr conftest*
10777 wx_cv_sizeof_wchar_t=0
6f72b082 10778fi
a0b9e27f 10779rm -fr conftest*
6f72b082 10780fi
6f72b082 10781
a0b9e27f 10782
3f345b47
VZ
10783fi
10784
a0b9e27f
MB
10785echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10786
10787cat >> confdefs.h <<EOF
21d1c967 10788#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10789EOF
90dd450c 10790
8284b0c5 10791
21d1c967
GD
10792# Check whether --enable-largefile or --disable-largefile was given.
10793if test "${enable_largefile+set}" = set; then
10794 enableval="$enable_largefile"
a0b9e27f
MB
10795 :
10796fi
3f345b47 10797
21d1c967
GD
10798if test "$enable_largefile" != no; then
10799 wx_largefile=no
a0b9e27f
MB
10800
10801 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
7bb2947d 10802echo "configure:10803: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10803if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805else
10806
10807 cat > conftest.$ac_ext <<EOF
7bb2947d 10808#line 10809 "configure"
90dd450c 10809#include "confdefs.h"
21d1c967
GD
10810#define _FILE_OFFSET_BITS 64
10811 #include <sys/types.h>
a0b9e27f 10812int main() {
21d1c967
GD
10813typedef struct {
10814 unsigned int field: sizeof(off_t) == 8;
10815} wxlf;
10816
a0b9e27f
MB
10817; return 0; }
10818EOF
7bb2947d 10819if { (eval echo configure:10820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10820 rm -rf conftest*
21d1c967 10821 ac_cv_sys_file_offset_bits=64
f6bcfd97 10822else
a0b9e27f
MB
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10827fi
a0b9e27f
MB
10828rm -f conftest*
10829
10830
247f5006 10831fi
a0b9e27f
MB
10832
10833echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10834
10835 if test "$ac_cv_sys_file_offset_bits" != no; then
10836 wx_largefile=yes
a0b9e27f 10837 cat >> confdefs.h <<EOF
21d1c967 10838#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10839EOF
21d1c967
GD
10840
10841 fi
10842
10843 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10844
10845 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
7bb2947d 10846echo "configure:10847: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10847if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849else
10850
10851 cat > conftest.$ac_ext <<EOF
7bb2947d 10852#line 10853 "configure"
f6bcfd97 10853#include "confdefs.h"
21d1c967
GD
10854#define _LARGE_FILES 1
10855 #include <sys/types.h>
a0b9e27f 10856int main() {
21d1c967
GD
10857typedef struct {
10858 unsigned int field: sizeof(off_t) == 8;
10859} wxlf;
10860
a0b9e27f
MB
10861; return 0; }
10862EOF
7bb2947d 10863if { (eval echo configure:10864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10864 rm -rf conftest*
21d1c967 10865 ac_cv_sys_large_files=1
f6bcfd97 10866else
a0b9e27f
MB
10867 echo "configure: failed program was:" >&5
10868 cat conftest.$ac_ext >&5
10869 rm -rf conftest*
10870 ac_cv_sys_large_files=no
5c6fa7d2 10871fi
a0b9e27f
MB
10872rm -f conftest*
10873
10874
247f5006 10875fi
a0b9e27f
MB
10876
10877echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10878
21d1c967
GD
10879 if test "$ac_cv_sys_large_files" != no; then
10880 wx_largefile=yes
a0b9e27f 10881 cat >> confdefs.h <<EOF
21d1c967 10882#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10883EOF
90dd450c 10884
90dd450c
VZ
10885 fi
10886
90dd450c 10887 fi
90dd450c 10888
a0b9e27f 10889 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
7bb2947d 10890echo "configure:10891: checking if large file support is available" >&5
21d1c967 10891 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10892 cat >> confdefs.h <<\EOF
21d1c967 10893#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10894EOF
90dd450c 10895
90dd450c 10896 fi
a0b9e27f 10897 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10898fi
90dd450c 10899
8284b0c5 10900
f02444d0 10901if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10902 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10903 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10904 else
e26c13cf 10905 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10906 fi
e26c13cf 10907 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10908fi
10909
a0b9e27f 10910echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7bb2947d 10911echo "configure:10912: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10912if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10913 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10914else
21d1c967
GD
10915 ac_cv_c_bigendian=unknown
10916# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10917cat > conftest.$ac_ext <<EOF
7bb2947d 10918#line 10919 "configure"
90dd450c 10919#include "confdefs.h"
21d1c967
GD
10920#include <sys/types.h>
10921#include <sys/param.h>
a0b9e27f 10922int main() {
21d1c967
GD
10923
10924#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10925 bogus endian macros
10926#endif
a0b9e27f
MB
10927; return 0; }
10928EOF
7bb2947d 10929if { (eval echo configure:10930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10930 rm -rf conftest*
21d1c967 10931 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10932cat > conftest.$ac_ext <<EOF
7bb2947d 10933#line 10934 "configure"
90dd450c 10934#include "confdefs.h"
21d1c967
GD
10935#include <sys/types.h>
10936#include <sys/param.h>
a0b9e27f 10937int main() {
21d1c967
GD
10938
10939#if BYTE_ORDER != BIG_ENDIAN
10940 not big endian
10941#endif
a0b9e27f
MB
10942; return 0; }
10943EOF
7bb2947d 10944if { (eval echo configure:10945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10945 rm -rf conftest*
21d1c967 10946 ac_cv_c_bigendian=yes
3f345b47 10947else
a0b9e27f
MB
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10950 rm -rf conftest*
10951 ac_cv_c_bigendian=no
3f345b47 10952fi
a0b9e27f 10953rm -f conftest*
3f345b47 10954else
a0b9e27f
MB
10955 echo "configure: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
3f345b47 10957fi
a0b9e27f 10958rm -f conftest*
21d1c967
GD
10959if test $ac_cv_c_bigendian = unknown; then
10960if test "$cross_compiling" = yes; then
10961 ac_cv_c_bigendian=unknown
10f2d63a 10962else
a0b9e27f 10963 cat > conftest.$ac_ext <<EOF
7bb2947d 10964#line 10965 "configure"
90dd450c 10965#include "confdefs.h"
21d1c967
GD
10966main () {
10967 /* Are we little or big endian? From Harbison&Steele. */
10968 union
10969 {
10970 long l;
10971 char c[sizeof (long)];
10972 } u;
10973 u.l = 1;
10974 exit (u.c[sizeof (long) - 1] == 1);
10975}
a0b9e27f 10976EOF
7bb2947d 10977if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10978then
21d1c967 10979 ac_cv_c_bigendian=no
3f345b47 10980else
a0b9e27f
MB
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -fr conftest*
10984 ac_cv_c_bigendian=yes
247f5006 10985fi
a0b9e27f 10986rm -fr conftest*
247f5006 10987fi
a0b9e27f 10988
3f345b47 10989fi
8168de4c 10990fi
a0b9e27f
MB
10991
10992echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10993if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10994 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
10995fi
10996if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10997 cat >> confdefs.h <<\EOF
247f5006 10998#define WORDS_BIGENDIAN 1
a0b9e27f 10999EOF
247f5006
VZ
11000
11001fi
11002
11003
a0b9e27f 11004echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7bb2947d 11005echo "configure:11006: checking how to run the C++ preprocessor" >&5
247f5006 11006if test -z "$CXXCPP"; then
a0b9e27f
MB
11007if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11009else
a0b9e27f
MB
11010 ac_ext=C
11011# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11012ac_cpp='$CXXCPP $CPPFLAGS'
11013ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11014ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11015cross_compiling=$ac_cv_prog_cxx_cross
11016 CXXCPP="${CXX-g++} -E"
11017 cat > conftest.$ac_ext <<EOF
7bb2947d 11018#line 11019 "configure"
5c6fa7d2 11019#include "confdefs.h"
a0b9e27f
MB
11020#include <stdlib.h>
11021EOF
11022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 11023{ (eval echo configure:11024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11025if test -z "$ac_err"; then
21d1c967 11026 :
698dcdb6 11027else
a0b9e27f
MB
11028 echo "$ac_err" >&5
11029 echo "configure: failed program was:" >&5
698dcdb6 11030 cat conftest.$ac_ext >&5
a0b9e27f
MB
11031 rm -rf conftest*
11032 CXXCPP=/lib/cpp
247f5006 11033fi
a0b9e27f
MB
11034rm -f conftest*
11035 ac_cv_prog_CXXCPP="$CXXCPP"
11036ac_ext=C
11037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11038ac_cpp='$CXXCPP $CPPFLAGS'
11039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11041cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11042fi
90dd450c 11043fi
a0b9e27f
MB
11044CXXCPP="$ac_cv_prog_CXXCPP"
11045echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11046
1725144d 11047
21d1c967 11048 if test "$cross_compiling" = "yes"; then
a0b9e27f 11049 cat >> confdefs.h <<\EOF
21d1c967 11050#define wxUSE_IOSTREAMH 1
a0b9e27f 11051EOF
ab9b9eab 11052
21d1c967 11053 else
a0b9e27f
MB
11054
11055 ac_ext=C
11056# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11057ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11058ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11059ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11060cross_compiling=$ac_cv_prog_cxx_cross
52127426 11061
247f5006 11062
a0b9e27f 11063 for ac_hdr in iostream
21d1c967 11064do
a0b9e27f
MB
11065ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11066echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 11067echo "configure:11068: checking for $ac_hdr" >&5
a0b9e27f
MB
11068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11070else
11071 cat > conftest.$ac_ext <<EOF
7bb2947d 11072#line 11073 "configure"
ab9b9eab 11073#include "confdefs.h"
a0b9e27f
MB
11074#include <$ac_hdr>
11075EOF
11076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 11077{ (eval echo configure:11078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11079if test -z "$ac_err"; then
11080 rm -rf conftest*
11081 eval "ac_cv_header_$ac_safe=yes"
11082else
11083 echo "$ac_err" >&5
11084 echo "configure: failed program was:" >&5
ab9b9eab 11085 cat conftest.$ac_ext >&5
a0b9e27f
MB
11086 rm -rf conftest*
11087 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11088fi
a0b9e27f 11089rm -f conftest*
90dd450c 11090fi
a0b9e27f
MB
11091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11094 cat >> confdefs.h <<EOF
11095#define $ac_tr_hdr 1
11096EOF
11097
11098else
11099 echo "$ac_t""no" 1>&6
90dd450c 11100fi
21d1c967 11101done
10f2d63a 11102
8284b0c5 11103
21d1c967
GD
11104 if test "$ac_cv_header_iostream" = "yes" ; then
11105 :
11106 else
a0b9e27f 11107 cat >> confdefs.h <<\EOF
21d1c967 11108#define wxUSE_IOSTREAMH 1
a0b9e27f 11109EOF
788deba1 11110
90dd450c 11111 fi
ab9b9eab 11112
21d1c967 11113 ac_ext=c
a0b9e27f 11114# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11115ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11116ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11117ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11118cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11119
21d1c967 11120 fi
ab9b9eab 11121
52127426 11122
8284b0c5 11123
a0b9e27f 11124 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
7bb2947d 11125echo "configure:11126: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11126if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11128else
a0b9e27f
MB
11129
11130
11131 ac_ext=C
11132# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11133ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11134ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11135ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11136cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11137
8284b0c5 11138
a0b9e27f 11139 cat > conftest.$ac_ext <<EOF
7bb2947d 11140#line 11141 "configure"
ab9b9eab 11141#include "confdefs.h"
21d1c967 11142
a0b9e27f
MB
11143
11144int main() {
21d1c967
GD
11145
11146 bool b = true;
11147
11148 return 0;
a0b9e27f
MB
11149
11150; return 0; }
11151EOF
7bb2947d 11152if { (eval echo configure:11153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11153 rm -rf conftest*
11154
21d1c967 11155 wx_cv_cpp_bool=yes
a0b9e27f 11156
698dcdb6 11157else
a0b9e27f
MB
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
11161
21d1c967 11162 wx_cv_cpp_bool=no
a0b9e27f
MB
11163
11164
698dcdb6 11165fi
a0b9e27f 11166rm -f conftest*
21d1c967
GD
11167
11168 ac_ext=c
a0b9e27f 11169# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11170ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11171ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11172ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11173cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11174
a0b9e27f 11175
247f5006 11176fi
a0b9e27f
MB
11177
11178echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11179
11180 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11181 cat >> confdefs.h <<\EOF
21d1c967 11182#define HAVE_BOOL 1
a0b9e27f 11183EOF
ab9b9eab 11184
21d1c967
GD
11185 fi
11186
52127426 11187
8284b0c5 11188
a0b9e27f 11189 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
7bb2947d 11190echo "configure:11191: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11191if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11193else
a0b9e27f
MB
11194
11195
11196 ac_ext=C
11197# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11198ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11199ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11200ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11201cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11202
8284b0c5 11203
a0b9e27f 11204 cat > conftest.$ac_ext <<EOF
7bb2947d 11205#line 11206 "configure"
986ecc86
VZ
11206#include "confdefs.h"
11207
11208 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11209
11210int main() {
986ecc86
VZ
11211
11212 return 0;
a0b9e27f
MB
11213
11214; return 0; }
11215EOF
7bb2947d 11216if { (eval echo configure:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11217 rm -rf conftest*
11218
11219 cat > conftest.$ac_ext <<EOF
7bb2947d 11220#line 11221 "configure"
986ecc86
VZ
11221#include "confdefs.h"
11222
11223 class Foo { public: explicit Foo(int) {} };
11224 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11225
11226int main() {
986ecc86
VZ
11227
11228 TakeFoo(17);
11229 return 0;
a0b9e27f
MB
11230
11231; return 0; }
11232EOF
7bb2947d 11233if { (eval echo configure:11234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11234 rm -rf conftest*
986ecc86
VZ
11235 wx_cv_explicit=no
11236else
a0b9e27f
MB
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -rf conftest*
11240 wx_cv_explicit=yes
11241
986ecc86 11242fi
a0b9e27f
MB
11243rm -f conftest*
11244
986ecc86 11245else
a0b9e27f
MB
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11248 rm -rf conftest*
11249 wx_cv_explicit=no
11250
986ecc86 11251fi
a0b9e27f 11252rm -f conftest*
986ecc86
VZ
11253
11254 ac_ext=c
a0b9e27f 11255# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11256ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11257ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11258ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11259cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11260
a0b9e27f 11261
247f5006 11262fi
a0b9e27f
MB
11263
11264echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11265
11266 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11267 cat >> confdefs.h <<\EOF
986ecc86 11268#define HAVE_EXPLICIT 1
a0b9e27f 11269EOF
986ecc86
VZ
11270
11271 fi
11272
8284b0c5 11273
521196a2 11274echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
7bb2947d 11275echo "configure:11276: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11276if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11277 echo $ac_n "(cached) $ac_c" 1>&6
11278else
11279
11280 ac_ext=C
11281# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11282ac_cpp='$CXXCPP $CPPFLAGS'
11283ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11284ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11285cross_compiling=$ac_cv_prog_cxx_cross
11286
11287 cat > conftest.$ac_ext <<EOF
7bb2947d 11288#line 11289 "configure"
521196a2
MB
11289#include "confdefs.h"
11290
11291int main() {
11292int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11293; return 0; }
11294EOF
7bb2947d 11295if { (eval echo configure:11296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11296 rm -rf conftest*
11297 ac_cv_cxx_const_cast=yes
11298else
11299 echo "configure: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 rm -rf conftest*
11302 ac_cv_cxx_const_cast=no
11303fi
11304rm -f conftest*
11305 ac_ext=c
11306# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307ac_cpp='$CPP $CPPFLAGS'
11308ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310cross_compiling=$ac_cv_prog_cc_cross
11311
11312
11313fi
11314
11315echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11316if test "$ac_cv_cxx_const_cast" = yes; then
11317 cat >> confdefs.h <<\EOF
11318#define HAVE_CONST_CAST
11319EOF
11320
11321fi
11322
11323
8284b0c5 11324
21d1c967
GD
11325SEARCH_INCLUDE="\
11326 /usr/local/include \
11327 \
11328 /usr/Motif-1.2/include \
11329 /usr/Motif-2.1/include \
11330 \
11331 /usr/include/Motif1.2 \
11332 /opt/xpm/include/X11 \
11333 /opt/GBxpm/include/ \
11334 /opt/GBxpm/X11/include/ \
11335 \
11336 /usr/Motif1.2/include \
11337 /usr/dt/include \
11338 /usr/openwin/include \
11339 \
11340 /usr/include/Xm \
11341 \
11342 /usr/X11R6/include \
11343 /usr/X11R6.4/include \
11344 /usr/X11R5/include \
11345 /usr/X11R4/include \
11346 \
11347 /usr/include/X11R6 \
11348 /usr/include/X11R5 \
11349 /usr/include/X11R4 \
11350 \
11351 /usr/local/X11R6/include \
11352 /usr/local/X11R5/include \
11353 /usr/local/X11R4/include \
11354 \
11355 /usr/local/include/X11R6 \
11356 /usr/local/include/X11R5 \
11357 /usr/local/include/X11R4 \
11358 \
11359 /usr/X11/include \
11360 /usr/include/X11 \
11361 /usr/local/X11/include \
11362 /usr/local/include/X11 \
11363 \
11364 /usr/X386/include \
11365 /usr/x386/include \
11366 /usr/XFree86/include/X11 \
11367 \
11368 X:/XFree86/include \
11369 X:/XFree86/include/X11 \
11370 \
11371 /usr/include/gtk \
11372 /usr/local/include/gtk \
11373 /usr/include/glib \
11374 /usr/local/include/glib \
11375 \
11376 /usr/include/qt \
11377 /usr/local/include/qt \
11378 \
11379 /usr/include/windows \
11380 /usr/include/wine \
11381 /usr/local/include/wine \
11382 \
11383 /usr/unsupported/include \
11384 /usr/athena/include \
11385 /usr/local/x11r5/include \
11386 /usr/lpp/Xamples/include \
11387 \
2b5f62a0 11388 /usr/openwin/share/include"
21d1c967
GD
11389
11390SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11391
8284b0c5 11392
a0b9e27f 11393cat > confcache <<\EOF
21d1c967
GD
11394# This file is a shell script that caches the results of configure
11395# tests run on this system so they can be shared between configure
a0b9e27f
MB
11396# scripts and configure runs. It is not useful on other systems.
11397# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11398#
a0b9e27f
MB
11399# By default, configure uses ./config.cache as the cache file,
11400# creating it if it does not exist already. You can give configure
11401# the --cache-file=FILE option to use a different cache file; that is
11402# what configure does when it calls configure scripts in
11403# subdirectories, so they share the cache.
11404# Giving --cache-file=/dev/null disables caching, for debugging configure.
11405# config.status only pays attention to the cache file if you give it the
11406# --recheck option to rerun configure.
21d1c967 11407#
a0b9e27f 11408EOF
21d1c967
GD
11409# The following way of writing the cache mishandles newlines in values,
11410# but we know of no workaround that is simple, portable, and efficient.
11411# So, don't put newlines in cache variables' values.
11412# Ultrix sh set writes to stderr and can't be redirected directly,
11413# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11414(set) 2>&1 |
11415 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11416 *ac_space=\ *)
11417 # `set' does not quote correctly, so add quotes (double-quote substitution
11418 # turns \\\\ into \\, and sed turns \\ into \).
11419 sed -n \
11420 -e "s/'/'\\\\''/g" \
11421 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11422 ;;
11423 *)
11424 # `set' quotes correctly as required by POSIX, so do not add quotes.
11425 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11426 ;;
11427 esac >> confcache
11428if cmp -s $cache_file confcache; then
11429 :
11430else
21d1c967 11431 if test -w $cache_file; then
a0b9e27f
MB
11432 echo "updating cache $cache_file"
11433 cat confcache > $cache_file
21d1c967
GD
11434 else
11435 echo "not updating unwritable cache $cache_file"
11436 fi
ab9b9eab 11437fi
21d1c967 11438rm -f confcache
ab9b9eab 11439
247f5006 11440
a0b9e27f
MB
11441if test "$USE_LINUX" = 1; then
11442 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
7bb2947d 11443echo "configure:11444: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11444if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11446else
11447
11448 cat > conftest.$ac_ext <<EOF
7bb2947d 11449#line 11450 "configure"
ab9b9eab 11450#include "confdefs.h"
21d1c967 11451#include <features.h>
a0b9e27f 11452int main() {
ab9b9eab 11453
21d1c967
GD
11454 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11455 #error not glibc2.1
11456 #endif
a0b9e27f
MB
11457
11458; return 0; }
11459EOF
7bb2947d 11460if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11461 rm -rf conftest*
11462
21d1c967 11463 wx_cv_lib_glibc21=yes
a0b9e27f 11464
698dcdb6 11465else
a0b9e27f
MB
11466 echo "configure: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 rm -rf conftest*
11469
21d1c967 11470 wx_cv_lib_glibc21=no
a0b9e27f
MB
11471
11472
5c6fa7d2 11473fi
a0b9e27f
MB
11474rm -f conftest*
11475
247f5006 11476fi
a0b9e27f
MB
11477
11478echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11479 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11480 cat >> confdefs.h <<\EOF
21d1c967 11481#define wxHAVE_GLIBC2 1
a0b9e27f 11482EOF
1e487827 11483
90dd450c 11484 fi
ab9b9eab
VZ
11485fi
11486
5c0a20c3
VZ
11487if test "x$wx_cv_lib_glibc21" = "xyes"; then
11488 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11489 cat >> confdefs.h <<\EOF
5c0a20c3 11490#define _GNU_SOURCE 1
a0b9e27f 11491EOF
5c0a20c3
VZ
11492
11493 fi
11494fi
11495
8284b0c5
MB
11496
11497
21d1c967
GD
11498REGEX_INCLUDE=
11499if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11500 cat >> confdefs.h <<\EOF
21d1c967 11501#define wxUSE_REGEX 1
a0b9e27f 11502EOF
698dcdb6 11503
8284b0c5 11504
21d1c967 11505 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11506 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11507echo $ac_n "checking for regex.h""... $ac_c" 1>&6
7bb2947d 11508echo "configure:11509: checking for regex.h" >&5
a0b9e27f
MB
11509if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11511else
11512 cat > conftest.$ac_ext <<EOF
7bb2947d 11513#line 11514 "configure"
247f5006
VZ
11514#include "confdefs.h"
11515#include <regex.h>
a0b9e27f
MB
11516EOF
11517ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 11518{ (eval echo configure:11519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11519ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11520if test -z "$ac_err"; then
11521 rm -rf conftest*
11522 eval "ac_cv_header_$ac_safe=yes"
11523else
11524 echo "$ac_err" >&5
11525 echo "configure: failed program was:" >&5
21d1c967 11526 cat conftest.$ac_ext >&5
a0b9e27f
MB
11527 rm -rf conftest*
11528 eval "ac_cv_header_$ac_safe=no"
21d1c967 11529fi
a0b9e27f 11530rm -f conftest*
698dcdb6 11531fi
a0b9e27f
MB
11532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 for ac_func in regcomp
21d1c967 11535do
a0b9e27f 11536echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 11537echo "configure:11538: checking for $ac_func" >&5
a0b9e27f
MB
11538if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11540else
a0b9e27f 11541 cat > conftest.$ac_ext <<EOF
7bb2947d 11542#line 11543 "configure"
a0b9e27f
MB
11543#include "confdefs.h"
11544/* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char $ac_func(); below. */
21d1c967
GD
11546#include <assert.h>
11547/* Override any gcc2 internal prototype to avoid an error. */
11548/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11549 builtin and then its argument prototype would still apply. */
11550char $ac_func();
11551
11552int main() {
11553
21d1c967
GD
11554/* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11558choke me
11559#else
a0b9e27f 11560$ac_func();
21d1c967 11561#endif
90dd450c 11562
a0b9e27f
MB
11563; return 0; }
11564EOF
7bb2947d 11565if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11566 rm -rf conftest*
11567 eval "ac_cv_func_$ac_func=yes"
11568else
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11571 rm -rf conftest*
11572 eval "ac_cv_func_$ac_func=no"
11573fi
11574rm -f conftest*
11575fi
5c6fa7d2 11576
a0b9e27f
MB
11577if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11578 echo "$ac_t""yes" 1>&6
11579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11580 cat >> confdefs.h <<EOF
11581#define $ac_tr_func 1
11582EOF
11583
11584else
11585 echo "$ac_t""no" 1>&6
698dcdb6 11586fi
21d1c967
GD
11587done
11588
a0b9e27f
MB
11589else
11590 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11591fi
11592
8284b0c5 11593
21d1c967
GD
11594 if test "x$ac_cv_func_regcomp" != "xyes"; then
11595 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11596 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11597 else
a0b9e27f 11598 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11599 wxUSE_REGEX=builtin
11600 fi
11601 else
11602 wxUSE_REGEX=sys
11603 fi
ab9b9eab 11604 fi
90dd450c 11605
21d1c967
GD
11606 if test "$wxUSE_REGEX" = "builtin" ; then
11607 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11608 fi
21d1c967 11609fi
90dd450c 11610
8284b0c5 11611
21d1c967
GD
11612ZLIB_INCLUDE=
11613ZLIB_LINK=
11614if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11615 cat >> confdefs.h <<\EOF
21d1c967 11616#define wxUSE_ZLIB 1
a0b9e27f 11617EOF
21d1c967 11618
8284b0c5 11619
21d1c967 11620 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11621 if test "$USE_DARWIN" = 1; then
11622 system_zlib_h_ok="yes"
11623 else
11624 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
7bb2947d 11625echo "configure:11626: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11626if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11628else
11629 if test "$cross_compiling" = yes; then
89e6bf6d 11630 unset ac_cv_header_zlib_h
d775acfa 11631
d643b80e
VZ
11632else
11633 cat > conftest.$ac_ext <<EOF
7bb2947d 11634#line 11635 "configure"
d643b80e 11635#include "confdefs.h"
ef33c576
VZ
11636
11637 #include <zlib.h>
d775acfa 11638 #include <stdio.h>
d643b80e 11639
d775acfa
VZ
11640 int main()
11641 {
11642 FILE *f=fopen("conftestval", "w");
11643 if (!f) exit(1);
11644 fprintf(f, "%s",
11645 ZLIB_VERSION[0] == '1' &&
11646 (ZLIB_VERSION[2] > '1' ||
11647 (ZLIB_VERSION[2] == '1' &&
11648 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11649 exit(0);
11650 }
d643b80e 11651
d643b80e 11652EOF
7bb2947d 11653if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11654then
11655 ac_cv_header_zlib_h=`cat conftestval`
11656else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_header_zlib_h=no
11661fi
11662rm -fr conftest*
11663fi
11664
d775acfa 11665
d643b80e
VZ
11666fi
11667
11668echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11669 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11670echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
7bb2947d 11671echo "configure:11672: checking for zlib.h" >&5
89e6bf6d
VZ
11672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11674else
11675 cat > conftest.$ac_ext <<EOF
7bb2947d 11676#line 11677 "configure"
89e6bf6d
VZ
11677#include "confdefs.h"
11678#include <zlib.h>
11679EOF
11680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 11681{ (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11682ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683if test -z "$ac_err"; then
11684 rm -rf conftest*
11685 eval "ac_cv_header_$ac_safe=yes"
11686else
11687 echo "$ac_err" >&5
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 rm -rf conftest*
11691 eval "ac_cv_header_$ac_safe=no"
11692fi
11693rm -f conftest*
11694fi
11695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 :
11698else
11699 echo "$ac_t""no" 1>&6
11700fi
11701
d643b80e 11702
d775acfa
VZ
11703 system_zlib_h_ok=$ac_cv_header_zlib_h
11704 fi
11705
11706 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11707 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
7bb2947d 11708echo "configure:11709: checking for deflate in -lz" >&5
a0b9e27f
MB
11709ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11712else
a0b9e27f 11713 ac_save_LIBS="$LIBS"
21d1c967 11714LIBS="-lz $LIBS"
a0b9e27f 11715cat > conftest.$ac_ext <<EOF
7bb2947d 11716#line 11717 "configure"
ab9b9eab 11717#include "confdefs.h"
21d1c967
GD
11718/* Override any gcc2 internal prototype to avoid an error. */
11719/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11720 builtin and then its argument prototype would still apply. */
11721char deflate();
11722
11723int main() {
11724deflate()
11725; return 0; }
11726EOF
7bb2947d 11727if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11728 rm -rf conftest*
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11730else
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11735fi
a0b9e27f
MB
11736rm -f conftest*
11737LIBS="$ac_save_LIBS"
698dcdb6 11738
698dcdb6 11739fi
a0b9e27f
MB
11740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ZLIB_LINK=" -lz"
11743else
11744 echo "$ac_t""no" 1>&6
11745fi
698dcdb6 11746
d643b80e 11747 fi
247f5006 11748
21d1c967
GD
11749 if test "x$ZLIB_LINK" = "x" ; then
11750 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11751 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11752 else
d643b80e 11753 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11754 wxUSE_ZLIB=builtin
11755 fi
11756 else
11757 wxUSE_ZLIB=sys
11758 fi
11759 fi
11760
11761 if test "$wxUSE_ZLIB" = "builtin" ; then
11762 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11763 fi
ab9b9eab
VZ
11764fi
11765
8284b0c5 11766
21d1c967
GD
11767PNG_INCLUDE=
11768PNG_LINK=
11769if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11770 cat >> confdefs.h <<\EOF
21d1c967 11771#define wxUSE_LIBPNG 1
a0b9e27f 11772EOF
90dd450c 11773
8284b0c5 11774
21d1c967 11775 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11776 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11777 wxUSE_LIBPNG=sys
11778 fi
90dd450c 11779
21d1c967 11780 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11781 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11782 wxUSE_LIBPNG=builtin
11783 fi
11784
11785 if test "$wxUSE_MGL" != 1 ; then
11786 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11787 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
7bb2947d 11788echo "configure:11789: checking for png.h > 0.90" >&5
5d3f766d
VZ
11789if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791else
11792 if test "$cross_compiling" = yes; then
89e6bf6d 11793 unset ac_cv_header_png_h
5d3f766d
VZ
11794
11795else
11796 cat > conftest.$ac_ext <<EOF
7bb2947d 11797#line 11798 "configure"
5d3f766d 11798#include "confdefs.h"
ef33c576
VZ
11799
11800 #include <png.h>
5d3f766d
VZ
11801 #include <stdio.h>
11802
11803 int main()
11804 {
11805 FILE *f=fopen("conftestval", "w");
11806 if (!f) exit(1);
11807 fprintf(f, "%s",
11808 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11809 exit(0);
11810 }
11811
11812EOF
7bb2947d 11813if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11814then
11815 ac_cv_header_png_h=`cat conftestval`
11816else
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 rm -fr conftest*
11820 ac_cv_header_png_h=no
11821fi
11822rm -fr conftest*
11823fi
11824
11825
11826fi
11827
11828echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11829 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11830echo $ac_n "checking for png.h""... $ac_c" 1>&6
7bb2947d 11831echo "configure:11832: checking for png.h" >&5
89e6bf6d
VZ
11832if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
11834else
11835 cat > conftest.$ac_ext <<EOF
7bb2947d 11836#line 11837 "configure"
89e6bf6d
VZ
11837#include "confdefs.h"
11838#include <png.h>
11839EOF
11840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 11841{ (eval echo configure:11842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11842ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11843if test -z "$ac_err"; then
11844 rm -rf conftest*
11845 eval "ac_cv_header_$ac_safe=yes"
11846else
11847 echo "$ac_err" >&5
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 eval "ac_cv_header_$ac_safe=no"
11852fi
11853rm -f conftest*
11854fi
11855if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 :
11858else
11859 echo "$ac_t""no" 1>&6
11860fi
11861
5d3f766d
VZ
11862
11863 if test "$ac_cv_header_png_h" = "yes"; then
11864 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
7bb2947d 11865echo "configure:11866: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11866ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11869else
a0b9e27f 11870 ac_save_LIBS="$LIBS"
21d1c967 11871LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11872cat > conftest.$ac_ext <<EOF
7bb2947d 11873#line 11874 "configure"
90dd450c 11874#include "confdefs.h"
21d1c967
GD
11875/* Override any gcc2 internal prototype to avoid an error. */
11876/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11877 builtin and then its argument prototype would still apply. */
11878char png_check_sig();
90dd450c 11879
a0b9e27f
MB
11880int main() {
11881png_check_sig()
11882; return 0; }
11883EOF
7bb2947d 11884if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11885 rm -rf conftest*
11886 eval "ac_cv_lib_$ac_lib_var=yes"
11887else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891 eval "ac_cv_lib_$ac_lib_var=no"
11892fi
11893rm -f conftest*
11894LIBS="$ac_save_LIBS"
247f5006 11895
90dd450c 11896fi
a0b9e27f
MB
11897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11898 echo "$ac_t""yes" 1>&6
11899 PNG_LINK=" -lpng"
11900else
11901 echo "$ac_t""no" 1>&6
11902fi
90dd450c 11903
5d3f766d 11904 fi
247f5006 11905
21d1c967
GD
11906 if test "x$PNG_LINK" = "x" ; then
11907 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11908 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11909 else
0c98a14e 11910 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11911 wxUSE_LIBPNG=builtin
11912 fi
11913 else
2b5f62a0 11914 wxUSE_LIBPNG=sys
21d1c967
GD
11915 fi
11916 fi
11917 fi
90dd450c 11918
21d1c967
GD
11919 if test "$wxUSE_LIBPNG" = "builtin" ; then
11920 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11921 fi
90dd450c 11922
21d1c967 11923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11924fi
11925
8284b0c5 11926
21d1c967
GD
11927JPEG_INCLUDE=
11928JPEG_LINK=
11929if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11930 cat >> confdefs.h <<\EOF
21d1c967 11931#define wxUSE_LIBJPEG 1
a0b9e27f 11932EOF
90dd450c 11933
8284b0c5 11934
21d1c967 11935 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11936 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11937 wxUSE_LIBJPEG=sys
11938 fi
90dd450c 11939
21d1c967
GD
11940 if test "$wxUSE_MGL" != 1 ; then
11941 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11942 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7bb2947d 11943echo "configure:11944: checking for jpeglib.h" >&5
a0b9e27f
MB
11944 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11946else
a0b9e27f 11947 cat > conftest.$ac_ext <<EOF
7bb2947d 11948#line 11949 "configure"
21d1c967 11949#include "confdefs.h"
90dd450c 11950
21d1c967
GD
11951 #undef HAVE_STDLIB_H
11952 #include <stdio.h>
11953 #include <jpeglib.h>
a0b9e27f
MB
11954
11955int main() {
90dd450c 11956
a0b9e27f
MB
11957
11958; return 0; }
11959EOF
7bb2947d 11960if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11961 rm -rf conftest*
21d1c967 11962 ac_cv_header_jpeglib_h=yes
90dd450c 11963else
a0b9e27f
MB
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 rm -rf conftest*
11967 ac_cv_header_jpeglib_h=no
11968
90dd450c 11969fi
a0b9e27f
MB
11970rm -f conftest*
11971
90dd450c
VZ
11972fi
11973
a0b9e27f 11974 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11975
21d1c967 11976 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11977 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
7bb2947d 11978echo "configure:11979: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11979ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11982else
a0b9e27f 11983 ac_save_LIBS="$LIBS"
21d1c967 11984LIBS="-ljpeg $LIBS"
a0b9e27f 11985cat > conftest.$ac_ext <<EOF
7bb2947d 11986#line 11987 "configure"
21d1c967
GD
11987#include "confdefs.h"
11988/* Override any gcc2 internal prototype to avoid an error. */
11989/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11990 builtin and then its argument prototype would still apply. */
11991char jpeg_read_header();
11992
11993int main() {
11994jpeg_read_header()
11995; return 0; }
11996EOF
7bb2947d 11997if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11998 rm -rf conftest*
11999 eval "ac_cv_lib_$ac_lib_var=yes"
12000else
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=no"
12005fi
12006rm -f conftest*
12007LIBS="$ac_save_LIBS"
12008
12009fi
12010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
21d1c967 12012 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12013else
12014 echo "$ac_t""no" 1>&6
90dd450c
VZ
12015fi
12016
21d1c967 12017 fi
90dd450c 12018
21d1c967
GD
12019 if test "x$JPEG_LINK" = "x" ; then
12020 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12021 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12022 else
a0b9e27f 12023 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12024 wxUSE_LIBJPEG=builtin
12025 fi
12026 else
12027 wxUSE_LIBJPEG=sys
12028 fi
12029 fi
12030 fi
90dd450c 12031
21d1c967
GD
12032 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12033 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12034 fi
12035fi
90dd450c 12036
8284b0c5 12037
21d1c967
GD
12038TIFF_INCLUDE=
12039TIFF_LINK=
2b5f62a0 12040TIFF_PREREQ_LINKS=-lm
21d1c967 12041if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12042 cat >> confdefs.h <<\EOF
21d1c967 12043#define wxUSE_LIBTIFF 1
a0b9e27f 12044EOF
21d1c967 12045
8284b0c5 12046
21d1c967 12047 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12048 if test "$wxUSE_LIBJPEG" = "sys"; then
12049 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12050 fi
12051 if test "$wxUSE_ZLIB" = "sys"; then
12052 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12053 fi
a0b9e27f
MB
12054 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12055echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7bb2947d 12056echo "configure:12057: checking for tiffio.h" >&5
a0b9e27f
MB
12057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059else
12060 cat > conftest.$ac_ext <<EOF
7bb2947d 12061#line 12062 "configure"
247f5006
VZ
12062#include "confdefs.h"
12063#include <tiffio.h>
a0b9e27f
MB
12064EOF
12065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 12066{ (eval echo configure:12067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12068if test -z "$ac_err"; then
12069 rm -rf conftest*
12070 eval "ac_cv_header_$ac_safe=yes"
12071else
12072 echo "$ac_err" >&5
12073 echo "configure: failed program was:" >&5
21d1c967 12074 cat conftest.$ac_ext >&5
a0b9e27f
MB
12075 rm -rf conftest*
12076 eval "ac_cv_header_$ac_safe=no"
21d1c967 12077fi
a0b9e27f 12078rm -f conftest*
21d1c967 12079fi
a0b9e27f
MB
12080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12081 echo "$ac_t""yes" 1>&6
12082 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
7bb2947d 12083echo "configure:12084: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12084ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12087else
a0b9e27f 12088 ac_save_LIBS="$LIBS"
2b5f62a0 12089LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12090cat > conftest.$ac_ext <<EOF
7bb2947d 12091#line 12092 "configure"
ab9b9eab
VZ
12092#include "confdefs.h"
12093/* Override any gcc2 internal prototype to avoid an error. */
12094/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12095 builtin and then its argument prototype would still apply. */
12096char TIFFError();
ab9b9eab 12097
a0b9e27f
MB
12098int main() {
12099TIFFError()
12100; return 0; }
12101EOF
7bb2947d 12102if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12103 rm -rf conftest*
12104 eval "ac_cv_lib_$ac_lib_var=yes"
12105else
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 rm -rf conftest*
12109 eval "ac_cv_lib_$ac_lib_var=no"
12110fi
12111rm -f conftest*
12112LIBS="$ac_save_LIBS"
247f5006 12113
21d1c967 12114fi
a0b9e27f
MB
12115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 TIFF_LINK=" -ltiff"
12118else
12119 echo "$ac_t""no" 1>&6
12120fi
cd6d6d5b 12121
a0b9e27f
MB
12122
12123else
12124 echo "$ac_t""no" 1>&6
12125fi
8284b0c5 12126
247f5006 12127
21d1c967
GD
12128 if test "x$TIFF_LINK" = "x" ; then
12129 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12130 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12131 else
a0b9e27f 12132 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12133 wxUSE_LIBTIFF=builtin
d8356fa3 12134 fi
d8356fa3 12135 else
21d1c967 12136 wxUSE_LIBTIFF=sys
d8356fa3 12137 fi
21d1c967 12138 fi
d8356fa3 12139
21d1c967
GD
12140 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12141 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12142 fi
21d1c967 12143fi
10f2d63a 12144
8284b0c5 12145
21d1c967 12146AFMINSTALL=
2b5f62a0 12147WIN32INSTALL=
90dd450c 12148
21d1c967
GD
12149TOOLKIT=
12150TOOLKIT_INCLUDE=
12151WIDGET_SET=
12152
12153if test "$USE_WIN32" = 1 ; then
a0b9e27f 12154 for ac_hdr in w32api.h
21d1c967 12155do
a0b9e27f
MB
12156ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12157echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 12158echo "configure:12159: checking for $ac_hdr" >&5
a0b9e27f
MB
12159if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162 cat > conftest.$ac_ext <<EOF
7bb2947d 12163#line 12164 "configure"
247f5006 12164#include "confdefs.h"
a0b9e27f
MB
12165#include <$ac_hdr>
12166EOF
12167ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 12168{ (eval echo configure:12169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12169ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12170if test -z "$ac_err"; then
12171 rm -rf conftest*
12172 eval "ac_cv_header_$ac_safe=yes"
12173else
12174 echo "$ac_err" >&5
12175 echo "configure: failed program was:" >&5
f79bd02d 12176 cat conftest.$ac_ext >&5
a0b9e27f
MB
12177 rm -rf conftest*
12178 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12179fi
a0b9e27f 12180rm -f conftest*
21d1c967 12181fi
a0b9e27f
MB
12182if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12183 echo "$ac_t""yes" 1>&6
12184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12185 cat >> confdefs.h <<EOF
12186#define $ac_tr_hdr 1
12187EOF
12188
12189else
12190 echo "$ac_t""no" 1>&6
21d1c967
GD
12191fi
12192done
f79bd02d 12193
a0b9e27f
MB
12194 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12195echo $ac_n "checking for windows.h""... $ac_c" 1>&6
7bb2947d 12196echo "configure:12197: checking for windows.h" >&5
a0b9e27f
MB
12197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12198 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12199else
a0b9e27f 12200 cat > conftest.$ac_ext <<EOF
7bb2947d 12201#line 12202 "configure"
247f5006
VZ
12202#include "confdefs.h"
12203#include <windows.h>
a0b9e27f
MB
12204EOF
12205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 12206{ (eval echo configure:12207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12208if test -z "$ac_err"; then
12209 rm -rf conftest*
12210 eval "ac_cv_header_$ac_safe=yes"
12211else
12212 echo "$ac_err" >&5
12213 echo "configure: failed program was:" >&5
90dd450c 12214 cat conftest.$ac_ext >&5
a0b9e27f
MB
12215 rm -rf conftest*
12216 eval "ac_cv_header_$ac_safe=no"
90dd450c 12217fi
a0b9e27f 12218rm -f conftest*
90dd450c 12219fi
a0b9e27f
MB
12220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
21d1c967 12222 :
90dd450c 12223else
a0b9e27f 12224 echo "$ac_t""no" 1>&6
21d1c967 12225
a0b9e27f
MB
12226 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12227
5c6fa7d2 12228fi
7b4a847f 12229
5c6fa7d2 12230
a0b9e27f 12231 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
7bb2947d 12232echo "configure:12233: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12233if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12235else
a0b9e27f
MB
12236
12237 cat > conftest.$ac_ext <<EOF
7bb2947d 12238#line 12239 "configure"
f79bd02d 12239#include "confdefs.h"
21d1c967 12240#include <w32api.h>
a0b9e27f 12241int main() {
f79bd02d 12242
21d1c967
GD
12243 #define wxCHECK_W32API_VERSION( major, minor ) \
12244 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12245 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12246 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12247
12248 #if !wxCHECK_W32API_VERSION(1,1)
12249 #error You need w32api 1.1 or newer
12250 #endif
a0b9e27f
MB
12251
12252; return 0; }
12253EOF
7bb2947d 12254if { (eval echo configure:12255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12255 rm -rf conftest*
12256
21d1c967 12257 wx_cv_w32api_win32_ie=yes
a0b9e27f 12258
f79bd02d 12259else
a0b9e27f
MB
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263
21d1c967 12264 wx_cv_w32api_win32_ie=no
a0b9e27f 12265
5c6fa7d2 12266fi
a0b9e27f
MB
12267rm -f conftest*
12268
247f5006 12269fi
a0b9e27f
MB
12270
12271echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12272 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12273 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12274 fi
f79bd02d 12275
21d1c967
GD
12276 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12277
7bb2947d
MB
12278 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12279 LIBS="$LIBS -loleacc"
12280 fi
12281
21d1c967
GD
12282 case "${host}" in
12283 *-*-cygwin* )
12284 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12285 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12286 esac
f79bd02d 12287
21d1c967
GD
12288 if test "$wxUSE_ODBC" = "yes" ; then
12289 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12290 fi
f79bd02d 12291
21d1c967
GD
12292 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12293 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12294
12295 WIN32INSTALL=win32install
f79bd02d 12296fi
f79bd02d 12297
b2fee376 12298if test "$USE_DARWIN" = 1; then
50bcbd3d 12299 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12300 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12301 else
12302 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12303 fi
12304fi
12305
21d1c967
GD
12306if test "$wxUSE_GUI" = "yes"; then
12307 USE_GUI=1
f79bd02d 12308
21d1c967 12309 GUI_TK_LIBRARY=
f79bd02d 12310
21d1c967
GD
12311 WXGTK12=
12312 WXGTK127=
12313 WXGTK20=
f79bd02d 12314
21d1c967
GD
12315 if test "$wxUSE_MSW" = 1 ; then
12316 TOOLKIT=MSW
12317 GUIDIST=MSW_DIST
f79bd02d 12318
89e6bf6d 12319 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12320 fi
12321
21d1c967 12322 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12323 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
7bb2947d 12324echo "configure:12325: checking for GTK+ version" >&5
21d1c967
GD
12325
12326 gtk_version_cached=1
a0b9e27f
MB
12327 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12329else
a0b9e27f 12330
21d1c967 12331 gtk_version_cached=0
a0b9e27f 12332 echo "$ac_t""" 1>&6
f79bd02d 12333
21d1c967
GD
12334 GTK_MODULES=
12335 if test "$wxUSE_THREADS" = "yes"; then
12336 GTK_MODULES=gthread
12337 fi
f79bd02d 12338
2b5f62a0 12339 wx_cv_lib_gtk=
21d1c967
GD
12340 if test "x$wxUSE_GTK2" = "xyes"; then
12341 # Check whether --enable-gtktest or --disable-gtktest was given.
12342if test "${enable_gtktest+set}" = set; then
12343 enableval="$enable_gtktest"
a0b9e27f 12344 :
f79bd02d 12345else
21d1c967 12346 enable_gtktest=yes
a0b9e27f
MB
12347fi
12348
f79bd02d 12349
21d1c967
GD
12350 pkg_config_args=gtk+-2.0
12351 for module in . $GTK_MODULES
12352 do
12353 case "$module" in
a0b9e27f 12354 gthread)
21d1c967
GD
12355 pkg_config_args="$pkg_config_args gthread-2.0"
12356 ;;
12357 esac
12358 done
12359
12360 no_gtk=""
f79bd02d 12361
21d1c967
GD
12362 # Extract the first word of "pkg-config", so it can be a program name with args.
12363set dummy pkg-config; ac_word=$2
a0b9e27f 12364echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 12365echo "configure:12366: checking for $ac_word" >&5
a0b9e27f
MB
12366if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12368else
a0b9e27f
MB
12369 case "$PKG_CONFIG" in
12370 /*)
21d1c967
GD
12371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12372 ;;
a0b9e27f
MB
12373 ?:/*)
12374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12375 ;;
21d1c967 12376 *)
a0b9e27f
MB
12377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12378 ac_dummy="$PATH"
12379 for ac_dir in $ac_dummy; do
12380 test -z "$ac_dir" && ac_dir=.
12381 if test -f $ac_dir/$ac_word; then
12382 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12383 break
12384 fi
12385 done
12386 IFS="$ac_save_ifs"
21d1c967
GD
12387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12388 ;;
12389esac
f79bd02d 12390fi
a0b9e27f 12391PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12392if test -n "$PKG_CONFIG"; then
a0b9e27f 12393 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12394else
a0b9e27f 12395 echo "$ac_t""no" 1>&6
f79bd02d
JS
12396fi
12397
8284b0c5 12398
21d1c967
GD
12399 if test x$PKG_CONFIG != xno ; then
12400 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12401 :
12402 else
12403 echo *** pkg-config too old; version 0.7 or better required.
12404 no_gtk=yes
12405 PKG_CONFIG=no
12406 fi
12407 else
12408 no_gtk=yes
12409 fi
f79bd02d 12410
21d1c967 12411 min_gtk_version=2.0.0
a0b9e27f 12412 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
7bb2947d 12413echo "configure:12414: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12414
21d1c967
GD
12415 if test x$PKG_CONFIG != xno ; then
12416 ## don't try to run the test against uninstalled libtool libs
12417 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12418 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12419 enable_gtktest=no
12420 fi
f79bd02d 12421
21d1c967
GD
12422 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12423 :
12424 else
12425 no_gtk=yes
12426 fi
12427 fi
f79bd02d 12428
21d1c967
GD
12429 if test x"$no_gtk" = x ; then
12430 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12431 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12432 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12434 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12436 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12438 if test "x$enable_gtktest" = "xyes" ; then
12439 ac_save_CFLAGS="$CFLAGS"
12440 ac_save_LIBS="$LIBS"
12441 CFLAGS="$CFLAGS $GTK_CFLAGS"
12442 LIBS="$GTK_LIBS $LIBS"
12443 rm -f conf.gtktest
12444 if test "$cross_compiling" = yes; then
12445 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12446else
a0b9e27f 12447 cat > conftest.$ac_ext <<EOF
7bb2947d 12448#line 12449 "configure"
f79bd02d 12449#include "confdefs.h"
f79bd02d 12450
21d1c967
GD
12451#include <gtk/gtk.h>
12452#include <stdio.h>
12453#include <stdlib.h>
f79bd02d 12454
a0b9e27f 12455int
21d1c967
GD
12456main ()
12457{
12458 int major, minor, micro;
12459 char *tmp_version;
f79bd02d 12460
21d1c967 12461 system ("touch conf.gtktest");
f79bd02d 12462
21d1c967
GD
12463 /* HP/UX 9 (%@#!) writes to sscanf strings */
12464 tmp_version = g_strdup("$min_gtk_version");
12465 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12466 printf("%s, bad version string\n", "$min_gtk_version");
12467 exit(1);
12468 }
f79bd02d 12469
21d1c967
GD
12470 if ((gtk_major_version != $gtk_config_major_version) ||
12471 (gtk_minor_version != $gtk_config_minor_version) ||
12472 (gtk_micro_version != $gtk_config_micro_version))
12473 {
a0b9e27f 12474 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12475 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12476 gtk_major_version, gtk_minor_version, gtk_micro_version);
12477 printf ("*** was found! If pkg-config was correct, then it is best\n");
12478 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12481 printf("*** required on your system.\n");
12482 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12483 printf("*** to point to the correct configuration files\n");
a0b9e27f 12484 }
21d1c967
GD
12485 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12486 (gtk_minor_version != GTK_MINOR_VERSION) ||
12487 (gtk_micro_version != GTK_MICRO_VERSION))
12488 {
12489 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12490 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12491 printf("*** library (version %d.%d.%d)\n",
12492 gtk_major_version, gtk_minor_version, gtk_micro_version);
12493 }
12494 else
12495 {
12496 if ((gtk_major_version > major) ||
12497 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12498 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12499 {
12500 return 0;
12501 }
12502 else
12503 {
12504 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12505 gtk_major_version, gtk_minor_version, gtk_micro_version);
12506 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12507 major, minor, micro);
12508 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12509 printf("***\n");
12510 printf("*** If you have already installed a sufficiently new version, this error\n");
12511 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12512 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12513 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12514 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12515 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12516 printf("*** so that the correct libraries are found at run-time))\n");
12517 }
12518 }
12519 return 1;
12520}
f79bd02d 12521
a0b9e27f 12522EOF
7bb2947d 12523if { (eval echo configure:12524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12524then
21d1c967 12525 :
f79bd02d 12526else
a0b9e27f
MB
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 rm -fr conftest*
12530 no_gtk=yes
f79bd02d 12531fi
a0b9e27f 12532rm -fr conftest*
f79bd02d 12533fi
a0b9e27f 12534
21d1c967
GD
12535 CFLAGS="$ac_save_CFLAGS"
12536 LIBS="$ac_save_LIBS"
12537 fi
12538 fi
12539 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12540 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12541 wx_cv_lib_gtk=2.0
21d1c967 12542 else
a0b9e27f 12543 echo "$ac_t""no" 1>&6
21d1c967
GD
12544 if test "$PKG_CONFIG" = "no" ; then
12545 echo "*** A new enough version of pkg-config was not found."
12546 echo "*** See http://pkgconfig.sourceforge.net"
12547 else
12548 if test -f conf.gtktest ; then
12549 :
12550 else
12551 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12552 ac_save_CFLAGS="$CFLAGS"
12553 ac_save_LIBS="$LIBS"
21d1c967
GD
12554 CFLAGS="$CFLAGS $GTK_CFLAGS"
12555 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12556 cat > conftest.$ac_ext <<EOF
7bb2947d 12557#line 12558 "configure"
f79bd02d 12558#include "confdefs.h"
21d1c967
GD
12559
12560#include <gtk/gtk.h>
12561#include <stdio.h>
f79bd02d 12562
a0b9e27f
MB
12563int main() {
12564 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12565; return 0; }
12566EOF
7bb2947d 12567if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12568 rm -rf conftest*
21d1c967
GD
12569 echo "*** The test program compiled, but did not run. This usually means"
12570 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12571 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12572 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12573 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12574 echo "*** is required on your system"
12575 echo "***"
12576 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12577 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12578else
a0b9e27f
MB
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 rm -rf conftest*
12582 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12583 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12584fi
a0b9e27f 12585rm -f conftest*
21d1c967
GD
12586 CFLAGS="$ac_save_CFLAGS"
12587 LIBS="$ac_save_LIBS"
12588 fi
12589 fi
12590 GTK_CFLAGS=""
12591 GTK_LIBS=""
12592 :
12593 fi
a0b9e27f
MB
12594
12595
21d1c967 12596 rm -f conf.gtktest
f79bd02d 12597
2b5f62a0 12598 else
a0b9e27f 12599 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12600if test "${with_gtk_prefix+set}" = set; then
12601 withval="$with_gtk_prefix"
12602 gtk_config_prefix="$withval"
12603else
12604 gtk_config_prefix=""
a0b9e27f 12605fi
f79bd02d 12606
21d1c967
GD
12607# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12608if test "${with_gtk_exec_prefix+set}" = set; then
12609 withval="$with_gtk_exec_prefix"
12610 gtk_config_exec_prefix="$withval"
12611else
12612 gtk_config_exec_prefix=""
a0b9e27f
MB
12613fi
12614
21d1c967
GD
12615# Check whether --enable-gtktest or --disable-gtktest was given.
12616if test "${enable_gtktest+set}" = set; then
12617 enableval="$enable_gtktest"
a0b9e27f 12618 :
21d1c967
GD
12619else
12620 enable_gtktest=yes
a0b9e27f
MB
12621fi
12622
21d1c967
GD
12623
12624 for module in . $GTK_MODULES
12625 do
12626 case "$module" in
a0b9e27f 12627 gthread)
21d1c967
GD
12628 gtk_config_args="$gtk_config_args gthread"
12629 ;;
12630 esac
12631 done
12632
12633 if test x$gtk_config_exec_prefix != x ; then
12634 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12635 if test x${GTK_CONFIG+set} != xset ; then
12636 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12637 fi
12638 fi
12639 if test x$gtk_config_prefix != x ; then
12640 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12641 if test x${GTK_CONFIG+set} != xset ; then
12642 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12643 fi
12644 fi
12645
12646 # Extract the first word of "gtk-config", so it can be a program name with args.
12647set dummy gtk-config; ac_word=$2
a0b9e27f 12648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 12649echo "configure:12650: checking for $ac_word" >&5
a0b9e27f
MB
12650if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12652else
a0b9e27f
MB
12653 case "$GTK_CONFIG" in
12654 /*)
21d1c967
GD
12655 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12656 ;;
a0b9e27f
MB
12657 ?:/*)
12658 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12659 ;;
21d1c967 12660 *)
a0b9e27f
MB
12661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12662 ac_dummy="$PATH"
12663 for ac_dir in $ac_dummy; do
12664 test -z "$ac_dir" && ac_dir=.
12665 if test -f $ac_dir/$ac_word; then
12666 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12667 break
12668 fi
12669 done
12670 IFS="$ac_save_ifs"
21d1c967
GD
12671 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12672 ;;
12673esac
12674fi
a0b9e27f 12675GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12676if test -n "$GTK_CONFIG"; then
a0b9e27f 12677 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12678else
a0b9e27f 12679 echo "$ac_t""no" 1>&6
21d1c967
GD
12680fi
12681
12682 min_gtk_version=1.2.7
a0b9e27f 12683 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7bb2947d 12684echo "configure:12685: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12685 no_gtk=""
12686 if test "$GTK_CONFIG" = "no" ; then
12687 no_gtk=yes
12688 else
12689 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12690 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12691 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12693 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12694 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12695 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12696 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12697 if test "x$enable_gtktest" = "xyes" ; then
12698 ac_save_CFLAGS="$CFLAGS"
12699 ac_save_LIBS="$LIBS"
12700 CFLAGS="$CFLAGS $GTK_CFLAGS"
12701 LIBS="$GTK_LIBS $LIBS"
12702 rm -f conf.gtktest
12703 if test "$cross_compiling" = yes; then
12704 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12705else
a0b9e27f 12706 cat > conftest.$ac_ext <<EOF
7bb2947d 12707#line 12708 "configure"
f79bd02d
JS
12708#include "confdefs.h"
12709
21d1c967
GD
12710#include <gtk/gtk.h>
12711#include <stdio.h>
12712#include <stdlib.h>
f79bd02d 12713
a0b9e27f 12714int
21d1c967
GD
12715main ()
12716{
12717 int major, minor, micro;
12718 char *tmp_version;
12719
12720 system ("touch conf.gtktest");
12721
12722 /* HP/UX 9 (%@#!) writes to sscanf strings */
12723 tmp_version = g_strdup("$min_gtk_version");
12724 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12725 printf("%s, bad version string\n", "$min_gtk_version");
12726 exit(1);
12727 }
90dd450c 12728
21d1c967
GD
12729 if ((gtk_major_version != $gtk_config_major_version) ||
12730 (gtk_minor_version != $gtk_config_minor_version) ||
12731 (gtk_micro_version != $gtk_config_micro_version))
12732 {
a0b9e27f 12733 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12734 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12735 gtk_major_version, gtk_minor_version, gtk_micro_version);
12736 printf ("*** was found! If gtk-config was correct, then it is best\n");
12737 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12738 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12739 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12740 printf("*** required on your system.\n");
12741 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12742 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12743 printf("*** before re-running configure\n");
a0b9e27f 12744 }
21d1c967
GD
12745#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12746 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12747 (gtk_minor_version != GTK_MINOR_VERSION) ||
12748 (gtk_micro_version != GTK_MICRO_VERSION))
12749 {
12750 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12751 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12752 printf("*** library (version %d.%d.%d)\n",
12753 gtk_major_version, gtk_minor_version, gtk_micro_version);
12754 }
12755#endif /* defined (GTK_MAJOR_VERSION) ... */
12756 else
12757 {
12758 if ((gtk_major_version > major) ||
12759 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12760 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12761 {
12762 return 0;
12763 }
12764 else
12765 {
12766 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12767 gtk_major_version, gtk_minor_version, gtk_micro_version);
12768 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12769 major, minor, micro);
12770 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12771 printf("***\n");
12772 printf("*** If you have already installed a sufficiently new version, this error\n");
12773 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12774 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12775 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12776 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12777 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12778 printf("*** so that the correct libraries are found at run-time))\n");
12779 }
12780 }
12781 return 1;
12782}
12783
a0b9e27f 12784EOF
7bb2947d 12785if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12786then
21d1c967
GD
12787 :
12788else
a0b9e27f
MB
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 rm -fr conftest*
12792 no_gtk=yes
21d1c967 12793fi
a0b9e27f 12794rm -fr conftest*
21d1c967 12795fi
a0b9e27f 12796
21d1c967
GD
12797 CFLAGS="$ac_save_CFLAGS"
12798 LIBS="$ac_save_LIBS"
12799 fi
12800 fi
12801 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12802 echo "$ac_t""yes" 1>&6
12803 wx_cv_lib_gtk=1.2.7
21d1c967 12804 else
a0b9e27f 12805 echo "$ac_t""no" 1>&6
21d1c967
GD
12806 if test "$GTK_CONFIG" = "no" ; then
12807 echo "*** The gtk-config script installed by GTK could not be found"
12808 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12809 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12810 echo "*** full path to gtk-config."
12811 else
12812 if test -f conf.gtktest ; then
12813 :
12814 else
12815 echo "*** Could not run GTK test program, checking why..."
12816 CFLAGS="$CFLAGS $GTK_CFLAGS"
12817 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12818 cat > conftest.$ac_ext <<EOF
7bb2947d 12819#line 12820 "configure"
21d1c967
GD
12820#include "confdefs.h"
12821
12822#include <gtk/gtk.h>
12823#include <stdio.h>
12824
a0b9e27f
MB
12825int main() {
12826 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12827; return 0; }
12828EOF
7bb2947d 12829if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12830 rm -rf conftest*
21d1c967
GD
12831 echo "*** The test program compiled, but did not run. This usually means"
12832 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12833 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12834 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12835 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12836 echo "*** is required on your system"
12837 echo "***"
12838 echo "*** If you have an old version installed, it is best to remove it, although"
12839 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12840 echo "***"
12841 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12842 echo "*** came with the system with the command"
12843 echo "***"
a0b9e27f 12844 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12845else
a0b9e27f
MB
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 rm -rf conftest*
12849 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12850 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12851 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12852 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12853fi
a0b9e27f 12854rm -f conftest*
21d1c967
GD
12855 CFLAGS="$ac_save_CFLAGS"
12856 LIBS="$ac_save_LIBS"
12857 fi
12858 fi
12859 GTK_CFLAGS=""
12860 GTK_LIBS=""
12861 :
12862 fi
a0b9e27f
MB
12863
12864
21d1c967
GD
12865 rm -f conf.gtktest
12866
21d1c967 12867
2b5f62a0
VZ
12868 if test -z "$wx_cv_lib_gtk"; then
12869 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12870if test "${with_gtk_prefix+set}" = set; then
12871 withval="$with_gtk_prefix"
12872 gtk_config_prefix="$withval"
12873else
12874 gtk_config_prefix=""
a0b9e27f 12875fi
f79bd02d 12876
21d1c967
GD
12877# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12878if test "${with_gtk_exec_prefix+set}" = set; then
12879 withval="$with_gtk_exec_prefix"
12880 gtk_config_exec_prefix="$withval"
12881else
12882 gtk_config_exec_prefix=""
a0b9e27f
MB
12883fi
12884
21d1c967
GD
12885# Check whether --enable-gtktest or --disable-gtktest was given.
12886if test "${enable_gtktest+set}" = set; then
12887 enableval="$enable_gtktest"
a0b9e27f 12888 :
90dd450c 12889else
21d1c967 12890 enable_gtktest=yes
a0b9e27f
MB
12891fi
12892
21d1c967
GD
12893
12894 for module in . $GTK_MODULES
12895 do
12896 case "$module" in
a0b9e27f 12897 gthread)
21d1c967
GD
12898 gtk_config_args="$gtk_config_args gthread"
12899 ;;
12900 esac
12901 done
12902
12903 if test x$gtk_config_exec_prefix != x ; then
12904 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12905 if test x${GTK_CONFIG+set} != xset ; then
12906 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12907 fi
12908 fi
12909 if test x$gtk_config_prefix != x ; then
12910 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12911 if test x${GTK_CONFIG+set} != xset ; then
12912 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12913 fi
12914 fi
12915
12916 # Extract the first word of "gtk-config", so it can be a program name with args.
12917set dummy gtk-config; ac_word=$2
a0b9e27f 12918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 12919echo "configure:12920: checking for $ac_word" >&5
a0b9e27f
MB
12920if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12921 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12922else
a0b9e27f
MB
12923 case "$GTK_CONFIG" in
12924 /*)
21d1c967
GD
12925 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12926 ;;
a0b9e27f
MB
12927 ?:/*)
12928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12929 ;;
21d1c967 12930 *)
a0b9e27f
MB
12931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12932 ac_dummy="$PATH"
12933 for ac_dir in $ac_dummy; do
12934 test -z "$ac_dir" && ac_dir=.
12935 if test -f $ac_dir/$ac_word; then
12936 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12937 break
12938 fi
12939 done
12940 IFS="$ac_save_ifs"
21d1c967
GD
12941 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12942 ;;
12943esac
12944fi
a0b9e27f 12945GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12946if test -n "$GTK_CONFIG"; then
a0b9e27f 12947 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12948else
a0b9e27f 12949 echo "$ac_t""no" 1>&6
21d1c967
GD
12950fi
12951
12952 min_gtk_version=1.2.3
a0b9e27f 12953 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7bb2947d 12954echo "configure:12955: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12955 no_gtk=""
12956 if test "$GTK_CONFIG" = "no" ; then
12957 no_gtk=yes
12958 else
12959 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12960 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12961 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12963 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12964 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12965 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12966 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12967 if test "x$enable_gtktest" = "xyes" ; then
12968 ac_save_CFLAGS="$CFLAGS"
12969 ac_save_LIBS="$LIBS"
12970 CFLAGS="$CFLAGS $GTK_CFLAGS"
12971 LIBS="$GTK_LIBS $LIBS"
12972 rm -f conf.gtktest
12973 if test "$cross_compiling" = yes; then
12974 echo $ac_n "cross compiling; assumed OK... $ac_c"
12975else
a0b9e27f 12976 cat > conftest.$ac_ext <<EOF
7bb2947d 12977#line 12978 "configure"
f79bd02d 12978#include "confdefs.h"
21d1c967
GD
12979
12980#include <gtk/gtk.h>
12981#include <stdio.h>
12982#include <stdlib.h>
12983
a0b9e27f 12984int
21d1c967
GD
12985main ()
12986{
12987 int major, minor, micro;
12988 char *tmp_version;
12989
12990 system ("touch conf.gtktest");
12991
12992 /* HP/UX 9 (%@#!) writes to sscanf strings */
12993 tmp_version = g_strdup("$min_gtk_version");
12994 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12995 printf("%s, bad version string\n", "$min_gtk_version");
12996 exit(1);
12997 }
12998
12999 if ((gtk_major_version != $gtk_config_major_version) ||
13000 (gtk_minor_version != $gtk_config_minor_version) ||
13001 (gtk_micro_version != $gtk_config_micro_version))
13002 {
a0b9e27f 13003 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13004 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13005 gtk_major_version, gtk_minor_version, gtk_micro_version);
13006 printf ("*** was found! If gtk-config was correct, then it is best\n");
13007 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13008 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13009 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13010 printf("*** required on your system.\n");
13011 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13012 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13013 printf("*** before re-running configure\n");
a0b9e27f 13014 }
21d1c967
GD
13015#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13016 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13017 (gtk_minor_version != GTK_MINOR_VERSION) ||
13018 (gtk_micro_version != GTK_MICRO_VERSION))
13019 {
13020 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13021 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13022 printf("*** library (version %d.%d.%d)\n",
13023 gtk_major_version, gtk_minor_version, gtk_micro_version);
13024 }
13025#endif /* defined (GTK_MAJOR_VERSION) ... */
13026 else
13027 {
13028 if ((gtk_major_version > major) ||
13029 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13030 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13031 {
13032 return 0;
13033 }
13034 else
13035 {
13036 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13037 gtk_major_version, gtk_minor_version, gtk_micro_version);
13038 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13039 major, minor, micro);
13040 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13041 printf("***\n");
13042 printf("*** If you have already installed a sufficiently new version, this error\n");
13043 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13044 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13045 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13046 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13047 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13048 printf("*** so that the correct libraries are found at run-time))\n");
13049 }
13050 }
13051 return 1;
13052}
13053
a0b9e27f 13054EOF
7bb2947d 13055if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13056then
21d1c967
GD
13057 :
13058else
a0b9e27f
MB
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -fr conftest*
13062 no_gtk=yes
21d1c967 13063fi
a0b9e27f 13064rm -fr conftest*
21d1c967 13065fi
a0b9e27f 13066
21d1c967
GD
13067 CFLAGS="$ac_save_CFLAGS"
13068 LIBS="$ac_save_LIBS"
13069 fi
13070 fi
13071 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13072 echo "$ac_t""yes" 1>&6
13073 wx_cv_lib_gtk=1.2.3
21d1c967 13074 else
a0b9e27f 13075 echo "$ac_t""no" 1>&6
21d1c967
GD
13076 if test "$GTK_CONFIG" = "no" ; then
13077 echo "*** The gtk-config script installed by GTK could not be found"
13078 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13079 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13080 echo "*** full path to gtk-config."
13081 else
13082 if test -f conf.gtktest ; then
13083 :
13084 else
13085 echo "*** Could not run GTK test program, checking why..."
13086 CFLAGS="$CFLAGS $GTK_CFLAGS"
13087 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13088 cat > conftest.$ac_ext <<EOF
7bb2947d 13089#line 13090 "configure"
21d1c967
GD
13090#include "confdefs.h"
13091
13092#include <gtk/gtk.h>
13093#include <stdio.h>
f79bd02d 13094
a0b9e27f
MB
13095int main() {
13096 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13097; return 0; }
13098EOF
7bb2947d 13099if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13100 rm -rf conftest*
21d1c967
GD
13101 echo "*** The test program compiled, but did not run. This usually means"
13102 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13103 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13104 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13105 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13106 echo "*** is required on your system"
13107 echo "***"
13108 echo "*** If you have an old version installed, it is best to remove it, although"
13109 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13110 echo "***"
13111 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13112 echo "*** came with the system with the command"
13113 echo "***"
a0b9e27f 13114 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13115else
a0b9e27f
MB
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13120 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13121 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13122 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13123fi
a0b9e27f 13124rm -f conftest*
21d1c967
GD
13125 CFLAGS="$ac_save_CFLAGS"
13126 LIBS="$ac_save_LIBS"
13127 fi
13128 fi
13129 GTK_CFLAGS=""
13130 GTK_LIBS=""
13131 :
13132 fi
a0b9e27f
MB
13133
13134
21d1c967 13135 rm -f conf.gtktest
f79bd02d 13136
2b5f62a0 13137 fi
21d1c967
GD
13138 fi
13139
13140 if test -z "$wx_cv_lib_gtk"; then
13141 wx_cv_lib_gtk=none
13142 else
13143 wx_cv_cflags_gtk=$GTK_CFLAGS
13144 wx_cv_libs_gtk=$GTK_LIBS
13145 fi
a0b9e27f
MB
13146
13147
5c6fa7d2 13148fi
52127426 13149
8284b0c5 13150
21d1c967 13151 if test "$gtk_version_cached" = 1; then
a0b9e27f 13152 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13153 fi
13154
13155 case "$wx_cv_lib_gtk" in
13156 2.0) WXGTK20=1
2b5f62a0 13157 TOOLKIT_VERSION=2
21d1c967
GD
13158 ;;
13159 1.2.7) WXGTK127=1
13160 WXGTK12=1
13161 ;;
13162 1.2.3) WXGTK12=1
13163 ;;
a0b9e27f 13164 *) { echo "configure: error:
247f5006
VZ
13165Please check that gtk-config is in path, the directory
13166where GTK+ libraries are installed (returned by
13167'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13168equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13169 " 1>&2; exit 1; }
21d1c967
GD
13170 ;;
13171 esac
13172
b13cd66e
VZ
13173 if test "$WXGTK20" = 1; then
13174 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13175
f09359cf
VS
13176 succeeded=no
13177
13178 if test -z "$PKG_CONFIG"; then
13179 # Extract the first word of "pkg-config", so it can be a program name with args.
13180set dummy pkg-config; ac_word=$2
a0b9e27f 13181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 13182echo "configure:13183: checking for $ac_word" >&5
a0b9e27f
MB
13183if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13184 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13185else
a0b9e27f
MB
13186 case "$PKG_CONFIG" in
13187 /*)
f09359cf
VS
13188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13189 ;;
a0b9e27f
MB
13190 ?:/*)
13191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13192 ;;
f09359cf 13193 *)
a0b9e27f
MB
13194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13195 ac_dummy="$PATH"
13196 for ac_dir in $ac_dummy; do
13197 test -z "$ac_dir" && ac_dir=.
13198 if test -f $ac_dir/$ac_word; then
13199 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13200 break
13201 fi
13202 done
13203 IFS="$ac_save_ifs"
f09359cf
VS
13204 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13205 ;;
13206esac
13207fi
a0b9e27f 13208PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13209if test -n "$PKG_CONFIG"; then
a0b9e27f 13210 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13211else
a0b9e27f 13212 echo "$ac_t""no" 1>&6
f09359cf
VS
13213fi
13214
13215 fi
13216
13217 if test "$PKG_CONFIG" = "no" ; then
13218 echo "*** The pkg-config script could not be found. Make sure it is"
13219 echo "*** in your path, or set the PKG_CONFIG environment variable"
13220 echo "*** to the full path to pkg-config."
13221 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13222 else
13223 PKG_CONFIG_MIN_VERSION=0.9.0
13224 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13225 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
7bb2947d 13226echo "configure:13227: checking for pangoft2" >&5
f09359cf
VS
13227
13228 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13229 echo "$ac_t""yes" 1>&6
f09359cf
VS
13230 succeeded=yes
13231
a0b9e27f 13232 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
7bb2947d 13233echo "configure:13234: checking PANGOFT2_CFLAGS" >&5
f09359cf 13234 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13235 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13236
a0b9e27f 13237 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
7bb2947d 13238echo "configure:13239: checking PANGOFT2_LIBS" >&5
f09359cf 13239 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13240 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13241 else
13242 PANGOFT2_CFLAGS=""
13243 PANGOFT2_LIBS=""
a0b9e27f 13244 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13245 ## do set a variable so people can do so.
13246 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13247
f09359cf
VS
13248 fi
13249
a0b9e27f
MB
13250
13251
f09359cf
VS
13252 else
13253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13255 fi
13256 fi
13257
13258 if test $succeeded = yes; then
a0b9e27f 13259
b13cd66e
VZ
13260 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13261 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13262
f09359cf 13263 else
a0b9e27f
MB
13264
13265 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13266 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13267
13268
f09359cf
VS
13269 fi
13270
b13cd66e 13271 fi
2b5f62a0
VZ
13272 else
13273 if test "$wxUSE_UNICODE" = "yes"; then
13274 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13275 wxUSE_UNICODE=no
13276 fi
13277 fi
13278
13279 if test "$USE_DARWIN" != 1; then
13280 for ac_func in poll
13281do
13282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 13283echo "configure:13284: checking for $ac_func" >&5
2b5f62a0
VZ
13284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286else
13287 cat > conftest.$ac_ext <<EOF
7bb2947d 13288#line 13289 "configure"
2b5f62a0
VZ
13289#include "confdefs.h"
13290/* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char $ac_func(); below. */
13292#include <assert.h>
13293/* Override any gcc2 internal prototype to avoid an error. */
13294/* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296char $ac_func();
13297
13298int main() {
13299
13300/* The GNU C library defines this for functions which it implements
13301 to always fail with ENOSYS. Some functions are actually named
13302 something starting with __ and the normal name is an alias. */
13303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13304choke me
13305#else
13306$ac_func();
13307#endif
13308
13309; return 0; }
13310EOF
7bb2947d 13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=yes"
13314else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 eval "ac_cv_func_$ac_func=no"
13319fi
13320rm -f conftest*
13321fi
13322
13323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13326 cat >> confdefs.h <<EOF
13327#define $ac_tr_func 1
13328EOF
13329
13330else
13331 echo "$ac_t""no" 1>&6
13332fi
13333done
13334
f09359cf
VS
13335 fi
13336
21d1c967
GD
13337 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13338 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13339
13340 AFMINSTALL=afminstall
13341 TOOLKIT=GTK
13342 GUIDIST=GTK_DIST
13343
a0b9e27f 13344 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7bb2947d 13345echo "configure:13346: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13346ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13349else
a0b9e27f 13350 ac_save_LIBS="$LIBS"
21d1c967 13351LIBS="-lgdk $LIBS"
a0b9e27f 13352cat > conftest.$ac_ext <<EOF
7bb2947d 13353#line 13354 "configure"
90dd450c 13354#include "confdefs.h"
5c6fa7d2 13355/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13356/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13357 builtin and then its argument prototype would still apply. */
13358char gdk_im_open();
13359
13360int main() {
13361gdk_im_open()
13362; return 0; }
13363EOF
7bb2947d 13364if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13365 rm -rf conftest*
13366 eval "ac_cv_lib_$ac_lib_var=yes"
13367else
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13370 rm -rf conftest*
13371 eval "ac_cv_lib_$ac_lib_var=no"
13372fi
13373rm -f conftest*
13374LIBS="$ac_save_LIBS"
13375
13376fi
13377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13378 echo "$ac_t""yes" 1>&6
13379 cat >> confdefs.h <<\EOF
21d1c967 13380#define HAVE_XIM 1
a0b9e27f 13381EOF
21d1c967 13382
a0b9e27f
MB
13383else
13384 echo "$ac_t""no" 1>&6
90dd450c 13385fi
1e6feb95 13386
21d1c967 13387 fi
1e6feb95 13388
21d1c967 13389 if test "$wxUSE_MGL" = 1; then
63a76696 13390 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
7bb2947d 13391echo "configure:13392: checking for SciTech MGL library" >&5
21d1c967 13392 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13393 echo "$ac_t""not found" 1>&6
13394 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13395 else
a0b9e27f 13396 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13397 fi
13398
63a76696 13399 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
7bb2947d 13400echo "configure:13401: checking for libmgl location" >&5
21d1c967
GD
13401 case "${host}" in
13402 *-*-linux* )
63a76696
VS
13403 if test "x$wxUSE_SHARED" = xyes ; then
13404 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13405 else
13406 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13407 fi
21d1c967
GD
13408 ;;
13409 *-pc-msdosdjgpp )
63a76696 13410 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13411 ;;
13412 *)
a0b9e27f 13413 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13414 esac
1e6feb95 13415
21d1c967 13416 mgl_lib_type=""
63a76696
VS
13417 mgl_os=""
13418
13419 for mgl_os_i in $mgl_os_candidates ; do
13420 if test "x$mgl_os" = x ; then
13421 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13422 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13423 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13424 mgl_lib_type=debug
13425 mgl_os=$mgl_os_i
13426 fi
13427 fi
13428 if test "x$mgl_lib_type" = x ; then
13429 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13430 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13431 mgl_lib_type=release
13432 mgl_os=$mgl_os_i
13433 fi
13434 fi
21d1c967 13435 fi
63a76696 13436 done
2224580a 13437
63a76696
VS
13438 if test "x$mgl_os" = x ; then
13439 echo "$ac_t""not found" 1>&6
13440 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13441 fi
13442 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13443
1d1b75ac
VZ
13444 wxUSE_UNIVERSAL="yes"
13445
21d1c967
GD
13446 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13447 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13448
90dd450c 13449 AFMINSTALL=afminstall
21d1c967
GD
13450 TOOLKIT=MGL
13451 GUIDIST=MGL_DIST
13452 fi
dad6c0ea 13453
21d1c967 13454 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13455 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
7bb2947d 13456echo "configure:13457: checking for MicroWindows" >&5
21d1c967 13457 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13458 echo "$ac_t""not found" 1>&6
13459 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13460 else
a0b9e27f 13461 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13462 fi
f6bcfd97 13463
21d1c967 13464 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13465 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13466 else
a0b9e27f 13467 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13468 fi
0b2effe9 13469
21d1c967
GD
13470 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13471 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13472
1d1b75ac
VZ
13473 wxUSE_UNIVERSAL="yes"
13474
21d1c967
GD
13475 AFMINSTALL=afminstall
13476 TOOLKIT=MICROWIN
13477 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13478
13479 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13480 fi
f6bcfd97 13481
21d1c967 13482 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13483 # If we find X, set shell vars x_includes and x_libraries to the
13484# paths, otherwise set no_x=yes.
13485# Uses ac_ vars as temps to allow command line to override cache and checks.
13486# --without-x overrides everything else, but does not touch the cache.
13487echo $ac_n "checking for X""... $ac_c" 1>&6
7bb2947d 13488echo "configure:13489: checking for X" >&5
d8356fa3 13489
21d1c967
GD
13490# Check whether --with-x or --without-x was given.
13491if test "${with_x+set}" = set; then
13492 withval="$with_x"
a0b9e27f
MB
13493 :
13494fi
2224580a 13495
21d1c967
GD
13496# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13497if test "x$with_x" = xno; then
13498 # The user explicitly disabled X.
13499 have_x=disabled
13500else
13501 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13502 # Both variables are already set.
13503 have_x=yes
13504 else
a0b9e27f
MB
13505if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13506 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13507else
13508 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13509ac_x_includes=NO ac_x_libraries=NO
13510rm -fr conftestdir
13511if mkdir conftestdir; then
13512 cd conftestdir
21d1c967 13513 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13514 cat > Imakefile <<'EOF'
21d1c967
GD
13515acfindx:
13516 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13517EOF
21d1c967
GD
13518 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13520 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13521 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13522 for ac_extension in a so sl; do
13523 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13524 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13525 ac_im_usrlibdir=$ac_im_libdir; break
13526 fi
13527 done
13528 # Screen out bogus values from the imake configuration. They are
13529 # bogus both because they are the default anyway, and because
13530 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13531 case "$ac_im_incroot" in
21d1c967 13532 /usr/include) ;;
a0b9e27f 13533 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13534 esac
a0b9e27f 13535 case "$ac_im_usrlibdir" in
21d1c967 13536 /usr/lib | /lib) ;;
a0b9e27f 13537 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13538 esac
13539 fi
13540 cd ..
a0b9e27f 13541 rm -fr conftestdir
21d1c967 13542fi
10f2d63a 13543
a0b9e27f
MB
13544if test "$ac_x_includes" = NO; then
13545 # Guess where to find include files, by looking for this one X11 .h file.
13546 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13547
21d1c967 13548 # First, try using that file with no special directory specified.
a0b9e27f 13549cat > conftest.$ac_ext <<EOF
7bb2947d 13550#line 13551 "configure"
21d1c967 13551#include "confdefs.h"
a0b9e27f
MB
13552#include <$x_direct_test_include>
13553EOF
13554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 13555{ (eval echo configure:13556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13557if test -z "$ac_err"; then
13558 rm -rf conftest*
21d1c967
GD
13559 # We can compile using X headers with no special include directory.
13560ac_x_includes=
90dd450c 13561else
a0b9e27f
MB
13562 echo "$ac_err" >&5
13563 echo "configure: failed program was:" >&5
90dd450c 13564 cat conftest.$ac_ext >&5
a0b9e27f
MB
13565 rm -rf conftest*
13566 # Look for the header file in a standard set of common directories.
13567# Check X11 before X11Rn because it is often a symlink to the current release.
13568 for ac_dir in \
13569 /usr/X11/include \
13570 /usr/X11R6/include \
13571 /usr/X11R5/include \
13572 /usr/X11R4/include \
13573 \
13574 /usr/include/X11 \
13575 /usr/include/X11R6 \
13576 /usr/include/X11R5 \
13577 /usr/include/X11R4 \
13578 \
13579 /usr/local/X11/include \
13580 /usr/local/X11R6/include \
13581 /usr/local/X11R5/include \
13582 /usr/local/X11R4/include \
13583 \
13584 /usr/local/include/X11 \
13585 /usr/local/include/X11R6 \
13586 /usr/local/include/X11R5 \
13587 /usr/local/include/X11R4 \
13588 \
13589 /usr/X386/include \
13590 /usr/x386/include \
13591 /usr/XFree86/include/X11 \
13592 \
13593 /usr/include \
13594 /usr/local/include \
13595 /usr/unsupported/include \
13596 /usr/athena/include \
13597 /usr/local/x11r5/include \
13598 /usr/lpp/Xamples/include \
13599 \
13600 /usr/openwin/include \
13601 /usr/openwin/share/include \
13602 ; \
13603 do
13604 if test -r "$ac_dir/$x_direct_test_include"; then
13605 ac_x_includes=$ac_dir
13606 break
13607 fi
13608 done
3a922bb4 13609fi
a0b9e27f
MB
13610rm -f conftest*
13611fi # $ac_x_includes = NO
10f2d63a 13612
a0b9e27f 13613if test "$ac_x_libraries" = NO; then
21d1c967 13614 # Check for the libraries.
a0b9e27f
MB
13615
13616 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13617 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13618
21d1c967
GD
13619 # See if we find them without any special options.
13620 # Don't add to $LIBS permanently.
a0b9e27f
MB
13621 ac_save_LIBS="$LIBS"
13622 LIBS="-l$x_direct_test_library $LIBS"
13623cat > conftest.$ac_ext <<EOF
7bb2947d 13624#line 13625 "configure"
3a922bb4 13625#include "confdefs.h"
a0b9e27f
MB
13626
13627int main() {
13628${x_direct_test_function}()
13629; return 0; }
13630EOF
7bb2947d 13631if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13632 rm -rf conftest*
13633 LIBS="$ac_save_LIBS"
21d1c967
GD
13634# We can link X programs with no special library path.
13635ac_x_libraries=
3a922bb4 13636else
a0b9e27f
MB
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13639 rm -rf conftest*
13640 LIBS="$ac_save_LIBS"
13641# First see if replacing the include by lib works.
13642# Check X11 before X11Rn because it is often a symlink to the current release.
13643for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13644 /usr/X11/lib \
13645 /usr/X11R6/lib \
13646 /usr/X11R5/lib \
13647 /usr/X11R4/lib \
13648 \
13649 /usr/lib/X11 \
13650 /usr/lib/X11R6 \
13651 /usr/lib/X11R5 \
13652 /usr/lib/X11R4 \
13653 \
13654 /usr/local/X11/lib \
13655 /usr/local/X11R6/lib \
13656 /usr/local/X11R5/lib \
13657 /usr/local/X11R4/lib \
13658 \
13659 /usr/local/lib/X11 \
13660 /usr/local/lib/X11R6 \
13661 /usr/local/lib/X11R5 \
13662 /usr/local/lib/X11R4 \
13663 \
13664 /usr/X386/lib \
13665 /usr/x386/lib \
13666 /usr/XFree86/lib/X11 \
13667 \
13668 /usr/lib \
13669 /usr/local/lib \
13670 /usr/unsupported/lib \
13671 /usr/athena/lib \
13672 /usr/local/x11r5/lib \
13673 /usr/lpp/Xamples/lib \
13674 /lib/usr/lib/X11 \
13675 \
13676 /usr/openwin/lib \
13677 /usr/openwin/share/lib \
13678 ; \
21d1c967
GD
13679do
13680 for ac_extension in a so sl; do
a0b9e27f 13681 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13682 ac_x_libraries=$ac_dir
13683 break 2
13684 fi
13685 done
13686done
3a922bb4 13687fi
a0b9e27f
MB
13688rm -f conftest*
13689fi # $ac_x_libraries = NO
90dd450c 13690
a0b9e27f 13691if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13692 # Didn't find X anywhere. Cache the known absence of X.
13693 ac_cv_have_x="have_x=no"
13694else
13695 # Record where we found X for the cache.
13696 ac_cv_have_x="have_x=yes \
13697 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13698fi
21d1c967
GD
13699fi
13700 fi
13701 eval "$ac_cv_have_x"
13702fi # $with_x != no
90dd450c 13703
21d1c967 13704if test "$have_x" != yes; then
a0b9e27f 13705 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13706 no_x=yes
13707else
13708 # If each of the values was on the command line, it overrides each guess.
13709 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13710 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13711 # Update the cache value to reflect the command line values.
13712 ac_cv_have_x="have_x=yes \
13713 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13714 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13715fi
90dd450c 13716
21d1c967 13717if test "$no_x" = yes; then
90dd450c 13718 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13719 cat >> confdefs.h <<\EOF
90dd450c 13720#define X_DISPLAY_MISSING 1
a0b9e27f 13721EOF
90dd450c
VZ
13722
13723 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13724else
13725 if test -n "$x_includes"; then
13726 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13727 fi
3a922bb4 13728
90dd450c
VZ
13729 # It would also be nice to do this for all -L options, not just this one.
13730 if test -n "$x_libraries"; then
13731 X_LIBS="$X_LIBS -L$x_libraries"
13732 # For Solaris; some versions of Sun CC require a space after -R and
13733 # others require no space. Words are not sufficient . . . .
a0b9e27f 13734 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13735 "SunOS 5"*)
a0b9e27f 13736 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7bb2947d 13737echo "configure:13738: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13738 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13739 cat > conftest.$ac_ext <<EOF
7bb2947d 13740#line 13741 "configure"
90dd450c
VZ
13741#include "confdefs.h"
13742
a0b9e27f 13743int main() {
90dd450c 13744
a0b9e27f
MB
13745; return 0; }
13746EOF
7bb2947d 13747if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13748 rm -rf conftest*
90dd450c 13749 ac_R_nospace=yes
3a922bb4 13750else
a0b9e27f
MB
13751 echo "configure: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13753 rm -rf conftest*
13754 ac_R_nospace=no
3a922bb4 13755fi
a0b9e27f 13756rm -f conftest*
90dd450c 13757 if test $ac_R_nospace = yes; then
a0b9e27f 13758 echo "$ac_t""no" 1>&6
90dd450c
VZ
13759 X_LIBS="$X_LIBS -R$x_libraries"
13760 else
13761 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13762 cat > conftest.$ac_ext <<EOF
7bb2947d 13763#line 13764 "configure"
90dd450c 13764#include "confdefs.h"
3a922bb4 13765
a0b9e27f 13766int main() {
6f754473 13767
a0b9e27f
MB
13768; return 0; }
13769EOF
7bb2947d 13770if { (eval echo configure:13771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13771 rm -rf conftest*
90dd450c
VZ
13772 ac_R_space=yes
13773else
a0b9e27f
MB
13774 echo "configure: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13776 rm -rf conftest*
13777 ac_R_space=no
90dd450c 13778fi
a0b9e27f 13779rm -f conftest*
90dd450c 13780 if test $ac_R_space = yes; then
a0b9e27f 13781 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13782 X_LIBS="$X_LIBS -R $x_libraries"
13783 else
a0b9e27f 13784 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13785 fi
13786 fi
a0b9e27f 13787 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13788 esac
13789 fi
13790
13791 # Check for system-dependent libraries X programs must link with.
13792 # Do this before checking for the system-independent R6 libraries
13793 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13794
90dd450c
VZ
13795 if test "$ISC" = yes; then
13796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13797 else
a0b9e27f
MB
13798 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13799 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13800 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13801 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7bb2947d 13802echo "configure:13803: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13803ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13806else
a0b9e27f 13807 ac_save_LIBS="$LIBS"
247f5006 13808LIBS="-ldnet $LIBS"
a0b9e27f 13809cat > conftest.$ac_ext <<EOF
7bb2947d 13810#line 13811 "configure"
247f5006 13811#include "confdefs.h"
247f5006 13812/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13813/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13814 builtin and then its argument prototype would still apply. */
13815char dnet_ntoa();
13816
13817int main() {
13818dnet_ntoa()
13819; return 0; }
13820EOF
7bb2947d 13821if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=yes"
13824else
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 rm -rf conftest*
13828 eval "ac_cv_lib_$ac_lib_var=no"
13829fi
13830rm -f conftest*
13831LIBS="$ac_save_LIBS"
13832
13833fi
13834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
90dd450c 13836 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13837else
13838 echo "$ac_t""no" 1>&6
3a922bb4
RL
13839fi
13840
90dd450c 13841 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13842 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7bb2947d 13843echo "configure:13844: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13844ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13846 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13847else
a0b9e27f 13848 ac_save_LIBS="$LIBS"
90dd450c 13849LIBS="-ldnet_stub $LIBS"
a0b9e27f 13850cat > conftest.$ac_ext <<EOF
7bb2947d 13851#line 13852 "configure"
90dd450c
VZ
13852#include "confdefs.h"
13853/* Override any gcc2 internal prototype to avoid an error. */
13854/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13855 builtin and then its argument prototype would still apply. */
13856char dnet_ntoa();
13857
13858int main() {
13859dnet_ntoa()
13860; return 0; }
13861EOF
7bb2947d 13862if { (eval echo configure:13863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13863 rm -rf conftest*
13864 eval "ac_cv_lib_$ac_lib_var=yes"
13865else
13866 echo "configure: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 rm -rf conftest*
13869 eval "ac_cv_lib_$ac_lib_var=no"
13870fi
13871rm -f conftest*
13872LIBS="$ac_save_LIBS"
13873
13874fi
13875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
90dd450c 13877 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13878else
13879 echo "$ac_t""no" 1>&6
3a922bb4
RL
13880fi
13881
90dd450c 13882 fi
978f1259 13883
90dd450c
VZ
13884 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13885 # to get the SysV transport functions.
a0b9e27f 13886 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13887 # needs -lnsl.
13888 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13889 # on Irix 5.2, according to dickey@clark.net.
13890 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7bb2947d 13891echo "configure:13892: checking for gethostbyname" >&5
a0b9e27f
MB
13892if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894else
13895 cat > conftest.$ac_ext <<EOF
7bb2947d 13896#line 13897 "configure"
90dd450c
VZ
13897#include "confdefs.h"
13898/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13899 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13900#include <assert.h>
13901/* Override any gcc2 internal prototype to avoid an error. */
13902/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13903 builtin and then its argument prototype would still apply. */
13904char gethostbyname();
13905
13906int main() {
13907
90dd450c
VZ
13908/* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13912choke me
13913#else
a0b9e27f 13914gethostbyname();
90dd450c 13915#endif
978f1259 13916
a0b9e27f
MB
13917; return 0; }
13918EOF
7bb2947d 13919if { (eval echo configure:13920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13920 rm -rf conftest*
13921 eval "ac_cv_func_gethostbyname=yes"
13922else
13923 echo "configure: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13925 rm -rf conftest*
13926 eval "ac_cv_func_gethostbyname=no"
13927fi
13928rm -f conftest*
13929fi
13930
13931if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13932 echo "$ac_t""yes" 1>&6
13933 :
13934else
13935 echo "$ac_t""no" 1>&6
13936fi
698dcdb6 13937
90dd450c 13938 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13939 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7bb2947d 13940echo "configure:13941: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13941ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13944else
a0b9e27f 13945 ac_save_LIBS="$LIBS"
90dd450c 13946LIBS="-lnsl $LIBS"
a0b9e27f 13947cat > conftest.$ac_ext <<EOF
7bb2947d 13948#line 13949 "configure"
90dd450c
VZ
13949#include "confdefs.h"
13950/* Override any gcc2 internal prototype to avoid an error. */
13951/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13952 builtin and then its argument prototype would still apply. */
13953char gethostbyname();
5c6fa7d2 13954
a0b9e27f
MB
13955int main() {
13956gethostbyname()
13957; return 0; }
13958EOF
7bb2947d 13959if { (eval echo configure:13960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13960 rm -rf conftest*
13961 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13962else
a0b9e27f
MB
13963 echo "configure: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 rm -rf conftest*
13966 eval "ac_cv_lib_$ac_lib_var=no"
13967fi
13968rm -f conftest*
13969LIBS="$ac_save_LIBS"
247f5006 13970
a0b9e27f
MB
13971fi
13972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13973 echo "$ac_t""yes" 1>&6
13974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13975else
13976 echo "$ac_t""no" 1>&6
90dd450c 13977fi
b12915c1 13978
90dd450c
VZ
13979 fi
13980
13981 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13982 # socket/setsockopt and other routines are undefined under SCO ODT
13983 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13984 # on later versions), says simon@lia.di.epfl.ch: it contains
13985 # gethostby* variants that don't use the nameserver (or something).
13986 # -lsocket must be given before -lnsl if both are needed.
13987 # We assume that if connect needs -lnsl, so does gethostbyname.
13988 echo $ac_n "checking for connect""... $ac_c" 1>&6
7bb2947d 13989echo "configure:13990: checking for connect" >&5
a0b9e27f
MB
13990if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13991 echo $ac_n "(cached) $ac_c" 1>&6
13992else
13993 cat > conftest.$ac_ext <<EOF
7bb2947d 13994#line 13995 "configure"
55e80573 13995#include "confdefs.h"
90dd450c 13996/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13997 which can conflict with char connect(); below. */
90dd450c
VZ
13998#include <assert.h>
13999/* Override any gcc2 internal prototype to avoid an error. */
14000/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14001 builtin and then its argument prototype would still apply. */
14002char connect();
14003
14004int main() {
14005
90dd450c
VZ
14006/* The GNU C library defines this for functions which it implements
14007 to always fail with ENOSYS. Some functions are actually named
14008 something starting with __ and the normal name is an alias. */
14009#if defined (__stub_connect) || defined (__stub___connect)
14010choke me
14011#else
a0b9e27f 14012connect();
90dd450c
VZ
14013#endif
14014
a0b9e27f
MB
14015; return 0; }
14016EOF
7bb2947d 14017if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14018 rm -rf conftest*
14019 eval "ac_cv_func_connect=yes"
14020else
14021 echo "configure: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 rm -rf conftest*
14024 eval "ac_cv_func_connect=no"
14025fi
14026rm -f conftest*
14027fi
14028
14029if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14030 echo "$ac_t""yes" 1>&6
14031 :
14032else
14033 echo "$ac_t""no" 1>&6
14034fi
55e80573 14035
90dd450c 14036 if test $ac_cv_func_connect = no; then
a0b9e27f 14037 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7bb2947d 14038echo "configure:14039: checking for connect in -lsocket" >&5
a0b9e27f
MB
14039ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14042else
a0b9e27f 14043 ac_save_LIBS="$LIBS"
90dd450c 14044LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14045cat > conftest.$ac_ext <<EOF
7bb2947d 14046#line 14047 "configure"
90dd450c
VZ
14047#include "confdefs.h"
14048/* Override any gcc2 internal prototype to avoid an error. */
14049/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14050 builtin and then its argument prototype would still apply. */
14051char connect();
14052
14053int main() {
14054connect()
14055; return 0; }
14056EOF
7bb2947d 14057if { (eval echo configure:14058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14058 rm -rf conftest*
14059 eval "ac_cv_lib_$ac_lib_var=yes"
14060else
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14063 rm -rf conftest*
14064 eval "ac_cv_lib_$ac_lib_var=no"
14065fi
14066rm -f conftest*
14067LIBS="$ac_save_LIBS"
14068
14069fi
14070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14071 echo "$ac_t""yes" 1>&6
90dd450c 14072 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14073else
14074 echo "$ac_t""no" 1>&6
90dd450c 14075fi
77e13408 14076
90dd450c 14077 fi
25d0687a 14078
a0b9e27f
MB
14079 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14080 echo $ac_n "checking for remove""... $ac_c" 1>&6
7bb2947d 14081echo "configure:14082: checking for remove" >&5
a0b9e27f
MB
14082if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14084else
a0b9e27f 14085 cat > conftest.$ac_ext <<EOF
7bb2947d 14086#line 14087 "configure"
90dd450c
VZ
14087#include "confdefs.h"
14088/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14089 which can conflict with char remove(); below. */
90dd450c
VZ
14090#include <assert.h>
14091/* Override any gcc2 internal prototype to avoid an error. */
14092/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14093 builtin and then its argument prototype would still apply. */
14094char remove();
14095
14096int main() {
14097
90dd450c
VZ
14098/* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101#if defined (__stub_remove) || defined (__stub___remove)
14102choke me
14103#else
a0b9e27f 14104remove();
90dd450c 14105#endif
55e80573 14106
a0b9e27f
MB
14107; return 0; }
14108EOF
7bb2947d 14109if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14110 rm -rf conftest*
14111 eval "ac_cv_func_remove=yes"
14112else
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 eval "ac_cv_func_remove=no"
14117fi
14118rm -f conftest*
14119fi
14120
14121if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14123 :
14124else
14125 echo "$ac_t""no" 1>&6
14126fi
10f2d63a 14127
90dd450c 14128 if test $ac_cv_func_remove = no; then
a0b9e27f 14129 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7bb2947d 14130echo "configure:14131: checking for remove in -lposix" >&5
a0b9e27f
MB
14131ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14134else
a0b9e27f 14135 ac_save_LIBS="$LIBS"
90dd450c 14136LIBS="-lposix $LIBS"
a0b9e27f 14137cat > conftest.$ac_ext <<EOF
7bb2947d 14138#line 14139 "configure"
90dd450c
VZ
14139#include "confdefs.h"
14140/* Override any gcc2 internal prototype to avoid an error. */
14141/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14142 builtin and then its argument prototype would still apply. */
14143char remove();
14144
14145int main() {
14146remove()
14147; return 0; }
14148EOF
7bb2947d 14149if { (eval echo configure:14150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14150 rm -rf conftest*
14151 eval "ac_cv_lib_$ac_lib_var=yes"
14152else
14153 echo "configure: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14155 rm -rf conftest*
14156 eval "ac_cv_lib_$ac_lib_var=no"
14157fi
14158rm -f conftest*
14159LIBS="$ac_save_LIBS"
14160
14161fi
14162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14163 echo "$ac_t""yes" 1>&6
90dd450c 14164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14165else
14166 echo "$ac_t""no" 1>&6
90dd450c 14167fi
f6bcfd97 14168
6fa882bd
RR
14169 fi
14170
90dd450c 14171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14172 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7bb2947d 14173echo "configure:14174: checking for shmat" >&5
a0b9e27f
MB
14174if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14176else
a0b9e27f 14177 cat > conftest.$ac_ext <<EOF
7bb2947d 14178#line 14179 "configure"
90dd450c
VZ
14179#include "confdefs.h"
14180/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14181 which can conflict with char shmat(); below. */
90dd450c
VZ
14182#include <assert.h>
14183/* Override any gcc2 internal prototype to avoid an error. */
14184/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14185 builtin and then its argument prototype would still apply. */
14186char shmat();
14187
14188int main() {
14189
90dd450c
VZ
14190/* The GNU C library defines this for functions which it implements
14191 to always fail with ENOSYS. Some functions are actually named
14192 something starting with __ and the normal name is an alias. */
14193#if defined (__stub_shmat) || defined (__stub___shmat)
14194choke me
14195#else
a0b9e27f 14196shmat();
90dd450c 14197#endif
10f2d63a 14198
a0b9e27f
MB
14199; return 0; }
14200EOF
7bb2947d 14201if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14202 rm -rf conftest*
14203 eval "ac_cv_func_shmat=yes"
14204else
14205 echo "configure: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14207 rm -rf conftest*
14208 eval "ac_cv_func_shmat=no"
14209fi
14210rm -f conftest*
14211fi
14212
14213if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14214 echo "$ac_t""yes" 1>&6
14215 :
14216else
14217 echo "$ac_t""no" 1>&6
14218fi
d08b457b 14219
90dd450c 14220 if test $ac_cv_func_shmat = no; then
a0b9e27f 14221 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7bb2947d 14222echo "configure:14223: checking for shmat in -lipc" >&5
a0b9e27f
MB
14223ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14224if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14225 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14226else
a0b9e27f 14227 ac_save_LIBS="$LIBS"
90dd450c 14228LIBS="-lipc $LIBS"
a0b9e27f 14229cat > conftest.$ac_ext <<EOF
7bb2947d 14230#line 14231 "configure"
90dd450c 14231#include "confdefs.h"
8284b0c5 14232/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14233/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14234 builtin and then its argument prototype would still apply. */
14235char shmat();
14236
14237int main() {
14238shmat()
14239; return 0; }
14240EOF
7bb2947d 14241if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14242 rm -rf conftest*
14243 eval "ac_cv_lib_$ac_lib_var=yes"
14244else
14245 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 rm -rf conftest*
14248 eval "ac_cv_lib_$ac_lib_var=no"
14249fi
14250rm -f conftest*
14251LIBS="$ac_save_LIBS"
14252
14253fi
14254if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14255 echo "$ac_t""yes" 1>&6
90dd450c 14256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14257else
14258 echo "$ac_t""no" 1>&6
d08b457b
GD
14259fi
14260
d558c907 14261 fi
90dd450c 14262 fi
3a922bb4 14263
90dd450c 14264 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14265 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14266 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14267 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14268 # check for ICE first), but we must link in the order -lSM -lICE or
14269 # we get undefined symbols. So assume we have SM if we have ICE.
14270 # These have to be linked with before -lX11, unlike the other
14271 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14272 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14273 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7bb2947d 14274echo "configure:14275: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14275ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14277 echo $ac_n "(cached) $ac_c" 1>&6
14278else
14279 ac_save_LIBS="$LIBS"
f09359cf 14280LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14281cat > conftest.$ac_ext <<EOF
7bb2947d 14282#line 14283 "configure"
9cfadba2 14283#include "confdefs.h"
90dd450c
VZ
14284/* Override any gcc2 internal prototype to avoid an error. */
14285/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14286 builtin and then its argument prototype would still apply. */
14287char IceConnectionNumber();
14288
14289int main() {
14290IceConnectionNumber()
14291; return 0; }
14292EOF
7bb2947d 14293if { (eval echo configure:14294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14294 rm -rf conftest*
14295 eval "ac_cv_lib_$ac_lib_var=yes"
14296else
14297 echo "configure: failed program was:" >&5
14298 cat conftest.$ac_ext >&5
14299 rm -rf conftest*
14300 eval "ac_cv_lib_$ac_lib_var=no"
14301fi
14302rm -f conftest*
14303LIBS="$ac_save_LIBS"
14304
14305fi
14306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14307 echo "$ac_t""yes" 1>&6
90dd450c 14308 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14309else
14310 echo "$ac_t""no" 1>&6
9cfadba2 14311fi
10f2d63a 14312
a0b9e27f 14313 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14314
14315fi
14316
8284b0c5 14317
90dd450c 14318 if test "$no_x" = "yes"; then
a0b9e27f 14319 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14320 fi
14321
14322 GUI_TK_LIBRARY="$X_LIBS"
14323 TOOLKIT_INCLUDE="$X_CFLAGS"
14324 AFMINSTALL=afminstall
14325 COMPILED_X_PROGRAM=0
14326
21d1c967 14327 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14328 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
7bb2947d 14329echo "configure:14330: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14330 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14331 echo "$ac_t""not found" 1>&6
14332 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14333 else
a0b9e27f
MB
14334 echo "$ac_t""$MICROWIN" 1>&6
14335 cat >> confdefs.h <<\EOF
21d1c967 14336#define wxUSE_NANOX 1
a0b9e27f 14337EOF
21d1c967 14338
90dd450c
VZ
14339 fi
14340 fi
14341
14342 xpm_link=
a0b9e27f 14343 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7bb2947d 14344echo "configure:14345: checking for Xpm library" >&5
a0b9e27f 14345
90dd450c 14346ac_find_libraries=
2b5f62a0 14347for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14348 do
14349 for ac_extension in a so sl dylib; do
14350 if test -f "$ac_dir/libXpm.$ac_extension"; then
14351 ac_find_libraries=$ac_dir
14352 break 2
14353 fi
14354 done
14355 done
14356
14357 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14358
90dd450c
VZ
14359 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14360 result=$?
14361 if test $result = 0; then
14362 ac_path_to_link=""
14363 else
14364 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14365 fi
90dd450c 14366
21d1c967
GD
14367 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14368 xpm_link=" -lXpm"
a0b9e27f 14369 cat >> confdefs.h <<\EOF
21d1c967 14370#define wxHAVE_LIB_XPM 1
a0b9e27f 14371EOF
90dd450c 14372
a0b9e27f 14373 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14374 else
a0b9e27f 14375 cat > conftest.$ac_ext <<EOF
7bb2947d 14376#line 14377 "configure"
21d1c967 14377#include "confdefs.h"
90dd450c 14378
21d1c967 14379 #include <X11/xpm.h>
a0b9e27f
MB
14380
14381int main() {
6f72b082 14382
21d1c967
GD
14383 int version;
14384 version = XpmLibraryVersion();
a0b9e27f
MB
14385
14386; return 0; }
14387EOF
7bb2947d 14388if { (eval echo configure:14389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14389 rm -rf conftest*
14390
21d1c967 14391 xpm_link=" -lXpm"
a0b9e27f 14392 cat >> confdefs.h <<\EOF
21d1c967 14393#define wxHAVE_LIB_XPM 1
a0b9e27f 14394EOF
90dd450c 14395
a0b9e27f 14396 echo "$ac_t""found in default search path" 1>&6
21d1c967 14397 COMPILED_X_PROGRAM=0
a0b9e27f 14398
21d1c967 14399else
a0b9e27f
MB
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 rm -rf conftest*
14403
14404 echo "$ac_t""no" 1>&6
14405 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14406
14407
6f72b082 14408fi
a0b9e27f 14409rm -f conftest*
21d1c967 14410 fi
90dd450c 14411
f7f78039 14412 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
7bb2947d 14413echo "configure:14414: checking for XShapeQueryExtension in -lXext" >&5
f7f78039
MB
14414ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14417else
14418 ac_save_LIBS="$LIBS"
14419LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14420cat > conftest.$ac_ext <<EOF
7bb2947d 14421#line 14422 "configure"
f7f78039
MB
14422#include "confdefs.h"
14423/* Override any gcc2 internal prototype to avoid an error. */
14424/* We use char because int might match the return type of a gcc2
14425 builtin and then its argument prototype would still apply. */
14426char XShapeQueryExtension();
14427
14428int main() {
14429XShapeQueryExtension()
14430; return 0; }
14431EOF
7bb2947d 14432if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f7f78039
MB
14433 rm -rf conftest*
14434 eval "ac_cv_lib_$ac_lib_var=yes"
14435else
14436 echo "configure: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14438 rm -rf conftest*
14439 eval "ac_cv_lib_$ac_lib_var=no"
14440fi
14441rm -f conftest*
14442LIBS="$ac_save_LIBS"
14443
14444fi
14445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14446 echo "$ac_t""yes" 1>&6
14447
14448 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14449 wxHAVE_XEXT_LIB=1
14450
14451else
14452 echo "$ac_t""no" 1>&6
14453fi
14454
14455
2b5f62a0
VZ
14456 if test "$wxUSE_UNICODE" = "yes"; then
14457
14458 succeeded=no
90dd450c 14459
2b5f62a0
VZ
14460 if test -z "$PKG_CONFIG"; then
14461 # Extract the first word of "pkg-config", so it can be a program name with args.
14462set dummy pkg-config; ac_word=$2
14463echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 14464echo "configure:14465: checking for $ac_word" >&5
2b5f62a0 14465if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14466 echo $ac_n "(cached) $ac_c" 1>&6
14467else
2b5f62a0
VZ
14468 case "$PKG_CONFIG" in
14469 /*)
14470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14471 ;;
14472 ?:/*)
14473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14474 ;;
14475 *)
14476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14477 ac_dummy="$PATH"
14478 for ac_dir in $ac_dummy; do
14479 test -z "$ac_dir" && ac_dir=.
14480 if test -f $ac_dir/$ac_word; then
14481 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14482 break
14483 fi
14484 done
14485 IFS="$ac_save_ifs"
14486 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14487 ;;
14488esac
14489fi
14490PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14491if test -n "$PKG_CONFIG"; then
14492 echo "$ac_t""$PKG_CONFIG" 1>&6
14493else
14494 echo "$ac_t""no" 1>&6
14495fi
14496
14497 fi
14498
14499 if test "$PKG_CONFIG" = "no" ; then
14500 echo "*** The pkg-config script could not be found. Make sure it is"
14501 echo "*** in your path, or set the PKG_CONFIG environment variable"
14502 echo "*** to the full path to pkg-config."
14503 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14504 else
14505 PKG_CONFIG_MIN_VERSION=0.9.0
14506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14507 echo $ac_n "checking for pangox""... $ac_c" 1>&6
7bb2947d 14508echo "configure:14509: checking for pangox" >&5
2b5f62a0
VZ
14509
14510 if $PKG_CONFIG --exists "pangox" ; then
14511 echo "$ac_t""yes" 1>&6
14512 succeeded=yes
14513
14514 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
7bb2947d 14515echo "configure:14516: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14516 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14517 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14518
14519 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
7bb2947d 14520echo "configure:14521: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14521 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14522 echo "$ac_t""$PANGOX_LIBS" 1>&6
14523 else
14524 PANGOX_CFLAGS=""
14525 PANGOX_LIBS=""
14526 ## If we have a custom action on failure, don't print errors, but
14527 ## do set a variable so people can do so.
14528 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14529
14530 fi
14531
14532
14533
14534 else
14535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14537 fi
14538 fi
14539
14540 if test $succeeded = yes; then
14541
14542 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14543 LIBS="$LIBS $PANGOX_LIBS"
14544
14545 else
14546
14547 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14548
14549
14550 fi
14551
14552
14553 succeeded=no
14554
14555 if test -z "$PKG_CONFIG"; then
14556 # Extract the first word of "pkg-config", so it can be a program name with args.
14557set dummy pkg-config; ac_word=$2
14558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 14559echo "configure:14560: checking for $ac_word" >&5
2b5f62a0
VZ
14560if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14562else
14563 case "$PKG_CONFIG" in
14564 /*)
14565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14566 ;;
14567 ?:/*)
14568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14569 ;;
14570 *)
14571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14572 ac_dummy="$PATH"
14573 for ac_dir in $ac_dummy; do
14574 test -z "$ac_dir" && ac_dir=.
14575 if test -f $ac_dir/$ac_word; then
14576 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14577 break
14578 fi
14579 done
14580 IFS="$ac_save_ifs"
14581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14582 ;;
14583esac
14584fi
14585PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14586if test -n "$PKG_CONFIG"; then
14587 echo "$ac_t""$PKG_CONFIG" 1>&6
14588else
14589 echo "$ac_t""no" 1>&6
14590fi
14591
14592 fi
14593
14594 if test "$PKG_CONFIG" = "no" ; then
14595 echo "*** The pkg-config script could not be found. Make sure it is"
14596 echo "*** in your path, or set the PKG_CONFIG environment variable"
14597 echo "*** to the full path to pkg-config."
14598 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14599 else
14600 PKG_CONFIG_MIN_VERSION=0.9.0
14601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14602 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
7bb2947d 14603echo "configure:14604: checking for pangoft2" >&5
2b5f62a0
VZ
14604
14605 if $PKG_CONFIG --exists "pangoft2" ; then
14606 echo "$ac_t""yes" 1>&6
14607 succeeded=yes
14608
14609 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
7bb2947d 14610echo "configure:14611: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14611 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14612 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14613
14614 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
7bb2947d 14615echo "configure:14616: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14616 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14617 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14618 else
14619 PANGOFT2_CFLAGS=""
14620 PANGOFT2_LIBS=""
14621 ## If we have a custom action on failure, don't print errors, but
14622 ## do set a variable so people can do so.
14623 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14624
14625 fi
14626
14627
14628
14629 else
14630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14632 fi
14633 fi
14634
14635 if test $succeeded = yes; then
14636
14637 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14638 LIBS="$LIBS $PANGOFT2_LIBS"
14639
14640 else
14641
14642 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14643 wxUSE_PRINTING_ARCHITECTURE="no"
14644
14645
14646 fi
14647
14648
14649 succeeded=no
14650
14651 if test -z "$PKG_CONFIG"; then
14652 # Extract the first word of "pkg-config", so it can be a program name with args.
14653set dummy pkg-config; ac_word=$2
14654echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 14655echo "configure:14656: checking for $ac_word" >&5
2b5f62a0
VZ
14656if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14657 echo $ac_n "(cached) $ac_c" 1>&6
14658else
14659 case "$PKG_CONFIG" in
14660 /*)
14661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14662 ;;
14663 ?:/*)
14664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14665 ;;
14666 *)
14667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14668 ac_dummy="$PATH"
14669 for ac_dir in $ac_dummy; do
14670 test -z "$ac_dir" && ac_dir=.
14671 if test -f $ac_dir/$ac_word; then
14672 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14673 break
14674 fi
14675 done
14676 IFS="$ac_save_ifs"
14677 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14678 ;;
14679esac
14680fi
14681PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14682if test -n "$PKG_CONFIG"; then
14683 echo "$ac_t""$PKG_CONFIG" 1>&6
14684else
14685 echo "$ac_t""no" 1>&6
14686fi
14687
14688 fi
14689
14690 if test "$PKG_CONFIG" = "no" ; then
14691 echo "*** The pkg-config script could not be found. Make sure it is"
14692 echo "*** in your path, or set the PKG_CONFIG environment variable"
14693 echo "*** to the full path to pkg-config."
14694 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14695 else
14696 PKG_CONFIG_MIN_VERSION=0.9.0
14697 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14698 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
7bb2947d 14699echo "configure:14700: checking for pangoxft" >&5
2b5f62a0
VZ
14700
14701 if $PKG_CONFIG --exists "pangoxft" ; then
14702 echo "$ac_t""yes" 1>&6
14703 succeeded=yes
14704
14705 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
7bb2947d 14706echo "configure:14707: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14707 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14708 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14709
14710 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
7bb2947d 14711echo "configure:14712: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14712 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14713 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14714 else
14715 PANGOXFT_CFLAGS=""
14716 PANGOXFT_LIBS=""
14717 ## If we have a custom action on failure, don't print errors, but
14718 ## do set a variable so people can do so.
14719 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14720
14721 fi
14722
14723
14724
14725 else
14726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14728 fi
14729 fi
14730
14731 if test $succeeded = yes; then
14732
14733 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14734 LIBS="$LIBS $PANGOXFT_LIBS"
14735
14736 else
14737
14738 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14739
14740
14741 fi
14742
14743 fi
14744
14745 wxUSE_UNIVERSAL="yes"
14746
14747 if test "$wxUSE_NANOX" = "yes"; then
14748 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14749 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"
14750 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14751 else
14752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14753 fi
14754
14755 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14756 TOOLKIT=X11
14757 GUIDIST=X11_DIST
14758 fi
14759
21d1c967
GD
14760 if test "$wxUSE_MOTIF" = 1; then
14761 if test "$no_x" = yes; then
14762 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14763 cat >> confdefs.h <<\EOF
21d1c967 14764#define X_DISPLAY_MISSING 1
a0b9e27f 14765EOF
21d1c967
GD
14766
14767 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14768else
14769 if test -n "$x_includes"; then
14770 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14771 fi
14772
21d1c967
GD
14773 # It would also be nice to do this for all -L options, not just this one.
14774 if test -n "$x_libraries"; then
14775 X_LIBS="$X_LIBS -L$x_libraries"
14776 # For Solaris; some versions of Sun CC require a space after -R and
14777 # others require no space. Words are not sufficient . . . .
a0b9e27f 14778 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14779 "SunOS 5"*)
a0b9e27f 14780 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7bb2947d 14781echo "configure:14782: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14782 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14783 cat > conftest.$ac_ext <<EOF
7bb2947d 14784#line 14785 "configure"
21d1c967
GD
14785#include "confdefs.h"
14786
a0b9e27f 14787int main() {
21d1c967 14788
a0b9e27f
MB
14789; return 0; }
14790EOF
7bb2947d 14791if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14792 rm -rf conftest*
21d1c967 14793 ac_R_nospace=yes
698dcdb6 14794else
a0b9e27f
MB
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 ac_R_nospace=no
10f2d63a 14799fi
a0b9e27f 14800rm -f conftest*
21d1c967 14801 if test $ac_R_nospace = yes; then
a0b9e27f 14802 echo "$ac_t""no" 1>&6
21d1c967
GD
14803 X_LIBS="$X_LIBS -R$x_libraries"
14804 else
14805 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14806 cat > conftest.$ac_ext <<EOF
7bb2947d 14807#line 14808 "configure"
21d1c967 14808#include "confdefs.h"
10f2d63a 14809
a0b9e27f 14810int main() {
f0c87536 14811
a0b9e27f
MB
14812; return 0; }
14813EOF
7bb2947d 14814if { (eval echo configure:14815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14815 rm -rf conftest*
21d1c967
GD
14816 ac_R_space=yes
14817else
a0b9e27f
MB
14818 echo "configure: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 rm -rf conftest*
14821 ac_R_space=no
21d1c967 14822fi
a0b9e27f 14823rm -f conftest*
21d1c967 14824 if test $ac_R_space = yes; then
a0b9e27f 14825 echo "$ac_t""yes" 1>&6
21d1c967
GD
14826 X_LIBS="$X_LIBS -R $x_libraries"
14827 else
a0b9e27f 14828 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14829 fi
14830 fi
a0b9e27f 14831 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14832 esac
14833 fi
90dd450c 14834
21d1c967
GD
14835 # Check for system-dependent libraries X programs must link with.
14836 # Do this before checking for the system-independent R6 libraries
14837 # (-lICE), since we may need -lsocket or whatever for X linking.
14838
14839 if test "$ISC" = yes; then
14840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14841 else
a0b9e27f
MB
14842 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14843 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14844 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14845 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7bb2947d 14846echo "configure:14847: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14847ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14849 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14850else
a0b9e27f 14851 ac_save_LIBS="$LIBS"
247f5006 14852LIBS="-ldnet $LIBS"
a0b9e27f 14853cat > conftest.$ac_ext <<EOF
7bb2947d 14854#line 14855 "configure"
247f5006 14855#include "confdefs.h"
247f5006 14856/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14857/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14858 builtin and then its argument prototype would still apply. */
14859char dnet_ntoa();
14860
14861int main() {
14862dnet_ntoa()
14863; return 0; }
14864EOF
7bb2947d 14865if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14866 rm -rf conftest*
14867 eval "ac_cv_lib_$ac_lib_var=yes"
14868else
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 rm -rf conftest*
14872 eval "ac_cv_lib_$ac_lib_var=no"
14873fi
14874rm -f conftest*
14875LIBS="$ac_save_LIBS"
14876
14877fi
14878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14879 echo "$ac_t""yes" 1>&6
21d1c967 14880 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14881else
14882 echo "$ac_t""no" 1>&6
0fb0dd83 14883fi
0fb0dd83 14884
21d1c967 14885 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14886 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7bb2947d 14887echo "configure:14888: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14888ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14890 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14891else
a0b9e27f 14892 ac_save_LIBS="$LIBS"
21d1c967 14893LIBS="-ldnet_stub $LIBS"
a0b9e27f 14894cat > conftest.$ac_ext <<EOF
7bb2947d 14895#line 14896 "configure"
21d1c967
GD
14896#include "confdefs.h"
14897/* Override any gcc2 internal prototype to avoid an error. */
14898/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14899 builtin and then its argument prototype would still apply. */
14900char dnet_ntoa();
14901
14902int main() {
14903dnet_ntoa()
14904; return 0; }
14905EOF
7bb2947d 14906if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14907 rm -rf conftest*
14908 eval "ac_cv_lib_$ac_lib_var=yes"
14909else
14910 echo "configure: failed program was:" >&5
14911 cat conftest.$ac_ext >&5
14912 rm -rf conftest*
14913 eval "ac_cv_lib_$ac_lib_var=no"
14914fi
14915rm -f conftest*
14916LIBS="$ac_save_LIBS"
14917
14918fi
14919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14920 echo "$ac_t""yes" 1>&6
21d1c967 14921 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14922else
14923 echo "$ac_t""no" 1>&6
90dd450c
VZ
14924fi
14925
21d1c967 14926 fi
90dd450c 14927
21d1c967
GD
14928 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14929 # to get the SysV transport functions.
a0b9e27f 14930 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14931 # needs -lnsl.
14932 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14933 # on Irix 5.2, according to dickey@clark.net.
14934 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7bb2947d 14935echo "configure:14936: checking for gethostbyname" >&5
a0b9e27f
MB
14936if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14937 echo $ac_n "(cached) $ac_c" 1>&6
14938else
14939 cat > conftest.$ac_ext <<EOF
7bb2947d 14940#line 14941 "configure"
21d1c967
GD
14941#include "confdefs.h"
14942/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14943 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14944#include <assert.h>
14945/* Override any gcc2 internal prototype to avoid an error. */
14946/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14947 builtin and then its argument prototype would still apply. */
14948char gethostbyname();
14949
14950int main() {
14951
21d1c967
GD
14952/* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14956choke me
14957#else
a0b9e27f 14958gethostbyname();
21d1c967 14959#endif
90dd450c 14960
a0b9e27f
MB
14961; return 0; }
14962EOF
7bb2947d 14963if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14964 rm -rf conftest*
14965 eval "ac_cv_func_gethostbyname=yes"
14966else
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 rm -rf conftest*
14970 eval "ac_cv_func_gethostbyname=no"
14971fi
14972rm -f conftest*
14973fi
14974
14975if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 :
14978else
14979 echo "$ac_t""no" 1>&6
14980fi
90dd450c 14981
21d1c967 14982 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14983 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7bb2947d 14984echo "configure:14985: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14985ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14988else
a0b9e27f 14989 ac_save_LIBS="$LIBS"
21d1c967 14990LIBS="-lnsl $LIBS"
a0b9e27f 14991cat > conftest.$ac_ext <<EOF
7bb2947d 14992#line 14993 "configure"
21d1c967
GD
14993#include "confdefs.h"
14994/* Override any gcc2 internal prototype to avoid an error. */
14995/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14996 builtin and then its argument prototype would still apply. */
14997char gethostbyname();
5c6fa7d2 14998
a0b9e27f
MB
14999int main() {
15000gethostbyname()
15001; return 0; }
15002EOF
7bb2947d 15003if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15004 rm -rf conftest*
15005 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 15006else
a0b9e27f
MB
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 rm -rf conftest*
15010 eval "ac_cv_lib_$ac_lib_var=no"
15011fi
15012rm -f conftest*
15013LIBS="$ac_save_LIBS"
247f5006 15014
a0b9e27f
MB
15015fi
15016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15017 echo "$ac_t""yes" 1>&6
15018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15019else
15020 echo "$ac_t""no" 1>&6
21d1c967 15021fi
90dd450c 15022
90dd450c
VZ
15023 fi
15024
21d1c967
GD
15025 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15026 # socket/setsockopt and other routines are undefined under SCO ODT
15027 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
15028 # on later versions), says simon@lia.di.epfl.ch: it contains
15029 # gethostby* variants that don't use the nameserver (or something).
15030 # -lsocket must be given before -lnsl if both are needed.
15031 # We assume that if connect needs -lnsl, so does gethostbyname.
15032 echo $ac_n "checking for connect""... $ac_c" 1>&6
7bb2947d 15033echo "configure:15034: checking for connect" >&5
a0b9e27f
MB
15034if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15035 echo $ac_n "(cached) $ac_c" 1>&6
15036else
15037 cat > conftest.$ac_ext <<EOF
7bb2947d 15038#line 15039 "configure"
21d1c967
GD
15039#include "confdefs.h"
15040/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15041 which can conflict with char connect(); below. */
21d1c967
GD
15042#include <assert.h>
15043/* Override any gcc2 internal prototype to avoid an error. */
15044/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15045 builtin and then its argument prototype would still apply. */
15046char connect();
15047
15048int main() {
15049
21d1c967
GD
15050/* The GNU C library defines this for functions which it implements
15051 to always fail with ENOSYS. Some functions are actually named
15052 something starting with __ and the normal name is an alias. */
15053#if defined (__stub_connect) || defined (__stub___connect)
15054choke me
15055#else
a0b9e27f 15056connect();
21d1c967 15057#endif
90dd450c 15058
a0b9e27f
MB
15059; return 0; }
15060EOF
7bb2947d 15061if { (eval echo configure:15062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15062 rm -rf conftest*
15063 eval "ac_cv_func_connect=yes"
15064else
15065 echo "configure: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 rm -rf conftest*
15068 eval "ac_cv_func_connect=no"
15069fi
15070rm -f conftest*
15071fi
15072
15073if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15074 echo "$ac_t""yes" 1>&6
15075 :
15076else
15077 echo "$ac_t""no" 1>&6
15078fi
1f8ae82f 15079
21d1c967 15080 if test $ac_cv_func_connect = no; then
a0b9e27f 15081 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7bb2947d 15082echo "configure:15083: checking for connect in -lsocket" >&5
a0b9e27f
MB
15083ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15084if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15085 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15086else
a0b9e27f 15087 ac_save_LIBS="$LIBS"
21d1c967 15088LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15089cat > conftest.$ac_ext <<EOF
7bb2947d 15090#line 15091 "configure"
0fbb762e 15091#include "confdefs.h"
21d1c967
GD
15092/* Override any gcc2 internal prototype to avoid an error. */
15093/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15094 builtin and then its argument prototype would still apply. */
15095char connect();
15096
15097int main() {
15098connect()
15099; return 0; }
15100EOF
7bb2947d 15101if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15102 rm -rf conftest*
15103 eval "ac_cv_lib_$ac_lib_var=yes"
15104else
15105 echo "configure: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15107 rm -rf conftest*
15108 eval "ac_cv_lib_$ac_lib_var=no"
15109fi
15110rm -f conftest*
15111LIBS="$ac_save_LIBS"
15112
15113fi
15114if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15115 echo "$ac_t""yes" 1>&6
21d1c967 15116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15117else
15118 echo "$ac_t""no" 1>&6
21d1c967 15119fi
90dd450c 15120
21d1c967 15121 fi
90dd450c 15122
a0b9e27f
MB
15123 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15124 echo $ac_n "checking for remove""... $ac_c" 1>&6
7bb2947d 15125echo "configure:15126: checking for remove" >&5
a0b9e27f
MB
15126if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15127 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15128else
a0b9e27f 15129 cat > conftest.$ac_ext <<EOF
7bb2947d 15130#line 15131 "configure"
21d1c967
GD
15131#include "confdefs.h"
15132/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15133 which can conflict with char remove(); below. */
21d1c967
GD
15134#include <assert.h>
15135/* Override any gcc2 internal prototype to avoid an error. */
15136/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15137 builtin and then its argument prototype would still apply. */
15138char remove();
15139
15140int main() {
15141
21d1c967
GD
15142/* The GNU C library defines this for functions which it implements
15143 to always fail with ENOSYS. Some functions are actually named
15144 something starting with __ and the normal name is an alias. */
15145#if defined (__stub_remove) || defined (__stub___remove)
15146choke me
15147#else
a0b9e27f 15148remove();
21d1c967 15149#endif
90dd450c 15150
a0b9e27f
MB
15151; return 0; }
15152EOF
7bb2947d 15153if { (eval echo configure:15154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15154 rm -rf conftest*
15155 eval "ac_cv_func_remove=yes"
15156else
15157 echo "configure: failed program was:" >&5
15158 cat conftest.$ac_ext >&5
15159 rm -rf conftest*
15160 eval "ac_cv_func_remove=no"
15161fi
15162rm -f conftest*
15163fi
15164
15165if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15166 echo "$ac_t""yes" 1>&6
15167 :
15168else
15169 echo "$ac_t""no" 1>&6
15170fi
90dd450c 15171
21d1c967 15172 if test $ac_cv_func_remove = no; then
a0b9e27f 15173 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7bb2947d 15174echo "configure:15175: checking for remove in -lposix" >&5
a0b9e27f
MB
15175ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15177 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15178else
a0b9e27f 15179 ac_save_LIBS="$LIBS"
21d1c967 15180LIBS="-lposix $LIBS"
a0b9e27f 15181cat > conftest.$ac_ext <<EOF
7bb2947d 15182#line 15183 "configure"
21d1c967
GD
15183#include "confdefs.h"
15184/* Override any gcc2 internal prototype to avoid an error. */
15185/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15186 builtin and then its argument prototype would still apply. */
15187char remove();
15188
15189int main() {
15190remove()
15191; return 0; }
15192EOF
7bb2947d 15193if { (eval echo configure:15194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15194 rm -rf conftest*
15195 eval "ac_cv_lib_$ac_lib_var=yes"
15196else
15197 echo "configure: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15199 rm -rf conftest*
15200 eval "ac_cv_lib_$ac_lib_var=no"
15201fi
15202rm -f conftest*
15203LIBS="$ac_save_LIBS"
15204
15205fi
15206if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15207 echo "$ac_t""yes" 1>&6
21d1c967 15208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15209else
15210 echo "$ac_t""no" 1>&6
21d1c967 15211fi
19bc6aad 15212
90dd450c 15213 fi
19bc6aad 15214
21d1c967 15215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7bb2947d 15217echo "configure:15218: checking for shmat" >&5
a0b9e27f
MB
15218if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15219 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15220else
a0b9e27f 15221 cat > conftest.$ac_ext <<EOF
7bb2947d 15222#line 15223 "configure"
21d1c967
GD
15223#include "confdefs.h"
15224/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15225 which can conflict with char shmat(); below. */
21d1c967
GD
15226#include <assert.h>
15227/* Override any gcc2 internal prototype to avoid an error. */
15228/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15229 builtin and then its argument prototype would still apply. */
15230char shmat();
15231
15232int main() {
15233
21d1c967
GD
15234/* The GNU C library defines this for functions which it implements
15235 to always fail with ENOSYS. Some functions are actually named
15236 something starting with __ and the normal name is an alias. */
15237#if defined (__stub_shmat) || defined (__stub___shmat)
15238choke me
15239#else
a0b9e27f 15240shmat();
21d1c967 15241#endif
90dd450c 15242
a0b9e27f
MB
15243; return 0; }
15244EOF
7bb2947d 15245if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15246 rm -rf conftest*
15247 eval "ac_cv_func_shmat=yes"
15248else
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15251 rm -rf conftest*
15252 eval "ac_cv_func_shmat=no"
15253fi
15254rm -f conftest*
15255fi
15256
15257if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15258 echo "$ac_t""yes" 1>&6
15259 :
15260else
15261 echo "$ac_t""no" 1>&6
15262fi
19bc6aad 15263
21d1c967 15264 if test $ac_cv_func_shmat = no; then
a0b9e27f 15265 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7bb2947d 15266echo "configure:15267: checking for shmat in -lipc" >&5
a0b9e27f
MB
15267ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15270else
a0b9e27f 15271 ac_save_LIBS="$LIBS"
5c6fa7d2 15272LIBS="-lipc $LIBS"
a0b9e27f 15273cat > conftest.$ac_ext <<EOF
7bb2947d 15274#line 15275 "configure"
5c6fa7d2 15275#include "confdefs.h"
5c6fa7d2 15276/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15277/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15278 builtin and then its argument prototype would still apply. */
15279char shmat();
15280
15281int main() {
15282shmat()
15283; return 0; }
15284EOF
7bb2947d 15285if { (eval echo configure:15286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15286 rm -rf conftest*
15287 eval "ac_cv_lib_$ac_lib_var=yes"
15288else
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 rm -rf conftest*
15292 eval "ac_cv_lib_$ac_lib_var=no"
15293fi
15294rm -f conftest*
15295LIBS="$ac_save_LIBS"
15296
15297fi
15298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15299 echo "$ac_t""yes" 1>&6
21d1c967 15300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15301else
15302 echo "$ac_t""no" 1>&6
9f8148b1 15303fi
90dd450c 15304
90dd450c 15305 fi
21d1c967 15306 fi
10f2d63a 15307
21d1c967 15308 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15309 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15310 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15311 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15312 # check for ICE first), but we must link in the order -lSM -lICE or
15313 # we get undefined symbols. So assume we have SM if we have ICE.
15314 # These have to be linked with before -lX11, unlike the other
15315 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15316 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15317 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7bb2947d 15318echo "configure:15319: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15319ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15321 echo $ac_n "(cached) $ac_c" 1>&6
15322else
15323 ac_save_LIBS="$LIBS"
f09359cf 15324LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15325cat > conftest.$ac_ext <<EOF
7bb2947d 15326#line 15327 "configure"
29fd3c0c 15327#include "confdefs.h"
21d1c967
GD
15328/* Override any gcc2 internal prototype to avoid an error. */
15329/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15330 builtin and then its argument prototype would still apply. */
15331char IceConnectionNumber();
15332
15333int main() {
15334IceConnectionNumber()
15335; return 0; }
15336EOF
7bb2947d 15337if { (eval echo configure:15338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15338 rm -rf conftest*
15339 eval "ac_cv_lib_$ac_lib_var=yes"
15340else
15341 echo "configure: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15343 rm -rf conftest*
15344 eval "ac_cv_lib_$ac_lib_var=no"
15345fi
15346rm -f conftest*
15347LIBS="$ac_save_LIBS"
15348
15349fi
15350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15351 echo "$ac_t""yes" 1>&6
21d1c967 15352 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15353else
15354 echo "$ac_t""no" 1>&6
29fd3c0c 15355fi
21d1c967 15356
a0b9e27f 15357 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15358
10f2d63a
VZ
15359fi
15360
8284b0c5 15361
21d1c967 15362 if test "$no_x" = "yes"; then
a0b9e27f 15363 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15364 fi
15365
2b5f62a0
VZ
15366 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15367 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15368 AFMINSTALL=afminstall
15369 COMPILED_X_PROGRAM=0
15370
a0b9e27f 15371 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7bb2947d 15372echo "configure:15373: checking for Motif/Lesstif headers" >&5
a0b9e27f 15373
21d1c967 15374ac_find_includes=
2b5f62a0 15375for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15376 do
15377 if test -f "$ac_dir/Xm/Xm.h"; then
15378 ac_find_includes=$ac_dir
15379 break
15380 fi
15381 done
15382
15383 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15384 echo "$ac_t""found in $ac_find_includes" 1>&6
15385
2b5f62a0 15386 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15387 ac_path_to_include=""
15388 else
2b5f62a0
VZ
15389 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15390 result=$?
15391 if test $result = 0; then
15392 ac_path_to_include=""
15393 else
15394 ac_path_to_include=" -I$ac_find_includes"
15395 fi
dd0e4a90
VZ
15396 fi
15397
15398 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15399 else
a0b9e27f 15400 cat > conftest.$ac_ext <<EOF
7bb2947d 15401#line 15402 "configure"
10f2d63a 15402#include "confdefs.h"
21d1c967
GD
15403
15404 #include <Xm/Xm.h>
a0b9e27f
MB
15405
15406int main() {
21d1c967
GD
15407
15408 int version;
15409 version = xmUseVersion;
a0b9e27f
MB
15410
15411; return 0; }
15412EOF
7bb2947d 15413if { (eval echo configure:15414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15414 rm -rf conftest*
15415
15416 echo "$ac_t""found in default search path" 1>&6
21d1c967 15417 COMPILED_X_PROGRAM=1
a0b9e27f 15418
10f2d63a 15419else
a0b9e27f
MB
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15422 rm -rf conftest*
15423
15424 echo "$ac_t""no" 1>&6
15425 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15426
15427
10f2d63a 15428fi
a0b9e27f 15429rm -f conftest*
21d1c967 15430 fi
10f2d63a 15431
21d1c967 15432 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15433 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7bb2947d 15434echo "configure:15435: checking for Motif/Lesstif library" >&5
a0b9e27f 15435
21d1c967 15436ac_find_libraries=
2b5f62a0 15437for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15438 do
15439 for ac_extension in a so sl dylib; do
15440 if test -f "$ac_dir/libXm.$ac_extension"; then
15441 ac_find_libraries=$ac_dir
15442 break 2
15443 fi
15444 done
15445 done
15446
15447 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15448 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15449
a0b9e27f 15450
21d1c967
GD
15451 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15452 result=$?
15453 if test $result = 0; then
15454 ac_path_to_link=""
15455 else
15456 ac_path_to_link=" -L$ac_find_libraries"
15457 fi
15458
21d1c967 15459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15460 else
dd0e4a90
VZ
15461 save_CFLAGS=$CFLAGS
15462 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15463
a0b9e27f 15464 cat > conftest.$ac_ext <<EOF
7bb2947d 15465#line 15466 "configure"
d836ee96 15466#include "confdefs.h"
21d1c967
GD
15467
15468 #include <Xm/Xm.h>
a0b9e27f
MB
15469
15470int main() {
21d1c967
GD
15471
15472 int version;
15473 version = xmUseVersion;
a0b9e27f
MB
15474
15475; return 0; }
15476EOF
7bb2947d 15477if { (eval echo configure:15478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15478 rm -rf conftest*
15479
15480 echo "$ac_t""found in default search path" 1>&6
21d1c967 15481 COMPILED_X_PROGRAM=1
a0b9e27f 15482
d836ee96 15483else
a0b9e27f
MB
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487
15488 echo "$ac_t""no" 1>&6
15489 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15490
15491
d836ee96 15492fi
a0b9e27f 15493rm -f conftest*
dd0e4a90
VZ
15494
15495 CFLAGS=$save_CFLAGS
21d1c967
GD
15496 fi
15497 fi
15498
15499 xpm_link=
a0b9e27f 15500 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7bb2947d 15501echo "configure:15502: checking for Xpm library" >&5
a0b9e27f 15502
21d1c967 15503ac_find_libraries=
2b5f62a0 15504for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15505 do
15506 for ac_extension in a so sl dylib; do
15507 if test -f "$ac_dir/libXpm.$ac_extension"; then
15508 ac_find_libraries=$ac_dir
15509 break 2
15510 fi
15511 done
15512 done
15513
15514 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15515
21d1c967
GD
15516 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15517 result=$?
15518 if test $result = 0; then
15519 ac_path_to_link=""
15520 else
15521 ac_path_to_link=" -L$ac_find_libraries"
15522 fi
15523
15524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15525
21d1c967 15526 xpm_link=" -lXpm"
a0b9e27f 15527 cat >> confdefs.h <<\EOF
21d1c967 15528#define wxHAVE_LIB_XPM 1
a0b9e27f 15529EOF
90dd450c 15530
a0b9e27f 15531 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15532 else
dd0e4a90
VZ
15533 save_CFLAGS=$CFLAGS
15534 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15535
a0b9e27f 15536 cat > conftest.$ac_ext <<EOF
7bb2947d 15537#line 15538 "configure"
d836ee96 15538#include "confdefs.h"
21d1c967
GD
15539
15540 #include <X11/xpm.h>
a0b9e27f
MB
15541
15542int main() {
21d1c967
GD
15543
15544 int version;
15545 version = XpmLibraryVersion();
a0b9e27f
MB
15546
15547; return 0; }
15548EOF
7bb2947d 15549if { (eval echo configure:15550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15550 rm -rf conftest*
15551
21d1c967 15552 xpm_link=" -lXpm"
a0b9e27f 15553 cat >> confdefs.h <<\EOF
21d1c967 15554#define wxHAVE_LIB_XPM 1
a0b9e27f 15555EOF
21d1c967 15556
a0b9e27f 15557 echo "$ac_t""found in default search path" 1>&6
21d1c967 15558 COMPILED_X_PROGRAM=0
a0b9e27f 15559
d836ee96 15560else
a0b9e27f
MB
15561 echo "configure: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 rm -rf conftest*
15564
15565 echo "$ac_t""no" 1>&6
15566 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15567
15568
d836ee96 15569fi
a0b9e27f 15570rm -f conftest*
dd0e4a90
VZ
15571
15572 CFLAGS=$save_CFLAGS
21d1c967
GD
15573 fi
15574
a0b9e27f 15575 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
7bb2947d 15576echo "configure:15577: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15577 libp_link=""
15578 libsm_ice_link=""
15579 libs_found=0
15580 for libp in "" " -lXp"; do
15581 if test "$libs_found" = "0"; then
15582 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15583 if test "$libs_found" = "0"; then
6a30f1c8
MB
15584 save_LIBS="$LIBS"
15585 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15586 save_CFLAGS=$CFLAGS
15587 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15588
a0b9e27f 15589 cat > conftest.$ac_ext <<EOF
7bb2947d 15590#line 15591 "configure"
6a30f1c8 15591#include "confdefs.h"
17234b26 15592
6a30f1c8
MB
15593 #include <Xm/Xm.h>
15594 #include <Xm/List.h>
a0b9e27f
MB
15595
15596int main() {
6a30f1c8
MB
15597
15598 XmString string = NULL;
15599 Widget w = NULL;
15600 int position = 0;
15601 XmListAddItem(w, string, position);
a0b9e27f
MB
15602
15603; return 0; }
15604EOF
7bb2947d 15605if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15606 rm -rf conftest*
15607
6a30f1c8
MB
15608 libp_link="$libp"
15609 libsm_ice_link="$libsm_ice"
a0b9e27f 15610 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15611 libs_found=1
a0b9e27f 15612
6a30f1c8 15613else
a0b9e27f
MB
15614 echo "configure: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 rm -rf conftest*
15617
15618
6a30f1c8 15619fi
a0b9e27f 15620rm -f conftest*
dd0e4a90 15621
6a30f1c8 15622 LIBS="$save_LIBS"
dd0e4a90 15623 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15624 fi
15625 done
15626 fi
15627 done
15628
15629 if test "$libs_found" = "0"; then
a0b9e27f
MB
15630 echo "$ac_t""can't find the right libraries" 1>&6
15631 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15632 fi
15633
da494b40
MB
15634 save_CFLAGS=$CFLAGS
15635 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15636 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
7bb2947d 15637echo "configure:15638: checking for Motif 2" >&5
da494b40 15638 cat > conftest.$ac_ext <<EOF
7bb2947d 15639#line 15640 "configure"
da494b40
MB
15640#include "confdefs.h"
15641
15642 #include <Xm/Xm.h>
15643
15644int main() {
15645
15646 #if XmVersion < 2000
15647 #error "Not Motif 2"
15648 #endif
15649
15650; return 0; }
15651EOF
7bb2947d 15652if { (eval echo configure:15653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15653 rm -rf conftest*
15654
15655 cat >> confdefs.h <<\EOF
15656#define __WXMOTIF20__ 1
15657EOF
15658
15659 echo "$ac_t""found" 1>&6
15660
15661else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
15665
15666 cat >> confdefs.h <<\EOF
15667#define __WXMOTIF20__ 0
15668EOF
15669
15670 echo "$ac_t""not found" 1>&6
15671
15672fi
15673rm -f conftest*
15674 CFLAGS=$save_CFLAGS
15675
6a30f1c8 15676 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15677 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15678 TOOLKIT=MOTIF
15679 GUIDIST=MOTIF_DIST
f7f78039
MB
15680 wxHAVE_XEXT_LIB=1
15681 fi
15682
15683 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15684 test "$wxHAVE_XEXT_LIB" = 1; then
15685 save_CFLAGS="$CFLAGS"
15686 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15687
15688 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7bb2947d 15689echo "configure:15690: checking for X11/extensions/shape.h" >&5
f7f78039 15690 cat > conftest.$ac_ext <<EOF
7bb2947d 15691#line 15692 "configure"
f7f78039
MB
15692#include "confdefs.h"
15693
15694 #include <X11/Xlib.h>
15695 #include <X11/extensions/shape.h>
15696
15697int main() {
15698
15699 int dummy1, dummy2;
15700 XShapeQueryExtension((Display*)NULL,
15701 (int*)NULL, (int*)NULL);
15702
15703; return 0; }
15704EOF
7bb2947d 15705if { (eval echo configure:15706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f7f78039
MB
15706 rm -rf conftest*
15707
15708 cat >> confdefs.h <<\EOF
15709#define HAVE_XSHAPE 1
15710EOF
15711
15712 echo "$ac_t""found" 1>&6
15713
15714else
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15717 rm -rf conftest*
15718
15719 echo "$ac_t""not found" 1>&6
15720
15721fi
15722rm -f conftest*
15723 CFLAGS="$save_CFLAGS"
21d1c967
GD
15724 fi
15725
15726 if test "$wxUSE_MAC" = 1; then
0c98a14e 15727 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15728
0c98a14e 15729 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15730 TOOLKIT=MAC
15731 GUIDIST=MACX_DIST
15732 fi
15733
ac0c4cc3
DE
15734 if test "$wxUSE_COCOA" = 1; then
15735 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15736 TOOLKIT=COCOA
15737 GUIDIST=COCOA_DIST
15738 fi
15739
21d1c967
GD
15740 if test "$wxUSE_PM" = 1; then
15741 TOOLKIT=PM
15742 GUIDIST=GTK_DIST
2b5f62a0 15743 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15744 wxUSE_THREADS="no"
21d1c967
GD
15745 fi
15746
15747 if test "$TOOLKIT" = "PM" ; then
15748 TOOLKIT_DIR="os2"
15749 else
15750 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15751 fi
15752
15753 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15754
15755 if test "$wxUSE_UNIVERSAL" = "yes"; then
15756 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15757
15758 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15759 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15760
15761 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15762 if test "$wxUSE_X11" = 1; then
15763 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15764 else
15765 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15766 fi
15767 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15768 WIDGET_SET=univ
15769 else
15770 ALL_OBJECTS="\$(GUIOBJS)"
15771 ALL_SOURCES="\$(ALL_SOURCES)"
15772 ALL_HEADERS="\$(ALL_HEADERS)"
15773 fi
15774
15775 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15776
15777 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15778 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15779 fi
15780
15781 if test "$wxUSE_HTML" = "yes"; then
15782 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15783 fi
15784
15785 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15786 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15787 fi
15788 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15789 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15790 fi
15791 if test "$wxUSE_LIBPNG" = "builtin" ; then
15792 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15793 fi
15794
15795 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15796 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15797else
21d1c967
GD
15798 USE_GUI=0
15799
15800 TOOLKIT_DIR="base"
15801
15802 if test "$USE_WIN32" = 1 ; then
15803 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15804 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15805
15806 TOOLKIT="MSW"
15807 else
15808 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15809 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15810 fi
15811
15812 ALL_SOURCES="\$(ALL_SOURCES)"
15813 ALL_HEADERS="\$(ALL_HEADERS)"
15814
15815 PORT_FILES="\${top_srcdir}/src/files.lst"
15816
15817 GUIDIST="BASE_DIST"
15818 DISTDIR="wxBase"
d836ee96
VZ
15819fi
15820
8284b0c5 15821
21d1c967
GD
15822if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15823 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15824fi
21d1c967
GD
15825
15826if test "$wxUSE_REGEX" = "builtin" ; then
15827 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15828fi
21d1c967
GD
15829if test "$wxUSE_ZLIB" = "builtin" ; then
15830 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15831fi
15832
8284b0c5 15833
21d1c967 15834if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 15835 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
15836 OPENGL_LIBS="-framework OpenGL -framework AGL"
15837 elif test "$wxUSE_MSW" = 1; then
15838 OPENGL_LIBS="-lopengl32 -lglu32"
15839 else
a0b9e27f
MB
15840 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15841echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7bb2947d 15842echo "configure:15843: checking for GL/gl.h" >&5
a0b9e27f
MB
15843if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15844 echo $ac_n "(cached) $ac_c" 1>&6
15845else
15846 cat > conftest.$ac_ext <<EOF
7bb2947d 15847#line 15848 "configure"
10f2d63a 15848#include "confdefs.h"
21d1c967 15849#include <GL/gl.h>
a0b9e27f
MB
15850EOF
15851ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 15852{ (eval echo configure:15853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15853ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15854if test -z "$ac_err"; then
15855 rm -rf conftest*
15856 eval "ac_cv_header_$ac_safe=yes"
15857else
15858 echo "$ac_err" >&5
15859 echo "configure: failed program was:" >&5
698dcdb6 15860 cat conftest.$ac_ext >&5
a0b9e27f
MB
15861 rm -rf conftest*
15862 eval "ac_cv_header_$ac_safe=no"
703e0a69 15863fi
a0b9e27f 15864rm -f conftest*
698dcdb6 15865fi
a0b9e27f
MB
15866if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15868
89e3b3e4
VZ
15869 found_gl=0
15870
a0b9e27f 15871 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
7bb2947d 15872echo "configure:15873: checking for -lGL" >&5
a0b9e27f 15873
21d1c967 15874ac_find_libraries=
2b5f62a0 15875for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15876 do
15877 for ac_extension in a so sl dylib; do
15878 if test -f "$ac_dir/libGL.$ac_extension"; then
15879 ac_find_libraries=$ac_dir
15880 break 2
15881 fi
15882 done
15883 done
15884
15885 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15886
21d1c967
GD
15887 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15888 result=$?
15889 if test $result = 0; then
15890 ac_path_to_link=""
15891 else
15892 ac_path_to_link=" -L$ac_find_libraries"
15893 fi
15894
89e3b3e4
VZ
15895 if test "$ac_path_to_link" != " -L/usr/lib" ; then
15896 LDFLAGS_GL="$ac_path_to_link"
21d1c967 15897 fi
89e3b3e4
VZ
15898
15899
15900ac_find_libraries=
15901for ac_dir in $SEARCH_LIB /usr/lib;
15902 do
15903 for ac_extension in a so sl dylib; do
15904 if test -f "$ac_dir/libGLU.$ac_extension"; then
15905 ac_find_libraries=$ac_dir
15906 break 2
15907 fi
15908 done
15909 done
15910
15911 if test "$ac_find_libraries" != "" ; then
15912
15913 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15914 result=$?
15915 if test $result = 0; then
15916 ac_path_to_link=""
15917 else
15918 ac_path_to_link=" -L$ac_find_libraries"
15919 fi
15920
15921 if test "$ac_path_to_link" != " -L/usr/lib" -a \
15922 "$ac_path_to_link" != "$LDFLAGS_GL"; then
15923 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
15924 fi
15925
15926 found_gl=1
15927 OPENGL_LIBS="-lGL -lGLU"
15928 echo "$ac_t""yes" 1>&6
15929 fi
15930 fi
15931
15932 if "$found_gl" != 1; then
a0b9e27f
MB
15933 echo "$ac_t""no" 1>&6
15934 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
7bb2947d 15935echo "configure:15936: checking for -lMesaGL" >&5
a0b9e27f 15936
21d1c967 15937ac_find_libraries=
2b5f62a0 15938for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15939 do
15940 for ac_extension in a so sl dylib; do
15941 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15942 ac_find_libraries=$ac_dir
15943 break 2
15944 fi
15945 done
15946 done
15947
15948 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15949
21d1c967
GD
15950 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15951 result=$?
15952 if test $result = 0; then
15953 ac_path_to_link=""
15954 else
15955 ac_path_to_link=" -L$ac_find_libraries"
15956 fi
15957
15958 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15959 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15960 echo "$ac_t""yes" 1>&6
21d1c967 15961 else
a0b9e27f 15962 echo "$ac_t""no" 1>&6
21d1c967
GD
15963 fi
15964 fi
a0b9e27f
MB
15965
15966else
15967 echo "$ac_t""no" 1>&6
5c6fa7d2 15968fi
52127426 15969
8284b0c5 15970
21d1c967 15971 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15972 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15973 fi
15974 fi
90dd450c 15975
21d1c967 15976 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15977 cat >> confdefs.h <<\EOF
21d1c967 15978#define wxUSE_OPENGL 1
a0b9e27f 15979EOF
21d1c967 15980
a0b9e27f 15981 cat >> confdefs.h <<\EOF
21d1c967 15982#define wxUSE_GLCANVAS 1
a0b9e27f 15983EOF
21d1c967
GD
15984
15985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15986 fi
10f2d63a 15987fi
21d1c967
GD
15988
15989if test -z "$TOOLKIT_VPATH" ; then
15990 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15991fi
21d1c967
GD
15992
15993if test -n "$TOOLKIT" ; then
15994 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15995fi
15996
15997lib_unicode_suffix=
15998if test "$wxUSE_UNICODE" = "yes"; then
15999 lib_unicode_suffix=u
90dd450c 16000fi
698dcdb6 16001
21d1c967
GD
16002lib_debug_suffix=
16003if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16004 lib_debug_suffix=d
16005fi
698dcdb6 16006
2b5f62a0
VZ
16007WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16008
16009TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16010TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
16011
16012if test "$cross_compiling" = "yes"; then
16013 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16014 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16015fi
16016
16017WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16018WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 16019WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
16020
16021WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16022WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16023
16024WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16025WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16026WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16027WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16028
16029case "${host}" in
16030 *-*-cygwin* | *-*-mingw32* )
16031
a0b9e27f
MB
16032
16033
17234b26 16034 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
16035 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16036 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16037 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16038 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16039 else
16040 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16041 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16042 fi
16043 ;;
16044
16045 *-*-darwin* )
1542ea39 16046
05159a27
GD
16047 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16048 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16049
16050 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16051 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16052 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16053 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16054
21d1c967 16055 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16056 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16057 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16058 fi
16059 ;;
16060esac
16061
16062WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16063WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16064
16065WXCONFIG_LIBS="-l${WX_LIBRARY}"
16066WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16067
16068if test "$wxUSE_OPENGL" = "yes"; then
16069 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16070 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16071fi
16072
8284b0c5
MB
16073
16074
21d1c967
GD
16075if test "$wxUSE_SHARED" = "yes"; then
16076 case "${host}" in
16077 *-pc-os2_emx | *-pc-os2-emx | \
16078 *-pc-msdosdjgpp )
16079 wxUSE_SHARED=no
a0b9e27f 16080 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16081 ;;
16082 esac
16083fi
16084
2b5f62a0
VZ
16085if test "$wxUSE_SHARED" = "yes"; then
16086
16087 if test "$wxUSE_OPENGL" = "yes"; then
16088 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16089 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16090 else
16091 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16092 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16093 fi
16094
16095 if test "$GCC" = "yes"; then
16096 PIC_FLAG="-fPIC"
16097 fi
16098
16099
16100
16101 found_versioning=no
16102
b4eecb7e 16103
2b5f62a0
VZ
16104 if test $found_versioning = no ; then
16105 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
7bb2947d 16106echo "configure:16107: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16107if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16108 echo $ac_n "(cached) $ac_c" 1>&6
16109else
16110
16111 echo "VER_1 { *; };" >conftest.sym
16112 echo "int main() { return 0; }" >conftest.cpp
16113
16114 if { ac_try='
16115 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
7bb2947d 16116 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16117 if test -s conftest.stderr ; then
16118 wx_cv_version_script=no
16119 else
16120 wx_cv_version_script=yes
16121 fi
16122 else
16123 wx_cv_version_script=no
16124 fi
16125 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16126
16127fi
16128
16129echo "$ac_t""$wx_cv_version_script" 1>&6
16130 if test $wx_cv_version_script = yes ; then
16131 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16132 fi
16133 fi
21d1c967 16134
21d1c967
GD
16135
16136 SHARED_LD="${CXX} -shared -o"
16137
16138 case "${host}" in
16139 *-hp-hpux* )
ad2622f1 16140 if test "$GCC" = "yes"; then
85d5e282 16141 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16142 else
16143 LDFLAGS="$LDFLAGS -L/usr/lib"
16144
16145 SHARED_LD="${CXX} -b -o"
16146 PIC_FLAG="+Z"
16147 fi
16148
16149 if test "$wxUSE_OPENGL" = "yes"; then
16150 WX_ALL_INSTALLED="preinstall_gl"
16151 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16152 else
16153 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16154 fi
16155 ;;
16156
16157 *-*-linux* )
16158 if test "$GCC" != "yes"; then
a0b9e27f 16159 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
7bb2947d 16160echo "configure:16161: checking for Intel compiler" >&5
a0b9e27f
MB
16161if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163else
16164
16165 cat > conftest.$ac_ext <<EOF
7bb2947d 16166#line 16167 "configure"
698dcdb6 16167#include "confdefs.h"
90dd450c 16168
a0b9e27f 16169int main() {
90dd450c 16170
21d1c967
GD
16171 #ifndef __INTEL_COMPILER
16172 #error Not icc
16173 #endif
a0b9e27f
MB
16174
16175; return 0; }
16176EOF
7bb2947d 16177if { (eval echo configure:16178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16178 rm -rf conftest*
21d1c967 16179 wx_cv_prog_icc=yes
6232543b 16180else
a0b9e27f
MB
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 rm -rf conftest*
16184 wx_cv_prog_icc=no
16185
5c6fa7d2 16186fi
a0b9e27f
MB
16187rm -f conftest*
16188
247f5006 16189fi
a0b9e27f
MB
16190
16191echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16192 if test "$wx_cv_prog_icc" = "yes"; then
16193 PIC_FLAG="-KPIC"
16194 fi
16195 fi
16196
16197 if test "$wxUSE_SONAME" = "yes" ; then
16198 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16199 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16200 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16201 fi
16202 ;;
16203
16204 *-*-solaris2* )
16205 if test "$GCC" = yes ; then
16206 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16207 else
16208 SHARED_LD="${CXX} -G -o"
16209 PIC_FLAG="-KPIC"
16210 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16211 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16212 fi
16213 ;;
16214
16215 *-*-darwin* )
b2fee376
GD
16216 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16217 CFLAGS="$CFLAGS -fno-common"
16218 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16219 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16220 PIC_FLAG="-dynamic -fPIC"
f346733b 16221 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16222 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16223 ;;
16224
16225 *-*-aix* )
2b5f62a0
VZ
16226 if test "$GCC" != "yes"; then
16227 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16228set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16230echo "configure:16231: checking for $ac_word" >&5
a0b9e27f
MB
16231if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16232 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16233else
16234 if test -n "$AIX_CXX_LD"; then
16235 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16236else
a0b9e27f
MB
16237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16238 ac_dummy="$PATH"
16239 for ac_dir in $ac_dummy; do
16240 test -z "$ac_dir" && ac_dir=.
16241 if test -f $ac_dir/$ac_word; then
16242 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16243 break
16244 fi
16245 done
16246 IFS="$ac_save_ifs"
321d2b14
VZ
16247 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16248fi
16249fi
a0b9e27f 16250AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16251if test -n "$AIX_CXX_LD"; then
a0b9e27f 16252 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16253else
a0b9e27f 16254 echo "$ac_t""no" 1>&6
321d2b14
VZ
16255fi
16256
8284b0c5 16257
2b5f62a0
VZ
16258 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16259 fi
21d1c967
GD
16260 ;;
16261
16262 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16263 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16264
16265 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16266 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16267
16268 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16269
f657dbe7
MB
16270 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16271 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16272
16273 if test "$wxUSE_OPENGL" = "yes"; then
16274 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16275 fi
16276 ;;
16277
16278 *-*-beos* )
16279 SHARED_LD="${LD} -shared -o"
16280 ;;
16281
2b5f62a0
VZ
16282 *-*-irix* )
16283 if test "$GCC" != "yes"; then
16284 PIC_FLAG="-KPIC"
16285 fi
16286 ;;
16287
21d1c967
GD
16288 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16289 *-*-sunos4* | \
21d1c967
GD
16290 *-*-osf* | \
16291 *-*-dgux5* | \
16292 *-*-sysv5* )
16293 ;;
16294
16295 *)
a0b9e27f 16296 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16297 esac
16298
16299 if test "x$WX_TARGET_LIBRARY" = "x"; then
16300 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16301 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16302 fi
16303
16304 WX_TARGET_LIBRARY_TYPE="so"
16305 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16306fi
10f2d63a 16307
21d1c967
GD
16308if test "$wxUSE_SHARED" = "no"; then
16309
16310 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16311 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16312 fi
16313
ac0c4cc3 16314 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16315 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16316 fi
16317
16318 if test "$wxUSE_OPENGL" = "yes"; then
16319 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16320 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16321 else
16322 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16323 fi
16324
16325 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16326 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16327
16328 WX_TARGET_LIBRARY_TYPE="a"
16329 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16330
16331 STATIC_FLAG="yes"
16332else
16333 STATIC_FLAG="no"
90dd450c 16334fi
1e487827 16335
93fac604
VZ
16336MACRESCOMP="@#"
16337MACSETFILE="@#"
36825681 16338MACRESWXCONFIG="#"
21d1c967
GD
16339if test "$wxUSE_MAC" = 1; then
16340 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16341 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16342 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16343 # Extract the first word of "Rez", so it can be a program name with args.
16344set dummy Rez; ac_word=$2
a0b9e27f 16345echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16346echo "configure:16347: checking for $ac_word" >&5
a0b9e27f
MB
16347if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16348 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16349else
21d1c967
GD
16350 if test -n "$RESCOMP"; then
16351 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16352else
a0b9e27f
MB
16353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16354 ac_dummy="$PATH"
16355 for ac_dir in $ac_dummy; do
16356 test -z "$ac_dir" && ac_dir=.
16357 if test -f $ac_dir/$ac_word; then
16358 ac_cv_prog_RESCOMP="Rez"
16359 break
16360 fi
16361 done
16362 IFS="$ac_save_ifs"
21d1c967 16363 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16364fi
b93d0d08 16365fi
a0b9e27f 16366RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16367if test -n "$RESCOMP"; then
a0b9e27f 16368 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16369else
a0b9e27f 16370 echo "$ac_t""no" 1>&6
90dd450c 16371fi
b93d0d08 16372
21d1c967
GD
16373 # Extract the first word of "DeRez", so it can be a program name with args.
16374set dummy DeRez; ac_word=$2
a0b9e27f 16375echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16376echo "configure:16377: checking for $ac_word" >&5
a0b9e27f
MB
16377if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16379else
21d1c967
GD
16380 if test -n "$DEREZ"; then
16381 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16382else
a0b9e27f
MB
16383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16384 ac_dummy="$PATH"
16385 for ac_dir in $ac_dummy; do
16386 test -z "$ac_dir" && ac_dir=.
16387 if test -f $ac_dir/$ac_word; then
16388 ac_cv_prog_DEREZ="DeRez"
16389 break
16390 fi
16391 done
16392 IFS="$ac_save_ifs"
21d1c967 16393 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16394fi
90dd450c 16395fi
a0b9e27f 16396DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16397if test -n "$DEREZ"; then
a0b9e27f 16398 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16399else
a0b9e27f 16400 echo "$ac_t""no" 1>&6
3a922bb4 16401fi
698dcdb6 16402
36825681
GD
16403 # Extract the first word of "SetFile", so it can be a program name with args.
16404set dummy SetFile; ac_word=$2
16405echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16406echo "configure:16407: checking for $ac_word" >&5
36825681
GD
16407if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409else
16410 if test -n "$SETFILE"; then
16411 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16412else
16413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16414 ac_dummy="$PATH"
16415 for ac_dir in $ac_dummy; do
16416 test -z "$ac_dir" && ac_dir=.
16417 if test -f $ac_dir/$ac_word; then
16418 ac_cv_prog_SETFILE="SetFile"
16419 break
16420 fi
16421 done
16422 IFS="$ac_save_ifs"
16423 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16424fi
16425fi
16426SETFILE="$ac_cv_prog_SETFILE"
16427if test -n "$SETFILE"; then
16428 echo "$ac_t""$SETFILE" 1>&6
16429else
16430 echo "$ac_t""no" 1>&6
16431fi
16432
21d1c967 16433 MACOSX_BUNDLE="bundle"
36825681
GD
16434 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16435 MACSETFILE="\$(SETFILE)"
16436 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
64440d77
DE
16437elif test "$wxUSE_COCOA" = 1; then
16438 # Extract the first word of "Rez", so it can be a program name with args.
16439set dummy Rez; ac_word=$2
16440echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16441echo "configure:16442: checking for $ac_word" >&5
64440d77
DE
16442if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16443 echo $ac_n "(cached) $ac_c" 1>&6
16444else
16445 if test -n "$RESCOMP"; then
16446 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16447else
16448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16449 ac_dummy="$PATH"
16450 for ac_dir in $ac_dummy; do
16451 test -z "$ac_dir" && ac_dir=.
16452 if test -f $ac_dir/$ac_word; then
16453 ac_cv_prog_RESCOMP="Rez"
16454 break
16455 fi
16456 done
16457 IFS="$ac_save_ifs"
16458 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16459fi
16460fi
16461RESCOMP="$ac_cv_prog_RESCOMP"
16462if test -n "$RESCOMP"; then
16463 echo "$ac_t""$RESCOMP" 1>&6
16464else
16465 echo "$ac_t""no" 1>&6
16466fi
16467
16468 # Extract the first word of "DeRez", so it can be a program name with args.
16469set dummy DeRez; ac_word=$2
16470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16471echo "configure:16472: checking for $ac_word" >&5
64440d77
DE
16472if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16473 echo $ac_n "(cached) $ac_c" 1>&6
16474else
16475 if test -n "$DEREZ"; then
16476 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16477else
16478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16479 ac_dummy="$PATH"
16480 for ac_dir in $ac_dummy; do
16481 test -z "$ac_dir" && ac_dir=.
16482 if test -f $ac_dir/$ac_word; then
16483 ac_cv_prog_DEREZ="DeRez"
16484 break
16485 fi
16486 done
16487 IFS="$ac_save_ifs"
16488 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16489fi
16490fi
16491DEREZ="$ac_cv_prog_DEREZ"
16492if test -n "$DEREZ"; then
16493 echo "$ac_t""$DEREZ" 1>&6
16494else
16495 echo "$ac_t""no" 1>&6
16496fi
16497
16498 # Extract the first word of "SetFile", so it can be a program name with args.
16499set dummy SetFile; ac_word=$2
16500echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7bb2947d 16501echo "configure:16502: checking for $ac_word" >&5
64440d77
DE
16502if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16503 echo $ac_n "(cached) $ac_c" 1>&6
16504else
16505 if test -n "$SETFILE"; then
16506 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16507else
16508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16509 ac_dummy="$PATH"
16510 for ac_dir in $ac_dummy; do
16511 test -z "$ac_dir" && ac_dir=.
16512 if test -f $ac_dir/$ac_word; then
16513 ac_cv_prog_SETFILE="SetFile"
16514 break
16515 fi
16516 done
16517 IFS="$ac_save_ifs"
16518 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16519fi
16520fi
16521SETFILE="$ac_cv_prog_SETFILE"
16522if test -n "$SETFILE"; then
16523 echo "$ac_t""$SETFILE" 1>&6
16524else
16525 echo "$ac_t""no" 1>&6
16526fi
16527
16528 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16529 MACSETFILE="\$(SETFILE)"
16530 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16531else
16532 if test "$wxUSE_PM" = 1; then
36825681 16533 MACRESCOMP="emxbind -ep"
90dd450c 16534 fi
4f14bcd8 16535fi
10f2d63a 16536
8284b0c5 16537
a0b9e27f 16538echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7bb2947d 16539echo "configure:16540: checking for ANSI C header files" >&5
a0b9e27f
MB
16540if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16542else
a0b9e27f 16543 cat > conftest.$ac_ext <<EOF
7bb2947d 16544#line 16545 "configure"
52127426 16545#include "confdefs.h"
a0b9e27f
MB
16546#include <stdlib.h>
16547#include <stdarg.h>
16548#include <string.h>
16549#include <float.h>
16550EOF
16551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 16552{ (eval echo configure:16553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16554if test -z "$ac_err"; then
16555 rm -rf conftest*
16556 ac_cv_header_stdc=yes
16557else
16558 echo "$ac_err" >&5
16559 echo "configure: failed program was:" >&5
16560 cat conftest.$ac_ext >&5
16561 rm -rf conftest*
16562 ac_cv_header_stdc=no
16563fi
16564rm -f conftest*
16565
16566if test $ac_cv_header_stdc = yes; then
16567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16568cat > conftest.$ac_ext <<EOF
7bb2947d 16569#line 16570 "configure"
a0b9e27f
MB
16570#include "confdefs.h"
16571#include <string.h>
16572EOF
16573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16574 egrep "memchr" >/dev/null 2>&1; then
16575 :
16576else
16577 rm -rf conftest*
16578 ac_cv_header_stdc=no
16579fi
16580rm -f conftest*
16581
16582fi
16583
16584if test $ac_cv_header_stdc = yes; then
16585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16586cat > conftest.$ac_ext <<EOF
7bb2947d 16587#line 16588 "configure"
a0b9e27f
MB
16588#include "confdefs.h"
16589#include <stdlib.h>
16590EOF
16591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16592 egrep "free" >/dev/null 2>&1; then
16593 :
7b4a847f 16594else
a0b9e27f
MB
16595 rm -rf conftest*
16596 ac_cv_header_stdc=no
52127426 16597fi
a0b9e27f
MB
16598rm -f conftest*
16599
52127426 16600fi
a0b9e27f
MB
16601
16602if test $ac_cv_header_stdc = yes; then
16603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16604if test "$cross_compiling" = yes; then
247f5006
VZ
16605 :
16606else
a0b9e27f 16607 cat > conftest.$ac_ext <<EOF
7bb2947d 16608#line 16609 "configure"
a0b9e27f
MB
16609#include "confdefs.h"
16610#include <ctype.h>
16611#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16612#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16613#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16614int main () { int i; for (i = 0; i < 256; i++)
16615if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16616exit (0); }
247f5006 16617
a0b9e27f 16618EOF
7bb2947d 16619if { (eval echo configure:16620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16620then
16621 :
16622else
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16625 rm -fr conftest*
16626 ac_cv_header_stdc=no
16627fi
16628rm -fr conftest*
16629fi
16630
16631fi
16632fi
16633
16634echo "$ac_t""$ac_cv_header_stdc" 1>&6
16635if test $ac_cv_header_stdc = yes; then
16636 cat >> confdefs.h <<\EOF
16637#define STDC_HEADERS 1
16638EOF
8284b0c5
MB
16639
16640fi
16641
a0b9e27f 16642echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7bb2947d 16643echo "configure:16644: checking for mode_t" >&5
a0b9e27f
MB
16644if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16645 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16646else
a0b9e27f 16647 cat > conftest.$ac_ext <<EOF
7bb2947d 16648#line 16649 "configure"
8284b0c5 16649#include "confdefs.h"
a0b9e27f
MB
16650#include <sys/types.h>
16651#if STDC_HEADERS
16652#include <stdlib.h>
16653#include <stddef.h>
8284b0c5 16654#endif
a0b9e27f
MB
16655EOF
16656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16657 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16658 rm -rf conftest*
16659 ac_cv_type_mode_t=yes
5c6fa7d2 16660else
a0b9e27f
MB
16661 rm -rf conftest*
16662 ac_cv_type_mode_t=no
16663fi
16664rm -f conftest*
16665
8284b0c5 16666fi
a0b9e27f
MB
16667echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16668if test $ac_cv_type_mode_t = no; then
16669 cat >> confdefs.h <<\EOF
16670#define mode_t int
16671EOF
16672
8284b0c5 16673fi
a0b9e27f
MB
16674
16675echo $ac_n "checking for off_t""... $ac_c" 1>&6
7bb2947d 16676echo "configure:16677: checking for off_t" >&5
a0b9e27f
MB
16677if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16678 echo $ac_n "(cached) $ac_c" 1>&6
16679else
16680 cat > conftest.$ac_ext <<EOF
7bb2947d 16681#line 16682 "configure"
a0b9e27f
MB
16682#include "confdefs.h"
16683#include <sys/types.h>
16684#if STDC_HEADERS
16685#include <stdlib.h>
16686#include <stddef.h>
16687#endif
16688EOF
16689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16690 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16691 rm -rf conftest*
16692 ac_cv_type_off_t=yes
247f5006 16693else
a0b9e27f
MB
16694 rm -rf conftest*
16695 ac_cv_type_off_t=no
16696fi
16697rm -f conftest*
247f5006 16698
a0b9e27f
MB
16699fi
16700echo "$ac_t""$ac_cv_type_off_t" 1>&6
16701if test $ac_cv_type_off_t = no; then
16702 cat >> confdefs.h <<\EOF
90dd450c 16703#define off_t long
a0b9e27f 16704EOF
10f2d63a 16705
90dd450c 16706fi
10f2d63a 16707
a0b9e27f 16708echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7bb2947d 16709echo "configure:16710: checking for pid_t" >&5
a0b9e27f
MB
16710if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16712else
a0b9e27f 16713 cat > conftest.$ac_ext <<EOF
7bb2947d 16714#line 16715 "configure"
10f2d63a 16715#include "confdefs.h"
a0b9e27f
MB
16716#include <sys/types.h>
16717#if STDC_HEADERS
16718#include <stdlib.h>
16719#include <stddef.h>
8284b0c5 16720#endif
a0b9e27f
MB
16721EOF
16722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16723 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16724 rm -rf conftest*
90dd450c 16725 ac_cv_type_pid_t=yes
698dcdb6 16726else
a0b9e27f
MB
16727 rm -rf conftest*
16728 ac_cv_type_pid_t=no
8284b0c5 16729fi
a0b9e27f 16730rm -f conftest*
247f5006 16731
a0b9e27f
MB
16732fi
16733echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16734if test $ac_cv_type_pid_t = no; then
16735 cat >> confdefs.h <<\EOF
90dd450c 16736#define pid_t int
a0b9e27f 16737EOF
10f2d63a 16738
7b4a847f
RR
16739fi
16740
a0b9e27f 16741echo $ac_n "checking for size_t""... $ac_c" 1>&6
7bb2947d 16742echo "configure:16743: checking for size_t" >&5
a0b9e27f
MB
16743if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16744 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16745else
a0b9e27f 16746 cat > conftest.$ac_ext <<EOF
7bb2947d 16747#line 16748 "configure"
7b4a847f 16748#include "confdefs.h"
a0b9e27f
MB
16749#include <sys/types.h>
16750#if STDC_HEADERS
16751#include <stdlib.h>
16752#include <stddef.h>
8284b0c5 16753#endif
a0b9e27f
MB
16754EOF
16755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16756 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16757 rm -rf conftest*
90dd450c 16758 ac_cv_type_size_t=yes
18dbb1f6 16759else
a0b9e27f
MB
16760 rm -rf conftest*
16761 ac_cv_type_size_t=no
52127426 16762fi
a0b9e27f 16763rm -f conftest*
247f5006 16764
a0b9e27f
MB
16765fi
16766echo "$ac_t""$ac_cv_type_size_t" 1>&6
16767if test $ac_cv_type_size_t = no; then
16768 cat >> confdefs.h <<\EOF
90dd450c 16769#define size_t unsigned
a0b9e27f 16770EOF
90dd450c
VZ
16771
16772fi
16773
a0b9e27f 16774echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7bb2947d 16775echo "configure:16776: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16776if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16777 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16778else
a0b9e27f 16779 cat > conftest.$ac_ext <<EOF
7bb2947d 16780#line 16781 "configure"
b3e8d00a 16781#include "confdefs.h"
90dd450c 16782#include <sys/types.h>
a0b9e27f 16783EOF
90dd450c
VZ
16784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16785 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16786 rm -rf conftest*
90dd450c 16787 ac_cv_type_uid_t=yes
b3e8d00a 16788else
a0b9e27f 16789 rm -rf conftest*
90dd450c 16790 ac_cv_type_uid_t=no
b3e8d00a 16791fi
90dd450c 16792rm -f conftest*
b3e8d00a 16793
4f14bcd8 16794fi
247f5006 16795
a0b9e27f
MB
16796echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16797if test $ac_cv_type_uid_t = no; then
16798 cat >> confdefs.h <<\EOF
90dd450c 16799#define uid_t int
a0b9e27f 16800EOF
247f5006 16801
a0b9e27f 16802 cat >> confdefs.h <<\EOF
90dd450c 16803#define gid_t int
a0b9e27f 16804EOF
4f14bcd8 16805
b3e8d00a 16806fi
b3e8d00a 16807
8284b0c5
MB
16808
16809
a0b9e27f
MB
16810ac_ext=C
16811# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16812ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16813ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16814ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16815cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16816
a0b9e27f 16817echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
7bb2947d 16818echo "configure:16819: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16819if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16821else
ef33c576
VZ
16822
16823 cat > conftest.$ac_ext <<EOF
7bb2947d 16824#line 16825 "configure"
10f2d63a 16825#include "confdefs.h"
90dd450c 16826#include <stddef.h>
a0b9e27f 16827int main() {
90dd450c
VZ
16828
16829 return 0; }
16830
16831 struct Foo { void foo(size_t); void foo(unsigned int); };
16832
16833 int bar() {
a0b9e27f
MB
16834
16835; return 0; }
16836EOF
7bb2947d 16837if { (eval echo configure:16838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16838 rm -rf conftest*
90dd450c 16839 wx_cv_size_t_is_uint=no
698dcdb6 16840else
a0b9e27f
MB
16841 echo "configure: failed program was:" >&5
16842 cat conftest.$ac_ext >&5
16843 rm -rf conftest*
16844 wx_cv_size_t_is_uint=yes
16845
5c6fa7d2 16846fi
a0b9e27f 16847rm -f conftest*
ef33c576 16848
8284b0c5 16849
247f5006 16850fi
a0b9e27f
MB
16851
16852echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16853
90dd450c 16854if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16855 cat >> confdefs.h <<\EOF
90dd450c 16856#define wxSIZE_T_IS_UINT 1
a0b9e27f 16857EOF
698dcdb6 16858
90dd450c 16859else
a0b9e27f 16860 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
7bb2947d 16861echo "configure:16862: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16862if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16864else
a0b9e27f 16865 cat > conftest.$ac_ext <<EOF
7bb2947d 16866#line 16867 "configure"
10f2d63a 16867#include "confdefs.h"
90dd450c 16868#include <stddef.h>
a0b9e27f 16869int main() {
90dd450c
VZ
16870
16871 return 0; }
16872
16873 struct Foo { void foo(size_t); void foo(unsigned long); };
16874
16875 int bar() {
a0b9e27f
MB
16876
16877; return 0; }
16878EOF
7bb2947d 16879if { (eval echo configure:16880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16880 rm -rf conftest*
90dd450c 16881 wx_cv_size_t_is_ulong=no
698dcdb6 16882else
a0b9e27f
MB
16883 echo "configure: failed program was:" >&5
16884 cat conftest.$ac_ext >&5
16885 rm -rf conftest*
16886 wx_cv_size_t_is_ulong=yes
16887
5c6fa7d2 16888fi
a0b9e27f
MB
16889rm -f conftest*
16890
247f5006 16891fi
a0b9e27f
MB
16892
16893echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16894
90dd450c 16895 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16896 cat >> confdefs.h <<\EOF
90dd450c 16897#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16898EOF
4f14bcd8
GD
16899
16900 fi
90dd450c 16901fi
1e487827 16902
90dd450c 16903ac_ext=c
a0b9e27f 16904# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16905ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16906ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16907ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16908cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16909
5c6fa7d2 16910
8284b0c5 16911
a0b9e27f 16912echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
7bb2947d 16913echo "configure:16914: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16914if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16915 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16916else
a0b9e27f
MB
16917
16918 cat > conftest.$ac_ext <<EOF
7bb2947d 16919#line 16920 "configure"
4f14bcd8 16920#include "confdefs.h"
90dd450c 16921#include <pwd.h>
a0b9e27f 16922int main() {
f6bcfd97 16923
90dd450c
VZ
16924 char *p;
16925 struct passwd *pw;
16926 p = pw->pw_gecos;
a0b9e27f
MB
16927
16928; return 0; }
16929EOF
7bb2947d 16930if { (eval echo configure:16931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16931 rm -rf conftest*
16932
90dd450c 16933 wx_cv_struct_pw_gecos=yes
a0b9e27f 16934
10f2d63a 16935else
a0b9e27f
MB
16936 echo "configure: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 rm -rf conftest*
16939
90dd450c 16940 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16941
16942
5c6fa7d2 16943fi
a0b9e27f
MB
16944rm -f conftest*
16945
247f5006
VZ
16946
16947fi
a0b9e27f
MB
16948
16949echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16950
90dd450c 16951if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16952 cat >> confdefs.h <<\EOF
90dd450c 16953#define HAVE_PW_GECOS 1
a0b9e27f 16954EOF
c521c494 16955
90dd450c 16956fi
4f14bcd8 16957
8284b0c5 16958
d29b553b 16959if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16960 cat >> confdefs.h <<\EOF
d74f4b5a 16961#define wxUSE_WCHAR_T 1
a0b9e27f 16962EOF
d74f4b5a 16963
8284b0c5 16964
d74f4b5a
VZ
16965 WCSLEN_FOUND=0
16966 WCHAR_LINK=
a0b9e27f 16967 for ac_func in wcslen
7a30264c 16968do
a0b9e27f 16969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 16970echo "configure:16971: checking for $ac_func" >&5
a0b9e27f
MB
16971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
16973else
16974 cat > conftest.$ac_ext <<EOF
7bb2947d 16975#line 16976 "configure"
4f14bcd8 16976#include "confdefs.h"
7a30264c 16977/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16978 which can conflict with char $ac_func(); below. */
7a30264c 16979#include <assert.h>
4f14bcd8
GD
16980/* Override any gcc2 internal prototype to avoid an error. */
16981/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16982 builtin and then its argument prototype would still apply. */
16983char $ac_func();
16984
16985int main() {
16986
7a30264c
VZ
16987/* The GNU C library defines this for functions which it implements
16988 to always fail with ENOSYS. Some functions are actually named
16989 something starting with __ and the normal name is an alias. */
16990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16991choke me
16992#else
a0b9e27f 16993$ac_func();
7a30264c
VZ
16994#endif
16995
a0b9e27f
MB
16996; return 0; }
16997EOF
7bb2947d 16998if { (eval echo configure:16999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16999 rm -rf conftest*
17000 eval "ac_cv_func_$ac_func=yes"
17001else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 eval "ac_cv_func_$ac_func=no"
17006fi
17007rm -f conftest*
17008fi
17009
17010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17011 echo "$ac_t""yes" 1>&6
17012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17013 cat >> confdefs.h <<EOF
17014#define $ac_tr_func 1
17015EOF
d74f4b5a 17016 WCSLEN_FOUND=1
a0b9e27f
MB
17017else
17018 echo "$ac_t""no" 1>&6
7a30264c
VZ
17019fi
17020done
9d8deca0 17021
8284b0c5 17022
d74f4b5a 17023 if test "$WCSLEN_FOUND" = 0; then
7a30264c 17024 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 17025 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
7bb2947d 17026echo "configure:17027: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
17027ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17028if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17030else
a0b9e27f 17031 ac_save_LIBS="$LIBS"
7a30264c 17032LIBS="-lmsvcrt $LIBS"
a0b9e27f 17033cat > conftest.$ac_ext <<EOF
7bb2947d 17034#line 17035 "configure"
10f2d63a 17035#include "confdefs.h"
4f14bcd8
GD
17036/* Override any gcc2 internal prototype to avoid an error. */
17037/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17038 builtin and then its argument prototype would still apply. */
17039char wcslen();
17040
17041int main() {
17042wcslen()
17043; return 0; }
17044EOF
7bb2947d 17045if { (eval echo configure:17046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17046 rm -rf conftest*
17047 eval "ac_cv_lib_$ac_lib_var=yes"
17048else
17049 echo "configure: failed program was:" >&5
17050 cat conftest.$ac_ext >&5
17051 rm -rf conftest*
17052 eval "ac_cv_lib_$ac_lib_var=no"
17053fi
17054rm -f conftest*
17055LIBS="$ac_save_LIBS"
17056
17057fi
17058if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17059 echo "$ac_t""yes" 1>&6
d74f4b5a 17060 WCHAR_OK=1
a0b9e27f
MB
17061else
17062 echo "$ac_t""no" 1>&6
d29b553b 17063fi
698dcdb6 17064
7a30264c 17065 else
a0b9e27f 17066 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
7bb2947d 17067echo "configure:17068: checking for wcslen in -lw" >&5
a0b9e27f
MB
17068ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17070 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17071else
a0b9e27f 17072 ac_save_LIBS="$LIBS"
7a30264c 17073LIBS="-lw $LIBS"
a0b9e27f 17074cat > conftest.$ac_ext <<EOF
7bb2947d 17075#line 17076 "configure"
95c8801c 17076#include "confdefs.h"
4f14bcd8
GD
17077/* Override any gcc2 internal prototype to avoid an error. */
17078/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17079 builtin and then its argument prototype would still apply. */
17080char wcslen();
52127426 17081
a0b9e27f
MB
17082int main() {
17083wcslen()
17084; return 0; }
17085EOF
7bb2947d 17086if { (eval echo configure:17087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17087 rm -rf conftest*
17088 eval "ac_cv_lib_$ac_lib_var=yes"
17089else
17090 echo "configure: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 rm -rf conftest*
17093 eval "ac_cv_lib_$ac_lib_var=no"
17094fi
17095rm -f conftest*
17096LIBS="$ac_save_LIBS"
17097
17098fi
17099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17100 echo "$ac_t""yes" 1>&6
17101
7a30264c 17102 WCHAR_LINK=" -lw"
d74f4b5a 17103 WCSLEN_FOUND=1
a0b9e27f
MB
17104
17105else
17106 echo "$ac_t""no" 1>&6
4f14bcd8 17107fi
10f2d63a 17108
7a30264c 17109 fi
d29b553b 17110 fi
95c8801c 17111
d74f4b5a 17112 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 17113 cat >> confdefs.h <<\EOF
d74f4b5a 17114#define HAVE_WCSLEN 1
a0b9e27f 17115EOF
10f2d63a 17116
d74f4b5a 17117 fi
52127426 17118
a0b9e27f 17119 for ac_func in wcsrtombs
eb4efbdc 17120do
a0b9e27f 17121echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17122echo "configure:17123: checking for $ac_func" >&5
a0b9e27f
MB
17123if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17125else
17126 cat > conftest.$ac_ext <<EOF
7bb2947d 17127#line 17128 "configure"
eb4efbdc
VZ
17128#include "confdefs.h"
17129/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17130 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
17131#include <assert.h>
17132/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 17133/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17134 builtin and then its argument prototype would still apply. */
17135char $ac_func();
17136
17137int main() {
17138
10f2d63a
VZ
17139/* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
247f5006 17142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17143choke me
17144#else
a0b9e27f 17145$ac_func();
10f2d63a
VZ
17146#endif
17147
a0b9e27f
MB
17148; return 0; }
17149EOF
7bb2947d 17150if { (eval echo configure:17151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17151 rm -rf conftest*
17152 eval "ac_cv_func_$ac_func=yes"
17153else
17154 echo "configure: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17156 rm -rf conftest*
17157 eval "ac_cv_func_$ac_func=no"
17158fi
17159rm -f conftest*
17160fi
270a909e 17161
a0b9e27f
MB
17162if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17163 echo "$ac_t""yes" 1>&6
17164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17165 cat >> confdefs.h <<EOF
17166#define $ac_tr_func 1
17167EOF
17168
17169else
17170 echo "$ac_t""no" 1>&6
4f14bcd8 17171fi
247f5006 17172done
1e487827 17173
af15babd 17174else
a0b9e27f 17175 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17176fi
52127426 17177
8284b0c5 17178
a0b9e27f
MB
17179ac_ext=C
17180# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17181ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17182ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17183ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17184cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17185
247f5006
VZ
17186
17187for ac_func in vsnprintf
17188do
a0b9e27f 17189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17190echo "configure:17191: checking for $ac_func" >&5
a0b9e27f
MB
17191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17192 echo $ac_n "(cached) $ac_c" 1>&6
17193else
17194 cat > conftest.$ac_ext <<EOF
7bb2947d 17195#line 17196 "configure"
af15babd 17196#include "confdefs.h"
247f5006 17197/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17198 which can conflict with char $ac_func(); below. */
247f5006
VZ
17199#include <assert.h>
17200/* Override any gcc2 internal prototype to avoid an error. */
17201#ifdef __cplusplus
17202extern "C"
17203#endif
17204/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17205 builtin and then its argument prototype would still apply. */
17206char $ac_func();
17207
17208int main() {
17209
247f5006
VZ
17210/* The GNU C library defines this for functions which it implements
17211 to always fail with ENOSYS. Some functions are actually named
17212 something starting with __ and the normal name is an alias. */
17213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17214choke me
17215#else
a0b9e27f 17216$ac_func();
247f5006 17217#endif
af15babd 17218
a0b9e27f
MB
17219; return 0; }
17220EOF
7bb2947d 17221if { (eval echo configure:17222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17222 rm -rf conftest*
17223 eval "ac_cv_func_$ac_func=yes"
17224else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228 eval "ac_cv_func_$ac_func=no"
17229fi
17230rm -f conftest*
17231fi
52127426 17232
a0b9e27f
MB
17233if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17234 echo "$ac_t""yes" 1>&6
17235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17236 cat >> confdefs.h <<EOF
17237#define $ac_tr_func 1
17238EOF
17239
17240else
17241 echo "$ac_t""no" 1>&6
5c6fa7d2 17242fi
247f5006 17243done
8284b0c5 17244
4f14bcd8 17245
8d90d2f2
VZ
17246if test "$ac_cv_func_vsnprintf" = "yes"; then
17247 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
7bb2947d 17248echo "configure:17249: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17249if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17250 echo $ac_n "(cached) $ac_c" 1>&6
17251else
17252
17253 cat > conftest.$ac_ext <<EOF
7bb2947d 17254#line 17255 "configure"
8d90d2f2
VZ
17255#include "confdefs.h"
17256
17257 #include <stdio.h>
17258 #include <stdarg.h>
17259
17260int main() {
17261
17262 char *buf;
17263 va_list ap;
17264 vsnprintf(buf, 10u, "%s", ap);
17265
17266; return 0; }
17267EOF
7bb2947d 17268if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17269 rm -rf conftest*
17270 wx_cv_func_vsnprintf_decl=yes
17271else
17272 echo "configure: failed program was:" >&5
17273 cat conftest.$ac_ext >&5
17274 rm -rf conftest*
17275 wx_cv_func_vsnprintf_decl=no
17276
17277fi
17278rm -f conftest*
17279
17280
17281fi
17282
17283echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17284
17285 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17286 cat >> confdefs.h <<\EOF
17287#define HAVE_VSNPRINTF_DECL 1
17288EOF
17289
17290 fi
17291fi
17292
247f5006 17293if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17294 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17295do
a0b9e27f 17296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17297echo "configure:17298: checking for $ac_func" >&5
a0b9e27f
MB
17298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17299 echo $ac_n "(cached) $ac_c" 1>&6
17300else
17301 cat > conftest.$ac_ext <<EOF
7bb2947d 17302#line 17303 "configure"
d74f4b5a
VZ
17303#include "confdefs.h"
17304/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17305 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17306#include <assert.h>
17307/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17308#ifdef __cplusplus
17309extern "C"
17310#endif
d74f4b5a 17311/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17312 builtin and then its argument prototype would still apply. */
17313char $ac_func();
17314
17315int main() {
17316
d74f4b5a
VZ
17317/* The GNU C library defines this for functions which it implements
17318 to always fail with ENOSYS. Some functions are actually named
17319 something starting with __ and the normal name is an alias. */
17320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17321choke me
17322#else
a0b9e27f 17323$ac_func();
d74f4b5a
VZ
17324#endif
17325
a0b9e27f
MB
17326; return 0; }
17327EOF
7bb2947d 17328if { (eval echo configure:17329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17329 rm -rf conftest*
17330 eval "ac_cv_func_$ac_func=yes"
17331else
17332 echo "configure: failed program was:" >&5
17333 cat conftest.$ac_ext >&5
17334 rm -rf conftest*
17335 eval "ac_cv_func_$ac_func=no"
17336fi
17337rm -f conftest*
17338fi
d74f4b5a 17339
a0b9e27f
MB
17340if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17341 echo "$ac_t""yes" 1>&6
17342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17343 cat >> confdefs.h <<EOF
17344#define $ac_tr_func 1
17345EOF
17346
17347else
17348 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17349fi
17350done
17351
8d90d2f2 17352
79668cae 17353 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
7bb2947d 17354echo "configure:17355: checking for _vsnwprintf" >&5
79668cae 17355 cat > conftest.$ac_ext <<EOF
7bb2947d 17356#line 17357 "configure"
79668cae
MB
17357#include "confdefs.h"
17358#include <wchar.h>
17359int main() {
17360&_vsnwprintf;
17361; return 0; }
17362EOF
7bb2947d 17363if { (eval echo configure:17364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17364 rm -rf conftest*
17365 echo "$ac_t""yes" 1>&6
17366 cat >> confdefs.h <<\EOF
17367#define HAVE__VSNWPRINTF 1
17368EOF
17369
17370else
17371 echo "configure: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17373 rm -rf conftest*
17374 echo "$ac_t""no" 1>&6
17375fi
17376rm -f conftest*;
d74f4b5a
VZ
17377fi
17378
247f5006 17379ac_ext=c
a0b9e27f 17380# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17381ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17382ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17383ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17384cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17385
17386
17387
17388
4f14bcd8 17389if test "$TOOLKIT" != "MSW"; then
af15babd 17390
8284b0c5
MB
17391
17392
a0b9e27f
MB
17393ac_ext=C
17394# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17395ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17396ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17397ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17398cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17399
52127426 17400
a0b9e27f
MB
17401
17402 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17403if test "${with_libiconv_prefix+set}" = set; then
17404 withval="$with_libiconv_prefix"
a0b9e27f 17405
b040e242
VS
17406 for dir in `echo "$withval" | tr : ' '`; do
17407 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17408 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17409 done
a0b9e27f
MB
17410
17411fi
b040e242
VS
17412
17413
a0b9e27f 17414 echo $ac_n "checking for iconv""... $ac_c" 1>&6
7bb2947d 17415echo "configure:17416: checking for iconv" >&5
a0b9e27f
MB
17416if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17417 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17418else
a0b9e27f 17419
b040e242
VS
17420 am_cv_func_iconv="no, consider installing GNU libiconv"
17421 am_cv_lib_iconv=no
a0b9e27f 17422 cat > conftest.$ac_ext <<EOF
7bb2947d 17423#line 17424 "configure"
af15babd 17424#include "confdefs.h"
b040e242 17425#include <stdlib.h>
4f14bcd8 17426#include <iconv.h>
a0b9e27f 17427int main() {
b040e242
VS
17428iconv_t cd = iconv_open("","");
17429 iconv(cd,NULL,NULL,NULL,NULL);
17430 iconv_close(cd);
a0b9e27f
MB
17431; return 0; }
17432EOF
7bb2947d 17433if { (eval echo configure:17434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17434 rm -rf conftest*
b040e242 17435 am_cv_func_iconv=yes
af15babd 17436else
a0b9e27f
MB
17437 echo "configure: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
b040e242 17439fi
a0b9e27f 17440rm -f conftest*
b040e242
VS
17441 if test "$am_cv_func_iconv" != yes; then
17442 am_save_LIBS="$LIBS"
17443 LIBS="$LIBS -liconv"
a0b9e27f 17444 cat > conftest.$ac_ext <<EOF
7bb2947d 17445#line 17446 "configure"
b040e242
VS
17446#include "confdefs.h"
17447#include <stdlib.h>
17448#include <iconv.h>
a0b9e27f 17449int main() {
b040e242
VS
17450iconv_t cd = iconv_open("","");
17451 iconv(cd,NULL,NULL,NULL,NULL);
17452 iconv_close(cd);
a0b9e27f
MB
17453; return 0; }
17454EOF
7bb2947d 17455if { (eval echo configure:17456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17456 rm -rf conftest*
b040e242
VS
17457 am_cv_lib_iconv=yes
17458 am_cv_func_iconv=yes
17459else
a0b9e27f
MB
17460 echo "configure: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
af15babd 17462fi
a0b9e27f 17463rm -f conftest*
b040e242
VS
17464 LIBS="$am_save_LIBS"
17465 fi
a0b9e27f 17466
247f5006 17467fi
247f5006 17468
a0b9e27f
MB
17469echo "$ac_t""$am_cv_func_iconv" 1>&6
17470 if test "$am_cv_func_iconv" = yes; then
17471 cat >> confdefs.h <<\EOF
b040e242 17472#define HAVE_ICONV 1
a0b9e27f 17473EOF
b040e242 17474
a0b9e27f 17475 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
7bb2947d 17476echo "configure:17477: checking if iconv needs const" >&5
a0b9e27f
MB
17477if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17478 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17479else
a0b9e27f 17480 cat > conftest.$ac_ext <<EOF
7bb2947d 17481#line 17482 "configure"
b040e242
VS
17482#include "confdefs.h"
17483
17484#include <stdlib.h>
17485#include <iconv.h>
17486extern
17487#ifdef __cplusplus
17488"C"
17489#endif
17490#if defined(__STDC__) || defined(__cplusplus)
17491size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17492#else
17493size_t iconv();
17494#endif
a0b9e27f
MB
17495
17496int main() {
af15babd 17497
a0b9e27f
MB
17498; return 0; }
17499EOF
7bb2947d 17500if { (eval echo configure:17501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17501 rm -rf conftest*
b7043674 17502 wx_cv_func_iconv_const="no"
b040e242 17503else
a0b9e27f
MB
17504 echo "configure: failed program was:" >&5
17505 cat conftest.$ac_ext >&5
17506 rm -rf conftest*
17507 wx_cv_func_iconv_const="yes"
17508
5c6fa7d2 17509fi
a0b9e27f
MB
17510rm -f conftest*
17511
247f5006 17512fi
a0b9e27f
MB
17513
17514echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17515
17516 iconv_const=
1c405bb5 17517 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17518 iconv_const="const"
17519 fi
17520
a0b9e27f 17521 cat >> confdefs.h <<EOF
f09359cf 17522#define ICONV_CONST $iconv_const
a0b9e27f 17523EOF
b040e242
VS
17524
17525 fi
17526 LIBICONV=
17527 if test "$am_cv_lib_iconv" = yes; then
17528 LIBICONV="-liconv"
17529 fi
a0b9e27f 17530
b040e242
VS
17531
17532LIBS="$LIBICONV $LIBS"
4f14bcd8 17533ac_ext=c
a0b9e27f 17534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17535ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17537ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17538cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17539
5c6fa7d2 17540
8284b0c5 17541if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17542 for ac_func in sigaction
af15babd 17543do
a0b9e27f 17544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17545echo "configure:17546: checking for $ac_func" >&5
a0b9e27f
MB
17546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17547 echo $ac_n "(cached) $ac_c" 1>&6
17548else
17549 cat > conftest.$ac_ext <<EOF
7bb2947d 17550#line 17551 "configure"
af15babd
VZ
17551#include "confdefs.h"
17552/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17553 which can conflict with char $ac_func(); below. */
af15babd
VZ
17554#include <assert.h>
17555/* Override any gcc2 internal prototype to avoid an error. */
17556/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17557 builtin and then its argument prototype would still apply. */
17558char $ac_func();
17559
17560int main() {
17561
af15babd
VZ
17562/* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17566choke me
17567#else
a0b9e27f 17568$ac_func();
af15babd
VZ
17569#endif
17570
a0b9e27f
MB
17571; return 0; }
17572EOF
7bb2947d 17573if { (eval echo configure:17574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17574 rm -rf conftest*
17575 eval "ac_cv_func_$ac_func=yes"
17576else
17577 echo "configure: failed program was:" >&5
17578 cat conftest.$ac_ext >&5
17579 rm -rf conftest*
17580 eval "ac_cv_func_$ac_func=no"
17581fi
17582rm -f conftest*
17583fi
7b4a847f 17584
a0b9e27f
MB
17585if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17586 echo "$ac_t""yes" 1>&6
17587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17588 cat >> confdefs.h <<EOF
17589#define $ac_tr_func 1
17590EOF
17591
17592else
17593 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17594fi
17595done
17596
8284b0c5 17597
4f14bcd8 17598 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17599 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17600 wxUSE_ON_FATAL_EXCEPTION=no
17601 fi
17602
17603 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17604
17605 ac_ext=C
17606# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17607ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17608ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17609ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17610cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17611
5c6fa7d2 17612
a0b9e27f 17613 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
7bb2947d 17614echo "configure:17615: checking for sa_handler type" >&5
a0b9e27f
MB
17615if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17616 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17617else
a0b9e27f
MB
17618
17619 cat > conftest.$ac_ext <<EOF
7bb2947d 17620#line 17621 "configure"
af15babd 17621#include "confdefs.h"
4f14bcd8 17622#include <signal.h>
a0b9e27f 17623int main() {
4f14bcd8
GD
17624
17625 extern void testSigHandler(int);
17626
17627 struct sigaction sa;
17628 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17629
17630; return 0; }
17631EOF
7bb2947d 17632if { (eval echo configure:17633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17633 rm -rf conftest*
17634
4f14bcd8 17635 wx_cv_type_sa_handler=int
a0b9e27f 17636
af15babd 17637else
a0b9e27f
MB
17638 echo "configure: failed program was:" >&5
17639 cat conftest.$ac_ext >&5
17640 rm -rf conftest*
17641
4f14bcd8 17642 wx_cv_type_sa_handler=void
a0b9e27f 17643
5c6fa7d2 17644fi
a0b9e27f
MB
17645rm -f conftest*
17646
247f5006 17647fi
a0b9e27f
MB
17648
17649echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17650
17651 ac_ext=c
a0b9e27f 17652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17653ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17656cross_compiling=$ac_cv_prog_cc_cross
579d8138 17657
8284b0c5 17658
a0b9e27f 17659 cat >> confdefs.h <<EOF
4f14bcd8 17660#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17661EOF
af15babd 17662
4f14bcd8
GD
17663 fi
17664fi
af15babd 17665
a1d22ad7 17666for ac_func in mkstemp mktemp
af15babd 17667do
a0b9e27f 17668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17669echo "configure:17670: checking for $ac_func" >&5
a0b9e27f
MB
17670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17671 echo $ac_n "(cached) $ac_c" 1>&6
17672else
17673 cat > conftest.$ac_ext <<EOF
7bb2947d 17674#line 17675 "configure"
af15babd
VZ
17675#include "confdefs.h"
17676/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17677 which can conflict with char $ac_func(); below. */
af15babd
VZ
17678#include <assert.h>
17679/* Override any gcc2 internal prototype to avoid an error. */
17680/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17681 builtin and then its argument prototype would still apply. */
17682char $ac_func();
17683
17684int main() {
17685
af15babd
VZ
17686/* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17690choke me
17691#else
a0b9e27f 17692$ac_func();
af15babd
VZ
17693#endif
17694
a0b9e27f
MB
17695; return 0; }
17696EOF
7bb2947d 17697if { (eval echo configure:17698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17698 rm -rf conftest*
17699 eval "ac_cv_func_$ac_func=yes"
17700else
17701 echo "configure: failed program was:" >&5
17702 cat conftest.$ac_ext >&5
17703 rm -rf conftest*
17704 eval "ac_cv_func_$ac_func=no"
17705fi
17706rm -f conftest*
17707fi
af15babd 17708
a0b9e27f
MB
17709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17710 echo "$ac_t""yes" 1>&6
17711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17712 cat >> confdefs.h <<EOF
17713#define $ac_tr_func 1
17714EOF
ade35f11 17715 break
a0b9e27f
MB
17716else
17717 echo "$ac_t""no" 1>&6
ade35f11
VZ
17718fi
17719done
17720
8284b0c5 17721
a0b9e27f 17722echo $ac_n "checking for statfs""... $ac_c" 1>&6
7bb2947d 17723echo "configure:17724: checking for statfs" >&5
a0b9e27f
MB
17724if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17725 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17726else
a0b9e27f 17727 cat > conftest.$ac_ext <<EOF
7bb2947d 17728#line 17729 "configure"
4f14bcd8
GD
17729#include "confdefs.h"
17730
17731 #if defined(__BSD__)
17732 #include <sys/param.h>
17733 #include <sys/mount.h>
17734 #else
17735 #include <sys/vfs.h>
17736 #endif
a0b9e27f
MB
17737
17738int main() {
4f14bcd8
GD
17739
17740 long l;
17741 struct statfs fs;
17742 statfs("/", &fs);
17743 l = fs.f_bsize;
17744 l += fs.f_blocks;
17745 l += fs.f_bavail;
a0b9e27f
MB
17746
17747; return 0; }
17748EOF
7bb2947d 17749if { (eval echo configure:17750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17750 rm -rf conftest*
17751
4f14bcd8 17752 wx_cv_func_statfs=yes
a0b9e27f 17753
4f14bcd8 17754else
a0b9e27f
MB
17755 echo "configure: failed program was:" >&5
17756 cat conftest.$ac_ext >&5
17757 rm -rf conftest*
17758
4f14bcd8 17759 wx_cv_func_statfs=no
a0b9e27f
MB
17760
17761
5c6fa7d2 17762fi
a0b9e27f 17763rm -f conftest*
8284b0c5 17764
247f5006 17765fi
a0b9e27f
MB
17766
17767echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17768
17769if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17770 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17771 cat >> confdefs.h <<\EOF
4f14bcd8 17772#define HAVE_STATFS 1
a0b9e27f 17773EOF
4f14bcd8
GD
17774
17775else
a0b9e27f 17776 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
7bb2947d 17777echo "configure:17778: checking for statvfs" >&5
a0b9e27f
MB
17778if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17779 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17780else
a0b9e27f 17781 cat > conftest.$ac_ext <<EOF
7bb2947d 17782#line 17783 "configure"
af15babd 17783#include "confdefs.h"
af15babd 17784
54ab82b3
VZ
17785 #include <stddef.h>
17786 #include <sys/statvfs.h>
a0b9e27f
MB
17787
17788int main() {
af15babd 17789
54ab82b3 17790 statvfs("/", NULL);
a0b9e27f
MB
17791
17792; return 0; }
17793EOF
7bb2947d 17794if { (eval echo configure:17795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17795 rm -rf conftest*
54ab82b3 17796 wx_cv_func_statvfs=yes
af15babd 17797else
a0b9e27f
MB
17798 echo "configure: failed program was:" >&5
17799 cat conftest.$ac_ext >&5
17800 rm -rf conftest*
54ab82b3 17801 wx_cv_func_statvfs=no
a0b9e27f 17802
5c6fa7d2 17803fi
a0b9e27f
MB
17804rm -f conftest*
17805
247f5006 17806fi
a0b9e27f
MB
17807
17808echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17809
4f14bcd8 17810 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17811
17812 ac_ext=C
17813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17814ac_cpp='$CXXCPP $CPPFLAGS'
17815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17817cross_compiling=$ac_cv_prog_cxx_cross
17818
17819
17820 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
7bb2947d 17821echo "configure:17822: checking for statvfs argument type" >&5
54ab82b3
VZ
17822if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17823 echo $ac_n "(cached) $ac_c" 1>&6
17824else
17825 cat > conftest.$ac_ext <<EOF
7bb2947d 17826#line 17827 "configure"
54ab82b3
VZ
17827#include "confdefs.h"
17828
17829 #include <sys/statvfs.h>
17830
17831int main() {
17832
17833 long l;
17834 statvfs_t fs;
17835 statvfs("/", &fs);
17836 l = fs.f_bsize;
17837 l += fs.f_blocks;
17838 l += fs.f_bavail;
17839
17840; return 0; }
17841EOF
7bb2947d 17842if { (eval echo configure:17843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17843 rm -rf conftest*
17844 wx_cv_type_statvfs_t=statvfs_t
17845else
17846 echo "configure: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 rm -rf conftest*
17849
17850 cat > conftest.$ac_ext <<EOF
7bb2947d 17851#line 17852 "configure"
54ab82b3
VZ
17852#include "confdefs.h"
17853
17854 #include <sys/statvfs.h>
17855
17856int main() {
17857
17858 long l;
65d8ef1e 17859 struct statvfs fs;
54ab82b3
VZ
17860 statvfs("/", &fs);
17861 l = fs.f_bsize;
17862 l += fs.f_blocks;
17863 l += fs.f_bavail;
17864
17865; return 0; }
17866EOF
7bb2947d 17867if { (eval echo configure:17868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17868 rm -rf conftest*
17869 wx_cv_type_statvfs_t="struct statvfs"
17870else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 wx_cv_type_statvfs_t="unknown"
17875
17876fi
17877rm -f conftest*
17878
17879
17880fi
17881rm -f conftest*
17882
17883fi
17884
17885echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17886
17887 ac_ext=c
17888# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17889ac_cpp='$CPP $CPPFLAGS'
17890ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17891ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17892cross_compiling=$ac_cv_prog_cc_cross
17893
17894
17895 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17896 cat >> confdefs.h <<\EOF
4f14bcd8 17897#define HAVE_STATVFS 1
a0b9e27f 17898EOF
af15babd 17899
54ab82b3 17900 fi
4f14bcd8 17901 else
54ab82b3 17902 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17903 fi
17904fi
af15babd 17905
54ab82b3
VZ
17906if test "$wx_cv_type_statvfs_t" != "unknown"; then
17907 cat >> confdefs.h <<EOF
17908#define WX_STATFS_T $wx_cv_type_statvfs_t
17909EOF
17910
17911else
17912 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17913fi
17914
4f14bcd8 17915if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17916 for ac_func in fcntl flock
af15babd 17917do
a0b9e27f 17918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17919echo "configure:17920: checking for $ac_func" >&5
a0b9e27f
MB
17920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17921 echo $ac_n "(cached) $ac_c" 1>&6
17922else
17923 cat > conftest.$ac_ext <<EOF
7bb2947d 17924#line 17925 "configure"
af15babd
VZ
17925#include "confdefs.h"
17926/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17927 which can conflict with char $ac_func(); below. */
af15babd
VZ
17928#include <assert.h>
17929/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17930/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17931 builtin and then its argument prototype would still apply. */
17932char $ac_func();
17933
17934int main() {
17935
af15babd
VZ
17936/* The GNU C library defines this for functions which it implements
17937 to always fail with ENOSYS. Some functions are actually named
17938 something starting with __ and the normal name is an alias. */
17939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17940choke me
17941#else
a0b9e27f 17942$ac_func();
af15babd
VZ
17943#endif
17944
a0b9e27f
MB
17945; return 0; }
17946EOF
7bb2947d 17947if { (eval echo configure:17948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17948 rm -rf conftest*
17949 eval "ac_cv_func_$ac_func=yes"
17950else
17951 echo "configure: failed program was:" >&5
17952 cat conftest.$ac_ext >&5
17953 rm -rf conftest*
17954 eval "ac_cv_func_$ac_func=no"
17955fi
17956rm -f conftest*
17957fi
17958
17959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17960 echo "$ac_t""yes" 1>&6
17961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17962 cat >> confdefs.h <<EOF
17963#define $ac_tr_func 1
17964EOF
4f14bcd8 17965 break
a0b9e27f
MB
17966else
17967 echo "$ac_t""no" 1>&6
af15babd
VZ
17968fi
17969done
17970
8284b0c5 17971
4f14bcd8 17972 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17973 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17974 wxUSE_SNGLINST_CHECKER=no
17975 fi
17976fi
af15babd 17977
4f14bcd8 17978for ac_func in timegm
af15babd 17979do
a0b9e27f 17980echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 17981echo "configure:17982: checking for $ac_func" >&5
a0b9e27f
MB
17982if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17983 echo $ac_n "(cached) $ac_c" 1>&6
17984else
17985 cat > conftest.$ac_ext <<EOF
7bb2947d 17986#line 17987 "configure"
af15babd
VZ
17987#include "confdefs.h"
17988/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17989 which can conflict with char $ac_func(); below. */
af15babd
VZ
17990#include <assert.h>
17991/* Override any gcc2 internal prototype to avoid an error. */
17992/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17993 builtin and then its argument prototype would still apply. */
17994char $ac_func();
17995
17996int main() {
17997
af15babd
VZ
17998/* The GNU C library defines this for functions which it implements
17999 to always fail with ENOSYS. Some functions are actually named
18000 something starting with __ and the normal name is an alias. */
247f5006
VZ
18001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18002choke me
18003#else
a0b9e27f 18004$ac_func();
247f5006
VZ
18005#endif
18006
a0b9e27f
MB
18007; return 0; }
18008EOF
7bb2947d 18009if { (eval echo configure:18010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18010 rm -rf conftest*
18011 eval "ac_cv_func_$ac_func=yes"
18012else
18013 echo "configure: failed program was:" >&5
18014 cat conftest.$ac_ext >&5
18015 rm -rf conftest*
18016 eval "ac_cv_func_$ac_func=no"
18017fi
18018rm -f conftest*
18019fi
703e0a69 18020
a0b9e27f
MB
18021if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18022 echo "$ac_t""yes" 1>&6
18023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18024 cat >> confdefs.h <<EOF
18025#define $ac_tr_func 1
18026EOF
18027
18028else
18029 echo "$ac_t""no" 1>&6
af15babd
VZ
18030fi
18031done
18032
8284b0c5 18033
4f14bcd8 18034for ac_func in putenv setenv
10f2d63a 18035do
a0b9e27f 18036echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18037echo "configure:18038: checking for $ac_func" >&5
a0b9e27f
MB
18038if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18039 echo $ac_n "(cached) $ac_c" 1>&6
18040else
18041 cat > conftest.$ac_ext <<EOF
7bb2947d 18042#line 18043 "configure"
af15babd
VZ
18043#include "confdefs.h"
18044/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18045 which can conflict with char $ac_func(); below. */
af15babd
VZ
18046#include <assert.h>
18047/* Override any gcc2 internal prototype to avoid an error. */
18048/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18049 builtin and then its argument prototype would still apply. */
18050char $ac_func();
18051
18052int main() {
18053
af15babd
VZ
18054/* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18058choke me
18059#else
a0b9e27f 18060$ac_func();
af15babd
VZ
18061#endif
18062
a0b9e27f
MB
18063; return 0; }
18064EOF
7bb2947d 18065if { (eval echo configure:18066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18066 rm -rf conftest*
18067 eval "ac_cv_func_$ac_func=yes"
18068else
18069 echo "configure: failed program was:" >&5
18070 cat conftest.$ac_ext >&5
18071 rm -rf conftest*
18072 eval "ac_cv_func_$ac_func=no"
18073fi
18074rm -f conftest*
18075fi
18076
18077if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18078 echo "$ac_t""yes" 1>&6
18079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18080 cat >> confdefs.h <<EOF
18081#define $ac_tr_func 1
18082EOF
4f14bcd8 18083 break
a0b9e27f
MB
18084else
18085 echo "$ac_t""no" 1>&6
af15babd 18086fi
af15babd
VZ
18087done
18088
8284b0c5 18089
4f14bcd8
GD
18090HAVE_SOME_SLEEP_FUNC=0
18091if test "$USE_BEOS" = 1; then
a0b9e27f 18092 cat >> confdefs.h <<\EOF
4f14bcd8 18093#define HAVE_SLEEP 1
a0b9e27f 18094EOF
af15babd 18095
4f14bcd8 18096 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18097fi
18098
4f14bcd8 18099if test "$USE_DARWIN" = 1; then
a0b9e27f 18100 cat >> confdefs.h <<\EOF
4f14bcd8 18101#define HAVE_USLEEP 1
a0b9e27f 18102EOF
10f2d63a 18103
4f14bcd8 18104 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18105fi
18106
4f14bcd8
GD
18107if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18108 POSIX4_LINK=
a0b9e27f 18109 for ac_func in nanosleep
4f14bcd8 18110do
a0b9e27f 18111echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18112echo "configure:18113: checking for $ac_func" >&5
a0b9e27f
MB
18113if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18114 echo $ac_n "(cached) $ac_c" 1>&6
18115else
18116 cat > conftest.$ac_ext <<EOF
7bb2947d 18117#line 18118 "configure"
10f2d63a 18118#include "confdefs.h"
4f14bcd8 18119/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18120 which can conflict with char $ac_func(); below. */
4f14bcd8 18121#include <assert.h>
10f2d63a
VZ
18122/* Override any gcc2 internal prototype to avoid an error. */
18123/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18124 builtin and then its argument prototype would still apply. */
18125char $ac_func();
18126
18127int main() {
18128
4f14bcd8
GD
18129/* The GNU C library defines this for functions which it implements
18130 to always fail with ENOSYS. Some functions are actually named
18131 something starting with __ and the normal name is an alias. */
18132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18133choke me
18134#else
a0b9e27f 18135$ac_func();
4f14bcd8
GD
18136#endif
18137
a0b9e27f
MB
18138; return 0; }
18139EOF
7bb2947d 18140if { (eval echo configure:18141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18141 rm -rf conftest*
18142 eval "ac_cv_func_$ac_func=yes"
18143else
18144 echo "configure: failed program was:" >&5
18145 cat conftest.$ac_ext >&5
18146 rm -rf conftest*
18147 eval "ac_cv_func_$ac_func=no"
18148fi
18149rm -f conftest*
18150fi
18151
18152if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18153 echo "$ac_t""yes" 1>&6
18154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18155 cat >> confdefs.h <<EOF
18156#define $ac_tr_func 1
18157EOF
18158 cat >> confdefs.h <<\EOF
4f14bcd8 18159#define HAVE_NANOSLEEP 1
a0b9e27f 18160EOF
4f14bcd8 18161
10f2d63a 18162else
a0b9e27f
MB
18163 echo "$ac_t""no" 1>&6
18164echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
7bb2947d 18165echo "configure:18166: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18166ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18168 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18169else
a0b9e27f 18170 ac_save_LIBS="$LIBS"
4f14bcd8 18171LIBS="-lposix4 $LIBS"
a0b9e27f 18172cat > conftest.$ac_ext <<EOF
7bb2947d 18173#line 18174 "configure"
10f2d63a
VZ
18174#include "confdefs.h"
18175/* Override any gcc2 internal prototype to avoid an error. */
18176/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18177 builtin and then its argument prototype would still apply. */
18178char nanosleep();
18179
18180int main() {
18181nanosleep()
18182; return 0; }
18183EOF
7bb2947d 18184if { (eval echo configure:18185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18185 rm -rf conftest*
18186 eval "ac_cv_lib_$ac_lib_var=yes"
18187else
18188 echo "configure: failed program was:" >&5
18189 cat conftest.$ac_ext >&5
18190 rm -rf conftest*
18191 eval "ac_cv_lib_$ac_lib_var=no"
18192fi
18193rm -f conftest*
18194LIBS="$ac_save_LIBS"
18195
18196fi
18197if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18198 echo "$ac_t""yes" 1>&6
18199
18200 cat >> confdefs.h <<\EOF
4f14bcd8 18201#define HAVE_NANOSLEEP 1
a0b9e27f 18202EOF
4f14bcd8 18203
3d63bc3a 18204 POSIX4_LINK=" -lposix4"
a0b9e27f 18205
10f2d63a 18206else
a0b9e27f 18207 echo "$ac_t""no" 1>&6
10f2d63a 18208
a0b9e27f 18209 for ac_func in usleep
4f14bcd8 18210do
a0b9e27f 18211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18212echo "configure:18213: checking for $ac_func" >&5
a0b9e27f
MB
18213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18214 echo $ac_n "(cached) $ac_c" 1>&6
18215else
18216 cat > conftest.$ac_ext <<EOF
7bb2947d 18217#line 18218 "configure"
10f2d63a 18218#include "confdefs.h"
4f14bcd8 18219/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18220 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18221#include <assert.h>
18222/* Override any gcc2 internal prototype to avoid an error. */
18223/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18224 builtin and then its argument prototype would still apply. */
18225char $ac_func();
18226
18227int main() {
18228
4f14bcd8
GD
18229/* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18233choke me
18234#else
a0b9e27f 18235$ac_func();
4f14bcd8
GD
18236#endif
18237
a0b9e27f
MB
18238; return 0; }
18239EOF
7bb2947d 18240if { (eval echo configure:18241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18241 rm -rf conftest*
18242 eval "ac_cv_func_$ac_func=yes"
18243else
18244 echo "configure: failed program was:" >&5
18245 cat conftest.$ac_ext >&5
18246 rm -rf conftest*
18247 eval "ac_cv_func_$ac_func=no"
18248fi
18249rm -f conftest*
18250fi
18251
18252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18253 echo "$ac_t""yes" 1>&6
18254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18255 cat >> confdefs.h <<EOF
18256#define $ac_tr_func 1
18257EOF
18258 cat >> confdefs.h <<\EOF
4f14bcd8 18259#define HAVE_USLEEP 1
a0b9e27f 18260EOF
4f14bcd8 18261
698dcdb6 18262else
a0b9e27f
MB
18263 echo "$ac_t""no" 1>&6
18264echo "configure: warning: wxSleep() function will not work" 1>&2
18265
10f2d63a 18266fi
4f14bcd8 18267done
10f2d63a 18268
a0b9e27f
MB
18269
18270
6232543b 18271fi
10f2d63a 18272
a0b9e27f
MB
18273
18274
1e487827 18275fi
4f14bcd8 18276done
703e0a69 18277
10f2d63a
VZ
18278fi
18279
4f14bcd8 18280for ac_func in uname gethostname
70846f0a 18281do
a0b9e27f 18282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18283echo "configure:18284: checking for $ac_func" >&5
a0b9e27f
MB
18284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18285 echo $ac_n "(cached) $ac_c" 1>&6
18286else
18287 cat > conftest.$ac_ext <<EOF
7bb2947d 18288#line 18289 "configure"
70846f0a
VZ
18289#include "confdefs.h"
18290/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18291 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18292#include <assert.h>
18293/* Override any gcc2 internal prototype to avoid an error. */
18294/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18295 builtin and then its argument prototype would still apply. */
18296char $ac_func();
18297
18298int main() {
18299
70846f0a
VZ
18300/* The GNU C library defines this for functions which it implements
18301 to always fail with ENOSYS. Some functions are actually named
18302 something starting with __ and the normal name is an alias. */
18303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18304choke me
18305#else
a0b9e27f 18306$ac_func();
70846f0a
VZ
18307#endif
18308
a0b9e27f
MB
18309; return 0; }
18310EOF
7bb2947d 18311if { (eval echo configure:18312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18312 rm -rf conftest*
18313 eval "ac_cv_func_$ac_func=yes"
18314else
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18317 rm -rf conftest*
18318 eval "ac_cv_func_$ac_func=no"
18319fi
18320rm -f conftest*
18321fi
18322
18323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18324 echo "$ac_t""yes" 1>&6
18325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18326 cat >> confdefs.h <<EOF
18327#define $ac_tr_func 1
18328EOF
4f14bcd8 18329 break
a0b9e27f
MB
18330else
18331 echo "$ac_t""no" 1>&6
70846f0a
VZ
18332fi
18333done
18334
8284b0c5
MB
18335
18336
a0b9e27f
MB
18337ac_ext=C
18338# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18339ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18340ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18343
4f14bcd8
GD
18344
18345for ac_func in strtok_r
10f2d63a 18346do
a0b9e27f 18347echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18348echo "configure:18349: checking for $ac_func" >&5
a0b9e27f
MB
18349if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18350 echo $ac_n "(cached) $ac_c" 1>&6
18351else
18352 cat > conftest.$ac_ext <<EOF
7bb2947d 18353#line 18354 "configure"
10f2d63a 18354#include "confdefs.h"
4f14bcd8 18355/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18356 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18357#include <assert.h>
18358/* Override any gcc2 internal prototype to avoid an error. */
18359#ifdef __cplusplus
18360extern "C"
18361#endif
18362/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18363 builtin and then its argument prototype would still apply. */
18364char $ac_func();
18365
18366int main() {
18367
4f14bcd8
GD
18368/* The GNU C library defines this for functions which it implements
18369 to always fail with ENOSYS. Some functions are actually named
18370 something starting with __ and the normal name is an alias. */
18371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18372choke me
18373#else
a0b9e27f 18374$ac_func();
4f14bcd8
GD
18375#endif
18376
a0b9e27f
MB
18377; return 0; }
18378EOF
7bb2947d 18379if { (eval echo configure:18380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18380 rm -rf conftest*
18381 eval "ac_cv_func_$ac_func=yes"
18382else
18383 echo "configure: failed program was:" >&5
18384 cat conftest.$ac_ext >&5
18385 rm -rf conftest*
18386 eval "ac_cv_func_$ac_func=no"
18387fi
18388rm -f conftest*
18389fi
4f14bcd8 18390
a0b9e27f
MB
18391if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18392 echo "$ac_t""yes" 1>&6
18393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18394 cat >> confdefs.h <<EOF
18395#define $ac_tr_func 1
18396EOF
18397
18398else
18399 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18400fi
18401done
18402
8284b0c5 18403
4f14bcd8 18404ac_ext=c
a0b9e27f 18405# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18406ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18407ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18408ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18409cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18410
5c6fa7d2 18411
8284b0c5 18412INET_LINK=
4f14bcd8
GD
18413for ac_func in inet_addr
18414do
a0b9e27f 18415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18416echo "configure:18417: checking for $ac_func" >&5
a0b9e27f
MB
18417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18418 echo $ac_n "(cached) $ac_c" 1>&6
18419else
18420 cat > conftest.$ac_ext <<EOF
7bb2947d 18421#line 18422 "configure"
10f2d63a 18422#include "confdefs.h"
4f14bcd8 18423/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18424 which can conflict with char $ac_func(); below. */
4f14bcd8 18425#include <assert.h>
10f2d63a
VZ
18426/* Override any gcc2 internal prototype to avoid an error. */
18427/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18428 builtin and then its argument prototype would still apply. */
18429char $ac_func();
18430
18431int main() {
18432
4f14bcd8
GD
18433/* The GNU C library defines this for functions which it implements
18434 to always fail with ENOSYS. Some functions are actually named
18435 something starting with __ and the normal name is an alias. */
18436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18437choke me
18438#else
a0b9e27f 18439$ac_func();
4f14bcd8
GD
18440#endif
18441
a0b9e27f
MB
18442; return 0; }
18443EOF
7bb2947d 18444if { (eval echo configure:18445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18445 rm -rf conftest*
18446 eval "ac_cv_func_$ac_func=yes"
18447else
18448 echo "configure: failed program was:" >&5
18449 cat conftest.$ac_ext >&5
18450 rm -rf conftest*
18451 eval "ac_cv_func_$ac_func=no"
18452fi
18453rm -f conftest*
18454fi
18455
18456if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18457 echo "$ac_t""yes" 1>&6
18458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18459 cat >> confdefs.h <<EOF
18460#define $ac_tr_func 1
18461EOF
18462 cat >> confdefs.h <<\EOF
4f14bcd8 18463#define HAVE_INET_ADDR 1
a0b9e27f 18464EOF
10f2d63a
VZ
18465
18466else
a0b9e27f
MB
18467 echo "$ac_t""no" 1>&6
18468echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
7bb2947d 18469echo "configure:18470: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18470ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18472 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18473else
a0b9e27f 18474 ac_save_LIBS="$LIBS"
4f14bcd8 18475LIBS="-lnsl $LIBS"
a0b9e27f 18476cat > conftest.$ac_ext <<EOF
7bb2947d 18477#line 18478 "configure"
10f2d63a
VZ
18478#include "confdefs.h"
18479/* Override any gcc2 internal prototype to avoid an error. */
18480/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18481 builtin and then its argument prototype would still apply. */
18482char inet_addr();
18483
18484int main() {
18485inet_addr()
18486; return 0; }
18487EOF
7bb2947d 18488if { (eval echo configure:18489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18489 rm -rf conftest*
18490 eval "ac_cv_lib_$ac_lib_var=yes"
18491else
18492 echo "configure: failed program was:" >&5
18493 cat conftest.$ac_ext >&5
18494 rm -rf conftest*
18495 eval "ac_cv_lib_$ac_lib_var=no"
18496fi
18497rm -f conftest*
18498LIBS="$ac_save_LIBS"
18499
18500fi
18501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18502 echo "$ac_t""yes" 1>&6
4f14bcd8 18503 INET_LINK="nsl"
10f2d63a 18504else
a0b9e27f
MB
18505 echo "$ac_t""no" 1>&6
18506echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
7bb2947d 18507echo "configure:18508: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18508ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18510 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18511else
a0b9e27f 18512 ac_save_LIBS="$LIBS"
4f14bcd8 18513LIBS="-lresolv $LIBS"
a0b9e27f 18514cat > conftest.$ac_ext <<EOF
7bb2947d 18515#line 18516 "configure"
7b4a847f 18516#include "confdefs.h"
5c6fa7d2 18517/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18518/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18519 builtin and then its argument prototype would still apply. */
18520char inet_addr();
18521
18522int main() {
18523inet_addr()
18524; return 0; }
18525EOF
7bb2947d 18526if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18527 rm -rf conftest*
18528 eval "ac_cv_lib_$ac_lib_var=yes"
18529else
18530 echo "configure: failed program was:" >&5
18531 cat conftest.$ac_ext >&5
18532 rm -rf conftest*
18533 eval "ac_cv_lib_$ac_lib_var=no"
18534fi
18535rm -f conftest*
18536LIBS="$ac_save_LIBS"
18537
18538fi
18539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18540 echo "$ac_t""yes" 1>&6
4f14bcd8 18541 INET_LINK="resolv"
698dcdb6 18542else
a0b9e27f
MB
18543 echo "$ac_t""no" 1>&6
18544echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
7bb2947d 18545echo "configure:18546: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18546ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18548 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18549else
a0b9e27f 18550 ac_save_LIBS="$LIBS"
3c011993 18551LIBS="-lsocket $LIBS"
a0b9e27f 18552cat > conftest.$ac_ext <<EOF
7bb2947d 18553#line 18554 "configure"
3c011993
VZ
18554#include "confdefs.h"
18555/* Override any gcc2 internal prototype to avoid an error. */
18556/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18557 builtin and then its argument prototype would still apply. */
18558char inet_addr();
4f14bcd8 18559
a0b9e27f
MB
18560int main() {
18561inet_addr()
18562; return 0; }
18563EOF
7bb2947d 18564if { (eval echo configure:18565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18565 rm -rf conftest*
18566 eval "ac_cv_lib_$ac_lib_var=yes"
18567else
18568 echo "configure: failed program was:" >&5
18569 cat conftest.$ac_ext >&5
18570 rm -rf conftest*
18571 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18572fi
a0b9e27f
MB
18573rm -f conftest*
18574LIBS="$ac_save_LIBS"
698dcdb6 18575
7b4a847f 18576fi
a0b9e27f
MB
18577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18578 echo "$ac_t""yes" 1>&6
18579 INET_LINK="socket"
18580
18581else
18582 echo "$ac_t""no" 1>&6
18583fi
579d8138 18584
a0b9e27f 18585
5c6fa7d2 18586fi
52127426 18587
a0b9e27f
MB
18588
18589fi
247f5006 18590
a0b9e27f 18591
8284b0c5 18592
698dcdb6 18593fi
4f14bcd8
GD
18594done
18595
8284b0c5 18596
4f14bcd8
GD
18597for ac_func in inet_aton
18598do
a0b9e27f 18599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18600echo "configure:18601: checking for $ac_func" >&5
a0b9e27f
MB
18601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18602 echo $ac_n "(cached) $ac_c" 1>&6
18603else
18604 cat > conftest.$ac_ext <<EOF
7bb2947d 18605#line 18606 "configure"
f6bcfd97 18606#include "confdefs.h"
4f14bcd8 18607/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18608 which can conflict with char $ac_func(); below. */
4f14bcd8 18609#include <assert.h>
f6bcfd97
BP
18610/* Override any gcc2 internal prototype to avoid an error. */
18611/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18612 builtin and then its argument prototype would still apply. */
18613char $ac_func();
18614
18615int main() {
18616
4f14bcd8
GD
18617/* The GNU C library defines this for functions which it implements
18618 to always fail with ENOSYS. Some functions are actually named
18619 something starting with __ and the normal name is an alias. */
18620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18621choke me
18622#else
a0b9e27f 18623$ac_func();
4f14bcd8
GD
18624#endif
18625
a0b9e27f
MB
18626; return 0; }
18627EOF
7bb2947d 18628if { (eval echo configure:18629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18629 rm -rf conftest*
18630 eval "ac_cv_func_$ac_func=yes"
18631else
18632 echo "configure: failed program was:" >&5
18633 cat conftest.$ac_ext >&5
18634 rm -rf conftest*
18635 eval "ac_cv_func_$ac_func=no"
18636fi
18637rm -f conftest*
18638fi
18639
18640if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18641 echo "$ac_t""yes" 1>&6
18642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18643 cat >> confdefs.h <<EOF
18644#define $ac_tr_func 1
18645EOF
18646 cat >> confdefs.h <<\EOF
4f14bcd8 18647#define HAVE_INET_ATON 1
a0b9e27f 18648EOF
4f14bcd8 18649
10f2d63a 18650else
a0b9e27f
MB
18651 echo "$ac_t""no" 1>&6
18652 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
7bb2947d 18653echo "configure:18654: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18654ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18656 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18657else
a0b9e27f 18658 ac_save_LIBS="$LIBS"
4f14bcd8 18659LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18660cat > conftest.$ac_ext <<EOF
7bb2947d 18661#line 18662 "configure"
10f2d63a 18662#include "confdefs.h"
6232543b 18663/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18664/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18665 builtin and then its argument prototype would still apply. */
18666char inet_aton();
18667
18668int main() {
18669inet_aton()
18670; return 0; }
18671EOF
7bb2947d 18672if { (eval echo configure:18673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18673 rm -rf conftest*
18674 eval "ac_cv_lib_$ac_lib_var=yes"
18675else
18676 echo "configure: failed program was:" >&5
18677 cat conftest.$ac_ext >&5
18678 rm -rf conftest*
18679 eval "ac_cv_lib_$ac_lib_var=no"
18680fi
18681rm -f conftest*
18682LIBS="$ac_save_LIBS"
4f14bcd8 18683
10f2d63a 18684fi
a0b9e27f
MB
18685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18686 echo "$ac_t""yes" 1>&6
18687 cat >> confdefs.h <<\EOF
18688#define HAVE_INET_ATON 1
18689EOF
10f2d63a 18690
a0b9e27f
MB
18691else
18692 echo "$ac_t""no" 1>&6
18693fi
247f5006 18694
a0b9e27f 18695
10f2d63a 18696fi
4f14bcd8 18697done
10f2d63a 18698
8284b0c5 18699
4f14bcd8 18700if test "x$INET_LINK" != "x"; then
a0b9e27f 18701 cat >> confdefs.h <<\EOF
4f14bcd8 18702#define HAVE_INET_ADDR 1
a0b9e27f 18703EOF
4f14bcd8 18704
3d63bc3a 18705 INET_LINK=" -l$INET_LINK"
6232543b 18706fi
10f2d63a 18707
1e487827 18708fi
703e0a69 18709
8284b0c5 18710
a0b9e27f 18711cat > confcache <<\EOF
4f14bcd8
GD
18712# This file is a shell script that caches the results of configure
18713# tests run on this system so they can be shared between configure
a0b9e27f
MB
18714# scripts and configure runs. It is not useful on other systems.
18715# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18716#
a0b9e27f
MB
18717# By default, configure uses ./config.cache as the cache file,
18718# creating it if it does not exist already. You can give configure
18719# the --cache-file=FILE option to use a different cache file; that is
18720# what configure does when it calls configure scripts in
18721# subdirectories, so they share the cache.
18722# Giving --cache-file=/dev/null disables caching, for debugging configure.
18723# config.status only pays attention to the cache file if you give it the
18724# --recheck option to rerun configure.
4f14bcd8 18725#
a0b9e27f 18726EOF
4f14bcd8
GD
18727# The following way of writing the cache mishandles newlines in values,
18728# but we know of no workaround that is simple, portable, and efficient.
18729# So, don't put newlines in cache variables' values.
18730# Ultrix sh set writes to stderr and can't be redirected directly,
18731# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18732(set) 2>&1 |
18733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18734 *ac_space=\ *)
18735 # `set' does not quote correctly, so add quotes (double-quote substitution
18736 # turns \\\\ into \\, and sed turns \\ into \).
18737 sed -n \
18738 -e "s/'/'\\\\''/g" \
18739 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18740 ;;
18741 *)
18742 # `set' quotes correctly as required by POSIX, so do not add quotes.
18743 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18744 ;;
18745 esac >> confcache
18746if cmp -s $cache_file confcache; then
18747 :
18748else
4f14bcd8 18749 if test -w $cache_file; then
a0b9e27f
MB
18750 echo "updating cache $cache_file"
18751 cat confcache > $cache_file
f6bcfd97 18752 else
4f14bcd8 18753 echo "not updating unwritable cache $cache_file"
f6bcfd97 18754 fi
4f14bcd8
GD
18755fi
18756rm -f confcache
f6bcfd97 18757
8284b0c5 18758
a0b9e27f 18759
009fead0 18760CPP_MT_FLAG=
4f14bcd8
GD
18761if test "$TOOLKIT" != "MSW"; then
18762
a0b9e27f 18763
7274f1c7 18764 THREADS_LINK=
009fead0 18765 THREADS_CFLAGS=
7274f1c7
RL
18766
18767 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18768 if test "$USE_BEOS" = 1; then
a0b9e27f 18769 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18770 wxUSE_THREADS="no"
18771 fi
4f14bcd8 18772 fi
4f14bcd8 18773
7274f1c7 18774 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18775
18776
009fead0
VZ
18777 THREAD_OPTS="-pthread"
18778 case "${host}" in
18779 *-*-solaris2* | *-*-sunos4* )
18780 if test "x$GCC" = "xyes"; then
126be6b4 18781 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18782 else
18783 THREAD_OPTS="-mt $THREAD_OPTS"
18784 fi
18785 ;;
18786 *-*-freebsd*)
18787 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18788 ;;
17234b26
MB
18789 *-*-darwin* | *-*-cygwin* )
18790 THREAD_OPTS=""
4101db81 18791 ;;
8f4a9a10 18792 *-*-aix*)
009fead0
VZ
18793 THREAD_OPTS="pthreads"
18794 ;;
4f5a7f74
VZ
18795 *-hp-hpux* )
18796 if test "x$GCC" != "xyes"; then
18797 THREAD_OPTS=""
18798 fi
89e3b3e4
VZ
18799 ;;
18800
18801 *-*-irix* )
18802 if test "x$GCC" = "xyes"; then
18803 THREAD_OPTS=""
18804 fi
18805 ;;
18806
18807 *-*-*UnixWare*)
18808 if test "x$GCC" != "xyes"; then
18809 THREAD_OPTS="-Ethread"
18810 fi
18811 ;;
009fead0 18812 esac
4f14bcd8 18813
02a1dfba 18814 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18815
009fead0
VZ
18816 THREADS_OK=no
18817 for flag in $THREAD_OPTS; do
18818 case $flag in
18819 none)
a0b9e27f 18820 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
7bb2947d 18821echo "configure:18822: checking whether pthreads work without any flags" >&5
009fead0 18822 ;;
698dcdb6 18823
009fead0 18824 -*)
a0b9e27f 18825 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
7bb2947d 18826echo "configure:18827: checking whether pthreads work with $flag" >&5
009fead0
VZ
18827 THREADS_CFLAGS="$flag"
18828 ;;
698dcdb6 18829
009fead0 18830 *)
a0b9e27f 18831 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
7bb2947d 18832echo "configure:18833: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18833 THREADS_LINK="-l$flag"
18834 ;;
18835 esac
10f2d63a 18836
009fead0
VZ
18837 save_LIBS="$LIBS"
18838 save_CFLAGS="$CFLAGS"
18839 LIBS="$THREADS_LINK $LIBS"
04727afd 18840 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18841
a0b9e27f 18842 cat > conftest.$ac_ext <<EOF
7bb2947d 18843#line 18844 "configure"
009fead0
VZ
18844#include "confdefs.h"
18845#include <pthread.h>
a0b9e27f 18846int main() {
009fead0 18847pthread_create(0,0,0,0);
a0b9e27f
MB
18848; return 0; }
18849EOF
7bb2947d 18850if { (eval echo configure:18851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18851 rm -rf conftest*
009fead0 18852 THREADS_OK=yes
10f2d63a 18853else
a0b9e27f
MB
18854 echo "configure: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
6232543b 18856fi
a0b9e27f 18857rm -f conftest*
698dcdb6 18858
009fead0
VZ
18859 LIBS="$save_LIBS"
18860 CFLAGS="$save_CFLAGS"
d9b9876f 18861
a0b9e27f 18862 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18863 if test "x$THREADS_OK" = "xyes"; then
18864 break;
18865 fi
d9b9876f 18866
009fead0
VZ
18867 THREADS_LINK=""
18868 THREADS_CFLAGS=""
18869 done
4f14bcd8 18870
009fead0
VZ
18871 if test "x$THREADS_OK" != "xyes"; then
18872 wxUSE_THREADS=no
a0b9e27f 18873 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18874 else
db82f09e
VZ
18875 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18876 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18877
a0b9e27f 18878 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
7bb2947d 18879echo "configure:18880: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18880 flag=no
18881 case "${host}" in
2b5f62a0
VZ
18882 *-aix*)
18883 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18884 flag="-D_THREAD_SAFE"
18885 ;;
18886 *-freebsd*)
009fead0
VZ
18887 flag="-D_THREAD_SAFE"
18888 ;;
06313569
GD
18889 *-hp-hpux* )
18890 flag="-D_REENTRANT"
4f5a7f74
VZ
18891 if test "x$GCC" != "xyes"; then
18892 flag="$flag -D_RWSTD_MULTI_THREAD"
18893 fi
06313569 18894 ;;
009fead0
VZ
18895 *solaris* | alpha*-osf*)
18896 flag="-D_REENTRANT"
18897 ;;
18898 esac
a0b9e27f 18899 echo "$ac_t""${flag}" 1>&6
009fead0 18900 if test "x$flag" != xno; then
04727afd 18901 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18902 fi
18903
009fead0 18904 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18905 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18906 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18907 fi
18908 fi
4f14bcd8 18909 fi
4f14bcd8 18910
7274f1c7 18911 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18912 for ac_func in thr_setconcurrency
4f14bcd8 18913do
a0b9e27f 18914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 18915echo "configure:18916: checking for $ac_func" >&5
a0b9e27f
MB
18916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18917 echo $ac_n "(cached) $ac_c" 1>&6
18918else
18919 cat > conftest.$ac_ext <<EOF
7bb2947d 18920#line 18921 "configure"
d9b9876f 18921#include "confdefs.h"
4f14bcd8 18922/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18923 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18924#include <assert.h>
18925/* Override any gcc2 internal prototype to avoid an error. */
18926/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18927 builtin and then its argument prototype would still apply. */
18928char $ac_func();
18929
18930int main() {
18931
4f14bcd8
GD
18932/* The GNU C library defines this for functions which it implements
18933 to always fail with ENOSYS. Some functions are actually named
18934 something starting with __ and the normal name is an alias. */
18935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18936choke me
18937#else
a0b9e27f 18938$ac_func();
4f14bcd8
GD
18939#endif
18940
a0b9e27f
MB
18941; return 0; }
18942EOF
7bb2947d 18943if { (eval echo configure:18944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18944 rm -rf conftest*
18945 eval "ac_cv_func_$ac_func=yes"
18946else
18947 echo "configure: failed program was:" >&5
18948 cat conftest.$ac_ext >&5
18949 rm -rf conftest*
18950 eval "ac_cv_func_$ac_func=no"
18951fi
18952rm -f conftest*
18953fi
698dcdb6 18954
a0b9e27f
MB
18955if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18956 echo "$ac_t""yes" 1>&6
18957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18958 cat >> confdefs.h <<EOF
18959#define $ac_tr_func 1
18960EOF
18961
18962else
18963 echo "$ac_t""no" 1>&6
10f2d63a 18964fi
4f14bcd8 18965done
10f2d63a 18966
8284b0c5 18967
a0b9e27f 18968 for ac_hdr in sched.h
4f14bcd8 18969do
a0b9e27f
MB
18970ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18971echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 18972echo "configure:18973: checking for $ac_hdr" >&5
a0b9e27f
MB
18973if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18974 echo $ac_n "(cached) $ac_c" 1>&6
18975else
18976 cat > conftest.$ac_ext <<EOF
7bb2947d 18977#line 18978 "configure"
247f5006 18978#include "confdefs.h"
a0b9e27f
MB
18979#include <$ac_hdr>
18980EOF
18981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 18982{ (eval echo configure:18983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18984if test -z "$ac_err"; then
18985 rm -rf conftest*
18986 eval "ac_cv_header_$ac_safe=yes"
18987else
18988 echo "$ac_err" >&5
18989 echo "configure: failed program was:" >&5
4f14bcd8 18990 cat conftest.$ac_ext >&5
a0b9e27f
MB
18991 rm -rf conftest*
18992 eval "ac_cv_header_$ac_safe=no"
13111b2a 18993fi
a0b9e27f 18994rm -f conftest*
10f2d63a 18995fi
a0b9e27f
MB
18996if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18997 echo "$ac_t""yes" 1>&6
18998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18999 cat >> confdefs.h <<EOF
19000#define $ac_tr_hdr 1
19001EOF
19002
19003else
19004 echo "$ac_t""no" 1>&6
f6bcfd97 19005fi
4f14bcd8 19006done
f6bcfd97 19007
009fead0 19008 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 19009 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
7bb2947d 19010echo "configure:19011: checking for sched_yield" >&5
a0b9e27f
MB
19011if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19012 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19013else
a0b9e27f 19014 cat > conftest.$ac_ext <<EOF
7bb2947d 19015#line 19016 "configure"
4f14bcd8 19016#include "confdefs.h"
009fead0 19017/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19018 which can conflict with char sched_yield(); below. */
009fead0 19019#include <assert.h>
4f14bcd8
GD
19020/* Override any gcc2 internal prototype to avoid an error. */
19021/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19022 builtin and then its argument prototype would still apply. */
19023char sched_yield();
19024
19025int main() {
19026
009fead0
VZ
19027/* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19031choke me
19032#else
a0b9e27f 19033sched_yield();
009fead0
VZ
19034#endif
19035
a0b9e27f
MB
19036; return 0; }
19037EOF
7bb2947d 19038if { (eval echo configure:19039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19039 rm -rf conftest*
19040 eval "ac_cv_func_sched_yield=yes"
19041else
19042 echo "configure: failed program was:" >&5
19043 cat conftest.$ac_ext >&5
19044 rm -rf conftest*
19045 eval "ac_cv_func_sched_yield=no"
19046fi
19047rm -f conftest*
19048fi
19049
19050if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19051 echo "$ac_t""yes" 1>&6
19052 cat >> confdefs.h <<\EOF
4f14bcd8 19053#define HAVE_SCHED_YIELD 1
a0b9e27f 19054EOF
10f2d63a 19055
4f14bcd8 19056else
a0b9e27f 19057 echo "$ac_t""no" 1>&6
009fead0 19058
a0b9e27f 19059 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
7bb2947d 19060echo "configure:19061: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
19061ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19063 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19064else
a0b9e27f 19065 ac_save_LIBS="$LIBS"
4f14bcd8 19066LIBS="-lposix4 $LIBS"
a0b9e27f 19067cat > conftest.$ac_ext <<EOF
7bb2947d 19068#line 19069 "configure"
4f14bcd8
GD
19069#include "confdefs.h"
19070/* Override any gcc2 internal prototype to avoid an error. */
19071/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19072 builtin and then its argument prototype would still apply. */
19073char sched_yield();
19074
19075int main() {
19076sched_yield()
19077; return 0; }
19078EOF
7bb2947d 19079if { (eval echo configure:19080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19080 rm -rf conftest*
19081 eval "ac_cv_lib_$ac_lib_var=yes"
19082else
19083 echo "configure: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19085 rm -rf conftest*
19086 eval "ac_cv_lib_$ac_lib_var=no"
19087fi
19088rm -f conftest*
19089LIBS="$ac_save_LIBS"
19090
19091fi
19092if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19093 echo "$ac_t""yes" 1>&6
19094 cat >> confdefs.h <<\EOF
4f14bcd8 19095#define HAVE_SCHED_YIELD 1
a0b9e27f 19096EOF
3d63bc3a 19097 POSIX4_LINK=" -lposix4"
4f14bcd8 19098else
a0b9e27f
MB
19099 echo "$ac_t""no" 1>&6
19100echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19101
54276ccf
VZ
19102fi
19103
a0b9e27f
MB
19104
19105
4f14bcd8 19106fi
698dcdb6 19107
009fead0 19108 fi
10f2d63a 19109
7274f1c7 19110 HAVE_PRIOR_FUNCS=0
a0b9e27f 19111 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
7bb2947d 19112echo "configure:19113: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
19113if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19114 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19115else
a0b9e27f 19116 cat > conftest.$ac_ext <<EOF
7bb2947d 19117#line 19118 "configure"
422107f9 19118#include "confdefs.h"
009fead0 19119/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19120 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 19121#include <assert.h>
4f14bcd8
GD
19122/* Override any gcc2 internal prototype to avoid an error. */
19123/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19124 builtin and then its argument prototype would still apply. */
19125char pthread_attr_getschedpolicy();
19126
19127int main() {
19128
009fead0
VZ
19129/* The GNU C library defines this for functions which it implements
19130 to always fail with ENOSYS. Some functions are actually named
19131 something starting with __ and the normal name is an alias. */
19132#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19133choke me
19134#else
a0b9e27f 19135pthread_attr_getschedpolicy();
009fead0
VZ
19136#endif
19137
a0b9e27f
MB
19138; return 0; }
19139EOF
7bb2947d 19140if { (eval echo configure:19141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19141 rm -rf conftest*
19142 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19143else
19144 echo "configure: failed program was:" >&5
19145 cat conftest.$ac_ext >&5
19146 rm -rf conftest*
19147 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19148fi
19149rm -f conftest*
19150fi
19151
19152if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19153 echo "$ac_t""yes" 1>&6
19154 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
7bb2947d 19155echo "configure:19156: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19156if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19157 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19158else
a0b9e27f 19159 cat > conftest.$ac_ext <<EOF
7bb2947d 19160#line 19161 "configure"
a0b9e27f
MB
19161#include "confdefs.h"
19162/* System header to define __stub macros and hopefully few prototypes,
19163 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19164#include <assert.h>
422107f9
VZ
19165/* Override any gcc2 internal prototype to avoid an error. */
19166/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19167 builtin and then its argument prototype would still apply. */
19168char pthread_attr_setschedparam();
19169
19170int main() {
19171
009fead0
VZ
19172/* The GNU C library defines this for functions which it implements
19173 to always fail with ENOSYS. Some functions are actually named
19174 something starting with __ and the normal name is an alias. */
19175#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19176choke me
19177#else
a0b9e27f 19178pthread_attr_setschedparam();
009fead0
VZ
19179#endif
19180
a0b9e27f
MB
19181; return 0; }
19182EOF
7bb2947d 19183if { (eval echo configure:19184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19184 rm -rf conftest*
19185 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19186else
19187 echo "configure: failed program was:" >&5
19188 cat conftest.$ac_ext >&5
19189 rm -rf conftest*
19190 eval "ac_cv_func_pthread_attr_setschedparam=no"
19191fi
19192rm -f conftest*
19193fi
19194
19195if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19196 echo "$ac_t""yes" 1>&6
19197 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
7bb2947d 19198echo "configure:19199: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19199if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19200 echo $ac_n "(cached) $ac_c" 1>&6
19201else
19202 cat > conftest.$ac_ext <<EOF
7bb2947d 19203#line 19204 "configure"
422107f9 19204#include "confdefs.h"
ef33c576
VZ
19205/* System header to define __stub macros and hopefully few prototypes,
19206 which can conflict with char sched_get_priority_max(); below. */
009fead0 19207#include <assert.h>
4f14bcd8
GD
19208/* Override any gcc2 internal prototype to avoid an error. */
19209/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19210 builtin and then its argument prototype would still apply. */
19211char sched_get_priority_max();
19212
19213int main() {
19214
009fead0
VZ
19215/* The GNU C library defines this for functions which it implements
19216 to always fail with ENOSYS. Some functions are actually named
19217 something starting with __ and the normal name is an alias. */
19218#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19219choke me
19220#else
a0b9e27f 19221sched_get_priority_max();
009fead0
VZ
19222#endif
19223
a0b9e27f
MB
19224; return 0; }
19225EOF
7bb2947d 19226if { (eval echo configure:19227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19227 rm -rf conftest*
19228 eval "ac_cv_func_sched_get_priority_max=yes"
19229else
19230 echo "configure: failed program was:" >&5
19231 cat conftest.$ac_ext >&5
19232 rm -rf conftest*
19233 eval "ac_cv_func_sched_get_priority_max=no"
19234fi
19235rm -f conftest*
19236fi
19237
19238if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19239 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19240 HAVE_PRIOR_FUNCS=1
19241else
a0b9e27f
MB
19242 echo "$ac_t""no" 1>&6
19243echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
7bb2947d 19244echo "configure:19245: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19245ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19246if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19247 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19248else
a0b9e27f 19249 ac_save_LIBS="$LIBS"
4f14bcd8 19250LIBS="-lposix4 $LIBS"
a0b9e27f 19251cat > conftest.$ac_ext <<EOF
7bb2947d 19252#line 19253 "configure"
422107f9
VZ
19253#include "confdefs.h"
19254/* Override any gcc2 internal prototype to avoid an error. */
19255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19256 builtin and then its argument prototype would still apply. */
19257char sched_get_priority_max();
19258
19259int main() {
19260sched_get_priority_max()
19261; return 0; }
19262EOF
7bb2947d 19263if { (eval echo configure:19264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19264 rm -rf conftest*
19265 eval "ac_cv_lib_$ac_lib_var=yes"
19266else
19267 echo "configure: failed program was:" >&5
19268 cat conftest.$ac_ext >&5
19269 rm -rf conftest*
19270 eval "ac_cv_lib_$ac_lib_var=no"
19271fi
19272rm -f conftest*
19273LIBS="$ac_save_LIBS"
698dcdb6 19274
a0b9e27f
MB
19275fi
19276if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19277 echo "$ac_t""yes" 1>&6
19278
7274f1c7
RL
19279 HAVE_PRIOR_FUNCS=1
19280 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19281
19282else
19283 echo "$ac_t""no" 1>&6
4f14bcd8 19284fi
463abc64 19285
a0b9e27f 19286
328a083c 19287fi
463abc64 19288
a0b9e27f
MB
19289
19290else
19291 echo "$ac_t""no" 1>&6
7b4a847f 19292fi
579d8138 19293
a0b9e27f 19294
ef33c576
VZ
19295else
19296 echo "$ac_t""no" 1>&6
5c6fa7d2 19297fi
52127426 19298
8284b0c5 19299
7274f1c7 19300 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19301 cat >> confdefs.h <<\EOF
4f14bcd8 19302#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19303EOF
463abc64 19304
7274f1c7 19305 else
a0b9e27f 19306 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19307 fi
463abc64 19308
a0b9e27f 19309 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
7bb2947d 19310echo "configure:19311: checking for pthread_cancel" >&5
a0b9e27f
MB
19311if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19312 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19313else
a0b9e27f 19314 cat > conftest.$ac_ext <<EOF
7bb2947d 19315#line 19316 "configure"
422107f9 19316#include "confdefs.h"
009fead0 19317/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19318 which can conflict with char pthread_cancel(); below. */
009fead0 19319#include <assert.h>
422107f9
VZ
19320/* Override any gcc2 internal prototype to avoid an error. */
19321/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19322 builtin and then its argument prototype would still apply. */
19323char pthread_cancel();
19324
19325int main() {
19326
009fead0
VZ
19327/* The GNU C library defines this for functions which it implements
19328 to always fail with ENOSYS. Some functions are actually named
19329 something starting with __ and the normal name is an alias. */
19330#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19331choke me
19332#else
a0b9e27f 19333pthread_cancel();
009fead0
VZ
19334#endif
19335
a0b9e27f
MB
19336; return 0; }
19337EOF
7bb2947d 19338if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19339 rm -rf conftest*
19340 eval "ac_cv_func_pthread_cancel=yes"
19341else
19342 echo "configure: failed program was:" >&5
19343 cat conftest.$ac_ext >&5
19344 rm -rf conftest*
19345 eval "ac_cv_func_pthread_cancel=no"
19346fi
19347rm -f conftest*
19348fi
19349
19350if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19351 echo "$ac_t""yes" 1>&6
19352 cat >> confdefs.h <<\EOF
4f14bcd8 19353#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19354EOF
4f14bcd8 19355
698dcdb6 19356else
a0b9e27f
MB
19357 echo "$ac_t""no" 1>&6
19358echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19359fi
19360
5c6fa7d2 19361
a0b9e27f 19362 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7bb2947d 19363echo "configure:19364: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19364if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19365 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19366else
a0b9e27f
MB
19367
19368 cat > conftest.$ac_ext <<EOF
7bb2947d 19369#line 19370 "configure"
4f14bcd8
GD
19370#include "confdefs.h"
19371#include <pthread.h>
a0b9e27f 19372int main() {
4f14bcd8 19373
7274f1c7
RL
19374 pthread_cleanup_push(NULL, NULL);
19375 pthread_cleanup_pop(0);
a0b9e27f
MB
19376
19377; return 0; }
19378EOF
7bb2947d 19379if { (eval echo configure:19380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19380 rm -rf conftest*
19381
7274f1c7 19382 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19383
4f14bcd8 19384else
a0b9e27f
MB
19385 echo "configure: failed program was:" >&5
19386 cat conftest.$ac_ext >&5
19387 rm -rf conftest*
19388
7274f1c7 19389 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19390
5c6fa7d2 19391fi
a0b9e27f
MB
19392rm -f conftest*
19393
247f5006 19394fi
a0b9e27f
MB
19395
19396echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19397
7274f1c7 19398 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19399 cat >> confdefs.h <<\EOF
4f14bcd8 19400#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19401EOF
c7a2bf27 19402
7274f1c7 19403 fi
4f14bcd8 19404
a0b9e27f
MB
19405
19406 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
7bb2947d 19407echo "configure:19408: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19408if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19409 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19410else
a0b9e27f
MB
19411
19412 cat > conftest.$ac_ext <<EOF
7bb2947d 19413#line 19414 "configure"
0dcf9893 19414#include "confdefs.h"
4f14bcd8 19415#include <pthread.h>
a0b9e27f 19416int main() {
4f14bcd8 19417
7274f1c7
RL
19418 pthread_mutexattr_t attr;
19419 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19420
19421; return 0; }
19422EOF
7bb2947d 19423if { (eval echo configure:19424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19424 rm -rf conftest*
19425
7274f1c7 19426 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19427
3fed1840 19428else
a0b9e27f
MB
19429 echo "configure: failed program was:" >&5
19430 cat conftest.$ac_ext >&5
19431 rm -rf conftest*
19432
7274f1c7 19433 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19434
19435
5c6fa7d2 19436fi
a0b9e27f
MB
19437rm -f conftest*
19438
247f5006 19439fi
a0b9e27f
MB
19440
19441echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19442
7274f1c7 19443 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19444 cat >> confdefs.h <<\EOF
4f14bcd8 19445#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19446EOF
4f14bcd8 19447
7274f1c7 19448 else
a0b9e27f 19449 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
7bb2947d 19450echo "configure:19451: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19451if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19452 echo $ac_n "(cached) $ac_c" 1>&6
19453else
19454
19455 cat > conftest.$ac_ext <<EOF
7bb2947d 19456#line 19457 "configure"
3fed1840 19457#include "confdefs.h"
4f14bcd8 19458#include <pthread.h>
a0b9e27f 19459int main() {
4f14bcd8 19460
7274f1c7 19461 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19462
19463; return 0; }
19464EOF
7bb2947d 19465if { (eval echo configure:19466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19466 rm -rf conftest*
19467
7274f1c7 19468 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19469
698dcdb6 19470else
a0b9e27f
MB
19471 echo "configure: failed program was:" >&5
19472 cat conftest.$ac_ext >&5
19473 rm -rf conftest*
19474
7274f1c7 19475 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19476
19477
5c6fa7d2 19478fi
a0b9e27f
MB
19479rm -f conftest*
19480
247f5006 19481fi
a0b9e27f
MB
19482
19483echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19484 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19485 cat >> confdefs.h <<\EOF
4f14bcd8 19486#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19487EOF
3fed1840 19488
7274f1c7 19489 else
a0b9e27f 19490 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19491 fi
19492 fi
7274f1c7 19493 fi
3fed1840 19494
a0b9e27f
MB
19495else
19496 if test "$wxUSE_THREADS" = "yes" ; then
19497 case "${host}" in
19498 *-*-mingw32* )
ca8e52b3 19499 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
7bb2947d 19500echo "configure:19501: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19501if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19502 echo $ac_n "(cached) $ac_c" 1>&6
19503else
19504
19505 CFLAGS_OLD="$CFLAGS"
19506 CFLAGS="$CFLAGS -mthreads"
19507 cat > conftest.$ac_ext <<EOF
7bb2947d 19508#line 19509 "configure"
ca8e52b3
VZ
19509#include "confdefs.h"
19510
19511int main() {
19512
19513; return 0; }
19514EOF
7bb2947d 19515if { (eval echo configure:19516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19516 rm -rf conftest*
19517 wx_cv_cflags_mthread=yes
19518else
19519 echo "configure: failed program was:" >&5
19520 cat conftest.$ac_ext >&5
19521 rm -rf conftest*
19522 wx_cv_cflags_mthread=no
19523
19524fi
19525rm -f conftest*
19526
19527
19528fi
19529
19530echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19531
19532 if test "$wx_cv_cflags_mthread" = "yes"; then
19533 CXXFLAGS="$CXXFLAGS -mthreads"
19534 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19535 LDFLAGS="$LDFLAGS -mthreads"
19536 else
19537 CFLAGS="$CFLAGS_OLD"
19538 fi
a0b9e27f
MB
19539 ;;
19540 esac
19541 fi
4f14bcd8
GD
19542fi
19543
19544if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19545 cat >> confdefs.h <<\EOF
4f14bcd8 19546#define wxUSE_THREADS 1
a0b9e27f 19547EOF
7b6058cd 19548
8284b0c5 19549
4f14bcd8 19550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19551else
4f14bcd8 19552 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19553 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
7bb2947d 19554echo "configure:19555: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19555 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19556 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19557 echo "$ac_t""yes" 1>&6
4f14bcd8 19558 else
a0b9e27f 19559 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19560 fi
19561 fi
19562fi
19563
19564if test "$WXGTK20" = 1 ; then
a0b9e27f 19565 cat >> confdefs.h <<EOF
4f14bcd8 19566#define __WXGTK20__ $WXGTK20
a0b9e27f 19567EOF
4f14bcd8
GD
19568
19569 WXGTK12=1
10f2d63a 19570fi
4f14bcd8
GD
19571
19572if test "$WXGTK12" = 1 ; then
a0b9e27f 19573 cat >> confdefs.h <<EOF
4f14bcd8 19574#define __WXGTK12__ $WXGTK12
a0b9e27f 19575EOF
4f14bcd8 19576
10f2d63a 19577fi
698dcdb6 19578
4f14bcd8 19579if test "$WXGTK127" = 1 ; then
a0b9e27f 19580 cat >> confdefs.h <<EOF
4f14bcd8 19581#define __WXGTK127__ $WXGTK127
a0b9e27f 19582EOF
4f14bcd8 19583
698dcdb6 19584fi
10f2d63a 19585
4f14bcd8
GD
19586WXDEBUG=
19587
19588if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19589 WXDEBUG="-g"
19590 wxUSE_OPTIMISE=no
698dcdb6 19591fi
4f14bcd8
GD
19592
19593if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19594 wxUSE_DEBUG_INFO=yes
19595 WXDEBUG="-ggdb"
10f2d63a
VZ
19596fi
19597
4f14bcd8 19598if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19599 cat >> confdefs.h <<\EOF
4f14bcd8 19600#define WXDEBUG 1
a0b9e27f 19601EOF
4f14bcd8
GD
19602
19603 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19604else
4f14bcd8
GD
19605 if test "$wxUSE_GTK" = 1 ; then
19606 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19607 fi
19608fi
19609
19610if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19611 cat >> confdefs.h <<\EOF
4f14bcd8 19612#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19613EOF
4f14bcd8 19614
a0b9e27f 19615 cat >> confdefs.h <<\EOF
4f14bcd8 19616#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19617EOF
4f14bcd8 19618
a0b9e27f 19619 cat >> confdefs.h <<\EOF
4f14bcd8 19620#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19621EOF
4f14bcd8
GD
19622
19623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19624fi
19625
19626if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19627 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19628fi
19629
19630PROFILE=
19631if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19632 PROFILE=" -pg"
10f2d63a
VZ
19633fi
19634
009fead0
VZ
19635CODE_GEN_FLAGS=
19636CODE_GEN_FLAGS_CXX=
88e30f2b 19637if test "$GCC" = "yes" ; then
4f14bcd8
GD
19638 if test "$wxUSE_NO_RTTI" = "yes" ; then
19639 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19640 fi
4f14bcd8
GD
19641 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19642 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19643 fi
19644 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19645 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19646 fi
4f14bcd8
GD
19647 if test "$USE_WIN32" = 1 ; then
19648 # I'm not even really sure what this was ever added to solve,
19649 # but someone added it for mingw native builds, so I guess
19650 # they had a reason, right??
19651 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19652 fi
1d1b75ac 19653
2b5f62a0 19654 case "${host}" in
1d1b75ac
VZ
19655 powerpc*-*-aix* )
19656 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19657 ;;
2b5f62a0
VZ
19658 *-hppa* )
19659 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19660 ;;
1d1b75ac 19661 esac
4f14bcd8
GD
19662fi
19663
af7b5345 19664OPTIMISE=
4f14bcd8 19665if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19666 if test "$GCC" = yes ; then
19667 OPTIMISE="-O0"
19668 fi
4f14bcd8
GD
19669else
19670 if test "$GCC" = yes ; then
19671 OPTIMISE="-O2"
af7b5345
VZ
19672
19673 case "${host}" in
4f14bcd8
GD
19674 i586-*-*|i686-*-* )
19675 OPTIMISE="${OPTIMISE} "
19676 ;;
19677 esac
19678 else
19679 OPTIMISE="-O"
19680 fi
19681fi
19682
8d90d2f2 19683
4f14bcd8 19684if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19685 cat >> confdefs.h <<\EOF
4f14bcd8 19686#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19687EOF
4f14bcd8 19688
8284b0c5 19689
4f14bcd8
GD
19690 WXWIN_COMPATIBILITY_2_2="yes"
19691fi
19692
65d8ef1e 19693if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19694 cat >> confdefs.h <<\EOF
4f14bcd8 19695#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19696EOF
4f14bcd8 19697
8d90d2f2
VZ
19698
19699 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19700fi
19701
65d8ef1e
VS
19702if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19703 cat >> confdefs.h <<\EOF
19704#define WXWIN_COMPATIBILITY_2_4 1
19705EOF
19706
19707fi
19708
8284b0c5 19709
10f2d63a 19710if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19711 cat >> confdefs.h <<\EOF
10f2d63a 19712#define wxUSE_GUI 1
a0b9e27f 19713EOF
10f2d63a 19714
8284b0c5 19715
10f2d63a 19716 else
a0b9e27f 19717 cat >> confdefs.h <<\EOF
10f2d63a 19718#define wxUSE_NOGUI 1
a0b9e27f 19719EOF
10f2d63a
VZ
19720
19721fi
19722
8284b0c5 19723
10f2d63a 19724if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19725 cat >> confdefs.h <<\EOF
10f2d63a 19726#define wxUSE_UNIX 1
a0b9e27f 19727EOF
10f2d63a
VZ
19728
19729fi
19730
8284b0c5 19731
10f2d63a 19732if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19733 cat >> confdefs.h <<\EOF
10f2d63a 19734#define wxUSE_APPLE_IEEE 1
a0b9e27f 19735EOF
10f2d63a
VZ
19736
19737fi
19738
1e6feb95 19739if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19740 cat >> confdefs.h <<\EOF
1e6feb95 19741#define wxUSE_TIMER 1
a0b9e27f 19742EOF
1e6feb95
VZ
19743
19744fi
19745
10f2d63a 19746if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19747 cat >> confdefs.h <<\EOF
10f2d63a 19748#define wxUSE_WAVE 1
a0b9e27f 19749EOF
10f2d63a
VZ
19750
19751fi
19752
1e6feb95 19753if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19754 cat >> confdefs.h <<\EOF
1e6feb95 19755#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19756EOF
1e6feb95
VZ
19757
19758fi
19759
19760if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19761 cat >> confdefs.h <<\EOF
1e6feb95 19762#define wxUSE_STOPWATCH 1
a0b9e27f 19763EOF
1e6feb95
VZ
19764
19765fi
19766
19767if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19768 cat >> confdefs.h <<\EOF
1e6feb95 19769#define wxUSE_DATETIME 1
a0b9e27f 19770EOF
1e6feb95
VZ
19771
19772fi
19773
10f2d63a 19774if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19775 cat >> confdefs.h <<\EOF
10f2d63a 19776#define wxUSE_FILE 1
a0b9e27f 19777EOF
10f2d63a
VZ
19778
19779fi
19780
1e6feb95 19781if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19782 cat >> confdefs.h <<\EOF
1e6feb95 19783#define wxUSE_FFILE 1
a0b9e27f 19784EOF
1e6feb95
VZ
19785
19786fi
19787
24528b0c 19788if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19789 cat >> confdefs.h <<\EOF
24528b0c 19790#define wxUSE_FILESYSTEM 1
a0b9e27f 19791EOF
24528b0c
VS
19792
19793fi
19794
10f2d63a 19795if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19796 cat >> confdefs.h <<\EOF
10f2d63a 19797#define wxUSE_FS_INET 1
a0b9e27f 19798EOF
10f2d63a
VZ
19799
19800fi
19801
19802if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19803 cat >> confdefs.h <<\EOF
10f2d63a 19804#define wxUSE_FS_ZIP 1
a0b9e27f 19805EOF
10f2d63a
VZ
19806
19807fi
19808
19809if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19810 cat >> confdefs.h <<\EOF
10f2d63a 19811#define wxUSE_ZIPSTREAM 1
a0b9e27f 19812EOF
10f2d63a
VZ
19813
19814fi
19815
eb4efbdc 19816if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19817 cat >> confdefs.h <<\EOF
eb4efbdc 19818#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19819EOF
eb4efbdc
VZ
19820
19821fi
19822
4f3c5f06 19823if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19824 cat >> confdefs.h <<\EOF
4f3c5f06 19825#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19826EOF
4f3c5f06
VZ
19827
19828fi
19829
10f2d63a 19830if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19831 cat >> confdefs.h <<\EOF
10f2d63a 19832#define wxUSE_BUSYINFO 1
a0b9e27f 19833EOF
10f2d63a
VZ
19834
19835fi
19836
19837if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19838 cat >> confdefs.h <<\EOF
10f2d63a 19839#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19840EOF
10f2d63a
VZ
19841
19842fi
19843
a3a584a7 19844if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19845 cat >> confdefs.h <<\EOF
a3a584a7 19846#define wxUSE_TEXTBUFFER 1
a0b9e27f 19847EOF
a3a584a7
VZ
19848
19849fi
19850
10f2d63a 19851if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19852 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19853 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19854 else
a0b9e27f 19855 cat >> confdefs.h <<\EOF
10f2d63a 19856#define wxUSE_TEXTFILE 1
a0b9e27f 19857EOF
10f2d63a
VZ
19858
19859 fi
19860fi
19861
19862if test "$wxUSE_CONFIG" = "yes" ; then
19863 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19864 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19865 else
a0b9e27f 19866 cat >> confdefs.h <<\EOF
10f2d63a 19867#define wxUSE_CONFIG 1
a0b9e27f 19868EOF
10f2d63a
VZ
19869
19870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19871 fi
19872fi
19873
19874if test "$wxUSE_INTL" = "yes" ; then
19875 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19876 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19877 else
a0b9e27f 19878 cat >> confdefs.h <<\EOF
10f2d63a 19879#define wxUSE_INTL 1
a0b9e27f 19880EOF
10f2d63a
VZ
19881
19882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19883 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19884 fi
19885fi
19886
19887if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19888 cat >> confdefs.h <<\EOF
10f2d63a 19889#define wxUSE_LOG 1
a0b9e27f 19890EOF
10f2d63a 19891
8284b0c5 19892
d73be714 19893 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19894 cat >> confdefs.h <<\EOF
d73be714 19895#define wxUSE_LOGGUI 1
a0b9e27f 19896EOF
d73be714
VZ
19897
19898 fi
19899
19900 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19901 cat >> confdefs.h <<\EOF
d73be714 19902#define wxUSE_LOGWINDOW 1
a0b9e27f 19903EOF
69d27ff7
MB
19904
19905 fi
19906
19907 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19908 cat >> confdefs.h <<\EOF
69d27ff7 19909#define wxUSE_LOG_DIALOG 1
a0b9e27f 19910EOF
d73be714
VZ
19911
19912 fi
10f2d63a
VZ
19913fi
19914
19915if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19916 cat >> confdefs.h <<\EOF
10f2d63a 19917#define wxUSE_LONGLONG 1
a0b9e27f 19918EOF
10f2d63a
VZ
19919
19920fi
19921
e8f65ba6 19922if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19923 cat >> confdefs.h <<\EOF
e8f65ba6 19924#define wxUSE_GEOMETRY 1
a0b9e27f 19925EOF
e8f65ba6
RR
19926
19927fi
19928
10f2d63a 19929if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19930 cat >> confdefs.h <<\EOF
10f2d63a 19931#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19932EOF
10f2d63a 19933
70f7a477 19934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19935fi
19936
19937if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19938 cat >> confdefs.h <<\EOF
10f2d63a 19939#define wxUSE_STREAMS 1
a0b9e27f 19940EOF
10f2d63a
VZ
19941
19942fi
19943
5c6fa7d2 19944
8284b0c5 19945if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19946 for ac_func in strptime
83307f33 19947do
a0b9e27f 19948echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 19949echo "configure:19950: checking for $ac_func" >&5
a0b9e27f
MB
19950if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19951 echo $ac_n "(cached) $ac_c" 1>&6
19952else
19953 cat > conftest.$ac_ext <<EOF
7bb2947d 19954#line 19955 "configure"
83307f33
VZ
19955#include "confdefs.h"
19956/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19957 which can conflict with char $ac_func(); below. */
83307f33
VZ
19958#include <assert.h>
19959/* Override any gcc2 internal prototype to avoid an error. */
19960/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19961 builtin and then its argument prototype would still apply. */
19962char $ac_func();
19963
19964int main() {
19965
83307f33
VZ
19966/* The GNU C library defines this for functions which it implements
19967 to always fail with ENOSYS. Some functions are actually named
19968 something starting with __ and the normal name is an alias. */
19969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19970choke me
19971#else
a0b9e27f 19972$ac_func();
83307f33
VZ
19973#endif
19974
a0b9e27f
MB
19975; return 0; }
19976EOF
7bb2947d 19977if { (eval echo configure:19978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19978 rm -rf conftest*
19979 eval "ac_cv_func_$ac_func=yes"
19980else
19981 echo "configure: failed program was:" >&5
19982 cat conftest.$ac_ext >&5
19983 rm -rf conftest*
19984 eval "ac_cv_func_$ac_func=no"
19985fi
19986rm -f conftest*
19987fi
83307f33 19988
a0b9e27f
MB
19989if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19990 echo "$ac_t""yes" 1>&6
19991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19992 cat >> confdefs.h <<EOF
19993#define $ac_tr_func 1
19994EOF
19995
19996else
19997 echo "$ac_t""no" 1>&6
83307f33
VZ
19998fi
19999done
20000
5c6fa7d2 20001
a0b9e27f 20002 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
7bb2947d 20003echo "configure:20004: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
20004if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20005 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 20006else
a0b9e27f
MB
20007
20008 cat > conftest.$ac_ext <<EOF
7bb2947d 20009#line 20010 "configure"
360d6699
VZ
20010#include "confdefs.h"
20011
b4085ce6 20012 #include <time.h>
a0b9e27f
MB
20013
20014int main() {
360d6699
VZ
20015
20016 int tz;
4f11a343 20017 tz = timezone;
a0b9e27f
MB
20018
20019; return 0; }
20020EOF
7bb2947d 20021if { (eval echo configure:20022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20022 rm -rf conftest*
20023
4f11a343 20024 wx_cv_var_timezone=timezone
a0b9e27f 20025
360d6699 20026else
a0b9e27f
MB
20027 echo "configure: failed program was:" >&5
20028 cat conftest.$ac_ext >&5
20029 rm -rf conftest*
20030
20031 cat > conftest.$ac_ext <<EOF
7bb2947d 20032#line 20033 "configure"
360d6699
VZ
20033#include "confdefs.h"
20034
b4085ce6 20035 #include <time.h>
a0b9e27f
MB
20036
20037int main() {
360d6699
VZ
20038
20039 int tz;
20040 tz = _timezone;
a0b9e27f
MB
20041
20042; return 0; }
20043EOF
7bb2947d 20044if { (eval echo configure:20045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20045 rm -rf conftest*
20046
360d6699 20047 wx_cv_var_timezone=_timezone
a0b9e27f 20048
5357c8e8 20049else
a0b9e27f
MB
20050 echo "configure: failed program was:" >&5
20051 cat conftest.$ac_ext >&5
20052 rm -rf conftest*
20053
20054 cat > conftest.$ac_ext <<EOF
7bb2947d 20055#line 20056 "configure"
5357c8e8
VZ
20056#include "confdefs.h"
20057
b4085ce6 20058 #include <time.h>
a0b9e27f
MB
20059
20060int main() {
5357c8e8
VZ
20061
20062 int tz;
4f11a343 20063 tz = __timezone;
a0b9e27f
MB
20064
20065; return 0; }
20066EOF
7bb2947d 20067if { (eval echo configure:20068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20068 rm -rf conftest*
20069
4f11a343 20070 wx_cv_var_timezone=__timezone
a0b9e27f 20071
360d6699 20072else
a0b9e27f
MB
20073 echo "configure: failed program was:" >&5
20074 cat conftest.$ac_ext >&5
20075 rm -rf conftest*
20076
f9bc1684 20077 if test "$USE_DOS" = 0 ; then
a0b9e27f 20078 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 20079 fi
a0b9e27f
MB
20080
20081
328a083c 20082fi
a0b9e27f
MB
20083rm -f conftest*
20084
20085
7b4a847f 20086fi
a0b9e27f
MB
20087rm -f conftest*
20088
20089
5c6fa7d2 20090fi
a0b9e27f
MB
20091rm -f conftest*
20092
20093
247f5006 20094fi
a0b9e27f
MB
20095
20096echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 20097
f9bc1684 20098 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 20099 cat >> confdefs.h <<EOF
360d6699 20100#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 20101EOF
360d6699 20102
f9bc1684 20103 fi
698dcdb6 20104
a0b9e27f 20105 for ac_func in localtime
afc31813 20106do
a0b9e27f 20107echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 20108echo "configure:20109: checking for $ac_func" >&5
a0b9e27f
MB
20109if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20111else
20112 cat > conftest.$ac_ext <<EOF
7bb2947d 20113#line 20114 "configure"
10f2d63a 20114#include "confdefs.h"
afc31813 20115/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20116 which can conflict with char $ac_func(); below. */
afc31813
VZ
20117#include <assert.h>
20118/* Override any gcc2 internal prototype to avoid an error. */
20119/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20120 builtin and then its argument prototype would still apply. */
20121char $ac_func();
20122
20123int main() {
20124
afc31813
VZ
20125/* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20129choke me
20130#else
a0b9e27f 20131$ac_func();
afc31813
VZ
20132#endif
20133
a0b9e27f
MB
20134; return 0; }
20135EOF
7bb2947d 20136if { (eval echo configure:20137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20137 rm -rf conftest*
20138 eval "ac_cv_func_$ac_func=yes"
20139else
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 eval "ac_cv_func_$ac_func=no"
20144fi
20145rm -f conftest*
20146fi
afc31813 20147
a0b9e27f
MB
20148if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20149 echo "$ac_t""yes" 1>&6
20150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20151 cat >> confdefs.h <<EOF
20152#define $ac_tr_func 1
20153EOF
20154
20155else
20156 echo "$ac_t""no" 1>&6
afc31813
VZ
20157fi
20158done
20159
5c6fa7d2 20160
8284b0c5 20161 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20162 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7bb2947d 20163echo "configure:20164: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20164if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20165 echo $ac_n "(cached) $ac_c" 1>&6
20166else
20167
20168 cat > conftest.$ac_ext <<EOF
7bb2947d 20169#line 20170 "configure"
0470b1e6
VZ
20170#include "confdefs.h"
20171
b4085ce6 20172 #include <time.h>
a0b9e27f
MB
20173
20174int main() {
0470b1e6
VZ
20175
20176 struct tm tm;
20177 tm.tm_gmtoff++;
a0b9e27f
MB
20178
20179; return 0; }
20180EOF
7bb2947d 20181if { (eval echo configure:20182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20182 rm -rf conftest*
20183
f03a98d8 20184 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20185
0470b1e6 20186else
a0b9e27f
MB
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20189 rm -rf conftest*
20190 wx_cv_struct_tm_has_gmtoff=no
20191
5c6fa7d2 20192fi
a0b9e27f
MB
20193rm -f conftest*
20194
247f5006 20195fi
a0b9e27f
MB
20196
20197echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20198 fi
20199
20200 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20201 cat >> confdefs.h <<\EOF
6232543b 20202#define WX_GMTOFF_IN_TM 1
a0b9e27f 20203EOF
0470b1e6 20204
3fcdd07b
VZ
20205 fi
20206
a0b9e27f 20207 for ac_func in gettimeofday ftime
3fcdd07b 20208do
a0b9e27f 20209echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 20210echo "configure:20211: checking for $ac_func" >&5
a0b9e27f
MB
20211if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20212 echo $ac_n "(cached) $ac_c" 1>&6
20213else
20214 cat > conftest.$ac_ext <<EOF
7bb2947d 20215#line 20216 "configure"
3fcdd07b
VZ
20216#include "confdefs.h"
20217/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20218 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20219#include <assert.h>
20220/* Override any gcc2 internal prototype to avoid an error. */
20221/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20222 builtin and then its argument prototype would still apply. */
20223char $ac_func();
20224
20225int main() {
20226
3fcdd07b
VZ
20227/* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231choke me
20232#else
a0b9e27f 20233$ac_func();
3fcdd07b
VZ
20234#endif
20235
a0b9e27f
MB
20236; return 0; }
20237EOF
7bb2947d 20238if { (eval echo configure:20239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20239 rm -rf conftest*
20240 eval "ac_cv_func_$ac_func=yes"
20241else
20242 echo "configure: failed program was:" >&5
20243 cat conftest.$ac_ext >&5
20244 rm -rf conftest*
20245 eval "ac_cv_func_$ac_func=no"
20246fi
20247rm -f conftest*
20248fi
20249
20250if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20251 echo "$ac_t""yes" 1>&6
20252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20253 cat >> confdefs.h <<EOF
20254#define $ac_tr_func 1
20255EOF
3fcdd07b 20256 break
a0b9e27f
MB
20257else
20258 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20259fi
20260done
20261
698dcdb6 20262
8284b0c5 20263 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20264 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
7bb2947d 20265echo "configure:20266: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20266if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20267 echo $ac_n "(cached) $ac_c" 1>&6
20268else
20269
20270
20271 ac_ext=C
20272# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20273ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20274ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20275ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20276cross_compiling=$ac_cv_prog_cxx_cross
52127426 20277
8284b0c5 20278
a0b9e27f 20279 cat > conftest.$ac_ext <<EOF
7bb2947d 20280#line 20281 "configure"
10f2d63a 20281#include "confdefs.h"
afc31813
VZ
20282
20283 #include <sys/time.h>
20284 #include <unistd.h>
a0b9e27f
MB
20285
20286int main() {
afc31813
VZ
20287
20288 struct timeval tv;
776862b4 20289 gettimeofday(&tv, NULL);
a0b9e27f
MB
20290
20291; return 0; }
20292EOF
7bb2947d 20293if { (eval echo configure:20294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20294 rm -rf conftest*
afc31813 20295 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20296else
a0b9e27f
MB
20297 echo "configure: failed program was:" >&5
20298 cat conftest.$ac_ext >&5
20299 rm -rf conftest*
20300 cat > conftest.$ac_ext <<EOF
7bb2947d 20301#line 20302 "configure"
10f2d63a 20302#include "confdefs.h"
afc31813
VZ
20303
20304 #include <sys/time.h>
20305 #include <unistd.h>
a0b9e27f
MB
20306
20307int main() {
afc31813
VZ
20308
20309 struct timeval tv;
20310 gettimeofday(&tv);
a0b9e27f
MB
20311
20312; return 0; }
20313EOF
7bb2947d 20314if { (eval echo configure:20315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20315 rm -rf conftest*
afc31813 20316 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20317else
a0b9e27f
MB
20318 echo "configure: failed program was:" >&5
20319 cat conftest.$ac_ext >&5
20320 rm -rf conftest*
20321
20322 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20323 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20324
20325
10f2d63a 20326fi
a0b9e27f
MB
20327rm -f conftest*
20328
10f2d63a 20329fi
a0b9e27f 20330rm -f conftest*
afc31813 20331 ac_ext=c
a0b9e27f 20332# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20333ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20334ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20335ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20336cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20337
a0b9e27f 20338
247f5006 20339fi
a0b9e27f
MB
20340
20341echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20342
afc31813 20343 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20344 cat >> confdefs.h <<\EOF
afc31813 20345#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20346EOF
afc31813
VZ
20347
20348 fi
20349 fi
20350
afc31813
VZ
20351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20352fi
20353
8284b0c5 20354
52127426 20355if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20356 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20357 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20358 wxUSE_SOCKETS="no"
20359 fi
0feee163 20360fi
b089607b 20361
0feee163
VZ
20362if test "$wxUSE_SOCKETS" = "yes"; then
20363 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20364 echo $ac_n "checking for socket""... $ac_c" 1>&6
7bb2947d 20365echo "configure:20366: checking for socket" >&5
a0b9e27f
MB
20366if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20367 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20368else
a0b9e27f 20369 cat > conftest.$ac_ext <<EOF
7bb2947d 20370#line 20371 "configure"
c63c7106
VZ
20371#include "confdefs.h"
20372/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20373 which can conflict with char socket(); below. */
c63c7106
VZ
20374#include <assert.h>
20375/* Override any gcc2 internal prototype to avoid an error. */
20376/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20377 builtin and then its argument prototype would still apply. */
20378char socket();
20379
20380int main() {
20381
c63c7106
VZ
20382/* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385#if defined (__stub_socket) || defined (__stub___socket)
20386choke me
20387#else
a0b9e27f 20388socket();
c63c7106
VZ
20389#endif
20390
a0b9e27f
MB
20391; return 0; }
20392EOF
7bb2947d 20393if { (eval echo configure:20394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20394 rm -rf conftest*
20395 eval "ac_cv_func_socket=yes"
20396else
20397 echo "configure: failed program was:" >&5
20398 cat conftest.$ac_ext >&5
20399 rm -rf conftest*
20400 eval "ac_cv_func_socket=no"
20401fi
20402rm -f conftest*
20403fi
20404
20405if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20406 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20407 :
20408else
a0b9e27f
MB
20409 echo "$ac_t""no" 1>&6
20410echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7bb2947d 20411echo "configure:20412: checking for socket in -lsocket" >&5
a0b9e27f
MB
20412ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20414 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20415else
a0b9e27f 20416 ac_save_LIBS="$LIBS"
c63c7106 20417LIBS="-lsocket $LIBS"
a0b9e27f 20418cat > conftest.$ac_ext <<EOF
7bb2947d 20419#line 20420 "configure"
c63c7106
VZ
20420#include "confdefs.h"
20421/* Override any gcc2 internal prototype to avoid an error. */
20422/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20423 builtin and then its argument prototype would still apply. */
20424char socket();
20425
20426int main() {
20427socket()
20428; return 0; }
20429EOF
7bb2947d 20430if { (eval echo configure:20431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20431 rm -rf conftest*
20432 eval "ac_cv_lib_$ac_lib_var=yes"
20433else
20434 echo "configure: failed program was:" >&5
20435 cat conftest.$ac_ext >&5
20436 rm -rf conftest*
20437 eval "ac_cv_lib_$ac_lib_var=no"
20438fi
20439rm -f conftest*
20440LIBS="$ac_save_LIBS"
20441
20442fi
20443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20444 echo "$ac_t""yes" 1>&6
d558c907
VS
20445 if test "$INET_LINK" != " -lsocket"; then
20446 INET_LINK="$INET_LINK -lsocket"
20447 fi
c63c7106 20448else
a0b9e27f 20449 echo "$ac_t""no" 1>&6
afc31813 20450
a0b9e27f 20451 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20452 wxUSE_SOCKETS=no
a0b9e27f
MB
20453
20454
6232543b 20455fi
b089607b 20456
a0b9e27f 20457
1e487827 20458fi
afc31813 20459
3a922bb4 20460 fi
0feee163 20461fi
51a9faba 20462
0feee163
VZ
20463if test "$wxUSE_SOCKETS" = "yes" ; then
20464 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20465 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
7bb2947d 20466echo "configure:20467: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20467if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20468 echo $ac_n "(cached) $ac_c" 1>&6
20469else
20470
20471
20472 ac_ext=C
20473# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20474ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20475ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20476ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20477cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20478
8284b0c5 20479
a0b9e27f 20480 cat > conftest.$ac_ext <<EOF
7bb2947d 20481#line 20482 "configure"
afc31813 20482#include "confdefs.h"
51a9faba 20483
3a922bb4
RL
20484 #include <sys/types.h>
20485 #include <sys/socket.h>
a0b9e27f
MB
20486
20487int main() {
51a9faba 20488
3a922bb4
RL
20489 socklen_t len;
20490 getsockname(0, 0, &len);
a0b9e27f
MB
20491
20492; return 0; }
20493EOF
7bb2947d 20494if { (eval echo configure:20495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20495 rm -rf conftest*
51a9faba 20496 wx_cv_type_getsockname3=socklen_t
afc31813 20497else
a0b9e27f
MB
20498 echo "configure: failed program was:" >&5
20499 cat conftest.$ac_ext >&5
20500 rm -rf conftest*
20501 cat > conftest.$ac_ext <<EOF
7bb2947d 20502#line 20503 "configure"
afc31813 20503#include "confdefs.h"
51a9faba 20504
3a922bb4
RL
20505 #include <sys/types.h>
20506 #include <sys/socket.h>
a0b9e27f
MB
20507
20508int main() {
51a9faba 20509
3a922bb4
RL
20510 size_t len;
20511 getsockname(0, 0, &len);
a0b9e27f
MB
20512
20513; return 0; }
20514EOF
7bb2947d 20515if { (eval echo configure:20516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20516 rm -rf conftest*
51a9faba 20517 wx_cv_type_getsockname3=size_t
afc31813 20518else
a0b9e27f
MB
20519 echo "configure: failed program was:" >&5
20520 cat conftest.$ac_ext >&5
20521 rm -rf conftest*
20522 cat > conftest.$ac_ext <<EOF
7bb2947d 20523#line 20524 "configure"
afc31813 20524#include "confdefs.h"
51a9faba 20525
3a922bb4
RL
20526 #include <sys/types.h>
20527 #include <sys/socket.h>
a0b9e27f
MB
20528
20529int main() {
51a9faba 20530
3a922bb4
RL
20531 int len;
20532 getsockname(0, 0, &len);
a0b9e27f
MB
20533
20534; return 0; }
20535EOF
7bb2947d 20536if { (eval echo configure:20537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20537 rm -rf conftest*
51a9faba 20538 wx_cv_type_getsockname3=int
afc31813 20539else
a0b9e27f
MB
20540 echo "configure: failed program was:" >&5
20541 cat conftest.$ac_ext >&5
20542 rm -rf conftest*
20543 wx_cv_type_getsockname3=unknown
20544
afc31813 20545fi
a0b9e27f
MB
20546rm -f conftest*
20547
afc31813 20548fi
a0b9e27f
MB
20549rm -f conftest*
20550
afc31813 20551fi
a0b9e27f 20552rm -f conftest*
51a9faba 20553
3a922bb4 20554 ac_ext=c
a0b9e27f 20555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20556ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20558ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20559cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20560
a0b9e27f 20561
247f5006 20562fi
a0b9e27f
MB
20563
20564echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20565
3a922bb4
RL
20566 if test "$wx_cv_type_getsockname3" = "unknown"; then
20567 wxUSE_SOCKETS=no
a0b9e27f 20568 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20569 else
a0b9e27f 20570 cat >> confdefs.h <<EOF
51a9faba 20571#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20572EOF
51a9faba 20573
3a922bb4 20574 fi
51a9faba
VZ
20575 fi
20576fi
afc31813 20577
51a9faba 20578if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20579 cat >> confdefs.h <<\EOF
afc31813 20580#define wxUSE_SOCKETS 1
a0b9e27f 20581EOF
afc31813 20582
70f7a477 20583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20584fi
20585
8284b0c5 20586
dc3d889d
VZ
20587if test "$wxUSE_GUI" = "yes"; then
20588
ac0c4cc3 20589 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20590 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20591 wxUSE_JOYSTICK=no
20592 fi
20593 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20594 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20595 wxUSE_JOYSTICK=no
f79bd02d
JS
20596 fi
20597 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20598 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20599 wxUSE_JOYSTICK=no
156b2523
GD
20600 fi
20601
3a922bb4
RL
20602 if test "$TOOLKIT" != "MSW"; then
20603 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20604 for ac_hdr in linux/joystick.h
10f2d63a 20605do
a0b9e27f
MB
20606ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20607echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 20608echo "configure:20609: checking for $ac_hdr" >&5
a0b9e27f
MB
20609if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20610 echo $ac_n "(cached) $ac_c" 1>&6
20611else
20612 cat > conftest.$ac_ext <<EOF
7bb2947d 20613#line 20614 "configure"
247f5006 20614#include "confdefs.h"
a0b9e27f
MB
20615#include <$ac_hdr>
20616EOF
20617ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 20618{ (eval echo configure:20619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20619ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20620if test -z "$ac_err"; then
20621 rm -rf conftest*
20622 eval "ac_cv_header_$ac_safe=yes"
20623else
20624 echo "$ac_err" >&5
20625 echo "configure: failed program was:" >&5
247f5006 20626 cat conftest.$ac_ext >&5
a0b9e27f
MB
20627 rm -rf conftest*
20628 eval "ac_cv_header_$ac_safe=no"
247f5006 20629fi
a0b9e27f 20630rm -f conftest*
10f2d63a 20631fi
a0b9e27f
MB
20632if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20633 echo "$ac_t""yes" 1>&6
20634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20635 cat >> confdefs.h <<EOF
20636#define $ac_tr_hdr 1
20637EOF
20638
20639else
20640 echo "$ac_t""no" 1>&6
247f5006 20641fi
10f2d63a
VZ
20642done
20643
3a922bb4
RL
20644 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20645 wxUSE_JOYSTICK=no
a0b9e27f 20646 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20647 fi
20648 fi
20649 fi
b089607b 20650
3a922bb4 20651 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20652 cat >> confdefs.h <<\EOF
10f2d63a 20653#define wxUSE_JOYSTICK 1
a0b9e27f 20654EOF
10f2d63a 20655
3a922bb4
RL
20656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20657 fi
dc3d889d
VZ
20658fi
20659
8284b0c5 20660
b089607b
VZ
20661if test "$TOOLKIT" != "MSW"; then
20662
3a922bb4
RL
20663 HAVE_DL_FUNCS=0
20664 HAVE_SHL_FUNCS=0
0b9ab0bd 20665 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20666 if test "$USE_DARWIN" = 1; then
20667 HAVE_DL_FUNCS=1
20668 else
a0b9e27f 20669 for ac_func in dlopen
10f2d63a 20670do
a0b9e27f 20671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 20672echo "configure:20673: checking for $ac_func" >&5
a0b9e27f
MB
20673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20674 echo $ac_n "(cached) $ac_c" 1>&6
20675else
20676 cat > conftest.$ac_ext <<EOF
7bb2947d 20677#line 20678 "configure"
10f2d63a
VZ
20678#include "confdefs.h"
20679/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20680 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20681#include <assert.h>
20682/* Override any gcc2 internal prototype to avoid an error. */
20683/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20684 builtin and then its argument prototype would still apply. */
20685char $ac_func();
20686
20687int main() {
20688
10f2d63a
VZ
20689/* The GNU C library defines this for functions which it implements
20690 to always fail with ENOSYS. Some functions are actually named
20691 something starting with __ and the normal name is an alias. */
20692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20693choke me
20694#else
a0b9e27f 20695$ac_func();
10f2d63a
VZ
20696#endif
20697
a0b9e27f
MB
20698; return 0; }
20699EOF
7bb2947d 20700if { (eval echo configure:20701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20701 rm -rf conftest*
20702 eval "ac_cv_func_$ac_func=yes"
20703else
20704 echo "configure: failed program was:" >&5
20705 cat conftest.$ac_ext >&5
20706 rm -rf conftest*
20707 eval "ac_cv_func_$ac_func=no"
20708fi
20709rm -f conftest*
20710fi
20711
20712if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20713 echo "$ac_t""yes" 1>&6
20714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20715 cat >> confdefs.h <<EOF
20716#define $ac_tr_func 1
20717EOF
20718
20719 cat >> confdefs.h <<\EOF
10f2d63a 20720#define HAVE_DLOPEN 1
a0b9e27f 20721EOF
10f2d63a 20722
3a922bb4 20723 HAVE_DL_FUNCS=1
a0b9e27f 20724
10f2d63a 20725else
a0b9e27f
MB
20726 echo "$ac_t""no" 1>&6
20727echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7bb2947d 20728echo "configure:20729: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20729ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20731 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20732else
a0b9e27f 20733 ac_save_LIBS="$LIBS"
10f2d63a 20734LIBS="-ldl $LIBS"
a0b9e27f 20735cat > conftest.$ac_ext <<EOF
7bb2947d 20736#line 20737 "configure"
10f2d63a
VZ
20737#include "confdefs.h"
20738/* Override any gcc2 internal prototype to avoid an error. */
20739/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20740 builtin and then its argument prototype would still apply. */
20741char dlopen();
20742
20743int main() {
20744dlopen()
20745; return 0; }
20746EOF
7bb2947d 20747if { (eval echo configure:20748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20748 rm -rf conftest*
20749 eval "ac_cv_lib_$ac_lib_var=yes"
20750else
20751 echo "configure: failed program was:" >&5
20752 cat conftest.$ac_ext >&5
20753 rm -rf conftest*
20754 eval "ac_cv_lib_$ac_lib_var=no"
20755fi
20756rm -f conftest*
20757LIBS="$ac_save_LIBS"
20758
20759fi
20760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20761 echo "$ac_t""yes" 1>&6
20762
20763 cat >> confdefs.h <<\EOF
10f2d63a 20764#define HAVE_DLOPEN 1
a0b9e27f 20765EOF
10f2d63a 20766
3a922bb4 20767 HAVE_DL_FUNCS=1
3d63bc3a 20768 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20769
10f2d63a 20770else
a0b9e27f 20771 echo "$ac_t""no" 1>&6
10f2d63a 20772
a0b9e27f 20773 for ac_func in shl_load
10f2d63a 20774do
a0b9e27f 20775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 20776echo "configure:20777: checking for $ac_func" >&5
a0b9e27f
MB
20777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20778 echo $ac_n "(cached) $ac_c" 1>&6
20779else
20780 cat > conftest.$ac_ext <<EOF
7bb2947d 20781#line 20782 "configure"
10f2d63a
VZ
20782#include "confdefs.h"
20783/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20784 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20785#include <assert.h>
20786/* Override any gcc2 internal prototype to avoid an error. */
20787/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20788 builtin and then its argument prototype would still apply. */
20789char $ac_func();
20790
20791int main() {
20792
10f2d63a
VZ
20793/* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20797choke me
20798#else
a0b9e27f 20799$ac_func();
10f2d63a
VZ
20800#endif
20801
a0b9e27f
MB
20802; return 0; }
20803EOF
7bb2947d 20804if { (eval echo configure:20805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20805 rm -rf conftest*
20806 eval "ac_cv_func_$ac_func=yes"
20807else
20808 echo "configure: failed program was:" >&5
20809 cat conftest.$ac_ext >&5
20810 rm -rf conftest*
20811 eval "ac_cv_func_$ac_func=no"
20812fi
20813rm -f conftest*
20814fi
20815
20816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20817 echo "$ac_t""yes" 1>&6
20818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20819 cat >> confdefs.h <<EOF
20820#define $ac_tr_func 1
20821EOF
20822
20823 cat >> confdefs.h <<\EOF
10f2d63a 20824#define HAVE_SHL_LOAD 1
a0b9e27f 20825EOF
10f2d63a 20826
3a922bb4 20827 HAVE_SHL_FUNCS=1
a0b9e27f 20828
10f2d63a 20829else
a0b9e27f
MB
20830 echo "$ac_t""no" 1>&6
20831echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
7bb2947d 20832echo "configure:20833: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20833ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20835 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20836else
a0b9e27f 20837 ac_save_LIBS="$LIBS"
f6bcfd97 20838LIBS="-lshl_load $LIBS"
a0b9e27f 20839cat > conftest.$ac_ext <<EOF
7bb2947d 20840#line 20841 "configure"
f6bcfd97 20841#include "confdefs.h"
8284b0c5 20842/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20843/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20844 builtin and then its argument prototype would still apply. */
20845char dld();
20846
20847int main() {
20848dld()
20849; return 0; }
20850EOF
7bb2947d 20851if { (eval echo configure:20852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20852 rm -rf conftest*
20853 eval "ac_cv_lib_$ac_lib_var=yes"
20854else
20855 echo "configure: failed program was:" >&5
20856 cat conftest.$ac_ext >&5
20857 rm -rf conftest*
20858 eval "ac_cv_lib_$ac_lib_var=no"
20859fi
20860rm -f conftest*
20861LIBS="$ac_save_LIBS"
f6bcfd97 20862
a0b9e27f
MB
20863fi
20864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20865 echo "$ac_t""yes" 1>&6
20866
3a922bb4 20867 HAVE_SHL_FUNCS=1
3d63bc3a 20868 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20869
20870else
20871 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20872fi
20873
a0b9e27f 20874
10f2d63a
VZ
20875fi
20876done
20877
a0b9e27f 20878
10f2d63a
VZ
20879fi
20880
a0b9e27f 20881
10f2d63a
VZ
20882fi
20883done
20884
5c6fa7d2 20885
8284b0c5 20886 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20887 for ac_func in dlerror
f6bcfd97 20888do
a0b9e27f 20889echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 20890echo "configure:20891: checking for $ac_func" >&5
a0b9e27f
MB
20891if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20892 echo $ac_n "(cached) $ac_c" 1>&6
20893else
20894 cat > conftest.$ac_ext <<EOF
7bb2947d 20895#line 20896 "configure"
f6bcfd97
BP
20896#include "confdefs.h"
20897/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20898 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20899#include <assert.h>
20900/* Override any gcc2 internal prototype to avoid an error. */
20901/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20902 builtin and then its argument prototype would still apply. */
20903char $ac_func();
20904
20905int main() {
20906
f6bcfd97
BP
20907/* The GNU C library defines this for functions which it implements
20908 to always fail with ENOSYS. Some functions are actually named
20909 something starting with __ and the normal name is an alias. */
20910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20911choke me
20912#else
a0b9e27f 20913$ac_func();
f6bcfd97
BP
20914#endif
20915
a0b9e27f
MB
20916; return 0; }
20917EOF
7bb2947d 20918if { (eval echo configure:20919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20919 rm -rf conftest*
20920 eval "ac_cv_func_$ac_func=yes"
20921else
20922 echo "configure: failed program was:" >&5
20923 cat conftest.$ac_ext >&5
20924 rm -rf conftest*
20925 eval "ac_cv_func_$ac_func=no"
20926fi
20927rm -f conftest*
20928fi
20929
20930if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20931 echo "$ac_t""yes" 1>&6
20932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20933 cat >> confdefs.h <<EOF
20934#define $ac_tr_func 1
20935EOF
20936 cat >> confdefs.h <<\EOF
f6bcfd97 20937#define HAVE_DLERROR 1
a0b9e27f 20938EOF
f6bcfd97
BP
20939
20940else
a0b9e27f
MB
20941 echo "$ac_t""no" 1>&6
20942echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
7bb2947d 20943echo "configure:20944: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20944ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20945if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20946 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20947else
a0b9e27f 20948 ac_save_LIBS="$LIBS"
f6bcfd97 20949LIBS="-ldl $LIBS"
a0b9e27f 20950cat > conftest.$ac_ext <<EOF
7bb2947d 20951#line 20952 "configure"
f6bcfd97
BP
20952#include "confdefs.h"
20953/* Override any gcc2 internal prototype to avoid an error. */
20954/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20955 builtin and then its argument prototype would still apply. */
20956char dlerror();
20957
20958int main() {
20959dlerror()
20960; return 0; }
20961EOF
7bb2947d 20962if { (eval echo configure:20963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20963 rm -rf conftest*
20964 eval "ac_cv_lib_$ac_lib_var=yes"
20965else
20966 echo "configure: failed program was:" >&5
20967 cat conftest.$ac_ext >&5
20968 rm -rf conftest*
20969 eval "ac_cv_lib_$ac_lib_var=no"
20970fi
20971rm -f conftest*
20972LIBS="$ac_save_LIBS"
20973
20974fi
20975if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20976 echo "$ac_t""yes" 1>&6
20977 cat >> confdefs.h <<\EOF
f6bcfd97 20978#define HAVE_DLERROR 1
a0b9e27f 20979EOF
f6bcfd97 20980
a0b9e27f
MB
20981else
20982 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20983fi
20984
20985fi
20986done
20987
3a922bb4
RL
20988 fi
20989 fi
f6bcfd97 20990
3a922bb4
RL
20991 if test "$HAVE_DL_FUNCS" = 0; then
20992 if test "$HAVE_SHL_FUNCS" = 0; then
20993 if test "$USE_UNIX" = 1; then
a0b9e27f 20994 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20995 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20996 wxUSE_DYNLIB_CLASS=no
20997 else
a0b9e27f 20998 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20999 fi
21000 fi
10f2d63a
VZ
21001 fi
21002 fi
21003fi
21004
0b9ab0bd 21005if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 21006 cat >> confdefs.h <<\EOF
0b9ab0bd 21007#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 21008EOF
0b9ab0bd
RL
21009
21010elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 21011 cat >> confdefs.h <<\EOF
10f2d63a 21012#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 21013EOF
10f2d63a
VZ
21014
21015fi
21016
8284b0c5 21017
1e6feb95 21018if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 21019 cat >> confdefs.h <<\EOF
1e6feb95 21020#define wxUSE_FONTMAP 1
a0b9e27f 21021EOF
1e6feb95
VZ
21022
21023fi
21024
10f2d63a 21025if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 21026 cat >> confdefs.h <<\EOF
10f2d63a 21027#define wxUSE_UNICODE 1
a0b9e27f 21028EOF
10f2d63a 21029
8284b0c5 21030
bbc3925a
VS
21031 if test "$wxUSE_MSW" != 1; then
21032 wxUSE_UNICODE_MSLU=no
21033 fi
a72a4bfa
VS
21034
21035 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 21036 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
7bb2947d 21037echo "configure:21038: checking for main in -lunicows" >&5
a0b9e27f
MB
21038ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21039if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21040 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 21041else
a0b9e27f 21042 ac_save_LIBS="$LIBS"
a72a4bfa 21043LIBS="-lunicows $LIBS"
a0b9e27f 21044cat > conftest.$ac_ext <<EOF
7bb2947d 21045#line 21046 "configure"
a72a4bfa
VS
21046#include "confdefs.h"
21047
a0b9e27f
MB
21048int main() {
21049main()
21050; return 0; }
21051EOF
7bb2947d 21052if { (eval echo configure:21053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21053 rm -rf conftest*
21054 eval "ac_cv_lib_$ac_lib_var=yes"
21055else
21056 echo "configure: failed program was:" >&5
21057 cat conftest.$ac_ext >&5
21058 rm -rf conftest*
21059 eval "ac_cv_lib_$ac_lib_var=no"
21060fi
21061rm -f conftest*
21062LIBS="$ac_save_LIBS"
8284b0c5 21063
a0b9e27f
MB
21064fi
21065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21066 echo "$ac_t""yes" 1>&6
21067
21068 cat >> confdefs.h <<\EOF
a72a4bfa 21069#define wxUSE_UNICODE_MSLU 1
a0b9e27f 21070EOF
a72a4bfa 21071
a0b9e27f 21072
a72a4bfa 21073else
a0b9e27f 21074 echo "$ac_t""no" 1>&6
a72a4bfa 21075
a0b9e27f
MB
21076 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21077 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 21078 wxUSE_UNICODE_MSLU=no
a0b9e27f 21079
a72a4bfa
VS
21080fi
21081
21082 fi
10f2d63a
VZ
21083fi
21084
10f2d63a 21085if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 21086 cat >> confdefs.h <<\EOF
10f2d63a 21087#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 21088EOF
10f2d63a
VZ
21089
21090fi
21091
8284b0c5
MB
21092
21093
10f2d63a
VZ
21094IODBC_C_SRC=""
21095if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 21096 cat >> confdefs.h <<\EOF
10f2d63a 21097#define wxUSE_ODBC 1
a0b9e27f 21098EOF
10f2d63a
VZ
21099
21100 WXODBCFLAG="-D_IODBC_"
21101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
21102fi
21103
8284b0c5 21104
10f2d63a 21105if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 21106 cat >> confdefs.h <<\EOF
10f2d63a 21107#define wxUSE_POSTSCRIPT 1
a0b9e27f 21108EOF
10f2d63a
VZ
21109
21110fi
21111
a0b9e27f 21112cat >> confdefs.h <<\EOF
10f2d63a 21113#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 21114EOF
10f2d63a 21115
8284b0c5 21116
a0b9e27f 21117cat >> confdefs.h <<\EOF
10f2d63a 21118#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 21119EOF
10f2d63a 21120
8284b0c5
MB
21121
21122
10f2d63a 21123if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 21124 cat >> confdefs.h <<\EOF
10f2d63a 21125#define wxUSE_CONSTRAINTS 1
a0b9e27f 21126EOF
10f2d63a
VZ
21127
21128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21129fi
21130
21131if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 21132
8284b0c5 21133
bb811f17 21134 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 21135 cat >> confdefs.h <<\EOF
10f2d63a 21136#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 21137EOF
10f2d63a 21138
bb811f17
JS
21139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21140 fi
10f2d63a
VZ
21141fi
21142
21143if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 21144 cat >> confdefs.h <<\EOF
10f2d63a 21145#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 21146EOF
10f2d63a
VZ
21147
21148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21149 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21151 fi
21152fi
21153
21154if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21155 cat >> confdefs.h <<\EOF
10f2d63a 21156#define wxUSE_HELP 1
a0b9e27f 21157EOF
10f2d63a
VZ
21158
21159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21160
77e13408 21161 if test "$wxUSE_MSW" = 1; then
031d8228 21162 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21163 cat >> confdefs.h <<\EOF
29fd3c0c 21164#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21165EOF
29fd3c0c 21166
3e44f09d 21167 fi
3379ed37 21168 fi
031d8228
VS
21169
21170 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21171 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21172 cat >> confdefs.h <<\EOF
031d8228 21173#define wxUSE_WXHTML_HELP 1
a0b9e27f 21174EOF
031d8228
VS
21175
21176 else
a0b9e27f 21177 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21178 wxUSE_WXHTML_HELP=no
21179 fi
21180 fi
10f2d63a
VZ
21181fi
21182
21183if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21184 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21185 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21186 else
a0b9e27f 21187 cat >> confdefs.h <<\EOF
10f2d63a 21188#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21189EOF
10f2d63a
VZ
21190
21191 fi
21192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21193fi
21194
10f2d63a 21195
10f2d63a
VZ
21196
21197if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 21198 cat >> confdefs.h <<\EOF
10f2d63a 21199#define wxUSE_X_RESOURCES 1
a0b9e27f 21200EOF
10f2d63a
VZ
21201
21202fi
21203
8284b0c5 21204
77e13408
RL
21205if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21206 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21207 -o "$wxUSE_OLE" = "yes" \
77e13408 21208 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21209 for ac_hdr in ole2.h
10f2d63a 21210do
a0b9e27f
MB
21211ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21212echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7bb2947d 21213echo "configure:21214: checking for $ac_hdr" >&5
a0b9e27f
MB
21214if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21215 echo $ac_n "(cached) $ac_c" 1>&6
21216else
21217 cat > conftest.$ac_ext <<EOF
7bb2947d 21218#line 21219 "configure"
10f2d63a 21219#include "confdefs.h"
a0b9e27f
MB
21220#include <$ac_hdr>
21221EOF
21222ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7bb2947d 21223{ (eval echo configure:21224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21224ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21225if test -z "$ac_err"; then
21226 rm -rf conftest*
21227 eval "ac_cv_header_$ac_safe=yes"
21228else
21229 echo "$ac_err" >&5
21230 echo "configure: failed program was:" >&5
10f2d63a 21231 cat conftest.$ac_ext >&5
a0b9e27f
MB
21232 rm -rf conftest*
21233 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21234fi
a0b9e27f 21235rm -f conftest*
10f2d63a 21236fi
a0b9e27f
MB
21237if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21238 echo "$ac_t""yes" 1>&6
21239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21240 cat >> confdefs.h <<EOF
21241#define $ac_tr_hdr 1
21242EOF
21243
21244else
21245 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21246fi
21247done
21248
8284b0c5 21249
2b9bdf71
VZ
21250 if test "$ac_cv_header_ole2_h" = "yes" ; then
21251 if test "$GCC" = yes ; then
a0b9e27f
MB
21252
21253 ac_ext=C
21254# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21255ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21256ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21257ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21258cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21259
21260
a0b9e27f 21261 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
7bb2947d 21262echo "configure:21263: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21263 cat > conftest.$ac_ext <<EOF
7bb2947d 21264#line 21265 "configure"
8284b0c5
MB
21265#include "confdefs.h"
21266#include <windows.h>
21267 #include <ole2.h>
a0b9e27f 21268int main() {
8284b0c5 21269
a0b9e27f
MB
21270; return 0; }
21271EOF
7bb2947d 21272if { (eval echo configure:21273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21273 rm -rf conftest*
21274 echo "$ac_t""no" 1>&6
21275else
21276 echo "configure: failed program was:" >&5
21277 cat conftest.$ac_ext >&5
21278 rm -rf conftest*
21279 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21280 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21281fi
a0b9e27f 21282rm -f conftest*
8284b0c5 21283 ac_ext=c
a0b9e27f 21284# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21285ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21286ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21287ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21288cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21289
2b9bdf71 21290 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21291 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21292 cat >> confdefs.h <<\EOF
4f11a343 21293#define wxUSE_OLE 1
a0b9e27f 21294EOF
4f11a343 21295
8284b0c5 21296
2b9bdf71
VZ
21297 fi
21298
a0b9e27f 21299 cat >> confdefs.h <<\EOF
2b9bdf71 21300#define wxUSE_DATAOBJ 1
a0b9e27f 21301EOF
2b9bdf71
VZ
21302
21303 else
a0b9e27f 21304 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21305
21306 wxUSE_CLIPBOARD=no
21307 wxUSE_DRAG_AND_DROP=no
21308 wxUSE_DATAOBJ=no
3bce6687
JS
21309 wxUSE_OLE=no
21310 fi
21311
21312 if test "$wxUSE_METAFILE" = "yes"; then
21313 cat >> confdefs.h <<\EOF
21314#define wxUSE_METAFILE 1
21315EOF
21316
21317
21318 cat >> confdefs.h <<\EOF
21319#define wxUSE_ENH_METAFILE 1
21320EOF
21321
21322 fi
21323fi
21324
2b9bdf71
VZ
21325if test "$wxUSE_IPC" = "yes"; then
21326 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21327 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21328 fi
21329
a0b9e27f 21330 cat >> confdefs.h <<\EOF
2b9bdf71 21331#define wxUSE_IPC 1
a0b9e27f 21332EOF
2b9bdf71
VZ
21333
21334fi
21335
21336if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21337 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21338 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21339 wxUSE_CLIPBOARD=no
21340 fi
21341
21342 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21343 cat >> confdefs.h <<\EOF
2b9bdf71 21344#define wxUSE_CLIPBOARD 1
a0b9e27f 21345EOF
2b9bdf71 21346
8284b0c5 21347
a0b9e27f 21348 cat >> confdefs.h <<\EOF
673f4220 21349#define wxUSE_DATAOBJ 1
a0b9e27f 21350EOF
673f4220 21351
6c657b52 21352 fi
2b9bdf71
VZ
21353fi
21354
21355if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21356 if test "$wxUSE_GTK" = 1; then
21357 if test "$WXGTK12" != 1; then
a0b9e27f 21358 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21359 wxUSE_DRAG_AND_DROP=no
21360 fi
21361 fi
21362
2b9bdf71 21363 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21364 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21365 wxUSE_DRAG_AND_DROP=no
21366 fi
21367
f79bd02d 21368 if test "$wxUSE_X11" = 1; then
a0b9e27f 21369 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21370 wxUSE_DRAG_AND_DROP=no
21371 fi
21372
6c657b52 21373 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21374 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21375 wxUSE_DRAG_AND_DROP=no
21376 fi
21377
10f2d63a 21378 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21379 cat >> confdefs.h <<\EOF
10f2d63a 21380#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21381EOF
10f2d63a
VZ
21382
21383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21384 fi
21385
21386fi
21387
21388if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21389 cat >> confdefs.h <<\EOF
10f2d63a 21390#define wxUSE_SPLINES 1
a0b9e27f 21391EOF
10f2d63a
VZ
21392
21393fi
21394
8284b0c5 21395
1e6feb95
VZ
21396USES_CONTROLS=0
21397if test "$wxUSE_CONTROLS" = "yes"; then
21398 USES_CONTROLS=1
21399fi
21400
10f2d63a 21401if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21402 cat >> confdefs.h <<\EOF
10f2d63a 21403#define wxUSE_ACCEL 1
a0b9e27f 21404EOF
10f2d63a 21405
1e6feb95
VZ
21406 USES_CONTROLS=1
21407fi
21408
21409if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21410 cat >> confdefs.h <<\EOF
1e6feb95 21411#define wxUSE_BUTTON 1
a0b9e27f 21412EOF
1e6feb95
VZ
21413
21414 USES_CONTROLS=1
21415fi
21416
21417if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21418 cat >> confdefs.h <<\EOF
1e6feb95 21419#define wxUSE_BMPBUTTON 1
a0b9e27f 21420EOF
1e6feb95
VZ
21421
21422 USES_CONTROLS=1
21423fi
21424
21425if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21426 cat >> confdefs.h <<\EOF
1e6feb95 21427#define wxUSE_CALENDARCTRL 1
a0b9e27f 21428EOF
1e6feb95
VZ
21429
21430 USES_CONTROLS=1
21431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21432fi
21433
21434if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21435 cat >> confdefs.h <<\EOF
10f2d63a 21436#define wxUSE_CARET 1
a0b9e27f 21437EOF
10f2d63a 21438
1e6feb95 21439 USES_CONTROLS=1
10f2d63a
VZ
21440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21441fi
21442
21443if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21444 cat >> confdefs.h <<\EOF
10f2d63a 21445#define wxUSE_COMBOBOX 1
a0b9e27f 21446EOF
10f2d63a 21447
1e6feb95 21448 USES_CONTROLS=1
10f2d63a
VZ
21449fi
21450
21451if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21452 cat >> confdefs.h <<\EOF
10f2d63a 21453#define wxUSE_CHOICE 1
a0b9e27f 21454EOF
10f2d63a 21455
1e6feb95 21456 USES_CONTROLS=1
10f2d63a
VZ
21457fi
21458
21459if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21460 cat >> confdefs.h <<\EOF
10f2d63a 21461#define wxUSE_CHECKBOX 1
a0b9e27f 21462EOF
10f2d63a 21463
1e6feb95 21464 USES_CONTROLS=1
10f2d63a
VZ
21465fi
21466
21467if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21468 cat >> confdefs.h <<\EOF
10f2d63a 21469#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21470EOF
10f2d63a 21471
1e6feb95 21472 USES_CONTROLS=1
10f2d63a
VZ
21473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21474fi
21475
da494b40
MB
21476if test "$wxUSE_DISPLAY" = "yes"; then
21477 cat >> confdefs.h <<\EOF
21478#define wxUSE_DISPLAY 1
21479EOF
21480
21481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21482fi
21483
10f2d63a 21484if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21485 cat >> confdefs.h <<\EOF
10f2d63a 21486#define wxUSE_GAUGE 1
a0b9e27f 21487EOF
10f2d63a 21488
1e6feb95 21489 USES_CONTROLS=1
10f2d63a
VZ
21490fi
21491
d6a55c4b 21492if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21493 cat >> confdefs.h <<\EOF
d6a55c4b 21494#define wxUSE_GRID 1
a0b9e27f 21495EOF
10f2d63a 21496
1e6feb95 21497 USES_CONTROLS=1
d6a55c4b 21498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21499fi
21500
21501if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21502 cat >> confdefs.h <<\EOF
10f2d63a 21503#define wxUSE_IMAGLIST 1
a0b9e27f 21504EOF
10f2d63a
VZ
21505
21506fi
21507
21508if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21509 cat >> confdefs.h <<\EOF
10f2d63a 21510#define wxUSE_LISTBOX 1
a0b9e27f 21511EOF
10f2d63a 21512
1e6feb95 21513 USES_CONTROLS=1
10f2d63a
VZ
21514fi
21515
21516if test "$wxUSE_LISTCTRL" = "yes"; then
21517 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21518 cat >> confdefs.h <<\EOF
10f2d63a 21519#define wxUSE_LISTCTRL 1
a0b9e27f 21520EOF
10f2d63a 21521
1e6feb95 21522 USES_CONTROLS=1
10f2d63a
VZ
21523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21524 else
a0b9e27f 21525 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21526 fi
21527fi
21528
21529if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21530 cat >> confdefs.h <<\EOF
10f2d63a 21531#define wxUSE_NOTEBOOK 1
a0b9e27f 21532EOF
10f2d63a 21533
1e6feb95 21534 USES_CONTROLS=1
10f2d63a
VZ
21535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21536fi
21537
24176f2c 21538
10f2d63a 21539if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21540 cat >> confdefs.h <<\EOF
10f2d63a 21541#define wxUSE_RADIOBOX 1
a0b9e27f 21542EOF
10f2d63a 21543
1e6feb95 21544 USES_CONTROLS=1
10f2d63a
VZ
21545fi
21546
21547if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21548 cat >> confdefs.h <<\EOF
10f2d63a 21549#define wxUSE_RADIOBTN 1
a0b9e27f 21550EOF
10f2d63a 21551
1e6feb95 21552 USES_CONTROLS=1
10f2d63a
VZ
21553fi
21554
21555if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21556 cat >> confdefs.h <<\EOF
10f2d63a 21557#define wxUSE_SASH 1
a0b9e27f 21558EOF
10f2d63a
VZ
21559
21560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21561fi
21562
21563if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21564 cat >> confdefs.h <<\EOF
10f2d63a 21565#define wxUSE_SCROLLBAR 1
a0b9e27f 21566EOF
10f2d63a 21567
1e6feb95 21568 USES_CONTROLS=1
741a9306 21569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21570fi
21571
21572if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21573 cat >> confdefs.h <<\EOF
10f2d63a 21574#define wxUSE_SLIDER 1
a0b9e27f 21575EOF
10f2d63a 21576
1e6feb95 21577 USES_CONTROLS=1
10f2d63a
VZ
21578fi
21579
21580if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21581 cat >> confdefs.h <<\EOF
10f2d63a 21582#define wxUSE_SPINBTN 1
a0b9e27f 21583EOF
10f2d63a 21584
1e6feb95 21585 USES_CONTROLS=1
10f2d63a
VZ
21586fi
21587
56cfaa52 21588if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21589 cat >> confdefs.h <<\EOF
56cfaa52 21590#define wxUSE_SPINCTRL 1
a0b9e27f 21591EOF
56cfaa52 21592
1e6feb95 21593 USES_CONTROLS=1
56cfaa52
RR
21594fi
21595
10f2d63a 21596if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21597 cat >> confdefs.h <<\EOF
10f2d63a 21598#define wxUSE_SPLITTER 1
a0b9e27f 21599EOF
10f2d63a
VZ
21600
21601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21602fi
21603
21604if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21605 cat >> confdefs.h <<\EOF
10f2d63a 21606#define wxUSE_STATBMP 1
a0b9e27f 21607EOF
10f2d63a 21608
1e6feb95 21609 USES_CONTROLS=1
10f2d63a
VZ
21610fi
21611
21612if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21613 cat >> confdefs.h <<\EOF
10f2d63a 21614#define wxUSE_STATBOX 1
a0b9e27f 21615EOF
10f2d63a 21616
1e6feb95
VZ
21617 USES_CONTROLS=1
21618fi
21619
21620if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21621 cat >> confdefs.h <<\EOF
1e6feb95 21622#define wxUSE_STATTEXT 1
a0b9e27f 21623EOF
1e6feb95
VZ
21624
21625 USES_CONTROLS=1
10f2d63a
VZ
21626fi
21627
21628if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21629 cat >> confdefs.h <<\EOF
10f2d63a 21630#define wxUSE_STATLINE 1
a0b9e27f 21631EOF
10f2d63a 21632
89e6bf6d 21633 USES_CONTROLS=1
10f2d63a
VZ
21634fi
21635
21636if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21637 cat >> confdefs.h <<\EOF
10f2d63a 21638#define wxUSE_STATUSBAR 1
a0b9e27f 21639EOF
10f2d63a 21640
1e6feb95 21641 USES_CONTROLS=1
698dcdb6 21642
2286341c 21643 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21644fi
21645
21646if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21647 cat >> confdefs.h <<\EOF
10f2d63a 21648#define wxUSE_TAB_DIALOG 1
a0b9e27f 21649EOF
10f2d63a
VZ
21650
21651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21652fi
21653
1e6feb95 21654if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21655 cat >> confdefs.h <<\EOF
1e6feb95 21656#define wxUSE_TEXTCTRL 1
a0b9e27f 21657EOF
1e6feb95
VZ
21658
21659 USES_CONTROLS=1
21660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21661fi
21662
1db8dc4a 21663if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21664 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21665 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21666 wxUSE_TOGGLEBTN=no
21667 fi
21668 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21669 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21670 wxUSE_TOGGLEBTN=no
21671 fi
21672
21673 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21674 cat >> confdefs.h <<\EOF
1db8dc4a 21675#define wxUSE_TOGGLEBTN 1
a0b9e27f 21676EOF
1db8dc4a 21677
1e6feb95 21678 USES_CONTROLS=1
a45d7ab7 21679 fi
1db8dc4a
VZ
21680fi
21681
360d6699 21682if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21683 cat >> confdefs.h <<\EOF
360d6699 21684#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21685EOF
360d6699
VZ
21686
21687 wxUSE_TOOLBAR="yes"
1e6feb95 21688 USES_CONTROLS=1
360d6699
VZ
21689fi
21690
10f2d63a 21691if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21692 cat >> confdefs.h <<\EOF
10f2d63a 21693#define wxUSE_TOOLBAR 1
a0b9e27f 21694EOF
10f2d63a 21695
1e6feb95 21696 USES_CONTROLS=1
698dcdb6 21697
360d6699
VZ
21698 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21699 wxUSE_TOOLBAR_NATIVE="yes"
21700 fi
21701
1e6feb95 21702 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21703 cat >> confdefs.h <<\EOF
360d6699 21704#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21705EOF
360d6699 21706
1e6feb95
VZ
21707 USES_CONTROLS=1
21708 fi
21709
21710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21711fi
21712
10f2d63a
VZ
21713if test "$wxUSE_TOOLTIPS" = "yes"; then
21714 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21715 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21716 else
89e6bf6d
VZ
21717 if test "$wxUSE_UNIVERSAL" = "yes"; then
21718 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21719 else
89e6bf6d 21720 cat >> confdefs.h <<\EOF
10f2d63a 21721#define wxUSE_TOOLTIPS 1
a0b9e27f 21722EOF
10f2d63a
VZ
21723
21724 fi
21725 fi
21726fi
21727
21728if test "$wxUSE_TREECTRL" = "yes"; then
21729 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21730 cat >> confdefs.h <<\EOF
10f2d63a 21731#define wxUSE_TREECTRL 1
a0b9e27f 21732EOF
10f2d63a 21733
1e6feb95 21734 USES_CONTROLS=1
10f2d63a
VZ
21735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21736 else
a0b9e27f 21737 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21738 fi
21739fi
21740
9f41d601 21741if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21742 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21743 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21744 else
485cf710 21745 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21746 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21747 else
3c011993 21748 if test "$wxUSE_PM" = 1; then
a0b9e27f 21749 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21750 else
a0b9e27f 21751 cat >> confdefs.h <<\EOF
9f41d601 21752#define wxUSE_POPUPWIN 1
a0b9e27f 21753EOF
9f41d601 21754
8284b0c5 21755
3c011993
VZ
21756 USES_CONTROLS=1
21757 fi
485cf710 21758 fi
6abe4b65 21759 fi
9f41d601
RR
21760fi
21761
dd964dcc 21762if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21763 if test "$wxUSE_PM" = 1; then
a0b9e27f 21764 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21765 else
a0b9e27f 21766 cat >> confdefs.h <<\EOF
dd964dcc 21767#define wxUSE_TIPWINDOW 1
a0b9e27f 21768EOF
dd964dcc 21769
3c011993 21770 fi
dd964dcc
VZ
21771fi
21772
1e6feb95 21773if test "$USES_CONTROLS" = 1; then
a0b9e27f 21774 cat >> confdefs.h <<\EOF
1e6feb95 21775#define wxUSE_CONTROLS 1
a0b9e27f 21776EOF
10f2d63a 21777
10f2d63a
VZ
21778fi
21779
8284b0c5 21780
1e6feb95 21781
24fd6d87 21782if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21783 cat >> confdefs.h <<\EOF
24fd6d87 21784#define wxUSE_DRAGIMAGE 1
a0b9e27f 21785EOF
24fd6d87
VZ
21786
21787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21788fi
21789
7bb2947d
MB
21790if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21791 cat >> confdefs.h <<\EOF
21792#define wxUSE_ACCESSIBILITY 1
21793EOF
21794
21795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21796fi
21797
1e6feb95 21798if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21799 cat >> confdefs.h <<\EOF
1e6feb95 21800#define wxUSE_MENUS 1
a0b9e27f 21801EOF
10f2d63a 21802
1e6feb95 21803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21804fi
21805
1e6feb95 21806if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21807 cat >> confdefs.h <<\EOF
1e6feb95 21808#define wxUSE_METAFILE 1
a0b9e27f 21809EOF
10f2d63a 21810
10f2d63a
VZ
21811fi
21812
1e6feb95 21813if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21814 cat >> confdefs.h <<\EOF
1e6feb95 21815#define wxUSE_MIMETYPE 1
a0b9e27f 21816EOF
10f2d63a 21817
10f2d63a
VZ
21818fi
21819
3e44f09d 21820if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21821 cat >> confdefs.h <<\EOF
3e44f09d 21822#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21823EOF
3e44f09d 21824
321d2b14
VZ
21825if test "$TOOLKIT" = "MSW"; then
21826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21827fi
21828
3e44f09d
VZ
21829fi
21830
4cdb0ab0 21831if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21832 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21833 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21834 wxUSE_PROTOCOL=no
21835 fi
21836
21837 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21838 cat >> confdefs.h <<\EOF
4cdb0ab0 21839#define wxUSE_PROTOCOL 1
a0b9e27f 21840EOF
4cdb0ab0 21841
8284b0c5 21842
3954f9ca 21843 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21844 cat >> confdefs.h <<\EOF
4cdb0ab0 21845#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21846EOF
4cdb0ab0 21847
3954f9ca
VS
21848 fi
21849 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21850 cat >> confdefs.h <<\EOF
4cdb0ab0 21851#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21852EOF
4cdb0ab0 21853
3954f9ca
VS
21854 fi
21855 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21856 cat >> confdefs.h <<\EOF
3954f9ca 21857#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21858EOF
3954f9ca
VS
21859
21860 fi
4cdb0ab0 21861 fi
3954f9ca
VS
21862fi
21863
21864if test "$wxUSE_URL" = "yes"; then
21865 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21866 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21867 wxUSE_URL=no
21868 fi
21869 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21870 cat >> confdefs.h <<\EOF
3954f9ca 21871#define wxUSE_URL 1
a0b9e27f 21872EOF
4cdb0ab0
VS
21873
21874 fi
21875fi
21876
10f2d63a 21877if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21878 cat >> confdefs.h <<\EOF
10f2d63a 21879#define wxUSE_MINIFRAME 1
a0b9e27f 21880EOF
10f2d63a
VZ
21881
21882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21883fi
21884
21885if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21886 cat >> confdefs.h <<\EOF
10f2d63a 21887#define wxUSE_HTML 1
a0b9e27f 21888EOF
10f2d63a
VZ
21889
21890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21891fi
21892
21893if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21894 cat >> confdefs.h <<\EOF
1e487827 21895#define wxUSE_VALIDATORS 1
a0b9e27f 21896EOF
703e0a69 21897
698dcdb6
VZ
21898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21899fi
21900
edae8572 21901if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21902 cat >> confdefs.h <<\EOF
edae8572 21903#define wxUSE_PALETTE 1
a0b9e27f 21904EOF
edae8572
VZ
21905
21906fi
21907
698dcdb6 21908if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21909 cat >> confdefs.h <<\EOF
698dcdb6 21910#define wxUSE_IMAGE 1
a0b9e27f 21911EOF
698dcdb6
VZ
21912
21913fi
21914
21915if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21916 cat >> confdefs.h <<\EOF
698dcdb6 21917#define wxUSE_GIF 1
a0b9e27f 21918EOF
698dcdb6
VZ
21919
21920fi
21921
21922if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21923 cat >> confdefs.h <<\EOF
698dcdb6 21924#define wxUSE_PCX 1
a0b9e27f 21925EOF
698dcdb6
VZ
21926
21927fi
21928
4b6b4dfc 21929if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21930 cat >> confdefs.h <<\EOF
4b6b4dfc 21931#define wxUSE_IFF 1
a0b9e27f 21932EOF
4b6b4dfc
RR
21933
21934fi
21935
698dcdb6 21936if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21937 cat >> confdefs.h <<\EOF
698dcdb6 21938#define wxUSE_PNM 1
a0b9e27f 21939EOF
698dcdb6
VZ
21940
21941fi
21942
21943if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21944 cat >> confdefs.h <<\EOF
698dcdb6 21945#define wxUSE_XPM 1
a0b9e27f 21946EOF
698dcdb6
VZ
21947
21948fi
21949
658974ae 21950if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21951 cat >> confdefs.h <<\EOF
658974ae 21952#define wxUSE_ICO_CUR 1
a0b9e27f 21953EOF
658974ae
VS
21954
21955fi
21956
a72a4bfa
VS
21957if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21958 LIBS=" -lunicows $LIBS"
21959fi
21960
8284b0c5 21961
1e6feb95 21962if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21963 cat >> confdefs.h <<\EOF
1e6feb95 21964#define wxUSE_CHOICEDLG 1
a0b9e27f 21965EOF
1e6feb95
VZ
21966
21967fi
21968
21969if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21970 cat >> confdefs.h <<\EOF
1e6feb95 21971#define wxUSE_COLOURDLG 1
a0b9e27f 21972EOF
1e6feb95
VZ
21973
21974fi
21975
21976if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21977 cat >> confdefs.h <<\EOF
1e6feb95 21978#define wxUSE_FILEDLG 1
a0b9e27f 21979EOF
1e6feb95
VZ
21980
21981fi
21982
8db37e06 21983if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21984 cat >> confdefs.h <<\EOF
8db37e06 21985#define wxUSE_FINDREPLDLG 1
a0b9e27f 21986EOF
8db37e06
VZ
21987
21988fi
21989
1e6feb95 21990if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21991 cat >> confdefs.h <<\EOF
1e6feb95 21992#define wxUSE_FONTDLG 1
a0b9e27f 21993EOF
1e6feb95
VZ
21994
21995fi
21996
21997if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21998 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21999 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 22000 else
a0b9e27f 22001 cat >> confdefs.h <<\EOF
1e6feb95 22002#define wxUSE_DIRDLG 1
a0b9e27f 22003EOF
1e6feb95 22004
1e6feb95
VZ
22005 fi
22006fi
22007
22008if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 22009 cat >> confdefs.h <<\EOF
1e6feb95 22010#define wxUSE_MSGDLG 1
a0b9e27f 22011EOF
1e6feb95
VZ
22012
22013fi
22014
22015if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 22016 cat >> confdefs.h <<\EOF
1e6feb95 22017#define wxUSE_NUMBERDLG 1
a0b9e27f 22018EOF
1e6feb95
VZ
22019
22020fi
22021
22022if test "$wxUSE_PROGRESSDLG" = "yes"; then
22023 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 22024 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 22025 else
a0b9e27f 22026 cat >> confdefs.h <<\EOF
1e6feb95 22027#define wxUSE_PROGRESSDLG 1
a0b9e27f 22028EOF
1e6feb95
VZ
22029
22030 fi
22031fi
22032
cbca9943 22033if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 22034 cat >> confdefs.h <<\EOF
cbca9943 22035#define wxUSE_SPLASH 1
a0b9e27f 22036EOF
cbca9943
VZ
22037
22038fi
22039
1e6feb95
VZ
22040if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22041 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 22042 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 22043 else
a0b9e27f 22044 cat >> confdefs.h <<\EOF
1e6feb95 22045#define wxUSE_STARTUP_TIPS 1
a0b9e27f 22046EOF
1e6feb95 22047
7b4a847f
RR
22048 fi
22049fi
579d8138 22050
8284b0c5 22051if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 22052 cat >> confdefs.h <<\EOF
8284b0c5 22053#define wxUSE_TEXTDLG 1
a0b9e27f 22054EOF
8284b0c5
MB
22055
22056fi
22057
22058if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 22059 cat >> confdefs.h <<\EOF
8284b0c5 22060#define wxUSE_WIZARDDLG 1
a0b9e27f 22061EOF
8284b0c5
MB
22062
22063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22064fi
22065
22066
22067if test "$cross_compiling" = "yes"; then
22068 OSINFO="\"$host\""
22069else
22070 OSINFO=`uname -s -r -m`
22071 OSINFO="\"$OSINFO\""
22072fi
22073
a0b9e27f 22074cat >> confdefs.h <<EOF
8284b0c5 22075#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 22076EOF
8284b0c5
MB
22077
22078
22079
22080if test "x$prefix" != "xNONE"; then
22081 wxPREFIX=$prefix
22082else
22083 wxPREFIX=$ac_default_prefix
22084fi
22085
a0b9e27f 22086cat >> confdefs.h <<EOF
8284b0c5 22087#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 22088EOF
8284b0c5
MB
22089
22090
52c71b80
VZ
22091top_builddir=`pwd`
22092
8284b0c5
MB
22093
22094
22095
22096if test "$wxUSE_MAC" = 1 ; then
22097 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22098fi
ac0c4cc3
DE
22099if test "$wxUSE_COCOA" = 1 ; then
22100 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22101fi
8284b0c5
MB
22102
22103
2b5f62a0
VZ
22104LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22105
22106have_cos=0
22107have_floor=0
22108for ac_func in cos
22109do
22110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 22111echo "configure:22112: checking for $ac_func" >&5
2b5f62a0
VZ
22112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22113 echo $ac_n "(cached) $ac_c" 1>&6
22114else
22115 cat > conftest.$ac_ext <<EOF
7bb2947d 22116#line 22117 "configure"
2b5f62a0
VZ
22117#include "confdefs.h"
22118/* System header to define __stub macros and hopefully few prototypes,
22119 which can conflict with char $ac_func(); below. */
22120#include <assert.h>
22121/* Override any gcc2 internal prototype to avoid an error. */
22122/* We use char because int might match the return type of a gcc2
22123 builtin and then its argument prototype would still apply. */
22124char $ac_func();
22125
22126int main() {
22127
22128/* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132choke me
22133#else
22134$ac_func();
22135#endif
22136
22137; return 0; }
22138EOF
7bb2947d 22139if { (eval echo configure:22140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22140 rm -rf conftest*
22141 eval "ac_cv_func_$ac_func=yes"
22142else
22143 echo "configure: failed program was:" >&5
22144 cat conftest.$ac_ext >&5
22145 rm -rf conftest*
22146 eval "ac_cv_func_$ac_func=no"
22147fi
22148rm -f conftest*
22149fi
22150
22151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22152 echo "$ac_t""yes" 1>&6
22153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22154 cat >> confdefs.h <<EOF
22155#define $ac_tr_func 1
22156EOF
22157 have_cos=1
22158else
22159 echo "$ac_t""no" 1>&6
22160fi
22161done
22162
22163for ac_func in floor
22164do
22165echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 22166echo "configure:22167: checking for $ac_func" >&5
2b5f62a0
VZ
22167if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22168 echo $ac_n "(cached) $ac_c" 1>&6
22169else
22170 cat > conftest.$ac_ext <<EOF
7bb2947d 22171#line 22172 "configure"
2b5f62a0
VZ
22172#include "confdefs.h"
22173/* System header to define __stub macros and hopefully few prototypes,
22174 which can conflict with char $ac_func(); below. */
22175#include <assert.h>
22176/* Override any gcc2 internal prototype to avoid an error. */
22177/* We use char because int might match the return type of a gcc2
22178 builtin and then its argument prototype would still apply. */
22179char $ac_func();
22180
22181int main() {
22182
22183/* The GNU C library defines this for functions which it implements
22184 to always fail with ENOSYS. Some functions are actually named
22185 something starting with __ and the normal name is an alias. */
22186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22187choke me
22188#else
22189$ac_func();
22190#endif
22191
22192; return 0; }
22193EOF
7bb2947d 22194if { (eval echo configure:22195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22195 rm -rf conftest*
22196 eval "ac_cv_func_$ac_func=yes"
22197else
22198 echo "configure: failed program was:" >&5
22199 cat conftest.$ac_ext >&5
22200 rm -rf conftest*
22201 eval "ac_cv_func_$ac_func=no"
22202fi
22203rm -f conftest*
22204fi
22205
22206if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22207 echo "$ac_t""yes" 1>&6
22208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22209 cat >> confdefs.h <<EOF
22210#define $ac_tr_func 1
22211EOF
22212 have_floor=1
22213else
22214 echo "$ac_t""no" 1>&6
22215fi
22216done
22217
22218echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
7bb2947d 22219echo "configure:22220: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22220if test "$have_cos" = 1 -a "$have_floor" = 1; then
22221 echo "$ac_t""yes" 1>&6
22222else
22223 echo "$ac_t""no" 1>&6
22224 LIBS="$LIBS -lm"
22225 # use different functions to avoid configure caching
22226 have_sin=0
22227 have_ceil=0
22228 for ac_func in sin
22229do
22230echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 22231echo "configure:22232: checking for $ac_func" >&5
2b5f62a0
VZ
22232if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22233 echo $ac_n "(cached) $ac_c" 1>&6
22234else
22235 cat > conftest.$ac_ext <<EOF
7bb2947d 22236#line 22237 "configure"
2b5f62a0
VZ
22237#include "confdefs.h"
22238/* System header to define __stub macros and hopefully few prototypes,
22239 which can conflict with char $ac_func(); below. */
22240#include <assert.h>
22241/* Override any gcc2 internal prototype to avoid an error. */
22242/* We use char because int might match the return type of a gcc2
22243 builtin and then its argument prototype would still apply. */
22244char $ac_func();
22245
22246int main() {
22247
22248/* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252choke me
22253#else
22254$ac_func();
22255#endif
22256
22257; return 0; }
22258EOF
7bb2947d 22259if { (eval echo configure:22260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22260 rm -rf conftest*
22261 eval "ac_cv_func_$ac_func=yes"
22262else
22263 echo "configure: failed program was:" >&5
22264 cat conftest.$ac_ext >&5
22265 rm -rf conftest*
22266 eval "ac_cv_func_$ac_func=no"
22267fi
22268rm -f conftest*
22269fi
22270
22271if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22272 echo "$ac_t""yes" 1>&6
22273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22274 cat >> confdefs.h <<EOF
22275#define $ac_tr_func 1
22276EOF
22277 have_sin=1
22278else
22279 echo "$ac_t""no" 1>&6
22280fi
22281done
22282
22283 for ac_func in ceil
22284do
22285echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7bb2947d 22286echo "configure:22287: checking for $ac_func" >&5
2b5f62a0
VZ
22287if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22288 echo $ac_n "(cached) $ac_c" 1>&6
22289else
22290 cat > conftest.$ac_ext <<EOF
7bb2947d 22291#line 22292 "configure"
2b5f62a0
VZ
22292#include "confdefs.h"
22293/* System header to define __stub macros and hopefully few prototypes,
22294 which can conflict with char $ac_func(); below. */
22295#include <assert.h>
22296/* Override any gcc2 internal prototype to avoid an error. */
22297/* We use char because int might match the return type of a gcc2
22298 builtin and then its argument prototype would still apply. */
22299char $ac_func();
22300
22301int main() {
22302
22303/* The GNU C library defines this for functions which it implements
22304 to always fail with ENOSYS. Some functions are actually named
22305 something starting with __ and the normal name is an alias. */
22306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22307choke me
22308#else
22309$ac_func();
22310#endif
22311
22312; return 0; }
22313EOF
7bb2947d 22314if { (eval echo configure:22315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22315 rm -rf conftest*
22316 eval "ac_cv_func_$ac_func=yes"
22317else
22318 echo "configure: failed program was:" >&5
22319 cat conftest.$ac_ext >&5
22320 rm -rf conftest*
22321 eval "ac_cv_func_$ac_func=no"
22322fi
22323rm -f conftest*
22324fi
22325
22326if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22327 echo "$ac_t""yes" 1>&6
22328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22329 cat >> confdefs.h <<EOF
22330#define $ac_tr_func 1
22331EOF
22332 have_ceil=1
22333else
22334 echo "$ac_t""no" 1>&6
22335fi
22336done
22337
22338 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
7bb2947d 22339echo "configure:22340: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22340 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22341 echo "$ac_t""yes" 1>&6
22342 else
22343 echo "$ac_t""no" 1>&6
22344 # not sure we should warn the user, crash, etc.
22345 fi
22346fi
8284b0c5
MB
22347
22348if test "$wxUSE_GUI" = "yes"; then
22349
22350 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22351
a0b9e27f 22352
8284b0c5
MB
22353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22354 drawing dynamic erase event exec font image \
1542ea39 22355 minimal propsize rotate shaped widgets"
8284b0c5
MB
22356
22357 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22358else
22359 SAMPLES_SUBDIRS="console"
22360fi
22361
22362
22363INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22364-I\${top_srcdir}/include \
22365$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22366$TOOLKIT_INCLUDE"
22367
22368if test "$wxUSE_GTK" = 1; then
22369 WXCONFIG_INCLUDE=
22370else
22371 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22372fi
22373
22374if test "$GXX" = yes ; then
22375 CXXWARNINGS="-Wall"
a0b9e27f 22376
8284b0c5
MB
22377 if test "$wxUSE_NO_DEPS" = "no" ; then
22378 CFLAGS="-MMD $CFLAGS"
22379 CXXFLAGS="-MMD $CXXFLAGS"
22380 fi
22381fi
22382
b2fee376 22383EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22384
b2fee376 22385CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22386CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22387CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22388LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22389
22390LDFLAGS="$LDFLAGS $PROFILE"
22391
22392SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
2f51a9ec
GD
22461
22462
22463
22464
f6bcfd97 22465
dad6c0ea 22466
caa2c79b 22467
3711412e 22468
1e6feb95
VZ
22469
22470
885d4bf5
VS
22471
22472
22473
22474
9b695262
VZ
22475
22476
62d0491b 22477
ef7f2189 22478
40f7145c 22479
2b5f62a0
VZ
22480
22481
22482
22483
22484
2bffed64
VZ
22485
22486
3bd8fb5f 22487
e26c13cf 22488
52c71b80 22489
36825681 22490
4f5a7f74 22491
10f2d63a 22492
a0b9e27f
MB
22493
22494echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7bb2947d 22495echo "configure:22496: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22496set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22497if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22498 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22499else
a0b9e27f 22500 cat > conftestmake <<\EOF
10f2d63a
VZ
22501all:
22502 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22503EOF
10f2d63a 22504# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22505eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22506if test -n "$ac_maketemp"; then
22507 eval ac_cv_prog_make_${ac_make}_set=yes
22508else
22509 eval ac_cv_prog_make_${ac_make}_set=no
22510fi
a0b9e27f 22511rm -f conftestmake
10f2d63a
VZ
22512fi
22513if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22514 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22515 SET_MAKE=
22516else
a0b9e27f 22517 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22518 SET_MAKE="MAKE=${MAKE-make}"
22519fi
22520
8284b0c5 22521
3a922bb4
RL
22522if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22523 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22524fi
665bbe97 22525
8284b0c5 22526
10f2d63a 22527
57973b9c
VZ
22528wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22529wx_cv_if_gnu_make=$IF_GNU_MAKE
22530wx_cv_path_ifs=$PATH_IFS
22531wx_cv_program_ext=$PROGRAM_EXT
22532wx_cv_target_library=$WX_TARGET_LIBRARY
22533wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22534wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22535wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22536wx_cv_release=${WX_RELEASE}
22537wx_cv_current=${WX_CURRENT}
22538wx_cv_revision=${WX_REVISION}
22539wx_cv_age=${WX_AGE}
27635a90 22540wx_cv_use_gui=${USE_GUI}
5e66eee1 22541wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22542export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22543 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22544 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22545 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22546 wx_cv_use_gui wx_cv_use_resources
57973b9c 22547
a0b9e27f 22548subdirs="demos samples utils contrib"
8284b0c5 22549
10f2d63a 22550
a0b9e27f
MB
22551trap '' 1 2 15
22552cat > confcache <<\EOF
10f2d63a
VZ
22553# This file is a shell script that caches the results of configure
22554# tests run on this system so they can be shared between configure
a0b9e27f
MB
22555# scripts and configure runs. It is not useful on other systems.
22556# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22557#
a0b9e27f
MB
22558# By default, configure uses ./config.cache as the cache file,
22559# creating it if it does not exist already. You can give configure
22560# the --cache-file=FILE option to use a different cache file; that is
22561# what configure does when it calls configure scripts in
22562# subdirectories, so they share the cache.
22563# Giving --cache-file=/dev/null disables caching, for debugging configure.
22564# config.status only pays attention to the cache file if you give it the
22565# --recheck option to rerun configure.
10f2d63a 22566#
a0b9e27f 22567EOF
10f2d63a
VZ
22568# The following way of writing the cache mishandles newlines in values,
22569# but we know of no workaround that is simple, portable, and efficient.
22570# So, don't put newlines in cache variables' values.
22571# Ultrix sh set writes to stderr and can't be redirected directly,
22572# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22573(set) 2>&1 |
22574 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22575 *ac_space=\ *)
22576 # `set' does not quote correctly, so add quotes (double-quote substitution
22577 # turns \\\\ into \\, and sed turns \\ into \).
22578 sed -n \
22579 -e "s/'/'\\\\''/g" \
22580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22581 ;;
22582 *)
22583 # `set' quotes correctly as required by POSIX, so do not add quotes.
22584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22585 ;;
22586 esac >> confcache
22587if cmp -s $cache_file confcache; then
22588 :
22589else
10f2d63a 22590 if test -w $cache_file; then
a0b9e27f
MB
22591 echo "updating cache $cache_file"
22592 cat confcache > $cache_file
10f2d63a
VZ
22593 else
22594 echo "not updating unwritable cache $cache_file"
22595 fi
22596fi
22597rm -f confcache
22598
a0b9e27f
MB
22599trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22600
10f2d63a
VZ
22601test "x$prefix" = xNONE && prefix=$ac_default_prefix
22602# Let make expand exec_prefix.
22603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22604
a0b9e27f
MB
22605# Any assignment to VPATH causes Sun make to only execute
22606# the first set of double-colon rules, so remove it if not needed.
22607# If there is a colon in the path, we need to keep it.
10f2d63a 22608if test "x$srcdir" = x.; then
a0b9e27f 22609 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22610fi
22611
a0b9e27f 22612trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22613
a0b9e27f 22614DEFS=-DHAVE_CONFIG_H
8284b0c5 22615
a0b9e27f 22616# Without the "./", some shells look in PATH for config.status.
247f5006 22617: ${CONFIG_STATUS=./config.status}
52127426 22618
a0b9e27f
MB
22619echo creating $CONFIG_STATUS
22620rm -f $CONFIG_STATUS
22621cat > $CONFIG_STATUS <<EOF
22622#! /bin/sh
22623# Generated automatically by configure.
22624# Run this file to recreate the current configuration.
22625# This directory was configured as follows,
22626# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22627#
a0b9e27f 22628# $0 $ac_configure_args
247f5006 22629#
a0b9e27f
MB
22630# Compiler output produced by configure, useful for debugging
22631# configure, is in ./config.log if it exists.
247f5006 22632
a0b9e27f
MB
22633ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22634for ac_option
247f5006 22635do
a0b9e27f
MB
22636 case "\$ac_option" in
22637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22638 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22639 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22640 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22641 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22642 exit 0 ;;
22643 -help | --help | --hel | --he | --h)
22644 echo "\$ac_cs_usage"; exit 0 ;;
22645 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22646 esac
22647done
22648
a0b9e27f
MB
22649ac_given_srcdir=$srcdir
22650ac_given_INSTALL="$INSTALL"
247f5006 22651
a0b9e27f
MB
22652trap 'rm -fr `echo "
22653 wx-config
2b5f62a0 22654 version-script
a0b9e27f
MB
22655 src/make.env
22656 src/makeprog.env
22657 src/makelib.env
22658 Makefile
22659 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22660EOF
22661cat >> $CONFIG_STATUS <<EOF
247f5006 22662
a0b9e27f
MB
22663# Protect against being on the right side of a sed subst in config.status.
22664sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22665 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22666$ac_vpsub
22667$extrasub
22668s%@SHELL@%$SHELL%g
22669s%@CFLAGS@%$CFLAGS%g
22670s%@CPPFLAGS@%$CPPFLAGS%g
22671s%@CXXFLAGS@%$CXXFLAGS%g
22672s%@FFLAGS@%$FFLAGS%g
22673s%@DEFS@%$DEFS%g
22674s%@LDFLAGS@%$LDFLAGS%g
22675s%@LIBS@%$LIBS%g
22676s%@exec_prefix@%$exec_prefix%g
22677s%@prefix@%$prefix%g
22678s%@program_transform_name@%$program_transform_name%g
22679s%@bindir@%$bindir%g
22680s%@sbindir@%$sbindir%g
22681s%@libexecdir@%$libexecdir%g
22682s%@datadir@%$datadir%g
22683s%@sysconfdir@%$sysconfdir%g
22684s%@sharedstatedir@%$sharedstatedir%g
22685s%@localstatedir@%$localstatedir%g
22686s%@libdir@%$libdir%g
22687s%@includedir@%$includedir%g
22688s%@oldincludedir@%$oldincludedir%g
22689s%@infodir@%$infodir%g
22690s%@mandir@%$mandir%g
22691s%@host@%$host%g
22692s%@host_alias@%$host_alias%g
22693s%@host_cpu@%$host_cpu%g
22694s%@host_vendor@%$host_vendor%g
22695s%@host_os@%$host_os%g
22696s%@target@%$target%g
22697s%@target_alias@%$target_alias%g
22698s%@target_cpu@%$target_cpu%g
22699s%@target_vendor@%$target_vendor%g
22700s%@target_os@%$target_os%g
22701s%@build@%$build%g
22702s%@build_alias@%$build_alias%g
22703s%@build_cpu@%$build_cpu%g
22704s%@build_vendor@%$build_vendor%g
22705s%@build_os@%$build_os%g
22706s%@CC@%$CC%g
22707s%@CPP@%$CPP%g
22708s%@CXX@%$CXX%g
22709s%@RANLIB@%$RANLIB%g
22710s%@AR@%$AR%g
22711s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22712s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22713s%@INSTALL_DATA@%$INSTALL_DATA%g
22714s%@STRIP@%$STRIP%g
22715s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22716s%@YACC@%$YACC%g
22717s%@LEX@%$LEX%g
22718s%@LEXLIB@%$LEXLIB%g
22719s%@LN_S@%$LN_S%g
22720s%@CXXCPP@%$CXXCPP%g
22721s%@PKG_CONFIG@%$PKG_CONFIG%g
22722s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22723s%@GTK_LIBS@%$GTK_LIBS%g
22724s%@GTK_CONFIG@%$GTK_CONFIG%g
22725s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22726s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22727s%@X_CFLAGS@%$X_CFLAGS%g
22728s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22729s%@X_LIBS@%$X_LIBS%g
22730s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22731s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22732s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22733s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22734s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22735s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22736s%@RESCOMP@%$RESCOMP%g
22737s%@DEREZ@%$DEREZ%g
36825681 22738s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22739s%@LIBICONV@%$LIBICONV%g
22740s%@LEX_STEM@%$LEX_STEM%g
22741s%@PATH_IFS@%$PATH_IFS%g
22742s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22743s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22744s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22745s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22746s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22747s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22748s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22749s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22750s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22751s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22752s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22753s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22754s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22755s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22756s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22757s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22758s%@WX_ALL@%$WX_ALL%g
22759s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22760s%@SHARED_LD@%$SHARED_LD%g
22761s%@PIC_FLAG@%$PIC_FLAG%g
22762s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22763s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22764s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22765s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22766s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22767s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22768s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22769s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22770s%@USE_GUI@%$USE_GUI%g
22771s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22772s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22773s%@TOOLKIT@%$TOOLKIT%g
22774s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22775s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22776s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22777s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22778s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22779s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22780s%@cross_compiling@%$cross_compiling%g
22781s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22782s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22783s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22784s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22785s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22786s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22787s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22788s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22789s%@ALL_HEADERS@%$ALL_HEADERS%g
22790s%@ALL_SOURCES@%$ALL_SOURCES%g
22791s%@GUIDIST@%$GUIDIST%g
22792s%@PORT_FILES@%$PORT_FILES%g
22793s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22794s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22795s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22796s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22797s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22798s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22799s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22800s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22801s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22802s%@RESFLAGS@%$RESFLAGS%g
22803s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22804s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22805s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22806s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22807s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22808s%@MACRESCOMP@%$MACRESCOMP%g
22809s%@MACSETFILE@%$MACSETFILE%g
22810s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22811s%@GCC@%$GCC%g
a0b9e27f
MB
22812s%@DLLTOOL@%$DLLTOOL%g
22813s%@AS@%$AS%g
22814s%@NM@%$NM%g
22815s%@LD@%$LD%g
22816s%@MAKEINFO@%$MAKEINFO%g
22817s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22818s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22819s%@SET_MAKE@%$SET_MAKE%g
22820s%@subdirs@%$subdirs%g
247f5006 22821
247f5006 22822CEOF
a0b9e27f 22823EOF
247f5006 22824
a0b9e27f
MB
22825cat >> $CONFIG_STATUS <<\EOF
22826
22827# Split the substitutions into bite-sized pieces for seds with
22828# small command number limits, like on Digital OSF/1 and HP-UX.
22829ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22830ac_file=1 # Number of current file.
22831ac_beg=1 # First line for current file.
22832ac_end=$ac_max_sed_cmds # Line after last line for current file.
22833ac_more_lines=:
22834ac_sed_cmds=""
22835while $ac_more_lines; do
22836 if test $ac_beg -gt 1; then
22837 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22838 else
22839 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22840 fi
22841 if test ! -s conftest.s$ac_file; then
22842 ac_more_lines=false
22843 rm -f conftest.s$ac_file
22844 else
22845 if test -z "$ac_sed_cmds"; then
22846 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22847 else
a0b9e27f 22848 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22849 fi
a0b9e27f
MB
22850 ac_file=`expr $ac_file + 1`
22851 ac_beg=$ac_end
22852 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22853 fi
a0b9e27f
MB
22854done
22855if test -z "$ac_sed_cmds"; then
22856 ac_sed_cmds=cat
22857fi
22858EOF
10f2d63a 22859
a0b9e27f 22860cat >> $CONFIG_STATUS <<EOF
10f2d63a 22861
a0b9e27f 22862CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22863 version-script
a0b9e27f
MB
22864 src/make.env
22865 src/makeprog.env
22866 src/makelib.env
22867 Makefile
22868 "}
22869EOF
22870cat >> $CONFIG_STATUS <<\EOF
22871for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22873 case "$ac_file" in
22874 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22875 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22876 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22877 esac
247f5006 22878
a0b9e27f 22879 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22880
a0b9e27f
MB
22881 # Remove last slash and all that follows it. Not all systems have dirname.
22882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22884 # The file is in a subdirectory.
22885 test ! -d "$ac_dir" && mkdir "$ac_dir"
22886 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22887 # A "../" for each directory in $ac_dir_suffix.
22888 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22889 else
22890 ac_dir_suffix= ac_dots=
22891 fi
247f5006 22892
a0b9e27f
MB
22893 case "$ac_given_srcdir" in
22894 .) srcdir=.
22895 if test -z "$ac_dots"; then top_srcdir=.
22896 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22897 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22898 *) # Relative path.
a0b9e27f
MB
22899 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22900 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22901 esac
10f2d63a 22902
a0b9e27f
MB
22903 case "$ac_given_INSTALL" in
22904 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22905 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22906 esac
247f5006 22907
a0b9e27f
MB
22908 echo creating "$ac_file"
22909 rm -f "$ac_file"
22910 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22911 case "$ac_file" in
22912 *Makefile*) ac_comsub="1i\\
22913# $configure_input" ;;
22914 *) ac_comsub= ;;
22915 esac
247f5006 22916
a0b9e27f
MB
22917 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22918 sed -e "$ac_comsub
22919s%@configure_input@%$configure_input%g
22920s%@srcdir@%$srcdir%g
22921s%@top_srcdir@%$top_srcdir%g
22922s%@INSTALL@%$INSTALL%g
22923" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22924fi; done
22925rm -f conftest.s*
10f2d63a
VZ
22926
22927# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22928# NAME is the cpp macro being defined and VALUE is the value it is being given.
22929#
22930# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22931ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22932ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22933ac_dC='\3'
22934ac_dD='%g'
22935# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22936ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22937ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22938ac_uC=' '
a0b9e27f
MB
22939ac_uD='\4%g'
22940# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22941ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22942ac_eB='$%\1#\2define\3'
22943ac_eC=' '
22944ac_eD='%g'
22945
22946if test "${CONFIG_HEADERS+set}" != set; then
22947EOF
22948cat >> $CONFIG_STATUS <<EOF
22949 CONFIG_HEADERS="setup.h:setup.h.in"
22950EOF
22951cat >> $CONFIG_STATUS <<\EOF
22952fi
22953for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22955 case "$ac_file" in
22956 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22957 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22958 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22959 esac
22960
a0b9e27f
MB
22961 echo creating $ac_file
22962
22963 rm -f conftest.frag conftest.in conftest.out
22964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22965 cat $ac_file_inputs > conftest.in
22966
22967EOF
22968
22969# Transform confdefs.h into a sed script conftest.vals that substitutes
22970# the proper values into config.h.in to produce config.h. And first:
22971# Protect against being on the right side of a sed subst in config.status.
22972# Protect against being in an unquoted here document in config.status.
22973rm -f conftest.vals
22974cat > conftest.hdr <<\EOF
22975s/[\\&%]/\\&/g
22976s%[\\$`]%\\&%g
22977s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22978s%ac_d%ac_u%gp
22979s%ac_u%ac_e%gp
22980EOF
22981sed -n -f conftest.hdr confdefs.h > conftest.vals
22982rm -f conftest.hdr
10f2d63a
VZ
22983
22984# This sed command replaces #undef with comments. This is necessary, for
22985# example, in the case of _POSIX_SOURCE, which is predefined and required
22986# on some systems where configure will not decide to define it.
a0b9e27f
MB
22987cat >> conftest.vals <<\EOF
22988s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22989EOF
22990
22991# Break up conftest.vals because some shells have a limit on
22992# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22993
22994rm -f conftest.tail
a0b9e27f 22995while :
10f2d63a 22996do
a0b9e27f
MB
22997 ac_lines=`grep -c . conftest.vals`
22998 # grep -c gives empty output for an empty file on some AIX systems.
22999 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23000 # Write a limited-size here document to conftest.frag.
23001 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23002 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 23003 echo 'CEOF
a0b9e27f
MB
23004 sed -f conftest.frag conftest.in > conftest.out
23005 rm -f conftest.in
23006 mv conftest.out conftest.in
23007' >> $CONFIG_STATUS
23008 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23009 rm -f conftest.vals
23010 mv conftest.tail conftest.vals
10f2d63a 23011done
a0b9e27f
MB
23012rm -f conftest.vals
23013
23014cat >> $CONFIG_STATUS <<\EOF
23015 rm -f conftest.frag conftest.h
23016 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23017 cat conftest.in >> conftest.h
23018 rm -f conftest.in
23019 if cmp -s $ac_file conftest.h 2>/dev/null; then
23020 echo "$ac_file is unchanged"
23021 rm -f conftest.h
10f2d63a 23022 else
a0b9e27f
MB
23023 # Remove last slash and all that follows it. Not all systems have dirname.
23024 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23025 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23026 # The file is in a subdirectory.
23027 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 23028 fi
a0b9e27f
MB
23029 rm -f $ac_file
23030 mv conftest.h $ac_file
247f5006 23031 fi
a0b9e27f
MB
23032fi; done
23033
23034EOF
23035cat >> $CONFIG_STATUS <<EOF
23036
23037 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23038 LN_S="${LN_S}"
23039
23040
23041EOF
23042cat >> $CONFIG_STATUS <<\EOF
10f2d63a 23043
652d930d 23044 if test ! -h wx-config; then
991a5759 23045 chmod +x wx-config
3a922bb4
RL
23046 mv wx-config wx${TOOLCHAIN_NAME}-config
23047 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 23048 fi
665bbe97 23049
00cf1208
RR
23050 if test ! -d lib; then
23051 mkdir lib
23052 fi
23053 if test ! -d lib/wx; then
23054 mkdir lib/wx
23055 fi
23056 if test ! -d lib/wx/include; then
23057 mkdir lib/wx/include
23058 fi
3a922bb4
RL
23059 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23060 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 23061 fi
3a922bb4
RL
23062 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23063 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
23064 fi
23065 if test -f setup.h; then
3a922bb4 23066 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 23067 fi
a0b9e27f
MB
23068
23069exit 0
23070EOF
10f2d63a 23071chmod +x $CONFIG_STATUS
a0b9e27f
MB
23072rm -fr confdefs* $ac_clean_files
23073test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 23074
2224580a
VZ
23075if test "$no_recursion" != yes; then
23076
23077 # Remove --cache-file and --srcdir arguments so they do not pile up.
23078 ac_sub_configure_args=
23079 ac_prev=
23080 for ac_arg in $ac_configure_args; do
23081 if test -n "$ac_prev"; then
23082 ac_prev=
23083 continue
23084 fi
a0b9e27f 23085 case "$ac_arg" in
2224580a
VZ
23086 -cache-file | --cache-file | --cache-fil | --cache-fi \
23087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23088 ac_prev=cache_file ;;
23089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 23090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
23091 ;;
23092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23093 ac_prev=srcdir ;;
23094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23095 ;;
23096 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23097 esac
23098 done
23099
a0b9e27f 23100 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
23101
23102 # Do not complain, so a configure script can configure whichever
23103 # parts of a large source tree are present.
a0b9e27f
MB
23104 if test ! -d $srcdir/$ac_config_dir; then
23105 continue
23106 fi
2224580a 23107
a0b9e27f 23108 echo configuring in $ac_config_dir
2224580a 23109
a0b9e27f
MB
23110 case "$srcdir" in
23111 .) ;;
23112 *)
23113 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23114 else
23115 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23116 fi
23117 ;;
23118 esac
2224580a 23119
a0b9e27f
MB
23120 ac_popdir=`pwd`
23121 cd $ac_config_dir
247f5006 23122
a0b9e27f
MB
23123 # A "../" for each directory in /$ac_config_dir.
23124 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 23125
a0b9e27f
MB
23126 case "$srcdir" in
23127 .) # No --srcdir option. We are building in place.
23128 ac_sub_srcdir=$srcdir ;;
23129 /*) # Absolute path.
23130 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23131 *) # Relative path.
23132 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23133 esac
2224580a
VZ
23134
23135 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
23136 if test -f $ac_sub_srcdir/configure; then
23137 ac_sub_configure=$ac_sub_srcdir/configure
23138 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
23139 ac_sub_configure=$ac_configure
23140 else
a0b9e27f 23141 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
23142 ac_sub_configure=
23143 fi
23144
23145 # The recursion is here.
23146 if test -n "$ac_sub_configure"; then
a0b9e27f 23147
2224580a 23148 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
23149 case "$cache_file" in
23150 /*) ac_sub_cache_file=$cache_file ;;
2224580a 23151 *) # Relative path.
a0b9e27f 23152 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 23153 esac
a0b9e27f
MB
23154 case "$ac_given_INSTALL" in
23155 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23156 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23157 esac
2224580a 23158
a0b9e27f 23159 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 23160 # The eval makes quoting arguments work.
a0b9e27f
MB
23161 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23162 then :
23163 else
23164 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23165 fi
2224580a
VZ
23166 fi
23167
23168 cd $ac_popdir
23169 done
23170fi
23171
8284b0c5 23172
2b5f62a0
VZ
23173echo
23174echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23175echo ""
23176echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23177
23178echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23179echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23180echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23181
0c98a14e
GD
23182echo " What level of wxWindows compatibility should be enabled?"
23183echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
23184echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23185echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 23186
2b5f62a0
VZ
23187echo " Which libraries should wxWindows use?"
23188echo " jpeg ${wxUSE_LIBJPEG-none}"
23189echo " png ${wxUSE_LIBPNG-none}"
23190echo " regex ${wxUSE_REGEX}"
23191echo " tiff ${wxUSE_LIBTIFF-none}"
23192echo " zlib ${wxUSE_ZLIB}"
23193
23194echo ""
23195