]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
Removed bizarre test code of which I have no recollection...
[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# Configure paths for GTK+
53# Owen Taylor 97-11-3
54
55
56
57# Guess values for system-dependent variables and create Makefiles.
58# Generated automatically using autoconf version 2.13
59# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60#
61# This configure script is free software; the Free Software Foundation
62# gives unlimited permission to copy, distribute and modify it.
63
64# Defaults:
65ac_help=
66ac_default_prefix=/usr/local
67# Any additions from configure.in:
68ac_help="$ac_help
69 --enable-gui use GUI classes"
70ac_help="$ac_help
71 --enable-universal use wxWindows GUI controls instead of native ones"
72ac_help="$ac_help
73 --with-gtk use GTK+"
74ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76ac_help="$ac_help
77 --with-mac use Mac OS X"
78ac_help="$ac_help
79 --with-wine use WINE"
80ac_help="$ac_help
81 --with-msw use MS-Windows"
82ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
84ac_help="$ac_help
85 --with-mgl use SciTech MGL"
86ac_help="$ac_help
87 --with-microwin use MicroWindows"
88ac_help="$ac_help
89 --with-x11 use X11"
90ac_help="$ac_help
91 --enable-nanox use NanoX"
92ac_help="$ac_help
93 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
94ac_help="$ac_help
95 --with-libpng use libpng (PNG image format)"
96ac_help="$ac_help
97 --with-libjpeg use libjpeg (JPEG file format)"
98ac_help="$ac_help
99 --with-libtiff use libtiff (TIFF file format)"
100ac_help="$ac_help
101 --with-opengl use OpenGL (or Mesa)"
102ac_help="$ac_help
103 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
104ac_help="$ac_help
105 --with-regex enable support for wxRegEx class"
106ac_help="$ac_help
107 --with-zlib use zlib for LZW compression"
108ac_help="$ac_help
109 --with-odbc use the IODBC and wxODBC classes"
110ac_help="$ac_help
111 --enable-shared create shared library code"
112ac_help="$ac_help
113 --enable-soname set the DT_SONAME field in ELF shared libraries"
114ac_help="$ac_help
115 --enable-optimise create optimised code"
116ac_help="$ac_help
117 --enable-debug same as debug_flag and debug_info"
118ac_help="$ac_help
119 --enable-precomp enable use of precompiled headers (Mac OS X)"
120ac_help="$ac_help
121 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
122ac_help="$ac_help
123 --enable-debug_info create code with debugging information"
124ac_help="$ac_help
125 --enable-debug_gdb create code with extra GDB debugging information"
126ac_help="$ac_help
127 --enable-debug_cntxt use wxDebugContext"
128ac_help="$ac_help
129 --enable-mem_tracing create code with memory tracing"
130ac_help="$ac_help
131 --enable-profile create code with profiling information"
132ac_help="$ac_help
133 --enable-no_rtti create code without RTTI information"
134ac_help="$ac_help
135 --enable-no_exceptions create code without C++ exceptions handling"
136ac_help="$ac_help
137 --enable-permissive compile code disregarding strict ANSI"
138ac_help="$ac_help
139 --enable-no_deps create code without dependency information"
140ac_help="$ac_help
141 --enable-compat20 enable wxWindows 2.0 compatibility"
142ac_help="$ac_help
143 --disable-compat22 disable wxWindows 2.2 compatibility"
144ac_help="$ac_help
145 --enable-intl use internationalization system"
146ac_help="$ac_help
147 --enable-config use wxConfig (and derived) classes"
148ac_help="$ac_help
149 --enable-protocols use wxProtocol and derived classes"
150ac_help="$ac_help
151 --enable-ftp use wxFTP (requires wxProtocol"
152ac_help="$ac_help
153 --enable-http use wxHTTP (requires wxProtocol"
154ac_help="$ac_help
155 --enable-fileproto use wxFileProto class (requires wxProtocol"
156ac_help="$ac_help
157 --enable-sockets use socket/network classes"
158ac_help="$ac_help
159 --enable-ipc use interprocess communication (wxSocket etc.)"
160ac_help="$ac_help
161 --enable-cmdline use wxCmdLineParser class"
162ac_help="$ac_help
163 --enable-datetime use wxDateTime class"
164ac_help="$ac_help
165 --enable-timedate use obsolete wxDate/wxTime classes"
166ac_help="$ac_help
167 --enable-stopwatch use wxStopWatch class"
168ac_help="$ac_help
169 --enable-dialupman use dialup network classes"
170ac_help="$ac_help
171 --enable-apple_ieee use the Apple IEEE codec"
172ac_help="$ac_help
173 --enable-timer use wxTimer class"
174ac_help="$ac_help
175 --enable-wave use wxWave class"
176ac_help="$ac_help
177 --enable-fraction use wxFraction class"
178ac_help="$ac_help
179 --enable-dynlib use wxLibrary class for DLL loading"
180ac_help="$ac_help
181 --enable-dynamicloader use (new) wxDynamicLibrary class"
182ac_help="$ac_help
183 --enable-longlong use wxLongLong class"
184ac_help="$ac_help
185 --enable-geometry use geometry class"
186ac_help="$ac_help
187 --enable-log use logging system"
188ac_help="$ac_help
189 --enable-streams use wxStream etc classes"
190ac_help="$ac_help
191 --enable-file use wxFile classes"
192ac_help="$ac_help
193 --enable-ffile use wxFFile classes"
194ac_help="$ac_help
195 --enable-textbuf use wxTextBuffer class"
196ac_help="$ac_help
197 --enable-textfile use wxTextFile class"
198ac_help="$ac_help
199 --enable-fontmap use font encodings conversion classes"
200ac_help="$ac_help
201 --enable-unicode compile wxString with Unicode support"
202ac_help="$ac_help
203 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
204ac_help="$ac_help
205 --enable-wxprintfv use wxWindows implementation of vprintf()"
206ac_help="$ac_help
207 --enable-std_iostreams use standard C++ stream classes"
208ac_help="$ac_help
209 --enable-filesystem use virtual file systems classes"
210ac_help="$ac_help
211 --enable-fs_inet use virtual HTTP/FTP filesystems"
212ac_help="$ac_help
213 --enable-fs_zip use virtual ZIP filesystems"
214ac_help="$ac_help
215 --enable-zipstream use wxZipInputStream"
216ac_help="$ac_help
217 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
218ac_help="$ac_help
219 --enable-snglinst use wxSingleInstanceChecker class"
220ac_help="$ac_help
221 --enable-mimetype use wxMimeTypesManager"
222ac_help="$ac_help
223 --enable-sysoptions use wxSystemOptions"
224ac_help="$ac_help
225 --enable-url use wxURL class"
226ac_help="$ac_help
227 --enable-protocol use wxProtocol class"
228ac_help="$ac_help
229 --enable-protocol-http HTTP support in wxProtocol"
230ac_help="$ac_help
231 --enable-protocol-ftp FTP support in wxProtocol"
232ac_help="$ac_help
233 --enable-protocol-file FILE support in wxProtocol"
234ac_help="$ac_help
235 --enable-threads use threads"
236ac_help="$ac_help
237 --enable-docview use document view architecture"
238ac_help="$ac_help
239 --enable-help use help subsystem"
240ac_help="$ac_help
241 --enable-mshtmlhelp use MS HTML Help (win32)"
242ac_help="$ac_help
243 --enable-html use wxHTML sub-library"
244ac_help="$ac_help
245 --enable-htmlhelp use wxHTML-based help"
246ac_help="$ac_help
247 --enable-constraints use layout-constraints system"
248ac_help="$ac_help
249 --enable-printarch use printing architecture"
250ac_help="$ac_help
251 --enable-mdi use multiple document interface architecture"
252ac_help="$ac_help
253 --enable-loggui use standard GUI logger"
254ac_help="$ac_help
255 --enable-logwin use wxLogWindow"
256ac_help="$ac_help
257 --enable-logdialog use wxLogDialog"
258ac_help="$ac_help
259 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
260ac_help="$ac_help
261 --enable-prologio use Prolog IO library"
262ac_help="$ac_help
263 --enable-resources use wxWindows resources"
264ac_help="$ac_help
265 --enable-xresources use X resources for save (default for gtk+)"
266ac_help="$ac_help
267 --enable-clipboard use wxClipboard classes"
268ac_help="$ac_help
269 --enable-dnd use Drag'n'Drop classes"
270ac_help="$ac_help
271 --enable-metafile use win32 metafiles"
272ac_help="$ac_help
273 --enable-treelayout use wxTreeLayout classes"
274ac_help="$ac_help
275 --enable-controls use all usual controls"
276ac_help="$ac_help
277 --enable-accel use accelerators"
278ac_help="$ac_help
279 --enable-button use wxButton class"
280ac_help="$ac_help
281 --enable-bmpbutton use wxBitmapButton class"
282ac_help="$ac_help
283 --enable-calendar use wxCalendarCtrl class"
284ac_help="$ac_help
285 --enable-caret use wxCaret class"
286ac_help="$ac_help
287 --enable-checkbox use wxCheckBox class"
288ac_help="$ac_help
289 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
290ac_help="$ac_help
291 --enable-choice use wxChoice class"
292ac_help="$ac_help
293 --enable-combobox use wxComboBox classes"
294ac_help="$ac_help
295 --enable-gauge use wxGauge class"
296ac_help="$ac_help
297 --enable-grid use wxGrid class"
298ac_help="$ac_help
299 --enable-newgrid use new wxGrid class"
300ac_help="$ac_help
301 --enable-imaglist use wxImageList class"
302ac_help="$ac_help
303 --enable-listbox use wxListBox class"
304ac_help="$ac_help
305 --enable-listctrl use wxListCtrl class"
306ac_help="$ac_help
307 --enable-notebook use wxNotebook class"
308ac_help="$ac_help
309 --enable-propsheet use wxPropertySheet class"
310ac_help="$ac_help
311 --enable-radiobox use wxRadioBox class"
312ac_help="$ac_help
313 --enable-radiobtn use wxRadioButton class"
314ac_help="$ac_help
315 --enable-sash use wxSashWindow class"
316ac_help="$ac_help
317 --enable-scrollbar use wxScrollBar class and scrollable windows"
318ac_help="$ac_help
319 --enable-slider use wxSlider class"
320ac_help="$ac_help
321 --enable-spinbtn use wxSpinButton class"
322ac_help="$ac_help
323 --enable-spinctrl use wxSpinCtrl class"
324ac_help="$ac_help
325 --enable-splitter use wxSplitterWindow class"
326ac_help="$ac_help
327 --enable-statbmp use wxStaticBitmap class"
328ac_help="$ac_help
329 --enable-statbox use wxStaticBox class"
330ac_help="$ac_help
331 --enable-statline use wxStaticLine class"
332ac_help="$ac_help
333 --enable-stattext use wxStaticText class"
334ac_help="$ac_help
335 --enable-statusbar use wxStatusBar class"
336ac_help="$ac_help
337 --enable-tabdialog use wxTabControl class"
338ac_help="$ac_help
339 --enable-textctrl use wxTextCtrl class"
340ac_help="$ac_help
341 --enable-togglebtn use wxToggleButton class"
342ac_help="$ac_help
343 --enable-toolbar use wxToolBar class"
344ac_help="$ac_help
345 --enable-tbarnative use native wxToolBar class"
346ac_help="$ac_help
347 --enable-tbarsmpl use wxToolBarSimple class"
348ac_help="$ac_help
349 --enable-treectrl use wxTreeCtrl class"
350ac_help="$ac_help
351 --enable-tipwindow use wxTipWindow class"
352ac_help="$ac_help
353 --enable-popupwin use wxPopUpWindow class"
354ac_help="$ac_help
355 --enable-commondlg use all common dialogs"
356ac_help="$ac_help
357 --enable-choicedlg use wxChoiceDialog"
358ac_help="$ac_help
359 --enable-coldlg use wxColourDialog"
360ac_help="$ac_help
361 --enable-filedlg use wxFileDialog"
362ac_help="$ac_help
363 --enable-finddlg use wxFindReplaceDialog"
364ac_help="$ac_help
365 --enable-fontdlg use wxFontDialog"
366ac_help="$ac_help
367 --enable-dirdlg use wxDirDialog"
368ac_help="$ac_help
369 --enable-msgdlg use wxMessageDialog"
370ac_help="$ac_help
371 --enable-numberdlg use wxNumberEntryDialog"
372ac_help="$ac_help
373 --enable-splash use wxSplashScreen"
374ac_help="$ac_help
375 --enable-textdlg use wxTextDialog"
376ac_help="$ac_help
377 --enable-tipdlg use startup tips"
378ac_help="$ac_help
379 --enable-progressdlg use wxProgressDialog"
380ac_help="$ac_help
381 --enable-wizarddlg use wxWizard"
382ac_help="$ac_help
383 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
384ac_help="$ac_help
385 --enable-miniframe use wxMiniFrame class"
386ac_help="$ac_help
387 --enable-tooltips use wxToolTip class"
388ac_help="$ac_help
389 --enable-splines use spline drawing code"
390ac_help="$ac_help
391 --enable-validators use wxValidator and derived classes"
392ac_help="$ac_help
393 --enable-busyinfo use wxBusyInfo"
394ac_help="$ac_help
395 --enable-joystick use wxJoystick (Linux only)"
396ac_help="$ac_help
397 --enable-metafiles use wxMetaFile (Windows only)"
398ac_help="$ac_help
399 --enable-dragimage use wxDragImage"
400ac_help="$ac_help
401 --enable-palette use wxPalette class"
402ac_help="$ac_help
403 --enable-image use wxImage class"
404ac_help="$ac_help
405 --enable-gif use gif images (GIF file format)"
406ac_help="$ac_help
407 --enable-pcx use pcx images (PCX file format)"
408ac_help="$ac_help
409 --enable-iff use iff images (IFF file format)"
410ac_help="$ac_help
411 --enable-pnm use pnm images (PNM file format)"
412ac_help="$ac_help
413 --enable-xpm use xpm images (XPM file format)"
414ac_help="$ac_help
415 --enable-icocur use Windows ICO and CUR formats"
416ac_help="$ac_help
417 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
418ac_help="$ac_help
419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
420ac_help="$ac_help
421 --disable-gtktest Do not try to compile and run a test GTK program"
422ac_help="$ac_help
423 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
424ac_help="$ac_help
425 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
426ac_help="$ac_help
427 --disable-gtktest Do not try to compile and run a test GTK program"
428ac_help="$ac_help
429 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
430ac_help="$ac_help
431 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
432ac_help="$ac_help
433 --disable-gtktest Do not try to compile and run a test GTK program"
434ac_help="$ac_help
435 --with-x use the X Window System"
436ac_help="$ac_help
437 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
438
439# Initialize some variables set by options.
440# The variables have the same names as the options, with
441# dashes changed to underlines.
442build=NONE
443cache_file=./config.cache
444exec_prefix=NONE
445host=NONE
446no_create=
447nonopt=NONE
448no_recursion=
449prefix=NONE
450program_prefix=NONE
451program_suffix=NONE
452program_transform_name=s,x,x,
453silent=
454site=
455srcdir=
456target=NONE
457verbose=
458x_includes=NONE
459x_libraries=NONE
460bindir='${exec_prefix}/bin'
461sbindir='${exec_prefix}/sbin'
462libexecdir='${exec_prefix}/libexec'
463datadir='${prefix}/share'
464sysconfdir='${prefix}/etc'
465sharedstatedir='${prefix}/com'
466localstatedir='${prefix}/var'
467libdir='${exec_prefix}/lib'
468includedir='${prefix}/include'
469oldincludedir='/usr/include'
470infodir='${prefix}/info'
471mandir='${prefix}/man'
472
473# Initialize some other variables.
474subdirs=
475MFLAGS= MAKEFLAGS=
476SHELL=${CONFIG_SHELL-/bin/sh}
477# Maximum number of lines to put in a shell here document.
478ac_max_here_lines=12
479
480ac_prev=
481for ac_option
482do
483
484 # If the previous option needs an argument, assign it.
485 if test -n "$ac_prev"; then
486 eval "$ac_prev=\$ac_option"
487 ac_prev=
488 continue
489 fi
490
491 case "$ac_option" in
492 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
493 *) ac_optarg= ;;
494 esac
495
496 # Accept the important Cygnus configure options, so we can diagnose typos.
497
498 case "$ac_option" in
499
500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
501 ac_prev=bindir ;;
502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503 bindir="$ac_optarg" ;;
504
505 -build | --build | --buil | --bui | --bu)
506 ac_prev=build ;;
507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
508 build="$ac_optarg" ;;
509
510 -cache-file | --cache-file | --cache-fil | --cache-fi \
511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
512 ac_prev=cache_file ;;
513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
515 cache_file="$ac_optarg" ;;
516
517 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
518 ac_prev=datadir ;;
519 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
520 | --da=*)
521 datadir="$ac_optarg" ;;
522
523 -disable-* | --disable-*)
524 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
528 fi
529 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
530 eval "enable_${ac_feature}=no" ;;
531
532 -enable-* | --enable-*)
533 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
534 # Reject names that are not valid shell variable names.
535 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
536 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
537 fi
538 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
539 case "$ac_option" in
540 *=*) ;;
541 *) ac_optarg=yes ;;
542 esac
543 eval "enable_${ac_feature}='$ac_optarg'" ;;
544
545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
547 | --exec | --exe | --ex)
548 ac_prev=exec_prefix ;;
549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
551 | --exec=* | --exe=* | --ex=*)
552 exec_prefix="$ac_optarg" ;;
553
554 -gas | --gas | --ga | --g)
555 # Obsolete; use --with-gas.
556 with_gas=yes ;;
557
558 -help | --help | --hel | --he)
559 # Omit some internal or obsolete options to make the list less imposing.
560 # This message is too long to be a string in the A/UX 3.1 sh.
561 cat << EOF
562Usage: configure [options] [host]
563Options: [defaults in brackets after descriptions]
564Configuration:
565 --cache-file=FILE cache test results in FILE
566 --help print this message
567 --no-create do not create output files
568 --quiet, --silent do not print \`checking...' messages
569 --version print the version of autoconf that created configure
570Directory and file names:
571 --prefix=PREFIX install architecture-independent files in PREFIX
572 [$ac_default_prefix]
573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
574 [same as prefix]
575 --bindir=DIR user executables in DIR [EPREFIX/bin]
576 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
577 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data in DIR
579 [PREFIX/share]
580 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
581 --sharedstatedir=DIR modifiable architecture-independent data in DIR
582 [PREFIX/com]
583 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
584 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
585 --includedir=DIR C header files in DIR [PREFIX/include]
586 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
587 --infodir=DIR info documentation in DIR [PREFIX/info]
588 --mandir=DIR man documentation in DIR [PREFIX/man]
589 --srcdir=DIR find the sources in DIR [configure dir or ..]
590 --program-prefix=PREFIX prepend PREFIX to installed program names
591 --program-suffix=SUFFIX append SUFFIX to installed program names
592 --program-transform-name=PROGRAM
593 run sed PROGRAM on installed program names
594EOF
595 cat << EOF
596Host type:
597 --build=BUILD configure for building on BUILD [BUILD=HOST]
598 --host=HOST configure for HOST [guessed]
599 --target=TARGET configure for TARGET [TARGET=HOST]
600Features and packages:
601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
605 --x-includes=DIR X include files are in DIR
606 --x-libraries=DIR X library files are in DIR
607EOF
608 if test -n "$ac_help"; then
609 echo "--enable and --with options recognized:$ac_help"
610 fi
611 exit 0 ;;
612
613 -host | --host | --hos | --ho)
614 ac_prev=host ;;
615 -host=* | --host=* | --hos=* | --ho=*)
616 host="$ac_optarg" ;;
617
618 -includedir | --includedir | --includedi | --included | --include \
619 | --includ | --inclu | --incl | --inc)
620 ac_prev=includedir ;;
621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
622 | --includ=* | --inclu=* | --incl=* | --inc=*)
623 includedir="$ac_optarg" ;;
624
625 -infodir | --infodir | --infodi | --infod | --info | --inf)
626 ac_prev=infodir ;;
627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
628 infodir="$ac_optarg" ;;
629
630 -libdir | --libdir | --libdi | --libd)
631 ac_prev=libdir ;;
632 -libdir=* | --libdir=* | --libdi=* | --libd=*)
633 libdir="$ac_optarg" ;;
634
635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
636 | --libexe | --libex | --libe)
637 ac_prev=libexecdir ;;
638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
639 | --libexe=* | --libex=* | --libe=*)
640 libexecdir="$ac_optarg" ;;
641
642 -localstatedir | --localstatedir | --localstatedi | --localstated \
643 | --localstate | --localstat | --localsta | --localst \
644 | --locals | --local | --loca | --loc | --lo)
645 ac_prev=localstatedir ;;
646 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
647 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
648 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
649 localstatedir="$ac_optarg" ;;
650
651 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
652 ac_prev=mandir ;;
653 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
654 mandir="$ac_optarg" ;;
655
656 -nfp | --nfp | --nf)
657 # Obsolete; use --without-fp.
658 with_fp=no ;;
659
660 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 | --no-cr | --no-c)
662 no_create=yes ;;
663
664 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
665 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
666 no_recursion=yes ;;
667
668 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
669 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
670 | --oldin | --oldi | --old | --ol | --o)
671 ac_prev=oldincludedir ;;
672 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
673 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
674 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
675 oldincludedir="$ac_optarg" ;;
676
677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
678 ac_prev=prefix ;;
679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
680 prefix="$ac_optarg" ;;
681
682 -program-prefix | --program-prefix | --program-prefi | --program-pref \
683 | --program-pre | --program-pr | --program-p)
684 ac_prev=program_prefix ;;
685 -program-prefix=* | --program-prefix=* | --program-prefi=* \
686 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
687 program_prefix="$ac_optarg" ;;
688
689 -program-suffix | --program-suffix | --program-suffi | --program-suff \
690 | --program-suf | --program-su | --program-s)
691 ac_prev=program_suffix ;;
692 -program-suffix=* | --program-suffix=* | --program-suffi=* \
693 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
694 program_suffix="$ac_optarg" ;;
695
696 -program-transform-name | --program-transform-name \
697 | --program-transform-nam | --program-transform-na \
698 | --program-transform-n | --program-transform- \
699 | --program-transform | --program-transfor \
700 | --program-transfo | --program-transf \
701 | --program-trans | --program-tran \
702 | --progr-tra | --program-tr | --program-t)
703 ac_prev=program_transform_name ;;
704 -program-transform-name=* | --program-transform-name=* \
705 | --program-transform-nam=* | --program-transform-na=* \
706 | --program-transform-n=* | --program-transform-=* \
707 | --program-transform=* | --program-transfor=* \
708 | --program-transfo=* | --program-transf=* \
709 | --program-trans=* | --program-tran=* \
710 | --progr-tra=* | --program-tr=* | --program-t=*)
711 program_transform_name="$ac_optarg" ;;
712
713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
714 | -silent | --silent | --silen | --sile | --sil)
715 silent=yes ;;
716
717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
718 ac_prev=sbindir ;;
719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
720 | --sbi=* | --sb=*)
721 sbindir="$ac_optarg" ;;
722
723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
725 | --sharedst | --shareds | --shared | --share | --shar \
726 | --sha | --sh)
727 ac_prev=sharedstatedir ;;
728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
731 | --sha=* | --sh=*)
732 sharedstatedir="$ac_optarg" ;;
733
734 -site | --site | --sit)
735 ac_prev=site ;;
736 -site=* | --site=* | --sit=*)
737 site="$ac_optarg" ;;
738
739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
740 ac_prev=srcdir ;;
741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
742 srcdir="$ac_optarg" ;;
743
744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
745 | --syscon | --sysco | --sysc | --sys | --sy)
746 ac_prev=sysconfdir ;;
747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
749 sysconfdir="$ac_optarg" ;;
750
751 -target | --target | --targe | --targ | --tar | --ta | --t)
752 ac_prev=target ;;
753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
754 target="$ac_optarg" ;;
755
756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
757 verbose=yes ;;
758
759 -version | --version | --versio | --versi | --vers)
760 echo "configure generated by autoconf version 2.13"
761 exit 0 ;;
762
763 -with-* | --with-*)
764 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
765 # Reject names that are not valid shell variable names.
766 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
767 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
768 fi
769 ac_package=`echo $ac_package| sed 's/-/_/g'`
770 case "$ac_option" in
771 *=*) ;;
772 *) ac_optarg=yes ;;
773 esac
774 eval "with_${ac_package}='$ac_optarg'" ;;
775
776 -without-* | --without-*)
777 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
778 # Reject names that are not valid shell variable names.
779 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
780 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 fi
782 ac_package=`echo $ac_package| sed 's/-/_/g'`
783 eval "with_${ac_package}=no" ;;
784
785 --x)
786 # Obsolete; use --with-x.
787 with_x=yes ;;
788
789 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790 | --x-incl | --x-inc | --x-in | --x-i)
791 ac_prev=x_includes ;;
792 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
794 x_includes="$ac_optarg" ;;
795
796 -x-libraries | --x-libraries | --x-librarie | --x-librari \
797 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798 ac_prev=x_libraries ;;
799 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
801 x_libraries="$ac_optarg" ;;
802
803 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
804 ;;
805
806 *)
807 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
808 echo "configure: warning: $ac_option: invalid host type" 1>&2
809 fi
810 if test "x$nonopt" != xNONE; then
811 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
812 fi
813 nonopt="$ac_option"
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
821fi
822
823trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
824
825# File descriptor usage:
826# 0 standard input
827# 1 file creation
828# 2 errors and warnings
829# 3 some systems may open it to /dev/tty
830# 4 used on the Kubota Titan
831# 6 checking for... messages and results
832# 5 compiler messages saved in config.log
833if test "$silent" = yes; then
834 exec 6>/dev/null
835else
836 exec 6>&1
837fi
838exec 5>./config.log
839
840echo "\
841This file contains any messages produced by compilers while
842running configure, to aid debugging if configure makes a mistake.
843" 1>&5
844
845# Strip out --no-create and --no-recursion so they do not pile up.
846# Also quote any args containing shell metacharacters.
847ac_configure_args=
848for ac_arg
849do
850 case "$ac_arg" in
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
852 | --no-cr | --no-c) ;;
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
855 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
856 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
857 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
858 esac
859done
860
861# NLS nuisances.
862# Only set these to C if already set. These must not be set unconditionally
863# because not all systems understand e.g. LANG=C (notably SCO).
864# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
865# Non-C LC_CTYPE values break the ctype check.
866if test "${LANG+set}" = set; then LANG=C; export LANG; fi
867if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
868if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
869if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
870
871# confdefs.h avoids OS command line length limits that DEFS can exceed.
872rm -rf conftest* confdefs.h
873# AIX cpp loses on an empty file, so make sure it contains at least a newline.
874echo > confdefs.h
875
876# A filename unique to this package, relative to the directory that
877# configure is in, which we can look for to find out if srcdir is correct.
878ac_unique_file=wx-config.in
879
880# Find the source files, if location was not specified.
881if test -z "$srcdir"; then
882 ac_srcdir_defaulted=yes
883 # Try the directory containing this script, then its parent.
884 ac_prog=$0
885 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
886 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
897 else
898 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
899 fi
900fi
901srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
902
903# Prefer explicitly selected file to automatically selected ones.
904if test -z "$CONFIG_SITE"; then
905 if test "x$prefix" != xNONE; then
906 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
907 else
908 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
909 fi
910fi
911for ac_site_file in $CONFIG_SITE; do
912 if test -r "$ac_site_file"; then
913 echo "loading site script $ac_site_file"
914 . "$ac_site_file"
915 fi
916done
917
918if test -r "$cache_file"; then
919 echo "loading cache $cache_file"
920 . $cache_file
921else
922 echo "creating cache $cache_file"
923 > $cache_file
924fi
925
926ac_ext=c
927# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928ac_cpp='$CPP $CPPFLAGS'
929ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931cross_compiling=$ac_cv_prog_cc_cross
932
933ac_exeext=
934ac_objext=o
935if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
936 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
937 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
938 ac_n= ac_c='
939' ac_t=' '
940 else
941 ac_n=-n ac_c= ac_t=
942 fi
943else
944 ac_n= ac_c='\c' ac_t=
945fi
946
947
948
949ac_aux_dir=
950for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960done
961if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963fi
964ac_config_guess=$ac_aux_dir/config.guess
965ac_config_sub=$ac_aux_dir/config.sub
966ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968
969# Do some error checking and defaulting for the host and target type.
970# The inputs are:
971# configure --host=HOST --target=TARGET --build=BUILD NONOPT
972#
973# The rules are:
974# 1. You are not allowed to specify --host, --target, and nonopt at the
975# same time.
976# 2. Host defaults to nonopt.
977# 3. If nonopt is not specified, then host defaults to the current host,
978# as determined by config.guess.
979# 4. Target and build default to nonopt.
980# 5. If nonopt is not specified, then target and build default to host.
981
982# The aliases save the names the user supplied, while $host etc.
983# will get canonicalized.
984case $host---$target---$nonopt in
985NONE---*---* | *---NONE---* | *---*---NONE) ;;
986*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987esac
988
989
990# Make sure we can run config.sub.
991if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
992else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993fi
994
995echo $ac_n "checking host system type""... $ac_c" 1>&6
996echo "configure:997: checking host system type" >&5
997
998host_alias=$host
999case "$host_alias" in
1000NONE)
1001 case $nonopt in
1002 NONE)
1003 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 fi ;;
1006 *) host_alias=$nonopt ;;
1007 esac ;;
1008esac
1009
1010host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014echo "$ac_t""$host" 1>&6
1015
1016echo $ac_n "checking target system type""... $ac_c" 1>&6
1017echo "configure:1018: checking target system type" >&5
1018
1019target_alias=$target
1020case "$target_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE) target_alias=$host_alias ;;
1024 *) target_alias=$nonopt ;;
1025 esac ;;
1026esac
1027
1028target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032echo "$ac_t""$target" 1>&6
1033
1034echo $ac_n "checking build system type""... $ac_c" 1>&6
1035echo "configure:1036: checking build system type" >&5
1036
1037build_alias=$build
1038case "$build_alias" in
1039NONE)
1040 case $nonopt in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1043 esac ;;
1044esac
1045
1046build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050echo "$ac_t""$build" 1>&6
1051
1052test "$host_alias" != "$target_alias" &&
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1054 NONENONEs,x,x, &&
1055 program_prefix=${target_alias}-
1056
1057
1058
1059WX_MAJOR_VERSION_NUMBER=2
1060WX_MINOR_VERSION_NUMBER=3
1061WX_RELEASE_NUMBER=3
1062
1063WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1064WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1065
1066WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1067
1068WX_CURRENT=2
1069WX_REVISION=0
1070WX_AGE=0
1071
1072
1073
1074USE_UNIX=1
1075USE_WIN32=0
1076USE_DOS=0
1077USE_BEOS=0
1078USE_MAC=0
1079
1080USE_LINUX=
1081USE_SGI=
1082USE_HPUX=
1083USE_SYSV=
1084USE_SVR4=
1085USE_AIX=
1086USE_SUN=
1087USE_SOLARIS=
1088USE_SUNOS=
1089USE_ALPHA=
1090USE_OSF=
1091USE_BSD=
1092USE_DARWIN=
1093USE_FREEBSD=
1094USE_OPENBSD=
1095USE_NETBSD=
1096USE_VMS=
1097USE_ULTRIX=
1098USE_DATA_GENERAL=
1099
1100NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1101
1102CPP_MT_FLAG=-D_REENTRANT
1103
1104ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1105
1106DEFAULT_wxUSE_GTK=0
1107DEFAULT_wxUSE_MAC=0
1108DEFAULT_wxUSE_MGL=0
1109DEFAULT_wxUSE_MICROWIN=0
1110DEFAULT_wxUSE_MOTIF=0
1111DEFAULT_wxUSE_MSW=0
1112DEFAULT_wxUSE_PM=0
1113DEFAULT_wxUSE_WINE=0
1114DEFAULT_wxUSE_X11=0
1115
1116DEFAULT_DEFAULT_wxUSE_GTK=0
1117DEFAULT_DEFAULT_wxUSE_MAC=0
1118DEFAULT_DEFAULT_wxUSE_MGL=0
1119DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1120DEFAULT_DEFAULT_wxUSE_MOTIF=0
1121DEFAULT_DEFAULT_wxUSE_MSW=0
1122DEFAULT_DEFAULT_wxUSE_PM=0
1123DEFAULT_DEFAULT_wxUSE_WINE=0
1124DEFAULT_DEFAULT_wxUSE_X11=0
1125
1126PROGRAM_EXT=
1127SO_SUFFIX=so
1128
1129case "${host}" in
1130 *-hp-hpux* )
1131 USE_HPUX=1
1132 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1134 SO_SUFFIX=sl
1135 cat >> confdefs.h <<\EOF
1136#define __HPUX__ 1
1137EOF
1138
1139 ;;
1140 *-*-linux* )
1141 USE_LINUX=1
1142 cat >> confdefs.h <<\EOF
1143#define __LINUX__ 1
1144EOF
1145
1146 TMP=`uname -m`
1147 if test "x$TMP" = "xalpha"; then
1148 USE_ALPHA=1
1149 cat >> confdefs.h <<\EOF
1150#define __ALPHA__ 1
1151EOF
1152
1153 fi
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-irix5* | *-*-irix6* )
1157 USE_SGI=1
1158 USE_SVR4=1
1159 cat >> confdefs.h <<\EOF
1160#define __SGI__ 1
1161EOF
1162
1163 cat >> confdefs.h <<\EOF
1164#define __SVR4__ 1
1165EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1168 ;;
1169 *-*-solaris2* )
1170 USE_SUN=1
1171 USE_SOLARIS=1
1172 USE_SVR4=1
1173 cat >> confdefs.h <<\EOF
1174#define __SUN__ 1
1175EOF
1176
1177 cat >> confdefs.h <<\EOF
1178#define __SOLARIS__ 1
1179EOF
1180
1181 cat >> confdefs.h <<\EOF
1182#define __SVR4__ 1
1183EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1187 ;;
1188 *-*-sunos4* )
1189 USE_SUN=1
1190 USE_SUNOS=1
1191 USE_BSD=1
1192 cat >> confdefs.h <<\EOF
1193#define __SUN__ 1
1194EOF
1195
1196 cat >> confdefs.h <<\EOF
1197#define __SUNOS__ 1
1198EOF
1199
1200 cat >> confdefs.h <<\EOF
1201#define __BSD__ 1
1202EOF
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205 ;;
1206 *-*-freebsd*)
1207 USE_BSD=1
1208 USE_FREEBSD=1
1209 CPP_MT_FLAG=-D_THREAD_SAFE
1210 cat >> confdefs.h <<\EOF
1211#define __FREEBSD__ 1
1212EOF
1213
1214 cat >> confdefs.h <<\EOF
1215#define __BSD__ 1
1216EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-openbsd*)
1221 USE_BSD=1
1222 USE_OPENBSD=1
1223 cat >> confdefs.h <<\EOF
1224#define __FREEBSD__ 1
1225EOF
1226
1227 cat >> confdefs.h <<\EOF
1228#define __OPENBSD__ 1
1229EOF
1230
1231 DEFAULT_DEFAULT_wxUSE_GTK=1
1232 ;;
1233 *-*-netbsd*)
1234 USE_BSD=1
1235 USE_NETBSD=1
1236 cat >> confdefs.h <<\EOF
1237#define __FREEBSD__ 1
1238EOF
1239
1240 cat >> confdefs.h <<\EOF
1241#define __NETBSD__ 1
1242EOF
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-osf* )
1247 USE_ALPHA=1
1248 USE_OSF=1
1249 cat >> confdefs.h <<\EOF
1250#define __ALPHA__ 1
1251EOF
1252
1253 cat >> confdefs.h <<\EOF
1254#define __OSF__ 1
1255EOF
1256
1257 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1258 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1259 ;;
1260 *-*-dgux5* )
1261 USE_ALPHA=1
1262 USE_SVR4=1
1263 cat >> confdefs.h <<\EOF
1264#define __ALPHA__ 1
1265EOF
1266
1267 cat >> confdefs.h <<\EOF
1268#define __SVR4__ 1
1269EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 ;;
1273 *-*-sysv5* )
1274 USE_SYSV=1
1275 USE_SVR4=1
1276 cat >> confdefs.h <<\EOF
1277#define __SYSV__ 1
1278EOF
1279
1280 cat >> confdefs.h <<\EOF
1281#define __SVR4__ 1
1282EOF
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
1286 *-*-aix* )
1287 USE_AIX=1
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291#define __AIX__ 1
1292EOF
1293
1294 cat >> confdefs.h <<\EOF
1295#define __SYSV__ 1
1296EOF
1297
1298 cat >> confdefs.h <<\EOF
1299#define __SVR4__ 1
1300EOF
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304
1305 *-*-cygwin* | *-*-mingw32* )
1306 USE_UNIX=0
1307 USE_WIN32=1
1308 SO_SUFFIX=dll
1309 cat >> confdefs.h <<\EOF
1310#define __WIN32__ 1
1311EOF
1312
1313 cat >> confdefs.h <<\EOF
1314#define __WIN95__ 1
1315EOF
1316
1317 cat >> confdefs.h <<\EOF
1318#define __WINDOWS__ 1
1319EOF
1320
1321 cat >> confdefs.h <<\EOF
1322#define __GNUWIN32__ 1
1323EOF
1324
1325 cat >> confdefs.h <<\EOF
1326#define STRICT 1
1327EOF
1328
1329 cat >> confdefs.h <<\EOF
1330#define WINVER 0x0400
1331EOF
1332
1333 PROGRAM_EXT=".exe"
1334 RESCOMP=windres
1335 DEFAULT_DEFAULT_wxUSE_MSW=1
1336 ;;
1337
1338 *-pc-msdosdjgpp )
1339 USE_UNIX=0
1340 USE_DOS=1
1341 cat >> confdefs.h <<\EOF
1342#define __DOS__ 1
1343EOF
1344
1345 PROGRAM_EXT=".exe"
1346 DEFAULT_DEFAULT_wxUSE_MGL=1
1347 ;;
1348
1349 *-pc-os2_emx | *-pc-os2-emx )
1350 cat >> confdefs.h <<\EOF
1351#define __EMX__ 1
1352EOF
1353
1354 PROGRAM_EXT=".exe"
1355 DEFAULT_DEFAULT_wxUSE_PM=1
1356 LIBS="$LIBS -lstdcpp"
1357 ;;
1358
1359 powerpc-*-darwin* )
1360 USE_BSD=1
1361 USE_DARWIN=1
1362 CPP_MT_FLAG=
1363 SO_SUFFIX=dylib
1364 cat >> confdefs.h <<\EOF
1365#define __BSD__ 1
1366EOF
1367
1368 cat >> confdefs.h <<\EOF
1369#define __DARWIN__ 1
1370EOF
1371
1372 cat >> confdefs.h <<\EOF
1373#define __POWERPC__ 1
1374EOF
1375
1376 DEFAULT_DEFAULT_wxUSE_MAC=1
1377 ;;
1378
1379 *-*-beos* )
1380 USE_BEOS=1
1381 cat >> confdefs.h <<\EOF
1382#define __BEOS__ 1
1383EOF
1384
1385 ;;
1386
1387 *)
1388 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1389esac
1390
1391if test "$USE_UNIX" = 1 ; then
1392 wxUSE_UNIX=yes
1393 cat >> confdefs.h <<\EOF
1394#define __UNIX__ 1
1395EOF
1396
1397fi
1398
1399if test "$USE_LINUX" = 1; then
1400 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1401echo "configure:1402: checking for glibc 2.1 or later" >&5
1402if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404else
1405
1406 cat > conftest.$ac_ext <<EOF
1407#line 1408 "configure"
1408#include "confdefs.h"
1409#include <features.h>
1410int main() {
1411
1412 #if !__GLIBC_PREREQ(2, 1)
1413 #error not glibc2.1
1414 #endif
1415
1416; return 0; }
1417EOF
1418if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1419 rm -rf conftest*
1420
1421 wx_lib_glibc21=yes
1422
1423else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427
1428 wx_lib_glibc21=no
1429
1430
1431fi
1432rm -f conftest*
1433
1434fi
1435
1436echo "$ac_t""$wx_lib_glibc21" 1>&6
1437 if test "$wx_lib_glibc21" = "yes"; then
1438 cat >> confdefs.h <<\EOF
1439#define wxHAVE_GLIBC2 1
1440EOF
1441
1442 fi
1443fi
1444
1445
1446
1447
1448 wx_arg_cache_file="configarg.cache"
1449 echo "loading argument cache $wx_arg_cache_file"
1450 rm -f ${wx_arg_cache_file}.tmp
1451 touch ${wx_arg_cache_file}.tmp
1452 touch ${wx_arg_cache_file}
1453
1454
1455DEBUG_CONFIGURE=0
1456if test $DEBUG_CONFIGURE = 1; then
1457 DEFAULT_wxUSE_UNIVERSAL=no
1458
1459 DEFAULT_wxUSE_NANOX=no
1460
1461 DEFAULT_wxUSE_THREADS=yes
1462
1463 DEFAULT_wxUSE_SHARED=yes
1464 DEFAULT_wxUSE_SONAME=no
1465 DEFAULT_wxUSE_OPTIMISE=no
1466 DEFAULT_wxUSE_PROFILE=no
1467 DEFAULT_wxUSE_NO_DEPS=no
1468 DEFAULT_wxUSE_NO_RTTI=yes
1469 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1470 DEFAULT_wxUSE_PERMISSIVE=no
1471 DEFAULT_wxUSE_DEBUG_FLAG=yes
1472 DEFAULT_wxUSE_DEBUG_INFO=yes
1473 DEFAULT_wxUSE_DEBUG_GDB=yes
1474 DEFAULT_wxUSE_MEM_TRACING=no
1475 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1476 DEFAULT_wxUSE_DMALLOC=no
1477 DEFAULT_wxUSE_PRECOMP=no
1478 DEFAULT_wxUSE_APPLE_IEEE=no
1479
1480 DEFAULT_wxUSE_LOG=yes
1481 DEFAULT_wxUSE_LOGWINDOW=no
1482 DEFAULT_wxUSE_LOGGUI=no
1483 DEFAULT_wxUSE_LOGDIALOG=no
1484
1485 DEFAULT_wxUSE_GUI=yes
1486 DEFAULT_wxUSE_CONTROLS=no
1487
1488 DEFAULT_wxUSE_REGEX=no
1489 DEFAULT_wxUSE_ZLIB=no
1490 DEFAULT_wxUSE_LIBPNG=no
1491 DEFAULT_wxUSE_LIBJPEG=no
1492 DEFAULT_wxUSE_LIBTIFF=no
1493 DEFAULT_wxUSE_ODBC=no
1494 DEFAULT_wxUSE_OPENGL=no
1495
1496 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1497 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1498 DEFAULT_wxUSE_STD_IOSTREAM=no
1499 DEFAULT_wxUSE_CMDLINE_PARSER=no
1500 DEFAULT_wxUSE_DATETIME=no
1501 DEFAULT_wxUSE_TIMEDATE=no
1502 DEFAULT_wxUSE_TIMER=no
1503 DEFAULT_wxUSE_STOPWATCH=no
1504 DEFAULT_wxUSE_FILE=no
1505 DEFAULT_wxUSE_FFILE=no
1506 DEFAULT_wxUSE_TEXTBUFFER=no
1507 DEFAULT_wxUSE_TEXTFILE=no
1508 DEFAULT_wxUSE_WAVE=no
1509 DEFAULT_wxUSE_INTL=no
1510 DEFAULT_wxUSE_CONFIG=no
1511 DEFAULT_wxUSE_FONTMAP=no
1512 DEFAULT_wxUSE_STREAMS=no
1513 DEFAULT_wxUSE_SOCKETS=no
1514 DEFAULT_wxUSE_DIALUP_MANAGER=no
1515 DEFAULT_wxUSE_JOYSTICK=no
1516 DEFAULT_wxUSE_DYNLIB_CLASS=no
1517 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1518 DEFAULT_wxUSE_LONGLONG=no
1519 DEFAULT_wxUSE_GEOMETRY=no
1520
1521 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1522 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1523 DEFAULT_wxUSE_POSTSCRIPT=no
1524
1525 DEFAULT_wxUSE_X_RESOURCES=no
1526 DEFAULT_wxUSE_CLIPBOARD=no
1527 DEFAULT_wxUSE_TOOLTIPS=no
1528 DEFAULT_wxUSE_DRAG_AND_DROP=no
1529 DEFAULT_wxUSE_DRAGIMAGE=no
1530 DEFAULT_wxUSE_SPLINES=no
1531
1532 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1533 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1534 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1535
1536 DEFAULT_wxUSE_PROLOGIO=no
1537 DEFAULT_wxUSE_RESOURCES=no
1538 DEFAULT_wxUSE_CONSTRAINTS=no
1539 DEFAULT_wxUSE_IPC=no
1540 DEFAULT_wxUSE_HELP=no
1541 DEFAULT_wxUSE_MS_HTML_HELP=no
1542 DEFAULT_wxUSE_WXHTML_HELP=no
1543 DEFAULT_wxUSE_TREELAYOUT=no
1544 DEFAULT_wxUSE_METAFILE=no
1545 DEFAULT_wxUSE_MIMETYPE=no
1546 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1547 DEFAULT_wxUSE_PROTOCOL=no
1548 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1549 DEFAULT_wxUSE_PROTOCOL_FTP=no
1550 DEFAULT_wxUSE_PROTOCOL_FILE=no
1551 DEFAULT_wxUSE_URL=no
1552
1553 DEFAULT_wxUSE_COMMONDLGS=no
1554 DEFAULT_wxUSE_CHOICEDLG=no
1555 DEFAULT_wxUSE_COLOURDLG=no
1556 DEFAULT_wxUSE_DIRDLG=no
1557 DEFAULT_wxUSE_FILEDLG=no
1558 DEFAULT_wxUSE_FINDREPLDLG=no
1559 DEFAULT_wxUSE_FONTDLG=no
1560 DEFAULT_wxUSE_MSGDLG=no
1561 DEFAULT_wxUSE_NUMBERDLG=no
1562 DEFAULT_wxUSE_TEXTDLG=no
1563 DEFAULT_wxUSE_SPLASH=no
1564 DEFAULT_wxUSE_STARTUP_TIPS=no
1565 DEFAULT_wxUSE_PROGRESSDLG=no
1566 DEFAULT_wxUSE_WIZARDDLG=no
1567
1568 DEFAULT_wxUSE_MENUS=no
1569 DEFAULT_wxUSE_MINIFRAME=no
1570 DEFAULT_wxUSE_HTML=no
1571 DEFAULT_wxUSE_FILESYSTEM=no
1572 DEFAULT_wxUSE_FS_INET=no
1573 DEFAULT_wxUSE_FS_ZIP=no
1574 DEFAULT_wxUSE_BUSYINFO=no
1575 DEFAULT_wxUSE_ZIPSTREAM=no
1576 DEFAULT_wxUSE_VALIDATORS=no
1577
1578 DEFAULT_wxUSE_ACCEL=no
1579 DEFAULT_wxUSE_BUTTON=no
1580 DEFAULT_wxUSE_BMPBUTTON=no
1581 DEFAULT_wxUSE_CALCTRL=no
1582 DEFAULT_wxUSE_CARET=no
1583 DEFAULT_wxUSE_CHECKBOX=no
1584 DEFAULT_wxUSE_CHECKLST=no
1585 DEFAULT_wxUSE_CHOICE=no
1586 DEFAULT_wxUSE_COMBOBOX=no
1587 DEFAULT_wxUSE_GAUGE=no
1588 DEFAULT_wxUSE_GRID=no
1589 DEFAULT_wxUSE_NEW_GRID=no
1590 DEFAULT_wxUSE_IMAGLIST=no
1591 DEFAULT_wxUSE_LISTBOX=no
1592 DEFAULT_wxUSE_LISTCTRL=no
1593 DEFAULT_wxUSE_NOTEBOOK=no
1594 DEFAULT_wxUSE_PROPSHEET=no
1595 DEFAULT_wxUSE_RADIOBOX=no
1596 DEFAULT_wxUSE_RADIOBTN=no
1597 DEFAULT_wxUSE_SASH=no
1598 DEFAULT_wxUSE_SCROLLBAR=no
1599 DEFAULT_wxUSE_SLIDER=no
1600 DEFAULT_wxUSE_SPINBTN=no
1601 DEFAULT_wxUSE_SPINCTRL=no
1602 DEFAULT_wxUSE_SPLITTER=no
1603 DEFAULT_wxUSE_STATBMP=no
1604 DEFAULT_wxUSE_STATBOX=no
1605 DEFAULT_wxUSE_STATLINE=no
1606 DEFAULT_wxUSE_STATTEXT=no
1607 DEFAULT_wxUSE_STATUSBAR=yes
1608 DEFAULT_wxUSE_TABDIALOG=no
1609 DEFAULT_wxUSE_TEXTCTRL=no
1610 DEFAULT_wxUSE_TOGGLEBTN=no
1611 DEFAULT_wxUSE_TOOLBAR=no
1612 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1613 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1614 DEFAULT_wxUSE_TREECTRL=no
1615 DEFAULT_wxUSE_POPUPWIN=no
1616 DEFAULT_wxUSE_TIPWINDOW=no
1617
1618 DEFAULT_wxUSE_UNICODE=no
1619 DEFAULT_wxUSE_UNICODE_MSLU=no
1620 DEFAULT_wxUSE_WCSRTOMBS=no
1621
1622 DEFAULT_wxUSE_PALETTE=no
1623 DEFAULT_wxUSE_IMAGE=no
1624 DEFAULT_wxUSE_GIF=no
1625 DEFAULT_wxUSE_PCX=no
1626 DEFAULT_wxUSE_PNM=no
1627 DEFAULT_wxUSE_IFF=no
1628 DEFAULT_wxUSE_XPM=no
1629 DEFAULT_wxUSE_ICO_CUR=no
1630else
1631 DEFAULT_wxUSE_UNIVERSAL=no
1632
1633 DEFAULT_wxUSE_NANOX=no
1634
1635 DEFAULT_wxUSE_THREADS=yes
1636
1637 DEFAULT_wxUSE_SHARED=yes
1638 DEFAULT_wxUSE_SONAME=no
1639 DEFAULT_wxUSE_OPTIMISE=yes
1640 DEFAULT_wxUSE_PROFILE=no
1641 DEFAULT_wxUSE_NO_DEPS=no
1642 DEFAULT_wxUSE_NO_RTTI=yes
1643 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1644 DEFAULT_wxUSE_PERMISSIVE=no
1645 DEFAULT_wxUSE_DEBUG_FLAG=no
1646 DEFAULT_wxUSE_DEBUG_INFO=no
1647 DEFAULT_wxUSE_DEBUG_GDB=no
1648 DEFAULT_wxUSE_MEM_TRACING=no
1649 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1650 DEFAULT_wxUSE_DMALLOC=no
1651 DEFAULT_wxUSE_PRECOMP=no
1652 DEFAULT_wxUSE_APPLE_IEEE=yes
1653
1654 DEFAULT_wxUSE_LOG=yes
1655 DEFAULT_wxUSE_LOGWINDOW=yes
1656 DEFAULT_wxUSE_LOGGUI=yes
1657 DEFAULT_wxUSE_LOGDIALOG=yes
1658
1659 DEFAULT_wxUSE_GUI=yes
1660
1661 DEFAULT_wxUSE_REGEX=yes
1662 DEFAULT_wxUSE_ZLIB=yes
1663 DEFAULT_wxUSE_LIBPNG=yes
1664 DEFAULT_wxUSE_LIBJPEG=yes
1665 DEFAULT_wxUSE_LIBTIFF=yes
1666 DEFAULT_wxUSE_ODBC=no
1667 DEFAULT_wxUSE_OPENGL=no
1668
1669 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1670 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1671 DEFAULT_wxUSE_STD_IOSTREAM=no
1672 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1673 DEFAULT_wxUSE_DATETIME=yes
1674 DEFAULT_wxUSE_TIMEDATE=no
1675 DEFAULT_wxUSE_TIMER=yes
1676 DEFAULT_wxUSE_STOPWATCH=yes
1677 DEFAULT_wxUSE_FILE=yes
1678 DEFAULT_wxUSE_FFILE=yes
1679 DEFAULT_wxUSE_TEXTBUFFER=yes
1680 DEFAULT_wxUSE_TEXTFILE=yes
1681 DEFAULT_wxUSE_WAVE=no
1682 DEFAULT_wxUSE_INTL=yes
1683 DEFAULT_wxUSE_CONFIG=yes
1684 DEFAULT_wxUSE_FONTMAP=yes
1685 DEFAULT_wxUSE_STREAMS=yes
1686 DEFAULT_wxUSE_SOCKETS=yes
1687 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1688 DEFAULT_wxUSE_JOYSTICK=yes
1689 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1690 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1691 DEFAULT_wxUSE_LONGLONG=yes
1692 DEFAULT_wxUSE_GEOMETRY=yes
1693
1694 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1695 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1696 DEFAULT_wxUSE_POSTSCRIPT=yes
1697
1698 DEFAULT_wxUSE_X_RESOURCES=no
1699 DEFAULT_wxUSE_CLIPBOARD=yes
1700 DEFAULT_wxUSE_TOOLTIPS=yes
1701 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1702 DEFAULT_wxUSE_DRAGIMAGE=yes
1703 DEFAULT_wxUSE_SPLINES=yes
1704
1705 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1706 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1707 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1708
1709 DEFAULT_wxUSE_PROLOGIO=yes
1710 DEFAULT_wxUSE_RESOURCES=yes
1711 DEFAULT_wxUSE_CONSTRAINTS=yes
1712 DEFAULT_wxUSE_IPC=yes
1713 DEFAULT_wxUSE_HELP=yes
1714 DEFAULT_wxUSE_MS_HTML_HELP=yes
1715 DEFAULT_wxUSE_WXHTML_HELP=yes
1716 DEFAULT_wxUSE_TREELAYOUT=yes
1717 DEFAULT_wxUSE_METAFILE=yes
1718 DEFAULT_wxUSE_MIMETYPE=yes
1719 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1720 DEFAULT_wxUSE_PROTOCOL=yes
1721 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1722 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1723 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1724 DEFAULT_wxUSE_URL=yes
1725
1726 DEFAULT_wxUSE_COMMONDLGS=yes
1727 DEFAULT_wxUSE_CHOICEDLG=yes
1728 DEFAULT_wxUSE_COLOURDLG=yes
1729 DEFAULT_wxUSE_DIRDLG=yes
1730 DEFAULT_wxUSE_FILEDLG=yes
1731 DEFAULT_wxUSE_FINDREPLDLG=yes
1732 DEFAULT_wxUSE_FONTDLG=yes
1733 DEFAULT_wxUSE_MSGDLG=yes
1734 DEFAULT_wxUSE_NUMBERDLG=yes
1735 DEFAULT_wxUSE_TEXTDLG=yes
1736 DEFAULT_wxUSE_SPLASH=yes
1737 DEFAULT_wxUSE_STARTUP_TIPS=yes
1738 DEFAULT_wxUSE_PROGRESSDLG=yes
1739 DEFAULT_wxUSE_WIZARDDLG=yes
1740
1741 DEFAULT_wxUSE_MENUS=yes
1742 DEFAULT_wxUSE_MINIFRAME=yes
1743 DEFAULT_wxUSE_HTML=yes
1744 DEFAULT_wxUSE_FILESYSTEM=yes
1745 DEFAULT_wxUSE_FS_INET=yes
1746 DEFAULT_wxUSE_FS_ZIP=yes
1747 DEFAULT_wxUSE_BUSYINFO=yes
1748 DEFAULT_wxUSE_ZIPSTREAM=yes
1749 DEFAULT_wxUSE_VALIDATORS=yes
1750
1751 DEFAULT_wxUSE_ACCEL=yes
1752 DEFAULT_wxUSE_BUTTON=yes
1753 DEFAULT_wxUSE_BMPBUTTON=yes
1754 DEFAULT_wxUSE_CALCTRL=yes
1755 DEFAULT_wxUSE_CARET=yes
1756 DEFAULT_wxUSE_CHECKBOX=yes
1757 DEFAULT_wxUSE_CHECKLST=yes
1758 DEFAULT_wxUSE_CHOICE=yes
1759 DEFAULT_wxUSE_COMBOBOX=yes
1760 DEFAULT_wxUSE_GAUGE=yes
1761 DEFAULT_wxUSE_GRID=yes
1762 DEFAULT_wxUSE_NEW_GRID=yes
1763 DEFAULT_wxUSE_IMAGLIST=yes
1764 DEFAULT_wxUSE_LISTBOX=yes
1765 DEFAULT_wxUSE_LISTCTRL=yes
1766 DEFAULT_wxUSE_NOTEBOOK=yes
1767 DEFAULT_wxUSE_PROPSHEET=yes
1768 DEFAULT_wxUSE_RADIOBOX=yes
1769 DEFAULT_wxUSE_RADIOBTN=yes
1770 DEFAULT_wxUSE_SASH=yes
1771 DEFAULT_wxUSE_SCROLLBAR=yes
1772 DEFAULT_wxUSE_SLIDER=yes
1773 DEFAULT_wxUSE_SPINBTN=yes
1774 DEFAULT_wxUSE_SPINCTRL=yes
1775 DEFAULT_wxUSE_SPLITTER=yes
1776 DEFAULT_wxUSE_STATBMP=yes
1777 DEFAULT_wxUSE_STATBOX=yes
1778 DEFAULT_wxUSE_STATLINE=yes
1779 DEFAULT_wxUSE_STATTEXT=yes
1780 DEFAULT_wxUSE_STATUSBAR=yes
1781 DEFAULT_wxUSE_TABDIALOG=no
1782 DEFAULT_wxUSE_TEXTCTRL=yes
1783 DEFAULT_wxUSE_TOGGLEBTN=yes
1784 DEFAULT_wxUSE_TOOLBAR=yes
1785 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1786 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1787 DEFAULT_wxUSE_TREECTRL=yes
1788 DEFAULT_wxUSE_POPUPWIN=yes
1789 DEFAULT_wxUSE_TIPWINDOW=yes
1790
1791 DEFAULT_wxUSE_UNICODE=no
1792 DEFAULT_wxUSE_UNICODE_MSLU=yes
1793 DEFAULT_wxUSE_WCSRTOMBS=no
1794
1795 DEFAULT_wxUSE_PALETTE=yes
1796 DEFAULT_wxUSE_IMAGE=yes
1797 DEFAULT_wxUSE_GIF=yes
1798 DEFAULT_wxUSE_PCX=yes
1799 DEFAULT_wxUSE_IFF=no
1800 DEFAULT_wxUSE_PNM=yes
1801 DEFAULT_wxUSE_XPM=yes
1802 DEFAULT_wxUSE_ICO_CUR=yes
1803fi
1804
1805
1806
1807for toolkit in `echo $ALL_TOOLKITS`; do
1808 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1809 if test "x$LINE" != x ; then
1810 has_toolkit_in_cache=1
1811 eval "DEFAULT_$LINE"
1812 eval "CACHE_$toolkit=1"
1813 fi
1814done
1815
1816
1817
1818 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1819echo "configure:1820: checking for --enable-gui" >&5
1820 no_cache=0
1821 # Check whether --enable-gui or --disable-gui was given.
1822if test "${enable_gui+set}" = set; then
1823 enableval="$enable_gui"
1824
1825 if test "$enableval" = yes; then
1826 ac_cv_use_gui='wxUSE_GUI=yes'
1827 else
1828 ac_cv_use_gui='wxUSE_GUI=no'
1829 fi
1830
1831else
1832
1833 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1841
1842fi
1843
1844
1845 eval "$ac_cv_use_gui"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_GUI" = yes; then
1851 echo "$ac_t""yes" 1>&6
1852 else
1853 echo "$ac_t""no" 1>&6
1854 fi
1855
1856
1857if test "$wxUSE_GUI" = "yes"; then
1858
1859
1860 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1861echo "configure:1862: checking for --enable-universal" >&5
1862 no_cache=0
1863 # Check whether --enable-universal or --disable-universal was given.
1864if test "${enable_universal+set}" = set; then
1865 enableval="$enable_universal"
1866
1867 if test "$enableval" = yes; then
1868 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1869 else
1870 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1871 fi
1872
1873else
1874
1875 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1876 if test "x$LINE" != x ; then
1877 eval "DEFAULT_$LINE"
1878 else
1879 no_cache=1
1880 fi
1881
1882 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1883
1884fi
1885
1886
1887 eval "$ac_cv_use_universal"
1888 if test "$no_cache" != 1; then
1889 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1890 fi
1891
1892 if test "$wxUSE_UNIVERSAL" = yes; then
1893 echo "$ac_t""yes" 1>&6
1894 else
1895 echo "$ac_t""no" 1>&6
1896 fi
1897
1898# Check whether --with-gtk or --without-gtk was given.
1899if test "${with_gtk+set}" = set; then
1900 withval="$with_gtk"
1901 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1902fi
1903
1904# Check whether --with-motif or --without-motif was given.
1905if test "${with_motif+set}" = set; then
1906 withval="$with_motif"
1907 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1908fi
1909
1910# Check whether --with-mac or --without-mac was given.
1911if test "${with_mac+set}" = set; then
1912 withval="$with_mac"
1913 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1914fi
1915
1916# Check whether --with-wine or --without-wine was given.
1917if test "${with_wine+set}" = set; then
1918 withval="$with_wine"
1919 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1920fi
1921
1922# Check whether --with-msw or --without-msw was given.
1923if test "${with_msw+set}" = set; then
1924 withval="$with_msw"
1925 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1926fi
1927
1928# Check whether --with-pm or --without-pm was given.
1929if test "${with_pm+set}" = set; then
1930 withval="$with_pm"
1931 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1932fi
1933
1934# Check whether --with-mgl or --without-mgl was given.
1935if test "${with_mgl+set}" = set; then
1936 withval="$with_mgl"
1937 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1938fi
1939
1940# Check whether --with-microwin or --without-microwin was given.
1941if test "${with_microwin+set}" = set; then
1942 withval="$with_microwin"
1943 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1944fi
1945
1946# Check whether --with-x11 or --without-x11 was given.
1947if test "${with_x11+set}" = set; then
1948 withval="$with_x11"
1949 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1950fi
1951
1952
1953 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1954echo "configure:1955: checking for --enable-nanox" >&5
1955 no_cache=0
1956 # Check whether --enable-nanox or --disable-nanox was given.
1957if test "${enable_nanox+set}" = set; then
1958 enableval="$enable_nanox"
1959
1960 if test "$enableval" = yes; then
1961 ac_cv_use_nanox='wxUSE_NANOX=yes'
1962 else
1963 ac_cv_use_nanox='wxUSE_NANOX=no'
1964 fi
1965
1966else
1967
1968 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1976
1977fi
1978
1979
1980 eval "$ac_cv_use_nanox"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_NANOX" = yes; then
1986 echo "$ac_t""yes" 1>&6
1987 else
1988 echo "$ac_t""no" 1>&6
1989 fi
1990
1991
1992# Check whether --enable-gtk2 or --disable-gtk2 was given.
1993if test "${enable_gtk2+set}" = set; then
1994 enableval="$enable_gtk2"
1995 wxUSE_GTK2=1
1996else
1997 wxUSE_GTK2=0
1998fi
1999
2000
2001
2002 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2003echo "configure:2004: checking for --with-libpng" >&5
2004 no_cache=0
2005 # Check whether --with-libpng or --without-libpng was given.
2006if test "${with_libpng+set}" = set; then
2007 withval="$with_libpng"
2008
2009 if test "$withval" = yes; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2011 elif test "$withval" = no; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2013 elif test "$withval" = sys; then
2014 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2015 elif test "$withval" = builtin; then
2016 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2017 else
2018 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2019 fi
2020
2021else
2022
2023 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2024 if test "x$LINE" != x ; then
2025 eval "DEFAULT_$LINE"
2026 else
2027 no_cache=1
2028 fi
2029
2030 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2031
2032fi
2033
2034
2035 eval "$ac_cv_use_libpng"
2036 if test "$no_cache" != 1; then
2037 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2038 fi
2039
2040 if test "$wxUSE_LIBPNG" = yes; then
2041 echo "$ac_t""yes" 1>&6
2042 elif test "$wxUSE_LIBPNG" = no; then
2043 echo "$ac_t""no" 1>&6
2044 elif test "$wxUSE_LIBPNG" = sys; then
2045 echo "$ac_t""system version" 1>&6
2046 elif test "$wxUSE_LIBPNG" = builtin; then
2047 echo "$ac_t""builtin version" 1>&6
2048 else
2049 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2050 fi
2051
2052
2053 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2054echo "configure:2055: checking for --with-libjpeg" >&5
2055 no_cache=0
2056 # Check whether --with-libjpeg or --without-libjpeg was given.
2057if test "${with_libjpeg+set}" = set; then
2058 withval="$with_libjpeg"
2059
2060 if test "$withval" = yes; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2062 elif test "$withval" = no; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2064 elif test "$withval" = sys; then
2065 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2066 elif test "$withval" = builtin; then
2067 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2068 else
2069 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2070 fi
2071
2072else
2073
2074 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2075 if test "x$LINE" != x ; then
2076 eval "DEFAULT_$LINE"
2077 else
2078 no_cache=1
2079 fi
2080
2081 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2082
2083fi
2084
2085
2086 eval "$ac_cv_use_libjpeg"
2087 if test "$no_cache" != 1; then
2088 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2089 fi
2090
2091 if test "$wxUSE_LIBJPEG" = yes; then
2092 echo "$ac_t""yes" 1>&6
2093 elif test "$wxUSE_LIBJPEG" = no; then
2094 echo "$ac_t""no" 1>&6
2095 elif test "$wxUSE_LIBJPEG" = sys; then
2096 echo "$ac_t""system version" 1>&6
2097 elif test "$wxUSE_LIBJPEG" = builtin; then
2098 echo "$ac_t""builtin version" 1>&6
2099 else
2100 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2101 fi
2102
2103
2104 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2105echo "configure:2106: checking for --with-libtiff" >&5
2106 no_cache=0
2107 # Check whether --with-libtiff or --without-libtiff was given.
2108if test "${with_libtiff+set}" = set; then
2109 withval="$with_libtiff"
2110
2111 if test "$withval" = yes; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2113 elif test "$withval" = no; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2115 elif test "$withval" = sys; then
2116 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2117 elif test "$withval" = builtin; then
2118 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2119 else
2120 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2121 fi
2122
2123else
2124
2125 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2126 if test "x$LINE" != x ; then
2127 eval "DEFAULT_$LINE"
2128 else
2129 no_cache=1
2130 fi
2131
2132 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2133
2134fi
2135
2136
2137 eval "$ac_cv_use_libtiff"
2138 if test "$no_cache" != 1; then
2139 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2140 fi
2141
2142 if test "$wxUSE_LIBTIFF" = yes; then
2143 echo "$ac_t""yes" 1>&6
2144 elif test "$wxUSE_LIBTIFF" = no; then
2145 echo "$ac_t""no" 1>&6
2146 elif test "$wxUSE_LIBTIFF" = sys; then
2147 echo "$ac_t""system version" 1>&6
2148 elif test "$wxUSE_LIBTIFF" = builtin; then
2149 echo "$ac_t""builtin version" 1>&6
2150 else
2151 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2152 fi
2153
2154
2155 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2156echo "configure:2157: checking for --with-opengl" >&5
2157 no_cache=0
2158 # Check whether --with-opengl or --without-opengl was given.
2159if test "${with_opengl+set}" = set; then
2160 withval="$with_opengl"
2161
2162 if test "$withval" = yes; then
2163 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2164 else
2165 ac_cv_use_opengl='wxUSE_OPENGL=no'
2166 fi
2167
2168else
2169
2170 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2171 if test "x$LINE" != x ; then
2172 eval "DEFAULT_$LINE"
2173 else
2174 no_cache=1
2175 fi
2176
2177 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2178
2179fi
2180
2181
2182 eval "$ac_cv_use_opengl"
2183 if test "$no_cache" != 1; then
2184 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2185 fi
2186
2187 if test "$wxUSE_OPENGL" = yes; then
2188 echo "$ac_t""yes" 1>&6
2189 else
2190 echo "$ac_t""no" 1>&6
2191 fi
2192
2193
2194fi
2195
2196
2197 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2198echo "configure:2199: checking for --with-dmalloc" >&5
2199 no_cache=0
2200 # Check whether --with-dmalloc or --without-dmalloc was given.
2201if test "${with_dmalloc+set}" = set; then
2202 withval="$with_dmalloc"
2203
2204 if test "$withval" = yes; then
2205 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2206 else
2207 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2208 fi
2209
2210else
2211
2212 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2220
2221fi
2222
2223
2224 eval "$ac_cv_use_dmalloc"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_DMALLOC" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 else
2232 echo "$ac_t""no" 1>&6
2233 fi
2234
2235
2236 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2237echo "configure:2238: checking for --with-regex" >&5
2238 no_cache=0
2239 # Check whether --with-regex or --without-regex was given.
2240if test "${with_regex+set}" = set; then
2241 withval="$with_regex"
2242
2243 if test "$withval" = yes; then
2244 ac_cv_use_regex='wxUSE_REGEX=yes'
2245 elif test "$withval" = no; then
2246 ac_cv_use_regex='wxUSE_REGEX=no'
2247 elif test "$withval" = sys; then
2248 ac_cv_use_regex='wxUSE_REGEX=sys'
2249 elif test "$withval" = builtin; then
2250 ac_cv_use_regex='wxUSE_REGEX=builtin'
2251 else
2252 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2253 fi
2254
2255else
2256
2257 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2258 if test "x$LINE" != x ; then
2259 eval "DEFAULT_$LINE"
2260 else
2261 no_cache=1
2262 fi
2263
2264 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2265
2266fi
2267
2268
2269 eval "$ac_cv_use_regex"
2270 if test "$no_cache" != 1; then
2271 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2272 fi
2273
2274 if test "$wxUSE_REGEX" = yes; then
2275 echo "$ac_t""yes" 1>&6
2276 elif test "$wxUSE_REGEX" = no; then
2277 echo "$ac_t""no" 1>&6
2278 elif test "$wxUSE_REGEX" = sys; then
2279 echo "$ac_t""system version" 1>&6
2280 elif test "$wxUSE_REGEX" = builtin; then
2281 echo "$ac_t""builtin version" 1>&6
2282 else
2283 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2284 fi
2285
2286
2287 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2288echo "configure:2289: checking for --with-zlib" >&5
2289 no_cache=0
2290 # Check whether --with-zlib or --without-zlib was given.
2291if test "${with_zlib+set}" = set; then
2292 withval="$with_zlib"
2293
2294 if test "$withval" = yes; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2296 elif test "$withval" = no; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=no'
2298 elif test "$withval" = sys; then
2299 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2300 elif test "$withval" = builtin; then
2301 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2302 else
2303 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2304 fi
2305
2306else
2307
2308 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2316
2317fi
2318
2319
2320 eval "$ac_cv_use_zlib"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_ZLIB" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 elif test "$wxUSE_ZLIB" = no; then
2328 echo "$ac_t""no" 1>&6
2329 elif test "$wxUSE_ZLIB" = sys; then
2330 echo "$ac_t""system version" 1>&6
2331 elif test "$wxUSE_ZLIB" = builtin; then
2332 echo "$ac_t""builtin version" 1>&6
2333 else
2334 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2335 fi
2336
2337
2338 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2339echo "configure:2340: checking for --with-odbc" >&5
2340 no_cache=0
2341 # Check whether --with-odbc or --without-odbc was given.
2342if test "${with_odbc+set}" = set; then
2343 withval="$with_odbc"
2344
2345 if test "$withval" = yes; then
2346 ac_cv_use_odbc='wxUSE_ODBC=yes'
2347 else
2348 ac_cv_use_odbc='wxUSE_ODBC=no'
2349 fi
2350
2351else
2352
2353 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2354 if test "x$LINE" != x ; then
2355 eval "DEFAULT_$LINE"
2356 else
2357 no_cache=1
2358 fi
2359
2360 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2361
2362fi
2363
2364
2365 eval "$ac_cv_use_odbc"
2366 if test "$no_cache" != 1; then
2367 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2368 fi
2369
2370 if test "$wxUSE_ODBC" = yes; then
2371 echo "$ac_t""yes" 1>&6
2372 else
2373 echo "$ac_t""no" 1>&6
2374 fi
2375
2376
2377
2378
2379 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2380echo "configure:2381: checking for --enable-shared" >&5
2381 no_cache=0
2382 # Check whether --enable-shared or --disable-shared was given.
2383if test "${enable_shared+set}" = set; then
2384 enableval="$enable_shared"
2385
2386 if test "$enableval" = yes; then
2387 ac_cv_use_shared='wxUSE_SHARED=yes'
2388 else
2389 ac_cv_use_shared='wxUSE_SHARED=no'
2390 fi
2391
2392else
2393
2394 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2395 if test "x$LINE" != x ; then
2396 eval "DEFAULT_$LINE"
2397 else
2398 no_cache=1
2399 fi
2400
2401 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2402
2403fi
2404
2405
2406 eval "$ac_cv_use_shared"
2407 if test "$no_cache" != 1; then
2408 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2409 fi
2410
2411 if test "$wxUSE_SHARED" = yes; then
2412 echo "$ac_t""yes" 1>&6
2413 else
2414 echo "$ac_t""no" 1>&6
2415 fi
2416
2417
2418 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2419echo "configure:2420: checking for --enable-soname" >&5
2420 no_cache=0
2421 # Check whether --enable-soname or --disable-soname was given.
2422if test "${enable_soname+set}" = set; then
2423 enableval="$enable_soname"
2424
2425 if test "$enableval" = yes; then
2426 ac_cv_use_soname='wxUSE_SONAME=yes'
2427 else
2428 ac_cv_use_soname='wxUSE_SONAME=no'
2429 fi
2430
2431else
2432
2433 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2434 if test "x$LINE" != x ; then
2435 eval "DEFAULT_$LINE"
2436 else
2437 no_cache=1
2438 fi
2439
2440 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2441
2442fi
2443
2444
2445 eval "$ac_cv_use_soname"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_SONAME" = yes; then
2451 echo "$ac_t""yes" 1>&6
2452 else
2453 echo "$ac_t""no" 1>&6
2454 fi
2455
2456
2457 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2458echo "configure:2459: checking for --enable-optimise" >&5
2459 no_cache=0
2460 # Check whether --enable-optimise or --disable-optimise was given.
2461if test "${enable_optimise+set}" = set; then
2462 enableval="$enable_optimise"
2463
2464 if test "$enableval" = yes; then
2465 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2466 else
2467 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2468 fi
2469
2470else
2471
2472 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2473 if test "x$LINE" != x ; then
2474 eval "DEFAULT_$LINE"
2475 else
2476 no_cache=1
2477 fi
2478
2479 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2480
2481fi
2482
2483
2484 eval "$ac_cv_use_optimise"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_OPTIMISE" = yes; then
2490 echo "$ac_t""yes" 1>&6
2491 else
2492 echo "$ac_t""no" 1>&6
2493 fi
2494
2495
2496 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2497echo "configure:2498: checking for --enable-debug" >&5
2498 no_cache=0
2499 # Check whether --enable-debug or --disable-debug was given.
2500if test "${enable_debug+set}" = set; then
2501 enableval="$enable_debug"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_debug='wxUSE_DEBUG=yes'
2505 else
2506 ac_cv_use_debug='wxUSE_DEBUG=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2519
2520fi
2521
2522
2523 eval "$ac_cv_use_debug"
2524 if test "$no_cache" != 1; then
2525 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2526 fi
2527
2528 if test "$wxUSE_DEBUG" = yes; then
2529 echo "$ac_t""yes" 1>&6
2530 else
2531 echo "$ac_t""no" 1>&6
2532 fi
2533
2534
2535
2536 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2537echo "configure:2538: checking for --enable-precomp" >&5
2538 no_cache=0
2539 # Check whether --enable-precomp or --disable-precomp was given.
2540if test "${enable_precomp+set}" = set; then
2541 enableval="$enable_precomp"
2542
2543 if test "$enableval" = yes; then
2544 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2545 else
2546 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2547 fi
2548
2549else
2550
2551 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2559
2560fi
2561
2562
2563 eval "$ac_cv_use_precomp"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_PRECOMP" = yes; then
2569 echo "$ac_t""yes" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
2574
2575if test "$wxUSE_DEBUG" = "yes"; then
2576 DEFAULT_wxUSE_DEBUG_FLAG=yes
2577 DEFAULT_wxUSE_DEBUG_INFO=yes
2578elif test "$wxUSE_DEBUG" = "no"; then
2579 DEFAULT_wxUSE_DEBUG_FLAG=no
2580 DEFAULT_wxUSE_DEBUG_INFO=no
2581fi
2582
2583
2584 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2585echo "configure:2586: checking for --enable-debug_flag" >&5
2586 no_cache=0
2587 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2588if test "${enable_debug_flag+set}" = set; then
2589 enableval="$enable_debug_flag"
2590
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2593 else
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2595 fi
2596
2597else
2598
2599 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2600 if test "x$LINE" != x ; then
2601 eval "DEFAULT_$LINE"
2602 else
2603 no_cache=1
2604 fi
2605
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2607
2608fi
2609
2610
2611 eval "$ac_cv_use_debug_flag"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_FLAG" = yes; then
2617 echo "$ac_t""yes" 1>&6
2618 else
2619 echo "$ac_t""no" 1>&6
2620 fi
2621
2622
2623 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2624echo "configure:2625: checking for --enable-debug_info" >&5
2625 no_cache=0
2626 # Check whether --enable-debug_info or --disable-debug_info was given.
2627if test "${enable_debug_info+set}" = set; then
2628 enableval="$enable_debug_info"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2632 else
2633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2634 fi
2635
2636else
2637
2638 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2646
2647fi
2648
2649
2650 eval "$ac_cv_use_debug_info"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_DEBUG_INFO" = yes; then
2656 echo "$ac_t""yes" 1>&6
2657 else
2658 echo "$ac_t""no" 1>&6
2659 fi
2660
2661
2662 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2663echo "configure:2664: checking for --enable-debug_gdb" >&5
2664 no_cache=0
2665 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2666if test "${enable_debug_gdb+set}" = set; then
2667 enableval="$enable_debug_gdb"
2668
2669 if test "$enableval" = yes; then
2670 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2671 else
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2673 fi
2674
2675else
2676
2677 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2678 if test "x$LINE" != x ; then
2679 eval "DEFAULT_$LINE"
2680 else
2681 no_cache=1
2682 fi
2683
2684 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2685
2686fi
2687
2688
2689 eval "$ac_cv_use_debug_gdb"
2690 if test "$no_cache" != 1; then
2691 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2692 fi
2693
2694 if test "$wxUSE_DEBUG_GDB" = yes; then
2695 echo "$ac_t""yes" 1>&6
2696 else
2697 echo "$ac_t""no" 1>&6
2698 fi
2699
2700
2701 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2702echo "configure:2703: checking for --enable-debug_cntxt" >&5
2703 no_cache=0
2704 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2705if test "${enable_debug_cntxt+set}" = set; then
2706 enableval="$enable_debug_cntxt"
2707
2708 if test "$enableval" = yes; then
2709 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2710 else
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2712 fi
2713
2714else
2715
2716 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2717 if test "x$LINE" != x ; then
2718 eval "DEFAULT_$LINE"
2719 else
2720 no_cache=1
2721 fi
2722
2723 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2724
2725fi
2726
2727
2728 eval "$ac_cv_use_debug_cntxt"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2734 echo "$ac_t""yes" 1>&6
2735 else
2736 echo "$ac_t""no" 1>&6
2737 fi
2738
2739
2740 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2741echo "configure:2742: checking for --enable-mem_tracing" >&5
2742 no_cache=0
2743 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2744if test "${enable_mem_tracing+set}" = set; then
2745 enableval="$enable_mem_tracing"
2746
2747 if test "$enableval" = yes; then
2748 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2749 else
2750 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2751 fi
2752
2753else
2754
2755 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2756 if test "x$LINE" != x ; then
2757 eval "DEFAULT_$LINE"
2758 else
2759 no_cache=1
2760 fi
2761
2762 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2763
2764fi
2765
2766
2767 eval "$ac_cv_use_mem_tracing"
2768 if test "$no_cache" != 1; then
2769 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2770 fi
2771
2772 if test "$wxUSE_MEM_TRACING" = yes; then
2773 echo "$ac_t""yes" 1>&6
2774 else
2775 echo "$ac_t""no" 1>&6
2776 fi
2777
2778
2779 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2780echo "configure:2781: checking for --enable-profile" >&5
2781 no_cache=0
2782 # Check whether --enable-profile or --disable-profile was given.
2783if test "${enable_profile+set}" = set; then
2784 enableval="$enable_profile"
2785
2786 if test "$enableval" = yes; then
2787 ac_cv_use_profile='wxUSE_PROFILE=yes'
2788 else
2789 ac_cv_use_profile='wxUSE_PROFILE=no'
2790 fi
2791
2792else
2793
2794 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2795 if test "x$LINE" != x ; then
2796 eval "DEFAULT_$LINE"
2797 else
2798 no_cache=1
2799 fi
2800
2801 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2802
2803fi
2804
2805
2806 eval "$ac_cv_use_profile"
2807 if test "$no_cache" != 1; then
2808 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2809 fi
2810
2811 if test "$wxUSE_PROFILE" = yes; then
2812 echo "$ac_t""yes" 1>&6
2813 else
2814 echo "$ac_t""no" 1>&6
2815 fi
2816
2817
2818 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2819echo "configure:2820: checking for --enable-no_rtti" >&5
2820 no_cache=0
2821 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2822if test "${enable_no_rtti+set}" = set; then
2823 enableval="$enable_no_rtti"
2824
2825 if test "$enableval" = yes; then
2826 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2827 else
2828 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2841
2842fi
2843
2844
2845 eval "$ac_cv_use_no_rtti"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_NO_RTTI" = yes; then
2851 echo "$ac_t""yes" 1>&6
2852 else
2853 echo "$ac_t""no" 1>&6
2854 fi
2855
2856
2857 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2858echo "configure:2859: checking for --enable-no_exceptions" >&5
2859 no_cache=0
2860 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2861if test "${enable_no_exceptions+set}" = set; then
2862 enableval="$enable_no_exceptions"
2863
2864 if test "$enableval" = yes; then
2865 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2866 else
2867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2868 fi
2869
2870else
2871
2872 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2873 if test "x$LINE" != x ; then
2874 eval "DEFAULT_$LINE"
2875 else
2876 no_cache=1
2877 fi
2878
2879 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2880
2881fi
2882
2883
2884 eval "$ac_cv_use_no_exceptions"
2885 if test "$no_cache" != 1; then
2886 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2887 fi
2888
2889 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2890 echo "$ac_t""yes" 1>&6
2891 else
2892 echo "$ac_t""no" 1>&6
2893 fi
2894
2895
2896 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2897echo "configure:2898: checking for --enable-permissive" >&5
2898 no_cache=0
2899 # Check whether --enable-permissive or --disable-permissive was given.
2900if test "${enable_permissive+set}" = set; then
2901 enableval="$enable_permissive"
2902
2903 if test "$enableval" = yes; then
2904 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2905 else
2906 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2907 fi
2908
2909else
2910
2911 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2912 if test "x$LINE" != x ; then
2913 eval "DEFAULT_$LINE"
2914 else
2915 no_cache=1
2916 fi
2917
2918 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2919
2920fi
2921
2922
2923 eval "$ac_cv_use_permissive"
2924 if test "$no_cache" != 1; then
2925 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2926 fi
2927
2928 if test "$wxUSE_PERMISSIVE" = yes; then
2929 echo "$ac_t""yes" 1>&6
2930 else
2931 echo "$ac_t""no" 1>&6
2932 fi
2933
2934
2935 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2936echo "configure:2937: checking for --enable-no_deps" >&5
2937 no_cache=0
2938 # Check whether --enable-no_deps or --disable-no_deps was given.
2939if test "${enable_no_deps+set}" = set; then
2940 enableval="$enable_no_deps"
2941
2942 if test "$enableval" = yes; then
2943 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2944 else
2945 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2946 fi
2947
2948else
2949
2950 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2958
2959fi
2960
2961
2962 eval "$ac_cv_use_no_deps"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_NO_DEPS" = yes; then
2968 echo "$ac_t""yes" 1>&6
2969 else
2970 echo "$ac_t""no" 1>&6
2971 fi
2972
2973
2974
2975 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2976echo "configure:2977: checking for --enable-compat20" >&5
2977 no_cache=0
2978 # Check whether --enable-compat20 or --disable-compat20 was given.
2979if test "${enable_compat20+set}" = set; then
2980 enableval="$enable_compat20"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2984 else
2985 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2986 fi
2987
2988else
2989
2990 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2998
2999fi
3000
3001
3002 eval "$ac_cv_use_compat20"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3015echo "configure:3016: checking for --enable-compat22" >&5
3016 no_cache=0
3017 # Check whether --enable-compat22 or --disable-compat22 was given.
3018if test "${enable_compat22+set}" = set; then
3019 enableval="$enable_compat22"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3023 else
3024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3025 fi
3026
3027else
3028
3029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3037
3038fi
3039
3040
3041 eval "$ac_cv_use_compat22"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053
3054
3055 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3056echo "configure:3057: checking for --enable-intl" >&5
3057 no_cache=0
3058 # Check whether --enable-intl or --disable-intl was given.
3059if test "${enable_intl+set}" = set; then
3060 enableval="$enable_intl"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_intl='wxUSE_INTL=yes'
3064 else
3065 ac_cv_use_intl='wxUSE_INTL=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3078
3079fi
3080
3081
3082 eval "$ac_cv_use_intl"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_INTL" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3094 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3095echo "configure:3096: checking for --enable-config" >&5
3096 no_cache=0
3097 # Check whether --enable-config or --disable-config was given.
3098if test "${enable_config+set}" = set; then
3099 enableval="$enable_config"
3100
3101 if test "$enableval" = yes; then
3102 ac_cv_use_config='wxUSE_CONFIG=yes'
3103 else
3104 ac_cv_use_config='wxUSE_CONFIG=no'
3105 fi
3106
3107else
3108
3109 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3117
3118fi
3119
3120
3121 eval "$ac_cv_use_config"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_CONFIG" = yes; then
3127 echo "$ac_t""yes" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3130 fi
3131
3132
3133
3134 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3135echo "configure:3136: checking for --enable-protocols" >&5
3136 no_cache=0
3137 # Check whether --enable-protocols or --disable-protocols was given.
3138if test "${enable_protocols+set}" = set; then
3139 enableval="$enable_protocols"
3140
3141 if test "$enableval" = yes; then
3142 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3143 else
3144 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3157
3158fi
3159
3160
3161 eval "$ac_cv_use_protocols"
3162 if test "$no_cache" != 1; then
3163 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3164 fi
3165
3166 if test "$wxUSE_PROTOCOL" = yes; then
3167 echo "$ac_t""yes" 1>&6
3168 else
3169 echo "$ac_t""no" 1>&6
3170 fi
3171
3172
3173 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3174echo "configure:3175: checking for --enable-ftp" >&5
3175 no_cache=0
3176 # Check whether --enable-ftp or --disable-ftp was given.
3177if test "${enable_ftp+set}" = set; then
3178 enableval="$enable_ftp"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3182 else
3183 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_ftp"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3213echo "configure:3214: checking for --enable-http" >&5
3214 no_cache=0
3215 # Check whether --enable-http or --disable-http was given.
3216if test "${enable_http+set}" = set; then
3217 enableval="$enable_http"
3218
3219 if test "$enableval" = yes; then
3220 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3221 else
3222 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3223 fi
3224
3225else
3226
3227 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3228 if test "x$LINE" != x ; then
3229 eval "DEFAULT_$LINE"
3230 else
3231 no_cache=1
3232 fi
3233
3234 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3235
3236fi
3237
3238
3239 eval "$ac_cv_use_http"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3245 echo "$ac_t""yes" 1>&6
3246 else
3247 echo "$ac_t""no" 1>&6
3248 fi
3249
3250
3251 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3252echo "configure:3253: checking for --enable-fileproto" >&5
3253 no_cache=0
3254 # Check whether --enable-fileproto or --disable-fileproto was given.
3255if test "${enable_fileproto+set}" = set; then
3256 enableval="$enable_fileproto"
3257
3258 if test "$enableval" = yes; then
3259 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3260 else
3261 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3262 fi
3263
3264else
3265
3266 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3274
3275fi
3276
3277
3278 eval "$ac_cv_use_fileproto"
3279 if test "$no_cache" != 1; then
3280 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3281 fi
3282
3283 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3284 echo "$ac_t""yes" 1>&6
3285 else
3286 echo "$ac_t""no" 1>&6
3287 fi
3288
3289
3290 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3291echo "configure:3292: checking for --enable-sockets" >&5
3292 no_cache=0
3293 # Check whether --enable-sockets or --disable-sockets was given.
3294if test "${enable_sockets+set}" = set; then
3295 enableval="$enable_sockets"
3296
3297 if test "$enableval" = yes; then
3298 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3299 else
3300 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3313
3314fi
3315
3316
3317 eval "$ac_cv_use_sockets"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_SOCKETS" = yes; then
3323 echo "$ac_t""yes" 1>&6
3324 else
3325 echo "$ac_t""no" 1>&6
3326 fi
3327
3328
3329
3330 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3331echo "configure:3332: checking for --enable-ipc" >&5
3332 no_cache=0
3333 # Check whether --enable-ipc or --disable-ipc was given.
3334if test "${enable_ipc+set}" = set; then
3335 enableval="$enable_ipc"
3336
3337 if test "$enableval" = yes; then
3338 ac_cv_use_ipc='wxUSE_IPC=yes'
3339 else
3340 ac_cv_use_ipc='wxUSE_IPC=no'
3341 fi
3342
3343else
3344
3345 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3346 if test "x$LINE" != x ; then
3347 eval "DEFAULT_$LINE"
3348 else
3349 no_cache=1
3350 fi
3351
3352 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3353
3354fi
3355
3356
3357 eval "$ac_cv_use_ipc"
3358 if test "$no_cache" != 1; then
3359 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3360 fi
3361
3362 if test "$wxUSE_IPC" = yes; then
3363 echo "$ac_t""yes" 1>&6
3364 else
3365 echo "$ac_t""no" 1>&6
3366 fi
3367
3368
3369
3370 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3371echo "configure:3372: checking for --enable-cmdline" >&5
3372 no_cache=0
3373 # Check whether --enable-cmdline or --disable-cmdline was given.
3374if test "${enable_cmdline+set}" = set; then
3375 enableval="$enable_cmdline"
3376
3377 if test "$enableval" = yes; then
3378 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3379 else
3380 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3381 fi
3382
3383else
3384
3385 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3386 if test "x$LINE" != x ; then
3387 eval "DEFAULT_$LINE"
3388 else
3389 no_cache=1
3390 fi
3391
3392 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3393
3394fi
3395
3396
3397 eval "$ac_cv_use_cmdline"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3403 echo "$ac_t""yes" 1>&6
3404 else
3405 echo "$ac_t""no" 1>&6
3406 fi
3407
3408
3409 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3410echo "configure:3411: checking for --enable-datetime" >&5
3411 no_cache=0
3412 # Check whether --enable-datetime or --disable-datetime was given.
3413if test "${enable_datetime+set}" = set; then
3414 enableval="$enable_datetime"
3415
3416 if test "$enableval" = yes; then
3417 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3418 else
3419 ac_cv_use_datetime='wxUSE_DATETIME=no'
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3425 if test "x$LINE" != x ; then
3426 eval "DEFAULT_$LINE"
3427 else
3428 no_cache=1
3429 fi
3430
3431 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3432
3433fi
3434
3435
3436 eval "$ac_cv_use_datetime"
3437 if test "$no_cache" != 1; then
3438 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3439 fi
3440
3441 if test "$wxUSE_DATETIME" = yes; then
3442 echo "$ac_t""yes" 1>&6
3443 else
3444 echo "$ac_t""no" 1>&6
3445 fi
3446
3447
3448 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3449echo "configure:3450: checking for --enable-timedate" >&5
3450 no_cache=0
3451 # Check whether --enable-timedate or --disable-timedate was given.
3452if test "${enable_timedate+set}" = set; then
3453 enableval="$enable_timedate"
3454
3455 if test "$enableval" = yes; then
3456 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3457 else
3458 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3459 fi
3460
3461else
3462
3463 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3464 if test "x$LINE" != x ; then
3465 eval "DEFAULT_$LINE"
3466 else
3467 no_cache=1
3468 fi
3469
3470 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3471
3472fi
3473
3474
3475 eval "$ac_cv_use_timedate"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_TIMEDATE" = yes; then
3481 echo "$ac_t""yes" 1>&6
3482 else
3483 echo "$ac_t""no" 1>&6
3484 fi
3485
3486
3487 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3488echo "configure:3489: checking for --enable-stopwatch" >&5
3489 no_cache=0
3490 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3491if test "${enable_stopwatch+set}" = set; then
3492 enableval="$enable_stopwatch"
3493
3494 if test "$enableval" = yes; then
3495 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3496 else
3497 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3498 fi
3499
3500else
3501
3502 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3503 if test "x$LINE" != x ; then
3504 eval "DEFAULT_$LINE"
3505 else
3506 no_cache=1
3507 fi
3508
3509 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3510
3511fi
3512
3513
3514 eval "$ac_cv_use_stopwatch"
3515 if test "$no_cache" != 1; then
3516 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3517 fi
3518
3519 if test "$wxUSE_STOPWATCH" = yes; then
3520 echo "$ac_t""yes" 1>&6
3521 else
3522 echo "$ac_t""no" 1>&6
3523 fi
3524
3525
3526 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3527echo "configure:3528: checking for --enable-dialupman" >&5
3528 no_cache=0
3529 # Check whether --enable-dialupman or --disable-dialupman was given.
3530if test "${enable_dialupman+set}" = set; then
3531 enableval="$enable_dialupman"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3535 else
3536 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3549
3550fi
3551
3552
3553 eval "$ac_cv_use_dialupman"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3559 echo "$ac_t""yes" 1>&6
3560 else
3561 echo "$ac_t""no" 1>&6
3562 fi
3563
3564
3565 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3566echo "configure:3567: checking for --enable-apple_ieee" >&5
3567 no_cache=0
3568 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3569if test "${enable_apple_ieee+set}" = set; then
3570 enableval="$enable_apple_ieee"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3574 else
3575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
3587 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3588
3589fi
3590
3591
3592 eval "$ac_cv_use_apple_ieee"
3593 if test "$no_cache" != 1; then
3594 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3595 fi
3596
3597 if test "$wxUSE_APPLE_IEEE" = yes; then
3598 echo "$ac_t""yes" 1>&6
3599 else
3600 echo "$ac_t""no" 1>&6
3601 fi
3602
3603
3604 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3605echo "configure:3606: checking for --enable-timer" >&5
3606 no_cache=0
3607 # Check whether --enable-timer or --disable-timer was given.
3608if test "${enable_timer+set}" = set; then
3609 enableval="$enable_timer"
3610
3611 if test "$enableval" = yes; then
3612 ac_cv_use_timer='wxUSE_TIMER=yes'
3613 else
3614 ac_cv_use_timer='wxUSE_TIMER=no'
3615 fi
3616
3617else
3618
3619 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3620 if test "x$LINE" != x ; then
3621 eval "DEFAULT_$LINE"
3622 else
3623 no_cache=1
3624 fi
3625
3626 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3627
3628fi
3629
3630
3631 eval "$ac_cv_use_timer"
3632 if test "$no_cache" != 1; then
3633 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3634 fi
3635
3636 if test "$wxUSE_TIMER" = yes; then
3637 echo "$ac_t""yes" 1>&6
3638 else
3639 echo "$ac_t""no" 1>&6
3640 fi
3641
3642
3643 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3644echo "configure:3645: checking for --enable-wave" >&5
3645 no_cache=0
3646 # Check whether --enable-wave or --disable-wave was given.
3647if test "${enable_wave+set}" = set; then
3648 enableval="$enable_wave"
3649
3650 if test "$enableval" = yes; then
3651 ac_cv_use_wave='wxUSE_WAVE=yes'
3652 else
3653 ac_cv_use_wave='wxUSE_WAVE=no'
3654 fi
3655
3656else
3657
3658 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3659 if test "x$LINE" != x ; then
3660 eval "DEFAULT_$LINE"
3661 else
3662 no_cache=1
3663 fi
3664
3665 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3666
3667fi
3668
3669
3670 eval "$ac_cv_use_wave"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_WAVE" = yes; then
3676 echo "$ac_t""yes" 1>&6
3677 else
3678 echo "$ac_t""no" 1>&6
3679 fi
3680
3681
3682 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3683echo "configure:3684: checking for --enable-fraction" >&5
3684 no_cache=0
3685 # Check whether --enable-fraction or --disable-fraction was given.
3686if test "${enable_fraction+set}" = set; then
3687 enableval="$enable_fraction"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3691 else
3692 ac_cv_use_fraction='wxUSE_FRACTION=no'
3693 fi
3694
3695else
3696
3697 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3705
3706fi
3707
3708
3709 eval "$ac_cv_use_fraction"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_FRACTION" = yes; then
3715 echo "$ac_t""yes" 1>&6
3716 else
3717 echo "$ac_t""no" 1>&6
3718 fi
3719
3720
3721 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3722echo "configure:3723: checking for --enable-dynlib" >&5
3723 no_cache=0
3724 # Check whether --enable-dynlib or --disable-dynlib was given.
3725if test "${enable_dynlib+set}" = set; then
3726 enableval="$enable_dynlib"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3730 else
3731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3744
3745fi
3746
3747
3748 eval "$ac_cv_use_dynlib"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3754 echo "$ac_t""yes" 1>&6
3755 else
3756 echo "$ac_t""no" 1>&6
3757 fi
3758
3759
3760 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3761echo "configure:3762: checking for --enable-dynamicloader" >&5
3762 no_cache=0
3763 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3764if test "${enable_dynamicloader+set}" = set; then
3765 enableval="$enable_dynamicloader"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3769 else
3770 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3783
3784fi
3785
3786
3787 eval "$ac_cv_use_dynamicloader"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3793 echo "$ac_t""yes" 1>&6
3794 else
3795 echo "$ac_t""no" 1>&6
3796 fi
3797
3798
3799 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3800echo "configure:3801: checking for --enable-longlong" >&5
3801 no_cache=0
3802 # Check whether --enable-longlong or --disable-longlong was given.
3803if test "${enable_longlong+set}" = set; then
3804 enableval="$enable_longlong"
3805
3806 if test "$enableval" = yes; then
3807 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3808 else
3809 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3810 fi
3811
3812else
3813
3814 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3815 if test "x$LINE" != x ; then
3816 eval "DEFAULT_$LINE"
3817 else
3818 no_cache=1
3819 fi
3820
3821 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3822
3823fi
3824
3825
3826 eval "$ac_cv_use_longlong"
3827 if test "$no_cache" != 1; then
3828 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3829 fi
3830
3831 if test "$wxUSE_LONGLONG" = yes; then
3832 echo "$ac_t""yes" 1>&6
3833 else
3834 echo "$ac_t""no" 1>&6
3835 fi
3836
3837
3838 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3839echo "configure:3840: checking for --enable-geometry" >&5
3840 no_cache=0
3841 # Check whether --enable-geometry or --disable-geometry was given.
3842if test "${enable_geometry+set}" = set; then
3843 enableval="$enable_geometry"
3844
3845 if test "$enableval" = yes; then
3846 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3847 else
3848 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3849 fi
3850
3851else
3852
3853 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3854 if test "x$LINE" != x ; then
3855 eval "DEFAULT_$LINE"
3856 else
3857 no_cache=1
3858 fi
3859
3860 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3861
3862fi
3863
3864
3865 eval "$ac_cv_use_geometry"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_GEOMETRY" = yes; then
3871 echo "$ac_t""yes" 1>&6
3872 else
3873 echo "$ac_t""no" 1>&6
3874 fi
3875
3876
3877 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3878echo "configure:3879: checking for --enable-log" >&5
3879 no_cache=0
3880 # Check whether --enable-log or --disable-log was given.
3881if test "${enable_log+set}" = set; then
3882 enableval="$enable_log"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_log='wxUSE_LOG=yes'
3886 else
3887 ac_cv_use_log='wxUSE_LOG=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3900
3901fi
3902
3903
3904 eval "$ac_cv_use_log"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_LOG" = yes; then
3910 echo "$ac_t""yes" 1>&6
3911 else
3912 echo "$ac_t""no" 1>&6
3913 fi
3914
3915
3916 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3917echo "configure:3918: checking for --enable-streams" >&5
3918 no_cache=0
3919 # Check whether --enable-streams or --disable-streams was given.
3920if test "${enable_streams+set}" = set; then
3921 enableval="$enable_streams"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_streams='wxUSE_STREAMS=yes'
3925 else
3926 ac_cv_use_streams='wxUSE_STREAMS=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3939
3940fi
3941
3942
3943 eval "$ac_cv_use_streams"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_STREAMS" = yes; then
3949 echo "$ac_t""yes" 1>&6
3950 else
3951 echo "$ac_t""no" 1>&6
3952 fi
3953
3954
3955 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3956echo "configure:3957: checking for --enable-file" >&5
3957 no_cache=0
3958 # Check whether --enable-file or --disable-file was given.
3959if test "${enable_file+set}" = set; then
3960 enableval="$enable_file"
3961
3962 if test "$enableval" = yes; then
3963 ac_cv_use_file='wxUSE_FILE=yes'
3964 else
3965 ac_cv_use_file='wxUSE_FILE=no'
3966 fi
3967
3968else
3969
3970 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3971 if test "x$LINE" != x ; then
3972 eval "DEFAULT_$LINE"
3973 else
3974 no_cache=1
3975 fi
3976
3977 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3978
3979fi
3980
3981
3982 eval "$ac_cv_use_file"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_FILE" = yes; then
3988 echo "$ac_t""yes" 1>&6
3989 else
3990 echo "$ac_t""no" 1>&6
3991 fi
3992
3993
3994 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3995echo "configure:3996: checking for --enable-ffile" >&5
3996 no_cache=0
3997 # Check whether --enable-ffile or --disable-ffile was given.
3998if test "${enable_ffile+set}" = set; then
3999 enableval="$enable_ffile"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_ffile='wxUSE_FFILE=yes'
4003 else
4004 ac_cv_use_ffile='wxUSE_FFILE=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4010 if test "x$LINE" != x ; then
4011 eval "DEFAULT_$LINE"
4012 else
4013 no_cache=1
4014 fi
4015
4016 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4017
4018fi
4019
4020
4021 eval "$ac_cv_use_ffile"
4022 if test "$no_cache" != 1; then
4023 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4024 fi
4025
4026 if test "$wxUSE_FFILE" = yes; then
4027 echo "$ac_t""yes" 1>&6
4028 else
4029 echo "$ac_t""no" 1>&6
4030 fi
4031
4032
4033 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4034echo "configure:4035: checking for --enable-textbuf" >&5
4035 no_cache=0
4036 # Check whether --enable-textbuf or --disable-textbuf was given.
4037if test "${enable_textbuf+set}" = set; then
4038 enableval="$enable_textbuf"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4042 else
4043 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4056
4057fi
4058
4059
4060 eval "$ac_cv_use_textbuf"
4061 if test "$no_cache" != 1; then
4062 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4063 fi
4064
4065 if test "$wxUSE_TEXTBUFFER" = yes; then
4066 echo "$ac_t""yes" 1>&6
4067 else
4068 echo "$ac_t""no" 1>&6
4069 fi
4070
4071
4072 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4073echo "configure:4074: checking for --enable-textfile" >&5
4074 no_cache=0
4075 # Check whether --enable-textfile or --disable-textfile was given.
4076if test "${enable_textfile+set}" = set; then
4077 enableval="$enable_textfile"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4081 else
4082 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4083 fi
4084
4085else
4086
4087 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4095
4096fi
4097
4098
4099 eval "$ac_cv_use_textfile"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_TEXTFILE" = yes; then
4105 echo "$ac_t""yes" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4108 fi
4109
4110
4111 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4112echo "configure:4113: checking for --enable-fontmap" >&5
4113 no_cache=0
4114 # Check whether --enable-fontmap or --disable-fontmap was given.
4115if test "${enable_fontmap+set}" = set; then
4116 enableval="$enable_fontmap"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4120 else
4121 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4122 fi
4123
4124else
4125
4126 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4127 if test "x$LINE" != x ; then
4128 eval "DEFAULT_$LINE"
4129 else
4130 no_cache=1
4131 fi
4132
4133 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4134
4135fi
4136
4137
4138 eval "$ac_cv_use_fontmap"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_FONTMAP" = yes; then
4144 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 fi
4148
4149
4150 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4151echo "configure:4152: checking for --enable-unicode" >&5
4152 no_cache=0
4153 # Check whether --enable-unicode or --disable-unicode was given.
4154if test "${enable_unicode+set}" = set; then
4155 enableval="$enable_unicode"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4159 else
4160 ac_cv_use_unicode='wxUSE_UNICODE=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4173
4174fi
4175
4176
4177 eval "$ac_cv_use_unicode"
4178 if test "$no_cache" != 1; then
4179 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4180 fi
4181
4182 if test "$wxUSE_UNICODE" = yes; then
4183 echo "$ac_t""yes" 1>&6
4184 else
4185 echo "$ac_t""no" 1>&6
4186 fi
4187
4188
4189 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4190echo "configure:4191: checking for --enable-mslu" >&5
4191 no_cache=0
4192 # Check whether --enable-mslu or --disable-mslu was given.
4193if test "${enable_mslu+set}" = set; then
4194 enableval="$enable_mslu"
4195
4196 if test "$enableval" = yes; then
4197 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4198 else
4199 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4200 fi
4201
4202else
4203
4204 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4205 if test "x$LINE" != x ; then
4206 eval "DEFAULT_$LINE"
4207 else
4208 no_cache=1
4209 fi
4210
4211 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4212
4213fi
4214
4215
4216 eval "$ac_cv_use_mslu"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_UNICODE_MSLU" = yes; then
4222 echo "$ac_t""yes" 1>&6
4223 else
4224 echo "$ac_t""no" 1>&6
4225 fi
4226
4227
4228 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4229echo "configure:4230: checking for --enable-wxprintfv" >&5
4230 no_cache=0
4231 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4232if test "${enable_wxprintfv+set}" = set; then
4233 enableval="$enable_wxprintfv"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4237 else
4238 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4239 fi
4240
4241else
4242
4243 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4251
4252fi
4253
4254
4255 eval "$ac_cv_use_wxprintfv"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4261 echo "$ac_t""yes" 1>&6
4262 else
4263 echo "$ac_t""no" 1>&6
4264 fi
4265
4266
4267 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4268echo "configure:4269: checking for --enable-std_iostreams" >&5
4269 no_cache=0
4270 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4271if test "${enable_std_iostreams+set}" = set; then
4272 enableval="$enable_std_iostreams"
4273
4274 if test "$enableval" = yes; then
4275 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4276 else
4277 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4278 fi
4279
4280else
4281
4282 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4290
4291fi
4292
4293
4294 eval "$ac_cv_use_std_iostreams"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_STD_IOSTREAM" = yes; then
4300 echo "$ac_t""yes" 1>&6
4301 else
4302 echo "$ac_t""no" 1>&6
4303 fi
4304
4305
4306 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4307echo "configure:4308: checking for --enable-filesystem" >&5
4308 no_cache=0
4309 # Check whether --enable-filesystem or --disable-filesystem was given.
4310if test "${enable_filesystem+set}" = set; then
4311 enableval="$enable_filesystem"
4312
4313 if test "$enableval" = yes; then
4314 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4315 else
4316 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4317 fi
4318
4319else
4320
4321 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
4328 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4329
4330fi
4331
4332
4333 eval "$ac_cv_use_filesystem"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_FILESYSTEM" = yes; then
4339 echo "$ac_t""yes" 1>&6
4340 else
4341 echo "$ac_t""no" 1>&6
4342 fi
4343
4344
4345 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4346echo "configure:4347: checking for --enable-fs_inet" >&5
4347 no_cache=0
4348 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4349if test "${enable_fs_inet+set}" = set; then
4350 enableval="$enable_fs_inet"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4354 else
4355 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4368
4369fi
4370
4371
4372 eval "$ac_cv_use_fs_inet"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_FS_INET" = yes; then
4378 echo "$ac_t""yes" 1>&6
4379 else
4380 echo "$ac_t""no" 1>&6
4381 fi
4382
4383
4384 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4385echo "configure:4386: checking for --enable-fs_zip" >&5
4386 no_cache=0
4387 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4388if test "${enable_fs_zip+set}" = set; then
4389 enableval="$enable_fs_zip"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4393 else
4394 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4407
4408fi
4409
4410
4411 eval "$ac_cv_use_fs_zip"
4412 if test "$no_cache" != 1; then
4413 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4414 fi
4415
4416 if test "$wxUSE_FS_ZIP" = yes; then
4417 echo "$ac_t""yes" 1>&6
4418 else
4419 echo "$ac_t""no" 1>&6
4420 fi
4421
4422
4423 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4424echo "configure:4425: checking for --enable-zipstream" >&5
4425 no_cache=0
4426 # Check whether --enable-zipstream or --disable-zipstream was given.
4427if test "${enable_zipstream+set}" = set; then
4428 enableval="$enable_zipstream"
4429
4430 if test "$enableval" = yes; then
4431 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4432 else
4433 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4434 fi
4435
4436else
4437
4438 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
4445 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4446
4447fi
4448
4449
4450 eval "$ac_cv_use_zipstream"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_ZIPSTREAM" = yes; then
4456 echo "$ac_t""yes" 1>&6
4457 else
4458 echo "$ac_t""no" 1>&6
4459 fi
4460
4461
4462
4463 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4464echo "configure:4465: checking for --enable-catch_segvs" >&5
4465 no_cache=0
4466 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4467if test "${enable_catch_segvs+set}" = set; then
4468 enableval="$enable_catch_segvs"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4472 else
4473 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4486
4487fi
4488
4489
4490 eval "$ac_cv_use_catch_segvs"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4496 echo "$ac_t""yes" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4499 fi
4500
4501
4502 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4503echo "configure:4504: checking for --enable-snglinst" >&5
4504 no_cache=0
4505 # Check whether --enable-snglinst or --disable-snglinst was given.
4506if test "${enable_snglinst+set}" = set; then
4507 enableval="$enable_snglinst"
4508
4509 if test "$enableval" = yes; then
4510 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4511 else
4512 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4513 fi
4514
4515else
4516
4517 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4525
4526fi
4527
4528
4529 eval "$ac_cv_use_snglinst"
4530 if test "$no_cache" != 1; then
4531 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4532 fi
4533
4534 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4535 echo "$ac_t""yes" 1>&6
4536 else
4537 echo "$ac_t""no" 1>&6
4538 fi
4539
4540
4541
4542 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4543echo "configure:4544: checking for --enable-mimetype" >&5
4544 no_cache=0
4545 # Check whether --enable-mimetype or --disable-mimetype was given.
4546if test "${enable_mimetype+set}" = set; then
4547 enableval="$enable_mimetype"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4551 else
4552 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4565
4566fi
4567
4568
4569 eval "$ac_cv_use_mimetype"
4570 if test "$no_cache" != 1; then
4571 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4572 fi
4573
4574 if test "$wxUSE_MIMETYPE" = yes; then
4575 echo "$ac_t""yes" 1>&6
4576 else
4577 echo "$ac_t""no" 1>&6
4578 fi
4579
4580
4581 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4582echo "configure:4583: checking for --enable-system_options" >&5
4583 no_cache=0
4584 # Check whether --enable-system_options or --disable-system_options was given.
4585if test "${enable_system_options+set}" = set; then
4586 enableval="$enable_system_options"
4587
4588 if test "$enableval" = yes; then
4589 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4590 else
4591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4592 fi
4593
4594else
4595
4596 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4597 if test "x$LINE" != x ; then
4598 eval "DEFAULT_$LINE"
4599 else
4600 no_cache=1
4601 fi
4602
4603 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4604
4605fi
4606
4607
4608 eval "$ac_cv_use_system_options"
4609 if test "$no_cache" != 1; then
4610 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4611 fi
4612
4613 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4614 echo "$ac_t""yes" 1>&6
4615 else
4616 echo "$ac_t""no" 1>&6
4617 fi
4618
4619
4620
4621 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4622echo "configure:4623: checking for --enable-url" >&5
4623 no_cache=0
4624 # Check whether --enable-url or --disable-url was given.
4625if test "${enable_url+set}" = set; then
4626 enableval="$enable_url"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_url='wxUSE_URL=yes'
4630 else
4631 ac_cv_use_url='wxUSE_URL=no'
4632 fi
4633
4634else
4635
4636 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4637 if test "x$LINE" != x ; then
4638 eval "DEFAULT_$LINE"
4639 else
4640 no_cache=1
4641 fi
4642
4643 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4644
4645fi
4646
4647
4648 eval "$ac_cv_use_url"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_URL" = yes; then
4654 echo "$ac_t""yes" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4657 fi
4658
4659
4660 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4661echo "configure:4662: checking for --enable-protocol" >&5
4662 no_cache=0
4663 # Check whether --enable-protocol or --disable-protocol was given.
4664if test "${enable_protocol+set}" = set; then
4665 enableval="$enable_protocol"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4669 else
4670 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4683
4684fi
4685
4686
4687 eval "$ac_cv_use_protocol"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_PROTOCOL" = yes; then
4693 echo "$ac_t""yes" 1>&6
4694 else
4695 echo "$ac_t""no" 1>&6
4696 fi
4697
4698
4699 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4700echo "configure:4701: checking for --enable-protocol_http" >&5
4701 no_cache=0
4702 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4703if test "${enable_protocol_http+set}" = set; then
4704 enableval="$enable_protocol_http"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4708 else
4709 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4710 fi
4711
4712else
4713
4714 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4722
4723fi
4724
4725
4726 eval "$ac_cv_use_protocol_http"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4732 echo "$ac_t""yes" 1>&6
4733 else
4734 echo "$ac_t""no" 1>&6
4735 fi
4736
4737
4738 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4739echo "configure:4740: checking for --enable-protocol_ftp" >&5
4740 no_cache=0
4741 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4742if test "${enable_protocol_ftp+set}" = set; then
4743 enableval="$enable_protocol_ftp"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4747 else
4748 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4761
4762fi
4763
4764
4765 eval "$ac_cv_use_protocol_ftp"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4778echo "configure:4779: checking for --enable-protocol_file" >&5
4779 no_cache=0
4780 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4781if test "${enable_protocol_file+set}" = set; then
4782 enableval="$enable_protocol_file"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4786 else
4787 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4800
4801fi
4802
4803
4804 eval "$ac_cv_use_protocol_file"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4810 echo "$ac_t""yes" 1>&6
4811 else
4812 echo "$ac_t""no" 1>&6
4813 fi
4814
4815
4816
4817
4818
4819 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4820echo "configure:4821: checking for --enable-threads" >&5
4821 no_cache=0
4822 # Check whether --enable-threads or --disable-threads was given.
4823if test "${enable_threads+set}" = set; then
4824 enableval="$enable_threads"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_threads='wxUSE_THREADS=yes'
4828 else
4829 ac_cv_use_threads='wxUSE_THREADS=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4842
4843fi
4844
4845
4846 eval "$ac_cv_use_threads"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_THREADS" = yes; then
4852 echo "$ac_t""yes" 1>&6
4853 else
4854 echo "$ac_t""no" 1>&6
4855 fi
4856
4857
4858if test "$wxUSE_GUI" = "yes"; then
4859
4860
4861
4862 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4863echo "configure:4864: checking for --enable-docview" >&5
4864 no_cache=0
4865 # Check whether --enable-docview or --disable-docview was given.
4866if test "${enable_docview+set}" = set; then
4867 enableval="$enable_docview"
4868
4869 if test "$enableval" = yes; then
4870 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4871 else
4872 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4873 fi
4874
4875else
4876
4877 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4878 if test "x$LINE" != x ; then
4879 eval "DEFAULT_$LINE"
4880 else
4881 no_cache=1
4882 fi
4883
4884 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4885
4886fi
4887
4888
4889 eval "$ac_cv_use_docview"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4895 echo "$ac_t""yes" 1>&6
4896 else
4897 echo "$ac_t""no" 1>&6
4898 fi
4899
4900
4901 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4902echo "configure:4903: checking for --enable-help" >&5
4903 no_cache=0
4904 # Check whether --enable-help or --disable-help was given.
4905if test "${enable_help+set}" = set; then
4906 enableval="$enable_help"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_help='wxUSE_HELP=yes'
4910 else
4911 ac_cv_use_help='wxUSE_HELP=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4924
4925fi
4926
4927
4928 eval "$ac_cv_use_help"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_HELP" = yes; then
4934 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4937 fi
4938
4939
4940 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4941echo "configure:4942: checking for --enable-mshtmlhelp" >&5
4942 no_cache=0
4943 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4944if test "${enable_mshtmlhelp+set}" = set; then
4945 enableval="$enable_mshtmlhelp"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4949 else
4950 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4963
4964fi
4965
4966
4967 eval "$ac_cv_use_mshtmlhelp"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_MS_HTML_HELP" = yes; then
4973 echo "$ac_t""yes" 1>&6
4974 else
4975 echo "$ac_t""no" 1>&6
4976 fi
4977
4978
4979 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4980echo "configure:4981: checking for --enable-html" >&5
4981 no_cache=0
4982 # Check whether --enable-html or --disable-html was given.
4983if test "${enable_html+set}" = set; then
4984 enableval="$enable_html"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_html='wxUSE_HTML=yes'
4988 else
4989 ac_cv_use_html='wxUSE_HTML=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5002
5003fi
5004
5005
5006 eval "$ac_cv_use_html"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_HTML" = yes; then
5012 echo "$ac_t""yes" 1>&6
5013 else
5014 echo "$ac_t""no" 1>&6
5015 fi
5016
5017
5018 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5019echo "configure:5020: checking for --enable-htmlhelp" >&5
5020 no_cache=0
5021 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5022if test "${enable_htmlhelp+set}" = set; then
5023 enableval="$enable_htmlhelp"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5027 else
5028 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5029 fi
5030
5031else
5032
5033 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5041
5042fi
5043
5044
5045 eval "$ac_cv_use_htmlhelp"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_WXHTML_HELP" = yes; then
5051 echo "$ac_t""yes" 1>&6
5052 else
5053 echo "$ac_t""no" 1>&6
5054 fi
5055
5056
5057 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5058echo "configure:5059: checking for --enable-constraints" >&5
5059 no_cache=0
5060 # Check whether --enable-constraints or --disable-constraints was given.
5061if test "${enable_constraints+set}" = set; then
5062 enableval="$enable_constraints"
5063
5064 if test "$enableval" = yes; then
5065 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5066 else
5067 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5068 fi
5069
5070else
5071
5072 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5080
5081fi
5082
5083
5084 eval "$ac_cv_use_constraints"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_CONSTRAINTS" = yes; then
5090 echo "$ac_t""yes" 1>&6
5091 else
5092 echo "$ac_t""no" 1>&6
5093 fi
5094
5095
5096 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5097echo "configure:5098: checking for --enable-printarch" >&5
5098 no_cache=0
5099 # Check whether --enable-printarch or --disable-printarch was given.
5100if test "${enable_printarch+set}" = set; then
5101 enableval="$enable_printarch"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5105 else
5106 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5119
5120fi
5121
5122
5123 eval "$ac_cv_use_printarch"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5129 echo "$ac_t""yes" 1>&6
5130 else
5131 echo "$ac_t""no" 1>&6
5132 fi
5133
5134
5135 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5136echo "configure:5137: checking for --enable-mdi" >&5
5137 no_cache=0
5138 # Check whether --enable-mdi or --disable-mdi was given.
5139if test "${enable_mdi+set}" = set; then
5140 enableval="$enable_mdi"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5144 else
5145 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5146 fi
5147
5148else
5149
5150 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5158
5159fi
5160
5161
5162 eval "$ac_cv_use_mdi"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5175echo "configure:5176: checking for --enable-loggui" >&5
5176 no_cache=0
5177 # Check whether --enable-loggui or --disable-loggui was given.
5178if test "${enable_loggui+set}" = set; then
5179 enableval="$enable_loggui"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5183 else
5184 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5197
5198fi
5199
5200
5201 eval "$ac_cv_use_loggui"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_LOGGUI" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5214echo "configure:5215: checking for --enable-logwin" >&5
5215 no_cache=0
5216 # Check whether --enable-logwin or --disable-logwin was given.
5217if test "${enable_logwin+set}" = set; then
5218 enableval="$enable_logwin"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5222 else
5223 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5224 fi
5225
5226else
5227
5228 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5236
5237fi
5238
5239
5240 eval "$ac_cv_use_logwin"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_LOGWINDOW" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5253echo "configure:5254: checking for --enable-logdialog" >&5
5254 no_cache=0
5255 # Check whether --enable-logdialog or --disable-logdialog was given.
5256if test "${enable_logdialog+set}" = set; then
5257 enableval="$enable_logdialog"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5261 else
5262 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5275
5276fi
5277
5278
5279 eval "$ac_cv_use_logdialog"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_LOGDIALOG" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291
5292 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5293echo "configure:5294: checking for --enable-postscript" >&5
5294 no_cache=0
5295 # Check whether --enable-postscript or --disable-postscript was given.
5296if test "${enable_postscript+set}" = set; then
5297 enableval="$enable_postscript"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5301 else
5302 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5303 fi
5304
5305else
5306
5307 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5315
5316fi
5317
5318
5319 eval "$ac_cv_use_postscript"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_POSTSCRIPT" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331
5332
5333
5334 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5335echo "configure:5336: checking for --enable-prologio" >&5
5336 no_cache=0
5337 # Check whether --enable-prologio or --disable-prologio was given.
5338if test "${enable_prologio+set}" = set; then
5339 enableval="$enable_prologio"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5343 else
5344 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5357
5358fi
5359
5360
5361 eval "$ac_cv_use_prologio"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_PROLOGIO" = yes; then
5367 echo "$ac_t""yes" 1>&6
5368 else
5369 echo "$ac_t""no" 1>&6
5370 fi
5371
5372
5373 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5374echo "configure:5375: checking for --enable-resources" >&5
5375 no_cache=0
5376 # Check whether --enable-resources or --disable-resources was given.
5377if test "${enable_resources+set}" = set; then
5378 enableval="$enable_resources"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5382 else
5383 ac_cv_use_resources='wxUSE_RESOURCES=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5396
5397fi
5398
5399
5400 eval "$ac_cv_use_resources"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_RESOURCES" = yes; then
5406 echo "$ac_t""yes" 1>&6
5407 else
5408 echo "$ac_t""no" 1>&6
5409 fi
5410
5411
5412
5413 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5414echo "configure:5415: checking for --enable-xresources" >&5
5415 no_cache=0
5416 # Check whether --enable-xresources or --disable-xresources was given.
5417if test "${enable_xresources+set}" = set; then
5418 enableval="$enable_xresources"
5419
5420 if test "$enableval" = yes; then
5421 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5422 else
5423 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5424 fi
5425
5426else
5427
5428 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5429 if test "x$LINE" != x ; then
5430 eval "DEFAULT_$LINE"
5431 else
5432 no_cache=1
5433 fi
5434
5435 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5436
5437fi
5438
5439
5440 eval "$ac_cv_use_xresources"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_X_RESOURCES" = yes; then
5446 echo "$ac_t""yes" 1>&6
5447 else
5448 echo "$ac_t""no" 1>&6
5449 fi
5450
5451
5452
5453
5454 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5455echo "configure:5456: checking for --enable-clipboard" >&5
5456 no_cache=0
5457 # Check whether --enable-clipboard or --disable-clipboard was given.
5458if test "${enable_clipboard+set}" = set; then
5459 enableval="$enable_clipboard"
5460
5461 if test "$enableval" = yes; then
5462 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5463 else
5464 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5465 fi
5466
5467else
5468
5469 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5470 if test "x$LINE" != x ; then
5471 eval "DEFAULT_$LINE"
5472 else
5473 no_cache=1
5474 fi
5475
5476 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5477
5478fi
5479
5480
5481 eval "$ac_cv_use_clipboard"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_CLIPBOARD" = yes; then
5487 echo "$ac_t""yes" 1>&6
5488 else
5489 echo "$ac_t""no" 1>&6
5490 fi
5491
5492
5493 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5494echo "configure:5495: checking for --enable-dnd" >&5
5495 no_cache=0
5496 # Check whether --enable-dnd or --disable-dnd was given.
5497if test "${enable_dnd+set}" = set; then
5498 enableval="$enable_dnd"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5502 else
5503 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5516
5517fi
5518
5519
5520 eval "$ac_cv_use_dnd"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5526 echo "$ac_t""yes" 1>&6
5527 else
5528 echo "$ac_t""no" 1>&6
5529 fi
5530
5531
5532 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5533echo "configure:5534: checking for --enable-metafile" >&5
5534 no_cache=0
5535 # Check whether --enable-metafile or --disable-metafile was given.
5536if test "${enable_metafile+set}" = set; then
5537 enableval="$enable_metafile"
5538
5539 if test "$enableval" = yes; then
5540 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5541 else
5542 ac_cv_use_metafile='wxUSE_METAFILE=no'
5543 fi
5544
5545else
5546
5547 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5548 if test "x$LINE" != x ; then
5549 eval "DEFAULT_$LINE"
5550 else
5551 no_cache=1
5552 fi
5553
5554 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5555
5556fi
5557
5558
5559 eval "$ac_cv_use_metafile"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_METAFILE" = yes; then
5565 echo "$ac_t""yes" 1>&6
5566 else
5567 echo "$ac_t""no" 1>&6
5568 fi
5569
5570
5571
5572 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5573echo "configure:5574: checking for --enable-treelayout" >&5
5574 no_cache=0
5575 # Check whether --enable-treelayout or --disable-treelayout was given.
5576if test "${enable_treelayout+set}" = set; then
5577 enableval="$enable_treelayout"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5581 else
5582 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5595
5596fi
5597
5598
5599 eval "$ac_cv_use_treelayout"
5600 if test "$no_cache" != 1; then
5601 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5602 fi
5603
5604 if test "$wxUSE_TREELAYOUT" = yes; then
5605 echo "$ac_t""yes" 1>&6
5606 else
5607 echo "$ac_t""no" 1>&6
5608 fi
5609
5610
5611
5612
5613 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5614echo "configure:5615: checking for --enable-controls" >&5
5615 no_cache=0
5616 # Check whether --enable-controls or --disable-controls was given.
5617if test "${enable_controls+set}" = set; then
5618 enableval="$enable_controls"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5622 else
5623 ac_cv_use_controls='wxUSE_CONTROLS=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5636
5637fi
5638
5639
5640 eval "$ac_cv_use_controls"
5641 if test "$no_cache" != 1; then
5642 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5643 fi
5644
5645 if test "$wxUSE_CONTROLS" = yes; then
5646 echo "$ac_t""yes" 1>&6
5647 else
5648 echo "$ac_t""no" 1>&6
5649 fi
5650
5651
5652if test "$wxUSE_CONTROLS" = "yes"; then
5653 DEFAULT_wxUSE_ACCEL=yes
5654 DEFAULT_wxUSE_BMPBUTTON=yes
5655 DEFAULT_wxUSE_BUTTON=yes
5656 DEFAULT_wxUSE_CALCTRL=no
5657 DEFAULT_wxUSE_CARET=yes
5658 DEFAULT_wxUSE_COMBOBOX=yes
5659 DEFAULT_wxUSE_CHECKBOX=yes
5660 DEFAULT_wxUSE_CHECKLISTBOX=yes
5661 DEFAULT_wxUSE_CHOICE=yes
5662 DEFAULT_wxUSE_GAUGE=yes
5663 DEFAULT_wxUSE_GRID=yes
5664 DEFAULT_wxUSE_NEW_GRID=yes
5665 DEFAULT_wxUSE_IMAGLIST=yes
5666 DEFAULT_wxUSE_LISTBOX=yes
5667 DEFAULT_wxUSE_LISTCTRL=yes
5668 DEFAULT_wxUSE_NOTEBOOK=yes
5669 DEFAULT_wxUSE_PROPSHEET=yes
5670 DEFAULT_wxUSE_RADIOBOX=yes
5671 DEFAULT_wxUSE_RADIOBTN=yes
5672 DEFAULT_wxUSE_SASH=yes
5673 DEFAULT_wxUSE_SCROLLBAR=yes
5674 DEFAULT_wxUSE_SLIDER=yes
5675 DEFAULT_wxUSE_SPINBTN=yes
5676 DEFAULT_wxUSE_SPINCTRL=yes
5677 DEFAULT_wxUSE_SPLITTER=yes
5678 DEFAULT_wxUSE_STATBMP=yes
5679 DEFAULT_wxUSE_STATBOX=yes
5680 DEFAULT_wxUSE_STATLINE=yes
5681 DEFAULT_wxUSE_STATUSBAR=yes
5682 DEFAULT_wxUSE_TAB_DIALOG=yes
5683 DEFAULT_wxUSE_TOGGLEBTN=yes
5684 DEFAULT_wxUSE_TOOLBAR=yes
5685 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5686 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5687 DEFAULT_wxUSE_TOOLTIPS=yes
5688 DEFAULT_wxUSE_TREECTRL=yes
5689 DEFAULT_wxUSE_POPUPWIN=yes
5690 DEFAULT_wxUSE_TIPWINDOW=yes
5691elif test "$wxUSE_CONTROLS" = "no"; then
5692 DEFAULT_wxUSE_ACCEL=no
5693 DEFAULT_wxUSE_BMPBUTTON=no
5694 DEFAULT_wxUSE_BUTTON=no
5695 DEFAULT_wxUSE_CALCTRL=no
5696 DEFAULT_wxUSE_CARET=no
5697 DEFAULT_wxUSE_COMBOBOX=no
5698 DEFAULT_wxUSE_CHECKBOX=no
5699 DEFAULT_wxUSE_CHECKLISTBOX=no
5700 DEFAULT_wxUSE_CHOICE=no
5701 DEFAULT_wxUSE_GAUGE=no
5702 DEFAULT_wxUSE_GRID=no
5703 DEFAULT_wxUSE_NEW_GRID=no
5704 DEFAULT_wxUSE_IMAGLIST=no
5705 DEFAULT_wxUSE_LISTBOX=no
5706 DEFAULT_wxUSE_LISTCTRL=no
5707 DEFAULT_wxUSE_NOTEBOOK=no
5708 DEFAULT_wxUSE_PROPSHEET=no
5709 DEFAULT_wxUSE_RADIOBOX=no
5710 DEFAULT_wxUSE_RADIOBTN=no
5711 DEFAULT_wxUSE_SASH=no
5712 DEFAULT_wxUSE_SCROLLBAR=no
5713 DEFAULT_wxUSE_SLIDER=no
5714 DEFAULT_wxUSE_SPINBTN=no
5715 DEFAULT_wxUSE_SPINCTRL=no
5716 DEFAULT_wxUSE_SPLITTER=no
5717 DEFAULT_wxUSE_STATBMP=no
5718 DEFAULT_wxUSE_STATBOX=no
5719 DEFAULT_wxUSE_STATLINE=no
5720 DEFAULT_wxUSE_STATUSBAR=no
5721 DEFAULT_wxUSE_TAB_DIALOG=no
5722 DEFAULT_wxUSE_TOGGLEBTN=no
5723 DEFAULT_wxUSE_TOOLBAR=no
5724 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5725 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5726 DEFAULT_wxUSE_TOOLTIPS=no
5727 DEFAULT_wxUSE_TREECTRL=no
5728 DEFAULT_wxUSE_POPUPWIN=no
5729 DEFAULT_wxUSE_TIPWINDOW=no
5730fi
5731
5732
5733 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5734echo "configure:5735: checking for --enable-accel" >&5
5735 no_cache=0
5736 # Check whether --enable-accel or --disable-accel was given.
5737if test "${enable_accel+set}" = set; then
5738 enableval="$enable_accel"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_accel='wxUSE_ACCEL=yes'
5742 else
5743 ac_cv_use_accel='wxUSE_ACCEL=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5756
5757fi
5758
5759
5760 eval "$ac_cv_use_accel"
5761 if test "$no_cache" != 1; then
5762 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5763 fi
5764
5765 if test "$wxUSE_ACCEL" = yes; then
5766 echo "$ac_t""yes" 1>&6
5767 else
5768 echo "$ac_t""no" 1>&6
5769 fi
5770
5771
5772 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5773echo "configure:5774: checking for --enable-button" >&5
5774 no_cache=0
5775 # Check whether --enable-button or --disable-button was given.
5776if test "${enable_button+set}" = set; then
5777 enableval="$enable_button"
5778
5779 if test "$enableval" = yes; then
5780 ac_cv_use_button='wxUSE_BUTTON=yes'
5781 else
5782 ac_cv_use_button='wxUSE_BUTTON=no'
5783 fi
5784
5785else
5786
5787 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5788 if test "x$LINE" != x ; then
5789 eval "DEFAULT_$LINE"
5790 else
5791 no_cache=1
5792 fi
5793
5794 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5795
5796fi
5797
5798
5799 eval "$ac_cv_use_button"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_BUTTON" = yes; then
5805 echo "$ac_t""yes" 1>&6
5806 else
5807 echo "$ac_t""no" 1>&6
5808 fi
5809
5810
5811 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5812echo "configure:5813: checking for --enable-bmpbutton" >&5
5813 no_cache=0
5814 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5815if test "${enable_bmpbutton+set}" = set; then
5816 enableval="$enable_bmpbutton"
5817
5818 if test "$enableval" = yes; then
5819 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5820 else
5821 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5822 fi
5823
5824else
5825
5826 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5827 if test "x$LINE" != x ; then
5828 eval "DEFAULT_$LINE"
5829 else
5830 no_cache=1
5831 fi
5832
5833 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5834
5835fi
5836
5837
5838 eval "$ac_cv_use_bmpbutton"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_BMPBUTTON" = yes; then
5844 echo "$ac_t""yes" 1>&6
5845 else
5846 echo "$ac_t""no" 1>&6
5847 fi
5848
5849
5850 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5851echo "configure:5852: checking for --enable-calendar" >&5
5852 no_cache=0
5853 # Check whether --enable-calendar or --disable-calendar was given.
5854if test "${enable_calendar+set}" = set; then
5855 enableval="$enable_calendar"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5859 else
5860 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5873
5874fi
5875
5876
5877 eval "$ac_cv_use_calendar"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_CALCTRL" = yes; then
5883 echo "$ac_t""yes" 1>&6
5884 else
5885 echo "$ac_t""no" 1>&6
5886 fi
5887
5888
5889 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5890echo "configure:5891: checking for --enable-caret" >&5
5891 no_cache=0
5892 # Check whether --enable-caret or --disable-caret was given.
5893if test "${enable_caret+set}" = set; then
5894 enableval="$enable_caret"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_caret='wxUSE_CARET=yes'
5898 else
5899 ac_cv_use_caret='wxUSE_CARET=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5912
5913fi
5914
5915
5916 eval "$ac_cv_use_caret"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_CARET" = yes; then
5922 echo "$ac_t""yes" 1>&6
5923 else
5924 echo "$ac_t""no" 1>&6
5925 fi
5926
5927
5928 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5929echo "configure:5930: checking for --enable-checkbox" >&5
5930 no_cache=0
5931 # Check whether --enable-checkbox or --disable-checkbox was given.
5932if test "${enable_checkbox+set}" = set; then
5933 enableval="$enable_checkbox"
5934
5935 if test "$enableval" = yes; then
5936 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5937 else
5938 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5939 fi
5940
5941else
5942
5943 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5944 if test "x$LINE" != x ; then
5945 eval "DEFAULT_$LINE"
5946 else
5947 no_cache=1
5948 fi
5949
5950 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5951
5952fi
5953
5954
5955 eval "$ac_cv_use_checkbox"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_CHECKBOX" = yes; then
5961 echo "$ac_t""yes" 1>&6
5962 else
5963 echo "$ac_t""no" 1>&6
5964 fi
5965
5966
5967 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5968echo "configure:5969: checking for --enable-checklst" >&5
5969 no_cache=0
5970 # Check whether --enable-checklst or --disable-checklst was given.
5971if test "${enable_checklst+set}" = set; then
5972 enableval="$enable_checklst"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5976 else
5977 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5990
5991fi
5992
5993
5994 eval "$ac_cv_use_checklst"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_CHECKLST" = yes; then
6000 echo "$ac_t""yes" 1>&6
6001 else
6002 echo "$ac_t""no" 1>&6
6003 fi
6004
6005
6006 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6007echo "configure:6008: checking for --enable-choice" >&5
6008 no_cache=0
6009 # Check whether --enable-choice or --disable-choice was given.
6010if test "${enable_choice+set}" = set; then
6011 enableval="$enable_choice"
6012
6013 if test "$enableval" = yes; then
6014 ac_cv_use_choice='wxUSE_CHOICE=yes'
6015 else
6016 ac_cv_use_choice='wxUSE_CHOICE=no'
6017 fi
6018
6019else
6020
6021 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6022 if test "x$LINE" != x ; then
6023 eval "DEFAULT_$LINE"
6024 else
6025 no_cache=1
6026 fi
6027
6028 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6029
6030fi
6031
6032
6033 eval "$ac_cv_use_choice"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_CHOICE" = yes; then
6039 echo "$ac_t""yes" 1>&6
6040 else
6041 echo "$ac_t""no" 1>&6
6042 fi
6043
6044
6045 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6046echo "configure:6047: checking for --enable-combobox" >&5
6047 no_cache=0
6048 # Check whether --enable-combobox or --disable-combobox was given.
6049if test "${enable_combobox+set}" = set; then
6050 enableval="$enable_combobox"
6051
6052 if test "$enableval" = yes; then
6053 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6054 else
6055 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6056 fi
6057
6058else
6059
6060 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6068
6069fi
6070
6071
6072 eval "$ac_cv_use_combobox"
6073 if test "$no_cache" != 1; then
6074 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6075 fi
6076
6077 if test "$wxUSE_COMBOBOX" = yes; then
6078 echo "$ac_t""yes" 1>&6
6079 else
6080 echo "$ac_t""no" 1>&6
6081 fi
6082
6083
6084 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6085echo "configure:6086: checking for --enable-gauge" >&5
6086 no_cache=0
6087 # Check whether --enable-gauge or --disable-gauge was given.
6088if test "${enable_gauge+set}" = set; then
6089 enableval="$enable_gauge"
6090
6091 if test "$enableval" = yes; then
6092 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6093 else
6094 ac_cv_use_gauge='wxUSE_GAUGE=no'
6095 fi
6096
6097else
6098
6099 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6100 if test "x$LINE" != x ; then
6101 eval "DEFAULT_$LINE"
6102 else
6103 no_cache=1
6104 fi
6105
6106 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6107
6108fi
6109
6110
6111 eval "$ac_cv_use_gauge"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_GAUGE" = yes; then
6117 echo "$ac_t""yes" 1>&6
6118 else
6119 echo "$ac_t""no" 1>&6
6120 fi
6121
6122
6123 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6124echo "configure:6125: checking for --enable-grid" >&5
6125 no_cache=0
6126 # Check whether --enable-grid or --disable-grid was given.
6127if test "${enable_grid+set}" = set; then
6128 enableval="$enable_grid"
6129
6130 if test "$enableval" = yes; then
6131 ac_cv_use_grid='wxUSE_GRID=yes'
6132 else
6133 ac_cv_use_grid='wxUSE_GRID=no'
6134 fi
6135
6136else
6137
6138 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6146
6147fi
6148
6149
6150 eval "$ac_cv_use_grid"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_GRID" = yes; then
6156 echo "$ac_t""yes" 1>&6
6157 else
6158 echo "$ac_t""no" 1>&6
6159 fi
6160
6161
6162 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6163echo "configure:6164: checking for --enable-newgrid" >&5
6164 no_cache=0
6165 # Check whether --enable-newgrid or --disable-newgrid was given.
6166if test "${enable_newgrid+set}" = set; then
6167 enableval="$enable_newgrid"
6168
6169 if test "$enableval" = yes; then
6170 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6171 else
6172 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6173 fi
6174
6175else
6176
6177 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6178 if test "x$LINE" != x ; then
6179 eval "DEFAULT_$LINE"
6180 else
6181 no_cache=1
6182 fi
6183
6184 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6185
6186fi
6187
6188
6189 eval "$ac_cv_use_newgrid"
6190 if test "$no_cache" != 1; then
6191 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6192 fi
6193
6194 if test "$wxUSE_NEW_GRID" = yes; then
6195 echo "$ac_t""yes" 1>&6
6196 else
6197 echo "$ac_t""no" 1>&6
6198 fi
6199
6200
6201 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6202echo "configure:6203: checking for --enable-imaglist" >&5
6203 no_cache=0
6204 # Check whether --enable-imaglist or --disable-imaglist was given.
6205if test "${enable_imaglist+set}" = set; then
6206 enableval="$enable_imaglist"
6207
6208 if test "$enableval" = yes; then
6209 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6210 else
6211 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6212 fi
6213
6214else
6215
6216 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
6223 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6224
6225fi
6226
6227
6228 eval "$ac_cv_use_imaglist"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_IMAGLIST" = yes; then
6234 echo "$ac_t""yes" 1>&6
6235 else
6236 echo "$ac_t""no" 1>&6
6237 fi
6238
6239
6240 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6241echo "configure:6242: checking for --enable-listbox" >&5
6242 no_cache=0
6243 # Check whether --enable-listbox or --disable-listbox was given.
6244if test "${enable_listbox+set}" = set; then
6245 enableval="$enable_listbox"
6246
6247 if test "$enableval" = yes; then
6248 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6249 else
6250 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6251 fi
6252
6253else
6254
6255 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
6262 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6263
6264fi
6265
6266
6267 eval "$ac_cv_use_listbox"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_LISTBOX" = yes; then
6273 echo "$ac_t""yes" 1>&6
6274 else
6275 echo "$ac_t""no" 1>&6
6276 fi
6277
6278
6279 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6280echo "configure:6281: checking for --enable-listctrl" >&5
6281 no_cache=0
6282 # Check whether --enable-listctrl or --disable-listctrl was given.
6283if test "${enable_listctrl+set}" = set; then
6284 enableval="$enable_listctrl"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6288 else
6289 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6302
6303fi
6304
6305
6306 eval "$ac_cv_use_listctrl"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_LISTCTRL" = yes; then
6312 echo "$ac_t""yes" 1>&6
6313 else
6314 echo "$ac_t""no" 1>&6
6315 fi
6316
6317
6318 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6319echo "configure:6320: checking for --enable-notebook" >&5
6320 no_cache=0
6321 # Check whether --enable-notebook or --disable-notebook was given.
6322if test "${enable_notebook+set}" = set; then
6323 enableval="$enable_notebook"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6327 else
6328 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6341
6342fi
6343
6344
6345 eval "$ac_cv_use_notebook"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_NOTEBOOK" = yes; then
6351 echo "$ac_t""yes" 1>&6
6352 else
6353 echo "$ac_t""no" 1>&6
6354 fi
6355
6356
6357 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6358echo "configure:6359: checking for --enable-propsheet" >&5
6359 no_cache=0
6360 # Check whether --enable-propsheet or --disable-propsheet was given.
6361if test "${enable_propsheet+set}" = set; then
6362 enableval="$enable_propsheet"
6363
6364 if test "$enableval" = yes; then
6365 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6366 else
6367 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6368 fi
6369
6370else
6371
6372 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6380
6381fi
6382
6383
6384 eval "$ac_cv_use_propsheet"
6385 if test "$no_cache" != 1; then
6386 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6387 fi
6388
6389 if test "$wxUSE_PROPSHEET" = yes; then
6390 echo "$ac_t""yes" 1>&6
6391 else
6392 echo "$ac_t""no" 1>&6
6393 fi
6394
6395
6396 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6397echo "configure:6398: checking for --enable-radiobox" >&5
6398 no_cache=0
6399 # Check whether --enable-radiobox or --disable-radiobox was given.
6400if test "${enable_radiobox+set}" = set; then
6401 enableval="$enable_radiobox"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6405 else
6406 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6419
6420fi
6421
6422
6423 eval "$ac_cv_use_radiobox"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_RADIOBOX" = yes; then
6429 echo "$ac_t""yes" 1>&6
6430 else
6431 echo "$ac_t""no" 1>&6
6432 fi
6433
6434
6435 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6436echo "configure:6437: checking for --enable-radiobtn" >&5
6437 no_cache=0
6438 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6439if test "${enable_radiobtn+set}" = set; then
6440 enableval="$enable_radiobtn"
6441
6442 if test "$enableval" = yes; then
6443 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6444 else
6445 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6446 fi
6447
6448else
6449
6450 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6458
6459fi
6460
6461
6462 eval "$ac_cv_use_radiobtn"
6463 if test "$no_cache" != 1; then
6464 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6465 fi
6466
6467 if test "$wxUSE_RADIOBTN" = yes; then
6468 echo "$ac_t""yes" 1>&6
6469 else
6470 echo "$ac_t""no" 1>&6
6471 fi
6472
6473
6474 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6475echo "configure:6476: checking for --enable-sash" >&5
6476 no_cache=0
6477 # Check whether --enable-sash or --disable-sash was given.
6478if test "${enable_sash+set}" = set; then
6479 enableval="$enable_sash"
6480
6481 if test "$enableval" = yes; then
6482 ac_cv_use_sash='wxUSE_SASH=yes'
6483 else
6484 ac_cv_use_sash='wxUSE_SASH=no'
6485 fi
6486
6487else
6488
6489 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6497
6498fi
6499
6500
6501 eval "$ac_cv_use_sash"
6502 if test "$no_cache" != 1; then
6503 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6504 fi
6505
6506 if test "$wxUSE_SASH" = yes; then
6507 echo "$ac_t""yes" 1>&6
6508 else
6509 echo "$ac_t""no" 1>&6
6510 fi
6511
6512
6513 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6514echo "configure:6515: checking for --enable-scrollbar" >&5
6515 no_cache=0
6516 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6517if test "${enable_scrollbar+set}" = set; then
6518 enableval="$enable_scrollbar"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6522 else
6523 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6536
6537fi
6538
6539
6540 eval "$ac_cv_use_scrollbar"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_SCROLLBAR" = yes; then
6546 echo "$ac_t""yes" 1>&6
6547 else
6548 echo "$ac_t""no" 1>&6
6549 fi
6550
6551
6552 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6553echo "configure:6554: checking for --enable-slider" >&5
6554 no_cache=0
6555 # Check whether --enable-slider or --disable-slider was given.
6556if test "${enable_slider+set}" = set; then
6557 enableval="$enable_slider"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_slider='wxUSE_SLIDER=yes'
6561 else
6562 ac_cv_use_slider='wxUSE_SLIDER=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6575
6576fi
6577
6578
6579 eval "$ac_cv_use_slider"
6580 if test "$no_cache" != 1; then
6581 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6582 fi
6583
6584 if test "$wxUSE_SLIDER" = yes; then
6585 echo "$ac_t""yes" 1>&6
6586 else
6587 echo "$ac_t""no" 1>&6
6588 fi
6589
6590
6591 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6592echo "configure:6593: checking for --enable-spinbtn" >&5
6593 no_cache=0
6594 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6595if test "${enable_spinbtn+set}" = set; then
6596 enableval="$enable_spinbtn"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6600 else
6601 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6614
6615fi
6616
6617
6618 eval "$ac_cv_use_spinbtn"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_SPINBTN" = yes; then
6624 echo "$ac_t""yes" 1>&6
6625 else
6626 echo "$ac_t""no" 1>&6
6627 fi
6628
6629
6630 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6631echo "configure:6632: checking for --enable-spinctrl" >&5
6632 no_cache=0
6633 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6634if test "${enable_spinctrl+set}" = set; then
6635 enableval="$enable_spinctrl"
6636
6637 if test "$enableval" = yes; then
6638 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6639 else
6640 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6641 fi
6642
6643else
6644
6645 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6646 if test "x$LINE" != x ; then
6647 eval "DEFAULT_$LINE"
6648 else
6649 no_cache=1
6650 fi
6651
6652 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6653
6654fi
6655
6656
6657 eval "$ac_cv_use_spinctrl"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_SPINCTRL" = yes; then
6663 echo "$ac_t""yes" 1>&6
6664 else
6665 echo "$ac_t""no" 1>&6
6666 fi
6667
6668
6669 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6670echo "configure:6671: checking for --enable-splitter" >&5
6671 no_cache=0
6672 # Check whether --enable-splitter or --disable-splitter was given.
6673if test "${enable_splitter+set}" = set; then
6674 enableval="$enable_splitter"
6675
6676 if test "$enableval" = yes; then
6677 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6678 else
6679 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6680 fi
6681
6682else
6683
6684 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6685 if test "x$LINE" != x ; then
6686 eval "DEFAULT_$LINE"
6687 else
6688 no_cache=1
6689 fi
6690
6691 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6692
6693fi
6694
6695
6696 eval "$ac_cv_use_splitter"
6697 if test "$no_cache" != 1; then
6698 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6699 fi
6700
6701 if test "$wxUSE_SPLITTER" = yes; then
6702 echo "$ac_t""yes" 1>&6
6703 else
6704 echo "$ac_t""no" 1>&6
6705 fi
6706
6707
6708 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6709echo "configure:6710: checking for --enable-statbmp" >&5
6710 no_cache=0
6711 # Check whether --enable-statbmp or --disable-statbmp was given.
6712if test "${enable_statbmp+set}" = set; then
6713 enableval="$enable_statbmp"
6714
6715 if test "$enableval" = yes; then
6716 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6717 else
6718 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6719 fi
6720
6721else
6722
6723 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6724 if test "x$LINE" != x ; then
6725 eval "DEFAULT_$LINE"
6726 else
6727 no_cache=1
6728 fi
6729
6730 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6731
6732fi
6733
6734
6735 eval "$ac_cv_use_statbmp"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_STATBMP" = yes; then
6741 echo "$ac_t""yes" 1>&6
6742 else
6743 echo "$ac_t""no" 1>&6
6744 fi
6745
6746
6747 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6748echo "configure:6749: checking for --enable-statbox" >&5
6749 no_cache=0
6750 # Check whether --enable-statbox or --disable-statbox was given.
6751if test "${enable_statbox+set}" = set; then
6752 enableval="$enable_statbox"
6753
6754 if test "$enableval" = yes; then
6755 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6756 else
6757 ac_cv_use_statbox='wxUSE_STATBOX=no'
6758 fi
6759
6760else
6761
6762 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6763 if test "x$LINE" != x ; then
6764 eval "DEFAULT_$LINE"
6765 else
6766 no_cache=1
6767 fi
6768
6769 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6770
6771fi
6772
6773
6774 eval "$ac_cv_use_statbox"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_STATBOX" = yes; then
6780 echo "$ac_t""yes" 1>&6
6781 else
6782 echo "$ac_t""no" 1>&6
6783 fi
6784
6785
6786 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6787echo "configure:6788: checking for --enable-statline" >&5
6788 no_cache=0
6789 # Check whether --enable-statline or --disable-statline was given.
6790if test "${enable_statline+set}" = set; then
6791 enableval="$enable_statline"
6792
6793 if test "$enableval" = yes; then
6794 ac_cv_use_statline='wxUSE_STATLINE=yes'
6795 else
6796 ac_cv_use_statline='wxUSE_STATLINE=no'
6797 fi
6798
6799else
6800
6801 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
6808 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6809
6810fi
6811
6812
6813 eval "$ac_cv_use_statline"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_STATLINE" = yes; then
6819 echo "$ac_t""yes" 1>&6
6820 else
6821 echo "$ac_t""no" 1>&6
6822 fi
6823
6824
6825 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6826echo "configure:6827: checking for --enable-stattext" >&5
6827 no_cache=0
6828 # Check whether --enable-stattext or --disable-stattext was given.
6829if test "${enable_stattext+set}" = set; then
6830 enableval="$enable_stattext"
6831
6832 if test "$enableval" = yes; then
6833 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6834 else
6835 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6836 fi
6837
6838else
6839
6840 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6848
6849fi
6850
6851
6852 eval "$ac_cv_use_stattext"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_STATTEXT" = yes; then
6858 echo "$ac_t""yes" 1>&6
6859 else
6860 echo "$ac_t""no" 1>&6
6861 fi
6862
6863
6864 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6865echo "configure:6866: checking for --enable-statusbar" >&5
6866 no_cache=0
6867 # Check whether --enable-statusbar or --disable-statusbar was given.
6868if test "${enable_statusbar+set}" = set; then
6869 enableval="$enable_statusbar"
6870
6871 if test "$enableval" = yes; then
6872 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6873 else
6874 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6875 fi
6876
6877else
6878
6879 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6880 if test "x$LINE" != x ; then
6881 eval "DEFAULT_$LINE"
6882 else
6883 no_cache=1
6884 fi
6885
6886 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6887
6888fi
6889
6890
6891 eval "$ac_cv_use_statusbar"
6892 if test "$no_cache" != 1; then
6893 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6894 fi
6895
6896 if test "$wxUSE_STATUSBAR" = yes; then
6897 echo "$ac_t""yes" 1>&6
6898 else
6899 echo "$ac_t""no" 1>&6
6900 fi
6901
6902
6903 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6904echo "configure:6905: checking for --enable-tabdialog" >&5
6905 no_cache=0
6906 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6907if test "${enable_tabdialog+set}" = set; then
6908 enableval="$enable_tabdialog"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6912 else
6913 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6926
6927fi
6928
6929
6930 eval "$ac_cv_use_tabdialog"
6931 if test "$no_cache" != 1; then
6932 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6933 fi
6934
6935 if test "$wxUSE_TABDIALOG" = yes; then
6936 echo "$ac_t""yes" 1>&6
6937 else
6938 echo "$ac_t""no" 1>&6
6939 fi
6940
6941
6942 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6943echo "configure:6944: checking for --enable-textctrl" >&5
6944 no_cache=0
6945 # Check whether --enable-textctrl or --disable-textctrl was given.
6946if test "${enable_textctrl+set}" = set; then
6947 enableval="$enable_textctrl"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6951 else
6952 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6965
6966fi
6967
6968
6969 eval "$ac_cv_use_textctrl"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_TEXTCTRL" = yes; then
6975 echo "$ac_t""yes" 1>&6
6976 else
6977 echo "$ac_t""no" 1>&6
6978 fi
6979
6980
6981 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6982echo "configure:6983: checking for --enable-togglebtn" >&5
6983 no_cache=0
6984 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6985if test "${enable_togglebtn+set}" = set; then
6986 enableval="$enable_togglebtn"
6987
6988 if test "$enableval" = yes; then
6989 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6990 else
6991 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6992 fi
6993
6994else
6995
6996 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6997 if test "x$LINE" != x ; then
6998 eval "DEFAULT_$LINE"
6999 else
7000 no_cache=1
7001 fi
7002
7003 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7004
7005fi
7006
7007
7008 eval "$ac_cv_use_togglebtn"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_TOGGLEBTN" = yes; then
7014 echo "$ac_t""yes" 1>&6
7015 else
7016 echo "$ac_t""no" 1>&6
7017 fi
7018
7019
7020 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7021echo "configure:7022: checking for --enable-toolbar" >&5
7022 no_cache=0
7023 # Check whether --enable-toolbar or --disable-toolbar was given.
7024if test "${enable_toolbar+set}" = set; then
7025 enableval="$enable_toolbar"
7026
7027 if test "$enableval" = yes; then
7028 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7029 else
7030 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7031 fi
7032
7033else
7034
7035 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7043
7044fi
7045
7046
7047 eval "$ac_cv_use_toolbar"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_TOOLBAR" = yes; then
7053 echo "$ac_t""yes" 1>&6
7054 else
7055 echo "$ac_t""no" 1>&6
7056 fi
7057
7058
7059 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7060echo "configure:7061: checking for --enable-tbarnative" >&5
7061 no_cache=0
7062 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7063if test "${enable_tbarnative+set}" = set; then
7064 enableval="$enable_tbarnative"
7065
7066 if test "$enableval" = yes; then
7067 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7068 else
7069 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7070 fi
7071
7072else
7073
7074 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7075 if test "x$LINE" != x ; then
7076 eval "DEFAULT_$LINE"
7077 else
7078 no_cache=1
7079 fi
7080
7081 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7082
7083fi
7084
7085
7086 eval "$ac_cv_use_tbarnative"
7087 if test "$no_cache" != 1; then
7088 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7089 fi
7090
7091 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7092 echo "$ac_t""yes" 1>&6
7093 else
7094 echo "$ac_t""no" 1>&6
7095 fi
7096
7097
7098 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7099echo "configure:7100: checking for --enable-tbarsmpl" >&5
7100 no_cache=0
7101 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7102if test "${enable_tbarsmpl+set}" = set; then
7103 enableval="$enable_tbarsmpl"
7104
7105 if test "$enableval" = yes; then
7106 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7107 else
7108 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7109 fi
7110
7111else
7112
7113 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7114 if test "x$LINE" != x ; then
7115 eval "DEFAULT_$LINE"
7116 else
7117 no_cache=1
7118 fi
7119
7120 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7121
7122fi
7123
7124
7125 eval "$ac_cv_use_tbarsmpl"
7126 if test "$no_cache" != 1; then
7127 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7128 fi
7129
7130 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7131 echo "$ac_t""yes" 1>&6
7132 else
7133 echo "$ac_t""no" 1>&6
7134 fi
7135
7136
7137 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7138echo "configure:7139: checking for --enable-treectrl" >&5
7139 no_cache=0
7140 # Check whether --enable-treectrl or --disable-treectrl was given.
7141if test "${enable_treectrl+set}" = set; then
7142 enableval="$enable_treectrl"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7146 else
7147 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7160
7161fi
7162
7163
7164 eval "$ac_cv_use_treectrl"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_TREECTRL" = yes; then
7170 echo "$ac_t""yes" 1>&6
7171 else
7172 echo "$ac_t""no" 1>&6
7173 fi
7174
7175
7176 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7177echo "configure:7178: checking for --enable-tipwindow" >&5
7178 no_cache=0
7179 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7180if test "${enable_tipwindow+set}" = set; then
7181 enableval="$enable_tipwindow"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7185 else
7186 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7199
7200fi
7201
7202
7203 eval "$ac_cv_use_tipwindow"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_TIPWINDOW" = yes; then
7209 echo "$ac_t""yes" 1>&6
7210 else
7211 echo "$ac_t""no" 1>&6
7212 fi
7213
7214
7215 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7216echo "configure:7217: checking for --enable-popupwin" >&5
7217 no_cache=0
7218 # Check whether --enable-popupwin or --disable-popupwin was given.
7219if test "${enable_popupwin+set}" = set; then
7220 enableval="$enable_popupwin"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7224 else
7225 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7238
7239fi
7240
7241
7242 eval "$ac_cv_use_popupwin"
7243 if test "$no_cache" != 1; then
7244 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7245 fi
7246
7247 if test "$wxUSE_POPUPWIN" = yes; then
7248 echo "$ac_t""yes" 1>&6
7249 else
7250 echo "$ac_t""no" 1>&6
7251 fi
7252
7253
7254
7255
7256 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7257echo "configure:7258: checking for --enable-commondlg" >&5
7258 no_cache=0
7259 # Check whether --enable-commondlg or --disable-commondlg was given.
7260if test "${enable_commondlg+set}" = set; then
7261 enableval="$enable_commondlg"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7265 else
7266 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7279
7280fi
7281
7282
7283 eval "$ac_cv_use_commondlg"
7284 if test "$no_cache" != 1; then
7285 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7286 fi
7287
7288 if test "$wxUSE_COMMONDLGS" = yes; then
7289 echo "$ac_t""yes" 1>&6
7290 else
7291 echo "$ac_t""no" 1>&6
7292 fi
7293
7294
7295 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7296echo "configure:7297: checking for --enable-choicedlg" >&5
7297 no_cache=0
7298 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7299if test "${enable_choicedlg+set}" = set; then
7300 enableval="$enable_choicedlg"
7301
7302 if test "$enableval" = yes; then
7303 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7304 else
7305 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7306 fi
7307
7308else
7309
7310 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7311 if test "x$LINE" != x ; then
7312 eval "DEFAULT_$LINE"
7313 else
7314 no_cache=1
7315 fi
7316
7317 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7318
7319fi
7320
7321
7322 eval "$ac_cv_use_choicedlg"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7325 fi
7326
7327 if test "$wxUSE_CHOICEDLG" = yes; then
7328 echo "$ac_t""yes" 1>&6
7329 else
7330 echo "$ac_t""no" 1>&6
7331 fi
7332
7333
7334 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7335echo "configure:7336: checking for --enable-coldlg" >&5
7336 no_cache=0
7337 # Check whether --enable-coldlg or --disable-coldlg was given.
7338if test "${enable_coldlg+set}" = set; then
7339 enableval="$enable_coldlg"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7343 else
7344 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7345 fi
7346
7347else
7348
7349 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7357
7358fi
7359
7360
7361 eval "$ac_cv_use_coldlg"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_COLOURDLG" = yes; then
7367 echo "$ac_t""yes" 1>&6
7368 else
7369 echo "$ac_t""no" 1>&6
7370 fi
7371
7372
7373 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7374echo "configure:7375: checking for --enable-filedlg" >&5
7375 no_cache=0
7376 # Check whether --enable-filedlg or --disable-filedlg was given.
7377if test "${enable_filedlg+set}" = set; then
7378 enableval="$enable_filedlg"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7382 else
7383 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7396
7397fi
7398
7399
7400 eval "$ac_cv_use_filedlg"
7401 if test "$no_cache" != 1; then
7402 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7403 fi
7404
7405 if test "$wxUSE_FILEDLG" = yes; then
7406 echo "$ac_t""yes" 1>&6
7407 else
7408 echo "$ac_t""no" 1>&6
7409 fi
7410
7411
7412 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7413echo "configure:7414: checking for --enable-finddlg" >&5
7414 no_cache=0
7415 # Check whether --enable-finddlg or --disable-finddlg was given.
7416if test "${enable_finddlg+set}" = set; then
7417 enableval="$enable_finddlg"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7421 else
7422 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7435
7436fi
7437
7438
7439 eval "$ac_cv_use_finddlg"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_FINDREPLDLG" = yes; then
7445 echo "$ac_t""yes" 1>&6
7446 else
7447 echo "$ac_t""no" 1>&6
7448 fi
7449
7450
7451 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7452echo "configure:7453: checking for --enable-fontdlg" >&5
7453 no_cache=0
7454 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7455if test "${enable_fontdlg+set}" = set; then
7456 enableval="$enable_fontdlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7460 else
7461 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7462 fi
7463
7464else
7465
7466 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7474
7475fi
7476
7477
7478 eval "$ac_cv_use_fontdlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_FONTDLG" = yes; then
7484 echo "$ac_t""yes" 1>&6
7485 else
7486 echo "$ac_t""no" 1>&6
7487 fi
7488
7489
7490 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7491echo "configure:7492: checking for --enable-dirdlg" >&5
7492 no_cache=0
7493 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7494if test "${enable_dirdlg+set}" = set; then
7495 enableval="$enable_dirdlg"
7496
7497 if test "$enableval" = yes; then
7498 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7499 else
7500 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7501 fi
7502
7503else
7504
7505 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7506 if test "x$LINE" != x ; then
7507 eval "DEFAULT_$LINE"
7508 else
7509 no_cache=1
7510 fi
7511
7512 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7513
7514fi
7515
7516
7517 eval "$ac_cv_use_dirdlg"
7518 if test "$no_cache" != 1; then
7519 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7520 fi
7521
7522 if test "$wxUSE_DIRDLG" = yes; then
7523 echo "$ac_t""yes" 1>&6
7524 else
7525 echo "$ac_t""no" 1>&6
7526 fi
7527
7528
7529 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7530echo "configure:7531: checking for --enable-msgdlg" >&5
7531 no_cache=0
7532 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7533if test "${enable_msgdlg+set}" = set; then
7534 enableval="$enable_msgdlg"
7535
7536 if test "$enableval" = yes; then
7537 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7538 else
7539 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7540 fi
7541
7542else
7543
7544 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7545 if test "x$LINE" != x ; then
7546 eval "DEFAULT_$LINE"
7547 else
7548 no_cache=1
7549 fi
7550
7551 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7552
7553fi
7554
7555
7556 eval "$ac_cv_use_msgdlg"
7557 if test "$no_cache" != 1; then
7558 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7559 fi
7560
7561 if test "$wxUSE_MSGDLG" = yes; then
7562 echo "$ac_t""yes" 1>&6
7563 else
7564 echo "$ac_t""no" 1>&6
7565 fi
7566
7567
7568 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7569echo "configure:7570: checking for --enable-numberdlg" >&5
7570 no_cache=0
7571 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7572if test "${enable_numberdlg+set}" = set; then
7573 enableval="$enable_numberdlg"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7577 else
7578 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7579 fi
7580
7581else
7582
7583 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7591
7592fi
7593
7594
7595 eval "$ac_cv_use_numberdlg"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_NUMBERDLG" = yes; then
7601 echo "$ac_t""yes" 1>&6
7602 else
7603 echo "$ac_t""no" 1>&6
7604 fi
7605
7606
7607 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7608echo "configure:7609: checking for --enable-splash" >&5
7609 no_cache=0
7610 # Check whether --enable-splash or --disable-splash was given.
7611if test "${enable_splash+set}" = set; then
7612 enableval="$enable_splash"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_splash='wxUSE_SPLASH=yes'
7616 else
7617 ac_cv_use_splash='wxUSE_SPLASH=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7630
7631fi
7632
7633
7634 eval "$ac_cv_use_splash"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_SPLASH" = yes; then
7640 echo "$ac_t""yes" 1>&6
7641 else
7642 echo "$ac_t""no" 1>&6
7643 fi
7644
7645
7646 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7647echo "configure:7648: checking for --enable-textdlg" >&5
7648 no_cache=0
7649 # Check whether --enable-textdlg or --disable-textdlg was given.
7650if test "${enable_textdlg+set}" = set; then
7651 enableval="$enable_textdlg"
7652
7653 if test "$enableval" = yes; then
7654 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7655 else
7656 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7657 fi
7658
7659else
7660
7661 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7662 if test "x$LINE" != x ; then
7663 eval "DEFAULT_$LINE"
7664 else
7665 no_cache=1
7666 fi
7667
7668 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7669
7670fi
7671
7672
7673 eval "$ac_cv_use_textdlg"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_TEXTDLG" = yes; then
7679 echo "$ac_t""yes" 1>&6
7680 else
7681 echo "$ac_t""no" 1>&6
7682 fi
7683
7684
7685 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7686echo "configure:7687: checking for --enable-tipdlg" >&5
7687 no_cache=0
7688 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7689if test "${enable_tipdlg+set}" = set; then
7690 enableval="$enable_tipdlg"
7691
7692 if test "$enableval" = yes; then
7693 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7694 else
7695 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7696 fi
7697
7698else
7699
7700 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7701 if test "x$LINE" != x ; then
7702 eval "DEFAULT_$LINE"
7703 else
7704 no_cache=1
7705 fi
7706
7707 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7708
7709fi
7710
7711
7712 eval "$ac_cv_use_tipdlg"
7713 if test "$no_cache" != 1; then
7714 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7715 fi
7716
7717 if test "$wxUSE_STARTUP_TIPS" = yes; then
7718 echo "$ac_t""yes" 1>&6
7719 else
7720 echo "$ac_t""no" 1>&6
7721 fi
7722
7723
7724 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7725echo "configure:7726: checking for --enable-progressdlg" >&5
7726 no_cache=0
7727 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7728if test "${enable_progressdlg+set}" = set; then
7729 enableval="$enable_progressdlg"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7733 else
7734 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7747
7748fi
7749
7750
7751 eval "$ac_cv_use_progressdlg"
7752 if test "$no_cache" != 1; then
7753 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7754 fi
7755
7756 if test "$wxUSE_PROGRESSDLG" = yes; then
7757 echo "$ac_t""yes" 1>&6
7758 else
7759 echo "$ac_t""no" 1>&6
7760 fi
7761
7762
7763 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7764echo "configure:7765: checking for --enable-wizarddlg" >&5
7765 no_cache=0
7766 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7767if test "${enable_wizarddlg+set}" = set; then
7768 enableval="$enable_wizarddlg"
7769
7770 if test "$enableval" = yes; then
7771 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7772 else
7773 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7774 fi
7775
7776else
7777
7778 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7779 if test "x$LINE" != x ; then
7780 eval "DEFAULT_$LINE"
7781 else
7782 no_cache=1
7783 fi
7784
7785 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7786
7787fi
7788
7789
7790 eval "$ac_cv_use_wizarddlg"
7791 if test "$no_cache" != 1; then
7792 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7793 fi
7794
7795 if test "$wxUSE_WIZARDDLG" = yes; then
7796 echo "$ac_t""yes" 1>&6
7797 else
7798 echo "$ac_t""no" 1>&6
7799 fi
7800
7801
7802
7803
7804 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7805echo "configure:7806: checking for --enable-menus" >&5
7806 no_cache=0
7807 # Check whether --enable-menus or --disable-menus was given.
7808if test "${enable_menus+set}" = set; then
7809 enableval="$enable_menus"
7810
7811 if test "$enableval" = yes; then
7812 ac_cv_use_menus='wxUSE_MENUS=yes'
7813 else
7814 ac_cv_use_menus='wxUSE_MENUS=no'
7815 fi
7816
7817else
7818
7819 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7820 if test "x$LINE" != x ; then
7821 eval "DEFAULT_$LINE"
7822 else
7823 no_cache=1
7824 fi
7825
7826 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7827
7828fi
7829
7830
7831 eval "$ac_cv_use_menus"
7832 if test "$no_cache" != 1; then
7833 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7834 fi
7835
7836 if test "$wxUSE_MENUS" = yes; then
7837 echo "$ac_t""yes" 1>&6
7838 else
7839 echo "$ac_t""no" 1>&6
7840 fi
7841
7842
7843 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7844echo "configure:7845: checking for --enable-miniframe" >&5
7845 no_cache=0
7846 # Check whether --enable-miniframe or --disable-miniframe was given.
7847if test "${enable_miniframe+set}" = set; then
7848 enableval="$enable_miniframe"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7852 else
7853 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7854 fi
7855
7856else
7857
7858 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7866
7867fi
7868
7869
7870 eval "$ac_cv_use_miniframe"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_MINIFRAME" = yes; then
7876 echo "$ac_t""yes" 1>&6
7877 else
7878 echo "$ac_t""no" 1>&6
7879 fi
7880
7881
7882 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7883echo "configure:7884: checking for --enable-tooltips" >&5
7884 no_cache=0
7885 # Check whether --enable-tooltips or --disable-tooltips was given.
7886if test "${enable_tooltips+set}" = set; then
7887 enableval="$enable_tooltips"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7891 else
7892 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7905
7906fi
7907
7908
7909 eval "$ac_cv_use_tooltips"
7910 if test "$no_cache" != 1; then
7911 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7912 fi
7913
7914 if test "$wxUSE_TOOLTIPS" = yes; then
7915 echo "$ac_t""yes" 1>&6
7916 else
7917 echo "$ac_t""no" 1>&6
7918 fi
7919
7920
7921 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7922echo "configure:7923: checking for --enable-splines" >&5
7923 no_cache=0
7924 # Check whether --enable-splines or --disable-splines was given.
7925if test "${enable_splines+set}" = set; then
7926 enableval="$enable_splines"
7927
7928 if test "$enableval" = yes; then
7929 ac_cv_use_splines='wxUSE_SPLINES=yes'
7930 else
7931 ac_cv_use_splines='wxUSE_SPLINES=no'
7932 fi
7933
7934else
7935
7936 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7944
7945fi
7946
7947
7948 eval "$ac_cv_use_splines"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_SPLINES" = yes; then
7954 echo "$ac_t""yes" 1>&6
7955 else
7956 echo "$ac_t""no" 1>&6
7957 fi
7958
7959
7960 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7961echo "configure:7962: checking for --enable-validators" >&5
7962 no_cache=0
7963 # Check whether --enable-validators or --disable-validators was given.
7964if test "${enable_validators+set}" = set; then
7965 enableval="$enable_validators"
7966
7967 if test "$enableval" = yes; then
7968 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7969 else
7970 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7971 fi
7972
7973else
7974
7975 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7983
7984fi
7985
7986
7987 eval "$ac_cv_use_validators"
7988 if test "$no_cache" != 1; then
7989 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7990 fi
7991
7992 if test "$wxUSE_VALIDATORS" = yes; then
7993 echo "$ac_t""yes" 1>&6
7994 else
7995 echo "$ac_t""no" 1>&6
7996 fi
7997
7998
7999 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8000echo "configure:8001: checking for --enable-busyinfo" >&5
8001 no_cache=0
8002 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8003if test "${enable_busyinfo+set}" = set; then
8004 enableval="$enable_busyinfo"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8008 else
8009 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8022
8023fi
8024
8025
8026 eval "$ac_cv_use_busyinfo"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_BUSYINFO" = yes; then
8032 echo "$ac_t""yes" 1>&6
8033 else
8034 echo "$ac_t""no" 1>&6
8035 fi
8036
8037
8038 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8039echo "configure:8040: checking for --enable-joystick" >&5
8040 no_cache=0
8041 # Check whether --enable-joystick or --disable-joystick was given.
8042if test "${enable_joystick+set}" = set; then
8043 enableval="$enable_joystick"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8047 else
8048 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8061
8062fi
8063
8064
8065 eval "$ac_cv_use_joystick"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_JOYSTICK" = yes; then
8071 echo "$ac_t""yes" 1>&6
8072 else
8073 echo "$ac_t""no" 1>&6
8074 fi
8075
8076
8077 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8078echo "configure:8079: checking for --enable-metafile" >&5
8079 no_cache=0
8080 # Check whether --enable-metafile or --disable-metafile was given.
8081if test "${enable_metafile+set}" = set; then
8082 enableval="$enable_metafile"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8086 else
8087 ac_cv_use_metafile='wxUSE_METAFILE=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8100
8101fi
8102
8103
8104 eval "$ac_cv_use_metafile"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_METAFILE" = yes; then
8110 echo "$ac_t""yes" 1>&6
8111 else
8112 echo "$ac_t""no" 1>&6
8113 fi
8114
8115
8116 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8117echo "configure:8118: checking for --enable-dragimage" >&5
8118 no_cache=0
8119 # Check whether --enable-dragimage or --disable-dragimage was given.
8120if test "${enable_dragimage+set}" = set; then
8121 enableval="$enable_dragimage"
8122
8123 if test "$enableval" = yes; then
8124 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8125 else
8126 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8127 fi
8128
8129else
8130
8131 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8132 if test "x$LINE" != x ; then
8133 eval "DEFAULT_$LINE"
8134 else
8135 no_cache=1
8136 fi
8137
8138 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8139
8140fi
8141
8142
8143 eval "$ac_cv_use_dragimage"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_DRAGIMAGE" = yes; then
8149 echo "$ac_t""yes" 1>&6
8150 else
8151 echo "$ac_t""no" 1>&6
8152 fi
8153
8154
8155
8156
8157 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8158echo "configure:8159: checking for --enable-palette" >&5
8159 no_cache=0
8160 # Check whether --enable-palette or --disable-palette was given.
8161if test "${enable_palette+set}" = set; then
8162 enableval="$enable_palette"
8163
8164 if test "$enableval" = yes; then
8165 ac_cv_use_palette='wxUSE_PALETTE=yes'
8166 else
8167 ac_cv_use_palette='wxUSE_PALETTE=no'
8168 fi
8169
8170else
8171
8172 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8173 if test "x$LINE" != x ; then
8174 eval "DEFAULT_$LINE"
8175 else
8176 no_cache=1
8177 fi
8178
8179 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8180
8181fi
8182
8183
8184 eval "$ac_cv_use_palette"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_PALETTE" = yes; then
8190 echo "$ac_t""yes" 1>&6
8191 else
8192 echo "$ac_t""no" 1>&6
8193 fi
8194
8195
8196 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8197echo "configure:8198: checking for --enable-image" >&5
8198 no_cache=0
8199 # Check whether --enable-image or --disable-image was given.
8200if test "${enable_image+set}" = set; then
8201 enableval="$enable_image"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_image='wxUSE_IMAGE=yes'
8205 else
8206 ac_cv_use_image='wxUSE_IMAGE=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8219
8220fi
8221
8222
8223 eval "$ac_cv_use_image"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_IMAGE" = yes; then
8229 echo "$ac_t""yes" 1>&6
8230 else
8231 echo "$ac_t""no" 1>&6
8232 fi
8233
8234
8235 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8236echo "configure:8237: checking for --enable-gif" >&5
8237 no_cache=0
8238 # Check whether --enable-gif or --disable-gif was given.
8239if test "${enable_gif+set}" = set; then
8240 enableval="$enable_gif"
8241
8242 if test "$enableval" = yes; then
8243 ac_cv_use_gif='wxUSE_GIF=yes'
8244 else
8245 ac_cv_use_gif='wxUSE_GIF=no'
8246 fi
8247
8248else
8249
8250 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8251 if test "x$LINE" != x ; then
8252 eval "DEFAULT_$LINE"
8253 else
8254 no_cache=1
8255 fi
8256
8257 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8258
8259fi
8260
8261
8262 eval "$ac_cv_use_gif"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_GIF" = yes; then
8268 echo "$ac_t""yes" 1>&6
8269 else
8270 echo "$ac_t""no" 1>&6
8271 fi
8272
8273
8274 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8275echo "configure:8276: checking for --enable-pcx" >&5
8276 no_cache=0
8277 # Check whether --enable-pcx or --disable-pcx was given.
8278if test "${enable_pcx+set}" = set; then
8279 enableval="$enable_pcx"
8280
8281 if test "$enableval" = yes; then
8282 ac_cv_use_pcx='wxUSE_PCX=yes'
8283 else
8284 ac_cv_use_pcx='wxUSE_PCX=no'
8285 fi
8286
8287else
8288
8289 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8290 if test "x$LINE" != x ; then
8291 eval "DEFAULT_$LINE"
8292 else
8293 no_cache=1
8294 fi
8295
8296 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8297
8298fi
8299
8300
8301 eval "$ac_cv_use_pcx"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_PCX" = yes; then
8307 echo "$ac_t""yes" 1>&6
8308 else
8309 echo "$ac_t""no" 1>&6
8310 fi
8311
8312
8313 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8314echo "configure:8315: checking for --enable-iff" >&5
8315 no_cache=0
8316 # Check whether --enable-iff or --disable-iff was given.
8317if test "${enable_iff+set}" = set; then
8318 enableval="$enable_iff"
8319
8320 if test "$enableval" = yes; then
8321 ac_cv_use_iff='wxUSE_IFF=yes'
8322 else
8323 ac_cv_use_iff='wxUSE_IFF=no'
8324 fi
8325
8326else
8327
8328 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8329 if test "x$LINE" != x ; then
8330 eval "DEFAULT_$LINE"
8331 else
8332 no_cache=1
8333 fi
8334
8335 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8336
8337fi
8338
8339
8340 eval "$ac_cv_use_iff"
8341 if test "$no_cache" != 1; then
8342 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8343 fi
8344
8345 if test "$wxUSE_IFF" = yes; then
8346 echo "$ac_t""yes" 1>&6
8347 else
8348 echo "$ac_t""no" 1>&6
8349 fi
8350
8351
8352 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8353echo "configure:8354: checking for --enable-pnm" >&5
8354 no_cache=0
8355 # Check whether --enable-pnm or --disable-pnm was given.
8356if test "${enable_pnm+set}" = set; then
8357 enableval="$enable_pnm"
8358
8359 if test "$enableval" = yes; then
8360 ac_cv_use_pnm='wxUSE_PNM=yes'
8361 else
8362 ac_cv_use_pnm='wxUSE_PNM=no'
8363 fi
8364
8365else
8366
8367 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8368 if test "x$LINE" != x ; then
8369 eval "DEFAULT_$LINE"
8370 else
8371 no_cache=1
8372 fi
8373
8374 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8375
8376fi
8377
8378
8379 eval "$ac_cv_use_pnm"
8380 if test "$no_cache" != 1; then
8381 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8382 fi
8383
8384 if test "$wxUSE_PNM" = yes; then
8385 echo "$ac_t""yes" 1>&6
8386 else
8387 echo "$ac_t""no" 1>&6
8388 fi
8389
8390
8391 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8392echo "configure:8393: checking for --enable-xpm" >&5
8393 no_cache=0
8394 # Check whether --enable-xpm or --disable-xpm was given.
8395if test "${enable_xpm+set}" = set; then
8396 enableval="$enable_xpm"
8397
8398 if test "$enableval" = yes; then
8399 ac_cv_use_xpm='wxUSE_XPM=yes'
8400 else
8401 ac_cv_use_xpm='wxUSE_XPM=no'
8402 fi
8403
8404else
8405
8406 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8407 if test "x$LINE" != x ; then
8408 eval "DEFAULT_$LINE"
8409 else
8410 no_cache=1
8411 fi
8412
8413 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8414
8415fi
8416
8417
8418 eval "$ac_cv_use_xpm"
8419 if test "$no_cache" != 1; then
8420 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8421 fi
8422
8423 if test "$wxUSE_XPM" = yes; then
8424 echo "$ac_t""yes" 1>&6
8425 else
8426 echo "$ac_t""no" 1>&6
8427 fi
8428
8429
8430 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8431echo "configure:8432: checking for --enable-ico_cur" >&5
8432 no_cache=0
8433 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8434if test "${enable_ico_cur+set}" = set; then
8435 enableval="$enable_ico_cur"
8436
8437 if test "$enableval" = yes; then
8438 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8439 else
8440 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8441 fi
8442
8443else
8444
8445 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
8452 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8453
8454fi
8455
8456
8457 eval "$ac_cv_use_ico_cur"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_ICO_CUR" = yes; then
8463 echo "$ac_t""yes" 1>&6
8464 else
8465 echo "$ac_t""no" 1>&6
8466 fi
8467
8468
8469fi
8470
8471case "${host}" in
8472 *-pc-os2_emx | *-pc-os2-emx )
8473 LEX_STEM="lexyy"
8474 ;;
8475 *)
8476 PATH_IFS=':'
8477 LEX_STEM="lex.yy"
8478 ;;
8479esac
8480
8481
8482
8483 echo "saving argument cache $wx_arg_cache_file"
8484 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8485
8486
8487
8488echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8489echo "configure:8490: checking for toolkit" >&5
8490
8491if test "$wxUSE_GUI" = "yes"; then
8492
8493 if test "$USE_BEOS" = 1; then
8494 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8495 fi
8496
8497 if test "$TOOLKIT_GIVEN" = 1; then
8498 for toolkit in `echo $ALL_TOOLKITS`; do
8499 var=wxUSE_$toolkit
8500 eval "value=\$${var}"
8501 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8502 done
8503 else
8504 for toolkit in `echo $ALL_TOOLKITS`; do
8505 if test "$has_toolkit_in_cache" != 1; then
8506 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8507 else
8508 var=DEFAULT_wxUSE_$toolkit
8509 fi
8510 eval "wxUSE_$toolkit=\$${var}"
8511 done
8512 fi
8513
8514 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8515 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8516
8517 case "${host}" in
8518 *-pc-os2_emx | *-pc-os2-emx )
8519 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8520 esac
8521
8522 case "$NUM_TOOLKITS" in
8523 1)
8524 ;;
8525 0)
8526 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8527 ;;
8528 *)
8529 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8530 esac
8531
8532 for toolkit in `echo $ALL_TOOLKITS`; do
8533 var=wxUSE_$toolkit
8534 eval "value=\$${var}"
8535 if test "x$value" != x; then
8536 cache_var=CACHE_$toolkit
8537 eval "cache=\$${cache_var}"
8538 if test "$cache" = 1; then
8539 echo "$var=$value" >> ${wx_arg_cache_file}
8540 fi
8541 if test "$value" = 1; then
8542 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8543 echo "$ac_t""$toolkit_echo" 1>&6
8544 fi
8545 fi
8546 done
8547else
8548 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8549fi
8550
8551
8552cat > confcache <<\EOF
8553# This file is a shell script that caches the results of configure
8554# tests run on this system so they can be shared between configure
8555# scripts and configure runs. It is not useful on other systems.
8556# If it contains results you don't want to keep, you may remove or edit it.
8557#
8558# By default, configure uses ./config.cache as the cache file,
8559# creating it if it does not exist already. You can give configure
8560# the --cache-file=FILE option to use a different cache file; that is
8561# what configure does when it calls configure scripts in
8562# subdirectories, so they share the cache.
8563# Giving --cache-file=/dev/null disables caching, for debugging configure.
8564# config.status only pays attention to the cache file if you give it the
8565# --recheck option to rerun configure.
8566#
8567EOF
8568# The following way of writing the cache mishandles newlines in values,
8569# but we know of no workaround that is simple, portable, and efficient.
8570# So, don't put newlines in cache variables' values.
8571# Ultrix sh set writes to stderr and can't be redirected directly,
8572# and sets the high bit in the cache file unless we assign to the vars.
8573(set) 2>&1 |
8574 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8575 *ac_space=\ *)
8576 # `set' does not quote correctly, so add quotes (double-quote substitution
8577 # turns \\\\ into \\, and sed turns \\ into \).
8578 sed -n \
8579 -e "s/'/'\\\\''/g" \
8580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8581 ;;
8582 *)
8583 # `set' quotes correctly as required by POSIX, so do not add quotes.
8584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8585 ;;
8586 esac >> confcache
8587if cmp -s $cache_file confcache; then
8588 :
8589else
8590 if test -w $cache_file; then
8591 echo "updating cache $cache_file"
8592 cat confcache > $cache_file
8593 else
8594 echo "not updating unwritable cache $cache_file"
8595 fi
8596fi
8597rm -f confcache
8598
8599
8600if test "$build" != "$host" ; then
8601 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8602 CC=$host_alias-gcc
8603 CXX=$host_alias-c++
8604 AR=$host_alias-ar
8605 RANLIB=$host_alias-ranlib
8606 DLLTOOL=$host_alias-dlltool
8607 RESCOMP=$host_alias-windres
8608 LD=$host_alias-ld
8609 NM=$host_alias-nm
8610 STRIP=$host_alias-strip
8611 else
8612 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8613 fi
8614fi
8615
8616# Extract the first word of "gcc", so it can be a program name with args.
8617set dummy gcc; ac_word=$2
8618echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8619echo "configure:8620: checking for $ac_word" >&5
8620if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8622else
8623 if test -n "$CC"; then
8624 ac_cv_prog_CC="$CC" # Let the user override the test.
8625else
8626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8627 ac_dummy="$PATH"
8628 for ac_dir in $ac_dummy; do
8629 test -z "$ac_dir" && ac_dir=.
8630 if test -f $ac_dir/$ac_word; then
8631 ac_cv_prog_CC="gcc"
8632 break
8633 fi
8634 done
8635 IFS="$ac_save_ifs"
8636fi
8637fi
8638CC="$ac_cv_prog_CC"
8639if test -n "$CC"; then
8640 echo "$ac_t""$CC" 1>&6
8641else
8642 echo "$ac_t""no" 1>&6
8643fi
8644
8645if test -z "$CC"; then
8646 # Extract the first word of "cc", so it can be a program name with args.
8647set dummy cc; ac_word=$2
8648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8649echo "configure:8650: checking for $ac_word" >&5
8650if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8652else
8653 if test -n "$CC"; then
8654 ac_cv_prog_CC="$CC" # Let the user override the test.
8655else
8656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8657 ac_prog_rejected=no
8658 ac_dummy="$PATH"
8659 for ac_dir in $ac_dummy; do
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f $ac_dir/$ac_word; then
8662 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8663 ac_prog_rejected=yes
8664 continue
8665 fi
8666 ac_cv_prog_CC="cc"
8667 break
8668 fi
8669 done
8670 IFS="$ac_save_ifs"
8671if test $ac_prog_rejected = yes; then
8672 # We found a bogon in the path, so make sure we never use it.
8673 set dummy $ac_cv_prog_CC
8674 shift
8675 if test $# -gt 0; then
8676 # We chose a different compiler from the bogus one.
8677 # However, it has the same basename, so the bogon will be chosen
8678 # first if we set CC to just the basename; use the full file name.
8679 shift
8680 set dummy "$ac_dir/$ac_word" "$@"
8681 shift
8682 ac_cv_prog_CC="$@"
8683 fi
8684fi
8685fi
8686fi
8687CC="$ac_cv_prog_CC"
8688if test -n "$CC"; then
8689 echo "$ac_t""$CC" 1>&6
8690else
8691 echo "$ac_t""no" 1>&6
8692fi
8693
8694 if test -z "$CC"; then
8695 case "`uname -s`" in
8696 *win32* | *WIN32*)
8697 # Extract the first word of "cl", so it can be a program name with args.
8698set dummy cl; ac_word=$2
8699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8700echo "configure:8701: checking for $ac_word" >&5
8701if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8703else
8704 if test -n "$CC"; then
8705 ac_cv_prog_CC="$CC" # Let the user override the test.
8706else
8707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8708 ac_dummy="$PATH"
8709 for ac_dir in $ac_dummy; do
8710 test -z "$ac_dir" && ac_dir=.
8711 if test -f $ac_dir/$ac_word; then
8712 ac_cv_prog_CC="cl"
8713 break
8714 fi
8715 done
8716 IFS="$ac_save_ifs"
8717fi
8718fi
8719CC="$ac_cv_prog_CC"
8720if test -n "$CC"; then
8721 echo "$ac_t""$CC" 1>&6
8722else
8723 echo "$ac_t""no" 1>&6
8724fi
8725 ;;
8726 esac
8727 fi
8728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8729fi
8730
8731echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8732echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8733
8734ac_ext=c
8735# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8736ac_cpp='$CPP $CPPFLAGS'
8737ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8738ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8739cross_compiling=$ac_cv_prog_cc_cross
8740
8741cat > conftest.$ac_ext << EOF
8742
8743#line 8744 "configure"
8744#include "confdefs.h"
8745
8746main(){return(0);}
8747EOF
8748if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8749 ac_cv_prog_cc_works=yes
8750 # If we can't run a trivial program, we are probably using a cross compiler.
8751 if (./conftest; exit) 2>/dev/null; then
8752 ac_cv_prog_cc_cross=no
8753 else
8754 ac_cv_prog_cc_cross=yes
8755 fi
8756else
8757 echo "configure: failed program was:" >&5
8758 cat conftest.$ac_ext >&5
8759 ac_cv_prog_cc_works=no
8760fi
8761rm -fr conftest*
8762ac_ext=c
8763# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8764ac_cpp='$CPP $CPPFLAGS'
8765ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8766ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8767cross_compiling=$ac_cv_prog_cc_cross
8768
8769echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8770if test $ac_cv_prog_cc_works = no; then
8771 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8772fi
8773echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8774echo "configure:8775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8775echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8776cross_compiling=$ac_cv_prog_cc_cross
8777
8778echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8779echo "configure:8780: checking whether we are using GNU C" >&5
8780if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782else
8783 cat > conftest.c <<EOF
8784#ifdef __GNUC__
8785 yes;
8786#endif
8787EOF
8788if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8789 ac_cv_prog_gcc=yes
8790else
8791 ac_cv_prog_gcc=no
8792fi
8793fi
8794
8795echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8796
8797if test $ac_cv_prog_gcc = yes; then
8798 GCC=yes
8799else
8800 GCC=
8801fi
8802
8803ac_test_CFLAGS="${CFLAGS+set}"
8804ac_save_CFLAGS="$CFLAGS"
8805CFLAGS=
8806echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8807echo "configure:8808: checking whether ${CC-cc} accepts -g" >&5
8808if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8809 echo $ac_n "(cached) $ac_c" 1>&6
8810else
8811 echo 'void f(){}' > conftest.c
8812if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8813 ac_cv_prog_cc_g=yes
8814else
8815 ac_cv_prog_cc_g=no
8816fi
8817rm -f conftest*
8818
8819fi
8820
8821echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8822if test "$ac_test_CFLAGS" = set; then
8823 CFLAGS="$ac_save_CFLAGS"
8824elif test $ac_cv_prog_cc_g = yes; then
8825 if test "$GCC" = yes; then
8826 CFLAGS="-g -O2"
8827 else
8828 CFLAGS="-g"
8829 fi
8830else
8831 if test "$GCC" = yes; then
8832 CFLAGS="-O2"
8833 else
8834 CFLAGS=
8835 fi
8836fi
8837
8838
8839CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8840
8841echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8842echo "configure:8843: checking how to run the C preprocessor" >&5
8843# On Suns, sometimes $CPP names a directory.
8844if test -n "$CPP" && test -d "$CPP"; then
8845 CPP=
8846fi
8847if test -z "$CPP"; then
8848if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8849 echo $ac_n "(cached) $ac_c" 1>&6
8850else
8851 # This must be in double quotes, not single quotes, because CPP may get
8852 # substituted into the Makefile and "${CC-cc}" will confuse make.
8853 CPP="${CC-cc} -E"
8854 # On the NeXT, cc -E runs the code through the compiler's parser,
8855 # not just through cpp.
8856 cat > conftest.$ac_ext <<EOF
8857#line 8858 "configure"
8858#include "confdefs.h"
8859#include <assert.h>
8860Syntax Error
8861EOF
8862ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8863{ (eval echo configure:8864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8864ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8865if test -z "$ac_err"; then
8866 :
8867else
8868 echo "$ac_err" >&5
8869 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8871 rm -rf conftest*
8872 CPP="${CC-cc} -E -traditional-cpp"
8873 cat > conftest.$ac_ext <<EOF
8874#line 8875 "configure"
8875#include "confdefs.h"
8876#include <assert.h>
8877Syntax Error
8878EOF
8879ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8880{ (eval echo configure:8881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8881ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8882if test -z "$ac_err"; then
8883 :
8884else
8885 echo "$ac_err" >&5
8886 echo "configure: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8888 rm -rf conftest*
8889 CPP="${CC-cc} -nologo -E"
8890 cat > conftest.$ac_ext <<EOF
8891#line 8892 "configure"
8892#include "confdefs.h"
8893#include <assert.h>
8894Syntax Error
8895EOF
8896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8897{ (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8899if test -z "$ac_err"; then
8900 :
8901else
8902 echo "$ac_err" >&5
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -rf conftest*
8906 CPP=/lib/cpp
8907fi
8908rm -f conftest*
8909fi
8910rm -f conftest*
8911fi
8912rm -f conftest*
8913 ac_cv_prog_CPP="$CPP"
8914fi
8915 CPP="$ac_cv_prog_CPP"
8916else
8917 ac_cv_prog_CPP="$CPP"
8918fi
8919echo "$ac_t""$CPP" 1>&6
8920
8921if test $ac_cv_prog_gcc = yes; then
8922 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8923echo "configure:8924: checking whether ${CC-cc} needs -traditional" >&5
8924if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8926else
8927 ac_pattern="Autoconf.*'x'"
8928 cat > conftest.$ac_ext <<EOF
8929#line 8930 "configure"
8930#include "confdefs.h"
8931#include <sgtty.h>
8932Autoconf TIOCGETP
8933EOF
8934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8935 egrep "$ac_pattern" >/dev/null 2>&1; then
8936 rm -rf conftest*
8937 ac_cv_prog_gcc_traditional=yes
8938else
8939 rm -rf conftest*
8940 ac_cv_prog_gcc_traditional=no
8941fi
8942rm -f conftest*
8943
8944
8945 if test $ac_cv_prog_gcc_traditional = no; then
8946 cat > conftest.$ac_ext <<EOF
8947#line 8948 "configure"
8948#include "confdefs.h"
8949#include <termio.h>
8950Autoconf TCGETA
8951EOF
8952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8953 egrep "$ac_pattern" >/dev/null 2>&1; then
8954 rm -rf conftest*
8955 ac_cv_prog_gcc_traditional=yes
8956fi
8957rm -f conftest*
8958
8959 fi
8960fi
8961
8962echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8963 if test $ac_cv_prog_gcc_traditional = yes; then
8964 CC="$CC -traditional"
8965 fi
8966fi
8967
8968
8969
8970ac_ext=C
8971# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8972ac_cpp='$CXXCPP $CPPFLAGS'
8973ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8974ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8975cross_compiling=$ac_cv_prog_cxx_cross
8976
8977
8978for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8979do
8980# Extract the first word of "$ac_prog", so it can be a program name with args.
8981set dummy $ac_prog; ac_word=$2
8982echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8983echo "configure:8984: checking for $ac_word" >&5
8984if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986else
8987 if test -n "$CXX"; then
8988 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8989else
8990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8991 ac_dummy="$PATH"
8992 for ac_dir in $ac_dummy; do
8993 test -z "$ac_dir" && ac_dir=.
8994 if test -f $ac_dir/$ac_word; then
8995 ac_cv_prog_CXX="$ac_prog"
8996 break
8997 fi
8998 done
8999 IFS="$ac_save_ifs"
9000fi
9001fi
9002CXX="$ac_cv_prog_CXX"
9003if test -n "$CXX"; then
9004 echo "$ac_t""$CXX" 1>&6
9005else
9006 echo "$ac_t""no" 1>&6
9007fi
9008
9009test -n "$CXX" && break
9010done
9011test -n "$CXX" || CXX="gcc"
9012
9013
9014echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9015echo "configure:9016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9016
9017ac_ext=C
9018# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9019ac_cpp='$CXXCPP $CPPFLAGS'
9020ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9021ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9022cross_compiling=$ac_cv_prog_cxx_cross
9023
9024cat > conftest.$ac_ext << EOF
9025
9026#line 9027 "configure"
9027#include "confdefs.h"
9028
9029int main(){return(0);}
9030EOF
9031if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9032 ac_cv_prog_cxx_works=yes
9033 # If we can't run a trivial program, we are probably using a cross compiler.
9034 if (./conftest; exit) 2>/dev/null; then
9035 ac_cv_prog_cxx_cross=no
9036 else
9037 ac_cv_prog_cxx_cross=yes
9038 fi
9039else
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 ac_cv_prog_cxx_works=no
9043fi
9044rm -fr conftest*
9045ac_ext=C
9046# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9047ac_cpp='$CXXCPP $CPPFLAGS'
9048ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9049ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9050cross_compiling=$ac_cv_prog_cxx_cross
9051
9052echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9053if test $ac_cv_prog_cxx_works = no; then
9054 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9055fi
9056echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9057echo "configure:9058: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9058echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9059cross_compiling=$ac_cv_prog_cxx_cross
9060
9061echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9062echo "configure:9063: checking whether we are using GNU C++" >&5
9063if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9065else
9066 cat > conftest.C <<EOF
9067#ifdef __GNUC__
9068 yes;
9069#endif
9070EOF
9071if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9072 ac_cv_prog_gxx=yes
9073else
9074 ac_cv_prog_gxx=no
9075fi
9076fi
9077
9078echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9079
9080if test $ac_cv_prog_gxx = yes; then
9081 GXX=yes
9082else
9083 GXX=
9084fi
9085
9086ac_test_CXXFLAGS="${CXXFLAGS+set}"
9087ac_save_CXXFLAGS="$CXXFLAGS"
9088CXXFLAGS=
9089echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9090echo "configure:9091: checking whether ${CXX-g++} accepts -g" >&5
9091if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093else
9094 echo 'void f(){}' > conftest.cc
9095if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9096 ac_cv_prog_cxx_g=yes
9097else
9098 ac_cv_prog_cxx_g=no
9099fi
9100rm -f conftest*
9101
9102fi
9103
9104echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9105if test "$ac_test_CXXFLAGS" = set; then
9106 CXXFLAGS="$ac_save_CXXFLAGS"
9107elif test $ac_cv_prog_cxx_g = yes; then
9108 if test "$GXX" = yes; then
9109 CXXFLAGS="-g -O2"
9110 else
9111 CXXFLAGS="-g"
9112 fi
9113else
9114 if test "$GXX" = yes; then
9115 CXXFLAGS="-O2"
9116 else
9117 CXXFLAGS=
9118 fi
9119fi
9120
9121
9122CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9123
9124ac_ext=c
9125# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9126ac_cpp='$CPP $CPPFLAGS'
9127ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9128ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9129cross_compiling=$ac_cv_prog_cc_cross
9130
9131
9132# Extract the first word of "ranlib", so it can be a program name with args.
9133set dummy ranlib; ac_word=$2
9134echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9135echo "configure:9136: checking for $ac_word" >&5
9136if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
9138else
9139 if test -n "$RANLIB"; then
9140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9141else
9142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9143 ac_dummy="$PATH"
9144 for ac_dir in $ac_dummy; do
9145 test -z "$ac_dir" && ac_dir=.
9146 if test -f $ac_dir/$ac_word; then
9147 ac_cv_prog_RANLIB="ranlib"
9148 break
9149 fi
9150 done
9151 IFS="$ac_save_ifs"
9152 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9153fi
9154fi
9155RANLIB="$ac_cv_prog_RANLIB"
9156if test -n "$RANLIB"; then
9157 echo "$ac_t""$RANLIB" 1>&6
9158else
9159 echo "$ac_t""no" 1>&6
9160fi
9161
9162
9163# Extract the first word of "ar", so it can be a program name with args.
9164set dummy ar; ac_word=$2
9165echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9166echo "configure:9167: checking for $ac_word" >&5
9167if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169else
9170 if test -n "$AR"; then
9171 ac_cv_prog_AR="$AR" # Let the user override the test.
9172else
9173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9174 ac_dummy="$PATH"
9175 for ac_dir in $ac_dummy; do
9176 test -z "$ac_dir" && ac_dir=.
9177 if test -f $ac_dir/$ac_word; then
9178 ac_cv_prog_AR="ar"
9179 break
9180 fi
9181 done
9182 IFS="$ac_save_ifs"
9183 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9184fi
9185fi
9186AR="$ac_cv_prog_AR"
9187if test -n "$AR"; then
9188 echo "$ac_t""$AR" 1>&6
9189else
9190 echo "$ac_t""no" 1>&6
9191fi
9192
9193
9194# Find a good install program. We prefer a C program (faster),
9195# so one script is as good as another. But avoid the broken or
9196# incompatible versions:
9197# SysV /etc/install, /usr/sbin/install
9198# SunOS /usr/etc/install
9199# IRIX /sbin/install
9200# AIX /bin/install
9201# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9202# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9203# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9204# ./install, which can be erroneously created by make from ./install.sh.
9205echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9206echo "configure:9207: checking for a BSD compatible install" >&5
9207if test -z "$INSTALL"; then
9208if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9210else
9211 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9212 for ac_dir in $PATH; do
9213 # Account for people who put trailing slashes in PATH elements.
9214 case "$ac_dir/" in
9215 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9216 *)
9217 # OSF1 and SCO ODT 3.0 have their own names for install.
9218 # Don't use installbsd from OSF since it installs stuff as root
9219 # by default.
9220 for ac_prog in ginstall scoinst install; do
9221 if test -f $ac_dir/$ac_prog; then
9222 if test $ac_prog = install &&
9223 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9224 # AIX install. It has an incompatible calling convention.
9225 :
9226 else
9227 ac_cv_path_install="$ac_dir/$ac_prog -c"
9228 break 2
9229 fi
9230 fi
9231 done
9232 ;;
9233 esac
9234 done
9235 IFS="$ac_save_IFS"
9236
9237fi
9238 if test "${ac_cv_path_install+set}" = set; then
9239 INSTALL="$ac_cv_path_install"
9240 else
9241 # As a last resort, use the slow shell script. We don't cache a
9242 # path for INSTALL within a source directory, because that will
9243 # break other packages using the cache if that directory is
9244 # removed, or if the path is relative.
9245 INSTALL="$ac_install_sh"
9246 fi
9247fi
9248echo "$ac_t""$INSTALL" 1>&6
9249
9250# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9251# It thinks the first close brace ends the variable substitution.
9252test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9253
9254test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9255
9256test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9257
9258case "${host}" in
9259
9260 powerpc-*-darwin* )
9261 INSTALL_PROGRAM="cp -fp"
9262 INSTALL_DATA="cp -fp"
9263 ;;
9264 *)
9265 ;;
9266esac
9267
9268# Extract the first word of "strip", so it can be a program name with args.
9269set dummy strip; ac_word=$2
9270echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9271echo "configure:9272: checking for $ac_word" >&5
9272if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9274else
9275 if test -n "$STRIP"; then
9276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9277else
9278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9279 ac_dummy="$PATH"
9280 for ac_dir in $ac_dummy; do
9281 test -z "$ac_dir" && ac_dir=.
9282 if test -f $ac_dir/$ac_word; then
9283 ac_cv_prog_STRIP="strip"
9284 break
9285 fi
9286 done
9287 IFS="$ac_save_ifs"
9288 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9289fi
9290fi
9291STRIP="$ac_cv_prog_STRIP"
9292if test -n "$STRIP"; then
9293 echo "$ac_t""$STRIP" 1>&6
9294else
9295 echo "$ac_t""no" 1>&6
9296fi
9297
9298
9299echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9300echo "configure:9301: checking if make is GNU make" >&5
9301if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9303else
9304
9305 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9306 egrep -s GNU > /dev/null); then
9307 wx_cv_prog_makeisgnu="yes"
9308 else
9309 wx_cv_prog_makeisgnu="no"
9310 fi
9311
9312fi
9313
9314echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9315
9316if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9317 IF_GNU_MAKE=""
9318else
9319 IF_GNU_MAKE="#"
9320fi
9321
9322
9323
9324if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9325echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9326echo "configure:9327: checking if make supports VPATH" >&5
9327if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9329else
9330
9331cat - << EOF > confMake
9332check : file
9333 cp \$? \$@
9334 cp \$? final_file
9335EOF
9336
9337if test ! -d sub ; then
9338 mkdir sub
9339fi
9340echo dummy > sub/file
9341${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9342RESULT=$?
9343rm -f sub/file check final_file confMake
9344rmdir sub
9345if test "$RESULT" = 0; then
9346 wx_cv_prog_makevpath="yes"
9347else
9348 wx_cv_prog_makevpath="no"
9349fi
9350
9351fi
9352
9353echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9354
9355if test "x$wx_cv_prog_makevpath" != "xyes"; then
9356{ echo "configure: error:
9357You need a make-utility that is able to use the variable
9358VPATH correctly.
9359If your version of make does not support VPATH correctly,
9360please install GNU-make (possibly as gmake), and start
9361configure with the following command:
9362export MAKE=gmake; ./configure for sh-type shells
9363setenv MAKE gmake; ./configure for csh-type shells
9364Also please do remember to use gmake in this case every time
9365you are trying to compile.
9366" 1>&2; exit 1; }
9367fi fi
9368for ac_prog in 'bison -y' byacc
9369do
9370# Extract the first word of "$ac_prog", so it can be a program name with args.
9371set dummy $ac_prog; ac_word=$2
9372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9373echo "configure:9374: checking for $ac_word" >&5
9374if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376else
9377 if test -n "$YACC"; then
9378 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9379else
9380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9381 ac_dummy="$PATH"
9382 for ac_dir in $ac_dummy; do
9383 test -z "$ac_dir" && ac_dir=.
9384 if test -f $ac_dir/$ac_word; then
9385 ac_cv_prog_YACC="$ac_prog"
9386 break
9387 fi
9388 done
9389 IFS="$ac_save_ifs"
9390fi
9391fi
9392YACC="$ac_cv_prog_YACC"
9393if test -n "$YACC"; then
9394 echo "$ac_t""$YACC" 1>&6
9395else
9396 echo "$ac_t""no" 1>&6
9397fi
9398
9399test -n "$YACC" && break
9400done
9401test -n "$YACC" || YACC="yacc"
9402
9403
9404# Extract the first word of "flex", so it can be a program name with args.
9405set dummy flex; ac_word=$2
9406echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9407echo "configure:9408: checking for $ac_word" >&5
9408if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9410else
9411 if test -n "$LEX"; then
9412 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9413else
9414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9415 ac_dummy="$PATH"
9416 for ac_dir in $ac_dummy; do
9417 test -z "$ac_dir" && ac_dir=.
9418 if test -f $ac_dir/$ac_word; then
9419 ac_cv_prog_LEX="flex"
9420 break
9421 fi
9422 done
9423 IFS="$ac_save_ifs"
9424 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9425fi
9426fi
9427LEX="$ac_cv_prog_LEX"
9428if test -n "$LEX"; then
9429 echo "$ac_t""$LEX" 1>&6
9430else
9431 echo "$ac_t""no" 1>&6
9432fi
9433
9434if test -z "$LEXLIB"
9435then
9436 case "$LEX" in
9437 flex*) ac_lib=fl ;;
9438 *) ac_lib=l ;;
9439 esac
9440 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9441echo "configure:9442: checking for yywrap in -l$ac_lib" >&5
9442ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9443if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9445else
9446 ac_save_LIBS="$LIBS"
9447LIBS="-l$ac_lib $LIBS"
9448cat > conftest.$ac_ext <<EOF
9449#line 9450 "configure"
9450#include "confdefs.h"
9451/* Override any gcc2 internal prototype to avoid an error. */
9452/* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9454char yywrap();
9455
9456int main() {
9457yywrap()
9458; return 0; }
9459EOF
9460if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9461 rm -rf conftest*
9462 eval "ac_cv_lib_$ac_lib_var=yes"
9463else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 eval "ac_cv_lib_$ac_lib_var=no"
9468fi
9469rm -f conftest*
9470LIBS="$ac_save_LIBS"
9471
9472fi
9473if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9474 echo "$ac_t""yes" 1>&6
9475 LEXLIB="-l$ac_lib"
9476else
9477 echo "$ac_t""no" 1>&6
9478fi
9479
9480fi
9481
9482
9483echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9484echo "configure:9485: checking whether ln -s works" >&5
9485if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9486 echo $ac_n "(cached) $ac_c" 1>&6
9487else
9488 rm -f conftestdata
9489if ln -s X conftestdata 2>/dev/null
9490then
9491 rm -f conftestdata
9492 ac_cv_prog_LN_S="ln -s"
9493else
9494 ac_cv_prog_LN_S=ln
9495fi
9496fi
9497LN_S="$ac_cv_prog_LN_S"
9498if test "$ac_cv_prog_LN_S" = "ln -s"; then
9499 echo "$ac_t""yes" 1>&6
9500else
9501 echo "$ac_t""no" 1>&6
9502fi
9503
9504
9505
9506SEARCH_INCLUDE="\
9507 /usr/local/include \
9508 \
9509 /usr/Motif-1.2/include \
9510 /usr/Motif-2.1/include \
9511 \
9512 /usr/include/Motif1.2 \
9513 /opt/xpm/include/X11 \
9514 /opt/GBxpm/include/ \
9515 /opt/GBxpm/X11/include/ \
9516 \
9517 /usr/Motif1.2/include \
9518 /usr/dt/include \
9519 /usr/openwin/include \
9520 \
9521 /usr/include/Xm \
9522 \
9523 /usr/X11R6/include \
9524 /usr/X11R6.4/include \
9525 /usr/X11R5/include \
9526 /usr/X11R4/include \
9527 \
9528 /usr/include/X11R6 \
9529 /usr/include/X11R5 \
9530 /usr/include/X11R4 \
9531 \
9532 /usr/local/X11R6/include \
9533 /usr/local/X11R5/include \
9534 /usr/local/X11R4/include \
9535 \
9536 /usr/local/include/X11R6 \
9537 /usr/local/include/X11R5 \
9538 /usr/local/include/X11R4 \
9539 \
9540 /usr/X11/include \
9541 /usr/include/X11 \
9542 /usr/local/X11/include \
9543 /usr/local/include/X11 \
9544 \
9545 /usr/X386/include \
9546 /usr/x386/include \
9547 /usr/XFree86/include/X11 \
9548 \
9549 X:/XFree86/include \
9550 X:/XFree86/include/X11 \
9551 \
9552 /usr/include/gtk \
9553 /usr/local/include/gtk \
9554 /usr/include/glib \
9555 /usr/local/include/glib \
9556 \
9557 /usr/include/qt \
9558 /usr/local/include/qt \
9559 \
9560 /usr/include/windows \
9561 /usr/include/wine \
9562 /usr/local/include/wine \
9563 \
9564 /usr/unsupported/include \
9565 /usr/athena/include \
9566 /usr/local/x11r5/include \
9567 /usr/lpp/Xamples/include \
9568 \
9569 /usr/openwin/share/include \
9570 \
9571 /usr/include"
9572
9573SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9574
9575
9576cat > confcache <<\EOF
9577# This file is a shell script that caches the results of configure
9578# tests run on this system so they can be shared between configure
9579# scripts and configure runs. It is not useful on other systems.
9580# If it contains results you don't want to keep, you may remove or edit it.
9581#
9582# By default, configure uses ./config.cache as the cache file,
9583# creating it if it does not exist already. You can give configure
9584# the --cache-file=FILE option to use a different cache file; that is
9585# what configure does when it calls configure scripts in
9586# subdirectories, so they share the cache.
9587# Giving --cache-file=/dev/null disables caching, for debugging configure.
9588# config.status only pays attention to the cache file if you give it the
9589# --recheck option to rerun configure.
9590#
9591EOF
9592# The following way of writing the cache mishandles newlines in values,
9593# but we know of no workaround that is simple, portable, and efficient.
9594# So, don't put newlines in cache variables' values.
9595# Ultrix sh set writes to stderr and can't be redirected directly,
9596# and sets the high bit in the cache file unless we assign to the vars.
9597(set) 2>&1 |
9598 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9599 *ac_space=\ *)
9600 # `set' does not quote correctly, so add quotes (double-quote substitution
9601 # turns \\\\ into \\, and sed turns \\ into \).
9602 sed -n \
9603 -e "s/'/'\\\\''/g" \
9604 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9605 ;;
9606 *)
9607 # `set' quotes correctly as required by POSIX, so do not add quotes.
9608 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9609 ;;
9610 esac >> confcache
9611if cmp -s $cache_file confcache; then
9612 :
9613else
9614 if test -w $cache_file; then
9615 echo "updating cache $cache_file"
9616 cat confcache > $cache_file
9617 else
9618 echo "not updating unwritable cache $cache_file"
9619 fi
9620fi
9621rm -f confcache
9622
9623
9624
9625
9626REGEX_INCLUDE=
9627if test "$wxUSE_REGEX" != "no"; then
9628 cat >> confdefs.h <<\EOF
9629#define wxUSE_REGEX 1
9630EOF
9631
9632
9633 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9634 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9635echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9636echo "configure:9637: checking for regex.h" >&5
9637if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9638 echo $ac_n "(cached) $ac_c" 1>&6
9639else
9640 cat > conftest.$ac_ext <<EOF
9641#line 9642 "configure"
9642#include "confdefs.h"
9643#include <regex.h>
9644EOF
9645ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9646{ (eval echo configure:9647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9647ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9648if test -z "$ac_err"; then
9649 rm -rf conftest*
9650 eval "ac_cv_header_$ac_safe=yes"
9651else
9652 echo "$ac_err" >&5
9653 echo "configure: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 rm -rf conftest*
9656 eval "ac_cv_header_$ac_safe=no"
9657fi
9658rm -f conftest*
9659fi
9660if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9661 echo "$ac_t""yes" 1>&6
9662 for ac_func in regcomp
9663do
9664echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9665echo "configure:9666: checking for $ac_func" >&5
9666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9668else
9669 cat > conftest.$ac_ext <<EOF
9670#line 9671 "configure"
9671#include "confdefs.h"
9672/* System header to define __stub macros and hopefully few prototypes,
9673 which can conflict with char $ac_func(); below. */
9674#include <assert.h>
9675/* Override any gcc2 internal prototype to avoid an error. */
9676/* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678char $ac_func();
9679
9680int main() {
9681
9682/* The GNU C library defines this for functions which it implements
9683 to always fail with ENOSYS. Some functions are actually named
9684 something starting with __ and the normal name is an alias. */
9685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9686choke me
9687#else
9688$ac_func();
9689#endif
9690
9691; return 0; }
9692EOF
9693if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9694 rm -rf conftest*
9695 eval "ac_cv_func_$ac_func=yes"
9696else
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 rm -rf conftest*
9700 eval "ac_cv_func_$ac_func=no"
9701fi
9702rm -f conftest*
9703fi
9704
9705if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9706 echo "$ac_t""yes" 1>&6
9707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9708 cat >> confdefs.h <<EOF
9709#define $ac_tr_func 1
9710EOF
9711
9712else
9713 echo "$ac_t""no" 1>&6
9714fi
9715done
9716
9717else
9718 echo "$ac_t""no" 1>&6
9719fi
9720
9721
9722 if test "x$ac_cv_func_regcomp" != "xyes"; then
9723 if test "$wxUSE_REGEX" = "sys" ; then
9724 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9725 else
9726 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9727 wxUSE_REGEX=builtin
9728 fi
9729 else
9730 wxUSE_REGEX=sys
9731 fi
9732 fi
9733
9734 if test "$wxUSE_REGEX" = "builtin" ; then
9735 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9736 fi
9737fi
9738
9739
9740ZLIB_INCLUDE=
9741ZLIB_LINK=
9742if test "$wxUSE_ZLIB" != "no" ; then
9743 cat >> confdefs.h <<\EOF
9744#define wxUSE_ZLIB 1
9745EOF
9746
9747
9748 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9749 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9750echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9751echo "configure:9752: checking for zlib.h" >&5
9752if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9754else
9755 cat > conftest.$ac_ext <<EOF
9756#line 9757 "configure"
9757#include "confdefs.h"
9758#include <zlib.h>
9759EOF
9760ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9761{ (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9762ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9763if test -z "$ac_err"; then
9764 rm -rf conftest*
9765 eval "ac_cv_header_$ac_safe=yes"
9766else
9767 echo "$ac_err" >&5
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -rf conftest*
9771 eval "ac_cv_header_$ac_safe=no"
9772fi
9773rm -f conftest*
9774fi
9775if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9778echo "configure:9779: checking for deflate in -lz" >&5
9779ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9780if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9781 echo $ac_n "(cached) $ac_c" 1>&6
9782else
9783 ac_save_LIBS="$LIBS"
9784LIBS="-lz $LIBS"
9785cat > conftest.$ac_ext <<EOF
9786#line 9787 "configure"
9787#include "confdefs.h"
9788/* Override any gcc2 internal prototype to avoid an error. */
9789/* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9791char deflate();
9792
9793int main() {
9794deflate()
9795; return 0; }
9796EOF
9797if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9798 rm -rf conftest*
9799 eval "ac_cv_lib_$ac_lib_var=yes"
9800else
9801 echo "configure: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 rm -rf conftest*
9804 eval "ac_cv_lib_$ac_lib_var=no"
9805fi
9806rm -f conftest*
9807LIBS="$ac_save_LIBS"
9808
9809fi
9810if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9811 echo "$ac_t""yes" 1>&6
9812 ZLIB_LINK=" -lz"
9813else
9814 echo "$ac_t""no" 1>&6
9815fi
9816
9817else
9818 echo "$ac_t""no" 1>&6
9819fi
9820
9821
9822 if test "x$ZLIB_LINK" = "x" ; then
9823 if test "$wxUSE_ZLIB" = "sys" ; then
9824 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9825 else
9826 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9827 wxUSE_ZLIB=builtin
9828 fi
9829 else
9830 wxUSE_ZLIB=sys
9831 fi
9832 fi
9833
9834 if test "$wxUSE_ZLIB" = "builtin" ; then
9835 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9836 fi
9837fi
9838
9839
9840PNG_INCLUDE=
9841PNG_LINK=
9842if test "$wxUSE_LIBPNG" != "no" ; then
9843 cat >> confdefs.h <<\EOF
9844#define wxUSE_LIBPNG 1
9845EOF
9846
9847
9848 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9849 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9850 wxUSE_LIBPNG=sys
9851 fi
9852
9853 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9854 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9855 wxUSE_LIBPNG=builtin
9856 fi
9857
9858 if test "$wxUSE_MGL" != 1 ; then
9859 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9860 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9861echo $ac_n "checking for png.h""... $ac_c" 1>&6
9862echo "configure:9863: checking for png.h" >&5
9863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9864 echo $ac_n "(cached) $ac_c" 1>&6
9865else
9866 cat > conftest.$ac_ext <<EOF
9867#line 9868 "configure"
9868#include "confdefs.h"
9869#include <png.h>
9870EOF
9871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9872{ (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9874if test -z "$ac_err"; then
9875 rm -rf conftest*
9876 eval "ac_cv_header_$ac_safe=yes"
9877else
9878 echo "$ac_err" >&5
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 rm -rf conftest*
9882 eval "ac_cv_header_$ac_safe=no"
9883fi
9884rm -f conftest*
9885fi
9886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9887 echo "$ac_t""yes" 1>&6
9888 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9889echo "configure:9890: checking for png_check_sig in -lpng" >&5
9890ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9891if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9892 echo $ac_n "(cached) $ac_c" 1>&6
9893else
9894 ac_save_LIBS="$LIBS"
9895LIBS="-lpng -lz -lm $LIBS"
9896cat > conftest.$ac_ext <<EOF
9897#line 9898 "configure"
9898#include "confdefs.h"
9899/* Override any gcc2 internal prototype to avoid an error. */
9900/* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9902char png_check_sig();
9903
9904int main() {
9905png_check_sig()
9906; return 0; }
9907EOF
9908if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9909 rm -rf conftest*
9910 eval "ac_cv_lib_$ac_lib_var=yes"
9911else
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9914 rm -rf conftest*
9915 eval "ac_cv_lib_$ac_lib_var=no"
9916fi
9917rm -f conftest*
9918LIBS="$ac_save_LIBS"
9919
9920fi
9921if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9922 echo "$ac_t""yes" 1>&6
9923 PNG_LINK=" -lpng"
9924else
9925 echo "$ac_t""no" 1>&6
9926fi
9927
9928
9929else
9930 echo "$ac_t""no" 1>&6
9931fi
9932
9933
9934 if test "x$PNG_LINK" = "x" ; then
9935 if test "$wxUSE_LIBPNG" = "sys" ; then
9936 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9937 else
9938 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9939 wxUSE_LIBPNG=builtin
9940 fi
9941 else
9942 wxUSE_LIBPNG=yes
9943 fi
9944 fi
9945 fi
9946
9947 if test "$wxUSE_LIBPNG" = "builtin" ; then
9948 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9949 fi
9950
9951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9952fi
9953
9954
9955JPEG_INCLUDE=
9956JPEG_LINK=
9957if test "$wxUSE_LIBJPEG" != "no" ; then
9958 cat >> confdefs.h <<\EOF
9959#define wxUSE_LIBJPEG 1
9960EOF
9961
9962
9963 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9964 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9965 wxUSE_LIBJPEG=sys
9966 fi
9967
9968 if test "$wxUSE_MGL" != 1 ; then
9969 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9970 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9971echo "configure:9972: checking for jpeglib.h" >&5
9972 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974else
9975 cat > conftest.$ac_ext <<EOF
9976#line 9977 "configure"
9977#include "confdefs.h"
9978
9979 #undef HAVE_STDLIB_H
9980 #include <stdio.h>
9981 #include <jpeglib.h>
9982
9983int main() {
9984
9985
9986; return 0; }
9987EOF
9988if { (eval echo configure:9989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9989 rm -rf conftest*
9990 ac_cv_header_jpeglib_h=yes
9991else
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 rm -rf conftest*
9995 ac_cv_header_jpeglib_h=no
9996
9997fi
9998rm -f conftest*
9999
10000fi
10001
10002 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
10003
10004 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10005 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
10006echo "configure:10007: checking for jpeg_read_header in -ljpeg" >&5
10007ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010else
10011 ac_save_LIBS="$LIBS"
10012LIBS="-ljpeg $LIBS"
10013cat > conftest.$ac_ext <<EOF
10014#line 10015 "configure"
10015#include "confdefs.h"
10016/* Override any gcc2 internal prototype to avoid an error. */
10017/* We use char because int might match the return type of a gcc2
10018 builtin and then its argument prototype would still apply. */
10019char jpeg_read_header();
10020
10021int main() {
10022jpeg_read_header()
10023; return 0; }
10024EOF
10025if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026 rm -rf conftest*
10027 eval "ac_cv_lib_$ac_lib_var=yes"
10028else
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 rm -rf conftest*
10032 eval "ac_cv_lib_$ac_lib_var=no"
10033fi
10034rm -f conftest*
10035LIBS="$ac_save_LIBS"
10036
10037fi
10038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10039 echo "$ac_t""yes" 1>&6
10040 JPEG_LINK=" -ljpeg"
10041else
10042 echo "$ac_t""no" 1>&6
10043fi
10044
10045 fi
10046
10047 if test "x$JPEG_LINK" = "x" ; then
10048 if test "$wxUSE_LIBJPEG" = "sys" ; then
10049 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10050 else
10051 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10052 wxUSE_LIBJPEG=builtin
10053 fi
10054 else
10055 wxUSE_LIBJPEG=sys
10056 fi
10057 fi
10058 fi
10059
10060 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10061 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10062 fi
10063fi
10064
10065
10066TIFF_INCLUDE=
10067TIFF_LINK=
10068if test "$wxUSE_LIBTIFF" != "no" ; then
10069 cat >> confdefs.h <<\EOF
10070#define wxUSE_LIBTIFF 1
10071EOF
10072
10073
10074 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10075 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10076echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10077echo "configure:10078: checking for tiffio.h" >&5
10078if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10080else
10081 cat > conftest.$ac_ext <<EOF
10082#line 10083 "configure"
10083#include "confdefs.h"
10084#include <tiffio.h>
10085EOF
10086ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10087{ (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10088ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10089if test -z "$ac_err"; then
10090 rm -rf conftest*
10091 eval "ac_cv_header_$ac_safe=yes"
10092else
10093 echo "$ac_err" >&5
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 rm -rf conftest*
10097 eval "ac_cv_header_$ac_safe=no"
10098fi
10099rm -f conftest*
10100fi
10101if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10102 echo "$ac_t""yes" 1>&6
10103 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10104echo "configure:10105: checking for TIFFError in -ltiff" >&5
10105ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10106if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10108else
10109 ac_save_LIBS="$LIBS"
10110LIBS="-ltiff -lm $LIBS"
10111cat > conftest.$ac_ext <<EOF
10112#line 10113 "configure"
10113#include "confdefs.h"
10114/* Override any gcc2 internal prototype to avoid an error. */
10115/* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10117char TIFFError();
10118
10119int main() {
10120TIFFError()
10121; return 0; }
10122EOF
10123if { (eval echo configure:10124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10124 rm -rf conftest*
10125 eval "ac_cv_lib_$ac_lib_var=yes"
10126else
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 eval "ac_cv_lib_$ac_lib_var=no"
10131fi
10132rm -f conftest*
10133LIBS="$ac_save_LIBS"
10134
10135fi
10136if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10137 echo "$ac_t""yes" 1>&6
10138 TIFF_LINK=" -ltiff"
10139else
10140 echo "$ac_t""no" 1>&6
10141fi
10142
10143
10144else
10145 echo "$ac_t""no" 1>&6
10146fi
10147
10148
10149 if test "x$TIFF_LINK" = "x" ; then
10150 if test "$wxUSE_LIBTIFF" = "sys" ; then
10151 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10152 else
10153 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10154 wxUSE_LIBTIFF=builtin
10155 fi
10156 else
10157 wxUSE_LIBTIFF=sys
10158 fi
10159 fi
10160
10161 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10162 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10163 fi
10164fi
10165
10166
10167AFMINSTALL=
10168
10169TOOLKIT=
10170TOOLKIT_INCLUDE=
10171WIDGET_SET=
10172
10173if test "$USE_WIN32" = 1 ; then
10174 for ac_hdr in w32api.h
10175do
10176ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10177echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10178echo "configure:10179: checking for $ac_hdr" >&5
10179if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10181else
10182 cat > conftest.$ac_ext <<EOF
10183#line 10184 "configure"
10184#include "confdefs.h"
10185#include <$ac_hdr>
10186EOF
10187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10188{ (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10190if test -z "$ac_err"; then
10191 rm -rf conftest*
10192 eval "ac_cv_header_$ac_safe=yes"
10193else
10194 echo "$ac_err" >&5
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 rm -rf conftest*
10198 eval "ac_cv_header_$ac_safe=no"
10199fi
10200rm -f conftest*
10201fi
10202if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10203 echo "$ac_t""yes" 1>&6
10204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10205 cat >> confdefs.h <<EOF
10206#define $ac_tr_hdr 1
10207EOF
10208
10209else
10210 echo "$ac_t""no" 1>&6
10211fi
10212done
10213
10214 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10215echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10216echo "configure:10217: checking for windows.h" >&5
10217if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10218 echo $ac_n "(cached) $ac_c" 1>&6
10219else
10220 cat > conftest.$ac_ext <<EOF
10221#line 10222 "configure"
10222#include "confdefs.h"
10223#include <windows.h>
10224EOF
10225ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10226{ (eval echo configure:10227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10227ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10228if test -z "$ac_err"; then
10229 rm -rf conftest*
10230 eval "ac_cv_header_$ac_safe=yes"
10231else
10232 echo "$ac_err" >&5
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 rm -rf conftest*
10236 eval "ac_cv_header_$ac_safe=no"
10237fi
10238rm -f conftest*
10239fi
10240if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 :
10243else
10244 echo "$ac_t""no" 1>&6
10245
10246 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10247
10248fi
10249
10250
10251 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10252echo "configure:10253: checking if w32api has good enough MSIE support" >&5
10253if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10255else
10256
10257 cat > conftest.$ac_ext <<EOF
10258#line 10259 "configure"
10259#include "confdefs.h"
10260#include <w32api.h>
10261int main() {
10262
10263 #define wxCHECK_W32API_VERSION( major, minor ) \
10264 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10265 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10266 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10267
10268 #if !wxCHECK_W32API_VERSION(1,1)
10269 #error You need w32api 1.1 or newer
10270 #endif
10271
10272; return 0; }
10273EOF
10274if { (eval echo configure:10275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10275 rm -rf conftest*
10276
10277 wx_cv_w32api_win32_ie=yes
10278
10279else
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -rf conftest*
10283
10284 wx_cv_w32api_win32_ie=no
10285
10286fi
10287rm -f conftest*
10288
10289fi
10290
10291echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10292 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10293 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10294 fi
10295
10296 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10297
10298 case "${host}" in
10299 *-*-cygwin* )
10300 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10301 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10302 esac
10303
10304 if test "$wxUSE_ODBC" = "yes" ; then
10305 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10306 fi
10307
10308 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10309 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10310fi
10311
10312if test "$wxUSE_GUI" = "yes"; then
10313 USE_GUI=1
10314
10315 GUI_TK_LIBRARY=
10316
10317 WXGTK12=
10318 WXGTK127=
10319 WXGTK20=
10320
10321 if test "$wxUSE_MSW" = 1 ; then
10322 TOOLKIT=MSW
10323 GUIDIST=MSW_DIST
10324
10325 case "${host}" in
10326 *-*-mingw32* )
10327 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10328 esac
10329 fi
10330
10331 if test "$wxUSE_GTK" = 1; then
10332 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10333echo "configure:10334: checking for GTK+ version" >&5
10334
10335 gtk_version_cached=1
10336 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338else
10339
10340 gtk_version_cached=0
10341 echo "$ac_t""" 1>&6
10342
10343 GTK_MODULES=
10344 if test "$wxUSE_THREADS" = "yes"; then
10345 GTK_MODULES=gthread
10346 fi
10347
10348 wx_cv_lib_gtk=
10349 if test "x$wxUSE_GTK2" = "xyes"; then
10350 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10351if test "${with_gtk_prefix+set}" = set; then
10352 withval="$with_gtk_prefix"
10353 gtk_config_prefix="$withval"
10354else
10355 gtk_config_prefix=""
10356fi
10357
10358# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10359if test "${with_gtk_exec_prefix+set}" = set; then
10360 withval="$with_gtk_exec_prefix"
10361 gtk_config_exec_prefix="$withval"
10362else
10363 gtk_config_exec_prefix=""
10364fi
10365
10366# Check whether --enable-gtktest or --disable-gtktest was given.
10367if test "${enable_gtktest+set}" = set; then
10368 enableval="$enable_gtktest"
10369 :
10370else
10371 enable_gtktest=yes
10372fi
10373
10374
10375 for module in . $GTK_MODULES
10376 do
10377 case "$module" in
10378 gthread)
10379 gtk_config_args="$gtk_config_args gthread"
10380 ;;
10381 esac
10382 done
10383
10384 if test x$gtk_config_exec_prefix != x ; then
10385 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10386 if test x${GTK_CONFIG_2_0+set} != xset ; then
10387 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10388 fi
10389 fi
10390 if test x$gtk_config_prefix != x ; then
10391 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10392 if test x${GTK_CONFIG_2_0+set} != xset ; then
10393 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10394 fi
10395 fi
10396
10397 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10398set dummy gtk-config-2.0; ac_word=$2
10399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10400echo "configure:10401: checking for $ac_word" >&5
10401if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10403else
10404 case "$GTK_CONFIG_2_0" in
10405 /*)
10406 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10407 ;;
10408 ?:/*)
10409 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10410 ;;
10411 *)
10412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10413 ac_dummy="$PATH"
10414 for ac_dir in $ac_dummy; do
10415 test -z "$ac_dir" && ac_dir=.
10416 if test -f $ac_dir/$ac_word; then
10417 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10418 break
10419 fi
10420 done
10421 IFS="$ac_save_ifs"
10422 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10423 ;;
10424esac
10425fi
10426GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10427if test -n "$GTK_CONFIG_2_0"; then
10428 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10429else
10430 echo "$ac_t""no" 1>&6
10431fi
10432
10433 min_gtk_version=1.3.1
10434 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10435echo "configure:10436: checking for GTK - version >= $min_gtk_version" >&5
10436 no_gtk=""
10437 if test "$GTK_CONFIG_2_0" = "no" ; then
10438 no_gtk=yes
10439 else
10440 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10441 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10442 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10444 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10446 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10448 if test "x$enable_gtktest" = "xyes" ; then
10449 ac_save_CFLAGS="$CFLAGS"
10450 ac_save_LIBS="$LIBS"
10451 CFLAGS="$CFLAGS $GTK_CFLAGS"
10452 LIBS="$GTK_LIBS $LIBS"
10453 rm -f conf.gtktest
10454 if test "$cross_compiling" = yes; then
10455 echo $ac_n "cross compiling; assumed OK... $ac_c"
10456else
10457 cat > conftest.$ac_ext <<EOF
10458#line 10459 "configure"
10459#include "confdefs.h"
10460
10461#include <gtk/gtk.h>
10462#include <stdio.h>
10463#include <stdlib.h>
10464
10465int
10466main ()
10467{
10468 int major, minor, micro;
10469 char *tmp_version;
10470
10471 system ("touch conf.gtktest");
10472
10473 /* HP/UX 9 (%@#!) writes to sscanf strings */
10474 tmp_version = g_strdup("$min_gtk_version");
10475 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10476 printf("%s, bad version string\n", "$min_gtk_version");
10477 exit(1);
10478 }
10479
10480 if ((gtk_major_version != $gtk_config_major_version) ||
10481 (gtk_minor_version != $gtk_config_minor_version) ||
10482 (gtk_micro_version != $gtk_config_micro_version))
10483 {
10484 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10485 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10486 gtk_major_version, gtk_minor_version, gtk_micro_version);
10487 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10488 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10489 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10490 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10491 printf("*** required on your system.\n");
10492 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10493 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10494 printf("*** before re-running configure\n");
10495 }
10496#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10497 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10498 (gtk_minor_version != GTK_MINOR_VERSION) ||
10499 (gtk_micro_version != GTK_MICRO_VERSION))
10500 {
10501 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10502 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10503 printf("*** library (version %d.%d.%d)\n",
10504 gtk_major_version, gtk_minor_version, gtk_micro_version);
10505 }
10506#endif /* defined (GTK_MAJOR_VERSION) ... */
10507 else
10508 {
10509 if ((gtk_major_version > major) ||
10510 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10511 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10512 {
10513 return 0;
10514 }
10515 else
10516 {
10517 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10518 gtk_major_version, gtk_minor_version, gtk_micro_version);
10519 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10520 major, minor, micro);
10521 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10522 printf("***\n");
10523 printf("*** If you have already installed a sufficiently new version, this error\n");
10524 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10525 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10526 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10527 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10528 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10529 printf("*** so that the correct libraries are found at run-time))\n");
10530 }
10531 }
10532 return 1;
10533}
10534
10535EOF
10536if { (eval echo configure:10537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10537then
10538 :
10539else
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10542 rm -fr conftest*
10543 no_gtk=yes
10544fi
10545rm -fr conftest*
10546fi
10547
10548 CFLAGS="$ac_save_CFLAGS"
10549 LIBS="$ac_save_LIBS"
10550 fi
10551 fi
10552 if test "x$no_gtk" = x ; then
10553 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10554 wx_cv_lib_gtk=2.0
10555 else
10556 echo "$ac_t""no" 1>&6
10557 if test "$GTK_CONFIG_2_0" = "no" ; then
10558 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10559 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10560 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10561 echo "*** full path to gtk-config-2.0."
10562 else
10563 if test -f conf.gtktest ; then
10564 :
10565 else
10566 echo "*** Could not run GTK test program, checking why..."
10567 CFLAGS="$CFLAGS $GTK_CFLAGS"
10568 LIBS="$LIBS $GTK_LIBS"
10569 cat > conftest.$ac_ext <<EOF
10570#line 10571 "configure"
10571#include "confdefs.h"
10572
10573#include <gtk/gtk.h>
10574#include <stdio.h>
10575
10576int main() {
10577 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10578; return 0; }
10579EOF
10580if { (eval echo configure:10581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10581 rm -rf conftest*
10582 echo "*** The test program compiled, but did not run. This usually means"
10583 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10584 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10585 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10586 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10587 echo "*** is required on your system"
10588 echo "***"
10589 echo "*** If you have an old version installed, it is best to remove it, although"
10590 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10591 echo "***"
10592 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10593 echo "*** came with the system with the command"
10594 echo "***"
10595 echo "*** rpm --erase --nodeps gtk gtk-devel"
10596else
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10599 rm -rf conftest*
10600 echo "*** The test program failed to compile or link. See the file config.log for the"
10601 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10602 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10603 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10604fi
10605rm -f conftest*
10606 CFLAGS="$ac_save_CFLAGS"
10607 LIBS="$ac_save_LIBS"
10608 fi
10609 fi
10610 GTK_CFLAGS=""
10611 GTK_LIBS=""
10612 :
10613 fi
10614
10615
10616 rm -f conf.gtktest
10617
10618 fi
10619
10620 if test -z "$wx_cv_lib_gtk"; then
10621 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10622if test "${with_gtk_prefix+set}" = set; then
10623 withval="$with_gtk_prefix"
10624 gtk_config_prefix="$withval"
10625else
10626 gtk_config_prefix=""
10627fi
10628
10629# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10630if test "${with_gtk_exec_prefix+set}" = set; then
10631 withval="$with_gtk_exec_prefix"
10632 gtk_config_exec_prefix="$withval"
10633else
10634 gtk_config_exec_prefix=""
10635fi
10636
10637# Check whether --enable-gtktest or --disable-gtktest was given.
10638if test "${enable_gtktest+set}" = set; then
10639 enableval="$enable_gtktest"
10640 :
10641else
10642 enable_gtktest=yes
10643fi
10644
10645
10646 for module in . $GTK_MODULES
10647 do
10648 case "$module" in
10649 gthread)
10650 gtk_config_args="$gtk_config_args gthread"
10651 ;;
10652 esac
10653 done
10654
10655 if test x$gtk_config_exec_prefix != x ; then
10656 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10657 if test x${GTK_CONFIG+set} != xset ; then
10658 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10659 fi
10660 fi
10661 if test x$gtk_config_prefix != x ; then
10662 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10663 if test x${GTK_CONFIG+set} != xset ; then
10664 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10665 fi
10666 fi
10667
10668 # Extract the first word of "gtk-config", so it can be a program name with args.
10669set dummy gtk-config; ac_word=$2
10670echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10671echo "configure:10672: checking for $ac_word" >&5
10672if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10674else
10675 case "$GTK_CONFIG" in
10676 /*)
10677 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10678 ;;
10679 ?:/*)
10680 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10681 ;;
10682 *)
10683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10684 ac_dummy="$PATH"
10685 for ac_dir in $ac_dummy; do
10686 test -z "$ac_dir" && ac_dir=.
10687 if test -f $ac_dir/$ac_word; then
10688 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10689 break
10690 fi
10691 done
10692 IFS="$ac_save_ifs"
10693 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10694 ;;
10695esac
10696fi
10697GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10698if test -n "$GTK_CONFIG"; then
10699 echo "$ac_t""$GTK_CONFIG" 1>&6
10700else
10701 echo "$ac_t""no" 1>&6
10702fi
10703
10704 min_gtk_version=1.2.7
10705 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10706echo "configure:10707: checking for GTK - version >= $min_gtk_version" >&5
10707 no_gtk=""
10708 if test "$GTK_CONFIG" = "no" ; then
10709 no_gtk=yes
10710 else
10711 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10712 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10713 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10715 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10717 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10719 if test "x$enable_gtktest" = "xyes" ; then
10720 ac_save_CFLAGS="$CFLAGS"
10721 ac_save_LIBS="$LIBS"
10722 CFLAGS="$CFLAGS $GTK_CFLAGS"
10723 LIBS="$GTK_LIBS $LIBS"
10724 rm -f conf.gtktest
10725 if test "$cross_compiling" = yes; then
10726 echo $ac_n "cross compiling; assumed OK... $ac_c"
10727else
10728 cat > conftest.$ac_ext <<EOF
10729#line 10730 "configure"
10730#include "confdefs.h"
10731
10732#include <gtk/gtk.h>
10733#include <stdio.h>
10734#include <stdlib.h>
10735
10736int
10737main ()
10738{
10739 int major, minor, micro;
10740 char *tmp_version;
10741
10742 system ("touch conf.gtktest");
10743
10744 /* HP/UX 9 (%@#!) writes to sscanf strings */
10745 tmp_version = g_strdup("$min_gtk_version");
10746 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10747 printf("%s, bad version string\n", "$min_gtk_version");
10748 exit(1);
10749 }
10750
10751 if ((gtk_major_version != $gtk_config_major_version) ||
10752 (gtk_minor_version != $gtk_config_minor_version) ||
10753 (gtk_micro_version != $gtk_config_micro_version))
10754 {
10755 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10756 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10757 gtk_major_version, gtk_minor_version, gtk_micro_version);
10758 printf ("*** was found! If gtk-config was correct, then it is best\n");
10759 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10760 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10761 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10762 printf("*** required on your system.\n");
10763 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10764 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10765 printf("*** before re-running configure\n");
10766 }
10767#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10768 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10769 (gtk_minor_version != GTK_MINOR_VERSION) ||
10770 (gtk_micro_version != GTK_MICRO_VERSION))
10771 {
10772 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10773 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10774 printf("*** library (version %d.%d.%d)\n",
10775 gtk_major_version, gtk_minor_version, gtk_micro_version);
10776 }
10777#endif /* defined (GTK_MAJOR_VERSION) ... */
10778 else
10779 {
10780 if ((gtk_major_version > major) ||
10781 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10782 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10783 {
10784 return 0;
10785 }
10786 else
10787 {
10788 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10789 gtk_major_version, gtk_minor_version, gtk_micro_version);
10790 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10791 major, minor, micro);
10792 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10793 printf("***\n");
10794 printf("*** If you have already installed a sufficiently new version, this error\n");
10795 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10796 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10797 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10798 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10799 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10800 printf("*** so that the correct libraries are found at run-time))\n");
10801 }
10802 }
10803 return 1;
10804}
10805
10806EOF
10807if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10808then
10809 :
10810else
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 rm -fr conftest*
10814 no_gtk=yes
10815fi
10816rm -fr conftest*
10817fi
10818
10819 CFLAGS="$ac_save_CFLAGS"
10820 LIBS="$ac_save_LIBS"
10821 fi
10822 fi
10823 if test "x$no_gtk" = x ; then
10824 echo "$ac_t""yes" 1>&6
10825 wx_cv_lib_gtk=1.2.7
10826 else
10827 echo "$ac_t""no" 1>&6
10828 if test "$GTK_CONFIG" = "no" ; then
10829 echo "*** The gtk-config script installed by GTK could not be found"
10830 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10831 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10832 echo "*** full path to gtk-config."
10833 else
10834 if test -f conf.gtktest ; then
10835 :
10836 else
10837 echo "*** Could not run GTK test program, checking why..."
10838 CFLAGS="$CFLAGS $GTK_CFLAGS"
10839 LIBS="$LIBS $GTK_LIBS"
10840 cat > conftest.$ac_ext <<EOF
10841#line 10842 "configure"
10842#include "confdefs.h"
10843
10844#include <gtk/gtk.h>
10845#include <stdio.h>
10846
10847int main() {
10848 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10849; return 0; }
10850EOF
10851if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10852 rm -rf conftest*
10853 echo "*** The test program compiled, but did not run. This usually means"
10854 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10855 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10856 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10857 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10858 echo "*** is required on your system"
10859 echo "***"
10860 echo "*** If you have an old version installed, it is best to remove it, although"
10861 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10862 echo "***"
10863 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10864 echo "*** came with the system with the command"
10865 echo "***"
10866 echo "*** rpm --erase --nodeps gtk gtk-devel"
10867else
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 rm -rf conftest*
10871 echo "*** The test program failed to compile or link. See the file config.log for the"
10872 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10873 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10874 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10875fi
10876rm -f conftest*
10877 CFLAGS="$ac_save_CFLAGS"
10878 LIBS="$ac_save_LIBS"
10879 fi
10880 fi
10881 GTK_CFLAGS=""
10882 GTK_LIBS=""
10883 :
10884 fi
10885
10886
10887 rm -f conf.gtktest
10888
10889 fi
10890
10891 if test -z "$wx_cv_lib_gtk"; then
10892 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10893if test "${with_gtk_prefix+set}" = set; then
10894 withval="$with_gtk_prefix"
10895 gtk_config_prefix="$withval"
10896else
10897 gtk_config_prefix=""
10898fi
10899
10900# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10901if test "${with_gtk_exec_prefix+set}" = set; then
10902 withval="$with_gtk_exec_prefix"
10903 gtk_config_exec_prefix="$withval"
10904else
10905 gtk_config_exec_prefix=""
10906fi
10907
10908# Check whether --enable-gtktest or --disable-gtktest was given.
10909if test "${enable_gtktest+set}" = set; then
10910 enableval="$enable_gtktest"
10911 :
10912else
10913 enable_gtktest=yes
10914fi
10915
10916
10917 for module in . $GTK_MODULES
10918 do
10919 case "$module" in
10920 gthread)
10921 gtk_config_args="$gtk_config_args gthread"
10922 ;;
10923 esac
10924 done
10925
10926 if test x$gtk_config_exec_prefix != x ; then
10927 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10928 if test x${GTK_CONFIG+set} != xset ; then
10929 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10930 fi
10931 fi
10932 if test x$gtk_config_prefix != x ; then
10933 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10934 if test x${GTK_CONFIG+set} != xset ; then
10935 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10936 fi
10937 fi
10938
10939 # Extract the first word of "gtk-config", so it can be a program name with args.
10940set dummy gtk-config; ac_word=$2
10941echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10942echo "configure:10943: checking for $ac_word" >&5
10943if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10944 echo $ac_n "(cached) $ac_c" 1>&6
10945else
10946 case "$GTK_CONFIG" in
10947 /*)
10948 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10949 ;;
10950 ?:/*)
10951 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10952 ;;
10953 *)
10954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10955 ac_dummy="$PATH"
10956 for ac_dir in $ac_dummy; do
10957 test -z "$ac_dir" && ac_dir=.
10958 if test -f $ac_dir/$ac_word; then
10959 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10960 break
10961 fi
10962 done
10963 IFS="$ac_save_ifs"
10964 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10965 ;;
10966esac
10967fi
10968GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10969if test -n "$GTK_CONFIG"; then
10970 echo "$ac_t""$GTK_CONFIG" 1>&6
10971else
10972 echo "$ac_t""no" 1>&6
10973fi
10974
10975 min_gtk_version=1.2.3
10976 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10977echo "configure:10978: checking for GTK - version >= $min_gtk_version" >&5
10978 no_gtk=""
10979 if test "$GTK_CONFIG" = "no" ; then
10980 no_gtk=yes
10981 else
10982 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10983 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10984 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10986 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10988 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10990 if test "x$enable_gtktest" = "xyes" ; then
10991 ac_save_CFLAGS="$CFLAGS"
10992 ac_save_LIBS="$LIBS"
10993 CFLAGS="$CFLAGS $GTK_CFLAGS"
10994 LIBS="$GTK_LIBS $LIBS"
10995 rm -f conf.gtktest
10996 if test "$cross_compiling" = yes; then
10997 echo $ac_n "cross compiling; assumed OK... $ac_c"
10998else
10999 cat > conftest.$ac_ext <<EOF
11000#line 11001 "configure"
11001#include "confdefs.h"
11002
11003#include <gtk/gtk.h>
11004#include <stdio.h>
11005#include <stdlib.h>
11006
11007int
11008main ()
11009{
11010 int major, minor, micro;
11011 char *tmp_version;
11012
11013 system ("touch conf.gtktest");
11014
11015 /* HP/UX 9 (%@#!) writes to sscanf strings */
11016 tmp_version = g_strdup("$min_gtk_version");
11017 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11018 printf("%s, bad version string\n", "$min_gtk_version");
11019 exit(1);
11020 }
11021
11022 if ((gtk_major_version != $gtk_config_major_version) ||
11023 (gtk_minor_version != $gtk_config_minor_version) ||
11024 (gtk_micro_version != $gtk_config_micro_version))
11025 {
11026 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11027 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11028 gtk_major_version, gtk_minor_version, gtk_micro_version);
11029 printf ("*** was found! If gtk-config was correct, then it is best\n");
11030 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11031 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11032 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11033 printf("*** required on your system.\n");
11034 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11035 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11036 printf("*** before re-running configure\n");
11037 }
11038#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11039 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11040 (gtk_minor_version != GTK_MINOR_VERSION) ||
11041 (gtk_micro_version != GTK_MICRO_VERSION))
11042 {
11043 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11044 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11045 printf("*** library (version %d.%d.%d)\n",
11046 gtk_major_version, gtk_minor_version, gtk_micro_version);
11047 }
11048#endif /* defined (GTK_MAJOR_VERSION) ... */
11049 else
11050 {
11051 if ((gtk_major_version > major) ||
11052 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11053 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11054 {
11055 return 0;
11056 }
11057 else
11058 {
11059 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11060 gtk_major_version, gtk_minor_version, gtk_micro_version);
11061 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11062 major, minor, micro);
11063 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11064 printf("***\n");
11065 printf("*** If you have already installed a sufficiently new version, this error\n");
11066 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11067 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11068 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11069 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11070 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11071 printf("*** so that the correct libraries are found at run-time))\n");
11072 }
11073 }
11074 return 1;
11075}
11076
11077EOF
11078if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11079then
11080 :
11081else
11082 echo "configure: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11084 rm -fr conftest*
11085 no_gtk=yes
11086fi
11087rm -fr conftest*
11088fi
11089
11090 CFLAGS="$ac_save_CFLAGS"
11091 LIBS="$ac_save_LIBS"
11092 fi
11093 fi
11094 if test "x$no_gtk" = x ; then
11095 echo "$ac_t""yes" 1>&6
11096 wx_cv_lib_gtk=1.2.3
11097 else
11098 echo "$ac_t""no" 1>&6
11099 if test "$GTK_CONFIG" = "no" ; then
11100 echo "*** The gtk-config script installed by GTK could not be found"
11101 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11102 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11103 echo "*** full path to gtk-config."
11104 else
11105 if test -f conf.gtktest ; then
11106 :
11107 else
11108 echo "*** Could not run GTK test program, checking why..."
11109 CFLAGS="$CFLAGS $GTK_CFLAGS"
11110 LIBS="$LIBS $GTK_LIBS"
11111 cat > conftest.$ac_ext <<EOF
11112#line 11113 "configure"
11113#include "confdefs.h"
11114
11115#include <gtk/gtk.h>
11116#include <stdio.h>
11117
11118int main() {
11119 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11120; return 0; }
11121EOF
11122if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11123 rm -rf conftest*
11124 echo "*** The test program compiled, but did not run. This usually means"
11125 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11126 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11127 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11128 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11129 echo "*** is required on your system"
11130 echo "***"
11131 echo "*** If you have an old version installed, it is best to remove it, although"
11132 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11133 echo "***"
11134 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11135 echo "*** came with the system with the command"
11136 echo "***"
11137 echo "*** rpm --erase --nodeps gtk gtk-devel"
11138else
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 rm -rf conftest*
11142 echo "*** The test program failed to compile or link. See the file config.log for the"
11143 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11144 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11145 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11146fi
11147rm -f conftest*
11148 CFLAGS="$ac_save_CFLAGS"
11149 LIBS="$ac_save_LIBS"
11150 fi
11151 fi
11152 GTK_CFLAGS=""
11153 GTK_LIBS=""
11154 :
11155 fi
11156
11157
11158 rm -f conf.gtktest
11159
11160 fi
11161
11162 if test -z "$wx_cv_lib_gtk"; then
11163 wx_cv_lib_gtk=none
11164 else
11165 wx_cv_cflags_gtk=$GTK_CFLAGS
11166 wx_cv_libs_gtk=$GTK_LIBS
11167 fi
11168
11169
11170fi
11171
11172
11173 if test "$gtk_version_cached" = 1; then
11174 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11175 fi
11176
11177 case "$wx_cv_lib_gtk" in
11178 2.0) WXGTK20=1
11179 ;;
11180 1.2.7) WXGTK127=1
11181 WXGTK12=1
11182 ;;
11183 1.2.3) WXGTK12=1
11184 ;;
11185 *) { echo "configure: error:
11186Please check that gtk-config is in path, the directory
11187where GTK+ libraries are installed (returned by
11188'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11189equivalent variable and GTK+ is version 1.2.3 or above.
11190 " 1>&2; exit 1; }
11191 ;;
11192 esac
11193
11194 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11195 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11196
11197 AFMINSTALL=afminstall
11198 TOOLKIT=GTK
11199 GUIDIST=GTK_DIST
11200
11201 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11202echo "configure:11203: checking for gdk_im_open in -lgdk" >&5
11203ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11205 echo $ac_n "(cached) $ac_c" 1>&6
11206else
11207 ac_save_LIBS="$LIBS"
11208LIBS="-lgdk $LIBS"
11209cat > conftest.$ac_ext <<EOF
11210#line 11211 "configure"
11211#include "confdefs.h"
11212/* Override any gcc2 internal prototype to avoid an error. */
11213/* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215char gdk_im_open();
11216
11217int main() {
11218gdk_im_open()
11219; return 0; }
11220EOF
11221if { (eval echo configure:11222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11222 rm -rf conftest*
11223 eval "ac_cv_lib_$ac_lib_var=yes"
11224else
11225 echo "configure: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 rm -rf conftest*
11228 eval "ac_cv_lib_$ac_lib_var=no"
11229fi
11230rm -f conftest*
11231LIBS="$ac_save_LIBS"
11232
11233fi
11234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11235 echo "$ac_t""yes" 1>&6
11236 cat >> confdefs.h <<\EOF
11237#define HAVE_XIM 1
11238EOF
11239
11240else
11241 echo "$ac_t""no" 1>&6
11242fi
11243
11244 fi
11245
11246 if test "$wxUSE_MGL" = 1; then
11247 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11248echo "configure:11249: checking for SciTech MGL library" >&5
11249 if test "x$MGL_ROOT" = x ; then
11250 echo "$ac_t""not found" 1>&6
11251 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11252 else
11253 echo "$ac_t""$MGL_ROOT" 1>&6
11254 fi
11255
11256 case "${host}" in
11257 *-*-linux* )
11258 mgl_os=linux/gcc/glibc
11259 ;;
11260 *-pc-msdosdjgpp )
11261 mgl_os=dos32/dj2
11262 ;;
11263 *)
11264 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11265 esac
11266
11267 mgl_lib_type=""
11268
11269 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11270 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11271 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11272 mgl_lib_type=debug
11273 fi
11274 fi
11275 if test "x$mgl_lib_type" = x ; then
11276 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11277 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11278 mgl_lib_type=release
11279 else
11280 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11281 fi
11282 fi
11283
11284 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11285 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11286
11287 AFMINSTALL=afminstall
11288 TOOLKIT=MGL
11289 GUIDIST=MGL_DIST
11290 fi
11291
11292 if test "$wxUSE_MICROWIN" = 1; then
11293 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11294echo "configure:11295: checking for MicroWindows" >&5
11295 if test "x$MICROWINDOWS" = x ; then
11296 echo "$ac_t""not found" 1>&6
11297 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11298 else
11299 echo "$ac_t""$MICROWINDOWS" 1>&6
11300 fi
11301
11302 if test -f $MICROWINDOWS/lib/libmwin.a; then
11303 echo "$ac_t""MicroWindows' libraries found." 1>&6
11304 else
11305 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11306 fi
11307
11308 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11309 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11310
11311 AFMINSTALL=afminstall
11312 TOOLKIT=MICROWIN
11313 GUIDIST=MICROWIN_DIST
11314
11315 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11316 fi
11317
11318 if test "$wxUSE_X11" = 1; then
11319 # If we find X, set shell vars x_includes and x_libraries to the
11320# paths, otherwise set no_x=yes.
11321# Uses ac_ vars as temps to allow command line to override cache and checks.
11322# --without-x overrides everything else, but does not touch the cache.
11323echo $ac_n "checking for X""... $ac_c" 1>&6
11324echo "configure:11325: checking for X" >&5
11325
11326# Check whether --with-x or --without-x was given.
11327if test "${with_x+set}" = set; then
11328 withval="$with_x"
11329 :
11330fi
11331
11332# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11333if test "x$with_x" = xno; then
11334 # The user explicitly disabled X.
11335 have_x=disabled
11336else
11337 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11338 # Both variables are already set.
11339 have_x=yes
11340 else
11341if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11342 echo $ac_n "(cached) $ac_c" 1>&6
11343else
11344 # One or both of the vars are not set, and there is no cached value.
11345ac_x_includes=NO ac_x_libraries=NO
11346rm -fr conftestdir
11347if mkdir conftestdir; then
11348 cd conftestdir
11349 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11350 cat > Imakefile <<'EOF'
11351acfindx:
11352 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11353EOF
11354 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11356 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11358 for ac_extension in a so sl; do
11359 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11360 test -f $ac_im_libdir/libX11.$ac_extension; then
11361 ac_im_usrlibdir=$ac_im_libdir; break
11362 fi
11363 done
11364 # Screen out bogus values from the imake configuration. They are
11365 # bogus both because they are the default anyway, and because
11366 # using them would break gcc on systems where it needs fixed includes.
11367 case "$ac_im_incroot" in
11368 /usr/include) ;;
11369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11370 esac
11371 case "$ac_im_usrlibdir" in
11372 /usr/lib | /lib) ;;
11373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11374 esac
11375 fi
11376 cd ..
11377 rm -fr conftestdir
11378fi
11379
11380if test "$ac_x_includes" = NO; then
11381 # Guess where to find include files, by looking for this one X11 .h file.
11382 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11383
11384 # First, try using that file with no special directory specified.
11385cat > conftest.$ac_ext <<EOF
11386#line 11387 "configure"
11387#include "confdefs.h"
11388#include <$x_direct_test_include>
11389EOF
11390ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11391{ (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11392ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11393if test -z "$ac_err"; then
11394 rm -rf conftest*
11395 # We can compile using X headers with no special include directory.
11396ac_x_includes=
11397else
11398 echo "$ac_err" >&5
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11401 rm -rf conftest*
11402 # Look for the header file in a standard set of common directories.
11403# Check X11 before X11Rn because it is often a symlink to the current release.
11404 for ac_dir in \
11405 /usr/X11/include \
11406 /usr/X11R6/include \
11407 /usr/X11R5/include \
11408 /usr/X11R4/include \
11409 \
11410 /usr/include/X11 \
11411 /usr/include/X11R6 \
11412 /usr/include/X11R5 \
11413 /usr/include/X11R4 \
11414 \
11415 /usr/local/X11/include \
11416 /usr/local/X11R6/include \
11417 /usr/local/X11R5/include \
11418 /usr/local/X11R4/include \
11419 \
11420 /usr/local/include/X11 \
11421 /usr/local/include/X11R6 \
11422 /usr/local/include/X11R5 \
11423 /usr/local/include/X11R4 \
11424 \
11425 /usr/X386/include \
11426 /usr/x386/include \
11427 /usr/XFree86/include/X11 \
11428 \
11429 /usr/include \
11430 /usr/local/include \
11431 /usr/unsupported/include \
11432 /usr/athena/include \
11433 /usr/local/x11r5/include \
11434 /usr/lpp/Xamples/include \
11435 \
11436 /usr/openwin/include \
11437 /usr/openwin/share/include \
11438 ; \
11439 do
11440 if test -r "$ac_dir/$x_direct_test_include"; then
11441 ac_x_includes=$ac_dir
11442 break
11443 fi
11444 done
11445fi
11446rm -f conftest*
11447fi # $ac_x_includes = NO
11448
11449if test "$ac_x_libraries" = NO; then
11450 # Check for the libraries.
11451
11452 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11453 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11454
11455 # See if we find them without any special options.
11456 # Don't add to $LIBS permanently.
11457 ac_save_LIBS="$LIBS"
11458 LIBS="-l$x_direct_test_library $LIBS"
11459cat > conftest.$ac_ext <<EOF
11460#line 11461 "configure"
11461#include "confdefs.h"
11462
11463int main() {
11464${x_direct_test_function}()
11465; return 0; }
11466EOF
11467if { (eval echo configure:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11468 rm -rf conftest*
11469 LIBS="$ac_save_LIBS"
11470# We can link X programs with no special library path.
11471ac_x_libraries=
11472else
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -rf conftest*
11476 LIBS="$ac_save_LIBS"
11477# First see if replacing the include by lib works.
11478# Check X11 before X11Rn because it is often a symlink to the current release.
11479for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11480 /usr/X11/lib \
11481 /usr/X11R6/lib \
11482 /usr/X11R5/lib \
11483 /usr/X11R4/lib \
11484 \
11485 /usr/lib/X11 \
11486 /usr/lib/X11R6 \
11487 /usr/lib/X11R5 \
11488 /usr/lib/X11R4 \
11489 \
11490 /usr/local/X11/lib \
11491 /usr/local/X11R6/lib \
11492 /usr/local/X11R5/lib \
11493 /usr/local/X11R4/lib \
11494 \
11495 /usr/local/lib/X11 \
11496 /usr/local/lib/X11R6 \
11497 /usr/local/lib/X11R5 \
11498 /usr/local/lib/X11R4 \
11499 \
11500 /usr/X386/lib \
11501 /usr/x386/lib \
11502 /usr/XFree86/lib/X11 \
11503 \
11504 /usr/lib \
11505 /usr/local/lib \
11506 /usr/unsupported/lib \
11507 /usr/athena/lib \
11508 /usr/local/x11r5/lib \
11509 /usr/lpp/Xamples/lib \
11510 /lib/usr/lib/X11 \
11511 \
11512 /usr/openwin/lib \
11513 /usr/openwin/share/lib \
11514 ; \
11515do
11516 for ac_extension in a so sl; do
11517 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11518 ac_x_libraries=$ac_dir
11519 break 2
11520 fi
11521 done
11522done
11523fi
11524rm -f conftest*
11525fi # $ac_x_libraries = NO
11526
11527if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11528 # Didn't find X anywhere. Cache the known absence of X.
11529 ac_cv_have_x="have_x=no"
11530else
11531 # Record where we found X for the cache.
11532 ac_cv_have_x="have_x=yes \
11533 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11534fi
11535fi
11536 fi
11537 eval "$ac_cv_have_x"
11538fi # $with_x != no
11539
11540if test "$have_x" != yes; then
11541 echo "$ac_t""$have_x" 1>&6
11542 no_x=yes
11543else
11544 # If each of the values was on the command line, it overrides each guess.
11545 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11546 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11547 # Update the cache value to reflect the command line values.
11548 ac_cv_have_x="have_x=yes \
11549 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11550 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11551fi
11552
11553if test "$no_x" = yes; then
11554 # Not all programs may use this symbol, but it does not hurt to define it.
11555 cat >> confdefs.h <<\EOF
11556#define X_DISPLAY_MISSING 1
11557EOF
11558
11559 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11560else
11561 if test -n "$x_includes"; then
11562 X_CFLAGS="$X_CFLAGS -I$x_includes"
11563 fi
11564
11565 # It would also be nice to do this for all -L options, not just this one.
11566 if test -n "$x_libraries"; then
11567 X_LIBS="$X_LIBS -L$x_libraries"
11568 # For Solaris; some versions of Sun CC require a space after -R and
11569 # others require no space. Words are not sufficient . . . .
11570 case "`(uname -sr) 2>/dev/null`" in
11571 "SunOS 5"*)
11572 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11573echo "configure:11574: checking whether -R must be followed by a space" >&5
11574 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11575 cat > conftest.$ac_ext <<EOF
11576#line 11577 "configure"
11577#include "confdefs.h"
11578
11579int main() {
11580
11581; return 0; }
11582EOF
11583if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11584 rm -rf conftest*
11585 ac_R_nospace=yes
11586else
11587 echo "configure: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11589 rm -rf conftest*
11590 ac_R_nospace=no
11591fi
11592rm -f conftest*
11593 if test $ac_R_nospace = yes; then
11594 echo "$ac_t""no" 1>&6
11595 X_LIBS="$X_LIBS -R$x_libraries"
11596 else
11597 LIBS="$ac_xsave_LIBS -R $x_libraries"
11598 cat > conftest.$ac_ext <<EOF
11599#line 11600 "configure"
11600#include "confdefs.h"
11601
11602int main() {
11603
11604; return 0; }
11605EOF
11606if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11607 rm -rf conftest*
11608 ac_R_space=yes
11609else
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 rm -rf conftest*
11613 ac_R_space=no
11614fi
11615rm -f conftest*
11616 if test $ac_R_space = yes; then
11617 echo "$ac_t""yes" 1>&6
11618 X_LIBS="$X_LIBS -R $x_libraries"
11619 else
11620 echo "$ac_t""neither works" 1>&6
11621 fi
11622 fi
11623 LIBS="$ac_xsave_LIBS"
11624 esac
11625 fi
11626
11627 # Check for system-dependent libraries X programs must link with.
11628 # Do this before checking for the system-independent R6 libraries
11629 # (-lICE), since we may need -lsocket or whatever for X linking.
11630
11631 if test "$ISC" = yes; then
11632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11633 else
11634 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11635 # libraries were built with DECnet support. And karl@cs.umb.edu says
11636 # the Alpha needs dnet_stub (dnet does not exist).
11637 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11638echo "configure:11639: checking for dnet_ntoa in -ldnet" >&5
11639ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11641 echo $ac_n "(cached) $ac_c" 1>&6
11642else
11643 ac_save_LIBS="$LIBS"
11644LIBS="-ldnet $LIBS"
11645cat > conftest.$ac_ext <<EOF
11646#line 11647 "configure"
11647#include "confdefs.h"
11648/* Override any gcc2 internal prototype to avoid an error. */
11649/* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651char dnet_ntoa();
11652
11653int main() {
11654dnet_ntoa()
11655; return 0; }
11656EOF
11657if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11658 rm -rf conftest*
11659 eval "ac_cv_lib_$ac_lib_var=yes"
11660else
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11663 rm -rf conftest*
11664 eval "ac_cv_lib_$ac_lib_var=no"
11665fi
11666rm -f conftest*
11667LIBS="$ac_save_LIBS"
11668
11669fi
11670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11671 echo "$ac_t""yes" 1>&6
11672 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11673else
11674 echo "$ac_t""no" 1>&6
11675fi
11676
11677 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11678 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11679echo "configure:11680: checking for dnet_ntoa in -ldnet_stub" >&5
11680ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11681if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11683else
11684 ac_save_LIBS="$LIBS"
11685LIBS="-ldnet_stub $LIBS"
11686cat > conftest.$ac_ext <<EOF
11687#line 11688 "configure"
11688#include "confdefs.h"
11689/* Override any gcc2 internal prototype to avoid an error. */
11690/* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692char dnet_ntoa();
11693
11694int main() {
11695dnet_ntoa()
11696; return 0; }
11697EOF
11698if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699 rm -rf conftest*
11700 eval "ac_cv_lib_$ac_lib_var=yes"
11701else
11702 echo "configure: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11704 rm -rf conftest*
11705 eval "ac_cv_lib_$ac_lib_var=no"
11706fi
11707rm -f conftest*
11708LIBS="$ac_save_LIBS"
11709
11710fi
11711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11712 echo "$ac_t""yes" 1>&6
11713 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11714else
11715 echo "$ac_t""no" 1>&6
11716fi
11717
11718 fi
11719
11720 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11721 # to get the SysV transport functions.
11722 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11723 # needs -lnsl.
11724 # The nsl library prevents programs from opening the X display
11725 # on Irix 5.2, according to dickey@clark.net.
11726 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11727echo "configure:11728: checking for gethostbyname" >&5
11728if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730else
11731 cat > conftest.$ac_ext <<EOF
11732#line 11733 "configure"
11733#include "confdefs.h"
11734/* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char gethostbyname(); below. */
11736#include <assert.h>
11737/* Override any gcc2 internal prototype to avoid an error. */
11738/* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740char gethostbyname();
11741
11742int main() {
11743
11744/* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11748choke me
11749#else
11750gethostbyname();
11751#endif
11752
11753; return 0; }
11754EOF
11755if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11756 rm -rf conftest*
11757 eval "ac_cv_func_gethostbyname=yes"
11758else
11759 echo "configure: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11761 rm -rf conftest*
11762 eval "ac_cv_func_gethostbyname=no"
11763fi
11764rm -f conftest*
11765fi
11766
11767if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11768 echo "$ac_t""yes" 1>&6
11769 :
11770else
11771 echo "$ac_t""no" 1>&6
11772fi
11773
11774 if test $ac_cv_func_gethostbyname = no; then
11775 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11776echo "configure:11777: checking for gethostbyname in -lnsl" >&5
11777ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11778if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11780else
11781 ac_save_LIBS="$LIBS"
11782LIBS="-lnsl $LIBS"
11783cat > conftest.$ac_ext <<EOF
11784#line 11785 "configure"
11785#include "confdefs.h"
11786/* Override any gcc2 internal prototype to avoid an error. */
11787/* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789char gethostbyname();
11790
11791int main() {
11792gethostbyname()
11793; return 0; }
11794EOF
11795if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11796 rm -rf conftest*
11797 eval "ac_cv_lib_$ac_lib_var=yes"
11798else
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 rm -rf conftest*
11802 eval "ac_cv_lib_$ac_lib_var=no"
11803fi
11804rm -f conftest*
11805LIBS="$ac_save_LIBS"
11806
11807fi
11808if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11809 echo "$ac_t""yes" 1>&6
11810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11811else
11812 echo "$ac_t""no" 1>&6
11813fi
11814
11815 fi
11816
11817 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11818 # socket/setsockopt and other routines are undefined under SCO ODT
11819 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11820 # on later versions), says simon@lia.di.epfl.ch: it contains
11821 # gethostby* variants that don't use the nameserver (or something).
11822 # -lsocket must be given before -lnsl if both are needed.
11823 # We assume that if connect needs -lnsl, so does gethostbyname.
11824 echo $ac_n "checking for connect""... $ac_c" 1>&6
11825echo "configure:11826: checking for connect" >&5
11826if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11828else
11829 cat > conftest.$ac_ext <<EOF
11830#line 11831 "configure"
11831#include "confdefs.h"
11832/* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char connect(); below. */
11834#include <assert.h>
11835/* Override any gcc2 internal prototype to avoid an error. */
11836/* We use char because int might match the return type of a gcc2
11837 builtin and then its argument prototype would still apply. */
11838char connect();
11839
11840int main() {
11841
11842/* The GNU C library defines this for functions which it implements
11843 to always fail with ENOSYS. Some functions are actually named
11844 something starting with __ and the normal name is an alias. */
11845#if defined (__stub_connect) || defined (__stub___connect)
11846choke me
11847#else
11848connect();
11849#endif
11850
11851; return 0; }
11852EOF
11853if { (eval echo configure:11854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11854 rm -rf conftest*
11855 eval "ac_cv_func_connect=yes"
11856else
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 rm -rf conftest*
11860 eval "ac_cv_func_connect=no"
11861fi
11862rm -f conftest*
11863fi
11864
11865if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11866 echo "$ac_t""yes" 1>&6
11867 :
11868else
11869 echo "$ac_t""no" 1>&6
11870fi
11871
11872 if test $ac_cv_func_connect = no; then
11873 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11874echo "configure:11875: checking for connect in -lsocket" >&5
11875ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11877 echo $ac_n "(cached) $ac_c" 1>&6
11878else
11879 ac_save_LIBS="$LIBS"
11880LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11881cat > conftest.$ac_ext <<EOF
11882#line 11883 "configure"
11883#include "confdefs.h"
11884/* Override any gcc2 internal prototype to avoid an error. */
11885/* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11887char connect();
11888
11889int main() {
11890connect()
11891; return 0; }
11892EOF
11893if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11894 rm -rf conftest*
11895 eval "ac_cv_lib_$ac_lib_var=yes"
11896else
11897 echo "configure: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 rm -rf conftest*
11900 eval "ac_cv_lib_$ac_lib_var=no"
11901fi
11902rm -f conftest*
11903LIBS="$ac_save_LIBS"
11904
11905fi
11906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11907 echo "$ac_t""yes" 1>&6
11908 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11909else
11910 echo "$ac_t""no" 1>&6
11911fi
11912
11913 fi
11914
11915 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11916 echo $ac_n "checking for remove""... $ac_c" 1>&6
11917echo "configure:11918: checking for remove" >&5
11918if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11920else
11921 cat > conftest.$ac_ext <<EOF
11922#line 11923 "configure"
11923#include "confdefs.h"
11924/* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char remove(); below. */
11926#include <assert.h>
11927/* Override any gcc2 internal prototype to avoid an error. */
11928/* We use char because int might match the return type of a gcc2
11929 builtin and then its argument prototype would still apply. */
11930char remove();
11931
11932int main() {
11933
11934/* The GNU C library defines this for functions which it implements
11935 to always fail with ENOSYS. Some functions are actually named
11936 something starting with __ and the normal name is an alias. */
11937#if defined (__stub_remove) || defined (__stub___remove)
11938choke me
11939#else
11940remove();
11941#endif
11942
11943; return 0; }
11944EOF
11945if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11946 rm -rf conftest*
11947 eval "ac_cv_func_remove=yes"
11948else
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11951 rm -rf conftest*
11952 eval "ac_cv_func_remove=no"
11953fi
11954rm -f conftest*
11955fi
11956
11957if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11958 echo "$ac_t""yes" 1>&6
11959 :
11960else
11961 echo "$ac_t""no" 1>&6
11962fi
11963
11964 if test $ac_cv_func_remove = no; then
11965 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11966echo "configure:11967: checking for remove in -lposix" >&5
11967ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11968if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11970else
11971 ac_save_LIBS="$LIBS"
11972LIBS="-lposix $LIBS"
11973cat > conftest.$ac_ext <<EOF
11974#line 11975 "configure"
11975#include "confdefs.h"
11976/* Override any gcc2 internal prototype to avoid an error. */
11977/* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979char remove();
11980
11981int main() {
11982remove()
11983; return 0; }
11984EOF
11985if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11986 rm -rf conftest*
11987 eval "ac_cv_lib_$ac_lib_var=yes"
11988else
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11991 rm -rf conftest*
11992 eval "ac_cv_lib_$ac_lib_var=no"
11993fi
11994rm -f conftest*
11995LIBS="$ac_save_LIBS"
11996
11997fi
11998if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11999 echo "$ac_t""yes" 1>&6
12000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12001else
12002 echo "$ac_t""no" 1>&6
12003fi
12004
12005 fi
12006
12007 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12008 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12009echo "configure:12010: checking for shmat" >&5
12010if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12012else
12013 cat > conftest.$ac_ext <<EOF
12014#line 12015 "configure"
12015#include "confdefs.h"
12016/* System header to define __stub macros and hopefully few prototypes,
12017 which can conflict with char shmat(); below. */
12018#include <assert.h>
12019/* Override any gcc2 internal prototype to avoid an error. */
12020/* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022char shmat();
12023
12024int main() {
12025
12026/* The GNU C library defines this for functions which it implements
12027 to always fail with ENOSYS. Some functions are actually named
12028 something starting with __ and the normal name is an alias. */
12029#if defined (__stub_shmat) || defined (__stub___shmat)
12030choke me
12031#else
12032shmat();
12033#endif
12034
12035; return 0; }
12036EOF
12037if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12038 rm -rf conftest*
12039 eval "ac_cv_func_shmat=yes"
12040else
12041 echo "configure: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12043 rm -rf conftest*
12044 eval "ac_cv_func_shmat=no"
12045fi
12046rm -f conftest*
12047fi
12048
12049if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12050 echo "$ac_t""yes" 1>&6
12051 :
12052else
12053 echo "$ac_t""no" 1>&6
12054fi
12055
12056 if test $ac_cv_func_shmat = no; then
12057 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12058echo "configure:12059: checking for shmat in -lipc" >&5
12059ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12060if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
12062else
12063 ac_save_LIBS="$LIBS"
12064LIBS="-lipc $LIBS"
12065cat > conftest.$ac_ext <<EOF
12066#line 12067 "configure"
12067#include "confdefs.h"
12068/* Override any gcc2 internal prototype to avoid an error. */
12069/* We use char because int might match the return type of a gcc2
12070 builtin and then its argument prototype would still apply. */
12071char shmat();
12072
12073int main() {
12074shmat()
12075; return 0; }
12076EOF
12077if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12078 rm -rf conftest*
12079 eval "ac_cv_lib_$ac_lib_var=yes"
12080else
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12083 rm -rf conftest*
12084 eval "ac_cv_lib_$ac_lib_var=no"
12085fi
12086rm -f conftest*
12087LIBS="$ac_save_LIBS"
12088
12089fi
12090if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12091 echo "$ac_t""yes" 1>&6
12092 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12093else
12094 echo "$ac_t""no" 1>&6
12095fi
12096
12097 fi
12098 fi
12099
12100 # Check for libraries that X11R6 Xt/Xaw programs need.
12101 ac_save_LDFLAGS="$LDFLAGS"
12102 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12103 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12104 # check for ICE first), but we must link in the order -lSM -lICE or
12105 # we get undefined symbols. So assume we have SM if we have ICE.
12106 # These have to be linked with before -lX11, unlike the other
12107 # libraries we check for below, so use a different variable.
12108 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12109 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12110echo "configure:12111: checking for IceConnectionNumber in -lICE" >&5
12111ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12112if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12113 echo $ac_n "(cached) $ac_c" 1>&6
12114else
12115 ac_save_LIBS="$LIBS"
12116LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12117cat > conftest.$ac_ext <<EOF
12118#line 12119 "configure"
12119#include "confdefs.h"
12120/* Override any gcc2 internal prototype to avoid an error. */
12121/* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12123char IceConnectionNumber();
12124
12125int main() {
12126IceConnectionNumber()
12127; return 0; }
12128EOF
12129if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12130 rm -rf conftest*
12131 eval "ac_cv_lib_$ac_lib_var=yes"
12132else
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12135 rm -rf conftest*
12136 eval "ac_cv_lib_$ac_lib_var=no"
12137fi
12138rm -f conftest*
12139LIBS="$ac_save_LIBS"
12140
12141fi
12142if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12144 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12145else
12146 echo "$ac_t""no" 1>&6
12147fi
12148
12149 LDFLAGS="$ac_save_LDFLAGS"
12150
12151fi
12152
12153
12154 if test "$no_x" = "yes"; then
12155 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12156 fi
12157
12158 GUI_TK_LIBRARY="$X_LIBS"
12159 TOOLKIT_INCLUDE="$X_CFLAGS"
12160 AFMINSTALL=afminstall
12161 COMPILED_X_PROGRAM=0
12162
12163 if test "$wxUSE_NANOX" = "yes"; then
12164 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
12165echo "configure:12166: checking for MicroWindows/NanoX distribution" >&5
12166 if test "x$MICROWIN" = x ; then
12167 echo "$ac_t""not found" 1>&6
12168 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
12169 else
12170 echo "$ac_t""$MICROWIN" 1>&6
12171 cat >> confdefs.h <<\EOF
12172#define wxUSE_NANOX 1
12173EOF
12174
12175 fi
12176 fi
12177
12178 xpm_link=
12179 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12180echo "configure:12181: checking for Xpm library" >&5
12181
12182ac_find_libraries=
12183for ac_dir in $SEARCH_LIB;
12184 do
12185 for ac_extension in a so sl dylib; do
12186 if test -f "$ac_dir/libXpm.$ac_extension"; then
12187 ac_find_libraries=$ac_dir
12188 break 2
12189 fi
12190 done
12191 done
12192
12193 if test "$ac_find_libraries" != "" ; then
12194
12195 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12196 result=$?
12197 if test $result = 0; then
12198 ac_path_to_link=""
12199 else
12200 ac_path_to_link=" -L$ac_find_libraries"
12201 fi
12202
12203 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12204 xpm_link=" -lXpm"
12205 cat >> confdefs.h <<\EOF
12206#define wxHAVE_LIB_XPM 1
12207EOF
12208
12209 echo "$ac_t""found at $ac_find_libraries" 1>&6
12210 else
12211 cat > conftest.$ac_ext <<EOF
12212#line 12213 "configure"
12213#include "confdefs.h"
12214
12215 #include <X11/xpm.h>
12216
12217int main() {
12218
12219 int version;
12220 version = XpmLibraryVersion();
12221
12222; return 0; }
12223EOF
12224if { (eval echo configure:12225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12225 rm -rf conftest*
12226
12227 xpm_link=" -lXpm"
12228 cat >> confdefs.h <<\EOF
12229#define wxHAVE_LIB_XPM 1
12230EOF
12231
12232 echo "$ac_t""found in default search path" 1>&6
12233 COMPILED_X_PROGRAM=0
12234
12235else
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 rm -rf conftest*
12239
12240 echo "$ac_t""no" 1>&6
12241 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12242
12243
12244fi
12245rm -f conftest*
12246 fi
12247
12248 if test "$wxUSE_NANOX" = "yes"; then
12249 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
12250 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 -O -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
12251 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$MICROWIN/src/lib/libnano-X.a \$MICROWIN/src/lib/libmwengine.a \$MICROWIN/src/lib/libmwfonts.a \$MICROWIN/src/lib/libmwdrivers.a"
12252 else
12253 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
12254 fi
12255
12256 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
12257 TOOLKIT=X11
12258 GUIDIST=X11_DIST
12259 fi
12260
12261 if test "$wxUSE_WINE" = 1; then
12262 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12263echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12264echo "configure:12265: checking for windows.h" >&5
12265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12267else
12268 cat > conftest.$ac_ext <<EOF
12269#line 12270 "configure"
12270#include "confdefs.h"
12271#include <windows.h>
12272EOF
12273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12274{ (eval echo configure:12275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12276if test -z "$ac_err"; then
12277 rm -rf conftest*
12278 eval "ac_cv_header_$ac_safe=yes"
12279else
12280 echo "$ac_err" >&5
12281 echo "configure: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 rm -rf conftest*
12284 eval "ac_cv_header_$ac_safe=no"
12285fi
12286rm -f conftest*
12287fi
12288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12289 echo "$ac_t""yes" 1>&6
12290 :
12291else
12292 echo "$ac_t""no" 1>&6
12293
12294 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12295
12296fi
12297
12298
12299 xpm_link=
12300 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12301echo "configure:12302: checking for Xpm library" >&5
12302
12303ac_find_libraries=
12304for ac_dir in $SEARCH_LIB;
12305 do
12306 for ac_extension in a so sl dylib; do
12307 if test -f "$ac_dir/libXpm.$ac_extension"; then
12308 ac_find_libraries=$ac_dir
12309 break 2
12310 fi
12311 done
12312 done
12313
12314 if test "$ac_find_libraries" != "" ; then
12315 GUI_TK_LIBRARY="-L$ac_find_libraries"
12316 xpm_link=" -lXpm"
12317 cat >> confdefs.h <<\EOF
12318#define wxHAVE_LIB_XPM 1
12319EOF
12320
12321 echo "$ac_t""found at $ac_find_libraries" 1>&6
12322 else
12323 echo "$ac_t""no" 1>&6
12324 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12325 fi
12326
12327 mesa_link=
12328 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12329echo "configure:12330: checking for Mesa library" >&5
12330
12331ac_find_libraries=
12332for ac_dir in $SEARCH_LIB;
12333 do
12334 for ac_extension in a so sl dylib; do
12335 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12336 ac_find_libraries=$ac_dir
12337 break 2
12338 fi
12339 done
12340 done
12341
12342 if test "$ac_find_libraries" != "" ; then
12343 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12344 mesa_link=" -lMesaGL"
12345 echo "$ac_t""found at $ac_find_libraries" 1>&6
12346 else
12347 { echo "configure: error: no" 1>&2; exit 1; }
12348 fi
12349
12350 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12351 TOOLKIT=MSW
12352 GUIDIST=MSW_DIST
12353 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12354 fi
12355
12356 if test "$wxUSE_MOTIF" = 1; then
12357 if test "$no_x" = yes; then
12358 # Not all programs may use this symbol, but it does not hurt to define it.
12359 cat >> confdefs.h <<\EOF
12360#define X_DISPLAY_MISSING 1
12361EOF
12362
12363 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12364else
12365 if test -n "$x_includes"; then
12366 X_CFLAGS="$X_CFLAGS -I$x_includes"
12367 fi
12368
12369 # It would also be nice to do this for all -L options, not just this one.
12370 if test -n "$x_libraries"; then
12371 X_LIBS="$X_LIBS -L$x_libraries"
12372 # For Solaris; some versions of Sun CC require a space after -R and
12373 # others require no space. Words are not sufficient . . . .
12374 case "`(uname -sr) 2>/dev/null`" in
12375 "SunOS 5"*)
12376 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12377echo "configure:12378: checking whether -R must be followed by a space" >&5
12378 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12379 cat > conftest.$ac_ext <<EOF
12380#line 12381 "configure"
12381#include "confdefs.h"
12382
12383int main() {
12384
12385; return 0; }
12386EOF
12387if { (eval echo configure:12388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12388 rm -rf conftest*
12389 ac_R_nospace=yes
12390else
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12393 rm -rf conftest*
12394 ac_R_nospace=no
12395fi
12396rm -f conftest*
12397 if test $ac_R_nospace = yes; then
12398 echo "$ac_t""no" 1>&6
12399 X_LIBS="$X_LIBS -R$x_libraries"
12400 else
12401 LIBS="$ac_xsave_LIBS -R $x_libraries"
12402 cat > conftest.$ac_ext <<EOF
12403#line 12404 "configure"
12404#include "confdefs.h"
12405
12406int main() {
12407
12408; return 0; }
12409EOF
12410if { (eval echo configure:12411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12411 rm -rf conftest*
12412 ac_R_space=yes
12413else
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 rm -rf conftest*
12417 ac_R_space=no
12418fi
12419rm -f conftest*
12420 if test $ac_R_space = yes; then
12421 echo "$ac_t""yes" 1>&6
12422 X_LIBS="$X_LIBS -R $x_libraries"
12423 else
12424 echo "$ac_t""neither works" 1>&6
12425 fi
12426 fi
12427 LIBS="$ac_xsave_LIBS"
12428 esac
12429 fi
12430
12431 # Check for system-dependent libraries X programs must link with.
12432 # Do this before checking for the system-independent R6 libraries
12433 # (-lICE), since we may need -lsocket or whatever for X linking.
12434
12435 if test "$ISC" = yes; then
12436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12437 else
12438 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12439 # libraries were built with DECnet support. And karl@cs.umb.edu says
12440 # the Alpha needs dnet_stub (dnet does not exist).
12441 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12442echo "configure:12443: checking for dnet_ntoa in -ldnet" >&5
12443ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12444if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12445 echo $ac_n "(cached) $ac_c" 1>&6
12446else
12447 ac_save_LIBS="$LIBS"
12448LIBS="-ldnet $LIBS"
12449cat > conftest.$ac_ext <<EOF
12450#line 12451 "configure"
12451#include "confdefs.h"
12452/* Override any gcc2 internal prototype to avoid an error. */
12453/* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12455char dnet_ntoa();
12456
12457int main() {
12458dnet_ntoa()
12459; return 0; }
12460EOF
12461if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 rm -rf conftest*
12463 eval "ac_cv_lib_$ac_lib_var=yes"
12464else
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -rf conftest*
12468 eval "ac_cv_lib_$ac_lib_var=no"
12469fi
12470rm -f conftest*
12471LIBS="$ac_save_LIBS"
12472
12473fi
12474if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12475 echo "$ac_t""yes" 1>&6
12476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12477else
12478 echo "$ac_t""no" 1>&6
12479fi
12480
12481 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12482 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12483echo "configure:12484: checking for dnet_ntoa in -ldnet_stub" >&5
12484ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12485if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12486 echo $ac_n "(cached) $ac_c" 1>&6
12487else
12488 ac_save_LIBS="$LIBS"
12489LIBS="-ldnet_stub $LIBS"
12490cat > conftest.$ac_ext <<EOF
12491#line 12492 "configure"
12492#include "confdefs.h"
12493/* Override any gcc2 internal prototype to avoid an error. */
12494/* We use char because int might match the return type of a gcc2
12495 builtin and then its argument prototype would still apply. */
12496char dnet_ntoa();
12497
12498int main() {
12499dnet_ntoa()
12500; return 0; }
12501EOF
12502if { (eval echo configure:12503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12503 rm -rf conftest*
12504 eval "ac_cv_lib_$ac_lib_var=yes"
12505else
12506 echo "configure: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 rm -rf conftest*
12509 eval "ac_cv_lib_$ac_lib_var=no"
12510fi
12511rm -f conftest*
12512LIBS="$ac_save_LIBS"
12513
12514fi
12515if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12516 echo "$ac_t""yes" 1>&6
12517 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12518else
12519 echo "$ac_t""no" 1>&6
12520fi
12521
12522 fi
12523
12524 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12525 # to get the SysV transport functions.
12526 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12527 # needs -lnsl.
12528 # The nsl library prevents programs from opening the X display
12529 # on Irix 5.2, according to dickey@clark.net.
12530 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12531echo "configure:12532: checking for gethostbyname" >&5
12532if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12533 echo $ac_n "(cached) $ac_c" 1>&6
12534else
12535 cat > conftest.$ac_ext <<EOF
12536#line 12537 "configure"
12537#include "confdefs.h"
12538/* System header to define __stub macros and hopefully few prototypes,
12539 which can conflict with char gethostbyname(); below. */
12540#include <assert.h>
12541/* Override any gcc2 internal prototype to avoid an error. */
12542/* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12544char gethostbyname();
12545
12546int main() {
12547
12548/* The GNU C library defines this for functions which it implements
12549 to always fail with ENOSYS. Some functions are actually named
12550 something starting with __ and the normal name is an alias. */
12551#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12552choke me
12553#else
12554gethostbyname();
12555#endif
12556
12557; return 0; }
12558EOF
12559if { (eval echo configure:12560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12560 rm -rf conftest*
12561 eval "ac_cv_func_gethostbyname=yes"
12562else
12563 echo "configure: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 rm -rf conftest*
12566 eval "ac_cv_func_gethostbyname=no"
12567fi
12568rm -f conftest*
12569fi
12570
12571if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12572 echo "$ac_t""yes" 1>&6
12573 :
12574else
12575 echo "$ac_t""no" 1>&6
12576fi
12577
12578 if test $ac_cv_func_gethostbyname = no; then
12579 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12580echo "configure:12581: checking for gethostbyname in -lnsl" >&5
12581ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12582if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584else
12585 ac_save_LIBS="$LIBS"
12586LIBS="-lnsl $LIBS"
12587cat > conftest.$ac_ext <<EOF
12588#line 12589 "configure"
12589#include "confdefs.h"
12590/* Override any gcc2 internal prototype to avoid an error. */
12591/* We use char because int might match the return type of a gcc2
12592 builtin and then its argument prototype would still apply. */
12593char gethostbyname();
12594
12595int main() {
12596gethostbyname()
12597; return 0; }
12598EOF
12599if { (eval echo configure:12600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12600 rm -rf conftest*
12601 eval "ac_cv_lib_$ac_lib_var=yes"
12602else
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -rf conftest*
12606 eval "ac_cv_lib_$ac_lib_var=no"
12607fi
12608rm -f conftest*
12609LIBS="$ac_save_LIBS"
12610
12611fi
12612if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12613 echo "$ac_t""yes" 1>&6
12614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12615else
12616 echo "$ac_t""no" 1>&6
12617fi
12618
12619 fi
12620
12621 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12622 # socket/setsockopt and other routines are undefined under SCO ODT
12623 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12624 # on later versions), says simon@lia.di.epfl.ch: it contains
12625 # gethostby* variants that don't use the nameserver (or something).
12626 # -lsocket must be given before -lnsl if both are needed.
12627 # We assume that if connect needs -lnsl, so does gethostbyname.
12628 echo $ac_n "checking for connect""... $ac_c" 1>&6
12629echo "configure:12630: checking for connect" >&5
12630if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12632else
12633 cat > conftest.$ac_ext <<EOF
12634#line 12635 "configure"
12635#include "confdefs.h"
12636/* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char connect(); below. */
12638#include <assert.h>
12639/* Override any gcc2 internal prototype to avoid an error. */
12640/* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12642char connect();
12643
12644int main() {
12645
12646/* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649#if defined (__stub_connect) || defined (__stub___connect)
12650choke me
12651#else
12652connect();
12653#endif
12654
12655; return 0; }
12656EOF
12657if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 eval "ac_cv_func_connect=yes"
12660else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_func_connect=no"
12665fi
12666rm -f conftest*
12667fi
12668
12669if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 :
12672else
12673 echo "$ac_t""no" 1>&6
12674fi
12675
12676 if test $ac_cv_func_connect = no; then
12677 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12678echo "configure:12679: checking for connect in -lsocket" >&5
12679ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12681 echo $ac_n "(cached) $ac_c" 1>&6
12682else
12683 ac_save_LIBS="$LIBS"
12684LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12685cat > conftest.$ac_ext <<EOF
12686#line 12687 "configure"
12687#include "confdefs.h"
12688/* Override any gcc2 internal prototype to avoid an error. */
12689/* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12691char connect();
12692
12693int main() {
12694connect()
12695; return 0; }
12696EOF
12697if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12698 rm -rf conftest*
12699 eval "ac_cv_lib_$ac_lib_var=yes"
12700else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 eval "ac_cv_lib_$ac_lib_var=no"
12705fi
12706rm -f conftest*
12707LIBS="$ac_save_LIBS"
12708
12709fi
12710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12711 echo "$ac_t""yes" 1>&6
12712 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12713else
12714 echo "$ac_t""no" 1>&6
12715fi
12716
12717 fi
12718
12719 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12720 echo $ac_n "checking for remove""... $ac_c" 1>&6
12721echo "configure:12722: checking for remove" >&5
12722if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12723 echo $ac_n "(cached) $ac_c" 1>&6
12724else
12725 cat > conftest.$ac_ext <<EOF
12726#line 12727 "configure"
12727#include "confdefs.h"
12728/* System header to define __stub macros and hopefully few prototypes,
12729 which can conflict with char remove(); below. */
12730#include <assert.h>
12731/* Override any gcc2 internal prototype to avoid an error. */
12732/* We use char because int might match the return type of a gcc2
12733 builtin and then its argument prototype would still apply. */
12734char remove();
12735
12736int main() {
12737
12738/* The GNU C library defines this for functions which it implements
12739 to always fail with ENOSYS. Some functions are actually named
12740 something starting with __ and the normal name is an alias. */
12741#if defined (__stub_remove) || defined (__stub___remove)
12742choke me
12743#else
12744remove();
12745#endif
12746
12747; return 0; }
12748EOF
12749if { (eval echo configure:12750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12750 rm -rf conftest*
12751 eval "ac_cv_func_remove=yes"
12752else
12753 echo "configure: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12755 rm -rf conftest*
12756 eval "ac_cv_func_remove=no"
12757fi
12758rm -f conftest*
12759fi
12760
12761if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12762 echo "$ac_t""yes" 1>&6
12763 :
12764else
12765 echo "$ac_t""no" 1>&6
12766fi
12767
12768 if test $ac_cv_func_remove = no; then
12769 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12770echo "configure:12771: checking for remove in -lposix" >&5
12771ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12774else
12775 ac_save_LIBS="$LIBS"
12776LIBS="-lposix $LIBS"
12777cat > conftest.$ac_ext <<EOF
12778#line 12779 "configure"
12779#include "confdefs.h"
12780/* Override any gcc2 internal prototype to avoid an error. */
12781/* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */
12783char remove();
12784
12785int main() {
12786remove()
12787; return 0; }
12788EOF
12789if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12790 rm -rf conftest*
12791 eval "ac_cv_lib_$ac_lib_var=yes"
12792else
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12795 rm -rf conftest*
12796 eval "ac_cv_lib_$ac_lib_var=no"
12797fi
12798rm -f conftest*
12799LIBS="$ac_save_LIBS"
12800
12801fi
12802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12803 echo "$ac_t""yes" 1>&6
12804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12805else
12806 echo "$ac_t""no" 1>&6
12807fi
12808
12809 fi
12810
12811 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12812 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12813echo "configure:12814: checking for shmat" >&5
12814if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12815 echo $ac_n "(cached) $ac_c" 1>&6
12816else
12817 cat > conftest.$ac_ext <<EOF
12818#line 12819 "configure"
12819#include "confdefs.h"
12820/* System header to define __stub macros and hopefully few prototypes,
12821 which can conflict with char shmat(); below. */
12822#include <assert.h>
12823/* Override any gcc2 internal prototype to avoid an error. */
12824/* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12826char shmat();
12827
12828int main() {
12829
12830/* The GNU C library defines this for functions which it implements
12831 to always fail with ENOSYS. Some functions are actually named
12832 something starting with __ and the normal name is an alias. */
12833#if defined (__stub_shmat) || defined (__stub___shmat)
12834choke me
12835#else
12836shmat();
12837#endif
12838
12839; return 0; }
12840EOF
12841if { (eval echo configure:12842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12842 rm -rf conftest*
12843 eval "ac_cv_func_shmat=yes"
12844else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848 eval "ac_cv_func_shmat=no"
12849fi
12850rm -f conftest*
12851fi
12852
12853if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12854 echo "$ac_t""yes" 1>&6
12855 :
12856else
12857 echo "$ac_t""no" 1>&6
12858fi
12859
12860 if test $ac_cv_func_shmat = no; then
12861 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12862echo "configure:12863: checking for shmat in -lipc" >&5
12863ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12866else
12867 ac_save_LIBS="$LIBS"
12868LIBS="-lipc $LIBS"
12869cat > conftest.$ac_ext <<EOF
12870#line 12871 "configure"
12871#include "confdefs.h"
12872/* Override any gcc2 internal prototype to avoid an error. */
12873/* We use char because int might match the return type of a gcc2
12874 builtin and then its argument prototype would still apply. */
12875char shmat();
12876
12877int main() {
12878shmat()
12879; return 0; }
12880EOF
12881if { (eval echo configure:12882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12882 rm -rf conftest*
12883 eval "ac_cv_lib_$ac_lib_var=yes"
12884else
12885 echo "configure: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 rm -rf conftest*
12888 eval "ac_cv_lib_$ac_lib_var=no"
12889fi
12890rm -f conftest*
12891LIBS="$ac_save_LIBS"
12892
12893fi
12894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12895 echo "$ac_t""yes" 1>&6
12896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12897else
12898 echo "$ac_t""no" 1>&6
12899fi
12900
12901 fi
12902 fi
12903
12904 # Check for libraries that X11R6 Xt/Xaw programs need.
12905 ac_save_LDFLAGS="$LDFLAGS"
12906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12908 # check for ICE first), but we must link in the order -lSM -lICE or
12909 # we get undefined symbols. So assume we have SM if we have ICE.
12910 # These have to be linked with before -lX11, unlike the other
12911 # libraries we check for below, so use a different variable.
12912 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12913 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12914echo "configure:12915: checking for IceConnectionNumber in -lICE" >&5
12915ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12918else
12919 ac_save_LIBS="$LIBS"
12920LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12921cat > conftest.$ac_ext <<EOF
12922#line 12923 "configure"
12923#include "confdefs.h"
12924/* Override any gcc2 internal prototype to avoid an error. */
12925/* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */
12927char IceConnectionNumber();
12928
12929int main() {
12930IceConnectionNumber()
12931; return 0; }
12932EOF
12933if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12934 rm -rf conftest*
12935 eval "ac_cv_lib_$ac_lib_var=yes"
12936else
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12939 rm -rf conftest*
12940 eval "ac_cv_lib_$ac_lib_var=no"
12941fi
12942rm -f conftest*
12943LIBS="$ac_save_LIBS"
12944
12945fi
12946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12947 echo "$ac_t""yes" 1>&6
12948 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12949else
12950 echo "$ac_t""no" 1>&6
12951fi
12952
12953 LDFLAGS="$ac_save_LDFLAGS"
12954
12955fi
12956
12957
12958 if test "$no_x" = "yes"; then
12959 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12960 fi
12961
12962 GUI_TK_LIBRARY="$X_LIBS"
12963 TOOLKIT_INCLUDE="$X_CFLAGS"
12964 AFMINSTALL=afminstall
12965 COMPILED_X_PROGRAM=0
12966
12967 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12968echo "configure:12969: checking for Motif/Lesstif headers" >&5
12969
12970ac_find_includes=
12971for ac_dir in $SEARCH_INCLUDE;
12972 do
12973 if test -f "$ac_dir/Xm/Xm.h"; then
12974 ac_find_includes=$ac_dir
12975 break
12976 fi
12977 done
12978
12979 if test "$ac_find_includes" != "" ; then
12980 echo "$ac_t""found $ac_find_includes" 1>&6
12981 else
12982 cat > conftest.$ac_ext <<EOF
12983#line 12984 "configure"
12984#include "confdefs.h"
12985
12986 #include <Xm/Xm.h>
12987
12988int main() {
12989
12990 int version;
12991 version = xmUseVersion;
12992
12993; return 0; }
12994EOF
12995if { (eval echo configure:12996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12996 rm -rf conftest*
12997
12998 echo "$ac_t""found in default search path" 1>&6
12999 COMPILED_X_PROGRAM=1
13000
13001else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005
13006 echo "$ac_t""no" 1>&6
13007 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
13008
13009
13010fi
13011rm -f conftest*
13012 fi
13013
13014 if test "$COMPILED_X_PROGRAM" = 0; then
13015 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
13016echo "configure:13017: checking for Motif/Lesstif library" >&5
13017
13018ac_find_libraries=
13019for ac_dir in $SEARCH_LIB;
13020 do
13021 for ac_extension in a so sl dylib; do
13022 if test -f "$ac_dir/libXm.$ac_extension"; then
13023 ac_find_libraries=$ac_dir
13024 break 2
13025 fi
13026 done
13027 done
13028
13029 if test "$ac_find_libraries" != "" ; then
13030
13031 ac_path_to_include=$ac_find_includes
13032 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13033 result=$?
13034 if test $result = 0; then
13035 ac_path_to_include=""
13036 else
13037 ac_path_to_include=" -I$ac_find_includes"
13038 fi
13039
13040
13041 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13042 result=$?
13043 if test $result = 0; then
13044 ac_path_to_link=""
13045 else
13046 ac_path_to_link=" -L$ac_find_libraries"
13047 fi
13048
13049
13050 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13051 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13052 echo "$ac_t""found at $ac_find_libraries" 1>&6
13053 else
13054 cat > conftest.$ac_ext <<EOF
13055#line 13056 "configure"
13056#include "confdefs.h"
13057
13058 #include <Xm/Xm.h>
13059
13060int main() {
13061
13062 int version;
13063 version = xmUseVersion;
13064
13065; return 0; }
13066EOF
13067if { (eval echo configure:13068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13068 rm -rf conftest*
13069
13070 echo "$ac_t""found in default search path" 1>&6
13071 COMPILED_X_PROGRAM=1
13072
13073else
13074 echo "configure: failed program was:" >&5
13075 cat conftest.$ac_ext >&5
13076 rm -rf conftest*
13077
13078 echo "$ac_t""no" 1>&6
13079 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13080
13081
13082fi
13083rm -f conftest*
13084 fi
13085 fi
13086
13087 xpm_link=
13088 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13089echo "configure:13090: checking for Xpm library" >&5
13090
13091ac_find_libraries=
13092for ac_dir in $SEARCH_LIB;
13093 do
13094 for ac_extension in a so sl dylib; do
13095 if test -f "$ac_dir/libXpm.$ac_extension"; then
13096 ac_find_libraries=$ac_dir
13097 break 2
13098 fi
13099 done
13100 done
13101
13102 if test "$ac_find_libraries" != "" ; then
13103
13104 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13105 result=$?
13106 if test $result = 0; then
13107 ac_path_to_link=""
13108 else
13109 ac_path_to_link=" -L$ac_find_libraries"
13110 fi
13111
13112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13113 xpm_link=" -lXpm"
13114 cat >> confdefs.h <<\EOF
13115#define wxHAVE_LIB_XPM 1
13116EOF
13117
13118 echo "$ac_t""found at $ac_find_libraries" 1>&6
13119 else
13120 cat > conftest.$ac_ext <<EOF
13121#line 13122 "configure"
13122#include "confdefs.h"
13123
13124 #include <X11/xpm.h>
13125
13126int main() {
13127
13128 int version;
13129 version = XpmLibraryVersion();
13130
13131; return 0; }
13132EOF
13133if { (eval echo configure:13134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13134 rm -rf conftest*
13135
13136 xpm_link=" -lXpm"
13137 cat >> confdefs.h <<\EOF
13138#define wxHAVE_LIB_XPM 1
13139EOF
13140
13141 echo "$ac_t""found in default search path" 1>&6
13142 COMPILED_X_PROGRAM=0
13143
13144else
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13147 rm -rf conftest*
13148
13149 echo "$ac_t""no" 1>&6
13150 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13151
13152
13153fi
13154rm -f conftest*
13155 fi
13156
13157 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13158 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13159 TOOLKIT=MOTIF
13160 GUIDIST=MOTIF_DIST
13161 fi
13162
13163 if test "$wxUSE_MAC" = 1; then
13164 if test "$wxUSE_PRECOMP" = "yes"; then
13165 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13166 fi
13167 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13168 CFLAGS="$CFLAGS -fpascal-strings"
13169 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13170
13171 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13172 TOOLKIT=MAC
13173 GUIDIST=MACX_DIST
13174 fi
13175
13176 if test "$wxUSE_PM" = 1; then
13177 TOOLKIT=PM
13178 GUIDIST=GTK_DIST
13179 fi
13180
13181 if test "$TOOLKIT" = "PM" ; then
13182 TOOLKIT_DIR="os2"
13183 else
13184 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13185 fi
13186
13187 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13188
13189 if test "$wxUSE_UNIVERSAL" = "yes"; then
13190 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13191
13192 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13193 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13194
13195 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13196 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13197 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13198 WIDGET_SET=univ
13199 else
13200 ALL_OBJECTS="\$(GUIOBJS)"
13201 ALL_SOURCES="\$(ALL_SOURCES)"
13202 ALL_HEADERS="\$(ALL_HEADERS)"
13203 fi
13204
13205 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13206
13207 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13208 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13209 fi
13210
13211 if test "$wxUSE_HTML" = "yes"; then
13212 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13213 fi
13214
13215 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13216 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13217 fi
13218 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13219 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13220 fi
13221 if test "$wxUSE_LIBPNG" = "builtin" ; then
13222 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13223 fi
13224
13225 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13226 DISTDIR="wx\$(TOOLKIT)"
13227else
13228 USE_GUI=0
13229
13230 TOOLKIT_DIR="base"
13231
13232 if test "$USE_WIN32" = 1 ; then
13233 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13234 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13235
13236 TOOLKIT="MSW"
13237 else
13238 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13239 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13240 fi
13241
13242 ALL_SOURCES="\$(ALL_SOURCES)"
13243 ALL_HEADERS="\$(ALL_HEADERS)"
13244
13245 PORT_FILES="\${top_srcdir}/src/files.lst"
13246
13247 GUIDIST="BASE_DIST"
13248 DISTDIR="wxBase"
13249fi
13250
13251
13252if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13253 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13254fi
13255
13256if test "$wxUSE_REGEX" = "builtin" ; then
13257 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13258fi
13259if test "$wxUSE_ZLIB" = "builtin" ; then
13260 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13261fi
13262
13263if test "$wxUSE_OPENGL" = "yes"; then
13264 if test "$wxUSE_MAC" = 1; then
13265 OPENGL_LIBS="-framework OpenGL -framework AGL"
13266 else
13267
13268 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13269echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13270echo "configure:13271: checking for GL/gl.h" >&5
13271if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13272 echo $ac_n "(cached) $ac_c" 1>&6
13273else
13274 cat > conftest.$ac_ext <<EOF
13275#line 13276 "configure"
13276#include "confdefs.h"
13277#include <GL/gl.h>
13278EOF
13279ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13280{ (eval echo configure:13281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13281ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13282if test -z "$ac_err"; then
13283 rm -rf conftest*
13284 eval "ac_cv_header_$ac_safe=yes"
13285else
13286 echo "$ac_err" >&5
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13289 rm -rf conftest*
13290 eval "ac_cv_header_$ac_safe=no"
13291fi
13292rm -f conftest*
13293fi
13294if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13295 echo "$ac_t""yes" 1>&6
13296
13297 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13298echo "configure:13299: checking for -lGL" >&5
13299
13300ac_find_libraries=
13301for ac_dir in $SEARCH_LIB;
13302 do
13303 for ac_extension in a so sl dylib; do
13304 if test -f "$ac_dir/libGL.$ac_extension"; then
13305 ac_find_libraries=$ac_dir
13306 break 2
13307 fi
13308 done
13309 done
13310
13311 if test "$ac_find_libraries" != "" ; then
13312
13313 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13314 result=$?
13315 if test $result = 0; then
13316 ac_path_to_link=""
13317 else
13318 ac_path_to_link=" -L$ac_find_libraries"
13319 fi
13320
13321 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13322 LDFLAGS_GL="$LDFLAGS"
13323 else
13324 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13325 fi
13326 OPENGL_LIBS="-lGL -lGLU"
13327 echo "$ac_t""yes" 1>&6
13328 else
13329 echo "$ac_t""no" 1>&6
13330 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13331echo "configure:13332: checking for -lMesaGL" >&5
13332
13333ac_find_libraries=
13334for ac_dir in $SEARCH_LIB;
13335 do
13336 for ac_extension in a so sl dylib; do
13337 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13338 ac_find_libraries=$ac_dir
13339 break 2
13340 fi
13341 done
13342 done
13343
13344 if test "$ac_find_libraries" != "" ; then
13345
13346 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13347 result=$?
13348 if test $result = 0; then
13349 ac_path_to_link=""
13350 else
13351 ac_path_to_link=" -L$ac_find_libraries"
13352 fi
13353
13354 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13355 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13356 echo "$ac_t""yes" 1>&6
13357 else
13358 echo "$ac_t""no" 1>&6
13359 fi
13360 fi
13361
13362else
13363 echo "$ac_t""no" 1>&6
13364fi
13365
13366
13367
13368# AC_CHECK_HEADER(GL/gl.h,
13369# [
13370# AC_CHECK_LIB(GL, glFlush,
13371# [
13372# OPENGL_LIBS="-lGL -lGLU"
13373# ],
13374# [
13375# AC_CHECK_LIB(MesaGL, glFlush,
13376# [
13377# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13378# ],
13379# [],
13380# [-lm])
13381# ],
13382# [-lm])
13383# ])
13384
13385 if test "x$OPENGL_LIBS" = "x"; then
13386 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13387 fi
13388 fi
13389
13390 if test "$wxUSE_OPENGL" = "yes"; then
13391 cat >> confdefs.h <<\EOF
13392#define wxUSE_OPENGL 1
13393EOF
13394
13395 cat >> confdefs.h <<\EOF
13396#define wxUSE_GLCANVAS 1
13397EOF
13398
13399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13400 fi
13401fi
13402
13403if test -z "$TOOLKIT_VPATH" ; then
13404 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13405fi
13406
13407if test -n "$TOOLKIT" ; then
13408 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13409fi
13410
13411lib_unicode_suffix=
13412if test "$wxUSE_UNICODE" = "yes"; then
13413 lib_unicode_suffix=u
13414fi
13415
13416lib_debug_suffix=
13417if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13418 lib_debug_suffix=d
13419fi
13420
13421TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13422TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13423
13424if test "$cross_compiling" = "yes"; then
13425 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13426 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13427fi
13428
13429WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13430WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13431
13432WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13433WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13434
13435WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13436WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13437WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13438WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13439
13440WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13441WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13442
13443case "${host}" in
13444 *-*-cygwin* | *-*-mingw32* )
13445
13446
13447
13448 if test "$cross_compiling" != "yes"; then
13449 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13450 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13451 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13452 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13453 else
13454 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13455 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13456 fi
13457
13458esac
13459
13460WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13461WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13462
13463WXCONFIG_LIBS="-l${WX_LIBRARY}"
13464WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13465
13466if test "$wxUSE_OPENGL" = "yes"; then
13467 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13468 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13469fi
13470
13471
13472
13473if test "$wxUSE_SHARED" = "yes"; then
13474 case "${host}" in
13475 *-pc-os2_emx | *-pc-os2-emx | \
13476 *-pc-msdosdjgpp )
13477 wxUSE_SHARED=no
13478 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
13479 ;;
13480 esac
13481fi
13482
13483if test "$wxUSE_SHARED" = "yes"; then
13484
13485 if test "$wxUSE_OPENGL" = "yes"; then
13486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13487 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13488 else
13489 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13490 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13491 fi
13492
13493 if test "$GCC" = "yes"; then
13494 PIC_FLAG="-fPIC"
13495 fi
13496
13497 SHARED_LD="${CXX} -shared -o"
13498
13499 case "${host}" in
13500 *-hp-hpux* )
13501 if test "$GCC" == "yes"; then
13502 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13503 else
13504 LDFLAGS="$LDFLAGS -L/usr/lib"
13505
13506 SHARED_LD="${CXX} -b -o"
13507 PIC_FLAG="+Z"
13508 fi
13509
13510 if test "$wxUSE_OPENGL" = "yes"; then
13511 WX_ALL_INSTALLED="preinstall_gl"
13512 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13513 else
13514 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13515 fi
13516 ;;
13517
13518 *-*-linux* )
13519 if test "$GCC" != "yes"; then
13520 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13521echo "configure:13522: checking for Intel compiler" >&5
13522if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13523 echo $ac_n "(cached) $ac_c" 1>&6
13524else
13525
13526 cat > conftest.$ac_ext <<EOF
13527#line 13528 "configure"
13528#include "confdefs.h"
13529
13530int main() {
13531
13532 #ifndef __INTEL_COMPILER
13533 #error Not icc
13534 #endif
13535
13536; return 0; }
13537EOF
13538if { (eval echo configure:13539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13539 rm -rf conftest*
13540 wx_cv_prog_icc=yes
13541else
13542 echo "configure: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13544 rm -rf conftest*
13545 wx_cv_prog_icc=no
13546
13547fi
13548rm -f conftest*
13549
13550fi
13551
13552echo "$ac_t""$wx_cv_prog_icc" 1>&6
13553 if test "$wx_cv_prog_icc" = "yes"; then
13554 PIC_FLAG="-KPIC"
13555 fi
13556 fi
13557
13558 if test "$wxUSE_SONAME" = "yes" ; then
13559 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13560 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13561 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13562 fi
13563 ;;
13564
13565 *-*-solaris2* )
13566 if test "$GCC" = yes ; then
13567 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13568 else
13569 SHARED_LD="${CXX} -G -o"
13570 PIC_FLAG="-KPIC"
13571 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13572 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13573 fi
13574 ;;
13575
13576 *-*-darwin* )
13577 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13578 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13579 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13580 PIC_FLAG="-dynamic -fPIC"
13581 ;;
13582
13583 *-*-aix* )
13584 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13585 ;;
13586
13587 *-*-cygwin* | *-*-mingw32* )
13588
13589 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13590
13591 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13592 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13593
13594 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13595
13596 if test "$wxUSE_OPENGL" = "yes"; then
13597 WX_ALL_INSTALLED="preinstall_gl"
13598 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13599 else
13600 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13601 fi
13602 ;;
13603
13604 *-*-beos* )
13605 SHARED_LD="${LD} -shared -o"
13606 ;;
13607
13608 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13609 *-*-sunos4* | \
13610 *-*-irix5* | *-*-irix6* | \
13611 *-*-osf* | \
13612 *-*-dgux5* | \
13613 *-*-sysv5* )
13614 ;;
13615
13616 *)
13617 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13618 esac
13619
13620 if test "x$WX_TARGET_LIBRARY" = "x"; then
13621 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13622 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13623 fi
13624
13625 WX_TARGET_LIBRARY_TYPE="so"
13626 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13627fi
13628
13629if test "$wxUSE_SHARED" = "no"; then
13630
13631 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13632 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13633 fi
13634
13635 if test "$wxUSE_MAC" = 1; then
13636 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13637 fi
13638
13639 if test "$wxUSE_OPENGL" = "yes"; then
13640 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13641 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13642 else
13643 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13644 fi
13645
13646 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13647 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13648
13649 WX_TARGET_LIBRARY_TYPE="a"
13650 INSTALL_LIBRARY='$(INSTALL_DATA)'
13651fi
13652
13653if test "$wxUSE_MAC" = 1; then
13654 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13655 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13656 # Extract the first word of "Rez", so it can be a program name with args.
13657set dummy Rez; ac_word=$2
13658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13659echo "configure:13660: checking for $ac_word" >&5
13660if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13661 echo $ac_n "(cached) $ac_c" 1>&6
13662else
13663 if test -n "$RESCOMP"; then
13664 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13665else
13666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13667 ac_dummy="$PATH"
13668 for ac_dir in $ac_dummy; do
13669 test -z "$ac_dir" && ac_dir=.
13670 if test -f $ac_dir/$ac_word; then
13671 ac_cv_prog_RESCOMP="Rez"
13672 break
13673 fi
13674 done
13675 IFS="$ac_save_ifs"
13676 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13677fi
13678fi
13679RESCOMP="$ac_cv_prog_RESCOMP"
13680if test -n "$RESCOMP"; then
13681 echo "$ac_t""$RESCOMP" 1>&6
13682else
13683 echo "$ac_t""no" 1>&6
13684fi
13685
13686 # Extract the first word of "DeRez", so it can be a program name with args.
13687set dummy DeRez; ac_word=$2
13688echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13689echo "configure:13690: checking for $ac_word" >&5
13690if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
13692else
13693 if test -n "$DEREZ"; then
13694 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13695else
13696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13697 ac_dummy="$PATH"
13698 for ac_dir in $ac_dummy; do
13699 test -z "$ac_dir" && ac_dir=.
13700 if test -f $ac_dir/$ac_word; then
13701 ac_cv_prog_DEREZ="DeRez"
13702 break
13703 fi
13704 done
13705 IFS="$ac_save_ifs"
13706 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13707fi
13708fi
13709DEREZ="$ac_cv_prog_DEREZ"
13710if test -n "$DEREZ"; then
13711 echo "$ac_t""$DEREZ" 1>&6
13712else
13713 echo "$ac_t""no" 1>&6
13714fi
13715
13716 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13717 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13718 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13719else
13720 if test "$wxUSE_PM" = 1; then
13721 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
13722 fi
13723fi
13724
13725
13726if test "$wxUSE_MAC" != 1; then
13727 for ac_hdr in strings.h
13728do
13729ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13730echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13731echo "configure:13732: checking for $ac_hdr" >&5
13732if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13734else
13735 cat > conftest.$ac_ext <<EOF
13736#line 13737 "configure"
13737#include "confdefs.h"
13738#include <$ac_hdr>
13739EOF
13740ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13741{ (eval echo configure:13742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13742ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13743if test -z "$ac_err"; then
13744 rm -rf conftest*
13745 eval "ac_cv_header_$ac_safe=yes"
13746else
13747 echo "$ac_err" >&5
13748 echo "configure: failed program was:" >&5
13749 cat conftest.$ac_ext >&5
13750 rm -rf conftest*
13751 eval "ac_cv_header_$ac_safe=no"
13752fi
13753rm -f conftest*
13754fi
13755if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13758 cat >> confdefs.h <<EOF
13759#define $ac_tr_hdr 1
13760EOF
13761
13762else
13763 echo "$ac_t""no" 1>&6
13764fi
13765done
13766
13767fi
13768
13769for ac_hdr in stdlib.h
13770do
13771ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13772echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13773echo "configure:13774: checking for $ac_hdr" >&5
13774if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13775 echo $ac_n "(cached) $ac_c" 1>&6
13776else
13777 cat > conftest.$ac_ext <<EOF
13778#line 13779 "configure"
13779#include "confdefs.h"
13780#include <$ac_hdr>
13781EOF
13782ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13783{ (eval echo configure:13784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13784ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13785if test -z "$ac_err"; then
13786 rm -rf conftest*
13787 eval "ac_cv_header_$ac_safe=yes"
13788else
13789 echo "$ac_err" >&5
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13792 rm -rf conftest*
13793 eval "ac_cv_header_$ac_safe=no"
13794fi
13795rm -f conftest*
13796fi
13797if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13798 echo "$ac_t""yes" 1>&6
13799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13800 cat >> confdefs.h <<EOF
13801#define $ac_tr_hdr 1
13802EOF
13803
13804else
13805 echo "$ac_t""no" 1>&6
13806fi
13807done
13808
13809for ac_hdr in malloc.h
13810do
13811ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13812echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13813echo "configure:13814: checking for $ac_hdr" >&5
13814if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816else
13817 cat > conftest.$ac_ext <<EOF
13818#line 13819 "configure"
13819#include "confdefs.h"
13820#include <$ac_hdr>
13821EOF
13822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13823{ (eval echo configure:13824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13825if test -z "$ac_err"; then
13826 rm -rf conftest*
13827 eval "ac_cv_header_$ac_safe=yes"
13828else
13829 echo "$ac_err" >&5
13830 echo "configure: failed program was:" >&5
13831 cat conftest.$ac_ext >&5
13832 rm -rf conftest*
13833 eval "ac_cv_header_$ac_safe=no"
13834fi
13835rm -f conftest*
13836fi
13837if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13838 echo "$ac_t""yes" 1>&6
13839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13840 cat >> confdefs.h <<EOF
13841#define $ac_tr_hdr 1
13842EOF
13843
13844else
13845 echo "$ac_t""no" 1>&6
13846fi
13847done
13848
13849for ac_hdr in unistd.h
13850do
13851ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13852echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13853echo "configure:13854: checking for $ac_hdr" >&5
13854if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13855 echo $ac_n "(cached) $ac_c" 1>&6
13856else
13857 cat > conftest.$ac_ext <<EOF
13858#line 13859 "configure"
13859#include "confdefs.h"
13860#include <$ac_hdr>
13861EOF
13862ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13863{ (eval echo configure:13864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13864ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13865if test -z "$ac_err"; then
13866 rm -rf conftest*
13867 eval "ac_cv_header_$ac_safe=yes"
13868else
13869 echo "$ac_err" >&5
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13872 rm -rf conftest*
13873 eval "ac_cv_header_$ac_safe=no"
13874fi
13875rm -f conftest*
13876fi
13877if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13880 cat >> confdefs.h <<EOF
13881#define $ac_tr_hdr 1
13882EOF
13883
13884else
13885 echo "$ac_t""no" 1>&6
13886fi
13887done
13888
13889for ac_hdr in wchar.h
13890do
13891ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13892echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13893echo "configure:13894: checking for $ac_hdr" >&5
13894if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13895 echo $ac_n "(cached) $ac_c" 1>&6
13896else
13897 cat > conftest.$ac_ext <<EOF
13898#line 13899 "configure"
13899#include "confdefs.h"
13900#include <$ac_hdr>
13901EOF
13902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13903{ (eval echo configure:13904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13905if test -z "$ac_err"; then
13906 rm -rf conftest*
13907 eval "ac_cv_header_$ac_safe=yes"
13908else
13909 echo "$ac_err" >&5
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13912 rm -rf conftest*
13913 eval "ac_cv_header_$ac_safe=no"
13914fi
13915rm -f conftest*
13916fi
13917if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13918 echo "$ac_t""yes" 1>&6
13919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13920 cat >> confdefs.h <<EOF
13921#define $ac_tr_hdr 1
13922EOF
13923
13924else
13925 echo "$ac_t""no" 1>&6
13926fi
13927done
13928
13929for ac_hdr in wcstr.h
13930do
13931ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13932echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13933echo "configure:13934: checking for $ac_hdr" >&5
13934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13935 echo $ac_n "(cached) $ac_c" 1>&6
13936else
13937 cat > conftest.$ac_ext <<EOF
13938#line 13939 "configure"
13939#include "confdefs.h"
13940#include <$ac_hdr>
13941EOF
13942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13943{ (eval echo configure:13944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13945if test -z "$ac_err"; then
13946 rm -rf conftest*
13947 eval "ac_cv_header_$ac_safe=yes"
13948else
13949 echo "$ac_err" >&5
13950 echo "configure: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 rm -rf conftest*
13953 eval "ac_cv_header_$ac_safe=no"
13954fi
13955rm -f conftest*
13956fi
13957if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13958 echo "$ac_t""yes" 1>&6
13959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13960 cat >> confdefs.h <<EOF
13961#define $ac_tr_hdr 1
13962EOF
13963
13964else
13965 echo "$ac_t""no" 1>&6
13966fi
13967done
13968
13969for ac_hdr in wctype.h
13970do
13971ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13972echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13973echo "configure:13974: checking for $ac_hdr" >&5
13974if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13975 echo $ac_n "(cached) $ac_c" 1>&6
13976else
13977 cat > conftest.$ac_ext <<EOF
13978#line 13979 "configure"
13979#include "confdefs.h"
13980#include <$ac_hdr>
13981EOF
13982ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13983{ (eval echo configure:13984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13984ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13985if test -z "$ac_err"; then
13986 rm -rf conftest*
13987 eval "ac_cv_header_$ac_safe=yes"
13988else
13989 echo "$ac_err" >&5
13990 echo "configure: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13992 rm -rf conftest*
13993 eval "ac_cv_header_$ac_safe=no"
13994fi
13995rm -f conftest*
13996fi
13997if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13998 echo "$ac_t""yes" 1>&6
13999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14000 cat >> confdefs.h <<EOF
14001#define $ac_tr_hdr 1
14002EOF
14003
14004else
14005 echo "$ac_t""no" 1>&6
14006fi
14007done
14008
14009for ac_hdr in fnmatch.h
14010do
14011ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14012echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14013echo "configure:14014: checking for $ac_hdr" >&5
14014if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14015 echo $ac_n "(cached) $ac_c" 1>&6
14016else
14017 cat > conftest.$ac_ext <<EOF
14018#line 14019 "configure"
14019#include "confdefs.h"
14020#include <$ac_hdr>
14021EOF
14022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14023{ (eval echo configure:14024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14025if test -z "$ac_err"; then
14026 rm -rf conftest*
14027 eval "ac_cv_header_$ac_safe=yes"
14028else
14029 echo "$ac_err" >&5
14030 echo "configure: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14032 rm -rf conftest*
14033 eval "ac_cv_header_$ac_safe=no"
14034fi
14035rm -f conftest*
14036fi
14037if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14040 cat >> confdefs.h <<EOF
14041#define $ac_tr_hdr 1
14042EOF
14043
14044else
14045 echo "$ac_t""no" 1>&6
14046fi
14047done
14048
14049for ac_hdr in langinfo.h
14050do
14051ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14052echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14053echo "configure:14054: checking for $ac_hdr" >&5
14054if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14056else
14057 cat > conftest.$ac_ext <<EOF
14058#line 14059 "configure"
14059#include "confdefs.h"
14060#include <$ac_hdr>
14061EOF
14062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14063{ (eval echo configure:14064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14065if test -z "$ac_err"; then
14066 rm -rf conftest*
14067 eval "ac_cv_header_$ac_safe=yes"
14068else
14069 echo "$ac_err" >&5
14070 echo "configure: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14072 rm -rf conftest*
14073 eval "ac_cv_header_$ac_safe=no"
14074fi
14075rm -f conftest*
14076fi
14077if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14078 echo "$ac_t""yes" 1>&6
14079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14080 cat >> confdefs.h <<EOF
14081#define $ac_tr_hdr 1
14082EOF
14083
14084else
14085 echo "$ac_t""no" 1>&6
14086fi
14087done
14088
14089
14090if test "$wxUSE_GUI" = "yes"; then
14091 if test "$wxUSE_UNIX" = "yes"; then
14092 for ac_hdr in X11/XKBlib.h
14093do
14094ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14095echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14096echo "configure:14097: checking for $ac_hdr" >&5
14097if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14098 echo $ac_n "(cached) $ac_c" 1>&6
14099else
14100 cat > conftest.$ac_ext <<EOF
14101#line 14102 "configure"
14102#include "confdefs.h"
14103#include <$ac_hdr>
14104EOF
14105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14106{ (eval echo configure:14107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14108if test -z "$ac_err"; then
14109 rm -rf conftest*
14110 eval "ac_cv_header_$ac_safe=yes"
14111else
14112 echo "$ac_err" >&5
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 eval "ac_cv_header_$ac_safe=no"
14117fi
14118rm -f conftest*
14119fi
14120if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14121 echo "$ac_t""yes" 1>&6
14122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14123 cat >> confdefs.h <<EOF
14124#define $ac_tr_hdr 1
14125EOF
14126
14127else
14128 echo "$ac_t""no" 1>&6
14129fi
14130done
14131
14132 fi
14133fi
14134
14135
14136echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14137echo "configure:14138: checking for ANSI C header files" >&5
14138if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14139 echo $ac_n "(cached) $ac_c" 1>&6
14140else
14141 cat > conftest.$ac_ext <<EOF
14142#line 14143 "configure"
14143#include "confdefs.h"
14144#include <stdlib.h>
14145#include <stdarg.h>
14146#include <string.h>
14147#include <float.h>
14148EOF
14149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14150{ (eval echo configure:14151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14152if test -z "$ac_err"; then
14153 rm -rf conftest*
14154 ac_cv_header_stdc=yes
14155else
14156 echo "$ac_err" >&5
14157 echo "configure: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 rm -rf conftest*
14160 ac_cv_header_stdc=no
14161fi
14162rm -f conftest*
14163
14164if test $ac_cv_header_stdc = yes; then
14165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14166cat > conftest.$ac_ext <<EOF
14167#line 14168 "configure"
14168#include "confdefs.h"
14169#include <string.h>
14170EOF
14171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 egrep "memchr" >/dev/null 2>&1; then
14173 :
14174else
14175 rm -rf conftest*
14176 ac_cv_header_stdc=no
14177fi
14178rm -f conftest*
14179
14180fi
14181
14182if test $ac_cv_header_stdc = yes; then
14183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14184cat > conftest.$ac_ext <<EOF
14185#line 14186 "configure"
14186#include "confdefs.h"
14187#include <stdlib.h>
14188EOF
14189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14190 egrep "free" >/dev/null 2>&1; then
14191 :
14192else
14193 rm -rf conftest*
14194 ac_cv_header_stdc=no
14195fi
14196rm -f conftest*
14197
14198fi
14199
14200if test $ac_cv_header_stdc = yes; then
14201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14202if test "$cross_compiling" = yes; then
14203 :
14204else
14205 cat > conftest.$ac_ext <<EOF
14206#line 14207 "configure"
14207#include "confdefs.h"
14208#include <ctype.h>
14209#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14210#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14211#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14212int main () { int i; for (i = 0; i < 256; i++)
14213if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14214exit (0); }
14215
14216EOF
14217if { (eval echo configure:14218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14218then
14219 :
14220else
14221 echo "configure: failed program was:" >&5
14222 cat conftest.$ac_ext >&5
14223 rm -fr conftest*
14224 ac_cv_header_stdc=no
14225fi
14226rm -fr conftest*
14227fi
14228
14229fi
14230fi
14231
14232echo "$ac_t""$ac_cv_header_stdc" 1>&6
14233if test $ac_cv_header_stdc = yes; then
14234 cat >> confdefs.h <<\EOF
14235#define STDC_HEADERS 1
14236EOF
14237
14238fi
14239
14240echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14241echo "configure:14242: checking for mode_t" >&5
14242if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14244else
14245 cat > conftest.$ac_ext <<EOF
14246#line 14247 "configure"
14247#include "confdefs.h"
14248#include <sys/types.h>
14249#if STDC_HEADERS
14250#include <stdlib.h>
14251#include <stddef.h>
14252#endif
14253EOF
14254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14255 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14256 rm -rf conftest*
14257 ac_cv_type_mode_t=yes
14258else
14259 rm -rf conftest*
14260 ac_cv_type_mode_t=no
14261fi
14262rm -f conftest*
14263
14264fi
14265echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14266if test $ac_cv_type_mode_t = no; then
14267 cat >> confdefs.h <<\EOF
14268#define mode_t int
14269EOF
14270
14271fi
14272
14273echo $ac_n "checking for off_t""... $ac_c" 1>&6
14274echo "configure:14275: checking for off_t" >&5
14275if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14276 echo $ac_n "(cached) $ac_c" 1>&6
14277else
14278 cat > conftest.$ac_ext <<EOF
14279#line 14280 "configure"
14280#include "confdefs.h"
14281#include <sys/types.h>
14282#if STDC_HEADERS
14283#include <stdlib.h>
14284#include <stddef.h>
14285#endif
14286EOF
14287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14289 rm -rf conftest*
14290 ac_cv_type_off_t=yes
14291else
14292 rm -rf conftest*
14293 ac_cv_type_off_t=no
14294fi
14295rm -f conftest*
14296
14297fi
14298echo "$ac_t""$ac_cv_type_off_t" 1>&6
14299if test $ac_cv_type_off_t = no; then
14300 cat >> confdefs.h <<\EOF
14301#define off_t long
14302EOF
14303
14304fi
14305
14306echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14307echo "configure:14308: checking for pid_t" >&5
14308if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
14310else
14311 cat > conftest.$ac_ext <<EOF
14312#line 14313 "configure"
14313#include "confdefs.h"
14314#include <sys/types.h>
14315#if STDC_HEADERS
14316#include <stdlib.h>
14317#include <stddef.h>
14318#endif
14319EOF
14320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14321 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14322 rm -rf conftest*
14323 ac_cv_type_pid_t=yes
14324else
14325 rm -rf conftest*
14326 ac_cv_type_pid_t=no
14327fi
14328rm -f conftest*
14329
14330fi
14331echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14332if test $ac_cv_type_pid_t = no; then
14333 cat >> confdefs.h <<\EOF
14334#define pid_t int
14335EOF
14336
14337fi
14338
14339echo $ac_n "checking for size_t""... $ac_c" 1>&6
14340echo "configure:14341: checking for size_t" >&5
14341if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14342 echo $ac_n "(cached) $ac_c" 1>&6
14343else
14344 cat > conftest.$ac_ext <<EOF
14345#line 14346 "configure"
14346#include "confdefs.h"
14347#include <sys/types.h>
14348#if STDC_HEADERS
14349#include <stdlib.h>
14350#include <stddef.h>
14351#endif
14352EOF
14353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14354 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14355 rm -rf conftest*
14356 ac_cv_type_size_t=yes
14357else
14358 rm -rf conftest*
14359 ac_cv_type_size_t=no
14360fi
14361rm -f conftest*
14362
14363fi
14364echo "$ac_t""$ac_cv_type_size_t" 1>&6
14365if test $ac_cv_type_size_t = no; then
14366 cat >> confdefs.h <<\EOF
14367#define size_t unsigned
14368EOF
14369
14370fi
14371
14372echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14373echo "configure:14374: checking for uid_t in sys/types.h" >&5
14374if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14375 echo $ac_n "(cached) $ac_c" 1>&6
14376else
14377 cat > conftest.$ac_ext <<EOF
14378#line 14379 "configure"
14379#include "confdefs.h"
14380#include <sys/types.h>
14381EOF
14382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14383 egrep "uid_t" >/dev/null 2>&1; then
14384 rm -rf conftest*
14385 ac_cv_type_uid_t=yes
14386else
14387 rm -rf conftest*
14388 ac_cv_type_uid_t=no
14389fi
14390rm -f conftest*
14391
14392fi
14393
14394echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14395if test $ac_cv_type_uid_t = no; then
14396 cat >> confdefs.h <<\EOF
14397#define uid_t int
14398EOF
14399
14400 cat >> confdefs.h <<\EOF
14401#define gid_t int
14402EOF
14403
14404fi
14405
14406
14407echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14408echo "configure:14409: checking for wchar_t" >&5
14409if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14410 echo $ac_n "(cached) $ac_c" 1>&6
14411else
14412
14413 cat > conftest.$ac_ext <<EOF
14414#line 14415 "configure"
14415#include "confdefs.h"
14416
14417 #ifdef HAVE_WCHAR_H
14418 # ifdef __CYGWIN__
14419 # include <stddef.h>
14420 # endif
14421 # include <wchar.h>
14422 #endif
14423 #ifdef HAVE_STDLIB_H
14424 # include <stdlib.h>
14425 #endif
14426
14427int main() {
14428
14429 wchar_t wc, *ws;
14430 wc = L'a';
14431 ws = L"Hello, world!";
14432
14433; return 0; }
14434EOF
14435if { (eval echo configure:14436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14436 rm -rf conftest*
14437 wx_cv_type_wchar_t=yes
14438else
14439 echo "configure: failed program was:" >&5
14440 cat conftest.$ac_ext >&5
14441 rm -rf conftest*
14442 wx_cv_type_wchar_t=no
14443
14444fi
14445rm -f conftest*
14446
14447fi
14448
14449echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14450
14451if test "$wx_cv_type_wchar_t" = "yes"; then
14452 cat >> confdefs.h <<\EOF
14453#define wxUSE_WCHAR_T 1
14454EOF
14455
14456fi
14457
14458
14459ac_ext=C
14460# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14461ac_cpp='$CXXCPP $CPPFLAGS'
14462ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14463ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14464cross_compiling=$ac_cv_prog_cxx_cross
14465
14466echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14467echo "configure:14468: checking if size_t is unsigned int" >&5
14468if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14469 echo $ac_n "(cached) $ac_c" 1>&6
14470else
14471 cat > conftest.$ac_ext <<EOF
14472#line 14473 "configure"
14473#include "confdefs.h"
14474#include <stddef.h>
14475int main() {
14476
14477 return 0; }
14478
14479 struct Foo { void foo(size_t); void foo(unsigned int); };
14480
14481 int bar() {
14482
14483; return 0; }
14484EOF
14485if { (eval echo configure:14486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14486 rm -rf conftest*
14487 wx_cv_size_t_is_uint=no
14488else
14489 echo "configure: failed program was:" >&5
14490 cat conftest.$ac_ext >&5
14491 rm -rf conftest*
14492 wx_cv_size_t_is_uint=yes
14493
14494fi
14495rm -f conftest*
14496
14497fi
14498
14499echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14500
14501if test "$wx_cv_size_t_is_uint" = "yes"; then
14502 cat >> confdefs.h <<\EOF
14503#define wxSIZE_T_IS_UINT 1
14504EOF
14505
14506else
14507 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14508echo "configure:14509: checking if size_t is unsigned long" >&5
14509if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14510 echo $ac_n "(cached) $ac_c" 1>&6
14511else
14512 cat > conftest.$ac_ext <<EOF
14513#line 14514 "configure"
14514#include "confdefs.h"
14515#include <stddef.h>
14516int main() {
14517
14518 return 0; }
14519
14520 struct Foo { void foo(size_t); void foo(unsigned long); };
14521
14522 int bar() {
14523
14524; return 0; }
14525EOF
14526if { (eval echo configure:14527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14527 rm -rf conftest*
14528 wx_cv_size_t_is_ulong=no
14529else
14530 echo "configure: failed program was:" >&5
14531 cat conftest.$ac_ext >&5
14532 rm -rf conftest*
14533 wx_cv_size_t_is_ulong=yes
14534
14535fi
14536rm -f conftest*
14537
14538fi
14539
14540echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14541
14542 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14543 cat >> confdefs.h <<\EOF
14544#define wxSIZE_T_IS_ULONG 1
14545EOF
14546
14547 fi
14548fi
14549
14550ac_ext=c
14551# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14552ac_cpp='$CPP $CPPFLAGS'
14553ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14554ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14555cross_compiling=$ac_cv_prog_cc_cross
14556
14557
14558
14559echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14560echo "configure:14561: checking for pw_gecos in struct passwd" >&5
14561if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14562 echo $ac_n "(cached) $ac_c" 1>&6
14563else
14564
14565 cat > conftest.$ac_ext <<EOF
14566#line 14567 "configure"
14567#include "confdefs.h"
14568#include <pwd.h>
14569int main() {
14570
14571 char *p;
14572 struct passwd *pw;
14573 p = pw->pw_gecos;
14574
14575; return 0; }
14576EOF
14577if { (eval echo configure:14578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14578 rm -rf conftest*
14579
14580 wx_cv_struct_pw_gecos=yes
14581
14582else
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586
14587 wx_cv_struct_pw_gecos=no
14588
14589
14590fi
14591rm -f conftest*
14592
14593
14594fi
14595
14596echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14597
14598if test "$wx_cv_struct_pw_gecos" = "yes"; then
14599 cat >> confdefs.h <<\EOF
14600#define HAVE_PW_GECOS 1
14601EOF
14602
14603fi
14604
14605
14606echo $ac_n "checking for working const""... $ac_c" 1>&6
14607echo "configure:14608: checking for working const" >&5
14608if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610else
14611 cat > conftest.$ac_ext <<EOF
14612#line 14613 "configure"
14613#include "confdefs.h"
14614
14615int main() {
14616
14617/* Ultrix mips cc rejects this. */
14618typedef int charset[2]; const charset x;
14619/* SunOS 4.1.1 cc rejects this. */
14620char const *const *ccp;
14621char **p;
14622/* NEC SVR4.0.2 mips cc rejects this. */
14623struct point {int x, y;};
14624static struct point const zero = {0,0};
14625/* AIX XL C 1.02.0.0 rejects this.
14626 It does not let you subtract one const X* pointer from another in an arm
14627 of an if-expression whose if-part is not a constant expression */
14628const char *g = "string";
14629ccp = &g + (g ? g-g : 0);
14630/* HPUX 7.0 cc rejects these. */
14631++ccp;
14632p = (char**) ccp;
14633ccp = (char const *const *) p;
14634{ /* SCO 3.2v4 cc rejects this. */
14635 char *t;
14636 char const *s = 0 ? (char *) 0 : (char const *) 0;
14637
14638 *t++ = 0;
14639}
14640{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14641 int x[] = {25, 17};
14642 const int *foo = &x[0];
14643 ++foo;
14644}
14645{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14646 typedef const int *iptr;
14647 iptr p = 0;
14648 ++p;
14649}
14650{ /* AIX XL C 1.02.0.0 rejects this saying
14651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14652 struct s { int j; const int *ap[3]; };
14653 struct s *b; b->j = 5;
14654}
14655{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14656 const int foo = 10;
14657}
14658
14659; return 0; }
14660EOF
14661if { (eval echo configure:14662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14662 rm -rf conftest*
14663 ac_cv_c_const=yes
14664else
14665 echo "configure: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14667 rm -rf conftest*
14668 ac_cv_c_const=no
14669fi
14670rm -f conftest*
14671fi
14672
14673echo "$ac_t""$ac_cv_c_const" 1>&6
14674if test $ac_cv_c_const = no; then
14675 cat >> confdefs.h <<\EOF
14676#define const
14677EOF
14678
14679fi
14680
14681echo $ac_n "checking for inline""... $ac_c" 1>&6
14682echo "configure:14683: checking for inline" >&5
14683if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14684 echo $ac_n "(cached) $ac_c" 1>&6
14685else
14686 ac_cv_c_inline=no
14687for ac_kw in inline __inline__ __inline; do
14688 cat > conftest.$ac_ext <<EOF
14689#line 14690 "configure"
14690#include "confdefs.h"
14691
14692int main() {
14693} $ac_kw foo() {
14694; return 0; }
14695EOF
14696if { (eval echo configure:14697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14697 rm -rf conftest*
14698 ac_cv_c_inline=$ac_kw; break
14699else
14700 echo "configure: failed program was:" >&5
14701 cat conftest.$ac_ext >&5
14702fi
14703rm -f conftest*
14704done
14705
14706fi
14707
14708echo "$ac_t""$ac_cv_c_inline" 1>&6
14709case "$ac_cv_c_inline" in
14710 inline | yes) ;;
14711 no) cat >> confdefs.h <<\EOF
14712#define inline
14713EOF
14714 ;;
14715 *) cat >> confdefs.h <<EOF
14716#define inline $ac_cv_c_inline
14717EOF
14718 ;;
14719esac
14720
14721
14722echo $ac_n "checking size of char""... $ac_c" 1>&6
14723echo "configure:14724: checking size of char" >&5
14724if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14725 echo $ac_n "(cached) $ac_c" 1>&6
14726else
14727 if test "$cross_compiling" = yes; then
14728 ac_cv_sizeof_char=1
14729else
14730 cat > conftest.$ac_ext <<EOF
14731#line 14732 "configure"
14732#include "confdefs.h"
14733#include <stdio.h>
14734main()
14735{
14736 FILE *f=fopen("conftestval", "w");
14737 if (!f) exit(1);
14738 fprintf(f, "%d\n", sizeof(char));
14739 exit(0);
14740}
14741EOF
14742if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14743then
14744 ac_cv_sizeof_char=`cat conftestval`
14745else
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 rm -fr conftest*
14749 ac_cv_sizeof_char=0
14750fi
14751rm -fr conftest*
14752fi
14753
14754fi
14755echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14756cat >> confdefs.h <<EOF
14757#define SIZEOF_CHAR $ac_cv_sizeof_char
14758EOF
14759
14760
14761echo $ac_n "checking size of short""... $ac_c" 1>&6
14762echo "configure:14763: checking size of short" >&5
14763if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14764 echo $ac_n "(cached) $ac_c" 1>&6
14765else
14766 if test "$cross_compiling" = yes; then
14767 ac_cv_sizeof_short=2
14768else
14769 cat > conftest.$ac_ext <<EOF
14770#line 14771 "configure"
14771#include "confdefs.h"
14772#include <stdio.h>
14773main()
14774{
14775 FILE *f=fopen("conftestval", "w");
14776 if (!f) exit(1);
14777 fprintf(f, "%d\n", sizeof(short));
14778 exit(0);
14779}
14780EOF
14781if { (eval echo configure:14782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14782then
14783 ac_cv_sizeof_short=`cat conftestval`
14784else
14785 echo "configure: failed program was:" >&5
14786 cat conftest.$ac_ext >&5
14787 rm -fr conftest*
14788 ac_cv_sizeof_short=0
14789fi
14790rm -fr conftest*
14791fi
14792
14793fi
14794echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14795cat >> confdefs.h <<EOF
14796#define SIZEOF_SHORT $ac_cv_sizeof_short
14797EOF
14798
14799
14800echo $ac_n "checking size of int *""... $ac_c" 1>&6
14801echo "configure:14802: checking size of int *" >&5
14802if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14803 echo $ac_n "(cached) $ac_c" 1>&6
14804else
14805 if test "$cross_compiling" = yes; then
14806 ac_cv_sizeof_int_p=4
14807else
14808 cat > conftest.$ac_ext <<EOF
14809#line 14810 "configure"
14810#include "confdefs.h"
14811#include <stdio.h>
14812main()
14813{
14814 FILE *f=fopen("conftestval", "w");
14815 if (!f) exit(1);
14816 fprintf(f, "%d\n", sizeof(int *));
14817 exit(0);
14818}
14819EOF
14820if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14821then
14822 ac_cv_sizeof_int_p=`cat conftestval`
14823else
14824 echo "configure: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 rm -fr conftest*
14827 ac_cv_sizeof_int_p=0
14828fi
14829rm -fr conftest*
14830fi
14831
14832fi
14833echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14834cat >> confdefs.h <<EOF
14835#define SIZEOF_INT_P $ac_cv_sizeof_int_p
14836EOF
14837
14838
14839echo $ac_n "checking size of int""... $ac_c" 1>&6
14840echo "configure:14841: checking size of int" >&5
14841if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14843else
14844 if test "$cross_compiling" = yes; then
14845 ac_cv_sizeof_int=4
14846else
14847 cat > conftest.$ac_ext <<EOF
14848#line 14849 "configure"
14849#include "confdefs.h"
14850#include <stdio.h>
14851main()
14852{
14853 FILE *f=fopen("conftestval", "w");
14854 if (!f) exit(1);
14855 fprintf(f, "%d\n", sizeof(int));
14856 exit(0);
14857}
14858EOF
14859if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14860then
14861 ac_cv_sizeof_int=`cat conftestval`
14862else
14863 echo "configure: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14865 rm -fr conftest*
14866 ac_cv_sizeof_int=0
14867fi
14868rm -fr conftest*
14869fi
14870
14871fi
14872echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14873cat >> confdefs.h <<EOF
14874#define SIZEOF_INT $ac_cv_sizeof_int
14875EOF
14876
14877
14878echo $ac_n "checking size of long""... $ac_c" 1>&6
14879echo "configure:14880: checking size of long" >&5
14880if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14881 echo $ac_n "(cached) $ac_c" 1>&6
14882else
14883 if test "$cross_compiling" = yes; then
14884 ac_cv_sizeof_long=4
14885else
14886 cat > conftest.$ac_ext <<EOF
14887#line 14888 "configure"
14888#include "confdefs.h"
14889#include <stdio.h>
14890main()
14891{
14892 FILE *f=fopen("conftestval", "w");
14893 if (!f) exit(1);
14894 fprintf(f, "%d\n", sizeof(long));
14895 exit(0);
14896}
14897EOF
14898if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14899then
14900 ac_cv_sizeof_long=`cat conftestval`
14901else
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 rm -fr conftest*
14905 ac_cv_sizeof_long=0
14906fi
14907rm -fr conftest*
14908fi
14909
14910fi
14911echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14912cat >> confdefs.h <<EOF
14913#define SIZEOF_LONG $ac_cv_sizeof_long
14914EOF
14915
14916
14917echo $ac_n "checking size of long long""... $ac_c" 1>&6
14918echo "configure:14919: checking size of long long" >&5
14919if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14921else
14922 if test "$cross_compiling" = yes; then
14923 ac_cv_sizeof_long_long=0
14924else
14925 cat > conftest.$ac_ext <<EOF
14926#line 14927 "configure"
14927#include "confdefs.h"
14928#include <stdio.h>
14929main()
14930{
14931 FILE *f=fopen("conftestval", "w");
14932 if (!f) exit(1);
14933 fprintf(f, "%d\n", sizeof(long long));
14934 exit(0);
14935}
14936EOF
14937if { (eval echo configure:14938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14938then
14939 ac_cv_sizeof_long_long=`cat conftestval`
14940else
14941 echo "configure: failed program was:" >&5
14942 cat conftest.$ac_ext >&5
14943 rm -fr conftest*
14944 ac_cv_sizeof_long_long=0
14945fi
14946rm -fr conftest*
14947fi
14948
14949fi
14950echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14951cat >> confdefs.h <<EOF
14952#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14953EOF
14954
14955
14956
14957echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14958echo "configure:14959: checking size of wchar_t" >&5
14959if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14960 echo $ac_n "(cached) $ac_c" 1>&6
14961else
14962
14963 if test "$cross_compiling" = yes; then
14964 wx_cv_sizeof_wchar_t=4
14965
14966else
14967 cat > conftest.$ac_ext <<EOF
14968#line 14969 "configure"
14969#include "confdefs.h"
14970
14971 #ifdef HAVE_WCHAR_H
14972 # ifdef __CYGWIN__
14973 # include <stddef.h>
14974 # endif
14975 # include <wchar.h>
14976 #endif
14977 #ifdef HAVE_STDLIB_H
14978 # include <stdlib.h>
14979 #endif
14980 #include <stdio.h>
14981 int main()
14982 {
14983 FILE *f=fopen("conftestval", "w");
14984 if (!f) exit(1);
14985 fprintf(f, "%i", sizeof(wchar_t));
14986 exit(0);
14987 }
14988
14989EOF
14990if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14991then
14992 wx_cv_sizeof_wchar_t=`cat conftestval`
14993else
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 rm -fr conftest*
14997 wx_cv_sizeof_wchar_t=0
14998fi
14999rm -fr conftest*
15000fi
15001
15002
15003fi
15004
15005echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
15006
15007cat >> confdefs.h <<EOF
15008#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
15009EOF
15010
15011
15012echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15013echo "configure:15014: checking whether byte ordering is bigendian" >&5
15014if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
15015 echo $ac_n "(cached) $ac_c" 1>&6
15016else
15017 ac_cv_c_bigendian=unknown
15018# See if sys/param.h defines the BYTE_ORDER macro.
15019cat > conftest.$ac_ext <<EOF
15020#line 15021 "configure"
15021#include "confdefs.h"
15022#include <sys/types.h>
15023#include <sys/param.h>
15024int main() {
15025
15026#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15027 bogus endian macros
15028#endif
15029; return 0; }
15030EOF
15031if { (eval echo configure:15032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15032 rm -rf conftest*
15033 # It does; now see whether it defined to BIG_ENDIAN or not.
15034cat > conftest.$ac_ext <<EOF
15035#line 15036 "configure"
15036#include "confdefs.h"
15037#include <sys/types.h>
15038#include <sys/param.h>
15039int main() {
15040
15041#if BYTE_ORDER != BIG_ENDIAN
15042 not big endian
15043#endif
15044; return 0; }
15045EOF
15046if { (eval echo configure:15047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15047 rm -rf conftest*
15048 ac_cv_c_bigendian=yes
15049else
15050 echo "configure: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15052 rm -rf conftest*
15053 ac_cv_c_bigendian=no
15054fi
15055rm -f conftest*
15056else
15057 echo "configure: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059fi
15060rm -f conftest*
15061if test $ac_cv_c_bigendian = unknown; then
15062if test "$cross_compiling" = yes; then
15063 ac_cv_c_bigendian=unknown
15064else
15065 cat > conftest.$ac_ext <<EOF
15066#line 15067 "configure"
15067#include "confdefs.h"
15068main () {
15069 /* Are we little or big endian? From Harbison&Steele. */
15070 union
15071 {
15072 long l;
15073 char c[sizeof (long)];
15074 } u;
15075 u.l = 1;
15076 exit (u.c[sizeof (long) - 1] == 1);
15077}
15078EOF
15079if { (eval echo configure:15080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15080then
15081 ac_cv_c_bigendian=no
15082else
15083 echo "configure: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15085 rm -fr conftest*
15086 ac_cv_c_bigendian=yes
15087fi
15088rm -fr conftest*
15089fi
15090
15091fi
15092fi
15093
15094echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15095if test $ac_cv_c_bigendian = unknown; then
15096 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
15097fi
15098if test $ac_cv_c_bigendian = yes; then
15099 cat >> confdefs.h <<\EOF
15100#define WORDS_BIGENDIAN 1
15101EOF
15102
15103fi
15104
15105
15106echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15107echo "configure:15108: checking how to run the C++ preprocessor" >&5
15108if test -z "$CXXCPP"; then
15109if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15111else
15112 ac_ext=C
15113# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15114ac_cpp='$CXXCPP $CPPFLAGS'
15115ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15116ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15117cross_compiling=$ac_cv_prog_cxx_cross
15118 CXXCPP="${CXX-g++} -E"
15119 cat > conftest.$ac_ext <<EOF
15120#line 15121 "configure"
15121#include "confdefs.h"
15122#include <stdlib.h>
15123EOF
15124ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15125{ (eval echo configure:15126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15126ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15127if test -z "$ac_err"; then
15128 :
15129else
15130 echo "$ac_err" >&5
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15133 rm -rf conftest*
15134 CXXCPP=/lib/cpp
15135fi
15136rm -f conftest*
15137 ac_cv_prog_CXXCPP="$CXXCPP"
15138ac_ext=C
15139# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15140ac_cpp='$CXXCPP $CPPFLAGS'
15141ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15142ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15143cross_compiling=$ac_cv_prog_cxx_cross
15144fi
15145fi
15146CXXCPP="$ac_cv_prog_CXXCPP"
15147echo "$ac_t""$CXXCPP" 1>&6
15148
15149
15150 if test "$cross_compiling" = "yes"; then
15151 cat >> confdefs.h <<\EOF
15152#define wxUSE_IOSTREAMH 1
15153EOF
15154
15155 else
15156
15157 ac_ext=C
15158# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15159ac_cpp='$CXXCPP $CPPFLAGS'
15160ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15161ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15162cross_compiling=$ac_cv_prog_cxx_cross
15163
15164
15165 for ac_hdr in iostream
15166do
15167ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15168echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15169echo "configure:15170: checking for $ac_hdr" >&5
15170if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172else
15173 cat > conftest.$ac_ext <<EOF
15174#line 15175 "configure"
15175#include "confdefs.h"
15176#include <$ac_hdr>
15177EOF
15178ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15179{ (eval echo configure:15180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15180ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15181if test -z "$ac_err"; then
15182 rm -rf conftest*
15183 eval "ac_cv_header_$ac_safe=yes"
15184else
15185 echo "$ac_err" >&5
15186 echo "configure: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 rm -rf conftest*
15189 eval "ac_cv_header_$ac_safe=no"
15190fi
15191rm -f conftest*
15192fi
15193if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15194 echo "$ac_t""yes" 1>&6
15195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15196 cat >> confdefs.h <<EOF
15197#define $ac_tr_hdr 1
15198EOF
15199
15200else
15201 echo "$ac_t""no" 1>&6
15202fi
15203done
15204
15205
15206 if test "$ac_cv_header_iostream" = "yes" ; then
15207 :
15208 else
15209 cat >> confdefs.h <<\EOF
15210#define wxUSE_IOSTREAMH 1
15211EOF
15212
15213 fi
15214
15215 ac_ext=c
15216# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15217ac_cpp='$CPP $CPPFLAGS'
15218ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15219ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15220cross_compiling=$ac_cv_prog_cc_cross
15221
15222 fi
15223
15224
15225
15226 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15227echo "configure:15228: checking if C++ compiler supports bool" >&5
15228if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15230else
15231
15232
15233 ac_ext=C
15234# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15235ac_cpp='$CXXCPP $CPPFLAGS'
15236ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15237ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15238cross_compiling=$ac_cv_prog_cxx_cross
15239
15240
15241 cat > conftest.$ac_ext <<EOF
15242#line 15243 "configure"
15243#include "confdefs.h"
15244
15245
15246int main() {
15247
15248 bool b = true;
15249
15250 return 0;
15251
15252; return 0; }
15253EOF
15254if { (eval echo configure:15255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15255 rm -rf conftest*
15256
15257 wx_cv_cpp_bool=yes
15258
15259else
15260 echo "configure: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 rm -rf conftest*
15263
15264 wx_cv_cpp_bool=no
15265
15266
15267fi
15268rm -f conftest*
15269
15270 ac_ext=c
15271# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15272ac_cpp='$CPP $CPPFLAGS'
15273ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15274ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15275cross_compiling=$ac_cv_prog_cc_cross
15276
15277
15278fi
15279
15280echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15281
15282 if test "$wx_cv_cpp_bool" = "yes"; then
15283 cat >> confdefs.h <<\EOF
15284#define HAVE_BOOL 1
15285EOF
15286
15287 fi
15288
15289
15290
15291echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15292echo "configure:15293: checking for wcslen in -lc" >&5
15293ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15294if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15295 echo $ac_n "(cached) $ac_c" 1>&6
15296else
15297 ac_save_LIBS="$LIBS"
15298LIBS="-lc $LIBS"
15299cat > conftest.$ac_ext <<EOF
15300#line 15301 "configure"
15301#include "confdefs.h"
15302/* Override any gcc2 internal prototype to avoid an error. */
15303/* We use char because int might match the return type of a gcc2
15304 builtin and then its argument prototype would still apply. */
15305char wcslen();
15306
15307int main() {
15308wcslen()
15309; return 0; }
15310EOF
15311if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15312 rm -rf conftest*
15313 eval "ac_cv_lib_$ac_lib_var=yes"
15314else
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15317 rm -rf conftest*
15318 eval "ac_cv_lib_$ac_lib_var=no"
15319fi
15320rm -f conftest*
15321LIBS="$ac_save_LIBS"
15322
15323fi
15324if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15325 echo "$ac_t""yes" 1>&6
15326
15327 cat >> confdefs.h <<\EOF
15328#define HAVE_WCSLEN 1
15329EOF
15330
15331 WCHAR_LINK=
15332
15333else
15334 echo "$ac_t""no" 1>&6
15335
15336 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15337echo "configure:15338: checking for wcslen in -lw" >&5
15338ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15339if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15340 echo $ac_n "(cached) $ac_c" 1>&6
15341else
15342 ac_save_LIBS="$LIBS"
15343LIBS="-lw $LIBS"
15344cat > conftest.$ac_ext <<EOF
15345#line 15346 "configure"
15346#include "confdefs.h"
15347/* Override any gcc2 internal prototype to avoid an error. */
15348/* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15350char wcslen();
15351
15352int main() {
15353wcslen()
15354; return 0; }
15355EOF
15356if { (eval echo configure:15357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15357 rm -rf conftest*
15358 eval "ac_cv_lib_$ac_lib_var=yes"
15359else
15360 echo "configure: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15362 rm -rf conftest*
15363 eval "ac_cv_lib_$ac_lib_var=no"
15364fi
15365rm -f conftest*
15366LIBS="$ac_save_LIBS"
15367
15368fi
15369if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15370 echo "$ac_t""yes" 1>&6
15371
15372 cat >> confdefs.h <<\EOF
15373#define HAVE_WCSLEN 1
15374EOF
15375
15376 WCHAR_LINK=" -lw"
15377
15378else
15379 echo "$ac_t""no" 1>&6
15380
15381 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15382echo "configure:15383: checking for wcslen in -lmsvcrt" >&5
15383ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15385 echo $ac_n "(cached) $ac_c" 1>&6
15386else
15387 ac_save_LIBS="$LIBS"
15388LIBS="-lmsvcrt $LIBS"
15389cat > conftest.$ac_ext <<EOF
15390#line 15391 "configure"
15391#include "confdefs.h"
15392/* Override any gcc2 internal prototype to avoid an error. */
15393/* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15395char wcslen();
15396
15397int main() {
15398wcslen()
15399; return 0; }
15400EOF
15401if { (eval echo configure:15402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15402 rm -rf conftest*
15403 eval "ac_cv_lib_$ac_lib_var=yes"
15404else
15405 echo "configure: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 rm -rf conftest*
15408 eval "ac_cv_lib_$ac_lib_var=no"
15409fi
15410rm -f conftest*
15411LIBS="$ac_save_LIBS"
15412
15413fi
15414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416
15417 cat >> confdefs.h <<\EOF
15418#define HAVE_WCSLEN 1
15419EOF
15420
15421 WCHAR_LINK=
15422
15423else
15424 echo "$ac_t""no" 1>&6
15425fi
15426
15427
15428fi
15429
15430
15431fi
15432
15433
15434for ac_func in wcsrtombs
15435do
15436echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15437echo "configure:15438: checking for $ac_func" >&5
15438if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15439 echo $ac_n "(cached) $ac_c" 1>&6
15440else
15441 cat > conftest.$ac_ext <<EOF
15442#line 15443 "configure"
15443#include "confdefs.h"
15444/* System header to define __stub macros and hopefully few prototypes,
15445 which can conflict with char $ac_func(); below. */
15446#include <assert.h>
15447/* Override any gcc2 internal prototype to avoid an error. */
15448/* We use char because int might match the return type of a gcc2
15449 builtin and then its argument prototype would still apply. */
15450char $ac_func();
15451
15452int main() {
15453
15454/* The GNU C library defines this for functions which it implements
15455 to always fail with ENOSYS. Some functions are actually named
15456 something starting with __ and the normal name is an alias. */
15457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15458choke me
15459#else
15460$ac_func();
15461#endif
15462
15463; return 0; }
15464EOF
15465if { (eval echo configure:15466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15466 rm -rf conftest*
15467 eval "ac_cv_func_$ac_func=yes"
15468else
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15471 rm -rf conftest*
15472 eval "ac_cv_func_$ac_func=no"
15473fi
15474rm -f conftest*
15475fi
15476
15477if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15478 echo "$ac_t""yes" 1>&6
15479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15480 cat >> confdefs.h <<EOF
15481#define $ac_tr_func 1
15482EOF
15483
15484else
15485 echo "$ac_t""no" 1>&6
15486fi
15487done
15488
15489
15490echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15491echo "configure:15492: checking for vprintf" >&5
15492if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15494else
15495 cat > conftest.$ac_ext <<EOF
15496#line 15497 "configure"
15497#include "confdefs.h"
15498/* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char vprintf(); below. */
15500#include <assert.h>
15501/* Override any gcc2 internal prototype to avoid an error. */
15502/* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504char vprintf();
15505
15506int main() {
15507
15508/* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511#if defined (__stub_vprintf) || defined (__stub___vprintf)
15512choke me
15513#else
15514vprintf();
15515#endif
15516
15517; return 0; }
15518EOF
15519if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15520 rm -rf conftest*
15521 eval "ac_cv_func_vprintf=yes"
15522else
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15525 rm -rf conftest*
15526 eval "ac_cv_func_vprintf=no"
15527fi
15528rm -f conftest*
15529fi
15530
15531if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15532 echo "$ac_t""yes" 1>&6
15533 cat >> confdefs.h <<\EOF
15534#define HAVE_VPRINTF 1
15535EOF
15536
15537else
15538 echo "$ac_t""no" 1>&6
15539fi
15540
15541if test "$ac_cv_func_vprintf" != yes; then
15542echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15543echo "configure:15544: checking for _doprnt" >&5
15544if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15545 echo $ac_n "(cached) $ac_c" 1>&6
15546else
15547 cat > conftest.$ac_ext <<EOF
15548#line 15549 "configure"
15549#include "confdefs.h"
15550/* System header to define __stub macros and hopefully few prototypes,
15551 which can conflict with char _doprnt(); below. */
15552#include <assert.h>
15553/* Override any gcc2 internal prototype to avoid an error. */
15554/* We use char because int might match the return type of a gcc2
15555 builtin and then its argument prototype would still apply. */
15556char _doprnt();
15557
15558int main() {
15559
15560/* The GNU C library defines this for functions which it implements
15561 to always fail with ENOSYS. Some functions are actually named
15562 something starting with __ and the normal name is an alias. */
15563#if defined (__stub__doprnt) || defined (__stub____doprnt)
15564choke me
15565#else
15566_doprnt();
15567#endif
15568
15569; return 0; }
15570EOF
15571if { (eval echo configure:15572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15572 rm -rf conftest*
15573 eval "ac_cv_func__doprnt=yes"
15574else
15575 echo "configure: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15577 rm -rf conftest*
15578 eval "ac_cv_func__doprnt=no"
15579fi
15580rm -f conftest*
15581fi
15582
15583if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15584 echo "$ac_t""yes" 1>&6
15585 cat >> confdefs.h <<\EOF
15586#define HAVE_DOPRNT 1
15587EOF
15588
15589else
15590 echo "$ac_t""no" 1>&6
15591fi
15592
15593fi
15594
15595
15596
15597
15598
15599
15600echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15601echo "configure:15602: checking for vsnprintf" >&5
15602if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15603 echo $ac_n "(cached) $ac_c" 1>&6
15604else
15605
15606 cat > conftest.$ac_ext <<EOF
15607#line 15608 "configure"
15608#include "confdefs.h"
15609
15610 #include <stdio.h>
15611 #include <stdarg.h>
15612
15613int main() {
15614
15615 int wx_test_vsnprintf(const char *, ...);
15616
15617 wx_test_vsnprintf("%s");
15618 return 0;
15619 }
15620
15621 int wx_test_vsnprintf(const char *fmt, ...)
15622 {
15623 char *s;
15624
15625 va_list argp;
15626 va_start(argp, fmt);
15627 vsnprintf(s, 42, fmt, argp);
15628 va_end(argp);
15629
15630; return 0; }
15631EOF
15632if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15633 rm -rf conftest*
15634
15635 wx_cv_func_vsnprintf=yes
15636
15637else
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15640 rm -rf conftest*
15641
15642 cat > conftest.$ac_ext <<EOF
15643#line 15644 "configure"
15644#include "confdefs.h"
15645
15646 #include <stdio.h>
15647 #include <stdarg.h>
15648
15649int main() {
15650
15651 int wx_test_vsnprintf(const char *, ...);
15652
15653 wx_test_vsnprintf("%s");
15654 return 0;
15655 }
15656
15657 int wx_test_vsnprintf(const char *fmt, ...)
15658 {
15659 char *s;
15660
15661 va_list argp;
15662 va_start(argp, fmt);
15663 _vsnprintf(s, 42, fmt, argp);
15664 va_end(argp);
15665
15666; return 0; }
15667EOF
15668if { (eval echo configure:15669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15669 rm -rf conftest*
15670
15671 wx_cv_func_vsnprintf=yes
15672
15673else
15674 echo "configure: failed program was:" >&5
15675 cat conftest.$ac_ext >&5
15676 rm -rf conftest*
15677
15678 wx_cv_func_vsnprintf=no
15679
15680fi
15681rm -f conftest*
15682
15683fi
15684rm -f conftest*
15685
15686fi
15687
15688echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15689
15690if test "$wx_cv_func_vsnprintf" = yes; then
15691 cat >> confdefs.h <<\EOF
15692#define HAVE_VSNPRINTF 1
15693EOF
15694
15695else
15696 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15697fi
15698
15699echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15700echo "configure:15701: checking for vsscanf" >&5
15701if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15702 echo $ac_n "(cached) $ac_c" 1>&6
15703else
15704
15705 cat > conftest.$ac_ext <<EOF
15706#line 15707 "configure"
15707#include "confdefs.h"
15708
15709 #include <stdio.h>
15710 #include <stdarg.h>
15711
15712int main() {
15713
15714 int wx_test_vsscanf(const char *, ...);
15715
15716 wx_test_vsscanf("%d");
15717 return 0;
15718 }
15719
15720 int wx_test_vsscanf(const char *fmt, ...)
15721 {
15722 va_list argp;
15723 va_start(argp, fmt);
15724 vsscanf("42", fmt, argp);
15725 va_end(argp);
15726
15727; return 0; }
15728EOF
15729if { (eval echo configure:15730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15730 rm -rf conftest*
15731
15732 wx_cv_func_vsscanf=yes
15733
15734else
15735 echo "configure: failed program was:" >&5
15736 cat conftest.$ac_ext >&5
15737 rm -rf conftest*
15738
15739 wx_cv_func_vsscanf=no
15740
15741fi
15742rm -f conftest*
15743
15744fi
15745
15746echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15747
15748if test "$wx_cv_func_vsscanf" = yes; then
15749 cat >> confdefs.h <<\EOF
15750#define HAVE_VSSCANF 1
15751EOF
15752
15753fi
15754
15755if test "$TOOLKIT" != "MSW"; then
15756
15757
15758
15759ac_ext=C
15760# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15761ac_cpp='$CXXCPP $CPPFLAGS'
15762ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15763ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15764cross_compiling=$ac_cv_prog_cxx_cross
15765
15766
15767
15768 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15769if test "${with_libiconv_prefix+set}" = set; then
15770 withval="$with_libiconv_prefix"
15771
15772 for dir in `echo "$withval" | tr : ' '`; do
15773 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15774 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15775 done
15776
15777fi
15778
15779
15780 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15781echo "configure:15782: checking for iconv" >&5
15782if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15784else
15785
15786 am_cv_func_iconv="no, consider installing GNU libiconv"
15787 am_cv_lib_iconv=no
15788 cat > conftest.$ac_ext <<EOF
15789#line 15790 "configure"
15790#include "confdefs.h"
15791#include <stdlib.h>
15792#include <iconv.h>
15793int main() {
15794iconv_t cd = iconv_open("","");
15795 iconv(cd,NULL,NULL,NULL,NULL);
15796 iconv_close(cd);
15797; return 0; }
15798EOF
15799if { (eval echo configure:15800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15800 rm -rf conftest*
15801 am_cv_func_iconv=yes
15802else
15803 echo "configure: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15805fi
15806rm -f conftest*
15807 if test "$am_cv_func_iconv" != yes; then
15808 am_save_LIBS="$LIBS"
15809 LIBS="$LIBS -liconv"
15810 cat > conftest.$ac_ext <<EOF
15811#line 15812 "configure"
15812#include "confdefs.h"
15813#include <stdlib.h>
15814#include <iconv.h>
15815int main() {
15816iconv_t cd = iconv_open("","");
15817 iconv(cd,NULL,NULL,NULL,NULL);
15818 iconv_close(cd);
15819; return 0; }
15820EOF
15821if { (eval echo configure:15822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15822 rm -rf conftest*
15823 am_cv_lib_iconv=yes
15824 am_cv_func_iconv=yes
15825else
15826 echo "configure: failed program was:" >&5
15827 cat conftest.$ac_ext >&5
15828fi
15829rm -f conftest*
15830 LIBS="$am_save_LIBS"
15831 fi
15832
15833fi
15834
15835echo "$ac_t""$am_cv_func_iconv" 1>&6
15836 if test "$am_cv_func_iconv" = yes; then
15837 cat >> confdefs.h <<\EOF
15838#define HAVE_ICONV 1
15839EOF
15840
15841 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15842echo "configure:15843: checking if iconv needs const" >&5
15843if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15844 echo $ac_n "(cached) $ac_c" 1>&6
15845else
15846 cat > conftest.$ac_ext <<EOF
15847#line 15848 "configure"
15848#include "confdefs.h"
15849
15850#include <stdlib.h>
15851#include <iconv.h>
15852extern
15853#ifdef __cplusplus
15854"C"
15855#endif
15856#if defined(__STDC__) || defined(__cplusplus)
15857size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15858#else
15859size_t iconv();
15860#endif
15861
15862int main() {
15863
15864; return 0; }
15865EOF
15866if { (eval echo configure:15867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15867 rm -rf conftest*
15868 wx_cv_func_iconv_const="no"
15869else
15870 echo "configure: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 rm -rf conftest*
15873 wx_cv_func_iconv_const="yes"
15874
15875fi
15876rm -f conftest*
15877
15878fi
15879
15880echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15881
15882 iconv_const=
15883 if test "x$wx_cv_func_iconv_const" = "xyes"; then
15884 iconv_const="const"
15885 fi
15886
15887 cat >> confdefs.h <<EOF
15888#define ICONV_CONST $iconv_const
15889EOF
15890
15891 fi
15892 LIBICONV=
15893 if test "$am_cv_lib_iconv" = yes; then
15894 LIBICONV="-liconv"
15895 fi
15896
15897
15898LIBS="$LIBICONV $LIBS"
15899ac_ext=c
15900# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15901ac_cpp='$CPP $CPPFLAGS'
15902ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15903ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15904cross_compiling=$ac_cv_prog_cc_cross
15905
15906
15907if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15908 for ac_func in sigaction
15909do
15910echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15911echo "configure:15912: checking for $ac_func" >&5
15912if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15913 echo $ac_n "(cached) $ac_c" 1>&6
15914else
15915 cat > conftest.$ac_ext <<EOF
15916#line 15917 "configure"
15917#include "confdefs.h"
15918/* System header to define __stub macros and hopefully few prototypes,
15919 which can conflict with char $ac_func(); below. */
15920#include <assert.h>
15921/* Override any gcc2 internal prototype to avoid an error. */
15922/* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15924char $ac_func();
15925
15926int main() {
15927
15928/* The GNU C library defines this for functions which it implements
15929 to always fail with ENOSYS. Some functions are actually named
15930 something starting with __ and the normal name is an alias. */
15931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932choke me
15933#else
15934$ac_func();
15935#endif
15936
15937; return 0; }
15938EOF
15939if { (eval echo configure:15940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15940 rm -rf conftest*
15941 eval "ac_cv_func_$ac_func=yes"
15942else
15943 echo "configure: failed program was:" >&5
15944 cat conftest.$ac_ext >&5
15945 rm -rf conftest*
15946 eval "ac_cv_func_$ac_func=no"
15947fi
15948rm -f conftest*
15949fi
15950
15951if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15952 echo "$ac_t""yes" 1>&6
15953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15954 cat >> confdefs.h <<EOF
15955#define $ac_tr_func 1
15956EOF
15957
15958else
15959 echo "$ac_t""no" 1>&6
15960fi
15961done
15962
15963
15964 if test "$ac_cv_func_sigaction" = "no"; then
15965 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15966 wxUSE_ON_FATAL_EXCEPTION=no
15967 fi
15968
15969 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15970
15971 ac_ext=C
15972# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15973ac_cpp='$CXXCPP $CPPFLAGS'
15974ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15975ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15976cross_compiling=$ac_cv_prog_cxx_cross
15977
15978
15979 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15980echo "configure:15981: checking for sa_handler type" >&5
15981if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15982 echo $ac_n "(cached) $ac_c" 1>&6
15983else
15984
15985 cat > conftest.$ac_ext <<EOF
15986#line 15987 "configure"
15987#include "confdefs.h"
15988#include <signal.h>
15989int main() {
15990
15991 extern void testSigHandler(int);
15992
15993 struct sigaction sa;
15994 sa.sa_handler = testSigHandler;
15995
15996; return 0; }
15997EOF
15998if { (eval echo configure:15999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15999 rm -rf conftest*
16000
16001 wx_cv_type_sa_handler=int
16002
16003else
16004 echo "configure: failed program was:" >&5
16005 cat conftest.$ac_ext >&5
16006 rm -rf conftest*
16007
16008 wx_cv_type_sa_handler=void
16009
16010fi
16011rm -f conftest*
16012
16013fi
16014
16015echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16016
16017 ac_ext=c
16018# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16019ac_cpp='$CPP $CPPFLAGS'
16020ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16021ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16022cross_compiling=$ac_cv_prog_cc_cross
16023
16024
16025 cat >> confdefs.h <<EOF
16026#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16027EOF
16028
16029 fi
16030fi
16031
16032for ac_func in vfork
16033do
16034echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16035echo "configure:16036: checking for $ac_func" >&5
16036if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16038else
16039 cat > conftest.$ac_ext <<EOF
16040#line 16041 "configure"
16041#include "confdefs.h"
16042/* System header to define __stub macros and hopefully few prototypes,
16043 which can conflict with char $ac_func(); below. */
16044#include <assert.h>
16045/* Override any gcc2 internal prototype to avoid an error. */
16046/* We use char because int might match the return type of a gcc2
16047 builtin and then its argument prototype would still apply. */
16048char $ac_func();
16049
16050int main() {
16051
16052/* The GNU C library defines this for functions which it implements
16053 to always fail with ENOSYS. Some functions are actually named
16054 something starting with __ and the normal name is an alias. */
16055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16056choke me
16057#else
16058$ac_func();
16059#endif
16060
16061; return 0; }
16062EOF
16063if { (eval echo configure:16064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16064 rm -rf conftest*
16065 eval "ac_cv_func_$ac_func=yes"
16066else
16067 echo "configure: failed program was:" >&5
16068 cat conftest.$ac_ext >&5
16069 rm -rf conftest*
16070 eval "ac_cv_func_$ac_func=no"
16071fi
16072rm -f conftest*
16073fi
16074
16075if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16076 echo "$ac_t""yes" 1>&6
16077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16078 cat >> confdefs.h <<EOF
16079#define $ac_tr_func 1
16080EOF
16081
16082else
16083 echo "$ac_t""no" 1>&6
16084fi
16085done
16086
16087
16088for ac_func in mkstemp mktemp
16089do
16090echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16091echo "configure:16092: checking for $ac_func" >&5
16092if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16093 echo $ac_n "(cached) $ac_c" 1>&6
16094else
16095 cat > conftest.$ac_ext <<EOF
16096#line 16097 "configure"
16097#include "confdefs.h"
16098/* System header to define __stub macros and hopefully few prototypes,
16099 which can conflict with char $ac_func(); below. */
16100#include <assert.h>
16101/* Override any gcc2 internal prototype to avoid an error. */
16102/* We use char because int might match the return type of a gcc2
16103 builtin and then its argument prototype would still apply. */
16104char $ac_func();
16105
16106int main() {
16107
16108/* The GNU C library defines this for functions which it implements
16109 to always fail with ENOSYS. Some functions are actually named
16110 something starting with __ and the normal name is an alias. */
16111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16112choke me
16113#else
16114$ac_func();
16115#endif
16116
16117; return 0; }
16118EOF
16119if { (eval echo configure:16120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16120 rm -rf conftest*
16121 eval "ac_cv_func_$ac_func=yes"
16122else
16123 echo "configure: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16125 rm -rf conftest*
16126 eval "ac_cv_func_$ac_func=no"
16127fi
16128rm -f conftest*
16129fi
16130
16131if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16132 echo "$ac_t""yes" 1>&6
16133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16134 cat >> confdefs.h <<EOF
16135#define $ac_tr_func 1
16136EOF
16137 break
16138else
16139 echo "$ac_t""no" 1>&6
16140fi
16141done
16142
16143
16144echo $ac_n "checking for statfs""... $ac_c" 1>&6
16145echo "configure:16146: checking for statfs" >&5
16146if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16147 echo $ac_n "(cached) $ac_c" 1>&6
16148else
16149 cat > conftest.$ac_ext <<EOF
16150#line 16151 "configure"
16151#include "confdefs.h"
16152
16153 #if defined(__BSD__)
16154 #include <sys/param.h>
16155 #include <sys/mount.h>
16156 #else
16157 #include <sys/vfs.h>
16158 #endif
16159
16160int main() {
16161
16162 long l;
16163 struct statfs fs;
16164 statfs("/", &fs);
16165 l = fs.f_bsize;
16166 l += fs.f_blocks;
16167 l += fs.f_bavail;
16168
16169; return 0; }
16170EOF
16171if { (eval echo configure:16172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16172 rm -rf conftest*
16173
16174 wx_cv_func_statfs=yes
16175
16176else
16177 echo "configure: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16179 rm -rf conftest*
16180
16181 wx_cv_func_statfs=no
16182
16183
16184fi
16185rm -f conftest*
16186
16187fi
16188
16189echo "$ac_t""$wx_cv_func_statfs" 1>&6
16190
16191if test "$wx_cv_func_statfs" = "yes"; then
16192 cat >> confdefs.h <<\EOF
16193#define HAVE_STATFS 1
16194EOF
16195
16196else
16197 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16198echo "configure:16199: checking for statvfs" >&5
16199if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16200 echo $ac_n "(cached) $ac_c" 1>&6
16201else
16202 cat > conftest.$ac_ext <<EOF
16203#line 16204 "configure"
16204#include "confdefs.h"
16205
16206 #include <sys/statvfs.h>
16207
16208int main() {
16209
16210 long l;
16211 struct statvfs fs;
16212 statvfs("/", &fs);
16213 l = fs.f_bsize;
16214 l += fs.f_blocks;
16215 l += fs.f_bavail;
16216
16217; return 0; }
16218EOF
16219if { (eval echo configure:16220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16220 rm -rf conftest*
16221
16222 wx_cv_func_statvfs=yes
16223
16224else
16225 echo "configure: failed program was:" >&5
16226 cat conftest.$ac_ext >&5
16227 rm -rf conftest*
16228
16229 wx_cv_func_statvfs=no
16230
16231
16232fi
16233rm -f conftest*
16234
16235fi
16236
16237echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16238
16239 if test "$wx_cv_func_statvfs" = "yes"; then
16240 cat >> confdefs.h <<\EOF
16241#define HAVE_STATVFS 1
16242EOF
16243
16244 else
16245 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16246 fi
16247fi
16248
16249if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16250 for ac_func in fcntl flock
16251do
16252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16253echo "configure:16254: checking for $ac_func" >&5
16254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16255 echo $ac_n "(cached) $ac_c" 1>&6
16256else
16257 cat > conftest.$ac_ext <<EOF
16258#line 16259 "configure"
16259#include "confdefs.h"
16260/* System header to define __stub macros and hopefully few prototypes,
16261 which can conflict with char $ac_func(); below. */
16262#include <assert.h>
16263/* Override any gcc2 internal prototype to avoid an error. */
16264/* We use char because int might match the return type of a gcc2
16265 builtin and then its argument prototype would still apply. */
16266char $ac_func();
16267
16268int main() {
16269
16270/* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274choke me
16275#else
16276$ac_func();
16277#endif
16278
16279; return 0; }
16280EOF
16281if { (eval echo configure:16282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16282 rm -rf conftest*
16283 eval "ac_cv_func_$ac_func=yes"
16284else
16285 echo "configure: failed program was:" >&5
16286 cat conftest.$ac_ext >&5
16287 rm -rf conftest*
16288 eval "ac_cv_func_$ac_func=no"
16289fi
16290rm -f conftest*
16291fi
16292
16293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16294 echo "$ac_t""yes" 1>&6
16295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16296 cat >> confdefs.h <<EOF
16297#define $ac_tr_func 1
16298EOF
16299 break
16300else
16301 echo "$ac_t""no" 1>&6
16302fi
16303done
16304
16305
16306 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16307 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16308 wxUSE_SNGLINST_CHECKER=no
16309 fi
16310fi
16311
16312for ac_func in timegm
16313do
16314echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16315echo "configure:16316: checking for $ac_func" >&5
16316if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16317 echo $ac_n "(cached) $ac_c" 1>&6
16318else
16319 cat > conftest.$ac_ext <<EOF
16320#line 16321 "configure"
16321#include "confdefs.h"
16322/* System header to define __stub macros and hopefully few prototypes,
16323 which can conflict with char $ac_func(); below. */
16324#include <assert.h>
16325/* Override any gcc2 internal prototype to avoid an error. */
16326/* We use char because int might match the return type of a gcc2
16327 builtin and then its argument prototype would still apply. */
16328char $ac_func();
16329
16330int main() {
16331
16332/* The GNU C library defines this for functions which it implements
16333 to always fail with ENOSYS. Some functions are actually named
16334 something starting with __ and the normal name is an alias. */
16335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16336choke me
16337#else
16338$ac_func();
16339#endif
16340
16341; return 0; }
16342EOF
16343if { (eval echo configure:16344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16344 rm -rf conftest*
16345 eval "ac_cv_func_$ac_func=yes"
16346else
16347 echo "configure: failed program was:" >&5
16348 cat conftest.$ac_ext >&5
16349 rm -rf conftest*
16350 eval "ac_cv_func_$ac_func=no"
16351fi
16352rm -f conftest*
16353fi
16354
16355if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16356 echo "$ac_t""yes" 1>&6
16357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16358 cat >> confdefs.h <<EOF
16359#define $ac_tr_func 1
16360EOF
16361
16362else
16363 echo "$ac_t""no" 1>&6
16364fi
16365done
16366
16367
16368for ac_func in putenv setenv
16369do
16370echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16371echo "configure:16372: checking for $ac_func" >&5
16372if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16374else
16375 cat > conftest.$ac_ext <<EOF
16376#line 16377 "configure"
16377#include "confdefs.h"
16378/* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func(); below. */
16380#include <assert.h>
16381/* Override any gcc2 internal prototype to avoid an error. */
16382/* We use char because int might match the return type of a gcc2
16383 builtin and then its argument prototype would still apply. */
16384char $ac_func();
16385
16386int main() {
16387
16388/* The GNU C library defines this for functions which it implements
16389 to always fail with ENOSYS. Some functions are actually named
16390 something starting with __ and the normal name is an alias. */
16391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16392choke me
16393#else
16394$ac_func();
16395#endif
16396
16397; return 0; }
16398EOF
16399if { (eval echo configure:16400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16400 rm -rf conftest*
16401 eval "ac_cv_func_$ac_func=yes"
16402else
16403 echo "configure: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 rm -rf conftest*
16406 eval "ac_cv_func_$ac_func=no"
16407fi
16408rm -f conftest*
16409fi
16410
16411if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16412 echo "$ac_t""yes" 1>&6
16413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16414 cat >> confdefs.h <<EOF
16415#define $ac_tr_func 1
16416EOF
16417 break
16418else
16419 echo "$ac_t""no" 1>&6
16420fi
16421done
16422
16423
16424HAVE_SOME_SLEEP_FUNC=0
16425if test "$USE_BEOS" = 1; then
16426 cat >> confdefs.h <<\EOF
16427#define HAVE_SLEEP 1
16428EOF
16429
16430 HAVE_SOME_SLEEP_FUNC=1
16431fi
16432
16433if test "$USE_DARWIN" = 1; then
16434 cat >> confdefs.h <<\EOF
16435#define HAVE_USLEEP 1
16436EOF
16437
16438 HAVE_SOME_SLEEP_FUNC=1
16439fi
16440
16441if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16442 POSIX4_LINK=
16443 for ac_func in nanosleep
16444do
16445echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16446echo "configure:16447: checking for $ac_func" >&5
16447if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16448 echo $ac_n "(cached) $ac_c" 1>&6
16449else
16450 cat > conftest.$ac_ext <<EOF
16451#line 16452 "configure"
16452#include "confdefs.h"
16453/* System header to define __stub macros and hopefully few prototypes,
16454 which can conflict with char $ac_func(); below. */
16455#include <assert.h>
16456/* Override any gcc2 internal prototype to avoid an error. */
16457/* We use char because int might match the return type of a gcc2
16458 builtin and then its argument prototype would still apply. */
16459char $ac_func();
16460
16461int main() {
16462
16463/* The GNU C library defines this for functions which it implements
16464 to always fail with ENOSYS. Some functions are actually named
16465 something starting with __ and the normal name is an alias. */
16466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16467choke me
16468#else
16469$ac_func();
16470#endif
16471
16472; return 0; }
16473EOF
16474if { (eval echo configure:16475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16475 rm -rf conftest*
16476 eval "ac_cv_func_$ac_func=yes"
16477else
16478 echo "configure: failed program was:" >&5
16479 cat conftest.$ac_ext >&5
16480 rm -rf conftest*
16481 eval "ac_cv_func_$ac_func=no"
16482fi
16483rm -f conftest*
16484fi
16485
16486if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16487 echo "$ac_t""yes" 1>&6
16488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16489 cat >> confdefs.h <<EOF
16490#define $ac_tr_func 1
16491EOF
16492 cat >> confdefs.h <<\EOF
16493#define HAVE_NANOSLEEP 1
16494EOF
16495
16496else
16497 echo "$ac_t""no" 1>&6
16498echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16499echo "configure:16500: checking for nanosleep in -lposix4" >&5
16500ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16501if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16502 echo $ac_n "(cached) $ac_c" 1>&6
16503else
16504 ac_save_LIBS="$LIBS"
16505LIBS="-lposix4 $LIBS"
16506cat > conftest.$ac_ext <<EOF
16507#line 16508 "configure"
16508#include "confdefs.h"
16509/* Override any gcc2 internal prototype to avoid an error. */
16510/* We use char because int might match the return type of a gcc2
16511 builtin and then its argument prototype would still apply. */
16512char nanosleep();
16513
16514int main() {
16515nanosleep()
16516; return 0; }
16517EOF
16518if { (eval echo configure:16519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16519 rm -rf conftest*
16520 eval "ac_cv_lib_$ac_lib_var=yes"
16521else
16522 echo "configure: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16524 rm -rf conftest*
16525 eval "ac_cv_lib_$ac_lib_var=no"
16526fi
16527rm -f conftest*
16528LIBS="$ac_save_LIBS"
16529
16530fi
16531if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16532 echo "$ac_t""yes" 1>&6
16533
16534 cat >> confdefs.h <<\EOF
16535#define HAVE_NANOSLEEP 1
16536EOF
16537
16538 POSIX4_LINK=" -lposix4"
16539
16540else
16541 echo "$ac_t""no" 1>&6
16542
16543 for ac_func in usleep
16544do
16545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16546echo "configure:16547: checking for $ac_func" >&5
16547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16548 echo $ac_n "(cached) $ac_c" 1>&6
16549else
16550 cat > conftest.$ac_ext <<EOF
16551#line 16552 "configure"
16552#include "confdefs.h"
16553/* System header to define __stub macros and hopefully few prototypes,
16554 which can conflict with char $ac_func(); below. */
16555#include <assert.h>
16556/* Override any gcc2 internal prototype to avoid an error. */
16557/* We use char because int might match the return type of a gcc2
16558 builtin and then its argument prototype would still apply. */
16559char $ac_func();
16560
16561int main() {
16562
16563/* The GNU C library defines this for functions which it implements
16564 to always fail with ENOSYS. Some functions are actually named
16565 something starting with __ and the normal name is an alias. */
16566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16567choke me
16568#else
16569$ac_func();
16570#endif
16571
16572; return 0; }
16573EOF
16574if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16575 rm -rf conftest*
16576 eval "ac_cv_func_$ac_func=yes"
16577else
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -rf conftest*
16581 eval "ac_cv_func_$ac_func=no"
16582fi
16583rm -f conftest*
16584fi
16585
16586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16587 echo "$ac_t""yes" 1>&6
16588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16589 cat >> confdefs.h <<EOF
16590#define $ac_tr_func 1
16591EOF
16592 cat >> confdefs.h <<\EOF
16593#define HAVE_USLEEP 1
16594EOF
16595
16596else
16597 echo "$ac_t""no" 1>&6
16598echo "configure: warning: wxSleep() function will not work" 1>&2
16599
16600fi
16601done
16602
16603
16604
16605fi
16606
16607
16608
16609fi
16610done
16611
16612fi
16613
16614for ac_func in uname gethostname
16615do
16616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16617echo "configure:16618: checking for $ac_func" >&5
16618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16619 echo $ac_n "(cached) $ac_c" 1>&6
16620else
16621 cat > conftest.$ac_ext <<EOF
16622#line 16623 "configure"
16623#include "confdefs.h"
16624/* System header to define __stub macros and hopefully few prototypes,
16625 which can conflict with char $ac_func(); below. */
16626#include <assert.h>
16627/* Override any gcc2 internal prototype to avoid an error. */
16628/* We use char because int might match the return type of a gcc2
16629 builtin and then its argument prototype would still apply. */
16630char $ac_func();
16631
16632int main() {
16633
16634/* The GNU C library defines this for functions which it implements
16635 to always fail with ENOSYS. Some functions are actually named
16636 something starting with __ and the normal name is an alias. */
16637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16638choke me
16639#else
16640$ac_func();
16641#endif
16642
16643; return 0; }
16644EOF
16645if { (eval echo configure:16646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16646 rm -rf conftest*
16647 eval "ac_cv_func_$ac_func=yes"
16648else
16649 echo "configure: failed program was:" >&5
16650 cat conftest.$ac_ext >&5
16651 rm -rf conftest*
16652 eval "ac_cv_func_$ac_func=no"
16653fi
16654rm -f conftest*
16655fi
16656
16657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16658 echo "$ac_t""yes" 1>&6
16659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16660 cat >> confdefs.h <<EOF
16661#define $ac_tr_func 1
16662EOF
16663 break
16664else
16665 echo "$ac_t""no" 1>&6
16666fi
16667done
16668
16669
16670
16671ac_ext=C
16672# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16673ac_cpp='$CXXCPP $CPPFLAGS'
16674ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16675ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16676cross_compiling=$ac_cv_prog_cxx_cross
16677
16678
16679for ac_func in strtok_r
16680do
16681echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16682echo "configure:16683: checking for $ac_func" >&5
16683if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16684 echo $ac_n "(cached) $ac_c" 1>&6
16685else
16686 cat > conftest.$ac_ext <<EOF
16687#line 16688 "configure"
16688#include "confdefs.h"
16689/* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char $ac_func(); below. */
16691#include <assert.h>
16692/* Override any gcc2 internal prototype to avoid an error. */
16693#ifdef __cplusplus
16694extern "C"
16695#endif
16696/* We use char because int might match the return type of a gcc2
16697 builtin and then its argument prototype would still apply. */
16698char $ac_func();
16699
16700int main() {
16701
16702/* The GNU C library defines this for functions which it implements
16703 to always fail with ENOSYS. Some functions are actually named
16704 something starting with __ and the normal name is an alias. */
16705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16706choke me
16707#else
16708$ac_func();
16709#endif
16710
16711; return 0; }
16712EOF
16713if { (eval echo configure:16714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16714 rm -rf conftest*
16715 eval "ac_cv_func_$ac_func=yes"
16716else
16717 echo "configure: failed program was:" >&5
16718 cat conftest.$ac_ext >&5
16719 rm -rf conftest*
16720 eval "ac_cv_func_$ac_func=no"
16721fi
16722rm -f conftest*
16723fi
16724
16725if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16726 echo "$ac_t""yes" 1>&6
16727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16728 cat >> confdefs.h <<EOF
16729#define $ac_tr_func 1
16730EOF
16731
16732else
16733 echo "$ac_t""no" 1>&6
16734fi
16735done
16736
16737
16738ac_ext=c
16739# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16740ac_cpp='$CPP $CPPFLAGS'
16741ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16742ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16743cross_compiling=$ac_cv_prog_cc_cross
16744
16745
16746INET_LINK=
16747for ac_func in inet_addr
16748do
16749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16750echo "configure:16751: checking for $ac_func" >&5
16751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16752 echo $ac_n "(cached) $ac_c" 1>&6
16753else
16754 cat > conftest.$ac_ext <<EOF
16755#line 16756 "configure"
16756#include "confdefs.h"
16757/* System header to define __stub macros and hopefully few prototypes,
16758 which can conflict with char $ac_func(); below. */
16759#include <assert.h>
16760/* Override any gcc2 internal prototype to avoid an error. */
16761/* We use char because int might match the return type of a gcc2
16762 builtin and then its argument prototype would still apply. */
16763char $ac_func();
16764
16765int main() {
16766
16767/* The GNU C library defines this for functions which it implements
16768 to always fail with ENOSYS. Some functions are actually named
16769 something starting with __ and the normal name is an alias. */
16770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16771choke me
16772#else
16773$ac_func();
16774#endif
16775
16776; return 0; }
16777EOF
16778if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16779 rm -rf conftest*
16780 eval "ac_cv_func_$ac_func=yes"
16781else
16782 echo "configure: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 rm -rf conftest*
16785 eval "ac_cv_func_$ac_func=no"
16786fi
16787rm -f conftest*
16788fi
16789
16790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16791 echo "$ac_t""yes" 1>&6
16792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16793 cat >> confdefs.h <<EOF
16794#define $ac_tr_func 1
16795EOF
16796 cat >> confdefs.h <<\EOF
16797#define HAVE_INET_ADDR 1
16798EOF
16799
16800else
16801 echo "$ac_t""no" 1>&6
16802echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16803echo "configure:16804: checking for inet_addr in -lnsl" >&5
16804ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16805if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16806 echo $ac_n "(cached) $ac_c" 1>&6
16807else
16808 ac_save_LIBS="$LIBS"
16809LIBS="-lnsl $LIBS"
16810cat > conftest.$ac_ext <<EOF
16811#line 16812 "configure"
16812#include "confdefs.h"
16813/* Override any gcc2 internal prototype to avoid an error. */
16814/* We use char because int might match the return type of a gcc2
16815 builtin and then its argument prototype would still apply. */
16816char inet_addr();
16817
16818int main() {
16819inet_addr()
16820; return 0; }
16821EOF
16822if { (eval echo configure:16823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16823 rm -rf conftest*
16824 eval "ac_cv_lib_$ac_lib_var=yes"
16825else
16826 echo "configure: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16828 rm -rf conftest*
16829 eval "ac_cv_lib_$ac_lib_var=no"
16830fi
16831rm -f conftest*
16832LIBS="$ac_save_LIBS"
16833
16834fi
16835if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16836 echo "$ac_t""yes" 1>&6
16837 INET_LINK="nsl"
16838else
16839 echo "$ac_t""no" 1>&6
16840echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16841echo "configure:16842: checking for inet_addr in -lresolv" >&5
16842ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16844 echo $ac_n "(cached) $ac_c" 1>&6
16845else
16846 ac_save_LIBS="$LIBS"
16847LIBS="-lresolv $LIBS"
16848cat > conftest.$ac_ext <<EOF
16849#line 16850 "configure"
16850#include "confdefs.h"
16851/* Override any gcc2 internal prototype to avoid an error. */
16852/* We use char because int might match the return type of a gcc2
16853 builtin and then its argument prototype would still apply. */
16854char inet_addr();
16855
16856int main() {
16857inet_addr()
16858; return 0; }
16859EOF
16860if { (eval echo configure:16861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16861 rm -rf conftest*
16862 eval "ac_cv_lib_$ac_lib_var=yes"
16863else
16864 echo "configure: failed program was:" >&5
16865 cat conftest.$ac_ext >&5
16866 rm -rf conftest*
16867 eval "ac_cv_lib_$ac_lib_var=no"
16868fi
16869rm -f conftest*
16870LIBS="$ac_save_LIBS"
16871
16872fi
16873if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16874 echo "$ac_t""yes" 1>&6
16875 INET_LINK="resolv"
16876else
16877 echo "$ac_t""no" 1>&6
16878echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
16879echo "configure:16880: checking for inet_addr in -lsocket" >&5
16880ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
16881if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16882 echo $ac_n "(cached) $ac_c" 1>&6
16883else
16884 ac_save_LIBS="$LIBS"
16885LIBS="-lsocket $LIBS"
16886cat > conftest.$ac_ext <<EOF
16887#line 16888 "configure"
16888#include "confdefs.h"
16889/* Override any gcc2 internal prototype to avoid an error. */
16890/* We use char because int might match the return type of a gcc2
16891 builtin and then its argument prototype would still apply. */
16892char inet_addr();
16893
16894int main() {
16895inet_addr()
16896; return 0; }
16897EOF
16898if { (eval echo configure:16899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16899 rm -rf conftest*
16900 eval "ac_cv_lib_$ac_lib_var=yes"
16901else
16902 echo "configure: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16904 rm -rf conftest*
16905 eval "ac_cv_lib_$ac_lib_var=no"
16906fi
16907rm -f conftest*
16908LIBS="$ac_save_LIBS"
16909
16910fi
16911if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16912 echo "$ac_t""yes" 1>&6
16913 INET_LINK="socket"
16914
16915else
16916 echo "$ac_t""no" 1>&6
16917fi
16918
16919
16920fi
16921
16922
16923fi
16924
16925
16926
16927fi
16928done
16929
16930
16931for ac_func in inet_aton
16932do
16933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16934echo "configure:16935: checking for $ac_func" >&5
16935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16936 echo $ac_n "(cached) $ac_c" 1>&6
16937else
16938 cat > conftest.$ac_ext <<EOF
16939#line 16940 "configure"
16940#include "confdefs.h"
16941/* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char $ac_func(); below. */
16943#include <assert.h>
16944/* Override any gcc2 internal prototype to avoid an error. */
16945/* We use char because int might match the return type of a gcc2
16946 builtin and then its argument prototype would still apply. */
16947char $ac_func();
16948
16949int main() {
16950
16951/* The GNU C library defines this for functions which it implements
16952 to always fail with ENOSYS. Some functions are actually named
16953 something starting with __ and the normal name is an alias. */
16954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16955choke me
16956#else
16957$ac_func();
16958#endif
16959
16960; return 0; }
16961EOF
16962if { (eval echo configure:16963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16963 rm -rf conftest*
16964 eval "ac_cv_func_$ac_func=yes"
16965else
16966 echo "configure: failed program was:" >&5
16967 cat conftest.$ac_ext >&5
16968 rm -rf conftest*
16969 eval "ac_cv_func_$ac_func=no"
16970fi
16971rm -f conftest*
16972fi
16973
16974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16975 echo "$ac_t""yes" 1>&6
16976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16977 cat >> confdefs.h <<EOF
16978#define $ac_tr_func 1
16979EOF
16980 cat >> confdefs.h <<\EOF
16981#define HAVE_INET_ATON 1
16982EOF
16983
16984else
16985 echo "$ac_t""no" 1>&6
16986 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16987echo "configure:16988: checking for inet_aton in -l$INET_LINK" >&5
16988ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16989if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16990 echo $ac_n "(cached) $ac_c" 1>&6
16991else
16992 ac_save_LIBS="$LIBS"
16993LIBS="-l$INET_LINK $LIBS"
16994cat > conftest.$ac_ext <<EOF
16995#line 16996 "configure"
16996#include "confdefs.h"
16997/* Override any gcc2 internal prototype to avoid an error. */
16998/* We use char because int might match the return type of a gcc2
16999 builtin and then its argument prototype would still apply. */
17000char inet_aton();
17001
17002int main() {
17003inet_aton()
17004; return 0; }
17005EOF
17006if { (eval echo configure:17007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17007 rm -rf conftest*
17008 eval "ac_cv_lib_$ac_lib_var=yes"
17009else
17010 echo "configure: failed program was:" >&5
17011 cat conftest.$ac_ext >&5
17012 rm -rf conftest*
17013 eval "ac_cv_lib_$ac_lib_var=no"
17014fi
17015rm -f conftest*
17016LIBS="$ac_save_LIBS"
17017
17018fi
17019if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17020 echo "$ac_t""yes" 1>&6
17021 cat >> confdefs.h <<\EOF
17022#define HAVE_INET_ATON 1
17023EOF
17024
17025else
17026 echo "$ac_t""no" 1>&6
17027fi
17028
17029
17030fi
17031done
17032
17033
17034if test "x$INET_LINK" != "x"; then
17035 cat >> confdefs.h <<\EOF
17036#define HAVE_INET_ADDR 1
17037EOF
17038
17039 INET_LINK=" -l$INET_LINK"
17040fi
17041
17042fi
17043
17044
17045cat > confcache <<\EOF
17046# This file is a shell script that caches the results of configure
17047# tests run on this system so they can be shared between configure
17048# scripts and configure runs. It is not useful on other systems.
17049# If it contains results you don't want to keep, you may remove or edit it.
17050#
17051# By default, configure uses ./config.cache as the cache file,
17052# creating it if it does not exist already. You can give configure
17053# the --cache-file=FILE option to use a different cache file; that is
17054# what configure does when it calls configure scripts in
17055# subdirectories, so they share the cache.
17056# Giving --cache-file=/dev/null disables caching, for debugging configure.
17057# config.status only pays attention to the cache file if you give it the
17058# --recheck option to rerun configure.
17059#
17060EOF
17061# The following way of writing the cache mishandles newlines in values,
17062# but we know of no workaround that is simple, portable, and efficient.
17063# So, don't put newlines in cache variables' values.
17064# Ultrix sh set writes to stderr and can't be redirected directly,
17065# and sets the high bit in the cache file unless we assign to the vars.
17066(set) 2>&1 |
17067 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17068 *ac_space=\ *)
17069 # `set' does not quote correctly, so add quotes (double-quote substitution
17070 # turns \\\\ into \\, and sed turns \\ into \).
17071 sed -n \
17072 -e "s/'/'\\\\''/g" \
17073 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17074 ;;
17075 *)
17076 # `set' quotes correctly as required by POSIX, so do not add quotes.
17077 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17078 ;;
17079 esac >> confcache
17080if cmp -s $cache_file confcache; then
17081 :
17082else
17083 if test -w $cache_file; then
17084 echo "updating cache $cache_file"
17085 cat confcache > $cache_file
17086 else
17087 echo "not updating unwritable cache $cache_file"
17088 fi
17089fi
17090rm -f confcache
17091
17092
17093
17094if test "$TOOLKIT" != "MSW"; then
17095
17096
17097 THREADS_LINK=
17098 THREADS_OBJ=
17099 CODE_GEN_FLAGS=
17100 CODE_GEN_FLAGS_CXX=
17101
17102 if test "$wxUSE_THREADS" = "yes" ; then
17103 if test "$wxUSE_WINE" = 1 ; then
17104 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17105 wxUSE_THREADS="no"
17106 elif test "$USE_BEOS" = 1; then
17107 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17108 wxUSE_THREADS="no"
17109 fi
17110 fi
17111
17112 if test "$wxUSE_THREADS" = "yes" ; then
17113
17114 if test "$USE_AIX" = 1; then
17115 THREADS_LIB=pthreads
17116 else
17117 THREADS_LIB=pthread
17118 fi
17119
17120 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
17121echo "configure:17122: checking for pthread_create in -l$THREADS_LIB" >&5
17122ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17123if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17125else
17126 ac_save_LIBS="$LIBS"
17127LIBS="-l$THREADS_LIB $LIBS"
17128cat > conftest.$ac_ext <<EOF
17129#line 17130 "configure"
17130#include "confdefs.h"
17131/* Override any gcc2 internal prototype to avoid an error. */
17132/* We use char because int might match the return type of a gcc2
17133 builtin and then its argument prototype would still apply. */
17134char pthread_create();
17135
17136int main() {
17137pthread_create()
17138; return 0; }
17139EOF
17140if { (eval echo configure:17141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17141 rm -rf conftest*
17142 eval "ac_cv_lib_$ac_lib_var=yes"
17143else
17144 echo "configure: failed program was:" >&5
17145 cat conftest.$ac_ext >&5
17146 rm -rf conftest*
17147 eval "ac_cv_lib_$ac_lib_var=no"
17148fi
17149rm -f conftest*
17150LIBS="$ac_save_LIBS"
17151
17152fi
17153if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17154 echo "$ac_t""yes" 1>&6
17155
17156 THREADS_OBJ="threadpsx.lo"
17157 THREADS_LINK=$THREADS_LIB
17158
17159else
17160 echo "$ac_t""no" 1>&6
17161
17162 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17163echo "configure:17164: checking for pthread_create in -lc_r" >&5
17164ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17165if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
17167else
17168 ac_save_LIBS="$LIBS"
17169LIBS="-lc_r $LIBS"
17170cat > conftest.$ac_ext <<EOF
17171#line 17172 "configure"
17172#include "confdefs.h"
17173/* Override any gcc2 internal prototype to avoid an error. */
17174/* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17176char pthread_create();
17177
17178int main() {
17179pthread_create()
17180; return 0; }
17181EOF
17182if { (eval echo configure:17183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17183 rm -rf conftest*
17184 eval "ac_cv_lib_$ac_lib_var=yes"
17185else
17186 echo "configure: failed program was:" >&5
17187 cat conftest.$ac_ext >&5
17188 rm -rf conftest*
17189 eval "ac_cv_lib_$ac_lib_var=no"
17190fi
17191rm -f conftest*
17192LIBS="$ac_save_LIBS"
17193
17194fi
17195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17196 echo "$ac_t""yes" 1>&6
17197
17198 THREADS_OBJ="threadpsx.lo"
17199 THREADS_LINK="c_r"
17200
17201else
17202 echo "$ac_t""no" 1>&6
17203
17204 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17205echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17206echo "configure:17207: checking for sys/prctl.h" >&5
17207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
17209else
17210 cat > conftest.$ac_ext <<EOF
17211#line 17212 "configure"
17212#include "confdefs.h"
17213#include <sys/prctl.h>
17214EOF
17215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17216{ (eval echo configure:17217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17218if test -z "$ac_err"; then
17219 rm -rf conftest*
17220 eval "ac_cv_header_$ac_safe=yes"
17221else
17222 echo "$ac_err" >&5
17223 echo "configure: failed program was:" >&5
17224 cat conftest.$ac_ext >&5
17225 rm -rf conftest*
17226 eval "ac_cv_header_$ac_safe=no"
17227fi
17228rm -f conftest*
17229fi
17230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17231 echo "$ac_t""yes" 1>&6
17232
17233 THREADS_OBJ="threadsgi.lo"
17234
17235else
17236 echo "$ac_t""no" 1>&6
17237fi
17238
17239
17240fi
17241
17242
17243fi
17244
17245
17246 if test -z "$THREADS_OBJ" ; then
17247 wxUSE_THREADS=no
17248 echo "configure: warning: No thread support on this system... disabled" 1>&2
17249 fi
17250 fi
17251
17252 if test "$wxUSE_THREADS" = "yes" ; then
17253 for ac_func in thr_setconcurrency
17254do
17255echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17256echo "configure:17257: checking for $ac_func" >&5
17257if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17258 echo $ac_n "(cached) $ac_c" 1>&6
17259else
17260 cat > conftest.$ac_ext <<EOF
17261#line 17262 "configure"
17262#include "confdefs.h"
17263/* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char $ac_func(); below. */
17265#include <assert.h>
17266/* Override any gcc2 internal prototype to avoid an error. */
17267/* We use char because int might match the return type of a gcc2
17268 builtin and then its argument prototype would still apply. */
17269char $ac_func();
17270
17271int main() {
17272
17273/* The GNU C library defines this for functions which it implements
17274 to always fail with ENOSYS. Some functions are actually named
17275 something starting with __ and the normal name is an alias. */
17276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17277choke me
17278#else
17279$ac_func();
17280#endif
17281
17282; return 0; }
17283EOF
17284if { (eval echo configure:17285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17285 rm -rf conftest*
17286 eval "ac_cv_func_$ac_func=yes"
17287else
17288 echo "configure: failed program was:" >&5
17289 cat conftest.$ac_ext >&5
17290 rm -rf conftest*
17291 eval "ac_cv_func_$ac_func=no"
17292fi
17293rm -f conftest*
17294fi
17295
17296if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17297 echo "$ac_t""yes" 1>&6
17298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17299 cat >> confdefs.h <<EOF
17300#define $ac_tr_func 1
17301EOF
17302
17303else
17304 echo "$ac_t""no" 1>&6
17305fi
17306done
17307
17308
17309
17310 for ac_hdr in sched.h
17311do
17312ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17313echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17314echo "configure:17315: checking for $ac_hdr" >&5
17315if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17316 echo $ac_n "(cached) $ac_c" 1>&6
17317else
17318 cat > conftest.$ac_ext <<EOF
17319#line 17320 "configure"
17320#include "confdefs.h"
17321#include <$ac_hdr>
17322EOF
17323ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17324{ (eval echo configure:17325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17325ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17326if test -z "$ac_err"; then
17327 rm -rf conftest*
17328 eval "ac_cv_header_$ac_safe=yes"
17329else
17330 echo "$ac_err" >&5
17331 echo "configure: failed program was:" >&5
17332 cat conftest.$ac_ext >&5
17333 rm -rf conftest*
17334 eval "ac_cv_header_$ac_safe=no"
17335fi
17336rm -f conftest*
17337fi
17338if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17339 echo "$ac_t""yes" 1>&6
17340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17341 cat >> confdefs.h <<EOF
17342#define $ac_tr_hdr 1
17343EOF
17344
17345else
17346 echo "$ac_t""no" 1>&6
17347fi
17348done
17349
17350
17351 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17352echo "configure:17353: checking for sched_yield in -l$THREADS_LINK" >&5
17353ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17355 echo $ac_n "(cached) $ac_c" 1>&6
17356else
17357 ac_save_LIBS="$LIBS"
17358LIBS="-l$THREADS_LINK $LIBS"
17359cat > conftest.$ac_ext <<EOF
17360#line 17361 "configure"
17361#include "confdefs.h"
17362/* Override any gcc2 internal prototype to avoid an error. */
17363/* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365char sched_yield();
17366
17367int main() {
17368sched_yield()
17369; return 0; }
17370EOF
17371if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17372 rm -rf conftest*
17373 eval "ac_cv_lib_$ac_lib_var=yes"
17374else
17375 echo "configure: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17377 rm -rf conftest*
17378 eval "ac_cv_lib_$ac_lib_var=no"
17379fi
17380rm -f conftest*
17381LIBS="$ac_save_LIBS"
17382
17383fi
17384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17385 echo "$ac_t""yes" 1>&6
17386 cat >> confdefs.h <<\EOF
17387#define HAVE_SCHED_YIELD 1
17388EOF
17389
17390else
17391 echo "$ac_t""no" 1>&6
17392echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17393echo "configure:17394: checking for sched_yield in -lposix4" >&5
17394ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17396 echo $ac_n "(cached) $ac_c" 1>&6
17397else
17398 ac_save_LIBS="$LIBS"
17399LIBS="-lposix4 $LIBS"
17400cat > conftest.$ac_ext <<EOF
17401#line 17402 "configure"
17402#include "confdefs.h"
17403/* Override any gcc2 internal prototype to avoid an error. */
17404/* We use char because int might match the return type of a gcc2
17405 builtin and then its argument prototype would still apply. */
17406char sched_yield();
17407
17408int main() {
17409sched_yield()
17410; return 0; }
17411EOF
17412if { (eval echo configure:17413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17413 rm -rf conftest*
17414 eval "ac_cv_lib_$ac_lib_var=yes"
17415else
17416 echo "configure: failed program was:" >&5
17417 cat conftest.$ac_ext >&5
17418 rm -rf conftest*
17419 eval "ac_cv_lib_$ac_lib_var=no"
17420fi
17421rm -f conftest*
17422LIBS="$ac_save_LIBS"
17423
17424fi
17425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17426 echo "$ac_t""yes" 1>&6
17427 cat >> confdefs.h <<\EOF
17428#define HAVE_SCHED_YIELD 1
17429EOF
17430 POSIX4_LINK=" -lposix4"
17431else
17432 echo "$ac_t""no" 1>&6
17433echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17434
17435fi
17436
17437
17438fi
17439
17440
17441 HAVE_PRIOR_FUNCS=0
17442 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17443echo "configure:17444: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17444ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17446 echo $ac_n "(cached) $ac_c" 1>&6
17447else
17448 ac_save_LIBS="$LIBS"
17449LIBS="-l$THREADS_LINK $LIBS"
17450cat > conftest.$ac_ext <<EOF
17451#line 17452 "configure"
17452#include "confdefs.h"
17453/* Override any gcc2 internal prototype to avoid an error. */
17454/* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17456char pthread_attr_getschedpolicy();
17457
17458int main() {
17459pthread_attr_getschedpolicy()
17460; return 0; }
17461EOF
17462if { (eval echo configure:17463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17463 rm -rf conftest*
17464 eval "ac_cv_lib_$ac_lib_var=yes"
17465else
17466 echo "configure: failed program was:" >&5
17467 cat conftest.$ac_ext >&5
17468 rm -rf conftest*
17469 eval "ac_cv_lib_$ac_lib_var=no"
17470fi
17471rm -f conftest*
17472LIBS="$ac_save_LIBS"
17473
17474fi
17475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17476 echo "$ac_t""yes" 1>&6
17477 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17478echo "configure:17479: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17479ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17481 echo $ac_n "(cached) $ac_c" 1>&6
17482else
17483 ac_save_LIBS="$LIBS"
17484LIBS="-l$THREADS_LINK $LIBS"
17485cat > conftest.$ac_ext <<EOF
17486#line 17487 "configure"
17487#include "confdefs.h"
17488/* Override any gcc2 internal prototype to avoid an error. */
17489/* We use char because int might match the return type of a gcc2
17490 builtin and then its argument prototype would still apply. */
17491char pthread_attr_setschedparam();
17492
17493int main() {
17494pthread_attr_setschedparam()
17495; return 0; }
17496EOF
17497if { (eval echo configure:17498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17498 rm -rf conftest*
17499 eval "ac_cv_lib_$ac_lib_var=yes"
17500else
17501 echo "configure: failed program was:" >&5
17502 cat conftest.$ac_ext >&5
17503 rm -rf conftest*
17504 eval "ac_cv_lib_$ac_lib_var=no"
17505fi
17506rm -f conftest*
17507LIBS="$ac_save_LIBS"
17508
17509fi
17510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17511 echo "$ac_t""yes" 1>&6
17512 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17513echo "configure:17514: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17514ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17515if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17516 echo $ac_n "(cached) $ac_c" 1>&6
17517else
17518 ac_save_LIBS="$LIBS"
17519LIBS="-l$THREADS_LINK $LIBS"
17520cat > conftest.$ac_ext <<EOF
17521#line 17522 "configure"
17522#include "confdefs.h"
17523/* Override any gcc2 internal prototype to avoid an error. */
17524/* We use char because int might match the return type of a gcc2
17525 builtin and then its argument prototype would still apply. */
17526char sched_get_priority_max();
17527
17528int main() {
17529sched_get_priority_max()
17530; return 0; }
17531EOF
17532if { (eval echo configure:17533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17533 rm -rf conftest*
17534 eval "ac_cv_lib_$ac_lib_var=yes"
17535else
17536 echo "configure: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17538 rm -rf conftest*
17539 eval "ac_cv_lib_$ac_lib_var=no"
17540fi
17541rm -f conftest*
17542LIBS="$ac_save_LIBS"
17543
17544fi
17545if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17546 echo "$ac_t""yes" 1>&6
17547 HAVE_PRIOR_FUNCS=1
17548else
17549 echo "$ac_t""no" 1>&6
17550echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17551echo "configure:17552: checking for sched_get_priority_max in -lposix4" >&5
17552ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17553if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17554 echo $ac_n "(cached) $ac_c" 1>&6
17555else
17556 ac_save_LIBS="$LIBS"
17557LIBS="-lposix4 $LIBS"
17558cat > conftest.$ac_ext <<EOF
17559#line 17560 "configure"
17560#include "confdefs.h"
17561/* Override any gcc2 internal prototype to avoid an error. */
17562/* We use char because int might match the return type of a gcc2
17563 builtin and then its argument prototype would still apply. */
17564char sched_get_priority_max();
17565
17566int main() {
17567sched_get_priority_max()
17568; return 0; }
17569EOF
17570if { (eval echo configure:17571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17571 rm -rf conftest*
17572 eval "ac_cv_lib_$ac_lib_var=yes"
17573else
17574 echo "configure: failed program was:" >&5
17575 cat conftest.$ac_ext >&5
17576 rm -rf conftest*
17577 eval "ac_cv_lib_$ac_lib_var=no"
17578fi
17579rm -f conftest*
17580LIBS="$ac_save_LIBS"
17581
17582fi
17583if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17584 echo "$ac_t""yes" 1>&6
17585
17586 HAVE_PRIOR_FUNCS=1
17587 POSIX4_LINK=" -lposix4"
17588
17589else
17590 echo "$ac_t""no" 1>&6
17591fi
17592
17593
17594fi
17595
17596
17597else
17598 echo "$ac_t""no" 1>&6
17599fi
17600
17601
17602else
17603 echo "$ac_t""no" 1>&6
17604fi
17605
17606
17607 if test "$HAVE_PRIOR_FUNCS" = 1; then
17608 cat >> confdefs.h <<\EOF
17609#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17610EOF
17611
17612 else
17613 echo "configure: warning: Setting thread priority will not work" 1>&2
17614 fi
17615
17616 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17617echo "configure:17618: checking for pthread_cancel in -l$THREADS_LINK" >&5
17618ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17619if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17620 echo $ac_n "(cached) $ac_c" 1>&6
17621else
17622 ac_save_LIBS="$LIBS"
17623LIBS="-l$THREADS_LINK $LIBS"
17624cat > conftest.$ac_ext <<EOF
17625#line 17626 "configure"
17626#include "confdefs.h"
17627/* Override any gcc2 internal prototype to avoid an error. */
17628/* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17630char pthread_cancel();
17631
17632int main() {
17633pthread_cancel()
17634; return 0; }
17635EOF
17636if { (eval echo configure:17637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17637 rm -rf conftest*
17638 eval "ac_cv_lib_$ac_lib_var=yes"
17639else
17640 echo "configure: failed program was:" >&5
17641 cat conftest.$ac_ext >&5
17642 rm -rf conftest*
17643 eval "ac_cv_lib_$ac_lib_var=no"
17644fi
17645rm -f conftest*
17646LIBS="$ac_save_LIBS"
17647
17648fi
17649if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17650 echo "$ac_t""yes" 1>&6
17651 cat >> confdefs.h <<\EOF
17652#define HAVE_PTHREAD_CANCEL 1
17653EOF
17654
17655else
17656 echo "$ac_t""no" 1>&6
17657echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17658fi
17659
17660
17661 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17662echo "configure:17663: checking for pthread_cleanup_push/pop" >&5
17663if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17664 echo $ac_n "(cached) $ac_c" 1>&6
17665else
17666
17667 cat > conftest.$ac_ext <<EOF
17668#line 17669 "configure"
17669#include "confdefs.h"
17670#include <pthread.h>
17671int main() {
17672
17673 pthread_cleanup_push(NULL, NULL);
17674 pthread_cleanup_pop(0);
17675
17676; return 0; }
17677EOF
17678if { (eval echo configure:17679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17679 rm -rf conftest*
17680
17681 wx_cv_func_pthread_cleanup_push=yes
17682
17683else
17684 echo "configure: failed program was:" >&5
17685 cat conftest.$ac_ext >&5
17686 rm -rf conftest*
17687
17688 wx_cv_func_pthread_cleanup_push=no
17689
17690fi
17691rm -f conftest*
17692
17693fi
17694
17695echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17696
17697 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17698 cat >> confdefs.h <<\EOF
17699#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17700EOF
17701
17702 fi
17703
17704
17705 if test "x$wx_lib_glibc21" = "xyes"; then
17706 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17707 fi
17708
17709 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17710echo "configure:17711: checking for pthread_mutexattr_t" >&5
17711if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17712 echo $ac_n "(cached) $ac_c" 1>&6
17713else
17714
17715 cat > conftest.$ac_ext <<EOF
17716#line 17717 "configure"
17717#include "confdefs.h"
17718#include <pthread.h>
17719int main() {
17720
17721 pthread_mutexattr_t attr;
17722 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17723
17724; return 0; }
17725EOF
17726if { (eval echo configure:17727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17727 rm -rf conftest*
17728
17729 wx_cv_type_pthread_mutexattr_t=yes
17730
17731else
17732 echo "configure: failed program was:" >&5
17733 cat conftest.$ac_ext >&5
17734 rm -rf conftest*
17735
17736 wx_cv_type_pthread_mutexattr_t=no
17737
17738
17739fi
17740rm -f conftest*
17741
17742fi
17743
17744echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17745
17746 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17747 cat >> confdefs.h <<\EOF
17748#define HAVE_PTHREAD_MUTEXATTR_T 1
17749EOF
17750
17751 else
17752 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17753echo "configure:17754: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17754if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17755 echo $ac_n "(cached) $ac_c" 1>&6
17756else
17757
17758 cat > conftest.$ac_ext <<EOF
17759#line 17760 "configure"
17760#include "confdefs.h"
17761#include <pthread.h>
17762int main() {
17763
17764 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17765
17766; return 0; }
17767EOF
17768if { (eval echo configure:17769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17769 rm -rf conftest*
17770
17771 wx_cv_type_pthread_rec_mutex_init=yes
17772
17773else
17774 echo "configure: failed program was:" >&5
17775 cat conftest.$ac_ext >&5
17776 rm -rf conftest*
17777
17778 wx_cv_type_pthread_rec_mutex_init=no
17779
17780
17781fi
17782rm -f conftest*
17783
17784fi
17785
17786echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17787 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17788 cat >> confdefs.h <<\EOF
17789#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17790EOF
17791
17792 else
17793 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17794 fi
17795 fi
17796
17797 THREADS_LINK=" -l$THREADS_LINK"
17798
17799 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17800 CPPFLAGS="$CFLAGS -mt"
17801 CXXFLAGS="$CXXFLAGS -mt"
17802 LDFLAGS="$LDFLAGS -mt"
17803 fi
17804 fi
17805
17806fi
17807
17808if test "$wxUSE_THREADS" = "yes"; then
17809 cat >> confdefs.h <<\EOF
17810#define wxUSE_THREADS 1
17811EOF
17812
17813
17814 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17815
17816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17817else
17818 if test "$ac_cv_func_strtok_r" = "yes"; then
17819 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17820echo "configure:17821: checking if -D_REENTRANT is needed" >&5
17821 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17822 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17823 echo "$ac_t""yes" 1>&6
17824 else
17825 echo "$ac_t""no" 1>&6
17826 fi
17827 fi
17828fi
17829
17830if test "$WXGTK20" = 1 ; then
17831 cat >> confdefs.h <<EOF
17832#define __WXGTK20__ $WXGTK20
17833EOF
17834
17835 WXGTK12=1
17836fi
17837
17838if test "$WXGTK12" = 1 ; then
17839 cat >> confdefs.h <<EOF
17840#define __WXGTK12__ $WXGTK12
17841EOF
17842
17843fi
17844
17845if test "$WXGTK127" = 1 ; then
17846 cat >> confdefs.h <<EOF
17847#define __WXGTK127__ $WXGTK127
17848EOF
17849
17850fi
17851
17852WXDEBUG=
17853
17854if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17855 WXDEBUG="-g"
17856 wxUSE_OPTIMISE=no
17857fi
17858
17859if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17860 wxUSE_DEBUG_INFO=yes
17861 WXDEBUG="-ggdb"
17862fi
17863
17864if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17865 cat >> confdefs.h <<\EOF
17866#define WXDEBUG 1
17867EOF
17868
17869 WXDEBUG_DEFINE="-D__WXDEBUG__"
17870else
17871 if test "$wxUSE_GTK" = 1 ; then
17872 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17873 fi
17874fi
17875
17876if test "$wxUSE_MEM_TRACING" = "yes" ; then
17877 cat >> confdefs.h <<\EOF
17878#define wxUSE_MEMORY_TRACING 1
17879EOF
17880
17881 cat >> confdefs.h <<\EOF
17882#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17883EOF
17884
17885 cat >> confdefs.h <<\EOF
17886#define wxUSE_DEBUG_NEW_ALWAYS 1
17887EOF
17888
17889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17890fi
17891
17892if test "$wxUSE_DMALLOC" = "yes" ; then
17893 DMALLOC_LIBS="-ldmalloc"
17894fi
17895
17896PROFILE=
17897if test "$wxUSE_PROFILE" = "yes" ; then
17898 PROFILE=" -pg"
17899fi
17900
17901if test "$GCC" = "yes" ; then
17902 if test "$wxUSE_NO_RTTI" = "yes" ; then
17903 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17904 fi
17905 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17906 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17907 fi
17908 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17909 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17910 fi
17911 if test "$USE_WIN32" = 1 ; then
17912 # I'm not even really sure what this was ever added to solve,
17913 # but someone added it for mingw native builds, so I guess
17914 # they had a reason, right??
17915 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17916 fi
17917fi
17918
17919
17920CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17921CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17922if test "$wxUSE_OPTIMISE" = "no" ; then
17923 OPTIMISE=
17924else
17925 if test "$GCC" = yes ; then
17926 OPTIMISE="-O2"
17927 case "${host}" in
17928 i586-*-*|i686-*-* )
17929 OPTIMISE="${OPTIMISE} "
17930 ;;
17931 esac
17932 else
17933 OPTIMISE="-O"
17934 fi
17935fi
17936
17937if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17938 cat >> confdefs.h <<\EOF
17939#define WXWIN_COMPATIBILITY_2 1
17940EOF
17941
17942
17943 WXWIN_COMPATIBILITY_2_2="yes"
17944fi
17945
17946if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
17947 cat >> confdefs.h <<\EOF
17948#define WXWIN_COMPATIBILITY_2_2 1
17949EOF
17950
17951fi
17952
17953
17954if test "$wxUSE_GUI" = "yes"; then
17955 cat >> confdefs.h <<\EOF
17956#define wxUSE_GUI 1
17957EOF
17958
17959
17960 else
17961 cat >> confdefs.h <<\EOF
17962#define wxUSE_NOGUI 1
17963EOF
17964
17965fi
17966
17967
17968if test "$wxUSE_UNIX" = "yes"; then
17969 cat >> confdefs.h <<\EOF
17970#define wxUSE_UNIX 1
17971EOF
17972
17973fi
17974
17975
17976if test "$wxUSE_APPLE_IEEE" = "yes"; then
17977 cat >> confdefs.h <<\EOF
17978#define wxUSE_APPLE_IEEE 1
17979EOF
17980
17981fi
17982
17983if test "$wxUSE_TIMER" = "yes"; then
17984 cat >> confdefs.h <<\EOF
17985#define wxUSE_TIMER 1
17986EOF
17987
17988fi
17989
17990if test "$wxUSE_WAVE" = "yes"; then
17991 cat >> confdefs.h <<\EOF
17992#define wxUSE_WAVE 1
17993EOF
17994
17995fi
17996
17997if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17998 cat >> confdefs.h <<\EOF
17999#define wxUSE_CMDLINE_PARSER 1
18000EOF
18001
18002fi
18003
18004if test "$wxUSE_STOPWATCH" = "yes"; then
18005 cat >> confdefs.h <<\EOF
18006#define wxUSE_STOPWATCH 1
18007EOF
18008
18009fi
18010
18011if test "$wxUSE_DATETIME" = "yes"; then
18012 cat >> confdefs.h <<\EOF
18013#define wxUSE_DATETIME 1
18014EOF
18015
18016fi
18017
18018if test "$wxUSE_TIMEDATE" = "yes"; then
18019 cat >> confdefs.h <<\EOF
18020#define wxUSE_TIMEDATE 1
18021EOF
18022
18023fi
18024
18025if test "$wxUSE_FILE" = "yes"; then
18026 cat >> confdefs.h <<\EOF
18027#define wxUSE_FILE 1
18028EOF
18029
18030fi
18031
18032if test "$wxUSE_FFILE" = "yes"; then
18033 cat >> confdefs.h <<\EOF
18034#define wxUSE_FFILE 1
18035EOF
18036
18037fi
18038
18039if test "$wxUSE_FILESYSTEM" = "yes"; then
18040 cat >> confdefs.h <<\EOF
18041#define wxUSE_FILESYSTEM 1
18042EOF
18043
18044fi
18045
18046if test "$wxUSE_FS_INET" = "yes"; then
18047 cat >> confdefs.h <<\EOF
18048#define wxUSE_FS_INET 1
18049EOF
18050
18051fi
18052
18053if test "$wxUSE_FS_ZIP" = "yes"; then
18054 cat >> confdefs.h <<\EOF
18055#define wxUSE_FS_ZIP 1
18056EOF
18057
18058fi
18059
18060if test "$wxUSE_ZIPSTREAM" = "yes"; then
18061 cat >> confdefs.h <<\EOF
18062#define wxUSE_ZIPSTREAM 1
18063EOF
18064
18065fi
18066
18067if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18068 cat >> confdefs.h <<\EOF
18069#define wxUSE_ON_FATAL_EXCEPTION 1
18070EOF
18071
18072fi
18073
18074if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18075 cat >> confdefs.h <<\EOF
18076#define wxUSE_SNGLINST_CHECKER 1
18077EOF
18078
18079fi
18080
18081if test "$wxUSE_BUSYINFO" = "yes"; then
18082 cat >> confdefs.h <<\EOF
18083#define wxUSE_BUSYINFO 1
18084EOF
18085
18086fi
18087
18088if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18089 cat >> confdefs.h <<\EOF
18090#define wxUSE_STD_IOSTREAM 1
18091EOF
18092
18093fi
18094
18095if test "$wxUSE_TEXTBUFFER" = "yes"; then
18096 cat >> confdefs.h <<\EOF
18097#define wxUSE_TEXTBUFFER 1
18098EOF
18099
18100fi
18101
18102if test "$wxUSE_TEXTFILE" = "yes"; then
18103 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18104 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18105 else
18106 cat >> confdefs.h <<\EOF
18107#define wxUSE_TEXTFILE 1
18108EOF
18109
18110 fi
18111fi
18112
18113if test "$wxUSE_CONFIG" = "yes" ; then
18114 if test "$wxUSE_TEXTFILE" != "yes"; then
18115 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18116 else
18117 cat >> confdefs.h <<\EOF
18118#define wxUSE_CONFIG 1
18119EOF
18120
18121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18122 fi
18123fi
18124
18125if test "$wxUSE_INTL" = "yes" ; then
18126 if test "$wxUSE_FILE" != "yes"; then
18127 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18128 else
18129 cat >> confdefs.h <<\EOF
18130#define wxUSE_INTL 1
18131EOF
18132
18133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18134 GUIDIST="$GUIDIST INTL_DIST"
18135 fi
18136fi
18137
18138if test "$wxUSE_LOG" = "yes"; then
18139 cat >> confdefs.h <<\EOF
18140#define wxUSE_LOG 1
18141EOF
18142
18143
18144 if test "$wxUSE_LOGGUI" = "yes"; then
18145 cat >> confdefs.h <<\EOF
18146#define wxUSE_LOGGUI 1
18147EOF
18148
18149 fi
18150
18151 if test "$wxUSE_LOGWINDOW" = "yes"; then
18152 cat >> confdefs.h <<\EOF
18153#define wxUSE_LOGWINDOW 1
18154EOF
18155
18156 fi
18157
18158 if test "$wxUSE_LOGDIALOG" = "yes"; then
18159 cat >> confdefs.h <<\EOF
18160#define wxUSE_LOG_DIALOG 1
18161EOF
18162
18163 fi
18164fi
18165
18166if test "$wxUSE_LONGLONG" = "yes"; then
18167 cat >> confdefs.h <<\EOF
18168#define wxUSE_LONGLONG 1
18169EOF
18170
18171fi
18172
18173if test "$wxUSE_GEOMETRY" = "yes"; then
18174 cat >> confdefs.h <<\EOF
18175#define wxUSE_GEOMETRY 1
18176EOF
18177
18178fi
18179
18180if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18181 cat >> confdefs.h <<\EOF
18182#define wxUSE_DIALUP_MANAGER 1
18183EOF
18184
18185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18186fi
18187
18188if test "$wxUSE_STREAMS" = "yes" ; then
18189 cat >> confdefs.h <<\EOF
18190#define wxUSE_STREAMS 1
18191EOF
18192
18193fi
18194
18195
18196if test "$wxUSE_DATETIME" = "yes"; then
18197 for ac_func in strptime
18198do
18199echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18200echo "configure:18201: checking for $ac_func" >&5
18201if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18202 echo $ac_n "(cached) $ac_c" 1>&6
18203else
18204 cat > conftest.$ac_ext <<EOF
18205#line 18206 "configure"
18206#include "confdefs.h"
18207/* System header to define __stub macros and hopefully few prototypes,
18208 which can conflict with char $ac_func(); below. */
18209#include <assert.h>
18210/* Override any gcc2 internal prototype to avoid an error. */
18211/* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213char $ac_func();
18214
18215int main() {
18216
18217/* The GNU C library defines this for functions which it implements
18218 to always fail with ENOSYS. Some functions are actually named
18219 something starting with __ and the normal name is an alias. */
18220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18221choke me
18222#else
18223$ac_func();
18224#endif
18225
18226; return 0; }
18227EOF
18228if { (eval echo configure:18229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18229 rm -rf conftest*
18230 eval "ac_cv_func_$ac_func=yes"
18231else
18232 echo "configure: failed program was:" >&5
18233 cat conftest.$ac_ext >&5
18234 rm -rf conftest*
18235 eval "ac_cv_func_$ac_func=no"
18236fi
18237rm -f conftest*
18238fi
18239
18240if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18241 echo "$ac_t""yes" 1>&6
18242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18243 cat >> confdefs.h <<EOF
18244#define $ac_tr_func 1
18245EOF
18246
18247else
18248 echo "$ac_t""no" 1>&6
18249fi
18250done
18251
18252
18253 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18254echo "configure:18255: checking for timezone variable in <time.h>" >&5
18255if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18256 echo $ac_n "(cached) $ac_c" 1>&6
18257else
18258
18259 cat > conftest.$ac_ext <<EOF
18260#line 18261 "configure"
18261#include "confdefs.h"
18262
18263 #include <time.h>
18264
18265int main() {
18266
18267 int tz;
18268 tz = timezone;
18269
18270; return 0; }
18271EOF
18272if { (eval echo configure:18273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18273 rm -rf conftest*
18274
18275 wx_cv_var_timezone=timezone
18276
18277else
18278 echo "configure: failed program was:" >&5
18279 cat conftest.$ac_ext >&5
18280 rm -rf conftest*
18281
18282 cat > conftest.$ac_ext <<EOF
18283#line 18284 "configure"
18284#include "confdefs.h"
18285
18286 #include <time.h>
18287
18288int main() {
18289
18290 int tz;
18291 tz = _timezone;
18292
18293; return 0; }
18294EOF
18295if { (eval echo configure:18296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18296 rm -rf conftest*
18297
18298 wx_cv_var_timezone=_timezone
18299
18300else
18301 echo "configure: failed program was:" >&5
18302 cat conftest.$ac_ext >&5
18303 rm -rf conftest*
18304
18305 cat > conftest.$ac_ext <<EOF
18306#line 18307 "configure"
18307#include "confdefs.h"
18308
18309 #include <time.h>
18310
18311int main() {
18312
18313 int tz;
18314 tz = __timezone;
18315
18316; return 0; }
18317EOF
18318if { (eval echo configure:18319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18319 rm -rf conftest*
18320
18321 wx_cv_var_timezone=__timezone
18322
18323else
18324 echo "configure: failed program was:" >&5
18325 cat conftest.$ac_ext >&5
18326 rm -rf conftest*
18327
18328 if test "$USE_DOS" = 0 ; then
18329 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18330 fi
18331
18332
18333fi
18334rm -f conftest*
18335
18336
18337fi
18338rm -f conftest*
18339
18340
18341fi
18342rm -f conftest*
18343
18344
18345fi
18346
18347echo "$ac_t""$wx_cv_var_timezone" 1>&6
18348
18349 if test "x$wx_cv_var_timezone" != x ; then
18350 cat >> confdefs.h <<EOF
18351#define WX_TIMEZONE $wx_cv_var_timezone
18352EOF
18353
18354 fi
18355
18356 for ac_func in localtime
18357do
18358echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18359echo "configure:18360: checking for $ac_func" >&5
18360if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18361 echo $ac_n "(cached) $ac_c" 1>&6
18362else
18363 cat > conftest.$ac_ext <<EOF
18364#line 18365 "configure"
18365#include "confdefs.h"
18366/* System header to define __stub macros and hopefully few prototypes,
18367 which can conflict with char $ac_func(); below. */
18368#include <assert.h>
18369/* Override any gcc2 internal prototype to avoid an error. */
18370/* We use char because int might match the return type of a gcc2
18371 builtin and then its argument prototype would still apply. */
18372char $ac_func();
18373
18374int main() {
18375
18376/* The GNU C library defines this for functions which it implements
18377 to always fail with ENOSYS. Some functions are actually named
18378 something starting with __ and the normal name is an alias. */
18379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18380choke me
18381#else
18382$ac_func();
18383#endif
18384
18385; return 0; }
18386EOF
18387if { (eval echo configure:18388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18388 rm -rf conftest*
18389 eval "ac_cv_func_$ac_func=yes"
18390else
18391 echo "configure: failed program was:" >&5
18392 cat conftest.$ac_ext >&5
18393 rm -rf conftest*
18394 eval "ac_cv_func_$ac_func=no"
18395fi
18396rm -f conftest*
18397fi
18398
18399if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18400 echo "$ac_t""yes" 1>&6
18401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18402 cat >> confdefs.h <<EOF
18403#define $ac_tr_func 1
18404EOF
18405
18406else
18407 echo "$ac_t""no" 1>&6
18408fi
18409done
18410
18411
18412 if test "$ac_cv_func_localtime" = "yes"; then
18413 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18414echo "configure:18415: checking for tm_gmtoff in struct tm" >&5
18415if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18416 echo $ac_n "(cached) $ac_c" 1>&6
18417else
18418
18419 cat > conftest.$ac_ext <<EOF
18420#line 18421 "configure"
18421#include "confdefs.h"
18422
18423 #include <time.h>
18424
18425int main() {
18426
18427 struct tm tm;
18428 tm.tm_gmtoff++;
18429
18430; return 0; }
18431EOF
18432if { (eval echo configure:18433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18433 rm -rf conftest*
18434
18435 wx_cv_struct_tm_has_gmtoff=yes
18436
18437else
18438 echo "configure: failed program was:" >&5
18439 cat conftest.$ac_ext >&5
18440 rm -rf conftest*
18441 wx_cv_struct_tm_has_gmtoff=no
18442
18443fi
18444rm -f conftest*
18445
18446fi
18447
18448echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18449 fi
18450
18451 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18452 cat >> confdefs.h <<\EOF
18453#define WX_GMTOFF_IN_TM 1
18454EOF
18455
18456 fi
18457
18458 for ac_func in gettimeofday ftime
18459do
18460echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18461echo "configure:18462: checking for $ac_func" >&5
18462if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
18464else
18465 cat > conftest.$ac_ext <<EOF
18466#line 18467 "configure"
18467#include "confdefs.h"
18468/* System header to define __stub macros and hopefully few prototypes,
18469 which can conflict with char $ac_func(); below. */
18470#include <assert.h>
18471/* Override any gcc2 internal prototype to avoid an error. */
18472/* We use char because int might match the return type of a gcc2
18473 builtin and then its argument prototype would still apply. */
18474char $ac_func();
18475
18476int main() {
18477
18478/* The GNU C library defines this for functions which it implements
18479 to always fail with ENOSYS. Some functions are actually named
18480 something starting with __ and the normal name is an alias. */
18481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18482choke me
18483#else
18484$ac_func();
18485#endif
18486
18487; return 0; }
18488EOF
18489if { (eval echo configure:18490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18490 rm -rf conftest*
18491 eval "ac_cv_func_$ac_func=yes"
18492else
18493 echo "configure: failed program was:" >&5
18494 cat conftest.$ac_ext >&5
18495 rm -rf conftest*
18496 eval "ac_cv_func_$ac_func=no"
18497fi
18498rm -f conftest*
18499fi
18500
18501if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18502 echo "$ac_t""yes" 1>&6
18503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18504 cat >> confdefs.h <<EOF
18505#define $ac_tr_func 1
18506EOF
18507 break
18508else
18509 echo "$ac_t""no" 1>&6
18510fi
18511done
18512
18513
18514 if test "$ac_cv_func_gettimeofday" = "yes"; then
18515 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18516echo "configure:18517: checking whether gettimeofday takes two arguments" >&5
18517if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18518 echo $ac_n "(cached) $ac_c" 1>&6
18519else
18520
18521
18522 ac_ext=C
18523# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18524ac_cpp='$CXXCPP $CPPFLAGS'
18525ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18526ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18527cross_compiling=$ac_cv_prog_cxx_cross
18528
18529
18530 cat > conftest.$ac_ext <<EOF
18531#line 18532 "configure"
18532#include "confdefs.h"
18533
18534 #include <sys/time.h>
18535 #include <unistd.h>
18536
18537int main() {
18538
18539 struct timeval tv;
18540 gettimeofday(&tv, NULL);
18541
18542; return 0; }
18543EOF
18544if { (eval echo configure:18545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18545 rm -rf conftest*
18546 wx_cv_func_gettimeofday_has_2_args=yes
18547else
18548 echo "configure: failed program was:" >&5
18549 cat conftest.$ac_ext >&5
18550 rm -rf conftest*
18551 cat > conftest.$ac_ext <<EOF
18552#line 18553 "configure"
18553#include "confdefs.h"
18554
18555 #include <sys/time.h>
18556 #include <unistd.h>
18557
18558int main() {
18559
18560 struct timeval tv;
18561 gettimeofday(&tv);
18562
18563; return 0; }
18564EOF
18565if { (eval echo configure:18566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18566 rm -rf conftest*
18567 wx_cv_func_gettimeofday_has_2_args=no
18568else
18569 echo "configure: failed program was:" >&5
18570 cat conftest.$ac_ext >&5
18571 rm -rf conftest*
18572
18573 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18574 wx_cv_func_gettimeofday_has_2_args=unknown
18575
18576
18577fi
18578rm -f conftest*
18579
18580fi
18581rm -f conftest*
18582 ac_ext=c
18583# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18584ac_cpp='$CPP $CPPFLAGS'
18585ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18586ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18587cross_compiling=$ac_cv_prog_cc_cross
18588
18589
18590fi
18591
18592echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18593
18594 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18595 cat >> confdefs.h <<\EOF
18596#define WX_GETTIMEOFDAY_NO_TZ 1
18597EOF
18598
18599 fi
18600 fi
18601
18602 cat >> confdefs.h <<\EOF
18603#define wxUSE_TIMEDATE 1
18604EOF
18605
18606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18607fi
18608
18609
18610if test "$wxUSE_SOCKETS" = "yes"; then
18611 if test "$TOOLKIT" = "X11"; then
18612 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18613 wxUSE_SOCKETS="no"
18614 fi
18615fi
18616
18617if test "$wxUSE_SOCKETS" = "yes"; then
18618 if test "$TOOLKIT" != "MSW"; then
18619 echo $ac_n "checking for socket""... $ac_c" 1>&6
18620echo "configure:18621: checking for socket" >&5
18621if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18622 echo $ac_n "(cached) $ac_c" 1>&6
18623else
18624 cat > conftest.$ac_ext <<EOF
18625#line 18626 "configure"
18626#include "confdefs.h"
18627/* System header to define __stub macros and hopefully few prototypes,
18628 which can conflict with char socket(); below. */
18629#include <assert.h>
18630/* Override any gcc2 internal prototype to avoid an error. */
18631/* We use char because int might match the return type of a gcc2
18632 builtin and then its argument prototype would still apply. */
18633char socket();
18634
18635int main() {
18636
18637/* The GNU C library defines this for functions which it implements
18638 to always fail with ENOSYS. Some functions are actually named
18639 something starting with __ and the normal name is an alias. */
18640#if defined (__stub_socket) || defined (__stub___socket)
18641choke me
18642#else
18643socket();
18644#endif
18645
18646; return 0; }
18647EOF
18648if { (eval echo configure:18649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18649 rm -rf conftest*
18650 eval "ac_cv_func_socket=yes"
18651else
18652 echo "configure: failed program was:" >&5
18653 cat conftest.$ac_ext >&5
18654 rm -rf conftest*
18655 eval "ac_cv_func_socket=no"
18656fi
18657rm -f conftest*
18658fi
18659
18660if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18661 echo "$ac_t""yes" 1>&6
18662 :
18663else
18664 echo "$ac_t""no" 1>&6
18665echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18666echo "configure:18667: checking for socket in -lsocket" >&5
18667ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18668if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18669 echo $ac_n "(cached) $ac_c" 1>&6
18670else
18671 ac_save_LIBS="$LIBS"
18672LIBS="-lsocket $LIBS"
18673cat > conftest.$ac_ext <<EOF
18674#line 18675 "configure"
18675#include "confdefs.h"
18676/* Override any gcc2 internal prototype to avoid an error. */
18677/* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18679char socket();
18680
18681int main() {
18682socket()
18683; return 0; }
18684EOF
18685if { (eval echo configure:18686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18686 rm -rf conftest*
18687 eval "ac_cv_lib_$ac_lib_var=yes"
18688else
18689 echo "configure: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18691 rm -rf conftest*
18692 eval "ac_cv_lib_$ac_lib_var=no"
18693fi
18694rm -f conftest*
18695LIBS="$ac_save_LIBS"
18696
18697fi
18698if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18699 echo "$ac_t""yes" 1>&6
18700 if test "$INET_LINK" != " -lsocket"; then
18701 INET_LINK="$INET_LINK -lsocket"
18702 fi
18703else
18704 echo "$ac_t""no" 1>&6
18705
18706 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18707 wxUSE_SOCKETS=no
18708
18709
18710fi
18711
18712
18713fi
18714
18715 fi
18716fi
18717
18718if test "$wxUSE_SOCKETS" = "yes" ; then
18719 if test "$TOOLKIT" != "MSW"; then
18720 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18721echo "configure:18722: checking what is the type of the third argument of getsockname" >&5
18722if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18723 echo $ac_n "(cached) $ac_c" 1>&6
18724else
18725
18726
18727 ac_ext=C
18728# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18729ac_cpp='$CXXCPP $CPPFLAGS'
18730ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18731ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18732cross_compiling=$ac_cv_prog_cxx_cross
18733
18734
18735 cat > conftest.$ac_ext <<EOF
18736#line 18737 "configure"
18737#include "confdefs.h"
18738
18739 #include <sys/types.h>
18740 #include <sys/socket.h>
18741
18742int main() {
18743
18744 socklen_t len;
18745 getsockname(0, 0, &len);
18746
18747; return 0; }
18748EOF
18749if { (eval echo configure:18750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18750 rm -rf conftest*
18751 wx_cv_type_getsockname3=socklen_t
18752else
18753 echo "configure: failed program was:" >&5
18754 cat conftest.$ac_ext >&5
18755 rm -rf conftest*
18756 cat > conftest.$ac_ext <<EOF
18757#line 18758 "configure"
18758#include "confdefs.h"
18759
18760 #include <sys/types.h>
18761 #include <sys/socket.h>
18762
18763int main() {
18764
18765 size_t len;
18766 getsockname(0, 0, &len);
18767
18768; return 0; }
18769EOF
18770if { (eval echo configure:18771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18771 rm -rf conftest*
18772 wx_cv_type_getsockname3=size_t
18773else
18774 echo "configure: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18776 rm -rf conftest*
18777 cat > conftest.$ac_ext <<EOF
18778#line 18779 "configure"
18779#include "confdefs.h"
18780
18781 #include <sys/types.h>
18782 #include <sys/socket.h>
18783
18784int main() {
18785
18786 int len;
18787 getsockname(0, 0, &len);
18788
18789; return 0; }
18790EOF
18791if { (eval echo configure:18792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18792 rm -rf conftest*
18793 wx_cv_type_getsockname3=int
18794else
18795 echo "configure: failed program was:" >&5
18796 cat conftest.$ac_ext >&5
18797 rm -rf conftest*
18798 wx_cv_type_getsockname3=unknown
18799
18800fi
18801rm -f conftest*
18802
18803fi
18804rm -f conftest*
18805
18806fi
18807rm -f conftest*
18808
18809 ac_ext=c
18810# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18811ac_cpp='$CPP $CPPFLAGS'
18812ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18813ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18814cross_compiling=$ac_cv_prog_cc_cross
18815
18816
18817fi
18818
18819echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18820
18821 if test "$wx_cv_type_getsockname3" = "unknown"; then
18822 wxUSE_SOCKETS=no
18823 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18824 else
18825 cat >> confdefs.h <<EOF
18826#define SOCKLEN_T $wx_cv_type_getsockname3
18827EOF
18828
18829 fi
18830 fi
18831fi
18832
18833if test "$wxUSE_SOCKETS" = "yes" ; then
18834 cat >> confdefs.h <<\EOF
18835#define wxUSE_SOCKETS 1
18836EOF
18837
18838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18839fi
18840
18841
18842if test "$wxUSE_GUI" = "yes"; then
18843
18844 if test "$TOOLKIT" = "MAC"; then
18845 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18846 wxUSE_JOYSTICK=no
18847 fi
18848 if test "$TOOLKIT" = "MOTIF"; then
18849 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18850 wxUSE_JOYSTICK=no
18851 fi
18852 if test "$TOOLKIT" = "X11"; then
18853 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18854 wxUSE_JOYSTICK=no
18855 fi
18856
18857 if test "$TOOLKIT" != "MSW"; then
18858 if test "$wxUSE_JOYSTICK" = "yes"; then
18859 for ac_hdr in linux/joystick.h
18860do
18861ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18862echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18863echo "configure:18864: checking for $ac_hdr" >&5
18864if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18865 echo $ac_n "(cached) $ac_c" 1>&6
18866else
18867 cat > conftest.$ac_ext <<EOF
18868#line 18869 "configure"
18869#include "confdefs.h"
18870#include <$ac_hdr>
18871EOF
18872ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18873{ (eval echo configure:18874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18874ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18875if test -z "$ac_err"; then
18876 rm -rf conftest*
18877 eval "ac_cv_header_$ac_safe=yes"
18878else
18879 echo "$ac_err" >&5
18880 echo "configure: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 rm -rf conftest*
18883 eval "ac_cv_header_$ac_safe=no"
18884fi
18885rm -f conftest*
18886fi
18887if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18888 echo "$ac_t""yes" 1>&6
18889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18890 cat >> confdefs.h <<EOF
18891#define $ac_tr_hdr 1
18892EOF
18893
18894else
18895 echo "$ac_t""no" 1>&6
18896fi
18897done
18898
18899 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18900 wxUSE_JOYSTICK=no
18901 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18902 fi
18903 fi
18904 fi
18905
18906 if test "$wxUSE_JOYSTICK" = "yes"; then
18907 cat >> confdefs.h <<\EOF
18908#define wxUSE_JOYSTICK 1
18909EOF
18910
18911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18912 fi
18913fi
18914
18915
18916if test "$TOOLKIT" != "MSW"; then
18917
18918 HAVE_DL_FUNCS=0
18919 HAVE_SHL_FUNCS=0
18920 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18921 if test "$USE_DARWIN" = 1; then
18922 HAVE_DL_FUNCS=1
18923 else
18924 for ac_func in dlopen
18925do
18926echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18927echo "configure:18928: checking for $ac_func" >&5
18928if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18929 echo $ac_n "(cached) $ac_c" 1>&6
18930else
18931 cat > conftest.$ac_ext <<EOF
18932#line 18933 "configure"
18933#include "confdefs.h"
18934/* System header to define __stub macros and hopefully few prototypes,
18935 which can conflict with char $ac_func(); below. */
18936#include <assert.h>
18937/* Override any gcc2 internal prototype to avoid an error. */
18938/* We use char because int might match the return type of a gcc2
18939 builtin and then its argument prototype would still apply. */
18940char $ac_func();
18941
18942int main() {
18943
18944/* The GNU C library defines this for functions which it implements
18945 to always fail with ENOSYS. Some functions are actually named
18946 something starting with __ and the normal name is an alias. */
18947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18948choke me
18949#else
18950$ac_func();
18951#endif
18952
18953; return 0; }
18954EOF
18955if { (eval echo configure:18956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18956 rm -rf conftest*
18957 eval "ac_cv_func_$ac_func=yes"
18958else
18959 echo "configure: failed program was:" >&5
18960 cat conftest.$ac_ext >&5
18961 rm -rf conftest*
18962 eval "ac_cv_func_$ac_func=no"
18963fi
18964rm -f conftest*
18965fi
18966
18967if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18968 echo "$ac_t""yes" 1>&6
18969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18970 cat >> confdefs.h <<EOF
18971#define $ac_tr_func 1
18972EOF
18973
18974 cat >> confdefs.h <<\EOF
18975#define HAVE_DLOPEN 1
18976EOF
18977
18978 HAVE_DL_FUNCS=1
18979
18980else
18981 echo "$ac_t""no" 1>&6
18982echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18983echo "configure:18984: checking for dlopen in -ldl" >&5
18984ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18985if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18986 echo $ac_n "(cached) $ac_c" 1>&6
18987else
18988 ac_save_LIBS="$LIBS"
18989LIBS="-ldl $LIBS"
18990cat > conftest.$ac_ext <<EOF
18991#line 18992 "configure"
18992#include "confdefs.h"
18993/* Override any gcc2 internal prototype to avoid an error. */
18994/* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18996char dlopen();
18997
18998int main() {
18999dlopen()
19000; return 0; }
19001EOF
19002if { (eval echo configure:19003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19003 rm -rf conftest*
19004 eval "ac_cv_lib_$ac_lib_var=yes"
19005else
19006 echo "configure: failed program was:" >&5
19007 cat conftest.$ac_ext >&5
19008 rm -rf conftest*
19009 eval "ac_cv_lib_$ac_lib_var=no"
19010fi
19011rm -f conftest*
19012LIBS="$ac_save_LIBS"
19013
19014fi
19015if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19016 echo "$ac_t""yes" 1>&6
19017
19018 cat >> confdefs.h <<\EOF
19019#define HAVE_DLOPEN 1
19020EOF
19021
19022 HAVE_DL_FUNCS=1
19023 DL_LINK=" -ldl$DL_LINK"
19024
19025else
19026 echo "$ac_t""no" 1>&6
19027
19028 for ac_func in shl_load
19029do
19030echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19031echo "configure:19032: checking for $ac_func" >&5
19032if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19033 echo $ac_n "(cached) $ac_c" 1>&6
19034else
19035 cat > conftest.$ac_ext <<EOF
19036#line 19037 "configure"
19037#include "confdefs.h"
19038/* System header to define __stub macros and hopefully few prototypes,
19039 which can conflict with char $ac_func(); below. */
19040#include <assert.h>
19041/* Override any gcc2 internal prototype to avoid an error. */
19042/* We use char because int might match the return type of a gcc2
19043 builtin and then its argument prototype would still apply. */
19044char $ac_func();
19045
19046int main() {
19047
19048/* The GNU C library defines this for functions which it implements
19049 to always fail with ENOSYS. Some functions are actually named
19050 something starting with __ and the normal name is an alias. */
19051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19052choke me
19053#else
19054$ac_func();
19055#endif
19056
19057; return 0; }
19058EOF
19059if { (eval echo configure:19060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19060 rm -rf conftest*
19061 eval "ac_cv_func_$ac_func=yes"
19062else
19063 echo "configure: failed program was:" >&5
19064 cat conftest.$ac_ext >&5
19065 rm -rf conftest*
19066 eval "ac_cv_func_$ac_func=no"
19067fi
19068rm -f conftest*
19069fi
19070
19071if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19072 echo "$ac_t""yes" 1>&6
19073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19074 cat >> confdefs.h <<EOF
19075#define $ac_tr_func 1
19076EOF
19077
19078 cat >> confdefs.h <<\EOF
19079#define HAVE_SHL_LOAD 1
19080EOF
19081
19082 HAVE_SHL_FUNCS=1
19083
19084else
19085 echo "$ac_t""no" 1>&6
19086echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19087echo "configure:19088: checking for dld in -lshl_load" >&5
19088ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19090 echo $ac_n "(cached) $ac_c" 1>&6
19091else
19092 ac_save_LIBS="$LIBS"
19093LIBS="-lshl_load $LIBS"
19094cat > conftest.$ac_ext <<EOF
19095#line 19096 "configure"
19096#include "confdefs.h"
19097/* Override any gcc2 internal prototype to avoid an error. */
19098/* We use char because int might match the return type of a gcc2
19099 builtin and then its argument prototype would still apply. */
19100char dld();
19101
19102int main() {
19103dld()
19104; return 0; }
19105EOF
19106if { (eval echo configure:19107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19107 rm -rf conftest*
19108 eval "ac_cv_lib_$ac_lib_var=yes"
19109else
19110 echo "configure: failed program was:" >&5
19111 cat conftest.$ac_ext >&5
19112 rm -rf conftest*
19113 eval "ac_cv_lib_$ac_lib_var=no"
19114fi
19115rm -f conftest*
19116LIBS="$ac_save_LIBS"
19117
19118fi
19119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19120 echo "$ac_t""yes" 1>&6
19121
19122 HAVE_SHL_FUNCS=1
19123 DL_LINK=" -ldld$DL_LINK"
19124
19125else
19126 echo "$ac_t""no" 1>&6
19127fi
19128
19129
19130fi
19131done
19132
19133
19134fi
19135
19136
19137fi
19138done
19139
19140
19141 if test "$HAVE_DL_FUNCS" = 1; then
19142 for ac_func in dlerror
19143do
19144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19145echo "configure:19146: checking for $ac_func" >&5
19146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19147 echo $ac_n "(cached) $ac_c" 1>&6
19148else
19149 cat > conftest.$ac_ext <<EOF
19150#line 19151 "configure"
19151#include "confdefs.h"
19152/* System header to define __stub macros and hopefully few prototypes,
19153 which can conflict with char $ac_func(); below. */
19154#include <assert.h>
19155/* Override any gcc2 internal prototype to avoid an error. */
19156/* We use char because int might match the return type of a gcc2
19157 builtin and then its argument prototype would still apply. */
19158char $ac_func();
19159
19160int main() {
19161
19162/* The GNU C library defines this for functions which it implements
19163 to always fail with ENOSYS. Some functions are actually named
19164 something starting with __ and the normal name is an alias. */
19165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19166choke me
19167#else
19168$ac_func();
19169#endif
19170
19171; return 0; }
19172EOF
19173if { (eval echo configure:19174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19174 rm -rf conftest*
19175 eval "ac_cv_func_$ac_func=yes"
19176else
19177 echo "configure: failed program was:" >&5
19178 cat conftest.$ac_ext >&5
19179 rm -rf conftest*
19180 eval "ac_cv_func_$ac_func=no"
19181fi
19182rm -f conftest*
19183fi
19184
19185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19186 echo "$ac_t""yes" 1>&6
19187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19188 cat >> confdefs.h <<EOF
19189#define $ac_tr_func 1
19190EOF
19191 cat >> confdefs.h <<\EOF
19192#define HAVE_DLERROR 1
19193EOF
19194
19195else
19196 echo "$ac_t""no" 1>&6
19197echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19198echo "configure:19199: checking for dlerror in -ldl" >&5
19199ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19200if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19202else
19203 ac_save_LIBS="$LIBS"
19204LIBS="-ldl $LIBS"
19205cat > conftest.$ac_ext <<EOF
19206#line 19207 "configure"
19207#include "confdefs.h"
19208/* Override any gcc2 internal prototype to avoid an error. */
19209/* We use char because int might match the return type of a gcc2
19210 builtin and then its argument prototype would still apply. */
19211char dlerror();
19212
19213int main() {
19214dlerror()
19215; return 0; }
19216EOF
19217if { (eval echo configure:19218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19218 rm -rf conftest*
19219 eval "ac_cv_lib_$ac_lib_var=yes"
19220else
19221 echo "configure: failed program was:" >&5
19222 cat conftest.$ac_ext >&5
19223 rm -rf conftest*
19224 eval "ac_cv_lib_$ac_lib_var=no"
19225fi
19226rm -f conftest*
19227LIBS="$ac_save_LIBS"
19228
19229fi
19230if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19231 echo "$ac_t""yes" 1>&6
19232 cat >> confdefs.h <<\EOF
19233#define HAVE_DLERROR 1
19234EOF
19235
19236else
19237 echo "$ac_t""no" 1>&6
19238fi
19239
19240fi
19241done
19242
19243 fi
19244 fi
19245
19246 if test "$HAVE_DL_FUNCS" = 0; then
19247 if test "$HAVE_SHL_FUNCS" = 0; then
19248 if test "$USE_UNIX" = 1; then
19249 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19250 wxUSE_DYNAMIC_LOADER=no
19251 wxUSE_DYNLIB_CLASS=no
19252 else
19253 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19254 fi
19255 fi
19256 fi
19257 fi
19258fi
19259
19260if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19261 cat >> confdefs.h <<\EOF
19262#define wxUSE_DYNAMIC_LOADER 1
19263EOF
19264
19265elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19266 cat >> confdefs.h <<\EOF
19267#define wxUSE_DYNLIB_CLASS 1
19268EOF
19269
19270fi
19271
19272
19273if test "$wxUSE_FONTMAP" = "yes" ; then
19274 cat >> confdefs.h <<\EOF
19275#define wxUSE_FONTMAP 1
19276EOF
19277
19278fi
19279
19280if test "$wxUSE_UNICODE" = "yes" ; then
19281 cat >> confdefs.h <<\EOF
19282#define wxUSE_UNICODE 1
19283EOF
19284
19285
19286 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19287 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19288echo "configure:19289: checking for main in -lunicows" >&5
19289ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19291 echo $ac_n "(cached) $ac_c" 1>&6
19292else
19293 ac_save_LIBS="$LIBS"
19294LIBS="-lunicows $LIBS"
19295cat > conftest.$ac_ext <<EOF
19296#line 19297 "configure"
19297#include "confdefs.h"
19298
19299int main() {
19300main()
19301; return 0; }
19302EOF
19303if { (eval echo configure:19304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19304 rm -rf conftest*
19305 eval "ac_cv_lib_$ac_lib_var=yes"
19306else
19307 echo "configure: failed program was:" >&5
19308 cat conftest.$ac_ext >&5
19309 rm -rf conftest*
19310 eval "ac_cv_lib_$ac_lib_var=no"
19311fi
19312rm -f conftest*
19313LIBS="$ac_save_LIBS"
19314
19315fi
19316if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19317 echo "$ac_t""yes" 1>&6
19318
19319 cat >> confdefs.h <<\EOF
19320#define wxUSE_UNICODE_MSLU 1
19321EOF
19322
19323
19324else
19325 echo "$ac_t""no" 1>&6
19326
19327 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19328 Applications will only run on Windows NT/2000/XP!" 1>&2
19329 wxUSE_UNICODE_MSLU=no
19330
19331fi
19332
19333 fi
19334fi
19335
19336if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19337 cat >> confdefs.h <<\EOF
19338#define wxUSE_EXPERIMENTAL_PRINTF 1
19339EOF
19340
19341fi
19342
19343
19344
19345IODBC_C_SRC=""
19346if test "$wxUSE_ODBC" = "yes" ; then
19347 cat >> confdefs.h <<\EOF
19348#define wxUSE_ODBC 1
19349EOF
19350
19351 WXODBCFLAG="-D_IODBC_"
19352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19353fi
19354
19355
19356if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19357 cat >> confdefs.h <<\EOF
19358#define wxUSE_POSTSCRIPT 1
19359EOF
19360
19361fi
19362
19363cat >> confdefs.h <<\EOF
19364#define wxUSE_AFM_FOR_POSTSCRIPT 1
19365EOF
19366
19367
19368cat >> confdefs.h <<\EOF
19369#define wxUSE_NORMALIZED_PS_FONTS 1
19370EOF
19371
19372
19373
19374if test "$wxUSE_CONSTRAINTS" = "yes"; then
19375 cat >> confdefs.h <<\EOF
19376#define wxUSE_CONSTRAINTS 1
19377EOF
19378
19379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19380fi
19381
19382if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19383 if test "$wxUSE_UNIVERSAL" = "yes"; then
19384 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19385 wxUSE_MDI_ARCHITECTURE=no
19386 fi
19387
19388 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19389 cat >> confdefs.h <<\EOF
19390#define wxUSE_MDI_ARCHITECTURE 1
19391EOF
19392
19393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19394 fi
19395fi
19396
19397if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19398 cat >> confdefs.h <<\EOF
19399#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19400EOF
19401
19402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19403 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19405 fi
19406fi
19407
19408if test "$wxUSE_HELP" = "yes"; then
19409 cat >> confdefs.h <<\EOF
19410#define wxUSE_HELP 1
19411EOF
19412
19413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19414
19415 if test "$wxUSE_MSW" = 1; then
19416 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19417 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19418echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19419echo "configure:19420: checking for htmlhelp.h" >&5
19420if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19421 echo $ac_n "(cached) $ac_c" 1>&6
19422else
19423 cat > conftest.$ac_ext <<EOF
19424#line 19425 "configure"
19425#include "confdefs.h"
19426#include <htmlhelp.h>
19427EOF
19428ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19429{ (eval echo configure:19430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19430ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19431if test -z "$ac_err"; then
19432 rm -rf conftest*
19433 eval "ac_cv_header_$ac_safe=yes"
19434else
19435 echo "$ac_err" >&5
19436 echo "configure: failed program was:" >&5
19437 cat conftest.$ac_ext >&5
19438 rm -rf conftest*
19439 eval "ac_cv_header_$ac_safe=no"
19440fi
19441rm -f conftest*
19442fi
19443if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19444 echo "$ac_t""yes" 1>&6
19445
19446 cat >> confdefs.h <<\EOF
19447#define wxUSE_MS_HTML_HELP 1
19448EOF
19449
19450
19451else
19452 echo "$ac_t""no" 1>&6
19453
19454 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19455 wxUSE_MS_HTML_HELP=no
19456
19457fi
19458
19459 fi
19460 fi
19461
19462 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19463 if test "$wxUSE_HTML" = "yes"; then
19464 cat >> confdefs.h <<\EOF
19465#define wxUSE_WXHTML_HELP 1
19466EOF
19467
19468 else
19469 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19470 wxUSE_WXHTML_HELP=no
19471 fi
19472 fi
19473fi
19474
19475if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19476 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19477 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19478 else
19479 cat >> confdefs.h <<\EOF
19480#define wxUSE_PRINTING_ARCHITECTURE 1
19481EOF
19482
19483 fi
19484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19485fi
19486
19487if test "$wxUSE_PROLOGIO" = "yes" ; then
19488 cat >> confdefs.h <<\EOF
19489#define wxUSE_PROLOGIO 1
19490EOF
19491
19492fi
19493
19494if test "$wxUSE_RESOURCES" = "yes" ; then
19495 if test "$wxUSE_NANOX" = "yes"; then
19496 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19497 else
19498 cat >> confdefs.h <<\EOF
19499#define wxUSE_RESOURCES 1
19500EOF
19501
19502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19503 fi
19504fi
19505
19506if test "$wxUSE_X_RESOURCES" = "yes"; then
19507 cat >> confdefs.h <<\EOF
19508#define wxUSE_X_RESOURCES 1
19509EOF
19510
19511fi
19512
19513
19514if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19515 -o "$wxUSE_CLIPBOARD" = "yes" \
19516 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19517 for ac_hdr in ole2.h
19518do
19519ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19520echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19521echo "configure:19522: checking for $ac_hdr" >&5
19522if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19523 echo $ac_n "(cached) $ac_c" 1>&6
19524else
19525 cat > conftest.$ac_ext <<EOF
19526#line 19527 "configure"
19527#include "confdefs.h"
19528#include <$ac_hdr>
19529EOF
19530ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19531{ (eval echo configure:19532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19532ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19533if test -z "$ac_err"; then
19534 rm -rf conftest*
19535 eval "ac_cv_header_$ac_safe=yes"
19536else
19537 echo "$ac_err" >&5
19538 echo "configure: failed program was:" >&5
19539 cat conftest.$ac_ext >&5
19540 rm -rf conftest*
19541 eval "ac_cv_header_$ac_safe=no"
19542fi
19543rm -f conftest*
19544fi
19545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19546 echo "$ac_t""yes" 1>&6
19547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19548 cat >> confdefs.h <<EOF
19549#define $ac_tr_hdr 1
19550EOF
19551
19552else
19553 echo "$ac_t""no" 1>&6
19554fi
19555done
19556
19557
19558 if test "$ac_cv_header_ole2_h" = "yes" ; then
19559 if test "$GCC" = yes ; then
19560 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19561 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19562 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19563 cat >> confdefs.h <<\EOF
19564#define wxUSE_OLE 1
19565EOF
19566
19567
19568 fi
19569
19570 cat >> confdefs.h <<\EOF
19571#define wxUSE_DATAOBJ 1
19572EOF
19573
19574 else
19575 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19576
19577 wxUSE_CLIPBOARD=no
19578 wxUSE_DRAG_AND_DROP=no
19579 wxUSE_DATAOBJ=no
19580 fi
19581
19582 if test "$wxUSE_METAFILE" = "yes"; then
19583 cat >> confdefs.h <<\EOF
19584#define wxUSE_METAFILE 1
19585EOF
19586
19587
19588 cat >> confdefs.h <<\EOF
19589#define wxUSE_ENH_METAFILE 1
19590EOF
19591
19592 fi
19593fi
19594
19595if test "$wxUSE_IPC" = "yes"; then
19596 if test "$wxUSE_SOCKETS" != "yes"; then
19597 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19598 fi
19599
19600 cat >> confdefs.h <<\EOF
19601#define wxUSE_IPC 1
19602EOF
19603
19604fi
19605
19606if test "$wxUSE_CLIPBOARD" = "yes"; then
19607 if test "$wxUSE_X11" = 1; then
19608 echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2
19609 wxUSE_CLIPBOARD=no
19610 fi
19611
19612 if test "$wxUSE_CLIPBOARD" = "yes"; then
19613 cat >> confdefs.h <<\EOF
19614#define wxUSE_CLIPBOARD 1
19615EOF
19616
19617
19618 cat >> confdefs.h <<\EOF
19619#define wxUSE_DATAOBJ 1
19620EOF
19621
19622 fi
19623fi
19624
19625if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19626 if test "$wxUSE_GTK" = 1; then
19627 if test "$WXGTK12" != 1; then
19628 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19629 wxUSE_DRAG_AND_DROP=no
19630 fi
19631 fi
19632
19633 if test "$wxUSE_MOTIF" = 1; then
19634 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19635 wxUSE_DRAG_AND_DROP=no
19636 fi
19637
19638 if test "$wxUSE_X11" = 1; then
19639 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19640 wxUSE_DRAG_AND_DROP=no
19641 fi
19642
19643 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19644 cat >> confdefs.h <<\EOF
19645#define wxUSE_DRAG_AND_DROP 1
19646EOF
19647
19648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19649 fi
19650
19651fi
19652
19653if test "$wxUSE_SPLINES" = "yes" ; then
19654 cat >> confdefs.h <<\EOF
19655#define wxUSE_SPLINES 1
19656EOF
19657
19658fi
19659
19660
19661USES_CONTROLS=0
19662if test "$wxUSE_CONTROLS" = "yes"; then
19663 USES_CONTROLS=1
19664fi
19665
19666if test "$wxUSE_ACCEL" = "yes"; then
19667 cat >> confdefs.h <<\EOF
19668#define wxUSE_ACCEL 1
19669EOF
19670
19671 USES_CONTROLS=1
19672fi
19673
19674if test "$wxUSE_BUTTON" = "yes"; then
19675 cat >> confdefs.h <<\EOF
19676#define wxUSE_BUTTON 1
19677EOF
19678
19679 USES_CONTROLS=1
19680fi
19681
19682if test "$wxUSE_BMPBUTTON" = "yes"; then
19683 cat >> confdefs.h <<\EOF
19684#define wxUSE_BMPBUTTON 1
19685EOF
19686
19687 USES_CONTROLS=1
19688fi
19689
19690if test "$wxUSE_CALCTRL" = "yes"; then
19691 cat >> confdefs.h <<\EOF
19692#define wxUSE_CALENDARCTRL 1
19693EOF
19694
19695 USES_CONTROLS=1
19696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19697fi
19698
19699if test "$wxUSE_CARET" = "yes"; then
19700 cat >> confdefs.h <<\EOF
19701#define wxUSE_CARET 1
19702EOF
19703
19704 USES_CONTROLS=1
19705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19706fi
19707
19708if test "$wxUSE_COMBOBOX" = "yes"; then
19709 cat >> confdefs.h <<\EOF
19710#define wxUSE_COMBOBOX 1
19711EOF
19712
19713 USES_CONTROLS=1
19714fi
19715
19716if test "$wxUSE_CHOICE" = "yes"; then
19717 cat >> confdefs.h <<\EOF
19718#define wxUSE_CHOICE 1
19719EOF
19720
19721 USES_CONTROLS=1
19722fi
19723
19724if test "$wxUSE_CHECKBOX" = "yes"; then
19725 cat >> confdefs.h <<\EOF
19726#define wxUSE_CHECKBOX 1
19727EOF
19728
19729 USES_CONTROLS=1
19730fi
19731
19732if test "$wxUSE_CHECKLST" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734#define wxUSE_CHECKLISTBOX 1
19735EOF
19736
19737 USES_CONTROLS=1
19738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19739fi
19740
19741if test "$wxUSE_GAUGE" = "yes"; then
19742 cat >> confdefs.h <<\EOF
19743#define wxUSE_GAUGE 1
19744EOF
19745
19746 USES_CONTROLS=1
19747fi
19748
19749if test "$wxUSE_NEW_GRID" = "yes"; then
19750 wxUSE_GRID="yes"
19751 cat >> confdefs.h <<\EOF
19752#define wxUSE_NEW_GRID 1
19753EOF
19754
19755 USES_CONTROLS=1
19756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19757fi
19758
19759if test "$wxUSE_GRID" = "yes"; then
19760 cat >> confdefs.h <<\EOF
19761#define wxUSE_GRID 1
19762EOF
19763
19764 USES_CONTROLS=1
19765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19766fi
19767
19768if test "$wxUSE_IMAGLIST" = "yes"; then
19769 cat >> confdefs.h <<\EOF
19770#define wxUSE_IMAGLIST 1
19771EOF
19772
19773fi
19774
19775if test "$wxUSE_LISTBOX" = "yes"; then
19776 cat >> confdefs.h <<\EOF
19777#define wxUSE_LISTBOX 1
19778EOF
19779
19780 USES_CONTROLS=1
19781fi
19782
19783if test "$wxUSE_LISTCTRL" = "yes"; then
19784 if test "$wxUSE_IMAGLIST" = "yes"; then
19785 cat >> confdefs.h <<\EOF
19786#define wxUSE_LISTCTRL 1
19787EOF
19788
19789 USES_CONTROLS=1
19790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19791 else
19792 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19793 fi
19794fi
19795
19796if test "$wxUSE_NOTEBOOK" = "yes"; then
19797 cat >> confdefs.h <<\EOF
19798#define wxUSE_NOTEBOOK 1
19799EOF
19800
19801 USES_CONTROLS=1
19802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19803fi
19804
19805if test "$wxUSE_PROPSHEET" = "yes"; then
19806 cat >> confdefs.h <<\EOF
19807#define wxUSE_PROPSHEET 1
19808EOF
19809
19810 USES_CONTROLS=1
19811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19812fi
19813
19814if test "$wxUSE_RADIOBOX" = "yes"; then
19815 cat >> confdefs.h <<\EOF
19816#define wxUSE_RADIOBOX 1
19817EOF
19818
19819 USES_CONTROLS=1
19820fi
19821
19822if test "$wxUSE_RADIOBTN" = "yes"; then
19823 cat >> confdefs.h <<\EOF
19824#define wxUSE_RADIOBTN 1
19825EOF
19826
19827 USES_CONTROLS=1
19828fi
19829
19830if test "$wxUSE_SASH" = "yes"; then
19831 cat >> confdefs.h <<\EOF
19832#define wxUSE_SASH 1
19833EOF
19834
19835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19836fi
19837
19838if test "$wxUSE_SCROLLBAR" = "yes"; then
19839 cat >> confdefs.h <<\EOF
19840#define wxUSE_SCROLLBAR 1
19841EOF
19842
19843 USES_CONTROLS=1
19844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19845fi
19846
19847if test "$wxUSE_SLIDER" = "yes"; then
19848 cat >> confdefs.h <<\EOF
19849#define wxUSE_SLIDER 1
19850EOF
19851
19852 USES_CONTROLS=1
19853fi
19854
19855if test "$wxUSE_SPINBTN" = "yes"; then
19856 cat >> confdefs.h <<\EOF
19857#define wxUSE_SPINBTN 1
19858EOF
19859
19860 USES_CONTROLS=1
19861fi
19862
19863if test "$wxUSE_SPINCTRL" = "yes"; then
19864 cat >> confdefs.h <<\EOF
19865#define wxUSE_SPINCTRL 1
19866EOF
19867
19868 USES_CONTROLS=1
19869fi
19870
19871if test "$wxUSE_SPLITTER" = "yes"; then
19872 cat >> confdefs.h <<\EOF
19873#define wxUSE_SPLITTER 1
19874EOF
19875
19876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19877fi
19878
19879if test "$wxUSE_STATBMP" = "yes"; then
19880 cat >> confdefs.h <<\EOF
19881#define wxUSE_STATBMP 1
19882EOF
19883
19884 USES_CONTROLS=1
19885fi
19886
19887if test "$wxUSE_STATBOX" = "yes"; then
19888 cat >> confdefs.h <<\EOF
19889#define wxUSE_STATBOX 1
19890EOF
19891
19892 USES_CONTROLS=1
19893fi
19894
19895if test "$wxUSE_STATTEXT" = "yes"; then
19896 cat >> confdefs.h <<\EOF
19897#define wxUSE_STATTEXT 1
19898EOF
19899
19900 USES_CONTROLS=1
19901fi
19902
19903if test "$wxUSE_STATLINE" = "yes"; then
19904 if test "$wxUSE_WINE" = 1 ; then
19905 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19906 else
19907 cat >> confdefs.h <<\EOF
19908#define wxUSE_STATLINE 1
19909EOF
19910
19911 USES_CONTROLS=1
19912 fi
19913fi
19914
19915if test "$wxUSE_STATUSBAR" = "yes"; then
19916 cat >> confdefs.h <<\EOF
19917#define wxUSE_STATUSBAR 1
19918EOF
19919
19920 USES_CONTROLS=1
19921
19922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19923fi
19924
19925if test "$wxUSE_TABDIALOG" = "yes"; then
19926 cat >> confdefs.h <<\EOF
19927#define wxUSE_TAB_DIALOG 1
19928EOF
19929
19930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19931fi
19932
19933if test "$wxUSE_TEXTCTRL" = "yes"; then
19934 cat >> confdefs.h <<\EOF
19935#define wxUSE_TEXTCTRL 1
19936EOF
19937
19938 USES_CONTROLS=1
19939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19940fi
19941
19942if test "$wxUSE_TOGGLEBTN" = "yes"; then
19943 if test "$wxUSE_MAC" = 1; then
19944 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19945 wxUSE_TOGGLEBTN=no
19946 fi
19947 if test "$wxUSE_UNIVERSAL" = "yes"; then
19948 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
19949 wxUSE_TOGGLEBTN=no
19950 fi
19951
19952 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19953 cat >> confdefs.h <<\EOF
19954#define wxUSE_TOGGLEBTN 1
19955EOF
19956
19957 USES_CONTROLS=1
19958 fi
19959fi
19960
19961if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19962 cat >> confdefs.h <<\EOF
19963#define wxUSE_TOOLBAR_SIMPLE 1
19964EOF
19965
19966 wxUSE_TOOLBAR="yes"
19967 USES_CONTROLS=1
19968fi
19969
19970if test "$wxUSE_TOOLBAR" = "yes"; then
19971 cat >> confdefs.h <<\EOF
19972#define wxUSE_TOOLBAR 1
19973EOF
19974
19975 USES_CONTROLS=1
19976
19977 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19978 wxUSE_TOOLBAR_NATIVE="yes"
19979 fi
19980
19981 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19982 cat >> confdefs.h <<\EOF
19983#define wxUSE_TOOLBAR_NATIVE 1
19984EOF
19985
19986 USES_CONTROLS=1
19987 fi
19988
19989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19990fi
19991
19992if test "$wxUSE_TOOLTIPS" = "yes"; then
19993 if test "$wxUSE_MOTIF" = 1; then
19994 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19995 else
19996 if test "$wxUSE_WINE" = 1; then
19997 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19998 else
19999 if test "$wxUSE_UNIVERSAL" = "yes"; then
20000 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20001 else
20002 cat >> confdefs.h <<\EOF
20003#define wxUSE_TOOLTIPS 1
20004EOF
20005
20006 fi
20007 fi
20008 fi
20009fi
20010
20011if test "$wxUSE_TREECTRL" = "yes"; then
20012 if test "$wxUSE_IMAGLIST" = "yes"; then
20013 cat >> confdefs.h <<\EOF
20014#define wxUSE_TREECTRL 1
20015EOF
20016
20017 USES_CONTROLS=1
20018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20019 else
20020 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20021 fi
20022fi
20023
20024if test "$wxUSE_POPUPWIN" = "yes"; then
20025 if test "$wxUSE_MAC" = 1; then
20026 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20027 else
20028 if test "$wxUSE_MOTIF" = 1; then
20029 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20030 else
20031 if test "$wxUSE_PM" = 1; then
20032 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20033 else
20034 cat >> confdefs.h <<\EOF
20035#define wxUSE_POPUPWIN 1
20036EOF
20037
20038
20039 USES_CONTROLS=1
20040 fi
20041 fi
20042 fi
20043fi
20044
20045if test "$wxUSE_TIPWINDOW" = "yes"; then
20046 if test "$wxUSE_PM" = 1; then
20047 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20048 else
20049 cat >> confdefs.h <<\EOF
20050#define wxUSE_TIPWINDOW 1
20051EOF
20052
20053 fi
20054fi
20055
20056if test "$USES_CONTROLS" = 1; then
20057 cat >> confdefs.h <<\EOF
20058#define wxUSE_CONTROLS 1
20059EOF
20060
20061fi
20062
20063
20064if test "$wxUSE_TREELAYOUT" = "yes"; then
20065 cat >> confdefs.h <<\EOF
20066#define wxUSE_TREELAYOUT 1
20067EOF
20068
20069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20070fi
20071
20072if test "$wxUSE_DRAGIMAGE" = "yes"; then
20073 cat >> confdefs.h <<\EOF
20074#define wxUSE_DRAGIMAGE 1
20075EOF
20076
20077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20078fi
20079
20080if test "$wxUSE_MENUS" = "yes"; then
20081 cat >> confdefs.h <<\EOF
20082#define wxUSE_MENUS 1
20083EOF
20084
20085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20086fi
20087
20088if test "$wxUSE_METAFILE" = "yes"; then
20089 cat >> confdefs.h <<\EOF
20090#define wxUSE_METAFILE 1
20091EOF
20092
20093fi
20094
20095if test "$wxUSE_MIMETYPE" = "yes"; then
20096 cat >> confdefs.h <<\EOF
20097#define wxUSE_MIMETYPE 1
20098EOF
20099
20100fi
20101
20102if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20103 cat >> confdefs.h <<\EOF
20104#define wxUSE_SYSTEM_OPTIONS 1
20105EOF
20106
20107fi
20108
20109if test "$wxUSE_PROTOCOL" = "yes"; then
20110 if test "$wxUSE_SOCKETS" != "yes"; then
20111 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20112 wxUSE_PROTOCOL=no
20113 fi
20114
20115 if test "$wxUSE_PROTOCOL" = "yes"; then
20116 cat >> confdefs.h <<\EOF
20117#define wxUSE_PROTOCOL 1
20118EOF
20119
20120
20121 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20122 cat >> confdefs.h <<\EOF
20123#define wxUSE_PROTOCOL_HTTP 1
20124EOF
20125
20126 fi
20127 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20128 cat >> confdefs.h <<\EOF
20129#define wxUSE_PROTOCOL_FTP 1
20130EOF
20131
20132 fi
20133 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20134 cat >> confdefs.h <<\EOF
20135#define wxUSE_PROTOCOL_FILE 1
20136EOF
20137
20138 fi
20139 fi
20140fi
20141
20142if test "$wxUSE_URL" = "yes"; then
20143 if test "$wxUSE_PROTOCOL" != "yes"; then
20144 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20145 wxUSE_URL=no
20146 fi
20147 if test "$wxUSE_URL" = "yes"; then
20148 cat >> confdefs.h <<\EOF
20149#define wxUSE_URL 1
20150EOF
20151
20152 fi
20153fi
20154
20155if test "$wxUSE_MINIFRAME" = "yes"; then
20156 cat >> confdefs.h <<\EOF
20157#define wxUSE_MINIFRAME 1
20158EOF
20159
20160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20161fi
20162
20163if test "$wxUSE_HTML" = "yes"; then
20164 cat >> confdefs.h <<\EOF
20165#define wxUSE_HTML 1
20166EOF
20167
20168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20169fi
20170
20171if test "$wxUSE_VALIDATORS" = "yes"; then
20172 cat >> confdefs.h <<\EOF
20173#define wxUSE_VALIDATORS 1
20174EOF
20175
20176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20177fi
20178
20179if test "$wxUSE_PALETTE" = "yes" ; then
20180 cat >> confdefs.h <<\EOF
20181#define wxUSE_PALETTE 1
20182EOF
20183
20184fi
20185
20186if test "$wxUSE_IMAGE" = "yes" ; then
20187 cat >> confdefs.h <<\EOF
20188#define wxUSE_IMAGE 1
20189EOF
20190
20191fi
20192
20193if test "$wxUSE_GIF" = "yes" ; then
20194 cat >> confdefs.h <<\EOF
20195#define wxUSE_GIF 1
20196EOF
20197
20198fi
20199
20200if test "$wxUSE_PCX" = "yes" ; then
20201 cat >> confdefs.h <<\EOF
20202#define wxUSE_PCX 1
20203EOF
20204
20205fi
20206
20207if test "$wxUSE_IFF" = "yes" ; then
20208 cat >> confdefs.h <<\EOF
20209#define wxUSE_IFF 1
20210EOF
20211
20212fi
20213
20214if test "$wxUSE_PNM" = "yes" ; then
20215 cat >> confdefs.h <<\EOF
20216#define wxUSE_PNM 1
20217EOF
20218
20219fi
20220
20221if test "$wxUSE_XPM" = "yes" ; then
20222 cat >> confdefs.h <<\EOF
20223#define wxUSE_XPM 1
20224EOF
20225
20226fi
20227
20228if test "$wxUSE_ICO_CUR" = "yes" ; then
20229 cat >> confdefs.h <<\EOF
20230#define wxUSE_ICO_CUR 1
20231EOF
20232
20233fi
20234
20235if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20236 LIBS=" -lunicows $LIBS"
20237fi
20238
20239
20240if test "$wxUSE_CHOICEDLG" = "yes"; then
20241 cat >> confdefs.h <<\EOF
20242#define wxUSE_CHOICEDLG 1
20243EOF
20244
20245fi
20246
20247if test "$wxUSE_COLOURDLG" = "yes"; then
20248 cat >> confdefs.h <<\EOF
20249#define wxUSE_COLOURDLG 1
20250EOF
20251
20252fi
20253
20254if test "$wxUSE_FILEDLG" = "yes"; then
20255 cat >> confdefs.h <<\EOF
20256#define wxUSE_FILEDLG 1
20257EOF
20258
20259fi
20260
20261if test "$wxUSE_FINDREPLDLG" = "yes"; then
20262 cat >> confdefs.h <<\EOF
20263#define wxUSE_FINDREPLDLG 1
20264EOF
20265
20266fi
20267
20268if test "$wxUSE_FONTDLG" = "yes"; then
20269 cat >> confdefs.h <<\EOF
20270#define wxUSE_FONTDLG 1
20271EOF
20272
20273fi
20274
20275if test "$wxUSE_DIRDLG" = "yes"; then
20276 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20277 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20278 else
20279 if test "$wxUSE_TREECTRL" != "yes"; then
20280 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20281 else
20282 cat >> confdefs.h <<\EOF
20283#define wxUSE_DIRDLG 1
20284EOF
20285
20286 fi
20287 fi
20288fi
20289
20290if test "$wxUSE_MSGDLG" = "yes"; then
20291 cat >> confdefs.h <<\EOF
20292#define wxUSE_MSGDLG 1
20293EOF
20294
20295fi
20296
20297if test "$wxUSE_NUMBERDLG" = "yes"; then
20298 cat >> confdefs.h <<\EOF
20299#define wxUSE_NUMBERDLG 1
20300EOF
20301
20302fi
20303
20304if test "$wxUSE_PROGRESSDLG" = "yes"; then
20305 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20306 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20307 else
20308 cat >> confdefs.h <<\EOF
20309#define wxUSE_PROGRESSDLG 1
20310EOF
20311
20312 fi
20313fi
20314
20315if test "$wxUSE_SPLASH" = "yes"; then
20316 cat >> confdefs.h <<\EOF
20317#define wxUSE_SPLASH 1
20318EOF
20319
20320fi
20321
20322if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20323 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20324 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20325 else
20326 cat >> confdefs.h <<\EOF
20327#define wxUSE_STARTUP_TIPS 1
20328EOF
20329
20330 fi
20331fi
20332
20333if test "$wxUSE_TEXTDLG" = "yes"; then
20334 cat >> confdefs.h <<\EOF
20335#define wxUSE_TEXTDLG 1
20336EOF
20337
20338fi
20339
20340if test "$wxUSE_WIZARDDLG" = "yes"; then
20341 cat >> confdefs.h <<\EOF
20342#define wxUSE_WIZARDDLG 1
20343EOF
20344
20345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20346fi
20347
20348
20349if test "$cross_compiling" = "yes"; then
20350 OSINFO="\"$host\""
20351else
20352 OSINFO=`uname -s -r -m`
20353 OSINFO="\"$OSINFO\""
20354fi
20355
20356cat >> confdefs.h <<EOF
20357#define WXWIN_OS_DESCRIPTION $OSINFO
20358EOF
20359
20360
20361
20362if test "x$prefix" != "xNONE"; then
20363 wxPREFIX=$prefix
20364else
20365 wxPREFIX=$ac_default_prefix
20366fi
20367
20368cat >> confdefs.h <<EOF
20369#define wxINSTALL_PREFIX "$wxPREFIX"
20370EOF
20371
20372
20373
20374
20375
20376if test "$wxUSE_MAC" = 1 ; then
20377 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20378fi
20379
20380
20381LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
20382
20383if test "$wxUSE_GUI" = "yes"; then
20384
20385 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20386
20387
20388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20389 drawing dynamic erase event exec font image \
20390 minimal richedit rotate widgets"
20391
20392 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20393else
20394 SAMPLES_SUBDIRS="console"
20395fi
20396
20397
20398INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20399$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
20400
20401if test "$wxUSE_GTK" = 1; then
20402 WXCONFIG_INCLUDE=
20403else
20404 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20405fi
20406
20407if test "$GXX" = yes ; then
20408 CXXWARNINGS="-Wall"
20409
20410 if test "$wxUSE_NO_DEPS" = "no" ; then
20411 CFLAGS="-MMD $CFLAGS"
20412 CXXFLAGS="-MMD $CXXFLAGS"
20413 fi
20414fi
20415
20416EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20417
20418CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20419CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20420
20421LDFLAGS="$LDFLAGS$PROFILE"
20422
20423SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20512echo "configure:20513: checking whether ${MAKE-make} sets \${MAKE}" >&5
20513set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20514if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20515 echo $ac_n "(cached) $ac_c" 1>&6
20516else
20517 cat > conftestmake <<\EOF
20518all:
20519 @echo 'ac_maketemp="${MAKE}"'
20520EOF
20521# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20522eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20523if test -n "$ac_maketemp"; then
20524 eval ac_cv_prog_make_${ac_make}_set=yes
20525else
20526 eval ac_cv_prog_make_${ac_make}_set=no
20527fi
20528rm -f conftestmake
20529fi
20530if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20531 echo "$ac_t""yes" 1>&6
20532 SET_MAKE=
20533else
20534 echo "$ac_t""no" 1>&6
20535 SET_MAKE="MAKE=${MAKE-make}"
20536fi
20537
20538
20539if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20540 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20541fi
20542
20543
20544
20545if test "$wxUSE_GUI" = "yes"; then
20546 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20547 wx_cv_if_gnu_make=$IF_GNU_MAKE
20548 wx_cv_path_ifs=$PATH_IFS
20549 wx_cv_program_ext=$PROGRAM_EXT
20550 wx_cv_target_library=$WX_TARGET_LIBRARY
20551 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20552 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20553 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20554 wx_cv_path_ifs wx_cv_program_ext \
20555 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20556 subdirs="demos samples utils contrib"
20557
20558fi
20559
20560trap '' 1 2 15
20561cat > confcache <<\EOF
20562# This file is a shell script that caches the results of configure
20563# tests run on this system so they can be shared between configure
20564# scripts and configure runs. It is not useful on other systems.
20565# If it contains results you don't want to keep, you may remove or edit it.
20566#
20567# By default, configure uses ./config.cache as the cache file,
20568# creating it if it does not exist already. You can give configure
20569# the --cache-file=FILE option to use a different cache file; that is
20570# what configure does when it calls configure scripts in
20571# subdirectories, so they share the cache.
20572# Giving --cache-file=/dev/null disables caching, for debugging configure.
20573# config.status only pays attention to the cache file if you give it the
20574# --recheck option to rerun configure.
20575#
20576EOF
20577# The following way of writing the cache mishandles newlines in values,
20578# but we know of no workaround that is simple, portable, and efficient.
20579# So, don't put newlines in cache variables' values.
20580# Ultrix sh set writes to stderr and can't be redirected directly,
20581# and sets the high bit in the cache file unless we assign to the vars.
20582(set) 2>&1 |
20583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20584 *ac_space=\ *)
20585 # `set' does not quote correctly, so add quotes (double-quote substitution
20586 # turns \\\\ into \\, and sed turns \\ into \).
20587 sed -n \
20588 -e "s/'/'\\\\''/g" \
20589 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20590 ;;
20591 *)
20592 # `set' quotes correctly as required by POSIX, so do not add quotes.
20593 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20594 ;;
20595 esac >> confcache
20596if cmp -s $cache_file confcache; then
20597 :
20598else
20599 if test -w $cache_file; then
20600 echo "updating cache $cache_file"
20601 cat confcache > $cache_file
20602 else
20603 echo "not updating unwritable cache $cache_file"
20604 fi
20605fi
20606rm -f confcache
20607
20608trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20609
20610test "x$prefix" = xNONE && prefix=$ac_default_prefix
20611# Let make expand exec_prefix.
20612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20613
20614# Any assignment to VPATH causes Sun make to only execute
20615# the first set of double-colon rules, so remove it if not needed.
20616# If there is a colon in the path, we need to keep it.
20617if test "x$srcdir" = x.; then
20618 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20619fi
20620
20621trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20622
20623DEFS=-DHAVE_CONFIG_H
20624
20625# Without the "./", some shells look in PATH for config.status.
20626: ${CONFIG_STATUS=./config.status}
20627
20628echo creating $CONFIG_STATUS
20629rm -f $CONFIG_STATUS
20630cat > $CONFIG_STATUS <<EOF
20631#! /bin/sh
20632# Generated automatically by configure.
20633# Run this file to recreate the current configuration.
20634# This directory was configured as follows,
20635# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20636#
20637# $0 $ac_configure_args
20638#
20639# Compiler output produced by configure, useful for debugging
20640# configure, is in ./config.log if it exists.
20641
20642ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20643for ac_option
20644do
20645 case "\$ac_option" in
20646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20647 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20648 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20649 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20650 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20651 exit 0 ;;
20652 -help | --help | --hel | --he | --h)
20653 echo "\$ac_cs_usage"; exit 0 ;;
20654 *) echo "\$ac_cs_usage"; exit 1 ;;
20655 esac
20656done
20657
20658ac_given_srcdir=$srcdir
20659ac_given_INSTALL="$INSTALL"
20660
20661trap 'rm -fr `echo "
20662 wx-config
20663 src/make.env
20664 src/makeprog.env
20665 src/makelib.env
20666 Makefile
20667 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20668EOF
20669cat >> $CONFIG_STATUS <<EOF
20670
20671# Protect against being on the right side of a sed subst in config.status.
20672sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20673 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20674$ac_vpsub
20675$extrasub
20676s%@SHELL@%$SHELL%g
20677s%@CFLAGS@%$CFLAGS%g
20678s%@CPPFLAGS@%$CPPFLAGS%g
20679s%@CXXFLAGS@%$CXXFLAGS%g
20680s%@FFLAGS@%$FFLAGS%g
20681s%@DEFS@%$DEFS%g
20682s%@LDFLAGS@%$LDFLAGS%g
20683s%@LIBS@%$LIBS%g
20684s%@exec_prefix@%$exec_prefix%g
20685s%@prefix@%$prefix%g
20686s%@program_transform_name@%$program_transform_name%g
20687s%@bindir@%$bindir%g
20688s%@sbindir@%$sbindir%g
20689s%@libexecdir@%$libexecdir%g
20690s%@datadir@%$datadir%g
20691s%@sysconfdir@%$sysconfdir%g
20692s%@sharedstatedir@%$sharedstatedir%g
20693s%@localstatedir@%$localstatedir%g
20694s%@libdir@%$libdir%g
20695s%@includedir@%$includedir%g
20696s%@oldincludedir@%$oldincludedir%g
20697s%@infodir@%$infodir%g
20698s%@mandir@%$mandir%g
20699s%@host@%$host%g
20700s%@host_alias@%$host_alias%g
20701s%@host_cpu@%$host_cpu%g
20702s%@host_vendor@%$host_vendor%g
20703s%@host_os@%$host_os%g
20704s%@target@%$target%g
20705s%@target_alias@%$target_alias%g
20706s%@target_cpu@%$target_cpu%g
20707s%@target_vendor@%$target_vendor%g
20708s%@target_os@%$target_os%g
20709s%@build@%$build%g
20710s%@build_alias@%$build_alias%g
20711s%@build_cpu@%$build_cpu%g
20712s%@build_vendor@%$build_vendor%g
20713s%@build_os@%$build_os%g
20714s%@CC@%$CC%g
20715s%@CPP@%$CPP%g
20716s%@CXX@%$CXX%g
20717s%@RANLIB@%$RANLIB%g
20718s%@AR@%$AR%g
20719s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20720s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20721s%@INSTALL_DATA@%$INSTALL_DATA%g
20722s%@STRIP@%$STRIP%g
20723s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20724s%@YACC@%$YACC%g
20725s%@LEX@%$LEX%g
20726s%@LEXLIB@%$LEXLIB%g
20727s%@LN_S@%$LN_S%g
20728s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20729s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20730s%@GTK_LIBS@%$GTK_LIBS%g
20731s%@GTK_CONFIG@%$GTK_CONFIG%g
20732s%@X_CFLAGS@%$X_CFLAGS%g
20733s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20734s%@X_LIBS@%$X_LIBS%g
20735s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20736s%@RESCOMP@%$RESCOMP%g
20737s%@DEREZ@%$DEREZ%g
20738s%@CXXCPP@%$CXXCPP%g
20739s%@LIBICONV@%$LIBICONV%g
20740s%@LEX_STEM@%$LEX_STEM%g
20741s%@PATH_IFS@%$PATH_IFS%g
20742s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20743s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20744s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20745s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20746s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20747s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20748s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20749s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20750s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20751s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20752s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20753s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20754s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20755s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20756s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20757s%@WX_ALL@%$WX_ALL%g
20758s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20759s%@SHARED_LD@%$SHARED_LD%g
20760s%@PIC_FLAG@%$PIC_FLAG%g
20761s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20762s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20763s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20764s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20765s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20766s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20767s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20768s%@USE_GUI@%$USE_GUI%g
20769s%@AFMINSTALL@%$AFMINSTALL%g
20770s%@TOOLKIT@%$TOOLKIT%g
20771s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20772s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20773s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20774s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20775s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20776s%@cross_compiling@%$cross_compiling%g
20777s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20778s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20779s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20780s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20781s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20782s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20783s%@ALL_HEADERS@%$ALL_HEADERS%g
20784s%@ALL_SOURCES@%$ALL_SOURCES%g
20785s%@GUIDIST@%$GUIDIST%g
20786s%@PORT_FILES@%$PORT_FILES%g
20787s%@DISTDIR@%$DISTDIR%g
20788s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20789s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20790s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20791s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20792s%@EXTRADEFS@%$EXTRADEFS%g
20793s%@RESFLAGS@%$RESFLAGS%g
20794s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20795s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20796s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20797s%@LIBWXMACRES@%$LIBWXMACRES%g
20798s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20799s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20800s%@DLLTOOL@%$DLLTOOL%g
20801s%@AS@%$AS%g
20802s%@NM@%$NM%g
20803s%@LD@%$LD%g
20804s%@MAKEINFO@%$MAKEINFO%g
20805s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20806s%@SET_MAKE@%$SET_MAKE%g
20807s%@subdirs@%$subdirs%g
20808
20809CEOF
20810EOF
20811
20812cat >> $CONFIG_STATUS <<\EOF
20813
20814# Split the substitutions into bite-sized pieces for seds with
20815# small command number limits, like on Digital OSF/1 and HP-UX.
20816ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20817ac_file=1 # Number of current file.
20818ac_beg=1 # First line for current file.
20819ac_end=$ac_max_sed_cmds # Line after last line for current file.
20820ac_more_lines=:
20821ac_sed_cmds=""
20822while $ac_more_lines; do
20823 if test $ac_beg -gt 1; then
20824 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20825 else
20826 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20827 fi
20828 if test ! -s conftest.s$ac_file; then
20829 ac_more_lines=false
20830 rm -f conftest.s$ac_file
20831 else
20832 if test -z "$ac_sed_cmds"; then
20833 ac_sed_cmds="sed -f conftest.s$ac_file"
20834 else
20835 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20836 fi
20837 ac_file=`expr $ac_file + 1`
20838 ac_beg=$ac_end
20839 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20840 fi
20841done
20842if test -z "$ac_sed_cmds"; then
20843 ac_sed_cmds=cat
20844fi
20845EOF
20846
20847cat >> $CONFIG_STATUS <<EOF
20848
20849CONFIG_FILES=\${CONFIG_FILES-"wx-config
20850 src/make.env
20851 src/makeprog.env
20852 src/makelib.env
20853 Makefile
20854 "}
20855EOF
20856cat >> $CONFIG_STATUS <<\EOF
20857for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20859 case "$ac_file" in
20860 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20861 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20862 *) ac_file_in="${ac_file}.in" ;;
20863 esac
20864
20865 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20866
20867 # Remove last slash and all that follows it. Not all systems have dirname.
20868 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20869 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20870 # The file is in a subdirectory.
20871 test ! -d "$ac_dir" && mkdir "$ac_dir"
20872 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20873 # A "../" for each directory in $ac_dir_suffix.
20874 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20875 else
20876 ac_dir_suffix= ac_dots=
20877 fi
20878
20879 case "$ac_given_srcdir" in
20880 .) srcdir=.
20881 if test -z "$ac_dots"; then top_srcdir=.
20882 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20883 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20884 *) # Relative path.
20885 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20886 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20887 esac
20888
20889 case "$ac_given_INSTALL" in
20890 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20891 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20892 esac
20893
20894 echo creating "$ac_file"
20895 rm -f "$ac_file"
20896 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20897 case "$ac_file" in
20898 *Makefile*) ac_comsub="1i\\
20899# $configure_input" ;;
20900 *) ac_comsub= ;;
20901 esac
20902
20903 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20904 sed -e "$ac_comsub
20905s%@configure_input@%$configure_input%g
20906s%@srcdir@%$srcdir%g
20907s%@top_srcdir@%$top_srcdir%g
20908s%@INSTALL@%$INSTALL%g
20909" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20910fi; done
20911rm -f conftest.s*
20912
20913# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20914# NAME is the cpp macro being defined and VALUE is the value it is being given.
20915#
20916# ac_d sets the value in "#define NAME VALUE" lines.
20917ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20918ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20919ac_dC='\3'
20920ac_dD='%g'
20921# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20922ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20923ac_uB='\([ ]\)%\1#\2define\3'
20924ac_uC=' '
20925ac_uD='\4%g'
20926# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20927ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20928ac_eB='$%\1#\2define\3'
20929ac_eC=' '
20930ac_eD='%g'
20931
20932if test "${CONFIG_HEADERS+set}" != set; then
20933EOF
20934cat >> $CONFIG_STATUS <<EOF
20935 CONFIG_HEADERS="setup.h:setup.h.in"
20936EOF
20937cat >> $CONFIG_STATUS <<\EOF
20938fi
20939for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20941 case "$ac_file" in
20942 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20943 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20944 *) ac_file_in="${ac_file}.in" ;;
20945 esac
20946
20947 echo creating $ac_file
20948
20949 rm -f conftest.frag conftest.in conftest.out
20950 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20951 cat $ac_file_inputs > conftest.in
20952
20953EOF
20954
20955# Transform confdefs.h into a sed script conftest.vals that substitutes
20956# the proper values into config.h.in to produce config.h. And first:
20957# Protect against being on the right side of a sed subst in config.status.
20958# Protect against being in an unquoted here document in config.status.
20959rm -f conftest.vals
20960cat > conftest.hdr <<\EOF
20961s/[\\&%]/\\&/g
20962s%[\\$`]%\\&%g
20963s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20964s%ac_d%ac_u%gp
20965s%ac_u%ac_e%gp
20966EOF
20967sed -n -f conftest.hdr confdefs.h > conftest.vals
20968rm -f conftest.hdr
20969
20970# This sed command replaces #undef with comments. This is necessary, for
20971# example, in the case of _POSIX_SOURCE, which is predefined and required
20972# on some systems where configure will not decide to define it.
20973cat >> conftest.vals <<\EOF
20974s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20975EOF
20976
20977# Break up conftest.vals because some shells have a limit on
20978# the size of here documents, and old seds have small limits too.
20979
20980rm -f conftest.tail
20981while :
20982do
20983 ac_lines=`grep -c . conftest.vals`
20984 # grep -c gives empty output for an empty file on some AIX systems.
20985 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20986 # Write a limited-size here document to conftest.frag.
20987 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20988 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20989 echo 'CEOF
20990 sed -f conftest.frag conftest.in > conftest.out
20991 rm -f conftest.in
20992 mv conftest.out conftest.in
20993' >> $CONFIG_STATUS
20994 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20995 rm -f conftest.vals
20996 mv conftest.tail conftest.vals
20997done
20998rm -f conftest.vals
20999
21000cat >> $CONFIG_STATUS <<\EOF
21001 rm -f conftest.frag conftest.h
21002 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21003 cat conftest.in >> conftest.h
21004 rm -f conftest.in
21005 if cmp -s $ac_file conftest.h 2>/dev/null; then
21006 echo "$ac_file is unchanged"
21007 rm -f conftest.h
21008 else
21009 # Remove last slash and all that follows it. Not all systems have dirname.
21010 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21011 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21012 # The file is in a subdirectory.
21013 test ! -d "$ac_dir" && mkdir "$ac_dir"
21014 fi
21015 rm -f $ac_file
21016 mv conftest.h $ac_file
21017 fi
21018fi; done
21019
21020EOF
21021cat >> $CONFIG_STATUS <<EOF
21022
21023 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21024 LN_S="${LN_S}"
21025
21026
21027EOF
21028cat >> $CONFIG_STATUS <<\EOF
21029
21030 if test ! -h wx-config; then
21031 chmod +x wx-config
21032 mv wx-config wx${TOOLCHAIN_NAME}-config
21033 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21034 fi
21035
21036 if test ! -d lib; then
21037 mkdir lib
21038 fi
21039 if test ! -d lib/wx; then
21040 mkdir lib/wx
21041 fi
21042 if test ! -d lib/wx/include; then
21043 mkdir lib/wx/include
21044 fi
21045 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21046 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21047 fi
21048 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21049 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21050 fi
21051 if test -f setup.h; then
21052 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21053 fi
21054
21055exit 0
21056EOF
21057chmod +x $CONFIG_STATUS
21058rm -fr confdefs* $ac_clean_files
21059test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21060
21061if test "$no_recursion" != yes; then
21062
21063 # Remove --cache-file and --srcdir arguments so they do not pile up.
21064 ac_sub_configure_args=
21065 ac_prev=
21066 for ac_arg in $ac_configure_args; do
21067 if test -n "$ac_prev"; then
21068 ac_prev=
21069 continue
21070 fi
21071 case "$ac_arg" in
21072 -cache-file | --cache-file | --cache-fil | --cache-fi \
21073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21074 ac_prev=cache_file ;;
21075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21077 ;;
21078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21079 ac_prev=srcdir ;;
21080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21081 ;;
21082 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21083 esac
21084 done
21085
21086 for ac_config_dir in demos samples utils contrib; do
21087
21088 # Do not complain, so a configure script can configure whichever
21089 # parts of a large source tree are present.
21090 if test ! -d $srcdir/$ac_config_dir; then
21091 continue
21092 fi
21093
21094 echo configuring in $ac_config_dir
21095
21096 case "$srcdir" in
21097 .) ;;
21098 *)
21099 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21100 else
21101 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21102 fi
21103 ;;
21104 esac
21105
21106 ac_popdir=`pwd`
21107 cd $ac_config_dir
21108
21109 # A "../" for each directory in /$ac_config_dir.
21110 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21111
21112 case "$srcdir" in
21113 .) # No --srcdir option. We are building in place.
21114 ac_sub_srcdir=$srcdir ;;
21115 /*) # Absolute path.
21116 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21117 *) # Relative path.
21118 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21119 esac
21120
21121 # Check for guested configure; otherwise get Cygnus style configure.
21122 if test -f $ac_sub_srcdir/configure; then
21123 ac_sub_configure=$ac_sub_srcdir/configure
21124 elif test -f $ac_sub_srcdir/configure.in; then
21125 ac_sub_configure=$ac_configure
21126 else
21127 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21128 ac_sub_configure=
21129 fi
21130
21131 # The recursion is here.
21132 if test -n "$ac_sub_configure"; then
21133
21134 # Make the cache file name correct relative to the subdirectory.
21135 case "$cache_file" in
21136 /*) ac_sub_cache_file=$cache_file ;;
21137 *) # Relative path.
21138 ac_sub_cache_file="$ac_dots$cache_file" ;;
21139 esac
21140 case "$ac_given_INSTALL" in
21141 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21142 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21143 esac
21144
21145 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21146 # The eval makes quoting arguments work.
21147 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21148 then :
21149 else
21150 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21151 fi
21152 fi
21153
21154 cd $ac_popdir
21155 done
21156fi
21157
21158