]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
added msw/gccpriv.h and others to headers list
[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# Configure paths for GTK+
40# Owen Taylor 97-11-3
41
42
43
44
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
59 --enable-gui use GUI classes"
60ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76ac_help="$ac_help
77 --with-mgl use SciTech MGL"
78ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98ac_help="$ac_help
99 --enable-shared create shared library code"
100ac_help="$ac_help
101 --enable-soname set the DT_SONAME field in ELF shared libraries"
102ac_help="$ac_help
103 --enable-optimise create optimised code"
104ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106ac_help="$ac_help
107 --enable-precomp enable use of precompiled headers (Mac OS X)"
108ac_help="$ac_help
109 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
110ac_help="$ac_help
111 --enable-debug_info create code with debugging information"
112ac_help="$ac_help
113 --enable-debug_gdb create code with extra GDB debugging information"
114ac_help="$ac_help
115 --enable-debug_cntxt use wxDebugContext"
116ac_help="$ac_help
117 --enable-mem_tracing create code with memory tracing"
118ac_help="$ac_help
119 --enable-profile create code with profiling information"
120ac_help="$ac_help
121 --enable-no_rtti create code without RTTI information"
122ac_help="$ac_help
123 --enable-no_exceptions create code without C++ exceptions handling"
124ac_help="$ac_help
125 --enable-permissive compile code disregarding strict ANSI"
126ac_help="$ac_help
127 --enable-no_deps create code without dependency information"
128ac_help="$ac_help
129 --enable-compat20 enable wxWindows 2.0 compatibility"
130ac_help="$ac_help
131 --enable-compat22 enable wxWindows 2.2 compatibility"
132ac_help="$ac_help
133 --enable-intl use internationalization system"
134ac_help="$ac_help
135 --enable-config use wxConfig (and derived) classes"
136ac_help="$ac_help
137 --enable-sockets use socket/network classes"
138ac_help="$ac_help
139 --enable-ipc use interprocess communication (wxSocket etc.)"
140ac_help="$ac_help
141 --enable-cmdline use wxCmdLineParser class"
142ac_help="$ac_help
143 --enable-datetime use wxDateTime class"
144ac_help="$ac_help
145 --enable-timedate use obsolete wxDate/wxTime classes"
146ac_help="$ac_help
147 --enable-stopwatch use wxStopWatch class"
148ac_help="$ac_help
149 --enable-dialupman use dialup network classes"
150ac_help="$ac_help
151 --enable-apple_ieee use the Apple IEEE codec"
152ac_help="$ac_help
153 --enable-timer use wxTimer class"
154ac_help="$ac_help
155 --enable-wave use wxWave class"
156ac_help="$ac_help
157 --enable-fraction use wxFraction class"
158ac_help="$ac_help
159 --enable-dynlib use wxLibrary class for DLL loading"
160ac_help="$ac_help
161 --enable-longlong use wxLongLong class"
162ac_help="$ac_help
163 --enable-geometry use geometry class"
164ac_help="$ac_help
165 --enable-log use logging system"
166ac_help="$ac_help
167 --enable-streams use wxStream etc classes"
168ac_help="$ac_help
169 --enable-file use wxFile classes"
170ac_help="$ac_help
171 --enable-ffile use wxFFile classes"
172ac_help="$ac_help
173 --enable-textfile use wxTextFile classes"
174ac_help="$ac_help
175 --enable-fontmap use font encodings conversion classes"
176ac_help="$ac_help
177 --enable-unicode compile wxString with Unicode support"
178ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198ac_help="$ac_help
199 --enable-threads use threads"
200ac_help="$ac_help
201 --enable-serial use class serialization"
202ac_help="$ac_help
203 --enable-docview use document view architecture"
204ac_help="$ac_help
205 --enable-help use help subsystem"
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214ac_help="$ac_help
215 --enable-printarch use printing architecture"
216ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238ac_help="$ac_help
239 --enable-controls use all usual controls"
240ac_help="$ac_help
241 --enable-accel use accelerators"
242ac_help="$ac_help
243 --enable-button use wxButton class"
244ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248ac_help="$ac_help
249 --enable-caret use wxCaret class"
250ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254ac_help="$ac_help
255 --enable-choice use wxChoice class"
256ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260ac_help="$ac_help
261 --enable-grid use wxGrid class"
262ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282ac_help="$ac_help
283 --enable-slider use wxSlider class"
284ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316ac_help="$ac_help
317 --enable-commondlg use all common dialogs"
318ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350ac_help="$ac_help
351 --enable-splines use spline drawing code"
352ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356ac_help="$ac_help
357 --enable-joystick use wxJoystick (Linux only)"
358ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362ac_help="$ac_help
363 --enable-palette use wxPalette class"
364ac_help="$ac_help
365 --enable-image use wxImage class"
366ac_help="$ac_help
367 --enable-gif use gif images (GIF file format)"
368ac_help="$ac_help
369 --enable-pcx use pcx images (PCX file format)"
370ac_help="$ac_help
371 --enable-pnm use pnm images (PNM file format)"
372ac_help="$ac_help
373 --enable-xpm use xpm images (XPM file format)"
374ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380ac_help="$ac_help
381 --with-x use the X Window System"
382
383# Initialize some variables set by options.
384# The variables have the same names as the options, with
385# dashes changed to underlines.
386build=NONE
387cache_file=./config.cache
388exec_prefix=NONE
389host=NONE
390no_create=
391nonopt=NONE
392no_recursion=
393prefix=NONE
394program_prefix=NONE
395program_suffix=NONE
396program_transform_name=s,x,x,
397silent=
398site=
399srcdir=
400target=NONE
401verbose=
402x_includes=NONE
403x_libraries=NONE
404bindir='${exec_prefix}/bin'
405sbindir='${exec_prefix}/sbin'
406libexecdir='${exec_prefix}/libexec'
407datadir='${prefix}/share'
408sysconfdir='${prefix}/etc'
409sharedstatedir='${prefix}/com'
410localstatedir='${prefix}/var'
411libdir='${exec_prefix}/lib'
412includedir='${prefix}/include'
413oldincludedir='/usr/include'
414infodir='${prefix}/info'
415mandir='${prefix}/man'
416
417# Initialize some other variables.
418subdirs=
419MFLAGS= MAKEFLAGS=
420SHELL=${CONFIG_SHELL-/bin/sh}
421# Maximum number of lines to put in a shell here document.
422ac_max_here_lines=12
423
424ac_prev=
425for ac_option
426do
427
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
442 case "$ac_option" in
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
447 bindir="$ac_optarg" ;;
448
449 -build | --build | --buil | --bui | --bu)
450 ac_prev=build ;;
451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
452 build="$ac_optarg" ;;
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
459 cache_file="$ac_optarg" ;;
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
465 datadir="$ac_optarg" ;;
466
467 -disable-* | --disable-*)
468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
475
476 -enable-* | --enable-*)
477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
485 *) ac_optarg=yes ;;
486 esac
487 eval "enable_${ac_feature}='$ac_optarg'" ;;
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
496 exec_prefix="$ac_optarg" ;;
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506Usage: configure [options] [host]
507Options: [defaults in brackets after descriptions]
508Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538EOF
539 cat << EOF
540Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
556
557 -host | --host | --hos | --ho)
558 ac_prev=host ;;
559 -host=* | --host=* | --hos=* | --ho=*)
560 host="$ac_optarg" ;;
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
567 includedir="$ac_optarg" ;;
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
572 infodir="$ac_optarg" ;;
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
577 libdir="$ac_optarg" ;;
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
584 libexecdir="$ac_optarg" ;;
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
593 localstatedir="$ac_optarg" ;;
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
598 mandir="$ac_optarg" ;;
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
619 oldincludedir="$ac_optarg" ;;
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
624 prefix="$ac_optarg" ;;
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
631 program_prefix="$ac_optarg" ;;
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
638 program_suffix="$ac_optarg" ;;
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
655 program_transform_name="$ac_optarg" ;;
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
665 sbindir="$ac_optarg" ;;
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
676 sharedstatedir="$ac_optarg" ;;
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
681 site="$ac_optarg" ;;
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
686 srcdir="$ac_optarg" ;;
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
693 sysconfdir="$ac_optarg" ;;
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
696 ac_prev=target ;;
697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698 target="$ac_optarg" ;;
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
706
707 -with-* | --with-*)
708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
709 # Reject names that are not valid shell variable names.
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
713 ac_package=`echo $ac_package| sed 's/-/_/g'`
714 case "$ac_option" in
715 *=*) ;;
716 *) ac_optarg=yes ;;
717 esac
718 eval "with_${ac_package}='$ac_optarg'" ;;
719
720 -without-* | --without-*)
721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
722 # Reject names that are not valid shell variable names.
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
738 x_includes="$ac_optarg" ;;
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
745 x_libraries="$ac_optarg" ;;
746
747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
748 ;;
749
750 *)
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
758 ;;
759
760 esac
761done
762
763if test -n "$ac_prev"; then
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765fi
766
767trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769# File descriptor usage:
770# 0 standard input
771# 1 file creation
772# 2 errors and warnings
773# 3 some systems may open it to /dev/tty
774# 4 used on the Kubota Titan
775# 6 checking for... messages and results
776# 5 compiler messages saved in config.log
777if test "$silent" = yes; then
778 exec 6>/dev/null
779else
780 exec 6>&1
781fi
782exec 5>./config.log
783
784echo "\
785This file contains any messages produced by compilers while
786running configure, to aid debugging if configure makes a mistake.
787" 1>&5
788
789# Strip out --no-create and --no-recursion so they do not pile up.
790# Also quote any args containing shell metacharacters.
791ac_configure_args=
792for ac_arg
793do
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
802 esac
803done
804
805# NLS nuisances.
806# Only set these to C if already set. These must not be set unconditionally
807# because not all systems understand e.g. LANG=C (notably SCO).
808# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809# Non-C LC_CTYPE values break the ctype check.
810if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
814
815# confdefs.h avoids OS command line length limits that DEFS can exceed.
816rm -rf conftest* confdefs.h
817# AIX cpp loses on an empty file, so make sure it contains at least a newline.
818echo > confdefs.h
819
820# A filename unique to this package, relative to the directory that
821# configure is in, which we can look for to find out if srcdir is correct.
822ac_unique_file=wx-config.in
823
824# Find the source files, if location was not specified.
825if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835else
836 ac_srcdir_defaulted=no
837fi
838if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
841 else
842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
843 fi
844fi
845srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
846
847# Prefer explicitly selected file to automatically selected ones.
848if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854fi
855for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
857 echo "loading site script $ac_site_file"
858 . "$ac_site_file"
859 fi
860done
861
862if test -r "$cache_file"; then
863 echo "loading cache $cache_file"
864 . $cache_file
865else
866 echo "creating cache $cache_file"
867 > $cache_file
868fi
869
870ac_ext=c
871# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872ac_cpp='$CPP $CPPFLAGS'
873ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875cross_compiling=$ac_cv_prog_cc_cross
876
877ac_exeext=
878ac_objext=o
879if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
887else
888 ac_n= ac_c='\c' ac_t=
889fi
890
891
892
893ac_aux_dir=
894for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if test -f $ac_dir/install-sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install-sh -c"
898 break
899 elif test -f $ac_dir/install.sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install.sh -c"
902 break
903 fi
904done
905if test -z "$ac_aux_dir"; then
906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
907fi
908ac_config_guess=$ac_aux_dir/config.guess
909ac_config_sub=$ac_aux_dir/config.sub
910ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
911
912
913# Do some error checking and defaulting for the host and target type.
914# The inputs are:
915# configure --host=HOST --target=TARGET --build=BUILD NONOPT
916#
917# The rules are:
918# 1. You are not allowed to specify --host, --target, and nonopt at the
919# same time.
920# 2. Host defaults to nonopt.
921# 3. If nonopt is not specified, then host defaults to the current host,
922# as determined by config.guess.
923# 4. Target and build default to nonopt.
924# 5. If nonopt is not specified, then target and build default to host.
925
926# The aliases save the names the user supplied, while $host etc.
927# will get canonicalized.
928case $host---$target---$nonopt in
929NONE---*---* | *---NONE---* | *---*---NONE) ;;
930*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931esac
932
933
934# Make sure we can run config.sub.
935if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937fi
938
939echo $ac_n "checking host system type""... $ac_c" 1>&6
940echo "configure:941: checking host system type" >&5
941
942host_alias=$host
943case "$host_alias" in
944NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952esac
953
954host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958echo "$ac_t""$host" 1>&6
959
960echo $ac_n "checking target system type""... $ac_c" 1>&6
961echo "configure:962: checking target system type" >&5
962
963target_alias=$target
964case "$target_alias" in
965NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970esac
971
972target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976echo "$ac_t""$target" 1>&6
977
978echo $ac_n "checking build system type""... $ac_c" 1>&6
979echo "configure:980: checking build system type" >&5
980
981build_alias=$build
982case "$build_alias" in
983NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988esac
989
990build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994echo "$ac_t""$build" 1>&6
995
996test "$host_alias" != "$target_alias" &&
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
1001
1002
1003WX_MAJOR_VERSION_NUMBER=2
1004WX_MINOR_VERSION_NUMBER=3
1005WX_RELEASE_NUMBER=2
1006
1007WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1008WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1009
1010WX_CURRENT=1
1011WX_REVISION=0
1012WX_AGE=0
1013
1014
1015
1016USE_UNIX=1
1017USE_WIN32=0
1018USE_BEOS=0
1019USE_MAC=0
1020
1021USE_LINUX=
1022USE_SGI=
1023USE_HPUX=
1024USE_SYSV=
1025USE_SVR4=
1026USE_AIX=
1027USE_SUN=
1028USE_SOLARIS=
1029USE_SUNOS=
1030USE_ALPHA=
1031USE_IA64=
1032USE_OSF=
1033USE_BSD=
1034USE_DARWIN=
1035USE_FREEBSD=
1036USE_OPENBSD=
1037USE_NETBSD=
1038USE_VMS=
1039USE_ULTRIX=
1040USE_CYGWIN=
1041USE_MINGW=
1042USE_DATA_GENERAL=
1043
1044NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1045
1046ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1047
1048DEFAULT_wxUSE_GTK=0
1049DEFAULT_wxUSE_MAC=0
1050DEFAULT_wxUSE_MGL=0
1051DEFAULT_wxUSE_MOTIF=0
1052DEFAULT_wxUSE_MSW=0
1053DEFAULT_wxUSE_PM=0
1054DEFAULT_wxUSE_WINE=0
1055
1056DEFAULT_DEFAULT_wxUSE_GTK=0
1057DEFAULT_DEFAULT_wxUSE_MAC=0
1058DEFAULT_DEFAULT_wxUSE_MGL=0
1059DEFAULT_DEFAULT_wxUSE_MOTIF=0
1060DEFAULT_DEFAULT_wxUSE_MSW=0
1061DEFAULT_DEFAULT_wxUSE_PM=0
1062DEFAULT_DEFAULT_wxUSE_WINE=0
1063
1064PROGRAM_EXT=
1065SO_SUFFIX=so
1066
1067case "${host}" in
1068 *-hp-hpux* )
1069 USE_HPUX=1
1070 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1071 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1072 SO_SUFFIX=sl
1073 cat >> confdefs.h <<\EOF
1074#define __HPUX__ 1
1075EOF
1076
1077 ;;
1078 *-*-linux* )
1079 USE_LINUX=1
1080 cat >> confdefs.h <<\EOF
1081#define __LINUX__ 1
1082EOF
1083
1084 TMP=`uname -m`
1085 if test "x$TMP" = "xalpha"; then
1086 USE_ALPHA=1
1087 cat >> confdefs.h <<\EOF
1088#define __ALPHA__ 1
1089EOF
1090
1091 fi
1092 if test "x$TMP" = "xia64"; then
1093 USE_IA64=1
1094 cat >> confdefs.h <<\EOF
1095#define __IA64__ 1
1096EOF
1097
1098 fi
1099 DEFAULT_DEFAULT_wxUSE_GTK=1
1100 ;;
1101 *-*-irix5* | *-*-irix6* )
1102 USE_SGI=1
1103 USE_SVR4=1
1104 cat >> confdefs.h <<\EOF
1105#define __SGI__ 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define __SVR4__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-solaris2* )
1115 USE_SUN=1
1116 USE_SOLARIS=1
1117 USE_SVR4=1
1118 cat >> confdefs.h <<\EOF
1119#define __SUN__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define __SOLARIS__ 1
1124EOF
1125
1126 cat >> confdefs.h <<\EOF
1127#define __SVR4__ 1
1128EOF
1129
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1132 ;;
1133 *-*-sunos4* )
1134 USE_SUN=1
1135 USE_SUNOS=1
1136 USE_BSD=1
1137 cat >> confdefs.h <<\EOF
1138#define __SUN__ 1
1139EOF
1140
1141 cat >> confdefs.h <<\EOF
1142#define __SUNOS__ 1
1143EOF
1144
1145 cat >> confdefs.h <<\EOF
1146#define __BSD__ 1
1147EOF
1148
1149 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1150 ;;
1151 *-*-freebsd*)
1152 USE_BSD=1
1153 USE_FREEBSD=1
1154 cat >> confdefs.h <<\EOF
1155#define __FREEBSD__ 1
1156EOF
1157
1158 cat >> confdefs.h <<\EOF
1159#define __BSD__ 1
1160EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-openbsd*)
1165 USE_BSD=1
1166 USE_OPENBSD=1
1167 cat >> confdefs.h <<\EOF
1168#define __FREEBSD__ 1
1169EOF
1170
1171 cat >> confdefs.h <<\EOF
1172#define __OPENBSD__ 1
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-netbsd*)
1178 USE_BSD=1
1179 USE_NETBSD=1
1180 cat >> confdefs.h <<\EOF
1181#define __FREEBSD__ 1
1182EOF
1183
1184 cat >> confdefs.h <<\EOF
1185#define __NETBSD__ 1
1186EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_GTK=1
1189 ;;
1190 *-*-osf* )
1191 USE_ALPHA=1
1192 USE_OSF=1
1193 cat >> confdefs.h <<\EOF
1194#define __ALPHA__ 1
1195EOF
1196
1197 cat >> confdefs.h <<\EOF
1198#define __OSF__ 1
1199EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1202 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1203 ;;
1204 *-*-dgux5* )
1205 USE_ALPHA=1
1206 USE_SVR4=1
1207 cat >> confdefs.h <<\EOF
1208#define __ALPHA__ 1
1209EOF
1210
1211 cat >> confdefs.h <<\EOF
1212#define __SVR4__ 1
1213EOF
1214
1215 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1216 ;;
1217 *-*-sysv5* )
1218 USE_SYSV=1
1219 USE_SVR4=1
1220 cat >> confdefs.h <<\EOF
1221#define __SYSV__ 1
1222EOF
1223
1224 cat >> confdefs.h <<\EOF
1225#define __SVR4__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-aix* )
1231 USE_AIX=1
1232 USE_SYSV=1
1233 USE_SVR4=1
1234 cat >> confdefs.h <<\EOF
1235#define __AIX__ 1
1236EOF
1237
1238 cat >> confdefs.h <<\EOF
1239#define __SYSV__ 1
1240EOF
1241
1242 cat >> confdefs.h <<\EOF
1243#define __SVR4__ 1
1244EOF
1245
1246 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1247 ;;
1248
1249 *-*-cygwin* | *-*-mingw32* )
1250 USE_UNIX=0
1251 USE_WIN32=1
1252 SO_SUFFIX=dll
1253 cat >> confdefs.h <<\EOF
1254#define __WIN32__ 1
1255EOF
1256
1257 cat >> confdefs.h <<\EOF
1258#define __WIN95__ 1
1259EOF
1260
1261 cat >> confdefs.h <<\EOF
1262#define __WINDOWS__ 1
1263EOF
1264
1265 cat >> confdefs.h <<\EOF
1266#define __GNUWIN32__ 1
1267EOF
1268
1269 cat >> confdefs.h <<\EOF
1270#define STRICT 1
1271EOF
1272
1273 cat >> confdefs.h <<\EOF
1274#define WINVER 0x0400
1275EOF
1276
1277 PROGRAM_EXT=".exe"
1278 RESCOMP=windres
1279 DEFAULT_DEFAULT_wxUSE_MSW=1
1280 ;;
1281
1282 *-pc-os2_emx | *-pc-os2-emx )
1283 cat >> confdefs.h <<\EOF
1284#define __EMX__ 1
1285EOF
1286
1287 PROGRAM_EXT=".exe"
1288 DEFAULT_DEFAULT_wxUSE_PM=1
1289 ;;
1290
1291 powerpc-*-darwin* )
1292 USE_BSD=1
1293 USE_DARWIN=1
1294 SO_SUFFIX=dylib
1295 cat >> confdefs.h <<\EOF
1296#define __BSD__ 1
1297EOF
1298
1299 cat >> confdefs.h <<\EOF
1300#define __DARWIN__ 1
1301EOF
1302
1303 cat >> confdefs.h <<\EOF
1304#define __POWERPC__ 1
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MAC=1
1308 ;;
1309
1310 *-*-beos* )
1311 USE_BEOS=1
1312 cat >> confdefs.h <<\EOF
1313#define __BEOS__ 1
1314EOF
1315
1316 ;;
1317
1318 *)
1319 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1320esac
1321
1322if test "$USE_UNIX" = 1 ; then
1323 wxUSE_UNIX=yes
1324 cat >> confdefs.h <<\EOF
1325#define __UNIX__ 1
1326EOF
1327
1328fi
1329
1330if test "$USE_LINUX" = 1; then
1331 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1332echo "configure:1333: checking for glibc 2.1 or later" >&5
1333if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335else
1336 cat > conftest.$ac_ext <<EOF
1337#line 1338 "configure"
1338#include "confdefs.h"
1339#include <features.h>
1340int main() {
1341
1342 #if !__GLIBC_PREREQ(2, 1)
1343 #error not glibc2.1
1344 #endif
1345
1346; return 0; }
1347EOF
1348if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349 rm -rf conftest*
1350
1351 wx_lib_glibc21=yes
1352
1353else
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357
1358 wx_lib_glibc21=no
1359
1360
1361fi
1362rm -f conftest*
1363
1364fi
1365
1366echo "$ac_t""$wx_lib_glibc21" 1>&6
1367 if test "$wx_lib_glibc21" = "yes"; then
1368 cat >> confdefs.h <<\EOF
1369#define wxHAVE_GLIBC2 1
1370EOF
1371
1372 fi
1373fi
1374
1375
1376
1377
1378 wx_arg_cache_file="configarg.cache"
1379 echo "loading argument cache $wx_arg_cache_file"
1380 rm -f ${wx_arg_cache_file}.tmp
1381 touch ${wx_arg_cache_file}.tmp
1382 touch ${wx_arg_cache_file}
1383
1384
1385DEBUG_CONFIGURE=0
1386if test $DEBUG_CONFIGURE = 1; then
1387 DEFAULT_wxUSE_UNIVERSAL=no
1388
1389 DEFAULT_wxUSE_THREADS=yes
1390
1391 DEFAULT_wxUSE_SHARED=yes
1392 DEFAULT_wxUSE_SONAME=no
1393 DEFAULT_wxUSE_OPTIMISE=no
1394 DEFAULT_wxUSE_PROFILE=no
1395 DEFAULT_wxUSE_NO_DEPS=no
1396 DEFAULT_wxUSE_NO_RTTI=yes
1397 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1398 DEFAULT_wxUSE_PERMISSIVE=no
1399 DEFAULT_wxUSE_DEBUG_FLAG=yes
1400 DEFAULT_wxUSE_DEBUG_INFO=yes
1401 DEFAULT_wxUSE_DEBUG_GDB=yes
1402 DEFAULT_wxUSE_MEM_TRACING=no
1403 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1404 DEFAULT_wxUSE_DMALLOC=no
1405 DEFAULT_wxUSE_PRECOMP=yes
1406 DEFAULT_wxUSE_APPLE_IEEE=no
1407
1408 DEFAULT_wxUSE_LOG=yes
1409 DEFAULT_wxUSE_LOGWINDOW=no
1410 DEFAULT_wxUSE_LOGGUI=no
1411
1412 DEFAULT_wxUSE_GUI=yes
1413 DEFAULT_wxUSE_CONTROLS=no
1414
1415 DEFAULT_wxUSE_REGEX=no
1416 DEFAULT_wxUSE_ZLIB=no
1417 DEFAULT_wxUSE_LIBPNG=no
1418 DEFAULT_wxUSE_LIBJPEG=no
1419 DEFAULT_wxUSE_LIBTIFF=no
1420 DEFAULT_wxUSE_ODBC=no
1421 DEFAULT_wxUSE_FREETYPE=no
1422 DEFAULT_wxUSE_OPENGL=no
1423
1424 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1425 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1426 DEFAULT_wxUSE_STD_IOSTREAM=no
1427 DEFAULT_wxUSE_CMDLINE_PARSER=no
1428 DEFAULT_wxUSE_DATETIME=no
1429 DEFAULT_wxUSE_TIMEDATE=no
1430 DEFAULT_wxUSE_TIMER=no
1431 DEFAULT_wxUSE_STOPWATCH=no
1432 DEFAULT_wxUSE_FILE=no
1433 DEFAULT_wxUSE_FFILE=no
1434 DEFAULT_wxUSE_TEXTFILE=no
1435 DEFAULT_wxUSE_WAVE=no
1436 DEFAULT_wxUSE_INTL=no
1437 DEFAULT_wxUSE_CONFIG=no
1438 DEFAULT_wxUSE_FONTMAP=no
1439 DEFAULT_wxUSE_STREAMS=no
1440 DEFAULT_wxUSE_SOCKETS=no
1441 DEFAULT_wxUSE_DIALUP_MANAGER=no
1442 DEFAULT_wxUSE_SERIAL=no
1443 DEFAULT_wxUSE_JOYSTICK=no
1444 DEFAULT_wxUSE_DYNLIB_CLASS=no
1445 DEFAULT_wxUSE_LONGLONG=no
1446 DEFAULT_wxUSE_GEOMETRY=no
1447
1448 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1449 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1450 DEFAULT_wxUSE_POSTSCRIPT=no
1451
1452 DEFAULT_wxUSE_X_RESOURCES=no
1453 DEFAULT_wxUSE_CLIPBOARD=no
1454 DEFAULT_wxUSE_TOOLTIPS=no
1455 DEFAULT_wxUSE_DRAG_AND_DROP=no
1456 DEFAULT_wxUSE_DRAGIMAGE=no
1457 DEFAULT_wxUSE_SPLINES=no
1458
1459 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1460 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1461 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1462
1463 DEFAULT_wxUSE_PROLOGIO=no
1464 DEFAULT_wxUSE_RESOURCES=no
1465 DEFAULT_wxUSE_CONSTRAINTS=no
1466 DEFAULT_wxUSE_IPC=no
1467 DEFAULT_wxUSE_HELP=no
1468 DEFAULT_wxUSE_MS_HTML_HELP=no
1469 DEFAULT_wxUSE_WXHTML_HELP=no
1470 DEFAULT_wxUSE_TREELAYOUT=no
1471 DEFAULT_wxUSE_METAFILE=no
1472 DEFAULT_wxUSE_MIMETYPE=no
1473 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1474
1475 DEFAULT_wxUSE_COMMONDLGS=no
1476 DEFAULT_wxUSE_CHOICEDLG=no
1477 DEFAULT_wxUSE_COLOURDLG=no
1478 DEFAULT_wxUSE_DIRDLG=no
1479 DEFAULT_wxUSE_FILEDLG=no
1480 DEFAULT_wxUSE_FINDREPLDLG=no
1481 DEFAULT_wxUSE_FONTDLG=no
1482 DEFAULT_wxUSE_MSGDLG=no
1483 DEFAULT_wxUSE_NUMBERDLG=no
1484 DEFAULT_wxUSE_TEXTDLG=no
1485 DEFAULT_wxUSE_SPLASH=no
1486 DEFAULT_wxUSE_STARTUP_TIPS=no
1487 DEFAULT_wxUSE_PROGRESSDLG=no
1488 DEFAULT_wxUSE_WIZARDDLG=no
1489
1490 DEFAULT_wxUSE_MENUS=no
1491 DEFAULT_wxUSE_MINIFRAME=no
1492 DEFAULT_wxUSE_HTML=no
1493 DEFAULT_wxUSE_FILESYSTEM=no
1494 DEFAULT_wxUSE_FS_INET=no
1495 DEFAULT_wxUSE_FS_ZIP=no
1496 DEFAULT_wxUSE_BUSYINFO=no
1497 DEFAULT_wxUSE_ZIPSTREAM=no
1498 DEFAULT_wxUSE_VALIDATORS=no
1499
1500 DEFAULT_wxUSE_ACCEL=no
1501 DEFAULT_wxUSE_BUTTON=no
1502 DEFAULT_wxUSE_BMPBUTTON=no
1503 DEFAULT_wxUSE_CALCTRL=no
1504 DEFAULT_wxUSE_CARET=no
1505 DEFAULT_wxUSE_CHECKBOX=no
1506 DEFAULT_wxUSE_CHECKLST=no
1507 DEFAULT_wxUSE_CHOICE=no
1508 DEFAULT_wxUSE_COMBOBOX=no
1509 DEFAULT_wxUSE_GAUGE=no
1510 DEFAULT_wxUSE_GRID=no
1511 DEFAULT_wxUSE_NEW_GRID=no
1512 DEFAULT_wxUSE_IMAGLIST=no
1513 DEFAULT_wxUSE_LISTBOX=no
1514 DEFAULT_wxUSE_LISTCTRL=no
1515 DEFAULT_wxUSE_NOTEBOOK=no
1516 DEFAULT_wxUSE_PROPSHEET=no
1517 DEFAULT_wxUSE_RADIOBOX=no
1518 DEFAULT_wxUSE_RADIOBTN=no
1519 DEFAULT_wxUSE_SASH=no
1520 DEFAULT_wxUSE_SCROLLBAR=no
1521 DEFAULT_wxUSE_SLIDER=no
1522 DEFAULT_wxUSE_SPINBTN=no
1523 DEFAULT_wxUSE_SPINCTRL=no
1524 DEFAULT_wxUSE_SPLITTER=no
1525 DEFAULT_wxUSE_STATBMP=no
1526 DEFAULT_wxUSE_STATBOX=no
1527 DEFAULT_wxUSE_STATLINE=no
1528 DEFAULT_wxUSE_STATTEXT=no
1529 DEFAULT_wxUSE_STATUSBAR=yes
1530 DEFAULT_wxUSE_TABDIALOG=no
1531 DEFAULT_wxUSE_TEXTCTRL=no
1532 DEFAULT_wxUSE_TOGGLEBTN=no
1533 DEFAULT_wxUSE_TOOLBAR=no
1534 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1535 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1536 DEFAULT_wxUSE_TREECTRL=no
1537 DEFAULT_wxUSE_POPUPWIN=no
1538
1539 DEFAULT_wxUSE_UNICODE=no
1540 DEFAULT_wxUSE_WCSRTOMBS=no
1541
1542 DEFAULT_wxUSE_PALETTE=no
1543 DEFAULT_wxUSE_IMAGE=no
1544 DEFAULT_wxUSE_GIF=no
1545 DEFAULT_wxUSE_PCX=no
1546 DEFAULT_wxUSE_PNM=no
1547 DEFAULT_wxUSE_XPM=no
1548else
1549 DEFAULT_wxUSE_UNIVERSAL=no
1550
1551 DEFAULT_wxUSE_THREADS=yes
1552
1553 DEFAULT_wxUSE_SHARED=yes
1554 DEFAULT_wxUSE_SONAME=no
1555 DEFAULT_wxUSE_OPTIMISE=yes
1556 DEFAULT_wxUSE_PROFILE=no
1557 DEFAULT_wxUSE_NO_DEPS=no
1558 DEFAULT_wxUSE_NO_RTTI=yes
1559 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1560 DEFAULT_wxUSE_PERMISSIVE=no
1561 DEFAULT_wxUSE_DEBUG_FLAG=no
1562 DEFAULT_wxUSE_DEBUG_INFO=no
1563 DEFAULT_wxUSE_DEBUG_GDB=no
1564 DEFAULT_wxUSE_MEM_TRACING=no
1565 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1566 DEFAULT_wxUSE_DMALLOC=no
1567 DEFAULT_wxUSE_PRECOMP=yes
1568 DEFAULT_wxUSE_APPLE_IEEE=yes
1569
1570 DEFAULT_wxUSE_LOG=yes
1571 DEFAULT_wxUSE_LOGWINDOW=yes
1572 DEFAULT_wxUSE_LOGGUI=yes
1573
1574 DEFAULT_wxUSE_GUI=yes
1575
1576 DEFAULT_wxUSE_REGEX=yes
1577 DEFAULT_wxUSE_ZLIB=yes
1578 DEFAULT_wxUSE_LIBPNG=yes
1579 DEFAULT_wxUSE_LIBJPEG=yes
1580 DEFAULT_wxUSE_LIBTIFF=yes
1581 DEFAULT_wxUSE_ODBC=no
1582 DEFAULT_wxUSE_FREETYPE=no
1583 DEFAULT_wxUSE_OPENGL=no
1584
1585 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1586 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1587 DEFAULT_wxUSE_STD_IOSTREAM=no
1588 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1589 DEFAULT_wxUSE_DATETIME=yes
1590 DEFAULT_wxUSE_TIMEDATE=no
1591 DEFAULT_wxUSE_TIMER=yes
1592 DEFAULT_wxUSE_STOPWATCH=yes
1593 DEFAULT_wxUSE_FILE=yes
1594 DEFAULT_wxUSE_FFILE=yes
1595 DEFAULT_wxUSE_TEXTFILE=yes
1596 DEFAULT_wxUSE_WAVE=no
1597 DEFAULT_wxUSE_INTL=yes
1598 DEFAULT_wxUSE_CONFIG=yes
1599 DEFAULT_wxUSE_FONTMAP=yes
1600 DEFAULT_wxUSE_STREAMS=yes
1601 DEFAULT_wxUSE_SOCKETS=yes
1602 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1603 DEFAULT_wxUSE_SERIAL=yes
1604 DEFAULT_wxUSE_JOYSTICK=yes
1605 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1606 DEFAULT_wxUSE_LONGLONG=yes
1607 DEFAULT_wxUSE_GEOMETRY=yes
1608
1609 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1610 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1611 DEFAULT_wxUSE_POSTSCRIPT=yes
1612
1613 DEFAULT_wxUSE_X_RESOURCES=no
1614 DEFAULT_wxUSE_CLIPBOARD=yes
1615 DEFAULT_wxUSE_TOOLTIPS=yes
1616 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1617 DEFAULT_wxUSE_DRAGIMAGE=yes
1618 DEFAULT_wxUSE_SPLINES=yes
1619
1620 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1621 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1622 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1623
1624 DEFAULT_wxUSE_PROLOGIO=yes
1625 DEFAULT_wxUSE_RESOURCES=yes
1626 DEFAULT_wxUSE_CONSTRAINTS=yes
1627 DEFAULT_wxUSE_IPC=yes
1628 DEFAULT_wxUSE_HELP=yes
1629 DEFAULT_wxUSE_MS_HTML_HELP=yes
1630 DEFAULT_wxUSE_WXHTML_HELP=yes
1631 DEFAULT_wxUSE_TREELAYOUT=yes
1632 DEFAULT_wxUSE_METAFILE=yes
1633 DEFAULT_wxUSE_MIMETYPE=yes
1634 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1635
1636 DEFAULT_wxUSE_COMMONDLGS=yes
1637 DEFAULT_wxUSE_CHOICEDLG=yes
1638 DEFAULT_wxUSE_COLOURDLG=yes
1639 DEFAULT_wxUSE_DIRDLG=yes
1640 DEFAULT_wxUSE_FILEDLG=yes
1641 DEFAULT_wxUSE_FINDREPLDLG=yes
1642 DEFAULT_wxUSE_FONTDLG=yes
1643 DEFAULT_wxUSE_MSGDLG=yes
1644 DEFAULT_wxUSE_NUMBERDLG=yes
1645 DEFAULT_wxUSE_TEXTDLG=yes
1646 DEFAULT_wxUSE_SPLASH=yes
1647 DEFAULT_wxUSE_STARTUP_TIPS=yes
1648 DEFAULT_wxUSE_PROGRESSDLG=yes
1649 DEFAULT_wxUSE_WIZARDDLG=yes
1650
1651 DEFAULT_wxUSE_MENUS=yes
1652 DEFAULT_wxUSE_MINIFRAME=yes
1653 DEFAULT_wxUSE_HTML=yes
1654 DEFAULT_wxUSE_FILESYSTEM=yes
1655 DEFAULT_wxUSE_FS_INET=yes
1656 DEFAULT_wxUSE_FS_ZIP=yes
1657 DEFAULT_wxUSE_BUSYINFO=yes
1658 DEFAULT_wxUSE_ZIPSTREAM=yes
1659 DEFAULT_wxUSE_VALIDATORS=yes
1660
1661 DEFAULT_wxUSE_ACCEL=yes
1662 DEFAULT_wxUSE_BUTTON=yes
1663 DEFAULT_wxUSE_BMPBUTTON=yes
1664 DEFAULT_wxUSE_CALCTRL=yes
1665 DEFAULT_wxUSE_CARET=yes
1666 DEFAULT_wxUSE_CHECKBOX=yes
1667 DEFAULT_wxUSE_CHECKLST=yes
1668 DEFAULT_wxUSE_CHOICE=yes
1669 DEFAULT_wxUSE_COMBOBOX=yes
1670 DEFAULT_wxUSE_GAUGE=yes
1671 DEFAULT_wxUSE_GRID=yes
1672 DEFAULT_wxUSE_NEW_GRID=yes
1673 DEFAULT_wxUSE_IMAGLIST=yes
1674 DEFAULT_wxUSE_LISTBOX=yes
1675 DEFAULT_wxUSE_LISTCTRL=yes
1676 DEFAULT_wxUSE_NOTEBOOK=yes
1677 DEFAULT_wxUSE_PROPSHEET=yes
1678 DEFAULT_wxUSE_RADIOBOX=yes
1679 DEFAULT_wxUSE_RADIOBTN=yes
1680 DEFAULT_wxUSE_SASH=yes
1681 DEFAULT_wxUSE_SCROLLBAR=yes
1682 DEFAULT_wxUSE_SLIDER=yes
1683 DEFAULT_wxUSE_SPINBTN=yes
1684 DEFAULT_wxUSE_SPINCTRL=yes
1685 DEFAULT_wxUSE_SPLITTER=yes
1686 DEFAULT_wxUSE_STATBMP=yes
1687 DEFAULT_wxUSE_STATBOX=yes
1688 DEFAULT_wxUSE_STATLINE=yes
1689 DEFAULT_wxUSE_STATTEXT=yes
1690 DEFAULT_wxUSE_STATUSBAR=yes
1691 DEFAULT_wxUSE_TABDIALOG=no
1692 DEFAULT_wxUSE_TEXTCTRL=yes
1693 DEFAULT_wxUSE_TOGGLEBTN=yes
1694 DEFAULT_wxUSE_TOOLBAR=yes
1695 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1696 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1697 DEFAULT_wxUSE_TREECTRL=yes
1698 DEFAULT_wxUSE_POPUPWIN=yes
1699
1700 DEFAULT_wxUSE_UNICODE=no
1701 DEFAULT_wxUSE_WCSRTOMBS=no
1702
1703 DEFAULT_wxUSE_PALETTE=yes
1704 DEFAULT_wxUSE_IMAGE=yes
1705 DEFAULT_wxUSE_GIF=yes
1706 DEFAULT_wxUSE_PCX=yes
1707 DEFAULT_wxUSE_PNM=yes
1708 DEFAULT_wxUSE_XPM=yes
1709fi
1710
1711
1712
1713for toolkit in `echo $ALL_TOOLKITS`; do
1714 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1715 if test "x$LINE" != x ; then
1716 has_toolkit_in_cache=1
1717 eval "DEFAULT_$LINE"
1718 eval "CACHE_$toolkit=1"
1719 fi
1720done
1721
1722
1723
1724 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1725echo "configure:1726: checking for --enable-gui" >&5
1726 no_cache=0
1727 # Check whether --enable-gui or --disable-gui was given.
1728if test "${enable_gui+set}" = set; then
1729 enableval="$enable_gui"
1730
1731 if test "$enableval" = yes; then
1732 ac_cv_use_gui='wxUSE_GUI=yes'
1733 else
1734 ac_cv_use_gui='wxUSE_GUI=no'
1735 fi
1736
1737else
1738
1739 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
1746 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1747
1748fi
1749
1750
1751 eval "$ac_cv_use_gui"
1752 if test "$no_cache" != 1; then
1753 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1754 fi
1755
1756 if test "$wxUSE_GUI" = yes; then
1757 echo "$ac_t""yes" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1760 fi
1761
1762
1763if test "$wxUSE_GUI" = "yes"; then
1764
1765
1766 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1767echo "configure:1768: checking for --enable-universal" >&5
1768 no_cache=0
1769 # Check whether --enable-universal or --disable-universal was given.
1770if test "${enable_universal+set}" = set; then
1771 enableval="$enable_universal"
1772
1773 if test "$enableval" = yes; then
1774 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1775 else
1776 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1777 fi
1778
1779else
1780
1781 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1782 if test "x$LINE" != x ; then
1783 eval "DEFAULT_$LINE"
1784 else
1785 no_cache=1
1786 fi
1787
1788 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1789
1790fi
1791
1792
1793 eval "$ac_cv_use_universal"
1794 if test "$no_cache" != 1; then
1795 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1796 fi
1797
1798 if test "$wxUSE_UNIVERSAL" = yes; then
1799 echo "$ac_t""yes" 1>&6
1800 else
1801 echo "$ac_t""no" 1>&6
1802 fi
1803
1804# Check whether --with-gtk or --without-gtk was given.
1805if test "${with_gtk+set}" = set; then
1806 withval="$with_gtk"
1807 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1808fi
1809
1810# Check whether --with-motif or --without-motif was given.
1811if test "${with_motif+set}" = set; then
1812 withval="$with_motif"
1813 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1814fi
1815
1816# Check whether --with-mac or --without-mac was given.
1817if test "${with_mac+set}" = set; then
1818 withval="$with_mac"
1819 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1820fi
1821
1822# Check whether --with-wine or --without-wine was given.
1823if test "${with_wine+set}" = set; then
1824 withval="$with_wine"
1825 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1826fi
1827
1828# Check whether --with-cygwin or --without-cygwin was given.
1829if test "${with_cygwin+set}" = set; then
1830 withval="$with_cygwin"
1831 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1832fi
1833
1834# Check whether --with-mingw or --without-mingw was given.
1835if test "${with_mingw+set}" = set; then
1836 withval="$with_mingw"
1837 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1838fi
1839
1840# Check whether --with-pm or --without-pm was given.
1841if test "${with_pm+set}" = set; then
1842 withval="$with_pm"
1843 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1844fi
1845
1846# Check whether --with-mgl or --without-mgl was given.
1847if test "${with_mgl+set}" = set; then
1848 withval="$with_mgl"
1849 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1850fi
1851
1852
1853# Check whether --enable-gtk2 or --disable-gtk2 was given.
1854if test "${enable_gtk2+set}" = set; then
1855 enableval="$enable_gtk2"
1856 wxUSE_GTK2=1
1857else
1858 wxUSE_GTK2=0
1859fi
1860
1861
1862
1863 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1864echo "configure:1865: checking for --with-libpng" >&5
1865 no_cache=0
1866 # Check whether --with-libpng or --without-libpng was given.
1867if test "${with_libpng+set}" = set; then
1868 withval="$with_libpng"
1869
1870 if test "$withval" = yes; then
1871 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1872 elif test "$withval" = no; then
1873 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1874 elif test "$withval" = sys; then
1875 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1876 elif test "$withval" = builtin; then
1877 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1878 else
1879 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1880 fi
1881
1882else
1883
1884 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1885 if test "x$LINE" != x ; then
1886 eval "DEFAULT_$LINE"
1887 else
1888 no_cache=1
1889 fi
1890
1891 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1892
1893fi
1894
1895
1896 eval "$ac_cv_use_libpng"
1897 if test "$no_cache" != 1; then
1898 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1899 fi
1900
1901 if test "$wxUSE_LIBPNG" = yes; then
1902 echo "$ac_t""yes" 1>&6
1903 elif test "$wxUSE_LIBPNG" = no; then
1904 echo "$ac_t""no" 1>&6
1905 elif test "$wxUSE_LIBPNG" = sys; then
1906 echo "$ac_t""system version" 1>&6
1907 elif test "$wxUSE_LIBPNG" = builtin; then
1908 echo "$ac_t""builtin version" 1>&6
1909 else
1910 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1911 fi
1912
1913
1914 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1915echo "configure:1916: checking for --with-libjpeg" >&5
1916 no_cache=0
1917 # Check whether --with-libjpeg or --without-libjpeg was given.
1918if test "${with_libjpeg+set}" = set; then
1919 withval="$with_libjpeg"
1920
1921 if test "$withval" = yes; then
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1923 elif test "$withval" = no; then
1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1925 elif test "$withval" = sys; then
1926 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1927 elif test "$withval" = builtin; then
1928 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1929 else
1930 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1931 fi
1932
1933else
1934
1935 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1936 if test "x$LINE" != x ; then
1937 eval "DEFAULT_$LINE"
1938 else
1939 no_cache=1
1940 fi
1941
1942 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1943
1944fi
1945
1946
1947 eval "$ac_cv_use_libjpeg"
1948 if test "$no_cache" != 1; then
1949 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1950 fi
1951
1952 if test "$wxUSE_LIBJPEG" = yes; then
1953 echo "$ac_t""yes" 1>&6
1954 elif test "$wxUSE_LIBJPEG" = no; then
1955 echo "$ac_t""no" 1>&6
1956 elif test "$wxUSE_LIBJPEG" = sys; then
1957 echo "$ac_t""system version" 1>&6
1958 elif test "$wxUSE_LIBJPEG" = builtin; then
1959 echo "$ac_t""builtin version" 1>&6
1960 else
1961 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1962 fi
1963
1964
1965 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1966echo "configure:1967: checking for --with-libtiff" >&5
1967 no_cache=0
1968 # Check whether --with-libtiff or --without-libtiff was given.
1969if test "${with_libtiff+set}" = set; then
1970 withval="$with_libtiff"
1971
1972 if test "$withval" = yes; then
1973 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1974 elif test "$withval" = no; then
1975 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1976 elif test "$withval" = sys; then
1977 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1978 elif test "$withval" = builtin; then
1979 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
1980 else
1981 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1982 fi
1983
1984else
1985
1986 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1987 if test "x$LINE" != x ; then
1988 eval "DEFAULT_$LINE"
1989 else
1990 no_cache=1
1991 fi
1992
1993 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1994
1995fi
1996
1997
1998 eval "$ac_cv_use_libtiff"
1999 if test "$no_cache" != 1; then
2000 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2001 fi
2002
2003 if test "$wxUSE_LIBTIFF" = yes; then
2004 echo "$ac_t""yes" 1>&6
2005 elif test "$wxUSE_LIBTIFF" = no; then
2006 echo "$ac_t""no" 1>&6
2007 elif test "$wxUSE_LIBTIFF" = sys; then
2008 echo "$ac_t""system version" 1>&6
2009 elif test "$wxUSE_LIBTIFF" = builtin; then
2010 echo "$ac_t""builtin version" 1>&6
2011 else
2012 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2013 fi
2014
2015
2016 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2017echo "configure:2018: checking for --with-freetype" >&5
2018 no_cache=0
2019 # Check whether --with-freetype or --without-freetype was given.
2020if test "${with_freetype+set}" = set; then
2021 withval="$with_freetype"
2022
2023 if test "$withval" = yes; then
2024 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2025 elif test "$withval" = no; then
2026 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2027 elif test "$withval" = sys; then
2028 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2029 elif test "$withval" = builtin; then
2030 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2031 else
2032 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2033 fi
2034
2035else
2036
2037 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2038 if test "x$LINE" != x ; then
2039 eval "DEFAULT_$LINE"
2040 else
2041 no_cache=1
2042 fi
2043
2044 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2045
2046fi
2047
2048
2049 eval "$ac_cv_use_freetype"
2050 if test "$no_cache" != 1; then
2051 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2052 fi
2053
2054 if test "$wxUSE_FREETYPE" = yes; then
2055 echo "$ac_t""yes" 1>&6
2056 elif test "$wxUSE_FREETYPE" = no; then
2057 echo "$ac_t""no" 1>&6
2058 elif test "$wxUSE_FREETYPE" = sys; then
2059 echo "$ac_t""system version" 1>&6
2060 elif test "$wxUSE_FREETYPE" = builtin; then
2061 echo "$ac_t""builtin version" 1>&6
2062 else
2063 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2064 fi
2065
2066
2067 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2068echo "configure:2069: checking for --with-opengl" >&5
2069 no_cache=0
2070 # Check whether --with-opengl or --without-opengl was given.
2071if test "${with_opengl+set}" = set; then
2072 withval="$with_opengl"
2073
2074 if test "$withval" = yes; then
2075 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2076 else
2077 ac_cv_use_opengl='wxUSE_OPENGL=no'
2078 fi
2079
2080else
2081
2082 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2083 if test "x$LINE" != x ; then
2084 eval "DEFAULT_$LINE"
2085 else
2086 no_cache=1
2087 fi
2088
2089 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2090
2091fi
2092
2093
2094 eval "$ac_cv_use_opengl"
2095 if test "$no_cache" != 1; then
2096 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2097 fi
2098
2099 if test "$wxUSE_OPENGL" = yes; then
2100 echo "$ac_t""yes" 1>&6
2101 else
2102 echo "$ac_t""no" 1>&6
2103 fi
2104
2105
2106fi
2107
2108
2109 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2110echo "configure:2111: checking for --with-dmalloc" >&5
2111 no_cache=0
2112 # Check whether --with-dmalloc or --without-dmalloc was given.
2113if test "${with_dmalloc+set}" = set; then
2114 withval="$with_dmalloc"
2115
2116 if test "$withval" = yes; then
2117 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2118 else
2119 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2120 fi
2121
2122else
2123
2124 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2132
2133fi
2134
2135
2136 eval "$ac_cv_use_dmalloc"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_DMALLOC" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147
2148 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2149echo "configure:2150: checking for --with-regex" >&5
2150 no_cache=0
2151 # Check whether --with-regex or --without-regex was given.
2152if test "${with_regex+set}" = set; then
2153 withval="$with_regex"
2154
2155 if test "$withval" = yes; then
2156 ac_cv_use_regex='wxUSE_REGEX=yes'
2157 elif test "$withval" = no; then
2158 ac_cv_use_regex='wxUSE_REGEX=no'
2159 elif test "$withval" = sys; then
2160 ac_cv_use_regex='wxUSE_REGEX=sys'
2161 elif test "$withval" = builtin; then
2162 ac_cv_use_regex='wxUSE_REGEX=builtin'
2163 else
2164 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2165 fi
2166
2167else
2168
2169 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
2176 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2177
2178fi
2179
2180
2181 eval "$ac_cv_use_regex"
2182 if test "$no_cache" != 1; then
2183 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2184 fi
2185
2186 if test "$wxUSE_REGEX" = yes; then
2187 echo "$ac_t""yes" 1>&6
2188 elif test "$wxUSE_REGEX" = no; then
2189 echo "$ac_t""no" 1>&6
2190 elif test "$wxUSE_REGEX" = sys; then
2191 echo "$ac_t""system version" 1>&6
2192 elif test "$wxUSE_REGEX" = builtin; then
2193 echo "$ac_t""builtin version" 1>&6
2194 else
2195 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2196 fi
2197
2198
2199 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2200echo "configure:2201: checking for --with-zlib" >&5
2201 no_cache=0
2202 # Check whether --with-zlib or --without-zlib was given.
2203if test "${with_zlib+set}" = set; then
2204 withval="$with_zlib"
2205
2206 if test "$withval" = yes; then
2207 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2208 elif test "$withval" = no; then
2209 ac_cv_use_zlib='wxUSE_ZLIB=no'
2210 elif test "$withval" = sys; then
2211 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2212 elif test "$withval" = builtin; then
2213 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2214 else
2215 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2216 fi
2217
2218else
2219
2220 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2221 if test "x$LINE" != x ; then
2222 eval "DEFAULT_$LINE"
2223 else
2224 no_cache=1
2225 fi
2226
2227 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2228
2229fi
2230
2231
2232 eval "$ac_cv_use_zlib"
2233 if test "$no_cache" != 1; then
2234 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2235 fi
2236
2237 if test "$wxUSE_ZLIB" = yes; then
2238 echo "$ac_t""yes" 1>&6
2239 elif test "$wxUSE_ZLIB" = no; then
2240 echo "$ac_t""no" 1>&6
2241 elif test "$wxUSE_ZLIB" = sys; then
2242 echo "$ac_t""system version" 1>&6
2243 elif test "$wxUSE_ZLIB" = builtin; then
2244 echo "$ac_t""builtin version" 1>&6
2245 else
2246 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2247 fi
2248
2249
2250 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2251echo "configure:2252: checking for --with-odbc" >&5
2252 no_cache=0
2253 # Check whether --with-odbc or --without-odbc was given.
2254if test "${with_odbc+set}" = set; then
2255 withval="$with_odbc"
2256
2257 if test "$withval" = yes; then
2258 ac_cv_use_odbc='wxUSE_ODBC=yes'
2259 else
2260 ac_cv_use_odbc='wxUSE_ODBC=no'
2261 fi
2262
2263else
2264
2265 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
2272 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2273
2274fi
2275
2276
2277 eval "$ac_cv_use_odbc"
2278 if test "$no_cache" != 1; then
2279 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2280 fi
2281
2282 if test "$wxUSE_ODBC" = yes; then
2283 echo "$ac_t""yes" 1>&6
2284 else
2285 echo "$ac_t""no" 1>&6
2286 fi
2287
2288
2289
2290
2291 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2292echo "configure:2293: checking for --enable-shared" >&5
2293 no_cache=0
2294 # Check whether --enable-shared or --disable-shared was given.
2295if test "${enable_shared+set}" = set; then
2296 enableval="$enable_shared"
2297
2298 if test "$enableval" = yes; then
2299 ac_cv_use_shared='wxUSE_SHARED=yes'
2300 else
2301 ac_cv_use_shared='wxUSE_SHARED=no'
2302 fi
2303
2304else
2305
2306 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2307 if test "x$LINE" != x ; then
2308 eval "DEFAULT_$LINE"
2309 else
2310 no_cache=1
2311 fi
2312
2313 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2314
2315fi
2316
2317
2318 eval "$ac_cv_use_shared"
2319 if test "$no_cache" != 1; then
2320 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2321 fi
2322
2323 if test "$wxUSE_SHARED" = yes; then
2324 echo "$ac_t""yes" 1>&6
2325 else
2326 echo "$ac_t""no" 1>&6
2327 fi
2328
2329
2330 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2331echo "configure:2332: checking for --enable-soname" >&5
2332 no_cache=0
2333 # Check whether --enable-soname or --disable-soname was given.
2334if test "${enable_soname+set}" = set; then
2335 enableval="$enable_soname"
2336
2337 if test "$enableval" = yes; then
2338 ac_cv_use_soname='wxUSE_SONAME=yes'
2339 else
2340 ac_cv_use_soname='wxUSE_SONAME=no'
2341 fi
2342
2343else
2344
2345 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2346 if test "x$LINE" != x ; then
2347 eval "DEFAULT_$LINE"
2348 else
2349 no_cache=1
2350 fi
2351
2352 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2353
2354fi
2355
2356
2357 eval "$ac_cv_use_soname"
2358 if test "$no_cache" != 1; then
2359 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2360 fi
2361
2362 if test "$wxUSE_SONAME" = yes; then
2363 echo "$ac_t""yes" 1>&6
2364 else
2365 echo "$ac_t""no" 1>&6
2366 fi
2367
2368
2369 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2370echo "configure:2371: checking for --enable-optimise" >&5
2371 no_cache=0
2372 # Check whether --enable-optimise or --disable-optimise was given.
2373if test "${enable_optimise+set}" = set; then
2374 enableval="$enable_optimise"
2375
2376 if test "$enableval" = yes; then
2377 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2378 else
2379 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2380 fi
2381
2382else
2383
2384 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2385 if test "x$LINE" != x ; then
2386 eval "DEFAULT_$LINE"
2387 else
2388 no_cache=1
2389 fi
2390
2391 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2392
2393fi
2394
2395
2396 eval "$ac_cv_use_optimise"
2397 if test "$no_cache" != 1; then
2398 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2399 fi
2400
2401 if test "$wxUSE_OPTIMISE" = yes; then
2402 echo "$ac_t""yes" 1>&6
2403 else
2404 echo "$ac_t""no" 1>&6
2405 fi
2406
2407
2408 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2409echo "configure:2410: checking for --enable-debug" >&5
2410 no_cache=0
2411 # Check whether --enable-debug or --disable-debug was given.
2412if test "${enable_debug+set}" = set; then
2413 enableval="$enable_debug"
2414
2415 if test "$enableval" = yes; then
2416 ac_cv_use_debug='wxUSE_DEBUG=yes'
2417 else
2418 ac_cv_use_debug='wxUSE_DEBUG=no'
2419 fi
2420
2421else
2422
2423 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2424 if test "x$LINE" != x ; then
2425 eval "DEFAULT_$LINE"
2426 else
2427 no_cache=1
2428 fi
2429
2430 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2431
2432fi
2433
2434
2435 eval "$ac_cv_use_debug"
2436 if test "$no_cache" != 1; then
2437 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2438 fi
2439
2440 if test "$wxUSE_DEBUG" = yes; then
2441 echo "$ac_t""yes" 1>&6
2442 else
2443 echo "$ac_t""no" 1>&6
2444 fi
2445
2446
2447
2448 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2449echo "configure:2450: checking for --enable-precomp" >&5
2450 no_cache=0
2451 # Check whether --enable-precomp or --disable-precomp was given.
2452if test "${enable_precomp+set}" = set; then
2453 enableval="$enable_precomp"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2457 else
2458 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2471
2472fi
2473
2474
2475 eval "$ac_cv_use_precomp"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_PRECOMP" = yes; then
2481 echo "$ac_t""yes" 1>&6
2482 else
2483 echo "$ac_t""no" 1>&6
2484 fi
2485
2486
2487if test "$wxUSE_DEBUG" = "yes"; then
2488 DEFAULT_wxUSE_DEBUG_FLAG=yes
2489 DEFAULT_wxUSE_DEBUG_INFO=yes
2490elif test "$wxUSE_DEBUG" = "no"; then
2491 DEFAULT_wxUSE_DEBUG_FLAG=no
2492 DEFAULT_wxUSE_DEBUG_INFO=no
2493fi
2494
2495
2496 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2497echo "configure:2498: checking for --enable-debug_flag" >&5
2498 no_cache=0
2499 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2500if test "${enable_debug_flag+set}" = set; then
2501 enableval="$enable_debug_flag"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2505 else
2506 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_DEBUG_FLAG" ${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_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2519
2520fi
2521
2522
2523 eval "$ac_cv_use_debug_flag"
2524 if test "$no_cache" != 1; then
2525 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2526 fi
2527
2528 if test "$wxUSE_DEBUG_FLAG" = yes; then
2529 echo "$ac_t""yes" 1>&6
2530 else
2531 echo "$ac_t""no" 1>&6
2532 fi
2533
2534
2535 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2536echo "configure:2537: checking for --enable-debug_info" >&5
2537 no_cache=0
2538 # Check whether --enable-debug_info or --disable-debug_info was given.
2539if test "${enable_debug_info+set}" = set; then
2540 enableval="$enable_debug_info"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2544 else
2545 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2546 fi
2547
2548else
2549
2550 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2558
2559fi
2560
2561
2562 eval "$ac_cv_use_debug_info"
2563 if test "$no_cache" != 1; then
2564 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2565 fi
2566
2567 if test "$wxUSE_DEBUG_INFO" = yes; then
2568 echo "$ac_t""yes" 1>&6
2569 else
2570 echo "$ac_t""no" 1>&6
2571 fi
2572
2573
2574 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2575echo "configure:2576: checking for --enable-debug_gdb" >&5
2576 no_cache=0
2577 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2578if test "${enable_debug_gdb+set}" = set; then
2579 enableval="$enable_debug_gdb"
2580
2581 if test "$enableval" = yes; then
2582 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2583 else
2584 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2585 fi
2586
2587else
2588
2589 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2590 if test "x$LINE" != x ; then
2591 eval "DEFAULT_$LINE"
2592 else
2593 no_cache=1
2594 fi
2595
2596 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2597
2598fi
2599
2600
2601 eval "$ac_cv_use_debug_gdb"
2602 if test "$no_cache" != 1; then
2603 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2604 fi
2605
2606 if test "$wxUSE_DEBUG_GDB" = yes; then
2607 echo "$ac_t""yes" 1>&6
2608 else
2609 echo "$ac_t""no" 1>&6
2610 fi
2611
2612
2613 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2614echo "configure:2615: checking for --enable-debug_cntxt" >&5
2615 no_cache=0
2616 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2617if test "${enable_debug_cntxt+set}" = set; then
2618 enableval="$enable_debug_cntxt"
2619
2620 if test "$enableval" = yes; then
2621 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2622 else
2623 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2624 fi
2625
2626else
2627
2628 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2629 if test "x$LINE" != x ; then
2630 eval "DEFAULT_$LINE"
2631 else
2632 no_cache=1
2633 fi
2634
2635 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2636
2637fi
2638
2639
2640 eval "$ac_cv_use_debug_cntxt"
2641 if test "$no_cache" != 1; then
2642 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2643 fi
2644
2645 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2646 echo "$ac_t""yes" 1>&6
2647 else
2648 echo "$ac_t""no" 1>&6
2649 fi
2650
2651
2652 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2653echo "configure:2654: checking for --enable-mem_tracing" >&5
2654 no_cache=0
2655 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2656if test "${enable_mem_tracing+set}" = set; then
2657 enableval="$enable_mem_tracing"
2658
2659 if test "$enableval" = yes; then
2660 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2661 else
2662 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2663 fi
2664
2665else
2666
2667 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2668 if test "x$LINE" != x ; then
2669 eval "DEFAULT_$LINE"
2670 else
2671 no_cache=1
2672 fi
2673
2674 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2675
2676fi
2677
2678
2679 eval "$ac_cv_use_mem_tracing"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_MEM_TRACING" = yes; then
2685 echo "$ac_t""yes" 1>&6
2686 else
2687 echo "$ac_t""no" 1>&6
2688 fi
2689
2690
2691 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2692echo "configure:2693: checking for --enable-profile" >&5
2693 no_cache=0
2694 # Check whether --enable-profile or --disable-profile was given.
2695if test "${enable_profile+set}" = set; then
2696 enableval="$enable_profile"
2697
2698 if test "$enableval" = yes; then
2699 ac_cv_use_profile='wxUSE_PROFILE=yes'
2700 else
2701 ac_cv_use_profile='wxUSE_PROFILE=no'
2702 fi
2703
2704else
2705
2706 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2707 if test "x$LINE" != x ; then
2708 eval "DEFAULT_$LINE"
2709 else
2710 no_cache=1
2711 fi
2712
2713 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2714
2715fi
2716
2717
2718 eval "$ac_cv_use_profile"
2719 if test "$no_cache" != 1; then
2720 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2721 fi
2722
2723 if test "$wxUSE_PROFILE" = yes; then
2724 echo "$ac_t""yes" 1>&6
2725 else
2726 echo "$ac_t""no" 1>&6
2727 fi
2728
2729
2730 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2731echo "configure:2732: checking for --enable-no_rtti" >&5
2732 no_cache=0
2733 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2734if test "${enable_no_rtti+set}" = set; then
2735 enableval="$enable_no_rtti"
2736
2737 if test "$enableval" = yes; then
2738 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2739 else
2740 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2741 fi
2742
2743else
2744
2745 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2753
2754fi
2755
2756
2757 eval "$ac_cv_use_no_rtti"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_NO_RTTI" = yes; then
2763 echo "$ac_t""yes" 1>&6
2764 else
2765 echo "$ac_t""no" 1>&6
2766 fi
2767
2768
2769 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2770echo "configure:2771: checking for --enable-no_exceptions" >&5
2771 no_cache=0
2772 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2773if test "${enable_no_exceptions+set}" = set; then
2774 enableval="$enable_no_exceptions"
2775
2776 if test "$enableval" = yes; then
2777 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2778 else
2779 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2780 fi
2781
2782else
2783
2784 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2792
2793fi
2794
2795
2796 eval "$ac_cv_use_no_exceptions"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2802 echo "$ac_t""yes" 1>&6
2803 else
2804 echo "$ac_t""no" 1>&6
2805 fi
2806
2807
2808 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2809echo "configure:2810: checking for --enable-permissive" >&5
2810 no_cache=0
2811 # Check whether --enable-permissive or --disable-permissive was given.
2812if test "${enable_permissive+set}" = set; then
2813 enableval="$enable_permissive"
2814
2815 if test "$enableval" = yes; then
2816 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2817 else
2818 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2819 fi
2820
2821else
2822
2823 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2824 if test "x$LINE" != x ; then
2825 eval "DEFAULT_$LINE"
2826 else
2827 no_cache=1
2828 fi
2829
2830 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2831
2832fi
2833
2834
2835 eval "$ac_cv_use_permissive"
2836 if test "$no_cache" != 1; then
2837 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2838 fi
2839
2840 if test "$wxUSE_PERMISSIVE" = yes; then
2841 echo "$ac_t""yes" 1>&6
2842 else
2843 echo "$ac_t""no" 1>&6
2844 fi
2845
2846
2847 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2848echo "configure:2849: checking for --enable-no_deps" >&5
2849 no_cache=0
2850 # Check whether --enable-no_deps or --disable-no_deps was given.
2851if test "${enable_no_deps+set}" = set; then
2852 enableval="$enable_no_deps"
2853
2854 if test "$enableval" = yes; then
2855 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2856 else
2857 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2858 fi
2859
2860else
2861
2862 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2870
2871fi
2872
2873
2874 eval "$ac_cv_use_no_deps"
2875 if test "$no_cache" != 1; then
2876 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2877 fi
2878
2879 if test "$wxUSE_NO_DEPS" = yes; then
2880 echo "$ac_t""yes" 1>&6
2881 else
2882 echo "$ac_t""no" 1>&6
2883 fi
2884
2885
2886
2887 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2888echo "configure:2889: checking for --enable-compat20" >&5
2889 no_cache=0
2890 # Check whether --enable-compat20 or --disable-compat20 was given.
2891if test "${enable_compat20+set}" = set; then
2892 enableval="$enable_compat20"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2896 else
2897 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2910
2911fi
2912
2913
2914 eval "$ac_cv_use_compat20"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2927echo "configure:2928: checking for --enable-compat22" >&5
2928 no_cache=0
2929 # Check whether --enable-compat22 or --disable-compat22 was given.
2930if test "${enable_compat22+set}" = set; then
2931 enableval="$enable_compat22"
2932
2933 if test "$enableval" = yes; then
2934 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2935 else
2936 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2937 fi
2938
2939else
2940
2941 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2949
2950fi
2951
2952
2953 eval "$ac_cv_use_compat22"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2959 echo "$ac_t""yes" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965
2966
2967 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2968echo "configure:2969: checking for --enable-intl" >&5
2969 no_cache=0
2970 # Check whether --enable-intl or --disable-intl was given.
2971if test "${enable_intl+set}" = set; then
2972 enableval="$enable_intl"
2973
2974 if test "$enableval" = yes; then
2975 ac_cv_use_intl='wxUSE_INTL=yes'
2976 else
2977 ac_cv_use_intl='wxUSE_INTL=no'
2978 fi
2979
2980else
2981
2982 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2983 if test "x$LINE" != x ; then
2984 eval "DEFAULT_$LINE"
2985 else
2986 no_cache=1
2987 fi
2988
2989 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2990
2991fi
2992
2993
2994 eval "$ac_cv_use_intl"
2995 if test "$no_cache" != 1; then
2996 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2997 fi
2998
2999 if test "$wxUSE_INTL" = yes; then
3000 echo "$ac_t""yes" 1>&6
3001 else
3002 echo "$ac_t""no" 1>&6
3003 fi
3004
3005
3006 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3007echo "configure:3008: checking for --enable-config" >&5
3008 no_cache=0
3009 # Check whether --enable-config or --disable-config was given.
3010if test "${enable_config+set}" = set; then
3011 enableval="$enable_config"
3012
3013 if test "$enableval" = yes; then
3014 ac_cv_use_config='wxUSE_CONFIG=yes'
3015 else
3016 ac_cv_use_config='wxUSE_CONFIG=no'
3017 fi
3018
3019else
3020
3021 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3022 if test "x$LINE" != x ; then
3023 eval "DEFAULT_$LINE"
3024 else
3025 no_cache=1
3026 fi
3027
3028 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3029
3030fi
3031
3032
3033 eval "$ac_cv_use_config"
3034 if test "$no_cache" != 1; then
3035 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3036 fi
3037
3038 if test "$wxUSE_CONFIG" = yes; then
3039 echo "$ac_t""yes" 1>&6
3040 else
3041 echo "$ac_t""no" 1>&6
3042 fi
3043
3044
3045
3046 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3047echo "configure:3048: checking for --enable-sockets" >&5
3048 no_cache=0
3049 # Check whether --enable-sockets or --disable-sockets was given.
3050if test "${enable_sockets+set}" = set; then
3051 enableval="$enable_sockets"
3052
3053 if test "$enableval" = yes; then
3054 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3055 else
3056 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3057 fi
3058
3059else
3060
3061 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3069
3070fi
3071
3072
3073 eval "$ac_cv_use_sockets"
3074 if test "$no_cache" != 1; then
3075 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3076 fi
3077
3078 if test "$wxUSE_SOCKETS" = yes; then
3079 echo "$ac_t""yes" 1>&6
3080 else
3081 echo "$ac_t""no" 1>&6
3082 fi
3083
3084
3085
3086 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3087echo "configure:3088: checking for --enable-ipc" >&5
3088 no_cache=0
3089 # Check whether --enable-ipc or --disable-ipc was given.
3090if test "${enable_ipc+set}" = set; then
3091 enableval="$enable_ipc"
3092
3093 if test "$enableval" = yes; then
3094 ac_cv_use_ipc='wxUSE_IPC=yes'
3095 else
3096 ac_cv_use_ipc='wxUSE_IPC=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3109
3110fi
3111
3112
3113 eval "$ac_cv_use_ipc"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_IPC" = yes; then
3119 echo "$ac_t""yes" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3122 fi
3123
3124
3125
3126 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3127echo "configure:3128: checking for --enable-cmdline" >&5
3128 no_cache=0
3129 # Check whether --enable-cmdline or --disable-cmdline was given.
3130if test "${enable_cmdline+set}" = set; then
3131 enableval="$enable_cmdline"
3132
3133 if test "$enableval" = yes; then
3134 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3135 else
3136 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3137 fi
3138
3139else
3140
3141 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3149
3150fi
3151
3152
3153 eval "$ac_cv_use_cmdline"
3154 if test "$no_cache" != 1; then
3155 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3156 fi
3157
3158 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3159 echo "$ac_t""yes" 1>&6
3160 else
3161 echo "$ac_t""no" 1>&6
3162 fi
3163
3164
3165 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3166echo "configure:3167: checking for --enable-datetime" >&5
3167 no_cache=0
3168 # Check whether --enable-datetime or --disable-datetime was given.
3169if test "${enable_datetime+set}" = set; then
3170 enableval="$enable_datetime"
3171
3172 if test "$enableval" = yes; then
3173 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3174 else
3175 ac_cv_use_datetime='wxUSE_DATETIME=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3188
3189fi
3190
3191
3192 eval "$ac_cv_use_datetime"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DATETIME" = yes; then
3198 echo "$ac_t""yes" 1>&6
3199 else
3200 echo "$ac_t""no" 1>&6
3201 fi
3202
3203
3204 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3205echo "configure:3206: checking for --enable-timedate" >&5
3206 no_cache=0
3207 # Check whether --enable-timedate or --disable-timedate was given.
3208if test "${enable_timedate+set}" = set; then
3209 enableval="$enable_timedate"
3210
3211 if test "$enableval" = yes; then
3212 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3213 else
3214 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3215 fi
3216
3217else
3218
3219 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3220 if test "x$LINE" != x ; then
3221 eval "DEFAULT_$LINE"
3222 else
3223 no_cache=1
3224 fi
3225
3226 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3227
3228fi
3229
3230
3231 eval "$ac_cv_use_timedate"
3232 if test "$no_cache" != 1; then
3233 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3234 fi
3235
3236 if test "$wxUSE_TIMEDATE" = yes; then
3237 echo "$ac_t""yes" 1>&6
3238 else
3239 echo "$ac_t""no" 1>&6
3240 fi
3241
3242
3243 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3244echo "configure:3245: checking for --enable-stopwatch" >&5
3245 no_cache=0
3246 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3247if test "${enable_stopwatch+set}" = set; then
3248 enableval="$enable_stopwatch"
3249
3250 if test "$enableval" = yes; then
3251 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3252 else
3253 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3254 fi
3255
3256else
3257
3258 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3259 if test "x$LINE" != x ; then
3260 eval "DEFAULT_$LINE"
3261 else
3262 no_cache=1
3263 fi
3264
3265 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3266
3267fi
3268
3269
3270 eval "$ac_cv_use_stopwatch"
3271 if test "$no_cache" != 1; then
3272 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3273 fi
3274
3275 if test "$wxUSE_STOPWATCH" = yes; then
3276 echo "$ac_t""yes" 1>&6
3277 else
3278 echo "$ac_t""no" 1>&6
3279 fi
3280
3281
3282 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3283echo "configure:3284: checking for --enable-dialupman" >&5
3284 no_cache=0
3285 # Check whether --enable-dialupman or --disable-dialupman was given.
3286if test "${enable_dialupman+set}" = set; then
3287 enableval="$enable_dialupman"
3288
3289 if test "$enableval" = yes; then
3290 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3291 else
3292 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3293 fi
3294
3295else
3296
3297 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3298 if test "x$LINE" != x ; then
3299 eval "DEFAULT_$LINE"
3300 else
3301 no_cache=1
3302 fi
3303
3304 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3305
3306fi
3307
3308
3309 eval "$ac_cv_use_dialupman"
3310 if test "$no_cache" != 1; then
3311 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3312 fi
3313
3314 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3315 echo "$ac_t""yes" 1>&6
3316 else
3317 echo "$ac_t""no" 1>&6
3318 fi
3319
3320
3321 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3322echo "configure:3323: checking for --enable-apple_ieee" >&5
3323 no_cache=0
3324 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3325if test "${enable_apple_ieee+set}" = set; then
3326 enableval="$enable_apple_ieee"
3327
3328 if test "$enableval" = yes; then
3329 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3330 else
3331 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3332 fi
3333
3334else
3335
3336 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3337 if test "x$LINE" != x ; then
3338 eval "DEFAULT_$LINE"
3339 else
3340 no_cache=1
3341 fi
3342
3343 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3344
3345fi
3346
3347
3348 eval "$ac_cv_use_apple_ieee"
3349 if test "$no_cache" != 1; then
3350 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3351 fi
3352
3353 if test "$wxUSE_APPLE_IEEE" = yes; then
3354 echo "$ac_t""yes" 1>&6
3355 else
3356 echo "$ac_t""no" 1>&6
3357 fi
3358
3359
3360 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3361echo "configure:3362: checking for --enable-timer" >&5
3362 no_cache=0
3363 # Check whether --enable-timer or --disable-timer was given.
3364if test "${enable_timer+set}" = set; then
3365 enableval="$enable_timer"
3366
3367 if test "$enableval" = yes; then
3368 ac_cv_use_timer='wxUSE_TIMER=yes'
3369 else
3370 ac_cv_use_timer='wxUSE_TIMER=no'
3371 fi
3372
3373else
3374
3375 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3376 if test "x$LINE" != x ; then
3377 eval "DEFAULT_$LINE"
3378 else
3379 no_cache=1
3380 fi
3381
3382 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3383
3384fi
3385
3386
3387 eval "$ac_cv_use_timer"
3388 if test "$no_cache" != 1; then
3389 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3390 fi
3391
3392 if test "$wxUSE_TIMER" = yes; then
3393 echo "$ac_t""yes" 1>&6
3394 else
3395 echo "$ac_t""no" 1>&6
3396 fi
3397
3398
3399 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3400echo "configure:3401: checking for --enable-wave" >&5
3401 no_cache=0
3402 # Check whether --enable-wave or --disable-wave was given.
3403if test "${enable_wave+set}" = set; then
3404 enableval="$enable_wave"
3405
3406 if test "$enableval" = yes; then
3407 ac_cv_use_wave='wxUSE_WAVE=yes'
3408 else
3409 ac_cv_use_wave='wxUSE_WAVE=no'
3410 fi
3411
3412else
3413
3414 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3415 if test "x$LINE" != x ; then
3416 eval "DEFAULT_$LINE"
3417 else
3418 no_cache=1
3419 fi
3420
3421 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3422
3423fi
3424
3425
3426 eval "$ac_cv_use_wave"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_WAVE" = yes; then
3432 echo "$ac_t""yes" 1>&6
3433 else
3434 echo "$ac_t""no" 1>&6
3435 fi
3436
3437
3438 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3439echo "configure:3440: checking for --enable-fraction" >&5
3440 no_cache=0
3441 # Check whether --enable-fraction or --disable-fraction was given.
3442if test "${enable_fraction+set}" = set; then
3443 enableval="$enable_fraction"
3444
3445 if test "$enableval" = yes; then
3446 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3447 else
3448 ac_cv_use_fraction='wxUSE_FRACTION=no'
3449 fi
3450
3451else
3452
3453 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3454 if test "x$LINE" != x ; then
3455 eval "DEFAULT_$LINE"
3456 else
3457 no_cache=1
3458 fi
3459
3460 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3461
3462fi
3463
3464
3465 eval "$ac_cv_use_fraction"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_FRACTION" = yes; then
3471 echo "$ac_t""yes" 1>&6
3472 else
3473 echo "$ac_t""no" 1>&6
3474 fi
3475
3476
3477 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3478echo "configure:3479: checking for --enable-dynlib" >&5
3479 no_cache=0
3480 # Check whether --enable-dynlib or --disable-dynlib was given.
3481if test "${enable_dynlib+set}" = set; then
3482 enableval="$enable_dynlib"
3483
3484 if test "$enableval" = yes; then
3485 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3486 else
3487 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3488 fi
3489
3490else
3491
3492 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3493 if test "x$LINE" != x ; then
3494 eval "DEFAULT_$LINE"
3495 else
3496 no_cache=1
3497 fi
3498
3499 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3500
3501fi
3502
3503
3504 eval "$ac_cv_use_dynlib"
3505 if test "$no_cache" != 1; then
3506 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3507 fi
3508
3509 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3510 echo "$ac_t""yes" 1>&6
3511 else
3512 echo "$ac_t""no" 1>&6
3513 fi
3514
3515
3516 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3517echo "configure:3518: checking for --enable-longlong" >&5
3518 no_cache=0
3519 # Check whether --enable-longlong or --disable-longlong was given.
3520if test "${enable_longlong+set}" = set; then
3521 enableval="$enable_longlong"
3522
3523 if test "$enableval" = yes; then
3524 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3525 else
3526 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3527 fi
3528
3529else
3530
3531 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3532 if test "x$LINE" != x ; then
3533 eval "DEFAULT_$LINE"
3534 else
3535 no_cache=1
3536 fi
3537
3538 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3539
3540fi
3541
3542
3543 eval "$ac_cv_use_longlong"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_LONGLONG" = yes; then
3549 echo "$ac_t""yes" 1>&6
3550 else
3551 echo "$ac_t""no" 1>&6
3552 fi
3553
3554
3555 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3556echo "configure:3557: checking for --enable-geometry" >&5
3557 no_cache=0
3558 # Check whether --enable-geometry or --disable-geometry was given.
3559if test "${enable_geometry+set}" = set; then
3560 enableval="$enable_geometry"
3561
3562 if test "$enableval" = yes; then
3563 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3564 else
3565 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3566 fi
3567
3568else
3569
3570 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3571 if test "x$LINE" != x ; then
3572 eval "DEFAULT_$LINE"
3573 else
3574 no_cache=1
3575 fi
3576
3577 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3578
3579fi
3580
3581
3582 eval "$ac_cv_use_geometry"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_GEOMETRY" = yes; then
3588 echo "$ac_t""yes" 1>&6
3589 else
3590 echo "$ac_t""no" 1>&6
3591 fi
3592
3593
3594 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3595echo "configure:3596: checking for --enable-log" >&5
3596 no_cache=0
3597 # Check whether --enable-log or --disable-log was given.
3598if test "${enable_log+set}" = set; then
3599 enableval="$enable_log"
3600
3601 if test "$enableval" = yes; then
3602 ac_cv_use_log='wxUSE_LOG=yes'
3603 else
3604 ac_cv_use_log='wxUSE_LOG=no'
3605 fi
3606
3607else
3608
3609 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3610 if test "x$LINE" != x ; then
3611 eval "DEFAULT_$LINE"
3612 else
3613 no_cache=1
3614 fi
3615
3616 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3617
3618fi
3619
3620
3621 eval "$ac_cv_use_log"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$wxUSE_LOG" = yes; then
3627 echo "$ac_t""yes" 1>&6
3628 else
3629 echo "$ac_t""no" 1>&6
3630 fi
3631
3632
3633 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3634echo "configure:3635: checking for --enable-streams" >&5
3635 no_cache=0
3636 # Check whether --enable-streams or --disable-streams was given.
3637if test "${enable_streams+set}" = set; then
3638 enableval="$enable_streams"
3639
3640 if test "$enableval" = yes; then
3641 ac_cv_use_streams='wxUSE_STREAMS=yes'
3642 else
3643 ac_cv_use_streams='wxUSE_STREAMS=no'
3644 fi
3645
3646else
3647
3648 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3649 if test "x$LINE" != x ; then
3650 eval "DEFAULT_$LINE"
3651 else
3652 no_cache=1
3653 fi
3654
3655 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3656
3657fi
3658
3659
3660 eval "$ac_cv_use_streams"
3661 if test "$no_cache" != 1; then
3662 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3663 fi
3664
3665 if test "$wxUSE_STREAMS" = yes; then
3666 echo "$ac_t""yes" 1>&6
3667 else
3668 echo "$ac_t""no" 1>&6
3669 fi
3670
3671
3672 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3673echo "configure:3674: checking for --enable-file" >&5
3674 no_cache=0
3675 # Check whether --enable-file or --disable-file was given.
3676if test "${enable_file+set}" = set; then
3677 enableval="$enable_file"
3678
3679 if test "$enableval" = yes; then
3680 ac_cv_use_file='wxUSE_FILE=yes'
3681 else
3682 ac_cv_use_file='wxUSE_FILE=no'
3683 fi
3684
3685else
3686
3687 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3695
3696fi
3697
3698
3699 eval "$ac_cv_use_file"
3700 if test "$no_cache" != 1; then
3701 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3702 fi
3703
3704 if test "$wxUSE_FILE" = yes; then
3705 echo "$ac_t""yes" 1>&6
3706 else
3707 echo "$ac_t""no" 1>&6
3708 fi
3709
3710
3711 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3712echo "configure:3713: checking for --enable-ffile" >&5
3713 no_cache=0
3714 # Check whether --enable-ffile or --disable-ffile was given.
3715if test "${enable_ffile+set}" = set; then
3716 enableval="$enable_ffile"
3717
3718 if test "$enableval" = yes; then
3719 ac_cv_use_ffile='wxUSE_FFILE=yes'
3720 else
3721 ac_cv_use_ffile='wxUSE_FFILE=no'
3722 fi
3723
3724else
3725
3726 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3734
3735fi
3736
3737
3738 eval "$ac_cv_use_ffile"
3739 if test "$no_cache" != 1; then
3740 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3741 fi
3742
3743 if test "$wxUSE_FFILE" = yes; then
3744 echo "$ac_t""yes" 1>&6
3745 else
3746 echo "$ac_t""no" 1>&6
3747 fi
3748
3749
3750 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3751echo "configure:3752: checking for --enable-textfile" >&5
3752 no_cache=0
3753 # Check whether --enable-textfile or --disable-textfile was given.
3754if test "${enable_textfile+set}" = set; then
3755 enableval="$enable_textfile"
3756
3757 if test "$enableval" = yes; then
3758 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3759 else
3760 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3761 fi
3762
3763else
3764
3765 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3766 if test "x$LINE" != x ; then
3767 eval "DEFAULT_$LINE"
3768 else
3769 no_cache=1
3770 fi
3771
3772 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3773
3774fi
3775
3776
3777 eval "$ac_cv_use_textfile"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_TEXTFILE" = yes; then
3783 echo "$ac_t""yes" 1>&6
3784 else
3785 echo "$ac_t""no" 1>&6
3786 fi
3787
3788
3789 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3790echo "configure:3791: checking for --enable-fontmap" >&5
3791 no_cache=0
3792 # Check whether --enable-fontmap or --disable-fontmap was given.
3793if test "${enable_fontmap+set}" = set; then
3794 enableval="$enable_fontmap"
3795
3796 if test "$enableval" = yes; then
3797 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3798 else
3799 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3800 fi
3801
3802else
3803
3804 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3805 if test "x$LINE" != x ; then
3806 eval "DEFAULT_$LINE"
3807 else
3808 no_cache=1
3809 fi
3810
3811 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3812
3813fi
3814
3815
3816 eval "$ac_cv_use_fontmap"
3817 if test "$no_cache" != 1; then
3818 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3819 fi
3820
3821 if test "$wxUSE_FONTMAP" = yes; then
3822 echo "$ac_t""yes" 1>&6
3823 else
3824 echo "$ac_t""no" 1>&6
3825 fi
3826
3827
3828 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3829echo "configure:3830: checking for --enable-unicode" >&5
3830 no_cache=0
3831 # Check whether --enable-unicode or --disable-unicode was given.
3832if test "${enable_unicode+set}" = set; then
3833 enableval="$enable_unicode"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3837 else
3838 ac_cv_use_unicode='wxUSE_UNICODE=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3851
3852fi
3853
3854
3855 eval "$ac_cv_use_unicode"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_UNICODE" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3868echo "configure:3869: checking for --enable-wxprintfv" >&5
3869 no_cache=0
3870 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3871if test "${enable_wxprintfv+set}" = set; then
3872 enableval="$enable_wxprintfv"
3873
3874 if test "$enableval" = yes; then
3875 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3876 else
3877 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3878 fi
3879
3880else
3881
3882 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3883 if test "x$LINE" != x ; then
3884 eval "DEFAULT_$LINE"
3885 else
3886 no_cache=1
3887 fi
3888
3889 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3890
3891fi
3892
3893
3894 eval "$ac_cv_use_wxprintfv"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3900 echo "$ac_t""yes" 1>&6
3901 else
3902 echo "$ac_t""no" 1>&6
3903 fi
3904
3905
3906 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3907echo "configure:3908: checking for --enable-std_iostreams" >&5
3908 no_cache=0
3909 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3910if test "${enable_std_iostreams+set}" = set; then
3911 enableval="$enable_std_iostreams"
3912
3913 if test "$enableval" = yes; then
3914 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3915 else
3916 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3917 fi
3918
3919else
3920
3921 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3922 if test "x$LINE" != x ; then
3923 eval "DEFAULT_$LINE"
3924 else
3925 no_cache=1
3926 fi
3927
3928 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3929
3930fi
3931
3932
3933 eval "$ac_cv_use_std_iostreams"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_STD_IOSTREAM" = yes; then
3939 echo "$ac_t""yes" 1>&6
3940 else
3941 echo "$ac_t""no" 1>&6
3942 fi
3943
3944
3945 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3946echo "configure:3947: checking for --enable-filesystem" >&5
3947 no_cache=0
3948 # Check whether --enable-filesystem or --disable-filesystem was given.
3949if test "${enable_filesystem+set}" = set; then
3950 enableval="$enable_filesystem"
3951
3952 if test "$enableval" = yes; then
3953 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3954 else
3955 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3956 fi
3957
3958else
3959
3960 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3961 if test "x$LINE" != x ; then
3962 eval "DEFAULT_$LINE"
3963 else
3964 no_cache=1
3965 fi
3966
3967 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3968
3969fi
3970
3971
3972 eval "$ac_cv_use_filesystem"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_FILESYSTEM" = yes; then
3978 echo "$ac_t""yes" 1>&6
3979 else
3980 echo "$ac_t""no" 1>&6
3981 fi
3982
3983
3984 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3985echo "configure:3986: checking for --enable-fs_inet" >&5
3986 no_cache=0
3987 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3988if test "${enable_fs_inet+set}" = set; then
3989 enableval="$enable_fs_inet"
3990
3991 if test "$enableval" = yes; then
3992 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3993 else
3994 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3995 fi
3996
3997else
3998
3999 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4000 if test "x$LINE" != x ; then
4001 eval "DEFAULT_$LINE"
4002 else
4003 no_cache=1
4004 fi
4005
4006 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4007
4008fi
4009
4010
4011 eval "$ac_cv_use_fs_inet"
4012 if test "$no_cache" != 1; then
4013 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4014 fi
4015
4016 if test "$wxUSE_FS_INET" = yes; then
4017 echo "$ac_t""yes" 1>&6
4018 else
4019 echo "$ac_t""no" 1>&6
4020 fi
4021
4022
4023 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4024echo "configure:4025: checking for --enable-fs_zip" >&5
4025 no_cache=0
4026 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4027if test "${enable_fs_zip+set}" = set; then
4028 enableval="$enable_fs_zip"
4029
4030 if test "$enableval" = yes; then
4031 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4032 else
4033 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4034 fi
4035
4036else
4037
4038 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4039 if test "x$LINE" != x ; then
4040 eval "DEFAULT_$LINE"
4041 else
4042 no_cache=1
4043 fi
4044
4045 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4046
4047fi
4048
4049
4050 eval "$ac_cv_use_fs_zip"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_FS_ZIP" = yes; then
4056 echo "$ac_t""yes" 1>&6
4057 else
4058 echo "$ac_t""no" 1>&6
4059 fi
4060
4061
4062 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4063echo "configure:4064: checking for --enable-zipstream" >&5
4064 no_cache=0
4065 # Check whether --enable-zipstream or --disable-zipstream was given.
4066if test "${enable_zipstream+set}" = set; then
4067 enableval="$enable_zipstream"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4071 else
4072 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4085
4086fi
4087
4088
4089 eval "$ac_cv_use_zipstream"
4090 if test "$no_cache" != 1; then
4091 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4092 fi
4093
4094 if test "$wxUSE_ZIPSTREAM" = yes; then
4095 echo "$ac_t""yes" 1>&6
4096 else
4097 echo "$ac_t""no" 1>&6
4098 fi
4099
4100
4101
4102 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4103echo "configure:4104: checking for --enable-catch_segvs" >&5
4104 no_cache=0
4105 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4106if test "${enable_catch_segvs+set}" = set; then
4107 enableval="$enable_catch_segvs"
4108
4109 if test "$enableval" = yes; then
4110 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4111 else
4112 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4113 fi
4114
4115else
4116
4117 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4118 if test "x$LINE" != x ; then
4119 eval "DEFAULT_$LINE"
4120 else
4121 no_cache=1
4122 fi
4123
4124 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4125
4126fi
4127
4128
4129 eval "$ac_cv_use_catch_segvs"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4135 echo "$ac_t""yes" 1>&6
4136 else
4137 echo "$ac_t""no" 1>&6
4138 fi
4139
4140
4141 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4142echo "configure:4143: checking for --enable-snglinst" >&5
4143 no_cache=0
4144 # Check whether --enable-snglinst or --disable-snglinst was given.
4145if test "${enable_snglinst+set}" = set; then
4146 enableval="$enable_snglinst"
4147
4148 if test "$enableval" = yes; then
4149 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4150 else
4151 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4152 fi
4153
4154else
4155
4156 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4157 if test "x$LINE" != x ; then
4158 eval "DEFAULT_$LINE"
4159 else
4160 no_cache=1
4161 fi
4162
4163 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4164
4165fi
4166
4167
4168 eval "$ac_cv_use_snglinst"
4169 if test "$no_cache" != 1; then
4170 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4171 fi
4172
4173 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4174 echo "$ac_t""yes" 1>&6
4175 else
4176 echo "$ac_t""no" 1>&6
4177 fi
4178
4179
4180
4181 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4182echo "configure:4183: checking for --enable-mimetype" >&5
4183 no_cache=0
4184 # Check whether --enable-mimetype or --disable-mimetype was given.
4185if test "${enable_mimetype+set}" = set; then
4186 enableval="$enable_mimetype"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4190 else
4191 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4204
4205fi
4206
4207
4208 eval "$ac_cv_use_mimetype"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_MIMETYPE" = yes; then
4214 echo "$ac_t""yes" 1>&6
4215 else
4216 echo "$ac_t""no" 1>&6
4217 fi
4218
4219
4220 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4221echo "configure:4222: checking for --enable-system_options" >&5
4222 no_cache=0
4223 # Check whether --enable-system_options or --disable-system_options was given.
4224if test "${enable_system_options+set}" = set; then
4225 enableval="$enable_system_options"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4229 else
4230 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4231 fi
4232
4233else
4234
4235 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4243
4244fi
4245
4246
4247 eval "$ac_cv_use_system_options"
4248 if test "$no_cache" != 1; then
4249 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4250 fi
4251
4252 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4253 echo "$ac_t""yes" 1>&6
4254 else
4255 echo "$ac_t""no" 1>&6
4256 fi
4257
4258
4259
4260
4261 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4262echo "configure:4263: checking for --enable-threads" >&5
4263 no_cache=0
4264 # Check whether --enable-threads or --disable-threads was given.
4265if test "${enable_threads+set}" = set; then
4266 enableval="$enable_threads"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_threads='wxUSE_THREADS=yes'
4270 else
4271 ac_cv_use_threads='wxUSE_THREADS=no'
4272 fi
4273
4274else
4275
4276 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4284
4285fi
4286
4287
4288 eval "$ac_cv_use_threads"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_THREADS" = yes; then
4294 echo "$ac_t""yes" 1>&6
4295 else
4296 echo "$ac_t""no" 1>&6
4297 fi
4298
4299
4300 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4301echo "configure:4302: checking for --enable-serial" >&5
4302 no_cache=0
4303 # Check whether --enable-serial or --disable-serial was given.
4304if test "${enable_serial+set}" = set; then
4305 enableval="$enable_serial"
4306
4307 if test "$enableval" = yes; then
4308 ac_cv_use_serial='wxUSE_SERIAL=yes'
4309 else
4310 ac_cv_use_serial='wxUSE_SERIAL=no'
4311 fi
4312
4313else
4314
4315 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4323
4324fi
4325
4326
4327 eval "$ac_cv_use_serial"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_SERIAL" = yes; then
4333 echo "$ac_t""yes" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4336 fi
4337
4338
4339if test "$wxUSE_GUI" = "yes"; then
4340
4341
4342
4343 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4344echo "configure:4345: checking for --enable-docview" >&5
4345 no_cache=0
4346 # Check whether --enable-docview or --disable-docview was given.
4347if test "${enable_docview+set}" = set; then
4348 enableval="$enable_docview"
4349
4350 if test "$enableval" = yes; then
4351 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4352 else
4353 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4354 fi
4355
4356else
4357
4358 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4359 if test "x$LINE" != x ; then
4360 eval "DEFAULT_$LINE"
4361 else
4362 no_cache=1
4363 fi
4364
4365 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4366
4367fi
4368
4369
4370 eval "$ac_cv_use_docview"
4371 if test "$no_cache" != 1; then
4372 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4373 fi
4374
4375 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4376 echo "$ac_t""yes" 1>&6
4377 else
4378 echo "$ac_t""no" 1>&6
4379 fi
4380
4381
4382 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4383echo "configure:4384: checking for --enable-help" >&5
4384 no_cache=0
4385 # Check whether --enable-help or --disable-help was given.
4386if test "${enable_help+set}" = set; then
4387 enableval="$enable_help"
4388
4389 if test "$enableval" = yes; then
4390 ac_cv_use_help='wxUSE_HELP=yes'
4391 else
4392 ac_cv_use_help='wxUSE_HELP=no'
4393 fi
4394
4395else
4396
4397 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
4400 else
4401 no_cache=1
4402 fi
4403
4404 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4405
4406fi
4407
4408
4409 eval "$ac_cv_use_help"
4410 if test "$no_cache" != 1; then
4411 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4412 fi
4413
4414 if test "$wxUSE_HELP" = yes; then
4415 echo "$ac_t""yes" 1>&6
4416 else
4417 echo "$ac_t""no" 1>&6
4418 fi
4419
4420
4421 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4422echo "configure:4423: checking for --enable-mshtmlhelp" >&5
4423 no_cache=0
4424 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4425if test "${enable_mshtmlhelp+set}" = set; then
4426 enableval="$enable_mshtmlhelp"
4427
4428 if test "$enableval" = yes; then
4429 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4430 else
4431 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4432 fi
4433
4434else
4435
4436 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4437 if test "x$LINE" != x ; then
4438 eval "DEFAULT_$LINE"
4439 else
4440 no_cache=1
4441 fi
4442
4443 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4444
4445fi
4446
4447
4448 eval "$ac_cv_use_mshtmlhelp"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_MS_HTML_HELP" = yes; then
4454 echo "$ac_t""yes" 1>&6
4455 else
4456 echo "$ac_t""no" 1>&6
4457 fi
4458
4459
4460 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4461echo "configure:4462: checking for --enable-html" >&5
4462 no_cache=0
4463 # Check whether --enable-html or --disable-html was given.
4464if test "${enable_html+set}" = set; then
4465 enableval="$enable_html"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_html='wxUSE_HTML=yes'
4469 else
4470 ac_cv_use_html='wxUSE_HTML=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4483
4484fi
4485
4486
4487 eval "$ac_cv_use_html"
4488 if test "$no_cache" != 1; then
4489 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4490 fi
4491
4492 if test "$wxUSE_HTML" = yes; then
4493 echo "$ac_t""yes" 1>&6
4494 else
4495 echo "$ac_t""no" 1>&6
4496 fi
4497
4498
4499 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4500echo "configure:4501: checking for --enable-htmlhelp" >&5
4501 no_cache=0
4502 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4503if test "${enable_htmlhelp+set}" = set; then
4504 enableval="$enable_htmlhelp"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4508 else
4509 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4510 fi
4511
4512else
4513
4514 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4522
4523fi
4524
4525
4526 eval "$ac_cv_use_htmlhelp"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_WXHTML_HELP" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
4538 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4539echo "configure:4540: checking for --enable-constraints" >&5
4540 no_cache=0
4541 # Check whether --enable-constraints or --disable-constraints was given.
4542if test "${enable_constraints+set}" = set; then
4543 enableval="$enable_constraints"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4547 else
4548 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4561
4562fi
4563
4564
4565 eval "$ac_cv_use_constraints"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_CONSTRAINTS" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
4577 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4578echo "configure:4579: checking for --enable-printarch" >&5
4579 no_cache=0
4580 # Check whether --enable-printarch or --disable-printarch was given.
4581if test "${enable_printarch+set}" = set; then
4582 enableval="$enable_printarch"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4586 else
4587 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4600
4601fi
4602
4603
4604 eval "$ac_cv_use_printarch"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4610 echo "$ac_t""yes" 1>&6
4611 else
4612 echo "$ac_t""no" 1>&6
4613 fi
4614
4615
4616 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4617echo "configure:4618: checking for --enable-mdi" >&5
4618 no_cache=0
4619 # Check whether --enable-mdi or --disable-mdi was given.
4620if test "${enable_mdi+set}" = set; then
4621 enableval="$enable_mdi"
4622
4623 if test "$enableval" = yes; then
4624 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4625 else
4626 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4627 fi
4628
4629else
4630
4631 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4632 if test "x$LINE" != x ; then
4633 eval "DEFAULT_$LINE"
4634 else
4635 no_cache=1
4636 fi
4637
4638 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4639
4640fi
4641
4642
4643 eval "$ac_cv_use_mdi"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4649 echo "$ac_t""yes" 1>&6
4650 else
4651 echo "$ac_t""no" 1>&6
4652 fi
4653
4654
4655 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4656echo "configure:4657: checking for --enable-loggui" >&5
4657 no_cache=0
4658 # Check whether --enable-loggui or --disable-loggui was given.
4659if test "${enable_loggui+set}" = set; then
4660 enableval="$enable_loggui"
4661
4662 if test "$enableval" = yes; then
4663 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4664 else
4665 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4666 fi
4667
4668else
4669
4670 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4678
4679fi
4680
4681
4682 eval "$ac_cv_use_loggui"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_LOGGUI" = yes; then
4688 echo "$ac_t""yes" 1>&6
4689 else
4690 echo "$ac_t""no" 1>&6
4691 fi
4692
4693
4694 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4695echo "configure:4696: checking for --enable-logwin" >&5
4696 no_cache=0
4697 # Check whether --enable-logwin or --disable-logwin was given.
4698if test "${enable_logwin+set}" = set; then
4699 enableval="$enable_logwin"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4703 else
4704 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4717
4718fi
4719
4720
4721 eval "$ac_cv_use_logwin"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_LOGWINDOW" = yes; then
4727 echo "$ac_t""yes" 1>&6
4728 else
4729 echo "$ac_t""no" 1>&6
4730 fi
4731
4732
4733
4734 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4735echo "configure:4736: checking for --enable-postscript" >&5
4736 no_cache=0
4737 # Check whether --enable-postscript or --disable-postscript was given.
4738if test "${enable_postscript+set}" = set; then
4739 enableval="$enable_postscript"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4743 else
4744 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4745 fi
4746
4747else
4748
4749 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4757
4758fi
4759
4760
4761 eval "$ac_cv_use_postscript"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_POSTSCRIPT" = yes; then
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "$ac_t""no" 1>&6
4770 fi
4771
4772
4773
4774
4775
4776 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4777echo "configure:4778: checking for --enable-prologio" >&5
4778 no_cache=0
4779 # Check whether --enable-prologio or --disable-prologio was given.
4780if test "${enable_prologio+set}" = set; then
4781 enableval="$enable_prologio"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4785 else
4786 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4799
4800fi
4801
4802
4803 eval "$ac_cv_use_prologio"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_PROLOGIO" = yes; then
4809 echo "$ac_t""yes" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4812 fi
4813
4814
4815 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4816echo "configure:4817: checking for --enable-resources" >&5
4817 no_cache=0
4818 # Check whether --enable-resources or --disable-resources was given.
4819if test "${enable_resources+set}" = set; then
4820 enableval="$enable_resources"
4821
4822 if test "$enableval" = yes; then
4823 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4824 else
4825 ac_cv_use_resources='wxUSE_RESOURCES=no'
4826 fi
4827
4828else
4829
4830 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
4837 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4838
4839fi
4840
4841
4842 eval "$ac_cv_use_resources"
4843 if test "$no_cache" != 1; then
4844 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4845 fi
4846
4847 if test "$wxUSE_RESOURCES" = yes; then
4848 echo "$ac_t""yes" 1>&6
4849 else
4850 echo "$ac_t""no" 1>&6
4851 fi
4852
4853
4854
4855 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4856echo "configure:4857: checking for --enable-xresources" >&5
4857 no_cache=0
4858 # Check whether --enable-xresources or --disable-xresources was given.
4859if test "${enable_xresources+set}" = set; then
4860 enableval="$enable_xresources"
4861
4862 if test "$enableval" = yes; then
4863 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4864 else
4865 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4866 fi
4867
4868else
4869
4870 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
4877 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4878
4879fi
4880
4881
4882 eval "$ac_cv_use_xresources"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_X_RESOURCES" = yes; then
4888 echo "$ac_t""yes" 1>&6
4889 else
4890 echo "$ac_t""no" 1>&6
4891 fi
4892
4893
4894
4895
4896 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4897echo "configure:4898: checking for --enable-clipboard" >&5
4898 no_cache=0
4899 # Check whether --enable-clipboard or --disable-clipboard was given.
4900if test "${enable_clipboard+set}" = set; then
4901 enableval="$enable_clipboard"
4902
4903 if test "$enableval" = yes; then
4904 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4905 else
4906 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4907 fi
4908
4909else
4910
4911 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4912 if test "x$LINE" != x ; then
4913 eval "DEFAULT_$LINE"
4914 else
4915 no_cache=1
4916 fi
4917
4918 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4919
4920fi
4921
4922
4923 eval "$ac_cv_use_clipboard"
4924 if test "$no_cache" != 1; then
4925 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4926 fi
4927
4928 if test "$wxUSE_CLIPBOARD" = yes; then
4929 echo "$ac_t""yes" 1>&6
4930 else
4931 echo "$ac_t""no" 1>&6
4932 fi
4933
4934
4935 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4936echo "configure:4937: checking for --enable-dnd" >&5
4937 no_cache=0
4938 # Check whether --enable-dnd or --disable-dnd was given.
4939if test "${enable_dnd+set}" = set; then
4940 enableval="$enable_dnd"
4941
4942 if test "$enableval" = yes; then
4943 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4944 else
4945 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4946 fi
4947
4948else
4949
4950 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4951 if test "x$LINE" != x ; then
4952 eval "DEFAULT_$LINE"
4953 else
4954 no_cache=1
4955 fi
4956
4957 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4958
4959fi
4960
4961
4962 eval "$ac_cv_use_dnd"
4963 if test "$no_cache" != 1; then
4964 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4965 fi
4966
4967 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4968 echo "$ac_t""yes" 1>&6
4969 else
4970 echo "$ac_t""no" 1>&6
4971 fi
4972
4973
4974 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4975echo "configure:4976: checking for --enable-metafile" >&5
4976 no_cache=0
4977 # Check whether --enable-metafile or --disable-metafile was given.
4978if test "${enable_metafile+set}" = set; then
4979 enableval="$enable_metafile"
4980
4981 if test "$enableval" = yes; then
4982 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4983 else
4984 ac_cv_use_metafile='wxUSE_METAFILE=no'
4985 fi
4986
4987else
4988
4989 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4990 if test "x$LINE" != x ; then
4991 eval "DEFAULT_$LINE"
4992 else
4993 no_cache=1
4994 fi
4995
4996 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4997
4998fi
4999
5000
5001 eval "$ac_cv_use_metafile"
5002 if test "$no_cache" != 1; then
5003 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5004 fi
5005
5006 if test "$wxUSE_METAFILE" = yes; then
5007 echo "$ac_t""yes" 1>&6
5008 else
5009 echo "$ac_t""no" 1>&6
5010 fi
5011
5012
5013
5014 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5015echo "configure:5016: checking for --enable-treelayout" >&5
5016 no_cache=0
5017 # Check whether --enable-treelayout or --disable-treelayout was given.
5018if test "${enable_treelayout+set}" = set; then
5019 enableval="$enable_treelayout"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5023 else
5024 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5025 fi
5026
5027else
5028
5029 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5037
5038fi
5039
5040
5041 eval "$ac_cv_use_treelayout"
5042 if test "$no_cache" != 1; then
5043 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5044 fi
5045
5046 if test "$wxUSE_TREELAYOUT" = yes; then
5047 echo "$ac_t""yes" 1>&6
5048 else
5049 echo "$ac_t""no" 1>&6
5050 fi
5051
5052
5053
5054
5055 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5056echo "configure:5057: checking for --enable-controls" >&5
5057 no_cache=0
5058 # Check whether --enable-controls or --disable-controls was given.
5059if test "${enable_controls+set}" = set; then
5060 enableval="$enable_controls"
5061
5062 if test "$enableval" = yes; then
5063 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5064 else
5065 ac_cv_use_controls='wxUSE_CONTROLS=no'
5066 fi
5067
5068else
5069
5070 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5071 if test "x$LINE" != x ; then
5072 eval "DEFAULT_$LINE"
5073 else
5074 no_cache=1
5075 fi
5076
5077 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5078
5079fi
5080
5081
5082 eval "$ac_cv_use_controls"
5083 if test "$no_cache" != 1; then
5084 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5085 fi
5086
5087 if test "$wxUSE_CONTROLS" = yes; then
5088 echo "$ac_t""yes" 1>&6
5089 else
5090 echo "$ac_t""no" 1>&6
5091 fi
5092
5093
5094if test "$wxUSE_CONTROLS" = "yes"; then
5095 DEFAULT_wxUSE_ACCEL=yes
5096 DEFAULT_wxUSE_BMPBUTTON=yes
5097 DEFAULT_wxUSE_BUTTON=yes
5098 DEFAULT_wxUSE_CALCTRL=no
5099 DEFAULT_wxUSE_CARET=yes
5100 DEFAULT_wxUSE_COMBOBOX=yes
5101 DEFAULT_wxUSE_CHECKBOX=yes
5102 DEFAULT_wxUSE_CHECKLISTBOX=yes
5103 DEFAULT_wxUSE_CHOICE=yes
5104 DEFAULT_wxUSE_GAUGE=yes
5105 DEFAULT_wxUSE_GRID=yes
5106 DEFAULT_wxUSE_NEW_GRID=yes
5107 DEFAULT_wxUSE_IMAGLIST=yes
5108 DEFAULT_wxUSE_LISTBOX=yes
5109 DEFAULT_wxUSE_LISTCTRL=yes
5110 DEFAULT_wxUSE_NOTEBOOK=yes
5111 DEFAULT_wxUSE_PROPSHEET=yes
5112 DEFAULT_wxUSE_RADIOBOX=yes
5113 DEFAULT_wxUSE_RADIOBTN=yes
5114 DEFAULT_wxUSE_SASH=yes
5115 DEFAULT_wxUSE_SCROLLBAR=yes
5116 DEFAULT_wxUSE_SLIDER=yes
5117 DEFAULT_wxUSE_SPINBTN=yes
5118 DEFAULT_wxUSE_SPINCTRL=yes
5119 DEFAULT_wxUSE_SPLITTER=yes
5120 DEFAULT_wxUSE_STATBMP=yes
5121 DEFAULT_wxUSE_STATBOX=yes
5122 DEFAULT_wxUSE_STATLINE=yes
5123 DEFAULT_wxUSE_STATUSBAR=yes
5124 DEFAULT_wxUSE_TAB_DIALOG=yes
5125 DEFAULT_wxUSE_TOGGLEBTN=yes
5126 DEFAULT_wxUSE_TOOLBAR=yes
5127 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5129 DEFAULT_wxUSE_TOOLTIPS=yes
5130 DEFAULT_wxUSE_TREECTRL=yes
5131 DEFAULT_wxUSE_POPUPWIN=yes
5132elif test "$wxUSE_CONTROLS" = "no"; then
5133 DEFAULT_wxUSE_ACCEL=no
5134 DEFAULT_wxUSE_BMPBUTTON=no
5135 DEFAULT_wxUSE_BUTTON=no
5136 DEFAULT_wxUSE_CALCTRL=no
5137 DEFAULT_wxUSE_CARET=no
5138 DEFAULT_wxUSE_COMBOBOX=no
5139 DEFAULT_wxUSE_CHECKBOX=no
5140 DEFAULT_wxUSE_CHECKLISTBOX=no
5141 DEFAULT_wxUSE_CHOICE=no
5142 DEFAULT_wxUSE_GAUGE=no
5143 DEFAULT_wxUSE_GRID=no
5144 DEFAULT_wxUSE_NEW_GRID=no
5145 DEFAULT_wxUSE_IMAGLIST=no
5146 DEFAULT_wxUSE_LISTBOX=no
5147 DEFAULT_wxUSE_LISTCTRL=no
5148 DEFAULT_wxUSE_NOTEBOOK=no
5149 DEFAULT_wxUSE_PROPSHEET=no
5150 DEFAULT_wxUSE_RADIOBOX=no
5151 DEFAULT_wxUSE_RADIOBTN=no
5152 DEFAULT_wxUSE_SASH=no
5153 DEFAULT_wxUSE_SCROLLBAR=no
5154 DEFAULT_wxUSE_SLIDER=no
5155 DEFAULT_wxUSE_SPINBTN=no
5156 DEFAULT_wxUSE_SPINCTRL=no
5157 DEFAULT_wxUSE_SPLITTER=no
5158 DEFAULT_wxUSE_STATBMP=no
5159 DEFAULT_wxUSE_STATBOX=no
5160 DEFAULT_wxUSE_STATLINE=no
5161 DEFAULT_wxUSE_STATUSBAR=no
5162 DEFAULT_wxUSE_TAB_DIALOG=no
5163 DEFAULT_wxUSE_TOGGLEBTN=no
5164 DEFAULT_wxUSE_TOOLBAR=no
5165 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5166 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5167 DEFAULT_wxUSE_TOOLTIPS=no
5168 DEFAULT_wxUSE_TREECTRL=no
5169 DEFAULT_wxUSE_POPUPWIN=no
5170fi
5171
5172
5173 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5174echo "configure:5175: checking for --enable-accel" >&5
5175 no_cache=0
5176 # Check whether --enable-accel or --disable-accel was given.
5177if test "${enable_accel+set}" = set; then
5178 enableval="$enable_accel"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_accel='wxUSE_ACCEL=yes'
5182 else
5183 ac_cv_use_accel='wxUSE_ACCEL=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5196
5197fi
5198
5199
5200 eval "$ac_cv_use_accel"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_ACCEL" = yes; then
5206 echo "$ac_t""yes" 1>&6
5207 else
5208 echo "$ac_t""no" 1>&6
5209 fi
5210
5211
5212 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5213echo "configure:5214: checking for --enable-button" >&5
5214 no_cache=0
5215 # Check whether --enable-button or --disable-button was given.
5216if test "${enable_button+set}" = set; then
5217 enableval="$enable_button"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_button='wxUSE_BUTTON=yes'
5221 else
5222 ac_cv_use_button='wxUSE_BUTTON=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5235
5236fi
5237
5238
5239 eval "$ac_cv_use_button"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_BUTTON" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
5251 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5252echo "configure:5253: checking for --enable-bmpbutton" >&5
5253 no_cache=0
5254 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5255if test "${enable_bmpbutton+set}" = set; then
5256 enableval="$enable_bmpbutton"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5260 else
5261 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5262 fi
5263
5264else
5265
5266 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5274
5275fi
5276
5277
5278 eval "$ac_cv_use_bmpbutton"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_BMPBUTTON" = yes; then
5284 echo "$ac_t""yes" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5287 fi
5288
5289
5290 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5291echo "configure:5292: checking for --enable-calendar" >&5
5292 no_cache=0
5293 # Check whether --enable-calendar or --disable-calendar was given.
5294if test "${enable_calendar+set}" = set; then
5295 enableval="$enable_calendar"
5296
5297 if test "$enableval" = yes; then
5298 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5299 else
5300 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5301 fi
5302
5303else
5304
5305 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5306 if test "x$LINE" != x ; then
5307 eval "DEFAULT_$LINE"
5308 else
5309 no_cache=1
5310 fi
5311
5312 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5313
5314fi
5315
5316
5317 eval "$ac_cv_use_calendar"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_CALCTRL" = yes; then
5323 echo "$ac_t""yes" 1>&6
5324 else
5325 echo "$ac_t""no" 1>&6
5326 fi
5327
5328
5329 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5330echo "configure:5331: checking for --enable-caret" >&5
5331 no_cache=0
5332 # Check whether --enable-caret or --disable-caret was given.
5333if test "${enable_caret+set}" = set; then
5334 enableval="$enable_caret"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_caret='wxUSE_CARET=yes'
5338 else
5339 ac_cv_use_caret='wxUSE_CARET=no'
5340 fi
5341
5342else
5343
5344 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5352
5353fi
5354
5355
5356 eval "$ac_cv_use_caret"
5357 if test "$no_cache" != 1; then
5358 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5359 fi
5360
5361 if test "$wxUSE_CARET" = yes; then
5362 echo "$ac_t""yes" 1>&6
5363 else
5364 echo "$ac_t""no" 1>&6
5365 fi
5366
5367
5368 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5369echo "configure:5370: checking for --enable-checkbox" >&5
5370 no_cache=0
5371 # Check whether --enable-checkbox or --disable-checkbox was given.
5372if test "${enable_checkbox+set}" = set; then
5373 enableval="$enable_checkbox"
5374
5375 if test "$enableval" = yes; then
5376 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5377 else
5378 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5379 fi
5380
5381else
5382
5383 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5384 if test "x$LINE" != x ; then
5385 eval "DEFAULT_$LINE"
5386 else
5387 no_cache=1
5388 fi
5389
5390 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5391
5392fi
5393
5394
5395 eval "$ac_cv_use_checkbox"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_CHECKBOX" = yes; then
5401 echo "$ac_t""yes" 1>&6
5402 else
5403 echo "$ac_t""no" 1>&6
5404 fi
5405
5406
5407 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5408echo "configure:5409: checking for --enable-checklst" >&5
5409 no_cache=0
5410 # Check whether --enable-checklst or --disable-checklst was given.
5411if test "${enable_checklst+set}" = set; then
5412 enableval="$enable_checklst"
5413
5414 if test "$enableval" = yes; then
5415 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5416 else
5417 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5418 fi
5419
5420else
5421
5422 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5423 if test "x$LINE" != x ; then
5424 eval "DEFAULT_$LINE"
5425 else
5426 no_cache=1
5427 fi
5428
5429 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5430
5431fi
5432
5433
5434 eval "$ac_cv_use_checklst"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_CHECKLST" = yes; then
5440 echo "$ac_t""yes" 1>&6
5441 else
5442 echo "$ac_t""no" 1>&6
5443 fi
5444
5445
5446 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5447echo "configure:5448: checking for --enable-choice" >&5
5448 no_cache=0
5449 # Check whether --enable-choice or --disable-choice was given.
5450if test "${enable_choice+set}" = set; then
5451 enableval="$enable_choice"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_choice='wxUSE_CHOICE=yes'
5455 else
5456 ac_cv_use_choice='wxUSE_CHOICE=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5469
5470fi
5471
5472
5473 eval "$ac_cv_use_choice"
5474 if test "$no_cache" != 1; then
5475 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5476 fi
5477
5478 if test "$wxUSE_CHOICE" = yes; then
5479 echo "$ac_t""yes" 1>&6
5480 else
5481 echo "$ac_t""no" 1>&6
5482 fi
5483
5484
5485 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5486echo "configure:5487: checking for --enable-combobox" >&5
5487 no_cache=0
5488 # Check whether --enable-combobox or --disable-combobox was given.
5489if test "${enable_combobox+set}" = set; then
5490 enableval="$enable_combobox"
5491
5492 if test "$enableval" = yes; then
5493 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5494 else
5495 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5496 fi
5497
5498else
5499
5500 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5501 if test "x$LINE" != x ; then
5502 eval "DEFAULT_$LINE"
5503 else
5504 no_cache=1
5505 fi
5506
5507 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5508
5509fi
5510
5511
5512 eval "$ac_cv_use_combobox"
5513 if test "$no_cache" != 1; then
5514 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5515 fi
5516
5517 if test "$wxUSE_COMBOBOX" = yes; then
5518 echo "$ac_t""yes" 1>&6
5519 else
5520 echo "$ac_t""no" 1>&6
5521 fi
5522
5523
5524 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5525echo "configure:5526: checking for --enable-gauge" >&5
5526 no_cache=0
5527 # Check whether --enable-gauge or --disable-gauge was given.
5528if test "${enable_gauge+set}" = set; then
5529 enableval="$enable_gauge"
5530
5531 if test "$enableval" = yes; then
5532 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5533 else
5534 ac_cv_use_gauge='wxUSE_GAUGE=no'
5535 fi
5536
5537else
5538
5539 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5540 if test "x$LINE" != x ; then
5541 eval "DEFAULT_$LINE"
5542 else
5543 no_cache=1
5544 fi
5545
5546 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5547
5548fi
5549
5550
5551 eval "$ac_cv_use_gauge"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_GAUGE" = yes; then
5557 echo "$ac_t""yes" 1>&6
5558 else
5559 echo "$ac_t""no" 1>&6
5560 fi
5561
5562
5563 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5564echo "configure:5565: checking for --enable-grid" >&5
5565 no_cache=0
5566 # Check whether --enable-grid or --disable-grid was given.
5567if test "${enable_grid+set}" = set; then
5568 enableval="$enable_grid"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_grid='wxUSE_GRID=yes'
5572 else
5573 ac_cv_use_grid='wxUSE_GRID=no'
5574 fi
5575
5576else
5577
5578 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5586
5587fi
5588
5589
5590 eval "$ac_cv_use_grid"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_GRID" = yes; then
5596 echo "$ac_t""yes" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5599 fi
5600
5601
5602 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5603echo "configure:5604: checking for --enable-newgrid" >&5
5604 no_cache=0
5605 # Check whether --enable-newgrid or --disable-newgrid was given.
5606if test "${enable_newgrid+set}" = set; then
5607 enableval="$enable_newgrid"
5608
5609 if test "$enableval" = yes; then
5610 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5611 else
5612 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5613 fi
5614
5615else
5616
5617 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5618 if test "x$LINE" != x ; then
5619 eval "DEFAULT_$LINE"
5620 else
5621 no_cache=1
5622 fi
5623
5624 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5625
5626fi
5627
5628
5629 eval "$ac_cv_use_newgrid"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_NEW_GRID" = yes; then
5635 echo "$ac_t""yes" 1>&6
5636 else
5637 echo "$ac_t""no" 1>&6
5638 fi
5639
5640
5641 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5642echo "configure:5643: checking for --enable-imaglist" >&5
5643 no_cache=0
5644 # Check whether --enable-imaglist or --disable-imaglist was given.
5645if test "${enable_imaglist+set}" = set; then
5646 enableval="$enable_imaglist"
5647
5648 if test "$enableval" = yes; then
5649 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5650 else
5651 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5652 fi
5653
5654else
5655
5656 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5657 if test "x$LINE" != x ; then
5658 eval "DEFAULT_$LINE"
5659 else
5660 no_cache=1
5661 fi
5662
5663 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5664
5665fi
5666
5667
5668 eval "$ac_cv_use_imaglist"
5669 if test "$no_cache" != 1; then
5670 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5671 fi
5672
5673 if test "$wxUSE_IMAGLIST" = yes; then
5674 echo "$ac_t""yes" 1>&6
5675 else
5676 echo "$ac_t""no" 1>&6
5677 fi
5678
5679
5680 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5681echo "configure:5682: checking for --enable-listbox" >&5
5682 no_cache=0
5683 # Check whether --enable-listbox or --disable-listbox was given.
5684if test "${enable_listbox+set}" = set; then
5685 enableval="$enable_listbox"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5689 else
5690 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5703
5704fi
5705
5706
5707 eval "$ac_cv_use_listbox"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_LISTBOX" = yes; then
5713 echo "$ac_t""yes" 1>&6
5714 else
5715 echo "$ac_t""no" 1>&6
5716 fi
5717
5718
5719 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5720echo "configure:5721: checking for --enable-listctrl" >&5
5721 no_cache=0
5722 # Check whether --enable-listctrl or --disable-listctrl was given.
5723if test "${enable_listctrl+set}" = set; then
5724 enableval="$enable_listctrl"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5728 else
5729 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5742
5743fi
5744
5745
5746 eval "$ac_cv_use_listctrl"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_LISTCTRL" = yes; then
5752 echo "$ac_t""yes" 1>&6
5753 else
5754 echo "$ac_t""no" 1>&6
5755 fi
5756
5757
5758 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5759echo "configure:5760: checking for --enable-notebook" >&5
5760 no_cache=0
5761 # Check whether --enable-notebook or --disable-notebook was given.
5762if test "${enable_notebook+set}" = set; then
5763 enableval="$enable_notebook"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5767 else
5768 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5781
5782fi
5783
5784
5785 eval "$ac_cv_use_notebook"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_NOTEBOOK" = yes; then
5791 echo "$ac_t""yes" 1>&6
5792 else
5793 echo "$ac_t""no" 1>&6
5794 fi
5795
5796
5797 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5798echo "configure:5799: checking for --enable-propsheet" >&5
5799 no_cache=0
5800 # Check whether --enable-propsheet or --disable-propsheet was given.
5801if test "${enable_propsheet+set}" = set; then
5802 enableval="$enable_propsheet"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5806 else
5807 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5808 fi
5809
5810else
5811
5812 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5820
5821fi
5822
5823
5824 eval "$ac_cv_use_propsheet"
5825 if test "$no_cache" != 1; then
5826 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5827 fi
5828
5829 if test "$wxUSE_PROPSHEET" = yes; then
5830 echo "$ac_t""yes" 1>&6
5831 else
5832 echo "$ac_t""no" 1>&6
5833 fi
5834
5835
5836 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5837echo "configure:5838: checking for --enable-radiobox" >&5
5838 no_cache=0
5839 # Check whether --enable-radiobox or --disable-radiobox was given.
5840if test "${enable_radiobox+set}" = set; then
5841 enableval="$enable_radiobox"
5842
5843 if test "$enableval" = yes; then
5844 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5845 else
5846 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5847 fi
5848
5849else
5850
5851 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5852 if test "x$LINE" != x ; then
5853 eval "DEFAULT_$LINE"
5854 else
5855 no_cache=1
5856 fi
5857
5858 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5859
5860fi
5861
5862
5863 eval "$ac_cv_use_radiobox"
5864 if test "$no_cache" != 1; then
5865 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5866 fi
5867
5868 if test "$wxUSE_RADIOBOX" = yes; then
5869 echo "$ac_t""yes" 1>&6
5870 else
5871 echo "$ac_t""no" 1>&6
5872 fi
5873
5874
5875 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5876echo "configure:5877: checking for --enable-radiobtn" >&5
5877 no_cache=0
5878 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5879if test "${enable_radiobtn+set}" = set; then
5880 enableval="$enable_radiobtn"
5881
5882 if test "$enableval" = yes; then
5883 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5884 else
5885 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5886 fi
5887
5888else
5889
5890 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5891 if test "x$LINE" != x ; then
5892 eval "DEFAULT_$LINE"
5893 else
5894 no_cache=1
5895 fi
5896
5897 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5898
5899fi
5900
5901
5902 eval "$ac_cv_use_radiobtn"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_RADIOBTN" = yes; then
5908 echo "$ac_t""yes" 1>&6
5909 else
5910 echo "$ac_t""no" 1>&6
5911 fi
5912
5913
5914 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5915echo "configure:5916: checking for --enable-sash" >&5
5916 no_cache=0
5917 # Check whether --enable-sash or --disable-sash was given.
5918if test "${enable_sash+set}" = set; then
5919 enableval="$enable_sash"
5920
5921 if test "$enableval" = yes; then
5922 ac_cv_use_sash='wxUSE_SASH=yes'
5923 else
5924 ac_cv_use_sash='wxUSE_SASH=no'
5925 fi
5926
5927else
5928
5929 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5937
5938fi
5939
5940
5941 eval "$ac_cv_use_sash"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_SASH" = yes; then
5947 echo "$ac_t""yes" 1>&6
5948 else
5949 echo "$ac_t""no" 1>&6
5950 fi
5951
5952
5953 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5954echo "configure:5955: checking for --enable-scrollbar" >&5
5955 no_cache=0
5956 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5957if test "${enable_scrollbar+set}" = set; then
5958 enableval="$enable_scrollbar"
5959
5960 if test "$enableval" = yes; then
5961 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5962 else
5963 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5964 fi
5965
5966else
5967
5968 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5976
5977fi
5978
5979
5980 eval "$ac_cv_use_scrollbar"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_SCROLLBAR" = yes; then
5986 echo "$ac_t""yes" 1>&6
5987 else
5988 echo "$ac_t""no" 1>&6
5989 fi
5990
5991
5992 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5993echo "configure:5994: checking for --enable-slider" >&5
5994 no_cache=0
5995 # Check whether --enable-slider or --disable-slider was given.
5996if test "${enable_slider+set}" = set; then
5997 enableval="$enable_slider"
5998
5999 if test "$enableval" = yes; then
6000 ac_cv_use_slider='wxUSE_SLIDER=yes'
6001 else
6002 ac_cv_use_slider='wxUSE_SLIDER=no'
6003 fi
6004
6005else
6006
6007 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6008 if test "x$LINE" != x ; then
6009 eval "DEFAULT_$LINE"
6010 else
6011 no_cache=1
6012 fi
6013
6014 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6015
6016fi
6017
6018
6019 eval "$ac_cv_use_slider"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_SLIDER" = yes; then
6025 echo "$ac_t""yes" 1>&6
6026 else
6027 echo "$ac_t""no" 1>&6
6028 fi
6029
6030
6031 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6032echo "configure:6033: checking for --enable-spinbtn" >&5
6033 no_cache=0
6034 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6035if test "${enable_spinbtn+set}" = set; then
6036 enableval="$enable_spinbtn"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6040 else
6041 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6054
6055fi
6056
6057
6058 eval "$ac_cv_use_spinbtn"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_SPINBTN" = yes; then
6064 echo "$ac_t""yes" 1>&6
6065 else
6066 echo "$ac_t""no" 1>&6
6067 fi
6068
6069
6070 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6071echo "configure:6072: checking for --enable-spinctrl" >&5
6072 no_cache=0
6073 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6074if test "${enable_spinctrl+set}" = set; then
6075 enableval="$enable_spinctrl"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6079 else
6080 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6081 fi
6082
6083else
6084
6085 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6093
6094fi
6095
6096
6097 eval "$ac_cv_use_spinctrl"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_SPINCTRL" = yes; then
6103 echo "$ac_t""yes" 1>&6
6104 else
6105 echo "$ac_t""no" 1>&6
6106 fi
6107
6108
6109 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6110echo "configure:6111: checking for --enable-splitter" >&5
6111 no_cache=0
6112 # Check whether --enable-splitter or --disable-splitter was given.
6113if test "${enable_splitter+set}" = set; then
6114 enableval="$enable_splitter"
6115
6116 if test "$enableval" = yes; then
6117 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6118 else
6119 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6120 fi
6121
6122else
6123
6124 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6132
6133fi
6134
6135
6136 eval "$ac_cv_use_splitter"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_SPLITTER" = yes; then
6142 echo "$ac_t""yes" 1>&6
6143 else
6144 echo "$ac_t""no" 1>&6
6145 fi
6146
6147
6148 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6149echo "configure:6150: checking for --enable-statbmp" >&5
6150 no_cache=0
6151 # Check whether --enable-statbmp or --disable-statbmp was given.
6152if test "${enable_statbmp+set}" = set; then
6153 enableval="$enable_statbmp"
6154
6155 if test "$enableval" = yes; then
6156 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6157 else
6158 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6159 fi
6160
6161else
6162
6163 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6164 if test "x$LINE" != x ; then
6165 eval "DEFAULT_$LINE"
6166 else
6167 no_cache=1
6168 fi
6169
6170 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6171
6172fi
6173
6174
6175 eval "$ac_cv_use_statbmp"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_STATBMP" = yes; then
6181 echo "$ac_t""yes" 1>&6
6182 else
6183 echo "$ac_t""no" 1>&6
6184 fi
6185
6186
6187 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6188echo "configure:6189: checking for --enable-statbox" >&5
6189 no_cache=0
6190 # Check whether --enable-statbox or --disable-statbox was given.
6191if test "${enable_statbox+set}" = set; then
6192 enableval="$enable_statbox"
6193
6194 if test "$enableval" = yes; then
6195 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6196 else
6197 ac_cv_use_statbox='wxUSE_STATBOX=no'
6198 fi
6199
6200else
6201
6202 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 else
6206 no_cache=1
6207 fi
6208
6209 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6210
6211fi
6212
6213
6214 eval "$ac_cv_use_statbox"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_STATBOX" = yes; then
6220 echo "$ac_t""yes" 1>&6
6221 else
6222 echo "$ac_t""no" 1>&6
6223 fi
6224
6225
6226 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6227echo "configure:6228: checking for --enable-statline" >&5
6228 no_cache=0
6229 # Check whether --enable-statline or --disable-statline was given.
6230if test "${enable_statline+set}" = set; then
6231 enableval="$enable_statline"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_statline='wxUSE_STATLINE=yes'
6235 else
6236 ac_cv_use_statline='wxUSE_STATLINE=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6249
6250fi
6251
6252
6253 eval "$ac_cv_use_statline"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_STATLINE" = yes; then
6259 echo "$ac_t""yes" 1>&6
6260 else
6261 echo "$ac_t""no" 1>&6
6262 fi
6263
6264
6265 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6266echo "configure:6267: checking for --enable-stattext" >&5
6267 no_cache=0
6268 # Check whether --enable-stattext or --disable-stattext was given.
6269if test "${enable_stattext+set}" = set; then
6270 enableval="$enable_stattext"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6274 else
6275 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6276 fi
6277
6278else
6279
6280 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6288
6289fi
6290
6291
6292 eval "$ac_cv_use_stattext"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_STATTEXT" = yes; then
6298 echo "$ac_t""yes" 1>&6
6299 else
6300 echo "$ac_t""no" 1>&6
6301 fi
6302
6303
6304 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6305echo "configure:6306: checking for --enable-statusbar" >&5
6306 no_cache=0
6307 # Check whether --enable-statusbar or --disable-statusbar was given.
6308if test "${enable_statusbar+set}" = set; then
6309 enableval="$enable_statusbar"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6313 else
6314 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6327
6328fi
6329
6330
6331 eval "$ac_cv_use_statusbar"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_STATUSBAR" = yes; then
6337 echo "$ac_t""yes" 1>&6
6338 else
6339 echo "$ac_t""no" 1>&6
6340 fi
6341
6342
6343 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6344echo "configure:6345: checking for --enable-tabdialog" >&5
6345 no_cache=0
6346 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6347if test "${enable_tabdialog+set}" = set; then
6348 enableval="$enable_tabdialog"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6352 else
6353 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6366
6367fi
6368
6369
6370 eval "$ac_cv_use_tabdialog"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_TABDIALOG" = yes; then
6376 echo "$ac_t""yes" 1>&6
6377 else
6378 echo "$ac_t""no" 1>&6
6379 fi
6380
6381
6382 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6383echo "configure:6384: checking for --enable-textctrl" >&5
6384 no_cache=0
6385 # Check whether --enable-textctrl or --disable-textctrl was given.
6386if test "${enable_textctrl+set}" = set; then
6387 enableval="$enable_textctrl"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6391 else
6392 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6393 fi
6394
6395else
6396
6397 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6405
6406fi
6407
6408
6409 eval "$ac_cv_use_textctrl"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_TEXTCTRL" = yes; then
6415 echo "$ac_t""yes" 1>&6
6416 else
6417 echo "$ac_t""no" 1>&6
6418 fi
6419
6420
6421 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6422echo "configure:6423: checking for --enable-togglebtn" >&5
6423 no_cache=0
6424 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6425if test "${enable_togglebtn+set}" = set; then
6426 enableval="$enable_togglebtn"
6427
6428 if test "$enableval" = yes; then
6429 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6430 else
6431 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6432 fi
6433
6434else
6435
6436 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6437 if test "x$LINE" != x ; then
6438 eval "DEFAULT_$LINE"
6439 else
6440 no_cache=1
6441 fi
6442
6443 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6444
6445fi
6446
6447
6448 eval "$ac_cv_use_togglebtn"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_TOGGLEBTN" = yes; then
6454 echo "$ac_t""yes" 1>&6
6455 else
6456 echo "$ac_t""no" 1>&6
6457 fi
6458
6459
6460 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6461echo "configure:6462: checking for --enable-toolbar" >&5
6462 no_cache=0
6463 # Check whether --enable-toolbar or --disable-toolbar was given.
6464if test "${enable_toolbar+set}" = set; then
6465 enableval="$enable_toolbar"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6469 else
6470 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6483
6484fi
6485
6486
6487 eval "$ac_cv_use_toolbar"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_TOOLBAR" = yes; then
6493 echo "$ac_t""yes" 1>&6
6494 else
6495 echo "$ac_t""no" 1>&6
6496 fi
6497
6498
6499 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6500echo "configure:6501: checking for --enable-tbarnative" >&5
6501 no_cache=0
6502 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6503if test "${enable_tbarnative+set}" = set; then
6504 enableval="$enable_tbarnative"
6505
6506 if test "$enableval" = yes; then
6507 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6508 else
6509 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6510 fi
6511
6512else
6513
6514 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6522
6523fi
6524
6525
6526 eval "$ac_cv_use_tbarnative"
6527 if test "$no_cache" != 1; then
6528 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6529 fi
6530
6531 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6532 echo "$ac_t""yes" 1>&6
6533 else
6534 echo "$ac_t""no" 1>&6
6535 fi
6536
6537
6538 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6539echo "configure:6540: checking for --enable-tbarsmpl" >&5
6540 no_cache=0
6541 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6542if test "${enable_tbarsmpl+set}" = set; then
6543 enableval="$enable_tbarsmpl"
6544
6545 if test "$enableval" = yes; then
6546 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6547 else
6548 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6549 fi
6550
6551else
6552
6553 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6561
6562fi
6563
6564
6565 eval "$ac_cv_use_tbarsmpl"
6566 if test "$no_cache" != 1; then
6567 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6568 fi
6569
6570 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6571 echo "$ac_t""yes" 1>&6
6572 else
6573 echo "$ac_t""no" 1>&6
6574 fi
6575
6576
6577 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6578echo "configure:6579: checking for --enable-treectrl" >&5
6579 no_cache=0
6580 # Check whether --enable-treectrl or --disable-treectrl was given.
6581if test "${enable_treectrl+set}" = set; then
6582 enableval="$enable_treectrl"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6586 else
6587 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6588 fi
6589
6590else
6591
6592 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6600
6601fi
6602
6603
6604 eval "$ac_cv_use_treectrl"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_TREECTRL" = yes; then
6610 echo "$ac_t""yes" 1>&6
6611 else
6612 echo "$ac_t""no" 1>&6
6613 fi
6614
6615
6616 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6617echo "configure:6618: checking for --enable-popupwin" >&5
6618 no_cache=0
6619 # Check whether --enable-popupwin or --disable-popupwin was given.
6620if test "${enable_popupwin+set}" = set; then
6621 enableval="$enable_popupwin"
6622
6623 if test "$enableval" = yes; then
6624 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6625 else
6626 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6627 fi
6628
6629else
6630
6631 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6639
6640fi
6641
6642
6643 eval "$ac_cv_use_popupwin"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_POPUPWIN" = yes; then
6649 echo "$ac_t""yes" 1>&6
6650 else
6651 echo "$ac_t""no" 1>&6
6652 fi
6653
6654
6655
6656
6657 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6658echo "configure:6659: checking for --enable-commondlg" >&5
6659 no_cache=0
6660 # Check whether --enable-commondlg or --disable-commondlg was given.
6661if test "${enable_commondlg+set}" = set; then
6662 enableval="$enable_commondlg"
6663
6664 if test "$enableval" = yes; then
6665 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6666 else
6667 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6668 fi
6669
6670else
6671
6672 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6673 if test "x$LINE" != x ; then
6674 eval "DEFAULT_$LINE"
6675 else
6676 no_cache=1
6677 fi
6678
6679 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6680
6681fi
6682
6683
6684 eval "$ac_cv_use_commondlg"
6685 if test "$no_cache" != 1; then
6686 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6687 fi
6688
6689 if test "$wxUSE_COMMONDLGS" = yes; then
6690 echo "$ac_t""yes" 1>&6
6691 else
6692 echo "$ac_t""no" 1>&6
6693 fi
6694
6695
6696 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6697echo "configure:6698: checking for --enable-choicedlg" >&5
6698 no_cache=0
6699 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6700if test "${enable_choicedlg+set}" = set; then
6701 enableval="$enable_choicedlg"
6702
6703 if test "$enableval" = yes; then
6704 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6705 else
6706 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6707 fi
6708
6709else
6710
6711 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6712 if test "x$LINE" != x ; then
6713 eval "DEFAULT_$LINE"
6714 else
6715 no_cache=1
6716 fi
6717
6718 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6719
6720fi
6721
6722
6723 eval "$ac_cv_use_choicedlg"
6724 if test "$no_cache" != 1; then
6725 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6726 fi
6727
6728 if test "$wxUSE_CHOICEDLG" = yes; then
6729 echo "$ac_t""yes" 1>&6
6730 else
6731 echo "$ac_t""no" 1>&6
6732 fi
6733
6734
6735 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6736echo "configure:6737: checking for --enable-coldlg" >&5
6737 no_cache=0
6738 # Check whether --enable-coldlg or --disable-coldlg was given.
6739if test "${enable_coldlg+set}" = set; then
6740 enableval="$enable_coldlg"
6741
6742 if test "$enableval" = yes; then
6743 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6744 else
6745 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6746 fi
6747
6748else
6749
6750 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6751 if test "x$LINE" != x ; then
6752 eval "DEFAULT_$LINE"
6753 else
6754 no_cache=1
6755 fi
6756
6757 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6758
6759fi
6760
6761
6762 eval "$ac_cv_use_coldlg"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6765 fi
6766
6767 if test "$wxUSE_COLOURDLG" = yes; then
6768 echo "$ac_t""yes" 1>&6
6769 else
6770 echo "$ac_t""no" 1>&6
6771 fi
6772
6773
6774 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6775echo "configure:6776: checking for --enable-filedlg" >&5
6776 no_cache=0
6777 # Check whether --enable-filedlg or --disable-filedlg was given.
6778if test "${enable_filedlg+set}" = set; then
6779 enableval="$enable_filedlg"
6780
6781 if test "$enableval" = yes; then
6782 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6783 else
6784 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6785 fi
6786
6787else
6788
6789 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6790 if test "x$LINE" != x ; then
6791 eval "DEFAULT_$LINE"
6792 else
6793 no_cache=1
6794 fi
6795
6796 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6797
6798fi
6799
6800
6801 eval "$ac_cv_use_filedlg"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_FILEDLG" = yes; then
6807 echo "$ac_t""yes" 1>&6
6808 else
6809 echo "$ac_t""no" 1>&6
6810 fi
6811
6812
6813 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6814echo "configure:6815: checking for --enable-filedlg" >&5
6815 no_cache=0
6816 # Check whether --enable-filedlg or --disable-filedlg was given.
6817if test "${enable_filedlg+set}" = set; then
6818 enableval="$enable_filedlg"
6819
6820 if test "$enableval" = yes; then
6821 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6822 else
6823 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6824 fi
6825
6826else
6827
6828 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6829 if test "x$LINE" != x ; then
6830 eval "DEFAULT_$LINE"
6831 else
6832 no_cache=1
6833 fi
6834
6835 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6836
6837fi
6838
6839
6840 eval "$ac_cv_use_filedlg"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_FINDREPLDLG" = yes; then
6846 echo "$ac_t""yes" 1>&6
6847 else
6848 echo "$ac_t""no" 1>&6
6849 fi
6850
6851
6852 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6853echo "configure:6854: checking for --enable-fontdlg" >&5
6854 no_cache=0
6855 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6856if test "${enable_fontdlg+set}" = set; then
6857 enableval="$enable_fontdlg"
6858
6859 if test "$enableval" = yes; then
6860 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6861 else
6862 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6863 fi
6864
6865else
6866
6867 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6868 if test "x$LINE" != x ; then
6869 eval "DEFAULT_$LINE"
6870 else
6871 no_cache=1
6872 fi
6873
6874 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6875
6876fi
6877
6878
6879 eval "$ac_cv_use_fontdlg"
6880 if test "$no_cache" != 1; then
6881 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6882 fi
6883
6884 if test "$wxUSE_FONTDLG" = yes; then
6885 echo "$ac_t""yes" 1>&6
6886 else
6887 echo "$ac_t""no" 1>&6
6888 fi
6889
6890
6891 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6892echo "configure:6893: checking for --enable-dirdlg" >&5
6893 no_cache=0
6894 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6895if test "${enable_dirdlg+set}" = set; then
6896 enableval="$enable_dirdlg"
6897
6898 if test "$enableval" = yes; then
6899 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6900 else
6901 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6902 fi
6903
6904else
6905
6906 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6914
6915fi
6916
6917
6918 eval "$ac_cv_use_dirdlg"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_DIRDLG" = yes; then
6924 echo "$ac_t""yes" 1>&6
6925 else
6926 echo "$ac_t""no" 1>&6
6927 fi
6928
6929
6930 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6931echo "configure:6932: checking for --enable-msgdlg" >&5
6932 no_cache=0
6933 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6934if test "${enable_msgdlg+set}" = set; then
6935 enableval="$enable_msgdlg"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6939 else
6940 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6941 fi
6942
6943else
6944
6945 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6953
6954fi
6955
6956
6957 eval "$ac_cv_use_msgdlg"
6958 if test "$no_cache" != 1; then
6959 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6960 fi
6961
6962 if test "$wxUSE_MSGDLG" = yes; then
6963 echo "$ac_t""yes" 1>&6
6964 else
6965 echo "$ac_t""no" 1>&6
6966 fi
6967
6968
6969 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6970echo "configure:6971: checking for --enable-numberdlg" >&5
6971 no_cache=0
6972 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6973if test "${enable_numberdlg+set}" = set; then
6974 enableval="$enable_numberdlg"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6978 else
6979 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6992
6993fi
6994
6995
6996 eval "$ac_cv_use_numberdlg"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_NUMBERDLG" = yes; then
7002 echo "$ac_t""yes" 1>&6
7003 else
7004 echo "$ac_t""no" 1>&6
7005 fi
7006
7007
7008 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7009echo "configure:7010: checking for --enable-splash" >&5
7010 no_cache=0
7011 # Check whether --enable-splash or --disable-splash was given.
7012if test "${enable_splash+set}" = set; then
7013 enableval="$enable_splash"
7014
7015 if test "$enableval" = yes; then
7016 ac_cv_use_splash='wxUSE_SPLASH=yes'
7017 else
7018 ac_cv_use_splash='wxUSE_SPLASH=no'
7019 fi
7020
7021else
7022
7023 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7024 if test "x$LINE" != x ; then
7025 eval "DEFAULT_$LINE"
7026 else
7027 no_cache=1
7028 fi
7029
7030 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7031
7032fi
7033
7034
7035 eval "$ac_cv_use_splash"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_SPLASH" = yes; then
7041 echo "$ac_t""yes" 1>&6
7042 else
7043 echo "$ac_t""no" 1>&6
7044 fi
7045
7046
7047 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7048echo "configure:7049: checking for --enable-textdlg" >&5
7049 no_cache=0
7050 # Check whether --enable-textdlg or --disable-textdlg was given.
7051if test "${enable_textdlg+set}" = set; then
7052 enableval="$enable_textdlg"
7053
7054 if test "$enableval" = yes; then
7055 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7056 else
7057 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7058 fi
7059
7060else
7061
7062 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7063 if test "x$LINE" != x ; then
7064 eval "DEFAULT_$LINE"
7065 else
7066 no_cache=1
7067 fi
7068
7069 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7070
7071fi
7072
7073
7074 eval "$ac_cv_use_textdlg"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_TEXTDLG" = yes; then
7080 echo "$ac_t""yes" 1>&6
7081 else
7082 echo "$ac_t""no" 1>&6
7083 fi
7084
7085
7086 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7087echo "configure:7088: checking for --enable-tipdlg" >&5
7088 no_cache=0
7089 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7090if test "${enable_tipdlg+set}" = set; then
7091 enableval="$enable_tipdlg"
7092
7093 if test "$enableval" = yes; then
7094 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7095 else
7096 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7097 fi
7098
7099else
7100
7101 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7102 if test "x$LINE" != x ; then
7103 eval "DEFAULT_$LINE"
7104 else
7105 no_cache=1
7106 fi
7107
7108 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7109
7110fi
7111
7112
7113 eval "$ac_cv_use_tipdlg"
7114 if test "$no_cache" != 1; then
7115 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7116 fi
7117
7118 if test "$wxUSE_STARTUP_TIPS" = yes; then
7119 echo "$ac_t""yes" 1>&6
7120 else
7121 echo "$ac_t""no" 1>&6
7122 fi
7123
7124
7125 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7126echo "configure:7127: checking for --enable-progressdlg" >&5
7127 no_cache=0
7128 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7129if test "${enable_progressdlg+set}" = set; then
7130 enableval="$enable_progressdlg"
7131
7132 if test "$enableval" = yes; then
7133 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7134 else
7135 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7136 fi
7137
7138else
7139
7140 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7141 if test "x$LINE" != x ; then
7142 eval "DEFAULT_$LINE"
7143 else
7144 no_cache=1
7145 fi
7146
7147 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7148
7149fi
7150
7151
7152 eval "$ac_cv_use_progressdlg"
7153 if test "$no_cache" != 1; then
7154 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7155 fi
7156
7157 if test "$wxUSE_PROGRESSDLG" = yes; then
7158 echo "$ac_t""yes" 1>&6
7159 else
7160 echo "$ac_t""no" 1>&6
7161 fi
7162
7163
7164 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7165echo "configure:7166: checking for --enable-wizarddlg" >&5
7166 no_cache=0
7167 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7168if test "${enable_wizarddlg+set}" = set; then
7169 enableval="$enable_wizarddlg"
7170
7171 if test "$enableval" = yes; then
7172 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7173 else
7174 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7175 fi
7176
7177else
7178
7179 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7180 if test "x$LINE" != x ; then
7181 eval "DEFAULT_$LINE"
7182 else
7183 no_cache=1
7184 fi
7185
7186 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7187
7188fi
7189
7190
7191 eval "$ac_cv_use_wizarddlg"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_WIZARDDLG" = yes; then
7197 echo "$ac_t""yes" 1>&6
7198 else
7199 echo "$ac_t""no" 1>&6
7200 fi
7201
7202
7203
7204
7205 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7206echo "configure:7207: checking for --enable-menus" >&5
7207 no_cache=0
7208 # Check whether --enable-menus or --disable-menus was given.
7209if test "${enable_menus+set}" = set; then
7210 enableval="$enable_menus"
7211
7212 if test "$enableval" = yes; then
7213 ac_cv_use_menus='wxUSE_MENUS=yes'
7214 else
7215 ac_cv_use_menus='wxUSE_MENUS=no'
7216 fi
7217
7218else
7219
7220 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7221 if test "x$LINE" != x ; then
7222 eval "DEFAULT_$LINE"
7223 else
7224 no_cache=1
7225 fi
7226
7227 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7228
7229fi
7230
7231
7232 eval "$ac_cv_use_menus"
7233 if test "$no_cache" != 1; then
7234 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7235 fi
7236
7237 if test "$wxUSE_MENUS" = yes; then
7238 echo "$ac_t""yes" 1>&6
7239 else
7240 echo "$ac_t""no" 1>&6
7241 fi
7242
7243
7244 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7245echo "configure:7246: checking for --enable-miniframe" >&5
7246 no_cache=0
7247 # Check whether --enable-miniframe or --disable-miniframe was given.
7248if test "${enable_miniframe+set}" = set; then
7249 enableval="$enable_miniframe"
7250
7251 if test "$enableval" = yes; then
7252 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7253 else
7254 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7255 fi
7256
7257else
7258
7259 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7260 if test "x$LINE" != x ; then
7261 eval "DEFAULT_$LINE"
7262 else
7263 no_cache=1
7264 fi
7265
7266 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7267
7268fi
7269
7270
7271 eval "$ac_cv_use_miniframe"
7272 if test "$no_cache" != 1; then
7273 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7274 fi
7275
7276 if test "$wxUSE_MINIFRAME" = yes; then
7277 echo "$ac_t""yes" 1>&6
7278 else
7279 echo "$ac_t""no" 1>&6
7280 fi
7281
7282
7283 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7284echo "configure:7285: checking for --enable-tooltips" >&5
7285 no_cache=0
7286 # Check whether --enable-tooltips or --disable-tooltips was given.
7287if test "${enable_tooltips+set}" = set; then
7288 enableval="$enable_tooltips"
7289
7290 if test "$enableval" = yes; then
7291 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7292 else
7293 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7294 fi
7295
7296else
7297
7298 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7299 if test "x$LINE" != x ; then
7300 eval "DEFAULT_$LINE"
7301 else
7302 no_cache=1
7303 fi
7304
7305 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7306
7307fi
7308
7309
7310 eval "$ac_cv_use_tooltips"
7311 if test "$no_cache" != 1; then
7312 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7313 fi
7314
7315 if test "$wxUSE_TOOLTIPS" = yes; then
7316 echo "$ac_t""yes" 1>&6
7317 else
7318 echo "$ac_t""no" 1>&6
7319 fi
7320
7321
7322 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7323echo "configure:7324: checking for --enable-splines" >&5
7324 no_cache=0
7325 # Check whether --enable-splines or --disable-splines was given.
7326if test "${enable_splines+set}" = set; then
7327 enableval="$enable_splines"
7328
7329 if test "$enableval" = yes; then
7330 ac_cv_use_splines='wxUSE_SPLINES=yes'
7331 else
7332 ac_cv_use_splines='wxUSE_SPLINES=no'
7333 fi
7334
7335else
7336
7337 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7338 if test "x$LINE" != x ; then
7339 eval "DEFAULT_$LINE"
7340 else
7341 no_cache=1
7342 fi
7343
7344 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7345
7346fi
7347
7348
7349 eval "$ac_cv_use_splines"
7350 if test "$no_cache" != 1; then
7351 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7352 fi
7353
7354 if test "$wxUSE_SPLINES" = yes; then
7355 echo "$ac_t""yes" 1>&6
7356 else
7357 echo "$ac_t""no" 1>&6
7358 fi
7359
7360
7361 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7362echo "configure:7363: checking for --enable-validators" >&5
7363 no_cache=0
7364 # Check whether --enable-validators or --disable-validators was given.
7365if test "${enable_validators+set}" = set; then
7366 enableval="$enable_validators"
7367
7368 if test "$enableval" = yes; then
7369 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7370 else
7371 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7372 fi
7373
7374else
7375
7376 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7384
7385fi
7386
7387
7388 eval "$ac_cv_use_validators"
7389 if test "$no_cache" != 1; then
7390 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7391 fi
7392
7393 if test "$wxUSE_VALIDATORS" = yes; then
7394 echo "$ac_t""yes" 1>&6
7395 else
7396 echo "$ac_t""no" 1>&6
7397 fi
7398
7399
7400 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7401echo "configure:7402: checking for --enable-busyinfo" >&5
7402 no_cache=0
7403 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7404if test "${enable_busyinfo+set}" = set; then
7405 enableval="$enable_busyinfo"
7406
7407 if test "$enableval" = yes; then
7408 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7409 else
7410 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7411 fi
7412
7413else
7414
7415 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7416 if test "x$LINE" != x ; then
7417 eval "DEFAULT_$LINE"
7418 else
7419 no_cache=1
7420 fi
7421
7422 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7423
7424fi
7425
7426
7427 eval "$ac_cv_use_busyinfo"
7428 if test "$no_cache" != 1; then
7429 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7430 fi
7431
7432 if test "$wxUSE_BUSYINFO" = yes; then
7433 echo "$ac_t""yes" 1>&6
7434 else
7435 echo "$ac_t""no" 1>&6
7436 fi
7437
7438
7439 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7440echo "configure:7441: checking for --enable-joystick" >&5
7441 no_cache=0
7442 # Check whether --enable-joystick or --disable-joystick was given.
7443if test "${enable_joystick+set}" = set; then
7444 enableval="$enable_joystick"
7445
7446 if test "$enableval" = yes; then
7447 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7448 else
7449 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7450 fi
7451
7452else
7453
7454 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7455 if test "x$LINE" != x ; then
7456 eval "DEFAULT_$LINE"
7457 else
7458 no_cache=1
7459 fi
7460
7461 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7462
7463fi
7464
7465
7466 eval "$ac_cv_use_joystick"
7467 if test "$no_cache" != 1; then
7468 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7469 fi
7470
7471 if test "$wxUSE_JOYSTICK" = yes; then
7472 echo "$ac_t""yes" 1>&6
7473 else
7474 echo "$ac_t""no" 1>&6
7475 fi
7476
7477
7478 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7479echo "configure:7480: checking for --enable-metafile" >&5
7480 no_cache=0
7481 # Check whether --enable-metafile or --disable-metafile was given.
7482if test "${enable_metafile+set}" = set; then
7483 enableval="$enable_metafile"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7487 else
7488 ac_cv_use_metafile='wxUSE_METAFILE=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7501
7502fi
7503
7504
7505 eval "$ac_cv_use_metafile"
7506 if test "$no_cache" != 1; then
7507 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7508 fi
7509
7510 if test "$wxUSE_METAFILE" = yes; then
7511 echo "$ac_t""yes" 1>&6
7512 else
7513 echo "$ac_t""no" 1>&6
7514 fi
7515
7516
7517 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7518echo "configure:7519: checking for --enable-dragimage" >&5
7519 no_cache=0
7520 # Check whether --enable-dragimage or --disable-dragimage was given.
7521if test "${enable_dragimage+set}" = set; then
7522 enableval="$enable_dragimage"
7523
7524 if test "$enableval" = yes; then
7525 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7526 else
7527 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7528 fi
7529
7530else
7531
7532 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7533 if test "x$LINE" != x ; then
7534 eval "DEFAULT_$LINE"
7535 else
7536 no_cache=1
7537 fi
7538
7539 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7540
7541fi
7542
7543
7544 eval "$ac_cv_use_dragimage"
7545 if test "$no_cache" != 1; then
7546 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7547 fi
7548
7549 if test "$wxUSE_DRAGIMAGE" = yes; then
7550 echo "$ac_t""yes" 1>&6
7551 else
7552 echo "$ac_t""no" 1>&6
7553 fi
7554
7555
7556
7557
7558 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7559echo "configure:7560: checking for --enable-palette" >&5
7560 no_cache=0
7561 # Check whether --enable-palette or --disable-palette was given.
7562if test "${enable_palette+set}" = set; then
7563 enableval="$enable_palette"
7564
7565 if test "$enableval" = yes; then
7566 ac_cv_use_palette='wxUSE_PALETTE=yes'
7567 else
7568 ac_cv_use_palette='wxUSE_PALETTE=no'
7569 fi
7570
7571else
7572
7573 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7574 if test "x$LINE" != x ; then
7575 eval "DEFAULT_$LINE"
7576 else
7577 no_cache=1
7578 fi
7579
7580 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7581
7582fi
7583
7584
7585 eval "$ac_cv_use_palette"
7586 if test "$no_cache" != 1; then
7587 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7588 fi
7589
7590 if test "$wxUSE_PALETTE" = yes; then
7591 echo "$ac_t""yes" 1>&6
7592 else
7593 echo "$ac_t""no" 1>&6
7594 fi
7595
7596
7597 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7598echo "configure:7599: checking for --enable-image" >&5
7599 no_cache=0
7600 # Check whether --enable-image or --disable-image was given.
7601if test "${enable_image+set}" = set; then
7602 enableval="$enable_image"
7603
7604 if test "$enableval" = yes; then
7605 ac_cv_use_image='wxUSE_IMAGE=yes'
7606 else
7607 ac_cv_use_image='wxUSE_IMAGE=no'
7608 fi
7609
7610else
7611
7612 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7613 if test "x$LINE" != x ; then
7614 eval "DEFAULT_$LINE"
7615 else
7616 no_cache=1
7617 fi
7618
7619 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7620
7621fi
7622
7623
7624 eval "$ac_cv_use_image"
7625 if test "$no_cache" != 1; then
7626 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7627 fi
7628
7629 if test "$wxUSE_IMAGE" = yes; then
7630 echo "$ac_t""yes" 1>&6
7631 else
7632 echo "$ac_t""no" 1>&6
7633 fi
7634
7635
7636 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7637echo "configure:7638: checking for --enable-gif" >&5
7638 no_cache=0
7639 # Check whether --enable-gif or --disable-gif was given.
7640if test "${enable_gif+set}" = set; then
7641 enableval="$enable_gif"
7642
7643 if test "$enableval" = yes; then
7644 ac_cv_use_gif='wxUSE_GIF=yes'
7645 else
7646 ac_cv_use_gif='wxUSE_GIF=no'
7647 fi
7648
7649else
7650
7651 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7652 if test "x$LINE" != x ; then
7653 eval "DEFAULT_$LINE"
7654 else
7655 no_cache=1
7656 fi
7657
7658 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7659
7660fi
7661
7662
7663 eval "$ac_cv_use_gif"
7664 if test "$no_cache" != 1; then
7665 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7666 fi
7667
7668 if test "$wxUSE_GIF" = yes; then
7669 echo "$ac_t""yes" 1>&6
7670 else
7671 echo "$ac_t""no" 1>&6
7672 fi
7673
7674
7675 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7676echo "configure:7677: checking for --enable-pcx" >&5
7677 no_cache=0
7678 # Check whether --enable-pcx or --disable-pcx was given.
7679if test "${enable_pcx+set}" = set; then
7680 enableval="$enable_pcx"
7681
7682 if test "$enableval" = yes; then
7683 ac_cv_use_pcx='wxUSE_PCX=yes'
7684 else
7685 ac_cv_use_pcx='wxUSE_PCX=no'
7686 fi
7687
7688else
7689
7690 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7691 if test "x$LINE" != x ; then
7692 eval "DEFAULT_$LINE"
7693 else
7694 no_cache=1
7695 fi
7696
7697 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7698
7699fi
7700
7701
7702 eval "$ac_cv_use_pcx"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_PCX" = yes; then
7708 echo "$ac_t""yes" 1>&6
7709 else
7710 echo "$ac_t""no" 1>&6
7711 fi
7712
7713
7714 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7715echo "configure:7716: checking for --enable-pnm" >&5
7716 no_cache=0
7717 # Check whether --enable-pnm or --disable-pnm was given.
7718if test "${enable_pnm+set}" = set; then
7719 enableval="$enable_pnm"
7720
7721 if test "$enableval" = yes; then
7722 ac_cv_use_pnm='wxUSE_PNM=yes'
7723 else
7724 ac_cv_use_pnm='wxUSE_PNM=no'
7725 fi
7726
7727else
7728
7729 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7730 if test "x$LINE" != x ; then
7731 eval "DEFAULT_$LINE"
7732 else
7733 no_cache=1
7734 fi
7735
7736 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7737
7738fi
7739
7740
7741 eval "$ac_cv_use_pnm"
7742 if test "$no_cache" != 1; then
7743 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7744 fi
7745
7746 if test "$wxUSE_PNM" = yes; then
7747 echo "$ac_t""yes" 1>&6
7748 else
7749 echo "$ac_t""no" 1>&6
7750 fi
7751
7752
7753 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7754echo "configure:7755: checking for --enable-pnm" >&5
7755 no_cache=0
7756 # Check whether --enable-pnm or --disable-pnm was given.
7757if test "${enable_pnm+set}" = set; then
7758 enableval="$enable_pnm"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_pnm='wxUSE_XPM=yes'
7762 else
7763 ac_cv_use_pnm='wxUSE_XPM=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7776
7777fi
7778
7779
7780 eval "$ac_cv_use_pnm"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_XPM" = yes; then
7786 echo "$ac_t""yes" 1>&6
7787 else
7788 echo "$ac_t""no" 1>&6
7789 fi
7790
7791
7792fi
7793
7794
7795 echo "saving argument cache $wx_arg_cache_file"
7796 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7797
7798
7799
7800echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7801echo "configure:7802: checking for toolkit" >&5
7802
7803if test "$wxUSE_GUI" = "yes"; then
7804
7805 if test "$USE_BEOS" = 1; then
7806 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7807 fi
7808
7809 if test "$TOOLKIT_GIVEN" = 1; then
7810 for toolkit in `echo $ALL_TOOLKITS`; do
7811 var=wxUSE_$toolkit
7812 eval "value=\$${var}"
7813 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7814 done
7815 else
7816 for toolkit in `echo $ALL_TOOLKITS`; do
7817 if test "$has_toolkit_in_cache" != 1; then
7818 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7819 else
7820 var=DEFAULT_wxUSE_$toolkit
7821 fi
7822 eval "wxUSE_$toolkit=\$${var}"
7823 done
7824 fi
7825
7826 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7827 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7828 + ${wxUSE_MGL:-0}`
7829
7830 case "${host}" in
7831 *-pc-os2_emx | *-pc-os2-emx )
7832 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7833 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7834 LEX_STEM="lexyy"
7835 ;;
7836 *)
7837 PATH_IFS=':'
7838 LEX_STEM="lex.yy"
7839 ;;
7840 esac
7841
7842 case "$NUM_TOOLKITS" in
7843 1)
7844 ;;
7845 0)
7846 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7847 ;;
7848 *)
7849 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7850 esac
7851
7852 for toolkit in `echo $ALL_TOOLKITS`; do
7853 var=wxUSE_$toolkit
7854 eval "value=\$${var}"
7855 if test "x$value" != x; then
7856 cache_var=CACHE_$toolkit
7857 eval "cache=\$${cache_var}"
7858 if test "$cache" = 1; then
7859 echo "$var=$value" >> ${wx_arg_cache_file}
7860 fi
7861 if test "$value" = 1; then
7862 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7863 echo "$ac_t""$toolkit_echo" 1>&6
7864 fi
7865 fi
7866 done
7867else
7868 PATH_IFS=':'
7869 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7870fi
7871
7872
7873cat > confcache <<\EOF
7874# This file is a shell script that caches the results of configure
7875# tests run on this system so they can be shared between configure
7876# scripts and configure runs. It is not useful on other systems.
7877# If it contains results you don't want to keep, you may remove or edit it.
7878#
7879# By default, configure uses ./config.cache as the cache file,
7880# creating it if it does not exist already. You can give configure
7881# the --cache-file=FILE option to use a different cache file; that is
7882# what configure does when it calls configure scripts in
7883# subdirectories, so they share the cache.
7884# Giving --cache-file=/dev/null disables caching, for debugging configure.
7885# config.status only pays attention to the cache file if you give it the
7886# --recheck option to rerun configure.
7887#
7888EOF
7889# The following way of writing the cache mishandles newlines in values,
7890# but we know of no workaround that is simple, portable, and efficient.
7891# So, don't put newlines in cache variables' values.
7892# Ultrix sh set writes to stderr and can't be redirected directly,
7893# and sets the high bit in the cache file unless we assign to the vars.
7894(set) 2>&1 |
7895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7896 *ac_space=\ *)
7897 # `set' does not quote correctly, so add quotes (double-quote substitution
7898 # turns \\\\ into \\, and sed turns \\ into \).
7899 sed -n \
7900 -e "s/'/'\\\\''/g" \
7901 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7902 ;;
7903 *)
7904 # `set' quotes correctly as required by POSIX, so do not add quotes.
7905 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7906 ;;
7907 esac >> confcache
7908if cmp -s $cache_file confcache; then
7909 :
7910else
7911 if test -w $cache_file; then
7912 echo "updating cache $cache_file"
7913 cat confcache > $cache_file
7914 else
7915 echo "not updating unwritable cache $cache_file"
7916 fi
7917fi
7918rm -f confcache
7919
7920
7921if test "$build" != "$host" ; then
7922 if test "$USE_WIN32" = 1 ; then
7923 CC=$host_alias-gcc
7924 CXX=$host_alias-c++
7925 AR=$host_alias-ar
7926 RANLIB=$host_alias-ranlib
7927 DLLTOOL=$host_alias-dlltool
7928 RESCOMP=$host_alias-windres
7929 LD=$host_alias-ld
7930 NM=$host_alias-nm
7931 STRIP=$host_alias-strip
7932 else
7933 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7934 fi
7935fi
7936
7937# Extract the first word of "gcc", so it can be a program name with args.
7938set dummy gcc; ac_word=$2
7939echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7940echo "configure:7941: checking for $ac_word" >&5
7941if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7943else
7944 if test -n "$CC"; then
7945 ac_cv_prog_CC="$CC" # Let the user override the test.
7946else
7947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7948 ac_dummy="$PATH"
7949 for ac_dir in $ac_dummy; do
7950 test -z "$ac_dir" && ac_dir=.
7951 if test -f $ac_dir/$ac_word; then
7952 ac_cv_prog_CC="gcc"
7953 break
7954 fi
7955 done
7956 IFS="$ac_save_ifs"
7957fi
7958fi
7959CC="$ac_cv_prog_CC"
7960if test -n "$CC"; then
7961 echo "$ac_t""$CC" 1>&6
7962else
7963 echo "$ac_t""no" 1>&6
7964fi
7965
7966if test -z "$CC"; then
7967 # Extract the first word of "cc", so it can be a program name with args.
7968set dummy cc; ac_word=$2
7969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7970echo "configure:7971: checking for $ac_word" >&5
7971if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7973else
7974 if test -n "$CC"; then
7975 ac_cv_prog_CC="$CC" # Let the user override the test.
7976else
7977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7978 ac_prog_rejected=no
7979 ac_dummy="$PATH"
7980 for ac_dir in $ac_dummy; do
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f $ac_dir/$ac_word; then
7983 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7984 ac_prog_rejected=yes
7985 continue
7986 fi
7987 ac_cv_prog_CC="cc"
7988 break
7989 fi
7990 done
7991 IFS="$ac_save_ifs"
7992if test $ac_prog_rejected = yes; then
7993 # We found a bogon in the path, so make sure we never use it.
7994 set dummy $ac_cv_prog_CC
7995 shift
7996 if test $# -gt 0; then
7997 # We chose a different compiler from the bogus one.
7998 # However, it has the same basename, so the bogon will be chosen
7999 # first if we set CC to just the basename; use the full file name.
8000 shift
8001 set dummy "$ac_dir/$ac_word" "$@"
8002 shift
8003 ac_cv_prog_CC="$@"
8004 fi
8005fi
8006fi
8007fi
8008CC="$ac_cv_prog_CC"
8009if test -n "$CC"; then
8010 echo "$ac_t""$CC" 1>&6
8011else
8012 echo "$ac_t""no" 1>&6
8013fi
8014
8015 if test -z "$CC"; then
8016 case "`uname -s`" in
8017 *win32* | *WIN32*)
8018 # Extract the first word of "cl", so it can be a program name with args.
8019set dummy cl; ac_word=$2
8020echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8021echo "configure:8022: checking for $ac_word" >&5
8022if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8024else
8025 if test -n "$CC"; then
8026 ac_cv_prog_CC="$CC" # Let the user override the test.
8027else
8028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8029 ac_dummy="$PATH"
8030 for ac_dir in $ac_dummy; do
8031 test -z "$ac_dir" && ac_dir=.
8032 if test -f $ac_dir/$ac_word; then
8033 ac_cv_prog_CC="cl"
8034 break
8035 fi
8036 done
8037 IFS="$ac_save_ifs"
8038fi
8039fi
8040CC="$ac_cv_prog_CC"
8041if test -n "$CC"; then
8042 echo "$ac_t""$CC" 1>&6
8043else
8044 echo "$ac_t""no" 1>&6
8045fi
8046 ;;
8047 esac
8048 fi
8049 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8050fi
8051
8052echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8053echo "configure:8054: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8054
8055ac_ext=c
8056# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8057ac_cpp='$CPP $CPPFLAGS'
8058ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8059ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8060cross_compiling=$ac_cv_prog_cc_cross
8061
8062cat > conftest.$ac_ext << EOF
8063
8064#line 8065 "configure"
8065#include "confdefs.h"
8066
8067main(){return(0);}
8068EOF
8069if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8070 ac_cv_prog_cc_works=yes
8071 # If we can't run a trivial program, we are probably using a cross compiler.
8072 if (./conftest; exit) 2>/dev/null; then
8073 ac_cv_prog_cc_cross=no
8074 else
8075 ac_cv_prog_cc_cross=yes
8076 fi
8077else
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 ac_cv_prog_cc_works=no
8081fi
8082rm -fr conftest*
8083ac_ext=c
8084# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8085ac_cpp='$CPP $CPPFLAGS'
8086ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8087ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8088cross_compiling=$ac_cv_prog_cc_cross
8089
8090echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8091if test $ac_cv_prog_cc_works = no; then
8092 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8093fi
8094echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8095echo "configure:8096: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8096echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8097cross_compiling=$ac_cv_prog_cc_cross
8098
8099echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8100echo "configure:8101: checking whether we are using GNU C" >&5
8101if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8103else
8104 cat > conftest.c <<EOF
8105#ifdef __GNUC__
8106 yes;
8107#endif
8108EOF
8109if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8110 ac_cv_prog_gcc=yes
8111else
8112 ac_cv_prog_gcc=no
8113fi
8114fi
8115
8116echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8117
8118if test $ac_cv_prog_gcc = yes; then
8119 GCC=yes
8120else
8121 GCC=
8122fi
8123
8124ac_test_CFLAGS="${CFLAGS+set}"
8125ac_save_CFLAGS="$CFLAGS"
8126CFLAGS=
8127echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8128echo "configure:8129: checking whether ${CC-cc} accepts -g" >&5
8129if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8130 echo $ac_n "(cached) $ac_c" 1>&6
8131else
8132 echo 'void f(){}' > conftest.c
8133if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8134 ac_cv_prog_cc_g=yes
8135else
8136 ac_cv_prog_cc_g=no
8137fi
8138rm -f conftest*
8139
8140fi
8141
8142echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8143if test "$ac_test_CFLAGS" = set; then
8144 CFLAGS="$ac_save_CFLAGS"
8145elif test $ac_cv_prog_cc_g = yes; then
8146 if test "$GCC" = yes; then
8147 CFLAGS="-g -O2"
8148 else
8149 CFLAGS="-g"
8150 fi
8151else
8152 if test "$GCC" = yes; then
8153 CFLAGS="-O2"
8154 else
8155 CFLAGS=
8156 fi
8157fi
8158
8159
8160CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8161
8162echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8163echo "configure:8164: checking how to run the C preprocessor" >&5
8164# On Suns, sometimes $CPP names a directory.
8165if test -n "$CPP" && test -d "$CPP"; then
8166 CPP=
8167fi
8168if test -z "$CPP"; then
8169if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
8171else
8172 # This must be in double quotes, not single quotes, because CPP may get
8173 # substituted into the Makefile and "${CC-cc}" will confuse make.
8174 CPP="${CC-cc} -E"
8175 # On the NeXT, cc -E runs the code through the compiler's parser,
8176 # not just through cpp.
8177 cat > conftest.$ac_ext <<EOF
8178#line 8179 "configure"
8179#include "confdefs.h"
8180#include <assert.h>
8181Syntax Error
8182EOF
8183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8184{ (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8185ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8186if test -z "$ac_err"; then
8187 :
8188else
8189 echo "$ac_err" >&5
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8192 rm -rf conftest*
8193 CPP="${CC-cc} -E -traditional-cpp"
8194 cat > conftest.$ac_ext <<EOF
8195#line 8196 "configure"
8196#include "confdefs.h"
8197#include <assert.h>
8198Syntax Error
8199EOF
8200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8201{ (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8203if test -z "$ac_err"; then
8204 :
8205else
8206 echo "$ac_err" >&5
8207 echo "configure: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 rm -rf conftest*
8210 CPP="${CC-cc} -nologo -E"
8211 cat > conftest.$ac_ext <<EOF
8212#line 8213 "configure"
8213#include "confdefs.h"
8214#include <assert.h>
8215Syntax Error
8216EOF
8217ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8218{ (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8219ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8220if test -z "$ac_err"; then
8221 :
8222else
8223 echo "$ac_err" >&5
8224 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8226 rm -rf conftest*
8227 CPP=/lib/cpp
8228fi
8229rm -f conftest*
8230fi
8231rm -f conftest*
8232fi
8233rm -f conftest*
8234 ac_cv_prog_CPP="$CPP"
8235fi
8236 CPP="$ac_cv_prog_CPP"
8237else
8238 ac_cv_prog_CPP="$CPP"
8239fi
8240echo "$ac_t""$CPP" 1>&6
8241
8242if test $ac_cv_prog_gcc = yes; then
8243 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8244echo "configure:8245: checking whether ${CC-cc} needs -traditional" >&5
8245if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8246 echo $ac_n "(cached) $ac_c" 1>&6
8247else
8248 ac_pattern="Autoconf.*'x'"
8249 cat > conftest.$ac_ext <<EOF
8250#line 8251 "configure"
8251#include "confdefs.h"
8252#include <sgtty.h>
8253Autoconf TIOCGETP
8254EOF
8255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256 egrep "$ac_pattern" >/dev/null 2>&1; then
8257 rm -rf conftest*
8258 ac_cv_prog_gcc_traditional=yes
8259else
8260 rm -rf conftest*
8261 ac_cv_prog_gcc_traditional=no
8262fi
8263rm -f conftest*
8264
8265
8266 if test $ac_cv_prog_gcc_traditional = no; then
8267 cat > conftest.$ac_ext <<EOF
8268#line 8269 "configure"
8269#include "confdefs.h"
8270#include <termio.h>
8271Autoconf TCGETA
8272EOF
8273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274 egrep "$ac_pattern" >/dev/null 2>&1; then
8275 rm -rf conftest*
8276 ac_cv_prog_gcc_traditional=yes
8277fi
8278rm -f conftest*
8279
8280 fi
8281fi
8282
8283echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8284 if test $ac_cv_prog_gcc_traditional = yes; then
8285 CC="$CC -traditional"
8286 fi
8287fi
8288
8289
8290
8291ac_ext=C
8292# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8293ac_cpp='$CXXCPP $CPPFLAGS'
8294ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8295ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8296cross_compiling=$ac_cv_prog_cxx_cross
8297
8298
8299for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8300do
8301# Extract the first word of "$ac_prog", so it can be a program name with args.
8302set dummy $ac_prog; ac_word=$2
8303echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8304echo "configure:8305: checking for $ac_word" >&5
8305if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8307else
8308 if test -n "$CXX"; then
8309 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8310else
8311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8312 ac_dummy="$PATH"
8313 for ac_dir in $ac_dummy; do
8314 test -z "$ac_dir" && ac_dir=.
8315 if test -f $ac_dir/$ac_word; then
8316 ac_cv_prog_CXX="$ac_prog"
8317 break
8318 fi
8319 done
8320 IFS="$ac_save_ifs"
8321fi
8322fi
8323CXX="$ac_cv_prog_CXX"
8324if test -n "$CXX"; then
8325 echo "$ac_t""$CXX" 1>&6
8326else
8327 echo "$ac_t""no" 1>&6
8328fi
8329
8330test -n "$CXX" && break
8331done
8332test -n "$CXX" || CXX="gcc"
8333
8334
8335echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8336echo "configure:8337: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8337
8338ac_ext=C
8339# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8340ac_cpp='$CXXCPP $CPPFLAGS'
8341ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8342ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8343cross_compiling=$ac_cv_prog_cxx_cross
8344
8345cat > conftest.$ac_ext << EOF
8346
8347#line 8348 "configure"
8348#include "confdefs.h"
8349
8350int main(){return(0);}
8351EOF
8352if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 ac_cv_prog_cxx_works=yes
8354 # If we can't run a trivial program, we are probably using a cross compiler.
8355 if (./conftest; exit) 2>/dev/null; then
8356 ac_cv_prog_cxx_cross=no
8357 else
8358 ac_cv_prog_cxx_cross=yes
8359 fi
8360else
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 ac_cv_prog_cxx_works=no
8364fi
8365rm -fr conftest*
8366ac_ext=C
8367# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8368ac_cpp='$CXXCPP $CPPFLAGS'
8369ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8370ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8371cross_compiling=$ac_cv_prog_cxx_cross
8372
8373echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8374if test $ac_cv_prog_cxx_works = no; then
8375 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8376fi
8377echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8378echo "configure:8379: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8379echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8380cross_compiling=$ac_cv_prog_cxx_cross
8381
8382echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8383echo "configure:8384: checking whether we are using GNU C++" >&5
8384if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8386else
8387 cat > conftest.C <<EOF
8388#ifdef __GNUC__
8389 yes;
8390#endif
8391EOF
8392if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8393 ac_cv_prog_gxx=yes
8394else
8395 ac_cv_prog_gxx=no
8396fi
8397fi
8398
8399echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8400
8401if test $ac_cv_prog_gxx = yes; then
8402 GXX=yes
8403else
8404 GXX=
8405fi
8406
8407ac_test_CXXFLAGS="${CXXFLAGS+set}"
8408ac_save_CXXFLAGS="$CXXFLAGS"
8409CXXFLAGS=
8410echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8411echo "configure:8412: checking whether ${CXX-g++} accepts -g" >&5
8412if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8414else
8415 echo 'void f(){}' > conftest.cc
8416if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8417 ac_cv_prog_cxx_g=yes
8418else
8419 ac_cv_prog_cxx_g=no
8420fi
8421rm -f conftest*
8422
8423fi
8424
8425echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8426if test "$ac_test_CXXFLAGS" = set; then
8427 CXXFLAGS="$ac_save_CXXFLAGS"
8428elif test $ac_cv_prog_cxx_g = yes; then
8429 if test "$GXX" = yes; then
8430 CXXFLAGS="-g -O2"
8431 else
8432 CXXFLAGS="-g"
8433 fi
8434else
8435 if test "$GXX" = yes; then
8436 CXXFLAGS="-O2"
8437 else
8438 CXXFLAGS=
8439 fi
8440fi
8441
8442
8443CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8444
8445ac_ext=c
8446# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8447ac_cpp='$CPP $CPPFLAGS'
8448ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8449ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8450cross_compiling=$ac_cv_prog_cc_cross
8451
8452
8453# Extract the first word of "ranlib", so it can be a program name with args.
8454set dummy ranlib; ac_word=$2
8455echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8456echo "configure:8457: checking for $ac_word" >&5
8457if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8458 echo $ac_n "(cached) $ac_c" 1>&6
8459else
8460 if test -n "$RANLIB"; then
8461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8462else
8463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8464 ac_dummy="$PATH"
8465 for ac_dir in $ac_dummy; do
8466 test -z "$ac_dir" && ac_dir=.
8467 if test -f $ac_dir/$ac_word; then
8468 ac_cv_prog_RANLIB="ranlib"
8469 break
8470 fi
8471 done
8472 IFS="$ac_save_ifs"
8473 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8474fi
8475fi
8476RANLIB="$ac_cv_prog_RANLIB"
8477if test -n "$RANLIB"; then
8478 echo "$ac_t""$RANLIB" 1>&6
8479else
8480 echo "$ac_t""no" 1>&6
8481fi
8482
8483
8484# Extract the first word of "ar", so it can be a program name with args.
8485set dummy ar; ac_word=$2
8486echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8487echo "configure:8488: checking for $ac_word" >&5
8488if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8489 echo $ac_n "(cached) $ac_c" 1>&6
8490else
8491 if test -n "$AR"; then
8492 ac_cv_prog_AR="$AR" # Let the user override the test.
8493else
8494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8495 ac_dummy="$PATH"
8496 for ac_dir in $ac_dummy; do
8497 test -z "$ac_dir" && ac_dir=.
8498 if test -f $ac_dir/$ac_word; then
8499 ac_cv_prog_AR="ar"
8500 break
8501 fi
8502 done
8503 IFS="$ac_save_ifs"
8504 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8505fi
8506fi
8507AR="$ac_cv_prog_AR"
8508if test -n "$AR"; then
8509 echo "$ac_t""$AR" 1>&6
8510else
8511 echo "$ac_t""no" 1>&6
8512fi
8513
8514
8515# Find a good install program. We prefer a C program (faster),
8516# so one script is as good as another. But avoid the broken or
8517# incompatible versions:
8518# SysV /etc/install, /usr/sbin/install
8519# SunOS /usr/etc/install
8520# IRIX /sbin/install
8521# AIX /bin/install
8522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8523# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8525# ./install, which can be erroneously created by make from ./install.sh.
8526echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8527echo "configure:8528: checking for a BSD compatible install" >&5
8528if test -z "$INSTALL"; then
8529if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8530 echo $ac_n "(cached) $ac_c" 1>&6
8531else
8532 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8533 for ac_dir in $PATH; do
8534 # Account for people who put trailing slashes in PATH elements.
8535 case "$ac_dir/" in
8536 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8537 *)
8538 # OSF1 and SCO ODT 3.0 have their own names for install.
8539 # Don't use installbsd from OSF since it installs stuff as root
8540 # by default.
8541 for ac_prog in ginstall scoinst install; do
8542 if test -f $ac_dir/$ac_prog; then
8543 if test $ac_prog = install &&
8544 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8545 # AIX install. It has an incompatible calling convention.
8546 :
8547 else
8548 ac_cv_path_install="$ac_dir/$ac_prog -c"
8549 break 2
8550 fi
8551 fi
8552 done
8553 ;;
8554 esac
8555 done
8556 IFS="$ac_save_IFS"
8557
8558fi
8559 if test "${ac_cv_path_install+set}" = set; then
8560 INSTALL="$ac_cv_path_install"
8561 else
8562 # As a last resort, use the slow shell script. We don't cache a
8563 # path for INSTALL within a source directory, because that will
8564 # break other packages using the cache if that directory is
8565 # removed, or if the path is relative.
8566 INSTALL="$ac_install_sh"
8567 fi
8568fi
8569echo "$ac_t""$INSTALL" 1>&6
8570
8571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8572# It thinks the first close brace ends the variable substitution.
8573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8574
8575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8576
8577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8578
8579
8580# Extract the first word of "strip", so it can be a program name with args.
8581set dummy strip; ac_word=$2
8582echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8583echo "configure:8584: checking for $ac_word" >&5
8584if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8586else
8587 if test -n "$STRIP"; then
8588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8589else
8590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8591 ac_dummy="$PATH"
8592 for ac_dir in $ac_dummy; do
8593 test -z "$ac_dir" && ac_dir=.
8594 if test -f $ac_dir/$ac_word; then
8595 ac_cv_prog_STRIP="strip"
8596 break
8597 fi
8598 done
8599 IFS="$ac_save_ifs"
8600 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8601fi
8602fi
8603STRIP="$ac_cv_prog_STRIP"
8604if test -n "$STRIP"; then
8605 echo "$ac_t""$STRIP" 1>&6
8606else
8607 echo "$ac_t""no" 1>&6
8608fi
8609
8610
8611echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8612echo "configure:8613: checking make for VPATH support" >&5
8613cat - << EOF > confMake
8614check : file
8615 cp \$? \$@
8616 cp \$? final_file
8617EOF
8618
8619if test ! -d sub ; then
8620 mkdir sub
8621fi
8622echo dummy > sub/file
8623${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8624RESULT=$?
8625rm -f sub/file check final_file confMake
8626rmdir sub
8627if test "$RESULT" = 0; then
8628 echo "$ac_t""yes" 1>&6
8629else
8630 echo "$ac_t""no" 1>&6
8631 { echo "configure: error:
8632You need a make-utility that is able to use the variable
8633VPATH correctly.
8634If your version of make does not support VPATH correctly,
8635please install GNU-make (possibly as gmake), and start
8636configure with the following command:
8637export MAKE=gmake; ./configure for sh-type shells
8638setenv MAKE gmake; ./configure for csh-type shells
8639Also please do remember to use gmake in this case every time
8640you are trying to compile.
8641" 1>&2; exit 1; }
8642fi
8643
8644for ac_prog in 'bison -y' byacc
8645do
8646# Extract the first word of "$ac_prog", so it can be a program name with args.
8647set dummy $ac_prog; 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_YACC'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8652else
8653 if test -n "$YACC"; then
8654 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8655else
8656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8657 ac_dummy="$PATH"
8658 for ac_dir in $ac_dummy; do
8659 test -z "$ac_dir" && ac_dir=.
8660 if test -f $ac_dir/$ac_word; then
8661 ac_cv_prog_YACC="$ac_prog"
8662 break
8663 fi
8664 done
8665 IFS="$ac_save_ifs"
8666fi
8667fi
8668YACC="$ac_cv_prog_YACC"
8669if test -n "$YACC"; then
8670 echo "$ac_t""$YACC" 1>&6
8671else
8672 echo "$ac_t""no" 1>&6
8673fi
8674
8675test -n "$YACC" && break
8676done
8677test -n "$YACC" || YACC="yacc"
8678
8679
8680# Extract the first word of "flex", so it can be a program name with args.
8681set dummy flex; ac_word=$2
8682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8683echo "configure:8684: checking for $ac_word" >&5
8684if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8686else
8687 if test -n "$LEX"; then
8688 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8689else
8690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8691 ac_dummy="$PATH"
8692 for ac_dir in $ac_dummy; do
8693 test -z "$ac_dir" && ac_dir=.
8694 if test -f $ac_dir/$ac_word; then
8695 ac_cv_prog_LEX="flex"
8696 break
8697 fi
8698 done
8699 IFS="$ac_save_ifs"
8700 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8701fi
8702fi
8703LEX="$ac_cv_prog_LEX"
8704if test -n "$LEX"; then
8705 echo "$ac_t""$LEX" 1>&6
8706else
8707 echo "$ac_t""no" 1>&6
8708fi
8709
8710if test -z "$LEXLIB"
8711then
8712 case "$LEX" in
8713 flex*) ac_lib=fl ;;
8714 *) ac_lib=l ;;
8715 esac
8716 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8717echo "configure:8718: checking for yywrap in -l$ac_lib" >&5
8718ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8719if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721else
8722 ac_save_LIBS="$LIBS"
8723LIBS="-l$ac_lib $LIBS"
8724cat > conftest.$ac_ext <<EOF
8725#line 8726 "configure"
8726#include "confdefs.h"
8727/* Override any gcc2 internal prototype to avoid an error. */
8728/* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730char yywrap();
8731
8732int main() {
8733yywrap()
8734; return 0; }
8735EOF
8736if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8737 rm -rf conftest*
8738 eval "ac_cv_lib_$ac_lib_var=yes"
8739else
8740 echo "configure: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8742 rm -rf conftest*
8743 eval "ac_cv_lib_$ac_lib_var=no"
8744fi
8745rm -f conftest*
8746LIBS="$ac_save_LIBS"
8747
8748fi
8749if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8750 echo "$ac_t""yes" 1>&6
8751 LEXLIB="-l$ac_lib"
8752else
8753 echo "$ac_t""no" 1>&6
8754fi
8755
8756fi
8757
8758
8759echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8760echo "configure:8761: checking whether ln -s works" >&5
8761if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763else
8764 rm -f conftestdata
8765if ln -s X conftestdata 2>/dev/null
8766then
8767 rm -f conftestdata
8768 ac_cv_prog_LN_S="ln -s"
8769else
8770 ac_cv_prog_LN_S=ln
8771fi
8772fi
8773LN_S="$ac_cv_prog_LN_S"
8774if test "$ac_cv_prog_LN_S" = "ln -s"; then
8775 echo "$ac_t""yes" 1>&6
8776else
8777 echo "$ac_t""no" 1>&6
8778fi
8779
8780
8781
8782SEARCH_INCLUDE="\
8783 /usr/local/include \
8784 \
8785 /usr/Motif-1.2/include \
8786 /usr/Motif-2.1/include \
8787 \
8788 /usr/include/Motif1.2 \
8789 /opt/xpm/include/X11 \
8790 /opt/GBxpm/include/ \
8791 /opt/GBxpm/X11/include/ \
8792 \
8793 /usr/Motif1.2/include \
8794 /usr/dt/include \
8795 /usr/openwin/include \
8796 \
8797 /usr/include/Xm \
8798 \
8799 /usr/X11R6/include \
8800 /usr/X11R6.4/include \
8801 /usr/X11R5/include \
8802 /usr/X11R4/include \
8803 \
8804 /usr/include/X11R6 \
8805 /usr/include/X11R5 \
8806 /usr/include/X11R4 \
8807 \
8808 /usr/local/X11R6/include \
8809 /usr/local/X11R5/include \
8810 /usr/local/X11R4/include \
8811 \
8812 /usr/local/include/X11R6 \
8813 /usr/local/include/X11R5 \
8814 /usr/local/include/X11R4 \
8815 \
8816 /usr/X11/include \
8817 /usr/include/X11 \
8818 /usr/local/X11/include \
8819 /usr/local/include/X11 \
8820 \
8821 /usr/X386/include \
8822 /usr/x386/include \
8823 /usr/XFree86/include/X11 \
8824 \
8825 X:/XFree86/include \
8826 X:/XFree86/include/X11 \
8827 \
8828 /usr/include/gtk \
8829 /usr/local/include/gtk \
8830 /usr/include/glib \
8831 /usr/local/include/glib \
8832 \
8833 /usr/include/qt \
8834 /usr/local/include/qt \
8835 \
8836 /usr/include/windows \
8837 /usr/include/wine \
8838 /usr/local/include/wine \
8839 \
8840 /usr/unsupported/include \
8841 /usr/athena/include \
8842 /usr/local/x11r5/include \
8843 /usr/lpp/Xamples/include \
8844 \
8845 /usr/openwin/share/include \
8846 \
8847 /usr/include"
8848
8849SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8850
8851
8852cat > confcache <<\EOF
8853# This file is a shell script that caches the results of configure
8854# tests run on this system so they can be shared between configure
8855# scripts and configure runs. It is not useful on other systems.
8856# If it contains results you don't want to keep, you may remove or edit it.
8857#
8858# By default, configure uses ./config.cache as the cache file,
8859# creating it if it does not exist already. You can give configure
8860# the --cache-file=FILE option to use a different cache file; that is
8861# what configure does when it calls configure scripts in
8862# subdirectories, so they share the cache.
8863# Giving --cache-file=/dev/null disables caching, for debugging configure.
8864# config.status only pays attention to the cache file if you give it the
8865# --recheck option to rerun configure.
8866#
8867EOF
8868# The following way of writing the cache mishandles newlines in values,
8869# but we know of no workaround that is simple, portable, and efficient.
8870# So, don't put newlines in cache variables' values.
8871# Ultrix sh set writes to stderr and can't be redirected directly,
8872# and sets the high bit in the cache file unless we assign to the vars.
8873(set) 2>&1 |
8874 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8875 *ac_space=\ *)
8876 # `set' does not quote correctly, so add quotes (double-quote substitution
8877 # turns \\\\ into \\, and sed turns \\ into \).
8878 sed -n \
8879 -e "s/'/'\\\\''/g" \
8880 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8881 ;;
8882 *)
8883 # `set' quotes correctly as required by POSIX, so do not add quotes.
8884 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8885 ;;
8886 esac >> confcache
8887if cmp -s $cache_file confcache; then
8888 :
8889else
8890 if test -w $cache_file; then
8891 echo "updating cache $cache_file"
8892 cat confcache > $cache_file
8893 else
8894 echo "not updating unwritable cache $cache_file"
8895 fi
8896fi
8897rm -f confcache
8898
8899
8900
8901
8902REGEX_INCLUDE=
8903if test "$wxUSE_REGEX" != "no"; then
8904 cat >> confdefs.h <<\EOF
8905#define wxUSE_REGEX 1
8906EOF
8907
8908
8909 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8910 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8911echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8912echo "configure:8913: checking for regex.h" >&5
8913if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8914 echo $ac_n "(cached) $ac_c" 1>&6
8915else
8916 cat > conftest.$ac_ext <<EOF
8917#line 8918 "configure"
8918#include "confdefs.h"
8919#include <regex.h>
8920EOF
8921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8922{ (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8924if test -z "$ac_err"; then
8925 rm -rf conftest*
8926 eval "ac_cv_header_$ac_safe=yes"
8927else
8928 echo "$ac_err" >&5
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931 rm -rf conftest*
8932 eval "ac_cv_header_$ac_safe=no"
8933fi
8934rm -f conftest*
8935fi
8936if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8937 echo "$ac_t""yes" 1>&6
8938 for ac_func in regcomp
8939do
8940echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8941echo "configure:8942: checking for $ac_func" >&5
8942if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8944else
8945 cat > conftest.$ac_ext <<EOF
8946#line 8947 "configure"
8947#include "confdefs.h"
8948/* System header to define __stub macros and hopefully few prototypes,
8949 which can conflict with char $ac_func(); below. */
8950#include <assert.h>
8951/* Override any gcc2 internal prototype to avoid an error. */
8952/* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8954char $ac_func();
8955
8956int main() {
8957
8958/* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
8961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8962choke me
8963#else
8964$ac_func();
8965#endif
8966
8967; return 0; }
8968EOF
8969if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8970 rm -rf conftest*
8971 eval "ac_cv_func_$ac_func=yes"
8972else
8973 echo "configure: failed program was:" >&5
8974 cat conftest.$ac_ext >&5
8975 rm -rf conftest*
8976 eval "ac_cv_func_$ac_func=no"
8977fi
8978rm -f conftest*
8979fi
8980
8981if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8982 echo "$ac_t""yes" 1>&6
8983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8984 cat >> confdefs.h <<EOF
8985#define $ac_tr_func 1
8986EOF
8987
8988else
8989 echo "$ac_t""no" 1>&6
8990fi
8991done
8992
8993else
8994 echo "$ac_t""no" 1>&6
8995fi
8996
8997
8998 if test "x$ac_cv_func_regcomp" != "xyes"; then
8999 if test "$wxUSE_REGEX" = "sys" ; then
9000 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9001 else
9002 echo "configure: warning: system regex library not found, will compile built-in version instead" 1>&2
9003 wxUSE_REGEX=builtin
9004 fi
9005 else
9006 wxUSE_REGEX=sys
9007 fi
9008 fi
9009
9010 if test "$wxUSE_REGEX" = "builtin" ; then
9011 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9012 fi
9013fi
9014
9015
9016ZLIB_INCLUDE=
9017ZLIB_LINK=
9018if test "$wxUSE_ZLIB" != "no" ; then
9019 cat >> confdefs.h <<\EOF
9020#define wxUSE_ZLIB 1
9021EOF
9022
9023
9024 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9025 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9026echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9027echo "configure:9028: checking for zlib.h" >&5
9028if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9030else
9031 cat > conftest.$ac_ext <<EOF
9032#line 9033 "configure"
9033#include "confdefs.h"
9034#include <zlib.h>
9035EOF
9036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9037{ (eval echo configure:9038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9039if test -z "$ac_err"; then
9040 rm -rf conftest*
9041 eval "ac_cv_header_$ac_safe=yes"
9042else
9043 echo "$ac_err" >&5
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 rm -rf conftest*
9047 eval "ac_cv_header_$ac_safe=no"
9048fi
9049rm -f conftest*
9050fi
9051if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9052 echo "$ac_t""yes" 1>&6
9053 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9054echo "configure:9055: checking for deflate in -lz" >&5
9055ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9056if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9058else
9059 ac_save_LIBS="$LIBS"
9060LIBS="-lz $LIBS"
9061cat > conftest.$ac_ext <<EOF
9062#line 9063 "configure"
9063#include "confdefs.h"
9064/* Override any gcc2 internal prototype to avoid an error. */
9065/* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9067char deflate();
9068
9069int main() {
9070deflate()
9071; return 0; }
9072EOF
9073if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9074 rm -rf conftest*
9075 eval "ac_cv_lib_$ac_lib_var=yes"
9076else
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 rm -rf conftest*
9080 eval "ac_cv_lib_$ac_lib_var=no"
9081fi
9082rm -f conftest*
9083LIBS="$ac_save_LIBS"
9084
9085fi
9086if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9087 echo "$ac_t""yes" 1>&6
9088 ZLIB_LINK="-lz"
9089else
9090 echo "$ac_t""no" 1>&6
9091fi
9092
9093else
9094 echo "$ac_t""no" 1>&6
9095fi
9096
9097
9098 if test "x$ZLIB_LINK" = "x" ; then
9099 if test "$wxUSE_ZLIB" = "sys" ; then
9100 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9101 else
9102 echo "configure: warning: system zlib compression library not found, will compile built-in version instead" 1>&2
9103 wxUSE_ZLIB=builtin
9104 fi
9105 else
9106 wxUSE_ZLIB=sys
9107 fi
9108 fi
9109
9110 if test "$wxUSE_ZLIB" = "builtin" ; then
9111 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9112 fi
9113fi
9114
9115
9116PNG_INCLUDE=
9117PNG_LINK=
9118if test "$wxUSE_LIBPNG" != "no" ; then
9119 cat >> confdefs.h <<\EOF
9120#define wxUSE_LIBPNG 1
9121EOF
9122
9123
9124 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9125 echo "configure: warning: system png library doesn't work without system zlib, will compile built-in instead" 1>&2
9126 wxUSE_LIBPNG=builtin
9127 fi
9128
9129 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9130 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9131echo $ac_n "checking for png.h""... $ac_c" 1>&6
9132echo "configure:9133: checking for png.h" >&5
9133if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9134 echo $ac_n "(cached) $ac_c" 1>&6
9135else
9136 cat > conftest.$ac_ext <<EOF
9137#line 9138 "configure"
9138#include "confdefs.h"
9139#include <png.h>
9140EOF
9141ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9142{ (eval echo configure:9143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9143ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9144if test -z "$ac_err"; then
9145 rm -rf conftest*
9146 eval "ac_cv_header_$ac_safe=yes"
9147else
9148 echo "$ac_err" >&5
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 eval "ac_cv_header_$ac_safe=no"
9153fi
9154rm -f conftest*
9155fi
9156if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9157 echo "$ac_t""yes" 1>&6
9158 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9159echo "configure:9160: checking for png_check_sig in -lpng" >&5
9160ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9161if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9163else
9164 ac_save_LIBS="$LIBS"
9165LIBS="-lpng -lz -lm $LIBS"
9166cat > conftest.$ac_ext <<EOF
9167#line 9168 "configure"
9168#include "confdefs.h"
9169/* Override any gcc2 internal prototype to avoid an error. */
9170/* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9172char png_check_sig();
9173
9174int main() {
9175png_check_sig()
9176; return 0; }
9177EOF
9178if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9179 rm -rf conftest*
9180 eval "ac_cv_lib_$ac_lib_var=yes"
9181else
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -rf conftest*
9185 eval "ac_cv_lib_$ac_lib_var=no"
9186fi
9187rm -f conftest*
9188LIBS="$ac_save_LIBS"
9189
9190fi
9191if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9192 echo "$ac_t""yes" 1>&6
9193 PNG_LINK="-lpng"
9194else
9195 echo "$ac_t""no" 1>&6
9196fi
9197
9198
9199else
9200 echo "$ac_t""no" 1>&6
9201fi
9202
9203
9204 if test "x$PNG_LINK" = "x" ; then
9205 if test "$wxUSE_LIBPNG" = "sys" ; then
9206 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9207 else
9208 echo "configure: warning: system png library not found, will compile built-in version instead" 1>&2
9209 wxUSE_LIBPNG=builtin
9210 fi
9211 else
9212 wxUSE_LIBPNG=yes
9213 fi
9214 fi
9215
9216 if test "$wxUSE_LIBPNG" = "builtin" ; then
9217 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9218 fi
9219
9220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9221fi
9222
9223
9224JPEG_INCLUDE=
9225JPEG_LINK=
9226if test "$wxUSE_LIBJPEG" != "no" ; then
9227 cat >> confdefs.h <<\EOF
9228#define wxUSE_LIBJPEG 1
9229EOF
9230
9231
9232 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9233 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9234echo "configure:9235: checking for jpeglib.h" >&5
9235 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9237else
9238 cat > conftest.$ac_ext <<EOF
9239#line 9240 "configure"
9240#include "confdefs.h"
9241
9242 #undef HAVE_STDLIB_H
9243 #include <stdio.h>
9244 #include <jpeglib.h>
9245
9246int main() {
9247
9248
9249; return 0; }
9250EOF
9251if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9252 rm -rf conftest*
9253 ac_cv_header_jpeglib_h=yes
9254else
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 rm -rf conftest*
9258 ac_cv_header_jpeglib_h=no
9259
9260fi
9261rm -f conftest*
9262
9263fi
9264
9265 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9266
9267 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9268 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9269echo "configure:9270: checking for jpeg_read_header in -ljpeg" >&5
9270ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9273else
9274 ac_save_LIBS="$LIBS"
9275LIBS="-ljpeg $LIBS"
9276cat > conftest.$ac_ext <<EOF
9277#line 9278 "configure"
9278#include "confdefs.h"
9279/* Override any gcc2 internal prototype to avoid an error. */
9280/* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282char jpeg_read_header();
9283
9284int main() {
9285jpeg_read_header()
9286; return 0; }
9287EOF
9288if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9289 rm -rf conftest*
9290 eval "ac_cv_lib_$ac_lib_var=yes"
9291else
9292 echo "configure: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294 rm -rf conftest*
9295 eval "ac_cv_lib_$ac_lib_var=no"
9296fi
9297rm -f conftest*
9298LIBS="$ac_save_LIBS"
9299
9300fi
9301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9302 echo "$ac_t""yes" 1>&6
9303 JPEG_LINK="-ljpeg"
9304else
9305 echo "$ac_t""no" 1>&6
9306fi
9307
9308 fi
9309
9310 if test "x$JPEG_LINK" = "x" ; then
9311 if test "$wxUSE_LIBJPEG" = "sys" ; then
9312 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9313 else
9314 echo "configure: warning: system jpeg library not found, will compile built-in version instead" 1>&2
9315 wxUSE_LIBJPEG=builtin
9316 fi
9317 else
9318 wxUSE_LIBJPEG=sys
9319 fi
9320 fi
9321
9322 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9323 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9324 fi
9325fi
9326
9327
9328TIFF_INCLUDE=
9329TIFF_LINK=
9330if test "$wxUSE_LIBTIFF" != "no" ; then
9331 cat >> confdefs.h <<\EOF
9332#define wxUSE_LIBTIFF 1
9333EOF
9334
9335
9336 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9337 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9338echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9339echo "configure:9340: checking for tiffio.h" >&5
9340if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9342else
9343 cat > conftest.$ac_ext <<EOF
9344#line 9345 "configure"
9345#include "confdefs.h"
9346#include <tiffio.h>
9347EOF
9348ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9349{ (eval echo configure:9350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9350ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9351if test -z "$ac_err"; then
9352 rm -rf conftest*
9353 eval "ac_cv_header_$ac_safe=yes"
9354else
9355 echo "$ac_err" >&5
9356 echo "configure: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9358 rm -rf conftest*
9359 eval "ac_cv_header_$ac_safe=no"
9360fi
9361rm -f conftest*
9362fi
9363if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9364 echo "$ac_t""yes" 1>&6
9365 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9366echo "configure:9367: checking for TIFFError in -ltiff" >&5
9367ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9370else
9371 ac_save_LIBS="$LIBS"
9372LIBS="-ltiff -lm $LIBS"
9373cat > conftest.$ac_ext <<EOF
9374#line 9375 "configure"
9375#include "confdefs.h"
9376/* Override any gcc2 internal prototype to avoid an error. */
9377/* We use char because int might match the return type of a gcc2
9378 builtin and then its argument prototype would still apply. */
9379char TIFFError();
9380
9381int main() {
9382TIFFError()
9383; return 0; }
9384EOF
9385if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9386 rm -rf conftest*
9387 eval "ac_cv_lib_$ac_lib_var=yes"
9388else
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 rm -rf conftest*
9392 eval "ac_cv_lib_$ac_lib_var=no"
9393fi
9394rm -f conftest*
9395LIBS="$ac_save_LIBS"
9396
9397fi
9398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9399 echo "$ac_t""yes" 1>&6
9400 TIFF_LINK="-ltiff"
9401else
9402 echo "$ac_t""no" 1>&6
9403fi
9404
9405
9406else
9407 echo "$ac_t""no" 1>&6
9408fi
9409
9410
9411 if test "x$TIFF_LINK" = "x" ; then
9412 if test "$wxUSE_LIBTIFF" = "sys" ; then
9413 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9414 else
9415 echo "configure: warning: system tiff library not found, will compile built-in version instead" 1>&2
9416 wxUSE_LIBTIFF=builtin
9417 fi
9418 else
9419 wxUSE_LIBTIFF=sys
9420 fi
9421 fi
9422
9423 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9424 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9425 fi
9426fi
9427
9428
9429FREETYPE_INCLUDE=
9430FREETYPE_LINK=
9431if test "$wxUSE_FREETYPE" != "no" ; then
9432 cat >> confdefs.h <<\EOF
9433#define wxUSE_FREETYPE 1
9434EOF
9435
9436
9437 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9438 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9439echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9440echo "configure:9441: checking for freetype.h" >&5
9441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9443else
9444 cat > conftest.$ac_ext <<EOF
9445#line 9446 "configure"
9446#include "confdefs.h"
9447#include <freetype.h>
9448EOF
9449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9450{ (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9452if test -z "$ac_err"; then
9453 rm -rf conftest*
9454 eval "ac_cv_header_$ac_safe=yes"
9455else
9456 echo "$ac_err" >&5
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9459 rm -rf conftest*
9460 eval "ac_cv_header_$ac_safe=no"
9461fi
9462rm -f conftest*
9463fi
9464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9465 echo "$ac_t""yes" 1>&6
9466 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9467echo "configure:9468: checking for FT_Render_Glyph in -lfreetype" >&5
9468ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9469if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9471else
9472 ac_save_LIBS="$LIBS"
9473LIBS="-lfreetype -lm $LIBS"
9474cat > conftest.$ac_ext <<EOF
9475#line 9476 "configure"
9476#include "confdefs.h"
9477/* Override any gcc2 internal prototype to avoid an error. */
9478/* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9480char FT_Render_Glyph();
9481
9482int main() {
9483FT_Render_Glyph()
9484; return 0; }
9485EOF
9486if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9487 rm -rf conftest*
9488 eval "ac_cv_lib_$ac_lib_var=yes"
9489else
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 rm -rf conftest*
9493 eval "ac_cv_lib_$ac_lib_var=no"
9494fi
9495rm -f conftest*
9496LIBS="$ac_save_LIBS"
9497
9498fi
9499if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9500 echo "$ac_t""yes" 1>&6
9501 FREETYPE_LINK="-lfreetype"
9502else
9503 echo "$ac_t""no" 1>&6
9504fi
9505
9506
9507else
9508 echo "$ac_t""no" 1>&6
9509fi
9510
9511
9512 if test "x$FREETYPE_LINK" = "x" ; then
9513 if test "$wxUSE_FREETYPE" = "sys" ; then
9514 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9515 else
9516 echo "configure: warning: system freetype library not found, will compile built-in version instead" 1>&2
9517 wxUSE_FREETYPE=builtin
9518 fi
9519 else
9520 wxUSE_FREETYPE=sys
9521 fi
9522 fi
9523
9524 if test "$wxUSE_FREETYPE" = "builtin" ; then
9525 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9526 fi
9527fi
9528
9529
9530AFMINSTALL=
9531
9532TOOLKIT=
9533TOOLKIT_INCLUDE=
9534WIDGET_SET=
9535
9536if test "$USE_WIN32" = 1 ; then
9537 for ac_hdr in w32api.h
9538do
9539ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9540echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9541echo "configure:9542: checking for $ac_hdr" >&5
9542if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544else
9545 cat > conftest.$ac_ext <<EOF
9546#line 9547 "configure"
9547#include "confdefs.h"
9548#include <$ac_hdr>
9549EOF
9550ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9551{ (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9552ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9553if test -z "$ac_err"; then
9554 rm -rf conftest*
9555 eval "ac_cv_header_$ac_safe=yes"
9556else
9557 echo "$ac_err" >&5
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9560 rm -rf conftest*
9561 eval "ac_cv_header_$ac_safe=no"
9562fi
9563rm -f conftest*
9564fi
9565if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9568 cat >> confdefs.h <<EOF
9569#define $ac_tr_hdr 1
9570EOF
9571
9572else
9573 echo "$ac_t""no" 1>&6
9574fi
9575done
9576
9577 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9578echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9579echo "configure:9580: checking for windows.h" >&5
9580if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582else
9583 cat > conftest.$ac_ext <<EOF
9584#line 9585 "configure"
9585#include "confdefs.h"
9586#include <windows.h>
9587EOF
9588ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9589{ (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9590ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9591if test -z "$ac_err"; then
9592 rm -rf conftest*
9593 eval "ac_cv_header_$ac_safe=yes"
9594else
9595 echo "$ac_err" >&5
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -rf conftest*
9599 eval "ac_cv_header_$ac_safe=no"
9600fi
9601rm -f conftest*
9602fi
9603if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 :
9606else
9607 echo "$ac_t""no" 1>&6
9608
9609 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9610
9611fi
9612
9613
9614 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9615echo "configure:9616: checking if w32api has good enough MSIE support" >&5
9616if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9618else
9619
9620 cat > conftest.$ac_ext <<EOF
9621#line 9622 "configure"
9622#include "confdefs.h"
9623#include <w32api.h>
9624int main() {
9625
9626 #define wxCHECK_W32API_VERSION( major, minor ) \
9627 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9628 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9629 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9630
9631 #if !wxCHECK_W32API_VERSION(1,1)
9632 #error You need w32api 1.1 or newer
9633 #endif
9634
9635; return 0; }
9636EOF
9637if { (eval echo configure:9638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9638 rm -rf conftest*
9639
9640 wx_cv_w32api_win_ie=yes
9641 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9642
9643else
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 rm -rf conftest*
9647
9648 wx_cv_w32api_win_ie=no
9649
9650fi
9651rm -f conftest*
9652
9653fi
9654
9655echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9656
9657 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9658
9659 if test "$wxUSE_CYGWIN" = 1; then
9660 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9661 fi
9662
9663 if test "$wxUSE_ODBC" = "yes" ; then
9664 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9665 fi
9666
9667 if test "$wxUSE_MINGW" = 1; then
9668 LDFLAGS="$LDFLAGS -mwindows"
9669 fi
9670
9671 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9672 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9673fi
9674
9675if test "$wxUSE_GUI" = "yes"; then
9676 USE_GUI=1
9677
9678 GUI_TK_LIBRARY=
9679
9680 WXGTK12=
9681 WXGTK127=
9682 WXGTK20=
9683
9684 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9685 TOOLKIT=MSW
9686 GUIDIST=MSW_DIST
9687 fi
9688
9689 if test "$wxUSE_GTK" = 1; then
9690 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9691echo "configure:9692: checking for GTK+ version" >&5
9692
9693 gtk_version_cached=1
9694 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9696else
9697
9698 gtk_version_cached=0
9699 echo "$ac_t""""" 1>&6
9700
9701 wx_cv_lib_gtk=
9702 if test "x$wxUSE_GTK2" = "xyes"; then
9703 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9704if test "${with_gtk_prefix+set}" = set; then
9705 withval="$with_gtk_prefix"
9706 gtk_config_prefix="$withval"
9707else
9708 gtk_config_prefix=""
9709fi
9710
9711# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9712if test "${with_gtk_exec_prefix+set}" = set; then
9713 withval="$with_gtk_exec_prefix"
9714 gtk_config_exec_prefix="$withval"
9715else
9716 gtk_config_exec_prefix=""
9717fi
9718
9719# Check whether --enable-gtktest or --disable-gtktest was given.
9720if test "${enable_gtktest+set}" = set; then
9721 enableval="$enable_gtktest"
9722 :
9723else
9724 enable_gtktest=yes
9725fi
9726
9727
9728 for module in .
9729 do
9730 case "$module" in
9731 gthread)
9732 gtk_config_args="$gtk_config_args gthread"
9733 ;;
9734 esac
9735 done
9736
9737 if test x$gtk_config_exec_prefix != x ; then
9738 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9739 if test x${GTK_CONFIG_2_0+set} != xset ; then
9740 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9741 fi
9742 fi
9743 if test x$gtk_config_prefix != x ; then
9744 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9745 if test x${GTK_CONFIG_2_0+set} != xset ; then
9746 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9747 fi
9748 fi
9749
9750 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9751set dummy gtk-config-2.0; ac_word=$2
9752echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9753echo "configure:9754: checking for $ac_word" >&5
9754if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9756else
9757 case "$GTK_CONFIG_2_0" in
9758 /*)
9759 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9760 ;;
9761 ?:/*)
9762 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9763 ;;
9764 *)
9765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9766 ac_dummy="$PATH"
9767 for ac_dir in $ac_dummy; do
9768 test -z "$ac_dir" && ac_dir=.
9769 if test -f $ac_dir/$ac_word; then
9770 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9771 break
9772 fi
9773 done
9774 IFS="$ac_save_ifs"
9775 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9776 ;;
9777esac
9778fi
9779GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9780if test -n "$GTK_CONFIG_2_0"; then
9781 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9782else
9783 echo "$ac_t""no" 1>&6
9784fi
9785
9786 min_gtk_version=1.3.1
9787 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9788echo "configure:9789: checking for GTK - version >= $min_gtk_version" >&5
9789 no_gtk=""
9790 if test "$GTK_CONFIG_2_0" = "no" ; then
9791 no_gtk=yes
9792 else
9793 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9794 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9795 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9796 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9797 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9798 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9799 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9800 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9801 if test "x$enable_gtktest" = "xyes" ; then
9802 ac_save_CFLAGS="$CFLAGS"
9803 ac_save_LIBS="$LIBS"
9804 CFLAGS="$CFLAGS $GTK_CFLAGS"
9805 LIBS="$GTK_LIBS $LIBS"
9806 rm -f conf.gtktest
9807 if test "$cross_compiling" = yes; then
9808 echo $ac_n "cross compiling; assumed OK... $ac_c"
9809else
9810 cat > conftest.$ac_ext <<EOF
9811#line 9812 "configure"
9812#include "confdefs.h"
9813
9814#include <gtk/gtk.h>
9815#include <stdio.h>
9816#include <stdlib.h>
9817
9818int
9819main ()
9820{
9821 int major, minor, micro;
9822 char *tmp_version;
9823
9824 system ("touch conf.gtktest");
9825
9826 /* HP/UX 9 (%@#!) writes to sscanf strings */
9827 tmp_version = g_strdup("$min_gtk_version");
9828 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9829 printf("%s, bad version string\n", "$min_gtk_version");
9830 exit(1);
9831 }
9832
9833 if ((gtk_major_version != $gtk_config_major_version) ||
9834 (gtk_minor_version != $gtk_config_minor_version) ||
9835 (gtk_micro_version != $gtk_config_micro_version))
9836 {
9837 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9838 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9839 gtk_major_version, gtk_minor_version, gtk_micro_version);
9840 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9841 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9842 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9843 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9844 printf("*** required on your system.\n");
9845 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9846 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9847 printf("*** before re-running configure\n");
9848 }
9849#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9850 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9851 (gtk_minor_version != GTK_MINOR_VERSION) ||
9852 (gtk_micro_version != GTK_MICRO_VERSION))
9853 {
9854 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9855 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9856 printf("*** library (version %d.%d.%d)\n",
9857 gtk_major_version, gtk_minor_version, gtk_micro_version);
9858 }
9859#endif /* defined (GTK_MAJOR_VERSION) ... */
9860 else
9861 {
9862 if ((gtk_major_version > major) ||
9863 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9864 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9865 {
9866 return 0;
9867 }
9868 else
9869 {
9870 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9871 gtk_major_version, gtk_minor_version, gtk_micro_version);
9872 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9873 major, minor, micro);
9874 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9875 printf("***\n");
9876 printf("*** If you have already installed a sufficiently new version, this error\n");
9877 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9878 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9879 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9880 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9881 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9882 printf("*** so that the correct libraries are found at run-time))\n");
9883 }
9884 }
9885 return 1;
9886}
9887
9888EOF
9889if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9890then
9891 :
9892else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -fr conftest*
9896 no_gtk=yes
9897fi
9898rm -fr conftest*
9899fi
9900
9901 CFLAGS="$ac_save_CFLAGS"
9902 LIBS="$ac_save_LIBS"
9903 fi
9904 fi
9905 if test "x$no_gtk" = x ; then
9906 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9907 wx_cv_lib_gtk=2.0
9908 else
9909 echo "$ac_t""no" 1>&6
9910 if test "$GTK_CONFIG_2_0" = "no" ; then
9911 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9912 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9913 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9914 echo "*** full path to gtk-config-2.0."
9915 else
9916 if test -f conf.gtktest ; then
9917 :
9918 else
9919 echo "*** Could not run GTK test program, checking why..."
9920 CFLAGS="$CFLAGS $GTK_CFLAGS"
9921 LIBS="$LIBS $GTK_LIBS"
9922 cat > conftest.$ac_ext <<EOF
9923#line 9924 "configure"
9924#include "confdefs.h"
9925
9926#include <gtk/gtk.h>
9927#include <stdio.h>
9928
9929int main() {
9930 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9931; return 0; }
9932EOF
9933if { (eval echo configure:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9934 rm -rf conftest*
9935 echo "*** The test program compiled, but did not run. This usually means"
9936 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9937 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9938 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9939 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9940 echo "*** is required on your system"
9941 echo "***"
9942 echo "*** If you have an old version installed, it is best to remove it, although"
9943 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9944 echo "***"
9945 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9946 echo "*** came with the system with the command"
9947 echo "***"
9948 echo "*** rpm --erase --nodeps gtk gtk-devel"
9949else
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 echo "*** The test program failed to compile or link. See the file config.log for the"
9954 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9955 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9956 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9957fi
9958rm -f conftest*
9959 CFLAGS="$ac_save_CFLAGS"
9960 LIBS="$ac_save_LIBS"
9961 fi
9962 fi
9963 GTK_CFLAGS=""
9964 GTK_LIBS=""
9965 gthread
9966 fi
9967
9968
9969 rm -f conf.gtktest
9970
9971 fi
9972
9973 if test -z "$wx_cv_lib_gtk"; then
9974
9975 if test x$gtk_config_exec_prefix != x ; then
9976 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9977 if test x${GTK_CONFIG+set} != xset ; then
9978 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9979 fi
9980 fi
9981 if test x$gtk_config_prefix != x ; then
9982 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9983 if test x${GTK_CONFIG+set} != xset ; then
9984 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9985 fi
9986 fi
9987
9988 # Extract the first word of "gtk-config", so it can be a program name with args.
9989set dummy gtk-config; ac_word=$2
9990echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9991echo "configure:9992: checking for $ac_word" >&5
9992if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9993 echo $ac_n "(cached) $ac_c" 1>&6
9994else
9995 case "$GTK_CONFIG" in
9996 /*)
9997 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9998 ;;
9999 ?:/*)
10000 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10001 ;;
10002 *)
10003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10004 ac_dummy="$PATH"
10005 for ac_dir in $ac_dummy; do
10006 test -z "$ac_dir" && ac_dir=.
10007 if test -f $ac_dir/$ac_word; then
10008 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10009 break
10010 fi
10011 done
10012 IFS="$ac_save_ifs"
10013 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10014 ;;
10015esac
10016fi
10017GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10018if test -n "$GTK_CONFIG"; then
10019 echo "$ac_t""$GTK_CONFIG" 1>&6
10020else
10021 echo "$ac_t""no" 1>&6
10022fi
10023
10024 min_gtk_version=1.2.7
10025 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10026echo "configure:10027: checking for GTK - version >= $min_gtk_version" >&5
10027 no_gtk=""
10028 if test "$GTK_CONFIG" != "no" ; then
10029 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10030 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10031 ac_save_CFLAGS="$CFLAGS"
10032 ac_save_LIBS="$LIBS"
10033 CFLAGS="$CFLAGS $GTK_CFLAGS"
10034 LIBS="$LIBS $GTK_LIBS"
10035 if test "$cross_compiling" = yes; then
10036 echo $ac_n "cross compiling; assumed OK... $ac_c"
10037else
10038 cat > conftest.$ac_ext <<EOF
10039#line 10040 "configure"
10040#include "confdefs.h"
10041
10042#include <gtk/gtk.h>
10043#include <gtk/gtkfeatures.h>
10044#include <stdio.h>
10045#include <stdlib.h>
10046
10047int
10048main ()
10049{
10050 int major, minor, micro;
10051
10052 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10053 printf("%s, bad version string\n", "$min_gtk_version");
10054 exit(1);
10055 }
10056
10057 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10058 (GTK_MINOR_VERSION != gtk_minor_version) ||
10059 (GTK_MICRO_VERSION != gtk_micro_version)) {
10060 printf("Headers vs. library version mismatch!\n");
10061 exit(1);
10062 }
10063
10064 if (gtk_minor_version == 1) return FALSE;
10065
10066 return !((gtk_major_version > major) ||
10067 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10068 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10069}
10070
10071EOF
10072if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10073then
10074 :
10075else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -fr conftest*
10079 no_gtk=yes
10080fi
10081rm -fr conftest*
10082fi
10083
10084 CFLAGS="$ac_save_CFLAGS"
10085 LIBS="$ac_save_LIBS"
10086 else
10087 no_gtk=yes
10088 fi
10089 if test "x$no_gtk" = x ; then
10090 echo "$ac_t""yes" 1>&6
10091 wx_cv_lib_gtk=1.2.7
10092 else
10093 echo "$ac_t""no" 1>&6
10094 GTK_CFLAGS=""
10095 GTK_LIBS=""
10096 :
10097 fi
10098
10099
10100
10101 fi
10102
10103 if test -z "$wx_cv_lib_gtk"; then
10104
10105 if test x$gtk_config_exec_prefix != x ; then
10106 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10107 if test x${GTK_CONFIG+set} != xset ; then
10108 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10109 fi
10110 fi
10111 if test x$gtk_config_prefix != x ; then
10112 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10113 if test x${GTK_CONFIG+set} != xset ; then
10114 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10115 fi
10116 fi
10117
10118 # Extract the first word of "gtk-config", so it can be a program name with args.
10119set dummy gtk-config; ac_word=$2
10120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10121echo "configure:10122: checking for $ac_word" >&5
10122if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10123 echo $ac_n "(cached) $ac_c" 1>&6
10124else
10125 case "$GTK_CONFIG" in
10126 /*)
10127 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10128 ;;
10129 ?:/*)
10130 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10131 ;;
10132 *)
10133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10134 ac_dummy="$PATH"
10135 for ac_dir in $ac_dummy; do
10136 test -z "$ac_dir" && ac_dir=.
10137 if test -f $ac_dir/$ac_word; then
10138 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10139 break
10140 fi
10141 done
10142 IFS="$ac_save_ifs"
10143 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10144 ;;
10145esac
10146fi
10147GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10148if test -n "$GTK_CONFIG"; then
10149 echo "$ac_t""$GTK_CONFIG" 1>&6
10150else
10151 echo "$ac_t""no" 1>&6
10152fi
10153
10154 min_gtk_version=1.2.3
10155 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10156echo "configure:10157: checking for GTK - version >= $min_gtk_version" >&5
10157 no_gtk=""
10158 if test "$GTK_CONFIG" != "no" ; then
10159 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10160 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10161 ac_save_CFLAGS="$CFLAGS"
10162 ac_save_LIBS="$LIBS"
10163 CFLAGS="$CFLAGS $GTK_CFLAGS"
10164 LIBS="$LIBS $GTK_LIBS"
10165 if test "$cross_compiling" = yes; then
10166 echo $ac_n "cross compiling; assumed OK... $ac_c"
10167else
10168 cat > conftest.$ac_ext <<EOF
10169#line 10170 "configure"
10170#include "confdefs.h"
10171
10172#include <gtk/gtk.h>
10173#include <gtk/gtkfeatures.h>
10174#include <stdio.h>
10175#include <stdlib.h>
10176
10177int
10178main ()
10179{
10180 int major, minor, micro;
10181
10182 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10183 printf("%s, bad version string\n", "$min_gtk_version");
10184 exit(1);
10185 }
10186
10187 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10188 (GTK_MINOR_VERSION != gtk_minor_version) ||
10189 (GTK_MICRO_VERSION != gtk_micro_version)) {
10190 printf("Headers vs. library version mismatch!\n");
10191 exit(1);
10192 }
10193
10194 if (gtk_minor_version == 1) return FALSE;
10195
10196 return !((gtk_major_version > major) ||
10197 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10198 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10199}
10200
10201EOF
10202if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10203then
10204 :
10205else
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10208 rm -fr conftest*
10209 no_gtk=yes
10210fi
10211rm -fr conftest*
10212fi
10213
10214 CFLAGS="$ac_save_CFLAGS"
10215 LIBS="$ac_save_LIBS"
10216 else
10217 no_gtk=yes
10218 fi
10219 if test "x$no_gtk" = x ; then
10220 echo "$ac_t""yes" 1>&6
10221 wx_cv_lib_gtk=1.2.3
10222 else
10223 echo "$ac_t""no" 1>&6
10224 GTK_CFLAGS=""
10225 GTK_LIBS=""
10226 :
10227 fi
10228
10229
10230
10231 fi
10232
10233 if test -z "$wx_cv_lib_gtk"; then
10234 wx_cv_lib_gtk=none
10235 else
10236 wx_cv_cflags_gtk=$GTK_CFLAGS
10237 wx_cv_libs_gtk=$GTK_LIBS
10238 fi
10239
10240
10241fi
10242
10243
10244 if test "$gtk_version_cached" = 1; then
10245 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10246 fi
10247
10248 case "$wx_cv_lib_gtk" in
10249 2.0) WXGTK20=1
10250 ;;
10251 1.2.7) WXGTK127=1
10252 WXGTK12=1
10253 ;;
10254 1.2.3) WXGTK12=1
10255 ;;
10256 *) { echo "configure: error:
10257Please check that gtk-config is in path, the directory
10258where GTK+ libraries are installed (returned by
10259'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10260equivalent variable and GTK+ is version 1.2.3 or above.
10261 " 1>&2; exit 1; }
10262 ;;
10263 esac
10264
10265 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10266 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10267
10268 AFMINSTALL=afminstall
10269 TOOLKIT=GTK
10270 GUIDIST=GTK_DIST
10271
10272 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10273echo "configure:10274: checking for gdk_im_open in -lgdk" >&5
10274ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10275if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10276 echo $ac_n "(cached) $ac_c" 1>&6
10277else
10278 ac_save_LIBS="$LIBS"
10279LIBS="-lgdk $LIBS"
10280cat > conftest.$ac_ext <<EOF
10281#line 10282 "configure"
10282#include "confdefs.h"
10283/* Override any gcc2 internal prototype to avoid an error. */
10284/* We use char because int might match the return type of a gcc2
10285 builtin and then its argument prototype would still apply. */
10286char gdk_im_open();
10287
10288int main() {
10289gdk_im_open()
10290; return 0; }
10291EOF
10292if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10293 rm -rf conftest*
10294 eval "ac_cv_lib_$ac_lib_var=yes"
10295else
10296 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10298 rm -rf conftest*
10299 eval "ac_cv_lib_$ac_lib_var=no"
10300fi
10301rm -f conftest*
10302LIBS="$ac_save_LIBS"
10303
10304fi
10305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10306 echo "$ac_t""yes" 1>&6
10307 cat >> confdefs.h <<\EOF
10308#define HAVE_XIM 1
10309EOF
10310
10311else
10312 echo "$ac_t""no" 1>&6
10313fi
10314
10315 fi
10316
10317 if test "$wxUSE_MGL" = 1; then
10318
10319 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10320echo "configure:10321: checking for SciTech MGL library" >&5
10321 if test "x$MGL_ROOT" = x ; then
10322 echo "$ac_t""not found" 1>&6
10323 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10324 else
10325 echo "$ac_t""$MGL_ROOT" 1>&6
10326 fi
10327
10328 mgl_os=linux/gcc/glibc
10329 mgl_lib_type=""
10330
10331 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10332 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
10333 mgl_lib_type=debug
10334 fi
10335 fi
10336 if test "x$mgl_lib_type" = x ; then
10337 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
10338 mgl_lib_type=release
10339 else
10340 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10341 fi
10342 fi
10343
10344 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10345 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10346
10347 AFMINSTALL=afminstall
10348 TOOLKIT=MGL
10349 GUIDIST=MGL_DIST
10350 fi
10351
10352 if test "$wxUSE_WINE" = 1; then
10353 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10354echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10355echo "configure:10356: checking for windows.h" >&5
10356if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10358else
10359 cat > conftest.$ac_ext <<EOF
10360#line 10361 "configure"
10361#include "confdefs.h"
10362#include <windows.h>
10363EOF
10364ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10365{ (eval echo configure:10366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10366ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10367if test -z "$ac_err"; then
10368 rm -rf conftest*
10369 eval "ac_cv_header_$ac_safe=yes"
10370else
10371 echo "$ac_err" >&5
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374 rm -rf conftest*
10375 eval "ac_cv_header_$ac_safe=no"
10376fi
10377rm -f conftest*
10378fi
10379if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10380 echo "$ac_t""yes" 1>&6
10381 :
10382else
10383 echo "$ac_t""no" 1>&6
10384
10385 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10386
10387fi
10388
10389
10390 xpm_link=""
10391 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10392echo "configure:10393: checking for Xpm library" >&5
10393
10394ac_find_libraries=
10395for ac_dir in $SEARCH_LIB;
10396 do
10397 for ac_extension in a so sl dylib; do
10398 if test -f "$ac_dir/libXpm.$ac_extension"; then
10399 ac_find_libraries=$ac_dir
10400 break 2
10401 fi
10402 done
10403 done
10404
10405 if test "$ac_find_libraries" != "" ; then
10406 GUI_TK_LIBRARY="-L$ac_find_libraries"
10407 xpm_link="-lXpm"
10408 cat >> confdefs.h <<\EOF
10409#define wxHAVE_LIB_XPM 1
10410EOF
10411
10412 echo "$ac_t""found at $ac_find_libraries" 1>&6
10413 else
10414 echo "$ac_t""no" 1>&6
10415 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10416 fi
10417
10418 mesa_link=""
10419 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10420echo "configure:10421: checking for Mesa library" >&5
10421
10422ac_find_libraries=
10423for ac_dir in $SEARCH_LIB;
10424 do
10425 for ac_extension in a so sl dylib; do
10426 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10427 ac_find_libraries=$ac_dir
10428 break 2
10429 fi
10430 done
10431 done
10432
10433 if test "$ac_find_libraries" != "" ; then
10434 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10435 mesa_link="-lMesaGL"
10436 echo "$ac_t""found at $ac_find_libraries" 1>&6
10437 else
10438 { echo "configure: error: no" 1>&2; exit 1; }
10439 fi
10440
10441 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10442 TOOLKIT=MSW
10443 GUIDIST=MSW_DIST
10444 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10445 fi
10446
10447 if test "$wxUSE_MOTIF" = 1; then
10448 # If we find X, set shell vars x_includes and x_libraries to the
10449# paths, otherwise set no_x=yes.
10450# Uses ac_ vars as temps to allow command line to override cache and checks.
10451# --without-x overrides everything else, but does not touch the cache.
10452echo $ac_n "checking for X""... $ac_c" 1>&6
10453echo "configure:10454: checking for X" >&5
10454
10455# Check whether --with-x or --without-x was given.
10456if test "${with_x+set}" = set; then
10457 withval="$with_x"
10458 :
10459fi
10460
10461# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10462if test "x$with_x" = xno; then
10463 # The user explicitly disabled X.
10464 have_x=disabled
10465else
10466 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10467 # Both variables are already set.
10468 have_x=yes
10469 else
10470if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10472else
10473 # One or both of the vars are not set, and there is no cached value.
10474ac_x_includes=NO ac_x_libraries=NO
10475rm -fr conftestdir
10476if mkdir conftestdir; then
10477 cd conftestdir
10478 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10479 cat > Imakefile <<'EOF'
10480acfindx:
10481 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10482EOF
10483 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10485 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10486 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10487 for ac_extension in a so sl; do
10488 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10489 test -f $ac_im_libdir/libX11.$ac_extension; then
10490 ac_im_usrlibdir=$ac_im_libdir; break
10491 fi
10492 done
10493 # Screen out bogus values from the imake configuration. They are
10494 # bogus both because they are the default anyway, and because
10495 # using them would break gcc on systems where it needs fixed includes.
10496 case "$ac_im_incroot" in
10497 /usr/include) ;;
10498 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10499 esac
10500 case "$ac_im_usrlibdir" in
10501 /usr/lib | /lib) ;;
10502 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10503 esac
10504 fi
10505 cd ..
10506 rm -fr conftestdir
10507fi
10508
10509if test "$ac_x_includes" = NO; then
10510 # Guess where to find include files, by looking for this one X11 .h file.
10511 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10512
10513 # First, try using that file with no special directory specified.
10514cat > conftest.$ac_ext <<EOF
10515#line 10516 "configure"
10516#include "confdefs.h"
10517#include <$x_direct_test_include>
10518EOF
10519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520{ (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522if test -z "$ac_err"; then
10523 rm -rf conftest*
10524 # We can compile using X headers with no special include directory.
10525ac_x_includes=
10526else
10527 echo "$ac_err" >&5
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 rm -rf conftest*
10531 # Look for the header file in a standard set of common directories.
10532# Check X11 before X11Rn because it is often a symlink to the current release.
10533 for ac_dir in \
10534 /usr/X11/include \
10535 /usr/X11R6/include \
10536 /usr/X11R5/include \
10537 /usr/X11R4/include \
10538 \
10539 /usr/include/X11 \
10540 /usr/include/X11R6 \
10541 /usr/include/X11R5 \
10542 /usr/include/X11R4 \
10543 \
10544 /usr/local/X11/include \
10545 /usr/local/X11R6/include \
10546 /usr/local/X11R5/include \
10547 /usr/local/X11R4/include \
10548 \
10549 /usr/local/include/X11 \
10550 /usr/local/include/X11R6 \
10551 /usr/local/include/X11R5 \
10552 /usr/local/include/X11R4 \
10553 \
10554 /usr/X386/include \
10555 /usr/x386/include \
10556 /usr/XFree86/include/X11 \
10557 \
10558 /usr/include \
10559 /usr/local/include \
10560 /usr/unsupported/include \
10561 /usr/athena/include \
10562 /usr/local/x11r5/include \
10563 /usr/lpp/Xamples/include \
10564 \
10565 /usr/openwin/include \
10566 /usr/openwin/share/include \
10567 ; \
10568 do
10569 if test -r "$ac_dir/$x_direct_test_include"; then
10570 ac_x_includes=$ac_dir
10571 break
10572 fi
10573 done
10574fi
10575rm -f conftest*
10576fi # $ac_x_includes = NO
10577
10578if test "$ac_x_libraries" = NO; then
10579 # Check for the libraries.
10580
10581 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10582 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10583
10584 # See if we find them without any special options.
10585 # Don't add to $LIBS permanently.
10586 ac_save_LIBS="$LIBS"
10587 LIBS="-l$x_direct_test_library $LIBS"
10588cat > conftest.$ac_ext <<EOF
10589#line 10590 "configure"
10590#include "confdefs.h"
10591
10592int main() {
10593${x_direct_test_function}()
10594; return 0; }
10595EOF
10596if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10597 rm -rf conftest*
10598 LIBS="$ac_save_LIBS"
10599# We can link X programs with no special library path.
10600ac_x_libraries=
10601else
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 rm -rf conftest*
10605 LIBS="$ac_save_LIBS"
10606# First see if replacing the include by lib works.
10607# Check X11 before X11Rn because it is often a symlink to the current release.
10608for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10609 /usr/X11/lib \
10610 /usr/X11R6/lib \
10611 /usr/X11R5/lib \
10612 /usr/X11R4/lib \
10613 \
10614 /usr/lib/X11 \
10615 /usr/lib/X11R6 \
10616 /usr/lib/X11R5 \
10617 /usr/lib/X11R4 \
10618 \
10619 /usr/local/X11/lib \
10620 /usr/local/X11R6/lib \
10621 /usr/local/X11R5/lib \
10622 /usr/local/X11R4/lib \
10623 \
10624 /usr/local/lib/X11 \
10625 /usr/local/lib/X11R6 \
10626 /usr/local/lib/X11R5 \
10627 /usr/local/lib/X11R4 \
10628 \
10629 /usr/X386/lib \
10630 /usr/x386/lib \
10631 /usr/XFree86/lib/X11 \
10632 \
10633 /usr/lib \
10634 /usr/local/lib \
10635 /usr/unsupported/lib \
10636 /usr/athena/lib \
10637 /usr/local/x11r5/lib \
10638 /usr/lpp/Xamples/lib \
10639 /lib/usr/lib/X11 \
10640 \
10641 /usr/openwin/lib \
10642 /usr/openwin/share/lib \
10643 ; \
10644do
10645 for ac_extension in a so sl; do
10646 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10647 ac_x_libraries=$ac_dir
10648 break 2
10649 fi
10650 done
10651done
10652fi
10653rm -f conftest*
10654fi # $ac_x_libraries = NO
10655
10656if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10657 # Didn't find X anywhere. Cache the known absence of X.
10658 ac_cv_have_x="have_x=no"
10659else
10660 # Record where we found X for the cache.
10661 ac_cv_have_x="have_x=yes \
10662 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10663fi
10664fi
10665 fi
10666 eval "$ac_cv_have_x"
10667fi # $with_x != no
10668
10669if test "$have_x" != yes; then
10670 echo "$ac_t""$have_x" 1>&6
10671 no_x=yes
10672else
10673 # If each of the values was on the command line, it overrides each guess.
10674 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10675 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10676 # Update the cache value to reflect the command line values.
10677 ac_cv_have_x="have_x=yes \
10678 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10679 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10680fi
10681
10682if test "$no_x" = yes; then
10683 # Not all programs may use this symbol, but it does not hurt to define it.
10684 cat >> confdefs.h <<\EOF
10685#define X_DISPLAY_MISSING 1
10686EOF
10687
10688 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10689else
10690 if test -n "$x_includes"; then
10691 X_CFLAGS="$X_CFLAGS -I$x_includes"
10692 fi
10693
10694 # It would also be nice to do this for all -L options, not just this one.
10695 if test -n "$x_libraries"; then
10696 X_LIBS="$X_LIBS -L$x_libraries"
10697 # For Solaris; some versions of Sun CC require a space after -R and
10698 # others require no space. Words are not sufficient . . . .
10699 case "`(uname -sr) 2>/dev/null`" in
10700 "SunOS 5"*)
10701 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10702echo "configure:10703: checking whether -R must be followed by a space" >&5
10703 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10704 cat > conftest.$ac_ext <<EOF
10705#line 10706 "configure"
10706#include "confdefs.h"
10707
10708int main() {
10709
10710; return 0; }
10711EOF
10712if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10713 rm -rf conftest*
10714 ac_R_nospace=yes
10715else
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
10719 ac_R_nospace=no
10720fi
10721rm -f conftest*
10722 if test $ac_R_nospace = yes; then
10723 echo "$ac_t""no" 1>&6
10724 X_LIBS="$X_LIBS -R$x_libraries"
10725 else
10726 LIBS="$ac_xsave_LIBS -R $x_libraries"
10727 cat > conftest.$ac_ext <<EOF
10728#line 10729 "configure"
10729#include "confdefs.h"
10730
10731int main() {
10732
10733; return 0; }
10734EOF
10735if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10736 rm -rf conftest*
10737 ac_R_space=yes
10738else
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10741 rm -rf conftest*
10742 ac_R_space=no
10743fi
10744rm -f conftest*
10745 if test $ac_R_space = yes; then
10746 echo "$ac_t""yes" 1>&6
10747 X_LIBS="$X_LIBS -R $x_libraries"
10748 else
10749 echo "$ac_t""neither works" 1>&6
10750 fi
10751 fi
10752 LIBS="$ac_xsave_LIBS"
10753 esac
10754 fi
10755
10756 # Check for system-dependent libraries X programs must link with.
10757 # Do this before checking for the system-independent R6 libraries
10758 # (-lICE), since we may need -lsocket or whatever for X linking.
10759
10760 if test "$ISC" = yes; then
10761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10762 else
10763 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10764 # libraries were built with DECnet support. And karl@cs.umb.edu says
10765 # the Alpha needs dnet_stub (dnet does not exist).
10766 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10767echo "configure:10768: checking for dnet_ntoa in -ldnet" >&5
10768ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10769if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10770 echo $ac_n "(cached) $ac_c" 1>&6
10771else
10772 ac_save_LIBS="$LIBS"
10773LIBS="-ldnet $LIBS"
10774cat > conftest.$ac_ext <<EOF
10775#line 10776 "configure"
10776#include "confdefs.h"
10777/* Override any gcc2 internal prototype to avoid an error. */
10778/* We use char because int might match the return type of a gcc2
10779 builtin and then its argument prototype would still apply. */
10780char dnet_ntoa();
10781
10782int main() {
10783dnet_ntoa()
10784; return 0; }
10785EOF
10786if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10787 rm -rf conftest*
10788 eval "ac_cv_lib_$ac_lib_var=yes"
10789else
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 rm -rf conftest*
10793 eval "ac_cv_lib_$ac_lib_var=no"
10794fi
10795rm -f conftest*
10796LIBS="$ac_save_LIBS"
10797
10798fi
10799if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10800 echo "$ac_t""yes" 1>&6
10801 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10802else
10803 echo "$ac_t""no" 1>&6
10804fi
10805
10806 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10807 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10808echo "configure:10809: checking for dnet_ntoa in -ldnet_stub" >&5
10809ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10810if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10812else
10813 ac_save_LIBS="$LIBS"
10814LIBS="-ldnet_stub $LIBS"
10815cat > conftest.$ac_ext <<EOF
10816#line 10817 "configure"
10817#include "confdefs.h"
10818/* Override any gcc2 internal prototype to avoid an error. */
10819/* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10821char dnet_ntoa();
10822
10823int main() {
10824dnet_ntoa()
10825; return 0; }
10826EOF
10827if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10828 rm -rf conftest*
10829 eval "ac_cv_lib_$ac_lib_var=yes"
10830else
10831 echo "configure: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 rm -rf conftest*
10834 eval "ac_cv_lib_$ac_lib_var=no"
10835fi
10836rm -f conftest*
10837LIBS="$ac_save_LIBS"
10838
10839fi
10840if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10841 echo "$ac_t""yes" 1>&6
10842 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10843else
10844 echo "$ac_t""no" 1>&6
10845fi
10846
10847 fi
10848
10849 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10850 # to get the SysV transport functions.
10851 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10852 # needs -lnsl.
10853 # The nsl library prevents programs from opening the X display
10854 # on Irix 5.2, according to dickey@clark.net.
10855 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10856echo "configure:10857: checking for gethostbyname" >&5
10857if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10859else
10860 cat > conftest.$ac_ext <<EOF
10861#line 10862 "configure"
10862#include "confdefs.h"
10863/* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char gethostbyname(); below. */
10865#include <assert.h>
10866/* Override any gcc2 internal prototype to avoid an error. */
10867/* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10869char gethostbyname();
10870
10871int main() {
10872
10873/* The GNU C library defines this for functions which it implements
10874 to always fail with ENOSYS. Some functions are actually named
10875 something starting with __ and the normal name is an alias. */
10876#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10877choke me
10878#else
10879gethostbyname();
10880#endif
10881
10882; return 0; }
10883EOF
10884if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10885 rm -rf conftest*
10886 eval "ac_cv_func_gethostbyname=yes"
10887else
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 rm -rf conftest*
10891 eval "ac_cv_func_gethostbyname=no"
10892fi
10893rm -f conftest*
10894fi
10895
10896if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 :
10899else
10900 echo "$ac_t""no" 1>&6
10901fi
10902
10903 if test $ac_cv_func_gethostbyname = no; then
10904 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10905echo "configure:10906: checking for gethostbyname in -lnsl" >&5
10906ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
10909else
10910 ac_save_LIBS="$LIBS"
10911LIBS="-lnsl $LIBS"
10912cat > conftest.$ac_ext <<EOF
10913#line 10914 "configure"
10914#include "confdefs.h"
10915/* Override any gcc2 internal prototype to avoid an error. */
10916/* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10918char gethostbyname();
10919
10920int main() {
10921gethostbyname()
10922; return 0; }
10923EOF
10924if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10925 rm -rf conftest*
10926 eval "ac_cv_lib_$ac_lib_var=yes"
10927else
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10930 rm -rf conftest*
10931 eval "ac_cv_lib_$ac_lib_var=no"
10932fi
10933rm -f conftest*
10934LIBS="$ac_save_LIBS"
10935
10936fi
10937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10938 echo "$ac_t""yes" 1>&6
10939 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10940else
10941 echo "$ac_t""no" 1>&6
10942fi
10943
10944 fi
10945
10946 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10947 # socket/setsockopt and other routines are undefined under SCO ODT
10948 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10949 # on later versions), says simon@lia.di.epfl.ch: it contains
10950 # gethostby* variants that don't use the nameserver (or something).
10951 # -lsocket must be given before -lnsl if both are needed.
10952 # We assume that if connect needs -lnsl, so does gethostbyname.
10953 echo $ac_n "checking for connect""... $ac_c" 1>&6
10954echo "configure:10955: checking for connect" >&5
10955if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
10957else
10958 cat > conftest.$ac_ext <<EOF
10959#line 10960 "configure"
10960#include "confdefs.h"
10961/* System header to define __stub macros and hopefully few prototypes,
10962 which can conflict with char connect(); below. */
10963#include <assert.h>
10964/* Override any gcc2 internal prototype to avoid an error. */
10965/* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10967char connect();
10968
10969int main() {
10970
10971/* The GNU C library defines this for functions which it implements
10972 to always fail with ENOSYS. Some functions are actually named
10973 something starting with __ and the normal name is an alias. */
10974#if defined (__stub_connect) || defined (__stub___connect)
10975choke me
10976#else
10977connect();
10978#endif
10979
10980; return 0; }
10981EOF
10982if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10983 rm -rf conftest*
10984 eval "ac_cv_func_connect=yes"
10985else
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10988 rm -rf conftest*
10989 eval "ac_cv_func_connect=no"
10990fi
10991rm -f conftest*
10992fi
10993
10994if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10995 echo "$ac_t""yes" 1>&6
10996 :
10997else
10998 echo "$ac_t""no" 1>&6
10999fi
11000
11001 if test $ac_cv_func_connect = no; then
11002 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11003echo "configure:11004: checking for connect in -lsocket" >&5
11004ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11006 echo $ac_n "(cached) $ac_c" 1>&6
11007else
11008 ac_save_LIBS="$LIBS"
11009LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11010cat > conftest.$ac_ext <<EOF
11011#line 11012 "configure"
11012#include "confdefs.h"
11013/* Override any gcc2 internal prototype to avoid an error. */
11014/* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */
11016char connect();
11017
11018int main() {
11019connect()
11020; return 0; }
11021EOF
11022if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11023 rm -rf conftest*
11024 eval "ac_cv_lib_$ac_lib_var=yes"
11025else
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -rf conftest*
11029 eval "ac_cv_lib_$ac_lib_var=no"
11030fi
11031rm -f conftest*
11032LIBS="$ac_save_LIBS"
11033
11034fi
11035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11037 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11038else
11039 echo "$ac_t""no" 1>&6
11040fi
11041
11042 fi
11043
11044 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11045 echo $ac_n "checking for remove""... $ac_c" 1>&6
11046echo "configure:11047: checking for remove" >&5
11047if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049else
11050 cat > conftest.$ac_ext <<EOF
11051#line 11052 "configure"
11052#include "confdefs.h"
11053/* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char remove(); below. */
11055#include <assert.h>
11056/* Override any gcc2 internal prototype to avoid an error. */
11057/* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059char remove();
11060
11061int main() {
11062
11063/* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
11066#if defined (__stub_remove) || defined (__stub___remove)
11067choke me
11068#else
11069remove();
11070#endif
11071
11072; return 0; }
11073EOF
11074if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11075 rm -rf conftest*
11076 eval "ac_cv_func_remove=yes"
11077else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 eval "ac_cv_func_remove=no"
11082fi
11083rm -f conftest*
11084fi
11085
11086if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11087 echo "$ac_t""yes" 1>&6
11088 :
11089else
11090 echo "$ac_t""no" 1>&6
11091fi
11092
11093 if test $ac_cv_func_remove = no; then
11094 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11095echo "configure:11096: checking for remove in -lposix" >&5
11096ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11097if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11099else
11100 ac_save_LIBS="$LIBS"
11101LIBS="-lposix $LIBS"
11102cat > conftest.$ac_ext <<EOF
11103#line 11104 "configure"
11104#include "confdefs.h"
11105/* Override any gcc2 internal prototype to avoid an error. */
11106/* We use char because int might match the return type of a gcc2
11107 builtin and then its argument prototype would still apply. */
11108char remove();
11109
11110int main() {
11111remove()
11112; return 0; }
11113EOF
11114if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11115 rm -rf conftest*
11116 eval "ac_cv_lib_$ac_lib_var=yes"
11117else
11118 echo "configure: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 rm -rf conftest*
11121 eval "ac_cv_lib_$ac_lib_var=no"
11122fi
11123rm -f conftest*
11124LIBS="$ac_save_LIBS"
11125
11126fi
11127if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11128 echo "$ac_t""yes" 1>&6
11129 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11130else
11131 echo "$ac_t""no" 1>&6
11132fi
11133
11134 fi
11135
11136 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11137 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11138echo "configure:11139: checking for shmat" >&5
11139if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11141else
11142 cat > conftest.$ac_ext <<EOF
11143#line 11144 "configure"
11144#include "confdefs.h"
11145/* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char shmat(); below. */
11147#include <assert.h>
11148/* Override any gcc2 internal prototype to avoid an error. */
11149/* We use char because int might match the return type of a gcc2
11150 builtin and then its argument prototype would still apply. */
11151char shmat();
11152
11153int main() {
11154
11155/* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158#if defined (__stub_shmat) || defined (__stub___shmat)
11159choke me
11160#else
11161shmat();
11162#endif
11163
11164; return 0; }
11165EOF
11166if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11167 rm -rf conftest*
11168 eval "ac_cv_func_shmat=yes"
11169else
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11172 rm -rf conftest*
11173 eval "ac_cv_func_shmat=no"
11174fi
11175rm -f conftest*
11176fi
11177
11178if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11179 echo "$ac_t""yes" 1>&6
11180 :
11181else
11182 echo "$ac_t""no" 1>&6
11183fi
11184
11185 if test $ac_cv_func_shmat = no; then
11186 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11187echo "configure:11188: checking for shmat in -lipc" >&5
11188ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11189if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11191else
11192 ac_save_LIBS="$LIBS"
11193LIBS="-lipc $LIBS"
11194cat > conftest.$ac_ext <<EOF
11195#line 11196 "configure"
11196#include "confdefs.h"
11197/* Override any gcc2 internal prototype to avoid an error. */
11198/* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */
11200char shmat();
11201
11202int main() {
11203shmat()
11204; return 0; }
11205EOF
11206if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 rm -rf conftest*
11208 eval "ac_cv_lib_$ac_lib_var=yes"
11209else
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -rf conftest*
11213 eval "ac_cv_lib_$ac_lib_var=no"
11214fi
11215rm -f conftest*
11216LIBS="$ac_save_LIBS"
11217
11218fi
11219if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11222else
11223 echo "$ac_t""no" 1>&6
11224fi
11225
11226 fi
11227 fi
11228
11229 # Check for libraries that X11R6 Xt/Xaw programs need.
11230 ac_save_LDFLAGS="$LDFLAGS"
11231 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11232 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11233 # check for ICE first), but we must link in the order -lSM -lICE or
11234 # we get undefined symbols. So assume we have SM if we have ICE.
11235 # These have to be linked with before -lX11, unlike the other
11236 # libraries we check for below, so use a different variable.
11237 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11238 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11239echo "configure:11240: checking for IceConnectionNumber in -lICE" >&5
11240ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11243else
11244 ac_save_LIBS="$LIBS"
11245LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11246cat > conftest.$ac_ext <<EOF
11247#line 11248 "configure"
11248#include "confdefs.h"
11249/* Override any gcc2 internal prototype to avoid an error. */
11250/* We use char because int might match the return type of a gcc2
11251 builtin and then its argument prototype would still apply. */
11252char IceConnectionNumber();
11253
11254int main() {
11255IceConnectionNumber()
11256; return 0; }
11257EOF
11258if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11259 rm -rf conftest*
11260 eval "ac_cv_lib_$ac_lib_var=yes"
11261else
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11264 rm -rf conftest*
11265 eval "ac_cv_lib_$ac_lib_var=no"
11266fi
11267rm -f conftest*
11268LIBS="$ac_save_LIBS"
11269
11270fi
11271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11272 echo "$ac_t""yes" 1>&6
11273 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11274else
11275 echo "$ac_t""no" 1>&6
11276fi
11277
11278 LDFLAGS="$ac_save_LDFLAGS"
11279
11280fi
11281
11282
11283 if test "$no_x" = "yes"; then
11284 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11285 fi
11286
11287 GUI_TK_LIBRARY="$X_LIBS"
11288 TOOLKIT_INCLUDE="$X_CFLAGS"
11289 AFMINSTALL=afminstall
11290 COMPILED_X_PROGRAM=0
11291
11292 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11293echo "configure:11294: checking for Motif/Lesstif headers" >&5
11294
11295ac_find_includes=
11296for ac_dir in $SEARCH_INCLUDE;
11297 do
11298 if test -f "$ac_dir/Xm/Xm.h"; then
11299 ac_find_includes=$ac_dir
11300 break
11301 fi
11302 done
11303
11304 if test "$ac_find_includes" != "" ; then
11305 echo "$ac_t""found $ac_find_includes" 1>&6
11306 else
11307 cat > conftest.$ac_ext <<EOF
11308#line 11309 "configure"
11309#include "confdefs.h"
11310
11311 #include <Xm/Xm.h>
11312
11313int main() {
11314
11315 int version;
11316 version = xmUseVersion;
11317
11318; return 0; }
11319EOF
11320if { (eval echo configure:11321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11321 rm -rf conftest*
11322
11323 echo "$ac_t""found in default search path" 1>&6
11324 COMPILED_X_PROGRAM=1
11325
11326else
11327 echo "configure: failed program was:" >&5
11328 cat conftest.$ac_ext >&5
11329 rm -rf conftest*
11330
11331 echo "$ac_t""no" 1>&6
11332 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11333
11334
11335fi
11336rm -f conftest*
11337 fi
11338
11339 if test "$COMPILED_X_PROGRAM" = 0; then
11340 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11341echo "configure:11342: checking for Motif/Lesstif library" >&5
11342
11343ac_find_libraries=
11344for ac_dir in $SEARCH_LIB;
11345 do
11346 for ac_extension in a so sl dylib; do
11347 if test -f "$ac_dir/libXm.$ac_extension"; then
11348 ac_find_libraries=$ac_dir
11349 break 2
11350 fi
11351 done
11352 done
11353
11354 if test "$ac_find_libraries" != "" ; then
11355
11356 ac_path_to_include=$ac_find_includes
11357 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11358 result=$?
11359 if test $result = 0; then
11360 ac_path_to_include=""
11361 else
11362 ac_path_to_include="-I$ac_find_includes"
11363 fi
11364
11365
11366 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11367 result=$?
11368 if test $result = 0; then
11369 ac_path_to_link=""
11370 else
11371 ac_path_to_link="-L$ac_find_libraries"
11372 fi
11373
11374
11375 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11376 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
11377 echo "$ac_t""found at $ac_find_libraries" 1>&6
11378 else
11379 cat > conftest.$ac_ext <<EOF
11380#line 11381 "configure"
11381#include "confdefs.h"
11382
11383 #include <Xm/Xm.h>
11384
11385int main() {
11386
11387 int version;
11388 version = xmUseVersion;
11389
11390; return 0; }
11391EOF
11392if { (eval echo configure:11393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11393 rm -rf conftest*
11394
11395 echo "$ac_t""found in default search path" 1>&6
11396 COMPILED_X_PROGRAM=1
11397
11398else
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11401 rm -rf conftest*
11402
11403 echo "$ac_t""no" 1>&6
11404 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11405
11406
11407fi
11408rm -f conftest*
11409 fi
11410 fi
11411
11412 xpm_link=""
11413 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11414echo "configure:11415: checking for Xpm library" >&5
11415
11416ac_find_libraries=
11417for ac_dir in $SEARCH_LIB;
11418 do
11419 for ac_extension in a so sl dylib; do
11420 if test -f "$ac_dir/libXpm.$ac_extension"; then
11421 ac_find_libraries=$ac_dir
11422 break 2
11423 fi
11424 done
11425 done
11426
11427 if test "$ac_find_libraries" != "" ; then
11428
11429 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11430 result=$?
11431 if test $result = 0; then
11432 ac_path_to_link=""
11433 else
11434 ac_path_to_link="-L$ac_find_libraries"
11435 fi
11436
11437 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11438 xpm_link="-lXpm "
11439 cat >> confdefs.h <<\EOF
11440#define wxHAVE_LIB_XPM 1
11441EOF
11442
11443 echo "$ac_t""found at $ac_find_libraries" 1>&6
11444 else
11445 cat > conftest.$ac_ext <<EOF
11446#line 11447 "configure"
11447#include "confdefs.h"
11448
11449 #include <X11/xpm.h>
11450
11451int main() {
11452
11453 int version;
11454 version = XpmLibraryVersion();
11455
11456; return 0; }
11457EOF
11458if { (eval echo configure:11459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11459 rm -rf conftest*
11460
11461 xpm_link="-lXpm "
11462 cat >> confdefs.h <<\EOF
11463#define wxHAVE_LIB_XPM 1
11464EOF
11465
11466 echo "$ac_t""found in default search path" 1>&6
11467 COMPILED_X_PROGRAM=0
11468
11469else
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 rm -rf conftest*
11473
11474 echo "$ac_t""no" 1>&6
11475 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11476
11477
11478fi
11479rm -f conftest*
11480 fi
11481
11482 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
11483 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11484 TOOLKIT=MOTIF
11485 GUIDIST=MOTIF_DIST
11486 fi
11487
11488 if test "$wxUSE_MAC" = 1; then
11489 if test "$wxUSE_PRECOMP" = "yes"; then
11490 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
11491 fi
11492 CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11493 CFLAGS="${CFLAGS} -fpascal-strings"
11494 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
11495 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11496
11497 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11498 TOOLKIT=MAC
11499 GUIDIST=MACX_DIST
11500 fi
11501
11502 if test "$wxUSE_PM" = 1; then
11503 TOOLKIT=PM
11504 GUIDIST=GTK_DIST
11505 fi
11506
11507 if test "$TOOLKIT" = "PM" ; then
11508 TOOLKIT_DIR="os2"
11509 else
11510 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11511 fi
11512
11513 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
11514
11515 if test "$wxUSE_UNIVERSAL" = "yes"; then
11516 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11517 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11518 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11519 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11520 WIDGET_SET=univ
11521 else
11522 ALL_OBJECTS="\$(GUIOBJS)"
11523 fi
11524
11525 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11526
11527 if test "$TOOLKIT" != "MSW"; then
11528 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11529 fi
11530
11531 if test "$wxUSE_HTML" = "yes"; then
11532 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11533 fi
11534
11535 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11536 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
11537 fi
11538 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11539 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
11540 fi
11541 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11542 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11543 fi
11544 if test "$wxUSE_LIBPNG" = "builtin" ; then
11545 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11546 fi
11547 if test "$wxUSE_FREETYPE" = "builtin" ; then
11548 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11549 fi
11550
11551 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
11552 RPM_SPEC="wx\$(TOOLKIT).spec"
11553
11554 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11555 DISTDIR="wx\$(TOOLKIT)"
11556else
11557 USE_GUI=0
11558
11559 TOOLKIT_DIR="base"
11560
11561 if test "$USE_WIN32" = 1 ; then
11562 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11563 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11564
11565 TOOLKIT="MSW"
11566 else
11567 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11568 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11569 fi
11570
11571 PORT_FILES="\${top_srcdir}/src/files.lst"
11572 RPM_FILES="src/rpmfiles.lst"
11573 RPM_SPEC="wxBase.spec"
11574
11575 GUIDIST="BASE_DIST"
11576 DISTDIR="wxBase"
11577fi
11578
11579if test "$wxUSE_REGEX" = "builtin" ; then
11580 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11581fi
11582if test "$wxUSE_ZLIB" = "builtin" ; then
11583 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11584fi
11585
11586if test "$wxUSE_OPENGL" = "yes"; then
11587 if test "$wxUSE_MAC" = 1; then
11588 cat >> confdefs.h <<\EOF
11589#define wxUSE_OPENGL 1
11590EOF
11591
11592 cat >> confdefs.h <<\EOF
11593#define wxUSE_GLCANVAS 1
11594EOF
11595
11596 OPENGL_LIBS="-framework OpenGL -framework AGL"
11597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11598 else
11599 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11600echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11601echo "configure:11602: checking for GL/gl.h" >&5
11602if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11603 echo $ac_n "(cached) $ac_c" 1>&6
11604else
11605 cat > conftest.$ac_ext <<EOF
11606#line 11607 "configure"
11607#include "confdefs.h"
11608#include <GL/gl.h>
11609EOF
11610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11611{ (eval echo configure:11612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11612ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11613if test -z "$ac_err"; then
11614 rm -rf conftest*
11615 eval "ac_cv_header_$ac_safe=yes"
11616else
11617 echo "$ac_err" >&5
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 eval "ac_cv_header_$ac_safe=no"
11622fi
11623rm -f conftest*
11624fi
11625if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11626 echo "$ac_t""yes" 1>&6
11627
11628 cat >> confdefs.h <<\EOF
11629#define wxUSE_OPENGL 1
11630EOF
11631
11632 cat >> confdefs.h <<\EOF
11633#define wxUSE_GLCANVAS 1
11634EOF
11635
11636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11637 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11638echo "configure:11639: checking for glFlush in -lGL" >&5
11639ac_lib_var=`echo GL'_'glFlush | 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="-lGL $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 glFlush();
11652
11653int main() {
11654glFlush()
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
11673 OPENGL_LIBS="-lGL -lGLU"
11674
11675else
11676 echo "$ac_t""no" 1>&6
11677
11678 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11679echo "configure:11680: checking for glFlush in -lMesaGL" >&5
11680ac_lib_var=`echo MesaGL'_'glFlush | 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="-lMesaGL $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 glFlush();
11693
11694int main() {
11695glFlush()
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
11714 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11715
11716else
11717 echo "$ac_t""no" 1>&6
11718fi
11719
11720
11721fi
11722
11723
11724else
11725 echo "$ac_t""no" 1>&6
11726wxUSE_OPENGL=0
11727fi
11728
11729 fi
11730fi
11731
11732if test -z "$TOOLKIT_VPATH" ; then
11733 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11734fi
11735
11736if test -n "$TOOLKIT" ; then
11737 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11738fi
11739
11740if test "$wxUSE_CYGWIN" = 1 ; then
11741 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11742fi
11743
11744lib_unicode_suffix=
11745if test "$wxUSE_UNICODE" = "yes"; then
11746 lib_unicode_suffix=u
11747fi
11748
11749lib_debug_suffix=
11750if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11751 lib_debug_suffix=d
11752 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11753fi
11754
11755TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11756TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
11757
11758if test "$cross_compiling" = "yes"; then
11759 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11760 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11761fi
11762
11763WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11764WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11765
11766WXCONFIG_LIBS="-l${WX_LIBRARY}"
11767
11768if test "$wxUSE_OPENGL" = "yes"; then
11769 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11770fi
11771
11772WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11773WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11774
11775WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11776WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11777
11778WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11779WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11780WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11781WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11782
11783WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11784WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
11785
11786
11787if test "$wxUSE_SHARED" = "yes"; then
11788
11789 if test "$wxUSE_OPENGL" = "yes"; then
11790 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11791 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11792 else
11793 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11794 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11795 fi
11796
11797 if test "$GCC" = "yes"; then
11798 PIC_FLAG="-fPIC"
11799 fi
11800
11801 SHARED_LD="${CXX} -shared -o"
11802
11803 case "${host}" in
11804 *-hp-hpux* )
11805 if test "$GCC" != "yes"; then
11806 LDFLAGS="-L/usr/lib"
11807
11808 SHARED_LD="${CXX} -b -o"
11809 PIC_FLAG="+Z"
11810 fi
11811
11812 if test "$wxUSE_OPENGL" = "yes"; then
11813 WX_ALL_INSTALLED="preinstall_gl"
11814 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11815 else
11816 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11817 fi
11818 ;;
11819
11820 *-*-linux* )
11821 if test "$GCC" != "yes"; then
11822 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11823echo "configure:11824: checking for Intel compiler" >&5
11824if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11826else
11827
11828 cat > conftest.$ac_ext <<EOF
11829#line 11830 "configure"
11830#include "confdefs.h"
11831
11832int main() {
11833
11834 #ifndef __INTEL_COMPILER
11835 #error Not icc
11836 #endif
11837
11838; return 0; }
11839EOF
11840if { (eval echo configure:11841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11841 rm -rf conftest*
11842 wx_cv_prog_icc=yes
11843else
11844 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5
11846 rm -rf conftest*
11847 wx_cv_prog_icc=no
11848
11849fi
11850rm -f conftest*
11851
11852fi
11853
11854echo "$ac_t""$wx_cv_prog_icc" 1>&6
11855 if test "$wx_cv_prog_icc" = "yes"; then
11856 PIC_FLAG="-KPIC"
11857 fi
11858 fi
11859
11860 if test "$wxUSE_SONAME" = "yes" ; then
11861 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11862 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11863 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11864 fi
11865 ;;
11866
11867 *-*-solaris2* )
11868 if test "$GCC" = yes ; then
11869 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11870 else
11871 SHARED_LD="${CXX} -G -o"
11872 PIC_FLAG="-KPIC"
11873 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11874 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11875 fi
11876 ;;
11877
11878 *-*-darwin* )
11879 CFLAGS="${CFLAGS} -fno-common"
11880 CXXFLAGS="${CXXFLAGS} -fno-common"
11881 SHARED_LD="${CXX} -dynamiclib -o"
11882 PIC_FLAG="-dynamic -fPIC"
11883 ;;
11884
11885 *-*-aix* )
11886 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11887 ;;
11888
11889 *-*-cygwin* | *-*-mingw32* )
11890 WX_LIBRARY="wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}"
11891 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.dll"
11892 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11893 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11894 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11895 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11896 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11897
11898 if test "$wxUSE_OPENGL" = "yes"; then
11899 WX_ALL_INSTALLED="preinstall_gl"
11900 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11901 else
11902 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11903 fi
11904 PIC_FLAG=
11905 ;;
11906
11907 *-pc-os2_emx | *-pc-os2-emx )
11908 wxUSE_SHARED=no
11909 ;;
11910
11911 *-*-beos* )
11912 SHARED_LD="${LD} -shared -o"
11913 ;;
11914
11915 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11916 *-*-sunos4* | \
11917 *-*-irix5* | *-*-irix6* | \
11918 *-*-osf* | \
11919 *-*-dgux5* | \
11920 *-*-sysv5* )
11921 ;;
11922
11923 *)
11924 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11925 esac
11926
11927 if test "x$WX_TARGET_LIBRARY" = "x"; then
11928 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11929 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11930 fi
11931
11932 WX_TARGET_LIBRARY_TYPE="so"
11933fi
11934
11935if test "$wxUSE_SHARED" = "no"; then
11936
11937 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11938 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11939 fi
11940
11941 if test "$wxUSE_MAC" = 1; then
11942 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11943 fi
11944
11945 if test "$wxUSE_OPENGL" = "yes"; then
11946 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11947 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11948 else
11949 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11950 fi
11951
11952 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11953 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11954
11955 WX_TARGET_LIBRARY_TYPE="a"
11956fi
11957
11958if test "$wxUSE_MAC" = 1; then
11959 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11960 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
11961 # Extract the first word of "Rez", so it can be a program name with args.
11962set dummy Rez; ac_word=$2
11963echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11964echo "configure:11965: checking for $ac_word" >&5
11965if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11966 echo $ac_n "(cached) $ac_c" 1>&6
11967else
11968 if test -n "$RESCOMP"; then
11969 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11970else
11971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11972 ac_dummy="$PATH"
11973 for ac_dir in $ac_dummy; do
11974 test -z "$ac_dir" && ac_dir=.
11975 if test -f $ac_dir/$ac_word; then
11976 ac_cv_prog_RESCOMP="Rez"
11977 break
11978 fi
11979 done
11980 IFS="$ac_save_ifs"
11981 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11982fi
11983fi
11984RESCOMP="$ac_cv_prog_RESCOMP"
11985if test -n "$RESCOMP"; then
11986 echo "$ac_t""$RESCOMP" 1>&6
11987else
11988 echo "$ac_t""no" 1>&6
11989fi
11990
11991 # Extract the first word of "Derez", so it can be a program name with args.
11992set dummy Derez; ac_word=$2
11993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11994echo "configure:11995: checking for $ac_word" >&5
11995if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
11997else
11998 if test -n "$DEREZ"; then
11999 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12000else
12001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12002 ac_dummy="$PATH"
12003 for ac_dir in $ac_dummy; do
12004 test -z "$ac_dir" && ac_dir=.
12005 if test -f $ac_dir/$ac_word; then
12006 ac_cv_prog_DEREZ="Derez"
12007 break
12008 fi
12009 done
12010 IFS="$ac_save_ifs"
12011 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12012fi
12013fi
12014DEREZ="$ac_cv_prog_DEREZ"
12015if test -n "$DEREZ"; then
12016 echo "$ac_t""$DEREZ" 1>&6
12017else
12018 echo "$ac_t""no" 1>&6
12019fi
12020
12021 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12022 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12023 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12024fi
12025
12026
12027if test "$wxUSE_MAC" != 1; then
12028 for ac_hdr in strings.h
12029do
12030ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12031echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12032echo "configure:12033: checking for $ac_hdr" >&5
12033if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12035else
12036 cat > conftest.$ac_ext <<EOF
12037#line 12038 "configure"
12038#include "confdefs.h"
12039#include <$ac_hdr>
12040EOF
12041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12042{ (eval echo configure:12043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12043ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12044if test -z "$ac_err"; then
12045 rm -rf conftest*
12046 eval "ac_cv_header_$ac_safe=yes"
12047else
12048 echo "$ac_err" >&5
12049 echo "configure: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12051 rm -rf conftest*
12052 eval "ac_cv_header_$ac_safe=no"
12053fi
12054rm -f conftest*
12055fi
12056if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12057 echo "$ac_t""yes" 1>&6
12058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12059 cat >> confdefs.h <<EOF
12060#define $ac_tr_hdr 1
12061EOF
12062
12063else
12064 echo "$ac_t""no" 1>&6
12065fi
12066done
12067
12068fi
12069
12070for ac_hdr in stdlib.h
12071do
12072ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12073echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12074echo "configure:12075: checking for $ac_hdr" >&5
12075if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12077else
12078 cat > conftest.$ac_ext <<EOF
12079#line 12080 "configure"
12080#include "confdefs.h"
12081#include <$ac_hdr>
12082EOF
12083ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12084{ (eval echo configure:12085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12085ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12086if test -z "$ac_err"; then
12087 rm -rf conftest*
12088 eval "ac_cv_header_$ac_safe=yes"
12089else
12090 echo "$ac_err" >&5
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12093 rm -rf conftest*
12094 eval "ac_cv_header_$ac_safe=no"
12095fi
12096rm -f conftest*
12097fi
12098if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12099 echo "$ac_t""yes" 1>&6
12100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12101 cat >> confdefs.h <<EOF
12102#define $ac_tr_hdr 1
12103EOF
12104
12105else
12106 echo "$ac_t""no" 1>&6
12107fi
12108done
12109
12110for ac_hdr in unistd.h
12111do
12112ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12113echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12114echo "configure:12115: checking for $ac_hdr" >&5
12115if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12117else
12118 cat > conftest.$ac_ext <<EOF
12119#line 12120 "configure"
12120#include "confdefs.h"
12121#include <$ac_hdr>
12122EOF
12123ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12124{ (eval echo configure:12125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12125ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12126if test -z "$ac_err"; then
12127 rm -rf conftest*
12128 eval "ac_cv_header_$ac_safe=yes"
12129else
12130 echo "$ac_err" >&5
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
12134 eval "ac_cv_header_$ac_safe=no"
12135fi
12136rm -f conftest*
12137fi
12138if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
12140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12141 cat >> confdefs.h <<EOF
12142#define $ac_tr_hdr 1
12143EOF
12144
12145else
12146 echo "$ac_t""no" 1>&6
12147fi
12148done
12149
12150for ac_hdr in wchar.h
12151do
12152ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12153echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12154echo "configure:12155: checking for $ac_hdr" >&5
12155if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
12157else
12158 cat > conftest.$ac_ext <<EOF
12159#line 12160 "configure"
12160#include "confdefs.h"
12161#include <$ac_hdr>
12162EOF
12163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12164{ (eval echo configure:12165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12166if test -z "$ac_err"; then
12167 rm -rf conftest*
12168 eval "ac_cv_header_$ac_safe=yes"
12169else
12170 echo "$ac_err" >&5
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -rf conftest*
12174 eval "ac_cv_header_$ac_safe=no"
12175fi
12176rm -f conftest*
12177fi
12178if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12179 echo "$ac_t""yes" 1>&6
12180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12181 cat >> confdefs.h <<EOF
12182#define $ac_tr_hdr 1
12183EOF
12184
12185else
12186 echo "$ac_t""no" 1>&6
12187fi
12188done
12189
12190for ac_hdr in wcstr.h
12191do
12192ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12193echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12194echo "configure:12195: checking for $ac_hdr" >&5
12195if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12197else
12198 cat > conftest.$ac_ext <<EOF
12199#line 12200 "configure"
12200#include "confdefs.h"
12201#include <$ac_hdr>
12202EOF
12203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12204{ (eval echo configure:12205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12206if test -z "$ac_err"; then
12207 rm -rf conftest*
12208 eval "ac_cv_header_$ac_safe=yes"
12209else
12210 echo "$ac_err" >&5
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 rm -rf conftest*
12214 eval "ac_cv_header_$ac_safe=no"
12215fi
12216rm -f conftest*
12217fi
12218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12219 echo "$ac_t""yes" 1>&6
12220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12221 cat >> confdefs.h <<EOF
12222#define $ac_tr_hdr 1
12223EOF
12224
12225else
12226 echo "$ac_t""no" 1>&6
12227fi
12228done
12229
12230for ac_hdr in fnmatch.h
12231do
12232ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12233echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12234echo "configure:12235: checking for $ac_hdr" >&5
12235if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12236 echo $ac_n "(cached) $ac_c" 1>&6
12237else
12238 cat > conftest.$ac_ext <<EOF
12239#line 12240 "configure"
12240#include "confdefs.h"
12241#include <$ac_hdr>
12242EOF
12243ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12244{ (eval echo configure:12245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12245ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12246if test -z "$ac_err"; then
12247 rm -rf conftest*
12248 eval "ac_cv_header_$ac_safe=yes"
12249else
12250 echo "$ac_err" >&5
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 rm -rf conftest*
12254 eval "ac_cv_header_$ac_safe=no"
12255fi
12256rm -f conftest*
12257fi
12258if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12259 echo "$ac_t""yes" 1>&6
12260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12261 cat >> confdefs.h <<EOF
12262#define $ac_tr_hdr 1
12263EOF
12264
12265else
12266 echo "$ac_t""no" 1>&6
12267fi
12268done
12269
12270for ac_hdr in iconv.h
12271do
12272ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12273echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12274echo "configure:12275: checking for $ac_hdr" >&5
12275if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12276 echo $ac_n "(cached) $ac_c" 1>&6
12277else
12278 cat > conftest.$ac_ext <<EOF
12279#line 12280 "configure"
12280#include "confdefs.h"
12281#include <$ac_hdr>
12282EOF
12283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12284{ (eval echo configure:12285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12286if test -z "$ac_err"; then
12287 rm -rf conftest*
12288 eval "ac_cv_header_$ac_safe=yes"
12289else
12290 echo "$ac_err" >&5
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 rm -rf conftest*
12294 eval "ac_cv_header_$ac_safe=no"
12295fi
12296rm -f conftest*
12297fi
12298if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12299 echo "$ac_t""yes" 1>&6
12300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12301 cat >> confdefs.h <<EOF
12302#define $ac_tr_hdr 1
12303EOF
12304
12305else
12306 echo "$ac_t""no" 1>&6
12307fi
12308done
12309
12310for ac_hdr in langinfo.h
12311do
12312ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12313echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12314echo "configure:12315: checking for $ac_hdr" >&5
12315if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12317else
12318 cat > conftest.$ac_ext <<EOF
12319#line 12320 "configure"
12320#include "confdefs.h"
12321#include <$ac_hdr>
12322EOF
12323ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12324{ (eval echo configure:12325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12325ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12326if test -z "$ac_err"; then
12327 rm -rf conftest*
12328 eval "ac_cv_header_$ac_safe=yes"
12329else
12330 echo "$ac_err" >&5
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 rm -rf conftest*
12334 eval "ac_cv_header_$ac_safe=no"
12335fi
12336rm -f conftest*
12337fi
12338if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12339 echo "$ac_t""yes" 1>&6
12340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12341 cat >> confdefs.h <<EOF
12342#define $ac_tr_hdr 1
12343EOF
12344
12345else
12346 echo "$ac_t""no" 1>&6
12347fi
12348done
12349
12350
12351if test "$wxUSE_GUI" = "yes"; then
12352 if test "$wxUSE_UNIX" = "yes"; then
12353 for ac_hdr in X11/XKBlib.h
12354do
12355ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12356echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12357echo "configure:12358: checking for $ac_hdr" >&5
12358if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12360else
12361 cat > conftest.$ac_ext <<EOF
12362#line 12363 "configure"
12363#include "confdefs.h"
12364#include <$ac_hdr>
12365EOF
12366ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12367{ (eval echo configure:12368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12368ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12369if test -z "$ac_err"; then
12370 rm -rf conftest*
12371 eval "ac_cv_header_$ac_safe=yes"
12372else
12373 echo "$ac_err" >&5
12374 echo "configure: failed program was:" >&5
12375 cat conftest.$ac_ext >&5
12376 rm -rf conftest*
12377 eval "ac_cv_header_$ac_safe=no"
12378fi
12379rm -f conftest*
12380fi
12381if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12382 echo "$ac_t""yes" 1>&6
12383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12384 cat >> confdefs.h <<EOF
12385#define $ac_tr_hdr 1
12386EOF
12387
12388else
12389 echo "$ac_t""no" 1>&6
12390fi
12391done
12392
12393 fi
12394fi
12395
12396
12397echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12398echo "configure:12399: checking for ANSI C header files" >&5
12399if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401else
12402 cat > conftest.$ac_ext <<EOF
12403#line 12404 "configure"
12404#include "confdefs.h"
12405#include <stdlib.h>
12406#include <stdarg.h>
12407#include <string.h>
12408#include <float.h>
12409EOF
12410ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12411{ (eval echo configure:12412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12412ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12413if test -z "$ac_err"; then
12414 rm -rf conftest*
12415 ac_cv_header_stdc=yes
12416else
12417 echo "$ac_err" >&5
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 rm -rf conftest*
12421 ac_cv_header_stdc=no
12422fi
12423rm -f conftest*
12424
12425if test $ac_cv_header_stdc = yes; then
12426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12427cat > conftest.$ac_ext <<EOF
12428#line 12429 "configure"
12429#include "confdefs.h"
12430#include <string.h>
12431EOF
12432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12433 egrep "memchr" >/dev/null 2>&1; then
12434 :
12435else
12436 rm -rf conftest*
12437 ac_cv_header_stdc=no
12438fi
12439rm -f conftest*
12440
12441fi
12442
12443if test $ac_cv_header_stdc = yes; then
12444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12445cat > conftest.$ac_ext <<EOF
12446#line 12447 "configure"
12447#include "confdefs.h"
12448#include <stdlib.h>
12449EOF
12450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12451 egrep "free" >/dev/null 2>&1; then
12452 :
12453else
12454 rm -rf conftest*
12455 ac_cv_header_stdc=no
12456fi
12457rm -f conftest*
12458
12459fi
12460
12461if test $ac_cv_header_stdc = yes; then
12462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12463if test "$cross_compiling" = yes; then
12464 :
12465else
12466 cat > conftest.$ac_ext <<EOF
12467#line 12468 "configure"
12468#include "confdefs.h"
12469#include <ctype.h>
12470#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12471#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12473int main () { int i; for (i = 0; i < 256; i++)
12474if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12475exit (0); }
12476
12477EOF
12478if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12479then
12480 :
12481else
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 rm -fr conftest*
12485 ac_cv_header_stdc=no
12486fi
12487rm -fr conftest*
12488fi
12489
12490fi
12491fi
12492
12493echo "$ac_t""$ac_cv_header_stdc" 1>&6
12494if test $ac_cv_header_stdc = yes; then
12495 cat >> confdefs.h <<\EOF
12496#define STDC_HEADERS 1
12497EOF
12498
12499fi
12500
12501echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12502echo "configure:12503: checking for mode_t" >&5
12503if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12504 echo $ac_n "(cached) $ac_c" 1>&6
12505else
12506 cat > conftest.$ac_ext <<EOF
12507#line 12508 "configure"
12508#include "confdefs.h"
12509#include <sys/types.h>
12510#if STDC_HEADERS
12511#include <stdlib.h>
12512#include <stddef.h>
12513#endif
12514EOF
12515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12516 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12517 rm -rf conftest*
12518 ac_cv_type_mode_t=yes
12519else
12520 rm -rf conftest*
12521 ac_cv_type_mode_t=no
12522fi
12523rm -f conftest*
12524
12525fi
12526echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12527if test $ac_cv_type_mode_t = no; then
12528 cat >> confdefs.h <<\EOF
12529#define mode_t int
12530EOF
12531
12532fi
12533
12534echo $ac_n "checking for off_t""... $ac_c" 1>&6
12535echo "configure:12536: checking for off_t" >&5
12536if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12537 echo $ac_n "(cached) $ac_c" 1>&6
12538else
12539 cat > conftest.$ac_ext <<EOF
12540#line 12541 "configure"
12541#include "confdefs.h"
12542#include <sys/types.h>
12543#if STDC_HEADERS
12544#include <stdlib.h>
12545#include <stddef.h>
12546#endif
12547EOF
12548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12549 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12550 rm -rf conftest*
12551 ac_cv_type_off_t=yes
12552else
12553 rm -rf conftest*
12554 ac_cv_type_off_t=no
12555fi
12556rm -f conftest*
12557
12558fi
12559echo "$ac_t""$ac_cv_type_off_t" 1>&6
12560if test $ac_cv_type_off_t = no; then
12561 cat >> confdefs.h <<\EOF
12562#define off_t long
12563EOF
12564
12565fi
12566
12567echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12568echo "configure:12569: checking for pid_t" >&5
12569if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12571else
12572 cat > conftest.$ac_ext <<EOF
12573#line 12574 "configure"
12574#include "confdefs.h"
12575#include <sys/types.h>
12576#if STDC_HEADERS
12577#include <stdlib.h>
12578#include <stddef.h>
12579#endif
12580EOF
12581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12582 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12583 rm -rf conftest*
12584 ac_cv_type_pid_t=yes
12585else
12586 rm -rf conftest*
12587 ac_cv_type_pid_t=no
12588fi
12589rm -f conftest*
12590
12591fi
12592echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12593if test $ac_cv_type_pid_t = no; then
12594 cat >> confdefs.h <<\EOF
12595#define pid_t int
12596EOF
12597
12598fi
12599
12600echo $ac_n "checking for size_t""... $ac_c" 1>&6
12601echo "configure:12602: checking for size_t" >&5
12602if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12603 echo $ac_n "(cached) $ac_c" 1>&6
12604else
12605 cat > conftest.$ac_ext <<EOF
12606#line 12607 "configure"
12607#include "confdefs.h"
12608#include <sys/types.h>
12609#if STDC_HEADERS
12610#include <stdlib.h>
12611#include <stddef.h>
12612#endif
12613EOF
12614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12615 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12616 rm -rf conftest*
12617 ac_cv_type_size_t=yes
12618else
12619 rm -rf conftest*
12620 ac_cv_type_size_t=no
12621fi
12622rm -f conftest*
12623
12624fi
12625echo "$ac_t""$ac_cv_type_size_t" 1>&6
12626if test $ac_cv_type_size_t = no; then
12627 cat >> confdefs.h <<\EOF
12628#define size_t unsigned
12629EOF
12630
12631fi
12632
12633echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12634echo "configure:12635: checking for uid_t in sys/types.h" >&5
12635if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12636 echo $ac_n "(cached) $ac_c" 1>&6
12637else
12638 cat > conftest.$ac_ext <<EOF
12639#line 12640 "configure"
12640#include "confdefs.h"
12641#include <sys/types.h>
12642EOF
12643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12644 egrep "uid_t" >/dev/null 2>&1; then
12645 rm -rf conftest*
12646 ac_cv_type_uid_t=yes
12647else
12648 rm -rf conftest*
12649 ac_cv_type_uid_t=no
12650fi
12651rm -f conftest*
12652
12653fi
12654
12655echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12656if test $ac_cv_type_uid_t = no; then
12657 cat >> confdefs.h <<\EOF
12658#define uid_t int
12659EOF
12660
12661 cat >> confdefs.h <<\EOF
12662#define gid_t int
12663EOF
12664
12665fi
12666
12667
12668echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12669echo "configure:12670: checking for wchar_t" >&5
12670if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672else
12673
12674 cat > conftest.$ac_ext <<EOF
12675#line 12676 "configure"
12676#include "confdefs.h"
12677#include <wchar.h>
12678int main() {
12679
12680 wchar_t wc, *ws;
12681 wc = L'a';
12682 ws = L"Hello, world!";
12683
12684; return 0; }
12685EOF
12686if { (eval echo configure:12687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12687 rm -rf conftest*
12688 wx_cv_type_wchar_t=yes
12689else
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12692 rm -rf conftest*
12693 wx_cv_type_wchar_t=no
12694
12695fi
12696rm -f conftest*
12697
12698fi
12699
12700echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12701
12702if test "$wx_cv_type_wchar_t" = "yes"; then
12703 cat >> confdefs.h <<\EOF
12704#define wxUSE_WCHAR_T 1
12705EOF
12706
12707fi
12708
12709
12710ac_ext=C
12711# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712ac_cpp='$CXXCPP $CPPFLAGS'
12713ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715cross_compiling=$ac_cv_prog_cxx_cross
12716
12717echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12718echo "configure:12719: checking if size_t is unsigned int" >&5
12719if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12720 echo $ac_n "(cached) $ac_c" 1>&6
12721else
12722 cat > conftest.$ac_ext <<EOF
12723#line 12724 "configure"
12724#include "confdefs.h"
12725#include <stddef.h>
12726int main() {
12727
12728 return 0; }
12729
12730 struct Foo { void foo(size_t); void foo(unsigned int); };
12731
12732 int bar() {
12733
12734; return 0; }
12735EOF
12736if { (eval echo configure:12737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12737 rm -rf conftest*
12738 wx_cv_size_t_is_uint=no
12739else
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -rf conftest*
12743 wx_cv_size_t_is_uint=yes
12744
12745fi
12746rm -f conftest*
12747
12748fi
12749
12750echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12751
12752if test "$wx_cv_size_t_is_uint" = "yes"; then
12753 cat >> confdefs.h <<\EOF
12754#define wxSIZE_T_IS_UINT 1
12755EOF
12756
12757else
12758 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12759echo "configure:12760: checking if size_t is unsigned long" >&5
12760if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12762else
12763 cat > conftest.$ac_ext <<EOF
12764#line 12765 "configure"
12765#include "confdefs.h"
12766#include <stddef.h>
12767int main() {
12768
12769 return 0; }
12770
12771 struct Foo { void foo(size_t); void foo(unsigned long); };
12772
12773 int bar() {
12774
12775; return 0; }
12776EOF
12777if { (eval echo configure:12778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12778 rm -rf conftest*
12779 wx_cv_size_t_is_ulong=no
12780else
12781 echo "configure: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12783 rm -rf conftest*
12784 wx_cv_size_t_is_ulong=yes
12785
12786fi
12787rm -f conftest*
12788
12789fi
12790
12791echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12792
12793 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12794 cat >> confdefs.h <<\EOF
12795#define wxSIZE_T_IS_ULONG 1
12796EOF
12797
12798 fi
12799fi
12800
12801ac_ext=c
12802# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12803ac_cpp='$CPP $CPPFLAGS'
12804ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12805ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12806cross_compiling=$ac_cv_prog_cc_cross
12807
12808
12809
12810echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12811echo "configure:12812: checking for pw_gecos in struct passwd" >&5
12812if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814else
12815
12816 cat > conftest.$ac_ext <<EOF
12817#line 12818 "configure"
12818#include "confdefs.h"
12819#include <pwd.h>
12820int main() {
12821
12822 char *p;
12823 struct passwd *pw;
12824 p = pw->pw_gecos;
12825
12826; return 0; }
12827EOF
12828if { (eval echo configure:12829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12829 rm -rf conftest*
12830
12831 wx_cv_struct_pw_gecos=yes
12832
12833else
12834 echo "configure: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12836 rm -rf conftest*
12837
12838 wx_cv_struct_pw_gecos=no
12839
12840
12841fi
12842rm -f conftest*
12843
12844
12845fi
12846
12847echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12848
12849if test "$wx_cv_struct_pw_gecos" = "yes"; then
12850 cat >> confdefs.h <<\EOF
12851#define HAVE_PW_GECOS 1
12852EOF
12853
12854fi
12855
12856
12857echo $ac_n "checking for working const""... $ac_c" 1>&6
12858echo "configure:12859: checking for working const" >&5
12859if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12860 echo $ac_n "(cached) $ac_c" 1>&6
12861else
12862 cat > conftest.$ac_ext <<EOF
12863#line 12864 "configure"
12864#include "confdefs.h"
12865
12866int main() {
12867
12868/* Ultrix mips cc rejects this. */
12869typedef int charset[2]; const charset x = {0,0};
12870/* SunOS 4.1.1 cc rejects this. */
12871char const *const *ccp;
12872char **p;
12873/* NEC SVR4.0.2 mips cc rejects this. */
12874struct point {int x, y;};
12875static struct point const zero = {0,0};
12876/* AIX XL C 1.02.0.0 rejects this.
12877 It does not let you subtract one const X* pointer from another in an arm
12878 of an if-expression whose if-part is not a constant expression */
12879const char *g = "string";
12880ccp = &g + (g ? g-g : 0);
12881/* HPUX 7.0 cc rejects these. */
12882++ccp;
12883p = (char**) ccp;
12884ccp = (char const *const *) p;
12885{ /* SCO 3.2v4 cc rejects this. */
12886 char *t;
12887 char const *s = 0 ? (char *) 0 : (char const *) 0;
12888
12889 *t++ = 0;
12890}
12891{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12892 int x[] = {25, 17};
12893 const int *foo = &x[0];
12894 ++foo;
12895}
12896{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12897 typedef const int *iptr;
12898 iptr p = 0;
12899 ++p;
12900}
12901{ /* AIX XL C 1.02.0.0 rejects this saying
12902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12903 struct s { int j; const int *ap[3]; };
12904 struct s *b; b->j = 5;
12905}
12906{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12907 const int foo = 10;
12908}
12909
12910; return 0; }
12911EOF
12912if { (eval echo configure:12913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12913 rm -rf conftest*
12914 ac_cv_c_const=yes
12915else
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 rm -rf conftest*
12919 ac_cv_c_const=no
12920fi
12921rm -f conftest*
12922fi
12923
12924echo "$ac_t""$ac_cv_c_const" 1>&6
12925if test $ac_cv_c_const = no; then
12926 cat >> confdefs.h <<\EOF
12927#define const
12928EOF
12929
12930fi
12931
12932echo $ac_n "checking for inline""... $ac_c" 1>&6
12933echo "configure:12934: checking for inline" >&5
12934if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12936else
12937 ac_cv_c_inline=no
12938for ac_kw in inline __inline__ __inline; do
12939 cat > conftest.$ac_ext <<EOF
12940#line 12941 "configure"
12941#include "confdefs.h"
12942
12943int main() {
12944} int $ac_kw foo() {
12945; return 0; }
12946EOF
12947if { (eval echo configure:12948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12948 rm -rf conftest*
12949 ac_cv_c_inline=$ac_kw; break
12950else
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953fi
12954rm -f conftest*
12955done
12956
12957fi
12958
12959echo "$ac_t""$ac_cv_c_inline" 1>&6
12960case "$ac_cv_c_inline" in
12961 inline | yes) ;;
12962 no) cat >> confdefs.h <<\EOF
12963#define inline
12964EOF
12965 ;;
12966 *) cat >> confdefs.h <<EOF
12967#define inline $ac_cv_c_inline
12968EOF
12969 ;;
12970esac
12971
12972
12973echo $ac_n "checking size of char""... $ac_c" 1>&6
12974echo "configure:12975: checking size of char" >&5
12975if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12976 echo $ac_n "(cached) $ac_c" 1>&6
12977else
12978 if test "$cross_compiling" = yes; then
12979 ac_cv_sizeof_char=1
12980else
12981 cat > conftest.$ac_ext <<EOF
12982#line 12983 "configure"
12983#include "confdefs.h"
12984#include <stdio.h>
12985main()
12986{
12987 FILE *f=fopen("conftestval", "w");
12988 if (!f) exit(1);
12989 fprintf(f, "%d\n", sizeof(char));
12990 exit(0);
12991}
12992EOF
12993if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12994then
12995 ac_cv_sizeof_char=`cat conftestval`
12996else
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
12999 rm -fr conftest*
13000 ac_cv_sizeof_char=0
13001fi
13002rm -fr conftest*
13003fi
13004
13005fi
13006echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13007cat >> confdefs.h <<EOF
13008#define SIZEOF_CHAR $ac_cv_sizeof_char
13009EOF
13010
13011
13012echo $ac_n "checking size of short""... $ac_c" 1>&6
13013echo "configure:13014: checking size of short" >&5
13014if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13016else
13017 if test "$cross_compiling" = yes; then
13018 ac_cv_sizeof_short=2
13019else
13020 cat > conftest.$ac_ext <<EOF
13021#line 13022 "configure"
13022#include "confdefs.h"
13023#include <stdio.h>
13024main()
13025{
13026 FILE *f=fopen("conftestval", "w");
13027 if (!f) exit(1);
13028 fprintf(f, "%d\n", sizeof(short));
13029 exit(0);
13030}
13031EOF
13032if { (eval echo configure:13033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13033then
13034 ac_cv_sizeof_short=`cat conftestval`
13035else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -fr conftest*
13039 ac_cv_sizeof_short=0
13040fi
13041rm -fr conftest*
13042fi
13043
13044fi
13045echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13046cat >> confdefs.h <<EOF
13047#define SIZEOF_SHORT $ac_cv_sizeof_short
13048EOF
13049
13050
13051echo $ac_n "checking size of int *""... $ac_c" 1>&6
13052echo "configure:13053: checking size of int *" >&5
13053if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13055else
13056 if test "$cross_compiling" = yes; then
13057 ac_cv_sizeof_int_p=4
13058else
13059 cat > conftest.$ac_ext <<EOF
13060#line 13061 "configure"
13061#include "confdefs.h"
13062#include <stdio.h>
13063main()
13064{
13065 FILE *f=fopen("conftestval", "w");
13066 if (!f) exit(1);
13067 fprintf(f, "%d\n", sizeof(int *));
13068 exit(0);
13069}
13070EOF
13071if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13072then
13073 ac_cv_sizeof_int_p=`cat conftestval`
13074else
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 rm -fr conftest*
13078 ac_cv_sizeof_int_p=0
13079fi
13080rm -fr conftest*
13081fi
13082
13083fi
13084echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13085cat >> confdefs.h <<EOF
13086#define SIZEOF_INT_P $ac_cv_sizeof_int_p
13087EOF
13088
13089
13090echo $ac_n "checking size of int""... $ac_c" 1>&6
13091echo "configure:13092: checking size of int" >&5
13092if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13093 echo $ac_n "(cached) $ac_c" 1>&6
13094else
13095 if test "$cross_compiling" = yes; then
13096 ac_cv_sizeof_int=4
13097else
13098 cat > conftest.$ac_ext <<EOF
13099#line 13100 "configure"
13100#include "confdefs.h"
13101#include <stdio.h>
13102main()
13103{
13104 FILE *f=fopen("conftestval", "w");
13105 if (!f) exit(1);
13106 fprintf(f, "%d\n", sizeof(int));
13107 exit(0);
13108}
13109EOF
13110if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13111then
13112 ac_cv_sizeof_int=`cat conftestval`
13113else
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 rm -fr conftest*
13117 ac_cv_sizeof_int=0
13118fi
13119rm -fr conftest*
13120fi
13121
13122fi
13123echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13124cat >> confdefs.h <<EOF
13125#define SIZEOF_INT $ac_cv_sizeof_int
13126EOF
13127
13128
13129echo $ac_n "checking size of long""... $ac_c" 1>&6
13130echo "configure:13131: checking size of long" >&5
13131if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13133else
13134 if test "$cross_compiling" = yes; then
13135 ac_cv_sizeof_long=4
13136else
13137 cat > conftest.$ac_ext <<EOF
13138#line 13139 "configure"
13139#include "confdefs.h"
13140#include <stdio.h>
13141main()
13142{
13143 FILE *f=fopen("conftestval", "w");
13144 if (!f) exit(1);
13145 fprintf(f, "%d\n", sizeof(long));
13146 exit(0);
13147}
13148EOF
13149if { (eval echo configure:13150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13150then
13151 ac_cv_sizeof_long=`cat conftestval`
13152else
13153 echo "configure: failed program was:" >&5
13154 cat conftest.$ac_ext >&5
13155 rm -fr conftest*
13156 ac_cv_sizeof_long=0
13157fi
13158rm -fr conftest*
13159fi
13160
13161fi
13162echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13163cat >> confdefs.h <<EOF
13164#define SIZEOF_LONG $ac_cv_sizeof_long
13165EOF
13166
13167
13168echo $ac_n "checking size of long long""... $ac_c" 1>&6
13169echo "configure:13170: checking size of long long" >&5
13170if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13171 echo $ac_n "(cached) $ac_c" 1>&6
13172else
13173 if test "$cross_compiling" = yes; then
13174 ac_cv_sizeof_long_long=0
13175else
13176 cat > conftest.$ac_ext <<EOF
13177#line 13178 "configure"
13178#include "confdefs.h"
13179#include <stdio.h>
13180main()
13181{
13182 FILE *f=fopen("conftestval", "w");
13183 if (!f) exit(1);
13184 fprintf(f, "%d\n", sizeof(long long));
13185 exit(0);
13186}
13187EOF
13188if { (eval echo configure:13189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13189then
13190 ac_cv_sizeof_long_long=`cat conftestval`
13191else
13192 echo "configure: failed program was:" >&5
13193 cat conftest.$ac_ext >&5
13194 rm -fr conftest*
13195 ac_cv_sizeof_long_long=0
13196fi
13197rm -fr conftest*
13198fi
13199
13200fi
13201echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13202cat >> confdefs.h <<EOF
13203#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13204EOF
13205
13206
13207
13208echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13209echo "configure:13210: checking size of wchar_t" >&5
13210if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13211 echo $ac_n "(cached) $ac_c" 1>&6
13212else
13213
13214 if test "$cross_compiling" = yes; then
13215 wx_cv_sizeof_wchar_t=4
13216
13217else
13218 cat > conftest.$ac_ext <<EOF
13219#line 13220 "configure"
13220#include "confdefs.h"
13221
13222 #ifdef HAVE_WCHAR_H
13223 # include <wchar.h>
13224 #endif
13225 #ifdef HAVE_STDLIB_H
13226 # include <stdlib.h>
13227 #endif
13228 #include <stdio.h>
13229 int main()
13230 {
13231 FILE *f=fopen("conftestval", "w");
13232 if (!f) exit(1);
13233 fprintf(f, "%i", sizeof(wchar_t));
13234 exit(0);
13235 }
13236
13237EOF
13238if { (eval echo configure:13239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13239then
13240 wx_cv_sizeof_wchar_t=`cat conftestval`
13241else
13242 echo "configure: failed program was:" >&5
13243 cat conftest.$ac_ext >&5
13244 rm -fr conftest*
13245 wx_cv_sizeof_wchar_t=0
13246fi
13247rm -fr conftest*
13248fi
13249
13250
13251fi
13252
13253echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13254
13255cat >> confdefs.h <<EOF
13256#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13257EOF
13258
13259
13260echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13261echo "configure:13262: checking whether byte ordering is bigendian" >&5
13262if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13263 echo $ac_n "(cached) $ac_c" 1>&6
13264else
13265 ac_cv_c_bigendian=unknown
13266# See if sys/param.h defines the BYTE_ORDER macro.
13267cat > conftest.$ac_ext <<EOF
13268#line 13269 "configure"
13269#include "confdefs.h"
13270#include <sys/types.h>
13271#include <sys/param.h>
13272int main() {
13273
13274#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13275 bogus endian macros
13276#endif
13277; return 0; }
13278EOF
13279if { (eval echo configure:13280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13280 rm -rf conftest*
13281 # It does; now see whether it defined to BIG_ENDIAN or not.
13282cat > conftest.$ac_ext <<EOF
13283#line 13284 "configure"
13284#include "confdefs.h"
13285#include <sys/types.h>
13286#include <sys/param.h>
13287int main() {
13288
13289#if BYTE_ORDER != BIG_ENDIAN
13290 not big endian
13291#endif
13292; return 0; }
13293EOF
13294if { (eval echo configure:13295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13295 rm -rf conftest*
13296 ac_cv_c_bigendian=yes
13297else
13298 echo "configure: failed program was:" >&5
13299 cat conftest.$ac_ext >&5
13300 rm -rf conftest*
13301 ac_cv_c_bigendian=no
13302fi
13303rm -f conftest*
13304else
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13307fi
13308rm -f conftest*
13309if test $ac_cv_c_bigendian = unknown; then
13310if test "$cross_compiling" = yes; then
13311 ac_cv_c_bigendian=unknown
13312else
13313 cat > conftest.$ac_ext <<EOF
13314#line 13315 "configure"
13315#include "confdefs.h"
13316main () {
13317 /* Are we little or big endian? From Harbison&Steele. */
13318 union
13319 {
13320 long l;
13321 char c[sizeof (long)];
13322 } u;
13323 u.l = 1;
13324 exit (u.c[sizeof (long) - 1] == 1);
13325}
13326EOF
13327if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13328then
13329 ac_cv_c_bigendian=no
13330else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -fr conftest*
13334 ac_cv_c_bigendian=yes
13335fi
13336rm -fr conftest*
13337fi
13338
13339fi
13340fi
13341
13342echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13343if test $ac_cv_c_bigendian = unknown; then
13344 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
13345fi
13346if test $ac_cv_c_bigendian = yes; then
13347 cat >> confdefs.h <<\EOF
13348#define WORDS_BIGENDIAN 1
13349EOF
13350
13351fi
13352
13353
13354echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13355echo "configure:13356: checking how to run the C++ preprocessor" >&5
13356if test -z "$CXXCPP"; then
13357if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13359else
13360 ac_ext=C
13361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13362ac_cpp='$CXXCPP $CPPFLAGS'
13363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13365cross_compiling=$ac_cv_prog_cxx_cross
13366 CXXCPP="${CXX-g++} -E"
13367 cat > conftest.$ac_ext <<EOF
13368#line 13369 "configure"
13369#include "confdefs.h"
13370#include <stdlib.h>
13371EOF
13372ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13373{ (eval echo configure:13374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13374ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13375if test -z "$ac_err"; then
13376 :
13377else
13378 echo "$ac_err" >&5
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 rm -rf conftest*
13382 CXXCPP=/lib/cpp
13383fi
13384rm -f conftest*
13385 ac_cv_prog_CXXCPP="$CXXCPP"
13386ac_ext=C
13387# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13388ac_cpp='$CXXCPP $CPPFLAGS'
13389ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13390ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13391cross_compiling=$ac_cv_prog_cxx_cross
13392fi
13393fi
13394CXXCPP="$ac_cv_prog_CXXCPP"
13395echo "$ac_t""$CXXCPP" 1>&6
13396
13397
13398 if test "$cross_compiling" = "yes"; then
13399 cat >> confdefs.h <<\EOF
13400#define wxUSE_IOSTREAMH 1
13401EOF
13402
13403 else
13404
13405 ac_ext=C
13406# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13407ac_cpp='$CXXCPP $CPPFLAGS'
13408ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13409ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13410cross_compiling=$ac_cv_prog_cxx_cross
13411
13412
13413 for ac_hdr in iostream
13414do
13415ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13416echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13417echo "configure:13418: checking for $ac_hdr" >&5
13418if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13420else
13421 cat > conftest.$ac_ext <<EOF
13422#line 13423 "configure"
13423#include "confdefs.h"
13424#include <$ac_hdr>
13425EOF
13426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13427{ (eval echo configure:13428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13429if test -z "$ac_err"; then
13430 rm -rf conftest*
13431 eval "ac_cv_header_$ac_safe=yes"
13432else
13433 echo "$ac_err" >&5
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13436 rm -rf conftest*
13437 eval "ac_cv_header_$ac_safe=no"
13438fi
13439rm -f conftest*
13440fi
13441if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13444 cat >> confdefs.h <<EOF
13445#define $ac_tr_hdr 1
13446EOF
13447
13448else
13449 echo "$ac_t""no" 1>&6
13450fi
13451done
13452
13453
13454 if test "$ac_cv_header_iostream" = "yes" ; then
13455 :
13456 else
13457 cat >> confdefs.h <<\EOF
13458#define wxUSE_IOSTREAMH 1
13459EOF
13460
13461 fi
13462
13463 ac_ext=c
13464# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13465ac_cpp='$CPP $CPPFLAGS'
13466ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13467ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13468cross_compiling=$ac_cv_prog_cc_cross
13469
13470 fi
13471
13472
13473
13474 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
13475echo "configure:13476: checking if C++ compiler supports bool" >&5
13476if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13478else
13479
13480
13481 ac_ext=C
13482# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13483ac_cpp='$CXXCPP $CPPFLAGS'
13484ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13485ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13486cross_compiling=$ac_cv_prog_cxx_cross
13487
13488
13489 cat > conftest.$ac_ext <<EOF
13490#line 13491 "configure"
13491#include "confdefs.h"
13492
13493
13494int main() {
13495
13496 bool b = true;
13497
13498 return 0;
13499
13500; return 0; }
13501EOF
13502if { (eval echo configure:13503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13503 rm -rf conftest*
13504
13505 wx_cv_cpp_bool=yes
13506
13507else
13508 echo "configure: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 rm -rf conftest*
13511
13512 wx_cv_cpp_bool=no
13513
13514
13515fi
13516rm -f conftest*
13517
13518 ac_ext=c
13519# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13520ac_cpp='$CPP $CPPFLAGS'
13521ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13522ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13523cross_compiling=$ac_cv_prog_cc_cross
13524
13525
13526fi
13527
13528echo "$ac_t""$wx_cv_cpp_bool" 1>&6
13529
13530 if test "$wx_cv_cpp_bool" = "yes"; then
13531 cat >> confdefs.h <<\EOF
13532#define HAVE_BOOL 1
13533EOF
13534
13535 fi
13536
13537
13538
13539echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
13540echo "configure:13541: checking for wcslen in -lc" >&5
13541ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13542if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13543 echo $ac_n "(cached) $ac_c" 1>&6
13544else
13545 ac_save_LIBS="$LIBS"
13546LIBS="-lc $LIBS"
13547cat > conftest.$ac_ext <<EOF
13548#line 13549 "configure"
13549#include "confdefs.h"
13550/* Override any gcc2 internal prototype to avoid an error. */
13551/* We use char because int might match the return type of a gcc2
13552 builtin and then its argument prototype would still apply. */
13553char wcslen();
13554
13555int main() {
13556wcslen()
13557; return 0; }
13558EOF
13559if { (eval echo configure:13560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13560 rm -rf conftest*
13561 eval "ac_cv_lib_$ac_lib_var=yes"
13562else
13563 echo "configure: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 rm -rf conftest*
13566 eval "ac_cv_lib_$ac_lib_var=no"
13567fi
13568rm -f conftest*
13569LIBS="$ac_save_LIBS"
13570
13571fi
13572if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13573 echo "$ac_t""yes" 1>&6
13574
13575 cat >> confdefs.h <<\EOF
13576#define HAVE_WCSLEN 1
13577EOF
13578
13579 WCHAR_LINK=""
13580
13581else
13582 echo "$ac_t""no" 1>&6
13583
13584 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13585echo "configure:13586: checking for wcslen in -lw" >&5
13586ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13587if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13588 echo $ac_n "(cached) $ac_c" 1>&6
13589else
13590 ac_save_LIBS="$LIBS"
13591LIBS="-lw $LIBS"
13592cat > conftest.$ac_ext <<EOF
13593#line 13594 "configure"
13594#include "confdefs.h"
13595/* Override any gcc2 internal prototype to avoid an error. */
13596/* We use char because int might match the return type of a gcc2
13597 builtin and then its argument prototype would still apply. */
13598char wcslen();
13599
13600int main() {
13601wcslen()
13602; return 0; }
13603EOF
13604if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13605 rm -rf conftest*
13606 eval "ac_cv_lib_$ac_lib_var=yes"
13607else
13608 echo "configure: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13610 rm -rf conftest*
13611 eval "ac_cv_lib_$ac_lib_var=no"
13612fi
13613rm -f conftest*
13614LIBS="$ac_save_LIBS"
13615
13616fi
13617if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13618 echo "$ac_t""yes" 1>&6
13619
13620 cat >> confdefs.h <<\EOF
13621#define HAVE_WCSLEN 1
13622EOF
13623
13624 WCHAR_LINK="-lw"
13625
13626else
13627 echo "$ac_t""no" 1>&6
13628
13629 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13630echo "configure:13631: checking for wcslen in -lmsvcrt" >&5
13631ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13633 echo $ac_n "(cached) $ac_c" 1>&6
13634else
13635 ac_save_LIBS="$LIBS"
13636LIBS="-lmsvcrt $LIBS"
13637cat > conftest.$ac_ext <<EOF
13638#line 13639 "configure"
13639#include "confdefs.h"
13640/* Override any gcc2 internal prototype to avoid an error. */
13641/* We use char because int might match the return type of a gcc2
13642 builtin and then its argument prototype would still apply. */
13643char wcslen();
13644
13645int main() {
13646wcslen()
13647; return 0; }
13648EOF
13649if { (eval echo configure:13650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13650 rm -rf conftest*
13651 eval "ac_cv_lib_$ac_lib_var=yes"
13652else
13653 echo "configure: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13655 rm -rf conftest*
13656 eval "ac_cv_lib_$ac_lib_var=no"
13657fi
13658rm -f conftest*
13659LIBS="$ac_save_LIBS"
13660
13661fi
13662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13663 echo "$ac_t""yes" 1>&6
13664
13665 cat >> confdefs.h <<\EOF
13666#define HAVE_WCSLEN 1
13667EOF
13668
13669 WCHAR_LINK=""
13670
13671else
13672 echo "$ac_t""no" 1>&6
13673fi
13674
13675
13676fi
13677
13678
13679fi
13680
13681
13682for ac_func in wcsrtombs
13683do
13684echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13685echo "configure:13686: checking for $ac_func" >&5
13686if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13688else
13689 cat > conftest.$ac_ext <<EOF
13690#line 13691 "configure"
13691#include "confdefs.h"
13692/* System header to define __stub macros and hopefully few prototypes,
13693 which can conflict with char $ac_func(); below. */
13694#include <assert.h>
13695/* Override any gcc2 internal prototype to avoid an error. */
13696/* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698char $ac_func();
13699
13700int main() {
13701
13702/* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706choke me
13707#else
13708$ac_func();
13709#endif
13710
13711; return 0; }
13712EOF
13713if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=yes"
13716else
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13719 rm -rf conftest*
13720 eval "ac_cv_func_$ac_func=no"
13721fi
13722rm -f conftest*
13723fi
13724
13725if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726 echo "$ac_t""yes" 1>&6
13727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728 cat >> confdefs.h <<EOF
13729#define $ac_tr_func 1
13730EOF
13731
13732else
13733 echo "$ac_t""no" 1>&6
13734fi
13735done
13736
13737
13738echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13739echo "configure:13740: checking for vprintf" >&5
13740if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13741 echo $ac_n "(cached) $ac_c" 1>&6
13742else
13743 cat > conftest.$ac_ext <<EOF
13744#line 13745 "configure"
13745#include "confdefs.h"
13746/* System header to define __stub macros and hopefully few prototypes,
13747 which can conflict with char vprintf(); below. */
13748#include <assert.h>
13749/* Override any gcc2 internal prototype to avoid an error. */
13750/* We use char because int might match the return type of a gcc2
13751 builtin and then its argument prototype would still apply. */
13752char vprintf();
13753
13754int main() {
13755
13756/* The GNU C library defines this for functions which it implements
13757 to always fail with ENOSYS. Some functions are actually named
13758 something starting with __ and the normal name is an alias. */
13759#if defined (__stub_vprintf) || defined (__stub___vprintf)
13760choke me
13761#else
13762vprintf();
13763#endif
13764
13765; return 0; }
13766EOF
13767if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13768 rm -rf conftest*
13769 eval "ac_cv_func_vprintf=yes"
13770else
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13773 rm -rf conftest*
13774 eval "ac_cv_func_vprintf=no"
13775fi
13776rm -f conftest*
13777fi
13778
13779if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
13781 cat >> confdefs.h <<\EOF
13782#define HAVE_VPRINTF 1
13783EOF
13784
13785else
13786 echo "$ac_t""no" 1>&6
13787fi
13788
13789if test "$ac_cv_func_vprintf" != yes; then
13790echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13791echo "configure:13792: checking for _doprnt" >&5
13792if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13793 echo $ac_n "(cached) $ac_c" 1>&6
13794else
13795 cat > conftest.$ac_ext <<EOF
13796#line 13797 "configure"
13797#include "confdefs.h"
13798/* System header to define __stub macros and hopefully few prototypes,
13799 which can conflict with char _doprnt(); below. */
13800#include <assert.h>
13801/* Override any gcc2 internal prototype to avoid an error. */
13802/* We use char because int might match the return type of a gcc2
13803 builtin and then its argument prototype would still apply. */
13804char _doprnt();
13805
13806int main() {
13807
13808/* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
13811#if defined (__stub__doprnt) || defined (__stub____doprnt)
13812choke me
13813#else
13814_doprnt();
13815#endif
13816
13817; return 0; }
13818EOF
13819if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13820 rm -rf conftest*
13821 eval "ac_cv_func__doprnt=yes"
13822else
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -rf conftest*
13826 eval "ac_cv_func__doprnt=no"
13827fi
13828rm -f conftest*
13829fi
13830
13831if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13832 echo "$ac_t""yes" 1>&6
13833 cat >> confdefs.h <<\EOF
13834#define HAVE_DOPRNT 1
13835EOF
13836
13837else
13838 echo "$ac_t""no" 1>&6
13839fi
13840
13841fi
13842
13843
13844
13845
13846
13847
13848echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13849echo "configure:13850: checking for vsnprintf" >&5
13850if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13851 echo $ac_n "(cached) $ac_c" 1>&6
13852else
13853
13854 cat > conftest.$ac_ext <<EOF
13855#line 13856 "configure"
13856#include "confdefs.h"
13857
13858 #include <stdio.h>
13859 #include <stdarg.h>
13860
13861int main() {
13862
13863 int wx_test_vsnprintf(const char *, ...);
13864
13865 wx_test_vsnprintf("%s");
13866 return 0;
13867 }
13868
13869 int wx_test_vsnprintf(const char *fmt, ...)
13870 {
13871 char *s;
13872
13873 va_list argp;
13874 va_start(argp, fmt);
13875 vsnprintf(s, 42, fmt, argp);
13876 va_end(argp);
13877
13878; return 0; }
13879EOF
13880if { (eval echo configure:13881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13881 rm -rf conftest*
13882
13883 wx_cv_func_vsnprintf=yes
13884
13885else
13886 echo "configure: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 rm -rf conftest*
13889
13890 cat > conftest.$ac_ext <<EOF
13891#line 13892 "configure"
13892#include "confdefs.h"
13893
13894 #include <stdio.h>
13895 #include <stdarg.h>
13896
13897int main() {
13898
13899 int wx_test_vsnprintf(const char *, ...);
13900
13901 wx_test_vsnprintf("%s");
13902 return 0;
13903 }
13904
13905 int wx_test_vsnprintf(const char *fmt, ...)
13906 {
13907 char *s;
13908
13909 va_list argp;
13910 va_start(argp, fmt);
13911 _vsnprintf(s, 42, fmt, argp);
13912 va_end(argp);
13913
13914; return 0; }
13915EOF
13916if { (eval echo configure:13917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13917 rm -rf conftest*
13918
13919 wx_cv_func_vsnprintf=yes
13920
13921else
13922 echo "configure: failed program was:" >&5
13923 cat conftest.$ac_ext >&5
13924 rm -rf conftest*
13925
13926 wx_cv_func_vsnprintf=no
13927
13928fi
13929rm -f conftest*
13930
13931fi
13932rm -f conftest*
13933
13934fi
13935
13936echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13937
13938if test "$wx_cv_func_vsnprintf" = yes; then
13939 cat >> confdefs.h <<\EOF
13940#define HAVE_VSNPRINTF 1
13941EOF
13942
13943else
13944 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13945fi
13946
13947echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13948echo "configure:13949: checking for vsscanf" >&5
13949if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13950 echo $ac_n "(cached) $ac_c" 1>&6
13951else
13952
13953 cat > conftest.$ac_ext <<EOF
13954#line 13955 "configure"
13955#include "confdefs.h"
13956
13957 #include <stdio.h>
13958 #include <stdarg.h>
13959
13960int main() {
13961
13962 int wx_test_vsscanf(const char *, ...);
13963
13964 wx_test_vsscanf("%d");
13965 return 0;
13966 }
13967
13968 int wx_test_vsscanf(const char *fmt, ...)
13969 {
13970 va_list argp;
13971 va_start(argp, fmt);
13972 vsscanf("42", fmt, argp);
13973 va_end(argp);
13974
13975; return 0; }
13976EOF
13977if { (eval echo configure:13978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13978 rm -rf conftest*
13979
13980 wx_cv_func_vsscanf=yes
13981
13982else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986
13987 wx_cv_func_vsscanf=no
13988
13989fi
13990rm -f conftest*
13991
13992fi
13993
13994echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13995
13996if test "$wx_cv_func_vsscanf" = yes; then
13997 cat >> confdefs.h <<\EOF
13998#define HAVE_VSSCANF 1
13999EOF
14000
14001fi
14002
14003if test "$TOOLKIT" != "MSW"; then
14004
14005
14006
14007ac_ext=C
14008# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14009ac_cpp='$CXXCPP $CPPFLAGS'
14010ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14011ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14012cross_compiling=$ac_cv_prog_cxx_cross
14013
14014echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14015echo "configure:14016: checking if iconv() takes char**" >&5
14016if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14017 echo $ac_n "(cached) $ac_c" 1>&6
14018else
14019
14020 cat > conftest.$ac_ext <<EOF
14021#line 14022 "configure"
14022#include "confdefs.h"
14023#include <iconv.h>
14024int main() {
14025
14026 char **inbuf, **outbuf;
14027 iconv_t cd;
14028 size_t insz, outsz;
14029 iconv(cd, inbuf, &insz, outbuf, &outsz);
14030
14031; return 0; }
14032EOF
14033if { (eval echo configure:14034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14034 rm -rf conftest*
14035 wx_cv_iconv_takes_char=yes
14036else
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 wx_cv_iconv_takes_char=no
14041fi
14042rm -f conftest*
14043
14044fi
14045
14046echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14047ac_ext=c
14048# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14049ac_cpp='$CPP $CPPFLAGS'
14050ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14051ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14052cross_compiling=$ac_cv_prog_cc_cross
14053
14054if test "$wx_cv_iconv_takes_char" = yes ; then
14055 cat >> confdefs.h <<\EOF
14056#define WX_ICONV_TAKES_CHAR 1
14057EOF
14058
14059fi
14060
14061
14062if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14063 for ac_func in sigaction
14064do
14065echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14066echo "configure:14067: checking for $ac_func" >&5
14067if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14069else
14070 cat > conftest.$ac_ext <<EOF
14071#line 14072 "configure"
14072#include "confdefs.h"
14073/* System header to define __stub macros and hopefully few prototypes,
14074 which can conflict with char $ac_func(); below. */
14075#include <assert.h>
14076/* Override any gcc2 internal prototype to avoid an error. */
14077/* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079char $ac_func();
14080
14081int main() {
14082
14083/* The GNU C library defines this for functions which it implements
14084 to always fail with ENOSYS. Some functions are actually named
14085 something starting with __ and the normal name is an alias. */
14086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14087choke me
14088#else
14089$ac_func();
14090#endif
14091
14092; return 0; }
14093EOF
14094if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14095 rm -rf conftest*
14096 eval "ac_cv_func_$ac_func=yes"
14097else
14098 echo "configure: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14100 rm -rf conftest*
14101 eval "ac_cv_func_$ac_func=no"
14102fi
14103rm -f conftest*
14104fi
14105
14106if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14107 echo "$ac_t""yes" 1>&6
14108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14109 cat >> confdefs.h <<EOF
14110#define $ac_tr_func 1
14111EOF
14112
14113else
14114 echo "$ac_t""no" 1>&6
14115fi
14116done
14117
14118
14119 if test "$ac_cv_func_sigaction" = "no"; then
14120 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14121 wxUSE_ON_FATAL_EXCEPTION=no
14122 fi
14123
14124 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14125
14126 ac_ext=C
14127# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14128ac_cpp='$CXXCPP $CPPFLAGS'
14129ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14130ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14131cross_compiling=$ac_cv_prog_cxx_cross
14132
14133
14134 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14135echo "configure:14136: checking for sa_handler type" >&5
14136if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14137 echo $ac_n "(cached) $ac_c" 1>&6
14138else
14139
14140 cat > conftest.$ac_ext <<EOF
14141#line 14142 "configure"
14142#include "confdefs.h"
14143#include <signal.h>
14144int main() {
14145
14146 extern void testSigHandler(int);
14147
14148 struct sigaction sa;
14149 sa.sa_handler = testSigHandler;
14150
14151; return 0; }
14152EOF
14153if { (eval echo configure:14154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14154 rm -rf conftest*
14155
14156 wx_cv_type_sa_handler=int
14157
14158else
14159 echo "configure: failed program was:" >&5
14160 cat conftest.$ac_ext >&5
14161 rm -rf conftest*
14162
14163 wx_cv_type_sa_handler=void
14164
14165fi
14166rm -f conftest*
14167
14168fi
14169
14170echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14171
14172 ac_ext=c
14173# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14174ac_cpp='$CPP $CPPFLAGS'
14175ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14176ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14177cross_compiling=$ac_cv_prog_cc_cross
14178
14179
14180 cat >> confdefs.h <<EOF
14181#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14182EOF
14183
14184 fi
14185fi
14186
14187for ac_func in vfork
14188do
14189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14190echo "configure:14191: checking for $ac_func" >&5
14191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14192 echo $ac_n "(cached) $ac_c" 1>&6
14193else
14194 cat > conftest.$ac_ext <<EOF
14195#line 14196 "configure"
14196#include "confdefs.h"
14197/* System header to define __stub macros and hopefully few prototypes,
14198 which can conflict with char $ac_func(); below. */
14199#include <assert.h>
14200/* Override any gcc2 internal prototype to avoid an error. */
14201/* We use char because int might match the return type of a gcc2
14202 builtin and then its argument prototype would still apply. */
14203char $ac_func();
14204
14205int main() {
14206
14207/* The GNU C library defines this for functions which it implements
14208 to always fail with ENOSYS. Some functions are actually named
14209 something starting with __ and the normal name is an alias. */
14210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14211choke me
14212#else
14213$ac_func();
14214#endif
14215
14216; return 0; }
14217EOF
14218if { (eval echo configure:14219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14219 rm -rf conftest*
14220 eval "ac_cv_func_$ac_func=yes"
14221else
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14224 rm -rf conftest*
14225 eval "ac_cv_func_$ac_func=no"
14226fi
14227rm -f conftest*
14228fi
14229
14230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14231 echo "$ac_t""yes" 1>&6
14232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14233 cat >> confdefs.h <<EOF
14234#define $ac_tr_func 1
14235EOF
14236
14237else
14238 echo "$ac_t""no" 1>&6
14239fi
14240done
14241
14242
14243echo $ac_n "checking for statfs""... $ac_c" 1>&6
14244echo "configure:14245: checking for statfs" >&5
14245if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14246 echo $ac_n "(cached) $ac_c" 1>&6
14247else
14248 cat > conftest.$ac_ext <<EOF
14249#line 14250 "configure"
14250#include "confdefs.h"
14251
14252 #if defined(__BSD__)
14253 #include <sys/param.h>
14254 #include <sys/mount.h>
14255 #else
14256 #include <sys/vfs.h>
14257 #endif
14258
14259int main() {
14260
14261 long l;
14262 struct statfs fs;
14263 statfs("/", &fs);
14264 l = fs.f_bsize;
14265 l += fs.f_blocks;
14266 l += fs.f_bavail;
14267
14268; return 0; }
14269EOF
14270if { (eval echo configure:14271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14271 rm -rf conftest*
14272
14273 wx_cv_func_statfs=yes
14274
14275else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279
14280 wx_cv_func_statfs=no
14281
14282
14283fi
14284rm -f conftest*
14285
14286fi
14287
14288echo "$ac_t""$wx_cv_func_statfs" 1>&6
14289
14290if test "$wx_cv_func_statfs" = "yes"; then
14291 cat >> confdefs.h <<\EOF
14292#define HAVE_STATFS 1
14293EOF
14294
14295else
14296 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14297echo "configure:14298: checking for statvfs" >&5
14298if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
14300else
14301 cat > conftest.$ac_ext <<EOF
14302#line 14303 "configure"
14303#include "confdefs.h"
14304
14305 #include <sys/statvfs.h>
14306
14307int main() {
14308
14309 long l;
14310 struct statvfs fs;
14311 statvfs("/", &fs);
14312 l = fs.f_bsize;
14313 l += fs.f_blocks;
14314 l += fs.f_bavail;
14315
14316; return 0; }
14317EOF
14318if { (eval echo configure:14319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 rm -rf conftest*
14320
14321 wx_cv_func_statvfs=yes
14322
14323else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327
14328 wx_cv_func_statvfs=no
14329
14330
14331fi
14332rm -f conftest*
14333
14334fi
14335
14336echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14337
14338 if test "$wx_cv_func_statvfs" = "yes"; then
14339 cat >> confdefs.h <<\EOF
14340#define HAVE_STATVFS 1
14341EOF
14342
14343 else
14344 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14345 fi
14346fi
14347
14348if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14349 for ac_func in fcntl flock
14350do
14351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14352echo "configure:14353: checking for $ac_func" >&5
14353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14355else
14356 cat > conftest.$ac_ext <<EOF
14357#line 14358 "configure"
14358#include "confdefs.h"
14359/* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func(); below. */
14361#include <assert.h>
14362/* Override any gcc2 internal prototype to avoid an error. */
14363/* We use char because int might match the return type of a gcc2
14364 builtin and then its argument prototype would still apply. */
14365char $ac_func();
14366
14367int main() {
14368
14369/* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373choke me
14374#else
14375$ac_func();
14376#endif
14377
14378; return 0; }
14379EOF
14380if { (eval echo configure:14381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14381 rm -rf conftest*
14382 eval "ac_cv_func_$ac_func=yes"
14383else
14384 echo "configure: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 rm -rf conftest*
14387 eval "ac_cv_func_$ac_func=no"
14388fi
14389rm -f conftest*
14390fi
14391
14392if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14395 cat >> confdefs.h <<EOF
14396#define $ac_tr_func 1
14397EOF
14398 break
14399else
14400 echo "$ac_t""no" 1>&6
14401fi
14402done
14403
14404
14405 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14406 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14407 wxUSE_SNGLINST_CHECKER=no
14408 fi
14409fi
14410
14411for ac_func in timegm
14412do
14413echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14414echo "configure:14415: checking for $ac_func" >&5
14415if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14417else
14418 cat > conftest.$ac_ext <<EOF
14419#line 14420 "configure"
14420#include "confdefs.h"
14421/* System header to define __stub macros and hopefully few prototypes,
14422 which can conflict with char $ac_func(); below. */
14423#include <assert.h>
14424/* Override any gcc2 internal prototype to avoid an error. */
14425/* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427char $ac_func();
14428
14429int main() {
14430
14431/* The GNU C library defines this for functions which it implements
14432 to always fail with ENOSYS. Some functions are actually named
14433 something starting with __ and the normal name is an alias. */
14434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435choke me
14436#else
14437$ac_func();
14438#endif
14439
14440; return 0; }
14441EOF
14442if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14443 rm -rf conftest*
14444 eval "ac_cv_func_$ac_func=yes"
14445else
14446 echo "configure: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 rm -rf conftest*
14449 eval "ac_cv_func_$ac_func=no"
14450fi
14451rm -f conftest*
14452fi
14453
14454if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14455 echo "$ac_t""yes" 1>&6
14456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14457 cat >> confdefs.h <<EOF
14458#define $ac_tr_func 1
14459EOF
14460
14461else
14462 echo "$ac_t""no" 1>&6
14463fi
14464done
14465
14466
14467for ac_func in putenv setenv
14468do
14469echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14470echo "configure:14471: checking for $ac_func" >&5
14471if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473else
14474 cat > conftest.$ac_ext <<EOF
14475#line 14476 "configure"
14476#include "confdefs.h"
14477/* System header to define __stub macros and hopefully few prototypes,
14478 which can conflict with char $ac_func(); below. */
14479#include <assert.h>
14480/* Override any gcc2 internal prototype to avoid an error. */
14481/* We use char because int might match the return type of a gcc2
14482 builtin and then its argument prototype would still apply. */
14483char $ac_func();
14484
14485int main() {
14486
14487/* The GNU C library defines this for functions which it implements
14488 to always fail with ENOSYS. Some functions are actually named
14489 something starting with __ and the normal name is an alias. */
14490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14491choke me
14492#else
14493$ac_func();
14494#endif
14495
14496; return 0; }
14497EOF
14498if { (eval echo configure:14499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14499 rm -rf conftest*
14500 eval "ac_cv_func_$ac_func=yes"
14501else
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 rm -rf conftest*
14505 eval "ac_cv_func_$ac_func=no"
14506fi
14507rm -f conftest*
14508fi
14509
14510if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14511 echo "$ac_t""yes" 1>&6
14512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14513 cat >> confdefs.h <<EOF
14514#define $ac_tr_func 1
14515EOF
14516 break
14517else
14518 echo "$ac_t""no" 1>&6
14519fi
14520done
14521
14522
14523HAVE_SOME_SLEEP_FUNC=0
14524if test "$USE_BEOS" = 1; then
14525 cat >> confdefs.h <<\EOF
14526#define HAVE_SLEEP 1
14527EOF
14528
14529 HAVE_SOME_SLEEP_FUNC=1
14530fi
14531
14532if test "$USE_DARWIN" = 1; then
14533 cat >> confdefs.h <<\EOF
14534#define HAVE_USLEEP 1
14535EOF
14536
14537 HAVE_SOME_SLEEP_FUNC=1
14538fi
14539
14540if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14541 POSIX4_LINK=
14542 for ac_func in nanosleep
14543do
14544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14545echo "configure:14546: checking for $ac_func" >&5
14546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14547 echo $ac_n "(cached) $ac_c" 1>&6
14548else
14549 cat > conftest.$ac_ext <<EOF
14550#line 14551 "configure"
14551#include "confdefs.h"
14552/* System header to define __stub macros and hopefully few prototypes,
14553 which can conflict with char $ac_func(); below. */
14554#include <assert.h>
14555/* Override any gcc2 internal prototype to avoid an error. */
14556/* We use char because int might match the return type of a gcc2
14557 builtin and then its argument prototype would still apply. */
14558char $ac_func();
14559
14560int main() {
14561
14562/* The GNU C library defines this for functions which it implements
14563 to always fail with ENOSYS. Some functions are actually named
14564 something starting with __ and the normal name is an alias. */
14565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14566choke me
14567#else
14568$ac_func();
14569#endif
14570
14571; return 0; }
14572EOF
14573if { (eval echo configure:14574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14574 rm -rf conftest*
14575 eval "ac_cv_func_$ac_func=yes"
14576else
14577 echo "configure: failed program was:" >&5
14578 cat conftest.$ac_ext >&5
14579 rm -rf conftest*
14580 eval "ac_cv_func_$ac_func=no"
14581fi
14582rm -f conftest*
14583fi
14584
14585if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14586 echo "$ac_t""yes" 1>&6
14587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14588 cat >> confdefs.h <<EOF
14589#define $ac_tr_func 1
14590EOF
14591 cat >> confdefs.h <<\EOF
14592#define HAVE_NANOSLEEP 1
14593EOF
14594
14595else
14596 echo "$ac_t""no" 1>&6
14597echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14598echo "configure:14599: checking for nanosleep in -lposix4" >&5
14599ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14601 echo $ac_n "(cached) $ac_c" 1>&6
14602else
14603 ac_save_LIBS="$LIBS"
14604LIBS="-lposix4 $LIBS"
14605cat > conftest.$ac_ext <<EOF
14606#line 14607 "configure"
14607#include "confdefs.h"
14608/* Override any gcc2 internal prototype to avoid an error. */
14609/* We use char because int might match the return type of a gcc2
14610 builtin and then its argument prototype would still apply. */
14611char nanosleep();
14612
14613int main() {
14614nanosleep()
14615; return 0; }
14616EOF
14617if { (eval echo configure:14618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14618 rm -rf conftest*
14619 eval "ac_cv_lib_$ac_lib_var=yes"
14620else
14621 echo "configure: failed program was:" >&5
14622 cat conftest.$ac_ext >&5
14623 rm -rf conftest*
14624 eval "ac_cv_lib_$ac_lib_var=no"
14625fi
14626rm -f conftest*
14627LIBS="$ac_save_LIBS"
14628
14629fi
14630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14631 echo "$ac_t""yes" 1>&6
14632
14633 cat >> confdefs.h <<\EOF
14634#define HAVE_NANOSLEEP 1
14635EOF
14636
14637 POSIX4_LINK="-lposix4"
14638
14639else
14640 echo "$ac_t""no" 1>&6
14641
14642 for ac_func in usleep
14643do
14644echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14645echo "configure:14646: checking for $ac_func" >&5
14646if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14647 echo $ac_n "(cached) $ac_c" 1>&6
14648else
14649 cat > conftest.$ac_ext <<EOF
14650#line 14651 "configure"
14651#include "confdefs.h"
14652/* System header to define __stub macros and hopefully few prototypes,
14653 which can conflict with char $ac_func(); below. */
14654#include <assert.h>
14655/* Override any gcc2 internal prototype to avoid an error. */
14656/* We use char because int might match the return type of a gcc2
14657 builtin and then its argument prototype would still apply. */
14658char $ac_func();
14659
14660int main() {
14661
14662/* The GNU C library defines this for functions which it implements
14663 to always fail with ENOSYS. Some functions are actually named
14664 something starting with __ and the normal name is an alias. */
14665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14666choke me
14667#else
14668$ac_func();
14669#endif
14670
14671; return 0; }
14672EOF
14673if { (eval echo configure:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14674 rm -rf conftest*
14675 eval "ac_cv_func_$ac_func=yes"
14676else
14677 echo "configure: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 rm -rf conftest*
14680 eval "ac_cv_func_$ac_func=no"
14681fi
14682rm -f conftest*
14683fi
14684
14685if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14686 echo "$ac_t""yes" 1>&6
14687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14688 cat >> confdefs.h <<EOF
14689#define $ac_tr_func 1
14690EOF
14691 cat >> confdefs.h <<\EOF
14692#define HAVE_USLEEP 1
14693EOF
14694
14695else
14696 echo "$ac_t""no" 1>&6
14697echo "configure: warning: wxSleep() function will not work" 1>&2
14698
14699fi
14700done
14701
14702
14703
14704fi
14705
14706
14707
14708fi
14709done
14710
14711fi
14712
14713for ac_func in uname gethostname
14714do
14715echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14716echo "configure:14717: checking for $ac_func" >&5
14717if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14718 echo $ac_n "(cached) $ac_c" 1>&6
14719else
14720 cat > conftest.$ac_ext <<EOF
14721#line 14722 "configure"
14722#include "confdefs.h"
14723/* System header to define __stub macros and hopefully few prototypes,
14724 which can conflict with char $ac_func(); below. */
14725#include <assert.h>
14726/* Override any gcc2 internal prototype to avoid an error. */
14727/* We use char because int might match the return type of a gcc2
14728 builtin and then its argument prototype would still apply. */
14729char $ac_func();
14730
14731int main() {
14732
14733/* The GNU C library defines this for functions which it implements
14734 to always fail with ENOSYS. Some functions are actually named
14735 something starting with __ and the normal name is an alias. */
14736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14737choke me
14738#else
14739$ac_func();
14740#endif
14741
14742; return 0; }
14743EOF
14744if { (eval echo configure:14745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14745 rm -rf conftest*
14746 eval "ac_cv_func_$ac_func=yes"
14747else
14748 echo "configure: failed program was:" >&5
14749 cat conftest.$ac_ext >&5
14750 rm -rf conftest*
14751 eval "ac_cv_func_$ac_func=no"
14752fi
14753rm -f conftest*
14754fi
14755
14756if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14757 echo "$ac_t""yes" 1>&6
14758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14759 cat >> confdefs.h <<EOF
14760#define $ac_tr_func 1
14761EOF
14762 break
14763else
14764 echo "$ac_t""no" 1>&6
14765fi
14766done
14767
14768
14769
14770ac_ext=C
14771# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14772ac_cpp='$CXXCPP $CPPFLAGS'
14773ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14774ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14775cross_compiling=$ac_cv_prog_cxx_cross
14776
14777
14778for ac_func in strtok_r
14779do
14780echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14781echo "configure:14782: checking for $ac_func" >&5
14782if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14783 echo $ac_n "(cached) $ac_c" 1>&6
14784else
14785 cat > conftest.$ac_ext <<EOF
14786#line 14787 "configure"
14787#include "confdefs.h"
14788/* System header to define __stub macros and hopefully few prototypes,
14789 which can conflict with char $ac_func(); below. */
14790#include <assert.h>
14791/* Override any gcc2 internal prototype to avoid an error. */
14792#ifdef __cplusplus
14793extern "C"
14794#endif
14795/* We use char because int might match the return type of a gcc2
14796 builtin and then its argument prototype would still apply. */
14797char $ac_func();
14798
14799int main() {
14800
14801/* The GNU C library defines this for functions which it implements
14802 to always fail with ENOSYS. Some functions are actually named
14803 something starting with __ and the normal name is an alias. */
14804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14805choke me
14806#else
14807$ac_func();
14808#endif
14809
14810; return 0; }
14811EOF
14812if { (eval echo configure:14813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14813 rm -rf conftest*
14814 eval "ac_cv_func_$ac_func=yes"
14815else
14816 echo "configure: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 rm -rf conftest*
14819 eval "ac_cv_func_$ac_func=no"
14820fi
14821rm -f conftest*
14822fi
14823
14824if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14825 echo "$ac_t""yes" 1>&6
14826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14827 cat >> confdefs.h <<EOF
14828#define $ac_tr_func 1
14829EOF
14830
14831else
14832 echo "$ac_t""no" 1>&6
14833fi
14834done
14835
14836
14837ac_ext=c
14838# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14839ac_cpp='$CPP $CPPFLAGS'
14840ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14841ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14842cross_compiling=$ac_cv_prog_cc_cross
14843
14844
14845INET_LINK=
14846for ac_func in inet_addr
14847do
14848echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14849echo "configure:14850: checking for $ac_func" >&5
14850if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14852else
14853 cat > conftest.$ac_ext <<EOF
14854#line 14855 "configure"
14855#include "confdefs.h"
14856/* System header to define __stub macros and hopefully few prototypes,
14857 which can conflict with char $ac_func(); below. */
14858#include <assert.h>
14859/* Override any gcc2 internal prototype to avoid an error. */
14860/* We use char because int might match the return type of a gcc2
14861 builtin and then its argument prototype would still apply. */
14862char $ac_func();
14863
14864int main() {
14865
14866/* The GNU C library defines this for functions which it implements
14867 to always fail with ENOSYS. Some functions are actually named
14868 something starting with __ and the normal name is an alias. */
14869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870choke me
14871#else
14872$ac_func();
14873#endif
14874
14875; return 0; }
14876EOF
14877if { (eval echo configure:14878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14878 rm -rf conftest*
14879 eval "ac_cv_func_$ac_func=yes"
14880else
14881 echo "configure: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14883 rm -rf conftest*
14884 eval "ac_cv_func_$ac_func=no"
14885fi
14886rm -f conftest*
14887fi
14888
14889if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14890 echo "$ac_t""yes" 1>&6
14891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14892 cat >> confdefs.h <<EOF
14893#define $ac_tr_func 1
14894EOF
14895 cat >> confdefs.h <<\EOF
14896#define HAVE_INET_ADDR 1
14897EOF
14898
14899else
14900 echo "$ac_t""no" 1>&6
14901echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14902echo "configure:14903: checking for inet_addr in -lnsl" >&5
14903ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14904if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14905 echo $ac_n "(cached) $ac_c" 1>&6
14906else
14907 ac_save_LIBS="$LIBS"
14908LIBS="-lnsl $LIBS"
14909cat > conftest.$ac_ext <<EOF
14910#line 14911 "configure"
14911#include "confdefs.h"
14912/* Override any gcc2 internal prototype to avoid an error. */
14913/* We use char because int might match the return type of a gcc2
14914 builtin and then its argument prototype would still apply. */
14915char inet_addr();
14916
14917int main() {
14918inet_addr()
14919; return 0; }
14920EOF
14921if { (eval echo configure:14922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14922 rm -rf conftest*
14923 eval "ac_cv_lib_$ac_lib_var=yes"
14924else
14925 echo "configure: failed program was:" >&5
14926 cat conftest.$ac_ext >&5
14927 rm -rf conftest*
14928 eval "ac_cv_lib_$ac_lib_var=no"
14929fi
14930rm -f conftest*
14931LIBS="$ac_save_LIBS"
14932
14933fi
14934if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14935 echo "$ac_t""yes" 1>&6
14936 INET_LINK="nsl"
14937else
14938 echo "$ac_t""no" 1>&6
14939echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14940echo "configure:14941: checking for inet_addr in -lresolv" >&5
14941ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
14944else
14945 ac_save_LIBS="$LIBS"
14946LIBS="-lresolv $LIBS"
14947cat > conftest.$ac_ext <<EOF
14948#line 14949 "configure"
14949#include "confdefs.h"
14950/* Override any gcc2 internal prototype to avoid an error. */
14951/* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14953char inet_addr();
14954
14955int main() {
14956inet_addr()
14957; return 0; }
14958EOF
14959if { (eval echo configure:14960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14960 rm -rf conftest*
14961 eval "ac_cv_lib_$ac_lib_var=yes"
14962else
14963 echo "configure: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14965 rm -rf conftest*
14966 eval "ac_cv_lib_$ac_lib_var=no"
14967fi
14968rm -f conftest*
14969LIBS="$ac_save_LIBS"
14970
14971fi
14972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14973 echo "$ac_t""yes" 1>&6
14974 INET_LINK="resolv"
14975
14976else
14977 echo "$ac_t""no" 1>&6
14978fi
14979
14980
14981fi
14982
14983
14984
14985fi
14986done
14987
14988
14989for ac_func in inet_aton
14990do
14991echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14992echo "configure:14993: checking for $ac_func" >&5
14993if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14994 echo $ac_n "(cached) $ac_c" 1>&6
14995else
14996 cat > conftest.$ac_ext <<EOF
14997#line 14998 "configure"
14998#include "confdefs.h"
14999/* System header to define __stub macros and hopefully few prototypes,
15000 which can conflict with char $ac_func(); below. */
15001#include <assert.h>
15002/* Override any gcc2 internal prototype to avoid an error. */
15003/* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15005char $ac_func();
15006
15007int main() {
15008
15009/* The GNU C library defines this for functions which it implements
15010 to always fail with ENOSYS. Some functions are actually named
15011 something starting with __ and the normal name is an alias. */
15012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15013choke me
15014#else
15015$ac_func();
15016#endif
15017
15018; return 0; }
15019EOF
15020if { (eval echo configure:15021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15021 rm -rf conftest*
15022 eval "ac_cv_func_$ac_func=yes"
15023else
15024 echo "configure: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15026 rm -rf conftest*
15027 eval "ac_cv_func_$ac_func=no"
15028fi
15029rm -f conftest*
15030fi
15031
15032if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15033 echo "$ac_t""yes" 1>&6
15034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15035 cat >> confdefs.h <<EOF
15036#define $ac_tr_func 1
15037EOF
15038 cat >> confdefs.h <<\EOF
15039#define HAVE_INET_ATON 1
15040EOF
15041
15042else
15043 echo "$ac_t""no" 1>&6
15044 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15045echo "configure:15046: checking for inet_aton in -l$INET_LINK" >&5
15046ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15049else
15050 ac_save_LIBS="$LIBS"
15051LIBS="-l$INET_LINK $LIBS"
15052cat > conftest.$ac_ext <<EOF
15053#line 15054 "configure"
15054#include "confdefs.h"
15055/* Override any gcc2 internal prototype to avoid an error. */
15056/* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15058char inet_aton();
15059
15060int main() {
15061inet_aton()
15062; return 0; }
15063EOF
15064if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15065 rm -rf conftest*
15066 eval "ac_cv_lib_$ac_lib_var=yes"
15067else
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 rm -rf conftest*
15071 eval "ac_cv_lib_$ac_lib_var=no"
15072fi
15073rm -f conftest*
15074LIBS="$ac_save_LIBS"
15075
15076fi
15077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15078 echo "$ac_t""yes" 1>&6
15079 cat >> confdefs.h <<\EOF
15080#define HAVE_INET_ATON 1
15081EOF
15082
15083else
15084 echo "$ac_t""no" 1>&6
15085fi
15086
15087
15088fi
15089done
15090
15091
15092if test "x$INET_LINK" != "x"; then
15093 cat >> confdefs.h <<\EOF
15094#define HAVE_INET_ADDR 1
15095EOF
15096
15097 INET_LINK="-l$INET_LINK"
15098fi
15099
15100fi
15101
15102
15103cat > confcache <<\EOF
15104# This file is a shell script that caches the results of configure
15105# tests run on this system so they can be shared between configure
15106# scripts and configure runs. It is not useful on other systems.
15107# If it contains results you don't want to keep, you may remove or edit it.
15108#
15109# By default, configure uses ./config.cache as the cache file,
15110# creating it if it does not exist already. You can give configure
15111# the --cache-file=FILE option to use a different cache file; that is
15112# what configure does when it calls configure scripts in
15113# subdirectories, so they share the cache.
15114# Giving --cache-file=/dev/null disables caching, for debugging configure.
15115# config.status only pays attention to the cache file if you give it the
15116# --recheck option to rerun configure.
15117#
15118EOF
15119# The following way of writing the cache mishandles newlines in values,
15120# but we know of no workaround that is simple, portable, and efficient.
15121# So, don't put newlines in cache variables' values.
15122# Ultrix sh set writes to stderr and can't be redirected directly,
15123# and sets the high bit in the cache file unless we assign to the vars.
15124(set) 2>&1 |
15125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15126 *ac_space=\ *)
15127 # `set' does not quote correctly, so add quotes (double-quote substitution
15128 # turns \\\\ into \\, and sed turns \\ into \).
15129 sed -n \
15130 -e "s/'/'\\\\''/g" \
15131 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15132 ;;
15133 *)
15134 # `set' quotes correctly as required by POSIX, so do not add quotes.
15135 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15136 ;;
15137 esac >> confcache
15138if cmp -s $cache_file confcache; then
15139 :
15140else
15141 if test -w $cache_file; then
15142 echo "updating cache $cache_file"
15143 cat confcache > $cache_file
15144 else
15145 echo "not updating unwritable cache $cache_file"
15146 fi
15147fi
15148rm -f confcache
15149
15150
15151
15152if test "$TOOLKIT" != "MSW"; then
15153
15154
15155THREADS_LINK=
15156THREADS_OBJ=
15157CODE_GEN_FLAGS=
15158CODE_GEN_FLAGS_CXX=
15159
15160if test "$wxUSE_THREADS" = "yes" ; then
15161 if test "$wxUSE_WINE" = 1 ; then
15162 echo "configure: warning: Threads are not supported under WINE" 1>&2
15163 wxUSE_THREADS="no"
15164 elif test "$USE_BEOS" = 1; then
15165 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15166 wxUSE_THREADS="no"
15167 fi
15168fi
15169
15170if test "$wxUSE_THREADS" = "yes" ; then
15171
15172 if test "$USE_AIX" = 1; then
15173 THREADS_LIB=pthreads
15174 else
15175 THREADS_LIB=pthread
15176 fi
15177
15178 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15179echo "configure:15180: checking for pthread_create in -l$THREADS_LIB" >&5
15180ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15182 echo $ac_n "(cached) $ac_c" 1>&6
15183else
15184 ac_save_LIBS="$LIBS"
15185LIBS="-l$THREADS_LIB $LIBS"
15186cat > conftest.$ac_ext <<EOF
15187#line 15188 "configure"
15188#include "confdefs.h"
15189/* Override any gcc2 internal prototype to avoid an error. */
15190/* We use char because int might match the return type of a gcc2
15191 builtin and then its argument prototype would still apply. */
15192char pthread_create();
15193
15194int main() {
15195pthread_create()
15196; return 0; }
15197EOF
15198if { (eval echo configure:15199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15199 rm -rf conftest*
15200 eval "ac_cv_lib_$ac_lib_var=yes"
15201else
15202 echo "configure: failed program was:" >&5
15203 cat conftest.$ac_ext >&5
15204 rm -rf conftest*
15205 eval "ac_cv_lib_$ac_lib_var=no"
15206fi
15207rm -f conftest*
15208LIBS="$ac_save_LIBS"
15209
15210fi
15211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15212 echo "$ac_t""yes" 1>&6
15213
15214 THREADS_OBJ="threadpsx.lo"
15215 THREADS_LINK=$THREADS_LIB
15216
15217else
15218 echo "$ac_t""no" 1>&6
15219
15220 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15221echo "configure:15222: checking for pthread_create in -lc_r" >&5
15222ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15223if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15224 echo $ac_n "(cached) $ac_c" 1>&6
15225else
15226 ac_save_LIBS="$LIBS"
15227LIBS="-lc_r $LIBS"
15228cat > conftest.$ac_ext <<EOF
15229#line 15230 "configure"
15230#include "confdefs.h"
15231/* Override any gcc2 internal prototype to avoid an error. */
15232/* We use char because int might match the return type of a gcc2
15233 builtin and then its argument prototype would still apply. */
15234char pthread_create();
15235
15236int main() {
15237pthread_create()
15238; return 0; }
15239EOF
15240if { (eval echo configure:15241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15241 rm -rf conftest*
15242 eval "ac_cv_lib_$ac_lib_var=yes"
15243else
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15246 rm -rf conftest*
15247 eval "ac_cv_lib_$ac_lib_var=no"
15248fi
15249rm -f conftest*
15250LIBS="$ac_save_LIBS"
15251
15252fi
15253if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15254 echo "$ac_t""yes" 1>&6
15255
15256 THREADS_OBJ="threadpsx.lo"
15257 THREADS_LINK="c_r"
15258
15259else
15260 echo "$ac_t""no" 1>&6
15261
15262 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15263echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15264echo "configure:15265: checking for sys/prctl.h" >&5
15265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15267else
15268 cat > conftest.$ac_ext <<EOF
15269#line 15270 "configure"
15270#include "confdefs.h"
15271#include <sys/prctl.h>
15272EOF
15273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15274{ (eval echo configure:15275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15276if test -z "$ac_err"; then
15277 rm -rf conftest*
15278 eval "ac_cv_header_$ac_safe=yes"
15279else
15280 echo "$ac_err" >&5
15281 echo "configure: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15283 rm -rf conftest*
15284 eval "ac_cv_header_$ac_safe=no"
15285fi
15286rm -f conftest*
15287fi
15288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15289 echo "$ac_t""yes" 1>&6
15290
15291 THREADS_OBJ="threadsgi.lo"
15292
15293else
15294 echo "$ac_t""no" 1>&6
15295fi
15296
15297
15298fi
15299
15300
15301fi
15302
15303
15304 if test -z "$THREADS_OBJ" ; then
15305 wxUSE_THREADS=no
15306 echo "configure: warning: No thread support on this system" 1>&2
15307 fi
15308fi
15309
15310if test "$wxUSE_THREADS" = "yes" ; then
15311 for ac_func in thr_setconcurrency
15312do
15313echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15314echo "configure:15315: checking for $ac_func" >&5
15315if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15316 echo $ac_n "(cached) $ac_c" 1>&6
15317else
15318 cat > conftest.$ac_ext <<EOF
15319#line 15320 "configure"
15320#include "confdefs.h"
15321/* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func(); below. */
15323#include <assert.h>
15324/* Override any gcc2 internal prototype to avoid an error. */
15325/* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15327char $ac_func();
15328
15329int main() {
15330
15331/* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15335choke me
15336#else
15337$ac_func();
15338#endif
15339
15340; return 0; }
15341EOF
15342if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 rm -rf conftest*
15344 eval "ac_cv_func_$ac_func=yes"
15345else
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 rm -rf conftest*
15349 eval "ac_cv_func_$ac_func=no"
15350fi
15351rm -f conftest*
15352fi
15353
15354if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15355 echo "$ac_t""yes" 1>&6
15356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15357 cat >> confdefs.h <<EOF
15358#define $ac_tr_func 1
15359EOF
15360
15361else
15362 echo "$ac_t""no" 1>&6
15363fi
15364done
15365
15366
15367
15368 for ac_hdr in sched.h
15369do
15370ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15371echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15372echo "configure:15373: checking for $ac_hdr" >&5
15373if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15374 echo $ac_n "(cached) $ac_c" 1>&6
15375else
15376 cat > conftest.$ac_ext <<EOF
15377#line 15378 "configure"
15378#include "confdefs.h"
15379#include <$ac_hdr>
15380EOF
15381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15382{ (eval echo configure:15383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15384if test -z "$ac_err"; then
15385 rm -rf conftest*
15386 eval "ac_cv_header_$ac_safe=yes"
15387else
15388 echo "$ac_err" >&5
15389 echo "configure: failed program was:" >&5
15390 cat conftest.$ac_ext >&5
15391 rm -rf conftest*
15392 eval "ac_cv_header_$ac_safe=no"
15393fi
15394rm -f conftest*
15395fi
15396if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15397 echo "$ac_t""yes" 1>&6
15398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15399 cat >> confdefs.h <<EOF
15400#define $ac_tr_hdr 1
15401EOF
15402
15403else
15404 echo "$ac_t""no" 1>&6
15405fi
15406done
15407
15408
15409 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
15410echo "configure:15411: checking for sched_yield in -l$THREADS_LINK" >&5
15411ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15412if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15413 echo $ac_n "(cached) $ac_c" 1>&6
15414else
15415 ac_save_LIBS="$LIBS"
15416LIBS="-l$THREADS_LINK $LIBS"
15417cat > conftest.$ac_ext <<EOF
15418#line 15419 "configure"
15419#include "confdefs.h"
15420/* Override any gcc2 internal prototype to avoid an error. */
15421/* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423char sched_yield();
15424
15425int main() {
15426sched_yield()
15427; return 0; }
15428EOF
15429if { (eval echo configure:15430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15430 rm -rf conftest*
15431 eval "ac_cv_lib_$ac_lib_var=yes"
15432else
15433 echo "configure: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 rm -rf conftest*
15436 eval "ac_cv_lib_$ac_lib_var=no"
15437fi
15438rm -f conftest*
15439LIBS="$ac_save_LIBS"
15440
15441fi
15442if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15443 echo "$ac_t""yes" 1>&6
15444 cat >> confdefs.h <<\EOF
15445#define HAVE_SCHED_YIELD 1
15446EOF
15447
15448else
15449 echo "$ac_t""no" 1>&6
15450echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
15451echo "configure:15452: checking for sched_yield in -lposix4" >&5
15452ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15453if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15455else
15456 ac_save_LIBS="$LIBS"
15457LIBS="-lposix4 $LIBS"
15458cat > conftest.$ac_ext <<EOF
15459#line 15460 "configure"
15460#include "confdefs.h"
15461/* Override any gcc2 internal prototype to avoid an error. */
15462/* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15464char sched_yield();
15465
15466int main() {
15467sched_yield()
15468; return 0; }
15469EOF
15470if { (eval echo configure:15471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15471 rm -rf conftest*
15472 eval "ac_cv_lib_$ac_lib_var=yes"
15473else
15474 echo "configure: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15476 rm -rf conftest*
15477 eval "ac_cv_lib_$ac_lib_var=no"
15478fi
15479rm -f conftest*
15480LIBS="$ac_save_LIBS"
15481
15482fi
15483if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15484 echo "$ac_t""yes" 1>&6
15485 cat >> confdefs.h <<\EOF
15486#define HAVE_SCHED_YIELD 1
15487EOF
15488 POSIX4_LINK="-lposix4"
15489else
15490 echo "$ac_t""no" 1>&6
15491echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15492
15493fi
15494
15495
15496fi
15497
15498
15499 HAVE_PRIOR_FUNCS=0
15500 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
15501echo "configure:15502: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
15502ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15505else
15506 ac_save_LIBS="$LIBS"
15507LIBS="-l$THREADS_LINK $LIBS"
15508cat > conftest.$ac_ext <<EOF
15509#line 15510 "configure"
15510#include "confdefs.h"
15511/* Override any gcc2 internal prototype to avoid an error. */
15512/* We use char because int might match the return type of a gcc2
15513 builtin and then its argument prototype would still apply. */
15514char pthread_attr_getschedpolicy();
15515
15516int main() {
15517pthread_attr_getschedpolicy()
15518; return 0; }
15519EOF
15520if { (eval echo configure:15521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15521 rm -rf conftest*
15522 eval "ac_cv_lib_$ac_lib_var=yes"
15523else
15524 echo "configure: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 rm -rf conftest*
15527 eval "ac_cv_lib_$ac_lib_var=no"
15528fi
15529rm -f conftest*
15530LIBS="$ac_save_LIBS"
15531
15532fi
15533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15534 echo "$ac_t""yes" 1>&6
15535 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
15536echo "configure:15537: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
15537ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
15538if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15539 echo $ac_n "(cached) $ac_c" 1>&6
15540else
15541 ac_save_LIBS="$LIBS"
15542LIBS="-l$THREADS_LINK $LIBS"
15543cat > conftest.$ac_ext <<EOF
15544#line 15545 "configure"
15545#include "confdefs.h"
15546/* Override any gcc2 internal prototype to avoid an error. */
15547/* We use char because int might match the return type of a gcc2
15548 builtin and then its argument prototype would still apply. */
15549char pthread_attr_setschedparam();
15550
15551int main() {
15552pthread_attr_setschedparam()
15553; return 0; }
15554EOF
15555if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15556 rm -rf conftest*
15557 eval "ac_cv_lib_$ac_lib_var=yes"
15558else
15559 echo "configure: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15561 rm -rf conftest*
15562 eval "ac_cv_lib_$ac_lib_var=no"
15563fi
15564rm -f conftest*
15565LIBS="$ac_save_LIBS"
15566
15567fi
15568if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15569 echo "$ac_t""yes" 1>&6
15570 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
15571echo "configure:15572: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
15572ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15573if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15574 echo $ac_n "(cached) $ac_c" 1>&6
15575else
15576 ac_save_LIBS="$LIBS"
15577LIBS="-l$THREADS_LINK $LIBS"
15578cat > conftest.$ac_ext <<EOF
15579#line 15580 "configure"
15580#include "confdefs.h"
15581/* Override any gcc2 internal prototype to avoid an error. */
15582/* We use char because int might match the return type of a gcc2
15583 builtin and then its argument prototype would still apply. */
15584char sched_get_priority_max();
15585
15586int main() {
15587sched_get_priority_max()
15588; return 0; }
15589EOF
15590if { (eval echo configure:15591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15591 rm -rf conftest*
15592 eval "ac_cv_lib_$ac_lib_var=yes"
15593else
15594 echo "configure: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 rm -rf conftest*
15597 eval "ac_cv_lib_$ac_lib_var=no"
15598fi
15599rm -f conftest*
15600LIBS="$ac_save_LIBS"
15601
15602fi
15603if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15604 echo "$ac_t""yes" 1>&6
15605 HAVE_PRIOR_FUNCS=1
15606else
15607 echo "$ac_t""no" 1>&6
15608echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15609echo "configure:15610: checking for sched_get_priority_max in -lposix4" >&5
15610ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15612 echo $ac_n "(cached) $ac_c" 1>&6
15613else
15614 ac_save_LIBS="$LIBS"
15615LIBS="-lposix4 $LIBS"
15616cat > conftest.$ac_ext <<EOF
15617#line 15618 "configure"
15618#include "confdefs.h"
15619/* Override any gcc2 internal prototype to avoid an error. */
15620/* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622char sched_get_priority_max();
15623
15624int main() {
15625sched_get_priority_max()
15626; return 0; }
15627EOF
15628if { (eval echo configure:15629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15629 rm -rf conftest*
15630 eval "ac_cv_lib_$ac_lib_var=yes"
15631else
15632 echo "configure: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15634 rm -rf conftest*
15635 eval "ac_cv_lib_$ac_lib_var=no"
15636fi
15637rm -f conftest*
15638LIBS="$ac_save_LIBS"
15639
15640fi
15641if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15642 echo "$ac_t""yes" 1>&6
15643
15644 HAVE_PRIOR_FUNCS=1
15645 POSIX4_LINK="-lposix4"
15646
15647else
15648 echo "$ac_t""no" 1>&6
15649fi
15650
15651
15652fi
15653
15654
15655else
15656 echo "$ac_t""no" 1>&6
15657fi
15658
15659
15660else
15661 echo "$ac_t""no" 1>&6
15662fi
15663
15664
15665 if test "$HAVE_PRIOR_FUNCS" = 1; then
15666 cat >> confdefs.h <<\EOF
15667#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15668EOF
15669
15670 else
15671 echo "configure: warning: Setting thread priority will not work" 1>&2
15672 fi
15673
15674 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15675echo "configure:15676: checking for pthread_cancel in -l$THREADS_LINK" >&5
15676ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15677if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15679else
15680 ac_save_LIBS="$LIBS"
15681LIBS="-l$THREADS_LINK $LIBS"
15682cat > conftest.$ac_ext <<EOF
15683#line 15684 "configure"
15684#include "confdefs.h"
15685/* Override any gcc2 internal prototype to avoid an error. */
15686/* We use char because int might match the return type of a gcc2
15687 builtin and then its argument prototype would still apply. */
15688char pthread_cancel();
15689
15690int main() {
15691pthread_cancel()
15692; return 0; }
15693EOF
15694if { (eval echo configure:15695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15695 rm -rf conftest*
15696 eval "ac_cv_lib_$ac_lib_var=yes"
15697else
15698 echo "configure: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 rm -rf conftest*
15701 eval "ac_cv_lib_$ac_lib_var=no"
15702fi
15703rm -f conftest*
15704LIBS="$ac_save_LIBS"
15705
15706fi
15707if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15708 echo "$ac_t""yes" 1>&6
15709 cat >> confdefs.h <<\EOF
15710#define HAVE_PTHREAD_CANCEL 1
15711EOF
15712
15713else
15714 echo "$ac_t""no" 1>&6
15715echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15716fi
15717
15718
15719 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15720echo "configure:15721: checking for pthread_cleanup_push/pop" >&5
15721if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15722 echo $ac_n "(cached) $ac_c" 1>&6
15723else
15724
15725 cat > conftest.$ac_ext <<EOF
15726#line 15727 "configure"
15727#include "confdefs.h"
15728#include <pthread.h>
15729int main() {
15730
15731 pthread_cleanup_push(NULL, NULL);
15732 pthread_cleanup_pop(0);
15733
15734; return 0; }
15735EOF
15736if { (eval echo configure:15737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15737 rm -rf conftest*
15738
15739 wx_cv_func_pthread_cleanup_push=yes
15740
15741else
15742 echo "configure: failed program was:" >&5
15743 cat conftest.$ac_ext >&5
15744 rm -rf conftest*
15745
15746 wx_cv_func_pthread_cleanup_push=no
15747
15748fi
15749rm -f conftest*
15750
15751fi
15752
15753echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15754
15755 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15756 cat >> confdefs.h <<\EOF
15757#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15758EOF
15759
15760 fi
15761
15762
15763 if test "x$wx_lib_glibc21" = "xyes"; then
15764 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15765 fi
15766
15767 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15768echo "configure:15769: checking for pthread_mutexattr_t" >&5
15769if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15770 echo $ac_n "(cached) $ac_c" 1>&6
15771else
15772
15773 cat > conftest.$ac_ext <<EOF
15774#line 15775 "configure"
15775#include "confdefs.h"
15776#include <pthread.h>
15777int main() {
15778
15779 pthread_mutexattr_t attr;
15780 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15781
15782; return 0; }
15783EOF
15784if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15785 rm -rf conftest*
15786
15787 wx_cv_type_pthread_mutexattr_t=yes
15788
15789else
15790 echo "configure: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 rm -rf conftest*
15793
15794 wx_cv_type_pthread_mutexattr_t=no
15795
15796
15797fi
15798rm -f conftest*
15799
15800fi
15801
15802echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15803
15804 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15805 cat >> confdefs.h <<\EOF
15806#define HAVE_PTHREAD_MUTEXATTR_T 1
15807EOF
15808
15809 else
15810 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15811echo "configure:15812: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15812if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15813 echo $ac_n "(cached) $ac_c" 1>&6
15814else
15815
15816 cat > conftest.$ac_ext <<EOF
15817#line 15818 "configure"
15818#include "confdefs.h"
15819#include <pthread.h>
15820int main() {
15821
15822 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15823
15824; return 0; }
15825EOF
15826if { (eval echo configure:15827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15827 rm -rf conftest*
15828
15829 wx_cv_type_pthread_rec_mutex_init=yes
15830
15831else
15832 echo "configure: failed program was:" >&5
15833 cat conftest.$ac_ext >&5
15834 rm -rf conftest*
15835
15836 wx_cv_type_pthread_rec_mutex_init=no
15837
15838
15839fi
15840rm -f conftest*
15841
15842fi
15843
15844echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15845 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15846 cat >> confdefs.h <<\EOF
15847#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15848EOF
15849
15850 else
15851 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15852 fi
15853 fi
15854
15855 THREADS_LINK="-l$THREADS_LINK"
15856
15857 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15858 CPPFLAGS="${CFLAGS} -mt"
15859 CXXFLAGS="${CXXFLAGS} -mt"
15860 LDFLAGS="${LDFLAGS} -mt"
15861 fi
15862fi
15863
15864fi
15865
15866if test "$wxUSE_THREADS" = "yes"; then
15867 cat >> confdefs.h <<\EOF
15868#define wxUSE_THREADS 1
15869EOF
15870
15871
15872 if test "$USE_DARWIN" != 1; then
15873 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15874 fi
15875
15876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15877else
15878 if test "$ac_cv_func_strtok_r" = "yes"; then
15879 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15880echo "configure:15881: checking if -D_REENTRANT is needed" >&5
15881 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15882 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15883 echo "$ac_t""yes" 1>&6
15884 else
15885 echo "$ac_t""no" 1>&6
15886 fi
15887 fi
15888fi
15889
15890if test "$WXGTK20" = 1 ; then
15891 cat >> confdefs.h <<EOF
15892#define __WXGTK20__ $WXGTK20
15893EOF
15894
15895 WXGTK12=1
15896fi
15897
15898if test "$WXGTK12" = 1 ; then
15899 cat >> confdefs.h <<EOF
15900#define __WXGTK12__ $WXGTK12
15901EOF
15902
15903fi
15904
15905if test "$WXGTK127" = 1 ; then
15906 cat >> confdefs.h <<EOF
15907#define __WXGTK127__ $WXGTK127
15908EOF
15909
15910fi
15911
15912WXDEBUG=
15913
15914if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15915 WXDEBUG="-g"
15916 wxUSE_OPTIMISE=no
15917fi
15918
15919if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15920 wxUSE_DEBUG_INFO=yes
15921 WXDEBUG="-ggdb"
15922fi
15923
15924if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15925 cat >> confdefs.h <<\EOF
15926#define WXDEBUG 1
15927EOF
15928
15929 WXDEBUG_DEFINE="-D__WXDEBUG__"
15930else
15931 if test "$wxUSE_GTK" = 1 ; then
15932 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15933 fi
15934fi
15935
15936if test "$wxUSE_MEM_TRACING" = "yes" ; then
15937 cat >> confdefs.h <<\EOF
15938#define wxUSE_MEMORY_TRACING 1
15939EOF
15940
15941 cat >> confdefs.h <<\EOF
15942#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15943EOF
15944
15945 cat >> confdefs.h <<\EOF
15946#define wxUSE_DEBUG_NEW_ALWAYS 1
15947EOF
15948
15949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15950fi
15951
15952if test "$wxUSE_DMALLOC" = "yes" ; then
15953 DMALLOC_LINK="-ldmalloc"
15954fi
15955
15956PROFILE=
15957if test "$wxUSE_PROFILE" = "yes" ; then
15958 PROFILE="-pg"
15959fi
15960
15961if test "$GCC" = yes ; then
15962 if test "$wxUSE_NO_RTTI" = "yes" ; then
15963 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15964 fi
15965 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15966 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15967 fi
15968 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15969 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15970 fi
15971 if test "$wxUSE_NO_DEPS" = "no" ; then
15972 CFLAGS="-MMD ${CFLAGS}"
15973 CXXFLAGS="-MMD ${CXXFLAGS}"
15974 fi
15975 if test "$USE_WIN32" = 1 ; then
15976 # I'm not even really sure what this was ever added to solve,
15977 # but someone added it for mingw native builds, so I guess
15978 # they had a reason, right??
15979 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15980 fi
15981fi
15982
15983
15984CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15985CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15986if test "$wxUSE_OPTIMISE" = "no" ; then
15987 OPTIMISE=
15988else
15989 if test "$GCC" = yes ; then
15990 OPTIMISE="-O2"
15991 case "${host}" in
15992 i586-*-*|i686-*-* )
15993 OPTIMISE="${OPTIMISE} "
15994 ;;
15995 esac
15996 else
15997 OPTIMISE="-O"
15998 fi
15999fi
16000
16001if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16002 cat >> confdefs.h <<\EOF
16003#define WXWIN_COMPATIBILITY_2 1
16004EOF
16005
16006
16007 WXWIN_COMPATIBILITY_2_2="yes"
16008fi
16009
16010if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16011 cat >> confdefs.h <<\EOF
16012#define WXWIN_COMPATIBILITY_2_2 1
16013EOF
16014
16015fi
16016
16017
16018if test "$wxUSE_GUI" = "yes"; then
16019 cat >> confdefs.h <<\EOF
16020#define wxUSE_GUI 1
16021EOF
16022
16023
16024 else
16025 cat >> confdefs.h <<\EOF
16026#define wxUSE_NOGUI 1
16027EOF
16028
16029fi
16030
16031
16032if test "$wxUSE_UNIX" = "yes"; then
16033 cat >> confdefs.h <<\EOF
16034#define wxUSE_UNIX 1
16035EOF
16036
16037fi
16038
16039
16040if test "$wxUSE_APPLE_IEEE" = "yes"; then
16041 cat >> confdefs.h <<\EOF
16042#define wxUSE_APPLE_IEEE 1
16043EOF
16044
16045fi
16046
16047if test "$wxUSE_TIMER" = "yes"; then
16048 cat >> confdefs.h <<\EOF
16049#define wxUSE_TIMER 1
16050EOF
16051
16052fi
16053
16054if test "$wxUSE_WAVE" = "yes"; then
16055 cat >> confdefs.h <<\EOF
16056#define wxUSE_WAVE 1
16057EOF
16058
16059fi
16060
16061if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16062 cat >> confdefs.h <<\EOF
16063#define wxUSE_CMDLINE_PARSER 1
16064EOF
16065
16066fi
16067
16068if test "$wxUSE_STOPWATCH" = "yes"; then
16069 cat >> confdefs.h <<\EOF
16070#define wxUSE_STOPWATCH 1
16071EOF
16072
16073fi
16074
16075if test "$wxUSE_DATETIME" = "yes"; then
16076 cat >> confdefs.h <<\EOF
16077#define wxUSE_DATETIME 1
16078EOF
16079
16080fi
16081
16082if test "$wxUSE_TIMEDATE" = "yes"; then
16083 cat >> confdefs.h <<\EOF
16084#define wxUSE_TIMEDATE 1
16085EOF
16086
16087fi
16088
16089if test "$wxUSE_FILE" = "yes"; then
16090 cat >> confdefs.h <<\EOF
16091#define wxUSE_FILE 1
16092EOF
16093
16094fi
16095
16096if test "$wxUSE_FFILE" = "yes"; then
16097 cat >> confdefs.h <<\EOF
16098#define wxUSE_FFILE 1
16099EOF
16100
16101fi
16102
16103if test "$wxUSE_FILESYSTEM" = "yes"; then
16104 cat >> confdefs.h <<\EOF
16105#define wxUSE_FILESYSTEM 1
16106EOF
16107
16108fi
16109
16110if test "$wxUSE_FS_INET" = "yes"; then
16111 cat >> confdefs.h <<\EOF
16112#define wxUSE_FS_INET 1
16113EOF
16114
16115fi
16116
16117if test "$wxUSE_FS_ZIP" = "yes"; then
16118 cat >> confdefs.h <<\EOF
16119#define wxUSE_FS_ZIP 1
16120EOF
16121
16122fi
16123
16124if test "$wxUSE_ZIPSTREAM" = "yes"; then
16125 cat >> confdefs.h <<\EOF
16126#define wxUSE_ZIPSTREAM 1
16127EOF
16128
16129fi
16130
16131if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16132 cat >> confdefs.h <<\EOF
16133#define wxUSE_ON_FATAL_EXCEPTION 1
16134EOF
16135
16136fi
16137
16138if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16139 cat >> confdefs.h <<\EOF
16140#define wxUSE_SNGLINST_CHECKER 1
16141EOF
16142
16143fi
16144
16145if test "$wxUSE_BUSYINFO" = "yes"; then
16146 cat >> confdefs.h <<\EOF
16147#define wxUSE_BUSYINFO 1
16148EOF
16149
16150fi
16151
16152if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16153 cat >> confdefs.h <<\EOF
16154#define wxUSE_STD_IOSTREAM 1
16155EOF
16156
16157fi
16158
16159if test "$wxUSE_TEXTFILE" = "yes"; then
16160 if test "$wxUSE_FILE" != "yes"; then
16161 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
16162 else
16163 cat >> confdefs.h <<\EOF
16164#define wxUSE_TEXTFILE 1
16165EOF
16166
16167 fi
16168fi
16169
16170if test "$wxUSE_CONFIG" = "yes" ; then
16171 if test "$wxUSE_TEXTFILE" != "yes"; then
16172 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
16173 else
16174 cat >> confdefs.h <<\EOF
16175#define wxUSE_CONFIG 1
16176EOF
16177
16178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16179 fi
16180fi
16181
16182if test "$wxUSE_INTL" = "yes" ; then
16183 if test "$wxUSE_FILE" != "yes"; then
16184 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16185 else
16186 cat >> confdefs.h <<\EOF
16187#define wxUSE_INTL 1
16188EOF
16189
16190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16191 GUIDIST="$GUIDIST INTL_DIST"
16192 fi
16193fi
16194
16195if test "$wxUSE_LOG" = "yes"; then
16196 cat >> confdefs.h <<\EOF
16197#define wxUSE_LOG 1
16198EOF
16199
16200
16201 if test "$wxUSE_LOGGUI" = "yes"; then
16202 cat >> confdefs.h <<\EOF
16203#define wxUSE_LOGGUI 1
16204EOF
16205
16206 fi
16207
16208 if test "$wxUSE_LOGWINDOW" = "yes"; then
16209 cat >> confdefs.h <<\EOF
16210#define wxUSE_LOGWINDOW 1
16211EOF
16212
16213 fi
16214fi
16215
16216if test "$wxUSE_LONGLONG" = "yes"; then
16217 cat >> confdefs.h <<\EOF
16218#define wxUSE_LONGLONG 1
16219EOF
16220
16221fi
16222
16223if test "$wxUSE_GEOMETRY" = "yes"; then
16224 cat >> confdefs.h <<\EOF
16225#define wxUSE_GEOMETRY 1
16226EOF
16227
16228fi
16229
16230if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16231 cat >> confdefs.h <<\EOF
16232#define wxUSE_DIALUP_MANAGER 1
16233EOF
16234
16235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16236fi
16237
16238if test "$wxUSE_STREAMS" = "yes" ; then
16239 cat >> confdefs.h <<\EOF
16240#define wxUSE_STREAMS 1
16241EOF
16242
16243fi
16244
16245
16246if test "$wxUSE_DATETIME" = "yes"; then
16247 for ac_func in strptime
16248do
16249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16250echo "configure:16251: checking for $ac_func" >&5
16251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16252 echo $ac_n "(cached) $ac_c" 1>&6
16253else
16254 cat > conftest.$ac_ext <<EOF
16255#line 16256 "configure"
16256#include "confdefs.h"
16257/* System header to define __stub macros and hopefully few prototypes,
16258 which can conflict with char $ac_func(); below. */
16259#include <assert.h>
16260/* Override any gcc2 internal prototype to avoid an error. */
16261/* We use char because int might match the return type of a gcc2
16262 builtin and then its argument prototype would still apply. */
16263char $ac_func();
16264
16265int main() {
16266
16267/* The GNU C library defines this for functions which it implements
16268 to always fail with ENOSYS. Some functions are actually named
16269 something starting with __ and the normal name is an alias. */
16270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16271choke me
16272#else
16273$ac_func();
16274#endif
16275
16276; return 0; }
16277EOF
16278if { (eval echo configure:16279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16279 rm -rf conftest*
16280 eval "ac_cv_func_$ac_func=yes"
16281else
16282 echo "configure: failed program was:" >&5
16283 cat conftest.$ac_ext >&5
16284 rm -rf conftest*
16285 eval "ac_cv_func_$ac_func=no"
16286fi
16287rm -f conftest*
16288fi
16289
16290if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16291 echo "$ac_t""yes" 1>&6
16292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16293 cat >> confdefs.h <<EOF
16294#define $ac_tr_func 1
16295EOF
16296
16297else
16298 echo "$ac_t""no" 1>&6
16299fi
16300done
16301
16302
16303 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16304echo "configure:16305: checking for timezone variable in <time.h>" >&5
16305if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16307else
16308
16309 cat > conftest.$ac_ext <<EOF
16310#line 16311 "configure"
16311#include "confdefs.h"
16312
16313 #include <time.h>
16314
16315int main() {
16316
16317 int tz;
16318 tz = timezone;
16319
16320; return 0; }
16321EOF
16322if { (eval echo configure:16323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16323 rm -rf conftest*
16324
16325 wx_cv_var_timezone=timezone
16326
16327else
16328 echo "configure: failed program was:" >&5
16329 cat conftest.$ac_ext >&5
16330 rm -rf conftest*
16331
16332 cat > conftest.$ac_ext <<EOF
16333#line 16334 "configure"
16334#include "confdefs.h"
16335
16336 #include <time.h>
16337
16338int main() {
16339
16340 int tz;
16341 tz = _timezone;
16342
16343; return 0; }
16344EOF
16345if { (eval echo configure:16346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16346 rm -rf conftest*
16347
16348 wx_cv_var_timezone=_timezone
16349
16350else
16351 echo "configure: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 rm -rf conftest*
16354
16355 cat > conftest.$ac_ext <<EOF
16356#line 16357 "configure"
16357#include "confdefs.h"
16358
16359 #include <time.h>
16360
16361int main() {
16362
16363 int tz;
16364 tz = __timezone;
16365
16366; return 0; }
16367EOF
16368if { (eval echo configure:16369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16369 rm -rf conftest*
16370
16371 wx_cv_var_timezone=__timezone
16372
16373else
16374 echo "configure: failed program was:" >&5
16375 cat conftest.$ac_ext >&5
16376 rm -rf conftest*
16377 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16378
16379fi
16380rm -f conftest*
16381
16382
16383fi
16384rm -f conftest*
16385
16386
16387fi
16388rm -f conftest*
16389
16390
16391fi
16392
16393echo "$ac_t""$wx_cv_var_timezone" 1>&6
16394
16395 cat >> confdefs.h <<EOF
16396#define WX_TIMEZONE $wx_cv_var_timezone
16397EOF
16398
16399
16400 for ac_func in localtime
16401do
16402echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16403echo "configure:16404: checking for $ac_func" >&5
16404if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16405 echo $ac_n "(cached) $ac_c" 1>&6
16406else
16407 cat > conftest.$ac_ext <<EOF
16408#line 16409 "configure"
16409#include "confdefs.h"
16410/* System header to define __stub macros and hopefully few prototypes,
16411 which can conflict with char $ac_func(); below. */
16412#include <assert.h>
16413/* Override any gcc2 internal prototype to avoid an error. */
16414/* We use char because int might match the return type of a gcc2
16415 builtin and then its argument prototype would still apply. */
16416char $ac_func();
16417
16418int main() {
16419
16420/* The GNU C library defines this for functions which it implements
16421 to always fail with ENOSYS. Some functions are actually named
16422 something starting with __ and the normal name is an alias. */
16423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16424choke me
16425#else
16426$ac_func();
16427#endif
16428
16429; return 0; }
16430EOF
16431if { (eval echo configure:16432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16432 rm -rf conftest*
16433 eval "ac_cv_func_$ac_func=yes"
16434else
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 rm -rf conftest*
16438 eval "ac_cv_func_$ac_func=no"
16439fi
16440rm -f conftest*
16441fi
16442
16443if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16444 echo "$ac_t""yes" 1>&6
16445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16446 cat >> confdefs.h <<EOF
16447#define $ac_tr_func 1
16448EOF
16449
16450else
16451 echo "$ac_t""no" 1>&6
16452fi
16453done
16454
16455
16456 if test "$ac_cv_func_localtime" = "yes"; then
16457 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16458echo "configure:16459: checking for tm_gmtoff in struct tm" >&5
16459if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16460 echo $ac_n "(cached) $ac_c" 1>&6
16461else
16462
16463 cat > conftest.$ac_ext <<EOF
16464#line 16465 "configure"
16465#include "confdefs.h"
16466
16467 #include <time.h>
16468
16469int main() {
16470
16471 struct tm tm;
16472 tm.tm_gmtoff++;
16473
16474; return 0; }
16475EOF
16476if { (eval echo configure:16477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16477 rm -rf conftest*
16478
16479 wx_cv_struct_tm_has_gmtoff=yes
16480
16481else
16482 echo "configure: failed program was:" >&5
16483 cat conftest.$ac_ext >&5
16484 rm -rf conftest*
16485 wx_cv_struct_tm_has_gmtoff=no
16486
16487fi
16488rm -f conftest*
16489
16490fi
16491
16492echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16493 fi
16494
16495 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16496 cat >> confdefs.h <<\EOF
16497#define WX_GMTOFF_IN_TM 1
16498EOF
16499
16500 fi
16501
16502 for ac_func in gettimeofday ftime
16503do
16504echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16505echo "configure:16506: checking for $ac_func" >&5
16506if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16507 echo $ac_n "(cached) $ac_c" 1>&6
16508else
16509 cat > conftest.$ac_ext <<EOF
16510#line 16511 "configure"
16511#include "confdefs.h"
16512/* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func(); below. */
16514#include <assert.h>
16515/* Override any gcc2 internal prototype to avoid an error. */
16516/* We use char because int might match the return type of a gcc2
16517 builtin and then its argument prototype would still apply. */
16518char $ac_func();
16519
16520int main() {
16521
16522/* The GNU C library defines this for functions which it implements
16523 to always fail with ENOSYS. Some functions are actually named
16524 something starting with __ and the normal name is an alias. */
16525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16526choke me
16527#else
16528$ac_func();
16529#endif
16530
16531; return 0; }
16532EOF
16533if { (eval echo configure:16534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16534 rm -rf conftest*
16535 eval "ac_cv_func_$ac_func=yes"
16536else
16537 echo "configure: failed program was:" >&5
16538 cat conftest.$ac_ext >&5
16539 rm -rf conftest*
16540 eval "ac_cv_func_$ac_func=no"
16541fi
16542rm -f conftest*
16543fi
16544
16545if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16546 echo "$ac_t""yes" 1>&6
16547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16548 cat >> confdefs.h <<EOF
16549#define $ac_tr_func 1
16550EOF
16551 break
16552else
16553 echo "$ac_t""no" 1>&6
16554fi
16555done
16556
16557
16558 if test "$ac_cv_func_gettimeofday" = "yes"; then
16559 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16560echo "configure:16561: checking whether gettimeofday takes two arguments" >&5
16561if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16562 echo $ac_n "(cached) $ac_c" 1>&6
16563else
16564
16565
16566 ac_ext=C
16567# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16568ac_cpp='$CXXCPP $CPPFLAGS'
16569ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16570ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16571cross_compiling=$ac_cv_prog_cxx_cross
16572
16573
16574 cat > conftest.$ac_ext <<EOF
16575#line 16576 "configure"
16576#include "confdefs.h"
16577
16578 #include <sys/time.h>
16579 #include <unistd.h>
16580
16581int main() {
16582
16583 struct timeval tv;
16584 gettimeofday(&tv, NULL);
16585
16586; return 0; }
16587EOF
16588if { (eval echo configure:16589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16589 rm -rf conftest*
16590 wx_cv_func_gettimeofday_has_2_args=yes
16591else
16592 echo "configure: failed program was:" >&5
16593 cat conftest.$ac_ext >&5
16594 rm -rf conftest*
16595 cat > conftest.$ac_ext <<EOF
16596#line 16597 "configure"
16597#include "confdefs.h"
16598
16599 #include <sys/time.h>
16600 #include <unistd.h>
16601
16602int main() {
16603
16604 struct timeval tv;
16605 gettimeofday(&tv);
16606
16607; return 0; }
16608EOF
16609if { (eval echo configure:16610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16610 rm -rf conftest*
16611 wx_cv_func_gettimeofday_has_2_args=no
16612else
16613 echo "configure: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16615 rm -rf conftest*
16616
16617 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16618 wx_cv_func_gettimeofday_has_2_args=unknown
16619
16620
16621fi
16622rm -f conftest*
16623
16624fi
16625rm -f conftest*
16626 ac_ext=c
16627# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16628ac_cpp='$CPP $CPPFLAGS'
16629ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16630ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16631cross_compiling=$ac_cv_prog_cc_cross
16632
16633
16634fi
16635
16636echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16637
16638 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16639 cat >> confdefs.h <<\EOF
16640#define WX_GETTIMEOFDAY_NO_TZ 1
16641EOF
16642
16643 fi
16644 fi
16645
16646 cat >> confdefs.h <<\EOF
16647#define wxUSE_TIMEDATE 1
16648EOF
16649
16650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16651fi
16652
16653
16654if test "$TOOLKIT" != "MSW"; then
16655
16656 if test "$wxUSE_SOCKETS" = "yes"; then
16657 echo $ac_n "checking for socket""... $ac_c" 1>&6
16658echo "configure:16659: checking for socket" >&5
16659if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16660 echo $ac_n "(cached) $ac_c" 1>&6
16661else
16662 cat > conftest.$ac_ext <<EOF
16663#line 16664 "configure"
16664#include "confdefs.h"
16665/* System header to define __stub macros and hopefully few prototypes,
16666 which can conflict with char socket(); below. */
16667#include <assert.h>
16668/* Override any gcc2 internal prototype to avoid an error. */
16669/* We use char because int might match the return type of a gcc2
16670 builtin and then its argument prototype would still apply. */
16671char socket();
16672
16673int main() {
16674
16675/* The GNU C library defines this for functions which it implements
16676 to always fail with ENOSYS. Some functions are actually named
16677 something starting with __ and the normal name is an alias. */
16678#if defined (__stub_socket) || defined (__stub___socket)
16679choke me
16680#else
16681socket();
16682#endif
16683
16684; return 0; }
16685EOF
16686if { (eval echo configure:16687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16687 rm -rf conftest*
16688 eval "ac_cv_func_socket=yes"
16689else
16690 echo "configure: failed program was:" >&5
16691 cat conftest.$ac_ext >&5
16692 rm -rf conftest*
16693 eval "ac_cv_func_socket=no"
16694fi
16695rm -f conftest*
16696fi
16697
16698if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16699 echo "$ac_t""yes" 1>&6
16700 :
16701else
16702 echo "$ac_t""no" 1>&6
16703echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16704echo "configure:16705: checking for socket in -lsocket" >&5
16705ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16706if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16707 echo $ac_n "(cached) $ac_c" 1>&6
16708else
16709 ac_save_LIBS="$LIBS"
16710LIBS="-lsocket $LIBS"
16711cat > conftest.$ac_ext <<EOF
16712#line 16713 "configure"
16713#include "confdefs.h"
16714/* Override any gcc2 internal prototype to avoid an error. */
16715/* We use char because int might match the return type of a gcc2
16716 builtin and then its argument prototype would still apply. */
16717char socket();
16718
16719int main() {
16720socket()
16721; return 0; }
16722EOF
16723if { (eval echo configure:16724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16724 rm -rf conftest*
16725 eval "ac_cv_lib_$ac_lib_var=yes"
16726else
16727 echo "configure: failed program was:" >&5
16728 cat conftest.$ac_ext >&5
16729 rm -rf conftest*
16730 eval "ac_cv_lib_$ac_lib_var=no"
16731fi
16732rm -f conftest*
16733LIBS="$ac_save_LIBS"
16734
16735fi
16736if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16737 echo "$ac_t""yes" 1>&6
16738 INET_LINK="$INET_LINK -lsocket"
16739else
16740 echo "$ac_t""no" 1>&6
16741
16742 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16743 wxUSE_SOCKETS=no
16744
16745
16746fi
16747
16748
16749fi
16750
16751 fi
16752
16753
16754 if test "$wxUSE_SOCKETS" = "yes" ; then
16755 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16756echo "configure:16757: checking what is the type of the third argument of getsockname" >&5
16757if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16758 echo $ac_n "(cached) $ac_c" 1>&6
16759else
16760
16761
16762 ac_ext=C
16763# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16764ac_cpp='$CXXCPP $CPPFLAGS'
16765ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16766ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16767cross_compiling=$ac_cv_prog_cxx_cross
16768
16769
16770 cat > conftest.$ac_ext <<EOF
16771#line 16772 "configure"
16772#include "confdefs.h"
16773
16774 #include <sys/types.h>
16775 #include <sys/socket.h>
16776
16777int main() {
16778
16779 socklen_t len;
16780 getsockname(0, 0, &len);
16781
16782; return 0; }
16783EOF
16784if { (eval echo configure:16785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16785 rm -rf conftest*
16786 wx_cv_type_getsockname3=socklen_t
16787else
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791 cat > conftest.$ac_ext <<EOF
16792#line 16793 "configure"
16793#include "confdefs.h"
16794
16795 #include <sys/types.h>
16796 #include <sys/socket.h>
16797
16798int main() {
16799
16800 size_t len;
16801 getsockname(0, 0, &len);
16802
16803; return 0; }
16804EOF
16805if { (eval echo configure:16806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16806 rm -rf conftest*
16807 wx_cv_type_getsockname3=size_t
16808else
16809 echo "configure: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 rm -rf conftest*
16812 cat > conftest.$ac_ext <<EOF
16813#line 16814 "configure"
16814#include "confdefs.h"
16815
16816 #include <sys/types.h>
16817 #include <sys/socket.h>
16818
16819int main() {
16820
16821 int len;
16822 getsockname(0, 0, &len);
16823
16824; return 0; }
16825EOF
16826if { (eval echo configure:16827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16827 rm -rf conftest*
16828 wx_cv_type_getsockname3=int
16829else
16830 echo "configure: failed program was:" >&5
16831 cat conftest.$ac_ext >&5
16832 rm -rf conftest*
16833 wx_cv_type_getsockname3=unknown
16834
16835fi
16836rm -f conftest*
16837
16838fi
16839rm -f conftest*
16840
16841fi
16842rm -f conftest*
16843
16844 ac_ext=c
16845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16846ac_cpp='$CPP $CPPFLAGS'
16847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16849cross_compiling=$ac_cv_prog_cc_cross
16850
16851
16852fi
16853
16854echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16855
16856 if test "$wx_cv_type_getsockname3" = "unknown"; then
16857 wxUSE_SOCKETS=no
16858 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16859 else
16860 cat >> confdefs.h <<EOF
16861#define SOCKLEN_T $wx_cv_type_getsockname3
16862EOF
16863
16864 fi
16865 fi
16866fi
16867
16868if test "$wxUSE_SOCKETS" = "yes" ; then
16869 cat >> confdefs.h <<\EOF
16870#define wxUSE_SOCKETS 1
16871EOF
16872
16873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16874fi
16875
16876
16877if test "$wxUSE_GUI" = "yes"; then
16878
16879 if test "$TOOLKIT" != "MSW"; then
16880 if test "$wxUSE_JOYSTICK" = "yes"; then
16881 for ac_hdr in linux/joystick.h
16882do
16883ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16884echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16885echo "configure:16886: checking for $ac_hdr" >&5
16886if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16888else
16889 cat > conftest.$ac_ext <<EOF
16890#line 16891 "configure"
16891#include "confdefs.h"
16892#include <$ac_hdr>
16893EOF
16894ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16895{ (eval echo configure:16896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16896ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16897if test -z "$ac_err"; then
16898 rm -rf conftest*
16899 eval "ac_cv_header_$ac_safe=yes"
16900else
16901 echo "$ac_err" >&5
16902 echo "configure: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16904 rm -rf conftest*
16905 eval "ac_cv_header_$ac_safe=no"
16906fi
16907rm -f conftest*
16908fi
16909if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16910 echo "$ac_t""yes" 1>&6
16911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16912 cat >> confdefs.h <<EOF
16913#define $ac_tr_hdr 1
16914EOF
16915
16916else
16917 echo "$ac_t""no" 1>&6
16918fi
16919done
16920
16921 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16922 wxUSE_JOYSTICK=no
16923 echo "configure: warning: Joystick not supported by this system" 1>&2
16924 fi
16925 fi
16926 fi
16927
16928 if test "$wxUSE_JOYSTICK" = "yes"; then
16929 cat >> confdefs.h <<\EOF
16930#define wxUSE_JOYSTICK 1
16931EOF
16932
16933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16934 fi
16935fi
16936
16937
16938if test "$TOOLKIT" != "MSW"; then
16939
16940 HAVE_DL_FUNCS=0
16941 HAVE_SHL_FUNCS=0
16942 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16943 if test "$USE_DARWIN" = 1; then
16944 HAVE_DL_FUNCS=1
16945 else
16946 for ac_func in dlopen
16947do
16948echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16949echo "configure:16950: checking for $ac_func" >&5
16950if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16951 echo $ac_n "(cached) $ac_c" 1>&6
16952else
16953 cat > conftest.$ac_ext <<EOF
16954#line 16955 "configure"
16955#include "confdefs.h"
16956/* System header to define __stub macros and hopefully few prototypes,
16957 which can conflict with char $ac_func(); below. */
16958#include <assert.h>
16959/* Override any gcc2 internal prototype to avoid an error. */
16960/* We use char because int might match the return type of a gcc2
16961 builtin and then its argument prototype would still apply. */
16962char $ac_func();
16963
16964int main() {
16965
16966/* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16970choke me
16971#else
16972$ac_func();
16973#endif
16974
16975; return 0; }
16976EOF
16977if { (eval echo configure:16978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16978 rm -rf conftest*
16979 eval "ac_cv_func_$ac_func=yes"
16980else
16981 echo "configure: failed program was:" >&5
16982 cat conftest.$ac_ext >&5
16983 rm -rf conftest*
16984 eval "ac_cv_func_$ac_func=no"
16985fi
16986rm -f conftest*
16987fi
16988
16989if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16990 echo "$ac_t""yes" 1>&6
16991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16992 cat >> confdefs.h <<EOF
16993#define $ac_tr_func 1
16994EOF
16995
16996 cat >> confdefs.h <<\EOF
16997#define HAVE_DLOPEN 1
16998EOF
16999
17000 HAVE_DL_FUNCS=1
17001
17002else
17003 echo "$ac_t""no" 1>&6
17004echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17005echo "configure:17006: checking for dlopen in -ldl" >&5
17006ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17007if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17008 echo $ac_n "(cached) $ac_c" 1>&6
17009else
17010 ac_save_LIBS="$LIBS"
17011LIBS="-ldl $LIBS"
17012cat > conftest.$ac_ext <<EOF
17013#line 17014 "configure"
17014#include "confdefs.h"
17015/* Override any gcc2 internal prototype to avoid an error. */
17016/* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17018char dlopen();
17019
17020int main() {
17021dlopen()
17022; return 0; }
17023EOF
17024if { (eval echo configure:17025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17025 rm -rf conftest*
17026 eval "ac_cv_lib_$ac_lib_var=yes"
17027else
17028 echo "configure: failed program was:" >&5
17029 cat conftest.$ac_ext >&5
17030 rm -rf conftest*
17031 eval "ac_cv_lib_$ac_lib_var=no"
17032fi
17033rm -f conftest*
17034LIBS="$ac_save_LIBS"
17035
17036fi
17037if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17038 echo "$ac_t""yes" 1>&6
17039
17040 cat >> confdefs.h <<\EOF
17041#define HAVE_DLOPEN 1
17042EOF
17043
17044 HAVE_DL_FUNCS=1
17045 LIBS="$LIBS -ldl"
17046
17047else
17048 echo "$ac_t""no" 1>&6
17049
17050 for ac_func in shl_load
17051do
17052echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17053echo "configure:17054: checking for $ac_func" >&5
17054if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17055 echo $ac_n "(cached) $ac_c" 1>&6
17056else
17057 cat > conftest.$ac_ext <<EOF
17058#line 17059 "configure"
17059#include "confdefs.h"
17060/* System header to define __stub macros and hopefully few prototypes,
17061 which can conflict with char $ac_func(); below. */
17062#include <assert.h>
17063/* Override any gcc2 internal prototype to avoid an error. */
17064/* We use char because int might match the return type of a gcc2
17065 builtin and then its argument prototype would still apply. */
17066char $ac_func();
17067
17068int main() {
17069
17070/* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17074choke me
17075#else
17076$ac_func();
17077#endif
17078
17079; return 0; }
17080EOF
17081if { (eval echo configure:17082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17082 rm -rf conftest*
17083 eval "ac_cv_func_$ac_func=yes"
17084else
17085 echo "configure: failed program was:" >&5
17086 cat conftest.$ac_ext >&5
17087 rm -rf conftest*
17088 eval "ac_cv_func_$ac_func=no"
17089fi
17090rm -f conftest*
17091fi
17092
17093if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17094 echo "$ac_t""yes" 1>&6
17095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17096 cat >> confdefs.h <<EOF
17097#define $ac_tr_func 1
17098EOF
17099
17100 cat >> confdefs.h <<\EOF
17101#define HAVE_SHL_LOAD 1
17102EOF
17103
17104 HAVE_SHL_FUNCS=1
17105
17106else
17107 echo "$ac_t""no" 1>&6
17108echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17109echo "configure:17110: checking for dld in -lshl_load" >&5
17110ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17112 echo $ac_n "(cached) $ac_c" 1>&6
17113else
17114 ac_save_LIBS="$LIBS"
17115LIBS="-lshl_load $LIBS"
17116cat > conftest.$ac_ext <<EOF
17117#line 17118 "configure"
17118#include "confdefs.h"
17119/* Override any gcc2 internal prototype to avoid an error. */
17120/* We use char because int might match the return type of a gcc2
17121 builtin and then its argument prototype would still apply. */
17122char dld();
17123
17124int main() {
17125dld()
17126; return 0; }
17127EOF
17128if { (eval echo configure:17129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17129 rm -rf conftest*
17130 eval "ac_cv_lib_$ac_lib_var=yes"
17131else
17132 echo "configure: failed program was:" >&5
17133 cat conftest.$ac_ext >&5
17134 rm -rf conftest*
17135 eval "ac_cv_lib_$ac_lib_var=no"
17136fi
17137rm -f conftest*
17138LIBS="$ac_save_LIBS"
17139
17140fi
17141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17142 echo "$ac_t""yes" 1>&6
17143
17144 HAVE_SHL_FUNCS=1
17145 LIBS="$LIBS -ldld"
17146
17147else
17148 echo "$ac_t""no" 1>&6
17149fi
17150
17151
17152fi
17153done
17154
17155
17156fi
17157
17158
17159fi
17160done
17161
17162
17163 if test "$HAVE_DL_FUNCS" = 1; then
17164 for ac_func in dlerror
17165do
17166echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17167echo "configure:17168: checking for $ac_func" >&5
17168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17169 echo $ac_n "(cached) $ac_c" 1>&6
17170else
17171 cat > conftest.$ac_ext <<EOF
17172#line 17173 "configure"
17173#include "confdefs.h"
17174/* System header to define __stub macros and hopefully few prototypes,
17175 which can conflict with char $ac_func(); below. */
17176#include <assert.h>
17177/* Override any gcc2 internal prototype to avoid an error. */
17178/* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17180char $ac_func();
17181
17182int main() {
17183
17184/* The GNU C library defines this for functions which it implements
17185 to always fail with ENOSYS. Some functions are actually named
17186 something starting with __ and the normal name is an alias. */
17187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17188choke me
17189#else
17190$ac_func();
17191#endif
17192
17193; return 0; }
17194EOF
17195if { (eval echo configure:17196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17196 rm -rf conftest*
17197 eval "ac_cv_func_$ac_func=yes"
17198else
17199 echo "configure: failed program was:" >&5
17200 cat conftest.$ac_ext >&5
17201 rm -rf conftest*
17202 eval "ac_cv_func_$ac_func=no"
17203fi
17204rm -f conftest*
17205fi
17206
17207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17208 echo "$ac_t""yes" 1>&6
17209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17210 cat >> confdefs.h <<EOF
17211#define $ac_tr_func 1
17212EOF
17213 cat >> confdefs.h <<\EOF
17214#define HAVE_DLERROR 1
17215EOF
17216
17217else
17218 echo "$ac_t""no" 1>&6
17219echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17220echo "configure:17221: checking for dlerror in -ldl" >&5
17221ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17223 echo $ac_n "(cached) $ac_c" 1>&6
17224else
17225 ac_save_LIBS="$LIBS"
17226LIBS="-ldl $LIBS"
17227cat > conftest.$ac_ext <<EOF
17228#line 17229 "configure"
17229#include "confdefs.h"
17230/* Override any gcc2 internal prototype to avoid an error. */
17231/* We use char because int might match the return type of a gcc2
17232 builtin and then its argument prototype would still apply. */
17233char dlerror();
17234
17235int main() {
17236dlerror()
17237; return 0; }
17238EOF
17239if { (eval echo configure:17240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17240 rm -rf conftest*
17241 eval "ac_cv_lib_$ac_lib_var=yes"
17242else
17243 echo "configure: failed program was:" >&5
17244 cat conftest.$ac_ext >&5
17245 rm -rf conftest*
17246 eval "ac_cv_lib_$ac_lib_var=no"
17247fi
17248rm -f conftest*
17249LIBS="$ac_save_LIBS"
17250
17251fi
17252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17253 echo "$ac_t""yes" 1>&6
17254 cat >> confdefs.h <<\EOF
17255#define HAVE_DLERROR 1
17256EOF
17257
17258else
17259 echo "$ac_t""no" 1>&6
17260fi
17261
17262fi
17263done
17264
17265 fi
17266 fi
17267
17268 if test "$HAVE_DL_FUNCS" = 0; then
17269 if test "$HAVE_SHL_FUNCS" = 0; then
17270 if test "$USE_UNIX" = 1; then
17271 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17272 wxUSE_DYNLIB_CLASS=no
17273 else
17274 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17275 fi
17276 fi
17277 fi
17278 fi
17279fi
17280
17281if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17282 cat >> confdefs.h <<\EOF
17283#define wxUSE_DYNLIB_CLASS 1
17284EOF
17285
17286else
17287 wxUSE_ODBC=no
17288 wxUSE_SERIAL=no
17289fi
17290
17291
17292if test "$wxUSE_FONTMAP" = "yes" ; then
17293 cat >> confdefs.h <<\EOF
17294#define wxUSE_FONTMAP 1
17295EOF
17296
17297fi
17298
17299if test "$wxUSE_UNICODE" = "yes" ; then
17300 cat >> confdefs.h <<\EOF
17301#define wxUSE_UNICODE 1
17302EOF
17303
17304fi
17305
17306if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17307 cat >> confdefs.h <<\EOF
17308#define wxUSE_EXPERIMENTAL_PRINTF 1
17309EOF
17310
17311fi
17312
17313
17314if test "$wxUSE_SERIAL" = "yes" ; then
17315 cat >> confdefs.h <<\EOF
17316#define wxUSE_SERIAL 1
17317EOF
17318
17319fi
17320
17321
17322IODBC_C_SRC=""
17323if test "$wxUSE_ODBC" = "yes" ; then
17324 cat >> confdefs.h <<\EOF
17325#define wxUSE_ODBC 1
17326EOF
17327
17328 WXODBCFLAG="-D_IODBC_"
17329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17330fi
17331
17332
17333if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17334 cat >> confdefs.h <<\EOF
17335#define wxUSE_POSTSCRIPT 1
17336EOF
17337
17338fi
17339
17340cat >> confdefs.h <<\EOF
17341#define wxUSE_AFM_FOR_POSTSCRIPT 1
17342EOF
17343
17344
17345cat >> confdefs.h <<\EOF
17346#define wxUSE_NORMALIZED_PS_FONTS 1
17347EOF
17348
17349
17350
17351if test "$wxUSE_CONSTRAINTS" = "yes"; then
17352 cat >> confdefs.h <<\EOF
17353#define wxUSE_CONSTRAINTS 1
17354EOF
17355
17356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17357fi
17358
17359if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17360 if test "$wxUSE_UNIVERSAL" = "yes"; then
17361 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17362 wxUSE_MDI_ARCHITECTURE=no
17363 fi
17364
17365 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17366 cat >> confdefs.h <<\EOF
17367#define wxUSE_MDI_ARCHITECTURE 1
17368EOF
17369
17370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17371 fi
17372fi
17373
17374if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17375 cat >> confdefs.h <<\EOF
17376#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17377EOF
17378
17379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17380 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17382 fi
17383fi
17384
17385if test "$wxUSE_HELP" = "yes"; then
17386 cat >> confdefs.h <<\EOF
17387#define wxUSE_HELP 1
17388EOF
17389
17390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17391
17392 if test "$USE_WIN32" = 1; then
17393 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17394 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17395echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17396echo "configure:17397: checking for htmlhelp.h" >&5
17397if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17398 echo $ac_n "(cached) $ac_c" 1>&6
17399else
17400 cat > conftest.$ac_ext <<EOF
17401#line 17402 "configure"
17402#include "confdefs.h"
17403#include <htmlhelp.h>
17404EOF
17405ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17406{ (eval echo configure:17407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17407ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17408if test -z "$ac_err"; then
17409 rm -rf conftest*
17410 eval "ac_cv_header_$ac_safe=yes"
17411else
17412 echo "$ac_err" >&5
17413 echo "configure: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
17415 rm -rf conftest*
17416 eval "ac_cv_header_$ac_safe=no"
17417fi
17418rm -f conftest*
17419fi
17420if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17421 echo "$ac_t""yes" 1>&6
17422
17423 cat >> confdefs.h <<\EOF
17424#define wxUSE_MS_HTML_HELP 1
17425EOF
17426
17427
17428else
17429 echo "$ac_t""no" 1>&6
17430
17431 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17432 wxUSE_MS_HTML_HELP=no
17433
17434fi
17435
17436 fi
17437 fi
17438
17439 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17440 if test "$wxUSE_HTML" = "yes"; then
17441 cat >> confdefs.h <<\EOF
17442#define wxUSE_WXHTML_HELP 1
17443EOF
17444
17445 else
17446 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17447 wxUSE_WXHTML_HELP=no
17448 fi
17449 fi
17450fi
17451
17452if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17453 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17454 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17455 else
17456 cat >> confdefs.h <<\EOF
17457#define wxUSE_PRINTING_ARCHITECTURE 1
17458EOF
17459
17460 fi
17461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17462fi
17463
17464if test "$wxUSE_PROLOGIO" = "yes" ; then
17465 cat >> confdefs.h <<\EOF
17466#define wxUSE_PROLOGIO 1
17467EOF
17468
17469fi
17470
17471if test "$wxUSE_RESOURCES" = "yes" ; then
17472 cat >> confdefs.h <<\EOF
17473#define wxUSE_RESOURCES 1
17474EOF
17475
17476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17477fi
17478
17479if test "$wxUSE_X_RESOURCES" = "yes"; then
17480 cat >> confdefs.h <<\EOF
17481#define wxUSE_X_RESOURCES 1
17482EOF
17483
17484fi
17485
17486
17487if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17488 -o "$wxUSE_CLIPBOARD" = "yes" \
17489 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17490 for ac_hdr in ole2.h
17491do
17492ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17493echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17494echo "configure:17495: checking for $ac_hdr" >&5
17495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17496 echo $ac_n "(cached) $ac_c" 1>&6
17497else
17498 cat > conftest.$ac_ext <<EOF
17499#line 17500 "configure"
17500#include "confdefs.h"
17501#include <$ac_hdr>
17502EOF
17503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17504{ (eval echo configure:17505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17506if test -z "$ac_err"; then
17507 rm -rf conftest*
17508 eval "ac_cv_header_$ac_safe=yes"
17509else
17510 echo "$ac_err" >&5
17511 echo "configure: failed program was:" >&5
17512 cat conftest.$ac_ext >&5
17513 rm -rf conftest*
17514 eval "ac_cv_header_$ac_safe=no"
17515fi
17516rm -f conftest*
17517fi
17518if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17519 echo "$ac_t""yes" 1>&6
17520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17521 cat >> confdefs.h <<EOF
17522#define $ac_tr_hdr 1
17523EOF
17524
17525else
17526 echo "$ac_t""no" 1>&6
17527fi
17528done
17529
17530
17531 if test "$ac_cv_header_ole2_h" = "yes" ; then
17532 if test "$GCC" = yes ; then
17533 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17534 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17535 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17536 cat >> confdefs.h <<\EOF
17537#define wxUSE_OLE 1
17538EOF
17539
17540
17541 fi
17542
17543 cat >> confdefs.h <<\EOF
17544#define wxUSE_DATAOBJ 1
17545EOF
17546
17547 else
17548 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17549
17550 wxUSE_CLIPBOARD=no
17551 wxUSE_DRAG_AND_DROP=no
17552 wxUSE_DATAOBJ=no
17553 fi
17554
17555 if test "$wxUSE_METAFILE" = "yes"; then
17556 cat >> confdefs.h <<\EOF
17557#define wxUSE_METAFILE 1
17558EOF
17559
17560
17561 cat >> confdefs.h <<\EOF
17562#define wxUSE_ENH_METAFILE 1
17563EOF
17564
17565 fi
17566fi
17567
17568if test "$wxUSE_IPC" = "yes"; then
17569 if test "$wxUSE_SOCKETS" != "yes"; then
17570 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17571 fi
17572
17573 cat >> confdefs.h <<\EOF
17574#define wxUSE_IPC 1
17575EOF
17576
17577fi
17578
17579if test "$wxUSE_CLIPBOARD" = "yes"; then
17580 cat >> confdefs.h <<\EOF
17581#define wxUSE_CLIPBOARD 1
17582EOF
17583
17584
17585 cat >> confdefs.h <<\EOF
17586#define wxUSE_DATAOBJ 1
17587EOF
17588
17589fi
17590
17591if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17592 if test "$wxUSE_GTK" = 1; then
17593 if test "$WXGTK12" != 1; then
17594 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17595 wxUSE_DRAG_AND_DROP=no
17596 fi
17597 fi
17598
17599 if test "$wxUSE_MOTIF" = 1; then
17600 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17601 wxUSE_DRAG_AND_DROP=no
17602 fi
17603
17604 if test "$wxUSE_MAC" = 1; then
17605 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17606 wxUSE_DRAG_AND_DROP=no
17607 fi
17608
17609 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17610 cat >> confdefs.h <<\EOF
17611#define wxUSE_DRAG_AND_DROP 1
17612EOF
17613
17614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17615 fi
17616
17617fi
17618
17619if test "$wxUSE_SPLINES" = "yes" ; then
17620 cat >> confdefs.h <<\EOF
17621#define wxUSE_SPLINES 1
17622EOF
17623
17624fi
17625
17626
17627USES_CONTROLS=0
17628if test "$wxUSE_CONTROLS" = "yes"; then
17629 USES_CONTROLS=1
17630fi
17631
17632if test "$wxUSE_ACCEL" = "yes"; then
17633 cat >> confdefs.h <<\EOF
17634#define wxUSE_ACCEL 1
17635EOF
17636
17637 USES_CONTROLS=1
17638fi
17639
17640if test "$wxUSE_BUTTON" = "yes"; then
17641 cat >> confdefs.h <<\EOF
17642#define wxUSE_BUTTON 1
17643EOF
17644
17645 USES_CONTROLS=1
17646fi
17647
17648if test "$wxUSE_BMPBUTTON" = "yes"; then
17649 cat >> confdefs.h <<\EOF
17650#define wxUSE_BMPBUTTON 1
17651EOF
17652
17653 USES_CONTROLS=1
17654fi
17655
17656if test "$wxUSE_CALCTRL" = "yes"; then
17657 cat >> confdefs.h <<\EOF
17658#define wxUSE_CALENDARCTRL 1
17659EOF
17660
17661 USES_CONTROLS=1
17662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17663fi
17664
17665if test "$wxUSE_CARET" = "yes"; then
17666 cat >> confdefs.h <<\EOF
17667#define wxUSE_CARET 1
17668EOF
17669
17670 USES_CONTROLS=1
17671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17672fi
17673
17674if test "$wxUSE_COMBOBOX" = "yes"; then
17675 cat >> confdefs.h <<\EOF
17676#define wxUSE_COMBOBOX 1
17677EOF
17678
17679 USES_CONTROLS=1
17680fi
17681
17682if test "$wxUSE_CHOICE" = "yes"; then
17683 cat >> confdefs.h <<\EOF
17684#define wxUSE_CHOICE 1
17685EOF
17686
17687 USES_CONTROLS=1
17688fi
17689
17690if test "$wxUSE_CHECKBOX" = "yes"; then
17691 cat >> confdefs.h <<\EOF
17692#define wxUSE_CHECKBOX 1
17693EOF
17694
17695 USES_CONTROLS=1
17696fi
17697
17698if test "$wxUSE_CHECKLST" = "yes"; then
17699 cat >> confdefs.h <<\EOF
17700#define wxUSE_CHECKLISTBOX 1
17701EOF
17702
17703 USES_CONTROLS=1
17704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17705fi
17706
17707if test "$wxUSE_GAUGE" = "yes"; then
17708 cat >> confdefs.h <<\EOF
17709#define wxUSE_GAUGE 1
17710EOF
17711
17712 USES_CONTROLS=1
17713fi
17714
17715if test "$wxUSE_NEW_GRID" = "yes"; then
17716 wxUSE_GRID="yes"
17717 cat >> confdefs.h <<\EOF
17718#define wxUSE_NEW_GRID 1
17719EOF
17720
17721 USES_CONTROLS=1
17722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17723fi
17724
17725if test "$wxUSE_GRID" = "yes"; then
17726 cat >> confdefs.h <<\EOF
17727#define wxUSE_GRID 1
17728EOF
17729
17730 USES_CONTROLS=1
17731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17732fi
17733
17734if test "$wxUSE_IMAGLIST" = "yes"; then
17735 cat >> confdefs.h <<\EOF
17736#define wxUSE_IMAGLIST 1
17737EOF
17738
17739fi
17740
17741if test "$wxUSE_LISTBOX" = "yes"; then
17742 cat >> confdefs.h <<\EOF
17743#define wxUSE_LISTBOX 1
17744EOF
17745
17746 USES_CONTROLS=1
17747fi
17748
17749if test "$wxUSE_LISTCTRL" = "yes"; then
17750 if test "$wxUSE_IMAGLIST" = "yes"; then
17751 cat >> confdefs.h <<\EOF
17752#define wxUSE_LISTCTRL 1
17753EOF
17754
17755 USES_CONTROLS=1
17756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17757 else
17758 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17759 fi
17760fi
17761
17762if test "$wxUSE_NOTEBOOK" = "yes"; then
17763 cat >> confdefs.h <<\EOF
17764#define wxUSE_NOTEBOOK 1
17765EOF
17766
17767 USES_CONTROLS=1
17768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17769fi
17770
17771if test "$wxUSE_PROPSHEET" = "yes"; then
17772 cat >> confdefs.h <<\EOF
17773#define wxUSE_PROPSHEET 1
17774EOF
17775
17776 USES_CONTROLS=1
17777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17778fi
17779
17780if test "$wxUSE_RADIOBOX" = "yes"; then
17781 cat >> confdefs.h <<\EOF
17782#define wxUSE_RADIOBOX 1
17783EOF
17784
17785 USES_CONTROLS=1
17786fi
17787
17788if test "$wxUSE_RADIOBTN" = "yes"; then
17789 cat >> confdefs.h <<\EOF
17790#define wxUSE_RADIOBTN 1
17791EOF
17792
17793 USES_CONTROLS=1
17794fi
17795
17796if test "$wxUSE_SASH" = "yes"; then
17797 cat >> confdefs.h <<\EOF
17798#define wxUSE_SASH 1
17799EOF
17800
17801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17802fi
17803
17804if test "$wxUSE_SCROLLBAR" = "yes"; then
17805 cat >> confdefs.h <<\EOF
17806#define wxUSE_SCROLLBAR 1
17807EOF
17808
17809 USES_CONTROLS=1
17810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17811fi
17812
17813if test "$wxUSE_SLIDER" = "yes"; then
17814 cat >> confdefs.h <<\EOF
17815#define wxUSE_SLIDER 1
17816EOF
17817
17818 USES_CONTROLS=1
17819fi
17820
17821if test "$wxUSE_SPINBTN" = "yes"; then
17822 cat >> confdefs.h <<\EOF
17823#define wxUSE_SPINBTN 1
17824EOF
17825
17826 USES_CONTROLS=1
17827fi
17828
17829if test "$wxUSE_SPINCTRL" = "yes"; then
17830 cat >> confdefs.h <<\EOF
17831#define wxUSE_SPINCTRL 1
17832EOF
17833
17834 USES_CONTROLS=1
17835fi
17836
17837if test "$wxUSE_SPLITTER" = "yes"; then
17838 cat >> confdefs.h <<\EOF
17839#define wxUSE_SPLITTER 1
17840EOF
17841
17842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17843fi
17844
17845if test "$wxUSE_STATBMP" = "yes"; then
17846 cat >> confdefs.h <<\EOF
17847#define wxUSE_STATBMP 1
17848EOF
17849
17850 USES_CONTROLS=1
17851fi
17852
17853if test "$wxUSE_STATBOX" = "yes"; then
17854 cat >> confdefs.h <<\EOF
17855#define wxUSE_STATBOX 1
17856EOF
17857
17858 USES_CONTROLS=1
17859fi
17860
17861if test "$wxUSE_STATTEXT" = "yes"; then
17862 cat >> confdefs.h <<\EOF
17863#define wxUSE_STATTEXT 1
17864EOF
17865
17866 USES_CONTROLS=1
17867fi
17868
17869if test "$wxUSE_STATLINE" = "yes"; then
17870 if test "$wxUSE_WINE" = 1 ; then
17871 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17872 else
17873 cat >> confdefs.h <<\EOF
17874#define wxUSE_STATLINE 1
17875EOF
17876
17877 USES_CONTROLS=1
17878 fi
17879fi
17880
17881if test "$wxUSE_STATUSBAR" = "yes"; then
17882 cat >> confdefs.h <<\EOF
17883#define wxUSE_STATUSBAR 1
17884EOF
17885
17886 USES_CONTROLS=1
17887
17888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17889fi
17890
17891if test "$wxUSE_TABDIALOG" = "yes"; then
17892 cat >> confdefs.h <<\EOF
17893#define wxUSE_TAB_DIALOG 1
17894EOF
17895
17896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17897fi
17898
17899if test "$wxUSE_TEXTCTRL" = "yes"; then
17900 cat >> confdefs.h <<\EOF
17901#define wxUSE_TEXTCTRL 1
17902EOF
17903
17904 USES_CONTROLS=1
17905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17906fi
17907
17908if test "$wxUSE_TOGGLEBTN" = "yes"; then
17909 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17910 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
17911 wxUSE_TOGGLEBTN=no
17912 fi
17913
17914 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17915 cat >> confdefs.h <<\EOF
17916#define wxUSE_TOGGLEBTN 1
17917EOF
17918
17919 USES_CONTROLS=1
17920 fi
17921fi
17922
17923if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17924 cat >> confdefs.h <<\EOF
17925#define wxUSE_TOOLBAR_SIMPLE 1
17926EOF
17927
17928 wxUSE_TOOLBAR="yes"
17929 USES_CONTROLS=1
17930fi
17931
17932if test "$wxUSE_TOOLBAR" = "yes"; then
17933 cat >> confdefs.h <<\EOF
17934#define wxUSE_TOOLBAR 1
17935EOF
17936
17937 USES_CONTROLS=1
17938
17939 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17940 wxUSE_TOOLBAR_NATIVE="yes"
17941 fi
17942
17943 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17944 cat >> confdefs.h <<\EOF
17945#define wxUSE_TOOLBAR_NATIVE 1
17946EOF
17947
17948 USES_CONTROLS=1
17949 fi
17950
17951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17952fi
17953
17954if test "$wxUSE_TOOLTIPS" = "yes"; then
17955 if test "$wxUSE_MOTIF" = 1; then
17956 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17957 else
17958 if test "$wxUSE_WINE" = 1; then
17959 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17960 else
17961 cat >> confdefs.h <<\EOF
17962#define wxUSE_TOOLTIPS 1
17963EOF
17964
17965 fi
17966 fi
17967fi
17968
17969if test "$wxUSE_TREECTRL" = "yes"; then
17970 if test "$wxUSE_IMAGLIST" = "yes"; then
17971 cat >> confdefs.h <<\EOF
17972#define wxUSE_TREECTRL 1
17973EOF
17974
17975 USES_CONTROLS=1
17976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17977 else
17978 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17979 fi
17980fi
17981
17982if test "$wxUSE_POPUPWIN" = "yes"; then
17983 if test "$wxUSE_MAC" = 1; then
17984 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17985 else
17986 cat >> confdefs.h <<\EOF
17987#define wxUSE_POPUPWIN 1
17988EOF
17989
17990 USES_CONTROLS=1
17991 fi
17992fi
17993
17994if test "$USES_CONTROLS" = 1; then
17995 cat >> confdefs.h <<\EOF
17996#define wxUSE_CONTROLS 1
17997EOF
17998
17999fi
18000
18001
18002if test "$wxUSE_TREELAYOUT" = "yes"; then
18003 cat >> confdefs.h <<\EOF
18004#define wxUSE_TREELAYOUT 1
18005EOF
18006
18007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18008fi
18009
18010if test "$wxUSE_DRAGIMAGE" = "yes"; then
18011 cat >> confdefs.h <<\EOF
18012#define wxUSE_DRAGIMAGE 1
18013EOF
18014
18015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18016fi
18017
18018if test "$wxUSE_MENUS" = "yes"; then
18019 cat >> confdefs.h <<\EOF
18020#define wxUSE_MENUS 1
18021EOF
18022
18023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18024fi
18025
18026if test "$wxUSE_METAFILE" = "yes"; then
18027 cat >> confdefs.h <<\EOF
18028#define wxUSE_METAFILE 1
18029EOF
18030
18031fi
18032
18033if test "$wxUSE_MIMETYPE" = "yes"; then
18034 cat >> confdefs.h <<\EOF
18035#define wxUSE_MIMETYPE 1
18036EOF
18037
18038fi
18039
18040if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18041 cat >> confdefs.h <<\EOF
18042#define wxUSE_SYSTEM_OPTIONS 1
18043EOF
18044
18045fi
18046
18047if test "$wxUSE_MINIFRAME" = "yes"; then
18048 cat >> confdefs.h <<\EOF
18049#define wxUSE_MINIFRAME 1
18050EOF
18051
18052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18053fi
18054
18055if test "$wxUSE_HTML" = "yes"; then
18056 cat >> confdefs.h <<\EOF
18057#define wxUSE_HTML 1
18058EOF
18059
18060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18061fi
18062
18063if test "$wxUSE_VALIDATORS" = "yes"; then
18064 cat >> confdefs.h <<\EOF
18065#define wxUSE_VALIDATORS 1
18066EOF
18067
18068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18069fi
18070
18071if test "$wxUSE_PALETTE" = "yes" ; then
18072 cat >> confdefs.h <<\EOF
18073#define wxUSE_PALETTE 1
18074EOF
18075
18076fi
18077
18078if test "$wxUSE_IMAGE" = "yes" ; then
18079 cat >> confdefs.h <<\EOF
18080#define wxUSE_IMAGE 1
18081EOF
18082
18083fi
18084
18085if test "$wxUSE_GIF" = "yes" ; then
18086 cat >> confdefs.h <<\EOF
18087#define wxUSE_GIF 1
18088EOF
18089
18090fi
18091
18092if test "$wxUSE_PCX" = "yes" ; then
18093 cat >> confdefs.h <<\EOF
18094#define wxUSE_PCX 1
18095EOF
18096
18097fi
18098
18099if test "$wxUSE_PNM" = "yes" ; then
18100 cat >> confdefs.h <<\EOF
18101#define wxUSE_PNM 1
18102EOF
18103
18104fi
18105
18106if test "$wxUSE_XPM" = "yes" ; then
18107 cat >> confdefs.h <<\EOF
18108#define wxUSE_XPM 1
18109EOF
18110
18111fi
18112
18113
18114if test "$wxUSE_CHOICEDLG" = "yes"; then
18115 cat >> confdefs.h <<\EOF
18116#define wxUSE_CHOICEDLG 1
18117EOF
18118
18119fi
18120
18121if test "$wxUSE_COLOURDLG" = "yes"; then
18122 cat >> confdefs.h <<\EOF
18123#define wxUSE_COLOURDLG 1
18124EOF
18125
18126fi
18127
18128if test "$wxUSE_FILEDLG" = "yes"; then
18129 cat >> confdefs.h <<\EOF
18130#define wxUSE_FILEDLG 1
18131EOF
18132
18133fi
18134
18135if test "$wxUSE_FINDREPLDLG" = "yes"; then
18136 cat >> confdefs.h <<\EOF
18137#define wxUSE_FINDREPLDLG 1
18138EOF
18139
18140fi
18141
18142if test "$wxUSE_FONTDLG" = "yes"; then
18143 cat >> confdefs.h <<\EOF
18144#define wxUSE_FONTDLG 1
18145EOF
18146
18147fi
18148
18149if test "$wxUSE_DIRDLG" = "yes"; then
18150 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18151 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18152 else
18153 if test "$wxUSE_TREECTRL" != "yes"; then
18154 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18155 else
18156 cat >> confdefs.h <<\EOF
18157#define wxUSE_DIRDLG 1
18158EOF
18159
18160 fi
18161 fi
18162fi
18163
18164if test "$wxUSE_MSGDLG" = "yes"; then
18165 cat >> confdefs.h <<\EOF
18166#define wxUSE_MSGDLG 1
18167EOF
18168
18169fi
18170
18171if test "$wxUSE_NUMBERDLG" = "yes"; then
18172 cat >> confdefs.h <<\EOF
18173#define wxUSE_NUMBERDLG 1
18174EOF
18175
18176fi
18177
18178if test "$wxUSE_PROGRESSDLG" = "yes"; then
18179 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18180 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18181 else
18182 cat >> confdefs.h <<\EOF
18183#define wxUSE_PROGRESSDLG 1
18184EOF
18185
18186 fi
18187fi
18188
18189if test "$wxUSE_SPLASH" = "yes"; then
18190 cat >> confdefs.h <<\EOF
18191#define wxUSE_SPLASH 1
18192EOF
18193
18194fi
18195
18196if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18197 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18198 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18199 else
18200 cat >> confdefs.h <<\EOF
18201#define wxUSE_STARTUP_TIPS 1
18202EOF
18203
18204 fi
18205fi
18206
18207if test "$wxUSE_TEXTDLG" = "yes"; then
18208 cat >> confdefs.h <<\EOF
18209#define wxUSE_TEXTDLG 1
18210EOF
18211
18212fi
18213
18214if test "$wxUSE_WIZARDDLG" = "yes"; then
18215 cat >> confdefs.h <<\EOF
18216#define wxUSE_WIZARDDLG 1
18217EOF
18218
18219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18220fi
18221
18222
18223if test "$cross_compiling" = "yes"; then
18224 OSINFO="\"$host\""
18225else
18226 OSINFO=`uname -s -r -m`
18227 OSINFO="\"$OSINFO\""
18228fi
18229
18230cat >> confdefs.h <<EOF
18231#define WXWIN_OS_DESCRIPTION $OSINFO
18232EOF
18233
18234
18235
18236if test "x$prefix" != "xNONE"; then
18237 wxPREFIX=$prefix
18238else
18239 wxPREFIX=$ac_default_prefix
18240fi
18241
18242cat >> confdefs.h <<EOF
18243#define wxINSTALL_PREFIX "$wxPREFIX"
18244EOF
18245
18246
18247
18248GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18249
18250EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
18251
18252if test "$wxUSE_MAC" = 1 ; then
18253 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18254fi
18255
18256if test "$wxUSE_GUI" = "yes"; then
18257 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18258
18259
18260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18261 drawing dynamic erase event exec font image \
18262 minimal richedit rotate widgets"
18263
18264 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18265else
18266 SAMPLES_SUBDIRS="console"
18267fi
18268
18269LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18270
18271INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18272$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18273$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18274
18275if test "$wxUSE_GTK" = 1; then
18276 WXCONFIG_INCLUDE=""
18277else
18278 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18279fi
18280
18281if test "$GXX" = yes ; then
18282 CXXWARNINGS="-Wall"
18283 fi
18284EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18285
18286CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18287CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18288
18289LDFLAGS="$LDFLAGS $PROFILE"
18290
18291SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18377echo "configure:18378: checking whether ${MAKE-make} sets \${MAKE}" >&5
18378set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18379if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18380 echo $ac_n "(cached) $ac_c" 1>&6
18381else
18382 cat > conftestmake <<\EOF
18383all:
18384 @echo 'ac_maketemp="${MAKE}"'
18385EOF
18386# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18387eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18388if test -n "$ac_maketemp"; then
18389 eval ac_cv_prog_make_${ac_make}_set=yes
18390else
18391 eval ac_cv_prog_make_${ac_make}_set=no
18392fi
18393rm -f conftestmake
18394fi
18395if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18396 echo "$ac_t""yes" 1>&6
18397 SET_MAKE=
18398else
18399 echo "$ac_t""no" 1>&6
18400 SET_MAKE="MAKE=${MAKE-make}"
18401fi
18402
18403
18404if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18405 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18406fi
18407
18408
18409
18410if test "$wxUSE_GUI" = "yes"; then
18411 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18412 wx_cv_path_ifs=$PATH_IFS
18413 wx_cv_program_ext=$PROGRAM_EXT
18414 wx_cv_target_library=$WX_TARGET_LIBRARY
18415 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18416 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18417 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18418 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18419 subdirs="demos samples utils contrib"
18420
18421fi
18422
18423trap '' 1 2 15
18424cat > confcache <<\EOF
18425# This file is a shell script that caches the results of configure
18426# tests run on this system so they can be shared between configure
18427# scripts and configure runs. It is not useful on other systems.
18428# If it contains results you don't want to keep, you may remove or edit it.
18429#
18430# By default, configure uses ./config.cache as the cache file,
18431# creating it if it does not exist already. You can give configure
18432# the --cache-file=FILE option to use a different cache file; that is
18433# what configure does when it calls configure scripts in
18434# subdirectories, so they share the cache.
18435# Giving --cache-file=/dev/null disables caching, for debugging configure.
18436# config.status only pays attention to the cache file if you give it the
18437# --recheck option to rerun configure.
18438#
18439EOF
18440# The following way of writing the cache mishandles newlines in values,
18441# but we know of no workaround that is simple, portable, and efficient.
18442# So, don't put newlines in cache variables' values.
18443# Ultrix sh set writes to stderr and can't be redirected directly,
18444# and sets the high bit in the cache file unless we assign to the vars.
18445(set) 2>&1 |
18446 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18447 *ac_space=\ *)
18448 # `set' does not quote correctly, so add quotes (double-quote substitution
18449 # turns \\\\ into \\, and sed turns \\ into \).
18450 sed -n \
18451 -e "s/'/'\\\\''/g" \
18452 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18453 ;;
18454 *)
18455 # `set' quotes correctly as required by POSIX, so do not add quotes.
18456 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18457 ;;
18458 esac >> confcache
18459if cmp -s $cache_file confcache; then
18460 :
18461else
18462 if test -w $cache_file; then
18463 echo "updating cache $cache_file"
18464 cat confcache > $cache_file
18465 else
18466 echo "not updating unwritable cache $cache_file"
18467 fi
18468fi
18469rm -f confcache
18470
18471trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18472
18473test "x$prefix" = xNONE && prefix=$ac_default_prefix
18474# Let make expand exec_prefix.
18475test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18476
18477# Any assignment to VPATH causes Sun make to only execute
18478# the first set of double-colon rules, so remove it if not needed.
18479# If there is a colon in the path, we need to keep it.
18480if test "x$srcdir" = x.; then
18481 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18482fi
18483
18484trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18485
18486DEFS=-DHAVE_CONFIG_H
18487
18488# Without the "./", some shells look in PATH for config.status.
18489: ${CONFIG_STATUS=./config.status}
18490
18491echo creating $CONFIG_STATUS
18492rm -f $CONFIG_STATUS
18493cat > $CONFIG_STATUS <<EOF
18494#! /bin/sh
18495# Generated automatically by configure.
18496# Run this file to recreate the current configuration.
18497# This directory was configured as follows,
18498# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18499#
18500# $0 $ac_configure_args
18501#
18502# Compiler output produced by configure, useful for debugging
18503# configure, is in ./config.log if it exists.
18504
18505ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18506for ac_option
18507do
18508 case "\$ac_option" in
18509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18510 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18511 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18512 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18513 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18514 exit 0 ;;
18515 -help | --help | --hel | --he | --h)
18516 echo "\$ac_cs_usage"; exit 0 ;;
18517 *) echo "\$ac_cs_usage"; exit 1 ;;
18518 esac
18519done
18520
18521ac_given_srcdir=$srcdir
18522ac_given_INSTALL="$INSTALL"
18523
18524trap 'rm -fr `echo "
18525 wx-config
18526 src/make.env
18527 src/makeprog.env
18528 src/makelib.env
18529 Makefile
18530 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18531EOF
18532cat >> $CONFIG_STATUS <<EOF
18533
18534# Protect against being on the right side of a sed subst in config.status.
18535sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18537$ac_vpsub
18538$extrasub
18539s%@SHELL@%$SHELL%g
18540s%@CFLAGS@%$CFLAGS%g
18541s%@CPPFLAGS@%$CPPFLAGS%g
18542s%@CXXFLAGS@%$CXXFLAGS%g
18543s%@FFLAGS@%$FFLAGS%g
18544s%@DEFS@%$DEFS%g
18545s%@LDFLAGS@%$LDFLAGS%g
18546s%@LIBS@%$LIBS%g
18547s%@exec_prefix@%$exec_prefix%g
18548s%@prefix@%$prefix%g
18549s%@program_transform_name@%$program_transform_name%g
18550s%@bindir@%$bindir%g
18551s%@sbindir@%$sbindir%g
18552s%@libexecdir@%$libexecdir%g
18553s%@datadir@%$datadir%g
18554s%@sysconfdir@%$sysconfdir%g
18555s%@sharedstatedir@%$sharedstatedir%g
18556s%@localstatedir@%$localstatedir%g
18557s%@libdir@%$libdir%g
18558s%@includedir@%$includedir%g
18559s%@oldincludedir@%$oldincludedir%g
18560s%@infodir@%$infodir%g
18561s%@mandir@%$mandir%g
18562s%@host@%$host%g
18563s%@host_alias@%$host_alias%g
18564s%@host_cpu@%$host_cpu%g
18565s%@host_vendor@%$host_vendor%g
18566s%@host_os@%$host_os%g
18567s%@target@%$target%g
18568s%@target_alias@%$target_alias%g
18569s%@target_cpu@%$target_cpu%g
18570s%@target_vendor@%$target_vendor%g
18571s%@target_os@%$target_os%g
18572s%@build@%$build%g
18573s%@build_alias@%$build_alias%g
18574s%@build_cpu@%$build_cpu%g
18575s%@build_vendor@%$build_vendor%g
18576s%@build_os@%$build_os%g
18577s%@CC@%$CC%g
18578s%@CPP@%$CPP%g
18579s%@CXX@%$CXX%g
18580s%@RANLIB@%$RANLIB%g
18581s%@AR@%$AR%g
18582s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18583s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18584s%@INSTALL_DATA@%$INSTALL_DATA%g
18585s%@STRIP@%$STRIP%g
18586s%@YACC@%$YACC%g
18587s%@LEX@%$LEX%g
18588s%@LEXLIB@%$LEXLIB%g
18589s%@LN_S@%$LN_S%g
18590s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18591s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18592s%@GTK_LIBS@%$GTK_LIBS%g
18593s%@GTK_CONFIG@%$GTK_CONFIG%g
18594s%@X_CFLAGS@%$X_CFLAGS%g
18595s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18596s%@X_LIBS@%$X_LIBS%g
18597s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18598s%@RESCOMP@%$RESCOMP%g
18599s%@DEREZ@%$DEREZ%g
18600s%@CXXCPP@%$CXXCPP%g
18601s%@LEX_STEM@%$LEX_STEM%g
18602s%@PATH_IFS@%$PATH_IFS%g
18603s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18604s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18605s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18606s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18607s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18608s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18609s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18610s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18611s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18612s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18613s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18614s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18615s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18616s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18617s%@WX_ALL@%$WX_ALL%g
18618s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18619s%@SHARED_LD@%$SHARED_LD%g
18620s%@PIC_FLAG@%$PIC_FLAG%g
18621s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18622s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18623s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18624s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18625s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18626s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18627s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18628s%@USE_GUI@%$USE_GUI%g
18629s%@AFMINSTALL@%$AFMINSTALL%g
18630s%@TOOLKIT@%$TOOLKIT%g
18631s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18632s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18633s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18634s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18635s%@cross_compiling@%$cross_compiling%g
18636s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18637s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18638s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18639s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18640s%@GUIDIST@%$GUIDIST%g
18641s%@PORT_FILES@%$PORT_FILES%g
18642s%@DISTDIR@%$DISTDIR%g
18643s%@RPM_SPEC@%$RPM_SPEC%g
18644s%@RPM_FILES@%$RPM_FILES%g
18645s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18646s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18647s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18648s%@EXTRADEFS@%$EXTRADEFS%g
18649s%@LD_LIBS@%$LD_LIBS%g
18650s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18651s%@RESFLAGS@%$RESFLAGS%g
18652s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18653s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18654s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
18655s%@LIBWXMACRES@%$LIBWXMACRES%g
18656s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18657s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
18658s%@DLLTOOL@%$DLLTOOL%g
18659s%@AS@%$AS%g
18660s%@NM@%$NM%g
18661s%@LD@%$LD%g
18662s%@MAKEINFO@%$MAKEINFO%g
18663s%@SET_MAKE@%$SET_MAKE%g
18664s%@subdirs@%$subdirs%g
18665
18666CEOF
18667EOF
18668
18669cat >> $CONFIG_STATUS <<\EOF
18670
18671# Split the substitutions into bite-sized pieces for seds with
18672# small command number limits, like on Digital OSF/1 and HP-UX.
18673ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18674ac_file=1 # Number of current file.
18675ac_beg=1 # First line for current file.
18676ac_end=$ac_max_sed_cmds # Line after last line for current file.
18677ac_more_lines=:
18678ac_sed_cmds=""
18679while $ac_more_lines; do
18680 if test $ac_beg -gt 1; then
18681 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18682 else
18683 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18684 fi
18685 if test ! -s conftest.s$ac_file; then
18686 ac_more_lines=false
18687 rm -f conftest.s$ac_file
18688 else
18689 if test -z "$ac_sed_cmds"; then
18690 ac_sed_cmds="sed -f conftest.s$ac_file"
18691 else
18692 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18693 fi
18694 ac_file=`expr $ac_file + 1`
18695 ac_beg=$ac_end
18696 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18697 fi
18698done
18699if test -z "$ac_sed_cmds"; then
18700 ac_sed_cmds=cat
18701fi
18702EOF
18703
18704cat >> $CONFIG_STATUS <<EOF
18705
18706CONFIG_FILES=\${CONFIG_FILES-"wx-config
18707 src/make.env
18708 src/makeprog.env
18709 src/makelib.env
18710 Makefile
18711 "}
18712EOF
18713cat >> $CONFIG_STATUS <<\EOF
18714for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18716 case "$ac_file" in
18717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18719 *) ac_file_in="${ac_file}.in" ;;
18720 esac
18721
18722 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18723
18724 # Remove last slash and all that follows it. Not all systems have dirname.
18725 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18726 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18727 # The file is in a subdirectory.
18728 test ! -d "$ac_dir" && mkdir "$ac_dir"
18729 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18730 # A "../" for each directory in $ac_dir_suffix.
18731 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18732 else
18733 ac_dir_suffix= ac_dots=
18734 fi
18735
18736 case "$ac_given_srcdir" in
18737 .) srcdir=.
18738 if test -z "$ac_dots"; then top_srcdir=.
18739 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18740 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18741 *) # Relative path.
18742 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18743 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18744 esac
18745
18746 case "$ac_given_INSTALL" in
18747 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18748 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18749 esac
18750
18751 echo creating "$ac_file"
18752 rm -f "$ac_file"
18753 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18754 case "$ac_file" in
18755 *Makefile*) ac_comsub="1i\\
18756# $configure_input" ;;
18757 *) ac_comsub= ;;
18758 esac
18759
18760 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18761 sed -e "$ac_comsub
18762s%@configure_input@%$configure_input%g
18763s%@srcdir@%$srcdir%g
18764s%@top_srcdir@%$top_srcdir%g
18765s%@INSTALL@%$INSTALL%g
18766" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18767fi; done
18768rm -f conftest.s*
18769
18770# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18771# NAME is the cpp macro being defined and VALUE is the value it is being given.
18772#
18773# ac_d sets the value in "#define NAME VALUE" lines.
18774ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18775ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18776ac_dC='\3'
18777ac_dD='%g'
18778# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18779ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18780ac_uB='\([ ]\)%\1#\2define\3'
18781ac_uC=' '
18782ac_uD='\4%g'
18783# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18784ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18785ac_eB='$%\1#\2define\3'
18786ac_eC=' '
18787ac_eD='%g'
18788
18789if test "${CONFIG_HEADERS+set}" != set; then
18790EOF
18791cat >> $CONFIG_STATUS <<EOF
18792 CONFIG_HEADERS="setup.h:setup.h.in"
18793EOF
18794cat >> $CONFIG_STATUS <<\EOF
18795fi
18796for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18798 case "$ac_file" in
18799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18801 *) ac_file_in="${ac_file}.in" ;;
18802 esac
18803
18804 echo creating $ac_file
18805
18806 rm -f conftest.frag conftest.in conftest.out
18807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18808 cat $ac_file_inputs > conftest.in
18809
18810EOF
18811
18812# Transform confdefs.h into a sed script conftest.vals that substitutes
18813# the proper values into config.h.in to produce config.h. And first:
18814# Protect against being on the right side of a sed subst in config.status.
18815# Protect against being in an unquoted here document in config.status.
18816rm -f conftest.vals
18817cat > conftest.hdr <<\EOF
18818s/[\\&%]/\\&/g
18819s%[\\$`]%\\&%g
18820s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18821s%ac_d%ac_u%gp
18822s%ac_u%ac_e%gp
18823EOF
18824sed -n -f conftest.hdr confdefs.h > conftest.vals
18825rm -f conftest.hdr
18826
18827# This sed command replaces #undef with comments. This is necessary, for
18828# example, in the case of _POSIX_SOURCE, which is predefined and required
18829# on some systems where configure will not decide to define it.
18830cat >> conftest.vals <<\EOF
18831s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18832EOF
18833
18834# Break up conftest.vals because some shells have a limit on
18835# the size of here documents, and old seds have small limits too.
18836
18837rm -f conftest.tail
18838while :
18839do
18840 ac_lines=`grep -c . conftest.vals`
18841 # grep -c gives empty output for an empty file on some AIX systems.
18842 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18843 # Write a limited-size here document to conftest.frag.
18844 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18845 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18846 echo 'CEOF
18847 sed -f conftest.frag conftest.in > conftest.out
18848 rm -f conftest.in
18849 mv conftest.out conftest.in
18850' >> $CONFIG_STATUS
18851 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18852 rm -f conftest.vals
18853 mv conftest.tail conftest.vals
18854done
18855rm -f conftest.vals
18856
18857cat >> $CONFIG_STATUS <<\EOF
18858 rm -f conftest.frag conftest.h
18859 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18860 cat conftest.in >> conftest.h
18861 rm -f conftest.in
18862 if cmp -s $ac_file conftest.h 2>/dev/null; then
18863 echo "$ac_file is unchanged"
18864 rm -f conftest.h
18865 else
18866 # Remove last slash and all that follows it. Not all systems have dirname.
18867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18869 # The file is in a subdirectory.
18870 test ! -d "$ac_dir" && mkdir "$ac_dir"
18871 fi
18872 rm -f $ac_file
18873 mv conftest.h $ac_file
18874 fi
18875fi; done
18876
18877EOF
18878cat >> $CONFIG_STATUS <<EOF
18879
18880 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18881 LN_S="${LN_S}"
18882
18883
18884EOF
18885cat >> $CONFIG_STATUS <<\EOF
18886
18887 if test ! -h wx-config; then
18888 chmod +x wx-config
18889 mv wx-config wx${TOOLCHAIN_NAME}-config
18890 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18891 fi
18892
18893 if test ! -d lib; then
18894 mkdir lib
18895 fi
18896 if test ! -d lib/wx; then
18897 mkdir lib/wx
18898 fi
18899 if test ! -d lib/wx/include; then
18900 mkdir lib/wx/include
18901 fi
18902 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18903 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18904 fi
18905 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18906 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18907 fi
18908 if test -f setup.h; then
18909 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18910 fi
18911
18912exit 0
18913EOF
18914chmod +x $CONFIG_STATUS
18915rm -fr confdefs* $ac_clean_files
18916test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18917
18918if test "$no_recursion" != yes; then
18919
18920 # Remove --cache-file and --srcdir arguments so they do not pile up.
18921 ac_sub_configure_args=
18922 ac_prev=
18923 for ac_arg in $ac_configure_args; do
18924 if test -n "$ac_prev"; then
18925 ac_prev=
18926 continue
18927 fi
18928 case "$ac_arg" in
18929 -cache-file | --cache-file | --cache-fil | --cache-fi \
18930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18931 ac_prev=cache_file ;;
18932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18934 ;;
18935 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18936 ac_prev=srcdir ;;
18937 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18938 ;;
18939 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18940 esac
18941 done
18942
18943 for ac_config_dir in demos samples utils contrib; do
18944
18945 # Do not complain, so a configure script can configure whichever
18946 # parts of a large source tree are present.
18947 if test ! -d $srcdir/$ac_config_dir; then
18948 continue
18949 fi
18950
18951 echo configuring in $ac_config_dir
18952
18953 case "$srcdir" in
18954 .) ;;
18955 *)
18956 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18957 else
18958 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18959 fi
18960 ;;
18961 esac
18962
18963 ac_popdir=`pwd`
18964 cd $ac_config_dir
18965
18966 # A "../" for each directory in /$ac_config_dir.
18967 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18968
18969 case "$srcdir" in
18970 .) # No --srcdir option. We are building in place.
18971 ac_sub_srcdir=$srcdir ;;
18972 /*) # Absolute path.
18973 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18974 *) # Relative path.
18975 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18976 esac
18977
18978 # Check for guested configure; otherwise get Cygnus style configure.
18979 if test -f $ac_sub_srcdir/configure; then
18980 ac_sub_configure=$ac_sub_srcdir/configure
18981 elif test -f $ac_sub_srcdir/configure.in; then
18982 ac_sub_configure=$ac_configure
18983 else
18984 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18985 ac_sub_configure=
18986 fi
18987
18988 # The recursion is here.
18989 if test -n "$ac_sub_configure"; then
18990
18991 # Make the cache file name correct relative to the subdirectory.
18992 case "$cache_file" in
18993 /*) ac_sub_cache_file=$cache_file ;;
18994 *) # Relative path.
18995 ac_sub_cache_file="$ac_dots$cache_file" ;;
18996 esac
18997 case "$ac_given_INSTALL" in
18998 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18999 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19000 esac
19001
19002 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19003 # The eval makes quoting arguments work.
19004 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19005 then :
19006 else
19007 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19008 fi
19009 fi
19010
19011 cd $ac_popdir
19012 done
19013fi
19014
19015