]> git.saurik.com Git - wxWidgets.git/blame - configure
better error message
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
2b5f62a0
VZ
55
56
57
521196a2
MB
58
59
60
a0b9e27f
MB
61
62
63
64
65# Configure paths for GTK+
66# Owen Taylor 1997-2001
67
68
69
2b5f62a0
VZ
70# Configure paths for GTK+
71# Owen Taylor 97-11-3
a0b9e27f
MB
72
73
74
75
76
a0b9e27f
MB
77
78
79
80# Guess values for system-dependent variables and create Makefiles.
81# Generated automatically using autoconf version 2.13
82# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83#
84# This configure script is free software; the Free Software Foundation
85# gives unlimited permission to copy, distribute and modify it.
86
87# Defaults:
88ac_help=
89ac_default_prefix=/usr/local
90# Any additions from configure.in:
91ac_help="$ac_help
92 --enable-gui use GUI classes"
93ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95ac_help="$ac_help
96 --with-gtk use GTK+"
97ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99ac_help="$ac_help
100 --with-mac use Mac OS X"
ac0c4cc3
DE
101ac_help="$ac_help
102 --with-cocoa use Cocoa"
a0b9e27f 103ac_help="$ac_help
89e6bf6d 104 --with-wine use Wine"
a0b9e27f
MB
105ac_help="$ac_help
106 --with-msw use MS-Windows"
107ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111ac_help="$ac_help
112 --with-microwin use MicroWindows"
113ac_help="$ac_help
114 --with-x11 use X11"
115ac_help="$ac_help
116 --enable-nanox use NanoX"
117ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135ac_help="$ac_help
136 --enable-shared create shared library code"
137ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139ac_help="$ac_help
140 --enable-optimise create optimised code"
141ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143ac_help="$ac_help
b2fee376 144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
145ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155ac_help="$ac_help
156 --enable-profile create code with profiling information"
157ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167ac_help="$ac_help
65d8ef1e
VS
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
171ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173ac_help="$ac_help
174 --enable-intl use internationalization system"
175ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185ac_help="$ac_help
186 --enable-sockets use socket/network classes"
3bce6687
JS
187ac_help="$ac_help
188 --enable-ole use OLE classes"
189ac_help="$ac_help
190 --enable-dataobj use data object classes"
a0b9e27f
MB
191ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
a0b9e27f
MB
197ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203ac_help="$ac_help
204 --enable-timer use wxTimer class"
205ac_help="$ac_help
206 --enable-wave use wxWave class"
207ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215ac_help="$ac_help
216 --enable-geometry use geometry class"
217ac_help="$ac_help
218 --enable-log use logging system"
219ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221ac_help="$ac_help
222 --enable-file use wxFile classes"
223ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255ac_help="$ac_help
256 --enable-url use wxURL class"
257ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265ac_help="$ac_help
266 --enable-threads use threads"
267ac_help="$ac_help
268 --enable-docview use document view architecture"
269ac_help="$ac_help
270 --enable-help use help subsystem"
271ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279ac_help="$ac_help
280 --enable-printarch use printing architecture"
281ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
a0b9e27f
MB
291ac_help="$ac_help
292 --enable-resources use wxWindows resources"
293ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
295ac_help="$ac_help
da494b40 296 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
297ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
a0b9e27f
MB
301ac_help="$ac_help
302 --enable-controls use all usual controls"
303ac_help="$ac_help
304 --enable-accel use accelerators"
305ac_help="$ac_help
306 --enable-button use wxButton class"
307ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311ac_help="$ac_help
312 --enable-caret use wxCaret class"
313ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317ac_help="$ac_help
318 --enable-choice use wxChoice class"
319ac_help="$ac_help
da494b40
MB
320 --enable-combobox use wxComboBox class"
321ac_help="$ac_help
322 --enable-display use wxDisplay class"
a0b9e27f
MB
323ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325ac_help="$ac_help
326 --enable-grid use wxGrid class"
a0b9e27f
MB
327ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
a0b9e27f
MB
335ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343ac_help="$ac_help
344 --enable-slider use wxSlider class"
345ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413ac_help="$ac_help
414 --enable-splines use spline drawing code"
415ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425ac_help="$ac_help
426 --enable-palette use wxPalette class"
427ac_help="$ac_help
428 --enable-image use wxImage class"
429ac_help="$ac_help
430 --enable-gif use gif images (GIF file format)"
431ac_help="$ac_help
432 --enable-pcx use pcx images (PCX file format)"
433ac_help="$ac_help
434 --enable-iff use iff images (IFF file format)"
435ac_help="$ac_help
436 --enable-pnm use pnm images (PNM file format)"
437ac_help="$ac_help
438 --enable-xpm use xpm images (XPM file format)"
439ac_help="$ac_help
440 --enable-icocur use Windows ICO and CUR formats"
441ac_help="$ac_help
442 --disable-largefile omit support for large files"
443ac_help="$ac_help
444 --disable-gtktest do not try to compile and run a test GTK+ program"
445ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451ac_help="$ac_help
452 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
453ac_help="$ac_help
454 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --disable-gtktest Do not try to compile and run a test GTK program"
457ac_help="$ac_help
458 --with-x use the X Window System"
459ac_help="$ac_help
460 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
461
462# Initialize some variables set by options.
463# The variables have the same names as the options, with
464# dashes changed to underlines.
a0b9e27f
MB
465build=NONE
466cache_file=./config.cache
10f2d63a 467exec_prefix=NONE
a0b9e27f 468host=NONE
10f2d63a 469no_create=
a0b9e27f 470nonopt=NONE
10f2d63a
VZ
471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
a0b9e27f 479target=NONE
10f2d63a
VZ
480verbose=
481x_includes=NONE
482x_libraries=NONE
483bindir='${exec_prefix}/bin'
484sbindir='${exec_prefix}/sbin'
485libexecdir='${exec_prefix}/libexec'
486datadir='${prefix}/share'
487sysconfdir='${prefix}/etc'
488sharedstatedir='${prefix}/com'
489localstatedir='${prefix}/var'
490libdir='${exec_prefix}/lib'
491includedir='${prefix}/include'
492oldincludedir='/usr/include'
493infodir='${prefix}/info'
494mandir='${prefix}/man'
495
a0b9e27f
MB
496# Initialize some other variables.
497subdirs=
498MFLAGS= MAKEFLAGS=
499SHELL=${CONFIG_SHELL-/bin/sh}
500# Maximum number of lines to put in a shell here document.
501ac_max_here_lines=12
502
10f2d63a
VZ
503ac_prev=
504for ac_option
505do
a0b9e27f 506
10f2d63a
VZ
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
a0b9e27f
MB
514 case "$ac_option" in
515 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
516 *) ac_optarg= ;;
517 esac
10f2d63a
VZ
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
a0b9e27f 521 case "$ac_option" in
10f2d63a
VZ
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 526 bindir="$ac_optarg" ;;
10f2d63a
VZ
527
528 -build | --build | --buil | --bui | --bu)
a0b9e27f 529 ac_prev=build ;;
10f2d63a 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 531 build="$ac_optarg" ;;
10f2d63a
VZ
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 538 cache_file="$ac_optarg" ;;
10f2d63a
VZ
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
a0b9e27f 544 datadir="$ac_optarg" ;;
10f2d63a
VZ
545
546 -disable-* | --disable-*)
a0b9e27f 547 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 548 # Reject names that are not valid shell variable names.
a0b9e27f
MB
549 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
550 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
551 fi
552 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
553 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
554
555 -enable-* | --enable-*)
a0b9e27f 556 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 557 # Reject names that are not valid shell variable names.
a0b9e27f
MB
558 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
560 fi
561 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
10f2d63a
VZ
564 *) ac_optarg=yes ;;
565 esac
a0b9e27f 566 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
a0b9e27f 575 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
a0b9e27f
MB
581 -help | --help | --hel | --he)
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
584 cat << EOF
585Usage: configure [options] [host]
586Options: [defaults in brackets after descriptions]
587Configuration:
588 --cache-file=FILE cache test results in FILE
589 --help print this message
590 --no-create do not create output files
591 --quiet, --silent do not print \`checking...' messages
592 --version print the version of autoconf that created configure
593Directory and file names:
594 --prefix=PREFIX install architecture-independent files in PREFIX
595 [$ac_default_prefix]
596 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 [same as prefix]
598 --bindir=DIR user executables in DIR [EPREFIX/bin]
599 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
600 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
601 --datadir=DIR read-only architecture-independent data in DIR
602 [PREFIX/share]
603 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
604 --sharedstatedir=DIR modifiable architecture-independent data in DIR
605 [PREFIX/com]
606 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
607 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
608 --includedir=DIR C header files in DIR [PREFIX/include]
609 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
610 --infodir=DIR info documentation in DIR [PREFIX/info]
611 --mandir=DIR man documentation in DIR [PREFIX/man]
612 --srcdir=DIR find the sources in DIR [configure dir or ..]
613 --program-prefix=PREFIX prepend PREFIX to installed program names
614 --program-suffix=SUFFIX append SUFFIX to installed program names
615 --program-transform-name=PROGRAM
616 run sed PROGRAM on installed program names
617EOF
618 cat << EOF
619Host type:
620 --build=BUILD configure for building on BUILD [BUILD=HOST]
621 --host=HOST configure for HOST [guessed]
622 --target=TARGET configure for TARGET [TARGET=HOST]
623Features and packages:
624 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
625 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
628 --x-includes=DIR X include files are in DIR
629 --x-libraries=DIR X library files are in DIR
630EOF
631 if test -n "$ac_help"; then
632 echo "--enable and --with options recognized:$ac_help"
633 fi
634 exit 0 ;;
10f2d63a
VZ
635
636 -host | --host | --hos | --ho)
a0b9e27f 637 ac_prev=host ;;
10f2d63a 638 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 639 host="$ac_optarg" ;;
10f2d63a
VZ
640
641 -includedir | --includedir | --includedi | --included | --include \
642 | --includ | --inclu | --incl | --inc)
643 ac_prev=includedir ;;
644 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
645 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 646 includedir="$ac_optarg" ;;
10f2d63a
VZ
647
648 -infodir | --infodir | --infodi | --infod | --info | --inf)
649 ac_prev=infodir ;;
650 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 651 infodir="$ac_optarg" ;;
10f2d63a
VZ
652
653 -libdir | --libdir | --libdi | --libd)
654 ac_prev=libdir ;;
655 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 656 libdir="$ac_optarg" ;;
10f2d63a
VZ
657
658 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
659 | --libexe | --libex | --libe)
660 ac_prev=libexecdir ;;
661 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
662 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 663 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
664
665 -localstatedir | --localstatedir | --localstatedi | --localstated \
666 | --localstate | --localstat | --localsta | --localst \
667 | --locals | --local | --loca | --loc | --lo)
668 ac_prev=localstatedir ;;
669 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
670 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
671 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 672 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
673
674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
675 ac_prev=mandir ;;
676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 677 mandir="$ac_optarg" ;;
10f2d63a
VZ
678
679 -nfp | --nfp | --nf)
680 # Obsolete; use --without-fp.
681 with_fp=no ;;
682
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 684 | --no-cr | --no-c)
10f2d63a
VZ
685 no_create=yes ;;
686
687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
689 no_recursion=yes ;;
690
691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
693 | --oldin | --oldi | --old | --ol | --o)
694 ac_prev=oldincludedir ;;
695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 698 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
699
700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
701 ac_prev=prefix ;;
702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 703 prefix="$ac_optarg" ;;
10f2d63a
VZ
704
705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
706 | --program-pre | --program-pr | --program-p)
707 ac_prev=program_prefix ;;
708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 710 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
711
712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
713 | --program-suf | --program-su | --program-s)
714 ac_prev=program_suffix ;;
715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 717 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
718
719 -program-transform-name | --program-transform-name \
720 | --program-transform-nam | --program-transform-na \
721 | --program-transform-n | --program-transform- \
722 | --program-transform | --program-transfor \
723 | --program-transfo | --program-transf \
724 | --program-trans | --program-tran \
725 | --progr-tra | --program-tr | --program-t)
726 ac_prev=program_transform_name ;;
727 -program-transform-name=* | --program-transform-name=* \
728 | --program-transform-nam=* | --program-transform-na=* \
729 | --program-transform-n=* | --program-transform-=* \
730 | --program-transform=* | --program-transfor=* \
731 | --program-transfo=* | --program-transf=* \
732 | --program-trans=* | --program-tran=* \
733 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 734 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
735
736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
737 | -silent | --silent | --silen | --sile | --sil)
738 silent=yes ;;
739
740 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
741 ac_prev=sbindir ;;
742 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
743 | --sbi=* | --sb=*)
a0b9e27f 744 sbindir="$ac_optarg" ;;
10f2d63a
VZ
745
746 -sharedstatedir | --sharedstatedir | --sharedstatedi \
747 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
748 | --sharedst | --shareds | --shared | --share | --shar \
749 | --sha | --sh)
750 ac_prev=sharedstatedir ;;
751 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
752 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
753 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
754 | --sha=* | --sh=*)
a0b9e27f 755 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
756
757 -site | --site | --sit)
758 ac_prev=site ;;
759 -site=* | --site=* | --sit=*)
a0b9e27f 760 site="$ac_optarg" ;;
10f2d63a
VZ
761
762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
763 ac_prev=srcdir ;;
764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 765 srcdir="$ac_optarg" ;;
10f2d63a
VZ
766
767 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
768 | --syscon | --sysco | --sysc | --sys | --sy)
769 ac_prev=sysconfdir ;;
770 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
771 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 772 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
773
774 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 775 ac_prev=target ;;
10f2d63a 776 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 777 target="$ac_optarg" ;;
10f2d63a
VZ
778
779 -v | -verbose | --verbose | --verbos | --verbo | --verb)
780 verbose=yes ;;
781
a0b9e27f
MB
782 -version | --version | --versio | --versi | --vers)
783 echo "configure generated by autoconf version 2.13"
784 exit 0 ;;
10f2d63a
VZ
785
786 -with-* | --with-*)
a0b9e27f 787 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 788 # Reject names that are not valid shell variable names.
a0b9e27f
MB
789 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
10f2d63a 792 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
793 case "$ac_option" in
794 *=*) ;;
10f2d63a
VZ
795 *) ac_optarg=yes ;;
796 esac
a0b9e27f 797 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
798
799 -without-* | --without-*)
a0b9e27f 800 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 801 # Reject names that are not valid shell variable names.
a0b9e27f
MB
802 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
803 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
804 fi
805 ac_package=`echo $ac_package| sed 's/-/_/g'`
806 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
807
808 --x)
809 # Obsolete; use --with-x.
810 with_x=yes ;;
811
812 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
813 | --x-incl | --x-inc | --x-in | --x-i)
814 ac_prev=x_includes ;;
815 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
816 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 817 x_includes="$ac_optarg" ;;
10f2d63a
VZ
818
819 -x-libraries | --x-libraries | --x-librarie | --x-librari \
820 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
821 ac_prev=x_libraries ;;
822 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
823 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 824 x_libraries="$ac_optarg" ;;
10f2d63a 825
a0b9e27f 826 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
827 ;;
828
829 *)
a0b9e27f
MB
830 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
831 echo "configure: warning: $ac_option: invalid host type" 1>&2
832 fi
833 if test "x$nonopt" != xNONE; then
834 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
835 fi
836 nonopt="$ac_option"
10f2d63a
VZ
837 ;;
838
839 esac
840done
841
842if test -n "$ac_prev"; then
a0b9e27f 843 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 844fi
8284b0c5 845
a0b9e27f
MB
846trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
847
848# File descriptor usage:
849# 0 standard input
850# 1 file creation
851# 2 errors and warnings
852# 3 some systems may open it to /dev/tty
853# 4 used on the Kubota Titan
854# 6 checking for... messages and results
855# 5 compiler messages saved in config.log
856if test "$silent" = yes; then
857 exec 6>/dev/null
858else
859 exec 6>&1
860fi
861exec 5>./config.log
862
863echo "\
864This file contains any messages produced by compilers while
865running configure, to aid debugging if configure makes a mistake.
866" 1>&5
8284b0c5 867
a0b9e27f
MB
868# Strip out --no-create and --no-recursion so they do not pile up.
869# Also quote any args containing shell metacharacters.
870ac_configure_args=
871for ac_arg
10f2d63a 872do
a0b9e27f
MB
873 case "$ac_arg" in
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c) ;;
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
878 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
879 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
880 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
881 esac
882done
883
a0b9e27f
MB
884# NLS nuisances.
885# Only set these to C if already set. These must not be set unconditionally
886# because not all systems understand e.g. LANG=C (notably SCO).
887# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
888# Non-C LC_CTYPE values break the ctype check.
889if test "${LANG+set}" = set; then LANG=C; export LANG; fi
890if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
891if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
892if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 893
a0b9e27f
MB
894# confdefs.h avoids OS command line length limits that DEFS can exceed.
895rm -rf conftest* confdefs.h
896# AIX cpp loses on an empty file, so make sure it contains at least a newline.
897echo > confdefs.h
10f2d63a 898
a0b9e27f
MB
899# A filename unique to this package, relative to the directory that
900# configure is in, which we can look for to find out if srcdir is correct.
901ac_unique_file=wx-config.in
10f2d63a
VZ
902
903# Find the source files, if location was not specified.
904if test -z "$srcdir"; then
905 ac_srcdir_defaulted=yes
906 # Try the directory containing this script, then its parent.
a0b9e27f
MB
907 ac_prog=$0
908 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
909 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
910 srcdir=$ac_confdir
911 if test ! -r $srcdir/$ac_unique_file; then
912 srcdir=..
913 fi
914else
915 ac_srcdir_defaulted=no
916fi
917if test ! -r $srcdir/$ac_unique_file; then
918 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 919 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 920 else
a0b9e27f 921 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
922 fi
923fi
a0b9e27f 924srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 925
10f2d63a
VZ
926# Prefer explicitly selected file to automatically selected ones.
927if test -z "$CONFIG_SITE"; then
928 if test "x$prefix" != xNONE; then
929 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
930 else
931 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
932 fi
933fi
934for ac_site_file in $CONFIG_SITE; do
935 if test -r "$ac_site_file"; then
a0b9e27f 936 echo "loading site script $ac_site_file"
10f2d63a
VZ
937 . "$ac_site_file"
938 fi
939done
940
941if test -r "$cache_file"; then
a0b9e27f
MB
942 echo "loading cache $cache_file"
943 . $cache_file
10f2d63a 944else
a0b9e27f
MB
945 echo "creating cache $cache_file"
946 > $cache_file
10f2d63a
VZ
947fi
948
949ac_ext=c
a0b9e27f 950# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 951ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
952ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954cross_compiling=$ac_cv_prog_cc_cross
955
956ac_exeext=
957ac_objext=o
958if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
959 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
960 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
961 ac_n= ac_c='
962' ac_t=' '
963 else
964 ac_n=-n ac_c= ac_t=
965 fi
966else
967 ac_n= ac_c='\c' ac_t=
968fi
8284b0c5
MB
969
970
10f2d63a 971
7c66a493
VZ
972ac_aux_dir=
973for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974 if test -f $ac_dir/install-sh; then
975 ac_aux_dir=$ac_dir
976 ac_install_sh="$ac_aux_dir/install-sh -c"
977 break
978 elif test -f $ac_dir/install.sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install.sh -c"
981 break
247f5006 982 fi
7c66a493
VZ
983done
984if test -z "$ac_aux_dir"; then
a0b9e27f 985 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 986fi
a0b9e27f
MB
987ac_config_guess=$ac_aux_dir/config.guess
988ac_config_sub=$ac_aux_dir/config.sub
989ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 990
8284b0c5 991
a0b9e27f
MB
992# Do some error checking and defaulting for the host and target type.
993# The inputs are:
994# configure --host=HOST --target=TARGET --build=BUILD NONOPT
995#
996# The rules are:
997# 1. You are not allowed to specify --host, --target, and nonopt at the
998# same time.
999# 2. Host defaults to nonopt.
1000# 3. If nonopt is not specified, then host defaults to the current host,
1001# as determined by config.guess.
1002# 4. Target and build default to nonopt.
1003# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1004
1005# The aliases save the names the user supplied, while $host etc.
1006# will get canonicalized.
a0b9e27f
MB
1007case $host---$target---$nonopt in
1008NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010esac
1011
1012
1013# Make sure we can run config.sub.
1014if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1015else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016fi
1017
1018echo $ac_n "checking host system type""... $ac_c" 1>&6
dfa2a1d9 1019echo "configure:1020: checking host system type" >&5
a0b9e27f
MB
1020
1021host_alias=$host
1022case "$host_alias" in
1023NONE)
1024 case $nonopt in
1025 NONE)
1026 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1027 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1028 fi ;;
1029 *) host_alias=$nonopt ;;
1030 esac ;;
1031esac
1032
1033host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1034host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037echo "$ac_t""$host" 1>&6
1038
1039echo $ac_n "checking target system type""... $ac_c" 1>&6
dfa2a1d9 1040echo "configure:1041: checking target system type" >&5
a0b9e27f
MB
1041
1042target_alias=$target
1043case "$target_alias" in
1044NONE)
1045 case $nonopt in
1046 NONE) target_alias=$host_alias ;;
1047 *) target_alias=$nonopt ;;
1048 esac ;;
1049esac
1050
1051target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1052target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055echo "$ac_t""$target" 1>&6
1056
1057echo $ac_n "checking build system type""... $ac_c" 1>&6
dfa2a1d9 1058echo "configure:1059: checking build system type" >&5
a0b9e27f
MB
1059
1060build_alias=$build
1061case "$build_alias" in
1062NONE)
1063 case $nonopt in
1064 NONE) build_alias=$host_alias ;;
1065 *) build_alias=$nonopt ;;
1066 esac ;;
1067esac
1068
1069build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1070build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1071build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1072build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1073echo "$ac_t""$build" 1>&6
1074
1075test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1076 test "$program_prefix$program_suffix$program_transform_name" = \
1077 NONENONEs,x,x, &&
1078 program_prefix=${target_alias}-
8284b0c5
MB
1079
1080
a0b9e27f 1081
10f2d63a 1082WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1083WX_MINOR_VERSION_NUMBER=5
1084WX_RELEASE_NUMBER=0
10f2d63a 1085
10f2d63a 1086WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1087WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1088
978f1259
RL
1089WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1090
34bed6d9 1091WX_CURRENT=0
6426998c
RL
1092WX_REVISION=0
1093WX_AGE=0
1094
8284b0c5
MB
1095
1096
10f2d63a
VZ
1097USE_UNIX=1
1098USE_WIN32=0
f9bc1684 1099USE_DOS=0
b12915c1 1100USE_BEOS=0
1216f52d 1101USE_MAC=0
b12915c1 1102
10f2d63a 1103USE_AIX=
10f2d63a 1104USE_BSD=
f11bdd03 1105USE_DARWIN=
10f2d63a 1106USE_FREEBSD=
89e3b3e4
VZ
1107USE_HPUX=
1108USE_LINUX=
f6bcfd97 1109USE_NETBSD=
89e3b3e4
VZ
1110USE_OPENBSD=
1111USE_OSF=
1112USE_SGI=
1113USE_SOLARIS=
1114USE_SUN=
1115USE_SUNOS=
1116USE_SVR4=
1117USE_SYSV=
10f2d63a
VZ
1118USE_VMS=
1119USE_ULTRIX=
89e3b3e4
VZ
1120USE_UNIXWARE=
1121
1122USE_ALPHA=
10f2d63a 1123
ab9b9eab
VZ
1124NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
ac0c4cc3 1126ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1127
ac0c4cc3 1128DEFAULT_wxUSE_COCOA=0
10f2d63a 1129DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1130DEFAULT_wxUSE_MAC=0
1131DEFAULT_wxUSE_MGL=0
1725144d 1132DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1133DEFAULT_wxUSE_MOTIF=0
1134DEFAULT_wxUSE_MSW=0
e07802fc 1135DEFAULT_wxUSE_PM=0
f79bd02d 1136DEFAULT_wxUSE_X11=0
10f2d63a 1137
ac0c4cc3 1138DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1139DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1140DEFAULT_DEFAULT_wxUSE_MAC=0
1141DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1142DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1143DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1145DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1146DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1147
d6a55c4b 1148PROGRAM_EXT=
3a922bb4 1149SO_SUFFIX=so
d6a55c4b 1150
10f2d63a
VZ
1151case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1156 SO_SUFFIX=sl
a0b9e27f 1157 cat >> confdefs.h <<\EOF
10f2d63a 1158#define __HPUX__ 1
a0b9e27f 1159EOF
10f2d63a
VZ
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
a0b9e27f 1164 cat >> confdefs.h <<\EOF
10f2d63a 1165#define __LINUX__ 1
a0b9e27f 1166EOF
10f2d63a
VZ
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
a0b9e27f 1171 cat >> confdefs.h <<\EOF
10f2d63a 1172#define __ALPHA__ 1
a0b9e27f 1173EOF
10f2d63a
VZ
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
a0b9e27f 1181 cat >> confdefs.h <<\EOF
10f2d63a 1182#define __SGI__ 1
a0b9e27f 1183EOF
10f2d63a 1184
a0b9e27f 1185 cat >> confdefs.h <<\EOF
10f2d63a 1186#define __SVR4__ 1
a0b9e27f 1187EOF
10f2d63a
VZ
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
a0b9e27f 1195 cat >> confdefs.h <<\EOF
10f2d63a 1196#define __SUN__ 1
a0b9e27f 1197EOF
10f2d63a 1198
a0b9e27f 1199 cat >> confdefs.h <<\EOF
10f2d63a 1200#define __SOLARIS__ 1
a0b9e27f 1201EOF
10f2d63a 1202
a0b9e27f 1203 cat >> confdefs.h <<\EOF
10f2d63a 1204#define __SVR4__ 1
a0b9e27f 1205EOF
10f2d63a
VZ
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
a0b9e27f 1214 cat >> confdefs.h <<\EOF
10f2d63a 1215#define __SUN__ 1
a0b9e27f 1216EOF
10f2d63a 1217
a0b9e27f 1218 cat >> confdefs.h <<\EOF
10f2d63a 1219#define __SUNOS__ 1
a0b9e27f 1220EOF
10f2d63a 1221
a0b9e27f 1222 cat >> confdefs.h <<\EOF
10f2d63a 1223#define __BSD__ 1
a0b9e27f 1224EOF
10f2d63a
VZ
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
f6bcfd97 1228 *-*-freebsd*)
10f2d63a
VZ
1229 USE_BSD=1
1230 USE_FREEBSD=1
a0b9e27f 1231 cat >> confdefs.h <<\EOF
10f2d63a 1232#define __FREEBSD__ 1
a0b9e27f 1233EOF
10f2d63a 1234
a0b9e27f 1235 cat >> confdefs.h <<\EOF
10f2d63a 1236#define __BSD__ 1
a0b9e27f 1237EOF
95c8801c
VS
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
a0b9e27f 1244 cat >> confdefs.h <<\EOF
2b5f62a0 1245#define __OPENBSD__ 1
a0b9e27f 1246EOF
95c8801c 1247
a0b9e27f 1248 cat >> confdefs.h <<\EOF
2b5f62a0 1249#define __BSD__ 1
a0b9e27f 1250EOF
f6bcfd97
BP
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
a0b9e27f 1257 cat >> confdefs.h <<\EOF
2b5f62a0 1258#define __NETBSD__ 1
a0b9e27f 1259EOF
f6bcfd97 1260
a0b9e27f 1261 cat >> confdefs.h <<\EOF
2b5f62a0 1262#define __BSD__ 1
a0b9e27f 1263EOF
10f2d63a
VZ
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
a0b9e27f 1270 cat >> confdefs.h <<\EOF
10f2d63a 1271#define __ALPHA__ 1
a0b9e27f 1272EOF
10f2d63a 1273
a0b9e27f 1274 cat >> confdefs.h <<\EOF
10f2d63a 1275#define __OSF__ 1
a0b9e27f 1276EOF
10f2d63a
VZ
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
a0b9e27f 1284 cat >> confdefs.h <<\EOF
10f2d63a 1285#define __ALPHA__ 1
a0b9e27f 1286EOF
10f2d63a 1287
a0b9e27f 1288 cat >> confdefs.h <<\EOF
10f2d63a 1289#define __SVR4__ 1
a0b9e27f 1290EOF
10f2d63a
VZ
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
a0b9e27f 1297 cat >> confdefs.h <<\EOF
10f2d63a 1298#define __SYSV__ 1
a0b9e27f 1299EOF
10f2d63a 1300
a0b9e27f 1301 cat >> confdefs.h <<\EOF
10f2d63a 1302#define __SVR4__ 1
a0b9e27f 1303EOF
10f2d63a
VZ
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
2b5f62a0 1311 SO_SUFFIX=a
a0b9e27f 1312 cat >> confdefs.h <<\EOF
10f2d63a 1313#define __AIX__ 1
a0b9e27f 1314EOF
10f2d63a 1315
a0b9e27f 1316 cat >> confdefs.h <<\EOF
10f2d63a 1317#define __SYSV__ 1
a0b9e27f 1318EOF
10f2d63a 1319
a0b9e27f 1320 cat >> confdefs.h <<\EOF
10f2d63a 1321#define __SVR4__ 1
a0b9e27f 1322EOF
10f2d63a
VZ
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
89e3b3e4
VZ
1327 *-*-*UnixWare*)
1328 USE_SYSV=1
1329 USE_SVR4=1
1330 USE_UNIXWARE=1
1331 cat >> confdefs.h <<\EOF
1332#define __UNIXWARE__ 1
1333EOF
1334
1335 ;;
1336
1c8183e2 1337 *-*-cygwin* | *-*-mingw32* )
17234b26 1338 SO_SUFFIX=dll
cf27ef00 1339 PROGRAM_EXT=".exe"
7b7a7637 1340 RESCOMP=windres
10f2d63a
VZ
1341 DEFAULT_DEFAULT_wxUSE_MSW=1
1342 ;;
1343
f9bc1684
VS
1344 *-pc-msdosdjgpp )
1345 USE_UNIX=0
1346 USE_DOS=1
a0b9e27f 1347 cat >> confdefs.h <<\EOF
f9bc1684 1348#define __DOS__ 1
a0b9e27f 1349EOF
f9bc1684
VS
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1353 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1354 ;;
1355
6fa882bd 1356 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1357 cat >> confdefs.h <<\EOF
10f2d63a 1358#define __EMX__ 1
a0b9e27f 1359EOF
10f2d63a 1360
cf27ef00 1361 PROGRAM_EXT=".exe"
e07802fc 1362 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1363 ;;
1364
d08b457b
GD
1365 powerpc-*-darwin* )
1366 USE_BSD=1
f11bdd03 1367 USE_DARWIN=1
3a922bb4 1368 SO_SUFFIX=dylib
a0b9e27f 1369 cat >> confdefs.h <<\EOF
f11bdd03 1370#define __BSD__ 1
a0b9e27f 1371EOF
b4085ce6 1372
a0b9e27f 1373 cat >> confdefs.h <<\EOF
f11bdd03 1374#define __DARWIN__ 1
a0b9e27f 1375EOF
d08b457b 1376
a0b9e27f 1377 cat >> confdefs.h <<\EOF
d08b457b 1378#define __POWERPC__ 1
82d43113
GD
1379EOF
1380
1381 cat >> confdefs.h <<\EOF
1382#define TARGET_CARBON 1
a0b9e27f 1383EOF
b4085ce6
GD
1384
1385 DEFAULT_DEFAULT_wxUSE_MAC=1
1386 ;;
1387
b12915c1
VZ
1388 *-*-beos* )
1389 USE_BEOS=1
a0b9e27f 1390 cat >> confdefs.h <<\EOF
b12915c1 1391#define __BEOS__ 1
a0b9e27f 1392EOF
b12915c1
VZ
1393
1394 ;;
1395
10f2d63a 1396 *)
a0b9e27f 1397 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1398esac
1399
8284b0c5
MB
1400
1401
1402
1403 wx_arg_cache_file="configarg.cache"
1404 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1405 rm -f ${wx_arg_cache_file}.tmp
1406 touch ${wx_arg_cache_file}.tmp
1407 touch ${wx_arg_cache_file}
a0b9e27f 1408
10f2d63a
VZ
1409
1410DEBUG_CONFIGURE=0
1411if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1412 DEFAULT_wxUSE_UNIVERSAL=no
1413
d8356fa3
VZ
1414 DEFAULT_wxUSE_NANOX=no
1415
10f2d63a
VZ
1416 DEFAULT_wxUSE_THREADS=yes
1417
1418 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1419 DEFAULT_wxUSE_SONAME=no
1e6feb95 1420 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_PROFILE=no
1422 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1423 DEFAULT_wxUSE_NO_RTTI=no
1424 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1425 DEFAULT_wxUSE_PERMISSIVE=no
1426 DEFAULT_wxUSE_DEBUG_FLAG=yes
1427 DEFAULT_wxUSE_DEBUG_INFO=yes
1428 DEFAULT_wxUSE_DEBUG_GDB=yes
1429 DEFAULT_wxUSE_MEM_TRACING=no
1430 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1431 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1432 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1433 DEFAULT_wxUSE_APPLE_IEEE=no
1434
1435 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1436 DEFAULT_wxUSE_LOGWINDOW=no
1437 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1438 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1439
1440 DEFAULT_wxUSE_GUI=yes
1e6feb95 1441 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1442
3e44f09d 1443 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1444 DEFAULT_wxUSE_ZLIB=no
1445 DEFAULT_wxUSE_LIBPNG=no
1446 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1447 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1448 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1449 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1450
eb4efbdc 1451 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1452 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1453 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1454 DEFAULT_wxUSE_CMDLINE_PARSER=no
1455 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1456 DEFAULT_wxUSE_TIMER=no
1457 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1458 DEFAULT_wxUSE_FILE=no
1e6feb95 1459 DEFAULT_wxUSE_FFILE=no
a3a584a7 1460 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1461 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1462 DEFAULT_wxUSE_WAVE=no
1463 DEFAULT_wxUSE_INTL=no
1464 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1465 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1466 DEFAULT_wxUSE_STREAMS=no
1467 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1468 DEFAULT_wxUSE_OLE=no
1469 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1470 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1471 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1472 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1473 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1474 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1475 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1476
1477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1479 DEFAULT_wxUSE_POSTSCRIPT=no
1480
1481 DEFAULT_wxUSE_X_RESOURCES=no
1482 DEFAULT_wxUSE_CLIPBOARD=no
1483 DEFAULT_wxUSE_TOOLTIPS=no
1484 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1485 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1486 DEFAULT_wxUSE_SPLINES=no
1487
1488 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1489 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1490 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1491
10f2d63a
VZ
1492 DEFAULT_wxUSE_RESOURCES=no
1493 DEFAULT_wxUSE_CONSTRAINTS=no
1494 DEFAULT_wxUSE_IPC=no
1495 DEFAULT_wxUSE_HELP=no
29fd3c0c 1496 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1497 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1498 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1499 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1500 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1501 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1502 DEFAULT_wxUSE_PROTOCOL=no
1503 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1504 DEFAULT_wxUSE_PROTOCOL_FTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FILE=no
1506 DEFAULT_wxUSE_URL=no
3bd8fb5f 1507
10f2d63a 1508 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1509 DEFAULT_wxUSE_CHOICEDLG=no
1510 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1511 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1512 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1513 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1514 DEFAULT_wxUSE_FONTDLG=no
1515 DEFAULT_wxUSE_MSGDLG=no
1516 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1517 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1518 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1519 DEFAULT_wxUSE_STARTUP_TIPS=no
1520 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1521 DEFAULT_wxUSE_WIZARDDLG=no
1522
1e6feb95 1523 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1524 DEFAULT_wxUSE_MINIFRAME=no
1525 DEFAULT_wxUSE_HTML=no
24528b0c 1526 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1527 DEFAULT_wxUSE_FS_INET=no
1528 DEFAULT_wxUSE_FS_ZIP=no
1529 DEFAULT_wxUSE_BUSYINFO=no
1530 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1531 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1532
1533 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1534 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1535 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1536 DEFAULT_wxUSE_CALCTRL=no
1537 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1538 DEFAULT_wxUSE_CHECKBOX=no
1539 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1540 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1541 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1542 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1543 DEFAULT_wxUSE_GAUGE=no
1544 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_IMAGLIST=no
1546 DEFAULT_wxUSE_LISTBOX=no
1547 DEFAULT_wxUSE_LISTCTRL=no
1548 DEFAULT_wxUSE_NOTEBOOK=no
1549 DEFAULT_wxUSE_RADIOBOX=no
1550 DEFAULT_wxUSE_RADIOBTN=no
1551 DEFAULT_wxUSE_SASH=no
1552 DEFAULT_wxUSE_SCROLLBAR=no
1553 DEFAULT_wxUSE_SLIDER=no
1554 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1555 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1556 DEFAULT_wxUSE_SPLITTER=no
1557 DEFAULT_wxUSE_STATBMP=no
1558 DEFAULT_wxUSE_STATBOX=no
1559 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1560 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1561 DEFAULT_wxUSE_STATUSBAR=yes
1562 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1563 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1564 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1565 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1566 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1567 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1568 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1569 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1570 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1571
1572 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1573 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1574 DEFAULT_wxUSE_WCSRTOMBS=no
1575
edae8572 1576 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1577 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1578 DEFAULT_wxUSE_GIF=no
1579 DEFAULT_wxUSE_PCX=no
1580 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1581 DEFAULT_wxUSE_IFF=no
0046ff7c 1582 DEFAULT_wxUSE_XPM=no
658974ae 1583 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1584else
1e6feb95
VZ
1585 DEFAULT_wxUSE_UNIVERSAL=no
1586
d8356fa3
VZ
1587 DEFAULT_wxUSE_NANOX=no
1588
10f2d63a
VZ
1589 DEFAULT_wxUSE_THREADS=yes
1590
1591 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1592 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1593 DEFAULT_wxUSE_OPTIMISE=yes
1594 DEFAULT_wxUSE_PROFILE=no
1595 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1596 DEFAULT_wxUSE_NO_RTTI=no
1597 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1598 DEFAULT_wxUSE_PERMISSIVE=no
1599 DEFAULT_wxUSE_DEBUG_FLAG=no
1600 DEFAULT_wxUSE_DEBUG_INFO=no
1601 DEFAULT_wxUSE_DEBUG_GDB=no
1602 DEFAULT_wxUSE_MEM_TRACING=no
1603 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1604 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1605 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1606 DEFAULT_wxUSE_APPLE_IEEE=yes
1607
1608 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1609 DEFAULT_wxUSE_LOGWINDOW=yes
1610 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1611 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1612
1613 DEFAULT_wxUSE_GUI=yes
1614
831b3152 1615 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1616 DEFAULT_wxUSE_ZLIB=yes
1617 DEFAULT_wxUSE_LIBPNG=yes
1618 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1619 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1620 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1621 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1622
eb4efbdc 1623 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1624 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1625 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1626 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1627 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
1628 DEFAULT_wxUSE_TIMER=yes
1629 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1630 DEFAULT_wxUSE_FILE=yes
1e6feb95 1631 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1632 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1633 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1634 DEFAULT_wxUSE_WAVE=no
1635 DEFAULT_wxUSE_INTL=yes
1636 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1637 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_STREAMS=yes
1639 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1640 DEFAULT_wxUSE_OLE=yes
1641 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1642 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1643 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1644 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1645 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1646 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1647 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1648
1649 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1650 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1651 DEFAULT_wxUSE_POSTSCRIPT=yes
1652
1653 DEFAULT_wxUSE_X_RESOURCES=no
1654 DEFAULT_wxUSE_CLIPBOARD=yes
1655 DEFAULT_wxUSE_TOOLTIPS=yes
1656 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1657 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1658 DEFAULT_wxUSE_SPLINES=yes
1659
1660 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1661 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1663
2b5f62a0 1664 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1665 DEFAULT_wxUSE_CONSTRAINTS=yes
1666 DEFAULT_wxUSE_IPC=yes
1667 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1668 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1669 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1670 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1671 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1672 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1673 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1674 DEFAULT_wxUSE_PROTOCOL=yes
1675 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1676 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1678 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1679
1680 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1681 DEFAULT_wxUSE_CHOICEDLG=yes
1682 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1683 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1684 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1685 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1686 DEFAULT_wxUSE_FONTDLG=yes
1687 DEFAULT_wxUSE_MSGDLG=yes
1688 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1689 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1690 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1691 DEFAULT_wxUSE_STARTUP_TIPS=yes
1692 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1693 DEFAULT_wxUSE_WIZARDDLG=yes
1694
1e6feb95 1695 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1696 DEFAULT_wxUSE_MINIFRAME=yes
1697 DEFAULT_wxUSE_HTML=yes
24528b0c 1698 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1699 DEFAULT_wxUSE_FS_INET=yes
1700 DEFAULT_wxUSE_FS_ZIP=yes
1701 DEFAULT_wxUSE_BUSYINFO=yes
1702 DEFAULT_wxUSE_ZIPSTREAM=yes
1703 DEFAULT_wxUSE_VALIDATORS=yes
1704
1705 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1706 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1707 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1708 DEFAULT_wxUSE_CALCTRL=yes
1709 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1710 DEFAULT_wxUSE_CHECKBOX=yes
1711 DEFAULT_wxUSE_CHECKLST=yes
1712 DEFAULT_wxUSE_CHOICE=yes
1713 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1714 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1715 DEFAULT_wxUSE_GAUGE=yes
1716 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_IMAGLIST=yes
1718 DEFAULT_wxUSE_LISTBOX=yes
1719 DEFAULT_wxUSE_LISTCTRL=yes
1720 DEFAULT_wxUSE_NOTEBOOK=yes
1721 DEFAULT_wxUSE_RADIOBOX=yes
1722 DEFAULT_wxUSE_RADIOBTN=yes
1723 DEFAULT_wxUSE_SASH=yes
1724 DEFAULT_wxUSE_SCROLLBAR=yes
1725 DEFAULT_wxUSE_SLIDER=yes
1726 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1727 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1728 DEFAULT_wxUSE_SPLITTER=yes
1729 DEFAULT_wxUSE_STATBMP=yes
1730 DEFAULT_wxUSE_STATBOX=yes
1731 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1732 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1733 DEFAULT_wxUSE_STATUSBAR=yes
1734 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1735 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1736 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1737 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1738 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1739 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1740 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1741 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1742 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1743
1744 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1745 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1746 DEFAULT_wxUSE_WCSRTOMBS=no
1747
edae8572 1748 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1749 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1750 DEFAULT_wxUSE_GIF=yes
1751 DEFAULT_wxUSE_PCX=yes
cc0e8480 1752 DEFAULT_wxUSE_IFF=no
10f2d63a 1753 DEFAULT_wxUSE_PNM=yes
0046ff7c 1754 DEFAULT_wxUSE_XPM=yes
658974ae 1755 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1756fi
1757
8284b0c5
MB
1758
1759
10f2d63a 1760for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1761 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1762 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1763 has_toolkit_in_cache=1
1764 eval "DEFAULT_$LINE"
1765 eval "CACHE_$toolkit=1"
1766 fi
1767done
1768
8284b0c5
MB
1769
1770
5005acfe
VZ
1771 enablestring=
1772 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
89e3b3e4 1773echo "configure:1774: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1774 no_cache=0
1775 # Check whether --enable-gui or --disable-gui was given.
1776if test "${enable_gui+set}" = set; then
1777 enableval="$enable_gui"
a0b9e27f 1778
10f2d63a
VZ
1779 if test "$enableval" = yes; then
1780 ac_cv_use_gui='wxUSE_GUI=yes'
1781 else
1782 ac_cv_use_gui='wxUSE_GUI=no'
1783 fi
a0b9e27f 1784
10f2d63a 1785else
a0b9e27f 1786
10f2d63a
VZ
1787 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1788 if test "x$LINE" != x ; then
1789 eval "DEFAULT_$LINE"
1790 else
1791 no_cache=1
1792 fi
1793
1794 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1795
1796fi
10f2d63a
VZ
1797
1798
1799 eval "$ac_cv_use_gui"
1800 if test "$no_cache" != 1; then
1801 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1802 fi
1803
1804 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1805 echo "$ac_t""yes" 1>&6
10f2d63a 1806 else
a0b9e27f 1807 echo "$ac_t""no" 1>&6
10f2d63a 1808 fi
a0b9e27f 1809
10f2d63a 1810
b12915c1 1811if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1812
8284b0c5 1813
5005acfe
VZ
1814 enablestring=
1815 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
89e3b3e4 1816echo "configure:1817: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1817 no_cache=0
1818 # Check whether --enable-universal or --disable-universal was given.
1819if test "${enable_universal+set}" = set; then
1820 enableval="$enable_universal"
a0b9e27f 1821
1e6feb95
VZ
1822 if test "$enableval" = yes; then
1823 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1824 else
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1826 fi
a0b9e27f 1827
1e6feb95 1828else
a0b9e27f 1829
1e6feb95
VZ
1830 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1838
1839fi
1e6feb95
VZ
1840
1841
1842 eval "$ac_cv_use_universal"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1848 echo "$ac_t""yes" 1>&6
1e6feb95 1849 else
a0b9e27f 1850 echo "$ac_t""no" 1>&6
1e6feb95 1851 fi
a0b9e27f 1852
10f2d63a
VZ
1853# Check whether --with-gtk or --without-gtk was given.
1854if test "${with_gtk+set}" = set; then
1855 withval="$with_gtk"
1856 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1857fi
10f2d63a
VZ
1858
1859# Check whether --with-motif or --without-motif was given.
1860if test "${with_motif+set}" = set; then
1861 withval="$with_motif"
1862 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1863fi
10f2d63a 1864
b4085ce6
GD
1865# Check whether --with-mac or --without-mac was given.
1866if test "${with_mac+set}" = set; then
1867 withval="$with_mac"
1868 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1869fi
b4085ce6 1870
ac0c4cc3
DE
1871# Check whether --with-cocoa or --without-cocoa was given.
1872if test "${with_cocoa+set}" = set; then
1873 withval="$with_cocoa"
1874 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1875fi
1876
10f2d63a
VZ
1877# Check whether --with-wine or --without-wine was given.
1878if test "${with_wine+set}" = set; then
1879 withval="$with_wine"
89e6bf6d 1880 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1881fi
10f2d63a 1882
77e13408
RL
1883# Check whether --with-msw or --without-msw was given.
1884if test "${with_msw+set}" = set; then
1885 withval="$with_msw"
b4efce5e 1886 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1887fi
10f2d63a 1888
e07802fc
VZ
1889# Check whether --with-pm or --without-pm was given.
1890if test "${with_pm+set}" = set; then
1891 withval="$with_pm"
1892 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1893fi
698dcdb6 1894
1e6feb95
VZ
1895# Check whether --with-mgl or --without-mgl was given.
1896if test "${with_mgl+set}" = set; then
1897 withval="$with_mgl"
6c657b52 1898 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1899fi
1e6feb95 1900
1725144d
RR
1901# Check whether --with-microwin or --without-microwin was given.
1902if test "${with_microwin+set}" = set; then
1903 withval="$with_microwin"
1904 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1905fi
1725144d 1906
f79bd02d
JS
1907# Check whether --with-x11 or --without-x11 was given.
1908if test "${with_x11+set}" = set; then
1909 withval="$with_x11"
3c011993 1910 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1911fi
10f2d63a 1912
a0b9e27f 1913
5005acfe
VZ
1914 enablestring=
1915 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
89e3b3e4 1916echo "configure:1917: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1917 no_cache=0
ba875e66
VZ
1918 # Check whether --enable-nanox or --disable-nanox was given.
1919if test "${enable_nanox+set}" = set; then
1920 enableval="$enable_nanox"
a0b9e27f 1921
d8356fa3 1922 if test "$enableval" = yes; then
ba875e66 1923 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1924 else
ba875e66 1925 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1926 fi
a0b9e27f 1927
d8356fa3 1928else
a0b9e27f 1929
d8356fa3
VZ
1930 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1931 if test "x$LINE" != x ; then
1932 eval "DEFAULT_$LINE"
1933 else
1934 no_cache=1
1935 fi
1936
ba875e66 1937 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1938
1939fi
d8356fa3
VZ
1940
1941
ba875e66 1942 eval "$ac_cv_use_nanox"
d8356fa3 1943 if test "$no_cache" != 1; then
ba875e66 1944 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1945 fi
1946
1947 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1948 echo "$ac_t""yes" 1>&6
d8356fa3 1949 else
a0b9e27f 1950 echo "$ac_t""no" 1>&6
d8356fa3 1951 fi
a0b9e27f 1952
8284b0c5 1953
d74f4b5a 1954
5005acfe
VZ
1955 enablestring=
1956 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
89e3b3e4 1957echo "configure:1958: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1958 no_cache=0
1959 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1960if test "${enable_gtk2+set}" = set; then
1961 enableval="$enable_gtk2"
a0b9e27f 1962
d74f4b5a
VZ
1963 if test "$enableval" = yes; then
1964 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1965 else
1966 ac_cv_use_gtk2='wxUSE_GTK2=no'
1967 fi
a0b9e27f 1968
10f2d63a 1969else
a0b9e27f 1970
d74f4b5a
VZ
1971 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1972 if test "x$LINE" != x ; then
1973 eval "DEFAULT_$LINE"
1974 else
1975 no_cache=1
1976 fi
1977
1978 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1979
1980fi
52127426 1981
328a083c 1982
d74f4b5a
VZ
1983 eval "$ac_cv_use_gtk2"
1984 if test "$no_cache" != 1; then
1985 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1986 fi
1987
1988 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1989 echo "$ac_t""yes" 1>&6
d74f4b5a 1990 else
a0b9e27f 1991 echo "$ac_t""no" 1>&6
d74f4b5a 1992 fi
a0b9e27f 1993
d74f4b5a 1994
5c6fa7d2 1995
a0b9e27f 1996 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
89e3b3e4 1997echo "configure:1998: checking for --with-libpng" >&5
8284b0c5 1998 no_cache=0
a0b9e27f 1999 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2000if test "${with_libpng+set}" = set; then
2001 withval="$with_libpng"
a0b9e27f 2002
10f2d63a 2003 if test "$withval" = yes; then
b12915c1 2004 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2005 elif test "$withval" = no; then
b12915c1 2006 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2007 elif test "$withval" = sys; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2009 elif test "$withval" = builtin; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2011 else
a0b9e27f 2012 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2013 fi
a0b9e27f 2014
10f2d63a 2015else
a0b9e27f 2016
b12915c1 2017 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2018 if test "x$LINE" != x ; then
2019 eval "DEFAULT_$LINE"
2020 else
2021 no_cache=1
2022 fi
2023
b12915c1 2024 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2025
2026fi
10f2d63a
VZ
2027
2028
b12915c1 2029 eval "$ac_cv_use_libpng"
10f2d63a 2030 if test "$no_cache" != 1; then
b12915c1 2031 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2032 fi
2033
b12915c1 2034 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2035 echo "$ac_t""yes" 1>&6
422107f9 2036 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2037 echo "$ac_t""no" 1>&6
422107f9 2038 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2039 echo "$ac_t""system version" 1>&6
4f14bcd8 2040 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2041 echo "$ac_t""builtin version" 1>&6
422107f9 2042 else
a0b9e27f 2043 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2044 fi
a0b9e27f 2045
10f2d63a 2046
a0b9e27f 2047 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
89e3b3e4 2048echo "configure:2049: checking for --with-libjpeg" >&5
10f2d63a 2049 no_cache=0
a0b9e27f 2050 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2051if test "${with_libjpeg+set}" = set; then
2052 withval="$with_libjpeg"
a0b9e27f 2053
10f2d63a 2054 if test "$withval" = yes; then
b12915c1 2055 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2056 elif test "$withval" = no; then
b12915c1 2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2058 elif test "$withval" = sys; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2060 elif test "$withval" = builtin; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2062 else
a0b9e27f 2063 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2064 fi
a0b9e27f 2065
10f2d63a 2066else
a0b9e27f 2067
b12915c1 2068 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2069 if test "x$LINE" != x ; then
2070 eval "DEFAULT_$LINE"
2071 else
2072 no_cache=1
2073 fi
2074
b12915c1 2075 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2076
2077fi
10f2d63a
VZ
2078
2079
b12915c1 2080 eval "$ac_cv_use_libjpeg"
10f2d63a 2081 if test "$no_cache" != 1; then
b12915c1 2082 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2083 fi
2084
b12915c1 2085 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2086 echo "$ac_t""yes" 1>&6
422107f9 2087 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2088 echo "$ac_t""no" 1>&6
422107f9 2089 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2090 echo "$ac_t""system version" 1>&6
4f14bcd8 2091 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2092 echo "$ac_t""builtin version" 1>&6
422107f9 2093 else
a0b9e27f 2094 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2095 fi
a0b9e27f 2096
10f2d63a 2097
a0b9e27f 2098 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
89e3b3e4 2099echo "configure:2100: checking for --with-libtiff" >&5
10f2d63a 2100 no_cache=0
a0b9e27f 2101 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2102if test "${with_libtiff+set}" = set; then
2103 withval="$with_libtiff"
a0b9e27f 2104
10f2d63a 2105 if test "$withval" = yes; then
b12915c1 2106 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2107 elif test "$withval" = no; then
b12915c1 2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2109 elif test "$withval" = sys; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2111 elif test "$withval" = builtin; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2113 else
a0b9e27f 2114 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2115 fi
a0b9e27f 2116
10f2d63a 2117else
a0b9e27f 2118
b12915c1 2119 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2120 if test "x$LINE" != x ; then
2121 eval "DEFAULT_$LINE"
2122 else
2123 no_cache=1
2124 fi
2125
b12915c1 2126 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2127
2128fi
10f2d63a
VZ
2129
2130
b12915c1 2131 eval "$ac_cv_use_libtiff"
10f2d63a 2132 if test "$no_cache" != 1; then
b12915c1 2133 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2134 fi
2135
b12915c1 2136 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2137 echo "$ac_t""yes" 1>&6
0dcf9893 2138 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2139 echo "$ac_t""no" 1>&6
0dcf9893 2140 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2141 echo "$ac_t""system version" 1>&6
4f14bcd8 2142 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2143 echo "$ac_t""builtin version" 1>&6
0dcf9893 2144 else
a0b9e27f 2145 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2146 fi
a0b9e27f 2147
10f2d63a 2148
a0b9e27f 2149 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
89e3b3e4 2150echo "configure:2151: checking for --with-opengl" >&5
10f2d63a 2151 no_cache=0
a0b9e27f 2152 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2153if test "${with_opengl+set}" = set; then
2154 withval="$with_opengl"
a0b9e27f 2155
10f2d63a 2156 if test "$withval" = yes; then
b12915c1 2157 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2158 else
b12915c1 2159 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2160 fi
a0b9e27f 2161
10f2d63a 2162else
a0b9e27f 2163
b12915c1 2164 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2165 if test "x$LINE" != x ; then
2166 eval "DEFAULT_$LINE"
2167 else
2168 no_cache=1
2169 fi
2170
b12915c1 2171 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2172
2173fi
10f2d63a
VZ
2174
2175
b12915c1 2176 eval "$ac_cv_use_opengl"
10f2d63a 2177 if test "$no_cache" != 1; then
b12915c1 2178 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2179 fi
2180
b12915c1 2181 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2182 echo "$ac_t""yes" 1>&6
10f2d63a 2183 else
a0b9e27f 2184 echo "$ac_t""no" 1>&6
10f2d63a 2185 fi
a0b9e27f 2186
10f2d63a 2187
b12915c1
VZ
2188fi
2189
5c6fa7d2 2190
a0b9e27f 2191 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
89e3b3e4 2192echo "configure:2193: checking for --with-dmalloc" >&5
8284b0c5 2193 no_cache=0
a0b9e27f 2194 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2195if test "${with_dmalloc+set}" = set; then
2196 withval="$with_dmalloc"
a0b9e27f 2197
c7a2bf27 2198 if test "$withval" = yes; then
b12915c1 2199 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2200 else
b12915c1 2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2202 fi
a0b9e27f 2203
c7a2bf27 2204else
a0b9e27f 2205
b12915c1 2206 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2207 if test "x$LINE" != x ; then
2208 eval "DEFAULT_$LINE"
2209 else
2210 no_cache=1
2211 fi
2212
b12915c1 2213 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2214
2215fi
c7a2bf27
RR
2216
2217
b12915c1 2218 eval "$ac_cv_use_dmalloc"
c7a2bf27 2219 if test "$no_cache" != 1; then
b12915c1 2220 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2221 fi
2222
b12915c1 2223 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2224 echo "$ac_t""yes" 1>&6
c7a2bf27 2225 else
a0b9e27f 2226 echo "$ac_t""no" 1>&6
c7a2bf27 2227 fi
a0b9e27f 2228
c7a2bf27 2229
a0b9e27f 2230 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
89e3b3e4 2231echo "configure:2232: checking for --with-regex" >&5
3e44f09d 2232 no_cache=0
a0b9e27f 2233 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2234if test "${with_regex+set}" = set; then
2235 withval="$with_regex"
a0b9e27f 2236
3e44f09d
VZ
2237 if test "$withval" = yes; then
2238 ac_cv_use_regex='wxUSE_REGEX=yes'
2239 elif test "$withval" = no; then
2240 ac_cv_use_regex='wxUSE_REGEX=no'
2241 elif test "$withval" = sys; then
2242 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2243 elif test "$withval" = builtin; then
2244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2245 else
a0b9e27f 2246 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2247 fi
a0b9e27f 2248
3e44f09d 2249else
a0b9e27f 2250
3e44f09d
VZ
2251 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2252 if test "x$LINE" != x ; then
2253 eval "DEFAULT_$LINE"
2254 else
2255 no_cache=1
2256 fi
2257
2258 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2259
2260fi
3e44f09d
VZ
2261
2262
2263 eval "$ac_cv_use_regex"
2264 if test "$no_cache" != 1; then
2265 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2266 fi
2267
2268 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2269 echo "$ac_t""yes" 1>&6
3e44f09d 2270 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2271 echo "$ac_t""no" 1>&6
3e44f09d 2272 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2273 echo "$ac_t""system version" 1>&6
4f14bcd8 2274 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2275 echo "$ac_t""builtin version" 1>&6
3e44f09d 2276 else
a0b9e27f 2277 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2278 fi
a0b9e27f 2279
3e44f09d 2280
a0b9e27f 2281 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
89e3b3e4 2282echo "configure:2283: checking for --with-zlib" >&5
10f2d63a 2283 no_cache=0
a0b9e27f 2284 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2285if test "${with_zlib+set}" = set; then
2286 withval="$with_zlib"
a0b9e27f 2287
10f2d63a 2288 if test "$withval" = yes; then
b12915c1 2289 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2290 elif test "$withval" = no; then
b12915c1 2291 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2292 elif test "$withval" = sys; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2294 elif test "$withval" = builtin; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2296 else
a0b9e27f 2297 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2298 fi
a0b9e27f 2299
10f2d63a 2300else
a0b9e27f 2301
b12915c1 2302 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
b12915c1 2309 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2310
2311fi
10f2d63a
VZ
2312
2313
b12915c1 2314 eval "$ac_cv_use_zlib"
10f2d63a 2315 if test "$no_cache" != 1; then
b12915c1 2316 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2317 fi
2318
b12915c1 2319 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2320 echo "$ac_t""yes" 1>&6
422107f9 2321 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2322 echo "$ac_t""no" 1>&6
422107f9 2323 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2324 echo "$ac_t""system version" 1>&6
4f14bcd8 2325 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2326 echo "$ac_t""builtin version" 1>&6
422107f9 2327 else
a0b9e27f 2328 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2329 fi
a0b9e27f 2330
10f2d63a 2331
a0b9e27f 2332 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
89e3b3e4 2333echo "configure:2334: checking for --with-odbc" >&5
10f2d63a 2334 no_cache=0
a0b9e27f 2335 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2336if test "${with_odbc+set}" = set; then
2337 withval="$with_odbc"
a0b9e27f 2338
10f2d63a
VZ
2339 if test "$withval" = yes; then
2340 ac_cv_use_odbc='wxUSE_ODBC=yes'
2341 else
2342 ac_cv_use_odbc='wxUSE_ODBC=no'
2343 fi
a0b9e27f 2344
10f2d63a 2345else
a0b9e27f 2346
10f2d63a
VZ
2347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2355
2356fi
10f2d63a
VZ
2357
2358
2359 eval "$ac_cv_use_odbc"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2365 echo "$ac_t""yes" 1>&6
10f2d63a 2366 else
a0b9e27f 2367 echo "$ac_t""no" 1>&6
10f2d63a 2368 fi
a0b9e27f 2369
52127426 2370
8284b0c5
MB
2371
2372
5005acfe
VZ
2373 enablestring=
2374 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
89e3b3e4 2375echo "configure:2376: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2376 no_cache=0
2377 # Check whether --enable-shared or --disable-shared was given.
2378if test "${enable_shared+set}" = set; then
2379 enableval="$enable_shared"
a0b9e27f 2380
10f2d63a
VZ
2381 if test "$enableval" = yes; then
2382 ac_cv_use_shared='wxUSE_SHARED=yes'
2383 else
2384 ac_cv_use_shared='wxUSE_SHARED=no'
2385 fi
a0b9e27f 2386
10f2d63a 2387else
a0b9e27f 2388
10f2d63a
VZ
2389 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2390 if test "x$LINE" != x ; then
2391 eval "DEFAULT_$LINE"
2392 else
2393 no_cache=1
2394 fi
2395
2396 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2397
2398fi
10f2d63a
VZ
2399
2400
2401 eval "$ac_cv_use_shared"
2402 if test "$no_cache" != 1; then
2403 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2404 fi
2405
2406 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2407 echo "$ac_t""yes" 1>&6
10f2d63a 2408 else
a0b9e27f 2409 echo "$ac_t""no" 1>&6
10f2d63a 2410 fi
a0b9e27f 2411
10f2d63a 2412
5005acfe
VZ
2413 enablestring=
2414 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
89e3b3e4 2415echo "configure:2416: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2416 no_cache=0
3a922bb4
RL
2417 # Check whether --enable-soname or --disable-soname was given.
2418if test "${enable_soname+set}" = set; then
2419 enableval="$enable_soname"
a0b9e27f 2420
00cf1208 2421 if test "$enableval" = yes; then
3a922bb4 2422 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2423 else
3a922bb4 2424 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2425 fi
a0b9e27f 2426
00cf1208 2427else
a0b9e27f 2428
3a922bb4 2429 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
3a922bb4 2436 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2437
2438fi
00cf1208
RR
2439
2440
3a922bb4 2441 eval "$ac_cv_use_soname"
00cf1208 2442 if test "$no_cache" != 1; then
3a922bb4 2443 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2444 fi
2445
3a922bb4 2446 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2447 echo "$ac_t""yes" 1>&6
00cf1208 2448 else
a0b9e27f 2449 echo "$ac_t""no" 1>&6
00cf1208 2450 fi
a0b9e27f 2451
00cf1208 2452
5005acfe
VZ
2453 enablestring=
2454 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
89e3b3e4 2455echo "configure:2456: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2456 no_cache=0
2457 # Check whether --enable-optimise or --disable-optimise was given.
2458if test "${enable_optimise+set}" = set; then
2459 enableval="$enable_optimise"
a0b9e27f 2460
10f2d63a
VZ
2461 if test "$enableval" = yes; then
2462 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2463 else
2464 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2465 fi
a0b9e27f 2466
10f2d63a 2467else
a0b9e27f 2468
10f2d63a
VZ
2469 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2477
2478fi
10f2d63a
VZ
2479
2480
2481 eval "$ac_cv_use_optimise"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2487 echo "$ac_t""yes" 1>&6
10f2d63a 2488 else
a0b9e27f 2489 echo "$ac_t""no" 1>&6
10f2d63a 2490 fi
a0b9e27f 2491
10f2d63a 2492
5005acfe
VZ
2493 enablestring=
2494 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
89e3b3e4 2495echo "configure:2496: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2496 no_cache=0
2497 # Check whether --enable-debug or --disable-debug was given.
2498if test "${enable_debug+set}" = set; then
2499 enableval="$enable_debug"
a0b9e27f 2500
10f2d63a
VZ
2501 if test "$enableval" = yes; then
2502 ac_cv_use_debug='wxUSE_DEBUG=yes'
2503 else
2504 ac_cv_use_debug='wxUSE_DEBUG=no'
2505 fi
a0b9e27f 2506
10f2d63a 2507else
a0b9e27f 2508
10f2d63a
VZ
2509 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2510 if test "x$LINE" != x ; then
2511 eval "DEFAULT_$LINE"
2512 else
2513 no_cache=1
2514 fi
2515
2516 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2517
2518fi
10f2d63a
VZ
2519
2520
2521 eval "$ac_cv_use_debug"
2522 if test "$no_cache" != 1; then
2523 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2524 fi
2525
2526 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2527 echo "$ac_t""yes" 1>&6
10f2d63a 2528 else
a0b9e27f 2529 echo "$ac_t""no" 1>&6
10f2d63a 2530 fi
a0b9e27f 2531
52127426 2532
8284b0c5 2533
5005acfe
VZ
2534 enablestring=
2535 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
89e3b3e4 2536echo "configure:2537: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2537 no_cache=0
2538 # Check whether --enable-precomp or --disable-precomp was given.
2539if test "${enable_precomp+set}" = set; then
2540 enableval="$enable_precomp"
a0b9e27f 2541
683dccda
GD
2542 if test "$enableval" = yes; then
2543 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2544 else
2545 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2546 fi
a0b9e27f 2547
683dccda 2548else
a0b9e27f 2549
683dccda
GD
2550 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2558
2559fi
683dccda
GD
2560
2561
2562 eval "$ac_cv_use_precomp"
2563 if test "$no_cache" != 1; then
2564 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2565 fi
2566
2567 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2568 echo "$ac_t""yes" 1>&6
683dccda 2569 else
a0b9e27f 2570 echo "$ac_t""no" 1>&6
683dccda 2571 fi
a0b9e27f 2572
683dccda 2573
10f2d63a
VZ
2574if test "$wxUSE_DEBUG" = "yes"; then
2575 DEFAULT_wxUSE_DEBUG_FLAG=yes
2576 DEFAULT_wxUSE_DEBUG_INFO=yes
2577elif test "$wxUSE_DEBUG" = "no"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=no
2579 DEFAULT_wxUSE_DEBUG_INFO=no
2580fi
2581
8284b0c5 2582
5005acfe
VZ
2583 enablestring=
2584 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
89e3b3e4 2585echo "configure:2586: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2586 no_cache=0
2587 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2588if test "${enable_debug_flag+set}" = set; then
2589 enableval="$enable_debug_flag"
a0b9e27f 2590
10f2d63a
VZ
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2593 else
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2595 fi
a0b9e27f 2596
10f2d63a 2597else
a0b9e27f 2598
10f2d63a
VZ
2599 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2600 if test "x$LINE" != x ; then
2601 eval "DEFAULT_$LINE"
2602 else
2603 no_cache=1
2604 fi
2605
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2607
2608fi
10f2d63a
VZ
2609
2610
2611 eval "$ac_cv_use_debug_flag"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2617 echo "$ac_t""yes" 1>&6
10f2d63a 2618 else
a0b9e27f 2619 echo "$ac_t""no" 1>&6
10f2d63a 2620 fi
a0b9e27f 2621
10f2d63a 2622
5005acfe
VZ
2623 enablestring=
2624 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
89e3b3e4 2625echo "configure:2626: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2626 no_cache=0
2627 # Check whether --enable-debug_info or --disable-debug_info was given.
2628if test "${enable_debug_info+set}" = set; then
2629 enableval="$enable_debug_info"
a0b9e27f 2630
10f2d63a
VZ
2631 if test "$enableval" = yes; then
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2633 else
2634 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2635 fi
a0b9e27f 2636
10f2d63a 2637else
a0b9e27f 2638
10f2d63a
VZ
2639 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2647
2648fi
10f2d63a
VZ
2649
2650
2651 eval "$ac_cv_use_debug_info"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2657 echo "$ac_t""yes" 1>&6
10f2d63a 2658 else
a0b9e27f 2659 echo "$ac_t""no" 1>&6
10f2d63a 2660 fi
a0b9e27f 2661
10f2d63a 2662
5005acfe
VZ
2663 enablestring=
2664 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
89e3b3e4 2665echo "configure:2666: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2666 no_cache=0
2667 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2668if test "${enable_debug_gdb+set}" = set; then
2669 enableval="$enable_debug_gdb"
a0b9e27f 2670
10f2d63a
VZ
2671 if test "$enableval" = yes; then
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2673 else
2674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2675 fi
a0b9e27f 2676
10f2d63a 2677else
a0b9e27f 2678
10f2d63a
VZ
2679 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2687
2688fi
10f2d63a
VZ
2689
2690
2691 eval "$ac_cv_use_debug_gdb"
2692 if test "$no_cache" != 1; then
2693 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2694 fi
2695
2696 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2697 echo "$ac_t""yes" 1>&6
10f2d63a 2698 else
a0b9e27f 2699 echo "$ac_t""no" 1>&6
10f2d63a 2700 fi
a0b9e27f 2701
10f2d63a 2702
5005acfe
VZ
2703 enablestring=
2704 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
89e3b3e4 2705echo "configure:2706: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2706 no_cache=0
2707 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2708if test "${enable_debug_cntxt+set}" = set; then
2709 enableval="$enable_debug_cntxt"
a0b9e27f 2710
10f2d63a
VZ
2711 if test "$enableval" = yes; then
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2713 else
2714 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2715 fi
a0b9e27f 2716
10f2d63a 2717else
a0b9e27f 2718
10f2d63a
VZ
2719 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2720 if test "x$LINE" != x ; then
2721 eval "DEFAULT_$LINE"
2722 else
2723 no_cache=1
2724 fi
2725
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2727
2728fi
10f2d63a
VZ
2729
2730
2731 eval "$ac_cv_use_debug_cntxt"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2737 echo "$ac_t""yes" 1>&6
10f2d63a 2738 else
a0b9e27f 2739 echo "$ac_t""no" 1>&6
10f2d63a 2740 fi
a0b9e27f 2741
10f2d63a 2742
5005acfe
VZ
2743 enablestring=
2744 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
89e3b3e4 2745echo "configure:2746: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2746 no_cache=0
2747 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2748if test "${enable_mem_tracing+set}" = set; then
2749 enableval="$enable_mem_tracing"
a0b9e27f 2750
10f2d63a
VZ
2751 if test "$enableval" = yes; then
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2753 else
2754 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2755 fi
a0b9e27f 2756
10f2d63a 2757else
a0b9e27f 2758
10f2d63a
VZ
2759 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2767
2768fi
10f2d63a
VZ
2769
2770
2771 eval "$ac_cv_use_mem_tracing"
2772 if test "$no_cache" != 1; then
2773 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2774 fi
2775
2776 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2777 echo "$ac_t""yes" 1>&6
10f2d63a 2778 else
a0b9e27f 2779 echo "$ac_t""no" 1>&6
10f2d63a 2780 fi
a0b9e27f 2781
10f2d63a 2782
5005acfe
VZ
2783 enablestring=
2784 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
89e3b3e4 2785echo "configure:2786: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2786 no_cache=0
2787 # Check whether --enable-profile or --disable-profile was given.
2788if test "${enable_profile+set}" = set; then
2789 enableval="$enable_profile"
a0b9e27f 2790
10f2d63a
VZ
2791 if test "$enableval" = yes; then
2792 ac_cv_use_profile='wxUSE_PROFILE=yes'
2793 else
2794 ac_cv_use_profile='wxUSE_PROFILE=no'
2795 fi
a0b9e27f 2796
10f2d63a 2797else
a0b9e27f 2798
10f2d63a
VZ
2799 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2807
2808fi
10f2d63a
VZ
2809
2810
2811 eval "$ac_cv_use_profile"
2812 if test "$no_cache" != 1; then
2813 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2814 fi
2815
2816 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2817 echo "$ac_t""yes" 1>&6
10f2d63a 2818 else
a0b9e27f 2819 echo "$ac_t""no" 1>&6
10f2d63a 2820 fi
a0b9e27f 2821
10f2d63a 2822
5005acfe
VZ
2823 enablestring=
2824 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
89e3b3e4 2825echo "configure:2826: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2826 no_cache=0
2827 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2828if test "${enable_no_rtti+set}" = set; then
2829 enableval="$enable_no_rtti"
a0b9e27f 2830
10f2d63a
VZ
2831 if test "$enableval" = yes; then
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2833 else
2834 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2835 fi
a0b9e27f 2836
10f2d63a 2837else
a0b9e27f 2838
10f2d63a
VZ
2839 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2840 if test "x$LINE" != x ; then
2841 eval "DEFAULT_$LINE"
2842 else
2843 no_cache=1
2844 fi
2845
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2847
2848fi
10f2d63a
VZ
2849
2850
2851 eval "$ac_cv_use_no_rtti"
2852 if test "$no_cache" != 1; then
2853 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2854 fi
2855
2856 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2857 echo "$ac_t""yes" 1>&6
10f2d63a 2858 else
a0b9e27f 2859 echo "$ac_t""no" 1>&6
10f2d63a 2860 fi
a0b9e27f 2861
10f2d63a 2862
5005acfe
VZ
2863 enablestring=
2864 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
89e3b3e4 2865echo "configure:2866: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2866 no_cache=0
2867 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2868if test "${enable_no_exceptions+set}" = set; then
2869 enableval="$enable_no_exceptions"
a0b9e27f 2870
10f2d63a
VZ
2871 if test "$enableval" = yes; then
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2873 else
2874 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2875 fi
a0b9e27f 2876
10f2d63a 2877else
a0b9e27f 2878
10f2d63a
VZ
2879 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2880 if test "x$LINE" != x ; then
2881 eval "DEFAULT_$LINE"
2882 else
2883 no_cache=1
2884 fi
2885
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2887
2888fi
10f2d63a
VZ
2889
2890
2891 eval "$ac_cv_use_no_exceptions"
2892 if test "$no_cache" != 1; then
2893 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2894 fi
2895
2896 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2897 echo "$ac_t""yes" 1>&6
10f2d63a 2898 else
a0b9e27f 2899 echo "$ac_t""no" 1>&6
10f2d63a 2900 fi
a0b9e27f 2901
10f2d63a 2902
5005acfe
VZ
2903 enablestring=
2904 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
89e3b3e4 2905echo "configure:2906: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2906 no_cache=0
2907 # Check whether --enable-permissive or --disable-permissive was given.
2908if test "${enable_permissive+set}" = set; then
2909 enableval="$enable_permissive"
a0b9e27f 2910
10f2d63a
VZ
2911 if test "$enableval" = yes; then
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2913 else
2914 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2915 fi
a0b9e27f 2916
10f2d63a 2917else
a0b9e27f 2918
10f2d63a
VZ
2919 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2927
2928fi
10f2d63a
VZ
2929
2930
2931 eval "$ac_cv_use_permissive"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2937 echo "$ac_t""yes" 1>&6
10f2d63a 2938 else
a0b9e27f 2939 echo "$ac_t""no" 1>&6
10f2d63a 2940 fi
a0b9e27f 2941
10f2d63a 2942
5005acfe
VZ
2943 enablestring=
2944 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
89e3b3e4 2945echo "configure:2946: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2946 no_cache=0
2947 # Check whether --enable-no_deps or --disable-no_deps was given.
2948if test "${enable_no_deps+set}" = set; then
2949 enableval="$enable_no_deps"
a0b9e27f 2950
10f2d63a
VZ
2951 if test "$enableval" = yes; then
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2953 else
2954 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2955 fi
a0b9e27f 2956
10f2d63a 2957else
a0b9e27f 2958
10f2d63a
VZ
2959 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2967
2968fi
10f2d63a
VZ
2969
2970
2971 eval "$ac_cv_use_no_deps"
2972 if test "$no_cache" != 1; then
2973 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2974 fi
2975
2976 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2977 echo "$ac_t""yes" 1>&6
10f2d63a 2978 else
a0b9e27f 2979 echo "$ac_t""no" 1>&6
10f2d63a 2980 fi
a0b9e27f 2981
52127426 2982
8284b0c5 2983
5005acfe
VZ
2984 enablestring=
2985 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
89e3b3e4 2986echo "configure:2987: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2987 no_cache=0
2988 # Check whether --enable-compat20 or --disable-compat20 was given.
2989if test "${enable_compat20+set}" = set; then
2990 enableval="$enable_compat20"
a0b9e27f 2991
54276ccf
VZ
2992 if test "$enableval" = yes; then
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2994 else
2995 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2996 fi
a0b9e27f 2997
54276ccf 2998else
a0b9e27f 2999
54276ccf
VZ
3000 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
3008
3009fi
54276ccf
VZ
3010
3011
3012 eval "$ac_cv_use_compat20"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3018 echo "$ac_t""yes" 1>&6
54276ccf 3019 else
a0b9e27f 3020 echo "$ac_t""no" 1>&6
54276ccf 3021 fi
a0b9e27f 3022
54276ccf 3023
65d8ef1e 3024 enablestring=
5005acfe 3025 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
89e3b3e4 3026echo "configure:3027: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3027 no_cache=0
3028 # Check whether --enable-compat22 or --disable-compat22 was given.
3029if test "${enable_compat22+set}" = set; then
3030 enableval="$enable_compat22"
a0b9e27f 3031
54276ccf
VZ
3032 if test "$enableval" = yes; then
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3034 else
3035 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3036 fi
a0b9e27f 3037
54276ccf 3038else
a0b9e27f 3039
54276ccf
VZ
3040 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3041 if test "x$LINE" != x ; then
3042 eval "DEFAULT_$LINE"
3043 else
3044 no_cache=1
3045 fi
3046
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3048
3049fi
54276ccf
VZ
3050
3051
3052 eval "$ac_cv_use_compat22"
3053 if test "$no_cache" != 1; then
3054 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3055 fi
3056
3057 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3058 echo "$ac_t""yes" 1>&6
54276ccf 3059 else
a0b9e27f 3060 echo "$ac_t""no" 1>&6
54276ccf 3061 fi
a0b9e27f 3062
54276ccf 3063
65d8ef1e
VS
3064 enablestring=disable
3065 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
89e3b3e4 3066echo "configure:3067: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3067 no_cache=0
3068 # Check whether --enable-compat24 or --disable-compat24 was given.
3069if test "${enable_compat24+set}" = set; then
3070 enableval="$enable_compat24"
3071
3072 if test "$enableval" = yes; then
3073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3074 else
3075 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3076 fi
3077
3078else
3079
3080 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3088
3089fi
3090
3091
3092 eval "$ac_cv_use_compat24"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3098 echo "$ac_t""yes" 1>&6
3099 else
3100 echo "$ac_t""no" 1>&6
3101 fi
3102
3103
3bd8fb5f
RD
3104# Check whether --enable-rpath or --disable-rpath was given.
3105if test "${enable_rpath+set}" = set; then
3106 enableval="$enable_rpath"
3107 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3108fi
3109
3bd8fb5f
RD
3110
3111if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3112 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3113fi
3114
8284b0c5
MB
3115
3116
3117
5005acfe
VZ
3118 enablestring=
3119 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
89e3b3e4 3120echo "configure:3121: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3121 no_cache=0
3122 # Check whether --enable-intl or --disable-intl was given.
3123if test "${enable_intl+set}" = set; then
3124 enableval="$enable_intl"
a0b9e27f 3125
10f2d63a
VZ
3126 if test "$enableval" = yes; then
3127 ac_cv_use_intl='wxUSE_INTL=yes'
3128 else
3129 ac_cv_use_intl='wxUSE_INTL=no'
3130 fi
a0b9e27f 3131
10f2d63a 3132else
a0b9e27f 3133
10f2d63a
VZ
3134 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3142
3143fi
10f2d63a
VZ
3144
3145
3146 eval "$ac_cv_use_intl"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3152 echo "$ac_t""yes" 1>&6
10f2d63a 3153 else
a0b9e27f 3154 echo "$ac_t""no" 1>&6
10f2d63a 3155 fi
a0b9e27f 3156
10f2d63a 3157
5005acfe
VZ
3158 enablestring=
3159 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
89e3b3e4 3160echo "configure:3161: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3161 no_cache=0
3162 # Check whether --enable-config or --disable-config was given.
3163if test "${enable_config+set}" = set; then
3164 enableval="$enable_config"
a0b9e27f 3165
10f2d63a
VZ
3166 if test "$enableval" = yes; then
3167 ac_cv_use_config='wxUSE_CONFIG=yes'
3168 else
3169 ac_cv_use_config='wxUSE_CONFIG=no'
3170 fi
a0b9e27f 3171
10f2d63a 3172else
a0b9e27f 3173
10f2d63a
VZ
3174 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3182
3183fi
10f2d63a
VZ
3184
3185
3186 eval "$ac_cv_use_config"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3192 echo "$ac_t""yes" 1>&6
10f2d63a 3193 else
a0b9e27f 3194 echo "$ac_t""no" 1>&6
10f2d63a 3195 fi
a0b9e27f 3196
52127426 3197
8284b0c5 3198
5005acfe
VZ
3199 enablestring=
3200 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
89e3b3e4 3201echo "configure:3202: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3202 no_cache=0
3203 # Check whether --enable-protocols or --disable-protocols was given.
3204if test "${enable_protocols+set}" = set; then
3205 enableval="$enable_protocols"
a0b9e27f 3206
a1622950
VZ
3207 if test "$enableval" = yes; then
3208 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3209 else
3210 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3211 fi
a0b9e27f 3212
a1622950 3213else
a0b9e27f 3214
a1622950
VZ
3215 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3223
3224fi
a1622950
VZ
3225
3226
3227 eval "$ac_cv_use_protocols"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3233 echo "$ac_t""yes" 1>&6
a1622950 3234 else
a0b9e27f 3235 echo "$ac_t""no" 1>&6
a1622950 3236 fi
a0b9e27f 3237
a1622950 3238
5005acfe
VZ
3239 enablestring=
3240 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
89e3b3e4 3241echo "configure:3242: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3242 no_cache=0
3243 # Check whether --enable-ftp or --disable-ftp was given.
3244if test "${enable_ftp+set}" = set; then
3245 enableval="$enable_ftp"
a0b9e27f 3246
a1622950
VZ
3247 if test "$enableval" = yes; then
3248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3249 else
3250 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3251 fi
a0b9e27f 3252
a1622950 3253else
a0b9e27f 3254
a1622950
VZ
3255 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3263
3264fi
a1622950
VZ
3265
3266
3267 eval "$ac_cv_use_ftp"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3273 echo "$ac_t""yes" 1>&6
a1622950 3274 else
a0b9e27f 3275 echo "$ac_t""no" 1>&6
a1622950 3276 fi
a0b9e27f 3277
a1622950 3278
5005acfe
VZ
3279 enablestring=
3280 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
89e3b3e4 3281echo "configure:3282: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3282 no_cache=0
3283 # Check whether --enable-http or --disable-http was given.
3284if test "${enable_http+set}" = set; then
3285 enableval="$enable_http"
a0b9e27f 3286
a1622950
VZ
3287 if test "$enableval" = yes; then
3288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3289 else
3290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3291 fi
a0b9e27f 3292
a1622950 3293else
a0b9e27f 3294
a1622950
VZ
3295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3303
3304fi
a1622950
VZ
3305
3306
3307 eval "$ac_cv_use_http"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3313 echo "$ac_t""yes" 1>&6
a1622950 3314 else
a0b9e27f 3315 echo "$ac_t""no" 1>&6
a1622950 3316 fi
a0b9e27f 3317
a1622950 3318
5005acfe
VZ
3319 enablestring=
3320 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
89e3b3e4 3321echo "configure:3322: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3322 no_cache=0
3323 # Check whether --enable-fileproto or --disable-fileproto was given.
3324if test "${enable_fileproto+set}" = set; then
3325 enableval="$enable_fileproto"
a0b9e27f 3326
a1622950
VZ
3327 if test "$enableval" = yes; then
3328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3329 else
3330 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3331 fi
a0b9e27f 3332
a1622950 3333else
a0b9e27f 3334
a1622950
VZ
3335 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3343
3344fi
a1622950
VZ
3345
3346
3347 eval "$ac_cv_use_fileproto"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3353 echo "$ac_t""yes" 1>&6
a1622950 3354 else
a0b9e27f 3355 echo "$ac_t""no" 1>&6
a1622950 3356 fi
a0b9e27f 3357
a1622950 3358
5005acfe
VZ
3359 enablestring=
3360 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
89e3b3e4 3361echo "configure:3362: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3362 no_cache=0
3363 # Check whether --enable-sockets or --disable-sockets was given.
3364if test "${enable_sockets+set}" = set; then
3365 enableval="$enable_sockets"
a0b9e27f 3366
10f2d63a
VZ
3367 if test "$enableval" = yes; then
3368 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3369 else
3370 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3371 fi
a0b9e27f 3372
10f2d63a 3373else
a0b9e27f 3374
10f2d63a
VZ
3375 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3376 if test "x$LINE" != x ; then
3377 eval "DEFAULT_$LINE"
3378 else
3379 no_cache=1
3380 fi
3381
3382 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3383
3384fi
10f2d63a
VZ
3385
3386
3387 eval "$ac_cv_use_sockets"
3388 if test "$no_cache" != 1; then
3389 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3390 fi
3391
3392 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3393 echo "$ac_t""yes" 1>&6
10f2d63a 3394 else
a0b9e27f 3395 echo "$ac_t""no" 1>&6
10f2d63a 3396 fi
a0b9e27f 3397
8284b0c5 3398
5005acfe
VZ
3399 enablestring=
3400 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
89e3b3e4 3401echo "configure:3402: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3402 no_cache=0
3403 # Check whether --enable-ole or --disable-ole was given.
3404if test "${enable_ole+set}" = set; then
3405 enableval="$enable_ole"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_ole='wxUSE_OLE=yes'
3409 else
3410 ac_cv_use_ole='wxUSE_OLE=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3423
3424fi
3425
3426
3427 eval "$ac_cv_use_ole"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_OLE" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
5005acfe
VZ
3439 enablestring=
3440 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
89e3b3e4 3441echo "configure:3442: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3442 no_cache=0
3443 # Check whether --enable-dataobj or --disable-dataobj was given.
3444if test "${enable_dataobj+set}" = set; then
3445 enableval="$enable_dataobj"
3446
3447 if test "$enableval" = yes; then
3448 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3449 else
3450 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3451 fi
3452
3453else
3454
3455 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3463
3464fi
3465
3466
3467 eval "$ac_cv_use_dataobj"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_DATAOBJ" = yes; then
3473 echo "$ac_t""yes" 1>&6
3474 else
3475 echo "$ac_t""no" 1>&6
3476 fi
3477
3478
52127426 3479
5005acfe
VZ
3480 enablestring=
3481 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
89e3b3e4 3482echo "configure:3483: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3483 no_cache=0
eb4efbdc
VZ
3484 # Check whether --enable-ipc or --disable-ipc was given.
3485if test "${enable_ipc+set}" = set; then
3486 enableval="$enable_ipc"
a0b9e27f 3487
10f2d63a 3488 if test "$enableval" = yes; then
eb4efbdc 3489 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3490 else
eb4efbdc 3491 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3492 fi
a0b9e27f 3493
10f2d63a 3494else
a0b9e27f 3495
eb4efbdc 3496 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
eb4efbdc 3503 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3504
3505fi
10f2d63a
VZ
3506
3507
eb4efbdc 3508 eval "$ac_cv_use_ipc"
10f2d63a 3509 if test "$no_cache" != 1; then
eb4efbdc 3510 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3511 fi
3512
eb4efbdc 3513 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3514 echo "$ac_t""yes" 1>&6
10f2d63a 3515 else
a0b9e27f 3516 echo "$ac_t""no" 1>&6
10f2d63a 3517 fi
a0b9e27f 3518
52127426 3519
8284b0c5 3520
5005acfe
VZ
3521 enablestring=
3522 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
89e3b3e4 3523echo "configure:3524: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3524 no_cache=0
3525 # Check whether --enable-cmdline or --disable-cmdline was given.
3526if test "${enable_cmdline+set}" = set; then
3527 enableval="$enable_cmdline"
a0b9e27f 3528
1e6feb95
VZ
3529 if test "$enableval" = yes; then
3530 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3531 else
3532 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3533 fi
a0b9e27f 3534
1e6feb95 3535else
a0b9e27f 3536
1e6feb95
VZ
3537 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3545
3546fi
1e6feb95
VZ
3547
3548
3549 eval "$ac_cv_use_cmdline"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3555 echo "$ac_t""yes" 1>&6
1e6feb95 3556 else
a0b9e27f 3557 echo "$ac_t""no" 1>&6
1e6feb95 3558 fi
a0b9e27f 3559
1e6feb95 3560
5005acfe
VZ
3561 enablestring=
3562 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
89e3b3e4 3563echo "configure:3564: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3564 no_cache=0
3565 # Check whether --enable-datetime or --disable-datetime was given.
3566if test "${enable_datetime+set}" = set; then
3567 enableval="$enable_datetime"
a0b9e27f 3568
1e6feb95
VZ
3569 if test "$enableval" = yes; then
3570 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3571 else
3572 ac_cv_use_datetime='wxUSE_DATETIME=no'
3573 fi
a0b9e27f 3574
1e6feb95 3575else
a0b9e27f 3576
1e6feb95
VZ
3577 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3585
3586fi
1e6feb95
VZ
3587
3588
3589 eval "$ac_cv_use_datetime"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3595 echo "$ac_t""yes" 1>&6
1e6feb95 3596 else
a0b9e27f 3597 echo "$ac_t""no" 1>&6
1e6feb95 3598 fi
a0b9e27f 3599
1e6feb95 3600
5005acfe
VZ
3601 enablestring=
3602 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
89e3b3e4 3603echo "configure:3604: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3604 no_cache=0
3605 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3606if test "${enable_stopwatch+set}" = set; then
3607 enableval="$enable_stopwatch"
a0b9e27f 3608
1e6feb95
VZ
3609 if test "$enableval" = yes; then
3610 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3611 else
3612 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3613 fi
a0b9e27f 3614
1e6feb95 3615else
a0b9e27f 3616
1e6feb95
VZ
3617 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3618 if test "x$LINE" != x ; then
3619 eval "DEFAULT_$LINE"
3620 else
3621 no_cache=1
3622 fi
3623
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3625
3626fi
1e6feb95
VZ
3627
3628
3629 eval "$ac_cv_use_stopwatch"
3630 if test "$no_cache" != 1; then
3631 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3632 fi
3633
3634 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3635 echo "$ac_t""yes" 1>&6
1e6feb95 3636 else
a0b9e27f 3637 echo "$ac_t""no" 1>&6
1e6feb95 3638 fi
a0b9e27f 3639
1e6feb95 3640
5005acfe
VZ
3641 enablestring=
3642 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
89e3b3e4 3643echo "configure:3644: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3644 no_cache=0
eb4efbdc
VZ
3645 # Check whether --enable-dialupman or --disable-dialupman was given.
3646if test "${enable_dialupman+set}" = set; then
3647 enableval="$enable_dialupman"
a0b9e27f 3648
10f2d63a 3649 if test "$enableval" = yes; then
eb4efbdc 3650 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3651 else
eb4efbdc 3652 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3653 fi
a0b9e27f 3654
10f2d63a 3655else
a0b9e27f 3656
eb4efbdc 3657 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3658 if test "x$LINE" != x ; then
3659 eval "DEFAULT_$LINE"
3660 else
3661 no_cache=1
3662 fi
3663
eb4efbdc 3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3665
3666fi
10f2d63a
VZ
3667
3668
eb4efbdc 3669 eval "$ac_cv_use_dialupman"
10f2d63a 3670 if test "$no_cache" != 1; then
eb4efbdc 3671 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3672 fi
3673
eb4efbdc 3674 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3675 echo "$ac_t""yes" 1>&6
10f2d63a 3676 else
a0b9e27f 3677 echo "$ac_t""no" 1>&6
10f2d63a 3678 fi
a0b9e27f 3679
10f2d63a 3680
5005acfe
VZ
3681 enablestring=
3682 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
89e3b3e4 3683echo "configure:3684: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3684 no_cache=0
3685 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3686if test "${enable_apple_ieee+set}" = set; then
3687 enableval="$enable_apple_ieee"
a0b9e27f 3688
10f2d63a
VZ
3689 if test "$enableval" = yes; then
3690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3691 else
3692 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3693 fi
a0b9e27f 3694
10f2d63a 3695else
a0b9e27f 3696
10f2d63a
VZ
3697 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3705
3706fi
10f2d63a
VZ
3707
3708
3709 eval "$ac_cv_use_apple_ieee"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3715 echo "$ac_t""yes" 1>&6
10f2d63a 3716 else
a0b9e27f 3717 echo "$ac_t""no" 1>&6
10f2d63a 3718 fi
a0b9e27f 3719
10f2d63a 3720
5005acfe
VZ
3721 enablestring=
3722 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
89e3b3e4 3723echo "configure:3724: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3724 no_cache=0
1e6feb95
VZ
3725 # Check whether --enable-timer or --disable-timer was given.
3726if test "${enable_timer+set}" = set; then
3727 enableval="$enable_timer"
a0b9e27f 3728
10f2d63a 3729 if test "$enableval" = yes; then
1e6feb95 3730 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3731 else
1e6feb95 3732 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3733 fi
a0b9e27f 3734
10f2d63a 3735else
a0b9e27f 3736
1e6feb95 3737 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
1e6feb95 3744 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3745
3746fi
10f2d63a
VZ
3747
3748
1e6feb95 3749 eval "$ac_cv_use_timer"
10f2d63a 3750 if test "$no_cache" != 1; then
1e6feb95 3751 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3752 fi
3753
1e6feb95 3754 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3755 echo "$ac_t""yes" 1>&6
10f2d63a 3756 else
a0b9e27f 3757 echo "$ac_t""no" 1>&6
10f2d63a 3758 fi
a0b9e27f 3759
10f2d63a 3760
5005acfe
VZ
3761 enablestring=
3762 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
89e3b3e4 3763echo "configure:3764: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3764 no_cache=0
3765 # Check whether --enable-wave or --disable-wave was given.
3766if test "${enable_wave+set}" = set; then
3767 enableval="$enable_wave"
a0b9e27f 3768
10f2d63a
VZ
3769 if test "$enableval" = yes; then
3770 ac_cv_use_wave='wxUSE_WAVE=yes'
3771 else
3772 ac_cv_use_wave='wxUSE_WAVE=no'
3773 fi
a0b9e27f 3774
10f2d63a 3775else
a0b9e27f 3776
10f2d63a
VZ
3777 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3785
3786fi
10f2d63a
VZ
3787
3788
3789 eval "$ac_cv_use_wave"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3795 echo "$ac_t""yes" 1>&6
10f2d63a 3796 else
a0b9e27f 3797 echo "$ac_t""no" 1>&6
10f2d63a 3798 fi
a0b9e27f 3799
10f2d63a 3800
5005acfe
VZ
3801 enablestring=
3802 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
89e3b3e4 3803echo "configure:3804: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3804 no_cache=0
3805 # Check whether --enable-fraction or --disable-fraction was given.
3806if test "${enable_fraction+set}" = set; then
3807 enableval="$enable_fraction"
a0b9e27f 3808
10f2d63a
VZ
3809 if test "$enableval" = yes; then
3810 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3811 else
3812 ac_cv_use_fraction='wxUSE_FRACTION=no'
3813 fi
a0b9e27f 3814
10f2d63a 3815else
a0b9e27f 3816
10f2d63a
VZ
3817 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3825
3826fi
10f2d63a
VZ
3827
3828
3829 eval "$ac_cv_use_fraction"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3835 echo "$ac_t""yes" 1>&6
10f2d63a 3836 else
a0b9e27f 3837 echo "$ac_t""no" 1>&6
10f2d63a 3838 fi
a0b9e27f 3839
10f2d63a 3840
5005acfe
VZ
3841 enablestring=
3842 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
89e3b3e4 3843echo "configure:3844: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3844 no_cache=0
3845 # Check whether --enable-dynlib or --disable-dynlib was given.
3846if test "${enable_dynlib+set}" = set; then
3847 enableval="$enable_dynlib"
a0b9e27f 3848
10f2d63a
VZ
3849 if test "$enableval" = yes; then
3850 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3851 else
3852 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3853 fi
a0b9e27f 3854
10f2d63a 3855else
a0b9e27f 3856
10f2d63a
VZ
3857 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3865
3866fi
10f2d63a
VZ
3867
3868
3869 eval "$ac_cv_use_dynlib"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3875 echo "$ac_t""yes" 1>&6
10f2d63a 3876 else
a0b9e27f 3877 echo "$ac_t""no" 1>&6
10f2d63a 3878 fi
a0b9e27f 3879
10f2d63a 3880
5005acfe
VZ
3881 enablestring=
3882 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
89e3b3e4 3883echo "configure:3884: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3884 no_cache=0
3885 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3886if test "${enable_dynamicloader+set}" = set; then
3887 enableval="$enable_dynamicloader"
a0b9e27f 3888
0b9ab0bd
RL
3889 if test "$enableval" = yes; then
3890 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3891 else
3892 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3893 fi
a0b9e27f 3894
0b9ab0bd 3895else
a0b9e27f 3896
0b9ab0bd
RL
3897 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3898 if test "x$LINE" != x ; then
3899 eval "DEFAULT_$LINE"
3900 else
3901 no_cache=1
3902 fi
3903
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3905
3906fi
0b9ab0bd
RL
3907
3908
3909 eval "$ac_cv_use_dynamicloader"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3915 echo "$ac_t""yes" 1>&6
0b9ab0bd 3916 else
a0b9e27f 3917 echo "$ac_t""no" 1>&6
0b9ab0bd 3918 fi
a0b9e27f 3919
0b9ab0bd 3920
5005acfe
VZ
3921 enablestring=
3922 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
89e3b3e4 3923echo "configure:3924: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3924 no_cache=0
3925 # Check whether --enable-longlong or --disable-longlong was given.
3926if test "${enable_longlong+set}" = set; then
3927 enableval="$enable_longlong"
a0b9e27f 3928
10f2d63a
VZ
3929 if test "$enableval" = yes; then
3930 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3931 else
3932 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3933 fi
a0b9e27f 3934
10f2d63a 3935else
a0b9e27f 3936
10f2d63a
VZ
3937 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3945
3946fi
10f2d63a
VZ
3947
3948
3949 eval "$ac_cv_use_longlong"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3955 echo "$ac_t""yes" 1>&6
10f2d63a 3956 else
a0b9e27f 3957 echo "$ac_t""no" 1>&6
10f2d63a 3958 fi
a0b9e27f 3959
10f2d63a 3960
5005acfe
VZ
3961 enablestring=
3962 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
89e3b3e4 3963echo "configure:3964: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3964 no_cache=0
3965 # Check whether --enable-geometry or --disable-geometry was given.
3966if test "${enable_geometry+set}" = set; then
3967 enableval="$enable_geometry"
a0b9e27f 3968
e8f65ba6
RR
3969 if test "$enableval" = yes; then
3970 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3971 else
3972 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3973 fi
a0b9e27f 3974
e8f65ba6 3975else
a0b9e27f 3976
e8f65ba6
RR
3977 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3985
3986fi
e8f65ba6
RR
3987
3988
3989 eval "$ac_cv_use_geometry"
3990 if test "$no_cache" != 1; then
3991 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3992 fi
3993
3994 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3995 echo "$ac_t""yes" 1>&6
e8f65ba6 3996 else
a0b9e27f 3997 echo "$ac_t""no" 1>&6
e8f65ba6 3998 fi
a0b9e27f 3999
e8f65ba6 4000
5005acfe
VZ
4001 enablestring=
4002 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
89e3b3e4 4003echo "configure:4004: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4004 no_cache=0
4005 # Check whether --enable-log or --disable-log was given.
4006if test "${enable_log+set}" = set; then
4007 enableval="$enable_log"
a0b9e27f 4008
10f2d63a
VZ
4009 if test "$enableval" = yes; then
4010 ac_cv_use_log='wxUSE_LOG=yes'
4011 else
4012 ac_cv_use_log='wxUSE_LOG=no'
4013 fi
a0b9e27f 4014
10f2d63a 4015else
a0b9e27f 4016
10f2d63a
VZ
4017 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4018 if test "x$LINE" != x ; then
4019 eval "DEFAULT_$LINE"
4020 else
4021 no_cache=1
4022 fi
4023
4024 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4025
4026fi
10f2d63a
VZ
4027
4028
4029 eval "$ac_cv_use_log"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4035 echo "$ac_t""yes" 1>&6
10f2d63a 4036 else
a0b9e27f 4037 echo "$ac_t""no" 1>&6
10f2d63a 4038 fi
a0b9e27f 4039
10f2d63a 4040
5005acfe
VZ
4041 enablestring=
4042 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
89e3b3e4 4043echo "configure:4044: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4044 no_cache=0
4045 # Check whether --enable-streams or --disable-streams was given.
4046if test "${enable_streams+set}" = set; then
4047 enableval="$enable_streams"
a0b9e27f 4048
10f2d63a
VZ
4049 if test "$enableval" = yes; then
4050 ac_cv_use_streams='wxUSE_STREAMS=yes'
4051 else
4052 ac_cv_use_streams='wxUSE_STREAMS=no'
4053 fi
a0b9e27f 4054
10f2d63a 4055else
a0b9e27f 4056
10f2d63a
VZ
4057 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4065
4066fi
10f2d63a
VZ
4067
4068
4069 eval "$ac_cv_use_streams"
4070 if test "$no_cache" != 1; then
4071 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4072 fi
4073
4074 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4075 echo "$ac_t""yes" 1>&6
10f2d63a 4076 else
a0b9e27f 4077 echo "$ac_t""no" 1>&6
10f2d63a 4078 fi
a0b9e27f 4079
10f2d63a 4080
5005acfe
VZ
4081 enablestring=
4082 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
89e3b3e4 4083echo "configure:4084: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4084 no_cache=0
4085 # Check whether --enable-file or --disable-file was given.
4086if test "${enable_file+set}" = set; then
4087 enableval="$enable_file"
a0b9e27f 4088
10f2d63a
VZ
4089 if test "$enableval" = yes; then
4090 ac_cv_use_file='wxUSE_FILE=yes'
4091 else
4092 ac_cv_use_file='wxUSE_FILE=no'
4093 fi
a0b9e27f 4094
10f2d63a 4095else
a0b9e27f 4096
10f2d63a
VZ
4097 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4105
4106fi
10f2d63a
VZ
4107
4108
4109 eval "$ac_cv_use_file"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4115 echo "$ac_t""yes" 1>&6
10f2d63a 4116 else
a0b9e27f 4117 echo "$ac_t""no" 1>&6
10f2d63a 4118 fi
a0b9e27f 4119
10f2d63a 4120
5005acfe
VZ
4121 enablestring=
4122 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
89e3b3e4 4123echo "configure:4124: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4124 no_cache=0
1e6feb95
VZ
4125 # Check whether --enable-ffile or --disable-ffile was given.
4126if test "${enable_ffile+set}" = set; then
4127 enableval="$enable_ffile"
a0b9e27f 4128
10f2d63a 4129 if test "$enableval" = yes; then
1e6feb95 4130 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4131 else
1e6feb95 4132 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4133 fi
a0b9e27f 4134
10f2d63a 4135else
a0b9e27f 4136
1e6feb95 4137 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
1e6feb95 4144 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4145
4146fi
10f2d63a
VZ
4147
4148
1e6feb95 4149 eval "$ac_cv_use_ffile"
10f2d63a 4150 if test "$no_cache" != 1; then
1e6feb95 4151 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4152 fi
4153
1e6feb95 4154 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4155 echo "$ac_t""yes" 1>&6
10f2d63a 4156 else
a0b9e27f 4157 echo "$ac_t""no" 1>&6
10f2d63a 4158 fi
a0b9e27f 4159
10f2d63a 4160
5005acfe
VZ
4161 enablestring=
4162 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
89e3b3e4 4163echo "configure:4164: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4164 no_cache=0
4165 # Check whether --enable-textbuf or --disable-textbuf was given.
4166if test "${enable_textbuf+set}" = set; then
4167 enableval="$enable_textbuf"
a0b9e27f 4168
a3a584a7
VZ
4169 if test "$enableval" = yes; then
4170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4171 else
4172 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4173 fi
a0b9e27f 4174
a3a584a7 4175else
a0b9e27f 4176
a3a584a7
VZ
4177 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4185
4186fi
a3a584a7
VZ
4187
4188
4189 eval "$ac_cv_use_textbuf"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4195 echo "$ac_t""yes" 1>&6
a3a584a7 4196 else
a0b9e27f 4197 echo "$ac_t""no" 1>&6
a3a584a7 4198 fi
a0b9e27f 4199
a3a584a7 4200
5005acfe
VZ
4201 enablestring=
4202 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
89e3b3e4 4203echo "configure:4204: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4204 no_cache=0
1e6feb95
VZ
4205 # Check whether --enable-textfile or --disable-textfile was given.
4206if test "${enable_textfile+set}" = set; then
4207 enableval="$enable_textfile"
a0b9e27f 4208
10f2d63a 4209 if test "$enableval" = yes; then
1e6feb95 4210 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4211 else
1e6feb95 4212 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4213 fi
a0b9e27f 4214
10f2d63a 4215else
a0b9e27f 4216
1e6feb95 4217 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
1e6feb95 4224 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4225
4226fi
10f2d63a
VZ
4227
4228
1e6feb95 4229 eval "$ac_cv_use_textfile"
10f2d63a 4230 if test "$no_cache" != 1; then
1e6feb95 4231 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4232 fi
4233
1e6feb95 4234 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4235 echo "$ac_t""yes" 1>&6
10f2d63a 4236 else
a0b9e27f 4237 echo "$ac_t""no" 1>&6
10f2d63a 4238 fi
a0b9e27f 4239
10f2d63a 4240
5005acfe
VZ
4241 enablestring=
4242 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
89e3b3e4 4243echo "configure:4244: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4244 no_cache=0
1e6feb95
VZ
4245 # Check whether --enable-fontmap or --disable-fontmap was given.
4246if test "${enable_fontmap+set}" = set; then
4247 enableval="$enable_fontmap"
a0b9e27f 4248
10f2d63a 4249 if test "$enableval" = yes; then
1e6feb95 4250 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4251 else
1e6feb95 4252 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4253 fi
a0b9e27f 4254
10f2d63a 4255else
a0b9e27f 4256
1e6feb95 4257 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
1e6feb95 4264 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4265
4266fi
10f2d63a
VZ
4267
4268
1e6feb95 4269 eval "$ac_cv_use_fontmap"
10f2d63a 4270 if test "$no_cache" != 1; then
1e6feb95 4271 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4272 fi
4273
1e6feb95 4274 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4275 echo "$ac_t""yes" 1>&6
10f2d63a 4276 else
a0b9e27f 4277 echo "$ac_t""no" 1>&6
10f2d63a 4278 fi
a0b9e27f 4279
10f2d63a 4280
5005acfe
VZ
4281 enablestring=
4282 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
89e3b3e4 4283echo "configure:4284: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4284 no_cache=0
1e6feb95
VZ
4285 # Check whether --enable-unicode or --disable-unicode was given.
4286if test "${enable_unicode+set}" = set; then
4287 enableval="$enable_unicode"
a0b9e27f 4288
1e6feb95
VZ
4289 if test "$enableval" = yes; then
4290 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4291 else
4292 ac_cv_use_unicode='wxUSE_UNICODE=no'
4293 fi
a0b9e27f 4294
1e6feb95 4295else
a0b9e27f 4296
1e6feb95
VZ
4297 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4305
4306fi
1e6feb95
VZ
4307
4308
4309 eval "$ac_cv_use_unicode"
4310 if test "$no_cache" != 1; then
4311 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4312 fi
4313
4314 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4315 echo "$ac_t""yes" 1>&6
1e6feb95 4316 else
a0b9e27f 4317 echo "$ac_t""no" 1>&6
1e6feb95 4318 fi
a0b9e27f 4319
1e6feb95 4320
5005acfe
VZ
4321 enablestring=
4322 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
89e3b3e4 4323echo "configure:4324: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4324 no_cache=0
4325 # Check whether --enable-mslu or --disable-mslu was given.
4326if test "${enable_mslu+set}" = set; then
4327 enableval="$enable_mslu"
a0b9e27f 4328
a72a4bfa
VS
4329 if test "$enableval" = yes; then
4330 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4331 else
4332 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4333 fi
a0b9e27f 4334
a72a4bfa 4335else
a0b9e27f 4336
a72a4bfa
VS
4337 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4345
4346fi
a72a4bfa
VS
4347
4348
4349 eval "$ac_cv_use_mslu"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4355 echo "$ac_t""yes" 1>&6
a72a4bfa 4356 else
a0b9e27f 4357 echo "$ac_t""no" 1>&6
a72a4bfa 4358 fi
a0b9e27f 4359
a72a4bfa 4360
5005acfe
VZ
4361 enablestring=
4362 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
89e3b3e4 4363echo "configure:4364: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4364 no_cache=0
4365 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4366if test "${enable_wxprintfv+set}" = set; then
4367 enableval="$enable_wxprintfv"
a0b9e27f 4368
1e6feb95 4369 if test "$enableval" = yes; then
10f2d63a
VZ
4370 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4371 else
4372 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4373 fi
a0b9e27f 4374
10f2d63a 4375else
a0b9e27f 4376
10f2d63a
VZ
4377 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4385
4386fi
10f2d63a
VZ
4387
4388
4389 eval "$ac_cv_use_wxprintfv"
4390 if test "$no_cache" != 1; then
4391 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4392 fi
4393
4394 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4395 echo "$ac_t""yes" 1>&6
10f2d63a 4396 else
a0b9e27f 4397 echo "$ac_t""no" 1>&6
10f2d63a 4398 fi
a0b9e27f 4399
10f2d63a 4400
5005acfe
VZ
4401 enablestring=
4402 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
89e3b3e4 4403echo "configure:4404: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4404 no_cache=0
4405 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4406if test "${enable_std_iostreams+set}" = set; then
4407 enableval="$enable_std_iostreams"
a0b9e27f 4408
10f2d63a
VZ
4409 if test "$enableval" = yes; then
4410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4411 else
4412 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4413 fi
a0b9e27f 4414
10f2d63a 4415else
a0b9e27f 4416
10f2d63a
VZ
4417 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4425
4426fi
10f2d63a
VZ
4427
4428
4429 eval "$ac_cv_use_std_iostreams"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4435 echo "$ac_t""yes" 1>&6
10f2d63a 4436 else
a0b9e27f 4437 echo "$ac_t""no" 1>&6
10f2d63a 4438 fi
a0b9e27f 4439
10f2d63a 4440
5005acfe
VZ
4441 enablestring=
4442 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
89e3b3e4 4443echo "configure:4444: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4444 no_cache=0
4445 # Check whether --enable-filesystem or --disable-filesystem was given.
4446if test "${enable_filesystem+set}" = set; then
4447 enableval="$enable_filesystem"
a0b9e27f 4448
24528b0c
VS
4449 if test "$enableval" = yes; then
4450 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4451 else
4452 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4453 fi
a0b9e27f 4454
24528b0c 4455else
a0b9e27f 4456
24528b0c
VS
4457 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4465
4466fi
24528b0c
VS
4467
4468
4469 eval "$ac_cv_use_filesystem"
4470 if test "$no_cache" != 1; then
4471 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4472 fi
4473
4474 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4475 echo "$ac_t""yes" 1>&6
24528b0c 4476 else
a0b9e27f 4477 echo "$ac_t""no" 1>&6
24528b0c 4478 fi
a0b9e27f 4479
24528b0c 4480
5005acfe
VZ
4481 enablestring=
4482 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
89e3b3e4 4483echo "configure:4484: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4484 no_cache=0
4485 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4486if test "${enable_fs_inet+set}" = set; then
4487 enableval="$enable_fs_inet"
a0b9e27f 4488
10f2d63a
VZ
4489 if test "$enableval" = yes; then
4490 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4491 else
4492 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4493 fi
a0b9e27f 4494
10f2d63a 4495else
a0b9e27f 4496
10f2d63a
VZ
4497 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4505
4506fi
10f2d63a
VZ
4507
4508
4509 eval "$ac_cv_use_fs_inet"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4515 echo "$ac_t""yes" 1>&6
10f2d63a 4516 else
a0b9e27f 4517 echo "$ac_t""no" 1>&6
10f2d63a 4518 fi
a0b9e27f 4519
10f2d63a 4520
5005acfe
VZ
4521 enablestring=
4522 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
89e3b3e4 4523echo "configure:4524: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4524 no_cache=0
4525 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4526if test "${enable_fs_zip+set}" = set; then
4527 enableval="$enable_fs_zip"
a0b9e27f 4528
10f2d63a
VZ
4529 if test "$enableval" = yes; then
4530 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4531 else
4532 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4533 fi
a0b9e27f 4534
10f2d63a 4535else
a0b9e27f 4536
10f2d63a
VZ
4537 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4545
4546fi
10f2d63a
VZ
4547
4548
4549 eval "$ac_cv_use_fs_zip"
4550 if test "$no_cache" != 1; then
4551 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4552 fi
4553
4554 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4555 echo "$ac_t""yes" 1>&6
10f2d63a 4556 else
a0b9e27f 4557 echo "$ac_t""no" 1>&6
10f2d63a 4558 fi
a0b9e27f 4559
10f2d63a 4560
5005acfe
VZ
4561 enablestring=
4562 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
89e3b3e4 4563echo "configure:4564: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4564 no_cache=0
4565 # Check whether --enable-zipstream or --disable-zipstream was given.
4566if test "${enable_zipstream+set}" = set; then
4567 enableval="$enable_zipstream"
a0b9e27f 4568
10f2d63a
VZ
4569 if test "$enableval" = yes; then
4570 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4571 else
4572 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4573 fi
a0b9e27f 4574
10f2d63a 4575else
a0b9e27f 4576
10f2d63a
VZ
4577 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4585
4586fi
10f2d63a
VZ
4587
4588
4589 eval "$ac_cv_use_zipstream"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4595 echo "$ac_t""yes" 1>&6
10f2d63a 4596 else
a0b9e27f 4597 echo "$ac_t""no" 1>&6
10f2d63a 4598 fi
a0b9e27f 4599
8284b0c5 4600
52127426 4601
5005acfe
VZ
4602 enablestring=
4603 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
89e3b3e4 4604echo "configure:4605: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4605 no_cache=0
4606 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4607if test "${enable_catch_segvs+set}" = set; then
4608 enableval="$enable_catch_segvs"
a0b9e27f 4609
eb4efbdc
VZ
4610 if test "$enableval" = yes; then
4611 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4612 else
4613 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4614 fi
a0b9e27f 4615
eb4efbdc 4616else
a0b9e27f 4617
eb4efbdc
VZ
4618 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4619 if test "x$LINE" != x ; then
4620 eval "DEFAULT_$LINE"
4621 else
4622 no_cache=1
4623 fi
4624
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4626
4627fi
eb4efbdc
VZ
4628
4629
4630 eval "$ac_cv_use_catch_segvs"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4636 echo "$ac_t""yes" 1>&6
eb4efbdc 4637 else
a0b9e27f 4638 echo "$ac_t""no" 1>&6
eb4efbdc 4639 fi
a0b9e27f 4640
eb4efbdc 4641
5005acfe
VZ
4642 enablestring=
4643 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
89e3b3e4 4644echo "configure:4645: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4645 no_cache=0
4646 # Check whether --enable-snglinst or --disable-snglinst was given.
4647if test "${enable_snglinst+set}" = set; then
4648 enableval="$enable_snglinst"
a0b9e27f 4649
4f3c5f06
VZ
4650 if test "$enableval" = yes; then
4651 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4652 else
4653 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4654 fi
a0b9e27f 4655
4f3c5f06 4656else
a0b9e27f 4657
4f3c5f06
VZ
4658 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4666
4667fi
4f3c5f06
VZ
4668
4669
4670 eval "$ac_cv_use_snglinst"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4676 echo "$ac_t""yes" 1>&6
4f3c5f06 4677 else
a0b9e27f 4678 echo "$ac_t""no" 1>&6
4f3c5f06 4679 fi
a0b9e27f 4680
52127426 4681
8284b0c5 4682
5005acfe
VZ
4683 enablestring=
4684 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
89e3b3e4 4685echo "configure:4686: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4686 no_cache=0
4687 # Check whether --enable-mimetype or --disable-mimetype was given.
4688if test "${enable_mimetype+set}" = set; then
4689 enableval="$enable_mimetype"
a0b9e27f 4690
1e6feb95
VZ
4691 if test "$enableval" = yes; then
4692 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4693 else
4694 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4695 fi
a0b9e27f 4696
1e6feb95 4697else
a0b9e27f 4698
1e6feb95
VZ
4699 LINE=`grep "wxUSE_MIMETYPE" ${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_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4707
4708fi
1e6feb95
VZ
4709
4710
4711 eval "$ac_cv_use_mimetype"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4717 echo "$ac_t""yes" 1>&6
1e6feb95 4718 else
a0b9e27f 4719 echo "$ac_t""no" 1>&6
1e6feb95 4720 fi
a0b9e27f 4721
1e6feb95 4722
5005acfe
VZ
4723 enablestring=
4724 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
89e3b3e4 4725echo "configure:4726: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4726 no_cache=0
4727 # Check whether --enable-system_options or --disable-system_options was given.
4728if test "${enable_system_options+set}" = set; then
4729 enableval="$enable_system_options"
a0b9e27f 4730
3e44f09d
VZ
4731 if test "$enableval" = yes; then
4732 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4733 else
4734 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4735 fi
a0b9e27f 4736
3e44f09d 4737else
a0b9e27f 4738
3e44f09d
VZ
4739 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4747
4748fi
3e44f09d
VZ
4749
4750
4751 eval "$ac_cv_use_system_options"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4757 echo "$ac_t""yes" 1>&6
3e44f09d 4758 else
a0b9e27f 4759 echo "$ac_t""no" 1>&6
3e44f09d 4760 fi
a0b9e27f 4761
8284b0c5 4762
52127426 4763
5005acfe
VZ
4764 enablestring=
4765 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
89e3b3e4 4766echo "configure:4767: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4767 no_cache=0
4768 # Check whether --enable-url or --disable-url was given.
4769if test "${enable_url+set}" = set; then
4770 enableval="$enable_url"
a0b9e27f 4771
4cdb0ab0
VS
4772 if test "$enableval" = yes; then
4773 ac_cv_use_url='wxUSE_URL=yes'
4774 else
4775 ac_cv_use_url='wxUSE_URL=no'
4776 fi
a0b9e27f 4777
4cdb0ab0 4778else
a0b9e27f 4779
4cdb0ab0
VS
4780 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4788
4789fi
4cdb0ab0
VS
4790
4791
4792 eval "$ac_cv_use_url"
4793 if test "$no_cache" != 1; then
4794 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4795 fi
4796
4797 if test "$wxUSE_URL" = yes; then
a0b9e27f 4798 echo "$ac_t""yes" 1>&6
4cdb0ab0 4799 else
a0b9e27f 4800 echo "$ac_t""no" 1>&6
4cdb0ab0 4801 fi
a0b9e27f 4802
4cdb0ab0 4803
5005acfe
VZ
4804 enablestring=
4805 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
89e3b3e4 4806echo "configure:4807: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4807 no_cache=0
4808 # Check whether --enable-protocol or --disable-protocol was given.
4809if test "${enable_protocol+set}" = set; then
4810 enableval="$enable_protocol"
a0b9e27f 4811
4cdb0ab0
VS
4812 if test "$enableval" = yes; then
4813 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4814 else
4815 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4816 fi
a0b9e27f 4817
4cdb0ab0 4818else
a0b9e27f 4819
4cdb0ab0
VS
4820 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4828
4829fi
4cdb0ab0
VS
4830
4831
4832 eval "$ac_cv_use_protocol"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4838 echo "$ac_t""yes" 1>&6
4cdb0ab0 4839 else
a0b9e27f 4840 echo "$ac_t""no" 1>&6
4cdb0ab0 4841 fi
a0b9e27f 4842
4cdb0ab0 4843
5005acfe
VZ
4844 enablestring=
4845 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
89e3b3e4 4846echo "configure:4847: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4847 no_cache=0
4848 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4849if test "${enable_protocol_http+set}" = set; then
4850 enableval="$enable_protocol_http"
a0b9e27f 4851
4cdb0ab0
VS
4852 if test "$enableval" = yes; then
4853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4854 else
4855 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4856 fi
a0b9e27f 4857
4cdb0ab0 4858else
a0b9e27f 4859
4cdb0ab0
VS
4860 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4868
4869fi
4cdb0ab0
VS
4870
4871
4872 eval "$ac_cv_use_protocol_http"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4878 echo "$ac_t""yes" 1>&6
4cdb0ab0 4879 else
a0b9e27f 4880 echo "$ac_t""no" 1>&6
4cdb0ab0 4881 fi
a0b9e27f 4882
4cdb0ab0 4883
5005acfe
VZ
4884 enablestring=
4885 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
89e3b3e4 4886echo "configure:4887: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4887 no_cache=0
4888 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4889if test "${enable_protocol_ftp+set}" = set; then
4890 enableval="$enable_protocol_ftp"
a0b9e27f 4891
4cdb0ab0
VS
4892 if test "$enableval" = yes; then
4893 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4894 else
4895 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4896 fi
a0b9e27f 4897
4cdb0ab0 4898else
a0b9e27f 4899
4cdb0ab0
VS
4900 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4908
4909fi
4cdb0ab0
VS
4910
4911
4912 eval "$ac_cv_use_protocol_ftp"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4918 echo "$ac_t""yes" 1>&6
4cdb0ab0 4919 else
a0b9e27f 4920 echo "$ac_t""no" 1>&6
4cdb0ab0 4921 fi
a0b9e27f 4922
4cdb0ab0 4923
5005acfe
VZ
4924 enablestring=
4925 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
89e3b3e4 4926echo "configure:4927: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4927 no_cache=0
4928 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4929if test "${enable_protocol_file+set}" = set; then
4930 enableval="$enable_protocol_file"
a0b9e27f 4931
4cdb0ab0
VS
4932 if test "$enableval" = yes; then
4933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4934 else
4935 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4936 fi
a0b9e27f 4937
4cdb0ab0 4938else
a0b9e27f 4939
4cdb0ab0
VS
4940 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4948
4949fi
4cdb0ab0
VS
4950
4951
4952 eval "$ac_cv_use_protocol_file"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4958 echo "$ac_t""yes" 1>&6
4cdb0ab0 4959 else
a0b9e27f 4960 echo "$ac_t""no" 1>&6
4cdb0ab0 4961 fi
a0b9e27f 4962
52127426 4963
8284b0c5
MB
4964
4965
4966
5005acfe
VZ
4967 enablestring=
4968 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
89e3b3e4 4969echo "configure:4970: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4970 no_cache=0
4971 # Check whether --enable-threads or --disable-threads was given.
4972if test "${enable_threads+set}" = set; then
4973 enableval="$enable_threads"
a0b9e27f 4974
10f2d63a
VZ
4975 if test "$enableval" = yes; then
4976 ac_cv_use_threads='wxUSE_THREADS=yes'
4977 else
4978 ac_cv_use_threads='wxUSE_THREADS=no'
4979 fi
a0b9e27f 4980
10f2d63a 4981else
a0b9e27f 4982
10f2d63a
VZ
4983 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4991
4992fi
10f2d63a
VZ
4993
4994
4995 eval "$ac_cv_use_threads"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5001 echo "$ac_t""yes" 1>&6
10f2d63a 5002 else
a0b9e27f 5003 echo "$ac_t""no" 1>&6
10f2d63a 5004 fi
a0b9e27f 5005
10f2d63a 5006
b12915c1
VZ
5007if test "$wxUSE_GUI" = "yes"; then
5008
8284b0c5
MB
5009
5010
5005acfe
VZ
5011 enablestring=
5012 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
89e3b3e4 5013echo "configure:5014: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5014 no_cache=0
5015 # Check whether --enable-docview or --disable-docview was given.
5016if test "${enable_docview+set}" = set; then
5017 enableval="$enable_docview"
a0b9e27f 5018
10f2d63a
VZ
5019 if test "$enableval" = yes; then
5020 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5021 else
5022 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5023 fi
a0b9e27f 5024
10f2d63a 5025else
a0b9e27f 5026
10f2d63a
VZ
5027 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5035
5036fi
10f2d63a
VZ
5037
5038
5039 eval "$ac_cv_use_docview"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5045 echo "$ac_t""yes" 1>&6
10f2d63a 5046 else
a0b9e27f 5047 echo "$ac_t""no" 1>&6
10f2d63a 5048 fi
a0b9e27f 5049
10f2d63a 5050
5005acfe
VZ
5051 enablestring=
5052 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
89e3b3e4 5053echo "configure:5054: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5054 no_cache=0
5055 # Check whether --enable-help or --disable-help was given.
5056if test "${enable_help+set}" = set; then
5057 enableval="$enable_help"
a0b9e27f 5058
10f2d63a
VZ
5059 if test "$enableval" = yes; then
5060 ac_cv_use_help='wxUSE_HELP=yes'
5061 else
5062 ac_cv_use_help='wxUSE_HELP=no'
5063 fi
a0b9e27f 5064
10f2d63a 5065else
a0b9e27f 5066
10f2d63a
VZ
5067 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5075
5076fi
10f2d63a
VZ
5077
5078
5079 eval "$ac_cv_use_help"
5080 if test "$no_cache" != 1; then
5081 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5082 fi
5083
5084 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5085 echo "$ac_t""yes" 1>&6
10f2d63a 5086 else
a0b9e27f 5087 echo "$ac_t""no" 1>&6
10f2d63a 5088 fi
a0b9e27f 5089
10f2d63a 5090
5005acfe
VZ
5091 enablestring=
5092 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
89e3b3e4 5093echo "configure:5094: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5094 no_cache=0
5095 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5096if test "${enable_mshtmlhelp+set}" = set; then
5097 enableval="$enable_mshtmlhelp"
a0b9e27f 5098
29fd3c0c
VS
5099 if test "$enableval" = yes; then
5100 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5101 else
5102 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5103 fi
a0b9e27f 5104
29fd3c0c 5105else
a0b9e27f 5106
29fd3c0c
VS
5107 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5115
5116fi
29fd3c0c
VS
5117
5118
5119 eval "$ac_cv_use_mshtmlhelp"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5125 echo "$ac_t""yes" 1>&6
29fd3c0c 5126 else
a0b9e27f 5127 echo "$ac_t""no" 1>&6
29fd3c0c 5128 fi
a0b9e27f 5129
29fd3c0c 5130
5005acfe
VZ
5131 enablestring=
5132 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
89e3b3e4 5133echo "configure:5134: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5134 no_cache=0
5135 # Check whether --enable-html or --disable-html was given.
5136if test "${enable_html+set}" = set; then
5137 enableval="$enable_html"
a0b9e27f 5138
3379ed37
VZ
5139 if test "$enableval" = yes; then
5140 ac_cv_use_html='wxUSE_HTML=yes'
5141 else
5142 ac_cv_use_html='wxUSE_HTML=no'
5143 fi
a0b9e27f 5144
3379ed37 5145else
a0b9e27f 5146
3379ed37
VZ
5147 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5155
5156fi
3379ed37
VZ
5157
5158
5159 eval "$ac_cv_use_html"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5165 echo "$ac_t""yes" 1>&6
3379ed37 5166 else
a0b9e27f 5167 echo "$ac_t""no" 1>&6
3379ed37 5168 fi
a0b9e27f 5169
3379ed37 5170
5005acfe
VZ
5171 enablestring=
5172 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
89e3b3e4 5173echo "configure:5174: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5174 no_cache=0
5175 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5176if test "${enable_htmlhelp+set}" = set; then
5177 enableval="$enable_htmlhelp"
a0b9e27f 5178
3379ed37
VZ
5179 if test "$enableval" = yes; then
5180 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5181 else
5182 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5183 fi
a0b9e27f 5184
3379ed37 5185else
a0b9e27f 5186
3379ed37
VZ
5187 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5195
5196fi
3379ed37
VZ
5197
5198
5199 eval "$ac_cv_use_htmlhelp"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5205 echo "$ac_t""yes" 1>&6
3379ed37 5206 else
a0b9e27f 5207 echo "$ac_t""no" 1>&6
3379ed37 5208 fi
a0b9e27f 5209
3379ed37 5210
5005acfe
VZ
5211 enablestring=
5212 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
89e3b3e4 5213echo "configure:5214: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5214 no_cache=0
5215 # Check whether --enable-constraints or --disable-constraints was given.
5216if test "${enable_constraints+set}" = set; then
5217 enableval="$enable_constraints"
a0b9e27f 5218
10f2d63a
VZ
5219 if test "$enableval" = yes; then
5220 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5221 else
5222 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5223 fi
a0b9e27f 5224
10f2d63a 5225else
a0b9e27f 5226
10f2d63a
VZ
5227 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5235
5236fi
10f2d63a
VZ
5237
5238
5239 eval "$ac_cv_use_constraints"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5245 echo "$ac_t""yes" 1>&6
10f2d63a 5246 else
a0b9e27f 5247 echo "$ac_t""no" 1>&6
10f2d63a 5248 fi
a0b9e27f 5249
10f2d63a 5250
5005acfe
VZ
5251 enablestring=
5252 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
89e3b3e4 5253echo "configure:5254: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5254 no_cache=0
5255 # Check whether --enable-printarch or --disable-printarch was given.
5256if test "${enable_printarch+set}" = set; then
5257 enableval="$enable_printarch"
a0b9e27f 5258
10f2d63a
VZ
5259 if test "$enableval" = yes; then
5260 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5261 else
5262 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5263 fi
a0b9e27f 5264
10f2d63a 5265else
a0b9e27f 5266
10f2d63a
VZ
5267 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5275
5276fi
10f2d63a
VZ
5277
5278
5279 eval "$ac_cv_use_printarch"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5285 echo "$ac_t""yes" 1>&6
10f2d63a 5286 else
a0b9e27f 5287 echo "$ac_t""no" 1>&6
10f2d63a 5288 fi
a0b9e27f 5289
10f2d63a 5290
5005acfe
VZ
5291 enablestring=
5292 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
89e3b3e4 5293echo "configure:5294: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5294 no_cache=0
5295 # Check whether --enable-mdi or --disable-mdi was given.
5296if test "${enable_mdi+set}" = set; then
5297 enableval="$enable_mdi"
a0b9e27f 5298
10f2d63a
VZ
5299 if test "$enableval" = yes; then
5300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5301 else
5302 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5303 fi
a0b9e27f 5304
10f2d63a 5305else
a0b9e27f 5306
10f2d63a
VZ
5307 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5315
5316fi
10f2d63a
VZ
5317
5318
5319 eval "$ac_cv_use_mdi"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5325 echo "$ac_t""yes" 1>&6
10f2d63a 5326 else
a0b9e27f 5327 echo "$ac_t""no" 1>&6
10f2d63a 5328 fi
a0b9e27f 5329
698dcdb6 5330
5005acfe
VZ
5331 enablestring=
5332 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
89e3b3e4 5333echo "configure:5334: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5334 no_cache=0
5335 # Check whether --enable-loggui or --disable-loggui was given.
5336if test "${enable_loggui+set}" = set; then
5337 enableval="$enable_loggui"
a0b9e27f 5338
1e6feb95
VZ
5339 if test "$enableval" = yes; then
5340 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5341 else
5342 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5343 fi
a0b9e27f 5344
1e6feb95 5345else
a0b9e27f 5346
1e6feb95
VZ
5347 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5355
5356fi
1e6feb95
VZ
5357
5358
5359 eval "$ac_cv_use_loggui"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5365 echo "$ac_t""yes" 1>&6
1e6feb95 5366 else
a0b9e27f 5367 echo "$ac_t""no" 1>&6
1e6feb95 5368 fi
a0b9e27f 5369
1e6feb95 5370
5005acfe
VZ
5371 enablestring=
5372 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
89e3b3e4 5373echo "configure:5374: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5374 no_cache=0
5375 # Check whether --enable-logwin or --disable-logwin was given.
5376if test "${enable_logwin+set}" = set; then
5377 enableval="$enable_logwin"
a0b9e27f 5378
1e6feb95
VZ
5379 if test "$enableval" = yes; then
5380 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5381 else
5382 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5383 fi
a0b9e27f 5384
1e6feb95 5385else
a0b9e27f 5386
1e6feb95
VZ
5387 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5395
5396fi
1e6feb95
VZ
5397
5398
5399 eval "$ac_cv_use_logwin"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5405 echo "$ac_t""yes" 1>&6
1e6feb95 5406 else
a0b9e27f 5407 echo "$ac_t""no" 1>&6
1e6feb95 5408 fi
a0b9e27f 5409
1e6feb95 5410
5005acfe
VZ
5411 enablestring=
5412 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
89e3b3e4 5413echo "configure:5414: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5414 no_cache=0
5415 # Check whether --enable-logdialog or --disable-logdialog was given.
5416if test "${enable_logdialog+set}" = set; then
5417 enableval="$enable_logdialog"
a0b9e27f 5418
69d27ff7
MB
5419 if test "$enableval" = yes; then
5420 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5421 else
5422 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5423 fi
a0b9e27f 5424
69d27ff7 5425else
a0b9e27f 5426
69d27ff7
MB
5427 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5435
5436fi
69d27ff7
MB
5437
5438
5439 eval "$ac_cv_use_logdialog"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5445 echo "$ac_t""yes" 1>&6
69d27ff7 5446 else
a0b9e27f 5447 echo "$ac_t""no" 1>&6
69d27ff7 5448 fi
a0b9e27f 5449
8284b0c5 5450
52127426 5451
5005acfe
VZ
5452 enablestring=
5453 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
89e3b3e4 5454echo "configure:5455: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5455 no_cache=0
5456 # Check whether --enable-postscript or --disable-postscript was given.
5457if test "${enable_postscript+set}" = set; then
5458 enableval="$enable_postscript"
a0b9e27f 5459
10f2d63a
VZ
5460 if test "$enableval" = yes; then
5461 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5462 else
5463 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5464 fi
a0b9e27f 5465
10f2d63a 5466else
a0b9e27f 5467
10f2d63a
VZ
5468 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5476
5477fi
10f2d63a
VZ
5478
5479
5480 eval "$ac_cv_use_postscript"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5486 echo "$ac_t""yes" 1>&6
10f2d63a 5487 else
a0b9e27f 5488 echo "$ac_t""no" 1>&6
10f2d63a 5489 fi
a0b9e27f 5490
8284b0c5
MB
5491
5492
52127426 5493
8284b0c5 5494
5005acfe
VZ
5495 enablestring=
5496 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
89e3b3e4 5497echo "configure:5498: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5498 no_cache=0
5499 # Check whether --enable-resources or --disable-resources was given.
5500if test "${enable_resources+set}" = set; then
5501 enableval="$enable_resources"
a0b9e27f 5502
10f2d63a
VZ
5503 if test "$enableval" = yes; then
5504 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5505 else
5506 ac_cv_use_resources='wxUSE_RESOURCES=no'
5507 fi
a0b9e27f 5508
10f2d63a 5509else
a0b9e27f 5510
10f2d63a
VZ
5511 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5519
5520fi
10f2d63a
VZ
5521
5522
5523 eval "$ac_cv_use_resources"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5529 echo "$ac_t""yes" 1>&6
10f2d63a 5530 else
a0b9e27f 5531 echo "$ac_t""no" 1>&6
10f2d63a 5532 fi
a0b9e27f 5533
8284b0c5 5534
52127426 5535
5005acfe
VZ
5536 enablestring=
5537 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
89e3b3e4 5538echo "configure:5539: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5539 no_cache=0
5540 # Check whether --enable-xresources or --disable-xresources was given.
5541if test "${enable_xresources+set}" = set; then
5542 enableval="$enable_xresources"
a0b9e27f 5543
10f2d63a
VZ
5544 if test "$enableval" = yes; then
5545 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5546 else
5547 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5548 fi
a0b9e27f 5549
10f2d63a 5550else
a0b9e27f 5551
10f2d63a
VZ
5552 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5560
5561fi
10f2d63a
VZ
5562
5563
5564 eval "$ac_cv_use_xresources"
5565 if test "$no_cache" != 1; then
5566 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5567 fi
5568
5569 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5570 echo "$ac_t""yes" 1>&6
10f2d63a 5571 else
a0b9e27f 5572 echo "$ac_t""no" 1>&6
10f2d63a 5573 fi
a0b9e27f 5574
8284b0c5
MB
5575
5576
52127426 5577
5005acfe
VZ
5578 enablestring=
5579 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
89e3b3e4 5580echo "configure:5581: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5581 no_cache=0
5582 # Check whether --enable-clipboard or --disable-clipboard was given.
5583if test "${enable_clipboard+set}" = set; then
5584 enableval="$enable_clipboard"
a0b9e27f 5585
10f2d63a
VZ
5586 if test "$enableval" = yes; then
5587 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5588 else
5589 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5590 fi
a0b9e27f 5591
10f2d63a 5592else
a0b9e27f 5593
10f2d63a
VZ
5594 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5595 if test "x$LINE" != x ; then
5596 eval "DEFAULT_$LINE"
5597 else
5598 no_cache=1
5599 fi
5600
5601 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5602
5603fi
10f2d63a
VZ
5604
5605
5606 eval "$ac_cv_use_clipboard"
5607 if test "$no_cache" != 1; then
5608 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5609 fi
5610
5611 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5612 echo "$ac_t""yes" 1>&6
10f2d63a 5613 else
a0b9e27f 5614 echo "$ac_t""no" 1>&6
10f2d63a 5615 fi
a0b9e27f 5616
10f2d63a 5617
5005acfe
VZ
5618 enablestring=
5619 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
89e3b3e4 5620echo "configure:5621: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5621 no_cache=0
5622 # Check whether --enable-dnd or --disable-dnd was given.
5623if test "${enable_dnd+set}" = set; then
5624 enableval="$enable_dnd"
a0b9e27f 5625
10f2d63a
VZ
5626 if test "$enableval" = yes; then
5627 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5628 else
5629 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5630 fi
a0b9e27f 5631
10f2d63a 5632else
a0b9e27f 5633
10f2d63a
VZ
5634 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5642
5643fi
10f2d63a
VZ
5644
5645
5646 eval "$ac_cv_use_dnd"
5647 if test "$no_cache" != 1; then
5648 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5649 fi
5650
5651 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5652 echo "$ac_t""yes" 1>&6
10f2d63a 5653 else
a0b9e27f 5654 echo "$ac_t""no" 1>&6
10f2d63a 5655 fi
a0b9e27f 5656
10f2d63a 5657
5005acfe
VZ
5658 enablestring=
5659 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
89e3b3e4 5660echo "configure:5661: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5661 no_cache=0
5662 # Check whether --enable-metafile or --disable-metafile was given.
5663if test "${enable_metafile+set}" = set; then
5664 enableval="$enable_metafile"
a0b9e27f 5665
b64f0a5f
RL
5666 if test "$enableval" = yes; then
5667 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5668 else
5669 ac_cv_use_metafile='wxUSE_METAFILE=no'
5670 fi
a0b9e27f 5671
b64f0a5f 5672else
a0b9e27f 5673
b64f0a5f
RL
5674 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5675 if test "x$LINE" != x ; then
5676 eval "DEFAULT_$LINE"
5677 else
5678 no_cache=1
5679 fi
5680
5681 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5682
5683fi
b64f0a5f
RL
5684
5685
5686 eval "$ac_cv_use_metafile"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5692 echo "$ac_t""yes" 1>&6
b64f0a5f 5693 else
a0b9e27f 5694 echo "$ac_t""no" 1>&6
b64f0a5f 5695 fi
a0b9e27f 5696
52127426 5697
8284b0c5 5698
52127426 5699
8284b0c5 5700
5005acfe
VZ
5701 enablestring=
5702 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
89e3b3e4 5703echo "configure:5704: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5704 no_cache=0
5705 # Check whether --enable-controls or --disable-controls was given.
5706if test "${enable_controls+set}" = set; then
5707 enableval="$enable_controls"
a0b9e27f 5708
10f2d63a
VZ
5709 if test "$enableval" = yes; then
5710 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5711 else
5712 ac_cv_use_controls='wxUSE_CONTROLS=no'
5713 fi
a0b9e27f 5714
10f2d63a 5715else
a0b9e27f 5716
10f2d63a
VZ
5717 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5718 if test "x$LINE" != x ; then
5719 eval "DEFAULT_$LINE"
5720 else
5721 no_cache=1
5722 fi
5723
5724 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5725
5726fi
10f2d63a
VZ
5727
5728
5729 eval "$ac_cv_use_controls"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5735 echo "$ac_t""yes" 1>&6
10f2d63a 5736 else
a0b9e27f 5737 echo "$ac_t""no" 1>&6
10f2d63a 5738 fi
a0b9e27f 5739
10f2d63a
VZ
5740
5741if test "$wxUSE_CONTROLS" = "yes"; then
5742 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5743 DEFAULT_wxUSE_BMPBUTTON=yes
5744 DEFAULT_wxUSE_BUTTON=yes
5745 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5746 DEFAULT_wxUSE_CARET=yes
5747 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5748 DEFAULT_wxUSE_CHECKBOX=yes
5749 DEFAULT_wxUSE_CHECKLISTBOX=yes
5750 DEFAULT_wxUSE_CHOICE=yes
5751 DEFAULT_wxUSE_GAUGE=yes
5752 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
5753 DEFAULT_wxUSE_IMAGLIST=yes
5754 DEFAULT_wxUSE_LISTBOX=yes
5755 DEFAULT_wxUSE_LISTCTRL=yes
5756 DEFAULT_wxUSE_NOTEBOOK=yes
5757 DEFAULT_wxUSE_RADIOBOX=yes
5758 DEFAULT_wxUSE_RADIOBTN=yes
5759 DEFAULT_wxUSE_SASH=yes
5760 DEFAULT_wxUSE_SCROLLBAR=yes
5761 DEFAULT_wxUSE_SLIDER=yes
5762 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5763 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5764 DEFAULT_wxUSE_SPLITTER=yes
5765 DEFAULT_wxUSE_STATBMP=yes
5766 DEFAULT_wxUSE_STATBOX=yes
5767 DEFAULT_wxUSE_STATLINE=yes
5768 DEFAULT_wxUSE_STATUSBAR=yes
5769 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5770 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5771 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5772 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5773 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5774 DEFAULT_wxUSE_TOOLTIPS=yes
5775 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5776 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5777 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5778elif test "$wxUSE_CONTROLS" = "no"; then
5779 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5780 DEFAULT_wxUSE_BMPBUTTON=no
5781 DEFAULT_wxUSE_BUTTON=no
5782 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5783 DEFAULT_wxUSE_CARET=no
5784 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5785 DEFAULT_wxUSE_CHECKBOX=no
5786 DEFAULT_wxUSE_CHECKLISTBOX=no
5787 DEFAULT_wxUSE_CHOICE=no
5788 DEFAULT_wxUSE_GAUGE=no
5789 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
5790 DEFAULT_wxUSE_IMAGLIST=no
5791 DEFAULT_wxUSE_LISTBOX=no
5792 DEFAULT_wxUSE_LISTCTRL=no
5793 DEFAULT_wxUSE_NOTEBOOK=no
5794 DEFAULT_wxUSE_RADIOBOX=no
5795 DEFAULT_wxUSE_RADIOBTN=no
5796 DEFAULT_wxUSE_SASH=no
5797 DEFAULT_wxUSE_SCROLLBAR=no
5798 DEFAULT_wxUSE_SLIDER=no
5799 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5800 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5801 DEFAULT_wxUSE_SPLITTER=no
5802 DEFAULT_wxUSE_STATBMP=no
5803 DEFAULT_wxUSE_STATBOX=no
5804 DEFAULT_wxUSE_STATLINE=no
5805 DEFAULT_wxUSE_STATUSBAR=no
5806 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5807 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5808 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5809 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5810 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5811 DEFAULT_wxUSE_TOOLTIPS=no
5812 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5813 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5814 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5815fi
5816
ac0c4cc3
DE
5817## FIXME: This is a blatant hack
5818if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5819 wxUSE_PRINTING_ARCHITECTURE=no
5820 wxUSE_HELP=no
5821 wxUSE_CLIPBOARD=no
5822 wxUSE_DRAG_AND_DROP=no
5823 wxUSE_DATAOBJ=no
5824 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5825 DEFAULT_wxUSE_TEXTDLG=no
5826 DEFAULT_wxUSE_GAUGE=no
5827 DEFAULT_wxUSE_SCROLLBAR=no
5828 DEFAULT_wxUSE_SLIDER=no
5829 DEFAULT_wxUSE_COMBOBOX=no
5830 DEFAULT_wxUSE_CALCTRL=no
5831 DEFAULT_wxUSE_SPINBTN=no
5832 DEFAULT_wxUSE_SPINCTRL=no
5833 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 5834 DEFAULT_wxUSE_COLOURDLG=no
ac0c4cc3
DE
5835 DEFAULT_wxUSE_DRAGIMAGE=no
5836 DEFAULT_wxUSE_FINDREPLDLG=no
5837 DEFAULT_wxUSE_FONTDLG=no
5838 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5839 DEFAULT_wxUSE_NUMBERDLG=no
5840 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
5841 DEFAULT_wxUSE_SASH=no
5842 DEFAULT_wxUSE_SPLITTER=no
5843 DEFAULT_wxUSE_WIZARDDLG=no
5844 DEFAULT_wxUSE_SPLITTER=no
5845 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
5846fi
5847
8284b0c5 5848
5005acfe
VZ
5849 enablestring=
5850 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
89e3b3e4 5851echo "configure:5852: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5852 no_cache=0
5853 # Check whether --enable-accel or --disable-accel was given.
5854if test "${enable_accel+set}" = set; then
5855 enableval="$enable_accel"
a0b9e27f 5856
10f2d63a
VZ
5857 if test "$enableval" = yes; then
5858 ac_cv_use_accel='wxUSE_ACCEL=yes'
5859 else
5860 ac_cv_use_accel='wxUSE_ACCEL=no'
5861 fi
a0b9e27f 5862
10f2d63a 5863else
a0b9e27f 5864
10f2d63a
VZ
5865 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5873
5874fi
10f2d63a
VZ
5875
5876
5877 eval "$ac_cv_use_accel"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5883 echo "$ac_t""yes" 1>&6
10f2d63a 5884 else
a0b9e27f 5885 echo "$ac_t""no" 1>&6
10f2d63a 5886 fi
a0b9e27f 5887
10f2d63a 5888
5005acfe
VZ
5889 enablestring=
5890 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
89e3b3e4 5891echo "configure:5892: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5892 no_cache=0
1e6feb95
VZ
5893 # Check whether --enable-button or --disable-button was given.
5894if test "${enable_button+set}" = set; then
5895 enableval="$enable_button"
a0b9e27f 5896
10f2d63a 5897 if test "$enableval" = yes; then
1e6feb95 5898 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5899 else
1e6feb95 5900 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5901 fi
a0b9e27f 5902
10f2d63a 5903else
a0b9e27f 5904
1e6feb95 5905 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
1e6feb95 5912 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5913
5914fi
10f2d63a
VZ
5915
5916
1e6feb95 5917 eval "$ac_cv_use_button"
10f2d63a 5918 if test "$no_cache" != 1; then
1e6feb95 5919 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5920 fi
5921
1e6feb95 5922 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5923 echo "$ac_t""yes" 1>&6
10f2d63a 5924 else
a0b9e27f 5925 echo "$ac_t""no" 1>&6
10f2d63a 5926 fi
a0b9e27f 5927
10f2d63a 5928
5005acfe
VZ
5929 enablestring=
5930 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
89e3b3e4 5931echo "configure:5932: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
5932 no_cache=0
5933 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5934if test "${enable_bmpbutton+set}" = set; then
5935 enableval="$enable_bmpbutton"
a0b9e27f 5936
10f2d63a
VZ
5937 if test "$enableval" = yes; then
5938 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5939 else
5940 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5941 fi
a0b9e27f 5942
10f2d63a 5943else
a0b9e27f 5944
10f2d63a
VZ
5945 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5946 if test "x$LINE" != x ; then
5947 eval "DEFAULT_$LINE"
5948 else
5949 no_cache=1
5950 fi
5951
5952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5953
5954fi
10f2d63a
VZ
5955
5956
5957 eval "$ac_cv_use_bmpbutton"
5958 if test "$no_cache" != 1; then
5959 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5960 fi
5961
5962 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5963 echo "$ac_t""yes" 1>&6
10f2d63a 5964 else
a0b9e27f 5965 echo "$ac_t""no" 1>&6
10f2d63a 5966 fi
a0b9e27f 5967
10f2d63a 5968
5005acfe
VZ
5969 enablestring=
5970 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
89e3b3e4 5971echo "configure:5972: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
5972 no_cache=0
5973 # Check whether --enable-calendar or --disable-calendar was given.
5974if test "${enable_calendar+set}" = set; then
5975 enableval="$enable_calendar"
a0b9e27f 5976
1e6feb95
VZ
5977 if test "$enableval" = yes; then
5978 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5979 else
5980 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5981 fi
a0b9e27f 5982
1e6feb95 5983else
a0b9e27f 5984
1e6feb95
VZ
5985 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
5993
5994fi
1e6feb95
VZ
5995
5996
5997 eval "$ac_cv_use_calendar"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6003 echo "$ac_t""yes" 1>&6
1e6feb95 6004 else
a0b9e27f 6005 echo "$ac_t""no" 1>&6
1e6feb95 6006 fi
a0b9e27f 6007
1e6feb95 6008
5005acfe
VZ
6009 enablestring=
6010 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
89e3b3e4 6011echo "configure:6012: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6012 no_cache=0
6013 # Check whether --enable-caret or --disable-caret was given.
6014if test "${enable_caret+set}" = set; then
6015 enableval="$enable_caret"
a0b9e27f 6016
1e6feb95
VZ
6017 if test "$enableval" = yes; then
6018 ac_cv_use_caret='wxUSE_CARET=yes'
6019 else
6020 ac_cv_use_caret='wxUSE_CARET=no'
6021 fi
a0b9e27f 6022
1e6feb95 6023else
a0b9e27f 6024
1e6feb95
VZ
6025 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6026 if test "x$LINE" != x ; then
6027 eval "DEFAULT_$LINE"
6028 else
6029 no_cache=1
6030 fi
6031
6032 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6033
6034fi
1e6feb95
VZ
6035
6036
6037 eval "$ac_cv_use_caret"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6043 echo "$ac_t""yes" 1>&6
1e6feb95 6044 else
a0b9e27f 6045 echo "$ac_t""no" 1>&6
1e6feb95 6046 fi
a0b9e27f 6047
1e6feb95 6048
5005acfe
VZ
6049 enablestring=
6050 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
89e3b3e4 6051echo "configure:6052: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6052 no_cache=0
6053 # Check whether --enable-checkbox or --disable-checkbox was given.
6054if test "${enable_checkbox+set}" = set; then
6055 enableval="$enable_checkbox"
a0b9e27f 6056
10f2d63a
VZ
6057 if test "$enableval" = yes; then
6058 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6059 else
6060 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6061 fi
a0b9e27f 6062
10f2d63a 6063else
a0b9e27f 6064
10f2d63a
VZ
6065 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6073
6074fi
10f2d63a
VZ
6075
6076
6077 eval "$ac_cv_use_checkbox"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6083 echo "$ac_t""yes" 1>&6
10f2d63a 6084 else
a0b9e27f 6085 echo "$ac_t""no" 1>&6
10f2d63a 6086 fi
a0b9e27f 6087
10f2d63a 6088
5005acfe
VZ
6089 enablestring=
6090 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
89e3b3e4 6091echo "configure:6092: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6092 no_cache=0
6093 # Check whether --enable-checklst or --disable-checklst was given.
6094if test "${enable_checklst+set}" = set; then
6095 enableval="$enable_checklst"
a0b9e27f 6096
10f2d63a
VZ
6097 if test "$enableval" = yes; then
6098 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6099 else
6100 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6101 fi
a0b9e27f 6102
10f2d63a 6103else
a0b9e27f 6104
10f2d63a
VZ
6105 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6113
6114fi
10f2d63a
VZ
6115
6116
6117 eval "$ac_cv_use_checklst"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6123 echo "$ac_t""yes" 1>&6
10f2d63a 6124 else
a0b9e27f 6125 echo "$ac_t""no" 1>&6
10f2d63a 6126 fi
a0b9e27f 6127
10f2d63a 6128
5005acfe
VZ
6129 enablestring=
6130 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
89e3b3e4 6131echo "configure:6132: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6132 no_cache=0
6133 # Check whether --enable-choice or --disable-choice was given.
6134if test "${enable_choice+set}" = set; then
6135 enableval="$enable_choice"
a0b9e27f 6136
10f2d63a
VZ
6137 if test "$enableval" = yes; then
6138 ac_cv_use_choice='wxUSE_CHOICE=yes'
6139 else
6140 ac_cv_use_choice='wxUSE_CHOICE=no'
6141 fi
a0b9e27f 6142
10f2d63a 6143else
a0b9e27f 6144
10f2d63a
VZ
6145 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6153
6154fi
10f2d63a
VZ
6155
6156
6157 eval "$ac_cv_use_choice"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6163 echo "$ac_t""yes" 1>&6
10f2d63a 6164 else
a0b9e27f 6165 echo "$ac_t""no" 1>&6
10f2d63a 6166 fi
a0b9e27f 6167
10f2d63a 6168
5005acfe
VZ
6169 enablestring=
6170 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
89e3b3e4 6171echo "configure:6172: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6172 no_cache=0
6173 # Check whether --enable-combobox or --disable-combobox was given.
6174if test "${enable_combobox+set}" = set; then
6175 enableval="$enable_combobox"
a0b9e27f 6176
10f2d63a
VZ
6177 if test "$enableval" = yes; then
6178 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6179 else
6180 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6181 fi
a0b9e27f 6182
10f2d63a 6183else
a0b9e27f 6184
10f2d63a
VZ
6185 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6186 if test "x$LINE" != x ; then
6187 eval "DEFAULT_$LINE"
6188 else
6189 no_cache=1
6190 fi
6191
6192 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6193
6194fi
10f2d63a
VZ
6195
6196
6197 eval "$ac_cv_use_combobox"
6198 if test "$no_cache" != 1; then
6199 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6200 fi
6201
6202 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6203 echo "$ac_t""yes" 1>&6
10f2d63a 6204 else
a0b9e27f 6205 echo "$ac_t""no" 1>&6
10f2d63a 6206 fi
a0b9e27f 6207
10f2d63a 6208
da494b40
MB
6209 enablestring=
6210 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
89e3b3e4 6211echo "configure:6212: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6212 no_cache=0
6213 # Check whether --enable-display or --disable-display was given.
6214if test "${enable_display+set}" = set; then
6215 enableval="$enable_display"
6216
6217 if test "$enableval" = yes; then
6218 ac_cv_use_display='wxUSE_DISPLAY=yes'
6219 else
6220 ac_cv_use_display='wxUSE_DISPLAY=no'
6221 fi
6222
6223else
6224
6225 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6226 if test "x$LINE" != x ; then
6227 eval "DEFAULT_$LINE"
6228 else
6229 no_cache=1
6230 fi
6231
6232 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6233
6234fi
6235
6236
6237 eval "$ac_cv_use_display"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_DISPLAY" = yes; then
6243 echo "$ac_t""yes" 1>&6
6244 else
6245 echo "$ac_t""no" 1>&6
6246 fi
6247
6248
5005acfe
VZ
6249 enablestring=
6250 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
89e3b3e4 6251echo "configure:6252: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6252 no_cache=0
6253 # Check whether --enable-gauge or --disable-gauge was given.
6254if test "${enable_gauge+set}" = set; then
6255 enableval="$enable_gauge"
a0b9e27f 6256
10f2d63a
VZ
6257 if test "$enableval" = yes; then
6258 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6259 else
6260 ac_cv_use_gauge='wxUSE_GAUGE=no'
6261 fi
a0b9e27f 6262
10f2d63a 6263else
a0b9e27f 6264
10f2d63a
VZ
6265 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6273
6274fi
10f2d63a
VZ
6275
6276
6277 eval "$ac_cv_use_gauge"
6278 if test "$no_cache" != 1; then
6279 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6280 fi
6281
6282 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6283 echo "$ac_t""yes" 1>&6
10f2d63a 6284 else
a0b9e27f 6285 echo "$ac_t""no" 1>&6
10f2d63a 6286 fi
a0b9e27f 6287
10f2d63a 6288
5005acfe
VZ
6289 enablestring=
6290 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
89e3b3e4 6291echo "configure:6292: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6292 no_cache=0
6293 # Check whether --enable-grid or --disable-grid was given.
6294if test "${enable_grid+set}" = set; then
6295 enableval="$enable_grid"
a0b9e27f 6296
10f2d63a
VZ
6297 if test "$enableval" = yes; then
6298 ac_cv_use_grid='wxUSE_GRID=yes'
6299 else
6300 ac_cv_use_grid='wxUSE_GRID=no'
6301 fi
a0b9e27f 6302
10f2d63a 6303else
a0b9e27f 6304
10f2d63a
VZ
6305 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6306 if test "x$LINE" != x ; then
6307 eval "DEFAULT_$LINE"
6308 else
6309 no_cache=1
6310 fi
6311
6312 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6313
6314fi
10f2d63a
VZ
6315
6316
6317 eval "$ac_cv_use_grid"
6318 if test "$no_cache" != 1; then
6319 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6320 fi
6321
6322 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6323 echo "$ac_t""yes" 1>&6
10f2d63a 6324 else
a0b9e27f 6325 echo "$ac_t""no" 1>&6
10f2d63a 6326 fi
a0b9e27f 6327
10f2d63a 6328
5005acfe
VZ
6329 enablestring=
6330 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
89e3b3e4 6331echo "configure:6332: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6332 no_cache=0
6333 # Check whether --enable-imaglist or --disable-imaglist was given.
6334if test "${enable_imaglist+set}" = set; then
6335 enableval="$enable_imaglist"
a0b9e27f 6336
10f2d63a
VZ
6337 if test "$enableval" = yes; then
6338 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6339 else
6340 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6341 fi
a0b9e27f 6342
10f2d63a 6343else
a0b9e27f 6344
10f2d63a
VZ
6345 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6346 if test "x$LINE" != x ; then
6347 eval "DEFAULT_$LINE"
6348 else
6349 no_cache=1
6350 fi
6351
6352 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6353
6354fi
10f2d63a
VZ
6355
6356
6357 eval "$ac_cv_use_imaglist"
6358 if test "$no_cache" != 1; then
6359 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6360 fi
6361
6362 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6363 echo "$ac_t""yes" 1>&6
10f2d63a 6364 else
a0b9e27f 6365 echo "$ac_t""no" 1>&6
10f2d63a 6366 fi
a0b9e27f 6367
10f2d63a 6368
5005acfe
VZ
6369 enablestring=
6370 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
89e3b3e4 6371echo "configure:6372: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6372 no_cache=0
6373 # Check whether --enable-listbox or --disable-listbox was given.
6374if test "${enable_listbox+set}" = set; then
6375 enableval="$enable_listbox"
a0b9e27f 6376
10f2d63a
VZ
6377 if test "$enableval" = yes; then
6378 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6379 else
6380 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6381 fi
a0b9e27f 6382
10f2d63a 6383else
a0b9e27f 6384
10f2d63a
VZ
6385 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6386 if test "x$LINE" != x ; then
6387 eval "DEFAULT_$LINE"
6388 else
6389 no_cache=1
6390 fi
6391
6392 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6393
6394fi
10f2d63a
VZ
6395
6396
6397 eval "$ac_cv_use_listbox"
6398 if test "$no_cache" != 1; then
6399 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6400 fi
6401
6402 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6403 echo "$ac_t""yes" 1>&6
10f2d63a 6404 else
a0b9e27f 6405 echo "$ac_t""no" 1>&6
10f2d63a 6406 fi
a0b9e27f 6407
10f2d63a 6408
5005acfe
VZ
6409 enablestring=
6410 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
89e3b3e4 6411echo "configure:6412: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6412 no_cache=0
6413 # Check whether --enable-listctrl or --disable-listctrl was given.
6414if test "${enable_listctrl+set}" = set; then
6415 enableval="$enable_listctrl"
a0b9e27f 6416
10f2d63a
VZ
6417 if test "$enableval" = yes; then
6418 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6419 else
6420 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6421 fi
a0b9e27f 6422
10f2d63a 6423else
a0b9e27f 6424
10f2d63a
VZ
6425 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6426 if test "x$LINE" != x ; then
6427 eval "DEFAULT_$LINE"
6428 else
6429 no_cache=1
6430 fi
6431
6432 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6433
6434fi
10f2d63a
VZ
6435
6436
6437 eval "$ac_cv_use_listctrl"
6438 if test "$no_cache" != 1; then
6439 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6440 fi
6441
6442 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6443 echo "$ac_t""yes" 1>&6
10f2d63a 6444 else
a0b9e27f 6445 echo "$ac_t""no" 1>&6
10f2d63a 6446 fi
a0b9e27f 6447
10f2d63a 6448
5005acfe
VZ
6449 enablestring=
6450 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
89e3b3e4 6451echo "configure:6452: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6452 no_cache=0
6453 # Check whether --enable-notebook or --disable-notebook was given.
6454if test "${enable_notebook+set}" = set; then
6455 enableval="$enable_notebook"
a0b9e27f 6456
10f2d63a
VZ
6457 if test "$enableval" = yes; then
6458 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6459 else
6460 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6461 fi
a0b9e27f 6462
10f2d63a 6463else
a0b9e27f 6464
10f2d63a
VZ
6465 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6473
6474fi
10f2d63a
VZ
6475
6476
6477 eval "$ac_cv_use_notebook"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6483 echo "$ac_t""yes" 1>&6
10f2d63a 6484 else
a0b9e27f 6485 echo "$ac_t""no" 1>&6
10f2d63a 6486 fi
a0b9e27f 6487
10f2d63a 6488
5005acfe
VZ
6489 enablestring=
6490 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
89e3b3e4 6491echo "configure:6492: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6492 no_cache=0
6493 # Check whether --enable-radiobox or --disable-radiobox was given.
6494if test "${enable_radiobox+set}" = set; then
6495 enableval="$enable_radiobox"
a0b9e27f 6496
10f2d63a
VZ
6497 if test "$enableval" = yes; then
6498 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6499 else
6500 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6501 fi
a0b9e27f 6502
10f2d63a 6503else
a0b9e27f 6504
10f2d63a
VZ
6505 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6513
6514fi
10f2d63a
VZ
6515
6516
6517 eval "$ac_cv_use_radiobox"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6523 echo "$ac_t""yes" 1>&6
10f2d63a 6524 else
a0b9e27f 6525 echo "$ac_t""no" 1>&6
10f2d63a 6526 fi
a0b9e27f 6527
10f2d63a 6528
5005acfe
VZ
6529 enablestring=
6530 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
89e3b3e4 6531echo "configure:6532: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6532 no_cache=0
6533 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6534if test "${enable_radiobtn+set}" = set; then
6535 enableval="$enable_radiobtn"
a0b9e27f 6536
10f2d63a
VZ
6537 if test "$enableval" = yes; then
6538 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6539 else
6540 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6541 fi
a0b9e27f 6542
10f2d63a 6543else
a0b9e27f 6544
10f2d63a
VZ
6545 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6553
6554fi
10f2d63a
VZ
6555
6556
6557 eval "$ac_cv_use_radiobtn"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6563 echo "$ac_t""yes" 1>&6
10f2d63a 6564 else
a0b9e27f 6565 echo "$ac_t""no" 1>&6
10f2d63a 6566 fi
a0b9e27f 6567
10f2d63a 6568
5005acfe
VZ
6569 enablestring=
6570 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
89e3b3e4 6571echo "configure:6572: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6572 no_cache=0
6573 # Check whether --enable-sash or --disable-sash was given.
6574if test "${enable_sash+set}" = set; then
6575 enableval="$enable_sash"
a0b9e27f 6576
10f2d63a
VZ
6577 if test "$enableval" = yes; then
6578 ac_cv_use_sash='wxUSE_SASH=yes'
6579 else
6580 ac_cv_use_sash='wxUSE_SASH=no'
6581 fi
a0b9e27f 6582
10f2d63a 6583else
a0b9e27f 6584
10f2d63a
VZ
6585 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6593
6594fi
10f2d63a
VZ
6595
6596
6597 eval "$ac_cv_use_sash"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6603 echo "$ac_t""yes" 1>&6
10f2d63a 6604 else
a0b9e27f 6605 echo "$ac_t""no" 1>&6
10f2d63a 6606 fi
a0b9e27f 6607
10f2d63a 6608
5005acfe
VZ
6609 enablestring=
6610 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
89e3b3e4 6611echo "configure:6612: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6612 no_cache=0
6613 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6614if test "${enable_scrollbar+set}" = set; then
6615 enableval="$enable_scrollbar"
a0b9e27f 6616
10f2d63a
VZ
6617 if test "$enableval" = yes; then
6618 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6619 else
6620 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6621 fi
a0b9e27f 6622
10f2d63a 6623else
a0b9e27f 6624
10f2d63a
VZ
6625 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6626 if test "x$LINE" != x ; then
6627 eval "DEFAULT_$LINE"
6628 else
6629 no_cache=1
6630 fi
6631
6632 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6633
6634fi
10f2d63a
VZ
6635
6636
6637 eval "$ac_cv_use_scrollbar"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6640 fi
6641
6642 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6643 echo "$ac_t""yes" 1>&6
10f2d63a 6644 else
a0b9e27f 6645 echo "$ac_t""no" 1>&6
10f2d63a 6646 fi
a0b9e27f 6647
10f2d63a 6648
5005acfe
VZ
6649 enablestring=
6650 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
89e3b3e4 6651echo "configure:6652: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6652 no_cache=0
6653 # Check whether --enable-slider or --disable-slider was given.
6654if test "${enable_slider+set}" = set; then
6655 enableval="$enable_slider"
a0b9e27f 6656
10f2d63a
VZ
6657 if test "$enableval" = yes; then
6658 ac_cv_use_slider='wxUSE_SLIDER=yes'
6659 else
6660 ac_cv_use_slider='wxUSE_SLIDER=no'
6661 fi
a0b9e27f 6662
10f2d63a 6663else
a0b9e27f 6664
10f2d63a
VZ
6665 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6673
6674fi
10f2d63a
VZ
6675
6676
6677 eval "$ac_cv_use_slider"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6683 echo "$ac_t""yes" 1>&6
10f2d63a 6684 else
a0b9e27f 6685 echo "$ac_t""no" 1>&6
10f2d63a 6686 fi
a0b9e27f 6687
10f2d63a 6688
5005acfe
VZ
6689 enablestring=
6690 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
89e3b3e4 6691echo "configure:6692: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6692 no_cache=0
6693 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6694if test "${enable_spinbtn+set}" = set; then
6695 enableval="$enable_spinbtn"
a0b9e27f 6696
10f2d63a
VZ
6697 if test "$enableval" = yes; then
6698 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6699 else
6700 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6701 fi
a0b9e27f 6702
10f2d63a 6703else
a0b9e27f 6704
10f2d63a
VZ
6705 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6713
6714fi
10f2d63a
VZ
6715
6716
6717 eval "$ac_cv_use_spinbtn"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6723 echo "$ac_t""yes" 1>&6
10f2d63a 6724 else
a0b9e27f 6725 echo "$ac_t""no" 1>&6
10f2d63a 6726 fi
a0b9e27f 6727
10f2d63a 6728
5005acfe
VZ
6729 enablestring=
6730 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
89e3b3e4 6731echo "configure:6732: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6732 no_cache=0
6733 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6734if test "${enable_spinctrl+set}" = set; then
6735 enableval="$enable_spinctrl"
a0b9e27f 6736
56cfaa52
RR
6737 if test "$enableval" = yes; then
6738 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6739 else
6740 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6741 fi
a0b9e27f 6742
56cfaa52 6743else
a0b9e27f 6744
56cfaa52
RR
6745 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6753
6754fi
56cfaa52
RR
6755
6756
6757 eval "$ac_cv_use_spinctrl"
6758 if test "$no_cache" != 1; then
6759 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6760 fi
6761
6762 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6763 echo "$ac_t""yes" 1>&6
56cfaa52 6764 else
a0b9e27f 6765 echo "$ac_t""no" 1>&6
56cfaa52 6766 fi
a0b9e27f 6767
56cfaa52 6768
5005acfe
VZ
6769 enablestring=
6770 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
89e3b3e4 6771echo "configure:6772: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6772 no_cache=0
6773 # Check whether --enable-splitter or --disable-splitter was given.
6774if test "${enable_splitter+set}" = set; then
6775 enableval="$enable_splitter"
a0b9e27f 6776
10f2d63a
VZ
6777 if test "$enableval" = yes; then
6778 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6779 else
6780 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6781 fi
a0b9e27f 6782
10f2d63a 6783else
a0b9e27f 6784
10f2d63a
VZ
6785 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6786 if test "x$LINE" != x ; then
6787 eval "DEFAULT_$LINE"
6788 else
6789 no_cache=1
6790 fi
6791
6792 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6793
6794fi
10f2d63a
VZ
6795
6796
6797 eval "$ac_cv_use_splitter"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6803 echo "$ac_t""yes" 1>&6
10f2d63a 6804 else
a0b9e27f 6805 echo "$ac_t""no" 1>&6
10f2d63a 6806 fi
a0b9e27f 6807
10f2d63a 6808
5005acfe
VZ
6809 enablestring=
6810 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
89e3b3e4 6811echo "configure:6812: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6812 no_cache=0
6813 # Check whether --enable-statbmp or --disable-statbmp was given.
6814if test "${enable_statbmp+set}" = set; then
6815 enableval="$enable_statbmp"
a0b9e27f 6816
10f2d63a
VZ
6817 if test "$enableval" = yes; then
6818 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6819 else
6820 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6821 fi
a0b9e27f 6822
10f2d63a 6823else
a0b9e27f 6824
10f2d63a
VZ
6825 LINE=`grep "wxUSE_STATBMP" ${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_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6833
6834fi
10f2d63a
VZ
6835
6836
6837 eval "$ac_cv_use_statbmp"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_STATBMP" = 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
5005acfe
VZ
6849 enablestring=
6850 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
89e3b3e4 6851echo "configure:6852: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6852 no_cache=0
6853 # Check whether --enable-statbox or --disable-statbox was given.
6854if test "${enable_statbox+set}" = set; then
6855 enableval="$enable_statbox"
a0b9e27f 6856
10f2d63a
VZ
6857 if test "$enableval" = yes; then
6858 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6859 else
6860 ac_cv_use_statbox='wxUSE_STATBOX=no'
6861 fi
a0b9e27f 6862
10f2d63a 6863else
a0b9e27f 6864
10f2d63a
VZ
6865 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6873
6874fi
10f2d63a
VZ
6875
6876
6877 eval "$ac_cv_use_statbox"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6883 echo "$ac_t""yes" 1>&6
10f2d63a 6884 else
a0b9e27f 6885 echo "$ac_t""no" 1>&6
10f2d63a 6886 fi
a0b9e27f 6887
10f2d63a 6888
5005acfe
VZ
6889 enablestring=
6890 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
89e3b3e4 6891echo "configure:6892: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6892 no_cache=0
6893 # Check whether --enable-statline or --disable-statline was given.
6894if test "${enable_statline+set}" = set; then
6895 enableval="$enable_statline"
a0b9e27f 6896
10f2d63a
VZ
6897 if test "$enableval" = yes; then
6898 ac_cv_use_statline='wxUSE_STATLINE=yes'
6899 else
6900 ac_cv_use_statline='wxUSE_STATLINE=no'
6901 fi
a0b9e27f 6902
10f2d63a 6903else
a0b9e27f 6904
10f2d63a
VZ
6905 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6906 if test "x$LINE" != x ; then
6907 eval "DEFAULT_$LINE"
6908 else
6909 no_cache=1
6910 fi
6911
6912 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6913
6914fi
10f2d63a
VZ
6915
6916
6917 eval "$ac_cv_use_statline"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6923 echo "$ac_t""yes" 1>&6
10f2d63a 6924 else
a0b9e27f 6925 echo "$ac_t""no" 1>&6
10f2d63a 6926 fi
a0b9e27f 6927
10f2d63a 6928
5005acfe
VZ
6929 enablestring=
6930 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
89e3b3e4 6931echo "configure:6932: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
6932 no_cache=0
6933 # Check whether --enable-stattext or --disable-stattext was given.
6934if test "${enable_stattext+set}" = set; then
6935 enableval="$enable_stattext"
a0b9e27f 6936
1e6feb95
VZ
6937 if test "$enableval" = yes; then
6938 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6939 else
6940 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6941 fi
a0b9e27f 6942
1e6feb95 6943else
a0b9e27f 6944
1e6feb95
VZ
6945 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6953
6954fi
1e6feb95
VZ
6955
6956
6957 eval "$ac_cv_use_stattext"
6958 if test "$no_cache" != 1; then
6959 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6960 fi
6961
6962 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6963 echo "$ac_t""yes" 1>&6
1e6feb95 6964 else
a0b9e27f 6965 echo "$ac_t""no" 1>&6
1e6feb95 6966 fi
a0b9e27f 6967
1e6feb95 6968
5005acfe
VZ
6969 enablestring=
6970 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
89e3b3e4 6971echo "configure:6972: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
6972 no_cache=0
6973 # Check whether --enable-statusbar or --disable-statusbar was given.
6974if test "${enable_statusbar+set}" = set; then
6975 enableval="$enable_statusbar"
a0b9e27f 6976
10f2d63a
VZ
6977 if test "$enableval" = yes; then
6978 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6979 else
6980 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6981 fi
a0b9e27f 6982
10f2d63a 6983else
a0b9e27f 6984
10f2d63a
VZ
6985 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
6993
6994fi
10f2d63a
VZ
6995
6996
6997 eval "$ac_cv_use_statusbar"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7003 echo "$ac_t""yes" 1>&6
10f2d63a 7004 else
a0b9e27f 7005 echo "$ac_t""no" 1>&6
10f2d63a 7006 fi
a0b9e27f 7007
10f2d63a 7008
5005acfe
VZ
7009 enablestring=
7010 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
89e3b3e4 7011echo "configure:7012: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7012 no_cache=0
7013 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7014if test "${enable_tabdialog+set}" = set; then
7015 enableval="$enable_tabdialog"
a0b9e27f 7016
10f2d63a
VZ
7017 if test "$enableval" = yes; then
7018 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7019 else
7020 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7021 fi
a0b9e27f 7022
10f2d63a 7023else
a0b9e27f 7024
10f2d63a
VZ
7025 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7033
7034fi
10f2d63a
VZ
7035
7036
7037 eval "$ac_cv_use_tabdialog"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7043 echo "$ac_t""yes" 1>&6
10f2d63a 7044 else
a0b9e27f 7045 echo "$ac_t""no" 1>&6
10f2d63a 7046 fi
a0b9e27f 7047
10f2d63a 7048
5005acfe
VZ
7049 enablestring=
7050 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
89e3b3e4 7051echo "configure:7052: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7052 no_cache=0
7053 # Check whether --enable-textctrl or --disable-textctrl was given.
7054if test "${enable_textctrl+set}" = set; then
7055 enableval="$enable_textctrl"
a0b9e27f 7056
1e6feb95
VZ
7057 if test "$enableval" = yes; then
7058 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7059 else
7060 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7061 fi
a0b9e27f 7062
1e6feb95 7063else
a0b9e27f 7064
1e6feb95
VZ
7065 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7073
7074fi
1e6feb95
VZ
7075
7076
7077 eval "$ac_cv_use_textctrl"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7083 echo "$ac_t""yes" 1>&6
1e6feb95 7084 else
a0b9e27f 7085 echo "$ac_t""no" 1>&6
1e6feb95 7086 fi
a0b9e27f 7087
1e6feb95 7088
5005acfe
VZ
7089 enablestring=
7090 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
89e3b3e4 7091echo "configure:7092: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7092 no_cache=0
7093 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7094if test "${enable_togglebtn+set}" = set; then
7095 enableval="$enable_togglebtn"
a0b9e27f 7096
1db8dc4a
VZ
7097 if test "$enableval" = yes; then
7098 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7099 else
7100 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7101 fi
a0b9e27f 7102
1db8dc4a 7103else
a0b9e27f 7104
1db8dc4a
VZ
7105 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7106 if test "x$LINE" != x ; then
7107 eval "DEFAULT_$LINE"
7108 else
7109 no_cache=1
7110 fi
7111
7112 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7113
7114fi
1db8dc4a
VZ
7115
7116
7117 eval "$ac_cv_use_togglebtn"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7123 echo "$ac_t""yes" 1>&6
1db8dc4a 7124 else
a0b9e27f 7125 echo "$ac_t""no" 1>&6
1db8dc4a 7126 fi
a0b9e27f 7127
1db8dc4a 7128
5005acfe
VZ
7129 enablestring=
7130 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
89e3b3e4 7131echo "configure:7132: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7132 no_cache=0
7133 # Check whether --enable-toolbar or --disable-toolbar was given.
7134if test "${enable_toolbar+set}" = set; then
7135 enableval="$enable_toolbar"
a0b9e27f 7136
10f2d63a
VZ
7137 if test "$enableval" = yes; then
7138 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7139 else
7140 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7141 fi
a0b9e27f 7142
10f2d63a 7143else
a0b9e27f 7144
10f2d63a
VZ
7145 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7153
7154fi
10f2d63a
VZ
7155
7156
7157 eval "$ac_cv_use_toolbar"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7163 echo "$ac_t""yes" 1>&6
10f2d63a 7164 else
a0b9e27f 7165 echo "$ac_t""no" 1>&6
10f2d63a 7166 fi
a0b9e27f 7167
10f2d63a 7168
5005acfe
VZ
7169 enablestring=
7170 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
89e3b3e4 7171echo "configure:7172: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7172 no_cache=0
7173 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7174if test "${enable_tbarnative+set}" = set; then
7175 enableval="$enable_tbarnative"
a0b9e27f 7176
360d6699
VZ
7177 if test "$enableval" = yes; then
7178 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7179 else
7180 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7181 fi
a0b9e27f 7182
360d6699 7183else
a0b9e27f 7184
360d6699
VZ
7185 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7193
7194fi
360d6699
VZ
7195
7196
7197 eval "$ac_cv_use_tbarnative"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7203 echo "$ac_t""yes" 1>&6
360d6699 7204 else
a0b9e27f 7205 echo "$ac_t""no" 1>&6
360d6699 7206 fi
a0b9e27f 7207
360d6699 7208
5005acfe
VZ
7209 enablestring=
7210 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
89e3b3e4 7211echo "configure:7212: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7212 no_cache=0
7213 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7214if test "${enable_tbarsmpl+set}" = set; then
7215 enableval="$enable_tbarsmpl"
a0b9e27f 7216
360d6699
VZ
7217 if test "$enableval" = yes; then
7218 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7219 else
7220 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7221 fi
a0b9e27f 7222
360d6699 7223else
a0b9e27f 7224
360d6699
VZ
7225 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7226 if test "x$LINE" != x ; then
7227 eval "DEFAULT_$LINE"
7228 else
7229 no_cache=1
7230 fi
7231
7232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7233
7234fi
360d6699
VZ
7235
7236
7237 eval "$ac_cv_use_tbarsmpl"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7243 echo "$ac_t""yes" 1>&6
360d6699 7244 else
a0b9e27f 7245 echo "$ac_t""no" 1>&6
360d6699 7246 fi
a0b9e27f 7247
360d6699 7248
5005acfe
VZ
7249 enablestring=
7250 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
89e3b3e4 7251echo "configure:7252: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7252 no_cache=0
7253 # Check whether --enable-treectrl or --disable-treectrl was given.
7254if test "${enable_treectrl+set}" = set; then
7255 enableval="$enable_treectrl"
a0b9e27f 7256
10f2d63a
VZ
7257 if test "$enableval" = yes; then
7258 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7259 else
7260 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7261 fi
a0b9e27f 7262
10f2d63a 7263else
a0b9e27f 7264
10f2d63a
VZ
7265 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7273
7274fi
10f2d63a
VZ
7275
7276
1e6feb95
VZ
7277 eval "$ac_cv_use_treectrl"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7283 echo "$ac_t""yes" 1>&6
1e6feb95 7284 else
a0b9e27f 7285 echo "$ac_t""no" 1>&6
1e6feb95 7286 fi
a0b9e27f 7287
1e6feb95 7288
5005acfe
VZ
7289 enablestring=
7290 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
89e3b3e4 7291echo "configure:7292: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7292 no_cache=0
7293 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7294if test "${enable_tipwindow+set}" = set; then
7295 enableval="$enable_tipwindow"
a0b9e27f 7296
9926e4a4
VZ
7297 if test "$enableval" = yes; then
7298 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7299 else
7300 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7301 fi
a0b9e27f 7302
9926e4a4 7303else
a0b9e27f 7304
9926e4a4
VZ
7305 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7313
7314fi
9926e4a4
VZ
7315
7316
7317 eval "$ac_cv_use_tipwindow"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7323 echo "$ac_t""yes" 1>&6
9926e4a4 7324 else
a0b9e27f 7325 echo "$ac_t""no" 1>&6
9926e4a4 7326 fi
a0b9e27f 7327
9926e4a4 7328
5005acfe
VZ
7329 enablestring=
7330 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
89e3b3e4 7331echo "configure:7332: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7332 no_cache=0
7333 # Check whether --enable-popupwin or --disable-popupwin was given.
7334if test "${enable_popupwin+set}" = set; then
7335 enableval="$enable_popupwin"
a0b9e27f 7336
9f41d601
RR
7337 if test "$enableval" = yes; then
7338 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7339 else
7340 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7341 fi
a0b9e27f 7342
9f41d601 7343else
a0b9e27f 7344
9f41d601
RR
7345 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7353
7354fi
9f41d601
RR
7355
7356
7357 eval "$ac_cv_use_popupwin"
7358 if test "$no_cache" != 1; then
7359 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7360 fi
7361
7362 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7363 echo "$ac_t""yes" 1>&6
9f41d601 7364 else
a0b9e27f 7365 echo "$ac_t""no" 1>&6
9f41d601 7366 fi
a0b9e27f 7367
52127426 7368
8284b0c5
MB
7369
7370
5005acfe
VZ
7371 enablestring=
7372 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
89e3b3e4 7373echo "configure:7374: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7374 no_cache=0
7375 # Check whether --enable-commondlg or --disable-commondlg was given.
7376if test "${enable_commondlg+set}" = set; then
7377 enableval="$enable_commondlg"
a0b9e27f 7378
1e6feb95
VZ
7379 if test "$enableval" = yes; then
7380 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7381 else
7382 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7383 fi
a0b9e27f 7384
1e6feb95 7385else
a0b9e27f 7386
1e6feb95
VZ
7387 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7388 if test "x$LINE" != x ; then
7389 eval "DEFAULT_$LINE"
7390 else
7391 no_cache=1
7392 fi
7393
7394 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7395
7396fi
1e6feb95
VZ
7397
7398
7399 eval "$ac_cv_use_commondlg"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7405 echo "$ac_t""yes" 1>&6
1e6feb95 7406 else
a0b9e27f 7407 echo "$ac_t""no" 1>&6
1e6feb95 7408 fi
a0b9e27f 7409
1e6feb95 7410
5005acfe
VZ
7411 enablestring=
7412 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
89e3b3e4 7413echo "configure:7414: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7414 no_cache=0
7415 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7416if test "${enable_choicedlg+set}" = set; then
7417 enableval="$enable_choicedlg"
a0b9e27f 7418
1e6feb95
VZ
7419 if test "$enableval" = yes; then
7420 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7421 else
7422 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7423 fi
a0b9e27f 7424
1e6feb95 7425else
a0b9e27f 7426
1e6feb95
VZ
7427 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7435
7436fi
1e6feb95
VZ
7437
7438
7439 eval "$ac_cv_use_choicedlg"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7445 echo "$ac_t""yes" 1>&6
1e6feb95 7446 else
a0b9e27f 7447 echo "$ac_t""no" 1>&6
1e6feb95 7448 fi
a0b9e27f 7449
1e6feb95 7450
5005acfe
VZ
7451 enablestring=
7452 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
89e3b3e4 7453echo "configure:7454: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7454 no_cache=0
7455 # Check whether --enable-coldlg or --disable-coldlg was given.
7456if test "${enable_coldlg+set}" = set; then
7457 enableval="$enable_coldlg"
a0b9e27f 7458
1e6feb95
VZ
7459 if test "$enableval" = yes; then
7460 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7461 else
7462 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7463 fi
a0b9e27f 7464
1e6feb95 7465else
a0b9e27f 7466
1e6feb95
VZ
7467 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7468 if test "x$LINE" != x ; then
7469 eval "DEFAULT_$LINE"
7470 else
7471 no_cache=1
7472 fi
7473
7474 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7475
7476fi
1e6feb95
VZ
7477
7478
7479 eval "$ac_cv_use_coldlg"
7480 if test "$no_cache" != 1; then
7481 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7482 fi
7483
7484 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7485 echo "$ac_t""yes" 1>&6
1e6feb95 7486 else
a0b9e27f 7487 echo "$ac_t""no" 1>&6
1e6feb95 7488 fi
a0b9e27f 7489
1e6feb95 7490
5005acfe
VZ
7491 enablestring=
7492 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
89e3b3e4 7493echo "configure:7494: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7494 no_cache=0
7495 # Check whether --enable-filedlg or --disable-filedlg was given.
7496if test "${enable_filedlg+set}" = set; then
7497 enableval="$enable_filedlg"
a0b9e27f 7498
1e6feb95
VZ
7499 if test "$enableval" = yes; then
7500 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7501 else
7502 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7503 fi
a0b9e27f 7504
1e6feb95 7505else
a0b9e27f 7506
1e6feb95
VZ
7507 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7508 if test "x$LINE" != x ; then
7509 eval "DEFAULT_$LINE"
7510 else
7511 no_cache=1
7512 fi
7513
7514 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7515
7516fi
1e6feb95
VZ
7517
7518
7519 eval "$ac_cv_use_filedlg"
7520 if test "$no_cache" != 1; then
7521 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7522 fi
7523
7524 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7525 echo "$ac_t""yes" 1>&6
1e6feb95 7526 else
a0b9e27f 7527 echo "$ac_t""no" 1>&6
1e6feb95 7528 fi
a0b9e27f 7529
1e6feb95 7530
5005acfe
VZ
7531 enablestring=
7532 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
89e3b3e4 7533echo "configure:7534: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7534 no_cache=0
69d27ff7
MB
7535 # Check whether --enable-finddlg or --disable-finddlg was given.
7536if test "${enable_finddlg+set}" = set; then
7537 enableval="$enable_finddlg"
a0b9e27f 7538
8db37e06 7539 if test "$enableval" = yes; then
69d27ff7 7540 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7541 else
69d27ff7 7542 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7543 fi
a0b9e27f 7544
8db37e06 7545else
a0b9e27f 7546
8db37e06
VZ
7547 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7548 if test "x$LINE" != x ; then
7549 eval "DEFAULT_$LINE"
7550 else
7551 no_cache=1
7552 fi
7553
69d27ff7 7554 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7555
7556fi
8db37e06
VZ
7557
7558
69d27ff7 7559 eval "$ac_cv_use_finddlg"
8db37e06 7560 if test "$no_cache" != 1; then
69d27ff7 7561 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7562 fi
7563
7564 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7565 echo "$ac_t""yes" 1>&6
8db37e06 7566 else
a0b9e27f 7567 echo "$ac_t""no" 1>&6
8db37e06 7568 fi
a0b9e27f 7569
8db37e06 7570
5005acfe
VZ
7571 enablestring=
7572 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
89e3b3e4 7573echo "configure:7574: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7574 no_cache=0
7575 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7576if test "${enable_fontdlg+set}" = set; then
7577 enableval="$enable_fontdlg"
a0b9e27f 7578
1e6feb95
VZ
7579 if test "$enableval" = yes; then
7580 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7581 else
7582 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7583 fi
a0b9e27f 7584
1e6feb95 7585else
a0b9e27f 7586
1e6feb95
VZ
7587 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7588 if test "x$LINE" != x ; then
7589 eval "DEFAULT_$LINE"
7590 else
7591 no_cache=1
7592 fi
7593
7594 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7595
7596fi
1e6feb95
VZ
7597
7598
7599 eval "$ac_cv_use_fontdlg"
7600 if test "$no_cache" != 1; then
7601 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7602 fi
7603
7604 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7605 echo "$ac_t""yes" 1>&6
1e6feb95 7606 else
a0b9e27f 7607 echo "$ac_t""no" 1>&6
1e6feb95 7608 fi
a0b9e27f 7609
1e6feb95 7610
5005acfe
VZ
7611 enablestring=
7612 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
89e3b3e4 7613echo "configure:7614: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7614 no_cache=0
7615 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7616if test "${enable_dirdlg+set}" = set; then
7617 enableval="$enable_dirdlg"
a0b9e27f 7618
1e6feb95
VZ
7619 if test "$enableval" = yes; then
7620 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7621 else
7622 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7623 fi
a0b9e27f 7624
1e6feb95 7625else
a0b9e27f 7626
1e6feb95
VZ
7627 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7628 if test "x$LINE" != x ; then
7629 eval "DEFAULT_$LINE"
7630 else
7631 no_cache=1
7632 fi
7633
7634 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7635
7636fi
1e6feb95
VZ
7637
7638
7639 eval "$ac_cv_use_dirdlg"
10f2d63a 7640 if test "$no_cache" != 1; then
1e6feb95 7641 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7642 fi
7643
1e6feb95 7644 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7645 echo "$ac_t""yes" 1>&6
10f2d63a 7646 else
a0b9e27f 7647 echo "$ac_t""no" 1>&6
10f2d63a 7648 fi
a0b9e27f 7649
698dcdb6 7650
5005acfe
VZ
7651 enablestring=
7652 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
89e3b3e4 7653echo "configure:7654: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7654 no_cache=0
1e6feb95
VZ
7655 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7656if test "${enable_msgdlg+set}" = set; then
7657 enableval="$enable_msgdlg"
a0b9e27f 7658
10f2d63a 7659 if test "$enableval" = yes; then
1e6feb95 7660 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7661 else
1e6feb95 7662 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7663 fi
a0b9e27f 7664
10f2d63a 7665else
a0b9e27f 7666
1e6feb95 7667 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7668 if test "x$LINE" != x ; then
7669 eval "DEFAULT_$LINE"
7670 else
7671 no_cache=1
7672 fi
7673
1e6feb95 7674 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7675
7676fi
10f2d63a
VZ
7677
7678
1e6feb95 7679 eval "$ac_cv_use_msgdlg"
10f2d63a 7680 if test "$no_cache" != 1; then
1e6feb95 7681 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7682 fi
7683
1e6feb95 7684 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7685 echo "$ac_t""yes" 1>&6
10f2d63a 7686 else
a0b9e27f 7687 echo "$ac_t""no" 1>&6
10f2d63a 7688 fi
a0b9e27f 7689
10f2d63a 7690
5005acfe
VZ
7691 enablestring=
7692 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
89e3b3e4 7693echo "configure:7694: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7694 no_cache=0
1e6feb95
VZ
7695 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7696if test "${enable_numberdlg+set}" = set; then
7697 enableval="$enable_numberdlg"
a0b9e27f 7698
10f2d63a 7699 if test "$enableval" = yes; then
1e6feb95 7700 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7701 else
1e6feb95 7702 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7703 fi
a0b9e27f 7704
10f2d63a 7705else
a0b9e27f 7706
1e6feb95 7707 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7708 if test "x$LINE" != x ; then
7709 eval "DEFAULT_$LINE"
7710 else
7711 no_cache=1
7712 fi
7713
1e6feb95 7714 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7715
7716fi
10f2d63a
VZ
7717
7718
1e6feb95 7719 eval "$ac_cv_use_numberdlg"
10f2d63a 7720 if test "$no_cache" != 1; then
1e6feb95 7721 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7722 fi
7723
1e6feb95 7724 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7725 echo "$ac_t""yes" 1>&6
10f2d63a 7726 else
a0b9e27f 7727 echo "$ac_t""no" 1>&6
10f2d63a 7728 fi
a0b9e27f 7729
10f2d63a 7730
5005acfe
VZ
7731 enablestring=
7732 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
89e3b3e4 7733echo "configure:7734: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7734 no_cache=0
7735 # Check whether --enable-splash or --disable-splash was given.
7736if test "${enable_splash+set}" = set; then
7737 enableval="$enable_splash"
a0b9e27f 7738
cbca9943
VZ
7739 if test "$enableval" = yes; then
7740 ac_cv_use_splash='wxUSE_SPLASH=yes'
7741 else
7742 ac_cv_use_splash='wxUSE_SPLASH=no'
7743 fi
a0b9e27f 7744
cbca9943 7745else
a0b9e27f 7746
cbca9943
VZ
7747 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7748 if test "x$LINE" != x ; then
7749 eval "DEFAULT_$LINE"
7750 else
7751 no_cache=1
7752 fi
7753
7754 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7755
7756fi
cbca9943
VZ
7757
7758
7759 eval "$ac_cv_use_splash"
7760 if test "$no_cache" != 1; then
7761 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7762 fi
7763
7764 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7765 echo "$ac_t""yes" 1>&6
cbca9943 7766 else
a0b9e27f 7767 echo "$ac_t""no" 1>&6
cbca9943 7768 fi
a0b9e27f 7769
cbca9943 7770
5005acfe
VZ
7771 enablestring=
7772 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
89e3b3e4 7773echo "configure:7774: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7774 no_cache=0
7775 # Check whether --enable-textdlg or --disable-textdlg was given.
7776if test "${enable_textdlg+set}" = set; then
7777 enableval="$enable_textdlg"
a0b9e27f 7778
10f2d63a
VZ
7779 if test "$enableval" = yes; then
7780 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7781 else
7782 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7783 fi
a0b9e27f 7784
10f2d63a 7785else
a0b9e27f 7786
10f2d63a
VZ
7787 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7788 if test "x$LINE" != x ; then
7789 eval "DEFAULT_$LINE"
7790 else
7791 no_cache=1
7792 fi
7793
7794 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7795
7796fi
10f2d63a
VZ
7797
7798
7799 eval "$ac_cv_use_textdlg"
7800 if test "$no_cache" != 1; then
7801 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7802 fi
7803
7804 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7805 echo "$ac_t""yes" 1>&6
10f2d63a 7806 else
a0b9e27f 7807 echo "$ac_t""no" 1>&6
10f2d63a 7808 fi
a0b9e27f 7809
10f2d63a 7810
5005acfe
VZ
7811 enablestring=
7812 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
89e3b3e4 7813echo "configure:7814: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7814 no_cache=0
7815 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7816if test "${enable_tipdlg+set}" = set; then
7817 enableval="$enable_tipdlg"
a0b9e27f 7818
10f2d63a
VZ
7819 if test "$enableval" = yes; then
7820 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7821 else
7822 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7823 fi
a0b9e27f 7824
10f2d63a 7825else
a0b9e27f 7826
10f2d63a
VZ
7827 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7835
7836fi
10f2d63a
VZ
7837
7838
7839 eval "$ac_cv_use_tipdlg"
7840 if test "$no_cache" != 1; then
7841 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7842 fi
7843
7844 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7845 echo "$ac_t""yes" 1>&6
10f2d63a 7846 else
a0b9e27f 7847 echo "$ac_t""no" 1>&6
10f2d63a 7848 fi
a0b9e27f 7849
10f2d63a 7850
5005acfe
VZ
7851 enablestring=
7852 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
89e3b3e4 7853echo "configure:7854: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7854 no_cache=0
7855 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7856if test "${enable_progressdlg+set}" = set; then
7857 enableval="$enable_progressdlg"
a0b9e27f 7858
10f2d63a
VZ
7859 if test "$enableval" = yes; then
7860 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7861 else
7862 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7863 fi
a0b9e27f 7864
10f2d63a 7865else
a0b9e27f 7866
10f2d63a
VZ
7867 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7868 if test "x$LINE" != x ; then
7869 eval "DEFAULT_$LINE"
7870 else
7871 no_cache=1
7872 fi
7873
7874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7875
7876fi
10f2d63a
VZ
7877
7878
7879 eval "$ac_cv_use_progressdlg"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7885 echo "$ac_t""yes" 1>&6
10f2d63a 7886 else
a0b9e27f 7887 echo "$ac_t""no" 1>&6
10f2d63a 7888 fi
a0b9e27f 7889
10f2d63a 7890
5005acfe
VZ
7891 enablestring=
7892 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
89e3b3e4 7893echo "configure:7894: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7894 no_cache=0
7895 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7896if test "${enable_wizarddlg+set}" = set; then
7897 enableval="$enable_wizarddlg"
a0b9e27f 7898
b1f5d087
VZ
7899 if test "$enableval" = yes; then
7900 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7901 else
7902 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7903 fi
a0b9e27f 7904
b1f5d087 7905else
a0b9e27f 7906
b1f5d087
VZ
7907 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7915
7916fi
b1f5d087
VZ
7917
7918
7919 eval "$ac_cv_use_wizarddlg"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7925 echo "$ac_t""yes" 1>&6
b1f5d087 7926 else
a0b9e27f 7927 echo "$ac_t""no" 1>&6
b1f5d087 7928 fi
a0b9e27f 7929
8284b0c5
MB
7930
7931
52127426 7932
5005acfe
VZ
7933 enablestring=
7934 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
89e3b3e4 7935echo "configure:7936: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
7936 no_cache=0
7937 # Check whether --enable-menus or --disable-menus was given.
7938if test "${enable_menus+set}" = set; then
7939 enableval="$enable_menus"
a0b9e27f 7940
1e6feb95
VZ
7941 if test "$enableval" = yes; then
7942 ac_cv_use_menus='wxUSE_MENUS=yes'
7943 else
7944 ac_cv_use_menus='wxUSE_MENUS=no'
7945 fi
a0b9e27f 7946
1e6feb95 7947else
a0b9e27f 7948
1e6feb95
VZ
7949 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7950 if test "x$LINE" != x ; then
7951 eval "DEFAULT_$LINE"
7952 else
7953 no_cache=1
7954 fi
7955
7956 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7957
7958fi
1e6feb95
VZ
7959
7960
7961 eval "$ac_cv_use_menus"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7967 echo "$ac_t""yes" 1>&6
1e6feb95 7968 else
a0b9e27f 7969 echo "$ac_t""no" 1>&6
1e6feb95 7970 fi
a0b9e27f 7971
1e6feb95 7972
5005acfe
VZ
7973 enablestring=
7974 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
89e3b3e4 7975echo "configure:7976: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
7976 no_cache=0
7977 # Check whether --enable-miniframe or --disable-miniframe was given.
7978if test "${enable_miniframe+set}" = set; then
7979 enableval="$enable_miniframe"
a0b9e27f 7980
10f2d63a
VZ
7981 if test "$enableval" = yes; then
7982 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7983 else
7984 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7985 fi
a0b9e27f 7986
10f2d63a 7987else
a0b9e27f 7988
10f2d63a
VZ
7989 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7990 if test "x$LINE" != x ; then
7991 eval "DEFAULT_$LINE"
7992 else
7993 no_cache=1
7994 fi
7995
7996 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
7997
7998fi
10f2d63a
VZ
7999
8000
8001 eval "$ac_cv_use_miniframe"
8002 if test "$no_cache" != 1; then
8003 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8004 fi
8005
8006 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8007 echo "$ac_t""yes" 1>&6
10f2d63a 8008 else
a0b9e27f 8009 echo "$ac_t""no" 1>&6
10f2d63a 8010 fi
a0b9e27f 8011
10f2d63a 8012
5005acfe
VZ
8013 enablestring=
8014 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
89e3b3e4 8015echo "configure:8016: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8016 no_cache=0
8017 # Check whether --enable-tooltips or --disable-tooltips was given.
8018if test "${enable_tooltips+set}" = set; then
8019 enableval="$enable_tooltips"
a0b9e27f 8020
10f2d63a
VZ
8021 if test "$enableval" = yes; then
8022 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8023 else
8024 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8025 fi
a0b9e27f 8026
10f2d63a 8027else
a0b9e27f 8028
10f2d63a
VZ
8029 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8030 if test "x$LINE" != x ; then
8031 eval "DEFAULT_$LINE"
8032 else
8033 no_cache=1
8034 fi
8035
8036 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8037
8038fi
10f2d63a
VZ
8039
8040
8041 eval "$ac_cv_use_tooltips"
8042 if test "$no_cache" != 1; then
8043 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8044 fi
8045
8046 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8047 echo "$ac_t""yes" 1>&6
10f2d63a 8048 else
a0b9e27f 8049 echo "$ac_t""no" 1>&6
10f2d63a 8050 fi
a0b9e27f 8051
10f2d63a 8052
5005acfe
VZ
8053 enablestring=
8054 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
89e3b3e4 8055echo "configure:8056: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8056 no_cache=0
8057 # Check whether --enable-splines or --disable-splines was given.
8058if test "${enable_splines+set}" = set; then
8059 enableval="$enable_splines"
a0b9e27f 8060
10f2d63a
VZ
8061 if test "$enableval" = yes; then
8062 ac_cv_use_splines='wxUSE_SPLINES=yes'
8063 else
8064 ac_cv_use_splines='wxUSE_SPLINES=no'
8065 fi
a0b9e27f 8066
10f2d63a 8067else
a0b9e27f 8068
10f2d63a
VZ
8069 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8070 if test "x$LINE" != x ; then
8071 eval "DEFAULT_$LINE"
8072 else
8073 no_cache=1
8074 fi
8075
8076 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8077
8078fi
10f2d63a
VZ
8079
8080
8081 eval "$ac_cv_use_splines"
8082 if test "$no_cache" != 1; then
8083 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8084 fi
8085
8086 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8087 echo "$ac_t""yes" 1>&6
10f2d63a 8088 else
a0b9e27f 8089 echo "$ac_t""no" 1>&6
10f2d63a 8090 fi
a0b9e27f 8091
10f2d63a 8092
5005acfe
VZ
8093 enablestring=
8094 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
89e3b3e4 8095echo "configure:8096: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8096 no_cache=0
8097 # Check whether --enable-validators or --disable-validators was given.
8098if test "${enable_validators+set}" = set; then
8099 enableval="$enable_validators"
a0b9e27f 8100
10f2d63a
VZ
8101 if test "$enableval" = yes; then
8102 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8103 else
8104 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8105 fi
a0b9e27f 8106
10f2d63a 8107else
a0b9e27f 8108
10f2d63a
VZ
8109 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8110 if test "x$LINE" != x ; then
8111 eval "DEFAULT_$LINE"
8112 else
8113 no_cache=1
8114 fi
8115
8116 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8117
8118fi
10f2d63a
VZ
8119
8120
8121 eval "$ac_cv_use_validators"
8122 if test "$no_cache" != 1; then
8123 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8124 fi
8125
8126 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8127 echo "$ac_t""yes" 1>&6
10f2d63a 8128 else
a0b9e27f 8129 echo "$ac_t""no" 1>&6
10f2d63a 8130 fi
a0b9e27f 8131
10f2d63a 8132
5005acfe
VZ
8133 enablestring=
8134 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
89e3b3e4 8135echo "configure:8136: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8136 no_cache=0
8137 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8138if test "${enable_busyinfo+set}" = set; then
8139 enableval="$enable_busyinfo"
a0b9e27f 8140
10f2d63a
VZ
8141 if test "$enableval" = yes; then
8142 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8143 else
8144 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8145 fi
a0b9e27f 8146
10f2d63a 8147else
a0b9e27f 8148
10f2d63a
VZ
8149 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8157
8158fi
10f2d63a
VZ
8159
8160
8161 eval "$ac_cv_use_busyinfo"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8167 echo "$ac_t""yes" 1>&6
10f2d63a 8168 else
a0b9e27f 8169 echo "$ac_t""no" 1>&6
10f2d63a 8170 fi
a0b9e27f 8171
10f2d63a 8172
5005acfe
VZ
8173 enablestring=
8174 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
89e3b3e4 8175echo "configure:8176: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8176 no_cache=0
8177 # Check whether --enable-joystick or --disable-joystick was given.
8178if test "${enable_joystick+set}" = set; then
8179 enableval="$enable_joystick"
a0b9e27f 8180
f6bcfd97
BP
8181 if test "$enableval" = yes; then
8182 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8183 else
8184 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8185 fi
a0b9e27f 8186
f6bcfd97 8187else
a0b9e27f 8188
f6bcfd97
BP
8189 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8190 if test "x$LINE" != x ; then
8191 eval "DEFAULT_$LINE"
8192 else
8193 no_cache=1
8194 fi
8195
8196 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8197
8198fi
f6bcfd97
BP
8199
8200
8201 eval "$ac_cv_use_joystick"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8207 echo "$ac_t""yes" 1>&6
f6bcfd97 8208 else
a0b9e27f 8209 echo "$ac_t""no" 1>&6
f6bcfd97 8210 fi
a0b9e27f 8211
698dcdb6 8212
5005acfe
VZ
8213 enablestring=
8214 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
89e3b3e4 8215echo "configure:8216: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8216 no_cache=0
8217 # Check whether --enable-metafile or --disable-metafile was given.
8218if test "${enable_metafile+set}" = set; then
8219 enableval="$enable_metafile"
a0b9e27f 8220
1e6feb95
VZ
8221 if test "$enableval" = yes; then
8222 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8223 else
8224 ac_cv_use_metafile='wxUSE_METAFILE=no'
8225 fi
a0b9e27f 8226
1e6feb95 8227else
a0b9e27f 8228
1e6feb95
VZ
8229 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8230 if test "x$LINE" != x ; then
8231 eval "DEFAULT_$LINE"
8232 else
8233 no_cache=1
8234 fi
8235
8236 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8237
8238fi
1e6feb95
VZ
8239
8240
8241 eval "$ac_cv_use_metafile"
8242 if test "$no_cache" != 1; then
8243 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8244 fi
8245
8246 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8247 echo "$ac_t""yes" 1>&6
1e6feb95 8248 else
a0b9e27f 8249 echo "$ac_t""no" 1>&6
1e6feb95 8250 fi
a0b9e27f 8251
1e6feb95 8252
5005acfe
VZ
8253 enablestring=
8254 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
89e3b3e4 8255echo "configure:8256: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8256 no_cache=0
8257 # Check whether --enable-dragimage or --disable-dragimage was given.
8258if test "${enable_dragimage+set}" = set; then
8259 enableval="$enable_dragimage"
a0b9e27f 8260
24fd6d87
VZ
8261 if test "$enableval" = yes; then
8262 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8263 else
8264 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8265 fi
a0b9e27f 8266
24fd6d87 8267else
a0b9e27f 8268
24fd6d87
VZ
8269 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8270 if test "x$LINE" != x ; then
8271 eval "DEFAULT_$LINE"
8272 else
8273 no_cache=1
8274 fi
8275
8276 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8277
8278fi
24fd6d87
VZ
8279
8280
8281 eval "$ac_cv_use_dragimage"
8282 if test "$no_cache" != 1; then
8283 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8284 fi
8285
8286 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8287 echo "$ac_t""yes" 1>&6
24fd6d87 8288 else
a0b9e27f 8289 echo "$ac_t""no" 1>&6
24fd6d87 8290 fi
a0b9e27f 8291
52127426 8292
8284b0c5
MB
8293
8294
5005acfe
VZ
8295 enablestring=
8296 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
89e3b3e4 8297echo "configure:8298: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8298 no_cache=0
8299 # Check whether --enable-palette or --disable-palette was given.
8300if test "${enable_palette+set}" = set; then
8301 enableval="$enable_palette"
a0b9e27f 8302
edae8572
VZ
8303 if test "$enableval" = yes; then
8304 ac_cv_use_palette='wxUSE_PALETTE=yes'
8305 else
8306 ac_cv_use_palette='wxUSE_PALETTE=no'
8307 fi
a0b9e27f 8308
edae8572 8309else
a0b9e27f 8310
edae8572
VZ
8311 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8312 if test "x$LINE" != x ; then
8313 eval "DEFAULT_$LINE"
8314 else
8315 no_cache=1
8316 fi
8317
8318 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8319
8320fi
edae8572
VZ
8321
8322
8323 eval "$ac_cv_use_palette"
8324 if test "$no_cache" != 1; then
8325 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8326 fi
8327
8328 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8329 echo "$ac_t""yes" 1>&6
edae8572 8330 else
a0b9e27f 8331 echo "$ac_t""no" 1>&6
edae8572 8332 fi
a0b9e27f 8333
edae8572 8334
5005acfe
VZ
8335 enablestring=
8336 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
89e3b3e4 8337echo "configure:8338: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8338 no_cache=0
8339 # Check whether --enable-image or --disable-image was given.
8340if test "${enable_image+set}" = set; then
8341 enableval="$enable_image"
a0b9e27f 8342
0046ff7c
VS
8343 if test "$enableval" = yes; then
8344 ac_cv_use_image='wxUSE_IMAGE=yes'
8345 else
8346 ac_cv_use_image='wxUSE_IMAGE=no'
8347 fi
a0b9e27f 8348
0046ff7c 8349else
a0b9e27f 8350
0046ff7c
VS
8351 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8352 if test "x$LINE" != x ; then
8353 eval "DEFAULT_$LINE"
8354 else
8355 no_cache=1
8356 fi
8357
8358 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8359
8360fi
0046ff7c
VS
8361
8362
8363 eval "$ac_cv_use_image"
8364 if test "$no_cache" != 1; then
8365 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8366 fi
8367
8368 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8369 echo "$ac_t""yes" 1>&6
0046ff7c 8370 else
a0b9e27f 8371 echo "$ac_t""no" 1>&6
0046ff7c 8372 fi
a0b9e27f 8373
0046ff7c 8374
5005acfe
VZ
8375 enablestring=
8376 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
89e3b3e4 8377echo "configure:8378: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8378 no_cache=0
8379 # Check whether --enable-gif or --disable-gif was given.
8380if test "${enable_gif+set}" = set; then
8381 enableval="$enable_gif"
a0b9e27f 8382
10f2d63a
VZ
8383 if test "$enableval" = yes; then
8384 ac_cv_use_gif='wxUSE_GIF=yes'
8385 else
8386 ac_cv_use_gif='wxUSE_GIF=no'
8387 fi
a0b9e27f 8388
10f2d63a 8389else
a0b9e27f 8390
10f2d63a
VZ
8391 LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8399
8400fi
10f2d63a
VZ
8401
8402
8403 eval "$ac_cv_use_gif"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8409 echo "$ac_t""yes" 1>&6
10f2d63a 8410 else
a0b9e27f 8411 echo "$ac_t""no" 1>&6
10f2d63a 8412 fi
a0b9e27f 8413
10f2d63a 8414
5005acfe
VZ
8415 enablestring=
8416 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
89e3b3e4 8417echo "configure:8418: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8418 no_cache=0
8419 # Check whether --enable-pcx or --disable-pcx was given.
8420if test "${enable_pcx+set}" = set; then
8421 enableval="$enable_pcx"
a0b9e27f 8422
10f2d63a
VZ
8423 if test "$enableval" = yes; then
8424 ac_cv_use_pcx='wxUSE_PCX=yes'
8425 else
8426 ac_cv_use_pcx='wxUSE_PCX=no'
8427 fi
a0b9e27f 8428
10f2d63a 8429else
a0b9e27f 8430
10f2d63a
VZ
8431 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8432 if test "x$LINE" != x ; then
8433 eval "DEFAULT_$LINE"
8434 else
8435 no_cache=1
8436 fi
8437
8438 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8439
8440fi
10f2d63a
VZ
8441
8442
8443 eval "$ac_cv_use_pcx"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8449 echo "$ac_t""yes" 1>&6
10f2d63a 8450 else
a0b9e27f 8451 echo "$ac_t""no" 1>&6
10f2d63a 8452 fi
a0b9e27f 8453
10f2d63a 8454
5005acfe
VZ
8455 enablestring=
8456 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
89e3b3e4 8457echo "configure:8458: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8458 no_cache=0
8459 # Check whether --enable-iff or --disable-iff was given.
8460if test "${enable_iff+set}" = set; then
8461 enableval="$enable_iff"
a0b9e27f 8462
4b6b4dfc
RR
8463 if test "$enableval" = yes; then
8464 ac_cv_use_iff='wxUSE_IFF=yes'
8465 else
8466 ac_cv_use_iff='wxUSE_IFF=no'
8467 fi
a0b9e27f 8468
4b6b4dfc 8469else
a0b9e27f 8470
4b6b4dfc
RR
8471 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8472 if test "x$LINE" != x ; then
8473 eval "DEFAULT_$LINE"
8474 else
8475 no_cache=1
8476 fi
8477
8478 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8479
8480fi
4b6b4dfc
RR
8481
8482
8483 eval "$ac_cv_use_iff"
8484 if test "$no_cache" != 1; then
8485 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8486 fi
8487
8488 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8489 echo "$ac_t""yes" 1>&6
4b6b4dfc 8490 else
a0b9e27f 8491 echo "$ac_t""no" 1>&6
4b6b4dfc 8492 fi
a0b9e27f 8493
4b6b4dfc 8494
5005acfe
VZ
8495 enablestring=
8496 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
89e3b3e4 8497echo "configure:8498: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8498 no_cache=0
8499 # Check whether --enable-pnm or --disable-pnm was given.
8500if test "${enable_pnm+set}" = set; then
8501 enableval="$enable_pnm"
a0b9e27f 8502
10f2d63a
VZ
8503 if test "$enableval" = yes; then
8504 ac_cv_use_pnm='wxUSE_PNM=yes'
8505 else
8506 ac_cv_use_pnm='wxUSE_PNM=no'
8507 fi
a0b9e27f 8508
10f2d63a 8509else
a0b9e27f 8510
10f2d63a
VZ
8511 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8519
8520fi
10f2d63a
VZ
8521
8522
8523 eval "$ac_cv_use_pnm"
8524 if test "$no_cache" != 1; then
8525 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8526 fi
8527
8528 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8529 echo "$ac_t""yes" 1>&6
10f2d63a 8530 else
a0b9e27f 8531 echo "$ac_t""no" 1>&6
10f2d63a 8532 fi
a0b9e27f 8533
10f2d63a 8534
5005acfe
VZ
8535 enablestring=
8536 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
89e3b3e4 8537echo "configure:8538: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8538 no_cache=0
69d27ff7
MB
8539 # Check whether --enable-xpm or --disable-xpm was given.
8540if test "${enable_xpm+set}" = set; then
8541 enableval="$enable_xpm"
a0b9e27f 8542
0046ff7c 8543 if test "$enableval" = yes; then
69d27ff7 8544 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8545 else
69d27ff7 8546 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8547 fi
a0b9e27f 8548
0046ff7c 8549else
a0b9e27f 8550
0046ff7c
VS
8551 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8552 if test "x$LINE" != x ; then
8553 eval "DEFAULT_$LINE"
8554 else
8555 no_cache=1
8556 fi
8557
69d27ff7 8558 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8559
8560fi
0046ff7c
VS
8561
8562
69d27ff7 8563 eval "$ac_cv_use_xpm"
0046ff7c 8564 if test "$no_cache" != 1; then
69d27ff7 8565 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8566 fi
8567
8568 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8569 echo "$ac_t""yes" 1>&6
0046ff7c 8570 else
a0b9e27f 8571 echo "$ac_t""no" 1>&6
0046ff7c 8572 fi
a0b9e27f 8573
0046ff7c 8574
5005acfe
VZ
8575 enablestring=
8576 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
89e3b3e4 8577echo "configure:8578: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8578 no_cache=0
c7206e64
VS
8579 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8580if test "${enable_ico_cur+set}" = set; then
8581 enableval="$enable_ico_cur"
a0b9e27f 8582
658974ae 8583 if test "$enableval" = yes; then
c7206e64 8584 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8585 else
c7206e64 8586 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8587 fi
a0b9e27f 8588
658974ae 8589else
a0b9e27f 8590
658974ae
VS
8591 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8592 if test "x$LINE" != x ; then
8593 eval "DEFAULT_$LINE"
8594 else
8595 no_cache=1
8596 fi
8597
c7206e64 8598 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8599
8600fi
658974ae
VS
8601
8602
c7206e64 8603 eval "$ac_cv_use_ico_cur"
658974ae 8604 if test "$no_cache" != 1; then
c7206e64 8605 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8606 fi
8607
8608 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8609 echo "$ac_t""yes" 1>&6
658974ae 8610 else
a0b9e27f 8611 echo "$ac_t""no" 1>&6
658974ae 8612 fi
a0b9e27f 8613
658974ae 8614
b12915c1
VZ
8615fi
8616
d558c907
VS
8617case "${host}" in
8618 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8619 PATH_IFS=';'
8620 LEX_STEM="lexyy"
d558c907
VS
8621 ;;
8622 *)
8623 PATH_IFS=':'
8624 LEX_STEM="lex.yy"
8625 ;;
8626esac
8627
8284b0c5
MB
8628
8629
10f2d63a
VZ
8630 echo "saving argument cache $wx_arg_cache_file"
8631 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8632
52127426 8633
8284b0c5 8634
a0b9e27f 8635echo $ac_n "checking for toolkit""... $ac_c" 1>&6
89e3b3e4 8636echo "configure:8637: checking for toolkit" >&5
89e6bf6d
VZ
8637
8638# In Wine, we need to default to MSW, not GTK or MOTIF
8639if test "$wxUSE_WINE" = "yes"; then
8640 DEFAULT_DEFAULT_wxUSE_GTK=0
8641 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8642 DEFAULT_DEFAULT_wxUSE_MSW=1
8643fi
10f2d63a
VZ
8644
8645if test "$wxUSE_GUI" = "yes"; then
8646
3a922bb4 8647 if test "$USE_BEOS" = 1; then
a0b9e27f 8648 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8649 fi
b12915c1 8650
3a922bb4
RL
8651 if test "$TOOLKIT_GIVEN" = 1; then
8652 for toolkit in `echo $ALL_TOOLKITS`; do
8653 var=wxUSE_$toolkit
8654 eval "value=\$${var}"
8655 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8656 done
10f2d63a 8657 else
3a922bb4
RL
8658 for toolkit in `echo $ALL_TOOLKITS`; do
8659 if test "$has_toolkit_in_cache" != 1; then
8660 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8661 else
8662 var=DEFAULT_wxUSE_$toolkit
8663 fi
8664 eval "wxUSE_$toolkit=\$${var}"
8665 done
10f2d63a 8666 fi
10f2d63a 8667
ac0c4cc3
DE
8668 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8669 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8670 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8671
d558c907 8672 case "${host}" in
6fa882bd 8673 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8674 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8675 esac
10f2d63a 8676
3a922bb4
RL
8677 case "$NUM_TOOLKITS" in
8678 1)
8679 ;;
8680 0)
a0b9e27f 8681 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8682 ;;
8683 *)
a0b9e27f 8684 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8685 esac
10f2d63a 8686
3a922bb4
RL
8687 for toolkit in `echo $ALL_TOOLKITS`; do
8688 var=wxUSE_$toolkit
8689 eval "value=\$${var}"
8690 if test "x$value" != x; then
8691 cache_var=CACHE_$toolkit
8692 eval "cache=\$${cache_var}"
8693 if test "$cache" = 1; then
8694 echo "$var=$value" >> ${wx_arg_cache_file}
8695 fi
8696 if test "$value" = 1; then
8697 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8698 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8699 fi
8700 fi
8701 done
10f2d63a 8702else
a0b9e27f 8703 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8704fi
8705
43d99b6d
VS
8706wants_win32=0
8707doesnt_want_win32=0
17234b26
MB
8708case "${host}" in
8709 *-*-cygwin*)
8710 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8711 wants_win32=1
8712 else
8713 doesnt_want_win32=1
17234b26
MB
8714 fi
8715 ;;
8716 *-*-mingw*)
43d99b6d 8717 wants_win32=1
17234b26
MB
8718 ;;
8719esac
8720
89e6bf6d
VZ
8721if test "$wxUSE_WINE" = "yes"; then
8722 wants_win32=1
8723 CC=winegcc
8724 CXX=wineg++
8725 RESCOMP=wrc
8726fi
8727
43d99b6d 8728if test "$wants_win32" = 1 ; then
17234b26
MB
8729 USE_UNIX=0
8730 USE_WIN32=1
a0b9e27f 8731 cat >> confdefs.h <<\EOF
17234b26 8732#define __WIN32__ 1
a0b9e27f 8733EOF
17234b26 8734
a0b9e27f 8735 cat >> confdefs.h <<\EOF
17234b26 8736#define __WIN95__ 1
a0b9e27f 8737EOF
17234b26 8738
a0b9e27f 8739 cat >> confdefs.h <<\EOF
17234b26 8740#define __WINDOWS__ 1
a0b9e27f 8741EOF
17234b26 8742
a0b9e27f 8743 cat >> confdefs.h <<\EOF
17234b26 8744#define __GNUWIN32__ 1
a0b9e27f 8745EOF
17234b26 8746
a0b9e27f 8747 cat >> confdefs.h <<\EOF
17234b26 8748#define STRICT 1
a0b9e27f 8749EOF
17234b26 8750
a0b9e27f 8751 cat >> confdefs.h <<\EOF
17234b26 8752#define WINVER 0x0400
a0b9e27f 8753EOF
17234b26 8754
43d99b6d
VS
8755fi
8756if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8757 USE_UNIX=1
8758 USE_WIN32=0
8759fi
8760
8761if test "$USE_UNIX" = 1 ; then
8762 wxUSE_UNIX=yes
a0b9e27f 8763 cat >> confdefs.h <<\EOF
17234b26 8764#define __UNIX__ 1
a0b9e27f 8765EOF
17234b26
MB
8766
8767fi
8768
8284b0c5 8769
a0b9e27f 8770cat > confcache <<\EOF
10f2d63a
VZ
8771# This file is a shell script that caches the results of configure
8772# tests run on this system so they can be shared between configure
a0b9e27f
MB
8773# scripts and configure runs. It is not useful on other systems.
8774# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8775#
a0b9e27f
MB
8776# By default, configure uses ./config.cache as the cache file,
8777# creating it if it does not exist already. You can give configure
8778# the --cache-file=FILE option to use a different cache file; that is
8779# what configure does when it calls configure scripts in
8780# subdirectories, so they share the cache.
8781# Giving --cache-file=/dev/null disables caching, for debugging configure.
8782# config.status only pays attention to the cache file if you give it the
8783# --recheck option to rerun configure.
10f2d63a 8784#
a0b9e27f 8785EOF
10f2d63a
VZ
8786# The following way of writing the cache mishandles newlines in values,
8787# but we know of no workaround that is simple, portable, and efficient.
8788# So, don't put newlines in cache variables' values.
8789# Ultrix sh set writes to stderr and can't be redirected directly,
8790# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8791(set) 2>&1 |
8792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8793 *ac_space=\ *)
8794 # `set' does not quote correctly, so add quotes (double-quote substitution
8795 # turns \\\\ into \\, and sed turns \\ into \).
8796 sed -n \
8797 -e "s/'/'\\\\''/g" \
8798 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8799 ;;
8800 *)
8801 # `set' quotes correctly as required by POSIX, so do not add quotes.
8802 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8803 ;;
8804 esac >> confcache
8805if cmp -s $cache_file confcache; then
8806 :
8807else
10f2d63a 8808 if test -w $cache_file; then
a0b9e27f
MB
8809 echo "updating cache $cache_file"
8810 cat confcache > $cache_file
10f2d63a
VZ
8811 else
8812 echo "not updating unwritable cache $cache_file"
8813 fi
8814fi
8815rm -f confcache
8816
a0b9e27f 8817
e59890c3 8818if test "$build" != "$host" ; then
9d353d4a 8819 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8820 CC=$host_alias-gcc
8821 CXX=$host_alias-c++
8822 AR=$host_alias-ar
8823 RANLIB=$host_alias-ranlib
8824 DLLTOOL=$host_alias-dlltool
8825 RESCOMP=$host_alias-windres
8826 LD=$host_alias-ld
8827 NM=$host_alias-nm
8828 STRIP=$host_alias-strip
8829 else
a0b9e27f 8830 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8831 fi
10f2d63a
VZ
8832fi
8833
ec603395 8834CFLAGS=${CFLAGS:=}
a0b9e27f 8835# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8836set dummy gcc; ac_word=$2
a0b9e27f 8837echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 8838echo "configure:8839: checking for $ac_word" >&5
a0b9e27f
MB
8839if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8841else
8842 if test -n "$CC"; then
8843 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8844else
a0b9e27f
MB
8845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8846 ac_dummy="$PATH"
8847 for ac_dir in $ac_dummy; do
8848 test -z "$ac_dir" && ac_dir=.
8849 if test -f $ac_dir/$ac_word; then
8850 ac_cv_prog_CC="gcc"
8851 break
8852 fi
8853 done
8854 IFS="$ac_save_ifs"
10f2d63a 8855fi
6232543b 8856fi
a0b9e27f 8857CC="$ac_cv_prog_CC"
6232543b 8858if test -n "$CC"; then
a0b9e27f 8859 echo "$ac_t""$CC" 1>&6
247f5006 8860else
a0b9e27f 8861 echo "$ac_t""no" 1>&6
247f5006
VZ
8862fi
8863
5c6fa7d2
RR
8864if test -z "$CC"; then
8865 # Extract the first word of "cc", so it can be a program name with args.
8866set dummy cc; ac_word=$2
a0b9e27f 8867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 8868echo "configure:8869: checking for $ac_word" >&5
a0b9e27f
MB
8869if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8871else
8872 if test -n "$CC"; then
8873 ac_cv_prog_CC="$CC" # Let the user override the test.
8874else
a0b9e27f 8875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8876 ac_prog_rejected=no
a0b9e27f
MB
8877 ac_dummy="$PATH"
8878 for ac_dir in $ac_dummy; do
8879 test -z "$ac_dir" && ac_dir=.
8880 if test -f $ac_dir/$ac_word; then
8881 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8882 ac_prog_rejected=yes
8883 continue
8884 fi
8885 ac_cv_prog_CC="cc"
8886 break
8887 fi
8888 done
8889 IFS="$ac_save_ifs"
328a083c
RR
8890if test $ac_prog_rejected = yes; then
8891 # We found a bogon in the path, so make sure we never use it.
8892 set dummy $ac_cv_prog_CC
8893 shift
a0b9e27f 8894 if test $# -gt 0; then
328a083c 8895 # We chose a different compiler from the bogus one.
1e487827
VS
8896 # However, it has the same basename, so the bogon will be chosen
8897 # first if we set CC to just the basename; use the full file name.
8898 shift
a0b9e27f 8899 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8900 shift
8901 ac_cv_prog_CC="$@"
703e0a69 8902 fi
1e487827
VS
8903fi
8904fi
8905fi
a0b9e27f 8906CC="$ac_cv_prog_CC"
1e487827 8907if test -n "$CC"; then
a0b9e27f 8908 echo "$ac_t""$CC" 1>&6
703e0a69 8909else
a0b9e27f 8910 echo "$ac_t""no" 1>&6
703e0a69 8911fi
1e487827 8912
a0b9e27f
MB
8913 if test -z "$CC"; then
8914 case "`uname -s`" in
8915 *win32* | *WIN32*)
8916 # Extract the first word of "cl", so it can be a program name with args.
8917set dummy cl; ac_word=$2
8918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 8919echo "configure:8920: checking for $ac_word" >&5
a0b9e27f
MB
8920if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8922else
8923 if test -n "$CC"; then
8924 ac_cv_prog_CC="$CC" # Let the user override the test.
8925else
a0b9e27f
MB
8926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8927 ac_dummy="$PATH"
8928 for ac_dir in $ac_dummy; do
8929 test -z "$ac_dir" && ac_dir=.
8930 if test -f $ac_dir/$ac_word; then
8931 ac_cv_prog_CC="cl"
8932 break
8933 fi
8934 done
8935 IFS="$ac_save_ifs"
f09359cf
VS
8936fi
8937fi
a0b9e27f 8938CC="$ac_cv_prog_CC"
f09359cf 8939if test -n "$CC"; then
a0b9e27f 8940 echo "$ac_t""$CC" 1>&6
f09359cf 8941else
a0b9e27f 8942 echo "$ac_t""no" 1>&6
247f5006 8943fi
a0b9e27f
MB
8944 ;;
8945 esac
8284b0c5 8946 fi
a0b9e27f 8947 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 8948fi
1e487827 8949
a0b9e27f 8950echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
89e3b3e4 8951echo "configure:8952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 8952
a0b9e27f
MB
8953ac_ext=c
8954# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8955ac_cpp='$CPP $CPPFLAGS'
8956ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8957ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8958cross_compiling=$ac_cv_prog_cc_cross
f09359cf 8959
a0b9e27f 8960cat > conftest.$ac_ext << EOF
247f5006 8961
89e3b3e4 8962#line 8963 "configure"
a0b9e27f 8963#include "confdefs.h"
247f5006 8964
a0b9e27f
MB
8965main(){return(0);}
8966EOF
89e3b3e4 8967if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
8968 ac_cv_prog_cc_works=yes
8969 # If we can't run a trivial program, we are probably using a cross compiler.
8970 if (./conftest; exit) 2>/dev/null; then
8971 ac_cv_prog_cc_cross=no
698dcdb6 8972 else
a0b9e27f 8973 ac_cv_prog_cc_cross=yes
698dcdb6 8974 fi
7b4a847f 8975else
a0b9e27f
MB
8976 echo "configure: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 ac_cv_prog_cc_works=no
52127426 8979fi
a0b9e27f
MB
8980rm -fr conftest*
8981ac_ext=c
8982# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8983ac_cpp='$CPP $CPPFLAGS'
8984ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8985ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8986cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8987
a0b9e27f
MB
8988echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8989if test $ac_cv_prog_cc_works = no; then
8990 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8991fi
8992echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
89e3b3e4 8993echo "configure:8994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
8994echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8995cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8996
a0b9e27f 8997echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
89e3b3e4 8998echo "configure:8999: checking whether we are using GNU C" >&5
a0b9e27f
MB
8999if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9001else
a0b9e27f
MB
9002 cat > conftest.c <<EOF
9003#ifdef __GNUC__
9004 yes;
8284b0c5 9005#endif
a0b9e27f 9006EOF
89e3b3e4 9007if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9008 ac_cv_prog_gcc=yes
5c6fa7d2 9009else
a0b9e27f 9010 ac_cv_prog_gcc=no
8284b0c5
MB
9011fi
9012fi
1e487827 9013
a0b9e27f 9014echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9015
a0b9e27f
MB
9016if test $ac_cv_prog_gcc = yes; then
9017 GCC=yes
9018else
9019 GCC=
9020fi
247f5006 9021
a0b9e27f
MB
9022ac_test_CFLAGS="${CFLAGS+set}"
9023ac_save_CFLAGS="$CFLAGS"
9024CFLAGS=
9025echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
89e3b3e4 9026echo "configure:9027: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9027if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9029else
9030 echo 'void f(){}' > conftest.c
9031if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9032 ac_cv_prog_cc_g=yes
9033else
a0b9e27f 9034 ac_cv_prog_cc_g=no
10f2d63a 9035fi
a0b9e27f
MB
9036rm -f conftest*
9037
10f2d63a 9038fi
a0b9e27f
MB
9039
9040echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9041if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9042 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9043elif test $ac_cv_prog_cc_g = yes; then
9044 if test "$GCC" = yes; then
10f2d63a
VZ
9045 CFLAGS="-g -O2"
9046 else
f09359cf 9047 CFLAGS="-g"
10f2d63a 9048 fi
5c0a20c3 9049else
f09359cf
VS
9050 if test "$GCC" = yes; then
9051 CFLAGS="-O2"
9052 else
9053 CFLAGS=
9054 fi
10f2d63a
VZ
9055fi
9056
9057
a0b9e27f 9058echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
89e3b3e4 9059echo "configure:9060: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9060# On Suns, sometimes $CPP names a directory.
9061if test -n "$CPP" && test -d "$CPP"; then
9062 CPP=
9063fi
9064if test -z "$CPP"; then
a0b9e27f
MB
9065if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067else
9068 # This must be in double quotes, not single quotes, because CPP may get
9069 # substituted into the Makefile and "${CC-cc}" will confuse make.
9070 CPP="${CC-cc} -E"
10f2d63a 9071 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9072 # not just through cpp.
9073 cat > conftest.$ac_ext <<EOF
89e3b3e4 9074#line 9075 "configure"
10f2d63a
VZ
9075#include "confdefs.h"
9076#include <assert.h>
a0b9e27f
MB
9077Syntax Error
9078EOF
9079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9080{ (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082if test -z "$ac_err"; then
10f2d63a
VZ
9083 :
9084else
a0b9e27f
MB
9085 echo "$ac_err" >&5
9086 echo "configure: failed program was:" >&5
10f2d63a 9087 cat conftest.$ac_ext >&5
a0b9e27f
MB
9088 rm -rf conftest*
9089 CPP="${CC-cc} -E -traditional-cpp"
9090 cat > conftest.$ac_ext <<EOF
89e3b3e4 9091#line 9092 "configure"
f09359cf 9092#include "confdefs.h"
a0b9e27f
MB
9093#include <assert.h>
9094Syntax Error
9095EOF
9096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9097{ (eval echo configure:9098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9099if test -z "$ac_err"; then
9100 :
247f5006 9101else
a0b9e27f
MB
9102 echo "$ac_err" >&5
9103 echo "configure: failed program was:" >&5
f09359cf 9104 cat conftest.$ac_ext >&5
a0b9e27f
MB
9105 rm -rf conftest*
9106 CPP="${CC-cc} -nologo -E"
9107 cat > conftest.$ac_ext <<EOF
89e3b3e4 9108#line 9109 "configure"
10f2d63a
VZ
9109#include "confdefs.h"
9110#include <assert.h>
a0b9e27f
MB
9111Syntax Error
9112EOF
9113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9114{ (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9115ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116if test -z "$ac_err"; then
10f2d63a
VZ
9117 :
9118else
a0b9e27f
MB
9119 echo "$ac_err" >&5
9120 echo "configure: failed program was:" >&5
10f2d63a 9121 cat conftest.$ac_ext >&5
a0b9e27f
MB
9122 rm -rf conftest*
9123 CPP=/lib/cpp
579d8138 9124fi
a0b9e27f 9125rm -f conftest*
52127426 9126fi
a0b9e27f 9127rm -f conftest*
8284b0c5 9128fi
a0b9e27f
MB
9129rm -f conftest*
9130 ac_cv_prog_CPP="$CPP"
9131fi
9132 CPP="$ac_cv_prog_CPP"
10f2d63a 9133else
a0b9e27f 9134 ac_cv_prog_CPP="$CPP"
10f2d63a 9135fi
a0b9e27f 9136echo "$ac_t""$CPP" 1>&6
10f2d63a 9137
a0b9e27f
MB
9138if test $ac_cv_prog_gcc = yes; then
9139 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
89e3b3e4 9140echo "configure:9141: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9141if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9143else
9144 ac_pattern="Autoconf.*'x'"
a0b9e27f 9145 cat > conftest.$ac_ext <<EOF
89e3b3e4 9146#line 9147 "configure"
10f2d63a
VZ
9147#include "confdefs.h"
9148#include <sgtty.h>
9149Autoconf TIOCGETP
a0b9e27f 9150EOF
10f2d63a
VZ
9151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9152 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9153 rm -rf conftest*
10f2d63a
VZ
9154 ac_cv_prog_gcc_traditional=yes
9155else
a0b9e27f 9156 rm -rf conftest*
10f2d63a
VZ
9157 ac_cv_prog_gcc_traditional=no
9158fi
9159rm -f conftest*
9160
8284b0c5 9161
10f2d63a 9162 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9163 cat > conftest.$ac_ext <<EOF
89e3b3e4 9164#line 9165 "configure"
10f2d63a
VZ
9165#include "confdefs.h"
9166#include <termio.h>
9167Autoconf TCGETA
a0b9e27f 9168EOF
10f2d63a
VZ
9169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9170 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9171 rm -rf conftest*
10f2d63a
VZ
9172 ac_cv_prog_gcc_traditional=yes
9173fi
9174rm -f conftest*
9175
9176 fi
9177fi
a0b9e27f
MB
9178
9179echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9180 if test $ac_cv_prog_gcc_traditional = yes; then
9181 CC="$CC -traditional"
9182 fi
9183fi
9184
8284b0c5
MB
9185
9186
a0b9e27f
MB
9187ac_ext=C
9188# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9189ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
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
8284b0c5 9193
698dcdb6 9194
ec603395 9195CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9196for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9197do
9198# Extract the first word of "$ac_prog", so it can be a program name with args.
9199set dummy $ac_prog; ac_word=$2
9200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 9201echo "configure:9202: checking for $ac_word" >&5
a0b9e27f
MB
9202if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9204else
9205 if test -n "$CXX"; then
9206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9207else
a0b9e27f
MB
9208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9209 ac_dummy="$PATH"
9210 for ac_dir in $ac_dummy; do
9211 test -z "$ac_dir" && ac_dir=.
9212 if test -f $ac_dir/$ac_word; then
9213 ac_cv_prog_CXX="$ac_prog"
9214 break
9215 fi
9216 done
9217 IFS="$ac_save_ifs"
10f2d63a
VZ
9218fi
9219fi
a0b9e27f 9220CXX="$ac_cv_prog_CXX"
10f2d63a 9221if test -n "$CXX"; then
a0b9e27f 9222 echo "$ac_t""$CXX" 1>&6
10f2d63a 9223else
a0b9e27f 9224 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9225fi
9226
a0b9e27f 9227test -n "$CXX" && break
10f2d63a 9228done
a0b9e27f 9229test -n "$CXX" || CXX="gcc"
f09359cf 9230
a0b9e27f
MB
9231
9232echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
89e3b3e4 9233echo "configure:9234: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9234
9235ac_ext=C
9236# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9237ac_cpp='$CXXCPP $CPPFLAGS'
9238ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9239ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9240cross_compiling=$ac_cv_prog_cxx_cross
9241
9242cat > conftest.$ac_ext << EOF
9243
89e3b3e4 9244#line 9245 "configure"
a0b9e27f
MB
9245#include "confdefs.h"
9246
9247int main(){return(0);}
9248EOF
89e3b3e4 9249if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9250 ac_cv_prog_cxx_works=yes
9251 # If we can't run a trivial program, we are probably using a cross compiler.
9252 if (./conftest; exit) 2>/dev/null; then
9253 ac_cv_prog_cxx_cross=no
9254 else
9255 ac_cv_prog_cxx_cross=yes
9256 fi
8284b0c5 9257else
a0b9e27f
MB
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_cv_prog_cxx_works=no
8284b0c5 9261fi
a0b9e27f
MB
9262rm -fr conftest*
9263ac_ext=C
9264# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265ac_cpp='$CXXCPP $CPPFLAGS'
9266ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9269
a0b9e27f
MB
9270echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9271if test $ac_cv_prog_cxx_works = no; then
9272 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9273fi
9274echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
89e3b3e4 9275echo "configure:9276: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9276echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9277cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9278
a0b9e27f 9279echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
89e3b3e4 9280echo "configure:9281: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9281if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283else
9284 cat > conftest.C <<EOF
9285#ifdef __GNUC__
9286 yes;
10f2d63a 9287#endif
a0b9e27f 9288EOF
89e3b3e4 9289if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9290 ac_cv_prog_gxx=yes
9291else
9292 ac_cv_prog_gxx=no
9293fi
9294fi
10f2d63a 9295
a0b9e27f 9296echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9297
a0b9e27f
MB
9298if test $ac_cv_prog_gxx = yes; then
9299 GXX=yes
9300else
9301 GXX=
9302fi
f09359cf 9303
a0b9e27f
MB
9304ac_test_CXXFLAGS="${CXXFLAGS+set}"
9305ac_save_CXXFLAGS="$CXXFLAGS"
9306CXXFLAGS=
9307echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
89e3b3e4 9308echo "configure:9309: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9309if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9311else
9312 echo 'void f(){}' > conftest.cc
9313if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9314 ac_cv_prog_cxx_g=yes
9315else
a0b9e27f 9316 ac_cv_prog_cxx_g=no
10f2d63a 9317fi
a0b9e27f
MB
9318rm -f conftest*
9319
10f2d63a 9320fi
a0b9e27f
MB
9321
9322echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9323if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9324 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9325elif test $ac_cv_prog_cxx_g = yes; then
9326 if test "$GXX" = yes; then
10f2d63a
VZ
9327 CXXFLAGS="-g -O2"
9328 else
f09359cf 9329 CXXFLAGS="-g"
10f2d63a 9330 fi
5c0a20c3 9331else
f09359cf
VS
9332 if test "$GXX" = yes; then
9333 CXXFLAGS="-O2"
9334 else
9335 CXXFLAGS=
9336 fi
10f2d63a
VZ
9337fi
9338
9339
10f2d63a 9340ac_ext=c
a0b9e27f 9341# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9342ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9343ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9344ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9345cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9346
9347
a0b9e27f
MB
9348# Extract the first word of "ranlib", so it can be a program name with args.
9349set dummy ranlib; ac_word=$2
9350echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 9351echo "configure:9352: checking for $ac_word" >&5
a0b9e27f
MB
9352if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9354else
9355 if test -n "$RANLIB"; then
9356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9357else
a0b9e27f
MB
9358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9359 ac_dummy="$PATH"
9360 for ac_dir in $ac_dummy; do
9361 test -z "$ac_dir" && ac_dir=.
9362 if test -f $ac_dir/$ac_word; then
9363 ac_cv_prog_RANLIB="ranlib"
9364 break
9365 fi
9366 done
9367 IFS="$ac_save_ifs"
9368 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9369fi
9370fi
a0b9e27f 9371RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9372if test -n "$RANLIB"; then
a0b9e27f 9373 echo "$ac_t""$RANLIB" 1>&6
328a083c 9374else
a0b9e27f 9375 echo "$ac_t""no" 1>&6
328a083c
RR
9376fi
9377
10f2d63a
VZ
9378
9379# Extract the first word of "ar", so it can be a program name with args.
9380set dummy ar; ac_word=$2
a0b9e27f 9381echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 9382echo "configure:9383: checking for $ac_word" >&5
a0b9e27f
MB
9383if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9385else
9386 if test -n "$AR"; then
9387 ac_cv_prog_AR="$AR" # Let the user override the test.
9388else
a0b9e27f
MB
9389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9390 ac_dummy="$PATH"
9391 for ac_dir in $ac_dummy; do
9392 test -z "$ac_dir" && ac_dir=.
9393 if test -f $ac_dir/$ac_word; then
9394 ac_cv_prog_AR="ar"
9395 break
9396 fi
9397 done
9398 IFS="$ac_save_ifs"
10f2d63a
VZ
9399 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9400fi
9401fi
a0b9e27f 9402AR="$ac_cv_prog_AR"
10f2d63a 9403if test -n "$AR"; then
a0b9e27f 9404 echo "$ac_t""$AR" 1>&6
10f2d63a 9405else
a0b9e27f 9406 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9407fi
9408
8284b0c5 9409
6054113a 9410# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9411# so one script is as good as another. But avoid the broken or
9412# incompatible versions:
9413# SysV /etc/install, /usr/sbin/install
9414# SunOS /usr/etc/install
9415# IRIX /sbin/install
9416# AIX /bin/install
f09359cf 9417# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9418# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9419# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9420# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9421echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
89e3b3e4 9422echo "configure:9423: checking for a BSD compatible install" >&5
10f2d63a 9423if test -z "$INSTALL"; then
a0b9e27f
MB
9424if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9425 echo $ac_n "(cached) $ac_c" 1>&6
9426else
9427 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9428 for ac_dir in $PATH; do
9429 # Account for people who put trailing slashes in PATH elements.
9430 case "$ac_dir/" in
9431 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9432 *)
9433 # OSF1 and SCO ODT 3.0 have their own names for install.
9434 # Don't use installbsd from OSF since it installs stuff as root
9435 # by default.
9436 for ac_prog in ginstall scoinst install; do
9437 if test -f $ac_dir/$ac_prog; then
9438 if test $ac_prog = install &&
9439 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9440 # AIX install. It has an incompatible calling convention.
9441 :
9442 else
9443 ac_cv_path_install="$ac_dir/$ac_prog -c"
9444 break 2
9445 fi
9446 fi
10f2d63a 9447 done
a0b9e27f
MB
9448 ;;
9449 esac
9450 done
9451 IFS="$ac_save_IFS"
10f2d63a
VZ
9452
9453fi
9454 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9455 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9456 else
9457 # As a last resort, use the slow shell script. We don't cache a
9458 # path for INSTALL within a source directory, because that will
9459 # break other packages using the cache if that directory is
9460 # removed, or if the path is relative.
a0b9e27f 9461 INSTALL="$ac_install_sh"
10f2d63a
VZ
9462 fi
9463fi
a0b9e27f 9464echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9465
9466# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9467# It thinks the first close brace ends the variable substitution.
9468test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9469
a0b9e27f 9470test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9471
10f2d63a
VZ
9472test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9473
8284b0c5 9474
1d1b75ac
VZ
9475case ${INSTALL} in
9476 /* ) # Absolute
9477 ;;
4f5a7f74
VZ
9478 ?:* ) # Drive letter, considered as absolute.
9479 ;;
3bd8fb5f 9480 *)
1d1b75ac
VZ
9481 INSTALL=`pwd`/${INSTALL} ;;
9482esac
9483
4f5a7f74
VZ
9484case ${host} in
9485 *-hp-hpux* )
9486 INSTALL_DIR="mkdir"
9487 ;;
9488
9489 *) INSTALL_DIR="$INSTALL -d"
9490 ;;
9491esac
9492
8284b0c5 9493
6054113a
GD
9494case "${host}" in
9495
b5853384 9496 powerpc-*-darwin* )
eb99ae0b
GD
9497 INSTALL_PROGRAM="cp -fp"
9498 INSTALL_DATA="cp -fp"
6054113a
GD
9499 ;;
9500 *)
9501 ;;
d6853540 9502esac
698dcdb6 9503
10f2d63a
VZ
9504# Extract the first word of "strip", so it can be a program name with args.
9505set dummy strip; ac_word=$2
a0b9e27f 9506echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 9507echo "configure:9508: checking for $ac_word" >&5
a0b9e27f
MB
9508if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9510else
9511 if test -n "$STRIP"; then
9512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9513else
a0b9e27f
MB
9514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9515 ac_dummy="$PATH"
9516 for ac_dir in $ac_dummy; do
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f $ac_dir/$ac_word; then
9519 ac_cv_prog_STRIP="strip"
9520 break
9521 fi
9522 done
9523 IFS="$ac_save_ifs"
10f2d63a
VZ
9524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9525fi
9526fi
a0b9e27f 9527STRIP="$ac_cv_prog_STRIP"
10f2d63a 9528if test -n "$STRIP"; then
a0b9e27f 9529 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9530else
a0b9e27f 9531 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9532fi
9533
5c6fa7d2 9534
a0b9e27f 9535echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
89e3b3e4 9536echo "configure:9537: checking if make is GNU make" >&5
a0b9e27f
MB
9537if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9539else
a0b9e27f 9540
414eab6d 9541 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9542 egrep -s GNU > /dev/null); then
414eab6d
VZ
9543 wx_cv_prog_makeisgnu="yes"
9544 else
9545 wx_cv_prog_makeisgnu="no"
9546 fi
9547
9548fi
a0b9e27f
MB
9549
9550echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9551
9552if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9553 IF_GNU_MAKE=""
9554else
9555 IF_GNU_MAKE="#"
9556fi
9557
8284b0c5
MB
9558
9559
414eab6d 9560if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9561echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
89e3b3e4 9562echo "configure:9563: checking if make supports VPATH" >&5
a0b9e27f
MB
9563if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9564 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9565else
a0b9e27f 9566
10f2d63a
VZ
9567cat - << EOF > confMake
9568check : file
9569 cp \$? \$@
9570 cp \$? final_file
9571EOF
9572
9573if test ! -d sub ; then
9574 mkdir sub
9575fi
9576echo dummy > sub/file
f6bcfd97 9577${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9578RESULT=$?
9579rm -f sub/file check final_file confMake
9580rmdir sub
9581if test "$RESULT" = 0; then
04e7a216 9582 wx_cv_prog_makevpath="yes"
10f2d63a 9583else
04e7a216
VZ
9584 wx_cv_prog_makevpath="no"
9585fi
9586
9587fi
a0b9e27f
MB
9588
9589echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9590
9591if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9592{ echo "configure: error:
5c6fa7d2
RR
9593You need a make-utility that is able to use the variable
9594VPATH correctly.
9595If your version of make does not support VPATH correctly,
9596please install GNU-make (possibly as gmake), and start
9597configure with the following command:
9598export MAKE=gmake; ./configure for sh-type shells
9599setenv MAKE gmake; ./configure for csh-type shells
9600Also please do remember to use gmake in this case every time
9601you are trying to compile.
a0b9e27f
MB
9602" 1>&2; exit 1; }
9603fi fi
10f2d63a
VZ
9604for ac_prog in 'bison -y' byacc
9605do
a0b9e27f 9606# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9607set dummy $ac_prog; ac_word=$2
a0b9e27f 9608echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 9609echo "configure:9610: checking for $ac_word" >&5
a0b9e27f
MB
9610if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9612else
9613 if test -n "$YACC"; then
9614 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9615else
a0b9e27f
MB
9616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9617 ac_dummy="$PATH"
9618 for ac_dir in $ac_dummy; do
9619 test -z "$ac_dir" && ac_dir=.
9620 if test -f $ac_dir/$ac_word; then
9621 ac_cv_prog_YACC="$ac_prog"
9622 break
9623 fi
9624 done
9625 IFS="$ac_save_ifs"
10f2d63a
VZ
9626fi
9627fi
a0b9e27f 9628YACC="$ac_cv_prog_YACC"
10f2d63a 9629if test -n "$YACC"; then
a0b9e27f 9630 echo "$ac_t""$YACC" 1>&6
10f2d63a 9631else
a0b9e27f 9632 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9633fi
9634
a0b9e27f 9635test -n "$YACC" && break
10f2d63a
VZ
9636done
9637test -n "$YACC" || YACC="yacc"
9638
8284b0c5 9639
a0b9e27f
MB
9640# Extract the first word of "flex", so it can be a program name with args.
9641set dummy flex; ac_word=$2
9642echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 9643echo "configure:9644: checking for $ac_word" >&5
a0b9e27f
MB
9644if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9646else
9647 if test -n "$LEX"; then
9648 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9649else
a0b9e27f
MB
9650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9651 ac_dummy="$PATH"
9652 for ac_dir in $ac_dummy; do
9653 test -z "$ac_dir" && ac_dir=.
9654 if test -f $ac_dir/$ac_word; then
9655 ac_cv_prog_LEX="flex"
9656 break
9657 fi
9658 done
9659 IFS="$ac_save_ifs"
9660 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9661fi
9662fi
a0b9e27f 9663LEX="$ac_cv_prog_LEX"
10f2d63a 9664if test -n "$LEX"; then
a0b9e27f 9665 echo "$ac_t""$LEX" 1>&6
10f2d63a 9666else
a0b9e27f 9667 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9668fi
9669
9670if test -z "$LEXLIB"
9671then
a0b9e27f
MB
9672 case "$LEX" in
9673 flex*) ac_lib=fl ;;
9674 *) ac_lib=l ;;
9675 esac
9676 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
89e3b3e4 9677echo "configure:9678: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9678ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9681else
9682 ac_save_LIBS="$LIBS"
9683LIBS="-l$ac_lib $LIBS"
9684cat > conftest.$ac_ext <<EOF
89e3b3e4 9685#line 9686 "configure"
247f5006 9686#include "confdefs.h"
247f5006 9687/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9688/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9689 builtin and then its argument prototype would still apply. */
9690char yywrap();
10f2d63a 9691
a0b9e27f
MB
9692int main() {
9693yywrap()
9694; return 0; }
9695EOF
89e3b3e4 9696if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9697 rm -rf conftest*
9698 eval "ac_cv_lib_$ac_lib_var=yes"
9699else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9704fi
a0b9e27f
MB
9705rm -f conftest*
9706LIBS="$ac_save_LIBS"
8284b0c5 9707
10f2d63a 9708fi
a0b9e27f
MB
9709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 LEXLIB="-l$ac_lib"
8284b0c5 9712else
a0b9e27f 9713 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9714fi
9715
a0b9e27f 9716fi
10f2d63a
VZ
9717
9718
a0b9e27f 9719echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
89e3b3e4 9720echo "configure:9721: checking whether ln -s works" >&5
a0b9e27f
MB
9721if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9723else
a0b9e27f
MB
9724 rm -f conftestdata
9725if ln -s X conftestdata 2>/dev/null
9726then
9727 rm -f conftestdata
9728 ac_cv_prog_LN_S="ln -s"
10f2d63a 9729else
a0b9e27f 9730 ac_cv_prog_LN_S=ln
10f2d63a 9731fi
a0b9e27f
MB
9732fi
9733LN_S="$ac_cv_prog_LN_S"
9734if test "$ac_cv_prog_LN_S" = "ln -s"; then
9735 echo "$ac_t""yes" 1>&6
10f2d63a 9736else
a0b9e27f 9737 echo "$ac_t""no" 1>&6
5c6fa7d2 9738fi
5c6fa7d2 9739
247f5006 9740
2b5f62a0
VZ
9741case "${host}" in
9742 *-pc-os2_emx | *-pc-os2-emx )
9743 LIBS="$LIBS -lstdcpp"
9744 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9745 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
89e3b3e4 9746echo "configure:9747: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9747ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9748if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750else
9751 ac_save_LIBS="$LIBS"
9752LIBS="-lcExt $LIBS"
9753cat > conftest.$ac_ext <<EOF
89e3b3e4 9754#line 9755 "configure"
2b5f62a0
VZ
9755#include "confdefs.h"
9756/* Override any gcc2 internal prototype to avoid an error. */
9757/* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9759char drand48();
9760
9761int main() {
9762drand48()
9763; return 0; }
9764EOF
89e3b3e4 9765if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9766 rm -rf conftest*
9767 eval "ac_cv_lib_$ac_lib_var=yes"
9768else
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 rm -rf conftest*
9772 eval "ac_cv_lib_$ac_lib_var=no"
9773fi
9774rm -f conftest*
9775LIBS="$ac_save_LIBS"
9776
9777fi
9778if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9779 echo "$ac_t""yes" 1>&6
9780 LIBS="$LIBS -lcExt"
9781else
9782 echo "$ac_t""no" 1>&6
9783fi
9784
9785 else
9786 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9787 fi
9788 ;;
9789esac
9790
a0b9e27f 9791
ac0c4cc3 9792if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9793 for ac_hdr in strings.h
9794do
9795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 9797echo "configure:9798: checking for $ac_hdr" >&5
a0b9e27f
MB
9798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9799 echo $ac_n "(cached) $ac_c" 1>&6
9800else
9801 cat > conftest.$ac_ext <<EOF
89e3b3e4 9802#line 9803 "configure"
a0b9e27f
MB
9803#include "confdefs.h"
9804#include <$ac_hdr>
9805EOF
9806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9807{ (eval echo configure:9808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9809if test -z "$ac_err"; then
9810 rm -rf conftest*
9811 eval "ac_cv_header_$ac_safe=yes"
9812else
9813 echo "$ac_err" >&5
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9816 rm -rf conftest*
9817 eval "ac_cv_header_$ac_safe=no"
21d1c967 9818fi
247f5006 9819rm -f conftest*
19bc6aad 9820fi
a0b9e27f
MB
9821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9822 echo "$ac_t""yes" 1>&6
9823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9824 cat >> confdefs.h <<EOF
9825#define $ac_tr_hdr 1
9826EOF
9827
247f5006 9828else
a0b9e27f 9829 echo "$ac_t""no" 1>&6
18dbb1f6 9830fi
a0b9e27f 9831done
247f5006 9832
90dd450c 9833fi
90dd450c 9834
a0b9e27f
MB
9835for ac_hdr in stdlib.h
9836do
9837ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9838echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 9839echo "configure:9840: checking for $ac_hdr" >&5
a0b9e27f
MB
9840if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842else
9843 cat > conftest.$ac_ext <<EOF
89e3b3e4 9844#line 9845 "configure"
90dd450c 9845#include "confdefs.h"
a0b9e27f
MB
9846#include <$ac_hdr>
9847EOF
9848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9849{ (eval echo configure:9850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9851if test -z "$ac_err"; then
9852 rm -rf conftest*
9853 eval "ac_cv_header_$ac_safe=yes"
9854else
9855 echo "$ac_err" >&5
9856 echo "configure: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 rm -rf conftest*
9859 eval "ac_cv_header_$ac_safe=no"
9860fi
9861rm -f conftest*
9862fi
9863if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9864 echo "$ac_t""yes" 1>&6
9865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9866 cat >> confdefs.h <<EOF
9867#define $ac_tr_hdr 1
9868EOF
9869
8284b0c5 9870else
a0b9e27f 9871 echo "$ac_t""no" 1>&6
21d1c967 9872fi
a0b9e27f
MB
9873done
9874
9875for ac_hdr in malloc.h
9876do
9877ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9878echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 9879echo "configure:9880: checking for $ac_hdr" >&5
a0b9e27f
MB
9880if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9882else
9883 cat > conftest.$ac_ext <<EOF
89e3b3e4 9884#line 9885 "configure"
a0b9e27f
MB
9885#include "confdefs.h"
9886#include <$ac_hdr>
9887EOF
9888ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9889{ (eval echo configure:9890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9890ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9891if test -z "$ac_err"; then
9892 rm -rf conftest*
9893 eval "ac_cv_header_$ac_safe=yes"
9894else
9895 echo "$ac_err" >&5
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 rm -rf conftest*
9899 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9900fi
a0b9e27f 9901rm -f conftest*
90dd450c 9902fi
a0b9e27f
MB
9903if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9906 cat >> confdefs.h <<EOF
9907#define $ac_tr_hdr 1
9908EOF
9909
9910else
9911 echo "$ac_t""no" 1>&6
21d1c967 9912fi
a0b9e27f 9913done
247f5006 9914
a0b9e27f
MB
9915for ac_hdr in unistd.h
9916do
9917ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9918echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 9919echo "configure:9920: checking for $ac_hdr" >&5
a0b9e27f
MB
9920if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922else
9923 cat > conftest.$ac_ext <<EOF
89e3b3e4 9924#line 9925 "configure"
a0b9e27f
MB
9925#include "confdefs.h"
9926#include <$ac_hdr>
9927EOF
9928ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9929{ (eval echo configure:9930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9930ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9931if test -z "$ac_err"; then
9932 rm -rf conftest*
9933 eval "ac_cv_header_$ac_safe=yes"
9934else
9935 echo "$ac_err" >&5
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 rm -rf conftest*
9939 eval "ac_cv_header_$ac_safe=no"
247f5006 9940fi
a0b9e27f
MB
9941rm -f conftest*
9942fi
9943if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9946 cat >> confdefs.h <<EOF
9947#define $ac_tr_hdr 1
9948EOF
9949
9950else
9951 echo "$ac_t""no" 1>&6
9952fi
9953done
90dd450c 9954
a0b9e27f 9955for ac_hdr in wchar.h
21d1c967 9956do
a0b9e27f
MB
9957ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9958echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 9959echo "configure:9960: checking for $ac_hdr" >&5
a0b9e27f
MB
9960if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9962else
9963 cat > conftest.$ac_ext <<EOF
89e3b3e4 9964#line 9965 "configure"
4f14bcd8 9965#include "confdefs.h"
a0b9e27f
MB
9966#include <$ac_hdr>
9967EOF
9968ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 9969{ (eval echo configure:9970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9970ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9971if test -z "$ac_err"; then
9972 rm -rf conftest*
9973 eval "ac_cv_header_$ac_safe=yes"
9974else
9975 echo "$ac_err" >&5
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 eval "ac_cv_header_$ac_safe=no"
9980fi
9981rm -f conftest*
9982fi
9983if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9984 echo "$ac_t""yes" 1>&6
9985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9986 cat >> confdefs.h <<EOF
9987#define $ac_tr_hdr 1
9988EOF
9989
9990else
9991 echo "$ac_t""no" 1>&6
21d1c967
GD
9992fi
9993done
4f14bcd8 9994
5c6fa7d2 9995
a0b9e27f
MB
9996if test "$ac_cv_header_wchar_h" != "yes"; then
9997 for ac_hdr in wcstr.h
21d1c967 9998do
a0b9e27f
MB
9999ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10000echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 10001echo "configure:10002: checking for $ac_hdr" >&5
a0b9e27f
MB
10002if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10004else
10005 cat > conftest.$ac_ext <<EOF
89e3b3e4 10006#line 10007 "configure"
d4158b5d 10007#include "confdefs.h"
a0b9e27f
MB
10008#include <$ac_hdr>
10009EOF
10010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 10011{ (eval echo configure:10012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10013if test -z "$ac_err"; then
10014 rm -rf conftest*
10015 eval "ac_cv_header_$ac_safe=yes"
10016else
10017 echo "$ac_err" >&5
10018 echo "configure: failed program was:" >&5
d4158b5d 10019 cat conftest.$ac_ext >&5
a0b9e27f
MB
10020 rm -rf conftest*
10021 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10022fi
a0b9e27f 10023rm -f conftest*
21d1c967 10024fi
a0b9e27f
MB
10025if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
10027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10028 cat >> confdefs.h <<EOF
10029#define $ac_tr_hdr 1
10030EOF
10031
10032else
10033 echo "$ac_t""no" 1>&6
d4158b5d 10034fi
21d1c967 10035done
f6bcfd97 10036
90dd450c 10037fi
90dd450c 10038
a0b9e27f 10039for ac_hdr in fnmatch.h
21d1c967 10040do
a0b9e27f
MB
10041ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10042echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 10043echo "configure:10044: checking for $ac_hdr" >&5
a0b9e27f
MB
10044if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046else
10047 cat > conftest.$ac_ext <<EOF
89e3b3e4 10048#line 10049 "configure"
90dd450c 10049#include "confdefs.h"
a0b9e27f
MB
10050#include <$ac_hdr>
10051EOF
10052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 10053{ (eval echo configure:10054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10055if test -z "$ac_err"; then
10056 rm -rf conftest*
10057 eval "ac_cv_header_$ac_safe=yes"
10058else
10059 echo "$ac_err" >&5
10060 echo "configure: failed program was:" >&5
3a922bb4 10061 cat conftest.$ac_ext >&5
a0b9e27f
MB
10062 rm -rf conftest*
10063 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10064fi
a0b9e27f 10065rm -f conftest*
4f14bcd8 10066fi
a0b9e27f
MB
10067if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10070 cat >> confdefs.h <<EOF
10071#define $ac_tr_hdr 1
10072EOF
10073
10074else
10075 echo "$ac_t""no" 1>&6
21d1c967
GD
10076fi
10077done
90dd450c 10078
5c6fa7d2 10079
a0b9e27f
MB
10080if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10081 for ac_func in fnmatch
21d1c967 10082do
a0b9e27f 10083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 10084echo "configure:10085: checking for $ac_func" >&5
a0b9e27f
MB
10085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10087else
a0b9e27f 10088 cat > conftest.$ac_ext <<EOF
89e3b3e4 10089#line 10090 "configure"
a0b9e27f
MB
10090#include "confdefs.h"
10091/* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char $ac_func(); below. */
10093#include <assert.h>
10094/* Override any gcc2 internal prototype to avoid an error. */
10095/* We use char because int might match the return type of a gcc2
10096 builtin and then its argument prototype would still apply. */
10097char $ac_func();
10098
10099int main() {
10100
10101/* The GNU C library defines this for functions which it implements
10102 to always fail with ENOSYS. Some functions are actually named
10103 something starting with __ and the normal name is an alias. */
10104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10105choke me
10106#else
10107$ac_func();
10108#endif
10109
10110; return 0; }
10111EOF
89e3b3e4 10112if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10113 rm -rf conftest*
10114 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10115else
a0b9e27f 10116 echo "configure: failed program was:" >&5
8284b0c5 10117 cat conftest.$ac_ext >&5
a0b9e27f
MB
10118 rm -rf conftest*
10119 eval "ac_cv_func_$ac_func=no"
8284b0c5 10120fi
a0b9e27f 10121rm -f conftest*
8284b0c5 10122fi
32832908 10123
a0b9e27f
MB
10124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10125 echo "$ac_t""yes" 1>&6
10126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10127 cat >> confdefs.h <<EOF
10128#define $ac_tr_func 1
10129EOF
10130
10131else
10132 echo "$ac_t""no" 1>&6
21d1c967
GD
10133fi
10134done
90dd450c 10135
a0b9e27f 10136fi
90dd450c 10137
a0b9e27f 10138for ac_hdr in langinfo.h
21d1c967 10139do
a0b9e27f
MB
10140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 10142echo "configure:10143: checking for $ac_hdr" >&5
a0b9e27f
MB
10143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10145else
10146 cat > conftest.$ac_ext <<EOF
89e3b3e4 10147#line 10148 "configure"
247f5006 10148#include "confdefs.h"
a0b9e27f
MB
10149#include <$ac_hdr>
10150EOF
10151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 10152{ (eval echo configure:10153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10154if test -z "$ac_err"; then
10155 rm -rf conftest*
10156 eval "ac_cv_header_$ac_safe=yes"
10157else
10158 echo "$ac_err" >&5
10159 echo "configure: failed program was:" >&5
90dd450c 10160 cat conftest.$ac_ext >&5
a0b9e27f
MB
10161 rm -rf conftest*
10162 eval "ac_cv_header_$ac_safe=no"
90dd450c 10163fi
a0b9e27f 10164rm -f conftest*
4f14bcd8 10165fi
a0b9e27f
MB
10166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10167 echo "$ac_t""yes" 1>&6
10168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10169 cat >> confdefs.h <<EOF
10170#define $ac_tr_hdr 1
10171EOF
10172
10173else
10174 echo "$ac_t""no" 1>&6
21d1c967
GD
10175fi
10176done
3a922bb4 10177
8284b0c5 10178
4f5a7f74
VZ
10179case "${host}" in
10180 *-pc-os2_emx | *-pc-os2-emx )
10181 if test $ac_cv_header_langinfo_h = "yes"; then
10182 LIBS="$LIBS -lintl"
10183 fi
10184 ;;
10185esac
1542ea39 10186
a0b9e27f
MB
10187if test "$wxUSE_GUI" = "yes"; then
10188 if test "$wxUSE_UNIX" = "yes"; then
10189 for ac_hdr in X11/XKBlib.h
21d1c967 10190do
a0b9e27f
MB
10191ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10192echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 10193echo "configure:10194: checking for $ac_hdr" >&5
a0b9e27f
MB
10194if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10196else
10197 cat > conftest.$ac_ext <<EOF
89e3b3e4 10198#line 10199 "configure"
90dd450c 10199#include "confdefs.h"
a0b9e27f
MB
10200#include <$ac_hdr>
10201EOF
10202ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 10203{ (eval echo configure:10204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10204ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10205if test -z "$ac_err"; then
10206 rm -rf conftest*
10207 eval "ac_cv_header_$ac_safe=yes"
10208else
10209 echo "$ac_err" >&5
10210 echo "configure: failed program was:" >&5
90dd450c 10211 cat conftest.$ac_ext >&5
a0b9e27f
MB
10212 rm -rf conftest*
10213 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10214fi
a0b9e27f 10215rm -f conftest*
90dd450c 10216fi
a0b9e27f
MB
10217if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10218 echo "$ac_t""yes" 1>&6
10219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10220 cat >> confdefs.h <<EOF
10221#define $ac_tr_hdr 1
10222EOF
10223
10224else
10225 echo "$ac_t""no" 1>&6
247f5006 10226fi
247f5006
VZ
10227done
10228
a0b9e27f
MB
10229 fi
10230fi
247f5006 10231
247f5006 10232
a0b9e27f 10233echo $ac_n "checking for working const""... $ac_c" 1>&6
89e3b3e4 10234echo "configure:10235: checking for working const" >&5
a0b9e27f
MB
10235if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10236 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10237else
a0b9e27f 10238 cat > conftest.$ac_ext <<EOF
89e3b3e4 10239#line 10240 "configure"
a0b9e27f
MB
10240#include "confdefs.h"
10241
10242int main() {
10243
10244/* Ultrix mips cc rejects this. */
10245typedef int charset[2]; const charset x;
10246/* SunOS 4.1.1 cc rejects this. */
10247char const *const *ccp;
10248char **p;
10249/* NEC SVR4.0.2 mips cc rejects this. */
10250struct point {int x, y;};
10251static struct point const zero = {0,0};
10252/* AIX XL C 1.02.0.0 rejects this.
10253 It does not let you subtract one const X* pointer from another in an arm
10254 of an if-expression whose if-part is not a constant expression */
10255const char *g = "string";
10256ccp = &g + (g ? g-g : 0);
10257/* HPUX 7.0 cc rejects these. */
10258++ccp;
10259p = (char**) ccp;
10260ccp = (char const *const *) p;
10261{ /* SCO 3.2v4 cc rejects this. */
10262 char *t;
10263 char const *s = 0 ? (char *) 0 : (char const *) 0;
10264
10265 *t++ = 0;
10266}
10267{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10268 int x[] = {25, 17};
10269 const int *foo = &x[0];
10270 ++foo;
10271}
10272{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10273 typedef const int *iptr;
10274 iptr p = 0;
10275 ++p;
10276}
10277{ /* AIX XL C 1.02.0.0 rejects this saying
10278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10279 struct s { int j; const int *ap[3]; };
10280 struct s *b; b->j = 5;
10281}
10282{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10283 const int foo = 10;
10284}
10285
10286; return 0; }
10287EOF
89e3b3e4 10288if { (eval echo configure:10289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10289 rm -rf conftest*
10290 ac_cv_c_const=yes
247f5006 10291else
a0b9e27f 10292 echo "configure: failed program was:" >&5
247f5006 10293 cat conftest.$ac_ext >&5
a0b9e27f
MB
10294 rm -rf conftest*
10295 ac_cv_c_const=no
247f5006 10296fi
a0b9e27f 10297rm -f conftest*
21d1c967 10298fi
247f5006 10299
a0b9e27f
MB
10300echo "$ac_t""$ac_cv_c_const" 1>&6
10301if test $ac_cv_c_const = no; then
10302 cat >> confdefs.h <<\EOF
10303#define const
10304EOF
10f2d63a 10305
90dd450c 10306fi
81809c07 10307
a0b9e27f 10308echo $ac_n "checking for inline""... $ac_c" 1>&6
89e3b3e4 10309echo "configure:10310: checking for inline" >&5
a0b9e27f
MB
10310if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10312else
a0b9e27f
MB
10313 ac_cv_c_inline=no
10314for ac_kw in inline __inline__ __inline; do
10315 cat > conftest.$ac_ext <<EOF
89e3b3e4 10316#line 10317 "configure"
a0b9e27f
MB
10317#include "confdefs.h"
10318
10319int main() {
10320} $ac_kw foo() {
10321; return 0; }
10322EOF
89e3b3e4 10323if { (eval echo configure:10324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10324 rm -rf conftest*
10325 ac_cv_c_inline=$ac_kw; break
247f5006 10326else
a0b9e27f 10327 echo "configure: failed program was:" >&5
247f5006 10328 cat conftest.$ac_ext >&5
247f5006 10329fi
a0b9e27f
MB
10330rm -f conftest*
10331done
247f5006
VZ
10332
10333fi
10334
a0b9e27f
MB
10335echo "$ac_t""$ac_cv_c_inline" 1>&6
10336case "$ac_cv_c_inline" in
10337 inline | yes) ;;
10338 no) cat >> confdefs.h <<\EOF
10339#define inline
10340EOF
10341 ;;
10342 *) cat >> confdefs.h <<EOF
10343#define inline $ac_cv_c_inline
10344EOF
10345 ;;
10346esac
247f5006 10347
247f5006 10348
a0b9e27f 10349echo $ac_n "checking size of char""... $ac_c" 1>&6
89e3b3e4 10350echo "configure:10351: checking size of char" >&5
a0b9e27f
MB
10351if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
10353else
10354 if test "$cross_compiling" = yes; then
10355 ac_cv_sizeof_char=1
10356else
10357 cat > conftest.$ac_ext <<EOF
89e3b3e4 10358#line 10359 "configure"
4f14bcd8 10359#include "confdefs.h"
a0b9e27f 10360#include <stdio.h>
f7f78039 10361#include <sys/types.h>
a0b9e27f 10362main()
247f5006 10363{
a0b9e27f
MB
10364 FILE *f=fopen("conftestval", "w");
10365 if (!f) exit(1);
10366 fprintf(f, "%d\n", sizeof(char));
10367 exit(0);
52127426 10368}
a0b9e27f 10369EOF
89e3b3e4 10370if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10371then
10372 ac_cv_sizeof_char=`cat conftestval`
247f5006 10373else
a0b9e27f 10374 echo "configure: failed program was:" >&5
247f5006 10375 cat conftest.$ac_ext >&5
a0b9e27f
MB
10376 rm -fr conftest*
10377 ac_cv_sizeof_char=0
247f5006 10378fi
a0b9e27f 10379rm -fr conftest*
247f5006 10380fi
247f5006
VZ
10381
10382fi
a0b9e27f
MB
10383echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10384cat >> confdefs.h <<EOF
10385#define SIZEOF_CHAR $ac_cv_sizeof_char
10386EOF
247f5006 10387
247f5006 10388
a0b9e27f 10389echo $ac_n "checking size of short""... $ac_c" 1>&6
89e3b3e4 10390echo "configure:10391: checking size of short" >&5
a0b9e27f
MB
10391if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10393else
a0b9e27f
MB
10394 if test "$cross_compiling" = yes; then
10395 ac_cv_sizeof_short=2
247f5006 10396else
a0b9e27f 10397 cat > conftest.$ac_ext <<EOF
89e3b3e4 10398#line 10399 "configure"
a0b9e27f
MB
10399#include "confdefs.h"
10400#include <stdio.h>
f7f78039 10401#include <sys/types.h>
a0b9e27f
MB
10402main()
10403{
10404 FILE *f=fopen("conftestval", "w");
10405 if (!f) exit(1);
10406 fprintf(f, "%d\n", sizeof(short));
10407 exit(0);
10408}
10409EOF
89e3b3e4 10410if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10411then
10412 ac_cv_sizeof_short=`cat conftestval`
247f5006 10413else
a0b9e27f
MB
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -fr conftest*
10417 ac_cv_sizeof_short=0
247f5006 10418fi
a0b9e27f 10419rm -fr conftest*
247f5006
VZ
10420fi
10421
247f5006 10422fi
a0b9e27f
MB
10423echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10424cat >> confdefs.h <<EOF
10425#define SIZEOF_SHORT $ac_cv_sizeof_short
10426EOF
247f5006
VZ
10427
10428
a0b9e27f 10429echo $ac_n "checking size of void *""... $ac_c" 1>&6
89e3b3e4 10430echo "configure:10431: checking size of void *" >&5
a0b9e27f
MB
10431if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10433else
10434 if test "$cross_compiling" = yes; then
10435 ac_cv_sizeof_void_p=4
247f5006 10436else
a0b9e27f 10437 cat > conftest.$ac_ext <<EOF
89e3b3e4 10438#line 10439 "configure"
247f5006 10439#include "confdefs.h"
247f5006 10440#include <stdio.h>
f7f78039 10441#include <sys/types.h>
a0b9e27f 10442main()
247f5006 10443{
a0b9e27f
MB
10444 FILE *f=fopen("conftestval", "w");
10445 if (!f) exit(1);
10446 fprintf(f, "%d\n", sizeof(void *));
10447 exit(0);
5c6fa7d2 10448}
a0b9e27f 10449EOF
89e3b3e4 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_void_p=`cat conftestval`
10453else
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 rm -fr conftest*
10457 ac_cv_sizeof_void_p=0
10458fi
10459rm -fr conftest*
10460fi
8284b0c5 10461
247f5006 10462fi
a0b9e27f
MB
10463echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10464cat >> confdefs.h <<EOF
10465#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10466EOF
247f5006 10467
247f5006 10468
a0b9e27f 10469echo $ac_n "checking size of int""... $ac_c" 1>&6
89e3b3e4 10470echo "configure:10471: checking size of int" >&5
a0b9e27f
MB
10471if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10472 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10473else
a0b9e27f
MB
10474 if test "$cross_compiling" = yes; then
10475 ac_cv_sizeof_int=4
10476else
10477 cat > conftest.$ac_ext <<EOF
89e3b3e4 10478#line 10479 "configure"
247f5006 10479#include "confdefs.h"
a0b9e27f 10480#include <stdio.h>
f7f78039 10481#include <sys/types.h>
a0b9e27f 10482main()
247f5006 10483{
a0b9e27f
MB
10484 FILE *f=fopen("conftestval", "w");
10485 if (!f) exit(1);
10486 fprintf(f, "%d\n", sizeof(int));
10487 exit(0);
247f5006 10488}
a0b9e27f 10489EOF
89e3b3e4 10490if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10491then
10492 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10493else
a0b9e27f
MB
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10496 rm -fr conftest*
10497 ac_cv_sizeof_int=0
21d1c967 10498fi
a0b9e27f 10499rm -fr conftest*
698dcdb6 10500fi
4f14bcd8 10501
21d1c967 10502fi
a0b9e27f
MB
10503echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10504cat >> confdefs.h <<EOF
10505#define SIZEOF_INT $ac_cv_sizeof_int
10506EOF
4f14bcd8 10507
5c6fa7d2 10508
a0b9e27f 10509echo $ac_n "checking size of long""... $ac_c" 1>&6
89e3b3e4 10510echo "configure:10511: checking size of long" >&5
a0b9e27f
MB
10511if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10513else
247f5006 10514 if test "$cross_compiling" = yes; then
a0b9e27f 10515 ac_cv_sizeof_long=4
247f5006 10516else
a0b9e27f 10517 cat > conftest.$ac_ext <<EOF
89e3b3e4 10518#line 10519 "configure"
247f5006 10519#include "confdefs.h"
a0b9e27f 10520#include <stdio.h>
f7f78039 10521#include <sys/types.h>
a0b9e27f 10522main()
247f5006 10523{
a0b9e27f
MB
10524 FILE *f=fopen("conftestval", "w");
10525 if (!f) exit(1);
10526 fprintf(f, "%d\n", sizeof(long));
10527 exit(0);
247f5006 10528}
a0b9e27f 10529EOF
89e3b3e4 10530if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10531then
10532 ac_cv_sizeof_long=`cat conftestval`
247f5006 10533else
a0b9e27f
MB
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -fr conftest*
10537 ac_cv_sizeof_long=0
247f5006 10538fi
a0b9e27f 10539rm -fr conftest*
247f5006 10540fi
247f5006 10541
5c6fa7d2 10542fi
a0b9e27f
MB
10543echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10544cat >> confdefs.h <<EOF
10545#define SIZEOF_LONG $ac_cv_sizeof_long
10546EOF
247f5006 10547
a0b9e27f
MB
10548
10549
10550case "${host}" in
10551 arm-*-linux* )
10552 echo $ac_n "checking size of long long""... $ac_c" 1>&6
89e3b3e4 10553echo "configure:10554: checking size of long long" >&5
a0b9e27f
MB
10554if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10556else
10557 if test "$cross_compiling" = yes; then
10558 ac_cv_sizeof_long_long=8
10559else
10560 cat > conftest.$ac_ext <<EOF
89e3b3e4 10561#line 10562 "configure"
247f5006 10562#include "confdefs.h"
a0b9e27f 10563#include <stdio.h>
f7f78039 10564#include <sys/types.h>
a0b9e27f 10565main()
247f5006 10566{
a0b9e27f
MB
10567 FILE *f=fopen("conftestval", "w");
10568 if (!f) exit(1);
10569 fprintf(f, "%d\n", sizeof(long long));
10570 exit(0);
247f5006 10571}
a0b9e27f 10572EOF
89e3b3e4 10573if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10574then
10575 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10576else
a0b9e27f
MB
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 rm -fr conftest*
10580 ac_cv_sizeof_long_long=0
5c6fa7d2 10581fi
a0b9e27f 10582rm -fr conftest*
5c6fa7d2 10583fi
8284b0c5 10584
a0b9e27f
MB
10585fi
10586echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10587cat >> confdefs.h <<EOF
10588#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10589EOF
10590
10591
10592 ;;
4f57cf11 10593 *-hp-hpux* )
a0b9e27f 10594 echo $ac_n "checking size of long long""... $ac_c" 1>&6
89e3b3e4 10595echo "configure:10596: checking size of long long" >&5
a0b9e27f
MB
10596if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10597 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10598else
10599 if test "$cross_compiling" = yes; then
a0b9e27f 10600 ac_cv_sizeof_long_long=0
8284b0c5 10601else
a0b9e27f 10602 cat > conftest.$ac_ext <<EOF
89e3b3e4 10603#line 10604 "configure"
8284b0c5
MB
10604#include "confdefs.h"
10605#include <stdio.h>
f7f78039 10606#include <sys/types.h>
a0b9e27f 10607main()
8284b0c5 10608{
a0b9e27f
MB
10609 FILE *f=fopen("conftestval", "w");
10610 if (!f) exit(1);
10611 fprintf(f, "%d\n", sizeof(long long));
10612 exit(0);
8284b0c5 10613}
a0b9e27f 10614EOF
89e3b3e4 10615if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10616then
10617 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10618else
a0b9e27f
MB
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 rm -fr conftest*
5c6fa7d2 10622 ac_cv_sizeof_long_long=0
52127426 10623fi
a0b9e27f
MB
10624rm -fr conftest*
10625fi
10626
4f57cf11
GD
10627fi
10628echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10629cat >> confdefs.h <<EOF
10630#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10631EOF
10632
10633
10634 if test "$ac_cv_sizeof_long_long" != "0"; then
10635 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10636 fi
10637 ;;
10638 * )
10639 echo $ac_n "checking size of long long""... $ac_c" 1>&6
89e3b3e4 10640echo "configure:10641: checking size of long long" >&5
4f57cf11
GD
10641if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643else
10644 if test "$cross_compiling" = yes; then
10645 ac_cv_sizeof_long_long=0
10646else
10647 cat > conftest.$ac_ext <<EOF
89e3b3e4 10648#line 10649 "configure"
4f57cf11
GD
10649#include "confdefs.h"
10650#include <stdio.h>
f7f78039 10651#include <sys/types.h>
4f57cf11
GD
10652main()
10653{
10654 FILE *f=fopen("conftestval", "w");
10655 if (!f) exit(1);
10656 fprintf(f, "%d\n", sizeof(long long));
10657 exit(0);
10658}
10659EOF
89e3b3e4 10660if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10661then
10662 ac_cv_sizeof_long_long=`cat conftestval`
10663else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -fr conftest*
10667 ac_cv_sizeof_long_long=0
10668fi
10669rm -fr conftest*
10670fi
10671
7b4a847f 10672fi
a0b9e27f
MB
10673echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10674cat >> confdefs.h <<EOF
21d1c967 10675#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10676EOF
9e691f46 10677
8284b0c5 10678
21d1c967
GD
10679esac
10680
a0b9e27f 10681echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
89e3b3e4 10682echo "configure:10683: checking size of wchar_t" >&5
a0b9e27f
MB
10683if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10685else
a0b9e27f 10686
21d1c967 10687 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10688
10689 case "${host}" in
10690 *-pc-msdosdjgpp )
10691 wx_cv_sizeof_wchar_t=0
10692 ;;
10693 * )
10694 wx_cv_sizeof_wchar_t=4
10695 ;;
10696 esac
10697
a0b9e27f 10698
6f72b082 10699else
a0b9e27f 10700 cat > conftest.$ac_ext <<EOF
89e3b3e4 10701#line 10702 "configure"
6f72b082 10702#include "confdefs.h"
21d1c967 10703
2b5f62a0
VZ
10704 /* DJGPP only has fake wchar_t: */
10705 #ifdef __DJGPP__
10706 # error "fake wchar_t"
10707 #endif
21d1c967
GD
10708 #ifdef HAVE_WCHAR_H
10709 # ifdef __CYGWIN__
10710 # include <stddef.h>
10711 # endif
10712 # include <wchar.h>
10713 #endif
10714 #ifdef HAVE_STDLIB_H
10715 # include <stdlib.h>
10716 #endif
10717 #include <stdio.h>
10718 int main()
10719 {
10720 FILE *f=fopen("conftestval", "w");
10721 if (!f) exit(1);
10722 fprintf(f, "%i", sizeof(wchar_t));
10723 exit(0);
10724 }
a0b9e27f
MB
10725
10726EOF
89e3b3e4 10727if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10728then
21d1c967 10729 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10730else
a0b9e27f
MB
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -fr conftest*
10734 wx_cv_sizeof_wchar_t=0
6f72b082 10735fi
a0b9e27f 10736rm -fr conftest*
6f72b082 10737fi
6f72b082 10738
a0b9e27f 10739
3f345b47
VZ
10740fi
10741
a0b9e27f
MB
10742echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10743
10744cat >> confdefs.h <<EOF
21d1c967 10745#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10746EOF
90dd450c 10747
8284b0c5 10748
21d1c967
GD
10749# Check whether --enable-largefile or --disable-largefile was given.
10750if test "${enable_largefile+set}" = set; then
10751 enableval="$enable_largefile"
a0b9e27f
MB
10752 :
10753fi
3f345b47 10754
21d1c967
GD
10755if test "$enable_largefile" != no; then
10756 wx_largefile=no
a0b9e27f
MB
10757
10758 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
89e3b3e4 10759echo "configure:10760: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10760if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10762else
10763
10764 cat > conftest.$ac_ext <<EOF
89e3b3e4 10765#line 10766 "configure"
90dd450c 10766#include "confdefs.h"
21d1c967
GD
10767#define _FILE_OFFSET_BITS 64
10768 #include <sys/types.h>
a0b9e27f 10769int main() {
21d1c967
GD
10770typedef struct {
10771 unsigned int field: sizeof(off_t) == 8;
10772} wxlf;
10773
a0b9e27f
MB
10774; return 0; }
10775EOF
89e3b3e4 10776if { (eval echo configure:10777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10777 rm -rf conftest*
21d1c967 10778 ac_cv_sys_file_offset_bits=64
f6bcfd97 10779else
a0b9e27f
MB
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -rf conftest*
10783 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10784fi
a0b9e27f
MB
10785rm -f conftest*
10786
10787
247f5006 10788fi
a0b9e27f
MB
10789
10790echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10791
10792 if test "$ac_cv_sys_file_offset_bits" != no; then
10793 wx_largefile=yes
a0b9e27f 10794 cat >> confdefs.h <<EOF
21d1c967 10795#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10796EOF
21d1c967
GD
10797
10798 fi
10799
10800 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10801
10802 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
89e3b3e4 10803echo "configure:10804: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10804if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10806else
10807
10808 cat > conftest.$ac_ext <<EOF
89e3b3e4 10809#line 10810 "configure"
f6bcfd97 10810#include "confdefs.h"
21d1c967
GD
10811#define _LARGE_FILES 1
10812 #include <sys/types.h>
a0b9e27f 10813int main() {
21d1c967
GD
10814typedef struct {
10815 unsigned int field: sizeof(off_t) == 8;
10816} wxlf;
10817
a0b9e27f
MB
10818; return 0; }
10819EOF
89e3b3e4 10820if { (eval echo configure:10821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10821 rm -rf conftest*
21d1c967 10822 ac_cv_sys_large_files=1
f6bcfd97 10823else
a0b9e27f
MB
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 ac_cv_sys_large_files=no
5c6fa7d2 10828fi
a0b9e27f
MB
10829rm -f conftest*
10830
10831
247f5006 10832fi
a0b9e27f
MB
10833
10834echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10835
21d1c967
GD
10836 if test "$ac_cv_sys_large_files" != no; then
10837 wx_largefile=yes
a0b9e27f 10838 cat >> confdefs.h <<EOF
21d1c967 10839#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10840EOF
90dd450c 10841
90dd450c
VZ
10842 fi
10843
90dd450c 10844 fi
90dd450c 10845
a0b9e27f 10846 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
89e3b3e4 10847echo "configure:10848: checking if large file support is available" >&5
21d1c967 10848 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10849 cat >> confdefs.h <<\EOF
21d1c967 10850#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10851EOF
90dd450c 10852
90dd450c 10853 fi
a0b9e27f 10854 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10855fi
90dd450c 10856
8284b0c5 10857
f02444d0 10858if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10859 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10860 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10861 else
e26c13cf 10862 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10863 fi
e26c13cf 10864 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10865fi
10866
a0b9e27f 10867echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
89e3b3e4 10868echo "configure:10869: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10869if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10871else
21d1c967
GD
10872 ac_cv_c_bigendian=unknown
10873# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10874cat > conftest.$ac_ext <<EOF
89e3b3e4 10875#line 10876 "configure"
90dd450c 10876#include "confdefs.h"
21d1c967
GD
10877#include <sys/types.h>
10878#include <sys/param.h>
a0b9e27f 10879int main() {
21d1c967
GD
10880
10881#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10882 bogus endian macros
10883#endif
a0b9e27f
MB
10884; return 0; }
10885EOF
89e3b3e4 10886if { (eval echo configure:10887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10887 rm -rf conftest*
21d1c967 10888 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10889cat > conftest.$ac_ext <<EOF
89e3b3e4 10890#line 10891 "configure"
90dd450c 10891#include "confdefs.h"
21d1c967
GD
10892#include <sys/types.h>
10893#include <sys/param.h>
a0b9e27f 10894int main() {
21d1c967
GD
10895
10896#if BYTE_ORDER != BIG_ENDIAN
10897 not big endian
10898#endif
a0b9e27f
MB
10899; return 0; }
10900EOF
89e3b3e4 10901if { (eval echo configure:10902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10902 rm -rf conftest*
21d1c967 10903 ac_cv_c_bigendian=yes
3f345b47 10904else
a0b9e27f
MB
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 rm -rf conftest*
10908 ac_cv_c_bigendian=no
3f345b47 10909fi
a0b9e27f 10910rm -f conftest*
3f345b47 10911else
a0b9e27f
MB
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
3f345b47 10914fi
a0b9e27f 10915rm -f conftest*
21d1c967
GD
10916if test $ac_cv_c_bigendian = unknown; then
10917if test "$cross_compiling" = yes; then
10918 ac_cv_c_bigendian=unknown
10f2d63a 10919else
a0b9e27f 10920 cat > conftest.$ac_ext <<EOF
89e3b3e4 10921#line 10922 "configure"
90dd450c 10922#include "confdefs.h"
21d1c967
GD
10923main () {
10924 /* Are we little or big endian? From Harbison&Steele. */
10925 union
10926 {
10927 long l;
10928 char c[sizeof (long)];
10929 } u;
10930 u.l = 1;
10931 exit (u.c[sizeof (long) - 1] == 1);
10932}
a0b9e27f 10933EOF
89e3b3e4 10934if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10935then
21d1c967 10936 ac_cv_c_bigendian=no
3f345b47 10937else
a0b9e27f
MB
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -fr conftest*
10941 ac_cv_c_bigendian=yes
247f5006 10942fi
a0b9e27f 10943rm -fr conftest*
247f5006 10944fi
a0b9e27f 10945
3f345b47 10946fi
8168de4c 10947fi
a0b9e27f
MB
10948
10949echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10950if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10951 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
10952fi
10953if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10954 cat >> confdefs.h <<\EOF
247f5006 10955#define WORDS_BIGENDIAN 1
a0b9e27f 10956EOF
247f5006
VZ
10957
10958fi
10959
10960
a0b9e27f 10961echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
89e3b3e4 10962echo "configure:10963: checking how to run the C++ preprocessor" >&5
247f5006 10963if test -z "$CXXCPP"; then
a0b9e27f
MB
10964if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10966else
a0b9e27f
MB
10967 ac_ext=C
10968# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969ac_cpp='$CXXCPP $CPPFLAGS'
10970ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972cross_compiling=$ac_cv_prog_cxx_cross
10973 CXXCPP="${CXX-g++} -E"
10974 cat > conftest.$ac_ext <<EOF
89e3b3e4 10975#line 10976 "configure"
5c6fa7d2 10976#include "confdefs.h"
a0b9e27f
MB
10977#include <stdlib.h>
10978EOF
10979ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 10980{ (eval echo configure:10981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10981ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10982if test -z "$ac_err"; then
21d1c967 10983 :
698dcdb6 10984else
a0b9e27f
MB
10985 echo "$ac_err" >&5
10986 echo "configure: failed program was:" >&5
698dcdb6 10987 cat conftest.$ac_ext >&5
a0b9e27f
MB
10988 rm -rf conftest*
10989 CXXCPP=/lib/cpp
247f5006 10990fi
a0b9e27f
MB
10991rm -f conftest*
10992 ac_cv_prog_CXXCPP="$CXXCPP"
10993ac_ext=C
10994# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10995ac_cpp='$CXXCPP $CPPFLAGS'
10996ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10997ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10998cross_compiling=$ac_cv_prog_cxx_cross
328a083c 10999fi
90dd450c 11000fi
a0b9e27f
MB
11001CXXCPP="$ac_cv_prog_CXXCPP"
11002echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11003
1725144d 11004
21d1c967 11005 if test "$cross_compiling" = "yes"; then
a0b9e27f 11006 cat >> confdefs.h <<\EOF
21d1c967 11007#define wxUSE_IOSTREAMH 1
a0b9e27f 11008EOF
ab9b9eab 11009
21d1c967 11010 else
a0b9e27f
MB
11011
11012 ac_ext=C
11013# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11014ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11015ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11016ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11017cross_compiling=$ac_cv_prog_cxx_cross
52127426 11018
247f5006 11019
a0b9e27f 11020 for ac_hdr in iostream
21d1c967 11021do
a0b9e27f
MB
11022ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11023echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 11024echo "configure:11025: checking for $ac_hdr" >&5
a0b9e27f
MB
11025if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11026 echo $ac_n "(cached) $ac_c" 1>&6
11027else
11028 cat > conftest.$ac_ext <<EOF
89e3b3e4 11029#line 11030 "configure"
ab9b9eab 11030#include "confdefs.h"
a0b9e27f
MB
11031#include <$ac_hdr>
11032EOF
11033ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 11034{ (eval echo configure:11035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11035ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11036if test -z "$ac_err"; then
11037 rm -rf conftest*
11038 eval "ac_cv_header_$ac_safe=yes"
11039else
11040 echo "$ac_err" >&5
11041 echo "configure: failed program was:" >&5
ab9b9eab 11042 cat conftest.$ac_ext >&5
a0b9e27f
MB
11043 rm -rf conftest*
11044 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11045fi
a0b9e27f 11046rm -f conftest*
90dd450c 11047fi
a0b9e27f
MB
11048if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11051 cat >> confdefs.h <<EOF
11052#define $ac_tr_hdr 1
11053EOF
11054
11055else
11056 echo "$ac_t""no" 1>&6
90dd450c 11057fi
21d1c967 11058done
10f2d63a 11059
8284b0c5 11060
21d1c967
GD
11061 if test "$ac_cv_header_iostream" = "yes" ; then
11062 :
11063 else
a0b9e27f 11064 cat >> confdefs.h <<\EOF
21d1c967 11065#define wxUSE_IOSTREAMH 1
a0b9e27f 11066EOF
788deba1 11067
90dd450c 11068 fi
ab9b9eab 11069
21d1c967 11070 ac_ext=c
a0b9e27f 11071# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11072ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11073ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11076
21d1c967 11077 fi
ab9b9eab 11078
52127426 11079
8284b0c5 11080
a0b9e27f 11081 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
89e3b3e4 11082echo "configure:11083: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11083if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11085else
a0b9e27f
MB
11086
11087
11088 ac_ext=C
11089# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11090ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11091ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11092ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11093cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11094
8284b0c5 11095
a0b9e27f 11096 cat > conftest.$ac_ext <<EOF
89e3b3e4 11097#line 11098 "configure"
ab9b9eab 11098#include "confdefs.h"
21d1c967 11099
a0b9e27f
MB
11100
11101int main() {
21d1c967
GD
11102
11103 bool b = true;
11104
11105 return 0;
a0b9e27f
MB
11106
11107; return 0; }
11108EOF
89e3b3e4 11109if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11110 rm -rf conftest*
11111
21d1c967 11112 wx_cv_cpp_bool=yes
a0b9e27f 11113
698dcdb6 11114else
a0b9e27f
MB
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 rm -rf conftest*
11118
21d1c967 11119 wx_cv_cpp_bool=no
a0b9e27f
MB
11120
11121
698dcdb6 11122fi
a0b9e27f 11123rm -f conftest*
21d1c967
GD
11124
11125 ac_ext=c
a0b9e27f 11126# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11127ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11128ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11131
a0b9e27f 11132
247f5006 11133fi
a0b9e27f
MB
11134
11135echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11136
11137 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11138 cat >> confdefs.h <<\EOF
21d1c967 11139#define HAVE_BOOL 1
a0b9e27f 11140EOF
ab9b9eab 11141
21d1c967
GD
11142 fi
11143
52127426 11144
8284b0c5 11145
a0b9e27f 11146 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
89e3b3e4 11147echo "configure:11148: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11148if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11150else
a0b9e27f
MB
11151
11152
11153 ac_ext=C
11154# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11155ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11156ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11157ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11158cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11159
8284b0c5 11160
a0b9e27f 11161 cat > conftest.$ac_ext <<EOF
89e3b3e4 11162#line 11163 "configure"
986ecc86
VZ
11163#include "confdefs.h"
11164
11165 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11166
11167int main() {
986ecc86
VZ
11168
11169 return 0;
a0b9e27f
MB
11170
11171; return 0; }
11172EOF
89e3b3e4 11173if { (eval echo configure:11174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11174 rm -rf conftest*
11175
11176 cat > conftest.$ac_ext <<EOF
89e3b3e4 11177#line 11178 "configure"
986ecc86
VZ
11178#include "confdefs.h"
11179
11180 class Foo { public: explicit Foo(int) {} };
11181 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11182
11183int main() {
986ecc86
VZ
11184
11185 TakeFoo(17);
11186 return 0;
a0b9e27f
MB
11187
11188; return 0; }
11189EOF
89e3b3e4 11190if { (eval echo configure:11191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11191 rm -rf conftest*
986ecc86
VZ
11192 wx_cv_explicit=no
11193else
a0b9e27f
MB
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 wx_cv_explicit=yes
11198
986ecc86 11199fi
a0b9e27f
MB
11200rm -f conftest*
11201
986ecc86 11202else
a0b9e27f
MB
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -rf conftest*
11206 wx_cv_explicit=no
11207
986ecc86 11208fi
a0b9e27f 11209rm -f conftest*
986ecc86
VZ
11210
11211 ac_ext=c
a0b9e27f 11212# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11213ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11214ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11215ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11216cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11217
a0b9e27f 11218
247f5006 11219fi
a0b9e27f
MB
11220
11221echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11222
11223 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11224 cat >> confdefs.h <<\EOF
986ecc86 11225#define HAVE_EXPLICIT 1
a0b9e27f 11226EOF
986ecc86
VZ
11227
11228 fi
11229
8284b0c5 11230
521196a2 11231echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
89e3b3e4 11232echo "configure:11233: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11233if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11235else
11236
11237 ac_ext=C
11238# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11239ac_cpp='$CXXCPP $CPPFLAGS'
11240ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11241ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11242cross_compiling=$ac_cv_prog_cxx_cross
11243
11244 cat > conftest.$ac_ext <<EOF
89e3b3e4 11245#line 11246 "configure"
521196a2
MB
11246#include "confdefs.h"
11247
11248int main() {
11249int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11250; return 0; }
11251EOF
89e3b3e4 11252if { (eval echo configure:11253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11253 rm -rf conftest*
11254 ac_cv_cxx_const_cast=yes
11255else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -rf conftest*
11259 ac_cv_cxx_const_cast=no
11260fi
11261rm -f conftest*
11262 ac_ext=c
11263# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11264ac_cpp='$CPP $CPPFLAGS'
11265ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11266ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11267cross_compiling=$ac_cv_prog_cc_cross
11268
11269
11270fi
11271
11272echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11273if test "$ac_cv_cxx_const_cast" = yes; then
11274 cat >> confdefs.h <<\EOF
11275#define HAVE_CONST_CAST
11276EOF
11277
11278fi
11279
11280
8284b0c5 11281
21d1c967
GD
11282SEARCH_INCLUDE="\
11283 /usr/local/include \
11284 \
11285 /usr/Motif-1.2/include \
11286 /usr/Motif-2.1/include \
11287 \
11288 /usr/include/Motif1.2 \
11289 /opt/xpm/include/X11 \
11290 /opt/GBxpm/include/ \
11291 /opt/GBxpm/X11/include/ \
11292 \
11293 /usr/Motif1.2/include \
11294 /usr/dt/include \
11295 /usr/openwin/include \
11296 \
11297 /usr/include/Xm \
11298 \
11299 /usr/X11R6/include \
11300 /usr/X11R6.4/include \
11301 /usr/X11R5/include \
11302 /usr/X11R4/include \
11303 \
11304 /usr/include/X11R6 \
11305 /usr/include/X11R5 \
11306 /usr/include/X11R4 \
11307 \
11308 /usr/local/X11R6/include \
11309 /usr/local/X11R5/include \
11310 /usr/local/X11R4/include \
11311 \
11312 /usr/local/include/X11R6 \
11313 /usr/local/include/X11R5 \
11314 /usr/local/include/X11R4 \
11315 \
11316 /usr/X11/include \
11317 /usr/include/X11 \
11318 /usr/local/X11/include \
11319 /usr/local/include/X11 \
11320 \
11321 /usr/X386/include \
11322 /usr/x386/include \
11323 /usr/XFree86/include/X11 \
11324 \
11325 X:/XFree86/include \
11326 X:/XFree86/include/X11 \
11327 \
11328 /usr/include/gtk \
11329 /usr/local/include/gtk \
11330 /usr/include/glib \
11331 /usr/local/include/glib \
11332 \
11333 /usr/include/qt \
11334 /usr/local/include/qt \
11335 \
11336 /usr/include/windows \
11337 /usr/include/wine \
11338 /usr/local/include/wine \
11339 \
11340 /usr/unsupported/include \
11341 /usr/athena/include \
11342 /usr/local/x11r5/include \
11343 /usr/lpp/Xamples/include \
11344 \
2b5f62a0 11345 /usr/openwin/share/include"
21d1c967
GD
11346
11347SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11348
8284b0c5 11349
a0b9e27f 11350cat > confcache <<\EOF
21d1c967
GD
11351# This file is a shell script that caches the results of configure
11352# tests run on this system so they can be shared between configure
a0b9e27f
MB
11353# scripts and configure runs. It is not useful on other systems.
11354# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11355#
a0b9e27f
MB
11356# By default, configure uses ./config.cache as the cache file,
11357# creating it if it does not exist already. You can give configure
11358# the --cache-file=FILE option to use a different cache file; that is
11359# what configure does when it calls configure scripts in
11360# subdirectories, so they share the cache.
11361# Giving --cache-file=/dev/null disables caching, for debugging configure.
11362# config.status only pays attention to the cache file if you give it the
11363# --recheck option to rerun configure.
21d1c967 11364#
a0b9e27f 11365EOF
21d1c967
GD
11366# The following way of writing the cache mishandles newlines in values,
11367# but we know of no workaround that is simple, portable, and efficient.
11368# So, don't put newlines in cache variables' values.
11369# Ultrix sh set writes to stderr and can't be redirected directly,
11370# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11371(set) 2>&1 |
11372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11373 *ac_space=\ *)
11374 # `set' does not quote correctly, so add quotes (double-quote substitution
11375 # turns \\\\ into \\, and sed turns \\ into \).
11376 sed -n \
11377 -e "s/'/'\\\\''/g" \
11378 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11379 ;;
11380 *)
11381 # `set' quotes correctly as required by POSIX, so do not add quotes.
11382 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11383 ;;
11384 esac >> confcache
11385if cmp -s $cache_file confcache; then
11386 :
11387else
21d1c967 11388 if test -w $cache_file; then
a0b9e27f
MB
11389 echo "updating cache $cache_file"
11390 cat confcache > $cache_file
21d1c967
GD
11391 else
11392 echo "not updating unwritable cache $cache_file"
11393 fi
ab9b9eab 11394fi
21d1c967 11395rm -f confcache
ab9b9eab 11396
247f5006 11397
a0b9e27f
MB
11398if test "$USE_LINUX" = 1; then
11399 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
89e3b3e4 11400echo "configure:11401: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11401if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11403else
11404
11405 cat > conftest.$ac_ext <<EOF
89e3b3e4 11406#line 11407 "configure"
ab9b9eab 11407#include "confdefs.h"
21d1c967 11408#include <features.h>
a0b9e27f 11409int main() {
ab9b9eab 11410
21d1c967
GD
11411 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11412 #error not glibc2.1
11413 #endif
a0b9e27f
MB
11414
11415; return 0; }
11416EOF
89e3b3e4 11417if { (eval echo configure:11418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11418 rm -rf conftest*
11419
21d1c967 11420 wx_cv_lib_glibc21=yes
a0b9e27f 11421
698dcdb6 11422else
a0b9e27f
MB
11423 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11425 rm -rf conftest*
11426
21d1c967 11427 wx_cv_lib_glibc21=no
a0b9e27f
MB
11428
11429
5c6fa7d2 11430fi
a0b9e27f
MB
11431rm -f conftest*
11432
247f5006 11433fi
a0b9e27f
MB
11434
11435echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11436 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11437 cat >> confdefs.h <<\EOF
21d1c967 11438#define wxHAVE_GLIBC2 1
a0b9e27f 11439EOF
1e487827 11440
90dd450c 11441 fi
ab9b9eab
VZ
11442fi
11443
5c0a20c3
VZ
11444if test "x$wx_cv_lib_glibc21" = "xyes"; then
11445 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11446 cat >> confdefs.h <<\EOF
5c0a20c3 11447#define _GNU_SOURCE 1
a0b9e27f 11448EOF
5c0a20c3
VZ
11449
11450 fi
11451fi
11452
8284b0c5
MB
11453
11454
21d1c967
GD
11455REGEX_INCLUDE=
11456if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11457 cat >> confdefs.h <<\EOF
21d1c967 11458#define wxUSE_REGEX 1
a0b9e27f 11459EOF
698dcdb6 11460
8284b0c5 11461
21d1c967 11462 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11463 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11464echo $ac_n "checking for regex.h""... $ac_c" 1>&6
89e3b3e4 11465echo "configure:11466: checking for regex.h" >&5
a0b9e27f
MB
11466if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11468else
11469 cat > conftest.$ac_ext <<EOF
89e3b3e4 11470#line 11471 "configure"
247f5006
VZ
11471#include "confdefs.h"
11472#include <regex.h>
a0b9e27f
MB
11473EOF
11474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 11475{ (eval echo configure:11476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11477if test -z "$ac_err"; then
11478 rm -rf conftest*
11479 eval "ac_cv_header_$ac_safe=yes"
11480else
11481 echo "$ac_err" >&5
11482 echo "configure: failed program was:" >&5
21d1c967 11483 cat conftest.$ac_ext >&5
a0b9e27f
MB
11484 rm -rf conftest*
11485 eval "ac_cv_header_$ac_safe=no"
21d1c967 11486fi
a0b9e27f 11487rm -f conftest*
698dcdb6 11488fi
a0b9e27f
MB
11489if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11490 echo "$ac_t""yes" 1>&6
11491 for ac_func in regcomp
21d1c967 11492do
a0b9e27f 11493echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 11494echo "configure:11495: checking for $ac_func" >&5
a0b9e27f
MB
11495if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11497else
a0b9e27f 11498 cat > conftest.$ac_ext <<EOF
89e3b3e4 11499#line 11500 "configure"
a0b9e27f
MB
11500#include "confdefs.h"
11501/* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func(); below. */
21d1c967
GD
11503#include <assert.h>
11504/* Override any gcc2 internal prototype to avoid an error. */
11505/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11506 builtin and then its argument prototype would still apply. */
11507char $ac_func();
11508
11509int main() {
11510
21d1c967
GD
11511/* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11515choke me
11516#else
a0b9e27f 11517$ac_func();
21d1c967 11518#endif
90dd450c 11519
a0b9e27f
MB
11520; return 0; }
11521EOF
89e3b3e4 11522if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11523 rm -rf conftest*
11524 eval "ac_cv_func_$ac_func=yes"
11525else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_func_$ac_func=no"
11530fi
11531rm -f conftest*
11532fi
5c6fa7d2 11533
a0b9e27f
MB
11534if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11537 cat >> confdefs.h <<EOF
11538#define $ac_tr_func 1
11539EOF
11540
11541else
11542 echo "$ac_t""no" 1>&6
698dcdb6 11543fi
21d1c967
GD
11544done
11545
a0b9e27f
MB
11546else
11547 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11548fi
11549
8284b0c5 11550
21d1c967
GD
11551 if test "x$ac_cv_func_regcomp" != "xyes"; then
11552 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11553 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11554 else
a0b9e27f 11555 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11556 wxUSE_REGEX=builtin
11557 fi
11558 else
11559 wxUSE_REGEX=sys
11560 fi
ab9b9eab 11561 fi
90dd450c 11562
21d1c967
GD
11563 if test "$wxUSE_REGEX" = "builtin" ; then
11564 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11565 fi
21d1c967 11566fi
90dd450c 11567
8284b0c5 11568
21d1c967
GD
11569ZLIB_INCLUDE=
11570ZLIB_LINK=
11571if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11572 cat >> confdefs.h <<\EOF
21d1c967 11573#define wxUSE_ZLIB 1
a0b9e27f 11574EOF
21d1c967 11575
8284b0c5 11576
21d1c967 11577 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11578 if test "$USE_DARWIN" = 1; then
11579 system_zlib_h_ok="yes"
11580 else
11581 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
89e3b3e4 11582echo "configure:11583: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11583if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11585else
11586 if test "$cross_compiling" = yes; then
89e6bf6d 11587 unset ac_cv_header_zlib_h
d775acfa 11588
d643b80e
VZ
11589else
11590 cat > conftest.$ac_ext <<EOF
89e3b3e4 11591#line 11592 "configure"
d643b80e
VZ
11592#include "confdefs.h"
11593
d775acfa
VZ
11594 #include <zlib.h>
11595 #include <stdio.h>
d643b80e 11596
d775acfa
VZ
11597
11598 int main()
11599 {
11600 FILE *f=fopen("conftestval", "w");
11601 if (!f) exit(1);
11602 fprintf(f, "%s",
11603 ZLIB_VERSION[0] == '1' &&
11604 (ZLIB_VERSION[2] > '1' ||
11605 (ZLIB_VERSION[2] == '1' &&
11606 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11607 exit(0);
11608 }
11609
d643b80e 11610
d643b80e 11611EOF
89e3b3e4 11612if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11613then
11614 ac_cv_header_zlib_h=`cat conftestval`
11615else
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11618 rm -fr conftest*
11619 ac_cv_header_zlib_h=no
11620fi
11621rm -fr conftest*
11622fi
11623
d775acfa 11624
d643b80e
VZ
11625fi
11626
11627echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11628 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11629echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
89e3b3e4 11630echo "configure:11631: checking for zlib.h" >&5
89e6bf6d
VZ
11631if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11633else
11634 cat > conftest.$ac_ext <<EOF
89e3b3e4 11635#line 11636 "configure"
89e6bf6d
VZ
11636#include "confdefs.h"
11637#include <zlib.h>
11638EOF
11639ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 11640{ (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11641ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11642if test -z "$ac_err"; then
11643 rm -rf conftest*
11644 eval "ac_cv_header_$ac_safe=yes"
11645else
11646 echo "$ac_err" >&5
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 eval "ac_cv_header_$ac_safe=no"
11651fi
11652rm -f conftest*
11653fi
11654if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11655 echo "$ac_t""yes" 1>&6
11656 :
11657else
11658 echo "$ac_t""no" 1>&6
11659fi
11660
d643b80e 11661
d775acfa
VZ
11662 system_zlib_h_ok=$ac_cv_header_zlib_h
11663 fi
11664
11665 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11666 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
89e3b3e4 11667echo "configure:11668: checking for deflate in -lz" >&5
a0b9e27f
MB
11668ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11669if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11671else
a0b9e27f 11672 ac_save_LIBS="$LIBS"
21d1c967 11673LIBS="-lz $LIBS"
a0b9e27f 11674cat > conftest.$ac_ext <<EOF
89e3b3e4 11675#line 11676 "configure"
ab9b9eab 11676#include "confdefs.h"
21d1c967
GD
11677/* Override any gcc2 internal prototype to avoid an error. */
11678/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11679 builtin and then its argument prototype would still apply. */
11680char deflate();
11681
11682int main() {
11683deflate()
11684; return 0; }
11685EOF
89e3b3e4 11686if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11687 rm -rf conftest*
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11689else
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11694fi
a0b9e27f
MB
11695rm -f conftest*
11696LIBS="$ac_save_LIBS"
698dcdb6 11697
698dcdb6 11698fi
a0b9e27f
MB
11699if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701 ZLIB_LINK=" -lz"
11702else
11703 echo "$ac_t""no" 1>&6
11704fi
698dcdb6 11705
d643b80e 11706 fi
247f5006 11707
21d1c967
GD
11708 if test "x$ZLIB_LINK" = "x" ; then
11709 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11710 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11711 else
d643b80e 11712 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11713 wxUSE_ZLIB=builtin
11714 fi
11715 else
11716 wxUSE_ZLIB=sys
11717 fi
11718 fi
11719
11720 if test "$wxUSE_ZLIB" = "builtin" ; then
11721 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11722 fi
ab9b9eab
VZ
11723fi
11724
8284b0c5 11725
21d1c967
GD
11726PNG_INCLUDE=
11727PNG_LINK=
11728if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11729 cat >> confdefs.h <<\EOF
21d1c967 11730#define wxUSE_LIBPNG 1
a0b9e27f 11731EOF
90dd450c 11732
8284b0c5 11733
21d1c967 11734 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11735 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11736 wxUSE_LIBPNG=sys
11737 fi
90dd450c 11738
21d1c967 11739 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11740 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11741 wxUSE_LIBPNG=builtin
11742 fi
11743
11744 if test "$wxUSE_MGL" != 1 ; then
11745 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11746 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
89e3b3e4 11747echo "configure:11748: checking for png.h > 0.90" >&5
5d3f766d
VZ
11748if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11750else
11751 if test "$cross_compiling" = yes; then
89e6bf6d 11752 unset ac_cv_header_png_h
5d3f766d
VZ
11753
11754else
11755 cat > conftest.$ac_ext <<EOF
89e3b3e4 11756#line 11757 "configure"
5d3f766d
VZ
11757#include "confdefs.h"
11758
11759 #include <png.h>
11760 #include <stdio.h>
11761
11762 int main()
11763 {
11764 FILE *f=fopen("conftestval", "w");
11765 if (!f) exit(1);
11766 fprintf(f, "%s",
11767 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11768 exit(0);
11769 }
11770
11771EOF
89e3b3e4 11772if { (eval echo configure:11773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11773then
11774 ac_cv_header_png_h=`cat conftestval`
11775else
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 rm -fr conftest*
11779 ac_cv_header_png_h=no
11780fi
11781rm -fr conftest*
11782fi
11783
11784
11785fi
11786
11787echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11788 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11789echo $ac_n "checking for png.h""... $ac_c" 1>&6
89e3b3e4 11790echo "configure:11791: checking for png.h" >&5
89e6bf6d
VZ
11791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11793else
11794 cat > conftest.$ac_ext <<EOF
89e3b3e4 11795#line 11796 "configure"
89e6bf6d
VZ
11796#include "confdefs.h"
11797#include <png.h>
11798EOF
11799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 11800{ (eval echo configure:11801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11802if test -z "$ac_err"; then
11803 rm -rf conftest*
11804 eval "ac_cv_header_$ac_safe=yes"
11805else
11806 echo "$ac_err" >&5
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 rm -rf conftest*
11810 eval "ac_cv_header_$ac_safe=no"
11811fi
11812rm -f conftest*
11813fi
11814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 :
11817else
11818 echo "$ac_t""no" 1>&6
11819fi
11820
5d3f766d
VZ
11821
11822 if test "$ac_cv_header_png_h" = "yes"; then
11823 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
89e3b3e4 11824echo "configure:11825: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11825ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11826if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11828else
a0b9e27f 11829 ac_save_LIBS="$LIBS"
21d1c967 11830LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11831cat > conftest.$ac_ext <<EOF
89e3b3e4 11832#line 11833 "configure"
90dd450c 11833#include "confdefs.h"
21d1c967
GD
11834/* Override any gcc2 internal prototype to avoid an error. */
11835/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11836 builtin and then its argument prototype would still apply. */
11837char png_check_sig();
90dd450c 11838
a0b9e27f
MB
11839int main() {
11840png_check_sig()
11841; return 0; }
11842EOF
89e3b3e4 11843if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11844 rm -rf conftest*
11845 eval "ac_cv_lib_$ac_lib_var=yes"
11846else
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 rm -rf conftest*
11850 eval "ac_cv_lib_$ac_lib_var=no"
11851fi
11852rm -f conftest*
11853LIBS="$ac_save_LIBS"
247f5006 11854
90dd450c 11855fi
a0b9e27f
MB
11856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 PNG_LINK=" -lpng"
11859else
11860 echo "$ac_t""no" 1>&6
11861fi
90dd450c 11862
5d3f766d 11863 fi
247f5006 11864
21d1c967
GD
11865 if test "x$PNG_LINK" = "x" ; then
11866 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11867 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11868 else
0c98a14e 11869 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11870 wxUSE_LIBPNG=builtin
11871 fi
11872 else
2b5f62a0 11873 wxUSE_LIBPNG=sys
21d1c967
GD
11874 fi
11875 fi
11876 fi
90dd450c 11877
21d1c967
GD
11878 if test "$wxUSE_LIBPNG" = "builtin" ; then
11879 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11880 fi
90dd450c 11881
21d1c967 11882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11883fi
11884
8284b0c5 11885
21d1c967
GD
11886JPEG_INCLUDE=
11887JPEG_LINK=
11888if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11889 cat >> confdefs.h <<\EOF
21d1c967 11890#define wxUSE_LIBJPEG 1
a0b9e27f 11891EOF
90dd450c 11892
8284b0c5 11893
21d1c967 11894 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11895 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11896 wxUSE_LIBJPEG=sys
11897 fi
90dd450c 11898
21d1c967
GD
11899 if test "$wxUSE_MGL" != 1 ; then
11900 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11901 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
89e3b3e4 11902echo "configure:11903: checking for jpeglib.h" >&5
a0b9e27f
MB
11903 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11904 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11905else
a0b9e27f 11906 cat > conftest.$ac_ext <<EOF
89e3b3e4 11907#line 11908 "configure"
21d1c967 11908#include "confdefs.h"
90dd450c 11909
21d1c967
GD
11910 #undef HAVE_STDLIB_H
11911 #include <stdio.h>
11912 #include <jpeglib.h>
a0b9e27f
MB
11913
11914int main() {
90dd450c 11915
a0b9e27f
MB
11916
11917; return 0; }
11918EOF
89e3b3e4 11919if { (eval echo configure:11920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11920 rm -rf conftest*
21d1c967 11921 ac_cv_header_jpeglib_h=yes
90dd450c 11922else
a0b9e27f
MB
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 ac_cv_header_jpeglib_h=no
11927
90dd450c 11928fi
a0b9e27f
MB
11929rm -f conftest*
11930
90dd450c
VZ
11931fi
11932
a0b9e27f 11933 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11934
21d1c967 11935 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11936 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
89e3b3e4 11937echo "configure:11938: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11938ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11939if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11941else
a0b9e27f 11942 ac_save_LIBS="$LIBS"
21d1c967 11943LIBS="-ljpeg $LIBS"
a0b9e27f 11944cat > conftest.$ac_ext <<EOF
89e3b3e4 11945#line 11946 "configure"
21d1c967
GD
11946#include "confdefs.h"
11947/* Override any gcc2 internal prototype to avoid an error. */
11948/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11949 builtin and then its argument prototype would still apply. */
11950char jpeg_read_header();
11951
11952int main() {
11953jpeg_read_header()
11954; return 0; }
11955EOF
89e3b3e4 11956if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11957 rm -rf conftest*
11958 eval "ac_cv_lib_$ac_lib_var=yes"
11959else
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11962 rm -rf conftest*
11963 eval "ac_cv_lib_$ac_lib_var=no"
11964fi
11965rm -f conftest*
11966LIBS="$ac_save_LIBS"
11967
11968fi
11969if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11970 echo "$ac_t""yes" 1>&6
21d1c967 11971 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
11972else
11973 echo "$ac_t""no" 1>&6
90dd450c
VZ
11974fi
11975
21d1c967 11976 fi
90dd450c 11977
21d1c967
GD
11978 if test "x$JPEG_LINK" = "x" ; then
11979 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 11980 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11981 else
a0b9e27f 11982 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11983 wxUSE_LIBJPEG=builtin
11984 fi
11985 else
11986 wxUSE_LIBJPEG=sys
11987 fi
11988 fi
11989 fi
90dd450c 11990
21d1c967
GD
11991 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11992 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11993 fi
11994fi
90dd450c 11995
8284b0c5 11996
21d1c967
GD
11997TIFF_INCLUDE=
11998TIFF_LINK=
2b5f62a0 11999TIFF_PREREQ_LINKS=-lm
21d1c967 12000if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12001 cat >> confdefs.h <<\EOF
21d1c967 12002#define wxUSE_LIBTIFF 1
a0b9e27f 12003EOF
21d1c967 12004
8284b0c5 12005
21d1c967 12006 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12007 if test "$wxUSE_LIBJPEG" = "sys"; then
12008 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12009 fi
12010 if test "$wxUSE_ZLIB" = "sys"; then
12011 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12012 fi
a0b9e27f
MB
12013 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12014echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
89e3b3e4 12015echo "configure:12016: checking for tiffio.h" >&5
a0b9e27f
MB
12016if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12018else
12019 cat > conftest.$ac_ext <<EOF
89e3b3e4 12020#line 12021 "configure"
247f5006
VZ
12021#include "confdefs.h"
12022#include <tiffio.h>
a0b9e27f
MB
12023EOF
12024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 12025{ (eval echo configure:12026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12026ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12027if test -z "$ac_err"; then
12028 rm -rf conftest*
12029 eval "ac_cv_header_$ac_safe=yes"
12030else
12031 echo "$ac_err" >&5
12032 echo "configure: failed program was:" >&5
21d1c967 12033 cat conftest.$ac_ext >&5
a0b9e27f
MB
12034 rm -rf conftest*
12035 eval "ac_cv_header_$ac_safe=no"
21d1c967 12036fi
a0b9e27f 12037rm -f conftest*
21d1c967 12038fi
a0b9e27f
MB
12039if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12040 echo "$ac_t""yes" 1>&6
12041 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
89e3b3e4 12042echo "configure:12043: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12043ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12044if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12045 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12046else
a0b9e27f 12047 ac_save_LIBS="$LIBS"
2b5f62a0 12048LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12049cat > conftest.$ac_ext <<EOF
89e3b3e4 12050#line 12051 "configure"
ab9b9eab
VZ
12051#include "confdefs.h"
12052/* Override any gcc2 internal prototype to avoid an error. */
12053/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12054 builtin and then its argument prototype would still apply. */
12055char TIFFError();
ab9b9eab 12056
a0b9e27f
MB
12057int main() {
12058TIFFError()
12059; return 0; }
12060EOF
89e3b3e4 12061if { (eval echo configure:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12062 rm -rf conftest*
12063 eval "ac_cv_lib_$ac_lib_var=yes"
12064else
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12067 rm -rf conftest*
12068 eval "ac_cv_lib_$ac_lib_var=no"
12069fi
12070rm -f conftest*
12071LIBS="$ac_save_LIBS"
247f5006 12072
21d1c967 12073fi
a0b9e27f
MB
12074if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12075 echo "$ac_t""yes" 1>&6
12076 TIFF_LINK=" -ltiff"
12077else
12078 echo "$ac_t""no" 1>&6
12079fi
cd6d6d5b 12080
a0b9e27f
MB
12081
12082else
12083 echo "$ac_t""no" 1>&6
12084fi
8284b0c5 12085
247f5006 12086
21d1c967
GD
12087 if test "x$TIFF_LINK" = "x" ; then
12088 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12089 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12090 else
a0b9e27f 12091 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12092 wxUSE_LIBTIFF=builtin
d8356fa3 12093 fi
d8356fa3 12094 else
21d1c967 12095 wxUSE_LIBTIFF=sys
d8356fa3 12096 fi
21d1c967 12097 fi
d8356fa3 12098
21d1c967
GD
12099 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12100 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12101 fi
21d1c967 12102fi
10f2d63a 12103
8284b0c5 12104
21d1c967 12105AFMINSTALL=
2b5f62a0 12106WIN32INSTALL=
90dd450c 12107
21d1c967
GD
12108TOOLKIT=
12109TOOLKIT_INCLUDE=
12110WIDGET_SET=
12111
12112if test "$USE_WIN32" = 1 ; then
a0b9e27f 12113 for ac_hdr in w32api.h
21d1c967 12114do
a0b9e27f
MB
12115ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12116echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 12117echo "configure:12118: checking for $ac_hdr" >&5
a0b9e27f
MB
12118if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120else
12121 cat > conftest.$ac_ext <<EOF
89e3b3e4 12122#line 12123 "configure"
247f5006 12123#include "confdefs.h"
a0b9e27f
MB
12124#include <$ac_hdr>
12125EOF
12126ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 12127{ (eval echo configure:12128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12128ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12129if test -z "$ac_err"; then
12130 rm -rf conftest*
12131 eval "ac_cv_header_$ac_safe=yes"
12132else
12133 echo "$ac_err" >&5
12134 echo "configure: failed program was:" >&5
f79bd02d 12135 cat conftest.$ac_ext >&5
a0b9e27f
MB
12136 rm -rf conftest*
12137 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12138fi
a0b9e27f 12139rm -f conftest*
21d1c967 12140fi
a0b9e27f
MB
12141if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12144 cat >> confdefs.h <<EOF
12145#define $ac_tr_hdr 1
12146EOF
12147
12148else
12149 echo "$ac_t""no" 1>&6
21d1c967
GD
12150fi
12151done
f79bd02d 12152
a0b9e27f
MB
12153 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12154echo $ac_n "checking for windows.h""... $ac_c" 1>&6
89e3b3e4 12155echo "configure:12156: checking for windows.h" >&5
a0b9e27f
MB
12156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12158else
a0b9e27f 12159 cat > conftest.$ac_ext <<EOF
89e3b3e4 12160#line 12161 "configure"
247f5006
VZ
12161#include "confdefs.h"
12162#include <windows.h>
a0b9e27f
MB
12163EOF
12164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 12165{ (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12167if test -z "$ac_err"; then
12168 rm -rf conftest*
12169 eval "ac_cv_header_$ac_safe=yes"
12170else
12171 echo "$ac_err" >&5
12172 echo "configure: failed program was:" >&5
90dd450c 12173 cat conftest.$ac_ext >&5
a0b9e27f
MB
12174 rm -rf conftest*
12175 eval "ac_cv_header_$ac_safe=no"
90dd450c 12176fi
a0b9e27f 12177rm -f conftest*
90dd450c 12178fi
a0b9e27f
MB
12179if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12180 echo "$ac_t""yes" 1>&6
21d1c967 12181 :
90dd450c 12182else
a0b9e27f 12183 echo "$ac_t""no" 1>&6
21d1c967 12184
a0b9e27f
MB
12185 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12186
5c6fa7d2 12187fi
7b4a847f 12188
5c6fa7d2 12189
a0b9e27f 12190 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
89e3b3e4 12191echo "configure:12192: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12192if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12193 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12194else
a0b9e27f
MB
12195
12196 cat > conftest.$ac_ext <<EOF
89e3b3e4 12197#line 12198 "configure"
f79bd02d 12198#include "confdefs.h"
21d1c967 12199#include <w32api.h>
a0b9e27f 12200int main() {
f79bd02d 12201
21d1c967
GD
12202 #define wxCHECK_W32API_VERSION( major, minor ) \
12203 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12204 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12205 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12206
12207 #if !wxCHECK_W32API_VERSION(1,1)
12208 #error You need w32api 1.1 or newer
12209 #endif
a0b9e27f
MB
12210
12211; return 0; }
12212EOF
89e3b3e4 12213if { (eval echo configure:12214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12214 rm -rf conftest*
12215
21d1c967 12216 wx_cv_w32api_win32_ie=yes
a0b9e27f 12217
f79bd02d 12218else
a0b9e27f
MB
12219 echo "configure: failed program was:" >&5
12220 cat conftest.$ac_ext >&5
12221 rm -rf conftest*
12222
21d1c967 12223 wx_cv_w32api_win32_ie=no
a0b9e27f 12224
5c6fa7d2 12225fi
a0b9e27f
MB
12226rm -f conftest*
12227
247f5006 12228fi
a0b9e27f
MB
12229
12230echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12231 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12232 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12233 fi
f79bd02d 12234
21d1c967
GD
12235 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12236
12237 case "${host}" in
12238 *-*-cygwin* )
12239 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12240 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12241 esac
f79bd02d 12242
21d1c967
GD
12243 if test "$wxUSE_ODBC" = "yes" ; then
12244 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12245 fi
f79bd02d 12246
21d1c967
GD
12247 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12248 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12249
12250 WIN32INSTALL=win32install
f79bd02d 12251fi
f79bd02d 12252
b2fee376 12253if test "$USE_DARWIN" = 1; then
50bcbd3d 12254 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12255 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12256 else
12257 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12258 fi
12259fi
12260
21d1c967
GD
12261if test "$wxUSE_GUI" = "yes"; then
12262 USE_GUI=1
f79bd02d 12263
21d1c967 12264 GUI_TK_LIBRARY=
f79bd02d 12265
21d1c967
GD
12266 WXGTK12=
12267 WXGTK127=
12268 WXGTK20=
f79bd02d 12269
21d1c967
GD
12270 if test "$wxUSE_MSW" = 1 ; then
12271 TOOLKIT=MSW
12272 GUIDIST=MSW_DIST
f79bd02d 12273
89e6bf6d 12274 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12275 fi
12276
21d1c967 12277 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12278 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
89e3b3e4 12279echo "configure:12280: checking for GTK+ version" >&5
21d1c967
GD
12280
12281 gtk_version_cached=1
a0b9e27f
MB
12282 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12283 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12284else
a0b9e27f 12285
21d1c967 12286 gtk_version_cached=0
a0b9e27f 12287 echo "$ac_t""" 1>&6
f79bd02d 12288
21d1c967
GD
12289 GTK_MODULES=
12290 if test "$wxUSE_THREADS" = "yes"; then
12291 GTK_MODULES=gthread
12292 fi
f79bd02d 12293
2b5f62a0 12294 wx_cv_lib_gtk=
21d1c967
GD
12295 if test "x$wxUSE_GTK2" = "xyes"; then
12296 # Check whether --enable-gtktest or --disable-gtktest was given.
12297if test "${enable_gtktest+set}" = set; then
12298 enableval="$enable_gtktest"
a0b9e27f 12299 :
f79bd02d 12300else
21d1c967 12301 enable_gtktest=yes
a0b9e27f
MB
12302fi
12303
f79bd02d 12304
21d1c967
GD
12305 pkg_config_args=gtk+-2.0
12306 for module in . $GTK_MODULES
12307 do
12308 case "$module" in
a0b9e27f 12309 gthread)
21d1c967
GD
12310 pkg_config_args="$pkg_config_args gthread-2.0"
12311 ;;
12312 esac
12313 done
12314
12315 no_gtk=""
f79bd02d 12316
21d1c967
GD
12317 # Extract the first word of "pkg-config", so it can be a program name with args.
12318set dummy pkg-config; ac_word=$2
a0b9e27f 12319echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 12320echo "configure:12321: checking for $ac_word" >&5
a0b9e27f
MB
12321if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12323else
a0b9e27f
MB
12324 case "$PKG_CONFIG" in
12325 /*)
21d1c967
GD
12326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12327 ;;
a0b9e27f
MB
12328 ?:/*)
12329 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12330 ;;
21d1c967 12331 *)
a0b9e27f
MB
12332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12333 ac_dummy="$PATH"
12334 for ac_dir in $ac_dummy; do
12335 test -z "$ac_dir" && ac_dir=.
12336 if test -f $ac_dir/$ac_word; then
12337 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12338 break
12339 fi
12340 done
12341 IFS="$ac_save_ifs"
21d1c967
GD
12342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12343 ;;
12344esac
f79bd02d 12345fi
a0b9e27f 12346PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12347if test -n "$PKG_CONFIG"; then
a0b9e27f 12348 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12349else
a0b9e27f 12350 echo "$ac_t""no" 1>&6
f79bd02d
JS
12351fi
12352
8284b0c5 12353
21d1c967
GD
12354 if test x$PKG_CONFIG != xno ; then
12355 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12356 :
12357 else
12358 echo *** pkg-config too old; version 0.7 or better required.
12359 no_gtk=yes
12360 PKG_CONFIG=no
12361 fi
12362 else
12363 no_gtk=yes
12364 fi
f79bd02d 12365
21d1c967 12366 min_gtk_version=2.0.0
a0b9e27f 12367 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
89e3b3e4 12368echo "configure:12369: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12369
21d1c967
GD
12370 if test x$PKG_CONFIG != xno ; then
12371 ## don't try to run the test against uninstalled libtool libs
12372 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12373 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12374 enable_gtktest=no
12375 fi
f79bd02d 12376
21d1c967
GD
12377 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12378 :
12379 else
12380 no_gtk=yes
12381 fi
12382 fi
f79bd02d 12383
21d1c967
GD
12384 if test x"$no_gtk" = x ; then
12385 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12386 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12387 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12389 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12391 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12393 if test "x$enable_gtktest" = "xyes" ; then
12394 ac_save_CFLAGS="$CFLAGS"
12395 ac_save_LIBS="$LIBS"
12396 CFLAGS="$CFLAGS $GTK_CFLAGS"
12397 LIBS="$GTK_LIBS $LIBS"
12398 rm -f conf.gtktest
12399 if test "$cross_compiling" = yes; then
12400 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12401else
a0b9e27f 12402 cat > conftest.$ac_ext <<EOF
89e3b3e4 12403#line 12404 "configure"
f79bd02d 12404#include "confdefs.h"
f79bd02d 12405
21d1c967
GD
12406#include <gtk/gtk.h>
12407#include <stdio.h>
12408#include <stdlib.h>
f79bd02d 12409
a0b9e27f 12410int
21d1c967
GD
12411main ()
12412{
12413 int major, minor, micro;
12414 char *tmp_version;
f79bd02d 12415
21d1c967 12416 system ("touch conf.gtktest");
f79bd02d 12417
21d1c967
GD
12418 /* HP/UX 9 (%@#!) writes to sscanf strings */
12419 tmp_version = g_strdup("$min_gtk_version");
12420 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12421 printf("%s, bad version string\n", "$min_gtk_version");
12422 exit(1);
12423 }
f79bd02d 12424
21d1c967
GD
12425 if ((gtk_major_version != $gtk_config_major_version) ||
12426 (gtk_minor_version != $gtk_config_minor_version) ||
12427 (gtk_micro_version != $gtk_config_micro_version))
12428 {
a0b9e27f 12429 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12430 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12431 gtk_major_version, gtk_minor_version, gtk_micro_version);
12432 printf ("*** was found! If pkg-config was correct, then it is best\n");
12433 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12434 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12435 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12436 printf("*** required on your system.\n");
12437 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12438 printf("*** to point to the correct configuration files\n");
a0b9e27f 12439 }
21d1c967
GD
12440 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12441 (gtk_minor_version != GTK_MINOR_VERSION) ||
12442 (gtk_micro_version != GTK_MICRO_VERSION))
12443 {
12444 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12445 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12446 printf("*** library (version %d.%d.%d)\n",
12447 gtk_major_version, gtk_minor_version, gtk_micro_version);
12448 }
12449 else
12450 {
12451 if ((gtk_major_version > major) ||
12452 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12453 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12454 {
12455 return 0;
12456 }
12457 else
12458 {
12459 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12460 gtk_major_version, gtk_minor_version, gtk_micro_version);
12461 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12462 major, minor, micro);
12463 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12464 printf("***\n");
12465 printf("*** If you have already installed a sufficiently new version, this error\n");
12466 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12467 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12468 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12469 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12470 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12471 printf("*** so that the correct libraries are found at run-time))\n");
12472 }
12473 }
12474 return 1;
12475}
f79bd02d 12476
a0b9e27f 12477EOF
89e3b3e4 12478if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12479then
21d1c967 12480 :
f79bd02d 12481else
a0b9e27f
MB
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 rm -fr conftest*
12485 no_gtk=yes
f79bd02d 12486fi
a0b9e27f 12487rm -fr conftest*
f79bd02d 12488fi
a0b9e27f 12489
21d1c967
GD
12490 CFLAGS="$ac_save_CFLAGS"
12491 LIBS="$ac_save_LIBS"
12492 fi
12493 fi
12494 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12495 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12496 wx_cv_lib_gtk=2.0
21d1c967 12497 else
a0b9e27f 12498 echo "$ac_t""no" 1>&6
21d1c967
GD
12499 if test "$PKG_CONFIG" = "no" ; then
12500 echo "*** A new enough version of pkg-config was not found."
12501 echo "*** See http://pkgconfig.sourceforge.net"
12502 else
12503 if test -f conf.gtktest ; then
12504 :
12505 else
12506 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12507 ac_save_CFLAGS="$CFLAGS"
12508 ac_save_LIBS="$LIBS"
21d1c967
GD
12509 CFLAGS="$CFLAGS $GTK_CFLAGS"
12510 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12511 cat > conftest.$ac_ext <<EOF
89e3b3e4 12512#line 12513 "configure"
f79bd02d 12513#include "confdefs.h"
21d1c967
GD
12514
12515#include <gtk/gtk.h>
12516#include <stdio.h>
f79bd02d 12517
a0b9e27f
MB
12518int main() {
12519 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12520; return 0; }
12521EOF
89e3b3e4 12522if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12523 rm -rf conftest*
21d1c967
GD
12524 echo "*** The test program compiled, but did not run. This usually means"
12525 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12526 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12527 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12528 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12529 echo "*** is required on your system"
12530 echo "***"
12531 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12532 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12533else
a0b9e27f
MB
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12538 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12539fi
a0b9e27f 12540rm -f conftest*
21d1c967
GD
12541 CFLAGS="$ac_save_CFLAGS"
12542 LIBS="$ac_save_LIBS"
12543 fi
12544 fi
12545 GTK_CFLAGS=""
12546 GTK_LIBS=""
12547 :
12548 fi
a0b9e27f
MB
12549
12550
21d1c967 12551 rm -f conf.gtktest
f79bd02d 12552
2b5f62a0 12553 else
a0b9e27f 12554 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12555if test "${with_gtk_prefix+set}" = set; then
12556 withval="$with_gtk_prefix"
12557 gtk_config_prefix="$withval"
12558else
12559 gtk_config_prefix=""
a0b9e27f 12560fi
f79bd02d 12561
21d1c967
GD
12562# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12563if test "${with_gtk_exec_prefix+set}" = set; then
12564 withval="$with_gtk_exec_prefix"
12565 gtk_config_exec_prefix="$withval"
12566else
12567 gtk_config_exec_prefix=""
a0b9e27f
MB
12568fi
12569
21d1c967
GD
12570# Check whether --enable-gtktest or --disable-gtktest was given.
12571if test "${enable_gtktest+set}" = set; then
12572 enableval="$enable_gtktest"
a0b9e27f 12573 :
21d1c967
GD
12574else
12575 enable_gtktest=yes
a0b9e27f
MB
12576fi
12577
21d1c967
GD
12578
12579 for module in . $GTK_MODULES
12580 do
12581 case "$module" in
a0b9e27f 12582 gthread)
21d1c967
GD
12583 gtk_config_args="$gtk_config_args gthread"
12584 ;;
12585 esac
12586 done
12587
12588 if test x$gtk_config_exec_prefix != x ; then
12589 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12590 if test x${GTK_CONFIG+set} != xset ; then
12591 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12592 fi
12593 fi
12594 if test x$gtk_config_prefix != x ; then
12595 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12596 if test x${GTK_CONFIG+set} != xset ; then
12597 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12598 fi
12599 fi
12600
12601 # Extract the first word of "gtk-config", so it can be a program name with args.
12602set dummy gtk-config; ac_word=$2
a0b9e27f 12603echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 12604echo "configure:12605: checking for $ac_word" >&5
a0b9e27f
MB
12605if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12606 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12607else
a0b9e27f
MB
12608 case "$GTK_CONFIG" in
12609 /*)
21d1c967
GD
12610 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12611 ;;
a0b9e27f
MB
12612 ?:/*)
12613 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12614 ;;
21d1c967 12615 *)
a0b9e27f
MB
12616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12617 ac_dummy="$PATH"
12618 for ac_dir in $ac_dummy; do
12619 test -z "$ac_dir" && ac_dir=.
12620 if test -f $ac_dir/$ac_word; then
12621 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12622 break
12623 fi
12624 done
12625 IFS="$ac_save_ifs"
21d1c967
GD
12626 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12627 ;;
12628esac
12629fi
a0b9e27f 12630GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12631if test -n "$GTK_CONFIG"; then
a0b9e27f 12632 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12633else
a0b9e27f 12634 echo "$ac_t""no" 1>&6
21d1c967
GD
12635fi
12636
12637 min_gtk_version=1.2.7
a0b9e27f 12638 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
89e3b3e4 12639echo "configure:12640: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12640 no_gtk=""
12641 if test "$GTK_CONFIG" = "no" ; then
12642 no_gtk=yes
12643 else
12644 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12645 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12646 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12647 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12648 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12649 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12650 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12651 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12652 if test "x$enable_gtktest" = "xyes" ; then
12653 ac_save_CFLAGS="$CFLAGS"
12654 ac_save_LIBS="$LIBS"
12655 CFLAGS="$CFLAGS $GTK_CFLAGS"
12656 LIBS="$GTK_LIBS $LIBS"
12657 rm -f conf.gtktest
12658 if test "$cross_compiling" = yes; then
12659 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12660else
a0b9e27f 12661 cat > conftest.$ac_ext <<EOF
89e3b3e4 12662#line 12663 "configure"
f79bd02d
JS
12663#include "confdefs.h"
12664
21d1c967
GD
12665#include <gtk/gtk.h>
12666#include <stdio.h>
12667#include <stdlib.h>
f79bd02d 12668
a0b9e27f 12669int
21d1c967
GD
12670main ()
12671{
12672 int major, minor, micro;
12673 char *tmp_version;
12674
12675 system ("touch conf.gtktest");
12676
12677 /* HP/UX 9 (%@#!) writes to sscanf strings */
12678 tmp_version = g_strdup("$min_gtk_version");
12679 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12680 printf("%s, bad version string\n", "$min_gtk_version");
12681 exit(1);
12682 }
90dd450c 12683
21d1c967
GD
12684 if ((gtk_major_version != $gtk_config_major_version) ||
12685 (gtk_minor_version != $gtk_config_minor_version) ||
12686 (gtk_micro_version != $gtk_config_micro_version))
12687 {
a0b9e27f 12688 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12689 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12690 gtk_major_version, gtk_minor_version, gtk_micro_version);
12691 printf ("*** was found! If gtk-config was correct, then it is best\n");
12692 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12693 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12694 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12695 printf("*** required on your system.\n");
12696 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12697 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12698 printf("*** before re-running configure\n");
a0b9e27f 12699 }
21d1c967
GD
12700#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12701 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12702 (gtk_minor_version != GTK_MINOR_VERSION) ||
12703 (gtk_micro_version != GTK_MICRO_VERSION))
12704 {
12705 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12706 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12707 printf("*** library (version %d.%d.%d)\n",
12708 gtk_major_version, gtk_minor_version, gtk_micro_version);
12709 }
12710#endif /* defined (GTK_MAJOR_VERSION) ... */
12711 else
12712 {
12713 if ((gtk_major_version > major) ||
12714 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12715 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12716 {
12717 return 0;
12718 }
12719 else
12720 {
12721 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12722 gtk_major_version, gtk_minor_version, gtk_micro_version);
12723 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12724 major, minor, micro);
12725 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12726 printf("***\n");
12727 printf("*** If you have already installed a sufficiently new version, this error\n");
12728 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12729 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12730 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12731 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12732 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12733 printf("*** so that the correct libraries are found at run-time))\n");
12734 }
12735 }
12736 return 1;
12737}
12738
a0b9e27f 12739EOF
89e3b3e4 12740if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12741then
21d1c967
GD
12742 :
12743else
a0b9e27f
MB
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -fr conftest*
12747 no_gtk=yes
21d1c967 12748fi
a0b9e27f 12749rm -fr conftest*
21d1c967 12750fi
a0b9e27f 12751
21d1c967
GD
12752 CFLAGS="$ac_save_CFLAGS"
12753 LIBS="$ac_save_LIBS"
12754 fi
12755 fi
12756 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12757 echo "$ac_t""yes" 1>&6
12758 wx_cv_lib_gtk=1.2.7
21d1c967 12759 else
a0b9e27f 12760 echo "$ac_t""no" 1>&6
21d1c967
GD
12761 if test "$GTK_CONFIG" = "no" ; then
12762 echo "*** The gtk-config script installed by GTK could not be found"
12763 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12764 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12765 echo "*** full path to gtk-config."
12766 else
12767 if test -f conf.gtktest ; then
12768 :
12769 else
12770 echo "*** Could not run GTK test program, checking why..."
12771 CFLAGS="$CFLAGS $GTK_CFLAGS"
12772 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12773 cat > conftest.$ac_ext <<EOF
89e3b3e4 12774#line 12775 "configure"
21d1c967
GD
12775#include "confdefs.h"
12776
12777#include <gtk/gtk.h>
12778#include <stdio.h>
12779
a0b9e27f
MB
12780int main() {
12781 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12782; return 0; }
12783EOF
89e3b3e4 12784if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12785 rm -rf conftest*
21d1c967
GD
12786 echo "*** The test program compiled, but did not run. This usually means"
12787 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12788 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12789 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12790 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12791 echo "*** is required on your system"
12792 echo "***"
12793 echo "*** If you have an old version installed, it is best to remove it, although"
12794 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12795 echo "***"
12796 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12797 echo "*** came with the system with the command"
12798 echo "***"
a0b9e27f 12799 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12800else
a0b9e27f
MB
12801 echo "configure: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12803 rm -rf conftest*
12804 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12805 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12806 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12807 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12808fi
a0b9e27f 12809rm -f conftest*
21d1c967
GD
12810 CFLAGS="$ac_save_CFLAGS"
12811 LIBS="$ac_save_LIBS"
12812 fi
12813 fi
12814 GTK_CFLAGS=""
12815 GTK_LIBS=""
12816 :
12817 fi
a0b9e27f
MB
12818
12819
21d1c967
GD
12820 rm -f conf.gtktest
12821
21d1c967 12822
2b5f62a0
VZ
12823 if test -z "$wx_cv_lib_gtk"; then
12824 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12825if test "${with_gtk_prefix+set}" = set; then
12826 withval="$with_gtk_prefix"
12827 gtk_config_prefix="$withval"
12828else
12829 gtk_config_prefix=""
a0b9e27f 12830fi
f79bd02d 12831
21d1c967
GD
12832# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12833if test "${with_gtk_exec_prefix+set}" = set; then
12834 withval="$with_gtk_exec_prefix"
12835 gtk_config_exec_prefix="$withval"
12836else
12837 gtk_config_exec_prefix=""
a0b9e27f
MB
12838fi
12839
21d1c967
GD
12840# Check whether --enable-gtktest or --disable-gtktest was given.
12841if test "${enable_gtktest+set}" = set; then
12842 enableval="$enable_gtktest"
a0b9e27f 12843 :
90dd450c 12844else
21d1c967 12845 enable_gtktest=yes
a0b9e27f
MB
12846fi
12847
21d1c967
GD
12848
12849 for module in . $GTK_MODULES
12850 do
12851 case "$module" in
a0b9e27f 12852 gthread)
21d1c967
GD
12853 gtk_config_args="$gtk_config_args gthread"
12854 ;;
12855 esac
12856 done
12857
12858 if test x$gtk_config_exec_prefix != x ; then
12859 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12860 if test x${GTK_CONFIG+set} != xset ; then
12861 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12862 fi
12863 fi
12864 if test x$gtk_config_prefix != x ; then
12865 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12866 if test x${GTK_CONFIG+set} != xset ; then
12867 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12868 fi
12869 fi
12870
12871 # Extract the first word of "gtk-config", so it can be a program name with args.
12872set dummy gtk-config; ac_word=$2
a0b9e27f 12873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 12874echo "configure:12875: checking for $ac_word" >&5
a0b9e27f
MB
12875if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12876 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12877else
a0b9e27f
MB
12878 case "$GTK_CONFIG" in
12879 /*)
21d1c967
GD
12880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12881 ;;
a0b9e27f
MB
12882 ?:/*)
12883 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12884 ;;
21d1c967 12885 *)
a0b9e27f
MB
12886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12887 ac_dummy="$PATH"
12888 for ac_dir in $ac_dummy; do
12889 test -z "$ac_dir" && ac_dir=.
12890 if test -f $ac_dir/$ac_word; then
12891 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12892 break
12893 fi
12894 done
12895 IFS="$ac_save_ifs"
21d1c967
GD
12896 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12897 ;;
12898esac
12899fi
a0b9e27f 12900GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12901if test -n "$GTK_CONFIG"; then
a0b9e27f 12902 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12903else
a0b9e27f 12904 echo "$ac_t""no" 1>&6
21d1c967
GD
12905fi
12906
12907 min_gtk_version=1.2.3
a0b9e27f 12908 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
89e3b3e4 12909echo "configure:12910: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12910 no_gtk=""
12911 if test "$GTK_CONFIG" = "no" ; then
12912 no_gtk=yes
12913 else
12914 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12915 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12916 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12918 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12920 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12922 if test "x$enable_gtktest" = "xyes" ; then
12923 ac_save_CFLAGS="$CFLAGS"
12924 ac_save_LIBS="$LIBS"
12925 CFLAGS="$CFLAGS $GTK_CFLAGS"
12926 LIBS="$GTK_LIBS $LIBS"
12927 rm -f conf.gtktest
12928 if test "$cross_compiling" = yes; then
12929 echo $ac_n "cross compiling; assumed OK... $ac_c"
12930else
a0b9e27f 12931 cat > conftest.$ac_ext <<EOF
89e3b3e4 12932#line 12933 "configure"
f79bd02d 12933#include "confdefs.h"
21d1c967
GD
12934
12935#include <gtk/gtk.h>
12936#include <stdio.h>
12937#include <stdlib.h>
12938
a0b9e27f 12939int
21d1c967
GD
12940main ()
12941{
12942 int major, minor, micro;
12943 char *tmp_version;
12944
12945 system ("touch conf.gtktest");
12946
12947 /* HP/UX 9 (%@#!) writes to sscanf strings */
12948 tmp_version = g_strdup("$min_gtk_version");
12949 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12950 printf("%s, bad version string\n", "$min_gtk_version");
12951 exit(1);
12952 }
12953
12954 if ((gtk_major_version != $gtk_config_major_version) ||
12955 (gtk_minor_version != $gtk_config_minor_version) ||
12956 (gtk_micro_version != $gtk_config_micro_version))
12957 {
a0b9e27f 12958 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12959 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12960 gtk_major_version, gtk_minor_version, gtk_micro_version);
12961 printf ("*** was found! If gtk-config was correct, then it is best\n");
12962 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12963 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12964 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12965 printf("*** required on your system.\n");
12966 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12967 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12968 printf("*** before re-running configure\n");
a0b9e27f 12969 }
21d1c967
GD
12970#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12971 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12972 (gtk_minor_version != GTK_MINOR_VERSION) ||
12973 (gtk_micro_version != GTK_MICRO_VERSION))
12974 {
12975 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12976 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12977 printf("*** library (version %d.%d.%d)\n",
12978 gtk_major_version, gtk_minor_version, gtk_micro_version);
12979 }
12980#endif /* defined (GTK_MAJOR_VERSION) ... */
12981 else
12982 {
12983 if ((gtk_major_version > major) ||
12984 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12985 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12986 {
12987 return 0;
12988 }
12989 else
12990 {
12991 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12992 gtk_major_version, gtk_minor_version, gtk_micro_version);
12993 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12994 major, minor, micro);
12995 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12996 printf("***\n");
12997 printf("*** If you have already installed a sufficiently new version, this error\n");
12998 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12999 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13000 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13001 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13002 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13003 printf("*** so that the correct libraries are found at run-time))\n");
13004 }
13005 }
13006 return 1;
13007}
13008
a0b9e27f 13009EOF
89e3b3e4 13010if { (eval echo configure:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13011then
21d1c967
GD
13012 :
13013else
a0b9e27f
MB
13014 echo "configure: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13016 rm -fr conftest*
13017 no_gtk=yes
21d1c967 13018fi
a0b9e27f 13019rm -fr conftest*
21d1c967 13020fi
a0b9e27f 13021
21d1c967
GD
13022 CFLAGS="$ac_save_CFLAGS"
13023 LIBS="$ac_save_LIBS"
13024 fi
13025 fi
13026 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13027 echo "$ac_t""yes" 1>&6
13028 wx_cv_lib_gtk=1.2.3
21d1c967 13029 else
a0b9e27f 13030 echo "$ac_t""no" 1>&6
21d1c967
GD
13031 if test "$GTK_CONFIG" = "no" ; then
13032 echo "*** The gtk-config script installed by GTK could not be found"
13033 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13034 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13035 echo "*** full path to gtk-config."
13036 else
13037 if test -f conf.gtktest ; then
13038 :
13039 else
13040 echo "*** Could not run GTK test program, checking why..."
13041 CFLAGS="$CFLAGS $GTK_CFLAGS"
13042 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13043 cat > conftest.$ac_ext <<EOF
89e3b3e4 13044#line 13045 "configure"
21d1c967
GD
13045#include "confdefs.h"
13046
13047#include <gtk/gtk.h>
13048#include <stdio.h>
f79bd02d 13049
a0b9e27f
MB
13050int main() {
13051 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13052; return 0; }
13053EOF
89e3b3e4 13054if { (eval echo configure:13055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13055 rm -rf conftest*
21d1c967
GD
13056 echo "*** The test program compiled, but did not run. This usually means"
13057 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13058 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13059 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13060 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13061 echo "*** is required on your system"
13062 echo "***"
13063 echo "*** If you have an old version installed, it is best to remove it, although"
13064 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13065 echo "***"
13066 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13067 echo "*** came with the system with the command"
13068 echo "***"
a0b9e27f 13069 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13070else
a0b9e27f
MB
13071 echo "configure: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13073 rm -rf conftest*
13074 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13075 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13076 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13077 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13078fi
a0b9e27f 13079rm -f conftest*
21d1c967
GD
13080 CFLAGS="$ac_save_CFLAGS"
13081 LIBS="$ac_save_LIBS"
13082 fi
13083 fi
13084 GTK_CFLAGS=""
13085 GTK_LIBS=""
13086 :
13087 fi
a0b9e27f
MB
13088
13089
21d1c967 13090 rm -f conf.gtktest
f79bd02d 13091
2b5f62a0 13092 fi
21d1c967
GD
13093 fi
13094
13095 if test -z "$wx_cv_lib_gtk"; then
13096 wx_cv_lib_gtk=none
13097 else
13098 wx_cv_cflags_gtk=$GTK_CFLAGS
13099 wx_cv_libs_gtk=$GTK_LIBS
13100 fi
a0b9e27f
MB
13101
13102
5c6fa7d2 13103fi
52127426 13104
8284b0c5 13105
21d1c967 13106 if test "$gtk_version_cached" = 1; then
a0b9e27f 13107 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13108 fi
13109
13110 case "$wx_cv_lib_gtk" in
13111 2.0) WXGTK20=1
2b5f62a0 13112 TOOLKIT_VERSION=2
21d1c967
GD
13113 ;;
13114 1.2.7) WXGTK127=1
13115 WXGTK12=1
13116 ;;
13117 1.2.3) WXGTK12=1
13118 ;;
a0b9e27f 13119 *) { echo "configure: error:
247f5006
VZ
13120Please check that gtk-config is in path, the directory
13121where GTK+ libraries are installed (returned by
13122'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13123equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13124 " 1>&2; exit 1; }
21d1c967
GD
13125 ;;
13126 esac
13127
b13cd66e
VZ
13128 if test "$WXGTK20" = 1; then
13129 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13130
f09359cf
VS
13131 succeeded=no
13132
13133 if test -z "$PKG_CONFIG"; then
13134 # Extract the first word of "pkg-config", so it can be a program name with args.
13135set dummy pkg-config; ac_word=$2
a0b9e27f 13136echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 13137echo "configure:13138: checking for $ac_word" >&5
a0b9e27f
MB
13138if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13140else
a0b9e27f
MB
13141 case "$PKG_CONFIG" in
13142 /*)
f09359cf
VS
13143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13144 ;;
a0b9e27f
MB
13145 ?:/*)
13146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13147 ;;
f09359cf 13148 *)
a0b9e27f
MB
13149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13150 ac_dummy="$PATH"
13151 for ac_dir in $ac_dummy; do
13152 test -z "$ac_dir" && ac_dir=.
13153 if test -f $ac_dir/$ac_word; then
13154 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13155 break
13156 fi
13157 done
13158 IFS="$ac_save_ifs"
f09359cf
VS
13159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13160 ;;
13161esac
13162fi
a0b9e27f 13163PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13164if test -n "$PKG_CONFIG"; then
a0b9e27f 13165 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13166else
a0b9e27f 13167 echo "$ac_t""no" 1>&6
f09359cf
VS
13168fi
13169
13170 fi
13171
13172 if test "$PKG_CONFIG" = "no" ; then
13173 echo "*** The pkg-config script could not be found. Make sure it is"
13174 echo "*** in your path, or set the PKG_CONFIG environment variable"
13175 echo "*** to the full path to pkg-config."
13176 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13177 else
13178 PKG_CONFIG_MIN_VERSION=0.9.0
13179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13180 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
89e3b3e4 13181echo "configure:13182: checking for pangoft2" >&5
f09359cf
VS
13182
13183 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13184 echo "$ac_t""yes" 1>&6
f09359cf
VS
13185 succeeded=yes
13186
a0b9e27f 13187 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
89e3b3e4 13188echo "configure:13189: checking PANGOFT2_CFLAGS" >&5
f09359cf 13189 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13190 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13191
a0b9e27f 13192 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
89e3b3e4 13193echo "configure:13194: checking PANGOFT2_LIBS" >&5
f09359cf 13194 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13195 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13196 else
13197 PANGOFT2_CFLAGS=""
13198 PANGOFT2_LIBS=""
a0b9e27f 13199 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13200 ## do set a variable so people can do so.
13201 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13202
f09359cf
VS
13203 fi
13204
a0b9e27f
MB
13205
13206
f09359cf
VS
13207 else
13208 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13209 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13210 fi
13211 fi
13212
13213 if test $succeeded = yes; then
a0b9e27f 13214
b13cd66e
VZ
13215 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13216 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13217
f09359cf 13218 else
a0b9e27f
MB
13219
13220 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13221 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13222
13223
f09359cf
VS
13224 fi
13225
b13cd66e 13226 fi
2b5f62a0
VZ
13227 else
13228 if test "$wxUSE_UNICODE" = "yes"; then
13229 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13230 wxUSE_UNICODE=no
13231 fi
13232 fi
13233
13234 if test "$USE_DARWIN" != 1; then
13235 for ac_func in poll
13236do
13237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 13238echo "configure:13239: checking for $ac_func" >&5
2b5f62a0
VZ
13239if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13240 echo $ac_n "(cached) $ac_c" 1>&6
13241else
13242 cat > conftest.$ac_ext <<EOF
89e3b3e4 13243#line 13244 "configure"
2b5f62a0
VZ
13244#include "confdefs.h"
13245/* System header to define __stub macros and hopefully few prototypes,
13246 which can conflict with char $ac_func(); below. */
13247#include <assert.h>
13248/* Override any gcc2 internal prototype to avoid an error. */
13249/* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251char $ac_func();
13252
13253int main() {
13254
13255/* The GNU C library defines this for functions which it implements
13256 to always fail with ENOSYS. Some functions are actually named
13257 something starting with __ and the normal name is an alias. */
13258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13259choke me
13260#else
13261$ac_func();
13262#endif
13263
13264; return 0; }
13265EOF
89e3b3e4 13266if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13267 rm -rf conftest*
13268 eval "ac_cv_func_$ac_func=yes"
13269else
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 rm -rf conftest*
13273 eval "ac_cv_func_$ac_func=no"
13274fi
13275rm -f conftest*
13276fi
13277
13278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13279 echo "$ac_t""yes" 1>&6
13280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13281 cat >> confdefs.h <<EOF
13282#define $ac_tr_func 1
13283EOF
13284
13285else
13286 echo "$ac_t""no" 1>&6
13287fi
13288done
13289
f09359cf
VS
13290 fi
13291
21d1c967
GD
13292 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13293 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13294
13295 AFMINSTALL=afminstall
13296 TOOLKIT=GTK
13297 GUIDIST=GTK_DIST
13298
a0b9e27f 13299 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
89e3b3e4 13300echo "configure:13301: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13301ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13303 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13304else
a0b9e27f 13305 ac_save_LIBS="$LIBS"
21d1c967 13306LIBS="-lgdk $LIBS"
a0b9e27f 13307cat > conftest.$ac_ext <<EOF
89e3b3e4 13308#line 13309 "configure"
90dd450c 13309#include "confdefs.h"
5c6fa7d2 13310/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13311/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13312 builtin and then its argument prototype would still apply. */
13313char gdk_im_open();
13314
13315int main() {
13316gdk_im_open()
13317; return 0; }
13318EOF
89e3b3e4 13319if { (eval echo configure:13320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13320 rm -rf conftest*
13321 eval "ac_cv_lib_$ac_lib_var=yes"
13322else
13323 echo "configure: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13325 rm -rf conftest*
13326 eval "ac_cv_lib_$ac_lib_var=no"
13327fi
13328rm -f conftest*
13329LIBS="$ac_save_LIBS"
13330
13331fi
13332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13333 echo "$ac_t""yes" 1>&6
13334 cat >> confdefs.h <<\EOF
21d1c967 13335#define HAVE_XIM 1
a0b9e27f 13336EOF
21d1c967 13337
a0b9e27f
MB
13338else
13339 echo "$ac_t""no" 1>&6
90dd450c 13340fi
1e6feb95 13341
21d1c967 13342 fi
1e6feb95 13343
21d1c967 13344 if test "$wxUSE_MGL" = 1; then
63a76696 13345 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
89e3b3e4 13346echo "configure:13347: checking for SciTech MGL library" >&5
21d1c967 13347 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13348 echo "$ac_t""not found" 1>&6
13349 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13350 else
a0b9e27f 13351 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13352 fi
13353
63a76696 13354 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
89e3b3e4 13355echo "configure:13356: checking for libmgl location" >&5
21d1c967
GD
13356 case "${host}" in
13357 *-*-linux* )
63a76696
VS
13358 if test "x$wxUSE_SHARED" = xyes ; then
13359 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13360 else
13361 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13362 fi
21d1c967
GD
13363 ;;
13364 *-pc-msdosdjgpp )
63a76696 13365 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13366 ;;
13367 *)
a0b9e27f 13368 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13369 esac
1e6feb95 13370
21d1c967 13371 mgl_lib_type=""
63a76696
VS
13372 mgl_os=""
13373
13374 for mgl_os_i in $mgl_os_candidates ; do
13375 if test "x$mgl_os" = x ; then
13376 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13377 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13378 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13379 mgl_lib_type=debug
13380 mgl_os=$mgl_os_i
13381 fi
13382 fi
13383 if test "x$mgl_lib_type" = x ; then
13384 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13385 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13386 mgl_lib_type=release
13387 mgl_os=$mgl_os_i
13388 fi
13389 fi
21d1c967 13390 fi
63a76696 13391 done
2224580a 13392
63a76696
VS
13393 if test "x$mgl_os" = x ; then
13394 echo "$ac_t""not found" 1>&6
13395 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13396 fi
13397 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13398
1d1b75ac
VZ
13399 wxUSE_UNIVERSAL="yes"
13400
21d1c967
GD
13401 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13402 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13403
90dd450c 13404 AFMINSTALL=afminstall
21d1c967
GD
13405 TOOLKIT=MGL
13406 GUIDIST=MGL_DIST
13407 fi
dad6c0ea 13408
21d1c967 13409 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13410 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
89e3b3e4 13411echo "configure:13412: checking for MicroWindows" >&5
21d1c967 13412 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13413 echo "$ac_t""not found" 1>&6
13414 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13415 else
a0b9e27f 13416 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13417 fi
f6bcfd97 13418
21d1c967 13419 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13420 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13421 else
a0b9e27f 13422 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13423 fi
0b2effe9 13424
21d1c967
GD
13425 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13426 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13427
1d1b75ac
VZ
13428 wxUSE_UNIVERSAL="yes"
13429
21d1c967
GD
13430 AFMINSTALL=afminstall
13431 TOOLKIT=MICROWIN
13432 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13433
13434 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13435 fi
f6bcfd97 13436
21d1c967 13437 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13438 # If we find X, set shell vars x_includes and x_libraries to the
13439# paths, otherwise set no_x=yes.
13440# Uses ac_ vars as temps to allow command line to override cache and checks.
13441# --without-x overrides everything else, but does not touch the cache.
13442echo $ac_n "checking for X""... $ac_c" 1>&6
89e3b3e4 13443echo "configure:13444: checking for X" >&5
d8356fa3 13444
21d1c967
GD
13445# Check whether --with-x or --without-x was given.
13446if test "${with_x+set}" = set; then
13447 withval="$with_x"
a0b9e27f
MB
13448 :
13449fi
2224580a 13450
21d1c967
GD
13451# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13452if test "x$with_x" = xno; then
13453 # The user explicitly disabled X.
13454 have_x=disabled
13455else
13456 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13457 # Both variables are already set.
13458 have_x=yes
13459 else
a0b9e27f
MB
13460if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13461 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13462else
13463 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13464ac_x_includes=NO ac_x_libraries=NO
13465rm -fr conftestdir
13466if mkdir conftestdir; then
13467 cd conftestdir
21d1c967 13468 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13469 cat > Imakefile <<'EOF'
21d1c967
GD
13470acfindx:
13471 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13472EOF
21d1c967
GD
13473 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13475 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13476 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13477 for ac_extension in a so sl; do
13478 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13479 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13480 ac_im_usrlibdir=$ac_im_libdir; break
13481 fi
13482 done
13483 # Screen out bogus values from the imake configuration. They are
13484 # bogus both because they are the default anyway, and because
13485 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13486 case "$ac_im_incroot" in
21d1c967 13487 /usr/include) ;;
a0b9e27f 13488 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13489 esac
a0b9e27f 13490 case "$ac_im_usrlibdir" in
21d1c967 13491 /usr/lib | /lib) ;;
a0b9e27f 13492 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13493 esac
13494 fi
13495 cd ..
a0b9e27f 13496 rm -fr conftestdir
21d1c967 13497fi
10f2d63a 13498
a0b9e27f
MB
13499if test "$ac_x_includes" = NO; then
13500 # Guess where to find include files, by looking for this one X11 .h file.
13501 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13502
21d1c967 13503 # First, try using that file with no special directory specified.
a0b9e27f 13504cat > conftest.$ac_ext <<EOF
89e3b3e4 13505#line 13506 "configure"
21d1c967 13506#include "confdefs.h"
a0b9e27f
MB
13507#include <$x_direct_test_include>
13508EOF
13509ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 13510{ (eval echo configure:13511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13511ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13512if test -z "$ac_err"; then
13513 rm -rf conftest*
21d1c967
GD
13514 # We can compile using X headers with no special include directory.
13515ac_x_includes=
90dd450c 13516else
a0b9e27f
MB
13517 echo "$ac_err" >&5
13518 echo "configure: failed program was:" >&5
90dd450c 13519 cat conftest.$ac_ext >&5
a0b9e27f
MB
13520 rm -rf conftest*
13521 # Look for the header file in a standard set of common directories.
13522# Check X11 before X11Rn because it is often a symlink to the current release.
13523 for ac_dir in \
13524 /usr/X11/include \
13525 /usr/X11R6/include \
13526 /usr/X11R5/include \
13527 /usr/X11R4/include \
13528 \
13529 /usr/include/X11 \
13530 /usr/include/X11R6 \
13531 /usr/include/X11R5 \
13532 /usr/include/X11R4 \
13533 \
13534 /usr/local/X11/include \
13535 /usr/local/X11R6/include \
13536 /usr/local/X11R5/include \
13537 /usr/local/X11R4/include \
13538 \
13539 /usr/local/include/X11 \
13540 /usr/local/include/X11R6 \
13541 /usr/local/include/X11R5 \
13542 /usr/local/include/X11R4 \
13543 \
13544 /usr/X386/include \
13545 /usr/x386/include \
13546 /usr/XFree86/include/X11 \
13547 \
13548 /usr/include \
13549 /usr/local/include \
13550 /usr/unsupported/include \
13551 /usr/athena/include \
13552 /usr/local/x11r5/include \
13553 /usr/lpp/Xamples/include \
13554 \
13555 /usr/openwin/include \
13556 /usr/openwin/share/include \
13557 ; \
13558 do
13559 if test -r "$ac_dir/$x_direct_test_include"; then
13560 ac_x_includes=$ac_dir
13561 break
13562 fi
13563 done
3a922bb4 13564fi
a0b9e27f
MB
13565rm -f conftest*
13566fi # $ac_x_includes = NO
10f2d63a 13567
a0b9e27f 13568if test "$ac_x_libraries" = NO; then
21d1c967 13569 # Check for the libraries.
a0b9e27f
MB
13570
13571 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13572 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13573
21d1c967
GD
13574 # See if we find them without any special options.
13575 # Don't add to $LIBS permanently.
a0b9e27f
MB
13576 ac_save_LIBS="$LIBS"
13577 LIBS="-l$x_direct_test_library $LIBS"
13578cat > conftest.$ac_ext <<EOF
89e3b3e4 13579#line 13580 "configure"
3a922bb4 13580#include "confdefs.h"
a0b9e27f
MB
13581
13582int main() {
13583${x_direct_test_function}()
13584; return 0; }
13585EOF
89e3b3e4 13586if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13587 rm -rf conftest*
13588 LIBS="$ac_save_LIBS"
21d1c967
GD
13589# We can link X programs with no special library path.
13590ac_x_libraries=
3a922bb4 13591else
a0b9e27f
MB
13592 echo "configure: failed program was:" >&5
13593 cat conftest.$ac_ext >&5
13594 rm -rf conftest*
13595 LIBS="$ac_save_LIBS"
13596# First see if replacing the include by lib works.
13597# Check X11 before X11Rn because it is often a symlink to the current release.
13598for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13599 /usr/X11/lib \
13600 /usr/X11R6/lib \
13601 /usr/X11R5/lib \
13602 /usr/X11R4/lib \
13603 \
13604 /usr/lib/X11 \
13605 /usr/lib/X11R6 \
13606 /usr/lib/X11R5 \
13607 /usr/lib/X11R4 \
13608 \
13609 /usr/local/X11/lib \
13610 /usr/local/X11R6/lib \
13611 /usr/local/X11R5/lib \
13612 /usr/local/X11R4/lib \
13613 \
13614 /usr/local/lib/X11 \
13615 /usr/local/lib/X11R6 \
13616 /usr/local/lib/X11R5 \
13617 /usr/local/lib/X11R4 \
13618 \
13619 /usr/X386/lib \
13620 /usr/x386/lib \
13621 /usr/XFree86/lib/X11 \
13622 \
13623 /usr/lib \
13624 /usr/local/lib \
13625 /usr/unsupported/lib \
13626 /usr/athena/lib \
13627 /usr/local/x11r5/lib \
13628 /usr/lpp/Xamples/lib \
13629 /lib/usr/lib/X11 \
13630 \
13631 /usr/openwin/lib \
13632 /usr/openwin/share/lib \
13633 ; \
21d1c967
GD
13634do
13635 for ac_extension in a so sl; do
a0b9e27f 13636 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13637 ac_x_libraries=$ac_dir
13638 break 2
13639 fi
13640 done
13641done
3a922bb4 13642fi
a0b9e27f
MB
13643rm -f conftest*
13644fi # $ac_x_libraries = NO
90dd450c 13645
a0b9e27f 13646if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13647 # Didn't find X anywhere. Cache the known absence of X.
13648 ac_cv_have_x="have_x=no"
13649else
13650 # Record where we found X for the cache.
13651 ac_cv_have_x="have_x=yes \
13652 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13653fi
21d1c967
GD
13654fi
13655 fi
13656 eval "$ac_cv_have_x"
13657fi # $with_x != no
90dd450c 13658
21d1c967 13659if test "$have_x" != yes; then
a0b9e27f 13660 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13661 no_x=yes
13662else
13663 # If each of the values was on the command line, it overrides each guess.
13664 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13665 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13666 # Update the cache value to reflect the command line values.
13667 ac_cv_have_x="have_x=yes \
13668 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13669 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13670fi
90dd450c 13671
21d1c967 13672if test "$no_x" = yes; then
90dd450c 13673 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13674 cat >> confdefs.h <<\EOF
90dd450c 13675#define X_DISPLAY_MISSING 1
a0b9e27f 13676EOF
90dd450c
VZ
13677
13678 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13679else
13680 if test -n "$x_includes"; then
13681 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13682 fi
3a922bb4 13683
90dd450c
VZ
13684 # It would also be nice to do this for all -L options, not just this one.
13685 if test -n "$x_libraries"; then
13686 X_LIBS="$X_LIBS -L$x_libraries"
13687 # For Solaris; some versions of Sun CC require a space after -R and
13688 # others require no space. Words are not sufficient . . . .
a0b9e27f 13689 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13690 "SunOS 5"*)
a0b9e27f 13691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
89e3b3e4 13692echo "configure:13693: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13694 cat > conftest.$ac_ext <<EOF
89e3b3e4 13695#line 13696 "configure"
90dd450c
VZ
13696#include "confdefs.h"
13697
a0b9e27f 13698int main() {
90dd450c 13699
a0b9e27f
MB
13700; return 0; }
13701EOF
89e3b3e4 13702if { (eval echo configure:13703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13703 rm -rf conftest*
90dd450c 13704 ac_R_nospace=yes
3a922bb4 13705else
a0b9e27f
MB
13706 echo "configure: failed program was:" >&5
13707 cat conftest.$ac_ext >&5
13708 rm -rf conftest*
13709 ac_R_nospace=no
3a922bb4 13710fi
a0b9e27f 13711rm -f conftest*
90dd450c 13712 if test $ac_R_nospace = yes; then
a0b9e27f 13713 echo "$ac_t""no" 1>&6
90dd450c
VZ
13714 X_LIBS="$X_LIBS -R$x_libraries"
13715 else
13716 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13717 cat > conftest.$ac_ext <<EOF
89e3b3e4 13718#line 13719 "configure"
90dd450c 13719#include "confdefs.h"
3a922bb4 13720
a0b9e27f 13721int main() {
6f754473 13722
a0b9e27f
MB
13723; return 0; }
13724EOF
89e3b3e4 13725if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13726 rm -rf conftest*
90dd450c
VZ
13727 ac_R_space=yes
13728else
a0b9e27f
MB
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 ac_R_space=no
90dd450c 13733fi
a0b9e27f 13734rm -f conftest*
90dd450c 13735 if test $ac_R_space = yes; then
a0b9e27f 13736 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13737 X_LIBS="$X_LIBS -R $x_libraries"
13738 else
a0b9e27f 13739 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13740 fi
13741 fi
a0b9e27f 13742 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13743 esac
13744 fi
13745
13746 # Check for system-dependent libraries X programs must link with.
13747 # Do this before checking for the system-independent R6 libraries
13748 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13749
90dd450c
VZ
13750 if test "$ISC" = yes; then
13751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13752 else
a0b9e27f
MB
13753 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13754 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13755 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13756 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
89e3b3e4 13757echo "configure:13758: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13758ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13759if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13761else
a0b9e27f 13762 ac_save_LIBS="$LIBS"
247f5006 13763LIBS="-ldnet $LIBS"
a0b9e27f 13764cat > conftest.$ac_ext <<EOF
89e3b3e4 13765#line 13766 "configure"
247f5006 13766#include "confdefs.h"
247f5006 13767/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13768/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13769 builtin and then its argument prototype would still apply. */
13770char dnet_ntoa();
13771
13772int main() {
13773dnet_ntoa()
13774; return 0; }
13775EOF
89e3b3e4 13776if { (eval echo configure:13777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13777 rm -rf conftest*
13778 eval "ac_cv_lib_$ac_lib_var=yes"
13779else
13780 echo "configure: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 rm -rf conftest*
13783 eval "ac_cv_lib_$ac_lib_var=no"
13784fi
13785rm -f conftest*
13786LIBS="$ac_save_LIBS"
13787
13788fi
13789if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13790 echo "$ac_t""yes" 1>&6
90dd450c 13791 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13792else
13793 echo "$ac_t""no" 1>&6
3a922bb4
RL
13794fi
13795
90dd450c 13796 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13797 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
89e3b3e4 13798echo "configure:13799: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13799ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13801 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13802else
a0b9e27f 13803 ac_save_LIBS="$LIBS"
90dd450c 13804LIBS="-ldnet_stub $LIBS"
a0b9e27f 13805cat > conftest.$ac_ext <<EOF
89e3b3e4 13806#line 13807 "configure"
90dd450c
VZ
13807#include "confdefs.h"
13808/* Override any gcc2 internal prototype to avoid an error. */
13809/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13810 builtin and then its argument prototype would still apply. */
13811char dnet_ntoa();
13812
13813int main() {
13814dnet_ntoa()
13815; return 0; }
13816EOF
89e3b3e4 13817if { (eval echo configure:13818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13818 rm -rf conftest*
13819 eval "ac_cv_lib_$ac_lib_var=yes"
13820else
13821 echo "configure: failed program was:" >&5
13822 cat conftest.$ac_ext >&5
13823 rm -rf conftest*
13824 eval "ac_cv_lib_$ac_lib_var=no"
13825fi
13826rm -f conftest*
13827LIBS="$ac_save_LIBS"
13828
13829fi
13830if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13831 echo "$ac_t""yes" 1>&6
90dd450c 13832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13833else
13834 echo "$ac_t""no" 1>&6
3a922bb4
RL
13835fi
13836
90dd450c 13837 fi
978f1259 13838
90dd450c
VZ
13839 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13840 # to get the SysV transport functions.
a0b9e27f 13841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13842 # needs -lnsl.
13843 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13844 # on Irix 5.2, according to dickey@clark.net.
13845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
89e3b3e4 13846echo "configure:13847: checking for gethostbyname" >&5
a0b9e27f
MB
13847if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13848 echo $ac_n "(cached) $ac_c" 1>&6
13849else
13850 cat > conftest.$ac_ext <<EOF
89e3b3e4 13851#line 13852 "configure"
90dd450c
VZ
13852#include "confdefs.h"
13853/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13854 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13855#include <assert.h>
13856/* Override any gcc2 internal prototype to avoid an error. */
13857/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13858 builtin and then its argument prototype would still apply. */
13859char gethostbyname();
13860
13861int main() {
13862
90dd450c
VZ
13863/* The GNU C library defines this for functions which it implements
13864 to always fail with ENOSYS. Some functions are actually named
13865 something starting with __ and the normal name is an alias. */
13866#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13867choke me
13868#else
a0b9e27f 13869gethostbyname();
90dd450c 13870#endif
978f1259 13871
a0b9e27f
MB
13872; return 0; }
13873EOF
89e3b3e4 13874if { (eval echo configure:13875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13875 rm -rf conftest*
13876 eval "ac_cv_func_gethostbyname=yes"
13877else
13878 echo "configure: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13880 rm -rf conftest*
13881 eval "ac_cv_func_gethostbyname=no"
13882fi
13883rm -f conftest*
13884fi
13885
13886if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13887 echo "$ac_t""yes" 1>&6
13888 :
13889else
13890 echo "$ac_t""no" 1>&6
13891fi
698dcdb6 13892
90dd450c 13893 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13894 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
89e3b3e4 13895echo "configure:13896: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13896ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13897if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13899else
a0b9e27f 13900 ac_save_LIBS="$LIBS"
90dd450c 13901LIBS="-lnsl $LIBS"
a0b9e27f 13902cat > conftest.$ac_ext <<EOF
89e3b3e4 13903#line 13904 "configure"
90dd450c
VZ
13904#include "confdefs.h"
13905/* Override any gcc2 internal prototype to avoid an error. */
13906/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13907 builtin and then its argument prototype would still apply. */
13908char gethostbyname();
5c6fa7d2 13909
a0b9e27f
MB
13910int main() {
13911gethostbyname()
13912; return 0; }
13913EOF
89e3b3e4 13914if { (eval echo configure:13915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13915 rm -rf conftest*
13916 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13917else
a0b9e27f
MB
13918 echo "configure: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13920 rm -rf conftest*
13921 eval "ac_cv_lib_$ac_lib_var=no"
13922fi
13923rm -f conftest*
13924LIBS="$ac_save_LIBS"
247f5006 13925
a0b9e27f
MB
13926fi
13927if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13928 echo "$ac_t""yes" 1>&6
13929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13930else
13931 echo "$ac_t""no" 1>&6
90dd450c 13932fi
b12915c1 13933
90dd450c
VZ
13934 fi
13935
13936 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13937 # socket/setsockopt and other routines are undefined under SCO ODT
13938 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13939 # on later versions), says simon@lia.di.epfl.ch: it contains
13940 # gethostby* variants that don't use the nameserver (or something).
13941 # -lsocket must be given before -lnsl if both are needed.
13942 # We assume that if connect needs -lnsl, so does gethostbyname.
13943 echo $ac_n "checking for connect""... $ac_c" 1>&6
89e3b3e4 13944echo "configure:13945: checking for connect" >&5
a0b9e27f
MB
13945if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13946 echo $ac_n "(cached) $ac_c" 1>&6
13947else
13948 cat > conftest.$ac_ext <<EOF
89e3b3e4 13949#line 13950 "configure"
55e80573 13950#include "confdefs.h"
90dd450c 13951/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13952 which can conflict with char connect(); below. */
90dd450c
VZ
13953#include <assert.h>
13954/* Override any gcc2 internal prototype to avoid an error. */
13955/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13956 builtin and then its argument prototype would still apply. */
13957char connect();
13958
13959int main() {
13960
90dd450c
VZ
13961/* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964#if defined (__stub_connect) || defined (__stub___connect)
13965choke me
13966#else
a0b9e27f 13967connect();
90dd450c
VZ
13968#endif
13969
a0b9e27f
MB
13970; return 0; }
13971EOF
89e3b3e4 13972if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13973 rm -rf conftest*
13974 eval "ac_cv_func_connect=yes"
13975else
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 rm -rf conftest*
13979 eval "ac_cv_func_connect=no"
13980fi
13981rm -f conftest*
13982fi
13983
13984if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13985 echo "$ac_t""yes" 1>&6
13986 :
13987else
13988 echo "$ac_t""no" 1>&6
13989fi
55e80573 13990
90dd450c 13991 if test $ac_cv_func_connect = no; then
a0b9e27f 13992 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
89e3b3e4 13993echo "configure:13994: checking for connect in -lsocket" >&5
a0b9e27f
MB
13994ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13997else
a0b9e27f 13998 ac_save_LIBS="$LIBS"
90dd450c 13999LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14000cat > conftest.$ac_ext <<EOF
89e3b3e4 14001#line 14002 "configure"
90dd450c
VZ
14002#include "confdefs.h"
14003/* Override any gcc2 internal prototype to avoid an error. */
14004/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14005 builtin and then its argument prototype would still apply. */
14006char connect();
14007
14008int main() {
14009connect()
14010; return 0; }
14011EOF
89e3b3e4 14012if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14013 rm -rf conftest*
14014 eval "ac_cv_lib_$ac_lib_var=yes"
14015else
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 rm -rf conftest*
14019 eval "ac_cv_lib_$ac_lib_var=no"
14020fi
14021rm -f conftest*
14022LIBS="$ac_save_LIBS"
14023
14024fi
14025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14026 echo "$ac_t""yes" 1>&6
90dd450c 14027 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14028else
14029 echo "$ac_t""no" 1>&6
90dd450c 14030fi
77e13408 14031
90dd450c 14032 fi
25d0687a 14033
a0b9e27f
MB
14034 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14035 echo $ac_n "checking for remove""... $ac_c" 1>&6
89e3b3e4 14036echo "configure:14037: checking for remove" >&5
a0b9e27f
MB
14037if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14038 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14039else
a0b9e27f 14040 cat > conftest.$ac_ext <<EOF
89e3b3e4 14041#line 14042 "configure"
90dd450c
VZ
14042#include "confdefs.h"
14043/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14044 which can conflict with char remove(); below. */
90dd450c
VZ
14045#include <assert.h>
14046/* Override any gcc2 internal prototype to avoid an error. */
14047/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14048 builtin and then its argument prototype would still apply. */
14049char remove();
14050
14051int main() {
14052
90dd450c
VZ
14053/* The GNU C library defines this for functions which it implements
14054 to always fail with ENOSYS. Some functions are actually named
14055 something starting with __ and the normal name is an alias. */
14056#if defined (__stub_remove) || defined (__stub___remove)
14057choke me
14058#else
a0b9e27f 14059remove();
90dd450c 14060#endif
55e80573 14061
a0b9e27f
MB
14062; return 0; }
14063EOF
89e3b3e4 14064if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14065 rm -rf conftest*
14066 eval "ac_cv_func_remove=yes"
14067else
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 rm -rf conftest*
14071 eval "ac_cv_func_remove=no"
14072fi
14073rm -f conftest*
14074fi
14075
14076if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14077 echo "$ac_t""yes" 1>&6
14078 :
14079else
14080 echo "$ac_t""no" 1>&6
14081fi
10f2d63a 14082
90dd450c 14083 if test $ac_cv_func_remove = no; then
a0b9e27f 14084 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
89e3b3e4 14085echo "configure:14086: checking for remove in -lposix" >&5
a0b9e27f
MB
14086ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14087if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14089else
a0b9e27f 14090 ac_save_LIBS="$LIBS"
90dd450c 14091LIBS="-lposix $LIBS"
a0b9e27f 14092cat > conftest.$ac_ext <<EOF
89e3b3e4 14093#line 14094 "configure"
90dd450c
VZ
14094#include "confdefs.h"
14095/* Override any gcc2 internal prototype to avoid an error. */
14096/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14097 builtin and then its argument prototype would still apply. */
14098char remove();
14099
14100int main() {
14101remove()
14102; return 0; }
14103EOF
89e3b3e4 14104if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14105 rm -rf conftest*
14106 eval "ac_cv_lib_$ac_lib_var=yes"
14107else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=no"
14112fi
14113rm -f conftest*
14114LIBS="$ac_save_LIBS"
14115
14116fi
14117if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
90dd450c 14119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14120else
14121 echo "$ac_t""no" 1>&6
90dd450c 14122fi
f6bcfd97 14123
6fa882bd
RR
14124 fi
14125
90dd450c 14126 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14127 echo $ac_n "checking for shmat""... $ac_c" 1>&6
89e3b3e4 14128echo "configure:14129: checking for shmat" >&5
a0b9e27f
MB
14129if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14131else
a0b9e27f 14132 cat > conftest.$ac_ext <<EOF
89e3b3e4 14133#line 14134 "configure"
90dd450c
VZ
14134#include "confdefs.h"
14135/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14136 which can conflict with char shmat(); below. */
90dd450c
VZ
14137#include <assert.h>
14138/* Override any gcc2 internal prototype to avoid an error. */
14139/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14140 builtin and then its argument prototype would still apply. */
14141char shmat();
14142
14143int main() {
14144
90dd450c
VZ
14145/* The GNU C library defines this for functions which it implements
14146 to always fail with ENOSYS. Some functions are actually named
14147 something starting with __ and the normal name is an alias. */
14148#if defined (__stub_shmat) || defined (__stub___shmat)
14149choke me
14150#else
a0b9e27f 14151shmat();
90dd450c 14152#endif
10f2d63a 14153
a0b9e27f
MB
14154; return 0; }
14155EOF
89e3b3e4 14156if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14157 rm -rf conftest*
14158 eval "ac_cv_func_shmat=yes"
14159else
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 rm -rf conftest*
14163 eval "ac_cv_func_shmat=no"
14164fi
14165rm -f conftest*
14166fi
14167
14168if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14169 echo "$ac_t""yes" 1>&6
14170 :
14171else
14172 echo "$ac_t""no" 1>&6
14173fi
d08b457b 14174
90dd450c 14175 if test $ac_cv_func_shmat = no; then
a0b9e27f 14176 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
89e3b3e4 14177echo "configure:14178: checking for shmat in -lipc" >&5
a0b9e27f
MB
14178ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14180 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14181else
a0b9e27f 14182 ac_save_LIBS="$LIBS"
90dd450c 14183LIBS="-lipc $LIBS"
a0b9e27f 14184cat > conftest.$ac_ext <<EOF
89e3b3e4 14185#line 14186 "configure"
90dd450c 14186#include "confdefs.h"
8284b0c5 14187/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14188/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14189 builtin and then its argument prototype would still apply. */
14190char shmat();
14191
14192int main() {
14193shmat()
14194; return 0; }
14195EOF
89e3b3e4 14196if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14197 rm -rf conftest*
14198 eval "ac_cv_lib_$ac_lib_var=yes"
14199else
14200 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14202 rm -rf conftest*
14203 eval "ac_cv_lib_$ac_lib_var=no"
14204fi
14205rm -f conftest*
14206LIBS="$ac_save_LIBS"
14207
14208fi
14209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14210 echo "$ac_t""yes" 1>&6
90dd450c 14211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14212else
14213 echo "$ac_t""no" 1>&6
d08b457b
GD
14214fi
14215
d558c907 14216 fi
90dd450c 14217 fi
3a922bb4 14218
90dd450c 14219 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14220 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14221 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14222 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14223 # check for ICE first), but we must link in the order -lSM -lICE or
14224 # we get undefined symbols. So assume we have SM if we have ICE.
14225 # These have to be linked with before -lX11, unlike the other
14226 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14227 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14228 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
89e3b3e4 14229echo "configure:14230: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14230ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233else
14234 ac_save_LIBS="$LIBS"
f09359cf 14235LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14236cat > conftest.$ac_ext <<EOF
89e3b3e4 14237#line 14238 "configure"
9cfadba2 14238#include "confdefs.h"
90dd450c
VZ
14239/* Override any gcc2 internal prototype to avoid an error. */
14240/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14241 builtin and then its argument prototype would still apply. */
14242char IceConnectionNumber();
14243
14244int main() {
14245IceConnectionNumber()
14246; return 0; }
14247EOF
89e3b3e4 14248if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14249 rm -rf conftest*
14250 eval "ac_cv_lib_$ac_lib_var=yes"
14251else
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14254 rm -rf conftest*
14255 eval "ac_cv_lib_$ac_lib_var=no"
14256fi
14257rm -f conftest*
14258LIBS="$ac_save_LIBS"
14259
14260fi
14261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14262 echo "$ac_t""yes" 1>&6
90dd450c 14263 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14264else
14265 echo "$ac_t""no" 1>&6
9cfadba2 14266fi
10f2d63a 14267
a0b9e27f 14268 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14269
14270fi
14271
8284b0c5 14272
90dd450c 14273 if test "$no_x" = "yes"; then
a0b9e27f 14274 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14275 fi
14276
14277 GUI_TK_LIBRARY="$X_LIBS"
14278 TOOLKIT_INCLUDE="$X_CFLAGS"
14279 AFMINSTALL=afminstall
14280 COMPILED_X_PROGRAM=0
14281
21d1c967 14282 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14283 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
89e3b3e4 14284echo "configure:14285: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14285 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14286 echo "$ac_t""not found" 1>&6
14287 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14288 else
a0b9e27f
MB
14289 echo "$ac_t""$MICROWIN" 1>&6
14290 cat >> confdefs.h <<\EOF
21d1c967 14291#define wxUSE_NANOX 1
a0b9e27f 14292EOF
21d1c967 14293
90dd450c
VZ
14294 fi
14295 fi
14296
14297 xpm_link=
a0b9e27f 14298 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
89e3b3e4 14299echo "configure:14300: checking for Xpm library" >&5
a0b9e27f 14300
90dd450c 14301ac_find_libraries=
2b5f62a0 14302for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14303 do
14304 for ac_extension in a so sl dylib; do
14305 if test -f "$ac_dir/libXpm.$ac_extension"; then
14306 ac_find_libraries=$ac_dir
14307 break 2
14308 fi
14309 done
14310 done
14311
14312 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14313
90dd450c
VZ
14314 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14315 result=$?
14316 if test $result = 0; then
14317 ac_path_to_link=""
14318 else
14319 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14320 fi
90dd450c 14321
21d1c967
GD
14322 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14323 xpm_link=" -lXpm"
a0b9e27f 14324 cat >> confdefs.h <<\EOF
21d1c967 14325#define wxHAVE_LIB_XPM 1
a0b9e27f 14326EOF
90dd450c 14327
a0b9e27f 14328 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14329 else
a0b9e27f 14330 cat > conftest.$ac_ext <<EOF
89e3b3e4 14331#line 14332 "configure"
21d1c967 14332#include "confdefs.h"
90dd450c 14333
21d1c967 14334 #include <X11/xpm.h>
a0b9e27f
MB
14335
14336int main() {
6f72b082 14337
21d1c967
GD
14338 int version;
14339 version = XpmLibraryVersion();
a0b9e27f
MB
14340
14341; return 0; }
14342EOF
89e3b3e4 14343if { (eval echo configure:14344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14344 rm -rf conftest*
14345
21d1c967 14346 xpm_link=" -lXpm"
a0b9e27f 14347 cat >> confdefs.h <<\EOF
21d1c967 14348#define wxHAVE_LIB_XPM 1
a0b9e27f 14349EOF
90dd450c 14350
a0b9e27f 14351 echo "$ac_t""found in default search path" 1>&6
21d1c967 14352 COMPILED_X_PROGRAM=0
a0b9e27f 14353
21d1c967 14354else
a0b9e27f
MB
14355 echo "configure: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 rm -rf conftest*
14358
14359 echo "$ac_t""no" 1>&6
14360 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14361
14362
6f72b082 14363fi
a0b9e27f 14364rm -f conftest*
21d1c967 14365 fi
90dd450c 14366
f7f78039 14367 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
89e3b3e4 14368echo "configure:14369: checking for XShapeQueryExtension in -lXext" >&5
f7f78039
MB
14369ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14370if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372else
14373 ac_save_LIBS="$LIBS"
14374LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14375cat > conftest.$ac_ext <<EOF
89e3b3e4 14376#line 14377 "configure"
f7f78039
MB
14377#include "confdefs.h"
14378/* Override any gcc2 internal prototype to avoid an error. */
14379/* We use char because int might match the return type of a gcc2
14380 builtin and then its argument prototype would still apply. */
14381char XShapeQueryExtension();
14382
14383int main() {
14384XShapeQueryExtension()
14385; return 0; }
14386EOF
89e3b3e4 14387if { (eval echo configure:14388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f7f78039
MB
14388 rm -rf conftest*
14389 eval "ac_cv_lib_$ac_lib_var=yes"
14390else
14391 echo "configure: failed program was:" >&5
14392 cat conftest.$ac_ext >&5
14393 rm -rf conftest*
14394 eval "ac_cv_lib_$ac_lib_var=no"
14395fi
14396rm -f conftest*
14397LIBS="$ac_save_LIBS"
14398
14399fi
14400if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14401 echo "$ac_t""yes" 1>&6
14402
14403 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14404 wxHAVE_XEXT_LIB=1
14405
14406else
14407 echo "$ac_t""no" 1>&6
14408fi
14409
14410
2b5f62a0
VZ
14411 if test "$wxUSE_UNICODE" = "yes"; then
14412
14413 succeeded=no
90dd450c 14414
2b5f62a0
VZ
14415 if test -z "$PKG_CONFIG"; then
14416 # Extract the first word of "pkg-config", so it can be a program name with args.
14417set dummy pkg-config; ac_word=$2
14418echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 14419echo "configure:14420: checking for $ac_word" >&5
2b5f62a0 14420if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14421 echo $ac_n "(cached) $ac_c" 1>&6
14422else
2b5f62a0
VZ
14423 case "$PKG_CONFIG" in
14424 /*)
14425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14426 ;;
14427 ?:/*)
14428 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14429 ;;
14430 *)
14431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14432 ac_dummy="$PATH"
14433 for ac_dir in $ac_dummy; do
14434 test -z "$ac_dir" && ac_dir=.
14435 if test -f $ac_dir/$ac_word; then
14436 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14437 break
14438 fi
14439 done
14440 IFS="$ac_save_ifs"
14441 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14442 ;;
14443esac
14444fi
14445PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14446if test -n "$PKG_CONFIG"; then
14447 echo "$ac_t""$PKG_CONFIG" 1>&6
14448else
14449 echo "$ac_t""no" 1>&6
14450fi
14451
14452 fi
14453
14454 if test "$PKG_CONFIG" = "no" ; then
14455 echo "*** The pkg-config script could not be found. Make sure it is"
14456 echo "*** in your path, or set the PKG_CONFIG environment variable"
14457 echo "*** to the full path to pkg-config."
14458 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14459 else
14460 PKG_CONFIG_MIN_VERSION=0.9.0
14461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14462 echo $ac_n "checking for pangox""... $ac_c" 1>&6
89e3b3e4 14463echo "configure:14464: checking for pangox" >&5
2b5f62a0
VZ
14464
14465 if $PKG_CONFIG --exists "pangox" ; then
14466 echo "$ac_t""yes" 1>&6
14467 succeeded=yes
14468
14469 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
89e3b3e4 14470echo "configure:14471: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14471 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14472 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14473
14474 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
89e3b3e4 14475echo "configure:14476: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14476 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14477 echo "$ac_t""$PANGOX_LIBS" 1>&6
14478 else
14479 PANGOX_CFLAGS=""
14480 PANGOX_LIBS=""
14481 ## If we have a custom action on failure, don't print errors, but
14482 ## do set a variable so people can do so.
14483 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14484
14485 fi
14486
14487
14488
14489 else
14490 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14491 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14492 fi
14493 fi
14494
14495 if test $succeeded = yes; then
14496
14497 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14498 LIBS="$LIBS $PANGOX_LIBS"
14499
14500 else
14501
14502 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14503
14504
14505 fi
14506
14507
14508 succeeded=no
14509
14510 if test -z "$PKG_CONFIG"; then
14511 # Extract the first word of "pkg-config", so it can be a program name with args.
14512set dummy pkg-config; ac_word=$2
14513echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 14514echo "configure:14515: checking for $ac_word" >&5
2b5f62a0
VZ
14515if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14517else
14518 case "$PKG_CONFIG" in
14519 /*)
14520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14521 ;;
14522 ?:/*)
14523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14524 ;;
14525 *)
14526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14527 ac_dummy="$PATH"
14528 for ac_dir in $ac_dummy; do
14529 test -z "$ac_dir" && ac_dir=.
14530 if test -f $ac_dir/$ac_word; then
14531 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14532 break
14533 fi
14534 done
14535 IFS="$ac_save_ifs"
14536 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14537 ;;
14538esac
14539fi
14540PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14541if test -n "$PKG_CONFIG"; then
14542 echo "$ac_t""$PKG_CONFIG" 1>&6
14543else
14544 echo "$ac_t""no" 1>&6
14545fi
14546
14547 fi
14548
14549 if test "$PKG_CONFIG" = "no" ; then
14550 echo "*** The pkg-config script could not be found. Make sure it is"
14551 echo "*** in your path, or set the PKG_CONFIG environment variable"
14552 echo "*** to the full path to pkg-config."
14553 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14554 else
14555 PKG_CONFIG_MIN_VERSION=0.9.0
14556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14557 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
89e3b3e4 14558echo "configure:14559: checking for pangoft2" >&5
2b5f62a0
VZ
14559
14560 if $PKG_CONFIG --exists "pangoft2" ; then
14561 echo "$ac_t""yes" 1>&6
14562 succeeded=yes
14563
14564 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
89e3b3e4 14565echo "configure:14566: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14566 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14567 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14568
14569 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
89e3b3e4 14570echo "configure:14571: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14571 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14572 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14573 else
14574 PANGOFT2_CFLAGS=""
14575 PANGOFT2_LIBS=""
14576 ## If we have a custom action on failure, don't print errors, but
14577 ## do set a variable so people can do so.
14578 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14579
14580 fi
14581
14582
14583
14584 else
14585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14587 fi
14588 fi
14589
14590 if test $succeeded = yes; then
14591
14592 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14593 LIBS="$LIBS $PANGOFT2_LIBS"
14594
14595 else
14596
14597 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14598 wxUSE_PRINTING_ARCHITECTURE="no"
14599
14600
14601 fi
14602
14603
14604 succeeded=no
14605
14606 if test -z "$PKG_CONFIG"; then
14607 # Extract the first word of "pkg-config", so it can be a program name with args.
14608set dummy pkg-config; ac_word=$2
14609echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 14610echo "configure:14611: checking for $ac_word" >&5
2b5f62a0
VZ
14611if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14612 echo $ac_n "(cached) $ac_c" 1>&6
14613else
14614 case "$PKG_CONFIG" in
14615 /*)
14616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14617 ;;
14618 ?:/*)
14619 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14620 ;;
14621 *)
14622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14623 ac_dummy="$PATH"
14624 for ac_dir in $ac_dummy; do
14625 test -z "$ac_dir" && ac_dir=.
14626 if test -f $ac_dir/$ac_word; then
14627 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14628 break
14629 fi
14630 done
14631 IFS="$ac_save_ifs"
14632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14633 ;;
14634esac
14635fi
14636PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14637if test -n "$PKG_CONFIG"; then
14638 echo "$ac_t""$PKG_CONFIG" 1>&6
14639else
14640 echo "$ac_t""no" 1>&6
14641fi
14642
14643 fi
14644
14645 if test "$PKG_CONFIG" = "no" ; then
14646 echo "*** The pkg-config script could not be found. Make sure it is"
14647 echo "*** in your path, or set the PKG_CONFIG environment variable"
14648 echo "*** to the full path to pkg-config."
14649 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14650 else
14651 PKG_CONFIG_MIN_VERSION=0.9.0
14652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14653 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
89e3b3e4 14654echo "configure:14655: checking for pangoxft" >&5
2b5f62a0
VZ
14655
14656 if $PKG_CONFIG --exists "pangoxft" ; then
14657 echo "$ac_t""yes" 1>&6
14658 succeeded=yes
14659
14660 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
89e3b3e4 14661echo "configure:14662: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14662 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14663 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14664
14665 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
89e3b3e4 14666echo "configure:14667: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14667 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14668 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14669 else
14670 PANGOXFT_CFLAGS=""
14671 PANGOXFT_LIBS=""
14672 ## If we have a custom action on failure, don't print errors, but
14673 ## do set a variable so people can do so.
14674 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14675
14676 fi
14677
14678
14679
14680 else
14681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14683 fi
14684 fi
14685
14686 if test $succeeded = yes; then
14687
14688 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14689 LIBS="$LIBS $PANGOXFT_LIBS"
14690
14691 else
14692
14693 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14694
14695
14696 fi
14697
14698 fi
14699
14700 wxUSE_UNIVERSAL="yes"
14701
14702 if test "$wxUSE_NANOX" = "yes"; then
14703 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14704 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"
14705 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14706 else
14707 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14708 fi
14709
14710 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14711 TOOLKIT=X11
14712 GUIDIST=X11_DIST
14713 fi
14714
21d1c967
GD
14715 if test "$wxUSE_MOTIF" = 1; then
14716 if test "$no_x" = yes; then
14717 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14718 cat >> confdefs.h <<\EOF
21d1c967 14719#define X_DISPLAY_MISSING 1
a0b9e27f 14720EOF
21d1c967
GD
14721
14722 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14723else
14724 if test -n "$x_includes"; then
14725 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14726 fi
14727
21d1c967
GD
14728 # It would also be nice to do this for all -L options, not just this one.
14729 if test -n "$x_libraries"; then
14730 X_LIBS="$X_LIBS -L$x_libraries"
14731 # For Solaris; some versions of Sun CC require a space after -R and
14732 # others require no space. Words are not sufficient . . . .
a0b9e27f 14733 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14734 "SunOS 5"*)
a0b9e27f 14735 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
89e3b3e4 14736echo "configure:14737: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14737 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14738 cat > conftest.$ac_ext <<EOF
89e3b3e4 14739#line 14740 "configure"
21d1c967
GD
14740#include "confdefs.h"
14741
a0b9e27f 14742int main() {
21d1c967 14743
a0b9e27f
MB
14744; return 0; }
14745EOF
89e3b3e4 14746if { (eval echo configure:14747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14747 rm -rf conftest*
21d1c967 14748 ac_R_nospace=yes
698dcdb6 14749else
a0b9e27f
MB
14750 echo "configure: failed program was:" >&5
14751 cat conftest.$ac_ext >&5
14752 rm -rf conftest*
14753 ac_R_nospace=no
10f2d63a 14754fi
a0b9e27f 14755rm -f conftest*
21d1c967 14756 if test $ac_R_nospace = yes; then
a0b9e27f 14757 echo "$ac_t""no" 1>&6
21d1c967
GD
14758 X_LIBS="$X_LIBS -R$x_libraries"
14759 else
14760 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14761 cat > conftest.$ac_ext <<EOF
89e3b3e4 14762#line 14763 "configure"
21d1c967 14763#include "confdefs.h"
10f2d63a 14764
a0b9e27f 14765int main() {
f0c87536 14766
a0b9e27f
MB
14767; return 0; }
14768EOF
89e3b3e4 14769if { (eval echo configure:14770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14770 rm -rf conftest*
21d1c967
GD
14771 ac_R_space=yes
14772else
a0b9e27f
MB
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14775 rm -rf conftest*
14776 ac_R_space=no
21d1c967 14777fi
a0b9e27f 14778rm -f conftest*
21d1c967 14779 if test $ac_R_space = yes; then
a0b9e27f 14780 echo "$ac_t""yes" 1>&6
21d1c967
GD
14781 X_LIBS="$X_LIBS -R $x_libraries"
14782 else
a0b9e27f 14783 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14784 fi
14785 fi
a0b9e27f 14786 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14787 esac
14788 fi
90dd450c 14789
21d1c967
GD
14790 # Check for system-dependent libraries X programs must link with.
14791 # Do this before checking for the system-independent R6 libraries
14792 # (-lICE), since we may need -lsocket or whatever for X linking.
14793
14794 if test "$ISC" = yes; then
14795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14796 else
a0b9e27f
MB
14797 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14798 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14799 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14800 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
89e3b3e4 14801echo "configure:14802: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14802ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14804 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14805else
a0b9e27f 14806 ac_save_LIBS="$LIBS"
247f5006 14807LIBS="-ldnet $LIBS"
a0b9e27f 14808cat > conftest.$ac_ext <<EOF
89e3b3e4 14809#line 14810 "configure"
247f5006 14810#include "confdefs.h"
247f5006 14811/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14812/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14813 builtin and then its argument prototype would still apply. */
14814char dnet_ntoa();
14815
14816int main() {
14817dnet_ntoa()
14818; return 0; }
14819EOF
89e3b3e4 14820if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14821 rm -rf conftest*
14822 eval "ac_cv_lib_$ac_lib_var=yes"
14823else
14824 echo "configure: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 rm -rf conftest*
14827 eval "ac_cv_lib_$ac_lib_var=no"
14828fi
14829rm -f conftest*
14830LIBS="$ac_save_LIBS"
14831
14832fi
14833if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14834 echo "$ac_t""yes" 1>&6
21d1c967 14835 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14836else
14837 echo "$ac_t""no" 1>&6
0fb0dd83 14838fi
0fb0dd83 14839
21d1c967 14840 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14841 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
89e3b3e4 14842echo "configure:14843: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14843ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14846else
a0b9e27f 14847 ac_save_LIBS="$LIBS"
21d1c967 14848LIBS="-ldnet_stub $LIBS"
a0b9e27f 14849cat > conftest.$ac_ext <<EOF
89e3b3e4 14850#line 14851 "configure"
21d1c967
GD
14851#include "confdefs.h"
14852/* Override any gcc2 internal prototype to avoid an error. */
14853/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14854 builtin and then its argument prototype would still apply. */
14855char dnet_ntoa();
14856
14857int main() {
14858dnet_ntoa()
14859; return 0; }
14860EOF
89e3b3e4 14861if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=yes"
14864else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 eval "ac_cv_lib_$ac_lib_var=no"
14869fi
14870rm -f conftest*
14871LIBS="$ac_save_LIBS"
14872
14873fi
14874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14875 echo "$ac_t""yes" 1>&6
21d1c967 14876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14877else
14878 echo "$ac_t""no" 1>&6
90dd450c
VZ
14879fi
14880
21d1c967 14881 fi
90dd450c 14882
21d1c967
GD
14883 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14884 # to get the SysV transport functions.
a0b9e27f 14885 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14886 # needs -lnsl.
14887 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14888 # on Irix 5.2, according to dickey@clark.net.
14889 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
89e3b3e4 14890echo "configure:14891: checking for gethostbyname" >&5
a0b9e27f
MB
14891if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893else
14894 cat > conftest.$ac_ext <<EOF
89e3b3e4 14895#line 14896 "configure"
21d1c967
GD
14896#include "confdefs.h"
14897/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14898 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14899#include <assert.h>
14900/* Override any gcc2 internal prototype to avoid an error. */
14901/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14902 builtin and then its argument prototype would still apply. */
14903char gethostbyname();
14904
14905int main() {
14906
21d1c967
GD
14907/* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14911choke me
14912#else
a0b9e27f 14913gethostbyname();
21d1c967 14914#endif
90dd450c 14915
a0b9e27f
MB
14916; return 0; }
14917EOF
89e3b3e4 14918if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14919 rm -rf conftest*
14920 eval "ac_cv_func_gethostbyname=yes"
14921else
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 rm -rf conftest*
14925 eval "ac_cv_func_gethostbyname=no"
14926fi
14927rm -f conftest*
14928fi
14929
14930if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 :
14933else
14934 echo "$ac_t""no" 1>&6
14935fi
90dd450c 14936
21d1c967 14937 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14938 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
89e3b3e4 14939echo "configure:14940: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14940ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14941if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14942 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14943else
a0b9e27f 14944 ac_save_LIBS="$LIBS"
21d1c967 14945LIBS="-lnsl $LIBS"
a0b9e27f 14946cat > conftest.$ac_ext <<EOF
89e3b3e4 14947#line 14948 "configure"
21d1c967
GD
14948#include "confdefs.h"
14949/* Override any gcc2 internal prototype to avoid an error. */
14950/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14951 builtin and then its argument prototype would still apply. */
14952char gethostbyname();
5c6fa7d2 14953
a0b9e27f
MB
14954int main() {
14955gethostbyname()
14956; return 0; }
14957EOF
89e3b3e4 14958if { (eval echo configure:14959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14959 rm -rf conftest*
14960 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14961else
a0b9e27f
MB
14962 echo "configure: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 rm -rf conftest*
14965 eval "ac_cv_lib_$ac_lib_var=no"
14966fi
14967rm -f conftest*
14968LIBS="$ac_save_LIBS"
247f5006 14969
a0b9e27f
MB
14970fi
14971if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14972 echo "$ac_t""yes" 1>&6
14973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14974else
14975 echo "$ac_t""no" 1>&6
21d1c967 14976fi
90dd450c 14977
90dd450c
VZ
14978 fi
14979
21d1c967
GD
14980 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14981 # socket/setsockopt and other routines are undefined under SCO ODT
14982 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14983 # on later versions), says simon@lia.di.epfl.ch: it contains
14984 # gethostby* variants that don't use the nameserver (or something).
14985 # -lsocket must be given before -lnsl if both are needed.
14986 # We assume that if connect needs -lnsl, so does gethostbyname.
14987 echo $ac_n "checking for connect""... $ac_c" 1>&6
89e3b3e4 14988echo "configure:14989: checking for connect" >&5
a0b9e27f
MB
14989if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14990 echo $ac_n "(cached) $ac_c" 1>&6
14991else
14992 cat > conftest.$ac_ext <<EOF
89e3b3e4 14993#line 14994 "configure"
21d1c967
GD
14994#include "confdefs.h"
14995/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14996 which can conflict with char connect(); below. */
21d1c967
GD
14997#include <assert.h>
14998/* Override any gcc2 internal prototype to avoid an error. */
14999/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15000 builtin and then its argument prototype would still apply. */
15001char connect();
15002
15003int main() {
15004
21d1c967
GD
15005/* The GNU C library defines this for functions which it implements
15006 to always fail with ENOSYS. Some functions are actually named
15007 something starting with __ and the normal name is an alias. */
15008#if defined (__stub_connect) || defined (__stub___connect)
15009choke me
15010#else
a0b9e27f 15011connect();
21d1c967 15012#endif
90dd450c 15013
a0b9e27f
MB
15014; return 0; }
15015EOF
89e3b3e4 15016if { (eval echo configure:15017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15017 rm -rf conftest*
15018 eval "ac_cv_func_connect=yes"
15019else
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 rm -rf conftest*
15023 eval "ac_cv_func_connect=no"
15024fi
15025rm -f conftest*
15026fi
15027
15028if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15029 echo "$ac_t""yes" 1>&6
15030 :
15031else
15032 echo "$ac_t""no" 1>&6
15033fi
1f8ae82f 15034
21d1c967 15035 if test $ac_cv_func_connect = no; then
a0b9e27f 15036 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
89e3b3e4 15037echo "configure:15038: checking for connect in -lsocket" >&5
a0b9e27f
MB
15038ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15039if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15041else
a0b9e27f 15042 ac_save_LIBS="$LIBS"
21d1c967 15043LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15044cat > conftest.$ac_ext <<EOF
89e3b3e4 15045#line 15046 "configure"
0fbb762e 15046#include "confdefs.h"
21d1c967
GD
15047/* Override any gcc2 internal prototype to avoid an error. */
15048/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15049 builtin and then its argument prototype would still apply. */
15050char connect();
15051
15052int main() {
15053connect()
15054; return 0; }
15055EOF
89e3b3e4 15056if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15057 rm -rf conftest*
15058 eval "ac_cv_lib_$ac_lib_var=yes"
15059else
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15062 rm -rf conftest*
15063 eval "ac_cv_lib_$ac_lib_var=no"
15064fi
15065rm -f conftest*
15066LIBS="$ac_save_LIBS"
15067
15068fi
15069if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15070 echo "$ac_t""yes" 1>&6
21d1c967 15071 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15072else
15073 echo "$ac_t""no" 1>&6
21d1c967 15074fi
90dd450c 15075
21d1c967 15076 fi
90dd450c 15077
a0b9e27f
MB
15078 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15079 echo $ac_n "checking for remove""... $ac_c" 1>&6
89e3b3e4 15080echo "configure:15081: checking for remove" >&5
a0b9e27f
MB
15081if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15083else
a0b9e27f 15084 cat > conftest.$ac_ext <<EOF
89e3b3e4 15085#line 15086 "configure"
21d1c967
GD
15086#include "confdefs.h"
15087/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15088 which can conflict with char remove(); below. */
21d1c967
GD
15089#include <assert.h>
15090/* Override any gcc2 internal prototype to avoid an error. */
15091/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15092 builtin and then its argument prototype would still apply. */
15093char remove();
15094
15095int main() {
15096
21d1c967
GD
15097/* The GNU C library defines this for functions which it implements
15098 to always fail with ENOSYS. Some functions are actually named
15099 something starting with __ and the normal name is an alias. */
15100#if defined (__stub_remove) || defined (__stub___remove)
15101choke me
15102#else
a0b9e27f 15103remove();
21d1c967 15104#endif
90dd450c 15105
a0b9e27f
MB
15106; return 0; }
15107EOF
89e3b3e4 15108if { (eval echo configure:15109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15109 rm -rf conftest*
15110 eval "ac_cv_func_remove=yes"
15111else
15112 echo "configure: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15114 rm -rf conftest*
15115 eval "ac_cv_func_remove=no"
15116fi
15117rm -f conftest*
15118fi
15119
15120if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15121 echo "$ac_t""yes" 1>&6
15122 :
15123else
15124 echo "$ac_t""no" 1>&6
15125fi
90dd450c 15126
21d1c967 15127 if test $ac_cv_func_remove = no; then
a0b9e27f 15128 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
89e3b3e4 15129echo "configure:15130: checking for remove in -lposix" >&5
a0b9e27f
MB
15130ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15131if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15132 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15133else
a0b9e27f 15134 ac_save_LIBS="$LIBS"
21d1c967 15135LIBS="-lposix $LIBS"
a0b9e27f 15136cat > conftest.$ac_ext <<EOF
89e3b3e4 15137#line 15138 "configure"
21d1c967
GD
15138#include "confdefs.h"
15139/* Override any gcc2 internal prototype to avoid an error. */
15140/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15141 builtin and then its argument prototype would still apply. */
15142char remove();
15143
15144int main() {
15145remove()
15146; return 0; }
15147EOF
89e3b3e4 15148if { (eval echo configure:15149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15149 rm -rf conftest*
15150 eval "ac_cv_lib_$ac_lib_var=yes"
15151else
15152 echo "configure: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 rm -rf conftest*
15155 eval "ac_cv_lib_$ac_lib_var=no"
15156fi
15157rm -f conftest*
15158LIBS="$ac_save_LIBS"
15159
15160fi
15161if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15162 echo "$ac_t""yes" 1>&6
21d1c967 15163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15164else
15165 echo "$ac_t""no" 1>&6
21d1c967 15166fi
19bc6aad 15167
90dd450c 15168 fi
19bc6aad 15169
21d1c967 15170 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15171 echo $ac_n "checking for shmat""... $ac_c" 1>&6
89e3b3e4 15172echo "configure:15173: checking for shmat" >&5
a0b9e27f
MB
15173if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15175else
a0b9e27f 15176 cat > conftest.$ac_ext <<EOF
89e3b3e4 15177#line 15178 "configure"
21d1c967
GD
15178#include "confdefs.h"
15179/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15180 which can conflict with char shmat(); below. */
21d1c967
GD
15181#include <assert.h>
15182/* Override any gcc2 internal prototype to avoid an error. */
15183/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15184 builtin and then its argument prototype would still apply. */
15185char shmat();
15186
15187int main() {
15188
21d1c967
GD
15189/* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192#if defined (__stub_shmat) || defined (__stub___shmat)
15193choke me
15194#else
a0b9e27f 15195shmat();
21d1c967 15196#endif
90dd450c 15197
a0b9e27f
MB
15198; return 0; }
15199EOF
89e3b3e4 15200if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15201 rm -rf conftest*
15202 eval "ac_cv_func_shmat=yes"
15203else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_func_shmat=no"
15208fi
15209rm -f conftest*
15210fi
15211
15212if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15213 echo "$ac_t""yes" 1>&6
15214 :
15215else
15216 echo "$ac_t""no" 1>&6
15217fi
19bc6aad 15218
21d1c967 15219 if test $ac_cv_func_shmat = no; then
a0b9e27f 15220 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
89e3b3e4 15221echo "configure:15222: checking for shmat in -lipc" >&5
a0b9e27f
MB
15222ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15223if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15224 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15225else
a0b9e27f 15226 ac_save_LIBS="$LIBS"
5c6fa7d2 15227LIBS="-lipc $LIBS"
a0b9e27f 15228cat > conftest.$ac_ext <<EOF
89e3b3e4 15229#line 15230 "configure"
5c6fa7d2 15230#include "confdefs.h"
5c6fa7d2 15231/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15232/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15233 builtin and then its argument prototype would still apply. */
15234char shmat();
15235
15236int main() {
15237shmat()
15238; return 0; }
15239EOF
89e3b3e4 15240if { (eval echo configure:15241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15241 rm -rf conftest*
15242 eval "ac_cv_lib_$ac_lib_var=yes"
15243else
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15246 rm -rf conftest*
15247 eval "ac_cv_lib_$ac_lib_var=no"
15248fi
15249rm -f conftest*
15250LIBS="$ac_save_LIBS"
15251
15252fi
15253if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15254 echo "$ac_t""yes" 1>&6
21d1c967 15255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15256else
15257 echo "$ac_t""no" 1>&6
9f8148b1 15258fi
90dd450c 15259
90dd450c 15260 fi
21d1c967 15261 fi
10f2d63a 15262
21d1c967 15263 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15264 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15265 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15266 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15267 # check for ICE first), but we must link in the order -lSM -lICE or
15268 # we get undefined symbols. So assume we have SM if we have ICE.
15269 # These have to be linked with before -lX11, unlike the other
15270 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15271 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15272 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
89e3b3e4 15273echo "configure:15274: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15274ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15275if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15276 echo $ac_n "(cached) $ac_c" 1>&6
15277else
15278 ac_save_LIBS="$LIBS"
f09359cf 15279LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15280cat > conftest.$ac_ext <<EOF
89e3b3e4 15281#line 15282 "configure"
29fd3c0c 15282#include "confdefs.h"
21d1c967
GD
15283/* Override any gcc2 internal prototype to avoid an error. */
15284/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15285 builtin and then its argument prototype would still apply. */
15286char IceConnectionNumber();
15287
15288int main() {
15289IceConnectionNumber()
15290; return 0; }
15291EOF
89e3b3e4 15292if { (eval echo configure:15293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15293 rm -rf conftest*
15294 eval "ac_cv_lib_$ac_lib_var=yes"
15295else
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 rm -rf conftest*
15299 eval "ac_cv_lib_$ac_lib_var=no"
15300fi
15301rm -f conftest*
15302LIBS="$ac_save_LIBS"
15303
15304fi
15305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15306 echo "$ac_t""yes" 1>&6
21d1c967 15307 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15308else
15309 echo "$ac_t""no" 1>&6
29fd3c0c 15310fi
21d1c967 15311
a0b9e27f 15312 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15313
10f2d63a
VZ
15314fi
15315
8284b0c5 15316
21d1c967 15317 if test "$no_x" = "yes"; then
a0b9e27f 15318 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15319 fi
15320
2b5f62a0
VZ
15321 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15322 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15323 AFMINSTALL=afminstall
15324 COMPILED_X_PROGRAM=0
15325
a0b9e27f 15326 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
89e3b3e4 15327echo "configure:15328: checking for Motif/Lesstif headers" >&5
a0b9e27f 15328
21d1c967 15329ac_find_includes=
2b5f62a0 15330for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15331 do
15332 if test -f "$ac_dir/Xm/Xm.h"; then
15333 ac_find_includes=$ac_dir
15334 break
15335 fi
15336 done
15337
15338 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15339 echo "$ac_t""found in $ac_find_includes" 1>&6
15340
2b5f62a0 15341 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15342 ac_path_to_include=""
15343 else
2b5f62a0
VZ
15344 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15345 result=$?
15346 if test $result = 0; then
15347 ac_path_to_include=""
15348 else
15349 ac_path_to_include=" -I$ac_find_includes"
15350 fi
dd0e4a90
VZ
15351 fi
15352
15353 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15354 else
a0b9e27f 15355 cat > conftest.$ac_ext <<EOF
89e3b3e4 15356#line 15357 "configure"
10f2d63a 15357#include "confdefs.h"
21d1c967
GD
15358
15359 #include <Xm/Xm.h>
a0b9e27f
MB
15360
15361int main() {
21d1c967
GD
15362
15363 int version;
15364 version = xmUseVersion;
a0b9e27f
MB
15365
15366; return 0; }
15367EOF
89e3b3e4 15368if { (eval echo configure:15369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15369 rm -rf conftest*
15370
15371 echo "$ac_t""found in default search path" 1>&6
21d1c967 15372 COMPILED_X_PROGRAM=1
a0b9e27f 15373
10f2d63a 15374else
a0b9e27f
MB
15375 echo "configure: failed program was:" >&5
15376 cat conftest.$ac_ext >&5
15377 rm -rf conftest*
15378
15379 echo "$ac_t""no" 1>&6
15380 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15381
15382
10f2d63a 15383fi
a0b9e27f 15384rm -f conftest*
21d1c967 15385 fi
10f2d63a 15386
21d1c967 15387 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15388 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
89e3b3e4 15389echo "configure:15390: checking for Motif/Lesstif library" >&5
a0b9e27f 15390
21d1c967 15391ac_find_libraries=
2b5f62a0 15392for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15393 do
15394 for ac_extension in a so sl dylib; do
15395 if test -f "$ac_dir/libXm.$ac_extension"; then
15396 ac_find_libraries=$ac_dir
15397 break 2
15398 fi
15399 done
15400 done
15401
15402 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15403 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15404
a0b9e27f 15405
21d1c967
GD
15406 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15407 result=$?
15408 if test $result = 0; then
15409 ac_path_to_link=""
15410 else
15411 ac_path_to_link=" -L$ac_find_libraries"
15412 fi
15413
21d1c967 15414 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15415 else
dd0e4a90
VZ
15416 save_CFLAGS=$CFLAGS
15417 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15418
a0b9e27f 15419 cat > conftest.$ac_ext <<EOF
89e3b3e4 15420#line 15421 "configure"
d836ee96 15421#include "confdefs.h"
21d1c967
GD
15422
15423 #include <Xm/Xm.h>
a0b9e27f
MB
15424
15425int main() {
21d1c967
GD
15426
15427 int version;
15428 version = xmUseVersion;
a0b9e27f
MB
15429
15430; return 0; }
15431EOF
89e3b3e4 15432if { (eval echo configure:15433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15433 rm -rf conftest*
15434
15435 echo "$ac_t""found in default search path" 1>&6
21d1c967 15436 COMPILED_X_PROGRAM=1
a0b9e27f 15437
d836ee96 15438else
a0b9e27f
MB
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15441 rm -rf conftest*
15442
15443 echo "$ac_t""no" 1>&6
15444 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15445
15446
d836ee96 15447fi
a0b9e27f 15448rm -f conftest*
dd0e4a90
VZ
15449
15450 CFLAGS=$save_CFLAGS
21d1c967
GD
15451 fi
15452 fi
15453
15454 xpm_link=
a0b9e27f 15455 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
89e3b3e4 15456echo "configure:15457: checking for Xpm library" >&5
a0b9e27f 15457
21d1c967 15458ac_find_libraries=
2b5f62a0 15459for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15460 do
15461 for ac_extension in a so sl dylib; do
15462 if test -f "$ac_dir/libXpm.$ac_extension"; then
15463 ac_find_libraries=$ac_dir
15464 break 2
15465 fi
15466 done
15467 done
15468
15469 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15470
21d1c967
GD
15471 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15472 result=$?
15473 if test $result = 0; then
15474 ac_path_to_link=""
15475 else
15476 ac_path_to_link=" -L$ac_find_libraries"
15477 fi
15478
15479 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15480
21d1c967 15481 xpm_link=" -lXpm"
a0b9e27f 15482 cat >> confdefs.h <<\EOF
21d1c967 15483#define wxHAVE_LIB_XPM 1
a0b9e27f 15484EOF
90dd450c 15485
a0b9e27f 15486 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15487 else
dd0e4a90
VZ
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
a0b9e27f 15491 cat > conftest.$ac_ext <<EOF
89e3b3e4 15492#line 15493 "configure"
d836ee96 15493#include "confdefs.h"
21d1c967
GD
15494
15495 #include <X11/xpm.h>
a0b9e27f
MB
15496
15497int main() {
21d1c967
GD
15498
15499 int version;
15500 version = XpmLibraryVersion();
a0b9e27f
MB
15501
15502; return 0; }
15503EOF
89e3b3e4 15504if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15505 rm -rf conftest*
15506
21d1c967 15507 xpm_link=" -lXpm"
a0b9e27f 15508 cat >> confdefs.h <<\EOF
21d1c967 15509#define wxHAVE_LIB_XPM 1
a0b9e27f 15510EOF
21d1c967 15511
a0b9e27f 15512 echo "$ac_t""found in default search path" 1>&6
21d1c967 15513 COMPILED_X_PROGRAM=0
a0b9e27f 15514
d836ee96 15515else
a0b9e27f
MB
15516 echo "configure: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 rm -rf conftest*
15519
15520 echo "$ac_t""no" 1>&6
15521 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15522
15523
d836ee96 15524fi
a0b9e27f 15525rm -f conftest*
dd0e4a90
VZ
15526
15527 CFLAGS=$save_CFLAGS
21d1c967
GD
15528 fi
15529
a0b9e27f 15530 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
89e3b3e4 15531echo "configure:15532: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15532 libp_link=""
15533 libsm_ice_link=""
15534 libs_found=0
15535 for libp in "" " -lXp"; do
15536 if test "$libs_found" = "0"; then
15537 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15538 if test "$libs_found" = "0"; then
6a30f1c8
MB
15539 save_LIBS="$LIBS"
15540 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15541 save_CFLAGS=$CFLAGS
15542 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15543
a0b9e27f 15544 cat > conftest.$ac_ext <<EOF
89e3b3e4 15545#line 15546 "configure"
6a30f1c8 15546#include "confdefs.h"
17234b26 15547
6a30f1c8
MB
15548 #include <Xm/Xm.h>
15549 #include <Xm/List.h>
a0b9e27f
MB
15550
15551int main() {
6a30f1c8
MB
15552
15553 XmString string = NULL;
15554 Widget w = NULL;
15555 int position = 0;
15556 XmListAddItem(w, string, position);
a0b9e27f
MB
15557
15558; return 0; }
15559EOF
89e3b3e4 15560if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15561 rm -rf conftest*
15562
6a30f1c8
MB
15563 libp_link="$libp"
15564 libsm_ice_link="$libsm_ice"
a0b9e27f 15565 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15566 libs_found=1
a0b9e27f 15567
6a30f1c8 15568else
a0b9e27f
MB
15569 echo "configure: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15571 rm -rf conftest*
15572
15573
6a30f1c8 15574fi
a0b9e27f 15575rm -f conftest*
dd0e4a90 15576
6a30f1c8 15577 LIBS="$save_LIBS"
dd0e4a90 15578 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15579 fi
15580 done
15581 fi
15582 done
15583
15584 if test "$libs_found" = "0"; then
a0b9e27f
MB
15585 echo "$ac_t""can't find the right libraries" 1>&6
15586 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15587 fi
15588
da494b40
MB
15589 save_CFLAGS=$CFLAGS
15590 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15591 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
89e3b3e4 15592echo "configure:15593: checking for Motif 2" >&5
da494b40 15593 cat > conftest.$ac_ext <<EOF
89e3b3e4 15594#line 15595 "configure"
da494b40
MB
15595#include "confdefs.h"
15596
15597 #include <Xm/Xm.h>
15598
15599int main() {
15600
15601 #if XmVersion < 2000
15602 #error "Not Motif 2"
15603 #endif
15604
15605; return 0; }
15606EOF
89e3b3e4 15607if { (eval echo configure:15608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15608 rm -rf conftest*
15609
15610 cat >> confdefs.h <<\EOF
15611#define __WXMOTIF20__ 1
15612EOF
15613
15614 echo "$ac_t""found" 1>&6
15615
15616else
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620
15621 cat >> confdefs.h <<\EOF
15622#define __WXMOTIF20__ 0
15623EOF
15624
15625 echo "$ac_t""not found" 1>&6
15626
15627fi
15628rm -f conftest*
15629 CFLAGS=$save_CFLAGS
15630
6a30f1c8 15631 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15632 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15633 TOOLKIT=MOTIF
15634 GUIDIST=MOTIF_DIST
f7f78039
MB
15635 wxHAVE_XEXT_LIB=1
15636 fi
15637
15638 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15639 test "$wxHAVE_XEXT_LIB" = 1; then
15640 save_CFLAGS="$CFLAGS"
15641 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15642
15643 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
89e3b3e4 15644echo "configure:15645: checking for X11/extensions/shape.h" >&5
f7f78039 15645 cat > conftest.$ac_ext <<EOF
89e3b3e4 15646#line 15647 "configure"
f7f78039
MB
15647#include "confdefs.h"
15648
15649 #include <X11/Xlib.h>
15650 #include <X11/extensions/shape.h>
15651
15652int main() {
15653
15654 int dummy1, dummy2;
15655 XShapeQueryExtension((Display*)NULL,
15656 (int*)NULL, (int*)NULL);
15657
15658; return 0; }
15659EOF
89e3b3e4 15660if { (eval echo configure:15661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f7f78039
MB
15661 rm -rf conftest*
15662
15663 cat >> confdefs.h <<\EOF
15664#define HAVE_XSHAPE 1
15665EOF
15666
15667 echo "$ac_t""found" 1>&6
15668
15669else
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 rm -rf conftest*
15673
15674 echo "$ac_t""not found" 1>&6
15675
15676fi
15677rm -f conftest*
15678 CFLAGS="$save_CFLAGS"
21d1c967
GD
15679 fi
15680
15681 if test "$wxUSE_MAC" = 1; then
0c98a14e 15682 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15683
0c98a14e 15684 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15685 TOOLKIT=MAC
15686 GUIDIST=MACX_DIST
15687 fi
15688
ac0c4cc3
DE
15689 if test "$wxUSE_COCOA" = 1; then
15690 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15691 TOOLKIT=COCOA
15692 GUIDIST=COCOA_DIST
15693 fi
15694
21d1c967
GD
15695 if test "$wxUSE_PM" = 1; then
15696 TOOLKIT=PM
15697 GUIDIST=GTK_DIST
2b5f62a0 15698 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15699 wxUSE_THREADS="no"
21d1c967
GD
15700 fi
15701
15702 if test "$TOOLKIT" = "PM" ; then
15703 TOOLKIT_DIR="os2"
15704 else
15705 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15706 fi
15707
15708 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15709
15710 if test "$wxUSE_UNIVERSAL" = "yes"; then
15711 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15712
15713 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15714 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15715
15716 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15717 if test "$wxUSE_X11" = 1; then
15718 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15719 else
15720 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15721 fi
15722 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15723 WIDGET_SET=univ
15724 else
15725 ALL_OBJECTS="\$(GUIOBJS)"
15726 ALL_SOURCES="\$(ALL_SOURCES)"
15727 ALL_HEADERS="\$(ALL_HEADERS)"
15728 fi
15729
15730 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15731
15732 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15733 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15734 fi
15735
15736 if test "$wxUSE_HTML" = "yes"; then
15737 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15738 fi
15739
15740 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15741 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15742 fi
15743 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15744 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15745 fi
15746 if test "$wxUSE_LIBPNG" = "builtin" ; then
15747 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15748 fi
15749
15750 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15751 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15752else
21d1c967
GD
15753 USE_GUI=0
15754
15755 TOOLKIT_DIR="base"
15756
15757 if test "$USE_WIN32" = 1 ; then
15758 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15759 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15760
15761 TOOLKIT="MSW"
15762 else
15763 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15764 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15765 fi
15766
15767 ALL_SOURCES="\$(ALL_SOURCES)"
15768 ALL_HEADERS="\$(ALL_HEADERS)"
15769
15770 PORT_FILES="\${top_srcdir}/src/files.lst"
15771
15772 GUIDIST="BASE_DIST"
15773 DISTDIR="wxBase"
d836ee96
VZ
15774fi
15775
8284b0c5 15776
21d1c967
GD
15777if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15778 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15779fi
21d1c967
GD
15780
15781if test "$wxUSE_REGEX" = "builtin" ; then
15782 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15783fi
21d1c967
GD
15784if test "$wxUSE_ZLIB" = "builtin" ; then
15785 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15786fi
15787
8284b0c5 15788
21d1c967 15789if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 15790 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
15791 OPENGL_LIBS="-framework OpenGL -framework AGL"
15792 elif test "$wxUSE_MSW" = 1; then
15793 OPENGL_LIBS="-lopengl32 -lglu32"
15794 else
a0b9e27f
MB
15795 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15796echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
89e3b3e4 15797echo "configure:15798: checking for GL/gl.h" >&5
a0b9e27f
MB
15798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15799 echo $ac_n "(cached) $ac_c" 1>&6
15800else
15801 cat > conftest.$ac_ext <<EOF
89e3b3e4 15802#line 15803 "configure"
10f2d63a 15803#include "confdefs.h"
21d1c967 15804#include <GL/gl.h>
a0b9e27f
MB
15805EOF
15806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 15807{ (eval echo configure:15808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15809if test -z "$ac_err"; then
15810 rm -rf conftest*
15811 eval "ac_cv_header_$ac_safe=yes"
15812else
15813 echo "$ac_err" >&5
15814 echo "configure: failed program was:" >&5
698dcdb6 15815 cat conftest.$ac_ext >&5
a0b9e27f
MB
15816 rm -rf conftest*
15817 eval "ac_cv_header_$ac_safe=no"
703e0a69 15818fi
a0b9e27f 15819rm -f conftest*
698dcdb6 15820fi
a0b9e27f
MB
15821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15822 echo "$ac_t""yes" 1>&6
15823
89e3b3e4
VZ
15824 found_gl=0
15825
a0b9e27f 15826 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
89e3b3e4 15827echo "configure:15828: checking for -lGL" >&5
a0b9e27f 15828
21d1c967 15829ac_find_libraries=
2b5f62a0 15830for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15831 do
15832 for ac_extension in a so sl dylib; do
15833 if test -f "$ac_dir/libGL.$ac_extension"; then
15834 ac_find_libraries=$ac_dir
15835 break 2
15836 fi
15837 done
15838 done
15839
15840 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15841
21d1c967
GD
15842 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15843 result=$?
15844 if test $result = 0; then
15845 ac_path_to_link=""
15846 else
15847 ac_path_to_link=" -L$ac_find_libraries"
15848 fi
15849
89e3b3e4
VZ
15850 if test "$ac_path_to_link" != " -L/usr/lib" ; then
15851 LDFLAGS_GL="$ac_path_to_link"
21d1c967 15852 fi
89e3b3e4
VZ
15853
15854
15855ac_find_libraries=
15856for ac_dir in $SEARCH_LIB /usr/lib;
15857 do
15858 for ac_extension in a so sl dylib; do
15859 if test -f "$ac_dir/libGLU.$ac_extension"; then
15860 ac_find_libraries=$ac_dir
15861 break 2
15862 fi
15863 done
15864 done
15865
15866 if test "$ac_find_libraries" != "" ; then
15867
15868 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15869 result=$?
15870 if test $result = 0; then
15871 ac_path_to_link=""
15872 else
15873 ac_path_to_link=" -L$ac_find_libraries"
15874 fi
15875
15876 if test "$ac_path_to_link" != " -L/usr/lib" -a \
15877 "$ac_path_to_link" != "$LDFLAGS_GL"; then
15878 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
15879 fi
15880
15881 found_gl=1
15882 OPENGL_LIBS="-lGL -lGLU"
15883 echo "$ac_t""yes" 1>&6
15884 fi
15885 fi
15886
15887 if "$found_gl" != 1; then
a0b9e27f
MB
15888 echo "$ac_t""no" 1>&6
15889 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
89e3b3e4 15890echo "configure:15891: checking for -lMesaGL" >&5
a0b9e27f 15891
21d1c967 15892ac_find_libraries=
2b5f62a0 15893for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15894 do
15895 for ac_extension in a so sl dylib; do
15896 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15897 ac_find_libraries=$ac_dir
15898 break 2
15899 fi
15900 done
15901 done
15902
15903 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15904
21d1c967
GD
15905 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15906 result=$?
15907 if test $result = 0; then
15908 ac_path_to_link=""
15909 else
15910 ac_path_to_link=" -L$ac_find_libraries"
15911 fi
15912
15913 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15914 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15915 echo "$ac_t""yes" 1>&6
21d1c967 15916 else
a0b9e27f 15917 echo "$ac_t""no" 1>&6
21d1c967
GD
15918 fi
15919 fi
a0b9e27f
MB
15920
15921else
15922 echo "$ac_t""no" 1>&6
5c6fa7d2 15923fi
52127426 15924
8284b0c5 15925
21d1c967 15926 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15927 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15928 fi
15929 fi
90dd450c 15930
21d1c967 15931 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15932 cat >> confdefs.h <<\EOF
21d1c967 15933#define wxUSE_OPENGL 1
a0b9e27f 15934EOF
21d1c967 15935
a0b9e27f 15936 cat >> confdefs.h <<\EOF
21d1c967 15937#define wxUSE_GLCANVAS 1
a0b9e27f 15938EOF
21d1c967
GD
15939
15940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15941 fi
10f2d63a 15942fi
21d1c967
GD
15943
15944if test -z "$TOOLKIT_VPATH" ; then
15945 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15946fi
21d1c967
GD
15947
15948if test -n "$TOOLKIT" ; then
15949 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15950fi
15951
15952lib_unicode_suffix=
15953if test "$wxUSE_UNICODE" = "yes"; then
15954 lib_unicode_suffix=u
90dd450c 15955fi
698dcdb6 15956
21d1c967
GD
15957lib_debug_suffix=
15958if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15959 lib_debug_suffix=d
15960fi
698dcdb6 15961
2b5f62a0
VZ
15962WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15963
15964TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15965TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15966
15967if test "$cross_compiling" = "yes"; then
15968 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15969 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15970fi
15971
15972WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15973WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15974WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15975
15976WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15977WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15978
15979WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15980WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15981WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15982WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15983
15984case "${host}" in
15985 *-*-cygwin* | *-*-mingw32* )
15986
a0b9e27f
MB
15987
15988
17234b26 15989 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15990 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15991 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15992 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15993 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15994 else
15995 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15996 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15997 fi
15998 ;;
15999
16000 *-*-darwin* )
1542ea39 16001
05159a27
GD
16002 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16003 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16004
16005 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16006 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16007 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16008 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16009
21d1c967 16010 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16011 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16012 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16013 fi
16014 ;;
16015esac
16016
16017WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16018WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16019
16020WXCONFIG_LIBS="-l${WX_LIBRARY}"
16021WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16022
16023if test "$wxUSE_OPENGL" = "yes"; then
16024 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16025 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16026fi
16027
8284b0c5
MB
16028
16029
21d1c967
GD
16030if test "$wxUSE_SHARED" = "yes"; then
16031 case "${host}" in
16032 *-pc-os2_emx | *-pc-os2-emx | \
16033 *-pc-msdosdjgpp )
16034 wxUSE_SHARED=no
a0b9e27f 16035 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16036 ;;
16037 esac
16038fi
16039
2b5f62a0
VZ
16040if test "$wxUSE_SHARED" = "yes"; then
16041
16042 if test "$wxUSE_OPENGL" = "yes"; then
16043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16044 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16045 else
16046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16047 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16048 fi
16049
16050 if test "$GCC" = "yes"; then
16051 PIC_FLAG="-fPIC"
16052 fi
16053
16054
16055
16056 found_versioning=no
16057
b4eecb7e 16058
2b5f62a0
VZ
16059 if test $found_versioning = no ; then
16060 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
89e3b3e4 16061echo "configure:16062: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16062if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
16064else
16065
16066 echo "VER_1 { *; };" >conftest.sym
16067 echo "int main() { return 0; }" >conftest.cpp
16068
16069 if { ac_try='
16070 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
89e3b3e4 16071 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16072 if test -s conftest.stderr ; then
16073 wx_cv_version_script=no
16074 else
16075 wx_cv_version_script=yes
16076 fi
16077 else
16078 wx_cv_version_script=no
16079 fi
16080 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16081
16082fi
16083
16084echo "$ac_t""$wx_cv_version_script" 1>&6
16085 if test $wx_cv_version_script = yes ; then
16086 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16087 fi
16088 fi
21d1c967 16089
21d1c967
GD
16090
16091 SHARED_LD="${CXX} -shared -o"
16092
16093 case "${host}" in
16094 *-hp-hpux* )
ad2622f1 16095 if test "$GCC" = "yes"; then
85d5e282 16096 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16097 else
16098 LDFLAGS="$LDFLAGS -L/usr/lib"
16099
16100 SHARED_LD="${CXX} -b -o"
16101 PIC_FLAG="+Z"
16102 fi
16103
16104 if test "$wxUSE_OPENGL" = "yes"; then
16105 WX_ALL_INSTALLED="preinstall_gl"
16106 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16107 else
16108 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16109 fi
16110 ;;
16111
16112 *-*-linux* )
16113 if test "$GCC" != "yes"; then
a0b9e27f 16114 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
89e3b3e4 16115echo "configure:16116: checking for Intel compiler" >&5
a0b9e27f
MB
16116if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118else
16119
16120 cat > conftest.$ac_ext <<EOF
89e3b3e4 16121#line 16122 "configure"
698dcdb6 16122#include "confdefs.h"
90dd450c 16123
a0b9e27f 16124int main() {
90dd450c 16125
21d1c967
GD
16126 #ifndef __INTEL_COMPILER
16127 #error Not icc
16128 #endif
a0b9e27f
MB
16129
16130; return 0; }
16131EOF
89e3b3e4 16132if { (eval echo configure:16133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16133 rm -rf conftest*
21d1c967 16134 wx_cv_prog_icc=yes
6232543b 16135else
a0b9e27f
MB
16136 echo "configure: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 rm -rf conftest*
16139 wx_cv_prog_icc=no
16140
5c6fa7d2 16141fi
a0b9e27f
MB
16142rm -f conftest*
16143
247f5006 16144fi
a0b9e27f
MB
16145
16146echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16147 if test "$wx_cv_prog_icc" = "yes"; then
16148 PIC_FLAG="-KPIC"
16149 fi
16150 fi
16151
16152 if test "$wxUSE_SONAME" = "yes" ; then
16153 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16154 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16155 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16156 fi
16157 ;;
16158
16159 *-*-solaris2* )
16160 if test "$GCC" = yes ; then
16161 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16162 else
16163 SHARED_LD="${CXX} -G -o"
16164 PIC_FLAG="-KPIC"
16165 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16166 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16167 fi
16168 ;;
16169
16170 *-*-darwin* )
b2fee376
GD
16171 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16172 CFLAGS="$CFLAGS -fno-common"
16173 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16174 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16175 PIC_FLAG="-dynamic -fPIC"
f346733b 16176 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16177 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16178 ;;
16179
16180 *-*-aix* )
2b5f62a0
VZ
16181 if test "$GCC" != "yes"; then
16182 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16183set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16184echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16185echo "configure:16186: checking for $ac_word" >&5
a0b9e27f
MB
16186if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16187 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16188else
16189 if test -n "$AIX_CXX_LD"; then
16190 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16191else
a0b9e27f
MB
16192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16193 ac_dummy="$PATH"
16194 for ac_dir in $ac_dummy; do
16195 test -z "$ac_dir" && ac_dir=.
16196 if test -f $ac_dir/$ac_word; then
16197 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16198 break
16199 fi
16200 done
16201 IFS="$ac_save_ifs"
321d2b14
VZ
16202 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16203fi
16204fi
a0b9e27f 16205AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16206if test -n "$AIX_CXX_LD"; then
a0b9e27f 16207 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16208else
a0b9e27f 16209 echo "$ac_t""no" 1>&6
321d2b14
VZ
16210fi
16211
8284b0c5 16212
2b5f62a0
VZ
16213 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16214 fi
21d1c967
GD
16215 ;;
16216
16217 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16218 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16219
16220 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16221 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16222
16223 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16224
f657dbe7
MB
16225 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16226 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16227
16228 if test "$wxUSE_OPENGL" = "yes"; then
16229 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16230 fi
16231 ;;
16232
16233 *-*-beos* )
16234 SHARED_LD="${LD} -shared -o"
16235 ;;
16236
2b5f62a0
VZ
16237 *-*-irix* )
16238 if test "$GCC" != "yes"; then
16239 PIC_FLAG="-KPIC"
16240 fi
16241 ;;
16242
21d1c967
GD
16243 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16244 *-*-sunos4* | \
21d1c967
GD
16245 *-*-osf* | \
16246 *-*-dgux5* | \
16247 *-*-sysv5* )
16248 ;;
16249
16250 *)
a0b9e27f 16251 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16252 esac
16253
16254 if test "x$WX_TARGET_LIBRARY" = "x"; then
16255 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16256 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16257 fi
16258
16259 WX_TARGET_LIBRARY_TYPE="so"
16260 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16261fi
10f2d63a 16262
21d1c967
GD
16263if test "$wxUSE_SHARED" = "no"; then
16264
16265 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16266 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16267 fi
16268
ac0c4cc3 16269 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16270 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16271 fi
16272
16273 if test "$wxUSE_OPENGL" = "yes"; then
16274 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16275 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16276 else
16277 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16278 fi
16279
16280 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16281 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16282
16283 WX_TARGET_LIBRARY_TYPE="a"
16284 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16285
16286 STATIC_FLAG="yes"
16287else
16288 STATIC_FLAG="no"
90dd450c 16289fi
1e487827 16290
93fac604
VZ
16291MACRESCOMP="@#"
16292MACSETFILE="@#"
36825681 16293MACRESWXCONFIG="#"
21d1c967
GD
16294if test "$wxUSE_MAC" = 1; then
16295 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16296 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16297 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16298 # Extract the first word of "Rez", so it can be a program name with args.
16299set dummy Rez; ac_word=$2
a0b9e27f 16300echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16301echo "configure:16302: checking for $ac_word" >&5
a0b9e27f
MB
16302if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16303 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16304else
21d1c967
GD
16305 if test -n "$RESCOMP"; then
16306 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16307else
a0b9e27f
MB
16308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16309 ac_dummy="$PATH"
16310 for ac_dir in $ac_dummy; do
16311 test -z "$ac_dir" && ac_dir=.
16312 if test -f $ac_dir/$ac_word; then
16313 ac_cv_prog_RESCOMP="Rez"
16314 break
16315 fi
16316 done
16317 IFS="$ac_save_ifs"
21d1c967 16318 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16319fi
b93d0d08 16320fi
a0b9e27f 16321RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16322if test -n "$RESCOMP"; then
a0b9e27f 16323 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16324else
a0b9e27f 16325 echo "$ac_t""no" 1>&6
90dd450c 16326fi
b93d0d08 16327
21d1c967
GD
16328 # Extract the first word of "DeRez", so it can be a program name with args.
16329set dummy DeRez; ac_word=$2
a0b9e27f 16330echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16331echo "configure:16332: checking for $ac_word" >&5
a0b9e27f
MB
16332if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16333 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16334else
21d1c967
GD
16335 if test -n "$DEREZ"; then
16336 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16337else
a0b9e27f
MB
16338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16339 ac_dummy="$PATH"
16340 for ac_dir in $ac_dummy; do
16341 test -z "$ac_dir" && ac_dir=.
16342 if test -f $ac_dir/$ac_word; then
16343 ac_cv_prog_DEREZ="DeRez"
16344 break
16345 fi
16346 done
16347 IFS="$ac_save_ifs"
21d1c967 16348 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16349fi
90dd450c 16350fi
a0b9e27f 16351DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16352if test -n "$DEREZ"; then
a0b9e27f 16353 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16354else
a0b9e27f 16355 echo "$ac_t""no" 1>&6
3a922bb4 16356fi
698dcdb6 16357
36825681
GD
16358 # Extract the first word of "SetFile", so it can be a program name with args.
16359set dummy SetFile; ac_word=$2
16360echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16361echo "configure:16362: checking for $ac_word" >&5
36825681
GD
16362if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16363 echo $ac_n "(cached) $ac_c" 1>&6
16364else
16365 if test -n "$SETFILE"; then
16366 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16367else
16368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16369 ac_dummy="$PATH"
16370 for ac_dir in $ac_dummy; do
16371 test -z "$ac_dir" && ac_dir=.
16372 if test -f $ac_dir/$ac_word; then
16373 ac_cv_prog_SETFILE="SetFile"
16374 break
16375 fi
16376 done
16377 IFS="$ac_save_ifs"
16378 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16379fi
16380fi
16381SETFILE="$ac_cv_prog_SETFILE"
16382if test -n "$SETFILE"; then
16383 echo "$ac_t""$SETFILE" 1>&6
16384else
16385 echo "$ac_t""no" 1>&6
16386fi
16387
21d1c967 16388 MACOSX_BUNDLE="bundle"
36825681
GD
16389 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16390 MACSETFILE="\$(SETFILE)"
16391 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
64440d77
DE
16392elif test "$wxUSE_COCOA" = 1; then
16393 # Extract the first word of "Rez", so it can be a program name with args.
16394set dummy Rez; ac_word=$2
16395echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16396echo "configure:16397: checking for $ac_word" >&5
64440d77
DE
16397if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16398 echo $ac_n "(cached) $ac_c" 1>&6
16399else
16400 if test -n "$RESCOMP"; then
16401 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16402else
16403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16404 ac_dummy="$PATH"
16405 for ac_dir in $ac_dummy; do
16406 test -z "$ac_dir" && ac_dir=.
16407 if test -f $ac_dir/$ac_word; then
16408 ac_cv_prog_RESCOMP="Rez"
16409 break
16410 fi
16411 done
16412 IFS="$ac_save_ifs"
16413 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16414fi
16415fi
16416RESCOMP="$ac_cv_prog_RESCOMP"
16417if test -n "$RESCOMP"; then
16418 echo "$ac_t""$RESCOMP" 1>&6
16419else
16420 echo "$ac_t""no" 1>&6
16421fi
16422
16423 # Extract the first word of "DeRez", so it can be a program name with args.
16424set dummy DeRez; ac_word=$2
16425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16426echo "configure:16427: checking for $ac_word" >&5
64440d77
DE
16427if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16428 echo $ac_n "(cached) $ac_c" 1>&6
16429else
16430 if test -n "$DEREZ"; then
16431 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16432else
16433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16434 ac_dummy="$PATH"
16435 for ac_dir in $ac_dummy; do
16436 test -z "$ac_dir" && ac_dir=.
16437 if test -f $ac_dir/$ac_word; then
16438 ac_cv_prog_DEREZ="DeRez"
16439 break
16440 fi
16441 done
16442 IFS="$ac_save_ifs"
16443 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16444fi
16445fi
16446DEREZ="$ac_cv_prog_DEREZ"
16447if test -n "$DEREZ"; then
16448 echo "$ac_t""$DEREZ" 1>&6
16449else
16450 echo "$ac_t""no" 1>&6
16451fi
16452
16453 # Extract the first word of "SetFile", so it can be a program name with args.
16454set dummy SetFile; ac_word=$2
16455echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
89e3b3e4 16456echo "configure:16457: checking for $ac_word" >&5
64440d77
DE
16457if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16459else
16460 if test -n "$SETFILE"; then
16461 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16462else
16463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16464 ac_dummy="$PATH"
16465 for ac_dir in $ac_dummy; do
16466 test -z "$ac_dir" && ac_dir=.
16467 if test -f $ac_dir/$ac_word; then
16468 ac_cv_prog_SETFILE="SetFile"
16469 break
16470 fi
16471 done
16472 IFS="$ac_save_ifs"
16473 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16474fi
16475fi
16476SETFILE="$ac_cv_prog_SETFILE"
16477if test -n "$SETFILE"; then
16478 echo "$ac_t""$SETFILE" 1>&6
16479else
16480 echo "$ac_t""no" 1>&6
16481fi
16482
16483 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16484 MACSETFILE="\$(SETFILE)"
16485 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16486else
16487 if test "$wxUSE_PM" = 1; then
36825681 16488 MACRESCOMP="emxbind -ep"
90dd450c 16489 fi
4f14bcd8 16490fi
10f2d63a 16491
8284b0c5 16492
a0b9e27f 16493echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
89e3b3e4 16494echo "configure:16495: checking for ANSI C header files" >&5
a0b9e27f
MB
16495if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16496 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16497else
a0b9e27f 16498 cat > conftest.$ac_ext <<EOF
89e3b3e4 16499#line 16500 "configure"
52127426 16500#include "confdefs.h"
a0b9e27f
MB
16501#include <stdlib.h>
16502#include <stdarg.h>
16503#include <string.h>
16504#include <float.h>
16505EOF
16506ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 16507{ (eval echo configure:16508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16508ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16509if test -z "$ac_err"; then
16510 rm -rf conftest*
16511 ac_cv_header_stdc=yes
16512else
16513 echo "$ac_err" >&5
16514 echo "configure: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 rm -rf conftest*
16517 ac_cv_header_stdc=no
16518fi
16519rm -f conftest*
16520
16521if test $ac_cv_header_stdc = yes; then
16522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16523cat > conftest.$ac_ext <<EOF
89e3b3e4 16524#line 16525 "configure"
a0b9e27f
MB
16525#include "confdefs.h"
16526#include <string.h>
16527EOF
16528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16529 egrep "memchr" >/dev/null 2>&1; then
16530 :
16531else
16532 rm -rf conftest*
16533 ac_cv_header_stdc=no
16534fi
16535rm -f conftest*
16536
16537fi
16538
16539if test $ac_cv_header_stdc = yes; then
16540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16541cat > conftest.$ac_ext <<EOF
89e3b3e4 16542#line 16543 "configure"
a0b9e27f
MB
16543#include "confdefs.h"
16544#include <stdlib.h>
16545EOF
16546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16547 egrep "free" >/dev/null 2>&1; then
16548 :
7b4a847f 16549else
a0b9e27f
MB
16550 rm -rf conftest*
16551 ac_cv_header_stdc=no
52127426 16552fi
a0b9e27f
MB
16553rm -f conftest*
16554
52127426 16555fi
a0b9e27f
MB
16556
16557if test $ac_cv_header_stdc = yes; then
16558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16559if test "$cross_compiling" = yes; then
247f5006
VZ
16560 :
16561else
a0b9e27f 16562 cat > conftest.$ac_ext <<EOF
89e3b3e4 16563#line 16564 "configure"
a0b9e27f
MB
16564#include "confdefs.h"
16565#include <ctype.h>
16566#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16567#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16569int main () { int i; for (i = 0; i < 256; i++)
16570if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16571exit (0); }
247f5006 16572
a0b9e27f 16573EOF
89e3b3e4 16574if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16575then
16576 :
16577else
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -fr conftest*
16581 ac_cv_header_stdc=no
16582fi
16583rm -fr conftest*
16584fi
16585
16586fi
16587fi
16588
16589echo "$ac_t""$ac_cv_header_stdc" 1>&6
16590if test $ac_cv_header_stdc = yes; then
16591 cat >> confdefs.h <<\EOF
16592#define STDC_HEADERS 1
16593EOF
8284b0c5
MB
16594
16595fi
16596
a0b9e27f 16597echo $ac_n "checking for mode_t""... $ac_c" 1>&6
89e3b3e4 16598echo "configure:16599: checking for mode_t" >&5
a0b9e27f
MB
16599if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16601else
a0b9e27f 16602 cat > conftest.$ac_ext <<EOF
89e3b3e4 16603#line 16604 "configure"
8284b0c5 16604#include "confdefs.h"
a0b9e27f
MB
16605#include <sys/types.h>
16606#if STDC_HEADERS
16607#include <stdlib.h>
16608#include <stddef.h>
8284b0c5 16609#endif
a0b9e27f
MB
16610EOF
16611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16612 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16613 rm -rf conftest*
16614 ac_cv_type_mode_t=yes
5c6fa7d2 16615else
a0b9e27f
MB
16616 rm -rf conftest*
16617 ac_cv_type_mode_t=no
16618fi
16619rm -f conftest*
16620
8284b0c5 16621fi
a0b9e27f
MB
16622echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16623if test $ac_cv_type_mode_t = no; then
16624 cat >> confdefs.h <<\EOF
16625#define mode_t int
16626EOF
16627
8284b0c5 16628fi
a0b9e27f
MB
16629
16630echo $ac_n "checking for off_t""... $ac_c" 1>&6
89e3b3e4 16631echo "configure:16632: checking for off_t" >&5
a0b9e27f
MB
16632if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634else
16635 cat > conftest.$ac_ext <<EOF
89e3b3e4 16636#line 16637 "configure"
a0b9e27f
MB
16637#include "confdefs.h"
16638#include <sys/types.h>
16639#if STDC_HEADERS
16640#include <stdlib.h>
16641#include <stddef.h>
16642#endif
16643EOF
16644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16645 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16646 rm -rf conftest*
16647 ac_cv_type_off_t=yes
247f5006 16648else
a0b9e27f
MB
16649 rm -rf conftest*
16650 ac_cv_type_off_t=no
16651fi
16652rm -f conftest*
247f5006 16653
a0b9e27f
MB
16654fi
16655echo "$ac_t""$ac_cv_type_off_t" 1>&6
16656if test $ac_cv_type_off_t = no; then
16657 cat >> confdefs.h <<\EOF
90dd450c 16658#define off_t long
a0b9e27f 16659EOF
10f2d63a 16660
90dd450c 16661fi
10f2d63a 16662
a0b9e27f 16663echo $ac_n "checking for pid_t""... $ac_c" 1>&6
89e3b3e4 16664echo "configure:16665: checking for pid_t" >&5
a0b9e27f
MB
16665if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16666 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16667else
a0b9e27f 16668 cat > conftest.$ac_ext <<EOF
89e3b3e4 16669#line 16670 "configure"
10f2d63a 16670#include "confdefs.h"
a0b9e27f
MB
16671#include <sys/types.h>
16672#if STDC_HEADERS
16673#include <stdlib.h>
16674#include <stddef.h>
8284b0c5 16675#endif
a0b9e27f
MB
16676EOF
16677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16678 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16679 rm -rf conftest*
90dd450c 16680 ac_cv_type_pid_t=yes
698dcdb6 16681else
a0b9e27f
MB
16682 rm -rf conftest*
16683 ac_cv_type_pid_t=no
8284b0c5 16684fi
a0b9e27f 16685rm -f conftest*
247f5006 16686
a0b9e27f
MB
16687fi
16688echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16689if test $ac_cv_type_pid_t = no; then
16690 cat >> confdefs.h <<\EOF
90dd450c 16691#define pid_t int
a0b9e27f 16692EOF
10f2d63a 16693
7b4a847f
RR
16694fi
16695
a0b9e27f 16696echo $ac_n "checking for size_t""... $ac_c" 1>&6
89e3b3e4 16697echo "configure:16698: checking for size_t" >&5
a0b9e27f
MB
16698if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16700else
a0b9e27f 16701 cat > conftest.$ac_ext <<EOF
89e3b3e4 16702#line 16703 "configure"
7b4a847f 16703#include "confdefs.h"
a0b9e27f
MB
16704#include <sys/types.h>
16705#if STDC_HEADERS
16706#include <stdlib.h>
16707#include <stddef.h>
8284b0c5 16708#endif
a0b9e27f
MB
16709EOF
16710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16711 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16712 rm -rf conftest*
90dd450c 16713 ac_cv_type_size_t=yes
18dbb1f6 16714else
a0b9e27f
MB
16715 rm -rf conftest*
16716 ac_cv_type_size_t=no
52127426 16717fi
a0b9e27f 16718rm -f conftest*
247f5006 16719
a0b9e27f
MB
16720fi
16721echo "$ac_t""$ac_cv_type_size_t" 1>&6
16722if test $ac_cv_type_size_t = no; then
16723 cat >> confdefs.h <<\EOF
90dd450c 16724#define size_t unsigned
a0b9e27f 16725EOF
90dd450c
VZ
16726
16727fi
16728
a0b9e27f 16729echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
89e3b3e4 16730echo "configure:16731: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16731if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16732 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16733else
a0b9e27f 16734 cat > conftest.$ac_ext <<EOF
89e3b3e4 16735#line 16736 "configure"
b3e8d00a 16736#include "confdefs.h"
90dd450c 16737#include <sys/types.h>
a0b9e27f 16738EOF
90dd450c
VZ
16739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16740 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16741 rm -rf conftest*
90dd450c 16742 ac_cv_type_uid_t=yes
b3e8d00a 16743else
a0b9e27f 16744 rm -rf conftest*
90dd450c 16745 ac_cv_type_uid_t=no
b3e8d00a 16746fi
90dd450c 16747rm -f conftest*
b3e8d00a 16748
4f14bcd8 16749fi
247f5006 16750
a0b9e27f
MB
16751echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16752if test $ac_cv_type_uid_t = no; then
16753 cat >> confdefs.h <<\EOF
90dd450c 16754#define uid_t int
a0b9e27f 16755EOF
247f5006 16756
a0b9e27f 16757 cat >> confdefs.h <<\EOF
90dd450c 16758#define gid_t int
a0b9e27f 16759EOF
4f14bcd8 16760
b3e8d00a 16761fi
b3e8d00a 16762
8284b0c5
MB
16763
16764
a0b9e27f
MB
16765ac_ext=C
16766# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16767ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16768ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16769ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16770cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16771
a0b9e27f 16772echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
89e3b3e4 16773echo "configure:16774: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16774if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16776else
a0b9e27f 16777 cat > conftest.$ac_ext <<EOF
89e3b3e4 16778#line 16779 "configure"
10f2d63a 16779#include "confdefs.h"
90dd450c 16780#include <stddef.h>
a0b9e27f 16781int main() {
90dd450c
VZ
16782
16783 return 0; }
16784
16785 struct Foo { void foo(size_t); void foo(unsigned int); };
16786
16787 int bar() {
a0b9e27f
MB
16788
16789; return 0; }
16790EOF
89e3b3e4 16791if { (eval echo configure:16792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16792 rm -rf conftest*
90dd450c 16793 wx_cv_size_t_is_uint=no
698dcdb6 16794else
a0b9e27f
MB
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 rm -rf conftest*
16798 wx_cv_size_t_is_uint=yes
16799
5c6fa7d2 16800fi
a0b9e27f 16801rm -f conftest*
8284b0c5 16802
247f5006 16803fi
a0b9e27f
MB
16804
16805echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16806
90dd450c 16807if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16808 cat >> confdefs.h <<\EOF
90dd450c 16809#define wxSIZE_T_IS_UINT 1
a0b9e27f 16810EOF
698dcdb6 16811
90dd450c 16812else
a0b9e27f 16813 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
89e3b3e4 16814echo "configure:16815: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16815if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16816 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16817else
a0b9e27f 16818 cat > conftest.$ac_ext <<EOF
89e3b3e4 16819#line 16820 "configure"
10f2d63a 16820#include "confdefs.h"
90dd450c 16821#include <stddef.h>
a0b9e27f 16822int main() {
90dd450c
VZ
16823
16824 return 0; }
16825
16826 struct Foo { void foo(size_t); void foo(unsigned long); };
16827
16828 int bar() {
a0b9e27f
MB
16829
16830; return 0; }
16831EOF
89e3b3e4 16832if { (eval echo configure:16833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16833 rm -rf conftest*
90dd450c 16834 wx_cv_size_t_is_ulong=no
698dcdb6 16835else
a0b9e27f
MB
16836 echo "configure: failed program was:" >&5
16837 cat conftest.$ac_ext >&5
16838 rm -rf conftest*
16839 wx_cv_size_t_is_ulong=yes
16840
5c6fa7d2 16841fi
a0b9e27f
MB
16842rm -f conftest*
16843
247f5006 16844fi
a0b9e27f
MB
16845
16846echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16847
90dd450c 16848 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16849 cat >> confdefs.h <<\EOF
90dd450c 16850#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16851EOF
4f14bcd8
GD
16852
16853 fi
90dd450c 16854fi
1e487827 16855
90dd450c 16856ac_ext=c
a0b9e27f 16857# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16858ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16859ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16860ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16861cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16862
5c6fa7d2 16863
8284b0c5 16864
a0b9e27f 16865echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
89e3b3e4 16866echo "configure:16867: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16867if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16868 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16869else
a0b9e27f
MB
16870
16871 cat > conftest.$ac_ext <<EOF
89e3b3e4 16872#line 16873 "configure"
4f14bcd8 16873#include "confdefs.h"
90dd450c 16874#include <pwd.h>
a0b9e27f 16875int main() {
f6bcfd97 16876
90dd450c
VZ
16877 char *p;
16878 struct passwd *pw;
16879 p = pw->pw_gecos;
a0b9e27f
MB
16880
16881; return 0; }
16882EOF
89e3b3e4 16883if { (eval echo configure:16884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16884 rm -rf conftest*
16885
90dd450c 16886 wx_cv_struct_pw_gecos=yes
a0b9e27f 16887
10f2d63a 16888else
a0b9e27f
MB
16889 echo "configure: failed program was:" >&5
16890 cat conftest.$ac_ext >&5
16891 rm -rf conftest*
16892
90dd450c 16893 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16894
16895
5c6fa7d2 16896fi
a0b9e27f
MB
16897rm -f conftest*
16898
247f5006
VZ
16899
16900fi
a0b9e27f
MB
16901
16902echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16903
90dd450c 16904if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16905 cat >> confdefs.h <<\EOF
90dd450c 16906#define HAVE_PW_GECOS 1
a0b9e27f 16907EOF
c521c494 16908
90dd450c 16909fi
4f14bcd8 16910
8284b0c5 16911
d29b553b 16912if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16913 cat >> confdefs.h <<\EOF
d74f4b5a 16914#define wxUSE_WCHAR_T 1
a0b9e27f 16915EOF
d74f4b5a 16916
8284b0c5 16917
d74f4b5a
VZ
16918 WCSLEN_FOUND=0
16919 WCHAR_LINK=
a0b9e27f 16920 for ac_func in wcslen
7a30264c 16921do
a0b9e27f 16922echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 16923echo "configure:16924: checking for $ac_func" >&5
a0b9e27f
MB
16924if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16925 echo $ac_n "(cached) $ac_c" 1>&6
16926else
16927 cat > conftest.$ac_ext <<EOF
89e3b3e4 16928#line 16929 "configure"
4f14bcd8 16929#include "confdefs.h"
7a30264c 16930/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16931 which can conflict with char $ac_func(); below. */
7a30264c 16932#include <assert.h>
4f14bcd8
GD
16933/* Override any gcc2 internal prototype to avoid an error. */
16934/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16935 builtin and then its argument prototype would still apply. */
16936char $ac_func();
16937
16938int main() {
16939
7a30264c
VZ
16940/* The GNU C library defines this for functions which it implements
16941 to always fail with ENOSYS. Some functions are actually named
16942 something starting with __ and the normal name is an alias. */
16943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16944choke me
16945#else
a0b9e27f 16946$ac_func();
7a30264c
VZ
16947#endif
16948
a0b9e27f
MB
16949; return 0; }
16950EOF
89e3b3e4 16951if { (eval echo configure:16952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16952 rm -rf conftest*
16953 eval "ac_cv_func_$ac_func=yes"
16954else
16955 echo "configure: failed program was:" >&5
16956 cat conftest.$ac_ext >&5
16957 rm -rf conftest*
16958 eval "ac_cv_func_$ac_func=no"
16959fi
16960rm -f conftest*
16961fi
16962
16963if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16966 cat >> confdefs.h <<EOF
16967#define $ac_tr_func 1
16968EOF
d74f4b5a 16969 WCSLEN_FOUND=1
a0b9e27f
MB
16970else
16971 echo "$ac_t""no" 1>&6
7a30264c
VZ
16972fi
16973done
9d8deca0 16974
8284b0c5 16975
d74f4b5a 16976 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16977 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16978 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
89e3b3e4 16979echo "configure:16980: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16980ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16981if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16982 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16983else
a0b9e27f 16984 ac_save_LIBS="$LIBS"
7a30264c 16985LIBS="-lmsvcrt $LIBS"
a0b9e27f 16986cat > conftest.$ac_ext <<EOF
89e3b3e4 16987#line 16988 "configure"
10f2d63a 16988#include "confdefs.h"
4f14bcd8
GD
16989/* Override any gcc2 internal prototype to avoid an error. */
16990/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16991 builtin and then its argument prototype would still apply. */
16992char wcslen();
16993
16994int main() {
16995wcslen()
16996; return 0; }
16997EOF
89e3b3e4 16998if { (eval echo configure:16999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16999 rm -rf conftest*
17000 eval "ac_cv_lib_$ac_lib_var=yes"
17001else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 eval "ac_cv_lib_$ac_lib_var=no"
17006fi
17007rm -f conftest*
17008LIBS="$ac_save_LIBS"
17009
17010fi
17011if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17012 echo "$ac_t""yes" 1>&6
d74f4b5a 17013 WCHAR_OK=1
a0b9e27f
MB
17014else
17015 echo "$ac_t""no" 1>&6
d29b553b 17016fi
698dcdb6 17017
7a30264c 17018 else
a0b9e27f 17019 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
89e3b3e4 17020echo "configure:17021: checking for wcslen in -lw" >&5
a0b9e27f
MB
17021ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17023 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17024else
a0b9e27f 17025 ac_save_LIBS="$LIBS"
7a30264c 17026LIBS="-lw $LIBS"
a0b9e27f 17027cat > conftest.$ac_ext <<EOF
89e3b3e4 17028#line 17029 "configure"
95c8801c 17029#include "confdefs.h"
4f14bcd8
GD
17030/* Override any gcc2 internal prototype to avoid an error. */
17031/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17032 builtin and then its argument prototype would still apply. */
17033char wcslen();
52127426 17034
a0b9e27f
MB
17035int main() {
17036wcslen()
17037; return 0; }
17038EOF
89e3b3e4 17039if { (eval echo configure:17040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17040 rm -rf conftest*
17041 eval "ac_cv_lib_$ac_lib_var=yes"
17042else
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 eval "ac_cv_lib_$ac_lib_var=no"
17047fi
17048rm -f conftest*
17049LIBS="$ac_save_LIBS"
17050
17051fi
17052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17053 echo "$ac_t""yes" 1>&6
17054
7a30264c 17055 WCHAR_LINK=" -lw"
d74f4b5a 17056 WCSLEN_FOUND=1
a0b9e27f
MB
17057
17058else
17059 echo "$ac_t""no" 1>&6
4f14bcd8 17060fi
10f2d63a 17061
7a30264c 17062 fi
d29b553b 17063 fi
95c8801c 17064
d74f4b5a 17065 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 17066 cat >> confdefs.h <<\EOF
d74f4b5a 17067#define HAVE_WCSLEN 1
a0b9e27f 17068EOF
10f2d63a 17069
d74f4b5a 17070 fi
52127426 17071
a0b9e27f 17072 for ac_func in wcsrtombs
eb4efbdc 17073do
a0b9e27f 17074echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17075echo "configure:17076: checking for $ac_func" >&5
a0b9e27f
MB
17076if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17077 echo $ac_n "(cached) $ac_c" 1>&6
17078else
17079 cat > conftest.$ac_ext <<EOF
89e3b3e4 17080#line 17081 "configure"
eb4efbdc
VZ
17081#include "confdefs.h"
17082/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17083 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
17084#include <assert.h>
17085/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 17086/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17087 builtin and then its argument prototype would still apply. */
17088char $ac_func();
17089
17090int main() {
17091
10f2d63a
VZ
17092/* The GNU C library defines this for functions which it implements
17093 to always fail with ENOSYS. Some functions are actually named
17094 something starting with __ and the normal name is an alias. */
247f5006 17095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17096choke me
17097#else
a0b9e27f 17098$ac_func();
10f2d63a
VZ
17099#endif
17100
a0b9e27f
MB
17101; return 0; }
17102EOF
89e3b3e4 17103if { (eval echo configure:17104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17104 rm -rf conftest*
17105 eval "ac_cv_func_$ac_func=yes"
17106else
17107 echo "configure: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17109 rm -rf conftest*
17110 eval "ac_cv_func_$ac_func=no"
17111fi
17112rm -f conftest*
17113fi
270a909e 17114
a0b9e27f
MB
17115if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17116 echo "$ac_t""yes" 1>&6
17117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17118 cat >> confdefs.h <<EOF
17119#define $ac_tr_func 1
17120EOF
17121
17122else
17123 echo "$ac_t""no" 1>&6
4f14bcd8 17124fi
247f5006 17125done
1e487827 17126
af15babd 17127else
a0b9e27f 17128 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17129fi
52127426 17130
8284b0c5 17131
a0b9e27f
MB
17132ac_ext=C
17133# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17134ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17135ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17136ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17137cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17138
247f5006
VZ
17139
17140for ac_func in vsnprintf
17141do
a0b9e27f 17142echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17143echo "configure:17144: checking for $ac_func" >&5
a0b9e27f
MB
17144if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17145 echo $ac_n "(cached) $ac_c" 1>&6
17146else
17147 cat > conftest.$ac_ext <<EOF
89e3b3e4 17148#line 17149 "configure"
af15babd 17149#include "confdefs.h"
247f5006 17150/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17151 which can conflict with char $ac_func(); below. */
247f5006
VZ
17152#include <assert.h>
17153/* Override any gcc2 internal prototype to avoid an error. */
17154#ifdef __cplusplus
17155extern "C"
17156#endif
17157/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17158 builtin and then its argument prototype would still apply. */
17159char $ac_func();
17160
17161int main() {
17162
247f5006
VZ
17163/* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17167choke me
17168#else
a0b9e27f 17169$ac_func();
247f5006 17170#endif
af15babd 17171
a0b9e27f
MB
17172; return 0; }
17173EOF
89e3b3e4 17174if { (eval echo configure:17175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17175 rm -rf conftest*
17176 eval "ac_cv_func_$ac_func=yes"
17177else
17178 echo "configure: failed program was:" >&5
17179 cat conftest.$ac_ext >&5
17180 rm -rf conftest*
17181 eval "ac_cv_func_$ac_func=no"
17182fi
17183rm -f conftest*
17184fi
52127426 17185
a0b9e27f
MB
17186if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17187 echo "$ac_t""yes" 1>&6
17188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17189 cat >> confdefs.h <<EOF
17190#define $ac_tr_func 1
17191EOF
17192
17193else
17194 echo "$ac_t""no" 1>&6
5c6fa7d2 17195fi
247f5006 17196done
8284b0c5 17197
4f14bcd8 17198
8d90d2f2
VZ
17199if test "$ac_cv_func_vsnprintf" = "yes"; then
17200 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
89e3b3e4 17201echo "configure:17202: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17202if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17203 echo $ac_n "(cached) $ac_c" 1>&6
17204else
17205
17206 cat > conftest.$ac_ext <<EOF
89e3b3e4 17207#line 17208 "configure"
8d90d2f2
VZ
17208#include "confdefs.h"
17209
17210 #include <stdio.h>
17211 #include <stdarg.h>
17212
17213int main() {
17214
17215 char *buf;
17216 va_list ap;
17217 vsnprintf(buf, 10u, "%s", ap);
17218
17219; return 0; }
17220EOF
89e3b3e4 17221if { (eval echo configure:17222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17222 rm -rf conftest*
17223 wx_cv_func_vsnprintf_decl=yes
17224else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228 wx_cv_func_vsnprintf_decl=no
17229
17230fi
17231rm -f conftest*
17232
17233
17234fi
17235
17236echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17237
17238 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17239 cat >> confdefs.h <<\EOF
17240#define HAVE_VSNPRINTF_DECL 1
17241EOF
17242
17243 fi
17244fi
17245
247f5006 17246if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17247 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17248do
a0b9e27f 17249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17250echo "configure:17251: checking for $ac_func" >&5
a0b9e27f
MB
17251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17252 echo $ac_n "(cached) $ac_c" 1>&6
17253else
17254 cat > conftest.$ac_ext <<EOF
89e3b3e4 17255#line 17256 "configure"
d74f4b5a
VZ
17256#include "confdefs.h"
17257/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17258 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17259#include <assert.h>
17260/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17261#ifdef __cplusplus
17262extern "C"
17263#endif
d74f4b5a 17264/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17265 builtin and then its argument prototype would still apply. */
17266char $ac_func();
17267
17268int main() {
17269
d74f4b5a
VZ
17270/* The GNU C library defines this for functions which it implements
17271 to always fail with ENOSYS. Some functions are actually named
17272 something starting with __ and the normal name is an alias. */
17273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17274choke me
17275#else
a0b9e27f 17276$ac_func();
d74f4b5a
VZ
17277#endif
17278
a0b9e27f
MB
17279; return 0; }
17280EOF
89e3b3e4 17281if { (eval echo configure:17282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17282 rm -rf conftest*
17283 eval "ac_cv_func_$ac_func=yes"
17284else
17285 echo "configure: failed program was:" >&5
17286 cat conftest.$ac_ext >&5
17287 rm -rf conftest*
17288 eval "ac_cv_func_$ac_func=no"
17289fi
17290rm -f conftest*
17291fi
d74f4b5a 17292
a0b9e27f
MB
17293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17294 echo "$ac_t""yes" 1>&6
17295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17296 cat >> confdefs.h <<EOF
17297#define $ac_tr_func 1
17298EOF
17299
17300else
17301 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17302fi
17303done
17304
8d90d2f2 17305
79668cae 17306 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
89e3b3e4 17307echo "configure:17308: checking for _vsnwprintf" >&5
79668cae 17308 cat > conftest.$ac_ext <<EOF
89e3b3e4 17309#line 17310 "configure"
79668cae
MB
17310#include "confdefs.h"
17311#include <wchar.h>
17312int main() {
17313&_vsnwprintf;
17314; return 0; }
17315EOF
89e3b3e4 17316if { (eval echo configure:17317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17317 rm -rf conftest*
17318 echo "$ac_t""yes" 1>&6
17319 cat >> confdefs.h <<\EOF
17320#define HAVE__VSNWPRINTF 1
17321EOF
17322
17323else
17324 echo "configure: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17326 rm -rf conftest*
17327 echo "$ac_t""no" 1>&6
17328fi
17329rm -f conftest*;
d74f4b5a
VZ
17330fi
17331
247f5006 17332ac_ext=c
a0b9e27f 17333# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17334ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17335ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17336ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17337cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17338
17339
17340
17341
4f14bcd8 17342if test "$TOOLKIT" != "MSW"; then
af15babd 17343
8284b0c5
MB
17344
17345
a0b9e27f
MB
17346ac_ext=C
17347# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17348ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17349ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17350ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17351cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17352
52127426 17353
a0b9e27f
MB
17354
17355 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17356if test "${with_libiconv_prefix+set}" = set; then
17357 withval="$with_libiconv_prefix"
a0b9e27f 17358
b040e242
VS
17359 for dir in `echo "$withval" | tr : ' '`; do
17360 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17361 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17362 done
a0b9e27f
MB
17363
17364fi
b040e242
VS
17365
17366
a0b9e27f 17367 echo $ac_n "checking for iconv""... $ac_c" 1>&6
89e3b3e4 17368echo "configure:17369: checking for iconv" >&5
a0b9e27f
MB
17369if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17370 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17371else
a0b9e27f 17372
b040e242
VS
17373 am_cv_func_iconv="no, consider installing GNU libiconv"
17374 am_cv_lib_iconv=no
a0b9e27f 17375 cat > conftest.$ac_ext <<EOF
89e3b3e4 17376#line 17377 "configure"
af15babd 17377#include "confdefs.h"
b040e242 17378#include <stdlib.h>
4f14bcd8 17379#include <iconv.h>
a0b9e27f 17380int main() {
b040e242
VS
17381iconv_t cd = iconv_open("","");
17382 iconv(cd,NULL,NULL,NULL,NULL);
17383 iconv_close(cd);
a0b9e27f
MB
17384; return 0; }
17385EOF
89e3b3e4 17386if { (eval echo configure:17387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17387 rm -rf conftest*
b040e242 17388 am_cv_func_iconv=yes
af15babd 17389else
a0b9e27f
MB
17390 echo "configure: failed program was:" >&5
17391 cat conftest.$ac_ext >&5
b040e242 17392fi
a0b9e27f 17393rm -f conftest*
b040e242
VS
17394 if test "$am_cv_func_iconv" != yes; then
17395 am_save_LIBS="$LIBS"
17396 LIBS="$LIBS -liconv"
a0b9e27f 17397 cat > conftest.$ac_ext <<EOF
89e3b3e4 17398#line 17399 "configure"
b040e242
VS
17399#include "confdefs.h"
17400#include <stdlib.h>
17401#include <iconv.h>
a0b9e27f 17402int main() {
b040e242
VS
17403iconv_t cd = iconv_open("","");
17404 iconv(cd,NULL,NULL,NULL,NULL);
17405 iconv_close(cd);
a0b9e27f
MB
17406; return 0; }
17407EOF
89e3b3e4 17408if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17409 rm -rf conftest*
b040e242
VS
17410 am_cv_lib_iconv=yes
17411 am_cv_func_iconv=yes
17412else
a0b9e27f
MB
17413 echo "configure: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
af15babd 17415fi
a0b9e27f 17416rm -f conftest*
b040e242
VS
17417 LIBS="$am_save_LIBS"
17418 fi
a0b9e27f 17419
247f5006 17420fi
247f5006 17421
a0b9e27f
MB
17422echo "$ac_t""$am_cv_func_iconv" 1>&6
17423 if test "$am_cv_func_iconv" = yes; then
17424 cat >> confdefs.h <<\EOF
b040e242 17425#define HAVE_ICONV 1
a0b9e27f 17426EOF
b040e242 17427
a0b9e27f 17428 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
89e3b3e4 17429echo "configure:17430: checking if iconv needs const" >&5
a0b9e27f
MB
17430if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17432else
a0b9e27f 17433 cat > conftest.$ac_ext <<EOF
89e3b3e4 17434#line 17435 "configure"
b040e242
VS
17435#include "confdefs.h"
17436
17437#include <stdlib.h>
17438#include <iconv.h>
17439extern
17440#ifdef __cplusplus
17441"C"
17442#endif
17443#if defined(__STDC__) || defined(__cplusplus)
17444size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17445#else
17446size_t iconv();
17447#endif
a0b9e27f
MB
17448
17449int main() {
af15babd 17450
a0b9e27f
MB
17451; return 0; }
17452EOF
89e3b3e4 17453if { (eval echo configure:17454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17454 rm -rf conftest*
b7043674 17455 wx_cv_func_iconv_const="no"
b040e242 17456else
a0b9e27f
MB
17457 echo "configure: failed program was:" >&5
17458 cat conftest.$ac_ext >&5
17459 rm -rf conftest*
17460 wx_cv_func_iconv_const="yes"
17461
5c6fa7d2 17462fi
a0b9e27f
MB
17463rm -f conftest*
17464
247f5006 17465fi
a0b9e27f
MB
17466
17467echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17468
17469 iconv_const=
1c405bb5 17470 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17471 iconv_const="const"
17472 fi
17473
a0b9e27f 17474 cat >> confdefs.h <<EOF
f09359cf 17475#define ICONV_CONST $iconv_const
a0b9e27f 17476EOF
b040e242
VS
17477
17478 fi
17479 LIBICONV=
17480 if test "$am_cv_lib_iconv" = yes; then
17481 LIBICONV="-liconv"
17482 fi
a0b9e27f 17483
b040e242
VS
17484
17485LIBS="$LIBICONV $LIBS"
4f14bcd8 17486ac_ext=c
a0b9e27f 17487# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17488ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17489ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17490ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17491cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17492
5c6fa7d2 17493
8284b0c5 17494if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17495 for ac_func in sigaction
af15babd 17496do
a0b9e27f 17497echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17498echo "configure:17499: checking for $ac_func" >&5
a0b9e27f
MB
17499if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17500 echo $ac_n "(cached) $ac_c" 1>&6
17501else
17502 cat > conftest.$ac_ext <<EOF
89e3b3e4 17503#line 17504 "configure"
af15babd
VZ
17504#include "confdefs.h"
17505/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17506 which can conflict with char $ac_func(); below. */
af15babd
VZ
17507#include <assert.h>
17508/* Override any gcc2 internal prototype to avoid an error. */
17509/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17510 builtin and then its argument prototype would still apply. */
17511char $ac_func();
17512
17513int main() {
17514
af15babd
VZ
17515/* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17519choke me
17520#else
a0b9e27f 17521$ac_func();
af15babd
VZ
17522#endif
17523
a0b9e27f
MB
17524; return 0; }
17525EOF
89e3b3e4 17526if { (eval echo configure:17527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17527 rm -rf conftest*
17528 eval "ac_cv_func_$ac_func=yes"
17529else
17530 echo "configure: failed program was:" >&5
17531 cat conftest.$ac_ext >&5
17532 rm -rf conftest*
17533 eval "ac_cv_func_$ac_func=no"
17534fi
17535rm -f conftest*
17536fi
7b4a847f 17537
a0b9e27f
MB
17538if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17539 echo "$ac_t""yes" 1>&6
17540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17541 cat >> confdefs.h <<EOF
17542#define $ac_tr_func 1
17543EOF
17544
17545else
17546 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17547fi
17548done
17549
8284b0c5 17550
4f14bcd8 17551 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17552 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17553 wxUSE_ON_FATAL_EXCEPTION=no
17554 fi
17555
17556 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17557
17558 ac_ext=C
17559# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17560ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17561ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17562ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17563cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17564
5c6fa7d2 17565
a0b9e27f 17566 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
89e3b3e4 17567echo "configure:17568: checking for sa_handler type" >&5
a0b9e27f
MB
17568if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17569 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17570else
a0b9e27f
MB
17571
17572 cat > conftest.$ac_ext <<EOF
89e3b3e4 17573#line 17574 "configure"
af15babd 17574#include "confdefs.h"
4f14bcd8 17575#include <signal.h>
a0b9e27f 17576int main() {
4f14bcd8
GD
17577
17578 extern void testSigHandler(int);
17579
17580 struct sigaction sa;
17581 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17582
17583; return 0; }
17584EOF
89e3b3e4 17585if { (eval echo configure:17586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17586 rm -rf conftest*
17587
4f14bcd8 17588 wx_cv_type_sa_handler=int
a0b9e27f 17589
af15babd 17590else
a0b9e27f
MB
17591 echo "configure: failed program was:" >&5
17592 cat conftest.$ac_ext >&5
17593 rm -rf conftest*
17594
4f14bcd8 17595 wx_cv_type_sa_handler=void
a0b9e27f 17596
5c6fa7d2 17597fi
a0b9e27f
MB
17598rm -f conftest*
17599
247f5006 17600fi
a0b9e27f
MB
17601
17602echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17603
17604 ac_ext=c
a0b9e27f 17605# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17606ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17607ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17608ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17609cross_compiling=$ac_cv_prog_cc_cross
579d8138 17610
8284b0c5 17611
a0b9e27f 17612 cat >> confdefs.h <<EOF
4f14bcd8 17613#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17614EOF
af15babd 17615
4f14bcd8
GD
17616 fi
17617fi
af15babd 17618
a1d22ad7 17619for ac_func in mkstemp mktemp
af15babd 17620do
a0b9e27f 17621echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17622echo "configure:17623: checking for $ac_func" >&5
a0b9e27f
MB
17623if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17624 echo $ac_n "(cached) $ac_c" 1>&6
17625else
17626 cat > conftest.$ac_ext <<EOF
89e3b3e4 17627#line 17628 "configure"
af15babd
VZ
17628#include "confdefs.h"
17629/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17630 which can conflict with char $ac_func(); below. */
af15babd
VZ
17631#include <assert.h>
17632/* Override any gcc2 internal prototype to avoid an error. */
17633/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17634 builtin and then its argument prototype would still apply. */
17635char $ac_func();
17636
17637int main() {
17638
af15babd
VZ
17639/* The GNU C library defines this for functions which it implements
17640 to always fail with ENOSYS. Some functions are actually named
17641 something starting with __ and the normal name is an alias. */
17642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17643choke me
17644#else
a0b9e27f 17645$ac_func();
af15babd
VZ
17646#endif
17647
a0b9e27f
MB
17648; return 0; }
17649EOF
89e3b3e4 17650if { (eval echo configure:17651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17651 rm -rf conftest*
17652 eval "ac_cv_func_$ac_func=yes"
17653else
17654 echo "configure: failed program was:" >&5
17655 cat conftest.$ac_ext >&5
17656 rm -rf conftest*
17657 eval "ac_cv_func_$ac_func=no"
17658fi
17659rm -f conftest*
17660fi
af15babd 17661
a0b9e27f
MB
17662if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17663 echo "$ac_t""yes" 1>&6
17664 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17665 cat >> confdefs.h <<EOF
17666#define $ac_tr_func 1
17667EOF
ade35f11 17668 break
a0b9e27f
MB
17669else
17670 echo "$ac_t""no" 1>&6
ade35f11
VZ
17671fi
17672done
17673
8284b0c5 17674
a0b9e27f 17675echo $ac_n "checking for statfs""... $ac_c" 1>&6
89e3b3e4 17676echo "configure:17677: checking for statfs" >&5
a0b9e27f
MB
17677if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17678 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17679else
a0b9e27f 17680 cat > conftest.$ac_ext <<EOF
89e3b3e4 17681#line 17682 "configure"
4f14bcd8
GD
17682#include "confdefs.h"
17683
17684 #if defined(__BSD__)
17685 #include <sys/param.h>
17686 #include <sys/mount.h>
17687 #else
17688 #include <sys/vfs.h>
17689 #endif
a0b9e27f
MB
17690
17691int main() {
4f14bcd8
GD
17692
17693 long l;
17694 struct statfs fs;
17695 statfs("/", &fs);
17696 l = fs.f_bsize;
17697 l += fs.f_blocks;
17698 l += fs.f_bavail;
a0b9e27f
MB
17699
17700; return 0; }
17701EOF
89e3b3e4 17702if { (eval echo configure:17703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17703 rm -rf conftest*
17704
4f14bcd8 17705 wx_cv_func_statfs=yes
a0b9e27f 17706
4f14bcd8 17707else
a0b9e27f
MB
17708 echo "configure: failed program was:" >&5
17709 cat conftest.$ac_ext >&5
17710 rm -rf conftest*
17711
4f14bcd8 17712 wx_cv_func_statfs=no
a0b9e27f
MB
17713
17714
5c6fa7d2 17715fi
a0b9e27f 17716rm -f conftest*
8284b0c5 17717
247f5006 17718fi
a0b9e27f
MB
17719
17720echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17721
17722if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17723 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17724 cat >> confdefs.h <<\EOF
4f14bcd8 17725#define HAVE_STATFS 1
a0b9e27f 17726EOF
4f14bcd8
GD
17727
17728else
a0b9e27f 17729 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
89e3b3e4 17730echo "configure:17731: checking for statvfs" >&5
a0b9e27f
MB
17731if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17732 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17733else
a0b9e27f 17734 cat > conftest.$ac_ext <<EOF
89e3b3e4 17735#line 17736 "configure"
af15babd 17736#include "confdefs.h"
af15babd 17737
54ab82b3
VZ
17738 #include <stddef.h>
17739 #include <sys/statvfs.h>
a0b9e27f
MB
17740
17741int main() {
af15babd 17742
54ab82b3 17743 statvfs("/", NULL);
a0b9e27f
MB
17744
17745; return 0; }
17746EOF
89e3b3e4 17747if { (eval echo configure:17748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17748 rm -rf conftest*
54ab82b3 17749 wx_cv_func_statvfs=yes
af15babd 17750else
a0b9e27f
MB
17751 echo "configure: failed program was:" >&5
17752 cat conftest.$ac_ext >&5
17753 rm -rf conftest*
54ab82b3 17754 wx_cv_func_statvfs=no
a0b9e27f 17755
5c6fa7d2 17756fi
a0b9e27f
MB
17757rm -f conftest*
17758
247f5006 17759fi
a0b9e27f
MB
17760
17761echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17762
4f14bcd8 17763 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17764
17765 ac_ext=C
17766# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17767ac_cpp='$CXXCPP $CPPFLAGS'
17768ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17769ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17770cross_compiling=$ac_cv_prog_cxx_cross
17771
17772
17773 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
89e3b3e4 17774echo "configure:17775: checking for statvfs argument type" >&5
54ab82b3
VZ
17775if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17776 echo $ac_n "(cached) $ac_c" 1>&6
17777else
17778 cat > conftest.$ac_ext <<EOF
89e3b3e4 17779#line 17780 "configure"
54ab82b3
VZ
17780#include "confdefs.h"
17781
17782 #include <sys/statvfs.h>
17783
17784int main() {
17785
17786 long l;
17787 statvfs_t fs;
17788 statvfs("/", &fs);
17789 l = fs.f_bsize;
17790 l += fs.f_blocks;
17791 l += fs.f_bavail;
17792
17793; return 0; }
17794EOF
89e3b3e4 17795if { (eval echo configure:17796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17796 rm -rf conftest*
17797 wx_cv_type_statvfs_t=statvfs_t
17798else
17799 echo "configure: failed program was:" >&5
17800 cat conftest.$ac_ext >&5
17801 rm -rf conftest*
17802
17803 cat > conftest.$ac_ext <<EOF
89e3b3e4 17804#line 17805 "configure"
54ab82b3
VZ
17805#include "confdefs.h"
17806
17807 #include <sys/statvfs.h>
17808
17809int main() {
17810
17811 long l;
65d8ef1e 17812 struct statvfs fs;
54ab82b3
VZ
17813 statvfs("/", &fs);
17814 l = fs.f_bsize;
17815 l += fs.f_blocks;
17816 l += fs.f_bavail;
17817
17818; return 0; }
17819EOF
89e3b3e4 17820if { (eval echo configure:17821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17821 rm -rf conftest*
17822 wx_cv_type_statvfs_t="struct statvfs"
17823else
17824 echo "configure: failed program was:" >&5
17825 cat conftest.$ac_ext >&5
17826 rm -rf conftest*
17827 wx_cv_type_statvfs_t="unknown"
17828
17829fi
17830rm -f conftest*
17831
17832
17833fi
17834rm -f conftest*
17835
17836fi
17837
17838echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17839
17840 ac_ext=c
17841# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17842ac_cpp='$CPP $CPPFLAGS'
17843ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17844ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17845cross_compiling=$ac_cv_prog_cc_cross
17846
17847
17848 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17849 cat >> confdefs.h <<\EOF
4f14bcd8 17850#define HAVE_STATVFS 1
a0b9e27f 17851EOF
af15babd 17852
54ab82b3 17853 fi
4f14bcd8 17854 else
54ab82b3 17855 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17856 fi
17857fi
af15babd 17858
54ab82b3
VZ
17859if test "$wx_cv_type_statvfs_t" != "unknown"; then
17860 cat >> confdefs.h <<EOF
17861#define WX_STATFS_T $wx_cv_type_statvfs_t
17862EOF
17863
17864else
17865 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17866fi
17867
4f14bcd8 17868if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17869 for ac_func in fcntl flock
af15babd 17870do
a0b9e27f 17871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17872echo "configure:17873: checking for $ac_func" >&5
a0b9e27f
MB
17873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17874 echo $ac_n "(cached) $ac_c" 1>&6
17875else
17876 cat > conftest.$ac_ext <<EOF
89e3b3e4 17877#line 17878 "configure"
af15babd
VZ
17878#include "confdefs.h"
17879/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17880 which can conflict with char $ac_func(); below. */
af15babd
VZ
17881#include <assert.h>
17882/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17883/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17884 builtin and then its argument prototype would still apply. */
17885char $ac_func();
17886
17887int main() {
17888
af15babd
VZ
17889/* The GNU C library defines this for functions which it implements
17890 to always fail with ENOSYS. Some functions are actually named
17891 something starting with __ and the normal name is an alias. */
17892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17893choke me
17894#else
a0b9e27f 17895$ac_func();
af15babd
VZ
17896#endif
17897
a0b9e27f
MB
17898; return 0; }
17899EOF
89e3b3e4 17900if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17901 rm -rf conftest*
17902 eval "ac_cv_func_$ac_func=yes"
17903else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_func_$ac_func=no"
17908fi
17909rm -f conftest*
17910fi
17911
17912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17913 echo "$ac_t""yes" 1>&6
17914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17915 cat >> confdefs.h <<EOF
17916#define $ac_tr_func 1
17917EOF
4f14bcd8 17918 break
a0b9e27f
MB
17919else
17920 echo "$ac_t""no" 1>&6
af15babd
VZ
17921fi
17922done
17923
8284b0c5 17924
4f14bcd8 17925 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17926 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17927 wxUSE_SNGLINST_CHECKER=no
17928 fi
17929fi
af15babd 17930
4f14bcd8 17931for ac_func in timegm
af15babd 17932do
a0b9e27f 17933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17934echo "configure:17935: checking for $ac_func" >&5
a0b9e27f
MB
17935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17936 echo $ac_n "(cached) $ac_c" 1>&6
17937else
17938 cat > conftest.$ac_ext <<EOF
89e3b3e4 17939#line 17940 "configure"
af15babd
VZ
17940#include "confdefs.h"
17941/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17942 which can conflict with char $ac_func(); below. */
af15babd
VZ
17943#include <assert.h>
17944/* Override any gcc2 internal prototype to avoid an error. */
17945/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17946 builtin and then its argument prototype would still apply. */
17947char $ac_func();
17948
17949int main() {
17950
af15babd
VZ
17951/* The GNU C library defines this for functions which it implements
17952 to always fail with ENOSYS. Some functions are actually named
17953 something starting with __ and the normal name is an alias. */
247f5006
VZ
17954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17955choke me
17956#else
a0b9e27f 17957$ac_func();
247f5006
VZ
17958#endif
17959
a0b9e27f
MB
17960; return 0; }
17961EOF
89e3b3e4 17962if { (eval echo configure:17963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17963 rm -rf conftest*
17964 eval "ac_cv_func_$ac_func=yes"
17965else
17966 echo "configure: failed program was:" >&5
17967 cat conftest.$ac_ext >&5
17968 rm -rf conftest*
17969 eval "ac_cv_func_$ac_func=no"
17970fi
17971rm -f conftest*
17972fi
703e0a69 17973
a0b9e27f
MB
17974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17975 echo "$ac_t""yes" 1>&6
17976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17977 cat >> confdefs.h <<EOF
17978#define $ac_tr_func 1
17979EOF
17980
17981else
17982 echo "$ac_t""no" 1>&6
af15babd
VZ
17983fi
17984done
17985
8284b0c5 17986
4f14bcd8 17987for ac_func in putenv setenv
10f2d63a 17988do
a0b9e27f 17989echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 17990echo "configure:17991: checking for $ac_func" >&5
a0b9e27f
MB
17991if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17992 echo $ac_n "(cached) $ac_c" 1>&6
17993else
17994 cat > conftest.$ac_ext <<EOF
89e3b3e4 17995#line 17996 "configure"
af15babd
VZ
17996#include "confdefs.h"
17997/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17998 which can conflict with char $ac_func(); below. */
af15babd
VZ
17999#include <assert.h>
18000/* Override any gcc2 internal prototype to avoid an error. */
18001/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18002 builtin and then its argument prototype would still apply. */
18003char $ac_func();
18004
18005int main() {
18006
af15babd
VZ
18007/* The GNU C library defines this for functions which it implements
18008 to always fail with ENOSYS. Some functions are actually named
18009 something starting with __ and the normal name is an alias. */
18010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18011choke me
18012#else
a0b9e27f 18013$ac_func();
af15babd
VZ
18014#endif
18015
a0b9e27f
MB
18016; return 0; }
18017EOF
89e3b3e4 18018if { (eval echo configure:18019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18019 rm -rf conftest*
18020 eval "ac_cv_func_$ac_func=yes"
18021else
18022 echo "configure: failed program was:" >&5
18023 cat conftest.$ac_ext >&5
18024 rm -rf conftest*
18025 eval "ac_cv_func_$ac_func=no"
18026fi
18027rm -f conftest*
18028fi
18029
18030if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18031 echo "$ac_t""yes" 1>&6
18032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18033 cat >> confdefs.h <<EOF
18034#define $ac_tr_func 1
18035EOF
4f14bcd8 18036 break
a0b9e27f
MB
18037else
18038 echo "$ac_t""no" 1>&6
af15babd 18039fi
af15babd
VZ
18040done
18041
8284b0c5 18042
4f14bcd8
GD
18043HAVE_SOME_SLEEP_FUNC=0
18044if test "$USE_BEOS" = 1; then
a0b9e27f 18045 cat >> confdefs.h <<\EOF
4f14bcd8 18046#define HAVE_SLEEP 1
a0b9e27f 18047EOF
af15babd 18048
4f14bcd8 18049 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18050fi
18051
4f14bcd8 18052if test "$USE_DARWIN" = 1; then
a0b9e27f 18053 cat >> confdefs.h <<\EOF
4f14bcd8 18054#define HAVE_USLEEP 1
a0b9e27f 18055EOF
10f2d63a 18056
4f14bcd8 18057 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18058fi
18059
4f14bcd8
GD
18060if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18061 POSIX4_LINK=
a0b9e27f 18062 for ac_func in nanosleep
4f14bcd8 18063do
a0b9e27f 18064echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18065echo "configure:18066: checking for $ac_func" >&5
a0b9e27f
MB
18066if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18067 echo $ac_n "(cached) $ac_c" 1>&6
18068else
18069 cat > conftest.$ac_ext <<EOF
89e3b3e4 18070#line 18071 "configure"
10f2d63a 18071#include "confdefs.h"
4f14bcd8 18072/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18073 which can conflict with char $ac_func(); below. */
4f14bcd8 18074#include <assert.h>
10f2d63a
VZ
18075/* Override any gcc2 internal prototype to avoid an error. */
18076/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18077 builtin and then its argument prototype would still apply. */
18078char $ac_func();
18079
18080int main() {
18081
4f14bcd8
GD
18082/* The GNU C library defines this for functions which it implements
18083 to always fail with ENOSYS. Some functions are actually named
18084 something starting with __ and the normal name is an alias. */
18085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18086choke me
18087#else
a0b9e27f 18088$ac_func();
4f14bcd8
GD
18089#endif
18090
a0b9e27f
MB
18091; return 0; }
18092EOF
89e3b3e4 18093if { (eval echo configure:18094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18094 rm -rf conftest*
18095 eval "ac_cv_func_$ac_func=yes"
18096else
18097 echo "configure: failed program was:" >&5
18098 cat conftest.$ac_ext >&5
18099 rm -rf conftest*
18100 eval "ac_cv_func_$ac_func=no"
18101fi
18102rm -f conftest*
18103fi
18104
18105if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18106 echo "$ac_t""yes" 1>&6
18107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18108 cat >> confdefs.h <<EOF
18109#define $ac_tr_func 1
18110EOF
18111 cat >> confdefs.h <<\EOF
4f14bcd8 18112#define HAVE_NANOSLEEP 1
a0b9e27f 18113EOF
4f14bcd8 18114
10f2d63a 18115else
a0b9e27f
MB
18116 echo "$ac_t""no" 1>&6
18117echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
89e3b3e4 18118echo "configure:18119: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18119ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18120if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18121 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18122else
a0b9e27f 18123 ac_save_LIBS="$LIBS"
4f14bcd8 18124LIBS="-lposix4 $LIBS"
a0b9e27f 18125cat > conftest.$ac_ext <<EOF
89e3b3e4 18126#line 18127 "configure"
10f2d63a
VZ
18127#include "confdefs.h"
18128/* Override any gcc2 internal prototype to avoid an error. */
18129/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18130 builtin and then its argument prototype would still apply. */
18131char nanosleep();
18132
18133int main() {
18134nanosleep()
18135; return 0; }
18136EOF
89e3b3e4 18137if { (eval echo configure:18138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18138 rm -rf conftest*
18139 eval "ac_cv_lib_$ac_lib_var=yes"
18140else
18141 echo "configure: failed program was:" >&5
18142 cat conftest.$ac_ext >&5
18143 rm -rf conftest*
18144 eval "ac_cv_lib_$ac_lib_var=no"
18145fi
18146rm -f conftest*
18147LIBS="$ac_save_LIBS"
18148
18149fi
18150if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18151 echo "$ac_t""yes" 1>&6
18152
18153 cat >> confdefs.h <<\EOF
4f14bcd8 18154#define HAVE_NANOSLEEP 1
a0b9e27f 18155EOF
4f14bcd8 18156
3d63bc3a 18157 POSIX4_LINK=" -lposix4"
a0b9e27f 18158
10f2d63a 18159else
a0b9e27f 18160 echo "$ac_t""no" 1>&6
10f2d63a 18161
a0b9e27f 18162 for ac_func in usleep
4f14bcd8 18163do
a0b9e27f 18164echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18165echo "configure:18166: checking for $ac_func" >&5
a0b9e27f
MB
18166if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18167 echo $ac_n "(cached) $ac_c" 1>&6
18168else
18169 cat > conftest.$ac_ext <<EOF
89e3b3e4 18170#line 18171 "configure"
10f2d63a 18171#include "confdefs.h"
4f14bcd8 18172/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18173 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18174#include <assert.h>
18175/* Override any gcc2 internal prototype to avoid an error. */
18176/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18177 builtin and then its argument prototype would still apply. */
18178char $ac_func();
18179
18180int main() {
18181
4f14bcd8
GD
18182/* The GNU C library defines this for functions which it implements
18183 to always fail with ENOSYS. Some functions are actually named
18184 something starting with __ and the normal name is an alias. */
18185#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18186choke me
18187#else
a0b9e27f 18188$ac_func();
4f14bcd8
GD
18189#endif
18190
a0b9e27f
MB
18191; return 0; }
18192EOF
89e3b3e4 18193if { (eval echo configure:18194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18194 rm -rf conftest*
18195 eval "ac_cv_func_$ac_func=yes"
18196else
18197 echo "configure: failed program was:" >&5
18198 cat conftest.$ac_ext >&5
18199 rm -rf conftest*
18200 eval "ac_cv_func_$ac_func=no"
18201fi
18202rm -f conftest*
18203fi
18204
18205if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18206 echo "$ac_t""yes" 1>&6
18207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18208 cat >> confdefs.h <<EOF
18209#define $ac_tr_func 1
18210EOF
18211 cat >> confdefs.h <<\EOF
4f14bcd8 18212#define HAVE_USLEEP 1
a0b9e27f 18213EOF
4f14bcd8 18214
698dcdb6 18215else
a0b9e27f
MB
18216 echo "$ac_t""no" 1>&6
18217echo "configure: warning: wxSleep() function will not work" 1>&2
18218
10f2d63a 18219fi
4f14bcd8 18220done
10f2d63a 18221
a0b9e27f
MB
18222
18223
6232543b 18224fi
10f2d63a 18225
a0b9e27f
MB
18226
18227
1e487827 18228fi
4f14bcd8 18229done
703e0a69 18230
10f2d63a
VZ
18231fi
18232
4f14bcd8 18233for ac_func in uname gethostname
70846f0a 18234do
a0b9e27f 18235echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18236echo "configure:18237: checking for $ac_func" >&5
a0b9e27f
MB
18237if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239else
18240 cat > conftest.$ac_ext <<EOF
89e3b3e4 18241#line 18242 "configure"
70846f0a
VZ
18242#include "confdefs.h"
18243/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18244 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18245#include <assert.h>
18246/* Override any gcc2 internal prototype to avoid an error. */
18247/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18248 builtin and then its argument prototype would still apply. */
18249char $ac_func();
18250
18251int main() {
18252
70846f0a
VZ
18253/* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257choke me
18258#else
a0b9e27f 18259$ac_func();
70846f0a
VZ
18260#endif
18261
a0b9e27f
MB
18262; return 0; }
18263EOF
89e3b3e4 18264if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18265 rm -rf conftest*
18266 eval "ac_cv_func_$ac_func=yes"
18267else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=no"
18272fi
18273rm -f conftest*
18274fi
18275
18276if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18277 echo "$ac_t""yes" 1>&6
18278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18279 cat >> confdefs.h <<EOF
18280#define $ac_tr_func 1
18281EOF
4f14bcd8 18282 break
a0b9e27f
MB
18283else
18284 echo "$ac_t""no" 1>&6
70846f0a
VZ
18285fi
18286done
18287
8284b0c5
MB
18288
18289
a0b9e27f
MB
18290ac_ext=C
18291# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18292ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18293ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18294ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18295cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18296
4f14bcd8
GD
18297
18298for ac_func in strtok_r
10f2d63a 18299do
a0b9e27f 18300echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18301echo "configure:18302: checking for $ac_func" >&5
a0b9e27f
MB
18302if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18303 echo $ac_n "(cached) $ac_c" 1>&6
18304else
18305 cat > conftest.$ac_ext <<EOF
89e3b3e4 18306#line 18307 "configure"
10f2d63a 18307#include "confdefs.h"
4f14bcd8 18308/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18309 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18310#include <assert.h>
18311/* Override any gcc2 internal prototype to avoid an error. */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18316 builtin and then its argument prototype would still apply. */
18317char $ac_func();
18318
18319int main() {
18320
4f14bcd8
GD
18321/* The GNU C library defines this for functions which it implements
18322 to always fail with ENOSYS. Some functions are actually named
18323 something starting with __ and the normal name is an alias. */
18324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18325choke me
18326#else
a0b9e27f 18327$ac_func();
4f14bcd8
GD
18328#endif
18329
a0b9e27f
MB
18330; return 0; }
18331EOF
89e3b3e4 18332if { (eval echo configure:18333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18333 rm -rf conftest*
18334 eval "ac_cv_func_$ac_func=yes"
18335else
18336 echo "configure: failed program was:" >&5
18337 cat conftest.$ac_ext >&5
18338 rm -rf conftest*
18339 eval "ac_cv_func_$ac_func=no"
18340fi
18341rm -f conftest*
18342fi
4f14bcd8 18343
a0b9e27f
MB
18344if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18345 echo "$ac_t""yes" 1>&6
18346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18347 cat >> confdefs.h <<EOF
18348#define $ac_tr_func 1
18349EOF
18350
18351else
18352 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18353fi
18354done
18355
8284b0c5 18356
4f14bcd8 18357ac_ext=c
a0b9e27f 18358# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18359ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18360ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18361ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18362cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18363
5c6fa7d2 18364
8284b0c5 18365INET_LINK=
4f14bcd8
GD
18366for ac_func in inet_addr
18367do
a0b9e27f 18368echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18369echo "configure:18370: checking for $ac_func" >&5
a0b9e27f
MB
18370if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18371 echo $ac_n "(cached) $ac_c" 1>&6
18372else
18373 cat > conftest.$ac_ext <<EOF
89e3b3e4 18374#line 18375 "configure"
10f2d63a 18375#include "confdefs.h"
4f14bcd8 18376/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18377 which can conflict with char $ac_func(); below. */
4f14bcd8 18378#include <assert.h>
10f2d63a
VZ
18379/* Override any gcc2 internal prototype to avoid an error. */
18380/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18381 builtin and then its argument prototype would still apply. */
18382char $ac_func();
18383
18384int main() {
18385
4f14bcd8
GD
18386/* The GNU C library defines this for functions which it implements
18387 to always fail with ENOSYS. Some functions are actually named
18388 something starting with __ and the normal name is an alias. */
18389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18390choke me
18391#else
a0b9e27f 18392$ac_func();
4f14bcd8
GD
18393#endif
18394
a0b9e27f
MB
18395; return 0; }
18396EOF
89e3b3e4 18397if { (eval echo configure:18398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18398 rm -rf conftest*
18399 eval "ac_cv_func_$ac_func=yes"
18400else
18401 echo "configure: failed program was:" >&5
18402 cat conftest.$ac_ext >&5
18403 rm -rf conftest*
18404 eval "ac_cv_func_$ac_func=no"
18405fi
18406rm -f conftest*
18407fi
18408
18409if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18410 echo "$ac_t""yes" 1>&6
18411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18412 cat >> confdefs.h <<EOF
18413#define $ac_tr_func 1
18414EOF
18415 cat >> confdefs.h <<\EOF
4f14bcd8 18416#define HAVE_INET_ADDR 1
a0b9e27f 18417EOF
10f2d63a
VZ
18418
18419else
a0b9e27f
MB
18420 echo "$ac_t""no" 1>&6
18421echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
89e3b3e4 18422echo "configure:18423: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18423ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18425 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18426else
a0b9e27f 18427 ac_save_LIBS="$LIBS"
4f14bcd8 18428LIBS="-lnsl $LIBS"
a0b9e27f 18429cat > conftest.$ac_ext <<EOF
89e3b3e4 18430#line 18431 "configure"
10f2d63a
VZ
18431#include "confdefs.h"
18432/* Override any gcc2 internal prototype to avoid an error. */
18433/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18434 builtin and then its argument prototype would still apply. */
18435char inet_addr();
18436
18437int main() {
18438inet_addr()
18439; return 0; }
18440EOF
89e3b3e4 18441if { (eval echo configure:18442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18442 rm -rf conftest*
18443 eval "ac_cv_lib_$ac_lib_var=yes"
18444else
18445 echo "configure: failed program was:" >&5
18446 cat conftest.$ac_ext >&5
18447 rm -rf conftest*
18448 eval "ac_cv_lib_$ac_lib_var=no"
18449fi
18450rm -f conftest*
18451LIBS="$ac_save_LIBS"
18452
18453fi
18454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18455 echo "$ac_t""yes" 1>&6
4f14bcd8 18456 INET_LINK="nsl"
10f2d63a 18457else
a0b9e27f
MB
18458 echo "$ac_t""no" 1>&6
18459echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
89e3b3e4 18460echo "configure:18461: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18461ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18464else
a0b9e27f 18465 ac_save_LIBS="$LIBS"
4f14bcd8 18466LIBS="-lresolv $LIBS"
a0b9e27f 18467cat > conftest.$ac_ext <<EOF
89e3b3e4 18468#line 18469 "configure"
7b4a847f 18469#include "confdefs.h"
5c6fa7d2 18470/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18471/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18472 builtin and then its argument prototype would still apply. */
18473char inet_addr();
18474
18475int main() {
18476inet_addr()
18477; return 0; }
18478EOF
89e3b3e4 18479if { (eval echo configure:18480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18480 rm -rf conftest*
18481 eval "ac_cv_lib_$ac_lib_var=yes"
18482else
18483 echo "configure: failed program was:" >&5
18484 cat conftest.$ac_ext >&5
18485 rm -rf conftest*
18486 eval "ac_cv_lib_$ac_lib_var=no"
18487fi
18488rm -f conftest*
18489LIBS="$ac_save_LIBS"
18490
18491fi
18492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18493 echo "$ac_t""yes" 1>&6
4f14bcd8 18494 INET_LINK="resolv"
698dcdb6 18495else
a0b9e27f
MB
18496 echo "$ac_t""no" 1>&6
18497echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
89e3b3e4 18498echo "configure:18499: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18499ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18501 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18502else
a0b9e27f 18503 ac_save_LIBS="$LIBS"
3c011993 18504LIBS="-lsocket $LIBS"
a0b9e27f 18505cat > conftest.$ac_ext <<EOF
89e3b3e4 18506#line 18507 "configure"
3c011993
VZ
18507#include "confdefs.h"
18508/* Override any gcc2 internal prototype to avoid an error. */
18509/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18510 builtin and then its argument prototype would still apply. */
18511char inet_addr();
4f14bcd8 18512
a0b9e27f
MB
18513int main() {
18514inet_addr()
18515; return 0; }
18516EOF
89e3b3e4 18517if { (eval echo configure:18518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18518 rm -rf conftest*
18519 eval "ac_cv_lib_$ac_lib_var=yes"
18520else
18521 echo "configure: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18523 rm -rf conftest*
18524 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18525fi
a0b9e27f
MB
18526rm -f conftest*
18527LIBS="$ac_save_LIBS"
698dcdb6 18528
7b4a847f 18529fi
a0b9e27f
MB
18530if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18531 echo "$ac_t""yes" 1>&6
18532 INET_LINK="socket"
18533
18534else
18535 echo "$ac_t""no" 1>&6
18536fi
579d8138 18537
a0b9e27f 18538
5c6fa7d2 18539fi
52127426 18540
a0b9e27f
MB
18541
18542fi
247f5006 18543
a0b9e27f 18544
8284b0c5 18545
698dcdb6 18546fi
4f14bcd8
GD
18547done
18548
8284b0c5 18549
4f14bcd8
GD
18550for ac_func in inet_aton
18551do
a0b9e27f 18552echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18553echo "configure:18554: checking for $ac_func" >&5
a0b9e27f
MB
18554if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18555 echo $ac_n "(cached) $ac_c" 1>&6
18556else
18557 cat > conftest.$ac_ext <<EOF
89e3b3e4 18558#line 18559 "configure"
f6bcfd97 18559#include "confdefs.h"
4f14bcd8 18560/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18561 which can conflict with char $ac_func(); below. */
4f14bcd8 18562#include <assert.h>
f6bcfd97
BP
18563/* Override any gcc2 internal prototype to avoid an error. */
18564/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18565 builtin and then its argument prototype would still apply. */
18566char $ac_func();
18567
18568int main() {
18569
4f14bcd8
GD
18570/* The GNU C library defines this for functions which it implements
18571 to always fail with ENOSYS. Some functions are actually named
18572 something starting with __ and the normal name is an alias. */
18573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18574choke me
18575#else
a0b9e27f 18576$ac_func();
4f14bcd8
GD
18577#endif
18578
a0b9e27f
MB
18579; return 0; }
18580EOF
89e3b3e4 18581if { (eval echo configure:18582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18582 rm -rf conftest*
18583 eval "ac_cv_func_$ac_func=yes"
18584else
18585 echo "configure: failed program was:" >&5
18586 cat conftest.$ac_ext >&5
18587 rm -rf conftest*
18588 eval "ac_cv_func_$ac_func=no"
18589fi
18590rm -f conftest*
18591fi
18592
18593if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18594 echo "$ac_t""yes" 1>&6
18595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18596 cat >> confdefs.h <<EOF
18597#define $ac_tr_func 1
18598EOF
18599 cat >> confdefs.h <<\EOF
4f14bcd8 18600#define HAVE_INET_ATON 1
a0b9e27f 18601EOF
4f14bcd8 18602
10f2d63a 18603else
a0b9e27f
MB
18604 echo "$ac_t""no" 1>&6
18605 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
89e3b3e4 18606echo "configure:18607: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18607ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18609 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18610else
a0b9e27f 18611 ac_save_LIBS="$LIBS"
4f14bcd8 18612LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18613cat > conftest.$ac_ext <<EOF
89e3b3e4 18614#line 18615 "configure"
10f2d63a 18615#include "confdefs.h"
6232543b 18616/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18617/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18618 builtin and then its argument prototype would still apply. */
18619char inet_aton();
18620
18621int main() {
18622inet_aton()
18623; return 0; }
18624EOF
89e3b3e4 18625if { (eval echo configure:18626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18626 rm -rf conftest*
18627 eval "ac_cv_lib_$ac_lib_var=yes"
18628else
18629 echo "configure: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18631 rm -rf conftest*
18632 eval "ac_cv_lib_$ac_lib_var=no"
18633fi
18634rm -f conftest*
18635LIBS="$ac_save_LIBS"
4f14bcd8 18636
10f2d63a 18637fi
a0b9e27f
MB
18638if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18639 echo "$ac_t""yes" 1>&6
18640 cat >> confdefs.h <<\EOF
18641#define HAVE_INET_ATON 1
18642EOF
10f2d63a 18643
a0b9e27f
MB
18644else
18645 echo "$ac_t""no" 1>&6
18646fi
247f5006 18647
a0b9e27f 18648
10f2d63a 18649fi
4f14bcd8 18650done
10f2d63a 18651
8284b0c5 18652
4f14bcd8 18653if test "x$INET_LINK" != "x"; then
a0b9e27f 18654 cat >> confdefs.h <<\EOF
4f14bcd8 18655#define HAVE_INET_ADDR 1
a0b9e27f 18656EOF
4f14bcd8 18657
3d63bc3a 18658 INET_LINK=" -l$INET_LINK"
6232543b 18659fi
10f2d63a 18660
1e487827 18661fi
703e0a69 18662
8284b0c5 18663
a0b9e27f 18664cat > confcache <<\EOF
4f14bcd8
GD
18665# This file is a shell script that caches the results of configure
18666# tests run on this system so they can be shared between configure
a0b9e27f
MB
18667# scripts and configure runs. It is not useful on other systems.
18668# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18669#
a0b9e27f
MB
18670# By default, configure uses ./config.cache as the cache file,
18671# creating it if it does not exist already. You can give configure
18672# the --cache-file=FILE option to use a different cache file; that is
18673# what configure does when it calls configure scripts in
18674# subdirectories, so they share the cache.
18675# Giving --cache-file=/dev/null disables caching, for debugging configure.
18676# config.status only pays attention to the cache file if you give it the
18677# --recheck option to rerun configure.
4f14bcd8 18678#
a0b9e27f 18679EOF
4f14bcd8
GD
18680# The following way of writing the cache mishandles newlines in values,
18681# but we know of no workaround that is simple, portable, and efficient.
18682# So, don't put newlines in cache variables' values.
18683# Ultrix sh set writes to stderr and can't be redirected directly,
18684# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18685(set) 2>&1 |
18686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18687 *ac_space=\ *)
18688 # `set' does not quote correctly, so add quotes (double-quote substitution
18689 # turns \\\\ into \\, and sed turns \\ into \).
18690 sed -n \
18691 -e "s/'/'\\\\''/g" \
18692 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18693 ;;
18694 *)
18695 # `set' quotes correctly as required by POSIX, so do not add quotes.
18696 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18697 ;;
18698 esac >> confcache
18699if cmp -s $cache_file confcache; then
18700 :
18701else
4f14bcd8 18702 if test -w $cache_file; then
a0b9e27f
MB
18703 echo "updating cache $cache_file"
18704 cat confcache > $cache_file
f6bcfd97 18705 else
4f14bcd8 18706 echo "not updating unwritable cache $cache_file"
f6bcfd97 18707 fi
4f14bcd8
GD
18708fi
18709rm -f confcache
f6bcfd97 18710
8284b0c5 18711
a0b9e27f 18712
009fead0 18713CPP_MT_FLAG=
4f14bcd8
GD
18714if test "$TOOLKIT" != "MSW"; then
18715
a0b9e27f 18716
7274f1c7 18717 THREADS_LINK=
009fead0 18718 THREADS_CFLAGS=
7274f1c7
RL
18719
18720 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18721 if test "$USE_BEOS" = 1; then
a0b9e27f 18722 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18723 wxUSE_THREADS="no"
18724 fi
4f14bcd8 18725 fi
4f14bcd8 18726
7274f1c7 18727 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18728
18729
009fead0
VZ
18730 THREAD_OPTS="-pthread"
18731 case "${host}" in
18732 *-*-solaris2* | *-*-sunos4* )
18733 if test "x$GCC" = "xyes"; then
126be6b4 18734 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18735 else
18736 THREAD_OPTS="-mt $THREAD_OPTS"
18737 fi
18738 ;;
18739 *-*-freebsd*)
18740 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18741 ;;
17234b26
MB
18742 *-*-darwin* | *-*-cygwin* )
18743 THREAD_OPTS=""
4101db81 18744 ;;
8f4a9a10 18745 *-*-aix*)
009fead0
VZ
18746 THREAD_OPTS="pthreads"
18747 ;;
4f5a7f74
VZ
18748 *-hp-hpux* )
18749 if test "x$GCC" != "xyes"; then
18750 THREAD_OPTS=""
18751 fi
89e3b3e4
VZ
18752 ;;
18753
18754 *-*-irix* )
18755 if test "x$GCC" = "xyes"; then
18756 THREAD_OPTS=""
18757 fi
18758 ;;
18759
18760 *-*-*UnixWare*)
18761 if test "x$GCC" != "xyes"; then
18762 THREAD_OPTS="-Ethread"
18763 fi
18764 ;;
009fead0 18765 esac
4f14bcd8 18766
02a1dfba 18767 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18768
009fead0
VZ
18769 THREADS_OK=no
18770 for flag in $THREAD_OPTS; do
18771 case $flag in
18772 none)
a0b9e27f 18773 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
89e3b3e4 18774echo "configure:18775: checking whether pthreads work without any flags" >&5
009fead0 18775 ;;
698dcdb6 18776
009fead0 18777 -*)
a0b9e27f 18778 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
89e3b3e4 18779echo "configure:18780: checking whether pthreads work with $flag" >&5
009fead0
VZ
18780 THREADS_CFLAGS="$flag"
18781 ;;
698dcdb6 18782
009fead0 18783 *)
a0b9e27f 18784 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
89e3b3e4 18785echo "configure:18786: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18786 THREADS_LINK="-l$flag"
18787 ;;
18788 esac
10f2d63a 18789
009fead0
VZ
18790 save_LIBS="$LIBS"
18791 save_CFLAGS="$CFLAGS"
18792 LIBS="$THREADS_LINK $LIBS"
04727afd 18793 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18794
a0b9e27f 18795 cat > conftest.$ac_ext <<EOF
89e3b3e4 18796#line 18797 "configure"
009fead0
VZ
18797#include "confdefs.h"
18798#include <pthread.h>
a0b9e27f 18799int main() {
009fead0 18800pthread_create(0,0,0,0);
a0b9e27f
MB
18801; return 0; }
18802EOF
89e3b3e4 18803if { (eval echo configure:18804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18804 rm -rf conftest*
009fead0 18805 THREADS_OK=yes
10f2d63a 18806else
a0b9e27f
MB
18807 echo "configure: failed program was:" >&5
18808 cat conftest.$ac_ext >&5
6232543b 18809fi
a0b9e27f 18810rm -f conftest*
698dcdb6 18811
009fead0
VZ
18812 LIBS="$save_LIBS"
18813 CFLAGS="$save_CFLAGS"
d9b9876f 18814
a0b9e27f 18815 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18816 if test "x$THREADS_OK" = "xyes"; then
18817 break;
18818 fi
d9b9876f 18819
009fead0
VZ
18820 THREADS_LINK=""
18821 THREADS_CFLAGS=""
18822 done
4f14bcd8 18823
009fead0
VZ
18824 if test "x$THREADS_OK" != "xyes"; then
18825 wxUSE_THREADS=no
a0b9e27f 18826 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18827 else
db82f09e
VZ
18828 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18829 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18830
a0b9e27f 18831 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
89e3b3e4 18832echo "configure:18833: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18833 flag=no
18834 case "${host}" in
2b5f62a0
VZ
18835 *-aix*)
18836 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18837 flag="-D_THREAD_SAFE"
18838 ;;
18839 *-freebsd*)
009fead0
VZ
18840 flag="-D_THREAD_SAFE"
18841 ;;
06313569
GD
18842 *-hp-hpux* )
18843 flag="-D_REENTRANT"
4f5a7f74
VZ
18844 if test "x$GCC" != "xyes"; then
18845 flag="$flag -D_RWSTD_MULTI_THREAD"
18846 fi
06313569 18847 ;;
009fead0
VZ
18848 *solaris* | alpha*-osf*)
18849 flag="-D_REENTRANT"
18850 ;;
18851 esac
a0b9e27f 18852 echo "$ac_t""${flag}" 1>&6
009fead0 18853 if test "x$flag" != xno; then
04727afd 18854 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18855 fi
18856
009fead0 18857 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18858 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18859 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18860 fi
18861 fi
4f14bcd8 18862 fi
4f14bcd8 18863
7274f1c7 18864 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18865 for ac_func in thr_setconcurrency
4f14bcd8 18866do
a0b9e27f 18867echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 18868echo "configure:18869: checking for $ac_func" >&5
a0b9e27f
MB
18869if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18870 echo $ac_n "(cached) $ac_c" 1>&6
18871else
18872 cat > conftest.$ac_ext <<EOF
89e3b3e4 18873#line 18874 "configure"
d9b9876f 18874#include "confdefs.h"
4f14bcd8 18875/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18876 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18877#include <assert.h>
18878/* Override any gcc2 internal prototype to avoid an error. */
18879/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18880 builtin and then its argument prototype would still apply. */
18881char $ac_func();
18882
18883int main() {
18884
4f14bcd8
GD
18885/* The GNU C library defines this for functions which it implements
18886 to always fail with ENOSYS. Some functions are actually named
18887 something starting with __ and the normal name is an alias. */
18888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18889choke me
18890#else
a0b9e27f 18891$ac_func();
4f14bcd8
GD
18892#endif
18893
a0b9e27f
MB
18894; return 0; }
18895EOF
89e3b3e4 18896if { (eval echo configure:18897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18897 rm -rf conftest*
18898 eval "ac_cv_func_$ac_func=yes"
18899else
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 rm -rf conftest*
18903 eval "ac_cv_func_$ac_func=no"
18904fi
18905rm -f conftest*
18906fi
698dcdb6 18907
a0b9e27f
MB
18908if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18909 echo "$ac_t""yes" 1>&6
18910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18911 cat >> confdefs.h <<EOF
18912#define $ac_tr_func 1
18913EOF
18914
18915else
18916 echo "$ac_t""no" 1>&6
10f2d63a 18917fi
4f14bcd8 18918done
10f2d63a 18919
8284b0c5 18920
a0b9e27f 18921 for ac_hdr in sched.h
4f14bcd8 18922do
a0b9e27f
MB
18923ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18924echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 18925echo "configure:18926: checking for $ac_hdr" >&5
a0b9e27f
MB
18926if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18927 echo $ac_n "(cached) $ac_c" 1>&6
18928else
18929 cat > conftest.$ac_ext <<EOF
89e3b3e4 18930#line 18931 "configure"
247f5006 18931#include "confdefs.h"
a0b9e27f
MB
18932#include <$ac_hdr>
18933EOF
18934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 18935{ (eval echo configure:18936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18937if test -z "$ac_err"; then
18938 rm -rf conftest*
18939 eval "ac_cv_header_$ac_safe=yes"
18940else
18941 echo "$ac_err" >&5
18942 echo "configure: failed program was:" >&5
4f14bcd8 18943 cat conftest.$ac_ext >&5
a0b9e27f
MB
18944 rm -rf conftest*
18945 eval "ac_cv_header_$ac_safe=no"
13111b2a 18946fi
a0b9e27f 18947rm -f conftest*
10f2d63a 18948fi
a0b9e27f
MB
18949if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18950 echo "$ac_t""yes" 1>&6
18951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18952 cat >> confdefs.h <<EOF
18953#define $ac_tr_hdr 1
18954EOF
18955
18956else
18957 echo "$ac_t""no" 1>&6
f6bcfd97 18958fi
4f14bcd8 18959done
f6bcfd97 18960
009fead0 18961 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18962 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
89e3b3e4 18963echo "configure:18964: checking for sched_yield" >&5
a0b9e27f
MB
18964if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18965 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18966else
a0b9e27f 18967 cat > conftest.$ac_ext <<EOF
89e3b3e4 18968#line 18969 "configure"
4f14bcd8 18969#include "confdefs.h"
009fead0 18970/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18971 which can conflict with char sched_yield(); below. */
009fead0 18972#include <assert.h>
4f14bcd8
GD
18973/* Override any gcc2 internal prototype to avoid an error. */
18974/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18975 builtin and then its argument prototype would still apply. */
18976char sched_yield();
18977
18978int main() {
18979
009fead0
VZ
18980/* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18984choke me
18985#else
a0b9e27f 18986sched_yield();
009fead0
VZ
18987#endif
18988
a0b9e27f
MB
18989; return 0; }
18990EOF
89e3b3e4 18991if { (eval echo configure:18992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18992 rm -rf conftest*
18993 eval "ac_cv_func_sched_yield=yes"
18994else
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18997 rm -rf conftest*
18998 eval "ac_cv_func_sched_yield=no"
18999fi
19000rm -f conftest*
19001fi
19002
19003if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19004 echo "$ac_t""yes" 1>&6
19005 cat >> confdefs.h <<\EOF
4f14bcd8 19006#define HAVE_SCHED_YIELD 1
a0b9e27f 19007EOF
10f2d63a 19008
4f14bcd8 19009else
a0b9e27f 19010 echo "$ac_t""no" 1>&6
009fead0 19011
a0b9e27f 19012 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
89e3b3e4 19013echo "configure:19014: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
19014ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19015if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19016 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19017else
a0b9e27f 19018 ac_save_LIBS="$LIBS"
4f14bcd8 19019LIBS="-lposix4 $LIBS"
a0b9e27f 19020cat > conftest.$ac_ext <<EOF
89e3b3e4 19021#line 19022 "configure"
4f14bcd8
GD
19022#include "confdefs.h"
19023/* Override any gcc2 internal prototype to avoid an error. */
19024/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19025 builtin and then its argument prototype would still apply. */
19026char sched_yield();
19027
19028int main() {
19029sched_yield()
19030; return 0; }
19031EOF
89e3b3e4 19032if { (eval echo configure:19033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19033 rm -rf conftest*
19034 eval "ac_cv_lib_$ac_lib_var=yes"
19035else
19036 echo "configure: failed program was:" >&5
19037 cat conftest.$ac_ext >&5
19038 rm -rf conftest*
19039 eval "ac_cv_lib_$ac_lib_var=no"
19040fi
19041rm -f conftest*
19042LIBS="$ac_save_LIBS"
19043
19044fi
19045if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19046 echo "$ac_t""yes" 1>&6
19047 cat >> confdefs.h <<\EOF
4f14bcd8 19048#define HAVE_SCHED_YIELD 1
a0b9e27f 19049EOF
3d63bc3a 19050 POSIX4_LINK=" -lposix4"
4f14bcd8 19051else
a0b9e27f
MB
19052 echo "$ac_t""no" 1>&6
19053echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19054
54276ccf
VZ
19055fi
19056
a0b9e27f
MB
19057
19058
4f14bcd8 19059fi
698dcdb6 19060
009fead0 19061 fi
10f2d63a 19062
7274f1c7 19063 HAVE_PRIOR_FUNCS=0
a0b9e27f 19064 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
89e3b3e4 19065echo "configure:19066: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
19066if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19068else
a0b9e27f 19069 cat > conftest.$ac_ext <<EOF
89e3b3e4 19070#line 19071 "configure"
422107f9 19071#include "confdefs.h"
009fead0 19072/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19073 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 19074#include <assert.h>
4f14bcd8
GD
19075/* Override any gcc2 internal prototype to avoid an error. */
19076/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19077 builtin and then its argument prototype would still apply. */
19078char pthread_attr_getschedpolicy();
19079
19080int main() {
19081
009fead0
VZ
19082/* The GNU C library defines this for functions which it implements
19083 to always fail with ENOSYS. Some functions are actually named
19084 something starting with __ and the normal name is an alias. */
19085#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19086choke me
19087#else
a0b9e27f 19088pthread_attr_getschedpolicy();
009fead0
VZ
19089#endif
19090
a0b9e27f
MB
19091; return 0; }
19092EOF
89e3b3e4 19093if { (eval echo configure:19094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19094 rm -rf conftest*
19095 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19096else
19097 echo "configure: failed program was:" >&5
19098 cat conftest.$ac_ext >&5
19099 rm -rf conftest*
19100 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19101fi
19102rm -f conftest*
19103fi
19104
19105if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19106 echo "$ac_t""yes" 1>&6
19107 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
89e3b3e4 19108echo "configure:19109: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19109if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19110 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19111else
a0b9e27f 19112 cat > conftest.$ac_ext <<EOF
89e3b3e4 19113#line 19114 "configure"
a0b9e27f
MB
19114#include "confdefs.h"
19115/* System header to define __stub macros and hopefully few prototypes,
19116 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19117#include <assert.h>
422107f9
VZ
19118/* Override any gcc2 internal prototype to avoid an error. */
19119/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19120 builtin and then its argument prototype would still apply. */
19121char pthread_attr_setschedparam();
19122
19123int main() {
19124
009fead0
VZ
19125/* The GNU C library defines this for functions which it implements
19126 to always fail with ENOSYS. Some functions are actually named
19127 something starting with __ and the normal name is an alias. */
19128#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19129choke me
19130#else
a0b9e27f 19131pthread_attr_setschedparam();
009fead0
VZ
19132#endif
19133
a0b9e27f
MB
19134; return 0; }
19135EOF
89e3b3e4 19136if { (eval echo configure:19137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19137 rm -rf conftest*
19138 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19139else
19140 echo "configure: failed program was:" >&5
19141 cat conftest.$ac_ext >&5
19142 rm -rf conftest*
19143 eval "ac_cv_func_pthread_attr_setschedparam=no"
19144fi
19145rm -f conftest*
19146fi
19147
19148if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19149 echo "$ac_t""yes" 1>&6
19150 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
89e3b3e4 19151echo "configure:19152: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19152if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19153 echo $ac_n "(cached) $ac_c" 1>&6
19154else
19155 cat > conftest.$ac_ext <<EOF
89e3b3e4 19156#line 19157 "configure"
422107f9 19157#include "confdefs.h"
009fead0
VZ
19158/* System header to define __stub macros and hopefully few prototypes
19159else
a0b9e27f
MB
19160 echo "$ac_t""no" 1>&6
19161which can conflict with char sched_get_priority_max(); below. */
009fead0 19162#include <assert.h>
4f14bcd8
GD
19163/* Override any gcc2 internal prototype to avoid an error. */
19164/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19165 builtin and then its argument prototype would still apply. */
19166char sched_get_priority_max();
19167
19168int main() {
19169
009fead0
VZ
19170/* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19174choke me
19175#else
a0b9e27f 19176sched_get_priority_max();
009fead0
VZ
19177#endif
19178
a0b9e27f
MB
19179; return 0; }
19180EOF
89e3b3e4 19181if { (eval echo configure:19182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19182 rm -rf conftest*
19183 eval "ac_cv_func_sched_get_priority_max=yes"
19184else
19185 echo "configure: failed program was:" >&5
19186 cat conftest.$ac_ext >&5
19187 rm -rf conftest*
19188 eval "ac_cv_func_sched_get_priority_max=no"
19189fi
19190rm -f conftest*
19191fi
19192
19193if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19194 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19195 HAVE_PRIOR_FUNCS=1
19196else
a0b9e27f
MB
19197 echo "$ac_t""no" 1>&6
19198echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
89e3b3e4 19199echo "configure:19200: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19200ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19202 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19203else
a0b9e27f 19204 ac_save_LIBS="$LIBS"
4f14bcd8 19205LIBS="-lposix4 $LIBS"
a0b9e27f 19206cat > conftest.$ac_ext <<EOF
89e3b3e4 19207#line 19208 "configure"
422107f9
VZ
19208#include "confdefs.h"
19209/* Override any gcc2 internal prototype to avoid an error. */
19210/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19211 builtin and then its argument prototype would still apply. */
19212char sched_get_priority_max();
19213
19214int main() {
19215sched_get_priority_max()
19216; return 0; }
19217EOF
89e3b3e4 19218if { (eval echo configure:19219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19219 rm -rf conftest*
19220 eval "ac_cv_lib_$ac_lib_var=yes"
19221else
19222 echo "configure: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 rm -rf conftest*
19225 eval "ac_cv_lib_$ac_lib_var=no"
19226fi
19227rm -f conftest*
19228LIBS="$ac_save_LIBS"
698dcdb6 19229
a0b9e27f
MB
19230fi
19231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19232 echo "$ac_t""yes" 1>&6
19233
7274f1c7
RL
19234 HAVE_PRIOR_FUNCS=1
19235 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19236
19237else
19238 echo "$ac_t""no" 1>&6
4f14bcd8 19239fi
463abc64 19240
a0b9e27f 19241
328a083c 19242fi
463abc64 19243
a0b9e27f
MB
19244
19245else
19246 echo "$ac_t""no" 1>&6
7b4a847f 19247fi
579d8138 19248
a0b9e27f 19249
5c6fa7d2 19250fi
52127426 19251
8284b0c5 19252
7274f1c7 19253 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19254 cat >> confdefs.h <<\EOF
4f14bcd8 19255#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19256EOF
463abc64 19257
7274f1c7 19258 else
a0b9e27f 19259 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19260 fi
463abc64 19261
a0b9e27f 19262 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
89e3b3e4 19263echo "configure:19264: checking for pthread_cancel" >&5
a0b9e27f
MB
19264if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19265 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19266else
a0b9e27f 19267 cat > conftest.$ac_ext <<EOF
89e3b3e4 19268#line 19269 "configure"
422107f9 19269#include "confdefs.h"
009fead0 19270/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19271 which can conflict with char pthread_cancel(); below. */
009fead0 19272#include <assert.h>
422107f9
VZ
19273/* Override any gcc2 internal prototype to avoid an error. */
19274/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19275 builtin and then its argument prototype would still apply. */
19276char pthread_cancel();
19277
19278int main() {
19279
009fead0
VZ
19280/* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19284choke me
19285#else
a0b9e27f 19286pthread_cancel();
009fead0
VZ
19287#endif
19288
a0b9e27f
MB
19289; return 0; }
19290EOF
89e3b3e4 19291if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19292 rm -rf conftest*
19293 eval "ac_cv_func_pthread_cancel=yes"
19294else
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19297 rm -rf conftest*
19298 eval "ac_cv_func_pthread_cancel=no"
19299fi
19300rm -f conftest*
19301fi
19302
19303if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19304 echo "$ac_t""yes" 1>&6
19305 cat >> confdefs.h <<\EOF
4f14bcd8 19306#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19307EOF
4f14bcd8 19308
698dcdb6 19309else
a0b9e27f
MB
19310 echo "$ac_t""no" 1>&6
19311echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19312fi
19313
5c6fa7d2 19314
a0b9e27f 19315 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
89e3b3e4 19316echo "configure:19317: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19317if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19318 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19319else
a0b9e27f
MB
19320
19321 cat > conftest.$ac_ext <<EOF
89e3b3e4 19322#line 19323 "configure"
4f14bcd8
GD
19323#include "confdefs.h"
19324#include <pthread.h>
a0b9e27f 19325int main() {
4f14bcd8 19326
7274f1c7
RL
19327 pthread_cleanup_push(NULL, NULL);
19328 pthread_cleanup_pop(0);
a0b9e27f
MB
19329
19330; return 0; }
19331EOF
89e3b3e4 19332if { (eval echo configure:19333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19333 rm -rf conftest*
19334
7274f1c7 19335 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19336
4f14bcd8 19337else
a0b9e27f
MB
19338 echo "configure: failed program was:" >&5
19339 cat conftest.$ac_ext >&5
19340 rm -rf conftest*
19341
7274f1c7 19342 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19343
5c6fa7d2 19344fi
a0b9e27f
MB
19345rm -f conftest*
19346
247f5006 19347fi
a0b9e27f
MB
19348
19349echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19350
7274f1c7 19351 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19352 cat >> confdefs.h <<\EOF
4f14bcd8 19353#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19354EOF
c7a2bf27 19355
7274f1c7 19356 fi
4f14bcd8 19357
a0b9e27f
MB
19358
19359 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
89e3b3e4 19360echo "configure:19361: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19361if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19362 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19363else
a0b9e27f
MB
19364
19365 cat > conftest.$ac_ext <<EOF
89e3b3e4 19366#line 19367 "configure"
0dcf9893 19367#include "confdefs.h"
4f14bcd8 19368#include <pthread.h>
a0b9e27f 19369int main() {
4f14bcd8 19370
7274f1c7
RL
19371 pthread_mutexattr_t attr;
19372 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19373
19374; return 0; }
19375EOF
89e3b3e4 19376if { (eval echo configure:19377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19377 rm -rf conftest*
19378
7274f1c7 19379 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19380
3fed1840 19381else
a0b9e27f
MB
19382 echo "configure: failed program was:" >&5
19383 cat conftest.$ac_ext >&5
19384 rm -rf conftest*
19385
7274f1c7 19386 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19387
19388
5c6fa7d2 19389fi
a0b9e27f
MB
19390rm -f conftest*
19391
247f5006 19392fi
a0b9e27f
MB
19393
19394echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19395
7274f1c7 19396 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19397 cat >> confdefs.h <<\EOF
4f14bcd8 19398#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19399EOF
4f14bcd8 19400
7274f1c7 19401 else
a0b9e27f 19402 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
89e3b3e4 19403echo "configure:19404: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19404if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19405 echo $ac_n "(cached) $ac_c" 1>&6
19406else
19407
19408 cat > conftest.$ac_ext <<EOF
89e3b3e4 19409#line 19410 "configure"
3fed1840 19410#include "confdefs.h"
4f14bcd8 19411#include <pthread.h>
a0b9e27f 19412int main() {
4f14bcd8 19413
7274f1c7 19414 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19415
19416; return 0; }
19417EOF
89e3b3e4 19418if { (eval echo configure:19419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19419 rm -rf conftest*
19420
7274f1c7 19421 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19422
698dcdb6 19423else
a0b9e27f
MB
19424 echo "configure: failed program was:" >&5
19425 cat conftest.$ac_ext >&5
19426 rm -rf conftest*
19427
7274f1c7 19428 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19429
19430
5c6fa7d2 19431fi
a0b9e27f
MB
19432rm -f conftest*
19433
247f5006 19434fi
a0b9e27f
MB
19435
19436echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19437 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19438 cat >> confdefs.h <<\EOF
4f14bcd8 19439#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19440EOF
3fed1840 19441
7274f1c7 19442 else
a0b9e27f 19443 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19444 fi
19445 fi
7274f1c7 19446 fi
3fed1840 19447
a0b9e27f
MB
19448else
19449 if test "$wxUSE_THREADS" = "yes" ; then
19450 case "${host}" in
19451 *-*-mingw32* )
ca8e52b3 19452 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
89e3b3e4 19453echo "configure:19454: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19454if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19455 echo $ac_n "(cached) $ac_c" 1>&6
19456else
19457
19458 CFLAGS_OLD="$CFLAGS"
19459 CFLAGS="$CFLAGS -mthreads"
19460 cat > conftest.$ac_ext <<EOF
89e3b3e4 19461#line 19462 "configure"
ca8e52b3
VZ
19462#include "confdefs.h"
19463
19464int main() {
19465
19466; return 0; }
19467EOF
89e3b3e4 19468if { (eval echo configure:19469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19469 rm -rf conftest*
19470 wx_cv_cflags_mthread=yes
19471else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 wx_cv_cflags_mthread=no
19476
19477fi
19478rm -f conftest*
19479
19480
19481fi
19482
19483echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19484
19485 if test "$wx_cv_cflags_mthread" = "yes"; then
19486 CXXFLAGS="$CXXFLAGS -mthreads"
19487 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19488 LDFLAGS="$LDFLAGS -mthreads"
19489 else
19490 CFLAGS="$CFLAGS_OLD"
19491 fi
a0b9e27f
MB
19492 ;;
19493 esac
19494 fi
4f14bcd8
GD
19495fi
19496
19497if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19498 cat >> confdefs.h <<\EOF
4f14bcd8 19499#define wxUSE_THREADS 1
a0b9e27f 19500EOF
7b6058cd 19501
8284b0c5 19502
4f14bcd8 19503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19504else
4f14bcd8 19505 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19506 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
89e3b3e4 19507echo "configure:19508: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19508 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19509 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19510 echo "$ac_t""yes" 1>&6
4f14bcd8 19511 else
a0b9e27f 19512 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19513 fi
19514 fi
19515fi
19516
19517if test "$WXGTK20" = 1 ; then
a0b9e27f 19518 cat >> confdefs.h <<EOF
4f14bcd8 19519#define __WXGTK20__ $WXGTK20
a0b9e27f 19520EOF
4f14bcd8
GD
19521
19522 WXGTK12=1
10f2d63a 19523fi
4f14bcd8
GD
19524
19525if test "$WXGTK12" = 1 ; then
a0b9e27f 19526 cat >> confdefs.h <<EOF
4f14bcd8 19527#define __WXGTK12__ $WXGTK12
a0b9e27f 19528EOF
4f14bcd8 19529
10f2d63a 19530fi
698dcdb6 19531
4f14bcd8 19532if test "$WXGTK127" = 1 ; then
a0b9e27f 19533 cat >> confdefs.h <<EOF
4f14bcd8 19534#define __WXGTK127__ $WXGTK127
a0b9e27f 19535EOF
4f14bcd8 19536
698dcdb6 19537fi
10f2d63a 19538
4f14bcd8
GD
19539WXDEBUG=
19540
19541if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19542 WXDEBUG="-g"
19543 wxUSE_OPTIMISE=no
698dcdb6 19544fi
4f14bcd8
GD
19545
19546if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19547 wxUSE_DEBUG_INFO=yes
19548 WXDEBUG="-ggdb"
10f2d63a
VZ
19549fi
19550
4f14bcd8 19551if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19552 cat >> confdefs.h <<\EOF
4f14bcd8 19553#define WXDEBUG 1
a0b9e27f 19554EOF
4f14bcd8
GD
19555
19556 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19557else
4f14bcd8
GD
19558 if test "$wxUSE_GTK" = 1 ; then
19559 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19560 fi
19561fi
19562
19563if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19564 cat >> confdefs.h <<\EOF
4f14bcd8 19565#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19566EOF
4f14bcd8 19567
a0b9e27f 19568 cat >> confdefs.h <<\EOF
4f14bcd8 19569#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19570EOF
4f14bcd8 19571
a0b9e27f 19572 cat >> confdefs.h <<\EOF
4f14bcd8 19573#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19574EOF
4f14bcd8
GD
19575
19576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19577fi
19578
19579if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19580 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19581fi
19582
19583PROFILE=
19584if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19585 PROFILE=" -pg"
10f2d63a
VZ
19586fi
19587
009fead0
VZ
19588CODE_GEN_FLAGS=
19589CODE_GEN_FLAGS_CXX=
88e30f2b 19590if test "$GCC" = "yes" ; then
4f14bcd8
GD
19591 if test "$wxUSE_NO_RTTI" = "yes" ; then
19592 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19593 fi
4f14bcd8
GD
19594 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19595 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19596 fi
19597 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19598 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19599 fi
4f14bcd8
GD
19600 if test "$USE_WIN32" = 1 ; then
19601 # I'm not even really sure what this was ever added to solve,
19602 # but someone added it for mingw native builds, so I guess
19603 # they had a reason, right??
19604 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19605 fi
1d1b75ac 19606
2b5f62a0 19607 case "${host}" in
1d1b75ac
VZ
19608 powerpc*-*-aix* )
19609 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19610 ;;
2b5f62a0
VZ
19611 *-hppa* )
19612 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19613 ;;
1d1b75ac 19614 esac
4f14bcd8
GD
19615fi
19616
af7b5345 19617OPTIMISE=
4f14bcd8 19618if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19619 if test "$GCC" = yes ; then
19620 OPTIMISE="-O0"
19621 fi
4f14bcd8
GD
19622else
19623 if test "$GCC" = yes ; then
19624 OPTIMISE="-O2"
af7b5345
VZ
19625
19626 case "${host}" in
4f14bcd8
GD
19627 i586-*-*|i686-*-* )
19628 OPTIMISE="${OPTIMISE} "
19629 ;;
19630 esac
19631 else
19632 OPTIMISE="-O"
19633 fi
19634fi
19635
8d90d2f2 19636
4f14bcd8 19637if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19638 cat >> confdefs.h <<\EOF
4f14bcd8 19639#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19640EOF
4f14bcd8 19641
8284b0c5 19642
4f14bcd8
GD
19643 WXWIN_COMPATIBILITY_2_2="yes"
19644fi
19645
65d8ef1e 19646if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19647 cat >> confdefs.h <<\EOF
4f14bcd8 19648#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19649EOF
4f14bcd8 19650
8d90d2f2
VZ
19651
19652 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19653fi
19654
65d8ef1e
VS
19655if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19656 cat >> confdefs.h <<\EOF
19657#define WXWIN_COMPATIBILITY_2_4 1
19658EOF
19659
19660fi
19661
8284b0c5 19662
10f2d63a 19663if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19664 cat >> confdefs.h <<\EOF
10f2d63a 19665#define wxUSE_GUI 1
a0b9e27f 19666EOF
10f2d63a 19667
8284b0c5 19668
10f2d63a 19669 else
a0b9e27f 19670 cat >> confdefs.h <<\EOF
10f2d63a 19671#define wxUSE_NOGUI 1
a0b9e27f 19672EOF
10f2d63a
VZ
19673
19674fi
19675
8284b0c5 19676
10f2d63a 19677if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19678 cat >> confdefs.h <<\EOF
10f2d63a 19679#define wxUSE_UNIX 1
a0b9e27f 19680EOF
10f2d63a
VZ
19681
19682fi
19683
8284b0c5 19684
10f2d63a 19685if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19686 cat >> confdefs.h <<\EOF
10f2d63a 19687#define wxUSE_APPLE_IEEE 1
a0b9e27f 19688EOF
10f2d63a
VZ
19689
19690fi
19691
1e6feb95 19692if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19693 cat >> confdefs.h <<\EOF
1e6feb95 19694#define wxUSE_TIMER 1
a0b9e27f 19695EOF
1e6feb95
VZ
19696
19697fi
19698
10f2d63a 19699if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19700 cat >> confdefs.h <<\EOF
10f2d63a 19701#define wxUSE_WAVE 1
a0b9e27f 19702EOF
10f2d63a
VZ
19703
19704fi
19705
1e6feb95 19706if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19707 cat >> confdefs.h <<\EOF
1e6feb95 19708#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19709EOF
1e6feb95
VZ
19710
19711fi
19712
19713if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19714 cat >> confdefs.h <<\EOF
1e6feb95 19715#define wxUSE_STOPWATCH 1
a0b9e27f 19716EOF
1e6feb95
VZ
19717
19718fi
19719
19720if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19721 cat >> confdefs.h <<\EOF
1e6feb95 19722#define wxUSE_DATETIME 1
a0b9e27f 19723EOF
1e6feb95
VZ
19724
19725fi
19726
10f2d63a 19727if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19728 cat >> confdefs.h <<\EOF
10f2d63a 19729#define wxUSE_FILE 1
a0b9e27f 19730EOF
10f2d63a
VZ
19731
19732fi
19733
1e6feb95 19734if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19735 cat >> confdefs.h <<\EOF
1e6feb95 19736#define wxUSE_FFILE 1
a0b9e27f 19737EOF
1e6feb95
VZ
19738
19739fi
19740
24528b0c 19741if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19742 cat >> confdefs.h <<\EOF
24528b0c 19743#define wxUSE_FILESYSTEM 1
a0b9e27f 19744EOF
24528b0c
VS
19745
19746fi
19747
10f2d63a 19748if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19749 cat >> confdefs.h <<\EOF
10f2d63a 19750#define wxUSE_FS_INET 1
a0b9e27f 19751EOF
10f2d63a
VZ
19752
19753fi
19754
19755if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19756 cat >> confdefs.h <<\EOF
10f2d63a 19757#define wxUSE_FS_ZIP 1
a0b9e27f 19758EOF
10f2d63a
VZ
19759
19760fi
19761
19762if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19763 cat >> confdefs.h <<\EOF
10f2d63a 19764#define wxUSE_ZIPSTREAM 1
a0b9e27f 19765EOF
10f2d63a
VZ
19766
19767fi
19768
eb4efbdc 19769if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19770 cat >> confdefs.h <<\EOF
eb4efbdc 19771#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19772EOF
eb4efbdc
VZ
19773
19774fi
19775
4f3c5f06 19776if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19777 cat >> confdefs.h <<\EOF
4f3c5f06 19778#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19779EOF
4f3c5f06
VZ
19780
19781fi
19782
10f2d63a 19783if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19784 cat >> confdefs.h <<\EOF
10f2d63a 19785#define wxUSE_BUSYINFO 1
a0b9e27f 19786EOF
10f2d63a
VZ
19787
19788fi
19789
19790if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19791 cat >> confdefs.h <<\EOF
10f2d63a 19792#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19793EOF
10f2d63a
VZ
19794
19795fi
19796
a3a584a7 19797if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19798 cat >> confdefs.h <<\EOF
a3a584a7 19799#define wxUSE_TEXTBUFFER 1
a0b9e27f 19800EOF
a3a584a7
VZ
19801
19802fi
19803
10f2d63a 19804if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19805 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19806 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19807 else
a0b9e27f 19808 cat >> confdefs.h <<\EOF
10f2d63a 19809#define wxUSE_TEXTFILE 1
a0b9e27f 19810EOF
10f2d63a
VZ
19811
19812 fi
19813fi
19814
19815if test "$wxUSE_CONFIG" = "yes" ; then
19816 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19817 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19818 else
a0b9e27f 19819 cat >> confdefs.h <<\EOF
10f2d63a 19820#define wxUSE_CONFIG 1
a0b9e27f 19821EOF
10f2d63a
VZ
19822
19823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19824 fi
19825fi
19826
19827if test "$wxUSE_INTL" = "yes" ; then
19828 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19829 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19830 else
a0b9e27f 19831 cat >> confdefs.h <<\EOF
10f2d63a 19832#define wxUSE_INTL 1
a0b9e27f 19833EOF
10f2d63a
VZ
19834
19835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19836 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19837 fi
19838fi
19839
19840if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19841 cat >> confdefs.h <<\EOF
10f2d63a 19842#define wxUSE_LOG 1
a0b9e27f 19843EOF
10f2d63a 19844
8284b0c5 19845
d73be714 19846 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19847 cat >> confdefs.h <<\EOF
d73be714 19848#define wxUSE_LOGGUI 1
a0b9e27f 19849EOF
d73be714
VZ
19850
19851 fi
19852
19853 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19854 cat >> confdefs.h <<\EOF
d73be714 19855#define wxUSE_LOGWINDOW 1
a0b9e27f 19856EOF
69d27ff7
MB
19857
19858 fi
19859
19860 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19861 cat >> confdefs.h <<\EOF
69d27ff7 19862#define wxUSE_LOG_DIALOG 1
a0b9e27f 19863EOF
d73be714
VZ
19864
19865 fi
10f2d63a
VZ
19866fi
19867
19868if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19869 cat >> confdefs.h <<\EOF
10f2d63a 19870#define wxUSE_LONGLONG 1
a0b9e27f 19871EOF
10f2d63a
VZ
19872
19873fi
19874
e8f65ba6 19875if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19876 cat >> confdefs.h <<\EOF
e8f65ba6 19877#define wxUSE_GEOMETRY 1
a0b9e27f 19878EOF
e8f65ba6
RR
19879
19880fi
19881
10f2d63a 19882if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19883 cat >> confdefs.h <<\EOF
10f2d63a 19884#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19885EOF
10f2d63a 19886
70f7a477 19887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19888fi
19889
19890if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19891 cat >> confdefs.h <<\EOF
10f2d63a 19892#define wxUSE_STREAMS 1
a0b9e27f 19893EOF
10f2d63a
VZ
19894
19895fi
19896
5c6fa7d2 19897
8284b0c5 19898if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19899 for ac_func in strptime
83307f33 19900do
a0b9e27f 19901echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 19902echo "configure:19903: checking for $ac_func" >&5
a0b9e27f
MB
19903if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19904 echo $ac_n "(cached) $ac_c" 1>&6
19905else
19906 cat > conftest.$ac_ext <<EOF
89e3b3e4 19907#line 19908 "configure"
83307f33
VZ
19908#include "confdefs.h"
19909/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19910 which can conflict with char $ac_func(); below. */
83307f33
VZ
19911#include <assert.h>
19912/* Override any gcc2 internal prototype to avoid an error. */
19913/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19914 builtin and then its argument prototype would still apply. */
19915char $ac_func();
19916
19917int main() {
19918
83307f33
VZ
19919/* The GNU C library defines this for functions which it implements
19920 to always fail with ENOSYS. Some functions are actually named
19921 something starting with __ and the normal name is an alias. */
19922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19923choke me
19924#else
a0b9e27f 19925$ac_func();
83307f33
VZ
19926#endif
19927
a0b9e27f
MB
19928; return 0; }
19929EOF
89e3b3e4 19930if { (eval echo configure:19931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19931 rm -rf conftest*
19932 eval "ac_cv_func_$ac_func=yes"
19933else
19934 echo "configure: failed program was:" >&5
19935 cat conftest.$ac_ext >&5
19936 rm -rf conftest*
19937 eval "ac_cv_func_$ac_func=no"
19938fi
19939rm -f conftest*
19940fi
83307f33 19941
a0b9e27f
MB
19942if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19943 echo "$ac_t""yes" 1>&6
19944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19945 cat >> confdefs.h <<EOF
19946#define $ac_tr_func 1
19947EOF
19948
19949else
19950 echo "$ac_t""no" 1>&6
83307f33
VZ
19951fi
19952done
19953
5c6fa7d2 19954
a0b9e27f 19955 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
89e3b3e4 19956echo "configure:19957: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19957if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19958 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19959else
a0b9e27f
MB
19960
19961 cat > conftest.$ac_ext <<EOF
89e3b3e4 19962#line 19963 "configure"
360d6699
VZ
19963#include "confdefs.h"
19964
b4085ce6 19965 #include <time.h>
a0b9e27f
MB
19966
19967int main() {
360d6699
VZ
19968
19969 int tz;
4f11a343 19970 tz = timezone;
a0b9e27f
MB
19971
19972; return 0; }
19973EOF
89e3b3e4 19974if { (eval echo configure:19975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19975 rm -rf conftest*
19976
4f11a343 19977 wx_cv_var_timezone=timezone
a0b9e27f 19978
360d6699 19979else
a0b9e27f
MB
19980 echo "configure: failed program was:" >&5
19981 cat conftest.$ac_ext >&5
19982 rm -rf conftest*
19983
19984 cat > conftest.$ac_ext <<EOF
89e3b3e4 19985#line 19986 "configure"
360d6699
VZ
19986#include "confdefs.h"
19987
b4085ce6 19988 #include <time.h>
a0b9e27f
MB
19989
19990int main() {
360d6699
VZ
19991
19992 int tz;
19993 tz = _timezone;
a0b9e27f
MB
19994
19995; return 0; }
19996EOF
89e3b3e4 19997if { (eval echo configure:19998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19998 rm -rf conftest*
19999
360d6699 20000 wx_cv_var_timezone=_timezone
a0b9e27f 20001
5357c8e8 20002else
a0b9e27f
MB
20003 echo "configure: failed program was:" >&5
20004 cat conftest.$ac_ext >&5
20005 rm -rf conftest*
20006
20007 cat > conftest.$ac_ext <<EOF
89e3b3e4 20008#line 20009 "configure"
5357c8e8
VZ
20009#include "confdefs.h"
20010
b4085ce6 20011 #include <time.h>
a0b9e27f
MB
20012
20013int main() {
5357c8e8
VZ
20014
20015 int tz;
4f11a343 20016 tz = __timezone;
a0b9e27f
MB
20017
20018; return 0; }
20019EOF
89e3b3e4 20020if { (eval echo configure:20021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20021 rm -rf conftest*
20022
4f11a343 20023 wx_cv_var_timezone=__timezone
a0b9e27f 20024
360d6699 20025else
a0b9e27f
MB
20026 echo "configure: failed program was:" >&5
20027 cat conftest.$ac_ext >&5
20028 rm -rf conftest*
20029
f9bc1684 20030 if test "$USE_DOS" = 0 ; then
a0b9e27f 20031 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 20032 fi
a0b9e27f
MB
20033
20034
328a083c 20035fi
a0b9e27f
MB
20036rm -f conftest*
20037
20038
7b4a847f 20039fi
a0b9e27f
MB
20040rm -f conftest*
20041
20042
5c6fa7d2 20043fi
a0b9e27f
MB
20044rm -f conftest*
20045
20046
247f5006 20047fi
a0b9e27f
MB
20048
20049echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 20050
f9bc1684 20051 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 20052 cat >> confdefs.h <<EOF
360d6699 20053#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 20054EOF
360d6699 20055
f9bc1684 20056 fi
698dcdb6 20057
a0b9e27f 20058 for ac_func in localtime
afc31813 20059do
a0b9e27f 20060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 20061echo "configure:20062: checking for $ac_func" >&5
a0b9e27f
MB
20062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20063 echo $ac_n "(cached) $ac_c" 1>&6
20064else
20065 cat > conftest.$ac_ext <<EOF
89e3b3e4 20066#line 20067 "configure"
10f2d63a 20067#include "confdefs.h"
afc31813 20068/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20069 which can conflict with char $ac_func(); below. */
afc31813
VZ
20070#include <assert.h>
20071/* Override any gcc2 internal prototype to avoid an error. */
20072/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20073 builtin and then its argument prototype would still apply. */
20074char $ac_func();
20075
20076int main() {
20077
afc31813
VZ
20078/* The GNU C library defines this for functions which it implements
20079 to always fail with ENOSYS. Some functions are actually named
20080 something starting with __ and the normal name is an alias. */
20081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20082choke me
20083#else
a0b9e27f 20084$ac_func();
afc31813
VZ
20085#endif
20086
a0b9e27f
MB
20087; return 0; }
20088EOF
89e3b3e4 20089if { (eval echo configure:20090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20090 rm -rf conftest*
20091 eval "ac_cv_func_$ac_func=yes"
20092else
20093 echo "configure: failed program was:" >&5
20094 cat conftest.$ac_ext >&5
20095 rm -rf conftest*
20096 eval "ac_cv_func_$ac_func=no"
20097fi
20098rm -f conftest*
20099fi
afc31813 20100
a0b9e27f
MB
20101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20102 echo "$ac_t""yes" 1>&6
20103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20104 cat >> confdefs.h <<EOF
20105#define $ac_tr_func 1
20106EOF
20107
20108else
20109 echo "$ac_t""no" 1>&6
afc31813
VZ
20110fi
20111done
20112
5c6fa7d2 20113
8284b0c5 20114 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20115 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
89e3b3e4 20116echo "configure:20117: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20117if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20118 echo $ac_n "(cached) $ac_c" 1>&6
20119else
20120
20121 cat > conftest.$ac_ext <<EOF
89e3b3e4 20122#line 20123 "configure"
0470b1e6
VZ
20123#include "confdefs.h"
20124
b4085ce6 20125 #include <time.h>
a0b9e27f
MB
20126
20127int main() {
0470b1e6
VZ
20128
20129 struct tm tm;
20130 tm.tm_gmtoff++;
a0b9e27f
MB
20131
20132; return 0; }
20133EOF
89e3b3e4 20134if { (eval echo configure:20135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20135 rm -rf conftest*
20136
f03a98d8 20137 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20138
0470b1e6 20139else
a0b9e27f
MB
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 wx_cv_struct_tm_has_gmtoff=no
20144
5c6fa7d2 20145fi
a0b9e27f
MB
20146rm -f conftest*
20147
247f5006 20148fi
a0b9e27f
MB
20149
20150echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20151 fi
20152
20153 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20154 cat >> confdefs.h <<\EOF
6232543b 20155#define WX_GMTOFF_IN_TM 1
a0b9e27f 20156EOF
0470b1e6 20157
3fcdd07b
VZ
20158 fi
20159
a0b9e27f 20160 for ac_func in gettimeofday ftime
3fcdd07b 20161do
a0b9e27f 20162echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 20163echo "configure:20164: checking for $ac_func" >&5
a0b9e27f
MB
20164if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20165 echo $ac_n "(cached) $ac_c" 1>&6
20166else
20167 cat > conftest.$ac_ext <<EOF
89e3b3e4 20168#line 20169 "configure"
3fcdd07b
VZ
20169#include "confdefs.h"
20170/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20171 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20172#include <assert.h>
20173/* Override any gcc2 internal prototype to avoid an error. */
20174/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20175 builtin and then its argument prototype would still apply. */
20176char $ac_func();
20177
20178int main() {
20179
3fcdd07b
VZ
20180/* The GNU C library defines this for functions which it implements
20181 to always fail with ENOSYS. Some functions are actually named
20182 something starting with __ and the normal name is an alias. */
20183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20184choke me
20185#else
a0b9e27f 20186$ac_func();
3fcdd07b
VZ
20187#endif
20188
a0b9e27f
MB
20189; return 0; }
20190EOF
89e3b3e4 20191if { (eval echo configure:20192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20192 rm -rf conftest*
20193 eval "ac_cv_func_$ac_func=yes"
20194else
20195 echo "configure: failed program was:" >&5
20196 cat conftest.$ac_ext >&5
20197 rm -rf conftest*
20198 eval "ac_cv_func_$ac_func=no"
20199fi
20200rm -f conftest*
20201fi
20202
20203if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20204 echo "$ac_t""yes" 1>&6
20205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20206 cat >> confdefs.h <<EOF
20207#define $ac_tr_func 1
20208EOF
3fcdd07b 20209 break
a0b9e27f
MB
20210else
20211 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20212fi
20213done
20214
698dcdb6 20215
8284b0c5 20216 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20217 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
89e3b3e4 20218echo "configure:20219: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20219if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20220 echo $ac_n "(cached) $ac_c" 1>&6
20221else
20222
20223
20224 ac_ext=C
20225# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20226ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20227ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20228ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20229cross_compiling=$ac_cv_prog_cxx_cross
52127426 20230
8284b0c5 20231
a0b9e27f 20232 cat > conftest.$ac_ext <<EOF
89e3b3e4 20233#line 20234 "configure"
10f2d63a 20234#include "confdefs.h"
afc31813
VZ
20235
20236 #include <sys/time.h>
20237 #include <unistd.h>
a0b9e27f
MB
20238
20239int main() {
afc31813
VZ
20240
20241 struct timeval tv;
776862b4 20242 gettimeofday(&tv, NULL);
a0b9e27f
MB
20243
20244; return 0; }
20245EOF
89e3b3e4 20246if { (eval echo configure:20247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20247 rm -rf conftest*
afc31813 20248 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20249else
a0b9e27f
MB
20250 echo "configure: failed program was:" >&5
20251 cat conftest.$ac_ext >&5
20252 rm -rf conftest*
20253 cat > conftest.$ac_ext <<EOF
89e3b3e4 20254#line 20255 "configure"
10f2d63a 20255#include "confdefs.h"
afc31813
VZ
20256
20257 #include <sys/time.h>
20258 #include <unistd.h>
a0b9e27f
MB
20259
20260int main() {
afc31813
VZ
20261
20262 struct timeval tv;
20263 gettimeofday(&tv);
a0b9e27f
MB
20264
20265; return 0; }
20266EOF
89e3b3e4 20267if { (eval echo configure:20268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20268 rm -rf conftest*
afc31813 20269 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20270else
a0b9e27f
MB
20271 echo "configure: failed program was:" >&5
20272 cat conftest.$ac_ext >&5
20273 rm -rf conftest*
20274
20275 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20276 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20277
20278
10f2d63a 20279fi
a0b9e27f
MB
20280rm -f conftest*
20281
10f2d63a 20282fi
a0b9e27f 20283rm -f conftest*
afc31813 20284 ac_ext=c
a0b9e27f 20285# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20286ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20287ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20288ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20289cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20290
a0b9e27f 20291
247f5006 20292fi
a0b9e27f
MB
20293
20294echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20295
afc31813 20296 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20297 cat >> confdefs.h <<\EOF
afc31813 20298#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20299EOF
afc31813
VZ
20300
20301 fi
20302 fi
20303
afc31813
VZ
20304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20305fi
20306
8284b0c5 20307
52127426 20308if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20309 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20310 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20311 wxUSE_SOCKETS="no"
20312 fi
0feee163 20313fi
b089607b 20314
0feee163
VZ
20315if test "$wxUSE_SOCKETS" = "yes"; then
20316 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20317 echo $ac_n "checking for socket""... $ac_c" 1>&6
89e3b3e4 20318echo "configure:20319: checking for socket" >&5
a0b9e27f
MB
20319if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20320 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20321else
a0b9e27f 20322 cat > conftest.$ac_ext <<EOF
89e3b3e4 20323#line 20324 "configure"
c63c7106
VZ
20324#include "confdefs.h"
20325/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20326 which can conflict with char socket(); below. */
c63c7106
VZ
20327#include <assert.h>
20328/* Override any gcc2 internal prototype to avoid an error. */
20329/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20330 builtin and then its argument prototype would still apply. */
20331char socket();
20332
20333int main() {
20334
c63c7106
VZ
20335/* The GNU C library defines this for functions which it implements
20336 to always fail with ENOSYS. Some functions are actually named
20337 something starting with __ and the normal name is an alias. */
20338#if defined (__stub_socket) || defined (__stub___socket)
20339choke me
20340#else
a0b9e27f 20341socket();
c63c7106
VZ
20342#endif
20343
a0b9e27f
MB
20344; return 0; }
20345EOF
89e3b3e4 20346if { (eval echo configure:20347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20347 rm -rf conftest*
20348 eval "ac_cv_func_socket=yes"
20349else
20350 echo "configure: failed program was:" >&5
20351 cat conftest.$ac_ext >&5
20352 rm -rf conftest*
20353 eval "ac_cv_func_socket=no"
20354fi
20355rm -f conftest*
20356fi
20357
20358if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20359 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20360 :
20361else
a0b9e27f
MB
20362 echo "$ac_t""no" 1>&6
20363echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
89e3b3e4 20364echo "configure:20365: checking for socket in -lsocket" >&5
a0b9e27f
MB
20365ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20367 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20368else
a0b9e27f 20369 ac_save_LIBS="$LIBS"
c63c7106 20370LIBS="-lsocket $LIBS"
a0b9e27f 20371cat > conftest.$ac_ext <<EOF
89e3b3e4 20372#line 20373 "configure"
c63c7106
VZ
20373#include "confdefs.h"
20374/* Override any gcc2 internal prototype to avoid an error. */
20375/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20376 builtin and then its argument prototype would still apply. */
20377char socket();
20378
20379int main() {
20380socket()
20381; return 0; }
20382EOF
89e3b3e4 20383if { (eval echo configure:20384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20384 rm -rf conftest*
20385 eval "ac_cv_lib_$ac_lib_var=yes"
20386else
20387 echo "configure: failed program was:" >&5
20388 cat conftest.$ac_ext >&5
20389 rm -rf conftest*
20390 eval "ac_cv_lib_$ac_lib_var=no"
20391fi
20392rm -f conftest*
20393LIBS="$ac_save_LIBS"
20394
20395fi
20396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20397 echo "$ac_t""yes" 1>&6
d558c907
VS
20398 if test "$INET_LINK" != " -lsocket"; then
20399 INET_LINK="$INET_LINK -lsocket"
20400 fi
c63c7106 20401else
a0b9e27f 20402 echo "$ac_t""no" 1>&6
afc31813 20403
a0b9e27f 20404 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20405 wxUSE_SOCKETS=no
a0b9e27f
MB
20406
20407
6232543b 20408fi
b089607b 20409
a0b9e27f 20410
1e487827 20411fi
afc31813 20412
3a922bb4 20413 fi
0feee163 20414fi
51a9faba 20415
0feee163
VZ
20416if test "$wxUSE_SOCKETS" = "yes" ; then
20417 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20418 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
89e3b3e4 20419echo "configure:20420: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20420if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20421 echo $ac_n "(cached) $ac_c" 1>&6
20422else
20423
20424
20425 ac_ext=C
20426# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20427ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20428ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20429ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20430cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20431
8284b0c5 20432
a0b9e27f 20433 cat > conftest.$ac_ext <<EOF
89e3b3e4 20434#line 20435 "configure"
afc31813 20435#include "confdefs.h"
51a9faba 20436
3a922bb4
RL
20437 #include <sys/types.h>
20438 #include <sys/socket.h>
a0b9e27f
MB
20439
20440int main() {
51a9faba 20441
3a922bb4
RL
20442 socklen_t len;
20443 getsockname(0, 0, &len);
a0b9e27f
MB
20444
20445; return 0; }
20446EOF
89e3b3e4 20447if { (eval echo configure:20448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20448 rm -rf conftest*
51a9faba 20449 wx_cv_type_getsockname3=socklen_t
afc31813 20450else
a0b9e27f
MB
20451 echo "configure: failed program was:" >&5
20452 cat conftest.$ac_ext >&5
20453 rm -rf conftest*
20454 cat > conftest.$ac_ext <<EOF
89e3b3e4 20455#line 20456 "configure"
afc31813 20456#include "confdefs.h"
51a9faba 20457
3a922bb4
RL
20458 #include <sys/types.h>
20459 #include <sys/socket.h>
a0b9e27f
MB
20460
20461int main() {
51a9faba 20462
3a922bb4
RL
20463 size_t len;
20464 getsockname(0, 0, &len);
a0b9e27f
MB
20465
20466; return 0; }
20467EOF
89e3b3e4 20468if { (eval echo configure:20469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20469 rm -rf conftest*
51a9faba 20470 wx_cv_type_getsockname3=size_t
afc31813 20471else
a0b9e27f
MB
20472 echo "configure: failed program was:" >&5
20473 cat conftest.$ac_ext >&5
20474 rm -rf conftest*
20475 cat > conftest.$ac_ext <<EOF
89e3b3e4 20476#line 20477 "configure"
afc31813 20477#include "confdefs.h"
51a9faba 20478
3a922bb4
RL
20479 #include <sys/types.h>
20480 #include <sys/socket.h>
a0b9e27f
MB
20481
20482int main() {
51a9faba 20483
3a922bb4
RL
20484 int len;
20485 getsockname(0, 0, &len);
a0b9e27f
MB
20486
20487; return 0; }
20488EOF
89e3b3e4 20489if { (eval echo configure:20490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20490 rm -rf conftest*
51a9faba 20491 wx_cv_type_getsockname3=int
afc31813 20492else
a0b9e27f
MB
20493 echo "configure: failed program was:" >&5
20494 cat conftest.$ac_ext >&5
20495 rm -rf conftest*
20496 wx_cv_type_getsockname3=unknown
20497
afc31813 20498fi
a0b9e27f
MB
20499rm -f conftest*
20500
afc31813 20501fi
a0b9e27f
MB
20502rm -f conftest*
20503
afc31813 20504fi
a0b9e27f 20505rm -f conftest*
51a9faba 20506
3a922bb4 20507 ac_ext=c
a0b9e27f 20508# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20509ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20510ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20511ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20512cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20513
a0b9e27f 20514
247f5006 20515fi
a0b9e27f
MB
20516
20517echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20518
3a922bb4
RL
20519 if test "$wx_cv_type_getsockname3" = "unknown"; then
20520 wxUSE_SOCKETS=no
a0b9e27f 20521 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20522 else
a0b9e27f 20523 cat >> confdefs.h <<EOF
51a9faba 20524#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20525EOF
51a9faba 20526
3a922bb4 20527 fi
51a9faba
VZ
20528 fi
20529fi
afc31813 20530
51a9faba 20531if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20532 cat >> confdefs.h <<\EOF
afc31813 20533#define wxUSE_SOCKETS 1
a0b9e27f 20534EOF
afc31813 20535
70f7a477 20536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20537fi
20538
8284b0c5 20539
dc3d889d
VZ
20540if test "$wxUSE_GUI" = "yes"; then
20541
ac0c4cc3 20542 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20543 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20544 wxUSE_JOYSTICK=no
20545 fi
20546 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20547 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20548 wxUSE_JOYSTICK=no
f79bd02d
JS
20549 fi
20550 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20551 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20552 wxUSE_JOYSTICK=no
156b2523
GD
20553 fi
20554
3a922bb4
RL
20555 if test "$TOOLKIT" != "MSW"; then
20556 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20557 for ac_hdr in linux/joystick.h
10f2d63a 20558do
a0b9e27f
MB
20559ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20560echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 20561echo "configure:20562: checking for $ac_hdr" >&5
a0b9e27f
MB
20562if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20563 echo $ac_n "(cached) $ac_c" 1>&6
20564else
20565 cat > conftest.$ac_ext <<EOF
89e3b3e4 20566#line 20567 "configure"
247f5006 20567#include "confdefs.h"
a0b9e27f
MB
20568#include <$ac_hdr>
20569EOF
20570ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 20571{ (eval echo configure:20572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20572ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20573if test -z "$ac_err"; then
20574 rm -rf conftest*
20575 eval "ac_cv_header_$ac_safe=yes"
20576else
20577 echo "$ac_err" >&5
20578 echo "configure: failed program was:" >&5
247f5006 20579 cat conftest.$ac_ext >&5
a0b9e27f
MB
20580 rm -rf conftest*
20581 eval "ac_cv_header_$ac_safe=no"
247f5006 20582fi
a0b9e27f 20583rm -f conftest*
10f2d63a 20584fi
a0b9e27f
MB
20585if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20586 echo "$ac_t""yes" 1>&6
20587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20588 cat >> confdefs.h <<EOF
20589#define $ac_tr_hdr 1
20590EOF
20591
20592else
20593 echo "$ac_t""no" 1>&6
247f5006 20594fi
10f2d63a
VZ
20595done
20596
3a922bb4
RL
20597 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20598 wxUSE_JOYSTICK=no
a0b9e27f 20599 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20600 fi
20601 fi
20602 fi
b089607b 20603
3a922bb4 20604 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20605 cat >> confdefs.h <<\EOF
10f2d63a 20606#define wxUSE_JOYSTICK 1
a0b9e27f 20607EOF
10f2d63a 20608
3a922bb4
RL
20609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20610 fi
dc3d889d
VZ
20611fi
20612
8284b0c5 20613
b089607b
VZ
20614if test "$TOOLKIT" != "MSW"; then
20615
3a922bb4
RL
20616 HAVE_DL_FUNCS=0
20617 HAVE_SHL_FUNCS=0
0b9ab0bd 20618 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20619 if test "$USE_DARWIN" = 1; then
20620 HAVE_DL_FUNCS=1
20621 else
a0b9e27f 20622 for ac_func in dlopen
10f2d63a 20623do
a0b9e27f 20624echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 20625echo "configure:20626: checking for $ac_func" >&5
a0b9e27f
MB
20626if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20627 echo $ac_n "(cached) $ac_c" 1>&6
20628else
20629 cat > conftest.$ac_ext <<EOF
89e3b3e4 20630#line 20631 "configure"
10f2d63a
VZ
20631#include "confdefs.h"
20632/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20633 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20634#include <assert.h>
20635/* Override any gcc2 internal prototype to avoid an error. */
20636/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20637 builtin and then its argument prototype would still apply. */
20638char $ac_func();
20639
20640int main() {
20641
10f2d63a
VZ
20642/* The GNU C library defines this for functions which it implements
20643 to always fail with ENOSYS. Some functions are actually named
20644 something starting with __ and the normal name is an alias. */
20645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20646choke me
20647#else
a0b9e27f 20648$ac_func();
10f2d63a
VZ
20649#endif
20650
a0b9e27f
MB
20651; return 0; }
20652EOF
89e3b3e4 20653if { (eval echo configure:20654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20654 rm -rf conftest*
20655 eval "ac_cv_func_$ac_func=yes"
20656else
20657 echo "configure: failed program was:" >&5
20658 cat conftest.$ac_ext >&5
20659 rm -rf conftest*
20660 eval "ac_cv_func_$ac_func=no"
20661fi
20662rm -f conftest*
20663fi
20664
20665if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20666 echo "$ac_t""yes" 1>&6
20667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20668 cat >> confdefs.h <<EOF
20669#define $ac_tr_func 1
20670EOF
20671
20672 cat >> confdefs.h <<\EOF
10f2d63a 20673#define HAVE_DLOPEN 1
a0b9e27f 20674EOF
10f2d63a 20675
3a922bb4 20676 HAVE_DL_FUNCS=1
a0b9e27f 20677
10f2d63a 20678else
a0b9e27f
MB
20679 echo "$ac_t""no" 1>&6
20680echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
89e3b3e4 20681echo "configure:20682: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20682ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20684 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20685else
a0b9e27f 20686 ac_save_LIBS="$LIBS"
10f2d63a 20687LIBS="-ldl $LIBS"
a0b9e27f 20688cat > conftest.$ac_ext <<EOF
89e3b3e4 20689#line 20690 "configure"
10f2d63a
VZ
20690#include "confdefs.h"
20691/* Override any gcc2 internal prototype to avoid an error. */
20692/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20693 builtin and then its argument prototype would still apply. */
20694char dlopen();
20695
20696int main() {
20697dlopen()
20698; return 0; }
20699EOF
89e3b3e4 20700if { (eval echo configure:20701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20701 rm -rf conftest*
20702 eval "ac_cv_lib_$ac_lib_var=yes"
20703else
20704 echo "configure: failed program was:" >&5
20705 cat conftest.$ac_ext >&5
20706 rm -rf conftest*
20707 eval "ac_cv_lib_$ac_lib_var=no"
20708fi
20709rm -f conftest*
20710LIBS="$ac_save_LIBS"
20711
20712fi
20713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20714 echo "$ac_t""yes" 1>&6
20715
20716 cat >> confdefs.h <<\EOF
10f2d63a 20717#define HAVE_DLOPEN 1
a0b9e27f 20718EOF
10f2d63a 20719
3a922bb4 20720 HAVE_DL_FUNCS=1
3d63bc3a 20721 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20722
10f2d63a 20723else
a0b9e27f 20724 echo "$ac_t""no" 1>&6
10f2d63a 20725
a0b9e27f 20726 for ac_func in shl_load
10f2d63a 20727do
a0b9e27f 20728echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 20729echo "configure:20730: checking for $ac_func" >&5
a0b9e27f
MB
20730if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20731 echo $ac_n "(cached) $ac_c" 1>&6
20732else
20733 cat > conftest.$ac_ext <<EOF
89e3b3e4 20734#line 20735 "configure"
10f2d63a
VZ
20735#include "confdefs.h"
20736/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20737 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20738#include <assert.h>
20739/* Override any gcc2 internal prototype to avoid an error. */
20740/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20741 builtin and then its argument prototype would still apply. */
20742char $ac_func();
20743
20744int main() {
20745
10f2d63a
VZ
20746/* The GNU C library defines this for functions which it implements
20747 to always fail with ENOSYS. Some functions are actually named
20748 something starting with __ and the normal name is an alias. */
20749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20750choke me
20751#else
a0b9e27f 20752$ac_func();
10f2d63a
VZ
20753#endif
20754
a0b9e27f
MB
20755; return 0; }
20756EOF
89e3b3e4 20757if { (eval echo configure:20758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20758 rm -rf conftest*
20759 eval "ac_cv_func_$ac_func=yes"
20760else
20761 echo "configure: failed program was:" >&5
20762 cat conftest.$ac_ext >&5
20763 rm -rf conftest*
20764 eval "ac_cv_func_$ac_func=no"
20765fi
20766rm -f conftest*
20767fi
20768
20769if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20770 echo "$ac_t""yes" 1>&6
20771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20772 cat >> confdefs.h <<EOF
20773#define $ac_tr_func 1
20774EOF
20775
20776 cat >> confdefs.h <<\EOF
10f2d63a 20777#define HAVE_SHL_LOAD 1
a0b9e27f 20778EOF
10f2d63a 20779
3a922bb4 20780 HAVE_SHL_FUNCS=1
a0b9e27f 20781
10f2d63a 20782else
a0b9e27f
MB
20783 echo "$ac_t""no" 1>&6
20784echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
89e3b3e4 20785echo "configure:20786: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20786ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20788 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20789else
a0b9e27f 20790 ac_save_LIBS="$LIBS"
f6bcfd97 20791LIBS="-lshl_load $LIBS"
a0b9e27f 20792cat > conftest.$ac_ext <<EOF
89e3b3e4 20793#line 20794 "configure"
f6bcfd97 20794#include "confdefs.h"
8284b0c5 20795/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20796/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20797 builtin and then its argument prototype would still apply. */
20798char dld();
20799
20800int main() {
20801dld()
20802; return 0; }
20803EOF
89e3b3e4 20804if { (eval echo configure:20805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20805 rm -rf conftest*
20806 eval "ac_cv_lib_$ac_lib_var=yes"
20807else
20808 echo "configure: failed program was:" >&5
20809 cat conftest.$ac_ext >&5
20810 rm -rf conftest*
20811 eval "ac_cv_lib_$ac_lib_var=no"
20812fi
20813rm -f conftest*
20814LIBS="$ac_save_LIBS"
f6bcfd97 20815
a0b9e27f
MB
20816fi
20817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20818 echo "$ac_t""yes" 1>&6
20819
3a922bb4 20820 HAVE_SHL_FUNCS=1
3d63bc3a 20821 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20822
20823else
20824 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20825fi
20826
a0b9e27f 20827
10f2d63a
VZ
20828fi
20829done
20830
a0b9e27f 20831
10f2d63a
VZ
20832fi
20833
a0b9e27f 20834
10f2d63a
VZ
20835fi
20836done
20837
5c6fa7d2 20838
8284b0c5 20839 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20840 for ac_func in dlerror
f6bcfd97 20841do
a0b9e27f 20842echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 20843echo "configure:20844: checking for $ac_func" >&5
a0b9e27f
MB
20844if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20845 echo $ac_n "(cached) $ac_c" 1>&6
20846else
20847 cat > conftest.$ac_ext <<EOF
89e3b3e4 20848#line 20849 "configure"
f6bcfd97
BP
20849#include "confdefs.h"
20850/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20851 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20852#include <assert.h>
20853/* Override any gcc2 internal prototype to avoid an error. */
20854/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20855 builtin and then its argument prototype would still apply. */
20856char $ac_func();
20857
20858int main() {
20859
f6bcfd97
BP
20860/* The GNU C library defines this for functions which it implements
20861 to always fail with ENOSYS. Some functions are actually named
20862 something starting with __ and the normal name is an alias. */
20863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20864choke me
20865#else
a0b9e27f 20866$ac_func();
f6bcfd97
BP
20867#endif
20868
a0b9e27f
MB
20869; return 0; }
20870EOF
89e3b3e4 20871if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20872 rm -rf conftest*
20873 eval "ac_cv_func_$ac_func=yes"
20874else
20875 echo "configure: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20877 rm -rf conftest*
20878 eval "ac_cv_func_$ac_func=no"
20879fi
20880rm -f conftest*
20881fi
20882
20883if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20884 echo "$ac_t""yes" 1>&6
20885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20886 cat >> confdefs.h <<EOF
20887#define $ac_tr_func 1
20888EOF
20889 cat >> confdefs.h <<\EOF
f6bcfd97 20890#define HAVE_DLERROR 1
a0b9e27f 20891EOF
f6bcfd97
BP
20892
20893else
a0b9e27f
MB
20894 echo "$ac_t""no" 1>&6
20895echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
89e3b3e4 20896echo "configure:20897: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20897ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20899 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20900else
a0b9e27f 20901 ac_save_LIBS="$LIBS"
f6bcfd97 20902LIBS="-ldl $LIBS"
a0b9e27f 20903cat > conftest.$ac_ext <<EOF
89e3b3e4 20904#line 20905 "configure"
f6bcfd97
BP
20905#include "confdefs.h"
20906/* Override any gcc2 internal prototype to avoid an error. */
20907/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20908 builtin and then its argument prototype would still apply. */
20909char dlerror();
20910
20911int main() {
20912dlerror()
20913; return 0; }
20914EOF
89e3b3e4 20915if { (eval echo configure:20916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20916 rm -rf conftest*
20917 eval "ac_cv_lib_$ac_lib_var=yes"
20918else
20919 echo "configure: failed program was:" >&5
20920 cat conftest.$ac_ext >&5
20921 rm -rf conftest*
20922 eval "ac_cv_lib_$ac_lib_var=no"
20923fi
20924rm -f conftest*
20925LIBS="$ac_save_LIBS"
20926
20927fi
20928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20929 echo "$ac_t""yes" 1>&6
20930 cat >> confdefs.h <<\EOF
f6bcfd97 20931#define HAVE_DLERROR 1
a0b9e27f 20932EOF
f6bcfd97 20933
a0b9e27f
MB
20934else
20935 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20936fi
20937
20938fi
20939done
20940
3a922bb4
RL
20941 fi
20942 fi
f6bcfd97 20943
3a922bb4
RL
20944 if test "$HAVE_DL_FUNCS" = 0; then
20945 if test "$HAVE_SHL_FUNCS" = 0; then
20946 if test "$USE_UNIX" = 1; then
a0b9e27f 20947 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20948 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20949 wxUSE_DYNLIB_CLASS=no
20950 else
a0b9e27f 20951 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20952 fi
20953 fi
10f2d63a
VZ
20954 fi
20955 fi
20956fi
20957
0b9ab0bd 20958if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20959 cat >> confdefs.h <<\EOF
0b9ab0bd 20960#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20961EOF
0b9ab0bd
RL
20962
20963elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20964 cat >> confdefs.h <<\EOF
10f2d63a 20965#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20966EOF
10f2d63a
VZ
20967
20968fi
20969
8284b0c5 20970
1e6feb95 20971if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20972 cat >> confdefs.h <<\EOF
1e6feb95 20973#define wxUSE_FONTMAP 1
a0b9e27f 20974EOF
1e6feb95
VZ
20975
20976fi
20977
10f2d63a 20978if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20979 cat >> confdefs.h <<\EOF
10f2d63a 20980#define wxUSE_UNICODE 1
a0b9e27f 20981EOF
10f2d63a 20982
8284b0c5 20983
bbc3925a
VS
20984 if test "$wxUSE_MSW" != 1; then
20985 wxUSE_UNICODE_MSLU=no
20986 fi
a72a4bfa
VS
20987
20988 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20989 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
89e3b3e4 20990echo "configure:20991: checking for main in -lunicows" >&5
a0b9e27f
MB
20991ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20993 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20994else
a0b9e27f 20995 ac_save_LIBS="$LIBS"
a72a4bfa 20996LIBS="-lunicows $LIBS"
a0b9e27f 20997cat > conftest.$ac_ext <<EOF
89e3b3e4 20998#line 20999 "configure"
a72a4bfa
VS
20999#include "confdefs.h"
21000
a0b9e27f
MB
21001int main() {
21002main()
21003; return 0; }
21004EOF
89e3b3e4 21005if { (eval echo configure:21006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21006 rm -rf conftest*
21007 eval "ac_cv_lib_$ac_lib_var=yes"
21008else
21009 echo "configure: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21011 rm -rf conftest*
21012 eval "ac_cv_lib_$ac_lib_var=no"
21013fi
21014rm -f conftest*
21015LIBS="$ac_save_LIBS"
8284b0c5 21016
a0b9e27f
MB
21017fi
21018if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21019 echo "$ac_t""yes" 1>&6
21020
21021 cat >> confdefs.h <<\EOF
a72a4bfa 21022#define wxUSE_UNICODE_MSLU 1
a0b9e27f 21023EOF
a72a4bfa 21024
a0b9e27f 21025
a72a4bfa 21026else
a0b9e27f 21027 echo "$ac_t""no" 1>&6
a72a4bfa 21028
a0b9e27f
MB
21029 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21030 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 21031 wxUSE_UNICODE_MSLU=no
a0b9e27f 21032
a72a4bfa
VS
21033fi
21034
21035 fi
10f2d63a
VZ
21036fi
21037
10f2d63a 21038if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 21039 cat >> confdefs.h <<\EOF
10f2d63a 21040#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 21041EOF
10f2d63a
VZ
21042
21043fi
21044
8284b0c5
MB
21045
21046
10f2d63a
VZ
21047IODBC_C_SRC=""
21048if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 21049 cat >> confdefs.h <<\EOF
10f2d63a 21050#define wxUSE_ODBC 1
a0b9e27f 21051EOF
10f2d63a
VZ
21052
21053 WXODBCFLAG="-D_IODBC_"
21054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
21055fi
21056
8284b0c5 21057
10f2d63a 21058if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 21059 cat >> confdefs.h <<\EOF
10f2d63a 21060#define wxUSE_POSTSCRIPT 1
a0b9e27f 21061EOF
10f2d63a
VZ
21062
21063fi
21064
a0b9e27f 21065cat >> confdefs.h <<\EOF
10f2d63a 21066#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 21067EOF
10f2d63a 21068
8284b0c5 21069
a0b9e27f 21070cat >> confdefs.h <<\EOF
10f2d63a 21071#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 21072EOF
10f2d63a 21073
8284b0c5
MB
21074
21075
10f2d63a 21076if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 21077 cat >> confdefs.h <<\EOF
10f2d63a 21078#define wxUSE_CONSTRAINTS 1
a0b9e27f 21079EOF
10f2d63a
VZ
21080
21081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21082fi
21083
21084if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 21085
8284b0c5 21086
bb811f17 21087 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 21088 cat >> confdefs.h <<\EOF
10f2d63a 21089#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 21090EOF
10f2d63a 21091
bb811f17
JS
21092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21093 fi
10f2d63a
VZ
21094fi
21095
21096if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 21097 cat >> confdefs.h <<\EOF
10f2d63a 21098#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 21099EOF
10f2d63a
VZ
21100
21101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21102 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21104 fi
21105fi
21106
21107if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21108 cat >> confdefs.h <<\EOF
10f2d63a 21109#define wxUSE_HELP 1
a0b9e27f 21110EOF
10f2d63a
VZ
21111
21112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21113
77e13408 21114 if test "$wxUSE_MSW" = 1; then
031d8228 21115 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21116 cat >> confdefs.h <<\EOF
29fd3c0c 21117#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21118EOF
29fd3c0c 21119
3e44f09d 21120 fi
3379ed37 21121 fi
031d8228
VS
21122
21123 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21124 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21125 cat >> confdefs.h <<\EOF
031d8228 21126#define wxUSE_WXHTML_HELP 1
a0b9e27f 21127EOF
031d8228
VS
21128
21129 else
a0b9e27f 21130 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21131 wxUSE_WXHTML_HELP=no
21132 fi
21133 fi
10f2d63a
VZ
21134fi
21135
21136if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21137 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21138 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21139 else
a0b9e27f 21140 cat >> confdefs.h <<\EOF
10f2d63a 21141#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21142EOF
10f2d63a
VZ
21143
21144 fi
21145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21146fi
21147
10f2d63a 21148
10f2d63a
VZ
21149
21150if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 21151 cat >> confdefs.h <<\EOF
10f2d63a 21152#define wxUSE_X_RESOURCES 1
a0b9e27f 21153EOF
10f2d63a
VZ
21154
21155fi
21156
8284b0c5 21157
77e13408
RL
21158if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21159 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21160 -o "$wxUSE_OLE" = "yes" \
77e13408 21161 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21162 for ac_hdr in ole2.h
10f2d63a 21163do
a0b9e27f
MB
21164ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21165echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
89e3b3e4 21166echo "configure:21167: checking for $ac_hdr" >&5
a0b9e27f
MB
21167if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21168 echo $ac_n "(cached) $ac_c" 1>&6
21169else
21170 cat > conftest.$ac_ext <<EOF
89e3b3e4 21171#line 21172 "configure"
10f2d63a 21172#include "confdefs.h"
a0b9e27f
MB
21173#include <$ac_hdr>
21174EOF
21175ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
89e3b3e4 21176{ (eval echo configure:21177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21177ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21178if test -z "$ac_err"; then
21179 rm -rf conftest*
21180 eval "ac_cv_header_$ac_safe=yes"
21181else
21182 echo "$ac_err" >&5
21183 echo "configure: failed program was:" >&5
10f2d63a 21184 cat conftest.$ac_ext >&5
a0b9e27f
MB
21185 rm -rf conftest*
21186 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21187fi
a0b9e27f 21188rm -f conftest*
10f2d63a 21189fi
a0b9e27f
MB
21190if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21191 echo "$ac_t""yes" 1>&6
21192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21193 cat >> confdefs.h <<EOF
21194#define $ac_tr_hdr 1
21195EOF
21196
21197else
21198 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21199fi
21200done
21201
8284b0c5 21202
2b9bdf71
VZ
21203 if test "$ac_cv_header_ole2_h" = "yes" ; then
21204 if test "$GCC" = yes ; then
a0b9e27f
MB
21205
21206 ac_ext=C
21207# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21208ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21209ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21210ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21211cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21212
21213
a0b9e27f 21214 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
89e3b3e4 21215echo "configure:21216: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21216 cat > conftest.$ac_ext <<EOF
89e3b3e4 21217#line 21218 "configure"
8284b0c5
MB
21218#include "confdefs.h"
21219#include <windows.h>
21220 #include <ole2.h>
a0b9e27f 21221int main() {
8284b0c5 21222
a0b9e27f
MB
21223; return 0; }
21224EOF
89e3b3e4 21225if { (eval echo configure:21226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21226 rm -rf conftest*
21227 echo "$ac_t""no" 1>&6
21228else
21229 echo "configure: failed program was:" >&5
21230 cat conftest.$ac_ext >&5
21231 rm -rf conftest*
21232 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21233 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21234fi
a0b9e27f 21235rm -f conftest*
8284b0c5 21236 ac_ext=c
a0b9e27f 21237# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21238ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21239ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21240ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21241cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21242
2b9bdf71 21243 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21244 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21245 cat >> confdefs.h <<\EOF
4f11a343 21246#define wxUSE_OLE 1
a0b9e27f 21247EOF
4f11a343 21248
8284b0c5 21249
2b9bdf71
VZ
21250 fi
21251
a0b9e27f 21252 cat >> confdefs.h <<\EOF
2b9bdf71 21253#define wxUSE_DATAOBJ 1
a0b9e27f 21254EOF
2b9bdf71
VZ
21255
21256 else
a0b9e27f 21257 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21258
21259 wxUSE_CLIPBOARD=no
21260 wxUSE_DRAG_AND_DROP=no
21261 wxUSE_DATAOBJ=no
3bce6687
JS
21262 wxUSE_OLE=no
21263 fi
21264
21265 if test "$wxUSE_METAFILE" = "yes"; then
21266 cat >> confdefs.h <<\EOF
21267#define wxUSE_METAFILE 1
21268EOF
21269
21270
21271 cat >> confdefs.h <<\EOF
21272#define wxUSE_ENH_METAFILE 1
21273EOF
21274
21275 fi
21276fi
21277
2b9bdf71
VZ
21278if test "$wxUSE_IPC" = "yes"; then
21279 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21280 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21281 fi
21282
a0b9e27f 21283 cat >> confdefs.h <<\EOF
2b9bdf71 21284#define wxUSE_IPC 1
a0b9e27f 21285EOF
2b9bdf71
VZ
21286
21287fi
21288
21289if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21290 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21291 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21292 wxUSE_CLIPBOARD=no
21293 fi
21294
21295 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21296 cat >> confdefs.h <<\EOF
2b9bdf71 21297#define wxUSE_CLIPBOARD 1
a0b9e27f 21298EOF
2b9bdf71 21299
8284b0c5 21300
a0b9e27f 21301 cat >> confdefs.h <<\EOF
673f4220 21302#define wxUSE_DATAOBJ 1
a0b9e27f 21303EOF
673f4220 21304
6c657b52 21305 fi
2b9bdf71
VZ
21306fi
21307
21308if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21309 if test "$wxUSE_GTK" = 1; then
21310 if test "$WXGTK12" != 1; then
a0b9e27f 21311 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21312 wxUSE_DRAG_AND_DROP=no
21313 fi
21314 fi
21315
2b9bdf71 21316 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21317 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21318 wxUSE_DRAG_AND_DROP=no
21319 fi
21320
f79bd02d 21321 if test "$wxUSE_X11" = 1; then
a0b9e27f 21322 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21323 wxUSE_DRAG_AND_DROP=no
21324 fi
21325
6c657b52 21326 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21327 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21328 wxUSE_DRAG_AND_DROP=no
21329 fi
21330
10f2d63a 21331 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21332 cat >> confdefs.h <<\EOF
10f2d63a 21333#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21334EOF
10f2d63a
VZ
21335
21336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21337 fi
21338
21339fi
21340
21341if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21342 cat >> confdefs.h <<\EOF
10f2d63a 21343#define wxUSE_SPLINES 1
a0b9e27f 21344EOF
10f2d63a
VZ
21345
21346fi
21347
8284b0c5 21348
1e6feb95
VZ
21349USES_CONTROLS=0
21350if test "$wxUSE_CONTROLS" = "yes"; then
21351 USES_CONTROLS=1
21352fi
21353
10f2d63a 21354if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21355 cat >> confdefs.h <<\EOF
10f2d63a 21356#define wxUSE_ACCEL 1
a0b9e27f 21357EOF
10f2d63a 21358
1e6feb95
VZ
21359 USES_CONTROLS=1
21360fi
21361
21362if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21363 cat >> confdefs.h <<\EOF
1e6feb95 21364#define wxUSE_BUTTON 1
a0b9e27f 21365EOF
1e6feb95
VZ
21366
21367 USES_CONTROLS=1
21368fi
21369
21370if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21371 cat >> confdefs.h <<\EOF
1e6feb95 21372#define wxUSE_BMPBUTTON 1
a0b9e27f 21373EOF
1e6feb95
VZ
21374
21375 USES_CONTROLS=1
21376fi
21377
21378if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21379 cat >> confdefs.h <<\EOF
1e6feb95 21380#define wxUSE_CALENDARCTRL 1
a0b9e27f 21381EOF
1e6feb95
VZ
21382
21383 USES_CONTROLS=1
21384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21385fi
21386
21387if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21388 cat >> confdefs.h <<\EOF
10f2d63a 21389#define wxUSE_CARET 1
a0b9e27f 21390EOF
10f2d63a 21391
1e6feb95 21392 USES_CONTROLS=1
10f2d63a
VZ
21393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21394fi
21395
21396if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21397 cat >> confdefs.h <<\EOF
10f2d63a 21398#define wxUSE_COMBOBOX 1
a0b9e27f 21399EOF
10f2d63a 21400
1e6feb95 21401 USES_CONTROLS=1
10f2d63a
VZ
21402fi
21403
21404if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21405 cat >> confdefs.h <<\EOF
10f2d63a 21406#define wxUSE_CHOICE 1
a0b9e27f 21407EOF
10f2d63a 21408
1e6feb95 21409 USES_CONTROLS=1
10f2d63a
VZ
21410fi
21411
21412if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21413 cat >> confdefs.h <<\EOF
10f2d63a 21414#define wxUSE_CHECKBOX 1
a0b9e27f 21415EOF
10f2d63a 21416
1e6feb95 21417 USES_CONTROLS=1
10f2d63a
VZ
21418fi
21419
21420if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21421 cat >> confdefs.h <<\EOF
10f2d63a 21422#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21423EOF
10f2d63a 21424
1e6feb95 21425 USES_CONTROLS=1
10f2d63a
VZ
21426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21427fi
21428
da494b40
MB
21429if test "$wxUSE_DISPLAY" = "yes"; then
21430 cat >> confdefs.h <<\EOF
21431#define wxUSE_DISPLAY 1
21432EOF
21433
21434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21435fi
21436
10f2d63a 21437if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21438 cat >> confdefs.h <<\EOF
10f2d63a 21439#define wxUSE_GAUGE 1
a0b9e27f 21440EOF
10f2d63a 21441
1e6feb95 21442 USES_CONTROLS=1
10f2d63a
VZ
21443fi
21444
d6a55c4b 21445if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21446 cat >> confdefs.h <<\EOF
d6a55c4b 21447#define wxUSE_GRID 1
a0b9e27f 21448EOF
10f2d63a 21449
1e6feb95 21450 USES_CONTROLS=1
d6a55c4b 21451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21452fi
21453
21454if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21455 cat >> confdefs.h <<\EOF
10f2d63a 21456#define wxUSE_IMAGLIST 1
a0b9e27f 21457EOF
10f2d63a
VZ
21458
21459fi
21460
21461if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21462 cat >> confdefs.h <<\EOF
10f2d63a 21463#define wxUSE_LISTBOX 1
a0b9e27f 21464EOF
10f2d63a 21465
1e6feb95 21466 USES_CONTROLS=1
10f2d63a
VZ
21467fi
21468
21469if test "$wxUSE_LISTCTRL" = "yes"; then
21470 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21471 cat >> confdefs.h <<\EOF
10f2d63a 21472#define wxUSE_LISTCTRL 1
a0b9e27f 21473EOF
10f2d63a 21474
1e6feb95 21475 USES_CONTROLS=1
10f2d63a
VZ
21476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21477 else
a0b9e27f 21478 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21479 fi
21480fi
21481
21482if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21483 cat >> confdefs.h <<\EOF
10f2d63a 21484#define wxUSE_NOTEBOOK 1
a0b9e27f 21485EOF
10f2d63a 21486
1e6feb95 21487 USES_CONTROLS=1
10f2d63a
VZ
21488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21489fi
21490
24176f2c 21491
10f2d63a 21492if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21493 cat >> confdefs.h <<\EOF
10f2d63a 21494#define wxUSE_RADIOBOX 1
a0b9e27f 21495EOF
10f2d63a 21496
1e6feb95 21497 USES_CONTROLS=1
10f2d63a
VZ
21498fi
21499
21500if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21501 cat >> confdefs.h <<\EOF
10f2d63a 21502#define wxUSE_RADIOBTN 1
a0b9e27f 21503EOF
10f2d63a 21504
1e6feb95 21505 USES_CONTROLS=1
10f2d63a
VZ
21506fi
21507
21508if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21509 cat >> confdefs.h <<\EOF
10f2d63a 21510#define wxUSE_SASH 1
a0b9e27f 21511EOF
10f2d63a
VZ
21512
21513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21514fi
21515
21516if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21517 cat >> confdefs.h <<\EOF
10f2d63a 21518#define wxUSE_SCROLLBAR 1
a0b9e27f 21519EOF
10f2d63a 21520
1e6feb95 21521 USES_CONTROLS=1
741a9306 21522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21523fi
21524
21525if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21526 cat >> confdefs.h <<\EOF
10f2d63a 21527#define wxUSE_SLIDER 1
a0b9e27f 21528EOF
10f2d63a 21529
1e6feb95 21530 USES_CONTROLS=1
10f2d63a
VZ
21531fi
21532
21533if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21534 cat >> confdefs.h <<\EOF
10f2d63a 21535#define wxUSE_SPINBTN 1
a0b9e27f 21536EOF
10f2d63a 21537
1e6feb95 21538 USES_CONTROLS=1
10f2d63a
VZ
21539fi
21540
56cfaa52 21541if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21542 cat >> confdefs.h <<\EOF
56cfaa52 21543#define wxUSE_SPINCTRL 1
a0b9e27f 21544EOF
56cfaa52 21545
1e6feb95 21546 USES_CONTROLS=1
56cfaa52
RR
21547fi
21548
10f2d63a 21549if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21550 cat >> confdefs.h <<\EOF
10f2d63a 21551#define wxUSE_SPLITTER 1
a0b9e27f 21552EOF
10f2d63a
VZ
21553
21554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21555fi
21556
21557if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21558 cat >> confdefs.h <<\EOF
10f2d63a 21559#define wxUSE_STATBMP 1
a0b9e27f 21560EOF
10f2d63a 21561
1e6feb95 21562 USES_CONTROLS=1
10f2d63a
VZ
21563fi
21564
21565if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21566 cat >> confdefs.h <<\EOF
10f2d63a 21567#define wxUSE_STATBOX 1
a0b9e27f 21568EOF
10f2d63a 21569
1e6feb95
VZ
21570 USES_CONTROLS=1
21571fi
21572
21573if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21574 cat >> confdefs.h <<\EOF
1e6feb95 21575#define wxUSE_STATTEXT 1
a0b9e27f 21576EOF
1e6feb95
VZ
21577
21578 USES_CONTROLS=1
10f2d63a
VZ
21579fi
21580
21581if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21582 cat >> confdefs.h <<\EOF
10f2d63a 21583#define wxUSE_STATLINE 1
a0b9e27f 21584EOF
10f2d63a 21585
89e6bf6d 21586 USES_CONTROLS=1
10f2d63a
VZ
21587fi
21588
21589if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21590 cat >> confdefs.h <<\EOF
10f2d63a 21591#define wxUSE_STATUSBAR 1
a0b9e27f 21592EOF
10f2d63a 21593
1e6feb95 21594 USES_CONTROLS=1
698dcdb6 21595
2286341c 21596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21597fi
21598
21599if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21600 cat >> confdefs.h <<\EOF
10f2d63a 21601#define wxUSE_TAB_DIALOG 1
a0b9e27f 21602EOF
10f2d63a
VZ
21603
21604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21605fi
21606
1e6feb95 21607if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21608 cat >> confdefs.h <<\EOF
1e6feb95 21609#define wxUSE_TEXTCTRL 1
a0b9e27f 21610EOF
1e6feb95
VZ
21611
21612 USES_CONTROLS=1
21613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21614fi
21615
1db8dc4a 21616if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21617 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21618 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21619 wxUSE_TOGGLEBTN=no
21620 fi
21621 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21622 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21623 wxUSE_TOGGLEBTN=no
21624 fi
21625
21626 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21627 cat >> confdefs.h <<\EOF
1db8dc4a 21628#define wxUSE_TOGGLEBTN 1
a0b9e27f 21629EOF
1db8dc4a 21630
1e6feb95 21631 USES_CONTROLS=1
a45d7ab7 21632 fi
1db8dc4a
VZ
21633fi
21634
360d6699 21635if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21636 cat >> confdefs.h <<\EOF
360d6699 21637#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21638EOF
360d6699
VZ
21639
21640 wxUSE_TOOLBAR="yes"
1e6feb95 21641 USES_CONTROLS=1
360d6699
VZ
21642fi
21643
10f2d63a 21644if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21645 cat >> confdefs.h <<\EOF
10f2d63a 21646#define wxUSE_TOOLBAR 1
a0b9e27f 21647EOF
10f2d63a 21648
1e6feb95 21649 USES_CONTROLS=1
698dcdb6 21650
360d6699
VZ
21651 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21652 wxUSE_TOOLBAR_NATIVE="yes"
21653 fi
21654
1e6feb95 21655 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21656 cat >> confdefs.h <<\EOF
360d6699 21657#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21658EOF
360d6699 21659
1e6feb95
VZ
21660 USES_CONTROLS=1
21661 fi
21662
21663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21664fi
21665
10f2d63a
VZ
21666if test "$wxUSE_TOOLTIPS" = "yes"; then
21667 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21668 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21669 else
89e6bf6d
VZ
21670 if test "$wxUSE_UNIVERSAL" = "yes"; then
21671 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21672 else
89e6bf6d 21673 cat >> confdefs.h <<\EOF
10f2d63a 21674#define wxUSE_TOOLTIPS 1
a0b9e27f 21675EOF
10f2d63a
VZ
21676
21677 fi
21678 fi
21679fi
21680
21681if test "$wxUSE_TREECTRL" = "yes"; then
21682 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21683 cat >> confdefs.h <<\EOF
10f2d63a 21684#define wxUSE_TREECTRL 1
a0b9e27f 21685EOF
10f2d63a 21686
1e6feb95 21687 USES_CONTROLS=1
10f2d63a
VZ
21688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21689 else
a0b9e27f 21690 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21691 fi
21692fi
21693
9f41d601 21694if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21695 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21696 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21697 else
485cf710 21698 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21699 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21700 else
3c011993 21701 if test "$wxUSE_PM" = 1; then
a0b9e27f 21702 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21703 else
a0b9e27f 21704 cat >> confdefs.h <<\EOF
9f41d601 21705#define wxUSE_POPUPWIN 1
a0b9e27f 21706EOF
9f41d601 21707
8284b0c5 21708
3c011993
VZ
21709 USES_CONTROLS=1
21710 fi
485cf710 21711 fi
6abe4b65 21712 fi
9f41d601
RR
21713fi
21714
dd964dcc 21715if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21716 if test "$wxUSE_PM" = 1; then
a0b9e27f 21717 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21718 else
a0b9e27f 21719 cat >> confdefs.h <<\EOF
dd964dcc 21720#define wxUSE_TIPWINDOW 1
a0b9e27f 21721EOF
dd964dcc 21722
3c011993 21723 fi
dd964dcc
VZ
21724fi
21725
1e6feb95 21726if test "$USES_CONTROLS" = 1; then
a0b9e27f 21727 cat >> confdefs.h <<\EOF
1e6feb95 21728#define wxUSE_CONTROLS 1
a0b9e27f 21729EOF
10f2d63a 21730
10f2d63a
VZ
21731fi
21732
8284b0c5 21733
1e6feb95 21734
24fd6d87 21735if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21736 cat >> confdefs.h <<\EOF
24fd6d87 21737#define wxUSE_DRAGIMAGE 1
a0b9e27f 21738EOF
24fd6d87
VZ
21739
21740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21741fi
21742
1e6feb95 21743if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21744 cat >> confdefs.h <<\EOF
1e6feb95 21745#define wxUSE_MENUS 1
a0b9e27f 21746EOF
10f2d63a 21747
1e6feb95 21748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21749fi
21750
1e6feb95 21751if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21752 cat >> confdefs.h <<\EOF
1e6feb95 21753#define wxUSE_METAFILE 1
a0b9e27f 21754EOF
10f2d63a 21755
10f2d63a
VZ
21756fi
21757
1e6feb95 21758if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21759 cat >> confdefs.h <<\EOF
1e6feb95 21760#define wxUSE_MIMETYPE 1
a0b9e27f 21761EOF
10f2d63a 21762
10f2d63a
VZ
21763fi
21764
3e44f09d 21765if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21766 cat >> confdefs.h <<\EOF
3e44f09d 21767#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21768EOF
3e44f09d 21769
321d2b14
VZ
21770if test "$TOOLKIT" = "MSW"; then
21771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21772fi
21773
3e44f09d
VZ
21774fi
21775
4cdb0ab0 21776if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21777 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21778 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21779 wxUSE_PROTOCOL=no
21780 fi
21781
21782 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21783 cat >> confdefs.h <<\EOF
4cdb0ab0 21784#define wxUSE_PROTOCOL 1
a0b9e27f 21785EOF
4cdb0ab0 21786
8284b0c5 21787
3954f9ca 21788 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21789 cat >> confdefs.h <<\EOF
4cdb0ab0 21790#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21791EOF
4cdb0ab0 21792
3954f9ca
VS
21793 fi
21794 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21795 cat >> confdefs.h <<\EOF
4cdb0ab0 21796#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21797EOF
4cdb0ab0 21798
3954f9ca
VS
21799 fi
21800 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21801 cat >> confdefs.h <<\EOF
3954f9ca 21802#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21803EOF
3954f9ca
VS
21804
21805 fi
4cdb0ab0 21806 fi
3954f9ca
VS
21807fi
21808
21809if test "$wxUSE_URL" = "yes"; then
21810 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21811 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21812 wxUSE_URL=no
21813 fi
21814 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21815 cat >> confdefs.h <<\EOF
3954f9ca 21816#define wxUSE_URL 1
a0b9e27f 21817EOF
4cdb0ab0
VS
21818
21819 fi
21820fi
21821
10f2d63a 21822if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21823 cat >> confdefs.h <<\EOF
10f2d63a 21824#define wxUSE_MINIFRAME 1
a0b9e27f 21825EOF
10f2d63a
VZ
21826
21827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21828fi
21829
21830if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21831 cat >> confdefs.h <<\EOF
10f2d63a 21832#define wxUSE_HTML 1
a0b9e27f 21833EOF
10f2d63a
VZ
21834
21835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21836fi
21837
21838if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21839 cat >> confdefs.h <<\EOF
1e487827 21840#define wxUSE_VALIDATORS 1
a0b9e27f 21841EOF
703e0a69 21842
698dcdb6
VZ
21843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21844fi
21845
edae8572 21846if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21847 cat >> confdefs.h <<\EOF
edae8572 21848#define wxUSE_PALETTE 1
a0b9e27f 21849EOF
edae8572
VZ
21850
21851fi
21852
698dcdb6 21853if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21854 cat >> confdefs.h <<\EOF
698dcdb6 21855#define wxUSE_IMAGE 1
a0b9e27f 21856EOF
698dcdb6
VZ
21857
21858fi
21859
21860if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21861 cat >> confdefs.h <<\EOF
698dcdb6 21862#define wxUSE_GIF 1
a0b9e27f 21863EOF
698dcdb6
VZ
21864
21865fi
21866
21867if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21868 cat >> confdefs.h <<\EOF
698dcdb6 21869#define wxUSE_PCX 1
a0b9e27f 21870EOF
698dcdb6
VZ
21871
21872fi
21873
4b6b4dfc 21874if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21875 cat >> confdefs.h <<\EOF
4b6b4dfc 21876#define wxUSE_IFF 1
a0b9e27f 21877EOF
4b6b4dfc
RR
21878
21879fi
21880
698dcdb6 21881if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21882 cat >> confdefs.h <<\EOF
698dcdb6 21883#define wxUSE_PNM 1
a0b9e27f 21884EOF
698dcdb6
VZ
21885
21886fi
21887
21888if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21889 cat >> confdefs.h <<\EOF
698dcdb6 21890#define wxUSE_XPM 1
a0b9e27f 21891EOF
698dcdb6
VZ
21892
21893fi
21894
658974ae 21895if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21896 cat >> confdefs.h <<\EOF
658974ae 21897#define wxUSE_ICO_CUR 1
a0b9e27f 21898EOF
658974ae
VS
21899
21900fi
21901
a72a4bfa
VS
21902if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21903 LIBS=" -lunicows $LIBS"
21904fi
21905
8284b0c5 21906
1e6feb95 21907if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21908 cat >> confdefs.h <<\EOF
1e6feb95 21909#define wxUSE_CHOICEDLG 1
a0b9e27f 21910EOF
1e6feb95
VZ
21911
21912fi
21913
21914if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21915 cat >> confdefs.h <<\EOF
1e6feb95 21916#define wxUSE_COLOURDLG 1
a0b9e27f 21917EOF
1e6feb95
VZ
21918
21919fi
21920
21921if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21922 cat >> confdefs.h <<\EOF
1e6feb95 21923#define wxUSE_FILEDLG 1
a0b9e27f 21924EOF
1e6feb95
VZ
21925
21926fi
21927
8db37e06 21928if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21929 cat >> confdefs.h <<\EOF
8db37e06 21930#define wxUSE_FINDREPLDLG 1
a0b9e27f 21931EOF
8db37e06
VZ
21932
21933fi
21934
1e6feb95 21935if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21936 cat >> confdefs.h <<\EOF
1e6feb95 21937#define wxUSE_FONTDLG 1
a0b9e27f 21938EOF
1e6feb95
VZ
21939
21940fi
21941
21942if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21943 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21944 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21945 else
a0b9e27f 21946 cat >> confdefs.h <<\EOF
1e6feb95 21947#define wxUSE_DIRDLG 1
a0b9e27f 21948EOF
1e6feb95 21949
1e6feb95
VZ
21950 fi
21951fi
21952
21953if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21954 cat >> confdefs.h <<\EOF
1e6feb95 21955#define wxUSE_MSGDLG 1
a0b9e27f 21956EOF
1e6feb95
VZ
21957
21958fi
21959
21960if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21961 cat >> confdefs.h <<\EOF
1e6feb95 21962#define wxUSE_NUMBERDLG 1
a0b9e27f 21963EOF
1e6feb95
VZ
21964
21965fi
21966
21967if test "$wxUSE_PROGRESSDLG" = "yes"; then
21968 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21969 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21970 else
a0b9e27f 21971 cat >> confdefs.h <<\EOF
1e6feb95 21972#define wxUSE_PROGRESSDLG 1
a0b9e27f 21973EOF
1e6feb95
VZ
21974
21975 fi
21976fi
21977
cbca9943 21978if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21979 cat >> confdefs.h <<\EOF
cbca9943 21980#define wxUSE_SPLASH 1
a0b9e27f 21981EOF
cbca9943
VZ
21982
21983fi
21984
1e6feb95
VZ
21985if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21986 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21987 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21988 else
a0b9e27f 21989 cat >> confdefs.h <<\EOF
1e6feb95 21990#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21991EOF
1e6feb95 21992
7b4a847f
RR
21993 fi
21994fi
579d8138 21995
8284b0c5 21996if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21997 cat >> confdefs.h <<\EOF
8284b0c5 21998#define wxUSE_TEXTDLG 1
a0b9e27f 21999EOF
8284b0c5
MB
22000
22001fi
22002
22003if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 22004 cat >> confdefs.h <<\EOF
8284b0c5 22005#define wxUSE_WIZARDDLG 1
a0b9e27f 22006EOF
8284b0c5
MB
22007
22008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22009fi
22010
22011
22012if test "$cross_compiling" = "yes"; then
22013 OSINFO="\"$host\""
22014else
22015 OSINFO=`uname -s -r -m`
22016 OSINFO="\"$OSINFO\""
22017fi
22018
a0b9e27f 22019cat >> confdefs.h <<EOF
8284b0c5 22020#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 22021EOF
8284b0c5
MB
22022
22023
22024
22025if test "x$prefix" != "xNONE"; then
22026 wxPREFIX=$prefix
22027else
22028 wxPREFIX=$ac_default_prefix
22029fi
22030
a0b9e27f 22031cat >> confdefs.h <<EOF
8284b0c5 22032#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 22033EOF
8284b0c5
MB
22034
22035
52c71b80
VZ
22036top_builddir=`pwd`
22037
8284b0c5
MB
22038
22039
22040
22041if test "$wxUSE_MAC" = 1 ; then
22042 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22043fi
ac0c4cc3
DE
22044if test "$wxUSE_COCOA" = 1 ; then
22045 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22046fi
8284b0c5
MB
22047
22048
2b5f62a0
VZ
22049LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22050
22051have_cos=0
22052have_floor=0
22053for ac_func in cos
22054do
22055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 22056echo "configure:22057: checking for $ac_func" >&5
2b5f62a0
VZ
22057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22058 echo $ac_n "(cached) $ac_c" 1>&6
22059else
22060 cat > conftest.$ac_ext <<EOF
89e3b3e4 22061#line 22062 "configure"
2b5f62a0
VZ
22062#include "confdefs.h"
22063/* System header to define __stub macros and hopefully few prototypes,
22064 which can conflict with char $ac_func(); below. */
22065#include <assert.h>
22066/* Override any gcc2 internal prototype to avoid an error. */
22067/* We use char because int might match the return type of a gcc2
22068 builtin and then its argument prototype would still apply. */
22069char $ac_func();
22070
22071int main() {
22072
22073/* The GNU C library defines this for functions which it implements
22074 to always fail with ENOSYS. Some functions are actually named
22075 something starting with __ and the normal name is an alias. */
22076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22077choke me
22078#else
22079$ac_func();
22080#endif
22081
22082; return 0; }
22083EOF
89e3b3e4 22084if { (eval echo configure:22085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22085 rm -rf conftest*
22086 eval "ac_cv_func_$ac_func=yes"
22087else
22088 echo "configure: failed program was:" >&5
22089 cat conftest.$ac_ext >&5
22090 rm -rf conftest*
22091 eval "ac_cv_func_$ac_func=no"
22092fi
22093rm -f conftest*
22094fi
22095
22096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22097 echo "$ac_t""yes" 1>&6
22098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22099 cat >> confdefs.h <<EOF
22100#define $ac_tr_func 1
22101EOF
22102 have_cos=1
22103else
22104 echo "$ac_t""no" 1>&6
22105fi
22106done
22107
22108for ac_func in floor
22109do
22110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 22111echo "configure:22112: checking for $ac_func" >&5
2b5f62a0
VZ
22112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22113 echo $ac_n "(cached) $ac_c" 1>&6
22114else
22115 cat > conftest.$ac_ext <<EOF
89e3b3e4 22116#line 22117 "configure"
2b5f62a0
VZ
22117#include "confdefs.h"
22118/* System header to define __stub macros and hopefully few prototypes,
22119 which can conflict with char $ac_func(); below. */
22120#include <assert.h>
22121/* Override any gcc2 internal prototype to avoid an error. */
22122/* We use char because int might match the return type of a gcc2
22123 builtin and then its argument prototype would still apply. */
22124char $ac_func();
22125
22126int main() {
22127
22128/* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132choke me
22133#else
22134$ac_func();
22135#endif
22136
22137; return 0; }
22138EOF
89e3b3e4 22139if { (eval echo configure:22140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22140 rm -rf conftest*
22141 eval "ac_cv_func_$ac_func=yes"
22142else
22143 echo "configure: failed program was:" >&5
22144 cat conftest.$ac_ext >&5
22145 rm -rf conftest*
22146 eval "ac_cv_func_$ac_func=no"
22147fi
22148rm -f conftest*
22149fi
22150
22151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22152 echo "$ac_t""yes" 1>&6
22153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22154 cat >> confdefs.h <<EOF
22155#define $ac_tr_func 1
22156EOF
22157 have_floor=1
22158else
22159 echo "$ac_t""no" 1>&6
22160fi
22161done
22162
22163echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
89e3b3e4 22164echo "configure:22165: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22165if test "$have_cos" = 1 -a "$have_floor" = 1; then
22166 echo "$ac_t""yes" 1>&6
22167else
22168 echo "$ac_t""no" 1>&6
22169 LIBS="$LIBS -lm"
22170 # use different functions to avoid configure caching
22171 have_sin=0
22172 have_ceil=0
22173 for ac_func in sin
22174do
22175echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 22176echo "configure:22177: checking for $ac_func" >&5
2b5f62a0
VZ
22177if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22178 echo $ac_n "(cached) $ac_c" 1>&6
22179else
22180 cat > conftest.$ac_ext <<EOF
89e3b3e4 22181#line 22182 "configure"
2b5f62a0
VZ
22182#include "confdefs.h"
22183/* System header to define __stub macros and hopefully few prototypes,
22184 which can conflict with char $ac_func(); below. */
22185#include <assert.h>
22186/* Override any gcc2 internal prototype to avoid an error. */
22187/* We use char because int might match the return type of a gcc2
22188 builtin and then its argument prototype would still apply. */
22189char $ac_func();
22190
22191int main() {
22192
22193/* The GNU C library defines this for functions which it implements
22194 to always fail with ENOSYS. Some functions are actually named
22195 something starting with __ and the normal name is an alias. */
22196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22197choke me
22198#else
22199$ac_func();
22200#endif
22201
22202; return 0; }
22203EOF
89e3b3e4 22204if { (eval echo configure:22205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22205 rm -rf conftest*
22206 eval "ac_cv_func_$ac_func=yes"
22207else
22208 echo "configure: failed program was:" >&5
22209 cat conftest.$ac_ext >&5
22210 rm -rf conftest*
22211 eval "ac_cv_func_$ac_func=no"
22212fi
22213rm -f conftest*
22214fi
22215
22216if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22217 echo "$ac_t""yes" 1>&6
22218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22219 cat >> confdefs.h <<EOF
22220#define $ac_tr_func 1
22221EOF
22222 have_sin=1
22223else
22224 echo "$ac_t""no" 1>&6
22225fi
22226done
22227
22228 for ac_func in ceil
22229do
22230echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
89e3b3e4 22231echo "configure:22232: checking for $ac_func" >&5
2b5f62a0
VZ
22232if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22233 echo $ac_n "(cached) $ac_c" 1>&6
22234else
22235 cat > conftest.$ac_ext <<EOF
89e3b3e4 22236#line 22237 "configure"
2b5f62a0
VZ
22237#include "confdefs.h"
22238/* System header to define __stub macros and hopefully few prototypes,
22239 which can conflict with char $ac_func(); below. */
22240#include <assert.h>
22241/* Override any gcc2 internal prototype to avoid an error. */
22242/* We use char because int might match the return type of a gcc2
22243 builtin and then its argument prototype would still apply. */
22244char $ac_func();
22245
22246int main() {
22247
22248/* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252choke me
22253#else
22254$ac_func();
22255#endif
22256
22257; return 0; }
22258EOF
89e3b3e4 22259if { (eval echo configure:22260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22260 rm -rf conftest*
22261 eval "ac_cv_func_$ac_func=yes"
22262else
22263 echo "configure: failed program was:" >&5
22264 cat conftest.$ac_ext >&5
22265 rm -rf conftest*
22266 eval "ac_cv_func_$ac_func=no"
22267fi
22268rm -f conftest*
22269fi
22270
22271if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22272 echo "$ac_t""yes" 1>&6
22273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22274 cat >> confdefs.h <<EOF
22275#define $ac_tr_func 1
22276EOF
22277 have_ceil=1
22278else
22279 echo "$ac_t""no" 1>&6
22280fi
22281done
22282
22283 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
89e3b3e4 22284echo "configure:22285: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22285 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22286 echo "$ac_t""yes" 1>&6
22287 else
22288 echo "$ac_t""no" 1>&6
22289 # not sure we should warn the user, crash, etc.
22290 fi
22291fi
8284b0c5
MB
22292
22293if test "$wxUSE_GUI" = "yes"; then
22294
22295 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22296
a0b9e27f 22297
8284b0c5
MB
22298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22299 drawing dynamic erase event exec font image \
1542ea39 22300 minimal propsize rotate shaped widgets"
8284b0c5
MB
22301
22302 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22303else
22304 SAMPLES_SUBDIRS="console"
22305fi
22306
22307
22308INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22309-I\${top_srcdir}/include \
22310$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22311$TOOLKIT_INCLUDE"
22312
22313if test "$wxUSE_GTK" = 1; then
22314 WXCONFIG_INCLUDE=
22315else
22316 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22317fi
22318
22319if test "$GXX" = yes ; then
22320 CXXWARNINGS="-Wall"
a0b9e27f 22321
8284b0c5
MB
22322 if test "$wxUSE_NO_DEPS" = "no" ; then
22323 CFLAGS="-MMD $CFLAGS"
22324 CXXFLAGS="-MMD $CXXFLAGS"
22325 fi
22326fi
22327
b2fee376 22328EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22329
b2fee376 22330CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22331CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22332CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22333LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22334
22335LDFLAGS="$LDFLAGS $PROFILE"
22336
22337SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
2f51a9ec
GD
22406
22407
22408
22409
f6bcfd97 22410
dad6c0ea 22411
caa2c79b 22412
3711412e 22413
1e6feb95
VZ
22414
22415
885d4bf5
VS
22416
22417
22418
22419
9b695262
VZ
22420
22421
62d0491b 22422
ef7f2189 22423
40f7145c 22424
2b5f62a0
VZ
22425
22426
22427
22428
22429
2bffed64
VZ
22430
22431
3bd8fb5f 22432
e26c13cf 22433
52c71b80 22434
36825681 22435
4f5a7f74 22436
10f2d63a 22437
a0b9e27f
MB
22438
22439echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
89e3b3e4 22440echo "configure:22441: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22441set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22442if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22443 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22444else
a0b9e27f 22445 cat > conftestmake <<\EOF
10f2d63a
VZ
22446all:
22447 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22448EOF
10f2d63a 22449# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22450eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22451if test -n "$ac_maketemp"; then
22452 eval ac_cv_prog_make_${ac_make}_set=yes
22453else
22454 eval ac_cv_prog_make_${ac_make}_set=no
22455fi
a0b9e27f 22456rm -f conftestmake
10f2d63a
VZ
22457fi
22458if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22459 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22460 SET_MAKE=
22461else
a0b9e27f 22462 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22463 SET_MAKE="MAKE=${MAKE-make}"
22464fi
22465
8284b0c5 22466
3a922bb4
RL
22467if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22468 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22469fi
665bbe97 22470
8284b0c5 22471
10f2d63a 22472
57973b9c
VZ
22473wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22474wx_cv_if_gnu_make=$IF_GNU_MAKE
22475wx_cv_path_ifs=$PATH_IFS
22476wx_cv_program_ext=$PROGRAM_EXT
22477wx_cv_target_library=$WX_TARGET_LIBRARY
22478wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22479wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22480wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22481wx_cv_release=${WX_RELEASE}
22482wx_cv_current=${WX_CURRENT}
22483wx_cv_revision=${WX_REVISION}
22484wx_cv_age=${WX_AGE}
27635a90 22485wx_cv_use_gui=${USE_GUI}
5e66eee1 22486wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22487export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22488 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22489 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22490 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22491 wx_cv_use_gui wx_cv_use_resources
57973b9c 22492
a0b9e27f 22493subdirs="demos samples utils contrib"
8284b0c5 22494
10f2d63a 22495
a0b9e27f
MB
22496trap '' 1 2 15
22497cat > confcache <<\EOF
10f2d63a
VZ
22498# This file is a shell script that caches the results of configure
22499# tests run on this system so they can be shared between configure
a0b9e27f
MB
22500# scripts and configure runs. It is not useful on other systems.
22501# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22502#
a0b9e27f
MB
22503# By default, configure uses ./config.cache as the cache file,
22504# creating it if it does not exist already. You can give configure
22505# the --cache-file=FILE option to use a different cache file; that is
22506# what configure does when it calls configure scripts in
22507# subdirectories, so they share the cache.
22508# Giving --cache-file=/dev/null disables caching, for debugging configure.
22509# config.status only pays attention to the cache file if you give it the
22510# --recheck option to rerun configure.
10f2d63a 22511#
a0b9e27f 22512EOF
10f2d63a
VZ
22513# The following way of writing the cache mishandles newlines in values,
22514# but we know of no workaround that is simple, portable, and efficient.
22515# So, don't put newlines in cache variables' values.
22516# Ultrix sh set writes to stderr and can't be redirected directly,
22517# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22518(set) 2>&1 |
22519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22520 *ac_space=\ *)
22521 # `set' does not quote correctly, so add quotes (double-quote substitution
22522 # turns \\\\ into \\, and sed turns \\ into \).
22523 sed -n \
22524 -e "s/'/'\\\\''/g" \
22525 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22526 ;;
22527 *)
22528 # `set' quotes correctly as required by POSIX, so do not add quotes.
22529 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22530 ;;
22531 esac >> confcache
22532if cmp -s $cache_file confcache; then
22533 :
22534else
10f2d63a 22535 if test -w $cache_file; then
a0b9e27f
MB
22536 echo "updating cache $cache_file"
22537 cat confcache > $cache_file
10f2d63a
VZ
22538 else
22539 echo "not updating unwritable cache $cache_file"
22540 fi
22541fi
22542rm -f confcache
22543
a0b9e27f
MB
22544trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22545
10f2d63a
VZ
22546test "x$prefix" = xNONE && prefix=$ac_default_prefix
22547# Let make expand exec_prefix.
22548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22549
a0b9e27f
MB
22550# Any assignment to VPATH causes Sun make to only execute
22551# the first set of double-colon rules, so remove it if not needed.
22552# If there is a colon in the path, we need to keep it.
10f2d63a 22553if test "x$srcdir" = x.; then
a0b9e27f 22554 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22555fi
22556
a0b9e27f 22557trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22558
a0b9e27f 22559DEFS=-DHAVE_CONFIG_H
8284b0c5 22560
a0b9e27f 22561# Without the "./", some shells look in PATH for config.status.
247f5006 22562: ${CONFIG_STATUS=./config.status}
52127426 22563
a0b9e27f
MB
22564echo creating $CONFIG_STATUS
22565rm -f $CONFIG_STATUS
22566cat > $CONFIG_STATUS <<EOF
22567#! /bin/sh
22568# Generated automatically by configure.
22569# Run this file to recreate the current configuration.
22570# This directory was configured as follows,
22571# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22572#
a0b9e27f 22573# $0 $ac_configure_args
247f5006 22574#
a0b9e27f
MB
22575# Compiler output produced by configure, useful for debugging
22576# configure, is in ./config.log if it exists.
247f5006 22577
a0b9e27f
MB
22578ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22579for ac_option
247f5006 22580do
a0b9e27f
MB
22581 case "\$ac_option" in
22582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22583 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22584 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22585 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22586 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22587 exit 0 ;;
22588 -help | --help | --hel | --he | --h)
22589 echo "\$ac_cs_usage"; exit 0 ;;
22590 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22591 esac
22592done
22593
a0b9e27f
MB
22594ac_given_srcdir=$srcdir
22595ac_given_INSTALL="$INSTALL"
247f5006 22596
a0b9e27f
MB
22597trap 'rm -fr `echo "
22598 wx-config
2b5f62a0 22599 version-script
a0b9e27f
MB
22600 src/make.env
22601 src/makeprog.env
22602 src/makelib.env
22603 Makefile
22604 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22605EOF
22606cat >> $CONFIG_STATUS <<EOF
247f5006 22607
a0b9e27f
MB
22608# Protect against being on the right side of a sed subst in config.status.
22609sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22610 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22611$ac_vpsub
22612$extrasub
22613s%@SHELL@%$SHELL%g
22614s%@CFLAGS@%$CFLAGS%g
22615s%@CPPFLAGS@%$CPPFLAGS%g
22616s%@CXXFLAGS@%$CXXFLAGS%g
22617s%@FFLAGS@%$FFLAGS%g
22618s%@DEFS@%$DEFS%g
22619s%@LDFLAGS@%$LDFLAGS%g
22620s%@LIBS@%$LIBS%g
22621s%@exec_prefix@%$exec_prefix%g
22622s%@prefix@%$prefix%g
22623s%@program_transform_name@%$program_transform_name%g
22624s%@bindir@%$bindir%g
22625s%@sbindir@%$sbindir%g
22626s%@libexecdir@%$libexecdir%g
22627s%@datadir@%$datadir%g
22628s%@sysconfdir@%$sysconfdir%g
22629s%@sharedstatedir@%$sharedstatedir%g
22630s%@localstatedir@%$localstatedir%g
22631s%@libdir@%$libdir%g
22632s%@includedir@%$includedir%g
22633s%@oldincludedir@%$oldincludedir%g
22634s%@infodir@%$infodir%g
22635s%@mandir@%$mandir%g
22636s%@host@%$host%g
22637s%@host_alias@%$host_alias%g
22638s%@host_cpu@%$host_cpu%g
22639s%@host_vendor@%$host_vendor%g
22640s%@host_os@%$host_os%g
22641s%@target@%$target%g
22642s%@target_alias@%$target_alias%g
22643s%@target_cpu@%$target_cpu%g
22644s%@target_vendor@%$target_vendor%g
22645s%@target_os@%$target_os%g
22646s%@build@%$build%g
22647s%@build_alias@%$build_alias%g
22648s%@build_cpu@%$build_cpu%g
22649s%@build_vendor@%$build_vendor%g
22650s%@build_os@%$build_os%g
22651s%@CC@%$CC%g
22652s%@CPP@%$CPP%g
22653s%@CXX@%$CXX%g
22654s%@RANLIB@%$RANLIB%g
22655s%@AR@%$AR%g
22656s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22657s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22658s%@INSTALL_DATA@%$INSTALL_DATA%g
22659s%@STRIP@%$STRIP%g
22660s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22661s%@YACC@%$YACC%g
22662s%@LEX@%$LEX%g
22663s%@LEXLIB@%$LEXLIB%g
22664s%@LN_S@%$LN_S%g
22665s%@CXXCPP@%$CXXCPP%g
22666s%@PKG_CONFIG@%$PKG_CONFIG%g
22667s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22668s%@GTK_LIBS@%$GTK_LIBS%g
22669s%@GTK_CONFIG@%$GTK_CONFIG%g
22670s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22671s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22672s%@X_CFLAGS@%$X_CFLAGS%g
22673s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22674s%@X_LIBS@%$X_LIBS%g
22675s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22676s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22677s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22678s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22679s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22680s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22681s%@RESCOMP@%$RESCOMP%g
22682s%@DEREZ@%$DEREZ%g
36825681 22683s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22684s%@LIBICONV@%$LIBICONV%g
22685s%@LEX_STEM@%$LEX_STEM%g
22686s%@PATH_IFS@%$PATH_IFS%g
22687s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22688s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22689s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22690s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22691s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22692s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22693s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22694s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22695s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22696s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22697s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22698s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22699s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22700s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22701s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22702s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22703s%@WX_ALL@%$WX_ALL%g
22704s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22705s%@SHARED_LD@%$SHARED_LD%g
22706s%@PIC_FLAG@%$PIC_FLAG%g
22707s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22708s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22709s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22710s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22711s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22712s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22713s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22714s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22715s%@USE_GUI@%$USE_GUI%g
22716s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22717s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22718s%@TOOLKIT@%$TOOLKIT%g
22719s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22720s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22721s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22722s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22723s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22724s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22725s%@cross_compiling@%$cross_compiling%g
22726s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22727s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22728s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22729s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22730s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22731s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22732s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22733s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22734s%@ALL_HEADERS@%$ALL_HEADERS%g
22735s%@ALL_SOURCES@%$ALL_SOURCES%g
22736s%@GUIDIST@%$GUIDIST%g
22737s%@PORT_FILES@%$PORT_FILES%g
22738s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22739s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22740s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22741s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22742s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22743s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22744s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22745s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22746s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22747s%@RESFLAGS@%$RESFLAGS%g
22748s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22749s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22750s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22751s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22752s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22753s%@MACRESCOMP@%$MACRESCOMP%g
22754s%@MACSETFILE@%$MACSETFILE%g
22755s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22756s%@GCC@%$GCC%g
a0b9e27f
MB
22757s%@DLLTOOL@%$DLLTOOL%g
22758s%@AS@%$AS%g
22759s%@NM@%$NM%g
22760s%@LD@%$LD%g
22761s%@MAKEINFO@%$MAKEINFO%g
22762s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22763s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22764s%@SET_MAKE@%$SET_MAKE%g
22765s%@subdirs@%$subdirs%g
247f5006 22766
247f5006 22767CEOF
a0b9e27f 22768EOF
247f5006 22769
a0b9e27f
MB
22770cat >> $CONFIG_STATUS <<\EOF
22771
22772# Split the substitutions into bite-sized pieces for seds with
22773# small command number limits, like on Digital OSF/1 and HP-UX.
22774ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22775ac_file=1 # Number of current file.
22776ac_beg=1 # First line for current file.
22777ac_end=$ac_max_sed_cmds # Line after last line for current file.
22778ac_more_lines=:
22779ac_sed_cmds=""
22780while $ac_more_lines; do
22781 if test $ac_beg -gt 1; then
22782 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22783 else
22784 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22785 fi
22786 if test ! -s conftest.s$ac_file; then
22787 ac_more_lines=false
22788 rm -f conftest.s$ac_file
22789 else
22790 if test -z "$ac_sed_cmds"; then
22791 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22792 else
a0b9e27f 22793 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22794 fi
a0b9e27f
MB
22795 ac_file=`expr $ac_file + 1`
22796 ac_beg=$ac_end
22797 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22798 fi
a0b9e27f
MB
22799done
22800if test -z "$ac_sed_cmds"; then
22801 ac_sed_cmds=cat
22802fi
22803EOF
10f2d63a 22804
a0b9e27f 22805cat >> $CONFIG_STATUS <<EOF
10f2d63a 22806
a0b9e27f 22807CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22808 version-script
a0b9e27f
MB
22809 src/make.env
22810 src/makeprog.env
22811 src/makelib.env
22812 Makefile
22813 "}
22814EOF
22815cat >> $CONFIG_STATUS <<\EOF
22816for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22817 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22818 case "$ac_file" in
22819 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22820 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22821 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22822 esac
247f5006 22823
a0b9e27f 22824 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22825
a0b9e27f
MB
22826 # Remove last slash and all that follows it. Not all systems have dirname.
22827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22829 # The file is in a subdirectory.
22830 test ! -d "$ac_dir" && mkdir "$ac_dir"
22831 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22832 # A "../" for each directory in $ac_dir_suffix.
22833 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22834 else
22835 ac_dir_suffix= ac_dots=
22836 fi
247f5006 22837
a0b9e27f
MB
22838 case "$ac_given_srcdir" in
22839 .) srcdir=.
22840 if test -z "$ac_dots"; then top_srcdir=.
22841 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22842 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22843 *) # Relative path.
a0b9e27f
MB
22844 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22845 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22846 esac
10f2d63a 22847
a0b9e27f
MB
22848 case "$ac_given_INSTALL" in
22849 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22850 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22851 esac
247f5006 22852
a0b9e27f
MB
22853 echo creating "$ac_file"
22854 rm -f "$ac_file"
22855 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22856 case "$ac_file" in
22857 *Makefile*) ac_comsub="1i\\
22858# $configure_input" ;;
22859 *) ac_comsub= ;;
22860 esac
247f5006 22861
a0b9e27f
MB
22862 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22863 sed -e "$ac_comsub
22864s%@configure_input@%$configure_input%g
22865s%@srcdir@%$srcdir%g
22866s%@top_srcdir@%$top_srcdir%g
22867s%@INSTALL@%$INSTALL%g
22868" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22869fi; done
22870rm -f conftest.s*
10f2d63a
VZ
22871
22872# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22873# NAME is the cpp macro being defined and VALUE is the value it is being given.
22874#
22875# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22876ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22877ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22878ac_dC='\3'
22879ac_dD='%g'
22880# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22881ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22882ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22883ac_uC=' '
a0b9e27f
MB
22884ac_uD='\4%g'
22885# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22886ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22887ac_eB='$%\1#\2define\3'
22888ac_eC=' '
22889ac_eD='%g'
22890
22891if test "${CONFIG_HEADERS+set}" != set; then
22892EOF
22893cat >> $CONFIG_STATUS <<EOF
22894 CONFIG_HEADERS="setup.h:setup.h.in"
22895EOF
22896cat >> $CONFIG_STATUS <<\EOF
22897fi
22898for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22900 case "$ac_file" in
22901 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22902 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22903 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22904 esac
22905
a0b9e27f
MB
22906 echo creating $ac_file
22907
22908 rm -f conftest.frag conftest.in conftest.out
22909 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22910 cat $ac_file_inputs > conftest.in
22911
22912EOF
22913
22914# Transform confdefs.h into a sed script conftest.vals that substitutes
22915# the proper values into config.h.in to produce config.h. And first:
22916# Protect against being on the right side of a sed subst in config.status.
22917# Protect against being in an unquoted here document in config.status.
22918rm -f conftest.vals
22919cat > conftest.hdr <<\EOF
22920s/[\\&%]/\\&/g
22921s%[\\$`]%\\&%g
22922s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22923s%ac_d%ac_u%gp
22924s%ac_u%ac_e%gp
22925EOF
22926sed -n -f conftest.hdr confdefs.h > conftest.vals
22927rm -f conftest.hdr
10f2d63a
VZ
22928
22929# This sed command replaces #undef with comments. This is necessary, for
22930# example, in the case of _POSIX_SOURCE, which is predefined and required
22931# on some systems where configure will not decide to define it.
a0b9e27f
MB
22932cat >> conftest.vals <<\EOF
22933s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22934EOF
22935
22936# Break up conftest.vals because some shells have a limit on
22937# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22938
22939rm -f conftest.tail
a0b9e27f 22940while :
10f2d63a 22941do
a0b9e27f
MB
22942 ac_lines=`grep -c . conftest.vals`
22943 # grep -c gives empty output for an empty file on some AIX systems.
22944 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22945 # Write a limited-size here document to conftest.frag.
22946 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22947 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22948 echo 'CEOF
a0b9e27f
MB
22949 sed -f conftest.frag conftest.in > conftest.out
22950 rm -f conftest.in
22951 mv conftest.out conftest.in
22952' >> $CONFIG_STATUS
22953 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22954 rm -f conftest.vals
22955 mv conftest.tail conftest.vals
10f2d63a 22956done
a0b9e27f
MB
22957rm -f conftest.vals
22958
22959cat >> $CONFIG_STATUS <<\EOF
22960 rm -f conftest.frag conftest.h
22961 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22962 cat conftest.in >> conftest.h
22963 rm -f conftest.in
22964 if cmp -s $ac_file conftest.h 2>/dev/null; then
22965 echo "$ac_file is unchanged"
22966 rm -f conftest.h
10f2d63a 22967 else
a0b9e27f
MB
22968 # Remove last slash and all that follows it. Not all systems have dirname.
22969 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22971 # The file is in a subdirectory.
22972 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22973 fi
a0b9e27f
MB
22974 rm -f $ac_file
22975 mv conftest.h $ac_file
247f5006 22976 fi
a0b9e27f
MB
22977fi; done
22978
22979EOF
22980cat >> $CONFIG_STATUS <<EOF
22981
22982 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22983 LN_S="${LN_S}"
22984
22985
22986EOF
22987cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22988
652d930d 22989 if test ! -h wx-config; then
991a5759 22990 chmod +x wx-config
3a922bb4
RL
22991 mv wx-config wx${TOOLCHAIN_NAME}-config
22992 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22993 fi
665bbe97 22994
00cf1208
RR
22995 if test ! -d lib; then
22996 mkdir lib
22997 fi
22998 if test ! -d lib/wx; then
22999 mkdir lib/wx
23000 fi
23001 if test ! -d lib/wx/include; then
23002 mkdir lib/wx/include
23003 fi
3a922bb4
RL
23004 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23005 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 23006 fi
3a922bb4
RL
23007 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23008 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
23009 fi
23010 if test -f setup.h; then
3a922bb4 23011 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 23012 fi
a0b9e27f
MB
23013
23014exit 0
23015EOF
10f2d63a 23016chmod +x $CONFIG_STATUS
a0b9e27f
MB
23017rm -fr confdefs* $ac_clean_files
23018test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 23019
2224580a
VZ
23020if test "$no_recursion" != yes; then
23021
23022 # Remove --cache-file and --srcdir arguments so they do not pile up.
23023 ac_sub_configure_args=
23024 ac_prev=
23025 for ac_arg in $ac_configure_args; do
23026 if test -n "$ac_prev"; then
23027 ac_prev=
23028 continue
23029 fi
a0b9e27f 23030 case "$ac_arg" in
2224580a
VZ
23031 -cache-file | --cache-file | --cache-fil | --cache-fi \
23032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23033 ac_prev=cache_file ;;
23034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 23035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
23036 ;;
23037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23038 ac_prev=srcdir ;;
23039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23040 ;;
23041 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23042 esac
23043 done
23044
a0b9e27f 23045 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
23046
23047 # Do not complain, so a configure script can configure whichever
23048 # parts of a large source tree are present.
a0b9e27f
MB
23049 if test ! -d $srcdir/$ac_config_dir; then
23050 continue
23051 fi
2224580a 23052
a0b9e27f 23053 echo configuring in $ac_config_dir
2224580a 23054
a0b9e27f
MB
23055 case "$srcdir" in
23056 .) ;;
23057 *)
23058 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23059 else
23060 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23061 fi
23062 ;;
23063 esac
2224580a 23064
a0b9e27f
MB
23065 ac_popdir=`pwd`
23066 cd $ac_config_dir
247f5006 23067
a0b9e27f
MB
23068 # A "../" for each directory in /$ac_config_dir.
23069 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 23070
a0b9e27f
MB
23071 case "$srcdir" in
23072 .) # No --srcdir option. We are building in place.
23073 ac_sub_srcdir=$srcdir ;;
23074 /*) # Absolute path.
23075 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23076 *) # Relative path.
23077 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23078 esac
2224580a
VZ
23079
23080 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
23081 if test -f $ac_sub_srcdir/configure; then
23082 ac_sub_configure=$ac_sub_srcdir/configure
23083 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
23084 ac_sub_configure=$ac_configure
23085 else
a0b9e27f 23086 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
23087 ac_sub_configure=
23088 fi
23089
23090 # The recursion is here.
23091 if test -n "$ac_sub_configure"; then
a0b9e27f 23092
2224580a 23093 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
23094 case "$cache_file" in
23095 /*) ac_sub_cache_file=$cache_file ;;
2224580a 23096 *) # Relative path.
a0b9e27f 23097 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 23098 esac
a0b9e27f
MB
23099 case "$ac_given_INSTALL" in
23100 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23101 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23102 esac
2224580a 23103
a0b9e27f 23104 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 23105 # The eval makes quoting arguments work.
a0b9e27f
MB
23106 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23107 then :
23108 else
23109 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23110 fi
2224580a
VZ
23111 fi
23112
23113 cd $ac_popdir
23114 done
23115fi
23116
8284b0c5 23117
2b5f62a0
VZ
23118echo
23119echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23120echo ""
23121echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23122
23123echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23124echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23125echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23126
0c98a14e
GD
23127echo " What level of wxWindows compatibility should be enabled?"
23128echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
23129echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23130echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 23131
2b5f62a0
VZ
23132echo " Which libraries should wxWindows use?"
23133echo " jpeg ${wxUSE_LIBJPEG-none}"
23134echo " png ${wxUSE_LIBPNG-none}"
23135echo " regex ${wxUSE_REGEX}"
23136echo " tiff ${wxUSE_LIBTIFF-none}"
23137echo " zlib ${wxUSE_ZLIB}"
23138
23139echo ""
23140