]> git.saurik.com Git - wxWidgets.git/blame - configure
Solved problems with handling of LOST events on Unix platforms (reported
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
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.
75# Generated automatically using autoconf version 2.13
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
b2fee376 136 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
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"
3bce6687
JS
177ac_help="$ac_help
178 --enable-ole use OLE classes"
179ac_help="$ac_help
180 --enable-dataobj use data object classes"
a0b9e27f
MB
181ac_help="$ac_help
182 --enable-ipc use interprocess communication (wxSocket etc.)"
183ac_help="$ac_help
184 --enable-cmdline use wxCmdLineParser class"
185ac_help="$ac_help
186 --enable-datetime use wxDateTime class"
187ac_help="$ac_help
188 --enable-timedate use obsolete wxDate/wxTime classes"
189ac_help="$ac_help
190 --enable-stopwatch use wxStopWatch class"
191ac_help="$ac_help
192 --enable-dialupman use dialup network classes"
193ac_help="$ac_help
194 --enable-apple_ieee use the Apple IEEE codec"
195ac_help="$ac_help
196 --enable-timer use wxTimer class"
197ac_help="$ac_help
198 --enable-wave use wxWave class"
199ac_help="$ac_help
200 --enable-fraction use wxFraction class"
201ac_help="$ac_help
202 --enable-dynlib use wxLibrary class for DLL loading"
203ac_help="$ac_help
204 --enable-dynamicloader use (new) wxDynamicLibrary class"
205ac_help="$ac_help
206 --enable-longlong use wxLongLong class"
207ac_help="$ac_help
208 --enable-geometry use geometry class"
209ac_help="$ac_help
210 --enable-log use logging system"
211ac_help="$ac_help
212 --enable-streams use wxStream etc classes"
213ac_help="$ac_help
214 --enable-file use wxFile classes"
215ac_help="$ac_help
216 --enable-ffile use wxFFile classes"
217ac_help="$ac_help
218 --enable-textbuf use wxTextBuffer class"
219ac_help="$ac_help
220 --enable-textfile use wxTextFile class"
221ac_help="$ac_help
222 --enable-fontmap use font encodings conversion classes"
223ac_help="$ac_help
224 --enable-unicode compile wxString with Unicode support"
225ac_help="$ac_help
226 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
227ac_help="$ac_help
228 --enable-wxprintfv use wxWindows implementation of vprintf()"
229ac_help="$ac_help
230 --enable-std_iostreams use standard C++ stream classes"
231ac_help="$ac_help
232 --enable-filesystem use virtual file systems classes"
233ac_help="$ac_help
234 --enable-fs_inet use virtual HTTP/FTP filesystems"
235ac_help="$ac_help
236 --enable-fs_zip use virtual ZIP filesystems"
237ac_help="$ac_help
238 --enable-zipstream use wxZipInputStream"
239ac_help="$ac_help
240 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
241ac_help="$ac_help
242 --enable-snglinst use wxSingleInstanceChecker class"
243ac_help="$ac_help
244 --enable-mimetype use wxMimeTypesManager"
245ac_help="$ac_help
246 --enable-sysoptions use wxSystemOptions"
247ac_help="$ac_help
248 --enable-url use wxURL class"
249ac_help="$ac_help
250 --enable-protocol use wxProtocol class"
251ac_help="$ac_help
252 --enable-protocol-http HTTP support in wxProtocol"
253ac_help="$ac_help
254 --enable-protocol-ftp FTP support in wxProtocol"
255ac_help="$ac_help
256 --enable-protocol-file FILE support in wxProtocol"
257ac_help="$ac_help
258 --enable-threads use threads"
259ac_help="$ac_help
260 --enable-docview use document view architecture"
261ac_help="$ac_help
262 --enable-help use help subsystem"
263ac_help="$ac_help
264 --enable-mshtmlhelp use MS HTML Help (win32)"
265ac_help="$ac_help
266 --enable-html use wxHTML sub-library"
267ac_help="$ac_help
268 --enable-htmlhelp use wxHTML-based help"
269ac_help="$ac_help
270 --enable-constraints use layout-constraints system"
271ac_help="$ac_help
272 --enable-printarch use printing architecture"
273ac_help="$ac_help
274 --enable-mdi use multiple document interface architecture"
275ac_help="$ac_help
276 --enable-loggui use standard GUI logger"
277ac_help="$ac_help
278 --enable-logwin use wxLogWindow"
279ac_help="$ac_help
280 --enable-logdialog use wxLogDialog"
281ac_help="$ac_help
282 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
283ac_help="$ac_help
284 --enable-prologio use Prolog IO library"
285ac_help="$ac_help
286 --enable-resources use wxWindows resources"
287ac_help="$ac_help
288 --enable-xresources use X resources for save (default for gtk+)"
289ac_help="$ac_help
290 --enable-clipboard use wxClipboard classes"
291ac_help="$ac_help
292 --enable-dnd use Drag'n'Drop classes"
293ac_help="$ac_help
294 --enable-metafile use win32 metafiles"
295ac_help="$ac_help
296 --enable-treelayout use wxTreeLayout classes"
297ac_help="$ac_help
298 --enable-controls use all usual controls"
299ac_help="$ac_help
300 --enable-accel use accelerators"
301ac_help="$ac_help
302 --enable-button use wxButton class"
303ac_help="$ac_help
304 --enable-bmpbutton use wxBitmapButton class"
305ac_help="$ac_help
306 --enable-calendar use wxCalendarCtrl class"
307ac_help="$ac_help
308 --enable-caret use wxCaret class"
309ac_help="$ac_help
310 --enable-checkbox use wxCheckBox class"
311ac_help="$ac_help
312 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
313ac_help="$ac_help
314 --enable-choice use wxChoice class"
315ac_help="$ac_help
316 --enable-combobox use wxComboBox classes"
317ac_help="$ac_help
318 --enable-gauge use wxGauge class"
319ac_help="$ac_help
320 --enable-grid use wxGrid class"
321ac_help="$ac_help
322 --enable-newgrid use new wxGrid class"
323ac_help="$ac_help
324 --enable-imaglist use wxImageList class"
325ac_help="$ac_help
326 --enable-listbox use wxListBox class"
327ac_help="$ac_help
328 --enable-listctrl use wxListCtrl class"
329ac_help="$ac_help
330 --enable-notebook use wxNotebook class"
331ac_help="$ac_help
332 --enable-propsheet use wxPropertySheet class"
333ac_help="$ac_help
334 --enable-radiobox use wxRadioBox class"
335ac_help="$ac_help
336 --enable-radiobtn use wxRadioButton class"
337ac_help="$ac_help
338 --enable-sash use wxSashWindow class"
339ac_help="$ac_help
340 --enable-scrollbar use wxScrollBar class and scrollable windows"
341ac_help="$ac_help
342 --enable-slider use wxSlider class"
343ac_help="$ac_help
344 --enable-spinbtn use wxSpinButton class"
345ac_help="$ac_help
346 --enable-spinctrl use wxSpinCtrl class"
347ac_help="$ac_help
348 --enable-splitter use wxSplitterWindow class"
349ac_help="$ac_help
350 --enable-statbmp use wxStaticBitmap class"
351ac_help="$ac_help
352 --enable-statbox use wxStaticBox class"
353ac_help="$ac_help
354 --enable-statline use wxStaticLine class"
355ac_help="$ac_help
356 --enable-stattext use wxStaticText class"
357ac_help="$ac_help
358 --enable-statusbar use wxStatusBar class"
359ac_help="$ac_help
360 --enable-tabdialog use wxTabControl class"
361ac_help="$ac_help
362 --enable-textctrl use wxTextCtrl class"
363ac_help="$ac_help
364 --enable-togglebtn use wxToggleButton class"
365ac_help="$ac_help
366 --enable-toolbar use wxToolBar class"
367ac_help="$ac_help
368 --enable-tbarnative use native wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarsmpl use wxToolBarSimple class"
371ac_help="$ac_help
372 --enable-treectrl use wxTreeCtrl class"
373ac_help="$ac_help
374 --enable-tipwindow use wxTipWindow class"
375ac_help="$ac_help
376 --enable-popupwin use wxPopUpWindow class"
377ac_help="$ac_help
378 --enable-commondlg use all common dialogs"
379ac_help="$ac_help
380 --enable-choicedlg use wxChoiceDialog"
381ac_help="$ac_help
382 --enable-coldlg use wxColourDialog"
383ac_help="$ac_help
384 --enable-filedlg use wxFileDialog"
385ac_help="$ac_help
386 --enable-finddlg use wxFindReplaceDialog"
387ac_help="$ac_help
388 --enable-fontdlg use wxFontDialog"
389ac_help="$ac_help
390 --enable-dirdlg use wxDirDialog"
391ac_help="$ac_help
392 --enable-msgdlg use wxMessageDialog"
393ac_help="$ac_help
394 --enable-numberdlg use wxNumberEntryDialog"
395ac_help="$ac_help
396 --enable-splash use wxSplashScreen"
397ac_help="$ac_help
398 --enable-textdlg use wxTextDialog"
399ac_help="$ac_help
400 --enable-tipdlg use startup tips"
401ac_help="$ac_help
402 --enable-progressdlg use wxProgressDialog"
403ac_help="$ac_help
404 --enable-wizarddlg use wxWizard"
405ac_help="$ac_help
406 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
407ac_help="$ac_help
408 --enable-miniframe use wxMiniFrame class"
409ac_help="$ac_help
410 --enable-tooltips use wxToolTip class"
411ac_help="$ac_help
412 --enable-splines use spline drawing code"
413ac_help="$ac_help
414 --enable-validators use wxValidator and derived classes"
415ac_help="$ac_help
416 --enable-busyinfo use wxBusyInfo"
417ac_help="$ac_help
418 --enable-joystick use wxJoystick (Linux only)"
419ac_help="$ac_help
420 --enable-metafiles use wxMetaFile (Windows only)"
421ac_help="$ac_help
422 --enable-dragimage use wxDragImage"
423ac_help="$ac_help
424 --enable-palette use wxPalette class"
425ac_help="$ac_help
426 --enable-image use wxImage class"
427ac_help="$ac_help
428 --enable-gif use gif images (GIF file format)"
429ac_help="$ac_help
430 --enable-pcx use pcx images (PCX file format)"
431ac_help="$ac_help
432 --enable-iff use iff images (IFF file format)"
433ac_help="$ac_help
434 --enable-pnm use pnm images (PNM file format)"
435ac_help="$ac_help
436 --enable-xpm use xpm images (XPM file format)"
437ac_help="$ac_help
438 --enable-icocur use Windows ICO and CUR formats"
439ac_help="$ac_help
440 --disable-largefile omit support for large files"
441ac_help="$ac_help
442 --disable-gtktest do not try to compile and run a test GTK+ program"
443ac_help="$ac_help
444 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
445ac_help="$ac_help
446 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --disable-gtktest Do not try to compile and run a test GTK program"
449ac_help="$ac_help
450 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
451ac_help="$ac_help
452 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
453ac_help="$ac_help
454 --disable-gtktest Do not try to compile and run a test GTK program"
455ac_help="$ac_help
456 --with-x use the X Window System"
457ac_help="$ac_help
458 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
459
460# Initialize some variables set by options.
461# The variables have the same names as the options, with
462# dashes changed to underlines.
a0b9e27f
MB
463build=NONE
464cache_file=./config.cache
10f2d63a 465exec_prefix=NONE
a0b9e27f 466host=NONE
10f2d63a 467no_create=
a0b9e27f 468nonopt=NONE
10f2d63a
VZ
469no_recursion=
470prefix=NONE
471program_prefix=NONE
472program_suffix=NONE
473program_transform_name=s,x,x,
474silent=
475site=
476srcdir=
a0b9e27f 477target=NONE
10f2d63a
VZ
478verbose=
479x_includes=NONE
480x_libraries=NONE
481bindir='${exec_prefix}/bin'
482sbindir='${exec_prefix}/sbin'
483libexecdir='${exec_prefix}/libexec'
484datadir='${prefix}/share'
485sysconfdir='${prefix}/etc'
486sharedstatedir='${prefix}/com'
487localstatedir='${prefix}/var'
488libdir='${exec_prefix}/lib'
489includedir='${prefix}/include'
490oldincludedir='/usr/include'
491infodir='${prefix}/info'
492mandir='${prefix}/man'
493
a0b9e27f
MB
494# Initialize some other variables.
495subdirs=
496MFLAGS= MAKEFLAGS=
497SHELL=${CONFIG_SHELL-/bin/sh}
498# Maximum number of lines to put in a shell here document.
499ac_max_here_lines=12
500
10f2d63a
VZ
501ac_prev=
502for ac_option
503do
a0b9e27f 504
10f2d63a
VZ
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
a0b9e27f
MB
512 case "$ac_option" in
513 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
514 *) ac_optarg= ;;
515 esac
10f2d63a
VZ
516
517 # Accept the important Cygnus configure options, so we can diagnose typos.
518
a0b9e27f 519 case "$ac_option" in
10f2d63a
VZ
520
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 524 bindir="$ac_optarg" ;;
10f2d63a
VZ
525
526 -build | --build | --buil | --bui | --bu)
a0b9e27f 527 ac_prev=build ;;
10f2d63a 528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 529 build="$ac_optarg" ;;
10f2d63a
VZ
530
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 536 cache_file="$ac_optarg" ;;
10f2d63a
VZ
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
a0b9e27f 542 datadir="$ac_optarg" ;;
10f2d63a
VZ
543
544 -disable-* | --disable-*)
a0b9e27f 545 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 546 # Reject names that are not valid shell variable names.
a0b9e27f
MB
547 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
548 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
549 fi
550 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
551 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
552
553 -enable-* | --enable-*)
a0b9e27f 554 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 555 # Reject names that are not valid shell variable names.
a0b9e27f
MB
556 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
557 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
558 fi
559 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
560 case "$ac_option" in
561 *=*) ;;
10f2d63a
VZ
562 *) ac_optarg=yes ;;
563 esac
a0b9e27f 564 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
a0b9e27f 573 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
a0b9e27f
MB
579 -help | --help | --hel | --he)
580 # Omit some internal or obsolete options to make the list less imposing.
581 # This message is too long to be a string in the A/UX 3.1 sh.
582 cat << EOF
583Usage: configure [options] [host]
584Options: [defaults in brackets after descriptions]
585Configuration:
586 --cache-file=FILE cache test results in FILE
587 --help print this message
588 --no-create do not create output files
589 --quiet, --silent do not print \`checking...' messages
590 --version print the version of autoconf that created configure
591Directory and file names:
592 --prefix=PREFIX install architecture-independent files in PREFIX
593 [$ac_default_prefix]
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
595 [same as prefix]
596 --bindir=DIR user executables in DIR [EPREFIX/bin]
597 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
598 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
599 --datadir=DIR read-only architecture-independent data in DIR
600 [PREFIX/share]
601 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
602 --sharedstatedir=DIR modifiable architecture-independent data in DIR
603 [PREFIX/com]
604 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
605 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
606 --includedir=DIR C header files in DIR [PREFIX/include]
607 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
608 --infodir=DIR info documentation in DIR [PREFIX/info]
609 --mandir=DIR man documentation in DIR [PREFIX/man]
610 --srcdir=DIR find the sources in DIR [configure dir or ..]
611 --program-prefix=PREFIX prepend PREFIX to installed program names
612 --program-suffix=SUFFIX append SUFFIX to installed program names
613 --program-transform-name=PROGRAM
614 run sed PROGRAM on installed program names
615EOF
616 cat << EOF
617Host type:
618 --build=BUILD configure for building on BUILD [BUILD=HOST]
619 --host=HOST configure for HOST [guessed]
620 --target=TARGET configure for TARGET [TARGET=HOST]
621Features and packages:
622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
626 --x-includes=DIR X include files are in DIR
627 --x-libraries=DIR X library files are in DIR
628EOF
629 if test -n "$ac_help"; then
630 echo "--enable and --with options recognized:$ac_help"
631 fi
632 exit 0 ;;
10f2d63a
VZ
633
634 -host | --host | --hos | --ho)
a0b9e27f 635 ac_prev=host ;;
10f2d63a 636 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 637 host="$ac_optarg" ;;
10f2d63a
VZ
638
639 -includedir | --includedir | --includedi | --included | --include \
640 | --includ | --inclu | --incl | --inc)
641 ac_prev=includedir ;;
642 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
643 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 644 includedir="$ac_optarg" ;;
10f2d63a
VZ
645
646 -infodir | --infodir | --infodi | --infod | --info | --inf)
647 ac_prev=infodir ;;
648 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 649 infodir="$ac_optarg" ;;
10f2d63a
VZ
650
651 -libdir | --libdir | --libdi | --libd)
652 ac_prev=libdir ;;
653 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 654 libdir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
657 | --libexe | --libex | --libe)
658 ac_prev=libexecdir ;;
659 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
660 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 661 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -localstatedir | --localstatedir | --localstatedi | --localstated \
664 | --localstate | --localstat | --localsta | --localst \
665 | --locals | --local | --loca | --loc | --lo)
666 ac_prev=localstatedir ;;
667 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
668 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
669 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 670 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
671
672 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
673 ac_prev=mandir ;;
674 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 675 mandir="$ac_optarg" ;;
10f2d63a
VZ
676
677 -nfp | --nfp | --nf)
678 # Obsolete; use --without-fp.
679 with_fp=no ;;
680
681 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 682 | --no-cr | --no-c)
10f2d63a
VZ
683 no_create=yes ;;
684
685 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
687 no_recursion=yes ;;
688
689 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
690 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
691 | --oldin | --oldi | --old | --ol | --o)
692 ac_prev=oldincludedir ;;
693 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
694 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
695 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 696 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
697
698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
699 ac_prev=prefix ;;
700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 701 prefix="$ac_optarg" ;;
10f2d63a
VZ
702
703 -program-prefix | --program-prefix | --program-prefi | --program-pref \
704 | --program-pre | --program-pr | --program-p)
705 ac_prev=program_prefix ;;
706 -program-prefix=* | --program-prefix=* | --program-prefi=* \
707 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 708 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
709
710 -program-suffix | --program-suffix | --program-suffi | --program-suff \
711 | --program-suf | --program-su | --program-s)
712 ac_prev=program_suffix ;;
713 -program-suffix=* | --program-suffix=* | --program-suffi=* \
714 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 715 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
716
717 -program-transform-name | --program-transform-name \
718 | --program-transform-nam | --program-transform-na \
719 | --program-transform-n | --program-transform- \
720 | --program-transform | --program-transfor \
721 | --program-transfo | --program-transf \
722 | --program-trans | --program-tran \
723 | --progr-tra | --program-tr | --program-t)
724 ac_prev=program_transform_name ;;
725 -program-transform-name=* | --program-transform-name=* \
726 | --program-transform-nam=* | --program-transform-na=* \
727 | --program-transform-n=* | --program-transform-=* \
728 | --program-transform=* | --program-transfor=* \
729 | --program-transfo=* | --program-transf=* \
730 | --program-trans=* | --program-tran=* \
731 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 732 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
733
734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
735 | -silent | --silent | --silen | --sile | --sil)
736 silent=yes ;;
737
738 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
739 ac_prev=sbindir ;;
740 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
741 | --sbi=* | --sb=*)
a0b9e27f 742 sbindir="$ac_optarg" ;;
10f2d63a
VZ
743
744 -sharedstatedir | --sharedstatedir | --sharedstatedi \
745 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
746 | --sharedst | --shareds | --shared | --share | --shar \
747 | --sha | --sh)
748 ac_prev=sharedstatedir ;;
749 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
750 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
751 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
752 | --sha=* | --sh=*)
a0b9e27f 753 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
754
755 -site | --site | --sit)
756 ac_prev=site ;;
757 -site=* | --site=* | --sit=*)
a0b9e27f 758 site="$ac_optarg" ;;
10f2d63a
VZ
759
760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
761 ac_prev=srcdir ;;
762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 763 srcdir="$ac_optarg" ;;
10f2d63a
VZ
764
765 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
766 | --syscon | --sysco | --sysc | --sys | --sy)
767 ac_prev=sysconfdir ;;
768 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
769 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 770 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
771
772 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 773 ac_prev=target ;;
10f2d63a 774 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 775 target="$ac_optarg" ;;
10f2d63a
VZ
776
777 -v | -verbose | --verbose | --verbos | --verbo | --verb)
778 verbose=yes ;;
779
a0b9e27f
MB
780 -version | --version | --versio | --versi | --vers)
781 echo "configure generated by autoconf version 2.13"
782 exit 0 ;;
10f2d63a
VZ
783
784 -with-* | --with-*)
a0b9e27f 785 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 786 # Reject names that are not valid shell variable names.
a0b9e27f
MB
787 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
788 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
789 fi
10f2d63a 790 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
791 case "$ac_option" in
792 *=*) ;;
10f2d63a
VZ
793 *) ac_optarg=yes ;;
794 esac
a0b9e27f 795 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
796
797 -without-* | --without-*)
a0b9e27f 798 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 799 # Reject names that are not valid shell variable names.
a0b9e27f
MB
800 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
801 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
802 fi
803 ac_package=`echo $ac_package| sed 's/-/_/g'`
804 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
805
806 --x)
807 # Obsolete; use --with-x.
808 with_x=yes ;;
809
810 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
811 | --x-incl | --x-inc | --x-in | --x-i)
812 ac_prev=x_includes ;;
813 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
814 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 815 x_includes="$ac_optarg" ;;
10f2d63a
VZ
816
817 -x-libraries | --x-libraries | --x-librarie | --x-librari \
818 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
819 ac_prev=x_libraries ;;
820 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
821 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 822 x_libraries="$ac_optarg" ;;
10f2d63a 823
a0b9e27f 824 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
825 ;;
826
827 *)
a0b9e27f
MB
828 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
829 echo "configure: warning: $ac_option: invalid host type" 1>&2
830 fi
831 if test "x$nonopt" != xNONE; then
832 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
833 fi
834 nonopt="$ac_option"
10f2d63a
VZ
835 ;;
836
837 esac
838done
839
840if test -n "$ac_prev"; then
a0b9e27f 841 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 842fi
8284b0c5 843
a0b9e27f
MB
844trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
845
846# File descriptor usage:
847# 0 standard input
848# 1 file creation
849# 2 errors and warnings
850# 3 some systems may open it to /dev/tty
851# 4 used on the Kubota Titan
852# 6 checking for... messages and results
853# 5 compiler messages saved in config.log
854if test "$silent" = yes; then
855 exec 6>/dev/null
856else
857 exec 6>&1
858fi
859exec 5>./config.log
860
861echo "\
862This file contains any messages produced by compilers while
863running configure, to aid debugging if configure makes a mistake.
864" 1>&5
8284b0c5 865
a0b9e27f
MB
866# Strip out --no-create and --no-recursion so they do not pile up.
867# Also quote any args containing shell metacharacters.
868ac_configure_args=
869for ac_arg
10f2d63a 870do
a0b9e27f
MB
871 case "$ac_arg" in
872 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
873 | --no-cr | --no-c) ;;
874 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
875 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
876 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
877 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
878 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
879 esac
880done
881
a0b9e27f
MB
882# NLS nuisances.
883# Only set these to C if already set. These must not be set unconditionally
884# because not all systems understand e.g. LANG=C (notably SCO).
885# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
886# Non-C LC_CTYPE values break the ctype check.
887if test "${LANG+set}" = set; then LANG=C; export LANG; fi
888if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
889if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
890if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 891
a0b9e27f
MB
892# confdefs.h avoids OS command line length limits that DEFS can exceed.
893rm -rf conftest* confdefs.h
894# AIX cpp loses on an empty file, so make sure it contains at least a newline.
895echo > confdefs.h
10f2d63a 896
a0b9e27f
MB
897# A filename unique to this package, relative to the directory that
898# configure is in, which we can look for to find out if srcdir is correct.
899ac_unique_file=wx-config.in
10f2d63a
VZ
900
901# Find the source files, if location was not specified.
902if test -z "$srcdir"; then
903 ac_srcdir_defaulted=yes
904 # Try the directory containing this script, then its parent.
a0b9e27f
MB
905 ac_prog=$0
906 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
907 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
908 srcdir=$ac_confdir
909 if test ! -r $srcdir/$ac_unique_file; then
910 srcdir=..
911 fi
912else
913 ac_srcdir_defaulted=no
914fi
915if test ! -r $srcdir/$ac_unique_file; then
916 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 917 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 918 else
a0b9e27f 919 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
920 fi
921fi
a0b9e27f 922srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 923
10f2d63a
VZ
924# Prefer explicitly selected file to automatically selected ones.
925if test -z "$CONFIG_SITE"; then
926 if test "x$prefix" != xNONE; then
927 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 else
929 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
930 fi
931fi
932for ac_site_file in $CONFIG_SITE; do
933 if test -r "$ac_site_file"; then
a0b9e27f 934 echo "loading site script $ac_site_file"
10f2d63a
VZ
935 . "$ac_site_file"
936 fi
937done
938
939if test -r "$cache_file"; then
a0b9e27f
MB
940 echo "loading cache $cache_file"
941 . $cache_file
10f2d63a 942else
a0b9e27f
MB
943 echo "creating cache $cache_file"
944 > $cache_file
10f2d63a
VZ
945fi
946
947ac_ext=c
a0b9e27f 948# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 949ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
950ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
951ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
952cross_compiling=$ac_cv_prog_cc_cross
953
954ac_exeext=
955ac_objext=o
956if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
957 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
958 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
959 ac_n= ac_c='
960' ac_t=' '
961 else
962 ac_n=-n ac_c= ac_t=
963 fi
964else
965 ac_n= ac_c='\c' ac_t=
966fi
8284b0c5
MB
967
968
10f2d63a 969
7c66a493
VZ
970ac_aux_dir=
971for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972 if 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 elif test -f $ac_dir/install.sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install.sh -c"
979 break
247f5006 980 fi
7c66a493
VZ
981done
982if test -z "$ac_aux_dir"; then
a0b9e27f 983 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 984fi
a0b9e27f
MB
985ac_config_guess=$ac_aux_dir/config.guess
986ac_config_sub=$ac_aux_dir/config.sub
987ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 988
8284b0c5 989
a0b9e27f
MB
990# Do some error checking and defaulting for the host and target type.
991# The inputs are:
992# configure --host=HOST --target=TARGET --build=BUILD NONOPT
993#
994# The rules are:
995# 1. You are not allowed to specify --host, --target, and nonopt at the
996# same time.
997# 2. Host defaults to nonopt.
998# 3. If nonopt is not specified, then host defaults to the current host,
999# as determined by config.guess.
1000# 4. Target and build default to nonopt.
1001# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1002
1003# The aliases save the names the user supplied, while $host etc.
1004# will get canonicalized.
a0b9e27f
MB
1005case $host---$target---$nonopt in
1006NONE---*---* | *---NONE---* | *---*---NONE) ;;
1007*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1008esac
1009
1010
1011# Make sure we can run config.sub.
1012if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1013else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1014fi
1015
1016echo $ac_n "checking host system type""... $ac_c" 1>&6
3bce6687 1017echo "configure:1018: checking host system type" >&5
a0b9e27f
MB
1018
1019host_alias=$host
1020case "$host_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE)
1024 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1025 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1026 fi ;;
1027 *) host_alias=$nonopt ;;
1028 esac ;;
1029esac
1030
1031host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1032host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035echo "$ac_t""$host" 1>&6
1036
1037echo $ac_n "checking target system type""... $ac_c" 1>&6
3bce6687 1038echo "configure:1039: checking target system type" >&5
a0b9e27f
MB
1039
1040target_alias=$target
1041case "$target_alias" in
1042NONE)
1043 case $nonopt in
1044 NONE) target_alias=$host_alias ;;
1045 *) target_alias=$nonopt ;;
1046 esac ;;
1047esac
1048
1049target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1050target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1053echo "$ac_t""$target" 1>&6
1054
1055echo $ac_n "checking build system type""... $ac_c" 1>&6
3bce6687 1056echo "configure:1057: checking build system type" >&5
a0b9e27f
MB
1057
1058build_alias=$build
1059case "$build_alias" in
1060NONE)
1061 case $nonopt in
1062 NONE) build_alias=$host_alias ;;
1063 *) build_alias=$nonopt ;;
1064 esac ;;
1065esac
1066
1067build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1068build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071echo "$ac_t""$build" 1>&6
1072
1073test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1074 test "$program_prefix$program_suffix$program_transform_name" = \
1075 NONENONEs,x,x, &&
1076 program_prefix=${target_alias}-
8284b0c5
MB
1077
1078
a0b9e27f 1079
10f2d63a 1080WX_MAJOR_VERSION_NUMBER=2
37d403aa 1081WX_MINOR_VERSION_NUMBER=3
a0d927d1 1082WX_RELEASE_NUMBER=3
10f2d63a 1083
10f2d63a 1084WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1085WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1086
978f1259
RL
1087WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1088
a0d927d1 1089WX_CURRENT=2
6426998c
RL
1090WX_REVISION=0
1091WX_AGE=0
1092
8284b0c5
MB
1093
1094
10f2d63a
VZ
1095USE_UNIX=1
1096USE_WIN32=0
f9bc1684 1097USE_DOS=0
b12915c1 1098USE_BEOS=0
1216f52d 1099USE_MAC=0
b12915c1 1100
10f2d63a
VZ
1101USE_LINUX=
1102USE_SGI=
1103USE_HPUX=
1104USE_SYSV=
1105USE_SVR4=
1106USE_AIX=
1107USE_SUN=
1108USE_SOLARIS=
1109USE_SUNOS=
1110USE_ALPHA=
1111USE_OSF=
1112USE_BSD=
f11bdd03 1113USE_DARWIN=
10f2d63a 1114USE_FREEBSD=
95c8801c 1115USE_OPENBSD=
f6bcfd97 1116USE_NETBSD=
10f2d63a
VZ
1117USE_VMS=
1118USE_ULTRIX=
10f2d63a
VZ
1119USE_DATA_GENERAL=
1120
ab9b9eab
VZ
1121NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1122
f79bd02d 1123ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1124
1125DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1126DEFAULT_wxUSE_MAC=0
1127DEFAULT_wxUSE_MGL=0
1725144d 1128DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1129DEFAULT_wxUSE_MOTIF=0
1130DEFAULT_wxUSE_MSW=0
e07802fc 1131DEFAULT_wxUSE_PM=0
1e6feb95 1132DEFAULT_wxUSE_WINE=0
f79bd02d 1133DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1134
1135DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1136DEFAULT_DEFAULT_wxUSE_MAC=0
1137DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1138DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1139DEFAULT_DEFAULT_wxUSE_MOTIF=0
1140DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1141DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1142DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1143DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1144
d6a55c4b 1145PROGRAM_EXT=
3a922bb4 1146SO_SUFFIX=so
d6a55c4b 1147
10f2d63a
VZ
1148case "${host}" in
1149 *-hp-hpux* )
1150 USE_HPUX=1
1151 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1152 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1153 SO_SUFFIX=sl
a0b9e27f 1154 cat >> confdefs.h <<\EOF
10f2d63a 1155#define __HPUX__ 1
a0b9e27f 1156EOF
10f2d63a
VZ
1157
1158 ;;
1159 *-*-linux* )
1160 USE_LINUX=1
a0b9e27f 1161 cat >> confdefs.h <<\EOF
10f2d63a 1162#define __LINUX__ 1
a0b9e27f 1163EOF
10f2d63a
VZ
1164
1165 TMP=`uname -m`
1166 if test "x$TMP" = "xalpha"; then
1167 USE_ALPHA=1
a0b9e27f 1168 cat >> confdefs.h <<\EOF
10f2d63a 1169#define __ALPHA__ 1
a0b9e27f 1170EOF
10f2d63a
VZ
1171
1172 fi
1173 DEFAULT_DEFAULT_wxUSE_GTK=1
1174 ;;
1175 *-*-irix5* | *-*-irix6* )
1176 USE_SGI=1
1177 USE_SVR4=1
a0b9e27f 1178 cat >> confdefs.h <<\EOF
10f2d63a 1179#define __SGI__ 1
a0b9e27f 1180EOF
10f2d63a 1181
a0b9e27f 1182 cat >> confdefs.h <<\EOF
10f2d63a 1183#define __SVR4__ 1
a0b9e27f 1184EOF
10f2d63a
VZ
1185
1186 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1187 ;;
1188 *-*-solaris2* )
1189 USE_SUN=1
1190 USE_SOLARIS=1
1191 USE_SVR4=1
a0b9e27f 1192 cat >> confdefs.h <<\EOF
10f2d63a 1193#define __SUN__ 1
a0b9e27f 1194EOF
10f2d63a 1195
a0b9e27f 1196 cat >> confdefs.h <<\EOF
10f2d63a 1197#define __SOLARIS__ 1
a0b9e27f 1198EOF
10f2d63a 1199
a0b9e27f 1200 cat >> confdefs.h <<\EOF
10f2d63a 1201#define __SVR4__ 1
a0b9e27f 1202EOF
10f2d63a
VZ
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1205 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1206 ;;
1207 *-*-sunos4* )
1208 USE_SUN=1
1209 USE_SUNOS=1
1210 USE_BSD=1
a0b9e27f 1211 cat >> confdefs.h <<\EOF
10f2d63a 1212#define __SUN__ 1
a0b9e27f 1213EOF
10f2d63a 1214
a0b9e27f 1215 cat >> confdefs.h <<\EOF
10f2d63a 1216#define __SUNOS__ 1
a0b9e27f 1217EOF
10f2d63a 1218
a0b9e27f 1219 cat >> confdefs.h <<\EOF
10f2d63a 1220#define __BSD__ 1
a0b9e27f 1221EOF
10f2d63a
VZ
1222
1223 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1224 ;;
f6bcfd97 1225 *-*-freebsd*)
10f2d63a
VZ
1226 USE_BSD=1
1227 USE_FREEBSD=1
a0b9e27f 1228 cat >> confdefs.h <<\EOF
10f2d63a 1229#define __FREEBSD__ 1
a0b9e27f 1230EOF
10f2d63a 1231
a0b9e27f 1232 cat >> confdefs.h <<\EOF
10f2d63a 1233#define __BSD__ 1
a0b9e27f 1234EOF
95c8801c
VS
1235
1236 DEFAULT_DEFAULT_wxUSE_GTK=1
1237 ;;
1238 *-*-openbsd*)
1239 USE_BSD=1
1240 USE_OPENBSD=1
a0b9e27f 1241 cat >> confdefs.h <<\EOF
95c8801c 1242#define __FREEBSD__ 1
a0b9e27f 1243EOF
95c8801c 1244
a0b9e27f 1245 cat >> confdefs.h <<\EOF
95c8801c 1246#define __OPENBSD__ 1
a0b9e27f 1247EOF
f6bcfd97
BP
1248
1249 DEFAULT_DEFAULT_wxUSE_GTK=1
1250 ;;
1251 *-*-netbsd*)
1252 USE_BSD=1
1253 USE_NETBSD=1
a0b9e27f 1254 cat >> confdefs.h <<\EOF
f6bcfd97 1255#define __FREEBSD__ 1
a0b9e27f 1256EOF
f6bcfd97 1257
a0b9e27f 1258 cat >> confdefs.h <<\EOF
f6bcfd97 1259#define __NETBSD__ 1
a0b9e27f 1260EOF
10f2d63a
VZ
1261
1262 DEFAULT_DEFAULT_wxUSE_GTK=1
1263 ;;
1264 *-*-osf* )
1265 USE_ALPHA=1
1266 USE_OSF=1
a0b9e27f 1267 cat >> confdefs.h <<\EOF
10f2d63a 1268#define __ALPHA__ 1
a0b9e27f 1269EOF
10f2d63a 1270
a0b9e27f 1271 cat >> confdefs.h <<\EOF
10f2d63a 1272#define __OSF__ 1
a0b9e27f 1273EOF
10f2d63a
VZ
1274
1275 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1276 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1277 ;;
1278 *-*-dgux5* )
1279 USE_ALPHA=1
1280 USE_SVR4=1
a0b9e27f 1281 cat >> confdefs.h <<\EOF
10f2d63a 1282#define __ALPHA__ 1
a0b9e27f 1283EOF
10f2d63a 1284
a0b9e27f 1285 cat >> confdefs.h <<\EOF
10f2d63a 1286#define __SVR4__ 1
a0b9e27f 1287EOF
10f2d63a
VZ
1288
1289 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1290 ;;
1291 *-*-sysv5* )
1292 USE_SYSV=1
1293 USE_SVR4=1
a0b9e27f 1294 cat >> confdefs.h <<\EOF
10f2d63a 1295#define __SYSV__ 1
a0b9e27f 1296EOF
10f2d63a 1297
a0b9e27f 1298 cat >> confdefs.h <<\EOF
10f2d63a 1299#define __SVR4__ 1
a0b9e27f 1300EOF
10f2d63a
VZ
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304 *-*-aix* )
1305 USE_AIX=1
1306 USE_SYSV=1
1307 USE_SVR4=1
321d2b14 1308 SO_SUFFIX=a
a0b9e27f 1309 cat >> confdefs.h <<\EOF
10f2d63a 1310#define __AIX__ 1
a0b9e27f 1311EOF
10f2d63a 1312
a0b9e27f 1313 cat >> confdefs.h <<\EOF
10f2d63a 1314#define __SYSV__ 1
a0b9e27f 1315EOF
10f2d63a 1316
a0b9e27f 1317 cat >> confdefs.h <<\EOF
10f2d63a 1318#define __SVR4__ 1
a0b9e27f 1319EOF
10f2d63a
VZ
1320
1321 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1322 ;;
1323
1c8183e2 1324 *-*-cygwin* | *-*-mingw32* )
17234b26 1325 SO_SUFFIX=dll
cf27ef00 1326 PROGRAM_EXT=".exe"
7b7a7637 1327 RESCOMP=windres
10f2d63a
VZ
1328 DEFAULT_DEFAULT_wxUSE_MSW=1
1329 ;;
1330
f9bc1684
VS
1331 *-pc-msdosdjgpp )
1332 USE_UNIX=0
1333 USE_DOS=1
a0b9e27f 1334 cat >> confdefs.h <<\EOF
f9bc1684 1335#define __DOS__ 1
a0b9e27f 1336EOF
f9bc1684
VS
1337
1338 PROGRAM_EXT=".exe"
1339 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1340 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1341 ;;
1342
6fa882bd 1343 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1344 cat >> confdefs.h <<\EOF
10f2d63a 1345#define __EMX__ 1
a0b9e27f 1346EOF
10f2d63a 1347
cf27ef00 1348 PROGRAM_EXT=".exe"
e07802fc 1349 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1350 ;;
1351
d08b457b
GD
1352 powerpc-*-darwin* )
1353 USE_BSD=1
f11bdd03 1354 USE_DARWIN=1
3a922bb4 1355 SO_SUFFIX=dylib
a0b9e27f 1356 cat >> confdefs.h <<\EOF
f11bdd03 1357#define __BSD__ 1
a0b9e27f 1358EOF
b4085ce6 1359
a0b9e27f 1360 cat >> confdefs.h <<\EOF
f11bdd03 1361#define __DARWIN__ 1
a0b9e27f 1362EOF
d08b457b 1363
a0b9e27f 1364 cat >> confdefs.h <<\EOF
d08b457b 1365#define __POWERPC__ 1
a0b9e27f 1366EOF
b4085ce6
GD
1367
1368 DEFAULT_DEFAULT_wxUSE_MAC=1
1369 ;;
1370
b12915c1
VZ
1371 *-*-beos* )
1372 USE_BEOS=1
a0b9e27f 1373 cat >> confdefs.h <<\EOF
b12915c1 1374#define __BEOS__ 1
a0b9e27f 1375EOF
b12915c1
VZ
1376
1377 ;;
1378
10f2d63a 1379 *)
a0b9e27f 1380 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1381esac
1382
8284b0c5
MB
1383
1384
1385
1386 wx_arg_cache_file="configarg.cache"
1387 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1388 rm -f ${wx_arg_cache_file}.tmp
1389 touch ${wx_arg_cache_file}.tmp
1390 touch ${wx_arg_cache_file}
a0b9e27f 1391
10f2d63a
VZ
1392
1393DEBUG_CONFIGURE=0
1394if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1395 DEFAULT_wxUSE_UNIVERSAL=no
1396
d8356fa3
VZ
1397 DEFAULT_wxUSE_NANOX=no
1398
10f2d63a
VZ
1399 DEFAULT_wxUSE_THREADS=yes
1400
1401 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1402 DEFAULT_wxUSE_SONAME=no
1e6feb95 1403 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1404 DEFAULT_wxUSE_PROFILE=no
1405 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1406 DEFAULT_wxUSE_NO_RTTI=no
1407 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1408 DEFAULT_wxUSE_PERMISSIVE=no
1409 DEFAULT_wxUSE_DEBUG_FLAG=yes
1410 DEFAULT_wxUSE_DEBUG_INFO=yes
1411 DEFAULT_wxUSE_DEBUG_GDB=yes
1412 DEFAULT_wxUSE_MEM_TRACING=no
1413 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1414 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1415 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_APPLE_IEEE=no
1417
1418 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1419 DEFAULT_wxUSE_LOGWINDOW=no
1420 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1421 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1422
1423 DEFAULT_wxUSE_GUI=yes
1e6feb95 1424 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1425
3e44f09d 1426 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_ZLIB=no
1428 DEFAULT_wxUSE_LIBPNG=no
1429 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1430 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1431 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1432 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1433
eb4efbdc 1434 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1435 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1436 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1437 DEFAULT_wxUSE_CMDLINE_PARSER=no
1438 DEFAULT_wxUSE_DATETIME=no
1439 DEFAULT_wxUSE_TIMEDATE=no
1440 DEFAULT_wxUSE_TIMER=no
1441 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1442 DEFAULT_wxUSE_FILE=no
1e6feb95 1443 DEFAULT_wxUSE_FFILE=no
a3a584a7 1444 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1445 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_WAVE=no
1447 DEFAULT_wxUSE_INTL=no
1448 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1449 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1450 DEFAULT_wxUSE_STREAMS=no
1451 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1452 DEFAULT_wxUSE_OLE=no
1453 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1454 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1455 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1456 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1457 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1458 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1459 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1460
1461 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1462 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1463 DEFAULT_wxUSE_POSTSCRIPT=no
1464
1465 DEFAULT_wxUSE_X_RESOURCES=no
1466 DEFAULT_wxUSE_CLIPBOARD=no
1467 DEFAULT_wxUSE_TOOLTIPS=no
1468 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1469 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1470 DEFAULT_wxUSE_SPLINES=no
1471
1472 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1473 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1474 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1475
1476 DEFAULT_wxUSE_PROLOGIO=no
1477 DEFAULT_wxUSE_RESOURCES=no
1478 DEFAULT_wxUSE_CONSTRAINTS=no
1479 DEFAULT_wxUSE_IPC=no
1480 DEFAULT_wxUSE_HELP=no
29fd3c0c 1481 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1482 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1483 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1484 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1485 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1486 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1487 DEFAULT_wxUSE_PROTOCOL=no
1488 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1489 DEFAULT_wxUSE_PROTOCOL_FTP=no
1490 DEFAULT_wxUSE_PROTOCOL_FILE=no
1491 DEFAULT_wxUSE_URL=no
3bd8fb5f 1492
10f2d63a 1493 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1494 DEFAULT_wxUSE_CHOICEDLG=no
1495 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1496 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1497 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1498 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1499 DEFAULT_wxUSE_FONTDLG=no
1500 DEFAULT_wxUSE_MSGDLG=no
1501 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1502 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1503 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_STARTUP_TIPS=no
1505 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1506 DEFAULT_wxUSE_WIZARDDLG=no
1507
1e6feb95 1508 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1509 DEFAULT_wxUSE_MINIFRAME=no
1510 DEFAULT_wxUSE_HTML=no
24528b0c 1511 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1512 DEFAULT_wxUSE_FS_INET=no
1513 DEFAULT_wxUSE_FS_ZIP=no
1514 DEFAULT_wxUSE_BUSYINFO=no
1515 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1516 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1517
1518 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1519 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1520 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1521 DEFAULT_wxUSE_CALCTRL=no
1522 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1523 DEFAULT_wxUSE_CHECKBOX=no
1524 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1525 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_COMBOBOX=no
1527 DEFAULT_wxUSE_GAUGE=no
1528 DEFAULT_wxUSE_GRID=no
1529 DEFAULT_wxUSE_NEW_GRID=no
1530 DEFAULT_wxUSE_IMAGLIST=no
1531 DEFAULT_wxUSE_LISTBOX=no
1532 DEFAULT_wxUSE_LISTCTRL=no
1533 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1534 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1535 DEFAULT_wxUSE_RADIOBOX=no
1536 DEFAULT_wxUSE_RADIOBTN=no
1537 DEFAULT_wxUSE_SASH=no
1538 DEFAULT_wxUSE_SCROLLBAR=no
1539 DEFAULT_wxUSE_SLIDER=no
1540 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1541 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1542 DEFAULT_wxUSE_SPLITTER=no
1543 DEFAULT_wxUSE_STATBMP=no
1544 DEFAULT_wxUSE_STATBOX=no
1545 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1546 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_STATUSBAR=yes
1548 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1549 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1550 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1551 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1552 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1553 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1554 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1555 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1556 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1557
1558 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1559 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1560 DEFAULT_wxUSE_WCSRTOMBS=no
1561
edae8572 1562 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1563 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1564 DEFAULT_wxUSE_GIF=no
1565 DEFAULT_wxUSE_PCX=no
1566 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1567 DEFAULT_wxUSE_IFF=no
0046ff7c 1568 DEFAULT_wxUSE_XPM=no
658974ae 1569 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1570else
1e6feb95
VZ
1571 DEFAULT_wxUSE_UNIVERSAL=no
1572
d8356fa3
VZ
1573 DEFAULT_wxUSE_NANOX=no
1574
10f2d63a
VZ
1575 DEFAULT_wxUSE_THREADS=yes
1576
1577 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1578 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1579 DEFAULT_wxUSE_OPTIMISE=yes
1580 DEFAULT_wxUSE_PROFILE=no
1581 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1582 DEFAULT_wxUSE_NO_RTTI=no
1583 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1584 DEFAULT_wxUSE_PERMISSIVE=no
1585 DEFAULT_wxUSE_DEBUG_FLAG=no
1586 DEFAULT_wxUSE_DEBUG_INFO=no
1587 DEFAULT_wxUSE_DEBUG_GDB=no
1588 DEFAULT_wxUSE_MEM_TRACING=no
1589 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1590 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1591 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1592 DEFAULT_wxUSE_APPLE_IEEE=yes
1593
1594 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1595 DEFAULT_wxUSE_LOGWINDOW=yes
1596 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1597 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1598
1599 DEFAULT_wxUSE_GUI=yes
1600
831b3152 1601 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1602 DEFAULT_wxUSE_ZLIB=yes
1603 DEFAULT_wxUSE_LIBPNG=yes
1604 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1605 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1606 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1607 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1608
eb4efbdc 1609 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1610 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1611 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1612 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1613 DEFAULT_wxUSE_DATETIME=yes
1614 DEFAULT_wxUSE_TIMEDATE=no
1615 DEFAULT_wxUSE_TIMER=yes
1616 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1617 DEFAULT_wxUSE_FILE=yes
1e6feb95 1618 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1619 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1620 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1621 DEFAULT_wxUSE_WAVE=no
1622 DEFAULT_wxUSE_INTL=yes
1623 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1624 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1625 DEFAULT_wxUSE_STREAMS=yes
1626 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1627 DEFAULT_wxUSE_OLE=yes
1628 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1629 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1630 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1631 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1632 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1633 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1634 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1635
1636 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1637 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1638 DEFAULT_wxUSE_POSTSCRIPT=yes
1639
1640 DEFAULT_wxUSE_X_RESOURCES=no
1641 DEFAULT_wxUSE_CLIPBOARD=yes
1642 DEFAULT_wxUSE_TOOLTIPS=yes
1643 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1644 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1645 DEFAULT_wxUSE_SPLINES=yes
1646
1647 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1648 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1649 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1650
1651 DEFAULT_wxUSE_PROLOGIO=yes
1652 DEFAULT_wxUSE_RESOURCES=yes
1653 DEFAULT_wxUSE_CONSTRAINTS=yes
1654 DEFAULT_wxUSE_IPC=yes
1655 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1656 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1657 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1658 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1659 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1660 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1661 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1662 DEFAULT_wxUSE_PROTOCOL=yes
1663 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1664 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1665 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1666 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1667
1668 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1669 DEFAULT_wxUSE_CHOICEDLG=yes
1670 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1671 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1672 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1673 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1674 DEFAULT_wxUSE_FONTDLG=yes
1675 DEFAULT_wxUSE_MSGDLG=yes
1676 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1677 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1678 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_STARTUP_TIPS=yes
1680 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1681 DEFAULT_wxUSE_WIZARDDLG=yes
1682
1e6feb95 1683 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1684 DEFAULT_wxUSE_MINIFRAME=yes
1685 DEFAULT_wxUSE_HTML=yes
24528b0c 1686 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1687 DEFAULT_wxUSE_FS_INET=yes
1688 DEFAULT_wxUSE_FS_ZIP=yes
1689 DEFAULT_wxUSE_BUSYINFO=yes
1690 DEFAULT_wxUSE_ZIPSTREAM=yes
1691 DEFAULT_wxUSE_VALIDATORS=yes
1692
1693 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1694 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1695 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1696 DEFAULT_wxUSE_CALCTRL=yes
1697 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_CHECKBOX=yes
1699 DEFAULT_wxUSE_CHECKLST=yes
1700 DEFAULT_wxUSE_CHOICE=yes
1701 DEFAULT_wxUSE_COMBOBOX=yes
1702 DEFAULT_wxUSE_GAUGE=yes
1703 DEFAULT_wxUSE_GRID=yes
cc977e5f 1704 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_IMAGLIST=yes
1706 DEFAULT_wxUSE_LISTBOX=yes
1707 DEFAULT_wxUSE_LISTCTRL=yes
1708 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1709 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1710 DEFAULT_wxUSE_RADIOBOX=yes
1711 DEFAULT_wxUSE_RADIOBTN=yes
1712 DEFAULT_wxUSE_SASH=yes
1713 DEFAULT_wxUSE_SCROLLBAR=yes
1714 DEFAULT_wxUSE_SLIDER=yes
1715 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1716 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_SPLITTER=yes
1718 DEFAULT_wxUSE_STATBMP=yes
1719 DEFAULT_wxUSE_STATBOX=yes
1720 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1721 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1722 DEFAULT_wxUSE_STATUSBAR=yes
1723 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1724 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1725 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1726 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1729 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1730 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1731 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1732
1733 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1734 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1735 DEFAULT_wxUSE_WCSRTOMBS=no
1736
edae8572 1737 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1738 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1739 DEFAULT_wxUSE_GIF=yes
1740 DEFAULT_wxUSE_PCX=yes
cc0e8480 1741 DEFAULT_wxUSE_IFF=no
10f2d63a 1742 DEFAULT_wxUSE_PNM=yes
0046ff7c 1743 DEFAULT_wxUSE_XPM=yes
658974ae 1744 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1745fi
1746
8284b0c5
MB
1747
1748
10f2d63a 1749for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1750 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1752 has_toolkit_in_cache=1
1753 eval "DEFAULT_$LINE"
1754 eval "CACHE_$toolkit=1"
1755 fi
1756done
1757
8284b0c5
MB
1758
1759
a0b9e27f 1760 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
3bce6687 1761echo "configure:1762: checking for --enable-gui" >&5
10f2d63a
VZ
1762 no_cache=0
1763 # Check whether --enable-gui or --disable-gui was given.
1764if test "${enable_gui+set}" = set; then
1765 enableval="$enable_gui"
a0b9e27f 1766
10f2d63a
VZ
1767 if test "$enableval" = yes; then
1768 ac_cv_use_gui='wxUSE_GUI=yes'
1769 else
1770 ac_cv_use_gui='wxUSE_GUI=no'
1771 fi
a0b9e27f 1772
10f2d63a 1773else
a0b9e27f 1774
10f2d63a
VZ
1775 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1776 if test "x$LINE" != x ; then
1777 eval "DEFAULT_$LINE"
1778 else
1779 no_cache=1
1780 fi
1781
1782 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1783
1784fi
10f2d63a
VZ
1785
1786
1787 eval "$ac_cv_use_gui"
1788 if test "$no_cache" != 1; then
1789 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1790 fi
1791
1792 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1793 echo "$ac_t""yes" 1>&6
10f2d63a 1794 else
a0b9e27f 1795 echo "$ac_t""no" 1>&6
10f2d63a 1796 fi
a0b9e27f 1797
10f2d63a 1798
b12915c1 1799if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1800
8284b0c5 1801
a0b9e27f 1802 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
3bce6687 1803echo "configure:1804: checking for --enable-universal" >&5
1e6feb95
VZ
1804 no_cache=0
1805 # Check whether --enable-universal or --disable-universal was given.
1806if test "${enable_universal+set}" = set; then
1807 enableval="$enable_universal"
a0b9e27f 1808
1e6feb95
VZ
1809 if test "$enableval" = yes; then
1810 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1811 else
1812 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1813 fi
a0b9e27f 1814
1e6feb95 1815else
a0b9e27f 1816
1e6feb95
VZ
1817 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1818 if test "x$LINE" != x ; then
1819 eval "DEFAULT_$LINE"
1820 else
1821 no_cache=1
1822 fi
1823
1824 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1825
1826fi
1e6feb95
VZ
1827
1828
1829 eval "$ac_cv_use_universal"
1830 if test "$no_cache" != 1; then
1831 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1832 fi
1833
1834 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1835 echo "$ac_t""yes" 1>&6
1e6feb95 1836 else
a0b9e27f 1837 echo "$ac_t""no" 1>&6
1e6feb95 1838 fi
a0b9e27f 1839
10f2d63a
VZ
1840# Check whether --with-gtk or --without-gtk was given.
1841if test "${with_gtk+set}" = set; then
1842 withval="$with_gtk"
1843 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1844fi
10f2d63a
VZ
1845
1846# Check whether --with-motif or --without-motif was given.
1847if test "${with_motif+set}" = set; then
1848 withval="$with_motif"
1849 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1850fi
10f2d63a 1851
b4085ce6
GD
1852# Check whether --with-mac or --without-mac was given.
1853if test "${with_mac+set}" = set; then
1854 withval="$with_mac"
1855 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1856fi
b4085ce6 1857
10f2d63a
VZ
1858# Check whether --with-wine or --without-wine was given.
1859if test "${with_wine+set}" = set; then
1860 withval="$with_wine"
1861 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
a0b9e27f 1862fi
10f2d63a 1863
77e13408
RL
1864# Check whether --with-msw or --without-msw was given.
1865if test "${with_msw+set}" = set; then
1866 withval="$with_msw"
b4efce5e 1867 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1868fi
10f2d63a 1869
e07802fc
VZ
1870# Check whether --with-pm or --without-pm was given.
1871if test "${with_pm+set}" = set; then
1872 withval="$with_pm"
1873 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1874fi
698dcdb6 1875
1e6feb95
VZ
1876# Check whether --with-mgl or --without-mgl was given.
1877if test "${with_mgl+set}" = set; then
1878 withval="$with_mgl"
6c657b52 1879 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1880fi
1e6feb95 1881
1725144d
RR
1882# Check whether --with-microwin or --without-microwin was given.
1883if test "${with_microwin+set}" = set; then
1884 withval="$with_microwin"
1885 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1886fi
1725144d 1887
f79bd02d
JS
1888# Check whether --with-x11 or --without-x11 was given.
1889if test "${with_x11+set}" = set; then
1890 withval="$with_x11"
3c011993 1891 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1892fi
10f2d63a 1893
a0b9e27f
MB
1894
1895 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
3bce6687 1896echo "configure:1897: checking for --enable-nanox" >&5
d8356fa3 1897 no_cache=0
ba875e66
VZ
1898 # Check whether --enable-nanox or --disable-nanox was given.
1899if test "${enable_nanox+set}" = set; then
1900 enableval="$enable_nanox"
a0b9e27f 1901
d8356fa3 1902 if test "$enableval" = yes; then
ba875e66 1903 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1904 else
ba875e66 1905 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1906 fi
a0b9e27f 1907
d8356fa3 1908else
a0b9e27f 1909
d8356fa3
VZ
1910 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1911 if test "x$LINE" != x ; then
1912 eval "DEFAULT_$LINE"
1913 else
1914 no_cache=1
1915 fi
1916
ba875e66 1917 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1918
1919fi
d8356fa3
VZ
1920
1921
ba875e66 1922 eval "$ac_cv_use_nanox"
d8356fa3 1923 if test "$no_cache" != 1; then
ba875e66 1924 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1925 fi
1926
1927 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1928 echo "$ac_t""yes" 1>&6
d8356fa3 1929 else
a0b9e27f 1930 echo "$ac_t""no" 1>&6
d8356fa3 1931 fi
a0b9e27f 1932
8284b0c5 1933
d74f4b5a 1934
a0b9e27f 1935 echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6
3bce6687 1936echo "configure:1937: checking for --enable-gtk2" >&5
d74f4b5a
VZ
1937 no_cache=0
1938 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1939if test "${enable_gtk2+set}" = set; then
1940 enableval="$enable_gtk2"
a0b9e27f 1941
d74f4b5a
VZ
1942 if test "$enableval" = yes; then
1943 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1944 else
1945 ac_cv_use_gtk2='wxUSE_GTK2=no'
1946 fi
a0b9e27f 1947
10f2d63a 1948else
a0b9e27f 1949
d74f4b5a
VZ
1950 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1958
1959fi
52127426 1960
328a083c 1961
d74f4b5a
VZ
1962 eval "$ac_cv_use_gtk2"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1968 echo "$ac_t""yes" 1>&6
d74f4b5a 1969 else
a0b9e27f 1970 echo "$ac_t""no" 1>&6
d74f4b5a 1971 fi
a0b9e27f 1972
d74f4b5a 1973
5c6fa7d2 1974
a0b9e27f 1975 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
3bce6687 1976echo "configure:1977: checking for --with-libpng" >&5
8284b0c5 1977 no_cache=0
a0b9e27f 1978 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1979if test "${with_libpng+set}" = set; then
1980 withval="$with_libpng"
a0b9e27f 1981
10f2d63a 1982 if test "$withval" = yes; then
b12915c1 1983 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1984 elif test "$withval" = no; then
b12915c1 1985 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1986 elif test "$withval" = sys; then
1987 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1988 elif test "$withval" = builtin; then
1989 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1990 else
a0b9e27f 1991 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1992 fi
a0b9e27f 1993
10f2d63a 1994else
a0b9e27f 1995
b12915c1 1996 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1997 if test "x$LINE" != x ; then
1998 eval "DEFAULT_$LINE"
1999 else
2000 no_cache=1
2001 fi
2002
b12915c1 2003 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2004
2005fi
10f2d63a
VZ
2006
2007
b12915c1 2008 eval "$ac_cv_use_libpng"
10f2d63a 2009 if test "$no_cache" != 1; then
b12915c1 2010 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2011 fi
2012
b12915c1 2013 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2014 echo "$ac_t""yes" 1>&6
422107f9 2015 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2016 echo "$ac_t""no" 1>&6
422107f9 2017 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2018 echo "$ac_t""system version" 1>&6
4f14bcd8 2019 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2020 echo "$ac_t""builtin version" 1>&6
422107f9 2021 else
a0b9e27f 2022 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2023 fi
a0b9e27f 2024
10f2d63a 2025
a0b9e27f 2026 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
3bce6687 2027echo "configure:2028: checking for --with-libjpeg" >&5
10f2d63a 2028 no_cache=0
a0b9e27f 2029 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2030if test "${with_libjpeg+set}" = set; then
2031 withval="$with_libjpeg"
a0b9e27f 2032
10f2d63a 2033 if test "$withval" = yes; then
b12915c1 2034 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2035 elif test "$withval" = no; then
b12915c1 2036 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2037 elif test "$withval" = sys; then
2038 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2039 elif test "$withval" = builtin; then
2040 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2041 else
a0b9e27f 2042 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2043 fi
a0b9e27f 2044
10f2d63a 2045else
a0b9e27f 2046
b12915c1 2047 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2048 if test "x$LINE" != x ; then
2049 eval "DEFAULT_$LINE"
2050 else
2051 no_cache=1
2052 fi
2053
b12915c1 2054 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2055
2056fi
10f2d63a
VZ
2057
2058
b12915c1 2059 eval "$ac_cv_use_libjpeg"
10f2d63a 2060 if test "$no_cache" != 1; then
b12915c1 2061 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2062 fi
2063
b12915c1 2064 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2065 echo "$ac_t""yes" 1>&6
422107f9 2066 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2067 echo "$ac_t""no" 1>&6
422107f9 2068 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2069 echo "$ac_t""system version" 1>&6
4f14bcd8 2070 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2071 echo "$ac_t""builtin version" 1>&6
422107f9 2072 else
a0b9e27f 2073 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2074 fi
a0b9e27f 2075
10f2d63a 2076
a0b9e27f 2077 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
3bce6687 2078echo "configure:2079: checking for --with-libtiff" >&5
10f2d63a 2079 no_cache=0
a0b9e27f 2080 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2081if test "${with_libtiff+set}" = set; then
2082 withval="$with_libtiff"
a0b9e27f 2083
10f2d63a 2084 if test "$withval" = yes; then
b12915c1 2085 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2086 elif test "$withval" = no; then
b12915c1 2087 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2088 elif test "$withval" = sys; then
2089 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2090 elif test "$withval" = builtin; then
2091 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2092 else
a0b9e27f 2093 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2094 fi
a0b9e27f 2095
10f2d63a 2096else
a0b9e27f 2097
b12915c1 2098 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2099 if test "x$LINE" != x ; then
2100 eval "DEFAULT_$LINE"
2101 else
2102 no_cache=1
2103 fi
2104
b12915c1 2105 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2106
2107fi
10f2d63a
VZ
2108
2109
b12915c1 2110 eval "$ac_cv_use_libtiff"
10f2d63a 2111 if test "$no_cache" != 1; then
b12915c1 2112 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2113 fi
2114
b12915c1 2115 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2116 echo "$ac_t""yes" 1>&6
0dcf9893 2117 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2118 echo "$ac_t""no" 1>&6
0dcf9893 2119 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2120 echo "$ac_t""system version" 1>&6
4f14bcd8 2121 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2122 echo "$ac_t""builtin version" 1>&6
0dcf9893 2123 else
a0b9e27f 2124 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2125 fi
a0b9e27f 2126
10f2d63a 2127
a0b9e27f 2128 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
3bce6687 2129echo "configure:2130: checking for --with-opengl" >&5
10f2d63a 2130 no_cache=0
a0b9e27f 2131 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2132if test "${with_opengl+set}" = set; then
2133 withval="$with_opengl"
a0b9e27f 2134
10f2d63a 2135 if test "$withval" = yes; then
b12915c1 2136 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2137 else
b12915c1 2138 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2139 fi
a0b9e27f 2140
10f2d63a 2141else
a0b9e27f 2142
b12915c1 2143 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
b12915c1 2150 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2151
2152fi
10f2d63a
VZ
2153
2154
b12915c1 2155 eval "$ac_cv_use_opengl"
10f2d63a 2156 if test "$no_cache" != 1; then
b12915c1 2157 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2158 fi
2159
b12915c1 2160 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2161 echo "$ac_t""yes" 1>&6
10f2d63a 2162 else
a0b9e27f 2163 echo "$ac_t""no" 1>&6
10f2d63a 2164 fi
a0b9e27f 2165
10f2d63a 2166
b12915c1
VZ
2167fi
2168
5c6fa7d2 2169
a0b9e27f 2170 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
3bce6687 2171echo "configure:2172: checking for --with-dmalloc" >&5
8284b0c5 2172 no_cache=0
a0b9e27f 2173 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2174if test "${with_dmalloc+set}" = set; then
2175 withval="$with_dmalloc"
a0b9e27f 2176
c7a2bf27 2177 if test "$withval" = yes; then
b12915c1 2178 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2179 else
b12915c1 2180 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2181 fi
a0b9e27f 2182
c7a2bf27 2183else
a0b9e27f 2184
b12915c1 2185 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2186 if test "x$LINE" != x ; then
2187 eval "DEFAULT_$LINE"
2188 else
2189 no_cache=1
2190 fi
2191
b12915c1 2192 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2193
2194fi
c7a2bf27
RR
2195
2196
b12915c1 2197 eval "$ac_cv_use_dmalloc"
c7a2bf27 2198 if test "$no_cache" != 1; then
b12915c1 2199 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2200 fi
2201
b12915c1 2202 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2203 echo "$ac_t""yes" 1>&6
c7a2bf27 2204 else
a0b9e27f 2205 echo "$ac_t""no" 1>&6
c7a2bf27 2206 fi
a0b9e27f 2207
c7a2bf27 2208
a0b9e27f 2209 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
3bce6687 2210echo "configure:2211: checking for --with-regex" >&5
3e44f09d 2211 no_cache=0
a0b9e27f 2212 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2213if test "${with_regex+set}" = set; then
2214 withval="$with_regex"
a0b9e27f 2215
3e44f09d
VZ
2216 if test "$withval" = yes; then
2217 ac_cv_use_regex='wxUSE_REGEX=yes'
2218 elif test "$withval" = no; then
2219 ac_cv_use_regex='wxUSE_REGEX=no'
2220 elif test "$withval" = sys; then
2221 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2222 elif test "$withval" = builtin; then
2223 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2224 else
a0b9e27f 2225 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2226 fi
a0b9e27f 2227
3e44f09d 2228else
a0b9e27f 2229
3e44f09d
VZ
2230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2231 if test "x$LINE" != x ; then
2232 eval "DEFAULT_$LINE"
2233 else
2234 no_cache=1
2235 fi
2236
2237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2238
2239fi
3e44f09d
VZ
2240
2241
2242 eval "$ac_cv_use_regex"
2243 if test "$no_cache" != 1; then
2244 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2245 fi
2246
2247 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2248 echo "$ac_t""yes" 1>&6
3e44f09d 2249 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2250 echo "$ac_t""no" 1>&6
3e44f09d 2251 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2252 echo "$ac_t""system version" 1>&6
4f14bcd8 2253 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2254 echo "$ac_t""builtin version" 1>&6
3e44f09d 2255 else
a0b9e27f 2256 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2257 fi
a0b9e27f 2258
3e44f09d 2259
a0b9e27f 2260 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
3bce6687 2261echo "configure:2262: checking for --with-zlib" >&5
10f2d63a 2262 no_cache=0
a0b9e27f 2263 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2264if test "${with_zlib+set}" = set; then
2265 withval="$with_zlib"
a0b9e27f 2266
10f2d63a 2267 if test "$withval" = yes; then
b12915c1 2268 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2269 elif test "$withval" = no; then
b12915c1 2270 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2271 elif test "$withval" = sys; then
2272 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2273 elif test "$withval" = builtin; then
2274 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2275 else
a0b9e27f 2276 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2277 fi
a0b9e27f 2278
10f2d63a 2279else
a0b9e27f 2280
b12915c1 2281 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2282 if test "x$LINE" != x ; then
2283 eval "DEFAULT_$LINE"
2284 else
2285 no_cache=1
2286 fi
2287
b12915c1 2288 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2289
2290fi
10f2d63a
VZ
2291
2292
b12915c1 2293 eval "$ac_cv_use_zlib"
10f2d63a 2294 if test "$no_cache" != 1; then
b12915c1 2295 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2296 fi
2297
b12915c1 2298 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2299 echo "$ac_t""yes" 1>&6
422107f9 2300 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2301 echo "$ac_t""no" 1>&6
422107f9 2302 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2303 echo "$ac_t""system version" 1>&6
4f14bcd8 2304 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2305 echo "$ac_t""builtin version" 1>&6
422107f9 2306 else
a0b9e27f 2307 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2308 fi
a0b9e27f 2309
10f2d63a 2310
a0b9e27f 2311 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
3bce6687 2312echo "configure:2313: checking for --with-odbc" >&5
10f2d63a 2313 no_cache=0
a0b9e27f 2314 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2315if test "${with_odbc+set}" = set; then
2316 withval="$with_odbc"
a0b9e27f 2317
10f2d63a
VZ
2318 if test "$withval" = yes; then
2319 ac_cv_use_odbc='wxUSE_ODBC=yes'
2320 else
2321 ac_cv_use_odbc='wxUSE_ODBC=no'
2322 fi
a0b9e27f 2323
10f2d63a 2324else
a0b9e27f 2325
10f2d63a
VZ
2326 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2327 if test "x$LINE" != x ; then
2328 eval "DEFAULT_$LINE"
2329 else
2330 no_cache=1
2331 fi
2332
2333 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2334
2335fi
10f2d63a
VZ
2336
2337
2338 eval "$ac_cv_use_odbc"
2339 if test "$no_cache" != 1; then
2340 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2341 fi
2342
2343 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2344 echo "$ac_t""yes" 1>&6
10f2d63a 2345 else
a0b9e27f 2346 echo "$ac_t""no" 1>&6
10f2d63a 2347 fi
a0b9e27f 2348
52127426 2349
8284b0c5
MB
2350
2351
a0b9e27f 2352 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
3bce6687 2353echo "configure:2354: checking for --enable-shared" >&5
10f2d63a
VZ
2354 no_cache=0
2355 # Check whether --enable-shared or --disable-shared was given.
2356if test "${enable_shared+set}" = set; then
2357 enableval="$enable_shared"
a0b9e27f 2358
10f2d63a
VZ
2359 if test "$enableval" = yes; then
2360 ac_cv_use_shared='wxUSE_SHARED=yes'
2361 else
2362 ac_cv_use_shared='wxUSE_SHARED=no'
2363 fi
a0b9e27f 2364
10f2d63a 2365else
a0b9e27f 2366
10f2d63a
VZ
2367 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
2374 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2375
2376fi
10f2d63a
VZ
2377
2378
2379 eval "$ac_cv_use_shared"
2380 if test "$no_cache" != 1; then
2381 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2382 fi
2383
2384 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2385 echo "$ac_t""yes" 1>&6
10f2d63a 2386 else
a0b9e27f 2387 echo "$ac_t""no" 1>&6
10f2d63a 2388 fi
a0b9e27f 2389
10f2d63a 2390
a0b9e27f 2391 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
3bce6687 2392echo "configure:2393: checking for --enable-soname" >&5
00cf1208 2393 no_cache=0
3a922bb4
RL
2394 # Check whether --enable-soname or --disable-soname was given.
2395if test "${enable_soname+set}" = set; then
2396 enableval="$enable_soname"
a0b9e27f 2397
00cf1208 2398 if test "$enableval" = yes; then
3a922bb4 2399 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2400 else
3a922bb4 2401 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2402 fi
a0b9e27f 2403
00cf1208 2404else
a0b9e27f 2405
3a922bb4 2406 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
3a922bb4 2413 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2414
2415fi
00cf1208
RR
2416
2417
3a922bb4 2418 eval "$ac_cv_use_soname"
00cf1208 2419 if test "$no_cache" != 1; then
3a922bb4 2420 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2421 fi
2422
3a922bb4 2423 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2424 echo "$ac_t""yes" 1>&6
00cf1208 2425 else
a0b9e27f 2426 echo "$ac_t""no" 1>&6
00cf1208 2427 fi
a0b9e27f 2428
00cf1208 2429
a0b9e27f 2430 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
3bce6687 2431echo "configure:2432: checking for --enable-optimise" >&5
10f2d63a
VZ
2432 no_cache=0
2433 # Check whether --enable-optimise or --disable-optimise was given.
2434if test "${enable_optimise+set}" = set; then
2435 enableval="$enable_optimise"
a0b9e27f 2436
10f2d63a
VZ
2437 if test "$enableval" = yes; then
2438 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2439 else
2440 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2441 fi
a0b9e27f 2442
10f2d63a 2443else
a0b9e27f 2444
10f2d63a
VZ
2445 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2453
2454fi
10f2d63a
VZ
2455
2456
2457 eval "$ac_cv_use_optimise"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2463 echo "$ac_t""yes" 1>&6
10f2d63a 2464 else
a0b9e27f 2465 echo "$ac_t""no" 1>&6
10f2d63a 2466 fi
a0b9e27f 2467
10f2d63a 2468
a0b9e27f 2469 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
3bce6687 2470echo "configure:2471: checking for --enable-debug" >&5
10f2d63a
VZ
2471 no_cache=0
2472 # Check whether --enable-debug or --disable-debug was given.
2473if test "${enable_debug+set}" = set; then
2474 enableval="$enable_debug"
a0b9e27f 2475
10f2d63a
VZ
2476 if test "$enableval" = yes; then
2477 ac_cv_use_debug='wxUSE_DEBUG=yes'
2478 else
2479 ac_cv_use_debug='wxUSE_DEBUG=no'
2480 fi
a0b9e27f 2481
10f2d63a 2482else
a0b9e27f 2483
10f2d63a
VZ
2484 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2492
2493fi
10f2d63a
VZ
2494
2495
2496 eval "$ac_cv_use_debug"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2502 echo "$ac_t""yes" 1>&6
10f2d63a 2503 else
a0b9e27f 2504 echo "$ac_t""no" 1>&6
10f2d63a 2505 fi
a0b9e27f 2506
52127426 2507
8284b0c5 2508
a0b9e27f 2509 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
3bce6687 2510echo "configure:2511: checking for --enable-precomp" >&5
683dccda
GD
2511 no_cache=0
2512 # Check whether --enable-precomp or --disable-precomp was given.
2513if test "${enable_precomp+set}" = set; then
2514 enableval="$enable_precomp"
a0b9e27f 2515
683dccda
GD
2516 if test "$enableval" = yes; then
2517 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2518 else
2519 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2520 fi
a0b9e27f 2521
683dccda 2522else
a0b9e27f 2523
683dccda
GD
2524 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2525 if test "x$LINE" != x ; then
2526 eval "DEFAULT_$LINE"
2527 else
2528 no_cache=1
2529 fi
2530
2531 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2532
2533fi
683dccda
GD
2534
2535
2536 eval "$ac_cv_use_precomp"
2537 if test "$no_cache" != 1; then
2538 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2539 fi
2540
2541 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2542 echo "$ac_t""yes" 1>&6
683dccda 2543 else
a0b9e27f 2544 echo "$ac_t""no" 1>&6
683dccda 2545 fi
a0b9e27f 2546
683dccda 2547
10f2d63a
VZ
2548if test "$wxUSE_DEBUG" = "yes"; then
2549 DEFAULT_wxUSE_DEBUG_FLAG=yes
2550 DEFAULT_wxUSE_DEBUG_INFO=yes
2551elif test "$wxUSE_DEBUG" = "no"; then
2552 DEFAULT_wxUSE_DEBUG_FLAG=no
2553 DEFAULT_wxUSE_DEBUG_INFO=no
2554fi
2555
8284b0c5 2556
a0b9e27f 2557 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
3bce6687 2558echo "configure:2559: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2559 no_cache=0
2560 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2561if test "${enable_debug_flag+set}" = set; then
2562 enableval="$enable_debug_flag"
a0b9e27f 2563
10f2d63a
VZ
2564 if test "$enableval" = yes; then
2565 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2566 else
2567 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2568 fi
a0b9e27f 2569
10f2d63a 2570else
a0b9e27f 2571
10f2d63a
VZ
2572 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2573 if test "x$LINE" != x ; then
2574 eval "DEFAULT_$LINE"
2575 else
2576 no_cache=1
2577 fi
2578
2579 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2580
2581fi
10f2d63a
VZ
2582
2583
2584 eval "$ac_cv_use_debug_flag"
2585 if test "$no_cache" != 1; then
2586 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2587 fi
2588
2589 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2590 echo "$ac_t""yes" 1>&6
10f2d63a 2591 else
a0b9e27f 2592 echo "$ac_t""no" 1>&6
10f2d63a 2593 fi
a0b9e27f 2594
10f2d63a 2595
a0b9e27f 2596 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
3bce6687 2597echo "configure:2598: checking for --enable-debug_info" >&5
10f2d63a
VZ
2598 no_cache=0
2599 # Check whether --enable-debug_info or --disable-debug_info was given.
2600if test "${enable_debug_info+set}" = set; then
2601 enableval="$enable_debug_info"
a0b9e27f 2602
10f2d63a
VZ
2603 if test "$enableval" = yes; then
2604 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2605 else
2606 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2607 fi
a0b9e27f 2608
10f2d63a 2609else
a0b9e27f 2610
10f2d63a
VZ
2611 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2612 if test "x$LINE" != x ; then
2613 eval "DEFAULT_$LINE"
2614 else
2615 no_cache=1
2616 fi
2617
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2619
2620fi
10f2d63a
VZ
2621
2622
2623 eval "$ac_cv_use_debug_info"
2624 if test "$no_cache" != 1; then
2625 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2626 fi
2627
2628 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2629 echo "$ac_t""yes" 1>&6
10f2d63a 2630 else
a0b9e27f 2631 echo "$ac_t""no" 1>&6
10f2d63a 2632 fi
a0b9e27f 2633
10f2d63a 2634
a0b9e27f 2635 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
3bce6687 2636echo "configure:2637: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2637 no_cache=0
2638 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2639if test "${enable_debug_gdb+set}" = set; then
2640 enableval="$enable_debug_gdb"
a0b9e27f 2641
10f2d63a
VZ
2642 if test "$enableval" = yes; then
2643 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2644 else
2645 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2646 fi
a0b9e27f 2647
10f2d63a 2648else
a0b9e27f 2649
10f2d63a
VZ
2650 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2651 if test "x$LINE" != x ; then
2652 eval "DEFAULT_$LINE"
2653 else
2654 no_cache=1
2655 fi
2656
2657 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2658
2659fi
10f2d63a
VZ
2660
2661
2662 eval "$ac_cv_use_debug_gdb"
2663 if test "$no_cache" != 1; then
2664 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2665 fi
2666
2667 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2668 echo "$ac_t""yes" 1>&6
10f2d63a 2669 else
a0b9e27f 2670 echo "$ac_t""no" 1>&6
10f2d63a 2671 fi
a0b9e27f 2672
10f2d63a 2673
a0b9e27f 2674 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
3bce6687 2675echo "configure:2676: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2676 no_cache=0
2677 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2678if test "${enable_debug_cntxt+set}" = set; then
2679 enableval="$enable_debug_cntxt"
a0b9e27f 2680
10f2d63a
VZ
2681 if test "$enableval" = yes; then
2682 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2683 else
2684 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2685 fi
a0b9e27f 2686
10f2d63a 2687else
a0b9e27f 2688
10f2d63a
VZ
2689 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2697
2698fi
10f2d63a
VZ
2699
2700
2701 eval "$ac_cv_use_debug_cntxt"
2702 if test "$no_cache" != 1; then
2703 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2704 fi
2705
2706 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2707 echo "$ac_t""yes" 1>&6
10f2d63a 2708 else
a0b9e27f 2709 echo "$ac_t""no" 1>&6
10f2d63a 2710 fi
a0b9e27f 2711
10f2d63a 2712
a0b9e27f 2713 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
3bce6687 2714echo "configure:2715: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2715 no_cache=0
2716 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2717if test "${enable_mem_tracing+set}" = set; then
2718 enableval="$enable_mem_tracing"
a0b9e27f 2719
10f2d63a
VZ
2720 if test "$enableval" = yes; then
2721 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2722 else
2723 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2724 fi
a0b9e27f 2725
10f2d63a 2726else
a0b9e27f 2727
10f2d63a
VZ
2728 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2729 if test "x$LINE" != x ; then
2730 eval "DEFAULT_$LINE"
2731 else
2732 no_cache=1
2733 fi
2734
2735 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2736
2737fi
10f2d63a
VZ
2738
2739
2740 eval "$ac_cv_use_mem_tracing"
2741 if test "$no_cache" != 1; then
2742 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2743 fi
2744
2745 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2746 echo "$ac_t""yes" 1>&6
10f2d63a 2747 else
a0b9e27f 2748 echo "$ac_t""no" 1>&6
10f2d63a 2749 fi
a0b9e27f 2750
10f2d63a 2751
a0b9e27f 2752 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
3bce6687 2753echo "configure:2754: checking for --enable-profile" >&5
10f2d63a
VZ
2754 no_cache=0
2755 # Check whether --enable-profile or --disable-profile was given.
2756if test "${enable_profile+set}" = set; then
2757 enableval="$enable_profile"
a0b9e27f 2758
10f2d63a
VZ
2759 if test "$enableval" = yes; then
2760 ac_cv_use_profile='wxUSE_PROFILE=yes'
2761 else
2762 ac_cv_use_profile='wxUSE_PROFILE=no'
2763 fi
a0b9e27f 2764
10f2d63a 2765else
a0b9e27f 2766
10f2d63a
VZ
2767 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2775
2776fi
10f2d63a
VZ
2777
2778
2779 eval "$ac_cv_use_profile"
2780 if test "$no_cache" != 1; then
2781 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2782 fi
2783
2784 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2785 echo "$ac_t""yes" 1>&6
10f2d63a 2786 else
a0b9e27f 2787 echo "$ac_t""no" 1>&6
10f2d63a 2788 fi
a0b9e27f 2789
10f2d63a 2790
a0b9e27f 2791 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
3bce6687 2792echo "configure:2793: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2793 no_cache=0
2794 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2795if test "${enable_no_rtti+set}" = set; then
2796 enableval="$enable_no_rtti"
a0b9e27f 2797
10f2d63a
VZ
2798 if test "$enableval" = yes; then
2799 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2800 else
2801 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2802 fi
a0b9e27f 2803
10f2d63a 2804else
a0b9e27f 2805
10f2d63a
VZ
2806 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2814
2815fi
10f2d63a
VZ
2816
2817
2818 eval "$ac_cv_use_no_rtti"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2824 echo "$ac_t""yes" 1>&6
10f2d63a 2825 else
a0b9e27f 2826 echo "$ac_t""no" 1>&6
10f2d63a 2827 fi
a0b9e27f 2828
10f2d63a 2829
a0b9e27f 2830 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
3bce6687 2831echo "configure:2832: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2832 no_cache=0
2833 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2834if test "${enable_no_exceptions+set}" = set; then
2835 enableval="$enable_no_exceptions"
a0b9e27f 2836
10f2d63a
VZ
2837 if test "$enableval" = yes; then
2838 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2839 else
2840 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2841 fi
a0b9e27f 2842
10f2d63a 2843else
a0b9e27f 2844
10f2d63a
VZ
2845 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2853
2854fi
10f2d63a
VZ
2855
2856
2857 eval "$ac_cv_use_no_exceptions"
2858 if test "$no_cache" != 1; then
2859 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2860 fi
2861
2862 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2863 echo "$ac_t""yes" 1>&6
10f2d63a 2864 else
a0b9e27f 2865 echo "$ac_t""no" 1>&6
10f2d63a 2866 fi
a0b9e27f 2867
10f2d63a 2868
a0b9e27f 2869 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
3bce6687 2870echo "configure:2871: checking for --enable-permissive" >&5
10f2d63a
VZ
2871 no_cache=0
2872 # Check whether --enable-permissive or --disable-permissive was given.
2873if test "${enable_permissive+set}" = set; then
2874 enableval="$enable_permissive"
a0b9e27f 2875
10f2d63a
VZ
2876 if test "$enableval" = yes; then
2877 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2878 else
2879 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2880 fi
a0b9e27f 2881
10f2d63a 2882else
a0b9e27f 2883
10f2d63a
VZ
2884 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2885 if test "x$LINE" != x ; then
2886 eval "DEFAULT_$LINE"
2887 else
2888 no_cache=1
2889 fi
2890
2891 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2892
2893fi
10f2d63a
VZ
2894
2895
2896 eval "$ac_cv_use_permissive"
2897 if test "$no_cache" != 1; then
2898 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2899 fi
2900
2901 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2902 echo "$ac_t""yes" 1>&6
10f2d63a 2903 else
a0b9e27f 2904 echo "$ac_t""no" 1>&6
10f2d63a 2905 fi
a0b9e27f 2906
10f2d63a 2907
a0b9e27f 2908 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
3bce6687 2909echo "configure:2910: checking for --enable-no_deps" >&5
10f2d63a
VZ
2910 no_cache=0
2911 # Check whether --enable-no_deps or --disable-no_deps was given.
2912if test "${enable_no_deps+set}" = set; then
2913 enableval="$enable_no_deps"
a0b9e27f 2914
10f2d63a
VZ
2915 if test "$enableval" = yes; then
2916 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2917 else
2918 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2919 fi
a0b9e27f 2920
10f2d63a 2921else
a0b9e27f 2922
10f2d63a
VZ
2923 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2924 if test "x$LINE" != x ; then
2925 eval "DEFAULT_$LINE"
2926 else
2927 no_cache=1
2928 fi
2929
2930 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2931
2932fi
10f2d63a
VZ
2933
2934
2935 eval "$ac_cv_use_no_deps"
2936 if test "$no_cache" != 1; then
2937 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2938 fi
2939
2940 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2941 echo "$ac_t""yes" 1>&6
10f2d63a 2942 else
a0b9e27f 2943 echo "$ac_t""no" 1>&6
10f2d63a 2944 fi
a0b9e27f 2945
52127426 2946
8284b0c5 2947
a0b9e27f 2948 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
3bce6687 2949echo "configure:2950: checking for --enable-compat20" >&5
54276ccf
VZ
2950 no_cache=0
2951 # Check whether --enable-compat20 or --disable-compat20 was given.
2952if test "${enable_compat20+set}" = set; then
2953 enableval="$enable_compat20"
a0b9e27f 2954
54276ccf
VZ
2955 if test "$enableval" = yes; then
2956 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2957 else
2958 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2959 fi
a0b9e27f 2960
54276ccf 2961else
a0b9e27f 2962
54276ccf
VZ
2963 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
2971
2972fi
54276ccf
VZ
2973
2974
2975 eval "$ac_cv_use_compat20"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 2981 echo "$ac_t""yes" 1>&6
54276ccf 2982 else
a0b9e27f 2983 echo "$ac_t""no" 1>&6
54276ccf 2984 fi
a0b9e27f 2985
54276ccf 2986
a0b9e27f 2987 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3bce6687 2988echo "configure:2989: checking for --enable-compat22" >&5
54276ccf
VZ
2989 no_cache=0
2990 # Check whether --enable-compat22 or --disable-compat22 was given.
2991if test "${enable_compat22+set}" = set; then
2992 enableval="$enable_compat22"
a0b9e27f 2993
54276ccf
VZ
2994 if test "$enableval" = yes; then
2995 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2996 else
2997 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2998 fi
a0b9e27f 2999
54276ccf 3000else
a0b9e27f 3001
54276ccf
VZ
3002 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3010
3011fi
54276ccf
VZ
3012
3013
3014 eval "$ac_cv_use_compat22"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3020 echo "$ac_t""yes" 1>&6
54276ccf 3021 else
a0b9e27f 3022 echo "$ac_t""no" 1>&6
54276ccf 3023 fi
a0b9e27f 3024
54276ccf 3025
3bd8fb5f
RD
3026# Check whether --enable-rpath or --disable-rpath was given.
3027if test "${enable_rpath+set}" = set; then
3028 enableval="$enable_rpath"
3029 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3030fi
3031
3bd8fb5f
RD
3032
3033if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3034 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3035fi
3036
8284b0c5
MB
3037
3038
3039
a0b9e27f 3040 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3bce6687 3041echo "configure:3042: checking for --enable-intl" >&5
10f2d63a
VZ
3042 no_cache=0
3043 # Check whether --enable-intl or --disable-intl was given.
3044if test "${enable_intl+set}" = set; then
3045 enableval="$enable_intl"
a0b9e27f 3046
10f2d63a
VZ
3047 if test "$enableval" = yes; then
3048 ac_cv_use_intl='wxUSE_INTL=yes'
3049 else
3050 ac_cv_use_intl='wxUSE_INTL=no'
3051 fi
a0b9e27f 3052
10f2d63a 3053else
a0b9e27f 3054
10f2d63a
VZ
3055 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3063
3064fi
10f2d63a
VZ
3065
3066
3067 eval "$ac_cv_use_intl"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3073 echo "$ac_t""yes" 1>&6
10f2d63a 3074 else
a0b9e27f 3075 echo "$ac_t""no" 1>&6
10f2d63a 3076 fi
a0b9e27f 3077
10f2d63a 3078
a0b9e27f 3079 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3bce6687 3080echo "configure:3081: checking for --enable-config" >&5
10f2d63a
VZ
3081 no_cache=0
3082 # Check whether --enable-config or --disable-config was given.
3083if test "${enable_config+set}" = set; then
3084 enableval="$enable_config"
a0b9e27f 3085
10f2d63a
VZ
3086 if test "$enableval" = yes; then
3087 ac_cv_use_config='wxUSE_CONFIG=yes'
3088 else
3089 ac_cv_use_config='wxUSE_CONFIG=no'
3090 fi
a0b9e27f 3091
10f2d63a 3092else
a0b9e27f 3093
10f2d63a
VZ
3094 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3102
3103fi
10f2d63a
VZ
3104
3105
3106 eval "$ac_cv_use_config"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3112 echo "$ac_t""yes" 1>&6
10f2d63a 3113 else
a0b9e27f 3114 echo "$ac_t""no" 1>&6
10f2d63a 3115 fi
a0b9e27f 3116
52127426 3117
8284b0c5 3118
a0b9e27f 3119 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3bce6687 3120echo "configure:3121: checking for --enable-protocols" >&5
a1622950
VZ
3121 no_cache=0
3122 # Check whether --enable-protocols or --disable-protocols was given.
3123if test "${enable_protocols+set}" = set; then
3124 enableval="$enable_protocols"
a0b9e27f 3125
a1622950
VZ
3126 if test "$enableval" = yes; then
3127 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3128 else
3129 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3130 fi
a0b9e27f 3131
a1622950 3132else
a0b9e27f 3133
a1622950
VZ
3134 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3142
3143fi
a1622950
VZ
3144
3145
3146 eval "$ac_cv_use_protocols"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3152 echo "$ac_t""yes" 1>&6
a1622950 3153 else
a0b9e27f 3154 echo "$ac_t""no" 1>&6
a1622950 3155 fi
a0b9e27f 3156
a1622950 3157
a0b9e27f 3158 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3bce6687 3159echo "configure:3160: checking for --enable-ftp" >&5
a1622950
VZ
3160 no_cache=0
3161 # Check whether --enable-ftp or --disable-ftp was given.
3162if test "${enable_ftp+set}" = set; then
3163 enableval="$enable_ftp"
a0b9e27f 3164
a1622950
VZ
3165 if test "$enableval" = yes; then
3166 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3167 else
3168 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3169 fi
a0b9e27f 3170
a1622950 3171else
a0b9e27f 3172
a1622950
VZ
3173 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3181
3182fi
a1622950
VZ
3183
3184
3185 eval "$ac_cv_use_ftp"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3191 echo "$ac_t""yes" 1>&6
a1622950 3192 else
a0b9e27f 3193 echo "$ac_t""no" 1>&6
a1622950 3194 fi
a0b9e27f 3195
a1622950 3196
a0b9e27f 3197 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3bce6687 3198echo "configure:3199: checking for --enable-http" >&5
a1622950
VZ
3199 no_cache=0
3200 # Check whether --enable-http or --disable-http was given.
3201if test "${enable_http+set}" = set; then
3202 enableval="$enable_http"
a0b9e27f 3203
a1622950
VZ
3204 if test "$enableval" = yes; then
3205 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3206 else
3207 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3208 fi
a0b9e27f 3209
a1622950 3210else
a0b9e27f 3211
a1622950
VZ
3212 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3220
3221fi
a1622950
VZ
3222
3223
3224 eval "$ac_cv_use_http"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3230 echo "$ac_t""yes" 1>&6
a1622950 3231 else
a0b9e27f 3232 echo "$ac_t""no" 1>&6
a1622950 3233 fi
a0b9e27f 3234
a1622950 3235
a0b9e27f 3236 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3bce6687 3237echo "configure:3238: checking for --enable-fileproto" >&5
a1622950
VZ
3238 no_cache=0
3239 # Check whether --enable-fileproto or --disable-fileproto was given.
3240if test "${enable_fileproto+set}" = set; then
3241 enableval="$enable_fileproto"
a0b9e27f 3242
a1622950
VZ
3243 if test "$enableval" = yes; then
3244 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3245 else
3246 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3247 fi
a0b9e27f 3248
a1622950 3249else
a0b9e27f 3250
a1622950
VZ
3251 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3259
3260fi
a1622950
VZ
3261
3262
3263 eval "$ac_cv_use_fileproto"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3269 echo "$ac_t""yes" 1>&6
a1622950 3270 else
a0b9e27f 3271 echo "$ac_t""no" 1>&6
a1622950 3272 fi
a0b9e27f 3273
a1622950 3274
a0b9e27f 3275 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3bce6687 3276echo "configure:3277: checking for --enable-sockets" >&5
10f2d63a
VZ
3277 no_cache=0
3278 # Check whether --enable-sockets or --disable-sockets was given.
3279if test "${enable_sockets+set}" = set; then
3280 enableval="$enable_sockets"
a0b9e27f 3281
10f2d63a
VZ
3282 if test "$enableval" = yes; then
3283 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3284 else
3285 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3286 fi
a0b9e27f 3287
10f2d63a 3288else
a0b9e27f 3289
10f2d63a
VZ
3290 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3298
3299fi
10f2d63a
VZ
3300
3301
3302 eval "$ac_cv_use_sockets"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3308 echo "$ac_t""yes" 1>&6
10f2d63a 3309 else
a0b9e27f 3310 echo "$ac_t""no" 1>&6
10f2d63a 3311 fi
a0b9e27f 3312
8284b0c5 3313
3bce6687
JS
3314 echo $ac_n "checking for --enable-ole""... $ac_c" 1>&6
3315echo "configure:3316: checking for --enable-ole" >&5
3316 no_cache=0
3317 # Check whether --enable-ole or --disable-ole was given.
3318if test "${enable_ole+set}" = set; then
3319 enableval="$enable_ole"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_ole='wxUSE_OLE=yes'
3323 else
3324 ac_cv_use_ole='wxUSE_OLE=no'
3325 fi
3326
3327else
3328
3329 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3337
3338fi
3339
3340
3341 eval "$ac_cv_use_ole"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_OLE" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-dataobj""... $ac_c" 1>&6
3354echo "configure:3355: checking for --enable-dataobj" >&5
3355 no_cache=0
3356 # Check whether --enable-dataobj or --disable-dataobj was given.
3357if test "${enable_dataobj+set}" = set; then
3358 enableval="$enable_dataobj"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3362 else
3363 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3376
3377fi
3378
3379
3380 eval "$ac_cv_use_dataobj"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_DATAOBJ" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
52127426 3392
a0b9e27f 3393 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3bce6687 3394echo "configure:3395: checking for --enable-ipc" >&5
10f2d63a 3395 no_cache=0
eb4efbdc
VZ
3396 # Check whether --enable-ipc or --disable-ipc was given.
3397if test "${enable_ipc+set}" = set; then
3398 enableval="$enable_ipc"
a0b9e27f 3399
10f2d63a 3400 if test "$enableval" = yes; then
eb4efbdc 3401 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3402 else
eb4efbdc 3403 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3404 fi
a0b9e27f 3405
10f2d63a 3406else
a0b9e27f 3407
eb4efbdc 3408 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
eb4efbdc 3415 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3416
3417fi
10f2d63a
VZ
3418
3419
eb4efbdc 3420 eval "$ac_cv_use_ipc"
10f2d63a 3421 if test "$no_cache" != 1; then
eb4efbdc 3422 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3423 fi
3424
eb4efbdc 3425 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3426 echo "$ac_t""yes" 1>&6
10f2d63a 3427 else
a0b9e27f 3428 echo "$ac_t""no" 1>&6
10f2d63a 3429 fi
a0b9e27f 3430
52127426 3431
8284b0c5 3432
a0b9e27f 3433 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3bce6687 3434echo "configure:3435: checking for --enable-cmdline" >&5
1e6feb95
VZ
3435 no_cache=0
3436 # Check whether --enable-cmdline or --disable-cmdline was given.
3437if test "${enable_cmdline+set}" = set; then
3438 enableval="$enable_cmdline"
a0b9e27f 3439
1e6feb95
VZ
3440 if test "$enableval" = yes; then
3441 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3442 else
3443 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3444 fi
a0b9e27f 3445
1e6feb95 3446else
a0b9e27f 3447
1e6feb95
VZ
3448 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3456
3457fi
1e6feb95
VZ
3458
3459
3460 eval "$ac_cv_use_cmdline"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3466 echo "$ac_t""yes" 1>&6
1e6feb95 3467 else
a0b9e27f 3468 echo "$ac_t""no" 1>&6
1e6feb95 3469 fi
a0b9e27f 3470
1e6feb95 3471
a0b9e27f 3472 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3bce6687 3473echo "configure:3474: checking for --enable-datetime" >&5
1e6feb95
VZ
3474 no_cache=0
3475 # Check whether --enable-datetime or --disable-datetime was given.
3476if test "${enable_datetime+set}" = set; then
3477 enableval="$enable_datetime"
a0b9e27f 3478
1e6feb95
VZ
3479 if test "$enableval" = yes; then
3480 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3481 else
3482 ac_cv_use_datetime='wxUSE_DATETIME=no'
3483 fi
a0b9e27f 3484
1e6feb95 3485else
a0b9e27f 3486
1e6feb95
VZ
3487 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3495
3496fi
1e6feb95
VZ
3497
3498
3499 eval "$ac_cv_use_datetime"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3505 echo "$ac_t""yes" 1>&6
1e6feb95 3506 else
a0b9e27f 3507 echo "$ac_t""no" 1>&6
1e6feb95 3508 fi
a0b9e27f 3509
1e6feb95 3510
a0b9e27f 3511 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3bce6687 3512echo "configure:3513: checking for --enable-timedate" >&5
1e6feb95
VZ
3513 no_cache=0
3514 # Check whether --enable-timedate or --disable-timedate was given.
3515if test "${enable_timedate+set}" = set; then
3516 enableval="$enable_timedate"
a0b9e27f 3517
1e6feb95
VZ
3518 if test "$enableval" = yes; then
3519 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3520 else
3521 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3522 fi
a0b9e27f 3523
1e6feb95 3524else
a0b9e27f 3525
1e6feb95
VZ
3526 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
a0b9e27f
MB
3534
3535fi
1e6feb95
VZ
3536
3537
3538 eval "$ac_cv_use_timedate"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_TIMEDATE" = yes; then
a0b9e27f 3544 echo "$ac_t""yes" 1>&6
1e6feb95 3545 else
a0b9e27f 3546 echo "$ac_t""no" 1>&6
1e6feb95 3547 fi
a0b9e27f 3548
1e6feb95 3549
a0b9e27f 3550 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3bce6687 3551echo "configure:3552: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3552 no_cache=0
3553 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3554if test "${enable_stopwatch+set}" = set; then
3555 enableval="$enable_stopwatch"
a0b9e27f 3556
1e6feb95
VZ
3557 if test "$enableval" = yes; then
3558 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3559 else
3560 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3561 fi
a0b9e27f 3562
1e6feb95 3563else
a0b9e27f 3564
1e6feb95
VZ
3565 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3573
3574fi
1e6feb95
VZ
3575
3576
3577 eval "$ac_cv_use_stopwatch"
3578 if test "$no_cache" != 1; then
3579 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3580 fi
3581
3582 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3583 echo "$ac_t""yes" 1>&6
1e6feb95 3584 else
a0b9e27f 3585 echo "$ac_t""no" 1>&6
1e6feb95 3586 fi
a0b9e27f 3587
1e6feb95 3588
a0b9e27f 3589 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3bce6687 3590echo "configure:3591: checking for --enable-dialupman" >&5
10f2d63a 3591 no_cache=0
eb4efbdc
VZ
3592 # Check whether --enable-dialupman or --disable-dialupman was given.
3593if test "${enable_dialupman+set}" = set; then
3594 enableval="$enable_dialupman"
a0b9e27f 3595
10f2d63a 3596 if test "$enableval" = yes; then
eb4efbdc 3597 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3598 else
eb4efbdc 3599 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3600 fi
a0b9e27f 3601
10f2d63a 3602else
a0b9e27f 3603
eb4efbdc 3604 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
eb4efbdc 3611 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3612
3613fi
10f2d63a
VZ
3614
3615
eb4efbdc 3616 eval "$ac_cv_use_dialupman"
10f2d63a 3617 if test "$no_cache" != 1; then
eb4efbdc 3618 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3619 fi
3620
eb4efbdc 3621 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3622 echo "$ac_t""yes" 1>&6
10f2d63a 3623 else
a0b9e27f 3624 echo "$ac_t""no" 1>&6
10f2d63a 3625 fi
a0b9e27f 3626
10f2d63a 3627
a0b9e27f 3628 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3bce6687 3629echo "configure:3630: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3632if test "${enable_apple_ieee+set}" = set; then
3633 enableval="$enable_apple_ieee"
a0b9e27f 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3637 else
3638 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3639 fi
a0b9e27f 3640
10f2d63a 3641else
a0b9e27f 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3651
3652fi
10f2d63a
VZ
3653
3654
3655 eval "$ac_cv_use_apple_ieee"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3661 echo "$ac_t""yes" 1>&6
10f2d63a 3662 else
a0b9e27f 3663 echo "$ac_t""no" 1>&6
10f2d63a 3664 fi
a0b9e27f 3665
10f2d63a 3666
a0b9e27f 3667 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3bce6687 3668echo "configure:3669: checking for --enable-timer" >&5
10f2d63a 3669 no_cache=0
1e6feb95
VZ
3670 # Check whether --enable-timer or --disable-timer was given.
3671if test "${enable_timer+set}" = set; then
3672 enableval="$enable_timer"
a0b9e27f 3673
10f2d63a 3674 if test "$enableval" = yes; then
1e6feb95 3675 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3676 else
1e6feb95 3677 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3678 fi
a0b9e27f 3679
10f2d63a 3680else
a0b9e27f 3681
1e6feb95 3682 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
1e6feb95 3689 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3690
3691fi
10f2d63a
VZ
3692
3693
1e6feb95 3694 eval "$ac_cv_use_timer"
10f2d63a 3695 if test "$no_cache" != 1; then
1e6feb95 3696 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3697 fi
3698
1e6feb95 3699 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3700 echo "$ac_t""yes" 1>&6
10f2d63a 3701 else
a0b9e27f 3702 echo "$ac_t""no" 1>&6
10f2d63a 3703 fi
a0b9e27f 3704
10f2d63a 3705
a0b9e27f 3706 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3bce6687 3707echo "configure:3708: checking for --enable-wave" >&5
10f2d63a
VZ
3708 no_cache=0
3709 # Check whether --enable-wave or --disable-wave was given.
3710if test "${enable_wave+set}" = set; then
3711 enableval="$enable_wave"
a0b9e27f 3712
10f2d63a
VZ
3713 if test "$enableval" = yes; then
3714 ac_cv_use_wave='wxUSE_WAVE=yes'
3715 else
3716 ac_cv_use_wave='wxUSE_WAVE=no'
3717 fi
a0b9e27f 3718
10f2d63a 3719else
a0b9e27f 3720
10f2d63a
VZ
3721 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3729
3730fi
10f2d63a
VZ
3731
3732
3733 eval "$ac_cv_use_wave"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3739 echo "$ac_t""yes" 1>&6
10f2d63a 3740 else
a0b9e27f 3741 echo "$ac_t""no" 1>&6
10f2d63a 3742 fi
a0b9e27f 3743
10f2d63a 3744
a0b9e27f 3745 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3bce6687 3746echo "configure:3747: checking for --enable-fraction" >&5
10f2d63a
VZ
3747 no_cache=0
3748 # Check whether --enable-fraction or --disable-fraction was given.
3749if test "${enable_fraction+set}" = set; then
3750 enableval="$enable_fraction"
a0b9e27f 3751
10f2d63a
VZ
3752 if test "$enableval" = yes; then
3753 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3754 else
3755 ac_cv_use_fraction='wxUSE_FRACTION=no'
3756 fi
a0b9e27f 3757
10f2d63a 3758else
a0b9e27f 3759
10f2d63a
VZ
3760 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3768
3769fi
10f2d63a
VZ
3770
3771
3772 eval "$ac_cv_use_fraction"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3778 echo "$ac_t""yes" 1>&6
10f2d63a 3779 else
a0b9e27f 3780 echo "$ac_t""no" 1>&6
10f2d63a 3781 fi
a0b9e27f 3782
10f2d63a 3783
a0b9e27f 3784 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3bce6687 3785echo "configure:3786: checking for --enable-dynlib" >&5
10f2d63a
VZ
3786 no_cache=0
3787 # Check whether --enable-dynlib or --disable-dynlib was given.
3788if test "${enable_dynlib+set}" = set; then
3789 enableval="$enable_dynlib"
a0b9e27f 3790
10f2d63a
VZ
3791 if test "$enableval" = yes; then
3792 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3793 else
3794 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3795 fi
a0b9e27f 3796
10f2d63a 3797else
a0b9e27f 3798
10f2d63a
VZ
3799 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3807
3808fi
10f2d63a
VZ
3809
3810
3811 eval "$ac_cv_use_dynlib"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3817 echo "$ac_t""yes" 1>&6
10f2d63a 3818 else
a0b9e27f 3819 echo "$ac_t""no" 1>&6
10f2d63a 3820 fi
a0b9e27f 3821
10f2d63a 3822
a0b9e27f 3823 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3bce6687 3824echo "configure:3825: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3825 no_cache=0
3826 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3827if test "${enable_dynamicloader+set}" = set; then
3828 enableval="$enable_dynamicloader"
a0b9e27f 3829
0b9ab0bd
RL
3830 if test "$enableval" = yes; then
3831 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3832 else
3833 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3834 fi
a0b9e27f 3835
0b9ab0bd 3836else
a0b9e27f 3837
0b9ab0bd
RL
3838 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3846
3847fi
0b9ab0bd
RL
3848
3849
3850 eval "$ac_cv_use_dynamicloader"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3856 echo "$ac_t""yes" 1>&6
0b9ab0bd 3857 else
a0b9e27f 3858 echo "$ac_t""no" 1>&6
0b9ab0bd 3859 fi
a0b9e27f 3860
0b9ab0bd 3861
a0b9e27f 3862 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3bce6687 3863echo "configure:3864: checking for --enable-longlong" >&5
10f2d63a
VZ
3864 no_cache=0
3865 # Check whether --enable-longlong or --disable-longlong was given.
3866if test "${enable_longlong+set}" = set; then
3867 enableval="$enable_longlong"
a0b9e27f 3868
10f2d63a
VZ
3869 if test "$enableval" = yes; then
3870 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3871 else
3872 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3873 fi
a0b9e27f 3874
10f2d63a 3875else
a0b9e27f 3876
10f2d63a
VZ
3877 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3885
3886fi
10f2d63a
VZ
3887
3888
3889 eval "$ac_cv_use_longlong"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3895 echo "$ac_t""yes" 1>&6
10f2d63a 3896 else
a0b9e27f 3897 echo "$ac_t""no" 1>&6
10f2d63a 3898 fi
a0b9e27f 3899
10f2d63a 3900
a0b9e27f 3901 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3bce6687 3902echo "configure:3903: checking for --enable-geometry" >&5
e8f65ba6
RR
3903 no_cache=0
3904 # Check whether --enable-geometry or --disable-geometry was given.
3905if test "${enable_geometry+set}" = set; then
3906 enableval="$enable_geometry"
a0b9e27f 3907
e8f65ba6
RR
3908 if test "$enableval" = yes; then
3909 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3910 else
3911 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3912 fi
a0b9e27f 3913
e8f65ba6 3914else
a0b9e27f 3915
e8f65ba6
RR
3916 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3917 if test "x$LINE" != x ; then
3918 eval "DEFAULT_$LINE"
3919 else
3920 no_cache=1
3921 fi
3922
3923 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3924
3925fi
e8f65ba6
RR
3926
3927
3928 eval "$ac_cv_use_geometry"
3929 if test "$no_cache" != 1; then
3930 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3931 fi
3932
3933 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3934 echo "$ac_t""yes" 1>&6
e8f65ba6 3935 else
a0b9e27f 3936 echo "$ac_t""no" 1>&6
e8f65ba6 3937 fi
a0b9e27f 3938
e8f65ba6 3939
a0b9e27f 3940 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3bce6687 3941echo "configure:3942: checking for --enable-log" >&5
10f2d63a
VZ
3942 no_cache=0
3943 # Check whether --enable-log or --disable-log was given.
3944if test "${enable_log+set}" = set; then
3945 enableval="$enable_log"
a0b9e27f 3946
10f2d63a
VZ
3947 if test "$enableval" = yes; then
3948 ac_cv_use_log='wxUSE_LOG=yes'
3949 else
3950 ac_cv_use_log='wxUSE_LOG=no'
3951 fi
a0b9e27f 3952
10f2d63a 3953else
a0b9e27f 3954
10f2d63a
VZ
3955 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
3963
3964fi
10f2d63a
VZ
3965
3966
3967 eval "$ac_cv_use_log"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_LOG" = yes; then
a0b9e27f 3973 echo "$ac_t""yes" 1>&6
10f2d63a 3974 else
a0b9e27f 3975 echo "$ac_t""no" 1>&6
10f2d63a 3976 fi
a0b9e27f 3977
10f2d63a 3978
a0b9e27f 3979 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3bce6687 3980echo "configure:3981: checking for --enable-streams" >&5
10f2d63a
VZ
3981 no_cache=0
3982 # Check whether --enable-streams or --disable-streams was given.
3983if test "${enable_streams+set}" = set; then
3984 enableval="$enable_streams"
a0b9e27f 3985
10f2d63a
VZ
3986 if test "$enableval" = yes; then
3987 ac_cv_use_streams='wxUSE_STREAMS=yes'
3988 else
3989 ac_cv_use_streams='wxUSE_STREAMS=no'
3990 fi
a0b9e27f 3991
10f2d63a 3992else
a0b9e27f 3993
10f2d63a
VZ
3994 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4002
4003fi
10f2d63a
VZ
4004
4005
4006 eval "$ac_cv_use_streams"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4012 echo "$ac_t""yes" 1>&6
10f2d63a 4013 else
a0b9e27f 4014 echo "$ac_t""no" 1>&6
10f2d63a 4015 fi
a0b9e27f 4016
10f2d63a 4017
a0b9e27f 4018 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3bce6687 4019echo "configure:4020: checking for --enable-file" >&5
10f2d63a
VZ
4020 no_cache=0
4021 # Check whether --enable-file or --disable-file was given.
4022if test "${enable_file+set}" = set; then
4023 enableval="$enable_file"
a0b9e27f 4024
10f2d63a
VZ
4025 if test "$enableval" = yes; then
4026 ac_cv_use_file='wxUSE_FILE=yes'
4027 else
4028 ac_cv_use_file='wxUSE_FILE=no'
4029 fi
a0b9e27f 4030
10f2d63a 4031else
a0b9e27f 4032
10f2d63a
VZ
4033 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4041
4042fi
10f2d63a
VZ
4043
4044
4045 eval "$ac_cv_use_file"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4051 echo "$ac_t""yes" 1>&6
10f2d63a 4052 else
a0b9e27f 4053 echo "$ac_t""no" 1>&6
10f2d63a 4054 fi
a0b9e27f 4055
10f2d63a 4056
a0b9e27f 4057 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3bce6687 4058echo "configure:4059: checking for --enable-ffile" >&5
10f2d63a 4059 no_cache=0
1e6feb95
VZ
4060 # Check whether --enable-ffile or --disable-ffile was given.
4061if test "${enable_ffile+set}" = set; then
4062 enableval="$enable_ffile"
a0b9e27f 4063
10f2d63a 4064 if test "$enableval" = yes; then
1e6feb95 4065 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4066 else
1e6feb95 4067 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4068 fi
a0b9e27f 4069
10f2d63a 4070else
a0b9e27f 4071
1e6feb95 4072 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
1e6feb95 4079 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4080
4081fi
10f2d63a
VZ
4082
4083
1e6feb95 4084 eval "$ac_cv_use_ffile"
10f2d63a 4085 if test "$no_cache" != 1; then
1e6feb95 4086 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4087 fi
4088
1e6feb95 4089 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4090 echo "$ac_t""yes" 1>&6
10f2d63a 4091 else
a0b9e27f 4092 echo "$ac_t""no" 1>&6
10f2d63a 4093 fi
a0b9e27f 4094
10f2d63a 4095
a0b9e27f 4096 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3bce6687 4097echo "configure:4098: checking for --enable-textbuf" >&5
a3a584a7
VZ
4098 no_cache=0
4099 # Check whether --enable-textbuf or --disable-textbuf was given.
4100if test "${enable_textbuf+set}" = set; then
4101 enableval="$enable_textbuf"
a0b9e27f 4102
a3a584a7
VZ
4103 if test "$enableval" = yes; then
4104 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4105 else
4106 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4107 fi
a0b9e27f 4108
a3a584a7 4109else
a0b9e27f 4110
a3a584a7
VZ
4111 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4119
4120fi
a3a584a7
VZ
4121
4122
4123 eval "$ac_cv_use_textbuf"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4129 echo "$ac_t""yes" 1>&6
a3a584a7 4130 else
a0b9e27f 4131 echo "$ac_t""no" 1>&6
a3a584a7 4132 fi
a0b9e27f 4133
a3a584a7 4134
a0b9e27f 4135 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3bce6687 4136echo "configure:4137: checking for --enable-textfile" >&5
10f2d63a 4137 no_cache=0
1e6feb95
VZ
4138 # Check whether --enable-textfile or --disable-textfile was given.
4139if test "${enable_textfile+set}" = set; then
4140 enableval="$enable_textfile"
a0b9e27f 4141
10f2d63a 4142 if test "$enableval" = yes; then
1e6feb95 4143 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4144 else
1e6feb95 4145 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4146 fi
a0b9e27f 4147
10f2d63a 4148else
a0b9e27f 4149
1e6feb95 4150 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
1e6feb95 4157 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4158
4159fi
10f2d63a
VZ
4160
4161
1e6feb95 4162 eval "$ac_cv_use_textfile"
10f2d63a 4163 if test "$no_cache" != 1; then
1e6feb95 4164 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4165 fi
4166
1e6feb95 4167 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4168 echo "$ac_t""yes" 1>&6
10f2d63a 4169 else
a0b9e27f 4170 echo "$ac_t""no" 1>&6
10f2d63a 4171 fi
a0b9e27f 4172
10f2d63a 4173
a0b9e27f 4174 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3bce6687 4175echo "configure:4176: checking for --enable-fontmap" >&5
10f2d63a 4176 no_cache=0
1e6feb95
VZ
4177 # Check whether --enable-fontmap or --disable-fontmap was given.
4178if test "${enable_fontmap+set}" = set; then
4179 enableval="$enable_fontmap"
a0b9e27f 4180
10f2d63a 4181 if test "$enableval" = yes; then
1e6feb95 4182 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4183 else
1e6feb95 4184 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4185 fi
a0b9e27f 4186
10f2d63a 4187else
a0b9e27f 4188
1e6feb95 4189 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
1e6feb95 4196 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4197
4198fi
10f2d63a
VZ
4199
4200
1e6feb95 4201 eval "$ac_cv_use_fontmap"
10f2d63a 4202 if test "$no_cache" != 1; then
1e6feb95 4203 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4204 fi
4205
1e6feb95 4206 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4207 echo "$ac_t""yes" 1>&6
10f2d63a 4208 else
a0b9e27f 4209 echo "$ac_t""no" 1>&6
10f2d63a 4210 fi
a0b9e27f 4211
10f2d63a 4212
a0b9e27f 4213 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3bce6687 4214echo "configure:4215: checking for --enable-unicode" >&5
10f2d63a 4215 no_cache=0
1e6feb95
VZ
4216 # Check whether --enable-unicode or --disable-unicode was given.
4217if test "${enable_unicode+set}" = set; then
4218 enableval="$enable_unicode"
a0b9e27f 4219
1e6feb95
VZ
4220 if test "$enableval" = yes; then
4221 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4222 else
4223 ac_cv_use_unicode='wxUSE_UNICODE=no'
4224 fi
a0b9e27f 4225
1e6feb95 4226else
a0b9e27f 4227
1e6feb95
VZ
4228 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4236
4237fi
1e6feb95
VZ
4238
4239
4240 eval "$ac_cv_use_unicode"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4246 echo "$ac_t""yes" 1>&6
1e6feb95 4247 else
a0b9e27f 4248 echo "$ac_t""no" 1>&6
1e6feb95 4249 fi
a0b9e27f 4250
1e6feb95 4251
a0b9e27f 4252 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
3bce6687 4253echo "configure:4254: checking for --enable-mslu" >&5
a72a4bfa
VS
4254 no_cache=0
4255 # Check whether --enable-mslu or --disable-mslu was given.
4256if test "${enable_mslu+set}" = set; then
4257 enableval="$enable_mslu"
a0b9e27f 4258
a72a4bfa
VS
4259 if test "$enableval" = yes; then
4260 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4261 else
4262 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4263 fi
a0b9e27f 4264
a72a4bfa 4265else
a0b9e27f 4266
a72a4bfa
VS
4267 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4268 if test "x$LINE" != x ; then
4269 eval "DEFAULT_$LINE"
4270 else
4271 no_cache=1
4272 fi
4273
4274 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4275
4276fi
a72a4bfa
VS
4277
4278
4279 eval "$ac_cv_use_mslu"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4285 echo "$ac_t""yes" 1>&6
a72a4bfa 4286 else
a0b9e27f 4287 echo "$ac_t""no" 1>&6
a72a4bfa 4288 fi
a0b9e27f 4289
a72a4bfa 4290
a0b9e27f 4291 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3bce6687 4292echo "configure:4293: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4293 no_cache=0
4294 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4295if test "${enable_wxprintfv+set}" = set; then
4296 enableval="$enable_wxprintfv"
a0b9e27f 4297
1e6feb95 4298 if test "$enableval" = yes; then
10f2d63a
VZ
4299 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4300 else
4301 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4302 fi
a0b9e27f 4303
10f2d63a 4304else
a0b9e27f 4305
10f2d63a
VZ
4306 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4314
4315fi
10f2d63a
VZ
4316
4317
4318 eval "$ac_cv_use_wxprintfv"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4324 echo "$ac_t""yes" 1>&6
10f2d63a 4325 else
a0b9e27f 4326 echo "$ac_t""no" 1>&6
10f2d63a 4327 fi
a0b9e27f 4328
10f2d63a 4329
a0b9e27f 4330 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3bce6687 4331echo "configure:4332: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4332 no_cache=0
4333 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4334if test "${enable_std_iostreams+set}" = set; then
4335 enableval="$enable_std_iostreams"
a0b9e27f 4336
10f2d63a
VZ
4337 if test "$enableval" = yes; then
4338 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4339 else
4340 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4341 fi
a0b9e27f 4342
10f2d63a 4343else
a0b9e27f 4344
10f2d63a
VZ
4345 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4353
4354fi
10f2d63a
VZ
4355
4356
4357 eval "$ac_cv_use_std_iostreams"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4363 echo "$ac_t""yes" 1>&6
10f2d63a 4364 else
a0b9e27f 4365 echo "$ac_t""no" 1>&6
10f2d63a 4366 fi
a0b9e27f 4367
10f2d63a 4368
a0b9e27f 4369 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3bce6687 4370echo "configure:4371: checking for --enable-filesystem" >&5
24528b0c
VS
4371 no_cache=0
4372 # Check whether --enable-filesystem or --disable-filesystem was given.
4373if test "${enable_filesystem+set}" = set; then
4374 enableval="$enable_filesystem"
a0b9e27f 4375
24528b0c
VS
4376 if test "$enableval" = yes; then
4377 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4378 else
4379 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4380 fi
a0b9e27f 4381
24528b0c 4382else
a0b9e27f 4383
24528b0c
VS
4384 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4392
4393fi
24528b0c
VS
4394
4395
4396 eval "$ac_cv_use_filesystem"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4402 echo "$ac_t""yes" 1>&6
24528b0c 4403 else
a0b9e27f 4404 echo "$ac_t""no" 1>&6
24528b0c 4405 fi
a0b9e27f 4406
24528b0c 4407
a0b9e27f 4408 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3bce6687 4409echo "configure:4410: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4410 no_cache=0
4411 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4412if test "${enable_fs_inet+set}" = set; then
4413 enableval="$enable_fs_inet"
a0b9e27f 4414
10f2d63a
VZ
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4417 else
4418 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4419 fi
a0b9e27f 4420
10f2d63a 4421else
a0b9e27f 4422
10f2d63a
VZ
4423 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4431
4432fi
10f2d63a
VZ
4433
4434
4435 eval "$ac_cv_use_fs_inet"
4436 if test "$no_cache" != 1; then
4437 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4438 fi
4439
4440 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4441 echo "$ac_t""yes" 1>&6
10f2d63a 4442 else
a0b9e27f 4443 echo "$ac_t""no" 1>&6
10f2d63a 4444 fi
a0b9e27f 4445
10f2d63a 4446
a0b9e27f 4447 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3bce6687 4448echo "configure:4449: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4449 no_cache=0
4450 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4451if test "${enable_fs_zip+set}" = set; then
4452 enableval="$enable_fs_zip"
a0b9e27f 4453
10f2d63a
VZ
4454 if test "$enableval" = yes; then
4455 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4456 else
4457 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4458 fi
a0b9e27f 4459
10f2d63a 4460else
a0b9e27f 4461
10f2d63a
VZ
4462 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4470
4471fi
10f2d63a
VZ
4472
4473
4474 eval "$ac_cv_use_fs_zip"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4480 echo "$ac_t""yes" 1>&6
10f2d63a 4481 else
a0b9e27f 4482 echo "$ac_t""no" 1>&6
10f2d63a 4483 fi
a0b9e27f 4484
10f2d63a 4485
a0b9e27f 4486 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3bce6687 4487echo "configure:4488: checking for --enable-zipstream" >&5
10f2d63a
VZ
4488 no_cache=0
4489 # Check whether --enable-zipstream or --disable-zipstream was given.
4490if test "${enable_zipstream+set}" = set; then
4491 enableval="$enable_zipstream"
a0b9e27f 4492
10f2d63a
VZ
4493 if test "$enableval" = yes; then
4494 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4495 else
4496 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4497 fi
a0b9e27f 4498
10f2d63a 4499else
a0b9e27f 4500
10f2d63a
VZ
4501 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4509
4510fi
10f2d63a
VZ
4511
4512
4513 eval "$ac_cv_use_zipstream"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4519 echo "$ac_t""yes" 1>&6
10f2d63a 4520 else
a0b9e27f 4521 echo "$ac_t""no" 1>&6
10f2d63a 4522 fi
a0b9e27f 4523
8284b0c5 4524
52127426 4525
a0b9e27f 4526 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3bce6687 4527echo "configure:4528: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4528 no_cache=0
4529 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4530if test "${enable_catch_segvs+set}" = set; then
4531 enableval="$enable_catch_segvs"
a0b9e27f 4532
eb4efbdc
VZ
4533 if test "$enableval" = yes; then
4534 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4535 else
4536 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4537 fi
a0b9e27f 4538
eb4efbdc 4539else
a0b9e27f 4540
eb4efbdc
VZ
4541 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4549
4550fi
eb4efbdc
VZ
4551
4552
4553 eval "$ac_cv_use_catch_segvs"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4559 echo "$ac_t""yes" 1>&6
eb4efbdc 4560 else
a0b9e27f 4561 echo "$ac_t""no" 1>&6
eb4efbdc 4562 fi
a0b9e27f 4563
eb4efbdc 4564
a0b9e27f 4565 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3bce6687 4566echo "configure:4567: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4567 no_cache=0
4568 # Check whether --enable-snglinst or --disable-snglinst was given.
4569if test "${enable_snglinst+set}" = set; then
4570 enableval="$enable_snglinst"
a0b9e27f 4571
4f3c5f06
VZ
4572 if test "$enableval" = yes; then
4573 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4574 else
4575 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4576 fi
a0b9e27f 4577
4f3c5f06 4578else
a0b9e27f 4579
4f3c5f06
VZ
4580 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4588
4589fi
4f3c5f06
VZ
4590
4591
4592 eval "$ac_cv_use_snglinst"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4598 echo "$ac_t""yes" 1>&6
4f3c5f06 4599 else
a0b9e27f 4600 echo "$ac_t""no" 1>&6
4f3c5f06 4601 fi
a0b9e27f 4602
52127426 4603
8284b0c5 4604
a0b9e27f 4605 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3bce6687 4606echo "configure:4607: checking for --enable-mimetype" >&5
1e6feb95
VZ
4607 no_cache=0
4608 # Check whether --enable-mimetype or --disable-mimetype was given.
4609if test "${enable_mimetype+set}" = set; then
4610 enableval="$enable_mimetype"
a0b9e27f 4611
1e6feb95
VZ
4612 if test "$enableval" = yes; then
4613 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4614 else
4615 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4616 fi
a0b9e27f 4617
1e6feb95 4618else
a0b9e27f 4619
1e6feb95
VZ
4620 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4621 if test "x$LINE" != x ; then
4622 eval "DEFAULT_$LINE"
4623 else
4624 no_cache=1
4625 fi
4626
4627 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4628
4629fi
1e6feb95
VZ
4630
4631
4632 eval "$ac_cv_use_mimetype"
4633 if test "$no_cache" != 1; then
4634 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4635 fi
4636
4637 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4638 echo "$ac_t""yes" 1>&6
1e6feb95 4639 else
a0b9e27f 4640 echo "$ac_t""no" 1>&6
1e6feb95 4641 fi
a0b9e27f 4642
1e6feb95 4643
a0b9e27f 4644 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
3bce6687 4645echo "configure:4646: checking for --enable-system_options" >&5
3e44f09d
VZ
4646 no_cache=0
4647 # Check whether --enable-system_options or --disable-system_options was given.
4648if test "${enable_system_options+set}" = set; then
4649 enableval="$enable_system_options"
a0b9e27f 4650
3e44f09d
VZ
4651 if test "$enableval" = yes; then
4652 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4653 else
4654 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4655 fi
a0b9e27f 4656
3e44f09d 4657else
a0b9e27f 4658
3e44f09d
VZ
4659 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4660 if test "x$LINE" != x ; then
4661 eval "DEFAULT_$LINE"
4662 else
4663 no_cache=1
4664 fi
4665
4666 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4667
4668fi
3e44f09d
VZ
4669
4670
4671 eval "$ac_cv_use_system_options"
4672 if test "$no_cache" != 1; then
4673 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4674 fi
4675
4676 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4677 echo "$ac_t""yes" 1>&6
3e44f09d 4678 else
a0b9e27f 4679 echo "$ac_t""no" 1>&6
3e44f09d 4680 fi
a0b9e27f 4681
8284b0c5 4682
52127426 4683
a0b9e27f 4684 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
3bce6687 4685echo "configure:4686: checking for --enable-url" >&5
4cdb0ab0
VS
4686 no_cache=0
4687 # Check whether --enable-url or --disable-url was given.
4688if test "${enable_url+set}" = set; then
4689 enableval="$enable_url"
a0b9e27f 4690
4cdb0ab0
VS
4691 if test "$enableval" = yes; then
4692 ac_cv_use_url='wxUSE_URL=yes'
4693 else
4694 ac_cv_use_url='wxUSE_URL=no'
4695 fi
a0b9e27f 4696
4cdb0ab0 4697else
a0b9e27f 4698
4cdb0ab0
VS
4699 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4707
4708fi
4cdb0ab0
VS
4709
4710
4711 eval "$ac_cv_use_url"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_URL" = yes; then
a0b9e27f 4717 echo "$ac_t""yes" 1>&6
4cdb0ab0 4718 else
a0b9e27f 4719 echo "$ac_t""no" 1>&6
4cdb0ab0 4720 fi
a0b9e27f 4721
4cdb0ab0 4722
a0b9e27f 4723 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
3bce6687 4724echo "configure:4725: checking for --enable-protocol" >&5
4cdb0ab0
VS
4725 no_cache=0
4726 # Check whether --enable-protocol or --disable-protocol was given.
4727if test "${enable_protocol+set}" = set; then
4728 enableval="$enable_protocol"
a0b9e27f 4729
4cdb0ab0
VS
4730 if test "$enableval" = yes; then
4731 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4732 else
4733 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4734 fi
a0b9e27f 4735
4cdb0ab0 4736else
a0b9e27f 4737
4cdb0ab0
VS
4738 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4746
4747fi
4cdb0ab0
VS
4748
4749
4750 eval "$ac_cv_use_protocol"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4756 echo "$ac_t""yes" 1>&6
4cdb0ab0 4757 else
a0b9e27f 4758 echo "$ac_t""no" 1>&6
4cdb0ab0 4759 fi
a0b9e27f 4760
4cdb0ab0 4761
a0b9e27f 4762 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
3bce6687 4763echo "configure:4764: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4764 no_cache=0
4765 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4766if test "${enable_protocol_http+set}" = set; then
4767 enableval="$enable_protocol_http"
a0b9e27f 4768
4cdb0ab0
VS
4769 if test "$enableval" = yes; then
4770 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4771 else
4772 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4773 fi
a0b9e27f 4774
4cdb0ab0 4775else
a0b9e27f 4776
4cdb0ab0
VS
4777 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4785
4786fi
4cdb0ab0
VS
4787
4788
4789 eval "$ac_cv_use_protocol_http"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4792 fi
4793
4794 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4795 echo "$ac_t""yes" 1>&6
4cdb0ab0 4796 else
a0b9e27f 4797 echo "$ac_t""no" 1>&6
4cdb0ab0 4798 fi
a0b9e27f 4799
4cdb0ab0 4800
a0b9e27f 4801 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
3bce6687 4802echo "configure:4803: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4803 no_cache=0
4804 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4805if test "${enable_protocol_ftp+set}" = set; then
4806 enableval="$enable_protocol_ftp"
a0b9e27f 4807
4cdb0ab0
VS
4808 if test "$enableval" = yes; then
4809 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4810 else
4811 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4812 fi
a0b9e27f 4813
4cdb0ab0 4814else
a0b9e27f 4815
4cdb0ab0
VS
4816 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4824
4825fi
4cdb0ab0
VS
4826
4827
4828 eval "$ac_cv_use_protocol_ftp"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4834 echo "$ac_t""yes" 1>&6
4cdb0ab0 4835 else
a0b9e27f 4836 echo "$ac_t""no" 1>&6
4cdb0ab0 4837 fi
a0b9e27f 4838
4cdb0ab0 4839
a0b9e27f 4840 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
3bce6687 4841echo "configure:4842: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4842 no_cache=0
4843 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4844if test "${enable_protocol_file+set}" = set; then
4845 enableval="$enable_protocol_file"
a0b9e27f 4846
4cdb0ab0
VS
4847 if test "$enableval" = yes; then
4848 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4849 else
4850 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4851 fi
a0b9e27f 4852
4cdb0ab0 4853else
a0b9e27f 4854
4cdb0ab0
VS
4855 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4863
4864fi
4cdb0ab0
VS
4865
4866
4867 eval "$ac_cv_use_protocol_file"
4868 if test "$no_cache" != 1; then
4869 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4870 fi
4871
4872 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4873 echo "$ac_t""yes" 1>&6
4cdb0ab0 4874 else
a0b9e27f 4875 echo "$ac_t""no" 1>&6
4cdb0ab0 4876 fi
a0b9e27f 4877
52127426 4878
8284b0c5
MB
4879
4880
4881
a0b9e27f 4882 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
3bce6687 4883echo "configure:4884: checking for --enable-threads" >&5
10f2d63a
VZ
4884 no_cache=0
4885 # Check whether --enable-threads or --disable-threads was given.
4886if test "${enable_threads+set}" = set; then
4887 enableval="$enable_threads"
a0b9e27f 4888
10f2d63a
VZ
4889 if test "$enableval" = yes; then
4890 ac_cv_use_threads='wxUSE_THREADS=yes'
4891 else
4892 ac_cv_use_threads='wxUSE_THREADS=no'
4893 fi
a0b9e27f 4894
10f2d63a 4895else
a0b9e27f 4896
10f2d63a
VZ
4897 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4905
4906fi
10f2d63a
VZ
4907
4908
4909 eval "$ac_cv_use_threads"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 4915 echo "$ac_t""yes" 1>&6
10f2d63a 4916 else
a0b9e27f 4917 echo "$ac_t""no" 1>&6
10f2d63a 4918 fi
a0b9e27f 4919
10f2d63a 4920
b12915c1
VZ
4921if test "$wxUSE_GUI" = "yes"; then
4922
8284b0c5
MB
4923
4924
a0b9e27f 4925 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
3bce6687 4926echo "configure:4927: checking for --enable-docview" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-docview or --disable-docview was given.
4929if test "${enable_docview+set}" = set; then
4930 enableval="$enable_docview"
a0b9e27f 4931
10f2d63a
VZ
4932 if test "$enableval" = yes; then
4933 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4934 else
4935 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4936 fi
a0b9e27f 4937
10f2d63a 4938else
a0b9e27f 4939
10f2d63a
VZ
4940 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
4948
4949fi
10f2d63a
VZ
4950
4951
4952 eval "$ac_cv_use_docview"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 4958 echo "$ac_t""yes" 1>&6
10f2d63a 4959 else
a0b9e27f 4960 echo "$ac_t""no" 1>&6
10f2d63a 4961 fi
a0b9e27f 4962
10f2d63a 4963
a0b9e27f 4964 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
3bce6687 4965echo "configure:4966: checking for --enable-help" >&5
10f2d63a
VZ
4966 no_cache=0
4967 # Check whether --enable-help or --disable-help was given.
4968if test "${enable_help+set}" = set; then
4969 enableval="$enable_help"
a0b9e27f 4970
10f2d63a
VZ
4971 if test "$enableval" = yes; then
4972 ac_cv_use_help='wxUSE_HELP=yes'
4973 else
4974 ac_cv_use_help='wxUSE_HELP=no'
4975 fi
a0b9e27f 4976
10f2d63a 4977else
a0b9e27f 4978
10f2d63a
VZ
4979 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
4987
4988fi
10f2d63a
VZ
4989
4990
4991 eval "$ac_cv_use_help"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_HELP" = yes; then
a0b9e27f 4997 echo "$ac_t""yes" 1>&6
10f2d63a 4998 else
a0b9e27f 4999 echo "$ac_t""no" 1>&6
10f2d63a 5000 fi
a0b9e27f 5001
10f2d63a 5002
a0b9e27f 5003 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
3bce6687 5004echo "configure:5005: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
5005 no_cache=0
5006 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5007if test "${enable_mshtmlhelp+set}" = set; then
5008 enableval="$enable_mshtmlhelp"
a0b9e27f 5009
29fd3c0c
VS
5010 if test "$enableval" = yes; then
5011 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5012 else
5013 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5014 fi
a0b9e27f 5015
29fd3c0c 5016else
a0b9e27f 5017
29fd3c0c
VS
5018 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5026
5027fi
29fd3c0c
VS
5028
5029
5030 eval "$ac_cv_use_mshtmlhelp"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5036 echo "$ac_t""yes" 1>&6
29fd3c0c 5037 else
a0b9e27f 5038 echo "$ac_t""no" 1>&6
29fd3c0c 5039 fi
a0b9e27f 5040
29fd3c0c 5041
a0b9e27f 5042 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
3bce6687 5043echo "configure:5044: checking for --enable-html" >&5
3379ed37
VZ
5044 no_cache=0
5045 # Check whether --enable-html or --disable-html was given.
5046if test "${enable_html+set}" = set; then
5047 enableval="$enable_html"
a0b9e27f 5048
3379ed37
VZ
5049 if test "$enableval" = yes; then
5050 ac_cv_use_html='wxUSE_HTML=yes'
5051 else
5052 ac_cv_use_html='wxUSE_HTML=no'
5053 fi
a0b9e27f 5054
3379ed37 5055else
a0b9e27f 5056
3379ed37
VZ
5057 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5065
5066fi
3379ed37
VZ
5067
5068
5069 eval "$ac_cv_use_html"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5075 echo "$ac_t""yes" 1>&6
3379ed37 5076 else
a0b9e27f 5077 echo "$ac_t""no" 1>&6
3379ed37 5078 fi
a0b9e27f 5079
3379ed37 5080
a0b9e27f 5081 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
3bce6687 5082echo "configure:5083: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5083 no_cache=0
5084 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5085if test "${enable_htmlhelp+set}" = set; then
5086 enableval="$enable_htmlhelp"
a0b9e27f 5087
3379ed37
VZ
5088 if test "$enableval" = yes; then
5089 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5090 else
5091 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5092 fi
a0b9e27f 5093
3379ed37 5094else
a0b9e27f 5095
3379ed37
VZ
5096 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5104
5105fi
3379ed37
VZ
5106
5107
5108 eval "$ac_cv_use_htmlhelp"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5114 echo "$ac_t""yes" 1>&6
3379ed37 5115 else
a0b9e27f 5116 echo "$ac_t""no" 1>&6
3379ed37 5117 fi
a0b9e27f 5118
3379ed37 5119
a0b9e27f 5120 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
3bce6687 5121echo "configure:5122: checking for --enable-constraints" >&5
10f2d63a
VZ
5122 no_cache=0
5123 # Check whether --enable-constraints or --disable-constraints was given.
5124if test "${enable_constraints+set}" = set; then
5125 enableval="$enable_constraints"
a0b9e27f 5126
10f2d63a
VZ
5127 if test "$enableval" = yes; then
5128 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5129 else
5130 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5131 fi
a0b9e27f 5132
10f2d63a 5133else
a0b9e27f 5134
10f2d63a
VZ
5135 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5143
5144fi
10f2d63a
VZ
5145
5146
5147 eval "$ac_cv_use_constraints"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5153 echo "$ac_t""yes" 1>&6
10f2d63a 5154 else
a0b9e27f 5155 echo "$ac_t""no" 1>&6
10f2d63a 5156 fi
a0b9e27f 5157
10f2d63a 5158
a0b9e27f 5159 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
3bce6687 5160echo "configure:5161: checking for --enable-printarch" >&5
10f2d63a
VZ
5161 no_cache=0
5162 # Check whether --enable-printarch or --disable-printarch was given.
5163if test "${enable_printarch+set}" = set; then
5164 enableval="$enable_printarch"
a0b9e27f 5165
10f2d63a
VZ
5166 if test "$enableval" = yes; then
5167 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5168 else
5169 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5170 fi
a0b9e27f 5171
10f2d63a 5172else
a0b9e27f 5173
10f2d63a
VZ
5174 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5182
5183fi
10f2d63a
VZ
5184
5185
5186 eval "$ac_cv_use_printarch"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5192 echo "$ac_t""yes" 1>&6
10f2d63a 5193 else
a0b9e27f 5194 echo "$ac_t""no" 1>&6
10f2d63a 5195 fi
a0b9e27f 5196
10f2d63a 5197
a0b9e27f 5198 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
3bce6687 5199echo "configure:5200: checking for --enable-mdi" >&5
10f2d63a
VZ
5200 no_cache=0
5201 # Check whether --enable-mdi or --disable-mdi was given.
5202if test "${enable_mdi+set}" = set; then
5203 enableval="$enable_mdi"
a0b9e27f 5204
10f2d63a
VZ
5205 if test "$enableval" = yes; then
5206 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5207 else
5208 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5209 fi
a0b9e27f 5210
10f2d63a 5211else
a0b9e27f 5212
10f2d63a
VZ
5213 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5221
5222fi
10f2d63a
VZ
5223
5224
5225 eval "$ac_cv_use_mdi"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5231 echo "$ac_t""yes" 1>&6
10f2d63a 5232 else
a0b9e27f 5233 echo "$ac_t""no" 1>&6
10f2d63a 5234 fi
a0b9e27f 5235
698dcdb6 5236
a0b9e27f 5237 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
3bce6687 5238echo "configure:5239: checking for --enable-loggui" >&5
1e6feb95
VZ
5239 no_cache=0
5240 # Check whether --enable-loggui or --disable-loggui was given.
5241if test "${enable_loggui+set}" = set; then
5242 enableval="$enable_loggui"
a0b9e27f 5243
1e6feb95
VZ
5244 if test "$enableval" = yes; then
5245 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5246 else
5247 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5248 fi
a0b9e27f 5249
1e6feb95 5250else
a0b9e27f 5251
1e6feb95
VZ
5252 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 else
5256 no_cache=1
5257 fi
5258
5259 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5260
5261fi
1e6feb95
VZ
5262
5263
5264 eval "$ac_cv_use_loggui"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5270 echo "$ac_t""yes" 1>&6
1e6feb95 5271 else
a0b9e27f 5272 echo "$ac_t""no" 1>&6
1e6feb95 5273 fi
a0b9e27f 5274
1e6feb95 5275
a0b9e27f 5276 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
3bce6687 5277echo "configure:5278: checking for --enable-logwin" >&5
1e6feb95
VZ
5278 no_cache=0
5279 # Check whether --enable-logwin or --disable-logwin was given.
5280if test "${enable_logwin+set}" = set; then
5281 enableval="$enable_logwin"
a0b9e27f 5282
1e6feb95
VZ
5283 if test "$enableval" = yes; then
5284 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5285 else
5286 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5287 fi
a0b9e27f 5288
1e6feb95 5289else
a0b9e27f 5290
1e6feb95
VZ
5291 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5299
5300fi
1e6feb95
VZ
5301
5302
5303 eval "$ac_cv_use_logwin"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5309 echo "$ac_t""yes" 1>&6
1e6feb95 5310 else
a0b9e27f 5311 echo "$ac_t""no" 1>&6
1e6feb95 5312 fi
a0b9e27f 5313
1e6feb95 5314
a0b9e27f 5315 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
3bce6687 5316echo "configure:5317: checking for --enable-logdialog" >&5
69d27ff7
MB
5317 no_cache=0
5318 # Check whether --enable-logdialog or --disable-logdialog was given.
5319if test "${enable_logdialog+set}" = set; then
5320 enableval="$enable_logdialog"
a0b9e27f 5321
69d27ff7
MB
5322 if test "$enableval" = yes; then
5323 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5324 else
5325 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5326 fi
a0b9e27f 5327
69d27ff7 5328else
a0b9e27f 5329
69d27ff7
MB
5330 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5338
5339fi
69d27ff7
MB
5340
5341
5342 eval "$ac_cv_use_logdialog"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5348 echo "$ac_t""yes" 1>&6
69d27ff7 5349 else
a0b9e27f 5350 echo "$ac_t""no" 1>&6
69d27ff7 5351 fi
a0b9e27f 5352
8284b0c5 5353
52127426 5354
a0b9e27f 5355 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
3bce6687 5356echo "configure:5357: checking for --enable-postscript" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-postscript or --disable-postscript was given.
5359if test "${enable_postscript+set}" = set; then
5360 enableval="$enable_postscript"
a0b9e27f 5361
10f2d63a
VZ
5362 if test "$enableval" = yes; then
5363 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5364 else
5365 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5366 fi
a0b9e27f 5367
10f2d63a 5368else
a0b9e27f 5369
10f2d63a
VZ
5370 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5378
5379fi
10f2d63a
VZ
5380
5381
5382 eval "$ac_cv_use_postscript"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5388 echo "$ac_t""yes" 1>&6
10f2d63a 5389 else
a0b9e27f 5390 echo "$ac_t""no" 1>&6
10f2d63a 5391 fi
a0b9e27f 5392
8284b0c5
MB
5393
5394
52127426 5395
8284b0c5 5396
a0b9e27f 5397 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
3bce6687 5398echo "configure:5399: checking for --enable-prologio" >&5
10f2d63a
VZ
5399 no_cache=0
5400 # Check whether --enable-prologio or --disable-prologio was given.
5401if test "${enable_prologio+set}" = set; then
5402 enableval="$enable_prologio"
a0b9e27f 5403
10f2d63a
VZ
5404 if test "$enableval" = yes; then
5405 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5406 else
5407 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5408 fi
a0b9e27f 5409
10f2d63a 5410else
a0b9e27f 5411
10f2d63a
VZ
5412 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5413 if test "x$LINE" != x ; then
5414 eval "DEFAULT_$LINE"
5415 else
5416 no_cache=1
5417 fi
5418
5419 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5420
5421fi
10f2d63a
VZ
5422
5423
5424 eval "$ac_cv_use_prologio"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5430 echo "$ac_t""yes" 1>&6
10f2d63a 5431 else
a0b9e27f 5432 echo "$ac_t""no" 1>&6
10f2d63a 5433 fi
a0b9e27f 5434
10f2d63a 5435
a0b9e27f 5436 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
3bce6687 5437echo "configure:5438: checking for --enable-resources" >&5
10f2d63a
VZ
5438 no_cache=0
5439 # Check whether --enable-resources or --disable-resources was given.
5440if test "${enable_resources+set}" = set; then
5441 enableval="$enable_resources"
a0b9e27f 5442
10f2d63a
VZ
5443 if test "$enableval" = yes; then
5444 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5445 else
5446 ac_cv_use_resources='wxUSE_RESOURCES=no'
5447 fi
a0b9e27f 5448
10f2d63a 5449else
a0b9e27f 5450
10f2d63a
VZ
5451 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5452 if test "x$LINE" != x ; then
5453 eval "DEFAULT_$LINE"
5454 else
5455 no_cache=1
5456 fi
5457
5458 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5459
5460fi
10f2d63a
VZ
5461
5462
5463 eval "$ac_cv_use_resources"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5469 echo "$ac_t""yes" 1>&6
10f2d63a 5470 else
a0b9e27f 5471 echo "$ac_t""no" 1>&6
10f2d63a 5472 fi
a0b9e27f 5473
8284b0c5 5474
52127426 5475
a0b9e27f 5476 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
3bce6687 5477echo "configure:5478: checking for --enable-xresources" >&5
10f2d63a
VZ
5478 no_cache=0
5479 # Check whether --enable-xresources or --disable-xresources was given.
5480if test "${enable_xresources+set}" = set; then
5481 enableval="$enable_xresources"
a0b9e27f 5482
10f2d63a
VZ
5483 if test "$enableval" = yes; then
5484 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5485 else
5486 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5487 fi
a0b9e27f 5488
10f2d63a 5489else
a0b9e27f 5490
10f2d63a
VZ
5491 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5499
5500fi
10f2d63a
VZ
5501
5502
5503 eval "$ac_cv_use_xresources"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5509 echo "$ac_t""yes" 1>&6
10f2d63a 5510 else
a0b9e27f 5511 echo "$ac_t""no" 1>&6
10f2d63a 5512 fi
a0b9e27f 5513
8284b0c5
MB
5514
5515
52127426 5516
a0b9e27f 5517 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
3bce6687 5518echo "configure:5519: checking for --enable-clipboard" >&5
10f2d63a
VZ
5519 no_cache=0
5520 # Check whether --enable-clipboard or --disable-clipboard was given.
5521if test "${enable_clipboard+set}" = set; then
5522 enableval="$enable_clipboard"
a0b9e27f 5523
10f2d63a
VZ
5524 if test "$enableval" = yes; then
5525 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5526 else
5527 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5528 fi
a0b9e27f 5529
10f2d63a 5530else
a0b9e27f 5531
10f2d63a
VZ
5532 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5540
5541fi
10f2d63a
VZ
5542
5543
5544 eval "$ac_cv_use_clipboard"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5550 echo "$ac_t""yes" 1>&6
10f2d63a 5551 else
a0b9e27f 5552 echo "$ac_t""no" 1>&6
10f2d63a 5553 fi
a0b9e27f 5554
10f2d63a 5555
a0b9e27f 5556 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
3bce6687 5557echo "configure:5558: checking for --enable-dnd" >&5
10f2d63a
VZ
5558 no_cache=0
5559 # Check whether --enable-dnd or --disable-dnd was given.
5560if test "${enable_dnd+set}" = set; then
5561 enableval="$enable_dnd"
a0b9e27f 5562
10f2d63a
VZ
5563 if test "$enableval" = yes; then
5564 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5565 else
5566 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5567 fi
a0b9e27f 5568
10f2d63a 5569else
a0b9e27f 5570
10f2d63a
VZ
5571 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5572 if test "x$LINE" != x ; then
5573 eval "DEFAULT_$LINE"
5574 else
5575 no_cache=1
5576 fi
5577
5578 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5579
5580fi
10f2d63a
VZ
5581
5582
5583 eval "$ac_cv_use_dnd"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5589 echo "$ac_t""yes" 1>&6
10f2d63a 5590 else
a0b9e27f 5591 echo "$ac_t""no" 1>&6
10f2d63a 5592 fi
a0b9e27f 5593
10f2d63a 5594
a0b9e27f 5595 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bce6687 5596echo "configure:5597: checking for --enable-metafile" >&5
b64f0a5f
RL
5597 no_cache=0
5598 # Check whether --enable-metafile or --disable-metafile was given.
5599if test "${enable_metafile+set}" = set; then
5600 enableval="$enable_metafile"
a0b9e27f 5601
b64f0a5f
RL
5602 if test "$enableval" = yes; then
5603 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5604 else
5605 ac_cv_use_metafile='wxUSE_METAFILE=no'
5606 fi
a0b9e27f 5607
b64f0a5f 5608else
a0b9e27f 5609
b64f0a5f
RL
5610 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5618
5619fi
b64f0a5f
RL
5620
5621
5622 eval "$ac_cv_use_metafile"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5628 echo "$ac_t""yes" 1>&6
b64f0a5f 5629 else
a0b9e27f 5630 echo "$ac_t""no" 1>&6
b64f0a5f 5631 fi
a0b9e27f 5632
52127426 5633
8284b0c5 5634
a0b9e27f 5635 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
3bce6687 5636echo "configure:5637: checking for --enable-treelayout" >&5
10f2d63a 5637 no_cache=0
24176f2c
GD
5638 # Check whether --enable-treelayout or --disable-treelayout was given.
5639if test "${enable_treelayout+set}" = set; then
5640 enableval="$enable_treelayout"
a0b9e27f 5641
10f2d63a 5642 if test "$enableval" = yes; then
24176f2c 5643 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5644 else
24176f2c 5645 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5646 fi
a0b9e27f 5647
10f2d63a 5648else
a0b9e27f 5649
24176f2c 5650 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
24176f2c 5657 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5658
5659fi
10f2d63a
VZ
5660
5661
24176f2c 5662 eval "$ac_cv_use_treelayout"
10f2d63a 5663 if test "$no_cache" != 1; then
24176f2c 5664 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5665 fi
5666
24176f2c 5667 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5668 echo "$ac_t""yes" 1>&6
10f2d63a 5669 else
a0b9e27f 5670 echo "$ac_t""no" 1>&6
10f2d63a 5671 fi
a0b9e27f 5672
8284b0c5 5673
52127426 5674
8284b0c5 5675
a0b9e27f 5676 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
3bce6687 5677echo "configure:5678: checking for --enable-controls" >&5
10f2d63a
VZ
5678 no_cache=0
5679 # Check whether --enable-controls or --disable-controls was given.
5680if test "${enable_controls+set}" = set; then
5681 enableval="$enable_controls"
a0b9e27f 5682
10f2d63a
VZ
5683 if test "$enableval" = yes; then
5684 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5685 else
5686 ac_cv_use_controls='wxUSE_CONTROLS=no'
5687 fi
a0b9e27f 5688
10f2d63a 5689else
a0b9e27f 5690
10f2d63a
VZ
5691 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5699
5700fi
10f2d63a
VZ
5701
5702
5703 eval "$ac_cv_use_controls"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5709 echo "$ac_t""yes" 1>&6
10f2d63a 5710 else
a0b9e27f 5711 echo "$ac_t""no" 1>&6
10f2d63a 5712 fi
a0b9e27f 5713
10f2d63a
VZ
5714
5715if test "$wxUSE_CONTROLS" = "yes"; then
5716 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5717 DEFAULT_wxUSE_BMPBUTTON=yes
5718 DEFAULT_wxUSE_BUTTON=yes
5719 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5720 DEFAULT_wxUSE_CARET=yes
5721 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5722 DEFAULT_wxUSE_CHECKBOX=yes
5723 DEFAULT_wxUSE_CHECKLISTBOX=yes
5724 DEFAULT_wxUSE_CHOICE=yes
5725 DEFAULT_wxUSE_GAUGE=yes
5726 DEFAULT_wxUSE_GRID=yes
cc977e5f 5727 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5728 DEFAULT_wxUSE_IMAGLIST=yes
5729 DEFAULT_wxUSE_LISTBOX=yes
5730 DEFAULT_wxUSE_LISTCTRL=yes
5731 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5732 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5733 DEFAULT_wxUSE_RADIOBOX=yes
5734 DEFAULT_wxUSE_RADIOBTN=yes
5735 DEFAULT_wxUSE_SASH=yes
5736 DEFAULT_wxUSE_SCROLLBAR=yes
5737 DEFAULT_wxUSE_SLIDER=yes
5738 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5739 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5740 DEFAULT_wxUSE_SPLITTER=yes
5741 DEFAULT_wxUSE_STATBMP=yes
5742 DEFAULT_wxUSE_STATBOX=yes
5743 DEFAULT_wxUSE_STATLINE=yes
5744 DEFAULT_wxUSE_STATUSBAR=yes
5745 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5746 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5747 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5749 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5750 DEFAULT_wxUSE_TOOLTIPS=yes
5751 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5752 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5753 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5754elif test "$wxUSE_CONTROLS" = "no"; then
5755 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5756 DEFAULT_wxUSE_BMPBUTTON=no
5757 DEFAULT_wxUSE_BUTTON=no
5758 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5759 DEFAULT_wxUSE_CARET=no
5760 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5761 DEFAULT_wxUSE_CHECKBOX=no
5762 DEFAULT_wxUSE_CHECKLISTBOX=no
5763 DEFAULT_wxUSE_CHOICE=no
5764 DEFAULT_wxUSE_GAUGE=no
5765 DEFAULT_wxUSE_GRID=no
5766 DEFAULT_wxUSE_NEW_GRID=no
5767 DEFAULT_wxUSE_IMAGLIST=no
5768 DEFAULT_wxUSE_LISTBOX=no
5769 DEFAULT_wxUSE_LISTCTRL=no
5770 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5771 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5772 DEFAULT_wxUSE_RADIOBOX=no
5773 DEFAULT_wxUSE_RADIOBTN=no
5774 DEFAULT_wxUSE_SASH=no
5775 DEFAULT_wxUSE_SCROLLBAR=no
5776 DEFAULT_wxUSE_SLIDER=no
5777 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5778 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5779 DEFAULT_wxUSE_SPLITTER=no
5780 DEFAULT_wxUSE_STATBMP=no
5781 DEFAULT_wxUSE_STATBOX=no
5782 DEFAULT_wxUSE_STATLINE=no
5783 DEFAULT_wxUSE_STATUSBAR=no
5784 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5785 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5786 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5787 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5788 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5789 DEFAULT_wxUSE_TOOLTIPS=no
5790 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5791 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5792 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5793fi
5794
8284b0c5 5795
a0b9e27f 5796 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
3bce6687 5797echo "configure:5798: checking for --enable-accel" >&5
10f2d63a
VZ
5798 no_cache=0
5799 # Check whether --enable-accel or --disable-accel was given.
5800if test "${enable_accel+set}" = set; then
5801 enableval="$enable_accel"
a0b9e27f 5802
10f2d63a
VZ
5803 if test "$enableval" = yes; then
5804 ac_cv_use_accel='wxUSE_ACCEL=yes'
5805 else
5806 ac_cv_use_accel='wxUSE_ACCEL=no'
5807 fi
a0b9e27f 5808
10f2d63a 5809else
a0b9e27f 5810
10f2d63a
VZ
5811 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5819
5820fi
10f2d63a
VZ
5821
5822
5823 eval "$ac_cv_use_accel"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5829 echo "$ac_t""yes" 1>&6
10f2d63a 5830 else
a0b9e27f 5831 echo "$ac_t""no" 1>&6
10f2d63a 5832 fi
a0b9e27f 5833
10f2d63a 5834
a0b9e27f 5835 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
3bce6687 5836echo "configure:5837: checking for --enable-button" >&5
10f2d63a 5837 no_cache=0
1e6feb95
VZ
5838 # Check whether --enable-button or --disable-button was given.
5839if test "${enable_button+set}" = set; then
5840 enableval="$enable_button"
a0b9e27f 5841
10f2d63a 5842 if test "$enableval" = yes; then
1e6feb95 5843 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5844 else
1e6feb95 5845 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5846 fi
a0b9e27f 5847
10f2d63a 5848else
a0b9e27f 5849
1e6feb95 5850 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
1e6feb95 5857 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5858
5859fi
10f2d63a
VZ
5860
5861
1e6feb95 5862 eval "$ac_cv_use_button"
10f2d63a 5863 if test "$no_cache" != 1; then
1e6feb95 5864 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5865 fi
5866
1e6feb95 5867 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5868 echo "$ac_t""yes" 1>&6
10f2d63a 5869 else
a0b9e27f 5870 echo "$ac_t""no" 1>&6
10f2d63a 5871 fi
a0b9e27f 5872
10f2d63a 5873
a0b9e27f 5874 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
3bce6687 5875echo "configure:5876: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5876 no_cache=0
5877 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5878if test "${enable_bmpbutton+set}" = set; then
5879 enableval="$enable_bmpbutton"
a0b9e27f 5880
10f2d63a
VZ
5881 if test "$enableval" = yes; then
5882 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5883 else
5884 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5885 fi
a0b9e27f 5886
10f2d63a 5887else
a0b9e27f 5888
10f2d63a
VZ
5889 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5897
5898fi
10f2d63a
VZ
5899
5900
5901 eval "$ac_cv_use_bmpbutton"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5907 echo "$ac_t""yes" 1>&6
10f2d63a 5908 else
a0b9e27f 5909 echo "$ac_t""no" 1>&6
10f2d63a 5910 fi
a0b9e27f 5911
10f2d63a 5912
a0b9e27f 5913 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
3bce6687 5914echo "configure:5915: checking for --enable-calendar" >&5
1e6feb95
VZ
5915 no_cache=0
5916 # Check whether --enable-calendar or --disable-calendar was given.
5917if test "${enable_calendar+set}" = set; then
5918 enableval="$enable_calendar"
a0b9e27f 5919
1e6feb95
VZ
5920 if test "$enableval" = yes; then
5921 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5922 else
5923 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5924 fi
a0b9e27f 5925
1e6feb95 5926else
a0b9e27f 5927
1e6feb95
VZ
5928 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
5936
5937fi
1e6feb95
VZ
5938
5939
5940 eval "$ac_cv_use_calendar"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 5946 echo "$ac_t""yes" 1>&6
1e6feb95 5947 else
a0b9e27f 5948 echo "$ac_t""no" 1>&6
1e6feb95 5949 fi
a0b9e27f 5950
1e6feb95 5951
a0b9e27f 5952 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
3bce6687 5953echo "configure:5954: checking for --enable-caret" >&5
1e6feb95
VZ
5954 no_cache=0
5955 # Check whether --enable-caret or --disable-caret was given.
5956if test "${enable_caret+set}" = set; then
5957 enableval="$enable_caret"
a0b9e27f 5958
1e6feb95
VZ
5959 if test "$enableval" = yes; then
5960 ac_cv_use_caret='wxUSE_CARET=yes'
5961 else
5962 ac_cv_use_caret='wxUSE_CARET=no'
5963 fi
a0b9e27f 5964
1e6feb95 5965else
a0b9e27f 5966
1e6feb95
VZ
5967 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
5975
5976fi
1e6feb95
VZ
5977
5978
5979 eval "$ac_cv_use_caret"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_CARET" = yes; then
a0b9e27f 5985 echo "$ac_t""yes" 1>&6
1e6feb95 5986 else
a0b9e27f 5987 echo "$ac_t""no" 1>&6
1e6feb95 5988 fi
a0b9e27f 5989
1e6feb95 5990
a0b9e27f 5991 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
3bce6687 5992echo "configure:5993: checking for --enable-checkbox" >&5
10f2d63a
VZ
5993 no_cache=0
5994 # Check whether --enable-checkbox or --disable-checkbox was given.
5995if test "${enable_checkbox+set}" = set; then
5996 enableval="$enable_checkbox"
a0b9e27f 5997
10f2d63a
VZ
5998 if test "$enableval" = yes; then
5999 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6000 else
6001 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6002 fi
a0b9e27f 6003
10f2d63a 6004else
a0b9e27f 6005
10f2d63a
VZ
6006 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6014
6015fi
10f2d63a
VZ
6016
6017
6018 eval "$ac_cv_use_checkbox"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6024 echo "$ac_t""yes" 1>&6
10f2d63a 6025 else
a0b9e27f 6026 echo "$ac_t""no" 1>&6
10f2d63a 6027 fi
a0b9e27f 6028
10f2d63a 6029
a0b9e27f 6030 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
3bce6687 6031echo "configure:6032: checking for --enable-checklst" >&5
10f2d63a
VZ
6032 no_cache=0
6033 # Check whether --enable-checklst or --disable-checklst was given.
6034if test "${enable_checklst+set}" = set; then
6035 enableval="$enable_checklst"
a0b9e27f 6036
10f2d63a
VZ
6037 if test "$enableval" = yes; then
6038 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6039 else
6040 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6041 fi
a0b9e27f 6042
10f2d63a 6043else
a0b9e27f 6044
10f2d63a
VZ
6045 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6053
6054fi
10f2d63a
VZ
6055
6056
6057 eval "$ac_cv_use_checklst"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6063 echo "$ac_t""yes" 1>&6
10f2d63a 6064 else
a0b9e27f 6065 echo "$ac_t""no" 1>&6
10f2d63a 6066 fi
a0b9e27f 6067
10f2d63a 6068
a0b9e27f 6069 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
3bce6687 6070echo "configure:6071: checking for --enable-choice" >&5
10f2d63a
VZ
6071 no_cache=0
6072 # Check whether --enable-choice or --disable-choice was given.
6073if test "${enable_choice+set}" = set; then
6074 enableval="$enable_choice"
a0b9e27f 6075
10f2d63a
VZ
6076 if test "$enableval" = yes; then
6077 ac_cv_use_choice='wxUSE_CHOICE=yes'
6078 else
6079 ac_cv_use_choice='wxUSE_CHOICE=no'
6080 fi
a0b9e27f 6081
10f2d63a 6082else
a0b9e27f 6083
10f2d63a
VZ
6084 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6092
6093fi
10f2d63a
VZ
6094
6095
6096 eval "$ac_cv_use_choice"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6102 echo "$ac_t""yes" 1>&6
10f2d63a 6103 else
a0b9e27f 6104 echo "$ac_t""no" 1>&6
10f2d63a 6105 fi
a0b9e27f 6106
10f2d63a 6107
a0b9e27f 6108 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
3bce6687 6109echo "configure:6110: checking for --enable-combobox" >&5
10f2d63a
VZ
6110 no_cache=0
6111 # Check whether --enable-combobox or --disable-combobox was given.
6112if test "${enable_combobox+set}" = set; then
6113 enableval="$enable_combobox"
a0b9e27f 6114
10f2d63a
VZ
6115 if test "$enableval" = yes; then
6116 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6117 else
6118 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6119 fi
a0b9e27f 6120
10f2d63a 6121else
a0b9e27f 6122
10f2d63a
VZ
6123 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6131
6132fi
10f2d63a
VZ
6133
6134
6135 eval "$ac_cv_use_combobox"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6141 echo "$ac_t""yes" 1>&6
10f2d63a 6142 else
a0b9e27f 6143 echo "$ac_t""no" 1>&6
10f2d63a 6144 fi
a0b9e27f 6145
10f2d63a 6146
a0b9e27f 6147 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
3bce6687 6148echo "configure:6149: checking for --enable-gauge" >&5
10f2d63a
VZ
6149 no_cache=0
6150 # Check whether --enable-gauge or --disable-gauge was given.
6151if test "${enable_gauge+set}" = set; then
6152 enableval="$enable_gauge"
a0b9e27f 6153
10f2d63a
VZ
6154 if test "$enableval" = yes; then
6155 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6156 else
6157 ac_cv_use_gauge='wxUSE_GAUGE=no'
6158 fi
a0b9e27f 6159
10f2d63a 6160else
a0b9e27f 6161
10f2d63a
VZ
6162 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6170
6171fi
10f2d63a
VZ
6172
6173
6174 eval "$ac_cv_use_gauge"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6180 echo "$ac_t""yes" 1>&6
10f2d63a 6181 else
a0b9e27f 6182 echo "$ac_t""no" 1>&6
10f2d63a 6183 fi
a0b9e27f 6184
10f2d63a 6185
a0b9e27f 6186 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
3bce6687 6187echo "configure:6188: checking for --enable-grid" >&5
10f2d63a
VZ
6188 no_cache=0
6189 # Check whether --enable-grid or --disable-grid was given.
6190if test "${enable_grid+set}" = set; then
6191 enableval="$enable_grid"
a0b9e27f 6192
10f2d63a
VZ
6193 if test "$enableval" = yes; then
6194 ac_cv_use_grid='wxUSE_GRID=yes'
6195 else
6196 ac_cv_use_grid='wxUSE_GRID=no'
6197 fi
a0b9e27f 6198
10f2d63a 6199else
a0b9e27f 6200
10f2d63a
VZ
6201 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6209
6210fi
10f2d63a
VZ
6211
6212
6213 eval "$ac_cv_use_grid"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6219 echo "$ac_t""yes" 1>&6
10f2d63a 6220 else
a0b9e27f 6221 echo "$ac_t""no" 1>&6
10f2d63a 6222 fi
a0b9e27f 6223
10f2d63a 6224
a0b9e27f 6225 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
3bce6687 6226echo "configure:6227: checking for --enable-newgrid" >&5
10f2d63a
VZ
6227 no_cache=0
6228 # Check whether --enable-newgrid or --disable-newgrid was given.
6229if test "${enable_newgrid+set}" = set; then
6230 enableval="$enable_newgrid"
a0b9e27f 6231
10f2d63a
VZ
6232 if test "$enableval" = yes; then
6233 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6234 else
6235 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6236 fi
a0b9e27f 6237
10f2d63a 6238else
a0b9e27f 6239
10f2d63a
VZ
6240 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
a0b9e27f
MB
6248
6249fi
10f2d63a
VZ
6250
6251
6252 eval "$ac_cv_use_newgrid"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_NEW_GRID" = yes; then
a0b9e27f 6258 echo "$ac_t""yes" 1>&6
10f2d63a 6259 else
a0b9e27f 6260 echo "$ac_t""no" 1>&6
10f2d63a 6261 fi
a0b9e27f 6262
10f2d63a 6263
a0b9e27f 6264 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
3bce6687 6265echo "configure:6266: checking for --enable-imaglist" >&5
10f2d63a
VZ
6266 no_cache=0
6267 # Check whether --enable-imaglist or --disable-imaglist was given.
6268if test "${enable_imaglist+set}" = set; then
6269 enableval="$enable_imaglist"
a0b9e27f 6270
10f2d63a
VZ
6271 if test "$enableval" = yes; then
6272 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6273 else
6274 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6275 fi
a0b9e27f 6276
10f2d63a 6277else
a0b9e27f 6278
10f2d63a
VZ
6279 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6287
6288fi
10f2d63a
VZ
6289
6290
6291 eval "$ac_cv_use_imaglist"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6297 echo "$ac_t""yes" 1>&6
10f2d63a 6298 else
a0b9e27f 6299 echo "$ac_t""no" 1>&6
10f2d63a 6300 fi
a0b9e27f 6301
10f2d63a 6302
a0b9e27f 6303 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
3bce6687 6304echo "configure:6305: checking for --enable-listbox" >&5
10f2d63a
VZ
6305 no_cache=0
6306 # Check whether --enable-listbox or --disable-listbox was given.
6307if test "${enable_listbox+set}" = set; then
6308 enableval="$enable_listbox"
a0b9e27f 6309
10f2d63a
VZ
6310 if test "$enableval" = yes; then
6311 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6312 else
6313 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6314 fi
a0b9e27f 6315
10f2d63a 6316else
a0b9e27f 6317
10f2d63a
VZ
6318 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6326
6327fi
10f2d63a
VZ
6328
6329
6330 eval "$ac_cv_use_listbox"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6336 echo "$ac_t""yes" 1>&6
10f2d63a 6337 else
a0b9e27f 6338 echo "$ac_t""no" 1>&6
10f2d63a 6339 fi
a0b9e27f 6340
10f2d63a 6341
a0b9e27f 6342 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
3bce6687 6343echo "configure:6344: checking for --enable-listctrl" >&5
10f2d63a
VZ
6344 no_cache=0
6345 # Check whether --enable-listctrl or --disable-listctrl was given.
6346if test "${enable_listctrl+set}" = set; then
6347 enableval="$enable_listctrl"
a0b9e27f 6348
10f2d63a
VZ
6349 if test "$enableval" = yes; then
6350 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6351 else
6352 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6353 fi
a0b9e27f 6354
10f2d63a 6355else
a0b9e27f 6356
10f2d63a
VZ
6357 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6365
6366fi
10f2d63a
VZ
6367
6368
6369 eval "$ac_cv_use_listctrl"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6375 echo "$ac_t""yes" 1>&6
10f2d63a 6376 else
a0b9e27f 6377 echo "$ac_t""no" 1>&6
10f2d63a 6378 fi
a0b9e27f 6379
10f2d63a 6380
a0b9e27f 6381 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
3bce6687 6382echo "configure:6383: checking for --enable-notebook" >&5
10f2d63a
VZ
6383 no_cache=0
6384 # Check whether --enable-notebook or --disable-notebook was given.
6385if test "${enable_notebook+set}" = set; then
6386 enableval="$enable_notebook"
a0b9e27f 6387
10f2d63a
VZ
6388 if test "$enableval" = yes; then
6389 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6390 else
6391 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6392 fi
a0b9e27f 6393
10f2d63a 6394else
a0b9e27f 6395
10f2d63a
VZ
6396 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6404
6405fi
10f2d63a
VZ
6406
6407
6408 eval "$ac_cv_use_notebook"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6414 echo "$ac_t""yes" 1>&6
10f2d63a 6415 else
a0b9e27f 6416 echo "$ac_t""no" 1>&6
10f2d63a 6417 fi
a0b9e27f 6418
10f2d63a 6419
a0b9e27f 6420 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
3bce6687 6421echo "configure:6422: checking for --enable-propsheet" >&5
24176f2c
GD
6422 no_cache=0
6423 # Check whether --enable-propsheet or --disable-propsheet was given.
6424if test "${enable_propsheet+set}" = set; then
6425 enableval="$enable_propsheet"
a0b9e27f 6426
24176f2c
GD
6427 if test "$enableval" = yes; then
6428 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6429 else
6430 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6431 fi
a0b9e27f 6432
24176f2c 6433else
a0b9e27f 6434
24176f2c
GD
6435 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6443
6444fi
24176f2c
GD
6445
6446
6447 eval "$ac_cv_use_propsheet"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6453 echo "$ac_t""yes" 1>&6
24176f2c 6454 else
a0b9e27f 6455 echo "$ac_t""no" 1>&6
24176f2c 6456 fi
a0b9e27f 6457
24176f2c 6458
a0b9e27f 6459 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
3bce6687 6460echo "configure:6461: checking for --enable-radiobox" >&5
10f2d63a
VZ
6461 no_cache=0
6462 # Check whether --enable-radiobox or --disable-radiobox was given.
6463if test "${enable_radiobox+set}" = set; then
6464 enableval="$enable_radiobox"
a0b9e27f 6465
10f2d63a
VZ
6466 if test "$enableval" = yes; then
6467 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6468 else
6469 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6470 fi
a0b9e27f 6471
10f2d63a 6472else
a0b9e27f 6473
10f2d63a
VZ
6474 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6482
6483fi
10f2d63a
VZ
6484
6485
6486 eval "$ac_cv_use_radiobox"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6492 echo "$ac_t""yes" 1>&6
10f2d63a 6493 else
a0b9e27f 6494 echo "$ac_t""no" 1>&6
10f2d63a 6495 fi
a0b9e27f 6496
10f2d63a 6497
a0b9e27f 6498 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
3bce6687 6499echo "configure:6500: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6500 no_cache=0
6501 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6502if test "${enable_radiobtn+set}" = set; then
6503 enableval="$enable_radiobtn"
a0b9e27f 6504
10f2d63a
VZ
6505 if test "$enableval" = yes; then
6506 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6507 else
6508 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6509 fi
a0b9e27f 6510
10f2d63a 6511else
a0b9e27f 6512
10f2d63a
VZ
6513 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6521
6522fi
10f2d63a
VZ
6523
6524
6525 eval "$ac_cv_use_radiobtn"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6531 echo "$ac_t""yes" 1>&6
10f2d63a 6532 else
a0b9e27f 6533 echo "$ac_t""no" 1>&6
10f2d63a 6534 fi
a0b9e27f 6535
10f2d63a 6536
a0b9e27f 6537 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
3bce6687 6538echo "configure:6539: checking for --enable-sash" >&5
10f2d63a
VZ
6539 no_cache=0
6540 # Check whether --enable-sash or --disable-sash was given.
6541if test "${enable_sash+set}" = set; then
6542 enableval="$enable_sash"
a0b9e27f 6543
10f2d63a
VZ
6544 if test "$enableval" = yes; then
6545 ac_cv_use_sash='wxUSE_SASH=yes'
6546 else
6547 ac_cv_use_sash='wxUSE_SASH=no'
6548 fi
a0b9e27f 6549
10f2d63a 6550else
a0b9e27f 6551
10f2d63a
VZ
6552 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6560
6561fi
10f2d63a
VZ
6562
6563
6564 eval "$ac_cv_use_sash"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6570 echo "$ac_t""yes" 1>&6
10f2d63a 6571 else
a0b9e27f 6572 echo "$ac_t""no" 1>&6
10f2d63a 6573 fi
a0b9e27f 6574
10f2d63a 6575
a0b9e27f 6576 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
3bce6687 6577echo "configure:6578: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6578 no_cache=0
6579 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6580if test "${enable_scrollbar+set}" = set; then
6581 enableval="$enable_scrollbar"
a0b9e27f 6582
10f2d63a
VZ
6583 if test "$enableval" = yes; then
6584 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6585 else
6586 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6587 fi
a0b9e27f 6588
10f2d63a 6589else
a0b9e27f 6590
10f2d63a
VZ
6591 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6592 if test "x$LINE" != x ; then
6593 eval "DEFAULT_$LINE"
6594 else
6595 no_cache=1
6596 fi
6597
6598 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6599
6600fi
10f2d63a
VZ
6601
6602
6603 eval "$ac_cv_use_scrollbar"
6604 if test "$no_cache" != 1; then
6605 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6606 fi
6607
6608 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6609 echo "$ac_t""yes" 1>&6
10f2d63a 6610 else
a0b9e27f 6611 echo "$ac_t""no" 1>&6
10f2d63a 6612 fi
a0b9e27f 6613
10f2d63a 6614
a0b9e27f 6615 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
3bce6687 6616echo "configure:6617: checking for --enable-slider" >&5
10f2d63a
VZ
6617 no_cache=0
6618 # Check whether --enable-slider or --disable-slider was given.
6619if test "${enable_slider+set}" = set; then
6620 enableval="$enable_slider"
a0b9e27f 6621
10f2d63a
VZ
6622 if test "$enableval" = yes; then
6623 ac_cv_use_slider='wxUSE_SLIDER=yes'
6624 else
6625 ac_cv_use_slider='wxUSE_SLIDER=no'
6626 fi
a0b9e27f 6627
10f2d63a 6628else
a0b9e27f 6629
10f2d63a
VZ
6630 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6638
6639fi
10f2d63a
VZ
6640
6641
6642 eval "$ac_cv_use_slider"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6648 echo "$ac_t""yes" 1>&6
10f2d63a 6649 else
a0b9e27f 6650 echo "$ac_t""no" 1>&6
10f2d63a 6651 fi
a0b9e27f 6652
10f2d63a 6653
a0b9e27f 6654 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
3bce6687 6655echo "configure:6656: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6656 no_cache=0
6657 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6658if test "${enable_spinbtn+set}" = set; then
6659 enableval="$enable_spinbtn"
a0b9e27f 6660
10f2d63a
VZ
6661 if test "$enableval" = yes; then
6662 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6663 else
6664 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6665 fi
a0b9e27f 6666
10f2d63a 6667else
a0b9e27f 6668
10f2d63a
VZ
6669 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6677
6678fi
10f2d63a
VZ
6679
6680
6681 eval "$ac_cv_use_spinbtn"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6687 echo "$ac_t""yes" 1>&6
10f2d63a 6688 else
a0b9e27f 6689 echo "$ac_t""no" 1>&6
10f2d63a 6690 fi
a0b9e27f 6691
10f2d63a 6692
a0b9e27f 6693 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
3bce6687 6694echo "configure:6695: checking for --enable-spinctrl" >&5
56cfaa52
RR
6695 no_cache=0
6696 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6697if test "${enable_spinctrl+set}" = set; then
6698 enableval="$enable_spinctrl"
a0b9e27f 6699
56cfaa52
RR
6700 if test "$enableval" = yes; then
6701 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6702 else
6703 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6704 fi
a0b9e27f 6705
56cfaa52 6706else
a0b9e27f 6707
56cfaa52
RR
6708 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6716
6717fi
56cfaa52
RR
6718
6719
6720 eval "$ac_cv_use_spinctrl"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6726 echo "$ac_t""yes" 1>&6
56cfaa52 6727 else
a0b9e27f 6728 echo "$ac_t""no" 1>&6
56cfaa52 6729 fi
a0b9e27f 6730
56cfaa52 6731
a0b9e27f 6732 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
3bce6687 6733echo "configure:6734: checking for --enable-splitter" >&5
10f2d63a
VZ
6734 no_cache=0
6735 # Check whether --enable-splitter or --disable-splitter was given.
6736if test "${enable_splitter+set}" = set; then
6737 enableval="$enable_splitter"
a0b9e27f 6738
10f2d63a
VZ
6739 if test "$enableval" = yes; then
6740 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6741 else
6742 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6743 fi
a0b9e27f 6744
10f2d63a 6745else
a0b9e27f 6746
10f2d63a
VZ
6747 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6755
6756fi
10f2d63a
VZ
6757
6758
6759 eval "$ac_cv_use_splitter"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6765 echo "$ac_t""yes" 1>&6
10f2d63a 6766 else
a0b9e27f 6767 echo "$ac_t""no" 1>&6
10f2d63a 6768 fi
a0b9e27f 6769
10f2d63a 6770
a0b9e27f 6771 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
3bce6687 6772echo "configure:6773: checking for --enable-statbmp" >&5
10f2d63a
VZ
6773 no_cache=0
6774 # Check whether --enable-statbmp or --disable-statbmp was given.
6775if test "${enable_statbmp+set}" = set; then
6776 enableval="$enable_statbmp"
a0b9e27f 6777
10f2d63a
VZ
6778 if test "$enableval" = yes; then
6779 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6780 else
6781 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6782 fi
a0b9e27f 6783
10f2d63a 6784else
a0b9e27f 6785
10f2d63a
VZ
6786 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6794
6795fi
10f2d63a
VZ
6796
6797
6798 eval "$ac_cv_use_statbmp"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6804 echo "$ac_t""yes" 1>&6
10f2d63a 6805 else
a0b9e27f 6806 echo "$ac_t""no" 1>&6
10f2d63a 6807 fi
a0b9e27f 6808
10f2d63a 6809
a0b9e27f 6810 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
3bce6687 6811echo "configure:6812: checking for --enable-statbox" >&5
10f2d63a
VZ
6812 no_cache=0
6813 # Check whether --enable-statbox or --disable-statbox was given.
6814if test "${enable_statbox+set}" = set; then
6815 enableval="$enable_statbox"
a0b9e27f 6816
10f2d63a
VZ
6817 if test "$enableval" = yes; then
6818 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6819 else
6820 ac_cv_use_statbox='wxUSE_STATBOX=no'
6821 fi
a0b9e27f 6822
10f2d63a 6823else
a0b9e27f 6824
10f2d63a
VZ
6825 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6833
6834fi
10f2d63a
VZ
6835
6836
6837 eval "$ac_cv_use_statbox"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6843 echo "$ac_t""yes" 1>&6
10f2d63a 6844 else
a0b9e27f 6845 echo "$ac_t""no" 1>&6
10f2d63a 6846 fi
a0b9e27f 6847
10f2d63a 6848
a0b9e27f 6849 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
3bce6687 6850echo "configure:6851: checking for --enable-statline" >&5
10f2d63a
VZ
6851 no_cache=0
6852 # Check whether --enable-statline or --disable-statline was given.
6853if test "${enable_statline+set}" = set; then
6854 enableval="$enable_statline"
a0b9e27f 6855
10f2d63a
VZ
6856 if test "$enableval" = yes; then
6857 ac_cv_use_statline='wxUSE_STATLINE=yes'
6858 else
6859 ac_cv_use_statline='wxUSE_STATLINE=no'
6860 fi
a0b9e27f 6861
10f2d63a 6862else
a0b9e27f 6863
10f2d63a
VZ
6864 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6872
6873fi
10f2d63a
VZ
6874
6875
6876 eval "$ac_cv_use_statline"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6882 echo "$ac_t""yes" 1>&6
10f2d63a 6883 else
a0b9e27f 6884 echo "$ac_t""no" 1>&6
10f2d63a 6885 fi
a0b9e27f 6886
10f2d63a 6887
a0b9e27f 6888 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
3bce6687 6889echo "configure:6890: checking for --enable-stattext" >&5
1e6feb95
VZ
6890 no_cache=0
6891 # Check whether --enable-stattext or --disable-stattext was given.
6892if test "${enable_stattext+set}" = set; then
6893 enableval="$enable_stattext"
a0b9e27f 6894
1e6feb95
VZ
6895 if test "$enableval" = yes; then
6896 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6897 else
6898 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6899 fi
a0b9e27f 6900
1e6feb95 6901else
a0b9e27f 6902
1e6feb95
VZ
6903 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
6910 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6911
6912fi
1e6feb95
VZ
6913
6914
6915 eval "$ac_cv_use_stattext"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6921 echo "$ac_t""yes" 1>&6
1e6feb95 6922 else
a0b9e27f 6923 echo "$ac_t""no" 1>&6
1e6feb95 6924 fi
a0b9e27f 6925
1e6feb95 6926
a0b9e27f 6927 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
3bce6687 6928echo "configure:6929: checking for --enable-statusbar" >&5
10f2d63a
VZ
6929 no_cache=0
6930 # Check whether --enable-statusbar or --disable-statusbar was given.
6931if test "${enable_statusbar+set}" = set; then
6932 enableval="$enable_statusbar"
a0b9e27f 6933
10f2d63a
VZ
6934 if test "$enableval" = yes; then
6935 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6936 else
6937 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6938 fi
a0b9e27f 6939
10f2d63a 6940else
a0b9e27f 6941
10f2d63a
VZ
6942 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
6950
6951fi
10f2d63a
VZ
6952
6953
6954 eval "$ac_cv_use_statusbar"
6955 if test "$no_cache" != 1; then
6956 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6957 fi
6958
6959 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 6960 echo "$ac_t""yes" 1>&6
10f2d63a 6961 else
a0b9e27f 6962 echo "$ac_t""no" 1>&6
10f2d63a 6963 fi
a0b9e27f 6964
10f2d63a 6965
a0b9e27f 6966 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
3bce6687 6967echo "configure:6968: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6968 no_cache=0
6969 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6970if test "${enable_tabdialog+set}" = set; then
6971 enableval="$enable_tabdialog"
a0b9e27f 6972
10f2d63a
VZ
6973 if test "$enableval" = yes; then
6974 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6975 else
6976 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6977 fi
a0b9e27f 6978
10f2d63a 6979else
a0b9e27f 6980
10f2d63a
VZ
6981 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
6989
6990fi
10f2d63a
VZ
6991
6992
6993 eval "$ac_cv_use_tabdialog"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 6999 echo "$ac_t""yes" 1>&6
10f2d63a 7000 else
a0b9e27f 7001 echo "$ac_t""no" 1>&6
10f2d63a 7002 fi
a0b9e27f 7003
10f2d63a 7004
a0b9e27f 7005 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
3bce6687 7006echo "configure:7007: checking for --enable-textctrl" >&5
1e6feb95
VZ
7007 no_cache=0
7008 # Check whether --enable-textctrl or --disable-textctrl was given.
7009if test "${enable_textctrl+set}" = set; then
7010 enableval="$enable_textctrl"
a0b9e27f 7011
1e6feb95
VZ
7012 if test "$enableval" = yes; then
7013 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7014 else
7015 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7016 fi
a0b9e27f 7017
1e6feb95 7018else
a0b9e27f 7019
1e6feb95
VZ
7020 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7028
7029fi
1e6feb95
VZ
7030
7031
7032 eval "$ac_cv_use_textctrl"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7035 fi
7036
7037 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7038 echo "$ac_t""yes" 1>&6
1e6feb95 7039 else
a0b9e27f 7040 echo "$ac_t""no" 1>&6
1e6feb95 7041 fi
a0b9e27f 7042
1e6feb95 7043
a0b9e27f 7044 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
3bce6687 7045echo "configure:7046: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
7046 no_cache=0
7047 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7048if test "${enable_togglebtn+set}" = set; then
7049 enableval="$enable_togglebtn"
a0b9e27f 7050
1db8dc4a
VZ
7051 if test "$enableval" = yes; then
7052 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7053 else
7054 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7055 fi
a0b9e27f 7056
1db8dc4a 7057else
a0b9e27f 7058
1db8dc4a
VZ
7059 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7067
7068fi
1db8dc4a
VZ
7069
7070
7071 eval "$ac_cv_use_togglebtn"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7077 echo "$ac_t""yes" 1>&6
1db8dc4a 7078 else
a0b9e27f 7079 echo "$ac_t""no" 1>&6
1db8dc4a 7080 fi
a0b9e27f 7081
1db8dc4a 7082
a0b9e27f 7083 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
3bce6687 7084echo "configure:7085: checking for --enable-toolbar" >&5
10f2d63a
VZ
7085 no_cache=0
7086 # Check whether --enable-toolbar or --disable-toolbar was given.
7087if test "${enable_toolbar+set}" = set; then
7088 enableval="$enable_toolbar"
a0b9e27f 7089
10f2d63a
VZ
7090 if test "$enableval" = yes; then
7091 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7092 else
7093 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7094 fi
a0b9e27f 7095
10f2d63a 7096else
a0b9e27f 7097
10f2d63a
VZ
7098 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7106
7107fi
10f2d63a
VZ
7108
7109
7110 eval "$ac_cv_use_toolbar"
7111 if test "$no_cache" != 1; then
7112 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7113 fi
7114
7115 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7116 echo "$ac_t""yes" 1>&6
10f2d63a 7117 else
a0b9e27f 7118 echo "$ac_t""no" 1>&6
10f2d63a 7119 fi
a0b9e27f 7120
10f2d63a 7121
a0b9e27f 7122 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
3bce6687 7123echo "configure:7124: checking for --enable-tbarnative" >&5
360d6699
VZ
7124 no_cache=0
7125 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7126if test "${enable_tbarnative+set}" = set; then
7127 enableval="$enable_tbarnative"
a0b9e27f 7128
360d6699
VZ
7129 if test "$enableval" = yes; then
7130 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7131 else
7132 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7133 fi
a0b9e27f 7134
360d6699 7135else
a0b9e27f 7136
360d6699
VZ
7137 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7138 if test "x$LINE" != x ; then
7139 eval "DEFAULT_$LINE"
7140 else
7141 no_cache=1
7142 fi
7143
7144 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7145
7146fi
360d6699
VZ
7147
7148
7149 eval "$ac_cv_use_tbarnative"
7150 if test "$no_cache" != 1; then
7151 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7152 fi
7153
7154 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7155 echo "$ac_t""yes" 1>&6
360d6699 7156 else
a0b9e27f 7157 echo "$ac_t""no" 1>&6
360d6699 7158 fi
a0b9e27f 7159
360d6699 7160
a0b9e27f 7161 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
3bce6687 7162echo "configure:7163: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7163 no_cache=0
7164 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7165if test "${enable_tbarsmpl+set}" = set; then
7166 enableval="$enable_tbarsmpl"
a0b9e27f 7167
360d6699
VZ
7168 if test "$enableval" = yes; then
7169 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7170 else
7171 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7172 fi
a0b9e27f 7173
360d6699 7174else
a0b9e27f 7175
360d6699
VZ
7176 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7177 if test "x$LINE" != x ; then
7178 eval "DEFAULT_$LINE"
7179 else
7180 no_cache=1
7181 fi
7182
7183 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7184
7185fi
360d6699
VZ
7186
7187
7188 eval "$ac_cv_use_tbarsmpl"
7189 if test "$no_cache" != 1; then
7190 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7191 fi
7192
7193 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7194 echo "$ac_t""yes" 1>&6
360d6699 7195 else
a0b9e27f 7196 echo "$ac_t""no" 1>&6
360d6699 7197 fi
a0b9e27f 7198
360d6699 7199
a0b9e27f 7200 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
3bce6687 7201echo "configure:7202: checking for --enable-treectrl" >&5
10f2d63a
VZ
7202 no_cache=0
7203 # Check whether --enable-treectrl or --disable-treectrl was given.
7204if test "${enable_treectrl+set}" = set; then
7205 enableval="$enable_treectrl"
a0b9e27f 7206
10f2d63a
VZ
7207 if test "$enableval" = yes; then
7208 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7209 else
7210 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7211 fi
a0b9e27f 7212
10f2d63a 7213else
a0b9e27f 7214
10f2d63a
VZ
7215 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7216 if test "x$LINE" != x ; then
7217 eval "DEFAULT_$LINE"
7218 else
7219 no_cache=1
7220 fi
7221
7222 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7223
7224fi
10f2d63a
VZ
7225
7226
1e6feb95
VZ
7227 eval "$ac_cv_use_treectrl"
7228 if test "$no_cache" != 1; then
7229 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7230 fi
7231
7232 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7233 echo "$ac_t""yes" 1>&6
1e6feb95 7234 else
a0b9e27f 7235 echo "$ac_t""no" 1>&6
1e6feb95 7236 fi
a0b9e27f 7237
1e6feb95 7238
a0b9e27f 7239 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
3bce6687 7240echo "configure:7241: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7241 no_cache=0
7242 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7243if test "${enable_tipwindow+set}" = set; then
7244 enableval="$enable_tipwindow"
a0b9e27f 7245
9926e4a4
VZ
7246 if test "$enableval" = yes; then
7247 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7248 else
7249 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7250 fi
a0b9e27f 7251
9926e4a4 7252else
a0b9e27f 7253
9926e4a4
VZ
7254 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7255 if test "x$LINE" != x ; then
7256 eval "DEFAULT_$LINE"
7257 else
7258 no_cache=1
7259 fi
7260
7261 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7262
7263fi
9926e4a4
VZ
7264
7265
7266 eval "$ac_cv_use_tipwindow"
7267 if test "$no_cache" != 1; then
7268 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7269 fi
7270
7271 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7272 echo "$ac_t""yes" 1>&6
9926e4a4 7273 else
a0b9e27f 7274 echo "$ac_t""no" 1>&6
9926e4a4 7275 fi
a0b9e27f 7276
9926e4a4 7277
a0b9e27f 7278 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
3bce6687 7279echo "configure:7280: checking for --enable-popupwin" >&5
9f41d601
RR
7280 no_cache=0
7281 # Check whether --enable-popupwin or --disable-popupwin was given.
7282if test "${enable_popupwin+set}" = set; then
7283 enableval="$enable_popupwin"
a0b9e27f 7284
9f41d601
RR
7285 if test "$enableval" = yes; then
7286 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7287 else
7288 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7289 fi
a0b9e27f 7290
9f41d601 7291else
a0b9e27f 7292
9f41d601
RR
7293 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7301
7302fi
9f41d601
RR
7303
7304
7305 eval "$ac_cv_use_popupwin"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7311 echo "$ac_t""yes" 1>&6
9f41d601 7312 else
a0b9e27f 7313 echo "$ac_t""no" 1>&6
9f41d601 7314 fi
a0b9e27f 7315
52127426 7316
8284b0c5
MB
7317
7318
a0b9e27f 7319 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
3bce6687 7320echo "configure:7321: checking for --enable-commondlg" >&5
1e6feb95
VZ
7321 no_cache=0
7322 # Check whether --enable-commondlg or --disable-commondlg was given.
7323if test "${enable_commondlg+set}" = set; then
7324 enableval="$enable_commondlg"
a0b9e27f 7325
1e6feb95
VZ
7326 if test "$enableval" = yes; then
7327 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7328 else
7329 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7330 fi
a0b9e27f 7331
1e6feb95 7332else
a0b9e27f 7333
1e6feb95
VZ
7334 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7342
7343fi
1e6feb95
VZ
7344
7345
7346 eval "$ac_cv_use_commondlg"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7352 echo "$ac_t""yes" 1>&6
1e6feb95 7353 else
a0b9e27f 7354 echo "$ac_t""no" 1>&6
1e6feb95 7355 fi
a0b9e27f 7356
1e6feb95 7357
a0b9e27f 7358 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
3bce6687 7359echo "configure:7360: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7360 no_cache=0
7361 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7362if test "${enable_choicedlg+set}" = set; then
7363 enableval="$enable_choicedlg"
a0b9e27f 7364
1e6feb95
VZ
7365 if test "$enableval" = yes; then
7366 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7367 else
7368 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7369 fi
a0b9e27f 7370
1e6feb95 7371else
a0b9e27f 7372
1e6feb95
VZ
7373 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7381
7382fi
1e6feb95
VZ
7383
7384
7385 eval "$ac_cv_use_choicedlg"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7391 echo "$ac_t""yes" 1>&6
1e6feb95 7392 else
a0b9e27f 7393 echo "$ac_t""no" 1>&6
1e6feb95 7394 fi
a0b9e27f 7395
1e6feb95 7396
a0b9e27f 7397 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
3bce6687 7398echo "configure:7399: checking for --enable-coldlg" >&5
1e6feb95
VZ
7399 no_cache=0
7400 # Check whether --enable-coldlg or --disable-coldlg was given.
7401if test "${enable_coldlg+set}" = set; then
7402 enableval="$enable_coldlg"
a0b9e27f 7403
1e6feb95
VZ
7404 if test "$enableval" = yes; then
7405 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7406 else
7407 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7408 fi
a0b9e27f 7409
1e6feb95 7410else
a0b9e27f 7411
1e6feb95
VZ
7412 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7420
7421fi
1e6feb95
VZ
7422
7423
7424 eval "$ac_cv_use_coldlg"
7425 if test "$no_cache" != 1; then
7426 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7427 fi
7428
7429 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7430 echo "$ac_t""yes" 1>&6
1e6feb95 7431 else
a0b9e27f 7432 echo "$ac_t""no" 1>&6
1e6feb95 7433 fi
a0b9e27f 7434
1e6feb95 7435
a0b9e27f 7436 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
3bce6687 7437echo "configure:7438: checking for --enable-filedlg" >&5
1e6feb95
VZ
7438 no_cache=0
7439 # Check whether --enable-filedlg or --disable-filedlg was given.
7440if test "${enable_filedlg+set}" = set; then
7441 enableval="$enable_filedlg"
a0b9e27f 7442
1e6feb95
VZ
7443 if test "$enableval" = yes; then
7444 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7445 else
7446 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7447 fi
a0b9e27f 7448
1e6feb95 7449else
a0b9e27f 7450
1e6feb95
VZ
7451 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7459
7460fi
1e6feb95
VZ
7461
7462
7463 eval "$ac_cv_use_filedlg"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7469 echo "$ac_t""yes" 1>&6
1e6feb95 7470 else
a0b9e27f 7471 echo "$ac_t""no" 1>&6
1e6feb95 7472 fi
a0b9e27f 7473
1e6feb95 7474
a0b9e27f 7475 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
3bce6687 7476echo "configure:7477: checking for --enable-finddlg" >&5
8db37e06 7477 no_cache=0
69d27ff7
MB
7478 # Check whether --enable-finddlg or --disable-finddlg was given.
7479if test "${enable_finddlg+set}" = set; then
7480 enableval="$enable_finddlg"
a0b9e27f 7481
8db37e06 7482 if test "$enableval" = yes; then
69d27ff7 7483 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7484 else
69d27ff7 7485 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7486 fi
a0b9e27f 7487
8db37e06 7488else
a0b9e27f 7489
8db37e06
VZ
7490 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
69d27ff7 7497 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7498
7499fi
8db37e06
VZ
7500
7501
69d27ff7 7502 eval "$ac_cv_use_finddlg"
8db37e06 7503 if test "$no_cache" != 1; then
69d27ff7 7504 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7505 fi
7506
7507 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7508 echo "$ac_t""yes" 1>&6
8db37e06 7509 else
a0b9e27f 7510 echo "$ac_t""no" 1>&6
8db37e06 7511 fi
a0b9e27f 7512
8db37e06 7513
a0b9e27f 7514 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
3bce6687 7515echo "configure:7516: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7516 no_cache=0
7517 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7518if test "${enable_fontdlg+set}" = set; then
7519 enableval="$enable_fontdlg"
a0b9e27f 7520
1e6feb95
VZ
7521 if test "$enableval" = yes; then
7522 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7523 else
7524 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7525 fi
a0b9e27f 7526
1e6feb95 7527else
a0b9e27f 7528
1e6feb95
VZ
7529 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7530 if test "x$LINE" != x ; then
7531 eval "DEFAULT_$LINE"
7532 else
7533 no_cache=1
7534 fi
7535
7536 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7537
7538fi
1e6feb95
VZ
7539
7540
7541 eval "$ac_cv_use_fontdlg"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7547 echo "$ac_t""yes" 1>&6
1e6feb95 7548 else
a0b9e27f 7549 echo "$ac_t""no" 1>&6
1e6feb95 7550 fi
a0b9e27f 7551
1e6feb95 7552
a0b9e27f 7553 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
3bce6687 7554echo "configure:7555: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7555 no_cache=0
7556 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7557if test "${enable_dirdlg+set}" = set; then
7558 enableval="$enable_dirdlg"
a0b9e27f 7559
1e6feb95
VZ
7560 if test "$enableval" = yes; then
7561 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7562 else
7563 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7564 fi
a0b9e27f 7565
1e6feb95 7566else
a0b9e27f 7567
1e6feb95
VZ
7568 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7576
7577fi
1e6feb95
VZ
7578
7579
7580 eval "$ac_cv_use_dirdlg"
10f2d63a 7581 if test "$no_cache" != 1; then
1e6feb95 7582 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7583 fi
7584
1e6feb95 7585 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7586 echo "$ac_t""yes" 1>&6
10f2d63a 7587 else
a0b9e27f 7588 echo "$ac_t""no" 1>&6
10f2d63a 7589 fi
a0b9e27f 7590
698dcdb6 7591
a0b9e27f 7592 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
3bce6687 7593echo "configure:7594: checking for --enable-msgdlg" >&5
10f2d63a 7594 no_cache=0
1e6feb95
VZ
7595 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7596if test "${enable_msgdlg+set}" = set; then
7597 enableval="$enable_msgdlg"
a0b9e27f 7598
10f2d63a 7599 if test "$enableval" = yes; then
1e6feb95 7600 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7601 else
1e6feb95 7602 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7603 fi
a0b9e27f 7604
10f2d63a 7605else
a0b9e27f 7606
1e6feb95 7607 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7608 if test "x$LINE" != x ; then
7609 eval "DEFAULT_$LINE"
7610 else
7611 no_cache=1
7612 fi
7613
1e6feb95 7614 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7615
7616fi
10f2d63a
VZ
7617
7618
1e6feb95 7619 eval "$ac_cv_use_msgdlg"
10f2d63a 7620 if test "$no_cache" != 1; then
1e6feb95 7621 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7622 fi
7623
1e6feb95 7624 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7625 echo "$ac_t""yes" 1>&6
10f2d63a 7626 else
a0b9e27f 7627 echo "$ac_t""no" 1>&6
10f2d63a 7628 fi
a0b9e27f 7629
10f2d63a 7630
a0b9e27f 7631 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
3bce6687 7632echo "configure:7633: checking for --enable-numberdlg" >&5
10f2d63a 7633 no_cache=0
1e6feb95
VZ
7634 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7635if test "${enable_numberdlg+set}" = set; then
7636 enableval="$enable_numberdlg"
a0b9e27f 7637
10f2d63a 7638 if test "$enableval" = yes; then
1e6feb95 7639 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7640 else
1e6feb95 7641 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7642 fi
a0b9e27f 7643
10f2d63a 7644else
a0b9e27f 7645
1e6feb95 7646 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
1e6feb95 7653 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7654
7655fi
10f2d63a
VZ
7656
7657
1e6feb95 7658 eval "$ac_cv_use_numberdlg"
10f2d63a 7659 if test "$no_cache" != 1; then
1e6feb95 7660 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7661 fi
7662
1e6feb95 7663 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7664 echo "$ac_t""yes" 1>&6
10f2d63a 7665 else
a0b9e27f 7666 echo "$ac_t""no" 1>&6
10f2d63a 7667 fi
a0b9e27f 7668
10f2d63a 7669
a0b9e27f 7670 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
3bce6687 7671echo "configure:7672: checking for --enable-splash" >&5
cbca9943
VZ
7672 no_cache=0
7673 # Check whether --enable-splash or --disable-splash was given.
7674if test "${enable_splash+set}" = set; then
7675 enableval="$enable_splash"
a0b9e27f 7676
cbca9943
VZ
7677 if test "$enableval" = yes; then
7678 ac_cv_use_splash='wxUSE_SPLASH=yes'
7679 else
7680 ac_cv_use_splash='wxUSE_SPLASH=no'
7681 fi
a0b9e27f 7682
cbca9943 7683else
a0b9e27f 7684
cbca9943
VZ
7685 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7693
7694fi
cbca9943
VZ
7695
7696
7697 eval "$ac_cv_use_splash"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7703 echo "$ac_t""yes" 1>&6
cbca9943 7704 else
a0b9e27f 7705 echo "$ac_t""no" 1>&6
cbca9943 7706 fi
a0b9e27f 7707
cbca9943 7708
a0b9e27f 7709 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
3bce6687 7710echo "configure:7711: checking for --enable-textdlg" >&5
10f2d63a
VZ
7711 no_cache=0
7712 # Check whether --enable-textdlg or --disable-textdlg was given.
7713if test "${enable_textdlg+set}" = set; then
7714 enableval="$enable_textdlg"
a0b9e27f 7715
10f2d63a
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7718 else
7719 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7720 fi
a0b9e27f 7721
10f2d63a 7722else
a0b9e27f 7723
10f2d63a
VZ
7724 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7732
7733fi
10f2d63a
VZ
7734
7735
7736 eval "$ac_cv_use_textdlg"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7742 echo "$ac_t""yes" 1>&6
10f2d63a 7743 else
a0b9e27f 7744 echo "$ac_t""no" 1>&6
10f2d63a 7745 fi
a0b9e27f 7746
10f2d63a 7747
a0b9e27f 7748 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
3bce6687 7749echo "configure:7750: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7750 no_cache=0
7751 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7752if test "${enable_tipdlg+set}" = set; then
7753 enableval="$enable_tipdlg"
a0b9e27f 7754
10f2d63a
VZ
7755 if test "$enableval" = yes; then
7756 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7757 else
7758 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7759 fi
a0b9e27f 7760
10f2d63a 7761else
a0b9e27f 7762
10f2d63a
VZ
7763 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7771
7772fi
10f2d63a
VZ
7773
7774
7775 eval "$ac_cv_use_tipdlg"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7781 echo "$ac_t""yes" 1>&6
10f2d63a 7782 else
a0b9e27f 7783 echo "$ac_t""no" 1>&6
10f2d63a 7784 fi
a0b9e27f 7785
10f2d63a 7786
a0b9e27f 7787 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
3bce6687 7788echo "configure:7789: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7789 no_cache=0
7790 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7791if test "${enable_progressdlg+set}" = set; then
7792 enableval="$enable_progressdlg"
a0b9e27f 7793
10f2d63a
VZ
7794 if test "$enableval" = yes; then
7795 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7796 else
7797 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7798 fi
a0b9e27f 7799
10f2d63a 7800else
a0b9e27f 7801
10f2d63a
VZ
7802 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7810
7811fi
10f2d63a
VZ
7812
7813
7814 eval "$ac_cv_use_progressdlg"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7820 echo "$ac_t""yes" 1>&6
10f2d63a 7821 else
a0b9e27f 7822 echo "$ac_t""no" 1>&6
10f2d63a 7823 fi
a0b9e27f 7824
10f2d63a 7825
a0b9e27f 7826 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
3bce6687 7827echo "configure:7828: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7828 no_cache=0
7829 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7830if test "${enable_wizarddlg+set}" = set; then
7831 enableval="$enable_wizarddlg"
a0b9e27f 7832
b1f5d087
VZ
7833 if test "$enableval" = yes; then
7834 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7835 else
7836 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7837 fi
a0b9e27f 7838
b1f5d087 7839else
a0b9e27f 7840
b1f5d087
VZ
7841 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7849
7850fi
b1f5d087
VZ
7851
7852
7853 eval "$ac_cv_use_wizarddlg"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7859 echo "$ac_t""yes" 1>&6
b1f5d087 7860 else
a0b9e27f 7861 echo "$ac_t""no" 1>&6
b1f5d087 7862 fi
a0b9e27f 7863
8284b0c5
MB
7864
7865
52127426 7866
a0b9e27f 7867 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
3bce6687 7868echo "configure:7869: checking for --enable-menus" >&5
1e6feb95
VZ
7869 no_cache=0
7870 # Check whether --enable-menus or --disable-menus was given.
7871if test "${enable_menus+set}" = set; then
7872 enableval="$enable_menus"
a0b9e27f 7873
1e6feb95
VZ
7874 if test "$enableval" = yes; then
7875 ac_cv_use_menus='wxUSE_MENUS=yes'
7876 else
7877 ac_cv_use_menus='wxUSE_MENUS=no'
7878 fi
a0b9e27f 7879
1e6feb95 7880else
a0b9e27f 7881
1e6feb95
VZ
7882 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7890
7891fi
1e6feb95
VZ
7892
7893
7894 eval "$ac_cv_use_menus"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7900 echo "$ac_t""yes" 1>&6
1e6feb95 7901 else
a0b9e27f 7902 echo "$ac_t""no" 1>&6
1e6feb95 7903 fi
a0b9e27f 7904
1e6feb95 7905
a0b9e27f 7906 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
3bce6687 7907echo "configure:7908: checking for --enable-miniframe" >&5
10f2d63a
VZ
7908 no_cache=0
7909 # Check whether --enable-miniframe or --disable-miniframe was given.
7910if test "${enable_miniframe+set}" = set; then
7911 enableval="$enable_miniframe"
a0b9e27f 7912
10f2d63a
VZ
7913 if test "$enableval" = yes; then
7914 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7915 else
7916 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7917 fi
a0b9e27f 7918
10f2d63a 7919else
a0b9e27f 7920
10f2d63a
VZ
7921 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
7929
7930fi
10f2d63a
VZ
7931
7932
7933 eval "$ac_cv_use_miniframe"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 7939 echo "$ac_t""yes" 1>&6
10f2d63a 7940 else
a0b9e27f 7941 echo "$ac_t""no" 1>&6
10f2d63a 7942 fi
a0b9e27f 7943
10f2d63a 7944
a0b9e27f 7945 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
3bce6687 7946echo "configure:7947: checking for --enable-tooltips" >&5
10f2d63a
VZ
7947 no_cache=0
7948 # Check whether --enable-tooltips or --disable-tooltips was given.
7949if test "${enable_tooltips+set}" = set; then
7950 enableval="$enable_tooltips"
a0b9e27f 7951
10f2d63a
VZ
7952 if test "$enableval" = yes; then
7953 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7954 else
7955 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7956 fi
a0b9e27f 7957
10f2d63a 7958else
a0b9e27f 7959
10f2d63a
VZ
7960 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
7968
7969fi
10f2d63a
VZ
7970
7971
7972 eval "$ac_cv_use_tooltips"
7973 if test "$no_cache" != 1; then
7974 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7975 fi
7976
7977 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 7978 echo "$ac_t""yes" 1>&6
10f2d63a 7979 else
a0b9e27f 7980 echo "$ac_t""no" 1>&6
10f2d63a 7981 fi
a0b9e27f 7982
10f2d63a 7983
a0b9e27f 7984 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
3bce6687 7985echo "configure:7986: checking for --enable-splines" >&5
10f2d63a
VZ
7986 no_cache=0
7987 # Check whether --enable-splines or --disable-splines was given.
7988if test "${enable_splines+set}" = set; then
7989 enableval="$enable_splines"
a0b9e27f 7990
10f2d63a
VZ
7991 if test "$enableval" = yes; then
7992 ac_cv_use_splines='wxUSE_SPLINES=yes'
7993 else
7994 ac_cv_use_splines='wxUSE_SPLINES=no'
7995 fi
a0b9e27f 7996
10f2d63a 7997else
a0b9e27f 7998
10f2d63a
VZ
7999 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8000 if test "x$LINE" != x ; then
8001 eval "DEFAULT_$LINE"
8002 else
8003 no_cache=1
8004 fi
8005
8006 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8007
8008fi
10f2d63a
VZ
8009
8010
8011 eval "$ac_cv_use_splines"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8017 echo "$ac_t""yes" 1>&6
10f2d63a 8018 else
a0b9e27f 8019 echo "$ac_t""no" 1>&6
10f2d63a 8020 fi
a0b9e27f 8021
10f2d63a 8022
a0b9e27f 8023 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
3bce6687 8024echo "configure:8025: checking for --enable-validators" >&5
10f2d63a
VZ
8025 no_cache=0
8026 # Check whether --enable-validators or --disable-validators was given.
8027if test "${enable_validators+set}" = set; then
8028 enableval="$enable_validators"
a0b9e27f 8029
10f2d63a
VZ
8030 if test "$enableval" = yes; then
8031 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8032 else
8033 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8034 fi
a0b9e27f 8035
10f2d63a 8036else
a0b9e27f 8037
10f2d63a
VZ
8038 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8039 if test "x$LINE" != x ; then
8040 eval "DEFAULT_$LINE"
8041 else
8042 no_cache=1
8043 fi
8044
8045 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8046
8047fi
10f2d63a
VZ
8048
8049
8050 eval "$ac_cv_use_validators"
8051 if test "$no_cache" != 1; then
8052 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8053 fi
8054
8055 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8056 echo "$ac_t""yes" 1>&6
10f2d63a 8057 else
a0b9e27f 8058 echo "$ac_t""no" 1>&6
10f2d63a 8059 fi
a0b9e27f 8060
10f2d63a 8061
a0b9e27f 8062 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
3bce6687 8063echo "configure:8064: checking for --enable-busyinfo" >&5
10f2d63a
VZ
8064 no_cache=0
8065 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8066if test "${enable_busyinfo+set}" = set; then
8067 enableval="$enable_busyinfo"
a0b9e27f 8068
10f2d63a
VZ
8069 if test "$enableval" = yes; then
8070 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8071 else
8072 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8073 fi
a0b9e27f 8074
10f2d63a 8075else
a0b9e27f 8076
10f2d63a
VZ
8077 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8085
8086fi
10f2d63a
VZ
8087
8088
8089 eval "$ac_cv_use_busyinfo"
8090 if test "$no_cache" != 1; then
8091 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8092 fi
8093
8094 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8095 echo "$ac_t""yes" 1>&6
10f2d63a 8096 else
a0b9e27f 8097 echo "$ac_t""no" 1>&6
10f2d63a 8098 fi
a0b9e27f 8099
10f2d63a 8100
a0b9e27f 8101 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
3bce6687 8102echo "configure:8103: checking for --enable-joystick" >&5
f6bcfd97
BP
8103 no_cache=0
8104 # Check whether --enable-joystick or --disable-joystick was given.
8105if test "${enable_joystick+set}" = set; then
8106 enableval="$enable_joystick"
a0b9e27f 8107
f6bcfd97
BP
8108 if test "$enableval" = yes; then
8109 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8110 else
8111 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8112 fi
a0b9e27f 8113
f6bcfd97 8114else
a0b9e27f 8115
f6bcfd97
BP
8116 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8124
8125fi
f6bcfd97
BP
8126
8127
8128 eval "$ac_cv_use_joystick"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8134 echo "$ac_t""yes" 1>&6
f6bcfd97 8135 else
a0b9e27f 8136 echo "$ac_t""no" 1>&6
f6bcfd97 8137 fi
a0b9e27f 8138
698dcdb6 8139
a0b9e27f 8140 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bce6687 8141echo "configure:8142: checking for --enable-metafile" >&5
1e6feb95
VZ
8142 no_cache=0
8143 # Check whether --enable-metafile or --disable-metafile was given.
8144if test "${enable_metafile+set}" = set; then
8145 enableval="$enable_metafile"
a0b9e27f 8146
1e6feb95
VZ
8147 if test "$enableval" = yes; then
8148 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8149 else
8150 ac_cv_use_metafile='wxUSE_METAFILE=no'
8151 fi
a0b9e27f 8152
1e6feb95 8153else
a0b9e27f 8154
1e6feb95
VZ
8155 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8163
8164fi
1e6feb95
VZ
8165
8166
8167 eval "$ac_cv_use_metafile"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8173 echo "$ac_t""yes" 1>&6
1e6feb95 8174 else
a0b9e27f 8175 echo "$ac_t""no" 1>&6
1e6feb95 8176 fi
a0b9e27f 8177
1e6feb95 8178
a0b9e27f 8179 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
3bce6687 8180echo "configure:8181: checking for --enable-dragimage" >&5
24fd6d87
VZ
8181 no_cache=0
8182 # Check whether --enable-dragimage or --disable-dragimage was given.
8183if test "${enable_dragimage+set}" = set; then
8184 enableval="$enable_dragimage"
a0b9e27f 8185
24fd6d87
VZ
8186 if test "$enableval" = yes; then
8187 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8188 else
8189 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8190 fi
a0b9e27f 8191
24fd6d87 8192else
a0b9e27f 8193
24fd6d87
VZ
8194 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8202
8203fi
24fd6d87
VZ
8204
8205
8206 eval "$ac_cv_use_dragimage"
8207 if test "$no_cache" != 1; then
8208 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8209 fi
8210
8211 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8212 echo "$ac_t""yes" 1>&6
24fd6d87 8213 else
a0b9e27f 8214 echo "$ac_t""no" 1>&6
24fd6d87 8215 fi
a0b9e27f 8216
52127426 8217
8284b0c5
MB
8218
8219
a0b9e27f 8220 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
3bce6687 8221echo "configure:8222: checking for --enable-palette" >&5
edae8572
VZ
8222 no_cache=0
8223 # Check whether --enable-palette or --disable-palette was given.
8224if test "${enable_palette+set}" = set; then
8225 enableval="$enable_palette"
a0b9e27f 8226
edae8572
VZ
8227 if test "$enableval" = yes; then
8228 ac_cv_use_palette='wxUSE_PALETTE=yes'
8229 else
8230 ac_cv_use_palette='wxUSE_PALETTE=no'
8231 fi
a0b9e27f 8232
edae8572 8233else
a0b9e27f 8234
edae8572
VZ
8235 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8243
8244fi
edae8572
VZ
8245
8246
8247 eval "$ac_cv_use_palette"
8248 if test "$no_cache" != 1; then
8249 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8250 fi
8251
8252 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8253 echo "$ac_t""yes" 1>&6
edae8572 8254 else
a0b9e27f 8255 echo "$ac_t""no" 1>&6
edae8572 8256 fi
a0b9e27f 8257
edae8572 8258
a0b9e27f 8259 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
3bce6687 8260echo "configure:8261: checking for --enable-image" >&5
0046ff7c
VS
8261 no_cache=0
8262 # Check whether --enable-image or --disable-image was given.
8263if test "${enable_image+set}" = set; then
8264 enableval="$enable_image"
a0b9e27f 8265
0046ff7c
VS
8266 if test "$enableval" = yes; then
8267 ac_cv_use_image='wxUSE_IMAGE=yes'
8268 else
8269 ac_cv_use_image='wxUSE_IMAGE=no'
8270 fi
a0b9e27f 8271
0046ff7c 8272else
a0b9e27f 8273
0046ff7c
VS
8274 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8275 if test "x$LINE" != x ; then
8276 eval "DEFAULT_$LINE"
8277 else
8278 no_cache=1
8279 fi
8280
8281 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8282
8283fi
0046ff7c
VS
8284
8285
8286 eval "$ac_cv_use_image"
8287 if test "$no_cache" != 1; then
8288 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8289 fi
8290
8291 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8292 echo "$ac_t""yes" 1>&6
0046ff7c 8293 else
a0b9e27f 8294 echo "$ac_t""no" 1>&6
0046ff7c 8295 fi
a0b9e27f 8296
0046ff7c 8297
a0b9e27f 8298 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
3bce6687 8299echo "configure:8300: checking for --enable-gif" >&5
10f2d63a
VZ
8300 no_cache=0
8301 # Check whether --enable-gif or --disable-gif was given.
8302if test "${enable_gif+set}" = set; then
8303 enableval="$enable_gif"
a0b9e27f 8304
10f2d63a
VZ
8305 if test "$enableval" = yes; then
8306 ac_cv_use_gif='wxUSE_GIF=yes'
8307 else
8308 ac_cv_use_gif='wxUSE_GIF=no'
8309 fi
a0b9e27f 8310
10f2d63a 8311else
a0b9e27f 8312
10f2d63a
VZ
8313 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8321
8322fi
10f2d63a
VZ
8323
8324
8325 eval "$ac_cv_use_gif"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8331 echo "$ac_t""yes" 1>&6
10f2d63a 8332 else
a0b9e27f 8333 echo "$ac_t""no" 1>&6
10f2d63a 8334 fi
a0b9e27f 8335
10f2d63a 8336
a0b9e27f 8337 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
3bce6687 8338echo "configure:8339: checking for --enable-pcx" >&5
10f2d63a
VZ
8339 no_cache=0
8340 # Check whether --enable-pcx or --disable-pcx was given.
8341if test "${enable_pcx+set}" = set; then
8342 enableval="$enable_pcx"
a0b9e27f 8343
10f2d63a
VZ
8344 if test "$enableval" = yes; then
8345 ac_cv_use_pcx='wxUSE_PCX=yes'
8346 else
8347 ac_cv_use_pcx='wxUSE_PCX=no'
8348 fi
a0b9e27f 8349
10f2d63a 8350else
a0b9e27f 8351
10f2d63a
VZ
8352 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8360
8361fi
10f2d63a
VZ
8362
8363
8364 eval "$ac_cv_use_pcx"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8370 echo "$ac_t""yes" 1>&6
10f2d63a 8371 else
a0b9e27f 8372 echo "$ac_t""no" 1>&6
10f2d63a 8373 fi
a0b9e27f 8374
10f2d63a 8375
a0b9e27f 8376 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
3bce6687 8377echo "configure:8378: checking for --enable-iff" >&5
4b6b4dfc
RR
8378 no_cache=0
8379 # Check whether --enable-iff or --disable-iff was given.
8380if test "${enable_iff+set}" = set; then
8381 enableval="$enable_iff"
a0b9e27f 8382
4b6b4dfc
RR
8383 if test "$enableval" = yes; then
8384 ac_cv_use_iff='wxUSE_IFF=yes'
8385 else
8386 ac_cv_use_iff='wxUSE_IFF=no'
8387 fi
a0b9e27f 8388
4b6b4dfc 8389else
a0b9e27f 8390
4b6b4dfc
RR
8391 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8399
8400fi
4b6b4dfc
RR
8401
8402
8403 eval "$ac_cv_use_iff"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8409 echo "$ac_t""yes" 1>&6
4b6b4dfc 8410 else
a0b9e27f 8411 echo "$ac_t""no" 1>&6
4b6b4dfc 8412 fi
a0b9e27f 8413
4b6b4dfc 8414
a0b9e27f 8415 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
3bce6687 8416echo "configure:8417: checking for --enable-pnm" >&5
10f2d63a
VZ
8417 no_cache=0
8418 # Check whether --enable-pnm or --disable-pnm was given.
8419if test "${enable_pnm+set}" = set; then
8420 enableval="$enable_pnm"
a0b9e27f 8421
10f2d63a
VZ
8422 if test "$enableval" = yes; then
8423 ac_cv_use_pnm='wxUSE_PNM=yes'
8424 else
8425 ac_cv_use_pnm='wxUSE_PNM=no'
8426 fi
a0b9e27f 8427
10f2d63a 8428else
a0b9e27f 8429
10f2d63a
VZ
8430 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8438
8439fi
10f2d63a
VZ
8440
8441
8442 eval "$ac_cv_use_pnm"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8448 echo "$ac_t""yes" 1>&6
10f2d63a 8449 else
a0b9e27f 8450 echo "$ac_t""no" 1>&6
10f2d63a 8451 fi
a0b9e27f 8452
10f2d63a 8453
a0b9e27f 8454 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
3bce6687 8455echo "configure:8456: checking for --enable-xpm" >&5
0046ff7c 8456 no_cache=0
69d27ff7
MB
8457 # Check whether --enable-xpm or --disable-xpm was given.
8458if test "${enable_xpm+set}" = set; then
8459 enableval="$enable_xpm"
a0b9e27f 8460
0046ff7c 8461 if test "$enableval" = yes; then
69d27ff7 8462 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8463 else
69d27ff7 8464 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8465 fi
a0b9e27f 8466
0046ff7c 8467else
a0b9e27f 8468
0046ff7c
VS
8469 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8470 if test "x$LINE" != x ; then
8471 eval "DEFAULT_$LINE"
8472 else
8473 no_cache=1
8474 fi
8475
69d27ff7 8476 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8477
8478fi
0046ff7c
VS
8479
8480
69d27ff7 8481 eval "$ac_cv_use_xpm"
0046ff7c 8482 if test "$no_cache" != 1; then
69d27ff7 8483 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8484 fi
8485
8486 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8487 echo "$ac_t""yes" 1>&6
0046ff7c 8488 else
a0b9e27f 8489 echo "$ac_t""no" 1>&6
0046ff7c 8490 fi
a0b9e27f 8491
0046ff7c 8492
a0b9e27f 8493 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
3bce6687 8494echo "configure:8495: checking for --enable-ico_cur" >&5
658974ae 8495 no_cache=0
c7206e64
VS
8496 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8497if test "${enable_ico_cur+set}" = set; then
8498 enableval="$enable_ico_cur"
a0b9e27f 8499
658974ae 8500 if test "$enableval" = yes; then
c7206e64 8501 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8502 else
c7206e64 8503 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8504 fi
a0b9e27f 8505
658974ae 8506else
a0b9e27f 8507
658974ae
VS
8508 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8509 if test "x$LINE" != x ; then
8510 eval "DEFAULT_$LINE"
8511 else
8512 no_cache=1
8513 fi
8514
c7206e64 8515 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8516
8517fi
658974ae
VS
8518
8519
c7206e64 8520 eval "$ac_cv_use_ico_cur"
658974ae 8521 if test "$no_cache" != 1; then
c7206e64 8522 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8523 fi
8524
8525 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8526 echo "$ac_t""yes" 1>&6
658974ae 8527 else
a0b9e27f 8528 echo "$ac_t""no" 1>&6
658974ae 8529 fi
a0b9e27f 8530
658974ae 8531
b12915c1
VZ
8532fi
8533
d558c907
VS
8534case "${host}" in
8535 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8536 PATH_IFS=';'
8537 LEX_STEM="lexyy"
d558c907
VS
8538 ;;
8539 *)
8540 PATH_IFS=':'
8541 LEX_STEM="lex.yy"
8542 ;;
8543esac
8544
8284b0c5
MB
8545
8546
10f2d63a
VZ
8547 echo "saving argument cache $wx_arg_cache_file"
8548 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8549
52127426 8550
8284b0c5 8551
a0b9e27f 8552echo $ac_n "checking for toolkit""... $ac_c" 1>&6
3bce6687 8553echo "configure:8554: checking for toolkit" >&5
10f2d63a
VZ
8554
8555if test "$wxUSE_GUI" = "yes"; then
8556
3a922bb4 8557 if test "$USE_BEOS" = 1; then
a0b9e27f 8558 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8559 fi
b12915c1 8560
3a922bb4
RL
8561 if test "$TOOLKIT_GIVEN" = 1; then
8562 for toolkit in `echo $ALL_TOOLKITS`; do
8563 var=wxUSE_$toolkit
8564 eval "value=\$${var}"
8565 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8566 done
10f2d63a 8567 else
3a922bb4
RL
8568 for toolkit in `echo $ALL_TOOLKITS`; do
8569 if test "$has_toolkit_in_cache" != 1; then
8570 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8571 else
8572 var=DEFAULT_wxUSE_$toolkit
8573 fi
8574 eval "wxUSE_$toolkit=\$${var}"
8575 done
10f2d63a 8576 fi
10f2d63a 8577
3a922bb4 8578 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8579 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8580
d558c907 8581 case "${host}" in
6fa882bd 8582 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8583 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8584 esac
10f2d63a 8585
3a922bb4
RL
8586 case "$NUM_TOOLKITS" in
8587 1)
8588 ;;
8589 0)
a0b9e27f 8590 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8591 ;;
8592 *)
a0b9e27f 8593 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8594 esac
10f2d63a 8595
3a922bb4
RL
8596 for toolkit in `echo $ALL_TOOLKITS`; do
8597 var=wxUSE_$toolkit
8598 eval "value=\$${var}"
8599 if test "x$value" != x; then
8600 cache_var=CACHE_$toolkit
8601 eval "cache=\$${cache_var}"
8602 if test "$cache" = 1; then
8603 echo "$var=$value" >> ${wx_arg_cache_file}
8604 fi
8605 if test "$value" = 1; then
8606 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8607 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8608 fi
8609 fi
8610 done
10f2d63a 8611else
a0b9e27f 8612 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8613fi
8614
6969f178
MB
8615case "${host}" in
8616 *-pc-os2_emx | *-pc-os2-emx )
8617 LIBS="$LIBS -lstdcpp"
8618 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
8619 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
3bce6687 8620echo "configure:8621: checking for drand48 in -lcExt" >&5
6969f178
MB
8621ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
8622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8623 echo $ac_n "(cached) $ac_c" 1>&6
8624else
8625 ac_save_LIBS="$LIBS"
8626LIBS="-lcExt $LIBS"
8627cat > conftest.$ac_ext <<EOF
3bce6687 8628#line 8629 "configure"
6969f178
MB
8629#include "confdefs.h"
8630/* Override any gcc2 internal prototype to avoid an error. */
8631/* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633char drand48();
8634
8635int main() {
8636drand48()
8637; return 0; }
8638EOF
3bce6687 8639if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969f178
MB
8640 rm -rf conftest*
8641 eval "ac_cv_lib_$ac_lib_var=yes"
8642else
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 rm -rf conftest*
8646 eval "ac_cv_lib_$ac_lib_var=no"
8647fi
8648rm -f conftest*
8649LIBS="$ac_save_LIBS"
8650
8651fi
8652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8653 echo "$ac_t""yes" 1>&6
8654 LIBS="$LIBS -lcExt"
8655else
8656 echo "$ac_t""no" 1>&6
8657fi
8658
8659 else
8660 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
8661 fi
8662 ;;
8663esac
8284b0c5 8664
43d99b6d
VS
8665wants_win32=0
8666doesnt_want_win32=0
17234b26
MB
8667case "${host}" in
8668 *-*-cygwin*)
8669 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8670 wants_win32=1
8671 else
8672 doesnt_want_win32=1
17234b26
MB
8673 fi
8674 ;;
8675 *-*-mingw*)
43d99b6d 8676 wants_win32=1
17234b26
MB
8677 ;;
8678esac
8679
43d99b6d 8680if test "$wants_win32" = 1 ; then
17234b26
MB
8681 USE_UNIX=0
8682 USE_WIN32=1
a0b9e27f 8683 cat >> confdefs.h <<\EOF
17234b26 8684#define __WIN32__ 1
a0b9e27f 8685EOF
17234b26 8686
a0b9e27f 8687 cat >> confdefs.h <<\EOF
17234b26 8688#define __WIN95__ 1
a0b9e27f 8689EOF
17234b26 8690
a0b9e27f 8691 cat >> confdefs.h <<\EOF
17234b26 8692#define __WINDOWS__ 1
a0b9e27f 8693EOF
17234b26 8694
a0b9e27f 8695 cat >> confdefs.h <<\EOF
17234b26 8696#define __GNUWIN32__ 1
a0b9e27f 8697EOF
17234b26 8698
a0b9e27f 8699 cat >> confdefs.h <<\EOF
17234b26 8700#define STRICT 1
a0b9e27f 8701EOF
17234b26 8702
a0b9e27f 8703 cat >> confdefs.h <<\EOF
17234b26 8704#define WINVER 0x0400
a0b9e27f 8705EOF
17234b26 8706
43d99b6d
VS
8707fi
8708if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8709 USE_UNIX=1
8710 USE_WIN32=0
8711fi
8712
8713if test "$USE_UNIX" = 1 ; then
8714 wxUSE_UNIX=yes
a0b9e27f 8715 cat >> confdefs.h <<\EOF
17234b26 8716#define __UNIX__ 1
a0b9e27f 8717EOF
17234b26
MB
8718
8719fi
8720
8284b0c5 8721
a0b9e27f 8722cat > confcache <<\EOF
10f2d63a
VZ
8723# This file is a shell script that caches the results of configure
8724# tests run on this system so they can be shared between configure
a0b9e27f
MB
8725# scripts and configure runs. It is not useful on other systems.
8726# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8727#
a0b9e27f
MB
8728# By default, configure uses ./config.cache as the cache file,
8729# creating it if it does not exist already. You can give configure
8730# the --cache-file=FILE option to use a different cache file; that is
8731# what configure does when it calls configure scripts in
8732# subdirectories, so they share the cache.
8733# Giving --cache-file=/dev/null disables caching, for debugging configure.
8734# config.status only pays attention to the cache file if you give it the
8735# --recheck option to rerun configure.
10f2d63a 8736#
a0b9e27f 8737EOF
10f2d63a
VZ
8738# The following way of writing the cache mishandles newlines in values,
8739# but we know of no workaround that is simple, portable, and efficient.
8740# So, don't put newlines in cache variables' values.
8741# Ultrix sh set writes to stderr and can't be redirected directly,
8742# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8743(set) 2>&1 |
8744 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8745 *ac_space=\ *)
8746 # `set' does not quote correctly, so add quotes (double-quote substitution
8747 # turns \\\\ into \\, and sed turns \\ into \).
8748 sed -n \
8749 -e "s/'/'\\\\''/g" \
8750 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8751 ;;
8752 *)
8753 # `set' quotes correctly as required by POSIX, so do not add quotes.
8754 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8755 ;;
8756 esac >> confcache
8757if cmp -s $cache_file confcache; then
8758 :
8759else
10f2d63a 8760 if test -w $cache_file; then
a0b9e27f
MB
8761 echo "updating cache $cache_file"
8762 cat confcache > $cache_file
10f2d63a
VZ
8763 else
8764 echo "not updating unwritable cache $cache_file"
8765 fi
8766fi
8767rm -f confcache
8768
a0b9e27f 8769
e59890c3 8770if test "$build" != "$host" ; then
9d353d4a 8771 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8772 CC=$host_alias-gcc
8773 CXX=$host_alias-c++
8774 AR=$host_alias-ar
8775 RANLIB=$host_alias-ranlib
8776 DLLTOOL=$host_alias-dlltool
8777 RESCOMP=$host_alias-windres
8778 LD=$host_alias-ld
8779 NM=$host_alias-nm
8780 STRIP=$host_alias-strip
8781 else
a0b9e27f 8782 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8783 fi
10f2d63a
VZ
8784fi
8785
ec603395 8786CFLAGS=${CFLAGS:=}
a0b9e27f 8787# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8788set dummy gcc; ac_word=$2
a0b9e27f 8789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 8790echo "configure:8791: checking for $ac_word" >&5
a0b9e27f
MB
8791if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8793else
8794 if test -n "$CC"; then
8795 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8796else
a0b9e27f
MB
8797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8798 ac_dummy="$PATH"
8799 for ac_dir in $ac_dummy; do
8800 test -z "$ac_dir" && ac_dir=.
8801 if test -f $ac_dir/$ac_word; then
8802 ac_cv_prog_CC="gcc"
8803 break
8804 fi
8805 done
8806 IFS="$ac_save_ifs"
10f2d63a 8807fi
6232543b 8808fi
a0b9e27f 8809CC="$ac_cv_prog_CC"
6232543b 8810if test -n "$CC"; then
a0b9e27f 8811 echo "$ac_t""$CC" 1>&6
247f5006 8812else
a0b9e27f 8813 echo "$ac_t""no" 1>&6
247f5006
VZ
8814fi
8815
5c6fa7d2
RR
8816if test -z "$CC"; then
8817 # Extract the first word of "cc", so it can be a program name with args.
8818set dummy cc; ac_word=$2
a0b9e27f 8819echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 8820echo "configure:8821: checking for $ac_word" >&5
a0b9e27f
MB
8821if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8823else
8824 if test -n "$CC"; then
8825 ac_cv_prog_CC="$CC" # Let the user override the test.
8826else
a0b9e27f 8827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8828 ac_prog_rejected=no
a0b9e27f
MB
8829 ac_dummy="$PATH"
8830 for ac_dir in $ac_dummy; do
8831 test -z "$ac_dir" && ac_dir=.
8832 if test -f $ac_dir/$ac_word; then
8833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8834 ac_prog_rejected=yes
8835 continue
8836 fi
8837 ac_cv_prog_CC="cc"
8838 break
8839 fi
8840 done
8841 IFS="$ac_save_ifs"
328a083c
RR
8842if test $ac_prog_rejected = yes; then
8843 # We found a bogon in the path, so make sure we never use it.
8844 set dummy $ac_cv_prog_CC
8845 shift
a0b9e27f 8846 if test $# -gt 0; then
328a083c 8847 # We chose a different compiler from the bogus one.
1e487827
VS
8848 # However, it has the same basename, so the bogon will be chosen
8849 # first if we set CC to just the basename; use the full file name.
8850 shift
a0b9e27f 8851 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8852 shift
8853 ac_cv_prog_CC="$@"
703e0a69 8854 fi
1e487827
VS
8855fi
8856fi
8857fi
a0b9e27f 8858CC="$ac_cv_prog_CC"
1e487827 8859if test -n "$CC"; then
a0b9e27f 8860 echo "$ac_t""$CC" 1>&6
703e0a69 8861else
a0b9e27f 8862 echo "$ac_t""no" 1>&6
703e0a69 8863fi
1e487827 8864
a0b9e27f
MB
8865 if test -z "$CC"; then
8866 case "`uname -s`" in
8867 *win32* | *WIN32*)
8868 # Extract the first word of "cl", so it can be a program name with args.
8869set dummy cl; ac_word=$2
8870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 8871echo "configure:8872: checking for $ac_word" >&5
a0b9e27f
MB
8872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8874else
8875 if test -n "$CC"; then
8876 ac_cv_prog_CC="$CC" # Let the user override the test.
8877else
a0b9e27f
MB
8878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8879 ac_dummy="$PATH"
8880 for ac_dir in $ac_dummy; do
8881 test -z "$ac_dir" && ac_dir=.
8882 if test -f $ac_dir/$ac_word; then
8883 ac_cv_prog_CC="cl"
8884 break
8885 fi
8886 done
8887 IFS="$ac_save_ifs"
f09359cf
VS
8888fi
8889fi
a0b9e27f 8890CC="$ac_cv_prog_CC"
f09359cf 8891if test -n "$CC"; then
a0b9e27f 8892 echo "$ac_t""$CC" 1>&6
f09359cf 8893else
a0b9e27f 8894 echo "$ac_t""no" 1>&6
247f5006 8895fi
a0b9e27f
MB
8896 ;;
8897 esac
8284b0c5 8898 fi
a0b9e27f 8899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 8900fi
1e487827 8901
a0b9e27f 8902echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bce6687 8903echo "configure:8904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 8904
a0b9e27f
MB
8905ac_ext=c
8906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8907ac_cpp='$CPP $CPPFLAGS'
8908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8909ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8910cross_compiling=$ac_cv_prog_cc_cross
f09359cf 8911
a0b9e27f 8912cat > conftest.$ac_ext << EOF
247f5006 8913
3bce6687 8914#line 8915 "configure"
a0b9e27f 8915#include "confdefs.h"
247f5006 8916
a0b9e27f
MB
8917main(){return(0);}
8918EOF
3bce6687 8919if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
8920 ac_cv_prog_cc_works=yes
8921 # If we can't run a trivial program, we are probably using a cross compiler.
8922 if (./conftest; exit) 2>/dev/null; then
8923 ac_cv_prog_cc_cross=no
698dcdb6 8924 else
a0b9e27f 8925 ac_cv_prog_cc_cross=yes
698dcdb6 8926 fi
7b4a847f 8927else
a0b9e27f
MB
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8930 ac_cv_prog_cc_works=no
52127426 8931fi
a0b9e27f
MB
8932rm -fr conftest*
8933ac_ext=c
8934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8935ac_cpp='$CPP $CPPFLAGS'
8936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8937ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8938cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8939
a0b9e27f
MB
8940echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8941if test $ac_cv_prog_cc_works = no; then
8942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8943fi
8944echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bce6687 8945echo "configure:8946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
8946echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8947cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8948
a0b9e27f 8949echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3bce6687 8950echo "configure:8951: checking whether we are using GNU C" >&5
a0b9e27f
MB
8951if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 8953else
a0b9e27f
MB
8954 cat > conftest.c <<EOF
8955#ifdef __GNUC__
8956 yes;
8284b0c5 8957#endif
a0b9e27f 8958EOF
3bce6687 8959if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 8960 ac_cv_prog_gcc=yes
5c6fa7d2 8961else
a0b9e27f 8962 ac_cv_prog_gcc=no
8284b0c5
MB
8963fi
8964fi
1e487827 8965
a0b9e27f 8966echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 8967
a0b9e27f
MB
8968if test $ac_cv_prog_gcc = yes; then
8969 GCC=yes
8970else
8971 GCC=
8972fi
247f5006 8973
a0b9e27f
MB
8974ac_test_CFLAGS="${CFLAGS+set}"
8975ac_save_CFLAGS="$CFLAGS"
8976CFLAGS=
8977echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3bce6687 8978echo "configure:8979: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
8979if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8981else
8982 echo 'void f(){}' > conftest.c
8983if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8984 ac_cv_prog_cc_g=yes
8985else
a0b9e27f 8986 ac_cv_prog_cc_g=no
10f2d63a 8987fi
a0b9e27f
MB
8988rm -f conftest*
8989
10f2d63a 8990fi
a0b9e27f
MB
8991
8992echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 8993if test "$ac_test_CFLAGS" = set; then
a0b9e27f 8994 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
8995elif test $ac_cv_prog_cc_g = yes; then
8996 if test "$GCC" = yes; then
10f2d63a
VZ
8997 CFLAGS="-g -O2"
8998 else
f09359cf 8999 CFLAGS="-g"
10f2d63a 9000 fi
5c0a20c3 9001else
f09359cf
VS
9002 if test "$GCC" = yes; then
9003 CFLAGS="-O2"
9004 else
9005 CFLAGS=
9006 fi
10f2d63a
VZ
9007fi
9008
9009
a0b9e27f 9010echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3bce6687 9011echo "configure:9012: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9012# On Suns, sometimes $CPP names a directory.
9013if test -n "$CPP" && test -d "$CPP"; then
9014 CPP=
9015fi
9016if test -z "$CPP"; then
a0b9e27f
MB
9017if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019else
9020 # This must be in double quotes, not single quotes, because CPP may get
9021 # substituted into the Makefile and "${CC-cc}" will confuse make.
9022 CPP="${CC-cc} -E"
10f2d63a 9023 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9024 # not just through cpp.
9025 cat > conftest.$ac_ext <<EOF
3bce6687 9026#line 9027 "configure"
10f2d63a
VZ
9027#include "confdefs.h"
9028#include <assert.h>
a0b9e27f
MB
9029Syntax Error
9030EOF
9031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9032{ (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9033ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9034if test -z "$ac_err"; then
10f2d63a
VZ
9035 :
9036else
a0b9e27f
MB
9037 echo "$ac_err" >&5
9038 echo "configure: failed program was:" >&5
10f2d63a 9039 cat conftest.$ac_ext >&5
a0b9e27f
MB
9040 rm -rf conftest*
9041 CPP="${CC-cc} -E -traditional-cpp"
9042 cat > conftest.$ac_ext <<EOF
3bce6687 9043#line 9044 "configure"
f09359cf 9044#include "confdefs.h"
a0b9e27f
MB
9045#include <assert.h>
9046Syntax Error
9047EOF
9048ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9049{ (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9050ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9051if test -z "$ac_err"; then
9052 :
247f5006 9053else
a0b9e27f
MB
9054 echo "$ac_err" >&5
9055 echo "configure: failed program was:" >&5
f09359cf 9056 cat conftest.$ac_ext >&5
a0b9e27f
MB
9057 rm -rf conftest*
9058 CPP="${CC-cc} -nologo -E"
9059 cat > conftest.$ac_ext <<EOF
3bce6687 9060#line 9061 "configure"
10f2d63a
VZ
9061#include "confdefs.h"
9062#include <assert.h>
a0b9e27f
MB
9063Syntax Error
9064EOF
9065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9066{ (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9068if test -z "$ac_err"; then
10f2d63a
VZ
9069 :
9070else
a0b9e27f
MB
9071 echo "$ac_err" >&5
9072 echo "configure: failed program was:" >&5
10f2d63a 9073 cat conftest.$ac_ext >&5
a0b9e27f
MB
9074 rm -rf conftest*
9075 CPP=/lib/cpp
579d8138 9076fi
a0b9e27f 9077rm -f conftest*
52127426 9078fi
a0b9e27f 9079rm -f conftest*
8284b0c5 9080fi
a0b9e27f
MB
9081rm -f conftest*
9082 ac_cv_prog_CPP="$CPP"
9083fi
9084 CPP="$ac_cv_prog_CPP"
10f2d63a 9085else
a0b9e27f 9086 ac_cv_prog_CPP="$CPP"
10f2d63a 9087fi
a0b9e27f 9088echo "$ac_t""$CPP" 1>&6
10f2d63a 9089
a0b9e27f
MB
9090if test $ac_cv_prog_gcc = yes; then
9091 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3bce6687 9092echo "configure:9093: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9093if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9095else
9096 ac_pattern="Autoconf.*'x'"
a0b9e27f 9097 cat > conftest.$ac_ext <<EOF
3bce6687 9098#line 9099 "configure"
10f2d63a
VZ
9099#include "confdefs.h"
9100#include <sgtty.h>
9101Autoconf TIOCGETP
a0b9e27f 9102EOF
10f2d63a
VZ
9103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9105 rm -rf conftest*
10f2d63a
VZ
9106 ac_cv_prog_gcc_traditional=yes
9107else
a0b9e27f 9108 rm -rf conftest*
10f2d63a
VZ
9109 ac_cv_prog_gcc_traditional=no
9110fi
9111rm -f conftest*
9112
8284b0c5 9113
10f2d63a 9114 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9115 cat > conftest.$ac_ext <<EOF
3bce6687 9116#line 9117 "configure"
10f2d63a
VZ
9117#include "confdefs.h"
9118#include <termio.h>
9119Autoconf TCGETA
a0b9e27f 9120EOF
10f2d63a
VZ
9121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9122 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9123 rm -rf conftest*
10f2d63a
VZ
9124 ac_cv_prog_gcc_traditional=yes
9125fi
9126rm -f conftest*
9127
9128 fi
9129fi
a0b9e27f
MB
9130
9131echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9132 if test $ac_cv_prog_gcc_traditional = yes; then
9133 CC="$CC -traditional"
9134 fi
9135fi
9136
8284b0c5
MB
9137
9138
a0b9e27f
MB
9139ac_ext=C
9140# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9141ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9142ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9143ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9144cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9145
698dcdb6 9146
ec603395 9147CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9148for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9149do
9150# Extract the first word of "$ac_prog", so it can be a program name with args.
9151set dummy $ac_prog; ac_word=$2
9152echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9153echo "configure:9154: checking for $ac_word" >&5
a0b9e27f
MB
9154if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9156else
9157 if test -n "$CXX"; then
9158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9159else
a0b9e27f
MB
9160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9161 ac_dummy="$PATH"
9162 for ac_dir in $ac_dummy; do
9163 test -z "$ac_dir" && ac_dir=.
9164 if test -f $ac_dir/$ac_word; then
9165 ac_cv_prog_CXX="$ac_prog"
9166 break
9167 fi
9168 done
9169 IFS="$ac_save_ifs"
10f2d63a
VZ
9170fi
9171fi
a0b9e27f 9172CXX="$ac_cv_prog_CXX"
10f2d63a 9173if test -n "$CXX"; then
a0b9e27f 9174 echo "$ac_t""$CXX" 1>&6
10f2d63a 9175else
a0b9e27f 9176 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9177fi
9178
a0b9e27f 9179test -n "$CXX" && break
10f2d63a 9180done
a0b9e27f 9181test -n "$CXX" || CXX="gcc"
f09359cf 9182
a0b9e27f
MB
9183
9184echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bce6687 9185echo "configure:9186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9186
9187ac_ext=C
9188# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9189ac_cpp='$CXXCPP $CPPFLAGS'
9190ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9191ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9192cross_compiling=$ac_cv_prog_cxx_cross
9193
9194cat > conftest.$ac_ext << EOF
9195
3bce6687 9196#line 9197 "configure"
a0b9e27f
MB
9197#include "confdefs.h"
9198
9199int main(){return(0);}
9200EOF
3bce6687 9201if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9202 ac_cv_prog_cxx_works=yes
9203 # If we can't run a trivial program, we are probably using a cross compiler.
9204 if (./conftest; exit) 2>/dev/null; then
9205 ac_cv_prog_cxx_cross=no
9206 else
9207 ac_cv_prog_cxx_cross=yes
9208 fi
8284b0c5 9209else
a0b9e27f
MB
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 ac_cv_prog_cxx_works=no
8284b0c5 9213fi
a0b9e27f
MB
9214rm -fr conftest*
9215ac_ext=C
9216# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9217ac_cpp='$CXXCPP $CPPFLAGS'
9218ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9219ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9220cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9221
a0b9e27f
MB
9222echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9223if test $ac_cv_prog_cxx_works = no; then
9224 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9225fi
9226echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bce6687 9227echo "configure:9228: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9228echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9229cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9230
a0b9e27f 9231echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3bce6687 9232echo "configure:9233: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9233if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9235else
9236 cat > conftest.C <<EOF
9237#ifdef __GNUC__
9238 yes;
10f2d63a 9239#endif
a0b9e27f 9240EOF
3bce6687 9241if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9242 ac_cv_prog_gxx=yes
9243else
9244 ac_cv_prog_gxx=no
9245fi
9246fi
10f2d63a 9247
a0b9e27f 9248echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9249
a0b9e27f
MB
9250if test $ac_cv_prog_gxx = yes; then
9251 GXX=yes
9252else
9253 GXX=
9254fi
f09359cf 9255
a0b9e27f
MB
9256ac_test_CXXFLAGS="${CXXFLAGS+set}"
9257ac_save_CXXFLAGS="$CXXFLAGS"
9258CXXFLAGS=
9259echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3bce6687 9260echo "configure:9261: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9261if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9263else
9264 echo 'void f(){}' > conftest.cc
9265if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9266 ac_cv_prog_cxx_g=yes
9267else
a0b9e27f 9268 ac_cv_prog_cxx_g=no
10f2d63a 9269fi
a0b9e27f
MB
9270rm -f conftest*
9271
10f2d63a 9272fi
a0b9e27f
MB
9273
9274echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9275if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9276 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9277elif test $ac_cv_prog_cxx_g = yes; then
9278 if test "$GXX" = yes; then
10f2d63a
VZ
9279 CXXFLAGS="-g -O2"
9280 else
f09359cf 9281 CXXFLAGS="-g"
10f2d63a 9282 fi
5c0a20c3 9283else
f09359cf
VS
9284 if test "$GXX" = yes; then
9285 CXXFLAGS="-O2"
9286 else
9287 CXXFLAGS=
9288 fi
10f2d63a
VZ
9289fi
9290
9291
10f2d63a 9292ac_ext=c
a0b9e27f 9293# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9294ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9295ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9296ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9297cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9298
9299
a0b9e27f
MB
9300# Extract the first word of "ranlib", so it can be a program name with args.
9301set dummy ranlib; ac_word=$2
9302echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9303echo "configure:9304: checking for $ac_word" >&5
a0b9e27f
MB
9304if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9305 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9306else
9307 if test -n "$RANLIB"; then
9308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9309else
a0b9e27f
MB
9310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9311 ac_dummy="$PATH"
9312 for ac_dir in $ac_dummy; do
9313 test -z "$ac_dir" && ac_dir=.
9314 if test -f $ac_dir/$ac_word; then
9315 ac_cv_prog_RANLIB="ranlib"
9316 break
9317 fi
9318 done
9319 IFS="$ac_save_ifs"
9320 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9321fi
9322fi
a0b9e27f 9323RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9324if test -n "$RANLIB"; then
a0b9e27f 9325 echo "$ac_t""$RANLIB" 1>&6
328a083c 9326else
a0b9e27f 9327 echo "$ac_t""no" 1>&6
328a083c
RR
9328fi
9329
10f2d63a
VZ
9330
9331# Extract the first word of "ar", so it can be a program name with args.
9332set dummy ar; ac_word=$2
a0b9e27f 9333echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9334echo "configure:9335: checking for $ac_word" >&5
a0b9e27f
MB
9335if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9337else
9338 if test -n "$AR"; then
9339 ac_cv_prog_AR="$AR" # Let the user override the test.
9340else
a0b9e27f
MB
9341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9342 ac_dummy="$PATH"
9343 for ac_dir in $ac_dummy; do
9344 test -z "$ac_dir" && ac_dir=.
9345 if test -f $ac_dir/$ac_word; then
9346 ac_cv_prog_AR="ar"
9347 break
9348 fi
9349 done
9350 IFS="$ac_save_ifs"
10f2d63a
VZ
9351 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9352fi
9353fi
a0b9e27f 9354AR="$ac_cv_prog_AR"
10f2d63a 9355if test -n "$AR"; then
a0b9e27f 9356 echo "$ac_t""$AR" 1>&6
10f2d63a 9357else
a0b9e27f 9358 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9359fi
9360
8284b0c5 9361
6054113a 9362# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9363# so one script is as good as another. But avoid the broken or
9364# incompatible versions:
9365# SysV /etc/install, /usr/sbin/install
9366# SunOS /usr/etc/install
9367# IRIX /sbin/install
9368# AIX /bin/install
f09359cf 9369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9370# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9372# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9373echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3bce6687 9374echo "configure:9375: checking for a BSD compatible install" >&5
10f2d63a 9375if test -z "$INSTALL"; then
a0b9e27f
MB
9376if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
9378else
9379 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9380 for ac_dir in $PATH; do
9381 # Account for people who put trailing slashes in PATH elements.
9382 case "$ac_dir/" in
9383 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9384 *)
9385 # OSF1 and SCO ODT 3.0 have their own names for install.
9386 # Don't use installbsd from OSF since it installs stuff as root
9387 # by default.
9388 for ac_prog in ginstall scoinst install; do
9389 if test -f $ac_dir/$ac_prog; then
9390 if test $ac_prog = install &&
9391 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9392 # AIX install. It has an incompatible calling convention.
9393 :
9394 else
9395 ac_cv_path_install="$ac_dir/$ac_prog -c"
9396 break 2
9397 fi
9398 fi
10f2d63a 9399 done
a0b9e27f
MB
9400 ;;
9401 esac
9402 done
9403 IFS="$ac_save_IFS"
10f2d63a
VZ
9404
9405fi
9406 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9407 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9408 else
9409 # As a last resort, use the slow shell script. We don't cache a
9410 # path for INSTALL within a source directory, because that will
9411 # break other packages using the cache if that directory is
9412 # removed, or if the path is relative.
a0b9e27f 9413 INSTALL="$ac_install_sh"
10f2d63a
VZ
9414 fi
9415fi
a0b9e27f 9416echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9417
9418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9419# It thinks the first close brace ends the variable substitution.
9420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9421
a0b9e27f 9422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9423
10f2d63a
VZ
9424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9425
8284b0c5 9426
1d1b75ac
VZ
9427case ${INSTALL} in
9428 /* ) # Absolute
9429 ;;
3bd8fb5f 9430 *)
1d1b75ac
VZ
9431 INSTALL=`pwd`/${INSTALL} ;;
9432esac
9433
8284b0c5 9434
6054113a
GD
9435case "${host}" in
9436
b5853384 9437 powerpc-*-darwin* )
eb99ae0b
GD
9438 INSTALL_PROGRAM="cp -fp"
9439 INSTALL_DATA="cp -fp"
6054113a
GD
9440 ;;
9441 *)
9442 ;;
d6853540 9443esac
698dcdb6 9444
10f2d63a
VZ
9445# Extract the first word of "strip", so it can be a program name with args.
9446set dummy strip; ac_word=$2
a0b9e27f 9447echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9448echo "configure:9449: checking for $ac_word" >&5
a0b9e27f
MB
9449if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9451else
9452 if test -n "$STRIP"; then
9453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9454else
a0b9e27f
MB
9455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9456 ac_dummy="$PATH"
9457 for ac_dir in $ac_dummy; do
9458 test -z "$ac_dir" && ac_dir=.
9459 if test -f $ac_dir/$ac_word; then
9460 ac_cv_prog_STRIP="strip"
9461 break
9462 fi
9463 done
9464 IFS="$ac_save_ifs"
10f2d63a
VZ
9465 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9466fi
9467fi
a0b9e27f 9468STRIP="$ac_cv_prog_STRIP"
10f2d63a 9469if test -n "$STRIP"; then
a0b9e27f 9470 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9471else
a0b9e27f 9472 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9473fi
9474
5c6fa7d2 9475
a0b9e27f 9476echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
3bce6687 9477echo "configure:9478: checking if make is GNU make" >&5
a0b9e27f
MB
9478if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9480else
a0b9e27f 9481
414eab6d 9482 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9483 egrep -s GNU > /dev/null); then
414eab6d
VZ
9484 wx_cv_prog_makeisgnu="yes"
9485 else
9486 wx_cv_prog_makeisgnu="no"
9487 fi
9488
9489fi
a0b9e27f
MB
9490
9491echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9492
9493if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9494 IF_GNU_MAKE=""
9495else
9496 IF_GNU_MAKE="#"
9497fi
9498
8284b0c5
MB
9499
9500
414eab6d 9501if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9502echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
3bce6687 9503echo "configure:9504: checking if make supports VPATH" >&5
a0b9e27f
MB
9504if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9506else
a0b9e27f 9507
10f2d63a
VZ
9508cat - << EOF > confMake
9509check : file
9510 cp \$? \$@
9511 cp \$? final_file
9512EOF
9513
9514if test ! -d sub ; then
9515 mkdir sub
9516fi
9517echo dummy > sub/file
f6bcfd97 9518${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9519RESULT=$?
9520rm -f sub/file check final_file confMake
9521rmdir sub
9522if test "$RESULT" = 0; then
04e7a216 9523 wx_cv_prog_makevpath="yes"
10f2d63a 9524else
04e7a216
VZ
9525 wx_cv_prog_makevpath="no"
9526fi
9527
9528fi
a0b9e27f
MB
9529
9530echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9531
9532if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9533{ echo "configure: error:
5c6fa7d2
RR
9534You need a make-utility that is able to use the variable
9535VPATH correctly.
9536If your version of make does not support VPATH correctly,
9537please install GNU-make (possibly as gmake), and start
9538configure with the following command:
9539export MAKE=gmake; ./configure for sh-type shells
9540setenv MAKE gmake; ./configure for csh-type shells
9541Also please do remember to use gmake in this case every time
9542you are trying to compile.
a0b9e27f
MB
9543" 1>&2; exit 1; }
9544fi fi
10f2d63a
VZ
9545for ac_prog in 'bison -y' byacc
9546do
a0b9e27f 9547# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9548set dummy $ac_prog; ac_word=$2
a0b9e27f 9549echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9550echo "configure:9551: checking for $ac_word" >&5
a0b9e27f
MB
9551if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9553else
9554 if test -n "$YACC"; then
9555 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9556else
a0b9e27f
MB
9557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9558 ac_dummy="$PATH"
9559 for ac_dir in $ac_dummy; do
9560 test -z "$ac_dir" && ac_dir=.
9561 if test -f $ac_dir/$ac_word; then
9562 ac_cv_prog_YACC="$ac_prog"
9563 break
9564 fi
9565 done
9566 IFS="$ac_save_ifs"
10f2d63a
VZ
9567fi
9568fi
a0b9e27f 9569YACC="$ac_cv_prog_YACC"
10f2d63a 9570if test -n "$YACC"; then
a0b9e27f 9571 echo "$ac_t""$YACC" 1>&6
10f2d63a 9572else
a0b9e27f 9573 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9574fi
9575
a0b9e27f 9576test -n "$YACC" && break
10f2d63a
VZ
9577done
9578test -n "$YACC" || YACC="yacc"
9579
8284b0c5 9580
a0b9e27f
MB
9581# Extract the first word of "flex", so it can be a program name with args.
9582set dummy flex; ac_word=$2
9583echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9584echo "configure:9585: checking for $ac_word" >&5
a0b9e27f
MB
9585if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9587else
9588 if test -n "$LEX"; then
9589 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9590else
a0b9e27f
MB
9591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9592 ac_dummy="$PATH"
9593 for ac_dir in $ac_dummy; do
9594 test -z "$ac_dir" && ac_dir=.
9595 if test -f $ac_dir/$ac_word; then
9596 ac_cv_prog_LEX="flex"
9597 break
9598 fi
9599 done
9600 IFS="$ac_save_ifs"
9601 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9602fi
9603fi
a0b9e27f 9604LEX="$ac_cv_prog_LEX"
10f2d63a 9605if test -n "$LEX"; then
a0b9e27f 9606 echo "$ac_t""$LEX" 1>&6
10f2d63a 9607else
a0b9e27f 9608 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9609fi
9610
9611if test -z "$LEXLIB"
9612then
a0b9e27f
MB
9613 case "$LEX" in
9614 flex*) ac_lib=fl ;;
9615 *) ac_lib=l ;;
9616 esac
9617 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3bce6687 9618echo "configure:9619: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9619ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9620if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9622else
9623 ac_save_LIBS="$LIBS"
9624LIBS="-l$ac_lib $LIBS"
9625cat > conftest.$ac_ext <<EOF
3bce6687 9626#line 9627 "configure"
247f5006 9627#include "confdefs.h"
247f5006 9628/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9629/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9630 builtin and then its argument prototype would still apply. */
9631char yywrap();
10f2d63a 9632
a0b9e27f
MB
9633int main() {
9634yywrap()
9635; return 0; }
9636EOF
3bce6687 9637if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9638 rm -rf conftest*
9639 eval "ac_cv_lib_$ac_lib_var=yes"
9640else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -rf conftest*
9644 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9645fi
a0b9e27f
MB
9646rm -f conftest*
9647LIBS="$ac_save_LIBS"
8284b0c5 9648
10f2d63a 9649fi
a0b9e27f
MB
9650if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9651 echo "$ac_t""yes" 1>&6
9652 LEXLIB="-l$ac_lib"
8284b0c5 9653else
a0b9e27f 9654 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9655fi
9656
a0b9e27f 9657fi
10f2d63a
VZ
9658
9659
a0b9e27f 9660echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3bce6687 9661echo "configure:9662: checking whether ln -s works" >&5
a0b9e27f
MB
9662if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9664else
a0b9e27f
MB
9665 rm -f conftestdata
9666if ln -s X conftestdata 2>/dev/null
9667then
9668 rm -f conftestdata
9669 ac_cv_prog_LN_S="ln -s"
10f2d63a 9670else
a0b9e27f 9671 ac_cv_prog_LN_S=ln
10f2d63a 9672fi
a0b9e27f
MB
9673fi
9674LN_S="$ac_cv_prog_LN_S"
9675if test "$ac_cv_prog_LN_S" = "ln -s"; then
9676 echo "$ac_t""yes" 1>&6
10f2d63a 9677else
a0b9e27f 9678 echo "$ac_t""no" 1>&6
5c6fa7d2 9679fi
5c6fa7d2 9680
247f5006 9681
a0b9e27f
MB
9682
9683if test "$wxUSE_MAC" != 1; then
9684 for ac_hdr in strings.h
9685do
9686ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9687echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9688echo "configure:9689: checking for $ac_hdr" >&5
a0b9e27f
MB
9689if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9691else
9692 cat > conftest.$ac_ext <<EOF
3bce6687 9693#line 9694 "configure"
a0b9e27f
MB
9694#include "confdefs.h"
9695#include <$ac_hdr>
9696EOF
9697ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9698{ (eval echo configure:9699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9699ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9700if test -z "$ac_err"; then
9701 rm -rf conftest*
9702 eval "ac_cv_header_$ac_safe=yes"
9703else
9704 echo "$ac_err" >&5
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 rm -rf conftest*
9708 eval "ac_cv_header_$ac_safe=no"
21d1c967 9709fi
247f5006 9710rm -f conftest*
19bc6aad 9711fi
a0b9e27f
MB
9712if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9713 echo "$ac_t""yes" 1>&6
9714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9715 cat >> confdefs.h <<EOF
9716#define $ac_tr_hdr 1
9717EOF
9718
247f5006 9719else
a0b9e27f 9720 echo "$ac_t""no" 1>&6
18dbb1f6 9721fi
a0b9e27f 9722done
247f5006 9723
90dd450c 9724fi
90dd450c 9725
a0b9e27f
MB
9726for ac_hdr in stdlib.h
9727do
9728ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9729echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9730echo "configure:9731: checking for $ac_hdr" >&5
a0b9e27f
MB
9731if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 cat > conftest.$ac_ext <<EOF
3bce6687 9735#line 9736 "configure"
90dd450c 9736#include "confdefs.h"
a0b9e27f
MB
9737#include <$ac_hdr>
9738EOF
9739ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9740{ (eval echo configure:9741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9741ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9742if test -z "$ac_err"; then
9743 rm -rf conftest*
9744 eval "ac_cv_header_$ac_safe=yes"
9745else
9746 echo "$ac_err" >&5
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 eval "ac_cv_header_$ac_safe=no"
9751fi
9752rm -f conftest*
9753fi
9754if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9755 echo "$ac_t""yes" 1>&6
9756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9757 cat >> confdefs.h <<EOF
9758#define $ac_tr_hdr 1
9759EOF
9760
8284b0c5 9761else
a0b9e27f 9762 echo "$ac_t""no" 1>&6
21d1c967 9763fi
a0b9e27f
MB
9764done
9765
9766for ac_hdr in malloc.h
9767do
9768ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9769echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9770echo "configure:9771: checking for $ac_hdr" >&5
a0b9e27f
MB
9771if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9773else
9774 cat > conftest.$ac_ext <<EOF
3bce6687 9775#line 9776 "configure"
a0b9e27f
MB
9776#include "confdefs.h"
9777#include <$ac_hdr>
9778EOF
9779ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9780{ (eval echo configure:9781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9781ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9782if test -z "$ac_err"; then
9783 rm -rf conftest*
9784 eval "ac_cv_header_$ac_safe=yes"
9785else
9786 echo "$ac_err" >&5
9787 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9789 rm -rf conftest*
9790 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9791fi
a0b9e27f 9792rm -f conftest*
90dd450c 9793fi
a0b9e27f
MB
9794if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9795 echo "$ac_t""yes" 1>&6
9796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9797 cat >> confdefs.h <<EOF
9798#define $ac_tr_hdr 1
9799EOF
9800
9801else
9802 echo "$ac_t""no" 1>&6
21d1c967 9803fi
a0b9e27f 9804done
247f5006 9805
a0b9e27f
MB
9806for ac_hdr in unistd.h
9807do
9808ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9809echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9810echo "configure:9811: checking for $ac_hdr" >&5
a0b9e27f
MB
9811if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813else
9814 cat > conftest.$ac_ext <<EOF
3bce6687 9815#line 9816 "configure"
a0b9e27f
MB
9816#include "confdefs.h"
9817#include <$ac_hdr>
9818EOF
9819ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9820{ (eval echo configure:9821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9821ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9822if test -z "$ac_err"; then
9823 rm -rf conftest*
9824 eval "ac_cv_header_$ac_safe=yes"
9825else
9826 echo "$ac_err" >&5
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 eval "ac_cv_header_$ac_safe=no"
247f5006 9831fi
a0b9e27f
MB
9832rm -f conftest*
9833fi
9834if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9835 echo "$ac_t""yes" 1>&6
9836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9837 cat >> confdefs.h <<EOF
9838#define $ac_tr_hdr 1
9839EOF
9840
9841else
9842 echo "$ac_t""no" 1>&6
9843fi
9844done
90dd450c 9845
a0b9e27f 9846for ac_hdr in wchar.h
21d1c967 9847do
a0b9e27f
MB
9848ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9849echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9850echo "configure:9851: checking for $ac_hdr" >&5
a0b9e27f
MB
9851if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853else
9854 cat > conftest.$ac_ext <<EOF
3bce6687 9855#line 9856 "configure"
4f14bcd8 9856#include "confdefs.h"
a0b9e27f
MB
9857#include <$ac_hdr>
9858EOF
9859ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9860{ (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9861ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862if test -z "$ac_err"; then
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=yes"
9865else
9866 echo "$ac_err" >&5
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 eval "ac_cv_header_$ac_safe=no"
9871fi
9872rm -f conftest*
9873fi
9874if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877 cat >> confdefs.h <<EOF
9878#define $ac_tr_hdr 1
9879EOF
9880
9881else
9882 echo "$ac_t""no" 1>&6
21d1c967
GD
9883fi
9884done
4f14bcd8 9885
5c6fa7d2 9886
a0b9e27f
MB
9887if test "$ac_cv_header_wchar_h" != "yes"; then
9888 for ac_hdr in wcstr.h
21d1c967 9889do
a0b9e27f
MB
9890ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9891echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9892echo "configure:9893: checking for $ac_hdr" >&5
a0b9e27f
MB
9893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895else
9896 cat > conftest.$ac_ext <<EOF
3bce6687 9897#line 9898 "configure"
d4158b5d 9898#include "confdefs.h"
a0b9e27f
MB
9899#include <$ac_hdr>
9900EOF
9901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9902{ (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904if test -z "$ac_err"; then
9905 rm -rf conftest*
9906 eval "ac_cv_header_$ac_safe=yes"
9907else
9908 echo "$ac_err" >&5
9909 echo "configure: failed program was:" >&5
d4158b5d 9910 cat conftest.$ac_ext >&5
a0b9e27f
MB
9911 rm -rf conftest*
9912 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9913fi
a0b9e27f 9914rm -f conftest*
21d1c967 9915fi
a0b9e27f
MB
9916if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9919 cat >> confdefs.h <<EOF
9920#define $ac_tr_hdr 1
9921EOF
9922
9923else
9924 echo "$ac_t""no" 1>&6
d4158b5d 9925fi
21d1c967 9926done
f6bcfd97 9927
90dd450c 9928fi
90dd450c 9929
a0b9e27f 9930for ac_hdr in fnmatch.h
21d1c967 9931do
a0b9e27f
MB
9932ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9933echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9934echo "configure:9935: checking for $ac_hdr" >&5
a0b9e27f
MB
9935if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937else
9938 cat > conftest.$ac_ext <<EOF
3bce6687 9939#line 9940 "configure"
90dd450c 9940#include "confdefs.h"
a0b9e27f
MB
9941#include <$ac_hdr>
9942EOF
9943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9944{ (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9946if test -z "$ac_err"; then
9947 rm -rf conftest*
9948 eval "ac_cv_header_$ac_safe=yes"
9949else
9950 echo "$ac_err" >&5
9951 echo "configure: failed program was:" >&5
3a922bb4 9952 cat conftest.$ac_ext >&5
a0b9e27f
MB
9953 rm -rf conftest*
9954 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9955fi
a0b9e27f 9956rm -f conftest*
4f14bcd8 9957fi
a0b9e27f
MB
9958if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9959 echo "$ac_t""yes" 1>&6
9960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9961 cat >> confdefs.h <<EOF
9962#define $ac_tr_hdr 1
9963EOF
9964
9965else
9966 echo "$ac_t""no" 1>&6
21d1c967
GD
9967fi
9968done
90dd450c 9969
5c6fa7d2 9970
a0b9e27f
MB
9971if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9972 for ac_func in fnmatch
21d1c967 9973do
a0b9e27f 9974echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bce6687 9975echo "configure:9976: checking for $ac_func" >&5
a0b9e27f
MB
9976if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 9978else
a0b9e27f 9979 cat > conftest.$ac_ext <<EOF
3bce6687 9980#line 9981 "configure"
a0b9e27f
MB
9981#include "confdefs.h"
9982/* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char $ac_func(); below. */
9984#include <assert.h>
9985/* Override any gcc2 internal prototype to avoid an error. */
9986/* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9988char $ac_func();
9989
9990int main() {
9991
9992/* The GNU C library defines this for functions which it implements
9993 to always fail with ENOSYS. Some functions are actually named
9994 something starting with __ and the normal name is an alias. */
9995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996choke me
9997#else
9998$ac_func();
9999#endif
10000
10001; return 0; }
10002EOF
3bce6687 10003if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10004 rm -rf conftest*
10005 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10006else
a0b9e27f 10007 echo "configure: failed program was:" >&5
8284b0c5 10008 cat conftest.$ac_ext >&5
a0b9e27f
MB
10009 rm -rf conftest*
10010 eval "ac_cv_func_$ac_func=no"
8284b0c5 10011fi
a0b9e27f 10012rm -f conftest*
8284b0c5 10013fi
32832908 10014
a0b9e27f
MB
10015if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10016 echo "$ac_t""yes" 1>&6
10017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10018 cat >> confdefs.h <<EOF
10019#define $ac_tr_func 1
10020EOF
10021
10022else
10023 echo "$ac_t""no" 1>&6
21d1c967
GD
10024fi
10025done
90dd450c 10026
a0b9e27f 10027fi
90dd450c 10028
a0b9e27f 10029for ac_hdr in langinfo.h
21d1c967 10030do
a0b9e27f
MB
10031ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10032echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 10033echo "configure:10034: checking for $ac_hdr" >&5
a0b9e27f
MB
10034if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10036else
10037 cat > conftest.$ac_ext <<EOF
3bce6687 10038#line 10039 "configure"
247f5006 10039#include "confdefs.h"
a0b9e27f
MB
10040#include <$ac_hdr>
10041EOF
10042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 10043{ (eval echo configure:10044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10045if test -z "$ac_err"; then
10046 rm -rf conftest*
10047 eval "ac_cv_header_$ac_safe=yes"
10048else
10049 echo "$ac_err" >&5
10050 echo "configure: failed program was:" >&5
90dd450c 10051 cat conftest.$ac_ext >&5
a0b9e27f
MB
10052 rm -rf conftest*
10053 eval "ac_cv_header_$ac_safe=no"
90dd450c 10054fi
a0b9e27f 10055rm -f conftest*
4f14bcd8 10056fi
a0b9e27f
MB
10057if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10058 echo "$ac_t""yes" 1>&6
10059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10060 cat >> confdefs.h <<EOF
10061#define $ac_tr_hdr 1
10062EOF
10063
10064else
10065 echo "$ac_t""no" 1>&6
21d1c967
GD
10066fi
10067done
3a922bb4 10068
8284b0c5 10069
a0b9e27f
MB
10070if test "$wxUSE_GUI" = "yes"; then
10071 if test "$wxUSE_UNIX" = "yes"; then
10072 for ac_hdr in X11/XKBlib.h
21d1c967 10073do
a0b9e27f
MB
10074ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10075echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 10076echo "configure:10077: checking for $ac_hdr" >&5
a0b9e27f
MB
10077if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10078 echo $ac_n "(cached) $ac_c" 1>&6
10079else
10080 cat > conftest.$ac_ext <<EOF
3bce6687 10081#line 10082 "configure"
90dd450c 10082#include "confdefs.h"
a0b9e27f
MB
10083#include <$ac_hdr>
10084EOF
10085ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 10086{ (eval echo configure:10087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10087ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10088if test -z "$ac_err"; then
10089 rm -rf conftest*
10090 eval "ac_cv_header_$ac_safe=yes"
10091else
10092 echo "$ac_err" >&5
10093 echo "configure: failed program was:" >&5
90dd450c 10094 cat conftest.$ac_ext >&5
a0b9e27f
MB
10095 rm -rf conftest*
10096 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10097fi
a0b9e27f 10098rm -f conftest*
90dd450c 10099fi
a0b9e27f
MB
10100if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10103 cat >> confdefs.h <<EOF
10104#define $ac_tr_hdr 1
10105EOF
10106
10107else
10108 echo "$ac_t""no" 1>&6
247f5006 10109fi
247f5006
VZ
10110done
10111
a0b9e27f
MB
10112 fi
10113fi
247f5006 10114
247f5006 10115
a0b9e27f 10116echo $ac_n "checking for working const""... $ac_c" 1>&6
3bce6687 10117echo "configure:10118: checking for working const" >&5
a0b9e27f
MB
10118if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10120else
a0b9e27f 10121 cat > conftest.$ac_ext <<EOF
3bce6687 10122#line 10123 "configure"
a0b9e27f
MB
10123#include "confdefs.h"
10124
10125int main() {
10126
10127/* Ultrix mips cc rejects this. */
10128typedef int charset[2]; const charset x;
10129/* SunOS 4.1.1 cc rejects this. */
10130char const *const *ccp;
10131char **p;
10132/* NEC SVR4.0.2 mips cc rejects this. */
10133struct point {int x, y;};
10134static struct point const zero = {0,0};
10135/* AIX XL C 1.02.0.0 rejects this.
10136 It does not let you subtract one const X* pointer from another in an arm
10137 of an if-expression whose if-part is not a constant expression */
10138const char *g = "string";
10139ccp = &g + (g ? g-g : 0);
10140/* HPUX 7.0 cc rejects these. */
10141++ccp;
10142p = (char**) ccp;
10143ccp = (char const *const *) p;
10144{ /* SCO 3.2v4 cc rejects this. */
10145 char *t;
10146 char const *s = 0 ? (char *) 0 : (char const *) 0;
10147
10148 *t++ = 0;
10149}
10150{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10151 int x[] = {25, 17};
10152 const int *foo = &x[0];
10153 ++foo;
10154}
10155{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10156 typedef const int *iptr;
10157 iptr p = 0;
10158 ++p;
10159}
10160{ /* AIX XL C 1.02.0.0 rejects this saying
10161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10162 struct s { int j; const int *ap[3]; };
10163 struct s *b; b->j = 5;
10164}
10165{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10166 const int foo = 10;
10167}
10168
10169; return 0; }
10170EOF
3bce6687 10171if { (eval echo configure:10172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10172 rm -rf conftest*
10173 ac_cv_c_const=yes
247f5006 10174else
a0b9e27f 10175 echo "configure: failed program was:" >&5
247f5006 10176 cat conftest.$ac_ext >&5
a0b9e27f
MB
10177 rm -rf conftest*
10178 ac_cv_c_const=no
247f5006 10179fi
a0b9e27f 10180rm -f conftest*
21d1c967 10181fi
247f5006 10182
a0b9e27f
MB
10183echo "$ac_t""$ac_cv_c_const" 1>&6
10184if test $ac_cv_c_const = no; then
10185 cat >> confdefs.h <<\EOF
10186#define const
10187EOF
10f2d63a 10188
90dd450c 10189fi
81809c07 10190
a0b9e27f 10191echo $ac_n "checking for inline""... $ac_c" 1>&6
3bce6687 10192echo "configure:10193: checking for inline" >&5
a0b9e27f
MB
10193if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10195else
a0b9e27f
MB
10196 ac_cv_c_inline=no
10197for ac_kw in inline __inline__ __inline; do
10198 cat > conftest.$ac_ext <<EOF
3bce6687 10199#line 10200 "configure"
a0b9e27f
MB
10200#include "confdefs.h"
10201
10202int main() {
10203} $ac_kw foo() {
10204; return 0; }
10205EOF
3bce6687 10206if { (eval echo configure:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10207 rm -rf conftest*
10208 ac_cv_c_inline=$ac_kw; break
247f5006 10209else
a0b9e27f 10210 echo "configure: failed program was:" >&5
247f5006 10211 cat conftest.$ac_ext >&5
247f5006 10212fi
a0b9e27f
MB
10213rm -f conftest*
10214done
247f5006
VZ
10215
10216fi
10217
a0b9e27f
MB
10218echo "$ac_t""$ac_cv_c_inline" 1>&6
10219case "$ac_cv_c_inline" in
10220 inline | yes) ;;
10221 no) cat >> confdefs.h <<\EOF
10222#define inline
10223EOF
10224 ;;
10225 *) cat >> confdefs.h <<EOF
10226#define inline $ac_cv_c_inline
10227EOF
10228 ;;
10229esac
247f5006 10230
247f5006 10231
a0b9e27f 10232echo $ac_n "checking size of char""... $ac_c" 1>&6
3bce6687 10233echo "configure:10234: checking size of char" >&5
a0b9e27f
MB
10234if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236else
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_sizeof_char=1
10239else
10240 cat > conftest.$ac_ext <<EOF
3bce6687 10241#line 10242 "configure"
4f14bcd8 10242#include "confdefs.h"
a0b9e27f 10243#include <stdio.h>
a0b9e27f 10244main()
247f5006 10245{
a0b9e27f
MB
10246 FILE *f=fopen("conftestval", "w");
10247 if (!f) exit(1);
10248 fprintf(f, "%d\n", sizeof(char));
10249 exit(0);
52127426 10250}
a0b9e27f 10251EOF
b2fee376 10252if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10253then
10254 ac_cv_sizeof_char=`cat conftestval`
247f5006 10255else
a0b9e27f 10256 echo "configure: failed program was:" >&5
247f5006 10257 cat conftest.$ac_ext >&5
a0b9e27f
MB
10258 rm -fr conftest*
10259 ac_cv_sizeof_char=0
247f5006 10260fi
a0b9e27f 10261rm -fr conftest*
247f5006 10262fi
247f5006
VZ
10263
10264fi
a0b9e27f
MB
10265echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10266cat >> confdefs.h <<EOF
10267#define SIZEOF_CHAR $ac_cv_sizeof_char
10268EOF
247f5006 10269
247f5006 10270
a0b9e27f 10271echo $ac_n "checking size of short""... $ac_c" 1>&6
b2fee376 10272echo "configure:10273: checking size of short" >&5
a0b9e27f
MB
10273if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10275else
a0b9e27f
MB
10276 if test "$cross_compiling" = yes; then
10277 ac_cv_sizeof_short=2
247f5006 10278else
a0b9e27f 10279 cat > conftest.$ac_ext <<EOF
b2fee376 10280#line 10281 "configure"
a0b9e27f
MB
10281#include "confdefs.h"
10282#include <stdio.h>
a0b9e27f
MB
10283main()
10284{
10285 FILE *f=fopen("conftestval", "w");
10286 if (!f) exit(1);
10287 fprintf(f, "%d\n", sizeof(short));
10288 exit(0);
10289}
10290EOF
b2fee376 10291if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10292then
10293 ac_cv_sizeof_short=`cat conftestval`
247f5006 10294else
a0b9e27f
MB
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10297 rm -fr conftest*
10298 ac_cv_sizeof_short=0
247f5006 10299fi
a0b9e27f 10300rm -fr conftest*
247f5006
VZ
10301fi
10302
247f5006 10303fi
a0b9e27f
MB
10304echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10305cat >> confdefs.h <<EOF
10306#define SIZEOF_SHORT $ac_cv_sizeof_short
10307EOF
247f5006
VZ
10308
10309
a0b9e27f 10310echo $ac_n "checking size of void *""... $ac_c" 1>&6
b2fee376 10311echo "configure:10312: checking size of void *" >&5
a0b9e27f
MB
10312if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10314else
10315 if test "$cross_compiling" = yes; then
10316 ac_cv_sizeof_void_p=4
247f5006 10317else
a0b9e27f 10318 cat > conftest.$ac_ext <<EOF
b2fee376 10319#line 10320 "configure"
247f5006 10320#include "confdefs.h"
247f5006 10321#include <stdio.h>
a0b9e27f 10322main()
247f5006 10323{
a0b9e27f
MB
10324 FILE *f=fopen("conftestval", "w");
10325 if (!f) exit(1);
10326 fprintf(f, "%d\n", sizeof(void *));
10327 exit(0);
5c6fa7d2 10328}
a0b9e27f 10329EOF
b2fee376 10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10331then
10332 ac_cv_sizeof_void_p=`cat conftestval`
10333else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -fr conftest*
10337 ac_cv_sizeof_void_p=0
10338fi
10339rm -fr conftest*
10340fi
8284b0c5 10341
247f5006 10342fi
a0b9e27f
MB
10343echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10344cat >> confdefs.h <<EOF
10345#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10346EOF
247f5006 10347
247f5006 10348
a0b9e27f 10349echo $ac_n "checking size of int""... $ac_c" 1>&6
b2fee376 10350echo "configure:10351: checking size of int" >&5
a0b9e27f
MB
10351if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10353else
a0b9e27f
MB
10354 if test "$cross_compiling" = yes; then
10355 ac_cv_sizeof_int=4
10356else
10357 cat > conftest.$ac_ext <<EOF
b2fee376 10358#line 10359 "configure"
247f5006 10359#include "confdefs.h"
a0b9e27f 10360#include <stdio.h>
a0b9e27f 10361main()
247f5006 10362{
a0b9e27f
MB
10363 FILE *f=fopen("conftestval", "w");
10364 if (!f) exit(1);
10365 fprintf(f, "%d\n", sizeof(int));
10366 exit(0);
247f5006 10367}
a0b9e27f 10368EOF
b2fee376 10369if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10370then
10371 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10372else
a0b9e27f
MB
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -fr conftest*
10376 ac_cv_sizeof_int=0
21d1c967 10377fi
a0b9e27f 10378rm -fr conftest*
698dcdb6 10379fi
4f14bcd8 10380
21d1c967 10381fi
a0b9e27f
MB
10382echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10383cat >> confdefs.h <<EOF
10384#define SIZEOF_INT $ac_cv_sizeof_int
10385EOF
4f14bcd8 10386
5c6fa7d2 10387
a0b9e27f 10388echo $ac_n "checking size of long""... $ac_c" 1>&6
b2fee376 10389echo "configure:10390: checking size of long" >&5
a0b9e27f
MB
10390if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10392else
247f5006 10393 if test "$cross_compiling" = yes; then
a0b9e27f 10394 ac_cv_sizeof_long=4
247f5006 10395else
a0b9e27f 10396 cat > conftest.$ac_ext <<EOF
b2fee376 10397#line 10398 "configure"
247f5006 10398#include "confdefs.h"
a0b9e27f 10399#include <stdio.h>
a0b9e27f 10400main()
247f5006 10401{
a0b9e27f
MB
10402 FILE *f=fopen("conftestval", "w");
10403 if (!f) exit(1);
10404 fprintf(f, "%d\n", sizeof(long));
10405 exit(0);
247f5006 10406}
a0b9e27f 10407EOF
b2fee376 10408if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10409then
10410 ac_cv_sizeof_long=`cat conftestval`
247f5006 10411else
a0b9e27f
MB
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 rm -fr conftest*
10415 ac_cv_sizeof_long=0
247f5006 10416fi
a0b9e27f 10417rm -fr conftest*
247f5006 10418fi
247f5006 10419
5c6fa7d2 10420fi
a0b9e27f
MB
10421echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10422cat >> confdefs.h <<EOF
10423#define SIZEOF_LONG $ac_cv_sizeof_long
10424EOF
247f5006 10425
a0b9e27f
MB
10426
10427
10428case "${host}" in
10429 arm-*-linux* )
10430 echo $ac_n "checking size of long long""... $ac_c" 1>&6
b2fee376 10431echo "configure:10432: checking size of long long" >&5
a0b9e27f
MB
10432if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10434else
10435 if test "$cross_compiling" = yes; then
10436 ac_cv_sizeof_long_long=8
10437else
10438 cat > conftest.$ac_ext <<EOF
b2fee376 10439#line 10440 "configure"
247f5006 10440#include "confdefs.h"
a0b9e27f 10441#include <stdio.h>
a0b9e27f 10442main()
247f5006 10443{
a0b9e27f
MB
10444 FILE *f=fopen("conftestval", "w");
10445 if (!f) exit(1);
10446 fprintf(f, "%d\n", sizeof(long long));
10447 exit(0);
247f5006 10448}
a0b9e27f 10449EOF
b2fee376 10450if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10451then
10452 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10453else
a0b9e27f
MB
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 rm -fr conftest*
10457 ac_cv_sizeof_long_long=0
5c6fa7d2 10458fi
a0b9e27f 10459rm -fr conftest*
5c6fa7d2 10460fi
8284b0c5 10461
a0b9e27f
MB
10462fi
10463echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10464cat >> confdefs.h <<EOF
10465#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10466EOF
10467
10468
10469 ;;
10470 * )
10471 echo $ac_n "checking size of long long""... $ac_c" 1>&6
b2fee376 10472echo "configure:10473: checking size of long long" >&5
a0b9e27f
MB
10473if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10475else
10476 if test "$cross_compiling" = yes; then
a0b9e27f 10477 ac_cv_sizeof_long_long=0
8284b0c5 10478else
a0b9e27f 10479 cat > conftest.$ac_ext <<EOF
b2fee376 10480#line 10481 "configure"
8284b0c5
MB
10481#include "confdefs.h"
10482#include <stdio.h>
a0b9e27f 10483main()
8284b0c5 10484{
a0b9e27f
MB
10485 FILE *f=fopen("conftestval", "w");
10486 if (!f) exit(1);
10487 fprintf(f, "%d\n", sizeof(long long));
10488 exit(0);
8284b0c5 10489}
a0b9e27f 10490EOF
b2fee376 10491if { (eval echo configure:10492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10492then
10493 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10494else
a0b9e27f
MB
10495 echo "configure: failed program was:" >&5
10496 cat conftest.$ac_ext >&5
10497 rm -fr conftest*
5c6fa7d2 10498 ac_cv_sizeof_long_long=0
52127426 10499fi
a0b9e27f
MB
10500rm -fr conftest*
10501fi
10502
7b4a847f 10503fi
a0b9e27f
MB
10504echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10505cat >> confdefs.h <<EOF
21d1c967 10506#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10507EOF
9e691f46 10508
8284b0c5 10509
21d1c967
GD
10510esac
10511
a0b9e27f 10512echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
b2fee376 10513echo "configure:10514: checking size of wchar_t" >&5
a0b9e27f
MB
10514if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10516else
a0b9e27f 10517
21d1c967
GD
10518 if test "$cross_compiling" = yes; then
10519 wx_cv_sizeof_wchar_t=4
a0b9e27f 10520
6f72b082 10521else
a0b9e27f 10522 cat > conftest.$ac_ext <<EOF
b2fee376 10523#line 10524 "configure"
6f72b082 10524#include "confdefs.h"
21d1c967
GD
10525
10526 #ifdef HAVE_WCHAR_H
10527 # ifdef __CYGWIN__
10528 # include <stddef.h>
10529 # endif
10530 # include <wchar.h>
10531 #endif
10532 #ifdef HAVE_STDLIB_H
10533 # include <stdlib.h>
10534 #endif
10535 #include <stdio.h>
10536 int main()
10537 {
10538 FILE *f=fopen("conftestval", "w");
10539 if (!f) exit(1);
10540 fprintf(f, "%i", sizeof(wchar_t));
10541 exit(0);
10542 }
a0b9e27f
MB
10543
10544EOF
b2fee376 10545if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10546then
21d1c967 10547 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10548else
a0b9e27f
MB
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -fr conftest*
10552 wx_cv_sizeof_wchar_t=0
6f72b082 10553fi
a0b9e27f 10554rm -fr conftest*
6f72b082 10555fi
6f72b082 10556
a0b9e27f 10557
3f345b47
VZ
10558fi
10559
a0b9e27f
MB
10560echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10561
10562cat >> confdefs.h <<EOF
21d1c967 10563#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10564EOF
90dd450c 10565
8284b0c5 10566
21d1c967
GD
10567# Check whether --enable-largefile or --disable-largefile was given.
10568if test "${enable_largefile+set}" = set; then
10569 enableval="$enable_largefile"
a0b9e27f
MB
10570 :
10571fi
3f345b47 10572
21d1c967
GD
10573if test "$enable_largefile" != no; then
10574 wx_largefile=no
a0b9e27f
MB
10575
10576 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
b2fee376 10577echo "configure:10578: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10578if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580else
10581
10582 cat > conftest.$ac_ext <<EOF
b2fee376 10583#line 10584 "configure"
90dd450c 10584#include "confdefs.h"
21d1c967
GD
10585#define _FILE_OFFSET_BITS 64
10586 #include <sys/types.h>
a0b9e27f 10587int main() {
21d1c967
GD
10588typedef struct {
10589 unsigned int field: sizeof(off_t) == 8;
10590} wxlf;
10591
a0b9e27f
MB
10592; return 0; }
10593EOF
b2fee376 10594if { (eval echo configure:10595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10595 rm -rf conftest*
21d1c967 10596 ac_cv_sys_file_offset_bits=64
f6bcfd97 10597else
a0b9e27f
MB
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10602fi
a0b9e27f
MB
10603rm -f conftest*
10604
10605
247f5006 10606fi
a0b9e27f
MB
10607
10608echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10609
10610 if test "$ac_cv_sys_file_offset_bits" != no; then
10611 wx_largefile=yes
a0b9e27f 10612 cat >> confdefs.h <<EOF
21d1c967 10613#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10614EOF
21d1c967
GD
10615
10616 fi
10617
10618 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10619
10620 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
b2fee376 10621echo "configure:10622: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10622if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624else
10625
10626 cat > conftest.$ac_ext <<EOF
b2fee376 10627#line 10628 "configure"
f6bcfd97 10628#include "confdefs.h"
21d1c967
GD
10629#define _LARGE_FILES 1
10630 #include <sys/types.h>
a0b9e27f 10631int main() {
21d1c967
GD
10632typedef struct {
10633 unsigned int field: sizeof(off_t) == 8;
10634} wxlf;
10635
a0b9e27f
MB
10636; return 0; }
10637EOF
b2fee376 10638if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10639 rm -rf conftest*
21d1c967 10640 ac_cv_sys_large_files=1
f6bcfd97 10641else
a0b9e27f
MB
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 ac_cv_sys_large_files=no
5c6fa7d2 10646fi
a0b9e27f
MB
10647rm -f conftest*
10648
10649
247f5006 10650fi
a0b9e27f
MB
10651
10652echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10653
21d1c967
GD
10654 if test "$ac_cv_sys_large_files" != no; then
10655 wx_largefile=yes
a0b9e27f 10656 cat >> confdefs.h <<EOF
21d1c967 10657#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10658EOF
90dd450c 10659
90dd450c
VZ
10660 fi
10661
90dd450c 10662 fi
90dd450c 10663
a0b9e27f 10664 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
b2fee376 10665echo "configure:10666: checking if large file support is available" >&5
21d1c967 10666 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10667 cat >> confdefs.h <<\EOF
21d1c967 10668#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10669EOF
90dd450c 10670
90dd450c 10671 fi
a0b9e27f 10672 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10673fi
90dd450c 10674
8284b0c5 10675
f02444d0 10676if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10677 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10678 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10679 else
e26c13cf 10680 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10681 fi
e26c13cf 10682 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10683fi
10684
a0b9e27f 10685echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
e26c13cf 10686echo "configure:10687: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10687if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10689else
21d1c967
GD
10690 ac_cv_c_bigendian=unknown
10691# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10692cat > conftest.$ac_ext <<EOF
e26c13cf 10693#line 10694 "configure"
90dd450c 10694#include "confdefs.h"
21d1c967
GD
10695#include <sys/types.h>
10696#include <sys/param.h>
a0b9e27f 10697int main() {
21d1c967
GD
10698
10699#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10700 bogus endian macros
10701#endif
a0b9e27f
MB
10702; return 0; }
10703EOF
e26c13cf 10704if { (eval echo configure:10705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10705 rm -rf conftest*
21d1c967 10706 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10707cat > conftest.$ac_ext <<EOF
e26c13cf 10708#line 10709 "configure"
90dd450c 10709#include "confdefs.h"
21d1c967
GD
10710#include <sys/types.h>
10711#include <sys/param.h>
a0b9e27f 10712int main() {
21d1c967
GD
10713
10714#if BYTE_ORDER != BIG_ENDIAN
10715 not big endian
10716#endif
a0b9e27f
MB
10717; return 0; }
10718EOF
e26c13cf 10719if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10720 rm -rf conftest*
21d1c967 10721 ac_cv_c_bigendian=yes
3f345b47 10722else
a0b9e27f
MB
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10725 rm -rf conftest*
10726 ac_cv_c_bigendian=no
3f345b47 10727fi
a0b9e27f 10728rm -f conftest*
3f345b47 10729else
a0b9e27f
MB
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
3f345b47 10732fi
a0b9e27f 10733rm -f conftest*
21d1c967
GD
10734if test $ac_cv_c_bigendian = unknown; then
10735if test "$cross_compiling" = yes; then
10736 ac_cv_c_bigendian=unknown
10f2d63a 10737else
a0b9e27f 10738 cat > conftest.$ac_ext <<EOF
e26c13cf 10739#line 10740 "configure"
90dd450c 10740#include "confdefs.h"
21d1c967
GD
10741main () {
10742 /* Are we little or big endian? From Harbison&Steele. */
10743 union
10744 {
10745 long l;
10746 char c[sizeof (long)];
10747 } u;
10748 u.l = 1;
10749 exit (u.c[sizeof (long) - 1] == 1);
10750}
a0b9e27f 10751EOF
e26c13cf 10752if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10753then
21d1c967 10754 ac_cv_c_bigendian=no
3f345b47 10755else
a0b9e27f
MB
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -fr conftest*
10759 ac_cv_c_bigendian=yes
247f5006 10760fi
a0b9e27f 10761rm -fr conftest*
247f5006 10762fi
a0b9e27f 10763
3f345b47 10764fi
8168de4c 10765fi
a0b9e27f
MB
10766
10767echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10768if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10769 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2
247f5006
VZ
10770fi
10771if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10772 cat >> confdefs.h <<\EOF
247f5006 10773#define WORDS_BIGENDIAN 1
a0b9e27f 10774EOF
247f5006
VZ
10775
10776fi
10777
10778
a0b9e27f 10779echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
e26c13cf 10780echo "configure:10781: checking how to run the C++ preprocessor" >&5
247f5006 10781if test -z "$CXXCPP"; then
a0b9e27f
MB
10782if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10784else
a0b9e27f
MB
10785 ac_ext=C
10786# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10787ac_cpp='$CXXCPP $CPPFLAGS'
10788ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10789ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10790cross_compiling=$ac_cv_prog_cxx_cross
10791 CXXCPP="${CXX-g++} -E"
10792 cat > conftest.$ac_ext <<EOF
e26c13cf 10793#line 10794 "configure"
5c6fa7d2 10794#include "confdefs.h"
a0b9e27f
MB
10795#include <stdlib.h>
10796EOF
10797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 10798{ (eval echo configure:10799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10799ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10800if test -z "$ac_err"; then
21d1c967 10801 :
698dcdb6 10802else
a0b9e27f
MB
10803 echo "$ac_err" >&5
10804 echo "configure: failed program was:" >&5
698dcdb6 10805 cat conftest.$ac_ext >&5
a0b9e27f
MB
10806 rm -rf conftest*
10807 CXXCPP=/lib/cpp
247f5006 10808fi
a0b9e27f
MB
10809rm -f conftest*
10810 ac_cv_prog_CXXCPP="$CXXCPP"
10811ac_ext=C
10812# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10813ac_cpp='$CXXCPP $CPPFLAGS'
10814ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10815ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10816cross_compiling=$ac_cv_prog_cxx_cross
328a083c 10817fi
90dd450c 10818fi
a0b9e27f
MB
10819CXXCPP="$ac_cv_prog_CXXCPP"
10820echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10821
1725144d 10822
21d1c967 10823 if test "$cross_compiling" = "yes"; then
a0b9e27f 10824 cat >> confdefs.h <<\EOF
21d1c967 10825#define wxUSE_IOSTREAMH 1
a0b9e27f 10826EOF
ab9b9eab 10827
21d1c967 10828 else
a0b9e27f
MB
10829
10830 ac_ext=C
10831# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 10832ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
10833ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10834ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10835cross_compiling=$ac_cv_prog_cxx_cross
52127426 10836
247f5006 10837
a0b9e27f 10838 for ac_hdr in iostream
21d1c967 10839do
a0b9e27f
MB
10840ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10841echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e26c13cf 10842echo "configure:10843: checking for $ac_hdr" >&5
a0b9e27f
MB
10843if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10844 echo $ac_n "(cached) $ac_c" 1>&6
10845else
10846 cat > conftest.$ac_ext <<EOF
e26c13cf 10847#line 10848 "configure"
ab9b9eab 10848#include "confdefs.h"
a0b9e27f
MB
10849#include <$ac_hdr>
10850EOF
10851ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 10852{ (eval echo configure:10853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10853ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10854if test -z "$ac_err"; then
10855 rm -rf conftest*
10856 eval "ac_cv_header_$ac_safe=yes"
10857else
10858 echo "$ac_err" >&5
10859 echo "configure: failed program was:" >&5
ab9b9eab 10860 cat conftest.$ac_ext >&5
a0b9e27f
MB
10861 rm -rf conftest*
10862 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10863fi
a0b9e27f 10864rm -f conftest*
90dd450c 10865fi
a0b9e27f
MB
10866if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10867 echo "$ac_t""yes" 1>&6
10868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10869 cat >> confdefs.h <<EOF
10870#define $ac_tr_hdr 1
10871EOF
10872
10873else
10874 echo "$ac_t""no" 1>&6
90dd450c 10875fi
21d1c967 10876done
10f2d63a 10877
8284b0c5 10878
21d1c967
GD
10879 if test "$ac_cv_header_iostream" = "yes" ; then
10880 :
10881 else
a0b9e27f 10882 cat >> confdefs.h <<\EOF
21d1c967 10883#define wxUSE_IOSTREAMH 1
a0b9e27f 10884EOF
788deba1 10885
90dd450c 10886 fi
ab9b9eab 10887
21d1c967 10888 ac_ext=c
a0b9e27f 10889# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 10890ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
10891ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10892ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10893cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10894
21d1c967 10895 fi
ab9b9eab 10896
52127426 10897
8284b0c5 10898
a0b9e27f 10899 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
e26c13cf 10900echo "configure:10901: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
10901if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 10903else
a0b9e27f
MB
10904
10905
10906 ac_ext=C
10907# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 10908ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
10909ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10910ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10911cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 10912
8284b0c5 10913
a0b9e27f 10914 cat > conftest.$ac_ext <<EOF
e26c13cf 10915#line 10916 "configure"
ab9b9eab 10916#include "confdefs.h"
21d1c967 10917
a0b9e27f
MB
10918
10919int main() {
21d1c967
GD
10920
10921 bool b = true;
10922
10923 return 0;
a0b9e27f
MB
10924
10925; return 0; }
10926EOF
e26c13cf 10927if { (eval echo configure:10928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10928 rm -rf conftest*
10929
21d1c967 10930 wx_cv_cpp_bool=yes
a0b9e27f 10931
698dcdb6 10932else
a0b9e27f
MB
10933 echo "configure: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10935 rm -rf conftest*
10936
21d1c967 10937 wx_cv_cpp_bool=no
a0b9e27f
MB
10938
10939
698dcdb6 10940fi
a0b9e27f 10941rm -f conftest*
21d1c967
GD
10942
10943 ac_ext=c
a0b9e27f 10944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 10945ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
10946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10948cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 10949
a0b9e27f 10950
247f5006 10951fi
a0b9e27f
MB
10952
10953echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
10954
10955 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 10956 cat >> confdefs.h <<\EOF
21d1c967 10957#define HAVE_BOOL 1
a0b9e27f 10958EOF
ab9b9eab 10959
21d1c967
GD
10960 fi
10961
52127426 10962
8284b0c5 10963
a0b9e27f 10964 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
e26c13cf 10965echo "configure:10966: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
10966if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 10968else
a0b9e27f
MB
10969
10970
10971 ac_ext=C
10972# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 10973ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
10974ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10975ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10976cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 10977
8284b0c5 10978
a0b9e27f 10979 cat > conftest.$ac_ext <<EOF
e26c13cf 10980#line 10981 "configure"
986ecc86
VZ
10981#include "confdefs.h"
10982
10983 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
10984
10985int main() {
986ecc86
VZ
10986
10987 return 0;
a0b9e27f
MB
10988
10989; return 0; }
10990EOF
e26c13cf 10991if { (eval echo configure:10992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10992 rm -rf conftest*
10993
10994 cat > conftest.$ac_ext <<EOF
e26c13cf 10995#line 10996 "configure"
986ecc86
VZ
10996#include "confdefs.h"
10997
10998 class Foo { public: explicit Foo(int) {} };
10999 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11000
11001int main() {
986ecc86
VZ
11002
11003 TakeFoo(17);
11004 return 0;
a0b9e27f
MB
11005
11006; return 0; }
11007EOF
e26c13cf 11008if { (eval echo configure:11009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11009 rm -rf conftest*
986ecc86
VZ
11010 wx_cv_explicit=no
11011else
a0b9e27f
MB
11012 echo "configure: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
11014 rm -rf conftest*
11015 wx_cv_explicit=yes
11016
986ecc86 11017fi
a0b9e27f
MB
11018rm -f conftest*
11019
986ecc86 11020else
a0b9e27f
MB
11021 echo "configure: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11023 rm -rf conftest*
11024 wx_cv_explicit=no
11025
986ecc86 11026fi
a0b9e27f 11027rm -f conftest*
986ecc86
VZ
11028
11029 ac_ext=c
a0b9e27f 11030# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11031ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11032ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11033ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11034cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11035
a0b9e27f 11036
247f5006 11037fi
a0b9e27f
MB
11038
11039echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11040
11041 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11042 cat >> confdefs.h <<\EOF
986ecc86 11043#define HAVE_EXPLICIT 1
a0b9e27f 11044EOF
986ecc86
VZ
11045
11046 fi
11047
8284b0c5
MB
11048
11049
21d1c967
GD
11050SEARCH_INCLUDE="\
11051 /usr/local/include \
11052 \
11053 /usr/Motif-1.2/include \
11054 /usr/Motif-2.1/include \
11055 \
11056 /usr/include/Motif1.2 \
11057 /opt/xpm/include/X11 \
11058 /opt/GBxpm/include/ \
11059 /opt/GBxpm/X11/include/ \
11060 \
11061 /usr/Motif1.2/include \
11062 /usr/dt/include \
11063 /usr/openwin/include \
11064 \
11065 /usr/include/Xm \
11066 \
11067 /usr/X11R6/include \
11068 /usr/X11R6.4/include \
11069 /usr/X11R5/include \
11070 /usr/X11R4/include \
11071 \
11072 /usr/include/X11R6 \
11073 /usr/include/X11R5 \
11074 /usr/include/X11R4 \
11075 \
11076 /usr/local/X11R6/include \
11077 /usr/local/X11R5/include \
11078 /usr/local/X11R4/include \
11079 \
11080 /usr/local/include/X11R6 \
11081 /usr/local/include/X11R5 \
11082 /usr/local/include/X11R4 \
11083 \
11084 /usr/X11/include \
11085 /usr/include/X11 \
11086 /usr/local/X11/include \
11087 /usr/local/include/X11 \
11088 \
11089 /usr/X386/include \
11090 /usr/x386/include \
11091 /usr/XFree86/include/X11 \
11092 \
11093 X:/XFree86/include \
11094 X:/XFree86/include/X11 \
11095 \
11096 /usr/include/gtk \
11097 /usr/local/include/gtk \
11098 /usr/include/glib \
11099 /usr/local/include/glib \
11100 \
11101 /usr/include/qt \
11102 /usr/local/include/qt \
11103 \
11104 /usr/include/windows \
11105 /usr/include/wine \
11106 /usr/local/include/wine \
11107 \
11108 /usr/unsupported/include \
11109 /usr/athena/include \
11110 /usr/local/x11r5/include \
11111 /usr/lpp/Xamples/include \
11112 \
a85030bd
RL
11113 /usr/openwin/share/include \
11114 /usr/include"
21d1c967
GD
11115
11116SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11117
8284b0c5 11118
a0b9e27f 11119cat > confcache <<\EOF
21d1c967
GD
11120# This file is a shell script that caches the results of configure
11121# tests run on this system so they can be shared between configure
a0b9e27f
MB
11122# scripts and configure runs. It is not useful on other systems.
11123# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11124#
a0b9e27f
MB
11125# By default, configure uses ./config.cache as the cache file,
11126# creating it if it does not exist already. You can give configure
11127# the --cache-file=FILE option to use a different cache file; that is
11128# what configure does when it calls configure scripts in
11129# subdirectories, so they share the cache.
11130# Giving --cache-file=/dev/null disables caching, for debugging configure.
11131# config.status only pays attention to the cache file if you give it the
11132# --recheck option to rerun configure.
21d1c967 11133#
a0b9e27f 11134EOF
21d1c967
GD
11135# The following way of writing the cache mishandles newlines in values,
11136# but we know of no workaround that is simple, portable, and efficient.
11137# So, don't put newlines in cache variables' values.
11138# Ultrix sh set writes to stderr and can't be redirected directly,
11139# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11140(set) 2>&1 |
11141 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11142 *ac_space=\ *)
11143 # `set' does not quote correctly, so add quotes (double-quote substitution
11144 # turns \\\\ into \\, and sed turns \\ into \).
11145 sed -n \
11146 -e "s/'/'\\\\''/g" \
11147 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11148 ;;
11149 *)
11150 # `set' quotes correctly as required by POSIX, so do not add quotes.
11151 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11152 ;;
11153 esac >> confcache
11154if cmp -s $cache_file confcache; then
11155 :
11156else
21d1c967 11157 if test -w $cache_file; then
a0b9e27f
MB
11158 echo "updating cache $cache_file"
11159 cat confcache > $cache_file
21d1c967
GD
11160 else
11161 echo "not updating unwritable cache $cache_file"
11162 fi
ab9b9eab 11163fi
21d1c967 11164rm -f confcache
ab9b9eab 11165
247f5006 11166
a0b9e27f
MB
11167if test "$USE_LINUX" = 1; then
11168 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
e26c13cf 11169echo "configure:11170: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11170if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11171 echo $ac_n "(cached) $ac_c" 1>&6
11172else
11173
11174 cat > conftest.$ac_ext <<EOF
e26c13cf 11175#line 11176 "configure"
ab9b9eab 11176#include "confdefs.h"
21d1c967 11177#include <features.h>
a0b9e27f 11178int main() {
ab9b9eab 11179
21d1c967
GD
11180 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11181 #error not glibc2.1
11182 #endif
a0b9e27f
MB
11183
11184; return 0; }
11185EOF
e26c13cf 11186if { (eval echo configure:11187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11187 rm -rf conftest*
11188
21d1c967 11189 wx_cv_lib_glibc21=yes
a0b9e27f 11190
698dcdb6 11191else
a0b9e27f
MB
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195
21d1c967 11196 wx_cv_lib_glibc21=no
a0b9e27f
MB
11197
11198
5c6fa7d2 11199fi
a0b9e27f
MB
11200rm -f conftest*
11201
247f5006 11202fi
a0b9e27f
MB
11203
11204echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11205 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11206 cat >> confdefs.h <<\EOF
21d1c967 11207#define wxHAVE_GLIBC2 1
a0b9e27f 11208EOF
1e487827 11209
90dd450c 11210 fi
ab9b9eab
VZ
11211fi
11212
5c0a20c3
VZ
11213if test "x$wx_cv_lib_glibc21" = "xyes"; then
11214 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11215 cat >> confdefs.h <<\EOF
5c0a20c3 11216#define _GNU_SOURCE 1
a0b9e27f 11217EOF
5c0a20c3
VZ
11218
11219 fi
11220fi
11221
8284b0c5
MB
11222
11223
21d1c967
GD
11224REGEX_INCLUDE=
11225if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11226 cat >> confdefs.h <<\EOF
21d1c967 11227#define wxUSE_REGEX 1
a0b9e27f 11228EOF
698dcdb6 11229
8284b0c5 11230
21d1c967 11231 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11232 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11233echo $ac_n "checking for regex.h""... $ac_c" 1>&6
e26c13cf 11234echo "configure:11235: checking for regex.h" >&5
a0b9e27f
MB
11235if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11237else
11238 cat > conftest.$ac_ext <<EOF
e26c13cf 11239#line 11240 "configure"
247f5006
VZ
11240#include "confdefs.h"
11241#include <regex.h>
a0b9e27f
MB
11242EOF
11243ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 11244{ (eval echo configure:11245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11245ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11246if test -z "$ac_err"; then
11247 rm -rf conftest*
11248 eval "ac_cv_header_$ac_safe=yes"
11249else
11250 echo "$ac_err" >&5
11251 echo "configure: failed program was:" >&5
21d1c967 11252 cat conftest.$ac_ext >&5
a0b9e27f
MB
11253 rm -rf conftest*
11254 eval "ac_cv_header_$ac_safe=no"
21d1c967 11255fi
a0b9e27f 11256rm -f conftest*
698dcdb6 11257fi
a0b9e27f
MB
11258if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11259 echo "$ac_t""yes" 1>&6
11260 for ac_func in regcomp
21d1c967 11261do
a0b9e27f 11262echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 11263echo "configure:11264: checking for $ac_func" >&5
a0b9e27f
MB
11264if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11266else
a0b9e27f 11267 cat > conftest.$ac_ext <<EOF
e26c13cf 11268#line 11269 "configure"
a0b9e27f
MB
11269#include "confdefs.h"
11270/* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func(); below. */
21d1c967
GD
11272#include <assert.h>
11273/* Override any gcc2 internal prototype to avoid an error. */
11274/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11275 builtin and then its argument prototype would still apply. */
11276char $ac_func();
11277
11278int main() {
11279
21d1c967
GD
11280/* The GNU C library defines this for functions which it implements
11281 to always fail with ENOSYS. Some functions are actually named
11282 something starting with __ and the normal name is an alias. */
11283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284choke me
11285#else
a0b9e27f 11286$ac_func();
21d1c967 11287#endif
90dd450c 11288
a0b9e27f
MB
11289; return 0; }
11290EOF
e26c13cf 11291if { (eval echo configure:11292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11292 rm -rf conftest*
11293 eval "ac_cv_func_$ac_func=yes"
11294else
11295 echo "configure: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11297 rm -rf conftest*
11298 eval "ac_cv_func_$ac_func=no"
11299fi
11300rm -f conftest*
11301fi
5c6fa7d2 11302
a0b9e27f
MB
11303if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11304 echo "$ac_t""yes" 1>&6
11305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11306 cat >> confdefs.h <<EOF
11307#define $ac_tr_func 1
11308EOF
11309
11310else
11311 echo "$ac_t""no" 1>&6
698dcdb6 11312fi
21d1c967
GD
11313done
11314
a0b9e27f
MB
11315else
11316 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11317fi
11318
8284b0c5 11319
21d1c967
GD
11320 if test "x$ac_cv_func_regcomp" != "xyes"; then
11321 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11322 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11323 else
a0b9e27f 11324 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11325 wxUSE_REGEX=builtin
11326 fi
11327 else
11328 wxUSE_REGEX=sys
11329 fi
ab9b9eab 11330 fi
90dd450c 11331
21d1c967
GD
11332 if test "$wxUSE_REGEX" = "builtin" ; then
11333 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11334 fi
21d1c967 11335fi
90dd450c 11336
8284b0c5 11337
21d1c967
GD
11338ZLIB_INCLUDE=
11339ZLIB_LINK=
11340if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11341 cat >> confdefs.h <<\EOF
21d1c967 11342#define wxUSE_ZLIB 1
a0b9e27f 11343EOF
21d1c967 11344
8284b0c5 11345
21d1c967 11346 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
a0b9e27f
MB
11347 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11348echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
e26c13cf 11349echo "configure:11350: checking for zlib.h" >&5
a0b9e27f
MB
11350if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11352else
11353 cat > conftest.$ac_ext <<EOF
e26c13cf 11354#line 11355 "configure"
ab9b9eab 11355#include "confdefs.h"
21d1c967 11356#include <zlib.h>
a0b9e27f
MB
11357EOF
11358ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 11359{ (eval echo configure:11360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11360ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11361if test -z "$ac_err"; then
11362 rm -rf conftest*
11363 eval "ac_cv_header_$ac_safe=yes"
11364else
11365 echo "$ac_err" >&5
11366 echo "configure: failed program was:" >&5
698dcdb6 11367 cat conftest.$ac_ext >&5
a0b9e27f
MB
11368 rm -rf conftest*
11369 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11370fi
a0b9e27f 11371rm -f conftest*
ab9b9eab 11372fi
a0b9e27f
MB
11373if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11374 echo "$ac_t""yes" 1>&6
11375 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
e26c13cf 11376echo "configure:11377: checking for deflate in -lz" >&5
a0b9e27f
MB
11377ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11379 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11380else
a0b9e27f 11381 ac_save_LIBS="$LIBS"
21d1c967 11382LIBS="-lz $LIBS"
a0b9e27f 11383cat > conftest.$ac_ext <<EOF
e26c13cf 11384#line 11385 "configure"
ab9b9eab 11385#include "confdefs.h"
21d1c967
GD
11386/* Override any gcc2 internal prototype to avoid an error. */
11387/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11388 builtin and then its argument prototype would still apply. */
11389char deflate();
11390
11391int main() {
11392deflate()
11393; return 0; }
11394EOF
e26c13cf 11395if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11396 rm -rf conftest*
11397 eval "ac_cv_lib_$ac_lib_var=yes"
11398else
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11401 rm -rf conftest*
11402 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11403fi
a0b9e27f
MB
11404rm -f conftest*
11405LIBS="$ac_save_LIBS"
698dcdb6 11406
698dcdb6 11407fi
a0b9e27f
MB
11408if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11409 echo "$ac_t""yes" 1>&6
11410 ZLIB_LINK=" -lz"
11411else
11412 echo "$ac_t""no" 1>&6
11413fi
698dcdb6 11414
a0b9e27f
MB
11415else
11416 echo "$ac_t""no" 1>&6
11417fi
8284b0c5 11418
247f5006 11419
21d1c967
GD
11420 if test "x$ZLIB_LINK" = "x" ; then
11421 if test "$wxUSE_ZLIB" = "sys" ; then
a0b9e27f 11422 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11423 else
a0b9e27f 11424 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
21d1c967
GD
11425 wxUSE_ZLIB=builtin
11426 fi
11427 else
11428 wxUSE_ZLIB=sys
11429 fi
11430 fi
11431
11432 if test "$wxUSE_ZLIB" = "builtin" ; then
11433 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11434 fi
ab9b9eab
VZ
11435fi
11436
8284b0c5 11437
21d1c967
GD
11438PNG_INCLUDE=
11439PNG_LINK=
11440if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11441 cat >> confdefs.h <<\EOF
21d1c967 11442#define wxUSE_LIBPNG 1
a0b9e27f 11443EOF
90dd450c 11444
8284b0c5 11445
21d1c967 11446 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11447 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11448 wxUSE_LIBPNG=sys
11449 fi
90dd450c 11450
21d1c967 11451 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11452 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11453 wxUSE_LIBPNG=builtin
11454 fi
11455
11456 if test "$wxUSE_MGL" != 1 ; then
11457 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
a0b9e27f
MB
11458 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11459echo $ac_n "checking for png.h""... $ac_c" 1>&6
e26c13cf 11460echo "configure:11461: checking for png.h" >&5
a0b9e27f
MB
11461if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11462 echo $ac_n "(cached) $ac_c" 1>&6
11463else
11464 cat > conftest.$ac_ext <<EOF
e26c13cf 11465#line 11466 "configure"
21d1c967
GD
11466#include "confdefs.h"
11467#include <png.h>
a0b9e27f
MB
11468EOF
11469ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 11470{ (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11471ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11472if test -z "$ac_err"; then
11473 rm -rf conftest*
11474 eval "ac_cv_header_$ac_safe=yes"
11475else
11476 echo "$ac_err" >&5
11477 echo "configure: failed program was:" >&5
90dd450c 11478 cat conftest.$ac_ext >&5
a0b9e27f
MB
11479 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=no"
90dd450c 11481fi
a0b9e27f 11482rm -f conftest*
90dd450c 11483fi
a0b9e27f
MB
11484if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
e26c13cf 11487echo "configure:11488: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11488ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11490 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11491else
a0b9e27f 11492 ac_save_LIBS="$LIBS"
21d1c967 11493LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11494cat > conftest.$ac_ext <<EOF
e26c13cf 11495#line 11496 "configure"
90dd450c 11496#include "confdefs.h"
21d1c967
GD
11497/* Override any gcc2 internal prototype to avoid an error. */
11498/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11499 builtin and then its argument prototype would still apply. */
11500char png_check_sig();
90dd450c 11501
a0b9e27f
MB
11502int main() {
11503png_check_sig()
11504; return 0; }
11505EOF
e26c13cf 11506if { (eval echo configure:11507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11507 rm -rf conftest*
11508 eval "ac_cv_lib_$ac_lib_var=yes"
11509else
11510 echo "configure: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 rm -rf conftest*
11513 eval "ac_cv_lib_$ac_lib_var=no"
11514fi
11515rm -f conftest*
11516LIBS="$ac_save_LIBS"
247f5006 11517
90dd450c 11518fi
a0b9e27f
MB
11519if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11520 echo "$ac_t""yes" 1>&6
11521 PNG_LINK=" -lpng"
11522else
11523 echo "$ac_t""no" 1>&6
11524fi
90dd450c 11525
a0b9e27f
MB
11526
11527else
11528 echo "$ac_t""no" 1>&6
11529fi
8284b0c5 11530
247f5006 11531
21d1c967
GD
11532 if test "x$PNG_LINK" = "x" ; then
11533 if test "$wxUSE_LIBPNG" = "sys" ; then
a0b9e27f 11534 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11535 else
a0b9e27f 11536 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
21d1c967
GD
11537 wxUSE_LIBPNG=builtin
11538 fi
11539 else
11540 wxUSE_LIBPNG=yes
11541 fi
11542 fi
11543 fi
90dd450c 11544
21d1c967
GD
11545 if test "$wxUSE_LIBPNG" = "builtin" ; then
11546 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11547 fi
90dd450c 11548
21d1c967 11549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11550fi
11551
8284b0c5 11552
21d1c967
GD
11553JPEG_INCLUDE=
11554JPEG_LINK=
11555if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11556 cat >> confdefs.h <<\EOF
21d1c967 11557#define wxUSE_LIBJPEG 1
a0b9e27f 11558EOF
90dd450c 11559
8284b0c5 11560
21d1c967 11561 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11562 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11563 wxUSE_LIBJPEG=sys
11564 fi
90dd450c 11565
21d1c967
GD
11566 if test "$wxUSE_MGL" != 1 ; then
11567 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11568 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
e26c13cf 11569echo "configure:11570: checking for jpeglib.h" >&5
a0b9e27f
MB
11570 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11571 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11572else
a0b9e27f 11573 cat > conftest.$ac_ext <<EOF
e26c13cf 11574#line 11575 "configure"
21d1c967 11575#include "confdefs.h"
90dd450c 11576
21d1c967
GD
11577 #undef HAVE_STDLIB_H
11578 #include <stdio.h>
11579 #include <jpeglib.h>
a0b9e27f
MB
11580
11581int main() {
90dd450c 11582
a0b9e27f
MB
11583
11584; return 0; }
11585EOF
e26c13cf 11586if { (eval echo configure:11587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11587 rm -rf conftest*
21d1c967 11588 ac_cv_header_jpeglib_h=yes
90dd450c 11589else
a0b9e27f
MB
11590 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11592 rm -rf conftest*
11593 ac_cv_header_jpeglib_h=no
11594
90dd450c 11595fi
a0b9e27f
MB
11596rm -f conftest*
11597
90dd450c
VZ
11598fi
11599
a0b9e27f 11600 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11601
21d1c967 11602 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11603 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
e26c13cf 11604echo "configure:11605: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11605ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11606if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11608else
a0b9e27f 11609 ac_save_LIBS="$LIBS"
21d1c967 11610LIBS="-ljpeg $LIBS"
a0b9e27f 11611cat > conftest.$ac_ext <<EOF
e26c13cf 11612#line 11613 "configure"
21d1c967
GD
11613#include "confdefs.h"
11614/* Override any gcc2 internal prototype to avoid an error. */
11615/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11616 builtin and then its argument prototype would still apply. */
11617char jpeg_read_header();
11618
11619int main() {
11620jpeg_read_header()
11621; return 0; }
11622EOF
e26c13cf 11623if { (eval echo configure:11624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11624 rm -rf conftest*
11625 eval "ac_cv_lib_$ac_lib_var=yes"
11626else
11627 echo "configure: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11629 rm -rf conftest*
11630 eval "ac_cv_lib_$ac_lib_var=no"
11631fi
11632rm -f conftest*
11633LIBS="$ac_save_LIBS"
11634
11635fi
11636if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11637 echo "$ac_t""yes" 1>&6
21d1c967 11638 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
11639else
11640 echo "$ac_t""no" 1>&6
90dd450c
VZ
11641fi
11642
21d1c967 11643 fi
90dd450c 11644
21d1c967
GD
11645 if test "x$JPEG_LINK" = "x" ; then
11646 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 11647 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11648 else
a0b9e27f 11649 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11650 wxUSE_LIBJPEG=builtin
11651 fi
11652 else
11653 wxUSE_LIBJPEG=sys
11654 fi
11655 fi
11656 fi
90dd450c 11657
21d1c967
GD
11658 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11659 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11660 fi
11661fi
90dd450c 11662
8284b0c5 11663
21d1c967
GD
11664TIFF_INCLUDE=
11665TIFF_LINK=
11666if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 11667 cat >> confdefs.h <<\EOF
21d1c967 11668#define wxUSE_LIBTIFF 1
a0b9e27f 11669EOF
21d1c967 11670
8284b0c5 11671
21d1c967 11672 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
a0b9e27f
MB
11673 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11674echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
e26c13cf 11675echo "configure:11676: checking for tiffio.h" >&5
a0b9e27f
MB
11676if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11677 echo $ac_n "(cached) $ac_c" 1>&6
11678else
11679 cat > conftest.$ac_ext <<EOF
e26c13cf 11680#line 11681 "configure"
247f5006
VZ
11681#include "confdefs.h"
11682#include <tiffio.h>
a0b9e27f
MB
11683EOF
11684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 11685{ (eval echo configure:11686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11687if test -z "$ac_err"; then
11688 rm -rf conftest*
11689 eval "ac_cv_header_$ac_safe=yes"
11690else
11691 echo "$ac_err" >&5
11692 echo "configure: failed program was:" >&5
21d1c967 11693 cat conftest.$ac_ext >&5
a0b9e27f
MB
11694 rm -rf conftest*
11695 eval "ac_cv_header_$ac_safe=no"
21d1c967 11696fi
a0b9e27f 11697rm -f conftest*
21d1c967 11698fi
a0b9e27f
MB
11699if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
e26c13cf 11702echo "configure:11703: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
11703ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11704if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11705 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 11706else
a0b9e27f 11707 ac_save_LIBS="$LIBS"
21d1c967 11708LIBS="-ltiff -lm $LIBS"
a0b9e27f 11709cat > conftest.$ac_ext <<EOF
e26c13cf 11710#line 11711 "configure"
ab9b9eab
VZ
11711#include "confdefs.h"
11712/* Override any gcc2 internal prototype to avoid an error. */
11713/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11714 builtin and then its argument prototype would still apply. */
11715char TIFFError();
ab9b9eab 11716
a0b9e27f
MB
11717int main() {
11718TIFFError()
11719; return 0; }
11720EOF
e26c13cf 11721if { (eval echo configure:11722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11722 rm -rf conftest*
11723 eval "ac_cv_lib_$ac_lib_var=yes"
11724else
11725 echo "configure: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11727 rm -rf conftest*
11728 eval "ac_cv_lib_$ac_lib_var=no"
11729fi
11730rm -f conftest*
11731LIBS="$ac_save_LIBS"
247f5006 11732
21d1c967 11733fi
a0b9e27f
MB
11734if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11735 echo "$ac_t""yes" 1>&6
11736 TIFF_LINK=" -ltiff"
11737else
11738 echo "$ac_t""no" 1>&6
11739fi
cd6d6d5b 11740
a0b9e27f
MB
11741
11742else
11743 echo "$ac_t""no" 1>&6
11744fi
8284b0c5 11745
247f5006 11746
21d1c967
GD
11747 if test "x$TIFF_LINK" = "x" ; then
11748 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 11749 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11750 else
a0b9e27f 11751 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 11752 wxUSE_LIBTIFF=builtin
d8356fa3 11753 fi
d8356fa3 11754 else
21d1c967 11755 wxUSE_LIBTIFF=sys
d8356fa3 11756 fi
21d1c967 11757 fi
d8356fa3 11758
21d1c967
GD
11759 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11760 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11761 fi
21d1c967 11762fi
10f2d63a 11763
8284b0c5 11764
21d1c967 11765AFMINSTALL=
90dd450c 11766
21d1c967
GD
11767TOOLKIT=
11768TOOLKIT_INCLUDE=
11769WIDGET_SET=
11770
11771if test "$USE_WIN32" = 1 ; then
a0b9e27f 11772 for ac_hdr in w32api.h
21d1c967 11773do
a0b9e27f
MB
11774ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11775echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e26c13cf 11776echo "configure:11777: checking for $ac_hdr" >&5
a0b9e27f
MB
11777if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11778 echo $ac_n "(cached) $ac_c" 1>&6
11779else
11780 cat > conftest.$ac_ext <<EOF
e26c13cf 11781#line 11782 "configure"
247f5006 11782#include "confdefs.h"
a0b9e27f
MB
11783#include <$ac_hdr>
11784EOF
11785ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 11786{ (eval echo configure:11787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11787ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11788if test -z "$ac_err"; then
11789 rm -rf conftest*
11790 eval "ac_cv_header_$ac_safe=yes"
11791else
11792 echo "$ac_err" >&5
11793 echo "configure: failed program was:" >&5
f79bd02d 11794 cat conftest.$ac_ext >&5
a0b9e27f
MB
11795 rm -rf conftest*
11796 eval "ac_cv_header_$ac_safe=no"
f79bd02d 11797fi
a0b9e27f 11798rm -f conftest*
21d1c967 11799fi
a0b9e27f
MB
11800if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11801 echo "$ac_t""yes" 1>&6
11802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11803 cat >> confdefs.h <<EOF
11804#define $ac_tr_hdr 1
11805EOF
11806
11807else
11808 echo "$ac_t""no" 1>&6
21d1c967
GD
11809fi
11810done
f79bd02d 11811
a0b9e27f
MB
11812 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11813echo $ac_n "checking for windows.h""... $ac_c" 1>&6
e26c13cf 11814echo "configure:11815: checking for windows.h" >&5
a0b9e27f
MB
11815if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11816 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11817else
a0b9e27f 11818 cat > conftest.$ac_ext <<EOF
e26c13cf 11819#line 11820 "configure"
247f5006
VZ
11820#include "confdefs.h"
11821#include <windows.h>
a0b9e27f
MB
11822EOF
11823ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 11824{ (eval echo configure:11825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11825ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11826if test -z "$ac_err"; then
11827 rm -rf conftest*
11828 eval "ac_cv_header_$ac_safe=yes"
11829else
11830 echo "$ac_err" >&5
11831 echo "configure: failed program was:" >&5
90dd450c 11832 cat conftest.$ac_ext >&5
a0b9e27f
MB
11833 rm -rf conftest*
11834 eval "ac_cv_header_$ac_safe=no"
90dd450c 11835fi
a0b9e27f 11836rm -f conftest*
90dd450c 11837fi
a0b9e27f
MB
11838if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11839 echo "$ac_t""yes" 1>&6
21d1c967 11840 :
90dd450c 11841else
a0b9e27f 11842 echo "$ac_t""no" 1>&6
21d1c967 11843
a0b9e27f
MB
11844 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11845
5c6fa7d2 11846fi
7b4a847f 11847
5c6fa7d2 11848
a0b9e27f 11849 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
e26c13cf 11850echo "configure:11851: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
11851if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11853else
a0b9e27f
MB
11854
11855 cat > conftest.$ac_ext <<EOF
e26c13cf 11856#line 11857 "configure"
f79bd02d 11857#include "confdefs.h"
21d1c967 11858#include <w32api.h>
a0b9e27f 11859int main() {
f79bd02d 11860
21d1c967
GD
11861 #define wxCHECK_W32API_VERSION( major, minor ) \
11862 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11863 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11864 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11865
11866 #if !wxCHECK_W32API_VERSION(1,1)
11867 #error You need w32api 1.1 or newer
11868 #endif
a0b9e27f
MB
11869
11870; return 0; }
11871EOF
e26c13cf 11872if { (eval echo configure:11873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11873 rm -rf conftest*
11874
21d1c967 11875 wx_cv_w32api_win32_ie=yes
a0b9e27f 11876
f79bd02d 11877else
a0b9e27f
MB
11878 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11880 rm -rf conftest*
11881
21d1c967 11882 wx_cv_w32api_win32_ie=no
a0b9e27f 11883
5c6fa7d2 11884fi
a0b9e27f
MB
11885rm -f conftest*
11886
247f5006 11887fi
a0b9e27f
MB
11888
11889echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
11890 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11891 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11892 fi
f79bd02d 11893
21d1c967
GD
11894 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11895
11896 case "${host}" in
11897 *-*-cygwin* )
11898 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11899 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11900 esac
f79bd02d 11901
21d1c967
GD
11902 if test "$wxUSE_ODBC" = "yes" ; then
11903 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11904 fi
f79bd02d 11905
21d1c967
GD
11906 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11907 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11908fi
f79bd02d 11909
b2fee376
GD
11910if test "$USE_DARWIN" = 1; then
11911 // Mac OS X/Darwin GCC uses precompiled headers by default
11912 // this can cause problems both when compiling wxMac and wxBase
11913 if test "$wxUSE_PRECOMP" = "yes"; then
11914 CPPFLAGS="$CPPFLAGS -cpp-precomp"
11915 else
11916 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
11917 fi
11918fi
11919
21d1c967
GD
11920if test "$wxUSE_GUI" = "yes"; then
11921 USE_GUI=1
f79bd02d 11922
21d1c967 11923 GUI_TK_LIBRARY=
f79bd02d 11924
21d1c967
GD
11925 WXGTK12=
11926 WXGTK127=
11927 WXGTK20=
f79bd02d 11928
21d1c967
GD
11929 if test "$wxUSE_MSW" = 1 ; then
11930 TOOLKIT=MSW
11931 GUIDIST=MSW_DIST
f79bd02d 11932
21d1c967
GD
11933 case "${host}" in
11934 *-*-mingw32* )
11935 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11936 esac
f79bd02d
JS
11937 fi
11938
21d1c967 11939 if test "$wxUSE_GTK" = 1; then
a0b9e27f 11940 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
e26c13cf 11941echo "configure:11942: checking for GTK+ version" >&5
21d1c967
GD
11942
11943 gtk_version_cached=1
a0b9e27f
MB
11944 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11946else
a0b9e27f 11947
21d1c967 11948 gtk_version_cached=0
a0b9e27f 11949 echo "$ac_t""" 1>&6
f79bd02d 11950
21d1c967
GD
11951 GTK_MODULES=
11952 if test "$wxUSE_THREADS" = "yes"; then
11953 GTK_MODULES=gthread
11954 fi
f79bd02d 11955
21d1c967
GD
11956 wx_cv_lib_gtk=
11957 if test "x$wxUSE_GTK2" = "xyes"; then
11958 # Check whether --enable-gtktest or --disable-gtktest was given.
11959if test "${enable_gtktest+set}" = set; then
11960 enableval="$enable_gtktest"
a0b9e27f 11961 :
f79bd02d 11962else
21d1c967 11963 enable_gtktest=yes
a0b9e27f
MB
11964fi
11965
f79bd02d 11966
21d1c967
GD
11967 pkg_config_args=gtk+-2.0
11968 for module in . $GTK_MODULES
11969 do
11970 case "$module" in
a0b9e27f 11971 gthread)
21d1c967
GD
11972 pkg_config_args="$pkg_config_args gthread-2.0"
11973 ;;
11974 esac
11975 done
11976
11977 no_gtk=""
f79bd02d 11978
21d1c967
GD
11979 # Extract the first word of "pkg-config", so it can be a program name with args.
11980set dummy pkg-config; ac_word=$2
a0b9e27f 11981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 11982echo "configure:11983: checking for $ac_word" >&5
a0b9e27f
MB
11983if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11985else
a0b9e27f
MB
11986 case "$PKG_CONFIG" in
11987 /*)
21d1c967
GD
11988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11989 ;;
a0b9e27f
MB
11990 ?:/*)
11991 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11992 ;;
21d1c967 11993 *)
a0b9e27f
MB
11994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11995 ac_dummy="$PATH"
11996 for ac_dir in $ac_dummy; do
11997 test -z "$ac_dir" && ac_dir=.
11998 if test -f $ac_dir/$ac_word; then
11999 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12000 break
12001 fi
12002 done
12003 IFS="$ac_save_ifs"
21d1c967
GD
12004 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12005 ;;
12006esac
f79bd02d 12007fi
a0b9e27f 12008PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12009if test -n "$PKG_CONFIG"; then
a0b9e27f 12010 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12011else
a0b9e27f 12012 echo "$ac_t""no" 1>&6
f79bd02d
JS
12013fi
12014
8284b0c5 12015
21d1c967
GD
12016 if test x$PKG_CONFIG != xno ; then
12017 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12018 :
12019 else
12020 echo *** pkg-config too old; version 0.7 or better required.
12021 no_gtk=yes
12022 PKG_CONFIG=no
12023 fi
12024 else
12025 no_gtk=yes
12026 fi
f79bd02d 12027
21d1c967 12028 min_gtk_version=2.0.0
a0b9e27f 12029 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
e26c13cf 12030echo "configure:12031: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12031
21d1c967
GD
12032 if test x$PKG_CONFIG != xno ; then
12033 ## don't try to run the test against uninstalled libtool libs
12034 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12035 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12036 enable_gtktest=no
12037 fi
f79bd02d 12038
21d1c967
GD
12039 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12040 :
12041 else
12042 no_gtk=yes
12043 fi
12044 fi
f79bd02d 12045
21d1c967
GD
12046 if test x"$no_gtk" = x ; then
12047 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12048 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12049 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12051 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12053 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12055 if test "x$enable_gtktest" = "xyes" ; then
12056 ac_save_CFLAGS="$CFLAGS"
12057 ac_save_LIBS="$LIBS"
12058 CFLAGS="$CFLAGS $GTK_CFLAGS"
12059 LIBS="$GTK_LIBS $LIBS"
12060 rm -f conf.gtktest
12061 if test "$cross_compiling" = yes; then
12062 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12063else
a0b9e27f 12064 cat > conftest.$ac_ext <<EOF
e26c13cf 12065#line 12066 "configure"
f79bd02d 12066#include "confdefs.h"
f79bd02d 12067
21d1c967
GD
12068#include <gtk/gtk.h>
12069#include <stdio.h>
12070#include <stdlib.h>
f79bd02d 12071
a0b9e27f 12072int
21d1c967
GD
12073main ()
12074{
12075 int major, minor, micro;
12076 char *tmp_version;
f79bd02d 12077
21d1c967 12078 system ("touch conf.gtktest");
f79bd02d 12079
21d1c967
GD
12080 /* HP/UX 9 (%@#!) writes to sscanf strings */
12081 tmp_version = g_strdup("$min_gtk_version");
12082 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12083 printf("%s, bad version string\n", "$min_gtk_version");
12084 exit(1);
12085 }
f79bd02d 12086
21d1c967
GD
12087 if ((gtk_major_version != $gtk_config_major_version) ||
12088 (gtk_minor_version != $gtk_config_minor_version) ||
12089 (gtk_micro_version != $gtk_config_micro_version))
12090 {
a0b9e27f 12091 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12092 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12093 gtk_major_version, gtk_minor_version, gtk_micro_version);
12094 printf ("*** was found! If pkg-config was correct, then it is best\n");
12095 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12096 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12097 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12098 printf("*** required on your system.\n");
12099 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12100 printf("*** to point to the correct configuration files\n");
a0b9e27f 12101 }
21d1c967
GD
12102 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12103 (gtk_minor_version != GTK_MINOR_VERSION) ||
12104 (gtk_micro_version != GTK_MICRO_VERSION))
12105 {
12106 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12107 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12108 printf("*** library (version %d.%d.%d)\n",
12109 gtk_major_version, gtk_minor_version, gtk_micro_version);
12110 }
12111 else
12112 {
12113 if ((gtk_major_version > major) ||
12114 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12115 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12116 {
12117 return 0;
12118 }
12119 else
12120 {
12121 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12122 gtk_major_version, gtk_minor_version, gtk_micro_version);
12123 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12124 major, minor, micro);
12125 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12126 printf("***\n");
12127 printf("*** If you have already installed a sufficiently new version, this error\n");
12128 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12129 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12130 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12131 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12132 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12133 printf("*** so that the correct libraries are found at run-time))\n");
12134 }
12135 }
12136 return 1;
12137}
f79bd02d 12138
a0b9e27f 12139EOF
e26c13cf 12140if { (eval echo configure:12141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12141then
21d1c967 12142 :
f79bd02d 12143else
a0b9e27f
MB
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12146 rm -fr conftest*
12147 no_gtk=yes
f79bd02d 12148fi
a0b9e27f 12149rm -fr conftest*
f79bd02d 12150fi
a0b9e27f 12151
21d1c967
GD
12152 CFLAGS="$ac_save_CFLAGS"
12153 LIBS="$ac_save_LIBS"
12154 fi
12155 fi
12156 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12157 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12158 wx_cv_lib_gtk=2.0
21d1c967 12159 else
a0b9e27f 12160 echo "$ac_t""no" 1>&6
21d1c967
GD
12161 if test "$PKG_CONFIG" = "no" ; then
12162 echo "*** A new enough version of pkg-config was not found."
12163 echo "*** See http://pkgconfig.sourceforge.net"
12164 else
12165 if test -f conf.gtktest ; then
12166 :
12167 else
12168 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12169 ac_save_CFLAGS="$CFLAGS"
12170 ac_save_LIBS="$LIBS"
21d1c967
GD
12171 CFLAGS="$CFLAGS $GTK_CFLAGS"
12172 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12173 cat > conftest.$ac_ext <<EOF
e26c13cf 12174#line 12175 "configure"
f79bd02d 12175#include "confdefs.h"
21d1c967
GD
12176
12177#include <gtk/gtk.h>
12178#include <stdio.h>
f79bd02d 12179
a0b9e27f
MB
12180int main() {
12181 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12182; return 0; }
12183EOF
e26c13cf 12184if { (eval echo configure:12185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12185 rm -rf conftest*
21d1c967
GD
12186 echo "*** The test program compiled, but did not run. This usually means"
12187 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12188 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12189 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12190 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12191 echo "*** is required on your system"
12192 echo "***"
12193 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12194 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12195else
a0b9e27f
MB
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12198 rm -rf conftest*
12199 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12200 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12201fi
a0b9e27f 12202rm -f conftest*
21d1c967
GD
12203 CFLAGS="$ac_save_CFLAGS"
12204 LIBS="$ac_save_LIBS"
12205 fi
12206 fi
12207 GTK_CFLAGS=""
12208 GTK_LIBS=""
12209 :
12210 fi
a0b9e27f
MB
12211
12212
21d1c967 12213 rm -f conf.gtktest
f79bd02d 12214
21d1c967 12215 fi
f79bd02d 12216
21d1c967 12217 if test -z "$wx_cv_lib_gtk"; then
a0b9e27f 12218 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12219if test "${with_gtk_prefix+set}" = set; then
12220 withval="$with_gtk_prefix"
12221 gtk_config_prefix="$withval"
12222else
12223 gtk_config_prefix=""
a0b9e27f 12224fi
f79bd02d 12225
21d1c967
GD
12226# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12227if test "${with_gtk_exec_prefix+set}" = set; then
12228 withval="$with_gtk_exec_prefix"
12229 gtk_config_exec_prefix="$withval"
12230else
12231 gtk_config_exec_prefix=""
a0b9e27f
MB
12232fi
12233
21d1c967
GD
12234# Check whether --enable-gtktest or --disable-gtktest was given.
12235if test "${enable_gtktest+set}" = set; then
12236 enableval="$enable_gtktest"
a0b9e27f 12237 :
21d1c967
GD
12238else
12239 enable_gtktest=yes
a0b9e27f
MB
12240fi
12241
21d1c967
GD
12242
12243 for module in . $GTK_MODULES
12244 do
12245 case "$module" in
a0b9e27f 12246 gthread)
21d1c967
GD
12247 gtk_config_args="$gtk_config_args gthread"
12248 ;;
12249 esac
12250 done
12251
12252 if test x$gtk_config_exec_prefix != x ; then
12253 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12254 if test x${GTK_CONFIG+set} != xset ; then
12255 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12256 fi
12257 fi
12258 if test x$gtk_config_prefix != x ; then
12259 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12260 if test x${GTK_CONFIG+set} != xset ; then
12261 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12262 fi
12263 fi
12264
12265 # Extract the first word of "gtk-config", so it can be a program name with args.
12266set dummy gtk-config; ac_word=$2
a0b9e27f 12267echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 12268echo "configure:12269: checking for $ac_word" >&5
a0b9e27f
MB
12269if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12271else
a0b9e27f
MB
12272 case "$GTK_CONFIG" in
12273 /*)
21d1c967
GD
12274 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12275 ;;
a0b9e27f
MB
12276 ?:/*)
12277 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12278 ;;
21d1c967 12279 *)
a0b9e27f
MB
12280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12281 ac_dummy="$PATH"
12282 for ac_dir in $ac_dummy; do
12283 test -z "$ac_dir" && ac_dir=.
12284 if test -f $ac_dir/$ac_word; then
12285 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12286 break
12287 fi
12288 done
12289 IFS="$ac_save_ifs"
21d1c967
GD
12290 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12291 ;;
12292esac
12293fi
a0b9e27f 12294GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12295if test -n "$GTK_CONFIG"; then
a0b9e27f 12296 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12297else
a0b9e27f 12298 echo "$ac_t""no" 1>&6
21d1c967
GD
12299fi
12300
12301 min_gtk_version=1.2.7
a0b9e27f 12302 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e26c13cf 12303echo "configure:12304: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12304 no_gtk=""
12305 if test "$GTK_CONFIG" = "no" ; then
12306 no_gtk=yes
12307 else
12308 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12309 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12310 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12312 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12314 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12315 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12316 if test "x$enable_gtktest" = "xyes" ; then
12317 ac_save_CFLAGS="$CFLAGS"
12318 ac_save_LIBS="$LIBS"
12319 CFLAGS="$CFLAGS $GTK_CFLAGS"
12320 LIBS="$GTK_LIBS $LIBS"
12321 rm -f conf.gtktest
12322 if test "$cross_compiling" = yes; then
12323 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12324else
a0b9e27f 12325 cat > conftest.$ac_ext <<EOF
e26c13cf 12326#line 12327 "configure"
f79bd02d
JS
12327#include "confdefs.h"
12328
21d1c967
GD
12329#include <gtk/gtk.h>
12330#include <stdio.h>
12331#include <stdlib.h>
f79bd02d 12332
a0b9e27f 12333int
21d1c967
GD
12334main ()
12335{
12336 int major, minor, micro;
12337 char *tmp_version;
12338
12339 system ("touch conf.gtktest");
12340
12341 /* HP/UX 9 (%@#!) writes to sscanf strings */
12342 tmp_version = g_strdup("$min_gtk_version");
12343 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12344 printf("%s, bad version string\n", "$min_gtk_version");
12345 exit(1);
12346 }
90dd450c 12347
21d1c967
GD
12348 if ((gtk_major_version != $gtk_config_major_version) ||
12349 (gtk_minor_version != $gtk_config_minor_version) ||
12350 (gtk_micro_version != $gtk_config_micro_version))
12351 {
a0b9e27f 12352 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12353 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12354 gtk_major_version, gtk_minor_version, gtk_micro_version);
12355 printf ("*** was found! If gtk-config was correct, then it is best\n");
12356 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12357 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12358 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12359 printf("*** required on your system.\n");
12360 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12361 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12362 printf("*** before re-running configure\n");
a0b9e27f 12363 }
21d1c967
GD
12364#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12365 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12366 (gtk_minor_version != GTK_MINOR_VERSION) ||
12367 (gtk_micro_version != GTK_MICRO_VERSION))
12368 {
12369 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12370 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12371 printf("*** library (version %d.%d.%d)\n",
12372 gtk_major_version, gtk_minor_version, gtk_micro_version);
12373 }
12374#endif /* defined (GTK_MAJOR_VERSION) ... */
12375 else
12376 {
12377 if ((gtk_major_version > major) ||
12378 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12379 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12380 {
12381 return 0;
12382 }
12383 else
12384 {
12385 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12386 gtk_major_version, gtk_minor_version, gtk_micro_version);
12387 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12388 major, minor, micro);
12389 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12390 printf("***\n");
12391 printf("*** If you have already installed a sufficiently new version, this error\n");
12392 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12393 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12394 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12395 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12396 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12397 printf("*** so that the correct libraries are found at run-time))\n");
12398 }
12399 }
12400 return 1;
12401}
12402
a0b9e27f 12403EOF
e26c13cf 12404if { (eval echo configure:12405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12405then
21d1c967
GD
12406 :
12407else
a0b9e27f
MB
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12410 rm -fr conftest*
12411 no_gtk=yes
21d1c967 12412fi
a0b9e27f 12413rm -fr conftest*
21d1c967 12414fi
a0b9e27f 12415
21d1c967
GD
12416 CFLAGS="$ac_save_CFLAGS"
12417 LIBS="$ac_save_LIBS"
12418 fi
12419 fi
12420 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12421 echo "$ac_t""yes" 1>&6
12422 wx_cv_lib_gtk=1.2.7
21d1c967 12423 else
a0b9e27f 12424 echo "$ac_t""no" 1>&6
21d1c967
GD
12425 if test "$GTK_CONFIG" = "no" ; then
12426 echo "*** The gtk-config script installed by GTK could not be found"
12427 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12428 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12429 echo "*** full path to gtk-config."
12430 else
12431 if test -f conf.gtktest ; then
12432 :
12433 else
12434 echo "*** Could not run GTK test program, checking why..."
12435 CFLAGS="$CFLAGS $GTK_CFLAGS"
12436 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12437 cat > conftest.$ac_ext <<EOF
e26c13cf 12438#line 12439 "configure"
21d1c967
GD
12439#include "confdefs.h"
12440
12441#include <gtk/gtk.h>
12442#include <stdio.h>
12443
a0b9e27f
MB
12444int main() {
12445 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12446; return 0; }
12447EOF
e26c13cf 12448if { (eval echo configure:12449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12449 rm -rf conftest*
21d1c967
GD
12450 echo "*** The test program compiled, but did not run. This usually means"
12451 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12452 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12453 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12454 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12455 echo "*** is required on your system"
12456 echo "***"
12457 echo "*** If you have an old version installed, it is best to remove it, although"
12458 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12459 echo "***"
12460 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12461 echo "*** came with the system with the command"
12462 echo "***"
a0b9e27f 12463 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12464else
a0b9e27f
MB
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -rf conftest*
12468 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12469 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12470 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12471 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12472fi
a0b9e27f 12473rm -f conftest*
21d1c967
GD
12474 CFLAGS="$ac_save_CFLAGS"
12475 LIBS="$ac_save_LIBS"
12476 fi
12477 fi
12478 GTK_CFLAGS=""
12479 GTK_LIBS=""
12480 :
12481 fi
a0b9e27f
MB
12482
12483
21d1c967
GD
12484 rm -f conf.gtktest
12485
12486 fi
12487
12488 if test -z "$wx_cv_lib_gtk"; then
a0b9e27f 12489 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12490if test "${with_gtk_prefix+set}" = set; then
12491 withval="$with_gtk_prefix"
12492 gtk_config_prefix="$withval"
12493else
12494 gtk_config_prefix=""
a0b9e27f 12495fi
f79bd02d 12496
21d1c967
GD
12497# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12498if test "${with_gtk_exec_prefix+set}" = set; then
12499 withval="$with_gtk_exec_prefix"
12500 gtk_config_exec_prefix="$withval"
12501else
12502 gtk_config_exec_prefix=""
a0b9e27f
MB
12503fi
12504
21d1c967
GD
12505# Check whether --enable-gtktest or --disable-gtktest was given.
12506if test "${enable_gtktest+set}" = set; then
12507 enableval="$enable_gtktest"
a0b9e27f 12508 :
90dd450c 12509else
21d1c967 12510 enable_gtktest=yes
a0b9e27f
MB
12511fi
12512
21d1c967
GD
12513
12514 for module in . $GTK_MODULES
12515 do
12516 case "$module" in
a0b9e27f 12517 gthread)
21d1c967
GD
12518 gtk_config_args="$gtk_config_args gthread"
12519 ;;
12520 esac
12521 done
12522
12523 if test x$gtk_config_exec_prefix != x ; then
12524 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12525 if test x${GTK_CONFIG+set} != xset ; then
12526 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12527 fi
12528 fi
12529 if test x$gtk_config_prefix != x ; then
12530 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12531 if test x${GTK_CONFIG+set} != xset ; then
12532 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12533 fi
12534 fi
12535
12536 # Extract the first word of "gtk-config", so it can be a program name with args.
12537set dummy gtk-config; ac_word=$2
a0b9e27f 12538echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 12539echo "configure:12540: checking for $ac_word" >&5
a0b9e27f
MB
12540if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12542else
a0b9e27f
MB
12543 case "$GTK_CONFIG" in
12544 /*)
21d1c967
GD
12545 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12546 ;;
a0b9e27f
MB
12547 ?:/*)
12548 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12549 ;;
21d1c967 12550 *)
a0b9e27f
MB
12551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12552 ac_dummy="$PATH"
12553 for ac_dir in $ac_dummy; do
12554 test -z "$ac_dir" && ac_dir=.
12555 if test -f $ac_dir/$ac_word; then
12556 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12557 break
12558 fi
12559 done
12560 IFS="$ac_save_ifs"
21d1c967
GD
12561 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12562 ;;
12563esac
12564fi
a0b9e27f 12565GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12566if test -n "$GTK_CONFIG"; then
a0b9e27f 12567 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12568else
a0b9e27f 12569 echo "$ac_t""no" 1>&6
21d1c967
GD
12570fi
12571
12572 min_gtk_version=1.2.3
a0b9e27f 12573 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e26c13cf 12574echo "configure:12575: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12575 no_gtk=""
12576 if test "$GTK_CONFIG" = "no" ; then
12577 no_gtk=yes
12578 else
12579 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12580 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12581 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12583 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12584 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12585 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12586 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12587 if test "x$enable_gtktest" = "xyes" ; then
12588 ac_save_CFLAGS="$CFLAGS"
12589 ac_save_LIBS="$LIBS"
12590 CFLAGS="$CFLAGS $GTK_CFLAGS"
12591 LIBS="$GTK_LIBS $LIBS"
12592 rm -f conf.gtktest
12593 if test "$cross_compiling" = yes; then
12594 echo $ac_n "cross compiling; assumed OK... $ac_c"
12595else
a0b9e27f 12596 cat > conftest.$ac_ext <<EOF
e26c13cf 12597#line 12598 "configure"
f79bd02d 12598#include "confdefs.h"
21d1c967
GD
12599
12600#include <gtk/gtk.h>
12601#include <stdio.h>
12602#include <stdlib.h>
12603
a0b9e27f 12604int
21d1c967
GD
12605main ()
12606{
12607 int major, minor, micro;
12608 char *tmp_version;
12609
12610 system ("touch conf.gtktest");
12611
12612 /* HP/UX 9 (%@#!) writes to sscanf strings */
12613 tmp_version = g_strdup("$min_gtk_version");
12614 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12615 printf("%s, bad version string\n", "$min_gtk_version");
12616 exit(1);
12617 }
12618
12619 if ((gtk_major_version != $gtk_config_major_version) ||
12620 (gtk_minor_version != $gtk_config_minor_version) ||
12621 (gtk_micro_version != $gtk_config_micro_version))
12622 {
a0b9e27f 12623 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12624 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12625 gtk_major_version, gtk_minor_version, gtk_micro_version);
12626 printf ("*** was found! If gtk-config was correct, then it is best\n");
12627 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12628 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12629 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12630 printf("*** required on your system.\n");
12631 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12632 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12633 printf("*** before re-running configure\n");
a0b9e27f 12634 }
21d1c967
GD
12635#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12636 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12637 (gtk_minor_version != GTK_MINOR_VERSION) ||
12638 (gtk_micro_version != GTK_MICRO_VERSION))
12639 {
12640 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12641 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12642 printf("*** library (version %d.%d.%d)\n",
12643 gtk_major_version, gtk_minor_version, gtk_micro_version);
12644 }
12645#endif /* defined (GTK_MAJOR_VERSION) ... */
12646 else
12647 {
12648 if ((gtk_major_version > major) ||
12649 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12650 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12651 {
12652 return 0;
12653 }
12654 else
12655 {
12656 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12657 gtk_major_version, gtk_minor_version, gtk_micro_version);
12658 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12659 major, minor, micro);
12660 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12661 printf("***\n");
12662 printf("*** If you have already installed a sufficiently new version, this error\n");
12663 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12664 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12665 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12666 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12667 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12668 printf("*** so that the correct libraries are found at run-time))\n");
12669 }
12670 }
12671 return 1;
12672}
12673
a0b9e27f 12674EOF
e26c13cf 12675if { (eval echo configure:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12676then
21d1c967
GD
12677 :
12678else
a0b9e27f
MB
12679 echo "configure: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 rm -fr conftest*
12682 no_gtk=yes
21d1c967 12683fi
a0b9e27f 12684rm -fr conftest*
21d1c967 12685fi
a0b9e27f 12686
21d1c967
GD
12687 CFLAGS="$ac_save_CFLAGS"
12688 LIBS="$ac_save_LIBS"
12689 fi
12690 fi
12691 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12692 echo "$ac_t""yes" 1>&6
12693 wx_cv_lib_gtk=1.2.3
21d1c967 12694 else
a0b9e27f 12695 echo "$ac_t""no" 1>&6
21d1c967
GD
12696 if test "$GTK_CONFIG" = "no" ; then
12697 echo "*** The gtk-config script installed by GTK could not be found"
12698 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12699 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12700 echo "*** full path to gtk-config."
12701 else
12702 if test -f conf.gtktest ; then
12703 :
12704 else
12705 echo "*** Could not run GTK test program, checking why..."
12706 CFLAGS="$CFLAGS $GTK_CFLAGS"
12707 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12708 cat > conftest.$ac_ext <<EOF
e26c13cf 12709#line 12710 "configure"
21d1c967
GD
12710#include "confdefs.h"
12711
12712#include <gtk/gtk.h>
12713#include <stdio.h>
f79bd02d 12714
a0b9e27f
MB
12715int main() {
12716 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12717; return 0; }
12718EOF
e26c13cf 12719if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12720 rm -rf conftest*
21d1c967
GD
12721 echo "*** The test program compiled, but did not run. This usually means"
12722 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12723 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12724 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12725 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12726 echo "*** is required on your system"
12727 echo "***"
12728 echo "*** If you have an old version installed, it is best to remove it, although"
12729 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12730 echo "***"
12731 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12732 echo "*** came with the system with the command"
12733 echo "***"
a0b9e27f 12734 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12735else
a0b9e27f
MB
12736 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 rm -rf conftest*
12739 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12740 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12741 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12742 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12743fi
a0b9e27f 12744rm -f conftest*
21d1c967
GD
12745 CFLAGS="$ac_save_CFLAGS"
12746 LIBS="$ac_save_LIBS"
12747 fi
12748 fi
12749 GTK_CFLAGS=""
12750 GTK_LIBS=""
12751 :
12752 fi
a0b9e27f
MB
12753
12754
21d1c967 12755 rm -f conf.gtktest
f79bd02d 12756
21d1c967
GD
12757 fi
12758
12759 if test -z "$wx_cv_lib_gtk"; then
12760 wx_cv_lib_gtk=none
12761 else
12762 wx_cv_cflags_gtk=$GTK_CFLAGS
12763 wx_cv_libs_gtk=$GTK_LIBS
12764 fi
a0b9e27f
MB
12765
12766
5c6fa7d2 12767fi
52127426 12768
8284b0c5 12769
21d1c967 12770 if test "$gtk_version_cached" = 1; then
a0b9e27f 12771 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
12772 fi
12773
12774 case "$wx_cv_lib_gtk" in
12775 2.0) WXGTK20=1
12776 ;;
12777 1.2.7) WXGTK127=1
12778 WXGTK12=1
12779 ;;
12780 1.2.3) WXGTK12=1
12781 ;;
a0b9e27f 12782 *) { echo "configure: error:
247f5006
VZ
12783Please check that gtk-config is in path, the directory
12784where GTK+ libraries are installed (returned by
12785'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12786equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 12787 " 1>&2; exit 1; }
21d1c967
GD
12788 ;;
12789 esac
12790
b13cd66e
VZ
12791 if test "$WXGTK20" = 1; then
12792 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 12793
f09359cf
VS
12794 succeeded=no
12795
12796 if test -z "$PKG_CONFIG"; then
12797 # Extract the first word of "pkg-config", so it can be a program name with args.
12798set dummy pkg-config; ac_word=$2
a0b9e27f 12799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 12800echo "configure:12801: checking for $ac_word" >&5
a0b9e27f
MB
12801if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12802 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 12803else
a0b9e27f
MB
12804 case "$PKG_CONFIG" in
12805 /*)
f09359cf
VS
12806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12807 ;;
a0b9e27f
MB
12808 ?:/*)
12809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12810 ;;
f09359cf 12811 *)
a0b9e27f
MB
12812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12813 ac_dummy="$PATH"
12814 for ac_dir in $ac_dummy; do
12815 test -z "$ac_dir" && ac_dir=.
12816 if test -f $ac_dir/$ac_word; then
12817 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12818 break
12819 fi
12820 done
12821 IFS="$ac_save_ifs"
f09359cf
VS
12822 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12823 ;;
12824esac
12825fi
a0b9e27f 12826PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 12827if test -n "$PKG_CONFIG"; then
a0b9e27f 12828 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 12829else
a0b9e27f 12830 echo "$ac_t""no" 1>&6
f09359cf
VS
12831fi
12832
12833 fi
12834
12835 if test "$PKG_CONFIG" = "no" ; then
12836 echo "*** The pkg-config script could not be found. Make sure it is"
12837 echo "*** in your path, or set the PKG_CONFIG environment variable"
12838 echo "*** to the full path to pkg-config."
12839 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12840 else
12841 PKG_CONFIG_MIN_VERSION=0.9.0
12842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 12843 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
e26c13cf 12844echo "configure:12845: checking for pangoft2" >&5
f09359cf
VS
12845
12846 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 12847 echo "$ac_t""yes" 1>&6
f09359cf
VS
12848 succeeded=yes
12849
a0b9e27f 12850 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
e26c13cf 12851echo "configure:12852: checking PANGOFT2_CFLAGS" >&5
f09359cf 12852 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 12853 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 12854
a0b9e27f 12855 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
e26c13cf 12856echo "configure:12857: checking PANGOFT2_LIBS" >&5
f09359cf 12857 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 12858 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
12859 else
12860 PANGOFT2_CFLAGS=""
12861 PANGOFT2_LIBS=""
a0b9e27f 12862 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
12863 ## do set a variable so people can do so.
12864 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 12865
f09359cf
VS
12866 fi
12867
a0b9e27f
MB
12868
12869
f09359cf
VS
12870 else
12871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12873 fi
12874 fi
12875
12876 if test $succeeded = yes; then
a0b9e27f 12877
b13cd66e
VZ
12878 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12879 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 12880
f09359cf 12881 else
a0b9e27f
MB
12882
12883 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 12884 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
12885
12886
f09359cf
VS
12887 fi
12888
b13cd66e 12889 fi
f09359cf
VS
12890 fi
12891
21d1c967
GD
12892 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12893 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12894
12895 AFMINSTALL=afminstall
12896 TOOLKIT=GTK
12897 GUIDIST=GTK_DIST
12898
a0b9e27f 12899 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
e26c13cf 12900echo "configure:12901: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
12901ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12902if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12904else
a0b9e27f 12905 ac_save_LIBS="$LIBS"
21d1c967 12906LIBS="-lgdk $LIBS"
a0b9e27f 12907cat > conftest.$ac_ext <<EOF
e26c13cf 12908#line 12909 "configure"
90dd450c 12909#include "confdefs.h"
5c6fa7d2 12910/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 12911/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12912 builtin and then its argument prototype would still apply. */
12913char gdk_im_open();
12914
12915int main() {
12916gdk_im_open()
12917; return 0; }
12918EOF
e26c13cf 12919if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12920 rm -rf conftest*
12921 eval "ac_cv_lib_$ac_lib_var=yes"
12922else
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 rm -rf conftest*
12926 eval "ac_cv_lib_$ac_lib_var=no"
12927fi
12928rm -f conftest*
12929LIBS="$ac_save_LIBS"
12930
12931fi
12932if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12933 echo "$ac_t""yes" 1>&6
12934 cat >> confdefs.h <<\EOF
21d1c967 12935#define HAVE_XIM 1
a0b9e27f 12936EOF
21d1c967 12937
a0b9e27f
MB
12938else
12939 echo "$ac_t""no" 1>&6
90dd450c 12940fi
1e6feb95 12941
21d1c967 12942 fi
1e6feb95 12943
21d1c967 12944 if test "$wxUSE_MGL" = 1; then
a0b9e27f 12945 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
e26c13cf 12946echo "configure:12947: checking for SciTech MGL library" >&5
21d1c967 12947 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
12948 echo "$ac_t""not found" 1>&6
12949 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 12950 else
a0b9e27f 12951 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
12952 fi
12953
12954 case "${host}" in
12955 *-*-linux* )
12956 mgl_os=linux/gcc/glibc
12957 ;;
12958 *-pc-msdosdjgpp )
12959 mgl_os=dos32/dj2
12960 ;;
12961 *)
a0b9e27f 12962 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 12963 esac
1e6feb95 12964
21d1c967 12965 mgl_lib_type=""
3fcdd07b 12966
21d1c967
GD
12967 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12968 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12969 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12970 mgl_lib_type=debug
12971 fi
12972 fi
12973 if test "x$mgl_lib_type" = x ; then
12974 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12975 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12976 mgl_lib_type=release
12977 else
a0b9e27f 12978 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
21d1c967 12979 fi
90dd450c 12980 fi
2224580a 12981
1d1b75ac
VZ
12982 wxUSE_UNIVERSAL="yes"
12983
21d1c967
GD
12984 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12985 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12986
90dd450c 12987 AFMINSTALL=afminstall
21d1c967
GD
12988 TOOLKIT=MGL
12989 GUIDIST=MGL_DIST
12990 fi
dad6c0ea 12991
21d1c967 12992 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 12993 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
e26c13cf 12994echo "configure:12995: checking for MicroWindows" >&5
21d1c967 12995 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
12996 echo "$ac_t""not found" 1>&6
12997 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 12998 else
a0b9e27f 12999 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13000 fi
f6bcfd97 13001
21d1c967 13002 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13003 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13004 else
a0b9e27f 13005 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13006 fi
0b2effe9 13007
21d1c967
GD
13008 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13009 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13010
1d1b75ac
VZ
13011 wxUSE_UNIVERSAL="yes"
13012
21d1c967
GD
13013 AFMINSTALL=afminstall
13014 TOOLKIT=MICROWIN
13015 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13016
13017 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13018 fi
f6bcfd97 13019
21d1c967 13020 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13021 # If we find X, set shell vars x_includes and x_libraries to the
13022# paths, otherwise set no_x=yes.
13023# Uses ac_ vars as temps to allow command line to override cache and checks.
13024# --without-x overrides everything else, but does not touch the cache.
13025echo $ac_n "checking for X""... $ac_c" 1>&6
e26c13cf 13026echo "configure:13027: checking for X" >&5
d8356fa3 13027
21d1c967
GD
13028# Check whether --with-x or --without-x was given.
13029if test "${with_x+set}" = set; then
13030 withval="$with_x"
a0b9e27f
MB
13031 :
13032fi
2224580a 13033
21d1c967
GD
13034# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13035if test "x$with_x" = xno; then
13036 # The user explicitly disabled X.
13037 have_x=disabled
13038else
13039 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13040 # Both variables are already set.
13041 have_x=yes
13042 else
a0b9e27f
MB
13043if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13044 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13045else
13046 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13047ac_x_includes=NO ac_x_libraries=NO
13048rm -fr conftestdir
13049if mkdir conftestdir; then
13050 cd conftestdir
21d1c967 13051 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13052 cat > Imakefile <<'EOF'
21d1c967
GD
13053acfindx:
13054 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13055EOF
21d1c967
GD
13056 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13057 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13058 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13059 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13060 for ac_extension in a so sl; do
13061 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13062 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13063 ac_im_usrlibdir=$ac_im_libdir; break
13064 fi
13065 done
13066 # Screen out bogus values from the imake configuration. They are
13067 # bogus both because they are the default anyway, and because
13068 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13069 case "$ac_im_incroot" in
21d1c967 13070 /usr/include) ;;
a0b9e27f 13071 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13072 esac
a0b9e27f 13073 case "$ac_im_usrlibdir" in
21d1c967 13074 /usr/lib | /lib) ;;
a0b9e27f 13075 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13076 esac
13077 fi
13078 cd ..
a0b9e27f 13079 rm -fr conftestdir
21d1c967 13080fi
10f2d63a 13081
a0b9e27f
MB
13082if test "$ac_x_includes" = NO; then
13083 # Guess where to find include files, by looking for this one X11 .h file.
13084 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13085
21d1c967 13086 # First, try using that file with no special directory specified.
a0b9e27f 13087cat > conftest.$ac_ext <<EOF
e26c13cf 13088#line 13089 "configure"
21d1c967 13089#include "confdefs.h"
a0b9e27f
MB
13090#include <$x_direct_test_include>
13091EOF
13092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 13093{ (eval echo configure:13094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13095if test -z "$ac_err"; then
13096 rm -rf conftest*
21d1c967
GD
13097 # We can compile using X headers with no special include directory.
13098ac_x_includes=
90dd450c 13099else
a0b9e27f
MB
13100 echo "$ac_err" >&5
13101 echo "configure: failed program was:" >&5
90dd450c 13102 cat conftest.$ac_ext >&5
a0b9e27f
MB
13103 rm -rf conftest*
13104 # Look for the header file in a standard set of common directories.
13105# Check X11 before X11Rn because it is often a symlink to the current release.
13106 for ac_dir in \
13107 /usr/X11/include \
13108 /usr/X11R6/include \
13109 /usr/X11R5/include \
13110 /usr/X11R4/include \
13111 \
13112 /usr/include/X11 \
13113 /usr/include/X11R6 \
13114 /usr/include/X11R5 \
13115 /usr/include/X11R4 \
13116 \
13117 /usr/local/X11/include \
13118 /usr/local/X11R6/include \
13119 /usr/local/X11R5/include \
13120 /usr/local/X11R4/include \
13121 \
13122 /usr/local/include/X11 \
13123 /usr/local/include/X11R6 \
13124 /usr/local/include/X11R5 \
13125 /usr/local/include/X11R4 \
13126 \
13127 /usr/X386/include \
13128 /usr/x386/include \
13129 /usr/XFree86/include/X11 \
13130 \
13131 /usr/include \
13132 /usr/local/include \
13133 /usr/unsupported/include \
13134 /usr/athena/include \
13135 /usr/local/x11r5/include \
13136 /usr/lpp/Xamples/include \
13137 \
13138 /usr/openwin/include \
13139 /usr/openwin/share/include \
13140 ; \
13141 do
13142 if test -r "$ac_dir/$x_direct_test_include"; then
13143 ac_x_includes=$ac_dir
13144 break
13145 fi
13146 done
3a922bb4 13147fi
a0b9e27f
MB
13148rm -f conftest*
13149fi # $ac_x_includes = NO
10f2d63a 13150
a0b9e27f 13151if test "$ac_x_libraries" = NO; then
21d1c967 13152 # Check for the libraries.
a0b9e27f
MB
13153
13154 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13155 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13156
21d1c967
GD
13157 # See if we find them without any special options.
13158 # Don't add to $LIBS permanently.
a0b9e27f
MB
13159 ac_save_LIBS="$LIBS"
13160 LIBS="-l$x_direct_test_library $LIBS"
13161cat > conftest.$ac_ext <<EOF
e26c13cf 13162#line 13163 "configure"
3a922bb4 13163#include "confdefs.h"
a0b9e27f
MB
13164
13165int main() {
13166${x_direct_test_function}()
13167; return 0; }
13168EOF
e26c13cf 13169if { (eval echo configure:13170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13170 rm -rf conftest*
13171 LIBS="$ac_save_LIBS"
21d1c967
GD
13172# We can link X programs with no special library path.
13173ac_x_libraries=
3a922bb4 13174else
a0b9e27f
MB
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13177 rm -rf conftest*
13178 LIBS="$ac_save_LIBS"
13179# First see if replacing the include by lib works.
13180# Check X11 before X11Rn because it is often a symlink to the current release.
13181for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13182 /usr/X11/lib \
13183 /usr/X11R6/lib \
13184 /usr/X11R5/lib \
13185 /usr/X11R4/lib \
13186 \
13187 /usr/lib/X11 \
13188 /usr/lib/X11R6 \
13189 /usr/lib/X11R5 \
13190 /usr/lib/X11R4 \
13191 \
13192 /usr/local/X11/lib \
13193 /usr/local/X11R6/lib \
13194 /usr/local/X11R5/lib \
13195 /usr/local/X11R4/lib \
13196 \
13197 /usr/local/lib/X11 \
13198 /usr/local/lib/X11R6 \
13199 /usr/local/lib/X11R5 \
13200 /usr/local/lib/X11R4 \
13201 \
13202 /usr/X386/lib \
13203 /usr/x386/lib \
13204 /usr/XFree86/lib/X11 \
13205 \
13206 /usr/lib \
13207 /usr/local/lib \
13208 /usr/unsupported/lib \
13209 /usr/athena/lib \
13210 /usr/local/x11r5/lib \
13211 /usr/lpp/Xamples/lib \
13212 /lib/usr/lib/X11 \
13213 \
13214 /usr/openwin/lib \
13215 /usr/openwin/share/lib \
13216 ; \
21d1c967
GD
13217do
13218 for ac_extension in a so sl; do
a0b9e27f 13219 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13220 ac_x_libraries=$ac_dir
13221 break 2
13222 fi
13223 done
13224done
3a922bb4 13225fi
a0b9e27f
MB
13226rm -f conftest*
13227fi # $ac_x_libraries = NO
90dd450c 13228
a0b9e27f 13229if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13230 # Didn't find X anywhere. Cache the known absence of X.
13231 ac_cv_have_x="have_x=no"
13232else
13233 # Record where we found X for the cache.
13234 ac_cv_have_x="have_x=yes \
13235 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13236fi
21d1c967
GD
13237fi
13238 fi
13239 eval "$ac_cv_have_x"
13240fi # $with_x != no
90dd450c 13241
21d1c967 13242if test "$have_x" != yes; then
a0b9e27f 13243 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13244 no_x=yes
13245else
13246 # If each of the values was on the command line, it overrides each guess.
13247 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13248 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13249 # Update the cache value to reflect the command line values.
13250 ac_cv_have_x="have_x=yes \
13251 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13252 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13253fi
90dd450c 13254
21d1c967 13255if test "$no_x" = yes; then
90dd450c 13256 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13257 cat >> confdefs.h <<\EOF
90dd450c 13258#define X_DISPLAY_MISSING 1
a0b9e27f 13259EOF
90dd450c
VZ
13260
13261 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13262else
13263 if test -n "$x_includes"; then
13264 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13265 fi
3a922bb4 13266
90dd450c
VZ
13267 # It would also be nice to do this for all -L options, not just this one.
13268 if test -n "$x_libraries"; then
13269 X_LIBS="$X_LIBS -L$x_libraries"
13270 # For Solaris; some versions of Sun CC require a space after -R and
13271 # others require no space. Words are not sufficient . . . .
a0b9e27f 13272 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13273 "SunOS 5"*)
a0b9e27f 13274 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
e26c13cf 13275echo "configure:13276: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13276 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13277 cat > conftest.$ac_ext <<EOF
e26c13cf 13278#line 13279 "configure"
90dd450c
VZ
13279#include "confdefs.h"
13280
a0b9e27f 13281int main() {
90dd450c 13282
a0b9e27f
MB
13283; return 0; }
13284EOF
e26c13cf 13285if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13286 rm -rf conftest*
90dd450c 13287 ac_R_nospace=yes
3a922bb4 13288else
a0b9e27f
MB
13289 echo "configure: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13291 rm -rf conftest*
13292 ac_R_nospace=no
3a922bb4 13293fi
a0b9e27f 13294rm -f conftest*
90dd450c 13295 if test $ac_R_nospace = yes; then
a0b9e27f 13296 echo "$ac_t""no" 1>&6
90dd450c
VZ
13297 X_LIBS="$X_LIBS -R$x_libraries"
13298 else
13299 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13300 cat > conftest.$ac_ext <<EOF
e26c13cf 13301#line 13302 "configure"
90dd450c 13302#include "confdefs.h"
3a922bb4 13303
a0b9e27f 13304int main() {
6f754473 13305
a0b9e27f
MB
13306; return 0; }
13307EOF
e26c13cf 13308if { (eval echo configure:13309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13309 rm -rf conftest*
90dd450c
VZ
13310 ac_R_space=yes
13311else
a0b9e27f
MB
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13314 rm -rf conftest*
13315 ac_R_space=no
90dd450c 13316fi
a0b9e27f 13317rm -f conftest*
90dd450c 13318 if test $ac_R_space = yes; then
a0b9e27f 13319 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13320 X_LIBS="$X_LIBS -R $x_libraries"
13321 else
a0b9e27f 13322 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13323 fi
13324 fi
a0b9e27f 13325 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13326 esac
13327 fi
13328
13329 # Check for system-dependent libraries X programs must link with.
13330 # Do this before checking for the system-independent R6 libraries
13331 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13332
90dd450c
VZ
13333 if test "$ISC" = yes; then
13334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13335 else
a0b9e27f
MB
13336 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13337 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13338 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13339 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
e26c13cf 13340echo "configure:13341: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13341ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13342if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13343 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13344else
a0b9e27f 13345 ac_save_LIBS="$LIBS"
247f5006 13346LIBS="-ldnet $LIBS"
a0b9e27f 13347cat > conftest.$ac_ext <<EOF
e26c13cf 13348#line 13349 "configure"
247f5006 13349#include "confdefs.h"
247f5006 13350/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13351/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13352 builtin and then its argument prototype would still apply. */
13353char dnet_ntoa();
13354
13355int main() {
13356dnet_ntoa()
13357; return 0; }
13358EOF
e26c13cf 13359if { (eval echo configure:13360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13360 rm -rf conftest*
13361 eval "ac_cv_lib_$ac_lib_var=yes"
13362else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 rm -rf conftest*
13366 eval "ac_cv_lib_$ac_lib_var=no"
13367fi
13368rm -f conftest*
13369LIBS="$ac_save_LIBS"
13370
13371fi
13372if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13373 echo "$ac_t""yes" 1>&6
90dd450c 13374 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13375else
13376 echo "$ac_t""no" 1>&6
3a922bb4
RL
13377fi
13378
90dd450c 13379 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13380 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
e26c13cf 13381echo "configure:13382: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13382ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13383if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13385else
a0b9e27f 13386 ac_save_LIBS="$LIBS"
90dd450c 13387LIBS="-ldnet_stub $LIBS"
a0b9e27f 13388cat > conftest.$ac_ext <<EOF
e26c13cf 13389#line 13390 "configure"
90dd450c
VZ
13390#include "confdefs.h"
13391/* Override any gcc2 internal prototype to avoid an error. */
13392/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13393 builtin and then its argument prototype would still apply. */
13394char dnet_ntoa();
13395
13396int main() {
13397dnet_ntoa()
13398; return 0; }
13399EOF
e26c13cf 13400if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13401 rm -rf conftest*
13402 eval "ac_cv_lib_$ac_lib_var=yes"
13403else
13404 echo "configure: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13406 rm -rf conftest*
13407 eval "ac_cv_lib_$ac_lib_var=no"
13408fi
13409rm -f conftest*
13410LIBS="$ac_save_LIBS"
13411
13412fi
13413if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13414 echo "$ac_t""yes" 1>&6
90dd450c 13415 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13416else
13417 echo "$ac_t""no" 1>&6
3a922bb4
RL
13418fi
13419
90dd450c 13420 fi
978f1259 13421
90dd450c
VZ
13422 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13423 # to get the SysV transport functions.
a0b9e27f 13424 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13425 # needs -lnsl.
13426 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13427 # on Irix 5.2, according to dickey@clark.net.
13428 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
e26c13cf 13429echo "configure:13430: checking for gethostbyname" >&5
a0b9e27f
MB
13430if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13431 echo $ac_n "(cached) $ac_c" 1>&6
13432else
13433 cat > conftest.$ac_ext <<EOF
e26c13cf 13434#line 13435 "configure"
90dd450c
VZ
13435#include "confdefs.h"
13436/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13437 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13438#include <assert.h>
13439/* Override any gcc2 internal prototype to avoid an error. */
13440/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13441 builtin and then its argument prototype would still apply. */
13442char gethostbyname();
13443
13444int main() {
13445
90dd450c
VZ
13446/* The GNU C library defines this for functions which it implements
13447 to always fail with ENOSYS. Some functions are actually named
13448 something starting with __ and the normal name is an alias. */
13449#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13450choke me
13451#else
a0b9e27f 13452gethostbyname();
90dd450c 13453#endif
978f1259 13454
a0b9e27f
MB
13455; return 0; }
13456EOF
e26c13cf 13457if { (eval echo configure:13458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13458 rm -rf conftest*
13459 eval "ac_cv_func_gethostbyname=yes"
13460else
13461 echo "configure: failed program was:" >&5
13462 cat conftest.$ac_ext >&5
13463 rm -rf conftest*
13464 eval "ac_cv_func_gethostbyname=no"
13465fi
13466rm -f conftest*
13467fi
13468
13469if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13470 echo "$ac_t""yes" 1>&6
13471 :
13472else
13473 echo "$ac_t""no" 1>&6
13474fi
698dcdb6 13475
90dd450c 13476 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13477 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
e26c13cf 13478echo "configure:13479: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13479ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13481 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13482else
a0b9e27f 13483 ac_save_LIBS="$LIBS"
90dd450c 13484LIBS="-lnsl $LIBS"
a0b9e27f 13485cat > conftest.$ac_ext <<EOF
e26c13cf 13486#line 13487 "configure"
90dd450c
VZ
13487#include "confdefs.h"
13488/* Override any gcc2 internal prototype to avoid an error. */
13489/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13490 builtin and then its argument prototype would still apply. */
13491char gethostbyname();
5c6fa7d2 13492
a0b9e27f
MB
13493int main() {
13494gethostbyname()
13495; return 0; }
13496EOF
e26c13cf 13497if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13498 rm -rf conftest*
13499 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13500else
a0b9e27f
MB
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 rm -rf conftest*
13504 eval "ac_cv_lib_$ac_lib_var=no"
13505fi
13506rm -f conftest*
13507LIBS="$ac_save_LIBS"
247f5006 13508
a0b9e27f
MB
13509fi
13510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13511 echo "$ac_t""yes" 1>&6
13512 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13513else
13514 echo "$ac_t""no" 1>&6
90dd450c 13515fi
b12915c1 13516
90dd450c
VZ
13517 fi
13518
13519 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13520 # socket/setsockopt and other routines are undefined under SCO ODT
13521 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13522 # on later versions), says simon@lia.di.epfl.ch: it contains
13523 # gethostby* variants that don't use the nameserver (or something).
13524 # -lsocket must be given before -lnsl if both are needed.
13525 # We assume that if connect needs -lnsl, so does gethostbyname.
13526 echo $ac_n "checking for connect""... $ac_c" 1>&6
e26c13cf 13527echo "configure:13528: checking for connect" >&5
a0b9e27f
MB
13528if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13530else
13531 cat > conftest.$ac_ext <<EOF
e26c13cf 13532#line 13533 "configure"
55e80573 13533#include "confdefs.h"
90dd450c 13534/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13535 which can conflict with char connect(); below. */
90dd450c
VZ
13536#include <assert.h>
13537/* Override any gcc2 internal prototype to avoid an error. */
13538/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13539 builtin and then its argument prototype would still apply. */
13540char connect();
13541
13542int main() {
13543
90dd450c
VZ
13544/* The GNU C library defines this for functions which it implements
13545 to always fail with ENOSYS. Some functions are actually named
13546 something starting with __ and the normal name is an alias. */
13547#if defined (__stub_connect) || defined (__stub___connect)
13548choke me
13549#else
a0b9e27f 13550connect();
90dd450c
VZ
13551#endif
13552
a0b9e27f
MB
13553; return 0; }
13554EOF
e26c13cf 13555if { (eval echo configure:13556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13556 rm -rf conftest*
13557 eval "ac_cv_func_connect=yes"
13558else
13559 echo "configure: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 rm -rf conftest*
13562 eval "ac_cv_func_connect=no"
13563fi
13564rm -f conftest*
13565fi
13566
13567if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13568 echo "$ac_t""yes" 1>&6
13569 :
13570else
13571 echo "$ac_t""no" 1>&6
13572fi
55e80573 13573
90dd450c 13574 if test $ac_cv_func_connect = no; then
a0b9e27f 13575 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
e26c13cf 13576echo "configure:13577: checking for connect in -lsocket" >&5
a0b9e27f
MB
13577ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13578if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13579 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13580else
a0b9e27f 13581 ac_save_LIBS="$LIBS"
90dd450c 13582LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 13583cat > conftest.$ac_ext <<EOF
e26c13cf 13584#line 13585 "configure"
90dd450c
VZ
13585#include "confdefs.h"
13586/* Override any gcc2 internal prototype to avoid an error. */
13587/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13588 builtin and then its argument prototype would still apply. */
13589char connect();
13590
13591int main() {
13592connect()
13593; return 0; }
13594EOF
e26c13cf 13595if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13596 rm -rf conftest*
13597 eval "ac_cv_lib_$ac_lib_var=yes"
13598else
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 rm -rf conftest*
13602 eval "ac_cv_lib_$ac_lib_var=no"
13603fi
13604rm -f conftest*
13605LIBS="$ac_save_LIBS"
13606
13607fi
13608if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13609 echo "$ac_t""yes" 1>&6
90dd450c 13610 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
13611else
13612 echo "$ac_t""no" 1>&6
90dd450c 13613fi
77e13408 13614
90dd450c 13615 fi
25d0687a 13616
a0b9e27f
MB
13617 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13618 echo $ac_n "checking for remove""... $ac_c" 1>&6
e26c13cf 13619echo "configure:13620: checking for remove" >&5
a0b9e27f
MB
13620if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13621 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13622else
a0b9e27f 13623 cat > conftest.$ac_ext <<EOF
e26c13cf 13624#line 13625 "configure"
90dd450c
VZ
13625#include "confdefs.h"
13626/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13627 which can conflict with char remove(); below. */
90dd450c
VZ
13628#include <assert.h>
13629/* Override any gcc2 internal prototype to avoid an error. */
13630/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13631 builtin and then its argument prototype would still apply. */
13632char remove();
13633
13634int main() {
13635
90dd450c
VZ
13636/* The GNU C library defines this for functions which it implements
13637 to always fail with ENOSYS. Some functions are actually named
13638 something starting with __ and the normal name is an alias. */
13639#if defined (__stub_remove) || defined (__stub___remove)
13640choke me
13641#else
a0b9e27f 13642remove();
90dd450c 13643#endif
55e80573 13644
a0b9e27f
MB
13645; return 0; }
13646EOF
e26c13cf 13647if { (eval echo configure:13648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13648 rm -rf conftest*
13649 eval "ac_cv_func_remove=yes"
13650else
13651 echo "configure: failed program was:" >&5
13652 cat conftest.$ac_ext >&5
13653 rm -rf conftest*
13654 eval "ac_cv_func_remove=no"
13655fi
13656rm -f conftest*
13657fi
13658
13659if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13660 echo "$ac_t""yes" 1>&6
13661 :
13662else
13663 echo "$ac_t""no" 1>&6
13664fi
10f2d63a 13665
90dd450c 13666 if test $ac_cv_func_remove = no; then
a0b9e27f 13667 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
e26c13cf 13668echo "configure:13669: checking for remove in -lposix" >&5
a0b9e27f
MB
13669ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13671 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13672else
a0b9e27f 13673 ac_save_LIBS="$LIBS"
90dd450c 13674LIBS="-lposix $LIBS"
a0b9e27f 13675cat > conftest.$ac_ext <<EOF
e26c13cf 13676#line 13677 "configure"
90dd450c
VZ
13677#include "confdefs.h"
13678/* Override any gcc2 internal prototype to avoid an error. */
13679/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13680 builtin and then its argument prototype would still apply. */
13681char remove();
13682
13683int main() {
13684remove()
13685; return 0; }
13686EOF
e26c13cf 13687if { (eval echo configure:13688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13688 rm -rf conftest*
13689 eval "ac_cv_lib_$ac_lib_var=yes"
13690else
13691 echo "configure: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13693 rm -rf conftest*
13694 eval "ac_cv_lib_$ac_lib_var=no"
13695fi
13696rm -f conftest*
13697LIBS="$ac_save_LIBS"
13698
13699fi
13700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13701 echo "$ac_t""yes" 1>&6
90dd450c 13702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
13703else
13704 echo "$ac_t""no" 1>&6
90dd450c 13705fi
f6bcfd97 13706
6fa882bd
RR
13707 fi
13708
90dd450c 13709 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 13710 echo $ac_n "checking for shmat""... $ac_c" 1>&6
e26c13cf 13711echo "configure:13712: checking for shmat" >&5
a0b9e27f
MB
13712if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13713 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13714else
a0b9e27f 13715 cat > conftest.$ac_ext <<EOF
e26c13cf 13716#line 13717 "configure"
90dd450c
VZ
13717#include "confdefs.h"
13718/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13719 which can conflict with char shmat(); below. */
90dd450c
VZ
13720#include <assert.h>
13721/* Override any gcc2 internal prototype to avoid an error. */
13722/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13723 builtin and then its argument prototype would still apply. */
13724char shmat();
13725
13726int main() {
13727
90dd450c
VZ
13728/* The GNU C library defines this for functions which it implements
13729 to always fail with ENOSYS. Some functions are actually named
13730 something starting with __ and the normal name is an alias. */
13731#if defined (__stub_shmat) || defined (__stub___shmat)
13732choke me
13733#else
a0b9e27f 13734shmat();
90dd450c 13735#endif
10f2d63a 13736
a0b9e27f
MB
13737; return 0; }
13738EOF
e26c13cf 13739if { (eval echo configure:13740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13740 rm -rf conftest*
13741 eval "ac_cv_func_shmat=yes"
13742else
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13745 rm -rf conftest*
13746 eval "ac_cv_func_shmat=no"
13747fi
13748rm -f conftest*
13749fi
13750
13751if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13752 echo "$ac_t""yes" 1>&6
13753 :
13754else
13755 echo "$ac_t""no" 1>&6
13756fi
d08b457b 13757
90dd450c 13758 if test $ac_cv_func_shmat = no; then
a0b9e27f 13759 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
e26c13cf 13760echo "configure:13761: checking for shmat in -lipc" >&5
a0b9e27f
MB
13761ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13763 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 13764else
a0b9e27f 13765 ac_save_LIBS="$LIBS"
90dd450c 13766LIBS="-lipc $LIBS"
a0b9e27f 13767cat > conftest.$ac_ext <<EOF
e26c13cf 13768#line 13769 "configure"
90dd450c 13769#include "confdefs.h"
8284b0c5 13770/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 13771/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13772 builtin and then its argument prototype would still apply. */
13773char shmat();
13774
13775int main() {
13776shmat()
13777; return 0; }
13778EOF
e26c13cf 13779if { (eval echo configure:13780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13780 rm -rf conftest*
13781 eval "ac_cv_lib_$ac_lib_var=yes"
13782else
13783 echo "configure: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13785 rm -rf conftest*
13786 eval "ac_cv_lib_$ac_lib_var=no"
13787fi
13788rm -f conftest*
13789LIBS="$ac_save_LIBS"
13790
13791fi
13792if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13793 echo "$ac_t""yes" 1>&6
90dd450c 13794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
13795else
13796 echo "$ac_t""no" 1>&6
d08b457b
GD
13797fi
13798
d558c907 13799 fi
90dd450c 13800 fi
3a922bb4 13801
90dd450c 13802 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 13803 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
13804 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13805 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13806 # check for ICE first), but we must link in the order -lSM -lICE or
13807 # we get undefined symbols. So assume we have SM if we have ICE.
13808 # These have to be linked with before -lX11, unlike the other
13809 # libraries we check for below, so use a different variable.
a0b9e27f
MB
13810 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13811 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
e26c13cf 13812echo "configure:13813: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
13813ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816else
13817 ac_save_LIBS="$LIBS"
f09359cf 13818LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 13819cat > conftest.$ac_ext <<EOF
e26c13cf 13820#line 13821 "configure"
9cfadba2 13821#include "confdefs.h"
90dd450c
VZ
13822/* Override any gcc2 internal prototype to avoid an error. */
13823/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13824 builtin and then its argument prototype would still apply. */
13825char IceConnectionNumber();
13826
13827int main() {
13828IceConnectionNumber()
13829; return 0; }
13830EOF
e26c13cf 13831if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13832 rm -rf conftest*
13833 eval "ac_cv_lib_$ac_lib_var=yes"
13834else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 eval "ac_cv_lib_$ac_lib_var=no"
13839fi
13840rm -f conftest*
13841LIBS="$ac_save_LIBS"
13842
13843fi
13844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13845 echo "$ac_t""yes" 1>&6
90dd450c 13846 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
13847else
13848 echo "$ac_t""no" 1>&6
9cfadba2 13849fi
10f2d63a 13850
a0b9e27f 13851 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
13852
13853fi
13854
8284b0c5 13855
90dd450c 13856 if test "$no_x" = "yes"; then
a0b9e27f 13857 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
13858 fi
13859
13860 GUI_TK_LIBRARY="$X_LIBS"
13861 TOOLKIT_INCLUDE="$X_CFLAGS"
13862 AFMINSTALL=afminstall
13863 COMPILED_X_PROGRAM=0
13864
21d1c967 13865 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 13866 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
e26c13cf 13867echo "configure:13868: checking for MicroWindows/NanoX distribution" >&5
21d1c967 13868 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
13869 echo "$ac_t""not found" 1>&6
13870 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13871 else
a0b9e27f
MB
13872 echo "$ac_t""$MICROWIN" 1>&6
13873 cat >> confdefs.h <<\EOF
21d1c967 13874#define wxUSE_NANOX 1
a0b9e27f 13875EOF
21d1c967 13876
90dd450c
VZ
13877 fi
13878 fi
13879
13880 xpm_link=
a0b9e27f 13881 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e26c13cf 13882echo "configure:13883: checking for Xpm library" >&5
a0b9e27f 13883
90dd450c
VZ
13884ac_find_libraries=
13885for ac_dir in $SEARCH_LIB;
13886 do
13887 for ac_extension in a so sl dylib; do
13888 if test -f "$ac_dir/libXpm.$ac_extension"; then
13889 ac_find_libraries=$ac_dir
13890 break 2
13891 fi
13892 done
13893 done
13894
13895 if test "$ac_find_libraries" != "" ; then
a0b9e27f 13896
90dd450c
VZ
13897 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13898 result=$?
13899 if test $result = 0; then
13900 ac_path_to_link=""
13901 else
13902 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13903 fi
90dd450c 13904
21d1c967
GD
13905 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13906 xpm_link=" -lXpm"
a0b9e27f 13907 cat >> confdefs.h <<\EOF
21d1c967 13908#define wxHAVE_LIB_XPM 1
a0b9e27f 13909EOF
90dd450c 13910
a0b9e27f 13911 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 13912 else
a0b9e27f 13913 cat > conftest.$ac_ext <<EOF
e26c13cf 13914#line 13915 "configure"
21d1c967 13915#include "confdefs.h"
90dd450c 13916
21d1c967 13917 #include <X11/xpm.h>
a0b9e27f
MB
13918
13919int main() {
6f72b082 13920
21d1c967
GD
13921 int version;
13922 version = XpmLibraryVersion();
a0b9e27f
MB
13923
13924; return 0; }
13925EOF
e26c13cf 13926if { (eval echo configure:13927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
13927 rm -rf conftest*
13928
21d1c967 13929 xpm_link=" -lXpm"
a0b9e27f 13930 cat >> confdefs.h <<\EOF
21d1c967 13931#define wxHAVE_LIB_XPM 1
a0b9e27f 13932EOF
90dd450c 13933
a0b9e27f 13934 echo "$ac_t""found in default search path" 1>&6
21d1c967 13935 COMPILED_X_PROGRAM=0
a0b9e27f 13936
21d1c967 13937else
a0b9e27f
MB
13938 echo "configure: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13940 rm -rf conftest*
13941
13942 echo "$ac_t""no" 1>&6
13943 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13944
13945
6f72b082 13946fi
a0b9e27f 13947rm -f conftest*
21d1c967 13948 fi
90dd450c 13949
1d1b75ac
VZ
13950 wxUSE_UNIVERSAL="yes"
13951
21d1c967
GD
13952 if test "$wxUSE_NANOX" = "yes"; then
13953 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13954 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"
13955 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13956 else
13957 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13958 fi
6f72b082 13959
21d1c967
GD
13960 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13961 TOOLKIT=X11
13962 GUIDIST=X11_DIST
13963 fi
90dd450c 13964
21d1c967 13965 if test "$wxUSE_WINE" = 1; then
a0b9e27f
MB
13966 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13967echo $ac_n "checking for windows.h""... $ac_c" 1>&6
e26c13cf 13968echo "configure:13969: checking for windows.h" >&5
a0b9e27f
MB
13969if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13971else
13972 cat > conftest.$ac_ext <<EOF
e26c13cf 13973#line 13974 "configure"
247f5006
VZ
13974#include "confdefs.h"
13975#include <windows.h>
a0b9e27f
MB
13976EOF
13977ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 13978{ (eval echo configure:13979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13979ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13980if test -z "$ac_err"; then
13981 rm -rf conftest*
13982 eval "ac_cv_header_$ac_safe=yes"
13983else
13984 echo "$ac_err" >&5
13985 echo "configure: failed program was:" >&5
10f2d63a 13986 cat conftest.$ac_ext >&5
a0b9e27f
MB
13987 rm -rf conftest*
13988 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13989fi
a0b9e27f 13990rm -f conftest*
10f2d63a 13991fi
a0b9e27f
MB
13992if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13993 echo "$ac_t""yes" 1>&6
21d1c967
GD
13994 :
13995else
a0b9e27f 13996 echo "$ac_t""no" 1>&6
21d1c967 13997
a0b9e27f
MB
13998 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13999
5c6fa7d2 14000fi
7b4a847f 14001
5c6fa7d2 14002
8284b0c5 14003 xpm_link=
a0b9e27f 14004 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e26c13cf 14005echo "configure:14006: checking for Xpm library" >&5
a0b9e27f 14006
90dd450c
VZ
14007ac_find_libraries=
14008for ac_dir in $SEARCH_LIB;
14009 do
14010 for ac_extension in a so sl dylib; do
21d1c967 14011 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
14012 ac_find_libraries=$ac_dir
14013 break 2
14014 fi
14015 done
14016 done
14017
21d1c967
GD
14018 if test "$ac_find_libraries" != "" ; then
14019 GUI_TK_LIBRARY="-L$ac_find_libraries"
14020 xpm_link=" -lXpm"
a0b9e27f 14021 cat >> confdefs.h <<\EOF
21d1c967 14022#define wxHAVE_LIB_XPM 1
a0b9e27f 14023EOF
90dd450c 14024
a0b9e27f 14025 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14026 else
a0b9e27f
MB
14027 echo "$ac_t""no" 1>&6
14028 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
21d1c967
GD
14029 fi
14030
14031 mesa_link=
a0b9e27f 14032 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
e26c13cf 14033echo "configure:14034: checking for Mesa library" >&5
a0b9e27f 14034
90dd450c
VZ
14035ac_find_libraries=
14036for ac_dir in $SEARCH_LIB;
14037 do
14038 for ac_extension in a so sl dylib; do
14039 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14040 ac_find_libraries=$ac_dir
14041 break 2
14042 fi
14043 done
14044 done
14045
21d1c967
GD
14046 if test "$ac_find_libraries" != "" ; then
14047 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14048 mesa_link=" -lMesaGL"
a0b9e27f 14049 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14050 else
3bce6687
JS
14051 mesa_link=""
14052 echo "$ac_t""no" 1>&6
14053 echo "configure: warning: library will be compiled without Mesa support" 1>&2
21d1c967
GD
14054 fi
14055
14056 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14057 TOOLKIT=MSW
14058 GUIDIST=MSW_DIST
14059 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
14060 fi
14061
14062 if test "$wxUSE_MOTIF" = 1; then
14063 if test "$no_x" = yes; then
14064 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14065 cat >> confdefs.h <<\EOF
21d1c967 14066#define X_DISPLAY_MISSING 1
a0b9e27f 14067EOF
21d1c967
GD
14068
14069 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14070else
14071 if test -n "$x_includes"; then
14072 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14073 fi
14074
21d1c967
GD
14075 # It would also be nice to do this for all -L options, not just this one.
14076 if test -n "$x_libraries"; then
14077 X_LIBS="$X_LIBS -L$x_libraries"
14078 # For Solaris; some versions of Sun CC require a space after -R and
14079 # others require no space. Words are not sufficient . . . .
a0b9e27f 14080 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14081 "SunOS 5"*)
a0b9e27f 14082 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
e26c13cf 14083echo "configure:14084: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14084 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14085 cat > conftest.$ac_ext <<EOF
e26c13cf 14086#line 14087 "configure"
21d1c967
GD
14087#include "confdefs.h"
14088
a0b9e27f 14089int main() {
21d1c967 14090
a0b9e27f
MB
14091; return 0; }
14092EOF
e26c13cf 14093if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14094 rm -rf conftest*
21d1c967 14095 ac_R_nospace=yes
698dcdb6 14096else
a0b9e27f
MB
14097 echo "configure: failed program was:" >&5
14098 cat conftest.$ac_ext >&5
14099 rm -rf conftest*
14100 ac_R_nospace=no
10f2d63a 14101fi
a0b9e27f 14102rm -f conftest*
21d1c967 14103 if test $ac_R_nospace = yes; then
a0b9e27f 14104 echo "$ac_t""no" 1>&6
21d1c967
GD
14105 X_LIBS="$X_LIBS -R$x_libraries"
14106 else
14107 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14108 cat > conftest.$ac_ext <<EOF
e26c13cf 14109#line 14110 "configure"
21d1c967 14110#include "confdefs.h"
10f2d63a 14111
a0b9e27f 14112int main() {
f0c87536 14113
a0b9e27f
MB
14114; return 0; }
14115EOF
e26c13cf 14116if { (eval echo configure:14117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14117 rm -rf conftest*
21d1c967
GD
14118 ac_R_space=yes
14119else
a0b9e27f
MB
14120 echo "configure: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14122 rm -rf conftest*
14123 ac_R_space=no
21d1c967 14124fi
a0b9e27f 14125rm -f conftest*
21d1c967 14126 if test $ac_R_space = yes; then
a0b9e27f 14127 echo "$ac_t""yes" 1>&6
21d1c967
GD
14128 X_LIBS="$X_LIBS -R $x_libraries"
14129 else
a0b9e27f 14130 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14131 fi
14132 fi
a0b9e27f 14133 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14134 esac
14135 fi
90dd450c 14136
21d1c967
GD
14137 # Check for system-dependent libraries X programs must link with.
14138 # Do this before checking for the system-independent R6 libraries
14139 # (-lICE), since we may need -lsocket or whatever for X linking.
14140
14141 if test "$ISC" = yes; then
14142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14143 else
a0b9e27f
MB
14144 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14145 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14146 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14147 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
e26c13cf 14148echo "configure:14149: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14149ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14151 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14152else
a0b9e27f 14153 ac_save_LIBS="$LIBS"
247f5006 14154LIBS="-ldnet $LIBS"
a0b9e27f 14155cat > conftest.$ac_ext <<EOF
e26c13cf 14156#line 14157 "configure"
247f5006 14157#include "confdefs.h"
247f5006 14158/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14159/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14160 builtin and then its argument prototype would still apply. */
14161char dnet_ntoa();
14162
14163int main() {
14164dnet_ntoa()
14165; return 0; }
14166EOF
e26c13cf 14167if { (eval echo configure:14168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14168 rm -rf conftest*
14169 eval "ac_cv_lib_$ac_lib_var=yes"
14170else
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 rm -rf conftest*
14174 eval "ac_cv_lib_$ac_lib_var=no"
14175fi
14176rm -f conftest*
14177LIBS="$ac_save_LIBS"
14178
14179fi
14180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14181 echo "$ac_t""yes" 1>&6
21d1c967 14182 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14183else
14184 echo "$ac_t""no" 1>&6
0fb0dd83 14185fi
0fb0dd83 14186
21d1c967 14187 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14188 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
e26c13cf 14189echo "configure:14190: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14190ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14191if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14192 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14193else
a0b9e27f 14194 ac_save_LIBS="$LIBS"
21d1c967 14195LIBS="-ldnet_stub $LIBS"
a0b9e27f 14196cat > conftest.$ac_ext <<EOF
e26c13cf 14197#line 14198 "configure"
21d1c967
GD
14198#include "confdefs.h"
14199/* Override any gcc2 internal prototype to avoid an error. */
14200/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14201 builtin and then its argument prototype would still apply. */
14202char dnet_ntoa();
14203
14204int main() {
14205dnet_ntoa()
14206; return 0; }
14207EOF
e26c13cf 14208if { (eval echo configure:14209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14209 rm -rf conftest*
14210 eval "ac_cv_lib_$ac_lib_var=yes"
14211else
14212 echo "configure: failed program was:" >&5
14213 cat conftest.$ac_ext >&5
14214 rm -rf conftest*
14215 eval "ac_cv_lib_$ac_lib_var=no"
14216fi
14217rm -f conftest*
14218LIBS="$ac_save_LIBS"
14219
14220fi
14221if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14222 echo "$ac_t""yes" 1>&6
21d1c967 14223 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14224else
14225 echo "$ac_t""no" 1>&6
90dd450c
VZ
14226fi
14227
21d1c967 14228 fi
90dd450c 14229
21d1c967
GD
14230 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14231 # to get the SysV transport functions.
a0b9e27f 14232 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14233 # needs -lnsl.
14234 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14235 # on Irix 5.2, according to dickey@clark.net.
14236 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
e26c13cf 14237echo "configure:14238: checking for gethostbyname" >&5
a0b9e27f
MB
14238if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240else
14241 cat > conftest.$ac_ext <<EOF
e26c13cf 14242#line 14243 "configure"
21d1c967
GD
14243#include "confdefs.h"
14244/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14245 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14246#include <assert.h>
14247/* Override any gcc2 internal prototype to avoid an error. */
14248/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14249 builtin and then its argument prototype would still apply. */
14250char gethostbyname();
14251
14252int main() {
14253
21d1c967
GD
14254/* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14258choke me
14259#else
a0b9e27f 14260gethostbyname();
21d1c967 14261#endif
90dd450c 14262
a0b9e27f
MB
14263; return 0; }
14264EOF
e26c13cf 14265if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14266 rm -rf conftest*
14267 eval "ac_cv_func_gethostbyname=yes"
14268else
14269 echo "configure: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14271 rm -rf conftest*
14272 eval "ac_cv_func_gethostbyname=no"
14273fi
14274rm -f conftest*
14275fi
14276
14277if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14278 echo "$ac_t""yes" 1>&6
14279 :
14280else
14281 echo "$ac_t""no" 1>&6
14282fi
90dd450c 14283
21d1c967 14284 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14285 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
e26c13cf 14286echo "configure:14287: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14287ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14290else
a0b9e27f 14291 ac_save_LIBS="$LIBS"
21d1c967 14292LIBS="-lnsl $LIBS"
a0b9e27f 14293cat > conftest.$ac_ext <<EOF
e26c13cf 14294#line 14295 "configure"
21d1c967
GD
14295#include "confdefs.h"
14296/* Override any gcc2 internal prototype to avoid an error. */
14297/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14298 builtin and then its argument prototype would still apply. */
14299char gethostbyname();
5c6fa7d2 14300
a0b9e27f
MB
14301int main() {
14302gethostbyname()
14303; return 0; }
14304EOF
e26c13cf 14305if { (eval echo configure:14306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14306 rm -rf conftest*
14307 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14308else
a0b9e27f
MB
14309 echo "configure: failed program was:" >&5
14310 cat conftest.$ac_ext >&5
14311 rm -rf conftest*
14312 eval "ac_cv_lib_$ac_lib_var=no"
14313fi
14314rm -f conftest*
14315LIBS="$ac_save_LIBS"
247f5006 14316
a0b9e27f
MB
14317fi
14318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14319 echo "$ac_t""yes" 1>&6
14320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14321else
14322 echo "$ac_t""no" 1>&6
21d1c967 14323fi
90dd450c 14324
90dd450c
VZ
14325 fi
14326
21d1c967
GD
14327 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14328 # socket/setsockopt and other routines are undefined under SCO ODT
14329 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14330 # on later versions), says simon@lia.di.epfl.ch: it contains
14331 # gethostby* variants that don't use the nameserver (or something).
14332 # -lsocket must be given before -lnsl if both are needed.
14333 # We assume that if connect needs -lnsl, so does gethostbyname.
14334 echo $ac_n "checking for connect""... $ac_c" 1>&6
e26c13cf 14335echo "configure:14336: checking for connect" >&5
a0b9e27f
MB
14336if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14337 echo $ac_n "(cached) $ac_c" 1>&6
14338else
14339 cat > conftest.$ac_ext <<EOF
e26c13cf 14340#line 14341 "configure"
21d1c967
GD
14341#include "confdefs.h"
14342/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14343 which can conflict with char connect(); below. */
21d1c967
GD
14344#include <assert.h>
14345/* Override any gcc2 internal prototype to avoid an error. */
14346/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14347 builtin and then its argument prototype would still apply. */
14348char connect();
14349
14350int main() {
14351
21d1c967
GD
14352/* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355#if defined (__stub_connect) || defined (__stub___connect)
14356choke me
14357#else
a0b9e27f 14358connect();
21d1c967 14359#endif
90dd450c 14360
a0b9e27f
MB
14361; return 0; }
14362EOF
e26c13cf 14363if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14364 rm -rf conftest*
14365 eval "ac_cv_func_connect=yes"
14366else
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14369 rm -rf conftest*
14370 eval "ac_cv_func_connect=no"
14371fi
14372rm -f conftest*
14373fi
14374
14375if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14376 echo "$ac_t""yes" 1>&6
14377 :
14378else
14379 echo "$ac_t""no" 1>&6
14380fi
1f8ae82f 14381
21d1c967 14382 if test $ac_cv_func_connect = no; then
a0b9e27f 14383 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
e26c13cf 14384echo "configure:14385: checking for connect in -lsocket" >&5
a0b9e27f
MB
14385ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14386if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 14388else
a0b9e27f 14389 ac_save_LIBS="$LIBS"
21d1c967 14390LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14391cat > conftest.$ac_ext <<EOF
e26c13cf 14392#line 14393 "configure"
0fbb762e 14393#include "confdefs.h"
21d1c967
GD
14394/* Override any gcc2 internal prototype to avoid an error. */
14395/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14396 builtin and then its argument prototype would still apply. */
14397char connect();
14398
14399int main() {
14400connect()
14401; return 0; }
14402EOF
e26c13cf 14403if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14404 rm -rf conftest*
14405 eval "ac_cv_lib_$ac_lib_var=yes"
14406else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 eval "ac_cv_lib_$ac_lib_var=no"
14411fi
14412rm -f conftest*
14413LIBS="$ac_save_LIBS"
14414
14415fi
14416if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14417 echo "$ac_t""yes" 1>&6
21d1c967 14418 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14419else
14420 echo "$ac_t""no" 1>&6
21d1c967 14421fi
90dd450c 14422
21d1c967 14423 fi
90dd450c 14424
a0b9e27f
MB
14425 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14426 echo $ac_n "checking for remove""... $ac_c" 1>&6
e26c13cf 14427echo "configure:14428: checking for remove" >&5
a0b9e27f
MB
14428if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14429 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14430else
a0b9e27f 14431 cat > conftest.$ac_ext <<EOF
e26c13cf 14432#line 14433 "configure"
21d1c967
GD
14433#include "confdefs.h"
14434/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14435 which can conflict with char remove(); below. */
21d1c967
GD
14436#include <assert.h>
14437/* Override any gcc2 internal prototype to avoid an error. */
14438/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14439 builtin and then its argument prototype would still apply. */
14440char remove();
14441
14442int main() {
14443
21d1c967
GD
14444/* The GNU C library defines this for functions which it implements
14445 to always fail with ENOSYS. Some functions are actually named
14446 something starting with __ and the normal name is an alias. */
14447#if defined (__stub_remove) || defined (__stub___remove)
14448choke me
14449#else
a0b9e27f 14450remove();
21d1c967 14451#endif
90dd450c 14452
a0b9e27f
MB
14453; return 0; }
14454EOF
e26c13cf 14455if { (eval echo configure:14456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14456 rm -rf conftest*
14457 eval "ac_cv_func_remove=yes"
14458else
14459 echo "configure: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14461 rm -rf conftest*
14462 eval "ac_cv_func_remove=no"
14463fi
14464rm -f conftest*
14465fi
14466
14467if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14468 echo "$ac_t""yes" 1>&6
14469 :
14470else
14471 echo "$ac_t""no" 1>&6
14472fi
90dd450c 14473
21d1c967 14474 if test $ac_cv_func_remove = no; then
a0b9e27f 14475 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
e26c13cf 14476echo "configure:14477: checking for remove in -lposix" >&5
a0b9e27f
MB
14477ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14478if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14479 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14480else
a0b9e27f 14481 ac_save_LIBS="$LIBS"
21d1c967 14482LIBS="-lposix $LIBS"
a0b9e27f 14483cat > conftest.$ac_ext <<EOF
e26c13cf 14484#line 14485 "configure"
21d1c967
GD
14485#include "confdefs.h"
14486/* Override any gcc2 internal prototype to avoid an error. */
14487/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14488 builtin and then its argument prototype would still apply. */
14489char remove();
14490
14491int main() {
14492remove()
14493; return 0; }
14494EOF
e26c13cf 14495if { (eval echo configure:14496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14496 rm -rf conftest*
14497 eval "ac_cv_lib_$ac_lib_var=yes"
14498else
14499 echo "configure: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14501 rm -rf conftest*
14502 eval "ac_cv_lib_$ac_lib_var=no"
14503fi
14504rm -f conftest*
14505LIBS="$ac_save_LIBS"
14506
14507fi
14508if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14509 echo "$ac_t""yes" 1>&6
21d1c967 14510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14511else
14512 echo "$ac_t""no" 1>&6
21d1c967 14513fi
19bc6aad 14514
90dd450c 14515 fi
19bc6aad 14516
21d1c967 14517 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14518 echo $ac_n "checking for shmat""... $ac_c" 1>&6
e26c13cf 14519echo "configure:14520: checking for shmat" >&5
a0b9e27f
MB
14520if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14522else
a0b9e27f 14523 cat > conftest.$ac_ext <<EOF
e26c13cf 14524#line 14525 "configure"
21d1c967
GD
14525#include "confdefs.h"
14526/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14527 which can conflict with char shmat(); below. */
21d1c967
GD
14528#include <assert.h>
14529/* Override any gcc2 internal prototype to avoid an error. */
14530/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14531 builtin and then its argument prototype would still apply. */
14532char shmat();
14533
14534int main() {
14535
21d1c967
GD
14536/* The GNU C library defines this for functions which it implements
14537 to always fail with ENOSYS. Some functions are actually named
14538 something starting with __ and the normal name is an alias. */
14539#if defined (__stub_shmat) || defined (__stub___shmat)
14540choke me
14541#else
a0b9e27f 14542shmat();
21d1c967 14543#endif
90dd450c 14544
a0b9e27f
MB
14545; return 0; }
14546EOF
e26c13cf 14547if { (eval echo configure:14548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14548 rm -rf conftest*
14549 eval "ac_cv_func_shmat=yes"
14550else
14551 echo "configure: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 rm -rf conftest*
14554 eval "ac_cv_func_shmat=no"
14555fi
14556rm -f conftest*
14557fi
14558
14559if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14560 echo "$ac_t""yes" 1>&6
14561 :
14562else
14563 echo "$ac_t""no" 1>&6
14564fi
19bc6aad 14565
21d1c967 14566 if test $ac_cv_func_shmat = no; then
a0b9e27f 14567 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
e26c13cf 14568echo "configure:14569: checking for shmat in -lipc" >&5
a0b9e27f
MB
14569ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14571 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 14572else
a0b9e27f 14573 ac_save_LIBS="$LIBS"
5c6fa7d2 14574LIBS="-lipc $LIBS"
a0b9e27f 14575cat > conftest.$ac_ext <<EOF
e26c13cf 14576#line 14577 "configure"
5c6fa7d2 14577#include "confdefs.h"
5c6fa7d2 14578/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 14579/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14580 builtin and then its argument prototype would still apply. */
14581char shmat();
14582
14583int main() {
14584shmat()
14585; return 0; }
14586EOF
e26c13cf 14587if { (eval echo configure:14588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14588 rm -rf conftest*
14589 eval "ac_cv_lib_$ac_lib_var=yes"
14590else
14591 echo "configure: failed program was:" >&5
14592 cat conftest.$ac_ext >&5
14593 rm -rf conftest*
14594 eval "ac_cv_lib_$ac_lib_var=no"
14595fi
14596rm -f conftest*
14597LIBS="$ac_save_LIBS"
14598
14599fi
14600if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14601 echo "$ac_t""yes" 1>&6
21d1c967 14602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14603else
14604 echo "$ac_t""no" 1>&6
9f8148b1 14605fi
90dd450c 14606
90dd450c 14607 fi
21d1c967 14608 fi
10f2d63a 14609
21d1c967 14610 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14611 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
14612 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14613 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14614 # check for ICE first), but we must link in the order -lSM -lICE or
14615 # we get undefined symbols. So assume we have SM if we have ICE.
14616 # These have to be linked with before -lX11, unlike the other
14617 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14618 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14619 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
e26c13cf 14620echo "configure:14621: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14621ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14623 echo $ac_n "(cached) $ac_c" 1>&6
14624else
14625 ac_save_LIBS="$LIBS"
f09359cf 14626LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14627cat > conftest.$ac_ext <<EOF
e26c13cf 14628#line 14629 "configure"
29fd3c0c 14629#include "confdefs.h"
21d1c967
GD
14630/* Override any gcc2 internal prototype to avoid an error. */
14631/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14632 builtin and then its argument prototype would still apply. */
14633char IceConnectionNumber();
14634
14635int main() {
14636IceConnectionNumber()
14637; return 0; }
14638EOF
e26c13cf 14639if { (eval echo configure:14640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14640 rm -rf conftest*
14641 eval "ac_cv_lib_$ac_lib_var=yes"
14642else
14643 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14645 rm -rf conftest*
14646 eval "ac_cv_lib_$ac_lib_var=no"
14647fi
14648rm -f conftest*
14649LIBS="$ac_save_LIBS"
14650
14651fi
14652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14653 echo "$ac_t""yes" 1>&6
21d1c967 14654 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14655else
14656 echo "$ac_t""no" 1>&6
29fd3c0c 14657fi
21d1c967 14658
a0b9e27f 14659 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14660
10f2d63a
VZ
14661fi
14662
8284b0c5 14663
21d1c967 14664 if test "$no_x" = "yes"; then
a0b9e27f 14665 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
14666 fi
14667
14668 GUI_TK_LIBRARY="$X_LIBS"
14669 TOOLKIT_INCLUDE="$X_CFLAGS"
14670 AFMINSTALL=afminstall
14671 COMPILED_X_PROGRAM=0
14672
a0b9e27f 14673 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
e26c13cf 14674echo "configure:14675: checking for Motif/Lesstif headers" >&5
a0b9e27f 14675
21d1c967
GD
14676ac_find_includes=
14677for ac_dir in $SEARCH_INCLUDE;
14678 do
14679 if test -f "$ac_dir/Xm/Xm.h"; then
14680 ac_find_includes=$ac_dir
14681 break
14682 fi
14683 done
14684
14685 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
14686 echo "$ac_t""found in $ac_find_includes" 1>&6
14687
dd0e4a90
VZ
14688 ac_path_to_include=$ac_find_includes
14689 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14690 result=$?
14691 if test $result = 0; then
14692 ac_path_to_include=""
14693 else
14694 ac_path_to_include=" -I$ac_find_includes"
14695 fi
14696
14697 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 14698 else
a0b9e27f 14699 cat > conftest.$ac_ext <<EOF
e26c13cf 14700#line 14701 "configure"
10f2d63a 14701#include "confdefs.h"
21d1c967
GD
14702
14703 #include <Xm/Xm.h>
a0b9e27f
MB
14704
14705int main() {
21d1c967
GD
14706
14707 int version;
14708 version = xmUseVersion;
a0b9e27f
MB
14709
14710; return 0; }
14711EOF
e26c13cf 14712if { (eval echo configure:14713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14713 rm -rf conftest*
14714
14715 echo "$ac_t""found in default search path" 1>&6
21d1c967 14716 COMPILED_X_PROGRAM=1
a0b9e27f 14717
10f2d63a 14718else
a0b9e27f
MB
14719 echo "configure: failed program was:" >&5
14720 cat conftest.$ac_ext >&5
14721 rm -rf conftest*
14722
14723 echo "$ac_t""no" 1>&6
14724 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14725
14726
10f2d63a 14727fi
a0b9e27f 14728rm -f conftest*
21d1c967 14729 fi
10f2d63a 14730
21d1c967 14731 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 14732 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
e26c13cf 14733echo "configure:14734: checking for Motif/Lesstif library" >&5
a0b9e27f 14734
21d1c967
GD
14735ac_find_libraries=
14736for ac_dir in $SEARCH_LIB;
14737 do
14738 for ac_extension in a so sl dylib; do
14739 if test -f "$ac_dir/libXm.$ac_extension"; then
14740 ac_find_libraries=$ac_dir
14741 break 2
14742 fi
14743 done
14744 done
14745
14746 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14747 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14748
a0b9e27f 14749
21d1c967
GD
14750 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14751 result=$?
14752 if test $result = 0; then
14753 ac_path_to_link=""
14754 else
14755 ac_path_to_link=" -L$ac_find_libraries"
14756 fi
14757
21d1c967 14758 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 14759 else
dd0e4a90
VZ
14760 save_CFLAGS=$CFLAGS
14761 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14762
a0b9e27f 14763 cat > conftest.$ac_ext <<EOF
e26c13cf 14764#line 14765 "configure"
d836ee96 14765#include "confdefs.h"
21d1c967
GD
14766
14767 #include <Xm/Xm.h>
a0b9e27f
MB
14768
14769int main() {
21d1c967
GD
14770
14771 int version;
14772 version = xmUseVersion;
a0b9e27f
MB
14773
14774; return 0; }
14775EOF
e26c13cf 14776if { (eval echo configure:14777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14777 rm -rf conftest*
14778
14779 echo "$ac_t""found in default search path" 1>&6
21d1c967 14780 COMPILED_X_PROGRAM=1
a0b9e27f 14781
d836ee96 14782else
a0b9e27f
MB
14783 echo "configure: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14785 rm -rf conftest*
14786
14787 echo "$ac_t""no" 1>&6
14788 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14789
14790
d836ee96 14791fi
a0b9e27f 14792rm -f conftest*
dd0e4a90
VZ
14793
14794 CFLAGS=$save_CFLAGS
21d1c967
GD
14795 fi
14796 fi
14797
14798 xpm_link=
a0b9e27f 14799 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e26c13cf 14800echo "configure:14801: checking for Xpm library" >&5
a0b9e27f 14801
21d1c967
GD
14802ac_find_libraries=
14803for ac_dir in $SEARCH_LIB;
14804 do
14805 for ac_extension in a so sl dylib; do
14806 if test -f "$ac_dir/libXpm.$ac_extension"; then
14807 ac_find_libraries=$ac_dir
14808 break 2
14809 fi
14810 done
14811 done
14812
14813 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14814
21d1c967
GD
14815 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14816 result=$?
14817 if test $result = 0; then
14818 ac_path_to_link=""
14819 else
14820 ac_path_to_link=" -L$ac_find_libraries"
14821 fi
14822
14823 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 14824
21d1c967 14825 xpm_link=" -lXpm"
a0b9e27f 14826 cat >> confdefs.h <<\EOF
21d1c967 14827#define wxHAVE_LIB_XPM 1
a0b9e27f 14828EOF
90dd450c 14829
a0b9e27f 14830 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14831 else
dd0e4a90
VZ
14832 save_CFLAGS=$CFLAGS
14833 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14834
a0b9e27f 14835 cat > conftest.$ac_ext <<EOF
e26c13cf 14836#line 14837 "configure"
d836ee96 14837#include "confdefs.h"
21d1c967
GD
14838
14839 #include <X11/xpm.h>
a0b9e27f
MB
14840
14841int main() {
21d1c967
GD
14842
14843 int version;
14844 version = XpmLibraryVersion();
a0b9e27f
MB
14845
14846; return 0; }
14847EOF
e26c13cf 14848if { (eval echo configure:14849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14849 rm -rf conftest*
14850
21d1c967 14851 xpm_link=" -lXpm"
a0b9e27f 14852 cat >> confdefs.h <<\EOF
21d1c967 14853#define wxHAVE_LIB_XPM 1
a0b9e27f 14854EOF
21d1c967 14855
a0b9e27f 14856 echo "$ac_t""found in default search path" 1>&6
21d1c967 14857 COMPILED_X_PROGRAM=0
a0b9e27f 14858
d836ee96 14859else
a0b9e27f
MB
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863
14864 echo "$ac_t""no" 1>&6
14865 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14866
14867
d836ee96 14868fi
a0b9e27f 14869rm -f conftest*
dd0e4a90
VZ
14870
14871 CFLAGS=$save_CFLAGS
21d1c967
GD
14872 fi
14873
a0b9e27f 14874 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
e26c13cf 14875echo "configure:14876: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
14876 libp_link=""
14877 libsm_ice_link=""
14878 libs_found=0
14879 for libp in "" " -lXp"; do
14880 if test "$libs_found" = "0"; then
14881 for libsm_ice in " -lSM -lICE"; do
e26c13cf 14882 if test "$libs_found" = "0"; then
6a30f1c8
MB
14883 save_LIBS="$LIBS"
14884 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
14885 save_CFLAGS=$CFLAGS
14886 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14887
a0b9e27f 14888 cat > conftest.$ac_ext <<EOF
e26c13cf 14889#line 14890 "configure"
6a30f1c8 14890#include "confdefs.h"
17234b26 14891
6a30f1c8
MB
14892 #include <Xm/Xm.h>
14893 #include <Xm/List.h>
a0b9e27f
MB
14894
14895int main() {
6a30f1c8
MB
14896
14897 XmString string = NULL;
14898 Widget w = NULL;
14899 int position = 0;
14900 XmListAddItem(w, string, position);
a0b9e27f
MB
14901
14902; return 0; }
14903EOF
e26c13cf 14904if { (eval echo configure:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14905 rm -rf conftest*
14906
6a30f1c8
MB
14907 libp_link="$libp"
14908 libsm_ice_link="$libsm_ice"
a0b9e27f 14909 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 14910 libs_found=1
a0b9e27f 14911
6a30f1c8 14912else
a0b9e27f
MB
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 rm -rf conftest*
14916
14917
6a30f1c8 14918fi
a0b9e27f 14919rm -f conftest*
dd0e4a90 14920
6a30f1c8 14921 LIBS="$save_LIBS"
dd0e4a90 14922 CFLAGS=$save_CFLAGS
6a30f1c8
MB
14923 fi
14924 done
14925 fi
14926 done
14927
14928 if test "$libs_found" = "0"; then
a0b9e27f
MB
14929 echo "$ac_t""can't find the right libraries" 1>&6
14930 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
14931 fi
14932
14933 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
14934 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14935 TOOLKIT=MOTIF
14936 GUIDIST=MOTIF_DIST
14937 fi
14938
14939 if test "$wxUSE_MAC" = 1; then
b2fee376 14940 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon"
21d1c967
GD
14941
14942 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14943 TOOLKIT=MAC
14944 GUIDIST=MACX_DIST
14945 fi
14946
14947 if test "$wxUSE_PM" = 1; then
14948 TOOLKIT=PM
14949 GUIDIST=GTK_DIST
14950 fi
14951
14952 if test "$TOOLKIT" = "PM" ; then
14953 TOOLKIT_DIR="os2"
14954 else
14955 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14956 fi
14957
14958 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14959
14960 if test "$wxUSE_UNIVERSAL" = "yes"; then
14961 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14962
14963 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14964 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14965
14966 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14967 if test "$wxUSE_X11" = 1; then
14968 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14969 else
14970 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14971 fi
14972 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14973 WIDGET_SET=univ
14974 else
14975 ALL_OBJECTS="\$(GUIOBJS)"
14976 ALL_SOURCES="\$(ALL_SOURCES)"
14977 ALL_HEADERS="\$(ALL_HEADERS)"
14978 fi
14979
14980 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14981
14982 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14983 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14984 fi
14985
14986 if test "$wxUSE_HTML" = "yes"; then
14987 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14988 fi
14989
14990 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14991 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14992 fi
14993 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14994 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14995 fi
14996 if test "$wxUSE_LIBPNG" = "builtin" ; then
14997 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14998 fi
14999
15000 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15001 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15002else
21d1c967
GD
15003 USE_GUI=0
15004
15005 TOOLKIT_DIR="base"
15006
15007 if test "$USE_WIN32" = 1 ; then
15008 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15009 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15010
15011 TOOLKIT="MSW"
15012 else
15013 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15014 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15015 fi
15016
15017 ALL_SOURCES="\$(ALL_SOURCES)"
15018 ALL_HEADERS="\$(ALL_HEADERS)"
15019
15020 PORT_FILES="\${top_srcdir}/src/files.lst"
15021
15022 GUIDIST="BASE_DIST"
15023 DISTDIR="wxBase"
d836ee96
VZ
15024fi
15025
8284b0c5 15026
21d1c967
GD
15027if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15028 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15029fi
21d1c967
GD
15030
15031if test "$wxUSE_REGEX" = "builtin" ; then
15032 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15033fi
21d1c967
GD
15034if test "$wxUSE_ZLIB" = "builtin" ; then
15035 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15036fi
15037
8284b0c5 15038
21d1c967
GD
15039if test "$wxUSE_OPENGL" = "yes"; then
15040 if test "$wxUSE_MAC" = 1; then
15041 OPENGL_LIBS="-framework OpenGL -framework AGL"
15042 elif test "$wxUSE_MSW" = 1; then
15043 OPENGL_LIBS="-lopengl32 -lglu32"
15044 else
a0b9e27f
MB
15045 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15046echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
e26c13cf 15047echo "configure:15048: checking for GL/gl.h" >&5
a0b9e27f
MB
15048if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15049 echo $ac_n "(cached) $ac_c" 1>&6
15050else
15051 cat > conftest.$ac_ext <<EOF
e26c13cf 15052#line 15053 "configure"
10f2d63a 15053#include "confdefs.h"
21d1c967 15054#include <GL/gl.h>
a0b9e27f
MB
15055EOF
15056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 15057{ (eval echo configure:15058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15059if test -z "$ac_err"; then
15060 rm -rf conftest*
15061 eval "ac_cv_header_$ac_safe=yes"
15062else
15063 echo "$ac_err" >&5
15064 echo "configure: failed program was:" >&5
698dcdb6 15065 cat conftest.$ac_ext >&5
a0b9e27f
MB
15066 rm -rf conftest*
15067 eval "ac_cv_header_$ac_safe=no"
703e0a69 15068fi
a0b9e27f 15069rm -f conftest*
698dcdb6 15070fi
a0b9e27f
MB
15071if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15072 echo "$ac_t""yes" 1>&6
15073
15074 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
e26c13cf 15075echo "configure:15076: checking for -lGL" >&5
a0b9e27f 15076
21d1c967
GD
15077ac_find_libraries=
15078for ac_dir in $SEARCH_LIB;
15079 do
15080 for ac_extension in a so sl dylib; do
15081 if test -f "$ac_dir/libGL.$ac_extension"; then
15082 ac_find_libraries=$ac_dir
15083 break 2
15084 fi
15085 done
15086 done
15087
15088 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15089
21d1c967
GD
15090 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15091 result=$?
15092 if test $result = 0; then
15093 ac_path_to_link=""
15094 else
15095 ac_path_to_link=" -L$ac_find_libraries"
15096 fi
15097
15098 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15099 LDFLAGS_GL="$LDFLAGS"
15100 else
15101 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15102 fi
15103 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15104 echo "$ac_t""yes" 1>&6
21d1c967 15105 else
a0b9e27f
MB
15106 echo "$ac_t""no" 1>&6
15107 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
e26c13cf 15108echo "configure:15109: checking for -lMesaGL" >&5
a0b9e27f 15109
21d1c967
GD
15110ac_find_libraries=
15111for ac_dir in $SEARCH_LIB;
15112 do
15113 for ac_extension in a so sl dylib; do
15114 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15115 ac_find_libraries=$ac_dir
15116 break 2
15117 fi
15118 done
15119 done
15120
15121 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15122
21d1c967
GD
15123 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15124 result=$?
15125 if test $result = 0; then
15126 ac_path_to_link=""
15127 else
15128 ac_path_to_link=" -L$ac_find_libraries"
15129 fi
15130
15131 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15132 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15133 echo "$ac_t""yes" 1>&6
21d1c967 15134 else
a0b9e27f 15135 echo "$ac_t""no" 1>&6
21d1c967
GD
15136 fi
15137 fi
a0b9e27f
MB
15138
15139else
15140 echo "$ac_t""no" 1>&6
5c6fa7d2 15141fi
52127426 15142
8284b0c5 15143
21d1c967 15144 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15145 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15146 fi
15147 fi
90dd450c 15148
21d1c967 15149 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15150 cat >> confdefs.h <<\EOF
21d1c967 15151#define wxUSE_OPENGL 1
a0b9e27f 15152EOF
21d1c967 15153
a0b9e27f 15154 cat >> confdefs.h <<\EOF
21d1c967 15155#define wxUSE_GLCANVAS 1
a0b9e27f 15156EOF
21d1c967
GD
15157
15158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15159 fi
10f2d63a 15160fi
21d1c967
GD
15161
15162if test -z "$TOOLKIT_VPATH" ; then
15163 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15164fi
21d1c967
GD
15165
15166if test -n "$TOOLKIT" ; then
15167 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15168fi
15169
15170lib_unicode_suffix=
15171if test "$wxUSE_UNICODE" = "yes"; then
15172 lib_unicode_suffix=u
90dd450c 15173fi
698dcdb6 15174
21d1c967
GD
15175lib_debug_suffix=
15176if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15177 lib_debug_suffix=d
15178fi
698dcdb6 15179
21d1c967
GD
15180TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15181TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15182
15183if test "$cross_compiling" = "yes"; then
15184 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15185 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15186fi
15187
15188WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15189WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15190
15191WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15192WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15193
15194WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15195WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15196WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15197WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15198
15199case "${host}" in
15200 *-*-cygwin* | *-*-mingw32* )
15201
a0b9e27f
MB
15202
15203
17234b26 15204 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15205 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15206 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15207 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15208 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15209 else
15210 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15211 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15212 fi
15213 ;;
15214
15215 *-*-darwin* )
15216 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 15217 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
15218 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15219 fi
15220 ;;
15221esac
15222
15223WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15224WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15225
15226WXCONFIG_LIBS="-l${WX_LIBRARY}"
15227WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15228
15229if test "$wxUSE_OPENGL" = "yes"; then
15230 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15231 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15232fi
15233
8284b0c5
MB
15234
15235
21d1c967
GD
15236if test "$wxUSE_SHARED" = "yes"; then
15237 case "${host}" in
15238 *-pc-os2_emx | *-pc-os2-emx | \
15239 *-pc-msdosdjgpp )
15240 wxUSE_SHARED=no
a0b9e27f 15241 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15242 ;;
15243 esac
15244fi
15245
15246if test "$wxUSE_SHARED" = "yes"; then
15247
15248 if test "$wxUSE_OPENGL" = "yes"; then
15249 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15250 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15251 else
15252 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15253 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15254 fi
15255
15256 if test "$GCC" = "yes"; then
15257 PIC_FLAG="-fPIC"
15258 fi
15259
15260 SHARED_LD="${CXX} -shared -o"
15261
15262 case "${host}" in
15263 *-hp-hpux* )
ad2622f1 15264 if test "$GCC" = "yes"; then
85d5e282 15265 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
15266 else
15267 LDFLAGS="$LDFLAGS -L/usr/lib"
15268
15269 SHARED_LD="${CXX} -b -o"
15270 PIC_FLAG="+Z"
15271 fi
15272
15273 if test "$wxUSE_OPENGL" = "yes"; then
15274 WX_ALL_INSTALLED="preinstall_gl"
15275 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15276 else
15277 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15278 fi
15279 ;;
15280
15281 *-*-linux* )
15282 if test "$GCC" != "yes"; then
a0b9e27f 15283 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
e26c13cf 15284echo "configure:15285: checking for Intel compiler" >&5
a0b9e27f
MB
15285if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15286 echo $ac_n "(cached) $ac_c" 1>&6
15287else
15288
15289 cat > conftest.$ac_ext <<EOF
e26c13cf 15290#line 15291 "configure"
698dcdb6 15291#include "confdefs.h"
90dd450c 15292
a0b9e27f 15293int main() {
90dd450c 15294
21d1c967
GD
15295 #ifndef __INTEL_COMPILER
15296 #error Not icc
15297 #endif
a0b9e27f
MB
15298
15299; return 0; }
15300EOF
e26c13cf 15301if { (eval echo configure:15302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15302 rm -rf conftest*
21d1c967 15303 wx_cv_prog_icc=yes
6232543b 15304else
a0b9e27f
MB
15305 echo "configure: failed program was:" >&5
15306 cat conftest.$ac_ext >&5
15307 rm -rf conftest*
15308 wx_cv_prog_icc=no
15309
5c6fa7d2 15310fi
a0b9e27f
MB
15311rm -f conftest*
15312
247f5006 15313fi
a0b9e27f
MB
15314
15315echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
15316 if test "$wx_cv_prog_icc" = "yes"; then
15317 PIC_FLAG="-KPIC"
15318 fi
15319 fi
15320
15321 if test "$wxUSE_SONAME" = "yes" ; then
15322 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15323 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15324 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15325 fi
15326 ;;
15327
15328 *-*-solaris2* )
15329 if test "$GCC" = yes ; then
15330 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15331 else
15332 SHARED_LD="${CXX} -G -o"
15333 PIC_FLAG="-KPIC"
15334 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15335 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15336 fi
15337 ;;
15338
15339 *-*-darwin* )
b2fee376
GD
15340 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
15341 CFLAGS="$CFLAGS -fno-common"
15342 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
15343 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15344 PIC_FLAG="-dynamic -fPIC"
15345 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15346 SONAME_FLAGS_GL=${SONAME_FLAGS}
15347 ;;
15348
15349 *-*-aix* )
321d2b14
VZ
15350 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15351set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 15352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 15353echo "configure:15354: checking for $ac_word" >&5
a0b9e27f
MB
15354if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15355 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
15356else
15357 if test -n "$AIX_CXX_LD"; then
15358 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15359else
a0b9e27f
MB
15360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15361 ac_dummy="$PATH"
15362 for ac_dir in $ac_dummy; do
15363 test -z "$ac_dir" && ac_dir=.
15364 if test -f $ac_dir/$ac_word; then
15365 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15366 break
15367 fi
15368 done
15369 IFS="$ac_save_ifs"
321d2b14
VZ
15370 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15371fi
15372fi
a0b9e27f 15373AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 15374if test -n "$AIX_CXX_LD"; then
a0b9e27f 15375 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 15376else
a0b9e27f 15377 echo "$ac_t""no" 1>&6
321d2b14
VZ
15378fi
15379
8284b0c5 15380
321d2b14 15381 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
15382 ;;
15383
15384 *-*-cygwin* | *-*-mingw32* )
15385
15386 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15387
15388 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15389 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15390
15391 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15392
15393 if test "$wxUSE_OPENGL" = "yes"; then
15394 WX_ALL_INSTALLED="preinstall_gl"
15395 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15396 else
15397 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15398 fi
15399 ;;
15400
15401 *-*-beos* )
15402 SHARED_LD="${LD} -shared -o"
15403 ;;
15404
15405 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15406 *-*-sunos4* | \
15407 *-*-irix5* | *-*-irix6* | \
15408 *-*-osf* | \
15409 *-*-dgux5* | \
15410 *-*-sysv5* )
15411 ;;
15412
15413 *)
a0b9e27f 15414 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
15415 esac
15416
15417 if test "x$WX_TARGET_LIBRARY" = "x"; then
15418 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15419 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15420 fi
15421
15422 WX_TARGET_LIBRARY_TYPE="so"
15423 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15424fi
10f2d63a 15425
21d1c967
GD
15426if test "$wxUSE_SHARED" = "no"; then
15427
15428 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15429 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15430 fi
15431
15432 if test "$wxUSE_MAC" = 1; then
15433 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15434 fi
15435
15436 if test "$wxUSE_OPENGL" = "yes"; then
15437 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15438 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15439 else
15440 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15441 fi
15442
15443 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15444 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15445
15446 WX_TARGET_LIBRARY_TYPE="a"
15447 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
15448
15449 STATIC_FLAG="yes"
15450else
15451 STATIC_FLAG="no"
90dd450c 15452fi
1e487827 15453
21d1c967
GD
15454if test "$wxUSE_MAC" = 1; then
15455 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15456 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15457 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15458 # Extract the first word of "Rez", so it can be a program name with args.
15459set dummy Rez; ac_word=$2
a0b9e27f 15460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 15461echo "configure:15462: checking for $ac_word" >&5
a0b9e27f
MB
15462if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15463 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15464else
21d1c967
GD
15465 if test -n "$RESCOMP"; then
15466 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15467else
a0b9e27f
MB
15468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15469 ac_dummy="$PATH"
15470 for ac_dir in $ac_dummy; do
15471 test -z "$ac_dir" && ac_dir=.
15472 if test -f $ac_dir/$ac_word; then
15473 ac_cv_prog_RESCOMP="Rez"
15474 break
15475 fi
15476 done
15477 IFS="$ac_save_ifs"
21d1c967 15478 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15479fi
b93d0d08 15480fi
a0b9e27f 15481RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 15482if test -n "$RESCOMP"; then
a0b9e27f 15483 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 15484else
a0b9e27f 15485 echo "$ac_t""no" 1>&6
90dd450c 15486fi
b93d0d08 15487
21d1c967
GD
15488 # Extract the first word of "DeRez", so it can be a program name with args.
15489set dummy DeRez; ac_word=$2
a0b9e27f 15490echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e26c13cf 15491echo "configure:15492: checking for $ac_word" >&5
a0b9e27f
MB
15492if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15494else
21d1c967
GD
15495 if test -n "$DEREZ"; then
15496 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15497else
a0b9e27f
MB
15498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15499 ac_dummy="$PATH"
15500 for ac_dir in $ac_dummy; do
15501 test -z "$ac_dir" && ac_dir=.
15502 if test -f $ac_dir/$ac_word; then
15503 ac_cv_prog_DEREZ="DeRez"
15504 break
15505 fi
15506 done
15507 IFS="$ac_save_ifs"
21d1c967 15508 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15509fi
90dd450c 15510fi
a0b9e27f 15511DEREZ="$ac_cv_prog_DEREZ"
21d1c967 15512if test -n "$DEREZ"; then
a0b9e27f 15513 echo "$ac_t""$DEREZ" 1>&6
90dd450c 15514else
a0b9e27f 15515 echo "$ac_t""no" 1>&6
3a922bb4 15516fi
698dcdb6 15517
21d1c967
GD
15518 MACOSX_BUNDLE="bundle"
15519 if test "$wxUSE_SHARED" = "yes"; then
15520 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15521 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15522 else
15523 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15524 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15525 fi
15526else
15527 if test "$wxUSE_PM" = 1; then
15528 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15529 fi
4f14bcd8 15530fi
10f2d63a 15531
8284b0c5 15532
a0b9e27f 15533echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
e26c13cf 15534echo "configure:15535: checking for ANSI C header files" >&5
a0b9e27f
MB
15535if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15536 echo $ac_n "(cached) $ac_c" 1>&6
52127426 15537else
a0b9e27f 15538 cat > conftest.$ac_ext <<EOF
e26c13cf 15539#line 15540 "configure"
52127426 15540#include "confdefs.h"
a0b9e27f
MB
15541#include <stdlib.h>
15542#include <stdarg.h>
15543#include <string.h>
15544#include <float.h>
15545EOF
15546ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 15547{ (eval echo configure:15548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15548ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15549if test -z "$ac_err"; then
15550 rm -rf conftest*
15551 ac_cv_header_stdc=yes
15552else
15553 echo "$ac_err" >&5
15554 echo "configure: failed program was:" >&5
15555 cat conftest.$ac_ext >&5
15556 rm -rf conftest*
15557 ac_cv_header_stdc=no
15558fi
15559rm -f conftest*
15560
15561if test $ac_cv_header_stdc = yes; then
15562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15563cat > conftest.$ac_ext <<EOF
e26c13cf 15564#line 15565 "configure"
a0b9e27f
MB
15565#include "confdefs.h"
15566#include <string.h>
15567EOF
15568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15569 egrep "memchr" >/dev/null 2>&1; then
15570 :
15571else
15572 rm -rf conftest*
15573 ac_cv_header_stdc=no
15574fi
15575rm -f conftest*
15576
15577fi
15578
15579if test $ac_cv_header_stdc = yes; then
15580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15581cat > conftest.$ac_ext <<EOF
e26c13cf 15582#line 15583 "configure"
a0b9e27f
MB
15583#include "confdefs.h"
15584#include <stdlib.h>
15585EOF
15586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15587 egrep "free" >/dev/null 2>&1; then
15588 :
7b4a847f 15589else
a0b9e27f
MB
15590 rm -rf conftest*
15591 ac_cv_header_stdc=no
52127426 15592fi
a0b9e27f
MB
15593rm -f conftest*
15594
52127426 15595fi
a0b9e27f
MB
15596
15597if test $ac_cv_header_stdc = yes; then
15598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15599if test "$cross_compiling" = yes; then
247f5006
VZ
15600 :
15601else
a0b9e27f 15602 cat > conftest.$ac_ext <<EOF
e26c13cf 15603#line 15604 "configure"
a0b9e27f
MB
15604#include "confdefs.h"
15605#include <ctype.h>
15606#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15607#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15609int main () { int i; for (i = 0; i < 256; i++)
15610if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15611exit (0); }
247f5006 15612
a0b9e27f 15613EOF
e26c13cf 15614if { (eval echo configure:15615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
15615then
15616 :
15617else
15618 echo "configure: failed program was:" >&5
15619 cat conftest.$ac_ext >&5
15620 rm -fr conftest*
15621 ac_cv_header_stdc=no
15622fi
15623rm -fr conftest*
15624fi
15625
15626fi
15627fi
15628
15629echo "$ac_t""$ac_cv_header_stdc" 1>&6
15630if test $ac_cv_header_stdc = yes; then
15631 cat >> confdefs.h <<\EOF
15632#define STDC_HEADERS 1
15633EOF
8284b0c5
MB
15634
15635fi
15636
a0b9e27f 15637echo $ac_n "checking for mode_t""... $ac_c" 1>&6
e26c13cf 15638echo "configure:15639: checking for mode_t" >&5
a0b9e27f
MB
15639if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15640 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 15641else
a0b9e27f 15642 cat > conftest.$ac_ext <<EOF
e26c13cf 15643#line 15644 "configure"
8284b0c5 15644#include "confdefs.h"
a0b9e27f
MB
15645#include <sys/types.h>
15646#if STDC_HEADERS
15647#include <stdlib.h>
15648#include <stddef.h>
8284b0c5 15649#endif
a0b9e27f
MB
15650EOF
15651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15652 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15653 rm -rf conftest*
15654 ac_cv_type_mode_t=yes
5c6fa7d2 15655else
a0b9e27f
MB
15656 rm -rf conftest*
15657 ac_cv_type_mode_t=no
15658fi
15659rm -f conftest*
15660
8284b0c5 15661fi
a0b9e27f
MB
15662echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15663if test $ac_cv_type_mode_t = no; then
15664 cat >> confdefs.h <<\EOF
15665#define mode_t int
15666EOF
15667
8284b0c5 15668fi
a0b9e27f
MB
15669
15670echo $ac_n "checking for off_t""... $ac_c" 1>&6
e26c13cf 15671echo "configure:15672: checking for off_t" >&5
a0b9e27f
MB
15672if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15673 echo $ac_n "(cached) $ac_c" 1>&6
15674else
15675 cat > conftest.$ac_ext <<EOF
e26c13cf 15676#line 15677 "configure"
a0b9e27f
MB
15677#include "confdefs.h"
15678#include <sys/types.h>
15679#if STDC_HEADERS
15680#include <stdlib.h>
15681#include <stddef.h>
15682#endif
15683EOF
15684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15685 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15686 rm -rf conftest*
15687 ac_cv_type_off_t=yes
247f5006 15688else
a0b9e27f
MB
15689 rm -rf conftest*
15690 ac_cv_type_off_t=no
15691fi
15692rm -f conftest*
247f5006 15693
a0b9e27f
MB
15694fi
15695echo "$ac_t""$ac_cv_type_off_t" 1>&6
15696if test $ac_cv_type_off_t = no; then
15697 cat >> confdefs.h <<\EOF
90dd450c 15698#define off_t long
a0b9e27f 15699EOF
10f2d63a 15700
90dd450c 15701fi
10f2d63a 15702
a0b9e27f 15703echo $ac_n "checking for pid_t""... $ac_c" 1>&6
e26c13cf 15704echo "configure:15705: checking for pid_t" >&5
a0b9e27f
MB
15705if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15706 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 15707else
a0b9e27f 15708 cat > conftest.$ac_ext <<EOF
e26c13cf 15709#line 15710 "configure"
10f2d63a 15710#include "confdefs.h"
a0b9e27f
MB
15711#include <sys/types.h>
15712#if STDC_HEADERS
15713#include <stdlib.h>
15714#include <stddef.h>
8284b0c5 15715#endif
a0b9e27f
MB
15716EOF
15717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15718 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15719 rm -rf conftest*
90dd450c 15720 ac_cv_type_pid_t=yes
698dcdb6 15721else
a0b9e27f
MB
15722 rm -rf conftest*
15723 ac_cv_type_pid_t=no
8284b0c5 15724fi
a0b9e27f 15725rm -f conftest*
247f5006 15726
a0b9e27f
MB
15727fi
15728echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15729if test $ac_cv_type_pid_t = no; then
15730 cat >> confdefs.h <<\EOF
90dd450c 15731#define pid_t int
a0b9e27f 15732EOF
10f2d63a 15733
7b4a847f
RR
15734fi
15735
a0b9e27f 15736echo $ac_n "checking for size_t""... $ac_c" 1>&6
e26c13cf 15737echo "configure:15738: checking for size_t" >&5
a0b9e27f
MB
15738if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15739 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 15740else
a0b9e27f 15741 cat > conftest.$ac_ext <<EOF
e26c13cf 15742#line 15743 "configure"
7b4a847f 15743#include "confdefs.h"
a0b9e27f
MB
15744#include <sys/types.h>
15745#if STDC_HEADERS
15746#include <stdlib.h>
15747#include <stddef.h>
8284b0c5 15748#endif
a0b9e27f
MB
15749EOF
15750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15751 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15752 rm -rf conftest*
90dd450c 15753 ac_cv_type_size_t=yes
18dbb1f6 15754else
a0b9e27f
MB
15755 rm -rf conftest*
15756 ac_cv_type_size_t=no
52127426 15757fi
a0b9e27f 15758rm -f conftest*
247f5006 15759
a0b9e27f
MB
15760fi
15761echo "$ac_t""$ac_cv_type_size_t" 1>&6
15762if test $ac_cv_type_size_t = no; then
15763 cat >> confdefs.h <<\EOF
90dd450c 15764#define size_t unsigned
a0b9e27f 15765EOF
90dd450c
VZ
15766
15767fi
15768
a0b9e27f 15769echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
e26c13cf 15770echo "configure:15771: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
15771if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 15773else
a0b9e27f 15774 cat > conftest.$ac_ext <<EOF
e26c13cf 15775#line 15776 "configure"
b3e8d00a 15776#include "confdefs.h"
90dd450c 15777#include <sys/types.h>
a0b9e27f 15778EOF
90dd450c
VZ
15779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15780 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 15781 rm -rf conftest*
90dd450c 15782 ac_cv_type_uid_t=yes
b3e8d00a 15783else
a0b9e27f 15784 rm -rf conftest*
90dd450c 15785 ac_cv_type_uid_t=no
b3e8d00a 15786fi
90dd450c 15787rm -f conftest*
b3e8d00a 15788
4f14bcd8 15789fi
247f5006 15790
a0b9e27f
MB
15791echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15792if test $ac_cv_type_uid_t = no; then
15793 cat >> confdefs.h <<\EOF
90dd450c 15794#define uid_t int
a0b9e27f 15795EOF
247f5006 15796
a0b9e27f 15797 cat >> confdefs.h <<\EOF
90dd450c 15798#define gid_t int
a0b9e27f 15799EOF
4f14bcd8 15800
b3e8d00a 15801fi
b3e8d00a 15802
8284b0c5
MB
15803
15804
a0b9e27f
MB
15805ac_ext=C
15806# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 15807ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
15808ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15809ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15810cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 15811
a0b9e27f 15812echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
e26c13cf 15813echo "configure:15814: checking if size_t is unsigned int" >&5
a0b9e27f
MB
15814if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15815 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 15816else
a0b9e27f 15817 cat > conftest.$ac_ext <<EOF
e26c13cf 15818#line 15819 "configure"
10f2d63a 15819#include "confdefs.h"
90dd450c 15820#include <stddef.h>
a0b9e27f 15821int main() {
90dd450c
VZ
15822
15823 return 0; }
15824
15825 struct Foo { void foo(size_t); void foo(unsigned int); };
15826
15827 int bar() {
a0b9e27f
MB
15828
15829; return 0; }
15830EOF
e26c13cf 15831if { (eval echo configure:15832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15832 rm -rf conftest*
90dd450c 15833 wx_cv_size_t_is_uint=no
698dcdb6 15834else
a0b9e27f
MB
15835 echo "configure: failed program was:" >&5
15836 cat conftest.$ac_ext >&5
15837 rm -rf conftest*
15838 wx_cv_size_t_is_uint=yes
15839
5c6fa7d2 15840fi
a0b9e27f 15841rm -f conftest*
8284b0c5 15842
247f5006 15843fi
a0b9e27f
MB
15844
15845echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15846
90dd450c 15847if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 15848 cat >> confdefs.h <<\EOF
90dd450c 15849#define wxSIZE_T_IS_UINT 1
a0b9e27f 15850EOF
698dcdb6 15851
90dd450c 15852else
a0b9e27f 15853 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
e26c13cf 15854echo "configure:15855: checking if size_t is unsigned long" >&5
a0b9e27f
MB
15855if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15856 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 15857else
a0b9e27f 15858 cat > conftest.$ac_ext <<EOF
e26c13cf 15859#line 15860 "configure"
10f2d63a 15860#include "confdefs.h"
90dd450c 15861#include <stddef.h>
a0b9e27f 15862int main() {
90dd450c
VZ
15863
15864 return 0; }
15865
15866 struct Foo { void foo(size_t); void foo(unsigned long); };
15867
15868 int bar() {
a0b9e27f
MB
15869
15870; return 0; }
15871EOF
e26c13cf 15872if { (eval echo configure:15873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15873 rm -rf conftest*
90dd450c 15874 wx_cv_size_t_is_ulong=no
698dcdb6 15875else
a0b9e27f
MB
15876 echo "configure: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 rm -rf conftest*
15879 wx_cv_size_t_is_ulong=yes
15880
5c6fa7d2 15881fi
a0b9e27f
MB
15882rm -f conftest*
15883
247f5006 15884fi
a0b9e27f
MB
15885
15886echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15887
90dd450c 15888 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 15889 cat >> confdefs.h <<\EOF
90dd450c 15890#define wxSIZE_T_IS_ULONG 1
a0b9e27f 15891EOF
4f14bcd8
GD
15892
15893 fi
90dd450c 15894fi
1e487827 15895
90dd450c 15896ac_ext=c
a0b9e27f 15897# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 15898ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
15899ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15900ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15901cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15902
5c6fa7d2 15903
8284b0c5 15904
a0b9e27f 15905echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
e26c13cf 15906echo "configure:15907: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
15907if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15908 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 15909else
a0b9e27f
MB
15910
15911 cat > conftest.$ac_ext <<EOF
e26c13cf 15912#line 15913 "configure"
4f14bcd8 15913#include "confdefs.h"
90dd450c 15914#include <pwd.h>
a0b9e27f 15915int main() {
f6bcfd97 15916
90dd450c
VZ
15917 char *p;
15918 struct passwd *pw;
15919 p = pw->pw_gecos;
a0b9e27f
MB
15920
15921; return 0; }
15922EOF
e26c13cf 15923if { (eval echo configure:15924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15924 rm -rf conftest*
15925
90dd450c 15926 wx_cv_struct_pw_gecos=yes
a0b9e27f 15927
10f2d63a 15928else
a0b9e27f
MB
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 rm -rf conftest*
15932
90dd450c 15933 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
15934
15935
5c6fa7d2 15936fi
a0b9e27f
MB
15937rm -f conftest*
15938
247f5006
VZ
15939
15940fi
a0b9e27f
MB
15941
15942echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15943
90dd450c 15944if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 15945 cat >> confdefs.h <<\EOF
90dd450c 15946#define HAVE_PW_GECOS 1
a0b9e27f 15947EOF
c521c494 15948
90dd450c 15949fi
4f14bcd8 15950
8284b0c5 15951
d29b553b 15952if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 15953 cat >> confdefs.h <<\EOF
d74f4b5a 15954#define wxUSE_WCHAR_T 1
a0b9e27f 15955EOF
d74f4b5a 15956
8284b0c5 15957
d74f4b5a
VZ
15958 WCSLEN_FOUND=0
15959 WCHAR_LINK=
a0b9e27f 15960 for ac_func in wcslen
7a30264c 15961do
a0b9e27f 15962echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 15963echo "configure:15964: checking for $ac_func" >&5
a0b9e27f
MB
15964if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15965 echo $ac_n "(cached) $ac_c" 1>&6
15966else
15967 cat > conftest.$ac_ext <<EOF
e26c13cf 15968#line 15969 "configure"
4f14bcd8 15969#include "confdefs.h"
7a30264c 15970/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15971 which can conflict with char $ac_func(); below. */
7a30264c 15972#include <assert.h>
4f14bcd8
GD
15973/* Override any gcc2 internal prototype to avoid an error. */
15974/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15975 builtin and then its argument prototype would still apply. */
15976char $ac_func();
15977
15978int main() {
15979
7a30264c
VZ
15980/* The GNU C library defines this for functions which it implements
15981 to always fail with ENOSYS. Some functions are actually named
15982 something starting with __ and the normal name is an alias. */
15983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15984choke me
15985#else
a0b9e27f 15986$ac_func();
7a30264c
VZ
15987#endif
15988
a0b9e27f
MB
15989; return 0; }
15990EOF
e26c13cf 15991if { (eval echo configure:15992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15992 rm -rf conftest*
15993 eval "ac_cv_func_$ac_func=yes"
15994else
15995 echo "configure: failed program was:" >&5
15996 cat conftest.$ac_ext >&5
15997 rm -rf conftest*
15998 eval "ac_cv_func_$ac_func=no"
15999fi
16000rm -f conftest*
16001fi
16002
16003if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16004 echo "$ac_t""yes" 1>&6
16005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16006 cat >> confdefs.h <<EOF
16007#define $ac_tr_func 1
16008EOF
d74f4b5a 16009 WCSLEN_FOUND=1
a0b9e27f
MB
16010else
16011 echo "$ac_t""no" 1>&6
7a30264c
VZ
16012fi
16013done
9d8deca0 16014
8284b0c5 16015
d74f4b5a 16016 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16017 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16018 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
e26c13cf 16019echo "configure:16020: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16020ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16021if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16022 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16023else
a0b9e27f 16024 ac_save_LIBS="$LIBS"
7a30264c 16025LIBS="-lmsvcrt $LIBS"
a0b9e27f 16026cat > conftest.$ac_ext <<EOF
e26c13cf 16027#line 16028 "configure"
10f2d63a 16028#include "confdefs.h"
4f14bcd8
GD
16029/* Override any gcc2 internal prototype to avoid an error. */
16030/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16031 builtin and then its argument prototype would still apply. */
16032char wcslen();
16033
16034int main() {
16035wcslen()
16036; return 0; }
16037EOF
e26c13cf 16038if { (eval echo configure:16039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16039 rm -rf conftest*
16040 eval "ac_cv_lib_$ac_lib_var=yes"
16041else
16042 echo "configure: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16044 rm -rf conftest*
16045 eval "ac_cv_lib_$ac_lib_var=no"
16046fi
16047rm -f conftest*
16048LIBS="$ac_save_LIBS"
16049
16050fi
16051if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16052 echo "$ac_t""yes" 1>&6
d74f4b5a 16053 WCHAR_OK=1
a0b9e27f
MB
16054else
16055 echo "$ac_t""no" 1>&6
d29b553b 16056fi
698dcdb6 16057
7a30264c 16058 else
a0b9e27f 16059 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
e26c13cf 16060echo "configure:16061: checking for wcslen in -lw" >&5
a0b9e27f
MB
16061ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16064else
a0b9e27f 16065 ac_save_LIBS="$LIBS"
7a30264c 16066LIBS="-lw $LIBS"
a0b9e27f 16067cat > conftest.$ac_ext <<EOF
e26c13cf 16068#line 16069 "configure"
95c8801c 16069#include "confdefs.h"
4f14bcd8
GD
16070/* Override any gcc2 internal prototype to avoid an error. */
16071/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16072 builtin and then its argument prototype would still apply. */
16073char wcslen();
52127426 16074
a0b9e27f
MB
16075int main() {
16076wcslen()
16077; return 0; }
16078EOF
e26c13cf 16079if { (eval echo configure:16080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16080 rm -rf conftest*
16081 eval "ac_cv_lib_$ac_lib_var=yes"
16082else
16083 echo "configure: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16085 rm -rf conftest*
16086 eval "ac_cv_lib_$ac_lib_var=no"
16087fi
16088rm -f conftest*
16089LIBS="$ac_save_LIBS"
16090
16091fi
16092if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16093 echo "$ac_t""yes" 1>&6
16094
7a30264c 16095 WCHAR_LINK=" -lw"
d74f4b5a 16096 WCSLEN_FOUND=1
a0b9e27f
MB
16097
16098else
16099 echo "$ac_t""no" 1>&6
4f14bcd8 16100fi
10f2d63a 16101
7a30264c 16102 fi
d29b553b 16103 fi
95c8801c 16104
d74f4b5a 16105 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16106 cat >> confdefs.h <<\EOF
d74f4b5a 16107#define HAVE_WCSLEN 1
a0b9e27f 16108EOF
10f2d63a 16109
d74f4b5a 16110 fi
52127426 16111
a0b9e27f 16112 for ac_func in wcsrtombs
eb4efbdc 16113do
a0b9e27f 16114echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16115echo "configure:16116: checking for $ac_func" >&5
a0b9e27f
MB
16116if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118else
16119 cat > conftest.$ac_ext <<EOF
e26c13cf 16120#line 16121 "configure"
eb4efbdc
VZ
16121#include "confdefs.h"
16122/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16123 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16124#include <assert.h>
16125/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16126/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16127 builtin and then its argument prototype would still apply. */
16128char $ac_func();
16129
16130int main() {
16131
10f2d63a
VZ
16132/* The GNU C library defines this for functions which it implements
16133 to always fail with ENOSYS. Some functions are actually named
16134 something starting with __ and the normal name is an alias. */
247f5006 16135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
16136choke me
16137#else
a0b9e27f 16138$ac_func();
10f2d63a
VZ
16139#endif
16140
a0b9e27f
MB
16141; return 0; }
16142EOF
e26c13cf 16143if { (eval echo configure:16144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16144 rm -rf conftest*
16145 eval "ac_cv_func_$ac_func=yes"
16146else
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16149 rm -rf conftest*
16150 eval "ac_cv_func_$ac_func=no"
16151fi
16152rm -f conftest*
16153fi
270a909e 16154
a0b9e27f
MB
16155if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16156 echo "$ac_t""yes" 1>&6
16157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16158 cat >> confdefs.h <<EOF
16159#define $ac_tr_func 1
16160EOF
16161
16162else
16163 echo "$ac_t""no" 1>&6
4f14bcd8 16164fi
247f5006 16165done
1e487827 16166
af15babd 16167else
a0b9e27f 16168 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 16169fi
52127426 16170
8284b0c5 16171
a0b9e27f
MB
16172ac_ext=C
16173# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16174ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16175ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16176ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16177cross_compiling=$ac_cv_prog_cxx_cross
af15babd 16178
247f5006
VZ
16179
16180for ac_func in vsnprintf
16181do
a0b9e27f 16182echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16183echo "configure:16184: checking for $ac_func" >&5
a0b9e27f
MB
16184if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16185 echo $ac_n "(cached) $ac_c" 1>&6
16186else
16187 cat > conftest.$ac_ext <<EOF
e26c13cf 16188#line 16189 "configure"
af15babd 16189#include "confdefs.h"
247f5006 16190/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16191 which can conflict with char $ac_func(); below. */
247f5006
VZ
16192#include <assert.h>
16193/* Override any gcc2 internal prototype to avoid an error. */
16194#ifdef __cplusplus
16195extern "C"
16196#endif
16197/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16198 builtin and then its argument prototype would still apply. */
16199char $ac_func();
16200
16201int main() {
16202
247f5006
VZ
16203/* The GNU C library defines this for functions which it implements
16204 to always fail with ENOSYS. Some functions are actually named
16205 something starting with __ and the normal name is an alias. */
16206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16207choke me
16208#else
a0b9e27f 16209$ac_func();
247f5006 16210#endif
af15babd 16211
a0b9e27f
MB
16212; return 0; }
16213EOF
e26c13cf 16214if { (eval echo configure:16215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16215 rm -rf conftest*
16216 eval "ac_cv_func_$ac_func=yes"
16217else
16218 echo "configure: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16220 rm -rf conftest*
16221 eval "ac_cv_func_$ac_func=no"
16222fi
16223rm -f conftest*
16224fi
52127426 16225
a0b9e27f
MB
16226if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16227 echo "$ac_t""yes" 1>&6
16228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16229 cat >> confdefs.h <<EOF
16230#define $ac_tr_func 1
16231EOF
16232
16233else
16234 echo "$ac_t""no" 1>&6
5c6fa7d2 16235fi
247f5006 16236done
8284b0c5 16237
4f14bcd8 16238
247f5006 16239if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 16240 for ac_func in fputwc wprintf vswprintf
d74f4b5a 16241do
a0b9e27f 16242echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16243echo "configure:16244: checking for $ac_func" >&5
a0b9e27f
MB
16244if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16245 echo $ac_n "(cached) $ac_c" 1>&6
16246else
16247 cat > conftest.$ac_ext <<EOF
e26c13cf 16248#line 16249 "configure"
d74f4b5a
VZ
16249#include "confdefs.h"
16250/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16251 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
16252#include <assert.h>
16253/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
16254#ifdef __cplusplus
16255extern "C"
16256#endif
d74f4b5a 16257/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16258 builtin and then its argument prototype would still apply. */
16259char $ac_func();
16260
16261int main() {
16262
d74f4b5a
VZ
16263/* The GNU C library defines this for functions which it implements
16264 to always fail with ENOSYS. Some functions are actually named
16265 something starting with __ and the normal name is an alias. */
16266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267choke me
16268#else
a0b9e27f 16269$ac_func();
d74f4b5a
VZ
16270#endif
16271
a0b9e27f
MB
16272; return 0; }
16273EOF
e26c13cf 16274if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16275 rm -rf conftest*
16276 eval "ac_cv_func_$ac_func=yes"
16277else
16278 echo "configure: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 rm -rf conftest*
16281 eval "ac_cv_func_$ac_func=no"
16282fi
16283rm -f conftest*
16284fi
d74f4b5a 16285
a0b9e27f
MB
16286if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16287 echo "$ac_t""yes" 1>&6
16288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16289 cat >> confdefs.h <<EOF
16290#define $ac_tr_func 1
16291EOF
16292
16293else
16294 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
16295fi
16296done
16297
16298fi
16299
247f5006 16300ac_ext=c
a0b9e27f 16301# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16302ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16303ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16304ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16305cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
16306
16307
16308
16309
4f14bcd8 16310if test "$TOOLKIT" != "MSW"; then
af15babd 16311
8284b0c5
MB
16312
16313
a0b9e27f
MB
16314ac_ext=C
16315# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16316ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16317ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16318ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16319cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 16320
52127426 16321
a0b9e27f
MB
16322
16323 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
16324if test "${with_libiconv_prefix+set}" = set; then
16325 withval="$with_libiconv_prefix"
a0b9e27f 16326
b040e242
VS
16327 for dir in `echo "$withval" | tr : ' '`; do
16328 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16329 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16330 done
a0b9e27f
MB
16331
16332fi
b040e242
VS
16333
16334
a0b9e27f 16335 echo $ac_n "checking for iconv""... $ac_c" 1>&6
e26c13cf 16336echo "configure:16337: checking for iconv" >&5
a0b9e27f
MB
16337if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16338 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16339else
a0b9e27f 16340
b040e242
VS
16341 am_cv_func_iconv="no, consider installing GNU libiconv"
16342 am_cv_lib_iconv=no
a0b9e27f 16343 cat > conftest.$ac_ext <<EOF
e26c13cf 16344#line 16345 "configure"
af15babd 16345#include "confdefs.h"
b040e242 16346#include <stdlib.h>
4f14bcd8 16347#include <iconv.h>
a0b9e27f 16348int main() {
b040e242
VS
16349iconv_t cd = iconv_open("","");
16350 iconv(cd,NULL,NULL,NULL,NULL);
16351 iconv_close(cd);
a0b9e27f
MB
16352; return 0; }
16353EOF
e26c13cf 16354if { (eval echo configure:16355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 16355 rm -rf conftest*
b040e242 16356 am_cv_func_iconv=yes
af15babd 16357else
a0b9e27f
MB
16358 echo "configure: failed program was:" >&5
16359 cat conftest.$ac_ext >&5
b040e242 16360fi
a0b9e27f 16361rm -f conftest*
b040e242
VS
16362 if test "$am_cv_func_iconv" != yes; then
16363 am_save_LIBS="$LIBS"
16364 LIBS="$LIBS -liconv"
a0b9e27f 16365 cat > conftest.$ac_ext <<EOF
e26c13cf 16366#line 16367 "configure"
b040e242
VS
16367#include "confdefs.h"
16368#include <stdlib.h>
16369#include <iconv.h>
a0b9e27f 16370int main() {
b040e242
VS
16371iconv_t cd = iconv_open("","");
16372 iconv(cd,NULL,NULL,NULL,NULL);
16373 iconv_close(cd);
a0b9e27f
MB
16374; return 0; }
16375EOF
e26c13cf 16376if { (eval echo configure:16377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 16377 rm -rf conftest*
b040e242
VS
16378 am_cv_lib_iconv=yes
16379 am_cv_func_iconv=yes
16380else
a0b9e27f
MB
16381 echo "configure: failed program was:" >&5
16382 cat conftest.$ac_ext >&5
af15babd 16383fi
a0b9e27f 16384rm -f conftest*
b040e242
VS
16385 LIBS="$am_save_LIBS"
16386 fi
a0b9e27f 16387
247f5006 16388fi
247f5006 16389
a0b9e27f
MB
16390echo "$ac_t""$am_cv_func_iconv" 1>&6
16391 if test "$am_cv_func_iconv" = yes; then
16392 cat >> confdefs.h <<\EOF
b040e242 16393#define HAVE_ICONV 1
a0b9e27f 16394EOF
b040e242 16395
a0b9e27f 16396 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
e26c13cf 16397echo "configure:16398: checking if iconv needs const" >&5
a0b9e27f
MB
16398if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16399 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 16400else
a0b9e27f 16401 cat > conftest.$ac_ext <<EOF
e26c13cf 16402#line 16403 "configure"
b040e242
VS
16403#include "confdefs.h"
16404
16405#include <stdlib.h>
16406#include <iconv.h>
16407extern
16408#ifdef __cplusplus
16409"C"
16410#endif
16411#if defined(__STDC__) || defined(__cplusplus)
16412size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16413#else
16414size_t iconv();
16415#endif
a0b9e27f
MB
16416
16417int main() {
af15babd 16418
a0b9e27f
MB
16419; return 0; }
16420EOF
e26c13cf 16421if { (eval echo configure:16422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16422 rm -rf conftest*
b7043674 16423 wx_cv_func_iconv_const="no"
b040e242 16424else
a0b9e27f
MB
16425 echo "configure: failed program was:" >&5
16426 cat conftest.$ac_ext >&5
16427 rm -rf conftest*
16428 wx_cv_func_iconv_const="yes"
16429
5c6fa7d2 16430fi
a0b9e27f
MB
16431rm -f conftest*
16432
247f5006 16433fi
a0b9e27f
MB
16434
16435echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
16436
16437 iconv_const=
1c405bb5 16438 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16439 iconv_const="const"
16440 fi
16441
a0b9e27f 16442 cat >> confdefs.h <<EOF
f09359cf 16443#define ICONV_CONST $iconv_const
a0b9e27f 16444EOF
b040e242
VS
16445
16446 fi
16447 LIBICONV=
16448 if test "$am_cv_lib_iconv" = yes; then
16449 LIBICONV="-liconv"
16450 fi
a0b9e27f 16451
b040e242
VS
16452
16453LIBS="$LIBICONV $LIBS"
4f14bcd8 16454ac_ext=c
a0b9e27f 16455# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16456ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16457ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16458ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16459cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 16460
5c6fa7d2 16461
8284b0c5 16462if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 16463 for ac_func in sigaction
af15babd 16464do
a0b9e27f 16465echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16466echo "configure:16467: checking for $ac_func" >&5
a0b9e27f
MB
16467if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16468 echo $ac_n "(cached) $ac_c" 1>&6
16469else
16470 cat > conftest.$ac_ext <<EOF
e26c13cf 16471#line 16472 "configure"
af15babd
VZ
16472#include "confdefs.h"
16473/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16474 which can conflict with char $ac_func(); below. */
af15babd
VZ
16475#include <assert.h>
16476/* Override any gcc2 internal prototype to avoid an error. */
16477/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16478 builtin and then its argument prototype would still apply. */
16479char $ac_func();
16480
16481int main() {
16482
af15babd
VZ
16483/* The GNU C library defines this for functions which it implements
16484 to always fail with ENOSYS. Some functions are actually named
16485 something starting with __ and the normal name is an alias. */
16486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16487choke me
16488#else
a0b9e27f 16489$ac_func();
af15babd
VZ
16490#endif
16491
a0b9e27f
MB
16492; return 0; }
16493EOF
e26c13cf 16494if { (eval echo configure:16495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16495 rm -rf conftest*
16496 eval "ac_cv_func_$ac_func=yes"
16497else
16498 echo "configure: failed program was:" >&5
16499 cat conftest.$ac_ext >&5
16500 rm -rf conftest*
16501 eval "ac_cv_func_$ac_func=no"
16502fi
16503rm -f conftest*
16504fi
7b4a847f 16505
a0b9e27f
MB
16506if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16507 echo "$ac_t""yes" 1>&6
16508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16509 cat >> confdefs.h <<EOF
16510#define $ac_tr_func 1
16511EOF
16512
16513else
16514 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16515fi
16516done
16517
8284b0c5 16518
4f14bcd8 16519 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 16520 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
16521 wxUSE_ON_FATAL_EXCEPTION=no
16522 fi
16523
16524 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
16525
16526 ac_ext=C
16527# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 16528ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16529ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16530ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16531cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 16532
5c6fa7d2 16533
a0b9e27f 16534 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
e26c13cf 16535echo "configure:16536: checking for sa_handler type" >&5
a0b9e27f
MB
16536if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16537 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16538else
a0b9e27f
MB
16539
16540 cat > conftest.$ac_ext <<EOF
e26c13cf 16541#line 16542 "configure"
af15babd 16542#include "confdefs.h"
4f14bcd8 16543#include <signal.h>
a0b9e27f 16544int main() {
4f14bcd8
GD
16545
16546 extern void testSigHandler(int);
16547
16548 struct sigaction sa;
16549 sa.sa_handler = testSigHandler;
a0b9e27f
MB
16550
16551; return 0; }
16552EOF
e26c13cf 16553if { (eval echo configure:16554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16554 rm -rf conftest*
16555
4f14bcd8 16556 wx_cv_type_sa_handler=int
a0b9e27f 16557
af15babd 16558else
a0b9e27f
MB
16559 echo "configure: failed program was:" >&5
16560 cat conftest.$ac_ext >&5
16561 rm -rf conftest*
16562
4f14bcd8 16563 wx_cv_type_sa_handler=void
a0b9e27f 16564
5c6fa7d2 16565fi
a0b9e27f
MB
16566rm -f conftest*
16567
247f5006 16568fi
a0b9e27f
MB
16569
16570echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
16571
16572 ac_ext=c
a0b9e27f 16573# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16574ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16575ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16576ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16577cross_compiling=$ac_cv_prog_cc_cross
579d8138 16578
8284b0c5 16579
a0b9e27f 16580 cat >> confdefs.h <<EOF
4f14bcd8 16581#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 16582EOF
af15babd 16583
4f14bcd8
GD
16584 fi
16585fi
af15babd 16586
a1d22ad7 16587for ac_func in mkstemp mktemp
af15babd 16588do
a0b9e27f 16589echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16590echo "configure:16591: checking for $ac_func" >&5
a0b9e27f
MB
16591if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16592 echo $ac_n "(cached) $ac_c" 1>&6
16593else
16594 cat > conftest.$ac_ext <<EOF
e26c13cf 16595#line 16596 "configure"
af15babd
VZ
16596#include "confdefs.h"
16597/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16598 which can conflict with char $ac_func(); below. */
af15babd
VZ
16599#include <assert.h>
16600/* Override any gcc2 internal prototype to avoid an error. */
16601/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16602 builtin and then its argument prototype would still apply. */
16603char $ac_func();
16604
16605int main() {
16606
af15babd
VZ
16607/* The GNU C library defines this for functions which it implements
16608 to always fail with ENOSYS. Some functions are actually named
16609 something starting with __ and the normal name is an alias. */
16610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16611choke me
16612#else
a0b9e27f 16613$ac_func();
af15babd
VZ
16614#endif
16615
a0b9e27f
MB
16616; return 0; }
16617EOF
e26c13cf 16618if { (eval echo configure:16619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16619 rm -rf conftest*
16620 eval "ac_cv_func_$ac_func=yes"
16621else
16622 echo "configure: failed program was:" >&5
16623 cat conftest.$ac_ext >&5
16624 rm -rf conftest*
16625 eval "ac_cv_func_$ac_func=no"
16626fi
16627rm -f conftest*
16628fi
af15babd 16629
a0b9e27f
MB
16630if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16631 echo "$ac_t""yes" 1>&6
16632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16633 cat >> confdefs.h <<EOF
16634#define $ac_tr_func 1
16635EOF
ade35f11 16636 break
a0b9e27f
MB
16637else
16638 echo "$ac_t""no" 1>&6
ade35f11
VZ
16639fi
16640done
16641
8284b0c5 16642
a0b9e27f 16643echo $ac_n "checking for statfs""... $ac_c" 1>&6
e26c13cf 16644echo "configure:16645: checking for statfs" >&5
a0b9e27f
MB
16645if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16646 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16647else
a0b9e27f 16648 cat > conftest.$ac_ext <<EOF
e26c13cf 16649#line 16650 "configure"
4f14bcd8
GD
16650#include "confdefs.h"
16651
16652 #if defined(__BSD__)
16653 #include <sys/param.h>
16654 #include <sys/mount.h>
16655 #else
16656 #include <sys/vfs.h>
16657 #endif
a0b9e27f
MB
16658
16659int main() {
4f14bcd8
GD
16660
16661 long l;
16662 struct statfs fs;
16663 statfs("/", &fs);
16664 l = fs.f_bsize;
16665 l += fs.f_blocks;
16666 l += fs.f_bavail;
a0b9e27f
MB
16667
16668; return 0; }
16669EOF
e26c13cf 16670if { (eval echo configure:16671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16671 rm -rf conftest*
16672
4f14bcd8 16673 wx_cv_func_statfs=yes
a0b9e27f 16674
4f14bcd8 16675else
a0b9e27f
MB
16676 echo "configure: failed program was:" >&5
16677 cat conftest.$ac_ext >&5
16678 rm -rf conftest*
16679
4f14bcd8 16680 wx_cv_func_statfs=no
a0b9e27f
MB
16681
16682
5c6fa7d2 16683fi
a0b9e27f 16684rm -f conftest*
8284b0c5 16685
247f5006 16686fi
a0b9e27f
MB
16687
16688echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
16689
16690if test "$wx_cv_func_statfs" = "yes"; then
a0b9e27f 16691 cat >> confdefs.h <<\EOF
4f14bcd8 16692#define HAVE_STATFS 1
a0b9e27f 16693EOF
4f14bcd8
GD
16694
16695else
a0b9e27f 16696 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
e26c13cf 16697echo "configure:16698: checking for statvfs" >&5
a0b9e27f
MB
16698if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16700else
a0b9e27f 16701 cat > conftest.$ac_ext <<EOF
e26c13cf 16702#line 16703 "configure"
af15babd 16703#include "confdefs.h"
af15babd 16704
4f14bcd8 16705 #include <sys/statvfs.h>
a0b9e27f
MB
16706
16707int main() {
af15babd 16708
4f14bcd8
GD
16709 long l;
16710 struct statvfs fs;
16711 statvfs("/", &fs);
16712 l = fs.f_bsize;
16713 l += fs.f_blocks;
16714 l += fs.f_bavail;
a0b9e27f
MB
16715
16716; return 0; }
16717EOF
e26c13cf 16718if { (eval echo configure:16719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16719 rm -rf conftest*
16720
4f14bcd8 16721 wx_cv_func_statvfs=yes
a0b9e27f 16722
af15babd 16723else
a0b9e27f
MB
16724 echo "configure: failed program was:" >&5
16725 cat conftest.$ac_ext >&5
16726 rm -rf conftest*
16727
4f14bcd8 16728 wx_cv_func_statvfs=no
a0b9e27f
MB
16729
16730
5c6fa7d2 16731fi
a0b9e27f
MB
16732rm -f conftest*
16733
247f5006 16734fi
a0b9e27f
MB
16735
16736echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16737
4f14bcd8 16738 if test "$wx_cv_func_statvfs" = "yes"; then
a0b9e27f 16739 cat >> confdefs.h <<\EOF
4f14bcd8 16740#define HAVE_STATVFS 1
a0b9e27f 16741EOF
af15babd 16742
4f14bcd8 16743 else
a0b9e27f 16744 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
4f14bcd8
GD
16745 fi
16746fi
af15babd 16747
4f14bcd8 16748if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 16749 for ac_func in fcntl flock
af15babd 16750do
a0b9e27f 16751echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16752echo "configure:16753: checking for $ac_func" >&5
a0b9e27f
MB
16753if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16754 echo $ac_n "(cached) $ac_c" 1>&6
16755else
16756 cat > conftest.$ac_ext <<EOF
e26c13cf 16757#line 16758 "configure"
af15babd
VZ
16758#include "confdefs.h"
16759/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16760 which can conflict with char $ac_func(); below. */
af15babd
VZ
16761#include <assert.h>
16762/* Override any gcc2 internal prototype to avoid an error. */
af15babd 16763/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16764 builtin and then its argument prototype would still apply. */
16765char $ac_func();
16766
16767int main() {
16768
af15babd
VZ
16769/* The GNU C library defines this for functions which it implements
16770 to always fail with ENOSYS. Some functions are actually named
16771 something starting with __ and the normal name is an alias. */
16772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16773choke me
16774#else
a0b9e27f 16775$ac_func();
af15babd
VZ
16776#endif
16777
a0b9e27f
MB
16778; return 0; }
16779EOF
e26c13cf 16780if { (eval echo configure:16781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16781 rm -rf conftest*
16782 eval "ac_cv_func_$ac_func=yes"
16783else
16784 echo "configure: failed program was:" >&5
16785 cat conftest.$ac_ext >&5
16786 rm -rf conftest*
16787 eval "ac_cv_func_$ac_func=no"
16788fi
16789rm -f conftest*
16790fi
16791
16792if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16793 echo "$ac_t""yes" 1>&6
16794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16795 cat >> confdefs.h <<EOF
16796#define $ac_tr_func 1
16797EOF
4f14bcd8 16798 break
a0b9e27f
MB
16799else
16800 echo "$ac_t""no" 1>&6
af15babd
VZ
16801fi
16802done
16803
8284b0c5 16804
4f14bcd8 16805 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 16806 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
16807 wxUSE_SNGLINST_CHECKER=no
16808 fi
16809fi
af15babd 16810
4f14bcd8 16811for ac_func in timegm
af15babd 16812do
a0b9e27f 16813echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16814echo "configure:16815: checking for $ac_func" >&5
a0b9e27f
MB
16815if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16816 echo $ac_n "(cached) $ac_c" 1>&6
16817else
16818 cat > conftest.$ac_ext <<EOF
e26c13cf 16819#line 16820 "configure"
af15babd
VZ
16820#include "confdefs.h"
16821/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16822 which can conflict with char $ac_func(); below. */
af15babd
VZ
16823#include <assert.h>
16824/* Override any gcc2 internal prototype to avoid an error. */
16825/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16826 builtin and then its argument prototype would still apply. */
16827char $ac_func();
16828
16829int main() {
16830
af15babd
VZ
16831/* The GNU C library defines this for functions which it implements
16832 to always fail with ENOSYS. Some functions are actually named
16833 something starting with __ and the normal name is an alias. */
247f5006
VZ
16834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16835choke me
16836#else
a0b9e27f 16837$ac_func();
247f5006
VZ
16838#endif
16839
a0b9e27f
MB
16840; return 0; }
16841EOF
e26c13cf 16842if { (eval echo configure:16843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16843 rm -rf conftest*
16844 eval "ac_cv_func_$ac_func=yes"
16845else
16846 echo "configure: failed program was:" >&5
16847 cat conftest.$ac_ext >&5
16848 rm -rf conftest*
16849 eval "ac_cv_func_$ac_func=no"
16850fi
16851rm -f conftest*
16852fi
703e0a69 16853
a0b9e27f
MB
16854if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16855 echo "$ac_t""yes" 1>&6
16856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16857 cat >> confdefs.h <<EOF
16858#define $ac_tr_func 1
16859EOF
16860
16861else
16862 echo "$ac_t""no" 1>&6
af15babd
VZ
16863fi
16864done
16865
8284b0c5 16866
4f14bcd8 16867for ac_func in putenv setenv
10f2d63a 16868do
a0b9e27f 16869echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16870echo "configure:16871: checking for $ac_func" >&5
a0b9e27f
MB
16871if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16872 echo $ac_n "(cached) $ac_c" 1>&6
16873else
16874 cat > conftest.$ac_ext <<EOF
e26c13cf 16875#line 16876 "configure"
af15babd
VZ
16876#include "confdefs.h"
16877/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16878 which can conflict with char $ac_func(); below. */
af15babd
VZ
16879#include <assert.h>
16880/* Override any gcc2 internal prototype to avoid an error. */
16881/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16882 builtin and then its argument prototype would still apply. */
16883char $ac_func();
16884
16885int main() {
16886
af15babd
VZ
16887/* The GNU C library defines this for functions which it implements
16888 to always fail with ENOSYS. Some functions are actually named
16889 something starting with __ and the normal name is an alias. */
16890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16891choke me
16892#else
a0b9e27f 16893$ac_func();
af15babd
VZ
16894#endif
16895
a0b9e27f
MB
16896; return 0; }
16897EOF
e26c13cf 16898if { (eval echo configure:16899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16899 rm -rf conftest*
16900 eval "ac_cv_func_$ac_func=yes"
16901else
16902 echo "configure: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16904 rm -rf conftest*
16905 eval "ac_cv_func_$ac_func=no"
16906fi
16907rm -f conftest*
16908fi
16909
16910if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16911 echo "$ac_t""yes" 1>&6
16912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16913 cat >> confdefs.h <<EOF
16914#define $ac_tr_func 1
16915EOF
4f14bcd8 16916 break
a0b9e27f
MB
16917else
16918 echo "$ac_t""no" 1>&6
af15babd 16919fi
af15babd
VZ
16920done
16921
8284b0c5 16922
4f14bcd8
GD
16923HAVE_SOME_SLEEP_FUNC=0
16924if test "$USE_BEOS" = 1; then
a0b9e27f 16925 cat >> confdefs.h <<\EOF
4f14bcd8 16926#define HAVE_SLEEP 1
a0b9e27f 16927EOF
af15babd 16928
4f14bcd8 16929 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16930fi
16931
4f14bcd8 16932if test "$USE_DARWIN" = 1; then
a0b9e27f 16933 cat >> confdefs.h <<\EOF
4f14bcd8 16934#define HAVE_USLEEP 1
a0b9e27f 16935EOF
10f2d63a 16936
4f14bcd8 16937 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16938fi
16939
4f14bcd8
GD
16940if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16941 POSIX4_LINK=
a0b9e27f 16942 for ac_func in nanosleep
4f14bcd8 16943do
a0b9e27f 16944echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 16945echo "configure:16946: checking for $ac_func" >&5
a0b9e27f
MB
16946if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16947 echo $ac_n "(cached) $ac_c" 1>&6
16948else
16949 cat > conftest.$ac_ext <<EOF
e26c13cf 16950#line 16951 "configure"
10f2d63a 16951#include "confdefs.h"
4f14bcd8 16952/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16953 which can conflict with char $ac_func(); below. */
4f14bcd8 16954#include <assert.h>
10f2d63a
VZ
16955/* Override any gcc2 internal prototype to avoid an error. */
16956/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16957 builtin and then its argument prototype would still apply. */
16958char $ac_func();
16959
16960int main() {
16961
4f14bcd8
GD
16962/* The GNU C library defines this for functions which it implements
16963 to always fail with ENOSYS. Some functions are actually named
16964 something starting with __ and the normal name is an alias. */
16965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16966choke me
16967#else
a0b9e27f 16968$ac_func();
4f14bcd8
GD
16969#endif
16970
a0b9e27f
MB
16971; return 0; }
16972EOF
e26c13cf 16973if { (eval echo configure:16974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16974 rm -rf conftest*
16975 eval "ac_cv_func_$ac_func=yes"
16976else
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 rm -rf conftest*
16980 eval "ac_cv_func_$ac_func=no"
16981fi
16982rm -f conftest*
16983fi
16984
16985if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16986 echo "$ac_t""yes" 1>&6
16987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16988 cat >> confdefs.h <<EOF
16989#define $ac_tr_func 1
16990EOF
16991 cat >> confdefs.h <<\EOF
4f14bcd8 16992#define HAVE_NANOSLEEP 1
a0b9e27f 16993EOF
4f14bcd8 16994
10f2d63a 16995else
a0b9e27f
MB
16996 echo "$ac_t""no" 1>&6
16997echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
e26c13cf 16998echo "configure:16999: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
16999ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17001 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17002else
a0b9e27f 17003 ac_save_LIBS="$LIBS"
4f14bcd8 17004LIBS="-lposix4 $LIBS"
a0b9e27f 17005cat > conftest.$ac_ext <<EOF
e26c13cf 17006#line 17007 "configure"
10f2d63a
VZ
17007#include "confdefs.h"
17008/* Override any gcc2 internal prototype to avoid an error. */
17009/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17010 builtin and then its argument prototype would still apply. */
17011char nanosleep();
17012
17013int main() {
17014nanosleep()
17015; return 0; }
17016EOF
e26c13cf 17017if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17018 rm -rf conftest*
17019 eval "ac_cv_lib_$ac_lib_var=yes"
17020else
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17023 rm -rf conftest*
17024 eval "ac_cv_lib_$ac_lib_var=no"
17025fi
17026rm -f conftest*
17027LIBS="$ac_save_LIBS"
17028
17029fi
17030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17031 echo "$ac_t""yes" 1>&6
17032
17033 cat >> confdefs.h <<\EOF
4f14bcd8 17034#define HAVE_NANOSLEEP 1
a0b9e27f 17035EOF
4f14bcd8 17036
3d63bc3a 17037 POSIX4_LINK=" -lposix4"
a0b9e27f 17038
10f2d63a 17039else
a0b9e27f 17040 echo "$ac_t""no" 1>&6
10f2d63a 17041
a0b9e27f 17042 for ac_func in usleep
4f14bcd8 17043do
a0b9e27f 17044echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 17045echo "configure:17046: checking for $ac_func" >&5
a0b9e27f
MB
17046if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17047 echo $ac_n "(cached) $ac_c" 1>&6
17048else
17049 cat > conftest.$ac_ext <<EOF
e26c13cf 17050#line 17051 "configure"
10f2d63a 17051#include "confdefs.h"
4f14bcd8 17052/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17053 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17054#include <assert.h>
17055/* Override any gcc2 internal prototype to avoid an error. */
17056/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17057 builtin and then its argument prototype would still apply. */
17058char $ac_func();
17059
17060int main() {
17061
4f14bcd8
GD
17062/* The GNU C library defines this for functions which it implements
17063 to always fail with ENOSYS. Some functions are actually named
17064 something starting with __ and the normal name is an alias. */
17065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17066choke me
17067#else
a0b9e27f 17068$ac_func();
4f14bcd8
GD
17069#endif
17070
a0b9e27f
MB
17071; return 0; }
17072EOF
e26c13cf 17073if { (eval echo configure:17074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17074 rm -rf conftest*
17075 eval "ac_cv_func_$ac_func=yes"
17076else
17077 echo "configure: failed program was:" >&5
17078 cat conftest.$ac_ext >&5
17079 rm -rf conftest*
17080 eval "ac_cv_func_$ac_func=no"
17081fi
17082rm -f conftest*
17083fi
17084
17085if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17086 echo "$ac_t""yes" 1>&6
17087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17088 cat >> confdefs.h <<EOF
17089#define $ac_tr_func 1
17090EOF
17091 cat >> confdefs.h <<\EOF
4f14bcd8 17092#define HAVE_USLEEP 1
a0b9e27f 17093EOF
4f14bcd8 17094
698dcdb6 17095else
a0b9e27f
MB
17096 echo "$ac_t""no" 1>&6
17097echo "configure: warning: wxSleep() function will not work" 1>&2
17098
10f2d63a 17099fi
4f14bcd8 17100done
10f2d63a 17101
a0b9e27f
MB
17102
17103
6232543b 17104fi
10f2d63a 17105
a0b9e27f
MB
17106
17107
1e487827 17108fi
4f14bcd8 17109done
703e0a69 17110
10f2d63a
VZ
17111fi
17112
4f14bcd8 17113for ac_func in uname gethostname
70846f0a 17114do
a0b9e27f 17115echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 17116echo "configure:17117: checking for $ac_func" >&5
a0b9e27f
MB
17117if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17118 echo $ac_n "(cached) $ac_c" 1>&6
17119else
17120 cat > conftest.$ac_ext <<EOF
e26c13cf 17121#line 17122 "configure"
70846f0a
VZ
17122#include "confdefs.h"
17123/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17124 which can conflict with char $ac_func(); below. */
70846f0a
VZ
17125#include <assert.h>
17126/* Override any gcc2 internal prototype to avoid an error. */
17127/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17128 builtin and then its argument prototype would still apply. */
17129char $ac_func();
17130
17131int main() {
17132
70846f0a
VZ
17133/* The GNU C library defines this for functions which it implements
17134 to always fail with ENOSYS. Some functions are actually named
17135 something starting with __ and the normal name is an alias. */
17136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17137choke me
17138#else
a0b9e27f 17139$ac_func();
70846f0a
VZ
17140#endif
17141
a0b9e27f
MB
17142; return 0; }
17143EOF
e26c13cf 17144if { (eval echo configure:17145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17145 rm -rf conftest*
17146 eval "ac_cv_func_$ac_func=yes"
17147else
17148 echo "configure: failed program was:" >&5
17149 cat conftest.$ac_ext >&5
17150 rm -rf conftest*
17151 eval "ac_cv_func_$ac_func=no"
17152fi
17153rm -f conftest*
17154fi
17155
17156if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17157 echo "$ac_t""yes" 1>&6
17158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17159 cat >> confdefs.h <<EOF
17160#define $ac_tr_func 1
17161EOF
4f14bcd8 17162 break
a0b9e27f
MB
17163else
17164 echo "$ac_t""no" 1>&6
70846f0a
VZ
17165fi
17166done
17167
8284b0c5
MB
17168
17169
a0b9e27f
MB
17170ac_ext=C
17171# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17172ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17173ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17174ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17175cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17176
4f14bcd8
GD
17177
17178for ac_func in strtok_r
10f2d63a 17179do
a0b9e27f 17180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 17181echo "configure:17182: checking for $ac_func" >&5
a0b9e27f
MB
17182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17183 echo $ac_n "(cached) $ac_c" 1>&6
17184else
17185 cat > conftest.$ac_ext <<EOF
e26c13cf 17186#line 17187 "configure"
10f2d63a 17187#include "confdefs.h"
4f14bcd8 17188/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17189 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17190#include <assert.h>
17191/* Override any gcc2 internal prototype to avoid an error. */
17192#ifdef __cplusplus
17193extern "C"
17194#endif
17195/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17196 builtin and then its argument prototype would still apply. */
17197char $ac_func();
17198
17199int main() {
17200
4f14bcd8
GD
17201/* The GNU C library defines this for functions which it implements
17202 to always fail with ENOSYS. Some functions are actually named
17203 something starting with __ and the normal name is an alias. */
17204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17205choke me
17206#else
a0b9e27f 17207$ac_func();
4f14bcd8
GD
17208#endif
17209
a0b9e27f
MB
17210; return 0; }
17211EOF
e26c13cf 17212if { (eval echo configure:17213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17213 rm -rf conftest*
17214 eval "ac_cv_func_$ac_func=yes"
17215else
17216 echo "configure: failed program was:" >&5
17217 cat conftest.$ac_ext >&5
17218 rm -rf conftest*
17219 eval "ac_cv_func_$ac_func=no"
17220fi
17221rm -f conftest*
17222fi
4f14bcd8 17223
a0b9e27f
MB
17224if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17225 echo "$ac_t""yes" 1>&6
17226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17227 cat >> confdefs.h <<EOF
17228#define $ac_tr_func 1
17229EOF
17230
17231else
17232 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17233fi
17234done
17235
8284b0c5 17236
4f14bcd8 17237ac_ext=c
a0b9e27f 17238# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17239ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17240ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17241ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17242cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17243
5c6fa7d2 17244
8284b0c5 17245INET_LINK=
4f14bcd8
GD
17246for ac_func in inet_addr
17247do
a0b9e27f 17248echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 17249echo "configure:17250: checking for $ac_func" >&5
a0b9e27f
MB
17250if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17251 echo $ac_n "(cached) $ac_c" 1>&6
17252else
17253 cat > conftest.$ac_ext <<EOF
e26c13cf 17254#line 17255 "configure"
10f2d63a 17255#include "confdefs.h"
4f14bcd8 17256/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17257 which can conflict with char $ac_func(); below. */
4f14bcd8 17258#include <assert.h>
10f2d63a
VZ
17259/* Override any gcc2 internal prototype to avoid an error. */
17260/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17261 builtin and then its argument prototype would still apply. */
17262char $ac_func();
17263
17264int main() {
17265
4f14bcd8
GD
17266/* The GNU C library defines this for functions which it implements
17267 to always fail with ENOSYS. Some functions are actually named
17268 something starting with __ and the normal name is an alias. */
17269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17270choke me
17271#else
a0b9e27f 17272$ac_func();
4f14bcd8
GD
17273#endif
17274
a0b9e27f
MB
17275; return 0; }
17276EOF
e26c13cf 17277if { (eval echo configure:17278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17278 rm -rf conftest*
17279 eval "ac_cv_func_$ac_func=yes"
17280else
17281 echo "configure: failed program was:" >&5
17282 cat conftest.$ac_ext >&5
17283 rm -rf conftest*
17284 eval "ac_cv_func_$ac_func=no"
17285fi
17286rm -f conftest*
17287fi
17288
17289if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17290 echo "$ac_t""yes" 1>&6
17291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17292 cat >> confdefs.h <<EOF
17293#define $ac_tr_func 1
17294EOF
17295 cat >> confdefs.h <<\EOF
4f14bcd8 17296#define HAVE_INET_ADDR 1
a0b9e27f 17297EOF
10f2d63a
VZ
17298
17299else
a0b9e27f
MB
17300 echo "$ac_t""no" 1>&6
17301echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
e26c13cf 17302echo "configure:17303: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
17303ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17305 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17306else
a0b9e27f 17307 ac_save_LIBS="$LIBS"
4f14bcd8 17308LIBS="-lnsl $LIBS"
a0b9e27f 17309cat > conftest.$ac_ext <<EOF
e26c13cf 17310#line 17311 "configure"
10f2d63a
VZ
17311#include "confdefs.h"
17312/* Override any gcc2 internal prototype to avoid an error. */
17313/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17314 builtin and then its argument prototype would still apply. */
17315char inet_addr();
17316
17317int main() {
17318inet_addr()
17319; return 0; }
17320EOF
e26c13cf 17321if { (eval echo configure:17322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17322 rm -rf conftest*
17323 eval "ac_cv_lib_$ac_lib_var=yes"
17324else
17325 echo "configure: failed program was:" >&5
17326 cat conftest.$ac_ext >&5
17327 rm -rf conftest*
17328 eval "ac_cv_lib_$ac_lib_var=no"
17329fi
17330rm -f conftest*
17331LIBS="$ac_save_LIBS"
17332
17333fi
17334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17335 echo "$ac_t""yes" 1>&6
4f14bcd8 17336 INET_LINK="nsl"
10f2d63a 17337else
a0b9e27f
MB
17338 echo "$ac_t""no" 1>&6
17339echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
e26c13cf 17340echo "configure:17341: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
17341ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17342if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17343 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17344else
a0b9e27f 17345 ac_save_LIBS="$LIBS"
4f14bcd8 17346LIBS="-lresolv $LIBS"
a0b9e27f 17347cat > conftest.$ac_ext <<EOF
e26c13cf 17348#line 17349 "configure"
7b4a847f 17349#include "confdefs.h"
5c6fa7d2 17350/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 17351/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17352 builtin and then its argument prototype would still apply. */
17353char inet_addr();
17354
17355int main() {
17356inet_addr()
17357; return 0; }
17358EOF
e26c13cf 17359if { (eval echo configure:17360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17360 rm -rf conftest*
17361 eval "ac_cv_lib_$ac_lib_var=yes"
17362else
17363 echo "configure: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17365 rm -rf conftest*
17366 eval "ac_cv_lib_$ac_lib_var=no"
17367fi
17368rm -f conftest*
17369LIBS="$ac_save_LIBS"
17370
17371fi
17372if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17373 echo "$ac_t""yes" 1>&6
4f14bcd8 17374 INET_LINK="resolv"
698dcdb6 17375else
a0b9e27f
MB
17376 echo "$ac_t""no" 1>&6
17377echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
e26c13cf 17378echo "configure:17379: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
17379ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17380if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17381 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 17382else
a0b9e27f 17383 ac_save_LIBS="$LIBS"
3c011993 17384LIBS="-lsocket $LIBS"
a0b9e27f 17385cat > conftest.$ac_ext <<EOF
e26c13cf 17386#line 17387 "configure"
3c011993
VZ
17387#include "confdefs.h"
17388/* Override any gcc2 internal prototype to avoid an error. */
17389/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17390 builtin and then its argument prototype would still apply. */
17391char inet_addr();
4f14bcd8 17392
a0b9e27f
MB
17393int main() {
17394inet_addr()
17395; return 0; }
17396EOF
e26c13cf 17397if { (eval echo configure:17398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17398 rm -rf conftest*
17399 eval "ac_cv_lib_$ac_lib_var=yes"
17400else
17401 echo "configure: failed program was:" >&5
17402 cat conftest.$ac_ext >&5
17403 rm -rf conftest*
17404 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 17405fi
a0b9e27f
MB
17406rm -f conftest*
17407LIBS="$ac_save_LIBS"
698dcdb6 17408
7b4a847f 17409fi
a0b9e27f
MB
17410if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17411 echo "$ac_t""yes" 1>&6
17412 INET_LINK="socket"
17413
17414else
17415 echo "$ac_t""no" 1>&6
17416fi
579d8138 17417
a0b9e27f 17418
5c6fa7d2 17419fi
52127426 17420
a0b9e27f
MB
17421
17422fi
247f5006 17423
a0b9e27f 17424
8284b0c5 17425
698dcdb6 17426fi
4f14bcd8
GD
17427done
17428
8284b0c5 17429
4f14bcd8
GD
17430for ac_func in inet_aton
17431do
a0b9e27f 17432echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 17433echo "configure:17434: checking for $ac_func" >&5
a0b9e27f
MB
17434if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17435 echo $ac_n "(cached) $ac_c" 1>&6
17436else
17437 cat > conftest.$ac_ext <<EOF
e26c13cf 17438#line 17439 "configure"
f6bcfd97 17439#include "confdefs.h"
4f14bcd8 17440/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17441 which can conflict with char $ac_func(); below. */
4f14bcd8 17442#include <assert.h>
f6bcfd97
BP
17443/* Override any gcc2 internal prototype to avoid an error. */
17444/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17445 builtin and then its argument prototype would still apply. */
17446char $ac_func();
17447
17448int main() {
17449
4f14bcd8
GD
17450/* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17454choke me
17455#else
a0b9e27f 17456$ac_func();
4f14bcd8
GD
17457#endif
17458
a0b9e27f
MB
17459; return 0; }
17460EOF
e26c13cf 17461if { (eval echo configure:17462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17462 rm -rf conftest*
17463 eval "ac_cv_func_$ac_func=yes"
17464else
17465 echo "configure: failed program was:" >&5
17466 cat conftest.$ac_ext >&5
17467 rm -rf conftest*
17468 eval "ac_cv_func_$ac_func=no"
17469fi
17470rm -f conftest*
17471fi
17472
17473if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17474 echo "$ac_t""yes" 1>&6
17475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17476 cat >> confdefs.h <<EOF
17477#define $ac_tr_func 1
17478EOF
17479 cat >> confdefs.h <<\EOF
4f14bcd8 17480#define HAVE_INET_ATON 1
a0b9e27f 17481EOF
4f14bcd8 17482
10f2d63a 17483else
a0b9e27f
MB
17484 echo "$ac_t""no" 1>&6
17485 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
e26c13cf 17486echo "configure:17487: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
17487ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17488if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17489 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17490else
a0b9e27f 17491 ac_save_LIBS="$LIBS"
4f14bcd8 17492LIBS="-l$INET_LINK $LIBS"
a0b9e27f 17493cat > conftest.$ac_ext <<EOF
e26c13cf 17494#line 17495 "configure"
10f2d63a 17495#include "confdefs.h"
6232543b 17496/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17497/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17498 builtin and then its argument prototype would still apply. */
17499char inet_aton();
17500
17501int main() {
17502inet_aton()
17503; return 0; }
17504EOF
e26c13cf 17505if { (eval echo configure:17506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17506 rm -rf conftest*
17507 eval "ac_cv_lib_$ac_lib_var=yes"
17508else
17509 echo "configure: failed program was:" >&5
17510 cat conftest.$ac_ext >&5
17511 rm -rf conftest*
17512 eval "ac_cv_lib_$ac_lib_var=no"
17513fi
17514rm -f conftest*
17515LIBS="$ac_save_LIBS"
4f14bcd8 17516
10f2d63a 17517fi
a0b9e27f
MB
17518if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17519 echo "$ac_t""yes" 1>&6
17520 cat >> confdefs.h <<\EOF
17521#define HAVE_INET_ATON 1
17522EOF
10f2d63a 17523
a0b9e27f
MB
17524else
17525 echo "$ac_t""no" 1>&6
17526fi
247f5006 17527
a0b9e27f 17528
10f2d63a 17529fi
4f14bcd8 17530done
10f2d63a 17531
8284b0c5 17532
4f14bcd8 17533if test "x$INET_LINK" != "x"; then
a0b9e27f 17534 cat >> confdefs.h <<\EOF
4f14bcd8 17535#define HAVE_INET_ADDR 1
a0b9e27f 17536EOF
4f14bcd8 17537
3d63bc3a 17538 INET_LINK=" -l$INET_LINK"
6232543b 17539fi
10f2d63a 17540
1e487827 17541fi
703e0a69 17542
8284b0c5 17543
a0b9e27f 17544cat > confcache <<\EOF
4f14bcd8
GD
17545# This file is a shell script that caches the results of configure
17546# tests run on this system so they can be shared between configure
a0b9e27f
MB
17547# scripts and configure runs. It is not useful on other systems.
17548# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 17549#
a0b9e27f
MB
17550# By default, configure uses ./config.cache as the cache file,
17551# creating it if it does not exist already. You can give configure
17552# the --cache-file=FILE option to use a different cache file; that is
17553# what configure does when it calls configure scripts in
17554# subdirectories, so they share the cache.
17555# Giving --cache-file=/dev/null disables caching, for debugging configure.
17556# config.status only pays attention to the cache file if you give it the
17557# --recheck option to rerun configure.
4f14bcd8 17558#
a0b9e27f 17559EOF
4f14bcd8
GD
17560# The following way of writing the cache mishandles newlines in values,
17561# but we know of no workaround that is simple, portable, and efficient.
17562# So, don't put newlines in cache variables' values.
17563# Ultrix sh set writes to stderr and can't be redirected directly,
17564# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
17565(set) 2>&1 |
17566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17567 *ac_space=\ *)
17568 # `set' does not quote correctly, so add quotes (double-quote substitution
17569 # turns \\\\ into \\, and sed turns \\ into \).
17570 sed -n \
17571 -e "s/'/'\\\\''/g" \
17572 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17573 ;;
17574 *)
17575 # `set' quotes correctly as required by POSIX, so do not add quotes.
17576 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17577 ;;
17578 esac >> confcache
17579if cmp -s $cache_file confcache; then
17580 :
17581else
4f14bcd8 17582 if test -w $cache_file; then
a0b9e27f
MB
17583 echo "updating cache $cache_file"
17584 cat confcache > $cache_file
f6bcfd97 17585 else
4f14bcd8 17586 echo "not updating unwritable cache $cache_file"
f6bcfd97 17587 fi
4f14bcd8
GD
17588fi
17589rm -f confcache
f6bcfd97 17590
8284b0c5 17591
a0b9e27f 17592
009fead0 17593CPP_MT_FLAG=
4f14bcd8
GD
17594if test "$TOOLKIT" != "MSW"; then
17595
a0b9e27f 17596
7274f1c7 17597 THREADS_LINK=
009fead0 17598 THREADS_CFLAGS=
7274f1c7
RL
17599
17600 if test "$wxUSE_THREADS" = "yes" ; then
17601 if test "$wxUSE_WINE" = 1 ; then
a0b9e27f 17602 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17603 wxUSE_THREADS="no"
17604 elif test "$USE_BEOS" = 1; then
a0b9e27f 17605 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17606 wxUSE_THREADS="no"
17607 fi
4f14bcd8 17608 fi
4f14bcd8 17609
7274f1c7 17610 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
17611
17612
009fead0
VZ
17613 THREAD_OPTS="-pthread"
17614 case "${host}" in
17615 *-*-solaris2* | *-*-sunos4* )
17616 if test "x$GCC" = "xyes"; then
126be6b4 17617 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17618 else
17619 THREAD_OPTS="-mt $THREAD_OPTS"
17620 fi
17621 ;;
17622 *-*-freebsd*)
17623 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17624 ;;
17234b26
MB
17625 *-*-darwin* | *-*-cygwin* )
17626 THREAD_OPTS=""
4101db81 17627 ;;
8f4a9a10 17628 *-*-aix*)
009fead0
VZ
17629 THREAD_OPTS="pthreads"
17630 ;;
009fead0 17631 esac
4f14bcd8 17632
02a1dfba 17633 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17634
009fead0
VZ
17635 THREADS_OK=no
17636 for flag in $THREAD_OPTS; do
17637 case $flag in
17638 none)
a0b9e27f 17639 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
e26c13cf 17640echo "configure:17641: checking whether pthreads work without any flags" >&5
009fead0 17641 ;;
698dcdb6 17642
009fead0 17643 -*)
a0b9e27f 17644 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
e26c13cf 17645echo "configure:17646: checking whether pthreads work with $flag" >&5
009fead0
VZ
17646 THREADS_CFLAGS="$flag"
17647 ;;
698dcdb6 17648
009fead0 17649 *)
a0b9e27f 17650 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
e26c13cf 17651echo "configure:17652: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17652 THREADS_LINK="-l$flag"
17653 ;;
17654 esac
10f2d63a 17655
009fead0
VZ
17656 save_LIBS="$LIBS"
17657 save_CFLAGS="$CFLAGS"
17658 LIBS="$THREADS_LINK $LIBS"
04727afd 17659 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17660
a0b9e27f 17661 cat > conftest.$ac_ext <<EOF
e26c13cf 17662#line 17663 "configure"
009fead0
VZ
17663#include "confdefs.h"
17664#include <pthread.h>
a0b9e27f 17665int main() {
009fead0 17666pthread_create(0,0,0,0);
a0b9e27f
MB
17667; return 0; }
17668EOF
e26c13cf 17669if { (eval echo configure:17670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17670 rm -rf conftest*
009fead0 17671 THREADS_OK=yes
10f2d63a 17672else
a0b9e27f
MB
17673 echo "configure: failed program was:" >&5
17674 cat conftest.$ac_ext >&5
6232543b 17675fi
a0b9e27f 17676rm -f conftest*
698dcdb6 17677
009fead0
VZ
17678 LIBS="$save_LIBS"
17679 CFLAGS="$save_CFLAGS"
d9b9876f 17680
a0b9e27f 17681 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
17682 if test "x$THREADS_OK" = "xyes"; then
17683 break;
17684 fi
d9b9876f 17685
009fead0
VZ
17686 THREADS_LINK=""
17687 THREADS_CFLAGS=""
17688 done
4f14bcd8 17689
009fead0
VZ
17690 if test "x$THREADS_OK" != "xyes"; then
17691 wxUSE_THREADS=no
a0b9e27f 17692 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 17693 else
fe5a9cab
VZ
17694 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17695
a0b9e27f 17696 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
e26c13cf 17697echo "configure:17698: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17698 flag=no
17699 case "${host}" in
17700 *-aix* | *-freebsd*)
17701 flag="-D_THREAD_SAFE"
17702 ;;
06313569
GD
17703 *-hp-hpux* )
17704 flag="-D_REENTRANT"
17705 ;;
009fead0
VZ
17706 *solaris* | alpha*-osf*)
17707 flag="-D_REENTRANT"
17708 ;;
17709 esac
a0b9e27f 17710 echo "$ac_t""${flag}" 1>&6
009fead0 17711 if test "x$flag" != xno; then
04727afd 17712 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17713 fi
17714
009fead0 17715 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17716 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17717 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17718 fi
17719 fi
4f14bcd8 17720 fi
4f14bcd8 17721
7274f1c7 17722 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 17723 for ac_func in thr_setconcurrency
4f14bcd8 17724do
a0b9e27f 17725echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 17726echo "configure:17727: checking for $ac_func" >&5
a0b9e27f
MB
17727if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17728 echo $ac_n "(cached) $ac_c" 1>&6
17729else
17730 cat > conftest.$ac_ext <<EOF
e26c13cf 17731#line 17732 "configure"
d9b9876f 17732#include "confdefs.h"
4f14bcd8 17733/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17734 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17735#include <assert.h>
17736/* Override any gcc2 internal prototype to avoid an error. */
17737/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17738 builtin and then its argument prototype would still apply. */
17739char $ac_func();
17740
17741int main() {
17742
4f14bcd8
GD
17743/* The GNU C library defines this for functions which it implements
17744 to always fail with ENOSYS. Some functions are actually named
17745 something starting with __ and the normal name is an alias. */
17746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17747choke me
17748#else
a0b9e27f 17749$ac_func();
4f14bcd8
GD
17750#endif
17751
a0b9e27f
MB
17752; return 0; }
17753EOF
e26c13cf 17754if { (eval echo configure:17755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17755 rm -rf conftest*
17756 eval "ac_cv_func_$ac_func=yes"
17757else
17758 echo "configure: failed program was:" >&5
17759 cat conftest.$ac_ext >&5
17760 rm -rf conftest*
17761 eval "ac_cv_func_$ac_func=no"
17762fi
17763rm -f conftest*
17764fi
698dcdb6 17765
a0b9e27f
MB
17766if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17767 echo "$ac_t""yes" 1>&6
17768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17769 cat >> confdefs.h <<EOF
17770#define $ac_tr_func 1
17771EOF
17772
17773else
17774 echo "$ac_t""no" 1>&6
10f2d63a 17775fi
4f14bcd8 17776done
10f2d63a 17777
8284b0c5 17778
a0b9e27f 17779 for ac_hdr in sched.h
4f14bcd8 17780do
a0b9e27f
MB
17781ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17782echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e26c13cf 17783echo "configure:17784: checking for $ac_hdr" >&5
a0b9e27f
MB
17784if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17785 echo $ac_n "(cached) $ac_c" 1>&6
17786else
17787 cat > conftest.$ac_ext <<EOF
e26c13cf 17788#line 17789 "configure"
247f5006 17789#include "confdefs.h"
a0b9e27f
MB
17790#include <$ac_hdr>
17791EOF
17792ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 17793{ (eval echo configure:17794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
17794ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17795if test -z "$ac_err"; then
17796 rm -rf conftest*
17797 eval "ac_cv_header_$ac_safe=yes"
17798else
17799 echo "$ac_err" >&5
17800 echo "configure: failed program was:" >&5
4f14bcd8 17801 cat conftest.$ac_ext >&5
a0b9e27f
MB
17802 rm -rf conftest*
17803 eval "ac_cv_header_$ac_safe=no"
13111b2a 17804fi
a0b9e27f 17805rm -f conftest*
10f2d63a 17806fi
a0b9e27f
MB
17807if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17808 echo "$ac_t""yes" 1>&6
17809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17810 cat >> confdefs.h <<EOF
17811#define $ac_tr_hdr 1
17812EOF
17813
17814else
17815 echo "$ac_t""no" 1>&6
f6bcfd97 17816fi
4f14bcd8 17817done
f6bcfd97 17818
009fead0 17819 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 17820 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
e26c13cf 17821echo "configure:17822: checking for sched_yield" >&5
a0b9e27f
MB
17822if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17823 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17824else
a0b9e27f 17825 cat > conftest.$ac_ext <<EOF
e26c13cf 17826#line 17827 "configure"
4f14bcd8 17827#include "confdefs.h"
009fead0 17828/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17829 which can conflict with char sched_yield(); below. */
009fead0 17830#include <assert.h>
4f14bcd8
GD
17831/* Override any gcc2 internal prototype to avoid an error. */
17832/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17833 builtin and then its argument prototype would still apply. */
17834char sched_yield();
17835
17836int main() {
17837
009fead0
VZ
17838/* The GNU C library defines this for functions which it implements
17839 to always fail with ENOSYS. Some functions are actually named
17840 something starting with __ and the normal name is an alias. */
17841#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17842choke me
17843#else
a0b9e27f 17844sched_yield();
009fead0
VZ
17845#endif
17846
a0b9e27f
MB
17847; return 0; }
17848EOF
e26c13cf 17849if { (eval echo configure:17850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17850 rm -rf conftest*
17851 eval "ac_cv_func_sched_yield=yes"
17852else
17853 echo "configure: failed program was:" >&5
17854 cat conftest.$ac_ext >&5
17855 rm -rf conftest*
17856 eval "ac_cv_func_sched_yield=no"
17857fi
17858rm -f conftest*
17859fi
17860
17861if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17862 echo "$ac_t""yes" 1>&6
17863 cat >> confdefs.h <<\EOF
4f14bcd8 17864#define HAVE_SCHED_YIELD 1
a0b9e27f 17865EOF
10f2d63a 17866
4f14bcd8 17867else
a0b9e27f 17868 echo "$ac_t""no" 1>&6
009fead0 17869
a0b9e27f 17870 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
e26c13cf 17871echo "configure:17872: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
17872ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17874 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17875else
a0b9e27f 17876 ac_save_LIBS="$LIBS"
4f14bcd8 17877LIBS="-lposix4 $LIBS"
a0b9e27f 17878cat > conftest.$ac_ext <<EOF
e26c13cf 17879#line 17880 "configure"
4f14bcd8
GD
17880#include "confdefs.h"
17881/* Override any gcc2 internal prototype to avoid an error. */
17882/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17883 builtin and then its argument prototype would still apply. */
17884char sched_yield();
17885
17886int main() {
17887sched_yield()
17888; return 0; }
17889EOF
e26c13cf 17890if { (eval echo configure:17891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17891 rm -rf conftest*
17892 eval "ac_cv_lib_$ac_lib_var=yes"
17893else
17894 echo "configure: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17896 rm -rf conftest*
17897 eval "ac_cv_lib_$ac_lib_var=no"
17898fi
17899rm -f conftest*
17900LIBS="$ac_save_LIBS"
17901
17902fi
17903if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17904 echo "$ac_t""yes" 1>&6
17905 cat >> confdefs.h <<\EOF
4f14bcd8 17906#define HAVE_SCHED_YIELD 1
a0b9e27f 17907EOF
3d63bc3a 17908 POSIX4_LINK=" -lposix4"
4f14bcd8 17909else
a0b9e27f
MB
17910 echo "$ac_t""no" 1>&6
17911echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17912
54276ccf
VZ
17913fi
17914
a0b9e27f
MB
17915
17916
4f14bcd8 17917fi
698dcdb6 17918
009fead0 17919 fi
10f2d63a 17920
7274f1c7 17921 HAVE_PRIOR_FUNCS=0
a0b9e27f 17922 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
e26c13cf 17923echo "configure:17924: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
17924if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17925 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17926else
a0b9e27f 17927 cat > conftest.$ac_ext <<EOF
e26c13cf 17928#line 17929 "configure"
422107f9 17929#include "confdefs.h"
009fead0 17930/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17931 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 17932#include <assert.h>
4f14bcd8
GD
17933/* Override any gcc2 internal prototype to avoid an error. */
17934/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17935 builtin and then its argument prototype would still apply. */
17936char pthread_attr_getschedpolicy();
17937
17938int main() {
17939
009fead0
VZ
17940/* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17944choke me
17945#else
a0b9e27f 17946pthread_attr_getschedpolicy();
009fead0
VZ
17947#endif
17948
a0b9e27f
MB
17949; return 0; }
17950EOF
e26c13cf 17951if { (eval echo configure:17952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17952 rm -rf conftest*
17953 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17954else
17955 echo "configure: failed program was:" >&5
17956 cat conftest.$ac_ext >&5
17957 rm -rf conftest*
17958 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17959fi
17960rm -f conftest*
17961fi
17962
17963if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17964 echo "$ac_t""yes" 1>&6
17965 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
e26c13cf 17966echo "configure:17967: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
17967if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17968 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 17969else
a0b9e27f 17970 cat > conftest.$ac_ext <<EOF
e26c13cf 17971#line 17972 "configure"
a0b9e27f
MB
17972#include "confdefs.h"
17973/* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 17975#include <assert.h>
422107f9
VZ
17976/* Override any gcc2 internal prototype to avoid an error. */
17977/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17978 builtin and then its argument prototype would still apply. */
17979char pthread_attr_setschedparam();
17980
17981int main() {
17982
009fead0
VZ
17983/* The GNU C library defines this for functions which it implements
17984 to always fail with ENOSYS. Some functions are actually named
17985 something starting with __ and the normal name is an alias. */
17986#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17987choke me
17988#else
a0b9e27f 17989pthread_attr_setschedparam();
009fead0
VZ
17990#endif
17991
a0b9e27f
MB
17992; return 0; }
17993EOF
e26c13cf 17994if { (eval echo configure:17995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17995 rm -rf conftest*
17996 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17997else
17998 echo "configure: failed program was:" >&5
17999 cat conftest.$ac_ext >&5
18000 rm -rf conftest*
18001 eval "ac_cv_func_pthread_attr_setschedparam=no"
18002fi
18003rm -f conftest*
18004fi
18005
18006if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18007 echo "$ac_t""yes" 1>&6
18008 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
e26c13cf 18009echo "configure:18010: checking for sched_get_priority_max" >&5
a0b9e27f
MB
18010if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18011 echo $ac_n "(cached) $ac_c" 1>&6
18012else
18013 cat > conftest.$ac_ext <<EOF
e26c13cf 18014#line 18015 "configure"
422107f9 18015#include "confdefs.h"
009fead0
VZ
18016/* System header to define __stub macros and hopefully few prototypes
18017else
a0b9e27f
MB
18018 echo "$ac_t""no" 1>&6
18019which can conflict with char sched_get_priority_max(); below. */
009fead0 18020#include <assert.h>
4f14bcd8
GD
18021/* Override any gcc2 internal prototype to avoid an error. */
18022/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18023 builtin and then its argument prototype would still apply. */
18024char sched_get_priority_max();
18025
18026int main() {
18027
009fead0
VZ
18028/* The GNU C library defines this for functions which it implements
18029 to always fail with ENOSYS. Some functions are actually named
18030 something starting with __ and the normal name is an alias. */
18031#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18032choke me
18033#else
a0b9e27f 18034sched_get_priority_max();
009fead0
VZ
18035#endif
18036
a0b9e27f
MB
18037; return 0; }
18038EOF
e26c13cf 18039if { (eval echo configure:18040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18040 rm -rf conftest*
18041 eval "ac_cv_func_sched_get_priority_max=yes"
18042else
18043 echo "configure: failed program was:" >&5
18044 cat conftest.$ac_ext >&5
18045 rm -rf conftest*
18046 eval "ac_cv_func_sched_get_priority_max=no"
18047fi
18048rm -f conftest*
18049fi
18050
18051if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18052 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18053 HAVE_PRIOR_FUNCS=1
18054else
a0b9e27f
MB
18055 echo "$ac_t""no" 1>&6
18056echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
e26c13cf 18057echo "configure:18058: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
18058ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18059if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18060 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18061else
a0b9e27f 18062 ac_save_LIBS="$LIBS"
4f14bcd8 18063LIBS="-lposix4 $LIBS"
a0b9e27f 18064cat > conftest.$ac_ext <<EOF
e26c13cf 18065#line 18066 "configure"
422107f9
VZ
18066#include "confdefs.h"
18067/* Override any gcc2 internal prototype to avoid an error. */
18068/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18069 builtin and then its argument prototype would still apply. */
18070char sched_get_priority_max();
18071
18072int main() {
18073sched_get_priority_max()
18074; return 0; }
18075EOF
e26c13cf 18076if { (eval echo configure:18077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18077 rm -rf conftest*
18078 eval "ac_cv_lib_$ac_lib_var=yes"
18079else
18080 echo "configure: failed program was:" >&5
18081 cat conftest.$ac_ext >&5
18082 rm -rf conftest*
18083 eval "ac_cv_lib_$ac_lib_var=no"
18084fi
18085rm -f conftest*
18086LIBS="$ac_save_LIBS"
698dcdb6 18087
a0b9e27f
MB
18088fi
18089if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18090 echo "$ac_t""yes" 1>&6
18091
7274f1c7
RL
18092 HAVE_PRIOR_FUNCS=1
18093 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
18094
18095else
18096 echo "$ac_t""no" 1>&6
4f14bcd8 18097fi
463abc64 18098
a0b9e27f 18099
328a083c 18100fi
463abc64 18101
a0b9e27f
MB
18102
18103else
18104 echo "$ac_t""no" 1>&6
7b4a847f 18105fi
579d8138 18106
a0b9e27f 18107
5c6fa7d2 18108fi
52127426 18109
8284b0c5 18110
7274f1c7 18111 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 18112 cat >> confdefs.h <<\EOF
4f14bcd8 18113#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 18114EOF
463abc64 18115
7274f1c7 18116 else
a0b9e27f 18117 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 18118 fi
463abc64 18119
a0b9e27f 18120 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
e26c13cf 18121echo "configure:18122: checking for pthread_cancel" >&5
a0b9e27f
MB
18122if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18123 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18124else
a0b9e27f 18125 cat > conftest.$ac_ext <<EOF
e26c13cf 18126#line 18127 "configure"
422107f9 18127#include "confdefs.h"
009fead0 18128/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18129 which can conflict with char pthread_cancel(); below. */
009fead0 18130#include <assert.h>
422107f9
VZ
18131/* Override any gcc2 internal prototype to avoid an error. */
18132/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18133 builtin and then its argument prototype would still apply. */
18134char pthread_cancel();
18135
18136int main() {
18137
009fead0
VZ
18138/* The GNU C library defines this for functions which it implements
18139 to always fail with ENOSYS. Some functions are actually named
18140 something starting with __ and the normal name is an alias. */
18141#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18142choke me
18143#else
a0b9e27f 18144pthread_cancel();
009fead0
VZ
18145#endif
18146
a0b9e27f
MB
18147; return 0; }
18148EOF
e26c13cf 18149if { (eval echo configure:18150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18150 rm -rf conftest*
18151 eval "ac_cv_func_pthread_cancel=yes"
18152else
18153 echo "configure: failed program was:" >&5
18154 cat conftest.$ac_ext >&5
18155 rm -rf conftest*
18156 eval "ac_cv_func_pthread_cancel=no"
18157fi
18158rm -f conftest*
18159fi
18160
18161if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18162 echo "$ac_t""yes" 1>&6
18163 cat >> confdefs.h <<\EOF
4f14bcd8 18164#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 18165EOF
4f14bcd8 18166
698dcdb6 18167else
a0b9e27f
MB
18168 echo "$ac_t""no" 1>&6
18169echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
18170fi
18171
5c6fa7d2 18172
a0b9e27f 18173 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
e26c13cf 18174echo "configure:18175: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
18175if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18176 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 18177else
a0b9e27f
MB
18178
18179 cat > conftest.$ac_ext <<EOF
e26c13cf 18180#line 18181 "configure"
4f14bcd8
GD
18181#include "confdefs.h"
18182#include <pthread.h>
a0b9e27f 18183int main() {
4f14bcd8 18184
7274f1c7
RL
18185 pthread_cleanup_push(NULL, NULL);
18186 pthread_cleanup_pop(0);
a0b9e27f
MB
18187
18188; return 0; }
18189EOF
e26c13cf 18190if { (eval echo configure:18191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18191 rm -rf conftest*
18192
7274f1c7 18193 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 18194
4f14bcd8 18195else
a0b9e27f
MB
18196 echo "configure: failed program was:" >&5
18197 cat conftest.$ac_ext >&5
18198 rm -rf conftest*
18199
7274f1c7 18200 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 18201
5c6fa7d2 18202fi
a0b9e27f
MB
18203rm -f conftest*
18204
247f5006 18205fi
a0b9e27f
MB
18206
18207echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 18208
7274f1c7 18209 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 18210 cat >> confdefs.h <<\EOF
4f14bcd8 18211#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 18212EOF
c7a2bf27 18213
7274f1c7 18214 fi
4f14bcd8 18215
a0b9e27f
MB
18216
18217 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
e26c13cf 18218echo "configure:18219: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
18219if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18220 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18221else
a0b9e27f
MB
18222
18223 cat > conftest.$ac_ext <<EOF
e26c13cf 18224#line 18225 "configure"
0dcf9893 18225#include "confdefs.h"
4f14bcd8 18226#include <pthread.h>
a0b9e27f 18227int main() {
4f14bcd8 18228
7274f1c7
RL
18229 pthread_mutexattr_t attr;
18230 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
18231
18232; return 0; }
18233EOF
e26c13cf 18234if { (eval echo configure:18235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18235 rm -rf conftest*
18236
7274f1c7 18237 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 18238
3fed1840 18239else
a0b9e27f
MB
18240 echo "configure: failed program was:" >&5
18241 cat conftest.$ac_ext >&5
18242 rm -rf conftest*
18243
7274f1c7 18244 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
18245
18246
5c6fa7d2 18247fi
a0b9e27f
MB
18248rm -f conftest*
18249
247f5006 18250fi
a0b9e27f
MB
18251
18252echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 18253
7274f1c7 18254 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 18255 cat >> confdefs.h <<\EOF
4f14bcd8 18256#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 18257EOF
4f14bcd8 18258
7274f1c7 18259 else
a0b9e27f 18260 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
e26c13cf 18261echo "configure:18262: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
18262if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18263 echo $ac_n "(cached) $ac_c" 1>&6
18264else
18265
18266 cat > conftest.$ac_ext <<EOF
e26c13cf 18267#line 18268 "configure"
3fed1840 18268#include "confdefs.h"
4f14bcd8 18269#include <pthread.h>
a0b9e27f 18270int main() {
4f14bcd8 18271
7274f1c7 18272 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
18273
18274; return 0; }
18275EOF
e26c13cf 18276if { (eval echo configure:18277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18277 rm -rf conftest*
18278
7274f1c7 18279 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 18280
698dcdb6 18281else
a0b9e27f
MB
18282 echo "configure: failed program was:" >&5
18283 cat conftest.$ac_ext >&5
18284 rm -rf conftest*
18285
7274f1c7 18286 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
18287
18288
5c6fa7d2 18289fi
a0b9e27f
MB
18290rm -f conftest*
18291
247f5006 18292fi
a0b9e27f
MB
18293
18294echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 18295 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 18296 cat >> confdefs.h <<\EOF
4f14bcd8 18297#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 18298EOF
3fed1840 18299
7274f1c7 18300 else
a0b9e27f 18301 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
18302 fi
18303 fi
7274f1c7 18304 fi
3fed1840 18305
a0b9e27f
MB
18306else
18307 if test "$wxUSE_THREADS" = "yes" ; then
18308 case "${host}" in
18309 *-*-mingw32* )
ca8e52b3 18310 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
e26c13cf 18311echo "configure:18312: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
18312if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
18313 echo $ac_n "(cached) $ac_c" 1>&6
18314else
18315
18316 CFLAGS_OLD="$CFLAGS"
18317 CFLAGS="$CFLAGS -mthreads"
18318 cat > conftest.$ac_ext <<EOF
e26c13cf 18319#line 18320 "configure"
ca8e52b3
VZ
18320#include "confdefs.h"
18321
18322int main() {
18323
18324; return 0; }
18325EOF
e26c13cf 18326if { (eval echo configure:18327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
18327 rm -rf conftest*
18328 wx_cv_cflags_mthread=yes
18329else
18330 echo "configure: failed program was:" >&5
18331 cat conftest.$ac_ext >&5
18332 rm -rf conftest*
18333 wx_cv_cflags_mthread=no
18334
18335fi
18336rm -f conftest*
18337
18338
18339fi
18340
18341echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
18342
18343 if test "$wx_cv_cflags_mthread" = "yes"; then
18344 CXXFLAGS="$CXXFLAGS -mthreads"
18345 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
18346 LDFLAGS="$LDFLAGS -mthreads"
18347 else
18348 CFLAGS="$CFLAGS_OLD"
18349 fi
a0b9e27f
MB
18350 ;;
18351 esac
18352 fi
4f14bcd8
GD
18353fi
18354
18355if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 18356 cat >> confdefs.h <<\EOF
4f14bcd8 18357#define wxUSE_THREADS 1
a0b9e27f 18358EOF
7b6058cd 18359
8284b0c5 18360
4f14bcd8 18361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18362else
4f14bcd8 18363 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 18364 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
e26c13cf 18365echo "configure:18366: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18366 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18367 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 18368 echo "$ac_t""yes" 1>&6
4f14bcd8 18369 else
a0b9e27f 18370 echo "$ac_t""no" 1>&6
4f14bcd8
GD
18371 fi
18372 fi
18373fi
18374
18375if test "$WXGTK20" = 1 ; then
a0b9e27f 18376 cat >> confdefs.h <<EOF
4f14bcd8 18377#define __WXGTK20__ $WXGTK20
a0b9e27f 18378EOF
4f14bcd8
GD
18379
18380 WXGTK12=1
10f2d63a 18381fi
4f14bcd8
GD
18382
18383if test "$WXGTK12" = 1 ; then
a0b9e27f 18384 cat >> confdefs.h <<EOF
4f14bcd8 18385#define __WXGTK12__ $WXGTK12
a0b9e27f 18386EOF
4f14bcd8 18387
10f2d63a 18388fi
698dcdb6 18389
4f14bcd8 18390if test "$WXGTK127" = 1 ; then
a0b9e27f 18391 cat >> confdefs.h <<EOF
4f14bcd8 18392#define __WXGTK127__ $WXGTK127
a0b9e27f 18393EOF
4f14bcd8 18394
698dcdb6 18395fi
10f2d63a 18396
4f14bcd8
GD
18397WXDEBUG=
18398
18399if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18400 WXDEBUG="-g"
18401 wxUSE_OPTIMISE=no
698dcdb6 18402fi
4f14bcd8
GD
18403
18404if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18405 wxUSE_DEBUG_INFO=yes
18406 WXDEBUG="-ggdb"
10f2d63a
VZ
18407fi
18408
4f14bcd8 18409if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 18410 cat >> confdefs.h <<\EOF
4f14bcd8 18411#define WXDEBUG 1
a0b9e27f 18412EOF
4f14bcd8
GD
18413
18414 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18415else
4f14bcd8
GD
18416 if test "$wxUSE_GTK" = 1 ; then
18417 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18418 fi
18419fi
18420
18421if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 18422 cat >> confdefs.h <<\EOF
4f14bcd8 18423#define wxUSE_MEMORY_TRACING 1
a0b9e27f 18424EOF
4f14bcd8 18425
a0b9e27f 18426 cat >> confdefs.h <<\EOF
4f14bcd8 18427#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 18428EOF
4f14bcd8 18429
a0b9e27f 18430 cat >> confdefs.h <<\EOF
4f14bcd8 18431#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 18432EOF
4f14bcd8
GD
18433
18434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18435fi
18436
18437if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18438 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18439fi
18440
18441PROFILE=
18442if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18443 PROFILE=" -pg"
10f2d63a
VZ
18444fi
18445
009fead0
VZ
18446CODE_GEN_FLAGS=
18447CODE_GEN_FLAGS_CXX=
88e30f2b 18448if test "$GCC" = "yes" ; then
4f14bcd8
GD
18449 if test "$wxUSE_NO_RTTI" = "yes" ; then
18450 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18451 fi
4f14bcd8
GD
18452 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18453 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18454 fi
18455 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18456 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18457 fi
4f14bcd8
GD
18458 if test "$USE_WIN32" = 1 ; then
18459 # I'm not even really sure what this was ever added to solve,
18460 # but someone added it for mingw native builds, so I guess
18461 # they had a reason, right??
18462 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18463 fi
1d1b75ac
VZ
18464
18465 case "${host}" in
18466 powerpc*-*-aix* )
18467 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18468 ;;
18469 esac
4f14bcd8
GD
18470fi
18471
4f14bcd8
GD
18472if test "$wxUSE_OPTIMISE" = "no" ; then
18473 OPTIMISE=
18474else
18475 if test "$GCC" = yes ; then
18476 OPTIMISE="-O2"
18477 case "${host}" in
18478 i586-*-*|i686-*-* )
18479 OPTIMISE="${OPTIMISE} "
18480 ;;
18481 esac
18482 else
18483 OPTIMISE="-O"
18484 fi
18485fi
18486
18487if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 18488 cat >> confdefs.h <<\EOF
4f14bcd8 18489#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 18490EOF
4f14bcd8 18491
8284b0c5 18492
4f14bcd8
GD
18493 WXWIN_COMPATIBILITY_2_2="yes"
18494fi
18495
0c9a1c32 18496if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
a0b9e27f 18497 cat >> confdefs.h <<\EOF
4f14bcd8 18498#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 18499EOF
4f14bcd8 18500
10f2d63a
VZ
18501fi
18502
8284b0c5 18503
10f2d63a 18504if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 18505 cat >> confdefs.h <<\EOF
10f2d63a 18506#define wxUSE_GUI 1
a0b9e27f 18507EOF
10f2d63a 18508
8284b0c5 18509
10f2d63a 18510 else
a0b9e27f 18511 cat >> confdefs.h <<\EOF
10f2d63a 18512#define wxUSE_NOGUI 1
a0b9e27f 18513EOF
10f2d63a
VZ
18514
18515fi
18516
8284b0c5 18517
10f2d63a 18518if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 18519 cat >> confdefs.h <<\EOF
10f2d63a 18520#define wxUSE_UNIX 1
a0b9e27f 18521EOF
10f2d63a
VZ
18522
18523fi
18524
8284b0c5 18525
10f2d63a 18526if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 18527 cat >> confdefs.h <<\EOF
10f2d63a 18528#define wxUSE_APPLE_IEEE 1
a0b9e27f 18529EOF
10f2d63a
VZ
18530
18531fi
18532
1e6feb95 18533if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 18534 cat >> confdefs.h <<\EOF
1e6feb95 18535#define wxUSE_TIMER 1
a0b9e27f 18536EOF
1e6feb95
VZ
18537
18538fi
18539
10f2d63a 18540if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 18541 cat >> confdefs.h <<\EOF
10f2d63a 18542#define wxUSE_WAVE 1
a0b9e27f 18543EOF
10f2d63a
VZ
18544
18545fi
18546
1e6feb95 18547if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 18548 cat >> confdefs.h <<\EOF
1e6feb95 18549#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 18550EOF
1e6feb95
VZ
18551
18552fi
18553
18554if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 18555 cat >> confdefs.h <<\EOF
1e6feb95 18556#define wxUSE_STOPWATCH 1
a0b9e27f 18557EOF
1e6feb95
VZ
18558
18559fi
18560
18561if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 18562 cat >> confdefs.h <<\EOF
1e6feb95 18563#define wxUSE_DATETIME 1
a0b9e27f 18564EOF
1e6feb95
VZ
18565
18566fi
18567
18568if test "$wxUSE_TIMEDATE" = "yes"; then
a0b9e27f 18569 cat >> confdefs.h <<\EOF
1e6feb95 18570#define wxUSE_TIMEDATE 1
a0b9e27f 18571EOF
1e6feb95
VZ
18572
18573fi
18574
10f2d63a 18575if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 18576 cat >> confdefs.h <<\EOF
10f2d63a 18577#define wxUSE_FILE 1
a0b9e27f 18578EOF
10f2d63a
VZ
18579
18580fi
18581
1e6feb95 18582if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 18583 cat >> confdefs.h <<\EOF
1e6feb95 18584#define wxUSE_FFILE 1
a0b9e27f 18585EOF
1e6feb95
VZ
18586
18587fi
18588
24528b0c 18589if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 18590 cat >> confdefs.h <<\EOF
24528b0c 18591#define wxUSE_FILESYSTEM 1
a0b9e27f 18592EOF
24528b0c
VS
18593
18594fi
18595
10f2d63a 18596if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 18597 cat >> confdefs.h <<\EOF
10f2d63a 18598#define wxUSE_FS_INET 1
a0b9e27f 18599EOF
10f2d63a
VZ
18600
18601fi
18602
18603if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 18604 cat >> confdefs.h <<\EOF
10f2d63a 18605#define wxUSE_FS_ZIP 1
a0b9e27f 18606EOF
10f2d63a
VZ
18607
18608fi
18609
18610if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 18611 cat >> confdefs.h <<\EOF
10f2d63a 18612#define wxUSE_ZIPSTREAM 1
a0b9e27f 18613EOF
10f2d63a
VZ
18614
18615fi
18616
eb4efbdc 18617if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 18618 cat >> confdefs.h <<\EOF
eb4efbdc 18619#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 18620EOF
eb4efbdc
VZ
18621
18622fi
18623
4f3c5f06 18624if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 18625 cat >> confdefs.h <<\EOF
4f3c5f06 18626#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 18627EOF
4f3c5f06
VZ
18628
18629fi
18630
10f2d63a 18631if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 18632 cat >> confdefs.h <<\EOF
10f2d63a 18633#define wxUSE_BUSYINFO 1
a0b9e27f 18634EOF
10f2d63a
VZ
18635
18636fi
18637
18638if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 18639 cat >> confdefs.h <<\EOF
10f2d63a 18640#define wxUSE_STD_IOSTREAM 1
a0b9e27f 18641EOF
10f2d63a
VZ
18642
18643fi
18644
a3a584a7 18645if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 18646 cat >> confdefs.h <<\EOF
a3a584a7 18647#define wxUSE_TEXTBUFFER 1
a0b9e27f 18648EOF
a3a584a7
VZ
18649
18650fi
18651
10f2d63a 18652if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18653 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 18654 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18655 else
a0b9e27f 18656 cat >> confdefs.h <<\EOF
10f2d63a 18657#define wxUSE_TEXTFILE 1
a0b9e27f 18658EOF
10f2d63a
VZ
18659
18660 fi
18661fi
18662
18663if test "$wxUSE_CONFIG" = "yes" ; then
18664 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 18665 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18666 else
a0b9e27f 18667 cat >> confdefs.h <<\EOF
10f2d63a 18668#define wxUSE_CONFIG 1
a0b9e27f 18669EOF
10f2d63a
VZ
18670
18671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18672 fi
18673fi
18674
18675if test "$wxUSE_INTL" = "yes" ; then
18676 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 18677 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18678 else
a0b9e27f 18679 cat >> confdefs.h <<\EOF
10f2d63a 18680#define wxUSE_INTL 1
a0b9e27f 18681EOF
10f2d63a
VZ
18682
18683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18684 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18685 fi
18686fi
18687
18688if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 18689 cat >> confdefs.h <<\EOF
10f2d63a 18690#define wxUSE_LOG 1
a0b9e27f 18691EOF
10f2d63a 18692
8284b0c5 18693
d73be714 18694 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 18695 cat >> confdefs.h <<\EOF
d73be714 18696#define wxUSE_LOGGUI 1
a0b9e27f 18697EOF
d73be714
VZ
18698
18699 fi
18700
18701 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 18702 cat >> confdefs.h <<\EOF
d73be714 18703#define wxUSE_LOGWINDOW 1
a0b9e27f 18704EOF
69d27ff7
MB
18705
18706 fi
18707
18708 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 18709 cat >> confdefs.h <<\EOF
69d27ff7 18710#define wxUSE_LOG_DIALOG 1
a0b9e27f 18711EOF
d73be714
VZ
18712
18713 fi
10f2d63a
VZ
18714fi
18715
18716if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 18717 cat >> confdefs.h <<\EOF
10f2d63a 18718#define wxUSE_LONGLONG 1
a0b9e27f 18719EOF
10f2d63a
VZ
18720
18721fi
18722
e8f65ba6 18723if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 18724 cat >> confdefs.h <<\EOF
e8f65ba6 18725#define wxUSE_GEOMETRY 1
a0b9e27f 18726EOF
e8f65ba6
RR
18727
18728fi
18729
10f2d63a 18730if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 18731 cat >> confdefs.h <<\EOF
10f2d63a 18732#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 18733EOF
10f2d63a 18734
70f7a477 18735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18736fi
18737
18738if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 18739 cat >> confdefs.h <<\EOF
10f2d63a 18740#define wxUSE_STREAMS 1
a0b9e27f 18741EOF
10f2d63a
VZ
18742
18743fi
18744
5c6fa7d2 18745
8284b0c5 18746if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 18747 for ac_func in strptime
83307f33 18748do
a0b9e27f 18749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 18750echo "configure:18751: checking for $ac_func" >&5
a0b9e27f
MB
18751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18752 echo $ac_n "(cached) $ac_c" 1>&6
18753else
18754 cat > conftest.$ac_ext <<EOF
e26c13cf 18755#line 18756 "configure"
83307f33
VZ
18756#include "confdefs.h"
18757/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18758 which can conflict with char $ac_func(); below. */
83307f33
VZ
18759#include <assert.h>
18760/* Override any gcc2 internal prototype to avoid an error. */
18761/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18762 builtin and then its argument prototype would still apply. */
18763char $ac_func();
18764
18765int main() {
18766
83307f33
VZ
18767/* The GNU C library defines this for functions which it implements
18768 to always fail with ENOSYS. Some functions are actually named
18769 something starting with __ and the normal name is an alias. */
18770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18771choke me
18772#else
a0b9e27f 18773$ac_func();
83307f33
VZ
18774#endif
18775
a0b9e27f
MB
18776; return 0; }
18777EOF
e26c13cf 18778if { (eval echo configure:18779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18779 rm -rf conftest*
18780 eval "ac_cv_func_$ac_func=yes"
18781else
18782 echo "configure: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18784 rm -rf conftest*
18785 eval "ac_cv_func_$ac_func=no"
18786fi
18787rm -f conftest*
18788fi
83307f33 18789
a0b9e27f
MB
18790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18791 echo "$ac_t""yes" 1>&6
18792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18793 cat >> confdefs.h <<EOF
18794#define $ac_tr_func 1
18795EOF
18796
18797else
18798 echo "$ac_t""no" 1>&6
83307f33
VZ
18799fi
18800done
18801
5c6fa7d2 18802
a0b9e27f 18803 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
e26c13cf 18804echo "configure:18805: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
18805if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18806 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 18807else
a0b9e27f
MB
18808
18809 cat > conftest.$ac_ext <<EOF
e26c13cf 18810#line 18811 "configure"
360d6699
VZ
18811#include "confdefs.h"
18812
b4085ce6 18813 #include <time.h>
a0b9e27f
MB
18814
18815int main() {
360d6699
VZ
18816
18817 int tz;
4f11a343 18818 tz = timezone;
a0b9e27f
MB
18819
18820; return 0; }
18821EOF
e26c13cf 18822if { (eval echo configure:18823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18823 rm -rf conftest*
18824
4f11a343 18825 wx_cv_var_timezone=timezone
a0b9e27f 18826
360d6699 18827else
a0b9e27f
MB
18828 echo "configure: failed program was:" >&5
18829 cat conftest.$ac_ext >&5
18830 rm -rf conftest*
18831
18832 cat > conftest.$ac_ext <<EOF
e26c13cf 18833#line 18834 "configure"
360d6699
VZ
18834#include "confdefs.h"
18835
b4085ce6 18836 #include <time.h>
a0b9e27f
MB
18837
18838int main() {
360d6699
VZ
18839
18840 int tz;
18841 tz = _timezone;
a0b9e27f
MB
18842
18843; return 0; }
18844EOF
e26c13cf 18845if { (eval echo configure:18846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18846 rm -rf conftest*
18847
360d6699 18848 wx_cv_var_timezone=_timezone
a0b9e27f 18849
5357c8e8 18850else
a0b9e27f
MB
18851 echo "configure: failed program was:" >&5
18852 cat conftest.$ac_ext >&5
18853 rm -rf conftest*
18854
18855 cat > conftest.$ac_ext <<EOF
e26c13cf 18856#line 18857 "configure"
5357c8e8
VZ
18857#include "confdefs.h"
18858
b4085ce6 18859 #include <time.h>
a0b9e27f
MB
18860
18861int main() {
5357c8e8
VZ
18862
18863 int tz;
4f11a343 18864 tz = __timezone;
a0b9e27f
MB
18865
18866; return 0; }
18867EOF
e26c13cf 18868if { (eval echo configure:18869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18869 rm -rf conftest*
18870
4f11a343 18871 wx_cv_var_timezone=__timezone
a0b9e27f 18872
360d6699 18873else
a0b9e27f
MB
18874 echo "configure: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18876 rm -rf conftest*
18877
f9bc1684 18878 if test "$USE_DOS" = 0 ; then
a0b9e27f 18879 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 18880 fi
a0b9e27f
MB
18881
18882
328a083c 18883fi
a0b9e27f
MB
18884rm -f conftest*
18885
18886
7b4a847f 18887fi
a0b9e27f
MB
18888rm -f conftest*
18889
18890
5c6fa7d2 18891fi
a0b9e27f
MB
18892rm -f conftest*
18893
18894
247f5006 18895fi
a0b9e27f
MB
18896
18897echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 18898
f9bc1684 18899 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 18900 cat >> confdefs.h <<EOF
360d6699 18901#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 18902EOF
360d6699 18903
f9bc1684 18904 fi
698dcdb6 18905
a0b9e27f 18906 for ac_func in localtime
afc31813 18907do
a0b9e27f 18908echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 18909echo "configure:18910: checking for $ac_func" >&5
a0b9e27f
MB
18910if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18911 echo $ac_n "(cached) $ac_c" 1>&6
18912else
18913 cat > conftest.$ac_ext <<EOF
e26c13cf 18914#line 18915 "configure"
10f2d63a 18915#include "confdefs.h"
afc31813 18916/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18917 which can conflict with char $ac_func(); below. */
afc31813
VZ
18918#include <assert.h>
18919/* Override any gcc2 internal prototype to avoid an error. */
18920/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18921 builtin and then its argument prototype would still apply. */
18922char $ac_func();
18923
18924int main() {
18925
afc31813
VZ
18926/* The GNU C library defines this for functions which it implements
18927 to always fail with ENOSYS. Some functions are actually named
18928 something starting with __ and the normal name is an alias. */
18929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18930choke me
18931#else
a0b9e27f 18932$ac_func();
afc31813
VZ
18933#endif
18934
a0b9e27f
MB
18935; return 0; }
18936EOF
e26c13cf 18937if { (eval echo configure:18938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18938 rm -rf conftest*
18939 eval "ac_cv_func_$ac_func=yes"
18940else
18941 echo "configure: failed program was:" >&5
18942 cat conftest.$ac_ext >&5
18943 rm -rf conftest*
18944 eval "ac_cv_func_$ac_func=no"
18945fi
18946rm -f conftest*
18947fi
afc31813 18948
a0b9e27f
MB
18949if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18950 echo "$ac_t""yes" 1>&6
18951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18952 cat >> confdefs.h <<EOF
18953#define $ac_tr_func 1
18954EOF
18955
18956else
18957 echo "$ac_t""no" 1>&6
afc31813
VZ
18958fi
18959done
18960
5c6fa7d2 18961
8284b0c5 18962 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 18963 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
e26c13cf 18964echo "configure:18965: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
18965if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18966 echo $ac_n "(cached) $ac_c" 1>&6
18967else
18968
18969 cat > conftest.$ac_ext <<EOF
e26c13cf 18970#line 18971 "configure"
0470b1e6
VZ
18971#include "confdefs.h"
18972
b4085ce6 18973 #include <time.h>
a0b9e27f
MB
18974
18975int main() {
0470b1e6
VZ
18976
18977 struct tm tm;
18978 tm.tm_gmtoff++;
a0b9e27f
MB
18979
18980; return 0; }
18981EOF
e26c13cf 18982if { (eval echo configure:18983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18983 rm -rf conftest*
18984
f03a98d8 18985 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 18986
0470b1e6 18987else
a0b9e27f
MB
18988 echo "configure: failed program was:" >&5
18989 cat conftest.$ac_ext >&5
18990 rm -rf conftest*
18991 wx_cv_struct_tm_has_gmtoff=no
18992
5c6fa7d2 18993fi
a0b9e27f
MB
18994rm -f conftest*
18995
247f5006 18996fi
a0b9e27f
MB
18997
18998echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18999 fi
19000
19001 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 19002 cat >> confdefs.h <<\EOF
6232543b 19003#define WX_GMTOFF_IN_TM 1
a0b9e27f 19004EOF
0470b1e6 19005
3fcdd07b
VZ
19006 fi
19007
a0b9e27f 19008 for ac_func in gettimeofday ftime
3fcdd07b 19009do
a0b9e27f 19010echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 19011echo "configure:19012: checking for $ac_func" >&5
a0b9e27f
MB
19012if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19013 echo $ac_n "(cached) $ac_c" 1>&6
19014else
19015 cat > conftest.$ac_ext <<EOF
e26c13cf 19016#line 19017 "configure"
3fcdd07b
VZ
19017#include "confdefs.h"
19018/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19019 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
19020#include <assert.h>
19021/* Override any gcc2 internal prototype to avoid an error. */
19022/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19023 builtin and then its argument prototype would still apply. */
19024char $ac_func();
19025
19026int main() {
19027
3fcdd07b
VZ
19028/* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19032choke me
19033#else
a0b9e27f 19034$ac_func();
3fcdd07b
VZ
19035#endif
19036
a0b9e27f
MB
19037; return 0; }
19038EOF
e26c13cf 19039if { (eval echo configure:19040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19040 rm -rf conftest*
19041 eval "ac_cv_func_$ac_func=yes"
19042else
19043 echo "configure: failed program was:" >&5
19044 cat conftest.$ac_ext >&5
19045 rm -rf conftest*
19046 eval "ac_cv_func_$ac_func=no"
19047fi
19048rm -f conftest*
19049fi
19050
19051if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19052 echo "$ac_t""yes" 1>&6
19053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19054 cat >> confdefs.h <<EOF
19055#define $ac_tr_func 1
19056EOF
3fcdd07b 19057 break
a0b9e27f
MB
19058else
19059 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19060fi
19061done
19062
698dcdb6 19063
8284b0c5 19064 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 19065 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
e26c13cf 19066echo "configure:19067: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
19067if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19068 echo $ac_n "(cached) $ac_c" 1>&6
19069else
19070
19071
19072 ac_ext=C
19073# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19074ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19075ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19076ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19077cross_compiling=$ac_cv_prog_cxx_cross
52127426 19078
8284b0c5 19079
a0b9e27f 19080 cat > conftest.$ac_ext <<EOF
e26c13cf 19081#line 19082 "configure"
10f2d63a 19082#include "confdefs.h"
afc31813
VZ
19083
19084 #include <sys/time.h>
19085 #include <unistd.h>
a0b9e27f
MB
19086
19087int main() {
afc31813
VZ
19088
19089 struct timeval tv;
776862b4 19090 gettimeofday(&tv, NULL);
a0b9e27f
MB
19091
19092; return 0; }
19093EOF
e26c13cf 19094if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19095 rm -rf conftest*
afc31813 19096 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 19097else
a0b9e27f
MB
19098 echo "configure: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19100 rm -rf conftest*
19101 cat > conftest.$ac_ext <<EOF
e26c13cf 19102#line 19103 "configure"
10f2d63a 19103#include "confdefs.h"
afc31813
VZ
19104
19105 #include <sys/time.h>
19106 #include <unistd.h>
a0b9e27f
MB
19107
19108int main() {
afc31813
VZ
19109
19110 struct timeval tv;
19111 gettimeofday(&tv);
a0b9e27f
MB
19112
19113; return 0; }
19114EOF
e26c13cf 19115if { (eval echo configure:19116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19116 rm -rf conftest*
afc31813 19117 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 19118else
a0b9e27f
MB
19119 echo "configure: failed program was:" >&5
19120 cat conftest.$ac_ext >&5
19121 rm -rf conftest*
19122
19123 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 19124 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
19125
19126
10f2d63a 19127fi
a0b9e27f
MB
19128rm -f conftest*
19129
10f2d63a 19130fi
a0b9e27f 19131rm -f conftest*
afc31813 19132 ac_ext=c
a0b9e27f 19133# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 19134ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
19135ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19136ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19137cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 19138
a0b9e27f 19139
247f5006 19140fi
a0b9e27f
MB
19141
19142echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 19143
afc31813 19144 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 19145 cat >> confdefs.h <<\EOF
afc31813 19146#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 19147EOF
afc31813
VZ
19148
19149 fi
19150 fi
19151
a0b9e27f 19152 cat >> confdefs.h <<\EOF
afc31813 19153#define wxUSE_TIMEDATE 1
a0b9e27f 19154EOF
afc31813
VZ
19155
19156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19157fi
19158
8284b0c5 19159
52127426 19160if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 19161 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 19162 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
19163 wxUSE_SOCKETS="no"
19164 fi
0feee163 19165fi
b089607b 19166
0feee163
VZ
19167if test "$wxUSE_SOCKETS" = "yes"; then
19168 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 19169 echo $ac_n "checking for socket""... $ac_c" 1>&6
e26c13cf 19170echo "configure:19171: checking for socket" >&5
a0b9e27f
MB
19171if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19172 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19173else
a0b9e27f 19174 cat > conftest.$ac_ext <<EOF
e26c13cf 19175#line 19176 "configure"
c63c7106
VZ
19176#include "confdefs.h"
19177/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19178 which can conflict with char socket(); below. */
c63c7106
VZ
19179#include <assert.h>
19180/* Override any gcc2 internal prototype to avoid an error. */
19181/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19182 builtin and then its argument prototype would still apply. */
19183char socket();
19184
19185int main() {
19186
c63c7106
VZ
19187/* The GNU C library defines this for functions which it implements
19188 to always fail with ENOSYS. Some functions are actually named
19189 something starting with __ and the normal name is an alias. */
19190#if defined (__stub_socket) || defined (__stub___socket)
19191choke me
19192#else
a0b9e27f 19193socket();
c63c7106
VZ
19194#endif
19195
a0b9e27f
MB
19196; return 0; }
19197EOF
e26c13cf 19198if { (eval echo configure:19199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19199 rm -rf conftest*
19200 eval "ac_cv_func_socket=yes"
19201else
19202 echo "configure: failed program was:" >&5
19203 cat conftest.$ac_ext >&5
19204 rm -rf conftest*
19205 eval "ac_cv_func_socket=no"
19206fi
19207rm -f conftest*
19208fi
19209
19210if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19211 echo "$ac_t""yes" 1>&6
c63c7106
VZ
19212 :
19213else
a0b9e27f
MB
19214 echo "$ac_t""no" 1>&6
19215echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
e26c13cf 19216echo "configure:19217: checking for socket in -lsocket" >&5
a0b9e27f
MB
19217ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19218if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19219 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19220else
a0b9e27f 19221 ac_save_LIBS="$LIBS"
c63c7106 19222LIBS="-lsocket $LIBS"
a0b9e27f 19223cat > conftest.$ac_ext <<EOF
e26c13cf 19224#line 19225 "configure"
c63c7106
VZ
19225#include "confdefs.h"
19226/* Override any gcc2 internal prototype to avoid an error. */
19227/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19228 builtin and then its argument prototype would still apply. */
19229char socket();
19230
19231int main() {
19232socket()
19233; return 0; }
19234EOF
e26c13cf 19235if { (eval echo configure:19236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19236 rm -rf conftest*
19237 eval "ac_cv_lib_$ac_lib_var=yes"
19238else
19239 echo "configure: failed program was:" >&5
19240 cat conftest.$ac_ext >&5
19241 rm -rf conftest*
19242 eval "ac_cv_lib_$ac_lib_var=no"
19243fi
19244rm -f conftest*
19245LIBS="$ac_save_LIBS"
19246
19247fi
19248if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19249 echo "$ac_t""yes" 1>&6
d558c907
VS
19250 if test "$INET_LINK" != " -lsocket"; then
19251 INET_LINK="$INET_LINK -lsocket"
19252 fi
c63c7106 19253else
a0b9e27f 19254 echo "$ac_t""no" 1>&6
afc31813 19255
a0b9e27f 19256 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 19257 wxUSE_SOCKETS=no
a0b9e27f
MB
19258
19259
6232543b 19260fi
b089607b 19261
a0b9e27f 19262
1e487827 19263fi
afc31813 19264
3a922bb4 19265 fi
0feee163 19266fi
51a9faba 19267
0feee163
VZ
19268if test "$wxUSE_SOCKETS" = "yes" ; then
19269 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 19270 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
e26c13cf 19271echo "configure:19272: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
19272if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19273 echo $ac_n "(cached) $ac_c" 1>&6
19274else
19275
19276
19277 ac_ext=C
19278# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19279ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19280ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19281ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19282cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 19283
8284b0c5 19284
a0b9e27f 19285 cat > conftest.$ac_ext <<EOF
e26c13cf 19286#line 19287 "configure"
afc31813 19287#include "confdefs.h"
51a9faba 19288
3a922bb4
RL
19289 #include <sys/types.h>
19290 #include <sys/socket.h>
a0b9e27f
MB
19291
19292int main() {
51a9faba 19293
3a922bb4
RL
19294 socklen_t len;
19295 getsockname(0, 0, &len);
a0b9e27f
MB
19296
19297; return 0; }
19298EOF
e26c13cf 19299if { (eval echo configure:19300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19300 rm -rf conftest*
51a9faba 19301 wx_cv_type_getsockname3=socklen_t
afc31813 19302else
a0b9e27f
MB
19303 echo "configure: failed program was:" >&5
19304 cat conftest.$ac_ext >&5
19305 rm -rf conftest*
19306 cat > conftest.$ac_ext <<EOF
e26c13cf 19307#line 19308 "configure"
afc31813 19308#include "confdefs.h"
51a9faba 19309
3a922bb4
RL
19310 #include <sys/types.h>
19311 #include <sys/socket.h>
a0b9e27f
MB
19312
19313int main() {
51a9faba 19314
3a922bb4
RL
19315 size_t len;
19316 getsockname(0, 0, &len);
a0b9e27f
MB
19317
19318; return 0; }
19319EOF
e26c13cf 19320if { (eval echo configure:19321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19321 rm -rf conftest*
51a9faba 19322 wx_cv_type_getsockname3=size_t
afc31813 19323else
a0b9e27f
MB
19324 echo "configure: failed program was:" >&5
19325 cat conftest.$ac_ext >&5
19326 rm -rf conftest*
19327 cat > conftest.$ac_ext <<EOF
e26c13cf 19328#line 19329 "configure"
afc31813 19329#include "confdefs.h"
51a9faba 19330
3a922bb4
RL
19331 #include <sys/types.h>
19332 #include <sys/socket.h>
a0b9e27f
MB
19333
19334int main() {
51a9faba 19335
3a922bb4
RL
19336 int len;
19337 getsockname(0, 0, &len);
a0b9e27f
MB
19338
19339; return 0; }
19340EOF
e26c13cf 19341if { (eval echo configure:19342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19342 rm -rf conftest*
51a9faba 19343 wx_cv_type_getsockname3=int
afc31813 19344else
a0b9e27f
MB
19345 echo "configure: failed program was:" >&5
19346 cat conftest.$ac_ext >&5
19347 rm -rf conftest*
19348 wx_cv_type_getsockname3=unknown
19349
afc31813 19350fi
a0b9e27f
MB
19351rm -f conftest*
19352
afc31813 19353fi
a0b9e27f
MB
19354rm -f conftest*
19355
afc31813 19356fi
a0b9e27f 19357rm -f conftest*
51a9faba 19358
3a922bb4 19359 ac_ext=c
a0b9e27f 19360# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19361ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
19362ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19363ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19364cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 19365
a0b9e27f 19366
247f5006 19367fi
a0b9e27f
MB
19368
19369echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19370
3a922bb4
RL
19371 if test "$wx_cv_type_getsockname3" = "unknown"; then
19372 wxUSE_SOCKETS=no
a0b9e27f 19373 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 19374 else
a0b9e27f 19375 cat >> confdefs.h <<EOF
51a9faba 19376#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 19377EOF
51a9faba 19378
3a922bb4 19379 fi
51a9faba
VZ
19380 fi
19381fi
afc31813 19382
51a9faba 19383if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 19384 cat >> confdefs.h <<\EOF
afc31813 19385#define wxUSE_SOCKETS 1
a0b9e27f 19386EOF
afc31813 19387
70f7a477 19388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19389fi
19390
8284b0c5 19391
dc3d889d
VZ
19392if test "$wxUSE_GUI" = "yes"; then
19393
156b2523 19394 if test "$TOOLKIT" = "MAC"; then
a0b9e27f 19395 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
19396 wxUSE_JOYSTICK=no
19397 fi
19398 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 19399 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 19400 wxUSE_JOYSTICK=no
f79bd02d
JS
19401 fi
19402 if test "$TOOLKIT" = "X11"; then
a0b9e27f 19403 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 19404 wxUSE_JOYSTICK=no
156b2523
GD
19405 fi
19406
3a922bb4
RL
19407 if test "$TOOLKIT" != "MSW"; then
19408 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 19409 for ac_hdr in linux/joystick.h
10f2d63a 19410do
a0b9e27f
MB
19411ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19412echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e26c13cf 19413echo "configure:19414: checking for $ac_hdr" >&5
a0b9e27f
MB
19414if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19415 echo $ac_n "(cached) $ac_c" 1>&6
19416else
19417 cat > conftest.$ac_ext <<EOF
e26c13cf 19418#line 19419 "configure"
247f5006 19419#include "confdefs.h"
a0b9e27f
MB
19420#include <$ac_hdr>
19421EOF
19422ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 19423{ (eval echo configure:19424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
19424ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19425if test -z "$ac_err"; then
19426 rm -rf conftest*
19427 eval "ac_cv_header_$ac_safe=yes"
19428else
19429 echo "$ac_err" >&5
19430 echo "configure: failed program was:" >&5
247f5006 19431 cat conftest.$ac_ext >&5
a0b9e27f
MB
19432 rm -rf conftest*
19433 eval "ac_cv_header_$ac_safe=no"
247f5006 19434fi
a0b9e27f 19435rm -f conftest*
10f2d63a 19436fi
a0b9e27f
MB
19437if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19438 echo "$ac_t""yes" 1>&6
19439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19440 cat >> confdefs.h <<EOF
19441#define $ac_tr_hdr 1
19442EOF
19443
19444else
19445 echo "$ac_t""no" 1>&6
247f5006 19446fi
10f2d63a
VZ
19447done
19448
3a922bb4
RL
19449 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19450 wxUSE_JOYSTICK=no
a0b9e27f 19451 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19452 fi
19453 fi
19454 fi
b089607b 19455
3a922bb4 19456 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 19457 cat >> confdefs.h <<\EOF
10f2d63a 19458#define wxUSE_JOYSTICK 1
a0b9e27f 19459EOF
10f2d63a 19460
3a922bb4
RL
19461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19462 fi
dc3d889d
VZ
19463fi
19464
8284b0c5 19465
b089607b
VZ
19466if test "$TOOLKIT" != "MSW"; then
19467
3a922bb4
RL
19468 HAVE_DL_FUNCS=0
19469 HAVE_SHL_FUNCS=0
0b9ab0bd 19470 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19471 if test "$USE_DARWIN" = 1; then
19472 HAVE_DL_FUNCS=1
19473 else
a0b9e27f 19474 for ac_func in dlopen
10f2d63a 19475do
a0b9e27f 19476echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 19477echo "configure:19478: checking for $ac_func" >&5
a0b9e27f
MB
19478if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19479 echo $ac_n "(cached) $ac_c" 1>&6
19480else
19481 cat > conftest.$ac_ext <<EOF
e26c13cf 19482#line 19483 "configure"
10f2d63a
VZ
19483#include "confdefs.h"
19484/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19485 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19486#include <assert.h>
19487/* Override any gcc2 internal prototype to avoid an error. */
19488/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19489 builtin and then its argument prototype would still apply. */
19490char $ac_func();
19491
19492int main() {
19493
10f2d63a
VZ
19494/* The GNU C library defines this for functions which it implements
19495 to always fail with ENOSYS. Some functions are actually named
19496 something starting with __ and the normal name is an alias. */
19497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19498choke me
19499#else
a0b9e27f 19500$ac_func();
10f2d63a
VZ
19501#endif
19502
a0b9e27f
MB
19503; return 0; }
19504EOF
e26c13cf 19505if { (eval echo configure:19506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19506 rm -rf conftest*
19507 eval "ac_cv_func_$ac_func=yes"
19508else
19509 echo "configure: failed program was:" >&5
19510 cat conftest.$ac_ext >&5
19511 rm -rf conftest*
19512 eval "ac_cv_func_$ac_func=no"
19513fi
19514rm -f conftest*
19515fi
19516
19517if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19518 echo "$ac_t""yes" 1>&6
19519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19520 cat >> confdefs.h <<EOF
19521#define $ac_tr_func 1
19522EOF
19523
19524 cat >> confdefs.h <<\EOF
10f2d63a 19525#define HAVE_DLOPEN 1
a0b9e27f 19526EOF
10f2d63a 19527
3a922bb4 19528 HAVE_DL_FUNCS=1
a0b9e27f 19529
10f2d63a 19530else
a0b9e27f
MB
19531 echo "$ac_t""no" 1>&6
19532echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
e26c13cf 19533echo "configure:19534: checking for dlopen in -ldl" >&5
a0b9e27f
MB
19534ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19535if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19536 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19537else
a0b9e27f 19538 ac_save_LIBS="$LIBS"
10f2d63a 19539LIBS="-ldl $LIBS"
a0b9e27f 19540cat > conftest.$ac_ext <<EOF
e26c13cf 19541#line 19542 "configure"
10f2d63a
VZ
19542#include "confdefs.h"
19543/* Override any gcc2 internal prototype to avoid an error. */
19544/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19545 builtin and then its argument prototype would still apply. */
19546char dlopen();
19547
19548int main() {
19549dlopen()
19550; return 0; }
19551EOF
e26c13cf 19552if { (eval echo configure:19553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19553 rm -rf conftest*
19554 eval "ac_cv_lib_$ac_lib_var=yes"
19555else
19556 echo "configure: failed program was:" >&5
19557 cat conftest.$ac_ext >&5
19558 rm -rf conftest*
19559 eval "ac_cv_lib_$ac_lib_var=no"
19560fi
19561rm -f conftest*
19562LIBS="$ac_save_LIBS"
19563
19564fi
19565if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19566 echo "$ac_t""yes" 1>&6
19567
19568 cat >> confdefs.h <<\EOF
10f2d63a 19569#define HAVE_DLOPEN 1
a0b9e27f 19570EOF
10f2d63a 19571
3a922bb4 19572 HAVE_DL_FUNCS=1
3d63bc3a 19573 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 19574
10f2d63a 19575else
a0b9e27f 19576 echo "$ac_t""no" 1>&6
10f2d63a 19577
a0b9e27f 19578 for ac_func in shl_load
10f2d63a 19579do
a0b9e27f 19580echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 19581echo "configure:19582: checking for $ac_func" >&5
a0b9e27f
MB
19582if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19583 echo $ac_n "(cached) $ac_c" 1>&6
19584else
19585 cat > conftest.$ac_ext <<EOF
e26c13cf 19586#line 19587 "configure"
10f2d63a
VZ
19587#include "confdefs.h"
19588/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19589 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19590#include <assert.h>
19591/* Override any gcc2 internal prototype to avoid an error. */
19592/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19593 builtin and then its argument prototype would still apply. */
19594char $ac_func();
19595
19596int main() {
19597
10f2d63a
VZ
19598/* The GNU C library defines this for functions which it implements
19599 to always fail with ENOSYS. Some functions are actually named
19600 something starting with __ and the normal name is an alias. */
19601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19602choke me
19603#else
a0b9e27f 19604$ac_func();
10f2d63a
VZ
19605#endif
19606
a0b9e27f
MB
19607; return 0; }
19608EOF
e26c13cf 19609if { (eval echo configure:19610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19610 rm -rf conftest*
19611 eval "ac_cv_func_$ac_func=yes"
19612else
19613 echo "configure: failed program was:" >&5
19614 cat conftest.$ac_ext >&5
19615 rm -rf conftest*
19616 eval "ac_cv_func_$ac_func=no"
19617fi
19618rm -f conftest*
19619fi
19620
19621if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19622 echo "$ac_t""yes" 1>&6
19623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19624 cat >> confdefs.h <<EOF
19625#define $ac_tr_func 1
19626EOF
19627
19628 cat >> confdefs.h <<\EOF
10f2d63a 19629#define HAVE_SHL_LOAD 1
a0b9e27f 19630EOF
10f2d63a 19631
3a922bb4 19632 HAVE_SHL_FUNCS=1
a0b9e27f 19633
10f2d63a 19634else
a0b9e27f
MB
19635 echo "$ac_t""no" 1>&6
19636echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
e26c13cf 19637echo "configure:19638: checking for dld in -lshl_load" >&5
a0b9e27f
MB
19638ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19639if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19640 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19641else
a0b9e27f 19642 ac_save_LIBS="$LIBS"
f6bcfd97 19643LIBS="-lshl_load $LIBS"
a0b9e27f 19644cat > conftest.$ac_ext <<EOF
e26c13cf 19645#line 19646 "configure"
f6bcfd97 19646#include "confdefs.h"
8284b0c5 19647/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 19648/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19649 builtin and then its argument prototype would still apply. */
19650char dld();
19651
19652int main() {
19653dld()
19654; return 0; }
19655EOF
e26c13cf 19656if { (eval echo configure:19657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19657 rm -rf conftest*
19658 eval "ac_cv_lib_$ac_lib_var=yes"
19659else
19660 echo "configure: failed program was:" >&5
19661 cat conftest.$ac_ext >&5
19662 rm -rf conftest*
19663 eval "ac_cv_lib_$ac_lib_var=no"
19664fi
19665rm -f conftest*
19666LIBS="$ac_save_LIBS"
f6bcfd97 19667
a0b9e27f
MB
19668fi
19669if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19670 echo "$ac_t""yes" 1>&6
19671
3a922bb4 19672 HAVE_SHL_FUNCS=1
3d63bc3a 19673 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
19674
19675else
19676 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19677fi
19678
a0b9e27f 19679
10f2d63a
VZ
19680fi
19681done
19682
a0b9e27f 19683
10f2d63a
VZ
19684fi
19685
a0b9e27f 19686
10f2d63a
VZ
19687fi
19688done
19689
5c6fa7d2 19690
8284b0c5 19691 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 19692 for ac_func in dlerror
f6bcfd97 19693do
a0b9e27f 19694echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e26c13cf 19695echo "configure:19696: checking for $ac_func" >&5
a0b9e27f
MB
19696if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19697 echo $ac_n "(cached) $ac_c" 1>&6
19698else
19699 cat > conftest.$ac_ext <<EOF
e26c13cf 19700#line 19701 "configure"
f6bcfd97
BP
19701#include "confdefs.h"
19702/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19703 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19704#include <assert.h>
19705/* Override any gcc2 internal prototype to avoid an error. */
19706/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19707 builtin and then its argument prototype would still apply. */
19708char $ac_func();
19709
19710int main() {
19711
f6bcfd97
BP
19712/* The GNU C library defines this for functions which it implements
19713 to always fail with ENOSYS. Some functions are actually named
19714 something starting with __ and the normal name is an alias. */
19715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19716choke me
19717#else
a0b9e27f 19718$ac_func();
f6bcfd97
BP
19719#endif
19720
a0b9e27f
MB
19721; return 0; }
19722EOF
e26c13cf 19723if { (eval echo configure:19724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19724 rm -rf conftest*
19725 eval "ac_cv_func_$ac_func=yes"
19726else
19727 echo "configure: failed program was:" >&5
19728 cat conftest.$ac_ext >&5
19729 rm -rf conftest*
19730 eval "ac_cv_func_$ac_func=no"
19731fi
19732rm -f conftest*
19733fi
19734
19735if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19736 echo "$ac_t""yes" 1>&6
19737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19738 cat >> confdefs.h <<EOF
19739#define $ac_tr_func 1
19740EOF
19741 cat >> confdefs.h <<\EOF
f6bcfd97 19742#define HAVE_DLERROR 1
a0b9e27f 19743EOF
f6bcfd97
BP
19744
19745else
a0b9e27f
MB
19746 echo "$ac_t""no" 1>&6
19747echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
e26c13cf 19748echo "configure:19749: checking for dlerror in -ldl" >&5
a0b9e27f
MB
19749ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19751 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19752else
a0b9e27f 19753 ac_save_LIBS="$LIBS"
f6bcfd97 19754LIBS="-ldl $LIBS"
a0b9e27f 19755cat > conftest.$ac_ext <<EOF
e26c13cf 19756#line 19757 "configure"
f6bcfd97
BP
19757#include "confdefs.h"
19758/* Override any gcc2 internal prototype to avoid an error. */
19759/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19760 builtin and then its argument prototype would still apply. */
19761char dlerror();
19762
19763int main() {
19764dlerror()
19765; return 0; }
19766EOF
e26c13cf 19767if { (eval echo configure:19768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19768 rm -rf conftest*
19769 eval "ac_cv_lib_$ac_lib_var=yes"
19770else
19771 echo "configure: failed program was:" >&5
19772 cat conftest.$ac_ext >&5
19773 rm -rf conftest*
19774 eval "ac_cv_lib_$ac_lib_var=no"
19775fi
19776rm -f conftest*
19777LIBS="$ac_save_LIBS"
19778
19779fi
19780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19781 echo "$ac_t""yes" 1>&6
19782 cat >> confdefs.h <<\EOF
f6bcfd97 19783#define HAVE_DLERROR 1
a0b9e27f 19784EOF
f6bcfd97 19785
a0b9e27f
MB
19786else
19787 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19788fi
19789
19790fi
19791done
19792
3a922bb4
RL
19793 fi
19794 fi
f6bcfd97 19795
3a922bb4
RL
19796 if test "$HAVE_DL_FUNCS" = 0; then
19797 if test "$HAVE_SHL_FUNCS" = 0; then
19798 if test "$USE_UNIX" = 1; then
a0b9e27f 19799 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19800 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19801 wxUSE_DYNLIB_CLASS=no
19802 else
a0b9e27f 19803 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
19804 fi
19805 fi
10f2d63a
VZ
19806 fi
19807 fi
19808fi
19809
0b9ab0bd 19810if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 19811 cat >> confdefs.h <<\EOF
0b9ab0bd 19812#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 19813EOF
0b9ab0bd
RL
19814
19815elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 19816 cat >> confdefs.h <<\EOF
10f2d63a 19817#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 19818EOF
10f2d63a
VZ
19819
19820fi
19821
8284b0c5 19822
1e6feb95 19823if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 19824 cat >> confdefs.h <<\EOF
1e6feb95 19825#define wxUSE_FONTMAP 1
a0b9e27f 19826EOF
1e6feb95
VZ
19827
19828fi
19829
10f2d63a 19830if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 19831 cat >> confdefs.h <<\EOF
10f2d63a 19832#define wxUSE_UNICODE 1
a0b9e27f 19833EOF
10f2d63a 19834
8284b0c5 19835
bbc3925a
VS
19836 if test "$wxUSE_MSW" != 1; then
19837 wxUSE_UNICODE_MSLU=no
19838 fi
a72a4bfa
VS
19839
19840 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 19841 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
e26c13cf 19842echo "configure:19843: checking for main in -lunicows" >&5
a0b9e27f
MB
19843ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19845 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 19846else
a0b9e27f 19847 ac_save_LIBS="$LIBS"
a72a4bfa 19848LIBS="-lunicows $LIBS"
a0b9e27f 19849cat > conftest.$ac_ext <<EOF
e26c13cf 19850#line 19851 "configure"
a72a4bfa
VS
19851#include "confdefs.h"
19852
a0b9e27f
MB
19853int main() {
19854main()
19855; return 0; }
19856EOF
e26c13cf 19857if { (eval echo configure:19858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19858 rm -rf conftest*
19859 eval "ac_cv_lib_$ac_lib_var=yes"
19860else
19861 echo "configure: failed program was:" >&5
19862 cat conftest.$ac_ext >&5
19863 rm -rf conftest*
19864 eval "ac_cv_lib_$ac_lib_var=no"
19865fi
19866rm -f conftest*
19867LIBS="$ac_save_LIBS"
8284b0c5 19868
a0b9e27f
MB
19869fi
19870if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19871 echo "$ac_t""yes" 1>&6
19872
19873 cat >> confdefs.h <<\EOF
a72a4bfa 19874#define wxUSE_UNICODE_MSLU 1
a0b9e27f 19875EOF
a72a4bfa 19876
a0b9e27f 19877
a72a4bfa 19878else
a0b9e27f 19879 echo "$ac_t""no" 1>&6
a72a4bfa 19880
a0b9e27f
MB
19881 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19882 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 19883 wxUSE_UNICODE_MSLU=no
a0b9e27f 19884
a72a4bfa
VS
19885fi
19886
19887 fi
10f2d63a
VZ
19888fi
19889
10f2d63a 19890if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 19891 cat >> confdefs.h <<\EOF
10f2d63a 19892#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 19893EOF
10f2d63a
VZ
19894
19895fi
19896
8284b0c5
MB
19897
19898
10f2d63a
VZ
19899IODBC_C_SRC=""
19900if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 19901 cat >> confdefs.h <<\EOF
10f2d63a 19902#define wxUSE_ODBC 1
a0b9e27f 19903EOF
10f2d63a
VZ
19904
19905 WXODBCFLAG="-D_IODBC_"
19906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19907fi
19908
8284b0c5 19909
10f2d63a 19910if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 19911 cat >> confdefs.h <<\EOF
10f2d63a 19912#define wxUSE_POSTSCRIPT 1
a0b9e27f 19913EOF
10f2d63a
VZ
19914
19915fi
19916
a0b9e27f 19917cat >> confdefs.h <<\EOF
10f2d63a 19918#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 19919EOF
10f2d63a 19920
8284b0c5 19921
a0b9e27f 19922cat >> confdefs.h <<\EOF
10f2d63a 19923#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 19924EOF
10f2d63a 19925
8284b0c5
MB
19926
19927
10f2d63a 19928if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 19929 cat >> confdefs.h <<\EOF
10f2d63a 19930#define wxUSE_CONSTRAINTS 1
a0b9e27f 19931EOF
10f2d63a
VZ
19932
19933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19934fi
19935
19936if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19937
8284b0c5 19938
bb811f17 19939 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 19940 cat >> confdefs.h <<\EOF
10f2d63a 19941#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 19942EOF
10f2d63a 19943
bb811f17
JS
19944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19945 fi
10f2d63a
VZ
19946fi
19947
19948if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 19949 cat >> confdefs.h <<\EOF
10f2d63a 19950#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 19951EOF
10f2d63a
VZ
19952
19953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19954 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19956 fi
19957fi
19958
19959if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 19960 cat >> confdefs.h <<\EOF
10f2d63a 19961#define wxUSE_HELP 1
a0b9e27f 19962EOF
10f2d63a
VZ
19963
19964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19965
77e13408 19966 if test "$wxUSE_MSW" = 1; then
031d8228 19967 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 19968 cat >> confdefs.h <<\EOF
29fd3c0c 19969#define wxUSE_MS_HTML_HELP 1
a0b9e27f 19970EOF
29fd3c0c 19971
3e44f09d 19972 fi
3379ed37 19973 fi
031d8228
VS
19974
19975 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19976 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 19977 cat >> confdefs.h <<\EOF
031d8228 19978#define wxUSE_WXHTML_HELP 1
a0b9e27f 19979EOF
031d8228
VS
19980
19981 else
a0b9e27f 19982 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
19983 wxUSE_WXHTML_HELP=no
19984 fi
19985 fi
10f2d63a
VZ
19986fi
19987
19988if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19989 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 19990 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19991 else
a0b9e27f 19992 cat >> confdefs.h <<\EOF
10f2d63a 19993#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 19994EOF
10f2d63a
VZ
19995
19996 fi
19997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19998fi
19999
20000if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 20001 cat >> confdefs.h <<\EOF
10f2d63a 20002#define wxUSE_PROLOGIO 1
a0b9e27f 20003EOF
10f2d63a
VZ
20004
20005fi
20006
20007if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 20008 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 20009 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
e334d0ea 20010 else
a0b9e27f 20011 cat >> confdefs.h <<\EOF
10f2d63a 20012#define wxUSE_RESOURCES 1
a0b9e27f 20013EOF
10f2d63a 20014
e334d0ea
JS
20015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20016 fi
10f2d63a
VZ
20017fi
20018
20019if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 20020 cat >> confdefs.h <<\EOF
10f2d63a 20021#define wxUSE_X_RESOURCES 1
a0b9e27f 20022EOF
10f2d63a
VZ
20023
20024fi
20025
8284b0c5 20026
77e13408
RL
20027if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20028 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 20029 -o "$wxUSE_OLE" = "yes" \
77e13408 20030 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 20031 for ac_hdr in ole2.h
10f2d63a 20032do
a0b9e27f
MB
20033ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20034echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e26c13cf 20035echo "configure:20036: checking for $ac_hdr" >&5
a0b9e27f
MB
20036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20037 echo $ac_n "(cached) $ac_c" 1>&6
20038else
20039 cat > conftest.$ac_ext <<EOF
e26c13cf 20040#line 20041 "configure"
10f2d63a 20041#include "confdefs.h"
a0b9e27f
MB
20042#include <$ac_hdr>
20043EOF
20044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 20045{ (eval echo configure:20046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20047if test -z "$ac_err"; then
20048 rm -rf conftest*
20049 eval "ac_cv_header_$ac_safe=yes"
20050else
20051 echo "$ac_err" >&5
20052 echo "configure: failed program was:" >&5
10f2d63a 20053 cat conftest.$ac_ext >&5
a0b9e27f
MB
20054 rm -rf conftest*
20055 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20056fi
a0b9e27f 20057rm -f conftest*
10f2d63a 20058fi
a0b9e27f
MB
20059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20060 echo "$ac_t""yes" 1>&6
20061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20062 cat >> confdefs.h <<EOF
20063#define $ac_tr_hdr 1
20064EOF
20065
20066else
20067 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20068fi
20069done
20070
8284b0c5 20071
2b9bdf71
VZ
20072 if test "$ac_cv_header_ole2_h" = "yes" ; then
20073 if test "$GCC" = yes ; then
a0b9e27f
MB
20074
20075 ac_ext=C
20076# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20077ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20078ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20079ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20080cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
20081
20082
a0b9e27f 20083 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
e26c13cf 20084echo "configure:20085: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 20085 cat > conftest.$ac_ext <<EOF
e26c13cf 20086#line 20087 "configure"
8284b0c5
MB
20087#include "confdefs.h"
20088#include <windows.h>
20089 #include <ole2.h>
a0b9e27f 20090int main() {
8284b0c5 20091
a0b9e27f
MB
20092; return 0; }
20093EOF
e26c13cf 20094if { (eval echo configure:20095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20095 rm -rf conftest*
20096 echo "$ac_t""no" 1>&6
20097else
20098 echo "configure: failed program was:" >&5
20099 cat conftest.$ac_ext >&5
20100 rm -rf conftest*
20101 echo "$ac_t""yes" 1>&6
8284b0c5
MB
20102 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20103fi
a0b9e27f 20104rm -f conftest*
8284b0c5 20105 ac_ext=c
a0b9e27f 20106# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20107ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20108ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20109ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20110cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20111
2b9bdf71 20112 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 20113 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 20114 cat >> confdefs.h <<\EOF
4f11a343 20115#define wxUSE_OLE 1
a0b9e27f 20116EOF
4f11a343 20117
8284b0c5 20118
2b9bdf71
VZ
20119 fi
20120
a0b9e27f 20121 cat >> confdefs.h <<\EOF
2b9bdf71 20122#define wxUSE_DATAOBJ 1
a0b9e27f 20123EOF
2b9bdf71
VZ
20124
20125 else
a0b9e27f 20126 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
20127
20128 wxUSE_CLIPBOARD=no
20129 wxUSE_DRAG_AND_DROP=no
20130 wxUSE_DATAOBJ=no
3bce6687
JS
20131 wxUSE_OLE=no
20132 fi
20133
20134 if test "$wxUSE_METAFILE" = "yes"; then
20135 cat >> confdefs.h <<\EOF
20136#define wxUSE_METAFILE 1
20137EOF
20138
20139
20140 cat >> confdefs.h <<\EOF
20141#define wxUSE_ENH_METAFILE 1
20142EOF
20143
20144 fi
20145fi
20146
20147if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20148 -o "$wxUSE_CLIPBOARD" = "yes" \
20149 -o "$wxUSE_OLE" = "yes" \
20150 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20151 for ac_hdr in ole2.h
20152do
20153ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20154echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e26c13cf 20155echo "configure:20156: checking for $ac_hdr" >&5
3bce6687
JS
20156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20157 echo $ac_n "(cached) $ac_c" 1>&6
20158else
20159 cat > conftest.$ac_ext <<EOF
e26c13cf 20160#line 20161 "configure"
3bce6687
JS
20161#include "confdefs.h"
20162#include <$ac_hdr>
20163EOF
20164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e26c13cf 20165{ (eval echo configure:20166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3bce6687
JS
20166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20167if test -z "$ac_err"; then
20168 rm -rf conftest*
20169 eval "ac_cv_header_$ac_safe=yes"
20170else
20171 echo "$ac_err" >&5
20172 echo "configure: failed program was:" >&5
20173 cat conftest.$ac_ext >&5
20174 rm -rf conftest*
20175 eval "ac_cv_header_$ac_safe=no"
20176fi
20177rm -f conftest*
20178fi
20179if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20180 echo "$ac_t""yes" 1>&6
20181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20182 cat >> confdefs.h <<EOF
20183#define $ac_tr_hdr 1
20184EOF
20185
20186else
20187 echo "$ac_t""no" 1>&6
20188fi
20189done
20190
20191
20192 if test "$ac_cv_header_ole2_h" = "yes" ; then
20193 if test "$GCC" = yes ; then
20194
20195 ac_ext=C
20196# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20197ac_cpp='$CXXCPP $CPPFLAGS'
20198ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20199ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20200cross_compiling=$ac_cv_prog_cxx_cross
20201
20202
20203 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
e26c13cf 20204echo "configure:20205: checking if g++ requires -fvtable-thunks" >&5
3bce6687 20205 cat > conftest.$ac_ext <<EOF
e26c13cf 20206#line 20207 "configure"
3bce6687
JS
20207#include "confdefs.h"
20208#include <windows.h>
20209 #include <ole2.h>
20210int main() {
20211
20212; return 0; }
20213EOF
e26c13cf 20214if { (eval echo configure:20215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3bce6687
JS
20215 rm -rf conftest*
20216 echo "$ac_t""no" 1>&6
20217else
20218 echo "configure: failed program was:" >&5
20219 cat conftest.$ac_ext >&5
20220 rm -rf conftest*
20221 echo "$ac_t""yes" 1>&6
20222 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20223fi
20224rm -f conftest*
20225 ac_ext=c
20226# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20227ac_cpp='$CPP $CPPFLAGS'
20228ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20229ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20230cross_compiling=$ac_cv_prog_cc_cross
20231
20232 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20233 LIBS=" -lwine_uuid$LIBS"
20234 cat >> confdefs.h <<\EOF
20235#define wxUSE_OLE 1
20236EOF
20237
20238
20239 fi
20240
20241 cat >> confdefs.h <<\EOF
20242#define wxUSE_DATAOBJ 1
20243EOF
20244
20245 else
20246 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20247
20248 wxUSE_CLIPBOARD=no
20249 wxUSE_DRAG_AND_DROP=no
20250 wxUSE_DATAOBJ=no
20251 wxUSE_OLE=no
2b9bdf71
VZ
20252 fi
20253
77e13408 20254 if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 20255 cat >> confdefs.h <<\EOF
b64f0a5f 20256#define wxUSE_METAFILE 1
a0b9e27f 20257EOF
b64f0a5f 20258
8284b0c5 20259
a0b9e27f 20260 cat >> confdefs.h <<\EOF
b64f0a5f 20261#define wxUSE_ENH_METAFILE 1
a0b9e27f 20262EOF
b64f0a5f 20263
2b9bdf71
VZ
20264 fi
20265fi
20266
20267if test "$wxUSE_IPC" = "yes"; then
20268 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 20269 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
20270 fi
20271
a0b9e27f 20272 cat >> confdefs.h <<\EOF
2b9bdf71 20273#define wxUSE_IPC 1
a0b9e27f 20274EOF
2b9bdf71
VZ
20275
20276fi
20277
20278if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 20279 if test "$wxUSE_MGL" = 1; then
a0b9e27f 20280 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20281 wxUSE_CLIPBOARD=no
20282 fi
20283
20284 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 20285 cat >> confdefs.h <<\EOF
2b9bdf71 20286#define wxUSE_CLIPBOARD 1
a0b9e27f 20287EOF
2b9bdf71 20288
8284b0c5 20289
a0b9e27f 20290 cat >> confdefs.h <<\EOF
673f4220 20291#define wxUSE_DATAOBJ 1
a0b9e27f 20292EOF
673f4220 20293
6c657b52 20294 fi
2b9bdf71
VZ
20295fi
20296
20297if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20298 if test "$wxUSE_GTK" = 1; then
20299 if test "$WXGTK12" != 1; then
a0b9e27f 20300 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
20301 wxUSE_DRAG_AND_DROP=no
20302 fi
20303 fi
20304
2b9bdf71 20305 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 20306 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
20307 wxUSE_DRAG_AND_DROP=no
20308 fi
20309
f79bd02d 20310 if test "$wxUSE_X11" = 1; then
a0b9e27f 20311 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
20312 wxUSE_DRAG_AND_DROP=no
20313 fi
20314
6c657b52 20315 if test "$wxUSE_MGL" = 1; then
a0b9e27f 20316 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20317 wxUSE_DRAG_AND_DROP=no
20318 fi
20319
10f2d63a 20320 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 20321 cat >> confdefs.h <<\EOF
10f2d63a 20322#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 20323EOF
10f2d63a
VZ
20324
20325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20326 fi
20327
20328fi
20329
20330if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 20331 cat >> confdefs.h <<\EOF
10f2d63a 20332#define wxUSE_SPLINES 1
a0b9e27f 20333EOF
10f2d63a
VZ
20334
20335fi
20336
8284b0c5 20337
1e6feb95
VZ
20338USES_CONTROLS=0
20339if test "$wxUSE_CONTROLS" = "yes"; then
20340 USES_CONTROLS=1
20341fi
20342
10f2d63a 20343if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 20344 cat >> confdefs.h <<\EOF
10f2d63a 20345#define wxUSE_ACCEL 1
a0b9e27f 20346EOF
10f2d63a 20347
1e6feb95
VZ
20348 USES_CONTROLS=1
20349fi
20350
20351if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 20352 cat >> confdefs.h <<\EOF
1e6feb95 20353#define wxUSE_BUTTON 1
a0b9e27f 20354EOF
1e6feb95
VZ
20355
20356 USES_CONTROLS=1
20357fi
20358
20359if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 20360 cat >> confdefs.h <<\EOF
1e6feb95 20361#define wxUSE_BMPBUTTON 1
a0b9e27f 20362EOF
1e6feb95
VZ
20363
20364 USES_CONTROLS=1
20365fi
20366
20367if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 20368 cat >> confdefs.h <<\EOF
1e6feb95 20369#define wxUSE_CALENDARCTRL 1
a0b9e27f 20370EOF
1e6feb95
VZ
20371
20372 USES_CONTROLS=1
20373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
20374fi
20375
20376if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 20377 cat >> confdefs.h <<\EOF
10f2d63a 20378#define wxUSE_CARET 1
a0b9e27f 20379EOF
10f2d63a 20380
1e6feb95 20381 USES_CONTROLS=1
10f2d63a
VZ
20382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20383fi
20384
20385if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 20386 cat >> confdefs.h <<\EOF
10f2d63a 20387#define wxUSE_COMBOBOX 1
a0b9e27f 20388EOF
10f2d63a 20389
1e6feb95 20390 USES_CONTROLS=1
10f2d63a
VZ
20391fi
20392
20393if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 20394 cat >> confdefs.h <<\EOF
10f2d63a 20395#define wxUSE_CHOICE 1
a0b9e27f 20396EOF
10f2d63a 20397
1e6feb95 20398 USES_CONTROLS=1
10f2d63a
VZ
20399fi
20400
20401if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 20402 cat >> confdefs.h <<\EOF
10f2d63a 20403#define wxUSE_CHECKBOX 1
a0b9e27f 20404EOF
10f2d63a 20405
1e6feb95 20406 USES_CONTROLS=1
10f2d63a
VZ
20407fi
20408
20409if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 20410 cat >> confdefs.h <<\EOF
10f2d63a 20411#define wxUSE_CHECKLISTBOX 1
a0b9e27f 20412EOF
10f2d63a 20413
1e6feb95 20414 USES_CONTROLS=1
10f2d63a
VZ
20415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20416fi
20417
20418if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 20419 cat >> confdefs.h <<\EOF
10f2d63a 20420#define wxUSE_GAUGE 1
a0b9e27f 20421EOF
10f2d63a 20422
1e6feb95 20423 USES_CONTROLS=1
10f2d63a
VZ
20424fi
20425
d6a55c4b
VZ
20426if test "$wxUSE_NEW_GRID" = "yes"; then
20427 wxUSE_GRID="yes"
a0b9e27f 20428 cat >> confdefs.h <<\EOF
d6a55c4b 20429#define wxUSE_NEW_GRID 1
a0b9e27f 20430EOF
10f2d63a 20431
1e6feb95 20432 USES_CONTROLS=1
d6a55c4b 20433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20434fi
20435
d6a55c4b 20436if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 20437 cat >> confdefs.h <<\EOF
d6a55c4b 20438#define wxUSE_GRID 1
a0b9e27f 20439EOF
10f2d63a 20440
1e6feb95 20441 USES_CONTROLS=1
d6a55c4b 20442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20443fi
20444
20445if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 20446 cat >> confdefs.h <<\EOF
10f2d63a 20447#define wxUSE_IMAGLIST 1
a0b9e27f 20448EOF
10f2d63a
VZ
20449
20450fi
20451
20452if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 20453 cat >> confdefs.h <<\EOF
10f2d63a 20454#define wxUSE_LISTBOX 1
a0b9e27f 20455EOF
10f2d63a 20456
1e6feb95 20457 USES_CONTROLS=1
10f2d63a
VZ
20458fi
20459
20460if test "$wxUSE_LISTCTRL" = "yes"; then
20461 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 20462 cat >> confdefs.h <<\EOF
10f2d63a 20463#define wxUSE_LISTCTRL 1
a0b9e27f 20464EOF
10f2d63a 20465
1e6feb95 20466 USES_CONTROLS=1
10f2d63a
VZ
20467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20468 else
a0b9e27f 20469 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20470 fi
20471fi
20472
20473if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 20474 cat >> confdefs.h <<\EOF
10f2d63a 20475#define wxUSE_NOTEBOOK 1
a0b9e27f 20476EOF
10f2d63a 20477
1e6feb95 20478 USES_CONTROLS=1
10f2d63a
VZ
20479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20480fi
20481
24176f2c 20482if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 20483 cat >> confdefs.h <<\EOF
24176f2c 20484#define wxUSE_PROPSHEET 1
a0b9e27f 20485EOF
24176f2c
GD
20486
20487 USES_CONTROLS=1
20488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20489fi
20490
10f2d63a 20491if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 20492 cat >> confdefs.h <<\EOF
10f2d63a 20493#define wxUSE_RADIOBOX 1
a0b9e27f 20494EOF
10f2d63a 20495
1e6feb95 20496 USES_CONTROLS=1
10f2d63a
VZ
20497fi
20498
20499if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 20500 cat >> confdefs.h <<\EOF
10f2d63a 20501#define wxUSE_RADIOBTN 1
a0b9e27f 20502EOF
10f2d63a 20503
1e6feb95 20504 USES_CONTROLS=1
10f2d63a
VZ
20505fi
20506
20507if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 20508 cat >> confdefs.h <<\EOF
10f2d63a 20509#define wxUSE_SASH 1
a0b9e27f 20510EOF
10f2d63a
VZ
20511
20512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20513fi
20514
20515if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 20516 cat >> confdefs.h <<\EOF
10f2d63a 20517#define wxUSE_SCROLLBAR 1
a0b9e27f 20518EOF
10f2d63a 20519
1e6feb95 20520 USES_CONTROLS=1
741a9306 20521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20522fi
20523
20524if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 20525 cat >> confdefs.h <<\EOF
10f2d63a 20526#define wxUSE_SLIDER 1
a0b9e27f 20527EOF
10f2d63a 20528
1e6feb95 20529 USES_CONTROLS=1
10f2d63a
VZ
20530fi
20531
20532if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 20533 cat >> confdefs.h <<\EOF
10f2d63a 20534#define wxUSE_SPINBTN 1
a0b9e27f 20535EOF
10f2d63a 20536
1e6feb95 20537 USES_CONTROLS=1
10f2d63a
VZ
20538fi
20539
56cfaa52 20540if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 20541 cat >> confdefs.h <<\EOF
56cfaa52 20542#define wxUSE_SPINCTRL 1
a0b9e27f 20543EOF
56cfaa52 20544
1e6feb95 20545 USES_CONTROLS=1
56cfaa52
RR
20546fi
20547
10f2d63a 20548if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 20549 cat >> confdefs.h <<\EOF
10f2d63a 20550#define wxUSE_SPLITTER 1
a0b9e27f 20551EOF
10f2d63a
VZ
20552
20553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20554fi
20555
20556if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 20557 cat >> confdefs.h <<\EOF
10f2d63a 20558#define wxUSE_STATBMP 1
a0b9e27f 20559EOF
10f2d63a 20560
1e6feb95 20561 USES_CONTROLS=1
10f2d63a
VZ
20562fi
20563
20564if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 20565 cat >> confdefs.h <<\EOF
10f2d63a 20566#define wxUSE_STATBOX 1
a0b9e27f 20567EOF
10f2d63a 20568
1e6feb95
VZ
20569 USES_CONTROLS=1
20570fi
20571
20572if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 20573 cat >> confdefs.h <<\EOF
1e6feb95 20574#define wxUSE_STATTEXT 1
a0b9e27f 20575EOF
1e6feb95
VZ
20576
20577 USES_CONTROLS=1
10f2d63a
VZ
20578fi
20579
20580if test "$wxUSE_STATLINE" = "yes"; then
20581 if test "$wxUSE_WINE" = 1 ; then
a0b9e27f 20582 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20583 else
a0b9e27f 20584 cat >> confdefs.h <<\EOF
10f2d63a 20585#define wxUSE_STATLINE 1
a0b9e27f 20586EOF
10f2d63a 20587
1e6feb95 20588 USES_CONTROLS=1
10f2d63a
VZ
20589 fi
20590fi
20591
20592if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 20593 cat >> confdefs.h <<\EOF
10f2d63a 20594#define wxUSE_STATUSBAR 1
a0b9e27f 20595EOF
10f2d63a 20596
1e6feb95 20597 USES_CONTROLS=1
698dcdb6 20598
2286341c 20599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20600fi
20601
20602if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 20603 cat >> confdefs.h <<\EOF
10f2d63a 20604#define wxUSE_TAB_DIALOG 1
a0b9e27f 20605EOF
10f2d63a
VZ
20606
20607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20608fi
20609
1e6feb95 20610if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 20611 cat >> confdefs.h <<\EOF
1e6feb95 20612#define wxUSE_TEXTCTRL 1
a0b9e27f 20613EOF
1e6feb95
VZ
20614
20615 USES_CONTROLS=1
20616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20617fi
20618
1db8dc4a 20619if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 20620 if test "$wxUSE_MAC" = 1; then
a0b9e27f 20621 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20622 wxUSE_TOGGLEBTN=no
20623 fi
20624 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 20625 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20626 wxUSE_TOGGLEBTN=no
20627 fi
20628
20629 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 20630 cat >> confdefs.h <<\EOF
1db8dc4a 20631#define wxUSE_TOGGLEBTN 1
a0b9e27f 20632EOF
1db8dc4a 20633
1e6feb95 20634 USES_CONTROLS=1
a45d7ab7 20635 fi
1db8dc4a
VZ
20636fi
20637
360d6699 20638if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 20639 cat >> confdefs.h <<\EOF
360d6699 20640#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 20641EOF
360d6699
VZ
20642
20643 wxUSE_TOOLBAR="yes"
1e6feb95 20644 USES_CONTROLS=1
360d6699
VZ
20645fi
20646
10f2d63a 20647if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 20648 cat >> confdefs.h <<\EOF
10f2d63a 20649#define wxUSE_TOOLBAR 1
a0b9e27f 20650EOF
10f2d63a 20651
1e6feb95 20652 USES_CONTROLS=1
698dcdb6 20653
360d6699
VZ
20654 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20655 wxUSE_TOOLBAR_NATIVE="yes"
20656 fi
20657
1e6feb95 20658 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 20659 cat >> confdefs.h <<\EOF
360d6699 20660#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 20661EOF
360d6699 20662
1e6feb95
VZ
20663 USES_CONTROLS=1
20664 fi
20665
20666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20667fi
20668
10f2d63a
VZ
20669if test "$wxUSE_TOOLTIPS" = "yes"; then
20670 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 20671 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20672 else
20673 if test "$wxUSE_WINE" = 1; then
a0b9e27f 20674 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20675 else
69d27ff7 20676 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 20677 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20678 else
a0b9e27f 20679 cat >> confdefs.h <<\EOF
10f2d63a 20680#define wxUSE_TOOLTIPS 1
a0b9e27f 20681EOF
10f2d63a 20682
69d27ff7 20683 fi
10f2d63a
VZ
20684 fi
20685 fi
20686fi
20687
20688if test "$wxUSE_TREECTRL" = "yes"; then
20689 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 20690 cat >> confdefs.h <<\EOF
10f2d63a 20691#define wxUSE_TREECTRL 1
a0b9e27f 20692EOF
10f2d63a 20693
1e6feb95 20694 USES_CONTROLS=1
10f2d63a
VZ
20695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20696 else
a0b9e27f 20697 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20698 fi
20699fi
20700
9f41d601 20701if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20702 if test "$wxUSE_MAC" = 1; then
a0b9e27f 20703 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20704 else
485cf710 20705 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 20706 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 20707 else
3c011993 20708 if test "$wxUSE_PM" = 1; then
a0b9e27f 20709 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20710 else
a0b9e27f 20711 cat >> confdefs.h <<\EOF
9f41d601 20712#define wxUSE_POPUPWIN 1
a0b9e27f 20713EOF
9f41d601 20714
8284b0c5 20715
3c011993
VZ
20716 USES_CONTROLS=1
20717 fi
485cf710 20718 fi
6abe4b65 20719 fi
9f41d601
RR
20720fi
20721
dd964dcc 20722if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 20723 if test "$wxUSE_PM" = 1; then
a0b9e27f 20724 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20725 else
a0b9e27f 20726 cat >> confdefs.h <<\EOF
dd964dcc 20727#define wxUSE_TIPWINDOW 1
a0b9e27f 20728EOF
dd964dcc 20729
3c011993 20730 fi
dd964dcc
VZ
20731fi
20732
1e6feb95 20733if test "$USES_CONTROLS" = 1; then
a0b9e27f 20734 cat >> confdefs.h <<\EOF
1e6feb95 20735#define wxUSE_CONTROLS 1
a0b9e27f 20736EOF
10f2d63a 20737
10f2d63a
VZ
20738fi
20739
8284b0c5 20740
24176f2c 20741if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 20742 cat >> confdefs.h <<\EOF
24176f2c 20743#define wxUSE_TREELAYOUT 1
a0b9e27f 20744EOF
24176f2c
GD
20745
20746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20747fi
1e6feb95 20748
24fd6d87 20749if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 20750 cat >> confdefs.h <<\EOF
24fd6d87 20751#define wxUSE_DRAGIMAGE 1
a0b9e27f 20752EOF
24fd6d87
VZ
20753
20754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20755fi
20756
1e6feb95 20757if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 20758 cat >> confdefs.h <<\EOF
1e6feb95 20759#define wxUSE_MENUS 1
a0b9e27f 20760EOF
10f2d63a 20761
1e6feb95 20762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20763fi
20764
1e6feb95 20765if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 20766 cat >> confdefs.h <<\EOF
1e6feb95 20767#define wxUSE_METAFILE 1
a0b9e27f 20768EOF
10f2d63a 20769
10f2d63a
VZ
20770fi
20771
1e6feb95 20772if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 20773 cat >> confdefs.h <<\EOF
1e6feb95 20774#define wxUSE_MIMETYPE 1
a0b9e27f 20775EOF
10f2d63a 20776
10f2d63a
VZ
20777fi
20778
3e44f09d 20779if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 20780 cat >> confdefs.h <<\EOF
3e44f09d 20781#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 20782EOF
3e44f09d 20783
321d2b14
VZ
20784if test "$TOOLKIT" = "MSW"; then
20785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20786fi
20787
3e44f09d
VZ
20788fi
20789
4cdb0ab0 20790if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 20791 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 20792 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
20793 wxUSE_PROTOCOL=no
20794 fi
20795
20796 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 20797 cat >> confdefs.h <<\EOF
4cdb0ab0 20798#define wxUSE_PROTOCOL 1
a0b9e27f 20799EOF
4cdb0ab0 20800
8284b0c5 20801
3954f9ca 20802 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 20803 cat >> confdefs.h <<\EOF
4cdb0ab0 20804#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 20805EOF
4cdb0ab0 20806
3954f9ca
VS
20807 fi
20808 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 20809 cat >> confdefs.h <<\EOF
4cdb0ab0 20810#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 20811EOF
4cdb0ab0 20812
3954f9ca
VS
20813 fi
20814 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 20815 cat >> confdefs.h <<\EOF
3954f9ca 20816#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 20817EOF
3954f9ca
VS
20818
20819 fi
4cdb0ab0 20820 fi
3954f9ca
VS
20821fi
20822
20823if test "$wxUSE_URL" = "yes"; then
20824 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 20825 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
20826 wxUSE_URL=no
20827 fi
20828 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 20829 cat >> confdefs.h <<\EOF
3954f9ca 20830#define wxUSE_URL 1
a0b9e27f 20831EOF
4cdb0ab0
VS
20832
20833 fi
20834fi
20835
10f2d63a 20836if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 20837 cat >> confdefs.h <<\EOF
10f2d63a 20838#define wxUSE_MINIFRAME 1
a0b9e27f 20839EOF
10f2d63a
VZ
20840
20841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20842fi
20843
20844if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 20845 cat >> confdefs.h <<\EOF
10f2d63a 20846#define wxUSE_HTML 1
a0b9e27f 20847EOF
10f2d63a
VZ
20848
20849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20850fi
20851
20852if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 20853 cat >> confdefs.h <<\EOF
1e487827 20854#define wxUSE_VALIDATORS 1
a0b9e27f 20855EOF
703e0a69 20856
698dcdb6
VZ
20857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20858fi
20859
edae8572 20860if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 20861 cat >> confdefs.h <<\EOF
edae8572 20862#define wxUSE_PALETTE 1
a0b9e27f 20863EOF
edae8572
VZ
20864
20865fi
20866
698dcdb6 20867if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 20868 cat >> confdefs.h <<\EOF
698dcdb6 20869#define wxUSE_IMAGE 1
a0b9e27f 20870EOF
698dcdb6
VZ
20871
20872fi
20873
20874if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 20875 cat >> confdefs.h <<\EOF
698dcdb6 20876#define wxUSE_GIF 1
a0b9e27f 20877EOF
698dcdb6
VZ
20878
20879fi
20880
20881if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 20882 cat >> confdefs.h <<\EOF
698dcdb6 20883#define wxUSE_PCX 1
a0b9e27f 20884EOF
698dcdb6
VZ
20885
20886fi
20887
4b6b4dfc 20888if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 20889 cat >> confdefs.h <<\EOF
4b6b4dfc 20890#define wxUSE_IFF 1
a0b9e27f 20891EOF
4b6b4dfc
RR
20892
20893fi
20894
698dcdb6 20895if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 20896 cat >> confdefs.h <<\EOF
698dcdb6 20897#define wxUSE_PNM 1
a0b9e27f 20898EOF
698dcdb6
VZ
20899
20900fi
20901
20902if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 20903 cat >> confdefs.h <<\EOF
698dcdb6 20904#define wxUSE_XPM 1
a0b9e27f 20905EOF
698dcdb6
VZ
20906
20907fi
20908
658974ae 20909if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 20910 cat >> confdefs.h <<\EOF
658974ae 20911#define wxUSE_ICO_CUR 1
a0b9e27f 20912EOF
658974ae
VS
20913
20914fi
20915
a72a4bfa
VS
20916if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20917 LIBS=" -lunicows $LIBS"
20918fi
20919
8284b0c5 20920
1e6feb95 20921if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 20922 cat >> confdefs.h <<\EOF
1e6feb95 20923#define wxUSE_CHOICEDLG 1
a0b9e27f 20924EOF
1e6feb95
VZ
20925
20926fi
20927
20928if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 20929 cat >> confdefs.h <<\EOF
1e6feb95 20930#define wxUSE_COLOURDLG 1
a0b9e27f 20931EOF
1e6feb95
VZ
20932
20933fi
20934
20935if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 20936 cat >> confdefs.h <<\EOF
1e6feb95 20937#define wxUSE_FILEDLG 1
a0b9e27f 20938EOF
1e6feb95
VZ
20939
20940fi
20941
8db37e06 20942if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 20943 cat >> confdefs.h <<\EOF
8db37e06 20944#define wxUSE_FINDREPLDLG 1
a0b9e27f 20945EOF
8db37e06
VZ
20946
20947fi
20948
1e6feb95 20949if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 20950 cat >> confdefs.h <<\EOF
1e6feb95 20951#define wxUSE_FONTDLG 1
a0b9e27f 20952EOF
1e6feb95
VZ
20953
20954fi
20955
20956if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 20957 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 20958 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20959 else
a0b9e27f 20960 cat >> confdefs.h <<\EOF
1e6feb95 20961#define wxUSE_DIRDLG 1
a0b9e27f 20962EOF
1e6feb95 20963
1e6feb95
VZ
20964 fi
20965fi
20966
20967if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 20968 cat >> confdefs.h <<\EOF
1e6feb95 20969#define wxUSE_MSGDLG 1
a0b9e27f 20970EOF
1e6feb95
VZ
20971
20972fi
20973
20974if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 20975 cat >> confdefs.h <<\EOF
1e6feb95 20976#define wxUSE_NUMBERDLG 1
a0b9e27f 20977EOF
1e6feb95
VZ
20978
20979fi
20980
20981if test "$wxUSE_PROGRESSDLG" = "yes"; then
20982 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20983 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 20984 else
a0b9e27f 20985 cat >> confdefs.h <<\EOF
1e6feb95 20986#define wxUSE_PROGRESSDLG 1
a0b9e27f 20987EOF
1e6feb95
VZ
20988
20989 fi
20990fi
20991
cbca9943 20992if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 20993 cat >> confdefs.h <<\EOF
cbca9943 20994#define wxUSE_SPLASH 1
a0b9e27f 20995EOF
cbca9943
VZ
20996
20997fi
20998
1e6feb95
VZ
20999if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21000 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21001 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21002 else
a0b9e27f 21003 cat >> confdefs.h <<\EOF
1e6feb95 21004#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21005EOF
1e6feb95 21006
7b4a847f
RR
21007 fi
21008fi
579d8138 21009
8284b0c5 21010if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21011 cat >> confdefs.h <<\EOF
8284b0c5 21012#define wxUSE_TEXTDLG 1
a0b9e27f 21013EOF
8284b0c5
MB
21014
21015fi
21016
21017if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21018 cat >> confdefs.h <<\EOF
8284b0c5 21019#define wxUSE_WIZARDDLG 1
a0b9e27f 21020EOF
8284b0c5
MB
21021
21022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21023fi
21024
21025
21026if test "$cross_compiling" = "yes"; then
21027 OSINFO="\"$host\""
21028else
21029 OSINFO=`uname -s -r -m`
21030 OSINFO="\"$OSINFO\""
21031fi
21032
a0b9e27f 21033cat >> confdefs.h <<EOF
8284b0c5 21034#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 21035EOF
8284b0c5
MB
21036
21037
21038
21039if test "x$prefix" != "xNONE"; then
21040 wxPREFIX=$prefix
21041else
21042 wxPREFIX=$ac_default_prefix
21043fi
21044
a0b9e27f 21045cat >> confdefs.h <<EOF
8284b0c5 21046#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21047EOF
8284b0c5
MB
21048
21049
21050
21051
21052
21053if test "$wxUSE_MAC" = 1 ; then
21054 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21055fi
21056
21057
21058LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
21059
21060if test "$wxUSE_GUI" = "yes"; then
21061
21062 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21063
a0b9e27f 21064
8284b0c5
MB
21065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21066 drawing dynamic erase event exec font image \
21067 minimal propsize rotate widgets"
21068
21069 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
21070else
21071 SAMPLES_SUBDIRS="console"
21072fi
21073
21074
21075INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
21076-I\${top_srcdir}/include \
21077$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
21078$TOOLKIT_INCLUDE"
21079
21080if test "$wxUSE_GTK" = 1; then
21081 WXCONFIG_INCLUDE=
21082else
21083 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
21084fi
21085
21086if test "$GXX" = yes ; then
21087 CXXWARNINGS="-Wall"
a0b9e27f 21088
8284b0c5
MB
21089 if test "$wxUSE_NO_DEPS" = "no" ; then
21090 CFLAGS="-MMD $CFLAGS"
21091 CXXFLAGS="-MMD $CXXFLAGS"
21092 fi
21093fi
21094
b2fee376 21095EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 21096
b2fee376 21097CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
21098CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
21099CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
21100LIBS=`echo $LIBS | sed 's/ \+/ /g'`
21101
21102LDFLAGS="$LDFLAGS $PROFILE"
21103
21104SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
2f51a9ec
GD
21173
21174
21175
21176
f6bcfd97 21177
dad6c0ea 21178
caa2c79b 21179
3711412e 21180
1e6feb95
VZ
21181
21182
885d4bf5
VS
21183
21184
21185
21186
9b695262
VZ
21187
21188
62d0491b 21189
ef7f2189 21190
40f7145c 21191
2bffed64
VZ
21192
21193
3bd8fb5f 21194
e26c13cf 21195
10f2d63a 21196
a0b9e27f
MB
21197
21198echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
e26c13cf 21199echo "configure:21200: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
21200set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
21201if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
21202 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 21203else
a0b9e27f 21204 cat > conftestmake <<\EOF
10f2d63a
VZ
21205all:
21206 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 21207EOF
10f2d63a 21208# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 21209eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
21210if test -n "$ac_maketemp"; then
21211 eval ac_cv_prog_make_${ac_make}_set=yes
21212else
21213 eval ac_cv_prog_make_${ac_make}_set=no
21214fi
a0b9e27f 21215rm -f conftestmake
10f2d63a
VZ
21216fi
21217if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 21218 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
21219 SET_MAKE=
21220else
a0b9e27f 21221 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21222 SET_MAKE="MAKE=${MAKE-make}"
21223fi
21224
8284b0c5 21225
3a922bb4
RL
21226if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21227 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 21228fi
665bbe97 21229
8284b0c5 21230
10f2d63a 21231
57973b9c
VZ
21232wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21233wx_cv_if_gnu_make=$IF_GNU_MAKE
21234wx_cv_path_ifs=$PATH_IFS
21235wx_cv_program_ext=$PROGRAM_EXT
21236wx_cv_target_library=$WX_TARGET_LIBRARY
21237wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21238wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21239export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21240 wx_cv_path_ifs wx_cv_program_ext \
21241 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21242
a0b9e27f 21243subdirs="demos samples utils contrib"
8284b0c5 21244
10f2d63a 21245
a0b9e27f
MB
21246trap '' 1 2 15
21247cat > confcache <<\EOF
10f2d63a
VZ
21248# This file is a shell script that caches the results of configure
21249# tests run on this system so they can be shared between configure
a0b9e27f
MB
21250# scripts and configure runs. It is not useful on other systems.
21251# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 21252#
a0b9e27f
MB
21253# By default, configure uses ./config.cache as the cache file,
21254# creating it if it does not exist already. You can give configure
21255# the --cache-file=FILE option to use a different cache file; that is
21256# what configure does when it calls configure scripts in
21257# subdirectories, so they share the cache.
21258# Giving --cache-file=/dev/null disables caching, for debugging configure.
21259# config.status only pays attention to the cache file if you give it the
21260# --recheck option to rerun configure.
10f2d63a 21261#
a0b9e27f 21262EOF
10f2d63a
VZ
21263# The following way of writing the cache mishandles newlines in values,
21264# but we know of no workaround that is simple, portable, and efficient.
21265# So, don't put newlines in cache variables' values.
21266# Ultrix sh set writes to stderr and can't be redirected directly,
21267# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
21268(set) 2>&1 |
21269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21270 *ac_space=\ *)
21271 # `set' does not quote correctly, so add quotes (double-quote substitution
21272 # turns \\\\ into \\, and sed turns \\ into \).
21273 sed -n \
21274 -e "s/'/'\\\\''/g" \
21275 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21276 ;;
21277 *)
21278 # `set' quotes correctly as required by POSIX, so do not add quotes.
21279 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21280 ;;
21281 esac >> confcache
21282if cmp -s $cache_file confcache; then
21283 :
21284else
10f2d63a 21285 if test -w $cache_file; then
a0b9e27f
MB
21286 echo "updating cache $cache_file"
21287 cat confcache > $cache_file
10f2d63a
VZ
21288 else
21289 echo "not updating unwritable cache $cache_file"
21290 fi
21291fi
21292rm -f confcache
21293
a0b9e27f
MB
21294trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21295
10f2d63a
VZ
21296test "x$prefix" = xNONE && prefix=$ac_default_prefix
21297# Let make expand exec_prefix.
21298test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21299
a0b9e27f
MB
21300# Any assignment to VPATH causes Sun make to only execute
21301# the first set of double-colon rules, so remove it if not needed.
21302# If there is a colon in the path, we need to keep it.
10f2d63a 21303if test "x$srcdir" = x.; then
a0b9e27f 21304 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
21305fi
21306
a0b9e27f 21307trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 21308
a0b9e27f 21309DEFS=-DHAVE_CONFIG_H
8284b0c5 21310
a0b9e27f 21311# Without the "./", some shells look in PATH for config.status.
247f5006 21312: ${CONFIG_STATUS=./config.status}
52127426 21313
a0b9e27f
MB
21314echo creating $CONFIG_STATUS
21315rm -f $CONFIG_STATUS
21316cat > $CONFIG_STATUS <<EOF
21317#! /bin/sh
21318# Generated automatically by configure.
21319# Run this file to recreate the current configuration.
21320# This directory was configured as follows,
21321# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 21322#
a0b9e27f 21323# $0 $ac_configure_args
247f5006 21324#
a0b9e27f
MB
21325# Compiler output produced by configure, useful for debugging
21326# configure, is in ./config.log if it exists.
247f5006 21327
a0b9e27f
MB
21328ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21329for ac_option
247f5006 21330do
a0b9e27f
MB
21331 case "\$ac_option" in
21332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21333 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21334 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21335 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21336 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21337 exit 0 ;;
21338 -help | --help | --hel | --he | --h)
21339 echo "\$ac_cs_usage"; exit 0 ;;
21340 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
21341 esac
21342done
21343
a0b9e27f
MB
21344ac_given_srcdir=$srcdir
21345ac_given_INSTALL="$INSTALL"
247f5006 21346
a0b9e27f
MB
21347trap 'rm -fr `echo "
21348 wx-config
21349 src/make.env
21350 src/makeprog.env
21351 src/makelib.env
21352 Makefile
21353 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21354EOF
21355cat >> $CONFIG_STATUS <<EOF
247f5006 21356
a0b9e27f
MB
21357# Protect against being on the right side of a sed subst in config.status.
21358sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21359 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21360$ac_vpsub
21361$extrasub
21362s%@SHELL@%$SHELL%g
21363s%@CFLAGS@%$CFLAGS%g
21364s%@CPPFLAGS@%$CPPFLAGS%g
21365s%@CXXFLAGS@%$CXXFLAGS%g
21366s%@FFLAGS@%$FFLAGS%g
21367s%@DEFS@%$DEFS%g
21368s%@LDFLAGS@%$LDFLAGS%g
21369s%@LIBS@%$LIBS%g
21370s%@exec_prefix@%$exec_prefix%g
21371s%@prefix@%$prefix%g
21372s%@program_transform_name@%$program_transform_name%g
21373s%@bindir@%$bindir%g
21374s%@sbindir@%$sbindir%g
21375s%@libexecdir@%$libexecdir%g
21376s%@datadir@%$datadir%g
21377s%@sysconfdir@%$sysconfdir%g
21378s%@sharedstatedir@%$sharedstatedir%g
21379s%@localstatedir@%$localstatedir%g
21380s%@libdir@%$libdir%g
21381s%@includedir@%$includedir%g
21382s%@oldincludedir@%$oldincludedir%g
21383s%@infodir@%$infodir%g
21384s%@mandir@%$mandir%g
21385s%@host@%$host%g
21386s%@host_alias@%$host_alias%g
21387s%@host_cpu@%$host_cpu%g
21388s%@host_vendor@%$host_vendor%g
21389s%@host_os@%$host_os%g
21390s%@target@%$target%g
21391s%@target_alias@%$target_alias%g
21392s%@target_cpu@%$target_cpu%g
21393s%@target_vendor@%$target_vendor%g
21394s%@target_os@%$target_os%g
21395s%@build@%$build%g
21396s%@build_alias@%$build_alias%g
21397s%@build_cpu@%$build_cpu%g
21398s%@build_vendor@%$build_vendor%g
21399s%@build_os@%$build_os%g
21400s%@CC@%$CC%g
21401s%@CPP@%$CPP%g
21402s%@CXX@%$CXX%g
21403s%@RANLIB@%$RANLIB%g
21404s%@AR@%$AR%g
21405s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21406s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21407s%@INSTALL_DATA@%$INSTALL_DATA%g
21408s%@STRIP@%$STRIP%g
21409s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21410s%@YACC@%$YACC%g
21411s%@LEX@%$LEX%g
21412s%@LEXLIB@%$LEXLIB%g
21413s%@LN_S@%$LN_S%g
21414s%@CXXCPP@%$CXXCPP%g
21415s%@PKG_CONFIG@%$PKG_CONFIG%g
21416s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21417s%@GTK_LIBS@%$GTK_LIBS%g
21418s%@GTK_CONFIG@%$GTK_CONFIG%g
21419s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21420s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21421s%@X_CFLAGS@%$X_CFLAGS%g
21422s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21423s%@X_LIBS@%$X_LIBS%g
21424s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21425s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21426s%@RESCOMP@%$RESCOMP%g
21427s%@DEREZ@%$DEREZ%g
21428s%@LIBICONV@%$LIBICONV%g
21429s%@LEX_STEM@%$LEX_STEM%g
21430s%@PATH_IFS@%$PATH_IFS%g
21431s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21432s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21433s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21434s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21435s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21436s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21437s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21438s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21439s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21440s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21441s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21442s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21443s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21444s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21445s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21446s%@WX_ALL@%$WX_ALL%g
21447s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21448s%@SHARED_LD@%$SHARED_LD%g
21449s%@PIC_FLAG@%$PIC_FLAG%g
21450s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21451s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21452s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21453s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21454s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21455s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 21456s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
21457s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21458s%@USE_GUI@%$USE_GUI%g
21459s%@AFMINSTALL@%$AFMINSTALL%g
21460s%@TOOLKIT@%$TOOLKIT%g
21461s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21462s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21463s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21464s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21465s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21466s%@cross_compiling@%$cross_compiling%g
21467s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21468s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21469s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21470s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21471s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21472s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 21473s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
21474s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21475s%@ALL_HEADERS@%$ALL_HEADERS%g
21476s%@ALL_SOURCES@%$ALL_SOURCES%g
21477s%@GUIDIST@%$GUIDIST%g
21478s%@PORT_FILES@%$PORT_FILES%g
21479s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
21480s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21481s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21482s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21483s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21484s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21485s%@EXTRADEFS@%$EXTRADEFS%g
21486s%@RESFLAGS@%$RESFLAGS%g
21487s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21488s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21489s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21490s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21491s%@LIBWXMACRES@%$LIBWXMACRES%g
21492s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21493s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21494s%@DLLTOOL@%$DLLTOOL%g
21495s%@AS@%$AS%g
21496s%@NM@%$NM%g
21497s%@LD@%$LD%g
21498s%@MAKEINFO@%$MAKEINFO%g
21499s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21500s%@SET_MAKE@%$SET_MAKE%g
21501s%@subdirs@%$subdirs%g
247f5006 21502
247f5006 21503CEOF
a0b9e27f 21504EOF
247f5006 21505
a0b9e27f
MB
21506cat >> $CONFIG_STATUS <<\EOF
21507
21508# Split the substitutions into bite-sized pieces for seds with
21509# small command number limits, like on Digital OSF/1 and HP-UX.
21510ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21511ac_file=1 # Number of current file.
21512ac_beg=1 # First line for current file.
21513ac_end=$ac_max_sed_cmds # Line after last line for current file.
21514ac_more_lines=:
21515ac_sed_cmds=""
21516while $ac_more_lines; do
21517 if test $ac_beg -gt 1; then
21518 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21519 else
21520 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21521 fi
21522 if test ! -s conftest.s$ac_file; then
21523 ac_more_lines=false
21524 rm -f conftest.s$ac_file
21525 else
21526 if test -z "$ac_sed_cmds"; then
21527 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 21528 else
a0b9e27f 21529 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 21530 fi
a0b9e27f
MB
21531 ac_file=`expr $ac_file + 1`
21532 ac_beg=$ac_end
21533 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21534 fi
a0b9e27f
MB
21535done
21536if test -z "$ac_sed_cmds"; then
21537 ac_sed_cmds=cat
21538fi
21539EOF
10f2d63a 21540
a0b9e27f 21541cat >> $CONFIG_STATUS <<EOF
10f2d63a 21542
a0b9e27f
MB
21543CONFIG_FILES=\${CONFIG_FILES-"wx-config
21544 src/make.env
21545 src/makeprog.env
21546 src/makelib.env
21547 Makefile
21548 "}
21549EOF
21550cat >> $CONFIG_STATUS <<\EOF
21551for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21553 case "$ac_file" in
21554 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21555 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21556 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 21557 esac
247f5006 21558
a0b9e27f 21559 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 21560
a0b9e27f
MB
21561 # Remove last slash and all that follows it. Not all systems have dirname.
21562 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21563 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21564 # The file is in a subdirectory.
21565 test ! -d "$ac_dir" && mkdir "$ac_dir"
21566 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21567 # A "../" for each directory in $ac_dir_suffix.
21568 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21569 else
21570 ac_dir_suffix= ac_dots=
21571 fi
247f5006 21572
a0b9e27f
MB
21573 case "$ac_given_srcdir" in
21574 .) srcdir=.
21575 if test -z "$ac_dots"; then top_srcdir=.
21576 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21577 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 21578 *) # Relative path.
a0b9e27f
MB
21579 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21580 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 21581 esac
10f2d63a 21582
a0b9e27f
MB
21583 case "$ac_given_INSTALL" in
21584 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21585 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21586 esac
247f5006 21587
a0b9e27f
MB
21588 echo creating "$ac_file"
21589 rm -f "$ac_file"
21590 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21591 case "$ac_file" in
21592 *Makefile*) ac_comsub="1i\\
21593# $configure_input" ;;
21594 *) ac_comsub= ;;
21595 esac
247f5006 21596
a0b9e27f
MB
21597 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21598 sed -e "$ac_comsub
21599s%@configure_input@%$configure_input%g
21600s%@srcdir@%$srcdir%g
21601s%@top_srcdir@%$top_srcdir%g
21602s%@INSTALL@%$INSTALL%g
21603" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21604fi; done
21605rm -f conftest.s*
10f2d63a
VZ
21606
21607# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21608# NAME is the cpp macro being defined and VALUE is the value it is being given.
21609#
21610# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
21611ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21612ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21613ac_dC='\3'
21614ac_dD='%g'
21615# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21616ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21617ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21618ac_uC=' '
a0b9e27f
MB
21619ac_uD='\4%g'
21620# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21621ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21622ac_eB='$%\1#\2define\3'
21623ac_eC=' '
21624ac_eD='%g'
21625
21626if test "${CONFIG_HEADERS+set}" != set; then
21627EOF
21628cat >> $CONFIG_STATUS <<EOF
21629 CONFIG_HEADERS="setup.h:setup.h.in"
21630EOF
21631cat >> $CONFIG_STATUS <<\EOF
21632fi
21633for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
21635 case "$ac_file" in
21636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21638 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21639 esac
21640
a0b9e27f
MB
21641 echo creating $ac_file
21642
21643 rm -f conftest.frag conftest.in conftest.out
21644 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21645 cat $ac_file_inputs > conftest.in
21646
21647EOF
21648
21649# Transform confdefs.h into a sed script conftest.vals that substitutes
21650# the proper values into config.h.in to produce config.h. And first:
21651# Protect against being on the right side of a sed subst in config.status.
21652# Protect against being in an unquoted here document in config.status.
21653rm -f conftest.vals
21654cat > conftest.hdr <<\EOF
21655s/[\\&%]/\\&/g
21656s%[\\$`]%\\&%g
21657s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21658s%ac_d%ac_u%gp
21659s%ac_u%ac_e%gp
21660EOF
21661sed -n -f conftest.hdr confdefs.h > conftest.vals
21662rm -f conftest.hdr
10f2d63a
VZ
21663
21664# This sed command replaces #undef with comments. This is necessary, for
21665# example, in the case of _POSIX_SOURCE, which is predefined and required
21666# on some systems where configure will not decide to define it.
a0b9e27f
MB
21667cat >> conftest.vals <<\EOF
21668s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21669EOF
21670
21671# Break up conftest.vals because some shells have a limit on
21672# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21673
21674rm -f conftest.tail
a0b9e27f 21675while :
10f2d63a 21676do
a0b9e27f
MB
21677 ac_lines=`grep -c . conftest.vals`
21678 # grep -c gives empty output for an empty file on some AIX systems.
21679 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21680 # Write a limited-size here document to conftest.frag.
21681 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21682 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21683 echo 'CEOF
a0b9e27f
MB
21684 sed -f conftest.frag conftest.in > conftest.out
21685 rm -f conftest.in
21686 mv conftest.out conftest.in
21687' >> $CONFIG_STATUS
21688 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21689 rm -f conftest.vals
21690 mv conftest.tail conftest.vals
10f2d63a 21691done
a0b9e27f
MB
21692rm -f conftest.vals
21693
21694cat >> $CONFIG_STATUS <<\EOF
21695 rm -f conftest.frag conftest.h
21696 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21697 cat conftest.in >> conftest.h
21698 rm -f conftest.in
21699 if cmp -s $ac_file conftest.h 2>/dev/null; then
21700 echo "$ac_file is unchanged"
21701 rm -f conftest.h
10f2d63a 21702 else
a0b9e27f
MB
21703 # Remove last slash and all that follows it. Not all systems have dirname.
21704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21706 # The file is in a subdirectory.
21707 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 21708 fi
a0b9e27f
MB
21709 rm -f $ac_file
21710 mv conftest.h $ac_file
247f5006 21711 fi
a0b9e27f
MB
21712fi; done
21713
21714EOF
21715cat >> $CONFIG_STATUS <<EOF
21716
21717 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21718 LN_S="${LN_S}"
21719
21720
21721EOF
21722cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21723
652d930d 21724 if test ! -h wx-config; then
991a5759 21725 chmod +x wx-config
3a922bb4
RL
21726 mv wx-config wx${TOOLCHAIN_NAME}-config
21727 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21728 fi
665bbe97 21729
00cf1208
RR
21730 if test ! -d lib; then
21731 mkdir lib
21732 fi
21733 if test ! -d lib/wx; then
21734 mkdir lib/wx
21735 fi
21736 if test ! -d lib/wx/include; then
21737 mkdir lib/wx/include
21738 fi
3a922bb4
RL
21739 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21740 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21741 fi
3a922bb4
RL
21742 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21743 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21744 fi
21745 if test -f setup.h; then
3a922bb4 21746 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21747 fi
a0b9e27f
MB
21748
21749exit 0
21750EOF
10f2d63a 21751chmod +x $CONFIG_STATUS
a0b9e27f
MB
21752rm -fr confdefs* $ac_clean_files
21753test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21754
2224580a
VZ
21755if test "$no_recursion" != yes; then
21756
21757 # Remove --cache-file and --srcdir arguments so they do not pile up.
21758 ac_sub_configure_args=
21759 ac_prev=
21760 for ac_arg in $ac_configure_args; do
21761 if test -n "$ac_prev"; then
21762 ac_prev=
21763 continue
21764 fi
a0b9e27f 21765 case "$ac_arg" in
2224580a
VZ
21766 -cache-file | --cache-file | --cache-fil | --cache-fi \
21767 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21768 ac_prev=cache_file ;;
21769 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 21770 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21771 ;;
21772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21773 ac_prev=srcdir ;;
21774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21775 ;;
21776 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21777 esac
21778 done
21779
a0b9e27f 21780 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21781
21782 # Do not complain, so a configure script can configure whichever
21783 # parts of a large source tree are present.
a0b9e27f
MB
21784 if test ! -d $srcdir/$ac_config_dir; then
21785 continue
21786 fi
2224580a 21787
a0b9e27f 21788 echo configuring in $ac_config_dir
2224580a 21789
a0b9e27f
MB
21790 case "$srcdir" in
21791 .) ;;
21792 *)
21793 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21794 else
21795 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21796 fi
21797 ;;
21798 esac
2224580a 21799
a0b9e27f
MB
21800 ac_popdir=`pwd`
21801 cd $ac_config_dir
247f5006 21802
a0b9e27f
MB
21803 # A "../" for each directory in /$ac_config_dir.
21804 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 21805
a0b9e27f
MB
21806 case "$srcdir" in
21807 .) # No --srcdir option. We are building in place.
21808 ac_sub_srcdir=$srcdir ;;
21809 /*) # Absolute path.
21810 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21811 *) # Relative path.
21812 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21813 esac
2224580a
VZ
21814
21815 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
21816 if test -f $ac_sub_srcdir/configure; then
21817 ac_sub_configure=$ac_sub_srcdir/configure
21818 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
21819 ac_sub_configure=$ac_configure
21820 else
a0b9e27f 21821 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21822 ac_sub_configure=
21823 fi
21824
21825 # The recursion is here.
21826 if test -n "$ac_sub_configure"; then
a0b9e27f 21827
2224580a 21828 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
21829 case "$cache_file" in
21830 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21831 *) # Relative path.
a0b9e27f 21832 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21833 esac
a0b9e27f
MB
21834 case "$ac_given_INSTALL" in
21835 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21836 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21837 esac
2224580a 21838
a0b9e27f 21839 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21840 # The eval makes quoting arguments work.
a0b9e27f
MB
21841 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21842 then :
21843 else
21844 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21845 fi
2224580a
VZ
21846 fi
21847
21848 cd $ac_popdir
21849 done
21850fi
21851
8284b0c5 21852