]> git.saurik.com Git - wxWidgets.git/blame - configure
update to make digitalmars compile/link html\test sample
[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
ac0c4cc3
DE
5825 DEFAULT_wxUSE_GAUGE=no
5826 DEFAULT_wxUSE_SCROLLBAR=no
5827 DEFAULT_wxUSE_SLIDER=no
5828 DEFAULT_wxUSE_COMBOBOX=no
5829 DEFAULT_wxUSE_CALCTRL=no
5830 DEFAULT_wxUSE_SPINBTN=no
5831 DEFAULT_wxUSE_SPINCTRL=no
5832 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 5833 DEFAULT_wxUSE_COLOURDLG=no
ac0c4cc3
DE
5834 DEFAULT_wxUSE_DRAGIMAGE=no
5835 DEFAULT_wxUSE_FINDREPLDLG=no
5836 DEFAULT_wxUSE_FONTDLG=no
5837 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5838 DEFAULT_wxUSE_NUMBERDLG=no
5839 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
5840 DEFAULT_wxUSE_SASH=no
5841 DEFAULT_wxUSE_SPLITTER=no
5842 DEFAULT_wxUSE_WIZARDDLG=no
5843 DEFAULT_wxUSE_SPLITTER=no
5844 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
5845fi
5846
8284b0c5 5847
5005acfe
VZ
5848 enablestring=
5849 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
e5a87141 5850echo "configure:5851: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5851 no_cache=0
5852 # Check whether --enable-accel or --disable-accel was given.
5853if test "${enable_accel+set}" = set; then
5854 enableval="$enable_accel"
a0b9e27f 5855
10f2d63a
VZ
5856 if test "$enableval" = yes; then
5857 ac_cv_use_accel='wxUSE_ACCEL=yes'
5858 else
5859 ac_cv_use_accel='wxUSE_ACCEL=no'
5860 fi
a0b9e27f 5861
10f2d63a 5862else
a0b9e27f 5863
10f2d63a
VZ
5864 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5872
5873fi
10f2d63a
VZ
5874
5875
5876 eval "$ac_cv_use_accel"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5882 echo "$ac_t""yes" 1>&6
10f2d63a 5883 else
a0b9e27f 5884 echo "$ac_t""no" 1>&6
10f2d63a 5885 fi
a0b9e27f 5886
10f2d63a 5887
5005acfe
VZ
5888 enablestring=
5889 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
e5a87141 5890echo "configure:5891: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5891 no_cache=0
1e6feb95
VZ
5892 # Check whether --enable-button or --disable-button was given.
5893if test "${enable_button+set}" = set; then
5894 enableval="$enable_button"
a0b9e27f 5895
10f2d63a 5896 if test "$enableval" = yes; then
1e6feb95 5897 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5898 else
1e6feb95 5899 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5900 fi
a0b9e27f 5901
10f2d63a 5902else
a0b9e27f 5903
1e6feb95 5904 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
1e6feb95 5911 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5912
5913fi
10f2d63a
VZ
5914
5915
1e6feb95 5916 eval "$ac_cv_use_button"
10f2d63a 5917 if test "$no_cache" != 1; then
1e6feb95 5918 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5919 fi
5920
1e6feb95 5921 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5922 echo "$ac_t""yes" 1>&6
10f2d63a 5923 else
a0b9e27f 5924 echo "$ac_t""no" 1>&6
10f2d63a 5925 fi
a0b9e27f 5926
10f2d63a 5927
5005acfe
VZ
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
e5a87141 5930echo "configure:5931: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
5931 no_cache=0
5932 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5933if test "${enable_bmpbutton+set}" = set; then
5934 enableval="$enable_bmpbutton"
a0b9e27f 5935
10f2d63a
VZ
5936 if test "$enableval" = yes; then
5937 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5938 else
5939 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5940 fi
a0b9e27f 5941
10f2d63a 5942else
a0b9e27f 5943
10f2d63a
VZ
5944 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5952
5953fi
10f2d63a
VZ
5954
5955
5956 eval "$ac_cv_use_bmpbutton"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5962 echo "$ac_t""yes" 1>&6
10f2d63a 5963 else
a0b9e27f 5964 echo "$ac_t""no" 1>&6
10f2d63a 5965 fi
a0b9e27f 5966
10f2d63a 5967
5005acfe
VZ
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
e5a87141 5970echo "configure:5971: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
5971 no_cache=0
5972 # Check whether --enable-calendar or --disable-calendar was given.
5973if test "${enable_calendar+set}" = set; then
5974 enableval="$enable_calendar"
a0b9e27f 5975
1e6feb95
VZ
5976 if test "$enableval" = yes; then
5977 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5978 else
5979 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5980 fi
a0b9e27f 5981
1e6feb95 5982else
a0b9e27f 5983
1e6feb95
VZ
5984 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
5992
5993fi
1e6feb95
VZ
5994
5995
5996 eval "$ac_cv_use_calendar"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6002 echo "$ac_t""yes" 1>&6
1e6feb95 6003 else
a0b9e27f 6004 echo "$ac_t""no" 1>&6
1e6feb95 6005 fi
a0b9e27f 6006
1e6feb95 6007
5005acfe
VZ
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
e5a87141 6010echo "configure:6011: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6011 no_cache=0
6012 # Check whether --enable-caret or --disable-caret was given.
6013if test "${enable_caret+set}" = set; then
6014 enableval="$enable_caret"
a0b9e27f 6015
1e6feb95
VZ
6016 if test "$enableval" = yes; then
6017 ac_cv_use_caret='wxUSE_CARET=yes'
6018 else
6019 ac_cv_use_caret='wxUSE_CARET=no'
6020 fi
a0b9e27f 6021
1e6feb95 6022else
a0b9e27f 6023
1e6feb95
VZ
6024 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6032
6033fi
1e6feb95
VZ
6034
6035
6036 eval "$ac_cv_use_caret"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6042 echo "$ac_t""yes" 1>&6
1e6feb95 6043 else
a0b9e27f 6044 echo "$ac_t""no" 1>&6
1e6feb95 6045 fi
a0b9e27f 6046
1e6feb95 6047
5005acfe
VZ
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
e5a87141 6050echo "configure:6051: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6051 no_cache=0
6052 # Check whether --enable-checkbox or --disable-checkbox was given.
6053if test "${enable_checkbox+set}" = set; then
6054 enableval="$enable_checkbox"
a0b9e27f 6055
10f2d63a
VZ
6056 if test "$enableval" = yes; then
6057 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6058 else
6059 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6060 fi
a0b9e27f 6061
10f2d63a 6062else
a0b9e27f 6063
10f2d63a
VZ
6064 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6072
6073fi
10f2d63a
VZ
6074
6075
6076 eval "$ac_cv_use_checkbox"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6082 echo "$ac_t""yes" 1>&6
10f2d63a 6083 else
a0b9e27f 6084 echo "$ac_t""no" 1>&6
10f2d63a 6085 fi
a0b9e27f 6086
10f2d63a 6087
5005acfe
VZ
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
e5a87141 6090echo "configure:6091: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6091 no_cache=0
6092 # Check whether --enable-checklst or --disable-checklst was given.
6093if test "${enable_checklst+set}" = set; then
6094 enableval="$enable_checklst"
a0b9e27f 6095
10f2d63a
VZ
6096 if test "$enableval" = yes; then
6097 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6098 else
6099 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6100 fi
a0b9e27f 6101
10f2d63a 6102else
a0b9e27f 6103
10f2d63a
VZ
6104 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6112
6113fi
10f2d63a
VZ
6114
6115
6116 eval "$ac_cv_use_checklst"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6122 echo "$ac_t""yes" 1>&6
10f2d63a 6123 else
a0b9e27f 6124 echo "$ac_t""no" 1>&6
10f2d63a 6125 fi
a0b9e27f 6126
10f2d63a 6127
5005acfe
VZ
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
e5a87141 6130echo "configure:6131: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6131 no_cache=0
6132 # Check whether --enable-choice or --disable-choice was given.
6133if test "${enable_choice+set}" = set; then
6134 enableval="$enable_choice"
a0b9e27f 6135
10f2d63a
VZ
6136 if test "$enableval" = yes; then
6137 ac_cv_use_choice='wxUSE_CHOICE=yes'
6138 else
6139 ac_cv_use_choice='wxUSE_CHOICE=no'
6140 fi
a0b9e27f 6141
10f2d63a 6142else
a0b9e27f 6143
10f2d63a
VZ
6144 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6152
6153fi
10f2d63a
VZ
6154
6155
6156 eval "$ac_cv_use_choice"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6162 echo "$ac_t""yes" 1>&6
10f2d63a 6163 else
a0b9e27f 6164 echo "$ac_t""no" 1>&6
10f2d63a 6165 fi
a0b9e27f 6166
10f2d63a 6167
5005acfe
VZ
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
e5a87141 6170echo "configure:6171: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6171 no_cache=0
6172 # Check whether --enable-combobox or --disable-combobox was given.
6173if test "${enable_combobox+set}" = set; then
6174 enableval="$enable_combobox"
a0b9e27f 6175
10f2d63a
VZ
6176 if test "$enableval" = yes; then
6177 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6178 else
6179 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6180 fi
a0b9e27f 6181
10f2d63a 6182else
a0b9e27f 6183
10f2d63a
VZ
6184 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6192
6193fi
10f2d63a
VZ
6194
6195
6196 eval "$ac_cv_use_combobox"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6202 echo "$ac_t""yes" 1>&6
10f2d63a 6203 else
a0b9e27f 6204 echo "$ac_t""no" 1>&6
10f2d63a 6205 fi
a0b9e27f 6206
10f2d63a 6207
da494b40
MB
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
e5a87141 6210echo "configure:6211: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6211 no_cache=0
6212 # Check whether --enable-display or --disable-display was given.
6213if test "${enable_display+set}" = set; then
6214 enableval="$enable_display"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_display='wxUSE_DISPLAY=yes'
6218 else
6219 ac_cv_use_display='wxUSE_DISPLAY=no'
6220 fi
6221
6222else
6223
6224 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6232
6233fi
6234
6235
6236 eval "$ac_cv_use_display"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_DISPLAY" = yes; then
6242 echo "$ac_t""yes" 1>&6
6243 else
6244 echo "$ac_t""no" 1>&6
6245 fi
6246
6247
5005acfe
VZ
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
e5a87141 6250echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6251 no_cache=0
6252 # Check whether --enable-gauge or --disable-gauge was given.
6253if test "${enable_gauge+set}" = set; then
6254 enableval="$enable_gauge"
a0b9e27f 6255
10f2d63a
VZ
6256 if test "$enableval" = yes; then
6257 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6258 else
6259 ac_cv_use_gauge='wxUSE_GAUGE=no'
6260 fi
a0b9e27f 6261
10f2d63a 6262else
a0b9e27f 6263
10f2d63a
VZ
6264 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6272
6273fi
10f2d63a
VZ
6274
6275
6276 eval "$ac_cv_use_gauge"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6282 echo "$ac_t""yes" 1>&6
10f2d63a 6283 else
a0b9e27f 6284 echo "$ac_t""no" 1>&6
10f2d63a 6285 fi
a0b9e27f 6286
10f2d63a 6287
5005acfe
VZ
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
e5a87141 6290echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6291 no_cache=0
6292 # Check whether --enable-grid or --disable-grid was given.
6293if test "${enable_grid+set}" = set; then
6294 enableval="$enable_grid"
a0b9e27f 6295
10f2d63a
VZ
6296 if test "$enableval" = yes; then
6297 ac_cv_use_grid='wxUSE_GRID=yes'
6298 else
6299 ac_cv_use_grid='wxUSE_GRID=no'
6300 fi
a0b9e27f 6301
10f2d63a 6302else
a0b9e27f 6303
10f2d63a
VZ
6304 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6312
6313fi
10f2d63a
VZ
6314
6315
6316 eval "$ac_cv_use_grid"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6322 echo "$ac_t""yes" 1>&6
10f2d63a 6323 else
a0b9e27f 6324 echo "$ac_t""no" 1>&6
10f2d63a 6325 fi
a0b9e27f 6326
10f2d63a 6327
5005acfe
VZ
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
e5a87141 6330echo "configure:6331: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6331 no_cache=0
6332 # Check whether --enable-imaglist or --disable-imaglist was given.
6333if test "${enable_imaglist+set}" = set; then
6334 enableval="$enable_imaglist"
a0b9e27f 6335
10f2d63a
VZ
6336 if test "$enableval" = yes; then
6337 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6338 else
6339 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6340 fi
a0b9e27f 6341
10f2d63a 6342else
a0b9e27f 6343
10f2d63a
VZ
6344 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6352
6353fi
10f2d63a
VZ
6354
6355
6356 eval "$ac_cv_use_imaglist"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6362 echo "$ac_t""yes" 1>&6
10f2d63a 6363 else
a0b9e27f 6364 echo "$ac_t""no" 1>&6
10f2d63a 6365 fi
a0b9e27f 6366
10f2d63a 6367
5005acfe
VZ
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
e5a87141 6370echo "configure:6371: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6371 no_cache=0
6372 # Check whether --enable-listbox or --disable-listbox was given.
6373if test "${enable_listbox+set}" = set; then
6374 enableval="$enable_listbox"
a0b9e27f 6375
10f2d63a
VZ
6376 if test "$enableval" = yes; then
6377 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6378 else
6379 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6380 fi
a0b9e27f 6381
10f2d63a 6382else
a0b9e27f 6383
10f2d63a
VZ
6384 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6392
6393fi
10f2d63a
VZ
6394
6395
6396 eval "$ac_cv_use_listbox"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6402 echo "$ac_t""yes" 1>&6
10f2d63a 6403 else
a0b9e27f 6404 echo "$ac_t""no" 1>&6
10f2d63a 6405 fi
a0b9e27f 6406
10f2d63a 6407
5005acfe
VZ
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
e5a87141 6410echo "configure:6411: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6411 no_cache=0
6412 # Check whether --enable-listctrl or --disable-listctrl was given.
6413if test "${enable_listctrl+set}" = set; then
6414 enableval="$enable_listctrl"
a0b9e27f 6415
10f2d63a
VZ
6416 if test "$enableval" = yes; then
6417 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6418 else
6419 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6420 fi
a0b9e27f 6421
10f2d63a 6422else
a0b9e27f 6423
10f2d63a
VZ
6424 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6432
6433fi
10f2d63a
VZ
6434
6435
6436 eval "$ac_cv_use_listctrl"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6442 echo "$ac_t""yes" 1>&6
10f2d63a 6443 else
a0b9e27f 6444 echo "$ac_t""no" 1>&6
10f2d63a 6445 fi
a0b9e27f 6446
10f2d63a 6447
5005acfe
VZ
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
e5a87141 6450echo "configure:6451: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6451 no_cache=0
6452 # Check whether --enable-notebook or --disable-notebook was given.
6453if test "${enable_notebook+set}" = set; then
6454 enableval="$enable_notebook"
a0b9e27f 6455
10f2d63a
VZ
6456 if test "$enableval" = yes; then
6457 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6458 else
6459 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6460 fi
a0b9e27f 6461
10f2d63a 6462else
a0b9e27f 6463
10f2d63a
VZ
6464 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6472
6473fi
10f2d63a
VZ
6474
6475
6476 eval "$ac_cv_use_notebook"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6482 echo "$ac_t""yes" 1>&6
10f2d63a 6483 else
a0b9e27f 6484 echo "$ac_t""no" 1>&6
10f2d63a 6485 fi
a0b9e27f 6486
10f2d63a 6487
5005acfe
VZ
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
e5a87141 6490echo "configure:6491: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6491 no_cache=0
6492 # Check whether --enable-radiobox or --disable-radiobox was given.
6493if test "${enable_radiobox+set}" = set; then
6494 enableval="$enable_radiobox"
a0b9e27f 6495
10f2d63a
VZ
6496 if test "$enableval" = yes; then
6497 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6498 else
6499 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6500 fi
a0b9e27f 6501
10f2d63a 6502else
a0b9e27f 6503
10f2d63a
VZ
6504 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6512
6513fi
10f2d63a
VZ
6514
6515
6516 eval "$ac_cv_use_radiobox"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6522 echo "$ac_t""yes" 1>&6
10f2d63a 6523 else
a0b9e27f 6524 echo "$ac_t""no" 1>&6
10f2d63a 6525 fi
a0b9e27f 6526
10f2d63a 6527
5005acfe
VZ
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
e5a87141 6530echo "configure:6531: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6531 no_cache=0
6532 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6533if test "${enable_radiobtn+set}" = set; then
6534 enableval="$enable_radiobtn"
a0b9e27f 6535
10f2d63a
VZ
6536 if test "$enableval" = yes; then
6537 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6538 else
6539 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6540 fi
a0b9e27f 6541
10f2d63a 6542else
a0b9e27f 6543
10f2d63a
VZ
6544 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6552
6553fi
10f2d63a
VZ
6554
6555
6556 eval "$ac_cv_use_radiobtn"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6562 echo "$ac_t""yes" 1>&6
10f2d63a 6563 else
a0b9e27f 6564 echo "$ac_t""no" 1>&6
10f2d63a 6565 fi
a0b9e27f 6566
10f2d63a 6567
5005acfe
VZ
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
e5a87141 6570echo "configure:6571: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6571 no_cache=0
6572 # Check whether --enable-sash or --disable-sash was given.
6573if test "${enable_sash+set}" = set; then
6574 enableval="$enable_sash"
a0b9e27f 6575
10f2d63a
VZ
6576 if test "$enableval" = yes; then
6577 ac_cv_use_sash='wxUSE_SASH=yes'
6578 else
6579 ac_cv_use_sash='wxUSE_SASH=no'
6580 fi
a0b9e27f 6581
10f2d63a 6582else
a0b9e27f 6583
10f2d63a
VZ
6584 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6592
6593fi
10f2d63a
VZ
6594
6595
6596 eval "$ac_cv_use_sash"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6602 echo "$ac_t""yes" 1>&6
10f2d63a 6603 else
a0b9e27f 6604 echo "$ac_t""no" 1>&6
10f2d63a 6605 fi
a0b9e27f 6606
10f2d63a 6607
5005acfe
VZ
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
e5a87141 6610echo "configure:6611: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6611 no_cache=0
6612 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6613if test "${enable_scrollbar+set}" = set; then
6614 enableval="$enable_scrollbar"
a0b9e27f 6615
10f2d63a
VZ
6616 if test "$enableval" = yes; then
6617 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6618 else
6619 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6620 fi
a0b9e27f 6621
10f2d63a 6622else
a0b9e27f 6623
10f2d63a
VZ
6624 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6632
6633fi
10f2d63a
VZ
6634
6635
6636 eval "$ac_cv_use_scrollbar"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6642 echo "$ac_t""yes" 1>&6
10f2d63a 6643 else
a0b9e27f 6644 echo "$ac_t""no" 1>&6
10f2d63a 6645 fi
a0b9e27f 6646
10f2d63a 6647
5005acfe
VZ
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
e5a87141 6650echo "configure:6651: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6651 no_cache=0
6652 # Check whether --enable-slider or --disable-slider was given.
6653if test "${enable_slider+set}" = set; then
6654 enableval="$enable_slider"
a0b9e27f 6655
10f2d63a
VZ
6656 if test "$enableval" = yes; then
6657 ac_cv_use_slider='wxUSE_SLIDER=yes'
6658 else
6659 ac_cv_use_slider='wxUSE_SLIDER=no'
6660 fi
a0b9e27f 6661
10f2d63a 6662else
a0b9e27f 6663
10f2d63a
VZ
6664 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6672
6673fi
10f2d63a
VZ
6674
6675
6676 eval "$ac_cv_use_slider"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6682 echo "$ac_t""yes" 1>&6
10f2d63a 6683 else
a0b9e27f 6684 echo "$ac_t""no" 1>&6
10f2d63a 6685 fi
a0b9e27f 6686
10f2d63a 6687
5005acfe
VZ
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
e5a87141 6690echo "configure:6691: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6693if test "${enable_spinbtn+set}" = set; then
6694 enableval="$enable_spinbtn"
a0b9e27f 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6698 else
6699 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6700 fi
a0b9e27f 6701
10f2d63a 6702else
a0b9e27f 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6712
6713fi
10f2d63a
VZ
6714
6715
6716 eval "$ac_cv_use_spinbtn"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6722 echo "$ac_t""yes" 1>&6
10f2d63a 6723 else
a0b9e27f 6724 echo "$ac_t""no" 1>&6
10f2d63a 6725 fi
a0b9e27f 6726
10f2d63a 6727
5005acfe
VZ
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
e5a87141 6730echo "configure:6731: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6731 no_cache=0
6732 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6733if test "${enable_spinctrl+set}" = set; then
6734 enableval="$enable_spinctrl"
a0b9e27f 6735
56cfaa52
RR
6736 if test "$enableval" = yes; then
6737 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6738 else
6739 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6740 fi
a0b9e27f 6741
56cfaa52 6742else
a0b9e27f 6743
56cfaa52
RR
6744 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6752
6753fi
56cfaa52
RR
6754
6755
6756 eval "$ac_cv_use_spinctrl"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6762 echo "$ac_t""yes" 1>&6
56cfaa52 6763 else
a0b9e27f 6764 echo "$ac_t""no" 1>&6
56cfaa52 6765 fi
a0b9e27f 6766
56cfaa52 6767
5005acfe
VZ
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
e5a87141 6770echo "configure:6771: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6771 no_cache=0
6772 # Check whether --enable-splitter or --disable-splitter was given.
6773if test "${enable_splitter+set}" = set; then
6774 enableval="$enable_splitter"
a0b9e27f 6775
10f2d63a
VZ
6776 if test "$enableval" = yes; then
6777 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6778 else
6779 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6780 fi
a0b9e27f 6781
10f2d63a 6782else
a0b9e27f 6783
10f2d63a
VZ
6784 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6792
6793fi
10f2d63a
VZ
6794
6795
6796 eval "$ac_cv_use_splitter"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6802 echo "$ac_t""yes" 1>&6
10f2d63a 6803 else
a0b9e27f 6804 echo "$ac_t""no" 1>&6
10f2d63a 6805 fi
a0b9e27f 6806
10f2d63a 6807
5005acfe
VZ
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
e5a87141 6810echo "configure:6811: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6811 no_cache=0
6812 # Check whether --enable-statbmp or --disable-statbmp was given.
6813if test "${enable_statbmp+set}" = set; then
6814 enableval="$enable_statbmp"
a0b9e27f 6815
10f2d63a
VZ
6816 if test "$enableval" = yes; then
6817 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6818 else
6819 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6820 fi
a0b9e27f 6821
10f2d63a 6822else
a0b9e27f 6823
10f2d63a
VZ
6824 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6832
6833fi
10f2d63a
VZ
6834
6835
6836 eval "$ac_cv_use_statbmp"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6842 echo "$ac_t""yes" 1>&6
10f2d63a 6843 else
a0b9e27f 6844 echo "$ac_t""no" 1>&6
10f2d63a 6845 fi
a0b9e27f 6846
10f2d63a 6847
5005acfe
VZ
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
e5a87141 6850echo "configure:6851: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6851 no_cache=0
6852 # Check whether --enable-statbox or --disable-statbox was given.
6853if test "${enable_statbox+set}" = set; then
6854 enableval="$enable_statbox"
a0b9e27f 6855
10f2d63a
VZ
6856 if test "$enableval" = yes; then
6857 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6858 else
6859 ac_cv_use_statbox='wxUSE_STATBOX=no'
6860 fi
a0b9e27f 6861
10f2d63a 6862else
a0b9e27f 6863
10f2d63a
VZ
6864 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6872
6873fi
10f2d63a
VZ
6874
6875
6876 eval "$ac_cv_use_statbox"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6882 echo "$ac_t""yes" 1>&6
10f2d63a 6883 else
a0b9e27f 6884 echo "$ac_t""no" 1>&6
10f2d63a 6885 fi
a0b9e27f 6886
10f2d63a 6887
5005acfe
VZ
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
e5a87141 6890echo "configure:6891: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-statline or --disable-statline was given.
6893if test "${enable_statline+set}" = set; then
6894 enableval="$enable_statline"
a0b9e27f 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_statline='wxUSE_STATLINE=yes'
6898 else
6899 ac_cv_use_statline='wxUSE_STATLINE=no'
6900 fi
a0b9e27f 6901
10f2d63a 6902else
a0b9e27f 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6912
6913fi
10f2d63a
VZ
6914
6915
6916 eval "$ac_cv_use_statline"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6922 echo "$ac_t""yes" 1>&6
10f2d63a 6923 else
a0b9e27f 6924 echo "$ac_t""no" 1>&6
10f2d63a 6925 fi
a0b9e27f 6926
10f2d63a 6927
5005acfe
VZ
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
e5a87141 6930echo "configure:6931: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
6931 no_cache=0
6932 # Check whether --enable-stattext or --disable-stattext was given.
6933if test "${enable_stattext+set}" = set; then
6934 enableval="$enable_stattext"
a0b9e27f 6935
1e6feb95
VZ
6936 if test "$enableval" = yes; then
6937 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6938 else
6939 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6940 fi
a0b9e27f 6941
1e6feb95 6942else
a0b9e27f 6943
1e6feb95
VZ
6944 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6952
6953fi
1e6feb95
VZ
6954
6955
6956 eval "$ac_cv_use_stattext"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6962 echo "$ac_t""yes" 1>&6
1e6feb95 6963 else
a0b9e27f 6964 echo "$ac_t""no" 1>&6
1e6feb95 6965 fi
a0b9e27f 6966
1e6feb95 6967
5005acfe
VZ
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
e5a87141 6970echo "configure:6971: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
6971 no_cache=0
6972 # Check whether --enable-statusbar or --disable-statusbar was given.
6973if test "${enable_statusbar+set}" = set; then
6974 enableval="$enable_statusbar"
a0b9e27f 6975
10f2d63a
VZ
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6978 else
6979 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6980 fi
a0b9e27f 6981
10f2d63a 6982else
a0b9e27f 6983
10f2d63a
VZ
6984 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
6992
6993fi
10f2d63a
VZ
6994
6995
6996 eval "$ac_cv_use_statusbar"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7002 echo "$ac_t""yes" 1>&6
10f2d63a 7003 else
a0b9e27f 7004 echo "$ac_t""no" 1>&6
10f2d63a 7005 fi
a0b9e27f 7006
10f2d63a 7007
5005acfe
VZ
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
e5a87141 7010echo "configure:7011: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7011 no_cache=0
7012 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7013if test "${enable_tabdialog+set}" = set; then
7014 enableval="$enable_tabdialog"
a0b9e27f 7015
10f2d63a
VZ
7016 if test "$enableval" = yes; then
7017 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7018 else
7019 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7020 fi
a0b9e27f 7021
10f2d63a 7022else
a0b9e27f 7023
10f2d63a
VZ
7024 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7032
7033fi
10f2d63a
VZ
7034
7035
7036 eval "$ac_cv_use_tabdialog"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7042 echo "$ac_t""yes" 1>&6
10f2d63a 7043 else
a0b9e27f 7044 echo "$ac_t""no" 1>&6
10f2d63a 7045 fi
a0b9e27f 7046
10f2d63a 7047
5005acfe
VZ
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
e5a87141 7050echo "configure:7051: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7051 no_cache=0
7052 # Check whether --enable-textctrl or --disable-textctrl was given.
7053if test "${enable_textctrl+set}" = set; then
7054 enableval="$enable_textctrl"
a0b9e27f 7055
1e6feb95
VZ
7056 if test "$enableval" = yes; then
7057 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7058 else
7059 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7060 fi
a0b9e27f 7061
1e6feb95 7062else
a0b9e27f 7063
1e6feb95
VZ
7064 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7072
7073fi
1e6feb95
VZ
7074
7075
7076 eval "$ac_cv_use_textctrl"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7082 echo "$ac_t""yes" 1>&6
1e6feb95 7083 else
a0b9e27f 7084 echo "$ac_t""no" 1>&6
1e6feb95 7085 fi
a0b9e27f 7086
1e6feb95 7087
5005acfe
VZ
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
e5a87141 7090echo "configure:7091: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7091 no_cache=0
7092 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7093if test "${enable_togglebtn+set}" = set; then
7094 enableval="$enable_togglebtn"
a0b9e27f 7095
1db8dc4a
VZ
7096 if test "$enableval" = yes; then
7097 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7098 else
7099 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7100 fi
a0b9e27f 7101
1db8dc4a 7102else
a0b9e27f 7103
1db8dc4a
VZ
7104 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7112
7113fi
1db8dc4a
VZ
7114
7115
7116 eval "$ac_cv_use_togglebtn"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7122 echo "$ac_t""yes" 1>&6
1db8dc4a 7123 else
a0b9e27f 7124 echo "$ac_t""no" 1>&6
1db8dc4a 7125 fi
a0b9e27f 7126
1db8dc4a 7127
5005acfe
VZ
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
e5a87141 7130echo "configure:7131: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7131 no_cache=0
7132 # Check whether --enable-toolbar or --disable-toolbar was given.
7133if test "${enable_toolbar+set}" = set; then
7134 enableval="$enable_toolbar"
a0b9e27f 7135
10f2d63a
VZ
7136 if test "$enableval" = yes; then
7137 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7138 else
7139 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7140 fi
a0b9e27f 7141
10f2d63a 7142else
a0b9e27f 7143
10f2d63a
VZ
7144 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7152
7153fi
10f2d63a
VZ
7154
7155
7156 eval "$ac_cv_use_toolbar"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7162 echo "$ac_t""yes" 1>&6
10f2d63a 7163 else
a0b9e27f 7164 echo "$ac_t""no" 1>&6
10f2d63a 7165 fi
a0b9e27f 7166
10f2d63a 7167
5005acfe
VZ
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
e5a87141 7170echo "configure:7171: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7171 no_cache=0
7172 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7173if test "${enable_tbarnative+set}" = set; then
7174 enableval="$enable_tbarnative"
a0b9e27f 7175
360d6699
VZ
7176 if test "$enableval" = yes; then
7177 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7178 else
7179 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7180 fi
a0b9e27f 7181
360d6699 7182else
a0b9e27f 7183
360d6699
VZ
7184 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7192
7193fi
360d6699
VZ
7194
7195
7196 eval "$ac_cv_use_tbarnative"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7202 echo "$ac_t""yes" 1>&6
360d6699 7203 else
a0b9e27f 7204 echo "$ac_t""no" 1>&6
360d6699 7205 fi
a0b9e27f 7206
360d6699 7207
5005acfe
VZ
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
e5a87141 7210echo "configure:7211: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7211 no_cache=0
7212 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7213if test "${enable_tbarsmpl+set}" = set; then
7214 enableval="$enable_tbarsmpl"
a0b9e27f 7215
360d6699
VZ
7216 if test "$enableval" = yes; then
7217 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7218 else
7219 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7220 fi
a0b9e27f 7221
360d6699 7222else
a0b9e27f 7223
360d6699
VZ
7224 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7232
7233fi
360d6699
VZ
7234
7235
7236 eval "$ac_cv_use_tbarsmpl"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7242 echo "$ac_t""yes" 1>&6
360d6699 7243 else
a0b9e27f 7244 echo "$ac_t""no" 1>&6
360d6699 7245 fi
a0b9e27f 7246
360d6699 7247
5005acfe
VZ
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
e5a87141 7250echo "configure:7251: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7251 no_cache=0
7252 # Check whether --enable-treectrl or --disable-treectrl was given.
7253if test "${enable_treectrl+set}" = set; then
7254 enableval="$enable_treectrl"
a0b9e27f 7255
10f2d63a
VZ
7256 if test "$enableval" = yes; then
7257 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7258 else
7259 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7260 fi
a0b9e27f 7261
10f2d63a 7262else
a0b9e27f 7263
10f2d63a
VZ
7264 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7272
7273fi
10f2d63a
VZ
7274
7275
1e6feb95
VZ
7276 eval "$ac_cv_use_treectrl"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7282 echo "$ac_t""yes" 1>&6
1e6feb95 7283 else
a0b9e27f 7284 echo "$ac_t""no" 1>&6
1e6feb95 7285 fi
a0b9e27f 7286
1e6feb95 7287
5005acfe
VZ
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
e5a87141 7290echo "configure:7291: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7291 no_cache=0
7292 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7293if test "${enable_tipwindow+set}" = set; then
7294 enableval="$enable_tipwindow"
a0b9e27f 7295
9926e4a4
VZ
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7298 else
7299 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7300 fi
a0b9e27f 7301
9926e4a4 7302else
a0b9e27f 7303
9926e4a4
VZ
7304 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7312
7313fi
9926e4a4
VZ
7314
7315
7316 eval "$ac_cv_use_tipwindow"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7322 echo "$ac_t""yes" 1>&6
9926e4a4 7323 else
a0b9e27f 7324 echo "$ac_t""no" 1>&6
9926e4a4 7325 fi
a0b9e27f 7326
9926e4a4 7327
5005acfe
VZ
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
e5a87141 7330echo "configure:7331: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7331 no_cache=0
7332 # Check whether --enable-popupwin or --disable-popupwin was given.
7333if test "${enable_popupwin+set}" = set; then
7334 enableval="$enable_popupwin"
a0b9e27f 7335
9f41d601
RR
7336 if test "$enableval" = yes; then
7337 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7338 else
7339 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7340 fi
a0b9e27f 7341
9f41d601 7342else
a0b9e27f 7343
9f41d601
RR
7344 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7352
7353fi
9f41d601
RR
7354
7355
7356 eval "$ac_cv_use_popupwin"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7362 echo "$ac_t""yes" 1>&6
9f41d601 7363 else
a0b9e27f 7364 echo "$ac_t""no" 1>&6
9f41d601 7365 fi
a0b9e27f 7366
52127426 7367
8284b0c5
MB
7368
7369
5005acfe
VZ
7370 enablestring=
7371 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
e5a87141 7372echo "configure:7373: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7373 no_cache=0
7374 # Check whether --enable-commondlg or --disable-commondlg was given.
7375if test "${enable_commondlg+set}" = set; then
7376 enableval="$enable_commondlg"
a0b9e27f 7377
1e6feb95
VZ
7378 if test "$enableval" = yes; then
7379 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7380 else
7381 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7382 fi
a0b9e27f 7383
1e6feb95 7384else
a0b9e27f 7385
1e6feb95
VZ
7386 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7387 if test "x$LINE" != x ; then
7388 eval "DEFAULT_$LINE"
7389 else
7390 no_cache=1
7391 fi
7392
7393 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7394
7395fi
1e6feb95
VZ
7396
7397
7398 eval "$ac_cv_use_commondlg"
7399 if test "$no_cache" != 1; then
7400 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7401 fi
7402
7403 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7404 echo "$ac_t""yes" 1>&6
1e6feb95 7405 else
a0b9e27f 7406 echo "$ac_t""no" 1>&6
1e6feb95 7407 fi
a0b9e27f 7408
1e6feb95 7409
5005acfe
VZ
7410 enablestring=
7411 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
e5a87141 7412echo "configure:7413: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7413 no_cache=0
7414 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7415if test "${enable_choicedlg+set}" = set; then
7416 enableval="$enable_choicedlg"
a0b9e27f 7417
1e6feb95
VZ
7418 if test "$enableval" = yes; then
7419 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7420 else
7421 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7422 fi
a0b9e27f 7423
1e6feb95 7424else
a0b9e27f 7425
1e6feb95
VZ
7426 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7434
7435fi
1e6feb95
VZ
7436
7437
7438 eval "$ac_cv_use_choicedlg"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7444 echo "$ac_t""yes" 1>&6
1e6feb95 7445 else
a0b9e27f 7446 echo "$ac_t""no" 1>&6
1e6feb95 7447 fi
a0b9e27f 7448
1e6feb95 7449
5005acfe
VZ
7450 enablestring=
7451 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
e5a87141 7452echo "configure:7453: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7453 no_cache=0
7454 # Check whether --enable-coldlg or --disable-coldlg was given.
7455if test "${enable_coldlg+set}" = set; then
7456 enableval="$enable_coldlg"
a0b9e27f 7457
1e6feb95
VZ
7458 if test "$enableval" = yes; then
7459 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7460 else
7461 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7462 fi
a0b9e27f 7463
1e6feb95 7464else
a0b9e27f 7465
1e6feb95
VZ
7466 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7474
7475fi
1e6feb95
VZ
7476
7477
7478 eval "$ac_cv_use_coldlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7484 echo "$ac_t""yes" 1>&6
1e6feb95 7485 else
a0b9e27f 7486 echo "$ac_t""no" 1>&6
1e6feb95 7487 fi
a0b9e27f 7488
1e6feb95 7489
5005acfe
VZ
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
e5a87141 7492echo "configure:7493: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7493 no_cache=0
7494 # Check whether --enable-filedlg or --disable-filedlg was given.
7495if test "${enable_filedlg+set}" = set; then
7496 enableval="$enable_filedlg"
a0b9e27f 7497
1e6feb95
VZ
7498 if test "$enableval" = yes; then
7499 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7500 else
7501 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7502 fi
a0b9e27f 7503
1e6feb95 7504else
a0b9e27f 7505
1e6feb95
VZ
7506 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7514
7515fi
1e6feb95
VZ
7516
7517
7518 eval "$ac_cv_use_filedlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7524 echo "$ac_t""yes" 1>&6
1e6feb95 7525 else
a0b9e27f 7526 echo "$ac_t""no" 1>&6
1e6feb95 7527 fi
a0b9e27f 7528
1e6feb95 7529
5005acfe
VZ
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
e5a87141 7532echo "configure:7533: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7533 no_cache=0
69d27ff7
MB
7534 # Check whether --enable-finddlg or --disable-finddlg was given.
7535if test "${enable_finddlg+set}" = set; then
7536 enableval="$enable_finddlg"
a0b9e27f 7537
8db37e06 7538 if test "$enableval" = yes; then
69d27ff7 7539 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7540 else
69d27ff7 7541 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7542 fi
a0b9e27f 7543
8db37e06 7544else
a0b9e27f 7545
8db37e06
VZ
7546 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
69d27ff7 7553 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7554
7555fi
8db37e06
VZ
7556
7557
69d27ff7 7558 eval "$ac_cv_use_finddlg"
8db37e06 7559 if test "$no_cache" != 1; then
69d27ff7 7560 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7561 fi
7562
7563 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7564 echo "$ac_t""yes" 1>&6
8db37e06 7565 else
a0b9e27f 7566 echo "$ac_t""no" 1>&6
8db37e06 7567 fi
a0b9e27f 7568
8db37e06 7569
5005acfe
VZ
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
e5a87141 7572echo "configure:7573: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7573 no_cache=0
7574 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7575if test "${enable_fontdlg+set}" = set; then
7576 enableval="$enable_fontdlg"
a0b9e27f 7577
1e6feb95
VZ
7578 if test "$enableval" = yes; then
7579 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7580 else
7581 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7582 fi
a0b9e27f 7583
1e6feb95 7584else
a0b9e27f 7585
1e6feb95
VZ
7586 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7594
7595fi
1e6feb95
VZ
7596
7597
7598 eval "$ac_cv_use_fontdlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7604 echo "$ac_t""yes" 1>&6
1e6feb95 7605 else
a0b9e27f 7606 echo "$ac_t""no" 1>&6
1e6feb95 7607 fi
a0b9e27f 7608
1e6feb95 7609
5005acfe
VZ
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
e5a87141 7612echo "configure:7613: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7613 no_cache=0
7614 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7615if test "${enable_dirdlg+set}" = set; then
7616 enableval="$enable_dirdlg"
a0b9e27f 7617
1e6feb95
VZ
7618 if test "$enableval" = yes; then
7619 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7620 else
7621 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7622 fi
a0b9e27f 7623
1e6feb95 7624else
a0b9e27f 7625
1e6feb95
VZ
7626 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7634
7635fi
1e6feb95
VZ
7636
7637
7638 eval "$ac_cv_use_dirdlg"
10f2d63a 7639 if test "$no_cache" != 1; then
1e6feb95 7640 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7641 fi
7642
1e6feb95 7643 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7644 echo "$ac_t""yes" 1>&6
10f2d63a 7645 else
a0b9e27f 7646 echo "$ac_t""no" 1>&6
10f2d63a 7647 fi
a0b9e27f 7648
698dcdb6 7649
5005acfe
VZ
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
e5a87141 7652echo "configure:7653: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7653 no_cache=0
1e6feb95
VZ
7654 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7655if test "${enable_msgdlg+set}" = set; then
7656 enableval="$enable_msgdlg"
a0b9e27f 7657
10f2d63a 7658 if test "$enableval" = yes; then
1e6feb95 7659 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7660 else
1e6feb95 7661 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7662 fi
a0b9e27f 7663
10f2d63a 7664else
a0b9e27f 7665
1e6feb95 7666 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
1e6feb95 7673 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7674
7675fi
10f2d63a
VZ
7676
7677
1e6feb95 7678 eval "$ac_cv_use_msgdlg"
10f2d63a 7679 if test "$no_cache" != 1; then
1e6feb95 7680 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7681 fi
7682
1e6feb95 7683 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7684 echo "$ac_t""yes" 1>&6
10f2d63a 7685 else
a0b9e27f 7686 echo "$ac_t""no" 1>&6
10f2d63a 7687 fi
a0b9e27f 7688
10f2d63a 7689
5005acfe
VZ
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
e5a87141 7692echo "configure:7693: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7693 no_cache=0
1e6feb95
VZ
7694 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7695if test "${enable_numberdlg+set}" = set; then
7696 enableval="$enable_numberdlg"
a0b9e27f 7697
10f2d63a 7698 if test "$enableval" = yes; then
1e6feb95 7699 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7700 else
1e6feb95 7701 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7702 fi
a0b9e27f 7703
10f2d63a 7704else
a0b9e27f 7705
1e6feb95 7706 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
1e6feb95 7713 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7714
7715fi
10f2d63a
VZ
7716
7717
1e6feb95 7718 eval "$ac_cv_use_numberdlg"
10f2d63a 7719 if test "$no_cache" != 1; then
1e6feb95 7720 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7721 fi
7722
1e6feb95 7723 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7724 echo "$ac_t""yes" 1>&6
10f2d63a 7725 else
a0b9e27f 7726 echo "$ac_t""no" 1>&6
10f2d63a 7727 fi
a0b9e27f 7728
10f2d63a 7729
5005acfe
VZ
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
e5a87141 7732echo "configure:7733: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7733 no_cache=0
7734 # Check whether --enable-splash or --disable-splash was given.
7735if test "${enable_splash+set}" = set; then
7736 enableval="$enable_splash"
a0b9e27f 7737
cbca9943
VZ
7738 if test "$enableval" = yes; then
7739 ac_cv_use_splash='wxUSE_SPLASH=yes'
7740 else
7741 ac_cv_use_splash='wxUSE_SPLASH=no'
7742 fi
a0b9e27f 7743
cbca9943 7744else
a0b9e27f 7745
cbca9943
VZ
7746 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7754
7755fi
cbca9943
VZ
7756
7757
7758 eval "$ac_cv_use_splash"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7764 echo "$ac_t""yes" 1>&6
cbca9943 7765 else
a0b9e27f 7766 echo "$ac_t""no" 1>&6
cbca9943 7767 fi
a0b9e27f 7768
cbca9943 7769
5005acfe
VZ
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
e5a87141 7772echo "configure:7773: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7773 no_cache=0
7774 # Check whether --enable-textdlg or --disable-textdlg was given.
7775if test "${enable_textdlg+set}" = set; then
7776 enableval="$enable_textdlg"
a0b9e27f 7777
10f2d63a
VZ
7778 if test "$enableval" = yes; then
7779 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7780 else
7781 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7782 fi
a0b9e27f 7783
10f2d63a 7784else
a0b9e27f 7785
10f2d63a
VZ
7786 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7794
7795fi
10f2d63a
VZ
7796
7797
7798 eval "$ac_cv_use_textdlg"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7804 echo "$ac_t""yes" 1>&6
10f2d63a 7805 else
a0b9e27f 7806 echo "$ac_t""no" 1>&6
10f2d63a 7807 fi
a0b9e27f 7808
10f2d63a 7809
5005acfe
VZ
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
e5a87141 7812echo "configure:7813: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7813 no_cache=0
7814 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7815if test "${enable_tipdlg+set}" = set; then
7816 enableval="$enable_tipdlg"
a0b9e27f 7817
10f2d63a
VZ
7818 if test "$enableval" = yes; then
7819 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7820 else
7821 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7822 fi
a0b9e27f 7823
10f2d63a 7824else
a0b9e27f 7825
10f2d63a
VZ
7826 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7834
7835fi
10f2d63a
VZ
7836
7837
7838 eval "$ac_cv_use_tipdlg"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7844 echo "$ac_t""yes" 1>&6
10f2d63a 7845 else
a0b9e27f 7846 echo "$ac_t""no" 1>&6
10f2d63a 7847 fi
a0b9e27f 7848
10f2d63a 7849
5005acfe
VZ
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
e5a87141 7852echo "configure:7853: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7853 no_cache=0
7854 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7855if test "${enable_progressdlg+set}" = set; then
7856 enableval="$enable_progressdlg"
a0b9e27f 7857
10f2d63a
VZ
7858 if test "$enableval" = yes; then
7859 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7860 else
7861 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7862 fi
a0b9e27f 7863
10f2d63a 7864else
a0b9e27f 7865
10f2d63a
VZ
7866 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7874
7875fi
10f2d63a
VZ
7876
7877
7878 eval "$ac_cv_use_progressdlg"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7884 echo "$ac_t""yes" 1>&6
10f2d63a 7885 else
a0b9e27f 7886 echo "$ac_t""no" 1>&6
10f2d63a 7887 fi
a0b9e27f 7888
10f2d63a 7889
5005acfe
VZ
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
e5a87141 7892echo "configure:7893: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7893 no_cache=0
7894 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7895if test "${enable_wizarddlg+set}" = set; then
7896 enableval="$enable_wizarddlg"
a0b9e27f 7897
b1f5d087
VZ
7898 if test "$enableval" = yes; then
7899 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7900 else
7901 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7902 fi
a0b9e27f 7903
b1f5d087 7904else
a0b9e27f 7905
b1f5d087
VZ
7906 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7914
7915fi
b1f5d087
VZ
7916
7917
7918 eval "$ac_cv_use_wizarddlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7924 echo "$ac_t""yes" 1>&6
b1f5d087 7925 else
a0b9e27f 7926 echo "$ac_t""no" 1>&6
b1f5d087 7927 fi
a0b9e27f 7928
8284b0c5
MB
7929
7930
52127426 7931
5005acfe
VZ
7932 enablestring=
7933 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
e5a87141 7934echo "configure:7935: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
7935 no_cache=0
7936 # Check whether --enable-menus or --disable-menus was given.
7937if test "${enable_menus+set}" = set; then
7938 enableval="$enable_menus"
a0b9e27f 7939
1e6feb95
VZ
7940 if test "$enableval" = yes; then
7941 ac_cv_use_menus='wxUSE_MENUS=yes'
7942 else
7943 ac_cv_use_menus='wxUSE_MENUS=no'
7944 fi
a0b9e27f 7945
1e6feb95 7946else
a0b9e27f 7947
1e6feb95
VZ
7948 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7949 if test "x$LINE" != x ; then
7950 eval "DEFAULT_$LINE"
7951 else
7952 no_cache=1
7953 fi
7954
7955 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7956
7957fi
1e6feb95
VZ
7958
7959
7960 eval "$ac_cv_use_menus"
7961 if test "$no_cache" != 1; then
7962 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7963 fi
7964
7965 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7966 echo "$ac_t""yes" 1>&6
1e6feb95 7967 else
a0b9e27f 7968 echo "$ac_t""no" 1>&6
1e6feb95 7969 fi
a0b9e27f 7970
1e6feb95 7971
5005acfe
VZ
7972 enablestring=
7973 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
e5a87141 7974echo "configure:7975: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
7975 no_cache=0
7976 # Check whether --enable-miniframe or --disable-miniframe was given.
7977if test "${enable_miniframe+set}" = set; then
7978 enableval="$enable_miniframe"
a0b9e27f 7979
10f2d63a
VZ
7980 if test "$enableval" = yes; then
7981 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7982 else
7983 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7984 fi
a0b9e27f 7985
10f2d63a 7986else
a0b9e27f 7987
10f2d63a
VZ
7988 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7989 if test "x$LINE" != x ; then
7990 eval "DEFAULT_$LINE"
7991 else
7992 no_cache=1
7993 fi
7994
7995 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
7996
7997fi
10f2d63a
VZ
7998
7999
8000 eval "$ac_cv_use_miniframe"
8001 if test "$no_cache" != 1; then
8002 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8003 fi
8004
8005 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8006 echo "$ac_t""yes" 1>&6
10f2d63a 8007 else
a0b9e27f 8008 echo "$ac_t""no" 1>&6
10f2d63a 8009 fi
a0b9e27f 8010
10f2d63a 8011
5005acfe
VZ
8012 enablestring=
8013 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
e5a87141 8014echo "configure:8015: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8015 no_cache=0
8016 # Check whether --enable-tooltips or --disable-tooltips was given.
8017if test "${enable_tooltips+set}" = set; then
8018 enableval="$enable_tooltips"
a0b9e27f 8019
10f2d63a
VZ
8020 if test "$enableval" = yes; then
8021 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8022 else
8023 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8024 fi
a0b9e27f 8025
10f2d63a 8026else
a0b9e27f 8027
10f2d63a
VZ
8028 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8036
8037fi
10f2d63a
VZ
8038
8039
8040 eval "$ac_cv_use_tooltips"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8046 echo "$ac_t""yes" 1>&6
10f2d63a 8047 else
a0b9e27f 8048 echo "$ac_t""no" 1>&6
10f2d63a 8049 fi
a0b9e27f 8050
10f2d63a 8051
5005acfe
VZ
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
e5a87141 8054echo "configure:8055: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8055 no_cache=0
8056 # Check whether --enable-splines or --disable-splines was given.
8057if test "${enable_splines+set}" = set; then
8058 enableval="$enable_splines"
a0b9e27f 8059
10f2d63a
VZ
8060 if test "$enableval" = yes; then
8061 ac_cv_use_splines='wxUSE_SPLINES=yes'
8062 else
8063 ac_cv_use_splines='wxUSE_SPLINES=no'
8064 fi
a0b9e27f 8065
10f2d63a 8066else
a0b9e27f 8067
10f2d63a
VZ
8068 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8076
8077fi
10f2d63a
VZ
8078
8079
8080 eval "$ac_cv_use_splines"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8086 echo "$ac_t""yes" 1>&6
10f2d63a 8087 else
a0b9e27f 8088 echo "$ac_t""no" 1>&6
10f2d63a 8089 fi
a0b9e27f 8090
10f2d63a 8091
5005acfe
VZ
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
e5a87141 8094echo "configure:8095: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8095 no_cache=0
8096 # Check whether --enable-validators or --disable-validators was given.
8097if test "${enable_validators+set}" = set; then
8098 enableval="$enable_validators"
a0b9e27f 8099
10f2d63a
VZ
8100 if test "$enableval" = yes; then
8101 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8102 else
8103 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8104 fi
a0b9e27f 8105
10f2d63a 8106else
a0b9e27f 8107
10f2d63a
VZ
8108 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8116
8117fi
10f2d63a
VZ
8118
8119
8120 eval "$ac_cv_use_validators"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8126 echo "$ac_t""yes" 1>&6
10f2d63a 8127 else
a0b9e27f 8128 echo "$ac_t""no" 1>&6
10f2d63a 8129 fi
a0b9e27f 8130
10f2d63a 8131
5005acfe
VZ
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
e5a87141 8134echo "configure:8135: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8135 no_cache=0
8136 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8137if test "${enable_busyinfo+set}" = set; then
8138 enableval="$enable_busyinfo"
a0b9e27f 8139
10f2d63a
VZ
8140 if test "$enableval" = yes; then
8141 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8142 else
8143 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8144 fi
a0b9e27f 8145
10f2d63a 8146else
a0b9e27f 8147
10f2d63a
VZ
8148 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8156
8157fi
10f2d63a
VZ
8158
8159
8160 eval "$ac_cv_use_busyinfo"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8166 echo "$ac_t""yes" 1>&6
10f2d63a 8167 else
a0b9e27f 8168 echo "$ac_t""no" 1>&6
10f2d63a 8169 fi
a0b9e27f 8170
10f2d63a 8171
5005acfe
VZ
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
e5a87141 8174echo "configure:8175: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8175 no_cache=0
8176 # Check whether --enable-joystick or --disable-joystick was given.
8177if test "${enable_joystick+set}" = set; then
8178 enableval="$enable_joystick"
a0b9e27f 8179
f6bcfd97
BP
8180 if test "$enableval" = yes; then
8181 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8182 else
8183 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8184 fi
a0b9e27f 8185
f6bcfd97 8186else
a0b9e27f 8187
f6bcfd97
BP
8188 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8196
8197fi
f6bcfd97
BP
8198
8199
8200 eval "$ac_cv_use_joystick"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8206 echo "$ac_t""yes" 1>&6
f6bcfd97 8207 else
a0b9e27f 8208 echo "$ac_t""no" 1>&6
f6bcfd97 8209 fi
a0b9e27f 8210
698dcdb6 8211
5005acfe
VZ
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
e5a87141 8214echo "configure:8215: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8215 no_cache=0
8216 # Check whether --enable-metafile or --disable-metafile was given.
8217if test "${enable_metafile+set}" = set; then
8218 enableval="$enable_metafile"
a0b9e27f 8219
1e6feb95
VZ
8220 if test "$enableval" = yes; then
8221 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8222 else
8223 ac_cv_use_metafile='wxUSE_METAFILE=no'
8224 fi
a0b9e27f 8225
1e6feb95 8226else
a0b9e27f 8227
1e6feb95
VZ
8228 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8236
8237fi
1e6feb95
VZ
8238
8239
8240 eval "$ac_cv_use_metafile"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8246 echo "$ac_t""yes" 1>&6
1e6feb95 8247 else
a0b9e27f 8248 echo "$ac_t""no" 1>&6
1e6feb95 8249 fi
a0b9e27f 8250
1e6feb95 8251
5005acfe
VZ
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
e5a87141 8254echo "configure:8255: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8255 no_cache=0
8256 # Check whether --enable-dragimage or --disable-dragimage was given.
8257if test "${enable_dragimage+set}" = set; then
8258 enableval="$enable_dragimage"
a0b9e27f 8259
24fd6d87
VZ
8260 if test "$enableval" = yes; then
8261 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8262 else
8263 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8264 fi
a0b9e27f 8265
24fd6d87 8266else
a0b9e27f 8267
24fd6d87
VZ
8268 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8276
8277fi
24fd6d87
VZ
8278
8279
8280 eval "$ac_cv_use_dragimage"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8286 echo "$ac_t""yes" 1>&6
24fd6d87 8287 else
a0b9e27f 8288 echo "$ac_t""no" 1>&6
24fd6d87 8289 fi
a0b9e27f 8290
52127426 8291
8284b0c5
MB
8292
8293
5005acfe
VZ
8294 enablestring=
8295 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
e5a87141 8296echo "configure:8297: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8297 no_cache=0
8298 # Check whether --enable-palette or --disable-palette was given.
8299if test "${enable_palette+set}" = set; then
8300 enableval="$enable_palette"
a0b9e27f 8301
edae8572
VZ
8302 if test "$enableval" = yes; then
8303 ac_cv_use_palette='wxUSE_PALETTE=yes'
8304 else
8305 ac_cv_use_palette='wxUSE_PALETTE=no'
8306 fi
a0b9e27f 8307
edae8572 8308else
a0b9e27f 8309
edae8572
VZ
8310 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8311 if test "x$LINE" != x ; then
8312 eval "DEFAULT_$LINE"
8313 else
8314 no_cache=1
8315 fi
8316
8317 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8318
8319fi
edae8572
VZ
8320
8321
8322 eval "$ac_cv_use_palette"
8323 if test "$no_cache" != 1; then
8324 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8325 fi
8326
8327 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8328 echo "$ac_t""yes" 1>&6
edae8572 8329 else
a0b9e27f 8330 echo "$ac_t""no" 1>&6
edae8572 8331 fi
a0b9e27f 8332
edae8572 8333
5005acfe
VZ
8334 enablestring=
8335 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
e5a87141 8336echo "configure:8337: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8337 no_cache=0
8338 # Check whether --enable-image or --disable-image was given.
8339if test "${enable_image+set}" = set; then
8340 enableval="$enable_image"
a0b9e27f 8341
0046ff7c
VS
8342 if test "$enableval" = yes; then
8343 ac_cv_use_image='wxUSE_IMAGE=yes'
8344 else
8345 ac_cv_use_image='wxUSE_IMAGE=no'
8346 fi
a0b9e27f 8347
0046ff7c 8348else
a0b9e27f 8349
0046ff7c
VS
8350 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8358
8359fi
0046ff7c
VS
8360
8361
8362 eval "$ac_cv_use_image"
8363 if test "$no_cache" != 1; then
8364 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8365 fi
8366
8367 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8368 echo "$ac_t""yes" 1>&6
0046ff7c 8369 else
a0b9e27f 8370 echo "$ac_t""no" 1>&6
0046ff7c 8371 fi
a0b9e27f 8372
0046ff7c 8373
5005acfe
VZ
8374 enablestring=
8375 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
e5a87141 8376echo "configure:8377: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8377 no_cache=0
8378 # Check whether --enable-gif or --disable-gif was given.
8379if test "${enable_gif+set}" = set; then
8380 enableval="$enable_gif"
a0b9e27f 8381
10f2d63a
VZ
8382 if test "$enableval" = yes; then
8383 ac_cv_use_gif='wxUSE_GIF=yes'
8384 else
8385 ac_cv_use_gif='wxUSE_GIF=no'
8386 fi
a0b9e27f 8387
10f2d63a 8388else
a0b9e27f 8389
10f2d63a
VZ
8390 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8391 if test "x$LINE" != x ; then
8392 eval "DEFAULT_$LINE"
8393 else
8394 no_cache=1
8395 fi
8396
8397 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8398
8399fi
10f2d63a
VZ
8400
8401
8402 eval "$ac_cv_use_gif"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8408 echo "$ac_t""yes" 1>&6
10f2d63a 8409 else
a0b9e27f 8410 echo "$ac_t""no" 1>&6
10f2d63a 8411 fi
a0b9e27f 8412
10f2d63a 8413
5005acfe
VZ
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
e5a87141 8416echo "configure:8417: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8417 no_cache=0
8418 # Check whether --enable-pcx or --disable-pcx was given.
8419if test "${enable_pcx+set}" = set; then
8420 enableval="$enable_pcx"
a0b9e27f 8421
10f2d63a
VZ
8422 if test "$enableval" = yes; then
8423 ac_cv_use_pcx='wxUSE_PCX=yes'
8424 else
8425 ac_cv_use_pcx='wxUSE_PCX=no'
8426 fi
a0b9e27f 8427
10f2d63a 8428else
a0b9e27f 8429
10f2d63a
VZ
8430 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8438
8439fi
10f2d63a
VZ
8440
8441
8442 eval "$ac_cv_use_pcx"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8448 echo "$ac_t""yes" 1>&6
10f2d63a 8449 else
a0b9e27f 8450 echo "$ac_t""no" 1>&6
10f2d63a 8451 fi
a0b9e27f 8452
10f2d63a 8453
5005acfe
VZ
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
e5a87141 8456echo "configure:8457: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8457 no_cache=0
8458 # Check whether --enable-iff or --disable-iff was given.
8459if test "${enable_iff+set}" = set; then
8460 enableval="$enable_iff"
a0b9e27f 8461
4b6b4dfc
RR
8462 if test "$enableval" = yes; then
8463 ac_cv_use_iff='wxUSE_IFF=yes'
8464 else
8465 ac_cv_use_iff='wxUSE_IFF=no'
8466 fi
a0b9e27f 8467
4b6b4dfc 8468else
a0b9e27f 8469
4b6b4dfc
RR
8470 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8478
8479fi
4b6b4dfc
RR
8480
8481
8482 eval "$ac_cv_use_iff"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8488 echo "$ac_t""yes" 1>&6
4b6b4dfc 8489 else
a0b9e27f 8490 echo "$ac_t""no" 1>&6
4b6b4dfc 8491 fi
a0b9e27f 8492
4b6b4dfc 8493
5005acfe
VZ
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
e5a87141 8496echo "configure:8497: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8497 no_cache=0
8498 # Check whether --enable-pnm or --disable-pnm was given.
8499if test "${enable_pnm+set}" = set; then
8500 enableval="$enable_pnm"
a0b9e27f 8501
10f2d63a
VZ
8502 if test "$enableval" = yes; then
8503 ac_cv_use_pnm='wxUSE_PNM=yes'
8504 else
8505 ac_cv_use_pnm='wxUSE_PNM=no'
8506 fi
a0b9e27f 8507
10f2d63a 8508else
a0b9e27f 8509
10f2d63a
VZ
8510 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8518
8519fi
10f2d63a
VZ
8520
8521
8522 eval "$ac_cv_use_pnm"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8528 echo "$ac_t""yes" 1>&6
10f2d63a 8529 else
a0b9e27f 8530 echo "$ac_t""no" 1>&6
10f2d63a 8531 fi
a0b9e27f 8532
10f2d63a 8533
5005acfe
VZ
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
e5a87141 8536echo "configure:8537: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8537 no_cache=0
69d27ff7
MB
8538 # Check whether --enable-xpm or --disable-xpm was given.
8539if test "${enable_xpm+set}" = set; then
8540 enableval="$enable_xpm"
a0b9e27f 8541
0046ff7c 8542 if test "$enableval" = yes; then
69d27ff7 8543 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8544 else
69d27ff7 8545 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8546 fi
a0b9e27f 8547
0046ff7c 8548else
a0b9e27f 8549
0046ff7c
VS
8550 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
69d27ff7 8557 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8558
8559fi
0046ff7c
VS
8560
8561
69d27ff7 8562 eval "$ac_cv_use_xpm"
0046ff7c 8563 if test "$no_cache" != 1; then
69d27ff7 8564 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8565 fi
8566
8567 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8568 echo "$ac_t""yes" 1>&6
0046ff7c 8569 else
a0b9e27f 8570 echo "$ac_t""no" 1>&6
0046ff7c 8571 fi
a0b9e27f 8572
0046ff7c 8573
5005acfe
VZ
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
e5a87141 8576echo "configure:8577: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8577 no_cache=0
c7206e64
VS
8578 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8579if test "${enable_ico_cur+set}" = set; then
8580 enableval="$enable_ico_cur"
a0b9e27f 8581
658974ae 8582 if test "$enableval" = yes; then
c7206e64 8583 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8584 else
c7206e64 8585 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8586 fi
a0b9e27f 8587
658974ae 8588else
a0b9e27f 8589
658974ae
VS
8590 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
c7206e64 8597 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8598
8599fi
658974ae
VS
8600
8601
c7206e64 8602 eval "$ac_cv_use_ico_cur"
658974ae 8603 if test "$no_cache" != 1; then
c7206e64 8604 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8605 fi
8606
8607 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8608 echo "$ac_t""yes" 1>&6
658974ae 8609 else
a0b9e27f 8610 echo "$ac_t""no" 1>&6
658974ae 8611 fi
a0b9e27f 8612
658974ae 8613
b12915c1
VZ
8614fi
8615
d558c907
VS
8616case "${host}" in
8617 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8618 PATH_IFS=';'
8619 LEX_STEM="lexyy"
d558c907
VS
8620 ;;
8621 *)
8622 PATH_IFS=':'
8623 LEX_STEM="lex.yy"
8624 ;;
8625esac
8626
8284b0c5
MB
8627
8628
10f2d63a
VZ
8629 echo "saving argument cache $wx_arg_cache_file"
8630 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8631
52127426 8632
8284b0c5 8633
a0b9e27f 8634echo $ac_n "checking for toolkit""... $ac_c" 1>&6
e5a87141 8635echo "configure:8636: checking for toolkit" >&5
89e6bf6d
VZ
8636
8637# In Wine, we need to default to MSW, not GTK or MOTIF
8638if test "$wxUSE_WINE" = "yes"; then
8639 DEFAULT_DEFAULT_wxUSE_GTK=0
8640 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8641 DEFAULT_DEFAULT_wxUSE_MSW=1
8642fi
10f2d63a
VZ
8643
8644if test "$wxUSE_GUI" = "yes"; then
8645
3a922bb4 8646 if test "$USE_BEOS" = 1; then
a0b9e27f 8647 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8648 fi
b12915c1 8649
3a922bb4
RL
8650 if test "$TOOLKIT_GIVEN" = 1; then
8651 for toolkit in `echo $ALL_TOOLKITS`; do
8652 var=wxUSE_$toolkit
8653 eval "value=\$${var}"
8654 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8655 done
10f2d63a 8656 else
3a922bb4
RL
8657 for toolkit in `echo $ALL_TOOLKITS`; do
8658 if test "$has_toolkit_in_cache" != 1; then
8659 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8660 else
8661 var=DEFAULT_wxUSE_$toolkit
8662 fi
8663 eval "wxUSE_$toolkit=\$${var}"
8664 done
10f2d63a 8665 fi
10f2d63a 8666
ac0c4cc3
DE
8667 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8668 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8669 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8670
d558c907 8671 case "${host}" in
6fa882bd 8672 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8673 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8674 esac
10f2d63a 8675
3a922bb4
RL
8676 case "$NUM_TOOLKITS" in
8677 1)
8678 ;;
8679 0)
a0b9e27f 8680 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8681 ;;
8682 *)
a0b9e27f 8683 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8684 esac
10f2d63a 8685
3a922bb4
RL
8686 for toolkit in `echo $ALL_TOOLKITS`; do
8687 var=wxUSE_$toolkit
8688 eval "value=\$${var}"
8689 if test "x$value" != x; then
8690 cache_var=CACHE_$toolkit
8691 eval "cache=\$${cache_var}"
8692 if test "$cache" = 1; then
8693 echo "$var=$value" >> ${wx_arg_cache_file}
8694 fi
8695 if test "$value" = 1; then
8696 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8697 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8698 fi
8699 fi
8700 done
10f2d63a 8701else
a0b9e27f 8702 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8703fi
8704
43d99b6d
VS
8705wants_win32=0
8706doesnt_want_win32=0
17234b26
MB
8707case "${host}" in
8708 *-*-cygwin*)
8709 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8710 wants_win32=1
8711 else
8712 doesnt_want_win32=1
17234b26
MB
8713 fi
8714 ;;
8715 *-*-mingw*)
43d99b6d 8716 wants_win32=1
17234b26
MB
8717 ;;
8718esac
8719
89e6bf6d
VZ
8720if test "$wxUSE_WINE" = "yes"; then
8721 wants_win32=1
8722 CC=winegcc
8723 CXX=wineg++
8724 RESCOMP=wrc
8725fi
8726
43d99b6d 8727if test "$wants_win32" = 1 ; then
17234b26
MB
8728 USE_UNIX=0
8729 USE_WIN32=1
a0b9e27f 8730 cat >> confdefs.h <<\EOF
17234b26 8731#define __WIN32__ 1
a0b9e27f 8732EOF
17234b26 8733
a0b9e27f 8734 cat >> confdefs.h <<\EOF
17234b26 8735#define __WIN95__ 1
a0b9e27f 8736EOF
17234b26 8737
a0b9e27f 8738 cat >> confdefs.h <<\EOF
17234b26 8739#define __WINDOWS__ 1
a0b9e27f 8740EOF
17234b26 8741
a0b9e27f 8742 cat >> confdefs.h <<\EOF
17234b26 8743#define __GNUWIN32__ 1
a0b9e27f 8744EOF
17234b26 8745
a0b9e27f 8746 cat >> confdefs.h <<\EOF
17234b26 8747#define STRICT 1
a0b9e27f 8748EOF
17234b26 8749
a0b9e27f 8750 cat >> confdefs.h <<\EOF
17234b26 8751#define WINVER 0x0400
a0b9e27f 8752EOF
17234b26 8753
43d99b6d
VS
8754fi
8755if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8756 USE_UNIX=1
8757 USE_WIN32=0
8758fi
8759
8760if test "$USE_UNIX" = 1 ; then
8761 wxUSE_UNIX=yes
a0b9e27f 8762 cat >> confdefs.h <<\EOF
17234b26 8763#define __UNIX__ 1
a0b9e27f 8764EOF
17234b26
MB
8765
8766fi
8767
8284b0c5 8768
a0b9e27f 8769cat > confcache <<\EOF
10f2d63a
VZ
8770# This file is a shell script that caches the results of configure
8771# tests run on this system so they can be shared between configure
a0b9e27f
MB
8772# scripts and configure runs. It is not useful on other systems.
8773# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8774#
a0b9e27f
MB
8775# By default, configure uses ./config.cache as the cache file,
8776# creating it if it does not exist already. You can give configure
8777# the --cache-file=FILE option to use a different cache file; that is
8778# what configure does when it calls configure scripts in
8779# subdirectories, so they share the cache.
8780# Giving --cache-file=/dev/null disables caching, for debugging configure.
8781# config.status only pays attention to the cache file if you give it the
8782# --recheck option to rerun configure.
10f2d63a 8783#
a0b9e27f 8784EOF
10f2d63a
VZ
8785# The following way of writing the cache mishandles newlines in values,
8786# but we know of no workaround that is simple, portable, and efficient.
8787# So, don't put newlines in cache variables' values.
8788# Ultrix sh set writes to stderr and can't be redirected directly,
8789# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8790(set) 2>&1 |
8791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8792 *ac_space=\ *)
8793 # `set' does not quote correctly, so add quotes (double-quote substitution
8794 # turns \\\\ into \\, and sed turns \\ into \).
8795 sed -n \
8796 -e "s/'/'\\\\''/g" \
8797 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8798 ;;
8799 *)
8800 # `set' quotes correctly as required by POSIX, so do not add quotes.
8801 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8802 ;;
8803 esac >> confcache
8804if cmp -s $cache_file confcache; then
8805 :
8806else
10f2d63a 8807 if test -w $cache_file; then
a0b9e27f
MB
8808 echo "updating cache $cache_file"
8809 cat confcache > $cache_file
10f2d63a
VZ
8810 else
8811 echo "not updating unwritable cache $cache_file"
8812 fi
8813fi
8814rm -f confcache
8815
a0b9e27f 8816
e59890c3 8817if test "$build" != "$host" ; then
9d353d4a 8818 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8819 CC=$host_alias-gcc
8820 CXX=$host_alias-c++
8821 AR=$host_alias-ar
8822 RANLIB=$host_alias-ranlib
8823 DLLTOOL=$host_alias-dlltool
8824 RESCOMP=$host_alias-windres
8825 LD=$host_alias-ld
8826 NM=$host_alias-nm
8827 STRIP=$host_alias-strip
8828 else
a0b9e27f 8829 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8830 fi
10f2d63a
VZ
8831fi
8832
ec603395 8833CFLAGS=${CFLAGS:=}
a0b9e27f 8834# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8835set dummy gcc; ac_word=$2
a0b9e27f 8836echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 8837echo "configure:8838: checking for $ac_word" >&5
a0b9e27f
MB
8838if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8840else
8841 if test -n "$CC"; then
8842 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8843else
a0b9e27f
MB
8844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8845 ac_dummy="$PATH"
8846 for ac_dir in $ac_dummy; do
8847 test -z "$ac_dir" && ac_dir=.
8848 if test -f $ac_dir/$ac_word; then
8849 ac_cv_prog_CC="gcc"
8850 break
8851 fi
8852 done
8853 IFS="$ac_save_ifs"
10f2d63a 8854fi
6232543b 8855fi
a0b9e27f 8856CC="$ac_cv_prog_CC"
6232543b 8857if test -n "$CC"; then
a0b9e27f 8858 echo "$ac_t""$CC" 1>&6
247f5006 8859else
a0b9e27f 8860 echo "$ac_t""no" 1>&6
247f5006
VZ
8861fi
8862
5c6fa7d2
RR
8863if test -z "$CC"; then
8864 # Extract the first word of "cc", so it can be a program name with args.
8865set dummy cc; ac_word=$2
a0b9e27f 8866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 8867echo "configure:8868: checking for $ac_word" >&5
a0b9e27f
MB
8868if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8870else
8871 if test -n "$CC"; then
8872 ac_cv_prog_CC="$CC" # Let the user override the test.
8873else
a0b9e27f 8874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8875 ac_prog_rejected=no
a0b9e27f
MB
8876 ac_dummy="$PATH"
8877 for ac_dir in $ac_dummy; do
8878 test -z "$ac_dir" && ac_dir=.
8879 if test -f $ac_dir/$ac_word; then
8880 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8881 ac_prog_rejected=yes
8882 continue
8883 fi
8884 ac_cv_prog_CC="cc"
8885 break
8886 fi
8887 done
8888 IFS="$ac_save_ifs"
328a083c
RR
8889if test $ac_prog_rejected = yes; then
8890 # We found a bogon in the path, so make sure we never use it.
8891 set dummy $ac_cv_prog_CC
8892 shift
a0b9e27f 8893 if test $# -gt 0; then
328a083c 8894 # We chose a different compiler from the bogus one.
1e487827
VS
8895 # However, it has the same basename, so the bogon will be chosen
8896 # first if we set CC to just the basename; use the full file name.
8897 shift
a0b9e27f 8898 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8899 shift
8900 ac_cv_prog_CC="$@"
703e0a69 8901 fi
1e487827
VS
8902fi
8903fi
8904fi
a0b9e27f 8905CC="$ac_cv_prog_CC"
1e487827 8906if test -n "$CC"; then
a0b9e27f 8907 echo "$ac_t""$CC" 1>&6
703e0a69 8908else
a0b9e27f 8909 echo "$ac_t""no" 1>&6
703e0a69 8910fi
1e487827 8911
a0b9e27f
MB
8912 if test -z "$CC"; then
8913 case "`uname -s`" in
8914 *win32* | *WIN32*)
8915 # Extract the first word of "cl", so it can be a program name with args.
8916set dummy cl; ac_word=$2
8917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 8918echo "configure:8919: checking for $ac_word" >&5
a0b9e27f
MB
8919if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8921else
8922 if test -n "$CC"; then
8923 ac_cv_prog_CC="$CC" # Let the user override the test.
8924else
a0b9e27f
MB
8925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8926 ac_dummy="$PATH"
8927 for ac_dir in $ac_dummy; do
8928 test -z "$ac_dir" && ac_dir=.
8929 if test -f $ac_dir/$ac_word; then
8930 ac_cv_prog_CC="cl"
8931 break
8932 fi
8933 done
8934 IFS="$ac_save_ifs"
f09359cf
VS
8935fi
8936fi
a0b9e27f 8937CC="$ac_cv_prog_CC"
f09359cf 8938if test -n "$CC"; then
a0b9e27f 8939 echo "$ac_t""$CC" 1>&6
f09359cf 8940else
a0b9e27f 8941 echo "$ac_t""no" 1>&6
247f5006 8942fi
a0b9e27f
MB
8943 ;;
8944 esac
8284b0c5 8945 fi
a0b9e27f 8946 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 8947fi
1e487827 8948
a0b9e27f 8949echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
e5a87141 8950echo "configure:8951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 8951
a0b9e27f
MB
8952ac_ext=c
8953# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8954ac_cpp='$CPP $CPPFLAGS'
8955ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8956ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8957cross_compiling=$ac_cv_prog_cc_cross
f09359cf 8958
a0b9e27f 8959cat > conftest.$ac_ext << EOF
247f5006 8960
e5a87141 8961#line 8962 "configure"
a0b9e27f 8962#include "confdefs.h"
247f5006 8963
a0b9e27f
MB
8964main(){return(0);}
8965EOF
e5a87141 8966if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
8967 ac_cv_prog_cc_works=yes
8968 # If we can't run a trivial program, we are probably using a cross compiler.
8969 if (./conftest; exit) 2>/dev/null; then
8970 ac_cv_prog_cc_cross=no
698dcdb6 8971 else
a0b9e27f 8972 ac_cv_prog_cc_cross=yes
698dcdb6 8973 fi
7b4a847f 8974else
a0b9e27f
MB
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8977 ac_cv_prog_cc_works=no
52127426 8978fi
a0b9e27f
MB
8979rm -fr conftest*
8980ac_ext=c
8981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8982ac_cpp='$CPP $CPPFLAGS'
8983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8985cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8986
a0b9e27f
MB
8987echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8988if test $ac_cv_prog_cc_works = no; then
8989 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8990fi
8991echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
e5a87141 8992echo "configure:8993: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
8993echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8994cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8995
a0b9e27f 8996echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
e5a87141 8997echo "configure:8998: checking whether we are using GNU C" >&5
a0b9e27f
MB
8998if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9000else
a0b9e27f
MB
9001 cat > conftest.c <<EOF
9002#ifdef __GNUC__
9003 yes;
8284b0c5 9004#endif
a0b9e27f 9005EOF
e5a87141 9006if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9007 ac_cv_prog_gcc=yes
5c6fa7d2 9008else
a0b9e27f 9009 ac_cv_prog_gcc=no
8284b0c5
MB
9010fi
9011fi
1e487827 9012
a0b9e27f 9013echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9014
a0b9e27f
MB
9015if test $ac_cv_prog_gcc = yes; then
9016 GCC=yes
9017else
9018 GCC=
9019fi
247f5006 9020
a0b9e27f
MB
9021ac_test_CFLAGS="${CFLAGS+set}"
9022ac_save_CFLAGS="$CFLAGS"
9023CFLAGS=
9024echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
e5a87141 9025echo "configure:9026: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9026if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9028else
9029 echo 'void f(){}' > conftest.c
9030if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9031 ac_cv_prog_cc_g=yes
9032else
a0b9e27f 9033 ac_cv_prog_cc_g=no
10f2d63a 9034fi
a0b9e27f
MB
9035rm -f conftest*
9036
10f2d63a 9037fi
a0b9e27f
MB
9038
9039echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9040if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9041 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9042elif test $ac_cv_prog_cc_g = yes; then
9043 if test "$GCC" = yes; then
10f2d63a
VZ
9044 CFLAGS="-g -O2"
9045 else
f09359cf 9046 CFLAGS="-g"
10f2d63a 9047 fi
5c0a20c3 9048else
f09359cf
VS
9049 if test "$GCC" = yes; then
9050 CFLAGS="-O2"
9051 else
9052 CFLAGS=
9053 fi
10f2d63a
VZ
9054fi
9055
9056
a0b9e27f 9057echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
e5a87141 9058echo "configure:9059: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9059# On Suns, sometimes $CPP names a directory.
9060if test -n "$CPP" && test -d "$CPP"; then
9061 CPP=
9062fi
9063if test -z "$CPP"; then
a0b9e27f
MB
9064if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9065 echo $ac_n "(cached) $ac_c" 1>&6
9066else
9067 # This must be in double quotes, not single quotes, because CPP may get
9068 # substituted into the Makefile and "${CC-cc}" will confuse make.
9069 CPP="${CC-cc} -E"
10f2d63a 9070 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9071 # not just through cpp.
9072 cat > conftest.$ac_ext <<EOF
e5a87141 9073#line 9074 "configure"
10f2d63a
VZ
9074#include "confdefs.h"
9075#include <assert.h>
a0b9e27f
MB
9076Syntax Error
9077EOF
9078ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9079{ (eval echo configure:9080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9080ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9081if test -z "$ac_err"; then
10f2d63a
VZ
9082 :
9083else
a0b9e27f
MB
9084 echo "$ac_err" >&5
9085 echo "configure: failed program was:" >&5
10f2d63a 9086 cat conftest.$ac_ext >&5
a0b9e27f
MB
9087 rm -rf conftest*
9088 CPP="${CC-cc} -E -traditional-cpp"
9089 cat > conftest.$ac_ext <<EOF
e5a87141 9090#line 9091 "configure"
f09359cf 9091#include "confdefs.h"
a0b9e27f
MB
9092#include <assert.h>
9093Syntax Error
9094EOF
9095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9096{ (eval echo configure:9097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9098if test -z "$ac_err"; then
9099 :
247f5006 9100else
a0b9e27f
MB
9101 echo "$ac_err" >&5
9102 echo "configure: failed program was:" >&5
f09359cf 9103 cat conftest.$ac_ext >&5
a0b9e27f
MB
9104 rm -rf conftest*
9105 CPP="${CC-cc} -nologo -E"
9106 cat > conftest.$ac_ext <<EOF
e5a87141 9107#line 9108 "configure"
10f2d63a
VZ
9108#include "confdefs.h"
9109#include <assert.h>
a0b9e27f
MB
9110Syntax Error
9111EOF
9112ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9113{ (eval echo configure:9114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9114ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9115if test -z "$ac_err"; then
10f2d63a
VZ
9116 :
9117else
a0b9e27f
MB
9118 echo "$ac_err" >&5
9119 echo "configure: failed program was:" >&5
10f2d63a 9120 cat conftest.$ac_ext >&5
a0b9e27f
MB
9121 rm -rf conftest*
9122 CPP=/lib/cpp
579d8138 9123fi
a0b9e27f 9124rm -f conftest*
52127426 9125fi
a0b9e27f 9126rm -f conftest*
8284b0c5 9127fi
a0b9e27f
MB
9128rm -f conftest*
9129 ac_cv_prog_CPP="$CPP"
9130fi
9131 CPP="$ac_cv_prog_CPP"
10f2d63a 9132else
a0b9e27f 9133 ac_cv_prog_CPP="$CPP"
10f2d63a 9134fi
a0b9e27f 9135echo "$ac_t""$CPP" 1>&6
10f2d63a 9136
a0b9e27f
MB
9137if test $ac_cv_prog_gcc = yes; then
9138 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
e5a87141 9139echo "configure:9140: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9140if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9142else
9143 ac_pattern="Autoconf.*'x'"
a0b9e27f 9144 cat > conftest.$ac_ext <<EOF
e5a87141 9145#line 9146 "configure"
10f2d63a
VZ
9146#include "confdefs.h"
9147#include <sgtty.h>
9148Autoconf TIOCGETP
a0b9e27f 9149EOF
10f2d63a
VZ
9150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9151 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9152 rm -rf conftest*
10f2d63a
VZ
9153 ac_cv_prog_gcc_traditional=yes
9154else
a0b9e27f 9155 rm -rf conftest*
10f2d63a
VZ
9156 ac_cv_prog_gcc_traditional=no
9157fi
9158rm -f conftest*
9159
8284b0c5 9160
10f2d63a 9161 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9162 cat > conftest.$ac_ext <<EOF
e5a87141 9163#line 9164 "configure"
10f2d63a
VZ
9164#include "confdefs.h"
9165#include <termio.h>
9166Autoconf TCGETA
a0b9e27f 9167EOF
10f2d63a
VZ
9168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9169 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9170 rm -rf conftest*
10f2d63a
VZ
9171 ac_cv_prog_gcc_traditional=yes
9172fi
9173rm -f conftest*
9174
9175 fi
9176fi
a0b9e27f
MB
9177
9178echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9179 if test $ac_cv_prog_gcc_traditional = yes; then
9180 CC="$CC -traditional"
9181 fi
9182fi
9183
8284b0c5
MB
9184
9185
a0b9e27f
MB
9186ac_ext=C
9187# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9188ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9189ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9190ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9191cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9192
698dcdb6 9193
ec603395 9194CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9195for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9196do
9197# Extract the first word of "$ac_prog", so it can be a program name with args.
9198set dummy $ac_prog; ac_word=$2
9199echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 9200echo "configure:9201: checking for $ac_word" >&5
a0b9e27f
MB
9201if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9203else
9204 if test -n "$CXX"; then
9205 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9206else
a0b9e27f
MB
9207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9208 ac_dummy="$PATH"
9209 for ac_dir in $ac_dummy; do
9210 test -z "$ac_dir" && ac_dir=.
9211 if test -f $ac_dir/$ac_word; then
9212 ac_cv_prog_CXX="$ac_prog"
9213 break
9214 fi
9215 done
9216 IFS="$ac_save_ifs"
10f2d63a
VZ
9217fi
9218fi
a0b9e27f 9219CXX="$ac_cv_prog_CXX"
10f2d63a 9220if test -n "$CXX"; then
a0b9e27f 9221 echo "$ac_t""$CXX" 1>&6
10f2d63a 9222else
a0b9e27f 9223 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9224fi
9225
a0b9e27f 9226test -n "$CXX" && break
10f2d63a 9227done
a0b9e27f 9228test -n "$CXX" || CXX="gcc"
f09359cf 9229
a0b9e27f
MB
9230
9231echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
e5a87141 9232echo "configure:9233: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9233
9234ac_ext=C
9235# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9236ac_cpp='$CXXCPP $CPPFLAGS'
9237ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9238ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9239cross_compiling=$ac_cv_prog_cxx_cross
9240
9241cat > conftest.$ac_ext << EOF
9242
e5a87141 9243#line 9244 "configure"
a0b9e27f
MB
9244#include "confdefs.h"
9245
9246int main(){return(0);}
9247EOF
e5a87141 9248if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9249 ac_cv_prog_cxx_works=yes
9250 # If we can't run a trivial program, we are probably using a cross compiler.
9251 if (./conftest; exit) 2>/dev/null; then
9252 ac_cv_prog_cxx_cross=no
9253 else
9254 ac_cv_prog_cxx_cross=yes
9255 fi
8284b0c5 9256else
a0b9e27f
MB
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 ac_cv_prog_cxx_works=no
8284b0c5 9260fi
a0b9e27f
MB
9261rm -fr conftest*
9262ac_ext=C
9263# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9264ac_cpp='$CXXCPP $CPPFLAGS'
9265ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9266ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9267cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9268
a0b9e27f
MB
9269echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9270if test $ac_cv_prog_cxx_works = no; then
9271 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9272fi
9273echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
e5a87141 9274echo "configure:9275: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9275echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9276cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9277
a0b9e27f 9278echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
e5a87141 9279echo "configure:9280: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9280if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282else
9283 cat > conftest.C <<EOF
9284#ifdef __GNUC__
9285 yes;
10f2d63a 9286#endif
a0b9e27f 9287EOF
e5a87141 9288if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9289 ac_cv_prog_gxx=yes
9290else
9291 ac_cv_prog_gxx=no
9292fi
9293fi
10f2d63a 9294
a0b9e27f 9295echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9296
a0b9e27f
MB
9297if test $ac_cv_prog_gxx = yes; then
9298 GXX=yes
9299else
9300 GXX=
9301fi
f09359cf 9302
a0b9e27f
MB
9303ac_test_CXXFLAGS="${CXXFLAGS+set}"
9304ac_save_CXXFLAGS="$CXXFLAGS"
9305CXXFLAGS=
9306echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
e5a87141 9307echo "configure:9308: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9308if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9310else
9311 echo 'void f(){}' > conftest.cc
9312if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9313 ac_cv_prog_cxx_g=yes
9314else
a0b9e27f 9315 ac_cv_prog_cxx_g=no
10f2d63a 9316fi
a0b9e27f
MB
9317rm -f conftest*
9318
10f2d63a 9319fi
a0b9e27f
MB
9320
9321echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9322if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9323 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9324elif test $ac_cv_prog_cxx_g = yes; then
9325 if test "$GXX" = yes; then
10f2d63a
VZ
9326 CXXFLAGS="-g -O2"
9327 else
f09359cf 9328 CXXFLAGS="-g"
10f2d63a 9329 fi
5c0a20c3 9330else
f09359cf
VS
9331 if test "$GXX" = yes; then
9332 CXXFLAGS="-O2"
9333 else
9334 CXXFLAGS=
9335 fi
10f2d63a
VZ
9336fi
9337
9338
10f2d63a 9339ac_ext=c
a0b9e27f 9340# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9341ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9342ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9343ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9344cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9345
9346
a0b9e27f
MB
9347# Extract the first word of "ranlib", so it can be a program name with args.
9348set dummy ranlib; ac_word=$2
9349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 9350echo "configure:9351: checking for $ac_word" >&5
a0b9e27f
MB
9351if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9353else
9354 if test -n "$RANLIB"; then
9355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9356else
a0b9e27f
MB
9357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9358 ac_dummy="$PATH"
9359 for ac_dir in $ac_dummy; do
9360 test -z "$ac_dir" && ac_dir=.
9361 if test -f $ac_dir/$ac_word; then
9362 ac_cv_prog_RANLIB="ranlib"
9363 break
9364 fi
9365 done
9366 IFS="$ac_save_ifs"
9367 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9368fi
9369fi
a0b9e27f 9370RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9371if test -n "$RANLIB"; then
a0b9e27f 9372 echo "$ac_t""$RANLIB" 1>&6
328a083c 9373else
a0b9e27f 9374 echo "$ac_t""no" 1>&6
328a083c
RR
9375fi
9376
10f2d63a
VZ
9377
9378# Extract the first word of "ar", so it can be a program name with args.
9379set dummy ar; ac_word=$2
a0b9e27f 9380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 9381echo "configure:9382: checking for $ac_word" >&5
a0b9e27f
MB
9382if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9384else
9385 if test -n "$AR"; then
9386 ac_cv_prog_AR="$AR" # Let the user override the test.
9387else
a0b9e27f
MB
9388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9389 ac_dummy="$PATH"
9390 for ac_dir in $ac_dummy; do
9391 test -z "$ac_dir" && ac_dir=.
9392 if test -f $ac_dir/$ac_word; then
9393 ac_cv_prog_AR="ar"
9394 break
9395 fi
9396 done
9397 IFS="$ac_save_ifs"
10f2d63a
VZ
9398 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9399fi
9400fi
a0b9e27f 9401AR="$ac_cv_prog_AR"
10f2d63a 9402if test -n "$AR"; then
a0b9e27f 9403 echo "$ac_t""$AR" 1>&6
10f2d63a 9404else
a0b9e27f 9405 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9406fi
9407
8284b0c5 9408
6054113a 9409# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9410# so one script is as good as another. But avoid the broken or
9411# incompatible versions:
9412# SysV /etc/install, /usr/sbin/install
9413# SunOS /usr/etc/install
9414# IRIX /sbin/install
9415# AIX /bin/install
f09359cf 9416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9419# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9420echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
e5a87141 9421echo "configure:9422: checking for a BSD compatible install" >&5
10f2d63a 9422if test -z "$INSTALL"; then
a0b9e27f
MB
9423if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425else
9426 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9427 for ac_dir in $PATH; do
9428 # Account for people who put trailing slashes in PATH elements.
9429 case "$ac_dir/" in
9430 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9431 *)
9432 # OSF1 and SCO ODT 3.0 have their own names for install.
9433 # Don't use installbsd from OSF since it installs stuff as root
9434 # by default.
9435 for ac_prog in ginstall scoinst install; do
9436 if test -f $ac_dir/$ac_prog; then
9437 if test $ac_prog = install &&
9438 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9439 # AIX install. It has an incompatible calling convention.
9440 :
9441 else
9442 ac_cv_path_install="$ac_dir/$ac_prog -c"
9443 break 2
9444 fi
9445 fi
10f2d63a 9446 done
a0b9e27f
MB
9447 ;;
9448 esac
9449 done
9450 IFS="$ac_save_IFS"
10f2d63a
VZ
9451
9452fi
9453 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9454 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9455 else
9456 # As a last resort, use the slow shell script. We don't cache a
9457 # path for INSTALL within a source directory, because that will
9458 # break other packages using the cache if that directory is
9459 # removed, or if the path is relative.
a0b9e27f 9460 INSTALL="$ac_install_sh"
10f2d63a
VZ
9461 fi
9462fi
a0b9e27f 9463echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9464
9465# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9466# It thinks the first close brace ends the variable substitution.
9467test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9468
a0b9e27f 9469test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9470
10f2d63a
VZ
9471test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9472
8284b0c5 9473
1d1b75ac
VZ
9474case ${INSTALL} in
9475 /* ) # Absolute
9476 ;;
4f5a7f74
VZ
9477 ?:* ) # Drive letter, considered as absolute.
9478 ;;
3bd8fb5f 9479 *)
1d1b75ac
VZ
9480 INSTALL=`pwd`/${INSTALL} ;;
9481esac
9482
4f5a7f74
VZ
9483case ${host} in
9484 *-hp-hpux* )
9485 INSTALL_DIR="mkdir"
9486 ;;
9487
9488 *) INSTALL_DIR="$INSTALL -d"
9489 ;;
9490esac
9491
8284b0c5 9492
6054113a
GD
9493case "${host}" in
9494
b5853384 9495 powerpc-*-darwin* )
eb99ae0b
GD
9496 INSTALL_PROGRAM="cp -fp"
9497 INSTALL_DATA="cp -fp"
6054113a
GD
9498 ;;
9499 *)
9500 ;;
d6853540 9501esac
698dcdb6 9502
10f2d63a
VZ
9503# Extract the first word of "strip", so it can be a program name with args.
9504set dummy strip; ac_word=$2
a0b9e27f 9505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 9506echo "configure:9507: checking for $ac_word" >&5
a0b9e27f
MB
9507if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9509else
9510 if test -n "$STRIP"; then
9511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9512else
a0b9e27f
MB
9513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9514 ac_dummy="$PATH"
9515 for ac_dir in $ac_dummy; do
9516 test -z "$ac_dir" && ac_dir=.
9517 if test -f $ac_dir/$ac_word; then
9518 ac_cv_prog_STRIP="strip"
9519 break
9520 fi
9521 done
9522 IFS="$ac_save_ifs"
10f2d63a
VZ
9523 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9524fi
9525fi
a0b9e27f 9526STRIP="$ac_cv_prog_STRIP"
10f2d63a 9527if test -n "$STRIP"; then
a0b9e27f 9528 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9529else
a0b9e27f 9530 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9531fi
9532
5c6fa7d2 9533
a0b9e27f 9534echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
e5a87141 9535echo "configure:9536: checking if make is GNU make" >&5
a0b9e27f
MB
9536if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9538else
a0b9e27f 9539
414eab6d 9540 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9541 egrep -s GNU > /dev/null); then
414eab6d
VZ
9542 wx_cv_prog_makeisgnu="yes"
9543 else
9544 wx_cv_prog_makeisgnu="no"
9545 fi
9546
9547fi
a0b9e27f
MB
9548
9549echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9550
9551if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9552 IF_GNU_MAKE=""
9553else
9554 IF_GNU_MAKE="#"
9555fi
9556
8284b0c5
MB
9557
9558
414eab6d 9559if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9560echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
e5a87141 9561echo "configure:9562: checking if make supports VPATH" >&5
a0b9e27f
MB
9562if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9564else
a0b9e27f 9565
10f2d63a
VZ
9566cat - << EOF > confMake
9567check : file
9568 cp \$? \$@
9569 cp \$? final_file
9570EOF
9571
9572if test ! -d sub ; then
9573 mkdir sub
9574fi
9575echo dummy > sub/file
f6bcfd97 9576${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9577RESULT=$?
9578rm -f sub/file check final_file confMake
9579rmdir sub
9580if test "$RESULT" = 0; then
04e7a216 9581 wx_cv_prog_makevpath="yes"
10f2d63a 9582else
04e7a216
VZ
9583 wx_cv_prog_makevpath="no"
9584fi
9585
9586fi
a0b9e27f
MB
9587
9588echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9589
9590if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9591{ echo "configure: error:
5c6fa7d2
RR
9592You need a make-utility that is able to use the variable
9593VPATH correctly.
9594If your version of make does not support VPATH correctly,
9595please install GNU-make (possibly as gmake), and start
9596configure with the following command:
9597export MAKE=gmake; ./configure for sh-type shells
9598setenv MAKE gmake; ./configure for csh-type shells
9599Also please do remember to use gmake in this case every time
9600you are trying to compile.
a0b9e27f
MB
9601" 1>&2; exit 1; }
9602fi fi
10f2d63a
VZ
9603for ac_prog in 'bison -y' byacc
9604do
a0b9e27f 9605# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9606set dummy $ac_prog; ac_word=$2
a0b9e27f 9607echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 9608echo "configure:9609: checking for $ac_word" >&5
a0b9e27f
MB
9609if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9611else
9612 if test -n "$YACC"; then
9613 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9614else
a0b9e27f
MB
9615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9616 ac_dummy="$PATH"
9617 for ac_dir in $ac_dummy; do
9618 test -z "$ac_dir" && ac_dir=.
9619 if test -f $ac_dir/$ac_word; then
9620 ac_cv_prog_YACC="$ac_prog"
9621 break
9622 fi
9623 done
9624 IFS="$ac_save_ifs"
10f2d63a
VZ
9625fi
9626fi
a0b9e27f 9627YACC="$ac_cv_prog_YACC"
10f2d63a 9628if test -n "$YACC"; then
a0b9e27f 9629 echo "$ac_t""$YACC" 1>&6
10f2d63a 9630else
a0b9e27f 9631 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9632fi
9633
a0b9e27f 9634test -n "$YACC" && break
10f2d63a
VZ
9635done
9636test -n "$YACC" || YACC="yacc"
9637
8284b0c5 9638
a0b9e27f
MB
9639# Extract the first word of "flex", so it can be a program name with args.
9640set dummy flex; ac_word=$2
9641echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 9642echo "configure:9643: checking for $ac_word" >&5
a0b9e27f
MB
9643if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9644 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9645else
9646 if test -n "$LEX"; then
9647 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9648else
a0b9e27f
MB
9649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9650 ac_dummy="$PATH"
9651 for ac_dir in $ac_dummy; do
9652 test -z "$ac_dir" && ac_dir=.
9653 if test -f $ac_dir/$ac_word; then
9654 ac_cv_prog_LEX="flex"
9655 break
9656 fi
9657 done
9658 IFS="$ac_save_ifs"
9659 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9660fi
9661fi
a0b9e27f 9662LEX="$ac_cv_prog_LEX"
10f2d63a 9663if test -n "$LEX"; then
a0b9e27f 9664 echo "$ac_t""$LEX" 1>&6
10f2d63a 9665else
a0b9e27f 9666 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9667fi
9668
9669if test -z "$LEXLIB"
9670then
a0b9e27f
MB
9671 case "$LEX" in
9672 flex*) ac_lib=fl ;;
9673 *) ac_lib=l ;;
9674 esac
9675 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
e5a87141 9676echo "configure:9677: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9677ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9679 echo $ac_n "(cached) $ac_c" 1>&6
9680else
9681 ac_save_LIBS="$LIBS"
9682LIBS="-l$ac_lib $LIBS"
9683cat > conftest.$ac_ext <<EOF
e5a87141 9684#line 9685 "configure"
247f5006 9685#include "confdefs.h"
247f5006 9686/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9687/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9688 builtin and then its argument prototype would still apply. */
9689char yywrap();
10f2d63a 9690
a0b9e27f
MB
9691int main() {
9692yywrap()
9693; return 0; }
9694EOF
e5a87141 9695if { (eval echo configure:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9696 rm -rf conftest*
9697 eval "ac_cv_lib_$ac_lib_var=yes"
9698else
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9703fi
a0b9e27f
MB
9704rm -f conftest*
9705LIBS="$ac_save_LIBS"
8284b0c5 9706
10f2d63a 9707fi
a0b9e27f
MB
9708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 LEXLIB="-l$ac_lib"
8284b0c5 9711else
a0b9e27f 9712 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9713fi
9714
a0b9e27f 9715fi
10f2d63a
VZ
9716
9717
a0b9e27f 9718echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
e5a87141 9719echo "configure:9720: checking whether ln -s works" >&5
a0b9e27f
MB
9720if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9722else
a0b9e27f
MB
9723 rm -f conftestdata
9724if ln -s X conftestdata 2>/dev/null
9725then
9726 rm -f conftestdata
9727 ac_cv_prog_LN_S="ln -s"
10f2d63a 9728else
a0b9e27f 9729 ac_cv_prog_LN_S=ln
10f2d63a 9730fi
a0b9e27f
MB
9731fi
9732LN_S="$ac_cv_prog_LN_S"
9733if test "$ac_cv_prog_LN_S" = "ln -s"; then
9734 echo "$ac_t""yes" 1>&6
10f2d63a 9735else
a0b9e27f 9736 echo "$ac_t""no" 1>&6
5c6fa7d2 9737fi
5c6fa7d2 9738
247f5006 9739
2b5f62a0
VZ
9740case "${host}" in
9741 *-pc-os2_emx | *-pc-os2-emx )
9742 LIBS="$LIBS -lstdcpp"
9743 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9744 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
e5a87141 9745echo "configure:9746: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9746ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9747if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749else
9750 ac_save_LIBS="$LIBS"
9751LIBS="-lcExt $LIBS"
9752cat > conftest.$ac_ext <<EOF
e5a87141 9753#line 9754 "configure"
2b5f62a0
VZ
9754#include "confdefs.h"
9755/* Override any gcc2 internal prototype to avoid an error. */
9756/* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758char drand48();
9759
9760int main() {
9761drand48()
9762; return 0; }
9763EOF
e5a87141 9764if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9765 rm -rf conftest*
9766 eval "ac_cv_lib_$ac_lib_var=yes"
9767else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -rf conftest*
9771 eval "ac_cv_lib_$ac_lib_var=no"
9772fi
9773rm -f conftest*
9774LIBS="$ac_save_LIBS"
9775
9776fi
9777if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9778 echo "$ac_t""yes" 1>&6
9779 LIBS="$LIBS -lcExt"
9780else
9781 echo "$ac_t""no" 1>&6
9782fi
9783
9784 else
9785 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9786 fi
9787 ;;
9788esac
9789
a0b9e27f 9790
ac0c4cc3 9791if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9792 for ac_hdr in strings.h
9793do
9794ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9795echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 9796echo "configure:9797: checking for $ac_hdr" >&5
a0b9e27f
MB
9797if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9798 echo $ac_n "(cached) $ac_c" 1>&6
9799else
9800 cat > conftest.$ac_ext <<EOF
e5a87141 9801#line 9802 "configure"
a0b9e27f
MB
9802#include "confdefs.h"
9803#include <$ac_hdr>
9804EOF
9805ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9806{ (eval echo configure:9807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9807ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9808if test -z "$ac_err"; then
9809 rm -rf conftest*
9810 eval "ac_cv_header_$ac_safe=yes"
9811else
9812 echo "$ac_err" >&5
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=no"
21d1c967 9817fi
247f5006 9818rm -f conftest*
19bc6aad 9819fi
a0b9e27f
MB
9820if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9823 cat >> confdefs.h <<EOF
9824#define $ac_tr_hdr 1
9825EOF
9826
247f5006 9827else
a0b9e27f 9828 echo "$ac_t""no" 1>&6
18dbb1f6 9829fi
a0b9e27f 9830done
247f5006 9831
90dd450c 9832fi
90dd450c 9833
a0b9e27f
MB
9834for ac_hdr in stdlib.h
9835do
9836ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9837echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 9838echo "configure:9839: checking for $ac_hdr" >&5
a0b9e27f
MB
9839if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9840 echo $ac_n "(cached) $ac_c" 1>&6
9841else
9842 cat > conftest.$ac_ext <<EOF
e5a87141 9843#line 9844 "configure"
90dd450c 9844#include "confdefs.h"
a0b9e27f
MB
9845#include <$ac_hdr>
9846EOF
9847ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9848{ (eval echo configure:9849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9849ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9850if test -z "$ac_err"; then
9851 rm -rf conftest*
9852 eval "ac_cv_header_$ac_safe=yes"
9853else
9854 echo "$ac_err" >&5
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 rm -rf conftest*
9858 eval "ac_cv_header_$ac_safe=no"
9859fi
9860rm -f conftest*
9861fi
9862if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9863 echo "$ac_t""yes" 1>&6
9864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9865 cat >> confdefs.h <<EOF
9866#define $ac_tr_hdr 1
9867EOF
9868
8284b0c5 9869else
a0b9e27f 9870 echo "$ac_t""no" 1>&6
21d1c967 9871fi
a0b9e27f
MB
9872done
9873
9874for ac_hdr in malloc.h
9875do
9876ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9877echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 9878echo "configure:9879: checking for $ac_hdr" >&5
a0b9e27f
MB
9879if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9881else
9882 cat > conftest.$ac_ext <<EOF
e5a87141 9883#line 9884 "configure"
a0b9e27f
MB
9884#include "confdefs.h"
9885#include <$ac_hdr>
9886EOF
9887ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9888{ (eval echo configure:9889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9889ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9890if test -z "$ac_err"; then
9891 rm -rf conftest*
9892 eval "ac_cv_header_$ac_safe=yes"
9893else
9894 echo "$ac_err" >&5
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 rm -rf conftest*
9898 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9899fi
a0b9e27f 9900rm -f conftest*
90dd450c 9901fi
a0b9e27f
MB
9902if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9903 echo "$ac_t""yes" 1>&6
9904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9905 cat >> confdefs.h <<EOF
9906#define $ac_tr_hdr 1
9907EOF
9908
9909else
9910 echo "$ac_t""no" 1>&6
21d1c967 9911fi
a0b9e27f 9912done
247f5006 9913
a0b9e27f
MB
9914for ac_hdr in unistd.h
9915do
9916ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9917echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 9918echo "configure:9919: checking for $ac_hdr" >&5
a0b9e27f
MB
9919if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9921else
9922 cat > conftest.$ac_ext <<EOF
e5a87141 9923#line 9924 "configure"
a0b9e27f
MB
9924#include "confdefs.h"
9925#include <$ac_hdr>
9926EOF
9927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9928{ (eval echo configure:9929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9930if test -z "$ac_err"; then
9931 rm -rf conftest*
9932 eval "ac_cv_header_$ac_safe=yes"
9933else
9934 echo "$ac_err" >&5
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 rm -rf conftest*
9938 eval "ac_cv_header_$ac_safe=no"
247f5006 9939fi
a0b9e27f
MB
9940rm -f conftest*
9941fi
9942if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9943 echo "$ac_t""yes" 1>&6
9944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9945 cat >> confdefs.h <<EOF
9946#define $ac_tr_hdr 1
9947EOF
9948
9949else
9950 echo "$ac_t""no" 1>&6
9951fi
9952done
90dd450c 9953
a0b9e27f 9954for ac_hdr in wchar.h
21d1c967 9955do
a0b9e27f
MB
9956ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9957echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 9958echo "configure:9959: checking for $ac_hdr" >&5
a0b9e27f
MB
9959if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9961else
9962 cat > conftest.$ac_ext <<EOF
e5a87141 9963#line 9964 "configure"
4f14bcd8 9964#include "confdefs.h"
a0b9e27f
MB
9965#include <$ac_hdr>
9966EOF
9967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 9968{ (eval echo configure:9969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9969ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9970if test -z "$ac_err"; then
9971 rm -rf conftest*
9972 eval "ac_cv_header_$ac_safe=yes"
9973else
9974 echo "$ac_err" >&5
9975 echo "configure: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 rm -rf conftest*
9978 eval "ac_cv_header_$ac_safe=no"
9979fi
9980rm -f conftest*
9981fi
9982if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9983 echo "$ac_t""yes" 1>&6
9984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9985 cat >> confdefs.h <<EOF
9986#define $ac_tr_hdr 1
9987EOF
9988
9989else
9990 echo "$ac_t""no" 1>&6
21d1c967
GD
9991fi
9992done
4f14bcd8 9993
5c6fa7d2 9994
a0b9e27f
MB
9995if test "$ac_cv_header_wchar_h" != "yes"; then
9996 for ac_hdr in wcstr.h
21d1c967 9997do
a0b9e27f
MB
9998ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9999echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 10000echo "configure:10001: checking for $ac_hdr" >&5
a0b9e27f
MB
10001if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10003else
10004 cat > conftest.$ac_ext <<EOF
e5a87141 10005#line 10006 "configure"
d4158b5d 10006#include "confdefs.h"
a0b9e27f
MB
10007#include <$ac_hdr>
10008EOF
10009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 10010{ (eval echo configure:10011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10012if test -z "$ac_err"; then
10013 rm -rf conftest*
10014 eval "ac_cv_header_$ac_safe=yes"
10015else
10016 echo "$ac_err" >&5
10017 echo "configure: failed program was:" >&5
d4158b5d 10018 cat conftest.$ac_ext >&5
a0b9e27f
MB
10019 rm -rf conftest*
10020 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10021fi
a0b9e27f 10022rm -f conftest*
21d1c967 10023fi
a0b9e27f
MB
10024if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10025 echo "$ac_t""yes" 1>&6
10026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10027 cat >> confdefs.h <<EOF
10028#define $ac_tr_hdr 1
10029EOF
10030
10031else
10032 echo "$ac_t""no" 1>&6
d4158b5d 10033fi
21d1c967 10034done
f6bcfd97 10035
90dd450c 10036fi
90dd450c 10037
a0b9e27f 10038for ac_hdr in fnmatch.h
21d1c967 10039do
a0b9e27f
MB
10040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 10042echo "configure:10043: checking for $ac_hdr" >&5
a0b9e27f
MB
10043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10045else
10046 cat > conftest.$ac_ext <<EOF
e5a87141 10047#line 10048 "configure"
90dd450c 10048#include "confdefs.h"
a0b9e27f
MB
10049#include <$ac_hdr>
10050EOF
10051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 10052{ (eval echo configure:10053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10054if test -z "$ac_err"; then
10055 rm -rf conftest*
10056 eval "ac_cv_header_$ac_safe=yes"
10057else
10058 echo "$ac_err" >&5
10059 echo "configure: failed program was:" >&5
3a922bb4 10060 cat conftest.$ac_ext >&5
a0b9e27f
MB
10061 rm -rf conftest*
10062 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10063fi
a0b9e27f 10064rm -f conftest*
4f14bcd8 10065fi
a0b9e27f
MB
10066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10067 echo "$ac_t""yes" 1>&6
10068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10069 cat >> confdefs.h <<EOF
10070#define $ac_tr_hdr 1
10071EOF
10072
10073else
10074 echo "$ac_t""no" 1>&6
21d1c967
GD
10075fi
10076done
90dd450c 10077
5c6fa7d2 10078
a0b9e27f
MB
10079if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10080 for ac_func in fnmatch
21d1c967 10081do
a0b9e27f 10082echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 10083echo "configure:10084: checking for $ac_func" >&5
a0b9e27f
MB
10084if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10086else
a0b9e27f 10087 cat > conftest.$ac_ext <<EOF
e5a87141 10088#line 10089 "configure"
a0b9e27f
MB
10089#include "confdefs.h"
10090/* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func(); below. */
10092#include <assert.h>
10093/* Override any gcc2 internal prototype to avoid an error. */
10094/* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096char $ac_func();
10097
10098int main() {
10099
10100/* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104choke me
10105#else
10106$ac_func();
10107#endif
10108
10109; return 0; }
10110EOF
e5a87141 10111if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10112 rm -rf conftest*
10113 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10114else
a0b9e27f 10115 echo "configure: failed program was:" >&5
8284b0c5 10116 cat conftest.$ac_ext >&5
a0b9e27f
MB
10117 rm -rf conftest*
10118 eval "ac_cv_func_$ac_func=no"
8284b0c5 10119fi
a0b9e27f 10120rm -f conftest*
8284b0c5 10121fi
32832908 10122
a0b9e27f
MB
10123if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10126 cat >> confdefs.h <<EOF
10127#define $ac_tr_func 1
10128EOF
10129
10130else
10131 echo "$ac_t""no" 1>&6
21d1c967
GD
10132fi
10133done
90dd450c 10134
a0b9e27f 10135fi
90dd450c 10136
a0b9e27f 10137for ac_hdr in langinfo.h
21d1c967 10138do
a0b9e27f
MB
10139ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10140echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 10141echo "configure:10142: checking for $ac_hdr" >&5
a0b9e27f
MB
10142if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10144else
10145 cat > conftest.$ac_ext <<EOF
e5a87141 10146#line 10147 "configure"
247f5006 10147#include "confdefs.h"
a0b9e27f
MB
10148#include <$ac_hdr>
10149EOF
10150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 10151{ (eval echo configure:10152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10153if test -z "$ac_err"; then
10154 rm -rf conftest*
10155 eval "ac_cv_header_$ac_safe=yes"
10156else
10157 echo "$ac_err" >&5
10158 echo "configure: failed program was:" >&5
90dd450c 10159 cat conftest.$ac_ext >&5
a0b9e27f
MB
10160 rm -rf conftest*
10161 eval "ac_cv_header_$ac_safe=no"
90dd450c 10162fi
a0b9e27f 10163rm -f conftest*
4f14bcd8 10164fi
a0b9e27f
MB
10165if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10166 echo "$ac_t""yes" 1>&6
10167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10168 cat >> confdefs.h <<EOF
10169#define $ac_tr_hdr 1
10170EOF
10171
10172else
10173 echo "$ac_t""no" 1>&6
21d1c967
GD
10174fi
10175done
3a922bb4 10176
8284b0c5 10177
4f5a7f74
VZ
10178case "${host}" in
10179 *-pc-os2_emx | *-pc-os2-emx )
10180 if test $ac_cv_header_langinfo_h = "yes"; then
10181 LIBS="$LIBS -lintl"
10182 fi
10183 ;;
10184esac
1542ea39 10185
a0b9e27f
MB
10186if test "$wxUSE_GUI" = "yes"; then
10187 if test "$wxUSE_UNIX" = "yes"; then
10188 for ac_hdr in X11/XKBlib.h
21d1c967 10189do
a0b9e27f
MB
10190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 10192echo "configure:10193: checking for $ac_hdr" >&5
a0b9e27f
MB
10193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195else
10196 cat > conftest.$ac_ext <<EOF
e5a87141 10197#line 10198 "configure"
90dd450c 10198#include "confdefs.h"
a0b9e27f
MB
10199#include <$ac_hdr>
10200EOF
10201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 10202{ (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10204if test -z "$ac_err"; then
10205 rm -rf conftest*
10206 eval "ac_cv_header_$ac_safe=yes"
10207else
10208 echo "$ac_err" >&5
10209 echo "configure: failed program was:" >&5
90dd450c 10210 cat conftest.$ac_ext >&5
a0b9e27f
MB
10211 rm -rf conftest*
10212 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10213fi
a0b9e27f 10214rm -f conftest*
90dd450c 10215fi
a0b9e27f
MB
10216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10217 echo "$ac_t""yes" 1>&6
10218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10219 cat >> confdefs.h <<EOF
10220#define $ac_tr_hdr 1
10221EOF
10222
10223else
10224 echo "$ac_t""no" 1>&6
247f5006 10225fi
247f5006
VZ
10226done
10227
a0b9e27f
MB
10228 fi
10229fi
247f5006 10230
247f5006 10231
a0b9e27f 10232echo $ac_n "checking for working const""... $ac_c" 1>&6
e5a87141 10233echo "configure:10234: checking for working const" >&5
a0b9e27f
MB
10234if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10236else
a0b9e27f 10237 cat > conftest.$ac_ext <<EOF
e5a87141 10238#line 10239 "configure"
a0b9e27f
MB
10239#include "confdefs.h"
10240
10241int main() {
10242
10243/* Ultrix mips cc rejects this. */
10244typedef int charset[2]; const charset x;
10245/* SunOS 4.1.1 cc rejects this. */
10246char const *const *ccp;
10247char **p;
10248/* NEC SVR4.0.2 mips cc rejects this. */
10249struct point {int x, y;};
10250static struct point const zero = {0,0};
10251/* AIX XL C 1.02.0.0 rejects this.
10252 It does not let you subtract one const X* pointer from another in an arm
10253 of an if-expression whose if-part is not a constant expression */
10254const char *g = "string";
10255ccp = &g + (g ? g-g : 0);
10256/* HPUX 7.0 cc rejects these. */
10257++ccp;
10258p = (char**) ccp;
10259ccp = (char const *const *) p;
10260{ /* SCO 3.2v4 cc rejects this. */
10261 char *t;
10262 char const *s = 0 ? (char *) 0 : (char const *) 0;
10263
10264 *t++ = 0;
10265}
10266{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10267 int x[] = {25, 17};
10268 const int *foo = &x[0];
10269 ++foo;
10270}
10271{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10272 typedef const int *iptr;
10273 iptr p = 0;
10274 ++p;
10275}
10276{ /* AIX XL C 1.02.0.0 rejects this saying
10277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10278 struct s { int j; const int *ap[3]; };
10279 struct s *b; b->j = 5;
10280}
10281{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10282 const int foo = 10;
10283}
10284
10285; return 0; }
10286EOF
e5a87141 10287if { (eval echo configure:10288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10288 rm -rf conftest*
10289 ac_cv_c_const=yes
247f5006 10290else
a0b9e27f 10291 echo "configure: failed program was:" >&5
247f5006 10292 cat conftest.$ac_ext >&5
a0b9e27f
MB
10293 rm -rf conftest*
10294 ac_cv_c_const=no
247f5006 10295fi
a0b9e27f 10296rm -f conftest*
21d1c967 10297fi
247f5006 10298
a0b9e27f
MB
10299echo "$ac_t""$ac_cv_c_const" 1>&6
10300if test $ac_cv_c_const = no; then
10301 cat >> confdefs.h <<\EOF
10302#define const
10303EOF
10f2d63a 10304
90dd450c 10305fi
81809c07 10306
a0b9e27f 10307echo $ac_n "checking for inline""... $ac_c" 1>&6
e5a87141 10308echo "configure:10309: checking for inline" >&5
a0b9e27f
MB
10309if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10311else
a0b9e27f
MB
10312 ac_cv_c_inline=no
10313for ac_kw in inline __inline__ __inline; do
10314 cat > conftest.$ac_ext <<EOF
e5a87141 10315#line 10316 "configure"
a0b9e27f
MB
10316#include "confdefs.h"
10317
10318int main() {
10319} $ac_kw foo() {
10320; return 0; }
10321EOF
e5a87141 10322if { (eval echo configure:10323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10323 rm -rf conftest*
10324 ac_cv_c_inline=$ac_kw; break
247f5006 10325else
a0b9e27f 10326 echo "configure: failed program was:" >&5
247f5006 10327 cat conftest.$ac_ext >&5
247f5006 10328fi
a0b9e27f
MB
10329rm -f conftest*
10330done
247f5006
VZ
10331
10332fi
10333
a0b9e27f
MB
10334echo "$ac_t""$ac_cv_c_inline" 1>&6
10335case "$ac_cv_c_inline" in
10336 inline | yes) ;;
10337 no) cat >> confdefs.h <<\EOF
10338#define inline
10339EOF
10340 ;;
10341 *) cat >> confdefs.h <<EOF
10342#define inline $ac_cv_c_inline
10343EOF
10344 ;;
10345esac
247f5006 10346
247f5006 10347
a0b9e27f 10348echo $ac_n "checking size of char""... $ac_c" 1>&6
e5a87141 10349echo "configure:10350: checking size of char" >&5
a0b9e27f
MB
10350if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10352else
10353 if test "$cross_compiling" = yes; then
10354 ac_cv_sizeof_char=1
10355else
10356 cat > conftest.$ac_ext <<EOF
e5a87141 10357#line 10358 "configure"
4f14bcd8 10358#include "confdefs.h"
a0b9e27f 10359#include <stdio.h>
a0b9e27f 10360main()
247f5006 10361{
a0b9e27f
MB
10362 FILE *f=fopen("conftestval", "w");
10363 if (!f) exit(1);
10364 fprintf(f, "%d\n", sizeof(char));
10365 exit(0);
52127426 10366}
a0b9e27f 10367EOF
e5a87141 10368if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10369then
10370 ac_cv_sizeof_char=`cat conftestval`
247f5006 10371else
a0b9e27f 10372 echo "configure: failed program was:" >&5
247f5006 10373 cat conftest.$ac_ext >&5
a0b9e27f
MB
10374 rm -fr conftest*
10375 ac_cv_sizeof_char=0
247f5006 10376fi
a0b9e27f 10377rm -fr conftest*
247f5006 10378fi
247f5006
VZ
10379
10380fi
a0b9e27f
MB
10381echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10382cat >> confdefs.h <<EOF
10383#define SIZEOF_CHAR $ac_cv_sizeof_char
10384EOF
247f5006 10385
247f5006 10386
a0b9e27f 10387echo $ac_n "checking size of short""... $ac_c" 1>&6
e5a87141 10388echo "configure:10389: checking size of short" >&5
a0b9e27f
MB
10389if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10390 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10391else
a0b9e27f
MB
10392 if test "$cross_compiling" = yes; then
10393 ac_cv_sizeof_short=2
247f5006 10394else
a0b9e27f 10395 cat > conftest.$ac_ext <<EOF
e5a87141 10396#line 10397 "configure"
a0b9e27f
MB
10397#include "confdefs.h"
10398#include <stdio.h>
a0b9e27f
MB
10399main()
10400{
10401 FILE *f=fopen("conftestval", "w");
10402 if (!f) exit(1);
10403 fprintf(f, "%d\n", sizeof(short));
10404 exit(0);
10405}
10406EOF
e5a87141 10407if { (eval echo configure:10408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10408then
10409 ac_cv_sizeof_short=`cat conftestval`
247f5006 10410else
a0b9e27f
MB
10411 echo "configure: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 rm -fr conftest*
10414 ac_cv_sizeof_short=0
247f5006 10415fi
a0b9e27f 10416rm -fr conftest*
247f5006
VZ
10417fi
10418
247f5006 10419fi
a0b9e27f
MB
10420echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10421cat >> confdefs.h <<EOF
10422#define SIZEOF_SHORT $ac_cv_sizeof_short
10423EOF
247f5006
VZ
10424
10425
a0b9e27f 10426echo $ac_n "checking size of void *""... $ac_c" 1>&6
e5a87141 10427echo "configure:10428: checking size of void *" >&5
a0b9e27f
MB
10428if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10429 echo $ac_n "(cached) $ac_c" 1>&6
10430else
10431 if test "$cross_compiling" = yes; then
10432 ac_cv_sizeof_void_p=4
247f5006 10433else
a0b9e27f 10434 cat > conftest.$ac_ext <<EOF
e5a87141 10435#line 10436 "configure"
247f5006 10436#include "confdefs.h"
247f5006 10437#include <stdio.h>
a0b9e27f 10438main()
247f5006 10439{
a0b9e27f
MB
10440 FILE *f=fopen("conftestval", "w");
10441 if (!f) exit(1);
10442 fprintf(f, "%d\n", sizeof(void *));
10443 exit(0);
5c6fa7d2 10444}
a0b9e27f 10445EOF
e5a87141 10446if { (eval echo configure:10447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10447then
10448 ac_cv_sizeof_void_p=`cat conftestval`
10449else
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10452 rm -fr conftest*
10453 ac_cv_sizeof_void_p=0
10454fi
10455rm -fr conftest*
10456fi
8284b0c5 10457
247f5006 10458fi
a0b9e27f
MB
10459echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10460cat >> confdefs.h <<EOF
10461#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10462EOF
247f5006 10463
247f5006 10464
a0b9e27f 10465echo $ac_n "checking size of int""... $ac_c" 1>&6
e5a87141 10466echo "configure:10467: checking size of int" >&5
a0b9e27f
MB
10467if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10469else
a0b9e27f
MB
10470 if test "$cross_compiling" = yes; then
10471 ac_cv_sizeof_int=4
10472else
10473 cat > conftest.$ac_ext <<EOF
e5a87141 10474#line 10475 "configure"
247f5006 10475#include "confdefs.h"
a0b9e27f 10476#include <stdio.h>
a0b9e27f 10477main()
247f5006 10478{
a0b9e27f
MB
10479 FILE *f=fopen("conftestval", "w");
10480 if (!f) exit(1);
10481 fprintf(f, "%d\n", sizeof(int));
10482 exit(0);
247f5006 10483}
a0b9e27f 10484EOF
e5a87141 10485if { (eval echo configure:10486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10486then
10487 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10488else
a0b9e27f
MB
10489 echo "configure: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 rm -fr conftest*
10492 ac_cv_sizeof_int=0
21d1c967 10493fi
a0b9e27f 10494rm -fr conftest*
698dcdb6 10495fi
4f14bcd8 10496
21d1c967 10497fi
a0b9e27f
MB
10498echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10499cat >> confdefs.h <<EOF
10500#define SIZEOF_INT $ac_cv_sizeof_int
10501EOF
4f14bcd8 10502
5c6fa7d2 10503
a0b9e27f 10504echo $ac_n "checking size of long""... $ac_c" 1>&6
e5a87141 10505echo "configure:10506: checking size of long" >&5
a0b9e27f
MB
10506if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10507 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10508else
247f5006 10509 if test "$cross_compiling" = yes; then
a0b9e27f 10510 ac_cv_sizeof_long=4
247f5006 10511else
a0b9e27f 10512 cat > conftest.$ac_ext <<EOF
e5a87141 10513#line 10514 "configure"
247f5006 10514#include "confdefs.h"
a0b9e27f 10515#include <stdio.h>
a0b9e27f 10516main()
247f5006 10517{
a0b9e27f
MB
10518 FILE *f=fopen("conftestval", "w");
10519 if (!f) exit(1);
10520 fprintf(f, "%d\n", sizeof(long));
10521 exit(0);
247f5006 10522}
a0b9e27f 10523EOF
e5a87141 10524if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10525then
10526 ac_cv_sizeof_long=`cat conftestval`
247f5006 10527else
a0b9e27f
MB
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 rm -fr conftest*
10531 ac_cv_sizeof_long=0
247f5006 10532fi
a0b9e27f 10533rm -fr conftest*
247f5006 10534fi
247f5006 10535
5c6fa7d2 10536fi
a0b9e27f
MB
10537echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10538cat >> confdefs.h <<EOF
10539#define SIZEOF_LONG $ac_cv_sizeof_long
10540EOF
247f5006 10541
a0b9e27f
MB
10542
10543
10544case "${host}" in
10545 arm-*-linux* )
10546 echo $ac_n "checking size of long long""... $ac_c" 1>&6
e5a87141 10547echo "configure:10548: checking size of long long" >&5
a0b9e27f
MB
10548if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550else
10551 if test "$cross_compiling" = yes; then
10552 ac_cv_sizeof_long_long=8
10553else
10554 cat > conftest.$ac_ext <<EOF
e5a87141 10555#line 10556 "configure"
247f5006 10556#include "confdefs.h"
a0b9e27f 10557#include <stdio.h>
a0b9e27f 10558main()
247f5006 10559{
a0b9e27f
MB
10560 FILE *f=fopen("conftestval", "w");
10561 if (!f) exit(1);
10562 fprintf(f, "%d\n", sizeof(long long));
10563 exit(0);
247f5006 10564}
a0b9e27f 10565EOF
e5a87141 10566if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10567then
10568 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10569else
a0b9e27f
MB
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -fr conftest*
10573 ac_cv_sizeof_long_long=0
5c6fa7d2 10574fi
a0b9e27f 10575rm -fr conftest*
5c6fa7d2 10576fi
8284b0c5 10577
a0b9e27f
MB
10578fi
10579echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10580cat >> confdefs.h <<EOF
10581#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10582EOF
10583
10584
10585 ;;
4f57cf11 10586 *-hp-hpux* )
a0b9e27f 10587 echo $ac_n "checking size of long long""... $ac_c" 1>&6
e5a87141 10588echo "configure:10589: checking size of long long" >&5
a0b9e27f
MB
10589if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10591else
10592 if test "$cross_compiling" = yes; then
a0b9e27f 10593 ac_cv_sizeof_long_long=0
8284b0c5 10594else
a0b9e27f 10595 cat > conftest.$ac_ext <<EOF
e5a87141 10596#line 10597 "configure"
8284b0c5
MB
10597#include "confdefs.h"
10598#include <stdio.h>
a0b9e27f 10599main()
8284b0c5 10600{
a0b9e27f
MB
10601 FILE *f=fopen("conftestval", "w");
10602 if (!f) exit(1);
10603 fprintf(f, "%d\n", sizeof(long long));
10604 exit(0);
8284b0c5 10605}
a0b9e27f 10606EOF
e5a87141 10607if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10608then
10609 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10610else
a0b9e27f
MB
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -fr conftest*
5c6fa7d2 10614 ac_cv_sizeof_long_long=0
52127426 10615fi
a0b9e27f
MB
10616rm -fr conftest*
10617fi
10618
4f57cf11
GD
10619fi
10620echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10621cat >> confdefs.h <<EOF
10622#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10623EOF
10624
10625
10626 if test "$ac_cv_sizeof_long_long" != "0"; then
10627 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10628 fi
10629 ;;
10630 * )
10631 echo $ac_n "checking size of long long""... $ac_c" 1>&6
e5a87141 10632echo "configure:10633: checking size of long long" >&5
4f57cf11
GD
10633if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635else
10636 if test "$cross_compiling" = yes; then
10637 ac_cv_sizeof_long_long=0
10638else
10639 cat > conftest.$ac_ext <<EOF
e5a87141 10640#line 10641 "configure"
4f57cf11
GD
10641#include "confdefs.h"
10642#include <stdio.h>
10643main()
10644{
10645 FILE *f=fopen("conftestval", "w");
10646 if (!f) exit(1);
10647 fprintf(f, "%d\n", sizeof(long long));
10648 exit(0);
10649}
10650EOF
e5a87141 10651if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10652then
10653 ac_cv_sizeof_long_long=`cat conftestval`
10654else
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 rm -fr conftest*
10658 ac_cv_sizeof_long_long=0
10659fi
10660rm -fr conftest*
10661fi
10662
7b4a847f 10663fi
a0b9e27f
MB
10664echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10665cat >> confdefs.h <<EOF
21d1c967 10666#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10667EOF
9e691f46 10668
8284b0c5 10669
21d1c967
GD
10670esac
10671
a0b9e27f 10672echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
e5a87141 10673echo "configure:10674: checking size of wchar_t" >&5
a0b9e27f
MB
10674if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10676else
a0b9e27f 10677
21d1c967 10678 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10679
10680 case "${host}" in
10681 *-pc-msdosdjgpp )
10682 wx_cv_sizeof_wchar_t=0
10683 ;;
10684 * )
10685 wx_cv_sizeof_wchar_t=4
10686 ;;
10687 esac
10688
a0b9e27f 10689
6f72b082 10690else
a0b9e27f 10691 cat > conftest.$ac_ext <<EOF
e5a87141 10692#line 10693 "configure"
6f72b082 10693#include "confdefs.h"
21d1c967 10694
2b5f62a0
VZ
10695 /* DJGPP only has fake wchar_t: */
10696 #ifdef __DJGPP__
10697 # error "fake wchar_t"
10698 #endif
21d1c967
GD
10699 #ifdef HAVE_WCHAR_H
10700 # ifdef __CYGWIN__
10701 # include <stddef.h>
10702 # endif
10703 # include <wchar.h>
10704 #endif
10705 #ifdef HAVE_STDLIB_H
10706 # include <stdlib.h>
10707 #endif
10708 #include <stdio.h>
10709 int main()
10710 {
10711 FILE *f=fopen("conftestval", "w");
10712 if (!f) exit(1);
10713 fprintf(f, "%i", sizeof(wchar_t));
10714 exit(0);
10715 }
a0b9e27f
MB
10716
10717EOF
e5a87141 10718if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10719then
21d1c967 10720 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10721else
a0b9e27f
MB
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -fr conftest*
10725 wx_cv_sizeof_wchar_t=0
6f72b082 10726fi
a0b9e27f 10727rm -fr conftest*
6f72b082 10728fi
6f72b082 10729
a0b9e27f 10730
3f345b47
VZ
10731fi
10732
a0b9e27f
MB
10733echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10734
10735cat >> confdefs.h <<EOF
21d1c967 10736#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10737EOF
90dd450c 10738
8284b0c5 10739
21d1c967
GD
10740# Check whether --enable-largefile or --disable-largefile was given.
10741if test "${enable_largefile+set}" = set; then
10742 enableval="$enable_largefile"
a0b9e27f
MB
10743 :
10744fi
3f345b47 10745
21d1c967
GD
10746if test "$enable_largefile" != no; then
10747 wx_largefile=no
a0b9e27f
MB
10748
10749 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
e5a87141 10750echo "configure:10751: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10751if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10753else
10754
10755 cat > conftest.$ac_ext <<EOF
e5a87141 10756#line 10757 "configure"
90dd450c 10757#include "confdefs.h"
21d1c967
GD
10758#define _FILE_OFFSET_BITS 64
10759 #include <sys/types.h>
a0b9e27f 10760int main() {
21d1c967
GD
10761typedef struct {
10762 unsigned int field: sizeof(off_t) == 8;
10763} wxlf;
10764
a0b9e27f
MB
10765; return 0; }
10766EOF
e5a87141 10767if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10768 rm -rf conftest*
21d1c967 10769 ac_cv_sys_file_offset_bits=64
f6bcfd97 10770else
a0b9e27f
MB
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10775fi
a0b9e27f
MB
10776rm -f conftest*
10777
10778
247f5006 10779fi
a0b9e27f
MB
10780
10781echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10782
10783 if test "$ac_cv_sys_file_offset_bits" != no; then
10784 wx_largefile=yes
a0b9e27f 10785 cat >> confdefs.h <<EOF
21d1c967 10786#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10787EOF
21d1c967
GD
10788
10789 fi
10790
10791 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10792
10793 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
e5a87141 10794echo "configure:10795: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10795if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797else
10798
10799 cat > conftest.$ac_ext <<EOF
e5a87141 10800#line 10801 "configure"
f6bcfd97 10801#include "confdefs.h"
21d1c967
GD
10802#define _LARGE_FILES 1
10803 #include <sys/types.h>
a0b9e27f 10804int main() {
21d1c967
GD
10805typedef struct {
10806 unsigned int field: sizeof(off_t) == 8;
10807} wxlf;
10808
a0b9e27f
MB
10809; return 0; }
10810EOF
e5a87141 10811if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10812 rm -rf conftest*
21d1c967 10813 ac_cv_sys_large_files=1
f6bcfd97 10814else
a0b9e27f
MB
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 ac_cv_sys_large_files=no
5c6fa7d2 10819fi
a0b9e27f
MB
10820rm -f conftest*
10821
10822
247f5006 10823fi
a0b9e27f
MB
10824
10825echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10826
21d1c967
GD
10827 if test "$ac_cv_sys_large_files" != no; then
10828 wx_largefile=yes
a0b9e27f 10829 cat >> confdefs.h <<EOF
21d1c967 10830#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10831EOF
90dd450c 10832
90dd450c
VZ
10833 fi
10834
90dd450c 10835 fi
90dd450c 10836
a0b9e27f 10837 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
e5a87141 10838echo "configure:10839: checking if large file support is available" >&5
21d1c967 10839 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10840 cat >> confdefs.h <<\EOF
21d1c967 10841#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10842EOF
90dd450c 10843
90dd450c 10844 fi
a0b9e27f 10845 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10846fi
90dd450c 10847
8284b0c5 10848
f02444d0 10849if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10850 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10851 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10852 else
e26c13cf 10853 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10854 fi
e26c13cf 10855 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10856fi
10857
a0b9e27f 10858echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
e5a87141 10859echo "configure:10860: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10860if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10862else
21d1c967
GD
10863 ac_cv_c_bigendian=unknown
10864# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10865cat > conftest.$ac_ext <<EOF
e5a87141 10866#line 10867 "configure"
90dd450c 10867#include "confdefs.h"
21d1c967
GD
10868#include <sys/types.h>
10869#include <sys/param.h>
a0b9e27f 10870int main() {
21d1c967
GD
10871
10872#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10873 bogus endian macros
10874#endif
a0b9e27f
MB
10875; return 0; }
10876EOF
e5a87141 10877if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10878 rm -rf conftest*
21d1c967 10879 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10880cat > conftest.$ac_ext <<EOF
e5a87141 10881#line 10882 "configure"
90dd450c 10882#include "confdefs.h"
21d1c967
GD
10883#include <sys/types.h>
10884#include <sys/param.h>
a0b9e27f 10885int main() {
21d1c967
GD
10886
10887#if BYTE_ORDER != BIG_ENDIAN
10888 not big endian
10889#endif
a0b9e27f
MB
10890; return 0; }
10891EOF
e5a87141 10892if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10893 rm -rf conftest*
21d1c967 10894 ac_cv_c_bigendian=yes
3f345b47 10895else
a0b9e27f
MB
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -rf conftest*
10899 ac_cv_c_bigendian=no
3f345b47 10900fi
a0b9e27f 10901rm -f conftest*
3f345b47 10902else
a0b9e27f
MB
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
3f345b47 10905fi
a0b9e27f 10906rm -f conftest*
21d1c967
GD
10907if test $ac_cv_c_bigendian = unknown; then
10908if test "$cross_compiling" = yes; then
10909 ac_cv_c_bigendian=unknown
10f2d63a 10910else
a0b9e27f 10911 cat > conftest.$ac_ext <<EOF
e5a87141 10912#line 10913 "configure"
90dd450c 10913#include "confdefs.h"
21d1c967
GD
10914main () {
10915 /* Are we little or big endian? From Harbison&Steele. */
10916 union
10917 {
10918 long l;
10919 char c[sizeof (long)];
10920 } u;
10921 u.l = 1;
10922 exit (u.c[sizeof (long) - 1] == 1);
10923}
a0b9e27f 10924EOF
e5a87141 10925if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10926then
21d1c967 10927 ac_cv_c_bigendian=no
3f345b47 10928else
a0b9e27f
MB
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -fr conftest*
10932 ac_cv_c_bigendian=yes
247f5006 10933fi
a0b9e27f 10934rm -fr conftest*
247f5006 10935fi
a0b9e27f 10936
3f345b47 10937fi
8168de4c 10938fi
a0b9e27f
MB
10939
10940echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10941if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10942 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
10943fi
10944if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10945 cat >> confdefs.h <<\EOF
247f5006 10946#define WORDS_BIGENDIAN 1
a0b9e27f 10947EOF
247f5006
VZ
10948
10949fi
10950
10951
a0b9e27f 10952echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
e5a87141 10953echo "configure:10954: checking how to run the C++ preprocessor" >&5
247f5006 10954if test -z "$CXXCPP"; then
a0b9e27f
MB
10955if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10957else
a0b9e27f
MB
10958 ac_ext=C
10959# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10960ac_cpp='$CXXCPP $CPPFLAGS'
10961ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10962ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10963cross_compiling=$ac_cv_prog_cxx_cross
10964 CXXCPP="${CXX-g++} -E"
10965 cat > conftest.$ac_ext <<EOF
e5a87141 10966#line 10967 "configure"
5c6fa7d2 10967#include "confdefs.h"
a0b9e27f
MB
10968#include <stdlib.h>
10969EOF
10970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 10971{ (eval echo configure:10972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10973if test -z "$ac_err"; then
21d1c967 10974 :
698dcdb6 10975else
a0b9e27f
MB
10976 echo "$ac_err" >&5
10977 echo "configure: failed program was:" >&5
698dcdb6 10978 cat conftest.$ac_ext >&5
a0b9e27f
MB
10979 rm -rf conftest*
10980 CXXCPP=/lib/cpp
247f5006 10981fi
a0b9e27f
MB
10982rm -f conftest*
10983 ac_cv_prog_CXXCPP="$CXXCPP"
10984ac_ext=C
10985# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10986ac_cpp='$CXXCPP $CPPFLAGS'
10987ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10988ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10989cross_compiling=$ac_cv_prog_cxx_cross
328a083c 10990fi
90dd450c 10991fi
a0b9e27f
MB
10992CXXCPP="$ac_cv_prog_CXXCPP"
10993echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10994
1725144d 10995
21d1c967 10996 if test "$cross_compiling" = "yes"; then
a0b9e27f 10997 cat >> confdefs.h <<\EOF
21d1c967 10998#define wxUSE_IOSTREAMH 1
a0b9e27f 10999EOF
ab9b9eab 11000
21d1c967 11001 else
a0b9e27f
MB
11002
11003 ac_ext=C
11004# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11005ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11006ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11007ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11008cross_compiling=$ac_cv_prog_cxx_cross
52127426 11009
247f5006 11010
a0b9e27f 11011 for ac_hdr in iostream
21d1c967 11012do
a0b9e27f
MB
11013ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11014echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 11015echo "configure:11016: checking for $ac_hdr" >&5
a0b9e27f
MB
11016if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018else
11019 cat > conftest.$ac_ext <<EOF
e5a87141 11020#line 11021 "configure"
ab9b9eab 11021#include "confdefs.h"
a0b9e27f
MB
11022#include <$ac_hdr>
11023EOF
11024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 11025{ (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11026ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027if test -z "$ac_err"; then
11028 rm -rf conftest*
11029 eval "ac_cv_header_$ac_safe=yes"
11030else
11031 echo "$ac_err" >&5
11032 echo "configure: failed program was:" >&5
ab9b9eab 11033 cat conftest.$ac_ext >&5
a0b9e27f
MB
11034 rm -rf conftest*
11035 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11036fi
a0b9e27f 11037rm -f conftest*
90dd450c 11038fi
a0b9e27f
MB
11039if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11042 cat >> confdefs.h <<EOF
11043#define $ac_tr_hdr 1
11044EOF
11045
11046else
11047 echo "$ac_t""no" 1>&6
90dd450c 11048fi
21d1c967 11049done
10f2d63a 11050
8284b0c5 11051
21d1c967
GD
11052 if test "$ac_cv_header_iostream" = "yes" ; then
11053 :
11054 else
a0b9e27f 11055 cat >> confdefs.h <<\EOF
21d1c967 11056#define wxUSE_IOSTREAMH 1
a0b9e27f 11057EOF
788deba1 11058
90dd450c 11059 fi
ab9b9eab 11060
21d1c967 11061 ac_ext=c
a0b9e27f 11062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11063ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11066cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11067
21d1c967 11068 fi
ab9b9eab 11069
52127426 11070
8284b0c5 11071
a0b9e27f 11072 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
e5a87141 11073echo "configure:11074: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11074if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11076else
a0b9e27f
MB
11077
11078
11079 ac_ext=C
11080# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11081ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11082ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11083ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11084cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11085
8284b0c5 11086
a0b9e27f 11087 cat > conftest.$ac_ext <<EOF
e5a87141 11088#line 11089 "configure"
ab9b9eab 11089#include "confdefs.h"
21d1c967 11090
a0b9e27f
MB
11091
11092int main() {
21d1c967
GD
11093
11094 bool b = true;
11095
11096 return 0;
a0b9e27f
MB
11097
11098; return 0; }
11099EOF
e5a87141 11100if { (eval echo configure:11101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11101 rm -rf conftest*
11102
21d1c967 11103 wx_cv_cpp_bool=yes
a0b9e27f 11104
698dcdb6 11105else
a0b9e27f
MB
11106 echo "configure: failed program was:" >&5
11107 cat conftest.$ac_ext >&5
11108 rm -rf conftest*
11109
21d1c967 11110 wx_cv_cpp_bool=no
a0b9e27f
MB
11111
11112
698dcdb6 11113fi
a0b9e27f 11114rm -f conftest*
21d1c967
GD
11115
11116 ac_ext=c
a0b9e27f 11117# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11118ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11119ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11120ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11121cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11122
a0b9e27f 11123
247f5006 11124fi
a0b9e27f
MB
11125
11126echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11127
11128 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11129 cat >> confdefs.h <<\EOF
21d1c967 11130#define HAVE_BOOL 1
a0b9e27f 11131EOF
ab9b9eab 11132
21d1c967
GD
11133 fi
11134
52127426 11135
8284b0c5 11136
a0b9e27f 11137 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
e5a87141 11138echo "configure:11139: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11139if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11141else
a0b9e27f
MB
11142
11143
11144 ac_ext=C
11145# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11146ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11147ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11148ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11149cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11150
8284b0c5 11151
a0b9e27f 11152 cat > conftest.$ac_ext <<EOF
e5a87141 11153#line 11154 "configure"
986ecc86
VZ
11154#include "confdefs.h"
11155
11156 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11157
11158int main() {
986ecc86
VZ
11159
11160 return 0;
a0b9e27f
MB
11161
11162; return 0; }
11163EOF
e5a87141 11164if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11165 rm -rf conftest*
11166
11167 cat > conftest.$ac_ext <<EOF
e5a87141 11168#line 11169 "configure"
986ecc86
VZ
11169#include "confdefs.h"
11170
11171 class Foo { public: explicit Foo(int) {} };
11172 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11173
11174int main() {
986ecc86
VZ
11175
11176 TakeFoo(17);
11177 return 0;
a0b9e27f
MB
11178
11179; return 0; }
11180EOF
e5a87141 11181if { (eval echo configure:11182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11182 rm -rf conftest*
986ecc86
VZ
11183 wx_cv_explicit=no
11184else
a0b9e27f
MB
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 rm -rf conftest*
11188 wx_cv_explicit=yes
11189
986ecc86 11190fi
a0b9e27f
MB
11191rm -f conftest*
11192
986ecc86 11193else
a0b9e27f
MB
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 wx_cv_explicit=no
11198
986ecc86 11199fi
a0b9e27f 11200rm -f conftest*
986ecc86
VZ
11201
11202 ac_ext=c
a0b9e27f 11203# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11204ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11205ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11206ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11207cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11208
a0b9e27f 11209
247f5006 11210fi
a0b9e27f
MB
11211
11212echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11213
11214 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11215 cat >> confdefs.h <<\EOF
986ecc86 11216#define HAVE_EXPLICIT 1
a0b9e27f 11217EOF
986ecc86
VZ
11218
11219 fi
11220
8284b0c5 11221
521196a2 11222echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
e5a87141 11223echo "configure:11224: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11224if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226else
11227
11228 ac_ext=C
11229# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11230ac_cpp='$CXXCPP $CPPFLAGS'
11231ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11232ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11233cross_compiling=$ac_cv_prog_cxx_cross
11234
11235 cat > conftest.$ac_ext <<EOF
e5a87141 11236#line 11237 "configure"
521196a2
MB
11237#include "confdefs.h"
11238
11239int main() {
11240int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11241; return 0; }
11242EOF
e5a87141 11243if { (eval echo configure:11244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11244 rm -rf conftest*
11245 ac_cv_cxx_const_cast=yes
11246else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 ac_cv_cxx_const_cast=no
11251fi
11252rm -f conftest*
11253 ac_ext=c
11254# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11255ac_cpp='$CPP $CPPFLAGS'
11256ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11257ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11258cross_compiling=$ac_cv_prog_cc_cross
11259
11260
11261fi
11262
11263echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11264if test "$ac_cv_cxx_const_cast" = yes; then
11265 cat >> confdefs.h <<\EOF
11266#define HAVE_CONST_CAST
11267EOF
11268
11269fi
11270
11271
8284b0c5 11272
21d1c967
GD
11273SEARCH_INCLUDE="\
11274 /usr/local/include \
11275 \
11276 /usr/Motif-1.2/include \
11277 /usr/Motif-2.1/include \
11278 \
11279 /usr/include/Motif1.2 \
11280 /opt/xpm/include/X11 \
11281 /opt/GBxpm/include/ \
11282 /opt/GBxpm/X11/include/ \
11283 \
11284 /usr/Motif1.2/include \
11285 /usr/dt/include \
11286 /usr/openwin/include \
11287 \
11288 /usr/include/Xm \
11289 \
11290 /usr/X11R6/include \
11291 /usr/X11R6.4/include \
11292 /usr/X11R5/include \
11293 /usr/X11R4/include \
11294 \
11295 /usr/include/X11R6 \
11296 /usr/include/X11R5 \
11297 /usr/include/X11R4 \
11298 \
11299 /usr/local/X11R6/include \
11300 /usr/local/X11R5/include \
11301 /usr/local/X11R4/include \
11302 \
11303 /usr/local/include/X11R6 \
11304 /usr/local/include/X11R5 \
11305 /usr/local/include/X11R4 \
11306 \
11307 /usr/X11/include \
11308 /usr/include/X11 \
11309 /usr/local/X11/include \
11310 /usr/local/include/X11 \
11311 \
11312 /usr/X386/include \
11313 /usr/x386/include \
11314 /usr/XFree86/include/X11 \
11315 \
11316 X:/XFree86/include \
11317 X:/XFree86/include/X11 \
11318 \
11319 /usr/include/gtk \
11320 /usr/local/include/gtk \
11321 /usr/include/glib \
11322 /usr/local/include/glib \
11323 \
11324 /usr/include/qt \
11325 /usr/local/include/qt \
11326 \
11327 /usr/include/windows \
11328 /usr/include/wine \
11329 /usr/local/include/wine \
11330 \
11331 /usr/unsupported/include \
11332 /usr/athena/include \
11333 /usr/local/x11r5/include \
11334 /usr/lpp/Xamples/include \
11335 \
2b5f62a0 11336 /usr/openwin/share/include"
21d1c967
GD
11337
11338SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11339
8284b0c5 11340
a0b9e27f 11341cat > confcache <<\EOF
21d1c967
GD
11342# This file is a shell script that caches the results of configure
11343# tests run on this system so they can be shared between configure
a0b9e27f
MB
11344# scripts and configure runs. It is not useful on other systems.
11345# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11346#
a0b9e27f
MB
11347# By default, configure uses ./config.cache as the cache file,
11348# creating it if it does not exist already. You can give configure
11349# the --cache-file=FILE option to use a different cache file; that is
11350# what configure does when it calls configure scripts in
11351# subdirectories, so they share the cache.
11352# Giving --cache-file=/dev/null disables caching, for debugging configure.
11353# config.status only pays attention to the cache file if you give it the
11354# --recheck option to rerun configure.
21d1c967 11355#
a0b9e27f 11356EOF
21d1c967
GD
11357# The following way of writing the cache mishandles newlines in values,
11358# but we know of no workaround that is simple, portable, and efficient.
11359# So, don't put newlines in cache variables' values.
11360# Ultrix sh set writes to stderr and can't be redirected directly,
11361# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11362(set) 2>&1 |
11363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11364 *ac_space=\ *)
11365 # `set' does not quote correctly, so add quotes (double-quote substitution
11366 # turns \\\\ into \\, and sed turns \\ into \).
11367 sed -n \
11368 -e "s/'/'\\\\''/g" \
11369 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11370 ;;
11371 *)
11372 # `set' quotes correctly as required by POSIX, so do not add quotes.
11373 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11374 ;;
11375 esac >> confcache
11376if cmp -s $cache_file confcache; then
11377 :
11378else
21d1c967 11379 if test -w $cache_file; then
a0b9e27f
MB
11380 echo "updating cache $cache_file"
11381 cat confcache > $cache_file
21d1c967
GD
11382 else
11383 echo "not updating unwritable cache $cache_file"
11384 fi
ab9b9eab 11385fi
21d1c967 11386rm -f confcache
ab9b9eab 11387
247f5006 11388
a0b9e27f
MB
11389if test "$USE_LINUX" = 1; then
11390 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
e5a87141 11391echo "configure:11392: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11392if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11394else
11395
11396 cat > conftest.$ac_ext <<EOF
e5a87141 11397#line 11398 "configure"
ab9b9eab 11398#include "confdefs.h"
21d1c967 11399#include <features.h>
a0b9e27f 11400int main() {
ab9b9eab 11401
21d1c967
GD
11402 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11403 #error not glibc2.1
11404 #endif
a0b9e27f
MB
11405
11406; return 0; }
11407EOF
e5a87141 11408if { (eval echo configure:11409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11409 rm -rf conftest*
11410
21d1c967 11411 wx_cv_lib_glibc21=yes
a0b9e27f 11412
698dcdb6 11413else
a0b9e27f
MB
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 rm -rf conftest*
11417
21d1c967 11418 wx_cv_lib_glibc21=no
a0b9e27f
MB
11419
11420
5c6fa7d2 11421fi
a0b9e27f
MB
11422rm -f conftest*
11423
247f5006 11424fi
a0b9e27f
MB
11425
11426echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11427 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11428 cat >> confdefs.h <<\EOF
21d1c967 11429#define wxHAVE_GLIBC2 1
a0b9e27f 11430EOF
1e487827 11431
90dd450c 11432 fi
ab9b9eab
VZ
11433fi
11434
5c0a20c3
VZ
11435if test "x$wx_cv_lib_glibc21" = "xyes"; then
11436 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11437 cat >> confdefs.h <<\EOF
5c0a20c3 11438#define _GNU_SOURCE 1
a0b9e27f 11439EOF
5c0a20c3
VZ
11440
11441 fi
11442fi
11443
8284b0c5
MB
11444
11445
21d1c967
GD
11446REGEX_INCLUDE=
11447if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11448 cat >> confdefs.h <<\EOF
21d1c967 11449#define wxUSE_REGEX 1
a0b9e27f 11450EOF
698dcdb6 11451
8284b0c5 11452
21d1c967 11453 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11454 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11455echo $ac_n "checking for regex.h""... $ac_c" 1>&6
e5a87141 11456echo "configure:11457: checking for regex.h" >&5
a0b9e27f
MB
11457if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11459else
11460 cat > conftest.$ac_ext <<EOF
e5a87141 11461#line 11462 "configure"
247f5006
VZ
11462#include "confdefs.h"
11463#include <regex.h>
a0b9e27f
MB
11464EOF
11465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 11466{ (eval echo configure:11467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11468if test -z "$ac_err"; then
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=yes"
11471else
11472 echo "$ac_err" >&5
11473 echo "configure: failed program was:" >&5
21d1c967 11474 cat conftest.$ac_ext >&5
a0b9e27f
MB
11475 rm -rf conftest*
11476 eval "ac_cv_header_$ac_safe=no"
21d1c967 11477fi
a0b9e27f 11478rm -f conftest*
698dcdb6 11479fi
a0b9e27f
MB
11480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482 for ac_func in regcomp
21d1c967 11483do
a0b9e27f 11484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 11485echo "configure:11486: checking for $ac_func" >&5
a0b9e27f
MB
11486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11488else
a0b9e27f 11489 cat > conftest.$ac_ext <<EOF
e5a87141 11490#line 11491 "configure"
a0b9e27f
MB
11491#include "confdefs.h"
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func(); below. */
21d1c967
GD
11494#include <assert.h>
11495/* Override any gcc2 internal prototype to avoid an error. */
11496/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11497 builtin and then its argument prototype would still apply. */
11498char $ac_func();
11499
11500int main() {
11501
21d1c967
GD
11502/* The GNU C library defines this for functions which it implements
11503 to always fail with ENOSYS. Some functions are actually named
11504 something starting with __ and the normal name is an alias. */
11505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11506choke me
11507#else
a0b9e27f 11508$ac_func();
21d1c967 11509#endif
90dd450c 11510
a0b9e27f
MB
11511; return 0; }
11512EOF
e5a87141 11513if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11514 rm -rf conftest*
11515 eval "ac_cv_func_$ac_func=yes"
11516else
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
11520 eval "ac_cv_func_$ac_func=no"
11521fi
11522rm -f conftest*
11523fi
5c6fa7d2 11524
a0b9e27f
MB
11525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11528 cat >> confdefs.h <<EOF
11529#define $ac_tr_func 1
11530EOF
11531
11532else
11533 echo "$ac_t""no" 1>&6
698dcdb6 11534fi
21d1c967
GD
11535done
11536
a0b9e27f
MB
11537else
11538 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11539fi
11540
8284b0c5 11541
21d1c967
GD
11542 if test "x$ac_cv_func_regcomp" != "xyes"; then
11543 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11544 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11545 else
a0b9e27f 11546 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11547 wxUSE_REGEX=builtin
11548 fi
11549 else
11550 wxUSE_REGEX=sys
11551 fi
ab9b9eab 11552 fi
90dd450c 11553
21d1c967
GD
11554 if test "$wxUSE_REGEX" = "builtin" ; then
11555 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11556 fi
21d1c967 11557fi
90dd450c 11558
8284b0c5 11559
21d1c967
GD
11560ZLIB_INCLUDE=
11561ZLIB_LINK=
11562if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11563 cat >> confdefs.h <<\EOF
21d1c967 11564#define wxUSE_ZLIB 1
a0b9e27f 11565EOF
21d1c967 11566
8284b0c5 11567
21d1c967 11568 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11569 if test "$USE_DARWIN" = 1; then
11570 system_zlib_h_ok="yes"
11571 else
11572 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
e5a87141 11573echo "configure:11574: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11574if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11575 echo $ac_n "(cached) $ac_c" 1>&6
11576else
11577 if test "$cross_compiling" = yes; then
89e6bf6d 11578 unset ac_cv_header_zlib_h
d775acfa 11579
d643b80e
VZ
11580else
11581 cat > conftest.$ac_ext <<EOF
e5a87141 11582#line 11583 "configure"
d643b80e
VZ
11583#include "confdefs.h"
11584
d775acfa
VZ
11585 #include <zlib.h>
11586 #include <stdio.h>
d643b80e 11587
d775acfa
VZ
11588
11589 int main()
11590 {
11591 FILE *f=fopen("conftestval", "w");
11592 if (!f) exit(1);
11593 fprintf(f, "%s",
11594 ZLIB_VERSION[0] == '1' &&
11595 (ZLIB_VERSION[2] > '1' ||
11596 (ZLIB_VERSION[2] == '1' &&
11597 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11598 exit(0);
11599 }
11600
d643b80e 11601
d643b80e 11602EOF
e5a87141 11603if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11604then
11605 ac_cv_header_zlib_h=`cat conftestval`
11606else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -fr conftest*
11610 ac_cv_header_zlib_h=no
11611fi
11612rm -fr conftest*
11613fi
11614
d775acfa 11615
d643b80e
VZ
11616fi
11617
11618echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11619 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11620echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
e5a87141 11621echo "configure:11622: checking for zlib.h" >&5
89e6bf6d
VZ
11622if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11624else
11625 cat > conftest.$ac_ext <<EOF
e5a87141 11626#line 11627 "configure"
89e6bf6d
VZ
11627#include "confdefs.h"
11628#include <zlib.h>
11629EOF
11630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 11631{ (eval echo configure:11632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11633if test -z "$ac_err"; then
11634 rm -rf conftest*
11635 eval "ac_cv_header_$ac_safe=yes"
11636else
11637 echo "$ac_err" >&5
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 rm -rf conftest*
11641 eval "ac_cv_header_$ac_safe=no"
11642fi
11643rm -f conftest*
11644fi
11645if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 :
11648else
11649 echo "$ac_t""no" 1>&6
11650fi
11651
d643b80e 11652
d775acfa
VZ
11653 system_zlib_h_ok=$ac_cv_header_zlib_h
11654 fi
11655
11656 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11657 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
e5a87141 11658echo "configure:11659: checking for deflate in -lz" >&5
a0b9e27f
MB
11659ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11660if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11662else
a0b9e27f 11663 ac_save_LIBS="$LIBS"
21d1c967 11664LIBS="-lz $LIBS"
a0b9e27f 11665cat > conftest.$ac_ext <<EOF
e5a87141 11666#line 11667 "configure"
ab9b9eab 11667#include "confdefs.h"
21d1c967
GD
11668/* Override any gcc2 internal prototype to avoid an error. */
11669/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11670 builtin and then its argument prototype would still apply. */
11671char deflate();
11672
11673int main() {
11674deflate()
11675; return 0; }
11676EOF
e5a87141 11677if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11678 rm -rf conftest*
11679 eval "ac_cv_lib_$ac_lib_var=yes"
11680else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11685fi
a0b9e27f
MB
11686rm -f conftest*
11687LIBS="$ac_save_LIBS"
698dcdb6 11688
698dcdb6 11689fi
a0b9e27f
MB
11690if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 ZLIB_LINK=" -lz"
11693else
11694 echo "$ac_t""no" 1>&6
11695fi
698dcdb6 11696
d643b80e 11697 fi
247f5006 11698
21d1c967
GD
11699 if test "x$ZLIB_LINK" = "x" ; then
11700 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11701 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11702 else
d643b80e 11703 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11704 wxUSE_ZLIB=builtin
11705 fi
11706 else
11707 wxUSE_ZLIB=sys
11708 fi
11709 fi
11710
11711 if test "$wxUSE_ZLIB" = "builtin" ; then
11712 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11713 fi
ab9b9eab
VZ
11714fi
11715
8284b0c5 11716
21d1c967
GD
11717PNG_INCLUDE=
11718PNG_LINK=
11719if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11720 cat >> confdefs.h <<\EOF
21d1c967 11721#define wxUSE_LIBPNG 1
a0b9e27f 11722EOF
90dd450c 11723
8284b0c5 11724
21d1c967 11725 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11726 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11727 wxUSE_LIBPNG=sys
11728 fi
90dd450c 11729
21d1c967 11730 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11731 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11732 wxUSE_LIBPNG=builtin
11733 fi
11734
11735 if test "$wxUSE_MGL" != 1 ; then
11736 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11737 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
e5a87141 11738echo "configure:11739: checking for png.h > 0.90" >&5
5d3f766d
VZ
11739if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11741else
11742 if test "$cross_compiling" = yes; then
89e6bf6d 11743 unset ac_cv_header_png_h
5d3f766d
VZ
11744
11745else
11746 cat > conftest.$ac_ext <<EOF
e5a87141 11747#line 11748 "configure"
5d3f766d
VZ
11748#include "confdefs.h"
11749
11750 #include <png.h>
11751 #include <stdio.h>
11752
11753 int main()
11754 {
11755 FILE *f=fopen("conftestval", "w");
11756 if (!f) exit(1);
11757 fprintf(f, "%s",
11758 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11759 exit(0);
11760 }
11761
11762EOF
e5a87141 11763if { (eval echo configure:11764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11764then
11765 ac_cv_header_png_h=`cat conftestval`
11766else
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11769 rm -fr conftest*
11770 ac_cv_header_png_h=no
11771fi
11772rm -fr conftest*
11773fi
11774
11775
11776fi
11777
11778echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11779 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11780echo $ac_n "checking for png.h""... $ac_c" 1>&6
e5a87141 11781echo "configure:11782: checking for png.h" >&5
89e6bf6d
VZ
11782if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11784else
11785 cat > conftest.$ac_ext <<EOF
e5a87141 11786#line 11787 "configure"
89e6bf6d
VZ
11787#include "confdefs.h"
11788#include <png.h>
11789EOF
11790ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 11791{ (eval echo configure:11792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11792ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11793if test -z "$ac_err"; then
11794 rm -rf conftest*
11795 eval "ac_cv_header_$ac_safe=yes"
11796else
11797 echo "$ac_err" >&5
11798 echo "configure: failed program was:" >&5
11799 cat conftest.$ac_ext >&5
11800 rm -rf conftest*
11801 eval "ac_cv_header_$ac_safe=no"
11802fi
11803rm -f conftest*
11804fi
11805if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11806 echo "$ac_t""yes" 1>&6
11807 :
11808else
11809 echo "$ac_t""no" 1>&6
11810fi
11811
5d3f766d
VZ
11812
11813 if test "$ac_cv_header_png_h" = "yes"; then
11814 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
e5a87141 11815echo "configure:11816: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11816ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11817if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11819else
a0b9e27f 11820 ac_save_LIBS="$LIBS"
21d1c967 11821LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11822cat > conftest.$ac_ext <<EOF
e5a87141 11823#line 11824 "configure"
90dd450c 11824#include "confdefs.h"
21d1c967
GD
11825/* Override any gcc2 internal prototype to avoid an error. */
11826/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11827 builtin and then its argument prototype would still apply. */
11828char png_check_sig();
90dd450c 11829
a0b9e27f
MB
11830int main() {
11831png_check_sig()
11832; return 0; }
11833EOF
e5a87141 11834if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11835 rm -rf conftest*
11836 eval "ac_cv_lib_$ac_lib_var=yes"
11837else
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11840 rm -rf conftest*
11841 eval "ac_cv_lib_$ac_lib_var=no"
11842fi
11843rm -f conftest*
11844LIBS="$ac_save_LIBS"
247f5006 11845
90dd450c 11846fi
a0b9e27f
MB
11847if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 PNG_LINK=" -lpng"
11850else
11851 echo "$ac_t""no" 1>&6
11852fi
90dd450c 11853
5d3f766d 11854 fi
247f5006 11855
21d1c967
GD
11856 if test "x$PNG_LINK" = "x" ; then
11857 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11858 { 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 11859 else
0c98a14e 11860 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11861 wxUSE_LIBPNG=builtin
11862 fi
11863 else
2b5f62a0 11864 wxUSE_LIBPNG=sys
21d1c967
GD
11865 fi
11866 fi
11867 fi
90dd450c 11868
21d1c967
GD
11869 if test "$wxUSE_LIBPNG" = "builtin" ; then
11870 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11871 fi
90dd450c 11872
21d1c967 11873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11874fi
11875
8284b0c5 11876
21d1c967
GD
11877JPEG_INCLUDE=
11878JPEG_LINK=
11879if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11880 cat >> confdefs.h <<\EOF
21d1c967 11881#define wxUSE_LIBJPEG 1
a0b9e27f 11882EOF
90dd450c 11883
8284b0c5 11884
21d1c967 11885 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11886 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11887 wxUSE_LIBJPEG=sys
11888 fi
90dd450c 11889
21d1c967
GD
11890 if test "$wxUSE_MGL" != 1 ; then
11891 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11892 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
e5a87141 11893echo "configure:11894: checking for jpeglib.h" >&5
a0b9e27f
MB
11894 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11895 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11896else
a0b9e27f 11897 cat > conftest.$ac_ext <<EOF
e5a87141 11898#line 11899 "configure"
21d1c967 11899#include "confdefs.h"
90dd450c 11900
21d1c967
GD
11901 #undef HAVE_STDLIB_H
11902 #include <stdio.h>
11903 #include <jpeglib.h>
a0b9e27f
MB
11904
11905int main() {
90dd450c 11906
a0b9e27f
MB
11907
11908; return 0; }
11909EOF
e5a87141 11910if { (eval echo configure:11911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11911 rm -rf conftest*
21d1c967 11912 ac_cv_header_jpeglib_h=yes
90dd450c 11913else
a0b9e27f
MB
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 rm -rf conftest*
11917 ac_cv_header_jpeglib_h=no
11918
90dd450c 11919fi
a0b9e27f
MB
11920rm -f conftest*
11921
90dd450c
VZ
11922fi
11923
a0b9e27f 11924 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11925
21d1c967 11926 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11927 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
e5a87141 11928echo "configure:11929: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11929ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11930if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11932else
a0b9e27f 11933 ac_save_LIBS="$LIBS"
21d1c967 11934LIBS="-ljpeg $LIBS"
a0b9e27f 11935cat > conftest.$ac_ext <<EOF
e5a87141 11936#line 11937 "configure"
21d1c967
GD
11937#include "confdefs.h"
11938/* Override any gcc2 internal prototype to avoid an error. */
11939/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11940 builtin and then its argument prototype would still apply. */
11941char jpeg_read_header();
11942
11943int main() {
11944jpeg_read_header()
11945; return 0; }
11946EOF
e5a87141 11947if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11948 rm -rf conftest*
11949 eval "ac_cv_lib_$ac_lib_var=yes"
11950else
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 rm -rf conftest*
11954 eval "ac_cv_lib_$ac_lib_var=no"
11955fi
11956rm -f conftest*
11957LIBS="$ac_save_LIBS"
11958
11959fi
11960if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
21d1c967 11962 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
11963else
11964 echo "$ac_t""no" 1>&6
90dd450c
VZ
11965fi
11966
21d1c967 11967 fi
90dd450c 11968
21d1c967
GD
11969 if test "x$JPEG_LINK" = "x" ; then
11970 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 11971 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11972 else
a0b9e27f 11973 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11974 wxUSE_LIBJPEG=builtin
11975 fi
11976 else
11977 wxUSE_LIBJPEG=sys
11978 fi
11979 fi
11980 fi
90dd450c 11981
21d1c967
GD
11982 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11983 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11984 fi
11985fi
90dd450c 11986
8284b0c5 11987
21d1c967
GD
11988TIFF_INCLUDE=
11989TIFF_LINK=
2b5f62a0 11990TIFF_PREREQ_LINKS=-lm
21d1c967 11991if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 11992 cat >> confdefs.h <<\EOF
21d1c967 11993#define wxUSE_LIBTIFF 1
a0b9e27f 11994EOF
21d1c967 11995
8284b0c5 11996
21d1c967 11997 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
11998 if test "$wxUSE_LIBJPEG" = "sys"; then
11999 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12000 fi
12001 if test "$wxUSE_ZLIB" = "sys"; then
12002 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12003 fi
a0b9e27f
MB
12004 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12005echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
e5a87141 12006echo "configure:12007: checking for tiffio.h" >&5
a0b9e27f
MB
12007if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009else
12010 cat > conftest.$ac_ext <<EOF
e5a87141 12011#line 12012 "configure"
247f5006
VZ
12012#include "confdefs.h"
12013#include <tiffio.h>
a0b9e27f
MB
12014EOF
12015ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 12016{ (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12017ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12018if test -z "$ac_err"; then
12019 rm -rf conftest*
12020 eval "ac_cv_header_$ac_safe=yes"
12021else
12022 echo "$ac_err" >&5
12023 echo "configure: failed program was:" >&5
21d1c967 12024 cat conftest.$ac_ext >&5
a0b9e27f
MB
12025 rm -rf conftest*
12026 eval "ac_cv_header_$ac_safe=no"
21d1c967 12027fi
a0b9e27f 12028rm -f conftest*
21d1c967 12029fi
a0b9e27f
MB
12030if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12031 echo "$ac_t""yes" 1>&6
12032 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
e5a87141 12033echo "configure:12034: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12034ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12037else
a0b9e27f 12038 ac_save_LIBS="$LIBS"
2b5f62a0 12039LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12040cat > conftest.$ac_ext <<EOF
e5a87141 12041#line 12042 "configure"
ab9b9eab
VZ
12042#include "confdefs.h"
12043/* Override any gcc2 internal prototype to avoid an error. */
12044/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12045 builtin and then its argument prototype would still apply. */
12046char TIFFError();
ab9b9eab 12047
a0b9e27f
MB
12048int main() {
12049TIFFError()
12050; return 0; }
12051EOF
e5a87141 12052if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=yes"
12055else
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -rf conftest*
12059 eval "ac_cv_lib_$ac_lib_var=no"
12060fi
12061rm -f conftest*
12062LIBS="$ac_save_LIBS"
247f5006 12063
21d1c967 12064fi
a0b9e27f
MB
12065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 TIFF_LINK=" -ltiff"
12068else
12069 echo "$ac_t""no" 1>&6
12070fi
cd6d6d5b 12071
a0b9e27f
MB
12072
12073else
12074 echo "$ac_t""no" 1>&6
12075fi
8284b0c5 12076
247f5006 12077
21d1c967
GD
12078 if test "x$TIFF_LINK" = "x" ; then
12079 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12080 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12081 else
a0b9e27f 12082 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12083 wxUSE_LIBTIFF=builtin
d8356fa3 12084 fi
d8356fa3 12085 else
21d1c967 12086 wxUSE_LIBTIFF=sys
d8356fa3 12087 fi
21d1c967 12088 fi
d8356fa3 12089
21d1c967
GD
12090 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12091 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12092 fi
21d1c967 12093fi
10f2d63a 12094
8284b0c5 12095
21d1c967 12096AFMINSTALL=
2b5f62a0 12097WIN32INSTALL=
90dd450c 12098
21d1c967
GD
12099TOOLKIT=
12100TOOLKIT_INCLUDE=
12101WIDGET_SET=
12102
12103if test "$USE_WIN32" = 1 ; then
a0b9e27f 12104 for ac_hdr in w32api.h
21d1c967 12105do
a0b9e27f
MB
12106ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12107echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 12108echo "configure:12109: checking for $ac_hdr" >&5
a0b9e27f
MB
12109if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12110 echo $ac_n "(cached) $ac_c" 1>&6
12111else
12112 cat > conftest.$ac_ext <<EOF
e5a87141 12113#line 12114 "configure"
247f5006 12114#include "confdefs.h"
a0b9e27f
MB
12115#include <$ac_hdr>
12116EOF
12117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 12118{ (eval echo configure:12119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12120if test -z "$ac_err"; then
12121 rm -rf conftest*
12122 eval "ac_cv_header_$ac_safe=yes"
12123else
12124 echo "$ac_err" >&5
12125 echo "configure: failed program was:" >&5
f79bd02d 12126 cat conftest.$ac_ext >&5
a0b9e27f
MB
12127 rm -rf conftest*
12128 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12129fi
a0b9e27f 12130rm -f conftest*
21d1c967 12131fi
a0b9e27f
MB
12132if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12135 cat >> confdefs.h <<EOF
12136#define $ac_tr_hdr 1
12137EOF
12138
12139else
12140 echo "$ac_t""no" 1>&6
21d1c967
GD
12141fi
12142done
f79bd02d 12143
a0b9e27f
MB
12144 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12145echo $ac_n "checking for windows.h""... $ac_c" 1>&6
e5a87141 12146echo "configure:12147: checking for windows.h" >&5
a0b9e27f
MB
12147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12149else
a0b9e27f 12150 cat > conftest.$ac_ext <<EOF
e5a87141 12151#line 12152 "configure"
247f5006
VZ
12152#include "confdefs.h"
12153#include <windows.h>
a0b9e27f
MB
12154EOF
12155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 12156{ (eval echo configure:12157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12158if test -z "$ac_err"; then
12159 rm -rf conftest*
12160 eval "ac_cv_header_$ac_safe=yes"
12161else
12162 echo "$ac_err" >&5
12163 echo "configure: failed program was:" >&5
90dd450c 12164 cat conftest.$ac_ext >&5
a0b9e27f
MB
12165 rm -rf conftest*
12166 eval "ac_cv_header_$ac_safe=no"
90dd450c 12167fi
a0b9e27f 12168rm -f conftest*
90dd450c 12169fi
a0b9e27f
MB
12170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12171 echo "$ac_t""yes" 1>&6
21d1c967 12172 :
90dd450c 12173else
a0b9e27f 12174 echo "$ac_t""no" 1>&6
21d1c967 12175
a0b9e27f
MB
12176 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12177
5c6fa7d2 12178fi
7b4a847f 12179
5c6fa7d2 12180
a0b9e27f 12181 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
e5a87141 12182echo "configure:12183: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12183if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12184 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12185else
a0b9e27f
MB
12186
12187 cat > conftest.$ac_ext <<EOF
e5a87141 12188#line 12189 "configure"
f79bd02d 12189#include "confdefs.h"
21d1c967 12190#include <w32api.h>
a0b9e27f 12191int main() {
f79bd02d 12192
21d1c967
GD
12193 #define wxCHECK_W32API_VERSION( major, minor ) \
12194 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12195 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12196 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12197
12198 #if !wxCHECK_W32API_VERSION(1,1)
12199 #error You need w32api 1.1 or newer
12200 #endif
a0b9e27f
MB
12201
12202; return 0; }
12203EOF
e5a87141 12204if { (eval echo configure:12205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12205 rm -rf conftest*
12206
21d1c967 12207 wx_cv_w32api_win32_ie=yes
a0b9e27f 12208
f79bd02d 12209else
a0b9e27f
MB
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 rm -rf conftest*
12213
21d1c967 12214 wx_cv_w32api_win32_ie=no
a0b9e27f 12215
5c6fa7d2 12216fi
a0b9e27f
MB
12217rm -f conftest*
12218
247f5006 12219fi
a0b9e27f
MB
12220
12221echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12222 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12223 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12224 fi
f79bd02d 12225
21d1c967
GD
12226 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12227
12228 case "${host}" in
12229 *-*-cygwin* )
12230 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12231 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12232 esac
f79bd02d 12233
21d1c967
GD
12234 if test "$wxUSE_ODBC" = "yes" ; then
12235 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12236 fi
f79bd02d 12237
21d1c967
GD
12238 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12239 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12240
12241 WIN32INSTALL=win32install
f79bd02d 12242fi
f79bd02d 12243
b2fee376 12244if test "$USE_DARWIN" = 1; then
50bcbd3d 12245 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12246 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12247 else
12248 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12249 fi
12250fi
12251
21d1c967
GD
12252if test "$wxUSE_GUI" = "yes"; then
12253 USE_GUI=1
f79bd02d 12254
21d1c967 12255 GUI_TK_LIBRARY=
f79bd02d 12256
21d1c967
GD
12257 WXGTK12=
12258 WXGTK127=
12259 WXGTK20=
f79bd02d 12260
21d1c967
GD
12261 if test "$wxUSE_MSW" = 1 ; then
12262 TOOLKIT=MSW
12263 GUIDIST=MSW_DIST
f79bd02d 12264
89e6bf6d 12265 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12266 fi
12267
21d1c967 12268 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12269 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
e5a87141 12270echo "configure:12271: checking for GTK+ version" >&5
21d1c967
GD
12271
12272 gtk_version_cached=1
a0b9e27f
MB
12273 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12275else
a0b9e27f 12276
21d1c967 12277 gtk_version_cached=0
a0b9e27f 12278 echo "$ac_t""" 1>&6
f79bd02d 12279
21d1c967
GD
12280 GTK_MODULES=
12281 if test "$wxUSE_THREADS" = "yes"; then
12282 GTK_MODULES=gthread
12283 fi
f79bd02d 12284
2b5f62a0 12285 wx_cv_lib_gtk=
21d1c967
GD
12286 if test "x$wxUSE_GTK2" = "xyes"; then
12287 # Check whether --enable-gtktest or --disable-gtktest was given.
12288if test "${enable_gtktest+set}" = set; then
12289 enableval="$enable_gtktest"
a0b9e27f 12290 :
f79bd02d 12291else
21d1c967 12292 enable_gtktest=yes
a0b9e27f
MB
12293fi
12294
f79bd02d 12295
21d1c967
GD
12296 pkg_config_args=gtk+-2.0
12297 for module in . $GTK_MODULES
12298 do
12299 case "$module" in
a0b9e27f 12300 gthread)
21d1c967
GD
12301 pkg_config_args="$pkg_config_args gthread-2.0"
12302 ;;
12303 esac
12304 done
12305
12306 no_gtk=""
f79bd02d 12307
21d1c967
GD
12308 # Extract the first word of "pkg-config", so it can be a program name with args.
12309set dummy pkg-config; ac_word=$2
a0b9e27f 12310echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 12311echo "configure:12312: checking for $ac_word" >&5
a0b9e27f
MB
12312if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12314else
a0b9e27f
MB
12315 case "$PKG_CONFIG" in
12316 /*)
21d1c967
GD
12317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12318 ;;
a0b9e27f
MB
12319 ?:/*)
12320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12321 ;;
21d1c967 12322 *)
a0b9e27f
MB
12323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12324 ac_dummy="$PATH"
12325 for ac_dir in $ac_dummy; do
12326 test -z "$ac_dir" && ac_dir=.
12327 if test -f $ac_dir/$ac_word; then
12328 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12329 break
12330 fi
12331 done
12332 IFS="$ac_save_ifs"
21d1c967
GD
12333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12334 ;;
12335esac
f79bd02d 12336fi
a0b9e27f 12337PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12338if test -n "$PKG_CONFIG"; then
a0b9e27f 12339 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12340else
a0b9e27f 12341 echo "$ac_t""no" 1>&6
f79bd02d
JS
12342fi
12343
8284b0c5 12344
21d1c967
GD
12345 if test x$PKG_CONFIG != xno ; then
12346 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12347 :
12348 else
12349 echo *** pkg-config too old; version 0.7 or better required.
12350 no_gtk=yes
12351 PKG_CONFIG=no
12352 fi
12353 else
12354 no_gtk=yes
12355 fi
f79bd02d 12356
21d1c967 12357 min_gtk_version=2.0.0
a0b9e27f 12358 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
e5a87141 12359echo "configure:12360: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12360
21d1c967
GD
12361 if test x$PKG_CONFIG != xno ; then
12362 ## don't try to run the test against uninstalled libtool libs
12363 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12364 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12365 enable_gtktest=no
12366 fi
f79bd02d 12367
21d1c967
GD
12368 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12369 :
12370 else
12371 no_gtk=yes
12372 fi
12373 fi
f79bd02d 12374
21d1c967
GD
12375 if test x"$no_gtk" = x ; then
12376 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12377 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12378 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12380 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12382 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12383 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12384 if test "x$enable_gtktest" = "xyes" ; then
12385 ac_save_CFLAGS="$CFLAGS"
12386 ac_save_LIBS="$LIBS"
12387 CFLAGS="$CFLAGS $GTK_CFLAGS"
12388 LIBS="$GTK_LIBS $LIBS"
12389 rm -f conf.gtktest
12390 if test "$cross_compiling" = yes; then
12391 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12392else
a0b9e27f 12393 cat > conftest.$ac_ext <<EOF
e5a87141 12394#line 12395 "configure"
f79bd02d 12395#include "confdefs.h"
f79bd02d 12396
21d1c967
GD
12397#include <gtk/gtk.h>
12398#include <stdio.h>
12399#include <stdlib.h>
f79bd02d 12400
a0b9e27f 12401int
21d1c967
GD
12402main ()
12403{
12404 int major, minor, micro;
12405 char *tmp_version;
f79bd02d 12406
21d1c967 12407 system ("touch conf.gtktest");
f79bd02d 12408
21d1c967
GD
12409 /* HP/UX 9 (%@#!) writes to sscanf strings */
12410 tmp_version = g_strdup("$min_gtk_version");
12411 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12412 printf("%s, bad version string\n", "$min_gtk_version");
12413 exit(1);
12414 }
f79bd02d 12415
21d1c967
GD
12416 if ((gtk_major_version != $gtk_config_major_version) ||
12417 (gtk_minor_version != $gtk_config_minor_version) ||
12418 (gtk_micro_version != $gtk_config_micro_version))
12419 {
a0b9e27f 12420 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12421 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12422 gtk_major_version, gtk_minor_version, gtk_micro_version);
12423 printf ("*** was found! If pkg-config was correct, then it is best\n");
12424 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12425 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12426 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12427 printf("*** required on your system.\n");
12428 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12429 printf("*** to point to the correct configuration files\n");
a0b9e27f 12430 }
21d1c967
GD
12431 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12432 (gtk_minor_version != GTK_MINOR_VERSION) ||
12433 (gtk_micro_version != GTK_MICRO_VERSION))
12434 {
12435 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12436 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12437 printf("*** library (version %d.%d.%d)\n",
12438 gtk_major_version, gtk_minor_version, gtk_micro_version);
12439 }
12440 else
12441 {
12442 if ((gtk_major_version > major) ||
12443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12445 {
12446 return 0;
12447 }
12448 else
12449 {
12450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12451 gtk_major_version, gtk_minor_version, gtk_micro_version);
12452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12453 major, minor, micro);
12454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12455 printf("***\n");
12456 printf("*** If you have already installed a sufficiently new version, this error\n");
12457 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12459 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12460 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12462 printf("*** so that the correct libraries are found at run-time))\n");
12463 }
12464 }
12465 return 1;
12466}
f79bd02d 12467
a0b9e27f 12468EOF
e5a87141 12469if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12470then
21d1c967 12471 :
f79bd02d 12472else
a0b9e27f
MB
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -fr conftest*
12476 no_gtk=yes
f79bd02d 12477fi
a0b9e27f 12478rm -fr conftest*
f79bd02d 12479fi
a0b9e27f 12480
21d1c967
GD
12481 CFLAGS="$ac_save_CFLAGS"
12482 LIBS="$ac_save_LIBS"
12483 fi
12484 fi
12485 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12486 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12487 wx_cv_lib_gtk=2.0
21d1c967 12488 else
a0b9e27f 12489 echo "$ac_t""no" 1>&6
21d1c967
GD
12490 if test "$PKG_CONFIG" = "no" ; then
12491 echo "*** A new enough version of pkg-config was not found."
12492 echo "*** See http://pkgconfig.sourceforge.net"
12493 else
12494 if test -f conf.gtktest ; then
12495 :
12496 else
12497 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12498 ac_save_CFLAGS="$CFLAGS"
12499 ac_save_LIBS="$LIBS"
21d1c967
GD
12500 CFLAGS="$CFLAGS $GTK_CFLAGS"
12501 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12502 cat > conftest.$ac_ext <<EOF
e5a87141 12503#line 12504 "configure"
f79bd02d 12504#include "confdefs.h"
21d1c967
GD
12505
12506#include <gtk/gtk.h>
12507#include <stdio.h>
f79bd02d 12508
a0b9e27f
MB
12509int main() {
12510 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12511; return 0; }
12512EOF
e5a87141 12513if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12514 rm -rf conftest*
21d1c967
GD
12515 echo "*** The test program compiled, but did not run. This usually means"
12516 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12517 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12520 echo "*** is required on your system"
12521 echo "***"
12522 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12524else
a0b9e27f
MB
12525 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 rm -rf conftest*
12528 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12529 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12530fi
a0b9e27f 12531rm -f conftest*
21d1c967
GD
12532 CFLAGS="$ac_save_CFLAGS"
12533 LIBS="$ac_save_LIBS"
12534 fi
12535 fi
12536 GTK_CFLAGS=""
12537 GTK_LIBS=""
12538 :
12539 fi
a0b9e27f
MB
12540
12541
21d1c967 12542 rm -f conf.gtktest
f79bd02d 12543
2b5f62a0 12544 else
a0b9e27f 12545 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12546if test "${with_gtk_prefix+set}" = set; then
12547 withval="$with_gtk_prefix"
12548 gtk_config_prefix="$withval"
12549else
12550 gtk_config_prefix=""
a0b9e27f 12551fi
f79bd02d 12552
21d1c967
GD
12553# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12554if test "${with_gtk_exec_prefix+set}" = set; then
12555 withval="$with_gtk_exec_prefix"
12556 gtk_config_exec_prefix="$withval"
12557else
12558 gtk_config_exec_prefix=""
a0b9e27f
MB
12559fi
12560
21d1c967
GD
12561# Check whether --enable-gtktest or --disable-gtktest was given.
12562if test "${enable_gtktest+set}" = set; then
12563 enableval="$enable_gtktest"
a0b9e27f 12564 :
21d1c967
GD
12565else
12566 enable_gtktest=yes
a0b9e27f
MB
12567fi
12568
21d1c967
GD
12569
12570 for module in . $GTK_MODULES
12571 do
12572 case "$module" in
a0b9e27f 12573 gthread)
21d1c967
GD
12574 gtk_config_args="$gtk_config_args gthread"
12575 ;;
12576 esac
12577 done
12578
12579 if test x$gtk_config_exec_prefix != x ; then
12580 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12581 if test x${GTK_CONFIG+set} != xset ; then
12582 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12583 fi
12584 fi
12585 if test x$gtk_config_prefix != x ; then
12586 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12587 if test x${GTK_CONFIG+set} != xset ; then
12588 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12589 fi
12590 fi
12591
12592 # Extract the first word of "gtk-config", so it can be a program name with args.
12593set dummy gtk-config; ac_word=$2
a0b9e27f 12594echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 12595echo "configure:12596: checking for $ac_word" >&5
a0b9e27f
MB
12596if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12597 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12598else
a0b9e27f
MB
12599 case "$GTK_CONFIG" in
12600 /*)
21d1c967
GD
12601 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12602 ;;
a0b9e27f
MB
12603 ?:/*)
12604 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12605 ;;
21d1c967 12606 *)
a0b9e27f
MB
12607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12608 ac_dummy="$PATH"
12609 for ac_dir in $ac_dummy; do
12610 test -z "$ac_dir" && ac_dir=.
12611 if test -f $ac_dir/$ac_word; then
12612 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12613 break
12614 fi
12615 done
12616 IFS="$ac_save_ifs"
21d1c967
GD
12617 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12618 ;;
12619esac
12620fi
a0b9e27f 12621GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12622if test -n "$GTK_CONFIG"; then
a0b9e27f 12623 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12624else
a0b9e27f 12625 echo "$ac_t""no" 1>&6
21d1c967
GD
12626fi
12627
12628 min_gtk_version=1.2.7
a0b9e27f 12629 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e5a87141 12630echo "configure:12631: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12631 no_gtk=""
12632 if test "$GTK_CONFIG" = "no" ; then
12633 no_gtk=yes
12634 else
12635 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12636 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12637 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12638 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12639 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12641 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12643 if test "x$enable_gtktest" = "xyes" ; then
12644 ac_save_CFLAGS="$CFLAGS"
12645 ac_save_LIBS="$LIBS"
12646 CFLAGS="$CFLAGS $GTK_CFLAGS"
12647 LIBS="$GTK_LIBS $LIBS"
12648 rm -f conf.gtktest
12649 if test "$cross_compiling" = yes; then
12650 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12651else
a0b9e27f 12652 cat > conftest.$ac_ext <<EOF
e5a87141 12653#line 12654 "configure"
f79bd02d
JS
12654#include "confdefs.h"
12655
21d1c967
GD
12656#include <gtk/gtk.h>
12657#include <stdio.h>
12658#include <stdlib.h>
f79bd02d 12659
a0b9e27f 12660int
21d1c967
GD
12661main ()
12662{
12663 int major, minor, micro;
12664 char *tmp_version;
12665
12666 system ("touch conf.gtktest");
12667
12668 /* HP/UX 9 (%@#!) writes to sscanf strings */
12669 tmp_version = g_strdup("$min_gtk_version");
12670 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12671 printf("%s, bad version string\n", "$min_gtk_version");
12672 exit(1);
12673 }
90dd450c 12674
21d1c967
GD
12675 if ((gtk_major_version != $gtk_config_major_version) ||
12676 (gtk_minor_version != $gtk_config_minor_version) ||
12677 (gtk_micro_version != $gtk_config_micro_version))
12678 {
a0b9e27f 12679 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12680 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12681 gtk_major_version, gtk_minor_version, gtk_micro_version);
12682 printf ("*** was found! If gtk-config was correct, then it is best\n");
12683 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12684 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12685 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12686 printf("*** required on your system.\n");
12687 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12688 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12689 printf("*** before re-running configure\n");
a0b9e27f 12690 }
21d1c967
GD
12691#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12692 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12693 (gtk_minor_version != GTK_MINOR_VERSION) ||
12694 (gtk_micro_version != GTK_MICRO_VERSION))
12695 {
12696 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12697 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12698 printf("*** library (version %d.%d.%d)\n",
12699 gtk_major_version, gtk_minor_version, gtk_micro_version);
12700 }
12701#endif /* defined (GTK_MAJOR_VERSION) ... */
12702 else
12703 {
12704 if ((gtk_major_version > major) ||
12705 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12706 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12707 {
12708 return 0;
12709 }
12710 else
12711 {
12712 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12713 gtk_major_version, gtk_minor_version, gtk_micro_version);
12714 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12715 major, minor, micro);
12716 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12717 printf("***\n");
12718 printf("*** If you have already installed a sufficiently new version, this error\n");
12719 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12720 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12721 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12722 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12723 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12724 printf("*** so that the correct libraries are found at run-time))\n");
12725 }
12726 }
12727 return 1;
12728}
12729
a0b9e27f 12730EOF
e5a87141 12731if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12732then
21d1c967
GD
12733 :
12734else
a0b9e27f
MB
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -fr conftest*
12738 no_gtk=yes
21d1c967 12739fi
a0b9e27f 12740rm -fr conftest*
21d1c967 12741fi
a0b9e27f 12742
21d1c967
GD
12743 CFLAGS="$ac_save_CFLAGS"
12744 LIBS="$ac_save_LIBS"
12745 fi
12746 fi
12747 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12748 echo "$ac_t""yes" 1>&6
12749 wx_cv_lib_gtk=1.2.7
21d1c967 12750 else
a0b9e27f 12751 echo "$ac_t""no" 1>&6
21d1c967
GD
12752 if test "$GTK_CONFIG" = "no" ; then
12753 echo "*** The gtk-config script installed by GTK could not be found"
12754 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12755 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12756 echo "*** full path to gtk-config."
12757 else
12758 if test -f conf.gtktest ; then
12759 :
12760 else
12761 echo "*** Could not run GTK test program, checking why..."
12762 CFLAGS="$CFLAGS $GTK_CFLAGS"
12763 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12764 cat > conftest.$ac_ext <<EOF
e5a87141 12765#line 12766 "configure"
21d1c967
GD
12766#include "confdefs.h"
12767
12768#include <gtk/gtk.h>
12769#include <stdio.h>
12770
a0b9e27f
MB
12771int main() {
12772 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12773; return 0; }
12774EOF
e5a87141 12775if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12776 rm -rf conftest*
21d1c967
GD
12777 echo "*** The test program compiled, but did not run. This usually means"
12778 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12779 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12780 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12781 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12782 echo "*** is required on your system"
12783 echo "***"
12784 echo "*** If you have an old version installed, it is best to remove it, although"
12785 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12786 echo "***"
12787 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12788 echo "*** came with the system with the command"
12789 echo "***"
a0b9e27f 12790 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12791else
a0b9e27f
MB
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12794 rm -rf conftest*
12795 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12796 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12797 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12798 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12799fi
a0b9e27f 12800rm -f conftest*
21d1c967
GD
12801 CFLAGS="$ac_save_CFLAGS"
12802 LIBS="$ac_save_LIBS"
12803 fi
12804 fi
12805 GTK_CFLAGS=""
12806 GTK_LIBS=""
12807 :
12808 fi
a0b9e27f
MB
12809
12810
21d1c967
GD
12811 rm -f conf.gtktest
12812
21d1c967 12813
2b5f62a0
VZ
12814 if test -z "$wx_cv_lib_gtk"; then
12815 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12816if test "${with_gtk_prefix+set}" = set; then
12817 withval="$with_gtk_prefix"
12818 gtk_config_prefix="$withval"
12819else
12820 gtk_config_prefix=""
a0b9e27f 12821fi
f79bd02d 12822
21d1c967
GD
12823# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12824if test "${with_gtk_exec_prefix+set}" = set; then
12825 withval="$with_gtk_exec_prefix"
12826 gtk_config_exec_prefix="$withval"
12827else
12828 gtk_config_exec_prefix=""
a0b9e27f
MB
12829fi
12830
21d1c967
GD
12831# Check whether --enable-gtktest or --disable-gtktest was given.
12832if test "${enable_gtktest+set}" = set; then
12833 enableval="$enable_gtktest"
a0b9e27f 12834 :
90dd450c 12835else
21d1c967 12836 enable_gtktest=yes
a0b9e27f
MB
12837fi
12838
21d1c967
GD
12839
12840 for module in . $GTK_MODULES
12841 do
12842 case "$module" in
a0b9e27f 12843 gthread)
21d1c967
GD
12844 gtk_config_args="$gtk_config_args gthread"
12845 ;;
12846 esac
12847 done
12848
12849 if test x$gtk_config_exec_prefix != x ; then
12850 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12851 if test x${GTK_CONFIG+set} != xset ; then
12852 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12853 fi
12854 fi
12855 if test x$gtk_config_prefix != x ; then
12856 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12857 if test x${GTK_CONFIG+set} != xset ; then
12858 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12859 fi
12860 fi
12861
12862 # Extract the first word of "gtk-config", so it can be a program name with args.
12863set dummy gtk-config; ac_word=$2
a0b9e27f 12864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 12865echo "configure:12866: checking for $ac_word" >&5
a0b9e27f
MB
12866if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12868else
a0b9e27f
MB
12869 case "$GTK_CONFIG" in
12870 /*)
21d1c967
GD
12871 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12872 ;;
a0b9e27f
MB
12873 ?:/*)
12874 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12875 ;;
21d1c967 12876 *)
a0b9e27f
MB
12877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12878 ac_dummy="$PATH"
12879 for ac_dir in $ac_dummy; do
12880 test -z "$ac_dir" && ac_dir=.
12881 if test -f $ac_dir/$ac_word; then
12882 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12883 break
12884 fi
12885 done
12886 IFS="$ac_save_ifs"
21d1c967
GD
12887 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12888 ;;
12889esac
12890fi
a0b9e27f 12891GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12892if test -n "$GTK_CONFIG"; then
a0b9e27f 12893 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12894else
a0b9e27f 12895 echo "$ac_t""no" 1>&6
21d1c967
GD
12896fi
12897
12898 min_gtk_version=1.2.3
a0b9e27f 12899 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e5a87141 12900echo "configure:12901: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12901 no_gtk=""
12902 if test "$GTK_CONFIG" = "no" ; then
12903 no_gtk=yes
12904 else
12905 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12906 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12907 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12909 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12911 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12913 if test "x$enable_gtktest" = "xyes" ; then
12914 ac_save_CFLAGS="$CFLAGS"
12915 ac_save_LIBS="$LIBS"
12916 CFLAGS="$CFLAGS $GTK_CFLAGS"
12917 LIBS="$GTK_LIBS $LIBS"
12918 rm -f conf.gtktest
12919 if test "$cross_compiling" = yes; then
12920 echo $ac_n "cross compiling; assumed OK... $ac_c"
12921else
a0b9e27f 12922 cat > conftest.$ac_ext <<EOF
e5a87141 12923#line 12924 "configure"
f79bd02d 12924#include "confdefs.h"
21d1c967
GD
12925
12926#include <gtk/gtk.h>
12927#include <stdio.h>
12928#include <stdlib.h>
12929
a0b9e27f 12930int
21d1c967
GD
12931main ()
12932{
12933 int major, minor, micro;
12934 char *tmp_version;
12935
12936 system ("touch conf.gtktest");
12937
12938 /* HP/UX 9 (%@#!) writes to sscanf strings */
12939 tmp_version = g_strdup("$min_gtk_version");
12940 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12941 printf("%s, bad version string\n", "$min_gtk_version");
12942 exit(1);
12943 }
12944
12945 if ((gtk_major_version != $gtk_config_major_version) ||
12946 (gtk_minor_version != $gtk_config_minor_version) ||
12947 (gtk_micro_version != $gtk_config_micro_version))
12948 {
a0b9e27f 12949 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12950 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12951 gtk_major_version, gtk_minor_version, gtk_micro_version);
12952 printf ("*** was found! If gtk-config was correct, then it is best\n");
12953 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12954 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12955 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12956 printf("*** required on your system.\n");
12957 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12958 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12959 printf("*** before re-running configure\n");
a0b9e27f 12960 }
21d1c967
GD
12961#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12962 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12963 (gtk_minor_version != GTK_MINOR_VERSION) ||
12964 (gtk_micro_version != GTK_MICRO_VERSION))
12965 {
12966 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12967 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12968 printf("*** library (version %d.%d.%d)\n",
12969 gtk_major_version, gtk_minor_version, gtk_micro_version);
12970 }
12971#endif /* defined (GTK_MAJOR_VERSION) ... */
12972 else
12973 {
12974 if ((gtk_major_version > major) ||
12975 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12976 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12977 {
12978 return 0;
12979 }
12980 else
12981 {
12982 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12983 gtk_major_version, gtk_minor_version, gtk_micro_version);
12984 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12985 major, minor, micro);
12986 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12987 printf("***\n");
12988 printf("*** If you have already installed a sufficiently new version, this error\n");
12989 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12990 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12991 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12992 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12993 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12994 printf("*** so that the correct libraries are found at run-time))\n");
12995 }
12996 }
12997 return 1;
12998}
12999
a0b9e27f 13000EOF
e5a87141 13001if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13002then
21d1c967
GD
13003 :
13004else
a0b9e27f
MB
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -fr conftest*
13008 no_gtk=yes
21d1c967 13009fi
a0b9e27f 13010rm -fr conftest*
21d1c967 13011fi
a0b9e27f 13012
21d1c967
GD
13013 CFLAGS="$ac_save_CFLAGS"
13014 LIBS="$ac_save_LIBS"
13015 fi
13016 fi
13017 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13018 echo "$ac_t""yes" 1>&6
13019 wx_cv_lib_gtk=1.2.3
21d1c967 13020 else
a0b9e27f 13021 echo "$ac_t""no" 1>&6
21d1c967
GD
13022 if test "$GTK_CONFIG" = "no" ; then
13023 echo "*** The gtk-config script installed by GTK could not be found"
13024 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13025 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13026 echo "*** full path to gtk-config."
13027 else
13028 if test -f conf.gtktest ; then
13029 :
13030 else
13031 echo "*** Could not run GTK test program, checking why..."
13032 CFLAGS="$CFLAGS $GTK_CFLAGS"
13033 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13034 cat > conftest.$ac_ext <<EOF
e5a87141 13035#line 13036 "configure"
21d1c967
GD
13036#include "confdefs.h"
13037
13038#include <gtk/gtk.h>
13039#include <stdio.h>
f79bd02d 13040
a0b9e27f
MB
13041int main() {
13042 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13043; return 0; }
13044EOF
e5a87141 13045if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13046 rm -rf conftest*
21d1c967
GD
13047 echo "*** The test program compiled, but did not run. This usually means"
13048 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13049 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13050 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13051 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13052 echo "*** is required on your system"
13053 echo "***"
13054 echo "*** If you have an old version installed, it is best to remove it, although"
13055 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13056 echo "***"
13057 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13058 echo "*** came with the system with the command"
13059 echo "***"
a0b9e27f 13060 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13061else
a0b9e27f
MB
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13066 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13067 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13068 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13069fi
a0b9e27f 13070rm -f conftest*
21d1c967
GD
13071 CFLAGS="$ac_save_CFLAGS"
13072 LIBS="$ac_save_LIBS"
13073 fi
13074 fi
13075 GTK_CFLAGS=""
13076 GTK_LIBS=""
13077 :
13078 fi
a0b9e27f
MB
13079
13080
21d1c967 13081 rm -f conf.gtktest
f79bd02d 13082
2b5f62a0 13083 fi
21d1c967
GD
13084 fi
13085
13086 if test -z "$wx_cv_lib_gtk"; then
13087 wx_cv_lib_gtk=none
13088 else
13089 wx_cv_cflags_gtk=$GTK_CFLAGS
13090 wx_cv_libs_gtk=$GTK_LIBS
13091 fi
a0b9e27f
MB
13092
13093
5c6fa7d2 13094fi
52127426 13095
8284b0c5 13096
21d1c967 13097 if test "$gtk_version_cached" = 1; then
a0b9e27f 13098 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13099 fi
13100
13101 case "$wx_cv_lib_gtk" in
13102 2.0) WXGTK20=1
2b5f62a0 13103 TOOLKIT_VERSION=2
21d1c967
GD
13104 ;;
13105 1.2.7) WXGTK127=1
13106 WXGTK12=1
13107 ;;
13108 1.2.3) WXGTK12=1
13109 ;;
a0b9e27f 13110 *) { echo "configure: error:
247f5006
VZ
13111Please check that gtk-config is in path, the directory
13112where GTK+ libraries are installed (returned by
13113'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13114equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13115 " 1>&2; exit 1; }
21d1c967
GD
13116 ;;
13117 esac
13118
b13cd66e
VZ
13119 if test "$WXGTK20" = 1; then
13120 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13121
f09359cf
VS
13122 succeeded=no
13123
13124 if test -z "$PKG_CONFIG"; then
13125 # Extract the first word of "pkg-config", so it can be a program name with args.
13126set dummy pkg-config; ac_word=$2
a0b9e27f 13127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 13128echo "configure:13129: checking for $ac_word" >&5
a0b9e27f
MB
13129if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13130 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13131else
a0b9e27f
MB
13132 case "$PKG_CONFIG" in
13133 /*)
f09359cf
VS
13134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13135 ;;
a0b9e27f
MB
13136 ?:/*)
13137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13138 ;;
f09359cf 13139 *)
a0b9e27f
MB
13140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13141 ac_dummy="$PATH"
13142 for ac_dir in $ac_dummy; do
13143 test -z "$ac_dir" && ac_dir=.
13144 if test -f $ac_dir/$ac_word; then
13145 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13146 break
13147 fi
13148 done
13149 IFS="$ac_save_ifs"
f09359cf
VS
13150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13151 ;;
13152esac
13153fi
a0b9e27f 13154PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13155if test -n "$PKG_CONFIG"; then
a0b9e27f 13156 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13157else
a0b9e27f 13158 echo "$ac_t""no" 1>&6
f09359cf
VS
13159fi
13160
13161 fi
13162
13163 if test "$PKG_CONFIG" = "no" ; then
13164 echo "*** The pkg-config script could not be found. Make sure it is"
13165 echo "*** in your path, or set the PKG_CONFIG environment variable"
13166 echo "*** to the full path to pkg-config."
13167 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13168 else
13169 PKG_CONFIG_MIN_VERSION=0.9.0
13170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13171 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
e5a87141 13172echo "configure:13173: checking for pangoft2" >&5
f09359cf
VS
13173
13174 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13175 echo "$ac_t""yes" 1>&6
f09359cf
VS
13176 succeeded=yes
13177
a0b9e27f 13178 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
e5a87141 13179echo "configure:13180: checking PANGOFT2_CFLAGS" >&5
f09359cf 13180 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13181 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13182
a0b9e27f 13183 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
e5a87141 13184echo "configure:13185: checking PANGOFT2_LIBS" >&5
f09359cf 13185 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13186 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13187 else
13188 PANGOFT2_CFLAGS=""
13189 PANGOFT2_LIBS=""
a0b9e27f 13190 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13191 ## do set a variable so people can do so.
13192 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13193
f09359cf
VS
13194 fi
13195
a0b9e27f
MB
13196
13197
f09359cf
VS
13198 else
13199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13201 fi
13202 fi
13203
13204 if test $succeeded = yes; then
a0b9e27f 13205
b13cd66e
VZ
13206 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13207 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13208
f09359cf 13209 else
a0b9e27f
MB
13210
13211 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13212 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13213
13214
f09359cf
VS
13215 fi
13216
b13cd66e 13217 fi
2b5f62a0
VZ
13218 else
13219 if test "$wxUSE_UNICODE" = "yes"; then
13220 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13221 wxUSE_UNICODE=no
13222 fi
13223 fi
13224
13225 if test "$USE_DARWIN" != 1; then
13226 for ac_func in poll
13227do
13228echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 13229echo "configure:13230: checking for $ac_func" >&5
2b5f62a0
VZ
13230if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13232else
13233 cat > conftest.$ac_ext <<EOF
e5a87141 13234#line 13235 "configure"
2b5f62a0
VZ
13235#include "confdefs.h"
13236/* System header to define __stub macros and hopefully few prototypes,
13237 which can conflict with char $ac_func(); below. */
13238#include <assert.h>
13239/* Override any gcc2 internal prototype to avoid an error. */
13240/* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242char $ac_func();
13243
13244int main() {
13245
13246/* The GNU C library defines this for functions which it implements
13247 to always fail with ENOSYS. Some functions are actually named
13248 something starting with __ and the normal name is an alias. */
13249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13250choke me
13251#else
13252$ac_func();
13253#endif
13254
13255; return 0; }
13256EOF
e5a87141 13257if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13258 rm -rf conftest*
13259 eval "ac_cv_func_$ac_func=yes"
13260else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_func_$ac_func=no"
13265fi
13266rm -f conftest*
13267fi
13268
13269if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13270 echo "$ac_t""yes" 1>&6
13271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13272 cat >> confdefs.h <<EOF
13273#define $ac_tr_func 1
13274EOF
13275
13276else
13277 echo "$ac_t""no" 1>&6
13278fi
13279done
13280
f09359cf
VS
13281 fi
13282
21d1c967
GD
13283 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13284 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13285
13286 AFMINSTALL=afminstall
13287 TOOLKIT=GTK
13288 GUIDIST=GTK_DIST
13289
a0b9e27f 13290 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
e5a87141 13291echo "configure:13292: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13292ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13295else
a0b9e27f 13296 ac_save_LIBS="$LIBS"
21d1c967 13297LIBS="-lgdk $LIBS"
a0b9e27f 13298cat > conftest.$ac_ext <<EOF
e5a87141 13299#line 13300 "configure"
90dd450c 13300#include "confdefs.h"
5c6fa7d2 13301/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13302/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13303 builtin and then its argument prototype would still apply. */
13304char gdk_im_open();
13305
13306int main() {
13307gdk_im_open()
13308; return 0; }
13309EOF
e5a87141 13310if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13311 rm -rf conftest*
13312 eval "ac_cv_lib_$ac_lib_var=yes"
13313else
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 rm -rf conftest*
13317 eval "ac_cv_lib_$ac_lib_var=no"
13318fi
13319rm -f conftest*
13320LIBS="$ac_save_LIBS"
13321
13322fi
13323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 cat >> confdefs.h <<\EOF
21d1c967 13326#define HAVE_XIM 1
a0b9e27f 13327EOF
21d1c967 13328
a0b9e27f
MB
13329else
13330 echo "$ac_t""no" 1>&6
90dd450c 13331fi
1e6feb95 13332
21d1c967 13333 fi
1e6feb95 13334
21d1c967 13335 if test "$wxUSE_MGL" = 1; then
63a76696 13336 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
e5a87141 13337echo "configure:13338: checking for SciTech MGL library" >&5
21d1c967 13338 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13339 echo "$ac_t""not found" 1>&6
13340 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13341 else
a0b9e27f 13342 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13343 fi
13344
63a76696 13345 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
e5a87141 13346echo "configure:13347: checking for libmgl location" >&5
21d1c967
GD
13347 case "${host}" in
13348 *-*-linux* )
63a76696
VS
13349 if test "x$wxUSE_SHARED" = xyes ; then
13350 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13351 else
13352 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13353 fi
21d1c967
GD
13354 ;;
13355 *-pc-msdosdjgpp )
63a76696 13356 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13357 ;;
13358 *)
a0b9e27f 13359 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13360 esac
1e6feb95 13361
21d1c967 13362 mgl_lib_type=""
63a76696
VS
13363 mgl_os=""
13364
13365 for mgl_os_i in $mgl_os_candidates ; do
13366 if test "x$mgl_os" = x ; then
13367 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13368 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13369 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13370 mgl_lib_type=debug
13371 mgl_os=$mgl_os_i
13372 fi
13373 fi
13374 if test "x$mgl_lib_type" = x ; then
13375 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13376 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13377 mgl_lib_type=release
13378 mgl_os=$mgl_os_i
13379 fi
13380 fi
21d1c967 13381 fi
63a76696 13382 done
2224580a 13383
63a76696
VS
13384 if test "x$mgl_os" = x ; then
13385 echo "$ac_t""not found" 1>&6
13386 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13387 fi
13388 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13389
1d1b75ac
VZ
13390 wxUSE_UNIVERSAL="yes"
13391
21d1c967
GD
13392 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13393 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13394
90dd450c 13395 AFMINSTALL=afminstall
21d1c967
GD
13396 TOOLKIT=MGL
13397 GUIDIST=MGL_DIST
13398 fi
dad6c0ea 13399
21d1c967 13400 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13401 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
e5a87141 13402echo "configure:13403: checking for MicroWindows" >&5
21d1c967 13403 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13404 echo "$ac_t""not found" 1>&6
13405 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13406 else
a0b9e27f 13407 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13408 fi
f6bcfd97 13409
21d1c967 13410 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13411 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13412 else
a0b9e27f 13413 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13414 fi
0b2effe9 13415
21d1c967
GD
13416 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13417 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13418
1d1b75ac
VZ
13419 wxUSE_UNIVERSAL="yes"
13420
21d1c967
GD
13421 AFMINSTALL=afminstall
13422 TOOLKIT=MICROWIN
13423 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13424
13425 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13426 fi
f6bcfd97 13427
21d1c967 13428 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13429 # If we find X, set shell vars x_includes and x_libraries to the
13430# paths, otherwise set no_x=yes.
13431# Uses ac_ vars as temps to allow command line to override cache and checks.
13432# --without-x overrides everything else, but does not touch the cache.
13433echo $ac_n "checking for X""... $ac_c" 1>&6
e5a87141 13434echo "configure:13435: checking for X" >&5
d8356fa3 13435
21d1c967
GD
13436# Check whether --with-x or --without-x was given.
13437if test "${with_x+set}" = set; then
13438 withval="$with_x"
a0b9e27f
MB
13439 :
13440fi
2224580a 13441
21d1c967
GD
13442# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13443if test "x$with_x" = xno; then
13444 # The user explicitly disabled X.
13445 have_x=disabled
13446else
13447 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13448 # Both variables are already set.
13449 have_x=yes
13450 else
a0b9e27f
MB
13451if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13453else
13454 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13455ac_x_includes=NO ac_x_libraries=NO
13456rm -fr conftestdir
13457if mkdir conftestdir; then
13458 cd conftestdir
21d1c967 13459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13460 cat > Imakefile <<'EOF'
21d1c967
GD
13461acfindx:
13462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13463EOF
21d1c967
GD
13464 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13468 for ac_extension in a so sl; do
13469 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13470 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13471 ac_im_usrlibdir=$ac_im_libdir; break
13472 fi
13473 done
13474 # Screen out bogus values from the imake configuration. They are
13475 # bogus both because they are the default anyway, and because
13476 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13477 case "$ac_im_incroot" in
21d1c967 13478 /usr/include) ;;
a0b9e27f 13479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13480 esac
a0b9e27f 13481 case "$ac_im_usrlibdir" in
21d1c967 13482 /usr/lib | /lib) ;;
a0b9e27f 13483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13484 esac
13485 fi
13486 cd ..
a0b9e27f 13487 rm -fr conftestdir
21d1c967 13488fi
10f2d63a 13489
a0b9e27f
MB
13490if test "$ac_x_includes" = NO; then
13491 # Guess where to find include files, by looking for this one X11 .h file.
13492 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13493
21d1c967 13494 # First, try using that file with no special directory specified.
a0b9e27f 13495cat > conftest.$ac_ext <<EOF
e5a87141 13496#line 13497 "configure"
21d1c967 13497#include "confdefs.h"
a0b9e27f
MB
13498#include <$x_direct_test_include>
13499EOF
13500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 13501{ (eval echo configure:13502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13503if test -z "$ac_err"; then
13504 rm -rf conftest*
21d1c967
GD
13505 # We can compile using X headers with no special include directory.
13506ac_x_includes=
90dd450c 13507else
a0b9e27f
MB
13508 echo "$ac_err" >&5
13509 echo "configure: failed program was:" >&5
90dd450c 13510 cat conftest.$ac_ext >&5
a0b9e27f
MB
13511 rm -rf conftest*
13512 # Look for the header file in a standard set of common directories.
13513# Check X11 before X11Rn because it is often a symlink to the current release.
13514 for ac_dir in \
13515 /usr/X11/include \
13516 /usr/X11R6/include \
13517 /usr/X11R5/include \
13518 /usr/X11R4/include \
13519 \
13520 /usr/include/X11 \
13521 /usr/include/X11R6 \
13522 /usr/include/X11R5 \
13523 /usr/include/X11R4 \
13524 \
13525 /usr/local/X11/include \
13526 /usr/local/X11R6/include \
13527 /usr/local/X11R5/include \
13528 /usr/local/X11R4/include \
13529 \
13530 /usr/local/include/X11 \
13531 /usr/local/include/X11R6 \
13532 /usr/local/include/X11R5 \
13533 /usr/local/include/X11R4 \
13534 \
13535 /usr/X386/include \
13536 /usr/x386/include \
13537 /usr/XFree86/include/X11 \
13538 \
13539 /usr/include \
13540 /usr/local/include \
13541 /usr/unsupported/include \
13542 /usr/athena/include \
13543 /usr/local/x11r5/include \
13544 /usr/lpp/Xamples/include \
13545 \
13546 /usr/openwin/include \
13547 /usr/openwin/share/include \
13548 ; \
13549 do
13550 if test -r "$ac_dir/$x_direct_test_include"; then
13551 ac_x_includes=$ac_dir
13552 break
13553 fi
13554 done
3a922bb4 13555fi
a0b9e27f
MB
13556rm -f conftest*
13557fi # $ac_x_includes = NO
10f2d63a 13558
a0b9e27f 13559if test "$ac_x_libraries" = NO; then
21d1c967 13560 # Check for the libraries.
a0b9e27f
MB
13561
13562 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13563 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13564
21d1c967
GD
13565 # See if we find them without any special options.
13566 # Don't add to $LIBS permanently.
a0b9e27f
MB
13567 ac_save_LIBS="$LIBS"
13568 LIBS="-l$x_direct_test_library $LIBS"
13569cat > conftest.$ac_ext <<EOF
e5a87141 13570#line 13571 "configure"
3a922bb4 13571#include "confdefs.h"
a0b9e27f
MB
13572
13573int main() {
13574${x_direct_test_function}()
13575; return 0; }
13576EOF
e5a87141 13577if { (eval echo configure:13578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13578 rm -rf conftest*
13579 LIBS="$ac_save_LIBS"
21d1c967
GD
13580# We can link X programs with no special library path.
13581ac_x_libraries=
3a922bb4 13582else
a0b9e27f
MB
13583 echo "configure: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 rm -rf conftest*
13586 LIBS="$ac_save_LIBS"
13587# First see if replacing the include by lib works.
13588# Check X11 before X11Rn because it is often a symlink to the current release.
13589for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13590 /usr/X11/lib \
13591 /usr/X11R6/lib \
13592 /usr/X11R5/lib \
13593 /usr/X11R4/lib \
13594 \
13595 /usr/lib/X11 \
13596 /usr/lib/X11R6 \
13597 /usr/lib/X11R5 \
13598 /usr/lib/X11R4 \
13599 \
13600 /usr/local/X11/lib \
13601 /usr/local/X11R6/lib \
13602 /usr/local/X11R5/lib \
13603 /usr/local/X11R4/lib \
13604 \
13605 /usr/local/lib/X11 \
13606 /usr/local/lib/X11R6 \
13607 /usr/local/lib/X11R5 \
13608 /usr/local/lib/X11R4 \
13609 \
13610 /usr/X386/lib \
13611 /usr/x386/lib \
13612 /usr/XFree86/lib/X11 \
13613 \
13614 /usr/lib \
13615 /usr/local/lib \
13616 /usr/unsupported/lib \
13617 /usr/athena/lib \
13618 /usr/local/x11r5/lib \
13619 /usr/lpp/Xamples/lib \
13620 /lib/usr/lib/X11 \
13621 \
13622 /usr/openwin/lib \
13623 /usr/openwin/share/lib \
13624 ; \
21d1c967
GD
13625do
13626 for ac_extension in a so sl; do
a0b9e27f 13627 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13628 ac_x_libraries=$ac_dir
13629 break 2
13630 fi
13631 done
13632done
3a922bb4 13633fi
a0b9e27f
MB
13634rm -f conftest*
13635fi # $ac_x_libraries = NO
90dd450c 13636
a0b9e27f 13637if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13638 # Didn't find X anywhere. Cache the known absence of X.
13639 ac_cv_have_x="have_x=no"
13640else
13641 # Record where we found X for the cache.
13642 ac_cv_have_x="have_x=yes \
13643 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13644fi
21d1c967
GD
13645fi
13646 fi
13647 eval "$ac_cv_have_x"
13648fi # $with_x != no
90dd450c 13649
21d1c967 13650if test "$have_x" != yes; then
a0b9e27f 13651 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13652 no_x=yes
13653else
13654 # If each of the values was on the command line, it overrides each guess.
13655 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13656 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13657 # Update the cache value to reflect the command line values.
13658 ac_cv_have_x="have_x=yes \
13659 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13660 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13661fi
90dd450c 13662
21d1c967 13663if test "$no_x" = yes; then
90dd450c 13664 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13665 cat >> confdefs.h <<\EOF
90dd450c 13666#define X_DISPLAY_MISSING 1
a0b9e27f 13667EOF
90dd450c
VZ
13668
13669 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13670else
13671 if test -n "$x_includes"; then
13672 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13673 fi
3a922bb4 13674
90dd450c
VZ
13675 # It would also be nice to do this for all -L options, not just this one.
13676 if test -n "$x_libraries"; then
13677 X_LIBS="$X_LIBS -L$x_libraries"
13678 # For Solaris; some versions of Sun CC require a space after -R and
13679 # others require no space. Words are not sufficient . . . .
a0b9e27f 13680 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13681 "SunOS 5"*)
a0b9e27f 13682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
e5a87141 13683echo "configure:13684: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13685 cat > conftest.$ac_ext <<EOF
e5a87141 13686#line 13687 "configure"
90dd450c
VZ
13687#include "confdefs.h"
13688
a0b9e27f 13689int main() {
90dd450c 13690
a0b9e27f
MB
13691; return 0; }
13692EOF
e5a87141 13693if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13694 rm -rf conftest*
90dd450c 13695 ac_R_nospace=yes
3a922bb4 13696else
a0b9e27f
MB
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 rm -rf conftest*
13700 ac_R_nospace=no
3a922bb4 13701fi
a0b9e27f 13702rm -f conftest*
90dd450c 13703 if test $ac_R_nospace = yes; then
a0b9e27f 13704 echo "$ac_t""no" 1>&6
90dd450c
VZ
13705 X_LIBS="$X_LIBS -R$x_libraries"
13706 else
13707 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13708 cat > conftest.$ac_ext <<EOF
e5a87141 13709#line 13710 "configure"
90dd450c 13710#include "confdefs.h"
3a922bb4 13711
a0b9e27f 13712int main() {
6f754473 13713
a0b9e27f
MB
13714; return 0; }
13715EOF
e5a87141 13716if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13717 rm -rf conftest*
90dd450c
VZ
13718 ac_R_space=yes
13719else
a0b9e27f
MB
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 ac_R_space=no
90dd450c 13724fi
a0b9e27f 13725rm -f conftest*
90dd450c 13726 if test $ac_R_space = yes; then
a0b9e27f 13727 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13728 X_LIBS="$X_LIBS -R $x_libraries"
13729 else
a0b9e27f 13730 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13731 fi
13732 fi
a0b9e27f 13733 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13734 esac
13735 fi
13736
13737 # Check for system-dependent libraries X programs must link with.
13738 # Do this before checking for the system-independent R6 libraries
13739 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13740
90dd450c
VZ
13741 if test "$ISC" = yes; then
13742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13743 else
a0b9e27f
MB
13744 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13745 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13746 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13747 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
e5a87141 13748echo "configure:13749: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13749ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13752else
a0b9e27f 13753 ac_save_LIBS="$LIBS"
247f5006 13754LIBS="-ldnet $LIBS"
a0b9e27f 13755cat > conftest.$ac_ext <<EOF
e5a87141 13756#line 13757 "configure"
247f5006 13757#include "confdefs.h"
247f5006 13758/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13759/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13760 builtin and then its argument prototype would still apply. */
13761char dnet_ntoa();
13762
13763int main() {
13764dnet_ntoa()
13765; return 0; }
13766EOF
e5a87141 13767if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13768 rm -rf conftest*
13769 eval "ac_cv_lib_$ac_lib_var=yes"
13770else
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13773 rm -rf conftest*
13774 eval "ac_cv_lib_$ac_lib_var=no"
13775fi
13776rm -f conftest*
13777LIBS="$ac_save_LIBS"
13778
13779fi
13780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13781 echo "$ac_t""yes" 1>&6
90dd450c 13782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13783else
13784 echo "$ac_t""no" 1>&6
3a922bb4
RL
13785fi
13786
90dd450c 13787 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13788 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
e5a87141 13789echo "configure:13790: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13790ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13793else
a0b9e27f 13794 ac_save_LIBS="$LIBS"
90dd450c 13795LIBS="-ldnet_stub $LIBS"
a0b9e27f 13796cat > conftest.$ac_ext <<EOF
e5a87141 13797#line 13798 "configure"
90dd450c
VZ
13798#include "confdefs.h"
13799/* Override any gcc2 internal prototype to avoid an error. */
13800/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13801 builtin and then its argument prototype would still apply. */
13802char dnet_ntoa();
13803
13804int main() {
13805dnet_ntoa()
13806; return 0; }
13807EOF
e5a87141 13808if { (eval echo configure:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13809 rm -rf conftest*
13810 eval "ac_cv_lib_$ac_lib_var=yes"
13811else
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 rm -rf conftest*
13815 eval "ac_cv_lib_$ac_lib_var=no"
13816fi
13817rm -f conftest*
13818LIBS="$ac_save_LIBS"
13819
13820fi
13821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13822 echo "$ac_t""yes" 1>&6
90dd450c 13823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13824else
13825 echo "$ac_t""no" 1>&6
3a922bb4
RL
13826fi
13827
90dd450c 13828 fi
978f1259 13829
90dd450c
VZ
13830 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13831 # to get the SysV transport functions.
a0b9e27f 13832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13833 # needs -lnsl.
13834 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13835 # on Irix 5.2, according to dickey@clark.net.
13836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
e5a87141 13837echo "configure:13838: checking for gethostbyname" >&5
a0b9e27f
MB
13838if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840else
13841 cat > conftest.$ac_ext <<EOF
e5a87141 13842#line 13843 "configure"
90dd450c
VZ
13843#include "confdefs.h"
13844/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13845 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13846#include <assert.h>
13847/* Override any gcc2 internal prototype to avoid an error. */
13848/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13849 builtin and then its argument prototype would still apply. */
13850char gethostbyname();
13851
13852int main() {
13853
90dd450c
VZ
13854/* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13858choke me
13859#else
a0b9e27f 13860gethostbyname();
90dd450c 13861#endif
978f1259 13862
a0b9e27f
MB
13863; return 0; }
13864EOF
e5a87141 13865if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13866 rm -rf conftest*
13867 eval "ac_cv_func_gethostbyname=yes"
13868else
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 eval "ac_cv_func_gethostbyname=no"
13873fi
13874rm -f conftest*
13875fi
13876
13877if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 :
13880else
13881 echo "$ac_t""no" 1>&6
13882fi
698dcdb6 13883
90dd450c 13884 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13885 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
e5a87141 13886echo "configure:13887: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13887ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13890else
a0b9e27f 13891 ac_save_LIBS="$LIBS"
90dd450c 13892LIBS="-lnsl $LIBS"
a0b9e27f 13893cat > conftest.$ac_ext <<EOF
e5a87141 13894#line 13895 "configure"
90dd450c
VZ
13895#include "confdefs.h"
13896/* Override any gcc2 internal prototype to avoid an error. */
13897/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13898 builtin and then its argument prototype would still apply. */
13899char gethostbyname();
5c6fa7d2 13900
a0b9e27f
MB
13901int main() {
13902gethostbyname()
13903; return 0; }
13904EOF
e5a87141 13905if { (eval echo configure:13906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13906 rm -rf conftest*
13907 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13908else
a0b9e27f
MB
13909 echo "configure: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 rm -rf conftest*
13912 eval "ac_cv_lib_$ac_lib_var=no"
13913fi
13914rm -f conftest*
13915LIBS="$ac_save_LIBS"
247f5006 13916
a0b9e27f
MB
13917fi
13918if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13919 echo "$ac_t""yes" 1>&6
13920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13921else
13922 echo "$ac_t""no" 1>&6
90dd450c 13923fi
b12915c1 13924
90dd450c
VZ
13925 fi
13926
13927 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13928 # socket/setsockopt and other routines are undefined under SCO ODT
13929 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13930 # on later versions), says simon@lia.di.epfl.ch: it contains
13931 # gethostby* variants that don't use the nameserver (or something).
13932 # -lsocket must be given before -lnsl if both are needed.
13933 # We assume that if connect needs -lnsl, so does gethostbyname.
13934 echo $ac_n "checking for connect""... $ac_c" 1>&6
e5a87141 13935echo "configure:13936: checking for connect" >&5
a0b9e27f
MB
13936if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938else
13939 cat > conftest.$ac_ext <<EOF
e5a87141 13940#line 13941 "configure"
55e80573 13941#include "confdefs.h"
90dd450c 13942/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13943 which can conflict with char connect(); below. */
90dd450c
VZ
13944#include <assert.h>
13945/* Override any gcc2 internal prototype to avoid an error. */
13946/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13947 builtin and then its argument prototype would still apply. */
13948char connect();
13949
13950int main() {
13951
90dd450c
VZ
13952/* The GNU C library defines this for functions which it implements
13953 to always fail with ENOSYS. Some functions are actually named
13954 something starting with __ and the normal name is an alias. */
13955#if defined (__stub_connect) || defined (__stub___connect)
13956choke me
13957#else
a0b9e27f 13958connect();
90dd450c
VZ
13959#endif
13960
a0b9e27f
MB
13961; return 0; }
13962EOF
e5a87141 13963if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13964 rm -rf conftest*
13965 eval "ac_cv_func_connect=yes"
13966else
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13969 rm -rf conftest*
13970 eval "ac_cv_func_connect=no"
13971fi
13972rm -f conftest*
13973fi
13974
13975if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13976 echo "$ac_t""yes" 1>&6
13977 :
13978else
13979 echo "$ac_t""no" 1>&6
13980fi
55e80573 13981
90dd450c 13982 if test $ac_cv_func_connect = no; then
a0b9e27f 13983 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
e5a87141 13984echo "configure:13985: checking for connect in -lsocket" >&5
a0b9e27f
MB
13985ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13988else
a0b9e27f 13989 ac_save_LIBS="$LIBS"
90dd450c 13990LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 13991cat > conftest.$ac_ext <<EOF
e5a87141 13992#line 13993 "configure"
90dd450c
VZ
13993#include "confdefs.h"
13994/* Override any gcc2 internal prototype to avoid an error. */
13995/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13996 builtin and then its argument prototype would still apply. */
13997char connect();
13998
13999int main() {
14000connect()
14001; return 0; }
14002EOF
e5a87141 14003if { (eval echo configure:14004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14004 rm -rf conftest*
14005 eval "ac_cv_lib_$ac_lib_var=yes"
14006else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 eval "ac_cv_lib_$ac_lib_var=no"
14011fi
14012rm -f conftest*
14013LIBS="$ac_save_LIBS"
14014
14015fi
14016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14017 echo "$ac_t""yes" 1>&6
90dd450c 14018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14019else
14020 echo "$ac_t""no" 1>&6
90dd450c 14021fi
77e13408 14022
90dd450c 14023 fi
25d0687a 14024
a0b9e27f
MB
14025 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14026 echo $ac_n "checking for remove""... $ac_c" 1>&6
e5a87141 14027echo "configure:14028: checking for remove" >&5
a0b9e27f
MB
14028if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14030else
a0b9e27f 14031 cat > conftest.$ac_ext <<EOF
e5a87141 14032#line 14033 "configure"
90dd450c
VZ
14033#include "confdefs.h"
14034/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14035 which can conflict with char remove(); below. */
90dd450c
VZ
14036#include <assert.h>
14037/* Override any gcc2 internal prototype to avoid an error. */
14038/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14039 builtin and then its argument prototype would still apply. */
14040char remove();
14041
14042int main() {
14043
90dd450c
VZ
14044/* The GNU C library defines this for functions which it implements
14045 to always fail with ENOSYS. Some functions are actually named
14046 something starting with __ and the normal name is an alias. */
14047#if defined (__stub_remove) || defined (__stub___remove)
14048choke me
14049#else
a0b9e27f 14050remove();
90dd450c 14051#endif
55e80573 14052
a0b9e27f
MB
14053; return 0; }
14054EOF
e5a87141 14055if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14056 rm -rf conftest*
14057 eval "ac_cv_func_remove=yes"
14058else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_func_remove=no"
14063fi
14064rm -f conftest*
14065fi
14066
14067if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14068 echo "$ac_t""yes" 1>&6
14069 :
14070else
14071 echo "$ac_t""no" 1>&6
14072fi
10f2d63a 14073
90dd450c 14074 if test $ac_cv_func_remove = no; then
a0b9e27f 14075 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
e5a87141 14076echo "configure:14077: checking for remove in -lposix" >&5
a0b9e27f
MB
14077ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14078if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14080else
a0b9e27f 14081 ac_save_LIBS="$LIBS"
90dd450c 14082LIBS="-lposix $LIBS"
a0b9e27f 14083cat > conftest.$ac_ext <<EOF
e5a87141 14084#line 14085 "configure"
90dd450c
VZ
14085#include "confdefs.h"
14086/* Override any gcc2 internal prototype to avoid an error. */
14087/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14088 builtin and then its argument prototype would still apply. */
14089char remove();
14090
14091int main() {
14092remove()
14093; return 0; }
14094EOF
e5a87141 14095if { (eval echo configure:14096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14096 rm -rf conftest*
14097 eval "ac_cv_lib_$ac_lib_var=yes"
14098else
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 rm -rf conftest*
14102 eval "ac_cv_lib_$ac_lib_var=no"
14103fi
14104rm -f conftest*
14105LIBS="$ac_save_LIBS"
14106
14107fi
14108if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14109 echo "$ac_t""yes" 1>&6
90dd450c 14110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14111else
14112 echo "$ac_t""no" 1>&6
90dd450c 14113fi
f6bcfd97 14114
6fa882bd
RR
14115 fi
14116
90dd450c 14117 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14118 echo $ac_n "checking for shmat""... $ac_c" 1>&6
e5a87141 14119echo "configure:14120: checking for shmat" >&5
a0b9e27f
MB
14120if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14121 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14122else
a0b9e27f 14123 cat > conftest.$ac_ext <<EOF
e5a87141 14124#line 14125 "configure"
90dd450c
VZ
14125#include "confdefs.h"
14126/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14127 which can conflict with char shmat(); below. */
90dd450c
VZ
14128#include <assert.h>
14129/* Override any gcc2 internal prototype to avoid an error. */
14130/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14131 builtin and then its argument prototype would still apply. */
14132char shmat();
14133
14134int main() {
14135
90dd450c
VZ
14136/* The GNU C library defines this for functions which it implements
14137 to always fail with ENOSYS. Some functions are actually named
14138 something starting with __ and the normal name is an alias. */
14139#if defined (__stub_shmat) || defined (__stub___shmat)
14140choke me
14141#else
a0b9e27f 14142shmat();
90dd450c 14143#endif
10f2d63a 14144
a0b9e27f
MB
14145; return 0; }
14146EOF
e5a87141 14147if { (eval echo configure:14148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14148 rm -rf conftest*
14149 eval "ac_cv_func_shmat=yes"
14150else
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14153 rm -rf conftest*
14154 eval "ac_cv_func_shmat=no"
14155fi
14156rm -f conftest*
14157fi
14158
14159if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14160 echo "$ac_t""yes" 1>&6
14161 :
14162else
14163 echo "$ac_t""no" 1>&6
14164fi
d08b457b 14165
90dd450c 14166 if test $ac_cv_func_shmat = no; then
a0b9e27f 14167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
e5a87141 14168echo "configure:14169: checking for shmat in -lipc" >&5
a0b9e27f
MB
14169ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14172else
a0b9e27f 14173 ac_save_LIBS="$LIBS"
90dd450c 14174LIBS="-lipc $LIBS"
a0b9e27f 14175cat > conftest.$ac_ext <<EOF
e5a87141 14176#line 14177 "configure"
90dd450c 14177#include "confdefs.h"
8284b0c5 14178/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14179/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14180 builtin and then its argument prototype would still apply. */
14181char shmat();
14182
14183int main() {
14184shmat()
14185; return 0; }
14186EOF
e5a87141 14187if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14188 rm -rf conftest*
14189 eval "ac_cv_lib_$ac_lib_var=yes"
14190else
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 eval "ac_cv_lib_$ac_lib_var=no"
14195fi
14196rm -f conftest*
14197LIBS="$ac_save_LIBS"
14198
14199fi
14200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14201 echo "$ac_t""yes" 1>&6
90dd450c 14202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14203else
14204 echo "$ac_t""no" 1>&6
d08b457b
GD
14205fi
14206
d558c907 14207 fi
90dd450c 14208 fi
3a922bb4 14209
90dd450c 14210 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14211 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14214 # check for ICE first), but we must link in the order -lSM -lICE or
14215 # we get undefined symbols. So assume we have SM if we have ICE.
14216 # These have to be linked with before -lX11, unlike the other
14217 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14219 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
e5a87141 14220echo "configure:14221: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14221ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14223 echo $ac_n "(cached) $ac_c" 1>&6
14224else
14225 ac_save_LIBS="$LIBS"
f09359cf 14226LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14227cat > conftest.$ac_ext <<EOF
e5a87141 14228#line 14229 "configure"
9cfadba2 14229#include "confdefs.h"
90dd450c
VZ
14230/* Override any gcc2 internal prototype to avoid an error. */
14231/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14232 builtin and then its argument prototype would still apply. */
14233char IceConnectionNumber();
14234
14235int main() {
14236IceConnectionNumber()
14237; return 0; }
14238EOF
e5a87141 14239if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14240 rm -rf conftest*
14241 eval "ac_cv_lib_$ac_lib_var=yes"
14242else
14243 echo "configure: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 rm -rf conftest*
14246 eval "ac_cv_lib_$ac_lib_var=no"
14247fi
14248rm -f conftest*
14249LIBS="$ac_save_LIBS"
14250
14251fi
14252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14253 echo "$ac_t""yes" 1>&6
90dd450c 14254 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14255else
14256 echo "$ac_t""no" 1>&6
9cfadba2 14257fi
10f2d63a 14258
a0b9e27f 14259 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14260
14261fi
14262
8284b0c5 14263
90dd450c 14264 if test "$no_x" = "yes"; then
a0b9e27f 14265 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14266 fi
14267
14268 GUI_TK_LIBRARY="$X_LIBS"
14269 TOOLKIT_INCLUDE="$X_CFLAGS"
14270 AFMINSTALL=afminstall
14271 COMPILED_X_PROGRAM=0
14272
21d1c967 14273 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14274 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
e5a87141 14275echo "configure:14276: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14276 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14277 echo "$ac_t""not found" 1>&6
14278 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14279 else
a0b9e27f
MB
14280 echo "$ac_t""$MICROWIN" 1>&6
14281 cat >> confdefs.h <<\EOF
21d1c967 14282#define wxUSE_NANOX 1
a0b9e27f 14283EOF
21d1c967 14284
90dd450c
VZ
14285 fi
14286 fi
14287
14288 xpm_link=
a0b9e27f 14289 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e5a87141 14290echo "configure:14291: checking for Xpm library" >&5
a0b9e27f 14291
90dd450c 14292ac_find_libraries=
2b5f62a0 14293for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14294 do
14295 for ac_extension in a so sl dylib; do
14296 if test -f "$ac_dir/libXpm.$ac_extension"; then
14297 ac_find_libraries=$ac_dir
14298 break 2
14299 fi
14300 done
14301 done
14302
14303 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14304
90dd450c
VZ
14305 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14306 result=$?
14307 if test $result = 0; then
14308 ac_path_to_link=""
14309 else
14310 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14311 fi
90dd450c 14312
21d1c967
GD
14313 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14314 xpm_link=" -lXpm"
a0b9e27f 14315 cat >> confdefs.h <<\EOF
21d1c967 14316#define wxHAVE_LIB_XPM 1
a0b9e27f 14317EOF
90dd450c 14318
a0b9e27f 14319 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14320 else
a0b9e27f 14321 cat > conftest.$ac_ext <<EOF
e5a87141 14322#line 14323 "configure"
21d1c967 14323#include "confdefs.h"
90dd450c 14324
21d1c967 14325 #include <X11/xpm.h>
a0b9e27f
MB
14326
14327int main() {
6f72b082 14328
21d1c967
GD
14329 int version;
14330 version = XpmLibraryVersion();
a0b9e27f
MB
14331
14332; return 0; }
14333EOF
e5a87141 14334if { (eval echo configure:14335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14335 rm -rf conftest*
14336
21d1c967 14337 xpm_link=" -lXpm"
a0b9e27f 14338 cat >> confdefs.h <<\EOF
21d1c967 14339#define wxHAVE_LIB_XPM 1
a0b9e27f 14340EOF
90dd450c 14341
a0b9e27f 14342 echo "$ac_t""found in default search path" 1>&6
21d1c967 14343 COMPILED_X_PROGRAM=0
a0b9e27f 14344
21d1c967 14345else
a0b9e27f
MB
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 rm -rf conftest*
14349
14350 echo "$ac_t""no" 1>&6
14351 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14352
14353
6f72b082 14354fi
a0b9e27f 14355rm -f conftest*
21d1c967 14356 fi
90dd450c 14357
f7f78039 14358 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
e5a87141 14359echo "configure:14360: checking for XShapeQueryExtension in -lXext" >&5
f7f78039
MB
14360ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14361if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14363else
14364 ac_save_LIBS="$LIBS"
14365LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14366cat > conftest.$ac_ext <<EOF
e5a87141 14367#line 14368 "configure"
f7f78039
MB
14368#include "confdefs.h"
14369/* Override any gcc2 internal prototype to avoid an error. */
14370/* We use char because int might match the return type of a gcc2
14371 builtin and then its argument prototype would still apply. */
14372char XShapeQueryExtension();
14373
14374int main() {
14375XShapeQueryExtension()
14376; return 0; }
14377EOF
e5a87141 14378if { (eval echo configure:14379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f7f78039
MB
14379 rm -rf conftest*
14380 eval "ac_cv_lib_$ac_lib_var=yes"
14381else
14382 echo "configure: failed program was:" >&5
14383 cat conftest.$ac_ext >&5
14384 rm -rf conftest*
14385 eval "ac_cv_lib_$ac_lib_var=no"
14386fi
14387rm -f conftest*
14388LIBS="$ac_save_LIBS"
14389
14390fi
14391if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14392 echo "$ac_t""yes" 1>&6
14393
14394 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14395 wxHAVE_XEXT_LIB=1
14396
14397else
14398 echo "$ac_t""no" 1>&6
14399fi
14400
14401
2b5f62a0
VZ
14402 if test "$wxUSE_UNICODE" = "yes"; then
14403
14404 succeeded=no
90dd450c 14405
2b5f62a0
VZ
14406 if test -z "$PKG_CONFIG"; then
14407 # Extract the first word of "pkg-config", so it can be a program name with args.
14408set dummy pkg-config; ac_word=$2
14409echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 14410echo "configure:14411: checking for $ac_word" >&5
2b5f62a0 14411if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14412 echo $ac_n "(cached) $ac_c" 1>&6
14413else
2b5f62a0
VZ
14414 case "$PKG_CONFIG" in
14415 /*)
14416 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14417 ;;
14418 ?:/*)
14419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14420 ;;
14421 *)
14422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14423 ac_dummy="$PATH"
14424 for ac_dir in $ac_dummy; do
14425 test -z "$ac_dir" && ac_dir=.
14426 if test -f $ac_dir/$ac_word; then
14427 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14428 break
14429 fi
14430 done
14431 IFS="$ac_save_ifs"
14432 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14433 ;;
14434esac
14435fi
14436PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14437if test -n "$PKG_CONFIG"; then
14438 echo "$ac_t""$PKG_CONFIG" 1>&6
14439else
14440 echo "$ac_t""no" 1>&6
14441fi
14442
14443 fi
14444
14445 if test "$PKG_CONFIG" = "no" ; then
14446 echo "*** The pkg-config script could not be found. Make sure it is"
14447 echo "*** in your path, or set the PKG_CONFIG environment variable"
14448 echo "*** to the full path to pkg-config."
14449 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14450 else
14451 PKG_CONFIG_MIN_VERSION=0.9.0
14452 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14453 echo $ac_n "checking for pangox""... $ac_c" 1>&6
e5a87141 14454echo "configure:14455: checking for pangox" >&5
2b5f62a0
VZ
14455
14456 if $PKG_CONFIG --exists "pangox" ; then
14457 echo "$ac_t""yes" 1>&6
14458 succeeded=yes
14459
14460 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
e5a87141 14461echo "configure:14462: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14462 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14463 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14464
14465 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
e5a87141 14466echo "configure:14467: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14467 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14468 echo "$ac_t""$PANGOX_LIBS" 1>&6
14469 else
14470 PANGOX_CFLAGS=""
14471 PANGOX_LIBS=""
14472 ## If we have a custom action on failure, don't print errors, but
14473 ## do set a variable so people can do so.
14474 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14475
14476 fi
14477
14478
14479
14480 else
14481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14483 fi
14484 fi
14485
14486 if test $succeeded = yes; then
14487
14488 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14489 LIBS="$LIBS $PANGOX_LIBS"
14490
14491 else
14492
14493 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14494
14495
14496 fi
14497
14498
14499 succeeded=no
14500
14501 if test -z "$PKG_CONFIG"; then
14502 # Extract the first word of "pkg-config", so it can be a program name with args.
14503set dummy pkg-config; ac_word=$2
14504echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 14505echo "configure:14506: checking for $ac_word" >&5
2b5f62a0
VZ
14506if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
14508else
14509 case "$PKG_CONFIG" in
14510 /*)
14511 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14512 ;;
14513 ?:/*)
14514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14515 ;;
14516 *)
14517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14518 ac_dummy="$PATH"
14519 for ac_dir in $ac_dummy; do
14520 test -z "$ac_dir" && ac_dir=.
14521 if test -f $ac_dir/$ac_word; then
14522 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14523 break
14524 fi
14525 done
14526 IFS="$ac_save_ifs"
14527 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14528 ;;
14529esac
14530fi
14531PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14532if test -n "$PKG_CONFIG"; then
14533 echo "$ac_t""$PKG_CONFIG" 1>&6
14534else
14535 echo "$ac_t""no" 1>&6
14536fi
14537
14538 fi
14539
14540 if test "$PKG_CONFIG" = "no" ; then
14541 echo "*** The pkg-config script could not be found. Make sure it is"
14542 echo "*** in your path, or set the PKG_CONFIG environment variable"
14543 echo "*** to the full path to pkg-config."
14544 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14545 else
14546 PKG_CONFIG_MIN_VERSION=0.9.0
14547 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14548 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
e5a87141 14549echo "configure:14550: checking for pangoft2" >&5
2b5f62a0
VZ
14550
14551 if $PKG_CONFIG --exists "pangoft2" ; then
14552 echo "$ac_t""yes" 1>&6
14553 succeeded=yes
14554
14555 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
e5a87141 14556echo "configure:14557: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14557 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14558 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14559
14560 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
e5a87141 14561echo "configure:14562: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14562 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14563 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14564 else
14565 PANGOFT2_CFLAGS=""
14566 PANGOFT2_LIBS=""
14567 ## If we have a custom action on failure, don't print errors, but
14568 ## do set a variable so people can do so.
14569 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14570
14571 fi
14572
14573
14574
14575 else
14576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14578 fi
14579 fi
14580
14581 if test $succeeded = yes; then
14582
14583 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14584 LIBS="$LIBS $PANGOFT2_LIBS"
14585
14586 else
14587
14588 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14589 wxUSE_PRINTING_ARCHITECTURE="no"
14590
14591
14592 fi
14593
14594
14595 succeeded=no
14596
14597 if test -z "$PKG_CONFIG"; then
14598 # Extract the first word of "pkg-config", so it can be a program name with args.
14599set dummy pkg-config; ac_word=$2
14600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 14601echo "configure:14602: checking for $ac_word" >&5
2b5f62a0
VZ
14602if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14603 echo $ac_n "(cached) $ac_c" 1>&6
14604else
14605 case "$PKG_CONFIG" in
14606 /*)
14607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14608 ;;
14609 ?:/*)
14610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14611 ;;
14612 *)
14613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14614 ac_dummy="$PATH"
14615 for ac_dir in $ac_dummy; do
14616 test -z "$ac_dir" && ac_dir=.
14617 if test -f $ac_dir/$ac_word; then
14618 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14619 break
14620 fi
14621 done
14622 IFS="$ac_save_ifs"
14623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14624 ;;
14625esac
14626fi
14627PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14628if test -n "$PKG_CONFIG"; then
14629 echo "$ac_t""$PKG_CONFIG" 1>&6
14630else
14631 echo "$ac_t""no" 1>&6
14632fi
14633
14634 fi
14635
14636 if test "$PKG_CONFIG" = "no" ; then
14637 echo "*** The pkg-config script could not be found. Make sure it is"
14638 echo "*** in your path, or set the PKG_CONFIG environment variable"
14639 echo "*** to the full path to pkg-config."
14640 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14641 else
14642 PKG_CONFIG_MIN_VERSION=0.9.0
14643 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14644 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
e5a87141 14645echo "configure:14646: checking for pangoxft" >&5
2b5f62a0
VZ
14646
14647 if $PKG_CONFIG --exists "pangoxft" ; then
14648 echo "$ac_t""yes" 1>&6
14649 succeeded=yes
14650
14651 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
e5a87141 14652echo "configure:14653: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14653 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14654 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14655
14656 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
e5a87141 14657echo "configure:14658: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14658 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14659 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14660 else
14661 PANGOXFT_CFLAGS=""
14662 PANGOXFT_LIBS=""
14663 ## If we have a custom action on failure, don't print errors, but
14664 ## do set a variable so people can do so.
14665 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14666
14667 fi
14668
14669
14670
14671 else
14672 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14673 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14674 fi
14675 fi
14676
14677 if test $succeeded = yes; then
14678
14679 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14680 LIBS="$LIBS $PANGOXFT_LIBS"
14681
14682 else
14683
14684 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14685
14686
14687 fi
14688
14689 fi
14690
14691 wxUSE_UNIVERSAL="yes"
14692
14693 if test "$wxUSE_NANOX" = "yes"; then
14694 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14695 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"
14696 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14697 else
14698 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14699 fi
14700
14701 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14702 TOOLKIT=X11
14703 GUIDIST=X11_DIST
14704 fi
14705
21d1c967
GD
14706 if test "$wxUSE_MOTIF" = 1; then
14707 if test "$no_x" = yes; then
14708 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14709 cat >> confdefs.h <<\EOF
21d1c967 14710#define X_DISPLAY_MISSING 1
a0b9e27f 14711EOF
21d1c967
GD
14712
14713 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14714else
14715 if test -n "$x_includes"; then
14716 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14717 fi
14718
21d1c967
GD
14719 # It would also be nice to do this for all -L options, not just this one.
14720 if test -n "$x_libraries"; then
14721 X_LIBS="$X_LIBS -L$x_libraries"
14722 # For Solaris; some versions of Sun CC require a space after -R and
14723 # others require no space. Words are not sufficient . . . .
a0b9e27f 14724 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14725 "SunOS 5"*)
a0b9e27f 14726 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
e5a87141 14727echo "configure:14728: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14728 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14729 cat > conftest.$ac_ext <<EOF
e5a87141 14730#line 14731 "configure"
21d1c967
GD
14731#include "confdefs.h"
14732
a0b9e27f 14733int main() {
21d1c967 14734
a0b9e27f
MB
14735; return 0; }
14736EOF
e5a87141 14737if { (eval echo configure:14738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14738 rm -rf conftest*
21d1c967 14739 ac_R_nospace=yes
698dcdb6 14740else
a0b9e27f
MB
14741 echo "configure: failed program was:" >&5
14742 cat conftest.$ac_ext >&5
14743 rm -rf conftest*
14744 ac_R_nospace=no
10f2d63a 14745fi
a0b9e27f 14746rm -f conftest*
21d1c967 14747 if test $ac_R_nospace = yes; then
a0b9e27f 14748 echo "$ac_t""no" 1>&6
21d1c967
GD
14749 X_LIBS="$X_LIBS -R$x_libraries"
14750 else
14751 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14752 cat > conftest.$ac_ext <<EOF
e5a87141 14753#line 14754 "configure"
21d1c967 14754#include "confdefs.h"
10f2d63a 14755
a0b9e27f 14756int main() {
f0c87536 14757
a0b9e27f
MB
14758; return 0; }
14759EOF
e5a87141 14760if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14761 rm -rf conftest*
21d1c967
GD
14762 ac_R_space=yes
14763else
a0b9e27f
MB
14764 echo "configure: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 rm -rf conftest*
14767 ac_R_space=no
21d1c967 14768fi
a0b9e27f 14769rm -f conftest*
21d1c967 14770 if test $ac_R_space = yes; then
a0b9e27f 14771 echo "$ac_t""yes" 1>&6
21d1c967
GD
14772 X_LIBS="$X_LIBS -R $x_libraries"
14773 else
a0b9e27f 14774 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14775 fi
14776 fi
a0b9e27f 14777 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14778 esac
14779 fi
90dd450c 14780
21d1c967
GD
14781 # Check for system-dependent libraries X programs must link with.
14782 # Do this before checking for the system-independent R6 libraries
14783 # (-lICE), since we may need -lsocket or whatever for X linking.
14784
14785 if test "$ISC" = yes; then
14786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14787 else
a0b9e27f
MB
14788 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14789 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14790 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14791 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
e5a87141 14792echo "configure:14793: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14793ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14795 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14796else
a0b9e27f 14797 ac_save_LIBS="$LIBS"
247f5006 14798LIBS="-ldnet $LIBS"
a0b9e27f 14799cat > conftest.$ac_ext <<EOF
e5a87141 14800#line 14801 "configure"
247f5006 14801#include "confdefs.h"
247f5006 14802/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14803/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14804 builtin and then its argument prototype would still apply. */
14805char dnet_ntoa();
14806
14807int main() {
14808dnet_ntoa()
14809; return 0; }
14810EOF
e5a87141 14811if { (eval echo configure:14812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14812 rm -rf conftest*
14813 eval "ac_cv_lib_$ac_lib_var=yes"
14814else
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14817 rm -rf conftest*
14818 eval "ac_cv_lib_$ac_lib_var=no"
14819fi
14820rm -f conftest*
14821LIBS="$ac_save_LIBS"
14822
14823fi
14824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14825 echo "$ac_t""yes" 1>&6
21d1c967 14826 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14827else
14828 echo "$ac_t""no" 1>&6
0fb0dd83 14829fi
0fb0dd83 14830
21d1c967 14831 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14832 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
e5a87141 14833echo "configure:14834: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14834ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14836 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14837else
a0b9e27f 14838 ac_save_LIBS="$LIBS"
21d1c967 14839LIBS="-ldnet_stub $LIBS"
a0b9e27f 14840cat > conftest.$ac_ext <<EOF
e5a87141 14841#line 14842 "configure"
21d1c967
GD
14842#include "confdefs.h"
14843/* Override any gcc2 internal prototype to avoid an error. */
14844/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14845 builtin and then its argument prototype would still apply. */
14846char dnet_ntoa();
14847
14848int main() {
14849dnet_ntoa()
14850; return 0; }
14851EOF
e5a87141 14852if { (eval echo configure:14853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14853 rm -rf conftest*
14854 eval "ac_cv_lib_$ac_lib_var=yes"
14855else
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14858 rm -rf conftest*
14859 eval "ac_cv_lib_$ac_lib_var=no"
14860fi
14861rm -f conftest*
14862LIBS="$ac_save_LIBS"
14863
14864fi
14865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14866 echo "$ac_t""yes" 1>&6
21d1c967 14867 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14868else
14869 echo "$ac_t""no" 1>&6
90dd450c
VZ
14870fi
14871
21d1c967 14872 fi
90dd450c 14873
21d1c967
GD
14874 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14875 # to get the SysV transport functions.
a0b9e27f 14876 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14877 # needs -lnsl.
14878 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14879 # on Irix 5.2, according to dickey@clark.net.
14880 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
e5a87141 14881echo "configure:14882: checking for gethostbyname" >&5
a0b9e27f
MB
14882if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14883 echo $ac_n "(cached) $ac_c" 1>&6
14884else
14885 cat > conftest.$ac_ext <<EOF
e5a87141 14886#line 14887 "configure"
21d1c967
GD
14887#include "confdefs.h"
14888/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14889 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14890#include <assert.h>
14891/* Override any gcc2 internal prototype to avoid an error. */
14892/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14893 builtin and then its argument prototype would still apply. */
14894char gethostbyname();
14895
14896int main() {
14897
21d1c967
GD
14898/* The GNU C library defines this for functions which it implements
14899 to always fail with ENOSYS. Some functions are actually named
14900 something starting with __ and the normal name is an alias. */
14901#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14902choke me
14903#else
a0b9e27f 14904gethostbyname();
21d1c967 14905#endif
90dd450c 14906
a0b9e27f
MB
14907; return 0; }
14908EOF
e5a87141 14909if { (eval echo configure:14910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14910 rm -rf conftest*
14911 eval "ac_cv_func_gethostbyname=yes"
14912else
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 rm -rf conftest*
14916 eval "ac_cv_func_gethostbyname=no"
14917fi
14918rm -f conftest*
14919fi
14920
14921if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14922 echo "$ac_t""yes" 1>&6
14923 :
14924else
14925 echo "$ac_t""no" 1>&6
14926fi
90dd450c 14927
21d1c967 14928 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14929 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
e5a87141 14930echo "configure:14931: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14931ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14934else
a0b9e27f 14935 ac_save_LIBS="$LIBS"
21d1c967 14936LIBS="-lnsl $LIBS"
a0b9e27f 14937cat > conftest.$ac_ext <<EOF
e5a87141 14938#line 14939 "configure"
21d1c967
GD
14939#include "confdefs.h"
14940/* Override any gcc2 internal prototype to avoid an error. */
14941/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14942 builtin and then its argument prototype would still apply. */
14943char gethostbyname();
5c6fa7d2 14944
a0b9e27f
MB
14945int main() {
14946gethostbyname()
14947; return 0; }
14948EOF
e5a87141 14949if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14950 rm -rf conftest*
14951 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14952else
a0b9e27f
MB
14953 echo "configure: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14955 rm -rf conftest*
14956 eval "ac_cv_lib_$ac_lib_var=no"
14957fi
14958rm -f conftest*
14959LIBS="$ac_save_LIBS"
247f5006 14960
a0b9e27f
MB
14961fi
14962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14963 echo "$ac_t""yes" 1>&6
14964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14965else
14966 echo "$ac_t""no" 1>&6
21d1c967 14967fi
90dd450c 14968
90dd450c
VZ
14969 fi
14970
21d1c967
GD
14971 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14972 # socket/setsockopt and other routines are undefined under SCO ODT
14973 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14974 # on later versions), says simon@lia.di.epfl.ch: it contains
14975 # gethostby* variants that don't use the nameserver (or something).
14976 # -lsocket must be given before -lnsl if both are needed.
14977 # We assume that if connect needs -lnsl, so does gethostbyname.
14978 echo $ac_n "checking for connect""... $ac_c" 1>&6
e5a87141 14979echo "configure:14980: checking for connect" >&5
a0b9e27f
MB
14980if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
14982else
14983 cat > conftest.$ac_ext <<EOF
e5a87141 14984#line 14985 "configure"
21d1c967
GD
14985#include "confdefs.h"
14986/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14987 which can conflict with char connect(); below. */
21d1c967
GD
14988#include <assert.h>
14989/* Override any gcc2 internal prototype to avoid an error. */
14990/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14991 builtin and then its argument prototype would still apply. */
14992char connect();
14993
14994int main() {
14995
21d1c967
GD
14996/* The GNU C library defines this for functions which it implements
14997 to always fail with ENOSYS. Some functions are actually named
14998 something starting with __ and the normal name is an alias. */
14999#if defined (__stub_connect) || defined (__stub___connect)
15000choke me
15001#else
a0b9e27f 15002connect();
21d1c967 15003#endif
90dd450c 15004
a0b9e27f
MB
15005; return 0; }
15006EOF
e5a87141 15007if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15008 rm -rf conftest*
15009 eval "ac_cv_func_connect=yes"
15010else
15011 echo "configure: failed program was:" >&5
15012 cat conftest.$ac_ext >&5
15013 rm -rf conftest*
15014 eval "ac_cv_func_connect=no"
15015fi
15016rm -f conftest*
15017fi
15018
15019if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15020 echo "$ac_t""yes" 1>&6
15021 :
15022else
15023 echo "$ac_t""no" 1>&6
15024fi
1f8ae82f 15025
21d1c967 15026 if test $ac_cv_func_connect = no; then
a0b9e27f 15027 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
e5a87141 15028echo "configure:15029: checking for connect in -lsocket" >&5
a0b9e27f
MB
15029ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15030if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15031 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15032else
a0b9e27f 15033 ac_save_LIBS="$LIBS"
21d1c967 15034LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15035cat > conftest.$ac_ext <<EOF
e5a87141 15036#line 15037 "configure"
0fbb762e 15037#include "confdefs.h"
21d1c967
GD
15038/* Override any gcc2 internal prototype to avoid an error. */
15039/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15040 builtin and then its argument prototype would still apply. */
15041char connect();
15042
15043int main() {
15044connect()
15045; return 0; }
15046EOF
e5a87141 15047if { (eval echo configure:15048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15048 rm -rf conftest*
15049 eval "ac_cv_lib_$ac_lib_var=yes"
15050else
15051 echo "configure: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 rm -rf conftest*
15054 eval "ac_cv_lib_$ac_lib_var=no"
15055fi
15056rm -f conftest*
15057LIBS="$ac_save_LIBS"
15058
15059fi
15060if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15061 echo "$ac_t""yes" 1>&6
21d1c967 15062 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15063else
15064 echo "$ac_t""no" 1>&6
21d1c967 15065fi
90dd450c 15066
21d1c967 15067 fi
90dd450c 15068
a0b9e27f
MB
15069 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15070 echo $ac_n "checking for remove""... $ac_c" 1>&6
e5a87141 15071echo "configure:15072: checking for remove" >&5
a0b9e27f
MB
15072if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15073 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15074else
a0b9e27f 15075 cat > conftest.$ac_ext <<EOF
e5a87141 15076#line 15077 "configure"
21d1c967
GD
15077#include "confdefs.h"
15078/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15079 which can conflict with char remove(); below. */
21d1c967
GD
15080#include <assert.h>
15081/* Override any gcc2 internal prototype to avoid an error. */
15082/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15083 builtin and then its argument prototype would still apply. */
15084char remove();
15085
15086int main() {
15087
21d1c967
GD
15088/* The GNU C library defines this for functions which it implements
15089 to always fail with ENOSYS. Some functions are actually named
15090 something starting with __ and the normal name is an alias. */
15091#if defined (__stub_remove) || defined (__stub___remove)
15092choke me
15093#else
a0b9e27f 15094remove();
21d1c967 15095#endif
90dd450c 15096
a0b9e27f
MB
15097; return 0; }
15098EOF
e5a87141 15099if { (eval echo configure:15100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15100 rm -rf conftest*
15101 eval "ac_cv_func_remove=yes"
15102else
15103 echo "configure: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15105 rm -rf conftest*
15106 eval "ac_cv_func_remove=no"
15107fi
15108rm -f conftest*
15109fi
15110
15111if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15112 echo "$ac_t""yes" 1>&6
15113 :
15114else
15115 echo "$ac_t""no" 1>&6
15116fi
90dd450c 15117
21d1c967 15118 if test $ac_cv_func_remove = no; then
a0b9e27f 15119 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
e5a87141 15120echo "configure:15121: checking for remove in -lposix" >&5
a0b9e27f
MB
15121ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15122if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15123 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15124else
a0b9e27f 15125 ac_save_LIBS="$LIBS"
21d1c967 15126LIBS="-lposix $LIBS"
a0b9e27f 15127cat > conftest.$ac_ext <<EOF
e5a87141 15128#line 15129 "configure"
21d1c967
GD
15129#include "confdefs.h"
15130/* Override any gcc2 internal prototype to avoid an error. */
15131/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15132 builtin and then its argument prototype would still apply. */
15133char remove();
15134
15135int main() {
15136remove()
15137; return 0; }
15138EOF
e5a87141 15139if { (eval echo configure:15140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15140 rm -rf conftest*
15141 eval "ac_cv_lib_$ac_lib_var=yes"
15142else
15143 echo "configure: failed program was:" >&5
15144 cat conftest.$ac_ext >&5
15145 rm -rf conftest*
15146 eval "ac_cv_lib_$ac_lib_var=no"
15147fi
15148rm -f conftest*
15149LIBS="$ac_save_LIBS"
15150
15151fi
15152if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15153 echo "$ac_t""yes" 1>&6
21d1c967 15154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15155else
15156 echo "$ac_t""no" 1>&6
21d1c967 15157fi
19bc6aad 15158
90dd450c 15159 fi
19bc6aad 15160
21d1c967 15161 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15162 echo $ac_n "checking for shmat""... $ac_c" 1>&6
e5a87141 15163echo "configure:15164: checking for shmat" >&5
a0b9e27f
MB
15164if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15165 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15166else
a0b9e27f 15167 cat > conftest.$ac_ext <<EOF
e5a87141 15168#line 15169 "configure"
21d1c967
GD
15169#include "confdefs.h"
15170/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15171 which can conflict with char shmat(); below. */
21d1c967
GD
15172#include <assert.h>
15173/* Override any gcc2 internal prototype to avoid an error. */
15174/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15175 builtin and then its argument prototype would still apply. */
15176char shmat();
15177
15178int main() {
15179
21d1c967
GD
15180/* The GNU C library defines this for functions which it implements
15181 to always fail with ENOSYS. Some functions are actually named
15182 something starting with __ and the normal name is an alias. */
15183#if defined (__stub_shmat) || defined (__stub___shmat)
15184choke me
15185#else
a0b9e27f 15186shmat();
21d1c967 15187#endif
90dd450c 15188
a0b9e27f
MB
15189; return 0; }
15190EOF
e5a87141 15191if { (eval echo configure:15192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15192 rm -rf conftest*
15193 eval "ac_cv_func_shmat=yes"
15194else
15195 echo "configure: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 rm -rf conftest*
15198 eval "ac_cv_func_shmat=no"
15199fi
15200rm -f conftest*
15201fi
15202
15203if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15204 echo "$ac_t""yes" 1>&6
15205 :
15206else
15207 echo "$ac_t""no" 1>&6
15208fi
19bc6aad 15209
21d1c967 15210 if test $ac_cv_func_shmat = no; then
a0b9e27f 15211 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
e5a87141 15212echo "configure:15213: checking for shmat in -lipc" >&5
a0b9e27f
MB
15213ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15214if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15215 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15216else
a0b9e27f 15217 ac_save_LIBS="$LIBS"
5c6fa7d2 15218LIBS="-lipc $LIBS"
a0b9e27f 15219cat > conftest.$ac_ext <<EOF
e5a87141 15220#line 15221 "configure"
5c6fa7d2 15221#include "confdefs.h"
5c6fa7d2 15222/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15223/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15224 builtin and then its argument prototype would still apply. */
15225char shmat();
15226
15227int main() {
15228shmat()
15229; return 0; }
15230EOF
e5a87141 15231if { (eval echo configure:15232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15232 rm -rf conftest*
15233 eval "ac_cv_lib_$ac_lib_var=yes"
15234else
15235 echo "configure: failed program was:" >&5
15236 cat conftest.$ac_ext >&5
15237 rm -rf conftest*
15238 eval "ac_cv_lib_$ac_lib_var=no"
15239fi
15240rm -f conftest*
15241LIBS="$ac_save_LIBS"
15242
15243fi
15244if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15245 echo "$ac_t""yes" 1>&6
21d1c967 15246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15247else
15248 echo "$ac_t""no" 1>&6
9f8148b1 15249fi
90dd450c 15250
90dd450c 15251 fi
21d1c967 15252 fi
10f2d63a 15253
21d1c967 15254 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15255 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15256 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15257 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15258 # check for ICE first), but we must link in the order -lSM -lICE or
15259 # we get undefined symbols. So assume we have SM if we have ICE.
15260 # These have to be linked with before -lX11, unlike the other
15261 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15262 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15263 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
e5a87141 15264echo "configure:15265: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15265ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15266if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15268else
15269 ac_save_LIBS="$LIBS"
f09359cf 15270LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15271cat > conftest.$ac_ext <<EOF
e5a87141 15272#line 15273 "configure"
29fd3c0c 15273#include "confdefs.h"
21d1c967
GD
15274/* Override any gcc2 internal prototype to avoid an error. */
15275/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15276 builtin and then its argument prototype would still apply. */
15277char IceConnectionNumber();
15278
15279int main() {
15280IceConnectionNumber()
15281; return 0; }
15282EOF
e5a87141 15283if { (eval echo configure:15284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15284 rm -rf conftest*
15285 eval "ac_cv_lib_$ac_lib_var=yes"
15286else
15287 echo "configure: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15289 rm -rf conftest*
15290 eval "ac_cv_lib_$ac_lib_var=no"
15291fi
15292rm -f conftest*
15293LIBS="$ac_save_LIBS"
15294
15295fi
15296if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15297 echo "$ac_t""yes" 1>&6
21d1c967 15298 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15299else
15300 echo "$ac_t""no" 1>&6
29fd3c0c 15301fi
21d1c967 15302
a0b9e27f 15303 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15304
10f2d63a
VZ
15305fi
15306
8284b0c5 15307
21d1c967 15308 if test "$no_x" = "yes"; then
a0b9e27f 15309 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15310 fi
15311
2b5f62a0
VZ
15312 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15313 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15314 AFMINSTALL=afminstall
15315 COMPILED_X_PROGRAM=0
15316
a0b9e27f 15317 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
e5a87141 15318echo "configure:15319: checking for Motif/Lesstif headers" >&5
a0b9e27f 15319
21d1c967 15320ac_find_includes=
2b5f62a0 15321for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15322 do
15323 if test -f "$ac_dir/Xm/Xm.h"; then
15324 ac_find_includes=$ac_dir
15325 break
15326 fi
15327 done
15328
15329 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15330 echo "$ac_t""found in $ac_find_includes" 1>&6
15331
2b5f62a0 15332 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15333 ac_path_to_include=""
15334 else
2b5f62a0
VZ
15335 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15336 result=$?
15337 if test $result = 0; then
15338 ac_path_to_include=""
15339 else
15340 ac_path_to_include=" -I$ac_find_includes"
15341 fi
dd0e4a90
VZ
15342 fi
15343
15344 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15345 else
a0b9e27f 15346 cat > conftest.$ac_ext <<EOF
e5a87141 15347#line 15348 "configure"
10f2d63a 15348#include "confdefs.h"
21d1c967
GD
15349
15350 #include <Xm/Xm.h>
a0b9e27f
MB
15351
15352int main() {
21d1c967
GD
15353
15354 int version;
15355 version = xmUseVersion;
a0b9e27f
MB
15356
15357; return 0; }
15358EOF
e5a87141 15359if { (eval echo configure:15360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15360 rm -rf conftest*
15361
15362 echo "$ac_t""found in default search path" 1>&6
21d1c967 15363 COMPILED_X_PROGRAM=1
a0b9e27f 15364
10f2d63a 15365else
a0b9e27f
MB
15366 echo "configure: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15368 rm -rf conftest*
15369
15370 echo "$ac_t""no" 1>&6
15371 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15372
15373
10f2d63a 15374fi
a0b9e27f 15375rm -f conftest*
21d1c967 15376 fi
10f2d63a 15377
21d1c967 15378 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15379 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
e5a87141 15380echo "configure:15381: checking for Motif/Lesstif library" >&5
a0b9e27f 15381
21d1c967 15382ac_find_libraries=
2b5f62a0 15383for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15384 do
15385 for ac_extension in a so sl dylib; do
15386 if test -f "$ac_dir/libXm.$ac_extension"; then
15387 ac_find_libraries=$ac_dir
15388 break 2
15389 fi
15390 done
15391 done
15392
15393 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15394 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15395
a0b9e27f 15396
21d1c967
GD
15397 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15398 result=$?
15399 if test $result = 0; then
15400 ac_path_to_link=""
15401 else
15402 ac_path_to_link=" -L$ac_find_libraries"
15403 fi
15404
21d1c967 15405 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15406 else
dd0e4a90
VZ
15407 save_CFLAGS=$CFLAGS
15408 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15409
a0b9e27f 15410 cat > conftest.$ac_ext <<EOF
e5a87141 15411#line 15412 "configure"
d836ee96 15412#include "confdefs.h"
21d1c967
GD
15413
15414 #include <Xm/Xm.h>
a0b9e27f
MB
15415
15416int main() {
21d1c967
GD
15417
15418 int version;
15419 version = xmUseVersion;
a0b9e27f
MB
15420
15421; return 0; }
15422EOF
e5a87141 15423if { (eval echo configure:15424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15424 rm -rf conftest*
15425
15426 echo "$ac_t""found in default search path" 1>&6
21d1c967 15427 COMPILED_X_PROGRAM=1
a0b9e27f 15428
d836ee96 15429else
a0b9e27f
MB
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433
15434 echo "$ac_t""no" 1>&6
15435 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15436
15437
d836ee96 15438fi
a0b9e27f 15439rm -f conftest*
dd0e4a90
VZ
15440
15441 CFLAGS=$save_CFLAGS
21d1c967
GD
15442 fi
15443 fi
15444
15445 xpm_link=
a0b9e27f 15446 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e5a87141 15447echo "configure:15448: checking for Xpm library" >&5
a0b9e27f 15448
21d1c967 15449ac_find_libraries=
2b5f62a0 15450for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15451 do
15452 for ac_extension in a so sl dylib; do
15453 if test -f "$ac_dir/libXpm.$ac_extension"; then
15454 ac_find_libraries=$ac_dir
15455 break 2
15456 fi
15457 done
15458 done
15459
15460 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15461
21d1c967
GD
15462 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15463 result=$?
15464 if test $result = 0; then
15465 ac_path_to_link=""
15466 else
15467 ac_path_to_link=" -L$ac_find_libraries"
15468 fi
15469
15470 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15471
21d1c967 15472 xpm_link=" -lXpm"
a0b9e27f 15473 cat >> confdefs.h <<\EOF
21d1c967 15474#define wxHAVE_LIB_XPM 1
a0b9e27f 15475EOF
90dd450c 15476
a0b9e27f 15477 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15478 else
dd0e4a90
VZ
15479 save_CFLAGS=$CFLAGS
15480 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15481
a0b9e27f 15482 cat > conftest.$ac_ext <<EOF
e5a87141 15483#line 15484 "configure"
d836ee96 15484#include "confdefs.h"
21d1c967
GD
15485
15486 #include <X11/xpm.h>
a0b9e27f
MB
15487
15488int main() {
21d1c967
GD
15489
15490 int version;
15491 version = XpmLibraryVersion();
a0b9e27f
MB
15492
15493; return 0; }
15494EOF
e5a87141 15495if { (eval echo configure:15496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15496 rm -rf conftest*
15497
21d1c967 15498 xpm_link=" -lXpm"
a0b9e27f 15499 cat >> confdefs.h <<\EOF
21d1c967 15500#define wxHAVE_LIB_XPM 1
a0b9e27f 15501EOF
21d1c967 15502
a0b9e27f 15503 echo "$ac_t""found in default search path" 1>&6
21d1c967 15504 COMPILED_X_PROGRAM=0
a0b9e27f 15505
d836ee96 15506else
a0b9e27f
MB
15507 echo "configure: failed program was:" >&5
15508 cat conftest.$ac_ext >&5
15509 rm -rf conftest*
15510
15511 echo "$ac_t""no" 1>&6
15512 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15513
15514
d836ee96 15515fi
a0b9e27f 15516rm -f conftest*
dd0e4a90
VZ
15517
15518 CFLAGS=$save_CFLAGS
21d1c967
GD
15519 fi
15520
a0b9e27f 15521 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
e5a87141 15522echo "configure:15523: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15523 libp_link=""
15524 libsm_ice_link=""
15525 libs_found=0
15526 for libp in "" " -lXp"; do
15527 if test "$libs_found" = "0"; then
15528 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15529 if test "$libs_found" = "0"; then
6a30f1c8
MB
15530 save_LIBS="$LIBS"
15531 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15532 save_CFLAGS=$CFLAGS
15533 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15534
a0b9e27f 15535 cat > conftest.$ac_ext <<EOF
e5a87141 15536#line 15537 "configure"
6a30f1c8 15537#include "confdefs.h"
17234b26 15538
6a30f1c8
MB
15539 #include <Xm/Xm.h>
15540 #include <Xm/List.h>
a0b9e27f
MB
15541
15542int main() {
6a30f1c8
MB
15543
15544 XmString string = NULL;
15545 Widget w = NULL;
15546 int position = 0;
15547 XmListAddItem(w, string, position);
a0b9e27f
MB
15548
15549; return 0; }
15550EOF
e5a87141 15551if { (eval echo configure:15552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15552 rm -rf conftest*
15553
6a30f1c8
MB
15554 libp_link="$libp"
15555 libsm_ice_link="$libsm_ice"
a0b9e27f 15556 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15557 libs_found=1
a0b9e27f 15558
6a30f1c8 15559else
a0b9e27f
MB
15560 echo "configure: failed program was:" >&5
15561 cat conftest.$ac_ext >&5
15562 rm -rf conftest*
15563
15564
6a30f1c8 15565fi
a0b9e27f 15566rm -f conftest*
dd0e4a90 15567
6a30f1c8 15568 LIBS="$save_LIBS"
dd0e4a90 15569 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15570 fi
15571 done
15572 fi
15573 done
15574
15575 if test "$libs_found" = "0"; then
a0b9e27f
MB
15576 echo "$ac_t""can't find the right libraries" 1>&6
15577 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15578 fi
15579
da494b40
MB
15580 save_CFLAGS=$CFLAGS
15581 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15582 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
e5a87141 15583echo "configure:15584: checking for Motif 2" >&5
da494b40 15584 cat > conftest.$ac_ext <<EOF
e5a87141 15585#line 15586 "configure"
da494b40
MB
15586#include "confdefs.h"
15587
15588 #include <Xm/Xm.h>
15589
15590int main() {
15591
15592 #if XmVersion < 2000
15593 #error "Not Motif 2"
15594 #endif
15595
15596; return 0; }
15597EOF
e5a87141 15598if { (eval echo configure:15599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15599 rm -rf conftest*
15600
15601 cat >> confdefs.h <<\EOF
15602#define __WXMOTIF20__ 1
15603EOF
15604
15605 echo "$ac_t""found" 1>&6
15606
15607else
15608 echo "configure: failed program was:" >&5
15609 cat conftest.$ac_ext >&5
15610 rm -rf conftest*
15611
15612 cat >> confdefs.h <<\EOF
15613#define __WXMOTIF20__ 0
15614EOF
15615
15616 echo "$ac_t""not found" 1>&6
15617
15618fi
15619rm -f conftest*
15620 CFLAGS=$save_CFLAGS
15621
6a30f1c8 15622 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15623 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15624 TOOLKIT=MOTIF
15625 GUIDIST=MOTIF_DIST
f7f78039
MB
15626 wxHAVE_XEXT_LIB=1
15627 fi
15628
15629 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15630 test "$wxHAVE_XEXT_LIB" = 1; then
15631 save_CFLAGS="$CFLAGS"
15632 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15633
15634 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
e5a87141 15635echo "configure:15636: checking for X11/extensions/shape.h" >&5
f7f78039 15636 cat > conftest.$ac_ext <<EOF
e5a87141 15637#line 15638 "configure"
f7f78039
MB
15638#include "confdefs.h"
15639
15640 #include <X11/Xlib.h>
15641 #include <X11/extensions/shape.h>
15642
15643int main() {
15644
15645 int dummy1, dummy2;
15646 XShapeQueryExtension((Display*)NULL,
15647 (int*)NULL, (int*)NULL);
15648
15649; return 0; }
15650EOF
e5a87141 15651if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f7f78039
MB
15652 rm -rf conftest*
15653
15654 cat >> confdefs.h <<\EOF
15655#define HAVE_XSHAPE 1
15656EOF
15657
15658 echo "$ac_t""found" 1>&6
15659
15660else
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 rm -rf conftest*
15664
15665 echo "$ac_t""not found" 1>&6
15666
15667fi
15668rm -f conftest*
15669 CFLAGS="$save_CFLAGS"
21d1c967
GD
15670 fi
15671
15672 if test "$wxUSE_MAC" = 1; then
0c98a14e 15673 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15674
0c98a14e 15675 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15676 TOOLKIT=MAC
15677 GUIDIST=MACX_DIST
15678 fi
15679
ac0c4cc3
DE
15680 if test "$wxUSE_COCOA" = 1; then
15681 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15682 TOOLKIT=COCOA
15683 GUIDIST=COCOA_DIST
15684 fi
15685
21d1c967
GD
15686 if test "$wxUSE_PM" = 1; then
15687 TOOLKIT=PM
15688 GUIDIST=GTK_DIST
2b5f62a0 15689 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15690 wxUSE_THREADS="no"
21d1c967
GD
15691 fi
15692
15693 if test "$TOOLKIT" = "PM" ; then
15694 TOOLKIT_DIR="os2"
15695 else
15696 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15697 fi
15698
15699 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15700
15701 if test "$wxUSE_UNIVERSAL" = "yes"; then
15702 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15703
15704 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15705 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15706
15707 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15708 if test "$wxUSE_X11" = 1; then
15709 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15710 else
15711 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15712 fi
15713 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15714 WIDGET_SET=univ
15715 else
15716 ALL_OBJECTS="\$(GUIOBJS)"
15717 ALL_SOURCES="\$(ALL_SOURCES)"
15718 ALL_HEADERS="\$(ALL_HEADERS)"
15719 fi
15720
15721 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15722
15723 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15724 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15725 fi
15726
15727 if test "$wxUSE_HTML" = "yes"; then
15728 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15729 fi
15730
15731 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15732 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15733 fi
15734 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15735 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15736 fi
15737 if test "$wxUSE_LIBPNG" = "builtin" ; then
15738 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15739 fi
15740
15741 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15742 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15743else
21d1c967
GD
15744 USE_GUI=0
15745
15746 TOOLKIT_DIR="base"
15747
15748 if test "$USE_WIN32" = 1 ; then
15749 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15750 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15751
15752 TOOLKIT="MSW"
15753 else
15754 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15755 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15756 fi
15757
15758 ALL_SOURCES="\$(ALL_SOURCES)"
15759 ALL_HEADERS="\$(ALL_HEADERS)"
15760
15761 PORT_FILES="\${top_srcdir}/src/files.lst"
15762
15763 GUIDIST="BASE_DIST"
15764 DISTDIR="wxBase"
d836ee96
VZ
15765fi
15766
8284b0c5 15767
21d1c967
GD
15768if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15769 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15770fi
21d1c967
GD
15771
15772if test "$wxUSE_REGEX" = "builtin" ; then
15773 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15774fi
21d1c967
GD
15775if test "$wxUSE_ZLIB" = "builtin" ; then
15776 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15777fi
15778
8284b0c5 15779
21d1c967 15780if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 15781 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
15782 OPENGL_LIBS="-framework OpenGL -framework AGL"
15783 elif test "$wxUSE_MSW" = 1; then
15784 OPENGL_LIBS="-lopengl32 -lglu32"
15785 else
a0b9e27f
MB
15786 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15787echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
e5a87141 15788echo "configure:15789: checking for GL/gl.h" >&5
a0b9e27f
MB
15789if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15790 echo $ac_n "(cached) $ac_c" 1>&6
15791else
15792 cat > conftest.$ac_ext <<EOF
e5a87141 15793#line 15794 "configure"
10f2d63a 15794#include "confdefs.h"
21d1c967 15795#include <GL/gl.h>
a0b9e27f
MB
15796EOF
15797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 15798{ (eval echo configure:15799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15799ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15800if test -z "$ac_err"; then
15801 rm -rf conftest*
15802 eval "ac_cv_header_$ac_safe=yes"
15803else
15804 echo "$ac_err" >&5
15805 echo "configure: failed program was:" >&5
698dcdb6 15806 cat conftest.$ac_ext >&5
a0b9e27f
MB
15807 rm -rf conftest*
15808 eval "ac_cv_header_$ac_safe=no"
703e0a69 15809fi
a0b9e27f 15810rm -f conftest*
698dcdb6 15811fi
a0b9e27f
MB
15812if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15813 echo "$ac_t""yes" 1>&6
15814
89e3b3e4
VZ
15815 found_gl=0
15816
a0b9e27f 15817 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
e5a87141 15818echo "configure:15819: checking for -lGL" >&5
a0b9e27f 15819
21d1c967 15820ac_find_libraries=
2b5f62a0 15821for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15822 do
15823 for ac_extension in a so sl dylib; do
15824 if test -f "$ac_dir/libGL.$ac_extension"; then
15825 ac_find_libraries=$ac_dir
15826 break 2
15827 fi
15828 done
15829 done
15830
15831 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15832
21d1c967
GD
15833 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15834 result=$?
15835 if test $result = 0; then
15836 ac_path_to_link=""
15837 else
15838 ac_path_to_link=" -L$ac_find_libraries"
15839 fi
15840
89e3b3e4
VZ
15841 if test "$ac_path_to_link" != " -L/usr/lib" ; then
15842 LDFLAGS_GL="$ac_path_to_link"
21d1c967 15843 fi
89e3b3e4
VZ
15844
15845
15846ac_find_libraries=
15847for ac_dir in $SEARCH_LIB /usr/lib;
15848 do
15849 for ac_extension in a so sl dylib; do
15850 if test -f "$ac_dir/libGLU.$ac_extension"; then
15851 ac_find_libraries=$ac_dir
15852 break 2
15853 fi
15854 done
15855 done
15856
15857 if test "$ac_find_libraries" != "" ; then
15858
15859 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15860 result=$?
15861 if test $result = 0; then
15862 ac_path_to_link=""
15863 else
15864 ac_path_to_link=" -L$ac_find_libraries"
15865 fi
15866
15867 if test "$ac_path_to_link" != " -L/usr/lib" -a \
15868 "$ac_path_to_link" != "$LDFLAGS_GL"; then
15869 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
15870 fi
15871
15872 found_gl=1
15873 OPENGL_LIBS="-lGL -lGLU"
15874 echo "$ac_t""yes" 1>&6
15875 fi
15876 fi
15877
15878 if "$found_gl" != 1; then
a0b9e27f
MB
15879 echo "$ac_t""no" 1>&6
15880 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
e5a87141 15881echo "configure:15882: checking for -lMesaGL" >&5
a0b9e27f 15882
21d1c967 15883ac_find_libraries=
2b5f62a0 15884for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15885 do
15886 for ac_extension in a so sl dylib; do
15887 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15888 ac_find_libraries=$ac_dir
15889 break 2
15890 fi
15891 done
15892 done
15893
15894 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15895
21d1c967
GD
15896 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15897 result=$?
15898 if test $result = 0; then
15899 ac_path_to_link=""
15900 else
15901 ac_path_to_link=" -L$ac_find_libraries"
15902 fi
15903
15904 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15905 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15906 echo "$ac_t""yes" 1>&6
21d1c967 15907 else
a0b9e27f 15908 echo "$ac_t""no" 1>&6
21d1c967
GD
15909 fi
15910 fi
a0b9e27f
MB
15911
15912else
15913 echo "$ac_t""no" 1>&6
5c6fa7d2 15914fi
52127426 15915
8284b0c5 15916
21d1c967 15917 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15918 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15919 fi
15920 fi
90dd450c 15921
21d1c967 15922 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15923 cat >> confdefs.h <<\EOF
21d1c967 15924#define wxUSE_OPENGL 1
a0b9e27f 15925EOF
21d1c967 15926
a0b9e27f 15927 cat >> confdefs.h <<\EOF
21d1c967 15928#define wxUSE_GLCANVAS 1
a0b9e27f 15929EOF
21d1c967
GD
15930
15931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15932 fi
10f2d63a 15933fi
21d1c967
GD
15934
15935if test -z "$TOOLKIT_VPATH" ; then
15936 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15937fi
21d1c967
GD
15938
15939if test -n "$TOOLKIT" ; then
15940 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15941fi
15942
15943lib_unicode_suffix=
15944if test "$wxUSE_UNICODE" = "yes"; then
15945 lib_unicode_suffix=u
90dd450c 15946fi
698dcdb6 15947
21d1c967
GD
15948lib_debug_suffix=
15949if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15950 lib_debug_suffix=d
15951fi
698dcdb6 15952
2b5f62a0
VZ
15953WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15954
15955TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15956TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15957
15958if test "$cross_compiling" = "yes"; then
15959 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15960 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15961fi
15962
15963WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15964WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15965WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15966
15967WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15968WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15969
15970WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15971WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15972WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15973WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15974
15975case "${host}" in
15976 *-*-cygwin* | *-*-mingw32* )
15977
a0b9e27f
MB
15978
15979
17234b26 15980 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15981 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15982 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15983 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15984 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15985 else
15986 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15987 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15988 fi
15989 ;;
15990
15991 *-*-darwin* )
1542ea39 15992
05159a27
GD
15993 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15994 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15995
15996 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15997 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15998 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15999 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16000
21d1c967 16001 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16002 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16003 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16004 fi
16005 ;;
16006esac
16007
16008WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16009WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16010
16011WXCONFIG_LIBS="-l${WX_LIBRARY}"
16012WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16013
16014if test "$wxUSE_OPENGL" = "yes"; then
16015 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16016 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16017fi
16018
8284b0c5
MB
16019
16020
21d1c967
GD
16021if test "$wxUSE_SHARED" = "yes"; then
16022 case "${host}" in
16023 *-pc-os2_emx | *-pc-os2-emx | \
16024 *-pc-msdosdjgpp )
16025 wxUSE_SHARED=no
a0b9e27f 16026 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16027 ;;
16028 esac
16029fi
16030
2b5f62a0
VZ
16031if test "$wxUSE_SHARED" = "yes"; then
16032
16033 if test "$wxUSE_OPENGL" = "yes"; then
16034 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16035 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16036 else
16037 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16038 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16039 fi
16040
16041 if test "$GCC" = "yes"; then
16042 PIC_FLAG="-fPIC"
16043 fi
16044
16045
16046
16047 found_versioning=no
16048
b4eecb7e 16049
2b5f62a0
VZ
16050 if test $found_versioning = no ; then
16051 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
e5a87141 16052echo "configure:16053: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16053if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16054 echo $ac_n "(cached) $ac_c" 1>&6
16055else
16056
16057 echo "VER_1 { *; };" >conftest.sym
16058 echo "int main() { return 0; }" >conftest.cpp
16059
16060 if { ac_try='
16061 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e5a87141 16062 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16063 if test -s conftest.stderr ; then
16064 wx_cv_version_script=no
16065 else
16066 wx_cv_version_script=yes
16067 fi
16068 else
16069 wx_cv_version_script=no
16070 fi
16071 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16072
16073fi
16074
16075echo "$ac_t""$wx_cv_version_script" 1>&6
16076 if test $wx_cv_version_script = yes ; then
16077 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16078 fi
16079 fi
21d1c967 16080
21d1c967
GD
16081
16082 SHARED_LD="${CXX} -shared -o"
16083
16084 case "${host}" in
16085 *-hp-hpux* )
ad2622f1 16086 if test "$GCC" = "yes"; then
85d5e282 16087 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16088 else
16089 LDFLAGS="$LDFLAGS -L/usr/lib"
16090
16091 SHARED_LD="${CXX} -b -o"
16092 PIC_FLAG="+Z"
16093 fi
16094
16095 if test "$wxUSE_OPENGL" = "yes"; then
16096 WX_ALL_INSTALLED="preinstall_gl"
16097 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16098 else
16099 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16100 fi
16101 ;;
16102
16103 *-*-linux* )
16104 if test "$GCC" != "yes"; then
a0b9e27f 16105 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
e5a87141 16106echo "configure:16107: checking for Intel compiler" >&5
a0b9e27f
MB
16107if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16108 echo $ac_n "(cached) $ac_c" 1>&6
16109else
16110
16111 cat > conftest.$ac_ext <<EOF
e5a87141 16112#line 16113 "configure"
698dcdb6 16113#include "confdefs.h"
90dd450c 16114
a0b9e27f 16115int main() {
90dd450c 16116
21d1c967
GD
16117 #ifndef __INTEL_COMPILER
16118 #error Not icc
16119 #endif
a0b9e27f
MB
16120
16121; return 0; }
16122EOF
e5a87141 16123if { (eval echo configure:16124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16124 rm -rf conftest*
21d1c967 16125 wx_cv_prog_icc=yes
6232543b 16126else
a0b9e27f
MB
16127 echo "configure: failed program was:" >&5
16128 cat conftest.$ac_ext >&5
16129 rm -rf conftest*
16130 wx_cv_prog_icc=no
16131
5c6fa7d2 16132fi
a0b9e27f
MB
16133rm -f conftest*
16134
247f5006 16135fi
a0b9e27f
MB
16136
16137echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16138 if test "$wx_cv_prog_icc" = "yes"; then
16139 PIC_FLAG="-KPIC"
16140 fi
16141 fi
16142
16143 if test "$wxUSE_SONAME" = "yes" ; then
16144 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16145 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16146 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16147 fi
16148 ;;
16149
16150 *-*-solaris2* )
16151 if test "$GCC" = yes ; then
16152 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16153 else
16154 SHARED_LD="${CXX} -G -o"
16155 PIC_FLAG="-KPIC"
16156 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16157 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16158 fi
16159 ;;
16160
16161 *-*-darwin* )
b2fee376
GD
16162 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16163 CFLAGS="$CFLAGS -fno-common"
16164 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16165 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16166 PIC_FLAG="-dynamic -fPIC"
f346733b 16167 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16168 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16169 ;;
16170
16171 *-*-aix* )
2b5f62a0
VZ
16172 if test "$GCC" != "yes"; then
16173 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16174set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16175echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16176echo "configure:16177: checking for $ac_word" >&5
a0b9e27f
MB
16177if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16179else
16180 if test -n "$AIX_CXX_LD"; then
16181 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16182else
a0b9e27f
MB
16183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16184 ac_dummy="$PATH"
16185 for ac_dir in $ac_dummy; do
16186 test -z "$ac_dir" && ac_dir=.
16187 if test -f $ac_dir/$ac_word; then
16188 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16189 break
16190 fi
16191 done
16192 IFS="$ac_save_ifs"
321d2b14
VZ
16193 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16194fi
16195fi
a0b9e27f 16196AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16197if test -n "$AIX_CXX_LD"; then
a0b9e27f 16198 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16199else
a0b9e27f 16200 echo "$ac_t""no" 1>&6
321d2b14
VZ
16201fi
16202
8284b0c5 16203
2b5f62a0
VZ
16204 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16205 fi
21d1c967
GD
16206 ;;
16207
16208 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16209 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16210
16211 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16212 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16213
16214 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16215
f657dbe7
MB
16216 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16217 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16218
16219 if test "$wxUSE_OPENGL" = "yes"; then
16220 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16221 fi
16222 ;;
16223
16224 *-*-beos* )
16225 SHARED_LD="${LD} -shared -o"
16226 ;;
16227
2b5f62a0
VZ
16228 *-*-irix* )
16229 if test "$GCC" != "yes"; then
16230 PIC_FLAG="-KPIC"
16231 fi
16232 ;;
16233
21d1c967
GD
16234 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16235 *-*-sunos4* | \
21d1c967
GD
16236 *-*-osf* | \
16237 *-*-dgux5* | \
16238 *-*-sysv5* )
16239 ;;
16240
16241 *)
a0b9e27f 16242 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16243 esac
16244
16245 if test "x$WX_TARGET_LIBRARY" = "x"; then
16246 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16247 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16248 fi
16249
16250 WX_TARGET_LIBRARY_TYPE="so"
16251 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16252fi
10f2d63a 16253
21d1c967
GD
16254if test "$wxUSE_SHARED" = "no"; then
16255
16256 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16257 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16258 fi
16259
ac0c4cc3 16260 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16261 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16262 fi
16263
16264 if test "$wxUSE_OPENGL" = "yes"; then
16265 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16266 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16267 else
16268 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16269 fi
16270
16271 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16272 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16273
16274 WX_TARGET_LIBRARY_TYPE="a"
16275 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16276
16277 STATIC_FLAG="yes"
16278else
16279 STATIC_FLAG="no"
90dd450c 16280fi
1e487827 16281
93fac604
VZ
16282MACRESCOMP="@#"
16283MACSETFILE="@#"
36825681 16284MACRESWXCONFIG="#"
21d1c967
GD
16285if test "$wxUSE_MAC" = 1; then
16286 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16287 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16288 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16289 # Extract the first word of "Rez", so it can be a program name with args.
16290set dummy Rez; ac_word=$2
a0b9e27f 16291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16292echo "configure:16293: checking for $ac_word" >&5
a0b9e27f
MB
16293if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16294 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16295else
21d1c967
GD
16296 if test -n "$RESCOMP"; then
16297 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16298else
a0b9e27f
MB
16299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16300 ac_dummy="$PATH"
16301 for ac_dir in $ac_dummy; do
16302 test -z "$ac_dir" && ac_dir=.
16303 if test -f $ac_dir/$ac_word; then
16304 ac_cv_prog_RESCOMP="Rez"
16305 break
16306 fi
16307 done
16308 IFS="$ac_save_ifs"
21d1c967 16309 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16310fi
b93d0d08 16311fi
a0b9e27f 16312RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16313if test -n "$RESCOMP"; then
a0b9e27f 16314 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16315else
a0b9e27f 16316 echo "$ac_t""no" 1>&6
90dd450c 16317fi
b93d0d08 16318
21d1c967
GD
16319 # Extract the first word of "DeRez", so it can be a program name with args.
16320set dummy DeRez; ac_word=$2
a0b9e27f 16321echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16322echo "configure:16323: checking for $ac_word" >&5
a0b9e27f
MB
16323if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16324 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16325else
21d1c967
GD
16326 if test -n "$DEREZ"; then
16327 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16328else
a0b9e27f
MB
16329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16330 ac_dummy="$PATH"
16331 for ac_dir in $ac_dummy; do
16332 test -z "$ac_dir" && ac_dir=.
16333 if test -f $ac_dir/$ac_word; then
16334 ac_cv_prog_DEREZ="DeRez"
16335 break
16336 fi
16337 done
16338 IFS="$ac_save_ifs"
21d1c967 16339 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16340fi
90dd450c 16341fi
a0b9e27f 16342DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16343if test -n "$DEREZ"; then
a0b9e27f 16344 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16345else
a0b9e27f 16346 echo "$ac_t""no" 1>&6
3a922bb4 16347fi
698dcdb6 16348
36825681
GD
16349 # Extract the first word of "SetFile", so it can be a program name with args.
16350set dummy SetFile; ac_word=$2
16351echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16352echo "configure:16353: checking for $ac_word" >&5
36825681
GD
16353if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16354 echo $ac_n "(cached) $ac_c" 1>&6
16355else
16356 if test -n "$SETFILE"; then
16357 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16358else
16359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16360 ac_dummy="$PATH"
16361 for ac_dir in $ac_dummy; do
16362 test -z "$ac_dir" && ac_dir=.
16363 if test -f $ac_dir/$ac_word; then
16364 ac_cv_prog_SETFILE="SetFile"
16365 break
16366 fi
16367 done
16368 IFS="$ac_save_ifs"
16369 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16370fi
16371fi
16372SETFILE="$ac_cv_prog_SETFILE"
16373if test -n "$SETFILE"; then
16374 echo "$ac_t""$SETFILE" 1>&6
16375else
16376 echo "$ac_t""no" 1>&6
16377fi
16378
21d1c967 16379 MACOSX_BUNDLE="bundle"
36825681
GD
16380 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16381 MACSETFILE="\$(SETFILE)"
16382 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
64440d77
DE
16383elif test "$wxUSE_COCOA" = 1; then
16384 # Extract the first word of "Rez", so it can be a program name with args.
16385set dummy Rez; ac_word=$2
16386echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16387echo "configure:16388: checking for $ac_word" >&5
64440d77
DE
16388if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16389 echo $ac_n "(cached) $ac_c" 1>&6
16390else
16391 if test -n "$RESCOMP"; then
16392 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16393else
16394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16395 ac_dummy="$PATH"
16396 for ac_dir in $ac_dummy; do
16397 test -z "$ac_dir" && ac_dir=.
16398 if test -f $ac_dir/$ac_word; then
16399 ac_cv_prog_RESCOMP="Rez"
16400 break
16401 fi
16402 done
16403 IFS="$ac_save_ifs"
16404 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16405fi
16406fi
16407RESCOMP="$ac_cv_prog_RESCOMP"
16408if test -n "$RESCOMP"; then
16409 echo "$ac_t""$RESCOMP" 1>&6
16410else
16411 echo "$ac_t""no" 1>&6
16412fi
16413
16414 # Extract the first word of "DeRez", so it can be a program name with args.
16415set dummy DeRez; ac_word=$2
16416echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16417echo "configure:16418: checking for $ac_word" >&5
64440d77
DE
16418if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16419 echo $ac_n "(cached) $ac_c" 1>&6
16420else
16421 if test -n "$DEREZ"; then
16422 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16423else
16424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16425 ac_dummy="$PATH"
16426 for ac_dir in $ac_dummy; do
16427 test -z "$ac_dir" && ac_dir=.
16428 if test -f $ac_dir/$ac_word; then
16429 ac_cv_prog_DEREZ="DeRez"
16430 break
16431 fi
16432 done
16433 IFS="$ac_save_ifs"
16434 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16435fi
16436fi
16437DEREZ="$ac_cv_prog_DEREZ"
16438if test -n "$DEREZ"; then
16439 echo "$ac_t""$DEREZ" 1>&6
16440else
16441 echo "$ac_t""no" 1>&6
16442fi
16443
16444 # Extract the first word of "SetFile", so it can be a program name with args.
16445set dummy SetFile; ac_word=$2
16446echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e5a87141 16447echo "configure:16448: checking for $ac_word" >&5
64440d77
DE
16448if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16449 echo $ac_n "(cached) $ac_c" 1>&6
16450else
16451 if test -n "$SETFILE"; then
16452 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16453else
16454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16455 ac_dummy="$PATH"
16456 for ac_dir in $ac_dummy; do
16457 test -z "$ac_dir" && ac_dir=.
16458 if test -f $ac_dir/$ac_word; then
16459 ac_cv_prog_SETFILE="SetFile"
16460 break
16461 fi
16462 done
16463 IFS="$ac_save_ifs"
16464 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16465fi
16466fi
16467SETFILE="$ac_cv_prog_SETFILE"
16468if test -n "$SETFILE"; then
16469 echo "$ac_t""$SETFILE" 1>&6
16470else
16471 echo "$ac_t""no" 1>&6
16472fi
16473
16474 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16475 MACSETFILE="\$(SETFILE)"
16476 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16477else
16478 if test "$wxUSE_PM" = 1; then
36825681 16479 MACRESCOMP="emxbind -ep"
90dd450c 16480 fi
4f14bcd8 16481fi
10f2d63a 16482
8284b0c5 16483
a0b9e27f 16484echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
e5a87141 16485echo "configure:16486: checking for ANSI C header files" >&5
a0b9e27f
MB
16486if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16487 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16488else
a0b9e27f 16489 cat > conftest.$ac_ext <<EOF
e5a87141 16490#line 16491 "configure"
52127426 16491#include "confdefs.h"
a0b9e27f
MB
16492#include <stdlib.h>
16493#include <stdarg.h>
16494#include <string.h>
16495#include <float.h>
16496EOF
16497ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 16498{ (eval echo configure:16499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16499ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16500if test -z "$ac_err"; then
16501 rm -rf conftest*
16502 ac_cv_header_stdc=yes
16503else
16504 echo "$ac_err" >&5
16505 echo "configure: failed program was:" >&5
16506 cat conftest.$ac_ext >&5
16507 rm -rf conftest*
16508 ac_cv_header_stdc=no
16509fi
16510rm -f conftest*
16511
16512if test $ac_cv_header_stdc = yes; then
16513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16514cat > conftest.$ac_ext <<EOF
e5a87141 16515#line 16516 "configure"
a0b9e27f
MB
16516#include "confdefs.h"
16517#include <string.h>
16518EOF
16519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16520 egrep "memchr" >/dev/null 2>&1; then
16521 :
16522else
16523 rm -rf conftest*
16524 ac_cv_header_stdc=no
16525fi
16526rm -f conftest*
16527
16528fi
16529
16530if test $ac_cv_header_stdc = yes; then
16531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16532cat > conftest.$ac_ext <<EOF
e5a87141 16533#line 16534 "configure"
a0b9e27f
MB
16534#include "confdefs.h"
16535#include <stdlib.h>
16536EOF
16537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16538 egrep "free" >/dev/null 2>&1; then
16539 :
7b4a847f 16540else
a0b9e27f
MB
16541 rm -rf conftest*
16542 ac_cv_header_stdc=no
52127426 16543fi
a0b9e27f
MB
16544rm -f conftest*
16545
52127426 16546fi
a0b9e27f
MB
16547
16548if test $ac_cv_header_stdc = yes; then
16549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16550if test "$cross_compiling" = yes; then
247f5006
VZ
16551 :
16552else
a0b9e27f 16553 cat > conftest.$ac_ext <<EOF
e5a87141 16554#line 16555 "configure"
a0b9e27f
MB
16555#include "confdefs.h"
16556#include <ctype.h>
16557#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16558#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16560int main () { int i; for (i = 0; i < 256; i++)
16561if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16562exit (0); }
247f5006 16563
a0b9e27f 16564EOF
e5a87141 16565if { (eval echo configure:16566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16566then
16567 :
16568else
16569 echo "configure: failed program was:" >&5
16570 cat conftest.$ac_ext >&5
16571 rm -fr conftest*
16572 ac_cv_header_stdc=no
16573fi
16574rm -fr conftest*
16575fi
16576
16577fi
16578fi
16579
16580echo "$ac_t""$ac_cv_header_stdc" 1>&6
16581if test $ac_cv_header_stdc = yes; then
16582 cat >> confdefs.h <<\EOF
16583#define STDC_HEADERS 1
16584EOF
8284b0c5
MB
16585
16586fi
16587
a0b9e27f 16588echo $ac_n "checking for mode_t""... $ac_c" 1>&6
e5a87141 16589echo "configure:16590: checking for mode_t" >&5
a0b9e27f
MB
16590if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16591 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16592else
a0b9e27f 16593 cat > conftest.$ac_ext <<EOF
e5a87141 16594#line 16595 "configure"
8284b0c5 16595#include "confdefs.h"
a0b9e27f
MB
16596#include <sys/types.h>
16597#if STDC_HEADERS
16598#include <stdlib.h>
16599#include <stddef.h>
8284b0c5 16600#endif
a0b9e27f
MB
16601EOF
16602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16603 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16604 rm -rf conftest*
16605 ac_cv_type_mode_t=yes
5c6fa7d2 16606else
a0b9e27f
MB
16607 rm -rf conftest*
16608 ac_cv_type_mode_t=no
16609fi
16610rm -f conftest*
16611
8284b0c5 16612fi
a0b9e27f
MB
16613echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16614if test $ac_cv_type_mode_t = no; then
16615 cat >> confdefs.h <<\EOF
16616#define mode_t int
16617EOF
16618
8284b0c5 16619fi
a0b9e27f
MB
16620
16621echo $ac_n "checking for off_t""... $ac_c" 1>&6
e5a87141 16622echo "configure:16623: checking for off_t" >&5
a0b9e27f
MB
16623if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16624 echo $ac_n "(cached) $ac_c" 1>&6
16625else
16626 cat > conftest.$ac_ext <<EOF
e5a87141 16627#line 16628 "configure"
a0b9e27f
MB
16628#include "confdefs.h"
16629#include <sys/types.h>
16630#if STDC_HEADERS
16631#include <stdlib.h>
16632#include <stddef.h>
16633#endif
16634EOF
16635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16636 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16637 rm -rf conftest*
16638 ac_cv_type_off_t=yes
247f5006 16639else
a0b9e27f
MB
16640 rm -rf conftest*
16641 ac_cv_type_off_t=no
16642fi
16643rm -f conftest*
247f5006 16644
a0b9e27f
MB
16645fi
16646echo "$ac_t""$ac_cv_type_off_t" 1>&6
16647if test $ac_cv_type_off_t = no; then
16648 cat >> confdefs.h <<\EOF
90dd450c 16649#define off_t long
a0b9e27f 16650EOF
10f2d63a 16651
90dd450c 16652fi
10f2d63a 16653
a0b9e27f 16654echo $ac_n "checking for pid_t""... $ac_c" 1>&6
e5a87141 16655echo "configure:16656: checking for pid_t" >&5
a0b9e27f
MB
16656if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16657 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16658else
a0b9e27f 16659 cat > conftest.$ac_ext <<EOF
e5a87141 16660#line 16661 "configure"
10f2d63a 16661#include "confdefs.h"
a0b9e27f
MB
16662#include <sys/types.h>
16663#if STDC_HEADERS
16664#include <stdlib.h>
16665#include <stddef.h>
8284b0c5 16666#endif
a0b9e27f
MB
16667EOF
16668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16669 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16670 rm -rf conftest*
90dd450c 16671 ac_cv_type_pid_t=yes
698dcdb6 16672else
a0b9e27f
MB
16673 rm -rf conftest*
16674 ac_cv_type_pid_t=no
8284b0c5 16675fi
a0b9e27f 16676rm -f conftest*
247f5006 16677
a0b9e27f
MB
16678fi
16679echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16680if test $ac_cv_type_pid_t = no; then
16681 cat >> confdefs.h <<\EOF
90dd450c 16682#define pid_t int
a0b9e27f 16683EOF
10f2d63a 16684
7b4a847f
RR
16685fi
16686
a0b9e27f 16687echo $ac_n "checking for size_t""... $ac_c" 1>&6
e5a87141 16688echo "configure:16689: checking for size_t" >&5
a0b9e27f
MB
16689if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16690 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16691else
a0b9e27f 16692 cat > conftest.$ac_ext <<EOF
e5a87141 16693#line 16694 "configure"
7b4a847f 16694#include "confdefs.h"
a0b9e27f
MB
16695#include <sys/types.h>
16696#if STDC_HEADERS
16697#include <stdlib.h>
16698#include <stddef.h>
8284b0c5 16699#endif
a0b9e27f
MB
16700EOF
16701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16702 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16703 rm -rf conftest*
90dd450c 16704 ac_cv_type_size_t=yes
18dbb1f6 16705else
a0b9e27f
MB
16706 rm -rf conftest*
16707 ac_cv_type_size_t=no
52127426 16708fi
a0b9e27f 16709rm -f conftest*
247f5006 16710
a0b9e27f
MB
16711fi
16712echo "$ac_t""$ac_cv_type_size_t" 1>&6
16713if test $ac_cv_type_size_t = no; then
16714 cat >> confdefs.h <<\EOF
90dd450c 16715#define size_t unsigned
a0b9e27f 16716EOF
90dd450c
VZ
16717
16718fi
16719
a0b9e27f 16720echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
e5a87141 16721echo "configure:16722: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16722if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16723 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16724else
a0b9e27f 16725 cat > conftest.$ac_ext <<EOF
e5a87141 16726#line 16727 "configure"
b3e8d00a 16727#include "confdefs.h"
90dd450c 16728#include <sys/types.h>
a0b9e27f 16729EOF
90dd450c
VZ
16730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16731 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16732 rm -rf conftest*
90dd450c 16733 ac_cv_type_uid_t=yes
b3e8d00a 16734else
a0b9e27f 16735 rm -rf conftest*
90dd450c 16736 ac_cv_type_uid_t=no
b3e8d00a 16737fi
90dd450c 16738rm -f conftest*
b3e8d00a 16739
4f14bcd8 16740fi
247f5006 16741
a0b9e27f
MB
16742echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16743if test $ac_cv_type_uid_t = no; then
16744 cat >> confdefs.h <<\EOF
90dd450c 16745#define uid_t int
a0b9e27f 16746EOF
247f5006 16747
a0b9e27f 16748 cat >> confdefs.h <<\EOF
90dd450c 16749#define gid_t int
a0b9e27f 16750EOF
4f14bcd8 16751
b3e8d00a 16752fi
b3e8d00a 16753
8284b0c5
MB
16754
16755
a0b9e27f
MB
16756ac_ext=C
16757# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16758ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16759ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16760ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16761cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16762
a0b9e27f 16763echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
e5a87141 16764echo "configure:16765: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16765if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16766 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16767else
a0b9e27f 16768 cat > conftest.$ac_ext <<EOF
e5a87141 16769#line 16770 "configure"
10f2d63a 16770#include "confdefs.h"
90dd450c 16771#include <stddef.h>
a0b9e27f 16772int main() {
90dd450c
VZ
16773
16774 return 0; }
16775
16776 struct Foo { void foo(size_t); void foo(unsigned int); };
16777
16778 int bar() {
a0b9e27f
MB
16779
16780; return 0; }
16781EOF
e5a87141 16782if { (eval echo configure:16783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16783 rm -rf conftest*
90dd450c 16784 wx_cv_size_t_is_uint=no
698dcdb6 16785else
a0b9e27f
MB
16786 echo "configure: failed program was:" >&5
16787 cat conftest.$ac_ext >&5
16788 rm -rf conftest*
16789 wx_cv_size_t_is_uint=yes
16790
5c6fa7d2 16791fi
a0b9e27f 16792rm -f conftest*
8284b0c5 16793
247f5006 16794fi
a0b9e27f
MB
16795
16796echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16797
90dd450c 16798if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16799 cat >> confdefs.h <<\EOF
90dd450c 16800#define wxSIZE_T_IS_UINT 1
a0b9e27f 16801EOF
698dcdb6 16802
90dd450c 16803else
a0b9e27f 16804 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
e5a87141 16805echo "configure:16806: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16806if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16807 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16808else
a0b9e27f 16809 cat > conftest.$ac_ext <<EOF
e5a87141 16810#line 16811 "configure"
10f2d63a 16811#include "confdefs.h"
90dd450c 16812#include <stddef.h>
a0b9e27f 16813int main() {
90dd450c
VZ
16814
16815 return 0; }
16816
16817 struct Foo { void foo(size_t); void foo(unsigned long); };
16818
16819 int bar() {
a0b9e27f
MB
16820
16821; return 0; }
16822EOF
e5a87141 16823if { (eval echo configure:16824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16824 rm -rf conftest*
90dd450c 16825 wx_cv_size_t_is_ulong=no
698dcdb6 16826else
a0b9e27f
MB
16827 echo "configure: failed program was:" >&5
16828 cat conftest.$ac_ext >&5
16829 rm -rf conftest*
16830 wx_cv_size_t_is_ulong=yes
16831
5c6fa7d2 16832fi
a0b9e27f
MB
16833rm -f conftest*
16834
247f5006 16835fi
a0b9e27f
MB
16836
16837echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16838
90dd450c 16839 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16840 cat >> confdefs.h <<\EOF
90dd450c 16841#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16842EOF
4f14bcd8
GD
16843
16844 fi
90dd450c 16845fi
1e487827 16846
90dd450c 16847ac_ext=c
a0b9e27f 16848# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16849ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16850ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16851ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16852cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16853
5c6fa7d2 16854
8284b0c5 16855
a0b9e27f 16856echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
e5a87141 16857echo "configure:16858: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16858if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16859 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16860else
a0b9e27f
MB
16861
16862 cat > conftest.$ac_ext <<EOF
e5a87141 16863#line 16864 "configure"
4f14bcd8 16864#include "confdefs.h"
90dd450c 16865#include <pwd.h>
a0b9e27f 16866int main() {
f6bcfd97 16867
90dd450c
VZ
16868 char *p;
16869 struct passwd *pw;
16870 p = pw->pw_gecos;
a0b9e27f
MB
16871
16872; return 0; }
16873EOF
e5a87141 16874if { (eval echo configure:16875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16875 rm -rf conftest*
16876
90dd450c 16877 wx_cv_struct_pw_gecos=yes
a0b9e27f 16878
10f2d63a 16879else
a0b9e27f
MB
16880 echo "configure: failed program was:" >&5
16881 cat conftest.$ac_ext >&5
16882 rm -rf conftest*
16883
90dd450c 16884 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16885
16886
5c6fa7d2 16887fi
a0b9e27f
MB
16888rm -f conftest*
16889
247f5006
VZ
16890
16891fi
a0b9e27f
MB
16892
16893echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16894
90dd450c 16895if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16896 cat >> confdefs.h <<\EOF
90dd450c 16897#define HAVE_PW_GECOS 1
a0b9e27f 16898EOF
c521c494 16899
90dd450c 16900fi
4f14bcd8 16901
8284b0c5 16902
d29b553b 16903if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16904 cat >> confdefs.h <<\EOF
d74f4b5a 16905#define wxUSE_WCHAR_T 1
a0b9e27f 16906EOF
d74f4b5a 16907
8284b0c5 16908
d74f4b5a
VZ
16909 WCSLEN_FOUND=0
16910 WCHAR_LINK=
a0b9e27f 16911 for ac_func in wcslen
7a30264c 16912do
a0b9e27f 16913echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 16914echo "configure:16915: checking for $ac_func" >&5
a0b9e27f
MB
16915if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16916 echo $ac_n "(cached) $ac_c" 1>&6
16917else
16918 cat > conftest.$ac_ext <<EOF
e5a87141 16919#line 16920 "configure"
4f14bcd8 16920#include "confdefs.h"
7a30264c 16921/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16922 which can conflict with char $ac_func(); below. */
7a30264c 16923#include <assert.h>
4f14bcd8
GD
16924/* Override any gcc2 internal prototype to avoid an error. */
16925/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16926 builtin and then its argument prototype would still apply. */
16927char $ac_func();
16928
16929int main() {
16930
7a30264c
VZ
16931/* The GNU C library defines this for functions which it implements
16932 to always fail with ENOSYS. Some functions are actually named
16933 something starting with __ and the normal name is an alias. */
16934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16935choke me
16936#else
a0b9e27f 16937$ac_func();
7a30264c
VZ
16938#endif
16939
a0b9e27f
MB
16940; return 0; }
16941EOF
e5a87141 16942if { (eval echo configure:16943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16943 rm -rf conftest*
16944 eval "ac_cv_func_$ac_func=yes"
16945else
16946 echo "configure: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 rm -rf conftest*
16949 eval "ac_cv_func_$ac_func=no"
16950fi
16951rm -f conftest*
16952fi
16953
16954if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16955 echo "$ac_t""yes" 1>&6
16956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16957 cat >> confdefs.h <<EOF
16958#define $ac_tr_func 1
16959EOF
d74f4b5a 16960 WCSLEN_FOUND=1
a0b9e27f
MB
16961else
16962 echo "$ac_t""no" 1>&6
7a30264c
VZ
16963fi
16964done
9d8deca0 16965
8284b0c5 16966
d74f4b5a 16967 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16968 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16969 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
e5a87141 16970echo "configure:16971: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16971ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16973 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16974else
a0b9e27f 16975 ac_save_LIBS="$LIBS"
7a30264c 16976LIBS="-lmsvcrt $LIBS"
a0b9e27f 16977cat > conftest.$ac_ext <<EOF
e5a87141 16978#line 16979 "configure"
10f2d63a 16979#include "confdefs.h"
4f14bcd8
GD
16980/* Override any gcc2 internal prototype to avoid an error. */
16981/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16982 builtin and then its argument prototype would still apply. */
16983char wcslen();
16984
16985int main() {
16986wcslen()
16987; return 0; }
16988EOF
e5a87141 16989if { (eval echo configure:16990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16990 rm -rf conftest*
16991 eval "ac_cv_lib_$ac_lib_var=yes"
16992else
16993 echo "configure: failed program was:" >&5
16994 cat conftest.$ac_ext >&5
16995 rm -rf conftest*
16996 eval "ac_cv_lib_$ac_lib_var=no"
16997fi
16998rm -f conftest*
16999LIBS="$ac_save_LIBS"
17000
17001fi
17002if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17003 echo "$ac_t""yes" 1>&6
d74f4b5a 17004 WCHAR_OK=1
a0b9e27f
MB
17005else
17006 echo "$ac_t""no" 1>&6
d29b553b 17007fi
698dcdb6 17008
7a30264c 17009 else
a0b9e27f 17010 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
e5a87141 17011echo "configure:17012: checking for wcslen in -lw" >&5
a0b9e27f
MB
17012ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17014 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17015else
a0b9e27f 17016 ac_save_LIBS="$LIBS"
7a30264c 17017LIBS="-lw $LIBS"
a0b9e27f 17018cat > conftest.$ac_ext <<EOF
e5a87141 17019#line 17020 "configure"
95c8801c 17020#include "confdefs.h"
4f14bcd8
GD
17021/* Override any gcc2 internal prototype to avoid an error. */
17022/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17023 builtin and then its argument prototype would still apply. */
17024char wcslen();
52127426 17025
a0b9e27f
MB
17026int main() {
17027wcslen()
17028; return 0; }
17029EOF
e5a87141 17030if { (eval echo configure:17031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17031 rm -rf conftest*
17032 eval "ac_cv_lib_$ac_lib_var=yes"
17033else
17034 echo "configure: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17036 rm -rf conftest*
17037 eval "ac_cv_lib_$ac_lib_var=no"
17038fi
17039rm -f conftest*
17040LIBS="$ac_save_LIBS"
17041
17042fi
17043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17044 echo "$ac_t""yes" 1>&6
17045
7a30264c 17046 WCHAR_LINK=" -lw"
d74f4b5a 17047 WCSLEN_FOUND=1
a0b9e27f
MB
17048
17049else
17050 echo "$ac_t""no" 1>&6
4f14bcd8 17051fi
10f2d63a 17052
7a30264c 17053 fi
d29b553b 17054 fi
95c8801c 17055
d74f4b5a 17056 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 17057 cat >> confdefs.h <<\EOF
d74f4b5a 17058#define HAVE_WCSLEN 1
a0b9e27f 17059EOF
10f2d63a 17060
d74f4b5a 17061 fi
52127426 17062
a0b9e27f 17063 for ac_func in wcsrtombs
eb4efbdc 17064do
a0b9e27f 17065echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17066echo "configure:17067: checking for $ac_func" >&5
a0b9e27f
MB
17067if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17068 echo $ac_n "(cached) $ac_c" 1>&6
17069else
17070 cat > conftest.$ac_ext <<EOF
e5a87141 17071#line 17072 "configure"
eb4efbdc
VZ
17072#include "confdefs.h"
17073/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17074 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
17075#include <assert.h>
17076/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 17077/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17078 builtin and then its argument prototype would still apply. */
17079char $ac_func();
17080
17081int main() {
17082
10f2d63a
VZ
17083/* The GNU C library defines this for functions which it implements
17084 to always fail with ENOSYS. Some functions are actually named
17085 something starting with __ and the normal name is an alias. */
247f5006 17086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17087choke me
17088#else
a0b9e27f 17089$ac_func();
10f2d63a
VZ
17090#endif
17091
a0b9e27f
MB
17092; return 0; }
17093EOF
e5a87141 17094if { (eval echo configure:17095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17095 rm -rf conftest*
17096 eval "ac_cv_func_$ac_func=yes"
17097else
17098 echo "configure: failed program was:" >&5
17099 cat conftest.$ac_ext >&5
17100 rm -rf conftest*
17101 eval "ac_cv_func_$ac_func=no"
17102fi
17103rm -f conftest*
17104fi
270a909e 17105
a0b9e27f
MB
17106if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
17108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17109 cat >> confdefs.h <<EOF
17110#define $ac_tr_func 1
17111EOF
17112
17113else
17114 echo "$ac_t""no" 1>&6
4f14bcd8 17115fi
247f5006 17116done
1e487827 17117
af15babd 17118else
a0b9e27f 17119 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17120fi
52127426 17121
8284b0c5 17122
a0b9e27f
MB
17123ac_ext=C
17124# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17125ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17126ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17127ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17128cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17129
247f5006
VZ
17130
17131for ac_func in vsnprintf
17132do
a0b9e27f 17133echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17134echo "configure:17135: checking for $ac_func" >&5
a0b9e27f
MB
17135if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17136 echo $ac_n "(cached) $ac_c" 1>&6
17137else
17138 cat > conftest.$ac_ext <<EOF
e5a87141 17139#line 17140 "configure"
af15babd 17140#include "confdefs.h"
247f5006 17141/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17142 which can conflict with char $ac_func(); below. */
247f5006
VZ
17143#include <assert.h>
17144/* Override any gcc2 internal prototype to avoid an error. */
17145#ifdef __cplusplus
17146extern "C"
17147#endif
17148/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17149 builtin and then its argument prototype would still apply. */
17150char $ac_func();
17151
17152int main() {
17153
247f5006
VZ
17154/* The GNU C library defines this for functions which it implements
17155 to always fail with ENOSYS. Some functions are actually named
17156 something starting with __ and the normal name is an alias. */
17157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17158choke me
17159#else
a0b9e27f 17160$ac_func();
247f5006 17161#endif
af15babd 17162
a0b9e27f
MB
17163; return 0; }
17164EOF
e5a87141 17165if { (eval echo configure:17166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17166 rm -rf conftest*
17167 eval "ac_cv_func_$ac_func=yes"
17168else
17169 echo "configure: failed program was:" >&5
17170 cat conftest.$ac_ext >&5
17171 rm -rf conftest*
17172 eval "ac_cv_func_$ac_func=no"
17173fi
17174rm -f conftest*
17175fi
52127426 17176
a0b9e27f
MB
17177if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17178 echo "$ac_t""yes" 1>&6
17179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17180 cat >> confdefs.h <<EOF
17181#define $ac_tr_func 1
17182EOF
17183
17184else
17185 echo "$ac_t""no" 1>&6
5c6fa7d2 17186fi
247f5006 17187done
8284b0c5 17188
4f14bcd8 17189
8d90d2f2
VZ
17190if test "$ac_cv_func_vsnprintf" = "yes"; then
17191 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
e5a87141 17192echo "configure:17193: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17193if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17194 echo $ac_n "(cached) $ac_c" 1>&6
17195else
17196
17197 cat > conftest.$ac_ext <<EOF
e5a87141 17198#line 17199 "configure"
8d90d2f2
VZ
17199#include "confdefs.h"
17200
17201 #include <stdio.h>
17202 #include <stdarg.h>
17203
17204int main() {
17205
17206 char *buf;
17207 va_list ap;
17208 vsnprintf(buf, 10u, "%s", ap);
17209
17210; return 0; }
17211EOF
e5a87141 17212if { (eval echo configure:17213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17213 rm -rf conftest*
17214 wx_cv_func_vsnprintf_decl=yes
17215else
17216 echo "configure: failed program was:" >&5
17217 cat conftest.$ac_ext >&5
17218 rm -rf conftest*
17219 wx_cv_func_vsnprintf_decl=no
17220
17221fi
17222rm -f conftest*
17223
17224
17225fi
17226
17227echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17228
17229 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17230 cat >> confdefs.h <<\EOF
17231#define HAVE_VSNPRINTF_DECL 1
17232EOF
17233
17234 fi
17235fi
17236
247f5006 17237if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17238 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17239do
a0b9e27f 17240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17241echo "configure:17242: checking for $ac_func" >&5
a0b9e27f
MB
17242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17243 echo $ac_n "(cached) $ac_c" 1>&6
17244else
17245 cat > conftest.$ac_ext <<EOF
e5a87141 17246#line 17247 "configure"
d74f4b5a
VZ
17247#include "confdefs.h"
17248/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17249 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17250#include <assert.h>
17251/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17252#ifdef __cplusplus
17253extern "C"
17254#endif
d74f4b5a 17255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17256 builtin and then its argument prototype would still apply. */
17257char $ac_func();
17258
17259int main() {
17260
d74f4b5a
VZ
17261/* The GNU C library defines this for functions which it implements
17262 to always fail with ENOSYS. Some functions are actually named
17263 something starting with __ and the normal name is an alias. */
17264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17265choke me
17266#else
a0b9e27f 17267$ac_func();
d74f4b5a
VZ
17268#endif
17269
a0b9e27f
MB
17270; return 0; }
17271EOF
e5a87141 17272if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17273 rm -rf conftest*
17274 eval "ac_cv_func_$ac_func=yes"
17275else
17276 echo "configure: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 rm -rf conftest*
17279 eval "ac_cv_func_$ac_func=no"
17280fi
17281rm -f conftest*
17282fi
d74f4b5a 17283
a0b9e27f
MB
17284if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17285 echo "$ac_t""yes" 1>&6
17286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17287 cat >> confdefs.h <<EOF
17288#define $ac_tr_func 1
17289EOF
17290
17291else
17292 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17293fi
17294done
17295
8d90d2f2 17296
79668cae 17297 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
e5a87141 17298echo "configure:17299: checking for _vsnwprintf" >&5
79668cae 17299 cat > conftest.$ac_ext <<EOF
e5a87141 17300#line 17301 "configure"
79668cae
MB
17301#include "confdefs.h"
17302#include <wchar.h>
17303int main() {
17304&_vsnwprintf;
17305; return 0; }
17306EOF
e5a87141 17307if { (eval echo configure:17308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17308 rm -rf conftest*
17309 echo "$ac_t""yes" 1>&6
17310 cat >> confdefs.h <<\EOF
17311#define HAVE__VSNWPRINTF 1
17312EOF
17313
17314else
17315 echo "configure: failed program was:" >&5
17316 cat conftest.$ac_ext >&5
17317 rm -rf conftest*
17318 echo "$ac_t""no" 1>&6
17319fi
17320rm -f conftest*;
d74f4b5a
VZ
17321fi
17322
247f5006 17323ac_ext=c
a0b9e27f 17324# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17325ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17326ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17327ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17328cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17329
17330
17331
17332
4f14bcd8 17333if test "$TOOLKIT" != "MSW"; then
af15babd 17334
8284b0c5
MB
17335
17336
a0b9e27f
MB
17337ac_ext=C
17338# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17339ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17340ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17341ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17342cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17343
52127426 17344
a0b9e27f
MB
17345
17346 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17347if test "${with_libiconv_prefix+set}" = set; then
17348 withval="$with_libiconv_prefix"
a0b9e27f 17349
b040e242
VS
17350 for dir in `echo "$withval" | tr : ' '`; do
17351 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17352 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17353 done
a0b9e27f
MB
17354
17355fi
b040e242
VS
17356
17357
a0b9e27f 17358 echo $ac_n "checking for iconv""... $ac_c" 1>&6
e5a87141 17359echo "configure:17360: checking for iconv" >&5
a0b9e27f
MB
17360if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17361 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17362else
a0b9e27f 17363
b040e242
VS
17364 am_cv_func_iconv="no, consider installing GNU libiconv"
17365 am_cv_lib_iconv=no
a0b9e27f 17366 cat > conftest.$ac_ext <<EOF
e5a87141 17367#line 17368 "configure"
af15babd 17368#include "confdefs.h"
b040e242 17369#include <stdlib.h>
4f14bcd8 17370#include <iconv.h>
a0b9e27f 17371int main() {
b040e242
VS
17372iconv_t cd = iconv_open("","");
17373 iconv(cd,NULL,NULL,NULL,NULL);
17374 iconv_close(cd);
a0b9e27f
MB
17375; return 0; }
17376EOF
e5a87141 17377if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17378 rm -rf conftest*
b040e242 17379 am_cv_func_iconv=yes
af15babd 17380else
a0b9e27f
MB
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
b040e242 17383fi
a0b9e27f 17384rm -f conftest*
b040e242
VS
17385 if test "$am_cv_func_iconv" != yes; then
17386 am_save_LIBS="$LIBS"
17387 LIBS="$LIBS -liconv"
a0b9e27f 17388 cat > conftest.$ac_ext <<EOF
e5a87141 17389#line 17390 "configure"
b040e242
VS
17390#include "confdefs.h"
17391#include <stdlib.h>
17392#include <iconv.h>
a0b9e27f 17393int main() {
b040e242
VS
17394iconv_t cd = iconv_open("","");
17395 iconv(cd,NULL,NULL,NULL,NULL);
17396 iconv_close(cd);
a0b9e27f
MB
17397; return 0; }
17398EOF
e5a87141 17399if { (eval echo configure:17400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17400 rm -rf conftest*
b040e242
VS
17401 am_cv_lib_iconv=yes
17402 am_cv_func_iconv=yes
17403else
a0b9e27f
MB
17404 echo "configure: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
af15babd 17406fi
a0b9e27f 17407rm -f conftest*
b040e242
VS
17408 LIBS="$am_save_LIBS"
17409 fi
a0b9e27f 17410
247f5006 17411fi
247f5006 17412
a0b9e27f
MB
17413echo "$ac_t""$am_cv_func_iconv" 1>&6
17414 if test "$am_cv_func_iconv" = yes; then
17415 cat >> confdefs.h <<\EOF
b040e242 17416#define HAVE_ICONV 1
a0b9e27f 17417EOF
b040e242 17418
a0b9e27f 17419 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
e5a87141 17420echo "configure:17421: checking if iconv needs const" >&5
a0b9e27f
MB
17421if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17422 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17423else
a0b9e27f 17424 cat > conftest.$ac_ext <<EOF
e5a87141 17425#line 17426 "configure"
b040e242
VS
17426#include "confdefs.h"
17427
17428#include <stdlib.h>
17429#include <iconv.h>
17430extern
17431#ifdef __cplusplus
17432"C"
17433#endif
17434#if defined(__STDC__) || defined(__cplusplus)
17435size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17436#else
17437size_t iconv();
17438#endif
a0b9e27f
MB
17439
17440int main() {
af15babd 17441
a0b9e27f
MB
17442; return 0; }
17443EOF
e5a87141 17444if { (eval echo configure:17445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17445 rm -rf conftest*
b7043674 17446 wx_cv_func_iconv_const="no"
b040e242 17447else
a0b9e27f
MB
17448 echo "configure: failed program was:" >&5
17449 cat conftest.$ac_ext >&5
17450 rm -rf conftest*
17451 wx_cv_func_iconv_const="yes"
17452
5c6fa7d2 17453fi
a0b9e27f
MB
17454rm -f conftest*
17455
247f5006 17456fi
a0b9e27f
MB
17457
17458echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17459
17460 iconv_const=
1c405bb5 17461 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17462 iconv_const="const"
17463 fi
17464
a0b9e27f 17465 cat >> confdefs.h <<EOF
f09359cf 17466#define ICONV_CONST $iconv_const
a0b9e27f 17467EOF
b040e242
VS
17468
17469 fi
17470 LIBICONV=
17471 if test "$am_cv_lib_iconv" = yes; then
17472 LIBICONV="-liconv"
17473 fi
a0b9e27f 17474
b040e242
VS
17475
17476LIBS="$LIBICONV $LIBS"
4f14bcd8 17477ac_ext=c
a0b9e27f 17478# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17479ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17480ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17481ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17482cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17483
5c6fa7d2 17484
8284b0c5 17485if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17486 for ac_func in sigaction
af15babd 17487do
a0b9e27f 17488echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17489echo "configure:17490: checking for $ac_func" >&5
a0b9e27f
MB
17490if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17491 echo $ac_n "(cached) $ac_c" 1>&6
17492else
17493 cat > conftest.$ac_ext <<EOF
e5a87141 17494#line 17495 "configure"
af15babd
VZ
17495#include "confdefs.h"
17496/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17497 which can conflict with char $ac_func(); below. */
af15babd
VZ
17498#include <assert.h>
17499/* Override any gcc2 internal prototype to avoid an error. */
17500/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17501 builtin and then its argument prototype would still apply. */
17502char $ac_func();
17503
17504int main() {
17505
af15babd
VZ
17506/* The GNU C library defines this for functions which it implements
17507 to always fail with ENOSYS. Some functions are actually named
17508 something starting with __ and the normal name is an alias. */
17509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17510choke me
17511#else
a0b9e27f 17512$ac_func();
af15babd
VZ
17513#endif
17514
a0b9e27f
MB
17515; return 0; }
17516EOF
e5a87141 17517if { (eval echo configure:17518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17518 rm -rf conftest*
17519 eval "ac_cv_func_$ac_func=yes"
17520else
17521 echo "configure: failed program was:" >&5
17522 cat conftest.$ac_ext >&5
17523 rm -rf conftest*
17524 eval "ac_cv_func_$ac_func=no"
17525fi
17526rm -f conftest*
17527fi
7b4a847f 17528
a0b9e27f
MB
17529if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17530 echo "$ac_t""yes" 1>&6
17531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17532 cat >> confdefs.h <<EOF
17533#define $ac_tr_func 1
17534EOF
17535
17536else
17537 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17538fi
17539done
17540
8284b0c5 17541
4f14bcd8 17542 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17543 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17544 wxUSE_ON_FATAL_EXCEPTION=no
17545 fi
17546
17547 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17548
17549 ac_ext=C
17550# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17551ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17552ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17553ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17554cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17555
5c6fa7d2 17556
a0b9e27f 17557 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
e5a87141 17558echo "configure:17559: checking for sa_handler type" >&5
a0b9e27f
MB
17559if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17560 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17561else
a0b9e27f
MB
17562
17563 cat > conftest.$ac_ext <<EOF
e5a87141 17564#line 17565 "configure"
af15babd 17565#include "confdefs.h"
4f14bcd8 17566#include <signal.h>
a0b9e27f 17567int main() {
4f14bcd8
GD
17568
17569 extern void testSigHandler(int);
17570
17571 struct sigaction sa;
17572 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17573
17574; return 0; }
17575EOF
e5a87141 17576if { (eval echo configure:17577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17577 rm -rf conftest*
17578
4f14bcd8 17579 wx_cv_type_sa_handler=int
a0b9e27f 17580
af15babd 17581else
a0b9e27f
MB
17582 echo "configure: failed program was:" >&5
17583 cat conftest.$ac_ext >&5
17584 rm -rf conftest*
17585
4f14bcd8 17586 wx_cv_type_sa_handler=void
a0b9e27f 17587
5c6fa7d2 17588fi
a0b9e27f
MB
17589rm -f conftest*
17590
247f5006 17591fi
a0b9e27f
MB
17592
17593echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17594
17595 ac_ext=c
a0b9e27f 17596# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17597ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17598ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17599ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17600cross_compiling=$ac_cv_prog_cc_cross
579d8138 17601
8284b0c5 17602
a0b9e27f 17603 cat >> confdefs.h <<EOF
4f14bcd8 17604#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17605EOF
af15babd 17606
4f14bcd8
GD
17607 fi
17608fi
af15babd 17609
a1d22ad7 17610for ac_func in mkstemp mktemp
af15babd 17611do
a0b9e27f 17612echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17613echo "configure:17614: checking for $ac_func" >&5
a0b9e27f
MB
17614if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17615 echo $ac_n "(cached) $ac_c" 1>&6
17616else
17617 cat > conftest.$ac_ext <<EOF
e5a87141 17618#line 17619 "configure"
af15babd
VZ
17619#include "confdefs.h"
17620/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17621 which can conflict with char $ac_func(); below. */
af15babd
VZ
17622#include <assert.h>
17623/* Override any gcc2 internal prototype to avoid an error. */
17624/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17625 builtin and then its argument prototype would still apply. */
17626char $ac_func();
17627
17628int main() {
17629
af15babd
VZ
17630/* The GNU C library defines this for functions which it implements
17631 to always fail with ENOSYS. Some functions are actually named
17632 something starting with __ and the normal name is an alias. */
17633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17634choke me
17635#else
a0b9e27f 17636$ac_func();
af15babd
VZ
17637#endif
17638
a0b9e27f
MB
17639; return 0; }
17640EOF
e5a87141 17641if { (eval echo configure:17642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17642 rm -rf conftest*
17643 eval "ac_cv_func_$ac_func=yes"
17644else
17645 echo "configure: failed program was:" >&5
17646 cat conftest.$ac_ext >&5
17647 rm -rf conftest*
17648 eval "ac_cv_func_$ac_func=no"
17649fi
17650rm -f conftest*
17651fi
af15babd 17652
a0b9e27f
MB
17653if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17654 echo "$ac_t""yes" 1>&6
17655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17656 cat >> confdefs.h <<EOF
17657#define $ac_tr_func 1
17658EOF
ade35f11 17659 break
a0b9e27f
MB
17660else
17661 echo "$ac_t""no" 1>&6
ade35f11
VZ
17662fi
17663done
17664
8284b0c5 17665
a0b9e27f 17666echo $ac_n "checking for statfs""... $ac_c" 1>&6
e5a87141 17667echo "configure:17668: checking for statfs" >&5
a0b9e27f
MB
17668if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17670else
a0b9e27f 17671 cat > conftest.$ac_ext <<EOF
e5a87141 17672#line 17673 "configure"
4f14bcd8
GD
17673#include "confdefs.h"
17674
17675 #if defined(__BSD__)
17676 #include <sys/param.h>
17677 #include <sys/mount.h>
17678 #else
17679 #include <sys/vfs.h>
17680 #endif
a0b9e27f
MB
17681
17682int main() {
4f14bcd8
GD
17683
17684 long l;
17685 struct statfs fs;
17686 statfs("/", &fs);
17687 l = fs.f_bsize;
17688 l += fs.f_blocks;
17689 l += fs.f_bavail;
a0b9e27f
MB
17690
17691; return 0; }
17692EOF
e5a87141 17693if { (eval echo configure:17694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17694 rm -rf conftest*
17695
4f14bcd8 17696 wx_cv_func_statfs=yes
a0b9e27f 17697
4f14bcd8 17698else
a0b9e27f
MB
17699 echo "configure: failed program was:" >&5
17700 cat conftest.$ac_ext >&5
17701 rm -rf conftest*
17702
4f14bcd8 17703 wx_cv_func_statfs=no
a0b9e27f
MB
17704
17705
5c6fa7d2 17706fi
a0b9e27f 17707rm -f conftest*
8284b0c5 17708
247f5006 17709fi
a0b9e27f
MB
17710
17711echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17712
17713if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17714 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17715 cat >> confdefs.h <<\EOF
4f14bcd8 17716#define HAVE_STATFS 1
a0b9e27f 17717EOF
4f14bcd8
GD
17718
17719else
a0b9e27f 17720 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
e5a87141 17721echo "configure:17722: checking for statvfs" >&5
a0b9e27f
MB
17722if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17723 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17724else
a0b9e27f 17725 cat > conftest.$ac_ext <<EOF
e5a87141 17726#line 17727 "configure"
af15babd 17727#include "confdefs.h"
af15babd 17728
54ab82b3
VZ
17729 #include <stddef.h>
17730 #include <sys/statvfs.h>
a0b9e27f
MB
17731
17732int main() {
af15babd 17733
54ab82b3 17734 statvfs("/", NULL);
a0b9e27f
MB
17735
17736; return 0; }
17737EOF
e5a87141 17738if { (eval echo configure:17739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17739 rm -rf conftest*
54ab82b3 17740 wx_cv_func_statvfs=yes
af15babd 17741else
a0b9e27f
MB
17742 echo "configure: failed program was:" >&5
17743 cat conftest.$ac_ext >&5
17744 rm -rf conftest*
54ab82b3 17745 wx_cv_func_statvfs=no
a0b9e27f 17746
5c6fa7d2 17747fi
a0b9e27f
MB
17748rm -f conftest*
17749
247f5006 17750fi
a0b9e27f
MB
17751
17752echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17753
4f14bcd8 17754 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17755
17756 ac_ext=C
17757# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17758ac_cpp='$CXXCPP $CPPFLAGS'
17759ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17760ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17761cross_compiling=$ac_cv_prog_cxx_cross
17762
17763
17764 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
e5a87141 17765echo "configure:17766: checking for statvfs argument type" >&5
54ab82b3
VZ
17766if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17767 echo $ac_n "(cached) $ac_c" 1>&6
17768else
17769 cat > conftest.$ac_ext <<EOF
e5a87141 17770#line 17771 "configure"
54ab82b3
VZ
17771#include "confdefs.h"
17772
17773 #include <sys/statvfs.h>
17774
17775int main() {
17776
17777 long l;
17778 statvfs_t fs;
17779 statvfs("/", &fs);
17780 l = fs.f_bsize;
17781 l += fs.f_blocks;
17782 l += fs.f_bavail;
17783
17784; return 0; }
17785EOF
e5a87141 17786if { (eval echo configure:17787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17787 rm -rf conftest*
17788 wx_cv_type_statvfs_t=statvfs_t
17789else
17790 echo "configure: failed program was:" >&5
17791 cat conftest.$ac_ext >&5
17792 rm -rf conftest*
17793
17794 cat > conftest.$ac_ext <<EOF
e5a87141 17795#line 17796 "configure"
54ab82b3
VZ
17796#include "confdefs.h"
17797
17798 #include <sys/statvfs.h>
17799
17800int main() {
17801
17802 long l;
65d8ef1e 17803 struct statvfs fs;
54ab82b3
VZ
17804 statvfs("/", &fs);
17805 l = fs.f_bsize;
17806 l += fs.f_blocks;
17807 l += fs.f_bavail;
17808
17809; return 0; }
17810EOF
e5a87141 17811if { (eval echo configure:17812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17812 rm -rf conftest*
17813 wx_cv_type_statvfs_t="struct statvfs"
17814else
17815 echo "configure: failed program was:" >&5
17816 cat conftest.$ac_ext >&5
17817 rm -rf conftest*
17818 wx_cv_type_statvfs_t="unknown"
17819
17820fi
17821rm -f conftest*
17822
17823
17824fi
17825rm -f conftest*
17826
17827fi
17828
17829echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17830
17831 ac_ext=c
17832# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17833ac_cpp='$CPP $CPPFLAGS'
17834ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17835ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17836cross_compiling=$ac_cv_prog_cc_cross
17837
17838
17839 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17840 cat >> confdefs.h <<\EOF
4f14bcd8 17841#define HAVE_STATVFS 1
a0b9e27f 17842EOF
af15babd 17843
54ab82b3 17844 fi
4f14bcd8 17845 else
54ab82b3 17846 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17847 fi
17848fi
af15babd 17849
54ab82b3
VZ
17850if test "$wx_cv_type_statvfs_t" != "unknown"; then
17851 cat >> confdefs.h <<EOF
17852#define WX_STATFS_T $wx_cv_type_statvfs_t
17853EOF
17854
17855else
17856 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17857fi
17858
4f14bcd8 17859if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17860 for ac_func in fcntl flock
af15babd 17861do
a0b9e27f 17862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17863echo "configure:17864: checking for $ac_func" >&5
a0b9e27f
MB
17864if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17865 echo $ac_n "(cached) $ac_c" 1>&6
17866else
17867 cat > conftest.$ac_ext <<EOF
e5a87141 17868#line 17869 "configure"
af15babd
VZ
17869#include "confdefs.h"
17870/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17871 which can conflict with char $ac_func(); below. */
af15babd
VZ
17872#include <assert.h>
17873/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17874/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17875 builtin and then its argument prototype would still apply. */
17876char $ac_func();
17877
17878int main() {
17879
af15babd
VZ
17880/* The GNU C library defines this for functions which it implements
17881 to always fail with ENOSYS. Some functions are actually named
17882 something starting with __ and the normal name is an alias. */
17883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17884choke me
17885#else
a0b9e27f 17886$ac_func();
af15babd
VZ
17887#endif
17888
a0b9e27f
MB
17889; return 0; }
17890EOF
e5a87141 17891if { (eval echo configure:17892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17892 rm -rf conftest*
17893 eval "ac_cv_func_$ac_func=yes"
17894else
17895 echo "configure: failed program was:" >&5
17896 cat conftest.$ac_ext >&5
17897 rm -rf conftest*
17898 eval "ac_cv_func_$ac_func=no"
17899fi
17900rm -f conftest*
17901fi
17902
17903if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17904 echo "$ac_t""yes" 1>&6
17905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17906 cat >> confdefs.h <<EOF
17907#define $ac_tr_func 1
17908EOF
4f14bcd8 17909 break
a0b9e27f
MB
17910else
17911 echo "$ac_t""no" 1>&6
af15babd
VZ
17912fi
17913done
17914
8284b0c5 17915
4f14bcd8 17916 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17917 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17918 wxUSE_SNGLINST_CHECKER=no
17919 fi
17920fi
af15babd 17921
4f14bcd8 17922for ac_func in timegm
af15babd 17923do
a0b9e27f 17924echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17925echo "configure:17926: checking for $ac_func" >&5
a0b9e27f
MB
17926if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17927 echo $ac_n "(cached) $ac_c" 1>&6
17928else
17929 cat > conftest.$ac_ext <<EOF
e5a87141 17930#line 17931 "configure"
af15babd
VZ
17931#include "confdefs.h"
17932/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17933 which can conflict with char $ac_func(); below. */
af15babd
VZ
17934#include <assert.h>
17935/* Override any gcc2 internal prototype to avoid an error. */
17936/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17937 builtin and then its argument prototype would still apply. */
17938char $ac_func();
17939
17940int main() {
17941
af15babd
VZ
17942/* The GNU C library defines this for functions which it implements
17943 to always fail with ENOSYS. Some functions are actually named
17944 something starting with __ and the normal name is an alias. */
247f5006
VZ
17945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17946choke me
17947#else
a0b9e27f 17948$ac_func();
247f5006
VZ
17949#endif
17950
a0b9e27f
MB
17951; return 0; }
17952EOF
e5a87141 17953if { (eval echo configure:17954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17954 rm -rf conftest*
17955 eval "ac_cv_func_$ac_func=yes"
17956else
17957 echo "configure: failed program was:" >&5
17958 cat conftest.$ac_ext >&5
17959 rm -rf conftest*
17960 eval "ac_cv_func_$ac_func=no"
17961fi
17962rm -f conftest*
17963fi
703e0a69 17964
a0b9e27f
MB
17965if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17966 echo "$ac_t""yes" 1>&6
17967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17968 cat >> confdefs.h <<EOF
17969#define $ac_tr_func 1
17970EOF
17971
17972else
17973 echo "$ac_t""no" 1>&6
af15babd
VZ
17974fi
17975done
17976
8284b0c5 17977
4f14bcd8 17978for ac_func in putenv setenv
10f2d63a 17979do
a0b9e27f 17980echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 17981echo "configure:17982: checking for $ac_func" >&5
a0b9e27f
MB
17982if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17983 echo $ac_n "(cached) $ac_c" 1>&6
17984else
17985 cat > conftest.$ac_ext <<EOF
e5a87141 17986#line 17987 "configure"
af15babd
VZ
17987#include "confdefs.h"
17988/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17989 which can conflict with char $ac_func(); below. */
af15babd
VZ
17990#include <assert.h>
17991/* Override any gcc2 internal prototype to avoid an error. */
17992/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17993 builtin and then its argument prototype would still apply. */
17994char $ac_func();
17995
17996int main() {
17997
af15babd
VZ
17998/* The GNU C library defines this for functions which it implements
17999 to always fail with ENOSYS. Some functions are actually named
18000 something starting with __ and the normal name is an alias. */
18001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18002choke me
18003#else
a0b9e27f 18004$ac_func();
af15babd
VZ
18005#endif
18006
a0b9e27f
MB
18007; return 0; }
18008EOF
e5a87141 18009if { (eval echo configure:18010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18010 rm -rf conftest*
18011 eval "ac_cv_func_$ac_func=yes"
18012else
18013 echo "configure: failed program was:" >&5
18014 cat conftest.$ac_ext >&5
18015 rm -rf conftest*
18016 eval "ac_cv_func_$ac_func=no"
18017fi
18018rm -f conftest*
18019fi
18020
18021if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18022 echo "$ac_t""yes" 1>&6
18023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18024 cat >> confdefs.h <<EOF
18025#define $ac_tr_func 1
18026EOF
4f14bcd8 18027 break
a0b9e27f
MB
18028else
18029 echo "$ac_t""no" 1>&6
af15babd 18030fi
af15babd
VZ
18031done
18032
8284b0c5 18033
4f14bcd8
GD
18034HAVE_SOME_SLEEP_FUNC=0
18035if test "$USE_BEOS" = 1; then
a0b9e27f 18036 cat >> confdefs.h <<\EOF
4f14bcd8 18037#define HAVE_SLEEP 1
a0b9e27f 18038EOF
af15babd 18039
4f14bcd8 18040 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18041fi
18042
4f14bcd8 18043if test "$USE_DARWIN" = 1; then
a0b9e27f 18044 cat >> confdefs.h <<\EOF
4f14bcd8 18045#define HAVE_USLEEP 1
a0b9e27f 18046EOF
10f2d63a 18047
4f14bcd8 18048 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18049fi
18050
4f14bcd8
GD
18051if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18052 POSIX4_LINK=
a0b9e27f 18053 for ac_func in nanosleep
4f14bcd8 18054do
a0b9e27f 18055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18056echo "configure:18057: checking for $ac_func" >&5
a0b9e27f
MB
18057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18058 echo $ac_n "(cached) $ac_c" 1>&6
18059else
18060 cat > conftest.$ac_ext <<EOF
e5a87141 18061#line 18062 "configure"
10f2d63a 18062#include "confdefs.h"
4f14bcd8 18063/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18064 which can conflict with char $ac_func(); below. */
4f14bcd8 18065#include <assert.h>
10f2d63a
VZ
18066/* Override any gcc2 internal prototype to avoid an error. */
18067/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18068 builtin and then its argument prototype would still apply. */
18069char $ac_func();
18070
18071int main() {
18072
4f14bcd8
GD
18073/* The GNU C library defines this for functions which it implements
18074 to always fail with ENOSYS. Some functions are actually named
18075 something starting with __ and the normal name is an alias. */
18076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18077choke me
18078#else
a0b9e27f 18079$ac_func();
4f14bcd8
GD
18080#endif
18081
a0b9e27f
MB
18082; return 0; }
18083EOF
e5a87141 18084if { (eval echo configure:18085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18085 rm -rf conftest*
18086 eval "ac_cv_func_$ac_func=yes"
18087else
18088 echo "configure: failed program was:" >&5
18089 cat conftest.$ac_ext >&5
18090 rm -rf conftest*
18091 eval "ac_cv_func_$ac_func=no"
18092fi
18093rm -f conftest*
18094fi
18095
18096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18097 echo "$ac_t""yes" 1>&6
18098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18099 cat >> confdefs.h <<EOF
18100#define $ac_tr_func 1
18101EOF
18102 cat >> confdefs.h <<\EOF
4f14bcd8 18103#define HAVE_NANOSLEEP 1
a0b9e27f 18104EOF
4f14bcd8 18105
10f2d63a 18106else
a0b9e27f
MB
18107 echo "$ac_t""no" 1>&6
18108echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
e5a87141 18109echo "configure:18110: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18110ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18112 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18113else
a0b9e27f 18114 ac_save_LIBS="$LIBS"
4f14bcd8 18115LIBS="-lposix4 $LIBS"
a0b9e27f 18116cat > conftest.$ac_ext <<EOF
e5a87141 18117#line 18118 "configure"
10f2d63a
VZ
18118#include "confdefs.h"
18119/* Override any gcc2 internal prototype to avoid an error. */
18120/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18121 builtin and then its argument prototype would still apply. */
18122char nanosleep();
18123
18124int main() {
18125nanosleep()
18126; return 0; }
18127EOF
e5a87141 18128if { (eval echo configure:18129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18129 rm -rf conftest*
18130 eval "ac_cv_lib_$ac_lib_var=yes"
18131else
18132 echo "configure: failed program was:" >&5
18133 cat conftest.$ac_ext >&5
18134 rm -rf conftest*
18135 eval "ac_cv_lib_$ac_lib_var=no"
18136fi
18137rm -f conftest*
18138LIBS="$ac_save_LIBS"
18139
18140fi
18141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18142 echo "$ac_t""yes" 1>&6
18143
18144 cat >> confdefs.h <<\EOF
4f14bcd8 18145#define HAVE_NANOSLEEP 1
a0b9e27f 18146EOF
4f14bcd8 18147
3d63bc3a 18148 POSIX4_LINK=" -lposix4"
a0b9e27f 18149
10f2d63a 18150else
a0b9e27f 18151 echo "$ac_t""no" 1>&6
10f2d63a 18152
a0b9e27f 18153 for ac_func in usleep
4f14bcd8 18154do
a0b9e27f 18155echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18156echo "configure:18157: checking for $ac_func" >&5
a0b9e27f
MB
18157if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18158 echo $ac_n "(cached) $ac_c" 1>&6
18159else
18160 cat > conftest.$ac_ext <<EOF
e5a87141 18161#line 18162 "configure"
10f2d63a 18162#include "confdefs.h"
4f14bcd8 18163/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18164 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18165#include <assert.h>
18166/* Override any gcc2 internal prototype to avoid an error. */
18167/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18168 builtin and then its argument prototype would still apply. */
18169char $ac_func();
18170
18171int main() {
18172
4f14bcd8
GD
18173/* The GNU C library defines this for functions which it implements
18174 to always fail with ENOSYS. Some functions are actually named
18175 something starting with __ and the normal name is an alias. */
18176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18177choke me
18178#else
a0b9e27f 18179$ac_func();
4f14bcd8
GD
18180#endif
18181
a0b9e27f
MB
18182; return 0; }
18183EOF
e5a87141 18184if { (eval echo configure:18185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18185 rm -rf conftest*
18186 eval "ac_cv_func_$ac_func=yes"
18187else
18188 echo "configure: failed program was:" >&5
18189 cat conftest.$ac_ext >&5
18190 rm -rf conftest*
18191 eval "ac_cv_func_$ac_func=no"
18192fi
18193rm -f conftest*
18194fi
18195
18196if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18197 echo "$ac_t""yes" 1>&6
18198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18199 cat >> confdefs.h <<EOF
18200#define $ac_tr_func 1
18201EOF
18202 cat >> confdefs.h <<\EOF
4f14bcd8 18203#define HAVE_USLEEP 1
a0b9e27f 18204EOF
4f14bcd8 18205
698dcdb6 18206else
a0b9e27f
MB
18207 echo "$ac_t""no" 1>&6
18208echo "configure: warning: wxSleep() function will not work" 1>&2
18209
10f2d63a 18210fi
4f14bcd8 18211done
10f2d63a 18212
a0b9e27f
MB
18213
18214
6232543b 18215fi
10f2d63a 18216
a0b9e27f
MB
18217
18218
1e487827 18219fi
4f14bcd8 18220done
703e0a69 18221
10f2d63a
VZ
18222fi
18223
4f14bcd8 18224for ac_func in uname gethostname
70846f0a 18225do
a0b9e27f 18226echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18227echo "configure:18228: checking for $ac_func" >&5
a0b9e27f
MB
18228if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18229 echo $ac_n "(cached) $ac_c" 1>&6
18230else
18231 cat > conftest.$ac_ext <<EOF
e5a87141 18232#line 18233 "configure"
70846f0a
VZ
18233#include "confdefs.h"
18234/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18235 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18236#include <assert.h>
18237/* Override any gcc2 internal prototype to avoid an error. */
18238/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18239 builtin and then its argument prototype would still apply. */
18240char $ac_func();
18241
18242int main() {
18243
70846f0a
VZ
18244/* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18248choke me
18249#else
a0b9e27f 18250$ac_func();
70846f0a
VZ
18251#endif
18252
a0b9e27f
MB
18253; return 0; }
18254EOF
e5a87141 18255if { (eval echo configure:18256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18256 rm -rf conftest*
18257 eval "ac_cv_func_$ac_func=yes"
18258else
18259 echo "configure: failed program was:" >&5
18260 cat conftest.$ac_ext >&5
18261 rm -rf conftest*
18262 eval "ac_cv_func_$ac_func=no"
18263fi
18264rm -f conftest*
18265fi
18266
18267if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18268 echo "$ac_t""yes" 1>&6
18269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18270 cat >> confdefs.h <<EOF
18271#define $ac_tr_func 1
18272EOF
4f14bcd8 18273 break
a0b9e27f
MB
18274else
18275 echo "$ac_t""no" 1>&6
70846f0a
VZ
18276fi
18277done
18278
8284b0c5
MB
18279
18280
a0b9e27f
MB
18281ac_ext=C
18282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18283ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18286cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18287
4f14bcd8
GD
18288
18289for ac_func in strtok_r
10f2d63a 18290do
a0b9e27f 18291echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18292echo "configure:18293: checking for $ac_func" >&5
a0b9e27f
MB
18293if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18294 echo $ac_n "(cached) $ac_c" 1>&6
18295else
18296 cat > conftest.$ac_ext <<EOF
e5a87141 18297#line 18298 "configure"
10f2d63a 18298#include "confdefs.h"
4f14bcd8 18299/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18300 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18301#include <assert.h>
18302/* Override any gcc2 internal prototype to avoid an error. */
18303#ifdef __cplusplus
18304extern "C"
18305#endif
18306/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18307 builtin and then its argument prototype would still apply. */
18308char $ac_func();
18309
18310int main() {
18311
4f14bcd8
GD
18312/* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18316choke me
18317#else
a0b9e27f 18318$ac_func();
4f14bcd8
GD
18319#endif
18320
a0b9e27f
MB
18321; return 0; }
18322EOF
e5a87141 18323if { (eval echo configure:18324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18324 rm -rf conftest*
18325 eval "ac_cv_func_$ac_func=yes"
18326else
18327 echo "configure: failed program was:" >&5
18328 cat conftest.$ac_ext >&5
18329 rm -rf conftest*
18330 eval "ac_cv_func_$ac_func=no"
18331fi
18332rm -f conftest*
18333fi
4f14bcd8 18334
a0b9e27f
MB
18335if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18336 echo "$ac_t""yes" 1>&6
18337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18338 cat >> confdefs.h <<EOF
18339#define $ac_tr_func 1
18340EOF
18341
18342else
18343 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18344fi
18345done
18346
8284b0c5 18347
4f14bcd8 18348ac_ext=c
a0b9e27f 18349# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18350ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18351ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18352ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18353cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18354
5c6fa7d2 18355
8284b0c5 18356INET_LINK=
4f14bcd8
GD
18357for ac_func in inet_addr
18358do
a0b9e27f 18359echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18360echo "configure:18361: checking for $ac_func" >&5
a0b9e27f
MB
18361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18362 echo $ac_n "(cached) $ac_c" 1>&6
18363else
18364 cat > conftest.$ac_ext <<EOF
e5a87141 18365#line 18366 "configure"
10f2d63a 18366#include "confdefs.h"
4f14bcd8 18367/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18368 which can conflict with char $ac_func(); below. */
4f14bcd8 18369#include <assert.h>
10f2d63a
VZ
18370/* Override any gcc2 internal prototype to avoid an error. */
18371/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18372 builtin and then its argument prototype would still apply. */
18373char $ac_func();
18374
18375int main() {
18376
4f14bcd8
GD
18377/* The GNU C library defines this for functions which it implements
18378 to always fail with ENOSYS. Some functions are actually named
18379 something starting with __ and the normal name is an alias. */
18380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18381choke me
18382#else
a0b9e27f 18383$ac_func();
4f14bcd8
GD
18384#endif
18385
a0b9e27f
MB
18386; return 0; }
18387EOF
e5a87141 18388if { (eval echo configure:18389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18389 rm -rf conftest*
18390 eval "ac_cv_func_$ac_func=yes"
18391else
18392 echo "configure: failed program was:" >&5
18393 cat conftest.$ac_ext >&5
18394 rm -rf conftest*
18395 eval "ac_cv_func_$ac_func=no"
18396fi
18397rm -f conftest*
18398fi
18399
18400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18401 echo "$ac_t""yes" 1>&6
18402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18403 cat >> confdefs.h <<EOF
18404#define $ac_tr_func 1
18405EOF
18406 cat >> confdefs.h <<\EOF
4f14bcd8 18407#define HAVE_INET_ADDR 1
a0b9e27f 18408EOF
10f2d63a
VZ
18409
18410else
a0b9e27f
MB
18411 echo "$ac_t""no" 1>&6
18412echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
e5a87141 18413echo "configure:18414: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18414ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18416 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18417else
a0b9e27f 18418 ac_save_LIBS="$LIBS"
4f14bcd8 18419LIBS="-lnsl $LIBS"
a0b9e27f 18420cat > conftest.$ac_ext <<EOF
e5a87141 18421#line 18422 "configure"
10f2d63a
VZ
18422#include "confdefs.h"
18423/* Override any gcc2 internal prototype to avoid an error. */
18424/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18425 builtin and then its argument prototype would still apply. */
18426char inet_addr();
18427
18428int main() {
18429inet_addr()
18430; return 0; }
18431EOF
e5a87141 18432if { (eval echo configure:18433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18433 rm -rf conftest*
18434 eval "ac_cv_lib_$ac_lib_var=yes"
18435else
18436 echo "configure: failed program was:" >&5
18437 cat conftest.$ac_ext >&5
18438 rm -rf conftest*
18439 eval "ac_cv_lib_$ac_lib_var=no"
18440fi
18441rm -f conftest*
18442LIBS="$ac_save_LIBS"
18443
18444fi
18445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18446 echo "$ac_t""yes" 1>&6
4f14bcd8 18447 INET_LINK="nsl"
10f2d63a 18448else
a0b9e27f
MB
18449 echo "$ac_t""no" 1>&6
18450echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
e5a87141 18451echo "configure:18452: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18452ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18453if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18454 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18455else
a0b9e27f 18456 ac_save_LIBS="$LIBS"
4f14bcd8 18457LIBS="-lresolv $LIBS"
a0b9e27f 18458cat > conftest.$ac_ext <<EOF
e5a87141 18459#line 18460 "configure"
7b4a847f 18460#include "confdefs.h"
5c6fa7d2 18461/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18462/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18463 builtin and then its argument prototype would still apply. */
18464char inet_addr();
18465
18466int main() {
18467inet_addr()
18468; return 0; }
18469EOF
e5a87141 18470if { (eval echo configure:18471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18471 rm -rf conftest*
18472 eval "ac_cv_lib_$ac_lib_var=yes"
18473else
18474 echo "configure: failed program was:" >&5
18475 cat conftest.$ac_ext >&5
18476 rm -rf conftest*
18477 eval "ac_cv_lib_$ac_lib_var=no"
18478fi
18479rm -f conftest*
18480LIBS="$ac_save_LIBS"
18481
18482fi
18483if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18484 echo "$ac_t""yes" 1>&6
4f14bcd8 18485 INET_LINK="resolv"
698dcdb6 18486else
a0b9e27f
MB
18487 echo "$ac_t""no" 1>&6
18488echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
e5a87141 18489echo "configure:18490: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18490ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18492 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18493else
a0b9e27f 18494 ac_save_LIBS="$LIBS"
3c011993 18495LIBS="-lsocket $LIBS"
a0b9e27f 18496cat > conftest.$ac_ext <<EOF
e5a87141 18497#line 18498 "configure"
3c011993
VZ
18498#include "confdefs.h"
18499/* Override any gcc2 internal prototype to avoid an error. */
18500/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18501 builtin and then its argument prototype would still apply. */
18502char inet_addr();
4f14bcd8 18503
a0b9e27f
MB
18504int main() {
18505inet_addr()
18506; return 0; }
18507EOF
e5a87141 18508if { (eval echo configure:18509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18509 rm -rf conftest*
18510 eval "ac_cv_lib_$ac_lib_var=yes"
18511else
18512 echo "configure: failed program was:" >&5
18513 cat conftest.$ac_ext >&5
18514 rm -rf conftest*
18515 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18516fi
a0b9e27f
MB
18517rm -f conftest*
18518LIBS="$ac_save_LIBS"
698dcdb6 18519
7b4a847f 18520fi
a0b9e27f
MB
18521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18522 echo "$ac_t""yes" 1>&6
18523 INET_LINK="socket"
18524
18525else
18526 echo "$ac_t""no" 1>&6
18527fi
579d8138 18528
a0b9e27f 18529
5c6fa7d2 18530fi
52127426 18531
a0b9e27f
MB
18532
18533fi
247f5006 18534
a0b9e27f 18535
8284b0c5 18536
698dcdb6 18537fi
4f14bcd8
GD
18538done
18539
8284b0c5 18540
4f14bcd8
GD
18541for ac_func in inet_aton
18542do
a0b9e27f 18543echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18544echo "configure:18545: checking for $ac_func" >&5
a0b9e27f
MB
18545if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18546 echo $ac_n "(cached) $ac_c" 1>&6
18547else
18548 cat > conftest.$ac_ext <<EOF
e5a87141 18549#line 18550 "configure"
f6bcfd97 18550#include "confdefs.h"
4f14bcd8 18551/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18552 which can conflict with char $ac_func(); below. */
4f14bcd8 18553#include <assert.h>
f6bcfd97
BP
18554/* Override any gcc2 internal prototype to avoid an error. */
18555/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18556 builtin and then its argument prototype would still apply. */
18557char $ac_func();
18558
18559int main() {
18560
4f14bcd8
GD
18561/* The GNU C library defines this for functions which it implements
18562 to always fail with ENOSYS. Some functions are actually named
18563 something starting with __ and the normal name is an alias. */
18564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18565choke me
18566#else
a0b9e27f 18567$ac_func();
4f14bcd8
GD
18568#endif
18569
a0b9e27f
MB
18570; return 0; }
18571EOF
e5a87141 18572if { (eval echo configure:18573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18573 rm -rf conftest*
18574 eval "ac_cv_func_$ac_func=yes"
18575else
18576 echo "configure: failed program was:" >&5
18577 cat conftest.$ac_ext >&5
18578 rm -rf conftest*
18579 eval "ac_cv_func_$ac_func=no"
18580fi
18581rm -f conftest*
18582fi
18583
18584if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18585 echo "$ac_t""yes" 1>&6
18586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18587 cat >> confdefs.h <<EOF
18588#define $ac_tr_func 1
18589EOF
18590 cat >> confdefs.h <<\EOF
4f14bcd8 18591#define HAVE_INET_ATON 1
a0b9e27f 18592EOF
4f14bcd8 18593
10f2d63a 18594else
a0b9e27f
MB
18595 echo "$ac_t""no" 1>&6
18596 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
e5a87141 18597echo "configure:18598: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18598ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18599if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18600 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18601else
a0b9e27f 18602 ac_save_LIBS="$LIBS"
4f14bcd8 18603LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18604cat > conftest.$ac_ext <<EOF
e5a87141 18605#line 18606 "configure"
10f2d63a 18606#include "confdefs.h"
6232543b 18607/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18608/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18609 builtin and then its argument prototype would still apply. */
18610char inet_aton();
18611
18612int main() {
18613inet_aton()
18614; return 0; }
18615EOF
e5a87141 18616if { (eval echo configure:18617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18617 rm -rf conftest*
18618 eval "ac_cv_lib_$ac_lib_var=yes"
18619else
18620 echo "configure: failed program was:" >&5
18621 cat conftest.$ac_ext >&5
18622 rm -rf conftest*
18623 eval "ac_cv_lib_$ac_lib_var=no"
18624fi
18625rm -f conftest*
18626LIBS="$ac_save_LIBS"
4f14bcd8 18627
10f2d63a 18628fi
a0b9e27f
MB
18629if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18630 echo "$ac_t""yes" 1>&6
18631 cat >> confdefs.h <<\EOF
18632#define HAVE_INET_ATON 1
18633EOF
10f2d63a 18634
a0b9e27f
MB
18635else
18636 echo "$ac_t""no" 1>&6
18637fi
247f5006 18638
a0b9e27f 18639
10f2d63a 18640fi
4f14bcd8 18641done
10f2d63a 18642
8284b0c5 18643
4f14bcd8 18644if test "x$INET_LINK" != "x"; then
a0b9e27f 18645 cat >> confdefs.h <<\EOF
4f14bcd8 18646#define HAVE_INET_ADDR 1
a0b9e27f 18647EOF
4f14bcd8 18648
3d63bc3a 18649 INET_LINK=" -l$INET_LINK"
6232543b 18650fi
10f2d63a 18651
1e487827 18652fi
703e0a69 18653
8284b0c5 18654
a0b9e27f 18655cat > confcache <<\EOF
4f14bcd8
GD
18656# This file is a shell script that caches the results of configure
18657# tests run on this system so they can be shared between configure
a0b9e27f
MB
18658# scripts and configure runs. It is not useful on other systems.
18659# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18660#
a0b9e27f
MB
18661# By default, configure uses ./config.cache as the cache file,
18662# creating it if it does not exist already. You can give configure
18663# the --cache-file=FILE option to use a different cache file; that is
18664# what configure does when it calls configure scripts in
18665# subdirectories, so they share the cache.
18666# Giving --cache-file=/dev/null disables caching, for debugging configure.
18667# config.status only pays attention to the cache file if you give it the
18668# --recheck option to rerun configure.
4f14bcd8 18669#
a0b9e27f 18670EOF
4f14bcd8
GD
18671# The following way of writing the cache mishandles newlines in values,
18672# but we know of no workaround that is simple, portable, and efficient.
18673# So, don't put newlines in cache variables' values.
18674# Ultrix sh set writes to stderr and can't be redirected directly,
18675# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18676(set) 2>&1 |
18677 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18678 *ac_space=\ *)
18679 # `set' does not quote correctly, so add quotes (double-quote substitution
18680 # turns \\\\ into \\, and sed turns \\ into \).
18681 sed -n \
18682 -e "s/'/'\\\\''/g" \
18683 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18684 ;;
18685 *)
18686 # `set' quotes correctly as required by POSIX, so do not add quotes.
18687 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18688 ;;
18689 esac >> confcache
18690if cmp -s $cache_file confcache; then
18691 :
18692else
4f14bcd8 18693 if test -w $cache_file; then
a0b9e27f
MB
18694 echo "updating cache $cache_file"
18695 cat confcache > $cache_file
f6bcfd97 18696 else
4f14bcd8 18697 echo "not updating unwritable cache $cache_file"
f6bcfd97 18698 fi
4f14bcd8
GD
18699fi
18700rm -f confcache
f6bcfd97 18701
8284b0c5 18702
a0b9e27f 18703
009fead0 18704CPP_MT_FLAG=
4f14bcd8
GD
18705if test "$TOOLKIT" != "MSW"; then
18706
a0b9e27f 18707
7274f1c7 18708 THREADS_LINK=
009fead0 18709 THREADS_CFLAGS=
7274f1c7
RL
18710
18711 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18712 if test "$USE_BEOS" = 1; then
a0b9e27f 18713 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18714 wxUSE_THREADS="no"
18715 fi
4f14bcd8 18716 fi
4f14bcd8 18717
7274f1c7 18718 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18719
18720
009fead0
VZ
18721 THREAD_OPTS="-pthread"
18722 case "${host}" in
18723 *-*-solaris2* | *-*-sunos4* )
18724 if test "x$GCC" = "xyes"; then
126be6b4 18725 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18726 else
18727 THREAD_OPTS="-mt $THREAD_OPTS"
18728 fi
18729 ;;
18730 *-*-freebsd*)
18731 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18732 ;;
17234b26
MB
18733 *-*-darwin* | *-*-cygwin* )
18734 THREAD_OPTS=""
4101db81 18735 ;;
8f4a9a10 18736 *-*-aix*)
009fead0
VZ
18737 THREAD_OPTS="pthreads"
18738 ;;
4f5a7f74
VZ
18739 *-hp-hpux* )
18740 if test "x$GCC" != "xyes"; then
18741 THREAD_OPTS=""
18742 fi
89e3b3e4
VZ
18743 ;;
18744
18745 *-*-irix* )
18746 if test "x$GCC" = "xyes"; then
18747 THREAD_OPTS=""
18748 fi
18749 ;;
18750
18751 *-*-*UnixWare*)
18752 if test "x$GCC" != "xyes"; then
18753 THREAD_OPTS="-Ethread"
18754 fi
18755 ;;
009fead0 18756 esac
4f14bcd8 18757
02a1dfba 18758 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18759
009fead0
VZ
18760 THREADS_OK=no
18761 for flag in $THREAD_OPTS; do
18762 case $flag in
18763 none)
a0b9e27f 18764 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
e5a87141 18765echo "configure:18766: checking whether pthreads work without any flags" >&5
009fead0 18766 ;;
698dcdb6 18767
009fead0 18768 -*)
a0b9e27f 18769 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
e5a87141 18770echo "configure:18771: checking whether pthreads work with $flag" >&5
009fead0
VZ
18771 THREADS_CFLAGS="$flag"
18772 ;;
698dcdb6 18773
009fead0 18774 *)
a0b9e27f 18775 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
e5a87141 18776echo "configure:18777: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18777 THREADS_LINK="-l$flag"
18778 ;;
18779 esac
10f2d63a 18780
009fead0
VZ
18781 save_LIBS="$LIBS"
18782 save_CFLAGS="$CFLAGS"
18783 LIBS="$THREADS_LINK $LIBS"
04727afd 18784 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18785
a0b9e27f 18786 cat > conftest.$ac_ext <<EOF
e5a87141 18787#line 18788 "configure"
009fead0
VZ
18788#include "confdefs.h"
18789#include <pthread.h>
a0b9e27f 18790int main() {
009fead0 18791pthread_create(0,0,0,0);
a0b9e27f
MB
18792; return 0; }
18793EOF
e5a87141 18794if { (eval echo configure:18795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18795 rm -rf conftest*
009fead0 18796 THREADS_OK=yes
10f2d63a 18797else
a0b9e27f
MB
18798 echo "configure: failed program was:" >&5
18799 cat conftest.$ac_ext >&5
6232543b 18800fi
a0b9e27f 18801rm -f conftest*
698dcdb6 18802
009fead0
VZ
18803 LIBS="$save_LIBS"
18804 CFLAGS="$save_CFLAGS"
d9b9876f 18805
a0b9e27f 18806 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18807 if test "x$THREADS_OK" = "xyes"; then
18808 break;
18809 fi
d9b9876f 18810
009fead0
VZ
18811 THREADS_LINK=""
18812 THREADS_CFLAGS=""
18813 done
4f14bcd8 18814
009fead0
VZ
18815 if test "x$THREADS_OK" != "xyes"; then
18816 wxUSE_THREADS=no
a0b9e27f 18817 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18818 else
db82f09e
VZ
18819 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18820 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18821
a0b9e27f 18822 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
e5a87141 18823echo "configure:18824: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18824 flag=no
18825 case "${host}" in
2b5f62a0
VZ
18826 *-aix*)
18827 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18828 flag="-D_THREAD_SAFE"
18829 ;;
18830 *-freebsd*)
009fead0
VZ
18831 flag="-D_THREAD_SAFE"
18832 ;;
06313569
GD
18833 *-hp-hpux* )
18834 flag="-D_REENTRANT"
4f5a7f74
VZ
18835 if test "x$GCC" != "xyes"; then
18836 flag="$flag -D_RWSTD_MULTI_THREAD"
18837 fi
06313569 18838 ;;
009fead0
VZ
18839 *solaris* | alpha*-osf*)
18840 flag="-D_REENTRANT"
18841 ;;
18842 esac
a0b9e27f 18843 echo "$ac_t""${flag}" 1>&6
009fead0 18844 if test "x$flag" != xno; then
04727afd 18845 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18846 fi
18847
009fead0 18848 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18849 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18850 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18851 fi
18852 fi
4f14bcd8 18853 fi
4f14bcd8 18854
7274f1c7 18855 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18856 for ac_func in thr_setconcurrency
4f14bcd8 18857do
a0b9e27f 18858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 18859echo "configure:18860: checking for $ac_func" >&5
a0b9e27f
MB
18860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18861 echo $ac_n "(cached) $ac_c" 1>&6
18862else
18863 cat > conftest.$ac_ext <<EOF
e5a87141 18864#line 18865 "configure"
d9b9876f 18865#include "confdefs.h"
4f14bcd8 18866/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18867 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18868#include <assert.h>
18869/* Override any gcc2 internal prototype to avoid an error. */
18870/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18871 builtin and then its argument prototype would still apply. */
18872char $ac_func();
18873
18874int main() {
18875
4f14bcd8
GD
18876/* The GNU C library defines this for functions which it implements
18877 to always fail with ENOSYS. Some functions are actually named
18878 something starting with __ and the normal name is an alias. */
18879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18880choke me
18881#else
a0b9e27f 18882$ac_func();
4f14bcd8
GD
18883#endif
18884
a0b9e27f
MB
18885; return 0; }
18886EOF
e5a87141 18887if { (eval echo configure:18888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18888 rm -rf conftest*
18889 eval "ac_cv_func_$ac_func=yes"
18890else
18891 echo "configure: failed program was:" >&5
18892 cat conftest.$ac_ext >&5
18893 rm -rf conftest*
18894 eval "ac_cv_func_$ac_func=no"
18895fi
18896rm -f conftest*
18897fi
698dcdb6 18898
a0b9e27f
MB
18899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18900 echo "$ac_t""yes" 1>&6
18901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18902 cat >> confdefs.h <<EOF
18903#define $ac_tr_func 1
18904EOF
18905
18906else
18907 echo "$ac_t""no" 1>&6
10f2d63a 18908fi
4f14bcd8 18909done
10f2d63a 18910
8284b0c5 18911
a0b9e27f 18912 for ac_hdr in sched.h
4f14bcd8 18913do
a0b9e27f
MB
18914ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18915echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 18916echo "configure:18917: checking for $ac_hdr" >&5
a0b9e27f
MB
18917if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18918 echo $ac_n "(cached) $ac_c" 1>&6
18919else
18920 cat > conftest.$ac_ext <<EOF
e5a87141 18921#line 18922 "configure"
247f5006 18922#include "confdefs.h"
a0b9e27f
MB
18923#include <$ac_hdr>
18924EOF
18925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 18926{ (eval echo configure:18927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18927ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18928if test -z "$ac_err"; then
18929 rm -rf conftest*
18930 eval "ac_cv_header_$ac_safe=yes"
18931else
18932 echo "$ac_err" >&5
18933 echo "configure: failed program was:" >&5
4f14bcd8 18934 cat conftest.$ac_ext >&5
a0b9e27f
MB
18935 rm -rf conftest*
18936 eval "ac_cv_header_$ac_safe=no"
13111b2a 18937fi
a0b9e27f 18938rm -f conftest*
10f2d63a 18939fi
a0b9e27f
MB
18940if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18941 echo "$ac_t""yes" 1>&6
18942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18943 cat >> confdefs.h <<EOF
18944#define $ac_tr_hdr 1
18945EOF
18946
18947else
18948 echo "$ac_t""no" 1>&6
f6bcfd97 18949fi
4f14bcd8 18950done
f6bcfd97 18951
009fead0 18952 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18953 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
e5a87141 18954echo "configure:18955: checking for sched_yield" >&5
a0b9e27f
MB
18955if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18956 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18957else
a0b9e27f 18958 cat > conftest.$ac_ext <<EOF
e5a87141 18959#line 18960 "configure"
4f14bcd8 18960#include "confdefs.h"
009fead0 18961/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18962 which can conflict with char sched_yield(); below. */
009fead0 18963#include <assert.h>
4f14bcd8
GD
18964/* Override any gcc2 internal prototype to avoid an error. */
18965/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18966 builtin and then its argument prototype would still apply. */
18967char sched_yield();
18968
18969int main() {
18970
009fead0
VZ
18971/* The GNU C library defines this for functions which it implements
18972 to always fail with ENOSYS. Some functions are actually named
18973 something starting with __ and the normal name is an alias. */
18974#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18975choke me
18976#else
a0b9e27f 18977sched_yield();
009fead0
VZ
18978#endif
18979
a0b9e27f
MB
18980; return 0; }
18981EOF
e5a87141 18982if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18983 rm -rf conftest*
18984 eval "ac_cv_func_sched_yield=yes"
18985else
18986 echo "configure: failed program was:" >&5
18987 cat conftest.$ac_ext >&5
18988 rm -rf conftest*
18989 eval "ac_cv_func_sched_yield=no"
18990fi
18991rm -f conftest*
18992fi
18993
18994if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18995 echo "$ac_t""yes" 1>&6
18996 cat >> confdefs.h <<\EOF
4f14bcd8 18997#define HAVE_SCHED_YIELD 1
a0b9e27f 18998EOF
10f2d63a 18999
4f14bcd8 19000else
a0b9e27f 19001 echo "$ac_t""no" 1>&6
009fead0 19002
a0b9e27f 19003 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
e5a87141 19004echo "configure:19005: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
19005ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19007 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19008else
a0b9e27f 19009 ac_save_LIBS="$LIBS"
4f14bcd8 19010LIBS="-lposix4 $LIBS"
a0b9e27f 19011cat > conftest.$ac_ext <<EOF
e5a87141 19012#line 19013 "configure"
4f14bcd8
GD
19013#include "confdefs.h"
19014/* Override any gcc2 internal prototype to avoid an error. */
19015/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19016 builtin and then its argument prototype would still apply. */
19017char sched_yield();
19018
19019int main() {
19020sched_yield()
19021; return 0; }
19022EOF
e5a87141 19023if { (eval echo configure:19024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19024 rm -rf conftest*
19025 eval "ac_cv_lib_$ac_lib_var=yes"
19026else
19027 echo "configure: failed program was:" >&5
19028 cat conftest.$ac_ext >&5
19029 rm -rf conftest*
19030 eval "ac_cv_lib_$ac_lib_var=no"
19031fi
19032rm -f conftest*
19033LIBS="$ac_save_LIBS"
19034
19035fi
19036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19037 echo "$ac_t""yes" 1>&6
19038 cat >> confdefs.h <<\EOF
4f14bcd8 19039#define HAVE_SCHED_YIELD 1
a0b9e27f 19040EOF
3d63bc3a 19041 POSIX4_LINK=" -lposix4"
4f14bcd8 19042else
a0b9e27f
MB
19043 echo "$ac_t""no" 1>&6
19044echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19045
54276ccf
VZ
19046fi
19047
a0b9e27f
MB
19048
19049
4f14bcd8 19050fi
698dcdb6 19051
009fead0 19052 fi
10f2d63a 19053
7274f1c7 19054 HAVE_PRIOR_FUNCS=0
a0b9e27f 19055 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
e5a87141 19056echo "configure:19057: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
19057if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19058 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19059else
a0b9e27f 19060 cat > conftest.$ac_ext <<EOF
e5a87141 19061#line 19062 "configure"
422107f9 19062#include "confdefs.h"
009fead0 19063/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19064 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 19065#include <assert.h>
4f14bcd8
GD
19066/* Override any gcc2 internal prototype to avoid an error. */
19067/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19068 builtin and then its argument prototype would still apply. */
19069char pthread_attr_getschedpolicy();
19070
19071int main() {
19072
009fead0
VZ
19073/* The GNU C library defines this for functions which it implements
19074 to always fail with ENOSYS. Some functions are actually named
19075 something starting with __ and the normal name is an alias. */
19076#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19077choke me
19078#else
a0b9e27f 19079pthread_attr_getschedpolicy();
009fead0
VZ
19080#endif
19081
a0b9e27f
MB
19082; return 0; }
19083EOF
e5a87141 19084if { (eval echo configure:19085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19085 rm -rf conftest*
19086 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19087else
19088 echo "configure: failed program was:" >&5
19089 cat conftest.$ac_ext >&5
19090 rm -rf conftest*
19091 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19092fi
19093rm -f conftest*
19094fi
19095
19096if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19097 echo "$ac_t""yes" 1>&6
19098 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
e5a87141 19099echo "configure:19100: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19100if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19101 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19102else
a0b9e27f 19103 cat > conftest.$ac_ext <<EOF
e5a87141 19104#line 19105 "configure"
a0b9e27f
MB
19105#include "confdefs.h"
19106/* System header to define __stub macros and hopefully few prototypes,
19107 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19108#include <assert.h>
422107f9
VZ
19109/* Override any gcc2 internal prototype to avoid an error. */
19110/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19111 builtin and then its argument prototype would still apply. */
19112char pthread_attr_setschedparam();
19113
19114int main() {
19115
009fead0
VZ
19116/* The GNU C library defines this for functions which it implements
19117 to always fail with ENOSYS. Some functions are actually named
19118 something starting with __ and the normal name is an alias. */
19119#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19120choke me
19121#else
a0b9e27f 19122pthread_attr_setschedparam();
009fead0
VZ
19123#endif
19124
a0b9e27f
MB
19125; return 0; }
19126EOF
e5a87141 19127if { (eval echo configure:19128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19128 rm -rf conftest*
19129 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19130else
19131 echo "configure: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 rm -rf conftest*
19134 eval "ac_cv_func_pthread_attr_setschedparam=no"
19135fi
19136rm -f conftest*
19137fi
19138
19139if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19140 echo "$ac_t""yes" 1>&6
19141 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
e5a87141 19142echo "configure:19143: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19143if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
19145else
19146 cat > conftest.$ac_ext <<EOF
e5a87141 19147#line 19148 "configure"
422107f9 19148#include "confdefs.h"
009fead0
VZ
19149/* System header to define __stub macros and hopefully few prototypes
19150else
a0b9e27f
MB
19151 echo "$ac_t""no" 1>&6
19152which can conflict with char sched_get_priority_max(); below. */
009fead0 19153#include <assert.h>
4f14bcd8
GD
19154/* Override any gcc2 internal prototype to avoid an error. */
19155/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19156 builtin and then its argument prototype would still apply. */
19157char sched_get_priority_max();
19158
19159int main() {
19160
009fead0
VZ
19161/* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19165choke me
19166#else
a0b9e27f 19167sched_get_priority_max();
009fead0
VZ
19168#endif
19169
a0b9e27f
MB
19170; return 0; }
19171EOF
e5a87141 19172if { (eval echo configure:19173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19173 rm -rf conftest*
19174 eval "ac_cv_func_sched_get_priority_max=yes"
19175else
19176 echo "configure: failed program was:" >&5
19177 cat conftest.$ac_ext >&5
19178 rm -rf conftest*
19179 eval "ac_cv_func_sched_get_priority_max=no"
19180fi
19181rm -f conftest*
19182fi
19183
19184if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19185 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19186 HAVE_PRIOR_FUNCS=1
19187else
a0b9e27f
MB
19188 echo "$ac_t""no" 1>&6
19189echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
e5a87141 19190echo "configure:19191: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19191ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19192if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19193 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19194else
a0b9e27f 19195 ac_save_LIBS="$LIBS"
4f14bcd8 19196LIBS="-lposix4 $LIBS"
a0b9e27f 19197cat > conftest.$ac_ext <<EOF
e5a87141 19198#line 19199 "configure"
422107f9
VZ
19199#include "confdefs.h"
19200/* Override any gcc2 internal prototype to avoid an error. */
19201/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19202 builtin and then its argument prototype would still apply. */
19203char sched_get_priority_max();
19204
19205int main() {
19206sched_get_priority_max()
19207; return 0; }
19208EOF
e5a87141 19209if { (eval echo configure:19210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19210 rm -rf conftest*
19211 eval "ac_cv_lib_$ac_lib_var=yes"
19212else
19213 echo "configure: failed program was:" >&5
19214 cat conftest.$ac_ext >&5
19215 rm -rf conftest*
19216 eval "ac_cv_lib_$ac_lib_var=no"
19217fi
19218rm -f conftest*
19219LIBS="$ac_save_LIBS"
698dcdb6 19220
a0b9e27f
MB
19221fi
19222if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19223 echo "$ac_t""yes" 1>&6
19224
7274f1c7
RL
19225 HAVE_PRIOR_FUNCS=1
19226 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19227
19228else
19229 echo "$ac_t""no" 1>&6
4f14bcd8 19230fi
463abc64 19231
a0b9e27f 19232
328a083c 19233fi
463abc64 19234
a0b9e27f
MB
19235
19236else
19237 echo "$ac_t""no" 1>&6
7b4a847f 19238fi
579d8138 19239
a0b9e27f 19240
5c6fa7d2 19241fi
52127426 19242
8284b0c5 19243
7274f1c7 19244 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19245 cat >> confdefs.h <<\EOF
4f14bcd8 19246#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19247EOF
463abc64 19248
7274f1c7 19249 else
a0b9e27f 19250 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19251 fi
463abc64 19252
a0b9e27f 19253 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
e5a87141 19254echo "configure:19255: checking for pthread_cancel" >&5
a0b9e27f
MB
19255if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19256 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19257else
a0b9e27f 19258 cat > conftest.$ac_ext <<EOF
e5a87141 19259#line 19260 "configure"
422107f9 19260#include "confdefs.h"
009fead0 19261/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19262 which can conflict with char pthread_cancel(); below. */
009fead0 19263#include <assert.h>
422107f9
VZ
19264/* Override any gcc2 internal prototype to avoid an error. */
19265/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19266 builtin and then its argument prototype would still apply. */
19267char pthread_cancel();
19268
19269int main() {
19270
009fead0
VZ
19271/* The GNU C library defines this for functions which it implements
19272 to always fail with ENOSYS. Some functions are actually named
19273 something starting with __ and the normal name is an alias. */
19274#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19275choke me
19276#else
a0b9e27f 19277pthread_cancel();
009fead0
VZ
19278#endif
19279
a0b9e27f
MB
19280; return 0; }
19281EOF
e5a87141 19282if { (eval echo configure:19283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19283 rm -rf conftest*
19284 eval "ac_cv_func_pthread_cancel=yes"
19285else
19286 echo "configure: failed program was:" >&5
19287 cat conftest.$ac_ext >&5
19288 rm -rf conftest*
19289 eval "ac_cv_func_pthread_cancel=no"
19290fi
19291rm -f conftest*
19292fi
19293
19294if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19295 echo "$ac_t""yes" 1>&6
19296 cat >> confdefs.h <<\EOF
4f14bcd8 19297#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19298EOF
4f14bcd8 19299
698dcdb6 19300else
a0b9e27f
MB
19301 echo "$ac_t""no" 1>&6
19302echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19303fi
19304
5c6fa7d2 19305
a0b9e27f 19306 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
e5a87141 19307echo "configure:19308: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19308if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19309 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19310else
a0b9e27f
MB
19311
19312 cat > conftest.$ac_ext <<EOF
e5a87141 19313#line 19314 "configure"
4f14bcd8
GD
19314#include "confdefs.h"
19315#include <pthread.h>
a0b9e27f 19316int main() {
4f14bcd8 19317
7274f1c7
RL
19318 pthread_cleanup_push(NULL, NULL);
19319 pthread_cleanup_pop(0);
a0b9e27f
MB
19320
19321; return 0; }
19322EOF
e5a87141 19323if { (eval echo configure:19324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19324 rm -rf conftest*
19325
7274f1c7 19326 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19327
4f14bcd8 19328else
a0b9e27f
MB
19329 echo "configure: failed program was:" >&5
19330 cat conftest.$ac_ext >&5
19331 rm -rf conftest*
19332
7274f1c7 19333 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19334
5c6fa7d2 19335fi
a0b9e27f
MB
19336rm -f conftest*
19337
247f5006 19338fi
a0b9e27f
MB
19339
19340echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19341
7274f1c7 19342 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19343 cat >> confdefs.h <<\EOF
4f14bcd8 19344#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19345EOF
c7a2bf27 19346
7274f1c7 19347 fi
4f14bcd8 19348
a0b9e27f
MB
19349
19350 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
e5a87141 19351echo "configure:19352: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19352if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19353 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19354else
a0b9e27f
MB
19355
19356 cat > conftest.$ac_ext <<EOF
e5a87141 19357#line 19358 "configure"
0dcf9893 19358#include "confdefs.h"
4f14bcd8 19359#include <pthread.h>
a0b9e27f 19360int main() {
4f14bcd8 19361
7274f1c7
RL
19362 pthread_mutexattr_t attr;
19363 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19364
19365; return 0; }
19366EOF
e5a87141 19367if { (eval echo configure:19368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19368 rm -rf conftest*
19369
7274f1c7 19370 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19371
3fed1840 19372else
a0b9e27f
MB
19373 echo "configure: failed program was:" >&5
19374 cat conftest.$ac_ext >&5
19375 rm -rf conftest*
19376
7274f1c7 19377 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19378
19379
5c6fa7d2 19380fi
a0b9e27f
MB
19381rm -f conftest*
19382
247f5006 19383fi
a0b9e27f
MB
19384
19385echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19386
7274f1c7 19387 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19388 cat >> confdefs.h <<\EOF
4f14bcd8 19389#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19390EOF
4f14bcd8 19391
7274f1c7 19392 else
a0b9e27f 19393 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
e5a87141 19394echo "configure:19395: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19395if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19396 echo $ac_n "(cached) $ac_c" 1>&6
19397else
19398
19399 cat > conftest.$ac_ext <<EOF
e5a87141 19400#line 19401 "configure"
3fed1840 19401#include "confdefs.h"
4f14bcd8 19402#include <pthread.h>
a0b9e27f 19403int main() {
4f14bcd8 19404
7274f1c7 19405 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19406
19407; return 0; }
19408EOF
e5a87141 19409if { (eval echo configure:19410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19410 rm -rf conftest*
19411
7274f1c7 19412 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19413
698dcdb6 19414else
a0b9e27f
MB
19415 echo "configure: failed program was:" >&5
19416 cat conftest.$ac_ext >&5
19417 rm -rf conftest*
19418
7274f1c7 19419 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19420
19421
5c6fa7d2 19422fi
a0b9e27f
MB
19423rm -f conftest*
19424
247f5006 19425fi
a0b9e27f
MB
19426
19427echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19428 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19429 cat >> confdefs.h <<\EOF
4f14bcd8 19430#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19431EOF
3fed1840 19432
7274f1c7 19433 else
a0b9e27f 19434 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19435 fi
19436 fi
7274f1c7 19437 fi
3fed1840 19438
a0b9e27f
MB
19439else
19440 if test "$wxUSE_THREADS" = "yes" ; then
19441 case "${host}" in
19442 *-*-mingw32* )
ca8e52b3 19443 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
e5a87141 19444echo "configure:19445: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19445if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19446 echo $ac_n "(cached) $ac_c" 1>&6
19447else
19448
19449 CFLAGS_OLD="$CFLAGS"
19450 CFLAGS="$CFLAGS -mthreads"
19451 cat > conftest.$ac_ext <<EOF
e5a87141 19452#line 19453 "configure"
ca8e52b3
VZ
19453#include "confdefs.h"
19454
19455int main() {
19456
19457; return 0; }
19458EOF
e5a87141 19459if { (eval echo configure:19460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19460 rm -rf conftest*
19461 wx_cv_cflags_mthread=yes
19462else
19463 echo "configure: failed program was:" >&5
19464 cat conftest.$ac_ext >&5
19465 rm -rf conftest*
19466 wx_cv_cflags_mthread=no
19467
19468fi
19469rm -f conftest*
19470
19471
19472fi
19473
19474echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19475
19476 if test "$wx_cv_cflags_mthread" = "yes"; then
19477 CXXFLAGS="$CXXFLAGS -mthreads"
19478 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19479 LDFLAGS="$LDFLAGS -mthreads"
19480 else
19481 CFLAGS="$CFLAGS_OLD"
19482 fi
a0b9e27f
MB
19483 ;;
19484 esac
19485 fi
4f14bcd8
GD
19486fi
19487
19488if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19489 cat >> confdefs.h <<\EOF
4f14bcd8 19490#define wxUSE_THREADS 1
a0b9e27f 19491EOF
7b6058cd 19492
8284b0c5 19493
4f14bcd8 19494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19495else
4f14bcd8 19496 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19497 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
e5a87141 19498echo "configure:19499: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19499 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19500 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19501 echo "$ac_t""yes" 1>&6
4f14bcd8 19502 else
a0b9e27f 19503 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19504 fi
19505 fi
19506fi
19507
19508if test "$WXGTK20" = 1 ; then
a0b9e27f 19509 cat >> confdefs.h <<EOF
4f14bcd8 19510#define __WXGTK20__ $WXGTK20
a0b9e27f 19511EOF
4f14bcd8
GD
19512
19513 WXGTK12=1
10f2d63a 19514fi
4f14bcd8
GD
19515
19516if test "$WXGTK12" = 1 ; then
a0b9e27f 19517 cat >> confdefs.h <<EOF
4f14bcd8 19518#define __WXGTK12__ $WXGTK12
a0b9e27f 19519EOF
4f14bcd8 19520
10f2d63a 19521fi
698dcdb6 19522
4f14bcd8 19523if test "$WXGTK127" = 1 ; then
a0b9e27f 19524 cat >> confdefs.h <<EOF
4f14bcd8 19525#define __WXGTK127__ $WXGTK127
a0b9e27f 19526EOF
4f14bcd8 19527
698dcdb6 19528fi
10f2d63a 19529
4f14bcd8
GD
19530WXDEBUG=
19531
19532if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19533 WXDEBUG="-g"
19534 wxUSE_OPTIMISE=no
698dcdb6 19535fi
4f14bcd8
GD
19536
19537if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19538 wxUSE_DEBUG_INFO=yes
19539 WXDEBUG="-ggdb"
10f2d63a
VZ
19540fi
19541
4f14bcd8 19542if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19543 cat >> confdefs.h <<\EOF
4f14bcd8 19544#define WXDEBUG 1
a0b9e27f 19545EOF
4f14bcd8
GD
19546
19547 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19548else
4f14bcd8
GD
19549 if test "$wxUSE_GTK" = 1 ; then
19550 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19551 fi
19552fi
19553
19554if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19555 cat >> confdefs.h <<\EOF
4f14bcd8 19556#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19557EOF
4f14bcd8 19558
a0b9e27f 19559 cat >> confdefs.h <<\EOF
4f14bcd8 19560#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19561EOF
4f14bcd8 19562
a0b9e27f 19563 cat >> confdefs.h <<\EOF
4f14bcd8 19564#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19565EOF
4f14bcd8
GD
19566
19567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19568fi
19569
19570if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19571 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19572fi
19573
19574PROFILE=
19575if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19576 PROFILE=" -pg"
10f2d63a
VZ
19577fi
19578
009fead0
VZ
19579CODE_GEN_FLAGS=
19580CODE_GEN_FLAGS_CXX=
88e30f2b 19581if test "$GCC" = "yes" ; then
4f14bcd8
GD
19582 if test "$wxUSE_NO_RTTI" = "yes" ; then
19583 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19584 fi
4f14bcd8
GD
19585 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19586 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19587 fi
19588 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19589 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19590 fi
4f14bcd8
GD
19591 if test "$USE_WIN32" = 1 ; then
19592 # I'm not even really sure what this was ever added to solve,
19593 # but someone added it for mingw native builds, so I guess
19594 # they had a reason, right??
19595 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19596 fi
1d1b75ac 19597
2b5f62a0 19598 case "${host}" in
1d1b75ac
VZ
19599 powerpc*-*-aix* )
19600 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19601 ;;
2b5f62a0
VZ
19602 *-hppa* )
19603 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19604 ;;
1d1b75ac 19605 esac
4f14bcd8
GD
19606fi
19607
af7b5345 19608OPTIMISE=
4f14bcd8 19609if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19610 if test "$GCC" = yes ; then
19611 OPTIMISE="-O0"
19612 fi
4f14bcd8
GD
19613else
19614 if test "$GCC" = yes ; then
19615 OPTIMISE="-O2"
af7b5345
VZ
19616
19617 case "${host}" in
4f14bcd8
GD
19618 i586-*-*|i686-*-* )
19619 OPTIMISE="${OPTIMISE} "
19620 ;;
19621 esac
19622 else
19623 OPTIMISE="-O"
19624 fi
19625fi
19626
8d90d2f2 19627
4f14bcd8 19628if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19629 cat >> confdefs.h <<\EOF
4f14bcd8 19630#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19631EOF
4f14bcd8 19632
8284b0c5 19633
4f14bcd8
GD
19634 WXWIN_COMPATIBILITY_2_2="yes"
19635fi
19636
65d8ef1e 19637if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19638 cat >> confdefs.h <<\EOF
4f14bcd8 19639#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19640EOF
4f14bcd8 19641
8d90d2f2
VZ
19642
19643 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19644fi
19645
65d8ef1e
VS
19646if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19647 cat >> confdefs.h <<\EOF
19648#define WXWIN_COMPATIBILITY_2_4 1
19649EOF
19650
19651fi
19652
8284b0c5 19653
10f2d63a 19654if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19655 cat >> confdefs.h <<\EOF
10f2d63a 19656#define wxUSE_GUI 1
a0b9e27f 19657EOF
10f2d63a 19658
8284b0c5 19659
10f2d63a 19660 else
a0b9e27f 19661 cat >> confdefs.h <<\EOF
10f2d63a 19662#define wxUSE_NOGUI 1
a0b9e27f 19663EOF
10f2d63a
VZ
19664
19665fi
19666
8284b0c5 19667
10f2d63a 19668if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19669 cat >> confdefs.h <<\EOF
10f2d63a 19670#define wxUSE_UNIX 1
a0b9e27f 19671EOF
10f2d63a
VZ
19672
19673fi
19674
8284b0c5 19675
10f2d63a 19676if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19677 cat >> confdefs.h <<\EOF
10f2d63a 19678#define wxUSE_APPLE_IEEE 1
a0b9e27f 19679EOF
10f2d63a
VZ
19680
19681fi
19682
1e6feb95 19683if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19684 cat >> confdefs.h <<\EOF
1e6feb95 19685#define wxUSE_TIMER 1
a0b9e27f 19686EOF
1e6feb95
VZ
19687
19688fi
19689
10f2d63a 19690if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19691 cat >> confdefs.h <<\EOF
10f2d63a 19692#define wxUSE_WAVE 1
a0b9e27f 19693EOF
10f2d63a
VZ
19694
19695fi
19696
1e6feb95 19697if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19698 cat >> confdefs.h <<\EOF
1e6feb95 19699#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19700EOF
1e6feb95
VZ
19701
19702fi
19703
19704if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19705 cat >> confdefs.h <<\EOF
1e6feb95 19706#define wxUSE_STOPWATCH 1
a0b9e27f 19707EOF
1e6feb95
VZ
19708
19709fi
19710
19711if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19712 cat >> confdefs.h <<\EOF
1e6feb95 19713#define wxUSE_DATETIME 1
a0b9e27f 19714EOF
1e6feb95
VZ
19715
19716fi
19717
10f2d63a 19718if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19719 cat >> confdefs.h <<\EOF
10f2d63a 19720#define wxUSE_FILE 1
a0b9e27f 19721EOF
10f2d63a
VZ
19722
19723fi
19724
1e6feb95 19725if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19726 cat >> confdefs.h <<\EOF
1e6feb95 19727#define wxUSE_FFILE 1
a0b9e27f 19728EOF
1e6feb95
VZ
19729
19730fi
19731
24528b0c 19732if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19733 cat >> confdefs.h <<\EOF
24528b0c 19734#define wxUSE_FILESYSTEM 1
a0b9e27f 19735EOF
24528b0c
VS
19736
19737fi
19738
10f2d63a 19739if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19740 cat >> confdefs.h <<\EOF
10f2d63a 19741#define wxUSE_FS_INET 1
a0b9e27f 19742EOF
10f2d63a
VZ
19743
19744fi
19745
19746if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19747 cat >> confdefs.h <<\EOF
10f2d63a 19748#define wxUSE_FS_ZIP 1
a0b9e27f 19749EOF
10f2d63a
VZ
19750
19751fi
19752
19753if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19754 cat >> confdefs.h <<\EOF
10f2d63a 19755#define wxUSE_ZIPSTREAM 1
a0b9e27f 19756EOF
10f2d63a
VZ
19757
19758fi
19759
eb4efbdc 19760if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19761 cat >> confdefs.h <<\EOF
eb4efbdc 19762#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19763EOF
eb4efbdc
VZ
19764
19765fi
19766
4f3c5f06 19767if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19768 cat >> confdefs.h <<\EOF
4f3c5f06 19769#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19770EOF
4f3c5f06
VZ
19771
19772fi
19773
10f2d63a 19774if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19775 cat >> confdefs.h <<\EOF
10f2d63a 19776#define wxUSE_BUSYINFO 1
a0b9e27f 19777EOF
10f2d63a
VZ
19778
19779fi
19780
19781if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19782 cat >> confdefs.h <<\EOF
10f2d63a 19783#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19784EOF
10f2d63a
VZ
19785
19786fi
19787
a3a584a7 19788if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19789 cat >> confdefs.h <<\EOF
a3a584a7 19790#define wxUSE_TEXTBUFFER 1
a0b9e27f 19791EOF
a3a584a7
VZ
19792
19793fi
19794
10f2d63a 19795if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19796 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19797 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19798 else
a0b9e27f 19799 cat >> confdefs.h <<\EOF
10f2d63a 19800#define wxUSE_TEXTFILE 1
a0b9e27f 19801EOF
10f2d63a
VZ
19802
19803 fi
19804fi
19805
19806if test "$wxUSE_CONFIG" = "yes" ; then
19807 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19808 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19809 else
a0b9e27f 19810 cat >> confdefs.h <<\EOF
10f2d63a 19811#define wxUSE_CONFIG 1
a0b9e27f 19812EOF
10f2d63a
VZ
19813
19814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19815 fi
19816fi
19817
19818if test "$wxUSE_INTL" = "yes" ; then
19819 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19820 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19821 else
a0b9e27f 19822 cat >> confdefs.h <<\EOF
10f2d63a 19823#define wxUSE_INTL 1
a0b9e27f 19824EOF
10f2d63a
VZ
19825
19826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19827 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19828 fi
19829fi
19830
19831if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19832 cat >> confdefs.h <<\EOF
10f2d63a 19833#define wxUSE_LOG 1
a0b9e27f 19834EOF
10f2d63a 19835
8284b0c5 19836
d73be714 19837 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19838 cat >> confdefs.h <<\EOF
d73be714 19839#define wxUSE_LOGGUI 1
a0b9e27f 19840EOF
d73be714
VZ
19841
19842 fi
19843
19844 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19845 cat >> confdefs.h <<\EOF
d73be714 19846#define wxUSE_LOGWINDOW 1
a0b9e27f 19847EOF
69d27ff7
MB
19848
19849 fi
19850
19851 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19852 cat >> confdefs.h <<\EOF
69d27ff7 19853#define wxUSE_LOG_DIALOG 1
a0b9e27f 19854EOF
d73be714
VZ
19855
19856 fi
10f2d63a
VZ
19857fi
19858
19859if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19860 cat >> confdefs.h <<\EOF
10f2d63a 19861#define wxUSE_LONGLONG 1
a0b9e27f 19862EOF
10f2d63a
VZ
19863
19864fi
19865
e8f65ba6 19866if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19867 cat >> confdefs.h <<\EOF
e8f65ba6 19868#define wxUSE_GEOMETRY 1
a0b9e27f 19869EOF
e8f65ba6
RR
19870
19871fi
19872
10f2d63a 19873if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19874 cat >> confdefs.h <<\EOF
10f2d63a 19875#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19876EOF
10f2d63a 19877
70f7a477 19878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19879fi
19880
19881if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19882 cat >> confdefs.h <<\EOF
10f2d63a 19883#define wxUSE_STREAMS 1
a0b9e27f 19884EOF
10f2d63a
VZ
19885
19886fi
19887
5c6fa7d2 19888
8284b0c5 19889if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19890 for ac_func in strptime
83307f33 19891do
a0b9e27f 19892echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 19893echo "configure:19894: checking for $ac_func" >&5
a0b9e27f
MB
19894if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19895 echo $ac_n "(cached) $ac_c" 1>&6
19896else
19897 cat > conftest.$ac_ext <<EOF
e5a87141 19898#line 19899 "configure"
83307f33
VZ
19899#include "confdefs.h"
19900/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19901 which can conflict with char $ac_func(); below. */
83307f33
VZ
19902#include <assert.h>
19903/* Override any gcc2 internal prototype to avoid an error. */
19904/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19905 builtin and then its argument prototype would still apply. */
19906char $ac_func();
19907
19908int main() {
19909
83307f33
VZ
19910/* The GNU C library defines this for functions which it implements
19911 to always fail with ENOSYS. Some functions are actually named
19912 something starting with __ and the normal name is an alias. */
19913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19914choke me
19915#else
a0b9e27f 19916$ac_func();
83307f33
VZ
19917#endif
19918
a0b9e27f
MB
19919; return 0; }
19920EOF
e5a87141 19921if { (eval echo configure:19922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19922 rm -rf conftest*
19923 eval "ac_cv_func_$ac_func=yes"
19924else
19925 echo "configure: failed program was:" >&5
19926 cat conftest.$ac_ext >&5
19927 rm -rf conftest*
19928 eval "ac_cv_func_$ac_func=no"
19929fi
19930rm -f conftest*
19931fi
83307f33 19932
a0b9e27f
MB
19933if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19934 echo "$ac_t""yes" 1>&6
19935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19936 cat >> confdefs.h <<EOF
19937#define $ac_tr_func 1
19938EOF
19939
19940else
19941 echo "$ac_t""no" 1>&6
83307f33
VZ
19942fi
19943done
19944
5c6fa7d2 19945
a0b9e27f 19946 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
e5a87141 19947echo "configure:19948: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19948if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19949 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19950else
a0b9e27f
MB
19951
19952 cat > conftest.$ac_ext <<EOF
e5a87141 19953#line 19954 "configure"
360d6699
VZ
19954#include "confdefs.h"
19955
b4085ce6 19956 #include <time.h>
a0b9e27f
MB
19957
19958int main() {
360d6699
VZ
19959
19960 int tz;
4f11a343 19961 tz = timezone;
a0b9e27f
MB
19962
19963; return 0; }
19964EOF
e5a87141 19965if { (eval echo configure:19966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19966 rm -rf conftest*
19967
4f11a343 19968 wx_cv_var_timezone=timezone
a0b9e27f 19969
360d6699 19970else
a0b9e27f
MB
19971 echo "configure: failed program was:" >&5
19972 cat conftest.$ac_ext >&5
19973 rm -rf conftest*
19974
19975 cat > conftest.$ac_ext <<EOF
e5a87141 19976#line 19977 "configure"
360d6699
VZ
19977#include "confdefs.h"
19978
b4085ce6 19979 #include <time.h>
a0b9e27f
MB
19980
19981int main() {
360d6699
VZ
19982
19983 int tz;
19984 tz = _timezone;
a0b9e27f
MB
19985
19986; return 0; }
19987EOF
e5a87141 19988if { (eval echo configure:19989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19989 rm -rf conftest*
19990
360d6699 19991 wx_cv_var_timezone=_timezone
a0b9e27f 19992
5357c8e8 19993else
a0b9e27f
MB
19994 echo "configure: failed program was:" >&5
19995 cat conftest.$ac_ext >&5
19996 rm -rf conftest*
19997
19998 cat > conftest.$ac_ext <<EOF
e5a87141 19999#line 20000 "configure"
5357c8e8
VZ
20000#include "confdefs.h"
20001
b4085ce6 20002 #include <time.h>
a0b9e27f
MB
20003
20004int main() {
5357c8e8
VZ
20005
20006 int tz;
4f11a343 20007 tz = __timezone;
a0b9e27f
MB
20008
20009; return 0; }
20010EOF
e5a87141 20011if { (eval echo configure:20012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20012 rm -rf conftest*
20013
4f11a343 20014 wx_cv_var_timezone=__timezone
a0b9e27f 20015
360d6699 20016else
a0b9e27f
MB
20017 echo "configure: failed program was:" >&5
20018 cat conftest.$ac_ext >&5
20019 rm -rf conftest*
20020
f9bc1684 20021 if test "$USE_DOS" = 0 ; then
a0b9e27f 20022 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 20023 fi
a0b9e27f
MB
20024
20025
328a083c 20026fi
a0b9e27f
MB
20027rm -f conftest*
20028
20029
7b4a847f 20030fi
a0b9e27f
MB
20031rm -f conftest*
20032
20033
5c6fa7d2 20034fi
a0b9e27f
MB
20035rm -f conftest*
20036
20037
247f5006 20038fi
a0b9e27f
MB
20039
20040echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 20041
f9bc1684 20042 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 20043 cat >> confdefs.h <<EOF
360d6699 20044#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 20045EOF
360d6699 20046
f9bc1684 20047 fi
698dcdb6 20048
a0b9e27f 20049 for ac_func in localtime
afc31813 20050do
a0b9e27f 20051echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 20052echo "configure:20053: checking for $ac_func" >&5
a0b9e27f
MB
20053if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20054 echo $ac_n "(cached) $ac_c" 1>&6
20055else
20056 cat > conftest.$ac_ext <<EOF
e5a87141 20057#line 20058 "configure"
10f2d63a 20058#include "confdefs.h"
afc31813 20059/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20060 which can conflict with char $ac_func(); below. */
afc31813
VZ
20061#include <assert.h>
20062/* Override any gcc2 internal prototype to avoid an error. */
20063/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20064 builtin and then its argument prototype would still apply. */
20065char $ac_func();
20066
20067int main() {
20068
afc31813
VZ
20069/* The GNU C library defines this for functions which it implements
20070 to always fail with ENOSYS. Some functions are actually named
20071 something starting with __ and the normal name is an alias. */
20072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20073choke me
20074#else
a0b9e27f 20075$ac_func();
afc31813
VZ
20076#endif
20077
a0b9e27f
MB
20078; return 0; }
20079EOF
e5a87141 20080if { (eval echo configure:20081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20081 rm -rf conftest*
20082 eval "ac_cv_func_$ac_func=yes"
20083else
20084 echo "configure: failed program was:" >&5
20085 cat conftest.$ac_ext >&5
20086 rm -rf conftest*
20087 eval "ac_cv_func_$ac_func=no"
20088fi
20089rm -f conftest*
20090fi
afc31813 20091
a0b9e27f
MB
20092if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20093 echo "$ac_t""yes" 1>&6
20094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20095 cat >> confdefs.h <<EOF
20096#define $ac_tr_func 1
20097EOF
20098
20099else
20100 echo "$ac_t""no" 1>&6
afc31813
VZ
20101fi
20102done
20103
5c6fa7d2 20104
8284b0c5 20105 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20106 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
e5a87141 20107echo "configure:20108: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20108if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20109 echo $ac_n "(cached) $ac_c" 1>&6
20110else
20111
20112 cat > conftest.$ac_ext <<EOF
e5a87141 20113#line 20114 "configure"
0470b1e6
VZ
20114#include "confdefs.h"
20115
b4085ce6 20116 #include <time.h>
a0b9e27f
MB
20117
20118int main() {
0470b1e6
VZ
20119
20120 struct tm tm;
20121 tm.tm_gmtoff++;
a0b9e27f
MB
20122
20123; return 0; }
20124EOF
e5a87141 20125if { (eval echo configure:20126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20126 rm -rf conftest*
20127
f03a98d8 20128 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20129
0470b1e6 20130else
a0b9e27f
MB
20131 echo "configure: failed program was:" >&5
20132 cat conftest.$ac_ext >&5
20133 rm -rf conftest*
20134 wx_cv_struct_tm_has_gmtoff=no
20135
5c6fa7d2 20136fi
a0b9e27f
MB
20137rm -f conftest*
20138
247f5006 20139fi
a0b9e27f
MB
20140
20141echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20142 fi
20143
20144 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20145 cat >> confdefs.h <<\EOF
6232543b 20146#define WX_GMTOFF_IN_TM 1
a0b9e27f 20147EOF
0470b1e6 20148
3fcdd07b
VZ
20149 fi
20150
a0b9e27f 20151 for ac_func in gettimeofday ftime
3fcdd07b 20152do
a0b9e27f 20153echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 20154echo "configure:20155: checking for $ac_func" >&5
a0b9e27f
MB
20155if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20157else
20158 cat > conftest.$ac_ext <<EOF
e5a87141 20159#line 20160 "configure"
3fcdd07b
VZ
20160#include "confdefs.h"
20161/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20162 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20163#include <assert.h>
20164/* Override any gcc2 internal prototype to avoid an error. */
20165/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20166 builtin and then its argument prototype would still apply. */
20167char $ac_func();
20168
20169int main() {
20170
3fcdd07b
VZ
20171/* The GNU C library defines this for functions which it implements
20172 to always fail with ENOSYS. Some functions are actually named
20173 something starting with __ and the normal name is an alias. */
20174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20175choke me
20176#else
a0b9e27f 20177$ac_func();
3fcdd07b
VZ
20178#endif
20179
a0b9e27f
MB
20180; return 0; }
20181EOF
e5a87141 20182if { (eval echo configure:20183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20183 rm -rf conftest*
20184 eval "ac_cv_func_$ac_func=yes"
20185else
20186 echo "configure: failed program was:" >&5
20187 cat conftest.$ac_ext >&5
20188 rm -rf conftest*
20189 eval "ac_cv_func_$ac_func=no"
20190fi
20191rm -f conftest*
20192fi
20193
20194if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20195 echo "$ac_t""yes" 1>&6
20196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20197 cat >> confdefs.h <<EOF
20198#define $ac_tr_func 1
20199EOF
3fcdd07b 20200 break
a0b9e27f
MB
20201else
20202 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20203fi
20204done
20205
698dcdb6 20206
8284b0c5 20207 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20208 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
e5a87141 20209echo "configure:20210: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20210if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20211 echo $ac_n "(cached) $ac_c" 1>&6
20212else
20213
20214
20215 ac_ext=C
20216# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20217ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20218ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20219ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20220cross_compiling=$ac_cv_prog_cxx_cross
52127426 20221
8284b0c5 20222
a0b9e27f 20223 cat > conftest.$ac_ext <<EOF
e5a87141 20224#line 20225 "configure"
10f2d63a 20225#include "confdefs.h"
afc31813
VZ
20226
20227 #include <sys/time.h>
20228 #include <unistd.h>
a0b9e27f
MB
20229
20230int main() {
afc31813
VZ
20231
20232 struct timeval tv;
776862b4 20233 gettimeofday(&tv, NULL);
a0b9e27f
MB
20234
20235; return 0; }
20236EOF
e5a87141 20237if { (eval echo configure:20238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20238 rm -rf conftest*
afc31813 20239 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20240else
a0b9e27f
MB
20241 echo "configure: failed program was:" >&5
20242 cat conftest.$ac_ext >&5
20243 rm -rf conftest*
20244 cat > conftest.$ac_ext <<EOF
e5a87141 20245#line 20246 "configure"
10f2d63a 20246#include "confdefs.h"
afc31813
VZ
20247
20248 #include <sys/time.h>
20249 #include <unistd.h>
a0b9e27f
MB
20250
20251int main() {
afc31813
VZ
20252
20253 struct timeval tv;
20254 gettimeofday(&tv);
a0b9e27f
MB
20255
20256; return 0; }
20257EOF
e5a87141 20258if { (eval echo configure:20259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20259 rm -rf conftest*
afc31813 20260 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20261else
a0b9e27f
MB
20262 echo "configure: failed program was:" >&5
20263 cat conftest.$ac_ext >&5
20264 rm -rf conftest*
20265
20266 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20267 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20268
20269
10f2d63a 20270fi
a0b9e27f
MB
20271rm -f conftest*
20272
10f2d63a 20273fi
a0b9e27f 20274rm -f conftest*
afc31813 20275 ac_ext=c
a0b9e27f 20276# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20277ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20278ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20279ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20280cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20281
a0b9e27f 20282
247f5006 20283fi
a0b9e27f
MB
20284
20285echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20286
afc31813 20287 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20288 cat >> confdefs.h <<\EOF
afc31813 20289#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20290EOF
afc31813
VZ
20291
20292 fi
20293 fi
20294
afc31813
VZ
20295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20296fi
20297
8284b0c5 20298
52127426 20299if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20300 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20301 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20302 wxUSE_SOCKETS="no"
20303 fi
0feee163 20304fi
b089607b 20305
0feee163
VZ
20306if test "$wxUSE_SOCKETS" = "yes"; then
20307 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20308 echo $ac_n "checking for socket""... $ac_c" 1>&6
e5a87141 20309echo "configure:20310: checking for socket" >&5
a0b9e27f
MB
20310if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20311 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20312else
a0b9e27f 20313 cat > conftest.$ac_ext <<EOF
e5a87141 20314#line 20315 "configure"
c63c7106
VZ
20315#include "confdefs.h"
20316/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20317 which can conflict with char socket(); below. */
c63c7106
VZ
20318#include <assert.h>
20319/* Override any gcc2 internal prototype to avoid an error. */
20320/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20321 builtin and then its argument prototype would still apply. */
20322char socket();
20323
20324int main() {
20325
c63c7106
VZ
20326/* The GNU C library defines this for functions which it implements
20327 to always fail with ENOSYS. Some functions are actually named
20328 something starting with __ and the normal name is an alias. */
20329#if defined (__stub_socket) || defined (__stub___socket)
20330choke me
20331#else
a0b9e27f 20332socket();
c63c7106
VZ
20333#endif
20334
a0b9e27f
MB
20335; return 0; }
20336EOF
e5a87141 20337if { (eval echo configure:20338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20338 rm -rf conftest*
20339 eval "ac_cv_func_socket=yes"
20340else
20341 echo "configure: failed program was:" >&5
20342 cat conftest.$ac_ext >&5
20343 rm -rf conftest*
20344 eval "ac_cv_func_socket=no"
20345fi
20346rm -f conftest*
20347fi
20348
20349if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20350 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20351 :
20352else
a0b9e27f
MB
20353 echo "$ac_t""no" 1>&6
20354echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
e5a87141 20355echo "configure:20356: checking for socket in -lsocket" >&5
a0b9e27f
MB
20356ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20358 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20359else
a0b9e27f 20360 ac_save_LIBS="$LIBS"
c63c7106 20361LIBS="-lsocket $LIBS"
a0b9e27f 20362cat > conftest.$ac_ext <<EOF
e5a87141 20363#line 20364 "configure"
c63c7106
VZ
20364#include "confdefs.h"
20365/* Override any gcc2 internal prototype to avoid an error. */
20366/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20367 builtin and then its argument prototype would still apply. */
20368char socket();
20369
20370int main() {
20371socket()
20372; return 0; }
20373EOF
e5a87141 20374if { (eval echo configure:20375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20375 rm -rf conftest*
20376 eval "ac_cv_lib_$ac_lib_var=yes"
20377else
20378 echo "configure: failed program was:" >&5
20379 cat conftest.$ac_ext >&5
20380 rm -rf conftest*
20381 eval "ac_cv_lib_$ac_lib_var=no"
20382fi
20383rm -f conftest*
20384LIBS="$ac_save_LIBS"
20385
20386fi
20387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20388 echo "$ac_t""yes" 1>&6
d558c907
VS
20389 if test "$INET_LINK" != " -lsocket"; then
20390 INET_LINK="$INET_LINK -lsocket"
20391 fi
c63c7106 20392else
a0b9e27f 20393 echo "$ac_t""no" 1>&6
afc31813 20394
a0b9e27f 20395 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20396 wxUSE_SOCKETS=no
a0b9e27f
MB
20397
20398
6232543b 20399fi
b089607b 20400
a0b9e27f 20401
1e487827 20402fi
afc31813 20403
3a922bb4 20404 fi
0feee163 20405fi
51a9faba 20406
0feee163
VZ
20407if test "$wxUSE_SOCKETS" = "yes" ; then
20408 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20409 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
e5a87141 20410echo "configure:20411: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20411if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20412 echo $ac_n "(cached) $ac_c" 1>&6
20413else
20414
20415
20416 ac_ext=C
20417# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20418ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20419ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20420ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20421cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20422
8284b0c5 20423
a0b9e27f 20424 cat > conftest.$ac_ext <<EOF
e5a87141 20425#line 20426 "configure"
afc31813 20426#include "confdefs.h"
51a9faba 20427
3a922bb4
RL
20428 #include <sys/types.h>
20429 #include <sys/socket.h>
a0b9e27f
MB
20430
20431int main() {
51a9faba 20432
3a922bb4
RL
20433 socklen_t len;
20434 getsockname(0, 0, &len);
a0b9e27f
MB
20435
20436; return 0; }
20437EOF
e5a87141 20438if { (eval echo configure:20439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20439 rm -rf conftest*
51a9faba 20440 wx_cv_type_getsockname3=socklen_t
afc31813 20441else
a0b9e27f
MB
20442 echo "configure: failed program was:" >&5
20443 cat conftest.$ac_ext >&5
20444 rm -rf conftest*
20445 cat > conftest.$ac_ext <<EOF
e5a87141 20446#line 20447 "configure"
afc31813 20447#include "confdefs.h"
51a9faba 20448
3a922bb4
RL
20449 #include <sys/types.h>
20450 #include <sys/socket.h>
a0b9e27f
MB
20451
20452int main() {
51a9faba 20453
3a922bb4
RL
20454 size_t len;
20455 getsockname(0, 0, &len);
a0b9e27f
MB
20456
20457; return 0; }
20458EOF
e5a87141 20459if { (eval echo configure:20460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20460 rm -rf conftest*
51a9faba 20461 wx_cv_type_getsockname3=size_t
afc31813 20462else
a0b9e27f
MB
20463 echo "configure: failed program was:" >&5
20464 cat conftest.$ac_ext >&5
20465 rm -rf conftest*
20466 cat > conftest.$ac_ext <<EOF
e5a87141 20467#line 20468 "configure"
afc31813 20468#include "confdefs.h"
51a9faba 20469
3a922bb4
RL
20470 #include <sys/types.h>
20471 #include <sys/socket.h>
a0b9e27f
MB
20472
20473int main() {
51a9faba 20474
3a922bb4
RL
20475 int len;
20476 getsockname(0, 0, &len);
a0b9e27f
MB
20477
20478; return 0; }
20479EOF
e5a87141 20480if { (eval echo configure:20481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20481 rm -rf conftest*
51a9faba 20482 wx_cv_type_getsockname3=int
afc31813 20483else
a0b9e27f
MB
20484 echo "configure: failed program was:" >&5
20485 cat conftest.$ac_ext >&5
20486 rm -rf conftest*
20487 wx_cv_type_getsockname3=unknown
20488
afc31813 20489fi
a0b9e27f
MB
20490rm -f conftest*
20491
afc31813 20492fi
a0b9e27f
MB
20493rm -f conftest*
20494
afc31813 20495fi
a0b9e27f 20496rm -f conftest*
51a9faba 20497
3a922bb4 20498 ac_ext=c
a0b9e27f 20499# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20500ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20501ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20502ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20503cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20504
a0b9e27f 20505
247f5006 20506fi
a0b9e27f
MB
20507
20508echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20509
3a922bb4
RL
20510 if test "$wx_cv_type_getsockname3" = "unknown"; then
20511 wxUSE_SOCKETS=no
a0b9e27f 20512 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20513 else
a0b9e27f 20514 cat >> confdefs.h <<EOF
51a9faba 20515#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20516EOF
51a9faba 20517
3a922bb4 20518 fi
51a9faba
VZ
20519 fi
20520fi
afc31813 20521
51a9faba 20522if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20523 cat >> confdefs.h <<\EOF
afc31813 20524#define wxUSE_SOCKETS 1
a0b9e27f 20525EOF
afc31813 20526
70f7a477 20527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20528fi
20529
8284b0c5 20530
dc3d889d
VZ
20531if test "$wxUSE_GUI" = "yes"; then
20532
ac0c4cc3 20533 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20534 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20535 wxUSE_JOYSTICK=no
20536 fi
20537 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20538 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20539 wxUSE_JOYSTICK=no
f79bd02d
JS
20540 fi
20541 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20542 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20543 wxUSE_JOYSTICK=no
156b2523
GD
20544 fi
20545
3a922bb4
RL
20546 if test "$TOOLKIT" != "MSW"; then
20547 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20548 for ac_hdr in linux/joystick.h
10f2d63a 20549do
a0b9e27f
MB
20550ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20551echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 20552echo "configure:20553: checking for $ac_hdr" >&5
a0b9e27f
MB
20553if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20554 echo $ac_n "(cached) $ac_c" 1>&6
20555else
20556 cat > conftest.$ac_ext <<EOF
e5a87141 20557#line 20558 "configure"
247f5006 20558#include "confdefs.h"
a0b9e27f
MB
20559#include <$ac_hdr>
20560EOF
20561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 20562{ (eval echo configure:20563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20563ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20564if test -z "$ac_err"; then
20565 rm -rf conftest*
20566 eval "ac_cv_header_$ac_safe=yes"
20567else
20568 echo "$ac_err" >&5
20569 echo "configure: failed program was:" >&5
247f5006 20570 cat conftest.$ac_ext >&5
a0b9e27f
MB
20571 rm -rf conftest*
20572 eval "ac_cv_header_$ac_safe=no"
247f5006 20573fi
a0b9e27f 20574rm -f conftest*
10f2d63a 20575fi
a0b9e27f
MB
20576if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20577 echo "$ac_t""yes" 1>&6
20578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20579 cat >> confdefs.h <<EOF
20580#define $ac_tr_hdr 1
20581EOF
20582
20583else
20584 echo "$ac_t""no" 1>&6
247f5006 20585fi
10f2d63a
VZ
20586done
20587
3a922bb4
RL
20588 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20589 wxUSE_JOYSTICK=no
a0b9e27f 20590 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20591 fi
20592 fi
20593 fi
b089607b 20594
3a922bb4 20595 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20596 cat >> confdefs.h <<\EOF
10f2d63a 20597#define wxUSE_JOYSTICK 1
a0b9e27f 20598EOF
10f2d63a 20599
3a922bb4
RL
20600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20601 fi
dc3d889d
VZ
20602fi
20603
8284b0c5 20604
b089607b
VZ
20605if test "$TOOLKIT" != "MSW"; then
20606
3a922bb4
RL
20607 HAVE_DL_FUNCS=0
20608 HAVE_SHL_FUNCS=0
0b9ab0bd 20609 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20610 if test "$USE_DARWIN" = 1; then
20611 HAVE_DL_FUNCS=1
20612 else
a0b9e27f 20613 for ac_func in dlopen
10f2d63a 20614do
a0b9e27f 20615echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 20616echo "configure:20617: checking for $ac_func" >&5
a0b9e27f
MB
20617if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20618 echo $ac_n "(cached) $ac_c" 1>&6
20619else
20620 cat > conftest.$ac_ext <<EOF
e5a87141 20621#line 20622 "configure"
10f2d63a
VZ
20622#include "confdefs.h"
20623/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20624 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20625#include <assert.h>
20626/* Override any gcc2 internal prototype to avoid an error. */
20627/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20628 builtin and then its argument prototype would still apply. */
20629char $ac_func();
20630
20631int main() {
20632
10f2d63a
VZ
20633/* The GNU C library defines this for functions which it implements
20634 to always fail with ENOSYS. Some functions are actually named
20635 something starting with __ and the normal name is an alias. */
20636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20637choke me
20638#else
a0b9e27f 20639$ac_func();
10f2d63a
VZ
20640#endif
20641
a0b9e27f
MB
20642; return 0; }
20643EOF
e5a87141 20644if { (eval echo configure:20645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20645 rm -rf conftest*
20646 eval "ac_cv_func_$ac_func=yes"
20647else
20648 echo "configure: failed program was:" >&5
20649 cat conftest.$ac_ext >&5
20650 rm -rf conftest*
20651 eval "ac_cv_func_$ac_func=no"
20652fi
20653rm -f conftest*
20654fi
20655
20656if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20657 echo "$ac_t""yes" 1>&6
20658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20659 cat >> confdefs.h <<EOF
20660#define $ac_tr_func 1
20661EOF
20662
20663 cat >> confdefs.h <<\EOF
10f2d63a 20664#define HAVE_DLOPEN 1
a0b9e27f 20665EOF
10f2d63a 20666
3a922bb4 20667 HAVE_DL_FUNCS=1
a0b9e27f 20668
10f2d63a 20669else
a0b9e27f
MB
20670 echo "$ac_t""no" 1>&6
20671echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
e5a87141 20672echo "configure:20673: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20673ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20675 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20676else
a0b9e27f 20677 ac_save_LIBS="$LIBS"
10f2d63a 20678LIBS="-ldl $LIBS"
a0b9e27f 20679cat > conftest.$ac_ext <<EOF
e5a87141 20680#line 20681 "configure"
10f2d63a
VZ
20681#include "confdefs.h"
20682/* Override any gcc2 internal prototype to avoid an error. */
20683/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20684 builtin and then its argument prototype would still apply. */
20685char dlopen();
20686
20687int main() {
20688dlopen()
20689; return 0; }
20690EOF
e5a87141 20691if { (eval echo configure:20692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20692 rm -rf conftest*
20693 eval "ac_cv_lib_$ac_lib_var=yes"
20694else
20695 echo "configure: failed program was:" >&5
20696 cat conftest.$ac_ext >&5
20697 rm -rf conftest*
20698 eval "ac_cv_lib_$ac_lib_var=no"
20699fi
20700rm -f conftest*
20701LIBS="$ac_save_LIBS"
20702
20703fi
20704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20705 echo "$ac_t""yes" 1>&6
20706
20707 cat >> confdefs.h <<\EOF
10f2d63a 20708#define HAVE_DLOPEN 1
a0b9e27f 20709EOF
10f2d63a 20710
3a922bb4 20711 HAVE_DL_FUNCS=1
3d63bc3a 20712 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20713
10f2d63a 20714else
a0b9e27f 20715 echo "$ac_t""no" 1>&6
10f2d63a 20716
a0b9e27f 20717 for ac_func in shl_load
10f2d63a 20718do
a0b9e27f 20719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 20720echo "configure:20721: checking for $ac_func" >&5
a0b9e27f
MB
20721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20722 echo $ac_n "(cached) $ac_c" 1>&6
20723else
20724 cat > conftest.$ac_ext <<EOF
e5a87141 20725#line 20726 "configure"
10f2d63a
VZ
20726#include "confdefs.h"
20727/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20728 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20729#include <assert.h>
20730/* Override any gcc2 internal prototype to avoid an error. */
20731/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20732 builtin and then its argument prototype would still apply. */
20733char $ac_func();
20734
20735int main() {
20736
10f2d63a
VZ
20737/* The GNU C library defines this for functions which it implements
20738 to always fail with ENOSYS. Some functions are actually named
20739 something starting with __ and the normal name is an alias. */
20740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20741choke me
20742#else
a0b9e27f 20743$ac_func();
10f2d63a
VZ
20744#endif
20745
a0b9e27f
MB
20746; return 0; }
20747EOF
e5a87141 20748if { (eval echo configure:20749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20749 rm -rf conftest*
20750 eval "ac_cv_func_$ac_func=yes"
20751else
20752 echo "configure: failed program was:" >&5
20753 cat conftest.$ac_ext >&5
20754 rm -rf conftest*
20755 eval "ac_cv_func_$ac_func=no"
20756fi
20757rm -f conftest*
20758fi
20759
20760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20761 echo "$ac_t""yes" 1>&6
20762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20763 cat >> confdefs.h <<EOF
20764#define $ac_tr_func 1
20765EOF
20766
20767 cat >> confdefs.h <<\EOF
10f2d63a 20768#define HAVE_SHL_LOAD 1
a0b9e27f 20769EOF
10f2d63a 20770
3a922bb4 20771 HAVE_SHL_FUNCS=1
a0b9e27f 20772
10f2d63a 20773else
a0b9e27f
MB
20774 echo "$ac_t""no" 1>&6
20775echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
e5a87141 20776echo "configure:20777: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20777ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20778if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20779 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20780else
a0b9e27f 20781 ac_save_LIBS="$LIBS"
f6bcfd97 20782LIBS="-lshl_load $LIBS"
a0b9e27f 20783cat > conftest.$ac_ext <<EOF
e5a87141 20784#line 20785 "configure"
f6bcfd97 20785#include "confdefs.h"
8284b0c5 20786/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20787/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20788 builtin and then its argument prototype would still apply. */
20789char dld();
20790
20791int main() {
20792dld()
20793; return 0; }
20794EOF
e5a87141 20795if { (eval echo configure:20796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20796 rm -rf conftest*
20797 eval "ac_cv_lib_$ac_lib_var=yes"
20798else
20799 echo "configure: failed program was:" >&5
20800 cat conftest.$ac_ext >&5
20801 rm -rf conftest*
20802 eval "ac_cv_lib_$ac_lib_var=no"
20803fi
20804rm -f conftest*
20805LIBS="$ac_save_LIBS"
f6bcfd97 20806
a0b9e27f
MB
20807fi
20808if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20809 echo "$ac_t""yes" 1>&6
20810
3a922bb4 20811 HAVE_SHL_FUNCS=1
3d63bc3a 20812 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20813
20814else
20815 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20816fi
20817
a0b9e27f 20818
10f2d63a
VZ
20819fi
20820done
20821
a0b9e27f 20822
10f2d63a
VZ
20823fi
20824
a0b9e27f 20825
10f2d63a
VZ
20826fi
20827done
20828
5c6fa7d2 20829
8284b0c5 20830 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20831 for ac_func in dlerror
f6bcfd97 20832do
a0b9e27f 20833echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 20834echo "configure:20835: checking for $ac_func" >&5
a0b9e27f
MB
20835if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20836 echo $ac_n "(cached) $ac_c" 1>&6
20837else
20838 cat > conftest.$ac_ext <<EOF
e5a87141 20839#line 20840 "configure"
f6bcfd97
BP
20840#include "confdefs.h"
20841/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20842 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20843#include <assert.h>
20844/* Override any gcc2 internal prototype to avoid an error. */
20845/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20846 builtin and then its argument prototype would still apply. */
20847char $ac_func();
20848
20849int main() {
20850
f6bcfd97
BP
20851/* The GNU C library defines this for functions which it implements
20852 to always fail with ENOSYS. Some functions are actually named
20853 something starting with __ and the normal name is an alias. */
20854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20855choke me
20856#else
a0b9e27f 20857$ac_func();
f6bcfd97
BP
20858#endif
20859
a0b9e27f
MB
20860; return 0; }
20861EOF
e5a87141 20862if { (eval echo configure:20863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20863 rm -rf conftest*
20864 eval "ac_cv_func_$ac_func=yes"
20865else
20866 echo "configure: failed program was:" >&5
20867 cat conftest.$ac_ext >&5
20868 rm -rf conftest*
20869 eval "ac_cv_func_$ac_func=no"
20870fi
20871rm -f conftest*
20872fi
20873
20874if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20875 echo "$ac_t""yes" 1>&6
20876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20877 cat >> confdefs.h <<EOF
20878#define $ac_tr_func 1
20879EOF
20880 cat >> confdefs.h <<\EOF
f6bcfd97 20881#define HAVE_DLERROR 1
a0b9e27f 20882EOF
f6bcfd97
BP
20883
20884else
a0b9e27f
MB
20885 echo "$ac_t""no" 1>&6
20886echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
e5a87141 20887echo "configure:20888: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20888ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20890 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20891else
a0b9e27f 20892 ac_save_LIBS="$LIBS"
f6bcfd97 20893LIBS="-ldl $LIBS"
a0b9e27f 20894cat > conftest.$ac_ext <<EOF
e5a87141 20895#line 20896 "configure"
f6bcfd97
BP
20896#include "confdefs.h"
20897/* Override any gcc2 internal prototype to avoid an error. */
20898/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20899 builtin and then its argument prototype would still apply. */
20900char dlerror();
20901
20902int main() {
20903dlerror()
20904; return 0; }
20905EOF
e5a87141 20906if { (eval echo configure:20907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20907 rm -rf conftest*
20908 eval "ac_cv_lib_$ac_lib_var=yes"
20909else
20910 echo "configure: failed program was:" >&5
20911 cat conftest.$ac_ext >&5
20912 rm -rf conftest*
20913 eval "ac_cv_lib_$ac_lib_var=no"
20914fi
20915rm -f conftest*
20916LIBS="$ac_save_LIBS"
20917
20918fi
20919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20920 echo "$ac_t""yes" 1>&6
20921 cat >> confdefs.h <<\EOF
f6bcfd97 20922#define HAVE_DLERROR 1
a0b9e27f 20923EOF
f6bcfd97 20924
a0b9e27f
MB
20925else
20926 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20927fi
20928
20929fi
20930done
20931
3a922bb4
RL
20932 fi
20933 fi
f6bcfd97 20934
3a922bb4
RL
20935 if test "$HAVE_DL_FUNCS" = 0; then
20936 if test "$HAVE_SHL_FUNCS" = 0; then
20937 if test "$USE_UNIX" = 1; then
a0b9e27f 20938 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20939 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20940 wxUSE_DYNLIB_CLASS=no
20941 else
a0b9e27f 20942 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20943 fi
20944 fi
10f2d63a
VZ
20945 fi
20946 fi
20947fi
20948
0b9ab0bd 20949if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20950 cat >> confdefs.h <<\EOF
0b9ab0bd 20951#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20952EOF
0b9ab0bd
RL
20953
20954elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20955 cat >> confdefs.h <<\EOF
10f2d63a 20956#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20957EOF
10f2d63a
VZ
20958
20959fi
20960
8284b0c5 20961
1e6feb95 20962if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20963 cat >> confdefs.h <<\EOF
1e6feb95 20964#define wxUSE_FONTMAP 1
a0b9e27f 20965EOF
1e6feb95
VZ
20966
20967fi
20968
10f2d63a 20969if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20970 cat >> confdefs.h <<\EOF
10f2d63a 20971#define wxUSE_UNICODE 1
a0b9e27f 20972EOF
10f2d63a 20973
8284b0c5 20974
bbc3925a
VS
20975 if test "$wxUSE_MSW" != 1; then
20976 wxUSE_UNICODE_MSLU=no
20977 fi
a72a4bfa
VS
20978
20979 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20980 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
e5a87141 20981echo "configure:20982: checking for main in -lunicows" >&5
a0b9e27f
MB
20982ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20983if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20984 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20985else
a0b9e27f 20986 ac_save_LIBS="$LIBS"
a72a4bfa 20987LIBS="-lunicows $LIBS"
a0b9e27f 20988cat > conftest.$ac_ext <<EOF
e5a87141 20989#line 20990 "configure"
a72a4bfa
VS
20990#include "confdefs.h"
20991
a0b9e27f
MB
20992int main() {
20993main()
20994; return 0; }
20995EOF
e5a87141 20996if { (eval echo configure:20997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20997 rm -rf conftest*
20998 eval "ac_cv_lib_$ac_lib_var=yes"
20999else
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21002 rm -rf conftest*
21003 eval "ac_cv_lib_$ac_lib_var=no"
21004fi
21005rm -f conftest*
21006LIBS="$ac_save_LIBS"
8284b0c5 21007
a0b9e27f
MB
21008fi
21009if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21010 echo "$ac_t""yes" 1>&6
21011
21012 cat >> confdefs.h <<\EOF
a72a4bfa 21013#define wxUSE_UNICODE_MSLU 1
a0b9e27f 21014EOF
a72a4bfa 21015
a0b9e27f 21016
a72a4bfa 21017else
a0b9e27f 21018 echo "$ac_t""no" 1>&6
a72a4bfa 21019
a0b9e27f
MB
21020 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21021 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 21022 wxUSE_UNICODE_MSLU=no
a0b9e27f 21023
a72a4bfa
VS
21024fi
21025
21026 fi
10f2d63a
VZ
21027fi
21028
10f2d63a 21029if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 21030 cat >> confdefs.h <<\EOF
10f2d63a 21031#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 21032EOF
10f2d63a
VZ
21033
21034fi
21035
8284b0c5
MB
21036
21037
10f2d63a
VZ
21038IODBC_C_SRC=""
21039if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 21040 cat >> confdefs.h <<\EOF
10f2d63a 21041#define wxUSE_ODBC 1
a0b9e27f 21042EOF
10f2d63a
VZ
21043
21044 WXODBCFLAG="-D_IODBC_"
21045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
21046fi
21047
8284b0c5 21048
10f2d63a 21049if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 21050 cat >> confdefs.h <<\EOF
10f2d63a 21051#define wxUSE_POSTSCRIPT 1
a0b9e27f 21052EOF
10f2d63a
VZ
21053
21054fi
21055
a0b9e27f 21056cat >> confdefs.h <<\EOF
10f2d63a 21057#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 21058EOF
10f2d63a 21059
8284b0c5 21060
a0b9e27f 21061cat >> confdefs.h <<\EOF
10f2d63a 21062#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 21063EOF
10f2d63a 21064
8284b0c5
MB
21065
21066
10f2d63a 21067if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 21068 cat >> confdefs.h <<\EOF
10f2d63a 21069#define wxUSE_CONSTRAINTS 1
a0b9e27f 21070EOF
10f2d63a
VZ
21071
21072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21073fi
21074
21075if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 21076
8284b0c5 21077
bb811f17 21078 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 21079 cat >> confdefs.h <<\EOF
10f2d63a 21080#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 21081EOF
10f2d63a 21082
bb811f17
JS
21083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21084 fi
10f2d63a
VZ
21085fi
21086
21087if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 21088 cat >> confdefs.h <<\EOF
10f2d63a 21089#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 21090EOF
10f2d63a
VZ
21091
21092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21093 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21095 fi
21096fi
21097
21098if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21099 cat >> confdefs.h <<\EOF
10f2d63a 21100#define wxUSE_HELP 1
a0b9e27f 21101EOF
10f2d63a
VZ
21102
21103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21104
77e13408 21105 if test "$wxUSE_MSW" = 1; then
031d8228 21106 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21107 cat >> confdefs.h <<\EOF
29fd3c0c 21108#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21109EOF
29fd3c0c 21110
3e44f09d 21111 fi
3379ed37 21112 fi
031d8228
VS
21113
21114 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21115 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21116 cat >> confdefs.h <<\EOF
031d8228 21117#define wxUSE_WXHTML_HELP 1
a0b9e27f 21118EOF
031d8228
VS
21119
21120 else
a0b9e27f 21121 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21122 wxUSE_WXHTML_HELP=no
21123 fi
21124 fi
10f2d63a
VZ
21125fi
21126
21127if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21128 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21129 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21130 else
a0b9e27f 21131 cat >> confdefs.h <<\EOF
10f2d63a 21132#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21133EOF
10f2d63a
VZ
21134
21135 fi
21136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21137fi
21138
10f2d63a 21139
10f2d63a
VZ
21140
21141if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 21142 cat >> confdefs.h <<\EOF
10f2d63a 21143#define wxUSE_X_RESOURCES 1
a0b9e27f 21144EOF
10f2d63a
VZ
21145
21146fi
21147
8284b0c5 21148
77e13408
RL
21149if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21150 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21151 -o "$wxUSE_OLE" = "yes" \
77e13408 21152 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21153 for ac_hdr in ole2.h
10f2d63a 21154do
a0b9e27f
MB
21155ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21156echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e5a87141 21157echo "configure:21158: checking for $ac_hdr" >&5
a0b9e27f
MB
21158if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21159 echo $ac_n "(cached) $ac_c" 1>&6
21160else
21161 cat > conftest.$ac_ext <<EOF
e5a87141 21162#line 21163 "configure"
10f2d63a 21163#include "confdefs.h"
a0b9e27f
MB
21164#include <$ac_hdr>
21165EOF
21166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e5a87141 21167{ (eval echo configure:21168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21169if test -z "$ac_err"; then
21170 rm -rf conftest*
21171 eval "ac_cv_header_$ac_safe=yes"
21172else
21173 echo "$ac_err" >&5
21174 echo "configure: failed program was:" >&5
10f2d63a 21175 cat conftest.$ac_ext >&5
a0b9e27f
MB
21176 rm -rf conftest*
21177 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21178fi
a0b9e27f 21179rm -f conftest*
10f2d63a 21180fi
a0b9e27f
MB
21181if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21182 echo "$ac_t""yes" 1>&6
21183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21184 cat >> confdefs.h <<EOF
21185#define $ac_tr_hdr 1
21186EOF
21187
21188else
21189 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21190fi
21191done
21192
8284b0c5 21193
2b9bdf71
VZ
21194 if test "$ac_cv_header_ole2_h" = "yes" ; then
21195 if test "$GCC" = yes ; then
a0b9e27f
MB
21196
21197 ac_ext=C
21198# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21199ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21200ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21201ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21202cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21203
21204
a0b9e27f 21205 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
e5a87141 21206echo "configure:21207: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21207 cat > conftest.$ac_ext <<EOF
e5a87141 21208#line 21209 "configure"
8284b0c5
MB
21209#include "confdefs.h"
21210#include <windows.h>
21211 #include <ole2.h>
a0b9e27f 21212int main() {
8284b0c5 21213
a0b9e27f
MB
21214; return 0; }
21215EOF
e5a87141 21216if { (eval echo configure:21217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21217 rm -rf conftest*
21218 echo "$ac_t""no" 1>&6
21219else
21220 echo "configure: failed program was:" >&5
21221 cat conftest.$ac_ext >&5
21222 rm -rf conftest*
21223 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21224 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21225fi
a0b9e27f 21226rm -f conftest*
8284b0c5 21227 ac_ext=c
a0b9e27f 21228# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21229ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21230ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21231ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21232cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21233
2b9bdf71 21234 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21235 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21236 cat >> confdefs.h <<\EOF
4f11a343 21237#define wxUSE_OLE 1
a0b9e27f 21238EOF
4f11a343 21239
8284b0c5 21240
2b9bdf71
VZ
21241 fi
21242
a0b9e27f 21243 cat >> confdefs.h <<\EOF
2b9bdf71 21244#define wxUSE_DATAOBJ 1
a0b9e27f 21245EOF
2b9bdf71
VZ
21246
21247 else
a0b9e27f 21248 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21249
21250 wxUSE_CLIPBOARD=no
21251 wxUSE_DRAG_AND_DROP=no
21252 wxUSE_DATAOBJ=no
3bce6687
JS
21253 wxUSE_OLE=no
21254 fi
21255
21256 if test "$wxUSE_METAFILE" = "yes"; then
21257 cat >> confdefs.h <<\EOF
21258#define wxUSE_METAFILE 1
21259EOF
21260
21261
21262 cat >> confdefs.h <<\EOF
21263#define wxUSE_ENH_METAFILE 1
21264EOF
21265
21266 fi
21267fi
21268
2b9bdf71
VZ
21269if test "$wxUSE_IPC" = "yes"; then
21270 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21271 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21272 fi
21273
a0b9e27f 21274 cat >> confdefs.h <<\EOF
2b9bdf71 21275#define wxUSE_IPC 1
a0b9e27f 21276EOF
2b9bdf71
VZ
21277
21278fi
21279
21280if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21281 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21282 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21283 wxUSE_CLIPBOARD=no
21284 fi
21285
21286 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21287 cat >> confdefs.h <<\EOF
2b9bdf71 21288#define wxUSE_CLIPBOARD 1
a0b9e27f 21289EOF
2b9bdf71 21290
8284b0c5 21291
a0b9e27f 21292 cat >> confdefs.h <<\EOF
673f4220 21293#define wxUSE_DATAOBJ 1
a0b9e27f 21294EOF
673f4220 21295
6c657b52 21296 fi
2b9bdf71
VZ
21297fi
21298
21299if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21300 if test "$wxUSE_GTK" = 1; then
21301 if test "$WXGTK12" != 1; then
a0b9e27f 21302 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21303 wxUSE_DRAG_AND_DROP=no
21304 fi
21305 fi
21306
2b9bdf71 21307 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21308 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21309 wxUSE_DRAG_AND_DROP=no
21310 fi
21311
f79bd02d 21312 if test "$wxUSE_X11" = 1; then
a0b9e27f 21313 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21314 wxUSE_DRAG_AND_DROP=no
21315 fi
21316
6c657b52 21317 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21318 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21319 wxUSE_DRAG_AND_DROP=no
21320 fi
21321
10f2d63a 21322 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21323 cat >> confdefs.h <<\EOF
10f2d63a 21324#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21325EOF
10f2d63a
VZ
21326
21327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21328 fi
21329
21330fi
21331
21332if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21333 cat >> confdefs.h <<\EOF
10f2d63a 21334#define wxUSE_SPLINES 1
a0b9e27f 21335EOF
10f2d63a
VZ
21336
21337fi
21338
8284b0c5 21339
1e6feb95
VZ
21340USES_CONTROLS=0
21341if test "$wxUSE_CONTROLS" = "yes"; then
21342 USES_CONTROLS=1
21343fi
21344
10f2d63a 21345if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21346 cat >> confdefs.h <<\EOF
10f2d63a 21347#define wxUSE_ACCEL 1
a0b9e27f 21348EOF
10f2d63a 21349
1e6feb95
VZ
21350 USES_CONTROLS=1
21351fi
21352
21353if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21354 cat >> confdefs.h <<\EOF
1e6feb95 21355#define wxUSE_BUTTON 1
a0b9e27f 21356EOF
1e6feb95
VZ
21357
21358 USES_CONTROLS=1
21359fi
21360
21361if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21362 cat >> confdefs.h <<\EOF
1e6feb95 21363#define wxUSE_BMPBUTTON 1
a0b9e27f 21364EOF
1e6feb95
VZ
21365
21366 USES_CONTROLS=1
21367fi
21368
21369if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21370 cat >> confdefs.h <<\EOF
1e6feb95 21371#define wxUSE_CALENDARCTRL 1
a0b9e27f 21372EOF
1e6feb95
VZ
21373
21374 USES_CONTROLS=1
21375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21376fi
21377
21378if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21379 cat >> confdefs.h <<\EOF
10f2d63a 21380#define wxUSE_CARET 1
a0b9e27f 21381EOF
10f2d63a 21382
1e6feb95 21383 USES_CONTROLS=1
10f2d63a
VZ
21384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21385fi
21386
21387if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21388 cat >> confdefs.h <<\EOF
10f2d63a 21389#define wxUSE_COMBOBOX 1
a0b9e27f 21390EOF
10f2d63a 21391
1e6feb95 21392 USES_CONTROLS=1
10f2d63a
VZ
21393fi
21394
21395if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21396 cat >> confdefs.h <<\EOF
10f2d63a 21397#define wxUSE_CHOICE 1
a0b9e27f 21398EOF
10f2d63a 21399
1e6feb95 21400 USES_CONTROLS=1
10f2d63a
VZ
21401fi
21402
21403if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21404 cat >> confdefs.h <<\EOF
10f2d63a 21405#define wxUSE_CHECKBOX 1
a0b9e27f 21406EOF
10f2d63a 21407
1e6feb95 21408 USES_CONTROLS=1
10f2d63a
VZ
21409fi
21410
21411if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21412 cat >> confdefs.h <<\EOF
10f2d63a 21413#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21414EOF
10f2d63a 21415
1e6feb95 21416 USES_CONTROLS=1
10f2d63a
VZ
21417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21418fi
21419
da494b40
MB
21420if test "$wxUSE_DISPLAY" = "yes"; then
21421 cat >> confdefs.h <<\EOF
21422#define wxUSE_DISPLAY 1
21423EOF
21424
21425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21426fi
21427
10f2d63a 21428if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21429 cat >> confdefs.h <<\EOF
10f2d63a 21430#define wxUSE_GAUGE 1
a0b9e27f 21431EOF
10f2d63a 21432
1e6feb95 21433 USES_CONTROLS=1
10f2d63a
VZ
21434fi
21435
d6a55c4b 21436if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21437 cat >> confdefs.h <<\EOF
d6a55c4b 21438#define wxUSE_GRID 1
a0b9e27f 21439EOF
10f2d63a 21440
1e6feb95 21441 USES_CONTROLS=1
d6a55c4b 21442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21443fi
21444
21445if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21446 cat >> confdefs.h <<\EOF
10f2d63a 21447#define wxUSE_IMAGLIST 1
a0b9e27f 21448EOF
10f2d63a
VZ
21449
21450fi
21451
21452if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21453 cat >> confdefs.h <<\EOF
10f2d63a 21454#define wxUSE_LISTBOX 1
a0b9e27f 21455EOF
10f2d63a 21456
1e6feb95 21457 USES_CONTROLS=1
10f2d63a
VZ
21458fi
21459
21460if test "$wxUSE_LISTCTRL" = "yes"; then
21461 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21462 cat >> confdefs.h <<\EOF
10f2d63a 21463#define wxUSE_LISTCTRL 1
a0b9e27f 21464EOF
10f2d63a 21465
1e6feb95 21466 USES_CONTROLS=1
10f2d63a
VZ
21467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21468 else
a0b9e27f 21469 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21470 fi
21471fi
21472
21473if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21474 cat >> confdefs.h <<\EOF
10f2d63a 21475#define wxUSE_NOTEBOOK 1
a0b9e27f 21476EOF
10f2d63a 21477
1e6feb95 21478 USES_CONTROLS=1
10f2d63a
VZ
21479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21480fi
21481
24176f2c 21482
10f2d63a 21483if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21484 cat >> confdefs.h <<\EOF
10f2d63a 21485#define wxUSE_RADIOBOX 1
a0b9e27f 21486EOF
10f2d63a 21487
1e6feb95 21488 USES_CONTROLS=1
10f2d63a
VZ
21489fi
21490
21491if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21492 cat >> confdefs.h <<\EOF
10f2d63a 21493#define wxUSE_RADIOBTN 1
a0b9e27f 21494EOF
10f2d63a 21495
1e6feb95 21496 USES_CONTROLS=1
10f2d63a
VZ
21497fi
21498
21499if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21500 cat >> confdefs.h <<\EOF
10f2d63a 21501#define wxUSE_SASH 1
a0b9e27f 21502EOF
10f2d63a
VZ
21503
21504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21505fi
21506
21507if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21508 cat >> confdefs.h <<\EOF
10f2d63a 21509#define wxUSE_SCROLLBAR 1
a0b9e27f 21510EOF
10f2d63a 21511
1e6feb95 21512 USES_CONTROLS=1
741a9306 21513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21514fi
21515
21516if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21517 cat >> confdefs.h <<\EOF
10f2d63a 21518#define wxUSE_SLIDER 1
a0b9e27f 21519EOF
10f2d63a 21520
1e6feb95 21521 USES_CONTROLS=1
10f2d63a
VZ
21522fi
21523
21524if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21525 cat >> confdefs.h <<\EOF
10f2d63a 21526#define wxUSE_SPINBTN 1
a0b9e27f 21527EOF
10f2d63a 21528
1e6feb95 21529 USES_CONTROLS=1
10f2d63a
VZ
21530fi
21531
56cfaa52 21532if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21533 cat >> confdefs.h <<\EOF
56cfaa52 21534#define wxUSE_SPINCTRL 1
a0b9e27f 21535EOF
56cfaa52 21536
1e6feb95 21537 USES_CONTROLS=1
56cfaa52
RR
21538fi
21539
10f2d63a 21540if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21541 cat >> confdefs.h <<\EOF
10f2d63a 21542#define wxUSE_SPLITTER 1
a0b9e27f 21543EOF
10f2d63a
VZ
21544
21545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21546fi
21547
21548if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21549 cat >> confdefs.h <<\EOF
10f2d63a 21550#define wxUSE_STATBMP 1
a0b9e27f 21551EOF
10f2d63a 21552
1e6feb95 21553 USES_CONTROLS=1
10f2d63a
VZ
21554fi
21555
21556if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21557 cat >> confdefs.h <<\EOF
10f2d63a 21558#define wxUSE_STATBOX 1
a0b9e27f 21559EOF
10f2d63a 21560
1e6feb95
VZ
21561 USES_CONTROLS=1
21562fi
21563
21564if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21565 cat >> confdefs.h <<\EOF
1e6feb95 21566#define wxUSE_STATTEXT 1
a0b9e27f 21567EOF
1e6feb95
VZ
21568
21569 USES_CONTROLS=1
10f2d63a
VZ
21570fi
21571
21572if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21573 cat >> confdefs.h <<\EOF
10f2d63a 21574#define wxUSE_STATLINE 1
a0b9e27f 21575EOF
10f2d63a 21576
89e6bf6d 21577 USES_CONTROLS=1
10f2d63a
VZ
21578fi
21579
21580if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21581 cat >> confdefs.h <<\EOF
10f2d63a 21582#define wxUSE_STATUSBAR 1
a0b9e27f 21583EOF
10f2d63a 21584
1e6feb95 21585 USES_CONTROLS=1
698dcdb6 21586
2286341c 21587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21588fi
21589
21590if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21591 cat >> confdefs.h <<\EOF
10f2d63a 21592#define wxUSE_TAB_DIALOG 1
a0b9e27f 21593EOF
10f2d63a
VZ
21594
21595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21596fi
21597
1e6feb95 21598if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21599 cat >> confdefs.h <<\EOF
1e6feb95 21600#define wxUSE_TEXTCTRL 1
a0b9e27f 21601EOF
1e6feb95
VZ
21602
21603 USES_CONTROLS=1
21604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21605fi
21606
1db8dc4a 21607if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21608 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21609 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21610 wxUSE_TOGGLEBTN=no
21611 fi
21612 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21613 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21614 wxUSE_TOGGLEBTN=no
21615 fi
21616
21617 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21618 cat >> confdefs.h <<\EOF
1db8dc4a 21619#define wxUSE_TOGGLEBTN 1
a0b9e27f 21620EOF
1db8dc4a 21621
1e6feb95 21622 USES_CONTROLS=1
a45d7ab7 21623 fi
1db8dc4a
VZ
21624fi
21625
360d6699 21626if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21627 cat >> confdefs.h <<\EOF
360d6699 21628#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21629EOF
360d6699
VZ
21630
21631 wxUSE_TOOLBAR="yes"
1e6feb95 21632 USES_CONTROLS=1
360d6699
VZ
21633fi
21634
10f2d63a 21635if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21636 cat >> confdefs.h <<\EOF
10f2d63a 21637#define wxUSE_TOOLBAR 1
a0b9e27f 21638EOF
10f2d63a 21639
1e6feb95 21640 USES_CONTROLS=1
698dcdb6 21641
360d6699
VZ
21642 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21643 wxUSE_TOOLBAR_NATIVE="yes"
21644 fi
21645
1e6feb95 21646 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21647 cat >> confdefs.h <<\EOF
360d6699 21648#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21649EOF
360d6699 21650
1e6feb95
VZ
21651 USES_CONTROLS=1
21652 fi
21653
21654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21655fi
21656
10f2d63a
VZ
21657if test "$wxUSE_TOOLTIPS" = "yes"; then
21658 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21659 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21660 else
89e6bf6d
VZ
21661 if test "$wxUSE_UNIVERSAL" = "yes"; then
21662 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21663 else
89e6bf6d 21664 cat >> confdefs.h <<\EOF
10f2d63a 21665#define wxUSE_TOOLTIPS 1
a0b9e27f 21666EOF
10f2d63a
VZ
21667
21668 fi
21669 fi
21670fi
21671
21672if test "$wxUSE_TREECTRL" = "yes"; then
21673 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21674 cat >> confdefs.h <<\EOF
10f2d63a 21675#define wxUSE_TREECTRL 1
a0b9e27f 21676EOF
10f2d63a 21677
1e6feb95 21678 USES_CONTROLS=1
10f2d63a
VZ
21679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21680 else
a0b9e27f 21681 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21682 fi
21683fi
21684
9f41d601 21685if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21686 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21687 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21688 else
485cf710 21689 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21690 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21691 else
3c011993 21692 if test "$wxUSE_PM" = 1; then
a0b9e27f 21693 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21694 else
a0b9e27f 21695 cat >> confdefs.h <<\EOF
9f41d601 21696#define wxUSE_POPUPWIN 1
a0b9e27f 21697EOF
9f41d601 21698
8284b0c5 21699
3c011993
VZ
21700 USES_CONTROLS=1
21701 fi
485cf710 21702 fi
6abe4b65 21703 fi
9f41d601
RR
21704fi
21705
dd964dcc 21706if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21707 if test "$wxUSE_PM" = 1; then
a0b9e27f 21708 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21709 else
a0b9e27f 21710 cat >> confdefs.h <<\EOF
dd964dcc 21711#define wxUSE_TIPWINDOW 1
a0b9e27f 21712EOF
dd964dcc 21713
3c011993 21714 fi
dd964dcc
VZ
21715fi
21716
1e6feb95 21717if test "$USES_CONTROLS" = 1; then
a0b9e27f 21718 cat >> confdefs.h <<\EOF
1e6feb95 21719#define wxUSE_CONTROLS 1
a0b9e27f 21720EOF
10f2d63a 21721
10f2d63a
VZ
21722fi
21723
8284b0c5 21724
1e6feb95 21725
24fd6d87 21726if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21727 cat >> confdefs.h <<\EOF
24fd6d87 21728#define wxUSE_DRAGIMAGE 1
a0b9e27f 21729EOF
24fd6d87
VZ
21730
21731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21732fi
21733
1e6feb95 21734if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21735 cat >> confdefs.h <<\EOF
1e6feb95 21736#define wxUSE_MENUS 1
a0b9e27f 21737EOF
10f2d63a 21738
1e6feb95 21739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21740fi
21741
1e6feb95 21742if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21743 cat >> confdefs.h <<\EOF
1e6feb95 21744#define wxUSE_METAFILE 1
a0b9e27f 21745EOF
10f2d63a 21746
10f2d63a
VZ
21747fi
21748
1e6feb95 21749if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21750 cat >> confdefs.h <<\EOF
1e6feb95 21751#define wxUSE_MIMETYPE 1
a0b9e27f 21752EOF
10f2d63a 21753
10f2d63a
VZ
21754fi
21755
3e44f09d 21756if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21757 cat >> confdefs.h <<\EOF
3e44f09d 21758#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21759EOF
3e44f09d 21760
321d2b14
VZ
21761if test "$TOOLKIT" = "MSW"; then
21762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21763fi
21764
3e44f09d
VZ
21765fi
21766
4cdb0ab0 21767if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21768 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21769 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21770 wxUSE_PROTOCOL=no
21771 fi
21772
21773 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21774 cat >> confdefs.h <<\EOF
4cdb0ab0 21775#define wxUSE_PROTOCOL 1
a0b9e27f 21776EOF
4cdb0ab0 21777
8284b0c5 21778
3954f9ca 21779 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21780 cat >> confdefs.h <<\EOF
4cdb0ab0 21781#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21782EOF
4cdb0ab0 21783
3954f9ca
VS
21784 fi
21785 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21786 cat >> confdefs.h <<\EOF
4cdb0ab0 21787#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21788EOF
4cdb0ab0 21789
3954f9ca
VS
21790 fi
21791 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21792 cat >> confdefs.h <<\EOF
3954f9ca 21793#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21794EOF
3954f9ca
VS
21795
21796 fi
4cdb0ab0 21797 fi
3954f9ca
VS
21798fi
21799
21800if test "$wxUSE_URL" = "yes"; then
21801 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21802 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21803 wxUSE_URL=no
21804 fi
21805 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21806 cat >> confdefs.h <<\EOF
3954f9ca 21807#define wxUSE_URL 1
a0b9e27f 21808EOF
4cdb0ab0
VS
21809
21810 fi
21811fi
21812
10f2d63a 21813if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21814 cat >> confdefs.h <<\EOF
10f2d63a 21815#define wxUSE_MINIFRAME 1
a0b9e27f 21816EOF
10f2d63a
VZ
21817
21818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21819fi
21820
21821if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21822 cat >> confdefs.h <<\EOF
10f2d63a 21823#define wxUSE_HTML 1
a0b9e27f 21824EOF
10f2d63a
VZ
21825
21826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21827fi
21828
21829if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21830 cat >> confdefs.h <<\EOF
1e487827 21831#define wxUSE_VALIDATORS 1
a0b9e27f 21832EOF
703e0a69 21833
698dcdb6
VZ
21834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21835fi
21836
edae8572 21837if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21838 cat >> confdefs.h <<\EOF
edae8572 21839#define wxUSE_PALETTE 1
a0b9e27f 21840EOF
edae8572
VZ
21841
21842fi
21843
698dcdb6 21844if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21845 cat >> confdefs.h <<\EOF
698dcdb6 21846#define wxUSE_IMAGE 1
a0b9e27f 21847EOF
698dcdb6
VZ
21848
21849fi
21850
21851if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21852 cat >> confdefs.h <<\EOF
698dcdb6 21853#define wxUSE_GIF 1
a0b9e27f 21854EOF
698dcdb6
VZ
21855
21856fi
21857
21858if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21859 cat >> confdefs.h <<\EOF
698dcdb6 21860#define wxUSE_PCX 1
a0b9e27f 21861EOF
698dcdb6
VZ
21862
21863fi
21864
4b6b4dfc 21865if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21866 cat >> confdefs.h <<\EOF
4b6b4dfc 21867#define wxUSE_IFF 1
a0b9e27f 21868EOF
4b6b4dfc
RR
21869
21870fi
21871
698dcdb6 21872if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21873 cat >> confdefs.h <<\EOF
698dcdb6 21874#define wxUSE_PNM 1
a0b9e27f 21875EOF
698dcdb6
VZ
21876
21877fi
21878
21879if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21880 cat >> confdefs.h <<\EOF
698dcdb6 21881#define wxUSE_XPM 1
a0b9e27f 21882EOF
698dcdb6
VZ
21883
21884fi
21885
658974ae 21886if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21887 cat >> confdefs.h <<\EOF
658974ae 21888#define wxUSE_ICO_CUR 1
a0b9e27f 21889EOF
658974ae
VS
21890
21891fi
21892
a72a4bfa
VS
21893if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21894 LIBS=" -lunicows $LIBS"
21895fi
21896
8284b0c5 21897
1e6feb95 21898if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21899 cat >> confdefs.h <<\EOF
1e6feb95 21900#define wxUSE_CHOICEDLG 1
a0b9e27f 21901EOF
1e6feb95
VZ
21902
21903fi
21904
21905if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21906 cat >> confdefs.h <<\EOF
1e6feb95 21907#define wxUSE_COLOURDLG 1
a0b9e27f 21908EOF
1e6feb95
VZ
21909
21910fi
21911
21912if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21913 cat >> confdefs.h <<\EOF
1e6feb95 21914#define wxUSE_FILEDLG 1
a0b9e27f 21915EOF
1e6feb95
VZ
21916
21917fi
21918
8db37e06 21919if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21920 cat >> confdefs.h <<\EOF
8db37e06 21921#define wxUSE_FINDREPLDLG 1
a0b9e27f 21922EOF
8db37e06
VZ
21923
21924fi
21925
1e6feb95 21926if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21927 cat >> confdefs.h <<\EOF
1e6feb95 21928#define wxUSE_FONTDLG 1
a0b9e27f 21929EOF
1e6feb95
VZ
21930
21931fi
21932
21933if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21934 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21935 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21936 else
a0b9e27f 21937 cat >> confdefs.h <<\EOF
1e6feb95 21938#define wxUSE_DIRDLG 1
a0b9e27f 21939EOF
1e6feb95 21940
1e6feb95
VZ
21941 fi
21942fi
21943
21944if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21945 cat >> confdefs.h <<\EOF
1e6feb95 21946#define wxUSE_MSGDLG 1
a0b9e27f 21947EOF
1e6feb95
VZ
21948
21949fi
21950
21951if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21952 cat >> confdefs.h <<\EOF
1e6feb95 21953#define wxUSE_NUMBERDLG 1
a0b9e27f 21954EOF
1e6feb95
VZ
21955
21956fi
21957
21958if test "$wxUSE_PROGRESSDLG" = "yes"; then
21959 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21960 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21961 else
a0b9e27f 21962 cat >> confdefs.h <<\EOF
1e6feb95 21963#define wxUSE_PROGRESSDLG 1
a0b9e27f 21964EOF
1e6feb95
VZ
21965
21966 fi
21967fi
21968
cbca9943 21969if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21970 cat >> confdefs.h <<\EOF
cbca9943 21971#define wxUSE_SPLASH 1
a0b9e27f 21972EOF
cbca9943
VZ
21973
21974fi
21975
1e6feb95
VZ
21976if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21977 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21978 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21979 else
a0b9e27f 21980 cat >> confdefs.h <<\EOF
1e6feb95 21981#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21982EOF
1e6feb95 21983
7b4a847f
RR
21984 fi
21985fi
579d8138 21986
8284b0c5 21987if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21988 cat >> confdefs.h <<\EOF
8284b0c5 21989#define wxUSE_TEXTDLG 1
a0b9e27f 21990EOF
8284b0c5
MB
21991
21992fi
21993
21994if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21995 cat >> confdefs.h <<\EOF
8284b0c5 21996#define wxUSE_WIZARDDLG 1
a0b9e27f 21997EOF
8284b0c5
MB
21998
21999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22000fi
22001
22002
22003if test "$cross_compiling" = "yes"; then
22004 OSINFO="\"$host\""
22005else
22006 OSINFO=`uname -s -r -m`
22007 OSINFO="\"$OSINFO\""
22008fi
22009
a0b9e27f 22010cat >> confdefs.h <<EOF
8284b0c5 22011#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 22012EOF
8284b0c5
MB
22013
22014
22015
22016if test "x$prefix" != "xNONE"; then
22017 wxPREFIX=$prefix
22018else
22019 wxPREFIX=$ac_default_prefix
22020fi
22021
a0b9e27f 22022cat >> confdefs.h <<EOF
8284b0c5 22023#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 22024EOF
8284b0c5
MB
22025
22026
52c71b80
VZ
22027top_builddir=`pwd`
22028
8284b0c5
MB
22029
22030
22031
22032if test "$wxUSE_MAC" = 1 ; then
22033 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22034fi
ac0c4cc3
DE
22035if test "$wxUSE_COCOA" = 1 ; then
22036 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22037fi
8284b0c5
MB
22038
22039
2b5f62a0
VZ
22040LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22041
22042have_cos=0
22043have_floor=0
22044for ac_func in cos
22045do
22046echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 22047echo "configure:22048: checking for $ac_func" >&5
2b5f62a0
VZ
22048if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22049 echo $ac_n "(cached) $ac_c" 1>&6
22050else
22051 cat > conftest.$ac_ext <<EOF
e5a87141 22052#line 22053 "configure"
2b5f62a0
VZ
22053#include "confdefs.h"
22054/* System header to define __stub macros and hopefully few prototypes,
22055 which can conflict with char $ac_func(); below. */
22056#include <assert.h>
22057/* Override any gcc2 internal prototype to avoid an error. */
22058/* We use char because int might match the return type of a gcc2
22059 builtin and then its argument prototype would still apply. */
22060char $ac_func();
22061
22062int main() {
22063
22064/* The GNU C library defines this for functions which it implements
22065 to always fail with ENOSYS. Some functions are actually named
22066 something starting with __ and the normal name is an alias. */
22067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22068choke me
22069#else
22070$ac_func();
22071#endif
22072
22073; return 0; }
22074EOF
e5a87141 22075if { (eval echo configure:22076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22076 rm -rf conftest*
22077 eval "ac_cv_func_$ac_func=yes"
22078else
22079 echo "configure: failed program was:" >&5
22080 cat conftest.$ac_ext >&5
22081 rm -rf conftest*
22082 eval "ac_cv_func_$ac_func=no"
22083fi
22084rm -f conftest*
22085fi
22086
22087if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22088 echo "$ac_t""yes" 1>&6
22089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22090 cat >> confdefs.h <<EOF
22091#define $ac_tr_func 1
22092EOF
22093 have_cos=1
22094else
22095 echo "$ac_t""no" 1>&6
22096fi
22097done
22098
22099for ac_func in floor
22100do
22101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 22102echo "configure:22103: checking for $ac_func" >&5
2b5f62a0
VZ
22103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22104 echo $ac_n "(cached) $ac_c" 1>&6
22105else
22106 cat > conftest.$ac_ext <<EOF
e5a87141 22107#line 22108 "configure"
2b5f62a0
VZ
22108#include "confdefs.h"
22109/* System header to define __stub macros and hopefully few prototypes,
22110 which can conflict with char $ac_func(); below. */
22111#include <assert.h>
22112/* Override any gcc2 internal prototype to avoid an error. */
22113/* We use char because int might match the return type of a gcc2
22114 builtin and then its argument prototype would still apply. */
22115char $ac_func();
22116
22117int main() {
22118
22119/* The GNU C library defines this for functions which it implements
22120 to always fail with ENOSYS. Some functions are actually named
22121 something starting with __ and the normal name is an alias. */
22122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22123choke me
22124#else
22125$ac_func();
22126#endif
22127
22128; return 0; }
22129EOF
e5a87141 22130if { (eval echo configure:22131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22131 rm -rf conftest*
22132 eval "ac_cv_func_$ac_func=yes"
22133else
22134 echo "configure: failed program was:" >&5
22135 cat conftest.$ac_ext >&5
22136 rm -rf conftest*
22137 eval "ac_cv_func_$ac_func=no"
22138fi
22139rm -f conftest*
22140fi
22141
22142if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22143 echo "$ac_t""yes" 1>&6
22144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22145 cat >> confdefs.h <<EOF
22146#define $ac_tr_func 1
22147EOF
22148 have_floor=1
22149else
22150 echo "$ac_t""no" 1>&6
22151fi
22152done
22153
22154echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
e5a87141 22155echo "configure:22156: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22156if test "$have_cos" = 1 -a "$have_floor" = 1; then
22157 echo "$ac_t""yes" 1>&6
22158else
22159 echo "$ac_t""no" 1>&6
22160 LIBS="$LIBS -lm"
22161 # use different functions to avoid configure caching
22162 have_sin=0
22163 have_ceil=0
22164 for ac_func in sin
22165do
22166echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 22167echo "configure:22168: checking for $ac_func" >&5
2b5f62a0
VZ
22168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22169 echo $ac_n "(cached) $ac_c" 1>&6
22170else
22171 cat > conftest.$ac_ext <<EOF
e5a87141 22172#line 22173 "configure"
2b5f62a0
VZ
22173#include "confdefs.h"
22174/* System header to define __stub macros and hopefully few prototypes,
22175 which can conflict with char $ac_func(); below. */
22176#include <assert.h>
22177/* Override any gcc2 internal prototype to avoid an error. */
22178/* We use char because int might match the return type of a gcc2
22179 builtin and then its argument prototype would still apply. */
22180char $ac_func();
22181
22182int main() {
22183
22184/* The GNU C library defines this for functions which it implements
22185 to always fail with ENOSYS. Some functions are actually named
22186 something starting with __ and the normal name is an alias. */
22187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22188choke me
22189#else
22190$ac_func();
22191#endif
22192
22193; return 0; }
22194EOF
e5a87141 22195if { (eval echo configure:22196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22196 rm -rf conftest*
22197 eval "ac_cv_func_$ac_func=yes"
22198else
22199 echo "configure: failed program was:" >&5
22200 cat conftest.$ac_ext >&5
22201 rm -rf conftest*
22202 eval "ac_cv_func_$ac_func=no"
22203fi
22204rm -f conftest*
22205fi
22206
22207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22208 echo "$ac_t""yes" 1>&6
22209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22210 cat >> confdefs.h <<EOF
22211#define $ac_tr_func 1
22212EOF
22213 have_sin=1
22214else
22215 echo "$ac_t""no" 1>&6
22216fi
22217done
22218
22219 for ac_func in ceil
22220do
22221echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e5a87141 22222echo "configure:22223: checking for $ac_func" >&5
2b5f62a0
VZ
22223if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22224 echo $ac_n "(cached) $ac_c" 1>&6
22225else
22226 cat > conftest.$ac_ext <<EOF
e5a87141 22227#line 22228 "configure"
2b5f62a0
VZ
22228#include "confdefs.h"
22229/* System header to define __stub macros and hopefully few prototypes,
22230 which can conflict with char $ac_func(); below. */
22231#include <assert.h>
22232/* Override any gcc2 internal prototype to avoid an error. */
22233/* We use char because int might match the return type of a gcc2
22234 builtin and then its argument prototype would still apply. */
22235char $ac_func();
22236
22237int main() {
22238
22239/* The GNU C library defines this for functions which it implements
22240 to always fail with ENOSYS. Some functions are actually named
22241 something starting with __ and the normal name is an alias. */
22242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22243choke me
22244#else
22245$ac_func();
22246#endif
22247
22248; return 0; }
22249EOF
e5a87141 22250if { (eval echo configure:22251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22251 rm -rf conftest*
22252 eval "ac_cv_func_$ac_func=yes"
22253else
22254 echo "configure: failed program was:" >&5
22255 cat conftest.$ac_ext >&5
22256 rm -rf conftest*
22257 eval "ac_cv_func_$ac_func=no"
22258fi
22259rm -f conftest*
22260fi
22261
22262if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22263 echo "$ac_t""yes" 1>&6
22264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22265 cat >> confdefs.h <<EOF
22266#define $ac_tr_func 1
22267EOF
22268 have_ceil=1
22269else
22270 echo "$ac_t""no" 1>&6
22271fi
22272done
22273
22274 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
e5a87141 22275echo "configure:22276: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22276 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22277 echo "$ac_t""yes" 1>&6
22278 else
22279 echo "$ac_t""no" 1>&6
22280 # not sure we should warn the user, crash, etc.
22281 fi
22282fi
8284b0c5
MB
22283
22284if test "$wxUSE_GUI" = "yes"; then
22285
22286 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22287
a0b9e27f 22288
8284b0c5
MB
22289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22290 drawing dynamic erase event exec font image \
1542ea39 22291 minimal propsize rotate shaped widgets"
8284b0c5
MB
22292
22293 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22294else
22295 SAMPLES_SUBDIRS="console"
22296fi
22297
22298
22299INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22300-I\${top_srcdir}/include \
22301$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22302$TOOLKIT_INCLUDE"
22303
22304if test "$wxUSE_GTK" = 1; then
22305 WXCONFIG_INCLUDE=
22306else
22307 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22308fi
22309
22310if test "$GXX" = yes ; then
22311 CXXWARNINGS="-Wall"
a0b9e27f 22312
8284b0c5
MB
22313 if test "$wxUSE_NO_DEPS" = "no" ; then
22314 CFLAGS="-MMD $CFLAGS"
22315 CXXFLAGS="-MMD $CXXFLAGS"
22316 fi
22317fi
22318
b2fee376 22319EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22320
b2fee376 22321CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22322CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22323CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22324LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22325
22326LDFLAGS="$LDFLAGS $PROFILE"
22327
22328SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
2f51a9ec
GD
22397
22398
22399
22400
f6bcfd97 22401
dad6c0ea 22402
caa2c79b 22403
3711412e 22404
1e6feb95
VZ
22405
22406
885d4bf5
VS
22407
22408
22409
22410
9b695262
VZ
22411
22412
62d0491b 22413
ef7f2189 22414
40f7145c 22415
2b5f62a0
VZ
22416
22417
22418
22419
22420
2bffed64
VZ
22421
22422
3bd8fb5f 22423
e26c13cf 22424
52c71b80 22425
36825681 22426
4f5a7f74 22427
10f2d63a 22428
a0b9e27f
MB
22429
22430echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
e5a87141 22431echo "configure:22432: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22432set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22433if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22434 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22435else
a0b9e27f 22436 cat > conftestmake <<\EOF
10f2d63a
VZ
22437all:
22438 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22439EOF
10f2d63a 22440# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22441eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22442if test -n "$ac_maketemp"; then
22443 eval ac_cv_prog_make_${ac_make}_set=yes
22444else
22445 eval ac_cv_prog_make_${ac_make}_set=no
22446fi
a0b9e27f 22447rm -f conftestmake
10f2d63a
VZ
22448fi
22449if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22450 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22451 SET_MAKE=
22452else
a0b9e27f 22453 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22454 SET_MAKE="MAKE=${MAKE-make}"
22455fi
22456
8284b0c5 22457
3a922bb4
RL
22458if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22459 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22460fi
665bbe97 22461
8284b0c5 22462
10f2d63a 22463
57973b9c
VZ
22464wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22465wx_cv_if_gnu_make=$IF_GNU_MAKE
22466wx_cv_path_ifs=$PATH_IFS
22467wx_cv_program_ext=$PROGRAM_EXT
22468wx_cv_target_library=$WX_TARGET_LIBRARY
22469wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22470wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22471wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22472wx_cv_release=${WX_RELEASE}
22473wx_cv_current=${WX_CURRENT}
22474wx_cv_revision=${WX_REVISION}
22475wx_cv_age=${WX_AGE}
27635a90 22476wx_cv_use_gui=${USE_GUI}
5e66eee1 22477wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22478export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22479 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22480 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22481 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22482 wx_cv_use_gui wx_cv_use_resources
57973b9c 22483
a0b9e27f 22484subdirs="demos samples utils contrib"
8284b0c5 22485
10f2d63a 22486
a0b9e27f
MB
22487trap '' 1 2 15
22488cat > confcache <<\EOF
10f2d63a
VZ
22489# This file is a shell script that caches the results of configure
22490# tests run on this system so they can be shared between configure
a0b9e27f
MB
22491# scripts and configure runs. It is not useful on other systems.
22492# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22493#
a0b9e27f
MB
22494# By default, configure uses ./config.cache as the cache file,
22495# creating it if it does not exist already. You can give configure
22496# the --cache-file=FILE option to use a different cache file; that is
22497# what configure does when it calls configure scripts in
22498# subdirectories, so they share the cache.
22499# Giving --cache-file=/dev/null disables caching, for debugging configure.
22500# config.status only pays attention to the cache file if you give it the
22501# --recheck option to rerun configure.
10f2d63a 22502#
a0b9e27f 22503EOF
10f2d63a
VZ
22504# The following way of writing the cache mishandles newlines in values,
22505# but we know of no workaround that is simple, portable, and efficient.
22506# So, don't put newlines in cache variables' values.
22507# Ultrix sh set writes to stderr and can't be redirected directly,
22508# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22509(set) 2>&1 |
22510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22511 *ac_space=\ *)
22512 # `set' does not quote correctly, so add quotes (double-quote substitution
22513 # turns \\\\ into \\, and sed turns \\ into \).
22514 sed -n \
22515 -e "s/'/'\\\\''/g" \
22516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22517 ;;
22518 *)
22519 # `set' quotes correctly as required by POSIX, so do not add quotes.
22520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22521 ;;
22522 esac >> confcache
22523if cmp -s $cache_file confcache; then
22524 :
22525else
10f2d63a 22526 if test -w $cache_file; then
a0b9e27f
MB
22527 echo "updating cache $cache_file"
22528 cat confcache > $cache_file
10f2d63a
VZ
22529 else
22530 echo "not updating unwritable cache $cache_file"
22531 fi
22532fi
22533rm -f confcache
22534
a0b9e27f
MB
22535trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22536
10f2d63a
VZ
22537test "x$prefix" = xNONE && prefix=$ac_default_prefix
22538# Let make expand exec_prefix.
22539test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22540
a0b9e27f
MB
22541# Any assignment to VPATH causes Sun make to only execute
22542# the first set of double-colon rules, so remove it if not needed.
22543# If there is a colon in the path, we need to keep it.
10f2d63a 22544if test "x$srcdir" = x.; then
a0b9e27f 22545 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22546fi
22547
a0b9e27f 22548trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22549
a0b9e27f 22550DEFS=-DHAVE_CONFIG_H
8284b0c5 22551
a0b9e27f 22552# Without the "./", some shells look in PATH for config.status.
247f5006 22553: ${CONFIG_STATUS=./config.status}
52127426 22554
a0b9e27f
MB
22555echo creating $CONFIG_STATUS
22556rm -f $CONFIG_STATUS
22557cat > $CONFIG_STATUS <<EOF
22558#! /bin/sh
22559# Generated automatically by configure.
22560# Run this file to recreate the current configuration.
22561# This directory was configured as follows,
22562# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22563#
a0b9e27f 22564# $0 $ac_configure_args
247f5006 22565#
a0b9e27f
MB
22566# Compiler output produced by configure, useful for debugging
22567# configure, is in ./config.log if it exists.
247f5006 22568
a0b9e27f
MB
22569ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22570for ac_option
247f5006 22571do
a0b9e27f
MB
22572 case "\$ac_option" in
22573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22574 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22575 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22576 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22577 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22578 exit 0 ;;
22579 -help | --help | --hel | --he | --h)
22580 echo "\$ac_cs_usage"; exit 0 ;;
22581 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22582 esac
22583done
22584
a0b9e27f
MB
22585ac_given_srcdir=$srcdir
22586ac_given_INSTALL="$INSTALL"
247f5006 22587
a0b9e27f
MB
22588trap 'rm -fr `echo "
22589 wx-config
2b5f62a0 22590 version-script
a0b9e27f
MB
22591 src/make.env
22592 src/makeprog.env
22593 src/makelib.env
22594 Makefile
22595 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22596EOF
22597cat >> $CONFIG_STATUS <<EOF
247f5006 22598
a0b9e27f
MB
22599# Protect against being on the right side of a sed subst in config.status.
22600sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22601 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22602$ac_vpsub
22603$extrasub
22604s%@SHELL@%$SHELL%g
22605s%@CFLAGS@%$CFLAGS%g
22606s%@CPPFLAGS@%$CPPFLAGS%g
22607s%@CXXFLAGS@%$CXXFLAGS%g
22608s%@FFLAGS@%$FFLAGS%g
22609s%@DEFS@%$DEFS%g
22610s%@LDFLAGS@%$LDFLAGS%g
22611s%@LIBS@%$LIBS%g
22612s%@exec_prefix@%$exec_prefix%g
22613s%@prefix@%$prefix%g
22614s%@program_transform_name@%$program_transform_name%g
22615s%@bindir@%$bindir%g
22616s%@sbindir@%$sbindir%g
22617s%@libexecdir@%$libexecdir%g
22618s%@datadir@%$datadir%g
22619s%@sysconfdir@%$sysconfdir%g
22620s%@sharedstatedir@%$sharedstatedir%g
22621s%@localstatedir@%$localstatedir%g
22622s%@libdir@%$libdir%g
22623s%@includedir@%$includedir%g
22624s%@oldincludedir@%$oldincludedir%g
22625s%@infodir@%$infodir%g
22626s%@mandir@%$mandir%g
22627s%@host@%$host%g
22628s%@host_alias@%$host_alias%g
22629s%@host_cpu@%$host_cpu%g
22630s%@host_vendor@%$host_vendor%g
22631s%@host_os@%$host_os%g
22632s%@target@%$target%g
22633s%@target_alias@%$target_alias%g
22634s%@target_cpu@%$target_cpu%g
22635s%@target_vendor@%$target_vendor%g
22636s%@target_os@%$target_os%g
22637s%@build@%$build%g
22638s%@build_alias@%$build_alias%g
22639s%@build_cpu@%$build_cpu%g
22640s%@build_vendor@%$build_vendor%g
22641s%@build_os@%$build_os%g
22642s%@CC@%$CC%g
22643s%@CPP@%$CPP%g
22644s%@CXX@%$CXX%g
22645s%@RANLIB@%$RANLIB%g
22646s%@AR@%$AR%g
22647s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22648s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22649s%@INSTALL_DATA@%$INSTALL_DATA%g
22650s%@STRIP@%$STRIP%g
22651s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22652s%@YACC@%$YACC%g
22653s%@LEX@%$LEX%g
22654s%@LEXLIB@%$LEXLIB%g
22655s%@LN_S@%$LN_S%g
22656s%@CXXCPP@%$CXXCPP%g
22657s%@PKG_CONFIG@%$PKG_CONFIG%g
22658s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22659s%@GTK_LIBS@%$GTK_LIBS%g
22660s%@GTK_CONFIG@%$GTK_CONFIG%g
22661s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22662s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22663s%@X_CFLAGS@%$X_CFLAGS%g
22664s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22665s%@X_LIBS@%$X_LIBS%g
22666s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22667s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22668s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22669s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22670s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22671s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22672s%@RESCOMP@%$RESCOMP%g
22673s%@DEREZ@%$DEREZ%g
36825681 22674s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22675s%@LIBICONV@%$LIBICONV%g
22676s%@LEX_STEM@%$LEX_STEM%g
22677s%@PATH_IFS@%$PATH_IFS%g
22678s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22679s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22680s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22681s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22682s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22683s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22684s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22685s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22686s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22687s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22688s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22689s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22690s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22691s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22692s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22693s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22694s%@WX_ALL@%$WX_ALL%g
22695s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22696s%@SHARED_LD@%$SHARED_LD%g
22697s%@PIC_FLAG@%$PIC_FLAG%g
22698s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22699s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22700s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22701s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22702s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22703s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22704s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22705s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22706s%@USE_GUI@%$USE_GUI%g
22707s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22708s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22709s%@TOOLKIT@%$TOOLKIT%g
22710s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22711s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22712s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22713s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22714s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22715s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22716s%@cross_compiling@%$cross_compiling%g
22717s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22718s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22719s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22720s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22721s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22722s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22723s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22724s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22725s%@ALL_HEADERS@%$ALL_HEADERS%g
22726s%@ALL_SOURCES@%$ALL_SOURCES%g
22727s%@GUIDIST@%$GUIDIST%g
22728s%@PORT_FILES@%$PORT_FILES%g
22729s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22730s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22731s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22732s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22733s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22734s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22735s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22736s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22737s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22738s%@RESFLAGS@%$RESFLAGS%g
22739s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22740s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22741s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22742s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22743s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22744s%@MACRESCOMP@%$MACRESCOMP%g
22745s%@MACSETFILE@%$MACSETFILE%g
22746s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22747s%@GCC@%$GCC%g
a0b9e27f
MB
22748s%@DLLTOOL@%$DLLTOOL%g
22749s%@AS@%$AS%g
22750s%@NM@%$NM%g
22751s%@LD@%$LD%g
22752s%@MAKEINFO@%$MAKEINFO%g
22753s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22754s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22755s%@SET_MAKE@%$SET_MAKE%g
22756s%@subdirs@%$subdirs%g
247f5006 22757
247f5006 22758CEOF
a0b9e27f 22759EOF
247f5006 22760
a0b9e27f
MB
22761cat >> $CONFIG_STATUS <<\EOF
22762
22763# Split the substitutions into bite-sized pieces for seds with
22764# small command number limits, like on Digital OSF/1 and HP-UX.
22765ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22766ac_file=1 # Number of current file.
22767ac_beg=1 # First line for current file.
22768ac_end=$ac_max_sed_cmds # Line after last line for current file.
22769ac_more_lines=:
22770ac_sed_cmds=""
22771while $ac_more_lines; do
22772 if test $ac_beg -gt 1; then
22773 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22774 else
22775 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22776 fi
22777 if test ! -s conftest.s$ac_file; then
22778 ac_more_lines=false
22779 rm -f conftest.s$ac_file
22780 else
22781 if test -z "$ac_sed_cmds"; then
22782 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22783 else
a0b9e27f 22784 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22785 fi
a0b9e27f
MB
22786 ac_file=`expr $ac_file + 1`
22787 ac_beg=$ac_end
22788 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22789 fi
a0b9e27f
MB
22790done
22791if test -z "$ac_sed_cmds"; then
22792 ac_sed_cmds=cat
22793fi
22794EOF
10f2d63a 22795
a0b9e27f 22796cat >> $CONFIG_STATUS <<EOF
10f2d63a 22797
a0b9e27f 22798CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22799 version-script
a0b9e27f
MB
22800 src/make.env
22801 src/makeprog.env
22802 src/makelib.env
22803 Makefile
22804 "}
22805EOF
22806cat >> $CONFIG_STATUS <<\EOF
22807for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22809 case "$ac_file" in
22810 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22811 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22812 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22813 esac
247f5006 22814
a0b9e27f 22815 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22816
a0b9e27f
MB
22817 # Remove last slash and all that follows it. Not all systems have dirname.
22818 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22819 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22820 # The file is in a subdirectory.
22821 test ! -d "$ac_dir" && mkdir "$ac_dir"
22822 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22823 # A "../" for each directory in $ac_dir_suffix.
22824 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22825 else
22826 ac_dir_suffix= ac_dots=
22827 fi
247f5006 22828
a0b9e27f
MB
22829 case "$ac_given_srcdir" in
22830 .) srcdir=.
22831 if test -z "$ac_dots"; then top_srcdir=.
22832 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22833 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22834 *) # Relative path.
a0b9e27f
MB
22835 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22836 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22837 esac
10f2d63a 22838
a0b9e27f
MB
22839 case "$ac_given_INSTALL" in
22840 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22841 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22842 esac
247f5006 22843
a0b9e27f
MB
22844 echo creating "$ac_file"
22845 rm -f "$ac_file"
22846 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22847 case "$ac_file" in
22848 *Makefile*) ac_comsub="1i\\
22849# $configure_input" ;;
22850 *) ac_comsub= ;;
22851 esac
247f5006 22852
a0b9e27f
MB
22853 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22854 sed -e "$ac_comsub
22855s%@configure_input@%$configure_input%g
22856s%@srcdir@%$srcdir%g
22857s%@top_srcdir@%$top_srcdir%g
22858s%@INSTALL@%$INSTALL%g
22859" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22860fi; done
22861rm -f conftest.s*
10f2d63a
VZ
22862
22863# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22864# NAME is the cpp macro being defined and VALUE is the value it is being given.
22865#
22866# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22867ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22868ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22869ac_dC='\3'
22870ac_dD='%g'
22871# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22872ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22873ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22874ac_uC=' '
a0b9e27f
MB
22875ac_uD='\4%g'
22876# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22877ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22878ac_eB='$%\1#\2define\3'
22879ac_eC=' '
22880ac_eD='%g'
22881
22882if test "${CONFIG_HEADERS+set}" != set; then
22883EOF
22884cat >> $CONFIG_STATUS <<EOF
22885 CONFIG_HEADERS="setup.h:setup.h.in"
22886EOF
22887cat >> $CONFIG_STATUS <<\EOF
22888fi
22889for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22891 case "$ac_file" in
22892 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22893 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22894 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22895 esac
22896
a0b9e27f
MB
22897 echo creating $ac_file
22898
22899 rm -f conftest.frag conftest.in conftest.out
22900 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22901 cat $ac_file_inputs > conftest.in
22902
22903EOF
22904
22905# Transform confdefs.h into a sed script conftest.vals that substitutes
22906# the proper values into config.h.in to produce config.h. And first:
22907# Protect against being on the right side of a sed subst in config.status.
22908# Protect against being in an unquoted here document in config.status.
22909rm -f conftest.vals
22910cat > conftest.hdr <<\EOF
22911s/[\\&%]/\\&/g
22912s%[\\$`]%\\&%g
22913s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22914s%ac_d%ac_u%gp
22915s%ac_u%ac_e%gp
22916EOF
22917sed -n -f conftest.hdr confdefs.h > conftest.vals
22918rm -f conftest.hdr
10f2d63a
VZ
22919
22920# This sed command replaces #undef with comments. This is necessary, for
22921# example, in the case of _POSIX_SOURCE, which is predefined and required
22922# on some systems where configure will not decide to define it.
a0b9e27f
MB
22923cat >> conftest.vals <<\EOF
22924s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22925EOF
22926
22927# Break up conftest.vals because some shells have a limit on
22928# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22929
22930rm -f conftest.tail
a0b9e27f 22931while :
10f2d63a 22932do
a0b9e27f
MB
22933 ac_lines=`grep -c . conftest.vals`
22934 # grep -c gives empty output for an empty file on some AIX systems.
22935 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22936 # Write a limited-size here document to conftest.frag.
22937 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22938 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22939 echo 'CEOF
a0b9e27f
MB
22940 sed -f conftest.frag conftest.in > conftest.out
22941 rm -f conftest.in
22942 mv conftest.out conftest.in
22943' >> $CONFIG_STATUS
22944 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22945 rm -f conftest.vals
22946 mv conftest.tail conftest.vals
10f2d63a 22947done
a0b9e27f
MB
22948rm -f conftest.vals
22949
22950cat >> $CONFIG_STATUS <<\EOF
22951 rm -f conftest.frag conftest.h
22952 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22953 cat conftest.in >> conftest.h
22954 rm -f conftest.in
22955 if cmp -s $ac_file conftest.h 2>/dev/null; then
22956 echo "$ac_file is unchanged"
22957 rm -f conftest.h
10f2d63a 22958 else
a0b9e27f
MB
22959 # Remove last slash and all that follows it. Not all systems have dirname.
22960 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22961 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22962 # The file is in a subdirectory.
22963 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22964 fi
a0b9e27f
MB
22965 rm -f $ac_file
22966 mv conftest.h $ac_file
247f5006 22967 fi
a0b9e27f
MB
22968fi; done
22969
22970EOF
22971cat >> $CONFIG_STATUS <<EOF
22972
22973 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22974 LN_S="${LN_S}"
22975
22976
22977EOF
22978cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22979
652d930d 22980 if test ! -h wx-config; then
991a5759 22981 chmod +x wx-config
3a922bb4
RL
22982 mv wx-config wx${TOOLCHAIN_NAME}-config
22983 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22984 fi
665bbe97 22985
00cf1208
RR
22986 if test ! -d lib; then
22987 mkdir lib
22988 fi
22989 if test ! -d lib/wx; then
22990 mkdir lib/wx
22991 fi
22992 if test ! -d lib/wx/include; then
22993 mkdir lib/wx/include
22994 fi
3a922bb4
RL
22995 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22996 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22997 fi
3a922bb4
RL
22998 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22999 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
23000 fi
23001 if test -f setup.h; then
3a922bb4 23002 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 23003 fi
a0b9e27f
MB
23004
23005exit 0
23006EOF
10f2d63a 23007chmod +x $CONFIG_STATUS
a0b9e27f
MB
23008rm -fr confdefs* $ac_clean_files
23009test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 23010
2224580a
VZ
23011if test "$no_recursion" != yes; then
23012
23013 # Remove --cache-file and --srcdir arguments so they do not pile up.
23014 ac_sub_configure_args=
23015 ac_prev=
23016 for ac_arg in $ac_configure_args; do
23017 if test -n "$ac_prev"; then
23018 ac_prev=
23019 continue
23020 fi
a0b9e27f 23021 case "$ac_arg" in
2224580a
VZ
23022 -cache-file | --cache-file | --cache-fil | --cache-fi \
23023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23024 ac_prev=cache_file ;;
23025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 23026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
23027 ;;
23028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23029 ac_prev=srcdir ;;
23030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23031 ;;
23032 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23033 esac
23034 done
23035
a0b9e27f 23036 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
23037
23038 # Do not complain, so a configure script can configure whichever
23039 # parts of a large source tree are present.
a0b9e27f
MB
23040 if test ! -d $srcdir/$ac_config_dir; then
23041 continue
23042 fi
2224580a 23043
a0b9e27f 23044 echo configuring in $ac_config_dir
2224580a 23045
a0b9e27f
MB
23046 case "$srcdir" in
23047 .) ;;
23048 *)
23049 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23050 else
23051 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23052 fi
23053 ;;
23054 esac
2224580a 23055
a0b9e27f
MB
23056 ac_popdir=`pwd`
23057 cd $ac_config_dir
247f5006 23058
a0b9e27f
MB
23059 # A "../" for each directory in /$ac_config_dir.
23060 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 23061
a0b9e27f
MB
23062 case "$srcdir" in
23063 .) # No --srcdir option. We are building in place.
23064 ac_sub_srcdir=$srcdir ;;
23065 /*) # Absolute path.
23066 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23067 *) # Relative path.
23068 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23069 esac
2224580a
VZ
23070
23071 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
23072 if test -f $ac_sub_srcdir/configure; then
23073 ac_sub_configure=$ac_sub_srcdir/configure
23074 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
23075 ac_sub_configure=$ac_configure
23076 else
a0b9e27f 23077 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
23078 ac_sub_configure=
23079 fi
23080
23081 # The recursion is here.
23082 if test -n "$ac_sub_configure"; then
a0b9e27f 23083
2224580a 23084 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
23085 case "$cache_file" in
23086 /*) ac_sub_cache_file=$cache_file ;;
2224580a 23087 *) # Relative path.
a0b9e27f 23088 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 23089 esac
a0b9e27f
MB
23090 case "$ac_given_INSTALL" in
23091 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23092 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23093 esac
2224580a 23094
a0b9e27f 23095 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 23096 # The eval makes quoting arguments work.
a0b9e27f
MB
23097 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23098 then :
23099 else
23100 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23101 fi
2224580a
VZ
23102 fi
23103
23104 cd $ac_popdir
23105 done
23106fi
23107
8284b0c5 23108
2b5f62a0
VZ
23109echo
23110echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23111echo ""
23112echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23113
23114echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23115echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23116echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23117
0c98a14e
GD
23118echo " What level of wxWindows compatibility should be enabled?"
23119echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
23120echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23121echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 23122
2b5f62a0
VZ
23123echo " Which libraries should wxWindows use?"
23124echo " jpeg ${wxUSE_LIBJPEG-none}"
23125echo " png ${wxUSE_LIBPNG-none}"
23126echo " regex ${wxUSE_REGEX}"
23127echo " tiff ${wxUSE_LIBTIFF-none}"
23128echo " zlib ${wxUSE_ZLIB}"
23129
23130echo ""
23131