]> git.saurik.com Git - wxWidgets.git/blame - configure
Script tweaks
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
579d8138
VS
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
25
26
27
28
29
30
31
32
33
34
35
36
986ecc86
VZ
37
38
b040e242
VS
39
40
41
42
b040e242
VS
43
44
45
698dcdb6 46
698dcdb6
VZ
47
48
698dcdb6 49
579d8138
VS
50
51
52
53
54
55
56
57
58
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
61
62
63
64
65
66
67
68
69# Configure paths for GTK+
70# Owen Taylor 97-11-3
71
72
73
74# Guess values for system-dependent variables and create Makefiles.
f09359cf 75# Generated automatically using autoconf version 2.13
579d8138
VS
76# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77#
78# This configure script is free software; the Free Software Foundation
79# gives unlimited permission to copy, distribute and modify it.
80
81# Defaults:
82ac_help=
83ac_default_prefix=/usr/local
84# Any additions from configure.in:
85ac_help="$ac_help
86 --enable-gui use GUI classes"
87ac_help="$ac_help
88 --enable-universal use wxWindows GUI controls instead of native ones"
89ac_help="$ac_help
90 --with-gtk use GTK+"
91ac_help="$ac_help
92 --with-motif use Motif/Lesstif"
93ac_help="$ac_help
94 --with-mac use Mac OS X"
95ac_help="$ac_help
96 --with-wine use WINE"
97ac_help="$ac_help
98 --with-msw use MS-Windows"
99ac_help="$ac_help
100 --with-pm use OS/2 Presentation Manager"
101ac_help="$ac_help
102 --with-mgl use SciTech MGL"
103ac_help="$ac_help
104 --with-microwin use MicroWindows"
105ac_help="$ac_help
106 --with-x11 use X11"
107ac_help="$ac_help
108 --enable-nanox use NanoX"
109ac_help="$ac_help
110 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
111ac_help="$ac_help
112 --with-libpng use libpng (PNG image format)"
113ac_help="$ac_help
114 --with-libjpeg use libjpeg (JPEG file format)"
115ac_help="$ac_help
116 --with-libtiff use libtiff (TIFF file format)"
117ac_help="$ac_help
118 --with-opengl use OpenGL (or Mesa)"
119ac_help="$ac_help
120 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
121ac_help="$ac_help
122 --with-regex enable support for wxRegEx class"
123ac_help="$ac_help
124 --with-zlib use zlib for LZW compression"
125ac_help="$ac_help
126 --with-odbc use the IODBC and wxODBC classes"
127ac_help="$ac_help
128 --enable-shared create shared library code"
129ac_help="$ac_help
130 --enable-soname set the DT_SONAME field in ELF shared libraries"
131ac_help="$ac_help
132 --enable-optimise create optimised code"
133ac_help="$ac_help
134 --enable-debug same as debug_flag and debug_info"
135ac_help="$ac_help
136 --enable-precomp enable use of precompiled headers (Mac OS X)"
137ac_help="$ac_help
138 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
139ac_help="$ac_help
140 --enable-debug_info create code with debugging information"
141ac_help="$ac_help
142 --enable-debug_gdb create code with extra GDB debugging information"
143ac_help="$ac_help
144 --enable-debug_cntxt use wxDebugContext"
145ac_help="$ac_help
146 --enable-mem_tracing create code with memory tracing"
147ac_help="$ac_help
148 --enable-profile create code with profiling information"
149ac_help="$ac_help
150 --enable-no_rtti create code without RTTI information"
151ac_help="$ac_help
152 --enable-no_exceptions create code without C++ exceptions handling"
153ac_help="$ac_help
154 --enable-permissive compile code disregarding strict ANSI"
155ac_help="$ac_help
156 --enable-no_deps create code without dependency information"
157ac_help="$ac_help
158 --enable-compat20 enable wxWindows 2.0 compatibility"
159ac_help="$ac_help
160 --disable-compat22 disable wxWindows 2.2 compatibility"
161ac_help="$ac_help
162 --enable-rpath=DIR output the rpath flag from wx-config"
163ac_help="$ac_help
164 --enable-intl use internationalization system"
165ac_help="$ac_help
166 --enable-config use wxConfig (and derived) classes"
167ac_help="$ac_help
168 --enable-protocols use wxProtocol and derived classes"
169ac_help="$ac_help
170 --enable-ftp use wxFTP (requires wxProtocol"
171ac_help="$ac_help
172 --enable-http use wxHTTP (requires wxProtocol"
173ac_help="$ac_help
174 --enable-fileproto use wxFileProto class (requires wxProtocol"
175ac_help="$ac_help
176 --enable-sockets use socket/network classes"
177ac_help="$ac_help
178 --enable-ipc use interprocess communication (wxSocket etc.)"
179ac_help="$ac_help
180 --enable-cmdline use wxCmdLineParser class"
181ac_help="$ac_help
182 --enable-datetime use wxDateTime class"
183ac_help="$ac_help
184 --enable-timedate use obsolete wxDate/wxTime classes"
185ac_help="$ac_help
186 --enable-stopwatch use wxStopWatch class"
187ac_help="$ac_help
188 --enable-dialupman use dialup network classes"
189ac_help="$ac_help
190 --enable-apple_ieee use the Apple IEEE codec"
191ac_help="$ac_help
192 --enable-timer use wxTimer class"
193ac_help="$ac_help
194 --enable-wave use wxWave class"
195ac_help="$ac_help
196 --enable-fraction use wxFraction class"
197ac_help="$ac_help
198 --enable-dynlib use wxLibrary class for DLL loading"
199ac_help="$ac_help
200 --enable-dynamicloader use (new) wxDynamicLibrary class"
201ac_help="$ac_help
202 --enable-longlong use wxLongLong class"
203ac_help="$ac_help
204 --enable-geometry use geometry class"
205ac_help="$ac_help
206 --enable-log use logging system"
207ac_help="$ac_help
208 --enable-streams use wxStream etc classes"
209ac_help="$ac_help
210 --enable-file use wxFile classes"
211ac_help="$ac_help
212 --enable-ffile use wxFFile classes"
213ac_help="$ac_help
214 --enable-textbuf use wxTextBuffer class"
215ac_help="$ac_help
216 --enable-textfile use wxTextFile class"
217ac_help="$ac_help
218 --enable-fontmap use font encodings conversion classes"
219ac_help="$ac_help
220 --enable-unicode compile wxString with Unicode support"
221ac_help="$ac_help
222 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
223ac_help="$ac_help
224 --enable-wxprintfv use wxWindows implementation of vprintf()"
225ac_help="$ac_help
226 --enable-std_iostreams use standard C++ stream classes"
227ac_help="$ac_help
228 --enable-filesystem use virtual file systems classes"
229ac_help="$ac_help
230 --enable-fs_inet use virtual HTTP/FTP filesystems"
231ac_help="$ac_help
232 --enable-fs_zip use virtual ZIP filesystems"
233ac_help="$ac_help
234 --enable-zipstream use wxZipInputStream"
235ac_help="$ac_help
236 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
237ac_help="$ac_help
238 --enable-snglinst use wxSingleInstanceChecker class"
239ac_help="$ac_help
240 --enable-mimetype use wxMimeTypesManager"
241ac_help="$ac_help
242 --enable-sysoptions use wxSystemOptions"
243ac_help="$ac_help
244 --enable-url use wxURL class"
245ac_help="$ac_help
246 --enable-protocol use wxProtocol class"
247ac_help="$ac_help
248 --enable-protocol-http HTTP support in wxProtocol"
249ac_help="$ac_help
250 --enable-protocol-ftp FTP support in wxProtocol"
251ac_help="$ac_help
252 --enable-protocol-file FILE support in wxProtocol"
253ac_help="$ac_help
254 --enable-threads use threads"
255ac_help="$ac_help
256 --enable-docview use document view architecture"
257ac_help="$ac_help
258 --enable-help use help subsystem"
259ac_help="$ac_help
260 --enable-mshtmlhelp use MS HTML Help (win32)"
261ac_help="$ac_help
262 --enable-html use wxHTML sub-library"
263ac_help="$ac_help
264 --enable-htmlhelp use wxHTML-based help"
265ac_help="$ac_help
266 --enable-constraints use layout-constraints system"
267ac_help="$ac_help
268 --enable-printarch use printing architecture"
269ac_help="$ac_help
270 --enable-mdi use multiple document interface architecture"
271ac_help="$ac_help
272 --enable-loggui use standard GUI logger"
273ac_help="$ac_help
274 --enable-logwin use wxLogWindow"
275ac_help="$ac_help
276 --enable-logdialog use wxLogDialog"
277ac_help="$ac_help
278 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
279ac_help="$ac_help
280 --enable-prologio use Prolog IO library"
281ac_help="$ac_help
282 --enable-resources use wxWindows resources"
283ac_help="$ac_help
284 --enable-xresources use X resources for save (default for gtk+)"
285ac_help="$ac_help
286 --enable-clipboard use wxClipboard classes"
287ac_help="$ac_help
288 --enable-dnd use Drag'n'Drop classes"
289ac_help="$ac_help
290 --enable-metafile use win32 metafiles"
291ac_help="$ac_help
292 --enable-treelayout use wxTreeLayout classes"
293ac_help="$ac_help
294 --enable-controls use all usual controls"
295ac_help="$ac_help
296 --enable-accel use accelerators"
297ac_help="$ac_help
298 --enable-button use wxButton class"
299ac_help="$ac_help
300 --enable-bmpbutton use wxBitmapButton class"
301ac_help="$ac_help
302 --enable-calendar use wxCalendarCtrl class"
303ac_help="$ac_help
304 --enable-caret use wxCaret class"
305ac_help="$ac_help
306 --enable-checkbox use wxCheckBox class"
307ac_help="$ac_help
308 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
309ac_help="$ac_help
310 --enable-choice use wxChoice class"
311ac_help="$ac_help
312 --enable-combobox use wxComboBox classes"
313ac_help="$ac_help
314 --enable-gauge use wxGauge class"
315ac_help="$ac_help
316 --enable-grid use wxGrid class"
317ac_help="$ac_help
318 --enable-newgrid use new wxGrid class"
319ac_help="$ac_help
320 --enable-imaglist use wxImageList class"
321ac_help="$ac_help
322 --enable-listbox use wxListBox class"
323ac_help="$ac_help
324 --enable-listctrl use wxListCtrl class"
325ac_help="$ac_help
326 --enable-notebook use wxNotebook class"
327ac_help="$ac_help
328 --enable-propsheet use wxPropertySheet class"
329ac_help="$ac_help
330 --enable-radiobox use wxRadioBox class"
331ac_help="$ac_help
332 --enable-radiobtn use wxRadioButton class"
333ac_help="$ac_help
334 --enable-sash use wxSashWindow class"
335ac_help="$ac_help
336 --enable-scrollbar use wxScrollBar class and scrollable windows"
337ac_help="$ac_help
338 --enable-slider use wxSlider class"
339ac_help="$ac_help
340 --enable-spinbtn use wxSpinButton class"
341ac_help="$ac_help
342 --enable-spinctrl use wxSpinCtrl class"
343ac_help="$ac_help
344 --enable-splitter use wxSplitterWindow class"
345ac_help="$ac_help
346 --enable-statbmp use wxStaticBitmap class"
347ac_help="$ac_help
348 --enable-statbox use wxStaticBox class"
349ac_help="$ac_help
350 --enable-statline use wxStaticLine class"
351ac_help="$ac_help
352 --enable-stattext use wxStaticText class"
353ac_help="$ac_help
354 --enable-statusbar use wxStatusBar class"
355ac_help="$ac_help
356 --enable-tabdialog use wxTabControl class"
357ac_help="$ac_help
358 --enable-textctrl use wxTextCtrl class"
359ac_help="$ac_help
360 --enable-togglebtn use wxToggleButton class"
361ac_help="$ac_help
362 --enable-toolbar use wxToolBar class"
363ac_help="$ac_help
364 --enable-tbarnative use native wxToolBar class"
365ac_help="$ac_help
366 --enable-tbarsmpl use wxToolBarSimple class"
367ac_help="$ac_help
368 --enable-treectrl use wxTreeCtrl class"
369ac_help="$ac_help
370 --enable-tipwindow use wxTipWindow class"
371ac_help="$ac_help
372 --enable-popupwin use wxPopUpWindow class"
373ac_help="$ac_help
374 --enable-commondlg use all common dialogs"
375ac_help="$ac_help
376 --enable-choicedlg use wxChoiceDialog"
377ac_help="$ac_help
378 --enable-coldlg use wxColourDialog"
379ac_help="$ac_help
380 --enable-filedlg use wxFileDialog"
381ac_help="$ac_help
382 --enable-finddlg use wxFindReplaceDialog"
383ac_help="$ac_help
384 --enable-fontdlg use wxFontDialog"
385ac_help="$ac_help
386 --enable-dirdlg use wxDirDialog"
387ac_help="$ac_help
388 --enable-msgdlg use wxMessageDialog"
389ac_help="$ac_help
390 --enable-numberdlg use wxNumberEntryDialog"
391ac_help="$ac_help
392 --enable-splash use wxSplashScreen"
393ac_help="$ac_help
394 --enable-textdlg use wxTextDialog"
395ac_help="$ac_help
396 --enable-tipdlg use startup tips"
397ac_help="$ac_help
398 --enable-progressdlg use wxProgressDialog"
399ac_help="$ac_help
400 --enable-wizarddlg use wxWizard"
401ac_help="$ac_help
402 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
403ac_help="$ac_help
404 --enable-miniframe use wxMiniFrame class"
405ac_help="$ac_help
406 --enable-tooltips use wxToolTip class"
407ac_help="$ac_help
408 --enable-splines use spline drawing code"
409ac_help="$ac_help
410 --enable-validators use wxValidator and derived classes"
411ac_help="$ac_help
412 --enable-busyinfo use wxBusyInfo"
413ac_help="$ac_help
414 --enable-joystick use wxJoystick (Linux only)"
415ac_help="$ac_help
416 --enable-metafiles use wxMetaFile (Windows only)"
417ac_help="$ac_help
418 --enable-dragimage use wxDragImage"
419ac_help="$ac_help
420 --enable-palette use wxPalette class"
421ac_help="$ac_help
422 --enable-image use wxImage class"
423ac_help="$ac_help
424 --enable-gif use gif images (GIF file format)"
425ac_help="$ac_help
426 --enable-pcx use pcx images (PCX file format)"
427ac_help="$ac_help
428 --enable-iff use iff images (IFF file format)"
429ac_help="$ac_help
430 --enable-pnm use pnm images (PNM file format)"
431ac_help="$ac_help
432 --enable-xpm use xpm images (XPM file format)"
433ac_help="$ac_help
434 --enable-icocur use Windows ICO and CUR formats"
435ac_help="$ac_help
436 --disable-largefile omit support for large files"
437ac_help="$ac_help
438 --disable-gtktest do not try to compile and run a test GTK+ program"
439ac_help="$ac_help
440 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
441ac_help="$ac_help
442 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
443ac_help="$ac_help
444 --disable-gtktest Do not try to compile and run a test GTK program"
445ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451ac_help="$ac_help
452 --with-x use the X Window System"
453ac_help="$ac_help
454 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
455
456# Initialize some variables set by options.
457# The variables have the same names as the options, with
458# dashes changed to underlines.
579d8138
VS
459build=NONE
460cache_file=./config.cache
10f2d63a 461exec_prefix=NONE
579d8138 462host=NONE
10f2d63a 463no_create=
579d8138 464nonopt=NONE
10f2d63a
VZ
465no_recursion=
466prefix=NONE
467program_prefix=NONE
468program_suffix=NONE
469program_transform_name=s,x,x,
470silent=
471site=
472srcdir=
579d8138 473target=NONE
10f2d63a
VZ
474verbose=
475x_includes=NONE
476x_libraries=NONE
477bindir='${exec_prefix}/bin'
478sbindir='${exec_prefix}/sbin'
479libexecdir='${exec_prefix}/libexec'
480datadir='${prefix}/share'
481sysconfdir='${prefix}/etc'
482sharedstatedir='${prefix}/com'
483localstatedir='${prefix}/var'
484libdir='${exec_prefix}/lib'
485includedir='${prefix}/include'
486oldincludedir='/usr/include'
487infodir='${prefix}/info'
488mandir='${prefix}/man'
489
579d8138
VS
490# Initialize some other variables.
491subdirs=
492MFLAGS= MAKEFLAGS=
f09359cf 493SHELL=${CONFIG_SHELL-/bin/sh}
579d8138
VS
494# Maximum number of lines to put in a shell here document.
495ac_max_here_lines=12
10f2d63a
VZ
496
497ac_prev=
498for ac_option
499do
579d8138 500
10f2d63a
VZ
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
504 ac_prev=
505 continue
506 fi
507
579d8138
VS
508 case "$ac_option" in
509 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
510 *) ac_optarg= ;;
511 esac
10f2d63a
VZ
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
579d8138 515 case "$ac_option" in
10f2d63a
VZ
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
579d8138 520 bindir="$ac_optarg" ;;
10f2d63a
VZ
521
522 -build | --build | --buil | --bui | --bu)
579d8138 523 ac_prev=build ;;
10f2d63a 524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
579d8138 525 build="$ac_optarg" ;;
10f2d63a
VZ
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
579d8138 532 cache_file="$ac_optarg" ;;
10f2d63a
VZ
533
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 ac_prev=datadir ;;
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 | --da=*)
579d8138 538 datadir="$ac_optarg" ;;
10f2d63a
VZ
539
540 -disable-* | --disable-*)
579d8138 541 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 542 # Reject names that are not valid shell variable names.
579d8138
VS
543 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
544 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
545 fi
546 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
547 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
548
549 -enable-* | --enable-*)
579d8138 550 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 551 # Reject names that are not valid shell variable names.
579d8138
VS
552 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 case "$ac_option" in
557 *=*) ;;
10f2d63a
VZ
558 *) ac_optarg=yes ;;
559 esac
579d8138 560 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
561
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
579d8138 569 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
570
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
573 with_gas=yes ;;
574
579d8138
VS
575 -help | --help | --hel | --he)
576 # Omit some internal or obsolete options to make the list less imposing.
577 # This message is too long to be a string in the A/UX 3.1 sh.
578 cat << EOF
579Usage: configure [options] [host]
580Options: [defaults in brackets after descriptions]
581Configuration:
582 --cache-file=FILE cache test results in FILE
583 --help print this message
584 --no-create do not create output files
585 --quiet, --silent do not print \`checking...' messages
586 --version print the version of autoconf that created configure
587Directory and file names:
588 --prefix=PREFIX install architecture-independent files in PREFIX
589 [$ac_default_prefix]
590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
591 [same as prefix]
592 --bindir=DIR user executables in DIR [EPREFIX/bin]
593 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
594 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
595 --datadir=DIR read-only architecture-independent data in DIR
596 [PREFIX/share]
597 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
598 --sharedstatedir=DIR modifiable architecture-independent data in DIR
599 [PREFIX/com]
600 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
601 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
602 --includedir=DIR C header files in DIR [PREFIX/include]
603 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
604 --infodir=DIR info documentation in DIR [PREFIX/info]
605 --mandir=DIR man documentation in DIR [PREFIX/man]
606 --srcdir=DIR find the sources in DIR [configure dir or ..]
607 --program-prefix=PREFIX prepend PREFIX to installed program names
608 --program-suffix=SUFFIX append SUFFIX to installed program names
609 --program-transform-name=PROGRAM
610 run sed PROGRAM on installed program names
611EOF
612 cat << EOF
613Host type:
614 --build=BUILD configure for building on BUILD [BUILD=HOST]
615 --host=HOST configure for HOST [guessed]
616 --target=TARGET configure for TARGET [TARGET=HOST]
617Features and packages:
618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
622 --x-includes=DIR X include files are in DIR
623 --x-libraries=DIR X library files are in DIR
624EOF
625 if test -n "$ac_help"; then
626 echo "--enable and --with options recognized:$ac_help"
627 fi
628 exit 0 ;;
10f2d63a
VZ
629
630 -host | --host | --hos | --ho)
579d8138 631 ac_prev=host ;;
10f2d63a 632 -host=* | --host=* | --hos=* | --ho=*)
579d8138 633 host="$ac_optarg" ;;
10f2d63a
VZ
634
635 -includedir | --includedir | --includedi | --included | --include \
636 | --includ | --inclu | --incl | --inc)
637 ac_prev=includedir ;;
638 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
639 | --includ=* | --inclu=* | --incl=* | --inc=*)
579d8138 640 includedir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -infodir | --infodir | --infodi | --infod | --info | --inf)
643 ac_prev=infodir ;;
644 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
579d8138 645 infodir="$ac_optarg" ;;
10f2d63a
VZ
646
647 -libdir | --libdir | --libdi | --libd)
648 ac_prev=libdir ;;
649 -libdir=* | --libdir=* | --libdi=* | --libd=*)
579d8138 650 libdir="$ac_optarg" ;;
10f2d63a
VZ
651
652 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
653 | --libexe | --libex | --libe)
654 ac_prev=libexecdir ;;
655 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
656 | --libexe=* | --libex=* | --libe=*)
579d8138 657 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
658
659 -localstatedir | --localstatedir | --localstatedi | --localstated \
660 | --localstate | --localstat | --localsta | --localst \
661 | --locals | --local | --loca | --loc | --lo)
662 ac_prev=localstatedir ;;
663 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
664 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
665 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
579d8138 666 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
667
668 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
669 ac_prev=mandir ;;
670 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
579d8138 671 mandir="$ac_optarg" ;;
10f2d63a
VZ
672
673 -nfp | --nfp | --nf)
674 # Obsolete; use --without-fp.
675 with_fp=no ;;
676
677 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
678 | --no-cr | --no-c)
679 no_create=yes ;;
680
681 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
682 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
683 no_recursion=yes ;;
684
685 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
686 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
687 | --oldin | --oldi | --old | --ol | --o)
688 ac_prev=oldincludedir ;;
689 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
690 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
691 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
579d8138 692 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
693
694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
695 ac_prev=prefix ;;
696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
579d8138 697 prefix="$ac_optarg" ;;
10f2d63a
VZ
698
699 -program-prefix | --program-prefix | --program-prefi | --program-pref \
700 | --program-pre | --program-pr | --program-p)
701 ac_prev=program_prefix ;;
702 -program-prefix=* | --program-prefix=* | --program-prefi=* \
703 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
579d8138 704 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
705
706 -program-suffix | --program-suffix | --program-suffi | --program-suff \
707 | --program-suf | --program-su | --program-s)
708 ac_prev=program_suffix ;;
709 -program-suffix=* | --program-suffix=* | --program-suffi=* \
710 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
579d8138 711 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
712
713 -program-transform-name | --program-transform-name \
714 | --program-transform-nam | --program-transform-na \
715 | --program-transform-n | --program-transform- \
716 | --program-transform | --program-transfor \
717 | --program-transfo | --program-transf \
718 | --program-trans | --program-tran \
719 | --progr-tra | --program-tr | --program-t)
720 ac_prev=program_transform_name ;;
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=*)
579d8138 728 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
729
730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
731 | -silent | --silent | --silen | --sile | --sil)
732 silent=yes ;;
733
734 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
735 ac_prev=sbindir ;;
736 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
737 | --sbi=* | --sb=*)
579d8138 738 sbindir="$ac_optarg" ;;
10f2d63a
VZ
739
740 -sharedstatedir | --sharedstatedir | --sharedstatedi \
741 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
742 | --sharedst | --shareds | --shared | --share | --shar \
743 | --sha | --sh)
744 ac_prev=sharedstatedir ;;
745 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
746 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
747 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
748 | --sha=* | --sh=*)
579d8138 749 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
750
751 -site | --site | --sit)
752 ac_prev=site ;;
753 -site=* | --site=* | --sit=*)
579d8138 754 site="$ac_optarg" ;;
10f2d63a
VZ
755
756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
757 ac_prev=srcdir ;;
758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
579d8138 759 srcdir="$ac_optarg" ;;
10f2d63a
VZ
760
761 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
762 | --syscon | --sysco | --sysc | --sys | --sy)
763 ac_prev=sysconfdir ;;
764 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
765 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579d8138 766 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
767
768 -target | --target | --targe | --targ | --tar | --ta | --t)
579d8138 769 ac_prev=target ;;
10f2d63a 770 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579d8138 771 target="$ac_optarg" ;;
10f2d63a
VZ
772
773 -v | -verbose | --verbose | --verbos | --verbo | --verb)
774 verbose=yes ;;
775
579d8138 776 -version | --version | --versio | --versi | --vers)
f09359cf 777 echo "configure generated by autoconf version 2.13"
579d8138 778 exit 0 ;;
10f2d63a
VZ
779
780 -with-* | --with-*)
579d8138 781 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 782 # Reject names that are not valid shell variable names.
579d8138
VS
783 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
784 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
785 fi
10f2d63a 786 ac_package=`echo $ac_package| sed 's/-/_/g'`
579d8138
VS
787 case "$ac_option" in
788 *=*) ;;
10f2d63a
VZ
789 *) ac_optarg=yes ;;
790 esac
579d8138 791 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
792
793 -without-* | --without-*)
579d8138 794 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 795 # Reject names that are not valid shell variable names.
579d8138
VS
796 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
797 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
798 fi
799 ac_package=`echo $ac_package| sed 's/-/_/g'`
800 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
801
802 --x)
803 # Obsolete; use --with-x.
804 with_x=yes ;;
805
806 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
807 | --x-incl | --x-inc | --x-in | --x-i)
808 ac_prev=x_includes ;;
809 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
810 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579d8138 811 x_includes="$ac_optarg" ;;
10f2d63a
VZ
812
813 -x-libraries | --x-libraries | --x-librarie | --x-librari \
814 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
815 ac_prev=x_libraries ;;
816 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
817 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
579d8138 818 x_libraries="$ac_optarg" ;;
10f2d63a 819
579d8138 820 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
821 ;;
822
823 *)
579d8138
VS
824 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
825 echo "configure: warning: $ac_option: invalid host type" 1>&2
826 fi
827 if test "x$nonopt" != xNONE; then
828 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
829 fi
830 nonopt="$ac_option"
10f2d63a
VZ
831 ;;
832
833 esac
834done
835
836if test -n "$ac_prev"; then
579d8138 837 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
698dcdb6
VZ
838fi
839
579d8138 840trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10f2d63a 841
579d8138
VS
842# File descriptor usage:
843# 0 standard input
844# 1 file creation
845# 2 errors and warnings
846# 3 some systems may open it to /dev/tty
847# 4 used on the Kubota Titan
848# 6 checking for... messages and results
849# 5 compiler messages saved in config.log
850if test "$silent" = yes; then
851 exec 6>/dev/null
852else
853 exec 6>&1
854fi
855exec 5>./config.log
856
857echo "\
858This file contains any messages produced by compilers while
859running configure, to aid debugging if configure makes a mistake.
860" 1>&5
861
862# Strip out --no-create and --no-recursion so they do not pile up.
863# Also quote any args containing shell metacharacters.
864ac_configure_args=
865for ac_arg
10f2d63a 866do
579d8138
VS
867 case "$ac_arg" in
868 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869 | --no-cr | --no-c) ;;
870 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
873 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
874 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
875 esac
876done
877
579d8138
VS
878# NLS nuisances.
879# Only set these to C if already set. These must not be set unconditionally
880# because not all systems understand e.g. LANG=C (notably SCO).
881# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
882# Non-C LC_CTYPE values break the ctype check.
883if test "${LANG+set}" = set; then LANG=C; export LANG; fi
884if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
885if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
886if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 887
579d8138
VS
888# confdefs.h avoids OS command line length limits that DEFS can exceed.
889rm -rf conftest* confdefs.h
890# AIX cpp loses on an empty file, so make sure it contains at least a newline.
891echo > confdefs.h
10f2d63a 892
579d8138
VS
893# A filename unique to this package, relative to the directory that
894# configure is in, which we can look for to find out if srcdir is correct.
895ac_unique_file=wx-config.in
10f2d63a
VZ
896
897# Find the source files, if location was not specified.
898if test -z "$srcdir"; then
899 ac_srcdir_defaulted=yes
900 # Try the directory containing this script, then its parent.
901 ac_prog=$0
579d8138 902 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
903 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
904 srcdir=$ac_confdir
905 if test ! -r $srcdir/$ac_unique_file; then
906 srcdir=..
907 fi
908else
909 ac_srcdir_defaulted=no
910fi
911if test ! -r $srcdir/$ac_unique_file; then
912 if test "$ac_srcdir_defaulted" = yes; then
579d8138 913 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 914 else
579d8138 915 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
916 fi
917fi
579d8138 918srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 919
10f2d63a
VZ
920# Prefer explicitly selected file to automatically selected ones.
921if test -z "$CONFIG_SITE"; then
922 if test "x$prefix" != xNONE; then
923 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
924 else
925 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
926 fi
927fi
928for ac_site_file in $CONFIG_SITE; do
929 if test -r "$ac_site_file"; then
579d8138 930 echo "loading site script $ac_site_file"
10f2d63a
VZ
931 . "$ac_site_file"
932 fi
933done
934
935if test -r "$cache_file"; then
579d8138
VS
936 echo "loading cache $cache_file"
937 . $cache_file
10f2d63a 938else
579d8138
VS
939 echo "creating cache $cache_file"
940 > $cache_file
10f2d63a
VZ
941fi
942
943ac_ext=c
579d8138 944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 945ac_cpp='$CPP $CPPFLAGS'
579d8138 946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
948cross_compiling=$ac_cv_prog_cc_cross
949
f09359cf
VS
950ac_exeext=
951ac_objext=o
579d8138
VS
952if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
953 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
954 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
955 ac_n= ac_c='
956' ac_t=' '
957 else
958 ac_n=-n ac_c= ac_t=
959 fi
10f2d63a 960else
579d8138 961 ac_n= ac_c='\c' ac_t=
10f2d63a 962fi
579d8138
VS
963
964
10f2d63a 965
7c66a493
VZ
966ac_aux_dir=
967for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968 if test -f $ac_dir/install-sh; then
969 ac_aux_dir=$ac_dir
970 ac_install_sh="$ac_aux_dir/install-sh -c"
971 break
972 elif test -f $ac_dir/install.sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install.sh -c"
975 break
976 fi
977done
978if test -z "$ac_aux_dir"; then
579d8138 979 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 980fi
579d8138
VS
981ac_config_guess=$ac_aux_dir/config.guess
982ac_config_sub=$ac_aux_dir/config.sub
983ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 984
579d8138
VS
985
986# Do some error checking and defaulting for the host and target type.
987# The inputs are:
988# configure --host=HOST --target=TARGET --build=BUILD NONOPT
989#
990# The rules are:
991# 1. You are not allowed to specify --host, --target, and nonopt at the
992# same time.
993# 2. Host defaults to nonopt.
994# 3. If nonopt is not specified, then host defaults to the current host,
995# as determined by config.guess.
996# 4. Target and build default to nonopt.
997# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
998
999# The aliases save the names the user supplied, while $host etc.
1000# will get canonicalized.
579d8138
VS
1001case $host---$target---$nonopt in
1002NONE---*---* | *---NONE---* | *---*---NONE) ;;
1003*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004esac
1005
1006
1007# Make sure we can run config.sub.
f09359cf 1008if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
579d8138
VS
1009else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1010fi
1011
1012echo $ac_n "checking host system type""... $ac_c" 1>&6
f09359cf 1013echo "configure:1014: checking host system type" >&5
579d8138
VS
1014
1015host_alias=$host
1016case "$host_alias" in
1017NONE)
1018 case $nonopt in
1019 NONE)
f09359cf 1020 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
579d8138
VS
1021 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1022 fi ;;
1023 *) host_alias=$nonopt ;;
1024 esac ;;
1025esac
1026
f09359cf 1027host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
579d8138
VS
1028host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031echo "$ac_t""$host" 1>&6
1032
1033echo $ac_n "checking target system type""... $ac_c" 1>&6
f09359cf 1034echo "configure:1035: checking target system type" >&5
579d8138
VS
1035
1036target_alias=$target
1037case "$target_alias" in
1038NONE)
1039 case $nonopt in
1040 NONE) target_alias=$host_alias ;;
1041 *) target_alias=$nonopt ;;
1042 esac ;;
1043esac
1044
f09359cf 1045target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
579d8138
VS
1046target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049echo "$ac_t""$target" 1>&6
1050
1051echo $ac_n "checking build system type""... $ac_c" 1>&6
f09359cf 1052echo "configure:1053: checking build system type" >&5
579d8138
VS
1053
1054build_alias=$build
1055case "$build_alias" in
1056NONE)
1057 case $nonopt in
1058 NONE) build_alias=$host_alias ;;
1059 *) build_alias=$nonopt ;;
1060 esac ;;
1061esac
1062
f09359cf 1063build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
579d8138
VS
1064build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067echo "$ac_t""$build" 1>&6
1068
1069test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1070 test "$program_prefix$program_suffix$program_transform_name" = \
1071 NONENONEs,x,x, &&
1072 program_prefix=${target_alias}-
579d8138
VS
1073
1074
698dcdb6 1075
10f2d63a 1076WX_MAJOR_VERSION_NUMBER=2
37d403aa 1077WX_MINOR_VERSION_NUMBER=3
a0d927d1 1078WX_RELEASE_NUMBER=3
10f2d63a 1079
10f2d63a 1080WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1081WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1082
978f1259
RL
1083WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1084
a0d927d1 1085WX_CURRENT=2
6426998c
RL
1086WX_REVISION=0
1087WX_AGE=0
1088
579d8138
VS
1089
1090
10f2d63a
VZ
1091USE_UNIX=1
1092USE_WIN32=0
f9bc1684 1093USE_DOS=0
b12915c1 1094USE_BEOS=0
1216f52d 1095USE_MAC=0
b12915c1 1096
10f2d63a
VZ
1097USE_LINUX=
1098USE_SGI=
1099USE_HPUX=
1100USE_SYSV=
1101USE_SVR4=
1102USE_AIX=
1103USE_SUN=
1104USE_SOLARIS=
1105USE_SUNOS=
1106USE_ALPHA=
1107USE_OSF=
1108USE_BSD=
f11bdd03 1109USE_DARWIN=
10f2d63a 1110USE_FREEBSD=
95c8801c 1111USE_OPENBSD=
f6bcfd97 1112USE_NETBSD=
10f2d63a
VZ
1113USE_VMS=
1114USE_ULTRIX=
10f2d63a
VZ
1115USE_DATA_GENERAL=
1116
ab9b9eab
VZ
1117NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1118
f79bd02d 1119ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1120
1121DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1122DEFAULT_wxUSE_MAC=0
1123DEFAULT_wxUSE_MGL=0
1725144d 1124DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1125DEFAULT_wxUSE_MOTIF=0
1126DEFAULT_wxUSE_MSW=0
e07802fc 1127DEFAULT_wxUSE_PM=0
1e6feb95 1128DEFAULT_wxUSE_WINE=0
f79bd02d 1129DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1130
1131DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1132DEFAULT_DEFAULT_wxUSE_MAC=0
1133DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1134DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1135DEFAULT_DEFAULT_wxUSE_MOTIF=0
1136DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1137DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1138DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1139DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1140
d6a55c4b 1141PROGRAM_EXT=
3a922bb4 1142SO_SUFFIX=so
d6a55c4b 1143
10f2d63a
VZ
1144case "${host}" in
1145 *-hp-hpux* )
1146 USE_HPUX=1
1147 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1148 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1149 SO_SUFFIX=sl
579d8138 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __HPUX__ 1
1152EOF
1153
1154 ;;
1155 *-*-linux* )
1156 USE_LINUX=1
579d8138 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __LINUX__ 1
1159EOF
1160
1161 TMP=`uname -m`
1162 if test "x$TMP" = "xalpha"; then
1163 USE_ALPHA=1
579d8138 1164 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1165#define __ALPHA__ 1
1166EOF
1167
1168 fi
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-irix5* | *-*-irix6* )
1172 USE_SGI=1
1173 USE_SVR4=1
579d8138 1174 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1175#define __SGI__ 1
1176EOF
1177
579d8138 1178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1179#define __SVR4__ 1
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 ;;
1184 *-*-solaris2* )
1185 USE_SUN=1
1186 USE_SOLARIS=1
1187 USE_SVR4=1
579d8138 1188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1189#define __SUN__ 1
1190EOF
1191
579d8138 1192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1193#define __SOLARIS__ 1
1194EOF
1195
579d8138 1196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1197#define __SVR4__ 1
1198EOF
1199
1200 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1201 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1202 ;;
1203 *-*-sunos4* )
1204 USE_SUN=1
1205 USE_SUNOS=1
1206 USE_BSD=1
579d8138 1207 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1208#define __SUN__ 1
1209EOF
1210
579d8138 1211 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1212#define __SUNOS__ 1
1213EOF
1214
579d8138 1215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1216#define __BSD__ 1
1217EOF
1218
1219 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1220 ;;
f6bcfd97 1221 *-*-freebsd*)
10f2d63a
VZ
1222 USE_BSD=1
1223 USE_FREEBSD=1
579d8138 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __FREEBSD__ 1
1226EOF
1227
579d8138 1228 cat >> confdefs.h <<\EOF
10f2d63a 1229#define __BSD__ 1
95c8801c
VS
1230EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_GTK=1
1233 ;;
1234 *-*-openbsd*)
1235 USE_BSD=1
1236 USE_OPENBSD=1
579d8138 1237 cat >> confdefs.h <<\EOF
95c8801c
VS
1238#define __FREEBSD__ 1
1239EOF
1240
579d8138 1241 cat >> confdefs.h <<\EOF
95c8801c 1242#define __OPENBSD__ 1
f6bcfd97
BP
1243EOF
1244
1245 DEFAULT_DEFAULT_wxUSE_GTK=1
1246 ;;
1247 *-*-netbsd*)
1248 USE_BSD=1
1249 USE_NETBSD=1
579d8138 1250 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1251#define __FREEBSD__ 1
1252EOF
1253
579d8138 1254 cat >> confdefs.h <<\EOF
f6bcfd97 1255#define __NETBSD__ 1
10f2d63a
VZ
1256EOF
1257
1258 DEFAULT_DEFAULT_wxUSE_GTK=1
1259 ;;
1260 *-*-osf* )
1261 USE_ALPHA=1
1262 USE_OSF=1
579d8138 1263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1264#define __ALPHA__ 1
1265EOF
1266
579d8138 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define __OSF__ 1
1269EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1272 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1273 ;;
1274 *-*-dgux5* )
1275 USE_ALPHA=1
1276 USE_SVR4=1
579d8138 1277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1278#define __ALPHA__ 1
1279EOF
1280
579d8138 1281 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1282#define __SVR4__ 1
1283EOF
1284
1285 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1286 ;;
1287 *-*-sysv5* )
1288 USE_SYSV=1
1289 USE_SVR4=1
579d8138 1290 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1291#define __SYSV__ 1
1292EOF
1293
579d8138 1294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1295#define __SVR4__ 1
1296EOF
1297
1298 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1299 ;;
1300 *-*-aix* )
1301 USE_AIX=1
1302 USE_SYSV=1
1303 USE_SVR4=1
321d2b14 1304 SO_SUFFIX=a
579d8138 1305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1306#define __AIX__ 1
1307EOF
1308
579d8138 1309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1310#define __SYSV__ 1
1311EOF
1312
579d8138 1313 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1314#define __SVR4__ 1
1315EOF
1316
1317 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1318 ;;
1319
1c8183e2 1320 *-*-cygwin* | *-*-mingw32* )
17234b26 1321 SO_SUFFIX=dll
cf27ef00 1322 PROGRAM_EXT=".exe"
7b7a7637 1323 RESCOMP=windres
10f2d63a
VZ
1324 DEFAULT_DEFAULT_wxUSE_MSW=1
1325 ;;
1326
f9bc1684
VS
1327 *-pc-msdosdjgpp )
1328 USE_UNIX=0
1329 USE_DOS=1
579d8138 1330 cat >> confdefs.h <<\EOF
f9bc1684
VS
1331#define __DOS__ 1
1332EOF
1333
1334 PROGRAM_EXT=".exe"
1335 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1336 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1337 ;;
1338
6fa882bd 1339 *-pc-os2_emx | *-pc-os2-emx )
579d8138 1340 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1341#define __EMX__ 1
1342EOF
1343
cf27ef00 1344 PROGRAM_EXT=".exe"
e07802fc 1345 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1346 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1347 ;;
1348
d08b457b
GD
1349 powerpc-*-darwin* )
1350 USE_BSD=1
f11bdd03 1351 USE_DARWIN=1
3a922bb4 1352 SO_SUFFIX=dylib
579d8138 1353 cat >> confdefs.h <<\EOF
f11bdd03 1354#define __BSD__ 1
b4085ce6
GD
1355EOF
1356
579d8138 1357 cat >> confdefs.h <<\EOF
f11bdd03 1358#define __DARWIN__ 1
d08b457b
GD
1359EOF
1360
579d8138 1361 cat >> confdefs.h <<\EOF
d08b457b 1362#define __POWERPC__ 1
b4085ce6
GD
1363EOF
1364
1365 DEFAULT_DEFAULT_wxUSE_MAC=1
1366 ;;
1367
b12915c1
VZ
1368 *-*-beos* )
1369 USE_BEOS=1
579d8138 1370 cat >> confdefs.h <<\EOF
b12915c1
VZ
1371#define __BEOS__ 1
1372EOF
1373
1374 ;;
1375
10f2d63a 1376 *)
579d8138 1377 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1378esac
1379
579d8138
VS
1380
1381
1382
1383 wx_arg_cache_file="configarg.cache"
1384 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1385 rm -f ${wx_arg_cache_file}.tmp
1386 touch ${wx_arg_cache_file}.tmp
1387 touch ${wx_arg_cache_file}
579d8138 1388
10f2d63a
VZ
1389
1390DEBUG_CONFIGURE=0
1391if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1392 DEFAULT_wxUSE_UNIVERSAL=no
1393
d8356fa3
VZ
1394 DEFAULT_wxUSE_NANOX=no
1395
10f2d63a
VZ
1396 DEFAULT_wxUSE_THREADS=yes
1397
1398 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1399 DEFAULT_wxUSE_SONAME=no
1e6feb95 1400 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1401 DEFAULT_wxUSE_PROFILE=no
1402 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1403 DEFAULT_wxUSE_NO_RTTI=no
1404 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_PERMISSIVE=no
1406 DEFAULT_wxUSE_DEBUG_FLAG=yes
1407 DEFAULT_wxUSE_DEBUG_INFO=yes
1408 DEFAULT_wxUSE_DEBUG_GDB=yes
1409 DEFAULT_wxUSE_MEM_TRACING=no
1410 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1411 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1412 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1413 DEFAULT_wxUSE_APPLE_IEEE=no
1414
1415 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1416 DEFAULT_wxUSE_LOGWINDOW=no
1417 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1418 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1419
1420 DEFAULT_wxUSE_GUI=yes
1e6feb95 1421 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1422
3e44f09d 1423 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1424 DEFAULT_wxUSE_ZLIB=no
1425 DEFAULT_wxUSE_LIBPNG=no
1426 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1427 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1428 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1429 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1430
eb4efbdc 1431 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1432 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1433 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1434 DEFAULT_wxUSE_CMDLINE_PARSER=no
1435 DEFAULT_wxUSE_DATETIME=no
1436 DEFAULT_wxUSE_TIMEDATE=no
1437 DEFAULT_wxUSE_TIMER=no
1438 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1439 DEFAULT_wxUSE_FILE=no
1e6feb95 1440 DEFAULT_wxUSE_FFILE=no
a3a584a7 1441 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1442 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1443 DEFAULT_wxUSE_WAVE=no
1444 DEFAULT_wxUSE_INTL=no
1445 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1446 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1447 DEFAULT_wxUSE_STREAMS=no
1448 DEFAULT_wxUSE_SOCKETS=no
1449 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1450 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1451 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1452 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1453 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1454 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1455
1456 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1457 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1458 DEFAULT_wxUSE_POSTSCRIPT=no
1459
1460 DEFAULT_wxUSE_X_RESOURCES=no
1461 DEFAULT_wxUSE_CLIPBOARD=no
1462 DEFAULT_wxUSE_TOOLTIPS=no
1463 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1464 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1465 DEFAULT_wxUSE_SPLINES=no
1466
1467 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1468 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1469 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1470
1471 DEFAULT_wxUSE_PROLOGIO=no
1472 DEFAULT_wxUSE_RESOURCES=no
1473 DEFAULT_wxUSE_CONSTRAINTS=no
1474 DEFAULT_wxUSE_IPC=no
1475 DEFAULT_wxUSE_HELP=no
29fd3c0c 1476 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1477 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1478 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1479 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1480 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1481 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1482 DEFAULT_wxUSE_PROTOCOL=no
1483 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1484 DEFAULT_wxUSE_PROTOCOL_FTP=no
1485 DEFAULT_wxUSE_PROTOCOL_FILE=no
1486 DEFAULT_wxUSE_URL=no
3bd8fb5f 1487
10f2d63a 1488 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1489 DEFAULT_wxUSE_CHOICEDLG=no
1490 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1491 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1492 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1493 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1494 DEFAULT_wxUSE_FONTDLG=no
1495 DEFAULT_wxUSE_MSGDLG=no
1496 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1497 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1498 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1499 DEFAULT_wxUSE_STARTUP_TIPS=no
1500 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1501 DEFAULT_wxUSE_WIZARDDLG=no
1502
1e6feb95 1503 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_MINIFRAME=no
1505 DEFAULT_wxUSE_HTML=no
24528b0c 1506 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1507 DEFAULT_wxUSE_FS_INET=no
1508 DEFAULT_wxUSE_FS_ZIP=no
1509 DEFAULT_wxUSE_BUSYINFO=no
1510 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1511 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1512
1513 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1514 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1515 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1516 DEFAULT_wxUSE_CALCTRL=no
1517 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1518 DEFAULT_wxUSE_CHECKBOX=no
1519 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1520 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_COMBOBOX=no
1522 DEFAULT_wxUSE_GAUGE=no
1523 DEFAULT_wxUSE_GRID=no
1524 DEFAULT_wxUSE_NEW_GRID=no
1525 DEFAULT_wxUSE_IMAGLIST=no
1526 DEFAULT_wxUSE_LISTBOX=no
1527 DEFAULT_wxUSE_LISTCTRL=no
1528 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1529 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_RADIOBOX=no
1531 DEFAULT_wxUSE_RADIOBTN=no
1532 DEFAULT_wxUSE_SASH=no
1533 DEFAULT_wxUSE_SCROLLBAR=no
1534 DEFAULT_wxUSE_SLIDER=no
1535 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1536 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1537 DEFAULT_wxUSE_SPLITTER=no
1538 DEFAULT_wxUSE_STATBMP=no
1539 DEFAULT_wxUSE_STATBOX=no
1540 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1541 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1542 DEFAULT_wxUSE_STATUSBAR=yes
1543 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1544 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1545 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1546 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1547 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1548 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1549 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1550 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1551 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1552
1553 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1554 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1555 DEFAULT_wxUSE_WCSRTOMBS=no
1556
edae8572 1557 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1558 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1559 DEFAULT_wxUSE_GIF=no
1560 DEFAULT_wxUSE_PCX=no
1561 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1562 DEFAULT_wxUSE_IFF=no
0046ff7c 1563 DEFAULT_wxUSE_XPM=no
658974ae 1564 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1565else
1e6feb95
VZ
1566 DEFAULT_wxUSE_UNIVERSAL=no
1567
d8356fa3
VZ
1568 DEFAULT_wxUSE_NANOX=no
1569
10f2d63a
VZ
1570 DEFAULT_wxUSE_THREADS=yes
1571
1572 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1573 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1574 DEFAULT_wxUSE_OPTIMISE=yes
1575 DEFAULT_wxUSE_PROFILE=no
1576 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1577 DEFAULT_wxUSE_NO_RTTI=no
1578 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1579 DEFAULT_wxUSE_PERMISSIVE=no
1580 DEFAULT_wxUSE_DEBUG_FLAG=no
1581 DEFAULT_wxUSE_DEBUG_INFO=no
1582 DEFAULT_wxUSE_DEBUG_GDB=no
1583 DEFAULT_wxUSE_MEM_TRACING=no
1584 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1585 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1586 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1587 DEFAULT_wxUSE_APPLE_IEEE=yes
1588
1589 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1590 DEFAULT_wxUSE_LOGWINDOW=yes
1591 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1592 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1593
1594 DEFAULT_wxUSE_GUI=yes
1595
831b3152 1596 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1597 DEFAULT_wxUSE_ZLIB=yes
1598 DEFAULT_wxUSE_LIBPNG=yes
1599 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1600 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1601 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1602 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1603
eb4efbdc 1604 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1605 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1606 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1607 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1608 DEFAULT_wxUSE_DATETIME=yes
1609 DEFAULT_wxUSE_TIMEDATE=no
1610 DEFAULT_wxUSE_TIMER=yes
1611 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1612 DEFAULT_wxUSE_FILE=yes
1e6feb95 1613 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1614 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1615 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1616 DEFAULT_wxUSE_WAVE=no
1617 DEFAULT_wxUSE_INTL=yes
1618 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1619 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1620 DEFAULT_wxUSE_STREAMS=yes
1621 DEFAULT_wxUSE_SOCKETS=yes
1622 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1623 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1624 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1625 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1626 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1627 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1628
1629 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1630 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1631 DEFAULT_wxUSE_POSTSCRIPT=yes
1632
1633 DEFAULT_wxUSE_X_RESOURCES=no
1634 DEFAULT_wxUSE_CLIPBOARD=yes
1635 DEFAULT_wxUSE_TOOLTIPS=yes
1636 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1637 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_SPLINES=yes
1639
1640 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1641 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1642 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1643
1644 DEFAULT_wxUSE_PROLOGIO=yes
1645 DEFAULT_wxUSE_RESOURCES=yes
1646 DEFAULT_wxUSE_CONSTRAINTS=yes
1647 DEFAULT_wxUSE_IPC=yes
1648 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1649 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1650 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1651 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1652 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1653 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1654 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1655 DEFAULT_wxUSE_PROTOCOL=yes
1656 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1657 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1658 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1659 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1660
1661 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1662 DEFAULT_wxUSE_CHOICEDLG=yes
1663 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1664 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1665 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1666 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1667 DEFAULT_wxUSE_FONTDLG=yes
1668 DEFAULT_wxUSE_MSGDLG=yes
1669 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1670 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1671 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1672 DEFAULT_wxUSE_STARTUP_TIPS=yes
1673 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1674 DEFAULT_wxUSE_WIZARDDLG=yes
1675
1e6feb95 1676 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1677 DEFAULT_wxUSE_MINIFRAME=yes
1678 DEFAULT_wxUSE_HTML=yes
24528b0c 1679 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1680 DEFAULT_wxUSE_FS_INET=yes
1681 DEFAULT_wxUSE_FS_ZIP=yes
1682 DEFAULT_wxUSE_BUSYINFO=yes
1683 DEFAULT_wxUSE_ZIPSTREAM=yes
1684 DEFAULT_wxUSE_VALIDATORS=yes
1685
1686 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1687 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1688 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1689 DEFAULT_wxUSE_CALCTRL=yes
1690 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1691 DEFAULT_wxUSE_CHECKBOX=yes
1692 DEFAULT_wxUSE_CHECKLST=yes
1693 DEFAULT_wxUSE_CHOICE=yes
1694 DEFAULT_wxUSE_COMBOBOX=yes
1695 DEFAULT_wxUSE_GAUGE=yes
1696 DEFAULT_wxUSE_GRID=yes
cc977e5f 1697 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_IMAGLIST=yes
1699 DEFAULT_wxUSE_LISTBOX=yes
1700 DEFAULT_wxUSE_LISTCTRL=yes
1701 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1702 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1703 DEFAULT_wxUSE_RADIOBOX=yes
1704 DEFAULT_wxUSE_RADIOBTN=yes
1705 DEFAULT_wxUSE_SASH=yes
1706 DEFAULT_wxUSE_SCROLLBAR=yes
1707 DEFAULT_wxUSE_SLIDER=yes
1708 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1709 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1710 DEFAULT_wxUSE_SPLITTER=yes
1711 DEFAULT_wxUSE_STATBMP=yes
1712 DEFAULT_wxUSE_STATBOX=yes
1713 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1714 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1715 DEFAULT_wxUSE_STATUSBAR=yes
1716 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1717 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1718 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1719 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1720 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1721 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1722 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1723 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1724 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1725
1726 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1727 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1728 DEFAULT_wxUSE_WCSRTOMBS=no
1729
edae8572 1730 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1731 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1732 DEFAULT_wxUSE_GIF=yes
1733 DEFAULT_wxUSE_PCX=yes
cc0e8480 1734 DEFAULT_wxUSE_IFF=no
10f2d63a 1735 DEFAULT_wxUSE_PNM=yes
0046ff7c 1736 DEFAULT_wxUSE_XPM=yes
658974ae 1737 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1738fi
1739
579d8138
VS
1740
1741
10f2d63a
VZ
1742for toolkit in `echo $ALL_TOOLKITS`; do
1743 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1744 if test "x$LINE" != x ; then
1745 has_toolkit_in_cache=1
1746 eval "DEFAULT_$LINE"
1747 eval "CACHE_$toolkit=1"
1748 fi
1749done
1750
579d8138
VS
1751
1752
1753 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
f09359cf 1754echo "configure:1755: checking for --enable-gui" >&5
10f2d63a
VZ
1755 no_cache=0
1756 # Check whether --enable-gui or --disable-gui was given.
1757if test "${enable_gui+set}" = set; then
1758 enableval="$enable_gui"
579d8138 1759
10f2d63a
VZ
1760 if test "$enableval" = yes; then
1761 ac_cv_use_gui='wxUSE_GUI=yes'
1762 else
1763 ac_cv_use_gui='wxUSE_GUI=no'
1764 fi
579d8138 1765
10f2d63a 1766else
579d8138 1767
10f2d63a
VZ
1768 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1769 if test "x$LINE" != x ; then
1770 eval "DEFAULT_$LINE"
1771 else
1772 no_cache=1
1773 fi
1774
1775 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
579d8138
VS
1776
1777fi
10f2d63a
VZ
1778
1779
1780 eval "$ac_cv_use_gui"
1781 if test "$no_cache" != 1; then
1782 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1783 fi
1784
1785 if test "$wxUSE_GUI" = yes; then
579d8138 1786 echo "$ac_t""yes" 1>&6
10f2d63a 1787 else
579d8138 1788 echo "$ac_t""no" 1>&6
10f2d63a 1789 fi
579d8138 1790
10f2d63a 1791
b12915c1 1792if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1793
579d8138
VS
1794
1795 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
f09359cf 1796echo "configure:1797: checking for --enable-universal" >&5
1e6feb95
VZ
1797 no_cache=0
1798 # Check whether --enable-universal or --disable-universal was given.
1799if test "${enable_universal+set}" = set; then
1800 enableval="$enable_universal"
579d8138 1801
1e6feb95
VZ
1802 if test "$enableval" = yes; then
1803 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1804 else
1805 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1806 fi
579d8138 1807
1e6feb95 1808else
579d8138 1809
1e6feb95
VZ
1810 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1811 if test "x$LINE" != x ; then
1812 eval "DEFAULT_$LINE"
1813 else
1814 no_cache=1
1815 fi
1816
1817 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
579d8138
VS
1818
1819fi
1e6feb95
VZ
1820
1821
1822 eval "$ac_cv_use_universal"
1823 if test "$no_cache" != 1; then
1824 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1825 fi
1826
1827 if test "$wxUSE_UNIVERSAL" = yes; then
579d8138 1828 echo "$ac_t""yes" 1>&6
1e6feb95 1829 else
579d8138 1830 echo "$ac_t""no" 1>&6
1e6feb95 1831 fi
579d8138 1832
10f2d63a
VZ
1833# Check whether --with-gtk or --without-gtk was given.
1834if test "${with_gtk+set}" = set; then
1835 withval="$with_gtk"
1836 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
579d8138 1837fi
10f2d63a
VZ
1838
1839# Check whether --with-motif or --without-motif was given.
1840if test "${with_motif+set}" = set; then
1841 withval="$with_motif"
1842 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
579d8138 1843fi
10f2d63a 1844
b4085ce6
GD
1845# Check whether --with-mac or --without-mac was given.
1846if test "${with_mac+set}" = set; then
1847 withval="$with_mac"
1848 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
579d8138 1849fi
b4085ce6 1850
10f2d63a
VZ
1851# Check whether --with-wine or --without-wine was given.
1852if test "${with_wine+set}" = set; then
1853 withval="$with_wine"
1854 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
579d8138 1855fi
10f2d63a 1856
77e13408
RL
1857# Check whether --with-msw or --without-msw was given.
1858if test "${with_msw+set}" = set; then
1859 withval="$with_msw"
b4efce5e 1860 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
579d8138 1861fi
10f2d63a 1862
e07802fc
VZ
1863# Check whether --with-pm or --without-pm was given.
1864if test "${with_pm+set}" = set; then
1865 withval="$with_pm"
1866 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
579d8138 1867fi
698dcdb6 1868
1e6feb95
VZ
1869# Check whether --with-mgl or --without-mgl was given.
1870if test "${with_mgl+set}" = set; then
1871 withval="$with_mgl"
6c657b52 1872 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
579d8138 1873fi
1e6feb95 1874
1725144d
RR
1875# Check whether --with-microwin or --without-microwin was given.
1876if test "${with_microwin+set}" = set; then
1877 withval="$with_microwin"
1878 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
579d8138 1879fi
1725144d 1880
f79bd02d
JS
1881# Check whether --with-x11 or --without-x11 was given.
1882if test "${with_x11+set}" = set; then
1883 withval="$with_x11"
3c011993 1884 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
579d8138 1885fi
10f2d63a 1886
579d8138
VS
1887
1888 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
f09359cf 1889echo "configure:1890: checking for --enable-nanox" >&5
d8356fa3 1890 no_cache=0
ba875e66
VZ
1891 # Check whether --enable-nanox or --disable-nanox was given.
1892if test "${enable_nanox+set}" = set; then
1893 enableval="$enable_nanox"
579d8138 1894
d8356fa3 1895 if test "$enableval" = yes; then
ba875e66 1896 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1897 else
ba875e66 1898 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1899 fi
579d8138 1900
d8356fa3 1901else
579d8138 1902
d8356fa3
VZ
1903 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
ba875e66 1910 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
579d8138
VS
1911
1912fi
d8356fa3
VZ
1913
1914
ba875e66 1915 eval "$ac_cv_use_nanox"
d8356fa3 1916 if test "$no_cache" != 1; then
ba875e66 1917 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1918 fi
1919
1920 if test "$wxUSE_NANOX" = yes; then
579d8138 1921 echo "$ac_t""yes" 1>&6
d8356fa3 1922 else
579d8138 1923 echo "$ac_t""no" 1>&6
d8356fa3 1924 fi
579d8138 1925
d8356fa3 1926
8168de4c
VZ
1927# Check whether --enable-gtk2 or --disable-gtk2 was given.
1928if test "${enable_gtk2+set}" = set; then
1929 enableval="$enable_gtk2"
9e691f46 1930 wxUSE_GTK2="yes"
10f2d63a 1931else
9e691f46 1932 wxUSE_GTK2="no"
579d8138
VS
1933fi
1934
703e0a69 1935
328a083c 1936
579d8138 1937 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
f09359cf 1938echo "configure:1939: checking for --with-libpng" >&5
579d8138
VS
1939 no_cache=0
1940 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1941if test "${with_libpng+set}" = set; then
1942 withval="$with_libpng"
579d8138 1943
10f2d63a 1944 if test "$withval" = yes; then
b12915c1 1945 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1946 elif test "$withval" = no; then
b12915c1 1947 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1948 elif test "$withval" = sys; then
1949 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1950 elif test "$withval" = builtin; then
1951 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1952 else
579d8138 1953 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1954 fi
579d8138 1955
10f2d63a 1956else
579d8138 1957
b12915c1 1958 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1959 if test "x$LINE" != x ; then
1960 eval "DEFAULT_$LINE"
1961 else
1962 no_cache=1
1963 fi
1964
b12915c1 1965 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
579d8138
VS
1966
1967fi
10f2d63a
VZ
1968
1969
b12915c1 1970 eval "$ac_cv_use_libpng"
10f2d63a 1971 if test "$no_cache" != 1; then
b12915c1 1972 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1973 fi
1974
b12915c1 1975 if test "$wxUSE_LIBPNG" = yes; then
579d8138 1976 echo "$ac_t""yes" 1>&6
422107f9 1977 elif test "$wxUSE_LIBPNG" = no; then
579d8138 1978 echo "$ac_t""no" 1>&6
422107f9 1979 elif test "$wxUSE_LIBPNG" = sys; then
579d8138 1980 echo "$ac_t""system version" 1>&6
4f14bcd8 1981 elif test "$wxUSE_LIBPNG" = builtin; then
579d8138 1982 echo "$ac_t""builtin version" 1>&6
422107f9 1983 else
579d8138 1984 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1985 fi
579d8138 1986
10f2d63a 1987
579d8138 1988 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
f09359cf 1989echo "configure:1990: checking for --with-libjpeg" >&5
10f2d63a 1990 no_cache=0
579d8138 1991 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1992if test "${with_libjpeg+set}" = set; then
1993 withval="$with_libjpeg"
579d8138 1994
10f2d63a 1995 if test "$withval" = yes; then
b12915c1 1996 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1997 elif test "$withval" = no; then
b12915c1 1998 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1999 elif test "$withval" = sys; then
2000 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2001 elif test "$withval" = builtin; then
2002 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2003 else
579d8138 2004 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2005 fi
579d8138 2006
10f2d63a 2007else
579d8138 2008
b12915c1 2009 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2010 if test "x$LINE" != x ; then
2011 eval "DEFAULT_$LINE"
2012 else
2013 no_cache=1
2014 fi
2015
b12915c1 2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
579d8138
VS
2017
2018fi
10f2d63a
VZ
2019
2020
b12915c1 2021 eval "$ac_cv_use_libjpeg"
10f2d63a 2022 if test "$no_cache" != 1; then
b12915c1 2023 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2024 fi
2025
b12915c1 2026 if test "$wxUSE_LIBJPEG" = yes; then
579d8138 2027 echo "$ac_t""yes" 1>&6
422107f9 2028 elif test "$wxUSE_LIBJPEG" = no; then
579d8138 2029 echo "$ac_t""no" 1>&6
422107f9 2030 elif test "$wxUSE_LIBJPEG" = sys; then
579d8138 2031 echo "$ac_t""system version" 1>&6
4f14bcd8 2032 elif test "$wxUSE_LIBJPEG" = builtin; then
579d8138 2033 echo "$ac_t""builtin version" 1>&6
422107f9 2034 else
579d8138 2035 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2036 fi
579d8138 2037
10f2d63a 2038
579d8138 2039 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
f09359cf 2040echo "configure:2041: checking for --with-libtiff" >&5
10f2d63a 2041 no_cache=0
579d8138 2042 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2043if test "${with_libtiff+set}" = set; then
2044 withval="$with_libtiff"
579d8138 2045
10f2d63a 2046 if test "$withval" = yes; then
b12915c1 2047 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2048 elif test "$withval" = no; then
b12915c1 2049 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2050 elif test "$withval" = sys; then
2051 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2052 elif test "$withval" = builtin; then
2053 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2054 else
579d8138 2055 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2056 fi
579d8138 2057
10f2d63a 2058else
579d8138 2059
b12915c1 2060 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2061 if test "x$LINE" != x ; then
2062 eval "DEFAULT_$LINE"
2063 else
2064 no_cache=1
2065 fi
2066
b12915c1 2067 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
579d8138
VS
2068
2069fi
10f2d63a
VZ
2070
2071
b12915c1 2072 eval "$ac_cv_use_libtiff"
10f2d63a 2073 if test "$no_cache" != 1; then
b12915c1 2074 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2075 fi
2076
b12915c1 2077 if test "$wxUSE_LIBTIFF" = yes; then
579d8138 2078 echo "$ac_t""yes" 1>&6
0dcf9893 2079 elif test "$wxUSE_LIBTIFF" = no; then
579d8138 2080 echo "$ac_t""no" 1>&6
0dcf9893 2081 elif test "$wxUSE_LIBTIFF" = sys; then
579d8138 2082 echo "$ac_t""system version" 1>&6
4f14bcd8 2083 elif test "$wxUSE_LIBTIFF" = builtin; then
579d8138 2084 echo "$ac_t""builtin version" 1>&6
0dcf9893 2085 else
579d8138 2086 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2087 fi
579d8138 2088
10f2d63a 2089
579d8138 2090 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
f09359cf 2091echo "configure:2092: checking for --with-opengl" >&5
10f2d63a 2092 no_cache=0
579d8138 2093 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2094if test "${with_opengl+set}" = set; then
2095 withval="$with_opengl"
579d8138 2096
10f2d63a 2097 if test "$withval" = yes; then
b12915c1 2098 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2099 else
b12915c1 2100 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2101 fi
579d8138 2102
10f2d63a 2103else
579d8138 2104
b12915c1 2105 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
b12915c1 2112 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
579d8138
VS
2113
2114fi
10f2d63a
VZ
2115
2116
b12915c1 2117 eval "$ac_cv_use_opengl"
10f2d63a 2118 if test "$no_cache" != 1; then
b12915c1 2119 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2120 fi
2121
b12915c1 2122 if test "$wxUSE_OPENGL" = yes; then
579d8138 2123 echo "$ac_t""yes" 1>&6
10f2d63a 2124 else
579d8138 2125 echo "$ac_t""no" 1>&6
10f2d63a 2126 fi
579d8138 2127
10f2d63a 2128
b12915c1
VZ
2129fi
2130
328a083c 2131
579d8138 2132 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
f09359cf 2133echo "configure:2134: checking for --with-dmalloc" >&5
579d8138
VS
2134 no_cache=0
2135 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2136if test "${with_dmalloc+set}" = set; then
2137 withval="$with_dmalloc"
579d8138 2138
c7a2bf27 2139 if test "$withval" = yes; then
b12915c1 2140 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2141 else
b12915c1 2142 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2143 fi
579d8138 2144
c7a2bf27 2145else
579d8138 2146
b12915c1 2147 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
b12915c1 2154 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
579d8138
VS
2155
2156fi
c7a2bf27
RR
2157
2158
b12915c1 2159 eval "$ac_cv_use_dmalloc"
c7a2bf27 2160 if test "$no_cache" != 1; then
b12915c1 2161 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2162 fi
2163
b12915c1 2164 if test "$wxUSE_DMALLOC" = yes; then
579d8138 2165 echo "$ac_t""yes" 1>&6
c7a2bf27 2166 else
579d8138 2167 echo "$ac_t""no" 1>&6
c7a2bf27 2168 fi
579d8138 2169
c7a2bf27 2170
579d8138 2171 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
f09359cf 2172echo "configure:2173: checking for --with-regex" >&5
3e44f09d 2173 no_cache=0
579d8138 2174 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2175if test "${with_regex+set}" = set; then
2176 withval="$with_regex"
579d8138 2177
3e44f09d
VZ
2178 if test "$withval" = yes; then
2179 ac_cv_use_regex='wxUSE_REGEX=yes'
2180 elif test "$withval" = no; then
2181 ac_cv_use_regex='wxUSE_REGEX=no'
2182 elif test "$withval" = sys; then
2183 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2184 elif test "$withval" = builtin; then
2185 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2186 else
579d8138 2187 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2188 fi
579d8138 2189
3e44f09d 2190else
579d8138 2191
3e44f09d
VZ
2192 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
2199 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
579d8138
VS
2200
2201fi
3e44f09d
VZ
2202
2203
2204 eval "$ac_cv_use_regex"
2205 if test "$no_cache" != 1; then
2206 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2207 fi
2208
2209 if test "$wxUSE_REGEX" = yes; then
579d8138 2210 echo "$ac_t""yes" 1>&6
3e44f09d 2211 elif test "$wxUSE_REGEX" = no; then
579d8138 2212 echo "$ac_t""no" 1>&6
3e44f09d 2213 elif test "$wxUSE_REGEX" = sys; then
579d8138 2214 echo "$ac_t""system version" 1>&6
4f14bcd8 2215 elif test "$wxUSE_REGEX" = builtin; then
579d8138 2216 echo "$ac_t""builtin version" 1>&6
3e44f09d 2217 else
579d8138 2218 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2219 fi
579d8138 2220
3e44f09d 2221
579d8138 2222 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
f09359cf 2223echo "configure:2224: checking for --with-zlib" >&5
10f2d63a 2224 no_cache=0
579d8138 2225 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2226if test "${with_zlib+set}" = set; then
2227 withval="$with_zlib"
579d8138 2228
10f2d63a 2229 if test "$withval" = yes; then
b12915c1 2230 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2231 elif test "$withval" = no; then
b12915c1 2232 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2233 elif test "$withval" = sys; then
2234 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2235 elif test "$withval" = builtin; then
2236 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2237 else
579d8138 2238 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2239 fi
579d8138 2240
10f2d63a 2241else
579d8138 2242
b12915c1 2243 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2244 if test "x$LINE" != x ; then
2245 eval "DEFAULT_$LINE"
2246 else
2247 no_cache=1
2248 fi
2249
b12915c1 2250 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
579d8138
VS
2251
2252fi
10f2d63a
VZ
2253
2254
b12915c1 2255 eval "$ac_cv_use_zlib"
10f2d63a 2256 if test "$no_cache" != 1; then
b12915c1 2257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2258 fi
2259
b12915c1 2260 if test "$wxUSE_ZLIB" = yes; then
579d8138 2261 echo "$ac_t""yes" 1>&6
422107f9 2262 elif test "$wxUSE_ZLIB" = no; then
579d8138 2263 echo "$ac_t""no" 1>&6
422107f9 2264 elif test "$wxUSE_ZLIB" = sys; then
579d8138 2265 echo "$ac_t""system version" 1>&6
4f14bcd8 2266 elif test "$wxUSE_ZLIB" = builtin; then
579d8138 2267 echo "$ac_t""builtin version" 1>&6
422107f9 2268 else
579d8138 2269 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2270 fi
579d8138 2271
10f2d63a 2272
579d8138 2273 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
f09359cf 2274echo "configure:2275: checking for --with-odbc" >&5
10f2d63a 2275 no_cache=0
579d8138 2276 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2277if test "${with_odbc+set}" = set; then
2278 withval="$with_odbc"
579d8138 2279
10f2d63a
VZ
2280 if test "$withval" = yes; then
2281 ac_cv_use_odbc='wxUSE_ODBC=yes'
2282 else
2283 ac_cv_use_odbc='wxUSE_ODBC=no'
2284 fi
579d8138 2285
10f2d63a 2286else
579d8138 2287
10f2d63a
VZ
2288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
2295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
579d8138
VS
2296
2297fi
10f2d63a
VZ
2298
2299
2300 eval "$ac_cv_use_odbc"
2301 if test "$no_cache" != 1; then
2302 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2303 fi
2304
2305 if test "$wxUSE_ODBC" = yes; then
579d8138 2306 echo "$ac_t""yes" 1>&6
10f2d63a 2307 else
579d8138 2308 echo "$ac_t""no" 1>&6
10f2d63a 2309 fi
579d8138
VS
2310
2311
698dcdb6 2312
579d8138
VS
2313
2314 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
f09359cf 2315echo "configure:2316: checking for --enable-shared" >&5
10f2d63a
VZ
2316 no_cache=0
2317 # Check whether --enable-shared or --disable-shared was given.
2318if test "${enable_shared+set}" = set; then
2319 enableval="$enable_shared"
579d8138 2320
10f2d63a
VZ
2321 if test "$enableval" = yes; then
2322 ac_cv_use_shared='wxUSE_SHARED=yes'
2323 else
2324 ac_cv_use_shared='wxUSE_SHARED=no'
2325 fi
579d8138 2326
10f2d63a 2327else
579d8138 2328
10f2d63a
VZ
2329 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2330 if test "x$LINE" != x ; then
2331 eval "DEFAULT_$LINE"
2332 else
2333 no_cache=1
2334 fi
2335
2336 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
579d8138
VS
2337
2338fi
10f2d63a
VZ
2339
2340
2341 eval "$ac_cv_use_shared"
2342 if test "$no_cache" != 1; then
2343 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2344 fi
2345
2346 if test "$wxUSE_SHARED" = yes; then
579d8138 2347 echo "$ac_t""yes" 1>&6
10f2d63a 2348 else
579d8138 2349 echo "$ac_t""no" 1>&6
10f2d63a 2350 fi
579d8138 2351
10f2d63a 2352
579d8138 2353 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
f09359cf 2354echo "configure:2355: checking for --enable-soname" >&5
00cf1208 2355 no_cache=0
3a922bb4
RL
2356 # Check whether --enable-soname or --disable-soname was given.
2357if test "${enable_soname+set}" = set; then
2358 enableval="$enable_soname"
579d8138 2359
00cf1208 2360 if test "$enableval" = yes; then
3a922bb4 2361 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2362 else
3a922bb4 2363 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2364 fi
579d8138 2365
00cf1208 2366else
579d8138 2367
3a922bb4 2368 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2369 if test "x$LINE" != x ; then
2370 eval "DEFAULT_$LINE"
2371 else
2372 no_cache=1
2373 fi
2374
3a922bb4 2375 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
579d8138
VS
2376
2377fi
00cf1208
RR
2378
2379
3a922bb4 2380 eval "$ac_cv_use_soname"
00cf1208 2381 if test "$no_cache" != 1; then
3a922bb4 2382 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2383 fi
2384
3a922bb4 2385 if test "$wxUSE_SONAME" = yes; then
579d8138 2386 echo "$ac_t""yes" 1>&6
00cf1208 2387 else
579d8138 2388 echo "$ac_t""no" 1>&6
00cf1208 2389 fi
579d8138 2390
00cf1208 2391
579d8138 2392 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
f09359cf 2393echo "configure:2394: checking for --enable-optimise" >&5
10f2d63a
VZ
2394 no_cache=0
2395 # Check whether --enable-optimise or --disable-optimise was given.
2396if test "${enable_optimise+set}" = set; then
2397 enableval="$enable_optimise"
579d8138 2398
10f2d63a
VZ
2399 if test "$enableval" = yes; then
2400 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2401 else
2402 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2403 fi
579d8138 2404
10f2d63a 2405else
579d8138 2406
10f2d63a
VZ
2407 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
579d8138
VS
2415
2416fi
10f2d63a
VZ
2417
2418
2419 eval "$ac_cv_use_optimise"
2420 if test "$no_cache" != 1; then
2421 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2422 fi
2423
2424 if test "$wxUSE_OPTIMISE" = yes; then
579d8138 2425 echo "$ac_t""yes" 1>&6
10f2d63a 2426 else
579d8138 2427 echo "$ac_t""no" 1>&6
10f2d63a 2428 fi
579d8138 2429
10f2d63a 2430
579d8138 2431 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
f09359cf 2432echo "configure:2433: checking for --enable-debug" >&5
10f2d63a
VZ
2433 no_cache=0
2434 # Check whether --enable-debug or --disable-debug was given.
2435if test "${enable_debug+set}" = set; then
2436 enableval="$enable_debug"
579d8138 2437
10f2d63a
VZ
2438 if test "$enableval" = yes; then
2439 ac_cv_use_debug='wxUSE_DEBUG=yes'
2440 else
2441 ac_cv_use_debug='wxUSE_DEBUG=no'
2442 fi
579d8138 2443
10f2d63a 2444else
579d8138 2445
10f2d63a
VZ
2446 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
579d8138
VS
2454
2455fi
10f2d63a
VZ
2456
2457
2458 eval "$ac_cv_use_debug"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_DEBUG" = yes; then
579d8138 2464 echo "$ac_t""yes" 1>&6
10f2d63a 2465 else
579d8138 2466 echo "$ac_t""no" 1>&6
10f2d63a 2467 fi
579d8138
VS
2468
2469
10f2d63a 2470
579d8138 2471 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
f09359cf 2472echo "configure:2473: checking for --enable-precomp" >&5
683dccda
GD
2473 no_cache=0
2474 # Check whether --enable-precomp or --disable-precomp was given.
2475if test "${enable_precomp+set}" = set; then
2476 enableval="$enable_precomp"
579d8138 2477
683dccda
GD
2478 if test "$enableval" = yes; then
2479 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2480 else
2481 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2482 fi
579d8138 2483
683dccda 2484else
579d8138 2485
683dccda
GD
2486 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2487 if test "x$LINE" != x ; then
2488 eval "DEFAULT_$LINE"
2489 else
2490 no_cache=1
2491 fi
2492
2493 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
579d8138
VS
2494
2495fi
683dccda
GD
2496
2497
2498 eval "$ac_cv_use_precomp"
2499 if test "$no_cache" != 1; then
2500 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2501 fi
2502
2503 if test "$wxUSE_PRECOMP" = yes; then
579d8138 2504 echo "$ac_t""yes" 1>&6
683dccda 2505 else
579d8138 2506 echo "$ac_t""no" 1>&6
683dccda 2507 fi
579d8138 2508
683dccda 2509
10f2d63a
VZ
2510if test "$wxUSE_DEBUG" = "yes"; then
2511 DEFAULT_wxUSE_DEBUG_FLAG=yes
2512 DEFAULT_wxUSE_DEBUG_INFO=yes
2513elif test "$wxUSE_DEBUG" = "no"; then
2514 DEFAULT_wxUSE_DEBUG_FLAG=no
2515 DEFAULT_wxUSE_DEBUG_INFO=no
2516fi
2517
579d8138
VS
2518
2519 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
f09359cf 2520echo "configure:2521: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2521 no_cache=0
2522 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2523if test "${enable_debug_flag+set}" = set; then
2524 enableval="$enable_debug_flag"
579d8138 2525
10f2d63a
VZ
2526 if test "$enableval" = yes; then
2527 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2528 else
2529 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2530 fi
579d8138 2531
10f2d63a 2532else
579d8138 2533
10f2d63a
VZ
2534 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2535 if test "x$LINE" != x ; then
2536 eval "DEFAULT_$LINE"
2537 else
2538 no_cache=1
2539 fi
2540
2541 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
579d8138
VS
2542
2543fi
10f2d63a
VZ
2544
2545
2546 eval "$ac_cv_use_debug_flag"
2547 if test "$no_cache" != 1; then
2548 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2549 fi
2550
2551 if test "$wxUSE_DEBUG_FLAG" = yes; then
579d8138 2552 echo "$ac_t""yes" 1>&6
10f2d63a 2553 else
579d8138 2554 echo "$ac_t""no" 1>&6
10f2d63a 2555 fi
579d8138 2556
10f2d63a 2557
579d8138 2558 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
f09359cf 2559echo "configure:2560: checking for --enable-debug_info" >&5
10f2d63a
VZ
2560 no_cache=0
2561 # Check whether --enable-debug_info or --disable-debug_info was given.
2562if test "${enable_debug_info+set}" = set; then
2563 enableval="$enable_debug_info"
579d8138 2564
10f2d63a
VZ
2565 if test "$enableval" = yes; then
2566 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2567 else
2568 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2569 fi
579d8138 2570
10f2d63a 2571else
579d8138 2572
10f2d63a
VZ
2573 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2574 if test "x$LINE" != x ; then
2575 eval "DEFAULT_$LINE"
2576 else
2577 no_cache=1
2578 fi
2579
2580 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
579d8138
VS
2581
2582fi
10f2d63a
VZ
2583
2584
2585 eval "$ac_cv_use_debug_info"
2586 if test "$no_cache" != 1; then
2587 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2588 fi
2589
2590 if test "$wxUSE_DEBUG_INFO" = yes; then
579d8138 2591 echo "$ac_t""yes" 1>&6
10f2d63a 2592 else
579d8138 2593 echo "$ac_t""no" 1>&6
10f2d63a 2594 fi
579d8138 2595
10f2d63a 2596
579d8138 2597 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
f09359cf 2598echo "configure:2599: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2599 no_cache=0
2600 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2601if test "${enable_debug_gdb+set}" = set; then
2602 enableval="$enable_debug_gdb"
579d8138 2603
10f2d63a
VZ
2604 if test "$enableval" = yes; then
2605 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2606 else
2607 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2608 fi
579d8138 2609
10f2d63a 2610else
579d8138 2611
10f2d63a
VZ
2612 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2613 if test "x$LINE" != x ; then
2614 eval "DEFAULT_$LINE"
2615 else
2616 no_cache=1
2617 fi
2618
2619 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
579d8138
VS
2620
2621fi
10f2d63a
VZ
2622
2623
2624 eval "$ac_cv_use_debug_gdb"
2625 if test "$no_cache" != 1; then
2626 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2627 fi
2628
2629 if test "$wxUSE_DEBUG_GDB" = yes; then
579d8138 2630 echo "$ac_t""yes" 1>&6
10f2d63a 2631 else
579d8138 2632 echo "$ac_t""no" 1>&6
10f2d63a 2633 fi
579d8138 2634
10f2d63a 2635
579d8138 2636 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
f09359cf 2637echo "configure:2638: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2638 no_cache=0
2639 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2640if test "${enable_debug_cntxt+set}" = set; then
2641 enableval="$enable_debug_cntxt"
579d8138 2642
10f2d63a
VZ
2643 if test "$enableval" = yes; then
2644 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2645 else
2646 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2647 fi
579d8138 2648
10f2d63a 2649else
579d8138 2650
10f2d63a
VZ
2651 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2652 if test "x$LINE" != x ; then
2653 eval "DEFAULT_$LINE"
2654 else
2655 no_cache=1
2656 fi
2657
2658 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
579d8138
VS
2659
2660fi
10f2d63a
VZ
2661
2662
2663 eval "$ac_cv_use_debug_cntxt"
2664 if test "$no_cache" != 1; then
2665 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2666 fi
2667
2668 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
579d8138 2669 echo "$ac_t""yes" 1>&6
10f2d63a 2670 else
579d8138 2671 echo "$ac_t""no" 1>&6
10f2d63a 2672 fi
579d8138 2673
10f2d63a 2674
579d8138 2675 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
f09359cf 2676echo "configure:2677: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2677 no_cache=0
2678 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2679if test "${enable_mem_tracing+set}" = set; then
2680 enableval="$enable_mem_tracing"
579d8138 2681
10f2d63a
VZ
2682 if test "$enableval" = yes; then
2683 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2684 else
2685 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2686 fi
579d8138 2687
10f2d63a 2688else
579d8138 2689
10f2d63a
VZ
2690 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2691 if test "x$LINE" != x ; then
2692 eval "DEFAULT_$LINE"
2693 else
2694 no_cache=1
2695 fi
2696
2697 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
579d8138
VS
2698
2699fi
10f2d63a
VZ
2700
2701
2702 eval "$ac_cv_use_mem_tracing"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_MEM_TRACING" = yes; then
579d8138 2708 echo "$ac_t""yes" 1>&6
10f2d63a 2709 else
579d8138 2710 echo "$ac_t""no" 1>&6
10f2d63a 2711 fi
579d8138 2712
10f2d63a 2713
579d8138 2714 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
f09359cf 2715echo "configure:2716: checking for --enable-profile" >&5
10f2d63a
VZ
2716 no_cache=0
2717 # Check whether --enable-profile or --disable-profile was given.
2718if test "${enable_profile+set}" = set; then
2719 enableval="$enable_profile"
579d8138 2720
10f2d63a
VZ
2721 if test "$enableval" = yes; then
2722 ac_cv_use_profile='wxUSE_PROFILE=yes'
2723 else
2724 ac_cv_use_profile='wxUSE_PROFILE=no'
2725 fi
579d8138 2726
10f2d63a 2727else
579d8138 2728
10f2d63a
VZ
2729 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2730 if test "x$LINE" != x ; then
2731 eval "DEFAULT_$LINE"
2732 else
2733 no_cache=1
2734 fi
2735
2736 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
579d8138
VS
2737
2738fi
10f2d63a
VZ
2739
2740
2741 eval "$ac_cv_use_profile"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxUSE_PROFILE" = yes; then
579d8138 2747 echo "$ac_t""yes" 1>&6
10f2d63a 2748 else
579d8138 2749 echo "$ac_t""no" 1>&6
10f2d63a 2750 fi
579d8138 2751
10f2d63a 2752
579d8138 2753 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
f09359cf 2754echo "configure:2755: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2755 no_cache=0
2756 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2757if test "${enable_no_rtti+set}" = set; then
2758 enableval="$enable_no_rtti"
579d8138 2759
10f2d63a
VZ
2760 if test "$enableval" = yes; then
2761 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2762 else
2763 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2764 fi
579d8138 2765
10f2d63a 2766else
579d8138 2767
10f2d63a
VZ
2768 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2769 if test "x$LINE" != x ; then
2770 eval "DEFAULT_$LINE"
2771 else
2772 no_cache=1
2773 fi
2774
2775 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
579d8138
VS
2776
2777fi
10f2d63a
VZ
2778
2779
2780 eval "$ac_cv_use_no_rtti"
2781 if test "$no_cache" != 1; then
2782 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2783 fi
2784
2785 if test "$wxUSE_NO_RTTI" = yes; then
579d8138 2786 echo "$ac_t""yes" 1>&6
10f2d63a 2787 else
579d8138 2788 echo "$ac_t""no" 1>&6
10f2d63a 2789 fi
579d8138 2790
10f2d63a 2791
579d8138 2792 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
f09359cf 2793echo "configure:2794: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2794 no_cache=0
2795 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2796if test "${enable_no_exceptions+set}" = set; then
2797 enableval="$enable_no_exceptions"
579d8138 2798
10f2d63a
VZ
2799 if test "$enableval" = yes; then
2800 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2801 else
2802 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2803 fi
579d8138 2804
10f2d63a 2805else
579d8138 2806
10f2d63a
VZ
2807 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
579d8138
VS
2815
2816fi
10f2d63a
VZ
2817
2818
2819 eval "$ac_cv_use_no_exceptions"
2820 if test "$no_cache" != 1; then
2821 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2822 fi
2823
2824 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
579d8138 2825 echo "$ac_t""yes" 1>&6
10f2d63a 2826 else
579d8138 2827 echo "$ac_t""no" 1>&6
10f2d63a 2828 fi
579d8138 2829
10f2d63a 2830
579d8138 2831 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
f09359cf 2832echo "configure:2833: checking for --enable-permissive" >&5
10f2d63a
VZ
2833 no_cache=0
2834 # Check whether --enable-permissive or --disable-permissive was given.
2835if test "${enable_permissive+set}" = set; then
2836 enableval="$enable_permissive"
579d8138 2837
10f2d63a
VZ
2838 if test "$enableval" = yes; then
2839 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2840 else
2841 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2842 fi
579d8138 2843
10f2d63a 2844else
579d8138 2845
10f2d63a
VZ
2846 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
579d8138
VS
2854
2855fi
10f2d63a
VZ
2856
2857
2858 eval "$ac_cv_use_permissive"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_PERMISSIVE" = yes; then
579d8138 2864 echo "$ac_t""yes" 1>&6
10f2d63a 2865 else
579d8138 2866 echo "$ac_t""no" 1>&6
10f2d63a 2867 fi
579d8138 2868
10f2d63a 2869
579d8138 2870 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
f09359cf 2871echo "configure:2872: checking for --enable-no_deps" >&5
10f2d63a
VZ
2872 no_cache=0
2873 # Check whether --enable-no_deps or --disable-no_deps was given.
2874if test "${enable_no_deps+set}" = set; then
2875 enableval="$enable_no_deps"
579d8138 2876
10f2d63a
VZ
2877 if test "$enableval" = yes; then
2878 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2879 else
2880 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2881 fi
579d8138 2882
10f2d63a 2883else
579d8138 2884
10f2d63a
VZ
2885 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
2892 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
579d8138
VS
2893
2894fi
10f2d63a
VZ
2895
2896
2897 eval "$ac_cv_use_no_deps"
2898 if test "$no_cache" != 1; then
2899 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2900 fi
2901
2902 if test "$wxUSE_NO_DEPS" = yes; then
579d8138 2903 echo "$ac_t""yes" 1>&6
10f2d63a 2904 else
579d8138 2905 echo "$ac_t""no" 1>&6
10f2d63a 2906 fi
579d8138
VS
2907
2908
698dcdb6 2909
579d8138 2910 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
f09359cf 2911echo "configure:2912: checking for --enable-compat20" >&5
54276ccf
VZ
2912 no_cache=0
2913 # Check whether --enable-compat20 or --disable-compat20 was given.
2914if test "${enable_compat20+set}" = set; then
2915 enableval="$enable_compat20"
579d8138 2916
54276ccf
VZ
2917 if test "$enableval" = yes; then
2918 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2919 else
2920 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2921 fi
579d8138 2922
54276ccf 2923else
579d8138 2924
54276ccf
VZ
2925 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
579d8138
VS
2933
2934fi
54276ccf
VZ
2935
2936
2937 eval "$ac_cv_use_compat20"
2938 if test "$no_cache" != 1; then
2939 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2940 fi
2941
2942 if test "$WXWIN_COMPATIBILITY_2" = yes; then
579d8138 2943 echo "$ac_t""yes" 1>&6
54276ccf 2944 else
579d8138 2945 echo "$ac_t""no" 1>&6
54276ccf 2946 fi
579d8138 2947
54276ccf 2948
579d8138 2949 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
f09359cf 2950echo "configure:2951: checking for --enable-compat22" >&5
54276ccf
VZ
2951 no_cache=0
2952 # Check whether --enable-compat22 or --disable-compat22 was given.
2953if test "${enable_compat22+set}" = set; then
2954 enableval="$enable_compat22"
579d8138 2955
54276ccf
VZ
2956 if test "$enableval" = yes; then
2957 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2958 else
2959 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2960 fi
579d8138 2961
54276ccf 2962else
579d8138 2963
54276ccf
VZ
2964 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
579d8138
VS
2972
2973fi
54276ccf
VZ
2974
2975
2976 eval "$ac_cv_use_compat22"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
579d8138 2982 echo "$ac_t""yes" 1>&6
54276ccf 2983 else
579d8138 2984 echo "$ac_t""no" 1>&6
54276ccf 2985 fi
579d8138 2986
54276ccf 2987
3bd8fb5f
RD
2988# Check whether --enable-rpath or --disable-rpath was given.
2989if test "${enable_rpath+set}" = set; then
2990 enableval="$enable_rpath"
2991 wxRPATH_DIR="$enableval"
579d8138
VS
2992fi
2993
3bd8fb5f
RD
2994
2995if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2996 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2997fi
2998
579d8138
VS
2999
3000
3001
3002 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
f09359cf 3003echo "configure:3004: checking for --enable-intl" >&5
10f2d63a
VZ
3004 no_cache=0
3005 # Check whether --enable-intl or --disable-intl was given.
3006if test "${enable_intl+set}" = set; then
3007 enableval="$enable_intl"
579d8138 3008
10f2d63a
VZ
3009 if test "$enableval" = yes; then
3010 ac_cv_use_intl='wxUSE_INTL=yes'
3011 else
3012 ac_cv_use_intl='wxUSE_INTL=no'
3013 fi
579d8138 3014
10f2d63a 3015else
579d8138 3016
10f2d63a
VZ
3017 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
579d8138
VS
3025
3026fi
10f2d63a
VZ
3027
3028
3029 eval "$ac_cv_use_intl"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_INTL" = yes; then
579d8138 3035 echo "$ac_t""yes" 1>&6
10f2d63a 3036 else
579d8138 3037 echo "$ac_t""no" 1>&6
10f2d63a 3038 fi
579d8138 3039
10f2d63a 3040
579d8138 3041 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
f09359cf 3042echo "configure:3043: checking for --enable-config" >&5
10f2d63a
VZ
3043 no_cache=0
3044 # Check whether --enable-config or --disable-config was given.
3045if test "${enable_config+set}" = set; then
3046 enableval="$enable_config"
579d8138 3047
10f2d63a
VZ
3048 if test "$enableval" = yes; then
3049 ac_cv_use_config='wxUSE_CONFIG=yes'
3050 else
3051 ac_cv_use_config='wxUSE_CONFIG=no'
3052 fi
579d8138 3053
10f2d63a 3054else
579d8138 3055
10f2d63a
VZ
3056 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
579d8138
VS
3064
3065fi
10f2d63a
VZ
3066
3067
3068 eval "$ac_cv_use_config"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CONFIG" = yes; then
579d8138 3074 echo "$ac_t""yes" 1>&6
10f2d63a 3075 else
579d8138 3076 echo "$ac_t""no" 1>&6
10f2d63a 3077 fi
579d8138
VS
3078
3079
698dcdb6 3080
579d8138 3081 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
f09359cf 3082echo "configure:3083: checking for --enable-protocols" >&5
a1622950
VZ
3083 no_cache=0
3084 # Check whether --enable-protocols or --disable-protocols was given.
3085if test "${enable_protocols+set}" = set; then
3086 enableval="$enable_protocols"
579d8138 3087
a1622950
VZ
3088 if test "$enableval" = yes; then
3089 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3090 else
3091 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3092 fi
579d8138 3093
a1622950 3094else
579d8138 3095
a1622950
VZ
3096 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
579d8138
VS
3104
3105fi
a1622950
VZ
3106
3107
3108 eval "$ac_cv_use_protocols"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_PROTOCOL" = yes; then
579d8138 3114 echo "$ac_t""yes" 1>&6
a1622950 3115 else
579d8138 3116 echo "$ac_t""no" 1>&6
a1622950 3117 fi
579d8138 3118
a1622950 3119
579d8138 3120 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
f09359cf 3121echo "configure:3122: checking for --enable-ftp" >&5
a1622950
VZ
3122 no_cache=0
3123 # Check whether --enable-ftp or --disable-ftp was given.
3124if test "${enable_ftp+set}" = set; then
3125 enableval="$enable_ftp"
579d8138 3126
a1622950
VZ
3127 if test "$enableval" = yes; then
3128 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3129 else
3130 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3131 fi
579d8138 3132
a1622950 3133else
579d8138 3134
a1622950
VZ
3135 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3136 if test "x$LINE" != x ; then
3137 eval "DEFAULT_$LINE"
3138 else
3139 no_cache=1
3140 fi
3141
3142 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
579d8138
VS
3143
3144fi
a1622950
VZ
3145
3146
3147 eval "$ac_cv_use_ftp"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_PROTOCOL_FTP" = yes; then
579d8138 3153 echo "$ac_t""yes" 1>&6
a1622950 3154 else
579d8138 3155 echo "$ac_t""no" 1>&6
a1622950 3156 fi
579d8138 3157
a1622950 3158
579d8138 3159 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
f09359cf 3160echo "configure:3161: checking for --enable-http" >&5
a1622950
VZ
3161 no_cache=0
3162 # Check whether --enable-http or --disable-http was given.
3163if test "${enable_http+set}" = set; then
3164 enableval="$enable_http"
579d8138 3165
a1622950
VZ
3166 if test "$enableval" = yes; then
3167 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3168 else
3169 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3170 fi
579d8138 3171
a1622950 3172else
579d8138 3173
a1622950
VZ
3174 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
579d8138
VS
3182
3183fi
a1622950
VZ
3184
3185
3186 eval "$ac_cv_use_http"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
579d8138 3192 echo "$ac_t""yes" 1>&6
a1622950 3193 else
579d8138 3194 echo "$ac_t""no" 1>&6
a1622950 3195 fi
579d8138 3196
a1622950 3197
579d8138 3198 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
f09359cf 3199echo "configure:3200: checking for --enable-fileproto" >&5
a1622950
VZ
3200 no_cache=0
3201 # Check whether --enable-fileproto or --disable-fileproto was given.
3202if test "${enable_fileproto+set}" = set; then
3203 enableval="$enable_fileproto"
579d8138 3204
a1622950
VZ
3205 if test "$enableval" = yes; then
3206 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3207 else
3208 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3209 fi
579d8138 3210
a1622950 3211else
579d8138 3212
a1622950
VZ
3213 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
579d8138
VS
3221
3222fi
a1622950
VZ
3223
3224
3225 eval "$ac_cv_use_fileproto"
3226 if test "$no_cache" != 1; then
3227 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3228 fi
3229
3230 if test "$wxUSE_PROTOCOL_FILE" = yes; then
579d8138 3231 echo "$ac_t""yes" 1>&6
a1622950 3232 else
579d8138 3233 echo "$ac_t""no" 1>&6
a1622950 3234 fi
579d8138 3235
a1622950 3236
579d8138 3237 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
f09359cf 3238echo "configure:3239: checking for --enable-sockets" >&5
10f2d63a
VZ
3239 no_cache=0
3240 # Check whether --enable-sockets or --disable-sockets was given.
3241if test "${enable_sockets+set}" = set; then
3242 enableval="$enable_sockets"
579d8138 3243
10f2d63a
VZ
3244 if test "$enableval" = yes; then
3245 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3246 else
3247 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3248 fi
579d8138 3249
10f2d63a 3250else
579d8138 3251
10f2d63a
VZ
3252 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
579d8138
VS
3260
3261fi
10f2d63a
VZ
3262
3263
3264 eval "$ac_cv_use_sockets"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_SOCKETS" = yes; then
579d8138 3270 echo "$ac_t""yes" 1>&6
10f2d63a 3271 else
579d8138 3272 echo "$ac_t""no" 1>&6
10f2d63a 3273 fi
579d8138 3274
698dcdb6 3275
579d8138
VS
3276
3277 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
f09359cf 3278echo "configure:3279: checking for --enable-ipc" >&5
10f2d63a 3279 no_cache=0
eb4efbdc
VZ
3280 # Check whether --enable-ipc or --disable-ipc was given.
3281if test "${enable_ipc+set}" = set; then
3282 enableval="$enable_ipc"
579d8138 3283
10f2d63a 3284 if test "$enableval" = yes; then
eb4efbdc 3285 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3286 else
eb4efbdc 3287 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3288 fi
579d8138 3289
10f2d63a 3290else
579d8138 3291
eb4efbdc 3292 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
eb4efbdc 3299 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
579d8138
VS
3300
3301fi
10f2d63a
VZ
3302
3303
eb4efbdc 3304 eval "$ac_cv_use_ipc"
10f2d63a 3305 if test "$no_cache" != 1; then
eb4efbdc 3306 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3307 fi
3308
eb4efbdc 3309 if test "$wxUSE_IPC" = yes; then
579d8138 3310 echo "$ac_t""yes" 1>&6
10f2d63a 3311 else
579d8138 3312 echo "$ac_t""no" 1>&6
10f2d63a 3313 fi
579d8138
VS
3314
3315
698dcdb6 3316
579d8138 3317 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
f09359cf 3318echo "configure:3319: checking for --enable-cmdline" >&5
1e6feb95
VZ
3319 no_cache=0
3320 # Check whether --enable-cmdline or --disable-cmdline was given.
3321if test "${enable_cmdline+set}" = set; then
3322 enableval="$enable_cmdline"
579d8138 3323
1e6feb95
VZ
3324 if test "$enableval" = yes; then
3325 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3326 else
3327 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3328 fi
579d8138 3329
1e6feb95 3330else
579d8138 3331
1e6feb95
VZ
3332 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
579d8138
VS
3340
3341fi
1e6feb95
VZ
3342
3343
3344 eval "$ac_cv_use_cmdline"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_CMDLINE_PARSER" = yes; then
579d8138 3350 echo "$ac_t""yes" 1>&6
1e6feb95 3351 else
579d8138 3352 echo "$ac_t""no" 1>&6
1e6feb95 3353 fi
579d8138 3354
1e6feb95 3355
579d8138 3356 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
f09359cf 3357echo "configure:3358: checking for --enable-datetime" >&5
1e6feb95
VZ
3358 no_cache=0
3359 # Check whether --enable-datetime or --disable-datetime was given.
3360if test "${enable_datetime+set}" = set; then
3361 enableval="$enable_datetime"
579d8138 3362
1e6feb95
VZ
3363 if test "$enableval" = yes; then
3364 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3365 else
3366 ac_cv_use_datetime='wxUSE_DATETIME=no'
3367 fi
579d8138 3368
1e6feb95 3369else
579d8138 3370
1e6feb95
VZ
3371 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
579d8138
VS
3379
3380fi
1e6feb95
VZ
3381
3382
3383 eval "$ac_cv_use_datetime"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_DATETIME" = yes; then
579d8138 3389 echo "$ac_t""yes" 1>&6
1e6feb95 3390 else
579d8138 3391 echo "$ac_t""no" 1>&6
1e6feb95 3392 fi
579d8138 3393
1e6feb95 3394
579d8138 3395 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
f09359cf 3396echo "configure:3397: checking for --enable-timedate" >&5
1e6feb95
VZ
3397 no_cache=0
3398 # Check whether --enable-timedate or --disable-timedate was given.
3399if test "${enable_timedate+set}" = set; then
3400 enableval="$enable_timedate"
579d8138 3401
1e6feb95
VZ
3402 if test "$enableval" = yes; then
3403 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3404 else
3405 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3406 fi
579d8138 3407
1e6feb95 3408else
579d8138 3409
1e6feb95
VZ
3410 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
579d8138
VS
3418
3419fi
1e6feb95
VZ
3420
3421
3422 eval "$ac_cv_use_timedate"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_TIMEDATE" = yes; then
579d8138 3428 echo "$ac_t""yes" 1>&6
1e6feb95 3429 else
579d8138 3430 echo "$ac_t""no" 1>&6
1e6feb95 3431 fi
579d8138 3432
1e6feb95 3433
579d8138 3434 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
f09359cf 3435echo "configure:3436: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3436 no_cache=0
3437 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3438if test "${enable_stopwatch+set}" = set; then
3439 enableval="$enable_stopwatch"
579d8138 3440
1e6feb95
VZ
3441 if test "$enableval" = yes; then
3442 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3443 else
3444 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3445 fi
579d8138 3446
1e6feb95 3447else
579d8138 3448
1e6feb95
VZ
3449 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
579d8138
VS
3457
3458fi
1e6feb95
VZ
3459
3460
3461 eval "$ac_cv_use_stopwatch"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_STOPWATCH" = yes; then
579d8138 3467 echo "$ac_t""yes" 1>&6
1e6feb95 3468 else
579d8138 3469 echo "$ac_t""no" 1>&6
1e6feb95 3470 fi
579d8138 3471
1e6feb95 3472
579d8138 3473 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
f09359cf 3474echo "configure:3475: checking for --enable-dialupman" >&5
10f2d63a 3475 no_cache=0
eb4efbdc
VZ
3476 # Check whether --enable-dialupman or --disable-dialupman was given.
3477if test "${enable_dialupman+set}" = set; then
3478 enableval="$enable_dialupman"
579d8138 3479
10f2d63a 3480 if test "$enableval" = yes; then
eb4efbdc 3481 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3482 else
eb4efbdc 3483 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3484 fi
579d8138 3485
10f2d63a 3486else
579d8138 3487
eb4efbdc 3488 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
eb4efbdc 3495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
579d8138
VS
3496
3497fi
10f2d63a
VZ
3498
3499
eb4efbdc 3500 eval "$ac_cv_use_dialupman"
10f2d63a 3501 if test "$no_cache" != 1; then
eb4efbdc 3502 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3503 fi
3504
eb4efbdc 3505 if test "$wxUSE_DIALUP_MANAGER" = yes; then
579d8138 3506 echo "$ac_t""yes" 1>&6
10f2d63a 3507 else
579d8138 3508 echo "$ac_t""no" 1>&6
10f2d63a 3509 fi
579d8138 3510
10f2d63a 3511
579d8138 3512 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
f09359cf 3513echo "configure:3514: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3514 no_cache=0
3515 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3516if test "${enable_apple_ieee+set}" = set; then
3517 enableval="$enable_apple_ieee"
579d8138 3518
10f2d63a
VZ
3519 if test "$enableval" = yes; then
3520 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3521 else
3522 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3523 fi
579d8138 3524
10f2d63a 3525else
579d8138 3526
10f2d63a
VZ
3527 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
579d8138
VS
3535
3536fi
10f2d63a
VZ
3537
3538
3539 eval "$ac_cv_use_apple_ieee"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_APPLE_IEEE" = yes; then
579d8138 3545 echo "$ac_t""yes" 1>&6
10f2d63a 3546 else
579d8138 3547 echo "$ac_t""no" 1>&6
10f2d63a 3548 fi
579d8138 3549
10f2d63a 3550
579d8138 3551 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
f09359cf 3552echo "configure:3553: checking for --enable-timer" >&5
10f2d63a 3553 no_cache=0
1e6feb95
VZ
3554 # Check whether --enable-timer or --disable-timer was given.
3555if test "${enable_timer+set}" = set; then
3556 enableval="$enable_timer"
579d8138 3557
10f2d63a 3558 if test "$enableval" = yes; then
1e6feb95 3559 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3560 else
1e6feb95 3561 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3562 fi
579d8138 3563
10f2d63a 3564else
579d8138 3565
1e6feb95 3566 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
1e6feb95 3573 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
579d8138
VS
3574
3575fi
10f2d63a
VZ
3576
3577
1e6feb95 3578 eval "$ac_cv_use_timer"
10f2d63a 3579 if test "$no_cache" != 1; then
1e6feb95 3580 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3581 fi
3582
1e6feb95 3583 if test "$wxUSE_TIMER" = yes; then
579d8138 3584 echo "$ac_t""yes" 1>&6
10f2d63a 3585 else
579d8138 3586 echo "$ac_t""no" 1>&6
10f2d63a 3587 fi
579d8138 3588
10f2d63a 3589
579d8138 3590 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
f09359cf 3591echo "configure:3592: checking for --enable-wave" >&5
10f2d63a
VZ
3592 no_cache=0
3593 # Check whether --enable-wave or --disable-wave was given.
3594if test "${enable_wave+set}" = set; then
3595 enableval="$enable_wave"
579d8138 3596
10f2d63a
VZ
3597 if test "$enableval" = yes; then
3598 ac_cv_use_wave='wxUSE_WAVE=yes'
3599 else
3600 ac_cv_use_wave='wxUSE_WAVE=no'
3601 fi
579d8138 3602
10f2d63a 3603else
579d8138 3604
10f2d63a
VZ
3605 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
579d8138
VS
3613
3614fi
10f2d63a
VZ
3615
3616
3617 eval "$ac_cv_use_wave"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_WAVE" = yes; then
579d8138 3623 echo "$ac_t""yes" 1>&6
10f2d63a 3624 else
579d8138 3625 echo "$ac_t""no" 1>&6
10f2d63a 3626 fi
579d8138 3627
10f2d63a 3628
579d8138 3629 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
f09359cf 3630echo "configure:3631: checking for --enable-fraction" >&5
10f2d63a
VZ
3631 no_cache=0
3632 # Check whether --enable-fraction or --disable-fraction was given.
3633if test "${enable_fraction+set}" = set; then
3634 enableval="$enable_fraction"
579d8138 3635
10f2d63a
VZ
3636 if test "$enableval" = yes; then
3637 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3638 else
3639 ac_cv_use_fraction='wxUSE_FRACTION=no'
3640 fi
579d8138 3641
10f2d63a 3642else
579d8138 3643
10f2d63a
VZ
3644 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
579d8138
VS
3652
3653fi
10f2d63a
VZ
3654
3655
3656 eval "$ac_cv_use_fraction"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_FRACTION" = yes; then
579d8138 3662 echo "$ac_t""yes" 1>&6
10f2d63a 3663 else
579d8138 3664 echo "$ac_t""no" 1>&6
10f2d63a 3665 fi
579d8138 3666
10f2d63a 3667
579d8138 3668 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
f09359cf 3669echo "configure:3670: checking for --enable-dynlib" >&5
10f2d63a
VZ
3670 no_cache=0
3671 # Check whether --enable-dynlib or --disable-dynlib was given.
3672if test "${enable_dynlib+set}" = set; then
3673 enableval="$enable_dynlib"
579d8138 3674
10f2d63a
VZ
3675 if test "$enableval" = yes; then
3676 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3677 else
3678 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3679 fi
579d8138 3680
10f2d63a 3681else
579d8138 3682
10f2d63a
VZ
3683 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
579d8138
VS
3691
3692fi
10f2d63a
VZ
3693
3694
3695 eval "$ac_cv_use_dynlib"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DYNLIB_CLASS" = yes; then
579d8138 3701 echo "$ac_t""yes" 1>&6
10f2d63a 3702 else
579d8138 3703 echo "$ac_t""no" 1>&6
10f2d63a 3704 fi
579d8138 3705
10f2d63a 3706
579d8138 3707 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
f09359cf 3708echo "configure:3709: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3709 no_cache=0
3710 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3711if test "${enable_dynamicloader+set}" = set; then
3712 enableval="$enable_dynamicloader"
579d8138 3713
0b9ab0bd
RL
3714 if test "$enableval" = yes; then
3715 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3716 else
3717 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3718 fi
579d8138 3719
0b9ab0bd 3720else
579d8138 3721
0b9ab0bd
RL
3722 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
579d8138
VS
3730
3731fi
0b9ab0bd
RL
3732
3733
3734 eval "$ac_cv_use_dynamicloader"
3735 if test "$no_cache" != 1; then
3736 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3737 fi
3738
3739 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
579d8138 3740 echo "$ac_t""yes" 1>&6
0b9ab0bd 3741 else
579d8138 3742 echo "$ac_t""no" 1>&6
0b9ab0bd 3743 fi
579d8138 3744
0b9ab0bd 3745
579d8138 3746 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
f09359cf 3747echo "configure:3748: checking for --enable-longlong" >&5
10f2d63a
VZ
3748 no_cache=0
3749 # Check whether --enable-longlong or --disable-longlong was given.
3750if test "${enable_longlong+set}" = set; then
3751 enableval="$enable_longlong"
579d8138 3752
10f2d63a
VZ
3753 if test "$enableval" = yes; then
3754 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3755 else
3756 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3757 fi
579d8138 3758
10f2d63a 3759else
579d8138 3760
10f2d63a
VZ
3761 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
579d8138
VS
3769
3770fi
10f2d63a
VZ
3771
3772
3773 eval "$ac_cv_use_longlong"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_LONGLONG" = yes; then
579d8138 3779 echo "$ac_t""yes" 1>&6
10f2d63a 3780 else
579d8138 3781 echo "$ac_t""no" 1>&6
10f2d63a 3782 fi
579d8138 3783
10f2d63a 3784
579d8138 3785 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
f09359cf 3786echo "configure:3787: checking for --enable-geometry" >&5
e8f65ba6
RR
3787 no_cache=0
3788 # Check whether --enable-geometry or --disable-geometry was given.
3789if test "${enable_geometry+set}" = set; then
3790 enableval="$enable_geometry"
579d8138 3791
e8f65ba6
RR
3792 if test "$enableval" = yes; then
3793 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3794 else
3795 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3796 fi
579d8138 3797
e8f65ba6 3798else
579d8138 3799
e8f65ba6
RR
3800 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
579d8138
VS
3808
3809fi
e8f65ba6
RR
3810
3811
3812 eval "$ac_cv_use_geometry"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_GEOMETRY" = yes; then
579d8138 3818 echo "$ac_t""yes" 1>&6
e8f65ba6 3819 else
579d8138 3820 echo "$ac_t""no" 1>&6
e8f65ba6 3821 fi
579d8138 3822
e8f65ba6 3823
579d8138 3824 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
f09359cf 3825echo "configure:3826: checking for --enable-log" >&5
10f2d63a
VZ
3826 no_cache=0
3827 # Check whether --enable-log or --disable-log was given.
3828if test "${enable_log+set}" = set; then
3829 enableval="$enable_log"
579d8138 3830
10f2d63a
VZ
3831 if test "$enableval" = yes; then
3832 ac_cv_use_log='wxUSE_LOG=yes'
3833 else
3834 ac_cv_use_log='wxUSE_LOG=no'
3835 fi
579d8138 3836
10f2d63a 3837else
579d8138 3838
10f2d63a
VZ
3839 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
579d8138
VS
3847
3848fi
10f2d63a
VZ
3849
3850
3851 eval "$ac_cv_use_log"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_LOG" = yes; then
579d8138 3857 echo "$ac_t""yes" 1>&6
10f2d63a 3858 else
579d8138 3859 echo "$ac_t""no" 1>&6
10f2d63a 3860 fi
579d8138 3861
10f2d63a 3862
579d8138 3863 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
f09359cf 3864echo "configure:3865: checking for --enable-streams" >&5
10f2d63a
VZ
3865 no_cache=0
3866 # Check whether --enable-streams or --disable-streams was given.
3867if test "${enable_streams+set}" = set; then
3868 enableval="$enable_streams"
579d8138 3869
10f2d63a
VZ
3870 if test "$enableval" = yes; then
3871 ac_cv_use_streams='wxUSE_STREAMS=yes'
3872 else
3873 ac_cv_use_streams='wxUSE_STREAMS=no'
3874 fi
579d8138 3875
10f2d63a 3876else
579d8138 3877
10f2d63a
VZ
3878 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
579d8138
VS
3886
3887fi
10f2d63a
VZ
3888
3889
3890 eval "$ac_cv_use_streams"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_STREAMS" = yes; then
579d8138 3896 echo "$ac_t""yes" 1>&6
10f2d63a 3897 else
579d8138 3898 echo "$ac_t""no" 1>&6
10f2d63a 3899 fi
579d8138 3900
10f2d63a 3901
579d8138 3902 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
f09359cf 3903echo "configure:3904: checking for --enable-file" >&5
10f2d63a
VZ
3904 no_cache=0
3905 # Check whether --enable-file or --disable-file was given.
3906if test "${enable_file+set}" = set; then
3907 enableval="$enable_file"
579d8138 3908
10f2d63a
VZ
3909 if test "$enableval" = yes; then
3910 ac_cv_use_file='wxUSE_FILE=yes'
3911 else
3912 ac_cv_use_file='wxUSE_FILE=no'
3913 fi
579d8138 3914
10f2d63a 3915else
579d8138 3916
10f2d63a
VZ
3917 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
579d8138
VS
3925
3926fi
10f2d63a
VZ
3927
3928
3929 eval "$ac_cv_use_file"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_FILE" = yes; then
579d8138 3935 echo "$ac_t""yes" 1>&6
10f2d63a 3936 else
579d8138 3937 echo "$ac_t""no" 1>&6
10f2d63a 3938 fi
579d8138 3939
10f2d63a 3940
579d8138 3941 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
f09359cf 3942echo "configure:3943: checking for --enable-ffile" >&5
10f2d63a 3943 no_cache=0
1e6feb95
VZ
3944 # Check whether --enable-ffile or --disable-ffile was given.
3945if test "${enable_ffile+set}" = set; then
3946 enableval="$enable_ffile"
579d8138 3947
10f2d63a 3948 if test "$enableval" = yes; then
1e6feb95 3949 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3950 else
1e6feb95 3951 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3952 fi
579d8138 3953
10f2d63a 3954else
579d8138 3955
1e6feb95 3956 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
1e6feb95 3963 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
579d8138
VS
3964
3965fi
10f2d63a
VZ
3966
3967
1e6feb95 3968 eval "$ac_cv_use_ffile"
10f2d63a 3969 if test "$no_cache" != 1; then
1e6feb95 3970 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3971 fi
3972
1e6feb95 3973 if test "$wxUSE_FFILE" = yes; then
579d8138 3974 echo "$ac_t""yes" 1>&6
10f2d63a 3975 else
579d8138 3976 echo "$ac_t""no" 1>&6
10f2d63a 3977 fi
579d8138 3978
10f2d63a 3979
579d8138 3980 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
f09359cf 3981echo "configure:3982: checking for --enable-textbuf" >&5
a3a584a7
VZ
3982 no_cache=0
3983 # Check whether --enable-textbuf or --disable-textbuf was given.
3984if test "${enable_textbuf+set}" = set; then
3985 enableval="$enable_textbuf"
579d8138 3986
a3a584a7
VZ
3987 if test "$enableval" = yes; then
3988 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3989 else
3990 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3991 fi
579d8138 3992
a3a584a7 3993else
579d8138 3994
a3a584a7
VZ
3995 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
579d8138
VS
4003
4004fi
a3a584a7
VZ
4005
4006
4007 eval "$ac_cv_use_textbuf"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_TEXTBUFFER" = yes; then
579d8138 4013 echo "$ac_t""yes" 1>&6
a3a584a7 4014 else
579d8138 4015 echo "$ac_t""no" 1>&6
a3a584a7 4016 fi
579d8138 4017
a3a584a7 4018
579d8138 4019 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
f09359cf 4020echo "configure:4021: checking for --enable-textfile" >&5
10f2d63a 4021 no_cache=0
1e6feb95
VZ
4022 # Check whether --enable-textfile or --disable-textfile was given.
4023if test "${enable_textfile+set}" = set; then
4024 enableval="$enable_textfile"
579d8138 4025
10f2d63a 4026 if test "$enableval" = yes; then
1e6feb95 4027 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4028 else
1e6feb95 4029 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4030 fi
579d8138 4031
10f2d63a 4032else
579d8138 4033
1e6feb95 4034 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
1e6feb95 4041 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
579d8138
VS
4042
4043fi
10f2d63a
VZ
4044
4045
1e6feb95 4046 eval "$ac_cv_use_textfile"
10f2d63a 4047 if test "$no_cache" != 1; then
1e6feb95 4048 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4049 fi
4050
1e6feb95 4051 if test "$wxUSE_TEXTFILE" = yes; then
579d8138 4052 echo "$ac_t""yes" 1>&6
10f2d63a 4053 else
579d8138 4054 echo "$ac_t""no" 1>&6
10f2d63a 4055 fi
579d8138 4056
10f2d63a 4057
579d8138 4058 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
f09359cf 4059echo "configure:4060: checking for --enable-fontmap" >&5
10f2d63a 4060 no_cache=0
1e6feb95
VZ
4061 # Check whether --enable-fontmap or --disable-fontmap was given.
4062if test "${enable_fontmap+set}" = set; then
4063 enableval="$enable_fontmap"
579d8138 4064
10f2d63a 4065 if test "$enableval" = yes; then
1e6feb95 4066 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4067 else
1e6feb95 4068 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4069 fi
579d8138 4070
10f2d63a 4071else
579d8138 4072
1e6feb95 4073 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
1e6feb95 4080 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
579d8138
VS
4081
4082fi
10f2d63a
VZ
4083
4084
1e6feb95 4085 eval "$ac_cv_use_fontmap"
10f2d63a 4086 if test "$no_cache" != 1; then
1e6feb95 4087 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4088 fi
4089
1e6feb95 4090 if test "$wxUSE_FONTMAP" = yes; then
579d8138 4091 echo "$ac_t""yes" 1>&6
10f2d63a 4092 else
579d8138 4093 echo "$ac_t""no" 1>&6
10f2d63a 4094 fi
579d8138 4095
10f2d63a 4096
579d8138 4097 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
f09359cf 4098echo "configure:4099: checking for --enable-unicode" >&5
10f2d63a 4099 no_cache=0
1e6feb95
VZ
4100 # Check whether --enable-unicode or --disable-unicode was given.
4101if test "${enable_unicode+set}" = set; then
4102 enableval="$enable_unicode"
579d8138 4103
1e6feb95
VZ
4104 if test "$enableval" = yes; then
4105 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4106 else
4107 ac_cv_use_unicode='wxUSE_UNICODE=no'
4108 fi
579d8138 4109
1e6feb95 4110else
579d8138 4111
1e6feb95
VZ
4112 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
579d8138
VS
4120
4121fi
1e6feb95
VZ
4122
4123
4124 eval "$ac_cv_use_unicode"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_UNICODE" = yes; then
579d8138 4130 echo "$ac_t""yes" 1>&6
1e6feb95 4131 else
579d8138 4132 echo "$ac_t""no" 1>&6
1e6feb95 4133 fi
579d8138 4134
1e6feb95 4135
579d8138 4136 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
f09359cf 4137echo "configure:4138: checking for --enable-mslu" >&5
a72a4bfa
VS
4138 no_cache=0
4139 # Check whether --enable-mslu or --disable-mslu was given.
4140if test "${enable_mslu+set}" = set; then
4141 enableval="$enable_mslu"
579d8138 4142
a72a4bfa
VS
4143 if test "$enableval" = yes; then
4144 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4145 else
4146 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4147 fi
579d8138 4148
a72a4bfa 4149else
579d8138 4150
a72a4bfa
VS
4151 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
579d8138
VS
4159
4160fi
a72a4bfa
VS
4161
4162
4163 eval "$ac_cv_use_mslu"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_UNICODE_MSLU" = yes; then
579d8138 4169 echo "$ac_t""yes" 1>&6
a72a4bfa 4170 else
579d8138 4171 echo "$ac_t""no" 1>&6
a72a4bfa 4172 fi
579d8138 4173
a72a4bfa 4174
579d8138 4175 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
f09359cf 4176echo "configure:4177: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4177 no_cache=0
4178 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4179if test "${enable_wxprintfv+set}" = set; then
4180 enableval="$enable_wxprintfv"
579d8138 4181
1e6feb95 4182 if test "$enableval" = yes; then
10f2d63a
VZ
4183 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4184 else
4185 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4186 fi
579d8138 4187
10f2d63a 4188else
579d8138 4189
10f2d63a
VZ
4190 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
579d8138
VS
4198
4199fi
10f2d63a
VZ
4200
4201
4202 eval "$ac_cv_use_wxprintfv"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
579d8138 4208 echo "$ac_t""yes" 1>&6
10f2d63a 4209 else
579d8138 4210 echo "$ac_t""no" 1>&6
10f2d63a 4211 fi
579d8138 4212
10f2d63a 4213
579d8138 4214 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
f09359cf 4215echo "configure:4216: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4216 no_cache=0
4217 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4218if test "${enable_std_iostreams+set}" = set; then
4219 enableval="$enable_std_iostreams"
579d8138 4220
10f2d63a
VZ
4221 if test "$enableval" = yes; then
4222 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4223 else
4224 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4225 fi
579d8138 4226
10f2d63a 4227else
579d8138 4228
10f2d63a
VZ
4229 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
579d8138
VS
4237
4238fi
10f2d63a
VZ
4239
4240
4241 eval "$ac_cv_use_std_iostreams"
4242 if test "$no_cache" != 1; then
4243 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4244 fi
4245
4246 if test "$wxUSE_STD_IOSTREAM" = yes; then
579d8138 4247 echo "$ac_t""yes" 1>&6
10f2d63a 4248 else
579d8138 4249 echo "$ac_t""no" 1>&6
10f2d63a 4250 fi
579d8138 4251
10f2d63a 4252
579d8138 4253 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
f09359cf 4254echo "configure:4255: checking for --enable-filesystem" >&5
24528b0c
VS
4255 no_cache=0
4256 # Check whether --enable-filesystem or --disable-filesystem was given.
4257if test "${enable_filesystem+set}" = set; then
4258 enableval="$enable_filesystem"
579d8138 4259
24528b0c
VS
4260 if test "$enableval" = yes; then
4261 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4262 else
4263 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4264 fi
579d8138 4265
24528b0c 4266else
579d8138 4267
24528b0c
VS
4268 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
579d8138
VS
4276
4277fi
24528b0c
VS
4278
4279
4280 eval "$ac_cv_use_filesystem"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_FILESYSTEM" = yes; then
579d8138 4286 echo "$ac_t""yes" 1>&6
24528b0c 4287 else
579d8138 4288 echo "$ac_t""no" 1>&6
24528b0c 4289 fi
579d8138 4290
24528b0c 4291
579d8138 4292 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
f09359cf 4293echo "configure:4294: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4294 no_cache=0
4295 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4296if test "${enable_fs_inet+set}" = set; then
4297 enableval="$enable_fs_inet"
579d8138 4298
10f2d63a
VZ
4299 if test "$enableval" = yes; then
4300 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4301 else
4302 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4303 fi
579d8138 4304
10f2d63a 4305else
579d8138 4306
10f2d63a
VZ
4307 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
579d8138
VS
4315
4316fi
10f2d63a
VZ
4317
4318
4319 eval "$ac_cv_use_fs_inet"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_FS_INET" = yes; then
579d8138 4325 echo "$ac_t""yes" 1>&6
10f2d63a 4326 else
579d8138 4327 echo "$ac_t""no" 1>&6
10f2d63a 4328 fi
579d8138 4329
10f2d63a 4330
579d8138 4331 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
f09359cf 4332echo "configure:4333: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4333 no_cache=0
4334 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4335if test "${enable_fs_zip+set}" = set; then
4336 enableval="$enable_fs_zip"
579d8138 4337
10f2d63a
VZ
4338 if test "$enableval" = yes; then
4339 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4340 else
4341 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4342 fi
579d8138 4343
10f2d63a 4344else
579d8138 4345
10f2d63a
VZ
4346 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
579d8138
VS
4354
4355fi
10f2d63a
VZ
4356
4357
4358 eval "$ac_cv_use_fs_zip"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_FS_ZIP" = yes; then
579d8138 4364 echo "$ac_t""yes" 1>&6
10f2d63a 4365 else
579d8138 4366 echo "$ac_t""no" 1>&6
10f2d63a 4367 fi
579d8138 4368
10f2d63a 4369
579d8138 4370 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
f09359cf 4371echo "configure:4372: checking for --enable-zipstream" >&5
10f2d63a
VZ
4372 no_cache=0
4373 # Check whether --enable-zipstream or --disable-zipstream was given.
4374if test "${enable_zipstream+set}" = set; then
4375 enableval="$enable_zipstream"
579d8138 4376
10f2d63a
VZ
4377 if test "$enableval" = yes; then
4378 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4379 else
4380 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4381 fi
579d8138 4382
10f2d63a 4383else
579d8138 4384
10f2d63a
VZ
4385 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4386 if test "x$LINE" != x ; then
4387 eval "DEFAULT_$LINE"
4388 else
4389 no_cache=1
4390 fi
4391
4392 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
579d8138
VS
4393
4394fi
10f2d63a
VZ
4395
4396
4397 eval "$ac_cv_use_zipstream"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_ZIPSTREAM" = yes; then
579d8138 4403 echo "$ac_t""yes" 1>&6
10f2d63a 4404 else
579d8138 4405 echo "$ac_t""no" 1>&6
10f2d63a 4406 fi
579d8138 4407
698dcdb6 4408
579d8138
VS
4409
4410 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
f09359cf 4411echo "configure:4412: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4412 no_cache=0
4413 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4414if test "${enable_catch_segvs+set}" = set; then
4415 enableval="$enable_catch_segvs"
579d8138 4416
eb4efbdc
VZ
4417 if test "$enableval" = yes; then
4418 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4419 else
4420 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4421 fi
579d8138 4422
eb4efbdc 4423else
579d8138 4424
eb4efbdc
VZ
4425 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
579d8138
VS
4433
4434fi
eb4efbdc
VZ
4435
4436
4437 eval "$ac_cv_use_catch_segvs"
4438 if test "$no_cache" != 1; then
4439 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4440 fi
4441
4442 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
579d8138 4443 echo "$ac_t""yes" 1>&6
eb4efbdc 4444 else
579d8138 4445 echo "$ac_t""no" 1>&6
eb4efbdc 4446 fi
579d8138 4447
eb4efbdc 4448
579d8138 4449 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
f09359cf 4450echo "configure:4451: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4451 no_cache=0
4452 # Check whether --enable-snglinst or --disable-snglinst was given.
4453if test "${enable_snglinst+set}" = set; then
4454 enableval="$enable_snglinst"
579d8138 4455
4f3c5f06
VZ
4456 if test "$enableval" = yes; then
4457 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4458 else
4459 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4460 fi
579d8138 4461
4f3c5f06 4462else
579d8138 4463
4f3c5f06
VZ
4464 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
579d8138
VS
4472
4473fi
4f3c5f06
VZ
4474
4475
4476 eval "$ac_cv_use_snglinst"
4477 if test "$no_cache" != 1; then
4478 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4479 fi
4480
4481 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
579d8138 4482 echo "$ac_t""yes" 1>&6
4f3c5f06 4483 else
579d8138 4484 echo "$ac_t""no" 1>&6
4f3c5f06 4485 fi
579d8138
VS
4486
4487
698dcdb6 4488
579d8138 4489 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
f09359cf 4490echo "configure:4491: checking for --enable-mimetype" >&5
1e6feb95
VZ
4491 no_cache=0
4492 # Check whether --enable-mimetype or --disable-mimetype was given.
4493if test "${enable_mimetype+set}" = set; then
4494 enableval="$enable_mimetype"
579d8138 4495
1e6feb95
VZ
4496 if test "$enableval" = yes; then
4497 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4498 else
4499 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4500 fi
579d8138 4501
1e6feb95 4502else
579d8138 4503
1e6feb95
VZ
4504 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
579d8138
VS
4512
4513fi
1e6feb95
VZ
4514
4515
4516 eval "$ac_cv_use_mimetype"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_MIMETYPE" = yes; then
579d8138 4522 echo "$ac_t""yes" 1>&6
1e6feb95 4523 else
579d8138 4524 echo "$ac_t""no" 1>&6
1e6feb95 4525 fi
579d8138 4526
1e6feb95 4527
579d8138 4528 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
f09359cf 4529echo "configure:4530: checking for --enable-system_options" >&5
3e44f09d
VZ
4530 no_cache=0
4531 # Check whether --enable-system_options or --disable-system_options was given.
4532if test "${enable_system_options+set}" = set; then
4533 enableval="$enable_system_options"
579d8138 4534
3e44f09d
VZ
4535 if test "$enableval" = yes; then
4536 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4537 else
4538 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4539 fi
579d8138 4540
3e44f09d 4541else
579d8138 4542
3e44f09d
VZ
4543 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
579d8138
VS
4551
4552fi
3e44f09d
VZ
4553
4554
4555 eval "$ac_cv_use_system_options"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
579d8138 4561 echo "$ac_t""yes" 1>&6
3e44f09d 4562 else
579d8138 4563 echo "$ac_t""no" 1>&6
3e44f09d 4564 fi
579d8138 4565
1e6feb95 4566
579d8138
VS
4567
4568 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
f09359cf 4569echo "configure:4570: checking for --enable-url" >&5
4cdb0ab0
VS
4570 no_cache=0
4571 # Check whether --enable-url or --disable-url was given.
4572if test "${enable_url+set}" = set; then
4573 enableval="$enable_url"
579d8138 4574
4cdb0ab0
VS
4575 if test "$enableval" = yes; then
4576 ac_cv_use_url='wxUSE_URL=yes'
4577 else
4578 ac_cv_use_url='wxUSE_URL=no'
4579 fi
579d8138 4580
4cdb0ab0 4581else
579d8138 4582
4cdb0ab0
VS
4583 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
579d8138
VS
4591
4592fi
4cdb0ab0
VS
4593
4594
4595 eval "$ac_cv_use_url"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_URL" = yes; then
579d8138 4601 echo "$ac_t""yes" 1>&6
4cdb0ab0 4602 else
579d8138 4603 echo "$ac_t""no" 1>&6
4cdb0ab0 4604 fi
579d8138 4605
4cdb0ab0 4606
579d8138 4607 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
f09359cf 4608echo "configure:4609: checking for --enable-protocol" >&5
4cdb0ab0
VS
4609 no_cache=0
4610 # Check whether --enable-protocol or --disable-protocol was given.
4611if test "${enable_protocol+set}" = set; then
4612 enableval="$enable_protocol"
579d8138 4613
4cdb0ab0
VS
4614 if test "$enableval" = yes; then
4615 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4616 else
4617 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4618 fi
579d8138 4619
4cdb0ab0 4620else
579d8138 4621
4cdb0ab0
VS
4622 LINE=`grep "wxUSE_PROTOCOL" ${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_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
579d8138
VS
4630
4631fi
4cdb0ab0
VS
4632
4633
4634 eval "$ac_cv_use_protocol"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_PROTOCOL" = yes; then
579d8138 4640 echo "$ac_t""yes" 1>&6
4cdb0ab0 4641 else
579d8138 4642 echo "$ac_t""no" 1>&6
4cdb0ab0 4643 fi
579d8138 4644
4cdb0ab0 4645
579d8138 4646 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
f09359cf 4647echo "configure:4648: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4648 no_cache=0
4649 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4650if test "${enable_protocol_http+set}" = set; then
4651 enableval="$enable_protocol_http"
579d8138 4652
4cdb0ab0
VS
4653 if test "$enableval" = yes; then
4654 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4655 else
4656 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4657 fi
579d8138 4658
4cdb0ab0 4659else
579d8138 4660
4cdb0ab0
VS
4661 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
579d8138
VS
4669
4670fi
4cdb0ab0
VS
4671
4672
4673 eval "$ac_cv_use_protocol_http"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
579d8138 4679 echo "$ac_t""yes" 1>&6
4cdb0ab0 4680 else
579d8138 4681 echo "$ac_t""no" 1>&6
4cdb0ab0 4682 fi
579d8138 4683
4cdb0ab0 4684
579d8138 4685 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
f09359cf 4686echo "configure:4687: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4687 no_cache=0
4688 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4689if test "${enable_protocol_ftp+set}" = set; then
4690 enableval="$enable_protocol_ftp"
579d8138 4691
4cdb0ab0
VS
4692 if test "$enableval" = yes; then
4693 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4694 else
4695 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4696 fi
579d8138 4697
4cdb0ab0 4698else
579d8138 4699
4cdb0ab0
VS
4700 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
579d8138
VS
4708
4709fi
4cdb0ab0
VS
4710
4711
4712 eval "$ac_cv_use_protocol_ftp"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_PROTOCOL_FTP" = yes; then
579d8138 4718 echo "$ac_t""yes" 1>&6
4cdb0ab0 4719 else
579d8138 4720 echo "$ac_t""no" 1>&6
4cdb0ab0 4721 fi
579d8138 4722
4cdb0ab0 4723
579d8138 4724 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
f09359cf 4725echo "configure:4726: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4726 no_cache=0
4727 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4728if test "${enable_protocol_file+set}" = set; then
4729 enableval="$enable_protocol_file"
579d8138 4730
4cdb0ab0
VS
4731 if test "$enableval" = yes; then
4732 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4733 else
4734 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4735 fi
579d8138 4736
4cdb0ab0 4737else
579d8138 4738
4cdb0ab0
VS
4739 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
579d8138
VS
4747
4748fi
4cdb0ab0
VS
4749
4750
4751 eval "$ac_cv_use_protocol_file"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_PROTOCOL_FILE" = yes; then
579d8138 4757 echo "$ac_t""yes" 1>&6
4cdb0ab0 4758 else
579d8138 4759 echo "$ac_t""no" 1>&6
4cdb0ab0 4760 fi
579d8138
VS
4761
4762
4763
4764
4cdb0ab0 4765
579d8138 4766 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
f09359cf 4767echo "configure:4768: checking for --enable-threads" >&5
10f2d63a
VZ
4768 no_cache=0
4769 # Check whether --enable-threads or --disable-threads was given.
4770if test "${enable_threads+set}" = set; then
4771 enableval="$enable_threads"
579d8138 4772
10f2d63a
VZ
4773 if test "$enableval" = yes; then
4774 ac_cv_use_threads='wxUSE_THREADS=yes'
4775 else
4776 ac_cv_use_threads='wxUSE_THREADS=no'
4777 fi
579d8138 4778
10f2d63a 4779else
579d8138 4780
10f2d63a
VZ
4781 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
579d8138
VS
4789
4790fi
10f2d63a
VZ
4791
4792
4793 eval "$ac_cv_use_threads"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_THREADS" = yes; then
579d8138 4799 echo "$ac_t""yes" 1>&6
10f2d63a 4800 else
579d8138 4801 echo "$ac_t""no" 1>&6
10f2d63a 4802 fi
579d8138 4803
10f2d63a 4804
b12915c1
VZ
4805if test "$wxUSE_GUI" = "yes"; then
4806
579d8138
VS
4807
4808
4809 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
f09359cf 4810echo "configure:4811: checking for --enable-docview" >&5
10f2d63a
VZ
4811 no_cache=0
4812 # Check whether --enable-docview or --disable-docview was given.
4813if test "${enable_docview+set}" = set; then
4814 enableval="$enable_docview"
579d8138 4815
10f2d63a
VZ
4816 if test "$enableval" = yes; then
4817 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4818 else
4819 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4820 fi
579d8138 4821
10f2d63a 4822else
579d8138 4823
10f2d63a
VZ
4824 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${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_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
579d8138
VS
4832
4833fi
10f2d63a
VZ
4834
4835
4836 eval "$ac_cv_use_docview"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
579d8138 4842 echo "$ac_t""yes" 1>&6
10f2d63a 4843 else
579d8138 4844 echo "$ac_t""no" 1>&6
10f2d63a 4845 fi
579d8138 4846
10f2d63a 4847
579d8138 4848 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
f09359cf 4849echo "configure:4850: checking for --enable-help" >&5
10f2d63a
VZ
4850 no_cache=0
4851 # Check whether --enable-help or --disable-help was given.
4852if test "${enable_help+set}" = set; then
4853 enableval="$enable_help"
579d8138 4854
10f2d63a
VZ
4855 if test "$enableval" = yes; then
4856 ac_cv_use_help='wxUSE_HELP=yes'
4857 else
4858 ac_cv_use_help='wxUSE_HELP=no'
4859 fi
579d8138 4860
10f2d63a 4861else
579d8138 4862
10f2d63a
VZ
4863 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4864 if test "x$LINE" != x ; then
4865 eval "DEFAULT_$LINE"
4866 else
4867 no_cache=1
4868 fi
4869
4870 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
579d8138
VS
4871
4872fi
10f2d63a
VZ
4873
4874
4875 eval "$ac_cv_use_help"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_HELP" = yes; then
579d8138 4881 echo "$ac_t""yes" 1>&6
10f2d63a 4882 else
579d8138 4883 echo "$ac_t""no" 1>&6
10f2d63a 4884 fi
579d8138 4885
10f2d63a 4886
579d8138 4887 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
f09359cf 4888echo "configure:4889: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4889 no_cache=0
4890 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4891if test "${enable_mshtmlhelp+set}" = set; then
4892 enableval="$enable_mshtmlhelp"
579d8138 4893
29fd3c0c
VS
4894 if test "$enableval" = yes; then
4895 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4896 else
4897 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4898 fi
579d8138 4899
29fd3c0c 4900else
579d8138 4901
29fd3c0c
VS
4902 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
4909 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
579d8138
VS
4910
4911fi
29fd3c0c
VS
4912
4913
4914 eval "$ac_cv_use_mshtmlhelp"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_MS_HTML_HELP" = yes; then
579d8138 4920 echo "$ac_t""yes" 1>&6
29fd3c0c 4921 else
579d8138 4922 echo "$ac_t""no" 1>&6
29fd3c0c 4923 fi
579d8138 4924
29fd3c0c 4925
579d8138 4926 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
f09359cf 4927echo "configure:4928: checking for --enable-html" >&5
3379ed37
VZ
4928 no_cache=0
4929 # Check whether --enable-html or --disable-html was given.
4930if test "${enable_html+set}" = set; then
4931 enableval="$enable_html"
579d8138 4932
3379ed37
VZ
4933 if test "$enableval" = yes; then
4934 ac_cv_use_html='wxUSE_HTML=yes'
4935 else
4936 ac_cv_use_html='wxUSE_HTML=no'
4937 fi
579d8138 4938
3379ed37 4939else
579d8138 4940
3379ed37
VZ
4941 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
579d8138
VS
4949
4950fi
3379ed37
VZ
4951
4952
4953 eval "$ac_cv_use_html"
4954 if test "$no_cache" != 1; then
4955 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4956 fi
4957
4958 if test "$wxUSE_HTML" = yes; then
579d8138 4959 echo "$ac_t""yes" 1>&6
3379ed37 4960 else
579d8138 4961 echo "$ac_t""no" 1>&6
3379ed37 4962 fi
579d8138 4963
3379ed37 4964
579d8138 4965 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
f09359cf 4966echo "configure:4967: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4967 no_cache=0
4968 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4969if test "${enable_htmlhelp+set}" = set; then
4970 enableval="$enable_htmlhelp"
579d8138 4971
3379ed37
VZ
4972 if test "$enableval" = yes; then
4973 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4974 else
4975 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4976 fi
579d8138 4977
3379ed37 4978else
579d8138 4979
3379ed37
VZ
4980 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
579d8138
VS
4988
4989fi
3379ed37
VZ
4990
4991
4992 eval "$ac_cv_use_htmlhelp"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_WXHTML_HELP" = yes; then
579d8138 4998 echo "$ac_t""yes" 1>&6
3379ed37 4999 else
579d8138 5000 echo "$ac_t""no" 1>&6
3379ed37 5001 fi
579d8138 5002
3379ed37 5003
579d8138 5004 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
f09359cf 5005echo "configure:5006: checking for --enable-constraints" >&5
10f2d63a
VZ
5006 no_cache=0
5007 # Check whether --enable-constraints or --disable-constraints was given.
5008if test "${enable_constraints+set}" = set; then
5009 enableval="$enable_constraints"
579d8138 5010
10f2d63a
VZ
5011 if test "$enableval" = yes; then
5012 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5013 else
5014 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5015 fi
579d8138 5016
10f2d63a 5017else
579d8138 5018
10f2d63a
VZ
5019 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
579d8138
VS
5027
5028fi
10f2d63a
VZ
5029
5030
5031 eval "$ac_cv_use_constraints"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_CONSTRAINTS" = yes; then
579d8138 5037 echo "$ac_t""yes" 1>&6
10f2d63a 5038 else
579d8138 5039 echo "$ac_t""no" 1>&6
10f2d63a 5040 fi
579d8138 5041
10f2d63a 5042
579d8138 5043 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
f09359cf 5044echo "configure:5045: checking for --enable-printarch" >&5
10f2d63a
VZ
5045 no_cache=0
5046 # Check whether --enable-printarch or --disable-printarch was given.
5047if test "${enable_printarch+set}" = set; then
5048 enableval="$enable_printarch"
579d8138 5049
10f2d63a
VZ
5050 if test "$enableval" = yes; then
5051 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5052 else
5053 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5054 fi
579d8138 5055
10f2d63a 5056else
579d8138 5057
10f2d63a
VZ
5058 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5059 if test "x$LINE" != x ; then
5060 eval "DEFAULT_$LINE"
5061 else
5062 no_cache=1
5063 fi
5064
5065 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
579d8138
VS
5066
5067fi
10f2d63a
VZ
5068
5069
5070 eval "$ac_cv_use_printarch"
5071 if test "$no_cache" != 1; then
5072 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5073 fi
5074
5075 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
579d8138 5076 echo "$ac_t""yes" 1>&6
10f2d63a 5077 else
579d8138 5078 echo "$ac_t""no" 1>&6
10f2d63a 5079 fi
579d8138 5080
10f2d63a 5081
579d8138 5082 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
f09359cf 5083echo "configure:5084: checking for --enable-mdi" >&5
10f2d63a
VZ
5084 no_cache=0
5085 # Check whether --enable-mdi or --disable-mdi was given.
5086if test "${enable_mdi+set}" = set; then
5087 enableval="$enable_mdi"
579d8138 5088
10f2d63a
VZ
5089 if test "$enableval" = yes; then
5090 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5091 else
5092 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5093 fi
579d8138 5094
10f2d63a 5095else
579d8138 5096
10f2d63a
VZ
5097 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
579d8138
VS
5105
5106fi
10f2d63a
VZ
5107
5108
5109 eval "$ac_cv_use_mdi"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
579d8138 5115 echo "$ac_t""yes" 1>&6
10f2d63a 5116 else
579d8138 5117 echo "$ac_t""no" 1>&6
10f2d63a 5118 fi
579d8138 5119
698dcdb6 5120
579d8138 5121 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
f09359cf 5122echo "configure:5123: checking for --enable-loggui" >&5
1e6feb95
VZ
5123 no_cache=0
5124 # Check whether --enable-loggui or --disable-loggui was given.
5125if test "${enable_loggui+set}" = set; then
5126 enableval="$enable_loggui"
579d8138 5127
1e6feb95
VZ
5128 if test "$enableval" = yes; then
5129 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5130 else
5131 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5132 fi
579d8138 5133
1e6feb95 5134else
579d8138 5135
1e6feb95
VZ
5136 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
579d8138
VS
5144
5145fi
1e6feb95
VZ
5146
5147
5148 eval "$ac_cv_use_loggui"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_LOGGUI" = yes; then
579d8138 5154 echo "$ac_t""yes" 1>&6
1e6feb95 5155 else
579d8138 5156 echo "$ac_t""no" 1>&6
1e6feb95 5157 fi
579d8138 5158
1e6feb95 5159
579d8138 5160 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
f09359cf 5161echo "configure:5162: checking for --enable-logwin" >&5
1e6feb95
VZ
5162 no_cache=0
5163 # Check whether --enable-logwin or --disable-logwin was given.
5164if test "${enable_logwin+set}" = set; then
5165 enableval="$enable_logwin"
579d8138 5166
1e6feb95
VZ
5167 if test "$enableval" = yes; then
5168 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5169 else
5170 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5171 fi
579d8138 5172
1e6feb95 5173else
579d8138 5174
1e6feb95
VZ
5175 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 else
5179 no_cache=1
5180 fi
5181
5182 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
579d8138
VS
5183
5184fi
1e6feb95
VZ
5185
5186
5187 eval "$ac_cv_use_logwin"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_LOGWINDOW" = yes; then
579d8138 5193 echo "$ac_t""yes" 1>&6
1e6feb95 5194 else
579d8138 5195 echo "$ac_t""no" 1>&6
1e6feb95 5196 fi
579d8138 5197
1e6feb95 5198
579d8138 5199 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
f09359cf 5200echo "configure:5201: checking for --enable-logdialog" >&5
69d27ff7
MB
5201 no_cache=0
5202 # Check whether --enable-logdialog or --disable-logdialog was given.
5203if test "${enable_logdialog+set}" = set; then
5204 enableval="$enable_logdialog"
579d8138 5205
69d27ff7
MB
5206 if test "$enableval" = yes; then
5207 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5208 else
5209 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5210 fi
579d8138 5211
69d27ff7 5212else
579d8138 5213
69d27ff7
MB
5214 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5215 if test "x$LINE" != x ; then
5216 eval "DEFAULT_$LINE"
5217 else
5218 no_cache=1
5219 fi
5220
5221 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
579d8138
VS
5222
5223fi
69d27ff7
MB
5224
5225
5226 eval "$ac_cv_use_logdialog"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_LOGDIALOG" = yes; then
579d8138 5232 echo "$ac_t""yes" 1>&6
69d27ff7 5233 else
579d8138 5234 echo "$ac_t""no" 1>&6
69d27ff7 5235 fi
579d8138 5236
10f2d63a 5237
579d8138
VS
5238
5239 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
f09359cf 5240echo "configure:5241: checking for --enable-postscript" >&5
10f2d63a
VZ
5241 no_cache=0
5242 # Check whether --enable-postscript or --disable-postscript was given.
5243if test "${enable_postscript+set}" = set; then
5244 enableval="$enable_postscript"
579d8138 5245
10f2d63a
VZ
5246 if test "$enableval" = yes; then
5247 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5248 else
5249 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5250 fi
579d8138 5251
10f2d63a 5252else
579d8138 5253
10f2d63a
VZ
5254 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
579d8138
VS
5262
5263fi
10f2d63a
VZ
5264
5265
5266 eval "$ac_cv_use_postscript"
5267 if test "$no_cache" != 1; then
5268 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5269 fi
5270
5271 if test "$wxUSE_POSTSCRIPT" = yes; then
579d8138 5272 echo "$ac_t""yes" 1>&6
10f2d63a 5273 else
579d8138 5274 echo "$ac_t""no" 1>&6
10f2d63a 5275 fi
579d8138
VS
5276
5277
10f2d63a 5278
579d8138
VS
5279
5280
5281 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
f09359cf 5282echo "configure:5283: checking for --enable-prologio" >&5
10f2d63a
VZ
5283 no_cache=0
5284 # Check whether --enable-prologio or --disable-prologio was given.
5285if test "${enable_prologio+set}" = set; then
5286 enableval="$enable_prologio"
579d8138 5287
10f2d63a
VZ
5288 if test "$enableval" = yes; then
5289 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5290 else
5291 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5292 fi
579d8138 5293
10f2d63a 5294else
579d8138 5295
10f2d63a
VZ
5296 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
579d8138
VS
5304
5305fi
10f2d63a
VZ
5306
5307
5308 eval "$ac_cv_use_prologio"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_PROLOGIO" = yes; then
579d8138 5314 echo "$ac_t""yes" 1>&6
10f2d63a 5315 else
579d8138 5316 echo "$ac_t""no" 1>&6
10f2d63a 5317 fi
579d8138 5318
10f2d63a 5319
579d8138 5320 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
f09359cf 5321echo "configure:5322: checking for --enable-resources" >&5
10f2d63a
VZ
5322 no_cache=0
5323 # Check whether --enable-resources or --disable-resources was given.
5324if test "${enable_resources+set}" = set; then
5325 enableval="$enable_resources"
579d8138 5326
10f2d63a
VZ
5327 if test "$enableval" = yes; then
5328 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5329 else
5330 ac_cv_use_resources='wxUSE_RESOURCES=no'
5331 fi
579d8138 5332
10f2d63a 5333else
579d8138 5334
10f2d63a
VZ
5335 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
579d8138
VS
5343
5344fi
10f2d63a
VZ
5345
5346
5347 eval "$ac_cv_use_resources"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_RESOURCES" = yes; then
579d8138 5353 echo "$ac_t""yes" 1>&6
10f2d63a 5354 else
579d8138 5355 echo "$ac_t""no" 1>&6
10f2d63a 5356 fi
579d8138 5357
698dcdb6 5358
579d8138
VS
5359
5360 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
f09359cf 5361echo "configure:5362: checking for --enable-xresources" >&5
10f2d63a
VZ
5362 no_cache=0
5363 # Check whether --enable-xresources or --disable-xresources was given.
5364if test "${enable_xresources+set}" = set; then
5365 enableval="$enable_xresources"
579d8138 5366
10f2d63a
VZ
5367 if test "$enableval" = yes; then
5368 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5369 else
5370 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5371 fi
579d8138 5372
10f2d63a 5373else
579d8138 5374
10f2d63a
VZ
5375 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
579d8138
VS
5383
5384fi
10f2d63a
VZ
5385
5386
5387 eval "$ac_cv_use_xresources"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_X_RESOURCES" = yes; then
579d8138 5393 echo "$ac_t""yes" 1>&6
10f2d63a 5394 else
579d8138 5395 echo "$ac_t""no" 1>&6
10f2d63a 5396 fi
579d8138
VS
5397
5398
698dcdb6 5399
579d8138
VS
5400
5401 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
f09359cf 5402echo "configure:5403: checking for --enable-clipboard" >&5
10f2d63a
VZ
5403 no_cache=0
5404 # Check whether --enable-clipboard or --disable-clipboard was given.
5405if test "${enable_clipboard+set}" = set; then
5406 enableval="$enable_clipboard"
579d8138 5407
10f2d63a
VZ
5408 if test "$enableval" = yes; then
5409 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5410 else
5411 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5412 fi
579d8138 5413
10f2d63a 5414else
579d8138 5415
10f2d63a
VZ
5416 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
579d8138
VS
5424
5425fi
10f2d63a
VZ
5426
5427
5428 eval "$ac_cv_use_clipboard"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_CLIPBOARD" = yes; then
579d8138 5434 echo "$ac_t""yes" 1>&6
10f2d63a 5435 else
579d8138 5436 echo "$ac_t""no" 1>&6
10f2d63a 5437 fi
579d8138 5438
10f2d63a 5439
579d8138 5440 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
f09359cf 5441echo "configure:5442: checking for --enable-dnd" >&5
10f2d63a
VZ
5442 no_cache=0
5443 # Check whether --enable-dnd or --disable-dnd was given.
5444if test "${enable_dnd+set}" = set; then
5445 enableval="$enable_dnd"
579d8138 5446
10f2d63a
VZ
5447 if test "$enableval" = yes; then
5448 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5449 else
5450 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5451 fi
579d8138 5452
10f2d63a 5453else
579d8138 5454
10f2d63a
VZ
5455 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
579d8138
VS
5463
5464fi
10f2d63a
VZ
5465
5466
5467 eval "$ac_cv_use_dnd"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_DRAG_AND_DROP" = yes; then
579d8138 5473 echo "$ac_t""yes" 1>&6
10f2d63a 5474 else
579d8138 5475 echo "$ac_t""no" 1>&6
10f2d63a 5476 fi
579d8138 5477
10f2d63a 5478
579d8138 5479 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f09359cf 5480echo "configure:5481: checking for --enable-metafile" >&5
b64f0a5f
RL
5481 no_cache=0
5482 # Check whether --enable-metafile or --disable-metafile was given.
5483if test "${enable_metafile+set}" = set; then
5484 enableval="$enable_metafile"
579d8138 5485
b64f0a5f
RL
5486 if test "$enableval" = yes; then
5487 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5488 else
5489 ac_cv_use_metafile='wxUSE_METAFILE=no'
5490 fi
579d8138 5491
b64f0a5f 5492else
579d8138 5493
b64f0a5f
RL
5494 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
579d8138
VS
5502
5503fi
b64f0a5f
RL
5504
5505
5506 eval "$ac_cv_use_metafile"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_METAFILE" = yes; then
579d8138 5512 echo "$ac_t""yes" 1>&6
b64f0a5f 5513 else
579d8138 5514 echo "$ac_t""no" 1>&6
b64f0a5f 5515 fi
579d8138
VS
5516
5517
698dcdb6 5518
579d8138 5519 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
f09359cf 5520echo "configure:5521: checking for --enable-treelayout" >&5
10f2d63a 5521 no_cache=0
24176f2c
GD
5522 # Check whether --enable-treelayout or --disable-treelayout was given.
5523if test "${enable_treelayout+set}" = set; then
5524 enableval="$enable_treelayout"
579d8138 5525
10f2d63a 5526 if test "$enableval" = yes; then
24176f2c 5527 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5528 else
24176f2c 5529 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5530 fi
579d8138 5531
10f2d63a 5532else
579d8138 5533
24176f2c 5534 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
24176f2c 5541 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
579d8138
VS
5542
5543fi
10f2d63a
VZ
5544
5545
24176f2c 5546 eval "$ac_cv_use_treelayout"
10f2d63a 5547 if test "$no_cache" != 1; then
24176f2c 5548 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5549 fi
5550
24176f2c 5551 if test "$wxUSE_TREELAYOUT" = yes; then
579d8138 5552 echo "$ac_t""yes" 1>&6
10f2d63a 5553 else
579d8138 5554 echo "$ac_t""no" 1>&6
10f2d63a 5555 fi
579d8138
VS
5556
5557
5558
698dcdb6 5559
579d8138 5560 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
f09359cf 5561echo "configure:5562: checking for --enable-controls" >&5
10f2d63a
VZ
5562 no_cache=0
5563 # Check whether --enable-controls or --disable-controls was given.
5564if test "${enable_controls+set}" = set; then
5565 enableval="$enable_controls"
579d8138 5566
10f2d63a
VZ
5567 if test "$enableval" = yes; then
5568 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5569 else
5570 ac_cv_use_controls='wxUSE_CONTROLS=no'
5571 fi
579d8138 5572
10f2d63a 5573else
579d8138 5574
10f2d63a
VZ
5575 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
579d8138
VS
5583
5584fi
10f2d63a
VZ
5585
5586
5587 eval "$ac_cv_use_controls"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_CONTROLS" = yes; then
579d8138 5593 echo "$ac_t""yes" 1>&6
10f2d63a 5594 else
579d8138 5595 echo "$ac_t""no" 1>&6
10f2d63a 5596 fi
579d8138 5597
10f2d63a
VZ
5598
5599if test "$wxUSE_CONTROLS" = "yes"; then
5600 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5601 DEFAULT_wxUSE_BMPBUTTON=yes
5602 DEFAULT_wxUSE_BUTTON=yes
5603 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5604 DEFAULT_wxUSE_CARET=yes
5605 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5606 DEFAULT_wxUSE_CHECKBOX=yes
5607 DEFAULT_wxUSE_CHECKLISTBOX=yes
5608 DEFAULT_wxUSE_CHOICE=yes
5609 DEFAULT_wxUSE_GAUGE=yes
5610 DEFAULT_wxUSE_GRID=yes
cc977e5f 5611 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5612 DEFAULT_wxUSE_IMAGLIST=yes
5613 DEFAULT_wxUSE_LISTBOX=yes
5614 DEFAULT_wxUSE_LISTCTRL=yes
5615 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5616 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5617 DEFAULT_wxUSE_RADIOBOX=yes
5618 DEFAULT_wxUSE_RADIOBTN=yes
5619 DEFAULT_wxUSE_SASH=yes
5620 DEFAULT_wxUSE_SCROLLBAR=yes
5621 DEFAULT_wxUSE_SLIDER=yes
5622 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5623 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5624 DEFAULT_wxUSE_SPLITTER=yes
5625 DEFAULT_wxUSE_STATBMP=yes
5626 DEFAULT_wxUSE_STATBOX=yes
5627 DEFAULT_wxUSE_STATLINE=yes
5628 DEFAULT_wxUSE_STATUSBAR=yes
5629 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5630 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5631 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5632 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5633 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5634 DEFAULT_wxUSE_TOOLTIPS=yes
5635 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5636 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5637 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5638elif test "$wxUSE_CONTROLS" = "no"; then
5639 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5640 DEFAULT_wxUSE_BMPBUTTON=no
5641 DEFAULT_wxUSE_BUTTON=no
5642 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5643 DEFAULT_wxUSE_CARET=no
5644 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5645 DEFAULT_wxUSE_CHECKBOX=no
5646 DEFAULT_wxUSE_CHECKLISTBOX=no
5647 DEFAULT_wxUSE_CHOICE=no
5648 DEFAULT_wxUSE_GAUGE=no
5649 DEFAULT_wxUSE_GRID=no
5650 DEFAULT_wxUSE_NEW_GRID=no
5651 DEFAULT_wxUSE_IMAGLIST=no
5652 DEFAULT_wxUSE_LISTBOX=no
5653 DEFAULT_wxUSE_LISTCTRL=no
5654 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5655 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5656 DEFAULT_wxUSE_RADIOBOX=no
5657 DEFAULT_wxUSE_RADIOBTN=no
5658 DEFAULT_wxUSE_SASH=no
5659 DEFAULT_wxUSE_SCROLLBAR=no
5660 DEFAULT_wxUSE_SLIDER=no
5661 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5662 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5663 DEFAULT_wxUSE_SPLITTER=no
5664 DEFAULT_wxUSE_STATBMP=no
5665 DEFAULT_wxUSE_STATBOX=no
5666 DEFAULT_wxUSE_STATLINE=no
5667 DEFAULT_wxUSE_STATUSBAR=no
5668 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5669 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5670 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5671 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5672 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5673 DEFAULT_wxUSE_TOOLTIPS=no
5674 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5675 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5676 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5677fi
5678
579d8138
VS
5679
5680 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
f09359cf 5681echo "configure:5682: checking for --enable-accel" >&5
10f2d63a
VZ
5682 no_cache=0
5683 # Check whether --enable-accel or --disable-accel was given.
5684if test "${enable_accel+set}" = set; then
5685 enableval="$enable_accel"
579d8138 5686
10f2d63a
VZ
5687 if test "$enableval" = yes; then
5688 ac_cv_use_accel='wxUSE_ACCEL=yes'
5689 else
5690 ac_cv_use_accel='wxUSE_ACCEL=no'
5691 fi
579d8138 5692
10f2d63a 5693else
579d8138 5694
10f2d63a
VZ
5695 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
579d8138
VS
5703
5704fi
10f2d63a
VZ
5705
5706
5707 eval "$ac_cv_use_accel"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_ACCEL" = yes; then
579d8138 5713 echo "$ac_t""yes" 1>&6
10f2d63a 5714 else
579d8138 5715 echo "$ac_t""no" 1>&6
10f2d63a 5716 fi
579d8138 5717
10f2d63a 5718
579d8138 5719 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
f09359cf 5720echo "configure:5721: checking for --enable-button" >&5
10f2d63a 5721 no_cache=0
1e6feb95
VZ
5722 # Check whether --enable-button or --disable-button was given.
5723if test "${enable_button+set}" = set; then
5724 enableval="$enable_button"
579d8138 5725
10f2d63a 5726 if test "$enableval" = yes; then
1e6feb95 5727 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5728 else
1e6feb95 5729 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5730 fi
579d8138 5731
10f2d63a 5732else
579d8138 5733
1e6feb95 5734 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
1e6feb95 5741 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
579d8138
VS
5742
5743fi
10f2d63a
VZ
5744
5745
1e6feb95 5746 eval "$ac_cv_use_button"
10f2d63a 5747 if test "$no_cache" != 1; then
1e6feb95 5748 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5749 fi
5750
1e6feb95 5751 if test "$wxUSE_BUTTON" = yes; then
579d8138 5752 echo "$ac_t""yes" 1>&6
10f2d63a 5753 else
579d8138 5754 echo "$ac_t""no" 1>&6
10f2d63a 5755 fi
579d8138 5756
10f2d63a 5757
579d8138 5758 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
f09359cf 5759echo "configure:5760: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5760 no_cache=0
5761 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5762if test "${enable_bmpbutton+set}" = set; then
5763 enableval="$enable_bmpbutton"
579d8138 5764
10f2d63a
VZ
5765 if test "$enableval" = yes; then
5766 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5767 else
5768 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5769 fi
579d8138 5770
10f2d63a 5771else
579d8138 5772
10f2d63a
VZ
5773 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
579d8138
VS
5781
5782fi
10f2d63a
VZ
5783
5784
5785 eval "$ac_cv_use_bmpbutton"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_BMPBUTTON" = yes; then
579d8138 5791 echo "$ac_t""yes" 1>&6
10f2d63a 5792 else
579d8138 5793 echo "$ac_t""no" 1>&6
10f2d63a 5794 fi
579d8138 5795
10f2d63a 5796
579d8138 5797 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
f09359cf 5798echo "configure:5799: checking for --enable-calendar" >&5
1e6feb95
VZ
5799 no_cache=0
5800 # Check whether --enable-calendar or --disable-calendar was given.
5801if test "${enable_calendar+set}" = set; then
5802 enableval="$enable_calendar"
579d8138 5803
1e6feb95
VZ
5804 if test "$enableval" = yes; then
5805 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5806 else
5807 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5808 fi
579d8138 5809
1e6feb95 5810else
579d8138 5811
1e6feb95
VZ
5812 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
579d8138
VS
5820
5821fi
1e6feb95
VZ
5822
5823
5824 eval "$ac_cv_use_calendar"
5825 if test "$no_cache" != 1; then
5826 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5827 fi
5828
5829 if test "$wxUSE_CALCTRL" = yes; then
579d8138 5830 echo "$ac_t""yes" 1>&6
1e6feb95 5831 else
579d8138 5832 echo "$ac_t""no" 1>&6
1e6feb95 5833 fi
579d8138 5834
1e6feb95 5835
579d8138 5836 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
f09359cf 5837echo "configure:5838: checking for --enable-caret" >&5
1e6feb95
VZ
5838 no_cache=0
5839 # Check whether --enable-caret or --disable-caret was given.
5840if test "${enable_caret+set}" = set; then
5841 enableval="$enable_caret"
579d8138 5842
1e6feb95
VZ
5843 if test "$enableval" = yes; then
5844 ac_cv_use_caret='wxUSE_CARET=yes'
5845 else
5846 ac_cv_use_caret='wxUSE_CARET=no'
5847 fi
579d8138 5848
1e6feb95 5849else
579d8138 5850
1e6feb95
VZ
5851 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5852 if test "x$LINE" != x ; then
5853 eval "DEFAULT_$LINE"
5854 else
5855 no_cache=1
5856 fi
5857
5858 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
579d8138
VS
5859
5860fi
1e6feb95
VZ
5861
5862
5863 eval "$ac_cv_use_caret"
5864 if test "$no_cache" != 1; then
5865 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5866 fi
5867
5868 if test "$wxUSE_CARET" = yes; then
579d8138 5869 echo "$ac_t""yes" 1>&6
1e6feb95 5870 else
579d8138 5871 echo "$ac_t""no" 1>&6
1e6feb95 5872 fi
579d8138 5873
1e6feb95 5874
579d8138 5875 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
f09359cf 5876echo "configure:5877: checking for --enable-checkbox" >&5
10f2d63a
VZ
5877 no_cache=0
5878 # Check whether --enable-checkbox or --disable-checkbox was given.
5879if test "${enable_checkbox+set}" = set; then
5880 enableval="$enable_checkbox"
579d8138 5881
10f2d63a
VZ
5882 if test "$enableval" = yes; then
5883 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5884 else
5885 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5886 fi
579d8138 5887
10f2d63a 5888else
579d8138 5889
10f2d63a
VZ
5890 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5891 if test "x$LINE" != x ; then
5892 eval "DEFAULT_$LINE"
5893 else
5894 no_cache=1
5895 fi
5896
5897 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
579d8138
VS
5898
5899fi
10f2d63a
VZ
5900
5901
5902 eval "$ac_cv_use_checkbox"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_CHECKBOX" = yes; then
579d8138 5908 echo "$ac_t""yes" 1>&6
10f2d63a 5909 else
579d8138 5910 echo "$ac_t""no" 1>&6
10f2d63a 5911 fi
579d8138 5912
10f2d63a 5913
579d8138 5914 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
f09359cf 5915echo "configure:5916: checking for --enable-checklst" >&5
10f2d63a
VZ
5916 no_cache=0
5917 # Check whether --enable-checklst or --disable-checklst was given.
5918if test "${enable_checklst+set}" = set; then
5919 enableval="$enable_checklst"
579d8138 5920
10f2d63a
VZ
5921 if test "$enableval" = yes; then
5922 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5923 else
5924 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5925 fi
579d8138 5926
10f2d63a 5927else
579d8138 5928
10f2d63a
VZ
5929 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
579d8138
VS
5937
5938fi
10f2d63a
VZ
5939
5940
5941 eval "$ac_cv_use_checklst"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_CHECKLST" = yes; then
579d8138 5947 echo "$ac_t""yes" 1>&6
10f2d63a 5948 else
579d8138 5949 echo "$ac_t""no" 1>&6
10f2d63a 5950 fi
579d8138 5951
10f2d63a 5952
579d8138 5953 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
f09359cf 5954echo "configure:5955: checking for --enable-choice" >&5
10f2d63a
VZ
5955 no_cache=0
5956 # Check whether --enable-choice or --disable-choice was given.
5957if test "${enable_choice+set}" = set; then
5958 enableval="$enable_choice"
579d8138 5959
10f2d63a
VZ
5960 if test "$enableval" = yes; then
5961 ac_cv_use_choice='wxUSE_CHOICE=yes'
5962 else
5963 ac_cv_use_choice='wxUSE_CHOICE=no'
5964 fi
579d8138 5965
10f2d63a 5966else
579d8138 5967
10f2d63a
VZ
5968 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
579d8138
VS
5976
5977fi
10f2d63a
VZ
5978
5979
5980 eval "$ac_cv_use_choice"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_CHOICE" = yes; then
579d8138 5986 echo "$ac_t""yes" 1>&6
10f2d63a 5987 else
579d8138 5988 echo "$ac_t""no" 1>&6
10f2d63a 5989 fi
579d8138 5990
10f2d63a 5991
579d8138 5992 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
f09359cf 5993echo "configure:5994: checking for --enable-combobox" >&5
10f2d63a
VZ
5994 no_cache=0
5995 # Check whether --enable-combobox or --disable-combobox was given.
5996if test "${enable_combobox+set}" = set; then
5997 enableval="$enable_combobox"
579d8138 5998
10f2d63a
VZ
5999 if test "$enableval" = yes; then
6000 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6001 else
6002 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6003 fi
579d8138 6004
10f2d63a 6005else
579d8138 6006
10f2d63a
VZ
6007 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6008 if test "x$LINE" != x ; then
6009 eval "DEFAULT_$LINE"
6010 else
6011 no_cache=1
6012 fi
6013
6014 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
579d8138
VS
6015
6016fi
10f2d63a
VZ
6017
6018
6019 eval "$ac_cv_use_combobox"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_COMBOBOX" = yes; then
579d8138 6025 echo "$ac_t""yes" 1>&6
10f2d63a 6026 else
579d8138 6027 echo "$ac_t""no" 1>&6
10f2d63a 6028 fi
579d8138 6029
10f2d63a 6030
579d8138 6031 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
f09359cf 6032echo "configure:6033: checking for --enable-gauge" >&5
10f2d63a
VZ
6033 no_cache=0
6034 # Check whether --enable-gauge or --disable-gauge was given.
6035if test "${enable_gauge+set}" = set; then
6036 enableval="$enable_gauge"
579d8138 6037
10f2d63a
VZ
6038 if test "$enableval" = yes; then
6039 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6040 else
6041 ac_cv_use_gauge='wxUSE_GAUGE=no'
6042 fi
579d8138 6043
10f2d63a 6044else
579d8138 6045
10f2d63a
VZ
6046 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
579d8138
VS
6054
6055fi
10f2d63a
VZ
6056
6057
6058 eval "$ac_cv_use_gauge"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_GAUGE" = yes; then
579d8138 6064 echo "$ac_t""yes" 1>&6
10f2d63a 6065 else
579d8138 6066 echo "$ac_t""no" 1>&6
10f2d63a 6067 fi
579d8138 6068
10f2d63a 6069
579d8138 6070 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
f09359cf 6071echo "configure:6072: checking for --enable-grid" >&5
10f2d63a
VZ
6072 no_cache=0
6073 # Check whether --enable-grid or --disable-grid was given.
6074if test "${enable_grid+set}" = set; then
6075 enableval="$enable_grid"
579d8138 6076
10f2d63a
VZ
6077 if test "$enableval" = yes; then
6078 ac_cv_use_grid='wxUSE_GRID=yes'
6079 else
6080 ac_cv_use_grid='wxUSE_GRID=no'
6081 fi
579d8138 6082
10f2d63a 6083else
579d8138 6084
10f2d63a
VZ
6085 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
579d8138
VS
6093
6094fi
10f2d63a
VZ
6095
6096
6097 eval "$ac_cv_use_grid"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_GRID" = yes; then
579d8138 6103 echo "$ac_t""yes" 1>&6
10f2d63a 6104 else
579d8138 6105 echo "$ac_t""no" 1>&6
10f2d63a 6106 fi
579d8138 6107
10f2d63a 6108
579d8138 6109 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
f09359cf 6110echo "configure:6111: checking for --enable-newgrid" >&5
10f2d63a
VZ
6111 no_cache=0
6112 # Check whether --enable-newgrid or --disable-newgrid was given.
6113if test "${enable_newgrid+set}" = set; then
6114 enableval="$enable_newgrid"
579d8138 6115
10f2d63a
VZ
6116 if test "$enableval" = yes; then
6117 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6118 else
6119 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6120 fi
579d8138 6121
10f2d63a 6122else
579d8138 6123
10f2d63a
VZ
6124 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
579d8138
VS
6132
6133fi
10f2d63a
VZ
6134
6135
6136 eval "$ac_cv_use_newgrid"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_NEW_GRID" = yes; then
579d8138 6142 echo "$ac_t""yes" 1>&6
10f2d63a 6143 else
579d8138 6144 echo "$ac_t""no" 1>&6
10f2d63a 6145 fi
579d8138 6146
10f2d63a 6147
579d8138 6148 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
f09359cf 6149echo "configure:6150: checking for --enable-imaglist" >&5
10f2d63a
VZ
6150 no_cache=0
6151 # Check whether --enable-imaglist or --disable-imaglist was given.
6152if test "${enable_imaglist+set}" = set; then
6153 enableval="$enable_imaglist"
579d8138 6154
10f2d63a
VZ
6155 if test "$enableval" = yes; then
6156 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6157 else
6158 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6159 fi
579d8138 6160
10f2d63a 6161else
579d8138 6162
10f2d63a
VZ
6163 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6164 if test "x$LINE" != x ; then
6165 eval "DEFAULT_$LINE"
6166 else
6167 no_cache=1
6168 fi
6169
6170 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
579d8138
VS
6171
6172fi
10f2d63a
VZ
6173
6174
6175 eval "$ac_cv_use_imaglist"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_IMAGLIST" = yes; then
579d8138 6181 echo "$ac_t""yes" 1>&6
10f2d63a 6182 else
579d8138 6183 echo "$ac_t""no" 1>&6
10f2d63a 6184 fi
579d8138 6185
10f2d63a 6186
579d8138 6187 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
f09359cf 6188echo "configure:6189: checking for --enable-listbox" >&5
10f2d63a
VZ
6189 no_cache=0
6190 # Check whether --enable-listbox or --disable-listbox was given.
6191if test "${enable_listbox+set}" = set; then
6192 enableval="$enable_listbox"
579d8138 6193
10f2d63a
VZ
6194 if test "$enableval" = yes; then
6195 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6196 else
6197 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6198 fi
579d8138 6199
10f2d63a 6200else
579d8138 6201
10f2d63a
VZ
6202 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 else
6206 no_cache=1
6207 fi
6208
6209 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
579d8138
VS
6210
6211fi
10f2d63a
VZ
6212
6213
6214 eval "$ac_cv_use_listbox"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_LISTBOX" = yes; then
579d8138 6220 echo "$ac_t""yes" 1>&6
10f2d63a 6221 else
579d8138 6222 echo "$ac_t""no" 1>&6
10f2d63a 6223 fi
579d8138 6224
10f2d63a 6225
579d8138 6226 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
f09359cf 6227echo "configure:6228: checking for --enable-listctrl" >&5
10f2d63a
VZ
6228 no_cache=0
6229 # Check whether --enable-listctrl or --disable-listctrl was given.
6230if test "${enable_listctrl+set}" = set; then
6231 enableval="$enable_listctrl"
579d8138 6232
10f2d63a
VZ
6233 if test "$enableval" = yes; then
6234 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6235 else
6236 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6237 fi
579d8138 6238
10f2d63a 6239else
579d8138 6240
10f2d63a
VZ
6241 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
579d8138
VS
6249
6250fi
10f2d63a
VZ
6251
6252
6253 eval "$ac_cv_use_listctrl"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_LISTCTRL" = yes; then
579d8138 6259 echo "$ac_t""yes" 1>&6
10f2d63a 6260 else
579d8138 6261 echo "$ac_t""no" 1>&6
10f2d63a 6262 fi
579d8138 6263
10f2d63a 6264
579d8138 6265 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
f09359cf 6266echo "configure:6267: checking for --enable-notebook" >&5
10f2d63a
VZ
6267 no_cache=0
6268 # Check whether --enable-notebook or --disable-notebook was given.
6269if test "${enable_notebook+set}" = set; then
6270 enableval="$enable_notebook"
579d8138 6271
10f2d63a
VZ
6272 if test "$enableval" = yes; then
6273 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6274 else
6275 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6276 fi
579d8138 6277
10f2d63a 6278else
579d8138 6279
10f2d63a
VZ
6280 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
579d8138
VS
6288
6289fi
10f2d63a
VZ
6290
6291
6292 eval "$ac_cv_use_notebook"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_NOTEBOOK" = yes; then
579d8138 6298 echo "$ac_t""yes" 1>&6
10f2d63a 6299 else
579d8138 6300 echo "$ac_t""no" 1>&6
10f2d63a 6301 fi
579d8138 6302
10f2d63a 6303
579d8138 6304 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
f09359cf 6305echo "configure:6306: checking for --enable-propsheet" >&5
24176f2c
GD
6306 no_cache=0
6307 # Check whether --enable-propsheet or --disable-propsheet was given.
6308if test "${enable_propsheet+set}" = set; then
6309 enableval="$enable_propsheet"
579d8138 6310
24176f2c
GD
6311 if test "$enableval" = yes; then
6312 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6313 else
6314 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6315 fi
579d8138 6316
24176f2c 6317else
579d8138 6318
24176f2c
GD
6319 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
579d8138
VS
6327
6328fi
24176f2c
GD
6329
6330
6331 eval "$ac_cv_use_propsheet"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_PROPSHEET" = yes; then
579d8138 6337 echo "$ac_t""yes" 1>&6
24176f2c 6338 else
579d8138 6339 echo "$ac_t""no" 1>&6
24176f2c 6340 fi
579d8138 6341
24176f2c 6342
579d8138 6343 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
f09359cf 6344echo "configure:6345: checking for --enable-radiobox" >&5
10f2d63a
VZ
6345 no_cache=0
6346 # Check whether --enable-radiobox or --disable-radiobox was given.
6347if test "${enable_radiobox+set}" = set; then
6348 enableval="$enable_radiobox"
579d8138 6349
10f2d63a
VZ
6350 if test "$enableval" = yes; then
6351 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6352 else
6353 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6354 fi
579d8138 6355
10f2d63a 6356else
579d8138 6357
10f2d63a
VZ
6358 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
579d8138
VS
6366
6367fi
10f2d63a
VZ
6368
6369
6370 eval "$ac_cv_use_radiobox"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_RADIOBOX" = yes; then
579d8138 6376 echo "$ac_t""yes" 1>&6
10f2d63a 6377 else
579d8138 6378 echo "$ac_t""no" 1>&6
10f2d63a 6379 fi
579d8138 6380
10f2d63a 6381
579d8138 6382 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
f09359cf 6383echo "configure:6384: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6384 no_cache=0
6385 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6386if test "${enable_radiobtn+set}" = set; then
6387 enableval="$enable_radiobtn"
579d8138 6388
10f2d63a
VZ
6389 if test "$enableval" = yes; then
6390 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6391 else
6392 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6393 fi
579d8138 6394
10f2d63a 6395else
579d8138 6396
10f2d63a
VZ
6397 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
579d8138
VS
6405
6406fi
10f2d63a
VZ
6407
6408
6409 eval "$ac_cv_use_radiobtn"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_RADIOBTN" = yes; then
579d8138 6415 echo "$ac_t""yes" 1>&6
10f2d63a 6416 else
579d8138 6417 echo "$ac_t""no" 1>&6
10f2d63a 6418 fi
579d8138 6419
10f2d63a 6420
579d8138 6421 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
f09359cf 6422echo "configure:6423: checking for --enable-sash" >&5
10f2d63a
VZ
6423 no_cache=0
6424 # Check whether --enable-sash or --disable-sash was given.
6425if test "${enable_sash+set}" = set; then
6426 enableval="$enable_sash"
579d8138 6427
10f2d63a
VZ
6428 if test "$enableval" = yes; then
6429 ac_cv_use_sash='wxUSE_SASH=yes'
6430 else
6431 ac_cv_use_sash='wxUSE_SASH=no'
6432 fi
579d8138 6433
10f2d63a 6434else
579d8138 6435
10f2d63a
VZ
6436 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6437 if test "x$LINE" != x ; then
6438 eval "DEFAULT_$LINE"
6439 else
6440 no_cache=1
6441 fi
6442
6443 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
579d8138
VS
6444
6445fi
10f2d63a
VZ
6446
6447
6448 eval "$ac_cv_use_sash"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_SASH" = yes; then
579d8138 6454 echo "$ac_t""yes" 1>&6
10f2d63a 6455 else
579d8138 6456 echo "$ac_t""no" 1>&6
10f2d63a 6457 fi
579d8138 6458
10f2d63a 6459
579d8138 6460 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
f09359cf 6461echo "configure:6462: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6462 no_cache=0
6463 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6464if test "${enable_scrollbar+set}" = set; then
6465 enableval="$enable_scrollbar"
579d8138 6466
10f2d63a
VZ
6467 if test "$enableval" = yes; then
6468 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6469 else
6470 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6471 fi
579d8138 6472
10f2d63a 6473else
579d8138 6474
10f2d63a
VZ
6475 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
579d8138
VS
6483
6484fi
10f2d63a
VZ
6485
6486
6487 eval "$ac_cv_use_scrollbar"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_SCROLLBAR" = yes; then
579d8138 6493 echo "$ac_t""yes" 1>&6
10f2d63a 6494 else
579d8138 6495 echo "$ac_t""no" 1>&6
10f2d63a 6496 fi
579d8138 6497
10f2d63a 6498
579d8138 6499 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
f09359cf 6500echo "configure:6501: checking for --enable-slider" >&5
10f2d63a
VZ
6501 no_cache=0
6502 # Check whether --enable-slider or --disable-slider was given.
6503if test "${enable_slider+set}" = set; then
6504 enableval="$enable_slider"
579d8138 6505
10f2d63a
VZ
6506 if test "$enableval" = yes; then
6507 ac_cv_use_slider='wxUSE_SLIDER=yes'
6508 else
6509 ac_cv_use_slider='wxUSE_SLIDER=no'
6510 fi
579d8138 6511
10f2d63a 6512else
579d8138 6513
10f2d63a
VZ
6514 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
579d8138
VS
6522
6523fi
10f2d63a
VZ
6524
6525
6526 eval "$ac_cv_use_slider"
6527 if test "$no_cache" != 1; then
6528 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6529 fi
6530
6531 if test "$wxUSE_SLIDER" = yes; then
579d8138 6532 echo "$ac_t""yes" 1>&6
10f2d63a 6533 else
579d8138 6534 echo "$ac_t""no" 1>&6
10f2d63a 6535 fi
579d8138 6536
10f2d63a 6537
579d8138 6538 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
f09359cf 6539echo "configure:6540: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6540 no_cache=0
6541 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6542if test "${enable_spinbtn+set}" = set; then
6543 enableval="$enable_spinbtn"
579d8138 6544
10f2d63a
VZ
6545 if test "$enableval" = yes; then
6546 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6547 else
6548 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6549 fi
579d8138 6550
10f2d63a 6551else
579d8138 6552
10f2d63a
VZ
6553 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
579d8138
VS
6561
6562fi
10f2d63a
VZ
6563
6564
6565 eval "$ac_cv_use_spinbtn"
6566 if test "$no_cache" != 1; then
6567 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6568 fi
6569
6570 if test "$wxUSE_SPINBTN" = yes; then
579d8138 6571 echo "$ac_t""yes" 1>&6
10f2d63a 6572 else
579d8138 6573 echo "$ac_t""no" 1>&6
10f2d63a 6574 fi
579d8138 6575
10f2d63a 6576
579d8138 6577 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
f09359cf 6578echo "configure:6579: checking for --enable-spinctrl" >&5
56cfaa52
RR
6579 no_cache=0
6580 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6581if test "${enable_spinctrl+set}" = set; then
6582 enableval="$enable_spinctrl"
579d8138 6583
56cfaa52
RR
6584 if test "$enableval" = yes; then
6585 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6586 else
6587 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6588 fi
579d8138 6589
56cfaa52 6590else
579d8138 6591
56cfaa52
RR
6592 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
579d8138
VS
6600
6601fi
56cfaa52
RR
6602
6603
6604 eval "$ac_cv_use_spinctrl"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_SPINCTRL" = yes; then
579d8138 6610 echo "$ac_t""yes" 1>&6
56cfaa52 6611 else
579d8138 6612 echo "$ac_t""no" 1>&6
56cfaa52 6613 fi
579d8138 6614
56cfaa52 6615
579d8138 6616 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
f09359cf 6617echo "configure:6618: checking for --enable-splitter" >&5
10f2d63a
VZ
6618 no_cache=0
6619 # Check whether --enable-splitter or --disable-splitter was given.
6620if test "${enable_splitter+set}" = set; then
6621 enableval="$enable_splitter"
579d8138 6622
10f2d63a
VZ
6623 if test "$enableval" = yes; then
6624 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6625 else
6626 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6627 fi
579d8138 6628
10f2d63a 6629else
579d8138 6630
10f2d63a
VZ
6631 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
579d8138
VS
6639
6640fi
10f2d63a
VZ
6641
6642
6643 eval "$ac_cv_use_splitter"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_SPLITTER" = yes; then
579d8138 6649 echo "$ac_t""yes" 1>&6
10f2d63a 6650 else
579d8138 6651 echo "$ac_t""no" 1>&6
10f2d63a 6652 fi
579d8138 6653
10f2d63a 6654
579d8138 6655 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
f09359cf 6656echo "configure:6657: checking for --enable-statbmp" >&5
10f2d63a
VZ
6657 no_cache=0
6658 # Check whether --enable-statbmp or --disable-statbmp was given.
6659if test "${enable_statbmp+set}" = set; then
6660 enableval="$enable_statbmp"
579d8138 6661
10f2d63a
VZ
6662 if test "$enableval" = yes; then
6663 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6664 else
6665 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6666 fi
579d8138 6667
10f2d63a 6668else
579d8138 6669
10f2d63a
VZ
6670 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
579d8138
VS
6678
6679fi
10f2d63a
VZ
6680
6681
6682 eval "$ac_cv_use_statbmp"
6683 if test "$no_cache" != 1; then
6684 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6685 fi
6686
6687 if test "$wxUSE_STATBMP" = yes; then
579d8138 6688 echo "$ac_t""yes" 1>&6
10f2d63a 6689 else
579d8138 6690 echo "$ac_t""no" 1>&6
10f2d63a 6691 fi
579d8138 6692
10f2d63a 6693
579d8138 6694 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
f09359cf 6695echo "configure:6696: checking for --enable-statbox" >&5
10f2d63a
VZ
6696 no_cache=0
6697 # Check whether --enable-statbox or --disable-statbox was given.
6698if test "${enable_statbox+set}" = set; then
6699 enableval="$enable_statbox"
579d8138 6700
10f2d63a
VZ
6701 if test "$enableval" = yes; then
6702 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6703 else
6704 ac_cv_use_statbox='wxUSE_STATBOX=no'
6705 fi
579d8138 6706
10f2d63a 6707else
579d8138 6708
10f2d63a
VZ
6709 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
579d8138
VS
6717
6718fi
10f2d63a
VZ
6719
6720
6721 eval "$ac_cv_use_statbox"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_STATBOX" = yes; then
579d8138 6727 echo "$ac_t""yes" 1>&6
10f2d63a 6728 else
579d8138 6729 echo "$ac_t""no" 1>&6
10f2d63a 6730 fi
579d8138 6731
10f2d63a 6732
579d8138 6733 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
f09359cf 6734echo "configure:6735: checking for --enable-statline" >&5
10f2d63a
VZ
6735 no_cache=0
6736 # Check whether --enable-statline or --disable-statline was given.
6737if test "${enable_statline+set}" = set; then
6738 enableval="$enable_statline"
579d8138 6739
10f2d63a
VZ
6740 if test "$enableval" = yes; then
6741 ac_cv_use_statline='wxUSE_STATLINE=yes'
6742 else
6743 ac_cv_use_statline='wxUSE_STATLINE=no'
6744 fi
579d8138 6745
10f2d63a 6746else
579d8138 6747
10f2d63a
VZ
6748 LINE=`grep "wxUSE_STATLINE" ${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_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
579d8138
VS
6756
6757fi
10f2d63a
VZ
6758
6759
6760 eval "$ac_cv_use_statline"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_STATLINE" = yes; then
579d8138 6766 echo "$ac_t""yes" 1>&6
10f2d63a 6767 else
579d8138 6768 echo "$ac_t""no" 1>&6
10f2d63a 6769 fi
579d8138 6770
10f2d63a 6771
579d8138 6772 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
f09359cf 6773echo "configure:6774: checking for --enable-stattext" >&5
1e6feb95
VZ
6774 no_cache=0
6775 # Check whether --enable-stattext or --disable-stattext was given.
6776if test "${enable_stattext+set}" = set; then
6777 enableval="$enable_stattext"
579d8138 6778
1e6feb95
VZ
6779 if test "$enableval" = yes; then
6780 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6781 else
6782 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6783 fi
579d8138 6784
1e6feb95 6785else
579d8138 6786
1e6feb95
VZ
6787 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
579d8138
VS
6795
6796fi
1e6feb95
VZ
6797
6798
6799 eval "$ac_cv_use_stattext"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_STATTEXT" = yes; then
579d8138 6805 echo "$ac_t""yes" 1>&6
1e6feb95 6806 else
579d8138 6807 echo "$ac_t""no" 1>&6
1e6feb95 6808 fi
579d8138 6809
1e6feb95 6810
579d8138 6811 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
f09359cf 6812echo "configure:6813: checking for --enable-statusbar" >&5
10f2d63a
VZ
6813 no_cache=0
6814 # Check whether --enable-statusbar or --disable-statusbar was given.
6815if test "${enable_statusbar+set}" = set; then
6816 enableval="$enable_statusbar"
579d8138 6817
10f2d63a
VZ
6818 if test "$enableval" = yes; then
6819 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6820 else
6821 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6822 fi
579d8138 6823
10f2d63a 6824else
579d8138 6825
10f2d63a
VZ
6826 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
579d8138
VS
6834
6835fi
10f2d63a
VZ
6836
6837
6838 eval "$ac_cv_use_statusbar"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_STATUSBAR" = yes; then
579d8138 6844 echo "$ac_t""yes" 1>&6
10f2d63a 6845 else
579d8138 6846 echo "$ac_t""no" 1>&6
10f2d63a 6847 fi
579d8138 6848
10f2d63a 6849
579d8138 6850 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
f09359cf 6851echo "configure:6852: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6852 no_cache=0
6853 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6854if test "${enable_tabdialog+set}" = set; then
6855 enableval="$enable_tabdialog"
579d8138 6856
10f2d63a
VZ
6857 if test "$enableval" = yes; then
6858 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6859 else
6860 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6861 fi
579d8138 6862
10f2d63a 6863else
579d8138 6864
10f2d63a
VZ
6865 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
579d8138
VS
6873
6874fi
10f2d63a
VZ
6875
6876
6877 eval "$ac_cv_use_tabdialog"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_TABDIALOG" = yes; then
579d8138 6883 echo "$ac_t""yes" 1>&6
10f2d63a 6884 else
579d8138 6885 echo "$ac_t""no" 1>&6
10f2d63a 6886 fi
579d8138 6887
10f2d63a 6888
579d8138 6889 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
f09359cf 6890echo "configure:6891: checking for --enable-textctrl" >&5
1e6feb95
VZ
6891 no_cache=0
6892 # Check whether --enable-textctrl or --disable-textctrl was given.
6893if test "${enable_textctrl+set}" = set; then
6894 enableval="$enable_textctrl"
579d8138 6895
1e6feb95
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6898 else
6899 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6900 fi
579d8138 6901
1e6feb95 6902else
579d8138 6903
1e6feb95
VZ
6904 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
579d8138
VS
6912
6913fi
1e6feb95
VZ
6914
6915
6916 eval "$ac_cv_use_textctrl"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_TEXTCTRL" = yes; then
579d8138 6922 echo "$ac_t""yes" 1>&6
1e6feb95 6923 else
579d8138 6924 echo "$ac_t""no" 1>&6
1e6feb95 6925 fi
579d8138 6926
1e6feb95 6927
579d8138 6928 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
f09359cf 6929echo "configure:6930: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6930 no_cache=0
6931 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6932if test "${enable_togglebtn+set}" = set; then
6933 enableval="$enable_togglebtn"
579d8138 6934
1db8dc4a
VZ
6935 if test "$enableval" = yes; then
6936 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6937 else
6938 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6939 fi
579d8138 6940
1db8dc4a 6941else
579d8138 6942
1db8dc4a
VZ
6943 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6944 if test "x$LINE" != x ; then
6945 eval "DEFAULT_$LINE"
6946 else
6947 no_cache=1
6948 fi
6949
6950 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
579d8138
VS
6951
6952fi
1db8dc4a
VZ
6953
6954
6955 eval "$ac_cv_use_togglebtn"
6956 if test "$no_cache" != 1; then
6957 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6958 fi
6959
6960 if test "$wxUSE_TOGGLEBTN" = yes; then
579d8138 6961 echo "$ac_t""yes" 1>&6
1db8dc4a 6962 else
579d8138 6963 echo "$ac_t""no" 1>&6
1db8dc4a 6964 fi
579d8138 6965
1db8dc4a 6966
579d8138 6967 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
f09359cf 6968echo "configure:6969: checking for --enable-toolbar" >&5
10f2d63a
VZ
6969 no_cache=0
6970 # Check whether --enable-toolbar or --disable-toolbar was given.
6971if test "${enable_toolbar+set}" = set; then
6972 enableval="$enable_toolbar"
579d8138 6973
10f2d63a
VZ
6974 if test "$enableval" = yes; then
6975 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6976 else
6977 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6978 fi
579d8138 6979
10f2d63a 6980else
579d8138 6981
10f2d63a
VZ
6982 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6983 if test "x$LINE" != x ; then
6984 eval "DEFAULT_$LINE"
6985 else
6986 no_cache=1
6987 fi
6988
6989 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
579d8138
VS
6990
6991fi
10f2d63a
VZ
6992
6993
6994 eval "$ac_cv_use_toolbar"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_TOOLBAR" = yes; then
579d8138 7000 echo "$ac_t""yes" 1>&6
10f2d63a 7001 else
579d8138 7002 echo "$ac_t""no" 1>&6
10f2d63a 7003 fi
579d8138 7004
10f2d63a 7005
579d8138 7006 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
f09359cf 7007echo "configure:7008: checking for --enable-tbarnative" >&5
360d6699
VZ
7008 no_cache=0
7009 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7010if test "${enable_tbarnative+set}" = set; then
7011 enableval="$enable_tbarnative"
579d8138 7012
360d6699
VZ
7013 if test "$enableval" = yes; then
7014 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7015 else
7016 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7017 fi
579d8138 7018
360d6699 7019else
579d8138 7020
360d6699
VZ
7021 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
579d8138
VS
7029
7030fi
360d6699
VZ
7031
7032
7033 eval "$ac_cv_use_tbarnative"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
579d8138 7039 echo "$ac_t""yes" 1>&6
360d6699 7040 else
579d8138 7041 echo "$ac_t""no" 1>&6
360d6699 7042 fi
579d8138 7043
360d6699 7044
579d8138 7045 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
f09359cf 7046echo "configure:7047: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7047 no_cache=0
7048 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7049if test "${enable_tbarsmpl+set}" = set; then
7050 enableval="$enable_tbarsmpl"
579d8138 7051
360d6699
VZ
7052 if test "$enableval" = yes; then
7053 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7054 else
7055 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7056 fi
579d8138 7057
360d6699 7058else
579d8138 7059
360d6699
VZ
7060 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
579d8138
VS
7068
7069fi
360d6699
VZ
7070
7071
7072 eval "$ac_cv_use_tbarsmpl"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
579d8138 7078 echo "$ac_t""yes" 1>&6
360d6699 7079 else
579d8138 7080 echo "$ac_t""no" 1>&6
360d6699 7081 fi
579d8138 7082
360d6699 7083
579d8138 7084 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
f09359cf 7085echo "configure:7086: checking for --enable-treectrl" >&5
10f2d63a
VZ
7086 no_cache=0
7087 # Check whether --enable-treectrl or --disable-treectrl was given.
7088if test "${enable_treectrl+set}" = set; then
7089 enableval="$enable_treectrl"
579d8138 7090
10f2d63a
VZ
7091 if test "$enableval" = yes; then
7092 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7093 else
7094 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7095 fi
579d8138 7096
10f2d63a 7097else
579d8138 7098
10f2d63a
VZ
7099 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
7106 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
579d8138
VS
7107
7108fi
10f2d63a
VZ
7109
7110
1e6feb95
VZ
7111 eval "$ac_cv_use_treectrl"
7112 if test "$no_cache" != 1; then
7113 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7114 fi
7115
7116 if test "$wxUSE_TREECTRL" = yes; then
579d8138 7117 echo "$ac_t""yes" 1>&6
1e6feb95 7118 else
579d8138 7119 echo "$ac_t""no" 1>&6
1e6feb95 7120 fi
579d8138 7121
1e6feb95 7122
579d8138 7123 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
f09359cf 7124echo "configure:7125: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7125 no_cache=0
7126 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7127if test "${enable_tipwindow+set}" = set; then
7128 enableval="$enable_tipwindow"
579d8138 7129
9926e4a4
VZ
7130 if test "$enableval" = yes; then
7131 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7132 else
7133 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7134 fi
579d8138 7135
9926e4a4 7136else
579d8138 7137
9926e4a4
VZ
7138 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
579d8138
VS
7146
7147fi
9926e4a4
VZ
7148
7149
7150 eval "$ac_cv_use_tipwindow"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_TIPWINDOW" = yes; then
579d8138 7156 echo "$ac_t""yes" 1>&6
9926e4a4 7157 else
579d8138 7158 echo "$ac_t""no" 1>&6
9926e4a4 7159 fi
579d8138 7160
9926e4a4 7161
579d8138 7162 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
f09359cf 7163echo "configure:7164: checking for --enable-popupwin" >&5
9f41d601
RR
7164 no_cache=0
7165 # Check whether --enable-popupwin or --disable-popupwin was given.
7166if test "${enable_popupwin+set}" = set; then
7167 enableval="$enable_popupwin"
579d8138 7168
9f41d601
RR
7169 if test "$enableval" = yes; then
7170 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7171 else
7172 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7173 fi
579d8138 7174
9f41d601 7175else
579d8138 7176
9f41d601
RR
7177 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7178 if test "x$LINE" != x ; then
7179 eval "DEFAULT_$LINE"
7180 else
7181 no_cache=1
7182 fi
7183
7184 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
579d8138
VS
7185
7186fi
9f41d601
RR
7187
7188
7189 eval "$ac_cv_use_popupwin"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_POPUPWIN" = yes; then
579d8138 7195 echo "$ac_t""yes" 1>&6
9f41d601 7196 else
579d8138 7197 echo "$ac_t""no" 1>&6
9f41d601 7198 fi
579d8138
VS
7199
7200
9f41d601 7201
579d8138
VS
7202
7203 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
f09359cf 7204echo "configure:7205: checking for --enable-commondlg" >&5
1e6feb95
VZ
7205 no_cache=0
7206 # Check whether --enable-commondlg or --disable-commondlg was given.
7207if test "${enable_commondlg+set}" = set; then
7208 enableval="$enable_commondlg"
579d8138 7209
1e6feb95
VZ
7210 if test "$enableval" = yes; then
7211 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7212 else
7213 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7214 fi
579d8138 7215
1e6feb95 7216else
579d8138 7217
1e6feb95
VZ
7218 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7219 if test "x$LINE" != x ; then
7220 eval "DEFAULT_$LINE"
7221 else
7222 no_cache=1
7223 fi
7224
7225 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
579d8138
VS
7226
7227fi
1e6feb95
VZ
7228
7229
7230 eval "$ac_cv_use_commondlg"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7233 fi
7234
7235 if test "$wxUSE_COMMONDLGS" = yes; then
579d8138 7236 echo "$ac_t""yes" 1>&6
1e6feb95 7237 else
579d8138 7238 echo "$ac_t""no" 1>&6
1e6feb95 7239 fi
579d8138 7240
1e6feb95 7241
579d8138 7242 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
f09359cf 7243echo "configure:7244: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7244 no_cache=0
7245 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7246if test "${enable_choicedlg+set}" = set; then
7247 enableval="$enable_choicedlg"
579d8138 7248
1e6feb95
VZ
7249 if test "$enableval" = yes; then
7250 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7251 else
7252 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7253 fi
579d8138 7254
1e6feb95 7255else
579d8138 7256
1e6feb95
VZ
7257 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7258 if test "x$LINE" != x ; then
7259 eval "DEFAULT_$LINE"
7260 else
7261 no_cache=1
7262 fi
7263
7264 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
579d8138
VS
7265
7266fi
1e6feb95
VZ
7267
7268
7269 eval "$ac_cv_use_choicedlg"
7270 if test "$no_cache" != 1; then
7271 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7272 fi
7273
7274 if test "$wxUSE_CHOICEDLG" = yes; then
579d8138 7275 echo "$ac_t""yes" 1>&6
1e6feb95 7276 else
579d8138 7277 echo "$ac_t""no" 1>&6
1e6feb95 7278 fi
579d8138 7279
1e6feb95 7280
579d8138 7281 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
f09359cf 7282echo "configure:7283: checking for --enable-coldlg" >&5
1e6feb95
VZ
7283 no_cache=0
7284 # Check whether --enable-coldlg or --disable-coldlg was given.
7285if test "${enable_coldlg+set}" = set; then
7286 enableval="$enable_coldlg"
579d8138 7287
1e6feb95
VZ
7288 if test "$enableval" = yes; then
7289 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7290 else
7291 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7292 fi
579d8138 7293
1e6feb95 7294else
579d8138 7295
1e6feb95
VZ
7296 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
579d8138
VS
7304
7305fi
1e6feb95
VZ
7306
7307
7308 eval "$ac_cv_use_coldlg"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_COLOURDLG" = yes; then
579d8138 7314 echo "$ac_t""yes" 1>&6
1e6feb95 7315 else
579d8138 7316 echo "$ac_t""no" 1>&6
1e6feb95 7317 fi
579d8138 7318
1e6feb95 7319
579d8138 7320 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
f09359cf 7321echo "configure:7322: checking for --enable-filedlg" >&5
1e6feb95
VZ
7322 no_cache=0
7323 # Check whether --enable-filedlg or --disable-filedlg was given.
7324if test "${enable_filedlg+set}" = set; then
7325 enableval="$enable_filedlg"
579d8138 7326
1e6feb95
VZ
7327 if test "$enableval" = yes; then
7328 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7329 else
7330 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7331 fi
579d8138 7332
1e6feb95 7333else
579d8138 7334
1e6feb95
VZ
7335 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
579d8138
VS
7343
7344fi
1e6feb95
VZ
7345
7346
7347 eval "$ac_cv_use_filedlg"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_FILEDLG" = yes; then
579d8138 7353 echo "$ac_t""yes" 1>&6
1e6feb95 7354 else
579d8138 7355 echo "$ac_t""no" 1>&6
1e6feb95 7356 fi
579d8138 7357
1e6feb95 7358
579d8138 7359 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
f09359cf 7360echo "configure:7361: checking for --enable-finddlg" >&5
8db37e06 7361 no_cache=0
69d27ff7
MB
7362 # Check whether --enable-finddlg or --disable-finddlg was given.
7363if test "${enable_finddlg+set}" = set; then
7364 enableval="$enable_finddlg"
579d8138 7365
8db37e06 7366 if test "$enableval" = yes; then
69d27ff7 7367 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7368 else
69d27ff7 7369 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7370 fi
579d8138 7371
8db37e06 7372else
579d8138 7373
8db37e06
VZ
7374 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
69d27ff7 7381 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
579d8138
VS
7382
7383fi
8db37e06
VZ
7384
7385
69d27ff7 7386 eval "$ac_cv_use_finddlg"
8db37e06 7387 if test "$no_cache" != 1; then
69d27ff7 7388 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7389 fi
7390
7391 if test "$wxUSE_FINDREPLDLG" = yes; then
579d8138 7392 echo "$ac_t""yes" 1>&6
8db37e06 7393 else
579d8138 7394 echo "$ac_t""no" 1>&6
8db37e06 7395 fi
579d8138 7396
8db37e06 7397
579d8138 7398 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
f09359cf 7399echo "configure:7400: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7400 no_cache=0
7401 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7402if test "${enable_fontdlg+set}" = set; then
7403 enableval="$enable_fontdlg"
579d8138 7404
1e6feb95
VZ
7405 if test "$enableval" = yes; then
7406 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7407 else
7408 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7409 fi
579d8138 7410
1e6feb95 7411else
579d8138 7412
1e6feb95
VZ
7413 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
579d8138
VS
7421
7422fi
1e6feb95
VZ
7423
7424
7425 eval "$ac_cv_use_fontdlg"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_FONTDLG" = yes; then
579d8138 7431 echo "$ac_t""yes" 1>&6
1e6feb95 7432 else
579d8138 7433 echo "$ac_t""no" 1>&6
1e6feb95 7434 fi
579d8138 7435
1e6feb95 7436
579d8138 7437 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
f09359cf 7438echo "configure:7439: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7439 no_cache=0
7440 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7441if test "${enable_dirdlg+set}" = set; then
7442 enableval="$enable_dirdlg"
579d8138 7443
1e6feb95
VZ
7444 if test "$enableval" = yes; then
7445 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7446 else
7447 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7448 fi
579d8138 7449
1e6feb95 7450else
579d8138 7451
1e6feb95
VZ
7452 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
579d8138
VS
7460
7461fi
1e6feb95
VZ
7462
7463
7464 eval "$ac_cv_use_dirdlg"
10f2d63a 7465 if test "$no_cache" != 1; then
1e6feb95 7466 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7467 fi
7468
1e6feb95 7469 if test "$wxUSE_DIRDLG" = yes; then
579d8138 7470 echo "$ac_t""yes" 1>&6
10f2d63a 7471 else
579d8138 7472 echo "$ac_t""no" 1>&6
10f2d63a 7473 fi
579d8138 7474
698dcdb6 7475
579d8138 7476 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
f09359cf 7477echo "configure:7478: checking for --enable-msgdlg" >&5
10f2d63a 7478 no_cache=0
1e6feb95
VZ
7479 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7480if test "${enable_msgdlg+set}" = set; then
7481 enableval="$enable_msgdlg"
579d8138 7482
10f2d63a 7483 if test "$enableval" = yes; then
1e6feb95 7484 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7485 else
1e6feb95 7486 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7487 fi
579d8138 7488
10f2d63a 7489else
579d8138 7490
1e6feb95 7491 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
1e6feb95 7498 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
579d8138
VS
7499
7500fi
10f2d63a
VZ
7501
7502
1e6feb95 7503 eval "$ac_cv_use_msgdlg"
10f2d63a 7504 if test "$no_cache" != 1; then
1e6feb95 7505 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7506 fi
7507
1e6feb95 7508 if test "$wxUSE_MSGDLG" = yes; then
579d8138 7509 echo "$ac_t""yes" 1>&6
10f2d63a 7510 else
579d8138 7511 echo "$ac_t""no" 1>&6
10f2d63a 7512 fi
579d8138 7513
10f2d63a 7514
579d8138 7515 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
f09359cf 7516echo "configure:7517: checking for --enable-numberdlg" >&5
10f2d63a 7517 no_cache=0
1e6feb95
VZ
7518 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7519if test "${enable_numberdlg+set}" = set; then
7520 enableval="$enable_numberdlg"
579d8138 7521
10f2d63a 7522 if test "$enableval" = yes; then
1e6feb95 7523 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7524 else
1e6feb95 7525 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7526 fi
579d8138 7527
10f2d63a 7528else
579d8138 7529
1e6feb95 7530 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
1e6feb95 7537 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
579d8138
VS
7538
7539fi
10f2d63a
VZ
7540
7541
1e6feb95 7542 eval "$ac_cv_use_numberdlg"
10f2d63a 7543 if test "$no_cache" != 1; then
1e6feb95 7544 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7545 fi
7546
1e6feb95 7547 if test "$wxUSE_NUMBERDLG" = yes; then
579d8138 7548 echo "$ac_t""yes" 1>&6
10f2d63a 7549 else
579d8138 7550 echo "$ac_t""no" 1>&6
10f2d63a 7551 fi
579d8138 7552
10f2d63a 7553
579d8138 7554 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
f09359cf 7555echo "configure:7556: checking for --enable-splash" >&5
cbca9943
VZ
7556 no_cache=0
7557 # Check whether --enable-splash or --disable-splash was given.
7558if test "${enable_splash+set}" = set; then
7559 enableval="$enable_splash"
579d8138 7560
cbca9943
VZ
7561 if test "$enableval" = yes; then
7562 ac_cv_use_splash='wxUSE_SPLASH=yes'
7563 else
7564 ac_cv_use_splash='wxUSE_SPLASH=no'
7565 fi
579d8138 7566
cbca9943 7567else
579d8138 7568
cbca9943
VZ
7569 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
579d8138
VS
7577
7578fi
cbca9943
VZ
7579
7580
7581 eval "$ac_cv_use_splash"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_SPLASH" = yes; then
579d8138 7587 echo "$ac_t""yes" 1>&6
cbca9943 7588 else
579d8138 7589 echo "$ac_t""no" 1>&6
cbca9943 7590 fi
579d8138 7591
cbca9943 7592
579d8138 7593 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
f09359cf 7594echo "configure:7595: checking for --enable-textdlg" >&5
10f2d63a
VZ
7595 no_cache=0
7596 # Check whether --enable-textdlg or --disable-textdlg was given.
7597if test "${enable_textdlg+set}" = set; then
7598 enableval="$enable_textdlg"
579d8138 7599
10f2d63a
VZ
7600 if test "$enableval" = yes; then
7601 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7602 else
7603 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7604 fi
579d8138 7605
10f2d63a 7606else
579d8138 7607
10f2d63a
VZ
7608 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
579d8138
VS
7616
7617fi
10f2d63a
VZ
7618
7619
7620 eval "$ac_cv_use_textdlg"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_TEXTDLG" = yes; then
579d8138 7626 echo "$ac_t""yes" 1>&6
10f2d63a 7627 else
579d8138 7628 echo "$ac_t""no" 1>&6
10f2d63a 7629 fi
579d8138 7630
10f2d63a 7631
579d8138 7632 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
f09359cf 7633echo "configure:7634: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7634 no_cache=0
7635 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7636if test "${enable_tipdlg+set}" = set; then
7637 enableval="$enable_tipdlg"
579d8138 7638
10f2d63a
VZ
7639 if test "$enableval" = yes; then
7640 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7641 else
7642 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7643 fi
579d8138 7644
10f2d63a 7645else
579d8138 7646
10f2d63a
VZ
7647 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
579d8138
VS
7655
7656fi
10f2d63a
VZ
7657
7658
7659 eval "$ac_cv_use_tipdlg"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_STARTUP_TIPS" = yes; then
579d8138 7665 echo "$ac_t""yes" 1>&6
10f2d63a 7666 else
579d8138 7667 echo "$ac_t""no" 1>&6
10f2d63a 7668 fi
579d8138 7669
10f2d63a 7670
579d8138 7671 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
f09359cf 7672echo "configure:7673: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7673 no_cache=0
7674 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7675if test "${enable_progressdlg+set}" = set; then
7676 enableval="$enable_progressdlg"
579d8138 7677
10f2d63a
VZ
7678 if test "$enableval" = yes; then
7679 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7680 else
7681 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7682 fi
579d8138 7683
10f2d63a 7684else
579d8138 7685
10f2d63a
VZ
7686 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
579d8138
VS
7694
7695fi
10f2d63a
VZ
7696
7697
7698 eval "$ac_cv_use_progressdlg"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_PROGRESSDLG" = yes; then
579d8138 7704 echo "$ac_t""yes" 1>&6
10f2d63a 7705 else
579d8138 7706 echo "$ac_t""no" 1>&6
10f2d63a 7707 fi
579d8138 7708
10f2d63a 7709
579d8138 7710 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
f09359cf 7711echo "configure:7712: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7712 no_cache=0
7713 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7714if test "${enable_wizarddlg+set}" = set; then
7715 enableval="$enable_wizarddlg"
579d8138 7716
b1f5d087
VZ
7717 if test "$enableval" = yes; then
7718 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7719 else
7720 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7721 fi
579d8138 7722
b1f5d087 7723else
579d8138 7724
b1f5d087
VZ
7725 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
579d8138
VS
7733
7734fi
b1f5d087
VZ
7735
7736
7737 eval "$ac_cv_use_wizarddlg"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_WIZARDDLG" = yes; then
579d8138 7743 echo "$ac_t""yes" 1>&6
b1f5d087 7744 else
579d8138 7745 echo "$ac_t""no" 1>&6
b1f5d087 7746 fi
579d8138
VS
7747
7748
b1f5d087 7749
579d8138
VS
7750
7751 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
f09359cf 7752echo "configure:7753: checking for --enable-menus" >&5
1e6feb95
VZ
7753 no_cache=0
7754 # Check whether --enable-menus or --disable-menus was given.
7755if test "${enable_menus+set}" = set; then
7756 enableval="$enable_menus"
579d8138 7757
1e6feb95
VZ
7758 if test "$enableval" = yes; then
7759 ac_cv_use_menus='wxUSE_MENUS=yes'
7760 else
7761 ac_cv_use_menus='wxUSE_MENUS=no'
7762 fi
579d8138 7763
1e6feb95 7764else
579d8138 7765
1e6feb95
VZ
7766 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
579d8138
VS
7774
7775fi
1e6feb95
VZ
7776
7777
7778 eval "$ac_cv_use_menus"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_MENUS" = yes; then
579d8138 7784 echo "$ac_t""yes" 1>&6
1e6feb95 7785 else
579d8138 7786 echo "$ac_t""no" 1>&6
1e6feb95 7787 fi
579d8138 7788
1e6feb95 7789
579d8138 7790 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
f09359cf 7791echo "configure:7792: checking for --enable-miniframe" >&5
10f2d63a
VZ
7792 no_cache=0
7793 # Check whether --enable-miniframe or --disable-miniframe was given.
7794if test "${enable_miniframe+set}" = set; then
7795 enableval="$enable_miniframe"
579d8138 7796
10f2d63a
VZ
7797 if test "$enableval" = yes; then
7798 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7799 else
7800 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7801 fi
579d8138 7802
10f2d63a 7803else
579d8138 7804
10f2d63a
VZ
7805 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
579d8138
VS
7813
7814fi
10f2d63a
VZ
7815
7816
7817 eval "$ac_cv_use_miniframe"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_MINIFRAME" = yes; then
579d8138 7823 echo "$ac_t""yes" 1>&6
10f2d63a 7824 else
579d8138 7825 echo "$ac_t""no" 1>&6
10f2d63a 7826 fi
579d8138 7827
10f2d63a 7828
579d8138 7829 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
f09359cf 7830echo "configure:7831: checking for --enable-tooltips" >&5
10f2d63a
VZ
7831 no_cache=0
7832 # Check whether --enable-tooltips or --disable-tooltips was given.
7833if test "${enable_tooltips+set}" = set; then
7834 enableval="$enable_tooltips"
579d8138 7835
10f2d63a
VZ
7836 if test "$enableval" = yes; then
7837 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7838 else
7839 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7840 fi
579d8138 7841
10f2d63a 7842else
579d8138 7843
10f2d63a
VZ
7844 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
579d8138
VS
7852
7853fi
10f2d63a
VZ
7854
7855
7856 eval "$ac_cv_use_tooltips"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_TOOLTIPS" = yes; then
579d8138 7862 echo "$ac_t""yes" 1>&6
10f2d63a 7863 else
579d8138 7864 echo "$ac_t""no" 1>&6
10f2d63a 7865 fi
579d8138 7866
10f2d63a 7867
579d8138 7868 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
f09359cf 7869echo "configure:7870: checking for --enable-splines" >&5
10f2d63a
VZ
7870 no_cache=0
7871 # Check whether --enable-splines or --disable-splines was given.
7872if test "${enable_splines+set}" = set; then
7873 enableval="$enable_splines"
579d8138 7874
10f2d63a
VZ
7875 if test "$enableval" = yes; then
7876 ac_cv_use_splines='wxUSE_SPLINES=yes'
7877 else
7878 ac_cv_use_splines='wxUSE_SPLINES=no'
7879 fi
579d8138 7880
10f2d63a 7881else
579d8138 7882
10f2d63a
VZ
7883 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
579d8138
VS
7891
7892fi
10f2d63a
VZ
7893
7894
7895 eval "$ac_cv_use_splines"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_SPLINES" = yes; then
579d8138 7901 echo "$ac_t""yes" 1>&6
10f2d63a 7902 else
579d8138 7903 echo "$ac_t""no" 1>&6
10f2d63a 7904 fi
579d8138 7905
10f2d63a 7906
579d8138 7907 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
f09359cf 7908echo "configure:7909: checking for --enable-validators" >&5
10f2d63a
VZ
7909 no_cache=0
7910 # Check whether --enable-validators or --disable-validators was given.
7911if test "${enable_validators+set}" = set; then
7912 enableval="$enable_validators"
579d8138 7913
10f2d63a
VZ
7914 if test "$enableval" = yes; then
7915 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7916 else
7917 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7918 fi
579d8138 7919
10f2d63a 7920else
579d8138 7921
10f2d63a
VZ
7922 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7923 if test "x$LINE" != x ; then
7924 eval "DEFAULT_$LINE"
7925 else
7926 no_cache=1
7927 fi
7928
7929 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
579d8138
VS
7930
7931fi
10f2d63a
VZ
7932
7933
7934 eval "$ac_cv_use_validators"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_VALIDATORS" = yes; then
579d8138 7940 echo "$ac_t""yes" 1>&6
10f2d63a 7941 else
579d8138 7942 echo "$ac_t""no" 1>&6
10f2d63a 7943 fi
579d8138 7944
10f2d63a 7945
579d8138 7946 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
f09359cf 7947echo "configure:7948: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7948 no_cache=0
7949 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7950if test "${enable_busyinfo+set}" = set; then
7951 enableval="$enable_busyinfo"
579d8138 7952
10f2d63a
VZ
7953 if test "$enableval" = yes; then
7954 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7955 else
7956 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7957 fi
579d8138 7958
10f2d63a 7959else
579d8138 7960
10f2d63a
VZ
7961 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7962 if test "x$LINE" != x ; then
7963 eval "DEFAULT_$LINE"
7964 else
7965 no_cache=1
7966 fi
7967
7968 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
579d8138
VS
7969
7970fi
10f2d63a
VZ
7971
7972
7973 eval "$ac_cv_use_busyinfo"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_BUSYINFO" = yes; then
579d8138 7979 echo "$ac_t""yes" 1>&6
10f2d63a 7980 else
579d8138 7981 echo "$ac_t""no" 1>&6
10f2d63a 7982 fi
579d8138 7983
10f2d63a 7984
579d8138 7985 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
f09359cf 7986echo "configure:7987: checking for --enable-joystick" >&5
f6bcfd97
BP
7987 no_cache=0
7988 # Check whether --enable-joystick or --disable-joystick was given.
7989if test "${enable_joystick+set}" = set; then
7990 enableval="$enable_joystick"
579d8138 7991
f6bcfd97
BP
7992 if test "$enableval" = yes; then
7993 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7994 else
7995 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7996 fi
579d8138 7997
f6bcfd97 7998else
579d8138 7999
f6bcfd97
BP
8000 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8001 if test "x$LINE" != x ; then
8002 eval "DEFAULT_$LINE"
8003 else
8004 no_cache=1
8005 fi
8006
8007 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
579d8138
VS
8008
8009fi
f6bcfd97
BP
8010
8011
8012 eval "$ac_cv_use_joystick"
8013 if test "$no_cache" != 1; then
8014 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8015 fi
8016
8017 if test "$wxUSE_JOYSTICK" = yes; then
579d8138 8018 echo "$ac_t""yes" 1>&6
f6bcfd97 8019 else
579d8138 8020 echo "$ac_t""no" 1>&6
f6bcfd97 8021 fi
579d8138 8022
698dcdb6 8023
579d8138 8024 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f09359cf 8025echo "configure:8026: checking for --enable-metafile" >&5
1e6feb95
VZ
8026 no_cache=0
8027 # Check whether --enable-metafile or --disable-metafile was given.
8028if test "${enable_metafile+set}" = set; then
8029 enableval="$enable_metafile"
579d8138 8030
1e6feb95
VZ
8031 if test "$enableval" = yes; then
8032 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8033 else
8034 ac_cv_use_metafile='wxUSE_METAFILE=no'
8035 fi
579d8138 8036
1e6feb95 8037else
579d8138 8038
1e6feb95
VZ
8039 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8040 if test "x$LINE" != x ; then
8041 eval "DEFAULT_$LINE"
8042 else
8043 no_cache=1
8044 fi
8045
8046 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
579d8138
VS
8047
8048fi
1e6feb95
VZ
8049
8050
8051 eval "$ac_cv_use_metafile"
8052 if test "$no_cache" != 1; then
8053 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8054 fi
8055
8056 if test "$wxUSE_METAFILE" = yes; then
579d8138 8057 echo "$ac_t""yes" 1>&6
1e6feb95 8058 else
579d8138 8059 echo "$ac_t""no" 1>&6
1e6feb95 8060 fi
579d8138 8061
1e6feb95 8062
579d8138 8063 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
f09359cf 8064echo "configure:8065: checking for --enable-dragimage" >&5
24fd6d87
VZ
8065 no_cache=0
8066 # Check whether --enable-dragimage or --disable-dragimage was given.
8067if test "${enable_dragimage+set}" = set; then
8068 enableval="$enable_dragimage"
579d8138 8069
24fd6d87
VZ
8070 if test "$enableval" = yes; then
8071 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8072 else
8073 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8074 fi
579d8138 8075
24fd6d87 8076else
579d8138 8077
24fd6d87
VZ
8078 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8079 if test "x$LINE" != x ; then
8080 eval "DEFAULT_$LINE"
8081 else
8082 no_cache=1
8083 fi
8084
8085 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
579d8138
VS
8086
8087fi
24fd6d87
VZ
8088
8089
8090 eval "$ac_cv_use_dragimage"
8091 if test "$no_cache" != 1; then
8092 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8093 fi
8094
8095 if test "$wxUSE_DRAGIMAGE" = yes; then
579d8138 8096 echo "$ac_t""yes" 1>&6
24fd6d87 8097 else
579d8138 8098 echo "$ac_t""no" 1>&6
24fd6d87 8099 fi
579d8138
VS
8100
8101
24fd6d87 8102
579d8138
VS
8103
8104 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
f09359cf 8105echo "configure:8106: checking for --enable-palette" >&5
edae8572
VZ
8106 no_cache=0
8107 # Check whether --enable-palette or --disable-palette was given.
8108if test "${enable_palette+set}" = set; then
8109 enableval="$enable_palette"
579d8138 8110
edae8572
VZ
8111 if test "$enableval" = yes; then
8112 ac_cv_use_palette='wxUSE_PALETTE=yes'
8113 else
8114 ac_cv_use_palette='wxUSE_PALETTE=no'
8115 fi
579d8138 8116
edae8572 8117else
579d8138 8118
edae8572
VZ
8119 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8120 if test "x$LINE" != x ; then
8121 eval "DEFAULT_$LINE"
8122 else
8123 no_cache=1
8124 fi
8125
8126 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
579d8138
VS
8127
8128fi
edae8572
VZ
8129
8130
8131 eval "$ac_cv_use_palette"
8132 if test "$no_cache" != 1; then
8133 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8134 fi
8135
8136 if test "$wxUSE_PALETTE" = yes; then
579d8138 8137 echo "$ac_t""yes" 1>&6
edae8572 8138 else
579d8138 8139 echo "$ac_t""no" 1>&6
edae8572 8140 fi
579d8138 8141
edae8572 8142
579d8138 8143 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
f09359cf 8144echo "configure:8145: checking for --enable-image" >&5
0046ff7c
VS
8145 no_cache=0
8146 # Check whether --enable-image or --disable-image was given.
8147if test "${enable_image+set}" = set; then
8148 enableval="$enable_image"
579d8138 8149
0046ff7c
VS
8150 if test "$enableval" = yes; then
8151 ac_cv_use_image='wxUSE_IMAGE=yes'
8152 else
8153 ac_cv_use_image='wxUSE_IMAGE=no'
8154 fi
579d8138 8155
0046ff7c 8156else
579d8138 8157
0046ff7c
VS
8158 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8159 if test "x$LINE" != x ; then
8160 eval "DEFAULT_$LINE"
8161 else
8162 no_cache=1
8163 fi
8164
8165 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
579d8138
VS
8166
8167fi
0046ff7c
VS
8168
8169
8170 eval "$ac_cv_use_image"
8171 if test "$no_cache" != 1; then
8172 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8173 fi
8174
8175 if test "$wxUSE_IMAGE" = yes; then
579d8138 8176 echo "$ac_t""yes" 1>&6
0046ff7c 8177 else
579d8138 8178 echo "$ac_t""no" 1>&6
0046ff7c 8179 fi
579d8138 8180
0046ff7c 8181
579d8138 8182 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
f09359cf 8183echo "configure:8184: checking for --enable-gif" >&5
10f2d63a
VZ
8184 no_cache=0
8185 # Check whether --enable-gif or --disable-gif was given.
8186if test "${enable_gif+set}" = set; then
8187 enableval="$enable_gif"
579d8138 8188
10f2d63a
VZ
8189 if test "$enableval" = yes; then
8190 ac_cv_use_gif='wxUSE_GIF=yes'
8191 else
8192 ac_cv_use_gif='wxUSE_GIF=no'
8193 fi
579d8138 8194
10f2d63a 8195else
579d8138 8196
10f2d63a
VZ
8197 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
579d8138
VS
8205
8206fi
10f2d63a
VZ
8207
8208
8209 eval "$ac_cv_use_gif"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_GIF" = yes; then
579d8138 8215 echo "$ac_t""yes" 1>&6
10f2d63a 8216 else
579d8138 8217 echo "$ac_t""no" 1>&6
10f2d63a 8218 fi
579d8138 8219
10f2d63a 8220
579d8138 8221 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
f09359cf 8222echo "configure:8223: checking for --enable-pcx" >&5
10f2d63a
VZ
8223 no_cache=0
8224 # Check whether --enable-pcx or --disable-pcx was given.
8225if test "${enable_pcx+set}" = set; then
8226 enableval="$enable_pcx"
579d8138 8227
10f2d63a
VZ
8228 if test "$enableval" = yes; then
8229 ac_cv_use_pcx='wxUSE_PCX=yes'
8230 else
8231 ac_cv_use_pcx='wxUSE_PCX=no'
8232 fi
579d8138 8233
10f2d63a 8234else
579d8138 8235
10f2d63a
VZ
8236 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8237 if test "x$LINE" != x ; then
8238 eval "DEFAULT_$LINE"
8239 else
8240 no_cache=1
8241 fi
8242
8243 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
579d8138
VS
8244
8245fi
10f2d63a
VZ
8246
8247
8248 eval "$ac_cv_use_pcx"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_PCX" = yes; then
579d8138 8254 echo "$ac_t""yes" 1>&6
10f2d63a 8255 else
579d8138 8256 echo "$ac_t""no" 1>&6
10f2d63a 8257 fi
579d8138 8258
10f2d63a 8259
579d8138 8260 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
f09359cf 8261echo "configure:8262: checking for --enable-iff" >&5
4b6b4dfc
RR
8262 no_cache=0
8263 # Check whether --enable-iff or --disable-iff was given.
8264if test "${enable_iff+set}" = set; then
8265 enableval="$enable_iff"
579d8138 8266
4b6b4dfc
RR
8267 if test "$enableval" = yes; then
8268 ac_cv_use_iff='wxUSE_IFF=yes'
8269 else
8270 ac_cv_use_iff='wxUSE_IFF=no'
8271 fi
579d8138 8272
4b6b4dfc 8273else
579d8138 8274
4b6b4dfc
RR
8275 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8276 if test "x$LINE" != x ; then
8277 eval "DEFAULT_$LINE"
8278 else
8279 no_cache=1
8280 fi
8281
8282 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
579d8138
VS
8283
8284fi
4b6b4dfc
RR
8285
8286
8287 eval "$ac_cv_use_iff"
8288 if test "$no_cache" != 1; then
8289 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8290 fi
8291
8292 if test "$wxUSE_IFF" = yes; then
579d8138 8293 echo "$ac_t""yes" 1>&6
4b6b4dfc 8294 else
579d8138 8295 echo "$ac_t""no" 1>&6
4b6b4dfc 8296 fi
579d8138 8297
4b6b4dfc 8298
579d8138 8299 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
f09359cf 8300echo "configure:8301: checking for --enable-pnm" >&5
10f2d63a
VZ
8301 no_cache=0
8302 # Check whether --enable-pnm or --disable-pnm was given.
8303if test "${enable_pnm+set}" = set; then
8304 enableval="$enable_pnm"
579d8138 8305
10f2d63a
VZ
8306 if test "$enableval" = yes; then
8307 ac_cv_use_pnm='wxUSE_PNM=yes'
8308 else
8309 ac_cv_use_pnm='wxUSE_PNM=no'
8310 fi
579d8138 8311
10f2d63a 8312else
579d8138 8313
10f2d63a
VZ
8314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8315 if test "x$LINE" != x ; then
8316 eval "DEFAULT_$LINE"
8317 else
8318 no_cache=1
8319 fi
8320
8321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
579d8138
VS
8322
8323fi
10f2d63a
VZ
8324
8325
8326 eval "$ac_cv_use_pnm"
8327 if test "$no_cache" != 1; then
8328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8329 fi
8330
8331 if test "$wxUSE_PNM" = yes; then
579d8138 8332 echo "$ac_t""yes" 1>&6
10f2d63a 8333 else
579d8138 8334 echo "$ac_t""no" 1>&6
10f2d63a 8335 fi
579d8138 8336
10f2d63a 8337
579d8138 8338 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
f09359cf 8339echo "configure:8340: checking for --enable-xpm" >&5
0046ff7c 8340 no_cache=0
69d27ff7
MB
8341 # Check whether --enable-xpm or --disable-xpm was given.
8342if test "${enable_xpm+set}" = set; then
8343 enableval="$enable_xpm"
579d8138 8344
0046ff7c 8345 if test "$enableval" = yes; then
69d27ff7 8346 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8347 else
69d27ff7 8348 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8349 fi
579d8138 8350
0046ff7c 8351else
579d8138 8352
0046ff7c
VS
8353 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8354 if test "x$LINE" != x ; then
8355 eval "DEFAULT_$LINE"
8356 else
8357 no_cache=1
8358 fi
8359
69d27ff7 8360 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
579d8138
VS
8361
8362fi
0046ff7c
VS
8363
8364
69d27ff7 8365 eval "$ac_cv_use_xpm"
0046ff7c 8366 if test "$no_cache" != 1; then
69d27ff7 8367 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8368 fi
8369
8370 if test "$wxUSE_XPM" = yes; then
579d8138 8371 echo "$ac_t""yes" 1>&6
0046ff7c 8372 else
579d8138 8373 echo "$ac_t""no" 1>&6
0046ff7c 8374 fi
579d8138 8375
0046ff7c 8376
579d8138 8377 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
f09359cf 8378echo "configure:8379: checking for --enable-ico_cur" >&5
658974ae 8379 no_cache=0
c7206e64
VS
8380 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8381if test "${enable_ico_cur+set}" = set; then
8382 enableval="$enable_ico_cur"
579d8138 8383
658974ae 8384 if test "$enableval" = yes; then
c7206e64 8385 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8386 else
c7206e64 8387 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8388 fi
579d8138 8389
658974ae 8390else
579d8138 8391
658974ae
VS
8392 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
c7206e64 8399 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
579d8138
VS
8400
8401fi
658974ae
VS
8402
8403
c7206e64 8404 eval "$ac_cv_use_ico_cur"
658974ae 8405 if test "$no_cache" != 1; then
c7206e64 8406 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8407 fi
8408
8409 if test "$wxUSE_ICO_CUR" = yes; then
579d8138 8410 echo "$ac_t""yes" 1>&6
658974ae 8411 else
579d8138 8412 echo "$ac_t""no" 1>&6
658974ae 8413 fi
579d8138 8414
658974ae 8415
b12915c1
VZ
8416fi
8417
d558c907
VS
8418case "${host}" in
8419 *-pc-os2_emx | *-pc-os2-emx )
8420 LEX_STEM="lexyy"
8421 ;;
8422 *)
8423 PATH_IFS=':'
8424 LEX_STEM="lex.yy"
8425 ;;
8426esac
8427
579d8138
VS
8428
8429
10f2d63a
VZ
8430 echo "saving argument cache $wx_arg_cache_file"
8431 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
579d8138
VS
8432
8433
10f2d63a 8434
579d8138 8435echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f09359cf 8436echo "configure:8437: checking for toolkit" >&5
10f2d63a
VZ
8437
8438if test "$wxUSE_GUI" = "yes"; then
8439
3a922bb4 8440 if test "$USE_BEOS" = 1; then
579d8138 8441 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8442 fi
b12915c1 8443
3a922bb4
RL
8444 if test "$TOOLKIT_GIVEN" = 1; then
8445 for toolkit in `echo $ALL_TOOLKITS`; do
8446 var=wxUSE_$toolkit
8447 eval "value=\$${var}"
8448 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8449 done
10f2d63a 8450 else
3a922bb4
RL
8451 for toolkit in `echo $ALL_TOOLKITS`; do
8452 if test "$has_toolkit_in_cache" != 1; then
8453 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8454 else
8455 var=DEFAULT_wxUSE_$toolkit
8456 fi
8457 eval "wxUSE_$toolkit=\$${var}"
8458 done
10f2d63a 8459 fi
10f2d63a 8460
3a922bb4 8461 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8462 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8463
d558c907 8464 case "${host}" in
6fa882bd 8465 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8466 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8467 esac
10f2d63a 8468
3a922bb4
RL
8469 case "$NUM_TOOLKITS" in
8470 1)
8471 ;;
8472 0)
579d8138 8473 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8474 ;;
8475 *)
579d8138 8476 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
3a922bb4 8477 esac
10f2d63a 8478
3a922bb4
RL
8479 for toolkit in `echo $ALL_TOOLKITS`; do
8480 var=wxUSE_$toolkit
8481 eval "value=\$${var}"
8482 if test "x$value" != x; then
8483 cache_var=CACHE_$toolkit
8484 eval "cache=\$${cache_var}"
8485 if test "$cache" = 1; then
8486 echo "$var=$value" >> ${wx_arg_cache_file}
8487 fi
8488 if test "$value" = 1; then
8489 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
579d8138 8490 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8491 fi
8492 fi
8493 done
10f2d63a 8494else
579d8138 8495 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8496fi
8497
579d8138 8498
43d99b6d
VS
8499wants_win32=0
8500doesnt_want_win32=0
17234b26
MB
8501case "${host}" in
8502 *-*-cygwin*)
8503 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8504 wants_win32=1
8505 else
8506 doesnt_want_win32=1
17234b26
MB
8507 fi
8508 ;;
8509 *-*-mingw*)
43d99b6d 8510 wants_win32=1
17234b26
MB
8511 ;;
8512esac
8513
43d99b6d 8514if test "$wants_win32" = 1 ; then
17234b26
MB
8515 USE_UNIX=0
8516 USE_WIN32=1
579d8138 8517 cat >> confdefs.h <<\EOF
17234b26
MB
8518#define __WIN32__ 1
8519EOF
8520
579d8138 8521 cat >> confdefs.h <<\EOF
17234b26
MB
8522#define __WIN95__ 1
8523EOF
8524
579d8138 8525 cat >> confdefs.h <<\EOF
17234b26
MB
8526#define __WINDOWS__ 1
8527EOF
8528
579d8138 8529 cat >> confdefs.h <<\EOF
17234b26
MB
8530#define __GNUWIN32__ 1
8531EOF
8532
579d8138 8533 cat >> confdefs.h <<\EOF
17234b26
MB
8534#define STRICT 1
8535EOF
8536
579d8138 8537 cat >> confdefs.h <<\EOF
17234b26
MB
8538#define WINVER 0x0400
8539EOF
8540
43d99b6d
VS
8541fi
8542if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8543 USE_UNIX=1
8544 USE_WIN32=0
8545fi
8546
8547if test "$USE_UNIX" = 1 ; then
8548 wxUSE_UNIX=yes
579d8138 8549 cat >> confdefs.h <<\EOF
17234b26
MB
8550#define __UNIX__ 1
8551EOF
8552
8553fi
8554
579d8138
VS
8555
8556cat > confcache <<\EOF
10f2d63a
VZ
8557# This file is a shell script that caches the results of configure
8558# tests run on this system so they can be shared between configure
579d8138
VS
8559# scripts and configure runs. It is not useful on other systems.
8560# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8561#
579d8138
VS
8562# By default, configure uses ./config.cache as the cache file,
8563# creating it if it does not exist already. You can give configure
8564# the --cache-file=FILE option to use a different cache file; that is
8565# what configure does when it calls configure scripts in
8566# subdirectories, so they share the cache.
8567# Giving --cache-file=/dev/null disables caching, for debugging configure.
8568# config.status only pays attention to the cache file if you give it the
8569# --recheck option to rerun configure.
10f2d63a 8570#
579d8138 8571EOF
10f2d63a
VZ
8572# The following way of writing the cache mishandles newlines in values,
8573# but we know of no workaround that is simple, portable, and efficient.
8574# So, don't put newlines in cache variables' values.
8575# Ultrix sh set writes to stderr and can't be redirected directly,
8576# and sets the high bit in the cache file unless we assign to the vars.
579d8138 8577(set) 2>&1 |
f09359cf 8578 case `(ac_space=' '; set | grep ac_space) 2>&1` in
579d8138
VS
8579 *ac_space=\ *)
8580 # `set' does not quote correctly, so add quotes (double-quote substitution
8581 # turns \\\\ into \\, and sed turns \\ into \).
8582 sed -n \
8583 -e "s/'/'\\\\''/g" \
8584 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8585 ;;
8586 *)
8587 # `set' quotes correctly as required by POSIX, so do not add quotes.
8588 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8589 ;;
8590 esac >> confcache
8591if cmp -s $cache_file confcache; then
8592 :
8593else
10f2d63a 8594 if test -w $cache_file; then
579d8138
VS
8595 echo "updating cache $cache_file"
8596 cat confcache > $cache_file
10f2d63a
VZ
8597 else
8598 echo "not updating unwritable cache $cache_file"
8599 fi
8600fi
8601rm -f confcache
8602
579d8138 8603
e59890c3 8604if test "$build" != "$host" ; then
9d353d4a 8605 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8606 CC=$host_alias-gcc
8607 CXX=$host_alias-c++
8608 AR=$host_alias-ar
8609 RANLIB=$host_alias-ranlib
8610 DLLTOOL=$host_alias-dlltool
8611 RESCOMP=$host_alias-windres
8612 LD=$host_alias-ld
8613 NM=$host_alias-nm
8614 STRIP=$host_alias-strip
8615 else
579d8138 8616 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8617 fi
10f2d63a
VZ
8618fi
8619
ec603395 8620CFLAGS=${CFLAGS:=}
579d8138
VS
8621# Extract the first word of "gcc", so it can be a program name with args.
8622set dummy gcc; ac_word=$2
8623echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 8624echo "configure:8625: checking for $ac_word" >&5
579d8138
VS
8625if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8627else
8628 if test -n "$CC"; then
8629 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8630else
f09359cf
VS
8631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8632 ac_dummy="$PATH"
8633 for ac_dir in $ac_dummy; do
579d8138
VS
8634 test -z "$ac_dir" && ac_dir=.
8635 if test -f $ac_dir/$ac_word; then
8636 ac_cv_prog_CC="gcc"
8637 break
8638 fi
8639 done
8640 IFS="$ac_save_ifs"
10f2d63a 8641fi
6232543b 8642fi
579d8138 8643CC="$ac_cv_prog_CC"
6232543b 8644if test -n "$CC"; then
579d8138 8645 echo "$ac_t""$CC" 1>&6
1e487827 8646else
579d8138 8647 echo "$ac_t""no" 1>&6
1e487827 8648fi
6232543b 8649
1e487827 8650if test -z "$CC"; then
579d8138
VS
8651 # Extract the first word of "cc", so it can be a program name with args.
8652set dummy cc; ac_word=$2
8653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 8654echo "configure:8655: checking for $ac_word" >&5
579d8138
VS
8655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
328a083c
RR
8657else
8658 if test -n "$CC"; then
8659 ac_cv_prog_CC="$CC" # Let the user override the test.
8660else
f09359cf 8661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
328a083c 8662 ac_prog_rejected=no
f09359cf
VS
8663 ac_dummy="$PATH"
8664 for ac_dir in $ac_dummy; do
579d8138
VS
8665 test -z "$ac_dir" && ac_dir=.
8666 if test -f $ac_dir/$ac_word; then
8667 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8668 ac_prog_rejected=yes
8669 continue
8670 fi
8671 ac_cv_prog_CC="cc"
8672 break
8673 fi
8674 done
8675 IFS="$ac_save_ifs"
328a083c
RR
8676if test $ac_prog_rejected = yes; then
8677 # We found a bogon in the path, so make sure we never use it.
8678 set dummy $ac_cv_prog_CC
8679 shift
579d8138 8680 if test $# -gt 0; then
328a083c 8681 # We chose a different compiler from the bogus one.
1e487827
VS
8682 # However, it has the same basename, so the bogon will be chosen
8683 # first if we set CC to just the basename; use the full file name.
8684 shift
579d8138 8685 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8686 shift
8687 ac_cv_prog_CC="$@"
703e0a69 8688 fi
1e487827
VS
8689fi
8690fi
8691fi
579d8138 8692CC="$ac_cv_prog_CC"
1e487827 8693if test -n "$CC"; then
579d8138 8694 echo "$ac_t""$CC" 1>&6
703e0a69 8695else
579d8138 8696 echo "$ac_t""no" 1>&6
703e0a69 8697fi
1e487827 8698
f09359cf
VS
8699 if test -z "$CC"; then
8700 case "`uname -s`" in
8701 *win32* | *WIN32*)
8702 # Extract the first word of "cl", so it can be a program name with args.
8703set dummy cl; ac_word=$2
8704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8705echo "configure:8706: checking for $ac_word" >&5
8706if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8708else
8709 if test -n "$CC"; then
8710 ac_cv_prog_CC="$CC" # Let the user override the test.
8711else
8712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8713 ac_dummy="$PATH"
8714 for ac_dir in $ac_dummy; do
8715 test -z "$ac_dir" && ac_dir=.
8716 if test -f $ac_dir/$ac_word; then
8717 ac_cv_prog_CC="cl"
8718 break
8719 fi
8720 done
8721 IFS="$ac_save_ifs"
8722fi
8723fi
8724CC="$ac_cv_prog_CC"
8725if test -n "$CC"; then
8726 echo "$ac_t""$CC" 1>&6
8727else
8728 echo "$ac_t""no" 1>&6
8729fi
8730 ;;
8731 esac
8732 fi
579d8138 8733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
328a083c 8734fi
1e487827 8735
579d8138 8736echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f09359cf 8737echo "configure:8738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6232543b 8738
579d8138
VS
8739ac_ext=c
8740# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8741ac_cpp='$CPP $CPPFLAGS'
8742ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 8743ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 8744cross_compiling=$ac_cv_prog_cc_cross
1e487827 8745
f09359cf
VS
8746cat > conftest.$ac_ext << EOF
8747
8748#line 8749 "configure"
579d8138 8749#include "confdefs.h"
f09359cf 8750
579d8138
VS
8751main(){return(0);}
8752EOF
f09359cf 8753if { (eval echo configure:8754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
8754 ac_cv_prog_cc_works=yes
8755 # If we can't run a trivial program, we are probably using a cross compiler.
8756 if (./conftest; exit) 2>/dev/null; then
8757 ac_cv_prog_cc_cross=no
698dcdb6 8758 else
579d8138 8759 ac_cv_prog_cc_cross=yes
698dcdb6 8760 fi
698dcdb6 8761else
579d8138
VS
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_cv_prog_cc_works=no
698dcdb6 8765fi
579d8138 8766rm -fr conftest*
f09359cf
VS
8767ac_ext=c
8768# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8769ac_cpp='$CPP $CPPFLAGS'
8770ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8771ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8772cross_compiling=$ac_cv_prog_cc_cross
579d8138
VS
8773
8774echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8775if test $ac_cv_prog_cc_works = no; then
8776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8777fi
8778echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f09359cf 8779echo "configure:8780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
579d8138
VS
8780echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8781cross_compiling=$ac_cv_prog_cc_cross
8782
8783echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f09359cf 8784echo "configure:8785: checking whether we are using GNU C" >&5
579d8138
VS
8785if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787else
8788 cat > conftest.c <<EOF
8789#ifdef __GNUC__
8790 yes;
8791#endif
8792EOF
f09359cf 8793if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
579d8138 8794 ac_cv_prog_gcc=yes
328a083c 8795else
579d8138
VS
8796 ac_cv_prog_gcc=no
8797fi
8798fi
328a083c 8799
579d8138 8800echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8801
579d8138
VS
8802if test $ac_cv_prog_gcc = yes; then
8803 GCC=yes
f09359cf
VS
8804else
8805 GCC=
8806fi
8807
8808ac_test_CFLAGS="${CFLAGS+set}"
8809ac_save_CFLAGS="$CFLAGS"
8810CFLAGS=
8811echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8812echo "configure:8813: checking whether ${CC-cc} accepts -g" >&5
579d8138
VS
8813if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 8815else
579d8138
VS
8816 echo 'void f(){}' > conftest.c
8817if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8818 ac_cv_prog_cc_g=yes
8819else
579d8138 8820 ac_cv_prog_cc_g=no
10f2d63a 8821fi
579d8138
VS
8822rm -f conftest*
8823
10f2d63a 8824fi
579d8138
VS
8825
8826echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf
VS
8827if test "$ac_test_CFLAGS" = set; then
8828 CFLAGS="$ac_save_CFLAGS"
8829elif test $ac_cv_prog_cc_g = yes; then
8830 if test "$GCC" = yes; then
10f2d63a
VZ
8831 CFLAGS="-g -O2"
8832 else
f09359cf 8833 CFLAGS="-g"
10f2d63a 8834 fi
5c0a20c3 8835else
f09359cf
VS
8836 if test "$GCC" = yes; then
8837 CFLAGS="-O2"
8838 else
8839 CFLAGS=
8840 fi
10f2d63a
VZ
8841fi
8842
8843
579d8138 8844echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f09359cf 8845echo "configure:8846: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8846# On Suns, sometimes $CPP names a directory.
8847if test -n "$CPP" && test -d "$CPP"; then
8848 CPP=
8849fi
8850if test -z "$CPP"; then
579d8138
VS
8851if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8853else
8854 # This must be in double quotes, not single quotes, because CPP may get
8855 # substituted into the Makefile and "${CC-cc}" will confuse make.
8856 CPP="${CC-cc} -E"
10f2d63a 8857 # On the NeXT, cc -E runs the code through the compiler's parser,
579d8138
VS
8858 # not just through cpp.
8859 cat > conftest.$ac_ext <<EOF
f09359cf 8860#line 8861 "configure"
10f2d63a
VZ
8861#include "confdefs.h"
8862#include <assert.h>
579d8138
VS
8863Syntax Error
8864EOF
8865ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
8866{ (eval echo configure:8867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8867ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138 8868if test -z "$ac_err"; then
10f2d63a
VZ
8869 :
8870else
579d8138
VS
8871 echo "$ac_err" >&5
8872 echo "configure: failed program was:" >&5
10f2d63a 8873 cat conftest.$ac_ext >&5
579d8138
VS
8874 rm -rf conftest*
8875 CPP="${CC-cc} -E -traditional-cpp"
8876 cat > conftest.$ac_ext <<EOF
f09359cf
VS
8877#line 8878 "configure"
8878#include "confdefs.h"
8879#include <assert.h>
8880Syntax Error
8881EOF
8882ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8883{ (eval echo configure:8884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8884ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8885if test -z "$ac_err"; then
8886 :
8887else
8888 echo "$ac_err" >&5
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 CPP="${CC-cc} -nologo -E"
8893 cat > conftest.$ac_ext <<EOF
8894#line 8895 "configure"
10f2d63a
VZ
8895#include "confdefs.h"
8896#include <assert.h>
579d8138
VS
8897Syntax Error
8898EOF
8899ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
8900{ (eval echo configure:8901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8901ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138 8902if test -z "$ac_err"; then
10f2d63a
VZ
8903 :
8904else
579d8138
VS
8905 echo "$ac_err" >&5
8906 echo "configure: failed program was:" >&5
10f2d63a 8907 cat conftest.$ac_ext >&5
579d8138
VS
8908 rm -rf conftest*
8909 CPP=/lib/cpp
10f2d63a 8910fi
579d8138 8911rm -f conftest*
703e0a69 8912fi
f09359cf
VS
8913rm -f conftest*
8914fi
579d8138
VS
8915rm -f conftest*
8916 ac_cv_prog_CPP="$CPP"
8917fi
8918 CPP="$ac_cv_prog_CPP"
10f2d63a 8919else
579d8138 8920 ac_cv_prog_CPP="$CPP"
10f2d63a 8921fi
579d8138 8922echo "$ac_t""$CPP" 1>&6
10f2d63a 8923
579d8138
VS
8924if test $ac_cv_prog_gcc = yes; then
8925 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f09359cf 8926echo "configure:8927: checking whether ${CC-cc} needs -traditional" >&5
579d8138
VS
8927if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8928 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8929else
8930 ac_pattern="Autoconf.*'x'"
579d8138 8931 cat > conftest.$ac_ext <<EOF
f09359cf 8932#line 8933 "configure"
10f2d63a
VZ
8933#include "confdefs.h"
8934#include <sgtty.h>
8935Autoconf TIOCGETP
579d8138 8936EOF
10f2d63a
VZ
8937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8938 egrep "$ac_pattern" >/dev/null 2>&1; then
579d8138 8939 rm -rf conftest*
10f2d63a
VZ
8940 ac_cv_prog_gcc_traditional=yes
8941else
579d8138 8942 rm -rf conftest*
10f2d63a
VZ
8943 ac_cv_prog_gcc_traditional=no
8944fi
8945rm -f conftest*
8946
579d8138 8947
10f2d63a 8948 if test $ac_cv_prog_gcc_traditional = no; then
579d8138 8949 cat > conftest.$ac_ext <<EOF
f09359cf 8950#line 8951 "configure"
10f2d63a
VZ
8951#include "confdefs.h"
8952#include <termio.h>
8953Autoconf TCGETA
579d8138 8954EOF
10f2d63a
VZ
8955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8956 egrep "$ac_pattern" >/dev/null 2>&1; then
579d8138 8957 rm -rf conftest*
10f2d63a
VZ
8958 ac_cv_prog_gcc_traditional=yes
8959fi
8960rm -f conftest*
8961
8962 fi
8963fi
579d8138
VS
8964
8965echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8966 if test $ac_cv_prog_gcc_traditional = yes; then
8967 CC="$CC -traditional"
8968 fi
8969fi
8970
579d8138
VS
8971
8972
8973ac_ext=C
8974# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8975ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 8976ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 8977ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
8978cross_compiling=$ac_cv_prog_cxx_cross
8979
698dcdb6 8980
ec603395 8981CXXFLAGS=${CXXFLAGS:=}
f09359cf 8982for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
579d8138
VS
8983do
8984# Extract the first word of "$ac_prog", so it can be a program name with args.
8985set dummy $ac_prog; ac_word=$2
8986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 8987echo "configure:8988: checking for $ac_word" >&5
579d8138
VS
8988if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8990else
8991 if test -n "$CXX"; then
8992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8993else
f09359cf
VS
8994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8995 ac_dummy="$PATH"
8996 for ac_dir in $ac_dummy; do
579d8138
VS
8997 test -z "$ac_dir" && ac_dir=.
8998 if test -f $ac_dir/$ac_word; then
8999 ac_cv_prog_CXX="$ac_prog"
9000 break
9001 fi
9002 done
9003 IFS="$ac_save_ifs"
10f2d63a
VZ
9004fi
9005fi
579d8138 9006CXX="$ac_cv_prog_CXX"
10f2d63a 9007if test -n "$CXX"; then
579d8138 9008 echo "$ac_t""$CXX" 1>&6
10f2d63a 9009else
579d8138 9010 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9011fi
9012
579d8138 9013test -n "$CXX" && break
10f2d63a 9014done
579d8138 9015test -n "$CXX" || CXX="gcc"
703e0a69 9016
698dcdb6 9017
579d8138 9018echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f09359cf 9019echo "configure:9020: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
579d8138
VS
9020
9021ac_ext=C
9022# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9023ac_cpp='$CXXCPP $CPPFLAGS'
9024ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 9025ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
9026cross_compiling=$ac_cv_prog_cxx_cross
9027
f09359cf
VS
9028cat > conftest.$ac_ext << EOF
9029
9030#line 9031 "configure"
10f2d63a 9031#include "confdefs.h"
f09359cf
VS
9032
9033int main(){return(0);}
579d8138 9034EOF
f09359cf 9035if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
9036 ac_cv_prog_cxx_works=yes
9037 # If we can't run a trivial program, we are probably using a cross compiler.
9038 if (./conftest; exit) 2>/dev/null; then
9039 ac_cv_prog_cxx_cross=no
9040 else
9041 ac_cv_prog_cxx_cross=yes
9042 fi
9043else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 ac_cv_prog_cxx_works=no
9047fi
9048rm -fr conftest*
f09359cf
VS
9049ac_ext=C
9050# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9051ac_cpp='$CXXCPP $CPPFLAGS'
9052ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9053ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9054cross_compiling=$ac_cv_prog_cxx_cross
579d8138
VS
9055
9056echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9057if test $ac_cv_prog_cxx_works = no; then
9058 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9059fi
9060echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f09359cf 9061echo "configure:9062: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
579d8138
VS
9062echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9063cross_compiling=$ac_cv_prog_cxx_cross
9064
9065echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f09359cf 9066echo "configure:9067: checking whether we are using GNU C++" >&5
579d8138
VS
9067if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9069else
9070 cat > conftest.C <<EOF
9071#ifdef __GNUC__
9072 yes;
10f2d63a 9073#endif
579d8138 9074EOF
f09359cf 9075if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
579d8138
VS
9076 ac_cv_prog_gxx=yes
9077else
9078 ac_cv_prog_gxx=no
9079fi
9080fi
10f2d63a 9081
579d8138 9082echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9083
579d8138
VS
9084if test $ac_cv_prog_gxx = yes; then
9085 GXX=yes
f09359cf
VS
9086else
9087 GXX=
9088fi
9089
9090ac_test_CXXFLAGS="${CXXFLAGS+set}"
9091ac_save_CXXFLAGS="$CXXFLAGS"
9092CXXFLAGS=
9093echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9094echo "configure:9095: checking whether ${CXX-g++} accepts -g" >&5
579d8138
VS
9095if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097else
9098 echo 'void f(){}' > conftest.cc
9099if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9100 ac_cv_prog_cxx_g=yes
9101else
579d8138 9102 ac_cv_prog_cxx_g=no
10f2d63a 9103fi
579d8138
VS
9104rm -f conftest*
9105
10f2d63a 9106fi
579d8138
VS
9107
9108echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf
VS
9109if test "$ac_test_CXXFLAGS" = set; then
9110 CXXFLAGS="$ac_save_CXXFLAGS"
9111elif test $ac_cv_prog_cxx_g = yes; then
9112 if test "$GXX" = yes; then
10f2d63a
VZ
9113 CXXFLAGS="-g -O2"
9114 else
f09359cf 9115 CXXFLAGS="-g"
10f2d63a 9116 fi
5c0a20c3 9117else
f09359cf
VS
9118 if test "$GXX" = yes; then
9119 CXXFLAGS="-O2"
9120 else
9121 CXXFLAGS=
9122 fi
10f2d63a
VZ
9123fi
9124
9125
10f2d63a 9126ac_ext=c
579d8138 9127# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9128ac_cpp='$CPP $CPPFLAGS'
579d8138 9129ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 9130ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
9131cross_compiling=$ac_cv_prog_cc_cross
9132
9133
9134# Extract the first word of "ranlib", so it can be a program name with args.
9135set dummy ranlib; ac_word=$2
9136echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 9137echo "configure:9138: checking for $ac_word" >&5
579d8138
VS
9138if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9140else
9141 if test -n "$RANLIB"; then
9142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9143else
f09359cf
VS
9144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9145 ac_dummy="$PATH"
9146 for ac_dir in $ac_dummy; do
579d8138
VS
9147 test -z "$ac_dir" && ac_dir=.
9148 if test -f $ac_dir/$ac_word; then
9149 ac_cv_prog_RANLIB="ranlib"
9150 break
9151 fi
9152 done
9153 IFS="$ac_save_ifs"
9154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9155fi
9156fi
579d8138 9157RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9158if test -n "$RANLIB"; then
579d8138 9159 echo "$ac_t""$RANLIB" 1>&6
328a083c 9160else
579d8138 9161 echo "$ac_t""no" 1>&6
328a083c
RR
9162fi
9163
10f2d63a
VZ
9164
9165# Extract the first word of "ar", so it can be a program name with args.
9166set dummy ar; ac_word=$2
579d8138 9167echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 9168echo "configure:9169: checking for $ac_word" >&5
579d8138
VS
9169if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9171else
9172 if test -n "$AR"; then
9173 ac_cv_prog_AR="$AR" # Let the user override the test.
9174else
f09359cf
VS
9175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9176 ac_dummy="$PATH"
9177 for ac_dir in $ac_dummy; do
579d8138
VS
9178 test -z "$ac_dir" && ac_dir=.
9179 if test -f $ac_dir/$ac_word; then
9180 ac_cv_prog_AR="ar"
9181 break
9182 fi
9183 done
9184 IFS="$ac_save_ifs"
10f2d63a
VZ
9185 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9186fi
9187fi
579d8138 9188AR="$ac_cv_prog_AR"
10f2d63a 9189if test -n "$AR"; then
579d8138 9190 echo "$ac_t""$AR" 1>&6
10f2d63a 9191else
579d8138 9192 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9193fi
9194
579d8138 9195
6054113a 9196# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9197# so one script is as good as another. But avoid the broken or
9198# incompatible versions:
9199# SysV /etc/install, /usr/sbin/install
9200# SunOS /usr/etc/install
9201# IRIX /sbin/install
9202# AIX /bin/install
f09359cf 9203# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9204# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9205# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9206# ./install, which can be erroneously created by make from ./install.sh.
579d8138 9207echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f09359cf 9208echo "configure:9209: checking for a BSD compatible install" >&5
10f2d63a 9209if test -z "$INSTALL"; then
579d8138
VS
9210if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9212else
f09359cf 9213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9214 for ac_dir in $PATH; do
9215 # Account for people who put trailing slashes in PATH elements.
579d8138
VS
9216 case "$ac_dir/" in
9217 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9218 *)
9219 # OSF1 and SCO ODT 3.0 have their own names for install.
f09359cf
VS
9220 # Don't use installbsd from OSF since it installs stuff as root
9221 # by default.
9222 for ac_prog in ginstall scoinst install; do
579d8138 9223 if test -f $ac_dir/$ac_prog; then
10f2d63a 9224 if test $ac_prog = install &&
579d8138 9225 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9226 # AIX install. It has an incompatible calling convention.
9227 :
9228 else
9229 ac_cv_path_install="$ac_dir/$ac_prog -c"
9230 break 2
9231 fi
9232 fi
9233 done
9234 ;;
9235 esac
9236 done
579d8138 9237 IFS="$ac_save_IFS"
10f2d63a
VZ
9238
9239fi
9240 if test "${ac_cv_path_install+set}" = set; then
579d8138 9241 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9242 else
9243 # As a last resort, use the slow shell script. We don't cache a
9244 # path for INSTALL within a source directory, because that will
9245 # break other packages using the cache if that directory is
9246 # removed, or if the path is relative.
579d8138 9247 INSTALL="$ac_install_sh"
10f2d63a
VZ
9248 fi
9249fi
579d8138 9250echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9251
9252# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9253# It thinks the first close brace ends the variable substitution.
9254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9255
f09359cf
VS
9256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9257
10f2d63a
VZ
9258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9259
579d8138 9260
1d1b75ac
VZ
9261case ${INSTALL} in
9262 /* ) # Absolute
9263 ;;
3bd8fb5f 9264 *)
1d1b75ac
VZ
9265 INSTALL=`pwd`/${INSTALL} ;;
9266esac
9267
579d8138 9268
6054113a
GD
9269case "${host}" in
9270
b5853384 9271 powerpc-*-darwin* )
eb99ae0b
GD
9272 INSTALL_PROGRAM="cp -fp"
9273 INSTALL_DATA="cp -fp"
6054113a
GD
9274 ;;
9275 *)
9276 ;;
d6853540 9277esac
698dcdb6 9278
10f2d63a
VZ
9279# Extract the first word of "strip", so it can be a program name with args.
9280set dummy strip; ac_word=$2
579d8138 9281echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 9282echo "configure:9283: checking for $ac_word" >&5
579d8138
VS
9283if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9285else
9286 if test -n "$STRIP"; then
9287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9288else
f09359cf
VS
9289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9290 ac_dummy="$PATH"
9291 for ac_dir in $ac_dummy; do
579d8138
VS
9292 test -z "$ac_dir" && ac_dir=.
9293 if test -f $ac_dir/$ac_word; then
9294 ac_cv_prog_STRIP="strip"
9295 break
9296 fi
9297 done
9298 IFS="$ac_save_ifs"
10f2d63a
VZ
9299 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9300fi
9301fi
579d8138 9302STRIP="$ac_cv_prog_STRIP"
10f2d63a 9303if test -n "$STRIP"; then
579d8138 9304 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9305else
579d8138 9306 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9307fi
9308
328a083c 9309
579d8138 9310echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
f09359cf 9311echo "configure:9312: checking if make is GNU make" >&5
579d8138
VS
9312if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9313 echo $ac_n "(cached) $ac_c" 1>&6
9314else
9315
414eab6d 9316 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9317 egrep -s GNU > /dev/null); then
414eab6d
VZ
9318 wx_cv_prog_makeisgnu="yes"
9319 else
9320 wx_cv_prog_makeisgnu="no"
9321 fi
9322
9323fi
579d8138
VS
9324
9325echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9326
9327if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9328 IF_GNU_MAKE=""
9329else
9330 IF_GNU_MAKE="#"
9331fi
9332
579d8138
VS
9333
9334
414eab6d 9335if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
579d8138 9336echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
f09359cf 9337echo "configure:9338: checking if make supports VPATH" >&5
579d8138
VS
9338if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9340else
579d8138 9341
10f2d63a
VZ
9342cat - << EOF > confMake
9343check : file
9344 cp \$? \$@
9345 cp \$? final_file
9346EOF
9347
9348if test ! -d sub ; then
9349 mkdir sub
9350fi
9351echo dummy > sub/file
f6bcfd97 9352${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9353RESULT=$?
9354rm -f sub/file check final_file confMake
9355rmdir sub
9356if test "$RESULT" = 0; then
04e7a216 9357 wx_cv_prog_makevpath="yes"
10f2d63a 9358else
04e7a216
VZ
9359 wx_cv_prog_makevpath="no"
9360fi
9361
9362fi
579d8138
VS
9363
9364echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9365
9366if test "x$wx_cv_prog_makevpath" != "xyes"; then
579d8138 9367{ echo "configure: error:
1e487827
VS
9368You need a make-utility that is able to use the variable
9369VPATH correctly.
9370If your version of make does not support VPATH correctly,
9371please install GNU-make (possibly as gmake), and start
9372configure with the following command:
9373export MAKE=gmake; ./configure for sh-type shells
9374setenv MAKE gmake; ./configure for csh-type shells
9375Also please do remember to use gmake in this case every time
9376you are trying to compile.
579d8138
VS
9377" 1>&2; exit 1; }
9378fi fi
10f2d63a
VZ
9379for ac_prog in 'bison -y' byacc
9380do
579d8138 9381# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9382set dummy $ac_prog; ac_word=$2
579d8138 9383echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 9384echo "configure:9385: checking for $ac_word" >&5
579d8138
VS
9385if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9387else
9388 if test -n "$YACC"; then
9389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9390else
f09359cf
VS
9391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9392 ac_dummy="$PATH"
9393 for ac_dir in $ac_dummy; do
579d8138
VS
9394 test -z "$ac_dir" && ac_dir=.
9395 if test -f $ac_dir/$ac_word; then
9396 ac_cv_prog_YACC="$ac_prog"
9397 break
9398 fi
9399 done
9400 IFS="$ac_save_ifs"
10f2d63a
VZ
9401fi
9402fi
579d8138 9403YACC="$ac_cv_prog_YACC"
10f2d63a 9404if test -n "$YACC"; then
579d8138 9405 echo "$ac_t""$YACC" 1>&6
10f2d63a 9406else
579d8138 9407 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9408fi
9409
579d8138 9410test -n "$YACC" && break
10f2d63a
VZ
9411done
9412test -n "$YACC" || YACC="yacc"
9413
579d8138
VS
9414
9415# Extract the first word of "flex", so it can be a program name with args.
9416set dummy flex; ac_word=$2
9417echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f09359cf 9418echo "configure:9419: checking for $ac_word" >&5
579d8138
VS
9419if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9421else
9422 if test -n "$LEX"; then
9423 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9424else
f09359cf
VS
9425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9426 ac_dummy="$PATH"
9427 for ac_dir in $ac_dummy; do
579d8138
VS
9428 test -z "$ac_dir" && ac_dir=.
9429 if test -f $ac_dir/$ac_word; then
9430 ac_cv_prog_LEX="flex"
9431 break
9432 fi
9433 done
9434 IFS="$ac_save_ifs"
9435 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9436fi
9437fi
579d8138 9438LEX="$ac_cv_prog_LEX"
10f2d63a 9439if test -n "$LEX"; then
579d8138 9440 echo "$ac_t""$LEX" 1>&6
10f2d63a 9441else
579d8138 9442 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9443fi
9444
9445if test -z "$LEXLIB"
9446then
579d8138
VS
9447 case "$LEX" in
9448 flex*) ac_lib=fl ;;
9449 *) ac_lib=l ;;
9450 esac
9451 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f09359cf 9452echo "configure:9453: checking for yywrap in -l$ac_lib" >&5
579d8138
VS
9453ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9456else
9457 ac_save_LIBS="$LIBS"
9458LIBS="-l$ac_lib $LIBS"
9459cat > conftest.$ac_ext <<EOF
f09359cf 9460#line 9461 "configure"
10f2d63a
VZ
9461#include "confdefs.h"
9462/* Override any gcc2 internal prototype to avoid an error. */
9463/* We use char because int might match the return type of a gcc2
579d8138
VS
9464 builtin and then its argument prototype would still apply. */
9465char yywrap();
10f2d63a 9466
579d8138
VS
9467int main() {
9468yywrap()
9469; return 0; }
9470EOF
f09359cf 9471if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
9472 rm -rf conftest*
9473 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9474else
579d8138
VS
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -rf conftest*
9478 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9479fi
579d8138
VS
9480rm -f conftest*
9481LIBS="$ac_save_LIBS"
9482
10f2d63a 9483fi
579d8138
VS
9484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9485 echo "$ac_t""yes" 1>&6
9486 LEXLIB="-l$ac_lib"
9487else
9488 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9489fi
9490
9491fi
9492
9493
579d8138 9494echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f09359cf 9495echo "configure:9496: checking whether ln -s works" >&5
579d8138
VS
9496if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9498else
579d8138
VS
9499 rm -f conftestdata
9500if ln -s X conftestdata 2>/dev/null
9501then
9502 rm -f conftestdata
9503 ac_cv_prog_LN_S="ln -s"
10f2d63a 9504else
579d8138 9505 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9506fi
9507fi
579d8138
VS
9508LN_S="$ac_cv_prog_LN_S"
9509if test "$ac_cv_prog_LN_S" = "ln -s"; then
9510 echo "$ac_t""yes" 1>&6
10f2d63a 9511else
579d8138 9512 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9513fi
9514
9515
9516
21d1c967 9517if test "$wxUSE_MAC" != 1; then
579d8138 9518 for ac_hdr in strings.h
21d1c967 9519do
579d8138
VS
9520ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9521echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9522echo "configure:9523: checking for $ac_hdr" >&5
579d8138
VS
9523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525else
9526 cat > conftest.$ac_ext <<EOF
f09359cf 9527#line 9528 "configure"
19bc6aad 9528#include "confdefs.h"
579d8138
VS
9529#include <$ac_hdr>
9530EOF
9531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9532{ (eval echo configure:9533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9534if test -z "$ac_err"; then
9535 rm -rf conftest*
9536 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9537else
579d8138
VS
9538 echo "$ac_err" >&5
9539 echo "configure: failed program was:" >&5
19bc6aad 9540 cat conftest.$ac_ext >&5
579d8138
VS
9541 rm -rf conftest*
9542 eval "ac_cv_header_$ac_safe=no"
19bc6aad 9543fi
579d8138 9544rm -f conftest*
19bc6aad 9545fi
579d8138
VS
9546if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9547 echo "$ac_t""yes" 1>&6
9548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9549 cat >> confdefs.h <<EOF
9550#define $ac_tr_hdr 1
19bc6aad 9551EOF
579d8138
VS
9552
9553else
9554 echo "$ac_t""no" 1>&6
21d1c967
GD
9555fi
9556done
19bc6aad 9557
19bc6aad
VZ
9558fi
9559
579d8138 9560for ac_hdr in stdlib.h
21d1c967 9561do
579d8138
VS
9562ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9563echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9564echo "configure:9565: checking for $ac_hdr" >&5
579d8138
VS
9565if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9567else
9568 cat > conftest.$ac_ext <<EOF
f09359cf 9569#line 9570 "configure"
18dbb1f6 9570#include "confdefs.h"
579d8138
VS
9571#include <$ac_hdr>
9572EOF
9573ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9574{ (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9575ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9576if test -z "$ac_err"; then
9577 rm -rf conftest*
9578 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9579else
579d8138
VS
9580 echo "$ac_err" >&5
9581 echo "configure: failed program was:" >&5
18dbb1f6 9582 cat conftest.$ac_ext >&5
579d8138
VS
9583 rm -rf conftest*
9584 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9585fi
579d8138 9586rm -f conftest*
90dd450c 9587fi
579d8138
VS
9588if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9591 cat >> confdefs.h <<EOF
9592#define $ac_tr_hdr 1
90dd450c 9593EOF
579d8138
VS
9594
9595else
9596 echo "$ac_t""no" 1>&6
21d1c967
GD
9597fi
9598done
90dd450c 9599
579d8138 9600for ac_hdr in malloc.h
21d1c967 9601do
579d8138
VS
9602ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9604echo "configure:9605: checking for $ac_hdr" >&5
579d8138
VS
9605if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607else
9608 cat > conftest.$ac_ext <<EOF
f09359cf 9609#line 9610 "configure"
90dd450c 9610#include "confdefs.h"
579d8138
VS
9611#include <$ac_hdr>
9612EOF
9613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9614{ (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9616if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9619else
579d8138
VS
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
18dbb1f6 9622 cat conftest.$ac_ext >&5
579d8138
VS
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9625fi
579d8138 9626rm -f conftest*
18dbb1f6 9627fi
579d8138
VS
9628if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632#define $ac_tr_hdr 1
4f14bcd8 9633EOF
579d8138
VS
9634
9635else
9636 echo "$ac_t""no" 1>&6
21d1c967
GD
9637fi
9638done
dad6c0ea 9639
579d8138 9640for ac_hdr in unistd.h
21d1c967 9641do
579d8138
VS
9642ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9643echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9644echo "configure:9645: checking for $ac_hdr" >&5
579d8138
VS
9645if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647else
9648 cat > conftest.$ac_ext <<EOF
f09359cf 9649#line 9650 "configure"
3a922bb4 9650#include "confdefs.h"
579d8138
VS
9651#include <$ac_hdr>
9652EOF
9653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9654{ (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9655ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9656if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=yes"
328a083c 9659else
579d8138
VS
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
3a922bb4 9662 cat conftest.$ac_ext >&5
579d8138
VS
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9665fi
579d8138 9666rm -f conftest*
90dd450c 9667fi
579d8138
VS
9668if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9671 cat >> confdefs.h <<EOF
9672#define $ac_tr_hdr 1
90dd450c 9673EOF
579d8138
VS
9674
9675else
9676 echo "$ac_t""no" 1>&6
21d1c967
GD
9677fi
9678done
90dd450c 9679
579d8138 9680for ac_hdr in wchar.h
21d1c967 9681do
579d8138
VS
9682ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9683echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9684echo "configure:9685: checking for $ac_hdr" >&5
579d8138
VS
9685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687else
9688 cat > conftest.$ac_ext <<EOF
f09359cf 9689#line 9690 "configure"
4f14bcd8 9690#include "confdefs.h"
579d8138
VS
9691#include <$ac_hdr>
9692EOF
9693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9694{ (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9695ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9696if test -z "$ac_err"; then
9697 rm -rf conftest*
9698 eval "ac_cv_header_$ac_safe=yes"
328a083c 9699else
579d8138
VS
9700 echo "$ac_err" >&5
9701 echo "configure: failed program was:" >&5
4f14bcd8 9702 cat conftest.$ac_ext >&5
579d8138
VS
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9705fi
579d8138 9706rm -f conftest*
4f14bcd8 9707fi
579d8138
VS
9708if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9711 cat >> confdefs.h <<EOF
9712#define $ac_tr_hdr 1
4f14bcd8 9713EOF
579d8138
VS
9714
9715else
9716 echo "$ac_t""no" 1>&6
21d1c967
GD
9717fi
9718done
4f14bcd8 9719
328a083c 9720
579d8138
VS
9721if test "$ac_cv_header_wchar_h" != "yes"; then
9722 for ac_hdr in wcstr.h
21d1c967 9723do
579d8138
VS
9724ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9726echo "configure:9727: checking for $ac_hdr" >&5
579d8138
VS
9727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9729else
9730 cat > conftest.$ac_ext <<EOF
f09359cf 9731#line 9732 "configure"
d4158b5d 9732#include "confdefs.h"
579d8138
VS
9733#include <$ac_hdr>
9734EOF
9735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9736{ (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9738if test -z "$ac_err"; then
9739 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9741else
579d8138
VS
9742 echo "$ac_err" >&5
9743 echo "configure: failed program was:" >&5
d4158b5d 9744 cat conftest.$ac_ext >&5
579d8138
VS
9745 rm -rf conftest*
9746 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9747fi
579d8138 9748rm -f conftest*
21d1c967 9749fi
579d8138
VS
9750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754#define $ac_tr_hdr 1
21d1c967 9755EOF
579d8138
VS
9756
9757else
9758 echo "$ac_t""no" 1>&6
d4158b5d 9759fi
21d1c967 9760done
f6bcfd97 9761
90dd450c 9762fi
90dd450c 9763
579d8138
VS
9764
9765for ac_hdr in fnmatch.h
21d1c967 9766do
579d8138
VS
9767ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9768echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9769echo "configure:9770: checking for $ac_hdr" >&5
579d8138
VS
9770if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9772else
9773 cat > conftest.$ac_ext <<EOF
f09359cf 9774#line 9775 "configure"
90dd450c 9775#include "confdefs.h"
579d8138
VS
9776#include <$ac_hdr>
9777EOF
9778ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9779{ (eval echo configure:9780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9780ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9781if test -z "$ac_err"; then
9782 rm -rf conftest*
9783 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9784else
579d8138
VS
9785 echo "$ac_err" >&5
9786 echo "configure: failed program was:" >&5
3a922bb4 9787 cat conftest.$ac_ext >&5
579d8138
VS
9788 rm -rf conftest*
9789 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9790fi
579d8138 9791rm -f conftest*
4f14bcd8 9792fi
579d8138
VS
9793if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
9795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9796 cat >> confdefs.h <<EOF
9797#define $ac_tr_hdr 1
90dd450c 9798EOF
579d8138
VS
9799
9800else
9801 echo "$ac_t""no" 1>&6
21d1c967
GD
9802fi
9803done
90dd450c 9804
328a083c 9805
579d8138
VS
9806if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9807 for ac_func in fnmatch
21d1c967 9808do
579d8138 9809echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f09359cf 9810echo "configure:9811: checking for $ac_func" >&5
579d8138
VS
9811if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813else
9814 cat > conftest.$ac_ext <<EOF
f09359cf 9815#line 9816 "configure"
90dd450c 9816#include "confdefs.h"
21d1c967 9817/* System header to define __stub macros and hopefully few prototypes,
579d8138 9818 which can conflict with char $ac_func(); below. */
21d1c967
GD
9819#include <assert.h>
9820/* Override any gcc2 internal prototype to avoid an error. */
9821/* We use char because int might match the return type of a gcc2
579d8138
VS
9822 builtin and then its argument prototype would still apply. */
9823char $ac_func();
9824
9825int main() {
21d1c967
GD
9826
9827/* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831choke me
9832#else
579d8138 9833$ac_func();
21d1c967
GD
9834#endif
9835
579d8138 9836; return 0; }
90dd450c 9837EOF
f09359cf 9838if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
9839 rm -rf conftest*
9840 eval "ac_cv_func_$ac_func=yes"
9841else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 eval "ac_cv_func_$ac_func=no"
9846fi
9847rm -f conftest*
9848fi
32832908 9849
579d8138
VS
9850if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9851 echo "$ac_t""yes" 1>&6
9852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9853 cat >> confdefs.h <<EOF
9854#define $ac_tr_func 1
9855EOF
9856
9857else
9858 echo "$ac_t""no" 1>&6
21d1c967
GD
9859fi
9860done
90dd450c 9861
21d1c967 9862fi
90dd450c 9863
579d8138 9864for ac_hdr in langinfo.h
21d1c967 9865do
579d8138
VS
9866ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9868echo "configure:9869: checking for $ac_hdr" >&5
579d8138
VS
9869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9871else
9872 cat > conftest.$ac_ext <<EOF
f09359cf 9873#line 9874 "configure"
90dd450c 9874#include "confdefs.h"
579d8138
VS
9875#include <$ac_hdr>
9876EOF
9877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9878{ (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9879ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9880if test -z "$ac_err"; then
9881 rm -rf conftest*
9882 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9883else
579d8138
VS
9884 echo "$ac_err" >&5
9885 echo "configure: failed program was:" >&5
90dd450c 9886 cat conftest.$ac_ext >&5
579d8138
VS
9887 rm -rf conftest*
9888 eval "ac_cv_header_$ac_safe=no"
90dd450c 9889fi
579d8138 9890rm -f conftest*
4f14bcd8 9891fi
579d8138
VS
9892if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 cat >> confdefs.h <<EOF
9896#define $ac_tr_hdr 1
90dd450c 9897EOF
579d8138
VS
9898
9899else
9900 echo "$ac_t""no" 1>&6
21d1c967
GD
9901fi
9902done
3a922bb4 9903
579d8138 9904
21d1c967
GD
9905if test "$wxUSE_GUI" = "yes"; then
9906 if test "$wxUSE_UNIX" = "yes"; then
579d8138 9907 for ac_hdr in X11/XKBlib.h
21d1c967 9908do
579d8138
VS
9909ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9910echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f09359cf 9911echo "configure:9912: checking for $ac_hdr" >&5
579d8138
VS
9912if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9914else
9915 cat > conftest.$ac_ext <<EOF
f09359cf 9916#line 9917 "configure"
90dd450c 9917#include "confdefs.h"
579d8138
VS
9918#include <$ac_hdr>
9919EOF
9920ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f09359cf
VS
9921{ (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9922ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
9923if test -z "$ac_err"; then
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=yes"
328a083c 9926else
579d8138
VS
9927 echo "$ac_err" >&5
9928 echo "configure: failed program was:" >&5
90dd450c 9929 cat conftest.$ac_ext >&5
579d8138
VS
9930 rm -rf conftest*
9931 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9932fi
579d8138 9933rm -f conftest*
90dd450c 9934fi
579d8138
VS
9935if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9938 cat >> confdefs.h <<EOF
9939#define $ac_tr_hdr 1
4f14bcd8 9940EOF
579d8138
VS
9941
9942else
9943 echo "$ac_t""no" 1>&6
21d1c967
GD
9944fi
9945done
10f2d63a 9946
21d1c967 9947 fi
90dd450c 9948fi
81809c07 9949
579d8138
VS
9950
9951echo $ac_n "checking for working const""... $ac_c" 1>&6
f09359cf 9952echo "configure:9953: checking for working const" >&5
579d8138
VS
9953if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 9955else
579d8138 9956 cat > conftest.$ac_ext <<EOF
f09359cf 9957#line 9958 "configure"
4f14bcd8 9958#include "confdefs.h"
579d8138
VS
9959
9960int main() {
9961
9962/* Ultrix mips cc rejects this. */
9963typedef int charset[2]; const charset x;
9964/* SunOS 4.1.1 cc rejects this. */
9965char const *const *ccp;
9966char **p;
9967/* NEC SVR4.0.2 mips cc rejects this. */
9968struct point {int x, y;};
9969static struct point const zero = {0,0};
9970/* AIX XL C 1.02.0.0 rejects this.
9971 It does not let you subtract one const X* pointer from another in an arm
9972 of an if-expression whose if-part is not a constant expression */
9973const char *g = "string";
9974ccp = &g + (g ? g-g : 0);
9975/* HPUX 7.0 cc rejects these. */
9976++ccp;
9977p = (char**) ccp;
9978ccp = (char const *const *) p;
9979{ /* SCO 3.2v4 cc rejects this. */
9980 char *t;
9981 char const *s = 0 ? (char *) 0 : (char const *) 0;
9982
9983 *t++ = 0;
21d1c967 9984}
579d8138
VS
9985{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9986 int x[] = {25, 17};
9987 const int *foo = &x[0];
9988 ++foo;
21d1c967 9989}
579d8138
VS
9990{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9991 typedef const int *iptr;
9992 iptr p = 0;
9993 ++p;
21d1c967 9994}
579d8138
VS
9995{ /* AIX XL C 1.02.0.0 rejects this saying
9996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9997 struct s { int j; const int *ap[3]; };
9998 struct s *b; b->j = 5;
9999}
10000{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10001 const int foo = 10;
328a083c 10002}
579d8138
VS
10003
10004; return 0; }
10005EOF
f09359cf 10006if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10007 rm -rf conftest*
21d1c967 10008 ac_cv_c_const=yes
6f72b082 10009else
579d8138
VS
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013 ac_cv_c_const=no
4f14bcd8 10014fi
579d8138 10015rm -f conftest*
698dcdb6 10016fi
328a083c 10017
579d8138
VS
10018echo "$ac_t""$ac_cv_c_const" 1>&6
10019if test $ac_cv_c_const = no; then
10020 cat >> confdefs.h <<\EOF
10021#define const
90dd450c
VZ
10022EOF
10023
21d1c967 10024fi
90dd450c 10025
579d8138 10026echo $ac_n "checking for inline""... $ac_c" 1>&6
f09359cf 10027echo "configure:10028: checking for inline" >&5
579d8138
VS
10028if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10030else
21d1c967
GD
10031 ac_cv_c_inline=no
10032for ac_kw in inline __inline__ __inline; do
579d8138 10033 cat > conftest.$ac_ext <<EOF
f09359cf 10034#line 10035 "configure"
4f14bcd8 10035#include "confdefs.h"
90dd450c 10036
579d8138
VS
10037int main() {
10038} $ac_kw foo() {
10039; return 0; }
10040EOF
f09359cf 10041if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10042 rm -rf conftest*
21d1c967 10043 ac_cv_c_inline=$ac_kw; break
6f72b082 10044else
579d8138
VS
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
698dcdb6 10047fi
579d8138 10048rm -f conftest*
21d1c967 10049done
4f14bcd8 10050
21d1c967 10051fi
579d8138
VS
10052
10053echo "$ac_t""$ac_cv_c_inline" 1>&6
10054case "$ac_cv_c_inline" in
21d1c967 10055 inline | yes) ;;
579d8138
VS
10056 no) cat >> confdefs.h <<\EOF
10057#define inline
90dd450c 10058EOF
21d1c967 10059 ;;
579d8138 10060 *) cat >> confdefs.h <<EOF
21d1c967 10061#define inline $ac_cv_c_inline
4f14bcd8 10062EOF
21d1c967
GD
10063 ;;
10064esac
4f14bcd8 10065
328a083c 10066
579d8138 10067echo $ac_n "checking size of char""... $ac_c" 1>&6
f09359cf 10068echo "configure:10069: checking size of char" >&5
579d8138
VS
10069if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 10071else
579d8138
VS
10072 if test "$cross_compiling" = yes; then
10073 ac_cv_sizeof_char=1
328a083c 10074else
579d8138 10075 cat > conftest.$ac_ext <<EOF
f09359cf 10076#line 10077 "configure"
328a083c 10077#include "confdefs.h"
579d8138 10078#include <stdio.h>
b13cd66e 10079#include <sys/types.h>
579d8138
VS
10080main()
10081{
10082 FILE *f=fopen("conftestval", "w");
10083 if (!f) exit(1);
10084 fprintf(f, "%d\n", sizeof(char));
10085 exit(0);
10086}
10087EOF
b13cd66e 10088if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10089then
10090 ac_cv_sizeof_char=`cat conftestval`
328a083c 10091else
579d8138
VS
10092 echo "configure: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10094 rm -fr conftest*
10095 ac_cv_sizeof_char=0
10096fi
10097rm -fr conftest*
328a083c 10098fi
328a083c
RR
10099
10100fi
579d8138
VS
10101echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10102cat >> confdefs.h <<EOF
10103#define SIZEOF_CHAR $ac_cv_sizeof_char
10104EOF
328a083c 10105
328a083c 10106
579d8138 10107echo $ac_n "checking size of short""... $ac_c" 1>&6
b13cd66e 10108echo "configure:10109: checking size of short" >&5
579d8138
VS
10109if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 10111else
21d1c967 10112 if test "$cross_compiling" = yes; then
579d8138 10113 ac_cv_sizeof_short=2
21d1c967 10114else
579d8138 10115 cat > conftest.$ac_ext <<EOF
b13cd66e 10116#line 10117 "configure"
21d1c967 10117#include "confdefs.h"
579d8138 10118#include <stdio.h>
b13cd66e 10119#include <sys/types.h>
579d8138 10120main()
21d1c967 10121{
579d8138
VS
10122 FILE *f=fopen("conftestval", "w");
10123 if (!f) exit(1);
10124 fprintf(f, "%d\n", sizeof(short));
10125 exit(0);
21d1c967 10126}
579d8138 10127EOF
b13cd66e 10128if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10129then
10130 ac_cv_sizeof_short=`cat conftestval`
21d1c967 10131else
579d8138
VS
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10134 rm -fr conftest*
10135 ac_cv_sizeof_short=0
21d1c967 10136fi
579d8138 10137rm -fr conftest*
21d1c967 10138fi
4f14bcd8 10139
4f14bcd8 10140fi
579d8138
VS
10141echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10142cat >> confdefs.h <<EOF
10143#define SIZEOF_SHORT $ac_cv_sizeof_short
21d1c967 10144EOF
4f14bcd8
GD
10145
10146
579d8138 10147echo $ac_n "checking size of void *""... $ac_c" 1>&6
b13cd66e 10148echo "configure:10149: checking size of void *" >&5
579d8138
VS
10149if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 10151else
328a083c 10152 if test "$cross_compiling" = yes; then
579d8138 10153 ac_cv_sizeof_void_p=4
328a083c 10154else
579d8138 10155 cat > conftest.$ac_ext <<EOF
b13cd66e 10156#line 10157 "configure"
328a083c 10157#include "confdefs.h"
579d8138 10158#include <stdio.h>
b13cd66e 10159#include <sys/types.h>
579d8138 10160main()
21d1c967 10161{
579d8138
VS
10162 FILE *f=fopen("conftestval", "w");
10163 if (!f) exit(1);
10164 fprintf(f, "%d\n", sizeof(void *));
10165 exit(0);
21d1c967 10166}
4f14bcd8 10167EOF
b13cd66e 10168if { (eval echo configure:10169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10169then
10170 ac_cv_sizeof_void_p=`cat conftestval`
328a083c 10171else
579d8138
VS
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 rm -fr conftest*
10175 ac_cv_sizeof_void_p=0
4f14bcd8 10176fi
579d8138 10177rm -fr conftest*
328a083c 10178fi
4f14bcd8 10179
328a083c 10180fi
579d8138
VS
10181echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10182cat >> confdefs.h <<EOF
21d1c967 10183#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10184EOF
10185
579d8138
VS
10186
10187echo $ac_n "checking size of int""... $ac_c" 1>&6
b13cd66e 10188echo "configure:10189: checking size of int" >&5
579d8138
VS
10189if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 10191else
328a083c 10192 if test "$cross_compiling" = yes; then
579d8138 10193 ac_cv_sizeof_int=4
328a083c 10194else
579d8138 10195 cat > conftest.$ac_ext <<EOF
b13cd66e 10196#line 10197 "configure"
328a083c 10197#include "confdefs.h"
579d8138 10198#include <stdio.h>
b13cd66e 10199#include <sys/types.h>
579d8138 10200main()
328a083c 10201{
579d8138
VS
10202 FILE *f=fopen("conftestval", "w");
10203 if (!f) exit(1);
10204 fprintf(f, "%d\n", sizeof(int));
10205 exit(0);
328a083c 10206}
579d8138 10207EOF
b13cd66e 10208if { (eval echo configure:10209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10209then
10210 ac_cv_sizeof_int=`cat conftestval`
328a083c 10211else
579d8138
VS
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 rm -fr conftest*
328a083c 10215 ac_cv_sizeof_int=0
4f14bcd8 10216fi
579d8138 10217rm -fr conftest*
21d1c967 10218fi
579d8138
VS
10219
10220fi
10221echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10222cat >> confdefs.h <<EOF
21d1c967 10223#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10224EOF
10225
579d8138
VS
10226
10227echo $ac_n "checking size of long""... $ac_c" 1>&6
b13cd66e 10228echo "configure:10229: checking size of long" >&5
579d8138
VS
10229if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 10231else
328a083c 10232 if test "$cross_compiling" = yes; then
579d8138 10233 ac_cv_sizeof_long=4
328a083c 10234else
579d8138 10235 cat > conftest.$ac_ext <<EOF
b13cd66e 10236#line 10237 "configure"
328a083c 10237#include "confdefs.h"
579d8138 10238#include <stdio.h>
b13cd66e 10239#include <sys/types.h>
579d8138 10240main()
328a083c 10241{
579d8138
VS
10242 FILE *f=fopen("conftestval", "w");
10243 if (!f) exit(1);
10244 fprintf(f, "%d\n", sizeof(long));
10245 exit(0);
328a083c 10246}
579d8138 10247EOF
b13cd66e 10248if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10249then
10250 ac_cv_sizeof_long=`cat conftestval`
328a083c 10251else
579d8138
VS
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 rm -fr conftest*
328a083c 10255 ac_cv_sizeof_long=0
90dd450c 10256fi
579d8138
VS
10257rm -fr conftest*
10258fi
10259
21d1c967 10260fi
579d8138
VS
10261echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10262cat >> confdefs.h <<EOF
21d1c967 10263#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10264EOF
4f14bcd8 10265
579d8138
VS
10266
10267
21d1c967
GD
10268case "${host}" in
10269 arm-*-linux* )
579d8138 10270 echo $ac_n "checking size of long long""... $ac_c" 1>&6
b13cd66e 10271echo "configure:10272: checking size of long long" >&5
579d8138
VS
10272if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10274else
10275 if test "$cross_compiling" = yes; then
579d8138 10276 ac_cv_sizeof_long_long=8
21d1c967 10277else
579d8138 10278 cat > conftest.$ac_ext <<EOF
b13cd66e 10279#line 10280 "configure"
21d1c967 10280#include "confdefs.h"
579d8138 10281#include <stdio.h>
b13cd66e 10282#include <sys/types.h>
579d8138 10283main()
21d1c967 10284{
579d8138
VS
10285 FILE *f=fopen("conftestval", "w");
10286 if (!f) exit(1);
10287 fprintf(f, "%d\n", sizeof(long long));
10288 exit(0);
21d1c967 10289}
579d8138 10290EOF
b13cd66e 10291if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10292then
10293 ac_cv_sizeof_long_long=`cat conftestval`
328a083c 10294else
579d8138
VS
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10297 rm -fr conftest*
328a083c
RR
10298 ac_cv_sizeof_long_long=0
10299fi
579d8138
VS
10300rm -fr conftest*
10301fi
10302
328a083c 10303fi
579d8138
VS
10304echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10305cat >> confdefs.h <<EOF
21d1c967
GD
10306#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10307EOF
90dd450c 10308
579d8138 10309
21d1c967
GD
10310 ;;
10311 * )
579d8138 10312 echo $ac_n "checking size of long long""... $ac_c" 1>&6
b13cd66e 10313echo "configure:10314: checking size of long long" >&5
579d8138
VS
10314if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10315 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 10316else
328a083c 10317 if test "$cross_compiling" = yes; then
579d8138 10318 ac_cv_sizeof_long_long=0
328a083c 10319else
579d8138 10320 cat > conftest.$ac_ext <<EOF
b13cd66e 10321#line 10322 "configure"
328a083c 10322#include "confdefs.h"
579d8138 10323#include <stdio.h>
b13cd66e 10324#include <sys/types.h>
579d8138 10325main()
328a083c 10326{
579d8138
VS
10327 FILE *f=fopen("conftestval", "w");
10328 if (!f) exit(1);
10329 fprintf(f, "%d\n", sizeof(long long));
10330 exit(0);
328a083c 10331}
579d8138 10332EOF
b13cd66e 10333if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
10334then
10335 ac_cv_sizeof_long_long=`cat conftestval`
328a083c 10336else
579d8138
VS
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 rm -fr conftest*
328a083c 10340 ac_cv_sizeof_long_long=0
4f14bcd8 10341fi
579d8138
VS
10342rm -fr conftest*
10343fi
10344
90dd450c 10345fi
579d8138
VS
10346echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10347cat >> confdefs.h <<EOF
21d1c967 10348#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10349EOF
9e691f46 10350
579d8138 10351
21d1c967
GD
10352esac
10353
579d8138 10354echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
b13cd66e 10355echo "configure:10356: checking size of wchar_t" >&5
579d8138
VS
10356if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10358else
579d8138 10359
21d1c967
GD
10360 if test "$cross_compiling" = yes; then
10361 wx_cv_sizeof_wchar_t=4
579d8138 10362
6f72b082 10363else
579d8138 10364 cat > conftest.$ac_ext <<EOF
b13cd66e 10365#line 10366 "configure"
6f72b082 10366#include "confdefs.h"
21d1c967
GD
10367
10368 #ifdef HAVE_WCHAR_H
10369 # ifdef __CYGWIN__
10370 # include <stddef.h>
10371 # endif
10372 # include <wchar.h>
10373 #endif
10374 #ifdef HAVE_STDLIB_H
10375 # include <stdlib.h>
10376 #endif
10377 #include <stdio.h>
10378 int main()
10379 {
10380 FILE *f=fopen("conftestval", "w");
10381 if (!f) exit(1);
10382 fprintf(f, "%i", sizeof(wchar_t));
10383 exit(0);
10384 }
579d8138
VS
10385
10386EOF
b13cd66e 10387if { (eval echo configure:10388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138 10388then
21d1c967 10389 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10390else
579d8138
VS
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 rm -fr conftest*
10394 wx_cv_sizeof_wchar_t=0
6f72b082 10395fi
579d8138 10396rm -fr conftest*
6f72b082 10397fi
6f72b082 10398
579d8138 10399
3f345b47
VZ
10400fi
10401
579d8138
VS
10402echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10403
10404cat >> confdefs.h <<EOF
21d1c967
GD
10405#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10406EOF
90dd450c 10407
579d8138 10408
21d1c967
GD
10409# Check whether --enable-largefile or --disable-largefile was given.
10410if test "${enable_largefile+set}" = set; then
10411 enableval="$enable_largefile"
579d8138
VS
10412 :
10413fi
3f345b47 10414
21d1c967
GD
10415if test "$enable_largefile" != no; then
10416 wx_largefile=no
579d8138
VS
10417
10418 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
b13cd66e 10419echo "configure:10420: checking for _FILE_OFFSET_BITS value needed for large files" >&5
579d8138
VS
10420if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10422else
10423
10424 cat > conftest.$ac_ext <<EOF
b13cd66e 10425#line 10426 "configure"
90dd450c 10426#include "confdefs.h"
21d1c967
GD
10427#define _FILE_OFFSET_BITS 64
10428 #include <sys/types.h>
579d8138 10429int main() {
21d1c967
GD
10430typedef struct {
10431 unsigned int field: sizeof(off_t) == 8;
10432} wxlf;
10433
579d8138
VS
10434; return 0; }
10435EOF
b13cd66e 10436if { (eval echo configure:10437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10437 rm -rf conftest*
21d1c967 10438 ac_cv_sys_file_offset_bits=64
f6bcfd97 10439else
579d8138
VS
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 rm -rf conftest*
10443 ac_cv_sys_file_offset_bits=no
90dd450c 10444fi
579d8138
VS
10445rm -f conftest*
10446
10447
328a083c 10448fi
579d8138
VS
10449
10450echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10451
10452 if test "$ac_cv_sys_file_offset_bits" != no; then
10453 wx_largefile=yes
579d8138 10454 cat >> confdefs.h <<EOF
21d1c967
GD
10455#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10456EOF
10457
10458 fi
10459
10460 if test "x$wx_largefile" != "xyes"; then
579d8138
VS
10461
10462 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
b13cd66e 10463echo "configure:10464: checking for _LARGE_FILES value needed for large files" >&5
579d8138
VS
10464if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10465 echo $ac_n "(cached) $ac_c" 1>&6
10466else
10467
10468 cat > conftest.$ac_ext <<EOF
b13cd66e 10469#line 10470 "configure"
f6bcfd97 10470#include "confdefs.h"
21d1c967
GD
10471#define _LARGE_FILES 1
10472 #include <sys/types.h>
579d8138 10473int main() {
21d1c967
GD
10474typedef struct {
10475 unsigned int field: sizeof(off_t) == 8;
10476} wxlf;
10477
579d8138
VS
10478; return 0; }
10479EOF
b13cd66e 10480if { (eval echo configure:10481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10481 rm -rf conftest*
21d1c967 10482 ac_cv_sys_large_files=1
f6bcfd97 10483else
579d8138
VS
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10486 rm -rf conftest*
10487 ac_cv_sys_large_files=no
f6bcfd97 10488fi
579d8138
VS
10489rm -f conftest*
10490
10491
328a083c 10492fi
579d8138
VS
10493
10494echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10495
21d1c967
GD
10496 if test "$ac_cv_sys_large_files" != no; then
10497 wx_largefile=yes
579d8138 10498 cat >> confdefs.h <<EOF
21d1c967
GD
10499#define _LARGE_FILES $ac_cv_sys_large_files
10500EOF
90dd450c 10501
90dd450c
VZ
10502 fi
10503
90dd450c 10504 fi
90dd450c 10505
579d8138 10506 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
b13cd66e 10507echo "configure:10508: checking if large file support is available" >&5
21d1c967 10508 if test "x$wx_largefile" = "xyes"; then
579d8138 10509 cat >> confdefs.h <<\EOF
21d1c967 10510#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10511EOF
10512
90dd450c 10513 fi
579d8138 10514 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10515fi
90dd450c 10516
579d8138
VS
10517
10518echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
b13cd66e 10519echo "configure:10520: checking whether byte ordering is bigendian" >&5
579d8138
VS
10520if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10522else
21d1c967
GD
10523 ac_cv_c_bigendian=unknown
10524# See if sys/param.h defines the BYTE_ORDER macro.
579d8138 10525cat > conftest.$ac_ext <<EOF
b13cd66e 10526#line 10527 "configure"
90dd450c 10527#include "confdefs.h"
21d1c967
GD
10528#include <sys/types.h>
10529#include <sys/param.h>
579d8138 10530int main() {
21d1c967
GD
10531
10532#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10533 bogus endian macros
10534#endif
579d8138
VS
10535; return 0; }
10536EOF
b13cd66e 10537if { (eval echo configure:10538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10538 rm -rf conftest*
21d1c967 10539 # It does; now see whether it defined to BIG_ENDIAN or not.
579d8138 10540cat > conftest.$ac_ext <<EOF
b13cd66e 10541#line 10542 "configure"
90dd450c 10542#include "confdefs.h"
21d1c967
GD
10543#include <sys/types.h>
10544#include <sys/param.h>
579d8138 10545int main() {
21d1c967
GD
10546
10547#if BYTE_ORDER != BIG_ENDIAN
10548 not big endian
10549#endif
579d8138
VS
10550; return 0; }
10551EOF
b13cd66e 10552if { (eval echo configure:10553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10553 rm -rf conftest*
21d1c967 10554 ac_cv_c_bigendian=yes
3f345b47 10555else
579d8138
VS
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 rm -rf conftest*
10559 ac_cv_c_bigendian=no
3f345b47 10560fi
579d8138 10561rm -f conftest*
3f345b47 10562else
579d8138
VS
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
3f345b47 10565fi
579d8138 10566rm -f conftest*
21d1c967
GD
10567if test $ac_cv_c_bigendian = unknown; then
10568if test "$cross_compiling" = yes; then
10569 ac_cv_c_bigendian=unknown
10f2d63a 10570else
579d8138 10571 cat > conftest.$ac_ext <<EOF
b13cd66e 10572#line 10573 "configure"
90dd450c 10573#include "confdefs.h"
21d1c967
GD
10574main () {
10575 /* Are we little or big endian? From Harbison&Steele. */
10576 union
10577 {
10578 long l;
10579 char c[sizeof (long)];
10580 } u;
10581 u.l = 1;
10582 exit (u.c[sizeof (long) - 1] == 1);
10583}
579d8138 10584EOF
b13cd66e 10585if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138 10586then
21d1c967 10587 ac_cv_c_bigendian=no
3f345b47 10588else
579d8138
VS
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 rm -fr conftest*
10592 ac_cv_c_bigendian=yes
3f345b47 10593fi
579d8138 10594rm -fr conftest*
8168de4c 10595fi
579d8138 10596
21d1c967
GD
10597fi
10598fi
579d8138
VS
10599
10600echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21d1c967 10601if test $ac_cv_c_bigendian = unknown; then
579d8138 10602 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
21d1c967
GD
10603fi
10604if test $ac_cv_c_bigendian = yes; then
579d8138 10605 cat >> confdefs.h <<\EOF
21d1c967
GD
10606#define WORDS_BIGENDIAN 1
10607EOF
10608
10609fi
10610
328a083c 10611
579d8138 10612echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
b13cd66e 10613echo "configure:10614: checking how to run the C++ preprocessor" >&5
579d8138
VS
10614if test -z "$CXXCPP"; then
10615if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 10617else
579d8138
VS
10618 ac_ext=C
10619# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10620ac_cpp='$CXXCPP $CPPFLAGS'
10621ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10622ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
10623cross_compiling=$ac_cv_prog_cxx_cross
10624 CXXCPP="${CXX-g++} -E"
10625 cat > conftest.$ac_ext <<EOF
b13cd66e 10626#line 10627 "configure"
328a083c 10627#include "confdefs.h"
579d8138
VS
10628#include <stdlib.h>
10629EOF
10630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 10631{ (eval echo configure:10632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 10632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138 10633if test -z "$ac_err"; then
21d1c967 10634 :
698dcdb6 10635else
579d8138
VS
10636 echo "$ac_err" >&5
10637 echo "configure: failed program was:" >&5
698dcdb6 10638 cat conftest.$ac_ext >&5
579d8138
VS
10639 rm -rf conftest*
10640 CXXCPP=/lib/cpp
7ec2881a 10641fi
579d8138
VS
10642rm -f conftest*
10643 ac_cv_prog_CXXCPP="$CXXCPP"
f09359cf
VS
10644ac_ext=C
10645# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10646ac_cpp='$CXXCPP $CPPFLAGS'
10647ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10648ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10649cross_compiling=$ac_cv_prog_cxx_cross
328a083c 10650fi
90dd450c 10651fi
579d8138
VS
10652CXXCPP="$ac_cv_prog_CXXCPP"
10653echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10654
1725144d 10655
21d1c967 10656 if test "$cross_compiling" = "yes"; then
579d8138 10657 cat >> confdefs.h <<\EOF
21d1c967 10658#define wxUSE_IOSTREAMH 1
90dd450c 10659EOF
ab9b9eab 10660
21d1c967 10661 else
579d8138
VS
10662
10663 ac_ext=C
10664# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
328a083c 10665ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 10666ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10667ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 10668cross_compiling=$ac_cv_prog_cxx_cross
ba337fe7 10669
579d8138
VS
10670
10671 for ac_hdr in iostream
21d1c967 10672do
579d8138
VS
10673ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10674echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b13cd66e 10675echo "configure:10676: checking for $ac_hdr" >&5
579d8138
VS
10676if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678else
10679 cat > conftest.$ac_ext <<EOF
b13cd66e 10680#line 10681 "configure"
ab9b9eab 10681#include "confdefs.h"
579d8138
VS
10682#include <$ac_hdr>
10683EOF
10684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 10685{ (eval echo configure:10686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 10686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
10687if test -z "$ac_err"; then
10688 rm -rf conftest*
10689 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10690else
579d8138
VS
10691 echo "$ac_err" >&5
10692 echo "configure: failed program was:" >&5
ab9b9eab 10693 cat conftest.$ac_ext >&5
579d8138
VS
10694 rm -rf conftest*
10695 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10696fi
579d8138 10697rm -f conftest*
90dd450c 10698fi
579d8138
VS
10699if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10700 echo "$ac_t""yes" 1>&6
10701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10702 cat >> confdefs.h <<EOF
10703#define $ac_tr_hdr 1
698dcdb6 10704EOF
579d8138
VS
10705
10706else
10707 echo "$ac_t""no" 1>&6
90dd450c 10708fi
21d1c967 10709done
10f2d63a 10710
579d8138 10711
21d1c967
GD
10712 if test "$ac_cv_header_iostream" = "yes" ; then
10713 :
10714 else
579d8138 10715 cat >> confdefs.h <<\EOF
21d1c967
GD
10716#define wxUSE_IOSTREAMH 1
10717EOF
788deba1 10718
90dd450c 10719 fi
ab9b9eab 10720
21d1c967 10721 ac_ext=c
579d8138 10722# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 10723ac_cpp='$CPP $CPPFLAGS'
579d8138 10724ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10725ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 10726cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10727
21d1c967 10728 fi
ab9b9eab 10729
21d1c967 10730
579d8138
VS
10731
10732 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
b13cd66e 10733echo "configure:10734: checking if C++ compiler supports bool" >&5
579d8138
VS
10734if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10735 echo $ac_n "(cached) $ac_c" 1>&6
10736else
10737
10738
10739 ac_ext=C
10740# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
328a083c 10741ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 10742ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10743ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
10744cross_compiling=$ac_cv_prog_cxx_cross
10745
21d1c967 10746
579d8138 10747 cat > conftest.$ac_ext <<EOF
b13cd66e 10748#line 10749 "configure"
ab9b9eab 10749#include "confdefs.h"
21d1c967 10750
579d8138
VS
10751
10752int main() {
21d1c967
GD
10753
10754 bool b = true;
10755
10756 return 0;
579d8138
VS
10757
10758; return 0; }
10759EOF
b13cd66e 10760if { (eval echo configure:10761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
10761 rm -rf conftest*
10762
21d1c967 10763 wx_cv_cpp_bool=yes
579d8138 10764
698dcdb6 10765else
579d8138
VS
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10768 rm -rf conftest*
10769
21d1c967 10770 wx_cv_cpp_bool=no
579d8138
VS
10771
10772
698dcdb6 10773fi
579d8138 10774rm -f conftest*
21d1c967
GD
10775
10776 ac_ext=c
579d8138 10777# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 10778ac_cpp='$CPP $CPPFLAGS'
579d8138 10779ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10780ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 10781cross_compiling=$ac_cv_prog_cc_cross
21d1c967 10782
579d8138 10783
698dcdb6 10784fi
579d8138
VS
10785
10786echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
10787
10788 if test "$wx_cv_cpp_bool" = "yes"; then
579d8138 10789 cat >> confdefs.h <<\EOF
21d1c967 10790#define HAVE_BOOL 1
90dd450c 10791EOF
ab9b9eab 10792
21d1c967
GD
10793 fi
10794
986ecc86 10795
579d8138
VS
10796
10797 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
b13cd66e 10798echo "configure:10799: checking if C++ compiler supports the explicit keyword" >&5
579d8138
VS
10799if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10801else
10802
10803
10804 ac_ext=C
10805# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
328a083c 10806ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 10807ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10808ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
10809cross_compiling=$ac_cv_prog_cxx_cross
10810
986ecc86 10811
579d8138 10812 cat > conftest.$ac_ext <<EOF
b13cd66e 10813#line 10814 "configure"
986ecc86
VZ
10814#include "confdefs.h"
10815
10816 class Foo { public: explicit Foo(int) {} };
579d8138
VS
10817
10818int main() {
986ecc86
VZ
10819
10820 return 0;
579d8138
VS
10821
10822; return 0; }
10823EOF
b13cd66e 10824if { (eval echo configure:10825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
10825 rm -rf conftest*
10826
10827 cat > conftest.$ac_ext <<EOF
b13cd66e 10828#line 10829 "configure"
986ecc86
VZ
10829#include "confdefs.h"
10830
10831 class Foo { public: explicit Foo(int) {} };
10832 static void TakeFoo(const Foo& foo) { }
579d8138
VS
10833
10834int main() {
986ecc86
VZ
10835
10836 TakeFoo(17);
10837 return 0;
579d8138
VS
10838
10839; return 0; }
10840EOF
b13cd66e 10841if { (eval echo configure:10842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 10842 rm -rf conftest*
986ecc86
VZ
10843 wx_cv_explicit=no
10844else
579d8138
VS
10845 echo "configure: failed program was:" >&5
10846 cat conftest.$ac_ext >&5
10847 rm -rf conftest*
10848 wx_cv_explicit=yes
10849
986ecc86 10850fi
579d8138
VS
10851rm -f conftest*
10852
986ecc86 10853else
579d8138
VS
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 rm -rf conftest*
10857 wx_cv_explicit=no
10858
986ecc86 10859fi
579d8138 10860rm -f conftest*
986ecc86
VZ
10861
10862 ac_ext=c
579d8138 10863# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 10864ac_cpp='$CPP $CPPFLAGS'
579d8138 10865ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 10866ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 10867cross_compiling=$ac_cv_prog_cc_cross
986ecc86 10868
579d8138 10869
986ecc86 10870fi
579d8138
VS
10871
10872echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
10873
10874 if test "$wx_cv_explicit" = "yes"; then
579d8138 10875 cat >> confdefs.h <<\EOF
986ecc86
VZ
10876#define HAVE_EXPLICIT 1
10877EOF
10878
10879 fi
10880
579d8138
VS
10881
10882
21d1c967
GD
10883SEARCH_INCLUDE="\
10884 /usr/local/include \
10885 \
10886 /usr/Motif-1.2/include \
10887 /usr/Motif-2.1/include \
10888 \
10889 /usr/include/Motif1.2 \
10890 /opt/xpm/include/X11 \
10891 /opt/GBxpm/include/ \
10892 /opt/GBxpm/X11/include/ \
10893 \
10894 /usr/Motif1.2/include \
10895 /usr/dt/include \
10896 /usr/openwin/include \
10897 \
10898 /usr/include/Xm \
10899 \
10900 /usr/X11R6/include \
10901 /usr/X11R6.4/include \
10902 /usr/X11R5/include \
10903 /usr/X11R4/include \
10904 \
10905 /usr/include/X11R6 \
10906 /usr/include/X11R5 \
10907 /usr/include/X11R4 \
10908 \
10909 /usr/local/X11R6/include \
10910 /usr/local/X11R5/include \
10911 /usr/local/X11R4/include \
10912 \
10913 /usr/local/include/X11R6 \
10914 /usr/local/include/X11R5 \
10915 /usr/local/include/X11R4 \
10916 \
10917 /usr/X11/include \
10918 /usr/include/X11 \
10919 /usr/local/X11/include \
10920 /usr/local/include/X11 \
10921 \
10922 /usr/X386/include \
10923 /usr/x386/include \
10924 /usr/XFree86/include/X11 \
10925 \
10926 X:/XFree86/include \
10927 X:/XFree86/include/X11 \
10928 \
10929 /usr/include/gtk \
10930 /usr/local/include/gtk \
10931 /usr/include/glib \
10932 /usr/local/include/glib \
10933 \
10934 /usr/include/qt \
10935 /usr/local/include/qt \
10936 \
10937 /usr/include/windows \
10938 /usr/include/wine \
10939 /usr/local/include/wine \
10940 \
10941 /usr/unsupported/include \
10942 /usr/athena/include \
10943 /usr/local/x11r5/include \
10944 /usr/lpp/Xamples/include \
10945 \
10946 /usr/openwin/share/include \
10947 \
10948 /usr/include"
10949
10950SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10951
579d8138
VS
10952
10953cat > confcache <<\EOF
21d1c967
GD
10954# This file is a shell script that caches the results of configure
10955# tests run on this system so they can be shared between configure
579d8138
VS
10956# scripts and configure runs. It is not useful on other systems.
10957# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 10958#
579d8138
VS
10959# By default, configure uses ./config.cache as the cache file,
10960# creating it if it does not exist already. You can give configure
10961# the --cache-file=FILE option to use a different cache file; that is
10962# what configure does when it calls configure scripts in
10963# subdirectories, so they share the cache.
10964# Giving --cache-file=/dev/null disables caching, for debugging configure.
10965# config.status only pays attention to the cache file if you give it the
10966# --recheck option to rerun configure.
21d1c967 10967#
579d8138 10968EOF
21d1c967
GD
10969# The following way of writing the cache mishandles newlines in values,
10970# but we know of no workaround that is simple, portable, and efficient.
10971# So, don't put newlines in cache variables' values.
10972# Ultrix sh set writes to stderr and can't be redirected directly,
10973# and sets the high bit in the cache file unless we assign to the vars.
579d8138 10974(set) 2>&1 |
f09359cf 10975 case `(ac_space=' '; set | grep ac_space) 2>&1` in
579d8138
VS
10976 *ac_space=\ *)
10977 # `set' does not quote correctly, so add quotes (double-quote substitution
10978 # turns \\\\ into \\, and sed turns \\ into \).
10979 sed -n \
10980 -e "s/'/'\\\\''/g" \
10981 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10982 ;;
10983 *)
10984 # `set' quotes correctly as required by POSIX, so do not add quotes.
10985 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10986 ;;
10987 esac >> confcache
10988if cmp -s $cache_file confcache; then
10989 :
10990else
21d1c967 10991 if test -w $cache_file; then
579d8138
VS
10992 echo "updating cache $cache_file"
10993 cat confcache > $cache_file
21d1c967
GD
10994 else
10995 echo "not updating unwritable cache $cache_file"
10996 fi
ab9b9eab 10997fi
21d1c967 10998rm -f confcache
ab9b9eab 10999
328a083c 11000
579d8138
VS
11001if test "$USE_LINUX" = 1; then
11002 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
b13cd66e 11003echo "configure:11004: checking for glibc 2.1 or later" >&5
579d8138
VS
11004if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006else
11007
11008 cat > conftest.$ac_ext <<EOF
b13cd66e 11009#line 11010 "configure"
ab9b9eab 11010#include "confdefs.h"
21d1c967 11011#include <features.h>
579d8138 11012int main() {
ab9b9eab 11013
21d1c967
GD
11014 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11015 #error not glibc2.1
11016 #endif
579d8138
VS
11017
11018; return 0; }
11019EOF
b13cd66e 11020if { (eval echo configure:11021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
11021 rm -rf conftest*
11022
21d1c967 11023 wx_cv_lib_glibc21=yes
579d8138 11024
698dcdb6 11025else
579d8138
VS
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -rf conftest*
11029
21d1c967 11030 wx_cv_lib_glibc21=no
579d8138
VS
11031
11032
698dcdb6 11033fi
579d8138
VS
11034rm -f conftest*
11035
328a083c 11036fi
579d8138
VS
11037
11038echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11039 if test "$wx_cv_lib_glibc21" = "yes"; then
579d8138 11040 cat >> confdefs.h <<\EOF
21d1c967
GD
11041#define wxHAVE_GLIBC2 1
11042EOF
1e487827 11043
90dd450c 11044 fi
ab9b9eab
VZ
11045fi
11046
5c0a20c3
VZ
11047if test "x$wx_cv_lib_glibc21" = "xyes"; then
11048 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11049 cat >> confdefs.h <<\EOF
11050#define _GNU_SOURCE 1
11051EOF
11052
11053 fi
11054fi
11055
579d8138
VS
11056
11057
21d1c967
GD
11058REGEX_INCLUDE=
11059if test "$wxUSE_REGEX" != "no"; then
579d8138 11060 cat >> confdefs.h <<\EOF
21d1c967
GD
11061#define wxUSE_REGEX 1
11062EOF
698dcdb6 11063
579d8138 11064
21d1c967 11065 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
579d8138
VS
11066 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11067echo $ac_n "checking for regex.h""... $ac_c" 1>&6
b13cd66e 11068echo "configure:11069: checking for regex.h" >&5
579d8138
VS
11069if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11071else
11072 cat > conftest.$ac_ext <<EOF
b13cd66e 11073#line 11074 "configure"
21d1c967
GD
11074#include "confdefs.h"
11075#include <regex.h>
579d8138
VS
11076EOF
11077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 11078{ (eval echo configure:11079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 11079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
11080if test -z "$ac_err"; then
11081 rm -rf conftest*
11082 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11083else
579d8138
VS
11084 echo "$ac_err" >&5
11085 echo "configure: failed program was:" >&5
21d1c967 11086 cat conftest.$ac_ext >&5
579d8138
VS
11087 rm -rf conftest*
11088 eval "ac_cv_header_$ac_safe=no"
21d1c967 11089fi
579d8138 11090rm -f conftest*
698dcdb6 11091fi
579d8138
VS
11092if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11093 echo "$ac_t""yes" 1>&6
11094 for ac_func in regcomp
21d1c967 11095do
579d8138 11096echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 11097echo "configure:11098: checking for $ac_func" >&5
579d8138
VS
11098if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11099 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 11100else
579d8138 11101 cat > conftest.$ac_ext <<EOF
b13cd66e 11102#line 11103 "configure"
579d8138
VS
11103#include "confdefs.h"
11104/* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func(); below. */
21d1c967
GD
11106#include <assert.h>
11107/* Override any gcc2 internal prototype to avoid an error. */
11108/* We use char because int might match the return type of a gcc2
579d8138
VS
11109 builtin and then its argument prototype would still apply. */
11110char $ac_func();
11111
11112int main() {
90dd450c 11113
21d1c967
GD
11114/* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11118choke me
11119#else
579d8138 11120$ac_func();
21d1c967 11121#endif
90dd450c 11122
579d8138 11123; return 0; }
21d1c967 11124EOF
b13cd66e 11125if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
11126 rm -rf conftest*
11127 eval "ac_cv_func_$ac_func=yes"
11128else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 eval "ac_cv_func_$ac_func=no"
11133fi
11134rm -f conftest*
11135fi
90dd450c 11136
579d8138
VS
11137if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11138 echo "$ac_t""yes" 1>&6
11139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11140 cat >> confdefs.h <<EOF
11141#define $ac_tr_func 1
11142EOF
11143
11144else
11145 echo "$ac_t""no" 1>&6
698dcdb6 11146fi
21d1c967
GD
11147done
11148
579d8138
VS
11149else
11150 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11151fi
11152
579d8138 11153
21d1c967
GD
11154 if test "x$ac_cv_func_regcomp" != "xyes"; then
11155 if test "$wxUSE_REGEX" = "sys" ; then
579d8138 11156 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11157 else
579d8138 11158 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11159 wxUSE_REGEX=builtin
11160 fi
11161 else
11162 wxUSE_REGEX=sys
11163 fi
ab9b9eab 11164 fi
90dd450c 11165
21d1c967
GD
11166 if test "$wxUSE_REGEX" = "builtin" ; then
11167 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11168 fi
21d1c967 11169fi
90dd450c 11170
579d8138 11171
21d1c967
GD
11172ZLIB_INCLUDE=
11173ZLIB_LINK=
11174if test "$wxUSE_ZLIB" != "no" ; then
579d8138 11175 cat >> confdefs.h <<\EOF
21d1c967
GD
11176#define wxUSE_ZLIB 1
11177EOF
11178
579d8138 11179
21d1c967 11180 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
579d8138
VS
11181 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11182echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
b13cd66e 11183echo "configure:11184: checking for zlib.h" >&5
579d8138
VS
11184if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11186else
11187 cat > conftest.$ac_ext <<EOF
b13cd66e 11188#line 11189 "configure"
ab9b9eab 11189#include "confdefs.h"
21d1c967 11190#include <zlib.h>
579d8138
VS
11191EOF
11192ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 11193{ (eval echo configure:11194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 11194ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
11195if test -z "$ac_err"; then
11196 rm -rf conftest*
11197 eval "ac_cv_header_$ac_safe=yes"
328a083c 11198else
579d8138
VS
11199 echo "$ac_err" >&5
11200 echo "configure: failed program was:" >&5
698dcdb6 11201 cat conftest.$ac_ext >&5
579d8138
VS
11202 rm -rf conftest*
11203 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11204fi
579d8138 11205rm -f conftest*
ab9b9eab 11206fi
579d8138
VS
11207if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11208 echo "$ac_t""yes" 1>&6
11209 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
b13cd66e 11210echo "configure:11211: checking for deflate in -lz" >&5
579d8138
VS
11211ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11213 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11214else
579d8138 11215 ac_save_LIBS="$LIBS"
21d1c967 11216LIBS="-lz $LIBS"
579d8138 11217cat > conftest.$ac_ext <<EOF
b13cd66e 11218#line 11219 "configure"
ab9b9eab 11219#include "confdefs.h"
21d1c967
GD
11220/* Override any gcc2 internal prototype to avoid an error. */
11221/* We use char because int might match the return type of a gcc2
579d8138
VS
11222 builtin and then its argument prototype would still apply. */
11223char deflate();
11224
11225int main() {
11226deflate()
11227; return 0; }
11228EOF
b13cd66e 11229if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
11230 rm -rf conftest*
11231 eval "ac_cv_lib_$ac_lib_var=yes"
11232else
11233 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11235 rm -rf conftest*
11236 eval "ac_cv_lib_$ac_lib_var=no"
11237fi
11238rm -f conftest*
11239LIBS="$ac_save_LIBS"
11240
11241fi
11242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11243 echo "$ac_t""yes" 1>&6
21d1c967 11244 ZLIB_LINK=" -lz"
579d8138
VS
11245else
11246 echo "$ac_t""no" 1>&6
90dd450c 11247fi
698dcdb6 11248
579d8138
VS
11249else
11250 echo "$ac_t""no" 1>&6
698dcdb6 11251fi
698dcdb6 11252
579d8138 11253
21d1c967
GD
11254 if test "x$ZLIB_LINK" = "x" ; then
11255 if test "$wxUSE_ZLIB" = "sys" ; then
579d8138 11256 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11257 else
579d8138 11258 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
21d1c967
GD
11259 wxUSE_ZLIB=builtin
11260 fi
11261 else
11262 wxUSE_ZLIB=sys
11263 fi
11264 fi
11265
11266 if test "$wxUSE_ZLIB" = "builtin" ; then
11267 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11268 fi
ab9b9eab
VZ
11269fi
11270
579d8138 11271
21d1c967
GD
11272PNG_INCLUDE=
11273PNG_LINK=
11274if test "$wxUSE_LIBPNG" != "no" ; then
579d8138 11275 cat >> confdefs.h <<\EOF
21d1c967
GD
11276#define wxUSE_LIBPNG 1
11277EOF
90dd450c 11278
579d8138 11279
21d1c967 11280 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
579d8138 11281 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11282 wxUSE_LIBPNG=sys
11283 fi
90dd450c 11284
21d1c967 11285 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
579d8138 11286 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11287 wxUSE_LIBPNG=builtin
11288 fi
11289
11290 if test "$wxUSE_MGL" != 1 ; then
11291 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
579d8138
VS
11292 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11293echo $ac_n "checking for png.h""... $ac_c" 1>&6
b13cd66e 11294echo "configure:11295: checking for png.h" >&5
579d8138
VS
11295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11296 echo $ac_n "(cached) $ac_c" 1>&6
11297else
11298 cat > conftest.$ac_ext <<EOF
b13cd66e 11299#line 11300 "configure"
21d1c967
GD
11300#include "confdefs.h"
11301#include <png.h>
579d8138
VS
11302EOF
11303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 11304{ (eval echo configure:11305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 11305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
11306if test -z "$ac_err"; then
11307 rm -rf conftest*
11308 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11309else
579d8138
VS
11310 echo "$ac_err" >&5
11311 echo "configure: failed program was:" >&5
90dd450c 11312 cat conftest.$ac_ext >&5
579d8138
VS
11313 rm -rf conftest*
11314 eval "ac_cv_header_$ac_safe=no"
90dd450c 11315fi
579d8138 11316rm -f conftest*
90dd450c 11317fi
579d8138
VS
11318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11319 echo "$ac_t""yes" 1>&6
11320 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
b13cd66e 11321echo "configure:11322: checking for png_check_sig in -lpng" >&5
579d8138
VS
11322ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11325else
579d8138 11326 ac_save_LIBS="$LIBS"
21d1c967 11327LIBS="-lpng -lz -lm $LIBS"
579d8138 11328cat > conftest.$ac_ext <<EOF
b13cd66e 11329#line 11330 "configure"
90dd450c 11330#include "confdefs.h"
21d1c967
GD
11331/* Override any gcc2 internal prototype to avoid an error. */
11332/* We use char because int might match the return type of a gcc2
579d8138
VS
11333 builtin and then its argument prototype would still apply. */
11334char png_check_sig();
11335
11336int main() {
11337png_check_sig()
11338; return 0; }
11339EOF
b13cd66e 11340if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
11341 rm -rf conftest*
11342 eval "ac_cv_lib_$ac_lib_var=yes"
11343else
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 rm -rf conftest*
11347 eval "ac_cv_lib_$ac_lib_var=no"
11348fi
11349rm -f conftest*
11350LIBS="$ac_save_LIBS"
11351
11352fi
11353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11354 echo "$ac_t""yes" 1>&6
21d1c967 11355 PNG_LINK=" -lpng"
579d8138
VS
11356else
11357 echo "$ac_t""no" 1>&6
90dd450c
VZ
11358fi
11359
579d8138
VS
11360
11361else
11362 echo "$ac_t""no" 1>&6
90dd450c
VZ
11363fi
11364
579d8138 11365
21d1c967
GD
11366 if test "x$PNG_LINK" = "x" ; then
11367 if test "$wxUSE_LIBPNG" = "sys" ; then
579d8138 11368 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11369 else
579d8138 11370 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
21d1c967
GD
11371 wxUSE_LIBPNG=builtin
11372 fi
11373 else
11374 wxUSE_LIBPNG=yes
11375 fi
11376 fi
11377 fi
90dd450c 11378
21d1c967
GD
11379 if test "$wxUSE_LIBPNG" = "builtin" ; then
11380 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11381 fi
90dd450c 11382
21d1c967 11383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11384fi
11385
579d8138 11386
21d1c967
GD
11387JPEG_INCLUDE=
11388JPEG_LINK=
11389if test "$wxUSE_LIBJPEG" != "no" ; then
579d8138 11390 cat >> confdefs.h <<\EOF
21d1c967
GD
11391#define wxUSE_LIBJPEG 1
11392EOF
90dd450c 11393
579d8138 11394
21d1c967 11395 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
579d8138 11396 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11397 wxUSE_LIBJPEG=sys
11398 fi
90dd450c 11399
21d1c967
GD
11400 if test "$wxUSE_MGL" != 1 ; then
11401 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
579d8138 11402 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
b13cd66e 11403echo "configure:11404: checking for jpeglib.h" >&5
579d8138
VS
11404 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11406else
579d8138 11407 cat > conftest.$ac_ext <<EOF
b13cd66e 11408#line 11409 "configure"
21d1c967 11409#include "confdefs.h"
90dd450c 11410
21d1c967
GD
11411 #undef HAVE_STDLIB_H
11412 #include <stdio.h>
11413 #include <jpeglib.h>
579d8138
VS
11414
11415int main() {
90dd450c 11416
579d8138
VS
11417
11418; return 0; }
11419EOF
b13cd66e 11420if { (eval echo configure:11421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 11421 rm -rf conftest*
21d1c967 11422 ac_cv_header_jpeglib_h=yes
90dd450c 11423else
579d8138
VS
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 rm -rf conftest*
11427 ac_cv_header_jpeglib_h=no
11428
90dd450c 11429fi
579d8138
VS
11430rm -f conftest*
11431
90dd450c
VZ
11432fi
11433
579d8138 11434 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11435
21d1c967 11436 if test "$ac_cv_header_jpeglib_h" = "yes"; then
579d8138 11437 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
b13cd66e 11438echo "configure:11439: checking for jpeg_read_header in -ljpeg" >&5
579d8138
VS
11439ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11441 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11442else
579d8138 11443 ac_save_LIBS="$LIBS"
21d1c967 11444LIBS="-ljpeg $LIBS"
579d8138 11445cat > conftest.$ac_ext <<EOF
b13cd66e 11446#line 11447 "configure"
21d1c967
GD
11447#include "confdefs.h"
11448/* Override any gcc2 internal prototype to avoid an error. */
11449/* We use char because int might match the return type of a gcc2
579d8138
VS
11450 builtin and then its argument prototype would still apply. */
11451char jpeg_read_header();
11452
11453int main() {
11454jpeg_read_header()
11455; return 0; }
11456EOF
b13cd66e 11457if { (eval echo configure:11458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
11458 rm -rf conftest*
11459 eval "ac_cv_lib_$ac_lib_var=yes"
11460else
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 rm -rf conftest*
11464 eval "ac_cv_lib_$ac_lib_var=no"
11465fi
11466rm -f conftest*
11467LIBS="$ac_save_LIBS"
11468
11469fi
11470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11471 echo "$ac_t""yes" 1>&6
21d1c967 11472 JPEG_LINK=" -ljpeg"
579d8138
VS
11473else
11474 echo "$ac_t""no" 1>&6
90dd450c
VZ
11475fi
11476
21d1c967 11477 fi
90dd450c 11478
21d1c967
GD
11479 if test "x$JPEG_LINK" = "x" ; then
11480 if test "$wxUSE_LIBJPEG" = "sys" ; then
579d8138 11481 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11482 else
579d8138 11483 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11484 wxUSE_LIBJPEG=builtin
11485 fi
11486 else
11487 wxUSE_LIBJPEG=sys
11488 fi
11489 fi
11490 fi
90dd450c 11491
21d1c967
GD
11492 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11493 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11494 fi
11495fi
90dd450c 11496
579d8138 11497
21d1c967
GD
11498TIFF_INCLUDE=
11499TIFF_LINK=
11500if test "$wxUSE_LIBTIFF" != "no" ; then
579d8138 11501 cat >> confdefs.h <<\EOF
21d1c967
GD
11502#define wxUSE_LIBTIFF 1
11503EOF
11504
579d8138 11505
21d1c967 11506 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
579d8138
VS
11507 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11508echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
b13cd66e 11509echo "configure:11510: checking for tiffio.h" >&5
579d8138
VS
11510if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11511 echo $ac_n "(cached) $ac_c" 1>&6
11512else
11513 cat > conftest.$ac_ext <<EOF
b13cd66e 11514#line 11515 "configure"
21d1c967
GD
11515#include "confdefs.h"
11516#include <tiffio.h>
579d8138
VS
11517EOF
11518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 11519{ (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 11520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
11521if test -z "$ac_err"; then
11522 rm -rf conftest*
11523 eval "ac_cv_header_$ac_safe=yes"
21d1c967 11524else
579d8138
VS
11525 echo "$ac_err" >&5
11526 echo "configure: failed program was:" >&5
21d1c967 11527 cat conftest.$ac_ext >&5
579d8138
VS
11528 rm -rf conftest*
11529 eval "ac_cv_header_$ac_safe=no"
21d1c967 11530fi
579d8138 11531rm -f conftest*
21d1c967 11532fi
579d8138
VS
11533if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
b13cd66e 11536echo "configure:11537: checking for TIFFError in -ltiff" >&5
579d8138
VS
11537ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11538if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 11540else
579d8138 11541 ac_save_LIBS="$LIBS"
21d1c967 11542LIBS="-ltiff -lm $LIBS"
579d8138 11543cat > conftest.$ac_ext <<EOF
b13cd66e 11544#line 11545 "configure"
ab9b9eab
VZ
11545#include "confdefs.h"
11546/* Override any gcc2 internal prototype to avoid an error. */
11547/* We use char because int might match the return type of a gcc2
579d8138
VS
11548 builtin and then its argument prototype would still apply. */
11549char TIFFError();
11550
11551int main() {
11552TIFFError()
11553; return 0; }
11554EOF
b13cd66e 11555if { (eval echo configure:11556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
11556 rm -rf conftest*
11557 eval "ac_cv_lib_$ac_lib_var=yes"
11558else
11559 echo "configure: failed program was:" >&5
11560 cat conftest.$ac_ext >&5
11561 rm -rf conftest*
11562 eval "ac_cv_lib_$ac_lib_var=no"
11563fi
11564rm -f conftest*
11565LIBS="$ac_save_LIBS"
11566
11567fi
11568if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11569 echo "$ac_t""yes" 1>&6
21d1c967 11570 TIFF_LINK=" -ltiff"
579d8138
VS
11571else
11572 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11573fi
11574
579d8138
VS
11575
11576else
11577 echo "$ac_t""no" 1>&6
21d1c967 11578fi
cd6d6d5b 11579
579d8138 11580
21d1c967
GD
11581 if test "x$TIFF_LINK" = "x" ; then
11582 if test "$wxUSE_LIBTIFF" = "sys" ; then
579d8138 11583 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11584 else
579d8138 11585 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 11586 wxUSE_LIBTIFF=builtin
d8356fa3 11587 fi
d8356fa3 11588 else
21d1c967 11589 wxUSE_LIBTIFF=sys
d8356fa3 11590 fi
21d1c967 11591 fi
d8356fa3 11592
21d1c967
GD
11593 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11594 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11595 fi
21d1c967 11596fi
10f2d63a 11597
579d8138 11598
21d1c967 11599AFMINSTALL=
90dd450c 11600
21d1c967
GD
11601TOOLKIT=
11602TOOLKIT_INCLUDE=
11603WIDGET_SET=
11604
11605if test "$USE_WIN32" = 1 ; then
579d8138 11606 for ac_hdr in w32api.h
21d1c967 11607do
579d8138
VS
11608ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11609echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b13cd66e 11610echo "configure:11611: checking for $ac_hdr" >&5
579d8138
VS
11611if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
11613else
11614 cat > conftest.$ac_ext <<EOF
b13cd66e 11615#line 11616 "configure"
f79bd02d 11616#include "confdefs.h"
579d8138
VS
11617#include <$ac_hdr>
11618EOF
11619ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 11620{ (eval echo configure:11621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 11621ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
11622if test -z "$ac_err"; then
11623 rm -rf conftest*
11624 eval "ac_cv_header_$ac_safe=yes"
f79bd02d 11625else
579d8138
VS
11626 echo "$ac_err" >&5
11627 echo "configure: failed program was:" >&5
f79bd02d 11628 cat conftest.$ac_ext >&5
579d8138
VS
11629 rm -rf conftest*
11630 eval "ac_cv_header_$ac_safe=no"
f79bd02d 11631fi
579d8138 11632rm -f conftest*
21d1c967 11633fi
579d8138
VS
11634if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11635 echo "$ac_t""yes" 1>&6
11636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11637 cat >> confdefs.h <<EOF
11638#define $ac_tr_hdr 1
21d1c967 11639EOF
579d8138
VS
11640
11641else
11642 echo "$ac_t""no" 1>&6
21d1c967
GD
11643fi
11644done
f79bd02d 11645
579d8138
VS
11646 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11647echo $ac_n "checking for windows.h""... $ac_c" 1>&6
b13cd66e 11648echo "configure:11649: checking for windows.h" >&5
579d8138
VS
11649if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11651else
579d8138 11652 cat > conftest.$ac_ext <<EOF
b13cd66e 11653#line 11654 "configure"
90dd450c 11654#include "confdefs.h"
21d1c967 11655#include <windows.h>
579d8138
VS
11656EOF
11657ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 11658{ (eval echo configure:11659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 11659ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
11660if test -z "$ac_err"; then
11661 rm -rf conftest*
11662 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11663else
579d8138
VS
11664 echo "$ac_err" >&5
11665 echo "configure: failed program was:" >&5
90dd450c 11666 cat conftest.$ac_ext >&5
579d8138
VS
11667 rm -rf conftest*
11668 eval "ac_cv_header_$ac_safe=no"
90dd450c 11669fi
579d8138 11670rm -f conftest*
90dd450c 11671fi
579d8138
VS
11672if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11673 echo "$ac_t""yes" 1>&6
21d1c967 11674 :
90dd450c 11675else
579d8138 11676 echo "$ac_t""no" 1>&6
21d1c967 11677
579d8138
VS
11678 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11679
328a083c 11680fi
f79bd02d 11681
328a083c 11682
579d8138 11683 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
b13cd66e 11684echo "configure:11685: checking if w32api has good enough MSIE support" >&5
579d8138
VS
11685if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11686 echo $ac_n "(cached) $ac_c" 1>&6
11687else
11688
11689 cat > conftest.$ac_ext <<EOF
b13cd66e 11690#line 11691 "configure"
f79bd02d 11691#include "confdefs.h"
21d1c967 11692#include <w32api.h>
579d8138 11693int main() {
f79bd02d 11694
21d1c967
GD
11695 #define wxCHECK_W32API_VERSION( major, minor ) \
11696 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11697 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11698 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11699
11700 #if !wxCHECK_W32API_VERSION(1,1)
11701 #error You need w32api 1.1 or newer
11702 #endif
579d8138
VS
11703
11704; return 0; }
11705EOF
b13cd66e 11706if { (eval echo configure:11707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
11707 rm -rf conftest*
11708
21d1c967 11709 wx_cv_w32api_win32_ie=yes
579d8138 11710
f79bd02d 11711else
579d8138
VS
11712 echo "configure: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11714 rm -rf conftest*
11715
21d1c967 11716 wx_cv_w32api_win32_ie=no
579d8138 11717
21d1c967 11718fi
579d8138
VS
11719rm -f conftest*
11720
328a083c 11721fi
579d8138
VS
11722
11723echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
11724 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11725 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11726 fi
f79bd02d 11727
21d1c967
GD
11728 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11729
11730 case "${host}" in
11731 *-*-cygwin* )
11732 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11733 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11734 esac
f79bd02d 11735
21d1c967
GD
11736 if test "$wxUSE_ODBC" = "yes" ; then
11737 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11738 fi
f79bd02d 11739
21d1c967
GD
11740 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11741 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11742fi
f79bd02d 11743
21d1c967
GD
11744if test "$wxUSE_GUI" = "yes"; then
11745 USE_GUI=1
f79bd02d 11746
21d1c967 11747 GUI_TK_LIBRARY=
f79bd02d 11748
21d1c967
GD
11749 WXGTK12=
11750 WXGTK127=
11751 WXGTK20=
f79bd02d 11752
21d1c967
GD
11753 if test "$wxUSE_MSW" = 1 ; then
11754 TOOLKIT=MSW
11755 GUIDIST=MSW_DIST
f79bd02d 11756
21d1c967
GD
11757 case "${host}" in
11758 *-*-mingw32* )
11759 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11760 esac
f79bd02d
JS
11761 fi
11762
21d1c967 11763 if test "$wxUSE_GTK" = 1; then
579d8138 11764 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
b13cd66e 11765echo "configure:11766: checking for GTK+ version" >&5
21d1c967
GD
11766
11767 gtk_version_cached=1
579d8138
VS
11768 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11770else
579d8138 11771
21d1c967 11772 gtk_version_cached=0
579d8138 11773 echo "$ac_t""" 1>&6
f79bd02d 11774
21d1c967
GD
11775 GTK_MODULES=
11776 if test "$wxUSE_THREADS" = "yes"; then
11777 GTK_MODULES=gthread
11778 fi
f79bd02d 11779
21d1c967
GD
11780 wx_cv_lib_gtk=
11781 if test "x$wxUSE_GTK2" = "xyes"; then
11782 # Check whether --enable-gtktest or --disable-gtktest was given.
11783if test "${enable_gtktest+set}" = set; then
11784 enableval="$enable_gtktest"
579d8138 11785 :
f79bd02d 11786else
21d1c967 11787 enable_gtktest=yes
579d8138
VS
11788fi
11789
f79bd02d 11790
21d1c967
GD
11791 pkg_config_args=gtk+-2.0
11792 for module in . $GTK_MODULES
11793 do
11794 case "$module" in
579d8138 11795 gthread)
21d1c967
GD
11796 pkg_config_args="$pkg_config_args gthread-2.0"
11797 ;;
11798 esac
11799 done
11800
11801 no_gtk=""
f79bd02d 11802
21d1c967
GD
11803 # Extract the first word of "pkg-config", so it can be a program name with args.
11804set dummy pkg-config; ac_word=$2
579d8138 11805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 11806echo "configure:11807: checking for $ac_word" >&5
579d8138
VS
11807if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11809else
579d8138
VS
11810 case "$PKG_CONFIG" in
11811 /*)
21d1c967
GD
11812 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11813 ;;
f09359cf
VS
11814 ?:/*)
11815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11816 ;;
21d1c967 11817 *)
f09359cf
VS
11818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11819 ac_dummy="$PATH"
11820 for ac_dir in $ac_dummy; do
579d8138
VS
11821 test -z "$ac_dir" && ac_dir=.
11822 if test -f $ac_dir/$ac_word; then
11823 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11824 break
11825 fi
11826 done
11827 IFS="$ac_save_ifs"
21d1c967
GD
11828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11829 ;;
11830esac
f79bd02d 11831fi
579d8138 11832PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 11833if test -n "$PKG_CONFIG"; then
579d8138 11834 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 11835else
579d8138 11836 echo "$ac_t""no" 1>&6
f79bd02d
JS
11837fi
11838
579d8138 11839
21d1c967
GD
11840 if test x$PKG_CONFIG != xno ; then
11841 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11842 :
11843 else
11844 echo *** pkg-config too old; version 0.7 or better required.
11845 no_gtk=yes
11846 PKG_CONFIG=no
11847 fi
11848 else
11849 no_gtk=yes
11850 fi
f79bd02d 11851
21d1c967 11852 min_gtk_version=2.0.0
579d8138 11853 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
b13cd66e 11854echo "configure:11855: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11855
21d1c967
GD
11856 if test x$PKG_CONFIG != xno ; then
11857 ## don't try to run the test against uninstalled libtool libs
11858 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11859 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11860 enable_gtktest=no
11861 fi
f79bd02d 11862
21d1c967
GD
11863 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11864 :
11865 else
11866 no_gtk=yes
11867 fi
11868 fi
f79bd02d 11869
21d1c967
GD
11870 if test x"$no_gtk" = x ; then
11871 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11872 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11873 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11874 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11875 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11876 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11877 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11878 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11879 if test "x$enable_gtktest" = "xyes" ; then
11880 ac_save_CFLAGS="$CFLAGS"
11881 ac_save_LIBS="$LIBS"
11882 CFLAGS="$CFLAGS $GTK_CFLAGS"
11883 LIBS="$GTK_LIBS $LIBS"
11884 rm -f conf.gtktest
11885 if test "$cross_compiling" = yes; then
11886 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11887else
579d8138 11888 cat > conftest.$ac_ext <<EOF
b13cd66e 11889#line 11890 "configure"
f79bd02d 11890#include "confdefs.h"
f79bd02d 11891
21d1c967
GD
11892#include <gtk/gtk.h>
11893#include <stdio.h>
11894#include <stdlib.h>
f79bd02d 11895
579d8138 11896int
21d1c967
GD
11897main ()
11898{
11899 int major, minor, micro;
11900 char *tmp_version;
f79bd02d 11901
21d1c967 11902 system ("touch conf.gtktest");
f79bd02d 11903
21d1c967
GD
11904 /* HP/UX 9 (%@#!) writes to sscanf strings */
11905 tmp_version = g_strdup("$min_gtk_version");
11906 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11907 printf("%s, bad version string\n", "$min_gtk_version");
11908 exit(1);
11909 }
f79bd02d 11910
21d1c967
GD
11911 if ((gtk_major_version != $gtk_config_major_version) ||
11912 (gtk_minor_version != $gtk_config_minor_version) ||
11913 (gtk_micro_version != $gtk_config_micro_version))
11914 {
579d8138 11915 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
11916 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11917 gtk_major_version, gtk_minor_version, gtk_micro_version);
11918 printf ("*** was found! If pkg-config was correct, then it is best\n");
11919 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11920 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11921 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11922 printf("*** required on your system.\n");
11923 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11924 printf("*** to point to the correct configuration files\n");
579d8138 11925 }
21d1c967
GD
11926 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11927 (gtk_minor_version != GTK_MINOR_VERSION) ||
11928 (gtk_micro_version != GTK_MICRO_VERSION))
11929 {
11930 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11931 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11932 printf("*** library (version %d.%d.%d)\n",
11933 gtk_major_version, gtk_minor_version, gtk_micro_version);
11934 }
11935 else
11936 {
11937 if ((gtk_major_version > major) ||
11938 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11939 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11940 {
11941 return 0;
11942 }
11943 else
11944 {
11945 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11946 gtk_major_version, gtk_minor_version, gtk_micro_version);
11947 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11948 major, minor, micro);
11949 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11950 printf("***\n");
11951 printf("*** If you have already installed a sufficiently new version, this error\n");
11952 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11953 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11954 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11955 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11956 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11957 printf("*** so that the correct libraries are found at run-time))\n");
11958 }
11959 }
11960 return 1;
11961}
f79bd02d 11962
579d8138 11963EOF
b13cd66e 11964if { (eval echo configure:11965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138 11965then
21d1c967 11966 :
f79bd02d 11967else
579d8138
VS
11968 echo "configure: failed program was:" >&5
11969 cat conftest.$ac_ext >&5
11970 rm -fr conftest*
11971 no_gtk=yes
f79bd02d 11972fi
579d8138 11973rm -fr conftest*
f79bd02d 11974fi
579d8138 11975
21d1c967
GD
11976 CFLAGS="$ac_save_CFLAGS"
11977 LIBS="$ac_save_LIBS"
11978 fi
11979 fi
11980 if test "x$no_gtk" = x ; then
579d8138
VS
11981 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11982 wx_cv_lib_gtk=2.0
21d1c967 11983 else
579d8138 11984 echo "$ac_t""no" 1>&6
21d1c967
GD
11985 if test "$PKG_CONFIG" = "no" ; then
11986 echo "*** A new enough version of pkg-config was not found."
11987 echo "*** See http://pkgconfig.sourceforge.net"
11988 else
11989 if test -f conf.gtktest ; then
11990 :
11991 else
11992 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
11993 ac_save_CFLAGS="$CFLAGS"
11994 ac_save_LIBS="$LIBS"
21d1c967
GD
11995 CFLAGS="$CFLAGS $GTK_CFLAGS"
11996 LIBS="$LIBS $GTK_LIBS"
579d8138 11997 cat > conftest.$ac_ext <<EOF
b13cd66e 11998#line 11999 "configure"
f79bd02d 11999#include "confdefs.h"
21d1c967
GD
12000
12001#include <gtk/gtk.h>
12002#include <stdio.h>
f79bd02d 12003
579d8138
VS
12004int main() {
12005 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12006; return 0; }
12007EOF
b13cd66e 12008if { (eval echo configure:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 12009 rm -rf conftest*
21d1c967
GD
12010 echo "*** The test program compiled, but did not run. This usually means"
12011 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12012 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12013 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12014 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12015 echo "*** is required on your system"
12016 echo "***"
12017 echo "*** If you have an old version installed, it is best to remove it, although"
579d8138 12018 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12019else
579d8138
VS
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 rm -rf conftest*
12023 echo "*** The test program failed to compile or link. See the file config.log for the"
12024 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12025fi
579d8138 12026rm -f conftest*
21d1c967
GD
12027 CFLAGS="$ac_save_CFLAGS"
12028 LIBS="$ac_save_LIBS"
12029 fi
12030 fi
12031 GTK_CFLAGS=""
12032 GTK_LIBS=""
12033 :
12034 fi
579d8138
VS
12035
12036
21d1c967 12037 rm -f conf.gtktest
f79bd02d 12038
21d1c967 12039 fi
f79bd02d 12040
21d1c967 12041 if test -z "$wx_cv_lib_gtk"; then
579d8138 12042 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12043if test "${with_gtk_prefix+set}" = set; then
12044 withval="$with_gtk_prefix"
12045 gtk_config_prefix="$withval"
12046else
12047 gtk_config_prefix=""
579d8138 12048fi
f79bd02d 12049
21d1c967
GD
12050# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12051if test "${with_gtk_exec_prefix+set}" = set; then
12052 withval="$with_gtk_exec_prefix"
12053 gtk_config_exec_prefix="$withval"
12054else
12055 gtk_config_exec_prefix=""
579d8138
VS
12056fi
12057
21d1c967
GD
12058# Check whether --enable-gtktest or --disable-gtktest was given.
12059if test "${enable_gtktest+set}" = set; then
12060 enableval="$enable_gtktest"
579d8138 12061 :
21d1c967
GD
12062else
12063 enable_gtktest=yes
579d8138
VS
12064fi
12065
21d1c967
GD
12066
12067 for module in . $GTK_MODULES
12068 do
12069 case "$module" in
579d8138 12070 gthread)
21d1c967
GD
12071 gtk_config_args="$gtk_config_args gthread"
12072 ;;
12073 esac
12074 done
12075
12076 if test x$gtk_config_exec_prefix != x ; then
12077 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12078 if test x${GTK_CONFIG+set} != xset ; then
12079 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12080 fi
12081 fi
12082 if test x$gtk_config_prefix != x ; then
12083 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12084 if test x${GTK_CONFIG+set} != xset ; then
12085 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12086 fi
12087 fi
12088
12089 # Extract the first word of "gtk-config", so it can be a program name with args.
12090set dummy gtk-config; ac_word=$2
579d8138 12091echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 12092echo "configure:12093: checking for $ac_word" >&5
579d8138
VS
12093if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12095else
579d8138
VS
12096 case "$GTK_CONFIG" in
12097 /*)
21d1c967
GD
12098 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12099 ;;
f09359cf
VS
12100 ?:/*)
12101 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12102 ;;
21d1c967 12103 *)
f09359cf
VS
12104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12105 ac_dummy="$PATH"
12106 for ac_dir in $ac_dummy; do
579d8138
VS
12107 test -z "$ac_dir" && ac_dir=.
12108 if test -f $ac_dir/$ac_word; then
12109 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12110 break
12111 fi
12112 done
12113 IFS="$ac_save_ifs"
21d1c967
GD
12114 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12115 ;;
12116esac
12117fi
579d8138 12118GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12119if test -n "$GTK_CONFIG"; then
579d8138 12120 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12121else
579d8138 12122 echo "$ac_t""no" 1>&6
21d1c967
GD
12123fi
12124
12125 min_gtk_version=1.2.7
579d8138 12126 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b13cd66e 12127echo "configure:12128: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12128 no_gtk=""
12129 if test "$GTK_CONFIG" = "no" ; then
12130 no_gtk=yes
12131 else
12132 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12133 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12134 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12136 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12137 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12138 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12140 if test "x$enable_gtktest" = "xyes" ; then
12141 ac_save_CFLAGS="$CFLAGS"
12142 ac_save_LIBS="$LIBS"
12143 CFLAGS="$CFLAGS $GTK_CFLAGS"
12144 LIBS="$GTK_LIBS $LIBS"
12145 rm -f conf.gtktest
12146 if test "$cross_compiling" = yes; then
12147 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12148else
579d8138 12149 cat > conftest.$ac_ext <<EOF
b13cd66e 12150#line 12151 "configure"
f79bd02d
JS
12151#include "confdefs.h"
12152
21d1c967
GD
12153#include <gtk/gtk.h>
12154#include <stdio.h>
12155#include <stdlib.h>
f79bd02d 12156
579d8138 12157int
21d1c967
GD
12158main ()
12159{
12160 int major, minor, micro;
12161 char *tmp_version;
12162
12163 system ("touch conf.gtktest");
12164
12165 /* HP/UX 9 (%@#!) writes to sscanf strings */
12166 tmp_version = g_strdup("$min_gtk_version");
12167 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12168 printf("%s, bad version string\n", "$min_gtk_version");
12169 exit(1);
12170 }
90dd450c 12171
21d1c967
GD
12172 if ((gtk_major_version != $gtk_config_major_version) ||
12173 (gtk_minor_version != $gtk_config_minor_version) ||
12174 (gtk_micro_version != $gtk_config_micro_version))
12175 {
579d8138 12176 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12177 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12178 gtk_major_version, gtk_minor_version, gtk_micro_version);
12179 printf ("*** was found! If gtk-config was correct, then it is best\n");
12180 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12181 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12182 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12183 printf("*** required on your system.\n");
12184 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12185 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12186 printf("*** before re-running configure\n");
579d8138 12187 }
21d1c967
GD
12188#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12189 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12190 (gtk_minor_version != GTK_MINOR_VERSION) ||
12191 (gtk_micro_version != GTK_MICRO_VERSION))
12192 {
12193 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12194 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12195 printf("*** library (version %d.%d.%d)\n",
12196 gtk_major_version, gtk_minor_version, gtk_micro_version);
12197 }
12198#endif /* defined (GTK_MAJOR_VERSION) ... */
12199 else
12200 {
12201 if ((gtk_major_version > major) ||
12202 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12203 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12204 {
12205 return 0;
12206 }
12207 else
12208 {
12209 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12210 gtk_major_version, gtk_minor_version, gtk_micro_version);
12211 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12212 major, minor, micro);
12213 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12214 printf("***\n");
12215 printf("*** If you have already installed a sufficiently new version, this error\n");
12216 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12217 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12218 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12219 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12220 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12221 printf("*** so that the correct libraries are found at run-time))\n");
12222 }
12223 }
12224 return 1;
12225}
12226
579d8138 12227EOF
b13cd66e 12228if { (eval echo configure:12229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138 12229then
21d1c967
GD
12230 :
12231else
579d8138
VS
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12234 rm -fr conftest*
12235 no_gtk=yes
21d1c967 12236fi
579d8138 12237rm -fr conftest*
21d1c967 12238fi
579d8138 12239
21d1c967
GD
12240 CFLAGS="$ac_save_CFLAGS"
12241 LIBS="$ac_save_LIBS"
12242 fi
12243 fi
12244 if test "x$no_gtk" = x ; then
579d8138
VS
12245 echo "$ac_t""yes" 1>&6
12246 wx_cv_lib_gtk=1.2.7
21d1c967 12247 else
579d8138 12248 echo "$ac_t""no" 1>&6
21d1c967
GD
12249 if test "$GTK_CONFIG" = "no" ; then
12250 echo "*** The gtk-config script installed by GTK could not be found"
12251 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12252 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12253 echo "*** full path to gtk-config."
12254 else
12255 if test -f conf.gtktest ; then
12256 :
12257 else
12258 echo "*** Could not run GTK test program, checking why..."
12259 CFLAGS="$CFLAGS $GTK_CFLAGS"
12260 LIBS="$LIBS $GTK_LIBS"
579d8138 12261 cat > conftest.$ac_ext <<EOF
b13cd66e 12262#line 12263 "configure"
21d1c967
GD
12263#include "confdefs.h"
12264
12265#include <gtk/gtk.h>
12266#include <stdio.h>
12267
579d8138
VS
12268int main() {
12269 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12270; return 0; }
12271EOF
b13cd66e 12272if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 12273 rm -rf conftest*
21d1c967
GD
12274 echo "*** The test program compiled, but did not run. This usually means"
12275 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12276 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12277 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12278 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12279 echo "*** is required on your system"
12280 echo "***"
12281 echo "*** If you have an old version installed, it is best to remove it, although"
12282 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12283 echo "***"
12284 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12285 echo "*** came with the system with the command"
12286 echo "***"
579d8138 12287 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12288else
579d8138
VS
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 rm -rf conftest*
12292 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12293 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12294 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
579d8138 12295 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12296fi
579d8138 12297rm -f conftest*
21d1c967
GD
12298 CFLAGS="$ac_save_CFLAGS"
12299 LIBS="$ac_save_LIBS"
12300 fi
12301 fi
12302 GTK_CFLAGS=""
12303 GTK_LIBS=""
12304 :
12305 fi
579d8138
VS
12306
12307
21d1c967
GD
12308 rm -f conf.gtktest
12309
12310 fi
12311
12312 if test -z "$wx_cv_lib_gtk"; then
579d8138 12313 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12314if test "${with_gtk_prefix+set}" = set; then
12315 withval="$with_gtk_prefix"
12316 gtk_config_prefix="$withval"
12317else
12318 gtk_config_prefix=""
579d8138 12319fi
f79bd02d 12320
21d1c967
GD
12321# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12322if test "${with_gtk_exec_prefix+set}" = set; then
12323 withval="$with_gtk_exec_prefix"
12324 gtk_config_exec_prefix="$withval"
12325else
12326 gtk_config_exec_prefix=""
579d8138
VS
12327fi
12328
21d1c967
GD
12329# Check whether --enable-gtktest or --disable-gtktest was given.
12330if test "${enable_gtktest+set}" = set; then
12331 enableval="$enable_gtktest"
579d8138 12332 :
90dd450c 12333else
21d1c967 12334 enable_gtktest=yes
579d8138
VS
12335fi
12336
21d1c967
GD
12337
12338 for module in . $GTK_MODULES
12339 do
12340 case "$module" in
579d8138 12341 gthread)
21d1c967
GD
12342 gtk_config_args="$gtk_config_args gthread"
12343 ;;
12344 esac
12345 done
12346
12347 if test x$gtk_config_exec_prefix != x ; then
12348 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12349 if test x${GTK_CONFIG+set} != xset ; then
12350 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12351 fi
12352 fi
12353 if test x$gtk_config_prefix != x ; then
12354 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12355 if test x${GTK_CONFIG+set} != xset ; then
12356 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12357 fi
12358 fi
12359
12360 # Extract the first word of "gtk-config", so it can be a program name with args.
12361set dummy gtk-config; ac_word=$2
579d8138 12362echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 12363echo "configure:12364: checking for $ac_word" >&5
579d8138
VS
12364if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12365 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12366else
579d8138
VS
12367 case "$GTK_CONFIG" in
12368 /*)
21d1c967
GD
12369 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12370 ;;
f09359cf
VS
12371 ?:/*)
12372 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12373 ;;
21d1c967 12374 *)
f09359cf
VS
12375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12376 ac_dummy="$PATH"
12377 for ac_dir in $ac_dummy; do
579d8138
VS
12378 test -z "$ac_dir" && ac_dir=.
12379 if test -f $ac_dir/$ac_word; then
12380 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12381 break
12382 fi
12383 done
12384 IFS="$ac_save_ifs"
21d1c967
GD
12385 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12386 ;;
12387esac
12388fi
579d8138 12389GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12390if test -n "$GTK_CONFIG"; then
579d8138 12391 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12392else
579d8138 12393 echo "$ac_t""no" 1>&6
21d1c967
GD
12394fi
12395
12396 min_gtk_version=1.2.3
579d8138 12397 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b13cd66e 12398echo "configure:12399: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12399 no_gtk=""
12400 if test "$GTK_CONFIG" = "no" ; then
12401 no_gtk=yes
12402 else
12403 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12404 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12405 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12406 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12407 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12408 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12409 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12410 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12411 if test "x$enable_gtktest" = "xyes" ; then
12412 ac_save_CFLAGS="$CFLAGS"
12413 ac_save_LIBS="$LIBS"
12414 CFLAGS="$CFLAGS $GTK_CFLAGS"
12415 LIBS="$GTK_LIBS $LIBS"
12416 rm -f conf.gtktest
12417 if test "$cross_compiling" = yes; then
12418 echo $ac_n "cross compiling; assumed OK... $ac_c"
12419else
579d8138 12420 cat > conftest.$ac_ext <<EOF
b13cd66e 12421#line 12422 "configure"
f79bd02d 12422#include "confdefs.h"
21d1c967
GD
12423
12424#include <gtk/gtk.h>
12425#include <stdio.h>
12426#include <stdlib.h>
12427
579d8138 12428int
21d1c967
GD
12429main ()
12430{
12431 int major, minor, micro;
12432 char *tmp_version;
12433
12434 system ("touch conf.gtktest");
12435
12436 /* HP/UX 9 (%@#!) writes to sscanf strings */
12437 tmp_version = g_strdup("$min_gtk_version");
12438 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12439 printf("%s, bad version string\n", "$min_gtk_version");
12440 exit(1);
12441 }
12442
12443 if ((gtk_major_version != $gtk_config_major_version) ||
12444 (gtk_minor_version != $gtk_config_minor_version) ||
12445 (gtk_micro_version != $gtk_config_micro_version))
12446 {
579d8138 12447 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12448 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12449 gtk_major_version, gtk_minor_version, gtk_micro_version);
12450 printf ("*** was found! If gtk-config was correct, then it is best\n");
12451 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12452 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12453 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12454 printf("*** required on your system.\n");
12455 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12456 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12457 printf("*** before re-running configure\n");
579d8138 12458 }
21d1c967
GD
12459#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12460 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12461 (gtk_minor_version != GTK_MINOR_VERSION) ||
12462 (gtk_micro_version != GTK_MICRO_VERSION))
12463 {
12464 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12465 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12466 printf("*** library (version %d.%d.%d)\n",
12467 gtk_major_version, gtk_minor_version, gtk_micro_version);
12468 }
12469#endif /* defined (GTK_MAJOR_VERSION) ... */
12470 else
12471 {
12472 if ((gtk_major_version > major) ||
12473 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12474 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12475 {
12476 return 0;
12477 }
12478 else
12479 {
12480 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12481 gtk_major_version, gtk_minor_version, gtk_micro_version);
12482 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12483 major, minor, micro);
12484 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12485 printf("***\n");
12486 printf("*** If you have already installed a sufficiently new version, this error\n");
12487 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12488 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12489 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12490 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12491 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12492 printf("*** so that the correct libraries are found at run-time))\n");
12493 }
12494 }
12495 return 1;
12496}
12497
579d8138 12498EOF
b13cd66e 12499if { (eval echo configure:12500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138 12500then
21d1c967
GD
12501 :
12502else
579d8138
VS
12503 echo "configure: failed program was:" >&5
12504 cat conftest.$ac_ext >&5
12505 rm -fr conftest*
12506 no_gtk=yes
21d1c967 12507fi
579d8138 12508rm -fr conftest*
21d1c967 12509fi
579d8138 12510
21d1c967
GD
12511 CFLAGS="$ac_save_CFLAGS"
12512 LIBS="$ac_save_LIBS"
12513 fi
12514 fi
12515 if test "x$no_gtk" = x ; then
579d8138
VS
12516 echo "$ac_t""yes" 1>&6
12517 wx_cv_lib_gtk=1.2.3
21d1c967 12518 else
579d8138 12519 echo "$ac_t""no" 1>&6
21d1c967
GD
12520 if test "$GTK_CONFIG" = "no" ; then
12521 echo "*** The gtk-config script installed by GTK could not be found"
12522 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12523 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12524 echo "*** full path to gtk-config."
12525 else
12526 if test -f conf.gtktest ; then
12527 :
12528 else
12529 echo "*** Could not run GTK test program, checking why..."
12530 CFLAGS="$CFLAGS $GTK_CFLAGS"
12531 LIBS="$LIBS $GTK_LIBS"
579d8138 12532 cat > conftest.$ac_ext <<EOF
b13cd66e 12533#line 12534 "configure"
21d1c967
GD
12534#include "confdefs.h"
12535
12536#include <gtk/gtk.h>
12537#include <stdio.h>
f79bd02d 12538
579d8138
VS
12539int main() {
12540 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12541; return 0; }
12542EOF
b13cd66e 12543if { (eval echo configure:12544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 12544 rm -rf conftest*
21d1c967
GD
12545 echo "*** The test program compiled, but did not run. This usually means"
12546 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12547 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12548 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12549 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12550 echo "*** is required on your system"
12551 echo "***"
12552 echo "*** If you have an old version installed, it is best to remove it, although"
12553 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12554 echo "***"
12555 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12556 echo "*** came with the system with the command"
12557 echo "***"
579d8138 12558 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12559else
579d8138
VS
12560 echo "configure: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 rm -rf conftest*
12563 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12564 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12565 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
579d8138 12566 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12567fi
579d8138 12568rm -f conftest*
21d1c967
GD
12569 CFLAGS="$ac_save_CFLAGS"
12570 LIBS="$ac_save_LIBS"
12571 fi
12572 fi
12573 GTK_CFLAGS=""
12574 GTK_LIBS=""
12575 :
12576 fi
579d8138
VS
12577
12578
21d1c967 12579 rm -f conf.gtktest
f79bd02d 12580
21d1c967
GD
12581 fi
12582
12583 if test -z "$wx_cv_lib_gtk"; then
12584 wx_cv_lib_gtk=none
12585 else
12586 wx_cv_cflags_gtk=$GTK_CFLAGS
12587 wx_cv_libs_gtk=$GTK_LIBS
12588 fi
579d8138
VS
12589
12590
328a083c 12591fi
e07802fc 12592
579d8138 12593
21d1c967 12594 if test "$gtk_version_cached" = 1; then
579d8138 12595 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
12596 fi
12597
12598 case "$wx_cv_lib_gtk" in
12599 2.0) WXGTK20=1
12600 ;;
12601 1.2.7) WXGTK127=1
12602 WXGTK12=1
12603 ;;
12604 1.2.3) WXGTK12=1
12605 ;;
579d8138 12606 *) { echo "configure: error:
328a083c
RR
12607Please check that gtk-config is in path, the directory
12608where GTK+ libraries are installed (returned by
12609'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12610equivalent variable and GTK+ is version 1.2.3 or above.
579d8138 12611 " 1>&2; exit 1; }
21d1c967
GD
12612 ;;
12613 esac
12614
b13cd66e
VZ
12615 if test "$WXGTK20" = 1; then
12616 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12617
f09359cf
VS
12618 succeeded=no
12619
12620 if test -z "$PKG_CONFIG"; then
12621 # Extract the first word of "pkg-config", so it can be a program name with args.
12622set dummy pkg-config; ac_word=$2
12623echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 12624echo "configure:12625: checking for $ac_word" >&5
f09359cf
VS
12625if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12626 echo $ac_n "(cached) $ac_c" 1>&6
12627else
12628 case "$PKG_CONFIG" in
12629 /*)
12630 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12631 ;;
12632 ?:/*)
12633 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12634 ;;
12635 *)
12636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12637 ac_dummy="$PATH"
12638 for ac_dir in $ac_dummy; do
12639 test -z "$ac_dir" && ac_dir=.
12640 if test -f $ac_dir/$ac_word; then
12641 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12642 break
12643 fi
12644 done
12645 IFS="$ac_save_ifs"
12646 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12647 ;;
12648esac
12649fi
12650PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12651if test -n "$PKG_CONFIG"; then
12652 echo "$ac_t""$PKG_CONFIG" 1>&6
12653else
12654 echo "$ac_t""no" 1>&6
12655fi
12656
12657 fi
12658
12659 if test "$PKG_CONFIG" = "no" ; then
12660 echo "*** The pkg-config script could not be found. Make sure it is"
12661 echo "*** in your path, or set the PKG_CONFIG environment variable"
12662 echo "*** to the full path to pkg-config."
12663 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12664 else
12665 PKG_CONFIG_MIN_VERSION=0.9.0
12666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12667 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
b13cd66e 12668echo "configure:12669: checking for pangoft2" >&5
f09359cf
VS
12669
12670 if $PKG_CONFIG --exists "pangoft2" ; then
12671 echo "$ac_t""yes" 1>&6
12672 succeeded=yes
12673
12674 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
b13cd66e 12675echo "configure:12676: checking PANGOFT2_CFLAGS" >&5
f09359cf
VS
12676 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12677 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
12678
12679 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
b13cd66e 12680echo "configure:12681: checking PANGOFT2_LIBS" >&5
f09359cf
VS
12681 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12682 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
12683 else
12684 PANGOFT2_CFLAGS=""
12685 PANGOFT2_LIBS=""
12686 ## If we have a custom action on failure, don't print errors, but
12687 ## do set a variable so people can do so.
12688 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12689
12690 fi
12691
12692
12693
12694 else
12695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12697 fi
12698 fi
12699
12700 if test $succeeded = yes; then
12701
b13cd66e
VZ
12702 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12703 LIBS="$LIBS $PANGOFT2_LIBS"
12704
f09359cf
VS
12705 else
12706
b13cd66e
VZ
12707 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12708 wxUSE_PRINTING_ARCHITECTURE="no"
12709
f09359cf 12710
f09359cf
VS
12711 fi
12712
b13cd66e 12713 fi
f09359cf
VS
12714 fi
12715
21d1c967
GD
12716 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12717 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12718
12719 AFMINSTALL=afminstall
12720 TOOLKIT=GTK
12721 GUIDIST=GTK_DIST
12722
579d8138 12723 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
b13cd66e 12724echo "configure:12725: checking for gdk_im_open in -lgdk" >&5
579d8138
VS
12725ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12727 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12728else
579d8138 12729 ac_save_LIBS="$LIBS"
21d1c967 12730LIBS="-lgdk $LIBS"
579d8138 12731cat > conftest.$ac_ext <<EOF
b13cd66e 12732#line 12733 "configure"
90dd450c
VZ
12733#include "confdefs.h"
12734/* Override any gcc2 internal prototype to avoid an error. */
12735/* We use char because int might match the return type of a gcc2
579d8138
VS
12736 builtin and then its argument prototype would still apply. */
12737char gdk_im_open();
12738
12739int main() {
12740gdk_im_open()
12741; return 0; }
12742EOF
b13cd66e 12743if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
12744 rm -rf conftest*
12745 eval "ac_cv_lib_$ac_lib_var=yes"
12746else
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 rm -rf conftest*
12750 eval "ac_cv_lib_$ac_lib_var=no"
12751fi
12752rm -f conftest*
12753LIBS="$ac_save_LIBS"
12754
12755fi
12756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12757 echo "$ac_t""yes" 1>&6
12758 cat >> confdefs.h <<\EOF
21d1c967
GD
12759#define HAVE_XIM 1
12760EOF
12761
579d8138
VS
12762else
12763 echo "$ac_t""no" 1>&6
90dd450c 12764fi
1e6feb95 12765
21d1c967 12766 fi
1e6feb95 12767
21d1c967 12768 if test "$wxUSE_MGL" = 1; then
579d8138 12769 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
b13cd66e 12770echo "configure:12771: checking for SciTech MGL library" >&5
21d1c967 12771 if test "x$MGL_ROOT" = x ; then
579d8138
VS
12772 echo "$ac_t""not found" 1>&6
12773 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 12774 else
579d8138 12775 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
12776 fi
12777
12778 case "${host}" in
12779 *-*-linux* )
12780 mgl_os=linux/gcc/glibc
12781 ;;
12782 *-pc-msdosdjgpp )
12783 mgl_os=dos32/dj2
12784 ;;
12785 *)
579d8138 12786 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 12787 esac
1e6feb95 12788
21d1c967 12789 mgl_lib_type=""
3fcdd07b 12790
21d1c967
GD
12791 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12792 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12793 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12794 mgl_lib_type=debug
12795 fi
12796 fi
12797 if test "x$mgl_lib_type" = x ; then
12798 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12799 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12800 mgl_lib_type=release
12801 else
579d8138 12802 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
21d1c967 12803 fi
90dd450c 12804 fi
2224580a 12805
1d1b75ac
VZ
12806 wxUSE_UNIVERSAL="yes"
12807
21d1c967
GD
12808 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12809 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12810
90dd450c 12811 AFMINSTALL=afminstall
21d1c967
GD
12812 TOOLKIT=MGL
12813 GUIDIST=MGL_DIST
12814 fi
dad6c0ea 12815
21d1c967 12816 if test "$wxUSE_MICROWIN" = 1; then
579d8138 12817 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
b13cd66e 12818echo "configure:12819: checking for MicroWindows" >&5
21d1c967 12819 if test "x$MICROWINDOWS" = x ; then
579d8138
VS
12820 echo "$ac_t""not found" 1>&6
12821 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 12822 else
579d8138 12823 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 12824 fi
f6bcfd97 12825
21d1c967 12826 if test -f $MICROWINDOWS/lib/libmwin.a; then
579d8138 12827 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 12828 else
579d8138 12829 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12830 fi
0b2effe9 12831
21d1c967
GD
12832 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12833 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12834
1d1b75ac
VZ
12835 wxUSE_UNIVERSAL="yes"
12836
21d1c967
GD
12837 AFMINSTALL=afminstall
12838 TOOLKIT=MICROWIN
12839 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
12840
12841 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 12842 fi
f6bcfd97 12843
21d1c967 12844 if test "$wxUSE_X11" = 1; then
579d8138
VS
12845 # If we find X, set shell vars x_includes and x_libraries to the
12846# paths, otherwise set no_x=yes.
12847# Uses ac_ vars as temps to allow command line to override cache and checks.
12848# --without-x overrides everything else, but does not touch the cache.
12849echo $ac_n "checking for X""... $ac_c" 1>&6
b13cd66e 12850echo "configure:12851: checking for X" >&5
d8356fa3 12851
21d1c967
GD
12852# Check whether --with-x or --without-x was given.
12853if test "${with_x+set}" = set; then
12854 withval="$with_x"
579d8138
VS
12855 :
12856fi
2224580a 12857
21d1c967
GD
12858# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12859if test "x$with_x" = xno; then
12860 # The user explicitly disabled X.
12861 have_x=disabled
12862else
12863 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12864 # Both variables are already set.
12865 have_x=yes
12866 else
579d8138
VS
12867if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12868 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
12869else
12870 # One or both of the vars are not set, and there is no cached value.
579d8138
VS
12871ac_x_includes=NO ac_x_libraries=NO
12872rm -fr conftestdir
12873if mkdir conftestdir; then
12874 cd conftestdir
21d1c967 12875 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
579d8138 12876 cat > Imakefile <<'EOF'
21d1c967
GD
12877acfindx:
12878 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12879EOF
12880 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12882 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12883 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12884 for ac_extension in a so sl; do
12885 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
579d8138 12886 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
12887 ac_im_usrlibdir=$ac_im_libdir; break
12888 fi
12889 done
12890 # Screen out bogus values from the imake configuration. They are
12891 # bogus both because they are the default anyway, and because
12892 # using them would break gcc on systems where it needs fixed includes.
579d8138 12893 case "$ac_im_incroot" in
21d1c967 12894 /usr/include) ;;
579d8138 12895 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 12896 esac
579d8138 12897 case "$ac_im_usrlibdir" in
21d1c967 12898 /usr/lib | /lib) ;;
579d8138 12899 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
12900 esac
12901 fi
12902 cd ..
579d8138 12903 rm -fr conftestdir
21d1c967 12904fi
10f2d63a 12905
579d8138
VS
12906if test "$ac_x_includes" = NO; then
12907 # Guess where to find include files, by looking for this one X11 .h file.
12908 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12909
21d1c967 12910 # First, try using that file with no special directory specified.
579d8138 12911cat > conftest.$ac_ext <<EOF
b13cd66e 12912#line 12913 "configure"
21d1c967 12913#include "confdefs.h"
579d8138
VS
12914#include <$x_direct_test_include>
12915EOF
12916ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 12917{ (eval echo configure:12918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 12918ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
12919if test -z "$ac_err"; then
12920 rm -rf conftest*
21d1c967
GD
12921 # We can compile using X headers with no special include directory.
12922ac_x_includes=
90dd450c 12923else
579d8138
VS
12924 echo "$ac_err" >&5
12925 echo "configure: failed program was:" >&5
90dd450c 12926 cat conftest.$ac_ext >&5
579d8138
VS
12927 rm -rf conftest*
12928 # Look for the header file in a standard set of common directories.
12929# Check X11 before X11Rn because it is often a symlink to the current release.
12930 for ac_dir in \
12931 /usr/X11/include \
12932 /usr/X11R6/include \
12933 /usr/X11R5/include \
12934 /usr/X11R4/include \
12935 \
12936 /usr/include/X11 \
12937 /usr/include/X11R6 \
12938 /usr/include/X11R5 \
12939 /usr/include/X11R4 \
12940 \
12941 /usr/local/X11/include \
12942 /usr/local/X11R6/include \
12943 /usr/local/X11R5/include \
12944 /usr/local/X11R4/include \
12945 \
12946 /usr/local/include/X11 \
12947 /usr/local/include/X11R6 \
12948 /usr/local/include/X11R5 \
12949 /usr/local/include/X11R4 \
12950 \
12951 /usr/X386/include \
12952 /usr/x386/include \
12953 /usr/XFree86/include/X11 \
12954 \
12955 /usr/include \
12956 /usr/local/include \
12957 /usr/unsupported/include \
12958 /usr/athena/include \
12959 /usr/local/x11r5/include \
12960 /usr/lpp/Xamples/include \
12961 \
12962 /usr/openwin/include \
12963 /usr/openwin/share/include \
12964 ; \
12965 do
12966 if test -r "$ac_dir/$x_direct_test_include"; then
12967 ac_x_includes=$ac_dir
12968 break
12969 fi
12970 done
3a922bb4 12971fi
579d8138
VS
12972rm -f conftest*
12973fi # $ac_x_includes = NO
10f2d63a 12974
579d8138 12975if test "$ac_x_libraries" = NO; then
21d1c967 12976 # Check for the libraries.
579d8138
VS
12977
12978 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12979 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12980
21d1c967
GD
12981 # See if we find them without any special options.
12982 # Don't add to $LIBS permanently.
579d8138
VS
12983 ac_save_LIBS="$LIBS"
12984 LIBS="-l$x_direct_test_library $LIBS"
12985cat > conftest.$ac_ext <<EOF
b13cd66e 12986#line 12987 "configure"
3a922bb4 12987#include "confdefs.h"
579d8138
VS
12988
12989int main() {
12990${x_direct_test_function}()
12991; return 0; }
12992EOF
b13cd66e 12993if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
12994 rm -rf conftest*
12995 LIBS="$ac_save_LIBS"
21d1c967
GD
12996# We can link X programs with no special library path.
12997ac_x_libraries=
3a922bb4 12998else
579d8138
VS
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 rm -rf conftest*
13002 LIBS="$ac_save_LIBS"
13003# First see if replacing the include by lib works.
13004# Check X11 before X11Rn because it is often a symlink to the current release.
13005for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13006 /usr/X11/lib \
13007 /usr/X11R6/lib \
13008 /usr/X11R5/lib \
13009 /usr/X11R4/lib \
13010 \
13011 /usr/lib/X11 \
13012 /usr/lib/X11R6 \
13013 /usr/lib/X11R5 \
13014 /usr/lib/X11R4 \
13015 \
13016 /usr/local/X11/lib \
13017 /usr/local/X11R6/lib \
13018 /usr/local/X11R5/lib \
13019 /usr/local/X11R4/lib \
13020 \
13021 /usr/local/lib/X11 \
13022 /usr/local/lib/X11R6 \
13023 /usr/local/lib/X11R5 \
13024 /usr/local/lib/X11R4 \
13025 \
13026 /usr/X386/lib \
13027 /usr/x386/lib \
13028 /usr/XFree86/lib/X11 \
13029 \
13030 /usr/lib \
13031 /usr/local/lib \
13032 /usr/unsupported/lib \
13033 /usr/athena/lib \
13034 /usr/local/x11r5/lib \
13035 /usr/lpp/Xamples/lib \
13036 /lib/usr/lib/X11 \
13037 \
13038 /usr/openwin/lib \
13039 /usr/openwin/share/lib \
13040 ; \
21d1c967
GD
13041do
13042 for ac_extension in a so sl; do
579d8138 13043 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13044 ac_x_libraries=$ac_dir
13045 break 2
13046 fi
13047 done
13048done
3a922bb4 13049fi
579d8138
VS
13050rm -f conftest*
13051fi # $ac_x_libraries = NO
90dd450c 13052
579d8138 13053if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13054 # Didn't find X anywhere. Cache the known absence of X.
13055 ac_cv_have_x="have_x=no"
13056else
13057 # Record where we found X for the cache.
13058 ac_cv_have_x="have_x=yes \
13059 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13060fi
21d1c967
GD
13061fi
13062 fi
13063 eval "$ac_cv_have_x"
13064fi # $with_x != no
90dd450c 13065
21d1c967 13066if test "$have_x" != yes; then
579d8138 13067 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13068 no_x=yes
13069else
13070 # If each of the values was on the command line, it overrides each guess.
13071 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13072 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13073 # Update the cache value to reflect the command line values.
13074 ac_cv_have_x="have_x=yes \
13075 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
579d8138 13076 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13077fi
90dd450c 13078
21d1c967 13079if test "$no_x" = yes; then
90dd450c 13080 # Not all programs may use this symbol, but it does not hurt to define it.
579d8138 13081 cat >> confdefs.h <<\EOF
90dd450c
VZ
13082#define X_DISPLAY_MISSING 1
13083EOF
13084
13085 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13086else
13087 if test -n "$x_includes"; then
13088 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13089 fi
3a922bb4 13090
90dd450c
VZ
13091 # It would also be nice to do this for all -L options, not just this one.
13092 if test -n "$x_libraries"; then
13093 X_LIBS="$X_LIBS -L$x_libraries"
13094 # For Solaris; some versions of Sun CC require a space after -R and
13095 # others require no space. Words are not sufficient . . . .
579d8138 13096 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13097 "SunOS 5"*)
579d8138 13098 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b13cd66e 13099echo "configure:13100: checking whether -R must be followed by a space" >&5
579d8138
VS
13100 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13101 cat > conftest.$ac_ext <<EOF
b13cd66e 13102#line 13103 "configure"
90dd450c
VZ
13103#include "confdefs.h"
13104
579d8138 13105int main() {
90dd450c 13106
579d8138
VS
13107; return 0; }
13108EOF
b13cd66e 13109if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 13110 rm -rf conftest*
90dd450c 13111 ac_R_nospace=yes
3a922bb4 13112else
579d8138
VS
13113 echo "configure: failed program was:" >&5
13114 cat conftest.$ac_ext >&5
13115 rm -rf conftest*
13116 ac_R_nospace=no
3a922bb4 13117fi
579d8138 13118rm -f conftest*
90dd450c 13119 if test $ac_R_nospace = yes; then
579d8138 13120 echo "$ac_t""no" 1>&6
90dd450c
VZ
13121 X_LIBS="$X_LIBS -R$x_libraries"
13122 else
13123 LIBS="$ac_xsave_LIBS -R $x_libraries"
579d8138 13124 cat > conftest.$ac_ext <<EOF
b13cd66e 13125#line 13126 "configure"
90dd450c 13126#include "confdefs.h"
3a922bb4 13127
579d8138 13128int main() {
6f754473 13129
579d8138
VS
13130; return 0; }
13131EOF
b13cd66e 13132if { (eval echo configure:13133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 13133 rm -rf conftest*
90dd450c
VZ
13134 ac_R_space=yes
13135else
579d8138
VS
13136 echo "configure: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13138 rm -rf conftest*
13139 ac_R_space=no
90dd450c 13140fi
579d8138 13141rm -f conftest*
90dd450c 13142 if test $ac_R_space = yes; then
579d8138 13143 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13144 X_LIBS="$X_LIBS -R $x_libraries"
13145 else
579d8138 13146 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13147 fi
13148 fi
579d8138 13149 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13150 esac
13151 fi
13152
13153 # Check for system-dependent libraries X programs must link with.
13154 # Do this before checking for the system-independent R6 libraries
13155 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13156
90dd450c
VZ
13157 if test "$ISC" = yes; then
13158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13159 else
579d8138
VS
13160 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13161 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13162 # the Alpha needs dnet_stub (dnet does not exist).
579d8138 13163 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b13cd66e 13164echo "configure:13165: checking for dnet_ntoa in -ldnet" >&5
579d8138
VS
13165ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13166if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13167 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 13168else
579d8138 13169 ac_save_LIBS="$LIBS"
328a083c 13170LIBS="-ldnet $LIBS"
579d8138 13171cat > conftest.$ac_ext <<EOF
b13cd66e 13172#line 13173 "configure"
328a083c 13173#include "confdefs.h"
328a083c 13174/* Override any gcc2 internal prototype to avoid an error. */
328a083c 13175/* We use char because int might match the return type of a gcc2
579d8138
VS
13176 builtin and then its argument prototype would still apply. */
13177char dnet_ntoa();
13178
13179int main() {
13180dnet_ntoa()
13181; return 0; }
13182EOF
b13cd66e 13183if { (eval echo configure:13184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13184 rm -rf conftest*
13185 eval "ac_cv_lib_$ac_lib_var=yes"
13186else
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13189 rm -rf conftest*
13190 eval "ac_cv_lib_$ac_lib_var=no"
13191fi
13192rm -f conftest*
13193LIBS="$ac_save_LIBS"
13194
13195fi
13196if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13197 echo "$ac_t""yes" 1>&6
90dd450c 13198 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
579d8138
VS
13199else
13200 echo "$ac_t""no" 1>&6
3a922bb4
RL
13201fi
13202
90dd450c 13203 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
579d8138 13204 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b13cd66e 13205echo "configure:13206: checking for dnet_ntoa in -ldnet_stub" >&5
579d8138
VS
13206ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13209else
579d8138 13210 ac_save_LIBS="$LIBS"
90dd450c 13211LIBS="-ldnet_stub $LIBS"
579d8138 13212cat > conftest.$ac_ext <<EOF
b13cd66e 13213#line 13214 "configure"
90dd450c
VZ
13214#include "confdefs.h"
13215/* Override any gcc2 internal prototype to avoid an error. */
13216/* We use char because int might match the return type of a gcc2
579d8138
VS
13217 builtin and then its argument prototype would still apply. */
13218char dnet_ntoa();
13219
13220int main() {
13221dnet_ntoa()
13222; return 0; }
13223EOF
b13cd66e 13224if { (eval echo configure:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13225 rm -rf conftest*
13226 eval "ac_cv_lib_$ac_lib_var=yes"
13227else
13228 echo "configure: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13230 rm -rf conftest*
13231 eval "ac_cv_lib_$ac_lib_var=no"
13232fi
13233rm -f conftest*
13234LIBS="$ac_save_LIBS"
13235
13236fi
13237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13238 echo "$ac_t""yes" 1>&6
90dd450c 13239 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
579d8138
VS
13240else
13241 echo "$ac_t""no" 1>&6
3a922bb4
RL
13242fi
13243
90dd450c 13244 fi
978f1259 13245
90dd450c
VZ
13246 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13247 # to get the SysV transport functions.
579d8138 13248 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13249 # needs -lnsl.
13250 # The nsl library prevents programs from opening the X display
579d8138
VS
13251 # on Irix 5.2, according to dickey@clark.net.
13252 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b13cd66e 13253echo "configure:13254: checking for gethostbyname" >&5
579d8138
VS
13254if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13255 echo $ac_n "(cached) $ac_c" 1>&6
13256else
13257 cat > conftest.$ac_ext <<EOF
b13cd66e 13258#line 13259 "configure"
90dd450c
VZ
13259#include "confdefs.h"
13260/* System header to define __stub macros and hopefully few prototypes,
579d8138 13261 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13262#include <assert.h>
13263/* Override any gcc2 internal prototype to avoid an error. */
13264/* We use char because int might match the return type of a gcc2
579d8138
VS
13265 builtin and then its argument prototype would still apply. */
13266char gethostbyname();
13267
13268int main() {
978f1259 13269
90dd450c
VZ
13270/* The GNU C library defines this for functions which it implements
13271 to always fail with ENOSYS. Some functions are actually named
13272 something starting with __ and the normal name is an alias. */
13273#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13274choke me
13275#else
579d8138 13276gethostbyname();
90dd450c 13277#endif
978f1259 13278
579d8138
VS
13279; return 0; }
13280EOF
b13cd66e 13281if { (eval echo configure:13282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13282 rm -rf conftest*
13283 eval "ac_cv_func_gethostbyname=yes"
13284else
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13287 rm -rf conftest*
13288 eval "ac_cv_func_gethostbyname=no"
13289fi
13290rm -f conftest*
13291fi
13292
13293if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13294 echo "$ac_t""yes" 1>&6
13295 :
13296else
13297 echo "$ac_t""no" 1>&6
13298fi
698dcdb6 13299
90dd450c 13300 if test $ac_cv_func_gethostbyname = no; then
579d8138 13301 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b13cd66e 13302echo "configure:13303: checking for gethostbyname in -lnsl" >&5
579d8138
VS
13303ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13305 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13306else
579d8138 13307 ac_save_LIBS="$LIBS"
90dd450c 13308LIBS="-lnsl $LIBS"
579d8138 13309cat > conftest.$ac_ext <<EOF
b13cd66e 13310#line 13311 "configure"
90dd450c
VZ
13311#include "confdefs.h"
13312/* Override any gcc2 internal prototype to avoid an error. */
13313/* We use char because int might match the return type of a gcc2
579d8138
VS
13314 builtin and then its argument prototype would still apply. */
13315char gethostbyname();
55e80573 13316
579d8138
VS
13317int main() {
13318gethostbyname()
13319; return 0; }
13320EOF
b13cd66e 13321if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13322 rm -rf conftest*
13323 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c 13324else
579d8138
VS
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 eval "ac_cv_lib_$ac_lib_var=no"
13329fi
13330rm -f conftest*
13331LIBS="$ac_save_LIBS"
328a083c 13332
579d8138
VS
13333fi
13334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13335 echo "$ac_t""yes" 1>&6
13336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13337else
13338 echo "$ac_t""no" 1>&6
90dd450c 13339fi
b12915c1 13340
90dd450c
VZ
13341 fi
13342
13343 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13344 # socket/setsockopt and other routines are undefined under SCO ODT
13345 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
579d8138
VS
13346 # on later versions), says simon@lia.di.epfl.ch: it contains
13347 # gethostby* variants that don't use the nameserver (or something).
13348 # -lsocket must be given before -lnsl if both are needed.
13349 # We assume that if connect needs -lnsl, so does gethostbyname.
13350 echo $ac_n "checking for connect""... $ac_c" 1>&6
b13cd66e 13351echo "configure:13352: checking for connect" >&5
579d8138
VS
13352if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13353 echo $ac_n "(cached) $ac_c" 1>&6
13354else
13355 cat > conftest.$ac_ext <<EOF
b13cd66e 13356#line 13357 "configure"
55e80573 13357#include "confdefs.h"
90dd450c 13358/* System header to define __stub macros and hopefully few prototypes,
579d8138 13359 which can conflict with char connect(); below. */
90dd450c
VZ
13360#include <assert.h>
13361/* Override any gcc2 internal prototype to avoid an error. */
13362/* We use char because int might match the return type of a gcc2
579d8138
VS
13363 builtin and then its argument prototype would still apply. */
13364char connect();
13365
13366int main() {
55e80573 13367
90dd450c
VZ
13368/* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371#if defined (__stub_connect) || defined (__stub___connect)
13372choke me
13373#else
579d8138 13374connect();
90dd450c
VZ
13375#endif
13376
579d8138
VS
13377; return 0; }
13378EOF
b13cd66e 13379if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13380 rm -rf conftest*
13381 eval "ac_cv_func_connect=yes"
13382else
13383 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 rm -rf conftest*
13386 eval "ac_cv_func_connect=no"
13387fi
13388rm -f conftest*
13389fi
13390
13391if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13392 echo "$ac_t""yes" 1>&6
13393 :
13394else
13395 echo "$ac_t""no" 1>&6
13396fi
55e80573 13397
90dd450c 13398 if test $ac_cv_func_connect = no; then
579d8138 13399 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b13cd66e 13400echo "configure:13401: checking for connect in -lsocket" >&5
579d8138
VS
13401ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13404else
579d8138 13405 ac_save_LIBS="$LIBS"
90dd450c 13406LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
579d8138 13407cat > conftest.$ac_ext <<EOF
b13cd66e 13408#line 13409 "configure"
90dd450c
VZ
13409#include "confdefs.h"
13410/* Override any gcc2 internal prototype to avoid an error. */
13411/* We use char because int might match the return type of a gcc2
579d8138
VS
13412 builtin and then its argument prototype would still apply. */
13413char connect();
13414
13415int main() {
13416connect()
13417; return 0; }
13418EOF
b13cd66e 13419if { (eval echo configure:13420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13420 rm -rf conftest*
13421 eval "ac_cv_lib_$ac_lib_var=yes"
13422else
13423 echo "configure: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13425 rm -rf conftest*
13426 eval "ac_cv_lib_$ac_lib_var=no"
13427fi
13428rm -f conftest*
13429LIBS="$ac_save_LIBS"
13430
13431fi
13432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
90dd450c 13434 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
579d8138
VS
13435else
13436 echo "$ac_t""no" 1>&6
90dd450c 13437fi
77e13408 13438
90dd450c 13439 fi
25d0687a 13440
579d8138
VS
13441 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13442 echo $ac_n "checking for remove""... $ac_c" 1>&6
b13cd66e 13443echo "configure:13444: checking for remove" >&5
579d8138
VS
13444if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13445 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13446else
579d8138 13447 cat > conftest.$ac_ext <<EOF
b13cd66e 13448#line 13449 "configure"
90dd450c
VZ
13449#include "confdefs.h"
13450/* System header to define __stub macros and hopefully few prototypes,
579d8138 13451 which can conflict with char remove(); below. */
90dd450c
VZ
13452#include <assert.h>
13453/* Override any gcc2 internal prototype to avoid an error. */
13454/* We use char because int might match the return type of a gcc2
579d8138
VS
13455 builtin and then its argument prototype would still apply. */
13456char remove();
13457
13458int main() {
55e80573 13459
90dd450c
VZ
13460/* The GNU C library defines this for functions which it implements
13461 to always fail with ENOSYS. Some functions are actually named
13462 something starting with __ and the normal name is an alias. */
13463#if defined (__stub_remove) || defined (__stub___remove)
13464choke me
13465#else
579d8138 13466remove();
90dd450c 13467#endif
55e80573 13468
579d8138
VS
13469; return 0; }
13470EOF
b13cd66e 13471if { (eval echo configure:13472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13472 rm -rf conftest*
13473 eval "ac_cv_func_remove=yes"
13474else
13475 echo "configure: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 rm -rf conftest*
13478 eval "ac_cv_func_remove=no"
13479fi
13480rm -f conftest*
13481fi
13482
13483if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13484 echo "$ac_t""yes" 1>&6
13485 :
13486else
13487 echo "$ac_t""no" 1>&6
13488fi
10f2d63a 13489
90dd450c 13490 if test $ac_cv_func_remove = no; then
579d8138 13491 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b13cd66e 13492echo "configure:13493: checking for remove in -lposix" >&5
579d8138
VS
13493ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13494if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13495 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13496else
579d8138 13497 ac_save_LIBS="$LIBS"
90dd450c 13498LIBS="-lposix $LIBS"
579d8138 13499cat > conftest.$ac_ext <<EOF
b13cd66e 13500#line 13501 "configure"
90dd450c
VZ
13501#include "confdefs.h"
13502/* Override any gcc2 internal prototype to avoid an error. */
13503/* We use char because int might match the return type of a gcc2
579d8138
VS
13504 builtin and then its argument prototype would still apply. */
13505char remove();
13506
13507int main() {
13508remove()
13509; return 0; }
13510EOF
b13cd66e 13511if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13512 rm -rf conftest*
13513 eval "ac_cv_lib_$ac_lib_var=yes"
13514else
13515 echo "configure: failed program was:" >&5
13516 cat conftest.$ac_ext >&5
13517 rm -rf conftest*
13518 eval "ac_cv_lib_$ac_lib_var=no"
13519fi
13520rm -f conftest*
13521LIBS="$ac_save_LIBS"
13522
13523fi
13524if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13525 echo "$ac_t""yes" 1>&6
90dd450c 13526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
579d8138
VS
13527else
13528 echo "$ac_t""no" 1>&6
90dd450c 13529fi
f6bcfd97 13530
6fa882bd
RR
13531 fi
13532
90dd450c 13533 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
579d8138 13534 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b13cd66e 13535echo "configure:13536: checking for shmat" >&5
579d8138
VS
13536if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13537 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13538else
579d8138 13539 cat > conftest.$ac_ext <<EOF
b13cd66e 13540#line 13541 "configure"
90dd450c
VZ
13541#include "confdefs.h"
13542/* System header to define __stub macros and hopefully few prototypes,
579d8138 13543 which can conflict with char shmat(); below. */
90dd450c
VZ
13544#include <assert.h>
13545/* Override any gcc2 internal prototype to avoid an error. */
13546/* We use char because int might match the return type of a gcc2
579d8138
VS
13547 builtin and then its argument prototype would still apply. */
13548char shmat();
13549
13550int main() {
3a922bb4 13551
90dd450c
VZ
13552/* The GNU C library defines this for functions which it implements
13553 to always fail with ENOSYS. Some functions are actually named
13554 something starting with __ and the normal name is an alias. */
13555#if defined (__stub_shmat) || defined (__stub___shmat)
13556choke me
13557#else
579d8138 13558shmat();
90dd450c 13559#endif
10f2d63a 13560
579d8138
VS
13561; return 0; }
13562EOF
b13cd66e 13563if { (eval echo configure:13564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13564 rm -rf conftest*
13565 eval "ac_cv_func_shmat=yes"
13566else
13567 echo "configure: failed program was:" >&5
13568 cat conftest.$ac_ext >&5
13569 rm -rf conftest*
13570 eval "ac_cv_func_shmat=no"
13571fi
13572rm -f conftest*
13573fi
13574
13575if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13576 echo "$ac_t""yes" 1>&6
13577 :
13578else
13579 echo "$ac_t""no" 1>&6
13580fi
d08b457b 13581
90dd450c 13582 if test $ac_cv_func_shmat = no; then
579d8138 13583 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b13cd66e 13584echo "configure:13585: checking for shmat in -lipc" >&5
579d8138
VS
13585ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13586if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13587 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 13588else
579d8138 13589 ac_save_LIBS="$LIBS"
90dd450c 13590LIBS="-lipc $LIBS"
579d8138 13591cat > conftest.$ac_ext <<EOF
b13cd66e 13592#line 13593 "configure"
90dd450c
VZ
13593#include "confdefs.h"
13594/* Override any gcc2 internal prototype to avoid an error. */
13595/* We use char because int might match the return type of a gcc2
579d8138
VS
13596 builtin and then its argument prototype would still apply. */
13597char shmat();
13598
13599int main() {
13600shmat()
13601; return 0; }
13602EOF
b13cd66e 13603if { (eval echo configure:13604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13604 rm -rf conftest*
13605 eval "ac_cv_lib_$ac_lib_var=yes"
13606else
13607 echo "configure: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13609 rm -rf conftest*
13610 eval "ac_cv_lib_$ac_lib_var=no"
13611fi
13612rm -f conftest*
13613LIBS="$ac_save_LIBS"
13614
13615fi
13616if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13617 echo "$ac_t""yes" 1>&6
90dd450c 13618 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
579d8138
VS
13619else
13620 echo "$ac_t""no" 1>&6
d08b457b
GD
13621fi
13622
d558c907 13623 fi
90dd450c 13624 fi
3a922bb4 13625
90dd450c 13626 # Check for libraries that X11R6 Xt/Xaw programs need.
579d8138 13627 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
13628 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13629 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13630 # check for ICE first), but we must link in the order -lSM -lICE or
13631 # we get undefined symbols. So assume we have SM if we have ICE.
13632 # These have to be linked with before -lX11, unlike the other
13633 # libraries we check for below, so use a different variable.
579d8138
VS
13634 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13635 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b13cd66e 13636echo "configure:13637: checking for IceConnectionNumber in -lICE" >&5
579d8138
VS
13637ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13639 echo $ac_n "(cached) $ac_c" 1>&6
13640else
13641 ac_save_LIBS="$LIBS"
f09359cf 13642LIBS="-lICE $X_EXTRA_LIBS $LIBS"
579d8138 13643cat > conftest.$ac_ext <<EOF
b13cd66e 13644#line 13645 "configure"
9cfadba2 13645#include "confdefs.h"
90dd450c
VZ
13646/* Override any gcc2 internal prototype to avoid an error. */
13647/* We use char because int might match the return type of a gcc2
579d8138
VS
13648 builtin and then its argument prototype would still apply. */
13649char IceConnectionNumber();
13650
13651int main() {
13652IceConnectionNumber()
13653; return 0; }
13654EOF
b13cd66e 13655if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13656 rm -rf conftest*
13657 eval "ac_cv_lib_$ac_lib_var=yes"
13658else
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 rm -rf conftest*
13662 eval "ac_cv_lib_$ac_lib_var=no"
13663fi
13664rm -f conftest*
13665LIBS="$ac_save_LIBS"
13666
13667fi
13668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13669 echo "$ac_t""yes" 1>&6
90dd450c 13670 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
579d8138
VS
13671else
13672 echo "$ac_t""no" 1>&6
9cfadba2 13673fi
10f2d63a 13674
579d8138 13675 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
13676
13677fi
13678
579d8138 13679
90dd450c 13680 if test "$no_x" = "yes"; then
579d8138 13681 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
13682 fi
13683
13684 GUI_TK_LIBRARY="$X_LIBS"
13685 TOOLKIT_INCLUDE="$X_CFLAGS"
13686 AFMINSTALL=afminstall
13687 COMPILED_X_PROGRAM=0
13688
21d1c967 13689 if test "$wxUSE_NANOX" = "yes"; then
579d8138 13690 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
b13cd66e 13691echo "configure:13692: checking for MicroWindows/NanoX distribution" >&5
21d1c967 13692 if test "x$MICROWIN" = x ; then
579d8138
VS
13693 echo "$ac_t""not found" 1>&6
13694 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13695 else
579d8138
VS
13696 echo "$ac_t""$MICROWIN" 1>&6
13697 cat >> confdefs.h <<\EOF
21d1c967 13698#define wxUSE_NANOX 1
698dcdb6 13699EOF
21d1c967 13700
90dd450c
VZ
13701 fi
13702 fi
13703
13704 xpm_link=
579d8138 13705 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b13cd66e 13706echo "configure:13707: checking for Xpm library" >&5
579d8138 13707
90dd450c
VZ
13708ac_find_libraries=
13709for ac_dir in $SEARCH_LIB;
13710 do
13711 for ac_extension in a so sl dylib; do
13712 if test -f "$ac_dir/libXpm.$ac_extension"; then
13713 ac_find_libraries=$ac_dir
13714 break 2
13715 fi
13716 done
13717 done
13718
13719 if test "$ac_find_libraries" != "" ; then
579d8138 13720
90dd450c
VZ
13721 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13722 result=$?
13723 if test $result = 0; then
13724 ac_path_to_link=""
13725 else
13726 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13727 fi
90dd450c 13728
21d1c967
GD
13729 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13730 xpm_link=" -lXpm"
579d8138 13731 cat >> confdefs.h <<\EOF
21d1c967
GD
13732#define wxHAVE_LIB_XPM 1
13733EOF
90dd450c 13734
579d8138 13735 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 13736 else
579d8138 13737 cat > conftest.$ac_ext <<EOF
b13cd66e 13738#line 13739 "configure"
21d1c967 13739#include "confdefs.h"
90dd450c 13740
21d1c967 13741 #include <X11/xpm.h>
579d8138
VS
13742
13743int main() {
6f72b082 13744
21d1c967
GD
13745 int version;
13746 version = XpmLibraryVersion();
579d8138
VS
13747
13748; return 0; }
13749EOF
b13cd66e 13750if { (eval echo configure:13751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
13751 rm -rf conftest*
13752
21d1c967 13753 xpm_link=" -lXpm"
579d8138 13754 cat >> confdefs.h <<\EOF
21d1c967
GD
13755#define wxHAVE_LIB_XPM 1
13756EOF
90dd450c 13757
579d8138 13758 echo "$ac_t""found in default search path" 1>&6
21d1c967 13759 COMPILED_X_PROGRAM=0
579d8138 13760
21d1c967 13761else
579d8138
VS
13762 echo "configure: failed program was:" >&5
13763 cat conftest.$ac_ext >&5
13764 rm -rf conftest*
13765
13766 echo "$ac_t""no" 1>&6
13767 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13768
13769
6f72b082 13770fi
579d8138 13771rm -f conftest*
21d1c967 13772 fi
90dd450c 13773
1d1b75ac
VZ
13774 wxUSE_UNIVERSAL="yes"
13775
21d1c967
GD
13776 if test "$wxUSE_NANOX" = "yes"; then
13777 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13778 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"
13779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13780 else
13781 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13782 fi
6f72b082 13783
21d1c967
GD
13784 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13785 TOOLKIT=X11
13786 GUIDIST=X11_DIST
13787 fi
90dd450c 13788
21d1c967 13789 if test "$wxUSE_WINE" = 1; then
579d8138
VS
13790 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13791echo $ac_n "checking for windows.h""... $ac_c" 1>&6
b13cd66e 13792echo "configure:13793: checking for windows.h" >&5
579d8138
VS
13793if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13794 echo $ac_n "(cached) $ac_c" 1>&6
13795else
13796 cat > conftest.$ac_ext <<EOF
b13cd66e 13797#line 13798 "configure"
6f72b082 13798#include "confdefs.h"
21d1c967 13799#include <windows.h>
579d8138
VS
13800EOF
13801ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 13802{ (eval echo configure:13803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 13803ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
13804if test -z "$ac_err"; then
13805 rm -rf conftest*
13806 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13807else
579d8138
VS
13808 echo "$ac_err" >&5
13809 echo "configure: failed program was:" >&5
10f2d63a 13810 cat conftest.$ac_ext >&5
579d8138
VS
13811 rm -rf conftest*
13812 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13813fi
579d8138 13814rm -f conftest*
10f2d63a 13815fi
579d8138
VS
13816if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13817 echo "$ac_t""yes" 1>&6
21d1c967
GD
13818 :
13819else
579d8138 13820 echo "$ac_t""no" 1>&6
21d1c967 13821
579d8138
VS
13822 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13823
328a083c 13824fi
21d1c967 13825
328a083c 13826
579d8138
VS
13827 xpm_link=
13828 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b13cd66e 13829echo "configure:13830: checking for Xpm library" >&5
579d8138 13830
90dd450c
VZ
13831ac_find_libraries=
13832for ac_dir in $SEARCH_LIB;
13833 do
13834 for ac_extension in a so sl dylib; do
21d1c967 13835 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13836 ac_find_libraries=$ac_dir
13837 break 2
13838 fi
13839 done
13840 done
13841
21d1c967
GD
13842 if test "$ac_find_libraries" != "" ; then
13843 GUI_TK_LIBRARY="-L$ac_find_libraries"
13844 xpm_link=" -lXpm"
579d8138 13845 cat >> confdefs.h <<\EOF
21d1c967
GD
13846#define wxHAVE_LIB_XPM 1
13847EOF
90dd450c 13848
579d8138 13849 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 13850 else
579d8138
VS
13851 echo "$ac_t""no" 1>&6
13852 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
21d1c967
GD
13853 fi
13854
13855 mesa_link=
579d8138 13856 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
b13cd66e 13857echo "configure:13858: checking for Mesa library" >&5
579d8138 13858
90dd450c
VZ
13859ac_find_libraries=
13860for ac_dir in $SEARCH_LIB;
13861 do
13862 for ac_extension in a so sl dylib; do
13863 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13864 ac_find_libraries=$ac_dir
13865 break 2
13866 fi
13867 done
13868 done
13869
21d1c967
GD
13870 if test "$ac_find_libraries" != "" ; then
13871 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13872 mesa_link=" -lMesaGL"
579d8138 13873 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 13874 else
579d8138 13875 { echo "configure: error: no" 1>&2; exit 1; }
21d1c967
GD
13876 fi
13877
13878 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13879 TOOLKIT=MSW
13880 GUIDIST=MSW_DIST
13881 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13882 fi
13883
13884 if test "$wxUSE_MOTIF" = 1; then
13885 if test "$no_x" = yes; then
13886 # Not all programs may use this symbol, but it does not hurt to define it.
579d8138 13887 cat >> confdefs.h <<\EOF
21d1c967
GD
13888#define X_DISPLAY_MISSING 1
13889EOF
13890
13891 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13892else
13893 if test -n "$x_includes"; then
13894 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13895 fi
13896
21d1c967
GD
13897 # It would also be nice to do this for all -L options, not just this one.
13898 if test -n "$x_libraries"; then
13899 X_LIBS="$X_LIBS -L$x_libraries"
13900 # For Solaris; some versions of Sun CC require a space after -R and
13901 # others require no space. Words are not sufficient . . . .
579d8138 13902 case "`(uname -sr) 2>/dev/null`" in
21d1c967 13903 "SunOS 5"*)
579d8138 13904 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b13cd66e 13905echo "configure:13906: checking whether -R must be followed by a space" >&5
579d8138
VS
13906 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13907 cat > conftest.$ac_ext <<EOF
b13cd66e 13908#line 13909 "configure"
21d1c967
GD
13909#include "confdefs.h"
13910
579d8138 13911int main() {
21d1c967 13912
579d8138
VS
13913; return 0; }
13914EOF
b13cd66e 13915if { (eval echo configure:13916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 13916 rm -rf conftest*
21d1c967 13917 ac_R_nospace=yes
698dcdb6 13918else
579d8138
VS
13919 echo "configure: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 rm -rf conftest*
13922 ac_R_nospace=no
10f2d63a 13923fi
579d8138 13924rm -f conftest*
21d1c967 13925 if test $ac_R_nospace = yes; then
579d8138 13926 echo "$ac_t""no" 1>&6
21d1c967
GD
13927 X_LIBS="$X_LIBS -R$x_libraries"
13928 else
13929 LIBS="$ac_xsave_LIBS -R $x_libraries"
579d8138 13930 cat > conftest.$ac_ext <<EOF
b13cd66e 13931#line 13932 "configure"
21d1c967 13932#include "confdefs.h"
10f2d63a 13933
579d8138 13934int main() {
f0c87536 13935
579d8138
VS
13936; return 0; }
13937EOF
b13cd66e 13938if { (eval echo configure:13939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 13939 rm -rf conftest*
21d1c967
GD
13940 ac_R_space=yes
13941else
579d8138
VS
13942 echo "configure: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 rm -rf conftest*
13945 ac_R_space=no
21d1c967 13946fi
579d8138 13947rm -f conftest*
21d1c967 13948 if test $ac_R_space = yes; then
579d8138 13949 echo "$ac_t""yes" 1>&6
21d1c967
GD
13950 X_LIBS="$X_LIBS -R $x_libraries"
13951 else
579d8138 13952 echo "$ac_t""neither works" 1>&6
21d1c967
GD
13953 fi
13954 fi
579d8138 13955 LIBS="$ac_xsave_LIBS"
21d1c967
GD
13956 esac
13957 fi
90dd450c 13958
21d1c967
GD
13959 # Check for system-dependent libraries X programs must link with.
13960 # Do this before checking for the system-independent R6 libraries
13961 # (-lICE), since we may need -lsocket or whatever for X linking.
13962
13963 if test "$ISC" = yes; then
13964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13965 else
579d8138
VS
13966 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13967 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 13968 # the Alpha needs dnet_stub (dnet does not exist).
579d8138 13969 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b13cd66e 13970echo "configure:13971: checking for dnet_ntoa in -ldnet" >&5
579d8138
VS
13971ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13973 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 13974else
579d8138 13975 ac_save_LIBS="$LIBS"
328a083c 13976LIBS="-ldnet $LIBS"
579d8138 13977cat > conftest.$ac_ext <<EOF
b13cd66e 13978#line 13979 "configure"
328a083c 13979#include "confdefs.h"
328a083c 13980/* Override any gcc2 internal prototype to avoid an error. */
328a083c 13981/* We use char because int might match the return type of a gcc2
579d8138
VS
13982 builtin and then its argument prototype would still apply. */
13983char dnet_ntoa();
13984
13985int main() {
13986dnet_ntoa()
13987; return 0; }
13988EOF
b13cd66e 13989if { (eval echo configure:13990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
13990 rm -rf conftest*
13991 eval "ac_cv_lib_$ac_lib_var=yes"
13992else
13993 echo "configure: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13995 rm -rf conftest*
13996 eval "ac_cv_lib_$ac_lib_var=no"
13997fi
13998rm -f conftest*
13999LIBS="$ac_save_LIBS"
14000
14001fi
14002if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14003 echo "$ac_t""yes" 1>&6
21d1c967 14004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
579d8138
VS
14005else
14006 echo "$ac_t""no" 1>&6
0fb0dd83 14007fi
0fb0dd83 14008
21d1c967 14009 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
579d8138 14010 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b13cd66e 14011echo "configure:14012: checking for dnet_ntoa in -ldnet_stub" >&5
579d8138
VS
14012ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14015else
579d8138 14016 ac_save_LIBS="$LIBS"
21d1c967 14017LIBS="-ldnet_stub $LIBS"
579d8138 14018cat > conftest.$ac_ext <<EOF
b13cd66e 14019#line 14020 "configure"
21d1c967
GD
14020#include "confdefs.h"
14021/* Override any gcc2 internal prototype to avoid an error. */
14022/* We use char because int might match the return type of a gcc2
579d8138
VS
14023 builtin and then its argument prototype would still apply. */
14024char dnet_ntoa();
14025
14026int main() {
14027dnet_ntoa()
14028; return 0; }
14029EOF
b13cd66e 14030if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14031 rm -rf conftest*
14032 eval "ac_cv_lib_$ac_lib_var=yes"
14033else
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14036 rm -rf conftest*
14037 eval "ac_cv_lib_$ac_lib_var=no"
14038fi
14039rm -f conftest*
14040LIBS="$ac_save_LIBS"
14041
14042fi
14043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
21d1c967 14045 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
579d8138
VS
14046else
14047 echo "$ac_t""no" 1>&6
90dd450c
VZ
14048fi
14049
21d1c967 14050 fi
90dd450c 14051
21d1c967
GD
14052 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14053 # to get the SysV transport functions.
579d8138 14054 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14055 # needs -lnsl.
14056 # The nsl library prevents programs from opening the X display
579d8138
VS
14057 # on Irix 5.2, according to dickey@clark.net.
14058 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b13cd66e 14059echo "configure:14060: checking for gethostbyname" >&5
579d8138
VS
14060if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14062else
14063 cat > conftest.$ac_ext <<EOF
b13cd66e 14064#line 14065 "configure"
21d1c967
GD
14065#include "confdefs.h"
14066/* System header to define __stub macros and hopefully few prototypes,
579d8138 14067 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14068#include <assert.h>
14069/* Override any gcc2 internal prototype to avoid an error. */
14070/* We use char because int might match the return type of a gcc2
579d8138
VS
14071 builtin and then its argument prototype would still apply. */
14072char gethostbyname();
14073
14074int main() {
90dd450c 14075
21d1c967
GD
14076/* The GNU C library defines this for functions which it implements
14077 to always fail with ENOSYS. Some functions are actually named
14078 something starting with __ and the normal name is an alias. */
14079#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14080choke me
14081#else
579d8138 14082gethostbyname();
21d1c967 14083#endif
90dd450c 14084
579d8138
VS
14085; return 0; }
14086EOF
b13cd66e 14087if { (eval echo configure:14088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14088 rm -rf conftest*
14089 eval "ac_cv_func_gethostbyname=yes"
14090else
14091 echo "configure: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14093 rm -rf conftest*
14094 eval "ac_cv_func_gethostbyname=no"
14095fi
14096rm -f conftest*
14097fi
14098
14099if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14100 echo "$ac_t""yes" 1>&6
14101 :
14102else
14103 echo "$ac_t""no" 1>&6
14104fi
90dd450c 14105
21d1c967 14106 if test $ac_cv_func_gethostbyname = no; then
579d8138 14107 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b13cd66e 14108echo "configure:14109: checking for gethostbyname in -lnsl" >&5
579d8138
VS
14109ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14110if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14111 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14112else
579d8138 14113 ac_save_LIBS="$LIBS"
21d1c967 14114LIBS="-lnsl $LIBS"
579d8138 14115cat > conftest.$ac_ext <<EOF
b13cd66e 14116#line 14117 "configure"
21d1c967
GD
14117#include "confdefs.h"
14118/* Override any gcc2 internal prototype to avoid an error. */
14119/* We use char because int might match the return type of a gcc2
579d8138
VS
14120 builtin and then its argument prototype would still apply. */
14121char gethostbyname();
f0c87536 14122
579d8138
VS
14123int main() {
14124gethostbyname()
14125; return 0; }
14126EOF
b13cd66e 14127if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14128 rm -rf conftest*
14129 eval "ac_cv_lib_$ac_lib_var=yes"
21d1c967 14130else
579d8138
VS
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 rm -rf conftest*
14134 eval "ac_cv_lib_$ac_lib_var=no"
14135fi
14136rm -f conftest*
14137LIBS="$ac_save_LIBS"
328a083c 14138
579d8138
VS
14139fi
14140if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14141 echo "$ac_t""yes" 1>&6
14142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14143else
14144 echo "$ac_t""no" 1>&6
21d1c967 14145fi
90dd450c 14146
90dd450c
VZ
14147 fi
14148
21d1c967
GD
14149 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14150 # socket/setsockopt and other routines are undefined under SCO ODT
14151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
579d8138
VS
14152 # on later versions), says simon@lia.di.epfl.ch: it contains
14153 # gethostby* variants that don't use the nameserver (or something).
14154 # -lsocket must be given before -lnsl if both are needed.
14155 # We assume that if connect needs -lnsl, so does gethostbyname.
14156 echo $ac_n "checking for connect""... $ac_c" 1>&6
b13cd66e 14157echo "configure:14158: checking for connect" >&5
579d8138
VS
14158if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
14160else
14161 cat > conftest.$ac_ext <<EOF
b13cd66e 14162#line 14163 "configure"
21d1c967
GD
14163#include "confdefs.h"
14164/* System header to define __stub macros and hopefully few prototypes,
579d8138 14165 which can conflict with char connect(); below. */
21d1c967
GD
14166#include <assert.h>
14167/* Override any gcc2 internal prototype to avoid an error. */
14168/* We use char because int might match the return type of a gcc2
579d8138
VS
14169 builtin and then its argument prototype would still apply. */
14170char connect();
14171
14172int main() {
90dd450c 14173
21d1c967
GD
14174/* The GNU C library defines this for functions which it implements
14175 to always fail with ENOSYS. Some functions are actually named
14176 something starting with __ and the normal name is an alias. */
14177#if defined (__stub_connect) || defined (__stub___connect)
14178choke me
14179#else
579d8138 14180connect();
21d1c967 14181#endif
90dd450c 14182
579d8138
VS
14183; return 0; }
14184EOF
b13cd66e 14185if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14186 rm -rf conftest*
14187 eval "ac_cv_func_connect=yes"
14188else
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 rm -rf conftest*
14192 eval "ac_cv_func_connect=no"
14193fi
14194rm -f conftest*
14195fi
14196
14197if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14198 echo "$ac_t""yes" 1>&6
14199 :
14200else
14201 echo "$ac_t""no" 1>&6
14202fi
1f8ae82f 14203
21d1c967 14204 if test $ac_cv_func_connect = no; then
579d8138 14205 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b13cd66e 14206echo "configure:14207: checking for connect in -lsocket" >&5
579d8138
VS
14207ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 14210else
579d8138 14211 ac_save_LIBS="$LIBS"
21d1c967 14212LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
579d8138 14213cat > conftest.$ac_ext <<EOF
b13cd66e 14214#line 14215 "configure"
0fbb762e 14215#include "confdefs.h"
21d1c967
GD
14216/* Override any gcc2 internal prototype to avoid an error. */
14217/* We use char because int might match the return type of a gcc2
579d8138
VS
14218 builtin and then its argument prototype would still apply. */
14219char connect();
14220
14221int main() {
14222connect()
14223; return 0; }
14224EOF
b13cd66e 14225if { (eval echo configure:14226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=yes"
14228else
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 rm -rf conftest*
14232 eval "ac_cv_lib_$ac_lib_var=no"
14233fi
14234rm -f conftest*
14235LIBS="$ac_save_LIBS"
14236
14237fi
14238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14239 echo "$ac_t""yes" 1>&6
21d1c967 14240 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
579d8138
VS
14241else
14242 echo "$ac_t""no" 1>&6
21d1c967 14243fi
90dd450c 14244
21d1c967 14245 fi
90dd450c 14246
579d8138
VS
14247 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14248 echo $ac_n "checking for remove""... $ac_c" 1>&6
b13cd66e 14249echo "configure:14250: checking for remove" >&5
579d8138
VS
14250if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14251 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14252else
579d8138 14253 cat > conftest.$ac_ext <<EOF
b13cd66e 14254#line 14255 "configure"
21d1c967
GD
14255#include "confdefs.h"
14256/* System header to define __stub macros and hopefully few prototypes,
579d8138 14257 which can conflict with char remove(); below. */
21d1c967
GD
14258#include <assert.h>
14259/* Override any gcc2 internal prototype to avoid an error. */
14260/* We use char because int might match the return type of a gcc2
579d8138
VS
14261 builtin and then its argument prototype would still apply. */
14262char remove();
14263
14264int main() {
90dd450c 14265
21d1c967
GD
14266/* The GNU C library defines this for functions which it implements
14267 to always fail with ENOSYS. Some functions are actually named
14268 something starting with __ and the normal name is an alias. */
14269#if defined (__stub_remove) || defined (__stub___remove)
14270choke me
14271#else
579d8138 14272remove();
21d1c967 14273#endif
90dd450c 14274
579d8138
VS
14275; return 0; }
14276EOF
b13cd66e 14277if { (eval echo configure:14278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14278 rm -rf conftest*
14279 eval "ac_cv_func_remove=yes"
14280else
14281 echo "configure: failed program was:" >&5
14282 cat conftest.$ac_ext >&5
14283 rm -rf conftest*
14284 eval "ac_cv_func_remove=no"
14285fi
14286rm -f conftest*
14287fi
14288
14289if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14290 echo "$ac_t""yes" 1>&6
14291 :
14292else
14293 echo "$ac_t""no" 1>&6
14294fi
90dd450c 14295
21d1c967 14296 if test $ac_cv_func_remove = no; then
579d8138 14297 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b13cd66e 14298echo "configure:14299: checking for remove in -lposix" >&5
579d8138
VS
14299ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14300if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14301 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14302else
579d8138 14303 ac_save_LIBS="$LIBS"
21d1c967 14304LIBS="-lposix $LIBS"
579d8138 14305cat > conftest.$ac_ext <<EOF
b13cd66e 14306#line 14307 "configure"
21d1c967
GD
14307#include "confdefs.h"
14308/* Override any gcc2 internal prototype to avoid an error. */
14309/* We use char because int might match the return type of a gcc2
579d8138
VS
14310 builtin and then its argument prototype would still apply. */
14311char remove();
14312
14313int main() {
14314remove()
14315; return 0; }
14316EOF
b13cd66e 14317if { (eval echo configure:14318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14318 rm -rf conftest*
14319 eval "ac_cv_lib_$ac_lib_var=yes"
14320else
14321 echo "configure: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14323 rm -rf conftest*
14324 eval "ac_cv_lib_$ac_lib_var=no"
14325fi
14326rm -f conftest*
14327LIBS="$ac_save_LIBS"
14328
14329fi
14330if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14331 echo "$ac_t""yes" 1>&6
21d1c967 14332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
579d8138
VS
14333else
14334 echo "$ac_t""no" 1>&6
21d1c967 14335fi
19bc6aad 14336
90dd450c 14337 fi
19bc6aad 14338
21d1c967 14339 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
579d8138 14340 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b13cd66e 14341echo "configure:14342: checking for shmat" >&5
579d8138
VS
14342if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14343 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14344else
579d8138 14345 cat > conftest.$ac_ext <<EOF
b13cd66e 14346#line 14347 "configure"
21d1c967
GD
14347#include "confdefs.h"
14348/* System header to define __stub macros and hopefully few prototypes,
579d8138 14349 which can conflict with char shmat(); below. */
21d1c967
GD
14350#include <assert.h>
14351/* Override any gcc2 internal prototype to avoid an error. */
14352/* We use char because int might match the return type of a gcc2
579d8138
VS
14353 builtin and then its argument prototype would still apply. */
14354char shmat();
14355
14356int main() {
90dd450c 14357
21d1c967
GD
14358/* The GNU C library defines this for functions which it implements
14359 to always fail with ENOSYS. Some functions are actually named
14360 something starting with __ and the normal name is an alias. */
14361#if defined (__stub_shmat) || defined (__stub___shmat)
14362choke me
14363#else
579d8138 14364shmat();
21d1c967 14365#endif
90dd450c 14366
579d8138
VS
14367; return 0; }
14368EOF
b13cd66e 14369if { (eval echo configure:14370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14370 rm -rf conftest*
14371 eval "ac_cv_func_shmat=yes"
14372else
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 rm -rf conftest*
14376 eval "ac_cv_func_shmat=no"
14377fi
14378rm -f conftest*
14379fi
14380
14381if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14382 echo "$ac_t""yes" 1>&6
14383 :
14384else
14385 echo "$ac_t""no" 1>&6
14386fi
19bc6aad 14387
21d1c967 14388 if test $ac_cv_func_shmat = no; then
579d8138 14389 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b13cd66e 14390echo "configure:14391: checking for shmat in -lipc" >&5
579d8138
VS
14391ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
9f8148b1 14394else
579d8138 14395 ac_save_LIBS="$LIBS"
21d1c967 14396LIBS="-lipc $LIBS"
579d8138 14397cat > conftest.$ac_ext <<EOF
b13cd66e 14398#line 14399 "configure"
21d1c967
GD
14399#include "confdefs.h"
14400/* Override any gcc2 internal prototype to avoid an error. */
14401/* We use char because int might match the return type of a gcc2
579d8138
VS
14402 builtin and then its argument prototype would still apply. */
14403char shmat();
14404
14405int main() {
14406shmat()
14407; return 0; }
14408EOF
b13cd66e 14409if { (eval echo configure:14410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14410 rm -rf conftest*
14411 eval "ac_cv_lib_$ac_lib_var=yes"
14412else
14413 echo "configure: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 rm -rf conftest*
14416 eval "ac_cv_lib_$ac_lib_var=no"
14417fi
14418rm -f conftest*
14419LIBS="$ac_save_LIBS"
14420
14421fi
14422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14423 echo "$ac_t""yes" 1>&6
21d1c967 14424 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
579d8138
VS
14425else
14426 echo "$ac_t""no" 1>&6
9f8148b1 14427fi
90dd450c 14428
90dd450c 14429 fi
21d1c967 14430 fi
10f2d63a 14431
21d1c967 14432 # Check for libraries that X11R6 Xt/Xaw programs need.
579d8138 14433 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
14434 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14435 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14436 # check for ICE first), but we must link in the order -lSM -lICE or
14437 # we get undefined symbols. So assume we have SM if we have ICE.
14438 # These have to be linked with before -lX11, unlike the other
14439 # libraries we check for below, so use a different variable.
579d8138
VS
14440 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14441 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b13cd66e 14442echo "configure:14443: checking for IceConnectionNumber in -lICE" >&5
579d8138
VS
14443ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14444if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14445 echo $ac_n "(cached) $ac_c" 1>&6
14446else
14447 ac_save_LIBS="$LIBS"
f09359cf 14448LIBS="-lICE $X_EXTRA_LIBS $LIBS"
579d8138 14449cat > conftest.$ac_ext <<EOF
b13cd66e 14450#line 14451 "configure"
29fd3c0c 14451#include "confdefs.h"
21d1c967
GD
14452/* Override any gcc2 internal prototype to avoid an error. */
14453/* We use char because int might match the return type of a gcc2
579d8138
VS
14454 builtin and then its argument prototype would still apply. */
14455char IceConnectionNumber();
14456
14457int main() {
14458IceConnectionNumber()
14459; return 0; }
14460EOF
b13cd66e 14461if { (eval echo configure:14462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14462 rm -rf conftest*
14463 eval "ac_cv_lib_$ac_lib_var=yes"
14464else
14465 echo "configure: failed program was:" >&5
14466 cat conftest.$ac_ext >&5
14467 rm -rf conftest*
14468 eval "ac_cv_lib_$ac_lib_var=no"
14469fi
14470rm -f conftest*
14471LIBS="$ac_save_LIBS"
14472
14473fi
14474if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14475 echo "$ac_t""yes" 1>&6
21d1c967 14476 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
579d8138
VS
14477else
14478 echo "$ac_t""no" 1>&6
29fd3c0c 14479fi
21d1c967 14480
579d8138 14481 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14482
10f2d63a
VZ
14483fi
14484
579d8138 14485
21d1c967 14486 if test "$no_x" = "yes"; then
579d8138 14487 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
14488 fi
14489
14490 GUI_TK_LIBRARY="$X_LIBS"
14491 TOOLKIT_INCLUDE="$X_CFLAGS"
14492 AFMINSTALL=afminstall
14493 COMPILED_X_PROGRAM=0
14494
579d8138 14495 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
b13cd66e 14496echo "configure:14497: checking for Motif/Lesstif headers" >&5
579d8138 14497
21d1c967
GD
14498ac_find_includes=
14499for ac_dir in $SEARCH_INCLUDE;
14500 do
14501 if test -f "$ac_dir/Xm/Xm.h"; then
14502 ac_find_includes=$ac_dir
14503 break
14504 fi
14505 done
14506
14507 if test "$ac_find_includes" != "" ; then
579d8138 14508 echo "$ac_t""found $ac_find_includes" 1>&6
21d1c967 14509 else
579d8138 14510 cat > conftest.$ac_ext <<EOF
b13cd66e 14511#line 14512 "configure"
10f2d63a 14512#include "confdefs.h"
21d1c967
GD
14513
14514 #include <Xm/Xm.h>
579d8138
VS
14515
14516int main() {
21d1c967
GD
14517
14518 int version;
14519 version = xmUseVersion;
579d8138
VS
14520
14521; return 0; }
14522EOF
b13cd66e 14523if { (eval echo configure:14524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
14524 rm -rf conftest*
14525
14526 echo "$ac_t""found in default search path" 1>&6
21d1c967 14527 COMPILED_X_PROGRAM=1
579d8138 14528
10f2d63a 14529else
579d8138
VS
14530 echo "configure: failed program was:" >&5
14531 cat conftest.$ac_ext >&5
14532 rm -rf conftest*
14533
14534 echo "$ac_t""no" 1>&6
14535 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14536
14537
10f2d63a 14538fi
579d8138 14539rm -f conftest*
21d1c967 14540 fi
10f2d63a 14541
21d1c967 14542 if test "$COMPILED_X_PROGRAM" = 0; then
579d8138 14543 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
b13cd66e 14544echo "configure:14545: checking for Motif/Lesstif library" >&5
579d8138 14545
21d1c967
GD
14546ac_find_libraries=
14547for ac_dir in $SEARCH_LIB;
14548 do
14549 for ac_extension in a so sl dylib; do
14550 if test -f "$ac_dir/libXm.$ac_extension"; then
14551 ac_find_libraries=$ac_dir
14552 break 2
14553 fi
14554 done
14555 done
14556
14557 if test "$ac_find_libraries" != "" ; then
579d8138 14558
21d1c967
GD
14559 ac_path_to_include=$ac_find_includes
14560 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14561 result=$?
14562 if test $result = 0; then
14563 ac_path_to_include=""
14564 else
14565 ac_path_to_include=" -I$ac_find_includes"
14566 fi
14567
579d8138 14568
21d1c967
GD
14569 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14570 result=$?
14571 if test $result = 0; then
14572 ac_path_to_link=""
14573 else
14574 ac_path_to_link=" -L$ac_find_libraries"
14575 fi
14576
579d8138 14577
21d1c967
GD
14578 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14579 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
579d8138 14580 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14581 else
579d8138 14582 cat > conftest.$ac_ext <<EOF
b13cd66e 14583#line 14584 "configure"
d836ee96 14584#include "confdefs.h"
21d1c967
GD
14585
14586 #include <Xm/Xm.h>
579d8138
VS
14587
14588int main() {
21d1c967
GD
14589
14590 int version;
14591 version = xmUseVersion;
579d8138
VS
14592
14593; return 0; }
14594EOF
b13cd66e 14595if { (eval echo configure:14596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
14596 rm -rf conftest*
14597
14598 echo "$ac_t""found in default search path" 1>&6
21d1c967 14599 COMPILED_X_PROGRAM=1
579d8138 14600
d836ee96 14601else
579d8138
VS
14602 echo "configure: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14604 rm -rf conftest*
14605
14606 echo "$ac_t""no" 1>&6
14607 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14608
14609
d836ee96 14610fi
579d8138 14611rm -f conftest*
21d1c967
GD
14612 fi
14613 fi
14614
14615 xpm_link=
579d8138 14616 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b13cd66e 14617echo "configure:14618: checking for Xpm library" >&5
579d8138 14618
21d1c967
GD
14619ac_find_libraries=
14620for ac_dir in $SEARCH_LIB;
14621 do
14622 for ac_extension in a so sl dylib; do
14623 if test -f "$ac_dir/libXpm.$ac_extension"; then
14624 ac_find_libraries=$ac_dir
14625 break 2
14626 fi
14627 done
14628 done
14629
14630 if test "$ac_find_libraries" != "" ; then
579d8138 14631
21d1c967
GD
14632 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14633 result=$?
14634 if test $result = 0; then
14635 ac_path_to_link=""
14636 else
14637 ac_path_to_link=" -L$ac_find_libraries"
14638 fi
14639
14640 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14641 xpm_link=" -lXpm"
579d8138 14642 cat >> confdefs.h <<\EOF
21d1c967 14643#define wxHAVE_LIB_XPM 1
d836ee96 14644EOF
90dd450c 14645
579d8138 14646 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14647 else
579d8138 14648 cat > conftest.$ac_ext <<EOF
b13cd66e 14649#line 14650 "configure"
d836ee96 14650#include "confdefs.h"
21d1c967
GD
14651
14652 #include <X11/xpm.h>
579d8138
VS
14653
14654int main() {
21d1c967
GD
14655
14656 int version;
14657 version = XpmLibraryVersion();
579d8138
VS
14658
14659; return 0; }
14660EOF
b13cd66e 14661if { (eval echo configure:14662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
14662 rm -rf conftest*
14663
21d1c967 14664 xpm_link=" -lXpm"
579d8138 14665 cat >> confdefs.h <<\EOF
21d1c967
GD
14666#define wxHAVE_LIB_XPM 1
14667EOF
14668
579d8138 14669 echo "$ac_t""found in default search path" 1>&6
21d1c967 14670 COMPILED_X_PROGRAM=0
579d8138 14671
d836ee96 14672else
579d8138
VS
14673 echo "configure: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14675 rm -rf conftest*
14676
14677 echo "$ac_t""no" 1>&6
14678 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14679
14680
d836ee96 14681fi
579d8138 14682rm -f conftest*
21d1c967
GD
14683 fi
14684
579d8138 14685 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
b13cd66e 14686echo "configure:14687: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
14687 libp_link=""
14688 libsm_ice_link=""
14689 libs_found=0
14690 for libp in "" " -lXp"; do
14691 if test "$libs_found" = "0"; then
14692 for libsm_ice in " -lSM -lICE"; do
579d8138 14693 if test "$libs_found" = "0"; then
6a30f1c8
MB
14694 save_LIBS="$LIBS"
14695 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
579d8138 14696 cat > conftest.$ac_ext <<EOF
b13cd66e 14697#line 14698 "configure"
6a30f1c8 14698#include "confdefs.h"
17234b26 14699
6a30f1c8
MB
14700 #include <Xm/Xm.h>
14701 #include <Xm/List.h>
579d8138
VS
14702
14703int main() {
6a30f1c8
MB
14704
14705 XmString string = NULL;
14706 Widget w = NULL;
14707 int position = 0;
14708 XmListAddItem(w, string, position);
579d8138
VS
14709
14710; return 0; }
14711EOF
b13cd66e 14712if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
14713 rm -rf conftest*
14714
6a30f1c8
MB
14715 libp_link="$libp"
14716 libsm_ice_link="$libsm_ice"
579d8138 14717 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 14718 libs_found=1
579d8138 14719
6a30f1c8 14720else
579d8138
VS
14721 echo "configure: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14723 rm -rf conftest*
14724
14725
6a30f1c8 14726fi
579d8138 14727rm -f conftest*
6a30f1c8
MB
14728 LIBS="$save_LIBS"
14729 fi
14730 done
14731 fi
14732 done
14733
14734 if test "$libs_found" = "0"; then
579d8138
VS
14735 echo "$ac_t""can't find the right libraries" 1>&6
14736 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
14737 fi
14738
14739 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
14740 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14741 TOOLKIT=MOTIF
14742 GUIDIST=MOTIF_DIST
14743 fi
14744
14745 if test "$wxUSE_MAC" = 1; then
14746 if test "$wxUSE_PRECOMP" = "yes"; then
14747 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14748 else
14749 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14750 fi
14751 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14752 CFLAGS="$CFLAGS -fpascal-strings"
14753 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14754
14755 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14756 TOOLKIT=MAC
14757 GUIDIST=MACX_DIST
14758 fi
14759
14760 if test "$wxUSE_PM" = 1; then
14761 TOOLKIT=PM
14762 GUIDIST=GTK_DIST
14763 fi
14764
14765 if test "$TOOLKIT" = "PM" ; then
14766 TOOLKIT_DIR="os2"
14767 else
14768 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14769 fi
14770
14771 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14772
14773 if test "$wxUSE_UNIVERSAL" = "yes"; then
14774 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14775
14776 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14777 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14778
14779 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14780 if test "$wxUSE_X11" = 1; then
14781 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14782 else
14783 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14784 fi
14785 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14786 WIDGET_SET=univ
14787 else
14788 ALL_OBJECTS="\$(GUIOBJS)"
14789 ALL_SOURCES="\$(ALL_SOURCES)"
14790 ALL_HEADERS="\$(ALL_HEADERS)"
14791 fi
14792
14793 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14794
14795 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14796 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14797 fi
14798
14799 if test "$wxUSE_HTML" = "yes"; then
14800 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14801 fi
14802
14803 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14804 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14805 fi
14806 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14807 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14808 fi
14809 if test "$wxUSE_LIBPNG" = "builtin" ; then
14810 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14811 fi
14812
14813 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14814 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14815else
21d1c967
GD
14816 USE_GUI=0
14817
14818 TOOLKIT_DIR="base"
14819
14820 if test "$USE_WIN32" = 1 ; then
14821 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14822 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14823
14824 TOOLKIT="MSW"
14825 else
14826 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14827 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14828 fi
14829
14830 ALL_SOURCES="\$(ALL_SOURCES)"
14831 ALL_HEADERS="\$(ALL_HEADERS)"
14832
14833 PORT_FILES="\${top_srcdir}/src/files.lst"
14834
14835 GUIDIST="BASE_DIST"
14836 DISTDIR="wxBase"
d836ee96
VZ
14837fi
14838
579d8138 14839
21d1c967
GD
14840if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14841 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14842fi
21d1c967
GD
14843
14844if test "$wxUSE_REGEX" = "builtin" ; then
14845 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14846fi
21d1c967
GD
14847if test "$wxUSE_ZLIB" = "builtin" ; then
14848 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14849fi
14850
579d8138 14851
21d1c967
GD
14852if test "$wxUSE_OPENGL" = "yes"; then
14853 if test "$wxUSE_MAC" = 1; then
14854 OPENGL_LIBS="-framework OpenGL -framework AGL"
14855 elif test "$wxUSE_MSW" = 1; then
14856 OPENGL_LIBS="-lopengl32 -lglu32"
14857 else
579d8138
VS
14858 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14859echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
b13cd66e 14860echo "configure:14861: checking for GL/gl.h" >&5
579d8138
VS
14861if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14862 echo $ac_n "(cached) $ac_c" 1>&6
14863else
14864 cat > conftest.$ac_ext <<EOF
b13cd66e 14865#line 14866 "configure"
10f2d63a 14866#include "confdefs.h"
21d1c967 14867#include <GL/gl.h>
579d8138
VS
14868EOF
14869ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 14870{ (eval echo configure:14871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 14871ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
14872if test -z "$ac_err"; then
14873 rm -rf conftest*
14874 eval "ac_cv_header_$ac_safe=yes"
328a083c 14875else
579d8138
VS
14876 echo "$ac_err" >&5
14877 echo "configure: failed program was:" >&5
698dcdb6 14878 cat conftest.$ac_ext >&5
579d8138
VS
14879 rm -rf conftest*
14880 eval "ac_cv_header_$ac_safe=no"
703e0a69 14881fi
579d8138 14882rm -f conftest*
698dcdb6 14883fi
579d8138
VS
14884if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14885 echo "$ac_t""yes" 1>&6
14886
14887 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
b13cd66e 14888echo "configure:14889: checking for -lGL" >&5
579d8138 14889
21d1c967
GD
14890ac_find_libraries=
14891for ac_dir in $SEARCH_LIB;
14892 do
14893 for ac_extension in a so sl dylib; do
14894 if test -f "$ac_dir/libGL.$ac_extension"; then
14895 ac_find_libraries=$ac_dir
14896 break 2
14897 fi
14898 done
14899 done
14900
14901 if test "$ac_find_libraries" != "" ; then
579d8138 14902
21d1c967
GD
14903 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14904 result=$?
14905 if test $result = 0; then
14906 ac_path_to_link=""
14907 else
14908 ac_path_to_link=" -L$ac_find_libraries"
14909 fi
14910
14911 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14912 LDFLAGS_GL="$LDFLAGS"
14913 else
14914 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14915 fi
14916 OPENGL_LIBS="-lGL -lGLU"
579d8138 14917 echo "$ac_t""yes" 1>&6
21d1c967 14918 else
579d8138
VS
14919 echo "$ac_t""no" 1>&6
14920 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
b13cd66e 14921echo "configure:14922: checking for -lMesaGL" >&5
579d8138 14922
21d1c967
GD
14923ac_find_libraries=
14924for ac_dir in $SEARCH_LIB;
14925 do
14926 for ac_extension in a so sl dylib; do
14927 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14928 ac_find_libraries=$ac_dir
14929 break 2
14930 fi
14931 done
14932 done
14933
14934 if test "$ac_find_libraries" != "" ; then
579d8138 14935
21d1c967
GD
14936 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14937 result=$?
14938 if test $result = 0; then
14939 ac_path_to_link=""
14940 else
14941 ac_path_to_link=" -L$ac_find_libraries"
14942 fi
14943
14944 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14945 OPENGL_LIBS="-lMesaGL -lMesaGLU"
579d8138 14946 echo "$ac_t""yes" 1>&6
21d1c967 14947 else
579d8138 14948 echo "$ac_t""no" 1>&6
21d1c967
GD
14949 fi
14950 fi
579d8138
VS
14951
14952else
14953 echo "$ac_t""no" 1>&6
328a083c 14954fi
698dcdb6 14955
579d8138 14956
21d1c967 14957 if test "x$OPENGL_LIBS" = "x"; then
579d8138 14958 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
14959 fi
14960 fi
90dd450c 14961
21d1c967 14962 if test "$wxUSE_OPENGL" = "yes"; then
579d8138 14963 cat >> confdefs.h <<\EOF
21d1c967 14964#define wxUSE_OPENGL 1
698dcdb6 14965EOF
21d1c967 14966
579d8138 14967 cat >> confdefs.h <<\EOF
21d1c967
GD
14968#define wxUSE_GLCANVAS 1
14969EOF
14970
14971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14972 fi
10f2d63a 14973fi
21d1c967
GD
14974
14975if test -z "$TOOLKIT_VPATH" ; then
14976 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14977fi
21d1c967
GD
14978
14979if test -n "$TOOLKIT" ; then
14980 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14981fi
14982
14983lib_unicode_suffix=
14984if test "$wxUSE_UNICODE" = "yes"; then
14985 lib_unicode_suffix=u
90dd450c 14986fi
698dcdb6 14987
21d1c967
GD
14988lib_debug_suffix=
14989if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14990 lib_debug_suffix=d
14991fi
698dcdb6 14992
21d1c967
GD
14993TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14994TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14995
14996if test "$cross_compiling" = "yes"; then
14997 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14998 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14999fi
15000
15001WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15002WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15003
15004WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15005WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15006
15007WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15008WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15009WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15010WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15011
15012case "${host}" in
15013 *-*-cygwin* | *-*-mingw32* )
15014
579d8138
VS
15015
15016
17234b26 15017 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15018 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15019 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15020 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15021 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15022 else
15023 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15024 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15025 fi
15026 ;;
15027
15028 *-*-darwin* )
15029 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 15030 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
15031 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15032 fi
15033 ;;
15034esac
15035
15036WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15037WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15038
15039WXCONFIG_LIBS="-l${WX_LIBRARY}"
15040WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15041
15042if test "$wxUSE_OPENGL" = "yes"; then
15043 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15044 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15045fi
15046
579d8138
VS
15047
15048
21d1c967
GD
15049if test "$wxUSE_SHARED" = "yes"; then
15050 case "${host}" in
15051 *-pc-os2_emx | *-pc-os2-emx | \
15052 *-pc-msdosdjgpp )
15053 wxUSE_SHARED=no
579d8138 15054 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15055 ;;
15056 esac
15057fi
15058
15059if test "$wxUSE_SHARED" = "yes"; then
15060
15061 if test "$wxUSE_OPENGL" = "yes"; then
15062 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15063 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15064 else
15065 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15066 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15067 fi
15068
15069 if test "$GCC" = "yes"; then
15070 PIC_FLAG="-fPIC"
15071 fi
15072
15073 SHARED_LD="${CXX} -shared -o"
15074
15075 case "${host}" in
15076 *-hp-hpux* )
15077 if test "$GCC" == "yes"; then
15078 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15079 else
15080 LDFLAGS="$LDFLAGS -L/usr/lib"
15081
15082 SHARED_LD="${CXX} -b -o"
15083 PIC_FLAG="+Z"
15084 fi
15085
15086 if test "$wxUSE_OPENGL" = "yes"; then
15087 WX_ALL_INSTALLED="preinstall_gl"
15088 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15089 else
15090 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15091 fi
15092 ;;
15093
15094 *-*-linux* )
15095 if test "$GCC" != "yes"; then
579d8138 15096 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
b13cd66e 15097echo "configure:15098: checking for Intel compiler" >&5
579d8138
VS
15098if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15100else
15101
15102 cat > conftest.$ac_ext <<EOF
b13cd66e 15103#line 15104 "configure"
698dcdb6 15104#include "confdefs.h"
90dd450c 15105
579d8138 15106int main() {
90dd450c 15107
21d1c967
GD
15108 #ifndef __INTEL_COMPILER
15109 #error Not icc
15110 #endif
579d8138
VS
15111
15112; return 0; }
15113EOF
b13cd66e 15114if { (eval echo configure:15115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 15115 rm -rf conftest*
21d1c967 15116 wx_cv_prog_icc=yes
6232543b 15117else
579d8138
VS
15118 echo "configure: failed program was:" >&5
15119 cat conftest.$ac_ext >&5
15120 rm -rf conftest*
15121 wx_cv_prog_icc=no
15122
698dcdb6 15123fi
579d8138
VS
15124rm -f conftest*
15125
328a083c 15126fi
579d8138
VS
15127
15128echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
15129 if test "$wx_cv_prog_icc" = "yes"; then
15130 PIC_FLAG="-KPIC"
15131 fi
15132 fi
15133
15134 if test "$wxUSE_SONAME" = "yes" ; then
15135 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15136 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15137 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15138 fi
15139 ;;
15140
15141 *-*-solaris2* )
15142 if test "$GCC" = yes ; then
15143 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15144 else
15145 SHARED_LD="${CXX} -G -o"
15146 PIC_FLAG="-KPIC"
15147 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15148 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15149 fi
15150 ;;
15151
15152 *-*-darwin* )
15153 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15154 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15155 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15156 PIC_FLAG="-dynamic -fPIC"
15157 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15158 SONAME_FLAGS_GL=${SONAME_FLAGS}
15159 ;;
15160
15161 *-*-aix* )
321d2b14
VZ
15162 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15163set dummy makeC++SharedLib; ac_word=$2
579d8138 15164echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 15165echo "configure:15166: checking for $ac_word" >&5
579d8138
VS
15166if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15167 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
15168else
15169 if test -n "$AIX_CXX_LD"; then
15170 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15171else
f09359cf
VS
15172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15173 ac_dummy="$PATH"
15174 for ac_dir in $ac_dummy; do
579d8138
VS
15175 test -z "$ac_dir" && ac_dir=.
15176 if test -f $ac_dir/$ac_word; then
15177 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15178 break
15179 fi
15180 done
15181 IFS="$ac_save_ifs"
321d2b14
VZ
15182 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15183fi
15184fi
579d8138 15185AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 15186if test -n "$AIX_CXX_LD"; then
579d8138 15187 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 15188else
579d8138 15189 echo "$ac_t""no" 1>&6
321d2b14
VZ
15190fi
15191
579d8138 15192
321d2b14 15193 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
15194 ;;
15195
15196 *-*-cygwin* | *-*-mingw32* )
15197
15198 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15199
15200 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15201 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15202
15203 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15204
15205 if test "$wxUSE_OPENGL" = "yes"; then
15206 WX_ALL_INSTALLED="preinstall_gl"
15207 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15208 else
15209 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15210 fi
15211 ;;
15212
15213 *-*-beos* )
15214 SHARED_LD="${LD} -shared -o"
15215 ;;
15216
15217 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15218 *-*-sunos4* | \
15219 *-*-irix5* | *-*-irix6* | \
15220 *-*-osf* | \
15221 *-*-dgux5* | \
15222 *-*-sysv5* )
15223 ;;
15224
15225 *)
579d8138 15226 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
15227 esac
15228
15229 if test "x$WX_TARGET_LIBRARY" = "x"; then
15230 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15231 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15232 fi
15233
15234 WX_TARGET_LIBRARY_TYPE="so"
15235 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15236fi
10f2d63a 15237
21d1c967
GD
15238if test "$wxUSE_SHARED" = "no"; then
15239
15240 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15241 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15242 fi
15243
15244 if test "$wxUSE_MAC" = 1; then
15245 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15246 fi
15247
15248 if test "$wxUSE_OPENGL" = "yes"; then
15249 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15250 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15251 else
15252 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15253 fi
15254
15255 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15256 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15257
15258 WX_TARGET_LIBRARY_TYPE="a"
15259 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 15260fi
1e487827 15261
21d1c967
GD
15262if test "$wxUSE_MAC" = 1; then
15263 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15264 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15265 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15266 # Extract the first word of "Rez", so it can be a program name with args.
15267set dummy Rez; ac_word=$2
579d8138 15268echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 15269echo "configure:15270: checking for $ac_word" >&5
579d8138
VS
15270if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15271 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15272else
21d1c967
GD
15273 if test -n "$RESCOMP"; then
15274 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15275else
f09359cf
VS
15276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15277 ac_dummy="$PATH"
15278 for ac_dir in $ac_dummy; do
579d8138
VS
15279 test -z "$ac_dir" && ac_dir=.
15280 if test -f $ac_dir/$ac_word; then
15281 ac_cv_prog_RESCOMP="Rez"
15282 break
15283 fi
15284 done
15285 IFS="$ac_save_ifs"
21d1c967 15286 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15287fi
b93d0d08 15288fi
579d8138 15289RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 15290if test -n "$RESCOMP"; then
579d8138 15291 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 15292else
579d8138 15293 echo "$ac_t""no" 1>&6
90dd450c 15294fi
b93d0d08 15295
21d1c967
GD
15296 # Extract the first word of "DeRez", so it can be a program name with args.
15297set dummy DeRez; ac_word=$2
579d8138 15298echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b13cd66e 15299echo "configure:15300: checking for $ac_word" >&5
579d8138
VS
15300if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15301 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15302else
21d1c967
GD
15303 if test -n "$DEREZ"; then
15304 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15305else
f09359cf
VS
15306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15307 ac_dummy="$PATH"
15308 for ac_dir in $ac_dummy; do
579d8138
VS
15309 test -z "$ac_dir" && ac_dir=.
15310 if test -f $ac_dir/$ac_word; then
15311 ac_cv_prog_DEREZ="DeRez"
15312 break
15313 fi
15314 done
15315 IFS="$ac_save_ifs"
21d1c967 15316 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15317fi
90dd450c 15318fi
579d8138 15319DEREZ="$ac_cv_prog_DEREZ"
21d1c967 15320if test -n "$DEREZ"; then
579d8138 15321 echo "$ac_t""$DEREZ" 1>&6
90dd450c 15322else
579d8138 15323 echo "$ac_t""no" 1>&6
3a922bb4 15324fi
698dcdb6 15325
21d1c967
GD
15326 MACOSX_BUNDLE="bundle"
15327 if test "$wxUSE_SHARED" = "yes"; then
15328 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15329 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15330 else
15331 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15332 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15333 fi
15334else
15335 if test "$wxUSE_PM" = 1; then
15336 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15337 fi
4f14bcd8 15338fi
10f2d63a 15339
579d8138
VS
15340
15341echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
b13cd66e 15342echo "configure:15343: checking for ANSI C header files" >&5
579d8138
VS
15343if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15344 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 15345else
579d8138 15346 cat > conftest.$ac_ext <<EOF
b13cd66e 15347#line 15348 "configure"
90dd450c 15348#include "confdefs.h"
579d8138
VS
15349#include <stdlib.h>
15350#include <stdarg.h>
15351#include <string.h>
15352#include <float.h>
15353EOF
15354ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 15355{ (eval echo configure:15356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 15356ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
15357if test -z "$ac_err"; then
15358 rm -rf conftest*
15359 ac_cv_header_stdc=yes
15360else
15361 echo "$ac_err" >&5
15362 echo "configure: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15364 rm -rf conftest*
15365 ac_cv_header_stdc=no
15366fi
15367rm -f conftest*
15368
15369if test $ac_cv_header_stdc = yes; then
15370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15371cat > conftest.$ac_ext <<EOF
b13cd66e 15372#line 15373 "configure"
579d8138
VS
15373#include "confdefs.h"
15374#include <string.h>
15375EOF
15376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15377 egrep "memchr" >/dev/null 2>&1; then
15378 :
90dd450c 15379else
579d8138
VS
15380 rm -rf conftest*
15381 ac_cv_header_stdc=no
90dd450c 15382fi
579d8138
VS
15383rm -f conftest*
15384
90dd450c 15385fi
579d8138
VS
15386
15387if test $ac_cv_header_stdc = yes; then
15388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15389cat > conftest.$ac_ext <<EOF
b13cd66e 15390#line 15391 "configure"
579d8138
VS
15391#include "confdefs.h"
15392#include <stdlib.h>
15393EOF
15394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15395 egrep "free" >/dev/null 2>&1; then
90dd450c 15396 :
10f2d63a 15397else
579d8138
VS
15398 rm -rf conftest*
15399 ac_cv_header_stdc=no
15400fi
15401rm -f conftest*
9d353d4a 15402
579d8138
VS
15403fi
15404
15405if test $ac_cv_header_stdc = yes; then
15406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15407if test "$cross_compiling" = yes; then
15408 :
15409else
15410 cat > conftest.$ac_ext <<EOF
b13cd66e 15411#line 15412 "configure"
579d8138
VS
15412#include "confdefs.h"
15413#include <ctype.h>
15414#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15415#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15416#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15417int main () { int i; for (i = 0; i < 256; i++)
15418if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15419exit (0); }
15420
15421EOF
b13cd66e 15422if { (eval echo configure:15423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
579d8138
VS
15423then
15424 :
15425else
15426 echo "configure: failed program was:" >&5
15427 cat conftest.$ac_ext >&5
15428 rm -fr conftest*
15429 ac_cv_header_stdc=no
15430fi
15431rm -fr conftest*
15432fi
15433
15434fi
15435fi
15436
15437echo "$ac_t""$ac_cv_header_stdc" 1>&6
15438if test $ac_cv_header_stdc = yes; then
15439 cat >> confdefs.h <<\EOF
15440#define STDC_HEADERS 1
9d353d4a
RR
15441EOF
15442
90dd450c 15443fi
9d353d4a 15444
579d8138 15445echo $ac_n "checking for mode_t""... $ac_c" 1>&6
b13cd66e 15446echo "configure:15447: checking for mode_t" >&5
579d8138
VS
15447if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 15449else
579d8138 15450 cat > conftest.$ac_ext <<EOF
b13cd66e 15451#line 15452 "configure"
10f2d63a 15452#include "confdefs.h"
579d8138
VS
15453#include <sys/types.h>
15454#if STDC_HEADERS
15455#include <stdlib.h>
15456#include <stddef.h>
15457#endif
15458EOF
15459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f09359cf 15460 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
579d8138
VS
15461 rm -rf conftest*
15462 ac_cv_type_mode_t=yes
698dcdb6 15463else
579d8138
VS
15464 rm -rf conftest*
15465 ac_cv_type_mode_t=no
698dcdb6 15466fi
579d8138
VS
15467rm -f conftest*
15468
698dcdb6 15469fi
579d8138
VS
15470echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15471if test $ac_cv_type_mode_t = no; then
15472 cat >> confdefs.h <<\EOF
15473#define mode_t int
15474EOF
15475
15476fi
15477
15478echo $ac_n "checking for off_t""... $ac_c" 1>&6
b13cd66e 15479echo "configure:15480: checking for off_t" >&5
579d8138
VS
15480if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15481 echo $ac_n "(cached) $ac_c" 1>&6
15482else
15483 cat > conftest.$ac_ext <<EOF
b13cd66e 15484#line 15485 "configure"
579d8138
VS
15485#include "confdefs.h"
15486#include <sys/types.h>
15487#if STDC_HEADERS
15488#include <stdlib.h>
15489#include <stddef.h>
15490#endif
15491EOF
15492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f09359cf 15493 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
579d8138
VS
15494 rm -rf conftest*
15495 ac_cv_type_off_t=yes
328a083c 15496else
579d8138
VS
15497 rm -rf conftest*
15498 ac_cv_type_off_t=no
15499fi
15500rm -f conftest*
328a083c 15501
579d8138
VS
15502fi
15503echo "$ac_t""$ac_cv_type_off_t" 1>&6
15504if test $ac_cv_type_off_t = no; then
15505 cat >> confdefs.h <<\EOF
90dd450c 15506#define off_t long
10f2d63a
VZ
15507EOF
15508
90dd450c 15509fi
10f2d63a 15510
579d8138 15511echo $ac_n "checking for pid_t""... $ac_c" 1>&6
b13cd66e 15512echo "configure:15513: checking for pid_t" >&5
579d8138
VS
15513if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15514 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 15515else
579d8138 15516 cat > conftest.$ac_ext <<EOF
b13cd66e 15517#line 15518 "configure"
10f2d63a 15518#include "confdefs.h"
579d8138
VS
15519#include <sys/types.h>
15520#if STDC_HEADERS
15521#include <stdlib.h>
15522#include <stddef.h>
15523#endif
15524EOF
15525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f09359cf 15526 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
579d8138 15527 rm -rf conftest*
90dd450c 15528 ac_cv_type_pid_t=yes
698dcdb6 15529else
579d8138
VS
15530 rm -rf conftest*
15531 ac_cv_type_pid_t=no
698dcdb6 15532fi
579d8138 15533rm -f conftest*
328a083c 15534
579d8138
VS
15535fi
15536echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15537if test $ac_cv_type_pid_t = no; then
15538 cat >> confdefs.h <<\EOF
90dd450c 15539#define pid_t int
10f2d63a
VZ
15540EOF
15541
90dd450c 15542fi
328a083c 15543
579d8138 15544echo $ac_n "checking for size_t""... $ac_c" 1>&6
b13cd66e 15545echo "configure:15546: checking for size_t" >&5
579d8138
VS
15546if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15547 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 15548else
579d8138 15549 cat > conftest.$ac_ext <<EOF
b13cd66e 15550#line 15551 "configure"
328a083c 15551#include "confdefs.h"
579d8138
VS
15552#include <sys/types.h>
15553#if STDC_HEADERS
15554#include <stdlib.h>
15555#include <stddef.h>
15556#endif
15557EOF
15558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f09359cf 15559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
579d8138 15560 rm -rf conftest*
90dd450c 15561 ac_cv_type_size_t=yes
18dbb1f6 15562else
579d8138
VS
15563 rm -rf conftest*
15564 ac_cv_type_size_t=no
18dbb1f6 15565fi
579d8138 15566rm -f conftest*
328a083c 15567
579d8138
VS
15568fi
15569echo "$ac_t""$ac_cv_type_size_t" 1>&6
15570if test $ac_cv_type_size_t = no; then
15571 cat >> confdefs.h <<\EOF
90dd450c
VZ
15572#define size_t unsigned
15573EOF
15574
15575fi
15576
579d8138 15577echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
b13cd66e 15578echo "configure:15579: checking for uid_t in sys/types.h" >&5
579d8138
VS
15579if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15580 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 15581else
579d8138 15582 cat > conftest.$ac_ext <<EOF
b13cd66e 15583#line 15584 "configure"
b3e8d00a 15584#include "confdefs.h"
90dd450c 15585#include <sys/types.h>
579d8138 15586EOF
90dd450c
VZ
15587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15588 egrep "uid_t" >/dev/null 2>&1; then
579d8138 15589 rm -rf conftest*
90dd450c 15590 ac_cv_type_uid_t=yes
b3e8d00a 15591else
579d8138 15592 rm -rf conftest*
90dd450c 15593 ac_cv_type_uid_t=no
b3e8d00a 15594fi
90dd450c 15595rm -f conftest*
b3e8d00a 15596
4f14bcd8 15597fi
328a083c 15598
579d8138
VS
15599echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15600if test $ac_cv_type_uid_t = no; then
15601 cat >> confdefs.h <<\EOF
90dd450c
VZ
15602#define uid_t int
15603EOF
15604
579d8138 15605 cat >> confdefs.h <<\EOF
90dd450c 15606#define gid_t int
b3e8d00a 15607EOF
4f14bcd8 15608
b3e8d00a 15609fi
b3e8d00a 15610
579d8138
VS
15611
15612
15613ac_ext=C
15614# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 15615ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 15616ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 15617ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 15618cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 15619
579d8138 15620echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
b13cd66e 15621echo "configure:15622: checking if size_t is unsigned int" >&5
579d8138
VS
15622if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15623 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 15624else
579d8138 15625 cat > conftest.$ac_ext <<EOF
b13cd66e 15626#line 15627 "configure"
10f2d63a 15627#include "confdefs.h"
90dd450c 15628#include <stddef.h>
579d8138 15629int main() {
90dd450c
VZ
15630
15631 return 0; }
15632
15633 struct Foo { void foo(size_t); void foo(unsigned int); };
15634
15635 int bar() {
579d8138
VS
15636
15637; return 0; }
15638EOF
b13cd66e 15639if { (eval echo configure:15640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 15640 rm -rf conftest*
90dd450c 15641 wx_cv_size_t_is_uint=no
698dcdb6 15642else
579d8138
VS
15643 echo "configure: failed program was:" >&5
15644 cat conftest.$ac_ext >&5
15645 rm -rf conftest*
15646 wx_cv_size_t_is_uint=yes
15647
698dcdb6 15648fi
579d8138 15649rm -f conftest*
698dcdb6 15650
328a083c 15651fi
579d8138
VS
15652
15653echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15654
90dd450c 15655if test "$wx_cv_size_t_is_uint" = "yes"; then
579d8138 15656 cat >> confdefs.h <<\EOF
90dd450c 15657#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15658EOF
15659
90dd450c 15660else
579d8138 15661 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
b13cd66e 15662echo "configure:15663: checking if size_t is unsigned long" >&5
579d8138
VS
15663if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15664 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 15665else
579d8138 15666 cat > conftest.$ac_ext <<EOF
b13cd66e 15667#line 15668 "configure"
10f2d63a 15668#include "confdefs.h"
90dd450c 15669#include <stddef.h>
579d8138 15670int main() {
90dd450c
VZ
15671
15672 return 0; }
15673
15674 struct Foo { void foo(size_t); void foo(unsigned long); };
15675
15676 int bar() {
579d8138
VS
15677
15678; return 0; }
15679EOF
b13cd66e 15680if { (eval echo configure:15681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 15681 rm -rf conftest*
90dd450c 15682 wx_cv_size_t_is_ulong=no
698dcdb6 15683else
579d8138
VS
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
15687 wx_cv_size_t_is_ulong=yes
15688
698dcdb6 15689fi
579d8138
VS
15690rm -f conftest*
15691
328a083c 15692fi
579d8138
VS
15693
15694echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15695
90dd450c 15696 if test "$wx_cv_size_t_is_ulong" = "yes"; then
579d8138 15697 cat >> confdefs.h <<\EOF
90dd450c 15698#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15699EOF
15700
15701 fi
90dd450c 15702fi
1e487827 15703
90dd450c 15704ac_ext=c
579d8138 15705# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 15706ac_cpp='$CPP $CPPFLAGS'
579d8138 15707ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 15708ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
15709cross_compiling=$ac_cv_prog_cc_cross
15710
698dcdb6 15711
328a083c 15712
579d8138 15713echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
b13cd66e 15714echo "configure:15715: checking for pw_gecos in struct passwd" >&5
579d8138
VS
15715if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15716 echo $ac_n "(cached) $ac_c" 1>&6
15717else
15718
15719 cat > conftest.$ac_ext <<EOF
b13cd66e 15720#line 15721 "configure"
4f14bcd8 15721#include "confdefs.h"
90dd450c 15722#include <pwd.h>
579d8138 15723int main() {
f6bcfd97 15724
90dd450c
VZ
15725 char *p;
15726 struct passwd *pw;
15727 p = pw->pw_gecos;
579d8138
VS
15728
15729; return 0; }
15730EOF
b13cd66e 15731if { (eval echo configure:15732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
15732 rm -rf conftest*
15733
90dd450c 15734 wx_cv_struct_pw_gecos=yes
579d8138 15735
10f2d63a 15736else
579d8138
VS
15737 echo "configure: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 rm -rf conftest*
15740
90dd450c 15741 wx_cv_struct_pw_gecos=no
579d8138
VS
15742
15743
4f14bcd8 15744fi
579d8138
VS
15745rm -f conftest*
15746
c521c494 15747
328a083c 15748fi
579d8138
VS
15749
15750echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15751
90dd450c 15752if test "$wx_cv_struct_pw_gecos" = "yes"; then
579d8138 15753 cat >> confdefs.h <<\EOF
90dd450c 15754#define HAVE_PW_GECOS 1
4f14bcd8 15755EOF
c521c494 15756
90dd450c 15757fi
4f14bcd8 15758
579d8138 15759
d29b553b
VZ
15760WCHAR_OK=0
15761if test "$wx_cv_sizeof_wchar_t" != "0"; then
15762 WCHAR_LINK=
579d8138 15763 for ac_func in wcslen
7a30264c 15764do
579d8138 15765echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 15766echo "configure:15767: checking for $ac_func" >&5
579d8138
VS
15767if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15768 echo $ac_n "(cached) $ac_c" 1>&6
15769else
15770 cat > conftest.$ac_ext <<EOF
b13cd66e 15771#line 15772 "configure"
4f14bcd8 15772#include "confdefs.h"
7a30264c 15773/* System header to define __stub macros and hopefully few prototypes,
579d8138 15774 which can conflict with char $ac_func(); below. */
7a30264c 15775#include <assert.h>
4f14bcd8
GD
15776/* Override any gcc2 internal prototype to avoid an error. */
15777/* We use char because int might match the return type of a gcc2
579d8138
VS
15778 builtin and then its argument prototype would still apply. */
15779char $ac_func();
15780
15781int main() {
7a30264c
VZ
15782
15783/* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15787choke me
15788#else
579d8138 15789$ac_func();
7a30264c
VZ
15790#endif
15791
579d8138
VS
15792; return 0; }
15793EOF
b13cd66e 15794if { (eval echo configure:15795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
15795 rm -rf conftest*
15796 eval "ac_cv_func_$ac_func=yes"
15797else
15798 echo "configure: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15800 rm -rf conftest*
15801 eval "ac_cv_func_$ac_func=no"
15802fi
15803rm -f conftest*
15804fi
15805
15806if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15807 echo "$ac_t""yes" 1>&6
15808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15809 cat >> confdefs.h <<EOF
15810#define $ac_tr_func 1
15811EOF
15812
15813 cat >> confdefs.h <<\EOF
4f14bcd8 15814#define HAVE_WCSLEN 1
9d8deca0
VZ
15815EOF
15816
7a30264c 15817 WCHAR_OK=1
579d8138
VS
15818
15819else
15820 echo "$ac_t""no" 1>&6
7a30264c
VZ
15821fi
15822done
9d8deca0 15823
579d8138 15824
7a30264c
VZ
15825 if test "$WCHAR_OK" = 0; then
15826 if test "$TOOLKIT" = "MSW"; then
579d8138 15827 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
b13cd66e 15828echo "configure:15829: checking for wcslen in -lmsvcrt" >&5
579d8138
VS
15829ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15831 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15832else
579d8138 15833 ac_save_LIBS="$LIBS"
7a30264c 15834LIBS="-lmsvcrt $LIBS"
579d8138 15835cat > conftest.$ac_ext <<EOF
b13cd66e 15836#line 15837 "configure"
10f2d63a 15837#include "confdefs.h"
4f14bcd8
GD
15838/* Override any gcc2 internal prototype to avoid an error. */
15839/* We use char because int might match the return type of a gcc2
579d8138
VS
15840 builtin and then its argument prototype would still apply. */
15841char wcslen();
15842
15843int main() {
15844wcslen()
15845; return 0; }
15846EOF
b13cd66e 15847if { (eval echo configure:15848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
15848 rm -rf conftest*
15849 eval "ac_cv_lib_$ac_lib_var=yes"
15850else
15851 echo "configure: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15853 rm -rf conftest*
15854 eval "ac_cv_lib_$ac_lib_var=no"
15855fi
15856rm -f conftest*
15857LIBS="$ac_save_LIBS"
15858
15859fi
15860if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15861 echo "$ac_t""yes" 1>&6
15862
15863 cat >> confdefs.h <<\EOF
4f14bcd8 15864#define HAVE_WCSLEN 1
9d8deca0
VZ
15865EOF
15866
7a30264c 15867 WCHAR_OK=1
579d8138
VS
15868
15869else
15870 echo "$ac_t""no" 1>&6
d29b553b 15871fi
698dcdb6 15872
7a30264c 15873 else
579d8138 15874 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
b13cd66e 15875echo "configure:15876: checking for wcslen in -lw" >&5
579d8138
VS
15876ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15877if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15878 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 15879else
579d8138 15880 ac_save_LIBS="$LIBS"
7a30264c 15881LIBS="-lw $LIBS"
579d8138 15882cat > conftest.$ac_ext <<EOF
b13cd66e 15883#line 15884 "configure"
95c8801c 15884#include "confdefs.h"
4f14bcd8
GD
15885/* Override any gcc2 internal prototype to avoid an error. */
15886/* We use char because int might match the return type of a gcc2
579d8138
VS
15887 builtin and then its argument prototype would still apply. */
15888char wcslen();
15889
15890int main() {
15891wcslen()
15892; return 0; }
15893EOF
b13cd66e 15894if { (eval echo configure:15895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
15895 rm -rf conftest*
15896 eval "ac_cv_lib_$ac_lib_var=yes"
15897else
15898 echo "configure: failed program was:" >&5
15899 cat conftest.$ac_ext >&5
15900 rm -rf conftest*
15901 eval "ac_cv_lib_$ac_lib_var=no"
15902fi
15903rm -f conftest*
15904LIBS="$ac_save_LIBS"
15905
15906fi
15907if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15908 echo "$ac_t""yes" 1>&6
15909
15910 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15911#define HAVE_WCSLEN 1
15912EOF
698dcdb6 15913
7a30264c
VZ
15914 WCHAR_LINK=" -lw"
15915 WCHAR_OK=1
579d8138
VS
15916
15917else
15918 echo "$ac_t""no" 1>&6
4f14bcd8 15919fi
10f2d63a 15920
7a30264c 15921 fi
d29b553b 15922 fi
4f14bcd8 15923fi
95c8801c 15924
d29b553b 15925if test "$WCHAR_OK" = 1; then
579d8138 15926 cat >> confdefs.h <<\EOF
d29b553b
VZ
15927#define wxUSE_WCHAR_T 1
15928EOF
10f2d63a 15929
579d8138
VS
15930
15931 for ac_func in wcsrtombs
eb4efbdc 15932do
579d8138 15933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 15934echo "configure:15935: checking for $ac_func" >&5
579d8138
VS
15935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15936 echo $ac_n "(cached) $ac_c" 1>&6
15937else
15938 cat > conftest.$ac_ext <<EOF
b13cd66e 15939#line 15940 "configure"
eb4efbdc
VZ
15940#include "confdefs.h"
15941/* System header to define __stub macros and hopefully few prototypes,
579d8138 15942 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15943#include <assert.h>
15944/* Override any gcc2 internal prototype to avoid an error. */
15945/* We use char because int might match the return type of a gcc2
579d8138
VS
15946 builtin and then its argument prototype would still apply. */
15947char $ac_func();
15948
15949int main() {
eb4efbdc
VZ
15950
15951/* The GNU C library defines this for functions which it implements
15952 to always fail with ENOSYS. Some functions are actually named
15953 something starting with __ and the normal name is an alias. */
15954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15955choke me
15956#else
579d8138 15957$ac_func();
eb4efbdc
VZ
15958#endif
15959
579d8138 15960; return 0; }
eb4efbdc 15961EOF
b13cd66e 15962if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
15963 rm -rf conftest*
15964 eval "ac_cv_func_$ac_func=yes"
15965else
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15968 rm -rf conftest*
15969 eval "ac_cv_func_$ac_func=no"
15970fi
15971rm -f conftest*
15972fi
eb4efbdc 15973
579d8138
VS
15974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977 cat >> confdefs.h <<EOF
15978#define $ac_tr_func 1
15979EOF
15980
15981else
15982 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15983fi
15984done
15985
d29b553b 15986else
a1ea5055 15987 if test "$USE_DARWIN" = 1; then
579d8138 15988 cat >> confdefs.h <<\EOF
a1ea5055
GD
15989#define wxUSE_WCHAR_T 1
15990EOF
15991
15992 else
579d8138 15993 echo "configure: warning: Wide character support is unavailable" 1>&2
a1ea5055 15994 fi
d29b553b 15995fi
698dcdb6 15996
579d8138 15997echo $ac_n "checking for vprintf""... $ac_c" 1>&6
b13cd66e 15998echo "configure:15999: checking for vprintf" >&5
579d8138
VS
15999if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
16000 echo $ac_n "(cached) $ac_c" 1>&6
16001else
16002 cat > conftest.$ac_ext <<EOF
b13cd66e 16003#line 16004 "configure"
f6bcfd97 16004#include "confdefs.h"
4f14bcd8 16005/* System header to define __stub macros and hopefully few prototypes,
579d8138 16006 which can conflict with char vprintf(); below. */
4f14bcd8
GD
16007#include <assert.h>
16008/* Override any gcc2 internal prototype to avoid an error. */
16009/* We use char because int might match the return type of a gcc2
579d8138
VS
16010 builtin and then its argument prototype would still apply. */
16011char vprintf();
16012
16013int main() {
f6bcfd97 16014
4f14bcd8
GD
16015/* The GNU C library defines this for functions which it implements
16016 to always fail with ENOSYS. Some functions are actually named
16017 something starting with __ and the normal name is an alias. */
579d8138 16018#if defined (__stub_vprintf) || defined (__stub___vprintf)
4f14bcd8
GD
16019choke me
16020#else
579d8138 16021vprintf();
4f14bcd8 16022#endif
f6bcfd97 16023
579d8138
VS
16024; return 0; }
16025EOF
b13cd66e 16026if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16027 rm -rf conftest*
16028 eval "ac_cv_func_vprintf=yes"
16029else
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16032 rm -rf conftest*
16033 eval "ac_cv_func_vprintf=no"
16034fi
16035rm -f conftest*
16036fi
16037
16038if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16039 echo "$ac_t""yes" 1>&6
16040 cat >> confdefs.h <<\EOF
16041#define HAVE_VPRINTF 1
16042EOF
16043
16044else
16045 echo "$ac_t""no" 1>&6
16046fi
16047
16048if test "$ac_cv_func_vprintf" != yes; then
16049echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
b13cd66e 16050echo "configure:16051: checking for _doprnt" >&5
579d8138
VS
16051if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
16052 echo $ac_n "(cached) $ac_c" 1>&6
16053else
16054 cat > conftest.$ac_ext <<EOF
b13cd66e 16055#line 16056 "configure"
10f2d63a
VZ
16056#include "confdefs.h"
16057/* System header to define __stub macros and hopefully few prototypes,
579d8138 16058 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
16059#include <assert.h>
16060/* Override any gcc2 internal prototype to avoid an error. */
16061/* We use char because int might match the return type of a gcc2
579d8138
VS
16062 builtin and then its argument prototype would still apply. */
16063char _doprnt();
16064
16065int main() {
10f2d63a
VZ
16066
16067/* The GNU C library defines this for functions which it implements
16068 to always fail with ENOSYS. Some functions are actually named
16069 something starting with __ and the normal name is an alias. */
4f14bcd8 16070#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
16071choke me
16072#else
579d8138 16073_doprnt();
10f2d63a
VZ
16074#endif
16075
579d8138
VS
16076; return 0; }
16077EOF
b13cd66e 16078if { (eval echo configure:16079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16079 rm -rf conftest*
16080 eval "ac_cv_func__doprnt=yes"
16081else
16082 echo "configure: failed program was:" >&5
16083 cat conftest.$ac_ext >&5
16084 rm -rf conftest*
16085 eval "ac_cv_func__doprnt=no"
16086fi
16087rm -f conftest*
16088fi
16089
16090if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16091 echo "$ac_t""yes" 1>&6
16092 cat >> confdefs.h <<\EOF
4f14bcd8 16093#define HAVE_DOPRNT 1
698dcdb6 16094EOF
4f14bcd8 16095
579d8138
VS
16096else
16097 echo "$ac_t""no" 1>&6
270a909e 16098fi
270a909e 16099
4f14bcd8 16100fi
1e487827 16101
328a083c 16102
579d8138
VS
16103
16104
16105
16106
16107echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
b13cd66e 16108echo "configure:16109: checking for vsnprintf" >&5
579d8138
VS
16109if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
16110 echo $ac_n "(cached) $ac_c" 1>&6
16111else
16112
16113 cat > conftest.$ac_ext <<EOF
b13cd66e 16114#line 16115 "configure"
c63c7106 16115#include "confdefs.h"
698dcdb6 16116
4f14bcd8
GD
16117 #include <stdio.h>
16118 #include <stdarg.h>
579d8138
VS
16119
16120int main() {
af15babd 16121
4f14bcd8
GD
16122 int wx_test_vsnprintf(const char *, ...);
16123
16124 wx_test_vsnprintf("%s");
16125 return 0;
16126 }
16127
16128 int wx_test_vsnprintf(const char *fmt, ...)
16129 {
16130 char *s;
16131
16132 va_list argp;
16133 va_start(argp, fmt);
16134 vsnprintf(s, 42, fmt, argp);
16135 va_end(argp);
579d8138
VS
16136
16137; return 0; }
16138EOF
b13cd66e 16139if { (eval echo configure:16140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16140 rm -rf conftest*
16141
4f14bcd8 16142 wx_cv_func_vsnprintf=yes
579d8138 16143
af15babd 16144else
579d8138
VS
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 rm -rf conftest*
16148
16149 cat > conftest.$ac_ext <<EOF
b13cd66e 16150#line 16151 "configure"
af15babd 16151#include "confdefs.h"
af15babd 16152
4f14bcd8
GD
16153 #include <stdio.h>
16154 #include <stdarg.h>
579d8138
VS
16155
16156int main() {
af15babd 16157
4f14bcd8
GD
16158 int wx_test_vsnprintf(const char *, ...);
16159
16160 wx_test_vsnprintf("%s");
16161 return 0;
16162 }
16163
16164 int wx_test_vsnprintf(const char *fmt, ...)
16165 {
16166 char *s;
af15babd 16167
4f14bcd8
GD
16168 va_list argp;
16169 va_start(argp, fmt);
16170 _vsnprintf(s, 42, fmt, argp);
16171 va_end(argp);
579d8138
VS
16172
16173; return 0; }
16174EOF
b13cd66e 16175if { (eval echo configure:16176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16176 rm -rf conftest*
16177
4f14bcd8 16178 wx_cv_func_vsnprintf=yes
579d8138 16179
af15babd 16180else
579d8138
VS
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 rm -rf conftest*
16184
4f14bcd8 16185 wx_cv_func_vsnprintf=no
579d8138 16186
af15babd 16187fi
579d8138
VS
16188rm -f conftest*
16189
af15babd 16190fi
579d8138 16191rm -f conftest*
af15babd 16192
328a083c 16193fi
579d8138
VS
16194
16195echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 16196
4f14bcd8 16197if test "$wx_cv_func_vsnprintf" = yes; then
579d8138 16198 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16199#define HAVE_VSNPRINTF 1
16200EOF
16201
16202else
579d8138 16203 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
16204fi
16205
579d8138 16206echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
b13cd66e 16207echo "configure:16208: checking for vsscanf" >&5
579d8138
VS
16208if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16209 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16210else
579d8138
VS
16211
16212 cat > conftest.$ac_ext <<EOF
b13cd66e 16213#line 16214 "configure"
af15babd 16214#include "confdefs.h"
af15babd 16215
4f14bcd8
GD
16216 #include <stdio.h>
16217 #include <stdarg.h>
579d8138
VS
16218
16219int main() {
af15babd 16220
4f14bcd8
GD
16221 int wx_test_vsscanf(const char *, ...);
16222
16223 wx_test_vsscanf("%d");
16224 return 0;
16225 }
af15babd 16226
4f14bcd8
GD
16227 int wx_test_vsscanf(const char *fmt, ...)
16228 {
16229 va_list argp;
16230 va_start(argp, fmt);
16231 vsscanf("42", fmt, argp);
16232 va_end(argp);
579d8138
VS
16233
16234; return 0; }
16235EOF
b13cd66e 16236if { (eval echo configure:16237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
16237 rm -rf conftest*
16238
4f14bcd8 16239 wx_cv_func_vsscanf=yes
579d8138 16240
af15babd 16241else
579d8138
VS
16242 echo "configure: failed program was:" >&5
16243 cat conftest.$ac_ext >&5
16244 rm -rf conftest*
16245
4f14bcd8 16246 wx_cv_func_vsscanf=no
579d8138 16247
af15babd 16248fi
579d8138 16249rm -f conftest*
af15babd 16250
328a083c 16251fi
579d8138
VS
16252
16253echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
4f14bcd8
GD
16254
16255if test "$wx_cv_func_vsscanf" = yes; then
579d8138 16256 cat >> confdefs.h <<\EOF
4f14bcd8 16257#define HAVE_VSSCANF 1
af15babd 16258EOF
4f14bcd8 16259
af15babd 16260fi
af15babd 16261
4f14bcd8 16262if test "$TOOLKIT" != "MSW"; then
af15babd 16263
579d8138
VS
16264
16265
16266ac_ext=C
16267# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16268ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 16269ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 16270ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 16271cross_compiling=$ac_cv_prog_cxx_cross
b040e242 16272
579d8138
VS
16273
16274
16275 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
16276if test "${with_libiconv_prefix+set}" = set; then
16277 withval="$with_libiconv_prefix"
579d8138 16278
b040e242
VS
16279 for dir in `echo "$withval" | tr : ' '`; do
16280 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16281 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16282 done
579d8138
VS
16283
16284fi
b040e242
VS
16285
16286
579d8138 16287 echo $ac_n "checking for iconv""... $ac_c" 1>&6
b13cd66e 16288echo "configure:16289: checking for iconv" >&5
579d8138
VS
16289if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16290 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16291else
579d8138 16292
b040e242
VS
16293 am_cv_func_iconv="no, consider installing GNU libiconv"
16294 am_cv_lib_iconv=no
579d8138 16295 cat > conftest.$ac_ext <<EOF
b13cd66e 16296#line 16297 "configure"
af15babd 16297#include "confdefs.h"
b040e242 16298#include <stdlib.h>
4f14bcd8 16299#include <iconv.h>
579d8138 16300int main() {
b040e242
VS
16301iconv_t cd = iconv_open("","");
16302 iconv(cd,NULL,NULL,NULL,NULL);
16303 iconv_close(cd);
579d8138
VS
16304; return 0; }
16305EOF
b13cd66e 16306if { (eval echo configure:16307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 16307 rm -rf conftest*
b040e242 16308 am_cv_func_iconv=yes
af15babd 16309else
579d8138
VS
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
b040e242 16312fi
579d8138 16313rm -f conftest*
b040e242
VS
16314 if test "$am_cv_func_iconv" != yes; then
16315 am_save_LIBS="$LIBS"
16316 LIBS="$LIBS -liconv"
579d8138 16317 cat > conftest.$ac_ext <<EOF
b13cd66e 16318#line 16319 "configure"
b040e242
VS
16319#include "confdefs.h"
16320#include <stdlib.h>
16321#include <iconv.h>
579d8138 16322int main() {
b040e242
VS
16323iconv_t cd = iconv_open("","");
16324 iconv(cd,NULL,NULL,NULL,NULL);
16325 iconv_close(cd);
579d8138
VS
16326; return 0; }
16327EOF
b13cd66e 16328if { (eval echo configure:16329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 16329 rm -rf conftest*
b040e242
VS
16330 am_cv_lib_iconv=yes
16331 am_cv_func_iconv=yes
16332else
579d8138
VS
16333 echo "configure: failed program was:" >&5
16334 cat conftest.$ac_ext >&5
af15babd 16335fi
579d8138 16336rm -f conftest*
b040e242
VS
16337 LIBS="$am_save_LIBS"
16338 fi
579d8138 16339
328a083c 16340fi
328a083c 16341
579d8138
VS
16342echo "$ac_t""$am_cv_func_iconv" 1>&6
16343 if test "$am_cv_func_iconv" = yes; then
16344 cat >> confdefs.h <<\EOF
b040e242
VS
16345#define HAVE_ICONV 1
16346EOF
16347
579d8138 16348 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
b13cd66e 16349echo "configure:16350: checking if iconv needs const" >&5
579d8138
VS
16350if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16351 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 16352else
579d8138 16353 cat > conftest.$ac_ext <<EOF
b13cd66e 16354#line 16355 "configure"
b040e242
VS
16355#include "confdefs.h"
16356
16357#include <stdlib.h>
16358#include <iconv.h>
16359extern
16360#ifdef __cplusplus
16361"C"
16362#endif
16363#if defined(__STDC__) || defined(__cplusplus)
16364size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16365#else
16366size_t iconv();
16367#endif
579d8138
VS
16368
16369int main() {
af15babd 16370
579d8138
VS
16371; return 0; }
16372EOF
b13cd66e 16373if { (eval echo configure:16374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 16374 rm -rf conftest*
b7043674 16375 wx_cv_func_iconv_const="no"
b040e242 16376else
579d8138
VS
16377 echo "configure: failed program was:" >&5
16378 cat conftest.$ac_ext >&5
16379 rm -rf conftest*
16380 wx_cv_func_iconv_const="yes"
16381
af15babd 16382fi
579d8138
VS
16383rm -f conftest*
16384
328a083c 16385fi
579d8138
VS
16386
16387echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
16388
16389 iconv_const=
1c405bb5 16390 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16391 iconv_const="const"
16392 fi
16393
579d8138 16394 cat >> confdefs.h <<EOF
f09359cf 16395#define ICONV_CONST $iconv_const
b040e242
VS
16396EOF
16397
16398 fi
16399 LIBICONV=
16400 if test "$am_cv_lib_iconv" = yes; then
16401 LIBICONV="-liconv"
16402 fi
579d8138 16403
b040e242
VS
16404
16405LIBS="$LIBICONV $LIBS"
4f14bcd8 16406ac_ext=c
579d8138 16407# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16408ac_cpp='$CPP $CPPFLAGS'
579d8138 16409ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 16410ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 16411cross_compiling=$ac_cv_prog_cc_cross
af15babd 16412
328a083c 16413
579d8138
VS
16414if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16415 for ac_func in sigaction
af15babd 16416do
579d8138 16417echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16418echo "configure:16419: checking for $ac_func" >&5
579d8138
VS
16419if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16421else
16422 cat > conftest.$ac_ext <<EOF
b13cd66e 16423#line 16424 "configure"
af15babd
VZ
16424#include "confdefs.h"
16425/* System header to define __stub macros and hopefully few prototypes,
579d8138 16426 which can conflict with char $ac_func(); below. */
af15babd
VZ
16427#include <assert.h>
16428/* Override any gcc2 internal prototype to avoid an error. */
16429/* We use char because int might match the return type of a gcc2
579d8138
VS
16430 builtin and then its argument prototype would still apply. */
16431char $ac_func();
16432
16433int main() {
af15babd
VZ
16434
16435/* The GNU C library defines this for functions which it implements
16436 to always fail with ENOSYS. Some functions are actually named
16437 something starting with __ and the normal name is an alias. */
16438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16439choke me
16440#else
579d8138 16441$ac_func();
af15babd
VZ
16442#endif
16443
579d8138 16444; return 0; }
af15babd 16445EOF
b13cd66e 16446if { (eval echo configure:16447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16447 rm -rf conftest*
16448 eval "ac_cv_func_$ac_func=yes"
16449else
16450 echo "configure: failed program was:" >&5
16451 cat conftest.$ac_ext >&5
16452 rm -rf conftest*
16453 eval "ac_cv_func_$ac_func=no"
16454fi
16455rm -f conftest*
16456fi
af15babd 16457
579d8138
VS
16458if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16459 echo "$ac_t""yes" 1>&6
16460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16461 cat >> confdefs.h <<EOF
16462#define $ac_tr_func 1
16463EOF
16464
16465else
16466 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16467fi
16468done
16469
579d8138 16470
4f14bcd8 16471 if test "$ac_cv_func_sigaction" = "no"; then
579d8138 16472 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
16473 wxUSE_ON_FATAL_EXCEPTION=no
16474 fi
16475
16476 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
579d8138
VS
16477
16478 ac_ext=C
16479# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
328a083c 16480ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 16481ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 16482ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 16483cross_compiling=$ac_cv_prog_cxx_cross
4f14bcd8 16484
328a083c 16485
579d8138 16486 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
b13cd66e 16487echo "configure:16488: checking for sa_handler type" >&5
579d8138
VS
16488if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16489 echo $ac_n "(cached) $ac_c" 1>&6
16490else
16491
16492 cat > conftest.$ac_ext <<EOF
b13cd66e 16493#line 16494 "configure"
af15babd 16494#include "confdefs.h"
4f14bcd8 16495#include <signal.h>
579d8138 16496int main() {
4f14bcd8
GD
16497
16498 extern void testSigHandler(int);
16499
16500 struct sigaction sa;
16501 sa.sa_handler = testSigHandler;
579d8138
VS
16502
16503; return 0; }
16504EOF
b13cd66e 16505if { (eval echo configure:16506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
16506 rm -rf conftest*
16507
4f14bcd8 16508 wx_cv_type_sa_handler=int
579d8138 16509
af15babd 16510else
579d8138
VS
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514
4f14bcd8 16515 wx_cv_type_sa_handler=void
579d8138 16516
4f14bcd8 16517fi
579d8138
VS
16518rm -f conftest*
16519
328a083c 16520fi
579d8138
VS
16521
16522echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
16523
16524 ac_ext=c
579d8138 16525# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16526ac_cpp='$CPP $CPPFLAGS'
579d8138 16527ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 16528ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
16529cross_compiling=$ac_cv_prog_cc_cross
16530
af15babd 16531
579d8138 16532 cat >> confdefs.h <<EOF
4f14bcd8 16533#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16534EOF
16535
4f14bcd8
GD
16536 fi
16537fi
af15babd 16538
4f14bcd8 16539for ac_func in vfork
af15babd 16540do
579d8138 16541echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16542echo "configure:16543: checking for $ac_func" >&5
579d8138
VS
16543if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16544 echo $ac_n "(cached) $ac_c" 1>&6
16545else
16546 cat > conftest.$ac_ext <<EOF
b13cd66e 16547#line 16548 "configure"
af15babd
VZ
16548#include "confdefs.h"
16549/* System header to define __stub macros and hopefully few prototypes,
579d8138 16550 which can conflict with char $ac_func(); below. */
af15babd
VZ
16551#include <assert.h>
16552/* Override any gcc2 internal prototype to avoid an error. */
16553/* We use char because int might match the return type of a gcc2
579d8138
VS
16554 builtin and then its argument prototype would still apply. */
16555char $ac_func();
16556
16557int main() {
af15babd
VZ
16558
16559/* The GNU C library defines this for functions which it implements
16560 to always fail with ENOSYS. Some functions are actually named
16561 something starting with __ and the normal name is an alias. */
16562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16563choke me
16564#else
579d8138 16565$ac_func();
af15babd
VZ
16566#endif
16567
579d8138 16568; return 0; }
af15babd 16569EOF
b13cd66e 16570if { (eval echo configure:16571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16571 rm -rf conftest*
16572 eval "ac_cv_func_$ac_func=yes"
16573else
16574 echo "configure: failed program was:" >&5
16575 cat conftest.$ac_ext >&5
16576 rm -rf conftest*
16577 eval "ac_cv_func_$ac_func=no"
16578fi
16579rm -f conftest*
16580fi
af15babd 16581
579d8138
VS
16582if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16583 echo "$ac_t""yes" 1>&6
16584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16585 cat >> confdefs.h <<EOF
16586#define $ac_tr_func 1
16587EOF
16588
16589else
16590 echo "$ac_t""no" 1>&6
af15babd
VZ
16591fi
16592done
16593
579d8138 16594
ade35f11
VZ
16595for ac_func in mkstemp mktemp
16596do
579d8138 16597echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16598echo "configure:16599: checking for $ac_func" >&5
579d8138
VS
16599if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16601else
16602 cat > conftest.$ac_ext <<EOF
b13cd66e 16603#line 16604 "configure"
ade35f11
VZ
16604#include "confdefs.h"
16605/* System header to define __stub macros and hopefully few prototypes,
579d8138 16606 which can conflict with char $ac_func(); below. */
ade35f11
VZ
16607#include <assert.h>
16608/* Override any gcc2 internal prototype to avoid an error. */
16609/* We use char because int might match the return type of a gcc2
579d8138
VS
16610 builtin and then its argument prototype would still apply. */
16611char $ac_func();
16612
16613int main() {
ade35f11
VZ
16614
16615/* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16619choke me
16620#else
579d8138 16621$ac_func();
ade35f11
VZ
16622#endif
16623
579d8138
VS
16624; return 0; }
16625EOF
b13cd66e 16626if { (eval echo configure:16627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16627 rm -rf conftest*
16628 eval "ac_cv_func_$ac_func=yes"
16629else
16630 echo "configure: failed program was:" >&5
16631 cat conftest.$ac_ext >&5
16632 rm -rf conftest*
16633 eval "ac_cv_func_$ac_func=no"
16634fi
16635rm -f conftest*
16636fi
16637
16638if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16639 echo "$ac_t""yes" 1>&6
16640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16641 cat >> confdefs.h <<EOF
16642#define $ac_tr_func 1
ade35f11
VZ
16643EOF
16644 break
579d8138
VS
16645else
16646 echo "$ac_t""no" 1>&6
ade35f11
VZ
16647fi
16648done
16649
579d8138
VS
16650
16651echo $ac_n "checking for statfs""... $ac_c" 1>&6
b13cd66e 16652echo "configure:16653: checking for statfs" >&5
579d8138
VS
16653if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16654 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16655else
579d8138 16656 cat > conftest.$ac_ext <<EOF
b13cd66e 16657#line 16658 "configure"
4f14bcd8
GD
16658#include "confdefs.h"
16659
16660 #if defined(__BSD__)
16661 #include <sys/param.h>
16662 #include <sys/mount.h>
16663 #else
16664 #include <sys/vfs.h>
16665 #endif
579d8138
VS
16666
16667int main() {
4f14bcd8
GD
16668
16669 long l;
16670 struct statfs fs;
16671 statfs("/", &fs);
16672 l = fs.f_bsize;
16673 l += fs.f_blocks;
16674 l += fs.f_bavail;
579d8138
VS
16675
16676; return 0; }
16677EOF
b13cd66e 16678if { (eval echo configure:16679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
16679 rm -rf conftest*
16680
4f14bcd8 16681 wx_cv_func_statfs=yes
579d8138 16682
4f14bcd8 16683else
579d8138
VS
16684 echo "configure: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 rm -rf conftest*
16687
4f14bcd8 16688 wx_cv_func_statfs=no
579d8138
VS
16689
16690
af15babd 16691fi
579d8138 16692rm -f conftest*
af15babd 16693
328a083c 16694fi
579d8138
VS
16695
16696echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
16697
16698if test "$wx_cv_func_statfs" = "yes"; then
579d8138 16699 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16700#define HAVE_STATFS 1
16701EOF
16702
16703else
579d8138 16704 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
b13cd66e 16705echo "configure:16706: checking for statvfs" >&5
579d8138
VS
16706if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16707 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16708else
579d8138 16709 cat > conftest.$ac_ext <<EOF
b13cd66e 16710#line 16711 "configure"
af15babd 16711#include "confdefs.h"
af15babd 16712
4f14bcd8 16713 #include <sys/statvfs.h>
579d8138
VS
16714
16715int main() {
af15babd 16716
4f14bcd8
GD
16717 long l;
16718 struct statvfs fs;
16719 statvfs("/", &fs);
16720 l = fs.f_bsize;
16721 l += fs.f_blocks;
16722 l += fs.f_bavail;
579d8138
VS
16723
16724; return 0; }
16725EOF
b13cd66e 16726if { (eval echo configure:16727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
16727 rm -rf conftest*
16728
4f14bcd8 16729 wx_cv_func_statvfs=yes
579d8138 16730
af15babd 16731else
579d8138
VS
16732 echo "configure: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 rm -rf conftest*
16735
4f14bcd8 16736 wx_cv_func_statvfs=no
579d8138
VS
16737
16738
af15babd 16739fi
579d8138
VS
16740rm -f conftest*
16741
328a083c 16742fi
579d8138
VS
16743
16744echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16745
4f14bcd8 16746 if test "$wx_cv_func_statvfs" = "yes"; then
579d8138 16747 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16748#define HAVE_STATVFS 1
16749EOF
af15babd 16750
4f14bcd8 16751 else
579d8138 16752 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
4f14bcd8
GD
16753 fi
16754fi
af15babd 16755
4f14bcd8 16756if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
579d8138 16757 for ac_func in fcntl flock
af15babd 16758do
579d8138 16759echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16760echo "configure:16761: checking for $ac_func" >&5
579d8138
VS
16761if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16763else
16764 cat > conftest.$ac_ext <<EOF
b13cd66e 16765#line 16766 "configure"
af15babd
VZ
16766#include "confdefs.h"
16767/* System header to define __stub macros and hopefully few prototypes,
579d8138 16768 which can conflict with char $ac_func(); below. */
af15babd
VZ
16769#include <assert.h>
16770/* Override any gcc2 internal prototype to avoid an error. */
af15babd 16771/* We use char because int might match the return type of a gcc2
579d8138
VS
16772 builtin and then its argument prototype would still apply. */
16773char $ac_func();
16774
16775int main() {
af15babd
VZ
16776
16777/* The GNU C library defines this for functions which it implements
16778 to always fail with ENOSYS. Some functions are actually named
16779 something starting with __ and the normal name is an alias. */
16780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16781choke me
16782#else
579d8138 16783$ac_func();
af15babd
VZ
16784#endif
16785
579d8138
VS
16786; return 0; }
16787EOF
b13cd66e 16788if { (eval echo configure:16789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16789 rm -rf conftest*
16790 eval "ac_cv_func_$ac_func=yes"
16791else
16792 echo "configure: failed program was:" >&5
16793 cat conftest.$ac_ext >&5
16794 rm -rf conftest*
16795 eval "ac_cv_func_$ac_func=no"
16796fi
16797rm -f conftest*
16798fi
16799
16800if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16801 echo "$ac_t""yes" 1>&6
16802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16803 cat >> confdefs.h <<EOF
16804#define $ac_tr_func 1
af15babd 16805EOF
4f14bcd8 16806 break
579d8138
VS
16807else
16808 echo "$ac_t""no" 1>&6
af15babd
VZ
16809fi
16810done
16811
579d8138 16812
4f14bcd8 16813 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
579d8138 16814 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
16815 wxUSE_SNGLINST_CHECKER=no
16816 fi
16817fi
af15babd 16818
4f14bcd8 16819for ac_func in timegm
af15babd 16820do
579d8138 16821echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16822echo "configure:16823: checking for $ac_func" >&5
579d8138
VS
16823if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16825else
16826 cat > conftest.$ac_ext <<EOF
b13cd66e 16827#line 16828 "configure"
af15babd
VZ
16828#include "confdefs.h"
16829/* System header to define __stub macros and hopefully few prototypes,
579d8138 16830 which can conflict with char $ac_func(); below. */
af15babd
VZ
16831#include <assert.h>
16832/* Override any gcc2 internal prototype to avoid an error. */
16833/* We use char because int might match the return type of a gcc2
579d8138
VS
16834 builtin and then its argument prototype would still apply. */
16835char $ac_func();
16836
16837int main() {
698dcdb6 16838
af15babd
VZ
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16843choke me
16844#else
579d8138 16845$ac_func();
af15babd
VZ
16846#endif
16847
579d8138 16848; return 0; }
698dcdb6 16849EOF
b13cd66e 16850if { (eval echo configure:16851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16851 rm -rf conftest*
16852 eval "ac_cv_func_$ac_func=yes"
16853else
16854 echo "configure: failed program was:" >&5
16855 cat conftest.$ac_ext >&5
16856 rm -rf conftest*
16857 eval "ac_cv_func_$ac_func=no"
16858fi
16859rm -f conftest*
16860fi
703e0a69 16861
579d8138
VS
16862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16863 echo "$ac_t""yes" 1>&6
16864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16865 cat >> confdefs.h <<EOF
16866#define $ac_tr_func 1
16867EOF
16868
16869else
16870 echo "$ac_t""no" 1>&6
af15babd
VZ
16871fi
16872done
16873
579d8138 16874
4f14bcd8 16875for ac_func in putenv setenv
10f2d63a 16876do
579d8138 16877echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16878echo "configure:16879: checking for $ac_func" >&5
579d8138
VS
16879if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16880 echo $ac_n "(cached) $ac_c" 1>&6
16881else
16882 cat > conftest.$ac_ext <<EOF
b13cd66e 16883#line 16884 "configure"
af15babd
VZ
16884#include "confdefs.h"
16885/* System header to define __stub macros and hopefully few prototypes,
579d8138 16886 which can conflict with char $ac_func(); below. */
af15babd
VZ
16887#include <assert.h>
16888/* Override any gcc2 internal prototype to avoid an error. */
16889/* We use char because int might match the return type of a gcc2
579d8138
VS
16890 builtin and then its argument prototype would still apply. */
16891char $ac_func();
16892
16893int main() {
af15babd
VZ
16894
16895/* The GNU C library defines this for functions which it implements
16896 to always fail with ENOSYS. Some functions are actually named
16897 something starting with __ and the normal name is an alias. */
16898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16899choke me
16900#else
579d8138 16901$ac_func();
af15babd
VZ
16902#endif
16903
579d8138
VS
16904; return 0; }
16905EOF
b13cd66e 16906if { (eval echo configure:16907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16907 rm -rf conftest*
16908 eval "ac_cv_func_$ac_func=yes"
16909else
16910 echo "configure: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 rm -rf conftest*
16913 eval "ac_cv_func_$ac_func=no"
16914fi
16915rm -f conftest*
16916fi
16917
16918if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16919 echo "$ac_t""yes" 1>&6
16920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16921 cat >> confdefs.h <<EOF
16922#define $ac_tr_func 1
af15babd 16923EOF
4f14bcd8 16924 break
579d8138
VS
16925else
16926 echo "$ac_t""no" 1>&6
af15babd 16927fi
af15babd
VZ
16928done
16929
579d8138 16930
4f14bcd8
GD
16931HAVE_SOME_SLEEP_FUNC=0
16932if test "$USE_BEOS" = 1; then
579d8138 16933 cat >> confdefs.h <<\EOF
4f14bcd8 16934#define HAVE_SLEEP 1
af15babd
VZ
16935EOF
16936
4f14bcd8 16937 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16938fi
16939
4f14bcd8 16940if test "$USE_DARWIN" = 1; then
579d8138 16941 cat >> confdefs.h <<\EOF
4f14bcd8 16942#define HAVE_USLEEP 1
af15babd 16943EOF
10f2d63a 16944
4f14bcd8 16945 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16946fi
16947
4f14bcd8
GD
16948if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16949 POSIX4_LINK=
579d8138 16950 for ac_func in nanosleep
4f14bcd8 16951do
579d8138 16952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 16953echo "configure:16954: checking for $ac_func" >&5
579d8138
VS
16954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16955 echo $ac_n "(cached) $ac_c" 1>&6
16956else
16957 cat > conftest.$ac_ext <<EOF
b13cd66e 16958#line 16959 "configure"
10f2d63a 16959#include "confdefs.h"
4f14bcd8 16960/* System header to define __stub macros and hopefully few prototypes,
579d8138 16961 which can conflict with char $ac_func(); below. */
4f14bcd8 16962#include <assert.h>
10f2d63a
VZ
16963/* Override any gcc2 internal prototype to avoid an error. */
16964/* We use char because int might match the return type of a gcc2
579d8138
VS
16965 builtin and then its argument prototype would still apply. */
16966char $ac_func();
16967
16968int main() {
4f14bcd8
GD
16969
16970/* The GNU C library defines this for functions which it implements
16971 to always fail with ENOSYS. Some functions are actually named
16972 something starting with __ and the normal name is an alias. */
16973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16974choke me
16975#else
579d8138 16976$ac_func();
4f14bcd8
GD
16977#endif
16978
579d8138
VS
16979; return 0; }
16980EOF
b13cd66e 16981if { (eval echo configure:16982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
16982 rm -rf conftest*
16983 eval "ac_cv_func_$ac_func=yes"
16984else
16985 echo "configure: failed program was:" >&5
16986 cat conftest.$ac_ext >&5
16987 rm -rf conftest*
16988 eval "ac_cv_func_$ac_func=no"
16989fi
16990rm -f conftest*
16991fi
16992
16993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16994 echo "$ac_t""yes" 1>&6
16995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16996 cat >> confdefs.h <<EOF
16997#define $ac_tr_func 1
16998EOF
16999 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17000#define HAVE_NANOSLEEP 1
17001EOF
17002
10f2d63a 17003else
579d8138
VS
17004 echo "$ac_t""no" 1>&6
17005echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
b13cd66e 17006echo "configure:17007: checking for nanosleep in -lposix4" >&5
579d8138
VS
17007ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17009 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17010else
579d8138 17011 ac_save_LIBS="$LIBS"
4f14bcd8 17012LIBS="-lposix4 $LIBS"
579d8138 17013cat > conftest.$ac_ext <<EOF
b13cd66e 17014#line 17015 "configure"
10f2d63a
VZ
17015#include "confdefs.h"
17016/* Override any gcc2 internal prototype to avoid an error. */
17017/* We use char because int might match the return type of a gcc2
579d8138
VS
17018 builtin and then its argument prototype would still apply. */
17019char nanosleep();
17020
17021int main() {
17022nanosleep()
17023; return 0; }
17024EOF
b13cd66e 17025if { (eval echo configure:17026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17026 rm -rf conftest*
17027 eval "ac_cv_lib_$ac_lib_var=yes"
17028else
17029 echo "configure: failed program was:" >&5
17030 cat conftest.$ac_ext >&5
17031 rm -rf conftest*
17032 eval "ac_cv_lib_$ac_lib_var=no"
17033fi
17034rm -f conftest*
17035LIBS="$ac_save_LIBS"
17036
17037fi
17038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17039 echo "$ac_t""yes" 1>&6
17040
17041 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17042#define HAVE_NANOSLEEP 1
17043EOF
17044
3d63bc3a 17045 POSIX4_LINK=" -lposix4"
579d8138 17046
10f2d63a 17047else
579d8138 17048 echo "$ac_t""no" 1>&6
10f2d63a 17049
579d8138 17050 for ac_func in usleep
4f14bcd8 17051do
579d8138 17052echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 17053echo "configure:17054: checking for $ac_func" >&5
579d8138
VS
17054if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17055 echo $ac_n "(cached) $ac_c" 1>&6
17056else
17057 cat > conftest.$ac_ext <<EOF
b13cd66e 17058#line 17059 "configure"
10f2d63a 17059#include "confdefs.h"
4f14bcd8 17060/* System header to define __stub macros and hopefully few prototypes,
579d8138 17061 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17062#include <assert.h>
17063/* Override any gcc2 internal prototype to avoid an error. */
17064/* We use char because int might match the return type of a gcc2
579d8138
VS
17065 builtin and then its argument prototype would still apply. */
17066char $ac_func();
17067
17068int main() {
4f14bcd8
GD
17069
17070/* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17074choke me
17075#else
579d8138 17076$ac_func();
4f14bcd8
GD
17077#endif
17078
579d8138
VS
17079; return 0; }
17080EOF
b13cd66e 17081if { (eval echo configure:17082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17082 rm -rf conftest*
17083 eval "ac_cv_func_$ac_func=yes"
17084else
17085 echo "configure: failed program was:" >&5
17086 cat conftest.$ac_ext >&5
17087 rm -rf conftest*
17088 eval "ac_cv_func_$ac_func=no"
17089fi
17090rm -f conftest*
17091fi
17092
17093if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17094 echo "$ac_t""yes" 1>&6
17095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17096 cat >> confdefs.h <<EOF
17097#define $ac_tr_func 1
17098EOF
17099 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17100#define HAVE_USLEEP 1
17101EOF
17102
698dcdb6 17103else
579d8138
VS
17104 echo "$ac_t""no" 1>&6
17105echo "configure: warning: wxSleep() function will not work" 1>&2
17106
10f2d63a 17107fi
4f14bcd8 17108done
10f2d63a 17109
579d8138
VS
17110
17111
6232543b 17112fi
10f2d63a 17113
579d8138
VS
17114
17115
1e487827 17116fi
4f14bcd8 17117done
703e0a69 17118
10f2d63a
VZ
17119fi
17120
4f14bcd8 17121for ac_func in uname gethostname
70846f0a 17122do
579d8138 17123echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 17124echo "configure:17125: checking for $ac_func" >&5
579d8138
VS
17125if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17126 echo $ac_n "(cached) $ac_c" 1>&6
17127else
17128 cat > conftest.$ac_ext <<EOF
b13cd66e 17129#line 17130 "configure"
70846f0a
VZ
17130#include "confdefs.h"
17131/* System header to define __stub macros and hopefully few prototypes,
579d8138 17132 which can conflict with char $ac_func(); below. */
70846f0a
VZ
17133#include <assert.h>
17134/* Override any gcc2 internal prototype to avoid an error. */
17135/* We use char because int might match the return type of a gcc2
579d8138
VS
17136 builtin and then its argument prototype would still apply. */
17137char $ac_func();
17138
17139int main() {
70846f0a
VZ
17140
17141/* The GNU C library defines this for functions which it implements
17142 to always fail with ENOSYS. Some functions are actually named
17143 something starting with __ and the normal name is an alias. */
17144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17145choke me
17146#else
579d8138 17147$ac_func();
70846f0a
VZ
17148#endif
17149
579d8138
VS
17150; return 0; }
17151EOF
b13cd66e 17152if { (eval echo configure:17153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17153 rm -rf conftest*
17154 eval "ac_cv_func_$ac_func=yes"
17155else
17156 echo "configure: failed program was:" >&5
17157 cat conftest.$ac_ext >&5
17158 rm -rf conftest*
17159 eval "ac_cv_func_$ac_func=no"
17160fi
17161rm -f conftest*
17162fi
17163
17164if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17165 echo "$ac_t""yes" 1>&6
17166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17167 cat >> confdefs.h <<EOF
17168#define $ac_tr_func 1
698dcdb6 17169EOF
4f14bcd8 17170 break
579d8138
VS
17171else
17172 echo "$ac_t""no" 1>&6
70846f0a
VZ
17173fi
17174done
17175
579d8138
VS
17176
17177
17178ac_ext=C
17179# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17180ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 17181ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 17182ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
17183cross_compiling=$ac_cv_prog_cxx_cross
17184
4f14bcd8
GD
17185
17186for ac_func in strtok_r
10f2d63a 17187do
579d8138 17188echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 17189echo "configure:17190: checking for $ac_func" >&5
579d8138
VS
17190if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17191 echo $ac_n "(cached) $ac_c" 1>&6
17192else
17193 cat > conftest.$ac_ext <<EOF
b13cd66e 17194#line 17195 "configure"
10f2d63a 17195#include "confdefs.h"
4f14bcd8 17196/* System header to define __stub macros and hopefully few prototypes,
579d8138 17197 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17198#include <assert.h>
17199/* Override any gcc2 internal prototype to avoid an error. */
17200#ifdef __cplusplus
17201extern "C"
17202#endif
17203/* We use char because int might match the return type of a gcc2
579d8138
VS
17204 builtin and then its argument prototype would still apply. */
17205char $ac_func();
17206
17207int main() {
4f14bcd8
GD
17208
17209/* The GNU C library defines this for functions which it implements
17210 to always fail with ENOSYS. Some functions are actually named
17211 something starting with __ and the normal name is an alias. */
17212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17213choke me
17214#else
579d8138 17215$ac_func();
4f14bcd8
GD
17216#endif
17217
579d8138 17218; return 0; }
698dcdb6 17219EOF
b13cd66e 17220if { (eval echo configure:17221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17221 rm -rf conftest*
17222 eval "ac_cv_func_$ac_func=yes"
17223else
17224 echo "configure: failed program was:" >&5
17225 cat conftest.$ac_ext >&5
17226 rm -rf conftest*
17227 eval "ac_cv_func_$ac_func=no"
17228fi
17229rm -f conftest*
17230fi
4f14bcd8 17231
579d8138
VS
17232if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17233 echo "$ac_t""yes" 1>&6
17234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17235 cat >> confdefs.h <<EOF
17236#define $ac_tr_func 1
17237EOF
17238
17239else
17240 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17241fi
17242done
17243
579d8138 17244
4f14bcd8 17245ac_ext=c
579d8138 17246# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17247ac_cpp='$CPP $CPPFLAGS'
579d8138 17248ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 17249ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 17250cross_compiling=$ac_cv_prog_cc_cross
4f14bcd8 17251
328a083c 17252
579d8138 17253INET_LINK=
4f14bcd8
GD
17254for ac_func in inet_addr
17255do
579d8138 17256echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 17257echo "configure:17258: checking for $ac_func" >&5
579d8138
VS
17258if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17259 echo $ac_n "(cached) $ac_c" 1>&6
17260else
17261 cat > conftest.$ac_ext <<EOF
b13cd66e 17262#line 17263 "configure"
10f2d63a 17263#include "confdefs.h"
4f14bcd8 17264/* System header to define __stub macros and hopefully few prototypes,
579d8138 17265 which can conflict with char $ac_func(); below. */
4f14bcd8 17266#include <assert.h>
10f2d63a
VZ
17267/* Override any gcc2 internal prototype to avoid an error. */
17268/* We use char because int might match the return type of a gcc2
579d8138
VS
17269 builtin and then its argument prototype would still apply. */
17270char $ac_func();
17271
17272int main() {
4f14bcd8
GD
17273
17274/* The GNU C library defines this for functions which it implements
17275 to always fail with ENOSYS. Some functions are actually named
17276 something starting with __ and the normal name is an alias. */
17277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17278choke me
17279#else
579d8138 17280$ac_func();
4f14bcd8
GD
17281#endif
17282
579d8138
VS
17283; return 0; }
17284EOF
b13cd66e 17285if { (eval echo configure:17286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17286 rm -rf conftest*
17287 eval "ac_cv_func_$ac_func=yes"
17288else
17289 echo "configure: failed program was:" >&5
17290 cat conftest.$ac_ext >&5
17291 rm -rf conftest*
17292 eval "ac_cv_func_$ac_func=no"
17293fi
17294rm -f conftest*
17295fi
17296
17297if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17298 echo "$ac_t""yes" 1>&6
17299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17300 cat >> confdefs.h <<EOF
17301#define $ac_tr_func 1
17302EOF
17303 cat >> confdefs.h <<\EOF
4f14bcd8 17304#define HAVE_INET_ADDR 1
10f2d63a
VZ
17305EOF
17306
17307else
579d8138
VS
17308 echo "$ac_t""no" 1>&6
17309echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
b13cd66e 17310echo "configure:17311: checking for inet_addr in -lnsl" >&5
579d8138
VS
17311ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17312if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17313 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17314else
579d8138 17315 ac_save_LIBS="$LIBS"
4f14bcd8 17316LIBS="-lnsl $LIBS"
579d8138 17317cat > conftest.$ac_ext <<EOF
b13cd66e 17318#line 17319 "configure"
10f2d63a
VZ
17319#include "confdefs.h"
17320/* Override any gcc2 internal prototype to avoid an error. */
17321/* We use char because int might match the return type of a gcc2
579d8138
VS
17322 builtin and then its argument prototype would still apply. */
17323char inet_addr();
17324
17325int main() {
17326inet_addr()
17327; return 0; }
17328EOF
b13cd66e 17329if { (eval echo configure:17330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17330 rm -rf conftest*
17331 eval "ac_cv_lib_$ac_lib_var=yes"
17332else
17333 echo "configure: failed program was:" >&5
17334 cat conftest.$ac_ext >&5
17335 rm -rf conftest*
17336 eval "ac_cv_lib_$ac_lib_var=no"
17337fi
17338rm -f conftest*
17339LIBS="$ac_save_LIBS"
17340
17341fi
17342if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17343 echo "$ac_t""yes" 1>&6
4f14bcd8 17344 INET_LINK="nsl"
10f2d63a 17345else
579d8138
VS
17346 echo "$ac_t""no" 1>&6
17347echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
b13cd66e 17348echo "configure:17349: checking for inet_addr in -lresolv" >&5
579d8138
VS
17349ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17350if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17351 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17352else
579d8138 17353 ac_save_LIBS="$LIBS"
4f14bcd8 17354LIBS="-lresolv $LIBS"
579d8138 17355cat > conftest.$ac_ext <<EOF
b13cd66e 17356#line 17357 "configure"
10f2d63a 17357#include "confdefs.h"
579d8138
VS
17358/* Override any gcc2 internal prototype to avoid an error. */
17359/* We use char because int might match the return type of a gcc2
17360 builtin and then its argument prototype would still apply. */
17361char inet_addr();
17362
17363int main() {
17364inet_addr()
17365; return 0; }
17366EOF
b13cd66e 17367if { (eval echo configure:17368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17368 rm -rf conftest*
17369 eval "ac_cv_lib_$ac_lib_var=yes"
17370else
17371 echo "configure: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17373 rm -rf conftest*
17374 eval "ac_cv_lib_$ac_lib_var=no"
17375fi
17376rm -f conftest*
17377LIBS="$ac_save_LIBS"
698dcdb6 17378
579d8138
VS
17379fi
17380if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17381 echo "$ac_t""yes" 1>&6
4f14bcd8 17382 INET_LINK="resolv"
698dcdb6 17383else
579d8138
VS
17384 echo "$ac_t""no" 1>&6
17385echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
b13cd66e 17386echo "configure:17387: checking for inet_addr in -lsocket" >&5
579d8138
VS
17387ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17388if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17389 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 17390else
579d8138 17391 ac_save_LIBS="$LIBS"
3c011993 17392LIBS="-lsocket $LIBS"
579d8138 17393cat > conftest.$ac_ext <<EOF
b13cd66e 17394#line 17395 "configure"
3c011993
VZ
17395#include "confdefs.h"
17396/* Override any gcc2 internal prototype to avoid an error. */
17397/* We use char because int might match the return type of a gcc2
579d8138
VS
17398 builtin and then its argument prototype would still apply. */
17399char inet_addr();
17400
17401int main() {
17402inet_addr()
17403; return 0; }
17404EOF
b13cd66e 17405if { (eval echo configure:17406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17406 rm -rf conftest*
17407 eval "ac_cv_lib_$ac_lib_var=yes"
17408else
17409 echo "configure: failed program was:" >&5
17410 cat conftest.$ac_ext >&5
17411 rm -rf conftest*
17412 eval "ac_cv_lib_$ac_lib_var=no"
17413fi
17414rm -f conftest*
17415LIBS="$ac_save_LIBS"
3c011993 17416
4f14bcd8 17417fi
579d8138
VS
17418if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17419 echo "$ac_t""yes" 1>&6
17420 INET_LINK="socket"
17421
17422else
17423 echo "$ac_t""no" 1>&6
17424fi
698dcdb6 17425
579d8138 17426
698dcdb6 17427fi
4f14bcd8 17428
579d8138 17429
328a083c 17430fi
698dcdb6 17431
579d8138
VS
17432
17433
698dcdb6 17434fi
4f14bcd8
GD
17435done
17436
579d8138 17437
4f14bcd8
GD
17438for ac_func in inet_aton
17439do
579d8138 17440echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 17441echo "configure:17442: checking for $ac_func" >&5
579d8138
VS
17442if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17443 echo $ac_n "(cached) $ac_c" 1>&6
17444else
17445 cat > conftest.$ac_ext <<EOF
b13cd66e 17446#line 17447 "configure"
f6bcfd97 17447#include "confdefs.h"
4f14bcd8 17448/* System header to define __stub macros and hopefully few prototypes,
579d8138 17449 which can conflict with char $ac_func(); below. */
4f14bcd8 17450#include <assert.h>
f6bcfd97
BP
17451/* Override any gcc2 internal prototype to avoid an error. */
17452/* We use char because int might match the return type of a gcc2
579d8138
VS
17453 builtin and then its argument prototype would still apply. */
17454char $ac_func();
17455
17456int main() {
4f14bcd8
GD
17457
17458/* The GNU C library defines this for functions which it implements
17459 to always fail with ENOSYS. Some functions are actually named
17460 something starting with __ and the normal name is an alias. */
17461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17462choke me
17463#else
579d8138 17464$ac_func();
4f14bcd8
GD
17465#endif
17466
579d8138
VS
17467; return 0; }
17468EOF
b13cd66e 17469if { (eval echo configure:17470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17470 rm -rf conftest*
17471 eval "ac_cv_func_$ac_func=yes"
17472else
17473 echo "configure: failed program was:" >&5
17474 cat conftest.$ac_ext >&5
17475 rm -rf conftest*
17476 eval "ac_cv_func_$ac_func=no"
17477fi
17478rm -f conftest*
17479fi
17480
17481if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17482 echo "$ac_t""yes" 1>&6
17483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17484 cat >> confdefs.h <<EOF
17485#define $ac_tr_func 1
17486EOF
17487 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17488#define HAVE_INET_ATON 1
17489EOF
17490
10f2d63a 17491else
579d8138
VS
17492 echo "$ac_t""no" 1>&6
17493 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
b13cd66e 17494echo "configure:17495: checking for inet_aton in -l$INET_LINK" >&5
579d8138
VS
17495ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17496if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17497 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17498else
579d8138 17499 ac_save_LIBS="$LIBS"
4f14bcd8 17500LIBS="-l$INET_LINK $LIBS"
579d8138 17501cat > conftest.$ac_ext <<EOF
b13cd66e 17502#line 17503 "configure"
10f2d63a 17503#include "confdefs.h"
6232543b 17504/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17505/* We use char because int might match the return type of a gcc2
579d8138
VS
17506 builtin and then its argument prototype would still apply. */
17507char inet_aton();
17508
17509int main() {
17510inet_aton()
17511; return 0; }
17512EOF
b13cd66e 17513if { (eval echo configure:17514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17514 rm -rf conftest*
17515 eval "ac_cv_lib_$ac_lib_var=yes"
17516else
17517 echo "configure: failed program was:" >&5
17518 cat conftest.$ac_ext >&5
17519 rm -rf conftest*
17520 eval "ac_cv_lib_$ac_lib_var=no"
17521fi
17522rm -f conftest*
17523LIBS="$ac_save_LIBS"
17524
17525fi
17526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17527 echo "$ac_t""yes" 1>&6
17528 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17529#define HAVE_INET_ATON 1
17530EOF
17531
579d8138
VS
17532else
17533 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17534fi
17535
579d8138 17536
10f2d63a 17537fi
4f14bcd8 17538done
10f2d63a 17539
579d8138 17540
4f14bcd8 17541if test "x$INET_LINK" != "x"; then
579d8138 17542 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17543#define HAVE_INET_ADDR 1
17544EOF
17545
3d63bc3a 17546 INET_LINK=" -l$INET_LINK"
6232543b 17547fi
10f2d63a 17548
1e487827 17549fi
703e0a69 17550
579d8138
VS
17551
17552cat > confcache <<\EOF
4f14bcd8
GD
17553# This file is a shell script that caches the results of configure
17554# tests run on this system so they can be shared between configure
579d8138
VS
17555# scripts and configure runs. It is not useful on other systems.
17556# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 17557#
579d8138
VS
17558# By default, configure uses ./config.cache as the cache file,
17559# creating it if it does not exist already. You can give configure
17560# the --cache-file=FILE option to use a different cache file; that is
17561# what configure does when it calls configure scripts in
17562# subdirectories, so they share the cache.
17563# Giving --cache-file=/dev/null disables caching, for debugging configure.
17564# config.status only pays attention to the cache file if you give it the
17565# --recheck option to rerun configure.
4f14bcd8 17566#
579d8138 17567EOF
4f14bcd8
GD
17568# The following way of writing the cache mishandles newlines in values,
17569# but we know of no workaround that is simple, portable, and efficient.
17570# So, don't put newlines in cache variables' values.
17571# Ultrix sh set writes to stderr and can't be redirected directly,
17572# and sets the high bit in the cache file unless we assign to the vars.
579d8138 17573(set) 2>&1 |
f09359cf 17574 case `(ac_space=' '; set | grep ac_space) 2>&1` in
579d8138
VS
17575 *ac_space=\ *)
17576 # `set' does not quote correctly, so add quotes (double-quote substitution
17577 # turns \\\\ into \\, and sed turns \\ into \).
17578 sed -n \
17579 -e "s/'/'\\\\''/g" \
17580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17581 ;;
17582 *)
17583 # `set' quotes correctly as required by POSIX, so do not add quotes.
17584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17585 ;;
17586 esac >> confcache
17587if cmp -s $cache_file confcache; then
17588 :
17589else
4f14bcd8 17590 if test -w $cache_file; then
579d8138
VS
17591 echo "updating cache $cache_file"
17592 cat confcache > $cache_file
f6bcfd97 17593 else
4f14bcd8 17594 echo "not updating unwritable cache $cache_file"
f6bcfd97 17595 fi
4f14bcd8
GD
17596fi
17597rm -f confcache
f6bcfd97 17598
579d8138
VS
17599
17600
009fead0 17601CPP_MT_FLAG=
4f14bcd8
GD
17602if test "$TOOLKIT" != "MSW"; then
17603
579d8138 17604
7274f1c7 17605 THREADS_LINK=
009fead0 17606 THREADS_CFLAGS=
7274f1c7
RL
17607
17608 if test "$wxUSE_THREADS" = "yes" ; then
17609 if test "$wxUSE_WINE" = 1 ; then
579d8138 17610 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17611 wxUSE_THREADS="no"
17612 elif test "$USE_BEOS" = 1; then
579d8138 17613 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17614 wxUSE_THREADS="no"
17615 fi
4f14bcd8 17616 fi
4f14bcd8 17617
7274f1c7 17618 if test "$wxUSE_THREADS" = "yes" ; then
579d8138
VS
17619
17620
009fead0
VZ
17621 THREAD_OPTS="-pthread"
17622 case "${host}" in
17623 *-*-solaris2* | *-*-sunos4* )
17624 if test "x$GCC" = "xyes"; then
126be6b4 17625 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17626 else
17627 THREAD_OPTS="-mt $THREAD_OPTS"
17628 fi
17629 ;;
17630 *-*-freebsd*)
17631 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17632 ;;
17234b26
MB
17633 *-*-darwin* | *-*-cygwin* )
17634 THREAD_OPTS=""
4101db81 17635 ;;
8f4a9a10 17636 *-*-aix*)
009fead0
VZ
17637 THREAD_OPTS="pthreads"
17638 ;;
009fead0 17639 esac
4f14bcd8 17640
02a1dfba 17641 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17642
009fead0
VZ
17643 THREADS_OK=no
17644 for flag in $THREAD_OPTS; do
17645 case $flag in
17646 none)
579d8138 17647 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
b13cd66e 17648echo "configure:17649: checking whether pthreads work without any flags" >&5
009fead0 17649 ;;
698dcdb6 17650
009fead0 17651 -*)
579d8138 17652 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
b13cd66e 17653echo "configure:17654: checking whether pthreads work with $flag" >&5
009fead0
VZ
17654 THREADS_CFLAGS="$flag"
17655 ;;
698dcdb6 17656
009fead0 17657 *)
579d8138 17658 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
b13cd66e 17659echo "configure:17660: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17660 THREADS_LINK="-l$flag"
17661 ;;
17662 esac
10f2d63a 17663
009fead0
VZ
17664 save_LIBS="$LIBS"
17665 save_CFLAGS="$CFLAGS"
17666 LIBS="$THREADS_LINK $LIBS"
04727afd 17667 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17668
579d8138 17669 cat > conftest.$ac_ext <<EOF
b13cd66e 17670#line 17671 "configure"
009fead0
VZ
17671#include "confdefs.h"
17672#include <pthread.h>
579d8138 17673int main() {
009fead0 17674pthread_create(0,0,0,0);
579d8138
VS
17675; return 0; }
17676EOF
b13cd66e 17677if { (eval echo configure:17678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138 17678 rm -rf conftest*
009fead0 17679 THREADS_OK=yes
10f2d63a 17680else
579d8138
VS
17681 echo "configure: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
6232543b 17683fi
579d8138 17684rm -f conftest*
698dcdb6 17685
009fead0
VZ
17686 LIBS="$save_LIBS"
17687 CFLAGS="$save_CFLAGS"
d9b9876f 17688
579d8138 17689 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
17690 if test "x$THREADS_OK" = "xyes"; then
17691 break;
17692 fi
d9b9876f 17693
009fead0
VZ
17694 THREADS_LINK=""
17695 THREADS_CFLAGS=""
17696 done
4f14bcd8 17697
009fead0
VZ
17698 if test "x$THREADS_OK" != "xyes"; then
17699 wxUSE_THREADS=no
579d8138 17700 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 17701 else
fe5a9cab
VZ
17702 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17703
579d8138 17704 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
b13cd66e 17705echo "configure:17706: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17706 flag=no
17707 case "${host}" in
17708 *-aix* | *-freebsd*)
17709 flag="-D_THREAD_SAFE"
17710 ;;
17711 *solaris* | alpha*-osf*)
17712 flag="-D_REENTRANT"
17713 ;;
17714 esac
579d8138 17715 echo "$ac_t""${flag}" 1>&6
009fead0 17716 if test "x$flag" != xno; then
04727afd 17717 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17718 fi
17719
009fead0 17720 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17721 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17722 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17723 fi
17724 fi
4f14bcd8 17725 fi
4f14bcd8 17726
7274f1c7 17727 if test "$wxUSE_THREADS" = "yes" ; then
579d8138 17728 for ac_func in thr_setconcurrency
4f14bcd8 17729do
579d8138 17730echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 17731echo "configure:17732: checking for $ac_func" >&5
579d8138
VS
17732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17733 echo $ac_n "(cached) $ac_c" 1>&6
17734else
17735 cat > conftest.$ac_ext <<EOF
b13cd66e 17736#line 17737 "configure"
d9b9876f 17737#include "confdefs.h"
4f14bcd8 17738/* System header to define __stub macros and hopefully few prototypes,
579d8138 17739 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17740#include <assert.h>
17741/* Override any gcc2 internal prototype to avoid an error. */
17742/* We use char because int might match the return type of a gcc2
579d8138
VS
17743 builtin and then its argument prototype would still apply. */
17744char $ac_func();
17745
17746int main() {
d9b9876f 17747
4f14bcd8
GD
17748/* The GNU C library defines this for functions which it implements
17749 to always fail with ENOSYS. Some functions are actually named
17750 something starting with __ and the normal name is an alias. */
17751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17752choke me
17753#else
579d8138 17754$ac_func();
4f14bcd8
GD
17755#endif
17756
579d8138 17757; return 0; }
698dcdb6 17758EOF
b13cd66e 17759if { (eval echo configure:17760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17760 rm -rf conftest*
17761 eval "ac_cv_func_$ac_func=yes"
17762else
17763 echo "configure: failed program was:" >&5
17764 cat conftest.$ac_ext >&5
17765 rm -rf conftest*
17766 eval "ac_cv_func_$ac_func=no"
17767fi
17768rm -f conftest*
17769fi
698dcdb6 17770
579d8138
VS
17771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17772 echo "$ac_t""yes" 1>&6
17773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17774 cat >> confdefs.h <<EOF
17775#define $ac_tr_func 1
17776EOF
17777
17778else
17779 echo "$ac_t""no" 1>&6
10f2d63a 17780fi
4f14bcd8 17781done
10f2d63a 17782
579d8138
VS
17783
17784 for ac_hdr in sched.h
4f14bcd8 17785do
579d8138
VS
17786ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17787echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b13cd66e 17788echo "configure:17789: checking for $ac_hdr" >&5
579d8138
VS
17789if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17790 echo $ac_n "(cached) $ac_c" 1>&6
17791else
17792 cat > conftest.$ac_ext <<EOF
b13cd66e 17793#line 17794 "configure"
4f14bcd8 17794#include "confdefs.h"
579d8138
VS
17795#include <$ac_hdr>
17796EOF
17797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 17798{ (eval echo configure:17799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 17799ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
17800if test -z "$ac_err"; then
17801 rm -rf conftest*
17802 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 17803else
579d8138
VS
17804 echo "$ac_err" >&5
17805 echo "configure: failed program was:" >&5
4f14bcd8 17806 cat conftest.$ac_ext >&5
579d8138
VS
17807 rm -rf conftest*
17808 eval "ac_cv_header_$ac_safe=no"
13111b2a 17809fi
579d8138 17810rm -f conftest*
10f2d63a 17811fi
579d8138
VS
17812if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17813 echo "$ac_t""yes" 1>&6
17814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17815 cat >> confdefs.h <<EOF
17816#define $ac_tr_hdr 1
f6bcfd97 17817EOF
579d8138
VS
17818
17819else
17820 echo "$ac_t""no" 1>&6
f6bcfd97 17821fi
4f14bcd8 17822done
f6bcfd97 17823
009fead0 17824 if test "$ac_cv_header_sched_h" = "yes"; then
579d8138 17825 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
b13cd66e 17826echo "configure:17827: checking for sched_yield" >&5
579d8138
VS
17827if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17828 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17829else
579d8138 17830 cat > conftest.$ac_ext <<EOF
b13cd66e 17831#line 17832 "configure"
4f14bcd8 17832#include "confdefs.h"
009fead0 17833/* System header to define __stub macros and hopefully few prototypes,
579d8138 17834 which can conflict with char sched_yield(); below. */
009fead0 17835#include <assert.h>
4f14bcd8
GD
17836/* Override any gcc2 internal prototype to avoid an error. */
17837/* We use char because int might match the return type of a gcc2
579d8138
VS
17838 builtin and then its argument prototype would still apply. */
17839char sched_yield();
17840
17841int main() {
009fead0
VZ
17842
17843/* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17847choke me
17848#else
579d8138 17849sched_yield();
009fead0
VZ
17850#endif
17851
579d8138
VS
17852; return 0; }
17853EOF
b13cd66e 17854if { (eval echo configure:17855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17855 rm -rf conftest*
17856 eval "ac_cv_func_sched_yield=yes"
17857else
17858 echo "configure: failed program was:" >&5
17859 cat conftest.$ac_ext >&5
17860 rm -rf conftest*
17861 eval "ac_cv_func_sched_yield=no"
17862fi
17863rm -f conftest*
17864fi
17865
17866if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17867 echo "$ac_t""yes" 1>&6
17868 cat >> confdefs.h <<\EOF
4f14bcd8 17869#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17870EOF
17871
4f14bcd8 17872else
579d8138 17873 echo "$ac_t""no" 1>&6
009fead0 17874
579d8138 17875 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
b13cd66e 17876echo "configure:17877: checking for sched_yield in -lposix4" >&5
579d8138
VS
17877ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17878if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17879 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17880else
579d8138 17881 ac_save_LIBS="$LIBS"
4f14bcd8 17882LIBS="-lposix4 $LIBS"
579d8138 17883cat > conftest.$ac_ext <<EOF
b13cd66e 17884#line 17885 "configure"
4f14bcd8
GD
17885#include "confdefs.h"
17886/* Override any gcc2 internal prototype to avoid an error. */
17887/* We use char because int might match the return type of a gcc2
579d8138
VS
17888 builtin and then its argument prototype would still apply. */
17889char sched_yield();
17890
17891int main() {
17892sched_yield()
17893; return 0; }
17894EOF
b13cd66e 17895if { (eval echo configure:17896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17896 rm -rf conftest*
17897 eval "ac_cv_lib_$ac_lib_var=yes"
17898else
17899 echo "configure: failed program was:" >&5
17900 cat conftest.$ac_ext >&5
17901 rm -rf conftest*
17902 eval "ac_cv_lib_$ac_lib_var=no"
17903fi
17904rm -f conftest*
17905LIBS="$ac_save_LIBS"
17906
17907fi
17908if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17909 echo "$ac_t""yes" 1>&6
17910 cat >> confdefs.h <<\EOF
4f14bcd8 17911#define HAVE_SCHED_YIELD 1
54276ccf 17912EOF
3d63bc3a 17913 POSIX4_LINK=" -lposix4"
4f14bcd8 17914else
579d8138
VS
17915 echo "$ac_t""no" 1>&6
17916echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17917
54276ccf
VZ
17918fi
17919
579d8138
VS
17920
17921
4f14bcd8 17922fi
698dcdb6 17923
009fead0 17924 fi
10f2d63a 17925
7274f1c7 17926 HAVE_PRIOR_FUNCS=0
579d8138 17927 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
b13cd66e 17928echo "configure:17929: checking for pthread_attr_getschedpolicy" >&5
579d8138
VS
17929if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17930 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17931else
579d8138 17932 cat > conftest.$ac_ext <<EOF
b13cd66e 17933#line 17934 "configure"
422107f9 17934#include "confdefs.h"
009fead0 17935/* System header to define __stub macros and hopefully few prototypes,
579d8138 17936 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 17937#include <assert.h>
4f14bcd8
GD
17938/* Override any gcc2 internal prototype to avoid an error. */
17939/* We use char because int might match the return type of a gcc2
579d8138
VS
17940 builtin and then its argument prototype would still apply. */
17941char pthread_attr_getschedpolicy();
17942
17943int main() {
009fead0
VZ
17944
17945/* The GNU C library defines this for functions which it implements
17946 to always fail with ENOSYS. Some functions are actually named
17947 something starting with __ and the normal name is an alias. */
17948#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17949choke me
17950#else
579d8138 17951pthread_attr_getschedpolicy();
009fead0
VZ
17952#endif
17953
579d8138
VS
17954; return 0; }
17955EOF
b13cd66e 17956if { (eval echo configure:17957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
17957 rm -rf conftest*
17958 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17959else
17960 echo "configure: failed program was:" >&5
17961 cat conftest.$ac_ext >&5
17962 rm -rf conftest*
17963 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17964fi
17965rm -f conftest*
17966fi
17967
17968if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17969 echo "$ac_t""yes" 1>&6
17970 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
b13cd66e 17971echo "configure:17972: checking for pthread_attr_setschedparam" >&5
579d8138
VS
17972if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17973 echo $ac_n "(cached) $ac_c" 1>&6
328a083c 17974else
579d8138 17975 cat > conftest.$ac_ext <<EOF
b13cd66e 17976#line 17977 "configure"
579d8138
VS
17977#include "confdefs.h"
17978/* System header to define __stub macros and hopefully few prototypes,
17979 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 17980#include <assert.h>
422107f9
VZ
17981/* Override any gcc2 internal prototype to avoid an error. */
17982/* We use char because int might match the return type of a gcc2
579d8138
VS
17983 builtin and then its argument prototype would still apply. */
17984char pthread_attr_setschedparam();
17985
17986int main() {
009fead0
VZ
17987
17988/* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17992choke me
17993#else
579d8138 17994pthread_attr_setschedparam();
009fead0
VZ
17995#endif
17996
579d8138
VS
17997; return 0; }
17998EOF
b13cd66e 17999if { (eval echo configure:18000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18000 rm -rf conftest*
18001 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18002else
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18005 rm -rf conftest*
18006 eval "ac_cv_func_pthread_attr_setschedparam=no"
18007fi
18008rm -f conftest*
18009fi
18010
18011if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18012 echo "$ac_t""yes" 1>&6
18013 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
b13cd66e 18014echo "configure:18015: checking for sched_get_priority_max" >&5
579d8138
VS
18015if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18016 echo $ac_n "(cached) $ac_c" 1>&6
18017else
18018 cat > conftest.$ac_ext <<EOF
b13cd66e 18019#line 18020 "configure"
422107f9 18020#include "confdefs.h"
009fead0
VZ
18021/* System header to define __stub macros and hopefully few prototypes
18022else
579d8138
VS
18023 echo "$ac_t""no" 1>&6
18024which can conflict with char sched_get_priority_max(); below. */
009fead0 18025#include <assert.h>
4f14bcd8
GD
18026/* Override any gcc2 internal prototype to avoid an error. */
18027/* We use char because int might match the return type of a gcc2
579d8138
VS
18028 builtin and then its argument prototype would still apply. */
18029char sched_get_priority_max();
18030
18031int main() {
009fead0
VZ
18032
18033/* The GNU C library defines this for functions which it implements
18034 to always fail with ENOSYS. Some functions are actually named
18035 something starting with __ and the normal name is an alias. */
18036#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18037choke me
18038#else
579d8138 18039sched_get_priority_max();
009fead0
VZ
18040#endif
18041
579d8138
VS
18042; return 0; }
18043EOF
b13cd66e 18044if { (eval echo configure:18045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18045 rm -rf conftest*
18046 eval "ac_cv_func_sched_get_priority_max=yes"
18047else
18048 echo "configure: failed program was:" >&5
18049 cat conftest.$ac_ext >&5
18050 rm -rf conftest*
18051 eval "ac_cv_func_sched_get_priority_max=no"
18052fi
18053rm -f conftest*
18054fi
18055
18056if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18057 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18058 HAVE_PRIOR_FUNCS=1
18059else
579d8138
VS
18060 echo "$ac_t""no" 1>&6
18061echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
b13cd66e 18062echo "configure:18063: checking for sched_get_priority_max in -lposix4" >&5
579d8138
VS
18063ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18065 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18066else
579d8138 18067 ac_save_LIBS="$LIBS"
4f14bcd8 18068LIBS="-lposix4 $LIBS"
579d8138 18069cat > conftest.$ac_ext <<EOF
b13cd66e 18070#line 18071 "configure"
422107f9
VZ
18071#include "confdefs.h"
18072/* Override any gcc2 internal prototype to avoid an error. */
18073/* We use char because int might match the return type of a gcc2
579d8138
VS
18074 builtin and then its argument prototype would still apply. */
18075char sched_get_priority_max();
18076
18077int main() {
18078sched_get_priority_max()
18079; return 0; }
18080EOF
b13cd66e 18081if { (eval echo configure:18082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18082 rm -rf conftest*
18083 eval "ac_cv_lib_$ac_lib_var=yes"
18084else
18085 echo "configure: failed program was:" >&5
18086 cat conftest.$ac_ext >&5
18087 rm -rf conftest*
18088 eval "ac_cv_lib_$ac_lib_var=no"
18089fi
18090rm -f conftest*
18091LIBS="$ac_save_LIBS"
698dcdb6 18092
579d8138
VS
18093fi
18094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18095 echo "$ac_t""yes" 1>&6
18096
7274f1c7
RL
18097 HAVE_PRIOR_FUNCS=1
18098 POSIX4_LINK=" -lposix4"
579d8138
VS
18099
18100else
18101 echo "$ac_t""no" 1>&6
422107f9
VZ
18102fi
18103
579d8138 18104
10f2d63a
VZ
18105fi
18106
579d8138
VS
18107
18108else
18109 echo "$ac_t""no" 1>&6
4f14bcd8 18110fi
463abc64 18111
579d8138 18112
328a083c 18113fi
463abc64 18114
579d8138 18115
7274f1c7 18116 if test "$HAVE_PRIOR_FUNCS" = 1; then
579d8138 18117 cat >> confdefs.h <<\EOF
4f14bcd8 18118#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 18119EOF
463abc64 18120
7274f1c7 18121 else
579d8138 18122 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 18123 fi
463abc64 18124
579d8138 18125 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
b13cd66e 18126echo "configure:18127: checking for pthread_cancel" >&5
579d8138
VS
18127if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18128 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18129else
579d8138 18130 cat > conftest.$ac_ext <<EOF
b13cd66e 18131#line 18132 "configure"
422107f9 18132#include "confdefs.h"
009fead0 18133/* System header to define __stub macros and hopefully few prototypes,
579d8138 18134 which can conflict with char pthread_cancel(); below. */
009fead0 18135#include <assert.h>
422107f9
VZ
18136/* Override any gcc2 internal prototype to avoid an error. */
18137/* We use char because int might match the return type of a gcc2
579d8138
VS
18138 builtin and then its argument prototype would still apply. */
18139char pthread_cancel();
18140
18141int main() {
009fead0
VZ
18142
18143/* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18147choke me
18148#else
579d8138 18149pthread_cancel();
009fead0
VZ
18150#endif
18151
579d8138
VS
18152; return 0; }
18153EOF
b13cd66e 18154if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18155 rm -rf conftest*
18156 eval "ac_cv_func_pthread_cancel=yes"
18157else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_func_pthread_cancel=no"
18162fi
18163rm -f conftest*
18164fi
18165
18166if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18167 echo "$ac_t""yes" 1>&6
18168 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18169#define HAVE_PTHREAD_CANCEL 1
18170EOF
18171
698dcdb6 18172else
579d8138
VS
18173 echo "$ac_t""no" 1>&6
18174echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
18175fi
18176
328a083c 18177
579d8138 18178 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
b13cd66e 18179echo "configure:18180: checking for pthread_cleanup_push/pop" >&5
579d8138
VS
18180if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18181 echo $ac_n "(cached) $ac_c" 1>&6
18182else
18183
18184 cat > conftest.$ac_ext <<EOF
b13cd66e 18185#line 18186 "configure"
4f14bcd8
GD
18186#include "confdefs.h"
18187#include <pthread.h>
579d8138 18188int main() {
4f14bcd8 18189
7274f1c7
RL
18190 pthread_cleanup_push(NULL, NULL);
18191 pthread_cleanup_pop(0);
579d8138
VS
18192
18193; return 0; }
18194EOF
b13cd66e 18195if { (eval echo configure:18196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18196 rm -rf conftest*
18197
7274f1c7 18198 wx_cv_func_pthread_cleanup_push=yes
579d8138 18199
4f14bcd8 18200else
579d8138
VS
18201 echo "configure: failed program was:" >&5
18202 cat conftest.$ac_ext >&5
18203 rm -rf conftest*
18204
7274f1c7 18205 wx_cv_func_pthread_cleanup_push=no
579d8138 18206
10f2d63a 18207fi
579d8138
VS
18208rm -f conftest*
18209
328a083c 18210fi
579d8138
VS
18211
18212echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 18213
7274f1c7 18214 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
579d8138 18215 cat >> confdefs.h <<\EOF
4f14bcd8 18216#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
18217EOF
18218
7274f1c7 18219 fi
4f14bcd8 18220
579d8138 18221
579d8138 18222 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
b13cd66e 18223echo "configure:18224: checking for pthread_mutexattr_t" >&5
579d8138
VS
18224if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18225 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18226else
579d8138
VS
18227
18228 cat > conftest.$ac_ext <<EOF
b13cd66e 18229#line 18230 "configure"
0dcf9893 18230#include "confdefs.h"
4f14bcd8 18231#include <pthread.h>
579d8138 18232int main() {
4f14bcd8 18233
7274f1c7
RL
18234 pthread_mutexattr_t attr;
18235 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
579d8138
VS
18236
18237; return 0; }
18238EOF
b13cd66e 18239if { (eval echo configure:18240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18240 rm -rf conftest*
18241
7274f1c7 18242 wx_cv_type_pthread_mutexattr_t=yes
579d8138 18243
3fed1840 18244else
579d8138
VS
18245 echo "configure: failed program was:" >&5
18246 cat conftest.$ac_ext >&5
18247 rm -rf conftest*
18248
7274f1c7 18249 wx_cv_type_pthread_mutexattr_t=no
579d8138
VS
18250
18251
3fed1840 18252fi
579d8138
VS
18253rm -f conftest*
18254
328a083c 18255fi
579d8138
VS
18256
18257echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 18258
7274f1c7 18259 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
579d8138 18260 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18261#define HAVE_PTHREAD_MUTEXATTR_T 1
18262EOF
18263
7274f1c7 18264 else
579d8138 18265 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
b13cd66e 18266echo "configure:18267: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
579d8138
VS
18267if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18268 echo $ac_n "(cached) $ac_c" 1>&6
18269else
18270
18271 cat > conftest.$ac_ext <<EOF
b13cd66e 18272#line 18273 "configure"
3fed1840 18273#include "confdefs.h"
4f14bcd8 18274#include <pthread.h>
579d8138 18275int main() {
4f14bcd8 18276
7274f1c7 18277 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
579d8138
VS
18278
18279; return 0; }
18280EOF
b13cd66e 18281if { (eval echo configure:18282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18282 rm -rf conftest*
18283
7274f1c7 18284 wx_cv_type_pthread_rec_mutex_init=yes
579d8138 18285
698dcdb6 18286else
579d8138
VS
18287 echo "configure: failed program was:" >&5
18288 cat conftest.$ac_ext >&5
18289 rm -rf conftest*
18290
7274f1c7 18291 wx_cv_type_pthread_rec_mutex_init=no
579d8138
VS
18292
18293
3fed1840 18294fi
579d8138
VS
18295rm -f conftest*
18296
328a083c 18297fi
579d8138
VS
18298
18299echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 18300 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
579d8138 18301 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18302#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18303EOF
3fed1840 18304
7274f1c7 18305 else
579d8138 18306 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
18307 fi
18308 fi
7274f1c7 18309 fi
3fed1840 18310
4f14bcd8
GD
18311fi
18312
18313if test "$wxUSE_THREADS" = "yes"; then
579d8138 18314 cat >> confdefs.h <<\EOF
4f14bcd8 18315#define wxUSE_THREADS 1
7b6058cd
GD
18316EOF
18317
579d8138 18318
4f14bcd8 18319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18320else
4f14bcd8 18321 if test "$ac_cv_func_strtok_r" = "yes"; then
579d8138 18322 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
b13cd66e 18323echo "configure:18324: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18324 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18325 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
579d8138 18326 echo "$ac_t""yes" 1>&6
4f14bcd8 18327 else
579d8138 18328 echo "$ac_t""no" 1>&6
4f14bcd8
GD
18329 fi
18330 fi
18331fi
18332
18333if test "$WXGTK20" = 1 ; then
579d8138 18334 cat >> confdefs.h <<EOF
4f14bcd8 18335#define __WXGTK20__ $WXGTK20
698dcdb6 18336EOF
4f14bcd8
GD
18337
18338 WXGTK12=1
10f2d63a 18339fi
4f14bcd8
GD
18340
18341if test "$WXGTK12" = 1 ; then
579d8138 18342 cat >> confdefs.h <<EOF
4f14bcd8
GD
18343#define __WXGTK12__ $WXGTK12
18344EOF
18345
10f2d63a 18346fi
698dcdb6 18347
4f14bcd8 18348if test "$WXGTK127" = 1 ; then
579d8138 18349 cat >> confdefs.h <<EOF
4f14bcd8 18350#define __WXGTK127__ $WXGTK127
698dcdb6 18351EOF
4f14bcd8 18352
698dcdb6 18353fi
10f2d63a 18354
4f14bcd8
GD
18355WXDEBUG=
18356
18357if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18358 WXDEBUG="-g"
18359 wxUSE_OPTIMISE=no
698dcdb6 18360fi
4f14bcd8
GD
18361
18362if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18363 wxUSE_DEBUG_INFO=yes
18364 WXDEBUG="-ggdb"
10f2d63a
VZ
18365fi
18366
4f14bcd8 18367if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
579d8138 18368 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18369#define WXDEBUG 1
18370EOF
18371
18372 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18373else
4f14bcd8
GD
18374 if test "$wxUSE_GTK" = 1 ; then
18375 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18376 fi
18377fi
18378
18379if test "$wxUSE_MEM_TRACING" = "yes" ; then
579d8138 18380 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18381#define wxUSE_MEMORY_TRACING 1
18382EOF
18383
579d8138 18384 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18385#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18386EOF
18387
579d8138 18388 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18389#define wxUSE_DEBUG_NEW_ALWAYS 1
18390EOF
18391
18392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18393fi
18394
18395if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18396 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18397fi
18398
18399PROFILE=
18400if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18401 PROFILE=" -pg"
10f2d63a
VZ
18402fi
18403
009fead0
VZ
18404CODE_GEN_FLAGS=
18405CODE_GEN_FLAGS_CXX=
88e30f2b 18406if test "$GCC" = "yes" ; then
4f14bcd8
GD
18407 if test "$wxUSE_NO_RTTI" = "yes" ; then
18408 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18409 fi
4f14bcd8
GD
18410 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18411 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18412 fi
18413 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18414 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18415 fi
4f14bcd8
GD
18416 if test "$USE_WIN32" = 1 ; then
18417 # I'm not even really sure what this was ever added to solve,
18418 # but someone added it for mingw native builds, so I guess
18419 # they had a reason, right??
18420 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18421 fi
1d1b75ac
VZ
18422
18423 case "${host}" in
18424 powerpc*-*-aix* )
18425 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18426 ;;
18427 esac
4f14bcd8
GD
18428fi
18429
4f14bcd8
GD
18430if test "$wxUSE_OPTIMISE" = "no" ; then
18431 OPTIMISE=
18432else
18433 if test "$GCC" = yes ; then
18434 OPTIMISE="-O2"
18435 case "${host}" in
18436 i586-*-*|i686-*-* )
18437 OPTIMISE="${OPTIMISE} "
18438 ;;
18439 esac
18440 else
18441 OPTIMISE="-O"
18442 fi
18443fi
18444
18445if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
579d8138 18446 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18447#define WXWIN_COMPATIBILITY_2 1
18448EOF
18449
579d8138 18450
4f14bcd8
GD
18451 WXWIN_COMPATIBILITY_2_2="yes"
18452fi
18453
0c9a1c32 18454if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
579d8138 18455 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18456#define WXWIN_COMPATIBILITY_2_2 1
18457EOF
18458
10f2d63a
VZ
18459fi
18460
579d8138 18461
10f2d63a 18462if test "$wxUSE_GUI" = "yes"; then
579d8138 18463 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18464#define wxUSE_GUI 1
18465EOF
18466
579d8138 18467
10f2d63a 18468 else
579d8138 18469 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18470#define wxUSE_NOGUI 1
18471EOF
18472
18473fi
18474
579d8138 18475
10f2d63a 18476if test "$wxUSE_UNIX" = "yes"; then
579d8138 18477 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18478#define wxUSE_UNIX 1
18479EOF
18480
18481fi
18482
579d8138 18483
10f2d63a 18484if test "$wxUSE_APPLE_IEEE" = "yes"; then
579d8138 18485 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18486#define wxUSE_APPLE_IEEE 1
18487EOF
18488
18489fi
18490
1e6feb95 18491if test "$wxUSE_TIMER" = "yes"; then
579d8138 18492 cat >> confdefs.h <<\EOF
1e6feb95
VZ
18493#define wxUSE_TIMER 1
18494EOF
18495
18496fi
18497
10f2d63a 18498if test "$wxUSE_WAVE" = "yes"; then
579d8138 18499 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18500#define wxUSE_WAVE 1
18501EOF
18502
18503fi
18504
1e6feb95 18505if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
579d8138 18506 cat >> confdefs.h <<\EOF
1e6feb95
VZ
18507#define wxUSE_CMDLINE_PARSER 1
18508EOF
18509
18510fi
18511
18512if test "$wxUSE_STOPWATCH" = "yes"; then
579d8138 18513 cat >> confdefs.h <<\EOF
1e6feb95
VZ
18514#define wxUSE_STOPWATCH 1
18515EOF
18516
18517fi
18518
18519if test "$wxUSE_DATETIME" = "yes"; then
579d8138 18520 cat >> confdefs.h <<\EOF
1e6feb95
VZ
18521#define wxUSE_DATETIME 1
18522EOF
18523
18524fi
18525
18526if test "$wxUSE_TIMEDATE" = "yes"; then
579d8138 18527 cat >> confdefs.h <<\EOF
1e6feb95
VZ
18528#define wxUSE_TIMEDATE 1
18529EOF
18530
18531fi
18532
10f2d63a 18533if test "$wxUSE_FILE" = "yes"; then
579d8138 18534 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18535#define wxUSE_FILE 1
18536EOF
18537
18538fi
18539
1e6feb95 18540if test "$wxUSE_FFILE" = "yes"; then
579d8138 18541 cat >> confdefs.h <<\EOF
1e6feb95
VZ
18542#define wxUSE_FFILE 1
18543EOF
18544
18545fi
18546
24528b0c 18547if test "$wxUSE_FILESYSTEM" = "yes"; then
579d8138 18548 cat >> confdefs.h <<\EOF
24528b0c
VS
18549#define wxUSE_FILESYSTEM 1
18550EOF
18551
18552fi
18553
10f2d63a 18554if test "$wxUSE_FS_INET" = "yes"; then
579d8138 18555 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18556#define wxUSE_FS_INET 1
18557EOF
18558
18559fi
18560
18561if test "$wxUSE_FS_ZIP" = "yes"; then
579d8138 18562 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18563#define wxUSE_FS_ZIP 1
18564EOF
18565
18566fi
18567
18568if test "$wxUSE_ZIPSTREAM" = "yes"; then
579d8138 18569 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18570#define wxUSE_ZIPSTREAM 1
18571EOF
18572
18573fi
18574
eb4efbdc 18575if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
579d8138 18576 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18577#define wxUSE_ON_FATAL_EXCEPTION 1
18578EOF
18579
18580fi
18581
4f3c5f06 18582if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
579d8138 18583 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18584#define wxUSE_SNGLINST_CHECKER 1
18585EOF
18586
18587fi
18588
10f2d63a 18589if test "$wxUSE_BUSYINFO" = "yes"; then
579d8138 18590 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18591#define wxUSE_BUSYINFO 1
18592EOF
18593
18594fi
18595
18596if test "$wxUSE_STD_IOSTREAM" = "yes"; then
579d8138 18597 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18598#define wxUSE_STD_IOSTREAM 1
18599EOF
18600
18601fi
18602
a3a584a7 18603if test "$wxUSE_TEXTBUFFER" = "yes"; then
579d8138 18604 cat >> confdefs.h <<\EOF
a3a584a7
VZ
18605#define wxUSE_TEXTBUFFER 1
18606EOF
18607
18608fi
18609
10f2d63a 18610if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18611 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
579d8138 18612 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18613 else
579d8138 18614 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18615#define wxUSE_TEXTFILE 1
18616EOF
18617
18618 fi
18619fi
18620
18621if test "$wxUSE_CONFIG" = "yes" ; then
18622 if test "$wxUSE_TEXTFILE" != "yes"; then
579d8138 18623 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18624 else
579d8138 18625 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18626#define wxUSE_CONFIG 1
18627EOF
18628
18629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18630 fi
18631fi
18632
18633if test "$wxUSE_INTL" = "yes" ; then
18634 if test "$wxUSE_FILE" != "yes"; then
579d8138 18635 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18636 else
579d8138 18637 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18638#define wxUSE_INTL 1
18639EOF
18640
18641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18642 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18643 fi
18644fi
18645
18646if test "$wxUSE_LOG" = "yes"; then
579d8138 18647 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18648#define wxUSE_LOG 1
18649EOF
18650
579d8138 18651
d73be714 18652 if test "$wxUSE_LOGGUI" = "yes"; then
579d8138 18653 cat >> confdefs.h <<\EOF
d73be714
VZ
18654#define wxUSE_LOGGUI 1
18655EOF
18656
18657 fi
18658
18659 if test "$wxUSE_LOGWINDOW" = "yes"; then
579d8138 18660 cat >> confdefs.h <<\EOF
d73be714 18661#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18662EOF
18663
18664 fi
18665
18666 if test "$wxUSE_LOGDIALOG" = "yes"; then
579d8138 18667 cat >> confdefs.h <<\EOF
69d27ff7 18668#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18669EOF
18670
18671 fi
10f2d63a
VZ
18672fi
18673
18674if test "$wxUSE_LONGLONG" = "yes"; then
579d8138 18675 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18676#define wxUSE_LONGLONG 1
18677EOF
18678
18679fi
18680
e8f65ba6 18681if test "$wxUSE_GEOMETRY" = "yes"; then
579d8138 18682 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18683#define wxUSE_GEOMETRY 1
18684EOF
18685
18686fi
18687
10f2d63a 18688if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
579d8138 18689 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18690#define wxUSE_DIALUP_MANAGER 1
18691EOF
18692
70f7a477 18693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18694fi
18695
18696if test "$wxUSE_STREAMS" = "yes" ; then
579d8138 18697 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18698#define wxUSE_STREAMS 1
18699EOF
18700
18701fi
18702
328a083c 18703
579d8138
VS
18704if test "$wxUSE_DATETIME" = "yes"; then
18705 for ac_func in strptime
83307f33 18706do
579d8138 18707echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 18708echo "configure:18709: checking for $ac_func" >&5
579d8138
VS
18709if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18710 echo $ac_n "(cached) $ac_c" 1>&6
18711else
18712 cat > conftest.$ac_ext <<EOF
b13cd66e 18713#line 18714 "configure"
83307f33
VZ
18714#include "confdefs.h"
18715/* System header to define __stub macros and hopefully few prototypes,
579d8138 18716 which can conflict with char $ac_func(); below. */
83307f33
VZ
18717#include <assert.h>
18718/* Override any gcc2 internal prototype to avoid an error. */
18719/* We use char because int might match the return type of a gcc2
579d8138
VS
18720 builtin and then its argument prototype would still apply. */
18721char $ac_func();
18722
18723int main() {
83307f33
VZ
18724
18725/* The GNU C library defines this for functions which it implements
18726 to always fail with ENOSYS. Some functions are actually named
18727 something starting with __ and the normal name is an alias. */
18728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18729choke me
18730#else
579d8138 18731$ac_func();
83307f33
VZ
18732#endif
18733
579d8138 18734; return 0; }
83307f33 18735EOF
b13cd66e 18736if { (eval echo configure:18737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18737 rm -rf conftest*
18738 eval "ac_cv_func_$ac_func=yes"
18739else
18740 echo "configure: failed program was:" >&5
18741 cat conftest.$ac_ext >&5
18742 rm -rf conftest*
18743 eval "ac_cv_func_$ac_func=no"
18744fi
18745rm -f conftest*
18746fi
83307f33 18747
579d8138
VS
18748if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18749 echo "$ac_t""yes" 1>&6
18750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18751 cat >> confdefs.h <<EOF
18752#define $ac_tr_func 1
18753EOF
18754
18755else
18756 echo "$ac_t""no" 1>&6
83307f33
VZ
18757fi
18758done
18759
328a083c 18760
579d8138 18761 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
b13cd66e 18762echo "configure:18763: checking for timezone variable in <time.h>" >&5
579d8138
VS
18763if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18764 echo $ac_n "(cached) $ac_c" 1>&6
18765else
18766
18767 cat > conftest.$ac_ext <<EOF
b13cd66e 18768#line 18769 "configure"
360d6699
VZ
18769#include "confdefs.h"
18770
b4085ce6 18771 #include <time.h>
579d8138
VS
18772
18773int main() {
360d6699
VZ
18774
18775 int tz;
4f11a343 18776 tz = timezone;
579d8138
VS
18777
18778; return 0; }
18779EOF
b13cd66e 18780if { (eval echo configure:18781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18781 rm -rf conftest*
18782
4f11a343 18783 wx_cv_var_timezone=timezone
579d8138 18784
360d6699 18785else
579d8138
VS
18786 echo "configure: failed program was:" >&5
18787 cat conftest.$ac_ext >&5
18788 rm -rf conftest*
18789
18790 cat > conftest.$ac_ext <<EOF
b13cd66e 18791#line 18792 "configure"
360d6699
VZ
18792#include "confdefs.h"
18793
b4085ce6 18794 #include <time.h>
579d8138
VS
18795
18796int main() {
360d6699
VZ
18797
18798 int tz;
18799 tz = _timezone;
579d8138
VS
18800
18801; return 0; }
18802EOF
b13cd66e 18803if { (eval echo configure:18804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18804 rm -rf conftest*
18805
360d6699 18806 wx_cv_var_timezone=_timezone
579d8138 18807
5357c8e8 18808else
579d8138
VS
18809 echo "configure: failed program was:" >&5
18810 cat conftest.$ac_ext >&5
18811 rm -rf conftest*
18812
18813 cat > conftest.$ac_ext <<EOF
b13cd66e 18814#line 18815 "configure"
5357c8e8
VZ
18815#include "confdefs.h"
18816
b4085ce6 18817 #include <time.h>
579d8138
VS
18818
18819int main() {
5357c8e8
VZ
18820
18821 int tz;
4f11a343 18822 tz = __timezone;
579d8138
VS
18823
18824; return 0; }
18825EOF
b13cd66e 18826if { (eval echo configure:18827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18827 rm -rf conftest*
18828
4f11a343 18829 wx_cv_var_timezone=__timezone
579d8138 18830
360d6699 18831else
579d8138
VS
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18834 rm -rf conftest*
18835
f9bc1684 18836 if test "$USE_DOS" = 0 ; then
579d8138 18837 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 18838 fi
579d8138
VS
18839
18840
360d6699 18841fi
579d8138
VS
18842rm -f conftest*
18843
18844
6232543b 18845fi
579d8138
VS
18846rm -f conftest*
18847
18848
1e487827 18849fi
579d8138
VS
18850rm -f conftest*
18851
18852
328a083c 18853fi
579d8138
VS
18854
18855echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 18856
f9bc1684 18857 if test "x$wx_cv_var_timezone" != x ; then
579d8138 18858 cat >> confdefs.h <<EOF
360d6699
VZ
18859#define WX_TIMEZONE $wx_cv_var_timezone
18860EOF
18861
f9bc1684 18862 fi
698dcdb6 18863
579d8138 18864 for ac_func in localtime
afc31813 18865do
579d8138 18866echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 18867echo "configure:18868: checking for $ac_func" >&5
579d8138
VS
18868if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18869 echo $ac_n "(cached) $ac_c" 1>&6
18870else
18871 cat > conftest.$ac_ext <<EOF
b13cd66e 18872#line 18873 "configure"
10f2d63a 18873#include "confdefs.h"
afc31813 18874/* System header to define __stub macros and hopefully few prototypes,
579d8138 18875 which can conflict with char $ac_func(); below. */
afc31813
VZ
18876#include <assert.h>
18877/* Override any gcc2 internal prototype to avoid an error. */
18878/* We use char because int might match the return type of a gcc2
579d8138
VS
18879 builtin and then its argument prototype would still apply. */
18880char $ac_func();
18881
18882int main() {
afc31813
VZ
18883
18884/* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18888choke me
18889#else
579d8138 18890$ac_func();
afc31813
VZ
18891#endif
18892
579d8138 18893; return 0; }
10f2d63a 18894EOF
b13cd66e 18895if { (eval echo configure:18896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18896 rm -rf conftest*
18897 eval "ac_cv_func_$ac_func=yes"
18898else
18899 echo "configure: failed program was:" >&5
18900 cat conftest.$ac_ext >&5
18901 rm -rf conftest*
18902 eval "ac_cv_func_$ac_func=no"
18903fi
18904rm -f conftest*
18905fi
afc31813 18906
579d8138
VS
18907if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18908 echo "$ac_t""yes" 1>&6
18909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18910 cat >> confdefs.h <<EOF
18911#define $ac_tr_func 1
18912EOF
18913
18914else
18915 echo "$ac_t""no" 1>&6
afc31813
VZ
18916fi
18917done
18918
328a083c 18919
579d8138
VS
18920 if test "$ac_cv_func_localtime" = "yes"; then
18921 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
b13cd66e 18922echo "configure:18923: checking for tm_gmtoff in struct tm" >&5
579d8138
VS
18923if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18924 echo $ac_n "(cached) $ac_c" 1>&6
18925else
18926
18927 cat > conftest.$ac_ext <<EOF
b13cd66e 18928#line 18929 "configure"
0470b1e6
VZ
18929#include "confdefs.h"
18930
b4085ce6 18931 #include <time.h>
579d8138
VS
18932
18933int main() {
0470b1e6
VZ
18934
18935 struct tm tm;
18936 tm.tm_gmtoff++;
579d8138
VS
18937
18938; return 0; }
18939EOF
b13cd66e 18940if { (eval echo configure:18941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138
VS
18941 rm -rf conftest*
18942
f03a98d8 18943 wx_cv_struct_tm_has_gmtoff=yes
579d8138 18944
0470b1e6 18945else
579d8138
VS
18946 echo "configure: failed program was:" >&5
18947 cat conftest.$ac_ext >&5
18948 rm -rf conftest*
18949 wx_cv_struct_tm_has_gmtoff=no
18950
1e487827 18951fi
579d8138
VS
18952rm -f conftest*
18953
328a083c 18954fi
579d8138
VS
18955
18956echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18957 fi
18958
18959 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
579d8138 18960 cat >> confdefs.h <<\EOF
6232543b
VS
18961#define WX_GMTOFF_IN_TM 1
18962EOF
0470b1e6 18963
3fcdd07b
VZ
18964 fi
18965
579d8138 18966 for ac_func in gettimeofday ftime
3fcdd07b 18967do
579d8138 18968echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 18969echo "configure:18970: checking for $ac_func" >&5
579d8138
VS
18970if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18971 echo $ac_n "(cached) $ac_c" 1>&6
18972else
18973 cat > conftest.$ac_ext <<EOF
b13cd66e 18974#line 18975 "configure"
3fcdd07b
VZ
18975#include "confdefs.h"
18976/* System header to define __stub macros and hopefully few prototypes,
579d8138 18977 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18978#include <assert.h>
18979/* Override any gcc2 internal prototype to avoid an error. */
18980/* We use char because int might match the return type of a gcc2
579d8138
VS
18981 builtin and then its argument prototype would still apply. */
18982char $ac_func();
18983
18984int main() {
3fcdd07b
VZ
18985
18986/* The GNU C library defines this for functions which it implements
18987 to always fail with ENOSYS. Some functions are actually named
18988 something starting with __ and the normal name is an alias. */
18989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18990choke me
18991#else
579d8138 18992$ac_func();
3fcdd07b
VZ
18993#endif
18994
579d8138
VS
18995; return 0; }
18996EOF
b13cd66e 18997if { (eval echo configure:18998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
18998 rm -rf conftest*
18999 eval "ac_cv_func_$ac_func=yes"
19000else
19001 echo "configure: failed program was:" >&5
19002 cat conftest.$ac_ext >&5
19003 rm -rf conftest*
19004 eval "ac_cv_func_$ac_func=no"
19005fi
19006rm -f conftest*
19007fi
19008
19009if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19010 echo "$ac_t""yes" 1>&6
19011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19012 cat >> confdefs.h <<EOF
19013#define $ac_tr_func 1
3fcdd07b
VZ
19014EOF
19015 break
579d8138
VS
19016else
19017 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19018fi
19019done
19020
703e0a69 19021
579d8138
VS
19022 if test "$ac_cv_func_gettimeofday" = "yes"; then
19023 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
b13cd66e 19024echo "configure:19025: checking whether gettimeofday takes two arguments" >&5
579d8138
VS
19025if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19026 echo $ac_n "(cached) $ac_c" 1>&6
19027else
19028
19029
19030 ac_ext=C
19031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
328a083c 19032ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 19033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 19034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
19035cross_compiling=$ac_cv_prog_cxx_cross
19036
698dcdb6 19037
579d8138 19038 cat > conftest.$ac_ext <<EOF
b13cd66e 19039#line 19040 "configure"
10f2d63a 19040#include "confdefs.h"
afc31813
VZ
19041
19042 #include <sys/time.h>
19043 #include <unistd.h>
579d8138
VS
19044
19045int main() {
afc31813
VZ
19046
19047 struct timeval tv;
776862b4 19048 gettimeofday(&tv, NULL);
579d8138
VS
19049
19050; return 0; }
19051EOF
b13cd66e 19052if { (eval echo configure:19053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 19053 rm -rf conftest*
afc31813 19054 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 19055else
579d8138
VS
19056 echo "configure: failed program was:" >&5
19057 cat conftest.$ac_ext >&5
19058 rm -rf conftest*
19059 cat > conftest.$ac_ext <<EOF
b13cd66e 19060#line 19061 "configure"
10f2d63a 19061#include "confdefs.h"
afc31813
VZ
19062
19063 #include <sys/time.h>
19064 #include <unistd.h>
579d8138
VS
19065
19066int main() {
afc31813
VZ
19067
19068 struct timeval tv;
19069 gettimeofday(&tv);
579d8138
VS
19070
19071; return 0; }
19072EOF
b13cd66e 19073if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 19074 rm -rf conftest*
afc31813 19075 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 19076else
579d8138
VS
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080
19081 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 19082 wx_cv_func_gettimeofday_has_2_args=unknown
579d8138
VS
19083
19084
10f2d63a 19085fi
579d8138
VS
19086rm -f conftest*
19087
10f2d63a 19088fi
579d8138 19089rm -f conftest*
afc31813 19090 ac_ext=c
579d8138 19091# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 19092ac_cpp='$CPP $CPPFLAGS'
579d8138 19093ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 19094ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 19095cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 19096
579d8138 19097
afc31813 19098fi
579d8138
VS
19099
19100echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 19101
afc31813 19102 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
579d8138 19103 cat >> confdefs.h <<\EOF
afc31813
VZ
19104#define WX_GETTIMEOFDAY_NO_TZ 1
19105EOF
19106
19107 fi
19108 fi
19109
579d8138 19110 cat >> confdefs.h <<\EOF
afc31813
VZ
19111#define wxUSE_TIMEDATE 1
19112EOF
19113
19114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19115fi
19116
579d8138 19117
0feee163 19118if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 19119 if test "$wxUSE_X11" = "1"; then
579d8138 19120 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
0feee163
VZ
19121 wxUSE_SOCKETS="no"
19122 fi
6c657b52
VS
19123
19124 if test "$wxUSE_MGL" = "1"; then
579d8138 19125 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
19126 wxUSE_SOCKETS="no"
19127 fi
0feee163 19128fi
b089607b 19129
0feee163
VZ
19130if test "$wxUSE_SOCKETS" = "yes"; then
19131 if test "$TOOLKIT" != "MSW"; then
579d8138 19132 echo $ac_n "checking for socket""... $ac_c" 1>&6
b13cd66e 19133echo "configure:19134: checking for socket" >&5
579d8138
VS
19134if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19135 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19136else
579d8138 19137 cat > conftest.$ac_ext <<EOF
b13cd66e 19138#line 19139 "configure"
c63c7106
VZ
19139#include "confdefs.h"
19140/* System header to define __stub macros and hopefully few prototypes,
579d8138 19141 which can conflict with char socket(); below. */
c63c7106
VZ
19142#include <assert.h>
19143/* Override any gcc2 internal prototype to avoid an error. */
19144/* We use char because int might match the return type of a gcc2
579d8138
VS
19145 builtin and then its argument prototype would still apply. */
19146char socket();
19147
19148int main() {
c63c7106
VZ
19149
19150/* The GNU C library defines this for functions which it implements
19151 to always fail with ENOSYS. Some functions are actually named
19152 something starting with __ and the normal name is an alias. */
19153#if defined (__stub_socket) || defined (__stub___socket)
19154choke me
19155#else
579d8138 19156socket();
c63c7106
VZ
19157#endif
19158
579d8138
VS
19159; return 0; }
19160EOF
b13cd66e 19161if { (eval echo configure:19162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19162 rm -rf conftest*
19163 eval "ac_cv_func_socket=yes"
19164else
19165 echo "configure: failed program was:" >&5
19166 cat conftest.$ac_ext >&5
19167 rm -rf conftest*
19168 eval "ac_cv_func_socket=no"
19169fi
19170rm -f conftest*
19171fi
19172
19173if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19174 echo "$ac_t""yes" 1>&6
c63c7106
VZ
19175 :
19176else
579d8138
VS
19177 echo "$ac_t""no" 1>&6
19178echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
b13cd66e 19179echo "configure:19180: checking for socket in -lsocket" >&5
579d8138
VS
19180ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19182 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19183else
579d8138 19184 ac_save_LIBS="$LIBS"
c63c7106 19185LIBS="-lsocket $LIBS"
579d8138 19186cat > conftest.$ac_ext <<EOF
b13cd66e 19187#line 19188 "configure"
c63c7106
VZ
19188#include "confdefs.h"
19189/* Override any gcc2 internal prototype to avoid an error. */
19190/* We use char because int might match the return type of a gcc2
579d8138
VS
19191 builtin and then its argument prototype would still apply. */
19192char socket();
19193
19194int main() {
19195socket()
19196; return 0; }
19197EOF
b13cd66e 19198if { (eval echo configure:19199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19199 rm -rf conftest*
19200 eval "ac_cv_lib_$ac_lib_var=yes"
19201else
19202 echo "configure: failed program was:" >&5
19203 cat conftest.$ac_ext >&5
19204 rm -rf conftest*
19205 eval "ac_cv_lib_$ac_lib_var=no"
19206fi
19207rm -f conftest*
19208LIBS="$ac_save_LIBS"
19209
19210fi
19211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19212 echo "$ac_t""yes" 1>&6
d558c907
VS
19213 if test "$INET_LINK" != " -lsocket"; then
19214 INET_LINK="$INET_LINK -lsocket"
19215 fi
c63c7106 19216else
579d8138 19217 echo "$ac_t""no" 1>&6
afc31813 19218
579d8138 19219 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 19220 wxUSE_SOCKETS=no
579d8138
VS
19221
19222
6232543b 19223fi
b089607b 19224
579d8138 19225
1e487827 19226fi
afc31813 19227
3a922bb4 19228 fi
0feee163 19229fi
51a9faba 19230
0feee163
VZ
19231if test "$wxUSE_SOCKETS" = "yes" ; then
19232 if test "$TOOLKIT" != "MSW"; then
579d8138 19233 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
b13cd66e 19234echo "configure:19235: checking what is the type of the third argument of getsockname" >&5
579d8138
VS
19235if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19236 echo $ac_n "(cached) $ac_c" 1>&6
19237else
19238
19239
19240 ac_ext=C
19241# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
328a083c 19242ac_cpp='$CXXCPP $CPPFLAGS'
579d8138 19243ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 19244ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138
VS
19245cross_compiling=$ac_cv_prog_cxx_cross
19246
698dcdb6 19247
579d8138 19248 cat > conftest.$ac_ext <<EOF
b13cd66e 19249#line 19250 "configure"
afc31813 19250#include "confdefs.h"
51a9faba 19251
3a922bb4
RL
19252 #include <sys/types.h>
19253 #include <sys/socket.h>
579d8138
VS
19254
19255int main() {
51a9faba 19256
3a922bb4
RL
19257 socklen_t len;
19258 getsockname(0, 0, &len);
579d8138
VS
19259
19260; return 0; }
19261EOF
b13cd66e 19262if { (eval echo configure:19263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 19263 rm -rf conftest*
51a9faba 19264 wx_cv_type_getsockname3=socklen_t
afc31813 19265else
579d8138
VS
19266 echo "configure: failed program was:" >&5
19267 cat conftest.$ac_ext >&5
19268 rm -rf conftest*
19269 cat > conftest.$ac_ext <<EOF
b13cd66e 19270#line 19271 "configure"
afc31813 19271#include "confdefs.h"
51a9faba 19272
3a922bb4
RL
19273 #include <sys/types.h>
19274 #include <sys/socket.h>
579d8138
VS
19275
19276int main() {
51a9faba 19277
3a922bb4
RL
19278 size_t len;
19279 getsockname(0, 0, &len);
579d8138
VS
19280
19281; return 0; }
19282EOF
b13cd66e 19283if { (eval echo configure:19284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 19284 rm -rf conftest*
51a9faba 19285 wx_cv_type_getsockname3=size_t
afc31813 19286else
579d8138
VS
19287 echo "configure: failed program was:" >&5
19288 cat conftest.$ac_ext >&5
19289 rm -rf conftest*
19290 cat > conftest.$ac_ext <<EOF
b13cd66e 19291#line 19292 "configure"
afc31813 19292#include "confdefs.h"
51a9faba 19293
3a922bb4
RL
19294 #include <sys/types.h>
19295 #include <sys/socket.h>
579d8138
VS
19296
19297int main() {
51a9faba 19298
3a922bb4
RL
19299 int len;
19300 getsockname(0, 0, &len);
579d8138
VS
19301
19302; return 0; }
19303EOF
b13cd66e 19304if { (eval echo configure:19305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579d8138 19305 rm -rf conftest*
51a9faba 19306 wx_cv_type_getsockname3=int
afc31813 19307else
579d8138
VS
19308 echo "configure: failed program was:" >&5
19309 cat conftest.$ac_ext >&5
19310 rm -rf conftest*
19311 wx_cv_type_getsockname3=unknown
19312
afc31813 19313fi
579d8138
VS
19314rm -f conftest*
19315
afc31813 19316fi
579d8138
VS
19317rm -f conftest*
19318
afc31813 19319fi
579d8138 19320rm -f conftest*
51a9faba 19321
3a922bb4 19322 ac_ext=c
579d8138 19323# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19324ac_cpp='$CPP $CPPFLAGS'
579d8138 19325ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f09359cf 19326ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579d8138 19327cross_compiling=$ac_cv_prog_cc_cross
afc31813 19328
579d8138 19329
51a9faba 19330fi
579d8138
VS
19331
19332echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19333
3a922bb4
RL
19334 if test "$wx_cv_type_getsockname3" = "unknown"; then
19335 wxUSE_SOCKETS=no
579d8138 19336 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 19337 else
579d8138 19338 cat >> confdefs.h <<EOF
51a9faba
VZ
19339#define SOCKLEN_T $wx_cv_type_getsockname3
19340EOF
19341
3a922bb4 19342 fi
51a9faba
VZ
19343 fi
19344fi
afc31813 19345
51a9faba 19346if test "$wxUSE_SOCKETS" = "yes" ; then
579d8138 19347 cat >> confdefs.h <<\EOF
afc31813
VZ
19348#define wxUSE_SOCKETS 1
19349EOF
19350
70f7a477 19351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19352fi
19353
579d8138 19354
dc3d889d
VZ
19355if test "$wxUSE_GUI" = "yes"; then
19356
156b2523 19357 if test "$TOOLKIT" = "MAC"; then
579d8138 19358 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
19359 wxUSE_JOYSTICK=no
19360 fi
19361 if test "$TOOLKIT" = "MOTIF"; then
579d8138 19362 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 19363 wxUSE_JOYSTICK=no
f79bd02d
JS
19364 fi
19365 if test "$TOOLKIT" = "X11"; then
579d8138 19366 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 19367 wxUSE_JOYSTICK=no
156b2523
GD
19368 fi
19369
3a922bb4
RL
19370 if test "$TOOLKIT" != "MSW"; then
19371 if test "$wxUSE_JOYSTICK" = "yes"; then
579d8138 19372 for ac_hdr in linux/joystick.h
10f2d63a 19373do
579d8138
VS
19374ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19375echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b13cd66e 19376echo "configure:19377: checking for $ac_hdr" >&5
579d8138
VS
19377if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19378 echo $ac_n "(cached) $ac_c" 1>&6
19379else
19380 cat > conftest.$ac_ext <<EOF
b13cd66e 19381#line 19382 "configure"
10f2d63a 19382#include "confdefs.h"
579d8138
VS
19383#include <$ac_hdr>
19384EOF
19385ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 19386{ (eval echo configure:19387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 19387ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
19388if test -z "$ac_err"; then
19389 rm -rf conftest*
19390 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19391else
579d8138
VS
19392 echo "$ac_err" >&5
19393 echo "configure: failed program was:" >&5
10f2d63a 19394 cat conftest.$ac_ext >&5
579d8138
VS
19395 rm -rf conftest*
19396 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19397fi
579d8138 19398rm -f conftest*
10f2d63a 19399fi
579d8138
VS
19400if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19401 echo "$ac_t""yes" 1>&6
19402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19403 cat >> confdefs.h <<EOF
19404#define $ac_tr_hdr 1
10f2d63a 19405EOF
579d8138
VS
19406
19407else
19408 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19409fi
19410done
19411
3a922bb4
RL
19412 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19413 wxUSE_JOYSTICK=no
579d8138 19414 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19415 fi
19416 fi
19417 fi
b089607b 19418
3a922bb4 19419 if test "$wxUSE_JOYSTICK" = "yes"; then
579d8138 19420 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19421#define wxUSE_JOYSTICK 1
19422EOF
19423
3a922bb4
RL
19424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19425 fi
dc3d889d
VZ
19426fi
19427
579d8138 19428
b089607b
VZ
19429if test "$TOOLKIT" != "MSW"; then
19430
3a922bb4
RL
19431 HAVE_DL_FUNCS=0
19432 HAVE_SHL_FUNCS=0
0b9ab0bd 19433 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19434 if test "$USE_DARWIN" = 1; then
19435 HAVE_DL_FUNCS=1
19436 else
579d8138 19437 for ac_func in dlopen
10f2d63a 19438do
579d8138 19439echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 19440echo "configure:19441: checking for $ac_func" >&5
579d8138
VS
19441if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19442 echo $ac_n "(cached) $ac_c" 1>&6
19443else
19444 cat > conftest.$ac_ext <<EOF
b13cd66e 19445#line 19446 "configure"
10f2d63a
VZ
19446#include "confdefs.h"
19447/* System header to define __stub macros and hopefully few prototypes,
579d8138 19448 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19449#include <assert.h>
19450/* Override any gcc2 internal prototype to avoid an error. */
19451/* We use char because int might match the return type of a gcc2
579d8138
VS
19452 builtin and then its argument prototype would still apply. */
19453char $ac_func();
19454
19455int main() {
10f2d63a
VZ
19456
19457/* The GNU C library defines this for functions which it implements
19458 to always fail with ENOSYS. Some functions are actually named
19459 something starting with __ and the normal name is an alias. */
19460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19461choke me
19462#else
579d8138 19463$ac_func();
10f2d63a
VZ
19464#endif
19465
579d8138
VS
19466; return 0; }
19467EOF
b13cd66e 19468if { (eval echo configure:19469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19469 rm -rf conftest*
19470 eval "ac_cv_func_$ac_func=yes"
19471else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 eval "ac_cv_func_$ac_func=no"
19476fi
19477rm -f conftest*
19478fi
19479
19480if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19481 echo "$ac_t""yes" 1>&6
19482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19483 cat >> confdefs.h <<EOF
19484#define $ac_tr_func 1
19485EOF
19486
19487 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19488#define HAVE_DLOPEN 1
19489EOF
19490
3a922bb4 19491 HAVE_DL_FUNCS=1
579d8138 19492
10f2d63a 19493else
579d8138
VS
19494 echo "$ac_t""no" 1>&6
19495echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
b13cd66e 19496echo "configure:19497: checking for dlopen in -ldl" >&5
579d8138
VS
19497ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19498if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19499 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19500else
579d8138 19501 ac_save_LIBS="$LIBS"
10f2d63a 19502LIBS="-ldl $LIBS"
579d8138 19503cat > conftest.$ac_ext <<EOF
b13cd66e 19504#line 19505 "configure"
10f2d63a
VZ
19505#include "confdefs.h"
19506/* Override any gcc2 internal prototype to avoid an error. */
19507/* We use char because int might match the return type of a gcc2
579d8138
VS
19508 builtin and then its argument prototype would still apply. */
19509char dlopen();
19510
19511int main() {
19512dlopen()
19513; return 0; }
19514EOF
b13cd66e 19515if { (eval echo configure:19516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19516 rm -rf conftest*
19517 eval "ac_cv_lib_$ac_lib_var=yes"
19518else
19519 echo "configure: failed program was:" >&5
19520 cat conftest.$ac_ext >&5
19521 rm -rf conftest*
19522 eval "ac_cv_lib_$ac_lib_var=no"
19523fi
19524rm -f conftest*
19525LIBS="$ac_save_LIBS"
19526
19527fi
19528if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19529 echo "$ac_t""yes" 1>&6
19530
19531 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19532#define HAVE_DLOPEN 1
19533EOF
19534
3a922bb4 19535 HAVE_DL_FUNCS=1
3d63bc3a 19536 DL_LINK=" -ldl$DL_LINK"
579d8138 19537
10f2d63a 19538else
579d8138 19539 echo "$ac_t""no" 1>&6
10f2d63a 19540
579d8138 19541 for ac_func in shl_load
10f2d63a 19542do
579d8138 19543echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 19544echo "configure:19545: checking for $ac_func" >&5
579d8138
VS
19545if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19546 echo $ac_n "(cached) $ac_c" 1>&6
19547else
19548 cat > conftest.$ac_ext <<EOF
b13cd66e 19549#line 19550 "configure"
10f2d63a
VZ
19550#include "confdefs.h"
19551/* System header to define __stub macros and hopefully few prototypes,
579d8138 19552 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19553#include <assert.h>
19554/* Override any gcc2 internal prototype to avoid an error. */
19555/* We use char because int might match the return type of a gcc2
579d8138
VS
19556 builtin and then its argument prototype would still apply. */
19557char $ac_func();
19558
19559int main() {
10f2d63a
VZ
19560
19561/* The GNU C library defines this for functions which it implements
19562 to always fail with ENOSYS. Some functions are actually named
19563 something starting with __ and the normal name is an alias. */
19564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19565choke me
19566#else
579d8138 19567$ac_func();
10f2d63a
VZ
19568#endif
19569
579d8138
VS
19570; return 0; }
19571EOF
b13cd66e 19572if { (eval echo configure:19573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19573 rm -rf conftest*
19574 eval "ac_cv_func_$ac_func=yes"
19575else
19576 echo "configure: failed program was:" >&5
19577 cat conftest.$ac_ext >&5
19578 rm -rf conftest*
19579 eval "ac_cv_func_$ac_func=no"
19580fi
19581rm -f conftest*
19582fi
19583
19584if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19585 echo "$ac_t""yes" 1>&6
19586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19587 cat >> confdefs.h <<EOF
19588#define $ac_tr_func 1
19589EOF
19590
19591 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19592#define HAVE_SHL_LOAD 1
19593EOF
19594
3a922bb4 19595 HAVE_SHL_FUNCS=1
579d8138 19596
10f2d63a 19597else
579d8138
VS
19598 echo "$ac_t""no" 1>&6
19599echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
b13cd66e 19600echo "configure:19601: checking for dld in -lshl_load" >&5
579d8138
VS
19601ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19602if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19603 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19604else
579d8138 19605 ac_save_LIBS="$LIBS"
f6bcfd97 19606LIBS="-lshl_load $LIBS"
579d8138 19607cat > conftest.$ac_ext <<EOF
b13cd66e 19608#line 19609 "configure"
f6bcfd97
BP
19609#include "confdefs.h"
19610/* Override any gcc2 internal prototype to avoid an error. */
19611/* We use char because int might match the return type of a gcc2
579d8138
VS
19612 builtin and then its argument prototype would still apply. */
19613char dld();
19614
19615int main() {
19616dld()
19617; return 0; }
19618EOF
b13cd66e 19619if { (eval echo configure:19620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19620 rm -rf conftest*
19621 eval "ac_cv_lib_$ac_lib_var=yes"
19622else
19623 echo "configure: failed program was:" >&5
19624 cat conftest.$ac_ext >&5
19625 rm -rf conftest*
19626 eval "ac_cv_lib_$ac_lib_var=no"
19627fi
19628rm -f conftest*
19629LIBS="$ac_save_LIBS"
f6bcfd97 19630
579d8138
VS
19631fi
19632if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19633 echo "$ac_t""yes" 1>&6
19634
3a922bb4 19635 HAVE_SHL_FUNCS=1
3d63bc3a 19636 DL_LINK=" -ldld$DL_LINK"
579d8138
VS
19637
19638else
19639 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19640fi
19641
579d8138 19642
10f2d63a
VZ
19643fi
19644done
19645
579d8138 19646
10f2d63a
VZ
19647fi
19648
579d8138 19649
10f2d63a
VZ
19650fi
19651done
19652
328a083c 19653
579d8138
VS
19654 if test "$HAVE_DL_FUNCS" = 1; then
19655 for ac_func in dlerror
f6bcfd97 19656do
579d8138 19657echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b13cd66e 19658echo "configure:19659: checking for $ac_func" >&5
579d8138
VS
19659if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19660 echo $ac_n "(cached) $ac_c" 1>&6
19661else
19662 cat > conftest.$ac_ext <<EOF
b13cd66e 19663#line 19664 "configure"
f6bcfd97
BP
19664#include "confdefs.h"
19665/* System header to define __stub macros and hopefully few prototypes,
579d8138 19666 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19667#include <assert.h>
19668/* Override any gcc2 internal prototype to avoid an error. */
19669/* We use char because int might match the return type of a gcc2
579d8138
VS
19670 builtin and then its argument prototype would still apply. */
19671char $ac_func();
19672
19673int main() {
f6bcfd97
BP
19674
19675/* The GNU C library defines this for functions which it implements
19676 to always fail with ENOSYS. Some functions are actually named
19677 something starting with __ and the normal name is an alias. */
19678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19679choke me
19680#else
579d8138 19681$ac_func();
f6bcfd97
BP
19682#endif
19683
579d8138
VS
19684; return 0; }
19685EOF
b13cd66e 19686if { (eval echo configure:19687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19687 rm -rf conftest*
19688 eval "ac_cv_func_$ac_func=yes"
19689else
19690 echo "configure: failed program was:" >&5
19691 cat conftest.$ac_ext >&5
19692 rm -rf conftest*
19693 eval "ac_cv_func_$ac_func=no"
19694fi
19695rm -f conftest*
19696fi
19697
19698if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19699 echo "$ac_t""yes" 1>&6
19700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19701 cat >> confdefs.h <<EOF
19702#define $ac_tr_func 1
19703EOF
19704 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19705#define HAVE_DLERROR 1
19706EOF
19707
19708else
579d8138
VS
19709 echo "$ac_t""no" 1>&6
19710echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
b13cd66e 19711echo "configure:19712: checking for dlerror in -ldl" >&5
579d8138
VS
19712ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19714 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19715else
579d8138 19716 ac_save_LIBS="$LIBS"
f6bcfd97 19717LIBS="-ldl $LIBS"
579d8138 19718cat > conftest.$ac_ext <<EOF
b13cd66e 19719#line 19720 "configure"
f6bcfd97
BP
19720#include "confdefs.h"
19721/* Override any gcc2 internal prototype to avoid an error. */
19722/* We use char because int might match the return type of a gcc2
579d8138
VS
19723 builtin and then its argument prototype would still apply. */
19724char dlerror();
19725
19726int main() {
19727dlerror()
19728; return 0; }
19729EOF
b13cd66e 19730if { (eval echo configure:19731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19731 rm -rf conftest*
19732 eval "ac_cv_lib_$ac_lib_var=yes"
19733else
19734 echo "configure: failed program was:" >&5
19735 cat conftest.$ac_ext >&5
19736 rm -rf conftest*
19737 eval "ac_cv_lib_$ac_lib_var=no"
19738fi
19739rm -f conftest*
19740LIBS="$ac_save_LIBS"
19741
19742fi
19743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19744 echo "$ac_t""yes" 1>&6
19745 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19746#define HAVE_DLERROR 1
19747EOF
19748
579d8138
VS
19749else
19750 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19751fi
19752
19753fi
19754done
19755
3a922bb4
RL
19756 fi
19757 fi
f6bcfd97 19758
3a922bb4
RL
19759 if test "$HAVE_DL_FUNCS" = 0; then
19760 if test "$HAVE_SHL_FUNCS" = 0; then
19761 if test "$USE_UNIX" = 1; then
579d8138 19762 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19763 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19764 wxUSE_DYNLIB_CLASS=no
19765 else
579d8138 19766 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
19767 fi
19768 fi
10f2d63a
VZ
19769 fi
19770 fi
19771fi
19772
0b9ab0bd 19773if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
579d8138 19774 cat >> confdefs.h <<\EOF
0b9ab0bd
RL
19775#define wxUSE_DYNAMIC_LOADER 1
19776EOF
19777
19778elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
579d8138 19779 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19780#define wxUSE_DYNLIB_CLASS 1
19781EOF
19782
19783fi
19784
579d8138 19785
1e6feb95 19786if test "$wxUSE_FONTMAP" = "yes" ; then
579d8138 19787 cat >> confdefs.h <<\EOF
1e6feb95
VZ
19788#define wxUSE_FONTMAP 1
19789EOF
19790
19791fi
19792
10f2d63a 19793if test "$wxUSE_UNICODE" = "yes" ; then
579d8138 19794 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19795#define wxUSE_UNICODE 1
19796EOF
19797
579d8138 19798
bbc3925a
VS
19799 if test "$wxUSE_MSW" != 1; then
19800 wxUSE_UNICODE_MSLU=no
19801 fi
a72a4bfa
VS
19802
19803 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
579d8138 19804 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
b13cd66e 19805echo "configure:19806: checking for main in -lunicows" >&5
579d8138
VS
19806ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19807if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19808 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 19809else
579d8138 19810 ac_save_LIBS="$LIBS"
a72a4bfa 19811LIBS="-lunicows $LIBS"
579d8138 19812cat > conftest.$ac_ext <<EOF
b13cd66e 19813#line 19814 "configure"
a72a4bfa
VS
19814#include "confdefs.h"
19815
579d8138
VS
19816int main() {
19817main()
19818; return 0; }
19819EOF
b13cd66e 19820if { (eval echo configure:19821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
579d8138
VS
19821 rm -rf conftest*
19822 eval "ac_cv_lib_$ac_lib_var=yes"
19823else
19824 echo "configure: failed program was:" >&5
19825 cat conftest.$ac_ext >&5
19826 rm -rf conftest*
19827 eval "ac_cv_lib_$ac_lib_var=no"
19828fi
19829rm -f conftest*
19830LIBS="$ac_save_LIBS"
19831
19832fi
19833if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19834 echo "$ac_t""yes" 1>&6
19835
19836 cat >> confdefs.h <<\EOF
a72a4bfa
VS
19837#define wxUSE_UNICODE_MSLU 1
19838EOF
19839
579d8138 19840
a72a4bfa 19841else
579d8138 19842 echo "$ac_t""no" 1>&6
a72a4bfa 19843
579d8138
VS
19844 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19845 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 19846 wxUSE_UNICODE_MSLU=no
579d8138 19847
a72a4bfa
VS
19848fi
19849
19850 fi
10f2d63a
VZ
19851fi
19852
10f2d63a 19853if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
579d8138 19854 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19855#define wxUSE_EXPERIMENTAL_PRINTF 1
19856EOF
19857
19858fi
19859
579d8138
VS
19860
19861
10f2d63a
VZ
19862IODBC_C_SRC=""
19863if test "$wxUSE_ODBC" = "yes" ; then
579d8138 19864 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19865#define wxUSE_ODBC 1
19866EOF
19867
19868 WXODBCFLAG="-D_IODBC_"
19869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19870fi
19871
579d8138 19872
10f2d63a 19873if test "$wxUSE_POSTSCRIPT" = "yes" ; then
579d8138 19874 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19875#define wxUSE_POSTSCRIPT 1
19876EOF
19877
19878fi
19879
579d8138 19880cat >> confdefs.h <<\EOF
10f2d63a
VZ
19881#define wxUSE_AFM_FOR_POSTSCRIPT 1
19882EOF
19883
579d8138
VS
19884
19885cat >> confdefs.h <<\EOF
10f2d63a
VZ
19886#define wxUSE_NORMALIZED_PS_FONTS 1
19887EOF
19888
579d8138
VS
19889
19890
10f2d63a 19891if test "$wxUSE_CONSTRAINTS" = "yes"; then
579d8138 19892 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19893#define wxUSE_CONSTRAINTS 1
19894EOF
19895
19896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19897fi
19898
19899if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19900 if test "$wxUSE_UNIVERSAL" = "yes"; then
579d8138 19901 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19902 wxUSE_MDI_ARCHITECTURE=no
19903 fi
19904
19905 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
579d8138 19906 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19907#define wxUSE_MDI_ARCHITECTURE 1
19908EOF
19909
fc26f4ab
RL
19910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19911 fi
10f2d63a
VZ
19912fi
19913
19914if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
579d8138 19915 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19916#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19917EOF
19918
19919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19920 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19922 fi
19923fi
19924
19925if test "$wxUSE_HELP" = "yes"; then
579d8138 19926 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19927#define wxUSE_HELP 1
19928EOF
19929
19930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19931
77e13408 19932 if test "$wxUSE_MSW" = 1; then
031d8228 19933 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
579d8138 19934 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19935#define wxUSE_MS_HTML_HELP 1
19936EOF
19937
3e44f09d 19938 fi
3379ed37 19939 fi
031d8228
VS
19940
19941 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19942 if test "$wxUSE_HTML" = "yes"; then
579d8138 19943 cat >> confdefs.h <<\EOF
031d8228
VS
19944#define wxUSE_WXHTML_HELP 1
19945EOF
19946
19947 else
579d8138 19948 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
19949 wxUSE_WXHTML_HELP=no
19950 fi
19951 fi
10f2d63a
VZ
19952fi
19953
19954if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19955 if test "$wxUSE_CONSTRAINTS" != "yes"; then
579d8138 19956 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19957 else
579d8138 19958 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19959#define wxUSE_PRINTING_ARCHITECTURE 1
19960EOF
19961
19962 fi
19963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19964fi
19965
19966if test "$wxUSE_PROLOGIO" = "yes" ; then
579d8138 19967 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19968#define wxUSE_PROLOGIO 1
19969EOF
19970
19971fi
19972
19973if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 19974 if test "$wxUSE_NANOX" = "yes"; then
579d8138 19975 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
e334d0ea 19976 else
579d8138 19977 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19978#define wxUSE_RESOURCES 1
19979EOF
19980
e334d0ea
JS
19981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19982 fi
10f2d63a
VZ
19983fi
19984
19985if test "$wxUSE_X_RESOURCES" = "yes"; then
579d8138 19986 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19987#define wxUSE_X_RESOURCES 1
19988EOF
19989
19990fi
19991
579d8138 19992
77e13408
RL
19993if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19994 -o "$wxUSE_CLIPBOARD" = "yes" \
19995 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
579d8138 19996 for ac_hdr in ole2.h
10f2d63a 19997do
579d8138
VS
19998ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19999echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b13cd66e 20000echo "configure:20001: checking for $ac_hdr" >&5
579d8138
VS
20001if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20002 echo $ac_n "(cached) $ac_c" 1>&6
20003else
20004 cat > conftest.$ac_ext <<EOF
b13cd66e 20005#line 20006 "configure"
10f2d63a 20006#include "confdefs.h"
579d8138
VS
20007#include <$ac_hdr>
20008EOF
20009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b13cd66e 20010{ (eval echo configure:20011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f09359cf 20011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
579d8138
VS
20012if test -z "$ac_err"; then
20013 rm -rf conftest*
20014 eval "ac_cv_header_$ac_safe=yes"
1e487827 20015else
579d8138
VS
20016 echo "$ac_err" >&5
20017 echo "configure: failed program was:" >&5
10f2d63a 20018 cat conftest.$ac_ext >&5
579d8138
VS
20019 rm -rf conftest*
20020 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20021fi
579d8138 20022rm -f conftest*
10f2d63a 20023fi
579d8138
VS
20024if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20025 echo "$ac_t""yes" 1>&6
20026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20027 cat >> confdefs.h <<EOF
20028#define $ac_tr_hdr 1
10f2d63a 20029EOF
579d8138
VS
20030
20031else
20032 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20033fi
20034done
20035
579d8138 20036
2b9bdf71
VZ
20037 if test "$ac_cv_header_ole2_h" = "yes" ; then
20038 if test "$GCC" = yes ; then
20039 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 20040 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 20041 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
579d8138 20042 cat >> confdefs.h <<\EOF
4f11a343
VS
20043#define wxUSE_OLE 1
20044EOF
20045
579d8138 20046
2b9bdf71
VZ
20047 fi
20048
579d8138 20049 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
20050#define wxUSE_DATAOBJ 1
20051EOF
20052
20053 else
579d8138 20054 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
20055
20056 wxUSE_CLIPBOARD=no
20057 wxUSE_DRAG_AND_DROP=no
20058 wxUSE_DATAOBJ=no
20059 fi
20060
77e13408 20061 if test "$wxUSE_METAFILE" = "yes"; then
579d8138 20062 cat >> confdefs.h <<\EOF
b64f0a5f
RL
20063#define wxUSE_METAFILE 1
20064EOF
20065
579d8138
VS
20066
20067 cat >> confdefs.h <<\EOF
b64f0a5f
RL
20068#define wxUSE_ENH_METAFILE 1
20069EOF
20070
2b9bdf71
VZ
20071 fi
20072fi
20073
20074if test "$wxUSE_IPC" = "yes"; then
20075 if test "$wxUSE_SOCKETS" != "yes"; then
579d8138 20076 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
20077 fi
20078
579d8138 20079 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
20080#define wxUSE_IPC 1
20081EOF
20082
20083fi
20084
20085if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 20086 if test "$wxUSE_MGL" = 1; then
579d8138 20087 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20088 wxUSE_CLIPBOARD=no
20089 fi
20090
20091 if test "$wxUSE_CLIPBOARD" = "yes"; then
579d8138 20092 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
20093#define wxUSE_CLIPBOARD 1
20094EOF
20095
579d8138
VS
20096
20097 cat >> confdefs.h <<\EOF
673f4220
VZ
20098#define wxUSE_DATAOBJ 1
20099EOF
20100
6c657b52 20101 fi
2b9bdf71
VZ
20102fi
20103
20104if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20105 if test "$wxUSE_GTK" = 1; then
20106 if test "$WXGTK12" != 1; then
579d8138 20107 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
20108 wxUSE_DRAG_AND_DROP=no
20109 fi
20110 fi
20111
2b9bdf71 20112 if test "$wxUSE_MOTIF" = 1; then
579d8138 20113 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
20114 wxUSE_DRAG_AND_DROP=no
20115 fi
20116
f79bd02d 20117 if test "$wxUSE_X11" = 1; then
579d8138 20118 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
20119 wxUSE_DRAG_AND_DROP=no
20120 fi
20121
6c657b52 20122 if test "$wxUSE_MGL" = 1; then
579d8138 20123 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20124 wxUSE_DRAG_AND_DROP=no
20125 fi
20126
10f2d63a 20127 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
579d8138 20128 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20129#define wxUSE_DRAG_AND_DROP 1
20130EOF
20131
20132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20133 fi
20134
20135fi
20136
20137if test "$wxUSE_SPLINES" = "yes" ; then
579d8138 20138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20139#define wxUSE_SPLINES 1
20140EOF
20141
20142fi
20143
579d8138 20144
1e6feb95
VZ
20145USES_CONTROLS=0
20146if test "$wxUSE_CONTROLS" = "yes"; then
20147 USES_CONTROLS=1
20148fi
20149
10f2d63a 20150if test "$wxUSE_ACCEL" = "yes"; then
579d8138 20151 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20152#define wxUSE_ACCEL 1
20153EOF
20154
1e6feb95
VZ
20155 USES_CONTROLS=1
20156fi
20157
20158if test "$wxUSE_BUTTON" = "yes"; then
579d8138 20159 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20160#define wxUSE_BUTTON 1
20161EOF
20162
20163 USES_CONTROLS=1
20164fi
20165
20166if test "$wxUSE_BMPBUTTON" = "yes"; then
579d8138 20167 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20168#define wxUSE_BMPBUTTON 1
20169EOF
20170
20171 USES_CONTROLS=1
20172fi
20173
20174if test "$wxUSE_CALCTRL" = "yes"; then
579d8138 20175 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20176#define wxUSE_CALENDARCTRL 1
20177EOF
20178
20179 USES_CONTROLS=1
20180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
20181fi
20182
20183if test "$wxUSE_CARET" = "yes"; then
579d8138 20184 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20185#define wxUSE_CARET 1
20186EOF
20187
1e6feb95 20188 USES_CONTROLS=1
10f2d63a
VZ
20189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20190fi
20191
20192if test "$wxUSE_COMBOBOX" = "yes"; then
579d8138 20193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20194#define wxUSE_COMBOBOX 1
20195EOF
20196
1e6feb95 20197 USES_CONTROLS=1
10f2d63a
VZ
20198fi
20199
20200if test "$wxUSE_CHOICE" = "yes"; then
579d8138 20201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20202#define wxUSE_CHOICE 1
20203EOF
20204
1e6feb95 20205 USES_CONTROLS=1
10f2d63a
VZ
20206fi
20207
20208if test "$wxUSE_CHECKBOX" = "yes"; then
579d8138 20209 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20210#define wxUSE_CHECKBOX 1
20211EOF
20212
1e6feb95 20213 USES_CONTROLS=1
10f2d63a
VZ
20214fi
20215
20216if test "$wxUSE_CHECKLST" = "yes"; then
579d8138 20217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20218#define wxUSE_CHECKLISTBOX 1
20219EOF
20220
1e6feb95 20221 USES_CONTROLS=1
10f2d63a
VZ
20222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20223fi
20224
20225if test "$wxUSE_GAUGE" = "yes"; then
579d8138 20226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20227#define wxUSE_GAUGE 1
20228EOF
20229
1e6feb95 20230 USES_CONTROLS=1
10f2d63a
VZ
20231fi
20232
d6a55c4b
VZ
20233if test "$wxUSE_NEW_GRID" = "yes"; then
20234 wxUSE_GRID="yes"
579d8138 20235 cat >> confdefs.h <<\EOF
d6a55c4b 20236#define wxUSE_NEW_GRID 1
10f2d63a
VZ
20237EOF
20238
1e6feb95 20239 USES_CONTROLS=1
d6a55c4b 20240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20241fi
20242
d6a55c4b 20243if test "$wxUSE_GRID" = "yes"; then
579d8138 20244 cat >> confdefs.h <<\EOF
d6a55c4b 20245#define wxUSE_GRID 1
10f2d63a
VZ
20246EOF
20247
1e6feb95 20248 USES_CONTROLS=1
d6a55c4b 20249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20250fi
20251
20252if test "$wxUSE_IMAGLIST" = "yes"; then
579d8138 20253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20254#define wxUSE_IMAGLIST 1
20255EOF
20256
20257fi
20258
20259if test "$wxUSE_LISTBOX" = "yes"; then
579d8138 20260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20261#define wxUSE_LISTBOX 1
20262EOF
20263
1e6feb95 20264 USES_CONTROLS=1
10f2d63a
VZ
20265fi
20266
20267if test "$wxUSE_LISTCTRL" = "yes"; then
20268 if test "$wxUSE_IMAGLIST" = "yes"; then
579d8138 20269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20270#define wxUSE_LISTCTRL 1
20271EOF
20272
1e6feb95 20273 USES_CONTROLS=1
10f2d63a
VZ
20274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20275 else
579d8138 20276 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20277 fi
20278fi
20279
20280if test "$wxUSE_NOTEBOOK" = "yes"; then
579d8138 20281 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20282#define wxUSE_NOTEBOOK 1
20283EOF
20284
1e6feb95 20285 USES_CONTROLS=1
10f2d63a
VZ
20286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20287fi
20288
24176f2c 20289if test "$wxUSE_PROPSHEET" = "yes"; then
579d8138 20290 cat >> confdefs.h <<\EOF
24176f2c
GD
20291#define wxUSE_PROPSHEET 1
20292EOF
20293
20294 USES_CONTROLS=1
20295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20296fi
20297
10f2d63a 20298if test "$wxUSE_RADIOBOX" = "yes"; then
579d8138 20299 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20300#define wxUSE_RADIOBOX 1
20301EOF
20302
1e6feb95 20303 USES_CONTROLS=1
10f2d63a
VZ
20304fi
20305
20306if test "$wxUSE_RADIOBTN" = "yes"; then
579d8138 20307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20308#define wxUSE_RADIOBTN 1
20309EOF
20310
1e6feb95 20311 USES_CONTROLS=1
10f2d63a
VZ
20312fi
20313
20314if test "$wxUSE_SASH" = "yes"; then
579d8138 20315 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20316#define wxUSE_SASH 1
20317EOF
20318
20319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20320fi
20321
20322if test "$wxUSE_SCROLLBAR" = "yes"; then
579d8138 20323 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20324#define wxUSE_SCROLLBAR 1
20325EOF
20326
1e6feb95 20327 USES_CONTROLS=1
741a9306 20328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20329fi
20330
20331if test "$wxUSE_SLIDER" = "yes"; then
579d8138 20332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20333#define wxUSE_SLIDER 1
20334EOF
20335
1e6feb95 20336 USES_CONTROLS=1
10f2d63a
VZ
20337fi
20338
20339if test "$wxUSE_SPINBTN" = "yes"; then
579d8138 20340 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20341#define wxUSE_SPINBTN 1
20342EOF
20343
1e6feb95 20344 USES_CONTROLS=1
10f2d63a
VZ
20345fi
20346
56cfaa52 20347if test "$wxUSE_SPINCTRL" = "yes"; then
579d8138 20348 cat >> confdefs.h <<\EOF
56cfaa52
RR
20349#define wxUSE_SPINCTRL 1
20350EOF
20351
1e6feb95 20352 USES_CONTROLS=1
56cfaa52
RR
20353fi
20354
10f2d63a 20355if test "$wxUSE_SPLITTER" = "yes"; then
579d8138 20356 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20357#define wxUSE_SPLITTER 1
20358EOF
20359
20360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20361fi
20362
20363if test "$wxUSE_STATBMP" = "yes"; then
579d8138 20364 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20365#define wxUSE_STATBMP 1
20366EOF
20367
1e6feb95 20368 USES_CONTROLS=1
10f2d63a
VZ
20369fi
20370
20371if test "$wxUSE_STATBOX" = "yes"; then
579d8138 20372 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20373#define wxUSE_STATBOX 1
20374EOF
20375
1e6feb95
VZ
20376 USES_CONTROLS=1
20377fi
20378
20379if test "$wxUSE_STATTEXT" = "yes"; then
579d8138 20380 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20381#define wxUSE_STATTEXT 1
20382EOF
20383
20384 USES_CONTROLS=1
10f2d63a
VZ
20385fi
20386
20387if test "$wxUSE_STATLINE" = "yes"; then
20388 if test "$wxUSE_WINE" = 1 ; then
579d8138 20389 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20390 else
579d8138 20391 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20392#define wxUSE_STATLINE 1
20393EOF
20394
1e6feb95 20395 USES_CONTROLS=1
10f2d63a
VZ
20396 fi
20397fi
20398
20399if test "$wxUSE_STATUSBAR" = "yes"; then
579d8138 20400 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20401#define wxUSE_STATUSBAR 1
20402EOF
20403
1e6feb95 20404 USES_CONTROLS=1
698dcdb6 20405
2286341c 20406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20407fi
20408
20409if test "$wxUSE_TABDIALOG" = "yes"; then
579d8138 20410 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20411#define wxUSE_TAB_DIALOG 1
20412EOF
20413
20414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20415fi
20416
1e6feb95 20417if test "$wxUSE_TEXTCTRL" = "yes"; then
579d8138 20418 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20419#define wxUSE_TEXTCTRL 1
20420EOF
20421
20422 USES_CONTROLS=1
20423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20424fi
20425
1db8dc4a 20426if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 20427 if test "$wxUSE_MAC" = 1; then
579d8138 20428 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20429 wxUSE_TOGGLEBTN=no
20430 fi
20431 if test "$wxUSE_UNIVERSAL" = "yes"; then
579d8138 20432 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20433 wxUSE_TOGGLEBTN=no
20434 fi
20435
20436 if test "$wxUSE_TOGGLEBTN" = "yes"; then
579d8138 20437 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20438#define wxUSE_TOGGLEBTN 1
20439EOF
20440
1e6feb95 20441 USES_CONTROLS=1
a45d7ab7 20442 fi
1db8dc4a
VZ
20443fi
20444
360d6699 20445if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
579d8138 20446 cat >> confdefs.h <<\EOF
360d6699
VZ
20447#define wxUSE_TOOLBAR_SIMPLE 1
20448EOF
20449
20450 wxUSE_TOOLBAR="yes"
1e6feb95 20451 USES_CONTROLS=1
360d6699
VZ
20452fi
20453
10f2d63a 20454if test "$wxUSE_TOOLBAR" = "yes"; then
579d8138 20455 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20456#define wxUSE_TOOLBAR 1
20457EOF
20458
1e6feb95 20459 USES_CONTROLS=1
698dcdb6 20460
360d6699
VZ
20461 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20462 wxUSE_TOOLBAR_NATIVE="yes"
20463 fi
20464
1e6feb95 20465 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
579d8138 20466 cat >> confdefs.h <<\EOF
360d6699
VZ
20467#define wxUSE_TOOLBAR_NATIVE 1
20468EOF
20469
1e6feb95
VZ
20470 USES_CONTROLS=1
20471 fi
20472
20473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20474fi
20475
10f2d63a
VZ
20476if test "$wxUSE_TOOLTIPS" = "yes"; then
20477 if test "$wxUSE_MOTIF" = 1; then
579d8138 20478 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20479 else
20480 if test "$wxUSE_WINE" = 1; then
579d8138 20481 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20482 else
69d27ff7 20483 if test "$wxUSE_UNIVERSAL" = "yes"; then
579d8138 20484 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20485 else
579d8138 20486 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20487#define wxUSE_TOOLTIPS 1
20488EOF
20489
69d27ff7 20490 fi
10f2d63a
VZ
20491 fi
20492 fi
20493fi
20494
20495if test "$wxUSE_TREECTRL" = "yes"; then
20496 if test "$wxUSE_IMAGLIST" = "yes"; then
579d8138 20497 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20498#define wxUSE_TREECTRL 1
20499EOF
20500
1e6feb95 20501 USES_CONTROLS=1
10f2d63a
VZ
20502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20503 else
579d8138 20504 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20505 fi
20506fi
20507
9f41d601 20508if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20509 if test "$wxUSE_MAC" = 1; then
579d8138 20510 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20511 else
485cf710 20512 if test "$wxUSE_MOTIF" = 1; then
579d8138 20513 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 20514 else
3c011993 20515 if test "$wxUSE_PM" = 1; then
579d8138 20516 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20517 else
579d8138 20518 cat >> confdefs.h <<\EOF
9f41d601
RR
20519#define wxUSE_POPUPWIN 1
20520EOF
20521
579d8138 20522
3c011993
VZ
20523 USES_CONTROLS=1
20524 fi
485cf710 20525 fi
6abe4b65 20526 fi
9f41d601
RR
20527fi
20528
dd964dcc 20529if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 20530 if test "$wxUSE_PM" = 1; then
579d8138 20531 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20532 else
579d8138 20533 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20534#define wxUSE_TIPWINDOW 1
20535EOF
20536
3c011993 20537 fi
dd964dcc
VZ
20538fi
20539
1e6feb95 20540if test "$USES_CONTROLS" = 1; then
579d8138 20541 cat >> confdefs.h <<\EOF
1e6feb95 20542#define wxUSE_CONTROLS 1
10f2d63a
VZ
20543EOF
20544
10f2d63a
VZ
20545fi
20546
579d8138 20547
24176f2c 20548if test "$wxUSE_TREELAYOUT" = "yes"; then
579d8138 20549 cat >> confdefs.h <<\EOF
24176f2c
GD
20550#define wxUSE_TREELAYOUT 1
20551EOF
20552
20553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20554fi
1e6feb95 20555
24fd6d87 20556if test "$wxUSE_DRAGIMAGE" = "yes"; then
579d8138 20557 cat >> confdefs.h <<\EOF
24fd6d87
VZ
20558#define wxUSE_DRAGIMAGE 1
20559EOF
20560
20561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20562fi
20563
1e6feb95 20564if test "$wxUSE_MENUS" = "yes"; then
579d8138 20565 cat >> confdefs.h <<\EOF
1e6feb95 20566#define wxUSE_MENUS 1
10f2d63a
VZ
20567EOF
20568
1e6feb95 20569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20570fi
20571
1e6feb95 20572if test "$wxUSE_METAFILE" = "yes"; then
579d8138 20573 cat >> confdefs.h <<\EOF
1e6feb95 20574#define wxUSE_METAFILE 1
10f2d63a
VZ
20575EOF
20576
10f2d63a
VZ
20577fi
20578
1e6feb95 20579if test "$wxUSE_MIMETYPE" = "yes"; then
579d8138 20580 cat >> confdefs.h <<\EOF
1e6feb95 20581#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20582EOF
20583
10f2d63a
VZ
20584fi
20585
3e44f09d 20586if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
579d8138 20587 cat >> confdefs.h <<\EOF
3e44f09d
VZ
20588#define wxUSE_SYSTEM_OPTIONS 1
20589EOF
20590
321d2b14
VZ
20591if test "$TOOLKIT" = "MSW"; then
20592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20593fi
20594
3e44f09d
VZ
20595fi
20596
4cdb0ab0 20597if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 20598 if test "$wxUSE_SOCKETS" != "yes"; then
579d8138 20599 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
20600 wxUSE_PROTOCOL=no
20601 fi
20602
20603 if test "$wxUSE_PROTOCOL" = "yes"; then
579d8138 20604 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20605#define wxUSE_PROTOCOL 1
20606EOF
20607
579d8138 20608
3954f9ca 20609 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
579d8138 20610 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20611#define wxUSE_PROTOCOL_HTTP 1
20612EOF
20613
3954f9ca
VS
20614 fi
20615 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
579d8138 20616 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20617#define wxUSE_PROTOCOL_FTP 1
20618EOF
20619
3954f9ca
VS
20620 fi
20621 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
579d8138 20622 cat >> confdefs.h <<\EOF
3954f9ca
VS
20623#define wxUSE_PROTOCOL_FILE 1
20624EOF
20625
20626 fi
4cdb0ab0 20627 fi
3954f9ca
VS
20628fi
20629
20630if test "$wxUSE_URL" = "yes"; then
20631 if test "$wxUSE_PROTOCOL" != "yes"; then
579d8138 20632 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
20633 wxUSE_URL=no
20634 fi
20635 if test "$wxUSE_URL" = "yes"; then
579d8138 20636 cat >> confdefs.h <<\EOF
3954f9ca 20637#define wxUSE_URL 1
4cdb0ab0
VS
20638EOF
20639
20640 fi
20641fi
20642
10f2d63a 20643if test "$wxUSE_MINIFRAME" = "yes"; then
579d8138 20644 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20645#define wxUSE_MINIFRAME 1
20646EOF
20647
20648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20649fi
20650
20651if test "$wxUSE_HTML" = "yes"; then
579d8138 20652 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20653#define wxUSE_HTML 1
20654EOF
20655
20656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20657fi
20658
20659if test "$wxUSE_VALIDATORS" = "yes"; then
579d8138 20660 cat >> confdefs.h <<\EOF
1e487827
VS
20661#define wxUSE_VALIDATORS 1
20662EOF
703e0a69 20663
698dcdb6
VZ
20664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20665fi
20666
edae8572 20667if test "$wxUSE_PALETTE" = "yes" ; then
579d8138 20668 cat >> confdefs.h <<\EOF
edae8572
VZ
20669#define wxUSE_PALETTE 1
20670EOF
20671
20672fi
20673
698dcdb6 20674if test "$wxUSE_IMAGE" = "yes" ; then
579d8138 20675 cat >> confdefs.h <<\EOF
698dcdb6
VZ
20676#define wxUSE_IMAGE 1
20677EOF
20678
20679fi
20680
20681if test "$wxUSE_GIF" = "yes" ; then
579d8138 20682 cat >> confdefs.h <<\EOF
698dcdb6
VZ
20683#define wxUSE_GIF 1
20684EOF
20685
20686fi
20687
20688if test "$wxUSE_PCX" = "yes" ; then
579d8138 20689 cat >> confdefs.h <<\EOF
698dcdb6
VZ
20690#define wxUSE_PCX 1
20691EOF
20692
20693fi
20694
4b6b4dfc 20695if test "$wxUSE_IFF" = "yes" ; then
579d8138 20696 cat >> confdefs.h <<\EOF
4b6b4dfc
RR
20697#define wxUSE_IFF 1
20698EOF
20699
20700fi
20701
698dcdb6 20702if test "$wxUSE_PNM" = "yes" ; then
579d8138 20703 cat >> confdefs.h <<\EOF
698dcdb6
VZ
20704#define wxUSE_PNM 1
20705EOF
20706
20707fi
20708
20709if test "$wxUSE_XPM" = "yes" ; then
579d8138 20710 cat >> confdefs.h <<\EOF
698dcdb6
VZ
20711#define wxUSE_XPM 1
20712EOF
20713
20714fi
20715
658974ae 20716if test "$wxUSE_ICO_CUR" = "yes" ; then
579d8138 20717 cat >> confdefs.h <<\EOF
658974ae
VS
20718#define wxUSE_ICO_CUR 1
20719EOF
20720
20721fi
20722
a72a4bfa
VS
20723if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20724 LIBS=" -lunicows $LIBS"
20725fi
20726
579d8138 20727
1e6feb95 20728if test "$wxUSE_CHOICEDLG" = "yes"; then
579d8138 20729 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20730#define wxUSE_CHOICEDLG 1
20731EOF
20732
20733fi
20734
20735if test "$wxUSE_COLOURDLG" = "yes"; then
579d8138 20736 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20737#define wxUSE_COLOURDLG 1
20738EOF
20739
20740fi
20741
20742if test "$wxUSE_FILEDLG" = "yes"; then
579d8138 20743 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20744#define wxUSE_FILEDLG 1
20745EOF
20746
20747fi
20748
8db37e06 20749if test "$wxUSE_FINDREPLDLG" = "yes"; then
579d8138 20750 cat >> confdefs.h <<\EOF
8db37e06
VZ
20751#define wxUSE_FINDREPLDLG 1
20752EOF
20753
20754fi
20755
1e6feb95 20756if test "$wxUSE_FONTDLG" = "yes"; then
579d8138 20757 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20758#define wxUSE_FONTDLG 1
20759EOF
20760
20761fi
20762
20763if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 20764 if test "$wxUSE_TREECTRL" != "yes"; then
579d8138 20765 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20766 else
579d8138 20767 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20768#define wxUSE_DIRDLG 1
20769EOF
20770
1e6feb95
VZ
20771 fi
20772fi
20773
20774if test "$wxUSE_MSGDLG" = "yes"; then
579d8138 20775 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20776#define wxUSE_MSGDLG 1
20777EOF
20778
20779fi
20780
20781if test "$wxUSE_NUMBERDLG" = "yes"; then
579d8138 20782 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20783#define wxUSE_NUMBERDLG 1
20784EOF
20785
20786fi
20787
20788if test "$wxUSE_PROGRESSDLG" = "yes"; then
20789 if test "$wxUSE_CONSTRAINTS" != "yes"; then
579d8138 20790 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 20791 else
579d8138 20792 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20793#define wxUSE_PROGRESSDLG 1
20794EOF
20795
20796 fi
20797fi
20798
cbca9943 20799if test "$wxUSE_SPLASH" = "yes"; then
579d8138 20800 cat >> confdefs.h <<\EOF
cbca9943
VZ
20801#define wxUSE_SPLASH 1
20802EOF
20803
20804fi
20805
1e6feb95
VZ
20806if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20807 if test "$wxUSE_CONSTRAINTS" != "yes"; then
579d8138 20808 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 20809 else
579d8138 20810 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20811#define wxUSE_STARTUP_TIPS 1
20812EOF
20813
20814 fi
20815fi
20816
579d8138
VS
20817if test "$wxUSE_TEXTDLG" = "yes"; then
20818 cat >> confdefs.h <<\EOF
20819#define wxUSE_TEXTDLG 1
20820EOF
20821
20822fi
20823
20824if test "$wxUSE_WIZARDDLG" = "yes"; then
20825 cat >> confdefs.h <<\EOF
20826#define wxUSE_WIZARDDLG 1
20827EOF
20828
20829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20830fi
20831
20832
20833if test "$cross_compiling" = "yes"; then
20834 OSINFO="\"$host\""
20835else
20836 OSINFO=`uname -s -r -m`
20837 OSINFO="\"$OSINFO\""
20838fi
20839
20840cat >> confdefs.h <<EOF
20841#define WXWIN_OS_DESCRIPTION $OSINFO
20842EOF
20843
20844
20845
20846if test "x$prefix" != "xNONE"; then
20847 wxPREFIX=$prefix
20848else
20849 wxPREFIX=$ac_default_prefix
20850fi
20851
20852cat >> confdefs.h <<EOF
20853#define wxINSTALL_PREFIX "$wxPREFIX"
20854EOF
20855
20856
20857
20858
20859
20860if test "$wxUSE_MAC" = 1 ; then
20861 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20862fi
20863
20864
20865LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20866
20867if test "$wxUSE_GUI" = "yes"; then
20868
20869 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20870
20871
20872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20873 drawing dynamic erase event exec font image \
20874 minimal richedit rotate widgets"
20875
20876 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20877else
20878 SAMPLES_SUBDIRS="console"
20879fi
20880
20881
20882INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20883-I\${top_srcdir}/include \
20884$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20885$TOOLKIT_INCLUDE"
20886
20887if test "$wxUSE_GTK" = 1; then
20888 WXCONFIG_INCLUDE=
20889else
20890 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20891fi
20892
20893if test "$GXX" = yes ; then
20894 CXXWARNINGS="-Wall"
20895
20896 if test "$wxUSE_NO_DEPS" = "no" ; then
20897 CFLAGS="-MMD $CFLAGS"
20898 CXXFLAGS="-MMD $CXXFLAGS"
20899 fi
20900fi
20901
20902EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20903
20904CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20905CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20906LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20907
20908LDFLAGS="$LDFLAGS $PROFILE"
20909
20910SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
2f51a9ec
GD
20979
20980
20981
20982
f6bcfd97 20983
dad6c0ea 20984
caa2c79b 20985
3711412e 20986
1e6feb95
VZ
20987
20988
885d4bf5
VS
20989
20990
20991
20992
9b695262
VZ
20993
20994
62d0491b 20995
ef7f2189 20996
40f7145c 20997
3bd8fb5f 20998
10f2d63a
VZ
20999
21000
579d8138 21001echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b13cd66e 21002echo "configure:21003: checking whether ${MAKE-make} sets \${MAKE}" >&5
579d8138
VS
21003set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
21004if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
21005 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 21006else
579d8138 21007 cat > conftestmake <<\EOF
10f2d63a
VZ
21008all:
21009 @echo 'ac_maketemp="${MAKE}"'
21010EOF
21011# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
579d8138 21012eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
21013if test -n "$ac_maketemp"; then
21014 eval ac_cv_prog_make_${ac_make}_set=yes
21015else
21016 eval ac_cv_prog_make_${ac_make}_set=no
21017fi
579d8138 21018rm -f conftestmake
10f2d63a
VZ
21019fi
21020if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
579d8138 21021 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
21022 SET_MAKE=
21023else
579d8138 21024 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21025 SET_MAKE="MAKE=${MAKE-make}"
21026fi
21027
579d8138 21028
3a922bb4
RL
21029if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21030 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 21031fi
665bbe97 21032
579d8138 21033
10f2d63a 21034
57973b9c
VZ
21035wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21036wx_cv_if_gnu_make=$IF_GNU_MAKE
21037wx_cv_path_ifs=$PATH_IFS
21038wx_cv_program_ext=$PROGRAM_EXT
21039wx_cv_target_library=$WX_TARGET_LIBRARY
21040wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21041wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21042export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21043 wx_cv_path_ifs wx_cv_program_ext \
21044 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21045
579d8138
VS
21046subdirs="demos samples utils contrib"
21047
10f2d63a 21048
579d8138
VS
21049trap '' 1 2 15
21050cat > confcache <<\EOF
10f2d63a
VZ
21051# This file is a shell script that caches the results of configure
21052# tests run on this system so they can be shared between configure
579d8138
VS
21053# scripts and configure runs. It is not useful on other systems.
21054# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 21055#
579d8138
VS
21056# By default, configure uses ./config.cache as the cache file,
21057# creating it if it does not exist already. You can give configure
21058# the --cache-file=FILE option to use a different cache file; that is
21059# what configure does when it calls configure scripts in
21060# subdirectories, so they share the cache.
21061# Giving --cache-file=/dev/null disables caching, for debugging configure.
21062# config.status only pays attention to the cache file if you give it the
21063# --recheck option to rerun configure.
10f2d63a 21064#
579d8138 21065EOF
10f2d63a
VZ
21066# The following way of writing the cache mishandles newlines in values,
21067# but we know of no workaround that is simple, portable, and efficient.
21068# So, don't put newlines in cache variables' values.
21069# Ultrix sh set writes to stderr and can't be redirected directly,
21070# and sets the high bit in the cache file unless we assign to the vars.
579d8138 21071(set) 2>&1 |
f09359cf 21072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
579d8138
VS
21073 *ac_space=\ *)
21074 # `set' does not quote correctly, so add quotes (double-quote substitution
21075 # turns \\\\ into \\, and sed turns \\ into \).
21076 sed -n \
21077 -e "s/'/'\\\\''/g" \
21078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21079 ;;
21080 *)
21081 # `set' quotes correctly as required by POSIX, so do not add quotes.
21082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21083 ;;
21084 esac >> confcache
21085if cmp -s $cache_file confcache; then
21086 :
21087else
10f2d63a 21088 if test -w $cache_file; then
579d8138
VS
21089 echo "updating cache $cache_file"
21090 cat confcache > $cache_file
10f2d63a
VZ
21091 else
21092 echo "not updating unwritable cache $cache_file"
21093 fi
21094fi
21095rm -f confcache
21096
579d8138
VS
21097trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21098
10f2d63a
VZ
21099test "x$prefix" = xNONE && prefix=$ac_default_prefix
21100# Let make expand exec_prefix.
21101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21102
579d8138
VS
21103# Any assignment to VPATH causes Sun make to only execute
21104# the first set of double-colon rules, so remove it if not needed.
21105# If there is a colon in the path, we need to keep it.
10f2d63a 21106if test "x$srcdir" = x.; then
579d8138 21107 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
21108fi
21109
579d8138
VS
21110trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21111
10f2d63a
VZ
21112DEFS=-DHAVE_CONFIG_H
21113
579d8138 21114# Without the "./", some shells look in PATH for config.status.
10f2d63a 21115: ${CONFIG_STATUS=./config.status}
579d8138
VS
21116
21117echo creating $CONFIG_STATUS
21118rm -f $CONFIG_STATUS
21119cat > $CONFIG_STATUS <<EOF
21120#! /bin/sh
10f2d63a
VZ
21121# Generated automatically by configure.
21122# Run this file to recreate the current configuration.
579d8138
VS
21123# This directory was configured as follows,
21124# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
328a083c 21125#
579d8138 21126# $0 $ac_configure_args
328a083c 21127#
579d8138
VS
21128# Compiler output produced by configure, useful for debugging
21129# configure, is in ./config.log if it exists.
698dcdb6 21130
579d8138
VS
21131ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21132for ac_option
328a083c 21133do
579d8138
VS
21134 case "\$ac_option" in
21135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21136 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21137 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21138 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
f09359cf 21139 echo "$CONFIG_STATUS generated by autoconf version 2.13"
579d8138
VS
21140 exit 0 ;;
21141 -help | --help | --hel | --he | --h)
21142 echo "\$ac_cs_usage"; exit 0 ;;
21143 *) echo "\$ac_cs_usage"; exit 1 ;;
328a083c 21144 esac
698dcdb6 21145done
328a083c 21146
579d8138
VS
21147ac_given_srcdir=$srcdir
21148ac_given_INSTALL="$INSTALL"
328a083c 21149
579d8138
VS
21150trap 'rm -fr `echo "
21151 wx-config
21152 src/make.env
21153 src/makeprog.env
21154 src/makelib.env
21155 Makefile
21156 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
328a083c 21157EOF
579d8138 21158cat >> $CONFIG_STATUS <<EOF
328a083c 21159
579d8138
VS
21160# Protect against being on the right side of a sed subst in config.status.
21161sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21162 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21163$ac_vpsub
21164$extrasub
f09359cf 21165s%@SHELL@%$SHELL%g
579d8138
VS
21166s%@CFLAGS@%$CFLAGS%g
21167s%@CPPFLAGS@%$CPPFLAGS%g
21168s%@CXXFLAGS@%$CXXFLAGS%g
f09359cf 21169s%@FFLAGS@%$FFLAGS%g
579d8138
VS
21170s%@DEFS@%$DEFS%g
21171s%@LDFLAGS@%$LDFLAGS%g
21172s%@LIBS@%$LIBS%g
21173s%@exec_prefix@%$exec_prefix%g
21174s%@prefix@%$prefix%g
21175s%@program_transform_name@%$program_transform_name%g
21176s%@bindir@%$bindir%g
21177s%@sbindir@%$sbindir%g
21178s%@libexecdir@%$libexecdir%g
21179s%@datadir@%$datadir%g
21180s%@sysconfdir@%$sysconfdir%g
21181s%@sharedstatedir@%$sharedstatedir%g
21182s%@localstatedir@%$localstatedir%g
21183s%@libdir@%$libdir%g
21184s%@includedir@%$includedir%g
21185s%@oldincludedir@%$oldincludedir%g
21186s%@infodir@%$infodir%g
21187s%@mandir@%$mandir%g
21188s%@host@%$host%g
21189s%@host_alias@%$host_alias%g
21190s%@host_cpu@%$host_cpu%g
21191s%@host_vendor@%$host_vendor%g
21192s%@host_os@%$host_os%g
21193s%@target@%$target%g
21194s%@target_alias@%$target_alias%g
21195s%@target_cpu@%$target_cpu%g
21196s%@target_vendor@%$target_vendor%g
21197s%@target_os@%$target_os%g
21198s%@build@%$build%g
21199s%@build_alias@%$build_alias%g
21200s%@build_cpu@%$build_cpu%g
21201s%@build_vendor@%$build_vendor%g
21202s%@build_os@%$build_os%g
21203s%@CC@%$CC%g
21204s%@CPP@%$CPP%g
21205s%@CXX@%$CXX%g
21206s%@RANLIB@%$RANLIB%g
21207s%@AR@%$AR%g
21208s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
f09359cf 21209s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
579d8138
VS
21210s%@INSTALL_DATA@%$INSTALL_DATA%g
21211s%@STRIP@%$STRIP%g
21212s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21213s%@YACC@%$YACC%g
21214s%@LEX@%$LEX%g
21215s%@LEXLIB@%$LEXLIB%g
21216s%@LN_S@%$LN_S%g
21217s%@CXXCPP@%$CXXCPP%g
21218s%@PKG_CONFIG@%$PKG_CONFIG%g
21219s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21220s%@GTK_LIBS@%$GTK_LIBS%g
f09359cf 21221s%@GTK_CONFIG@%$GTK_CONFIG%g
579d8138
VS
21222s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21223s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
579d8138
VS
21224s%@X_CFLAGS@%$X_CFLAGS%g
21225s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21226s%@X_LIBS@%$X_LIBS%g
21227s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21228s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21229s%@RESCOMP@%$RESCOMP%g
21230s%@DEREZ@%$DEREZ%g
21231s%@LIBICONV@%$LIBICONV%g
21232s%@LEX_STEM@%$LEX_STEM%g
21233s%@PATH_IFS@%$PATH_IFS%g
21234s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21235s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21236s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21237s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21238s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21239s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21240s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21241s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21242s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21243s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21244s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21245s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21246s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21247s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21248s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21249s%@WX_ALL@%$WX_ALL%g
21250s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21251s%@SHARED_LD@%$SHARED_LD%g
21252s%@PIC_FLAG@%$PIC_FLAG%g
21253s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21254s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21255s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21256s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21257s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21258s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21259s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21260s%@USE_GUI@%$USE_GUI%g
21261s%@AFMINSTALL@%$AFMINSTALL%g
21262s%@TOOLKIT@%$TOOLKIT%g
21263s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21264s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21265s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21266s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21267s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21268s%@cross_compiling@%$cross_compiling%g
21269s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21270s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21271s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21272s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21273s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21274s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21275s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21276s%@ALL_HEADERS@%$ALL_HEADERS%g
21277s%@ALL_SOURCES@%$ALL_SOURCES%g
21278s%@GUIDIST@%$GUIDIST%g
21279s%@PORT_FILES@%$PORT_FILES%g
21280s%@DISTDIR@%$DISTDIR%g
21281s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21282s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21283s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21284s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21285s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21286s%@EXTRADEFS@%$EXTRADEFS%g
21287s%@RESFLAGS@%$RESFLAGS%g
21288s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21289s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21290s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21291s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21292s%@LIBWXMACRES@%$LIBWXMACRES%g
21293s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21294s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21295s%@DLLTOOL@%$DLLTOOL%g
21296s%@AS@%$AS%g
21297s%@NM@%$NM%g
21298s%@LD@%$LD%g
21299s%@MAKEINFO@%$MAKEINFO%g
21300s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21301s%@SET_MAKE@%$SET_MAKE%g
21302s%@subdirs@%$subdirs%g
328a083c 21303
328a083c 21304CEOF
698dcdb6 21305EOF
10f2d63a 21306
579d8138
VS
21307cat >> $CONFIG_STATUS <<\EOF
21308
21309# Split the substitutions into bite-sized pieces for seds with
21310# small command number limits, like on Digital OSF/1 and HP-UX.
21311ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21312ac_file=1 # Number of current file.
21313ac_beg=1 # First line for current file.
21314ac_end=$ac_max_sed_cmds # Line after last line for current file.
21315ac_more_lines=:
21316ac_sed_cmds=""
21317while $ac_more_lines; do
21318 if test $ac_beg -gt 1; then
21319 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21320 else
21321 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21322 fi
21323 if test ! -s conftest.s$ac_file; then
21324 ac_more_lines=false
21325 rm -f conftest.s$ac_file
21326 else
21327 if test -z "$ac_sed_cmds"; then
21328 ac_sed_cmds="sed -f conftest.s$ac_file"
328a083c 21329 else
579d8138 21330 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
328a083c 21331 fi
579d8138
VS
21332 ac_file=`expr $ac_file + 1`
21333 ac_beg=$ac_end
21334 ac_end=`expr $ac_end + $ac_max_sed_cmds`
328a083c 21335 fi
579d8138
VS
21336done
21337if test -z "$ac_sed_cmds"; then
21338 ac_sed_cmds=cat
21339fi
21340EOF
21341
21342cat >> $CONFIG_STATUS <<EOF
698dcdb6 21343
579d8138
VS
21344CONFIG_FILES=\${CONFIG_FILES-"wx-config
21345 src/make.env
21346 src/makeprog.env
21347 src/makelib.env
21348 Makefile
21349 "}
10f2d63a 21350EOF
579d8138
VS
21351cat >> $CONFIG_STATUS <<\EOF
21352for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 21353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
579d8138
VS
21354 case "$ac_file" in
21355 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21356 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21357 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21358 esac
21359
579d8138 21360 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
328a083c 21361
579d8138
VS
21362 # Remove last slash and all that follows it. Not all systems have dirname.
21363 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21364 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21365 # The file is in a subdirectory.
21366 test ! -d "$ac_dir" && mkdir "$ac_dir"
21367 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 21368 # A "../" for each directory in $ac_dir_suffix.
579d8138 21369 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
21370 else
21371 ac_dir_suffix= ac_dots=
21372 fi
21373
579d8138
VS
21374 case "$ac_given_srcdir" in
21375 .) srcdir=.
21376 if test -z "$ac_dots"; then top_srcdir=.
21377 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21378 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21379 *) # Relative path.
579d8138
VS
21380 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21381 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21382 esac
21383
579d8138
VS
21384 case "$ac_given_INSTALL" in
21385 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21386 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21387 esac
21388
579d8138
VS
21389 echo creating "$ac_file"
21390 rm -f "$ac_file"
21391 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21392 case "$ac_file" in
21393 *Makefile*) ac_comsub="1i\\
21394# $configure_input" ;;
21395 *) ac_comsub= ;;
21396 esac
10f2d63a 21397
579d8138
VS
21398 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21399 sed -e "$ac_comsub
21400s%@configure_input@%$configure_input%g
21401s%@srcdir@%$srcdir%g
21402s%@top_srcdir@%$top_srcdir%g
21403s%@INSTALL@%$INSTALL%g
21404" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21405fi; done
21406rm -f conftest.s*
10f2d63a
VZ
21407
21408# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21409# NAME is the cpp macro being defined and VALUE is the value it is being given.
21410#
21411# ac_d sets the value in "#define NAME VALUE" lines.
579d8138
VS
21412ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21413ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21414ac_dC='\3'
21415ac_dD='%g'
21416# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21417ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21418ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21419ac_uC=' '
579d8138
VS
21420ac_uD='\4%g'
21421# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21422ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21423ac_eB='$%\1#\2define\3'
21424ac_eC=' '
21425ac_eD='%g'
10f2d63a 21426
579d8138
VS
21427if test "${CONFIG_HEADERS+set}" != set; then
21428EOF
21429cat >> $CONFIG_STATUS <<EOF
21430 CONFIG_HEADERS="setup.h:setup.h.in"
21431EOF
21432cat >> $CONFIG_STATUS <<\EOF
21433fi
21434for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21435 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
579d8138
VS
21436 case "$ac_file" in
21437 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21438 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21439 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21440 esac
21441
579d8138
VS
21442 echo creating $ac_file
21443
21444 rm -f conftest.frag conftest.in conftest.out
21445 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21446 cat $ac_file_inputs > conftest.in
21447
21448EOF
21449
21450# Transform confdefs.h into a sed script conftest.vals that substitutes
21451# the proper values into config.h.in to produce config.h. And first:
21452# Protect against being on the right side of a sed subst in config.status.
21453# Protect against being in an unquoted here document in config.status.
21454rm -f conftest.vals
21455cat > conftest.hdr <<\EOF
21456s/[\\&%]/\\&/g
21457s%[\\$`]%\\&%g
21458s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21459s%ac_d%ac_u%gp
21460s%ac_u%ac_e%gp
21461EOF
21462sed -n -f conftest.hdr confdefs.h > conftest.vals
21463rm -f conftest.hdr
10f2d63a
VZ
21464
21465# This sed command replaces #undef with comments. This is necessary, for
21466# example, in the case of _POSIX_SOURCE, which is predefined and required
21467# on some systems where configure will not decide to define it.
579d8138
VS
21468cat >> conftest.vals <<\EOF
21469s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21470EOF
21471
579d8138
VS
21472# Break up conftest.vals because some shells have a limit on
21473# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21474
21475rm -f conftest.tail
579d8138 21476while :
10f2d63a 21477do
579d8138
VS
21478 ac_lines=`grep -c . conftest.vals`
21479 # grep -c gives empty output for an empty file on some AIX systems.
21480 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21481 # Write a limited-size here document to conftest.frag.
21482 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21483 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21484 echo 'CEOF
579d8138
VS
21485 sed -f conftest.frag conftest.in > conftest.out
21486 rm -f conftest.in
21487 mv conftest.out conftest.in
21488' >> $CONFIG_STATUS
21489 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21490 rm -f conftest.vals
21491 mv conftest.tail conftest.vals
10f2d63a 21492done
579d8138
VS
21493rm -f conftest.vals
21494
21495cat >> $CONFIG_STATUS <<\EOF
21496 rm -f conftest.frag conftest.h
21497 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21498 cat conftest.in >> conftest.h
21499 rm -f conftest.in
21500 if cmp -s $ac_file conftest.h 2>/dev/null; then
21501 echo "$ac_file is unchanged"
21502 rm -f conftest.h
10f2d63a 21503 else
579d8138
VS
21504 # Remove last slash and all that follows it. Not all systems have dirname.
21505 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21506 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
579d8138
VS
21507 # The file is in a subdirectory.
21508 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21509 fi
579d8138
VS
21510 rm -f $ac_file
21511 mv conftest.h $ac_file
10f2d63a 21512 fi
579d8138
VS
21513fi; done
21514
10f2d63a 21515EOF
579d8138 21516cat >> $CONFIG_STATUS <<EOF
10f2d63a 21517
579d8138
VS
21518 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21519 LN_S="${LN_S}"
21520
21521
21522EOF
21523cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21524
652d930d 21525 if test ! -h wx-config; then
991a5759 21526 chmod +x wx-config
3a922bb4
RL
21527 mv wx-config wx${TOOLCHAIN_NAME}-config
21528 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21529 fi
665bbe97 21530
00cf1208
RR
21531 if test ! -d lib; then
21532 mkdir lib
21533 fi
21534 if test ! -d lib/wx; then
21535 mkdir lib/wx
21536 fi
21537 if test ! -d lib/wx/include; then
21538 mkdir lib/wx/include
21539 fi
3a922bb4
RL
21540 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21541 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21542 fi
3a922bb4
RL
21543 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21544 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21545 fi
21546 if test -f setup.h; then
3a922bb4 21547 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21548 fi
579d8138
VS
21549
21550exit 0
10f2d63a
VZ
21551EOF
21552chmod +x $CONFIG_STATUS
579d8138
VS
21553rm -fr confdefs* $ac_clean_files
21554test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21555
2224580a
VZ
21556if test "$no_recursion" != yes; then
21557
21558 # Remove --cache-file and --srcdir arguments so they do not pile up.
21559 ac_sub_configure_args=
21560 ac_prev=
21561 for ac_arg in $ac_configure_args; do
21562 if test -n "$ac_prev"; then
21563 ac_prev=
21564 continue
21565 fi
579d8138 21566 case "$ac_arg" in
2224580a
VZ
21567 -cache-file | --cache-file | --cache-fil | --cache-fi \
21568 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21569 ac_prev=cache_file ;;
21570 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
579d8138 21571 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21572 ;;
21573 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21574 ac_prev=srcdir ;;
21575 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21576 ;;
21577 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21578 esac
21579 done
21580
579d8138 21581 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21582
21583 # Do not complain, so a configure script can configure whichever
21584 # parts of a large source tree are present.
579d8138
VS
21585 if test ! -d $srcdir/$ac_config_dir; then
21586 continue
21587 fi
21588
21589 echo configuring in $ac_config_dir
2224580a 21590
579d8138 21591 case "$srcdir" in
2224580a
VZ
21592 .) ;;
21593 *)
579d8138
VS
21594 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21595 else
21596 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21597 fi
21598 ;;
2224580a
VZ
21599 esac
21600
21601 ac_popdir=`pwd`
579d8138 21602 cd $ac_config_dir
2224580a 21603
579d8138
VS
21604 # A "../" for each directory in /$ac_config_dir.
21605 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21606
579d8138 21607 case "$srcdir" in
2224580a
VZ
21608 .) # No --srcdir option. We are building in place.
21609 ac_sub_srcdir=$srcdir ;;
579d8138
VS
21610 /*) # Absolute path.
21611 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21612 *) # Relative path.
579d8138 21613 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21614 esac
21615
21616 # Check for guested configure; otherwise get Cygnus style configure.
579d8138
VS
21617 if test -f $ac_sub_srcdir/configure; then
21618 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21619 elif test -f $ac_sub_srcdir/configure.in; then
21620 ac_sub_configure=$ac_configure
21621 else
579d8138 21622 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21623 ac_sub_configure=
21624 fi
21625
21626 # The recursion is here.
21627 if test -n "$ac_sub_configure"; then
579d8138 21628
2224580a 21629 # Make the cache file name correct relative to the subdirectory.
579d8138
VS
21630 case "$cache_file" in
21631 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21632 *) # Relative path.
579d8138 21633 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21634 esac
579d8138
VS
21635 case "$ac_given_INSTALL" in
21636 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21637 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21638 esac
2224580a 21639
579d8138 21640 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21641 # The eval makes quoting arguments work.
579d8138
VS
21642 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21643 then :
21644 else
21645 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21646 fi
2224580a
VZ
21647 fi
21648
21649 cd $ac_popdir
21650 done
21651fi
21652
579d8138 21653