]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
use wxLogFatalError, not wxFatalError
[wxWidgets.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
61
62
63
64# Configure paths for GTK+
65# Owen Taylor 97-11-3
66
67
68
69# Guess values for system-dependent variables and create Makefiles.
70# Generated automatically using autoconf version 2.13
71# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
72#
73# This configure script is free software; the Free Software Foundation
74# gives unlimited permission to copy, distribute and modify it.
75
76# Defaults:
77ac_help=
78ac_default_prefix=/usr/local
79# Any additions from configure.in:
80ac_help="$ac_help
81 --enable-gui use GUI classes"
82ac_help="$ac_help
83 --enable-universal use wxWindows GUI controls instead of native ones"
84ac_help="$ac_help
85 --with-gtk use GTK+"
86ac_help="$ac_help
87 --with-motif use Motif/Lesstif"
88ac_help="$ac_help
89 --with-mac use Mac OS X"
90ac_help="$ac_help
91 --with-wine use WINE"
92ac_help="$ac_help
93 --with-msw use MS-Windows"
94ac_help="$ac_help
95 --with-pm use OS/2 Presentation Manager"
96ac_help="$ac_help
97 --with-mgl use SciTech MGL"
98ac_help="$ac_help
99 --with-microwin use MicroWindows"
100ac_help="$ac_help
101 --with-x11 use X11"
102ac_help="$ac_help
103 --enable-nanox use NanoX"
104ac_help="$ac_help
105 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
106ac_help="$ac_help
107 --with-libpng use libpng (PNG image format)"
108ac_help="$ac_help
109 --with-libjpeg use libjpeg (JPEG file format)"
110ac_help="$ac_help
111 --with-libtiff use libtiff (TIFF file format)"
112ac_help="$ac_help
113 --with-opengl use OpenGL (or Mesa)"
114ac_help="$ac_help
115 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
116ac_help="$ac_help
117 --with-regex enable support for wxRegEx class"
118ac_help="$ac_help
119 --with-zlib use zlib for LZW compression"
120ac_help="$ac_help
121 --with-odbc use the IODBC and wxODBC classes"
122ac_help="$ac_help
123 --enable-shared create shared library code"
124ac_help="$ac_help
125 --enable-soname set the DT_SONAME field in ELF shared libraries"
126ac_help="$ac_help
127 --enable-optimise create optimised code"
128ac_help="$ac_help
129 --enable-debug same as debug_flag and debug_info"
130ac_help="$ac_help
131 --enable-precomp enable use of precompiled headers (Mac OS X)"
132ac_help="$ac_help
133 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
134ac_help="$ac_help
135 --enable-debug_info create code with debugging information"
136ac_help="$ac_help
137 --enable-debug_gdb create code with extra GDB debugging information"
138ac_help="$ac_help
139 --enable-debug_cntxt use wxDebugContext"
140ac_help="$ac_help
141 --enable-mem_tracing create code with memory tracing"
142ac_help="$ac_help
143 --enable-profile create code with profiling information"
144ac_help="$ac_help
145 --enable-no_rtti create code without RTTI information"
146ac_help="$ac_help
147 --enable-no_exceptions create code without C++ exceptions handling"
148ac_help="$ac_help
149 --enable-permissive compile code disregarding strict ANSI"
150ac_help="$ac_help
151 --enable-no_deps create code without dependency information"
152ac_help="$ac_help
153 --enable-compat20 enable wxWindows 2.0 compatibility"
154ac_help="$ac_help
155 --disable-compat22 disable wxWindows 2.2 compatibility"
156ac_help="$ac_help
157 --enable-intl use internationalization system"
158ac_help="$ac_help
159 --enable-config use wxConfig (and derived) classes"
160ac_help="$ac_help
161 --enable-protocols use wxProtocol and derived classes"
162ac_help="$ac_help
163 --enable-ftp use wxFTP (requires wxProtocol"
164ac_help="$ac_help
165 --enable-http use wxHTTP (requires wxProtocol"
166ac_help="$ac_help
167 --enable-fileproto use wxFileProto class (requires wxProtocol"
168ac_help="$ac_help
169 --enable-sockets use socket/network classes"
170ac_help="$ac_help
171 --enable-ipc use interprocess communication (wxSocket etc.)"
172ac_help="$ac_help
173 --enable-cmdline use wxCmdLineParser class"
174ac_help="$ac_help
175 --enable-datetime use wxDateTime class"
176ac_help="$ac_help
177 --enable-timedate use obsolete wxDate/wxTime classes"
178ac_help="$ac_help
179 --enable-stopwatch use wxStopWatch class"
180ac_help="$ac_help
181 --enable-dialupman use dialup network classes"
182ac_help="$ac_help
183 --enable-apple_ieee use the Apple IEEE codec"
184ac_help="$ac_help
185 --enable-timer use wxTimer class"
186ac_help="$ac_help
187 --enable-wave use wxWave class"
188ac_help="$ac_help
189 --enable-fraction use wxFraction class"
190ac_help="$ac_help
191 --enable-dynlib use wxLibrary class for DLL loading"
192ac_help="$ac_help
193 --enable-dynamicloader use (new) wxDynamicLibrary class"
194ac_help="$ac_help
195 --enable-longlong use wxLongLong class"
196ac_help="$ac_help
197 --enable-geometry use geometry class"
198ac_help="$ac_help
199 --enable-log use logging system"
200ac_help="$ac_help
201 --enable-streams use wxStream etc classes"
202ac_help="$ac_help
203 --enable-file use wxFile classes"
204ac_help="$ac_help
205 --enable-ffile use wxFFile classes"
206ac_help="$ac_help
207 --enable-textbuf use wxTextBuffer class"
208ac_help="$ac_help
209 --enable-textfile use wxTextFile class"
210ac_help="$ac_help
211 --enable-fontmap use font encodings conversion classes"
212ac_help="$ac_help
213 --enable-unicode compile wxString with Unicode support"
214ac_help="$ac_help
215 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
216ac_help="$ac_help
217 --enable-wxprintfv use wxWindows implementation of vprintf()"
218ac_help="$ac_help
219 --enable-std_iostreams use standard C++ stream classes"
220ac_help="$ac_help
221 --enable-filesystem use virtual file systems classes"
222ac_help="$ac_help
223 --enable-fs_inet use virtual HTTP/FTP filesystems"
224ac_help="$ac_help
225 --enable-fs_zip use virtual ZIP filesystems"
226ac_help="$ac_help
227 --enable-zipstream use wxZipInputStream"
228ac_help="$ac_help
229 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
230ac_help="$ac_help
231 --enable-snglinst use wxSingleInstanceChecker class"
232ac_help="$ac_help
233 --enable-mimetype use wxMimeTypesManager"
234ac_help="$ac_help
235 --enable-sysoptions use wxSystemOptions"
236ac_help="$ac_help
237 --enable-url use wxURL class"
238ac_help="$ac_help
239 --enable-protocol use wxProtocol class"
240ac_help="$ac_help
241 --enable-protocol-http HTTP support in wxProtocol"
242ac_help="$ac_help
243 --enable-protocol-ftp FTP support in wxProtocol"
244ac_help="$ac_help
245 --enable-protocol-file FILE support in wxProtocol"
246ac_help="$ac_help
247 --enable-threads use threads"
248ac_help="$ac_help
249 --enable-docview use document view architecture"
250ac_help="$ac_help
251 --enable-help use help subsystem"
252ac_help="$ac_help
253 --enable-mshtmlhelp use MS HTML Help (win32)"
254ac_help="$ac_help
255 --enable-html use wxHTML sub-library"
256ac_help="$ac_help
257 --enable-htmlhelp use wxHTML-based help"
258ac_help="$ac_help
259 --enable-constraints use layout-constraints system"
260ac_help="$ac_help
261 --enable-printarch use printing architecture"
262ac_help="$ac_help
263 --enable-mdi use multiple document interface architecture"
264ac_help="$ac_help
265 --enable-loggui use standard GUI logger"
266ac_help="$ac_help
267 --enable-logwin use wxLogWindow"
268ac_help="$ac_help
269 --enable-logdialog use wxLogDialog"
270ac_help="$ac_help
271 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
272ac_help="$ac_help
273 --enable-prologio use Prolog IO library"
274ac_help="$ac_help
275 --enable-resources use wxWindows resources"
276ac_help="$ac_help
277 --enable-xresources use X resources for save (default for gtk+)"
278ac_help="$ac_help
279 --enable-clipboard use wxClipboard classes"
280ac_help="$ac_help
281 --enable-dnd use Drag'n'Drop classes"
282ac_help="$ac_help
283 --enable-metafile use win32 metafiles"
284ac_help="$ac_help
285 --enable-treelayout use wxTreeLayout classes"
286ac_help="$ac_help
287 --enable-controls use all usual controls"
288ac_help="$ac_help
289 --enable-accel use accelerators"
290ac_help="$ac_help
291 --enable-button use wxButton class"
292ac_help="$ac_help
293 --enable-bmpbutton use wxBitmapButton class"
294ac_help="$ac_help
295 --enable-calendar use wxCalendarCtrl class"
296ac_help="$ac_help
297 --enable-caret use wxCaret class"
298ac_help="$ac_help
299 --enable-checkbox use wxCheckBox class"
300ac_help="$ac_help
301 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
302ac_help="$ac_help
303 --enable-choice use wxChoice class"
304ac_help="$ac_help
305 --enable-combobox use wxComboBox classes"
306ac_help="$ac_help
307 --enable-gauge use wxGauge class"
308ac_help="$ac_help
309 --enable-grid use wxGrid class"
310ac_help="$ac_help
311 --enable-newgrid use new wxGrid class"
312ac_help="$ac_help
313 --enable-imaglist use wxImageList class"
314ac_help="$ac_help
315 --enable-listbox use wxListBox class"
316ac_help="$ac_help
317 --enable-listctrl use wxListCtrl class"
318ac_help="$ac_help
319 --enable-notebook use wxNotebook class"
320ac_help="$ac_help
321 --enable-propsheet use wxPropertySheet class"
322ac_help="$ac_help
323 --enable-radiobox use wxRadioBox class"
324ac_help="$ac_help
325 --enable-radiobtn use wxRadioButton class"
326ac_help="$ac_help
327 --enable-sash use wxSashWindow class"
328ac_help="$ac_help
329 --enable-scrollbar use wxScrollBar class and scrollable windows"
330ac_help="$ac_help
331 --enable-slider use wxSlider class"
332ac_help="$ac_help
333 --enable-spinbtn use wxSpinButton class"
334ac_help="$ac_help
335 --enable-spinctrl use wxSpinCtrl class"
336ac_help="$ac_help
337 --enable-splitter use wxSplitterWindow class"
338ac_help="$ac_help
339 --enable-statbmp use wxStaticBitmap class"
340ac_help="$ac_help
341 --enable-statbox use wxStaticBox class"
342ac_help="$ac_help
343 --enable-statline use wxStaticLine class"
344ac_help="$ac_help
345 --enable-stattext use wxStaticText class"
346ac_help="$ac_help
347 --enable-statusbar use wxStatusBar class"
348ac_help="$ac_help
349 --enable-tabdialog use wxTabControl class"
350ac_help="$ac_help
351 --enable-textctrl use wxTextCtrl class"
352ac_help="$ac_help
353 --enable-togglebtn use wxToggleButton class"
354ac_help="$ac_help
355 --enable-toolbar use wxToolBar class"
356ac_help="$ac_help
357 --enable-tbarnative use native wxToolBar class"
358ac_help="$ac_help
359 --enable-tbarsmpl use wxToolBarSimple class"
360ac_help="$ac_help
361 --enable-treectrl use wxTreeCtrl class"
362ac_help="$ac_help
363 --enable-tipwindow use wxTipWindow class"
364ac_help="$ac_help
365 --enable-popupwin use wxPopUpWindow class"
366ac_help="$ac_help
367 --enable-commondlg use all common dialogs"
368ac_help="$ac_help
369 --enable-choicedlg use wxChoiceDialog"
370ac_help="$ac_help
371 --enable-coldlg use wxColourDialog"
372ac_help="$ac_help
373 --enable-filedlg use wxFileDialog"
374ac_help="$ac_help
375 --enable-finddlg use wxFindReplaceDialog"
376ac_help="$ac_help
377 --enable-fontdlg use wxFontDialog"
378ac_help="$ac_help
379 --enable-dirdlg use wxDirDialog"
380ac_help="$ac_help
381 --enable-msgdlg use wxMessageDialog"
382ac_help="$ac_help
383 --enable-numberdlg use wxNumberEntryDialog"
384ac_help="$ac_help
385 --enable-splash use wxSplashScreen"
386ac_help="$ac_help
387 --enable-textdlg use wxTextDialog"
388ac_help="$ac_help
389 --enable-tipdlg use startup tips"
390ac_help="$ac_help
391 --enable-progressdlg use wxProgressDialog"
392ac_help="$ac_help
393 --enable-wizarddlg use wxWizard"
394ac_help="$ac_help
395 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
396ac_help="$ac_help
397 --enable-miniframe use wxMiniFrame class"
398ac_help="$ac_help
399 --enable-tooltips use wxToolTip class"
400ac_help="$ac_help
401 --enable-splines use spline drawing code"
402ac_help="$ac_help
403 --enable-validators use wxValidator and derived classes"
404ac_help="$ac_help
405 --enable-busyinfo use wxBusyInfo"
406ac_help="$ac_help
407 --enable-joystick use wxJoystick (Linux only)"
408ac_help="$ac_help
409 --enable-metafiles use wxMetaFile (Windows only)"
410ac_help="$ac_help
411 --enable-dragimage use wxDragImage"
412ac_help="$ac_help
413 --enable-palette use wxPalette class"
414ac_help="$ac_help
415 --enable-image use wxImage class"
416ac_help="$ac_help
417 --enable-gif use gif images (GIF file format)"
418ac_help="$ac_help
419 --enable-pcx use pcx images (PCX file format)"
420ac_help="$ac_help
421 --enable-iff use iff images (IFF file format)"
422ac_help="$ac_help
423 --enable-pnm use pnm images (PNM file format)"
424ac_help="$ac_help
425 --enable-xpm use xpm images (XPM file format)"
426ac_help="$ac_help
427 --enable-icocur use Windows ICO and CUR formats"
428ac_help="$ac_help
429 --disable-largefile omit support for large files"
430ac_help="$ac_help
431 --disable-gtktest do not try to compile and run a test GTK+ program"
432ac_help="$ac_help
433 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
434ac_help="$ac_help
435 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
436ac_help="$ac_help
437 --disable-gtktest Do not try to compile and run a test GTK program"
438ac_help="$ac_help
439 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
440ac_help="$ac_help
441 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
442ac_help="$ac_help
443 --disable-gtktest Do not try to compile and run a test GTK program"
444ac_help="$ac_help
445 --with-x use the X Window System"
446ac_help="$ac_help
447 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
448
449# Initialize some variables set by options.
450# The variables have the same names as the options, with
451# dashes changed to underlines.
452build=NONE
453cache_file=./config.cache
454exec_prefix=NONE
455host=NONE
456no_create=
457nonopt=NONE
458no_recursion=
459prefix=NONE
460program_prefix=NONE
461program_suffix=NONE
462program_transform_name=s,x,x,
463silent=
464site=
465srcdir=
466target=NONE
467verbose=
468x_includes=NONE
469x_libraries=NONE
470bindir='${exec_prefix}/bin'
471sbindir='${exec_prefix}/sbin'
472libexecdir='${exec_prefix}/libexec'
473datadir='${prefix}/share'
474sysconfdir='${prefix}/etc'
475sharedstatedir='${prefix}/com'
476localstatedir='${prefix}/var'
477libdir='${exec_prefix}/lib'
478includedir='${prefix}/include'
479oldincludedir='/usr/include'
480infodir='${prefix}/info'
481mandir='${prefix}/man'
482
483# Initialize some other variables.
484subdirs=
485MFLAGS= MAKEFLAGS=
486SHELL=${CONFIG_SHELL-/bin/sh}
487# Maximum number of lines to put in a shell here document.
488ac_max_here_lines=12
489
490ac_prev=
491for ac_option
492do
493
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
497 ac_prev=
498 continue
499 fi
500
501 case "$ac_option" in
502 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
503 *) ac_optarg= ;;
504 esac
505
506 # Accept the important Cygnus configure options, so we can diagnose typos.
507
508 case "$ac_option" in
509
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
511 ac_prev=bindir ;;
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
513 bindir="$ac_optarg" ;;
514
515 -build | --build | --buil | --bui | --bu)
516 ac_prev=build ;;
517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518 build="$ac_optarg" ;;
519
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525 cache_file="$ac_optarg" ;;
526
527 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528 ac_prev=datadir ;;
529 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530 | --da=*)
531 datadir="$ac_optarg" ;;
532
533 -disable-* | --disable-*)
534 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
538 fi
539 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
540 eval "enable_${ac_feature}=no" ;;
541
542 -enable-* | --enable-*)
543 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
544 # Reject names that are not valid shell variable names.
545 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
546 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
547 fi
548 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
549 case "$ac_option" in
550 *=*) ;;
551 *) ac_optarg=yes ;;
552 esac
553 eval "enable_${ac_feature}='$ac_optarg'" ;;
554
555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557 | --exec | --exe | --ex)
558 ac_prev=exec_prefix ;;
559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561 | --exec=* | --exe=* | --ex=*)
562 exec_prefix="$ac_optarg" ;;
563
564 -gas | --gas | --ga | --g)
565 # Obsolete; use --with-gas.
566 with_gas=yes ;;
567
568 -help | --help | --hel | --he)
569 # Omit some internal or obsolete options to make the list less imposing.
570 # This message is too long to be a string in the A/UX 3.1 sh.
571 cat << EOF
572Usage: configure [options] [host]
573Options: [defaults in brackets after descriptions]
574Configuration:
575 --cache-file=FILE cache test results in FILE
576 --help print this message
577 --no-create do not create output files
578 --quiet, --silent do not print \`checking...' messages
579 --version print the version of autoconf that created configure
580Directory and file names:
581 --prefix=PREFIX install architecture-independent files in PREFIX
582 [$ac_default_prefix]
583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
584 [same as prefix]
585 --bindir=DIR user executables in DIR [EPREFIX/bin]
586 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
587 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
588 --datadir=DIR read-only architecture-independent data in DIR
589 [PREFIX/share]
590 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
591 --sharedstatedir=DIR modifiable architecture-independent data in DIR
592 [PREFIX/com]
593 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
594 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
595 --includedir=DIR C header files in DIR [PREFIX/include]
596 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
597 --infodir=DIR info documentation in DIR [PREFIX/info]
598 --mandir=DIR man documentation in DIR [PREFIX/man]
599 --srcdir=DIR find the sources in DIR [configure dir or ..]
600 --program-prefix=PREFIX prepend PREFIX to installed program names
601 --program-suffix=SUFFIX append SUFFIX to installed program names
602 --program-transform-name=PROGRAM
603 run sed PROGRAM on installed program names
604EOF
605 cat << EOF
606Host type:
607 --build=BUILD configure for building on BUILD [BUILD=HOST]
608 --host=HOST configure for HOST [guessed]
609 --target=TARGET configure for TARGET [TARGET=HOST]
610Features and packages:
611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
615 --x-includes=DIR X include files are in DIR
616 --x-libraries=DIR X library files are in DIR
617EOF
618 if test -n "$ac_help"; then
619 echo "--enable and --with options recognized:$ac_help"
620 fi
621 exit 0 ;;
622
623 -host | --host | --hos | --ho)
624 ac_prev=host ;;
625 -host=* | --host=* | --hos=* | --ho=*)
626 host="$ac_optarg" ;;
627
628 -includedir | --includedir | --includedi | --included | --include \
629 | --includ | --inclu | --incl | --inc)
630 ac_prev=includedir ;;
631 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632 | --includ=* | --inclu=* | --incl=* | --inc=*)
633 includedir="$ac_optarg" ;;
634
635 -infodir | --infodir | --infodi | --infod | --info | --inf)
636 ac_prev=infodir ;;
637 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
638 infodir="$ac_optarg" ;;
639
640 -libdir | --libdir | --libdi | --libd)
641 ac_prev=libdir ;;
642 -libdir=* | --libdir=* | --libdi=* | --libd=*)
643 libdir="$ac_optarg" ;;
644
645 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646 | --libexe | --libex | --libe)
647 ac_prev=libexecdir ;;
648 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649 | --libexe=* | --libex=* | --libe=*)
650 libexecdir="$ac_optarg" ;;
651
652 -localstatedir | --localstatedir | --localstatedi | --localstated \
653 | --localstate | --localstat | --localsta | --localst \
654 | --locals | --local | --loca | --loc | --lo)
655 ac_prev=localstatedir ;;
656 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
659 localstatedir="$ac_optarg" ;;
660
661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662 ac_prev=mandir ;;
663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
664 mandir="$ac_optarg" ;;
665
666 -nfp | --nfp | --nf)
667 # Obsolete; use --without-fp.
668 with_fp=no ;;
669
670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671 | --no-cr | --no-c)
672 no_create=yes ;;
673
674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676 no_recursion=yes ;;
677
678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680 | --oldin | --oldi | --old | --ol | --o)
681 ac_prev=oldincludedir ;;
682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
685 oldincludedir="$ac_optarg" ;;
686
687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688 ac_prev=prefix ;;
689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
690 prefix="$ac_optarg" ;;
691
692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
693 | --program-pre | --program-pr | --program-p)
694 ac_prev=program_prefix ;;
695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
697 program_prefix="$ac_optarg" ;;
698
699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
700 | --program-suf | --program-su | --program-s)
701 ac_prev=program_suffix ;;
702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
704 program_suffix="$ac_optarg" ;;
705
706 -program-transform-name | --program-transform-name \
707 | --program-transform-nam | --program-transform-na \
708 | --program-transform-n | --program-transform- \
709 | --program-transform | --program-transfor \
710 | --program-transfo | --program-transf \
711 | --program-trans | --program-tran \
712 | --progr-tra | --program-tr | --program-t)
713 ac_prev=program_transform_name ;;
714 -program-transform-name=* | --program-transform-name=* \
715 | --program-transform-nam=* | --program-transform-na=* \
716 | --program-transform-n=* | --program-transform-=* \
717 | --program-transform=* | --program-transfor=* \
718 | --program-transfo=* | --program-transf=* \
719 | --program-trans=* | --program-tran=* \
720 | --progr-tra=* | --program-tr=* | --program-t=*)
721 program_transform_name="$ac_optarg" ;;
722
723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724 | -silent | --silent | --silen | --sile | --sil)
725 silent=yes ;;
726
727 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728 ac_prev=sbindir ;;
729 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730 | --sbi=* | --sb=*)
731 sbindir="$ac_optarg" ;;
732
733 -sharedstatedir | --sharedstatedir | --sharedstatedi \
734 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735 | --sharedst | --shareds | --shared | --share | --shar \
736 | --sha | --sh)
737 ac_prev=sharedstatedir ;;
738 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741 | --sha=* | --sh=*)
742 sharedstatedir="$ac_optarg" ;;
743
744 -site | --site | --sit)
745 ac_prev=site ;;
746 -site=* | --site=* | --sit=*)
747 site="$ac_optarg" ;;
748
749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750 ac_prev=srcdir ;;
751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
752 srcdir="$ac_optarg" ;;
753
754 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755 | --syscon | --sysco | --sysc | --sys | --sy)
756 ac_prev=sysconfdir ;;
757 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
759 sysconfdir="$ac_optarg" ;;
760
761 -target | --target | --targe | --targ | --tar | --ta | --t)
762 ac_prev=target ;;
763 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
764 target="$ac_optarg" ;;
765
766 -v | -verbose | --verbose | --verbos | --verbo | --verb)
767 verbose=yes ;;
768
769 -version | --version | --versio | --versi | --vers)
770 echo "configure generated by autoconf version 2.13"
771 exit 0 ;;
772
773 -with-* | --with-*)
774 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
775 # Reject names that are not valid shell variable names.
776 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
777 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
778 fi
779 ac_package=`echo $ac_package| sed 's/-/_/g'`
780 case "$ac_option" in
781 *=*) ;;
782 *) ac_optarg=yes ;;
783 esac
784 eval "with_${ac_package}='$ac_optarg'" ;;
785
786 -without-* | --without-*)
787 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
788 # Reject names that are not valid shell variable names.
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
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 eval "with_${ac_package}=no" ;;
794
795 --x)
796 # Obsolete; use --with-x.
797 with_x=yes ;;
798
799 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
800 | --x-incl | --x-inc | --x-in | --x-i)
801 ac_prev=x_includes ;;
802 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
803 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
804 x_includes="$ac_optarg" ;;
805
806 -x-libraries | --x-libraries | --x-librarie | --x-librari \
807 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
808 ac_prev=x_libraries ;;
809 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
810 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
811 x_libraries="$ac_optarg" ;;
812
813 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
814 ;;
815
816 *)
817 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
818 echo "configure: warning: $ac_option: invalid host type" 1>&2
819 fi
820 if test "x$nonopt" != xNONE; then
821 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
822 fi
823 nonopt="$ac_option"
824 ;;
825
826 esac
827done
828
829if test -n "$ac_prev"; then
830 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
831fi
832
833trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
834
835# File descriptor usage:
836# 0 standard input
837# 1 file creation
838# 2 errors and warnings
839# 3 some systems may open it to /dev/tty
840# 4 used on the Kubota Titan
841# 6 checking for... messages and results
842# 5 compiler messages saved in config.log
843if test "$silent" = yes; then
844 exec 6>/dev/null
845else
846 exec 6>&1
847fi
848exec 5>./config.log
849
850echo "\
851This file contains any messages produced by compilers while
852running configure, to aid debugging if configure makes a mistake.
853" 1>&5
854
855# Strip out --no-create and --no-recursion so they do not pile up.
856# Also quote any args containing shell metacharacters.
857ac_configure_args=
858for ac_arg
859do
860 case "$ac_arg" in
861 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862 | --no-cr | --no-c) ;;
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
865 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
866 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
867 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
868 esac
869done
870
871# NLS nuisances.
872# Only set these to C if already set. These must not be set unconditionally
873# because not all systems understand e.g. LANG=C (notably SCO).
874# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
875# Non-C LC_CTYPE values break the ctype check.
876if test "${LANG+set}" = set; then LANG=C; export LANG; fi
877if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
878if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
879if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
880
881# confdefs.h avoids OS command line length limits that DEFS can exceed.
882rm -rf conftest* confdefs.h
883# AIX cpp loses on an empty file, so make sure it contains at least a newline.
884echo > confdefs.h
885
886# A filename unique to this package, relative to the directory that
887# configure is in, which we can look for to find out if srcdir is correct.
888ac_unique_file=wx-config.in
889
890# Find the source files, if location was not specified.
891if test -z "$srcdir"; then
892 ac_srcdir_defaulted=yes
893 # Try the directory containing this script, then its parent.
894 ac_prog=$0
895 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
896 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
897 srcdir=$ac_confdir
898 if test ! -r $srcdir/$ac_unique_file; then
899 srcdir=..
900 fi
901else
902 ac_srcdir_defaulted=no
903fi
904if test ! -r $srcdir/$ac_unique_file; then
905 if test "$ac_srcdir_defaulted" = yes; then
906 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
907 else
908 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
909 fi
910fi
911srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
912
913# Prefer explicitly selected file to automatically selected ones.
914if test -z "$CONFIG_SITE"; then
915 if test "x$prefix" != xNONE; then
916 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
917 else
918 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
919 fi
920fi
921for ac_site_file in $CONFIG_SITE; do
922 if test -r "$ac_site_file"; then
923 echo "loading site script $ac_site_file"
924 . "$ac_site_file"
925 fi
926done
927
928if test -r "$cache_file"; then
929 echo "loading cache $cache_file"
930 . $cache_file
931else
932 echo "creating cache $cache_file"
933 > $cache_file
934fi
935
936ac_ext=c
937# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938ac_cpp='$CPP $CPPFLAGS'
939ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941cross_compiling=$ac_cv_prog_cc_cross
942
943ac_exeext=
944ac_objext=o
945if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
946 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
947 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
948 ac_n= ac_c='
949' ac_t=' '
950 else
951 ac_n=-n ac_c= ac_t=
952 fi
953else
954 ac_n= ac_c='\c' ac_t=
955fi
956
957
958
959ac_aux_dir=
960for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
962 ac_aux_dir=$ac_dir
963 ac_install_sh="$ac_aux_dir/install-sh -c"
964 break
965 elif test -f $ac_dir/install.sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install.sh -c"
968 break
969 fi
970done
971if test -z "$ac_aux_dir"; then
972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
973fi
974ac_config_guess=$ac_aux_dir/config.guess
975ac_config_sub=$ac_aux_dir/config.sub
976ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
977
978
979# Do some error checking and defaulting for the host and target type.
980# The inputs are:
981# configure --host=HOST --target=TARGET --build=BUILD NONOPT
982#
983# The rules are:
984# 1. You are not allowed to specify --host, --target, and nonopt at the
985# same time.
986# 2. Host defaults to nonopt.
987# 3. If nonopt is not specified, then host defaults to the current host,
988# as determined by config.guess.
989# 4. Target and build default to nonopt.
990# 5. If nonopt is not specified, then target and build default to host.
991
992# The aliases save the names the user supplied, while $host etc.
993# will get canonicalized.
994case $host---$target---$nonopt in
995NONE---*---* | *---NONE---* | *---*---NONE) ;;
996*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997esac
998
999
1000# Make sure we can run config.sub.
1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003fi
1004
1005echo $ac_n "checking host system type""... $ac_c" 1>&6
1006echo "configure:1007: checking host system type" >&5
1007
1008host_alias=$host
1009case "$host_alias" in
1010NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018esac
1019
1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024echo "$ac_t""$host" 1>&6
1025
1026echo $ac_n "checking target system type""... $ac_c" 1>&6
1027echo "configure:1028: checking target system type" >&5
1028
1029target_alias=$target
1030case "$target_alias" in
1031NONE)
1032 case $nonopt in
1033 NONE) target_alias=$host_alias ;;
1034 *) target_alias=$nonopt ;;
1035 esac ;;
1036esac
1037
1038target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042echo "$ac_t""$target" 1>&6
1043
1044echo $ac_n "checking build system type""... $ac_c" 1>&6
1045echo "configure:1046: checking build system type" >&5
1046
1047build_alias=$build
1048case "$build_alias" in
1049NONE)
1050 case $nonopt in
1051 NONE) build_alias=$host_alias ;;
1052 *) build_alias=$nonopt ;;
1053 esac ;;
1054esac
1055
1056build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060echo "$ac_t""$build" 1>&6
1061
1062test "$host_alias" != "$target_alias" &&
1063 test "$program_prefix$program_suffix$program_transform_name" = \
1064 NONENONEs,x,x, &&
1065 program_prefix=${target_alias}-
1066
1067
1068
1069WX_MAJOR_VERSION_NUMBER=2
1070WX_MINOR_VERSION_NUMBER=3
1071WX_RELEASE_NUMBER=3
1072
1073WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1074WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1075
1076WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1077
1078WX_CURRENT=2
1079WX_REVISION=0
1080WX_AGE=0
1081
1082
1083
1084USE_UNIX=1
1085USE_WIN32=0
1086USE_DOS=0
1087USE_BEOS=0
1088USE_MAC=0
1089
1090USE_LINUX=
1091USE_SGI=
1092USE_HPUX=
1093USE_SYSV=
1094USE_SVR4=
1095USE_AIX=
1096USE_SUN=
1097USE_SOLARIS=
1098USE_SUNOS=
1099USE_ALPHA=
1100USE_OSF=
1101USE_BSD=
1102USE_DARWIN=
1103USE_FREEBSD=
1104USE_OPENBSD=
1105USE_NETBSD=
1106USE_VMS=
1107USE_ULTRIX=
1108USE_DATA_GENERAL=
1109
1110NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1111
1112ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1113
1114DEFAULT_wxUSE_GTK=0
1115DEFAULT_wxUSE_MAC=0
1116DEFAULT_wxUSE_MGL=0
1117DEFAULT_wxUSE_MICROWIN=0
1118DEFAULT_wxUSE_MOTIF=0
1119DEFAULT_wxUSE_MSW=0
1120DEFAULT_wxUSE_PM=0
1121DEFAULT_wxUSE_WINE=0
1122DEFAULT_wxUSE_X11=0
1123
1124DEFAULT_DEFAULT_wxUSE_GTK=0
1125DEFAULT_DEFAULT_wxUSE_MAC=0
1126DEFAULT_DEFAULT_wxUSE_MGL=0
1127DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1128DEFAULT_DEFAULT_wxUSE_MOTIF=0
1129DEFAULT_DEFAULT_wxUSE_MSW=0
1130DEFAULT_DEFAULT_wxUSE_PM=0
1131DEFAULT_DEFAULT_wxUSE_WINE=0
1132DEFAULT_DEFAULT_wxUSE_X11=0
1133
1134PROGRAM_EXT=
1135SO_SUFFIX=so
1136
1137case "${host}" in
1138 *-hp-hpux* )
1139 USE_HPUX=1
1140 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1141 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1142 SO_SUFFIX=sl
1143 cat >> confdefs.h <<\EOF
1144#define __HPUX__ 1
1145EOF
1146
1147 ;;
1148 *-*-linux* )
1149 USE_LINUX=1
1150 cat >> confdefs.h <<\EOF
1151#define __LINUX__ 1
1152EOF
1153
1154 TMP=`uname -m`
1155 if test "x$TMP" = "xalpha"; then
1156 USE_ALPHA=1
1157 cat >> confdefs.h <<\EOF
1158#define __ALPHA__ 1
1159EOF
1160
1161 fi
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-irix5* | *-*-irix6* )
1165 USE_SGI=1
1166 USE_SVR4=1
1167 cat >> confdefs.h <<\EOF
1168#define __SGI__ 1
1169EOF
1170
1171 cat >> confdefs.h <<\EOF
1172#define __SVR4__ 1
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1176 ;;
1177 *-*-solaris2* )
1178 USE_SUN=1
1179 USE_SOLARIS=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182#define __SUN__ 1
1183EOF
1184
1185 cat >> confdefs.h <<\EOF
1186#define __SOLARIS__ 1
1187EOF
1188
1189 cat >> confdefs.h <<\EOF
1190#define __SVR4__ 1
1191EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1195 ;;
1196 *-*-sunos4* )
1197 USE_SUN=1
1198 USE_SUNOS=1
1199 USE_BSD=1
1200 cat >> confdefs.h <<\EOF
1201#define __SUN__ 1
1202EOF
1203
1204 cat >> confdefs.h <<\EOF
1205#define __SUNOS__ 1
1206EOF
1207
1208 cat >> confdefs.h <<\EOF
1209#define __BSD__ 1
1210EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
1214 *-*-freebsd*)
1215 USE_BSD=1
1216 USE_FREEBSD=1
1217 cat >> confdefs.h <<\EOF
1218#define __FREEBSD__ 1
1219EOF
1220
1221 cat >> confdefs.h <<\EOF
1222#define __BSD__ 1
1223EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-openbsd*)
1228 USE_BSD=1
1229 USE_OPENBSD=1
1230 cat >> confdefs.h <<\EOF
1231#define __FREEBSD__ 1
1232EOF
1233
1234 cat >> confdefs.h <<\EOF
1235#define __OPENBSD__ 1
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-netbsd*)
1241 USE_BSD=1
1242 USE_NETBSD=1
1243 cat >> confdefs.h <<\EOF
1244#define __FREEBSD__ 1
1245EOF
1246
1247 cat >> confdefs.h <<\EOF
1248#define __NETBSD__ 1
1249EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-osf* )
1254 USE_ALPHA=1
1255 USE_OSF=1
1256 cat >> confdefs.h <<\EOF
1257#define __ALPHA__ 1
1258EOF
1259
1260 cat >> confdefs.h <<\EOF
1261#define __OSF__ 1
1262EOF
1263
1264 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1265 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1266 ;;
1267 *-*-dgux5* )
1268 USE_ALPHA=1
1269 USE_SVR4=1
1270 cat >> confdefs.h <<\EOF
1271#define __ALPHA__ 1
1272EOF
1273
1274 cat >> confdefs.h <<\EOF
1275#define __SVR4__ 1
1276EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 ;;
1280 *-*-sysv5* )
1281 USE_SYSV=1
1282 USE_SVR4=1
1283 cat >> confdefs.h <<\EOF
1284#define __SYSV__ 1
1285EOF
1286
1287 cat >> confdefs.h <<\EOF
1288#define __SVR4__ 1
1289EOF
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-aix* )
1294 USE_AIX=1
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 SO_SUFFIX=a
1298 cat >> confdefs.h <<\EOF
1299#define __AIX__ 1
1300EOF
1301
1302 cat >> confdefs.h <<\EOF
1303#define __SYSV__ 1
1304EOF
1305
1306 cat >> confdefs.h <<\EOF
1307#define __SVR4__ 1
1308EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312
1313 *-*-cygwin* | *-*-mingw32* )
1314 SO_SUFFIX=dll
1315 PROGRAM_EXT=".exe"
1316 RESCOMP=windres
1317 DEFAULT_DEFAULT_wxUSE_MSW=1
1318 ;;
1319
1320 *-pc-msdosdjgpp )
1321 USE_UNIX=0
1322 USE_DOS=1
1323 cat >> confdefs.h <<\EOF
1324#define __DOS__ 1
1325EOF
1326
1327 PROGRAM_EXT=".exe"
1328 DEFAULT_DEFAULT_wxUSE_MGL=1
1329 ;;
1330
1331 *-pc-os2_emx | *-pc-os2-emx )
1332 cat >> confdefs.h <<\EOF
1333#define __EMX__ 1
1334EOF
1335
1336 PROGRAM_EXT=".exe"
1337 DEFAULT_DEFAULT_wxUSE_PM=1
1338 LIBS="$LIBS -lstdcpp"
1339 ;;
1340
1341 powerpc-*-darwin* )
1342 USE_BSD=1
1343 USE_DARWIN=1
1344 SO_SUFFIX=dylib
1345 cat >> confdefs.h <<\EOF
1346#define __BSD__ 1
1347EOF
1348
1349 cat >> confdefs.h <<\EOF
1350#define __DARWIN__ 1
1351EOF
1352
1353 cat >> confdefs.h <<\EOF
1354#define __POWERPC__ 1
1355EOF
1356
1357 DEFAULT_DEFAULT_wxUSE_MAC=1
1358 ;;
1359
1360 *-*-beos* )
1361 USE_BEOS=1
1362 cat >> confdefs.h <<\EOF
1363#define __BEOS__ 1
1364EOF
1365
1366 ;;
1367
1368 *)
1369 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1370esac
1371
1372
1373
1374
1375 wx_arg_cache_file="configarg.cache"
1376 echo "loading argument cache $wx_arg_cache_file"
1377 rm -f ${wx_arg_cache_file}.tmp
1378 touch ${wx_arg_cache_file}.tmp
1379 touch ${wx_arg_cache_file}
1380
1381
1382DEBUG_CONFIGURE=0
1383if test $DEBUG_CONFIGURE = 1; then
1384 DEFAULT_wxUSE_UNIVERSAL=no
1385
1386 DEFAULT_wxUSE_NANOX=no
1387
1388 DEFAULT_wxUSE_THREADS=yes
1389
1390 DEFAULT_wxUSE_SHARED=yes
1391 DEFAULT_wxUSE_SONAME=no
1392 DEFAULT_wxUSE_OPTIMISE=no
1393 DEFAULT_wxUSE_PROFILE=no
1394 DEFAULT_wxUSE_NO_DEPS=no
1395 DEFAULT_wxUSE_NO_RTTI=no
1396 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1397 DEFAULT_wxUSE_PERMISSIVE=no
1398 DEFAULT_wxUSE_DEBUG_FLAG=yes
1399 DEFAULT_wxUSE_DEBUG_INFO=yes
1400 DEFAULT_wxUSE_DEBUG_GDB=yes
1401 DEFAULT_wxUSE_MEM_TRACING=no
1402 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1403 DEFAULT_wxUSE_DMALLOC=no
1404 DEFAULT_wxUSE_PRECOMP=no
1405 DEFAULT_wxUSE_APPLE_IEEE=no
1406
1407 DEFAULT_wxUSE_LOG=yes
1408 DEFAULT_wxUSE_LOGWINDOW=no
1409 DEFAULT_wxUSE_LOGGUI=no
1410 DEFAULT_wxUSE_LOGDIALOG=no
1411
1412 DEFAULT_wxUSE_GUI=yes
1413 DEFAULT_wxUSE_CONTROLS=no
1414
1415 DEFAULT_wxUSE_REGEX=no
1416 DEFAULT_wxUSE_ZLIB=no
1417 DEFAULT_wxUSE_LIBPNG=no
1418 DEFAULT_wxUSE_LIBJPEG=no
1419 DEFAULT_wxUSE_LIBTIFF=no
1420 DEFAULT_wxUSE_ODBC=no
1421 DEFAULT_wxUSE_OPENGL=no
1422
1423 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1424 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1425 DEFAULT_wxUSE_STD_IOSTREAM=no
1426 DEFAULT_wxUSE_CMDLINE_PARSER=no
1427 DEFAULT_wxUSE_DATETIME=no
1428 DEFAULT_wxUSE_TIMEDATE=no
1429 DEFAULT_wxUSE_TIMER=no
1430 DEFAULT_wxUSE_STOPWATCH=no
1431 DEFAULT_wxUSE_FILE=no
1432 DEFAULT_wxUSE_FFILE=no
1433 DEFAULT_wxUSE_TEXTBUFFER=no
1434 DEFAULT_wxUSE_TEXTFILE=no
1435 DEFAULT_wxUSE_WAVE=no
1436 DEFAULT_wxUSE_INTL=no
1437 DEFAULT_wxUSE_CONFIG=no
1438 DEFAULT_wxUSE_FONTMAP=no
1439 DEFAULT_wxUSE_STREAMS=no
1440 DEFAULT_wxUSE_SOCKETS=no
1441 DEFAULT_wxUSE_DIALUP_MANAGER=no
1442 DEFAULT_wxUSE_JOYSTICK=no
1443 DEFAULT_wxUSE_DYNLIB_CLASS=no
1444 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1445 DEFAULT_wxUSE_LONGLONG=no
1446 DEFAULT_wxUSE_GEOMETRY=no
1447
1448 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1449 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1450 DEFAULT_wxUSE_POSTSCRIPT=no
1451
1452 DEFAULT_wxUSE_X_RESOURCES=no
1453 DEFAULT_wxUSE_CLIPBOARD=no
1454 DEFAULT_wxUSE_TOOLTIPS=no
1455 DEFAULT_wxUSE_DRAG_AND_DROP=no
1456 DEFAULT_wxUSE_DRAGIMAGE=no
1457 DEFAULT_wxUSE_SPLINES=no
1458
1459 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1460 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1461 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1462
1463 DEFAULT_wxUSE_PROLOGIO=no
1464 DEFAULT_wxUSE_RESOURCES=no
1465 DEFAULT_wxUSE_CONSTRAINTS=no
1466 DEFAULT_wxUSE_IPC=no
1467 DEFAULT_wxUSE_HELP=no
1468 DEFAULT_wxUSE_MS_HTML_HELP=no
1469 DEFAULT_wxUSE_WXHTML_HELP=no
1470 DEFAULT_wxUSE_TREELAYOUT=no
1471 DEFAULT_wxUSE_METAFILE=no
1472 DEFAULT_wxUSE_MIMETYPE=no
1473 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1474 DEFAULT_wxUSE_PROTOCOL=no
1475 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1476 DEFAULT_wxUSE_PROTOCOL_FTP=no
1477 DEFAULT_wxUSE_PROTOCOL_FILE=no
1478 DEFAULT_wxUSE_URL=no
1479
1480 DEFAULT_wxUSE_COMMONDLGS=no
1481 DEFAULT_wxUSE_CHOICEDLG=no
1482 DEFAULT_wxUSE_COLOURDLG=no
1483 DEFAULT_wxUSE_DIRDLG=no
1484 DEFAULT_wxUSE_FILEDLG=no
1485 DEFAULT_wxUSE_FINDREPLDLG=no
1486 DEFAULT_wxUSE_FONTDLG=no
1487 DEFAULT_wxUSE_MSGDLG=no
1488 DEFAULT_wxUSE_NUMBERDLG=no
1489 DEFAULT_wxUSE_TEXTDLG=no
1490 DEFAULT_wxUSE_SPLASH=no
1491 DEFAULT_wxUSE_STARTUP_TIPS=no
1492 DEFAULT_wxUSE_PROGRESSDLG=no
1493 DEFAULT_wxUSE_WIZARDDLG=no
1494
1495 DEFAULT_wxUSE_MENUS=no
1496 DEFAULT_wxUSE_MINIFRAME=no
1497 DEFAULT_wxUSE_HTML=no
1498 DEFAULT_wxUSE_FILESYSTEM=no
1499 DEFAULT_wxUSE_FS_INET=no
1500 DEFAULT_wxUSE_FS_ZIP=no
1501 DEFAULT_wxUSE_BUSYINFO=no
1502 DEFAULT_wxUSE_ZIPSTREAM=no
1503 DEFAULT_wxUSE_VALIDATORS=no
1504
1505 DEFAULT_wxUSE_ACCEL=no
1506 DEFAULT_wxUSE_BUTTON=no
1507 DEFAULT_wxUSE_BMPBUTTON=no
1508 DEFAULT_wxUSE_CALCTRL=no
1509 DEFAULT_wxUSE_CARET=no
1510 DEFAULT_wxUSE_CHECKBOX=no
1511 DEFAULT_wxUSE_CHECKLST=no
1512 DEFAULT_wxUSE_CHOICE=no
1513 DEFAULT_wxUSE_COMBOBOX=no
1514 DEFAULT_wxUSE_GAUGE=no
1515 DEFAULT_wxUSE_GRID=no
1516 DEFAULT_wxUSE_NEW_GRID=no
1517 DEFAULT_wxUSE_IMAGLIST=no
1518 DEFAULT_wxUSE_LISTBOX=no
1519 DEFAULT_wxUSE_LISTCTRL=no
1520 DEFAULT_wxUSE_NOTEBOOK=no
1521 DEFAULT_wxUSE_PROPSHEET=no
1522 DEFAULT_wxUSE_RADIOBOX=no
1523 DEFAULT_wxUSE_RADIOBTN=no
1524 DEFAULT_wxUSE_SASH=no
1525 DEFAULT_wxUSE_SCROLLBAR=no
1526 DEFAULT_wxUSE_SLIDER=no
1527 DEFAULT_wxUSE_SPINBTN=no
1528 DEFAULT_wxUSE_SPINCTRL=no
1529 DEFAULT_wxUSE_SPLITTER=no
1530 DEFAULT_wxUSE_STATBMP=no
1531 DEFAULT_wxUSE_STATBOX=no
1532 DEFAULT_wxUSE_STATLINE=no
1533 DEFAULT_wxUSE_STATTEXT=no
1534 DEFAULT_wxUSE_STATUSBAR=yes
1535 DEFAULT_wxUSE_TABDIALOG=no
1536 DEFAULT_wxUSE_TEXTCTRL=no
1537 DEFAULT_wxUSE_TOGGLEBTN=no
1538 DEFAULT_wxUSE_TOOLBAR=no
1539 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1540 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1541 DEFAULT_wxUSE_TREECTRL=no
1542 DEFAULT_wxUSE_POPUPWIN=no
1543 DEFAULT_wxUSE_TIPWINDOW=no
1544
1545 DEFAULT_wxUSE_UNICODE=no
1546 DEFAULT_wxUSE_UNICODE_MSLU=no
1547 DEFAULT_wxUSE_WCSRTOMBS=no
1548
1549 DEFAULT_wxUSE_PALETTE=no
1550 DEFAULT_wxUSE_IMAGE=no
1551 DEFAULT_wxUSE_GIF=no
1552 DEFAULT_wxUSE_PCX=no
1553 DEFAULT_wxUSE_PNM=no
1554 DEFAULT_wxUSE_IFF=no
1555 DEFAULT_wxUSE_XPM=no
1556 DEFAULT_wxUSE_ICO_CUR=no
1557else
1558 DEFAULT_wxUSE_UNIVERSAL=no
1559
1560 DEFAULT_wxUSE_NANOX=no
1561
1562 DEFAULT_wxUSE_THREADS=yes
1563
1564 DEFAULT_wxUSE_SHARED=yes
1565 DEFAULT_wxUSE_SONAME=no
1566 DEFAULT_wxUSE_OPTIMISE=yes
1567 DEFAULT_wxUSE_PROFILE=no
1568 DEFAULT_wxUSE_NO_DEPS=no
1569 DEFAULT_wxUSE_NO_RTTI=no
1570 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1571 DEFAULT_wxUSE_PERMISSIVE=no
1572 DEFAULT_wxUSE_DEBUG_FLAG=no
1573 DEFAULT_wxUSE_DEBUG_INFO=no
1574 DEFAULT_wxUSE_DEBUG_GDB=no
1575 DEFAULT_wxUSE_MEM_TRACING=no
1576 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1577 DEFAULT_wxUSE_DMALLOC=no
1578 DEFAULT_wxUSE_PRECOMP=no
1579 DEFAULT_wxUSE_APPLE_IEEE=yes
1580
1581 DEFAULT_wxUSE_LOG=yes
1582 DEFAULT_wxUSE_LOGWINDOW=yes
1583 DEFAULT_wxUSE_LOGGUI=yes
1584 DEFAULT_wxUSE_LOGDIALOG=yes
1585
1586 DEFAULT_wxUSE_GUI=yes
1587
1588 DEFAULT_wxUSE_REGEX=yes
1589 DEFAULT_wxUSE_ZLIB=yes
1590 DEFAULT_wxUSE_LIBPNG=yes
1591 DEFAULT_wxUSE_LIBJPEG=yes
1592 DEFAULT_wxUSE_LIBTIFF=yes
1593 DEFAULT_wxUSE_ODBC=no
1594 DEFAULT_wxUSE_OPENGL=no
1595
1596 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1597 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1598 DEFAULT_wxUSE_STD_IOSTREAM=no
1599 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1600 DEFAULT_wxUSE_DATETIME=yes
1601 DEFAULT_wxUSE_TIMEDATE=no
1602 DEFAULT_wxUSE_TIMER=yes
1603 DEFAULT_wxUSE_STOPWATCH=yes
1604 DEFAULT_wxUSE_FILE=yes
1605 DEFAULT_wxUSE_FFILE=yes
1606 DEFAULT_wxUSE_TEXTBUFFER=yes
1607 DEFAULT_wxUSE_TEXTFILE=yes
1608 DEFAULT_wxUSE_WAVE=no
1609 DEFAULT_wxUSE_INTL=yes
1610 DEFAULT_wxUSE_CONFIG=yes
1611 DEFAULT_wxUSE_FONTMAP=yes
1612 DEFAULT_wxUSE_STREAMS=yes
1613 DEFAULT_wxUSE_SOCKETS=yes
1614 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1615 DEFAULT_wxUSE_JOYSTICK=yes
1616 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1617 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1618 DEFAULT_wxUSE_LONGLONG=yes
1619 DEFAULT_wxUSE_GEOMETRY=yes
1620
1621 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1622 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1623 DEFAULT_wxUSE_POSTSCRIPT=yes
1624
1625 DEFAULT_wxUSE_X_RESOURCES=no
1626 DEFAULT_wxUSE_CLIPBOARD=yes
1627 DEFAULT_wxUSE_TOOLTIPS=yes
1628 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1629 DEFAULT_wxUSE_DRAGIMAGE=yes
1630 DEFAULT_wxUSE_SPLINES=yes
1631
1632 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1633 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1634 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1635
1636 DEFAULT_wxUSE_PROLOGIO=yes
1637 DEFAULT_wxUSE_RESOURCES=yes
1638 DEFAULT_wxUSE_CONSTRAINTS=yes
1639 DEFAULT_wxUSE_IPC=yes
1640 DEFAULT_wxUSE_HELP=yes
1641 DEFAULT_wxUSE_MS_HTML_HELP=yes
1642 DEFAULT_wxUSE_WXHTML_HELP=yes
1643 DEFAULT_wxUSE_TREELAYOUT=yes
1644 DEFAULT_wxUSE_METAFILE=yes
1645 DEFAULT_wxUSE_MIMETYPE=yes
1646 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1647 DEFAULT_wxUSE_PROTOCOL=yes
1648 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1649 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1650 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1651 DEFAULT_wxUSE_URL=yes
1652
1653 DEFAULT_wxUSE_COMMONDLGS=yes
1654 DEFAULT_wxUSE_CHOICEDLG=yes
1655 DEFAULT_wxUSE_COLOURDLG=yes
1656 DEFAULT_wxUSE_DIRDLG=yes
1657 DEFAULT_wxUSE_FILEDLG=yes
1658 DEFAULT_wxUSE_FINDREPLDLG=yes
1659 DEFAULT_wxUSE_FONTDLG=yes
1660 DEFAULT_wxUSE_MSGDLG=yes
1661 DEFAULT_wxUSE_NUMBERDLG=yes
1662 DEFAULT_wxUSE_TEXTDLG=yes
1663 DEFAULT_wxUSE_SPLASH=yes
1664 DEFAULT_wxUSE_STARTUP_TIPS=yes
1665 DEFAULT_wxUSE_PROGRESSDLG=yes
1666 DEFAULT_wxUSE_WIZARDDLG=yes
1667
1668 DEFAULT_wxUSE_MENUS=yes
1669 DEFAULT_wxUSE_MINIFRAME=yes
1670 DEFAULT_wxUSE_HTML=yes
1671 DEFAULT_wxUSE_FILESYSTEM=yes
1672 DEFAULT_wxUSE_FS_INET=yes
1673 DEFAULT_wxUSE_FS_ZIP=yes
1674 DEFAULT_wxUSE_BUSYINFO=yes
1675 DEFAULT_wxUSE_ZIPSTREAM=yes
1676 DEFAULT_wxUSE_VALIDATORS=yes
1677
1678 DEFAULT_wxUSE_ACCEL=yes
1679 DEFAULT_wxUSE_BUTTON=yes
1680 DEFAULT_wxUSE_BMPBUTTON=yes
1681 DEFAULT_wxUSE_CALCTRL=yes
1682 DEFAULT_wxUSE_CARET=yes
1683 DEFAULT_wxUSE_CHECKBOX=yes
1684 DEFAULT_wxUSE_CHECKLST=yes
1685 DEFAULT_wxUSE_CHOICE=yes
1686 DEFAULT_wxUSE_COMBOBOX=yes
1687 DEFAULT_wxUSE_GAUGE=yes
1688 DEFAULT_wxUSE_GRID=yes
1689 DEFAULT_wxUSE_NEW_GRID=yes
1690 DEFAULT_wxUSE_IMAGLIST=yes
1691 DEFAULT_wxUSE_LISTBOX=yes
1692 DEFAULT_wxUSE_LISTCTRL=yes
1693 DEFAULT_wxUSE_NOTEBOOK=yes
1694 DEFAULT_wxUSE_PROPSHEET=yes
1695 DEFAULT_wxUSE_RADIOBOX=yes
1696 DEFAULT_wxUSE_RADIOBTN=yes
1697 DEFAULT_wxUSE_SASH=yes
1698 DEFAULT_wxUSE_SCROLLBAR=yes
1699 DEFAULT_wxUSE_SLIDER=yes
1700 DEFAULT_wxUSE_SPINBTN=yes
1701 DEFAULT_wxUSE_SPINCTRL=yes
1702 DEFAULT_wxUSE_SPLITTER=yes
1703 DEFAULT_wxUSE_STATBMP=yes
1704 DEFAULT_wxUSE_STATBOX=yes
1705 DEFAULT_wxUSE_STATLINE=yes
1706 DEFAULT_wxUSE_STATTEXT=yes
1707 DEFAULT_wxUSE_STATUSBAR=yes
1708 DEFAULT_wxUSE_TABDIALOG=no
1709 DEFAULT_wxUSE_TEXTCTRL=yes
1710 DEFAULT_wxUSE_TOGGLEBTN=yes
1711 DEFAULT_wxUSE_TOOLBAR=yes
1712 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1713 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1714 DEFAULT_wxUSE_TREECTRL=yes
1715 DEFAULT_wxUSE_POPUPWIN=yes
1716 DEFAULT_wxUSE_TIPWINDOW=yes
1717
1718 DEFAULT_wxUSE_UNICODE=no
1719 DEFAULT_wxUSE_UNICODE_MSLU=yes
1720 DEFAULT_wxUSE_WCSRTOMBS=no
1721
1722 DEFAULT_wxUSE_PALETTE=yes
1723 DEFAULT_wxUSE_IMAGE=yes
1724 DEFAULT_wxUSE_GIF=yes
1725 DEFAULT_wxUSE_PCX=yes
1726 DEFAULT_wxUSE_IFF=no
1727 DEFAULT_wxUSE_PNM=yes
1728 DEFAULT_wxUSE_XPM=yes
1729 DEFAULT_wxUSE_ICO_CUR=yes
1730fi
1731
1732
1733
1734for toolkit in `echo $ALL_TOOLKITS`; do
1735 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1736 if test "x$LINE" != x ; then
1737 has_toolkit_in_cache=1
1738 eval "DEFAULT_$LINE"
1739 eval "CACHE_$toolkit=1"
1740 fi
1741done
1742
1743
1744
1745 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1746echo "configure:1747: checking for --enable-gui" >&5
1747 no_cache=0
1748 # Check whether --enable-gui or --disable-gui was given.
1749if test "${enable_gui+set}" = set; then
1750 enableval="$enable_gui"
1751
1752 if test "$enableval" = yes; then
1753 ac_cv_use_gui='wxUSE_GUI=yes'
1754 else
1755 ac_cv_use_gui='wxUSE_GUI=no'
1756 fi
1757
1758else
1759
1760 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
1767 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1768
1769fi
1770
1771
1772 eval "$ac_cv_use_gui"
1773 if test "$no_cache" != 1; then
1774 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1775 fi
1776
1777 if test "$wxUSE_GUI" = yes; then
1778 echo "$ac_t""yes" 1>&6
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782
1783
1784if test "$wxUSE_GUI" = "yes"; then
1785
1786
1787 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1788echo "configure:1789: checking for --enable-universal" >&5
1789 no_cache=0
1790 # Check whether --enable-universal or --disable-universal was given.
1791if test "${enable_universal+set}" = set; then
1792 enableval="$enable_universal"
1793
1794 if test "$enableval" = yes; then
1795 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1796 else
1797 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1798 fi
1799
1800else
1801
1802 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1803 if test "x$LINE" != x ; then
1804 eval "DEFAULT_$LINE"
1805 else
1806 no_cache=1
1807 fi
1808
1809 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1810
1811fi
1812
1813
1814 eval "$ac_cv_use_universal"
1815 if test "$no_cache" != 1; then
1816 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1817 fi
1818
1819 if test "$wxUSE_UNIVERSAL" = yes; then
1820 echo "$ac_t""yes" 1>&6
1821 else
1822 echo "$ac_t""no" 1>&6
1823 fi
1824
1825# Check whether --with-gtk or --without-gtk was given.
1826if test "${with_gtk+set}" = set; then
1827 withval="$with_gtk"
1828 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1829fi
1830
1831# Check whether --with-motif or --without-motif was given.
1832if test "${with_motif+set}" = set; then
1833 withval="$with_motif"
1834 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1835fi
1836
1837# Check whether --with-mac or --without-mac was given.
1838if test "${with_mac+set}" = set; then
1839 withval="$with_mac"
1840 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1841fi
1842
1843# Check whether --with-wine or --without-wine was given.
1844if test "${with_wine+set}" = set; then
1845 withval="$with_wine"
1846 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1847fi
1848
1849# Check whether --with-msw or --without-msw was given.
1850if test "${with_msw+set}" = set; then
1851 withval="$with_msw"
1852 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1853fi
1854
1855# Check whether --with-pm or --without-pm was given.
1856if test "${with_pm+set}" = set; then
1857 withval="$with_pm"
1858 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1859fi
1860
1861# Check whether --with-mgl or --without-mgl was given.
1862if test "${with_mgl+set}" = set; then
1863 withval="$with_mgl"
1864 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1865fi
1866
1867# Check whether --with-microwin or --without-microwin was given.
1868if test "${with_microwin+set}" = set; then
1869 withval="$with_microwin"
1870 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1871fi
1872
1873# Check whether --with-x11 or --without-x11 was given.
1874if test "${with_x11+set}" = set; then
1875 withval="$with_x11"
1876 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1877fi
1878
1879
1880 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1881echo "configure:1882: checking for --enable-nanox" >&5
1882 no_cache=0
1883 # Check whether --enable-nanox or --disable-nanox was given.
1884if test "${enable_nanox+set}" = set; then
1885 enableval="$enable_nanox"
1886
1887 if test "$enableval" = yes; then
1888 ac_cv_use_nanox='wxUSE_NANOX=yes'
1889 else
1890 ac_cv_use_nanox='wxUSE_NANOX=no'
1891 fi
1892
1893else
1894
1895 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1896 if test "x$LINE" != x ; then
1897 eval "DEFAULT_$LINE"
1898 else
1899 no_cache=1
1900 fi
1901
1902 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1903
1904fi
1905
1906
1907 eval "$ac_cv_use_nanox"
1908 if test "$no_cache" != 1; then
1909 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1910 fi
1911
1912 if test "$wxUSE_NANOX" = yes; then
1913 echo "$ac_t""yes" 1>&6
1914 else
1915 echo "$ac_t""no" 1>&6
1916 fi
1917
1918
1919# Check whether --enable-gtk2 or --disable-gtk2 was given.
1920if test "${enable_gtk2+set}" = set; then
1921 enableval="$enable_gtk2"
1922 wxUSE_GTK2="yes"
1923else
1924 wxUSE_GTK2="no"
1925fi
1926
1927
1928
1929 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1930echo "configure:1931: checking for --with-libpng" >&5
1931 no_cache=0
1932 # Check whether --with-libpng or --without-libpng was given.
1933if test "${with_libpng+set}" = set; then
1934 withval="$with_libpng"
1935
1936 if test "$withval" = yes; then
1937 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1938 elif test "$withval" = no; then
1939 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1940 elif test "$withval" = sys; then
1941 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1942 elif test "$withval" = builtin; then
1943 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1944 else
1945 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1946 fi
1947
1948else
1949
1950 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1958
1959fi
1960
1961
1962 eval "$ac_cv_use_libpng"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_LIBPNG" = yes; then
1968 echo "$ac_t""yes" 1>&6
1969 elif test "$wxUSE_LIBPNG" = no; then
1970 echo "$ac_t""no" 1>&6
1971 elif test "$wxUSE_LIBPNG" = sys; then
1972 echo "$ac_t""system version" 1>&6
1973 elif test "$wxUSE_LIBPNG" = builtin; then
1974 echo "$ac_t""builtin version" 1>&6
1975 else
1976 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1977 fi
1978
1979
1980 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1981echo "configure:1982: checking for --with-libjpeg" >&5
1982 no_cache=0
1983 # Check whether --with-libjpeg or --without-libjpeg was given.
1984if test "${with_libjpeg+set}" = set; then
1985 withval="$with_libjpeg"
1986
1987 if test "$withval" = yes; then
1988 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1989 elif test "$withval" = no; then
1990 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1991 elif test "$withval" = sys; then
1992 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1993 elif test "$withval" = builtin; then
1994 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1995 else
1996 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1997 fi
1998
1999else
2000
2001 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2002 if test "x$LINE" != x ; then
2003 eval "DEFAULT_$LINE"
2004 else
2005 no_cache=1
2006 fi
2007
2008 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2009
2010fi
2011
2012
2013 eval "$ac_cv_use_libjpeg"
2014 if test "$no_cache" != 1; then
2015 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2016 fi
2017
2018 if test "$wxUSE_LIBJPEG" = yes; then
2019 echo "$ac_t""yes" 1>&6
2020 elif test "$wxUSE_LIBJPEG" = no; then
2021 echo "$ac_t""no" 1>&6
2022 elif test "$wxUSE_LIBJPEG" = sys; then
2023 echo "$ac_t""system version" 1>&6
2024 elif test "$wxUSE_LIBJPEG" = builtin; then
2025 echo "$ac_t""builtin version" 1>&6
2026 else
2027 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2028 fi
2029
2030
2031 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2032echo "configure:2033: checking for --with-libtiff" >&5
2033 no_cache=0
2034 # Check whether --with-libtiff or --without-libtiff was given.
2035if test "${with_libtiff+set}" = set; then
2036 withval="$with_libtiff"
2037
2038 if test "$withval" = yes; then
2039 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2040 elif test "$withval" = no; then
2041 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2042 elif test "$withval" = sys; then
2043 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2044 elif test "$withval" = builtin; then
2045 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2046 else
2047 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2048 fi
2049
2050else
2051
2052 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2053 if test "x$LINE" != x ; then
2054 eval "DEFAULT_$LINE"
2055 else
2056 no_cache=1
2057 fi
2058
2059 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2060
2061fi
2062
2063
2064 eval "$ac_cv_use_libtiff"
2065 if test "$no_cache" != 1; then
2066 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2067 fi
2068
2069 if test "$wxUSE_LIBTIFF" = yes; then
2070 echo "$ac_t""yes" 1>&6
2071 elif test "$wxUSE_LIBTIFF" = no; then
2072 echo "$ac_t""no" 1>&6
2073 elif test "$wxUSE_LIBTIFF" = sys; then
2074 echo "$ac_t""system version" 1>&6
2075 elif test "$wxUSE_LIBTIFF" = builtin; then
2076 echo "$ac_t""builtin version" 1>&6
2077 else
2078 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2079 fi
2080
2081
2082 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2083echo "configure:2084: checking for --with-opengl" >&5
2084 no_cache=0
2085 # Check whether --with-opengl or --without-opengl was given.
2086if test "${with_opengl+set}" = set; then
2087 withval="$with_opengl"
2088
2089 if test "$withval" = yes; then
2090 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2091 else
2092 ac_cv_use_opengl='wxUSE_OPENGL=no'
2093 fi
2094
2095else
2096
2097 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2098 if test "x$LINE" != x ; then
2099 eval "DEFAULT_$LINE"
2100 else
2101 no_cache=1
2102 fi
2103
2104 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2105
2106fi
2107
2108
2109 eval "$ac_cv_use_opengl"
2110 if test "$no_cache" != 1; then
2111 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2112 fi
2113
2114 if test "$wxUSE_OPENGL" = yes; then
2115 echo "$ac_t""yes" 1>&6
2116 else
2117 echo "$ac_t""no" 1>&6
2118 fi
2119
2120
2121fi
2122
2123
2124 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2125echo "configure:2126: checking for --with-dmalloc" >&5
2126 no_cache=0
2127 # Check whether --with-dmalloc or --without-dmalloc was given.
2128if test "${with_dmalloc+set}" = set; then
2129 withval="$with_dmalloc"
2130
2131 if test "$withval" = yes; then
2132 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2133 else
2134 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2135 fi
2136
2137else
2138
2139 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2140 if test "x$LINE" != x ; then
2141 eval "DEFAULT_$LINE"
2142 else
2143 no_cache=1
2144 fi
2145
2146 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2147
2148fi
2149
2150
2151 eval "$ac_cv_use_dmalloc"
2152 if test "$no_cache" != 1; then
2153 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2154 fi
2155
2156 if test "$wxUSE_DMALLOC" = yes; then
2157 echo "$ac_t""yes" 1>&6
2158 else
2159 echo "$ac_t""no" 1>&6
2160 fi
2161
2162
2163 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2164echo "configure:2165: checking for --with-regex" >&5
2165 no_cache=0
2166 # Check whether --with-regex or --without-regex was given.
2167if test "${with_regex+set}" = set; then
2168 withval="$with_regex"
2169
2170 if test "$withval" = yes; then
2171 ac_cv_use_regex='wxUSE_REGEX=yes'
2172 elif test "$withval" = no; then
2173 ac_cv_use_regex='wxUSE_REGEX=no'
2174 elif test "$withval" = sys; then
2175 ac_cv_use_regex='wxUSE_REGEX=sys'
2176 elif test "$withval" = builtin; then
2177 ac_cv_use_regex='wxUSE_REGEX=builtin'
2178 else
2179 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2180 fi
2181
2182else
2183
2184 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
2191 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2192
2193fi
2194
2195
2196 eval "$ac_cv_use_regex"
2197 if test "$no_cache" != 1; then
2198 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2199 fi
2200
2201 if test "$wxUSE_REGEX" = yes; then
2202 echo "$ac_t""yes" 1>&6
2203 elif test "$wxUSE_REGEX" = no; then
2204 echo "$ac_t""no" 1>&6
2205 elif test "$wxUSE_REGEX" = sys; then
2206 echo "$ac_t""system version" 1>&6
2207 elif test "$wxUSE_REGEX" = builtin; then
2208 echo "$ac_t""builtin version" 1>&6
2209 else
2210 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2211 fi
2212
2213
2214 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2215echo "configure:2216: checking for --with-zlib" >&5
2216 no_cache=0
2217 # Check whether --with-zlib or --without-zlib was given.
2218if test "${with_zlib+set}" = set; then
2219 withval="$with_zlib"
2220
2221 if test "$withval" = yes; then
2222 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2223 elif test "$withval" = no; then
2224 ac_cv_use_zlib='wxUSE_ZLIB=no'
2225 elif test "$withval" = sys; then
2226 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2227 elif test "$withval" = builtin; then
2228 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2229 else
2230 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2231 fi
2232
2233else
2234
2235 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2236 if test "x$LINE" != x ; then
2237 eval "DEFAULT_$LINE"
2238 else
2239 no_cache=1
2240 fi
2241
2242 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2243
2244fi
2245
2246
2247 eval "$ac_cv_use_zlib"
2248 if test "$no_cache" != 1; then
2249 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2250 fi
2251
2252 if test "$wxUSE_ZLIB" = yes; then
2253 echo "$ac_t""yes" 1>&6
2254 elif test "$wxUSE_ZLIB" = no; then
2255 echo "$ac_t""no" 1>&6
2256 elif test "$wxUSE_ZLIB" = sys; then
2257 echo "$ac_t""system version" 1>&6
2258 elif test "$wxUSE_ZLIB" = builtin; then
2259 echo "$ac_t""builtin version" 1>&6
2260 else
2261 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2262 fi
2263
2264
2265 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2266echo "configure:2267: checking for --with-odbc" >&5
2267 no_cache=0
2268 # Check whether --with-odbc or --without-odbc was given.
2269if test "${with_odbc+set}" = set; then
2270 withval="$with_odbc"
2271
2272 if test "$withval" = yes; then
2273 ac_cv_use_odbc='wxUSE_ODBC=yes'
2274 else
2275 ac_cv_use_odbc='wxUSE_ODBC=no'
2276 fi
2277
2278else
2279
2280 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2281 if test "x$LINE" != x ; then
2282 eval "DEFAULT_$LINE"
2283 else
2284 no_cache=1
2285 fi
2286
2287 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2288
2289fi
2290
2291
2292 eval "$ac_cv_use_odbc"
2293 if test "$no_cache" != 1; then
2294 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2295 fi
2296
2297 if test "$wxUSE_ODBC" = yes; then
2298 echo "$ac_t""yes" 1>&6
2299 else
2300 echo "$ac_t""no" 1>&6
2301 fi
2302
2303
2304
2305
2306 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2307echo "configure:2308: checking for --enable-shared" >&5
2308 no_cache=0
2309 # Check whether --enable-shared or --disable-shared was given.
2310if test "${enable_shared+set}" = set; then
2311 enableval="$enable_shared"
2312
2313 if test "$enableval" = yes; then
2314 ac_cv_use_shared='wxUSE_SHARED=yes'
2315 else
2316 ac_cv_use_shared='wxUSE_SHARED=no'
2317 fi
2318
2319else
2320
2321 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2322 if test "x$LINE" != x ; then
2323 eval "DEFAULT_$LINE"
2324 else
2325 no_cache=1
2326 fi
2327
2328 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2329
2330fi
2331
2332
2333 eval "$ac_cv_use_shared"
2334 if test "$no_cache" != 1; then
2335 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2336 fi
2337
2338 if test "$wxUSE_SHARED" = yes; then
2339 echo "$ac_t""yes" 1>&6
2340 else
2341 echo "$ac_t""no" 1>&6
2342 fi
2343
2344
2345 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2346echo "configure:2347: checking for --enable-soname" >&5
2347 no_cache=0
2348 # Check whether --enable-soname or --disable-soname was given.
2349if test "${enable_soname+set}" = set; then
2350 enableval="$enable_soname"
2351
2352 if test "$enableval" = yes; then
2353 ac_cv_use_soname='wxUSE_SONAME=yes'
2354 else
2355 ac_cv_use_soname='wxUSE_SONAME=no'
2356 fi
2357
2358else
2359
2360 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
2367 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2368
2369fi
2370
2371
2372 eval "$ac_cv_use_soname"
2373 if test "$no_cache" != 1; then
2374 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2375 fi
2376
2377 if test "$wxUSE_SONAME" = yes; then
2378 echo "$ac_t""yes" 1>&6
2379 else
2380 echo "$ac_t""no" 1>&6
2381 fi
2382
2383
2384 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2385echo "configure:2386: checking for --enable-optimise" >&5
2386 no_cache=0
2387 # Check whether --enable-optimise or --disable-optimise was given.
2388if test "${enable_optimise+set}" = set; then
2389 enableval="$enable_optimise"
2390
2391 if test "$enableval" = yes; then
2392 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2393 else
2394 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2395 fi
2396
2397else
2398
2399 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2400 if test "x$LINE" != x ; then
2401 eval "DEFAULT_$LINE"
2402 else
2403 no_cache=1
2404 fi
2405
2406 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2407
2408fi
2409
2410
2411 eval "$ac_cv_use_optimise"
2412 if test "$no_cache" != 1; then
2413 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2414 fi
2415
2416 if test "$wxUSE_OPTIMISE" = yes; then
2417 echo "$ac_t""yes" 1>&6
2418 else
2419 echo "$ac_t""no" 1>&6
2420 fi
2421
2422
2423 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2424echo "configure:2425: checking for --enable-debug" >&5
2425 no_cache=0
2426 # Check whether --enable-debug or --disable-debug was given.
2427if test "${enable_debug+set}" = set; then
2428 enableval="$enable_debug"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_debug='wxUSE_DEBUG=yes'
2432 else
2433 ac_cv_use_debug='wxUSE_DEBUG=no'
2434 fi
2435
2436else
2437
2438 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2446
2447fi
2448
2449
2450 eval "$ac_cv_use_debug"
2451 if test "$no_cache" != 1; then
2452 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2453 fi
2454
2455 if test "$wxUSE_DEBUG" = yes; then
2456 echo "$ac_t""yes" 1>&6
2457 else
2458 echo "$ac_t""no" 1>&6
2459 fi
2460
2461
2462
2463 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2464echo "configure:2465: checking for --enable-precomp" >&5
2465 no_cache=0
2466 # Check whether --enable-precomp or --disable-precomp was given.
2467if test "${enable_precomp+set}" = set; then
2468 enableval="$enable_precomp"
2469
2470 if test "$enableval" = yes; then
2471 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2472 else
2473 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2474 fi
2475
2476else
2477
2478 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2479 if test "x$LINE" != x ; then
2480 eval "DEFAULT_$LINE"
2481 else
2482 no_cache=1
2483 fi
2484
2485 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2486
2487fi
2488
2489
2490 eval "$ac_cv_use_precomp"
2491 if test "$no_cache" != 1; then
2492 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2493 fi
2494
2495 if test "$wxUSE_PRECOMP" = yes; then
2496 echo "$ac_t""yes" 1>&6
2497 else
2498 echo "$ac_t""no" 1>&6
2499 fi
2500
2501
2502if test "$wxUSE_DEBUG" = "yes"; then
2503 DEFAULT_wxUSE_DEBUG_FLAG=yes
2504 DEFAULT_wxUSE_DEBUG_INFO=yes
2505elif test "$wxUSE_DEBUG" = "no"; then
2506 DEFAULT_wxUSE_DEBUG_FLAG=no
2507 DEFAULT_wxUSE_DEBUG_INFO=no
2508fi
2509
2510
2511 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2512echo "configure:2513: checking for --enable-debug_flag" >&5
2513 no_cache=0
2514 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2515if test "${enable_debug_flag+set}" = set; then
2516 enableval="$enable_debug_flag"
2517
2518 if test "$enableval" = yes; then
2519 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2520 else
2521 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2522 fi
2523
2524else
2525
2526 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2534
2535fi
2536
2537
2538 eval "$ac_cv_use_debug_flag"
2539 if test "$no_cache" != 1; then
2540 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2541 fi
2542
2543 if test "$wxUSE_DEBUG_FLAG" = yes; then
2544 echo "$ac_t""yes" 1>&6
2545 else
2546 echo "$ac_t""no" 1>&6
2547 fi
2548
2549
2550 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2551echo "configure:2552: checking for --enable-debug_info" >&5
2552 no_cache=0
2553 # Check whether --enable-debug_info or --disable-debug_info was given.
2554if test "${enable_debug_info+set}" = set; then
2555 enableval="$enable_debug_info"
2556
2557 if test "$enableval" = yes; then
2558 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2559 else
2560 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2561 fi
2562
2563else
2564
2565 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2566 if test "x$LINE" != x ; then
2567 eval "DEFAULT_$LINE"
2568 else
2569 no_cache=1
2570 fi
2571
2572 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2573
2574fi
2575
2576
2577 eval "$ac_cv_use_debug_info"
2578 if test "$no_cache" != 1; then
2579 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2580 fi
2581
2582 if test "$wxUSE_DEBUG_INFO" = yes; then
2583 echo "$ac_t""yes" 1>&6
2584 else
2585 echo "$ac_t""no" 1>&6
2586 fi
2587
2588
2589 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2590echo "configure:2591: checking for --enable-debug_gdb" >&5
2591 no_cache=0
2592 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2593if test "${enable_debug_gdb+set}" = set; then
2594 enableval="$enable_debug_gdb"
2595
2596 if test "$enableval" = yes; then
2597 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2598 else
2599 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2600 fi
2601
2602else
2603
2604 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2605 if test "x$LINE" != x ; then
2606 eval "DEFAULT_$LINE"
2607 else
2608 no_cache=1
2609 fi
2610
2611 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2612
2613fi
2614
2615
2616 eval "$ac_cv_use_debug_gdb"
2617 if test "$no_cache" != 1; then
2618 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2619 fi
2620
2621 if test "$wxUSE_DEBUG_GDB" = yes; then
2622 echo "$ac_t""yes" 1>&6
2623 else
2624 echo "$ac_t""no" 1>&6
2625 fi
2626
2627
2628 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2629echo "configure:2630: checking for --enable-debug_cntxt" >&5
2630 no_cache=0
2631 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2632if test "${enable_debug_cntxt+set}" = set; then
2633 enableval="$enable_debug_cntxt"
2634
2635 if test "$enableval" = yes; then
2636 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2637 else
2638 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2639 fi
2640
2641else
2642
2643 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2651
2652fi
2653
2654
2655 eval "$ac_cv_use_debug_cntxt"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2661 echo "$ac_t""yes" 1>&6
2662 else
2663 echo "$ac_t""no" 1>&6
2664 fi
2665
2666
2667 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2668echo "configure:2669: checking for --enable-mem_tracing" >&5
2669 no_cache=0
2670 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2671if test "${enable_mem_tracing+set}" = set; then
2672 enableval="$enable_mem_tracing"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2676 else
2677 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2678 fi
2679
2680else
2681
2682 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2690
2691fi
2692
2693
2694 eval "$ac_cv_use_mem_tracing"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_MEM_TRACING" = yes; then
2700 echo "$ac_t""yes" 1>&6
2701 else
2702 echo "$ac_t""no" 1>&6
2703 fi
2704
2705
2706 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2707echo "configure:2708: checking for --enable-profile" >&5
2708 no_cache=0
2709 # Check whether --enable-profile or --disable-profile was given.
2710if test "${enable_profile+set}" = set; then
2711 enableval="$enable_profile"
2712
2713 if test "$enableval" = yes; then
2714 ac_cv_use_profile='wxUSE_PROFILE=yes'
2715 else
2716 ac_cv_use_profile='wxUSE_PROFILE=no'
2717 fi
2718
2719else
2720
2721 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2722 if test "x$LINE" != x ; then
2723 eval "DEFAULT_$LINE"
2724 else
2725 no_cache=1
2726 fi
2727
2728 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2729
2730fi
2731
2732
2733 eval "$ac_cv_use_profile"
2734 if test "$no_cache" != 1; then
2735 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2736 fi
2737
2738 if test "$wxUSE_PROFILE" = yes; then
2739 echo "$ac_t""yes" 1>&6
2740 else
2741 echo "$ac_t""no" 1>&6
2742 fi
2743
2744
2745 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2746echo "configure:2747: checking for --enable-no_rtti" >&5
2747 no_cache=0
2748 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2749if test "${enable_no_rtti+set}" = set; then
2750 enableval="$enable_no_rtti"
2751
2752 if test "$enableval" = yes; then
2753 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2754 else
2755 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2756 fi
2757
2758else
2759
2760 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2761 if test "x$LINE" != x ; then
2762 eval "DEFAULT_$LINE"
2763 else
2764 no_cache=1
2765 fi
2766
2767 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2768
2769fi
2770
2771
2772 eval "$ac_cv_use_no_rtti"
2773 if test "$no_cache" != 1; then
2774 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2775 fi
2776
2777 if test "$wxUSE_NO_RTTI" = yes; then
2778 echo "$ac_t""yes" 1>&6
2779 else
2780 echo "$ac_t""no" 1>&6
2781 fi
2782
2783
2784 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2785echo "configure:2786: checking for --enable-no_exceptions" >&5
2786 no_cache=0
2787 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2788if test "${enable_no_exceptions+set}" = set; then
2789 enableval="$enable_no_exceptions"
2790
2791 if test "$enableval" = yes; then
2792 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2793 else
2794 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2795 fi
2796
2797else
2798
2799 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2807
2808fi
2809
2810
2811 eval "$ac_cv_use_no_exceptions"
2812 if test "$no_cache" != 1; then
2813 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2814 fi
2815
2816 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2817 echo "$ac_t""yes" 1>&6
2818 else
2819 echo "$ac_t""no" 1>&6
2820 fi
2821
2822
2823 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2824echo "configure:2825: checking for --enable-permissive" >&5
2825 no_cache=0
2826 # Check whether --enable-permissive or --disable-permissive was given.
2827if test "${enable_permissive+set}" = set; then
2828 enableval="$enable_permissive"
2829
2830 if test "$enableval" = yes; then
2831 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2832 else
2833 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2834 fi
2835
2836else
2837
2838 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
2845 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2846
2847fi
2848
2849
2850 eval "$ac_cv_use_permissive"
2851 if test "$no_cache" != 1; then
2852 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2853 fi
2854
2855 if test "$wxUSE_PERMISSIVE" = yes; then
2856 echo "$ac_t""yes" 1>&6
2857 else
2858 echo "$ac_t""no" 1>&6
2859 fi
2860
2861
2862 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2863echo "configure:2864: checking for --enable-no_deps" >&5
2864 no_cache=0
2865 # Check whether --enable-no_deps or --disable-no_deps was given.
2866if test "${enable_no_deps+set}" = set; then
2867 enableval="$enable_no_deps"
2868
2869 if test "$enableval" = yes; then
2870 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2871 else
2872 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2873 fi
2874
2875else
2876
2877 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2878 if test "x$LINE" != x ; then
2879 eval "DEFAULT_$LINE"
2880 else
2881 no_cache=1
2882 fi
2883
2884 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2885
2886fi
2887
2888
2889 eval "$ac_cv_use_no_deps"
2890 if test "$no_cache" != 1; then
2891 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2892 fi
2893
2894 if test "$wxUSE_NO_DEPS" = yes; then
2895 echo "$ac_t""yes" 1>&6
2896 else
2897 echo "$ac_t""no" 1>&6
2898 fi
2899
2900
2901
2902 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2903echo "configure:2904: checking for --enable-compat20" >&5
2904 no_cache=0
2905 # Check whether --enable-compat20 or --disable-compat20 was given.
2906if test "${enable_compat20+set}" = set; then
2907 enableval="$enable_compat20"
2908
2909 if test "$enableval" = yes; then
2910 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2911 else
2912 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2913 fi
2914
2915else
2916
2917 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2918 if test "x$LINE" != x ; then
2919 eval "DEFAULT_$LINE"
2920 else
2921 no_cache=1
2922 fi
2923
2924 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2925
2926fi
2927
2928
2929 eval "$ac_cv_use_compat20"
2930 if test "$no_cache" != 1; then
2931 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2932 fi
2933
2934 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2935 echo "$ac_t""yes" 1>&6
2936 else
2937 echo "$ac_t""no" 1>&6
2938 fi
2939
2940
2941 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2942echo "configure:2943: checking for --enable-compat22" >&5
2943 no_cache=0
2944 # Check whether --enable-compat22 or --disable-compat22 was given.
2945if test "${enable_compat22+set}" = set; then
2946 enableval="$enable_compat22"
2947
2948 if test "$enableval" = yes; then
2949 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2950 else
2951 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2952 fi
2953
2954else
2955
2956 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2957 if test "x$LINE" != x ; then
2958 eval "DEFAULT_$LINE"
2959 else
2960 no_cache=1
2961 fi
2962
2963 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2964
2965fi
2966
2967
2968 eval "$ac_cv_use_compat22"
2969 if test "$no_cache" != 1; then
2970 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2971 fi
2972
2973 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2974 echo "$ac_t""yes" 1>&6
2975 else
2976 echo "$ac_t""no" 1>&6
2977 fi
2978
2979
2980
2981
2982 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2983echo "configure:2984: checking for --enable-intl" >&5
2984 no_cache=0
2985 # Check whether --enable-intl or --disable-intl was given.
2986if test "${enable_intl+set}" = set; then
2987 enableval="$enable_intl"
2988
2989 if test "$enableval" = yes; then
2990 ac_cv_use_intl='wxUSE_INTL=yes'
2991 else
2992 ac_cv_use_intl='wxUSE_INTL=no'
2993 fi
2994
2995else
2996
2997 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2998 if test "x$LINE" != x ; then
2999 eval "DEFAULT_$LINE"
3000 else
3001 no_cache=1
3002 fi
3003
3004 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3005
3006fi
3007
3008
3009 eval "$ac_cv_use_intl"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$wxUSE_INTL" = yes; then
3015 echo "$ac_t""yes" 1>&6
3016 else
3017 echo "$ac_t""no" 1>&6
3018 fi
3019
3020
3021 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3022echo "configure:3023: checking for --enable-config" >&5
3023 no_cache=0
3024 # Check whether --enable-config or --disable-config was given.
3025if test "${enable_config+set}" = set; then
3026 enableval="$enable_config"
3027
3028 if test "$enableval" = yes; then
3029 ac_cv_use_config='wxUSE_CONFIG=yes'
3030 else
3031 ac_cv_use_config='wxUSE_CONFIG=no'
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3044
3045fi
3046
3047
3048 eval "$ac_cv_use_config"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_CONFIG" = yes; then
3054 echo "$ac_t""yes" 1>&6
3055 else
3056 echo "$ac_t""no" 1>&6
3057 fi
3058
3059
3060
3061 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3062echo "configure:3063: checking for --enable-protocols" >&5
3063 no_cache=0
3064 # Check whether --enable-protocols or --disable-protocols was given.
3065if test "${enable_protocols+set}" = set; then
3066 enableval="$enable_protocols"
3067
3068 if test "$enableval" = yes; then
3069 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3070 else
3071 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3072 fi
3073
3074else
3075
3076 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3077 if test "x$LINE" != x ; then
3078 eval "DEFAULT_$LINE"
3079 else
3080 no_cache=1
3081 fi
3082
3083 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3084
3085fi
3086
3087
3088 eval "$ac_cv_use_protocols"
3089 if test "$no_cache" != 1; then
3090 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3091 fi
3092
3093 if test "$wxUSE_PROTOCOL" = yes; then
3094 echo "$ac_t""yes" 1>&6
3095 else
3096 echo "$ac_t""no" 1>&6
3097 fi
3098
3099
3100 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3101echo "configure:3102: checking for --enable-ftp" >&5
3102 no_cache=0
3103 # Check whether --enable-ftp or --disable-ftp was given.
3104if test "${enable_ftp+set}" = set; then
3105 enableval="$enable_ftp"
3106
3107 if test "$enableval" = yes; then
3108 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3109 else
3110 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3111 fi
3112
3113else
3114
3115 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3116 if test "x$LINE" != x ; then
3117 eval "DEFAULT_$LINE"
3118 else
3119 no_cache=1
3120 fi
3121
3122 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3123
3124fi
3125
3126
3127 eval "$ac_cv_use_ftp"
3128 if test "$no_cache" != 1; then
3129 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3130 fi
3131
3132 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3133 echo "$ac_t""yes" 1>&6
3134 else
3135 echo "$ac_t""no" 1>&6
3136 fi
3137
3138
3139 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3140echo "configure:3141: checking for --enable-http" >&5
3141 no_cache=0
3142 # Check whether --enable-http or --disable-http was given.
3143if test "${enable_http+set}" = set; then
3144 enableval="$enable_http"
3145
3146 if test "$enableval" = yes; then
3147 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3148 else
3149 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3162
3163fi
3164
3165
3166 eval "$ac_cv_use_http"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3172 echo "$ac_t""yes" 1>&6
3173 else
3174 echo "$ac_t""no" 1>&6
3175 fi
3176
3177
3178 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3179echo "configure:3180: checking for --enable-fileproto" >&5
3180 no_cache=0
3181 # Check whether --enable-fileproto or --disable-fileproto was given.
3182if test "${enable_fileproto+set}" = set; then
3183 enableval="$enable_fileproto"
3184
3185 if test "$enableval" = yes; then
3186 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3187 else
3188 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3189 fi
3190
3191else
3192
3193 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3194 if test "x$LINE" != x ; then
3195 eval "DEFAULT_$LINE"
3196 else
3197 no_cache=1
3198 fi
3199
3200 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3201
3202fi
3203
3204
3205 eval "$ac_cv_use_fileproto"
3206 if test "$no_cache" != 1; then
3207 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3208 fi
3209
3210 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3211 echo "$ac_t""yes" 1>&6
3212 else
3213 echo "$ac_t""no" 1>&6
3214 fi
3215
3216
3217 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3218echo "configure:3219: checking for --enable-sockets" >&5
3219 no_cache=0
3220 # Check whether --enable-sockets or --disable-sockets was given.
3221if test "${enable_sockets+set}" = set; then
3222 enableval="$enable_sockets"
3223
3224 if test "$enableval" = yes; then
3225 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3226 else
3227 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3240
3241fi
3242
3243
3244 eval "$ac_cv_use_sockets"
3245 if test "$no_cache" != 1; then
3246 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3247 fi
3248
3249 if test "$wxUSE_SOCKETS" = yes; then
3250 echo "$ac_t""yes" 1>&6
3251 else
3252 echo "$ac_t""no" 1>&6
3253 fi
3254
3255
3256
3257 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3258echo "configure:3259: checking for --enable-ipc" >&5
3259 no_cache=0
3260 # Check whether --enable-ipc or --disable-ipc was given.
3261if test "${enable_ipc+set}" = set; then
3262 enableval="$enable_ipc"
3263
3264 if test "$enableval" = yes; then
3265 ac_cv_use_ipc='wxUSE_IPC=yes'
3266 else
3267 ac_cv_use_ipc='wxUSE_IPC=no'
3268 fi
3269
3270else
3271
3272 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
3279 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3280
3281fi
3282
3283
3284 eval "$ac_cv_use_ipc"
3285 if test "$no_cache" != 1; then
3286 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3287 fi
3288
3289 if test "$wxUSE_IPC" = yes; then
3290 echo "$ac_t""yes" 1>&6
3291 else
3292 echo "$ac_t""no" 1>&6
3293 fi
3294
3295
3296
3297 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3298echo "configure:3299: checking for --enable-cmdline" >&5
3299 no_cache=0
3300 # Check whether --enable-cmdline or --disable-cmdline was given.
3301if test "${enable_cmdline+set}" = set; then
3302 enableval="$enable_cmdline"
3303
3304 if test "$enableval" = yes; then
3305 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3306 else
3307 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3320
3321fi
3322
3323
3324 eval "$ac_cv_use_cmdline"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3330 echo "$ac_t""yes" 1>&6
3331 else
3332 echo "$ac_t""no" 1>&6
3333 fi
3334
3335
3336 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3337echo "configure:3338: checking for --enable-datetime" >&5
3338 no_cache=0
3339 # Check whether --enable-datetime or --disable-datetime was given.
3340if test "${enable_datetime+set}" = set; then
3341 enableval="$enable_datetime"
3342
3343 if test "$enableval" = yes; then
3344 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3345 else
3346 ac_cv_use_datetime='wxUSE_DATETIME=no'
3347 fi
3348
3349else
3350
3351 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
3358 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3359
3360fi
3361
3362
3363 eval "$ac_cv_use_datetime"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_DATETIME" = yes; then
3369 echo "$ac_t""yes" 1>&6
3370 else
3371 echo "$ac_t""no" 1>&6
3372 fi
3373
3374
3375 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3376echo "configure:3377: checking for --enable-timedate" >&5
3377 no_cache=0
3378 # Check whether --enable-timedate or --disable-timedate was given.
3379if test "${enable_timedate+set}" = set; then
3380 enableval="$enable_timedate"
3381
3382 if test "$enableval" = yes; then
3383 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3384 else
3385 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3386 fi
3387
3388else
3389
3390 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3398
3399fi
3400
3401
3402 eval "$ac_cv_use_timedate"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_TIMEDATE" = yes; then
3408 echo "$ac_t""yes" 1>&6
3409 else
3410 echo "$ac_t""no" 1>&6
3411 fi
3412
3413
3414 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3415echo "configure:3416: checking for --enable-stopwatch" >&5
3416 no_cache=0
3417 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3418if test "${enable_stopwatch+set}" = set; then
3419 enableval="$enable_stopwatch"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3423 else
3424 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3425 fi
3426
3427else
3428
3429 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3437
3438fi
3439
3440
3441 eval "$ac_cv_use_stopwatch"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_STOPWATCH" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
3453 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3454echo "configure:3455: checking for --enable-dialupman" >&5
3455 no_cache=0
3456 # Check whether --enable-dialupman or --disable-dialupman was given.
3457if test "${enable_dialupman+set}" = set; then
3458 enableval="$enable_dialupman"
3459
3460 if test "$enableval" = yes; then
3461 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3462 else
3463 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3464 fi
3465
3466else
3467
3468 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3469 if test "x$LINE" != x ; then
3470 eval "DEFAULT_$LINE"
3471 else
3472 no_cache=1
3473 fi
3474
3475 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3476
3477fi
3478
3479
3480 eval "$ac_cv_use_dialupman"
3481 if test "$no_cache" != 1; then
3482 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3483 fi
3484
3485 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3486 echo "$ac_t""yes" 1>&6
3487 else
3488 echo "$ac_t""no" 1>&6
3489 fi
3490
3491
3492 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3493echo "configure:3494: checking for --enable-apple_ieee" >&5
3494 no_cache=0
3495 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3496if test "${enable_apple_ieee+set}" = set; then
3497 enableval="$enable_apple_ieee"
3498
3499 if test "$enableval" = yes; then
3500 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3501 else
3502 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3503 fi
3504
3505else
3506
3507 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3515
3516fi
3517
3518
3519 eval "$ac_cv_use_apple_ieee"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_APPLE_IEEE" = yes; then
3525 echo "$ac_t""yes" 1>&6
3526 else
3527 echo "$ac_t""no" 1>&6
3528 fi
3529
3530
3531 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3532echo "configure:3533: checking for --enable-timer" >&5
3533 no_cache=0
3534 # Check whether --enable-timer or --disable-timer was given.
3535if test "${enable_timer+set}" = set; then
3536 enableval="$enable_timer"
3537
3538 if test "$enableval" = yes; then
3539 ac_cv_use_timer='wxUSE_TIMER=yes'
3540 else
3541 ac_cv_use_timer='wxUSE_TIMER=no'
3542 fi
3543
3544else
3545
3546 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3547 if test "x$LINE" != x ; then
3548 eval "DEFAULT_$LINE"
3549 else
3550 no_cache=1
3551 fi
3552
3553 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3554
3555fi
3556
3557
3558 eval "$ac_cv_use_timer"
3559 if test "$no_cache" != 1; then
3560 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3561 fi
3562
3563 if test "$wxUSE_TIMER" = yes; then
3564 echo "$ac_t""yes" 1>&6
3565 else
3566 echo "$ac_t""no" 1>&6
3567 fi
3568
3569
3570 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3571echo "configure:3572: checking for --enable-wave" >&5
3572 no_cache=0
3573 # Check whether --enable-wave or --disable-wave was given.
3574if test "${enable_wave+set}" = set; then
3575 enableval="$enable_wave"
3576
3577 if test "$enableval" = yes; then
3578 ac_cv_use_wave='wxUSE_WAVE=yes'
3579 else
3580 ac_cv_use_wave='wxUSE_WAVE=no'
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3593
3594fi
3595
3596
3597 eval "$ac_cv_use_wave"
3598 if test "$no_cache" != 1; then
3599 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3600 fi
3601
3602 if test "$wxUSE_WAVE" = yes; then
3603 echo "$ac_t""yes" 1>&6
3604 else
3605 echo "$ac_t""no" 1>&6
3606 fi
3607
3608
3609 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3610echo "configure:3611: checking for --enable-fraction" >&5
3611 no_cache=0
3612 # Check whether --enable-fraction or --disable-fraction was given.
3613if test "${enable_fraction+set}" = set; then
3614 enableval="$enable_fraction"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3618 else
3619 ac_cv_use_fraction='wxUSE_FRACTION=no'
3620 fi
3621
3622else
3623
3624 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3632
3633fi
3634
3635
3636 eval "$ac_cv_use_fraction"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_FRACTION" = yes; then
3642 echo "$ac_t""yes" 1>&6
3643 else
3644 echo "$ac_t""no" 1>&6
3645 fi
3646
3647
3648 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3649echo "configure:3650: checking for --enable-dynlib" >&5
3650 no_cache=0
3651 # Check whether --enable-dynlib or --disable-dynlib was given.
3652if test "${enable_dynlib+set}" = set; then
3653 enableval="$enable_dynlib"
3654
3655 if test "$enableval" = yes; then
3656 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3657 else
3658 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3659 fi
3660
3661else
3662
3663 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3664 if test "x$LINE" != x ; then
3665 eval "DEFAULT_$LINE"
3666 else
3667 no_cache=1
3668 fi
3669
3670 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3671
3672fi
3673
3674
3675 eval "$ac_cv_use_dynlib"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3681 echo "$ac_t""yes" 1>&6
3682 else
3683 echo "$ac_t""no" 1>&6
3684 fi
3685
3686
3687 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3688echo "configure:3689: checking for --enable-dynamicloader" >&5
3689 no_cache=0
3690 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3691if test "${enable_dynamicloader+set}" = set; then
3692 enableval="$enable_dynamicloader"
3693
3694 if test "$enableval" = yes; then
3695 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3696 else
3697 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3698 fi
3699
3700else
3701
3702 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3703 if test "x$LINE" != x ; then
3704 eval "DEFAULT_$LINE"
3705 else
3706 no_cache=1
3707 fi
3708
3709 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3710
3711fi
3712
3713
3714 eval "$ac_cv_use_dynamicloader"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3720 echo "$ac_t""yes" 1>&6
3721 else
3722 echo "$ac_t""no" 1>&6
3723 fi
3724
3725
3726 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3727echo "configure:3728: checking for --enable-longlong" >&5
3728 no_cache=0
3729 # Check whether --enable-longlong or --disable-longlong was given.
3730if test "${enable_longlong+set}" = set; then
3731 enableval="$enable_longlong"
3732
3733 if test "$enableval" = yes; then
3734 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3735 else
3736 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3737 fi
3738
3739else
3740
3741 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3749
3750fi
3751
3752
3753 eval "$ac_cv_use_longlong"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_LONGLONG" = yes; then
3759 echo "$ac_t""yes" 1>&6
3760 else
3761 echo "$ac_t""no" 1>&6
3762 fi
3763
3764
3765 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3766echo "configure:3767: checking for --enable-geometry" >&5
3767 no_cache=0
3768 # Check whether --enable-geometry or --disable-geometry was given.
3769if test "${enable_geometry+set}" = set; then
3770 enableval="$enable_geometry"
3771
3772 if test "$enableval" = yes; then
3773 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3774 else
3775 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3776 fi
3777
3778else
3779
3780 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3788
3789fi
3790
3791
3792 eval "$ac_cv_use_geometry"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_GEOMETRY" = yes; then
3798 echo "$ac_t""yes" 1>&6
3799 else
3800 echo "$ac_t""no" 1>&6
3801 fi
3802
3803
3804 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3805echo "configure:3806: checking for --enable-log" >&5
3806 no_cache=0
3807 # Check whether --enable-log or --disable-log was given.
3808if test "${enable_log+set}" = set; then
3809 enableval="$enable_log"
3810
3811 if test "$enableval" = yes; then
3812 ac_cv_use_log='wxUSE_LOG=yes'
3813 else
3814 ac_cv_use_log='wxUSE_LOG=no'
3815 fi
3816
3817else
3818
3819 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3827
3828fi
3829
3830
3831 eval "$ac_cv_use_log"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_LOG" = yes; then
3837 echo "$ac_t""yes" 1>&6
3838 else
3839 echo "$ac_t""no" 1>&6
3840 fi
3841
3842
3843 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3844echo "configure:3845: checking for --enable-streams" >&5
3845 no_cache=0
3846 # Check whether --enable-streams or --disable-streams was given.
3847if test "${enable_streams+set}" = set; then
3848 enableval="$enable_streams"
3849
3850 if test "$enableval" = yes; then
3851 ac_cv_use_streams='wxUSE_STREAMS=yes'
3852 else
3853 ac_cv_use_streams='wxUSE_STREAMS=no'
3854 fi
3855
3856else
3857
3858 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3866
3867fi
3868
3869
3870 eval "$ac_cv_use_streams"
3871 if test "$no_cache" != 1; then
3872 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3873 fi
3874
3875 if test "$wxUSE_STREAMS" = yes; then
3876 echo "$ac_t""yes" 1>&6
3877 else
3878 echo "$ac_t""no" 1>&6
3879 fi
3880
3881
3882 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3883echo "configure:3884: checking for --enable-file" >&5
3884 no_cache=0
3885 # Check whether --enable-file or --disable-file was given.
3886if test "${enable_file+set}" = set; then
3887 enableval="$enable_file"
3888
3889 if test "$enableval" = yes; then
3890 ac_cv_use_file='wxUSE_FILE=yes'
3891 else
3892 ac_cv_use_file='wxUSE_FILE=no'
3893 fi
3894
3895else
3896
3897 LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3905
3906fi
3907
3908
3909 eval "$ac_cv_use_file"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_FILE" = yes; then
3915 echo "$ac_t""yes" 1>&6
3916 else
3917 echo "$ac_t""no" 1>&6
3918 fi
3919
3920
3921 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3922echo "configure:3923: checking for --enable-ffile" >&5
3923 no_cache=0
3924 # Check whether --enable-ffile or --disable-ffile was given.
3925if test "${enable_ffile+set}" = set; then
3926 enableval="$enable_ffile"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_ffile='wxUSE_FFILE=yes'
3930 else
3931 ac_cv_use_ffile='wxUSE_FFILE=no'
3932 fi
3933
3934else
3935
3936 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3944
3945fi
3946
3947
3948 eval "$ac_cv_use_ffile"
3949 if test "$no_cache" != 1; then
3950 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3951 fi
3952
3953 if test "$wxUSE_FFILE" = yes; then
3954 echo "$ac_t""yes" 1>&6
3955 else
3956 echo "$ac_t""no" 1>&6
3957 fi
3958
3959
3960 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3961echo "configure:3962: checking for --enable-textbuf" >&5
3962 no_cache=0
3963 # Check whether --enable-textbuf or --disable-textbuf was given.
3964if test "${enable_textbuf+set}" = set; then
3965 enableval="$enable_textbuf"
3966
3967 if test "$enableval" = yes; then
3968 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3969 else
3970 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3971 fi
3972
3973else
3974
3975 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3976 if test "x$LINE" != x ; then
3977 eval "DEFAULT_$LINE"
3978 else
3979 no_cache=1
3980 fi
3981
3982 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3983
3984fi
3985
3986
3987 eval "$ac_cv_use_textbuf"
3988 if test "$no_cache" != 1; then
3989 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3990 fi
3991
3992 if test "$wxUSE_TEXTBUFFER" = yes; then
3993 echo "$ac_t""yes" 1>&6
3994 else
3995 echo "$ac_t""no" 1>&6
3996 fi
3997
3998
3999 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4000echo "configure:4001: checking for --enable-textfile" >&5
4001 no_cache=0
4002 # Check whether --enable-textfile or --disable-textfile was given.
4003if test "${enable_textfile+set}" = set; then
4004 enableval="$enable_textfile"
4005
4006 if test "$enableval" = yes; then
4007 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4008 else
4009 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4010 fi
4011
4012else
4013
4014 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4015 if test "x$LINE" != x ; then
4016 eval "DEFAULT_$LINE"
4017 else
4018 no_cache=1
4019 fi
4020
4021 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4022
4023fi
4024
4025
4026 eval "$ac_cv_use_textfile"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_TEXTFILE" = yes; then
4032 echo "$ac_t""yes" 1>&6
4033 else
4034 echo "$ac_t""no" 1>&6
4035 fi
4036
4037
4038 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4039echo "configure:4040: checking for --enable-fontmap" >&5
4040 no_cache=0
4041 # Check whether --enable-fontmap or --disable-fontmap was given.
4042if test "${enable_fontmap+set}" = set; then
4043 enableval="$enable_fontmap"
4044
4045 if test "$enableval" = yes; then
4046 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4047 else
4048 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4049 fi
4050
4051else
4052
4053 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4061
4062fi
4063
4064
4065 eval "$ac_cv_use_fontmap"
4066 if test "$no_cache" != 1; then
4067 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4068 fi
4069
4070 if test "$wxUSE_FONTMAP" = yes; then
4071 echo "$ac_t""yes" 1>&6
4072 else
4073 echo "$ac_t""no" 1>&6
4074 fi
4075
4076
4077 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4078echo "configure:4079: checking for --enable-unicode" >&5
4079 no_cache=0
4080 # Check whether --enable-unicode or --disable-unicode was given.
4081if test "${enable_unicode+set}" = set; then
4082 enableval="$enable_unicode"
4083
4084 if test "$enableval" = yes; then
4085 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4086 else
4087 ac_cv_use_unicode='wxUSE_UNICODE=no'
4088 fi
4089
4090else
4091
4092 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4093 if test "x$LINE" != x ; then
4094 eval "DEFAULT_$LINE"
4095 else
4096 no_cache=1
4097 fi
4098
4099 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4100
4101fi
4102
4103
4104 eval "$ac_cv_use_unicode"
4105 if test "$no_cache" != 1; then
4106 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4107 fi
4108
4109 if test "$wxUSE_UNICODE" = yes; then
4110 echo "$ac_t""yes" 1>&6
4111 else
4112 echo "$ac_t""no" 1>&6
4113 fi
4114
4115
4116 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4117echo "configure:4118: checking for --enable-mslu" >&5
4118 no_cache=0
4119 # Check whether --enable-mslu or --disable-mslu was given.
4120if test "${enable_mslu+set}" = set; then
4121 enableval="$enable_mslu"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4125 else
4126 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4139
4140fi
4141
4142
4143 eval "$ac_cv_use_mslu"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_UNICODE_MSLU" = yes; then
4149 echo "$ac_t""yes" 1>&6
4150 else
4151 echo "$ac_t""no" 1>&6
4152 fi
4153
4154
4155 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4156echo "configure:4157: checking for --enable-wxprintfv" >&5
4157 no_cache=0
4158 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4159if test "${enable_wxprintfv+set}" = set; then
4160 enableval="$enable_wxprintfv"
4161
4162 if test "$enableval" = yes; then
4163 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4164 else
4165 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4166 fi
4167
4168else
4169
4170 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4171 if test "x$LINE" != x ; then
4172 eval "DEFAULT_$LINE"
4173 else
4174 no_cache=1
4175 fi
4176
4177 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4178
4179fi
4180
4181
4182 eval "$ac_cv_use_wxprintfv"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4188 echo "$ac_t""yes" 1>&6
4189 else
4190 echo "$ac_t""no" 1>&6
4191 fi
4192
4193
4194 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4195echo "configure:4196: checking for --enable-std_iostreams" >&5
4196 no_cache=0
4197 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4198if test "${enable_std_iostreams+set}" = set; then
4199 enableval="$enable_std_iostreams"
4200
4201 if test "$enableval" = yes; then
4202 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4203 else
4204 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4205 fi
4206
4207else
4208
4209 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4210 if test "x$LINE" != x ; then
4211 eval "DEFAULT_$LINE"
4212 else
4213 no_cache=1
4214 fi
4215
4216 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4217
4218fi
4219
4220
4221 eval "$ac_cv_use_std_iostreams"
4222 if test "$no_cache" != 1; then
4223 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4224 fi
4225
4226 if test "$wxUSE_STD_IOSTREAM" = yes; then
4227 echo "$ac_t""yes" 1>&6
4228 else
4229 echo "$ac_t""no" 1>&6
4230 fi
4231
4232
4233 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4234echo "configure:4235: checking for --enable-filesystem" >&5
4235 no_cache=0
4236 # Check whether --enable-filesystem or --disable-filesystem was given.
4237if test "${enable_filesystem+set}" = set; then
4238 enableval="$enable_filesystem"
4239
4240 if test "$enableval" = yes; then
4241 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4242 else
4243 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4244 fi
4245
4246else
4247
4248 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4256
4257fi
4258
4259
4260 eval "$ac_cv_use_filesystem"
4261 if test "$no_cache" != 1; then
4262 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4263 fi
4264
4265 if test "$wxUSE_FILESYSTEM" = yes; then
4266 echo "$ac_t""yes" 1>&6
4267 else
4268 echo "$ac_t""no" 1>&6
4269 fi
4270
4271
4272 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4273echo "configure:4274: checking for --enable-fs_inet" >&5
4274 no_cache=0
4275 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4276if test "${enable_fs_inet+set}" = set; then
4277 enableval="$enable_fs_inet"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4281 else
4282 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4283 fi
4284
4285else
4286
4287 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4295
4296fi
4297
4298
4299 eval "$ac_cv_use_fs_inet"
4300 if test "$no_cache" != 1; then
4301 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4302 fi
4303
4304 if test "$wxUSE_FS_INET" = yes; then
4305 echo "$ac_t""yes" 1>&6
4306 else
4307 echo "$ac_t""no" 1>&6
4308 fi
4309
4310
4311 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4312echo "configure:4313: checking for --enable-fs_zip" >&5
4313 no_cache=0
4314 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4315if test "${enable_fs_zip+set}" = set; then
4316 enableval="$enable_fs_zip"
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4320 else
4321 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4322 fi
4323
4324else
4325
4326 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4334
4335fi
4336
4337
4338 eval "$ac_cv_use_fs_zip"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_FS_ZIP" = yes; then
4344 echo "$ac_t""yes" 1>&6
4345 else
4346 echo "$ac_t""no" 1>&6
4347 fi
4348
4349
4350 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4351echo "configure:4352: checking for --enable-zipstream" >&5
4352 no_cache=0
4353 # Check whether --enable-zipstream or --disable-zipstream was given.
4354if test "${enable_zipstream+set}" = set; then
4355 enableval="$enable_zipstream"
4356
4357 if test "$enableval" = yes; then
4358 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4359 else
4360 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4361 fi
4362
4363else
4364
4365 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4373
4374fi
4375
4376
4377 eval "$ac_cv_use_zipstream"
4378 if test "$no_cache" != 1; then
4379 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4380 fi
4381
4382 if test "$wxUSE_ZIPSTREAM" = yes; then
4383 echo "$ac_t""yes" 1>&6
4384 else
4385 echo "$ac_t""no" 1>&6
4386 fi
4387
4388
4389
4390 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4391echo "configure:4392: checking for --enable-catch_segvs" >&5
4392 no_cache=0
4393 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4394if test "${enable_catch_segvs+set}" = set; then
4395 enableval="$enable_catch_segvs"
4396
4397 if test "$enableval" = yes; then
4398 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4399 else
4400 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4401 fi
4402
4403else
4404
4405 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4406 if test "x$LINE" != x ; then
4407 eval "DEFAULT_$LINE"
4408 else
4409 no_cache=1
4410 fi
4411
4412 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4413
4414fi
4415
4416
4417 eval "$ac_cv_use_catch_segvs"
4418 if test "$no_cache" != 1; then
4419 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4420 fi
4421
4422 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4423 echo "$ac_t""yes" 1>&6
4424 else
4425 echo "$ac_t""no" 1>&6
4426 fi
4427
4428
4429 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4430echo "configure:4431: checking for --enable-snglinst" >&5
4431 no_cache=0
4432 # Check whether --enable-snglinst or --disable-snglinst was given.
4433if test "${enable_snglinst+set}" = set; then
4434 enableval="$enable_snglinst"
4435
4436 if test "$enableval" = yes; then
4437 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4438 else
4439 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4440 fi
4441
4442else
4443
4444 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4445 if test "x$LINE" != x ; then
4446 eval "DEFAULT_$LINE"
4447 else
4448 no_cache=1
4449 fi
4450
4451 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4452
4453fi
4454
4455
4456 eval "$ac_cv_use_snglinst"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4462 echo "$ac_t""yes" 1>&6
4463 else
4464 echo "$ac_t""no" 1>&6
4465 fi
4466
4467
4468
4469 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4470echo "configure:4471: checking for --enable-mimetype" >&5
4471 no_cache=0
4472 # Check whether --enable-mimetype or --disable-mimetype was given.
4473if test "${enable_mimetype+set}" = set; then
4474 enableval="$enable_mimetype"
4475
4476 if test "$enableval" = yes; then
4477 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4478 else
4479 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4480 fi
4481
4482else
4483
4484 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
4491 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4492
4493fi
4494
4495
4496 eval "$ac_cv_use_mimetype"
4497 if test "$no_cache" != 1; then
4498 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4499 fi
4500
4501 if test "$wxUSE_MIMETYPE" = yes; then
4502 echo "$ac_t""yes" 1>&6
4503 else
4504 echo "$ac_t""no" 1>&6
4505 fi
4506
4507
4508 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4509echo "configure:4510: checking for --enable-system_options" >&5
4510 no_cache=0
4511 # Check whether --enable-system_options or --disable-system_options was given.
4512if test "${enable_system_options+set}" = set; then
4513 enableval="$enable_system_options"
4514
4515 if test "$enableval" = yes; then
4516 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4517 else
4518 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4519 fi
4520
4521else
4522
4523 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4531
4532fi
4533
4534
4535 eval "$ac_cv_use_system_options"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4541 echo "$ac_t""yes" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
4547
4548 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4549echo "configure:4550: checking for --enable-url" >&5
4550 no_cache=0
4551 # Check whether --enable-url or --disable-url was given.
4552if test "${enable_url+set}" = set; then
4553 enableval="$enable_url"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_url='wxUSE_URL=yes'
4557 else
4558 ac_cv_use_url='wxUSE_URL=no'
4559 fi
4560
4561else
4562
4563 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4571
4572fi
4573
4574
4575 eval "$ac_cv_use_url"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_URL" = yes; then
4581 echo "$ac_t""yes" 1>&6
4582 else
4583 echo "$ac_t""no" 1>&6
4584 fi
4585
4586
4587 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4588echo "configure:4589: checking for --enable-protocol" >&5
4589 no_cache=0
4590 # Check whether --enable-protocol or --disable-protocol was given.
4591if test "${enable_protocol+set}" = set; then
4592 enableval="$enable_protocol"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4596 else
4597 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4598 fi
4599
4600else
4601
4602 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4610
4611fi
4612
4613
4614 eval "$ac_cv_use_protocol"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_PROTOCOL" = yes; then
4620 echo "$ac_t""yes" 1>&6
4621 else
4622 echo "$ac_t""no" 1>&6
4623 fi
4624
4625
4626 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4627echo "configure:4628: checking for --enable-protocol_http" >&5
4628 no_cache=0
4629 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4630if test "${enable_protocol_http+set}" = set; then
4631 enableval="$enable_protocol_http"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4635 else
4636 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4649
4650fi
4651
4652
4653 eval "$ac_cv_use_protocol_http"
4654 if test "$no_cache" != 1; then
4655 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4656 fi
4657
4658 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4659 echo "$ac_t""yes" 1>&6
4660 else
4661 echo "$ac_t""no" 1>&6
4662 fi
4663
4664
4665 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4666echo "configure:4667: checking for --enable-protocol_ftp" >&5
4667 no_cache=0
4668 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4669if test "${enable_protocol_ftp+set}" = set; then
4670 enableval="$enable_protocol_ftp"
4671
4672 if test "$enableval" = yes; then
4673 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4674 else
4675 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4676 fi
4677
4678else
4679
4680 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4688
4689fi
4690
4691
4692 eval "$ac_cv_use_protocol_ftp"
4693 if test "$no_cache" != 1; then
4694 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4695 fi
4696
4697 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4698 echo "$ac_t""yes" 1>&6
4699 else
4700 echo "$ac_t""no" 1>&6
4701 fi
4702
4703
4704 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4705echo "configure:4706: checking for --enable-protocol_file" >&5
4706 no_cache=0
4707 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4708if test "${enable_protocol_file+set}" = set; then
4709 enableval="$enable_protocol_file"
4710
4711 if test "$enableval" = yes; then
4712 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4713 else
4714 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4715 fi
4716
4717else
4718
4719 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4720 if test "x$LINE" != x ; then
4721 eval "DEFAULT_$LINE"
4722 else
4723 no_cache=1
4724 fi
4725
4726 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4727
4728fi
4729
4730
4731 eval "$ac_cv_use_protocol_file"
4732 if test "$no_cache" != 1; then
4733 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4734 fi
4735
4736 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4737 echo "$ac_t""yes" 1>&6
4738 else
4739 echo "$ac_t""no" 1>&6
4740 fi
4741
4742
4743
4744
4745
4746 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4747echo "configure:4748: checking for --enable-threads" >&5
4748 no_cache=0
4749 # Check whether --enable-threads or --disable-threads was given.
4750if test "${enable_threads+set}" = set; then
4751 enableval="$enable_threads"
4752
4753 if test "$enableval" = yes; then
4754 ac_cv_use_threads='wxUSE_THREADS=yes'
4755 else
4756 ac_cv_use_threads='wxUSE_THREADS=no'
4757 fi
4758
4759else
4760
4761 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4762 if test "x$LINE" != x ; then
4763 eval "DEFAULT_$LINE"
4764 else
4765 no_cache=1
4766 fi
4767
4768 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4769
4770fi
4771
4772
4773 eval "$ac_cv_use_threads"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_THREADS" = yes; then
4779 echo "$ac_t""yes" 1>&6
4780 else
4781 echo "$ac_t""no" 1>&6
4782 fi
4783
4784
4785if test "$wxUSE_GUI" = "yes"; then
4786
4787
4788
4789 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4790echo "configure:4791: checking for --enable-docview" >&5
4791 no_cache=0
4792 # Check whether --enable-docview or --disable-docview was given.
4793if test "${enable_docview+set}" = set; then
4794 enableval="$enable_docview"
4795
4796 if test "$enableval" = yes; then
4797 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4798 else
4799 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4800 fi
4801
4802else
4803
4804 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4805 if test "x$LINE" != x ; then
4806 eval "DEFAULT_$LINE"
4807 else
4808 no_cache=1
4809 fi
4810
4811 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4812
4813fi
4814
4815
4816 eval "$ac_cv_use_docview"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4822 echo "$ac_t""yes" 1>&6
4823 else
4824 echo "$ac_t""no" 1>&6
4825 fi
4826
4827
4828 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4829echo "configure:4830: checking for --enable-help" >&5
4830 no_cache=0
4831 # Check whether --enable-help or --disable-help was given.
4832if test "${enable_help+set}" = set; then
4833 enableval="$enable_help"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_help='wxUSE_HELP=yes'
4837 else
4838 ac_cv_use_help='wxUSE_HELP=no'
4839 fi
4840
4841else
4842
4843 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4851
4852fi
4853
4854
4855 eval "$ac_cv_use_help"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_HELP" = yes; then
4861 echo "$ac_t""yes" 1>&6
4862 else
4863 echo "$ac_t""no" 1>&6
4864 fi
4865
4866
4867 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4868echo "configure:4869: checking for --enable-mshtmlhelp" >&5
4869 no_cache=0
4870 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4871if test "${enable_mshtmlhelp+set}" = set; then
4872 enableval="$enable_mshtmlhelp"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4876 else
4877 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4890
4891fi
4892
4893
4894 eval "$ac_cv_use_mshtmlhelp"
4895 if test "$no_cache" != 1; then
4896 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4897 fi
4898
4899 if test "$wxUSE_MS_HTML_HELP" = yes; then
4900 echo "$ac_t""yes" 1>&6
4901 else
4902 echo "$ac_t""no" 1>&6
4903 fi
4904
4905
4906 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4907echo "configure:4908: checking for --enable-html" >&5
4908 no_cache=0
4909 # Check whether --enable-html or --disable-html was given.
4910if test "${enable_html+set}" = set; then
4911 enableval="$enable_html"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_html='wxUSE_HTML=yes'
4915 else
4916 ac_cv_use_html='wxUSE_HTML=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4929
4930fi
4931
4932
4933 eval "$ac_cv_use_html"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_HTML" = yes; then
4939 echo "$ac_t""yes" 1>&6
4940 else
4941 echo "$ac_t""no" 1>&6
4942 fi
4943
4944
4945 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4946echo "configure:4947: checking for --enable-htmlhelp" >&5
4947 no_cache=0
4948 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4949if test "${enable_htmlhelp+set}" = set; then
4950 enableval="$enable_htmlhelp"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4954 else
4955 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4968
4969fi
4970
4971
4972 eval "$ac_cv_use_htmlhelp"
4973 if test "$no_cache" != 1; then
4974 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4975 fi
4976
4977 if test "$wxUSE_WXHTML_HELP" = yes; then
4978 echo "$ac_t""yes" 1>&6
4979 else
4980 echo "$ac_t""no" 1>&6
4981 fi
4982
4983
4984 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4985echo "configure:4986: checking for --enable-constraints" >&5
4986 no_cache=0
4987 # Check whether --enable-constraints or --disable-constraints was given.
4988if test "${enable_constraints+set}" = set; then
4989 enableval="$enable_constraints"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4993 else
4994 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5007
5008fi
5009
5010
5011 eval "$ac_cv_use_constraints"
5012 if test "$no_cache" != 1; then
5013 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5014 fi
5015
5016 if test "$wxUSE_CONSTRAINTS" = yes; then
5017 echo "$ac_t""yes" 1>&6
5018 else
5019 echo "$ac_t""no" 1>&6
5020 fi
5021
5022
5023 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5024echo "configure:5025: checking for --enable-printarch" >&5
5025 no_cache=0
5026 # Check whether --enable-printarch or --disable-printarch was given.
5027if test "${enable_printarch+set}" = set; then
5028 enableval="$enable_printarch"
5029
5030 if test "$enableval" = yes; then
5031 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5032 else
5033 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5034 fi
5035
5036else
5037
5038 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5039 if test "x$LINE" != x ; then
5040 eval "DEFAULT_$LINE"
5041 else
5042 no_cache=1
5043 fi
5044
5045 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5046
5047fi
5048
5049
5050 eval "$ac_cv_use_printarch"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5056 echo "$ac_t""yes" 1>&6
5057 else
5058 echo "$ac_t""no" 1>&6
5059 fi
5060
5061
5062 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5063echo "configure:5064: checking for --enable-mdi" >&5
5064 no_cache=0
5065 # Check whether --enable-mdi or --disable-mdi was given.
5066if test "${enable_mdi+set}" = set; then
5067 enableval="$enable_mdi"
5068
5069 if test "$enableval" = yes; then
5070 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5071 else
5072 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5073 fi
5074
5075else
5076
5077 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5078 if test "x$LINE" != x ; then
5079 eval "DEFAULT_$LINE"
5080 else
5081 no_cache=1
5082 fi
5083
5084 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5085
5086fi
5087
5088
5089 eval "$ac_cv_use_mdi"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5095 echo "$ac_t""yes" 1>&6
5096 else
5097 echo "$ac_t""no" 1>&6
5098 fi
5099
5100
5101 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5102echo "configure:5103: checking for --enable-loggui" >&5
5103 no_cache=0
5104 # Check whether --enable-loggui or --disable-loggui was given.
5105if test "${enable_loggui+set}" = set; then
5106 enableval="$enable_loggui"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5110 else
5111 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5112 fi
5113
5114else
5115
5116 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5124
5125fi
5126
5127
5128 eval "$ac_cv_use_loggui"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_LOGGUI" = yes; then
5134 echo "$ac_t""yes" 1>&6
5135 else
5136 echo "$ac_t""no" 1>&6
5137 fi
5138
5139
5140 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5141echo "configure:5142: checking for --enable-logwin" >&5
5142 no_cache=0
5143 # Check whether --enable-logwin or --disable-logwin was given.
5144if test "${enable_logwin+set}" = set; then
5145 enableval="$enable_logwin"
5146
5147 if test "$enableval" = yes; then
5148 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5149 else
5150 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5151 fi
5152
5153else
5154
5155 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5156 if test "x$LINE" != x ; then
5157 eval "DEFAULT_$LINE"
5158 else
5159 no_cache=1
5160 fi
5161
5162 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5163
5164fi
5165
5166
5167 eval "$ac_cv_use_logwin"
5168 if test "$no_cache" != 1; then
5169 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5170 fi
5171
5172 if test "$wxUSE_LOGWINDOW" = yes; then
5173 echo "$ac_t""yes" 1>&6
5174 else
5175 echo "$ac_t""no" 1>&6
5176 fi
5177
5178
5179 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5180echo "configure:5181: checking for --enable-logdialog" >&5
5181 no_cache=0
5182 # Check whether --enable-logdialog or --disable-logdialog was given.
5183if test "${enable_logdialog+set}" = set; then
5184 enableval="$enable_logdialog"
5185
5186 if test "$enableval" = yes; then
5187 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5188 else
5189 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5190 fi
5191
5192else
5193
5194 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5195 if test "x$LINE" != x ; then
5196 eval "DEFAULT_$LINE"
5197 else
5198 no_cache=1
5199 fi
5200
5201 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5202
5203fi
5204
5205
5206 eval "$ac_cv_use_logdialog"
5207 if test "$no_cache" != 1; then
5208 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5209 fi
5210
5211 if test "$wxUSE_LOGDIALOG" = yes; then
5212 echo "$ac_t""yes" 1>&6
5213 else
5214 echo "$ac_t""no" 1>&6
5215 fi
5216
5217
5218
5219 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5220echo "configure:5221: checking for --enable-postscript" >&5
5221 no_cache=0
5222 # Check whether --enable-postscript or --disable-postscript was given.
5223if test "${enable_postscript+set}" = set; then
5224 enableval="$enable_postscript"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5228 else
5229 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5230 fi
5231
5232else
5233
5234 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5242
5243fi
5244
5245
5246 eval "$ac_cv_use_postscript"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_POSTSCRIPT" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258
5259
5260
5261 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5262echo "configure:5263: checking for --enable-prologio" >&5
5263 no_cache=0
5264 # Check whether --enable-prologio or --disable-prologio was given.
5265if test "${enable_prologio+set}" = set; then
5266 enableval="$enable_prologio"
5267
5268 if test "$enableval" = yes; then
5269 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5270 else
5271 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5272 fi
5273
5274else
5275
5276 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5277 if test "x$LINE" != x ; then
5278 eval "DEFAULT_$LINE"
5279 else
5280 no_cache=1
5281 fi
5282
5283 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5284
5285fi
5286
5287
5288 eval "$ac_cv_use_prologio"
5289 if test "$no_cache" != 1; then
5290 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5291 fi
5292
5293 if test "$wxUSE_PROLOGIO" = yes; then
5294 echo "$ac_t""yes" 1>&6
5295 else
5296 echo "$ac_t""no" 1>&6
5297 fi
5298
5299
5300 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5301echo "configure:5302: checking for --enable-resources" >&5
5302 no_cache=0
5303 # Check whether --enable-resources or --disable-resources was given.
5304if test "${enable_resources+set}" = set; then
5305 enableval="$enable_resources"
5306
5307 if test "$enableval" = yes; then
5308 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5309 else
5310 ac_cv_use_resources='wxUSE_RESOURCES=no'
5311 fi
5312
5313else
5314
5315 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5316 if test "x$LINE" != x ; then
5317 eval "DEFAULT_$LINE"
5318 else
5319 no_cache=1
5320 fi
5321
5322 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5323
5324fi
5325
5326
5327 eval "$ac_cv_use_resources"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_RESOURCES" = yes; then
5333 echo "$ac_t""yes" 1>&6
5334 else
5335 echo "$ac_t""no" 1>&6
5336 fi
5337
5338
5339
5340 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5341echo "configure:5342: checking for --enable-xresources" >&5
5342 no_cache=0
5343 # Check whether --enable-xresources or --disable-xresources was given.
5344if test "${enable_xresources+set}" = set; then
5345 enableval="$enable_xresources"
5346
5347 if test "$enableval" = yes; then
5348 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5349 else
5350 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5351 fi
5352
5353else
5354
5355 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5363
5364fi
5365
5366
5367 eval "$ac_cv_use_xresources"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_X_RESOURCES" = yes; then
5373 echo "$ac_t""yes" 1>&6
5374 else
5375 echo "$ac_t""no" 1>&6
5376 fi
5377
5378
5379
5380
5381 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5382echo "configure:5383: checking for --enable-clipboard" >&5
5383 no_cache=0
5384 # Check whether --enable-clipboard or --disable-clipboard was given.
5385if test "${enable_clipboard+set}" = set; then
5386 enableval="$enable_clipboard"
5387
5388 if test "$enableval" = yes; then
5389 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5390 else
5391 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5392 fi
5393
5394else
5395
5396 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5404
5405fi
5406
5407
5408 eval "$ac_cv_use_clipboard"
5409 if test "$no_cache" != 1; then
5410 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5411 fi
5412
5413 if test "$wxUSE_CLIPBOARD" = yes; then
5414 echo "$ac_t""yes" 1>&6
5415 else
5416 echo "$ac_t""no" 1>&6
5417 fi
5418
5419
5420 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5421echo "configure:5422: checking for --enable-dnd" >&5
5422 no_cache=0
5423 # Check whether --enable-dnd or --disable-dnd was given.
5424if test "${enable_dnd+set}" = set; then
5425 enableval="$enable_dnd"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5429 else
5430 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5431 fi
5432
5433else
5434
5435 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5443
5444fi
5445
5446
5447 eval "$ac_cv_use_dnd"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5453 echo "$ac_t""yes" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5456 fi
5457
5458
5459 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5460echo "configure:5461: checking for --enable-metafile" >&5
5461 no_cache=0
5462 # Check whether --enable-metafile or --disable-metafile was given.
5463if test "${enable_metafile+set}" = set; then
5464 enableval="$enable_metafile"
5465
5466 if test "$enableval" = yes; then
5467 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5468 else
5469 ac_cv_use_metafile='wxUSE_METAFILE=no'
5470 fi
5471
5472else
5473
5474 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5482
5483fi
5484
5485
5486 eval "$ac_cv_use_metafile"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_METAFILE" = yes; then
5492 echo "$ac_t""yes" 1>&6
5493 else
5494 echo "$ac_t""no" 1>&6
5495 fi
5496
5497
5498
5499 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5500echo "configure:5501: checking for --enable-treelayout" >&5
5501 no_cache=0
5502 # Check whether --enable-treelayout or --disable-treelayout was given.
5503if test "${enable_treelayout+set}" = set; then
5504 enableval="$enable_treelayout"
5505
5506 if test "$enableval" = yes; then
5507 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5508 else
5509 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5510 fi
5511
5512else
5513
5514 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
5521 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5522
5523fi
5524
5525
5526 eval "$ac_cv_use_treelayout"
5527 if test "$no_cache" != 1; then
5528 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5529 fi
5530
5531 if test "$wxUSE_TREELAYOUT" = yes; then
5532 echo "$ac_t""yes" 1>&6
5533 else
5534 echo "$ac_t""no" 1>&6
5535 fi
5536
5537
5538
5539
5540 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5541echo "configure:5542: checking for --enable-controls" >&5
5542 no_cache=0
5543 # Check whether --enable-controls or --disable-controls was given.
5544if test "${enable_controls+set}" = set; then
5545 enableval="$enable_controls"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5549 else
5550 ac_cv_use_controls='wxUSE_CONTROLS=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5563
5564fi
5565
5566
5567 eval "$ac_cv_use_controls"
5568 if test "$no_cache" != 1; then
5569 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5570 fi
5571
5572 if test "$wxUSE_CONTROLS" = yes; then
5573 echo "$ac_t""yes" 1>&6
5574 else
5575 echo "$ac_t""no" 1>&6
5576 fi
5577
5578
5579if test "$wxUSE_CONTROLS" = "yes"; then
5580 DEFAULT_wxUSE_ACCEL=yes
5581 DEFAULT_wxUSE_BMPBUTTON=yes
5582 DEFAULT_wxUSE_BUTTON=yes
5583 DEFAULT_wxUSE_CALCTRL=no
5584 DEFAULT_wxUSE_CARET=yes
5585 DEFAULT_wxUSE_COMBOBOX=yes
5586 DEFAULT_wxUSE_CHECKBOX=yes
5587 DEFAULT_wxUSE_CHECKLISTBOX=yes
5588 DEFAULT_wxUSE_CHOICE=yes
5589 DEFAULT_wxUSE_GAUGE=yes
5590 DEFAULT_wxUSE_GRID=yes
5591 DEFAULT_wxUSE_NEW_GRID=yes
5592 DEFAULT_wxUSE_IMAGLIST=yes
5593 DEFAULT_wxUSE_LISTBOX=yes
5594 DEFAULT_wxUSE_LISTCTRL=yes
5595 DEFAULT_wxUSE_NOTEBOOK=yes
5596 DEFAULT_wxUSE_PROPSHEET=yes
5597 DEFAULT_wxUSE_RADIOBOX=yes
5598 DEFAULT_wxUSE_RADIOBTN=yes
5599 DEFAULT_wxUSE_SASH=yes
5600 DEFAULT_wxUSE_SCROLLBAR=yes
5601 DEFAULT_wxUSE_SLIDER=yes
5602 DEFAULT_wxUSE_SPINBTN=yes
5603 DEFAULT_wxUSE_SPINCTRL=yes
5604 DEFAULT_wxUSE_SPLITTER=yes
5605 DEFAULT_wxUSE_STATBMP=yes
5606 DEFAULT_wxUSE_STATBOX=yes
5607 DEFAULT_wxUSE_STATLINE=yes
5608 DEFAULT_wxUSE_STATUSBAR=yes
5609 DEFAULT_wxUSE_TAB_DIALOG=yes
5610 DEFAULT_wxUSE_TOGGLEBTN=yes
5611 DEFAULT_wxUSE_TOOLBAR=yes
5612 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5613 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5614 DEFAULT_wxUSE_TOOLTIPS=yes
5615 DEFAULT_wxUSE_TREECTRL=yes
5616 DEFAULT_wxUSE_POPUPWIN=yes
5617 DEFAULT_wxUSE_TIPWINDOW=yes
5618elif test "$wxUSE_CONTROLS" = "no"; then
5619 DEFAULT_wxUSE_ACCEL=no
5620 DEFAULT_wxUSE_BMPBUTTON=no
5621 DEFAULT_wxUSE_BUTTON=no
5622 DEFAULT_wxUSE_CALCTRL=no
5623 DEFAULT_wxUSE_CARET=no
5624 DEFAULT_wxUSE_COMBOBOX=no
5625 DEFAULT_wxUSE_CHECKBOX=no
5626 DEFAULT_wxUSE_CHECKLISTBOX=no
5627 DEFAULT_wxUSE_CHOICE=no
5628 DEFAULT_wxUSE_GAUGE=no
5629 DEFAULT_wxUSE_GRID=no
5630 DEFAULT_wxUSE_NEW_GRID=no
5631 DEFAULT_wxUSE_IMAGLIST=no
5632 DEFAULT_wxUSE_LISTBOX=no
5633 DEFAULT_wxUSE_LISTCTRL=no
5634 DEFAULT_wxUSE_NOTEBOOK=no
5635 DEFAULT_wxUSE_PROPSHEET=no
5636 DEFAULT_wxUSE_RADIOBOX=no
5637 DEFAULT_wxUSE_RADIOBTN=no
5638 DEFAULT_wxUSE_SASH=no
5639 DEFAULT_wxUSE_SCROLLBAR=no
5640 DEFAULT_wxUSE_SLIDER=no
5641 DEFAULT_wxUSE_SPINBTN=no
5642 DEFAULT_wxUSE_SPINCTRL=no
5643 DEFAULT_wxUSE_SPLITTER=no
5644 DEFAULT_wxUSE_STATBMP=no
5645 DEFAULT_wxUSE_STATBOX=no
5646 DEFAULT_wxUSE_STATLINE=no
5647 DEFAULT_wxUSE_STATUSBAR=no
5648 DEFAULT_wxUSE_TAB_DIALOG=no
5649 DEFAULT_wxUSE_TOGGLEBTN=no
5650 DEFAULT_wxUSE_TOOLBAR=no
5651 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5652 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5653 DEFAULT_wxUSE_TOOLTIPS=no
5654 DEFAULT_wxUSE_TREECTRL=no
5655 DEFAULT_wxUSE_POPUPWIN=no
5656 DEFAULT_wxUSE_TIPWINDOW=no
5657fi
5658
5659
5660 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5661echo "configure:5662: checking for --enable-accel" >&5
5662 no_cache=0
5663 # Check whether --enable-accel or --disable-accel was given.
5664if test "${enable_accel+set}" = set; then
5665 enableval="$enable_accel"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_accel='wxUSE_ACCEL=yes'
5669 else
5670 ac_cv_use_accel='wxUSE_ACCEL=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5683
5684fi
5685
5686
5687 eval "$ac_cv_use_accel"
5688 if test "$no_cache" != 1; then
5689 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5690 fi
5691
5692 if test "$wxUSE_ACCEL" = yes; then
5693 echo "$ac_t""yes" 1>&6
5694 else
5695 echo "$ac_t""no" 1>&6
5696 fi
5697
5698
5699 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5700echo "configure:5701: checking for --enable-button" >&5
5701 no_cache=0
5702 # Check whether --enable-button or --disable-button was given.
5703if test "${enable_button+set}" = set; then
5704 enableval="$enable_button"
5705
5706 if test "$enableval" = yes; then
5707 ac_cv_use_button='wxUSE_BUTTON=yes'
5708 else
5709 ac_cv_use_button='wxUSE_BUTTON=no'
5710 fi
5711
5712else
5713
5714 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
5721 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5722
5723fi
5724
5725
5726 eval "$ac_cv_use_button"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_BUTTON" = yes; then
5732 echo "$ac_t""yes" 1>&6
5733 else
5734 echo "$ac_t""no" 1>&6
5735 fi
5736
5737
5738 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5739echo "configure:5740: checking for --enable-bmpbutton" >&5
5740 no_cache=0
5741 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5742if test "${enable_bmpbutton+set}" = set; then
5743 enableval="$enable_bmpbutton"
5744
5745 if test "$enableval" = yes; then
5746 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5747 else
5748 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5749 fi
5750
5751else
5752
5753 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5754 if test "x$LINE" != x ; then
5755 eval "DEFAULT_$LINE"
5756 else
5757 no_cache=1
5758 fi
5759
5760 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5761
5762fi
5763
5764
5765 eval "$ac_cv_use_bmpbutton"
5766 if test "$no_cache" != 1; then
5767 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5768 fi
5769
5770 if test "$wxUSE_BMPBUTTON" = yes; then
5771 echo "$ac_t""yes" 1>&6
5772 else
5773 echo "$ac_t""no" 1>&6
5774 fi
5775
5776
5777 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5778echo "configure:5779: checking for --enable-calendar" >&5
5779 no_cache=0
5780 # Check whether --enable-calendar or --disable-calendar was given.
5781if test "${enable_calendar+set}" = set; then
5782 enableval="$enable_calendar"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5786 else
5787 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5800
5801fi
5802
5803
5804 eval "$ac_cv_use_calendar"
5805 if test "$no_cache" != 1; then
5806 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5807 fi
5808
5809 if test "$wxUSE_CALCTRL" = yes; then
5810 echo "$ac_t""yes" 1>&6
5811 else
5812 echo "$ac_t""no" 1>&6
5813 fi
5814
5815
5816 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5817echo "configure:5818: checking for --enable-caret" >&5
5818 no_cache=0
5819 # Check whether --enable-caret or --disable-caret was given.
5820if test "${enable_caret+set}" = set; then
5821 enableval="$enable_caret"
5822
5823 if test "$enableval" = yes; then
5824 ac_cv_use_caret='wxUSE_CARET=yes'
5825 else
5826 ac_cv_use_caret='wxUSE_CARET=no'
5827 fi
5828
5829else
5830
5831 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5832 if test "x$LINE" != x ; then
5833 eval "DEFAULT_$LINE"
5834 else
5835 no_cache=1
5836 fi
5837
5838 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5839
5840fi
5841
5842
5843 eval "$ac_cv_use_caret"
5844 if test "$no_cache" != 1; then
5845 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5846 fi
5847
5848 if test "$wxUSE_CARET" = yes; then
5849 echo "$ac_t""yes" 1>&6
5850 else
5851 echo "$ac_t""no" 1>&6
5852 fi
5853
5854
5855 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5856echo "configure:5857: checking for --enable-checkbox" >&5
5857 no_cache=0
5858 # Check whether --enable-checkbox or --disable-checkbox was given.
5859if test "${enable_checkbox+set}" = set; then
5860 enableval="$enable_checkbox"
5861
5862 if test "$enableval" = yes; then
5863 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5864 else
5865 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5866 fi
5867
5868else
5869
5870 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5871 if test "x$LINE" != x ; then
5872 eval "DEFAULT_$LINE"
5873 else
5874 no_cache=1
5875 fi
5876
5877 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5878
5879fi
5880
5881
5882 eval "$ac_cv_use_checkbox"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_CHECKBOX" = yes; then
5888 echo "$ac_t""yes" 1>&6
5889 else
5890 echo "$ac_t""no" 1>&6
5891 fi
5892
5893
5894 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5895echo "configure:5896: checking for --enable-checklst" >&5
5896 no_cache=0
5897 # Check whether --enable-checklst or --disable-checklst was given.
5898if test "${enable_checklst+set}" = set; then
5899 enableval="$enable_checklst"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5903 else
5904 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5905 fi
5906
5907else
5908
5909 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5917
5918fi
5919
5920
5921 eval "$ac_cv_use_checklst"
5922 if test "$no_cache" != 1; then
5923 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5924 fi
5925
5926 if test "$wxUSE_CHECKLST" = yes; then
5927 echo "$ac_t""yes" 1>&6
5928 else
5929 echo "$ac_t""no" 1>&6
5930 fi
5931
5932
5933 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5934echo "configure:5935: checking for --enable-choice" >&5
5935 no_cache=0
5936 # Check whether --enable-choice or --disable-choice was given.
5937if test "${enable_choice+set}" = set; then
5938 enableval="$enable_choice"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_choice='wxUSE_CHOICE=yes'
5942 else
5943 ac_cv_use_choice='wxUSE_CHOICE=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5956
5957fi
5958
5959
5960 eval "$ac_cv_use_choice"
5961 if test "$no_cache" != 1; then
5962 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5963 fi
5964
5965 if test "$wxUSE_CHOICE" = yes; then
5966 echo "$ac_t""yes" 1>&6
5967 else
5968 echo "$ac_t""no" 1>&6
5969 fi
5970
5971
5972 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5973echo "configure:5974: checking for --enable-combobox" >&5
5974 no_cache=0
5975 # Check whether --enable-combobox or --disable-combobox was given.
5976if test "${enable_combobox+set}" = set; then
5977 enableval="$enable_combobox"
5978
5979 if test "$enableval" = yes; then
5980 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5981 else
5982 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5983 fi
5984
5985else
5986
5987 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5988 if test "x$LINE" != x ; then
5989 eval "DEFAULT_$LINE"
5990 else
5991 no_cache=1
5992 fi
5993
5994 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5995
5996fi
5997
5998
5999 eval "$ac_cv_use_combobox"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_COMBOBOX" = yes; then
6005 echo "$ac_t""yes" 1>&6
6006 else
6007 echo "$ac_t""no" 1>&6
6008 fi
6009
6010
6011 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6012echo "configure:6013: checking for --enable-gauge" >&5
6013 no_cache=0
6014 # Check whether --enable-gauge or --disable-gauge was given.
6015if test "${enable_gauge+set}" = set; then
6016 enableval="$enable_gauge"
6017
6018 if test "$enableval" = yes; then
6019 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6020 else
6021 ac_cv_use_gauge='wxUSE_GAUGE=no'
6022 fi
6023
6024else
6025
6026 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6034
6035fi
6036
6037
6038 eval "$ac_cv_use_gauge"
6039 if test "$no_cache" != 1; then
6040 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6041 fi
6042
6043 if test "$wxUSE_GAUGE" = yes; then
6044 echo "$ac_t""yes" 1>&6
6045 else
6046 echo "$ac_t""no" 1>&6
6047 fi
6048
6049
6050 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6051echo "configure:6052: checking for --enable-grid" >&5
6052 no_cache=0
6053 # Check whether --enable-grid or --disable-grid was given.
6054if test "${enable_grid+set}" = set; then
6055 enableval="$enable_grid"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_grid='wxUSE_GRID=yes'
6059 else
6060 ac_cv_use_grid='wxUSE_GRID=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6073
6074fi
6075
6076
6077 eval "$ac_cv_use_grid"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_GRID" = yes; then
6083 echo "$ac_t""yes" 1>&6
6084 else
6085 echo "$ac_t""no" 1>&6
6086 fi
6087
6088
6089 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6090echo "configure:6091: checking for --enable-newgrid" >&5
6091 no_cache=0
6092 # Check whether --enable-newgrid or --disable-newgrid was given.
6093if test "${enable_newgrid+set}" = set; then
6094 enableval="$enable_newgrid"
6095
6096 if test "$enableval" = yes; then
6097 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6098 else
6099 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6100 fi
6101
6102else
6103
6104 LINE=`grep "wxUSE_NEW_GRID" ${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_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6112
6113fi
6114
6115
6116 eval "$ac_cv_use_newgrid"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_NEW_GRID" = yes; then
6122 echo "$ac_t""yes" 1>&6
6123 else
6124 echo "$ac_t""no" 1>&6
6125 fi
6126
6127
6128 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6129echo "configure:6130: checking for --enable-imaglist" >&5
6130 no_cache=0
6131 # Check whether --enable-imaglist or --disable-imaglist was given.
6132if test "${enable_imaglist+set}" = set; then
6133 enableval="$enable_imaglist"
6134
6135 if test "$enableval" = yes; then
6136 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6137 else
6138 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6139 fi
6140
6141else
6142
6143 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6144 if test "x$LINE" != x ; then
6145 eval "DEFAULT_$LINE"
6146 else
6147 no_cache=1
6148 fi
6149
6150 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6151
6152fi
6153
6154
6155 eval "$ac_cv_use_imaglist"
6156 if test "$no_cache" != 1; then
6157 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6158 fi
6159
6160 if test "$wxUSE_IMAGLIST" = yes; then
6161 echo "$ac_t""yes" 1>&6
6162 else
6163 echo "$ac_t""no" 1>&6
6164 fi
6165
6166
6167 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6168echo "configure:6169: checking for --enable-listbox" >&5
6169 no_cache=0
6170 # Check whether --enable-listbox or --disable-listbox was given.
6171if test "${enable_listbox+set}" = set; then
6172 enableval="$enable_listbox"
6173
6174 if test "$enableval" = yes; then
6175 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6176 else
6177 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6178 fi
6179
6180else
6181
6182 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6183 if test "x$LINE" != x ; then
6184 eval "DEFAULT_$LINE"
6185 else
6186 no_cache=1
6187 fi
6188
6189 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6190
6191fi
6192
6193
6194 eval "$ac_cv_use_listbox"
6195 if test "$no_cache" != 1; then
6196 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6197 fi
6198
6199 if test "$wxUSE_LISTBOX" = yes; then
6200 echo "$ac_t""yes" 1>&6
6201 else
6202 echo "$ac_t""no" 1>&6
6203 fi
6204
6205
6206 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6207echo "configure:6208: checking for --enable-listctrl" >&5
6208 no_cache=0
6209 # Check whether --enable-listctrl or --disable-listctrl was given.
6210if test "${enable_listctrl+set}" = set; then
6211 enableval="$enable_listctrl"
6212
6213 if test "$enableval" = yes; then
6214 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6215 else
6216 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6217 fi
6218
6219else
6220
6221 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6222 if test "x$LINE" != x ; then
6223 eval "DEFAULT_$LINE"
6224 else
6225 no_cache=1
6226 fi
6227
6228 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6229
6230fi
6231
6232
6233 eval "$ac_cv_use_listctrl"
6234 if test "$no_cache" != 1; then
6235 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6236 fi
6237
6238 if test "$wxUSE_LISTCTRL" = yes; then
6239 echo "$ac_t""yes" 1>&6
6240 else
6241 echo "$ac_t""no" 1>&6
6242 fi
6243
6244
6245 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6246echo "configure:6247: checking for --enable-notebook" >&5
6247 no_cache=0
6248 # Check whether --enable-notebook or --disable-notebook was given.
6249if test "${enable_notebook+set}" = set; then
6250 enableval="$enable_notebook"
6251
6252 if test "$enableval" = yes; then
6253 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6254 else
6255 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6256 fi
6257
6258else
6259
6260 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6261 if test "x$LINE" != x ; then
6262 eval "DEFAULT_$LINE"
6263 else
6264 no_cache=1
6265 fi
6266
6267 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6268
6269fi
6270
6271
6272 eval "$ac_cv_use_notebook"
6273 if test "$no_cache" != 1; then
6274 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6275 fi
6276
6277 if test "$wxUSE_NOTEBOOK" = yes; then
6278 echo "$ac_t""yes" 1>&6
6279 else
6280 echo "$ac_t""no" 1>&6
6281 fi
6282
6283
6284 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6285echo "configure:6286: checking for --enable-propsheet" >&5
6286 no_cache=0
6287 # Check whether --enable-propsheet or --disable-propsheet was given.
6288if test "${enable_propsheet+set}" = set; then
6289 enableval="$enable_propsheet"
6290
6291 if test "$enableval" = yes; then
6292 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6293 else
6294 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6295 fi
6296
6297else
6298
6299 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6300 if test "x$LINE" != x ; then
6301 eval "DEFAULT_$LINE"
6302 else
6303 no_cache=1
6304 fi
6305
6306 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6307
6308fi
6309
6310
6311 eval "$ac_cv_use_propsheet"
6312 if test "$no_cache" != 1; then
6313 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6314 fi
6315
6316 if test "$wxUSE_PROPSHEET" = yes; then
6317 echo "$ac_t""yes" 1>&6
6318 else
6319 echo "$ac_t""no" 1>&6
6320 fi
6321
6322
6323 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6324echo "configure:6325: checking for --enable-radiobox" >&5
6325 no_cache=0
6326 # Check whether --enable-radiobox or --disable-radiobox was given.
6327if test "${enable_radiobox+set}" = set; then
6328 enableval="$enable_radiobox"
6329
6330 if test "$enableval" = yes; then
6331 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6332 else
6333 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6334 fi
6335
6336else
6337
6338 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6339 if test "x$LINE" != x ; then
6340 eval "DEFAULT_$LINE"
6341 else
6342 no_cache=1
6343 fi
6344
6345 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6346
6347fi
6348
6349
6350 eval "$ac_cv_use_radiobox"
6351 if test "$no_cache" != 1; then
6352 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6353 fi
6354
6355 if test "$wxUSE_RADIOBOX" = yes; then
6356 echo "$ac_t""yes" 1>&6
6357 else
6358 echo "$ac_t""no" 1>&6
6359 fi
6360
6361
6362 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6363echo "configure:6364: checking for --enable-radiobtn" >&5
6364 no_cache=0
6365 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6366if test "${enable_radiobtn+set}" = set; then
6367 enableval="$enable_radiobtn"
6368
6369 if test "$enableval" = yes; then
6370 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6371 else
6372 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6373 fi
6374
6375else
6376
6377 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6385
6386fi
6387
6388
6389 eval "$ac_cv_use_radiobtn"
6390 if test "$no_cache" != 1; then
6391 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6392 fi
6393
6394 if test "$wxUSE_RADIOBTN" = yes; then
6395 echo "$ac_t""yes" 1>&6
6396 else
6397 echo "$ac_t""no" 1>&6
6398 fi
6399
6400
6401 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6402echo "configure:6403: checking for --enable-sash" >&5
6403 no_cache=0
6404 # Check whether --enable-sash or --disable-sash was given.
6405if test "${enable_sash+set}" = set; then
6406 enableval="$enable_sash"
6407
6408 if test "$enableval" = yes; then
6409 ac_cv_use_sash='wxUSE_SASH=yes'
6410 else
6411 ac_cv_use_sash='wxUSE_SASH=no'
6412 fi
6413
6414else
6415
6416 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6417 if test "x$LINE" != x ; then
6418 eval "DEFAULT_$LINE"
6419 else
6420 no_cache=1
6421 fi
6422
6423 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6424
6425fi
6426
6427
6428 eval "$ac_cv_use_sash"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_SASH" = yes; then
6434 echo "$ac_t""yes" 1>&6
6435 else
6436 echo "$ac_t""no" 1>&6
6437 fi
6438
6439
6440 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6441echo "configure:6442: checking for --enable-scrollbar" >&5
6442 no_cache=0
6443 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6444if test "${enable_scrollbar+set}" = set; then
6445 enableval="$enable_scrollbar"
6446
6447 if test "$enableval" = yes; then
6448 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6449 else
6450 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6451 fi
6452
6453else
6454
6455 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6456 if test "x$LINE" != x ; then
6457 eval "DEFAULT_$LINE"
6458 else
6459 no_cache=1
6460 fi
6461
6462 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6463
6464fi
6465
6466
6467 eval "$ac_cv_use_scrollbar"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_SCROLLBAR" = yes; then
6473 echo "$ac_t""yes" 1>&6
6474 else
6475 echo "$ac_t""no" 1>&6
6476 fi
6477
6478
6479 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6480echo "configure:6481: checking for --enable-slider" >&5
6481 no_cache=0
6482 # Check whether --enable-slider or --disable-slider was given.
6483if test "${enable_slider+set}" = set; then
6484 enableval="$enable_slider"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_slider='wxUSE_SLIDER=yes'
6488 else
6489 ac_cv_use_slider='wxUSE_SLIDER=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6502
6503fi
6504
6505
6506 eval "$ac_cv_use_slider"
6507 if test "$no_cache" != 1; then
6508 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6509 fi
6510
6511 if test "$wxUSE_SLIDER" = yes; then
6512 echo "$ac_t""yes" 1>&6
6513 else
6514 echo "$ac_t""no" 1>&6
6515 fi
6516
6517
6518 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6519echo "configure:6520: checking for --enable-spinbtn" >&5
6520 no_cache=0
6521 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6522if test "${enable_spinbtn+set}" = set; then
6523 enableval="$enable_spinbtn"
6524
6525 if test "$enableval" = yes; then
6526 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6527 else
6528 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6529 fi
6530
6531else
6532
6533 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6534 if test "x$LINE" != x ; then
6535 eval "DEFAULT_$LINE"
6536 else
6537 no_cache=1
6538 fi
6539
6540 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6541
6542fi
6543
6544
6545 eval "$ac_cv_use_spinbtn"
6546 if test "$no_cache" != 1; then
6547 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6548 fi
6549
6550 if test "$wxUSE_SPINBTN" = yes; then
6551 echo "$ac_t""yes" 1>&6
6552 else
6553 echo "$ac_t""no" 1>&6
6554 fi
6555
6556
6557 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6558echo "configure:6559: checking for --enable-spinctrl" >&5
6559 no_cache=0
6560 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6561if test "${enable_spinctrl+set}" = set; then
6562 enableval="$enable_spinctrl"
6563
6564 if test "$enableval" = yes; then
6565 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6566 else
6567 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6568 fi
6569
6570else
6571
6572 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6573 if test "x$LINE" != x ; then
6574 eval "DEFAULT_$LINE"
6575 else
6576 no_cache=1
6577 fi
6578
6579 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6580
6581fi
6582
6583
6584 eval "$ac_cv_use_spinctrl"
6585 if test "$no_cache" != 1; then
6586 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6587 fi
6588
6589 if test "$wxUSE_SPINCTRL" = yes; then
6590 echo "$ac_t""yes" 1>&6
6591 else
6592 echo "$ac_t""no" 1>&6
6593 fi
6594
6595
6596 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6597echo "configure:6598: checking for --enable-splitter" >&5
6598 no_cache=0
6599 # Check whether --enable-splitter or --disable-splitter was given.
6600if test "${enable_splitter+set}" = set; then
6601 enableval="$enable_splitter"
6602
6603 if test "$enableval" = yes; then
6604 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6605 else
6606 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6607 fi
6608
6609else
6610
6611 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6612 if test "x$LINE" != x ; then
6613 eval "DEFAULT_$LINE"
6614 else
6615 no_cache=1
6616 fi
6617
6618 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6619
6620fi
6621
6622
6623 eval "$ac_cv_use_splitter"
6624 if test "$no_cache" != 1; then
6625 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6626 fi
6627
6628 if test "$wxUSE_SPLITTER" = yes; then
6629 echo "$ac_t""yes" 1>&6
6630 else
6631 echo "$ac_t""no" 1>&6
6632 fi
6633
6634
6635 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6636echo "configure:6637: checking for --enable-statbmp" >&5
6637 no_cache=0
6638 # Check whether --enable-statbmp or --disable-statbmp was given.
6639if test "${enable_statbmp+set}" = set; then
6640 enableval="$enable_statbmp"
6641
6642 if test "$enableval" = yes; then
6643 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6644 else
6645 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6646 fi
6647
6648else
6649
6650 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6651 if test "x$LINE" != x ; then
6652 eval "DEFAULT_$LINE"
6653 else
6654 no_cache=1
6655 fi
6656
6657 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6658
6659fi
6660
6661
6662 eval "$ac_cv_use_statbmp"
6663 if test "$no_cache" != 1; then
6664 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6665 fi
6666
6667 if test "$wxUSE_STATBMP" = yes; then
6668 echo "$ac_t""yes" 1>&6
6669 else
6670 echo "$ac_t""no" 1>&6
6671 fi
6672
6673
6674 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6675echo "configure:6676: checking for --enable-statbox" >&5
6676 no_cache=0
6677 # Check whether --enable-statbox or --disable-statbox was given.
6678if test "${enable_statbox+set}" = set; then
6679 enableval="$enable_statbox"
6680
6681 if test "$enableval" = yes; then
6682 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6683 else
6684 ac_cv_use_statbox='wxUSE_STATBOX=no'
6685 fi
6686
6687else
6688
6689 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6690 if test "x$LINE" != x ; then
6691 eval "DEFAULT_$LINE"
6692 else
6693 no_cache=1
6694 fi
6695
6696 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6697
6698fi
6699
6700
6701 eval "$ac_cv_use_statbox"
6702 if test "$no_cache" != 1; then
6703 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6704 fi
6705
6706 if test "$wxUSE_STATBOX" = yes; then
6707 echo "$ac_t""yes" 1>&6
6708 else
6709 echo "$ac_t""no" 1>&6
6710 fi
6711
6712
6713 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6714echo "configure:6715: checking for --enable-statline" >&5
6715 no_cache=0
6716 # Check whether --enable-statline or --disable-statline was given.
6717if test "${enable_statline+set}" = set; then
6718 enableval="$enable_statline"
6719
6720 if test "$enableval" = yes; then
6721 ac_cv_use_statline='wxUSE_STATLINE=yes'
6722 else
6723 ac_cv_use_statline='wxUSE_STATLINE=no'
6724 fi
6725
6726else
6727
6728 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
6735 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6736
6737fi
6738
6739
6740 eval "$ac_cv_use_statline"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6743 fi
6744
6745 if test "$wxUSE_STATLINE" = yes; then
6746 echo "$ac_t""yes" 1>&6
6747 else
6748 echo "$ac_t""no" 1>&6
6749 fi
6750
6751
6752 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6753echo "configure:6754: checking for --enable-stattext" >&5
6754 no_cache=0
6755 # Check whether --enable-stattext or --disable-stattext was given.
6756if test "${enable_stattext+set}" = set; then
6757 enableval="$enable_stattext"
6758
6759 if test "$enableval" = yes; then
6760 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6761 else
6762 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6763 fi
6764
6765else
6766
6767 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6768 if test "x$LINE" != x ; then
6769 eval "DEFAULT_$LINE"
6770 else
6771 no_cache=1
6772 fi
6773
6774 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6775
6776fi
6777
6778
6779 eval "$ac_cv_use_stattext"
6780 if test "$no_cache" != 1; then
6781 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6782 fi
6783
6784 if test "$wxUSE_STATTEXT" = yes; then
6785 echo "$ac_t""yes" 1>&6
6786 else
6787 echo "$ac_t""no" 1>&6
6788 fi
6789
6790
6791 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6792echo "configure:6793: checking for --enable-statusbar" >&5
6793 no_cache=0
6794 # Check whether --enable-statusbar or --disable-statusbar was given.
6795if test "${enable_statusbar+set}" = set; then
6796 enableval="$enable_statusbar"
6797
6798 if test "$enableval" = yes; then
6799 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6800 else
6801 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6802 fi
6803
6804else
6805
6806 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6807 if test "x$LINE" != x ; then
6808 eval "DEFAULT_$LINE"
6809 else
6810 no_cache=1
6811 fi
6812
6813 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6814
6815fi
6816
6817
6818 eval "$ac_cv_use_statusbar"
6819 if test "$no_cache" != 1; then
6820 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6821 fi
6822
6823 if test "$wxUSE_STATUSBAR" = yes; then
6824 echo "$ac_t""yes" 1>&6
6825 else
6826 echo "$ac_t""no" 1>&6
6827 fi
6828
6829
6830 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6831echo "configure:6832: checking for --enable-tabdialog" >&5
6832 no_cache=0
6833 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6834if test "${enable_tabdialog+set}" = set; then
6835 enableval="$enable_tabdialog"
6836
6837 if test "$enableval" = yes; then
6838 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6839 else
6840 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6841 fi
6842
6843else
6844
6845 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6846 if test "x$LINE" != x ; then
6847 eval "DEFAULT_$LINE"
6848 else
6849 no_cache=1
6850 fi
6851
6852 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6853
6854fi
6855
6856
6857 eval "$ac_cv_use_tabdialog"
6858 if test "$no_cache" != 1; then
6859 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6860 fi
6861
6862 if test "$wxUSE_TABDIALOG" = yes; then
6863 echo "$ac_t""yes" 1>&6
6864 else
6865 echo "$ac_t""no" 1>&6
6866 fi
6867
6868
6869 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6870echo "configure:6871: checking for --enable-textctrl" >&5
6871 no_cache=0
6872 # Check whether --enable-textctrl or --disable-textctrl was given.
6873if test "${enable_textctrl+set}" = set; then
6874 enableval="$enable_textctrl"
6875
6876 if test "$enableval" = yes; then
6877 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6878 else
6879 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6880 fi
6881
6882else
6883
6884 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6885 if test "x$LINE" != x ; then
6886 eval "DEFAULT_$LINE"
6887 else
6888 no_cache=1
6889 fi
6890
6891 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6892
6893fi
6894
6895
6896 eval "$ac_cv_use_textctrl"
6897 if test "$no_cache" != 1; then
6898 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6899 fi
6900
6901 if test "$wxUSE_TEXTCTRL" = yes; then
6902 echo "$ac_t""yes" 1>&6
6903 else
6904 echo "$ac_t""no" 1>&6
6905 fi
6906
6907
6908 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6909echo "configure:6910: checking for --enable-togglebtn" >&5
6910 no_cache=0
6911 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6912if test "${enable_togglebtn+set}" = set; then
6913 enableval="$enable_togglebtn"
6914
6915 if test "$enableval" = yes; then
6916 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6917 else
6918 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6919 fi
6920
6921else
6922
6923 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6924 if test "x$LINE" != x ; then
6925 eval "DEFAULT_$LINE"
6926 else
6927 no_cache=1
6928 fi
6929
6930 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6931
6932fi
6933
6934
6935 eval "$ac_cv_use_togglebtn"
6936 if test "$no_cache" != 1; then
6937 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6938 fi
6939
6940 if test "$wxUSE_TOGGLEBTN" = yes; then
6941 echo "$ac_t""yes" 1>&6
6942 else
6943 echo "$ac_t""no" 1>&6
6944 fi
6945
6946
6947 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6948echo "configure:6949: checking for --enable-toolbar" >&5
6949 no_cache=0
6950 # Check whether --enable-toolbar or --disable-toolbar was given.
6951if test "${enable_toolbar+set}" = set; then
6952 enableval="$enable_toolbar"
6953
6954 if test "$enableval" = yes; then
6955 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6956 else
6957 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6958 fi
6959
6960else
6961
6962 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6963 if test "x$LINE" != x ; then
6964 eval "DEFAULT_$LINE"
6965 else
6966 no_cache=1
6967 fi
6968
6969 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6970
6971fi
6972
6973
6974 eval "$ac_cv_use_toolbar"
6975 if test "$no_cache" != 1; then
6976 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6977 fi
6978
6979 if test "$wxUSE_TOOLBAR" = yes; then
6980 echo "$ac_t""yes" 1>&6
6981 else
6982 echo "$ac_t""no" 1>&6
6983 fi
6984
6985
6986 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6987echo "configure:6988: checking for --enable-tbarnative" >&5
6988 no_cache=0
6989 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6990if test "${enable_tbarnative+set}" = set; then
6991 enableval="$enable_tbarnative"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6995 else
6996 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7009
7010fi
7011
7012
7013 eval "$ac_cv_use_tbarnative"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7019 echo "$ac_t""yes" 1>&6
7020 else
7021 echo "$ac_t""no" 1>&6
7022 fi
7023
7024
7025 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7026echo "configure:7027: checking for --enable-tbarsmpl" >&5
7027 no_cache=0
7028 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7029if test "${enable_tbarsmpl+set}" = set; then
7030 enableval="$enable_tbarsmpl"
7031
7032 if test "$enableval" = yes; then
7033 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7034 else
7035 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7036 fi
7037
7038else
7039
7040 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7041 if test "x$LINE" != x ; then
7042 eval "DEFAULT_$LINE"
7043 else
7044 no_cache=1
7045 fi
7046
7047 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7048
7049fi
7050
7051
7052 eval "$ac_cv_use_tbarsmpl"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7058 echo "$ac_t""yes" 1>&6
7059 else
7060 echo "$ac_t""no" 1>&6
7061 fi
7062
7063
7064 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7065echo "configure:7066: checking for --enable-treectrl" >&5
7066 no_cache=0
7067 # Check whether --enable-treectrl or --disable-treectrl was given.
7068if test "${enable_treectrl+set}" = set; then
7069 enableval="$enable_treectrl"
7070
7071 if test "$enableval" = yes; then
7072 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7073 else
7074 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7075 fi
7076
7077else
7078
7079 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7087
7088fi
7089
7090
7091 eval "$ac_cv_use_treectrl"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_TREECTRL" = yes; then
7097 echo "$ac_t""yes" 1>&6
7098 else
7099 echo "$ac_t""no" 1>&6
7100 fi
7101
7102
7103 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7104echo "configure:7105: checking for --enable-tipwindow" >&5
7105 no_cache=0
7106 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7107if test "${enable_tipwindow+set}" = set; then
7108 enableval="$enable_tipwindow"
7109
7110 if test "$enableval" = yes; then
7111 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7112 else
7113 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7114 fi
7115
7116else
7117
7118 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7126
7127fi
7128
7129
7130 eval "$ac_cv_use_tipwindow"
7131 if test "$no_cache" != 1; then
7132 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7133 fi
7134
7135 if test "$wxUSE_TIPWINDOW" = yes; then
7136 echo "$ac_t""yes" 1>&6
7137 else
7138 echo "$ac_t""no" 1>&6
7139 fi
7140
7141
7142 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7143echo "configure:7144: checking for --enable-popupwin" >&5
7144 no_cache=0
7145 # Check whether --enable-popupwin or --disable-popupwin was given.
7146if test "${enable_popupwin+set}" = set; then
7147 enableval="$enable_popupwin"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7151 else
7152 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7165
7166fi
7167
7168
7169 eval "$ac_cv_use_popupwin"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_POPUPWIN" = yes; then
7175 echo "$ac_t""yes" 1>&6
7176 else
7177 echo "$ac_t""no" 1>&6
7178 fi
7179
7180
7181
7182
7183 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7184echo "configure:7185: checking for --enable-commondlg" >&5
7185 no_cache=0
7186 # Check whether --enable-commondlg or --disable-commondlg was given.
7187if test "${enable_commondlg+set}" = set; then
7188 enableval="$enable_commondlg"
7189
7190 if test "$enableval" = yes; then
7191 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7192 else
7193 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7194 fi
7195
7196else
7197
7198 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7199 if test "x$LINE" != x ; then
7200 eval "DEFAULT_$LINE"
7201 else
7202 no_cache=1
7203 fi
7204
7205 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7206
7207fi
7208
7209
7210 eval "$ac_cv_use_commondlg"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_COMMONDLGS" = yes; then
7216 echo "$ac_t""yes" 1>&6
7217 else
7218 echo "$ac_t""no" 1>&6
7219 fi
7220
7221
7222 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7223echo "configure:7224: checking for --enable-choicedlg" >&5
7224 no_cache=0
7225 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7226if test "${enable_choicedlg+set}" = set; then
7227 enableval="$enable_choicedlg"
7228
7229 if test "$enableval" = yes; then
7230 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7231 else
7232 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7233 fi
7234
7235else
7236
7237 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7238 if test "x$LINE" != x ; then
7239 eval "DEFAULT_$LINE"
7240 else
7241 no_cache=1
7242 fi
7243
7244 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7245
7246fi
7247
7248
7249 eval "$ac_cv_use_choicedlg"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_CHOICEDLG" = yes; then
7255 echo "$ac_t""yes" 1>&6
7256 else
7257 echo "$ac_t""no" 1>&6
7258 fi
7259
7260
7261 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7262echo "configure:7263: checking for --enable-coldlg" >&5
7263 no_cache=0
7264 # Check whether --enable-coldlg or --disable-coldlg was given.
7265if test "${enable_coldlg+set}" = set; then
7266 enableval="$enable_coldlg"
7267
7268 if test "$enableval" = yes; then
7269 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7270 else
7271 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7272 fi
7273
7274else
7275
7276 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7277 if test "x$LINE" != x ; then
7278 eval "DEFAULT_$LINE"
7279 else
7280 no_cache=1
7281 fi
7282
7283 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7284
7285fi
7286
7287
7288 eval "$ac_cv_use_coldlg"
7289 if test "$no_cache" != 1; then
7290 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7291 fi
7292
7293 if test "$wxUSE_COLOURDLG" = yes; then
7294 echo "$ac_t""yes" 1>&6
7295 else
7296 echo "$ac_t""no" 1>&6
7297 fi
7298
7299
7300 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7301echo "configure:7302: checking for --enable-filedlg" >&5
7302 no_cache=0
7303 # Check whether --enable-filedlg or --disable-filedlg was given.
7304if test "${enable_filedlg+set}" = set; then
7305 enableval="$enable_filedlg"
7306
7307 if test "$enableval" = yes; then
7308 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7309 else
7310 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7311 fi
7312
7313else
7314
7315 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7316 if test "x$LINE" != x ; then
7317 eval "DEFAULT_$LINE"
7318 else
7319 no_cache=1
7320 fi
7321
7322 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7323
7324fi
7325
7326
7327 eval "$ac_cv_use_filedlg"
7328 if test "$no_cache" != 1; then
7329 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7330 fi
7331
7332 if test "$wxUSE_FILEDLG" = yes; then
7333 echo "$ac_t""yes" 1>&6
7334 else
7335 echo "$ac_t""no" 1>&6
7336 fi
7337
7338
7339 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7340echo "configure:7341: checking for --enable-finddlg" >&5
7341 no_cache=0
7342 # Check whether --enable-finddlg or --disable-finddlg was given.
7343if test "${enable_finddlg+set}" = set; then
7344 enableval="$enable_finddlg"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7348 else
7349 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7362
7363fi
7364
7365
7366 eval "$ac_cv_use_finddlg"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7369 fi
7370
7371 if test "$wxUSE_FINDREPLDLG" = yes; then
7372 echo "$ac_t""yes" 1>&6
7373 else
7374 echo "$ac_t""no" 1>&6
7375 fi
7376
7377
7378 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7379echo "configure:7380: checking for --enable-fontdlg" >&5
7380 no_cache=0
7381 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7382if test "${enable_fontdlg+set}" = set; then
7383 enableval="$enable_fontdlg"
7384
7385 if test "$enableval" = yes; then
7386 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7387 else
7388 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7389 fi
7390
7391else
7392
7393 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7394 if test "x$LINE" != x ; then
7395 eval "DEFAULT_$LINE"
7396 else
7397 no_cache=1
7398 fi
7399
7400 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7401
7402fi
7403
7404
7405 eval "$ac_cv_use_fontdlg"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_FONTDLG" = yes; then
7411 echo "$ac_t""yes" 1>&6
7412 else
7413 echo "$ac_t""no" 1>&6
7414 fi
7415
7416
7417 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7418echo "configure:7419: checking for --enable-dirdlg" >&5
7419 no_cache=0
7420 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7421if test "${enable_dirdlg+set}" = set; then
7422 enableval="$enable_dirdlg"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7426 else
7427 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7440
7441fi
7442
7443
7444 eval "$ac_cv_use_dirdlg"
7445 if test "$no_cache" != 1; then
7446 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7447 fi
7448
7449 if test "$wxUSE_DIRDLG" = yes; then
7450 echo "$ac_t""yes" 1>&6
7451 else
7452 echo "$ac_t""no" 1>&6
7453 fi
7454
7455
7456 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7457echo "configure:7458: checking for --enable-msgdlg" >&5
7458 no_cache=0
7459 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7460if test "${enable_msgdlg+set}" = set; then
7461 enableval="$enable_msgdlg"
7462
7463 if test "$enableval" = yes; then
7464 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7465 else
7466 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7467 fi
7468
7469else
7470
7471 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7472 if test "x$LINE" != x ; then
7473 eval "DEFAULT_$LINE"
7474 else
7475 no_cache=1
7476 fi
7477
7478 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7479
7480fi
7481
7482
7483 eval "$ac_cv_use_msgdlg"
7484 if test "$no_cache" != 1; then
7485 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7486 fi
7487
7488 if test "$wxUSE_MSGDLG" = yes; then
7489 echo "$ac_t""yes" 1>&6
7490 else
7491 echo "$ac_t""no" 1>&6
7492 fi
7493
7494
7495 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7496echo "configure:7497: checking for --enable-numberdlg" >&5
7497 no_cache=0
7498 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7499if test "${enable_numberdlg+set}" = set; then
7500 enableval="$enable_numberdlg"
7501
7502 if test "$enableval" = yes; then
7503 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7504 else
7505 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7506 fi
7507
7508else
7509
7510 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
7517 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7518
7519fi
7520
7521
7522 eval "$ac_cv_use_numberdlg"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_NUMBERDLG" = yes; then
7528 echo "$ac_t""yes" 1>&6
7529 else
7530 echo "$ac_t""no" 1>&6
7531 fi
7532
7533
7534 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7535echo "configure:7536: checking for --enable-splash" >&5
7536 no_cache=0
7537 # Check whether --enable-splash or --disable-splash was given.
7538if test "${enable_splash+set}" = set; then
7539 enableval="$enable_splash"
7540
7541 if test "$enableval" = yes; then
7542 ac_cv_use_splash='wxUSE_SPLASH=yes'
7543 else
7544 ac_cv_use_splash='wxUSE_SPLASH=no'
7545 fi
7546
7547else
7548
7549 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7557
7558fi
7559
7560
7561 eval "$ac_cv_use_splash"
7562 if test "$no_cache" != 1; then
7563 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7564 fi
7565
7566 if test "$wxUSE_SPLASH" = yes; then
7567 echo "$ac_t""yes" 1>&6
7568 else
7569 echo "$ac_t""no" 1>&6
7570 fi
7571
7572
7573 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7574echo "configure:7575: checking for --enable-textdlg" >&5
7575 no_cache=0
7576 # Check whether --enable-textdlg or --disable-textdlg was given.
7577if test "${enable_textdlg+set}" = set; then
7578 enableval="$enable_textdlg"
7579
7580 if test "$enableval" = yes; then
7581 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7582 else
7583 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7584 fi
7585
7586else
7587
7588 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7589 if test "x$LINE" != x ; then
7590 eval "DEFAULT_$LINE"
7591 else
7592 no_cache=1
7593 fi
7594
7595 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7596
7597fi
7598
7599
7600 eval "$ac_cv_use_textdlg"
7601 if test "$no_cache" != 1; then
7602 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7603 fi
7604
7605 if test "$wxUSE_TEXTDLG" = yes; then
7606 echo "$ac_t""yes" 1>&6
7607 else
7608 echo "$ac_t""no" 1>&6
7609 fi
7610
7611
7612 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7613echo "configure:7614: checking for --enable-tipdlg" >&5
7614 no_cache=0
7615 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7616if test "${enable_tipdlg+set}" = set; then
7617 enableval="$enable_tipdlg"
7618
7619 if test "$enableval" = yes; then
7620 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7621 else
7622 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7623 fi
7624
7625else
7626
7627 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7628 if test "x$LINE" != x ; then
7629 eval "DEFAULT_$LINE"
7630 else
7631 no_cache=1
7632 fi
7633
7634 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7635
7636fi
7637
7638
7639 eval "$ac_cv_use_tipdlg"
7640 if test "$no_cache" != 1; then
7641 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7642 fi
7643
7644 if test "$wxUSE_STARTUP_TIPS" = yes; then
7645 echo "$ac_t""yes" 1>&6
7646 else
7647 echo "$ac_t""no" 1>&6
7648 fi
7649
7650
7651 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7652echo "configure:7653: checking for --enable-progressdlg" >&5
7653 no_cache=0
7654 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7655if test "${enable_progressdlg+set}" = set; then
7656 enableval="$enable_progressdlg"
7657
7658 if test "$enableval" = yes; then
7659 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7660 else
7661 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7662 fi
7663
7664else
7665
7666 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7674
7675fi
7676
7677
7678 eval "$ac_cv_use_progressdlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_PROGRESSDLG" = yes; then
7684 echo "$ac_t""yes" 1>&6
7685 else
7686 echo "$ac_t""no" 1>&6
7687 fi
7688
7689
7690 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7691echo "configure:7692: checking for --enable-wizarddlg" >&5
7692 no_cache=0
7693 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7694if test "${enable_wizarddlg+set}" = set; then
7695 enableval="$enable_wizarddlg"
7696
7697 if test "$enableval" = yes; then
7698 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7699 else
7700 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7701 fi
7702
7703else
7704
7705 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7706 if test "x$LINE" != x ; then
7707 eval "DEFAULT_$LINE"
7708 else
7709 no_cache=1
7710 fi
7711
7712 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7713
7714fi
7715
7716
7717 eval "$ac_cv_use_wizarddlg"
7718 if test "$no_cache" != 1; then
7719 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7720 fi
7721
7722 if test "$wxUSE_WIZARDDLG" = yes; then
7723 echo "$ac_t""yes" 1>&6
7724 else
7725 echo "$ac_t""no" 1>&6
7726 fi
7727
7728
7729
7730
7731 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7732echo "configure:7733: checking for --enable-menus" >&5
7733 no_cache=0
7734 # Check whether --enable-menus or --disable-menus was given.
7735if test "${enable_menus+set}" = set; then
7736 enableval="$enable_menus"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_menus='wxUSE_MENUS=yes'
7740 else
7741 ac_cv_use_menus='wxUSE_MENUS=no'
7742 fi
7743
7744else
7745
7746 LINE=`grep "wxUSE_MENUS" ${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_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7754
7755fi
7756
7757
7758 eval "$ac_cv_use_menus"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_MENUS" = yes; then
7764 echo "$ac_t""yes" 1>&6
7765 else
7766 echo "$ac_t""no" 1>&6
7767 fi
7768
7769
7770 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7771echo "configure:7772: checking for --enable-miniframe" >&5
7772 no_cache=0
7773 # Check whether --enable-miniframe or --disable-miniframe was given.
7774if test "${enable_miniframe+set}" = set; then
7775 enableval="$enable_miniframe"
7776
7777 if test "$enableval" = yes; then
7778 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7779 else
7780 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7781 fi
7782
7783else
7784
7785 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7786 if test "x$LINE" != x ; then
7787 eval "DEFAULT_$LINE"
7788 else
7789 no_cache=1
7790 fi
7791
7792 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7793
7794fi
7795
7796
7797 eval "$ac_cv_use_miniframe"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_MINIFRAME" = yes; then
7803 echo "$ac_t""yes" 1>&6
7804 else
7805 echo "$ac_t""no" 1>&6
7806 fi
7807
7808
7809 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7810echo "configure:7811: checking for --enable-tooltips" >&5
7811 no_cache=0
7812 # Check whether --enable-tooltips or --disable-tooltips was given.
7813if test "${enable_tooltips+set}" = set; then
7814 enableval="$enable_tooltips"
7815
7816 if test "$enableval" = yes; then
7817 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7818 else
7819 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7820 fi
7821
7822else
7823
7824 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7825 if test "x$LINE" != x ; then
7826 eval "DEFAULT_$LINE"
7827 else
7828 no_cache=1
7829 fi
7830
7831 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7832
7833fi
7834
7835
7836 eval "$ac_cv_use_tooltips"
7837 if test "$no_cache" != 1; then
7838 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7839 fi
7840
7841 if test "$wxUSE_TOOLTIPS" = yes; then
7842 echo "$ac_t""yes" 1>&6
7843 else
7844 echo "$ac_t""no" 1>&6
7845 fi
7846
7847
7848 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7849echo "configure:7850: checking for --enable-splines" >&5
7850 no_cache=0
7851 # Check whether --enable-splines or --disable-splines was given.
7852if test "${enable_splines+set}" = set; then
7853 enableval="$enable_splines"
7854
7855 if test "$enableval" = yes; then
7856 ac_cv_use_splines='wxUSE_SPLINES=yes'
7857 else
7858 ac_cv_use_splines='wxUSE_SPLINES=no'
7859 fi
7860
7861else
7862
7863 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7864 if test "x$LINE" != x ; then
7865 eval "DEFAULT_$LINE"
7866 else
7867 no_cache=1
7868 fi
7869
7870 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7871
7872fi
7873
7874
7875 eval "$ac_cv_use_splines"
7876 if test "$no_cache" != 1; then
7877 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7878 fi
7879
7880 if test "$wxUSE_SPLINES" = yes; then
7881 echo "$ac_t""yes" 1>&6
7882 else
7883 echo "$ac_t""no" 1>&6
7884 fi
7885
7886
7887 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7888echo "configure:7889: checking for --enable-validators" >&5
7889 no_cache=0
7890 # Check whether --enable-validators or --disable-validators was given.
7891if test "${enable_validators+set}" = set; then
7892 enableval="$enable_validators"
7893
7894 if test "$enableval" = yes; then
7895 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7896 else
7897 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7898 fi
7899
7900else
7901
7902 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7903 if test "x$LINE" != x ; then
7904 eval "DEFAULT_$LINE"
7905 else
7906 no_cache=1
7907 fi
7908
7909 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7910
7911fi
7912
7913
7914 eval "$ac_cv_use_validators"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_VALIDATORS" = yes; then
7920 echo "$ac_t""yes" 1>&6
7921 else
7922 echo "$ac_t""no" 1>&6
7923 fi
7924
7925
7926 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7927echo "configure:7928: checking for --enable-busyinfo" >&5
7928 no_cache=0
7929 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7930if test "${enable_busyinfo+set}" = set; then
7931 enableval="$enable_busyinfo"
7932
7933 if test "$enableval" = yes; then
7934 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7935 else
7936 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7937 fi
7938
7939else
7940
7941 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7942 if test "x$LINE" != x ; then
7943 eval "DEFAULT_$LINE"
7944 else
7945 no_cache=1
7946 fi
7947
7948 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7949
7950fi
7951
7952
7953 eval "$ac_cv_use_busyinfo"
7954 if test "$no_cache" != 1; then
7955 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7956 fi
7957
7958 if test "$wxUSE_BUSYINFO" = yes; then
7959 echo "$ac_t""yes" 1>&6
7960 else
7961 echo "$ac_t""no" 1>&6
7962 fi
7963
7964
7965 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7966echo "configure:7967: checking for --enable-joystick" >&5
7967 no_cache=0
7968 # Check whether --enable-joystick or --disable-joystick was given.
7969if test "${enable_joystick+set}" = set; then
7970 enableval="$enable_joystick"
7971
7972 if test "$enableval" = yes; then
7973 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7974 else
7975 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7976 fi
7977
7978else
7979
7980 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7981 if test "x$LINE" != x ; then
7982 eval "DEFAULT_$LINE"
7983 else
7984 no_cache=1
7985 fi
7986
7987 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7988
7989fi
7990
7991
7992 eval "$ac_cv_use_joystick"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_JOYSTICK" = yes; then
7998 echo "$ac_t""yes" 1>&6
7999 else
8000 echo "$ac_t""no" 1>&6
8001 fi
8002
8003
8004 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8005echo "configure:8006: checking for --enable-metafile" >&5
8006 no_cache=0
8007 # Check whether --enable-metafile or --disable-metafile was given.
8008if test "${enable_metafile+set}" = set; then
8009 enableval="$enable_metafile"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8013 else
8014 ac_cv_use_metafile='wxUSE_METAFILE=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8027
8028fi
8029
8030
8031 eval "$ac_cv_use_metafile"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_METAFILE" = yes; then
8037 echo "$ac_t""yes" 1>&6
8038 else
8039 echo "$ac_t""no" 1>&6
8040 fi
8041
8042
8043 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8044echo "configure:8045: checking for --enable-dragimage" >&5
8045 no_cache=0
8046 # Check whether --enable-dragimage or --disable-dragimage was given.
8047if test "${enable_dragimage+set}" = set; then
8048 enableval="$enable_dragimage"
8049
8050 if test "$enableval" = yes; then
8051 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8052 else
8053 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8054 fi
8055
8056else
8057
8058 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8059 if test "x$LINE" != x ; then
8060 eval "DEFAULT_$LINE"
8061 else
8062 no_cache=1
8063 fi
8064
8065 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8066
8067fi
8068
8069
8070 eval "$ac_cv_use_dragimage"
8071 if test "$no_cache" != 1; then
8072 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8073 fi
8074
8075 if test "$wxUSE_DRAGIMAGE" = yes; then
8076 echo "$ac_t""yes" 1>&6
8077 else
8078 echo "$ac_t""no" 1>&6
8079 fi
8080
8081
8082
8083
8084 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8085echo "configure:8086: checking for --enable-palette" >&5
8086 no_cache=0
8087 # Check whether --enable-palette or --disable-palette was given.
8088if test "${enable_palette+set}" = set; then
8089 enableval="$enable_palette"
8090
8091 if test "$enableval" = yes; then
8092 ac_cv_use_palette='wxUSE_PALETTE=yes'
8093 else
8094 ac_cv_use_palette='wxUSE_PALETTE=no'
8095 fi
8096
8097else
8098
8099 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8100 if test "x$LINE" != x ; then
8101 eval "DEFAULT_$LINE"
8102 else
8103 no_cache=1
8104 fi
8105
8106 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8107
8108fi
8109
8110
8111 eval "$ac_cv_use_palette"
8112 if test "$no_cache" != 1; then
8113 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8114 fi
8115
8116 if test "$wxUSE_PALETTE" = yes; then
8117 echo "$ac_t""yes" 1>&6
8118 else
8119 echo "$ac_t""no" 1>&6
8120 fi
8121
8122
8123 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8124echo "configure:8125: checking for --enable-image" >&5
8125 no_cache=0
8126 # Check whether --enable-image or --disable-image was given.
8127if test "${enable_image+set}" = set; then
8128 enableval="$enable_image"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_image='wxUSE_IMAGE=yes'
8132 else
8133 ac_cv_use_image='wxUSE_IMAGE=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8146
8147fi
8148
8149
8150 eval "$ac_cv_use_image"
8151 if test "$no_cache" != 1; then
8152 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8153 fi
8154
8155 if test "$wxUSE_IMAGE" = yes; then
8156 echo "$ac_t""yes" 1>&6
8157 else
8158 echo "$ac_t""no" 1>&6
8159 fi
8160
8161
8162 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8163echo "configure:8164: checking for --enable-gif" >&5
8164 no_cache=0
8165 # Check whether --enable-gif or --disable-gif was given.
8166if test "${enable_gif+set}" = set; then
8167 enableval="$enable_gif"
8168
8169 if test "$enableval" = yes; then
8170 ac_cv_use_gif='wxUSE_GIF=yes'
8171 else
8172 ac_cv_use_gif='wxUSE_GIF=no'
8173 fi
8174
8175else
8176
8177 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8185
8186fi
8187
8188
8189 eval "$ac_cv_use_gif"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_GIF" = yes; then
8195 echo "$ac_t""yes" 1>&6
8196 else
8197 echo "$ac_t""no" 1>&6
8198 fi
8199
8200
8201 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8202echo "configure:8203: checking for --enable-pcx" >&5
8203 no_cache=0
8204 # Check whether --enable-pcx or --disable-pcx was given.
8205if test "${enable_pcx+set}" = set; then
8206 enableval="$enable_pcx"
8207
8208 if test "$enableval" = yes; then
8209 ac_cv_use_pcx='wxUSE_PCX=yes'
8210 else
8211 ac_cv_use_pcx='wxUSE_PCX=no'
8212 fi
8213
8214else
8215
8216 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8224
8225fi
8226
8227
8228 eval "$ac_cv_use_pcx"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_PCX" = yes; then
8234 echo "$ac_t""yes" 1>&6
8235 else
8236 echo "$ac_t""no" 1>&6
8237 fi
8238
8239
8240 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8241echo "configure:8242: checking for --enable-iff" >&5
8242 no_cache=0
8243 # Check whether --enable-iff or --disable-iff was given.
8244if test "${enable_iff+set}" = set; then
8245 enableval="$enable_iff"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_iff='wxUSE_IFF=yes'
8249 else
8250 ac_cv_use_iff='wxUSE_IFF=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8263
8264fi
8265
8266
8267 eval "$ac_cv_use_iff"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_IFF" = yes; then
8273 echo "$ac_t""yes" 1>&6
8274 else
8275 echo "$ac_t""no" 1>&6
8276 fi
8277
8278
8279 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8280echo "configure:8281: checking for --enable-pnm" >&5
8281 no_cache=0
8282 # Check whether --enable-pnm or --disable-pnm was given.
8283if test "${enable_pnm+set}" = set; then
8284 enableval="$enable_pnm"
8285
8286 if test "$enableval" = yes; then
8287 ac_cv_use_pnm='wxUSE_PNM=yes'
8288 else
8289 ac_cv_use_pnm='wxUSE_PNM=no'
8290 fi
8291
8292else
8293
8294 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8295 if test "x$LINE" != x ; then
8296 eval "DEFAULT_$LINE"
8297 else
8298 no_cache=1
8299 fi
8300
8301 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8302
8303fi
8304
8305
8306 eval "$ac_cv_use_pnm"
8307 if test "$no_cache" != 1; then
8308 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8309 fi
8310
8311 if test "$wxUSE_PNM" = yes; then
8312 echo "$ac_t""yes" 1>&6
8313 else
8314 echo "$ac_t""no" 1>&6
8315 fi
8316
8317
8318 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8319echo "configure:8320: checking for --enable-xpm" >&5
8320 no_cache=0
8321 # Check whether --enable-xpm or --disable-xpm was given.
8322if test "${enable_xpm+set}" = set; then
8323 enableval="$enable_xpm"
8324
8325 if test "$enableval" = yes; then
8326 ac_cv_use_xpm='wxUSE_XPM=yes'
8327 else
8328 ac_cv_use_xpm='wxUSE_XPM=no'
8329 fi
8330
8331else
8332
8333 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8334 if test "x$LINE" != x ; then
8335 eval "DEFAULT_$LINE"
8336 else
8337 no_cache=1
8338 fi
8339
8340 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8341
8342fi
8343
8344
8345 eval "$ac_cv_use_xpm"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_XPM" = yes; then
8351 echo "$ac_t""yes" 1>&6
8352 else
8353 echo "$ac_t""no" 1>&6
8354 fi
8355
8356
8357 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8358echo "configure:8359: checking for --enable-ico_cur" >&5
8359 no_cache=0
8360 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8361if test "${enable_ico_cur+set}" = set; then
8362 enableval="$enable_ico_cur"
8363
8364 if test "$enableval" = yes; then
8365 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8366 else
8367 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8368 fi
8369
8370else
8371
8372 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
8379 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8380
8381fi
8382
8383
8384 eval "$ac_cv_use_ico_cur"
8385 if test "$no_cache" != 1; then
8386 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8387 fi
8388
8389 if test "$wxUSE_ICO_CUR" = yes; then
8390 echo "$ac_t""yes" 1>&6
8391 else
8392 echo "$ac_t""no" 1>&6
8393 fi
8394
8395
8396fi
8397
8398case "${host}" in
8399 *-pc-os2_emx | *-pc-os2-emx )
8400 LEX_STEM="lexyy"
8401 ;;
8402 *)
8403 PATH_IFS=':'
8404 LEX_STEM="lex.yy"
8405 ;;
8406esac
8407
8408
8409
8410 echo "saving argument cache $wx_arg_cache_file"
8411 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8412
8413
8414
8415echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8416echo "configure:8417: checking for toolkit" >&5
8417
8418if test "$wxUSE_GUI" = "yes"; then
8419
8420 if test "$USE_BEOS" = 1; then
8421 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8422 fi
8423
8424 if test "$TOOLKIT_GIVEN" = 1; then
8425 for toolkit in `echo $ALL_TOOLKITS`; do
8426 var=wxUSE_$toolkit
8427 eval "value=\$${var}"
8428 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8429 done
8430 else
8431 for toolkit in `echo $ALL_TOOLKITS`; do
8432 if test "$has_toolkit_in_cache" != 1; then
8433 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8434 else
8435 var=DEFAULT_wxUSE_$toolkit
8436 fi
8437 eval "wxUSE_$toolkit=\$${var}"
8438 done
8439 fi
8440
8441 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8442 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8443
8444 case "${host}" in
8445 *-pc-os2_emx | *-pc-os2-emx )
8446 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8447 esac
8448
8449 case "$NUM_TOOLKITS" in
8450 1)
8451 ;;
8452 0)
8453 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8454 ;;
8455 *)
8456 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8457 esac
8458
8459 for toolkit in `echo $ALL_TOOLKITS`; do
8460 var=wxUSE_$toolkit
8461 eval "value=\$${var}"
8462 if test "x$value" != x; then
8463 cache_var=CACHE_$toolkit
8464 eval "cache=\$${cache_var}"
8465 if test "$cache" = 1; then
8466 echo "$var=$value" >> ${wx_arg_cache_file}
8467 fi
8468 if test "$value" = 1; then
8469 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8470 echo "$ac_t""$toolkit_echo" 1>&6
8471 fi
8472 fi
8473 done
8474else
8475 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8476fi
8477
8478
8479define_win32=0
8480case "${host}" in
8481 *-*-cygwin*)
8482 if test "$wxUSE_MSW" = 1 ; then
8483 define_win32=1
8484 fi
8485 ;;
8486 *-*-mingw*)
8487 define_win32=1
8488 ;;
8489esac
8490
8491if test "$define_win32" = 1 ; then
8492 USE_UNIX=0
8493 USE_WIN32=1
8494 cat >> confdefs.h <<\EOF
8495#define __WIN32__ 1
8496EOF
8497
8498 cat >> confdefs.h <<\EOF
8499#define __WIN95__ 1
8500EOF
8501
8502 cat >> confdefs.h <<\EOF
8503#define __WINDOWS__ 1
8504EOF
8505
8506 cat >> confdefs.h <<\EOF
8507#define __GNUWIN32__ 1
8508EOF
8509
8510 cat >> confdefs.h <<\EOF
8511#define STRICT 1
8512EOF
8513
8514 cat >> confdefs.h <<\EOF
8515#define WINVER 0x0400
8516EOF
8517
8518else
8519 USE_UNIX=1
8520 USE_WIN32=0
8521fi
8522
8523if test "$USE_UNIX" = 1 ; then
8524 wxUSE_UNIX=yes
8525 cat >> confdefs.h <<\EOF
8526#define __UNIX__ 1
8527EOF
8528
8529fi
8530
8531
8532cat > confcache <<\EOF
8533# This file is a shell script that caches the results of configure
8534# tests run on this system so they can be shared between configure
8535# scripts and configure runs. It is not useful on other systems.
8536# If it contains results you don't want to keep, you may remove or edit it.
8537#
8538# By default, configure uses ./config.cache as the cache file,
8539# creating it if it does not exist already. You can give configure
8540# the --cache-file=FILE option to use a different cache file; that is
8541# what configure does when it calls configure scripts in
8542# subdirectories, so they share the cache.
8543# Giving --cache-file=/dev/null disables caching, for debugging configure.
8544# config.status only pays attention to the cache file if you give it the
8545# --recheck option to rerun configure.
8546#
8547EOF
8548# The following way of writing the cache mishandles newlines in values,
8549# but we know of no workaround that is simple, portable, and efficient.
8550# So, don't put newlines in cache variables' values.
8551# Ultrix sh set writes to stderr and can't be redirected directly,
8552# and sets the high bit in the cache file unless we assign to the vars.
8553(set) 2>&1 |
8554 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8555 *ac_space=\ *)
8556 # `set' does not quote correctly, so add quotes (double-quote substitution
8557 # turns \\\\ into \\, and sed turns \\ into \).
8558 sed -n \
8559 -e "s/'/'\\\\''/g" \
8560 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8561 ;;
8562 *)
8563 # `set' quotes correctly as required by POSIX, so do not add quotes.
8564 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8565 ;;
8566 esac >> confcache
8567if cmp -s $cache_file confcache; then
8568 :
8569else
8570 if test -w $cache_file; then
8571 echo "updating cache $cache_file"
8572 cat confcache > $cache_file
8573 else
8574 echo "not updating unwritable cache $cache_file"
8575 fi
8576fi
8577rm -f confcache
8578
8579
8580if test "$build" != "$host" ; then
8581 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8582 CC=$host_alias-gcc
8583 CXX=$host_alias-c++
8584 AR=$host_alias-ar
8585 RANLIB=$host_alias-ranlib
8586 DLLTOOL=$host_alias-dlltool
8587 RESCOMP=$host_alias-windres
8588 LD=$host_alias-ld
8589 NM=$host_alias-nm
8590 STRIP=$host_alias-strip
8591 else
8592 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8593 fi
8594fi
8595
8596CFLAGS=${CFLAGS:=}
8597# Extract the first word of "gcc", so it can be a program name with args.
8598set dummy gcc; ac_word=$2
8599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8600echo "configure:8601: checking for $ac_word" >&5
8601if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603else
8604 if test -n "$CC"; then
8605 ac_cv_prog_CC="$CC" # Let the user override the test.
8606else
8607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8608 ac_dummy="$PATH"
8609 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 if test -f $ac_dir/$ac_word; then
8612 ac_cv_prog_CC="gcc"
8613 break
8614 fi
8615 done
8616 IFS="$ac_save_ifs"
8617fi
8618fi
8619CC="$ac_cv_prog_CC"
8620if test -n "$CC"; then
8621 echo "$ac_t""$CC" 1>&6
8622else
8623 echo "$ac_t""no" 1>&6
8624fi
8625
8626if test -z "$CC"; then
8627 # Extract the first word of "cc", so it can be a program name with args.
8628set dummy cc; ac_word=$2
8629echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8630echo "configure:8631: checking for $ac_word" >&5
8631if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
8633else
8634 if test -n "$CC"; then
8635 ac_cv_prog_CC="$CC" # Let the user override the test.
8636else
8637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8638 ac_prog_rejected=no
8639 ac_dummy="$PATH"
8640 for ac_dir in $ac_dummy; do
8641 test -z "$ac_dir" && ac_dir=.
8642 if test -f $ac_dir/$ac_word; then
8643 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8644 ac_prog_rejected=yes
8645 continue
8646 fi
8647 ac_cv_prog_CC="cc"
8648 break
8649 fi
8650 done
8651 IFS="$ac_save_ifs"
8652if test $ac_prog_rejected = yes; then
8653 # We found a bogon in the path, so make sure we never use it.
8654 set dummy $ac_cv_prog_CC
8655 shift
8656 if test $# -gt 0; then
8657 # We chose a different compiler from the bogus one.
8658 # However, it has the same basename, so the bogon will be chosen
8659 # first if we set CC to just the basename; use the full file name.
8660 shift
8661 set dummy "$ac_dir/$ac_word" "$@"
8662 shift
8663 ac_cv_prog_CC="$@"
8664 fi
8665fi
8666fi
8667fi
8668CC="$ac_cv_prog_CC"
8669if test -n "$CC"; then
8670 echo "$ac_t""$CC" 1>&6
8671else
8672 echo "$ac_t""no" 1>&6
8673fi
8674
8675 if test -z "$CC"; then
8676 case "`uname -s`" in
8677 *win32* | *WIN32*)
8678 # Extract the first word of "cl", so it can be a program name with args.
8679set dummy cl; ac_word=$2
8680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8681echo "configure:8682: checking for $ac_word" >&5
8682if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8684else
8685 if test -n "$CC"; then
8686 ac_cv_prog_CC="$CC" # Let the user override the test.
8687else
8688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8689 ac_dummy="$PATH"
8690 for ac_dir in $ac_dummy; do
8691 test -z "$ac_dir" && ac_dir=.
8692 if test -f $ac_dir/$ac_word; then
8693 ac_cv_prog_CC="cl"
8694 break
8695 fi
8696 done
8697 IFS="$ac_save_ifs"
8698fi
8699fi
8700CC="$ac_cv_prog_CC"
8701if test -n "$CC"; then
8702 echo "$ac_t""$CC" 1>&6
8703else
8704 echo "$ac_t""no" 1>&6
8705fi
8706 ;;
8707 esac
8708 fi
8709 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8710fi
8711
8712echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8713echo "configure:8714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8714
8715ac_ext=c
8716# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8717ac_cpp='$CPP $CPPFLAGS'
8718ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8719ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8720cross_compiling=$ac_cv_prog_cc_cross
8721
8722cat > conftest.$ac_ext << EOF
8723
8724#line 8725 "configure"
8725#include "confdefs.h"
8726
8727main(){return(0);}
8728EOF
8729if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 ac_cv_prog_cc_works=yes
8731 # If we can't run a trivial program, we are probably using a cross compiler.
8732 if (./conftest; exit) 2>/dev/null; then
8733 ac_cv_prog_cc_cross=no
8734 else
8735 ac_cv_prog_cc_cross=yes
8736 fi
8737else
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 ac_cv_prog_cc_works=no
8741fi
8742rm -fr conftest*
8743ac_ext=c
8744# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8745ac_cpp='$CPP $CPPFLAGS'
8746ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8747ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8748cross_compiling=$ac_cv_prog_cc_cross
8749
8750echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8751if test $ac_cv_prog_cc_works = no; then
8752 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8753fi
8754echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8755echo "configure:8756: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8756echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8757cross_compiling=$ac_cv_prog_cc_cross
8758
8759echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8760echo "configure:8761: checking whether we are using GNU C" >&5
8761if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763else
8764 cat > conftest.c <<EOF
8765#ifdef __GNUC__
8766 yes;
8767#endif
8768EOF
8769if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8770 ac_cv_prog_gcc=yes
8771else
8772 ac_cv_prog_gcc=no
8773fi
8774fi
8775
8776echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8777
8778if test $ac_cv_prog_gcc = yes; then
8779 GCC=yes
8780else
8781 GCC=
8782fi
8783
8784ac_test_CFLAGS="${CFLAGS+set}"
8785ac_save_CFLAGS="$CFLAGS"
8786CFLAGS=
8787echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8788echo "configure:8789: checking whether ${CC-cc} accepts -g" >&5
8789if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8791else
8792 echo 'void f(){}' > conftest.c
8793if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8794 ac_cv_prog_cc_g=yes
8795else
8796 ac_cv_prog_cc_g=no
8797fi
8798rm -f conftest*
8799
8800fi
8801
8802echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8803if test "$ac_test_CFLAGS" = set; then
8804 CFLAGS="$ac_save_CFLAGS"
8805elif test $ac_cv_prog_cc_g = yes; then
8806 if test "$GCC" = yes; then
8807 CFLAGS="-g -O2"
8808 else
8809 CFLAGS="-g"
8810 fi
8811else
8812 if test "$GCC" = yes; then
8813 CFLAGS="-O2"
8814 else
8815 CFLAGS=
8816 fi
8817fi
8818
8819
8820echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8821echo "configure:8822: checking how to run the C preprocessor" >&5
8822# On Suns, sometimes $CPP names a directory.
8823if test -n "$CPP" && test -d "$CPP"; then
8824 CPP=
8825fi
8826if test -z "$CPP"; then
8827if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8828 echo $ac_n "(cached) $ac_c" 1>&6
8829else
8830 # This must be in double quotes, not single quotes, because CPP may get
8831 # substituted into the Makefile and "${CC-cc}" will confuse make.
8832 CPP="${CC-cc} -E"
8833 # On the NeXT, cc -E runs the code through the compiler's parser,
8834 # not just through cpp.
8835 cat > conftest.$ac_ext <<EOF
8836#line 8837 "configure"
8837#include "confdefs.h"
8838#include <assert.h>
8839Syntax Error
8840EOF
8841ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8842{ (eval echo configure:8843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8843ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8844if test -z "$ac_err"; then
8845 :
8846else
8847 echo "$ac_err" >&5
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8850 rm -rf conftest*
8851 CPP="${CC-cc} -E -traditional-cpp"
8852 cat > conftest.$ac_ext <<EOF
8853#line 8854 "configure"
8854#include "confdefs.h"
8855#include <assert.h>
8856Syntax Error
8857EOF
8858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8859{ (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861if test -z "$ac_err"; then
8862 :
8863else
8864 echo "$ac_err" >&5
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 rm -rf conftest*
8868 CPP="${CC-cc} -nologo -E"
8869 cat > conftest.$ac_ext <<EOF
8870#line 8871 "configure"
8871#include "confdefs.h"
8872#include <assert.h>
8873Syntax Error
8874EOF
8875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8876{ (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8877ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878if test -z "$ac_err"; then
8879 :
8880else
8881 echo "$ac_err" >&5
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8884 rm -rf conftest*
8885 CPP=/lib/cpp
8886fi
8887rm -f conftest*
8888fi
8889rm -f conftest*
8890fi
8891rm -f conftest*
8892 ac_cv_prog_CPP="$CPP"
8893fi
8894 CPP="$ac_cv_prog_CPP"
8895else
8896 ac_cv_prog_CPP="$CPP"
8897fi
8898echo "$ac_t""$CPP" 1>&6
8899
8900if test $ac_cv_prog_gcc = yes; then
8901 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8902echo "configure:8903: checking whether ${CC-cc} needs -traditional" >&5
8903if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905else
8906 ac_pattern="Autoconf.*'x'"
8907 cat > conftest.$ac_ext <<EOF
8908#line 8909 "configure"
8909#include "confdefs.h"
8910#include <sgtty.h>
8911Autoconf TIOCGETP
8912EOF
8913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914 egrep "$ac_pattern" >/dev/null 2>&1; then
8915 rm -rf conftest*
8916 ac_cv_prog_gcc_traditional=yes
8917else
8918 rm -rf conftest*
8919 ac_cv_prog_gcc_traditional=no
8920fi
8921rm -f conftest*
8922
8923
8924 if test $ac_cv_prog_gcc_traditional = no; then
8925 cat > conftest.$ac_ext <<EOF
8926#line 8927 "configure"
8927#include "confdefs.h"
8928#include <termio.h>
8929Autoconf TCGETA
8930EOF
8931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8932 egrep "$ac_pattern" >/dev/null 2>&1; then
8933 rm -rf conftest*
8934 ac_cv_prog_gcc_traditional=yes
8935fi
8936rm -f conftest*
8937
8938 fi
8939fi
8940
8941echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8942 if test $ac_cv_prog_gcc_traditional = yes; then
8943 CC="$CC -traditional"
8944 fi
8945fi
8946
8947
8948
8949ac_ext=C
8950# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8951ac_cpp='$CXXCPP $CPPFLAGS'
8952ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8953ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8954cross_compiling=$ac_cv_prog_cxx_cross
8955
8956
8957CXXFLAGS=${CXXFLAGS:=}
8958for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8959do
8960# Extract the first word of "$ac_prog", so it can be a program name with args.
8961set dummy $ac_prog; ac_word=$2
8962echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8963echo "configure:8964: checking for $ac_word" >&5
8964if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
8966else
8967 if test -n "$CXX"; then
8968 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8969else
8970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8971 ac_dummy="$PATH"
8972 for ac_dir in $ac_dummy; do
8973 test -z "$ac_dir" && ac_dir=.
8974 if test -f $ac_dir/$ac_word; then
8975 ac_cv_prog_CXX="$ac_prog"
8976 break
8977 fi
8978 done
8979 IFS="$ac_save_ifs"
8980fi
8981fi
8982CXX="$ac_cv_prog_CXX"
8983if test -n "$CXX"; then
8984 echo "$ac_t""$CXX" 1>&6
8985else
8986 echo "$ac_t""no" 1>&6
8987fi
8988
8989test -n "$CXX" && break
8990done
8991test -n "$CXX" || CXX="gcc"
8992
8993
8994echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8995echo "configure:8996: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8996
8997ac_ext=C
8998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9002cross_compiling=$ac_cv_prog_cxx_cross
9003
9004cat > conftest.$ac_ext << EOF
9005
9006#line 9007 "configure"
9007#include "confdefs.h"
9008
9009int main(){return(0);}
9010EOF
9011if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9012 ac_cv_prog_cxx_works=yes
9013 # If we can't run a trivial program, we are probably using a cross compiler.
9014 if (./conftest; exit) 2>/dev/null; then
9015 ac_cv_prog_cxx_cross=no
9016 else
9017 ac_cv_prog_cxx_cross=yes
9018 fi
9019else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 ac_cv_prog_cxx_works=no
9023fi
9024rm -fr conftest*
9025ac_ext=C
9026# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9027ac_cpp='$CXXCPP $CPPFLAGS'
9028ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9029ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9030cross_compiling=$ac_cv_prog_cxx_cross
9031
9032echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9033if test $ac_cv_prog_cxx_works = no; then
9034 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9035fi
9036echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9037echo "configure:9038: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9038echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9039cross_compiling=$ac_cv_prog_cxx_cross
9040
9041echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9042echo "configure:9043: checking whether we are using GNU C++" >&5
9043if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045else
9046 cat > conftest.C <<EOF
9047#ifdef __GNUC__
9048 yes;
9049#endif
9050EOF
9051if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9052 ac_cv_prog_gxx=yes
9053else
9054 ac_cv_prog_gxx=no
9055fi
9056fi
9057
9058echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9059
9060if test $ac_cv_prog_gxx = yes; then
9061 GXX=yes
9062else
9063 GXX=
9064fi
9065
9066ac_test_CXXFLAGS="${CXXFLAGS+set}"
9067ac_save_CXXFLAGS="$CXXFLAGS"
9068CXXFLAGS=
9069echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9070echo "configure:9071: checking whether ${CXX-g++} accepts -g" >&5
9071if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9072 echo $ac_n "(cached) $ac_c" 1>&6
9073else
9074 echo 'void f(){}' > conftest.cc
9075if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9076 ac_cv_prog_cxx_g=yes
9077else
9078 ac_cv_prog_cxx_g=no
9079fi
9080rm -f conftest*
9081
9082fi
9083
9084echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9085if test "$ac_test_CXXFLAGS" = set; then
9086 CXXFLAGS="$ac_save_CXXFLAGS"
9087elif test $ac_cv_prog_cxx_g = yes; then
9088 if test "$GXX" = yes; then
9089 CXXFLAGS="-g -O2"
9090 else
9091 CXXFLAGS="-g"
9092 fi
9093else
9094 if test "$GXX" = yes; then
9095 CXXFLAGS="-O2"
9096 else
9097 CXXFLAGS=
9098 fi
9099fi
9100
9101
9102ac_ext=c
9103# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9104ac_cpp='$CPP $CPPFLAGS'
9105ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9106ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9107cross_compiling=$ac_cv_prog_cc_cross
9108
9109
9110# Extract the first word of "ranlib", so it can be a program name with args.
9111set dummy ranlib; ac_word=$2
9112echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9113echo "configure:9114: checking for $ac_word" >&5
9114if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9116else
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119else
9120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9121 ac_dummy="$PATH"
9122 for ac_dir in $ac_dummy; do
9123 test -z "$ac_dir" && ac_dir=.
9124 if test -f $ac_dir/$ac_word; then
9125 ac_cv_prog_RANLIB="ranlib"
9126 break
9127 fi
9128 done
9129 IFS="$ac_save_ifs"
9130 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9131fi
9132fi
9133RANLIB="$ac_cv_prog_RANLIB"
9134if test -n "$RANLIB"; then
9135 echo "$ac_t""$RANLIB" 1>&6
9136else
9137 echo "$ac_t""no" 1>&6
9138fi
9139
9140
9141# Extract the first word of "ar", so it can be a program name with args.
9142set dummy ar; ac_word=$2
9143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9144echo "configure:9145: checking for $ac_word" >&5
9145if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9147else
9148 if test -n "$AR"; then
9149 ac_cv_prog_AR="$AR" # Let the user override the test.
9150else
9151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9152 ac_dummy="$PATH"
9153 for ac_dir in $ac_dummy; do
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f $ac_dir/$ac_word; then
9156 ac_cv_prog_AR="ar"
9157 break
9158 fi
9159 done
9160 IFS="$ac_save_ifs"
9161 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9162fi
9163fi
9164AR="$ac_cv_prog_AR"
9165if test -n "$AR"; then
9166 echo "$ac_t""$AR" 1>&6
9167else
9168 echo "$ac_t""no" 1>&6
9169fi
9170
9171
9172# Find a good install program. We prefer a C program (faster),
9173# so one script is as good as another. But avoid the broken or
9174# incompatible versions:
9175# SysV /etc/install, /usr/sbin/install
9176# SunOS /usr/etc/install
9177# IRIX /sbin/install
9178# AIX /bin/install
9179# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9180# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9181# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9182# ./install, which can be erroneously created by make from ./install.sh.
9183echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9184echo "configure:9185: checking for a BSD compatible install" >&5
9185if test -z "$INSTALL"; then
9186if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
9188else
9189 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9190 for ac_dir in $PATH; do
9191 # Account for people who put trailing slashes in PATH elements.
9192 case "$ac_dir/" in
9193 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9194 *)
9195 # OSF1 and SCO ODT 3.0 have their own names for install.
9196 # Don't use installbsd from OSF since it installs stuff as root
9197 # by default.
9198 for ac_prog in ginstall scoinst install; do
9199 if test -f $ac_dir/$ac_prog; then
9200 if test $ac_prog = install &&
9201 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9202 # AIX install. It has an incompatible calling convention.
9203 :
9204 else
9205 ac_cv_path_install="$ac_dir/$ac_prog -c"
9206 break 2
9207 fi
9208 fi
9209 done
9210 ;;
9211 esac
9212 done
9213 IFS="$ac_save_IFS"
9214
9215fi
9216 if test "${ac_cv_path_install+set}" = set; then
9217 INSTALL="$ac_cv_path_install"
9218 else
9219 # As a last resort, use the slow shell script. We don't cache a
9220 # path for INSTALL within a source directory, because that will
9221 # break other packages using the cache if that directory is
9222 # removed, or if the path is relative.
9223 INSTALL="$ac_install_sh"
9224 fi
9225fi
9226echo "$ac_t""$INSTALL" 1>&6
9227
9228# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9229# It thinks the first close brace ends the variable substitution.
9230test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9231
9232test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9233
9234test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9235
9236
9237case ${INSTALL} in
9238 /* ) # Absolute
9239 ;;
9240 *)
9241 INSTALL=`pwd`/${INSTALL} ;;
9242esac
9243
9244
9245case "${host}" in
9246
9247 powerpc-*-darwin* )
9248 INSTALL_PROGRAM="cp -fp"
9249 INSTALL_DATA="cp -fp"
9250 ;;
9251 *)
9252 ;;
9253esac
9254
9255# Extract the first word of "strip", so it can be a program name with args.
9256set dummy strip; ac_word=$2
9257echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9258echo "configure:9259: checking for $ac_word" >&5
9259if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9261else
9262 if test -n "$STRIP"; then
9263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9264else
9265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9266 ac_dummy="$PATH"
9267 for ac_dir in $ac_dummy; do
9268 test -z "$ac_dir" && ac_dir=.
9269 if test -f $ac_dir/$ac_word; then
9270 ac_cv_prog_STRIP="strip"
9271 break
9272 fi
9273 done
9274 IFS="$ac_save_ifs"
9275 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9276fi
9277fi
9278STRIP="$ac_cv_prog_STRIP"
9279if test -n "$STRIP"; then
9280 echo "$ac_t""$STRIP" 1>&6
9281else
9282 echo "$ac_t""no" 1>&6
9283fi
9284
9285
9286echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9287echo "configure:9288: checking if make is GNU make" >&5
9288if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9290else
9291
9292 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9293 egrep -s GNU > /dev/null); then
9294 wx_cv_prog_makeisgnu="yes"
9295 else
9296 wx_cv_prog_makeisgnu="no"
9297 fi
9298
9299fi
9300
9301echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9302
9303if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9304 IF_GNU_MAKE=""
9305else
9306 IF_GNU_MAKE="#"
9307fi
9308
9309
9310
9311if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9312echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9313echo "configure:9314: checking if make supports VPATH" >&5
9314if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316else
9317
9318cat - << EOF > confMake
9319check : file
9320 cp \$? \$@
9321 cp \$? final_file
9322EOF
9323
9324if test ! -d sub ; then
9325 mkdir sub
9326fi
9327echo dummy > sub/file
9328${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9329RESULT=$?
9330rm -f sub/file check final_file confMake
9331rmdir sub
9332if test "$RESULT" = 0; then
9333 wx_cv_prog_makevpath="yes"
9334else
9335 wx_cv_prog_makevpath="no"
9336fi
9337
9338fi
9339
9340echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9341
9342if test "x$wx_cv_prog_makevpath" != "xyes"; then
9343{ echo "configure: error:
9344You need a make-utility that is able to use the variable
9345VPATH correctly.
9346If your version of make does not support VPATH correctly,
9347please install GNU-make (possibly as gmake), and start
9348configure with the following command:
9349export MAKE=gmake; ./configure for sh-type shells
9350setenv MAKE gmake; ./configure for csh-type shells
9351Also please do remember to use gmake in this case every time
9352you are trying to compile.
9353" 1>&2; exit 1; }
9354fi fi
9355for ac_prog in 'bison -y' byacc
9356do
9357# Extract the first word of "$ac_prog", so it can be a program name with args.
9358set dummy $ac_prog; ac_word=$2
9359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9360echo "configure:9361: checking for $ac_word" >&5
9361if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9363else
9364 if test -n "$YACC"; then
9365 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9366else
9367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9368 ac_dummy="$PATH"
9369 for ac_dir in $ac_dummy; do
9370 test -z "$ac_dir" && ac_dir=.
9371 if test -f $ac_dir/$ac_word; then
9372 ac_cv_prog_YACC="$ac_prog"
9373 break
9374 fi
9375 done
9376 IFS="$ac_save_ifs"
9377fi
9378fi
9379YACC="$ac_cv_prog_YACC"
9380if test -n "$YACC"; then
9381 echo "$ac_t""$YACC" 1>&6
9382else
9383 echo "$ac_t""no" 1>&6
9384fi
9385
9386test -n "$YACC" && break
9387done
9388test -n "$YACC" || YACC="yacc"
9389
9390
9391# Extract the first word of "flex", so it can be a program name with args.
9392set dummy flex; ac_word=$2
9393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9394echo "configure:9395: checking for $ac_word" >&5
9395if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397else
9398 if test -n "$LEX"; then
9399 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9400else
9401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9402 ac_dummy="$PATH"
9403 for ac_dir in $ac_dummy; do
9404 test -z "$ac_dir" && ac_dir=.
9405 if test -f $ac_dir/$ac_word; then
9406 ac_cv_prog_LEX="flex"
9407 break
9408 fi
9409 done
9410 IFS="$ac_save_ifs"
9411 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9412fi
9413fi
9414LEX="$ac_cv_prog_LEX"
9415if test -n "$LEX"; then
9416 echo "$ac_t""$LEX" 1>&6
9417else
9418 echo "$ac_t""no" 1>&6
9419fi
9420
9421if test -z "$LEXLIB"
9422then
9423 case "$LEX" in
9424 flex*) ac_lib=fl ;;
9425 *) ac_lib=l ;;
9426 esac
9427 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9428echo "configure:9429: checking for yywrap in -l$ac_lib" >&5
9429ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9432else
9433 ac_save_LIBS="$LIBS"
9434LIBS="-l$ac_lib $LIBS"
9435cat > conftest.$ac_ext <<EOF
9436#line 9437 "configure"
9437#include "confdefs.h"
9438/* Override any gcc2 internal prototype to avoid an error. */
9439/* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441char yywrap();
9442
9443int main() {
9444yywrap()
9445; return 0; }
9446EOF
9447if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448 rm -rf conftest*
9449 eval "ac_cv_lib_$ac_lib_var=yes"
9450else
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=no"
9455fi
9456rm -f conftest*
9457LIBS="$ac_save_LIBS"
9458
9459fi
9460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 LEXLIB="-l$ac_lib"
9463else
9464 echo "$ac_t""no" 1>&6
9465fi
9466
9467fi
9468
9469
9470echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9471echo "configure:9472: checking whether ln -s works" >&5
9472if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9474else
9475 rm -f conftestdata
9476if ln -s X conftestdata 2>/dev/null
9477then
9478 rm -f conftestdata
9479 ac_cv_prog_LN_S="ln -s"
9480else
9481 ac_cv_prog_LN_S=ln
9482fi
9483fi
9484LN_S="$ac_cv_prog_LN_S"
9485if test "$ac_cv_prog_LN_S" = "ln -s"; then
9486 echo "$ac_t""yes" 1>&6
9487else
9488 echo "$ac_t""no" 1>&6
9489fi
9490
9491
9492
9493if test "$wxUSE_MAC" != 1; then
9494 for ac_hdr in strings.h
9495do
9496ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9497echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9498echo "configure:9499: checking for $ac_hdr" >&5
9499if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9501else
9502 cat > conftest.$ac_ext <<EOF
9503#line 9504 "configure"
9504#include "confdefs.h"
9505#include <$ac_hdr>
9506EOF
9507ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9508{ (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9509ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510if test -z "$ac_err"; then
9511 rm -rf conftest*
9512 eval "ac_cv_header_$ac_safe=yes"
9513else
9514 echo "$ac_err" >&5
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9517 rm -rf conftest*
9518 eval "ac_cv_header_$ac_safe=no"
9519fi
9520rm -f conftest*
9521fi
9522if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9525 cat >> confdefs.h <<EOF
9526#define $ac_tr_hdr 1
9527EOF
9528
9529else
9530 echo "$ac_t""no" 1>&6
9531fi
9532done
9533
9534fi
9535
9536for ac_hdr in stdlib.h
9537do
9538ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9539echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9540echo "configure:9541: checking for $ac_hdr" >&5
9541if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9543else
9544 cat > conftest.$ac_ext <<EOF
9545#line 9546 "configure"
9546#include "confdefs.h"
9547#include <$ac_hdr>
9548EOF
9549ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9550{ (eval echo configure:9551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9551ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9552if test -z "$ac_err"; then
9553 rm -rf conftest*
9554 eval "ac_cv_header_$ac_safe=yes"
9555else
9556 echo "$ac_err" >&5
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 eval "ac_cv_header_$ac_safe=no"
9561fi
9562rm -f conftest*
9563fi
9564if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9565 echo "$ac_t""yes" 1>&6
9566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9567 cat >> confdefs.h <<EOF
9568#define $ac_tr_hdr 1
9569EOF
9570
9571else
9572 echo "$ac_t""no" 1>&6
9573fi
9574done
9575
9576for ac_hdr in malloc.h
9577do
9578ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9579echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9580echo "configure:9581: checking for $ac_hdr" >&5
9581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9583else
9584 cat > conftest.$ac_ext <<EOF
9585#line 9586 "configure"
9586#include "confdefs.h"
9587#include <$ac_hdr>
9588EOF
9589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9590{ (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9591ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592if test -z "$ac_err"; then
9593 rm -rf conftest*
9594 eval "ac_cv_header_$ac_safe=yes"
9595else
9596 echo "$ac_err" >&5
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 rm -rf conftest*
9600 eval "ac_cv_header_$ac_safe=no"
9601fi
9602rm -f conftest*
9603fi
9604if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9607 cat >> confdefs.h <<EOF
9608#define $ac_tr_hdr 1
9609EOF
9610
9611else
9612 echo "$ac_t""no" 1>&6
9613fi
9614done
9615
9616for ac_hdr in unistd.h
9617do
9618ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9619echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9620echo "configure:9621: checking for $ac_hdr" >&5
9621if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623else
9624 cat > conftest.$ac_ext <<EOF
9625#line 9626 "configure"
9626#include "confdefs.h"
9627#include <$ac_hdr>
9628EOF
9629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9630{ (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9632if test -z "$ac_err"; then
9633 rm -rf conftest*
9634 eval "ac_cv_header_$ac_safe=yes"
9635else
9636 echo "$ac_err" >&5
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 rm -rf conftest*
9640 eval "ac_cv_header_$ac_safe=no"
9641fi
9642rm -f conftest*
9643fi
9644if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9647 cat >> confdefs.h <<EOF
9648#define $ac_tr_hdr 1
9649EOF
9650
9651else
9652 echo "$ac_t""no" 1>&6
9653fi
9654done
9655
9656for ac_hdr in wchar.h
9657do
9658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9660echo "configure:9661: checking for $ac_hdr" >&5
9661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9663else
9664 cat > conftest.$ac_ext <<EOF
9665#line 9666 "configure"
9666#include "confdefs.h"
9667#include <$ac_hdr>
9668EOF
9669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9670{ (eval echo configure:9671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9672if test -z "$ac_err"; then
9673 rm -rf conftest*
9674 eval "ac_cv_header_$ac_safe=yes"
9675else
9676 echo "$ac_err" >&5
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9679 rm -rf conftest*
9680 eval "ac_cv_header_$ac_safe=no"
9681fi
9682rm -f conftest*
9683fi
9684if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9685 echo "$ac_t""yes" 1>&6
9686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9687 cat >> confdefs.h <<EOF
9688#define $ac_tr_hdr 1
9689EOF
9690
9691else
9692 echo "$ac_t""no" 1>&6
9693fi
9694done
9695
9696
9697if test "$ac_cv_header_wchar_h" != "yes"; then
9698 for ac_hdr in wcstr.h
9699do
9700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9702echo "configure:9703: checking for $ac_hdr" >&5
9703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705else
9706 cat > conftest.$ac_ext <<EOF
9707#line 9708 "configure"
9708#include "confdefs.h"
9709#include <$ac_hdr>
9710EOF
9711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9712{ (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9714if test -z "$ac_err"; then
9715 rm -rf conftest*
9716 eval "ac_cv_header_$ac_safe=yes"
9717else
9718 echo "$ac_err" >&5
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_header_$ac_safe=no"
9723fi
9724rm -f conftest*
9725fi
9726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9727 echo "$ac_t""yes" 1>&6
9728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9729 cat >> confdefs.h <<EOF
9730#define $ac_tr_hdr 1
9731EOF
9732
9733else
9734 echo "$ac_t""no" 1>&6
9735fi
9736done
9737
9738fi
9739
9740
9741for ac_hdr in fnmatch.h
9742do
9743ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9744echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9745echo "configure:9746: checking for $ac_hdr" >&5
9746if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748else
9749 cat > conftest.$ac_ext <<EOF
9750#line 9751 "configure"
9751#include "confdefs.h"
9752#include <$ac_hdr>
9753EOF
9754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9755{ (eval echo configure:9756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9757if test -z "$ac_err"; then
9758 rm -rf conftest*
9759 eval "ac_cv_header_$ac_safe=yes"
9760else
9761 echo "$ac_err" >&5
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 rm -rf conftest*
9765 eval "ac_cv_header_$ac_safe=no"
9766fi
9767rm -f conftest*
9768fi
9769if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9772 cat >> confdefs.h <<EOF
9773#define $ac_tr_hdr 1
9774EOF
9775
9776else
9777 echo "$ac_t""no" 1>&6
9778fi
9779done
9780
9781
9782if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9783 for ac_func in fnmatch
9784do
9785echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9786echo "configure:9787: checking for $ac_func" >&5
9787if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789else
9790 cat > conftest.$ac_ext <<EOF
9791#line 9792 "configure"
9792#include "confdefs.h"
9793/* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char $ac_func(); below. */
9795#include <assert.h>
9796/* Override any gcc2 internal prototype to avoid an error. */
9797/* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799char $ac_func();
9800
9801int main() {
9802
9803/* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9807choke me
9808#else
9809$ac_func();
9810#endif
9811
9812; return 0; }
9813EOF
9814if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9815 rm -rf conftest*
9816 eval "ac_cv_func_$ac_func=yes"
9817else
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9820 rm -rf conftest*
9821 eval "ac_cv_func_$ac_func=no"
9822fi
9823rm -f conftest*
9824fi
9825
9826if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9827 echo "$ac_t""yes" 1>&6
9828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9829 cat >> confdefs.h <<EOF
9830#define $ac_tr_func 1
9831EOF
9832
9833else
9834 echo "$ac_t""no" 1>&6
9835fi
9836done
9837
9838fi
9839
9840for ac_hdr in langinfo.h
9841do
9842ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9843echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9844echo "configure:9845: checking for $ac_hdr" >&5
9845if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9847else
9848 cat > conftest.$ac_ext <<EOF
9849#line 9850 "configure"
9850#include "confdefs.h"
9851#include <$ac_hdr>
9852EOF
9853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9854{ (eval echo configure:9855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9856if test -z "$ac_err"; then
9857 rm -rf conftest*
9858 eval "ac_cv_header_$ac_safe=yes"
9859else
9860 echo "$ac_err" >&5
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=no"
9865fi
9866rm -f conftest*
9867fi
9868if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9869 echo "$ac_t""yes" 1>&6
9870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9871 cat >> confdefs.h <<EOF
9872#define $ac_tr_hdr 1
9873EOF
9874
9875else
9876 echo "$ac_t""no" 1>&6
9877fi
9878done
9879
9880
9881if test "$wxUSE_GUI" = "yes"; then
9882 if test "$wxUSE_UNIX" = "yes"; then
9883 for ac_hdr in X11/XKBlib.h
9884do
9885ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9886echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9887echo "configure:9888: checking for $ac_hdr" >&5
9888if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9889 echo $ac_n "(cached) $ac_c" 1>&6
9890else
9891 cat > conftest.$ac_ext <<EOF
9892#line 9893 "configure"
9893#include "confdefs.h"
9894#include <$ac_hdr>
9895EOF
9896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9897{ (eval echo configure:9898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9899if test -z "$ac_err"; then
9900 rm -rf conftest*
9901 eval "ac_cv_header_$ac_safe=yes"
9902else
9903 echo "$ac_err" >&5
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 rm -rf conftest*
9907 eval "ac_cv_header_$ac_safe=no"
9908fi
9909rm -f conftest*
9910fi
9911if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9914 cat >> confdefs.h <<EOF
9915#define $ac_tr_hdr 1
9916EOF
9917
9918else
9919 echo "$ac_t""no" 1>&6
9920fi
9921done
9922
9923 fi
9924fi
9925
9926
9927echo $ac_n "checking for working const""... $ac_c" 1>&6
9928echo "configure:9929: checking for working const" >&5
9929if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931else
9932 cat > conftest.$ac_ext <<EOF
9933#line 9934 "configure"
9934#include "confdefs.h"
9935
9936int main() {
9937
9938/* Ultrix mips cc rejects this. */
9939typedef int charset[2]; const charset x;
9940/* SunOS 4.1.1 cc rejects this. */
9941char const *const *ccp;
9942char **p;
9943/* NEC SVR4.0.2 mips cc rejects this. */
9944struct point {int x, y;};
9945static struct point const zero = {0,0};
9946/* AIX XL C 1.02.0.0 rejects this.
9947 It does not let you subtract one const X* pointer from another in an arm
9948 of an if-expression whose if-part is not a constant expression */
9949const char *g = "string";
9950ccp = &g + (g ? g-g : 0);
9951/* HPUX 7.0 cc rejects these. */
9952++ccp;
9953p = (char**) ccp;
9954ccp = (char const *const *) p;
9955{ /* SCO 3.2v4 cc rejects this. */
9956 char *t;
9957 char const *s = 0 ? (char *) 0 : (char const *) 0;
9958
9959 *t++ = 0;
9960}
9961{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9962 int x[] = {25, 17};
9963 const int *foo = &x[0];
9964 ++foo;
9965}
9966{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9967 typedef const int *iptr;
9968 iptr p = 0;
9969 ++p;
9970}
9971{ /* AIX XL C 1.02.0.0 rejects this saying
9972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9973 struct s { int j; const int *ap[3]; };
9974 struct s *b; b->j = 5;
9975}
9976{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9977 const int foo = 10;
9978}
9979
9980; return 0; }
9981EOF
9982if { (eval echo configure:9983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9983 rm -rf conftest*
9984 ac_cv_c_const=yes
9985else
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
9989 ac_cv_c_const=no
9990fi
9991rm -f conftest*
9992fi
9993
9994echo "$ac_t""$ac_cv_c_const" 1>&6
9995if test $ac_cv_c_const = no; then
9996 cat >> confdefs.h <<\EOF
9997#define const
9998EOF
9999
10000fi
10001
10002echo $ac_n "checking for inline""... $ac_c" 1>&6
10003echo "configure:10004: checking for inline" >&5
10004if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10006else
10007 ac_cv_c_inline=no
10008for ac_kw in inline __inline__ __inline; do
10009 cat > conftest.$ac_ext <<EOF
10010#line 10011 "configure"
10011#include "confdefs.h"
10012
10013int main() {
10014} $ac_kw foo() {
10015; return 0; }
10016EOF
10017if { (eval echo configure:10018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10018 rm -rf conftest*
10019 ac_cv_c_inline=$ac_kw; break
10020else
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10023fi
10024rm -f conftest*
10025done
10026
10027fi
10028
10029echo "$ac_t""$ac_cv_c_inline" 1>&6
10030case "$ac_cv_c_inline" in
10031 inline | yes) ;;
10032 no) cat >> confdefs.h <<\EOF
10033#define inline
10034EOF
10035 ;;
10036 *) cat >> confdefs.h <<EOF
10037#define inline $ac_cv_c_inline
10038EOF
10039 ;;
10040esac
10041
10042
10043echo $ac_n "checking size of char""... $ac_c" 1>&6
10044echo "configure:10045: checking size of char" >&5
10045if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10047else
10048 if test "$cross_compiling" = yes; then
10049 ac_cv_sizeof_char=1
10050else
10051 cat > conftest.$ac_ext <<EOF
10052#line 10053 "configure"
10053#include "confdefs.h"
10054#include <stdio.h>
10055#include <sys/types.h>
10056main()
10057{
10058 FILE *f=fopen("conftestval", "w");
10059 if (!f) exit(1);
10060 fprintf(f, "%d\n", sizeof(char));
10061 exit(0);
10062}
10063EOF
10064if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10065then
10066 ac_cv_sizeof_char=`cat conftestval`
10067else
10068 echo "configure: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10070 rm -fr conftest*
10071 ac_cv_sizeof_char=0
10072fi
10073rm -fr conftest*
10074fi
10075
10076fi
10077echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10078cat >> confdefs.h <<EOF
10079#define SIZEOF_CHAR $ac_cv_sizeof_char
10080EOF
10081
10082
10083echo $ac_n "checking size of short""... $ac_c" 1>&6
10084echo "configure:10085: checking size of short" >&5
10085if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087else
10088 if test "$cross_compiling" = yes; then
10089 ac_cv_sizeof_short=2
10090else
10091 cat > conftest.$ac_ext <<EOF
10092#line 10093 "configure"
10093#include "confdefs.h"
10094#include <stdio.h>
10095#include <sys/types.h>
10096main()
10097{
10098 FILE *f=fopen("conftestval", "w");
10099 if (!f) exit(1);
10100 fprintf(f, "%d\n", sizeof(short));
10101 exit(0);
10102}
10103EOF
10104if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10105then
10106 ac_cv_sizeof_short=`cat conftestval`
10107else
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10110 rm -fr conftest*
10111 ac_cv_sizeof_short=0
10112fi
10113rm -fr conftest*
10114fi
10115
10116fi
10117echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10118cat >> confdefs.h <<EOF
10119#define SIZEOF_SHORT $ac_cv_sizeof_short
10120EOF
10121
10122
10123echo $ac_n "checking size of void *""... $ac_c" 1>&6
10124echo "configure:10125: checking size of void *" >&5
10125if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127else
10128 if test "$cross_compiling" = yes; then
10129 ac_cv_sizeof_void_p=4
10130else
10131 cat > conftest.$ac_ext <<EOF
10132#line 10133 "configure"
10133#include "confdefs.h"
10134#include <stdio.h>
10135#include <sys/types.h>
10136main()
10137{
10138 FILE *f=fopen("conftestval", "w");
10139 if (!f) exit(1);
10140 fprintf(f, "%d\n", sizeof(void *));
10141 exit(0);
10142}
10143EOF
10144if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10145then
10146 ac_cv_sizeof_void_p=`cat conftestval`
10147else
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 rm -fr conftest*
10151 ac_cv_sizeof_void_p=0
10152fi
10153rm -fr conftest*
10154fi
10155
10156fi
10157echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10158cat >> confdefs.h <<EOF
10159#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10160EOF
10161
10162
10163echo $ac_n "checking size of int""... $ac_c" 1>&6
10164echo "configure:10165: checking size of int" >&5
10165if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10167else
10168 if test "$cross_compiling" = yes; then
10169 ac_cv_sizeof_int=4
10170else
10171 cat > conftest.$ac_ext <<EOF
10172#line 10173 "configure"
10173#include "confdefs.h"
10174#include <stdio.h>
10175#include <sys/types.h>
10176main()
10177{
10178 FILE *f=fopen("conftestval", "w");
10179 if (!f) exit(1);
10180 fprintf(f, "%d\n", sizeof(int));
10181 exit(0);
10182}
10183EOF
10184if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10185then
10186 ac_cv_sizeof_int=`cat conftestval`
10187else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -fr conftest*
10191 ac_cv_sizeof_int=0
10192fi
10193rm -fr conftest*
10194fi
10195
10196fi
10197echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10198cat >> confdefs.h <<EOF
10199#define SIZEOF_INT $ac_cv_sizeof_int
10200EOF
10201
10202
10203echo $ac_n "checking size of long""... $ac_c" 1>&6
10204echo "configure:10205: checking size of long" >&5
10205if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
10208 if test "$cross_compiling" = yes; then
10209 ac_cv_sizeof_long=4
10210else
10211 cat > conftest.$ac_ext <<EOF
10212#line 10213 "configure"
10213#include "confdefs.h"
10214#include <stdio.h>
10215#include <sys/types.h>
10216main()
10217{
10218 FILE *f=fopen("conftestval", "w");
10219 if (!f) exit(1);
10220 fprintf(f, "%d\n", sizeof(long));
10221 exit(0);
10222}
10223EOF
10224if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10225then
10226 ac_cv_sizeof_long=`cat conftestval`
10227else
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10230 rm -fr conftest*
10231 ac_cv_sizeof_long=0
10232fi
10233rm -fr conftest*
10234fi
10235
10236fi
10237echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10238cat >> confdefs.h <<EOF
10239#define SIZEOF_LONG $ac_cv_sizeof_long
10240EOF
10241
10242
10243
10244case "${host}" in
10245 arm-*-linux* )
10246 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10247echo "configure:10248: checking size of long long" >&5
10248if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250else
10251 if test "$cross_compiling" = yes; then
10252 ac_cv_sizeof_long_long=8
10253else
10254 cat > conftest.$ac_ext <<EOF
10255#line 10256 "configure"
10256#include "confdefs.h"
10257#include <stdio.h>
10258#include <sys/types.h>
10259main()
10260{
10261 FILE *f=fopen("conftestval", "w");
10262 if (!f) exit(1);
10263 fprintf(f, "%d\n", sizeof(long long));
10264 exit(0);
10265}
10266EOF
10267if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10268then
10269 ac_cv_sizeof_long_long=`cat conftestval`
10270else
10271 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 rm -fr conftest*
10274 ac_cv_sizeof_long_long=0
10275fi
10276rm -fr conftest*
10277fi
10278
10279fi
10280echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10281cat >> confdefs.h <<EOF
10282#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10283EOF
10284
10285
10286 ;;
10287 * )
10288 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10289echo "configure:10290: checking size of long long" >&5
10290if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10292else
10293 if test "$cross_compiling" = yes; then
10294 ac_cv_sizeof_long_long=0
10295else
10296 cat > conftest.$ac_ext <<EOF
10297#line 10298 "configure"
10298#include "confdefs.h"
10299#include <stdio.h>
10300#include <sys/types.h>
10301main()
10302{
10303 FILE *f=fopen("conftestval", "w");
10304 if (!f) exit(1);
10305 fprintf(f, "%d\n", sizeof(long long));
10306 exit(0);
10307}
10308EOF
10309if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10310then
10311 ac_cv_sizeof_long_long=`cat conftestval`
10312else
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 rm -fr conftest*
10316 ac_cv_sizeof_long_long=0
10317fi
10318rm -fr conftest*
10319fi
10320
10321fi
10322echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10323cat >> confdefs.h <<EOF
10324#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10325EOF
10326
10327
10328esac
10329
10330echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10331echo "configure:10332: checking size of wchar_t" >&5
10332if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10333 echo $ac_n "(cached) $ac_c" 1>&6
10334else
10335
10336 if test "$cross_compiling" = yes; then
10337 wx_cv_sizeof_wchar_t=4
10338
10339else
10340 cat > conftest.$ac_ext <<EOF
10341#line 10342 "configure"
10342#include "confdefs.h"
10343
10344 #ifdef HAVE_WCHAR_H
10345 # ifdef __CYGWIN__
10346 # include <stddef.h>
10347 # endif
10348 # include <wchar.h>
10349 #endif
10350 #ifdef HAVE_STDLIB_H
10351 # include <stdlib.h>
10352 #endif
10353 #include <stdio.h>
10354 int main()
10355 {
10356 FILE *f=fopen("conftestval", "w");
10357 if (!f) exit(1);
10358 fprintf(f, "%i", sizeof(wchar_t));
10359 exit(0);
10360 }
10361
10362EOF
10363if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10364then
10365 wx_cv_sizeof_wchar_t=`cat conftestval`
10366else
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 rm -fr conftest*
10370 wx_cv_sizeof_wchar_t=0
10371fi
10372rm -fr conftest*
10373fi
10374
10375
10376fi
10377
10378echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10379
10380cat >> confdefs.h <<EOF
10381#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10382EOF
10383
10384
10385# Check whether --enable-largefile or --disable-largefile was given.
10386if test "${enable_largefile+set}" = set; then
10387 enableval="$enable_largefile"
10388 :
10389fi
10390
10391if test "$enable_largefile" != no; then
10392 wx_largefile=no
10393
10394 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10395echo "configure:10396: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10396if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10398else
10399
10400 cat > conftest.$ac_ext <<EOF
10401#line 10402 "configure"
10402#include "confdefs.h"
10403#define _FILE_OFFSET_BITS 64
10404 #include <sys/types.h>
10405int main() {
10406typedef struct {
10407 unsigned int field: sizeof(off_t) == 8;
10408} wxlf;
10409
10410; return 0; }
10411EOF
10412if { (eval echo configure:10413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10413 rm -rf conftest*
10414 ac_cv_sys_file_offset_bits=64
10415else
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -rf conftest*
10419 ac_cv_sys_file_offset_bits=no
10420fi
10421rm -f conftest*
10422
10423
10424fi
10425
10426echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10427
10428 if test "$ac_cv_sys_file_offset_bits" != no; then
10429 wx_largefile=yes
10430 cat >> confdefs.h <<EOF
10431#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10432EOF
10433
10434 fi
10435
10436 if test "x$wx_largefile" != "xyes"; then
10437
10438 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10439echo "configure:10440: checking for _LARGE_FILES value needed for large files" >&5
10440if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10442else
10443
10444 cat > conftest.$ac_ext <<EOF
10445#line 10446 "configure"
10446#include "confdefs.h"
10447#define _LARGE_FILES 1
10448 #include <sys/types.h>
10449int main() {
10450typedef struct {
10451 unsigned int field: sizeof(off_t) == 8;
10452} wxlf;
10453
10454; return 0; }
10455EOF
10456if { (eval echo configure:10457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10457 rm -rf conftest*
10458 ac_cv_sys_large_files=1
10459else
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -rf conftest*
10463 ac_cv_sys_large_files=no
10464fi
10465rm -f conftest*
10466
10467
10468fi
10469
10470echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10471
10472 if test "$ac_cv_sys_large_files" != no; then
10473 wx_largefile=yes
10474 cat >> confdefs.h <<EOF
10475#define _LARGE_FILES $ac_cv_sys_large_files
10476EOF
10477
10478 fi
10479
10480 fi
10481
10482 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10483echo "configure:10484: checking if large file support is available" >&5
10484 if test "x$wx_largefile" = "xyes"; then
10485 cat >> confdefs.h <<\EOF
10486#define HAVE_LARGEFILE_SUPPORT 1
10487EOF
10488
10489 fi
10490 echo "$ac_t""$wx_largefile" 1>&6
10491fi
10492
10493
10494echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10495echo "configure:10496: checking whether byte ordering is bigendian" >&5
10496if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10497 echo $ac_n "(cached) $ac_c" 1>&6
10498else
10499 ac_cv_c_bigendian=unknown
10500# See if sys/param.h defines the BYTE_ORDER macro.
10501cat > conftest.$ac_ext <<EOF
10502#line 10503 "configure"
10503#include "confdefs.h"
10504#include <sys/types.h>
10505#include <sys/param.h>
10506int main() {
10507
10508#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10509 bogus endian macros
10510#endif
10511; return 0; }
10512EOF
10513if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10514 rm -rf conftest*
10515 # It does; now see whether it defined to BIG_ENDIAN or not.
10516cat > conftest.$ac_ext <<EOF
10517#line 10518 "configure"
10518#include "confdefs.h"
10519#include <sys/types.h>
10520#include <sys/param.h>
10521int main() {
10522
10523#if BYTE_ORDER != BIG_ENDIAN
10524 not big endian
10525#endif
10526; return 0; }
10527EOF
10528if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10529 rm -rf conftest*
10530 ac_cv_c_bigendian=yes
10531else
10532 echo "configure: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10534 rm -rf conftest*
10535 ac_cv_c_bigendian=no
10536fi
10537rm -f conftest*
10538else
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10541fi
10542rm -f conftest*
10543if test $ac_cv_c_bigendian = unknown; then
10544if test "$cross_compiling" = yes; then
10545 ac_cv_c_bigendian=unknown
10546else
10547 cat > conftest.$ac_ext <<EOF
10548#line 10549 "configure"
10549#include "confdefs.h"
10550main () {
10551 /* Are we little or big endian? From Harbison&Steele. */
10552 union
10553 {
10554 long l;
10555 char c[sizeof (long)];
10556 } u;
10557 u.l = 1;
10558 exit (u.c[sizeof (long) - 1] == 1);
10559}
10560EOF
10561if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10562then
10563 ac_cv_c_bigendian=no
10564else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 rm -fr conftest*
10568 ac_cv_c_bigendian=yes
10569fi
10570rm -fr conftest*
10571fi
10572
10573fi
10574fi
10575
10576echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10577if test $ac_cv_c_bigendian = unknown; then
10578 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
10579fi
10580if test $ac_cv_c_bigendian = yes; then
10581 cat >> confdefs.h <<\EOF
10582#define WORDS_BIGENDIAN 1
10583EOF
10584
10585fi
10586
10587
10588echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10589echo "configure:10590: checking how to run the C++ preprocessor" >&5
10590if test -z "$CXXCPP"; then
10591if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10593else
10594 ac_ext=C
10595# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10596ac_cpp='$CXXCPP $CPPFLAGS'
10597ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10598ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10599cross_compiling=$ac_cv_prog_cxx_cross
10600 CXXCPP="${CXX-g++} -E"
10601 cat > conftest.$ac_ext <<EOF
10602#line 10603 "configure"
10603#include "confdefs.h"
10604#include <stdlib.h>
10605EOF
10606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10607{ (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609if test -z "$ac_err"; then
10610 :
10611else
10612 echo "$ac_err" >&5
10613 echo "configure: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 rm -rf conftest*
10616 CXXCPP=/lib/cpp
10617fi
10618rm -f conftest*
10619 ac_cv_prog_CXXCPP="$CXXCPP"
10620ac_ext=C
10621# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10622ac_cpp='$CXXCPP $CPPFLAGS'
10623ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10624ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10625cross_compiling=$ac_cv_prog_cxx_cross
10626fi
10627fi
10628CXXCPP="$ac_cv_prog_CXXCPP"
10629echo "$ac_t""$CXXCPP" 1>&6
10630
10631
10632 if test "$cross_compiling" = "yes"; then
10633 cat >> confdefs.h <<\EOF
10634#define wxUSE_IOSTREAMH 1
10635EOF
10636
10637 else
10638
10639 ac_ext=C
10640# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10641ac_cpp='$CXXCPP $CPPFLAGS'
10642ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10643ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10644cross_compiling=$ac_cv_prog_cxx_cross
10645
10646
10647 for ac_hdr in iostream
10648do
10649ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10650echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10651echo "configure:10652: checking for $ac_hdr" >&5
10652if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10653 echo $ac_n "(cached) $ac_c" 1>&6
10654else
10655 cat > conftest.$ac_ext <<EOF
10656#line 10657 "configure"
10657#include "confdefs.h"
10658#include <$ac_hdr>
10659EOF
10660ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10661{ (eval echo configure:10662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10662ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10663if test -z "$ac_err"; then
10664 rm -rf conftest*
10665 eval "ac_cv_header_$ac_safe=yes"
10666else
10667 echo "$ac_err" >&5
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10670 rm -rf conftest*
10671 eval "ac_cv_header_$ac_safe=no"
10672fi
10673rm -f conftest*
10674fi
10675if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10676 echo "$ac_t""yes" 1>&6
10677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10678 cat >> confdefs.h <<EOF
10679#define $ac_tr_hdr 1
10680EOF
10681
10682else
10683 echo "$ac_t""no" 1>&6
10684fi
10685done
10686
10687
10688 if test "$ac_cv_header_iostream" = "yes" ; then
10689 :
10690 else
10691 cat >> confdefs.h <<\EOF
10692#define wxUSE_IOSTREAMH 1
10693EOF
10694
10695 fi
10696
10697 ac_ext=c
10698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10699ac_cpp='$CPP $CPPFLAGS'
10700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10702cross_compiling=$ac_cv_prog_cc_cross
10703
10704 fi
10705
10706
10707
10708 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10709echo "configure:10710: checking if C++ compiler supports bool" >&5
10710if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10712else
10713
10714
10715 ac_ext=C
10716# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10717ac_cpp='$CXXCPP $CPPFLAGS'
10718ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10719ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10720cross_compiling=$ac_cv_prog_cxx_cross
10721
10722
10723 cat > conftest.$ac_ext <<EOF
10724#line 10725 "configure"
10725#include "confdefs.h"
10726
10727
10728int main() {
10729
10730 bool b = true;
10731
10732 return 0;
10733
10734; return 0; }
10735EOF
10736if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10737 rm -rf conftest*
10738
10739 wx_cv_cpp_bool=yes
10740
10741else
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
10745
10746 wx_cv_cpp_bool=no
10747
10748
10749fi
10750rm -f conftest*
10751
10752 ac_ext=c
10753# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10754ac_cpp='$CPP $CPPFLAGS'
10755ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10756ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10757cross_compiling=$ac_cv_prog_cc_cross
10758
10759
10760fi
10761
10762echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10763
10764 if test "$wx_cv_cpp_bool" = "yes"; then
10765 cat >> confdefs.h <<\EOF
10766#define HAVE_BOOL 1
10767EOF
10768
10769 fi
10770
10771
10772
10773 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10774echo "configure:10775: checking if C++ compiler supports the explicit keyword" >&5
10775if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777else
10778
10779
10780 ac_ext=C
10781# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10782ac_cpp='$CXXCPP $CPPFLAGS'
10783ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10784ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10785cross_compiling=$ac_cv_prog_cxx_cross
10786
10787
10788 cat > conftest.$ac_ext <<EOF
10789#line 10790 "configure"
10790#include "confdefs.h"
10791
10792 class Foo { public: explicit Foo(int) {} };
10793
10794int main() {
10795
10796 return 0;
10797
10798; return 0; }
10799EOF
10800if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10801 rm -rf conftest*
10802
10803 cat > conftest.$ac_ext <<EOF
10804#line 10805 "configure"
10805#include "confdefs.h"
10806
10807 class Foo { public: explicit Foo(int) {} };
10808 static void TakeFoo(const Foo& foo) { }
10809
10810int main() {
10811
10812 TakeFoo(17);
10813 return 0;
10814
10815; return 0; }
10816EOF
10817if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10818 rm -rf conftest*
10819 wx_cv_explicit=no
10820else
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 rm -rf conftest*
10824 wx_cv_explicit=yes
10825
10826fi
10827rm -f conftest*
10828
10829else
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10832 rm -rf conftest*
10833 wx_cv_explicit=no
10834
10835fi
10836rm -f conftest*
10837
10838 ac_ext=c
10839# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10842ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10843cross_compiling=$ac_cv_prog_cc_cross
10844
10845
10846fi
10847
10848echo "$ac_t""$wx_cv_explicit" 1>&6
10849
10850 if test "$wx_cv_explicit" = "yes"; then
10851 cat >> confdefs.h <<\EOF
10852#define HAVE_EXPLICIT 1
10853EOF
10854
10855 fi
10856
10857
10858
10859SEARCH_INCLUDE="\
10860 /usr/local/include \
10861 \
10862 /usr/Motif-1.2/include \
10863 /usr/Motif-2.1/include \
10864 \
10865 /usr/include/Motif1.2 \
10866 /opt/xpm/include/X11 \
10867 /opt/GBxpm/include/ \
10868 /opt/GBxpm/X11/include/ \
10869 \
10870 /usr/Motif1.2/include \
10871 /usr/dt/include \
10872 /usr/openwin/include \
10873 \
10874 /usr/include/Xm \
10875 \
10876 /usr/X11R6/include \
10877 /usr/X11R6.4/include \
10878 /usr/X11R5/include \
10879 /usr/X11R4/include \
10880 \
10881 /usr/include/X11R6 \
10882 /usr/include/X11R5 \
10883 /usr/include/X11R4 \
10884 \
10885 /usr/local/X11R6/include \
10886 /usr/local/X11R5/include \
10887 /usr/local/X11R4/include \
10888 \
10889 /usr/local/include/X11R6 \
10890 /usr/local/include/X11R5 \
10891 /usr/local/include/X11R4 \
10892 \
10893 /usr/X11/include \
10894 /usr/include/X11 \
10895 /usr/local/X11/include \
10896 /usr/local/include/X11 \
10897 \
10898 /usr/X386/include \
10899 /usr/x386/include \
10900 /usr/XFree86/include/X11 \
10901 \
10902 X:/XFree86/include \
10903 X:/XFree86/include/X11 \
10904 \
10905 /usr/include/gtk \
10906 /usr/local/include/gtk \
10907 /usr/include/glib \
10908 /usr/local/include/glib \
10909 \
10910 /usr/include/qt \
10911 /usr/local/include/qt \
10912 \
10913 /usr/include/windows \
10914 /usr/include/wine \
10915 /usr/local/include/wine \
10916 \
10917 /usr/unsupported/include \
10918 /usr/athena/include \
10919 /usr/local/x11r5/include \
10920 /usr/lpp/Xamples/include \
10921 \
10922 /usr/openwin/share/include \
10923 \
10924 /usr/include"
10925
10926SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10927
10928
10929cat > confcache <<\EOF
10930# This file is a shell script that caches the results of configure
10931# tests run on this system so they can be shared between configure
10932# scripts and configure runs. It is not useful on other systems.
10933# If it contains results you don't want to keep, you may remove or edit it.
10934#
10935# By default, configure uses ./config.cache as the cache file,
10936# creating it if it does not exist already. You can give configure
10937# the --cache-file=FILE option to use a different cache file; that is
10938# what configure does when it calls configure scripts in
10939# subdirectories, so they share the cache.
10940# Giving --cache-file=/dev/null disables caching, for debugging configure.
10941# config.status only pays attention to the cache file if you give it the
10942# --recheck option to rerun configure.
10943#
10944EOF
10945# The following way of writing the cache mishandles newlines in values,
10946# but we know of no workaround that is simple, portable, and efficient.
10947# So, don't put newlines in cache variables' values.
10948# Ultrix sh set writes to stderr and can't be redirected directly,
10949# and sets the high bit in the cache file unless we assign to the vars.
10950(set) 2>&1 |
10951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10952 *ac_space=\ *)
10953 # `set' does not quote correctly, so add quotes (double-quote substitution
10954 # turns \\\\ into \\, and sed turns \\ into \).
10955 sed -n \
10956 -e "s/'/'\\\\''/g" \
10957 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10958 ;;
10959 *)
10960 # `set' quotes correctly as required by POSIX, so do not add quotes.
10961 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10962 ;;
10963 esac >> confcache
10964if cmp -s $cache_file confcache; then
10965 :
10966else
10967 if test -w $cache_file; then
10968 echo "updating cache $cache_file"
10969 cat confcache > $cache_file
10970 else
10971 echo "not updating unwritable cache $cache_file"
10972 fi
10973fi
10974rm -f confcache
10975
10976
10977if test "$USE_LINUX" = 1; then
10978 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10979echo "configure:10980: checking for glibc 2.1 or later" >&5
10980if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10982else
10983
10984 cat > conftest.$ac_ext <<EOF
10985#line 10986 "configure"
10986#include "confdefs.h"
10987#include <features.h>
10988int main() {
10989
10990 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10991 #error not glibc2.1
10992 #endif
10993
10994; return 0; }
10995EOF
10996if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10997 rm -rf conftest*
10998
10999 wx_cv_lib_glibc21=yes
11000
11001else
11002 echo "configure: failed program was:" >&5
11003 cat conftest.$ac_ext >&5
11004 rm -rf conftest*
11005
11006 wx_cv_lib_glibc21=no
11007
11008
11009fi
11010rm -f conftest*
11011
11012fi
11013
11014echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11015 if test "$wx_cv_lib_glibc21" = "yes"; then
11016 cat >> confdefs.h <<\EOF
11017#define wxHAVE_GLIBC2 1
11018EOF
11019
11020 fi
11021fi
11022
11023
11024
11025REGEX_INCLUDE=
11026if test "$wxUSE_REGEX" != "no"; then
11027 cat >> confdefs.h <<\EOF
11028#define wxUSE_REGEX 1
11029EOF
11030
11031
11032 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11033 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11034echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11035echo "configure:11036: checking for regex.h" >&5
11036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11037 echo $ac_n "(cached) $ac_c" 1>&6
11038else
11039 cat > conftest.$ac_ext <<EOF
11040#line 11041 "configure"
11041#include "confdefs.h"
11042#include <regex.h>
11043EOF
11044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11045{ (eval echo configure:11046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11047if test -z "$ac_err"; then
11048 rm -rf conftest*
11049 eval "ac_cv_header_$ac_safe=yes"
11050else
11051 echo "$ac_err" >&5
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11054 rm -rf conftest*
11055 eval "ac_cv_header_$ac_safe=no"
11056fi
11057rm -f conftest*
11058fi
11059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11060 echo "$ac_t""yes" 1>&6
11061 for ac_func in regcomp
11062do
11063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11064echo "configure:11065: checking for $ac_func" >&5
11065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11067else
11068 cat > conftest.$ac_ext <<EOF
11069#line 11070 "configure"
11070#include "confdefs.h"
11071/* System header to define __stub macros and hopefully few prototypes,
11072 which can conflict with char $ac_func(); below. */
11073#include <assert.h>
11074/* Override any gcc2 internal prototype to avoid an error. */
11075/* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077char $ac_func();
11078
11079int main() {
11080
11081/* The GNU C library defines this for functions which it implements
11082 to always fail with ENOSYS. Some functions are actually named
11083 something starting with __ and the normal name is an alias. */
11084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11085choke me
11086#else
11087$ac_func();
11088#endif
11089
11090; return 0; }
11091EOF
11092if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11093 rm -rf conftest*
11094 eval "ac_cv_func_$ac_func=yes"
11095else
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 rm -rf conftest*
11099 eval "ac_cv_func_$ac_func=no"
11100fi
11101rm -f conftest*
11102fi
11103
11104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11105 echo "$ac_t""yes" 1>&6
11106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11107 cat >> confdefs.h <<EOF
11108#define $ac_tr_func 1
11109EOF
11110
11111else
11112 echo "$ac_t""no" 1>&6
11113fi
11114done
11115
11116else
11117 echo "$ac_t""no" 1>&6
11118fi
11119
11120
11121 if test "x$ac_cv_func_regcomp" != "xyes"; then
11122 if test "$wxUSE_REGEX" = "sys" ; then
11123 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11124 else
11125 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11126 wxUSE_REGEX=builtin
11127 fi
11128 else
11129 wxUSE_REGEX=sys
11130 fi
11131 fi
11132
11133 if test "$wxUSE_REGEX" = "builtin" ; then
11134 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11135 fi
11136fi
11137
11138
11139ZLIB_INCLUDE=
11140ZLIB_LINK=
11141if test "$wxUSE_ZLIB" != "no" ; then
11142 cat >> confdefs.h <<\EOF
11143#define wxUSE_ZLIB 1
11144EOF
11145
11146
11147 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11148 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11149echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11150echo "configure:11151: checking for zlib.h" >&5
11151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11153else
11154 cat > conftest.$ac_ext <<EOF
11155#line 11156 "configure"
11156#include "confdefs.h"
11157#include <zlib.h>
11158EOF
11159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11160{ (eval echo configure:11161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11162if test -z "$ac_err"; then
11163 rm -rf conftest*
11164 eval "ac_cv_header_$ac_safe=yes"
11165else
11166 echo "$ac_err" >&5
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 rm -rf conftest*
11170 eval "ac_cv_header_$ac_safe=no"
11171fi
11172rm -f conftest*
11173fi
11174if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11175 echo "$ac_t""yes" 1>&6
11176 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11177echo "configure:11178: checking for deflate in -lz" >&5
11178ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11181else
11182 ac_save_LIBS="$LIBS"
11183LIBS="-lz $LIBS"
11184cat > conftest.$ac_ext <<EOF
11185#line 11186 "configure"
11186#include "confdefs.h"
11187/* Override any gcc2 internal prototype to avoid an error. */
11188/* We use char because int might match the return type of a gcc2
11189 builtin and then its argument prototype would still apply. */
11190char deflate();
11191
11192int main() {
11193deflate()
11194; return 0; }
11195EOF
11196if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11197 rm -rf conftest*
11198 eval "ac_cv_lib_$ac_lib_var=yes"
11199else
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -rf conftest*
11203 eval "ac_cv_lib_$ac_lib_var=no"
11204fi
11205rm -f conftest*
11206LIBS="$ac_save_LIBS"
11207
11208fi
11209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11210 echo "$ac_t""yes" 1>&6
11211 ZLIB_LINK=" -lz"
11212else
11213 echo "$ac_t""no" 1>&6
11214fi
11215
11216else
11217 echo "$ac_t""no" 1>&6
11218fi
11219
11220
11221 if test "x$ZLIB_LINK" = "x" ; then
11222 if test "$wxUSE_ZLIB" = "sys" ; then
11223 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11224 else
11225 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11226 wxUSE_ZLIB=builtin
11227 fi
11228 else
11229 wxUSE_ZLIB=sys
11230 fi
11231 fi
11232
11233 if test "$wxUSE_ZLIB" = "builtin" ; then
11234 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11235 fi
11236fi
11237
11238
11239PNG_INCLUDE=
11240PNG_LINK=
11241if test "$wxUSE_LIBPNG" != "no" ; then
11242 cat >> confdefs.h <<\EOF
11243#define wxUSE_LIBPNG 1
11244EOF
11245
11246
11247 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11248 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11249 wxUSE_LIBPNG=sys
11250 fi
11251
11252 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11253 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11254 wxUSE_LIBPNG=builtin
11255 fi
11256
11257 if test "$wxUSE_MGL" != 1 ; then
11258 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11259 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11260echo $ac_n "checking for png.h""... $ac_c" 1>&6
11261echo "configure:11262: checking for png.h" >&5
11262if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
11264else
11265 cat > conftest.$ac_ext <<EOF
11266#line 11267 "configure"
11267#include "confdefs.h"
11268#include <png.h>
11269EOF
11270ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11271{ (eval echo configure:11272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11272ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11273if test -z "$ac_err"; then
11274 rm -rf conftest*
11275 eval "ac_cv_header_$ac_safe=yes"
11276else
11277 echo "$ac_err" >&5
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_header_$ac_safe=no"
11282fi
11283rm -f conftest*
11284fi
11285if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11286 echo "$ac_t""yes" 1>&6
11287 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11288echo "configure:11289: checking for png_check_sig in -lpng" >&5
11289ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292else
11293 ac_save_LIBS="$LIBS"
11294LIBS="-lpng -lz -lm $LIBS"
11295cat > conftest.$ac_ext <<EOF
11296#line 11297 "configure"
11297#include "confdefs.h"
11298/* Override any gcc2 internal prototype to avoid an error. */
11299/* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11301char png_check_sig();
11302
11303int main() {
11304png_check_sig()
11305; return 0; }
11306EOF
11307if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 rm -rf conftest*
11309 eval "ac_cv_lib_$ac_lib_var=yes"
11310else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 eval "ac_cv_lib_$ac_lib_var=no"
11315fi
11316rm -f conftest*
11317LIBS="$ac_save_LIBS"
11318
11319fi
11320if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11321 echo "$ac_t""yes" 1>&6
11322 PNG_LINK=" -lpng"
11323else
11324 echo "$ac_t""no" 1>&6
11325fi
11326
11327
11328else
11329 echo "$ac_t""no" 1>&6
11330fi
11331
11332
11333 if test "x$PNG_LINK" = "x" ; then
11334 if test "$wxUSE_LIBPNG" = "sys" ; then
11335 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11336 else
11337 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11338 wxUSE_LIBPNG=builtin
11339 fi
11340 else
11341 wxUSE_LIBPNG=yes
11342 fi
11343 fi
11344 fi
11345
11346 if test "$wxUSE_LIBPNG" = "builtin" ; then
11347 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11348 fi
11349
11350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11351fi
11352
11353
11354JPEG_INCLUDE=
11355JPEG_LINK=
11356if test "$wxUSE_LIBJPEG" != "no" ; then
11357 cat >> confdefs.h <<\EOF
11358#define wxUSE_LIBJPEG 1
11359EOF
11360
11361
11362 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11363 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11364 wxUSE_LIBJPEG=sys
11365 fi
11366
11367 if test "$wxUSE_MGL" != 1 ; then
11368 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11369 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11370echo "configure:11371: checking for jpeglib.h" >&5
11371 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373else
11374 cat > conftest.$ac_ext <<EOF
11375#line 11376 "configure"
11376#include "confdefs.h"
11377
11378 #undef HAVE_STDLIB_H
11379 #include <stdio.h>
11380 #include <jpeglib.h>
11381
11382int main() {
11383
11384
11385; return 0; }
11386EOF
11387if { (eval echo configure:11388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11388 rm -rf conftest*
11389 ac_cv_header_jpeglib_h=yes
11390else
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11393 rm -rf conftest*
11394 ac_cv_header_jpeglib_h=no
11395
11396fi
11397rm -f conftest*
11398
11399fi
11400
11401 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11402
11403 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11404 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11405echo "configure:11406: checking for jpeg_read_header in -ljpeg" >&5
11406ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11408 echo $ac_n "(cached) $ac_c" 1>&6
11409else
11410 ac_save_LIBS="$LIBS"
11411LIBS="-ljpeg $LIBS"
11412cat > conftest.$ac_ext <<EOF
11413#line 11414 "configure"
11414#include "confdefs.h"
11415/* Override any gcc2 internal prototype to avoid an error. */
11416/* We use char because int might match the return type of a gcc2
11417 builtin and then its argument prototype would still apply. */
11418char jpeg_read_header();
11419
11420int main() {
11421jpeg_read_header()
11422; return 0; }
11423EOF
11424if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11425 rm -rf conftest*
11426 eval "ac_cv_lib_$ac_lib_var=yes"
11427else
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 rm -rf conftest*
11431 eval "ac_cv_lib_$ac_lib_var=no"
11432fi
11433rm -f conftest*
11434LIBS="$ac_save_LIBS"
11435
11436fi
11437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11438 echo "$ac_t""yes" 1>&6
11439 JPEG_LINK=" -ljpeg"
11440else
11441 echo "$ac_t""no" 1>&6
11442fi
11443
11444 fi
11445
11446 if test "x$JPEG_LINK" = "x" ; then
11447 if test "$wxUSE_LIBJPEG" = "sys" ; then
11448 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11449 else
11450 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11451 wxUSE_LIBJPEG=builtin
11452 fi
11453 else
11454 wxUSE_LIBJPEG=sys
11455 fi
11456 fi
11457 fi
11458
11459 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11460 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11461 fi
11462fi
11463
11464
11465TIFF_INCLUDE=
11466TIFF_LINK=
11467if test "$wxUSE_LIBTIFF" != "no" ; then
11468 cat >> confdefs.h <<\EOF
11469#define wxUSE_LIBTIFF 1
11470EOF
11471
11472
11473 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11474 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11475echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11476echo "configure:11477: checking for tiffio.h" >&5
11477if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11478 echo $ac_n "(cached) $ac_c" 1>&6
11479else
11480 cat > conftest.$ac_ext <<EOF
11481#line 11482 "configure"
11482#include "confdefs.h"
11483#include <tiffio.h>
11484EOF
11485ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11486{ (eval echo configure:11487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11487ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11488if test -z "$ac_err"; then
11489 rm -rf conftest*
11490 eval "ac_cv_header_$ac_safe=yes"
11491else
11492 echo "$ac_err" >&5
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 rm -rf conftest*
11496 eval "ac_cv_header_$ac_safe=no"
11497fi
11498rm -f conftest*
11499fi
11500if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11501 echo "$ac_t""yes" 1>&6
11502 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11503echo "configure:11504: checking for TIFFError in -ltiff" >&5
11504ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11506 echo $ac_n "(cached) $ac_c" 1>&6
11507else
11508 ac_save_LIBS="$LIBS"
11509LIBS="-ltiff -lm $LIBS"
11510cat > conftest.$ac_ext <<EOF
11511#line 11512 "configure"
11512#include "confdefs.h"
11513/* Override any gcc2 internal prototype to avoid an error. */
11514/* We use char because int might match the return type of a gcc2
11515 builtin and then its argument prototype would still apply. */
11516char TIFFError();
11517
11518int main() {
11519TIFFError()
11520; return 0; }
11521EOF
11522if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 rm -rf conftest*
11524 eval "ac_cv_lib_$ac_lib_var=yes"
11525else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_lib_$ac_lib_var=no"
11530fi
11531rm -f conftest*
11532LIBS="$ac_save_LIBS"
11533
11534fi
11535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11536 echo "$ac_t""yes" 1>&6
11537 TIFF_LINK=" -ltiff"
11538else
11539 echo "$ac_t""no" 1>&6
11540fi
11541
11542
11543else
11544 echo "$ac_t""no" 1>&6
11545fi
11546
11547
11548 if test "x$TIFF_LINK" = "x" ; then
11549 if test "$wxUSE_LIBTIFF" = "sys" ; then
11550 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11551 else
11552 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11553 wxUSE_LIBTIFF=builtin
11554 fi
11555 else
11556 wxUSE_LIBTIFF=sys
11557 fi
11558 fi
11559
11560 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11561 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11562 fi
11563fi
11564
11565
11566AFMINSTALL=
11567
11568TOOLKIT=
11569TOOLKIT_INCLUDE=
11570WIDGET_SET=
11571
11572if test "$USE_WIN32" = 1 ; then
11573 for ac_hdr in w32api.h
11574do
11575ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11576echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11577echo "configure:11578: checking for $ac_hdr" >&5
11578if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580else
11581 cat > conftest.$ac_ext <<EOF
11582#line 11583 "configure"
11583#include "confdefs.h"
11584#include <$ac_hdr>
11585EOF
11586ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11587{ (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11588ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11589if test -z "$ac_err"; then
11590 rm -rf conftest*
11591 eval "ac_cv_header_$ac_safe=yes"
11592else
11593 echo "$ac_err" >&5
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 rm -rf conftest*
11597 eval "ac_cv_header_$ac_safe=no"
11598fi
11599rm -f conftest*
11600fi
11601if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11602 echo "$ac_t""yes" 1>&6
11603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11604 cat >> confdefs.h <<EOF
11605#define $ac_tr_hdr 1
11606EOF
11607
11608else
11609 echo "$ac_t""no" 1>&6
11610fi
11611done
11612
11613 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11614echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11615echo "configure:11616: checking for windows.h" >&5
11616if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618else
11619 cat > conftest.$ac_ext <<EOF
11620#line 11621 "configure"
11621#include "confdefs.h"
11622#include <windows.h>
11623EOF
11624ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11625{ (eval echo configure:11626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11626ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11627if test -z "$ac_err"; then
11628 rm -rf conftest*
11629 eval "ac_cv_header_$ac_safe=yes"
11630else
11631 echo "$ac_err" >&5
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -rf conftest*
11635 eval "ac_cv_header_$ac_safe=no"
11636fi
11637rm -f conftest*
11638fi
11639if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11640 echo "$ac_t""yes" 1>&6
11641 :
11642else
11643 echo "$ac_t""no" 1>&6
11644
11645 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11646
11647fi
11648
11649
11650 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11651echo "configure:11652: checking if w32api has good enough MSIE support" >&5
11652if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
11654else
11655
11656 cat > conftest.$ac_ext <<EOF
11657#line 11658 "configure"
11658#include "confdefs.h"
11659#include <w32api.h>
11660int main() {
11661
11662 #define wxCHECK_W32API_VERSION( major, minor ) \
11663 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11664 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11665 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11666
11667 #if !wxCHECK_W32API_VERSION(1,1)
11668 #error You need w32api 1.1 or newer
11669 #endif
11670
11671; return 0; }
11672EOF
11673if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11674 rm -rf conftest*
11675
11676 wx_cv_w32api_win32_ie=yes
11677
11678else
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 rm -rf conftest*
11682
11683 wx_cv_w32api_win32_ie=no
11684
11685fi
11686rm -f conftest*
11687
11688fi
11689
11690echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11691 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11692 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11693 fi
11694
11695 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11696
11697 case "${host}" in
11698 *-*-cygwin* )
11699 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11700 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11701 esac
11702
11703 if test "$wxUSE_ODBC" = "yes" ; then
11704 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11705 fi
11706
11707 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11708 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11709fi
11710
11711if test "$wxUSE_GUI" = "yes"; then
11712 USE_GUI=1
11713
11714 GUI_TK_LIBRARY=
11715
11716 WXGTK12=
11717 WXGTK127=
11718 WXGTK20=
11719
11720 if test "$wxUSE_MSW" = 1 ; then
11721 TOOLKIT=MSW
11722 GUIDIST=MSW_DIST
11723
11724 case "${host}" in
11725 *-*-mingw32* )
11726 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11727 esac
11728 fi
11729
11730 if test "$wxUSE_GTK" = 1; then
11731 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11732echo "configure:11733: checking for GTK+ version" >&5
11733
11734 gtk_version_cached=1
11735 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11736 echo $ac_n "(cached) $ac_c" 1>&6
11737else
11738
11739 gtk_version_cached=0
11740 echo "$ac_t""" 1>&6
11741
11742 GTK_MODULES=
11743 if test "$wxUSE_THREADS" = "yes"; then
11744 GTK_MODULES=gthread
11745 fi
11746
11747 wx_cv_lib_gtk=
11748 if test "x$wxUSE_GTK2" = "xyes"; then
11749 # Check whether --enable-gtktest or --disable-gtktest was given.
11750if test "${enable_gtktest+set}" = set; then
11751 enableval="$enable_gtktest"
11752 :
11753else
11754 enable_gtktest=yes
11755fi
11756
11757
11758 pkg_config_args=gtk+-2.0
11759 for module in . $GTK_MODULES
11760 do
11761 case "$module" in
11762 gthread)
11763 pkg_config_args="$pkg_config_args gthread-2.0"
11764 ;;
11765 esac
11766 done
11767
11768 no_gtk=""
11769
11770 # Extract the first word of "pkg-config", so it can be a program name with args.
11771set dummy pkg-config; ac_word=$2
11772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11773echo "configure:11774: checking for $ac_word" >&5
11774if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776else
11777 case "$PKG_CONFIG" in
11778 /*)
11779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11780 ;;
11781 ?:/*)
11782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11783 ;;
11784 *)
11785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11786 ac_dummy="$PATH"
11787 for ac_dir in $ac_dummy; do
11788 test -z "$ac_dir" && ac_dir=.
11789 if test -f $ac_dir/$ac_word; then
11790 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11791 break
11792 fi
11793 done
11794 IFS="$ac_save_ifs"
11795 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11796 ;;
11797esac
11798fi
11799PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11800if test -n "$PKG_CONFIG"; then
11801 echo "$ac_t""$PKG_CONFIG" 1>&6
11802else
11803 echo "$ac_t""no" 1>&6
11804fi
11805
11806
11807 if test x$PKG_CONFIG != xno ; then
11808 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11809 :
11810 else
11811 echo *** pkg-config too old; version 0.7 or better required.
11812 no_gtk=yes
11813 PKG_CONFIG=no
11814 fi
11815 else
11816 no_gtk=yes
11817 fi
11818
11819 min_gtk_version=2.0.0
11820 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11821echo "configure:11822: checking for GTK+ - version >= $min_gtk_version" >&5
11822
11823 if test x$PKG_CONFIG != xno ; then
11824 ## don't try to run the test against uninstalled libtool libs
11825 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11826 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11827 enable_gtktest=no
11828 fi
11829
11830 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11831 :
11832 else
11833 no_gtk=yes
11834 fi
11835 fi
11836
11837 if test x"$no_gtk" = x ; then
11838 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11839 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11840 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11842 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11843 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11844 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11845 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11846 if test "x$enable_gtktest" = "xyes" ; then
11847 ac_save_CFLAGS="$CFLAGS"
11848 ac_save_LIBS="$LIBS"
11849 CFLAGS="$CFLAGS $GTK_CFLAGS"
11850 LIBS="$GTK_LIBS $LIBS"
11851 rm -f conf.gtktest
11852 if test "$cross_compiling" = yes; then
11853 echo $ac_n "cross compiling; assumed OK... $ac_c"
11854else
11855 cat > conftest.$ac_ext <<EOF
11856#line 11857 "configure"
11857#include "confdefs.h"
11858
11859#include <gtk/gtk.h>
11860#include <stdio.h>
11861#include <stdlib.h>
11862
11863int
11864main ()
11865{
11866 int major, minor, micro;
11867 char *tmp_version;
11868
11869 system ("touch conf.gtktest");
11870
11871 /* HP/UX 9 (%@#!) writes to sscanf strings */
11872 tmp_version = g_strdup("$min_gtk_version");
11873 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11874 printf("%s, bad version string\n", "$min_gtk_version");
11875 exit(1);
11876 }
11877
11878 if ((gtk_major_version != $gtk_config_major_version) ||
11879 (gtk_minor_version != $gtk_config_minor_version) ||
11880 (gtk_micro_version != $gtk_config_micro_version))
11881 {
11882 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11883 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11884 gtk_major_version, gtk_minor_version, gtk_micro_version);
11885 printf ("*** was found! If pkg-config was correct, then it is best\n");
11886 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11887 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11888 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11889 printf("*** required on your system.\n");
11890 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11891 printf("*** to point to the correct configuration files\n");
11892 }
11893 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11894 (gtk_minor_version != GTK_MINOR_VERSION) ||
11895 (gtk_micro_version != GTK_MICRO_VERSION))
11896 {
11897 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11898 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11899 printf("*** library (version %d.%d.%d)\n",
11900 gtk_major_version, gtk_minor_version, gtk_micro_version);
11901 }
11902 else
11903 {
11904 if ((gtk_major_version > major) ||
11905 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11906 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11907 {
11908 return 0;
11909 }
11910 else
11911 {
11912 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11913 gtk_major_version, gtk_minor_version, gtk_micro_version);
11914 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11915 major, minor, micro);
11916 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11917 printf("***\n");
11918 printf("*** If you have already installed a sufficiently new version, this error\n");
11919 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11920 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11921 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11922 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11923 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11924 printf("*** so that the correct libraries are found at run-time))\n");
11925 }
11926 }
11927 return 1;
11928}
11929
11930EOF
11931if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11932then
11933 :
11934else
11935 echo "configure: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
11937 rm -fr conftest*
11938 no_gtk=yes
11939fi
11940rm -fr conftest*
11941fi
11942
11943 CFLAGS="$ac_save_CFLAGS"
11944 LIBS="$ac_save_LIBS"
11945 fi
11946 fi
11947 if test "x$no_gtk" = x ; then
11948 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11949 wx_cv_lib_gtk=2.0
11950 else
11951 echo "$ac_t""no" 1>&6
11952 if test "$PKG_CONFIG" = "no" ; then
11953 echo "*** A new enough version of pkg-config was not found."
11954 echo "*** See http://pkgconfig.sourceforge.net"
11955 else
11956 if test -f conf.gtktest ; then
11957 :
11958 else
11959 echo "*** Could not run GTK+ test program, checking why..."
11960 CFLAGS="$CFLAGS $GTK_CFLAGS"
11961 LIBS="$LIBS $GTK_LIBS"
11962 cat > conftest.$ac_ext <<EOF
11963#line 11964 "configure"
11964#include "confdefs.h"
11965
11966#include <gtk/gtk.h>
11967#include <stdio.h>
11968
11969int main() {
11970 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11971; return 0; }
11972EOF
11973if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11974 rm -rf conftest*
11975 echo "*** The test program compiled, but did not run. This usually means"
11976 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11977 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11978 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11979 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11980 echo "*** is required on your system"
11981 echo "***"
11982 echo "*** If you have an old version installed, it is best to remove it, although"
11983 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11984else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
11988 echo "*** The test program failed to compile or link. See the file config.log for the"
11989 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11990 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11991 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
11992fi
11993rm -f conftest*
11994 CFLAGS="$ac_save_CFLAGS"
11995 LIBS="$ac_save_LIBS"
11996 fi
11997 fi
11998 GTK_CFLAGS=""
11999 GTK_LIBS=""
12000 :
12001 fi
12002
12003
12004 rm -f conf.gtktest
12005
12006 fi
12007
12008 if test -z "$wx_cv_lib_gtk"; then
12009 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12010if test "${with_gtk_prefix+set}" = set; then
12011 withval="$with_gtk_prefix"
12012 gtk_config_prefix="$withval"
12013else
12014 gtk_config_prefix=""
12015fi
12016
12017# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12018if test "${with_gtk_exec_prefix+set}" = set; then
12019 withval="$with_gtk_exec_prefix"
12020 gtk_config_exec_prefix="$withval"
12021else
12022 gtk_config_exec_prefix=""
12023fi
12024
12025# Check whether --enable-gtktest or --disable-gtktest was given.
12026if test "${enable_gtktest+set}" = set; then
12027 enableval="$enable_gtktest"
12028 :
12029else
12030 enable_gtktest=yes
12031fi
12032
12033
12034 for module in . $GTK_MODULES
12035 do
12036 case "$module" in
12037 gthread)
12038 gtk_config_args="$gtk_config_args gthread"
12039 ;;
12040 esac
12041 done
12042
12043 if test x$gtk_config_exec_prefix != x ; then
12044 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12045 if test x${GTK_CONFIG+set} != xset ; then
12046 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12047 fi
12048 fi
12049 if test x$gtk_config_prefix != x ; then
12050 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12051 if test x${GTK_CONFIG+set} != xset ; then
12052 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12053 fi
12054 fi
12055
12056 # Extract the first word of "gtk-config", so it can be a program name with args.
12057set dummy gtk-config; ac_word=$2
12058echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12059echo "configure:12060: checking for $ac_word" >&5
12060if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
12062else
12063 case "$GTK_CONFIG" in
12064 /*)
12065 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12066 ;;
12067 ?:/*)
12068 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12069 ;;
12070 *)
12071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12072 ac_dummy="$PATH"
12073 for ac_dir in $ac_dummy; do
12074 test -z "$ac_dir" && ac_dir=.
12075 if test -f $ac_dir/$ac_word; then
12076 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12077 break
12078 fi
12079 done
12080 IFS="$ac_save_ifs"
12081 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12082 ;;
12083esac
12084fi
12085GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12086if test -n "$GTK_CONFIG"; then
12087 echo "$ac_t""$GTK_CONFIG" 1>&6
12088else
12089 echo "$ac_t""no" 1>&6
12090fi
12091
12092 min_gtk_version=1.2.7
12093 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12094echo "configure:12095: checking for GTK - version >= $min_gtk_version" >&5
12095 no_gtk=""
12096 if test "$GTK_CONFIG" = "no" ; then
12097 no_gtk=yes
12098 else
12099 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12100 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12101 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12103 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12105 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12106 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12107 if test "x$enable_gtktest" = "xyes" ; then
12108 ac_save_CFLAGS="$CFLAGS"
12109 ac_save_LIBS="$LIBS"
12110 CFLAGS="$CFLAGS $GTK_CFLAGS"
12111 LIBS="$GTK_LIBS $LIBS"
12112 rm -f conf.gtktest
12113 if test "$cross_compiling" = yes; then
12114 echo $ac_n "cross compiling; assumed OK... $ac_c"
12115else
12116 cat > conftest.$ac_ext <<EOF
12117#line 12118 "configure"
12118#include "confdefs.h"
12119
12120#include <gtk/gtk.h>
12121#include <stdio.h>
12122#include <stdlib.h>
12123
12124int
12125main ()
12126{
12127 int major, minor, micro;
12128 char *tmp_version;
12129
12130 system ("touch conf.gtktest");
12131
12132 /* HP/UX 9 (%@#!) writes to sscanf strings */
12133 tmp_version = g_strdup("$min_gtk_version");
12134 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12135 printf("%s, bad version string\n", "$min_gtk_version");
12136 exit(1);
12137 }
12138
12139 if ((gtk_major_version != $gtk_config_major_version) ||
12140 (gtk_minor_version != $gtk_config_minor_version) ||
12141 (gtk_micro_version != $gtk_config_micro_version))
12142 {
12143 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12144 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12145 gtk_major_version, gtk_minor_version, gtk_micro_version);
12146 printf ("*** was found! If gtk-config was correct, then it is best\n");
12147 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12148 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12149 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12150 printf("*** required on your system.\n");
12151 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12152 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12153 printf("*** before re-running configure\n");
12154 }
12155#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12156 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12157 (gtk_minor_version != GTK_MINOR_VERSION) ||
12158 (gtk_micro_version != GTK_MICRO_VERSION))
12159 {
12160 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12161 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12162 printf("*** library (version %d.%d.%d)\n",
12163 gtk_major_version, gtk_minor_version, gtk_micro_version);
12164 }
12165#endif /* defined (GTK_MAJOR_VERSION) ... */
12166 else
12167 {
12168 if ((gtk_major_version > major) ||
12169 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12170 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12171 {
12172 return 0;
12173 }
12174 else
12175 {
12176 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12177 gtk_major_version, gtk_minor_version, gtk_micro_version);
12178 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12179 major, minor, micro);
12180 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12181 printf("***\n");
12182 printf("*** If you have already installed a sufficiently new version, this error\n");
12183 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12184 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12185 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12186 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12187 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12188 printf("*** so that the correct libraries are found at run-time))\n");
12189 }
12190 }
12191 return 1;
12192}
12193
12194EOF
12195if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12196then
12197 :
12198else
12199 echo "configure: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 rm -fr conftest*
12202 no_gtk=yes
12203fi
12204rm -fr conftest*
12205fi
12206
12207 CFLAGS="$ac_save_CFLAGS"
12208 LIBS="$ac_save_LIBS"
12209 fi
12210 fi
12211 if test "x$no_gtk" = x ; then
12212 echo "$ac_t""yes" 1>&6
12213 wx_cv_lib_gtk=1.2.7
12214 else
12215 echo "$ac_t""no" 1>&6
12216 if test "$GTK_CONFIG" = "no" ; then
12217 echo "*** The gtk-config script installed by GTK could not be found"
12218 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12219 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12220 echo "*** full path to gtk-config."
12221 else
12222 if test -f conf.gtktest ; then
12223 :
12224 else
12225 echo "*** Could not run GTK test program, checking why..."
12226 CFLAGS="$CFLAGS $GTK_CFLAGS"
12227 LIBS="$LIBS $GTK_LIBS"
12228 cat > conftest.$ac_ext <<EOF
12229#line 12230 "configure"
12230#include "confdefs.h"
12231
12232#include <gtk/gtk.h>
12233#include <stdio.h>
12234
12235int main() {
12236 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12237; return 0; }
12238EOF
12239if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12240 rm -rf conftest*
12241 echo "*** The test program compiled, but did not run. This usually means"
12242 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12243 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12244 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12245 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12246 echo "*** is required on your system"
12247 echo "***"
12248 echo "*** If you have an old version installed, it is best to remove it, although"
12249 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12250 echo "***"
12251 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12252 echo "*** came with the system with the command"
12253 echo "***"
12254 echo "*** rpm --erase --nodeps gtk gtk-devel"
12255else
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 rm -rf conftest*
12259 echo "*** The test program failed to compile or link. See the file config.log for the"
12260 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12261 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12262 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12263fi
12264rm -f conftest*
12265 CFLAGS="$ac_save_CFLAGS"
12266 LIBS="$ac_save_LIBS"
12267 fi
12268 fi
12269 GTK_CFLAGS=""
12270 GTK_LIBS=""
12271 :
12272 fi
12273
12274
12275 rm -f conf.gtktest
12276
12277 fi
12278
12279 if test -z "$wx_cv_lib_gtk"; then
12280 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12281if test "${with_gtk_prefix+set}" = set; then
12282 withval="$with_gtk_prefix"
12283 gtk_config_prefix="$withval"
12284else
12285 gtk_config_prefix=""
12286fi
12287
12288# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12289if test "${with_gtk_exec_prefix+set}" = set; then
12290 withval="$with_gtk_exec_prefix"
12291 gtk_config_exec_prefix="$withval"
12292else
12293 gtk_config_exec_prefix=""
12294fi
12295
12296# Check whether --enable-gtktest or --disable-gtktest was given.
12297if test "${enable_gtktest+set}" = set; then
12298 enableval="$enable_gtktest"
12299 :
12300else
12301 enable_gtktest=yes
12302fi
12303
12304
12305 for module in . $GTK_MODULES
12306 do
12307 case "$module" in
12308 gthread)
12309 gtk_config_args="$gtk_config_args gthread"
12310 ;;
12311 esac
12312 done
12313
12314 if test x$gtk_config_exec_prefix != x ; then
12315 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12316 if test x${GTK_CONFIG+set} != xset ; then
12317 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12318 fi
12319 fi
12320 if test x$gtk_config_prefix != x ; then
12321 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12322 if test x${GTK_CONFIG+set} != xset ; then
12323 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12324 fi
12325 fi
12326
12327 # Extract the first word of "gtk-config", so it can be a program name with args.
12328set dummy gtk-config; ac_word=$2
12329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12330echo "configure:12331: checking for $ac_word" >&5
12331if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333else
12334 case "$GTK_CONFIG" in
12335 /*)
12336 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12337 ;;
12338 ?:/*)
12339 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12340 ;;
12341 *)
12342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12343 ac_dummy="$PATH"
12344 for ac_dir in $ac_dummy; do
12345 test -z "$ac_dir" && ac_dir=.
12346 if test -f $ac_dir/$ac_word; then
12347 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12348 break
12349 fi
12350 done
12351 IFS="$ac_save_ifs"
12352 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12353 ;;
12354esac
12355fi
12356GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12357if test -n "$GTK_CONFIG"; then
12358 echo "$ac_t""$GTK_CONFIG" 1>&6
12359else
12360 echo "$ac_t""no" 1>&6
12361fi
12362
12363 min_gtk_version=1.2.3
12364 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12365echo "configure:12366: checking for GTK - version >= $min_gtk_version" >&5
12366 no_gtk=""
12367 if test "$GTK_CONFIG" = "no" ; then
12368 no_gtk=yes
12369 else
12370 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12371 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12372 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12374 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12376 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12378 if test "x$enable_gtktest" = "xyes" ; then
12379 ac_save_CFLAGS="$CFLAGS"
12380 ac_save_LIBS="$LIBS"
12381 CFLAGS="$CFLAGS $GTK_CFLAGS"
12382 LIBS="$GTK_LIBS $LIBS"
12383 rm -f conf.gtktest
12384 if test "$cross_compiling" = yes; then
12385 echo $ac_n "cross compiling; assumed OK... $ac_c"
12386else
12387 cat > conftest.$ac_ext <<EOF
12388#line 12389 "configure"
12389#include "confdefs.h"
12390
12391#include <gtk/gtk.h>
12392#include <stdio.h>
12393#include <stdlib.h>
12394
12395int
12396main ()
12397{
12398 int major, minor, micro;
12399 char *tmp_version;
12400
12401 system ("touch conf.gtktest");
12402
12403 /* HP/UX 9 (%@#!) writes to sscanf strings */
12404 tmp_version = g_strdup("$min_gtk_version");
12405 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12406 printf("%s, bad version string\n", "$min_gtk_version");
12407 exit(1);
12408 }
12409
12410 if ((gtk_major_version != $gtk_config_major_version) ||
12411 (gtk_minor_version != $gtk_config_minor_version) ||
12412 (gtk_micro_version != $gtk_config_micro_version))
12413 {
12414 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12415 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12416 gtk_major_version, gtk_minor_version, gtk_micro_version);
12417 printf ("*** was found! If gtk-config was correct, then it is best\n");
12418 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12419 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12420 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12421 printf("*** required on your system.\n");
12422 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12423 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12424 printf("*** before re-running configure\n");
12425 }
12426#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12427 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12428 (gtk_minor_version != GTK_MINOR_VERSION) ||
12429 (gtk_micro_version != GTK_MICRO_VERSION))
12430 {
12431 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12432 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12433 printf("*** library (version %d.%d.%d)\n",
12434 gtk_major_version, gtk_minor_version, gtk_micro_version);
12435 }
12436#endif /* defined (GTK_MAJOR_VERSION) ... */
12437 else
12438 {
12439 if ((gtk_major_version > major) ||
12440 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12441 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12442 {
12443 return 0;
12444 }
12445 else
12446 {
12447 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12448 gtk_major_version, gtk_minor_version, gtk_micro_version);
12449 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12450 major, minor, micro);
12451 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12452 printf("***\n");
12453 printf("*** If you have already installed a sufficiently new version, this error\n");
12454 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12455 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12456 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12457 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12458 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12459 printf("*** so that the correct libraries are found at run-time))\n");
12460 }
12461 }
12462 return 1;
12463}
12464
12465EOF
12466if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12467then
12468 :
12469else
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 rm -fr conftest*
12473 no_gtk=yes
12474fi
12475rm -fr conftest*
12476fi
12477
12478 CFLAGS="$ac_save_CFLAGS"
12479 LIBS="$ac_save_LIBS"
12480 fi
12481 fi
12482 if test "x$no_gtk" = x ; then
12483 echo "$ac_t""yes" 1>&6
12484 wx_cv_lib_gtk=1.2.3
12485 else
12486 echo "$ac_t""no" 1>&6
12487 if test "$GTK_CONFIG" = "no" ; then
12488 echo "*** The gtk-config script installed by GTK could not be found"
12489 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12490 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12491 echo "*** full path to gtk-config."
12492 else
12493 if test -f conf.gtktest ; then
12494 :
12495 else
12496 echo "*** Could not run GTK test program, checking why..."
12497 CFLAGS="$CFLAGS $GTK_CFLAGS"
12498 LIBS="$LIBS $GTK_LIBS"
12499 cat > conftest.$ac_ext <<EOF
12500#line 12501 "configure"
12501#include "confdefs.h"
12502
12503#include <gtk/gtk.h>
12504#include <stdio.h>
12505
12506int main() {
12507 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12508; return 0; }
12509EOF
12510if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12511 rm -rf conftest*
12512 echo "*** The test program compiled, but did not run. This usually means"
12513 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12514 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12515 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12516 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12517 echo "*** is required on your system"
12518 echo "***"
12519 echo "*** If you have an old version installed, it is best to remove it, although"
12520 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12521 echo "***"
12522 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12523 echo "*** came with the system with the command"
12524 echo "***"
12525 echo "*** rpm --erase --nodeps gtk gtk-devel"
12526else
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 rm -rf conftest*
12530 echo "*** The test program failed to compile or link. See the file config.log for the"
12531 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12532 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12533 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12534fi
12535rm -f conftest*
12536 CFLAGS="$ac_save_CFLAGS"
12537 LIBS="$ac_save_LIBS"
12538 fi
12539 fi
12540 GTK_CFLAGS=""
12541 GTK_LIBS=""
12542 :
12543 fi
12544
12545
12546 rm -f conf.gtktest
12547
12548 fi
12549
12550 if test -z "$wx_cv_lib_gtk"; then
12551 wx_cv_lib_gtk=none
12552 else
12553 wx_cv_cflags_gtk=$GTK_CFLAGS
12554 wx_cv_libs_gtk=$GTK_LIBS
12555 fi
12556
12557
12558fi
12559
12560
12561 if test "$gtk_version_cached" = 1; then
12562 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12563 fi
12564
12565 case "$wx_cv_lib_gtk" in
12566 2.0) WXGTK20=1
12567 ;;
12568 1.2.7) WXGTK127=1
12569 WXGTK12=1
12570 ;;
12571 1.2.3) WXGTK12=1
12572 ;;
12573 *) { echo "configure: error:
12574Please check that gtk-config is in path, the directory
12575where GTK+ libraries are installed (returned by
12576'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12577equivalent variable and GTK+ is version 1.2.3 or above.
12578 " 1>&2; exit 1; }
12579 ;;
12580 esac
12581
12582 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12583 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12584
12585 AFMINSTALL=afminstall
12586 TOOLKIT=GTK
12587 GUIDIST=GTK_DIST
12588
12589 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12590echo "configure:12591: checking for gdk_im_open in -lgdk" >&5
12591ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12594else
12595 ac_save_LIBS="$LIBS"
12596LIBS="-lgdk $LIBS"
12597cat > conftest.$ac_ext <<EOF
12598#line 12599 "configure"
12599#include "confdefs.h"
12600/* Override any gcc2 internal prototype to avoid an error. */
12601/* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12603char gdk_im_open();
12604
12605int main() {
12606gdk_im_open()
12607; return 0; }
12608EOF
12609if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610 rm -rf conftest*
12611 eval "ac_cv_lib_$ac_lib_var=yes"
12612else
12613 echo "configure: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12615 rm -rf conftest*
12616 eval "ac_cv_lib_$ac_lib_var=no"
12617fi
12618rm -f conftest*
12619LIBS="$ac_save_LIBS"
12620
12621fi
12622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12623 echo "$ac_t""yes" 1>&6
12624 cat >> confdefs.h <<\EOF
12625#define HAVE_XIM 1
12626EOF
12627
12628else
12629 echo "$ac_t""no" 1>&6
12630fi
12631
12632 fi
12633
12634 if test "$wxUSE_MGL" = 1; then
12635 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12636echo "configure:12637: checking for SciTech MGL library" >&5
12637 if test "x$MGL_ROOT" = x ; then
12638 echo "$ac_t""not found" 1>&6
12639 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12640 else
12641 echo "$ac_t""$MGL_ROOT" 1>&6
12642 fi
12643
12644 case "${host}" in
12645 *-*-linux* )
12646 mgl_os=linux/gcc/glibc
12647 ;;
12648 *-pc-msdosdjgpp )
12649 mgl_os=dos32/dj2
12650 ;;
12651 *)
12652 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12653 esac
12654
12655 mgl_lib_type=""
12656
12657 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12658 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12659 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12660 mgl_lib_type=debug
12661 fi
12662 fi
12663 if test "x$mgl_lib_type" = x ; then
12664 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12665 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12666 mgl_lib_type=release
12667 else
12668 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12669 fi
12670 fi
12671
12672 wxUSE_UNIVERSAL="yes"
12673
12674 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12675 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12676
12677 AFMINSTALL=afminstall
12678 TOOLKIT=MGL
12679 GUIDIST=MGL_DIST
12680 fi
12681
12682 if test "$wxUSE_MICROWIN" = 1; then
12683 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12684echo "configure:12685: checking for MicroWindows" >&5
12685 if test "x$MICROWINDOWS" = x ; then
12686 echo "$ac_t""not found" 1>&6
12687 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12688 else
12689 echo "$ac_t""$MICROWINDOWS" 1>&6
12690 fi
12691
12692 if test -f $MICROWINDOWS/lib/libmwin.a; then
12693 echo "$ac_t""MicroWindows' libraries found." 1>&6
12694 else
12695 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12696 fi
12697
12698 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12699 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12700
12701 wxUSE_UNIVERSAL="yes"
12702
12703 AFMINSTALL=afminstall
12704 TOOLKIT=MICROWIN
12705 GUIDIST=MICROWIN_DIST
12706
12707 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12708 fi
12709
12710 if test "$wxUSE_X11" = 1; then
12711 # If we find X, set shell vars x_includes and x_libraries to the
12712# paths, otherwise set no_x=yes.
12713# Uses ac_ vars as temps to allow command line to override cache and checks.
12714# --without-x overrides everything else, but does not touch the cache.
12715echo $ac_n "checking for X""... $ac_c" 1>&6
12716echo "configure:12717: checking for X" >&5
12717
12718# Check whether --with-x or --without-x was given.
12719if test "${with_x+set}" = set; then
12720 withval="$with_x"
12721 :
12722fi
12723
12724# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12725if test "x$with_x" = xno; then
12726 # The user explicitly disabled X.
12727 have_x=disabled
12728else
12729 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12730 # Both variables are already set.
12731 have_x=yes
12732 else
12733if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12735else
12736 # One or both of the vars are not set, and there is no cached value.
12737ac_x_includes=NO ac_x_libraries=NO
12738rm -fr conftestdir
12739if mkdir conftestdir; then
12740 cd conftestdir
12741 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12742 cat > Imakefile <<'EOF'
12743acfindx:
12744 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12745EOF
12746 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12748 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12749 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12750 for ac_extension in a so sl; do
12751 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12752 test -f $ac_im_libdir/libX11.$ac_extension; then
12753 ac_im_usrlibdir=$ac_im_libdir; break
12754 fi
12755 done
12756 # Screen out bogus values from the imake configuration. They are
12757 # bogus both because they are the default anyway, and because
12758 # using them would break gcc on systems where it needs fixed includes.
12759 case "$ac_im_incroot" in
12760 /usr/include) ;;
12761 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12762 esac
12763 case "$ac_im_usrlibdir" in
12764 /usr/lib | /lib) ;;
12765 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12766 esac
12767 fi
12768 cd ..
12769 rm -fr conftestdir
12770fi
12771
12772if test "$ac_x_includes" = NO; then
12773 # Guess where to find include files, by looking for this one X11 .h file.
12774 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12775
12776 # First, try using that file with no special directory specified.
12777cat > conftest.$ac_ext <<EOF
12778#line 12779 "configure"
12779#include "confdefs.h"
12780#include <$x_direct_test_include>
12781EOF
12782ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12783{ (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12784ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12785if test -z "$ac_err"; then
12786 rm -rf conftest*
12787 # We can compile using X headers with no special include directory.
12788ac_x_includes=
12789else
12790 echo "$ac_err" >&5
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12793 rm -rf conftest*
12794 # Look for the header file in a standard set of common directories.
12795# Check X11 before X11Rn because it is often a symlink to the current release.
12796 for ac_dir in \
12797 /usr/X11/include \
12798 /usr/X11R6/include \
12799 /usr/X11R5/include \
12800 /usr/X11R4/include \
12801 \
12802 /usr/include/X11 \
12803 /usr/include/X11R6 \
12804 /usr/include/X11R5 \
12805 /usr/include/X11R4 \
12806 \
12807 /usr/local/X11/include \
12808 /usr/local/X11R6/include \
12809 /usr/local/X11R5/include \
12810 /usr/local/X11R4/include \
12811 \
12812 /usr/local/include/X11 \
12813 /usr/local/include/X11R6 \
12814 /usr/local/include/X11R5 \
12815 /usr/local/include/X11R4 \
12816 \
12817 /usr/X386/include \
12818 /usr/x386/include \
12819 /usr/XFree86/include/X11 \
12820 \
12821 /usr/include \
12822 /usr/local/include \
12823 /usr/unsupported/include \
12824 /usr/athena/include \
12825 /usr/local/x11r5/include \
12826 /usr/lpp/Xamples/include \
12827 \
12828 /usr/openwin/include \
12829 /usr/openwin/share/include \
12830 ; \
12831 do
12832 if test -r "$ac_dir/$x_direct_test_include"; then
12833 ac_x_includes=$ac_dir
12834 break
12835 fi
12836 done
12837fi
12838rm -f conftest*
12839fi # $ac_x_includes = NO
12840
12841if test "$ac_x_libraries" = NO; then
12842 # Check for the libraries.
12843
12844 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12845 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12846
12847 # See if we find them without any special options.
12848 # Don't add to $LIBS permanently.
12849 ac_save_LIBS="$LIBS"
12850 LIBS="-l$x_direct_test_library $LIBS"
12851cat > conftest.$ac_ext <<EOF
12852#line 12853 "configure"
12853#include "confdefs.h"
12854
12855int main() {
12856${x_direct_test_function}()
12857; return 0; }
12858EOF
12859if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12860 rm -rf conftest*
12861 LIBS="$ac_save_LIBS"
12862# We can link X programs with no special library path.
12863ac_x_libraries=
12864else
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 rm -rf conftest*
12868 LIBS="$ac_save_LIBS"
12869# First see if replacing the include by lib works.
12870# Check X11 before X11Rn because it is often a symlink to the current release.
12871for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12872 /usr/X11/lib \
12873 /usr/X11R6/lib \
12874 /usr/X11R5/lib \
12875 /usr/X11R4/lib \
12876 \
12877 /usr/lib/X11 \
12878 /usr/lib/X11R6 \
12879 /usr/lib/X11R5 \
12880 /usr/lib/X11R4 \
12881 \
12882 /usr/local/X11/lib \
12883 /usr/local/X11R6/lib \
12884 /usr/local/X11R5/lib \
12885 /usr/local/X11R4/lib \
12886 \
12887 /usr/local/lib/X11 \
12888 /usr/local/lib/X11R6 \
12889 /usr/local/lib/X11R5 \
12890 /usr/local/lib/X11R4 \
12891 \
12892 /usr/X386/lib \
12893 /usr/x386/lib \
12894 /usr/XFree86/lib/X11 \
12895 \
12896 /usr/lib \
12897 /usr/local/lib \
12898 /usr/unsupported/lib \
12899 /usr/athena/lib \
12900 /usr/local/x11r5/lib \
12901 /usr/lpp/Xamples/lib \
12902 /lib/usr/lib/X11 \
12903 \
12904 /usr/openwin/lib \
12905 /usr/openwin/share/lib \
12906 ; \
12907do
12908 for ac_extension in a so sl; do
12909 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12910 ac_x_libraries=$ac_dir
12911 break 2
12912 fi
12913 done
12914done
12915fi
12916rm -f conftest*
12917fi # $ac_x_libraries = NO
12918
12919if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12920 # Didn't find X anywhere. Cache the known absence of X.
12921 ac_cv_have_x="have_x=no"
12922else
12923 # Record where we found X for the cache.
12924 ac_cv_have_x="have_x=yes \
12925 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12926fi
12927fi
12928 fi
12929 eval "$ac_cv_have_x"
12930fi # $with_x != no
12931
12932if test "$have_x" != yes; then
12933 echo "$ac_t""$have_x" 1>&6
12934 no_x=yes
12935else
12936 # If each of the values was on the command line, it overrides each guess.
12937 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12938 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12939 # Update the cache value to reflect the command line values.
12940 ac_cv_have_x="have_x=yes \
12941 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12942 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12943fi
12944
12945if test "$no_x" = yes; then
12946 # Not all programs may use this symbol, but it does not hurt to define it.
12947 cat >> confdefs.h <<\EOF
12948#define X_DISPLAY_MISSING 1
12949EOF
12950
12951 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12952else
12953 if test -n "$x_includes"; then
12954 X_CFLAGS="$X_CFLAGS -I$x_includes"
12955 fi
12956
12957 # It would also be nice to do this for all -L options, not just this one.
12958 if test -n "$x_libraries"; then
12959 X_LIBS="$X_LIBS -L$x_libraries"
12960 # For Solaris; some versions of Sun CC require a space after -R and
12961 # others require no space. Words are not sufficient . . . .
12962 case "`(uname -sr) 2>/dev/null`" in
12963 "SunOS 5"*)
12964 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12965echo "configure:12966: checking whether -R must be followed by a space" >&5
12966 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12967 cat > conftest.$ac_ext <<EOF
12968#line 12969 "configure"
12969#include "confdefs.h"
12970
12971int main() {
12972
12973; return 0; }
12974EOF
12975if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12976 rm -rf conftest*
12977 ac_R_nospace=yes
12978else
12979 echo "configure: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 rm -rf conftest*
12982 ac_R_nospace=no
12983fi
12984rm -f conftest*
12985 if test $ac_R_nospace = yes; then
12986 echo "$ac_t""no" 1>&6
12987 X_LIBS="$X_LIBS -R$x_libraries"
12988 else
12989 LIBS="$ac_xsave_LIBS -R $x_libraries"
12990 cat > conftest.$ac_ext <<EOF
12991#line 12992 "configure"
12992#include "confdefs.h"
12993
12994int main() {
12995
12996; return 0; }
12997EOF
12998if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12999 rm -rf conftest*
13000 ac_R_space=yes
13001else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 ac_R_space=no
13006fi
13007rm -f conftest*
13008 if test $ac_R_space = yes; then
13009 echo "$ac_t""yes" 1>&6
13010 X_LIBS="$X_LIBS -R $x_libraries"
13011 else
13012 echo "$ac_t""neither works" 1>&6
13013 fi
13014 fi
13015 LIBS="$ac_xsave_LIBS"
13016 esac
13017 fi
13018
13019 # Check for system-dependent libraries X programs must link with.
13020 # Do this before checking for the system-independent R6 libraries
13021 # (-lICE), since we may need -lsocket or whatever for X linking.
13022
13023 if test "$ISC" = yes; then
13024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13025 else
13026 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13027 # libraries were built with DECnet support. And karl@cs.umb.edu says
13028 # the Alpha needs dnet_stub (dnet does not exist).
13029 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13030echo "configure:13031: checking for dnet_ntoa in -ldnet" >&5
13031ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13032if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13033 echo $ac_n "(cached) $ac_c" 1>&6
13034else
13035 ac_save_LIBS="$LIBS"
13036LIBS="-ldnet $LIBS"
13037cat > conftest.$ac_ext <<EOF
13038#line 13039 "configure"
13039#include "confdefs.h"
13040/* Override any gcc2 internal prototype to avoid an error. */
13041/* We use char because int might match the return type of a gcc2
13042 builtin and then its argument prototype would still apply. */
13043char dnet_ntoa();
13044
13045int main() {
13046dnet_ntoa()
13047; return 0; }
13048EOF
13049if { (eval echo configure:13050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13050 rm -rf conftest*
13051 eval "ac_cv_lib_$ac_lib_var=yes"
13052else
13053 echo "configure: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 rm -rf conftest*
13056 eval "ac_cv_lib_$ac_lib_var=no"
13057fi
13058rm -f conftest*
13059LIBS="$ac_save_LIBS"
13060
13061fi
13062if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13063 echo "$ac_t""yes" 1>&6
13064 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13065else
13066 echo "$ac_t""no" 1>&6
13067fi
13068
13069 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13070 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13071echo "configure:13072: checking for dnet_ntoa in -ldnet_stub" >&5
13072ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13073if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13074 echo $ac_n "(cached) $ac_c" 1>&6
13075else
13076 ac_save_LIBS="$LIBS"
13077LIBS="-ldnet_stub $LIBS"
13078cat > conftest.$ac_ext <<EOF
13079#line 13080 "configure"
13080#include "confdefs.h"
13081/* Override any gcc2 internal prototype to avoid an error. */
13082/* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13084char dnet_ntoa();
13085
13086int main() {
13087dnet_ntoa()
13088; return 0; }
13089EOF
13090if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13091 rm -rf conftest*
13092 eval "ac_cv_lib_$ac_lib_var=yes"
13093else
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13096 rm -rf conftest*
13097 eval "ac_cv_lib_$ac_lib_var=no"
13098fi
13099rm -f conftest*
13100LIBS="$ac_save_LIBS"
13101
13102fi
13103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13104 echo "$ac_t""yes" 1>&6
13105 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13106else
13107 echo "$ac_t""no" 1>&6
13108fi
13109
13110 fi
13111
13112 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13113 # to get the SysV transport functions.
13114 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13115 # needs -lnsl.
13116 # The nsl library prevents programs from opening the X display
13117 # on Irix 5.2, according to dickey@clark.net.
13118 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13119echo "configure:13120: checking for gethostbyname" >&5
13120if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13121 echo $ac_n "(cached) $ac_c" 1>&6
13122else
13123 cat > conftest.$ac_ext <<EOF
13124#line 13125 "configure"
13125#include "confdefs.h"
13126/* System header to define __stub macros and hopefully few prototypes,
13127 which can conflict with char gethostbyname(); below. */
13128#include <assert.h>
13129/* Override any gcc2 internal prototype to avoid an error. */
13130/* We use char because int might match the return type of a gcc2
13131 builtin and then its argument prototype would still apply. */
13132char gethostbyname();
13133
13134int main() {
13135
13136/* The GNU C library defines this for functions which it implements
13137 to always fail with ENOSYS. Some functions are actually named
13138 something starting with __ and the normal name is an alias. */
13139#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13140choke me
13141#else
13142gethostbyname();
13143#endif
13144
13145; return 0; }
13146EOF
13147if { (eval echo configure:13148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13148 rm -rf conftest*
13149 eval "ac_cv_func_gethostbyname=yes"
13150else
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 rm -rf conftest*
13154 eval "ac_cv_func_gethostbyname=no"
13155fi
13156rm -f conftest*
13157fi
13158
13159if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13160 echo "$ac_t""yes" 1>&6
13161 :
13162else
13163 echo "$ac_t""no" 1>&6
13164fi
13165
13166 if test $ac_cv_func_gethostbyname = no; then
13167 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13168echo "configure:13169: checking for gethostbyname in -lnsl" >&5
13169ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13171 echo $ac_n "(cached) $ac_c" 1>&6
13172else
13173 ac_save_LIBS="$LIBS"
13174LIBS="-lnsl $LIBS"
13175cat > conftest.$ac_ext <<EOF
13176#line 13177 "configure"
13177#include "confdefs.h"
13178/* Override any gcc2 internal prototype to avoid an error. */
13179/* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13181char gethostbyname();
13182
13183int main() {
13184gethostbyname()
13185; return 0; }
13186EOF
13187if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13188 rm -rf conftest*
13189 eval "ac_cv_lib_$ac_lib_var=yes"
13190else
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 rm -rf conftest*
13194 eval "ac_cv_lib_$ac_lib_var=no"
13195fi
13196rm -f conftest*
13197LIBS="$ac_save_LIBS"
13198
13199fi
13200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13201 echo "$ac_t""yes" 1>&6
13202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13203else
13204 echo "$ac_t""no" 1>&6
13205fi
13206
13207 fi
13208
13209 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13210 # socket/setsockopt and other routines are undefined under SCO ODT
13211 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13212 # on later versions), says simon@lia.di.epfl.ch: it contains
13213 # gethostby* variants that don't use the nameserver (or something).
13214 # -lsocket must be given before -lnsl if both are needed.
13215 # We assume that if connect needs -lnsl, so does gethostbyname.
13216 echo $ac_n "checking for connect""... $ac_c" 1>&6
13217echo "configure:13218: checking for connect" >&5
13218if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13219 echo $ac_n "(cached) $ac_c" 1>&6
13220else
13221 cat > conftest.$ac_ext <<EOF
13222#line 13223 "configure"
13223#include "confdefs.h"
13224/* System header to define __stub macros and hopefully few prototypes,
13225 which can conflict with char connect(); below. */
13226#include <assert.h>
13227/* Override any gcc2 internal prototype to avoid an error. */
13228/* We use char because int might match the return type of a gcc2
13229 builtin and then its argument prototype would still apply. */
13230char connect();
13231
13232int main() {
13233
13234/* The GNU C library defines this for functions which it implements
13235 to always fail with ENOSYS. Some functions are actually named
13236 something starting with __ and the normal name is an alias. */
13237#if defined (__stub_connect) || defined (__stub___connect)
13238choke me
13239#else
13240connect();
13241#endif
13242
13243; return 0; }
13244EOF
13245if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13246 rm -rf conftest*
13247 eval "ac_cv_func_connect=yes"
13248else
13249 echo "configure: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13251 rm -rf conftest*
13252 eval "ac_cv_func_connect=no"
13253fi
13254rm -f conftest*
13255fi
13256
13257if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13258 echo "$ac_t""yes" 1>&6
13259 :
13260else
13261 echo "$ac_t""no" 1>&6
13262fi
13263
13264 if test $ac_cv_func_connect = no; then
13265 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13266echo "configure:13267: checking for connect in -lsocket" >&5
13267ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
13270else
13271 ac_save_LIBS="$LIBS"
13272LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13273cat > conftest.$ac_ext <<EOF
13274#line 13275 "configure"
13275#include "confdefs.h"
13276/* Override any gcc2 internal prototype to avoid an error. */
13277/* We use char because int might match the return type of a gcc2
13278 builtin and then its argument prototype would still apply. */
13279char connect();
13280
13281int main() {
13282connect()
13283; return 0; }
13284EOF
13285if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13286 rm -rf conftest*
13287 eval "ac_cv_lib_$ac_lib_var=yes"
13288else
13289 echo "configure: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13291 rm -rf conftest*
13292 eval "ac_cv_lib_$ac_lib_var=no"
13293fi
13294rm -f conftest*
13295LIBS="$ac_save_LIBS"
13296
13297fi
13298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13301else
13302 echo "$ac_t""no" 1>&6
13303fi
13304
13305 fi
13306
13307 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13308 echo $ac_n "checking for remove""... $ac_c" 1>&6
13309echo "configure:13310: checking for remove" >&5
13310if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13311 echo $ac_n "(cached) $ac_c" 1>&6
13312else
13313 cat > conftest.$ac_ext <<EOF
13314#line 13315 "configure"
13315#include "confdefs.h"
13316/* System header to define __stub macros and hopefully few prototypes,
13317 which can conflict with char remove(); below. */
13318#include <assert.h>
13319/* Override any gcc2 internal prototype to avoid an error. */
13320/* We use char because int might match the return type of a gcc2
13321 builtin and then its argument prototype would still apply. */
13322char remove();
13323
13324int main() {
13325
13326/* The GNU C library defines this for functions which it implements
13327 to always fail with ENOSYS. Some functions are actually named
13328 something starting with __ and the normal name is an alias. */
13329#if defined (__stub_remove) || defined (__stub___remove)
13330choke me
13331#else
13332remove();
13333#endif
13334
13335; return 0; }
13336EOF
13337if { (eval echo configure:13338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13338 rm -rf conftest*
13339 eval "ac_cv_func_remove=yes"
13340else
13341 echo "configure: failed program was:" >&5
13342 cat conftest.$ac_ext >&5
13343 rm -rf conftest*
13344 eval "ac_cv_func_remove=no"
13345fi
13346rm -f conftest*
13347fi
13348
13349if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13350 echo "$ac_t""yes" 1>&6
13351 :
13352else
13353 echo "$ac_t""no" 1>&6
13354fi
13355
13356 if test $ac_cv_func_remove = no; then
13357 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13358echo "configure:13359: checking for remove in -lposix" >&5
13359ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13360if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362else
13363 ac_save_LIBS="$LIBS"
13364LIBS="-lposix $LIBS"
13365cat > conftest.$ac_ext <<EOF
13366#line 13367 "configure"
13367#include "confdefs.h"
13368/* Override any gcc2 internal prototype to avoid an error. */
13369/* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371char remove();
13372
13373int main() {
13374remove()
13375; return 0; }
13376EOF
13377if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13378 rm -rf conftest*
13379 eval "ac_cv_lib_$ac_lib_var=yes"
13380else
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 rm -rf conftest*
13384 eval "ac_cv_lib_$ac_lib_var=no"
13385fi
13386rm -f conftest*
13387LIBS="$ac_save_LIBS"
13388
13389fi
13390if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13391 echo "$ac_t""yes" 1>&6
13392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13393else
13394 echo "$ac_t""no" 1>&6
13395fi
13396
13397 fi
13398
13399 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13400 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13401echo "configure:13402: checking for shmat" >&5
13402if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13404else
13405 cat > conftest.$ac_ext <<EOF
13406#line 13407 "configure"
13407#include "confdefs.h"
13408/* System header to define __stub macros and hopefully few prototypes,
13409 which can conflict with char shmat(); below. */
13410#include <assert.h>
13411/* Override any gcc2 internal prototype to avoid an error. */
13412/* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414char shmat();
13415
13416int main() {
13417
13418/* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421#if defined (__stub_shmat) || defined (__stub___shmat)
13422choke me
13423#else
13424shmat();
13425#endif
13426
13427; return 0; }
13428EOF
13429if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430 rm -rf conftest*
13431 eval "ac_cv_func_shmat=yes"
13432else
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13435 rm -rf conftest*
13436 eval "ac_cv_func_shmat=no"
13437fi
13438rm -f conftest*
13439fi
13440
13441if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 :
13444else
13445 echo "$ac_t""no" 1>&6
13446fi
13447
13448 if test $ac_cv_func_shmat = no; then
13449 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13450echo "configure:13451: checking for shmat in -lipc" >&5
13451ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13453 echo $ac_n "(cached) $ac_c" 1>&6
13454else
13455 ac_save_LIBS="$LIBS"
13456LIBS="-lipc $LIBS"
13457cat > conftest.$ac_ext <<EOF
13458#line 13459 "configure"
13459#include "confdefs.h"
13460/* Override any gcc2 internal prototype to avoid an error. */
13461/* We use char because int might match the return type of a gcc2
13462 builtin and then its argument prototype would still apply. */
13463char shmat();
13464
13465int main() {
13466shmat()
13467; return 0; }
13468EOF
13469if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13470 rm -rf conftest*
13471 eval "ac_cv_lib_$ac_lib_var=yes"
13472else
13473 echo "configure: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 rm -rf conftest*
13476 eval "ac_cv_lib_$ac_lib_var=no"
13477fi
13478rm -f conftest*
13479LIBS="$ac_save_LIBS"
13480
13481fi
13482if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13483 echo "$ac_t""yes" 1>&6
13484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13485else
13486 echo "$ac_t""no" 1>&6
13487fi
13488
13489 fi
13490 fi
13491
13492 # Check for libraries that X11R6 Xt/Xaw programs need.
13493 ac_save_LDFLAGS="$LDFLAGS"
13494 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13495 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13496 # check for ICE first), but we must link in the order -lSM -lICE or
13497 # we get undefined symbols. So assume we have SM if we have ICE.
13498 # These have to be linked with before -lX11, unlike the other
13499 # libraries we check for below, so use a different variable.
13500 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13501 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13502echo "configure:13503: checking for IceConnectionNumber in -lICE" >&5
13503ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13504if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13505 echo $ac_n "(cached) $ac_c" 1>&6
13506else
13507 ac_save_LIBS="$LIBS"
13508LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13509cat > conftest.$ac_ext <<EOF
13510#line 13511 "configure"
13511#include "confdefs.h"
13512/* Override any gcc2 internal prototype to avoid an error. */
13513/* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13515char IceConnectionNumber();
13516
13517int main() {
13518IceConnectionNumber()
13519; return 0; }
13520EOF
13521if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13522 rm -rf conftest*
13523 eval "ac_cv_lib_$ac_lib_var=yes"
13524else
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13527 rm -rf conftest*
13528 eval "ac_cv_lib_$ac_lib_var=no"
13529fi
13530rm -f conftest*
13531LIBS="$ac_save_LIBS"
13532
13533fi
13534if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13535 echo "$ac_t""yes" 1>&6
13536 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13537else
13538 echo "$ac_t""no" 1>&6
13539fi
13540
13541 LDFLAGS="$ac_save_LDFLAGS"
13542
13543fi
13544
13545
13546 if test "$no_x" = "yes"; then
13547 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13548 fi
13549
13550 GUI_TK_LIBRARY="$X_LIBS"
13551 TOOLKIT_INCLUDE="$X_CFLAGS"
13552 AFMINSTALL=afminstall
13553 COMPILED_X_PROGRAM=0
13554
13555 if test "$wxUSE_NANOX" = "yes"; then
13556 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13557echo "configure:13558: checking for MicroWindows/NanoX distribution" >&5
13558 if test "x$MICROWIN" = x ; then
13559 echo "$ac_t""not found" 1>&6
13560 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13561 else
13562 echo "$ac_t""$MICROWIN" 1>&6
13563 cat >> confdefs.h <<\EOF
13564#define wxUSE_NANOX 1
13565EOF
13566
13567 fi
13568 fi
13569
13570 xpm_link=
13571 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13572echo "configure:13573: checking for Xpm library" >&5
13573
13574ac_find_libraries=
13575for ac_dir in $SEARCH_LIB;
13576 do
13577 for ac_extension in a so sl dylib; do
13578 if test -f "$ac_dir/libXpm.$ac_extension"; then
13579 ac_find_libraries=$ac_dir
13580 break 2
13581 fi
13582 done
13583 done
13584
13585 if test "$ac_find_libraries" != "" ; then
13586
13587 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13588 result=$?
13589 if test $result = 0; then
13590 ac_path_to_link=""
13591 else
13592 ac_path_to_link=" -L$ac_find_libraries"
13593 fi
13594
13595 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13596 xpm_link=" -lXpm"
13597 cat >> confdefs.h <<\EOF
13598#define wxHAVE_LIB_XPM 1
13599EOF
13600
13601 echo "$ac_t""found at $ac_find_libraries" 1>&6
13602 else
13603 cat > conftest.$ac_ext <<EOF
13604#line 13605 "configure"
13605#include "confdefs.h"
13606
13607 #include <X11/xpm.h>
13608
13609int main() {
13610
13611 int version;
13612 version = XpmLibraryVersion();
13613
13614; return 0; }
13615EOF
13616if { (eval echo configure:13617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13617 rm -rf conftest*
13618
13619 xpm_link=" -lXpm"
13620 cat >> confdefs.h <<\EOF
13621#define wxHAVE_LIB_XPM 1
13622EOF
13623
13624 echo "$ac_t""found in default search path" 1>&6
13625 COMPILED_X_PROGRAM=0
13626
13627else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631
13632 echo "$ac_t""no" 1>&6
13633 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13634
13635
13636fi
13637rm -f conftest*
13638 fi
13639
13640 wxUSE_UNIVERSAL="yes"
13641
13642 if test "$wxUSE_NANOX" = "yes"; then
13643 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13644 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"
13645 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13646 else
13647 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13648 fi
13649
13650 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13651 TOOLKIT=X11
13652 GUIDIST=X11_DIST
13653 fi
13654
13655 if test "$wxUSE_WINE" = 1; then
13656 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13657echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13658echo "configure:13659: checking for windows.h" >&5
13659if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13660 echo $ac_n "(cached) $ac_c" 1>&6
13661else
13662 cat > conftest.$ac_ext <<EOF
13663#line 13664 "configure"
13664#include "confdefs.h"
13665#include <windows.h>
13666EOF
13667ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13668{ (eval echo configure:13669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13669ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13670if test -z "$ac_err"; then
13671 rm -rf conftest*
13672 eval "ac_cv_header_$ac_safe=yes"
13673else
13674 echo "$ac_err" >&5
13675 echo "configure: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13677 rm -rf conftest*
13678 eval "ac_cv_header_$ac_safe=no"
13679fi
13680rm -f conftest*
13681fi
13682if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13683 echo "$ac_t""yes" 1>&6
13684 :
13685else
13686 echo "$ac_t""no" 1>&6
13687
13688 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13689
13690fi
13691
13692
13693 xpm_link=
13694 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13695echo "configure:13696: checking for Xpm library" >&5
13696
13697ac_find_libraries=
13698for ac_dir in $SEARCH_LIB;
13699 do
13700 for ac_extension in a so sl dylib; do
13701 if test -f "$ac_dir/libXpm.$ac_extension"; then
13702 ac_find_libraries=$ac_dir
13703 break 2
13704 fi
13705 done
13706 done
13707
13708 if test "$ac_find_libraries" != "" ; then
13709 GUI_TK_LIBRARY="-L$ac_find_libraries"
13710 xpm_link=" -lXpm"
13711 cat >> confdefs.h <<\EOF
13712#define wxHAVE_LIB_XPM 1
13713EOF
13714
13715 echo "$ac_t""found at $ac_find_libraries" 1>&6
13716 else
13717 echo "$ac_t""no" 1>&6
13718 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13719 fi
13720
13721 mesa_link=
13722 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13723echo "configure:13724: checking for Mesa library" >&5
13724
13725ac_find_libraries=
13726for ac_dir in $SEARCH_LIB;
13727 do
13728 for ac_extension in a so sl dylib; do
13729 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13730 ac_find_libraries=$ac_dir
13731 break 2
13732 fi
13733 done
13734 done
13735
13736 if test "$ac_find_libraries" != "" ; then
13737 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13738 mesa_link=" -lMesaGL"
13739 echo "$ac_t""found at $ac_find_libraries" 1>&6
13740 else
13741 { echo "configure: error: no" 1>&2; exit 1; }
13742 fi
13743
13744 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13745 TOOLKIT=MSW
13746 GUIDIST=MSW_DIST
13747 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13748 fi
13749
13750 if test "$wxUSE_MOTIF" = 1; then
13751 if test "$no_x" = yes; then
13752 # Not all programs may use this symbol, but it does not hurt to define it.
13753 cat >> confdefs.h <<\EOF
13754#define X_DISPLAY_MISSING 1
13755EOF
13756
13757 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13758else
13759 if test -n "$x_includes"; then
13760 X_CFLAGS="$X_CFLAGS -I$x_includes"
13761 fi
13762
13763 # It would also be nice to do this for all -L options, not just this one.
13764 if test -n "$x_libraries"; then
13765 X_LIBS="$X_LIBS -L$x_libraries"
13766 # For Solaris; some versions of Sun CC require a space after -R and
13767 # others require no space. Words are not sufficient . . . .
13768 case "`(uname -sr) 2>/dev/null`" in
13769 "SunOS 5"*)
13770 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13771echo "configure:13772: checking whether -R must be followed by a space" >&5
13772 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13773 cat > conftest.$ac_ext <<EOF
13774#line 13775 "configure"
13775#include "confdefs.h"
13776
13777int main() {
13778
13779; return 0; }
13780EOF
13781if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782 rm -rf conftest*
13783 ac_R_nospace=yes
13784else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 ac_R_nospace=no
13789fi
13790rm -f conftest*
13791 if test $ac_R_nospace = yes; then
13792 echo "$ac_t""no" 1>&6
13793 X_LIBS="$X_LIBS -R$x_libraries"
13794 else
13795 LIBS="$ac_xsave_LIBS -R $x_libraries"
13796 cat > conftest.$ac_ext <<EOF
13797#line 13798 "configure"
13798#include "confdefs.h"
13799
13800int main() {
13801
13802; return 0; }
13803EOF
13804if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805 rm -rf conftest*
13806 ac_R_space=yes
13807else
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 rm -rf conftest*
13811 ac_R_space=no
13812fi
13813rm -f conftest*
13814 if test $ac_R_space = yes; then
13815 echo "$ac_t""yes" 1>&6
13816 X_LIBS="$X_LIBS -R $x_libraries"
13817 else
13818 echo "$ac_t""neither works" 1>&6
13819 fi
13820 fi
13821 LIBS="$ac_xsave_LIBS"
13822 esac
13823 fi
13824
13825 # Check for system-dependent libraries X programs must link with.
13826 # Do this before checking for the system-independent R6 libraries
13827 # (-lICE), since we may need -lsocket or whatever for X linking.
13828
13829 if test "$ISC" = yes; then
13830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13831 else
13832 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13833 # libraries were built with DECnet support. And karl@cs.umb.edu says
13834 # the Alpha needs dnet_stub (dnet does not exist).
13835 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13836echo "configure:13837: checking for dnet_ntoa in -ldnet" >&5
13837ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13838if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840else
13841 ac_save_LIBS="$LIBS"
13842LIBS="-ldnet $LIBS"
13843cat > conftest.$ac_ext <<EOF
13844#line 13845 "configure"
13845#include "confdefs.h"
13846/* Override any gcc2 internal prototype to avoid an error. */
13847/* We use char because int might match the return type of a gcc2
13848 builtin and then its argument prototype would still apply. */
13849char dnet_ntoa();
13850
13851int main() {
13852dnet_ntoa()
13853; return 0; }
13854EOF
13855if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13856 rm -rf conftest*
13857 eval "ac_cv_lib_$ac_lib_var=yes"
13858else
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13861 rm -rf conftest*
13862 eval "ac_cv_lib_$ac_lib_var=no"
13863fi
13864rm -f conftest*
13865LIBS="$ac_save_LIBS"
13866
13867fi
13868if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13869 echo "$ac_t""yes" 1>&6
13870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13871else
13872 echo "$ac_t""no" 1>&6
13873fi
13874
13875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13876 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13877echo "configure:13878: checking for dnet_ntoa in -ldnet_stub" >&5
13878ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13879if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881else
13882 ac_save_LIBS="$LIBS"
13883LIBS="-ldnet_stub $LIBS"
13884cat > conftest.$ac_ext <<EOF
13885#line 13886 "configure"
13886#include "confdefs.h"
13887/* Override any gcc2 internal prototype to avoid an error. */
13888/* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890char dnet_ntoa();
13891
13892int main() {
13893dnet_ntoa()
13894; return 0; }
13895EOF
13896if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13897 rm -rf conftest*
13898 eval "ac_cv_lib_$ac_lib_var=yes"
13899else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 eval "ac_cv_lib_$ac_lib_var=no"
13904fi
13905rm -f conftest*
13906LIBS="$ac_save_LIBS"
13907
13908fi
13909if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13910 echo "$ac_t""yes" 1>&6
13911 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13912else
13913 echo "$ac_t""no" 1>&6
13914fi
13915
13916 fi
13917
13918 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13919 # to get the SysV transport functions.
13920 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13921 # needs -lnsl.
13922 # The nsl library prevents programs from opening the X display
13923 # on Irix 5.2, according to dickey@clark.net.
13924 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13925echo "configure:13926: checking for gethostbyname" >&5
13926if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13927 echo $ac_n "(cached) $ac_c" 1>&6
13928else
13929 cat > conftest.$ac_ext <<EOF
13930#line 13931 "configure"
13931#include "confdefs.h"
13932/* System header to define __stub macros and hopefully few prototypes,
13933 which can conflict with char gethostbyname(); below. */
13934#include <assert.h>
13935/* Override any gcc2 internal prototype to avoid an error. */
13936/* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938char gethostbyname();
13939
13940int main() {
13941
13942/* The GNU C library defines this for functions which it implements
13943 to always fail with ENOSYS. Some functions are actually named
13944 something starting with __ and the normal name is an alias. */
13945#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13946choke me
13947#else
13948gethostbyname();
13949#endif
13950
13951; return 0; }
13952EOF
13953if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954 rm -rf conftest*
13955 eval "ac_cv_func_gethostbyname=yes"
13956else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -rf conftest*
13960 eval "ac_cv_func_gethostbyname=no"
13961fi
13962rm -f conftest*
13963fi
13964
13965if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13966 echo "$ac_t""yes" 1>&6
13967 :
13968else
13969 echo "$ac_t""no" 1>&6
13970fi
13971
13972 if test $ac_cv_func_gethostbyname = no; then
13973 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13974echo "configure:13975: checking for gethostbyname in -lnsl" >&5
13975ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13976if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13978else
13979 ac_save_LIBS="$LIBS"
13980LIBS="-lnsl $LIBS"
13981cat > conftest.$ac_ext <<EOF
13982#line 13983 "configure"
13983#include "confdefs.h"
13984/* Override any gcc2 internal prototype to avoid an error. */
13985/* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13987char gethostbyname();
13988
13989int main() {
13990gethostbyname()
13991; return 0; }
13992EOF
13993if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13994 rm -rf conftest*
13995 eval "ac_cv_lib_$ac_lib_var=yes"
13996else
13997 echo "configure: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 rm -rf conftest*
14000 eval "ac_cv_lib_$ac_lib_var=no"
14001fi
14002rm -f conftest*
14003LIBS="$ac_save_LIBS"
14004
14005fi
14006if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14007 echo "$ac_t""yes" 1>&6
14008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14009else
14010 echo "$ac_t""no" 1>&6
14011fi
14012
14013 fi
14014
14015 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14016 # socket/setsockopt and other routines are undefined under SCO ODT
14017 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14018 # on later versions), says simon@lia.di.epfl.ch: it contains
14019 # gethostby* variants that don't use the nameserver (or something).
14020 # -lsocket must be given before -lnsl if both are needed.
14021 # We assume that if connect needs -lnsl, so does gethostbyname.
14022 echo $ac_n "checking for connect""... $ac_c" 1>&6
14023echo "configure:14024: checking for connect" >&5
14024if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14025 echo $ac_n "(cached) $ac_c" 1>&6
14026else
14027 cat > conftest.$ac_ext <<EOF
14028#line 14029 "configure"
14029#include "confdefs.h"
14030/* System header to define __stub macros and hopefully few prototypes,
14031 which can conflict with char connect(); below. */
14032#include <assert.h>
14033/* Override any gcc2 internal prototype to avoid an error. */
14034/* We use char because int might match the return type of a gcc2
14035 builtin and then its argument prototype would still apply. */
14036char connect();
14037
14038int main() {
14039
14040/* The GNU C library defines this for functions which it implements
14041 to always fail with ENOSYS. Some functions are actually named
14042 something starting with __ and the normal name is an alias. */
14043#if defined (__stub_connect) || defined (__stub___connect)
14044choke me
14045#else
14046connect();
14047#endif
14048
14049; return 0; }
14050EOF
14051if { (eval echo configure:14052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14052 rm -rf conftest*
14053 eval "ac_cv_func_connect=yes"
14054else
14055 echo "configure: failed program was:" >&5
14056 cat conftest.$ac_ext >&5
14057 rm -rf conftest*
14058 eval "ac_cv_func_connect=no"
14059fi
14060rm -f conftest*
14061fi
14062
14063if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14064 echo "$ac_t""yes" 1>&6
14065 :
14066else
14067 echo "$ac_t""no" 1>&6
14068fi
14069
14070 if test $ac_cv_func_connect = no; then
14071 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14072echo "configure:14073: checking for connect in -lsocket" >&5
14073ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14076else
14077 ac_save_LIBS="$LIBS"
14078LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14079cat > conftest.$ac_ext <<EOF
14080#line 14081 "configure"
14081#include "confdefs.h"
14082/* Override any gcc2 internal prototype to avoid an error. */
14083/* We use char because int might match the return type of a gcc2
14084 builtin and then its argument prototype would still apply. */
14085char connect();
14086
14087int main() {
14088connect()
14089; return 0; }
14090EOF
14091if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14092 rm -rf conftest*
14093 eval "ac_cv_lib_$ac_lib_var=yes"
14094else
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14097 rm -rf conftest*
14098 eval "ac_cv_lib_$ac_lib_var=no"
14099fi
14100rm -f conftest*
14101LIBS="$ac_save_LIBS"
14102
14103fi
14104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14105 echo "$ac_t""yes" 1>&6
14106 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14107else
14108 echo "$ac_t""no" 1>&6
14109fi
14110
14111 fi
14112
14113 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14114 echo $ac_n "checking for remove""... $ac_c" 1>&6
14115echo "configure:14116: checking for remove" >&5
14116if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14117 echo $ac_n "(cached) $ac_c" 1>&6
14118else
14119 cat > conftest.$ac_ext <<EOF
14120#line 14121 "configure"
14121#include "confdefs.h"
14122/* System header to define __stub macros and hopefully few prototypes,
14123 which can conflict with char remove(); below. */
14124#include <assert.h>
14125/* Override any gcc2 internal prototype to avoid an error. */
14126/* We use char because int might match the return type of a gcc2
14127 builtin and then its argument prototype would still apply. */
14128char remove();
14129
14130int main() {
14131
14132/* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135#if defined (__stub_remove) || defined (__stub___remove)
14136choke me
14137#else
14138remove();
14139#endif
14140
14141; return 0; }
14142EOF
14143if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14144 rm -rf conftest*
14145 eval "ac_cv_func_remove=yes"
14146else
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -rf conftest*
14150 eval "ac_cv_func_remove=no"
14151fi
14152rm -f conftest*
14153fi
14154
14155if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14156 echo "$ac_t""yes" 1>&6
14157 :
14158else
14159 echo "$ac_t""no" 1>&6
14160fi
14161
14162 if test $ac_cv_func_remove = no; then
14163 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14164echo "configure:14165: checking for remove in -lposix" >&5
14165ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14166if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14167 echo $ac_n "(cached) $ac_c" 1>&6
14168else
14169 ac_save_LIBS="$LIBS"
14170LIBS="-lposix $LIBS"
14171cat > conftest.$ac_ext <<EOF
14172#line 14173 "configure"
14173#include "confdefs.h"
14174/* Override any gcc2 internal prototype to avoid an error. */
14175/* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177char remove();
14178
14179int main() {
14180remove()
14181; return 0; }
14182EOF
14183if { (eval echo configure:14184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14184 rm -rf conftest*
14185 eval "ac_cv_lib_$ac_lib_var=yes"
14186else
14187 echo "configure: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14189 rm -rf conftest*
14190 eval "ac_cv_lib_$ac_lib_var=no"
14191fi
14192rm -f conftest*
14193LIBS="$ac_save_LIBS"
14194
14195fi
14196if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14197 echo "$ac_t""yes" 1>&6
14198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14199else
14200 echo "$ac_t""no" 1>&6
14201fi
14202
14203 fi
14204
14205 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14206 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14207echo "configure:14208: checking for shmat" >&5
14208if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14210else
14211 cat > conftest.$ac_ext <<EOF
14212#line 14213 "configure"
14213#include "confdefs.h"
14214/* System header to define __stub macros and hopefully few prototypes,
14215 which can conflict with char shmat(); below. */
14216#include <assert.h>
14217/* Override any gcc2 internal prototype to avoid an error. */
14218/* We use char because int might match the return type of a gcc2
14219 builtin and then its argument prototype would still apply. */
14220char shmat();
14221
14222int main() {
14223
14224/* The GNU C library defines this for functions which it implements
14225 to always fail with ENOSYS. Some functions are actually named
14226 something starting with __ and the normal name is an alias. */
14227#if defined (__stub_shmat) || defined (__stub___shmat)
14228choke me
14229#else
14230shmat();
14231#endif
14232
14233; return 0; }
14234EOF
14235if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14236 rm -rf conftest*
14237 eval "ac_cv_func_shmat=yes"
14238else
14239 echo "configure: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 rm -rf conftest*
14242 eval "ac_cv_func_shmat=no"
14243fi
14244rm -f conftest*
14245fi
14246
14247if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14248 echo "$ac_t""yes" 1>&6
14249 :
14250else
14251 echo "$ac_t""no" 1>&6
14252fi
14253
14254 if test $ac_cv_func_shmat = no; then
14255 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14256echo "configure:14257: checking for shmat in -lipc" >&5
14257ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14260else
14261 ac_save_LIBS="$LIBS"
14262LIBS="-lipc $LIBS"
14263cat > conftest.$ac_ext <<EOF
14264#line 14265 "configure"
14265#include "confdefs.h"
14266/* Override any gcc2 internal prototype to avoid an error. */
14267/* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14269char shmat();
14270
14271int main() {
14272shmat()
14273; return 0; }
14274EOF
14275if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=yes"
14278else
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 rm -rf conftest*
14282 eval "ac_cv_lib_$ac_lib_var=no"
14283fi
14284rm -f conftest*
14285LIBS="$ac_save_LIBS"
14286
14287fi
14288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14291else
14292 echo "$ac_t""no" 1>&6
14293fi
14294
14295 fi
14296 fi
14297
14298 # Check for libraries that X11R6 Xt/Xaw programs need.
14299 ac_save_LDFLAGS="$LDFLAGS"
14300 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14301 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14302 # check for ICE first), but we must link in the order -lSM -lICE or
14303 # we get undefined symbols. So assume we have SM if we have ICE.
14304 # These have to be linked with before -lX11, unlike the other
14305 # libraries we check for below, so use a different variable.
14306 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14307 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14308echo "configure:14309: checking for IceConnectionNumber in -lICE" >&5
14309ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
14312else
14313 ac_save_LIBS="$LIBS"
14314LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14315cat > conftest.$ac_ext <<EOF
14316#line 14317 "configure"
14317#include "confdefs.h"
14318/* Override any gcc2 internal prototype to avoid an error. */
14319/* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14321char IceConnectionNumber();
14322
14323int main() {
14324IceConnectionNumber()
14325; return 0; }
14326EOF
14327if { (eval echo configure:14328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14328 rm -rf conftest*
14329 eval "ac_cv_lib_$ac_lib_var=yes"
14330else
14331 echo "configure: failed program was:" >&5
14332 cat conftest.$ac_ext >&5
14333 rm -rf conftest*
14334 eval "ac_cv_lib_$ac_lib_var=no"
14335fi
14336rm -f conftest*
14337LIBS="$ac_save_LIBS"
14338
14339fi
14340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14341 echo "$ac_t""yes" 1>&6
14342 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14343else
14344 echo "$ac_t""no" 1>&6
14345fi
14346
14347 LDFLAGS="$ac_save_LDFLAGS"
14348
14349fi
14350
14351
14352 if test "$no_x" = "yes"; then
14353 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14354 fi
14355
14356 GUI_TK_LIBRARY="$X_LIBS"
14357 TOOLKIT_INCLUDE="$X_CFLAGS"
14358 AFMINSTALL=afminstall
14359 COMPILED_X_PROGRAM=0
14360
14361 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14362echo "configure:14363: checking for Motif/Lesstif headers" >&5
14363
14364ac_find_includes=
14365for ac_dir in $SEARCH_INCLUDE;
14366 do
14367 if test -f "$ac_dir/Xm/Xm.h"; then
14368 ac_find_includes=$ac_dir
14369 break
14370 fi
14371 done
14372
14373 if test "$ac_find_includes" != "" ; then
14374 echo "$ac_t""found $ac_find_includes" 1>&6
14375 else
14376 cat > conftest.$ac_ext <<EOF
14377#line 14378 "configure"
14378#include "confdefs.h"
14379
14380 #include <Xm/Xm.h>
14381
14382int main() {
14383
14384 int version;
14385 version = xmUseVersion;
14386
14387; return 0; }
14388EOF
14389if { (eval echo configure:14390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14390 rm -rf conftest*
14391
14392 echo "$ac_t""found in default search path" 1>&6
14393 COMPILED_X_PROGRAM=1
14394
14395else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399
14400 echo "$ac_t""no" 1>&6
14401 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14402
14403
14404fi
14405rm -f conftest*
14406 fi
14407
14408 if test "$COMPILED_X_PROGRAM" = 0; then
14409 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14410echo "configure:14411: checking for Motif/Lesstif library" >&5
14411
14412ac_find_libraries=
14413for ac_dir in $SEARCH_LIB;
14414 do
14415 for ac_extension in a so sl dylib; do
14416 if test -f "$ac_dir/libXm.$ac_extension"; then
14417 ac_find_libraries=$ac_dir
14418 break 2
14419 fi
14420 done
14421 done
14422
14423 if test "$ac_find_libraries" != "" ; then
14424
14425 ac_path_to_include=$ac_find_includes
14426 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14427 result=$?
14428 if test $result = 0; then
14429 ac_path_to_include=""
14430 else
14431 ac_path_to_include=" -I$ac_find_includes"
14432 fi
14433
14434
14435 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14436 result=$?
14437 if test $result = 0; then
14438 ac_path_to_link=""
14439 else
14440 ac_path_to_link=" -L$ac_find_libraries"
14441 fi
14442
14443
14444 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14445 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14446 echo "$ac_t""found at $ac_find_libraries" 1>&6
14447 else
14448 cat > conftest.$ac_ext <<EOF
14449#line 14450 "configure"
14450#include "confdefs.h"
14451
14452 #include <Xm/Xm.h>
14453
14454int main() {
14455
14456 int version;
14457 version = xmUseVersion;
14458
14459; return 0; }
14460EOF
14461if { (eval echo configure:14462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14462 rm -rf conftest*
14463
14464 echo "$ac_t""found in default search path" 1>&6
14465 COMPILED_X_PROGRAM=1
14466
14467else
14468 echo "configure: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 rm -rf conftest*
14471
14472 echo "$ac_t""no" 1>&6
14473 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14474
14475
14476fi
14477rm -f conftest*
14478 fi
14479 fi
14480
14481 xpm_link=
14482 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14483echo "configure:14484: checking for Xpm library" >&5
14484
14485ac_find_libraries=
14486for ac_dir in $SEARCH_LIB;
14487 do
14488 for ac_extension in a so sl dylib; do
14489 if test -f "$ac_dir/libXpm.$ac_extension"; then
14490 ac_find_libraries=$ac_dir
14491 break 2
14492 fi
14493 done
14494 done
14495
14496 if test "$ac_find_libraries" != "" ; then
14497
14498 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14499 result=$?
14500 if test $result = 0; then
14501 ac_path_to_link=""
14502 else
14503 ac_path_to_link=" -L$ac_find_libraries"
14504 fi
14505
14506 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14507 xpm_link=" -lXpm"
14508 cat >> confdefs.h <<\EOF
14509#define wxHAVE_LIB_XPM 1
14510EOF
14511
14512 echo "$ac_t""found at $ac_find_libraries" 1>&6
14513 else
14514 cat > conftest.$ac_ext <<EOF
14515#line 14516 "configure"
14516#include "confdefs.h"
14517
14518 #include <X11/xpm.h>
14519
14520int main() {
14521
14522 int version;
14523 version = XpmLibraryVersion();
14524
14525; return 0; }
14526EOF
14527if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14528 rm -rf conftest*
14529
14530 xpm_link=" -lXpm"
14531 cat >> confdefs.h <<\EOF
14532#define wxHAVE_LIB_XPM 1
14533EOF
14534
14535 echo "$ac_t""found in default search path" 1>&6
14536 COMPILED_X_PROGRAM=0
14537
14538else
14539 echo "configure: failed program was:" >&5
14540 cat conftest.$ac_ext >&5
14541 rm -rf conftest*
14542
14543 echo "$ac_t""no" 1>&6
14544 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14545
14546
14547fi
14548rm -f conftest*
14549 fi
14550
14551 xt_needs_sm_ice=
14552 case "${host}" in
14553 *-*-cygwin* )
14554 xt_needs_sm_ice=" -lSM -lICE"
14555 ;;
14556 esac
14557
14558 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11"
14559 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14560 TOOLKIT=MOTIF
14561 GUIDIST=MOTIF_DIST
14562 fi
14563
14564 if test "$wxUSE_MAC" = 1; then
14565 if test "$wxUSE_PRECOMP" = "yes"; then
14566 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14567 else
14568 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14569 fi
14570 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14571 CFLAGS="$CFLAGS -fpascal-strings"
14572 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14573
14574 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14575 TOOLKIT=MAC
14576 GUIDIST=MACX_DIST
14577 fi
14578
14579 if test "$wxUSE_PM" = 1; then
14580 TOOLKIT=PM
14581 GUIDIST=GTK_DIST
14582 fi
14583
14584 if test "$TOOLKIT" = "PM" ; then
14585 TOOLKIT_DIR="os2"
14586 else
14587 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14588 fi
14589
14590 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14591
14592 if test "$wxUSE_UNIVERSAL" = "yes"; then
14593 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14594
14595 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14596 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14597
14598 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14599 if test "$wxUSE_X11" = 1; then
14600 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14601 else
14602 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14603 fi
14604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14605 WIDGET_SET=univ
14606 else
14607 ALL_OBJECTS="\$(GUIOBJS)"
14608 ALL_SOURCES="\$(ALL_SOURCES)"
14609 ALL_HEADERS="\$(ALL_HEADERS)"
14610 fi
14611
14612 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14613
14614 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14615 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14616 fi
14617
14618 if test "$wxUSE_HTML" = "yes"; then
14619 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14620 fi
14621
14622 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14623 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14624 fi
14625 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14626 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14627 fi
14628 if test "$wxUSE_LIBPNG" = "builtin" ; then
14629 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14630 fi
14631
14632 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14633 DISTDIR="wx\$(TOOLKIT)"
14634else
14635 USE_GUI=0
14636
14637 TOOLKIT_DIR="base"
14638
14639 if test "$USE_WIN32" = 1 ; then
14640 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14641 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14642
14643 TOOLKIT="MSW"
14644 else
14645 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14646 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14647 fi
14648
14649 ALL_SOURCES="\$(ALL_SOURCES)"
14650 ALL_HEADERS="\$(ALL_HEADERS)"
14651
14652 PORT_FILES="\${top_srcdir}/src/files.lst"
14653
14654 GUIDIST="BASE_DIST"
14655 DISTDIR="wxBase"
14656fi
14657
14658
14659if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14660 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14661fi
14662
14663if test "$wxUSE_REGEX" = "builtin" ; then
14664 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14665fi
14666if test "$wxUSE_ZLIB" = "builtin" ; then
14667 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14668fi
14669
14670
14671if test "$wxUSE_OPENGL" = "yes"; then
14672 if test "$wxUSE_MAC" = 1; then
14673 OPENGL_LIBS="-framework OpenGL -framework AGL"
14674 elif test "$wxUSE_MSW" = 1; then
14675 OPENGL_LIBS="-lopengl32 -lglu32"
14676 else
14677 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14678echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14679echo "configure:14680: checking for GL/gl.h" >&5
14680if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14681 echo $ac_n "(cached) $ac_c" 1>&6
14682else
14683 cat > conftest.$ac_ext <<EOF
14684#line 14685 "configure"
14685#include "confdefs.h"
14686#include <GL/gl.h>
14687EOF
14688ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14689{ (eval echo configure:14690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14690ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14691if test -z "$ac_err"; then
14692 rm -rf conftest*
14693 eval "ac_cv_header_$ac_safe=yes"
14694else
14695 echo "$ac_err" >&5
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14698 rm -rf conftest*
14699 eval "ac_cv_header_$ac_safe=no"
14700fi
14701rm -f conftest*
14702fi
14703if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
14705
14706 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14707echo "configure:14708: checking for -lGL" >&5
14708
14709ac_find_libraries=
14710for ac_dir in $SEARCH_LIB;
14711 do
14712 for ac_extension in a so sl dylib; do
14713 if test -f "$ac_dir/libGL.$ac_extension"; then
14714 ac_find_libraries=$ac_dir
14715 break 2
14716 fi
14717 done
14718 done
14719
14720 if test "$ac_find_libraries" != "" ; then
14721
14722 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14723 result=$?
14724 if test $result = 0; then
14725 ac_path_to_link=""
14726 else
14727 ac_path_to_link=" -L$ac_find_libraries"
14728 fi
14729
14730 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14731 LDFLAGS_GL="$LDFLAGS"
14732 else
14733 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14734 fi
14735 OPENGL_LIBS="-lGL -lGLU"
14736 echo "$ac_t""yes" 1>&6
14737 else
14738 echo "$ac_t""no" 1>&6
14739 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14740echo "configure:14741: checking for -lMesaGL" >&5
14741
14742ac_find_libraries=
14743for ac_dir in $SEARCH_LIB;
14744 do
14745 for ac_extension in a so sl dylib; do
14746 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14747 ac_find_libraries=$ac_dir
14748 break 2
14749 fi
14750 done
14751 done
14752
14753 if test "$ac_find_libraries" != "" ; then
14754
14755 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14756 result=$?
14757 if test $result = 0; then
14758 ac_path_to_link=""
14759 else
14760 ac_path_to_link=" -L$ac_find_libraries"
14761 fi
14762
14763 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14764 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14765 echo "$ac_t""yes" 1>&6
14766 else
14767 echo "$ac_t""no" 1>&6
14768 fi
14769 fi
14770
14771else
14772 echo "$ac_t""no" 1>&6
14773fi
14774
14775
14776 if test "x$OPENGL_LIBS" = "x"; then
14777 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14778 fi
14779 fi
14780
14781 if test "$wxUSE_OPENGL" = "yes"; then
14782 cat >> confdefs.h <<\EOF
14783#define wxUSE_OPENGL 1
14784EOF
14785
14786 cat >> confdefs.h <<\EOF
14787#define wxUSE_GLCANVAS 1
14788EOF
14789
14790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14791 fi
14792fi
14793
14794if test -z "$TOOLKIT_VPATH" ; then
14795 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14796fi
14797
14798if test -n "$TOOLKIT" ; then
14799 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14800fi
14801
14802lib_unicode_suffix=
14803if test "$wxUSE_UNICODE" = "yes"; then
14804 lib_unicode_suffix=u
14805fi
14806
14807lib_debug_suffix=
14808if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14809 lib_debug_suffix=d
14810fi
14811
14812TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14813TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14814
14815if test "$cross_compiling" = "yes"; then
14816 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14817 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14818fi
14819
14820WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14821WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14822
14823WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14824WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14825
14826WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14827WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14828WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14829WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14830
14831case "${host}" in
14832 *-*-cygwin* | *-*-mingw32* )
14833
14834
14835
14836 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
14837 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14838 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14839 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14840 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14841 else
14842 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14843 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14844 fi
14845 ;;
14846
14847 *-*-darwin* )
14848 if test "$wxUSE_MAC" = 1; then
14849 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14850 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14851 fi
14852 ;;
14853esac
14854
14855WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14856WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14857
14858WXCONFIG_LIBS="-l${WX_LIBRARY}"
14859WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14860
14861if test "$wxUSE_OPENGL" = "yes"; then
14862 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14863 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14864fi
14865
14866
14867
14868if test "$wxUSE_SHARED" = "yes"; then
14869 case "${host}" in
14870 *-pc-os2_emx | *-pc-os2-emx | \
14871 *-pc-msdosdjgpp )
14872 wxUSE_SHARED=no
14873 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14874 ;;
14875 esac
14876fi
14877
14878if test "$wxUSE_SHARED" = "yes"; then
14879
14880 if test "$wxUSE_OPENGL" = "yes"; then
14881 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14882 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14883 else
14884 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14885 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14886 fi
14887
14888 if test "$GCC" = "yes"; then
14889 PIC_FLAG="-fPIC"
14890 fi
14891
14892 SHARED_LD="${CXX} -shared -o"
14893
14894 case "${host}" in
14895 *-hp-hpux* )
14896 if test "$GCC" == "yes"; then
14897 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14898 else
14899 LDFLAGS="$LDFLAGS -L/usr/lib"
14900
14901 SHARED_LD="${CXX} -b -o"
14902 PIC_FLAG="+Z"
14903 fi
14904
14905 if test "$wxUSE_OPENGL" = "yes"; then
14906 WX_ALL_INSTALLED="preinstall_gl"
14907 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14908 else
14909 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14910 fi
14911 ;;
14912
14913 *-*-linux* )
14914 if test "$GCC" != "yes"; then
14915 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14916echo "configure:14917: checking for Intel compiler" >&5
14917if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14918 echo $ac_n "(cached) $ac_c" 1>&6
14919else
14920
14921 cat > conftest.$ac_ext <<EOF
14922#line 14923 "configure"
14923#include "confdefs.h"
14924
14925int main() {
14926
14927 #ifndef __INTEL_COMPILER
14928 #error Not icc
14929 #endif
14930
14931; return 0; }
14932EOF
14933if { (eval echo configure:14934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14934 rm -rf conftest*
14935 wx_cv_prog_icc=yes
14936else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940 wx_cv_prog_icc=no
14941
14942fi
14943rm -f conftest*
14944
14945fi
14946
14947echo "$ac_t""$wx_cv_prog_icc" 1>&6
14948 if test "$wx_cv_prog_icc" = "yes"; then
14949 PIC_FLAG="-KPIC"
14950 fi
14951 fi
14952
14953 if test "$wxUSE_SONAME" = "yes" ; then
14954 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14955 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14956 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14957 fi
14958 ;;
14959
14960 *-*-solaris2* )
14961 if test "$GCC" = yes ; then
14962 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14963 else
14964 SHARED_LD="${CXX} -G -o"
14965 PIC_FLAG="-KPIC"
14966 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14967 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14968 fi
14969 ;;
14970
14971 *-*-darwin* )
14972 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14973 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14974 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14975 PIC_FLAG="-dynamic -fPIC"
14976 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14977 SONAME_FLAGS_GL=${SONAME_FLAGS}
14978 ;;
14979
14980 *-*-aix* )
14981 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14982set dummy makeC++SharedLib; ac_word=$2
14983echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14984echo "configure:14985: checking for $ac_word" >&5
14985if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14986 echo $ac_n "(cached) $ac_c" 1>&6
14987else
14988 if test -n "$AIX_CXX_LD"; then
14989 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14990else
14991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14992 ac_dummy="$PATH"
14993 for ac_dir in $ac_dummy; do
14994 test -z "$ac_dir" && ac_dir=.
14995 if test -f $ac_dir/$ac_word; then
14996 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14997 break
14998 fi
14999 done
15000 IFS="$ac_save_ifs"
15001 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15002fi
15003fi
15004AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15005if test -n "$AIX_CXX_LD"; then
15006 echo "$ac_t""$AIX_CXX_LD" 1>&6
15007else
15008 echo "$ac_t""no" 1>&6
15009fi
15010
15011
15012 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15013 ;;
15014
15015 *-*-cygwin* | *-*-mingw32* )
15016
15017 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15018
15019 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15020 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15021
15022 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15023
15024 if test "$wxUSE_OPENGL" = "yes"; then
15025 WX_ALL_INSTALLED="preinstall_gl"
15026 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15027 else
15028 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15029 fi
15030 ;;
15031
15032 *-*-beos* )
15033 SHARED_LD="${LD} -shared -o"
15034 ;;
15035
15036 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15037 *-*-sunos4* | \
15038 *-*-irix5* | *-*-irix6* | \
15039 *-*-osf* | \
15040 *-*-dgux5* | \
15041 *-*-sysv5* )
15042 ;;
15043
15044 *)
15045 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15046 esac
15047
15048 if test "x$WX_TARGET_LIBRARY" = "x"; then
15049 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15050 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15051 fi
15052
15053 WX_TARGET_LIBRARY_TYPE="so"
15054 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15055fi
15056
15057if test "$wxUSE_SHARED" = "no"; then
15058
15059 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15060 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15061 fi
15062
15063 if test "$wxUSE_MAC" = 1; then
15064 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15065 fi
15066
15067 if test "$wxUSE_OPENGL" = "yes"; then
15068 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15069 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15070 else
15071 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15072 fi
15073
15074 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15075 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15076
15077 WX_TARGET_LIBRARY_TYPE="a"
15078 INSTALL_LIBRARY='$(INSTALL_DATA)'
15079fi
15080
15081if test "$wxUSE_MAC" = 1; then
15082 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15083 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15084 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15085 # Extract the first word of "Rez", so it can be a program name with args.
15086set dummy Rez; ac_word=$2
15087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15088echo "configure:15089: checking for $ac_word" >&5
15089if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15090 echo $ac_n "(cached) $ac_c" 1>&6
15091else
15092 if test -n "$RESCOMP"; then
15093 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15094else
15095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15096 ac_dummy="$PATH"
15097 for ac_dir in $ac_dummy; do
15098 test -z "$ac_dir" && ac_dir=.
15099 if test -f $ac_dir/$ac_word; then
15100 ac_cv_prog_RESCOMP="Rez"
15101 break
15102 fi
15103 done
15104 IFS="$ac_save_ifs"
15105 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15106fi
15107fi
15108RESCOMP="$ac_cv_prog_RESCOMP"
15109if test -n "$RESCOMP"; then
15110 echo "$ac_t""$RESCOMP" 1>&6
15111else
15112 echo "$ac_t""no" 1>&6
15113fi
15114
15115 # Extract the first word of "DeRez", so it can be a program name with args.
15116set dummy DeRez; ac_word=$2
15117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15118echo "configure:15119: checking for $ac_word" >&5
15119if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15120 echo $ac_n "(cached) $ac_c" 1>&6
15121else
15122 if test -n "$DEREZ"; then
15123 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15124else
15125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15126 ac_dummy="$PATH"
15127 for ac_dir in $ac_dummy; do
15128 test -z "$ac_dir" && ac_dir=.
15129 if test -f $ac_dir/$ac_word; then
15130 ac_cv_prog_DEREZ="DeRez"
15131 break
15132 fi
15133 done
15134 IFS="$ac_save_ifs"
15135 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15136fi
15137fi
15138DEREZ="$ac_cv_prog_DEREZ"
15139if test -n "$DEREZ"; then
15140 echo "$ac_t""$DEREZ" 1>&6
15141else
15142 echo "$ac_t""no" 1>&6
15143fi
15144
15145 MACOSX_BUNDLE="bundle"
15146 if test "$wxUSE_SHARED" = "yes"; then
15147 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15148 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15149 else
15150 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15151 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15152 fi
15153else
15154 if test "$wxUSE_PM" = 1; then
15155 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15156 fi
15157fi
15158
15159
15160echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15161echo "configure:15162: checking for ANSI C header files" >&5
15162if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15163 echo $ac_n "(cached) $ac_c" 1>&6
15164else
15165 cat > conftest.$ac_ext <<EOF
15166#line 15167 "configure"
15167#include "confdefs.h"
15168#include <stdlib.h>
15169#include <stdarg.h>
15170#include <string.h>
15171#include <float.h>
15172EOF
15173ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15174{ (eval echo configure:15175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15175ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15176if test -z "$ac_err"; then
15177 rm -rf conftest*
15178 ac_cv_header_stdc=yes
15179else
15180 echo "$ac_err" >&5
15181 echo "configure: failed program was:" >&5
15182 cat conftest.$ac_ext >&5
15183 rm -rf conftest*
15184 ac_cv_header_stdc=no
15185fi
15186rm -f conftest*
15187
15188if test $ac_cv_header_stdc = yes; then
15189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15190cat > conftest.$ac_ext <<EOF
15191#line 15192 "configure"
15192#include "confdefs.h"
15193#include <string.h>
15194EOF
15195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 egrep "memchr" >/dev/null 2>&1; then
15197 :
15198else
15199 rm -rf conftest*
15200 ac_cv_header_stdc=no
15201fi
15202rm -f conftest*
15203
15204fi
15205
15206if test $ac_cv_header_stdc = yes; then
15207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15208cat > conftest.$ac_ext <<EOF
15209#line 15210 "configure"
15210#include "confdefs.h"
15211#include <stdlib.h>
15212EOF
15213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214 egrep "free" >/dev/null 2>&1; then
15215 :
15216else
15217 rm -rf conftest*
15218 ac_cv_header_stdc=no
15219fi
15220rm -f conftest*
15221
15222fi
15223
15224if test $ac_cv_header_stdc = yes; then
15225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15226if test "$cross_compiling" = yes; then
15227 :
15228else
15229 cat > conftest.$ac_ext <<EOF
15230#line 15231 "configure"
15231#include "confdefs.h"
15232#include <ctype.h>
15233#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15234#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15236int main () { int i; for (i = 0; i < 256; i++)
15237if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15238exit (0); }
15239
15240EOF
15241if { (eval echo configure:15242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15242then
15243 :
15244else
15245 echo "configure: failed program was:" >&5
15246 cat conftest.$ac_ext >&5
15247 rm -fr conftest*
15248 ac_cv_header_stdc=no
15249fi
15250rm -fr conftest*
15251fi
15252
15253fi
15254fi
15255
15256echo "$ac_t""$ac_cv_header_stdc" 1>&6
15257if test $ac_cv_header_stdc = yes; then
15258 cat >> confdefs.h <<\EOF
15259#define STDC_HEADERS 1
15260EOF
15261
15262fi
15263
15264echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15265echo "configure:15266: checking for mode_t" >&5
15266if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15268else
15269 cat > conftest.$ac_ext <<EOF
15270#line 15271 "configure"
15271#include "confdefs.h"
15272#include <sys/types.h>
15273#if STDC_HEADERS
15274#include <stdlib.h>
15275#include <stddef.h>
15276#endif
15277EOF
15278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15280 rm -rf conftest*
15281 ac_cv_type_mode_t=yes
15282else
15283 rm -rf conftest*
15284 ac_cv_type_mode_t=no
15285fi
15286rm -f conftest*
15287
15288fi
15289echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15290if test $ac_cv_type_mode_t = no; then
15291 cat >> confdefs.h <<\EOF
15292#define mode_t int
15293EOF
15294
15295fi
15296
15297echo $ac_n "checking for off_t""... $ac_c" 1>&6
15298echo "configure:15299: checking for off_t" >&5
15299if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15300 echo $ac_n "(cached) $ac_c" 1>&6
15301else
15302 cat > conftest.$ac_ext <<EOF
15303#line 15304 "configure"
15304#include "confdefs.h"
15305#include <sys/types.h>
15306#if STDC_HEADERS
15307#include <stdlib.h>
15308#include <stddef.h>
15309#endif
15310EOF
15311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15312 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15313 rm -rf conftest*
15314 ac_cv_type_off_t=yes
15315else
15316 rm -rf conftest*
15317 ac_cv_type_off_t=no
15318fi
15319rm -f conftest*
15320
15321fi
15322echo "$ac_t""$ac_cv_type_off_t" 1>&6
15323if test $ac_cv_type_off_t = no; then
15324 cat >> confdefs.h <<\EOF
15325#define off_t long
15326EOF
15327
15328fi
15329
15330echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15331echo "configure:15332: checking for pid_t" >&5
15332if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15334else
15335 cat > conftest.$ac_ext <<EOF
15336#line 15337 "configure"
15337#include "confdefs.h"
15338#include <sys/types.h>
15339#if STDC_HEADERS
15340#include <stdlib.h>
15341#include <stddef.h>
15342#endif
15343EOF
15344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15346 rm -rf conftest*
15347 ac_cv_type_pid_t=yes
15348else
15349 rm -rf conftest*
15350 ac_cv_type_pid_t=no
15351fi
15352rm -f conftest*
15353
15354fi
15355echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15356if test $ac_cv_type_pid_t = no; then
15357 cat >> confdefs.h <<\EOF
15358#define pid_t int
15359EOF
15360
15361fi
15362
15363echo $ac_n "checking for size_t""... $ac_c" 1>&6
15364echo "configure:15365: checking for size_t" >&5
15365if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
15367else
15368 cat > conftest.$ac_ext <<EOF
15369#line 15370 "configure"
15370#include "confdefs.h"
15371#include <sys/types.h>
15372#if STDC_HEADERS
15373#include <stdlib.h>
15374#include <stddef.h>
15375#endif
15376EOF
15377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15378 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15379 rm -rf conftest*
15380 ac_cv_type_size_t=yes
15381else
15382 rm -rf conftest*
15383 ac_cv_type_size_t=no
15384fi
15385rm -f conftest*
15386
15387fi
15388echo "$ac_t""$ac_cv_type_size_t" 1>&6
15389if test $ac_cv_type_size_t = no; then
15390 cat >> confdefs.h <<\EOF
15391#define size_t unsigned
15392EOF
15393
15394fi
15395
15396echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15397echo "configure:15398: checking for uid_t in sys/types.h" >&5
15398if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15399 echo $ac_n "(cached) $ac_c" 1>&6
15400else
15401 cat > conftest.$ac_ext <<EOF
15402#line 15403 "configure"
15403#include "confdefs.h"
15404#include <sys/types.h>
15405EOF
15406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15407 egrep "uid_t" >/dev/null 2>&1; then
15408 rm -rf conftest*
15409 ac_cv_type_uid_t=yes
15410else
15411 rm -rf conftest*
15412 ac_cv_type_uid_t=no
15413fi
15414rm -f conftest*
15415
15416fi
15417
15418echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15419if test $ac_cv_type_uid_t = no; then
15420 cat >> confdefs.h <<\EOF
15421#define uid_t int
15422EOF
15423
15424 cat >> confdefs.h <<\EOF
15425#define gid_t int
15426EOF
15427
15428fi
15429
15430
15431
15432ac_ext=C
15433# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15434ac_cpp='$CXXCPP $CPPFLAGS'
15435ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15436ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15437cross_compiling=$ac_cv_prog_cxx_cross
15438
15439echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15440echo "configure:15441: checking if size_t is unsigned int" >&5
15441if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15442 echo $ac_n "(cached) $ac_c" 1>&6
15443else
15444 cat > conftest.$ac_ext <<EOF
15445#line 15446 "configure"
15446#include "confdefs.h"
15447#include <stddef.h>
15448int main() {
15449
15450 return 0; }
15451
15452 struct Foo { void foo(size_t); void foo(unsigned int); };
15453
15454 int bar() {
15455
15456; return 0; }
15457EOF
15458if { (eval echo configure:15459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15459 rm -rf conftest*
15460 wx_cv_size_t_is_uint=no
15461else
15462 echo "configure: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15464 rm -rf conftest*
15465 wx_cv_size_t_is_uint=yes
15466
15467fi
15468rm -f conftest*
15469
15470fi
15471
15472echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15473
15474if test "$wx_cv_size_t_is_uint" = "yes"; then
15475 cat >> confdefs.h <<\EOF
15476#define wxSIZE_T_IS_UINT 1
15477EOF
15478
15479else
15480 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15481echo "configure:15482: checking if size_t is unsigned long" >&5
15482if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15483 echo $ac_n "(cached) $ac_c" 1>&6
15484else
15485 cat > conftest.$ac_ext <<EOF
15486#line 15487 "configure"
15487#include "confdefs.h"
15488#include <stddef.h>
15489int main() {
15490
15491 return 0; }
15492
15493 struct Foo { void foo(size_t); void foo(unsigned long); };
15494
15495 int bar() {
15496
15497; return 0; }
15498EOF
15499if { (eval echo configure:15500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15500 rm -rf conftest*
15501 wx_cv_size_t_is_ulong=no
15502else
15503 echo "configure: failed program was:" >&5
15504 cat conftest.$ac_ext >&5
15505 rm -rf conftest*
15506 wx_cv_size_t_is_ulong=yes
15507
15508fi
15509rm -f conftest*
15510
15511fi
15512
15513echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15514
15515 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15516 cat >> confdefs.h <<\EOF
15517#define wxSIZE_T_IS_ULONG 1
15518EOF
15519
15520 fi
15521fi
15522
15523ac_ext=c
15524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15525ac_cpp='$CPP $CPPFLAGS'
15526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15528cross_compiling=$ac_cv_prog_cc_cross
15529
15530
15531
15532echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15533echo "configure:15534: checking for pw_gecos in struct passwd" >&5
15534if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15535 echo $ac_n "(cached) $ac_c" 1>&6
15536else
15537
15538 cat > conftest.$ac_ext <<EOF
15539#line 15540 "configure"
15540#include "confdefs.h"
15541#include <pwd.h>
15542int main() {
15543
15544 char *p;
15545 struct passwd *pw;
15546 p = pw->pw_gecos;
15547
15548; return 0; }
15549EOF
15550if { (eval echo configure:15551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15551 rm -rf conftest*
15552
15553 wx_cv_struct_pw_gecos=yes
15554
15555else
15556 echo "configure: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 rm -rf conftest*
15559
15560 wx_cv_struct_pw_gecos=no
15561
15562
15563fi
15564rm -f conftest*
15565
15566
15567fi
15568
15569echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15570
15571if test "$wx_cv_struct_pw_gecos" = "yes"; then
15572 cat >> confdefs.h <<\EOF
15573#define HAVE_PW_GECOS 1
15574EOF
15575
15576fi
15577
15578
15579WCHAR_OK=0
15580if test "$wx_cv_sizeof_wchar_t" != "0"; then
15581 WCHAR_LINK=
15582 for ac_func in wcslen
15583do
15584echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15585echo "configure:15586: checking for $ac_func" >&5
15586if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15587 echo $ac_n "(cached) $ac_c" 1>&6
15588else
15589 cat > conftest.$ac_ext <<EOF
15590#line 15591 "configure"
15591#include "confdefs.h"
15592/* System header to define __stub macros and hopefully few prototypes,
15593 which can conflict with char $ac_func(); below. */
15594#include <assert.h>
15595/* Override any gcc2 internal prototype to avoid an error. */
15596/* We use char because int might match the return type of a gcc2
15597 builtin and then its argument prototype would still apply. */
15598char $ac_func();
15599
15600int main() {
15601
15602/* The GNU C library defines this for functions which it implements
15603 to always fail with ENOSYS. Some functions are actually named
15604 something starting with __ and the normal name is an alias. */
15605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15606choke me
15607#else
15608$ac_func();
15609#endif
15610
15611; return 0; }
15612EOF
15613if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15614 rm -rf conftest*
15615 eval "ac_cv_func_$ac_func=yes"
15616else
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620 eval "ac_cv_func_$ac_func=no"
15621fi
15622rm -f conftest*
15623fi
15624
15625if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15626 echo "$ac_t""yes" 1>&6
15627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15628 cat >> confdefs.h <<EOF
15629#define $ac_tr_func 1
15630EOF
15631
15632 cat >> confdefs.h <<\EOF
15633#define HAVE_WCSLEN 1
15634EOF
15635
15636 WCHAR_OK=1
15637
15638else
15639 echo "$ac_t""no" 1>&6
15640fi
15641done
15642
15643
15644 if test "$WCHAR_OK" = 0; then
15645 if test "$TOOLKIT" = "MSW"; then
15646 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15647echo "configure:15648: checking for wcslen in -lmsvcrt" >&5
15648ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15650 echo $ac_n "(cached) $ac_c" 1>&6
15651else
15652 ac_save_LIBS="$LIBS"
15653LIBS="-lmsvcrt $LIBS"
15654cat > conftest.$ac_ext <<EOF
15655#line 15656 "configure"
15656#include "confdefs.h"
15657/* Override any gcc2 internal prototype to avoid an error. */
15658/* We use char because int might match the return type of a gcc2
15659 builtin and then its argument prototype would still apply. */
15660char wcslen();
15661
15662int main() {
15663wcslen()
15664; return 0; }
15665EOF
15666if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15667 rm -rf conftest*
15668 eval "ac_cv_lib_$ac_lib_var=yes"
15669else
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 rm -rf conftest*
15673 eval "ac_cv_lib_$ac_lib_var=no"
15674fi
15675rm -f conftest*
15676LIBS="$ac_save_LIBS"
15677
15678fi
15679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15680 echo "$ac_t""yes" 1>&6
15681
15682 cat >> confdefs.h <<\EOF
15683#define HAVE_WCSLEN 1
15684EOF
15685
15686 WCHAR_OK=1
15687
15688else
15689 echo "$ac_t""no" 1>&6
15690fi
15691
15692 else
15693 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15694echo "configure:15695: checking for wcslen in -lw" >&5
15695ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698else
15699 ac_save_LIBS="$LIBS"
15700LIBS="-lw $LIBS"
15701cat > conftest.$ac_ext <<EOF
15702#line 15703 "configure"
15703#include "confdefs.h"
15704/* Override any gcc2 internal prototype to avoid an error. */
15705/* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707char wcslen();
15708
15709int main() {
15710wcslen()
15711; return 0; }
15712EOF
15713if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15714 rm -rf conftest*
15715 eval "ac_cv_lib_$ac_lib_var=yes"
15716else
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
15720 eval "ac_cv_lib_$ac_lib_var=no"
15721fi
15722rm -f conftest*
15723LIBS="$ac_save_LIBS"
15724
15725fi
15726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727 echo "$ac_t""yes" 1>&6
15728
15729 cat >> confdefs.h <<\EOF
15730#define HAVE_WCSLEN 1
15731EOF
15732
15733 WCHAR_LINK=" -lw"
15734 WCHAR_OK=1
15735
15736else
15737 echo "$ac_t""no" 1>&6
15738fi
15739
15740 fi
15741 fi
15742fi
15743
15744if test "$WCHAR_OK" = 1; then
15745 cat >> confdefs.h <<\EOF
15746#define wxUSE_WCHAR_T 1
15747EOF
15748
15749
15750 for ac_func in wcsrtombs
15751do
15752echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15753echo "configure:15754: checking for $ac_func" >&5
15754if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
15756else
15757 cat > conftest.$ac_ext <<EOF
15758#line 15759 "configure"
15759#include "confdefs.h"
15760/* System header to define __stub macros and hopefully few prototypes,
15761 which can conflict with char $ac_func(); below. */
15762#include <assert.h>
15763/* Override any gcc2 internal prototype to avoid an error. */
15764/* We use char because int might match the return type of a gcc2
15765 builtin and then its argument prototype would still apply. */
15766char $ac_func();
15767
15768int main() {
15769
15770/* The GNU C library defines this for functions which it implements
15771 to always fail with ENOSYS. Some functions are actually named
15772 something starting with __ and the normal name is an alias. */
15773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15774choke me
15775#else
15776$ac_func();
15777#endif
15778
15779; return 0; }
15780EOF
15781if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15782 rm -rf conftest*
15783 eval "ac_cv_func_$ac_func=yes"
15784else
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15787 rm -rf conftest*
15788 eval "ac_cv_func_$ac_func=no"
15789fi
15790rm -f conftest*
15791fi
15792
15793if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15794 echo "$ac_t""yes" 1>&6
15795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15796 cat >> confdefs.h <<EOF
15797#define $ac_tr_func 1
15798EOF
15799
15800else
15801 echo "$ac_t""no" 1>&6
15802fi
15803done
15804
15805else
15806 if test "$USE_DARWIN" = 1; then
15807 cat >> confdefs.h <<\EOF
15808#define wxUSE_WCHAR_T 1
15809EOF
15810
15811 else
15812 echo "configure: warning: Wide character support is unavailable" 1>&2
15813 fi
15814fi
15815
15816echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15817echo "configure:15818: checking for vprintf" >&5
15818if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15819 echo $ac_n "(cached) $ac_c" 1>&6
15820else
15821 cat > conftest.$ac_ext <<EOF
15822#line 15823 "configure"
15823#include "confdefs.h"
15824/* System header to define __stub macros and hopefully few prototypes,
15825 which can conflict with char vprintf(); below. */
15826#include <assert.h>
15827/* Override any gcc2 internal prototype to avoid an error. */
15828/* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830char vprintf();
15831
15832int main() {
15833
15834/* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837#if defined (__stub_vprintf) || defined (__stub___vprintf)
15838choke me
15839#else
15840vprintf();
15841#endif
15842
15843; return 0; }
15844EOF
15845if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846 rm -rf conftest*
15847 eval "ac_cv_func_vprintf=yes"
15848else
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 rm -rf conftest*
15852 eval "ac_cv_func_vprintf=no"
15853fi
15854rm -f conftest*
15855fi
15856
15857if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15858 echo "$ac_t""yes" 1>&6
15859 cat >> confdefs.h <<\EOF
15860#define HAVE_VPRINTF 1
15861EOF
15862
15863else
15864 echo "$ac_t""no" 1>&6
15865fi
15866
15867if test "$ac_cv_func_vprintf" != yes; then
15868echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15869echo "configure:15870: checking for _doprnt" >&5
15870if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15871 echo $ac_n "(cached) $ac_c" 1>&6
15872else
15873 cat > conftest.$ac_ext <<EOF
15874#line 15875 "configure"
15875#include "confdefs.h"
15876/* System header to define __stub macros and hopefully few prototypes,
15877 which can conflict with char _doprnt(); below. */
15878#include <assert.h>
15879/* Override any gcc2 internal prototype to avoid an error. */
15880/* We use char because int might match the return type of a gcc2
15881 builtin and then its argument prototype would still apply. */
15882char _doprnt();
15883
15884int main() {
15885
15886/* The GNU C library defines this for functions which it implements
15887 to always fail with ENOSYS. Some functions are actually named
15888 something starting with __ and the normal name is an alias. */
15889#if defined (__stub__doprnt) || defined (__stub____doprnt)
15890choke me
15891#else
15892_doprnt();
15893#endif
15894
15895; return 0; }
15896EOF
15897if { (eval echo configure:15898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15898 rm -rf conftest*
15899 eval "ac_cv_func__doprnt=yes"
15900else
15901 echo "configure: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 rm -rf conftest*
15904 eval "ac_cv_func__doprnt=no"
15905fi
15906rm -f conftest*
15907fi
15908
15909if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15910 echo "$ac_t""yes" 1>&6
15911 cat >> confdefs.h <<\EOF
15912#define HAVE_DOPRNT 1
15913EOF
15914
15915else
15916 echo "$ac_t""no" 1>&6
15917fi
15918
15919fi
15920
15921
15922
15923
15924
15925
15926echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15927echo "configure:15928: checking for vsnprintf" >&5
15928if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15929 echo $ac_n "(cached) $ac_c" 1>&6
15930else
15931
15932 cat > conftest.$ac_ext <<EOF
15933#line 15934 "configure"
15934#include "confdefs.h"
15935
15936 #include <stdio.h>
15937 #include <stdarg.h>
15938
15939int main() {
15940
15941 int wx_test_vsnprintf(const char *, ...);
15942
15943 wx_test_vsnprintf("%s");
15944 return 0;
15945 }
15946
15947 int wx_test_vsnprintf(const char *fmt, ...)
15948 {
15949 char *s;
15950
15951 va_list argp;
15952 va_start(argp, fmt);
15953 vsnprintf(s, 42, fmt, argp);
15954 va_end(argp);
15955
15956; return 0; }
15957EOF
15958if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15959 rm -rf conftest*
15960
15961 wx_cv_func_vsnprintf=yes
15962
15963else
15964 echo "configure: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15966 rm -rf conftest*
15967
15968 cat > conftest.$ac_ext <<EOF
15969#line 15970 "configure"
15970#include "confdefs.h"
15971
15972 #include <stdio.h>
15973 #include <stdarg.h>
15974
15975int main() {
15976
15977 int wx_test_vsnprintf(const char *, ...);
15978
15979 wx_test_vsnprintf("%s");
15980 return 0;
15981 }
15982
15983 int wx_test_vsnprintf(const char *fmt, ...)
15984 {
15985 char *s;
15986
15987 va_list argp;
15988 va_start(argp, fmt);
15989 _vsnprintf(s, 42, fmt, argp);
15990 va_end(argp);
15991
15992; return 0; }
15993EOF
15994if { (eval echo configure:15995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15995 rm -rf conftest*
15996
15997 wx_cv_func_vsnprintf=yes
15998
15999else
16000 echo "configure: failed program was:" >&5
16001 cat conftest.$ac_ext >&5
16002 rm -rf conftest*
16003
16004 wx_cv_func_vsnprintf=no
16005
16006fi
16007rm -f conftest*
16008
16009fi
16010rm -f conftest*
16011
16012fi
16013
16014echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16015
16016if test "$wx_cv_func_vsnprintf" = yes; then
16017 cat >> confdefs.h <<\EOF
16018#define HAVE_VSNPRINTF 1
16019EOF
16020
16021else
16022 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16023fi
16024
16025echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16026echo "configure:16027: checking for vsscanf" >&5
16027if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16028 echo $ac_n "(cached) $ac_c" 1>&6
16029else
16030
16031 cat > conftest.$ac_ext <<EOF
16032#line 16033 "configure"
16033#include "confdefs.h"
16034
16035 #include <stdio.h>
16036 #include <stdarg.h>
16037
16038int main() {
16039
16040 int wx_test_vsscanf(const char *, ...);
16041
16042 wx_test_vsscanf("%d");
16043 return 0;
16044 }
16045
16046 int wx_test_vsscanf(const char *fmt, ...)
16047 {
16048 va_list argp;
16049 va_start(argp, fmt);
16050 vsscanf("42", fmt, argp);
16051 va_end(argp);
16052
16053; return 0; }
16054EOF
16055if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16056 rm -rf conftest*
16057
16058 wx_cv_func_vsscanf=yes
16059
16060else
16061 echo "configure: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 rm -rf conftest*
16064
16065 wx_cv_func_vsscanf=no
16066
16067fi
16068rm -f conftest*
16069
16070fi
16071
16072echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16073
16074if test "$wx_cv_func_vsscanf" = yes; then
16075 cat >> confdefs.h <<\EOF
16076#define HAVE_VSSCANF 1
16077EOF
16078
16079fi
16080
16081if test "$TOOLKIT" != "MSW"; then
16082
16083
16084
16085ac_ext=C
16086# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16087ac_cpp='$CXXCPP $CPPFLAGS'
16088ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16089ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16090cross_compiling=$ac_cv_prog_cxx_cross
16091
16092
16093
16094 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16095if test "${with_libiconv_prefix+set}" = set; then
16096 withval="$with_libiconv_prefix"
16097
16098 for dir in `echo "$withval" | tr : ' '`; do
16099 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16100 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16101 done
16102
16103fi
16104
16105
16106 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16107echo "configure:16108: checking for iconv" >&5
16108if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16109 echo $ac_n "(cached) $ac_c" 1>&6
16110else
16111
16112 am_cv_func_iconv="no, consider installing GNU libiconv"
16113 am_cv_lib_iconv=no
16114 cat > conftest.$ac_ext <<EOF
16115#line 16116 "configure"
16116#include "confdefs.h"
16117#include <stdlib.h>
16118#include <iconv.h>
16119int main() {
16120iconv_t cd = iconv_open("","");
16121 iconv(cd,NULL,NULL,NULL,NULL);
16122 iconv_close(cd);
16123; return 0; }
16124EOF
16125if { (eval echo configure:16126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16126 rm -rf conftest*
16127 am_cv_func_iconv=yes
16128else
16129 echo "configure: failed program was:" >&5
16130 cat conftest.$ac_ext >&5
16131fi
16132rm -f conftest*
16133 if test "$am_cv_func_iconv" != yes; then
16134 am_save_LIBS="$LIBS"
16135 LIBS="$LIBS -liconv"
16136 cat > conftest.$ac_ext <<EOF
16137#line 16138 "configure"
16138#include "confdefs.h"
16139#include <stdlib.h>
16140#include <iconv.h>
16141int main() {
16142iconv_t cd = iconv_open("","");
16143 iconv(cd,NULL,NULL,NULL,NULL);
16144 iconv_close(cd);
16145; return 0; }
16146EOF
16147if { (eval echo configure:16148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16148 rm -rf conftest*
16149 am_cv_lib_iconv=yes
16150 am_cv_func_iconv=yes
16151else
16152 echo "configure: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154fi
16155rm -f conftest*
16156 LIBS="$am_save_LIBS"
16157 fi
16158
16159fi
16160
16161echo "$ac_t""$am_cv_func_iconv" 1>&6
16162 if test "$am_cv_func_iconv" = yes; then
16163 cat >> confdefs.h <<\EOF
16164#define HAVE_ICONV 1
16165EOF
16166
16167 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16168echo "configure:16169: checking if iconv needs const" >&5
16169if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16170 echo $ac_n "(cached) $ac_c" 1>&6
16171else
16172 cat > conftest.$ac_ext <<EOF
16173#line 16174 "configure"
16174#include "confdefs.h"
16175
16176#include <stdlib.h>
16177#include <iconv.h>
16178extern
16179#ifdef __cplusplus
16180"C"
16181#endif
16182#if defined(__STDC__) || defined(__cplusplus)
16183size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16184#else
16185size_t iconv();
16186#endif
16187
16188int main() {
16189
16190; return 0; }
16191EOF
16192if { (eval echo configure:16193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16193 rm -rf conftest*
16194 wx_cv_func_iconv_const="no"
16195else
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16198 rm -rf conftest*
16199 wx_cv_func_iconv_const="yes"
16200
16201fi
16202rm -f conftest*
16203
16204fi
16205
16206echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16207
16208 iconv_const=
16209 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16210 iconv_const="const"
16211 fi
16212
16213 cat >> confdefs.h <<EOF
16214#define ICONV_CONST $iconv_const
16215EOF
16216
16217 fi
16218 LIBICONV=
16219 if test "$am_cv_lib_iconv" = yes; then
16220 LIBICONV="-liconv"
16221 fi
16222
16223
16224LIBS="$LIBICONV $LIBS"
16225ac_ext=c
16226# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16227ac_cpp='$CPP $CPPFLAGS'
16228ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16229ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16230cross_compiling=$ac_cv_prog_cc_cross
16231
16232
16233if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16234 for ac_func in sigaction
16235do
16236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16237echo "configure:16238: checking for $ac_func" >&5
16238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16239 echo $ac_n "(cached) $ac_c" 1>&6
16240else
16241 cat > conftest.$ac_ext <<EOF
16242#line 16243 "configure"
16243#include "confdefs.h"
16244/* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char $ac_func(); below. */
16246#include <assert.h>
16247/* Override any gcc2 internal prototype to avoid an error. */
16248/* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16250char $ac_func();
16251
16252int main() {
16253
16254/* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258choke me
16259#else
16260$ac_func();
16261#endif
16262
16263; return 0; }
16264EOF
16265if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16266 rm -rf conftest*
16267 eval "ac_cv_func_$ac_func=yes"
16268else
16269 echo "configure: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 rm -rf conftest*
16272 eval "ac_cv_func_$ac_func=no"
16273fi
16274rm -f conftest*
16275fi
16276
16277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16278 echo "$ac_t""yes" 1>&6
16279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16280 cat >> confdefs.h <<EOF
16281#define $ac_tr_func 1
16282EOF
16283
16284else
16285 echo "$ac_t""no" 1>&6
16286fi
16287done
16288
16289
16290 if test "$ac_cv_func_sigaction" = "no"; then
16291 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16292 wxUSE_ON_FATAL_EXCEPTION=no
16293 fi
16294
16295 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16296
16297 ac_ext=C
16298# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16299ac_cpp='$CXXCPP $CPPFLAGS'
16300ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16301ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16302cross_compiling=$ac_cv_prog_cxx_cross
16303
16304
16305 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16306echo "configure:16307: checking for sa_handler type" >&5
16307if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16308 echo $ac_n "(cached) $ac_c" 1>&6
16309else
16310
16311 cat > conftest.$ac_ext <<EOF
16312#line 16313 "configure"
16313#include "confdefs.h"
16314#include <signal.h>
16315int main() {
16316
16317 extern void testSigHandler(int);
16318
16319 struct sigaction sa;
16320 sa.sa_handler = testSigHandler;
16321
16322; return 0; }
16323EOF
16324if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16325 rm -rf conftest*
16326
16327 wx_cv_type_sa_handler=int
16328
16329else
16330 echo "configure: failed program was:" >&5
16331 cat conftest.$ac_ext >&5
16332 rm -rf conftest*
16333
16334 wx_cv_type_sa_handler=void
16335
16336fi
16337rm -f conftest*
16338
16339fi
16340
16341echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16342
16343 ac_ext=c
16344# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16345ac_cpp='$CPP $CPPFLAGS'
16346ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16347ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16348cross_compiling=$ac_cv_prog_cc_cross
16349
16350
16351 cat >> confdefs.h <<EOF
16352#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16353EOF
16354
16355 fi
16356fi
16357
16358for ac_func in vfork
16359do
16360echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16361echo "configure:16362: checking for $ac_func" >&5
16362if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16363 echo $ac_n "(cached) $ac_c" 1>&6
16364else
16365 cat > conftest.$ac_ext <<EOF
16366#line 16367 "configure"
16367#include "confdefs.h"
16368/* System header to define __stub macros and hopefully few prototypes,
16369 which can conflict with char $ac_func(); below. */
16370#include <assert.h>
16371/* Override any gcc2 internal prototype to avoid an error. */
16372/* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16374char $ac_func();
16375
16376int main() {
16377
16378/* The GNU C library defines this for functions which it implements
16379 to always fail with ENOSYS. Some functions are actually named
16380 something starting with __ and the normal name is an alias. */
16381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382choke me
16383#else
16384$ac_func();
16385#endif
16386
16387; return 0; }
16388EOF
16389if { (eval echo configure:16390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16390 rm -rf conftest*
16391 eval "ac_cv_func_$ac_func=yes"
16392else
16393 echo "configure: failed program was:" >&5
16394 cat conftest.$ac_ext >&5
16395 rm -rf conftest*
16396 eval "ac_cv_func_$ac_func=no"
16397fi
16398rm -f conftest*
16399fi
16400
16401if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16402 echo "$ac_t""yes" 1>&6
16403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16404 cat >> confdefs.h <<EOF
16405#define $ac_tr_func 1
16406EOF
16407
16408else
16409 echo "$ac_t""no" 1>&6
16410fi
16411done
16412
16413
16414for ac_func in mkstemp mktemp
16415do
16416echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16417echo "configure:16418: checking for $ac_func" >&5
16418if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16419 echo $ac_n "(cached) $ac_c" 1>&6
16420else
16421 cat > conftest.$ac_ext <<EOF
16422#line 16423 "configure"
16423#include "confdefs.h"
16424/* System header to define __stub macros and hopefully few prototypes,
16425 which can conflict with char $ac_func(); below. */
16426#include <assert.h>
16427/* Override any gcc2 internal prototype to avoid an error. */
16428/* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430char $ac_func();
16431
16432int main() {
16433
16434/* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16438choke me
16439#else
16440$ac_func();
16441#endif
16442
16443; return 0; }
16444EOF
16445if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16446 rm -rf conftest*
16447 eval "ac_cv_func_$ac_func=yes"
16448else
16449 echo "configure: failed program was:" >&5
16450 cat conftest.$ac_ext >&5
16451 rm -rf conftest*
16452 eval "ac_cv_func_$ac_func=no"
16453fi
16454rm -f conftest*
16455fi
16456
16457if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16458 echo "$ac_t""yes" 1>&6
16459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16460 cat >> confdefs.h <<EOF
16461#define $ac_tr_func 1
16462EOF
16463 break
16464else
16465 echo "$ac_t""no" 1>&6
16466fi
16467done
16468
16469
16470echo $ac_n "checking for statfs""... $ac_c" 1>&6
16471echo "configure:16472: checking for statfs" >&5
16472if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16473 echo $ac_n "(cached) $ac_c" 1>&6
16474else
16475 cat > conftest.$ac_ext <<EOF
16476#line 16477 "configure"
16477#include "confdefs.h"
16478
16479 #if defined(__BSD__)
16480 #include <sys/param.h>
16481 #include <sys/mount.h>
16482 #else
16483 #include <sys/vfs.h>
16484 #endif
16485
16486int main() {
16487
16488 long l;
16489 struct statfs fs;
16490 statfs("/", &fs);
16491 l = fs.f_bsize;
16492 l += fs.f_blocks;
16493 l += fs.f_bavail;
16494
16495; return 0; }
16496EOF
16497if { (eval echo configure:16498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16498 rm -rf conftest*
16499
16500 wx_cv_func_statfs=yes
16501
16502else
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16505 rm -rf conftest*
16506
16507 wx_cv_func_statfs=no
16508
16509
16510fi
16511rm -f conftest*
16512
16513fi
16514
16515echo "$ac_t""$wx_cv_func_statfs" 1>&6
16516
16517if test "$wx_cv_func_statfs" = "yes"; then
16518 cat >> confdefs.h <<\EOF
16519#define HAVE_STATFS 1
16520EOF
16521
16522else
16523 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16524echo "configure:16525: checking for statvfs" >&5
16525if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16526 echo $ac_n "(cached) $ac_c" 1>&6
16527else
16528 cat > conftest.$ac_ext <<EOF
16529#line 16530 "configure"
16530#include "confdefs.h"
16531
16532 #include <sys/statvfs.h>
16533
16534int main() {
16535
16536 long l;
16537 struct statvfs fs;
16538 statvfs("/", &fs);
16539 l = fs.f_bsize;
16540 l += fs.f_blocks;
16541 l += fs.f_bavail;
16542
16543; return 0; }
16544EOF
16545if { (eval echo configure:16546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16546 rm -rf conftest*
16547
16548 wx_cv_func_statvfs=yes
16549
16550else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
16554
16555 wx_cv_func_statvfs=no
16556
16557
16558fi
16559rm -f conftest*
16560
16561fi
16562
16563echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16564
16565 if test "$wx_cv_func_statvfs" = "yes"; then
16566 cat >> confdefs.h <<\EOF
16567#define HAVE_STATVFS 1
16568EOF
16569
16570 else
16571 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16572 fi
16573fi
16574
16575if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16576 for ac_func in fcntl flock
16577do
16578echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16579echo "configure:16580: checking for $ac_func" >&5
16580if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16581 echo $ac_n "(cached) $ac_c" 1>&6
16582else
16583 cat > conftest.$ac_ext <<EOF
16584#line 16585 "configure"
16585#include "confdefs.h"
16586/* System header to define __stub macros and hopefully few prototypes,
16587 which can conflict with char $ac_func(); below. */
16588#include <assert.h>
16589/* Override any gcc2 internal prototype to avoid an error. */
16590/* We use char because int might match the return type of a gcc2
16591 builtin and then its argument prototype would still apply. */
16592char $ac_func();
16593
16594int main() {
16595
16596/* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16600choke me
16601#else
16602$ac_func();
16603#endif
16604
16605; return 0; }
16606EOF
16607if { (eval echo configure:16608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16608 rm -rf conftest*
16609 eval "ac_cv_func_$ac_func=yes"
16610else
16611 echo "configure: failed program was:" >&5
16612 cat conftest.$ac_ext >&5
16613 rm -rf conftest*
16614 eval "ac_cv_func_$ac_func=no"
16615fi
16616rm -f conftest*
16617fi
16618
16619if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16620 echo "$ac_t""yes" 1>&6
16621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16622 cat >> confdefs.h <<EOF
16623#define $ac_tr_func 1
16624EOF
16625 break
16626else
16627 echo "$ac_t""no" 1>&6
16628fi
16629done
16630
16631
16632 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16633 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16634 wxUSE_SNGLINST_CHECKER=no
16635 fi
16636fi
16637
16638for ac_func in timegm
16639do
16640echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16641echo "configure:16642: checking for $ac_func" >&5
16642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16643 echo $ac_n "(cached) $ac_c" 1>&6
16644else
16645 cat > conftest.$ac_ext <<EOF
16646#line 16647 "configure"
16647#include "confdefs.h"
16648/* System header to define __stub macros and hopefully few prototypes,
16649 which can conflict with char $ac_func(); below. */
16650#include <assert.h>
16651/* Override any gcc2 internal prototype to avoid an error. */
16652/* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16654char $ac_func();
16655
16656int main() {
16657
16658/* The GNU C library defines this for functions which it implements
16659 to always fail with ENOSYS. Some functions are actually named
16660 something starting with __ and the normal name is an alias. */
16661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16662choke me
16663#else
16664$ac_func();
16665#endif
16666
16667; return 0; }
16668EOF
16669if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16670 rm -rf conftest*
16671 eval "ac_cv_func_$ac_func=yes"
16672else
16673 echo "configure: failed program was:" >&5
16674 cat conftest.$ac_ext >&5
16675 rm -rf conftest*
16676 eval "ac_cv_func_$ac_func=no"
16677fi
16678rm -f conftest*
16679fi
16680
16681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16682 echo "$ac_t""yes" 1>&6
16683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16684 cat >> confdefs.h <<EOF
16685#define $ac_tr_func 1
16686EOF
16687
16688else
16689 echo "$ac_t""no" 1>&6
16690fi
16691done
16692
16693
16694for ac_func in putenv setenv
16695do
16696echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16697echo "configure:16698: checking for $ac_func" >&5
16698if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
16700else
16701 cat > conftest.$ac_ext <<EOF
16702#line 16703 "configure"
16703#include "confdefs.h"
16704/* System header to define __stub macros and hopefully few prototypes,
16705 which can conflict with char $ac_func(); below. */
16706#include <assert.h>
16707/* Override any gcc2 internal prototype to avoid an error. */
16708/* We use char because int might match the return type of a gcc2
16709 builtin and then its argument prototype would still apply. */
16710char $ac_func();
16711
16712int main() {
16713
16714/* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718choke me
16719#else
16720$ac_func();
16721#endif
16722
16723; return 0; }
16724EOF
16725if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16726 rm -rf conftest*
16727 eval "ac_cv_func_$ac_func=yes"
16728else
16729 echo "configure: failed program was:" >&5
16730 cat conftest.$ac_ext >&5
16731 rm -rf conftest*
16732 eval "ac_cv_func_$ac_func=no"
16733fi
16734rm -f conftest*
16735fi
16736
16737if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16738 echo "$ac_t""yes" 1>&6
16739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16740 cat >> confdefs.h <<EOF
16741#define $ac_tr_func 1
16742EOF
16743 break
16744else
16745 echo "$ac_t""no" 1>&6
16746fi
16747done
16748
16749
16750HAVE_SOME_SLEEP_FUNC=0
16751if test "$USE_BEOS" = 1; then
16752 cat >> confdefs.h <<\EOF
16753#define HAVE_SLEEP 1
16754EOF
16755
16756 HAVE_SOME_SLEEP_FUNC=1
16757fi
16758
16759if test "$USE_DARWIN" = 1; then
16760 cat >> confdefs.h <<\EOF
16761#define HAVE_USLEEP 1
16762EOF
16763
16764 HAVE_SOME_SLEEP_FUNC=1
16765fi
16766
16767if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16768 POSIX4_LINK=
16769 for ac_func in nanosleep
16770do
16771echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16772echo "configure:16773: checking for $ac_func" >&5
16773if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16774 echo $ac_n "(cached) $ac_c" 1>&6
16775else
16776 cat > conftest.$ac_ext <<EOF
16777#line 16778 "configure"
16778#include "confdefs.h"
16779/* System header to define __stub macros and hopefully few prototypes,
16780 which can conflict with char $ac_func(); below. */
16781#include <assert.h>
16782/* Override any gcc2 internal prototype to avoid an error. */
16783/* We use char because int might match the return type of a gcc2
16784 builtin and then its argument prototype would still apply. */
16785char $ac_func();
16786
16787int main() {
16788
16789/* The GNU C library defines this for functions which it implements
16790 to always fail with ENOSYS. Some functions are actually named
16791 something starting with __ and the normal name is an alias. */
16792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16793choke me
16794#else
16795$ac_func();
16796#endif
16797
16798; return 0; }
16799EOF
16800if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16801 rm -rf conftest*
16802 eval "ac_cv_func_$ac_func=yes"
16803else
16804 echo "configure: failed program was:" >&5
16805 cat conftest.$ac_ext >&5
16806 rm -rf conftest*
16807 eval "ac_cv_func_$ac_func=no"
16808fi
16809rm -f conftest*
16810fi
16811
16812if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16813 echo "$ac_t""yes" 1>&6
16814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16815 cat >> confdefs.h <<EOF
16816#define $ac_tr_func 1
16817EOF
16818 cat >> confdefs.h <<\EOF
16819#define HAVE_NANOSLEEP 1
16820EOF
16821
16822else
16823 echo "$ac_t""no" 1>&6
16824echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16825echo "configure:16826: checking for nanosleep in -lposix4" >&5
16826ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16828 echo $ac_n "(cached) $ac_c" 1>&6
16829else
16830 ac_save_LIBS="$LIBS"
16831LIBS="-lposix4 $LIBS"
16832cat > conftest.$ac_ext <<EOF
16833#line 16834 "configure"
16834#include "confdefs.h"
16835/* Override any gcc2 internal prototype to avoid an error. */
16836/* We use char because int might match the return type of a gcc2
16837 builtin and then its argument prototype would still apply. */
16838char nanosleep();
16839
16840int main() {
16841nanosleep()
16842; return 0; }
16843EOF
16844if { (eval echo configure:16845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16845 rm -rf conftest*
16846 eval "ac_cv_lib_$ac_lib_var=yes"
16847else
16848 echo "configure: failed program was:" >&5
16849 cat conftest.$ac_ext >&5
16850 rm -rf conftest*
16851 eval "ac_cv_lib_$ac_lib_var=no"
16852fi
16853rm -f conftest*
16854LIBS="$ac_save_LIBS"
16855
16856fi
16857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16858 echo "$ac_t""yes" 1>&6
16859
16860 cat >> confdefs.h <<\EOF
16861#define HAVE_NANOSLEEP 1
16862EOF
16863
16864 POSIX4_LINK=" -lposix4"
16865
16866else
16867 echo "$ac_t""no" 1>&6
16868
16869 for ac_func in usleep
16870do
16871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16872echo "configure:16873: checking for $ac_func" >&5
16873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16874 echo $ac_n "(cached) $ac_c" 1>&6
16875else
16876 cat > conftest.$ac_ext <<EOF
16877#line 16878 "configure"
16878#include "confdefs.h"
16879/* System header to define __stub macros and hopefully few prototypes,
16880 which can conflict with char $ac_func(); below. */
16881#include <assert.h>
16882/* Override any gcc2 internal prototype to avoid an error. */
16883/* We use char because int might match the return type of a gcc2
16884 builtin and then its argument prototype would still apply. */
16885char $ac_func();
16886
16887int main() {
16888
16889/* The GNU C library defines this for functions which it implements
16890 to always fail with ENOSYS. Some functions are actually named
16891 something starting with __ and the normal name is an alias. */
16892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16893choke me
16894#else
16895$ac_func();
16896#endif
16897
16898; return 0; }
16899EOF
16900if { (eval echo configure:16901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16901 rm -rf conftest*
16902 eval "ac_cv_func_$ac_func=yes"
16903else
16904 echo "configure: failed program was:" >&5
16905 cat conftest.$ac_ext >&5
16906 rm -rf conftest*
16907 eval "ac_cv_func_$ac_func=no"
16908fi
16909rm -f conftest*
16910fi
16911
16912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16913 echo "$ac_t""yes" 1>&6
16914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16915 cat >> confdefs.h <<EOF
16916#define $ac_tr_func 1
16917EOF
16918 cat >> confdefs.h <<\EOF
16919#define HAVE_USLEEP 1
16920EOF
16921
16922else
16923 echo "$ac_t""no" 1>&6
16924echo "configure: warning: wxSleep() function will not work" 1>&2
16925
16926fi
16927done
16928
16929
16930
16931fi
16932
16933
16934
16935fi
16936done
16937
16938fi
16939
16940for ac_func in uname gethostname
16941do
16942echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16943echo "configure:16944: checking for $ac_func" >&5
16944if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16945 echo $ac_n "(cached) $ac_c" 1>&6
16946else
16947 cat > conftest.$ac_ext <<EOF
16948#line 16949 "configure"
16949#include "confdefs.h"
16950/* System header to define __stub macros and hopefully few prototypes,
16951 which can conflict with char $ac_func(); below. */
16952#include <assert.h>
16953/* Override any gcc2 internal prototype to avoid an error. */
16954/* We use char because int might match the return type of a gcc2
16955 builtin and then its argument prototype would still apply. */
16956char $ac_func();
16957
16958int main() {
16959
16960/* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16964choke me
16965#else
16966$ac_func();
16967#endif
16968
16969; return 0; }
16970EOF
16971if { (eval echo configure:16972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16972 rm -rf conftest*
16973 eval "ac_cv_func_$ac_func=yes"
16974else
16975 echo "configure: failed program was:" >&5
16976 cat conftest.$ac_ext >&5
16977 rm -rf conftest*
16978 eval "ac_cv_func_$ac_func=no"
16979fi
16980rm -f conftest*
16981fi
16982
16983if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16984 echo "$ac_t""yes" 1>&6
16985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16986 cat >> confdefs.h <<EOF
16987#define $ac_tr_func 1
16988EOF
16989 break
16990else
16991 echo "$ac_t""no" 1>&6
16992fi
16993done
16994
16995
16996
16997ac_ext=C
16998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16999ac_cpp='$CXXCPP $CPPFLAGS'
17000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17002cross_compiling=$ac_cv_prog_cxx_cross
17003
17004
17005for ac_func in strtok_r
17006do
17007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17008echo "configure:17009: checking for $ac_func" >&5
17009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17010 echo $ac_n "(cached) $ac_c" 1>&6
17011else
17012 cat > conftest.$ac_ext <<EOF
17013#line 17014 "configure"
17014#include "confdefs.h"
17015/* System header to define __stub macros and hopefully few prototypes,
17016 which can conflict with char $ac_func(); below. */
17017#include <assert.h>
17018/* Override any gcc2 internal prototype to avoid an error. */
17019#ifdef __cplusplus
17020extern "C"
17021#endif
17022/* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024char $ac_func();
17025
17026int main() {
17027
17028/* The GNU C library defines this for functions which it implements
17029 to always fail with ENOSYS. Some functions are actually named
17030 something starting with __ and the normal name is an alias. */
17031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17032choke me
17033#else
17034$ac_func();
17035#endif
17036
17037; return 0; }
17038EOF
17039if { (eval echo configure:17040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17040 rm -rf conftest*
17041 eval "ac_cv_func_$ac_func=yes"
17042else
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 eval "ac_cv_func_$ac_func=no"
17047fi
17048rm -f conftest*
17049fi
17050
17051if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17052 echo "$ac_t""yes" 1>&6
17053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17054 cat >> confdefs.h <<EOF
17055#define $ac_tr_func 1
17056EOF
17057
17058else
17059 echo "$ac_t""no" 1>&6
17060fi
17061done
17062
17063
17064ac_ext=c
17065# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17066ac_cpp='$CPP $CPPFLAGS'
17067ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17068ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17069cross_compiling=$ac_cv_prog_cc_cross
17070
17071
17072INET_LINK=
17073for ac_func in inet_addr
17074do
17075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17076echo "configure:17077: checking for $ac_func" >&5
17077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17078 echo $ac_n "(cached) $ac_c" 1>&6
17079else
17080 cat > conftest.$ac_ext <<EOF
17081#line 17082 "configure"
17082#include "confdefs.h"
17083/* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func(); below. */
17085#include <assert.h>
17086/* Override any gcc2 internal prototype to avoid an error. */
17087/* We use char because int might match the return type of a gcc2
17088 builtin and then its argument prototype would still apply. */
17089char $ac_func();
17090
17091int main() {
17092
17093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17097choke me
17098#else
17099$ac_func();
17100#endif
17101
17102; return 0; }
17103EOF
17104if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17105 rm -rf conftest*
17106 eval "ac_cv_func_$ac_func=yes"
17107else
17108 echo "configure: failed program was:" >&5
17109 cat conftest.$ac_ext >&5
17110 rm -rf conftest*
17111 eval "ac_cv_func_$ac_func=no"
17112fi
17113rm -f conftest*
17114fi
17115
17116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17117 echo "$ac_t""yes" 1>&6
17118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17119 cat >> confdefs.h <<EOF
17120#define $ac_tr_func 1
17121EOF
17122 cat >> confdefs.h <<\EOF
17123#define HAVE_INET_ADDR 1
17124EOF
17125
17126else
17127 echo "$ac_t""no" 1>&6
17128echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17129echo "configure:17130: checking for inet_addr in -lnsl" >&5
17130ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17131if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17132 echo $ac_n "(cached) $ac_c" 1>&6
17133else
17134 ac_save_LIBS="$LIBS"
17135LIBS="-lnsl $LIBS"
17136cat > conftest.$ac_ext <<EOF
17137#line 17138 "configure"
17138#include "confdefs.h"
17139/* Override any gcc2 internal prototype to avoid an error. */
17140/* We use char because int might match the return type of a gcc2
17141 builtin and then its argument prototype would still apply. */
17142char inet_addr();
17143
17144int main() {
17145inet_addr()
17146; return 0; }
17147EOF
17148if { (eval echo configure:17149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17149 rm -rf conftest*
17150 eval "ac_cv_lib_$ac_lib_var=yes"
17151else
17152 echo "configure: failed program was:" >&5
17153 cat conftest.$ac_ext >&5
17154 rm -rf conftest*
17155 eval "ac_cv_lib_$ac_lib_var=no"
17156fi
17157rm -f conftest*
17158LIBS="$ac_save_LIBS"
17159
17160fi
17161if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17162 echo "$ac_t""yes" 1>&6
17163 INET_LINK="nsl"
17164else
17165 echo "$ac_t""no" 1>&6
17166echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17167echo "configure:17168: checking for inet_addr in -lresolv" >&5
17168ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17170 echo $ac_n "(cached) $ac_c" 1>&6
17171else
17172 ac_save_LIBS="$LIBS"
17173LIBS="-lresolv $LIBS"
17174cat > conftest.$ac_ext <<EOF
17175#line 17176 "configure"
17176#include "confdefs.h"
17177/* Override any gcc2 internal prototype to avoid an error. */
17178/* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17180char inet_addr();
17181
17182int main() {
17183inet_addr()
17184; return 0; }
17185EOF
17186if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17187 rm -rf conftest*
17188 eval "ac_cv_lib_$ac_lib_var=yes"
17189else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 rm -rf conftest*
17193 eval "ac_cv_lib_$ac_lib_var=no"
17194fi
17195rm -f conftest*
17196LIBS="$ac_save_LIBS"
17197
17198fi
17199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17200 echo "$ac_t""yes" 1>&6
17201 INET_LINK="resolv"
17202else
17203 echo "$ac_t""no" 1>&6
17204echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17205echo "configure:17206: checking for inet_addr in -lsocket" >&5
17206ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
17209else
17210 ac_save_LIBS="$LIBS"
17211LIBS="-lsocket $LIBS"
17212cat > conftest.$ac_ext <<EOF
17213#line 17214 "configure"
17214#include "confdefs.h"
17215/* Override any gcc2 internal prototype to avoid an error. */
17216/* We use char because int might match the return type of a gcc2
17217 builtin and then its argument prototype would still apply. */
17218char inet_addr();
17219
17220int main() {
17221inet_addr()
17222; return 0; }
17223EOF
17224if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17225 rm -rf conftest*
17226 eval "ac_cv_lib_$ac_lib_var=yes"
17227else
17228 echo "configure: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 rm -rf conftest*
17231 eval "ac_cv_lib_$ac_lib_var=no"
17232fi
17233rm -f conftest*
17234LIBS="$ac_save_LIBS"
17235
17236fi
17237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17238 echo "$ac_t""yes" 1>&6
17239 INET_LINK="socket"
17240
17241else
17242 echo "$ac_t""no" 1>&6
17243fi
17244
17245
17246fi
17247
17248
17249fi
17250
17251
17252
17253fi
17254done
17255
17256
17257for ac_func in inet_aton
17258do
17259echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17260echo "configure:17261: checking for $ac_func" >&5
17261if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17262 echo $ac_n "(cached) $ac_c" 1>&6
17263else
17264 cat > conftest.$ac_ext <<EOF
17265#line 17266 "configure"
17266#include "confdefs.h"
17267/* System header to define __stub macros and hopefully few prototypes,
17268 which can conflict with char $ac_func(); below. */
17269#include <assert.h>
17270/* Override any gcc2 internal prototype to avoid an error. */
17271/* We use char because int might match the return type of a gcc2
17272 builtin and then its argument prototype would still apply. */
17273char $ac_func();
17274
17275int main() {
17276
17277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17281choke me
17282#else
17283$ac_func();
17284#endif
17285
17286; return 0; }
17287EOF
17288if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17289 rm -rf conftest*
17290 eval "ac_cv_func_$ac_func=yes"
17291else
17292 echo "configure: failed program was:" >&5
17293 cat conftest.$ac_ext >&5
17294 rm -rf conftest*
17295 eval "ac_cv_func_$ac_func=no"
17296fi
17297rm -f conftest*
17298fi
17299
17300if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17301 echo "$ac_t""yes" 1>&6
17302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17303 cat >> confdefs.h <<EOF
17304#define $ac_tr_func 1
17305EOF
17306 cat >> confdefs.h <<\EOF
17307#define HAVE_INET_ATON 1
17308EOF
17309
17310else
17311 echo "$ac_t""no" 1>&6
17312 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17313echo "configure:17314: checking for inet_aton in -l$INET_LINK" >&5
17314ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17316 echo $ac_n "(cached) $ac_c" 1>&6
17317else
17318 ac_save_LIBS="$LIBS"
17319LIBS="-l$INET_LINK $LIBS"
17320cat > conftest.$ac_ext <<EOF
17321#line 17322 "configure"
17322#include "confdefs.h"
17323/* Override any gcc2 internal prototype to avoid an error. */
17324/* We use char because int might match the return type of a gcc2
17325 builtin and then its argument prototype would still apply. */
17326char inet_aton();
17327
17328int main() {
17329inet_aton()
17330; return 0; }
17331EOF
17332if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17333 rm -rf conftest*
17334 eval "ac_cv_lib_$ac_lib_var=yes"
17335else
17336 echo "configure: failed program was:" >&5
17337 cat conftest.$ac_ext >&5
17338 rm -rf conftest*
17339 eval "ac_cv_lib_$ac_lib_var=no"
17340fi
17341rm -f conftest*
17342LIBS="$ac_save_LIBS"
17343
17344fi
17345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17346 echo "$ac_t""yes" 1>&6
17347 cat >> confdefs.h <<\EOF
17348#define HAVE_INET_ATON 1
17349EOF
17350
17351else
17352 echo "$ac_t""no" 1>&6
17353fi
17354
17355
17356fi
17357done
17358
17359
17360if test "x$INET_LINK" != "x"; then
17361 cat >> confdefs.h <<\EOF
17362#define HAVE_INET_ADDR 1
17363EOF
17364
17365 INET_LINK=" -l$INET_LINK"
17366fi
17367
17368fi
17369
17370
17371cat > confcache <<\EOF
17372# This file is a shell script that caches the results of configure
17373# tests run on this system so they can be shared between configure
17374# scripts and configure runs. It is not useful on other systems.
17375# If it contains results you don't want to keep, you may remove or edit it.
17376#
17377# By default, configure uses ./config.cache as the cache file,
17378# creating it if it does not exist already. You can give configure
17379# the --cache-file=FILE option to use a different cache file; that is
17380# what configure does when it calls configure scripts in
17381# subdirectories, so they share the cache.
17382# Giving --cache-file=/dev/null disables caching, for debugging configure.
17383# config.status only pays attention to the cache file if you give it the
17384# --recheck option to rerun configure.
17385#
17386EOF
17387# The following way of writing the cache mishandles newlines in values,
17388# but we know of no workaround that is simple, portable, and efficient.
17389# So, don't put newlines in cache variables' values.
17390# Ultrix sh set writes to stderr and can't be redirected directly,
17391# and sets the high bit in the cache file unless we assign to the vars.
17392(set) 2>&1 |
17393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17394 *ac_space=\ *)
17395 # `set' does not quote correctly, so add quotes (double-quote substitution
17396 # turns \\\\ into \\, and sed turns \\ into \).
17397 sed -n \
17398 -e "s/'/'\\\\''/g" \
17399 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17400 ;;
17401 *)
17402 # `set' quotes correctly as required by POSIX, so do not add quotes.
17403 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17404 ;;
17405 esac >> confcache
17406if cmp -s $cache_file confcache; then
17407 :
17408else
17409 if test -w $cache_file; then
17410 echo "updating cache $cache_file"
17411 cat confcache > $cache_file
17412 else
17413 echo "not updating unwritable cache $cache_file"
17414 fi
17415fi
17416rm -f confcache
17417
17418
17419
17420CPP_MT_FLAG=
17421if test "$TOOLKIT" != "MSW"; then
17422
17423
17424 THREADS_LINK=
17425 THREADS_CFLAGS=
17426
17427 if test "$wxUSE_THREADS" = "yes" ; then
17428 if test "$wxUSE_WINE" = 1 ; then
17429 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17430 wxUSE_THREADS="no"
17431 elif test "$USE_BEOS" = 1; then
17432 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17433 wxUSE_THREADS="no"
17434 fi
17435 fi
17436
17437 if test "$wxUSE_THREADS" = "yes" ; then
17438
17439
17440 THREAD_OPTS="-pthread"
17441 case "${host}" in
17442 *-*-solaris2* | *-*-sunos4* )
17443 if test "x$GCC" = "xyes"; then
17444 THREAD_OPTS="-pthreads $THREAD_OPTS"
17445 else
17446 THREAD_OPTS="-mt $THREAD_OPTS"
17447 fi
17448 ;;
17449 *-*-freebsd*)
17450 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17451 ;;
17452 *-*-darwin* | *-*-cygwin* )
17453 THREAD_OPTS=""
17454 ;;
17455 *-*-aix*)
17456 THREAD_OPTS="pthreads"
17457 ;;
17458 esac
17459
17460 THREAD_OPTS="$THREAD_OPTS pthread none"
17461
17462 THREADS_OK=no
17463 for flag in $THREAD_OPTS; do
17464 case $flag in
17465 none)
17466 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17467echo "configure:17468: checking whether pthreads work without any flags" >&5
17468 ;;
17469
17470 -*)
17471 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17472echo "configure:17473: checking whether pthreads work with $flag" >&5
17473 THREADS_CFLAGS="$flag"
17474 ;;
17475
17476 *)
17477 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17478echo "configure:17479: checking for the pthreads library -l$flag" >&5
17479 THREADS_LINK="-l$flag"
17480 ;;
17481 esac
17482
17483 save_LIBS="$LIBS"
17484 save_CFLAGS="$CFLAGS"
17485 LIBS="$THREADS_LINK $LIBS"
17486 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17487
17488 cat > conftest.$ac_ext <<EOF
17489#line 17490 "configure"
17490#include "confdefs.h"
17491#include <pthread.h>
17492int main() {
17493pthread_create(0,0,0,0);
17494; return 0; }
17495EOF
17496if { (eval echo configure:17497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17497 rm -rf conftest*
17498 THREADS_OK=yes
17499else
17500 echo "configure: failed program was:" >&5
17501 cat conftest.$ac_ext >&5
17502fi
17503rm -f conftest*
17504
17505 LIBS="$save_LIBS"
17506 CFLAGS="$save_CFLAGS"
17507
17508 echo "$ac_t""$THREADS_OK" 1>&6
17509 if test "x$THREADS_OK" = "xyes"; then
17510 break;
17511 fi
17512
17513 THREADS_LINK=""
17514 THREADS_CFLAGS=""
17515 done
17516
17517 if test "x$THREADS_OK" != "xyes"; then
17518 wxUSE_THREADS=no
17519 echo "configure: warning: No thread support on this system... disabled" 1>&2
17520 else
17521 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17522
17523 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17524echo "configure:17525: checking if more special flags are required for pthreads" >&5
17525 flag=no
17526 case "${host}" in
17527 *-aix* | *-freebsd*)
17528 flag="-D_THREAD_SAFE"
17529 ;;
17530 *solaris* | alpha*-osf*)
17531 flag="-D_REENTRANT"
17532 ;;
17533 esac
17534 echo "$ac_t""${flag}" 1>&6
17535 if test "x$flag" != xno; then
17536 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17537 fi
17538
17539 if test "x$THREADS_CFLAGS" != "x"; then
17540 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17541 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17542 fi
17543 fi
17544 fi
17545
17546 if test "$wxUSE_THREADS" = "yes" ; then
17547 for ac_func in thr_setconcurrency
17548do
17549echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17550echo "configure:17551: checking for $ac_func" >&5
17551if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17552 echo $ac_n "(cached) $ac_c" 1>&6
17553else
17554 cat > conftest.$ac_ext <<EOF
17555#line 17556 "configure"
17556#include "confdefs.h"
17557/* System header to define __stub macros and hopefully few prototypes,
17558 which can conflict with char $ac_func(); below. */
17559#include <assert.h>
17560/* Override any gcc2 internal prototype to avoid an error. */
17561/* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17563char $ac_func();
17564
17565int main() {
17566
17567/* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17571choke me
17572#else
17573$ac_func();
17574#endif
17575
17576; return 0; }
17577EOF
17578if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17579 rm -rf conftest*
17580 eval "ac_cv_func_$ac_func=yes"
17581else
17582 echo "configure: failed program was:" >&5
17583 cat conftest.$ac_ext >&5
17584 rm -rf conftest*
17585 eval "ac_cv_func_$ac_func=no"
17586fi
17587rm -f conftest*
17588fi
17589
17590if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17591 echo "$ac_t""yes" 1>&6
17592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17593 cat >> confdefs.h <<EOF
17594#define $ac_tr_func 1
17595EOF
17596
17597else
17598 echo "$ac_t""no" 1>&6
17599fi
17600done
17601
17602
17603 for ac_hdr in sched.h
17604do
17605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17606echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17607echo "configure:17608: checking for $ac_hdr" >&5
17608if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17609 echo $ac_n "(cached) $ac_c" 1>&6
17610else
17611 cat > conftest.$ac_ext <<EOF
17612#line 17613 "configure"
17613#include "confdefs.h"
17614#include <$ac_hdr>
17615EOF
17616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17617{ (eval echo configure:17618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17619if test -z "$ac_err"; then
17620 rm -rf conftest*
17621 eval "ac_cv_header_$ac_safe=yes"
17622else
17623 echo "$ac_err" >&5
17624 echo "configure: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17626 rm -rf conftest*
17627 eval "ac_cv_header_$ac_safe=no"
17628fi
17629rm -f conftest*
17630fi
17631if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17632 echo "$ac_t""yes" 1>&6
17633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17634 cat >> confdefs.h <<EOF
17635#define $ac_tr_hdr 1
17636EOF
17637
17638else
17639 echo "$ac_t""no" 1>&6
17640fi
17641done
17642
17643 if test "$ac_cv_header_sched_h" = "yes"; then
17644 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17645echo "configure:17646: checking for sched_yield" >&5
17646if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17647 echo $ac_n "(cached) $ac_c" 1>&6
17648else
17649 cat > conftest.$ac_ext <<EOF
17650#line 17651 "configure"
17651#include "confdefs.h"
17652/* System header to define __stub macros and hopefully few prototypes,
17653 which can conflict with char sched_yield(); below. */
17654#include <assert.h>
17655/* Override any gcc2 internal prototype to avoid an error. */
17656/* We use char because int might match the return type of a gcc2
17657 builtin and then its argument prototype would still apply. */
17658char sched_yield();
17659
17660int main() {
17661
17662/* The GNU C library defines this for functions which it implements
17663 to always fail with ENOSYS. Some functions are actually named
17664 something starting with __ and the normal name is an alias. */
17665#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17666choke me
17667#else
17668sched_yield();
17669#endif
17670
17671; return 0; }
17672EOF
17673if { (eval echo configure:17674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17674 rm -rf conftest*
17675 eval "ac_cv_func_sched_yield=yes"
17676else
17677 echo "configure: failed program was:" >&5
17678 cat conftest.$ac_ext >&5
17679 rm -rf conftest*
17680 eval "ac_cv_func_sched_yield=no"
17681fi
17682rm -f conftest*
17683fi
17684
17685if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17686 echo "$ac_t""yes" 1>&6
17687 cat >> confdefs.h <<\EOF
17688#define HAVE_SCHED_YIELD 1
17689EOF
17690
17691else
17692 echo "$ac_t""no" 1>&6
17693
17694 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17695echo "configure:17696: checking for sched_yield in -lposix4" >&5
17696ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17697if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17698 echo $ac_n "(cached) $ac_c" 1>&6
17699else
17700 ac_save_LIBS="$LIBS"
17701LIBS="-lposix4 $LIBS"
17702cat > conftest.$ac_ext <<EOF
17703#line 17704 "configure"
17704#include "confdefs.h"
17705/* Override any gcc2 internal prototype to avoid an error. */
17706/* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708char sched_yield();
17709
17710int main() {
17711sched_yield()
17712; return 0; }
17713EOF
17714if { (eval echo configure:17715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17715 rm -rf conftest*
17716 eval "ac_cv_lib_$ac_lib_var=yes"
17717else
17718 echo "configure: failed program was:" >&5
17719 cat conftest.$ac_ext >&5
17720 rm -rf conftest*
17721 eval "ac_cv_lib_$ac_lib_var=no"
17722fi
17723rm -f conftest*
17724LIBS="$ac_save_LIBS"
17725
17726fi
17727if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17728 echo "$ac_t""yes" 1>&6
17729 cat >> confdefs.h <<\EOF
17730#define HAVE_SCHED_YIELD 1
17731EOF
17732 POSIX4_LINK=" -lposix4"
17733else
17734 echo "$ac_t""no" 1>&6
17735echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17736
17737fi
17738
17739
17740
17741fi
17742
17743 fi
17744
17745 HAVE_PRIOR_FUNCS=0
17746 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17747echo "configure:17748: checking for pthread_attr_getschedpolicy" >&5
17748if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17749 echo $ac_n "(cached) $ac_c" 1>&6
17750else
17751 cat > conftest.$ac_ext <<EOF
17752#line 17753 "configure"
17753#include "confdefs.h"
17754/* System header to define __stub macros and hopefully few prototypes,
17755 which can conflict with char pthread_attr_getschedpolicy(); below. */
17756#include <assert.h>
17757/* Override any gcc2 internal prototype to avoid an error. */
17758/* We use char because int might match the return type of a gcc2
17759 builtin and then its argument prototype would still apply. */
17760char pthread_attr_getschedpolicy();
17761
17762int main() {
17763
17764/* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17768choke me
17769#else
17770pthread_attr_getschedpolicy();
17771#endif
17772
17773; return 0; }
17774EOF
17775if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17776 rm -rf conftest*
17777 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17778else
17779 echo "configure: failed program was:" >&5
17780 cat conftest.$ac_ext >&5
17781 rm -rf conftest*
17782 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17783fi
17784rm -f conftest*
17785fi
17786
17787if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17788 echo "$ac_t""yes" 1>&6
17789 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17790echo "configure:17791: checking for pthread_attr_setschedparam" >&5
17791if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17792 echo $ac_n "(cached) $ac_c" 1>&6
17793else
17794 cat > conftest.$ac_ext <<EOF
17795#line 17796 "configure"
17796#include "confdefs.h"
17797/* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char pthread_attr_setschedparam(); below. */
17799#include <assert.h>
17800/* Override any gcc2 internal prototype to avoid an error. */
17801/* We use char because int might match the return type of a gcc2
17802 builtin and then its argument prototype would still apply. */
17803char pthread_attr_setschedparam();
17804
17805int main() {
17806
17807/* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17811choke me
17812#else
17813pthread_attr_setschedparam();
17814#endif
17815
17816; return 0; }
17817EOF
17818if { (eval echo configure:17819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17819 rm -rf conftest*
17820 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17821else
17822 echo "configure: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17824 rm -rf conftest*
17825 eval "ac_cv_func_pthread_attr_setschedparam=no"
17826fi
17827rm -f conftest*
17828fi
17829
17830if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17831 echo "$ac_t""yes" 1>&6
17832 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17833echo "configure:17834: checking for sched_get_priority_max" >&5
17834if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17835 echo $ac_n "(cached) $ac_c" 1>&6
17836else
17837 cat > conftest.$ac_ext <<EOF
17838#line 17839 "configure"
17839#include "confdefs.h"
17840/* System header to define __stub macros and hopefully few prototypes
17841else
17842 echo "$ac_t""no" 1>&6
17843which can conflict with char sched_get_priority_max(); below. */
17844#include <assert.h>
17845/* Override any gcc2 internal prototype to avoid an error. */
17846/* We use char because int might match the return type of a gcc2
17847 builtin and then its argument prototype would still apply. */
17848char sched_get_priority_max();
17849
17850int main() {
17851
17852/* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17856choke me
17857#else
17858sched_get_priority_max();
17859#endif
17860
17861; return 0; }
17862EOF
17863if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17864 rm -rf conftest*
17865 eval "ac_cv_func_sched_get_priority_max=yes"
17866else
17867 echo "configure: failed program was:" >&5
17868 cat conftest.$ac_ext >&5
17869 rm -rf conftest*
17870 eval "ac_cv_func_sched_get_priority_max=no"
17871fi
17872rm -f conftest*
17873fi
17874
17875if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17876 echo "$ac_t""yes" 1>&6
17877 HAVE_PRIOR_FUNCS=1
17878else
17879 echo "$ac_t""no" 1>&6
17880echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17881echo "configure:17882: checking for sched_get_priority_max in -lposix4" >&5
17882ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17883if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17884 echo $ac_n "(cached) $ac_c" 1>&6
17885else
17886 ac_save_LIBS="$LIBS"
17887LIBS="-lposix4 $LIBS"
17888cat > conftest.$ac_ext <<EOF
17889#line 17890 "configure"
17890#include "confdefs.h"
17891/* Override any gcc2 internal prototype to avoid an error. */
17892/* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17894char sched_get_priority_max();
17895
17896int main() {
17897sched_get_priority_max()
17898; return 0; }
17899EOF
17900if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17901 rm -rf conftest*
17902 eval "ac_cv_lib_$ac_lib_var=yes"
17903else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_lib_$ac_lib_var=no"
17908fi
17909rm -f conftest*
17910LIBS="$ac_save_LIBS"
17911
17912fi
17913if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17914 echo "$ac_t""yes" 1>&6
17915
17916 HAVE_PRIOR_FUNCS=1
17917 POSIX4_LINK=" -lposix4"
17918
17919else
17920 echo "$ac_t""no" 1>&6
17921fi
17922
17923
17924fi
17925
17926
17927else
17928 echo "$ac_t""no" 1>&6
17929fi
17930
17931
17932fi
17933
17934
17935 if test "$HAVE_PRIOR_FUNCS" = 1; then
17936 cat >> confdefs.h <<\EOF
17937#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17938EOF
17939
17940 else
17941 echo "configure: warning: Setting thread priority will not work" 1>&2
17942 fi
17943
17944 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17945echo "configure:17946: checking for pthread_cancel" >&5
17946if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17947 echo $ac_n "(cached) $ac_c" 1>&6
17948else
17949 cat > conftest.$ac_ext <<EOF
17950#line 17951 "configure"
17951#include "confdefs.h"
17952/* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char pthread_cancel(); below. */
17954#include <assert.h>
17955/* Override any gcc2 internal prototype to avoid an error. */
17956/* We use char because int might match the return type of a gcc2
17957 builtin and then its argument prototype would still apply. */
17958char pthread_cancel();
17959
17960int main() {
17961
17962/* The GNU C library defines this for functions which it implements
17963 to always fail with ENOSYS. Some functions are actually named
17964 something starting with __ and the normal name is an alias. */
17965#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17966choke me
17967#else
17968pthread_cancel();
17969#endif
17970
17971; return 0; }
17972EOF
17973if { (eval echo configure:17974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17974 rm -rf conftest*
17975 eval "ac_cv_func_pthread_cancel=yes"
17976else
17977 echo "configure: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17979 rm -rf conftest*
17980 eval "ac_cv_func_pthread_cancel=no"
17981fi
17982rm -f conftest*
17983fi
17984
17985if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
17986 echo "$ac_t""yes" 1>&6
17987 cat >> confdefs.h <<\EOF
17988#define HAVE_PTHREAD_CANCEL 1
17989EOF
17990
17991else
17992 echo "$ac_t""no" 1>&6
17993echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17994fi
17995
17996
17997 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17998echo "configure:17999: checking for pthread_cleanup_push/pop" >&5
17999if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18000 echo $ac_n "(cached) $ac_c" 1>&6
18001else
18002
18003 cat > conftest.$ac_ext <<EOF
18004#line 18005 "configure"
18005#include "confdefs.h"
18006#include <pthread.h>
18007int main() {
18008
18009 pthread_cleanup_push(NULL, NULL);
18010 pthread_cleanup_pop(0);
18011
18012; return 0; }
18013EOF
18014if { (eval echo configure:18015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18015 rm -rf conftest*
18016
18017 wx_cv_func_pthread_cleanup_push=yes
18018
18019else
18020 echo "configure: failed program was:" >&5
18021 cat conftest.$ac_ext >&5
18022 rm -rf conftest*
18023
18024 wx_cv_func_pthread_cleanup_push=no
18025
18026fi
18027rm -f conftest*
18028
18029fi
18030
18031echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18032
18033 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18034 cat >> confdefs.h <<\EOF
18035#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18036EOF
18037
18038 fi
18039
18040
18041 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18042 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18043 fi
18044
18045 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18046echo "configure:18047: checking for pthread_mutexattr_t" >&5
18047if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18048 echo $ac_n "(cached) $ac_c" 1>&6
18049else
18050
18051 cat > conftest.$ac_ext <<EOF
18052#line 18053 "configure"
18053#include "confdefs.h"
18054#include <pthread.h>
18055int main() {
18056
18057 pthread_mutexattr_t attr;
18058 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18059
18060; return 0; }
18061EOF
18062if { (eval echo configure:18063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18063 rm -rf conftest*
18064
18065 wx_cv_type_pthread_mutexattr_t=yes
18066
18067else
18068 echo "configure: failed program was:" >&5
18069 cat conftest.$ac_ext >&5
18070 rm -rf conftest*
18071
18072 wx_cv_type_pthread_mutexattr_t=no
18073
18074
18075fi
18076rm -f conftest*
18077
18078fi
18079
18080echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18081
18082 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18083 cat >> confdefs.h <<\EOF
18084#define HAVE_PTHREAD_MUTEXATTR_T 1
18085EOF
18086
18087 else
18088 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18089echo "configure:18090: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18090if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18091 echo $ac_n "(cached) $ac_c" 1>&6
18092else
18093
18094 cat > conftest.$ac_ext <<EOF
18095#line 18096 "configure"
18096#include "confdefs.h"
18097#include <pthread.h>
18098int main() {
18099
18100 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18101
18102; return 0; }
18103EOF
18104if { (eval echo configure:18105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18105 rm -rf conftest*
18106
18107 wx_cv_type_pthread_rec_mutex_init=yes
18108
18109else
18110 echo "configure: failed program was:" >&5
18111 cat conftest.$ac_ext >&5
18112 rm -rf conftest*
18113
18114 wx_cv_type_pthread_rec_mutex_init=no
18115
18116
18117fi
18118rm -f conftest*
18119
18120fi
18121
18122echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18123 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18124 cat >> confdefs.h <<\EOF
18125#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18126EOF
18127
18128 else
18129 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18130 fi
18131 fi
18132 fi
18133
18134fi
18135
18136if test "$wxUSE_THREADS" = "yes"; then
18137 cat >> confdefs.h <<\EOF
18138#define wxUSE_THREADS 1
18139EOF
18140
18141
18142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18143else
18144 if test "$ac_cv_func_strtok_r" = "yes"; then
18145 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18146echo "configure:18147: checking if -D_REENTRANT is needed" >&5
18147 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18148 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18149 echo "$ac_t""yes" 1>&6
18150 else
18151 echo "$ac_t""no" 1>&6
18152 fi
18153 fi
18154fi
18155
18156if test "$WXGTK20" = 1 ; then
18157 cat >> confdefs.h <<EOF
18158#define __WXGTK20__ $WXGTK20
18159EOF
18160
18161 WXGTK12=1
18162fi
18163
18164if test "$WXGTK12" = 1 ; then
18165 cat >> confdefs.h <<EOF
18166#define __WXGTK12__ $WXGTK12
18167EOF
18168
18169fi
18170
18171if test "$WXGTK127" = 1 ; then
18172 cat >> confdefs.h <<EOF
18173#define __WXGTK127__ $WXGTK127
18174EOF
18175
18176fi
18177
18178WXDEBUG=
18179
18180if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18181 WXDEBUG="-g"
18182 wxUSE_OPTIMISE=no
18183fi
18184
18185if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18186 wxUSE_DEBUG_INFO=yes
18187 WXDEBUG="-ggdb"
18188fi
18189
18190if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18191 cat >> confdefs.h <<\EOF
18192#define WXDEBUG 1
18193EOF
18194
18195 WXDEBUG_DEFINE="-D__WXDEBUG__"
18196else
18197 if test "$wxUSE_GTK" = 1 ; then
18198 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18199 fi
18200fi
18201
18202if test "$wxUSE_MEM_TRACING" = "yes" ; then
18203 cat >> confdefs.h <<\EOF
18204#define wxUSE_MEMORY_TRACING 1
18205EOF
18206
18207 cat >> confdefs.h <<\EOF
18208#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18209EOF
18210
18211 cat >> confdefs.h <<\EOF
18212#define wxUSE_DEBUG_NEW_ALWAYS 1
18213EOF
18214
18215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18216fi
18217
18218if test "$wxUSE_DMALLOC" = "yes" ; then
18219 DMALLOC_LIBS="-ldmalloc"
18220fi
18221
18222PROFILE=
18223if test "$wxUSE_PROFILE" = "yes" ; then
18224 PROFILE=" -pg"
18225fi
18226
18227CODE_GEN_FLAGS=
18228CODE_GEN_FLAGS_CXX=
18229if test "$GCC" = "yes" ; then
18230 if test "$wxUSE_NO_RTTI" = "yes" ; then
18231 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18232 fi
18233 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18234 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18235 fi
18236 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18237 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18238 fi
18239 if test "$USE_WIN32" = 1 ; then
18240 # I'm not even really sure what this was ever added to solve,
18241 # but someone added it for mingw native builds, so I guess
18242 # they had a reason, right??
18243 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18244 fi
18245
18246 case "${host}" in
18247 powerpc*-*-aix* )
18248 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18249 ;;
18250 esac
18251fi
18252
18253if test "$wxUSE_OPTIMISE" = "no" ; then
18254 OPTIMISE=
18255else
18256 if test "$GCC" = yes ; then
18257 OPTIMISE="-O2"
18258 case "${host}" in
18259 i586-*-*|i686-*-* )
18260 OPTIMISE="${OPTIMISE} "
18261 ;;
18262 esac
18263 else
18264 OPTIMISE="-O"
18265 fi
18266fi
18267
18268if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18269 cat >> confdefs.h <<\EOF
18270#define WXWIN_COMPATIBILITY_2 1
18271EOF
18272
18273
18274 WXWIN_COMPATIBILITY_2_2="yes"
18275fi
18276
18277if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18278 cat >> confdefs.h <<\EOF
18279#define WXWIN_COMPATIBILITY_2_2 1
18280EOF
18281
18282fi
18283
18284
18285if test "$wxUSE_GUI" = "yes"; then
18286 cat >> confdefs.h <<\EOF
18287#define wxUSE_GUI 1
18288EOF
18289
18290
18291 else
18292 cat >> confdefs.h <<\EOF
18293#define wxUSE_NOGUI 1
18294EOF
18295
18296fi
18297
18298
18299if test "$wxUSE_UNIX" = "yes"; then
18300 cat >> confdefs.h <<\EOF
18301#define wxUSE_UNIX 1
18302EOF
18303
18304fi
18305
18306
18307if test "$wxUSE_APPLE_IEEE" = "yes"; then
18308 cat >> confdefs.h <<\EOF
18309#define wxUSE_APPLE_IEEE 1
18310EOF
18311
18312fi
18313
18314if test "$wxUSE_TIMER" = "yes"; then
18315 cat >> confdefs.h <<\EOF
18316#define wxUSE_TIMER 1
18317EOF
18318
18319fi
18320
18321if test "$wxUSE_WAVE" = "yes"; then
18322 cat >> confdefs.h <<\EOF
18323#define wxUSE_WAVE 1
18324EOF
18325
18326fi
18327
18328if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18329 cat >> confdefs.h <<\EOF
18330#define wxUSE_CMDLINE_PARSER 1
18331EOF
18332
18333fi
18334
18335if test "$wxUSE_STOPWATCH" = "yes"; then
18336 cat >> confdefs.h <<\EOF
18337#define wxUSE_STOPWATCH 1
18338EOF
18339
18340fi
18341
18342if test "$wxUSE_DATETIME" = "yes"; then
18343 cat >> confdefs.h <<\EOF
18344#define wxUSE_DATETIME 1
18345EOF
18346
18347fi
18348
18349if test "$wxUSE_TIMEDATE" = "yes"; then
18350 cat >> confdefs.h <<\EOF
18351#define wxUSE_TIMEDATE 1
18352EOF
18353
18354fi
18355
18356if test "$wxUSE_FILE" = "yes"; then
18357 cat >> confdefs.h <<\EOF
18358#define wxUSE_FILE 1
18359EOF
18360
18361fi
18362
18363if test "$wxUSE_FFILE" = "yes"; then
18364 cat >> confdefs.h <<\EOF
18365#define wxUSE_FFILE 1
18366EOF
18367
18368fi
18369
18370if test "$wxUSE_FILESYSTEM" = "yes"; then
18371 cat >> confdefs.h <<\EOF
18372#define wxUSE_FILESYSTEM 1
18373EOF
18374
18375fi
18376
18377if test "$wxUSE_FS_INET" = "yes"; then
18378 cat >> confdefs.h <<\EOF
18379#define wxUSE_FS_INET 1
18380EOF
18381
18382fi
18383
18384if test "$wxUSE_FS_ZIP" = "yes"; then
18385 cat >> confdefs.h <<\EOF
18386#define wxUSE_FS_ZIP 1
18387EOF
18388
18389fi
18390
18391if test "$wxUSE_ZIPSTREAM" = "yes"; then
18392 cat >> confdefs.h <<\EOF
18393#define wxUSE_ZIPSTREAM 1
18394EOF
18395
18396fi
18397
18398if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18399 cat >> confdefs.h <<\EOF
18400#define wxUSE_ON_FATAL_EXCEPTION 1
18401EOF
18402
18403fi
18404
18405if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18406 cat >> confdefs.h <<\EOF
18407#define wxUSE_SNGLINST_CHECKER 1
18408EOF
18409
18410fi
18411
18412if test "$wxUSE_BUSYINFO" = "yes"; then
18413 cat >> confdefs.h <<\EOF
18414#define wxUSE_BUSYINFO 1
18415EOF
18416
18417fi
18418
18419if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18420 cat >> confdefs.h <<\EOF
18421#define wxUSE_STD_IOSTREAM 1
18422EOF
18423
18424fi
18425
18426if test "$wxUSE_TEXTBUFFER" = "yes"; then
18427 cat >> confdefs.h <<\EOF
18428#define wxUSE_TEXTBUFFER 1
18429EOF
18430
18431fi
18432
18433if test "$wxUSE_TEXTFILE" = "yes"; then
18434 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18435 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18436 else
18437 cat >> confdefs.h <<\EOF
18438#define wxUSE_TEXTFILE 1
18439EOF
18440
18441 fi
18442fi
18443
18444if test "$wxUSE_CONFIG" = "yes" ; then
18445 if test "$wxUSE_TEXTFILE" != "yes"; then
18446 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18447 else
18448 cat >> confdefs.h <<\EOF
18449#define wxUSE_CONFIG 1
18450EOF
18451
18452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18453 fi
18454fi
18455
18456if test "$wxUSE_INTL" = "yes" ; then
18457 if test "$wxUSE_FILE" != "yes"; then
18458 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18459 else
18460 cat >> confdefs.h <<\EOF
18461#define wxUSE_INTL 1
18462EOF
18463
18464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18465 GUIDIST="$GUIDIST INTL_DIST"
18466 fi
18467fi
18468
18469if test "$wxUSE_LOG" = "yes"; then
18470 cat >> confdefs.h <<\EOF
18471#define wxUSE_LOG 1
18472EOF
18473
18474
18475 if test "$wxUSE_LOGGUI" = "yes"; then
18476 cat >> confdefs.h <<\EOF
18477#define wxUSE_LOGGUI 1
18478EOF
18479
18480 fi
18481
18482 if test "$wxUSE_LOGWINDOW" = "yes"; then
18483 cat >> confdefs.h <<\EOF
18484#define wxUSE_LOGWINDOW 1
18485EOF
18486
18487 fi
18488
18489 if test "$wxUSE_LOGDIALOG" = "yes"; then
18490 cat >> confdefs.h <<\EOF
18491#define wxUSE_LOG_DIALOG 1
18492EOF
18493
18494 fi
18495fi
18496
18497if test "$wxUSE_LONGLONG" = "yes"; then
18498 cat >> confdefs.h <<\EOF
18499#define wxUSE_LONGLONG 1
18500EOF
18501
18502fi
18503
18504if test "$wxUSE_GEOMETRY" = "yes"; then
18505 cat >> confdefs.h <<\EOF
18506#define wxUSE_GEOMETRY 1
18507EOF
18508
18509fi
18510
18511if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18512 cat >> confdefs.h <<\EOF
18513#define wxUSE_DIALUP_MANAGER 1
18514EOF
18515
18516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18517fi
18518
18519if test "$wxUSE_STREAMS" = "yes" ; then
18520 cat >> confdefs.h <<\EOF
18521#define wxUSE_STREAMS 1
18522EOF
18523
18524fi
18525
18526
18527if test "$wxUSE_DATETIME" = "yes"; then
18528 for ac_func in strptime
18529do
18530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18531echo "configure:18532: checking for $ac_func" >&5
18532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533 echo $ac_n "(cached) $ac_c" 1>&6
18534else
18535 cat > conftest.$ac_ext <<EOF
18536#line 18537 "configure"
18537#include "confdefs.h"
18538/* System header to define __stub macros and hopefully few prototypes,
18539 which can conflict with char $ac_func(); below. */
18540#include <assert.h>
18541/* Override any gcc2 internal prototype to avoid an error. */
18542/* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544char $ac_func();
18545
18546int main() {
18547
18548/* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552choke me
18553#else
18554$ac_func();
18555#endif
18556
18557; return 0; }
18558EOF
18559if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18560 rm -rf conftest*
18561 eval "ac_cv_func_$ac_func=yes"
18562else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 eval "ac_cv_func_$ac_func=no"
18567fi
18568rm -f conftest*
18569fi
18570
18571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572 echo "$ac_t""yes" 1>&6
18573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574 cat >> confdefs.h <<EOF
18575#define $ac_tr_func 1
18576EOF
18577
18578else
18579 echo "$ac_t""no" 1>&6
18580fi
18581done
18582
18583
18584 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18585echo "configure:18586: checking for timezone variable in <time.h>" >&5
18586if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18587 echo $ac_n "(cached) $ac_c" 1>&6
18588else
18589
18590 cat > conftest.$ac_ext <<EOF
18591#line 18592 "configure"
18592#include "confdefs.h"
18593
18594 #include <time.h>
18595
18596int main() {
18597
18598 int tz;
18599 tz = timezone;
18600
18601; return 0; }
18602EOF
18603if { (eval echo configure:18604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18604 rm -rf conftest*
18605
18606 wx_cv_var_timezone=timezone
18607
18608else
18609 echo "configure: failed program was:" >&5
18610 cat conftest.$ac_ext >&5
18611 rm -rf conftest*
18612
18613 cat > conftest.$ac_ext <<EOF
18614#line 18615 "configure"
18615#include "confdefs.h"
18616
18617 #include <time.h>
18618
18619int main() {
18620
18621 int tz;
18622 tz = _timezone;
18623
18624; return 0; }
18625EOF
18626if { (eval echo configure:18627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18627 rm -rf conftest*
18628
18629 wx_cv_var_timezone=_timezone
18630
18631else
18632 echo "configure: failed program was:" >&5
18633 cat conftest.$ac_ext >&5
18634 rm -rf conftest*
18635
18636 cat > conftest.$ac_ext <<EOF
18637#line 18638 "configure"
18638#include "confdefs.h"
18639
18640 #include <time.h>
18641
18642int main() {
18643
18644 int tz;
18645 tz = __timezone;
18646
18647; return 0; }
18648EOF
18649if { (eval echo configure:18650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18650 rm -rf conftest*
18651
18652 wx_cv_var_timezone=__timezone
18653
18654else
18655 echo "configure: failed program was:" >&5
18656 cat conftest.$ac_ext >&5
18657 rm -rf conftest*
18658
18659 if test "$USE_DOS" = 0 ; then
18660 echo "configure: warning: no timezone variable" 1>&2
18661 fi
18662
18663
18664fi
18665rm -f conftest*
18666
18667
18668fi
18669rm -f conftest*
18670
18671
18672fi
18673rm -f conftest*
18674
18675
18676fi
18677
18678echo "$ac_t""$wx_cv_var_timezone" 1>&6
18679
18680 if test "x$wx_cv_var_timezone" != x ; then
18681 cat >> confdefs.h <<EOF
18682#define WX_TIMEZONE $wx_cv_var_timezone
18683EOF
18684
18685 fi
18686
18687 for ac_func in localtime
18688do
18689echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18690echo "configure:18691: checking for $ac_func" >&5
18691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
18693else
18694 cat > conftest.$ac_ext <<EOF
18695#line 18696 "configure"
18696#include "confdefs.h"
18697/* System header to define __stub macros and hopefully few prototypes,
18698 which can conflict with char $ac_func(); below. */
18699#include <assert.h>
18700/* Override any gcc2 internal prototype to avoid an error. */
18701/* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703char $ac_func();
18704
18705int main() {
18706
18707/* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18711choke me
18712#else
18713$ac_func();
18714#endif
18715
18716; return 0; }
18717EOF
18718if { (eval echo configure:18719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18719 rm -rf conftest*
18720 eval "ac_cv_func_$ac_func=yes"
18721else
18722 echo "configure: failed program was:" >&5
18723 cat conftest.$ac_ext >&5
18724 rm -rf conftest*
18725 eval "ac_cv_func_$ac_func=no"
18726fi
18727rm -f conftest*
18728fi
18729
18730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18731 echo "$ac_t""yes" 1>&6
18732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18733 cat >> confdefs.h <<EOF
18734#define $ac_tr_func 1
18735EOF
18736
18737else
18738 echo "$ac_t""no" 1>&6
18739fi
18740done
18741
18742
18743 if test "$ac_cv_func_localtime" = "yes"; then
18744 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18745echo "configure:18746: checking for tm_gmtoff in struct tm" >&5
18746if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18747 echo $ac_n "(cached) $ac_c" 1>&6
18748else
18749
18750 cat > conftest.$ac_ext <<EOF
18751#line 18752 "configure"
18752#include "confdefs.h"
18753
18754 #include <time.h>
18755
18756int main() {
18757
18758 struct tm tm;
18759 tm.tm_gmtoff++;
18760
18761; return 0; }
18762EOF
18763if { (eval echo configure:18764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18764 rm -rf conftest*
18765
18766 wx_cv_struct_tm_has_gmtoff=yes
18767
18768else
18769 echo "configure: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 rm -rf conftest*
18772 wx_cv_struct_tm_has_gmtoff=no
18773
18774fi
18775rm -f conftest*
18776
18777fi
18778
18779echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18780 fi
18781
18782 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18783 cat >> confdefs.h <<\EOF
18784#define WX_GMTOFF_IN_TM 1
18785EOF
18786
18787 fi
18788
18789 for ac_func in gettimeofday ftime
18790do
18791echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18792echo "configure:18793: checking for $ac_func" >&5
18793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18794 echo $ac_n "(cached) $ac_c" 1>&6
18795else
18796 cat > conftest.$ac_ext <<EOF
18797#line 18798 "configure"
18798#include "confdefs.h"
18799/* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func(); below. */
18801#include <assert.h>
18802/* Override any gcc2 internal prototype to avoid an error. */
18803/* We use char because int might match the return type of a gcc2
18804 builtin and then its argument prototype would still apply. */
18805char $ac_func();
18806
18807int main() {
18808
18809/* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
18812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18813choke me
18814#else
18815$ac_func();
18816#endif
18817
18818; return 0; }
18819EOF
18820if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18821 rm -rf conftest*
18822 eval "ac_cv_func_$ac_func=yes"
18823else
18824 echo "configure: failed program was:" >&5
18825 cat conftest.$ac_ext >&5
18826 rm -rf conftest*
18827 eval "ac_cv_func_$ac_func=no"
18828fi
18829rm -f conftest*
18830fi
18831
18832if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18833 echo "$ac_t""yes" 1>&6
18834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18835 cat >> confdefs.h <<EOF
18836#define $ac_tr_func 1
18837EOF
18838 break
18839else
18840 echo "$ac_t""no" 1>&6
18841fi
18842done
18843
18844
18845 if test "$ac_cv_func_gettimeofday" = "yes"; then
18846 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18847echo "configure:18848: checking whether gettimeofday takes two arguments" >&5
18848if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18849 echo $ac_n "(cached) $ac_c" 1>&6
18850else
18851
18852
18853 ac_ext=C
18854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18855ac_cpp='$CXXCPP $CPPFLAGS'
18856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18858cross_compiling=$ac_cv_prog_cxx_cross
18859
18860
18861 cat > conftest.$ac_ext <<EOF
18862#line 18863 "configure"
18863#include "confdefs.h"
18864
18865 #include <sys/time.h>
18866 #include <unistd.h>
18867
18868int main() {
18869
18870 struct timeval tv;
18871 gettimeofday(&tv, NULL);
18872
18873; return 0; }
18874EOF
18875if { (eval echo configure:18876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18876 rm -rf conftest*
18877 wx_cv_func_gettimeofday_has_2_args=yes
18878else
18879 echo "configure: failed program was:" >&5
18880 cat conftest.$ac_ext >&5
18881 rm -rf conftest*
18882 cat > conftest.$ac_ext <<EOF
18883#line 18884 "configure"
18884#include "confdefs.h"
18885
18886 #include <sys/time.h>
18887 #include <unistd.h>
18888
18889int main() {
18890
18891 struct timeval tv;
18892 gettimeofday(&tv);
18893
18894; return 0; }
18895EOF
18896if { (eval echo configure:18897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18897 rm -rf conftest*
18898 wx_cv_func_gettimeofday_has_2_args=no
18899else
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 rm -rf conftest*
18903
18904 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18905 wx_cv_func_gettimeofday_has_2_args=unknown
18906
18907
18908fi
18909rm -f conftest*
18910
18911fi
18912rm -f conftest*
18913 ac_ext=c
18914# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18915ac_cpp='$CPP $CPPFLAGS'
18916ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18917ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18918cross_compiling=$ac_cv_prog_cc_cross
18919
18920
18921fi
18922
18923echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18924
18925 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18926 cat >> confdefs.h <<\EOF
18927#define WX_GETTIMEOFDAY_NO_TZ 1
18928EOF
18929
18930 fi
18931 fi
18932
18933 cat >> confdefs.h <<\EOF
18934#define wxUSE_TIMEDATE 1
18935EOF
18936
18937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18938fi
18939
18940
18941if test "$wxUSE_SOCKETS" = "yes"; then
18942 if test "$wxUSE_X11" = "1"; then
18943 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18944 wxUSE_SOCKETS="no"
18945 fi
18946
18947 if test "$wxUSE_MGL" = "1"; then
18948 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18949 wxUSE_SOCKETS="no"
18950 fi
18951fi
18952
18953if test "$wxUSE_SOCKETS" = "yes"; then
18954 if test "$TOOLKIT" != "MSW"; then
18955 echo $ac_n "checking for socket""... $ac_c" 1>&6
18956echo "configure:18957: checking for socket" >&5
18957if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18959else
18960 cat > conftest.$ac_ext <<EOF
18961#line 18962 "configure"
18962#include "confdefs.h"
18963/* System header to define __stub macros and hopefully few prototypes,
18964 which can conflict with char socket(); below. */
18965#include <assert.h>
18966/* Override any gcc2 internal prototype to avoid an error. */
18967/* We use char because int might match the return type of a gcc2
18968 builtin and then its argument prototype would still apply. */
18969char socket();
18970
18971int main() {
18972
18973/* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976#if defined (__stub_socket) || defined (__stub___socket)
18977choke me
18978#else
18979socket();
18980#endif
18981
18982; return 0; }
18983EOF
18984if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18985 rm -rf conftest*
18986 eval "ac_cv_func_socket=yes"
18987else
18988 echo "configure: failed program was:" >&5
18989 cat conftest.$ac_ext >&5
18990 rm -rf conftest*
18991 eval "ac_cv_func_socket=no"
18992fi
18993rm -f conftest*
18994fi
18995
18996if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18997 echo "$ac_t""yes" 1>&6
18998 :
18999else
19000 echo "$ac_t""no" 1>&6
19001echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19002echo "configure:19003: checking for socket in -lsocket" >&5
19003ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19004if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19005 echo $ac_n "(cached) $ac_c" 1>&6
19006else
19007 ac_save_LIBS="$LIBS"
19008LIBS="-lsocket $LIBS"
19009cat > conftest.$ac_ext <<EOF
19010#line 19011 "configure"
19011#include "confdefs.h"
19012/* Override any gcc2 internal prototype to avoid an error. */
19013/* We use char because int might match the return type of a gcc2
19014 builtin and then its argument prototype would still apply. */
19015char socket();
19016
19017int main() {
19018socket()
19019; return 0; }
19020EOF
19021if { (eval echo configure:19022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19022 rm -rf conftest*
19023 eval "ac_cv_lib_$ac_lib_var=yes"
19024else
19025 echo "configure: failed program was:" >&5
19026 cat conftest.$ac_ext >&5
19027 rm -rf conftest*
19028 eval "ac_cv_lib_$ac_lib_var=no"
19029fi
19030rm -f conftest*
19031LIBS="$ac_save_LIBS"
19032
19033fi
19034if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19035 echo "$ac_t""yes" 1>&6
19036 if test "$INET_LINK" != " -lsocket"; then
19037 INET_LINK="$INET_LINK -lsocket"
19038 fi
19039else
19040 echo "$ac_t""no" 1>&6
19041
19042 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19043 wxUSE_SOCKETS=no
19044
19045
19046fi
19047
19048
19049fi
19050
19051 fi
19052fi
19053
19054if test "$wxUSE_SOCKETS" = "yes" ; then
19055 if test "$TOOLKIT" != "MSW"; then
19056 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19057echo "configure:19058: checking what is the type of the third argument of getsockname" >&5
19058if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19059 echo $ac_n "(cached) $ac_c" 1>&6
19060else
19061
19062
19063 ac_ext=C
19064# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19065ac_cpp='$CXXCPP $CPPFLAGS'
19066ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19067ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19068cross_compiling=$ac_cv_prog_cxx_cross
19069
19070
19071 cat > conftest.$ac_ext <<EOF
19072#line 19073 "configure"
19073#include "confdefs.h"
19074
19075 #include <sys/types.h>
19076 #include <sys/socket.h>
19077
19078int main() {
19079
19080 socklen_t len;
19081 getsockname(0, 0, &len);
19082
19083; return 0; }
19084EOF
19085if { (eval echo configure:19086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19086 rm -rf conftest*
19087 wx_cv_type_getsockname3=socklen_t
19088else
19089 echo "configure: failed program was:" >&5
19090 cat conftest.$ac_ext >&5
19091 rm -rf conftest*
19092 cat > conftest.$ac_ext <<EOF
19093#line 19094 "configure"
19094#include "confdefs.h"
19095
19096 #include <sys/types.h>
19097 #include <sys/socket.h>
19098
19099int main() {
19100
19101 size_t len;
19102 getsockname(0, 0, &len);
19103
19104; return 0; }
19105EOF
19106if { (eval echo configure:19107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19107 rm -rf conftest*
19108 wx_cv_type_getsockname3=size_t
19109else
19110 echo "configure: failed program was:" >&5
19111 cat conftest.$ac_ext >&5
19112 rm -rf conftest*
19113 cat > conftest.$ac_ext <<EOF
19114#line 19115 "configure"
19115#include "confdefs.h"
19116
19117 #include <sys/types.h>
19118 #include <sys/socket.h>
19119
19120int main() {
19121
19122 int len;
19123 getsockname(0, 0, &len);
19124
19125; return 0; }
19126EOF
19127if { (eval echo configure:19128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19128 rm -rf conftest*
19129 wx_cv_type_getsockname3=int
19130else
19131 echo "configure: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 rm -rf conftest*
19134 wx_cv_type_getsockname3=unknown
19135
19136fi
19137rm -f conftest*
19138
19139fi
19140rm -f conftest*
19141
19142fi
19143rm -f conftest*
19144
19145 ac_ext=c
19146# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19147ac_cpp='$CPP $CPPFLAGS'
19148ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19149ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19150cross_compiling=$ac_cv_prog_cc_cross
19151
19152
19153fi
19154
19155echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19156
19157 if test "$wx_cv_type_getsockname3" = "unknown"; then
19158 wxUSE_SOCKETS=no
19159 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19160 else
19161 cat >> confdefs.h <<EOF
19162#define SOCKLEN_T $wx_cv_type_getsockname3
19163EOF
19164
19165 fi
19166 fi
19167fi
19168
19169if test "$wxUSE_SOCKETS" = "yes" ; then
19170 cat >> confdefs.h <<\EOF
19171#define wxUSE_SOCKETS 1
19172EOF
19173
19174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19175fi
19176
19177
19178if test "$wxUSE_GUI" = "yes"; then
19179
19180 if test "$TOOLKIT" = "MAC"; then
19181 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19182 wxUSE_JOYSTICK=no
19183 fi
19184 if test "$TOOLKIT" = "MOTIF"; then
19185 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19186 wxUSE_JOYSTICK=no
19187 fi
19188 if test "$TOOLKIT" = "X11"; then
19189 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19190 wxUSE_JOYSTICK=no
19191 fi
19192
19193 if test "$TOOLKIT" != "MSW"; then
19194 if test "$wxUSE_JOYSTICK" = "yes"; then
19195 for ac_hdr in linux/joystick.h
19196do
19197ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19198echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19199echo "configure:19200: checking for $ac_hdr" >&5
19200if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19202else
19203 cat > conftest.$ac_ext <<EOF
19204#line 19205 "configure"
19205#include "confdefs.h"
19206#include <$ac_hdr>
19207EOF
19208ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19209{ (eval echo configure:19210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19210ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19211if test -z "$ac_err"; then
19212 rm -rf conftest*
19213 eval "ac_cv_header_$ac_safe=yes"
19214else
19215 echo "$ac_err" >&5
19216 echo "configure: failed program was:" >&5
19217 cat conftest.$ac_ext >&5
19218 rm -rf conftest*
19219 eval "ac_cv_header_$ac_safe=no"
19220fi
19221rm -f conftest*
19222fi
19223if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19224 echo "$ac_t""yes" 1>&6
19225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19226 cat >> confdefs.h <<EOF
19227#define $ac_tr_hdr 1
19228EOF
19229
19230else
19231 echo "$ac_t""no" 1>&6
19232fi
19233done
19234
19235 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19236 wxUSE_JOYSTICK=no
19237 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19238 fi
19239 fi
19240 fi
19241
19242 if test "$wxUSE_JOYSTICK" = "yes"; then
19243 cat >> confdefs.h <<\EOF
19244#define wxUSE_JOYSTICK 1
19245EOF
19246
19247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19248 fi
19249fi
19250
19251
19252if test "$TOOLKIT" != "MSW"; then
19253
19254 HAVE_DL_FUNCS=0
19255 HAVE_SHL_FUNCS=0
19256 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19257 if test "$USE_DARWIN" = 1; then
19258 HAVE_DL_FUNCS=1
19259 else
19260 for ac_func in dlopen
19261do
19262echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19263echo "configure:19264: checking for $ac_func" >&5
19264if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19265 echo $ac_n "(cached) $ac_c" 1>&6
19266else
19267 cat > conftest.$ac_ext <<EOF
19268#line 19269 "configure"
19269#include "confdefs.h"
19270/* System header to define __stub macros and hopefully few prototypes,
19271 which can conflict with char $ac_func(); below. */
19272#include <assert.h>
19273/* Override any gcc2 internal prototype to avoid an error. */
19274/* We use char because int might match the return type of a gcc2
19275 builtin and then its argument prototype would still apply. */
19276char $ac_func();
19277
19278int main() {
19279
19280/* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19284choke me
19285#else
19286$ac_func();
19287#endif
19288
19289; return 0; }
19290EOF
19291if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19292 rm -rf conftest*
19293 eval "ac_cv_func_$ac_func=yes"
19294else
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19297 rm -rf conftest*
19298 eval "ac_cv_func_$ac_func=no"
19299fi
19300rm -f conftest*
19301fi
19302
19303if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19304 echo "$ac_t""yes" 1>&6
19305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19306 cat >> confdefs.h <<EOF
19307#define $ac_tr_func 1
19308EOF
19309
19310 cat >> confdefs.h <<\EOF
19311#define HAVE_DLOPEN 1
19312EOF
19313
19314 HAVE_DL_FUNCS=1
19315
19316else
19317 echo "$ac_t""no" 1>&6
19318echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19319echo "configure:19320: checking for dlopen in -ldl" >&5
19320ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19322 echo $ac_n "(cached) $ac_c" 1>&6
19323else
19324 ac_save_LIBS="$LIBS"
19325LIBS="-ldl $LIBS"
19326cat > conftest.$ac_ext <<EOF
19327#line 19328 "configure"
19328#include "confdefs.h"
19329/* Override any gcc2 internal prototype to avoid an error. */
19330/* We use char because int might match the return type of a gcc2
19331 builtin and then its argument prototype would still apply. */
19332char dlopen();
19333
19334int main() {
19335dlopen()
19336; return 0; }
19337EOF
19338if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19339 rm -rf conftest*
19340 eval "ac_cv_lib_$ac_lib_var=yes"
19341else
19342 echo "configure: failed program was:" >&5
19343 cat conftest.$ac_ext >&5
19344 rm -rf conftest*
19345 eval "ac_cv_lib_$ac_lib_var=no"
19346fi
19347rm -f conftest*
19348LIBS="$ac_save_LIBS"
19349
19350fi
19351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19352 echo "$ac_t""yes" 1>&6
19353
19354 cat >> confdefs.h <<\EOF
19355#define HAVE_DLOPEN 1
19356EOF
19357
19358 HAVE_DL_FUNCS=1
19359 DL_LINK=" -ldl$DL_LINK"
19360
19361else
19362 echo "$ac_t""no" 1>&6
19363
19364 for ac_func in shl_load
19365do
19366echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19367echo "configure:19368: checking for $ac_func" >&5
19368if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19369 echo $ac_n "(cached) $ac_c" 1>&6
19370else
19371 cat > conftest.$ac_ext <<EOF
19372#line 19373 "configure"
19373#include "confdefs.h"
19374/* System header to define __stub macros and hopefully few prototypes,
19375 which can conflict with char $ac_func(); below. */
19376#include <assert.h>
19377/* Override any gcc2 internal prototype to avoid an error. */
19378/* We use char because int might match the return type of a gcc2
19379 builtin and then its argument prototype would still apply. */
19380char $ac_func();
19381
19382int main() {
19383
19384/* The GNU C library defines this for functions which it implements
19385 to always fail with ENOSYS. Some functions are actually named
19386 something starting with __ and the normal name is an alias. */
19387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19388choke me
19389#else
19390$ac_func();
19391#endif
19392
19393; return 0; }
19394EOF
19395if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19396 rm -rf conftest*
19397 eval "ac_cv_func_$ac_func=yes"
19398else
19399 echo "configure: failed program was:" >&5
19400 cat conftest.$ac_ext >&5
19401 rm -rf conftest*
19402 eval "ac_cv_func_$ac_func=no"
19403fi
19404rm -f conftest*
19405fi
19406
19407if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19408 echo "$ac_t""yes" 1>&6
19409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19410 cat >> confdefs.h <<EOF
19411#define $ac_tr_func 1
19412EOF
19413
19414 cat >> confdefs.h <<\EOF
19415#define HAVE_SHL_LOAD 1
19416EOF
19417
19418 HAVE_SHL_FUNCS=1
19419
19420else
19421 echo "$ac_t""no" 1>&6
19422echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19423echo "configure:19424: checking for dld in -lshl_load" >&5
19424ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19426 echo $ac_n "(cached) $ac_c" 1>&6
19427else
19428 ac_save_LIBS="$LIBS"
19429LIBS="-lshl_load $LIBS"
19430cat > conftest.$ac_ext <<EOF
19431#line 19432 "configure"
19432#include "confdefs.h"
19433/* Override any gcc2 internal prototype to avoid an error. */
19434/* We use char because int might match the return type of a gcc2
19435 builtin and then its argument prototype would still apply. */
19436char dld();
19437
19438int main() {
19439dld()
19440; return 0; }
19441EOF
19442if { (eval echo configure:19443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19443 rm -rf conftest*
19444 eval "ac_cv_lib_$ac_lib_var=yes"
19445else
19446 echo "configure: failed program was:" >&5
19447 cat conftest.$ac_ext >&5
19448 rm -rf conftest*
19449 eval "ac_cv_lib_$ac_lib_var=no"
19450fi
19451rm -f conftest*
19452LIBS="$ac_save_LIBS"
19453
19454fi
19455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19456 echo "$ac_t""yes" 1>&6
19457
19458 HAVE_SHL_FUNCS=1
19459 DL_LINK=" -ldld$DL_LINK"
19460
19461else
19462 echo "$ac_t""no" 1>&6
19463fi
19464
19465
19466fi
19467done
19468
19469
19470fi
19471
19472
19473fi
19474done
19475
19476
19477 if test "$HAVE_DL_FUNCS" = 1; then
19478 for ac_func in dlerror
19479do
19480echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19481echo "configure:19482: checking for $ac_func" >&5
19482if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19483 echo $ac_n "(cached) $ac_c" 1>&6
19484else
19485 cat > conftest.$ac_ext <<EOF
19486#line 19487 "configure"
19487#include "confdefs.h"
19488/* System header to define __stub macros and hopefully few prototypes,
19489 which can conflict with char $ac_func(); below. */
19490#include <assert.h>
19491/* Override any gcc2 internal prototype to avoid an error. */
19492/* We use char because int might match the return type of a gcc2
19493 builtin and then its argument prototype would still apply. */
19494char $ac_func();
19495
19496int main() {
19497
19498/* The GNU C library defines this for functions which it implements
19499 to always fail with ENOSYS. Some functions are actually named
19500 something starting with __ and the normal name is an alias. */
19501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19502choke me
19503#else
19504$ac_func();
19505#endif
19506
19507; return 0; }
19508EOF
19509if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19510 rm -rf conftest*
19511 eval "ac_cv_func_$ac_func=yes"
19512else
19513 echo "configure: failed program was:" >&5
19514 cat conftest.$ac_ext >&5
19515 rm -rf conftest*
19516 eval "ac_cv_func_$ac_func=no"
19517fi
19518rm -f conftest*
19519fi
19520
19521if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19522 echo "$ac_t""yes" 1>&6
19523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19524 cat >> confdefs.h <<EOF
19525#define $ac_tr_func 1
19526EOF
19527 cat >> confdefs.h <<\EOF
19528#define HAVE_DLERROR 1
19529EOF
19530
19531else
19532 echo "$ac_t""no" 1>&6
19533echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19534echo "configure:19535: checking for dlerror in -ldl" >&5
19535ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19537 echo $ac_n "(cached) $ac_c" 1>&6
19538else
19539 ac_save_LIBS="$LIBS"
19540LIBS="-ldl $LIBS"
19541cat > conftest.$ac_ext <<EOF
19542#line 19543 "configure"
19543#include "confdefs.h"
19544/* Override any gcc2 internal prototype to avoid an error. */
19545/* We use char because int might match the return type of a gcc2
19546 builtin and then its argument prototype would still apply. */
19547char dlerror();
19548
19549int main() {
19550dlerror()
19551; return 0; }
19552EOF
19553if { (eval echo configure:19554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19554 rm -rf conftest*
19555 eval "ac_cv_lib_$ac_lib_var=yes"
19556else
19557 echo "configure: failed program was:" >&5
19558 cat conftest.$ac_ext >&5
19559 rm -rf conftest*
19560 eval "ac_cv_lib_$ac_lib_var=no"
19561fi
19562rm -f conftest*
19563LIBS="$ac_save_LIBS"
19564
19565fi
19566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19567 echo "$ac_t""yes" 1>&6
19568 cat >> confdefs.h <<\EOF
19569#define HAVE_DLERROR 1
19570EOF
19571
19572else
19573 echo "$ac_t""no" 1>&6
19574fi
19575
19576fi
19577done
19578
19579 fi
19580 fi
19581
19582 if test "$HAVE_DL_FUNCS" = 0; then
19583 if test "$HAVE_SHL_FUNCS" = 0; then
19584 if test "$USE_UNIX" = 1; then
19585 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19586 wxUSE_DYNAMIC_LOADER=no
19587 wxUSE_DYNLIB_CLASS=no
19588 else
19589 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19590 fi
19591 fi
19592 fi
19593 fi
19594fi
19595
19596if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19597 cat >> confdefs.h <<\EOF
19598#define wxUSE_DYNAMIC_LOADER 1
19599EOF
19600
19601elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19602 cat >> confdefs.h <<\EOF
19603#define wxUSE_DYNLIB_CLASS 1
19604EOF
19605
19606fi
19607
19608
19609if test "$wxUSE_FONTMAP" = "yes" ; then
19610 cat >> confdefs.h <<\EOF
19611#define wxUSE_FONTMAP 1
19612EOF
19613
19614fi
19615
19616if test "$wxUSE_UNICODE" = "yes" ; then
19617 cat >> confdefs.h <<\EOF
19618#define wxUSE_UNICODE 1
19619EOF
19620
19621
19622 if test "$wxUSE_MSW" != 1; then
19623 wxUSE_UNICODE_MSLU=no
19624 fi
19625
19626 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19627 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19628echo "configure:19629: checking for main in -lunicows" >&5
19629ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19631 echo $ac_n "(cached) $ac_c" 1>&6
19632else
19633 ac_save_LIBS="$LIBS"
19634LIBS="-lunicows $LIBS"
19635cat > conftest.$ac_ext <<EOF
19636#line 19637 "configure"
19637#include "confdefs.h"
19638
19639int main() {
19640main()
19641; return 0; }
19642EOF
19643if { (eval echo configure:19644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19644 rm -rf conftest*
19645 eval "ac_cv_lib_$ac_lib_var=yes"
19646else
19647 echo "configure: failed program was:" >&5
19648 cat conftest.$ac_ext >&5
19649 rm -rf conftest*
19650 eval "ac_cv_lib_$ac_lib_var=no"
19651fi
19652rm -f conftest*
19653LIBS="$ac_save_LIBS"
19654
19655fi
19656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19657 echo "$ac_t""yes" 1>&6
19658
19659 cat >> confdefs.h <<\EOF
19660#define wxUSE_UNICODE_MSLU 1
19661EOF
19662
19663
19664else
19665 echo "$ac_t""no" 1>&6
19666
19667 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19668 Applications will only run on Windows NT/2000/XP!" 1>&2
19669 wxUSE_UNICODE_MSLU=no
19670
19671fi
19672
19673 fi
19674fi
19675
19676if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19677 cat >> confdefs.h <<\EOF
19678#define wxUSE_EXPERIMENTAL_PRINTF 1
19679EOF
19680
19681fi
19682
19683
19684
19685IODBC_C_SRC=""
19686if test "$wxUSE_ODBC" = "yes" ; then
19687 cat >> confdefs.h <<\EOF
19688#define wxUSE_ODBC 1
19689EOF
19690
19691 WXODBCFLAG="-D_IODBC_"
19692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19693fi
19694
19695
19696if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19697 cat >> confdefs.h <<\EOF
19698#define wxUSE_POSTSCRIPT 1
19699EOF
19700
19701fi
19702
19703cat >> confdefs.h <<\EOF
19704#define wxUSE_AFM_FOR_POSTSCRIPT 1
19705EOF
19706
19707
19708cat >> confdefs.h <<\EOF
19709#define wxUSE_NORMALIZED_PS_FONTS 1
19710EOF
19711
19712
19713
19714if test "$wxUSE_CONSTRAINTS" = "yes"; then
19715 cat >> confdefs.h <<\EOF
19716#define wxUSE_CONSTRAINTS 1
19717EOF
19718
19719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19720fi
19721
19722if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19723 if test "$wxUSE_UNIVERSAL" = "yes"; then
19724 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19725 wxUSE_MDI_ARCHITECTURE=no
19726 fi
19727
19728 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19729 cat >> confdefs.h <<\EOF
19730#define wxUSE_MDI_ARCHITECTURE 1
19731EOF
19732
19733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19734 fi
19735fi
19736
19737if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19738 cat >> confdefs.h <<\EOF
19739#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19740EOF
19741
19742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19743 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19745 fi
19746fi
19747
19748if test "$wxUSE_HELP" = "yes"; then
19749 cat >> confdefs.h <<\EOF
19750#define wxUSE_HELP 1
19751EOF
19752
19753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19754
19755 if test "$wxUSE_MSW" = 1; then
19756 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19757 cat >> confdefs.h <<\EOF
19758#define wxUSE_MS_HTML_HELP 1
19759EOF
19760
19761 fi
19762 fi
19763
19764 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19765 if test "$wxUSE_HTML" = "yes"; then
19766 cat >> confdefs.h <<\EOF
19767#define wxUSE_WXHTML_HELP 1
19768EOF
19769
19770 else
19771 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19772 wxUSE_WXHTML_HELP=no
19773 fi
19774 fi
19775fi
19776
19777if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19778 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19779 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19780 else
19781 cat >> confdefs.h <<\EOF
19782#define wxUSE_PRINTING_ARCHITECTURE 1
19783EOF
19784
19785 fi
19786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19787fi
19788
19789if test "$wxUSE_PROLOGIO" = "yes" ; then
19790 cat >> confdefs.h <<\EOF
19791#define wxUSE_PROLOGIO 1
19792EOF
19793
19794fi
19795
19796if test "$wxUSE_RESOURCES" = "yes" ; then
19797 if test "$wxUSE_NANOX" = "yes"; then
19798 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19799 else
19800 cat >> confdefs.h <<\EOF
19801#define wxUSE_RESOURCES 1
19802EOF
19803
19804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19805 fi
19806fi
19807
19808if test "$wxUSE_X_RESOURCES" = "yes"; then
19809 cat >> confdefs.h <<\EOF
19810#define wxUSE_X_RESOURCES 1
19811EOF
19812
19813fi
19814
19815
19816if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19817 -o "$wxUSE_CLIPBOARD" = "yes" \
19818 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19819 for ac_hdr in ole2.h
19820do
19821ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19822echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19823echo "configure:19824: checking for $ac_hdr" >&5
19824if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19825 echo $ac_n "(cached) $ac_c" 1>&6
19826else
19827 cat > conftest.$ac_ext <<EOF
19828#line 19829 "configure"
19829#include "confdefs.h"
19830#include <$ac_hdr>
19831EOF
19832ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19833{ (eval echo configure:19834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19834ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19835if test -z "$ac_err"; then
19836 rm -rf conftest*
19837 eval "ac_cv_header_$ac_safe=yes"
19838else
19839 echo "$ac_err" >&5
19840 echo "configure: failed program was:" >&5
19841 cat conftest.$ac_ext >&5
19842 rm -rf conftest*
19843 eval "ac_cv_header_$ac_safe=no"
19844fi
19845rm -f conftest*
19846fi
19847if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19848 echo "$ac_t""yes" 1>&6
19849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19850 cat >> confdefs.h <<EOF
19851#define $ac_tr_hdr 1
19852EOF
19853
19854else
19855 echo "$ac_t""no" 1>&6
19856fi
19857done
19858
19859
19860 if test "$ac_cv_header_ole2_h" = "yes" ; then
19861 if test "$GCC" = yes ; then
19862 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19863 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19864 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19865 cat >> confdefs.h <<\EOF
19866#define wxUSE_OLE 1
19867EOF
19868
19869
19870 fi
19871
19872 cat >> confdefs.h <<\EOF
19873#define wxUSE_DATAOBJ 1
19874EOF
19875
19876 else
19877 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19878
19879 wxUSE_CLIPBOARD=no
19880 wxUSE_DRAG_AND_DROP=no
19881 wxUSE_DATAOBJ=no
19882 fi
19883
19884 if test "$wxUSE_METAFILE" = "yes"; then
19885 cat >> confdefs.h <<\EOF
19886#define wxUSE_METAFILE 1
19887EOF
19888
19889
19890 cat >> confdefs.h <<\EOF
19891#define wxUSE_ENH_METAFILE 1
19892EOF
19893
19894 fi
19895fi
19896
19897if test "$wxUSE_IPC" = "yes"; then
19898 if test "$wxUSE_SOCKETS" != "yes"; then
19899 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19900 fi
19901
19902 cat >> confdefs.h <<\EOF
19903#define wxUSE_IPC 1
19904EOF
19905
19906fi
19907
19908if test "$wxUSE_CLIPBOARD" = "yes"; then
19909 if test "$wxUSE_MGL" = 1; then
19910 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19911 wxUSE_CLIPBOARD=no
19912 fi
19913
19914 if test "$wxUSE_CLIPBOARD" = "yes"; then
19915 cat >> confdefs.h <<\EOF
19916#define wxUSE_CLIPBOARD 1
19917EOF
19918
19919
19920 cat >> confdefs.h <<\EOF
19921#define wxUSE_DATAOBJ 1
19922EOF
19923
19924 fi
19925fi
19926
19927if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19928 if test "$wxUSE_GTK" = 1; then
19929 if test "$WXGTK12" != 1; then
19930 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19931 wxUSE_DRAG_AND_DROP=no
19932 fi
19933 fi
19934
19935 if test "$wxUSE_MOTIF" = 1; then
19936 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19937 wxUSE_DRAG_AND_DROP=no
19938 fi
19939
19940 if test "$wxUSE_X11" = 1; then
19941 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19942 wxUSE_DRAG_AND_DROP=no
19943 fi
19944
19945 if test "$wxUSE_MGL" = 1; then
19946 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19947 wxUSE_DRAG_AND_DROP=no
19948 fi
19949
19950 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19951 cat >> confdefs.h <<\EOF
19952#define wxUSE_DRAG_AND_DROP 1
19953EOF
19954
19955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19956 fi
19957
19958fi
19959
19960if test "$wxUSE_SPLINES" = "yes" ; then
19961 cat >> confdefs.h <<\EOF
19962#define wxUSE_SPLINES 1
19963EOF
19964
19965fi
19966
19967
19968USES_CONTROLS=0
19969if test "$wxUSE_CONTROLS" = "yes"; then
19970 USES_CONTROLS=1
19971fi
19972
19973if test "$wxUSE_ACCEL" = "yes"; then
19974 cat >> confdefs.h <<\EOF
19975#define wxUSE_ACCEL 1
19976EOF
19977
19978 USES_CONTROLS=1
19979fi
19980
19981if test "$wxUSE_BUTTON" = "yes"; then
19982 cat >> confdefs.h <<\EOF
19983#define wxUSE_BUTTON 1
19984EOF
19985
19986 USES_CONTROLS=1
19987fi
19988
19989if test "$wxUSE_BMPBUTTON" = "yes"; then
19990 cat >> confdefs.h <<\EOF
19991#define wxUSE_BMPBUTTON 1
19992EOF
19993
19994 USES_CONTROLS=1
19995fi
19996
19997if test "$wxUSE_CALCTRL" = "yes"; then
19998 cat >> confdefs.h <<\EOF
19999#define wxUSE_CALENDARCTRL 1
20000EOF
20001
20002 USES_CONTROLS=1
20003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20004fi
20005
20006if test "$wxUSE_CARET" = "yes"; then
20007 cat >> confdefs.h <<\EOF
20008#define wxUSE_CARET 1
20009EOF
20010
20011 USES_CONTROLS=1
20012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20013fi
20014
20015if test "$wxUSE_COMBOBOX" = "yes"; then
20016 cat >> confdefs.h <<\EOF
20017#define wxUSE_COMBOBOX 1
20018EOF
20019
20020 USES_CONTROLS=1
20021fi
20022
20023if test "$wxUSE_CHOICE" = "yes"; then
20024 cat >> confdefs.h <<\EOF
20025#define wxUSE_CHOICE 1
20026EOF
20027
20028 USES_CONTROLS=1
20029fi
20030
20031if test "$wxUSE_CHECKBOX" = "yes"; then
20032 cat >> confdefs.h <<\EOF
20033#define wxUSE_CHECKBOX 1
20034EOF
20035
20036 USES_CONTROLS=1
20037fi
20038
20039if test "$wxUSE_CHECKLST" = "yes"; then
20040 cat >> confdefs.h <<\EOF
20041#define wxUSE_CHECKLISTBOX 1
20042EOF
20043
20044 USES_CONTROLS=1
20045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20046fi
20047
20048if test "$wxUSE_GAUGE" = "yes"; then
20049 cat >> confdefs.h <<\EOF
20050#define wxUSE_GAUGE 1
20051EOF
20052
20053 USES_CONTROLS=1
20054fi
20055
20056if test "$wxUSE_NEW_GRID" = "yes"; then
20057 wxUSE_GRID="yes"
20058 cat >> confdefs.h <<\EOF
20059#define wxUSE_NEW_GRID 1
20060EOF
20061
20062 USES_CONTROLS=1
20063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20064fi
20065
20066if test "$wxUSE_GRID" = "yes"; then
20067 cat >> confdefs.h <<\EOF
20068#define wxUSE_GRID 1
20069EOF
20070
20071 USES_CONTROLS=1
20072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20073fi
20074
20075if test "$wxUSE_IMAGLIST" = "yes"; then
20076 cat >> confdefs.h <<\EOF
20077#define wxUSE_IMAGLIST 1
20078EOF
20079
20080fi
20081
20082if test "$wxUSE_LISTBOX" = "yes"; then
20083 cat >> confdefs.h <<\EOF
20084#define wxUSE_LISTBOX 1
20085EOF
20086
20087 USES_CONTROLS=1
20088fi
20089
20090if test "$wxUSE_LISTCTRL" = "yes"; then
20091 if test "$wxUSE_IMAGLIST" = "yes"; then
20092 cat >> confdefs.h <<\EOF
20093#define wxUSE_LISTCTRL 1
20094EOF
20095
20096 USES_CONTROLS=1
20097 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20098 else
20099 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20100 fi
20101fi
20102
20103if test "$wxUSE_NOTEBOOK" = "yes"; then
20104 cat >> confdefs.h <<\EOF
20105#define wxUSE_NOTEBOOK 1
20106EOF
20107
20108 USES_CONTROLS=1
20109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20110fi
20111
20112if test "$wxUSE_PROPSHEET" = "yes"; then
20113 cat >> confdefs.h <<\EOF
20114#define wxUSE_PROPSHEET 1
20115EOF
20116
20117 USES_CONTROLS=1
20118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20119fi
20120
20121if test "$wxUSE_RADIOBOX" = "yes"; then
20122 cat >> confdefs.h <<\EOF
20123#define wxUSE_RADIOBOX 1
20124EOF
20125
20126 USES_CONTROLS=1
20127fi
20128
20129if test "$wxUSE_RADIOBTN" = "yes"; then
20130 cat >> confdefs.h <<\EOF
20131#define wxUSE_RADIOBTN 1
20132EOF
20133
20134 USES_CONTROLS=1
20135fi
20136
20137if test "$wxUSE_SASH" = "yes"; then
20138 cat >> confdefs.h <<\EOF
20139#define wxUSE_SASH 1
20140EOF
20141
20142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20143fi
20144
20145if test "$wxUSE_SCROLLBAR" = "yes"; then
20146 cat >> confdefs.h <<\EOF
20147#define wxUSE_SCROLLBAR 1
20148EOF
20149
20150 USES_CONTROLS=1
20151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20152fi
20153
20154if test "$wxUSE_SLIDER" = "yes"; then
20155 cat >> confdefs.h <<\EOF
20156#define wxUSE_SLIDER 1
20157EOF
20158
20159 USES_CONTROLS=1
20160fi
20161
20162if test "$wxUSE_SPINBTN" = "yes"; then
20163 cat >> confdefs.h <<\EOF
20164#define wxUSE_SPINBTN 1
20165EOF
20166
20167 USES_CONTROLS=1
20168fi
20169
20170if test "$wxUSE_SPINCTRL" = "yes"; then
20171 cat >> confdefs.h <<\EOF
20172#define wxUSE_SPINCTRL 1
20173EOF
20174
20175 USES_CONTROLS=1
20176fi
20177
20178if test "$wxUSE_SPLITTER" = "yes"; then
20179 cat >> confdefs.h <<\EOF
20180#define wxUSE_SPLITTER 1
20181EOF
20182
20183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20184fi
20185
20186if test "$wxUSE_STATBMP" = "yes"; then
20187 cat >> confdefs.h <<\EOF
20188#define wxUSE_STATBMP 1
20189EOF
20190
20191 USES_CONTROLS=1
20192fi
20193
20194if test "$wxUSE_STATBOX" = "yes"; then
20195 cat >> confdefs.h <<\EOF
20196#define wxUSE_STATBOX 1
20197EOF
20198
20199 USES_CONTROLS=1
20200fi
20201
20202if test "$wxUSE_STATTEXT" = "yes"; then
20203 cat >> confdefs.h <<\EOF
20204#define wxUSE_STATTEXT 1
20205EOF
20206
20207 USES_CONTROLS=1
20208fi
20209
20210if test "$wxUSE_STATLINE" = "yes"; then
20211 if test "$wxUSE_WINE" = 1 ; then
20212 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20213 else
20214 cat >> confdefs.h <<\EOF
20215#define wxUSE_STATLINE 1
20216EOF
20217
20218 USES_CONTROLS=1
20219 fi
20220fi
20221
20222if test "$wxUSE_STATUSBAR" = "yes"; then
20223 cat >> confdefs.h <<\EOF
20224#define wxUSE_STATUSBAR 1
20225EOF
20226
20227 USES_CONTROLS=1
20228
20229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20230fi
20231
20232if test "$wxUSE_TABDIALOG" = "yes"; then
20233 cat >> confdefs.h <<\EOF
20234#define wxUSE_TAB_DIALOG 1
20235EOF
20236
20237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20238fi
20239
20240if test "$wxUSE_TEXTCTRL" = "yes"; then
20241 cat >> confdefs.h <<\EOF
20242#define wxUSE_TEXTCTRL 1
20243EOF
20244
20245 USES_CONTROLS=1
20246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20247fi
20248
20249if test "$wxUSE_TOGGLEBTN" = "yes"; then
20250 if test "$wxUSE_MAC" = 1; then
20251 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20252 wxUSE_TOGGLEBTN=no
20253 fi
20254 if test "$wxUSE_UNIVERSAL" = "yes"; then
20255 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20256 wxUSE_TOGGLEBTN=no
20257 fi
20258
20259 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20260 cat >> confdefs.h <<\EOF
20261#define wxUSE_TOGGLEBTN 1
20262EOF
20263
20264 USES_CONTROLS=1
20265 fi
20266fi
20267
20268if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20269 cat >> confdefs.h <<\EOF
20270#define wxUSE_TOOLBAR_SIMPLE 1
20271EOF
20272
20273 wxUSE_TOOLBAR="yes"
20274 USES_CONTROLS=1
20275fi
20276
20277if test "$wxUSE_TOOLBAR" = "yes"; then
20278 cat >> confdefs.h <<\EOF
20279#define wxUSE_TOOLBAR 1
20280EOF
20281
20282 USES_CONTROLS=1
20283
20284 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20285 wxUSE_TOOLBAR_NATIVE="yes"
20286 fi
20287
20288 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20289 cat >> confdefs.h <<\EOF
20290#define wxUSE_TOOLBAR_NATIVE 1
20291EOF
20292
20293 USES_CONTROLS=1
20294 fi
20295
20296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20297fi
20298
20299if test "$wxUSE_TOOLTIPS" = "yes"; then
20300 if test "$wxUSE_MOTIF" = 1; then
20301 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20302 else
20303 if test "$wxUSE_WINE" = 1; then
20304 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20305 else
20306 if test "$wxUSE_UNIVERSAL" = "yes"; then
20307 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20308 else
20309 cat >> confdefs.h <<\EOF
20310#define wxUSE_TOOLTIPS 1
20311EOF
20312
20313 fi
20314 fi
20315 fi
20316fi
20317
20318if test "$wxUSE_TREECTRL" = "yes"; then
20319 if test "$wxUSE_IMAGLIST" = "yes"; then
20320 cat >> confdefs.h <<\EOF
20321#define wxUSE_TREECTRL 1
20322EOF
20323
20324 USES_CONTROLS=1
20325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20326 else
20327 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20328 fi
20329fi
20330
20331if test "$wxUSE_POPUPWIN" = "yes"; then
20332 if test "$wxUSE_MAC" = 1; then
20333 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20334 else
20335 if test "$wxUSE_MOTIF" = 1; then
20336 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20337 else
20338 if test "$wxUSE_PM" = 1; then
20339 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20340 else
20341 cat >> confdefs.h <<\EOF
20342#define wxUSE_POPUPWIN 1
20343EOF
20344
20345
20346 USES_CONTROLS=1
20347 fi
20348 fi
20349 fi
20350fi
20351
20352if test "$wxUSE_TIPWINDOW" = "yes"; then
20353 if test "$wxUSE_PM" = 1; then
20354 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20355 else
20356 cat >> confdefs.h <<\EOF
20357#define wxUSE_TIPWINDOW 1
20358EOF
20359
20360 fi
20361fi
20362
20363if test "$USES_CONTROLS" = 1; then
20364 cat >> confdefs.h <<\EOF
20365#define wxUSE_CONTROLS 1
20366EOF
20367
20368fi
20369
20370
20371if test "$wxUSE_TREELAYOUT" = "yes"; then
20372 cat >> confdefs.h <<\EOF
20373#define wxUSE_TREELAYOUT 1
20374EOF
20375
20376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20377fi
20378
20379if test "$wxUSE_DRAGIMAGE" = "yes"; then
20380 cat >> confdefs.h <<\EOF
20381#define wxUSE_DRAGIMAGE 1
20382EOF
20383
20384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20385fi
20386
20387if test "$wxUSE_MENUS" = "yes"; then
20388 cat >> confdefs.h <<\EOF
20389#define wxUSE_MENUS 1
20390EOF
20391
20392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20393fi
20394
20395if test "$wxUSE_METAFILE" = "yes"; then
20396 cat >> confdefs.h <<\EOF
20397#define wxUSE_METAFILE 1
20398EOF
20399
20400fi
20401
20402if test "$wxUSE_MIMETYPE" = "yes"; then
20403 cat >> confdefs.h <<\EOF
20404#define wxUSE_MIMETYPE 1
20405EOF
20406
20407fi
20408
20409if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20410 cat >> confdefs.h <<\EOF
20411#define wxUSE_SYSTEM_OPTIONS 1
20412EOF
20413
20414if test "$TOOLKIT" = "MSW"; then
20415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20416fi
20417
20418fi
20419
20420if test "$wxUSE_PROTOCOL" = "yes"; then
20421 if test "$wxUSE_SOCKETS" != "yes"; then
20422 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20423 wxUSE_PROTOCOL=no
20424 fi
20425
20426 if test "$wxUSE_PROTOCOL" = "yes"; then
20427 cat >> confdefs.h <<\EOF
20428#define wxUSE_PROTOCOL 1
20429EOF
20430
20431
20432 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20433 cat >> confdefs.h <<\EOF
20434#define wxUSE_PROTOCOL_HTTP 1
20435EOF
20436
20437 fi
20438 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20439 cat >> confdefs.h <<\EOF
20440#define wxUSE_PROTOCOL_FTP 1
20441EOF
20442
20443 fi
20444 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20445 cat >> confdefs.h <<\EOF
20446#define wxUSE_PROTOCOL_FILE 1
20447EOF
20448
20449 fi
20450 fi
20451fi
20452
20453if test "$wxUSE_URL" = "yes"; then
20454 if test "$wxUSE_PROTOCOL" != "yes"; then
20455 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20456 wxUSE_URL=no
20457 fi
20458 if test "$wxUSE_URL" = "yes"; then
20459 cat >> confdefs.h <<\EOF
20460#define wxUSE_URL 1
20461EOF
20462
20463 fi
20464fi
20465
20466if test "$wxUSE_MINIFRAME" = "yes"; then
20467 cat >> confdefs.h <<\EOF
20468#define wxUSE_MINIFRAME 1
20469EOF
20470
20471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20472fi
20473
20474if test "$wxUSE_HTML" = "yes"; then
20475 cat >> confdefs.h <<\EOF
20476#define wxUSE_HTML 1
20477EOF
20478
20479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20480fi
20481
20482if test "$wxUSE_VALIDATORS" = "yes"; then
20483 cat >> confdefs.h <<\EOF
20484#define wxUSE_VALIDATORS 1
20485EOF
20486
20487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20488fi
20489
20490if test "$wxUSE_PALETTE" = "yes" ; then
20491 cat >> confdefs.h <<\EOF
20492#define wxUSE_PALETTE 1
20493EOF
20494
20495fi
20496
20497if test "$wxUSE_IMAGE" = "yes" ; then
20498 cat >> confdefs.h <<\EOF
20499#define wxUSE_IMAGE 1
20500EOF
20501
20502fi
20503
20504if test "$wxUSE_GIF" = "yes" ; then
20505 cat >> confdefs.h <<\EOF
20506#define wxUSE_GIF 1
20507EOF
20508
20509fi
20510
20511if test "$wxUSE_PCX" = "yes" ; then
20512 cat >> confdefs.h <<\EOF
20513#define wxUSE_PCX 1
20514EOF
20515
20516fi
20517
20518if test "$wxUSE_IFF" = "yes" ; then
20519 cat >> confdefs.h <<\EOF
20520#define wxUSE_IFF 1
20521EOF
20522
20523fi
20524
20525if test "$wxUSE_PNM" = "yes" ; then
20526 cat >> confdefs.h <<\EOF
20527#define wxUSE_PNM 1
20528EOF
20529
20530fi
20531
20532if test "$wxUSE_XPM" = "yes" ; then
20533 cat >> confdefs.h <<\EOF
20534#define wxUSE_XPM 1
20535EOF
20536
20537fi
20538
20539if test "$wxUSE_ICO_CUR" = "yes" ; then
20540 cat >> confdefs.h <<\EOF
20541#define wxUSE_ICO_CUR 1
20542EOF
20543
20544fi
20545
20546if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20547 LIBS=" -lunicows $LIBS"
20548fi
20549
20550
20551if test "$wxUSE_CHOICEDLG" = "yes"; then
20552 cat >> confdefs.h <<\EOF
20553#define wxUSE_CHOICEDLG 1
20554EOF
20555
20556fi
20557
20558if test "$wxUSE_COLOURDLG" = "yes"; then
20559 cat >> confdefs.h <<\EOF
20560#define wxUSE_COLOURDLG 1
20561EOF
20562
20563fi
20564
20565if test "$wxUSE_FILEDLG" = "yes"; then
20566 cat >> confdefs.h <<\EOF
20567#define wxUSE_FILEDLG 1
20568EOF
20569
20570fi
20571
20572if test "$wxUSE_FINDREPLDLG" = "yes"; then
20573 cat >> confdefs.h <<\EOF
20574#define wxUSE_FINDREPLDLG 1
20575EOF
20576
20577fi
20578
20579if test "$wxUSE_FONTDLG" = "yes"; then
20580 cat >> confdefs.h <<\EOF
20581#define wxUSE_FONTDLG 1
20582EOF
20583
20584fi
20585
20586if test "$wxUSE_DIRDLG" = "yes"; then
20587 if test "$wxUSE_TREECTRL" != "yes"; then
20588 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20589 else
20590 cat >> confdefs.h <<\EOF
20591#define wxUSE_DIRDLG 1
20592EOF
20593
20594 fi
20595fi
20596
20597if test "$wxUSE_MSGDLG" = "yes"; then
20598 cat >> confdefs.h <<\EOF
20599#define wxUSE_MSGDLG 1
20600EOF
20601
20602fi
20603
20604if test "$wxUSE_NUMBERDLG" = "yes"; then
20605 cat >> confdefs.h <<\EOF
20606#define wxUSE_NUMBERDLG 1
20607EOF
20608
20609fi
20610
20611if test "$wxUSE_PROGRESSDLG" = "yes"; then
20612 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20613 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20614 else
20615 cat >> confdefs.h <<\EOF
20616#define wxUSE_PROGRESSDLG 1
20617EOF
20618
20619 fi
20620fi
20621
20622if test "$wxUSE_SPLASH" = "yes"; then
20623 cat >> confdefs.h <<\EOF
20624#define wxUSE_SPLASH 1
20625EOF
20626
20627fi
20628
20629if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20630 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20631 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20632 else
20633 cat >> confdefs.h <<\EOF
20634#define wxUSE_STARTUP_TIPS 1
20635EOF
20636
20637 fi
20638fi
20639
20640if test "$wxUSE_TEXTDLG" = "yes"; then
20641 cat >> confdefs.h <<\EOF
20642#define wxUSE_TEXTDLG 1
20643EOF
20644
20645fi
20646
20647if test "$wxUSE_WIZARDDLG" = "yes"; then
20648 cat >> confdefs.h <<\EOF
20649#define wxUSE_WIZARDDLG 1
20650EOF
20651
20652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20653fi
20654
20655
20656if test "$cross_compiling" = "yes"; then
20657 OSINFO="\"$host\""
20658else
20659 OSINFO=`uname -s -r -m`
20660 OSINFO="\"$OSINFO\""
20661fi
20662
20663cat >> confdefs.h <<EOF
20664#define WXWIN_OS_DESCRIPTION $OSINFO
20665EOF
20666
20667
20668
20669if test "x$prefix" != "xNONE"; then
20670 wxPREFIX=$prefix
20671else
20672 wxPREFIX=$ac_default_prefix
20673fi
20674
20675cat >> confdefs.h <<EOF
20676#define wxINSTALL_PREFIX "$wxPREFIX"
20677EOF
20678
20679
20680
20681
20682
20683if test "$wxUSE_MAC" = 1 ; then
20684 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20685fi
20686
20687
20688LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20689
20690if test "$wxUSE_GUI" = "yes"; then
20691
20692 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20693
20694
20695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20696 drawing dynamic erase event exec font image \
20697 minimal richedit rotate widgets"
20698
20699 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20700else
20701 SAMPLES_SUBDIRS="console"
20702fi
20703
20704
20705INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20706-I\${top_srcdir}/include \
20707$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20708$TOOLKIT_INCLUDE"
20709
20710if test "$wxUSE_GTK" = 1; then
20711 WXCONFIG_INCLUDE=
20712else
20713 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20714fi
20715
20716if test "$GXX" = yes ; then
20717 CXXWARNINGS="-Wall"
20718
20719 if test "$wxUSE_NO_DEPS" = "no" ; then
20720 CFLAGS="-MMD $CFLAGS"
20721 CXXFLAGS="-MMD $CXXFLAGS"
20722 fi
20723fi
20724
20725EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20726
20727CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20728CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20729LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20730
20731LDFLAGS="$LDFLAGS $PROFILE"
20732
20733SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20824echo "configure:20825: checking whether ${MAKE-make} sets \${MAKE}" >&5
20825set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20826if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20827 echo $ac_n "(cached) $ac_c" 1>&6
20828else
20829 cat > conftestmake <<\EOF
20830all:
20831 @echo 'ac_maketemp="${MAKE}"'
20832EOF
20833# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20834eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20835if test -n "$ac_maketemp"; then
20836 eval ac_cv_prog_make_${ac_make}_set=yes
20837else
20838 eval ac_cv_prog_make_${ac_make}_set=no
20839fi
20840rm -f conftestmake
20841fi
20842if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20843 echo "$ac_t""yes" 1>&6
20844 SET_MAKE=
20845else
20846 echo "$ac_t""no" 1>&6
20847 SET_MAKE="MAKE=${MAKE-make}"
20848fi
20849
20850
20851if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20852 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20853fi
20854
20855
20856
20857wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20858wx_cv_if_gnu_make=$IF_GNU_MAKE
20859wx_cv_path_ifs=$PATH_IFS
20860wx_cv_program_ext=$PROGRAM_EXT
20861wx_cv_target_library=$WX_TARGET_LIBRARY
20862wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20863wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20864export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20865 wx_cv_path_ifs wx_cv_program_ext \
20866 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20867
20868subdirs="demos samples utils contrib"
20869
20870
20871trap '' 1 2 15
20872cat > confcache <<\EOF
20873# This file is a shell script that caches the results of configure
20874# tests run on this system so they can be shared between configure
20875# scripts and configure runs. It is not useful on other systems.
20876# If it contains results you don't want to keep, you may remove or edit it.
20877#
20878# By default, configure uses ./config.cache as the cache file,
20879# creating it if it does not exist already. You can give configure
20880# the --cache-file=FILE option to use a different cache file; that is
20881# what configure does when it calls configure scripts in
20882# subdirectories, so they share the cache.
20883# Giving --cache-file=/dev/null disables caching, for debugging configure.
20884# config.status only pays attention to the cache file if you give it the
20885# --recheck option to rerun configure.
20886#
20887EOF
20888# The following way of writing the cache mishandles newlines in values,
20889# but we know of no workaround that is simple, portable, and efficient.
20890# So, don't put newlines in cache variables' values.
20891# Ultrix sh set writes to stderr and can't be redirected directly,
20892# and sets the high bit in the cache file unless we assign to the vars.
20893(set) 2>&1 |
20894 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20895 *ac_space=\ *)
20896 # `set' does not quote correctly, so add quotes (double-quote substitution
20897 # turns \\\\ into \\, and sed turns \\ into \).
20898 sed -n \
20899 -e "s/'/'\\\\''/g" \
20900 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20901 ;;
20902 *)
20903 # `set' quotes correctly as required by POSIX, so do not add quotes.
20904 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20905 ;;
20906 esac >> confcache
20907if cmp -s $cache_file confcache; then
20908 :
20909else
20910 if test -w $cache_file; then
20911 echo "updating cache $cache_file"
20912 cat confcache > $cache_file
20913 else
20914 echo "not updating unwritable cache $cache_file"
20915 fi
20916fi
20917rm -f confcache
20918
20919trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20920
20921test "x$prefix" = xNONE && prefix=$ac_default_prefix
20922# Let make expand exec_prefix.
20923test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20924
20925# Any assignment to VPATH causes Sun make to only execute
20926# the first set of double-colon rules, so remove it if not needed.
20927# If there is a colon in the path, we need to keep it.
20928if test "x$srcdir" = x.; then
20929 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20930fi
20931
20932trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20933
20934DEFS=-DHAVE_CONFIG_H
20935
20936# Without the "./", some shells look in PATH for config.status.
20937: ${CONFIG_STATUS=./config.status}
20938
20939echo creating $CONFIG_STATUS
20940rm -f $CONFIG_STATUS
20941cat > $CONFIG_STATUS <<EOF
20942#! /bin/sh
20943# Generated automatically by configure.
20944# Run this file to recreate the current configuration.
20945# This directory was configured as follows,
20946# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20947#
20948# $0 $ac_configure_args
20949#
20950# Compiler output produced by configure, useful for debugging
20951# configure, is in ./config.log if it exists.
20952
20953ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20954for ac_option
20955do
20956 case "\$ac_option" in
20957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20958 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20959 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20960 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20961 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20962 exit 0 ;;
20963 -help | --help | --hel | --he | --h)
20964 echo "\$ac_cs_usage"; exit 0 ;;
20965 *) echo "\$ac_cs_usage"; exit 1 ;;
20966 esac
20967done
20968
20969ac_given_srcdir=$srcdir
20970ac_given_INSTALL="$INSTALL"
20971
20972trap 'rm -fr `echo "
20973 wx-config
20974 src/make.env
20975 src/makeprog.env
20976 src/makelib.env
20977 Makefile
20978 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20979EOF
20980cat >> $CONFIG_STATUS <<EOF
20981
20982# Protect against being on the right side of a sed subst in config.status.
20983sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20984 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20985$ac_vpsub
20986$extrasub
20987s%@SHELL@%$SHELL%g
20988s%@CFLAGS@%$CFLAGS%g
20989s%@CPPFLAGS@%$CPPFLAGS%g
20990s%@CXXFLAGS@%$CXXFLAGS%g
20991s%@FFLAGS@%$FFLAGS%g
20992s%@DEFS@%$DEFS%g
20993s%@LDFLAGS@%$LDFLAGS%g
20994s%@LIBS@%$LIBS%g
20995s%@exec_prefix@%$exec_prefix%g
20996s%@prefix@%$prefix%g
20997s%@program_transform_name@%$program_transform_name%g
20998s%@bindir@%$bindir%g
20999s%@sbindir@%$sbindir%g
21000s%@libexecdir@%$libexecdir%g
21001s%@datadir@%$datadir%g
21002s%@sysconfdir@%$sysconfdir%g
21003s%@sharedstatedir@%$sharedstatedir%g
21004s%@localstatedir@%$localstatedir%g
21005s%@libdir@%$libdir%g
21006s%@includedir@%$includedir%g
21007s%@oldincludedir@%$oldincludedir%g
21008s%@infodir@%$infodir%g
21009s%@mandir@%$mandir%g
21010s%@host@%$host%g
21011s%@host_alias@%$host_alias%g
21012s%@host_cpu@%$host_cpu%g
21013s%@host_vendor@%$host_vendor%g
21014s%@host_os@%$host_os%g
21015s%@target@%$target%g
21016s%@target_alias@%$target_alias%g
21017s%@target_cpu@%$target_cpu%g
21018s%@target_vendor@%$target_vendor%g
21019s%@target_os@%$target_os%g
21020s%@build@%$build%g
21021s%@build_alias@%$build_alias%g
21022s%@build_cpu@%$build_cpu%g
21023s%@build_vendor@%$build_vendor%g
21024s%@build_os@%$build_os%g
21025s%@CC@%$CC%g
21026s%@CPP@%$CPP%g
21027s%@CXX@%$CXX%g
21028s%@RANLIB@%$RANLIB%g
21029s%@AR@%$AR%g
21030s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21031s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21032s%@INSTALL_DATA@%$INSTALL_DATA%g
21033s%@STRIP@%$STRIP%g
21034s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21035s%@YACC@%$YACC%g
21036s%@LEX@%$LEX%g
21037s%@LEXLIB@%$LEXLIB%g
21038s%@LN_S@%$LN_S%g
21039s%@CXXCPP@%$CXXCPP%g
21040s%@PKG_CONFIG@%$PKG_CONFIG%g
21041s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21042s%@GTK_LIBS@%$GTK_LIBS%g
21043s%@GTK_CONFIG@%$GTK_CONFIG%g
21044s%@X_CFLAGS@%$X_CFLAGS%g
21045s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21046s%@X_LIBS@%$X_LIBS%g
21047s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21048s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21049s%@RESCOMP@%$RESCOMP%g
21050s%@DEREZ@%$DEREZ%g
21051s%@LIBICONV@%$LIBICONV%g
21052s%@LEX_STEM@%$LEX_STEM%g
21053s%@PATH_IFS@%$PATH_IFS%g
21054s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21055s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21056s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21057s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21058s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21059s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21060s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21061s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21062s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21063s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21064s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21065s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21066s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21067s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21068s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21069s%@WX_ALL@%$WX_ALL%g
21070s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21071s%@SHARED_LD@%$SHARED_LD%g
21072s%@PIC_FLAG@%$PIC_FLAG%g
21073s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21074s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21075s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21076s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21077s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21078s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21079s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21080s%@USE_GUI@%$USE_GUI%g
21081s%@AFMINSTALL@%$AFMINSTALL%g
21082s%@TOOLKIT@%$TOOLKIT%g
21083s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21084s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21085s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21086s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21087s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21088s%@cross_compiling@%$cross_compiling%g
21089s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21090s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21091s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21092s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21093s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21094s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21095s%@ALL_HEADERS@%$ALL_HEADERS%g
21096s%@ALL_SOURCES@%$ALL_SOURCES%g
21097s%@GUIDIST@%$GUIDIST%g
21098s%@PORT_FILES@%$PORT_FILES%g
21099s%@DISTDIR@%$DISTDIR%g
21100s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21101s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21102s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21103s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21104s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21105s%@EXTRADEFS@%$EXTRADEFS%g
21106s%@RESFLAGS@%$RESFLAGS%g
21107s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21108s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21109s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21110s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21111s%@LIBWXMACRES@%$LIBWXMACRES%g
21112s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21113s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21114s%@DLLTOOL@%$DLLTOOL%g
21115s%@AS@%$AS%g
21116s%@NM@%$NM%g
21117s%@LD@%$LD%g
21118s%@MAKEINFO@%$MAKEINFO%g
21119s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21120s%@SET_MAKE@%$SET_MAKE%g
21121s%@subdirs@%$subdirs%g
21122
21123CEOF
21124EOF
21125
21126cat >> $CONFIG_STATUS <<\EOF
21127
21128# Split the substitutions into bite-sized pieces for seds with
21129# small command number limits, like on Digital OSF/1 and HP-UX.
21130ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21131ac_file=1 # Number of current file.
21132ac_beg=1 # First line for current file.
21133ac_end=$ac_max_sed_cmds # Line after last line for current file.
21134ac_more_lines=:
21135ac_sed_cmds=""
21136while $ac_more_lines; do
21137 if test $ac_beg -gt 1; then
21138 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21139 else
21140 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21141 fi
21142 if test ! -s conftest.s$ac_file; then
21143 ac_more_lines=false
21144 rm -f conftest.s$ac_file
21145 else
21146 if test -z "$ac_sed_cmds"; then
21147 ac_sed_cmds="sed -f conftest.s$ac_file"
21148 else
21149 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21150 fi
21151 ac_file=`expr $ac_file + 1`
21152 ac_beg=$ac_end
21153 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21154 fi
21155done
21156if test -z "$ac_sed_cmds"; then
21157 ac_sed_cmds=cat
21158fi
21159EOF
21160
21161cat >> $CONFIG_STATUS <<EOF
21162
21163CONFIG_FILES=\${CONFIG_FILES-"wx-config
21164 src/make.env
21165 src/makeprog.env
21166 src/makelib.env
21167 Makefile
21168 "}
21169EOF
21170cat >> $CONFIG_STATUS <<\EOF
21171for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21173 case "$ac_file" in
21174 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21175 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21176 *) ac_file_in="${ac_file}.in" ;;
21177 esac
21178
21179 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21180
21181 # Remove last slash and all that follows it. Not all systems have dirname.
21182 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21183 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21184 # The file is in a subdirectory.
21185 test ! -d "$ac_dir" && mkdir "$ac_dir"
21186 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21187 # A "../" for each directory in $ac_dir_suffix.
21188 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21189 else
21190 ac_dir_suffix= ac_dots=
21191 fi
21192
21193 case "$ac_given_srcdir" in
21194 .) srcdir=.
21195 if test -z "$ac_dots"; then top_srcdir=.
21196 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21197 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21198 *) # Relative path.
21199 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21200 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21201 esac
21202
21203 case "$ac_given_INSTALL" in
21204 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21205 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21206 esac
21207
21208 echo creating "$ac_file"
21209 rm -f "$ac_file"
21210 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21211 case "$ac_file" in
21212 *Makefile*) ac_comsub="1i\\
21213# $configure_input" ;;
21214 *) ac_comsub= ;;
21215 esac
21216
21217 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21218 sed -e "$ac_comsub
21219s%@configure_input@%$configure_input%g
21220s%@srcdir@%$srcdir%g
21221s%@top_srcdir@%$top_srcdir%g
21222s%@INSTALL@%$INSTALL%g
21223" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21224fi; done
21225rm -f conftest.s*
21226
21227# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21228# NAME is the cpp macro being defined and VALUE is the value it is being given.
21229#
21230# ac_d sets the value in "#define NAME VALUE" lines.
21231ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21232ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21233ac_dC='\3'
21234ac_dD='%g'
21235# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21236ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21237ac_uB='\([ ]\)%\1#\2define\3'
21238ac_uC=' '
21239ac_uD='\4%g'
21240# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21241ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21242ac_eB='$%\1#\2define\3'
21243ac_eC=' '
21244ac_eD='%g'
21245
21246if test "${CONFIG_HEADERS+set}" != set; then
21247EOF
21248cat >> $CONFIG_STATUS <<EOF
21249 CONFIG_HEADERS="setup.h:setup.h.in"
21250EOF
21251cat >> $CONFIG_STATUS <<\EOF
21252fi
21253for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21255 case "$ac_file" in
21256 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21257 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21258 *) ac_file_in="${ac_file}.in" ;;
21259 esac
21260
21261 echo creating $ac_file
21262
21263 rm -f conftest.frag conftest.in conftest.out
21264 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21265 cat $ac_file_inputs > conftest.in
21266
21267EOF
21268
21269# Transform confdefs.h into a sed script conftest.vals that substitutes
21270# the proper values into config.h.in to produce config.h. And first:
21271# Protect against being on the right side of a sed subst in config.status.
21272# Protect against being in an unquoted here document in config.status.
21273rm -f conftest.vals
21274cat > conftest.hdr <<\EOF
21275s/[\\&%]/\\&/g
21276s%[\\$`]%\\&%g
21277s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21278s%ac_d%ac_u%gp
21279s%ac_u%ac_e%gp
21280EOF
21281sed -n -f conftest.hdr confdefs.h > conftest.vals
21282rm -f conftest.hdr
21283
21284# This sed command replaces #undef with comments. This is necessary, for
21285# example, in the case of _POSIX_SOURCE, which is predefined and required
21286# on some systems where configure will not decide to define it.
21287cat >> conftest.vals <<\EOF
21288s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21289EOF
21290
21291# Break up conftest.vals because some shells have a limit on
21292# the size of here documents, and old seds have small limits too.
21293
21294rm -f conftest.tail
21295while :
21296do
21297 ac_lines=`grep -c . conftest.vals`
21298 # grep -c gives empty output for an empty file on some AIX systems.
21299 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21300 # Write a limited-size here document to conftest.frag.
21301 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21302 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21303 echo 'CEOF
21304 sed -f conftest.frag conftest.in > conftest.out
21305 rm -f conftest.in
21306 mv conftest.out conftest.in
21307' >> $CONFIG_STATUS
21308 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21309 rm -f conftest.vals
21310 mv conftest.tail conftest.vals
21311done
21312rm -f conftest.vals
21313
21314cat >> $CONFIG_STATUS <<\EOF
21315 rm -f conftest.frag conftest.h
21316 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21317 cat conftest.in >> conftest.h
21318 rm -f conftest.in
21319 if cmp -s $ac_file conftest.h 2>/dev/null; then
21320 echo "$ac_file is unchanged"
21321 rm -f conftest.h
21322 else
21323 # Remove last slash and all that follows it. Not all systems have dirname.
21324 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21325 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21326 # The file is in a subdirectory.
21327 test ! -d "$ac_dir" && mkdir "$ac_dir"
21328 fi
21329 rm -f $ac_file
21330 mv conftest.h $ac_file
21331 fi
21332fi; done
21333
21334EOF
21335cat >> $CONFIG_STATUS <<EOF
21336
21337 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21338 LN_S="${LN_S}"
21339
21340
21341EOF
21342cat >> $CONFIG_STATUS <<\EOF
21343
21344 if test ! -h wx-config; then
21345 chmod +x wx-config
21346 mv wx-config wx${TOOLCHAIN_NAME}-config
21347 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21348 fi
21349
21350 if test ! -d lib; then
21351 mkdir lib
21352 fi
21353 if test ! -d lib/wx; then
21354 mkdir lib/wx
21355 fi
21356 if test ! -d lib/wx/include; then
21357 mkdir lib/wx/include
21358 fi
21359 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21360 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21361 fi
21362 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21363 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21364 fi
21365 if test -f setup.h; then
21366 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21367 fi
21368
21369exit 0
21370EOF
21371chmod +x $CONFIG_STATUS
21372rm -fr confdefs* $ac_clean_files
21373test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21374
21375if test "$no_recursion" != yes; then
21376
21377 # Remove --cache-file and --srcdir arguments so they do not pile up.
21378 ac_sub_configure_args=
21379 ac_prev=
21380 for ac_arg in $ac_configure_args; do
21381 if test -n "$ac_prev"; then
21382 ac_prev=
21383 continue
21384 fi
21385 case "$ac_arg" in
21386 -cache-file | --cache-file | --cache-fil | --cache-fi \
21387 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21388 ac_prev=cache_file ;;
21389 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21390 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21391 ;;
21392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21393 ac_prev=srcdir ;;
21394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21395 ;;
21396 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21397 esac
21398 done
21399
21400 for ac_config_dir in demos samples utils contrib; do
21401
21402 # Do not complain, so a configure script can configure whichever
21403 # parts of a large source tree are present.
21404 if test ! -d $srcdir/$ac_config_dir; then
21405 continue
21406 fi
21407
21408 echo configuring in $ac_config_dir
21409
21410 case "$srcdir" in
21411 .) ;;
21412 *)
21413 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21414 else
21415 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21416 fi
21417 ;;
21418 esac
21419
21420 ac_popdir=`pwd`
21421 cd $ac_config_dir
21422
21423 # A "../" for each directory in /$ac_config_dir.
21424 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21425
21426 case "$srcdir" in
21427 .) # No --srcdir option. We are building in place.
21428 ac_sub_srcdir=$srcdir ;;
21429 /*) # Absolute path.
21430 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21431 *) # Relative path.
21432 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21433 esac
21434
21435 # Check for guested configure; otherwise get Cygnus style configure.
21436 if test -f $ac_sub_srcdir/configure; then
21437 ac_sub_configure=$ac_sub_srcdir/configure
21438 elif test -f $ac_sub_srcdir/configure.in; then
21439 ac_sub_configure=$ac_configure
21440 else
21441 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21442 ac_sub_configure=
21443 fi
21444
21445 # The recursion is here.
21446 if test -n "$ac_sub_configure"; then
21447
21448 # Make the cache file name correct relative to the subdirectory.
21449 case "$cache_file" in
21450 /*) ac_sub_cache_file=$cache_file ;;
21451 *) # Relative path.
21452 ac_sub_cache_file="$ac_dots$cache_file" ;;
21453 esac
21454 case "$ac_given_INSTALL" in
21455 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21456 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21457 esac
21458
21459 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21460 # The eval makes quoting arguments work.
21461 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21462 then :
21463 else
21464 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21465 fi
21466 fi
21467
21468 cd $ac_popdir
21469 done
21470fi
21471
21472