]> git.saurik.com Git - wxWidgets.git/blob - configure
SHARED_LD must be CXX, not CC, otherwise we get unresolved
[wxWidgets.git] / configure
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:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94 ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96 ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98 ac_help="$ac_help
99 --enable-shared create shared library code"
100 ac_help="$ac_help
101 --enable-burnt_name create set name in shared library "
102 ac_help="$ac_help
103 --enable-optimise create optimised code"
104 ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106 ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108 ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110 ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112 ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114 ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116 ac_help="$ac_help
117 --enable-profile create code with profiling information"
118 ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120 ac_help="$ac_help
121 --enable-no_exceptions create code without exceptions information"
122 ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124 ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126 ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
130 ac_help="$ac_help
131 --enable-intl use internationalization system"
132 ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134 ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136 ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138 ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140 ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142 ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144 ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146 ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148 ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150 ac_help="$ac_help
151 --enable-timer use wxTimer class"
152 ac_help="$ac_help
153 --enable-wave use wxWave class"
154 ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156 ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158 ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160 ac_help="$ac_help
161 --enable-geometry use geometry class"
162 ac_help="$ac_help
163 --enable-log use logging system"
164 ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166 ac_help="$ac_help
167 --enable-file use wxFile classes"
168 ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170 ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176 ac_help="$ac_help
177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224 ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226 ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228 ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230 ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232 ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234 ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236 ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238 ac_help="$ac_help
239 --enable-controls use all usual controls"
240 ac_help="$ac_help
241 --enable-accel use accelerators"
242 ac_help="$ac_help
243 --enable-button use wxButton class"
244 ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246 ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248 ac_help="$ac_help
249 --enable-caret use wxCaret class"
250 ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252 ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254 ac_help="$ac_help
255 --enable-choice use wxChoice class"
256 ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258 ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260 ac_help="$ac_help
261 --enable-grid use wxGrid class"
262 ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264 ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266 ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268 ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270 ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272 ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274 ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276 ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278 ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280 ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282 ac_help="$ac_help
283 --enable-slider use wxSlider class"
284 ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286 ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288 ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290 ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292 ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294 ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296 ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298 ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300 ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302 ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304 ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306 ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312 ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314 ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316 ac_help="$ac_help
317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-textdlg use wxTextDialog"
336 ac_help="$ac_help
337 --enable-tipdlg use startup tips"
338 ac_help="$ac_help
339 --enable-progressdlg use wxProgressDialog"
340 ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
342 ac_help="$ac_help
343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
344 ac_help="$ac_help
345 --enable-miniframe use wxMiniFrame class"
346 ac_help="$ac_help
347 --enable-tooltips use wxToolTip class"
348 ac_help="$ac_help
349 --enable-splines use spline drawing code"
350 ac_help="$ac_help
351 --enable-validators use wxValidator and derived classes"
352 ac_help="$ac_help
353 --enable-busyinfo use wxBusyInfo"
354 ac_help="$ac_help
355 --enable-joystick compile in joystick support (Linux only)"
356 ac_help="$ac_help
357 --enable-metafiles use wxMetaFile (Windows only)"
358 ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
360 ac_help="$ac_help
361 --enable-image use wxImage class"
362 ac_help="$ac_help
363 --enable-gif use gif images (GIF file format)"
364 ac_help="$ac_help
365 --enable-pcx use pcx images (PCX file format)"
366 ac_help="$ac_help
367 --enable-pnm use pnm images (PNM file format)"
368 ac_help="$ac_help
369 --enable-xpm use xpm images (XPM file format)"
370 ac_help="$ac_help
371 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
372 ac_help="$ac_help
373 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --disable-gtktest Do not try to compile and run a test GTK program"
376 ac_help="$ac_help
377 --with-x use the X Window System"
378
379 # Initialize some variables set by options.
380 # The variables have the same names as the options, with
381 # dashes changed to underlines.
382 build=NONE
383 cache_file=./config.cache
384 exec_prefix=NONE
385 host=NONE
386 no_create=
387 nonopt=NONE
388 no_recursion=
389 prefix=NONE
390 program_prefix=NONE
391 program_suffix=NONE
392 program_transform_name=s,x,x,
393 silent=
394 site=
395 srcdir=
396 target=NONE
397 verbose=
398 x_includes=NONE
399 x_libraries=NONE
400 bindir='${exec_prefix}/bin'
401 sbindir='${exec_prefix}/sbin'
402 libexecdir='${exec_prefix}/libexec'
403 datadir='${prefix}/share'
404 sysconfdir='${prefix}/etc'
405 sharedstatedir='${prefix}/com'
406 localstatedir='${prefix}/var'
407 libdir='${exec_prefix}/lib'
408 includedir='${prefix}/include'
409 oldincludedir='/usr/include'
410 infodir='${prefix}/info'
411 mandir='${prefix}/man'
412
413 # Initialize some other variables.
414 subdirs=
415 MFLAGS= MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 ac_max_here_lines=12
419
420 ac_prev=
421 for ac_option
422 do
423
424 # If the previous option needs an argument, assign it.
425 if test -n "$ac_prev"; then
426 eval "$ac_prev=\$ac_option"
427 ac_prev=
428 continue
429 fi
430
431 case "$ac_option" in
432 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
433 *) ac_optarg= ;;
434 esac
435
436 # Accept the important Cygnus configure options, so we can diagnose typos.
437
438 case "$ac_option" in
439
440 -bindir | --bindir | --bindi | --bind | --bin | --bi)
441 ac_prev=bindir ;;
442 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
443 bindir="$ac_optarg" ;;
444
445 -build | --build | --buil | --bui | --bu)
446 ac_prev=build ;;
447 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
448 build="$ac_optarg" ;;
449
450 -cache-file | --cache-file | --cache-fil | --cache-fi \
451 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
452 ac_prev=cache_file ;;
453 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
454 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
455 cache_file="$ac_optarg" ;;
456
457 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
458 ac_prev=datadir ;;
459 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
460 | --da=*)
461 datadir="$ac_optarg" ;;
462
463 -disable-* | --disable-*)
464 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
468 fi
469 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
470 eval "enable_${ac_feature}=no" ;;
471
472 -enable-* | --enable-*)
473 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
474 # Reject names that are not valid shell variable names.
475 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
476 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
477 fi
478 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
479 case "$ac_option" in
480 *=*) ;;
481 *) ac_optarg=yes ;;
482 esac
483 eval "enable_${ac_feature}='$ac_optarg'" ;;
484
485 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
486 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
487 | --exec | --exe | --ex)
488 ac_prev=exec_prefix ;;
489 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
490 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
491 | --exec=* | --exe=* | --ex=*)
492 exec_prefix="$ac_optarg" ;;
493
494 -gas | --gas | --ga | --g)
495 # Obsolete; use --with-gas.
496 with_gas=yes ;;
497
498 -help | --help | --hel | --he)
499 # Omit some internal or obsolete options to make the list less imposing.
500 # This message is too long to be a string in the A/UX 3.1 sh.
501 cat << EOF
502 Usage: configure [options] [host]
503 Options: [defaults in brackets after descriptions]
504 Configuration:
505 --cache-file=FILE cache test results in FILE
506 --help print this message
507 --no-create do not create output files
508 --quiet, --silent do not print \`checking...' messages
509 --version print the version of autoconf that created configure
510 Directory and file names:
511 --prefix=PREFIX install architecture-independent files in PREFIX
512 [$ac_default_prefix]
513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
514 [same as prefix]
515 --bindir=DIR user executables in DIR [EPREFIX/bin]
516 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
517 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
518 --datadir=DIR read-only architecture-independent data in DIR
519 [PREFIX/share]
520 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
521 --sharedstatedir=DIR modifiable architecture-independent data in DIR
522 [PREFIX/com]
523 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
524 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
525 --includedir=DIR C header files in DIR [PREFIX/include]
526 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
527 --infodir=DIR info documentation in DIR [PREFIX/info]
528 --mandir=DIR man documentation in DIR [PREFIX/man]
529 --srcdir=DIR find the sources in DIR [configure dir or ..]
530 --program-prefix=PREFIX prepend PREFIX to installed program names
531 --program-suffix=SUFFIX append SUFFIX to installed program names
532 --program-transform-name=PROGRAM
533 run sed PROGRAM on installed program names
534 EOF
535 cat << EOF
536 Host type:
537 --build=BUILD configure for building on BUILD [BUILD=HOST]
538 --host=HOST configure for HOST [guessed]
539 --target=TARGET configure for TARGET [TARGET=HOST]
540 Features and packages:
541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
545 --x-includes=DIR X include files are in DIR
546 --x-libraries=DIR X library files are in DIR
547 EOF
548 if test -n "$ac_help"; then
549 echo "--enable and --with options recognized:$ac_help"
550 fi
551 exit 0 ;;
552
553 -host | --host | --hos | --ho)
554 ac_prev=host ;;
555 -host=* | --host=* | --hos=* | --ho=*)
556 host="$ac_optarg" ;;
557
558 -includedir | --includedir | --includedi | --included | --include \
559 | --includ | --inclu | --incl | --inc)
560 ac_prev=includedir ;;
561 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
562 | --includ=* | --inclu=* | --incl=* | --inc=*)
563 includedir="$ac_optarg" ;;
564
565 -infodir | --infodir | --infodi | --infod | --info | --inf)
566 ac_prev=infodir ;;
567 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
568 infodir="$ac_optarg" ;;
569
570 -libdir | --libdir | --libdi | --libd)
571 ac_prev=libdir ;;
572 -libdir=* | --libdir=* | --libdi=* | --libd=*)
573 libdir="$ac_optarg" ;;
574
575 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
576 | --libexe | --libex | --libe)
577 ac_prev=libexecdir ;;
578 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
579 | --libexe=* | --libex=* | --libe=*)
580 libexecdir="$ac_optarg" ;;
581
582 -localstatedir | --localstatedir | --localstatedi | --localstated \
583 | --localstate | --localstat | --localsta | --localst \
584 | --locals | --local | --loca | --loc | --lo)
585 ac_prev=localstatedir ;;
586 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
587 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
588 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
589 localstatedir="$ac_optarg" ;;
590
591 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
592 ac_prev=mandir ;;
593 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
594 mandir="$ac_optarg" ;;
595
596 -nfp | --nfp | --nf)
597 # Obsolete; use --without-fp.
598 with_fp=no ;;
599
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c)
602 no_create=yes ;;
603
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
606 no_recursion=yes ;;
607
608 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
609 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
610 | --oldin | --oldi | --old | --ol | --o)
611 ac_prev=oldincludedir ;;
612 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
613 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
614 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
615 oldincludedir="$ac_optarg" ;;
616
617 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
618 ac_prev=prefix ;;
619 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
620 prefix="$ac_optarg" ;;
621
622 -program-prefix | --program-prefix | --program-prefi | --program-pref \
623 | --program-pre | --program-pr | --program-p)
624 ac_prev=program_prefix ;;
625 -program-prefix=* | --program-prefix=* | --program-prefi=* \
626 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
627 program_prefix="$ac_optarg" ;;
628
629 -program-suffix | --program-suffix | --program-suffi | --program-suff \
630 | --program-suf | --program-su | --program-s)
631 ac_prev=program_suffix ;;
632 -program-suffix=* | --program-suffix=* | --program-suffi=* \
633 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
634 program_suffix="$ac_optarg" ;;
635
636 -program-transform-name | --program-transform-name \
637 | --program-transform-nam | --program-transform-na \
638 | --program-transform-n | --program-transform- \
639 | --program-transform | --program-transfor \
640 | --program-transfo | --program-transf \
641 | --program-trans | --program-tran \
642 | --progr-tra | --program-tr | --program-t)
643 ac_prev=program_transform_name ;;
644 -program-transform-name=* | --program-transform-name=* \
645 | --program-transform-nam=* | --program-transform-na=* \
646 | --program-transform-n=* | --program-transform-=* \
647 | --program-transform=* | --program-transfor=* \
648 | --program-transfo=* | --program-transf=* \
649 | --program-trans=* | --program-tran=* \
650 | --progr-tra=* | --program-tr=* | --program-t=*)
651 program_transform_name="$ac_optarg" ;;
652
653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
654 | -silent | --silent | --silen | --sile | --sil)
655 silent=yes ;;
656
657 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
658 ac_prev=sbindir ;;
659 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
660 | --sbi=* | --sb=*)
661 sbindir="$ac_optarg" ;;
662
663 -sharedstatedir | --sharedstatedir | --sharedstatedi \
664 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
665 | --sharedst | --shareds | --shared | --share | --shar \
666 | --sha | --sh)
667 ac_prev=sharedstatedir ;;
668 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
669 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
670 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
671 | --sha=* | --sh=*)
672 sharedstatedir="$ac_optarg" ;;
673
674 -site | --site | --sit)
675 ac_prev=site ;;
676 -site=* | --site=* | --sit=*)
677 site="$ac_optarg" ;;
678
679 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
680 ac_prev=srcdir ;;
681 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
682 srcdir="$ac_optarg" ;;
683
684 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
685 | --syscon | --sysco | --sysc | --sys | --sy)
686 ac_prev=sysconfdir ;;
687 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
688 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
689 sysconfdir="$ac_optarg" ;;
690
691 -target | --target | --targe | --targ | --tar | --ta | --t)
692 ac_prev=target ;;
693 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
694 target="$ac_optarg" ;;
695
696 -v | -verbose | --verbose | --verbos | --verbo | --verb)
697 verbose=yes ;;
698
699 -version | --version | --versio | --versi | --vers)
700 echo "configure generated by autoconf version 2.13"
701 exit 0 ;;
702
703 -with-* | --with-*)
704 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
705 # Reject names that are not valid shell variable names.
706 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
707 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
708 fi
709 ac_package=`echo $ac_package| sed 's/-/_/g'`
710 case "$ac_option" in
711 *=*) ;;
712 *) ac_optarg=yes ;;
713 esac
714 eval "with_${ac_package}='$ac_optarg'" ;;
715
716 -without-* | --without-*)
717 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
718 # Reject names that are not valid shell variable names.
719 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
720 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
721 fi
722 ac_package=`echo $ac_package| sed 's/-/_/g'`
723 eval "with_${ac_package}=no" ;;
724
725 --x)
726 # Obsolete; use --with-x.
727 with_x=yes ;;
728
729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
730 | --x-incl | --x-inc | --x-in | --x-i)
731 ac_prev=x_includes ;;
732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
734 x_includes="$ac_optarg" ;;
735
736 -x-libraries | --x-libraries | --x-librarie | --x-librari \
737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
738 ac_prev=x_libraries ;;
739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
741 x_libraries="$ac_optarg" ;;
742
743 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
744 ;;
745
746 *)
747 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
748 echo "configure: warning: $ac_option: invalid host type" 1>&2
749 fi
750 if test "x$nonopt" != xNONE; then
751 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
752 fi
753 nonopt="$ac_option"
754 ;;
755
756 esac
757 done
758
759 if test -n "$ac_prev"; then
760 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
761 fi
762
763 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
764
765 # File descriptor usage:
766 # 0 standard input
767 # 1 file creation
768 # 2 errors and warnings
769 # 3 some systems may open it to /dev/tty
770 # 4 used on the Kubota Titan
771 # 6 checking for... messages and results
772 # 5 compiler messages saved in config.log
773 if test "$silent" = yes; then
774 exec 6>/dev/null
775 else
776 exec 6>&1
777 fi
778 exec 5>./config.log
779
780 echo "\
781 This file contains any messages produced by compilers while
782 running configure, to aid debugging if configure makes a mistake.
783 " 1>&5
784
785 # Strip out --no-create and --no-recursion so they do not pile up.
786 # Also quote any args containing shell metacharacters.
787 ac_configure_args=
788 for ac_arg
789 do
790 case "$ac_arg" in
791 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
792 | --no-cr | --no-c) ;;
793 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
794 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
795 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
796 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
797 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
798 esac
799 done
800
801 # NLS nuisances.
802 # Only set these to C if already set. These must not be set unconditionally
803 # because not all systems understand e.g. LANG=C (notably SCO).
804 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
805 # Non-C LC_CTYPE values break the ctype check.
806 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
807 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
808 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
809 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
810
811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
812 rm -rf conftest* confdefs.h
813 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
814 echo > confdefs.h
815
816 # A filename unique to this package, relative to the directory that
817 # configure is in, which we can look for to find out if srcdir is correct.
818 ac_unique_file=wx-config.in
819
820 # Find the source files, if location was not specified.
821 if test -z "$srcdir"; then
822 ac_srcdir_defaulted=yes
823 # Try the directory containing this script, then its parent.
824 ac_prog=$0
825 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
826 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
827 srcdir=$ac_confdir
828 if test ! -r $srcdir/$ac_unique_file; then
829 srcdir=..
830 fi
831 else
832 ac_srcdir_defaulted=no
833 fi
834 if test ! -r $srcdir/$ac_unique_file; then
835 if test "$ac_srcdir_defaulted" = yes; then
836 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
837 else
838 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
839 fi
840 fi
841 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
842
843 # Prefer explicitly selected file to automatically selected ones.
844 if test -z "$CONFIG_SITE"; then
845 if test "x$prefix" != xNONE; then
846 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847 else
848 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849 fi
850 fi
851 for ac_site_file in $CONFIG_SITE; do
852 if test -r "$ac_site_file"; then
853 echo "loading site script $ac_site_file"
854 . "$ac_site_file"
855 fi
856 done
857
858 if test -r "$cache_file"; then
859 echo "loading cache $cache_file"
860 . $cache_file
861 else
862 echo "creating cache $cache_file"
863 > $cache_file
864 fi
865
866 ac_ext=c
867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868 ac_cpp='$CPP $CPPFLAGS'
869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871 cross_compiling=$ac_cv_prog_cc_cross
872
873 ac_exeext=
874 ac_objext=o
875 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
876 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
877 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
878 ac_n= ac_c='
879 ' ac_t=' '
880 else
881 ac_n=-n ac_c= ac_t=
882 fi
883 else
884 ac_n= ac_c='\c' ac_t=
885 fi
886
887
888
889 ac_aux_dir=
890 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
891 if test -f $ac_dir/install-sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install-sh -c"
894 break
895 elif 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 fi
900 done
901 if test -z "$ac_aux_dir"; then
902 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
903 fi
904 ac_config_guess=$ac_aux_dir/config.guess
905 ac_config_sub=$ac_aux_dir/config.sub
906 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
907
908
909 # Do some error checking and defaulting for the host and target type.
910 # The inputs are:
911 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
912 #
913 # The rules are:
914 # 1. You are not allowed to specify --host, --target, and nonopt at the
915 # same time.
916 # 2. Host defaults to nonopt.
917 # 3. If nonopt is not specified, then host defaults to the current host,
918 # as determined by config.guess.
919 # 4. Target and build default to nonopt.
920 # 5. If nonopt is not specified, then target and build default to host.
921
922 # The aliases save the names the user supplied, while $host etc.
923 # will get canonicalized.
924 case $host---$target---$nonopt in
925 NONE---*---* | *---NONE---* | *---*---NONE) ;;
926 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
927 esac
928
929
930 # Make sure we can run config.sub.
931 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933 fi
934
935 echo $ac_n "checking host system type""... $ac_c" 1>&6
936 echo "configure:937: checking host system type" >&5
937
938 host_alias=$host
939 case "$host_alias" in
940 NONE)
941 case $nonopt in
942 NONE)
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 fi ;;
946 *) host_alias=$nonopt ;;
947 esac ;;
948 esac
949
950 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo "$ac_t""$host" 1>&6
955
956 echo $ac_n "checking target system type""... $ac_c" 1>&6
957 echo "configure:958: checking target system type" >&5
958
959 target_alias=$target
960 case "$target_alias" in
961 NONE)
962 case $nonopt in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
965 esac ;;
966 esac
967
968 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$target" 1>&6
973
974 echo $ac_n "checking build system type""... $ac_c" 1>&6
975 echo "configure:976: checking build system type" >&5
976
977 build_alias=$build
978 case "$build_alias" in
979 NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984 esac
985
986 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$build" 1>&6
991
992 test "$host_alias" != "$target_alias" &&
993 test "$program_prefix$program_suffix$program_transform_name" = \
994 NONENONEs,x,x, &&
995 program_prefix=${target_alias}-
996
997
998
999 WX_MAJOR_VERSION_NUMBER=2
1000 WX_MINOR_VERSION_NUMBER=3
1001 WX_RELEASE_NUMBER=2
1002
1003 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1004 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1005
1006 WX_CURRENT=1
1007 WX_REVISION=0
1008 WX_AGE=0
1009
1010
1011
1012 USE_UNIX=1
1013 USE_WIN32=0
1014 USE_BEOS=0
1015 USE_MAC=0
1016
1017 USE_LINUX=
1018 USE_SGI=
1019 USE_HPUX=
1020 USE_SYSV=
1021 USE_SVR4=
1022 USE_AIX=
1023 USE_SUN=
1024 USE_SOLARIS=
1025 USE_SUNOS=
1026 USE_ALPHA=
1027 USE_OSF=
1028 USE_BSD=
1029 USE_DARWIN=
1030 USE_FREEBSD=
1031 USE_OPENBSD=
1032 USE_NETBSD=
1033 USE_VMS=
1034 USE_ULTRIX=
1035 USE_CYGWIN=
1036 USE_MINGW=
1037 USE_DATA_GENERAL=
1038
1039 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1040
1041 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1042
1043 DEFAULT_wxUSE_GTK=0
1044 DEFAULT_wxUSE_MAC=0
1045 DEFAULT_wxUSE_MGL=0
1046 DEFAULT_wxUSE_MOTIF=0
1047 DEFAULT_wxUSE_MSW=0
1048 DEFAULT_wxUSE_PM=0
1049 DEFAULT_wxUSE_WINE=0
1050
1051 DEFAULT_DEFAULT_wxUSE_GTK=0
1052 DEFAULT_DEFAULT_wxUSE_MAC=0
1053 DEFAULT_DEFAULT_wxUSE_MGL=0
1054 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1055 DEFAULT_DEFAULT_wxUSE_MSW=0
1056 DEFAULT_DEFAULT_wxUSE_PM=0
1057 DEFAULT_DEFAULT_wxUSE_WINE=0
1058
1059 PROGRAM_EXT=
1060
1061 case "${host}" in
1062 *-hp-hpux* )
1063 USE_HPUX=1
1064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1065 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1066 cat >> confdefs.h <<\EOF
1067 #define __HPUX__ 1
1068 EOF
1069
1070 ;;
1071 *-*-linux* )
1072 USE_LINUX=1
1073 cat >> confdefs.h <<\EOF
1074 #define __LINUX__ 1
1075 EOF
1076
1077 TMP=`uname -m`
1078 if test "x$TMP" = "xalpha"; then
1079 USE_ALPHA=1
1080 cat >> confdefs.h <<\EOF
1081 #define __ALPHA__ 1
1082 EOF
1083
1084 fi
1085 DEFAULT_DEFAULT_wxUSE_GTK=1
1086 ;;
1087 *-*-irix5* | *-*-irix6* )
1088 USE_SGI=1
1089 USE_SVR4=1
1090 cat >> confdefs.h <<\EOF
1091 #define __SGI__ 1
1092 EOF
1093
1094 cat >> confdefs.h <<\EOF
1095 #define __SVR4__ 1
1096 EOF
1097
1098 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1099 ;;
1100 *-*-solaris2* )
1101 USE_SUN=1
1102 USE_SOLARIS=1
1103 USE_SVR4=1
1104 cat >> confdefs.h <<\EOF
1105 #define __SUN__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __SOLARIS__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __SVR4__ 1
1114 EOF
1115
1116 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1117 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1118 ;;
1119 *-*-sunos4* )
1120 USE_SUN=1
1121 USE_SUNOS=1
1122 USE_BSD=1
1123 cat >> confdefs.h <<\EOF
1124 #define __SUN__ 1
1125 EOF
1126
1127 cat >> confdefs.h <<\EOF
1128 #define __SUNOS__ 1
1129 EOF
1130
1131 cat >> confdefs.h <<\EOF
1132 #define __BSD__ 1
1133 EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1136 ;;
1137 *-*-freebsd*)
1138 USE_BSD=1
1139 USE_FREEBSD=1
1140 cat >> confdefs.h <<\EOF
1141 #define __FREEBSD__ 1
1142 EOF
1143
1144 cat >> confdefs.h <<\EOF
1145 #define __BSD__ 1
1146 EOF
1147
1148 DEFAULT_DEFAULT_wxUSE_GTK=1
1149 ;;
1150 *-*-openbsd*)
1151 USE_BSD=1
1152 USE_OPENBSD=1
1153 cat >> confdefs.h <<\EOF
1154 #define __FREEBSD__ 1
1155 EOF
1156
1157 cat >> confdefs.h <<\EOF
1158 #define __OPENBSD__ 1
1159 EOF
1160
1161 DEFAULT_DEFAULT_wxUSE_GTK=1
1162 ;;
1163 *-*-netbsd*)
1164 USE_BSD=1
1165 USE_NETBSD=1
1166 cat >> confdefs.h <<\EOF
1167 #define __FREEBSD__ 1
1168 EOF
1169
1170 cat >> confdefs.h <<\EOF
1171 #define __NETBSD__ 1
1172 EOF
1173
1174 DEFAULT_DEFAULT_wxUSE_GTK=1
1175 ;;
1176 *-*-osf* )
1177 USE_ALPHA=1
1178 USE_OSF=1
1179 cat >> confdefs.h <<\EOF
1180 #define __ALPHA__ 1
1181 EOF
1182
1183 cat >> confdefs.h <<\EOF
1184 #define __OSF__ 1
1185 EOF
1186
1187 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1188 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1189 ;;
1190 *-*-dgux5* )
1191 USE_ALPHA=1
1192 USE_SVR4=1
1193 cat >> confdefs.h <<\EOF
1194 #define __ALPHA__ 1
1195 EOF
1196
1197 cat >> confdefs.h <<\EOF
1198 #define __SVR4__ 1
1199 EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1202 ;;
1203 *-*-sysv5* )
1204 USE_SYSV=1
1205 USE_SVR4=1
1206 cat >> confdefs.h <<\EOF
1207 #define __SYSV__ 1
1208 EOF
1209
1210 cat >> confdefs.h <<\EOF
1211 #define __SVR4__ 1
1212 EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1215 ;;
1216 *-*-aix* )
1217 USE_AIX=1
1218 USE_SYSV=1
1219 USE_SVR4=1
1220 cat >> confdefs.h <<\EOF
1221 #define __AIX__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __SYSV__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __SVR4__ 1
1230 EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1233 ;;
1234
1235 *-*-cygwin* | *-*-mingw32* )
1236 USE_UNIX=0
1237 USE_WIN32=1
1238 cat >> confdefs.h <<\EOF
1239 #define __WIN32__ 1
1240 EOF
1241
1242 cat >> confdefs.h <<\EOF
1243 #define __WIN95__ 1
1244 EOF
1245
1246 cat >> confdefs.h <<\EOF
1247 #define __WINDOWS__ 1
1248 EOF
1249
1250 cat >> confdefs.h <<\EOF
1251 #define __GNUWIN32__ 1
1252 EOF
1253
1254 cat >> confdefs.h <<\EOF
1255 #define STRICT 1
1256 EOF
1257
1258 cat >> confdefs.h <<\EOF
1259 #define WINVER 0x0400
1260 EOF
1261
1262 PROGRAM_EXT=".exe"
1263 DEFAULT_DEFAULT_wxUSE_MSW=1
1264 ;;
1265
1266 *-pc-os2_emx )
1267 cat >> confdefs.h <<\EOF
1268 #define __EMX__ 1
1269 EOF
1270
1271 PROGRAM_EXT=".exe"
1272 DEFAULT_DEFAULT_wxUSE_PM=1
1273 ;;
1274
1275 *-*-darwin* )
1276 USE_BSD=1
1277 USE_DARWIN=1
1278 cat >> confdefs.h <<\EOF
1279 #define __BSD__ 1
1280 EOF
1281
1282 cat >> confdefs.h <<\EOF
1283 #define __DARWIN__ 1
1284 EOF
1285
1286 cat >> confdefs.h <<\EOF
1287 #define __UNIX__ 1
1288 EOF
1289
1290 DEFAULT_DEFAULT_wxUSE_MAC=1
1291 ;;
1292
1293 *-*-beos* )
1294 USE_BEOS=1
1295 cat >> confdefs.h <<\EOF
1296 #define __BEOS__ 1
1297 EOF
1298
1299 ;;
1300
1301 *)
1302 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1303 esac
1304
1305 if test "$USE_UNIX" = 1 ; then
1306 wxUSE_UNIX=yes
1307 cat >> confdefs.h <<\EOF
1308 #define __UNIX__ 1
1309 EOF
1310
1311
1312 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1313 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1314 fi
1315
1316 if test "$USE_BEOS" = 1; then
1317 SRC_SUBDIRS="$SRC_SUBDIRS be"
1318 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1319 fi
1320
1321 if test "$USE_LINUX" = 1; then
1322 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1323 echo "configure:1324: checking for gettext in -lc" >&5
1324 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 ac_save_LIBS="$LIBS"
1329 LIBS="-lc $LIBS"
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 /* Override any gcc2 internal prototype to avoid an error. */
1334 /* We use char because int might match the return type of a gcc2
1335 builtin and then its argument prototype would still apply. */
1336 char gettext();
1337
1338 int main() {
1339 gettext()
1340 ; return 0; }
1341 EOF
1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343 rm -rf conftest*
1344 eval "ac_cv_lib_$ac_lib_var=yes"
1345 else
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349 eval "ac_cv_lib_$ac_lib_var=no"
1350 fi
1351 rm -f conftest*
1352 LIBS="$ac_save_LIBS"
1353
1354 fi
1355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 cat >> confdefs.h <<\EOF
1358 #define wxHAVE_GLIBC2 1
1359 EOF
1360
1361 else
1362 echo "$ac_t""no" 1>&6
1363 fi
1364
1365 fi
1366
1367
1368
1369
1370 wx_arg_cache_file="configarg.cache"
1371 echo "loading argument cache $wx_arg_cache_file"
1372 rm -f ${wx_arg_cache_file}.tmp
1373 touch ${wx_arg_cache_file}.tmp
1374 touch ${wx_arg_cache_file}
1375
1376
1377 DEBUG_CONFIGURE=0
1378 if test $DEBUG_CONFIGURE = 1; then
1379 DEFAULT_wxUSE_UNIVERSAL=no
1380
1381 DEFAULT_wxUSE_THREADS=yes
1382
1383 DEFAULT_wxUSE_SHARED=yes
1384 DEFAULT_wxUSE_BURNT_NAME=no
1385 DEFAULT_wxUSE_OPTIMISE=no
1386 DEFAULT_wxUSE_PROFILE=no
1387 DEFAULT_wxUSE_NO_DEPS=no
1388 DEFAULT_wxUSE_NO_RTTI=no
1389 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1390 DEFAULT_wxUSE_PERMISSIVE=no
1391 DEFAULT_wxUSE_DEBUG_FLAG=yes
1392 DEFAULT_wxUSE_DEBUG_INFO=yes
1393 DEFAULT_wxUSE_DEBUG_GDB=yes
1394 DEFAULT_wxUSE_MEM_TRACING=no
1395 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1396 DEFAULT_wxUSE_DMALLOC=no
1397 DEFAULT_wxUSE_APPLE_IEEE=no
1398
1399 DEFAULT_wxUSE_LOG=yes
1400 DEFAULT_wxUSE_LOGWINDOW=no
1401 DEFAULT_wxUSE_LOGGUI=no
1402
1403 DEFAULT_wxUSE_GUI=yes
1404 DEFAULT_wxUSE_CONTROLS=no
1405
1406 DEFAULT_wxUSE_REGEX=no
1407 DEFAULT_wxUSE_ZLIB=no
1408 DEFAULT_wxUSE_LIBPNG=no
1409 DEFAULT_wxUSE_LIBJPEG=no
1410 DEFAULT_wxUSE_LIBTIFF=no
1411 DEFAULT_wxUSE_ODBC=no
1412 DEFAULT_wxUSE_FREETYPE=no
1413 DEFAULT_wxUSE_OPENGL=no
1414
1415 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1416 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1417 DEFAULT_wxUSE_STD_IOSTREAM=no
1418 DEFAULT_wxUSE_CMDLINE_PARSER=no
1419 DEFAULT_wxUSE_DATETIME=no
1420 DEFAULT_wxUSE_TIMEDATE=no
1421 DEFAULT_wxUSE_TIMER=no
1422 DEFAULT_wxUSE_STOPWATCH=no
1423 DEFAULT_wxUSE_FILE=no
1424 DEFAULT_wxUSE_FFILE=no
1425 DEFAULT_wxUSE_TEXTFILE=no
1426 DEFAULT_wxUSE_WAVE=no
1427 DEFAULT_wxUSE_INTL=no
1428 DEFAULT_wxUSE_CONFIG=no
1429 DEFAULT_wxUSE_FONTMAP=no
1430 DEFAULT_wxUSE_STREAMS=no
1431 DEFAULT_wxUSE_SOCKETS=no
1432 DEFAULT_wxUSE_DIALUP_MANAGER=no
1433 DEFAULT_wxUSE_SERIAL=no
1434 DEFAULT_wxUSE_JOYSTICK=no
1435 DEFAULT_wxUSE_DYNLIB_CLASS=no
1436 DEFAULT_wxUSE_LONGLONG=no
1437 DEFAULT_wxUSE_GEOMETRY=no
1438
1439 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1440 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1441 DEFAULT_wxUSE_POSTSCRIPT=no
1442
1443 DEFAULT_wxUSE_X_RESOURCES=no
1444 DEFAULT_wxUSE_CLIPBOARD=no
1445 DEFAULT_wxUSE_TOOLTIPS=no
1446 DEFAULT_wxUSE_DRAG_AND_DROP=no
1447 DEFAULT_wxUSE_DRAGIMAGE=no
1448 DEFAULT_wxUSE_SPLINES=no
1449
1450 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1451 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1452 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1453
1454 DEFAULT_wxUSE_PROLOGIO=no
1455 DEFAULT_wxUSE_RESOURCES=no
1456 DEFAULT_wxUSE_CONSTRAINTS=no
1457 DEFAULT_wxUSE_IPC=no
1458 DEFAULT_wxUSE_HELP=no
1459 DEFAULT_wxUSE_MS_HTML_HELP=no
1460 DEFAULT_wxUSE_WXHTML_HELP=no
1461 DEFAULT_wxUSE_TREELAYOUT=no
1462 DEFAULT_wxUSE_METAFILE=no
1463 DEFAULT_wxUSE_MIMETYPE=no
1464 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1465
1466 DEFAULT_wxUSE_COMMONDLGS=no
1467 DEFAULT_wxUSE_CHOICEDLG=no
1468 DEFAULT_wxUSE_COLOURDLG=no
1469 DEFAULT_wxUSE_DIRDLG=no
1470 DEFAULT_wxUSE_FILEDLG=no
1471 DEFAULT_wxUSE_FINDREPLDLG=no
1472 DEFAULT_wxUSE_FONTDLG=no
1473 DEFAULT_wxUSE_MSGDLG=no
1474 DEFAULT_wxUSE_NUMBERDLG=no
1475 DEFAULT_wxUSE_TEXTDLG=no
1476 DEFAULT_wxUSE_STARTUP_TIPS=no
1477 DEFAULT_wxUSE_PROGRESSDLG=no
1478 DEFAULT_wxUSE_WIZARDDLG=no
1479
1480 DEFAULT_wxUSE_MENUS=no
1481 DEFAULT_wxUSE_MINIFRAME=no
1482 DEFAULT_wxUSE_HTML=no
1483 DEFAULT_wxUSE_FILESYSTEM=no
1484 DEFAULT_wxUSE_FS_INET=no
1485 DEFAULT_wxUSE_FS_ZIP=no
1486 DEFAULT_wxUSE_BUSYINFO=no
1487 DEFAULT_wxUSE_ZIPSTREAM=no
1488 DEFAULT_wxUSE_VALIDATORS=no
1489
1490 DEFAULT_wxUSE_ACCEL=no
1491 DEFAULT_wxUSE_BUTTON=no
1492 DEFAULT_wxUSE_BMPBUTTON=no
1493 DEFAULT_wxUSE_CALCTRL=no
1494 DEFAULT_wxUSE_CARET=no
1495 DEFAULT_wxUSE_CHECKBOX=no
1496 DEFAULT_wxUSE_CHECKLST=no
1497 DEFAULT_wxUSE_CHOICE=no
1498 DEFAULT_wxUSE_COMBOBOX=no
1499 DEFAULT_wxUSE_GAUGE=no
1500 DEFAULT_wxUSE_GRID=no
1501 DEFAULT_wxUSE_NEW_GRID=no
1502 DEFAULT_wxUSE_IMAGLIST=no
1503 DEFAULT_wxUSE_LISTBOX=no
1504 DEFAULT_wxUSE_LISTCTRL=no
1505 DEFAULT_wxUSE_NOTEBOOK=no
1506 DEFAULT_wxUSE_PROPSHEET=no
1507 DEFAULT_wxUSE_RADIOBOX=no
1508 DEFAULT_wxUSE_RADIOBTN=no
1509 DEFAULT_wxUSE_SASH=no
1510 DEFAULT_wxUSE_SCROLLBAR=no
1511 DEFAULT_wxUSE_SLIDER=no
1512 DEFAULT_wxUSE_SPINBTN=no
1513 DEFAULT_wxUSE_SPINCTRL=no
1514 DEFAULT_wxUSE_SPLITTER=no
1515 DEFAULT_wxUSE_STATBMP=no
1516 DEFAULT_wxUSE_STATBOX=no
1517 DEFAULT_wxUSE_STATLINE=no
1518 DEFAULT_wxUSE_STATTEXT=no
1519 DEFAULT_wxUSE_STATUSBAR=yes
1520 DEFAULT_wxUSE_TABDIALOG=no
1521 DEFAULT_wxUSE_TEXTCTRL=no
1522 DEFAULT_wxUSE_TOGGLEBTN=no
1523 DEFAULT_wxUSE_TOOLBAR=no
1524 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1525 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1526 DEFAULT_wxUSE_TREECTRL=no
1527 DEFAULT_wxUSE_POPUPWIN=no
1528
1529 DEFAULT_wxUSE_UNICODE=no
1530 DEFAULT_wxUSE_WCSRTOMBS=no
1531
1532 DEFAULT_wxUSE_IMAGE=no
1533 DEFAULT_wxUSE_GIF=no
1534 DEFAULT_wxUSE_PCX=no
1535 DEFAULT_wxUSE_PNM=no
1536 DEFAULT_wxUSE_XPM=no
1537 else
1538 DEFAULT_wxUSE_UNIVERSAL=no
1539
1540 DEFAULT_wxUSE_THREADS=yes
1541
1542 DEFAULT_wxUSE_SHARED=yes
1543 DEFAULT_wxUSE_BURNT_NAME=no
1544 DEFAULT_wxUSE_OPTIMISE=yes
1545 DEFAULT_wxUSE_PROFILE=no
1546 DEFAULT_wxUSE_NO_DEPS=no
1547 DEFAULT_wxUSE_NO_RTTI=no
1548 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1549 DEFAULT_wxUSE_PERMISSIVE=no
1550 DEFAULT_wxUSE_DEBUG_FLAG=no
1551 DEFAULT_wxUSE_DEBUG_INFO=no
1552 DEFAULT_wxUSE_DEBUG_GDB=no
1553 DEFAULT_wxUSE_MEM_TRACING=no
1554 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1555 DEFAULT_wxUSE_DMALLOC=no
1556 DEFAULT_wxUSE_APPLE_IEEE=yes
1557
1558 DEFAULT_wxUSE_LOG=yes
1559 DEFAULT_wxUSE_LOGWINDOW=yes
1560 DEFAULT_wxUSE_LOGGUI=yes
1561
1562 DEFAULT_wxUSE_GUI=yes
1563
1564 DEFAULT_wxUSE_REGEX=yes
1565 DEFAULT_wxUSE_ZLIB=yes
1566 DEFAULT_wxUSE_LIBPNG=yes
1567 DEFAULT_wxUSE_LIBJPEG=yes
1568 DEFAULT_wxUSE_LIBTIFF=yes
1569 DEFAULT_wxUSE_ODBC=no
1570 DEFAULT_wxUSE_FREETYPE=no
1571 DEFAULT_wxUSE_OPENGL=no
1572
1573 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1574 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1575 DEFAULT_wxUSE_STD_IOSTREAM=no
1576 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1577 DEFAULT_wxUSE_DATETIME=yes
1578 DEFAULT_wxUSE_TIMEDATE=no
1579 DEFAULT_wxUSE_TIMER=yes
1580 DEFAULT_wxUSE_STOPWATCH=yes
1581 DEFAULT_wxUSE_FILE=yes
1582 DEFAULT_wxUSE_FFILE=yes
1583 DEFAULT_wxUSE_TEXTFILE=yes
1584 DEFAULT_wxUSE_WAVE=no
1585 DEFAULT_wxUSE_INTL=yes
1586 DEFAULT_wxUSE_CONFIG=yes
1587 DEFAULT_wxUSE_FONTMAP=yes
1588 DEFAULT_wxUSE_STREAMS=yes
1589 DEFAULT_wxUSE_SOCKETS=yes
1590 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1591 DEFAULT_wxUSE_SERIAL=yes
1592 DEFAULT_wxUSE_JOYSTICK=yes
1593 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1594 DEFAULT_wxUSE_LONGLONG=yes
1595 DEFAULT_wxUSE_GEOMETRY=yes
1596
1597 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1598 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1599 DEFAULT_wxUSE_POSTSCRIPT=yes
1600
1601 DEFAULT_wxUSE_X_RESOURCES=no
1602 DEFAULT_wxUSE_CLIPBOARD=yes
1603 DEFAULT_wxUSE_TOOLTIPS=yes
1604 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1605 DEFAULT_wxUSE_DRAGIMAGE=yes
1606 DEFAULT_wxUSE_SPLINES=yes
1607
1608 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1609 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1610 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1611
1612 DEFAULT_wxUSE_PROLOGIO=yes
1613 DEFAULT_wxUSE_RESOURCES=yes
1614 DEFAULT_wxUSE_CONSTRAINTS=yes
1615 DEFAULT_wxUSE_IPC=yes
1616 DEFAULT_wxUSE_HELP=yes
1617 DEFAULT_wxUSE_MS_HTML_HELP=yes
1618 DEFAULT_wxUSE_WXHTML_HELP=yes
1619 DEFAULT_wxUSE_TREELAYOUT=yes
1620 DEFAULT_wxUSE_METAFILE=yes
1621 DEFAULT_wxUSE_MIMETYPE=yes
1622 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1623
1624 DEFAULT_wxUSE_COMMONDLGS=yes
1625 DEFAULT_wxUSE_CHOICEDLG=yes
1626 DEFAULT_wxUSE_COLOURDLG=yes
1627 DEFAULT_wxUSE_DIRDLG=yes
1628 DEFAULT_wxUSE_FILEDLG=yes
1629 DEFAULT_wxUSE_FINDREPLDLG=yes
1630 DEFAULT_wxUSE_FONTDLG=yes
1631 DEFAULT_wxUSE_MSGDLG=yes
1632 DEFAULT_wxUSE_NUMBERDLG=yes
1633 DEFAULT_wxUSE_TEXTDLG=yes
1634 DEFAULT_wxUSE_STARTUP_TIPS=yes
1635 DEFAULT_wxUSE_PROGRESSDLG=yes
1636 DEFAULT_wxUSE_WIZARDDLG=yes
1637
1638 DEFAULT_wxUSE_MENUS=yes
1639 DEFAULT_wxUSE_MINIFRAME=yes
1640 DEFAULT_wxUSE_HTML=yes
1641 DEFAULT_wxUSE_FILESYSTEM=yes
1642 DEFAULT_wxUSE_FS_INET=yes
1643 DEFAULT_wxUSE_FS_ZIP=yes
1644 DEFAULT_wxUSE_BUSYINFO=yes
1645 DEFAULT_wxUSE_ZIPSTREAM=yes
1646 DEFAULT_wxUSE_VALIDATORS=yes
1647
1648 DEFAULT_wxUSE_ACCEL=yes
1649 DEFAULT_wxUSE_BUTTON=yes
1650 DEFAULT_wxUSE_BMPBUTTON=yes
1651 DEFAULT_wxUSE_CALCTRL=yes
1652 DEFAULT_wxUSE_CARET=yes
1653 DEFAULT_wxUSE_CHECKBOX=yes
1654 DEFAULT_wxUSE_CHECKLST=yes
1655 DEFAULT_wxUSE_CHOICE=yes
1656 DEFAULT_wxUSE_COMBOBOX=yes
1657 DEFAULT_wxUSE_GAUGE=yes
1658 DEFAULT_wxUSE_GRID=yes
1659 DEFAULT_wxUSE_NEW_GRID=yes
1660 DEFAULT_wxUSE_IMAGLIST=yes
1661 DEFAULT_wxUSE_LISTBOX=yes
1662 DEFAULT_wxUSE_LISTCTRL=yes
1663 DEFAULT_wxUSE_NOTEBOOK=yes
1664 DEFAULT_wxUSE_PROPSHEET=yes
1665 DEFAULT_wxUSE_RADIOBOX=yes
1666 DEFAULT_wxUSE_RADIOBTN=yes
1667 DEFAULT_wxUSE_SASH=yes
1668 DEFAULT_wxUSE_SCROLLBAR=yes
1669 DEFAULT_wxUSE_SLIDER=yes
1670 DEFAULT_wxUSE_SPINBTN=yes
1671 DEFAULT_wxUSE_SPINCTRL=yes
1672 DEFAULT_wxUSE_SPLITTER=yes
1673 DEFAULT_wxUSE_STATBMP=yes
1674 DEFAULT_wxUSE_STATBOX=yes
1675 DEFAULT_wxUSE_STATLINE=yes
1676 DEFAULT_wxUSE_STATTEXT=yes
1677 DEFAULT_wxUSE_STATUSBAR=yes
1678 DEFAULT_wxUSE_TABDIALOG=no
1679 DEFAULT_wxUSE_TEXTCTRL=yes
1680 DEFAULT_wxUSE_TOGGLEBTN=yes
1681 DEFAULT_wxUSE_TOOLBAR=yes
1682 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1683 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1684 DEFAULT_wxUSE_TREECTRL=yes
1685 DEFAULT_wxUSE_POPUPWIN=yes
1686
1687 DEFAULT_wxUSE_UNICODE=no
1688 DEFAULT_wxUSE_WCSRTOMBS=no
1689
1690 DEFAULT_wxUSE_IMAGE=yes
1691 DEFAULT_wxUSE_GIF=yes
1692 DEFAULT_wxUSE_PCX=yes
1693 DEFAULT_wxUSE_PNM=yes
1694 DEFAULT_wxUSE_XPM=yes
1695 fi
1696
1697
1698
1699 for toolkit in `echo $ALL_TOOLKITS`; do
1700 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1701 if test "x$LINE" != x ; then
1702 has_toolkit_in_cache=1
1703 eval "DEFAULT_$LINE"
1704 eval "CACHE_$toolkit=1"
1705 fi
1706 done
1707
1708
1709
1710 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1711 echo "configure:1712: checking for --enable-gui" >&5
1712 no_cache=0
1713 # Check whether --enable-gui or --disable-gui was given.
1714 if test "${enable_gui+set}" = set; then
1715 enableval="$enable_gui"
1716
1717 if test "$enableval" = yes; then
1718 ac_cv_use_gui='wxUSE_GUI=yes'
1719 else
1720 ac_cv_use_gui='wxUSE_GUI=no'
1721 fi
1722
1723 else
1724
1725 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1726 if test "x$LINE" != x ; then
1727 eval "DEFAULT_$LINE"
1728 else
1729 no_cache=1
1730 fi
1731
1732 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1733
1734 fi
1735
1736
1737 eval "$ac_cv_use_gui"
1738 if test "$no_cache" != 1; then
1739 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1740 fi
1741
1742 if test "$wxUSE_GUI" = yes; then
1743 echo "$ac_t""yes" 1>&6
1744 else
1745 echo "$ac_t""no" 1>&6
1746 fi
1747
1748
1749 if test "$wxUSE_GUI" = "yes"; then
1750
1751
1752 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1753 echo "configure:1754: checking for --enable-universal" >&5
1754 no_cache=0
1755 # Check whether --enable-universal or --disable-universal was given.
1756 if test "${enable_universal+set}" = set; then
1757 enableval="$enable_universal"
1758
1759 if test "$enableval" = yes; then
1760 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1761 else
1762 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1763 fi
1764
1765 else
1766
1767 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1768 if test "x$LINE" != x ; then
1769 eval "DEFAULT_$LINE"
1770 else
1771 no_cache=1
1772 fi
1773
1774 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1775
1776 fi
1777
1778
1779 eval "$ac_cv_use_universal"
1780 if test "$no_cache" != 1; then
1781 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1782 fi
1783
1784 if test "$wxUSE_UNIVERSAL" = yes; then
1785 echo "$ac_t""yes" 1>&6
1786 else
1787 echo "$ac_t""no" 1>&6
1788 fi
1789
1790 # Check whether --with-gtk or --without-gtk was given.
1791 if test "${with_gtk+set}" = set; then
1792 withval="$with_gtk"
1793 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1794 fi
1795
1796 # Check whether --with-motif or --without-motif was given.
1797 if test "${with_motif+set}" = set; then
1798 withval="$with_motif"
1799 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1800 fi
1801
1802 # Check whether --with-mac or --without-mac was given.
1803 if test "${with_mac+set}" = set; then
1804 withval="$with_mac"
1805 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1806 fi
1807
1808 # Check whether --with-wine or --without-wine was given.
1809 if test "${with_wine+set}" = set; then
1810 withval="$with_wine"
1811 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1812 fi
1813
1814 # Check whether --with-cygwin or --without-cygwin was given.
1815 if test "${with_cygwin+set}" = set; then
1816 withval="$with_cygwin"
1817 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1818 fi
1819
1820 # Check whether --with-mingw or --without-mingw was given.
1821 if test "${with_mingw+set}" = set; then
1822 withval="$with_mingw"
1823 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1824 fi
1825
1826 # Check whether --with-pm or --without-pm was given.
1827 if test "${with_pm+set}" = set; then
1828 withval="$with_pm"
1829 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1830 fi
1831
1832 # Check whether --with-mgl or --without-mgl was given.
1833 if test "${with_mgl+set}" = set; then
1834 withval="$with_mgl"
1835 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1836 fi
1837
1838
1839 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1840 if test "${enable_gtk2+set}" = set; then
1841 enableval="$enable_gtk2"
1842 wxUSE_GTK2=1
1843 else
1844 wxUSE_GTK2=0
1845 fi
1846
1847
1848
1849 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1850 echo "configure:1851: checking for --with-libpng" >&5
1851 no_cache=0
1852 # Check whether --with-libpng or --without-libpng was given.
1853 if test "${with_libpng+set}" = set; then
1854 withval="$with_libpng"
1855
1856 if test "$withval" = yes; then
1857 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1858 elif test "$withval" = no; then
1859 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1860 elif test "$withval" = sys; then
1861 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1862 else
1863 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1864 fi
1865
1866 else
1867
1868 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1869 if test "x$LINE" != x ; then
1870 eval "DEFAULT_$LINE"
1871 else
1872 no_cache=1
1873 fi
1874
1875 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1876
1877 fi
1878
1879
1880 eval "$ac_cv_use_libpng"
1881 if test "$no_cache" != 1; then
1882 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1883 fi
1884
1885 if test "$wxUSE_LIBPNG" = yes; then
1886 echo "$ac_t""yes" 1>&6
1887 elif test "$wxUSE_LIBPNG" = no; then
1888 echo "$ac_t""no" 1>&6
1889 elif test "$wxUSE_LIBPNG" = sys; then
1890 echo "$ac_t""system version" 1>&6
1891 else
1892 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1893 fi
1894
1895
1896 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1897 echo "configure:1898: checking for --with-libjpeg" >&5
1898 no_cache=0
1899 # Check whether --with-libjpeg or --without-libjpeg was given.
1900 if test "${with_libjpeg+set}" = set; then
1901 withval="$with_libjpeg"
1902
1903 if test "$withval" = yes; then
1904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1905 elif test "$withval" = no; then
1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1907 elif test "$withval" = sys; then
1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1909 else
1910 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1911 fi
1912
1913 else
1914
1915 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1916 if test "x$LINE" != x ; then
1917 eval "DEFAULT_$LINE"
1918 else
1919 no_cache=1
1920 fi
1921
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1923
1924 fi
1925
1926
1927 eval "$ac_cv_use_libjpeg"
1928 if test "$no_cache" != 1; then
1929 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1930 fi
1931
1932 if test "$wxUSE_LIBJPEG" = yes; then
1933 echo "$ac_t""yes" 1>&6
1934 elif test "$wxUSE_LIBJPEG" = no; then
1935 echo "$ac_t""no" 1>&6
1936 elif test "$wxUSE_LIBJPEG" = sys; then
1937 echo "$ac_t""system version" 1>&6
1938 else
1939 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1940 fi
1941
1942
1943 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1944 echo "configure:1945: checking for --with-libtiff" >&5
1945 no_cache=0
1946 # Check whether --with-libtiff or --without-libtiff was given.
1947 if test "${with_libtiff+set}" = set; then
1948 withval="$with_libtiff"
1949
1950 if test "$withval" = yes; then
1951 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1952 elif test "$withval" = no; then
1953 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1954 elif test "$withval" = sys; then
1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1956 else
1957 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1958 fi
1959
1960 else
1961
1962 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1963 if test "x$LINE" != x ; then
1964 eval "DEFAULT_$LINE"
1965 else
1966 no_cache=1
1967 fi
1968
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1970
1971 fi
1972
1973
1974 eval "$ac_cv_use_libtiff"
1975 if test "$no_cache" != 1; then
1976 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1977 fi
1978
1979 if test "$wxUSE_LIBTIFF" = yes; then
1980 echo "$ac_t""yes" 1>&6
1981 elif test "$wxUSE_LIBTIFF" = no; then
1982 echo "$ac_t""no" 1>&6
1983 elif test "$wxUSE_LIBTIFF" = sys; then
1984 echo "$ac_t""system version" 1>&6
1985 else
1986 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1987 fi
1988
1989
1990 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1991 echo "configure:1992: checking for --with-freetype" >&5
1992 no_cache=0
1993 # Check whether --with-freetype or --without-freetype was given.
1994 if test "${with_freetype+set}" = set; then
1995 withval="$with_freetype"
1996
1997 if test "$withval" = yes; then
1998 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1999 elif test "$withval" = no; then
2000 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2001 elif test "$withval" = sys; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2003 else
2004 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2005 fi
2006
2007 else
2008
2009 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2010 if test "x$LINE" != x ; then
2011 eval "DEFAULT_$LINE"
2012 else
2013 no_cache=1
2014 fi
2015
2016 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2017
2018 fi
2019
2020
2021 eval "$ac_cv_use_freetype"
2022 if test "$no_cache" != 1; then
2023 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2024 fi
2025
2026 if test "$wxUSE_FREETYPE" = yes; then
2027 echo "$ac_t""yes" 1>&6
2028 elif test "$wxUSE_FREETYPE" = no; then
2029 echo "$ac_t""no" 1>&6
2030 elif test "$wxUSE_FREETYPE" = sys; then
2031 echo "$ac_t""system version" 1>&6
2032 else
2033 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2034 fi
2035
2036
2037 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2038 echo "configure:2039: checking for --with-opengl" >&5
2039 no_cache=0
2040 # Check whether --with-opengl or --without-opengl was given.
2041 if test "${with_opengl+set}" = set; then
2042 withval="$with_opengl"
2043
2044 if test "$withval" = yes; then
2045 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2046 else
2047 ac_cv_use_opengl='wxUSE_OPENGL=no'
2048 fi
2049
2050 else
2051
2052 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2053 if test "x$LINE" != x ; then
2054 eval "DEFAULT_$LINE"
2055 else
2056 no_cache=1
2057 fi
2058
2059 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2060
2061 fi
2062
2063
2064 eval "$ac_cv_use_opengl"
2065 if test "$no_cache" != 1; then
2066 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2067 fi
2068
2069 if test "$wxUSE_OPENGL" = yes; then
2070 echo "$ac_t""yes" 1>&6
2071 else
2072 echo "$ac_t""no" 1>&6
2073 fi
2074
2075
2076 fi
2077
2078
2079 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2080 echo "configure:2081: checking for --with-dmalloc" >&5
2081 no_cache=0
2082 # Check whether --with-dmalloc or --without-dmalloc was given.
2083 if test "${with_dmalloc+set}" = set; then
2084 withval="$with_dmalloc"
2085
2086 if test "$withval" = yes; then
2087 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2088 else
2089 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2090 fi
2091
2092 else
2093
2094 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2095 if test "x$LINE" != x ; then
2096 eval "DEFAULT_$LINE"
2097 else
2098 no_cache=1
2099 fi
2100
2101 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2102
2103 fi
2104
2105
2106 eval "$ac_cv_use_dmalloc"
2107 if test "$no_cache" != 1; then
2108 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2109 fi
2110
2111 if test "$wxUSE_DMALLOC" = yes; then
2112 echo "$ac_t""yes" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2115 fi
2116
2117
2118 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2119 echo "configure:2120: checking for --with-regex" >&5
2120 no_cache=0
2121 # Check whether --with-regex or --without-regex was given.
2122 if test "${with_regex+set}" = set; then
2123 withval="$with_regex"
2124
2125 if test "$withval" = yes; then
2126 ac_cv_use_regex='wxUSE_REGEX=yes'
2127 elif test "$withval" = no; then
2128 ac_cv_use_regex='wxUSE_REGEX=no'
2129 elif test "$withval" = sys; then
2130 ac_cv_use_regex='wxUSE_REGEX=sys'
2131 else
2132 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2133 fi
2134
2135 else
2136
2137 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2138 if test "x$LINE" != x ; then
2139 eval "DEFAULT_$LINE"
2140 else
2141 no_cache=1
2142 fi
2143
2144 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2145
2146 fi
2147
2148
2149 eval "$ac_cv_use_regex"
2150 if test "$no_cache" != 1; then
2151 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2152 fi
2153
2154 if test "$wxUSE_REGEX" = yes; then
2155 echo "$ac_t""yes" 1>&6
2156 elif test "$wxUSE_REGEX" = no; then
2157 echo "$ac_t""no" 1>&6
2158 elif test "$wxUSE_REGEX" = sys; then
2159 echo "$ac_t""system version" 1>&6
2160 else
2161 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2162 fi
2163
2164
2165 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2166 echo "configure:2167: checking for --with-zlib" >&5
2167 no_cache=0
2168 # Check whether --with-zlib or --without-zlib was given.
2169 if test "${with_zlib+set}" = set; then
2170 withval="$with_zlib"
2171
2172 if test "$withval" = yes; then
2173 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2174 elif test "$withval" = no; then
2175 ac_cv_use_zlib='wxUSE_ZLIB=no'
2176 elif test "$withval" = sys; then
2177 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2178 else
2179 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2180 fi
2181
2182 else
2183
2184 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
2191 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2192
2193 fi
2194
2195
2196 eval "$ac_cv_use_zlib"
2197 if test "$no_cache" != 1; then
2198 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2199 fi
2200
2201 if test "$wxUSE_ZLIB" = yes; then
2202 echo "$ac_t""yes" 1>&6
2203 elif test "$wxUSE_ZLIB" = no; then
2204 echo "$ac_t""no" 1>&6
2205 elif test "$wxUSE_ZLIB" = sys; then
2206 echo "$ac_t""system version" 1>&6
2207 else
2208 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2209 fi
2210
2211
2212 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2213 echo "configure:2214: checking for --with-odbc" >&5
2214 no_cache=0
2215 # Check whether --with-odbc or --without-odbc was given.
2216 if test "${with_odbc+set}" = set; then
2217 withval="$with_odbc"
2218
2219 if test "$withval" = yes; then
2220 ac_cv_use_odbc='wxUSE_ODBC=yes'
2221 else
2222 ac_cv_use_odbc='wxUSE_ODBC=no'
2223 fi
2224
2225 else
2226
2227 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2228 if test "x$LINE" != x ; then
2229 eval "DEFAULT_$LINE"
2230 else
2231 no_cache=1
2232 fi
2233
2234 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2235
2236 fi
2237
2238
2239 eval "$ac_cv_use_odbc"
2240 if test "$no_cache" != 1; then
2241 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2242 fi
2243
2244 if test "$wxUSE_ODBC" = yes; then
2245 echo "$ac_t""yes" 1>&6
2246 else
2247 echo "$ac_t""no" 1>&6
2248 fi
2249
2250
2251
2252
2253
2254 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2255 echo "configure:2256: checking for --enable-shared" >&5
2256 no_cache=0
2257 # Check whether --enable-shared or --disable-shared was given.
2258 if test "${enable_shared+set}" = set; then
2259 enableval="$enable_shared"
2260
2261 if test "$enableval" = yes; then
2262 ac_cv_use_shared='wxUSE_SHARED=yes'
2263 else
2264 ac_cv_use_shared='wxUSE_SHARED=no'
2265 fi
2266
2267 else
2268
2269 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
2276 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2277
2278 fi
2279
2280
2281 eval "$ac_cv_use_shared"
2282 if test "$no_cache" != 1; then
2283 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2284 fi
2285
2286 if test "$wxUSE_SHARED" = yes; then
2287 echo "$ac_t""yes" 1>&6
2288 else
2289 echo "$ac_t""no" 1>&6
2290 fi
2291
2292
2293 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2294 echo "configure:2295: checking for --enable-burnt_name" >&5
2295 no_cache=0
2296 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2297 if test "${enable_burnt_name+set}" = set; then
2298 enableval="$enable_burnt_name"
2299
2300 if test "$enableval" = yes; then
2301 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2302 else
2303 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2304 fi
2305
2306 else
2307
2308 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2316
2317 fi
2318
2319
2320 eval "$ac_cv_use_burnt_name"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_BURNT_NAME" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2333 echo "configure:2334: checking for --enable-optimise" >&5
2334 no_cache=0
2335 # Check whether --enable-optimise or --disable-optimise was given.
2336 if test "${enable_optimise+set}" = set; then
2337 enableval="$enable_optimise"
2338
2339 if test "$enableval" = yes; then
2340 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2341 else
2342 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2343 fi
2344
2345 else
2346
2347 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2355
2356 fi
2357
2358
2359 eval "$ac_cv_use_optimise"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_OPTIMISE" = yes; then
2365 echo "$ac_t""yes" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2368 fi
2369
2370
2371 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2372 echo "configure:2373: checking for --enable-debug" >&5
2373 no_cache=0
2374 # Check whether --enable-debug or --disable-debug was given.
2375 if test "${enable_debug+set}" = set; then
2376 enableval="$enable_debug"
2377
2378 if test "$enableval" = yes; then
2379 ac_cv_use_debug='wxUSE_DEBUG=yes'
2380 else
2381 ac_cv_use_debug='wxUSE_DEBUG=no'
2382 fi
2383
2384 else
2385
2386 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2387 if test "x$LINE" != x ; then
2388 eval "DEFAULT_$LINE"
2389 else
2390 no_cache=1
2391 fi
2392
2393 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2394
2395 fi
2396
2397
2398 eval "$ac_cv_use_debug"
2399 if test "$no_cache" != 1; then
2400 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2401 fi
2402
2403 if test "$wxUSE_DEBUG" = yes; then
2404 echo "$ac_t""yes" 1>&6
2405 else
2406 echo "$ac_t""no" 1>&6
2407 fi
2408
2409
2410 if test "$wxUSE_DEBUG" = "yes"; then
2411 DEFAULT_wxUSE_DEBUG_FLAG=yes
2412 DEFAULT_wxUSE_DEBUG_INFO=yes
2413 elif test "$wxUSE_DEBUG" = "no"; then
2414 DEFAULT_wxUSE_DEBUG_FLAG=no
2415 DEFAULT_wxUSE_DEBUG_INFO=no
2416 fi
2417
2418
2419 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2420 echo "configure:2421: checking for --enable-debug_flag" >&5
2421 no_cache=0
2422 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2423 if test "${enable_debug_flag+set}" = set; then
2424 enableval="$enable_debug_flag"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2428 else
2429 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2430 fi
2431
2432 else
2433
2434 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2442
2443 fi
2444
2445
2446 eval "$ac_cv_use_debug_flag"
2447 if test "$no_cache" != 1; then
2448 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2449 fi
2450
2451 if test "$wxUSE_DEBUG_FLAG" = yes; then
2452 echo "$ac_t""yes" 1>&6
2453 else
2454 echo "$ac_t""no" 1>&6
2455 fi
2456
2457
2458 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2459 echo "configure:2460: checking for --enable-debug_info" >&5
2460 no_cache=0
2461 # Check whether --enable-debug_info or --disable-debug_info was given.
2462 if test "${enable_debug_info+set}" = set; then
2463 enableval="$enable_debug_info"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2467 else
2468 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2469 fi
2470
2471 else
2472
2473 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2481
2482 fi
2483
2484
2485 eval "$ac_cv_use_debug_info"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_DEBUG_INFO" = yes; then
2491 echo "$ac_t""yes" 1>&6
2492 else
2493 echo "$ac_t""no" 1>&6
2494 fi
2495
2496
2497 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2498 echo "configure:2499: checking for --enable-debug_gdb" >&5
2499 no_cache=0
2500 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2501 if test "${enable_debug_gdb+set}" = set; then
2502 enableval="$enable_debug_gdb"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2506 else
2507 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2508 fi
2509
2510 else
2511
2512 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2520
2521 fi
2522
2523
2524 eval "$ac_cv_use_debug_gdb"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_DEBUG_GDB" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
2535
2536 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2537 echo "configure:2538: checking for --enable-debug_cntxt" >&5
2538 no_cache=0
2539 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2540 if test "${enable_debug_cntxt+set}" = set; then
2541 enableval="$enable_debug_cntxt"
2542
2543 if test "$enableval" = yes; then
2544 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2545 else
2546 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2547 fi
2548
2549 else
2550
2551 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2559
2560 fi
2561
2562
2563 eval "$ac_cv_use_debug_cntxt"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2569 echo "$ac_t""yes" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
2574
2575 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2576 echo "configure:2577: checking for --enable-mem_tracing" >&5
2577 no_cache=0
2578 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2579 if test "${enable_mem_tracing+set}" = set; then
2580 enableval="$enable_mem_tracing"
2581
2582 if test "$enableval" = yes; then
2583 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2584 else
2585 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2586 fi
2587
2588 else
2589
2590 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2598
2599 fi
2600
2601
2602 eval "$ac_cv_use_mem_tracing"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxUSE_MEM_TRACING" = yes; then
2608 echo "$ac_t""yes" 1>&6
2609 else
2610 echo "$ac_t""no" 1>&6
2611 fi
2612
2613
2614 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2615 echo "configure:2616: checking for --enable-profile" >&5
2616 no_cache=0
2617 # Check whether --enable-profile or --disable-profile was given.
2618 if test "${enable_profile+set}" = set; then
2619 enableval="$enable_profile"
2620
2621 if test "$enableval" = yes; then
2622 ac_cv_use_profile='wxUSE_PROFILE=yes'
2623 else
2624 ac_cv_use_profile='wxUSE_PROFILE=no'
2625 fi
2626
2627 else
2628
2629 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
2636 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2637
2638 fi
2639
2640
2641 eval "$ac_cv_use_profile"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_PROFILE" = yes; then
2647 echo "$ac_t""yes" 1>&6
2648 else
2649 echo "$ac_t""no" 1>&6
2650 fi
2651
2652
2653 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2654 echo "configure:2655: checking for --enable-no_rtti" >&5
2655 no_cache=0
2656 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2657 if test "${enable_no_rtti+set}" = set; then
2658 enableval="$enable_no_rtti"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2662 else
2663 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2664 fi
2665
2666 else
2667
2668 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2676
2677 fi
2678
2679
2680 eval "$ac_cv_use_no_rtti"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_NO_RTTI" = yes; then
2686 echo "$ac_t""yes" 1>&6
2687 else
2688 echo "$ac_t""no" 1>&6
2689 fi
2690
2691
2692 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2693 echo "configure:2694: checking for --enable-no_exceptions" >&5
2694 no_cache=0
2695 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2696 if test "${enable_no_exceptions+set}" = set; then
2697 enableval="$enable_no_exceptions"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2701 else
2702 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2703 fi
2704
2705 else
2706
2707 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2715
2716 fi
2717
2718
2719 eval "$ac_cv_use_no_exceptions"
2720 if test "$no_cache" != 1; then
2721 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2722 fi
2723
2724 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2725 echo "$ac_t""yes" 1>&6
2726 else
2727 echo "$ac_t""no" 1>&6
2728 fi
2729
2730
2731 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2732 echo "configure:2733: checking for --enable-permissive" >&5
2733 no_cache=0
2734 # Check whether --enable-permissive or --disable-permissive was given.
2735 if test "${enable_permissive+set}" = set; then
2736 enableval="$enable_permissive"
2737
2738 if test "$enableval" = yes; then
2739 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2740 else
2741 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2742 fi
2743
2744 else
2745
2746 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2754
2755 fi
2756
2757
2758 eval "$ac_cv_use_permissive"
2759 if test "$no_cache" != 1; then
2760 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2761 fi
2762
2763 if test "$wxUSE_PERMISSIVE" = yes; then
2764 echo "$ac_t""yes" 1>&6
2765 else
2766 echo "$ac_t""no" 1>&6
2767 fi
2768
2769
2770 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2771 echo "configure:2772: checking for --enable-no_deps" >&5
2772 no_cache=0
2773 # Check whether --enable-no_deps or --disable-no_deps was given.
2774 if test "${enable_no_deps+set}" = set; then
2775 enableval="$enable_no_deps"
2776
2777 if test "$enableval" = yes; then
2778 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2779 else
2780 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2781 fi
2782
2783 else
2784
2785 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2793
2794 fi
2795
2796
2797 eval "$ac_cv_use_no_deps"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_NO_DEPS" = yes; then
2803 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809
2810 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2811 echo "configure:2812: checking for --enable-compat20" >&5
2812 no_cache=0
2813 # Check whether --enable-compat20 or --disable-compat20 was given.
2814 if test "${enable_compat20+set}" = set; then
2815 enableval="$enable_compat20"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2819 else
2820 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2821 fi
2822
2823 else
2824
2825 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2833
2834 fi
2835
2836
2837 eval "$ac_cv_use_compat20"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2850 echo "configure:2851: checking for --enable-compat22" >&5
2851 no_cache=0
2852 # Check whether --enable-compat22 or --disable-compat22 was given.
2853 if test "${enable_compat22+set}" = set; then
2854 enableval="$enable_compat22"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2858 else
2859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2860 fi
2861
2862 else
2863
2864 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2872
2873 fi
2874
2875
2876 eval "$ac_cv_use_compat22"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888
2889
2890 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2891 echo "configure:2892: checking for --enable-intl" >&5
2892 no_cache=0
2893 # Check whether --enable-intl or --disable-intl was given.
2894 if test "${enable_intl+set}" = set; then
2895 enableval="$enable_intl"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_intl='wxUSE_INTL=yes'
2899 else
2900 ac_cv_use_intl='wxUSE_INTL=no'
2901 fi
2902
2903 else
2904
2905 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2913
2914 fi
2915
2916
2917 eval "$ac_cv_use_intl"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_INTL" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2930 echo "configure:2931: checking for --enable-config" >&5
2931 no_cache=0
2932 # Check whether --enable-config or --disable-config was given.
2933 if test "${enable_config+set}" = set; then
2934 enableval="$enable_config"
2935
2936 if test "$enableval" = yes; then
2937 ac_cv_use_config='wxUSE_CONFIG=yes'
2938 else
2939 ac_cv_use_config='wxUSE_CONFIG=no'
2940 fi
2941
2942 else
2943
2944 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2952
2953 fi
2954
2955
2956 eval "$ac_cv_use_config"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$wxUSE_CONFIG" = yes; then
2962 echo "$ac_t""yes" 1>&6
2963 else
2964 echo "$ac_t""no" 1>&6
2965 fi
2966
2967
2968
2969 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2970 echo "configure:2971: checking for --enable-sockets" >&5
2971 no_cache=0
2972 # Check whether --enable-sockets or --disable-sockets was given.
2973 if test "${enable_sockets+set}" = set; then
2974 enableval="$enable_sockets"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2978 else
2979 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2980 fi
2981
2982 else
2983
2984 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2992
2993 fi
2994
2995
2996 eval "$ac_cv_use_sockets"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_SOCKETS" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008
3009 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3010 echo "configure:3011: checking for --enable-ipc" >&5
3011 no_cache=0
3012 # Check whether --enable-ipc or --disable-ipc was given.
3013 if test "${enable_ipc+set}" = set; then
3014 enableval="$enable_ipc"
3015
3016 if test "$enableval" = yes; then
3017 ac_cv_use_ipc='wxUSE_IPC=yes'
3018 else
3019 ac_cv_use_ipc='wxUSE_IPC=no'
3020 fi
3021
3022 else
3023
3024 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3025 if test "x$LINE" != x ; then
3026 eval "DEFAULT_$LINE"
3027 else
3028 no_cache=1
3029 fi
3030
3031 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3032
3033 fi
3034
3035
3036 eval "$ac_cv_use_ipc"
3037 if test "$no_cache" != 1; then
3038 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3039 fi
3040
3041 if test "$wxUSE_IPC" = yes; then
3042 echo "$ac_t""yes" 1>&6
3043 else
3044 echo "$ac_t""no" 1>&6
3045 fi
3046
3047
3048
3049 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3050 echo "configure:3051: checking for --enable-cmdline" >&5
3051 no_cache=0
3052 # Check whether --enable-cmdline or --disable-cmdline was given.
3053 if test "${enable_cmdline+set}" = set; then
3054 enableval="$enable_cmdline"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3058 else
3059 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3060 fi
3061
3062 else
3063
3064 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3072
3073 fi
3074
3075
3076 eval "$ac_cv_use_cmdline"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3089 echo "configure:3090: checking for --enable-datetime" >&5
3090 no_cache=0
3091 # Check whether --enable-datetime or --disable-datetime was given.
3092 if test "${enable_datetime+set}" = set; then
3093 enableval="$enable_datetime"
3094
3095 if test "$enableval" = yes; then
3096 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3097 else
3098 ac_cv_use_datetime='wxUSE_DATETIME=no'
3099 fi
3100
3101 else
3102
3103 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3104 if test "x$LINE" != x ; then
3105 eval "DEFAULT_$LINE"
3106 else
3107 no_cache=1
3108 fi
3109
3110 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3111
3112 fi
3113
3114
3115 eval "$ac_cv_use_datetime"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_DATETIME" = yes; then
3121 echo "$ac_t""yes" 1>&6
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125
3126
3127 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3128 echo "configure:3129: checking for --enable-timedate" >&5
3129 no_cache=0
3130 # Check whether --enable-timedate or --disable-timedate was given.
3131 if test "${enable_timedate+set}" = set; then
3132 enableval="$enable_timedate"
3133
3134 if test "$enableval" = yes; then
3135 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3136 else
3137 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3138 fi
3139
3140 else
3141
3142 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3150
3151 fi
3152
3153
3154 eval "$ac_cv_use_timedate"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_TIMEDATE" = yes; then
3160 echo "$ac_t""yes" 1>&6
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165
3166 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3167 echo "configure:3168: checking for --enable-stopwatch" >&5
3168 no_cache=0
3169 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3170 if test "${enable_stopwatch+set}" = set; then
3171 enableval="$enable_stopwatch"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3175 else
3176 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3177 fi
3178
3179 else
3180
3181 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3189
3190 fi
3191
3192
3193 eval "$ac_cv_use_stopwatch"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_STOPWATCH" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
3205 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3206 echo "configure:3207: checking for --enable-dialupman" >&5
3207 no_cache=0
3208 # Check whether --enable-dialupman or --disable-dialupman was given.
3209 if test "${enable_dialupman+set}" = set; then
3210 enableval="$enable_dialupman"
3211
3212 if test "$enableval" = yes; then
3213 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3214 else
3215 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3216 fi
3217
3218 else
3219
3220 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
3227 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3228
3229 fi
3230
3231
3232 eval "$ac_cv_use_dialupman"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3238 echo "$ac_t""yes" 1>&6
3239 else
3240 echo "$ac_t""no" 1>&6
3241 fi
3242
3243
3244 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3245 echo "configure:3246: checking for --enable-apple_ieee" >&5
3246 no_cache=0
3247 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3248 if test "${enable_apple_ieee+set}" = set; then
3249 enableval="$enable_apple_ieee"
3250
3251 if test "$enableval" = yes; then
3252 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3253 else
3254 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3255 fi
3256
3257 else
3258
3259 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3267
3268 fi
3269
3270
3271 eval "$ac_cv_use_apple_ieee"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_APPLE_IEEE" = yes; then
3277 echo "$ac_t""yes" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282
3283 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3284 echo "configure:3285: checking for --enable-timer" >&5
3285 no_cache=0
3286 # Check whether --enable-timer or --disable-timer was given.
3287 if test "${enable_timer+set}" = set; then
3288 enableval="$enable_timer"
3289
3290 if test "$enableval" = yes; then
3291 ac_cv_use_timer='wxUSE_TIMER=yes'
3292 else
3293 ac_cv_use_timer='wxUSE_TIMER=no'
3294 fi
3295
3296 else
3297
3298 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3299 if test "x$LINE" != x ; then
3300 eval "DEFAULT_$LINE"
3301 else
3302 no_cache=1
3303 fi
3304
3305 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3306
3307 fi
3308
3309
3310 eval "$ac_cv_use_timer"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_TIMER" = yes; then
3316 echo "$ac_t""yes" 1>&6
3317 else
3318 echo "$ac_t""no" 1>&6
3319 fi
3320
3321
3322 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3323 echo "configure:3324: checking for --enable-wave" >&5
3324 no_cache=0
3325 # Check whether --enable-wave or --disable-wave was given.
3326 if test "${enable_wave+set}" = set; then
3327 enableval="$enable_wave"
3328
3329 if test "$enableval" = yes; then
3330 ac_cv_use_wave='wxUSE_WAVE=yes'
3331 else
3332 ac_cv_use_wave='wxUSE_WAVE=no'
3333 fi
3334
3335 else
3336
3337 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3345
3346 fi
3347
3348
3349 eval "$ac_cv_use_wave"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_WAVE" = yes; then
3355 echo "$ac_t""yes" 1>&6
3356 else
3357 echo "$ac_t""no" 1>&6
3358 fi
3359
3360
3361 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3362 echo "configure:3363: checking for --enable-fraction" >&5
3363 no_cache=0
3364 # Check whether --enable-fraction or --disable-fraction was given.
3365 if test "${enable_fraction+set}" = set; then
3366 enableval="$enable_fraction"
3367
3368 if test "$enableval" = yes; then
3369 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3370 else
3371 ac_cv_use_fraction='wxUSE_FRACTION=no'
3372 fi
3373
3374 else
3375
3376 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3377 if test "x$LINE" != x ; then
3378 eval "DEFAULT_$LINE"
3379 else
3380 no_cache=1
3381 fi
3382
3383 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3384
3385 fi
3386
3387
3388 eval "$ac_cv_use_fraction"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_FRACTION" = yes; then
3394 echo "$ac_t""yes" 1>&6
3395 else
3396 echo "$ac_t""no" 1>&6
3397 fi
3398
3399
3400 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3401 echo "configure:3402: checking for --enable-dynlib" >&5
3402 no_cache=0
3403 # Check whether --enable-dynlib or --disable-dynlib was given.
3404 if test "${enable_dynlib+set}" = set; then
3405 enableval="$enable_dynlib"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3409 else
3410 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3411 fi
3412
3413 else
3414
3415 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3423
3424 fi
3425
3426
3427 eval "$ac_cv_use_dynlib"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
3439 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3440 echo "configure:3441: checking for --enable-longlong" >&5
3441 no_cache=0
3442 # Check whether --enable-longlong or --disable-longlong was given.
3443 if test "${enable_longlong+set}" = set; then
3444 enableval="$enable_longlong"
3445
3446 if test "$enableval" = yes; then
3447 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3448 else
3449 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3450 fi
3451
3452 else
3453
3454 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3462
3463 fi
3464
3465
3466 eval "$ac_cv_use_longlong"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_LONGLONG" = yes; then
3472 echo "$ac_t""yes" 1>&6
3473 else
3474 echo "$ac_t""no" 1>&6
3475 fi
3476
3477
3478 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3479 echo "configure:3480: checking for --enable-geometry" >&5
3480 no_cache=0
3481 # Check whether --enable-geometry or --disable-geometry was given.
3482 if test "${enable_geometry+set}" = set; then
3483 enableval="$enable_geometry"
3484
3485 if test "$enableval" = yes; then
3486 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3487 else
3488 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3489 fi
3490
3491 else
3492
3493 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3494 if test "x$LINE" != x ; then
3495 eval "DEFAULT_$LINE"
3496 else
3497 no_cache=1
3498 fi
3499
3500 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3501
3502 fi
3503
3504
3505 eval "$ac_cv_use_geometry"
3506 if test "$no_cache" != 1; then
3507 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3508 fi
3509
3510 if test "$wxUSE_GEOMETRY" = yes; then
3511 echo "$ac_t""yes" 1>&6
3512 else
3513 echo "$ac_t""no" 1>&6
3514 fi
3515
3516
3517 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3518 echo "configure:3519: checking for --enable-log" >&5
3519 no_cache=0
3520 # Check whether --enable-log or --disable-log was given.
3521 if test "${enable_log+set}" = set; then
3522 enableval="$enable_log"
3523
3524 if test "$enableval" = yes; then
3525 ac_cv_use_log='wxUSE_LOG=yes'
3526 else
3527 ac_cv_use_log='wxUSE_LOG=no'
3528 fi
3529
3530 else
3531
3532 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3540
3541 fi
3542
3543
3544 eval "$ac_cv_use_log"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_LOG" = yes; then
3550 echo "$ac_t""yes" 1>&6
3551 else
3552 echo "$ac_t""no" 1>&6
3553 fi
3554
3555
3556 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3557 echo "configure:3558: checking for --enable-streams" >&5
3558 no_cache=0
3559 # Check whether --enable-streams or --disable-streams was given.
3560 if test "${enable_streams+set}" = set; then
3561 enableval="$enable_streams"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_streams='wxUSE_STREAMS=yes'
3565 else
3566 ac_cv_use_streams='wxUSE_STREAMS=no'
3567 fi
3568
3569 else
3570
3571 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3579
3580 fi
3581
3582
3583 eval "$ac_cv_use_streams"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_STREAMS" = yes; then
3589 echo "$ac_t""yes" 1>&6
3590 else
3591 echo "$ac_t""no" 1>&6
3592 fi
3593
3594
3595 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3596 echo "configure:3597: checking for --enable-file" >&5
3597 no_cache=0
3598 # Check whether --enable-file or --disable-file was given.
3599 if test "${enable_file+set}" = set; then
3600 enableval="$enable_file"
3601
3602 if test "$enableval" = yes; then
3603 ac_cv_use_file='wxUSE_FILE=yes'
3604 else
3605 ac_cv_use_file='wxUSE_FILE=no'
3606 fi
3607
3608 else
3609
3610 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3618
3619 fi
3620
3621
3622 eval "$ac_cv_use_file"
3623 if test "$no_cache" != 1; then
3624 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3625 fi
3626
3627 if test "$wxUSE_FILE" = yes; then
3628 echo "$ac_t""yes" 1>&6
3629 else
3630 echo "$ac_t""no" 1>&6
3631 fi
3632
3633
3634 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3635 echo "configure:3636: checking for --enable-ffile" >&5
3636 no_cache=0
3637 # Check whether --enable-ffile or --disable-ffile was given.
3638 if test "${enable_ffile+set}" = set; then
3639 enableval="$enable_ffile"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_ffile='wxUSE_FFILE=yes'
3643 else
3644 ac_cv_use_ffile='wxUSE_FFILE=no'
3645 fi
3646
3647 else
3648
3649 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3657
3658 fi
3659
3660
3661 eval "$ac_cv_use_ffile"
3662 if test "$no_cache" != 1; then
3663 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3664 fi
3665
3666 if test "$wxUSE_FFILE" = yes; then
3667 echo "$ac_t""yes" 1>&6
3668 else
3669 echo "$ac_t""no" 1>&6
3670 fi
3671
3672
3673 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3674 echo "configure:3675: checking for --enable-textfile" >&5
3675 no_cache=0
3676 # Check whether --enable-textfile or --disable-textfile was given.
3677 if test "${enable_textfile+set}" = set; then
3678 enableval="$enable_textfile"
3679
3680 if test "$enableval" = yes; then
3681 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3682 else
3683 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3684 fi
3685
3686 else
3687
3688 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3689 if test "x$LINE" != x ; then
3690 eval "DEFAULT_$LINE"
3691 else
3692 no_cache=1
3693 fi
3694
3695 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3696
3697 fi
3698
3699
3700 eval "$ac_cv_use_textfile"
3701 if test "$no_cache" != 1; then
3702 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3703 fi
3704
3705 if test "$wxUSE_TEXTFILE" = yes; then
3706 echo "$ac_t""yes" 1>&6
3707 else
3708 echo "$ac_t""no" 1>&6
3709 fi
3710
3711
3712 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3713 echo "configure:3714: checking for --enable-fontmap" >&5
3714 no_cache=0
3715 # Check whether --enable-fontmap or --disable-fontmap was given.
3716 if test "${enable_fontmap+set}" = set; then
3717 enableval="$enable_fontmap"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3721 else
3722 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3723 fi
3724
3725 else
3726
3727 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3735
3736 fi
3737
3738
3739 eval "$ac_cv_use_fontmap"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_FONTMAP" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3752 echo "configure:3753: checking for --enable-unicode" >&5
3753 no_cache=0
3754 # Check whether --enable-unicode or --disable-unicode was given.
3755 if test "${enable_unicode+set}" = set; then
3756 enableval="$enable_unicode"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3760 else
3761 ac_cv_use_unicode='wxUSE_UNICODE=no'
3762 fi
3763
3764 else
3765
3766 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3774
3775 fi
3776
3777
3778 eval "$ac_cv_use_unicode"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_UNICODE" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3791 echo "configure:3792: checking for --enable-wcsrtombs" >&5
3792 no_cache=0
3793 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3794 if test "${enable_wcsrtombs+set}" = set; then
3795 enableval="$enable_wcsrtombs"
3796
3797 if test "$enableval" = yes; then
3798 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3799 else
3800 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3801 fi
3802
3803 else
3804
3805 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3806 if test "x$LINE" != x ; then
3807 eval "DEFAULT_$LINE"
3808 else
3809 no_cache=1
3810 fi
3811
3812 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3813
3814 fi
3815
3816
3817 eval "$ac_cv_use_wcsrtombs"
3818 if test "$no_cache" != 1; then
3819 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3820 fi
3821
3822 if test "$wxUSE_WCSRTOMBS" = yes; then
3823 echo "$ac_t""yes" 1>&6
3824 else
3825 echo "$ac_t""no" 1>&6
3826 fi
3827
3828
3829 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3830 echo "configure:3831: checking for --enable-wxprintfv" >&5
3831 no_cache=0
3832 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3833 if test "${enable_wxprintfv+set}" = set; then
3834 enableval="$enable_wxprintfv"
3835
3836 if test "$enableval" = yes; then
3837 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3838 else
3839 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3840 fi
3841
3842 else
3843
3844 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3852
3853 fi
3854
3855
3856 eval "$ac_cv_use_wxprintfv"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3862 echo "$ac_t""yes" 1>&6
3863 else
3864 echo "$ac_t""no" 1>&6
3865 fi
3866
3867
3868 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3869 echo "configure:3870: checking for --enable-std_iostreams" >&5
3870 no_cache=0
3871 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3872 if test "${enable_std_iostreams+set}" = set; then
3873 enableval="$enable_std_iostreams"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3877 else
3878 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3879 fi
3880
3881 else
3882
3883 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3891
3892 fi
3893
3894
3895 eval "$ac_cv_use_std_iostreams"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_STD_IOSTREAM" = yes; then
3901 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906
3907 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3908 echo "configure:3909: checking for --enable-filesystem" >&5
3909 no_cache=0
3910 # Check whether --enable-filesystem or --disable-filesystem was given.
3911 if test "${enable_filesystem+set}" = set; then
3912 enableval="$enable_filesystem"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3916 else
3917 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3918 fi
3919
3920 else
3921
3922 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3930
3931 fi
3932
3933
3934 eval "$ac_cv_use_filesystem"
3935 if test "$no_cache" != 1; then
3936 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3937 fi
3938
3939 if test "$wxUSE_FILESYSTEM" = yes; then
3940 echo "$ac_t""yes" 1>&6
3941 else
3942 echo "$ac_t""no" 1>&6
3943 fi
3944
3945
3946 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3947 echo "configure:3948: checking for --enable-fs_inet" >&5
3948 no_cache=0
3949 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3950 if test "${enable_fs_inet+set}" = set; then
3951 enableval="$enable_fs_inet"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3955 else
3956 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3957 fi
3958
3959 else
3960
3961 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3969
3970 fi
3971
3972
3973 eval "$ac_cv_use_fs_inet"
3974 if test "$no_cache" != 1; then
3975 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3976 fi
3977
3978 if test "$wxUSE_FS_INET" = yes; then
3979 echo "$ac_t""yes" 1>&6
3980 else
3981 echo "$ac_t""no" 1>&6
3982 fi
3983
3984
3985 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3986 echo "configure:3987: checking for --enable-fs_zip" >&5
3987 no_cache=0
3988 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3989 if test "${enable_fs_zip+set}" = set; then
3990 enableval="$enable_fs_zip"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3994 else
3995 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3996 fi
3997
3998 else
3999
4000 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4008
4009 fi
4010
4011
4012 eval "$ac_cv_use_fs_zip"
4013 if test "$no_cache" != 1; then
4014 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4015 fi
4016
4017 if test "$wxUSE_FS_ZIP" = yes; then
4018 echo "$ac_t""yes" 1>&6
4019 else
4020 echo "$ac_t""no" 1>&6
4021 fi
4022
4023
4024 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4025 echo "configure:4026: checking for --enable-zipstream" >&5
4026 no_cache=0
4027 # Check whether --enable-zipstream or --disable-zipstream was given.
4028 if test "${enable_zipstream+set}" = set; then
4029 enableval="$enable_zipstream"
4030
4031 if test "$enableval" = yes; then
4032 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4033 else
4034 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4035 fi
4036
4037 else
4038
4039 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4047
4048 fi
4049
4050
4051 eval "$ac_cv_use_zipstream"
4052 if test "$no_cache" != 1; then
4053 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4054 fi
4055
4056 if test "$wxUSE_ZIPSTREAM" = yes; then
4057 echo "$ac_t""yes" 1>&6
4058 else
4059 echo "$ac_t""no" 1>&6
4060 fi
4061
4062
4063
4064 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4065 echo "configure:4066: checking for --enable-catch_segvs" >&5
4066 no_cache=0
4067 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4068 if test "${enable_catch_segvs+set}" = set; then
4069 enableval="$enable_catch_segvs"
4070
4071 if test "$enableval" = yes; then
4072 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4073 else
4074 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4075 fi
4076
4077 else
4078
4079 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4087
4088 fi
4089
4090
4091 eval "$ac_cv_use_catch_segvs"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4097 echo "$ac_t""yes" 1>&6
4098 else
4099 echo "$ac_t""no" 1>&6
4100 fi
4101
4102
4103 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4104 echo "configure:4105: checking for --enable-snglinst" >&5
4105 no_cache=0
4106 # Check whether --enable-snglinst or --disable-snglinst was given.
4107 if test "${enable_snglinst+set}" = set; then
4108 enableval="$enable_snglinst"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4112 else
4113 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4114 fi
4115
4116 else
4117
4118 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4126
4127 fi
4128
4129
4130 eval "$ac_cv_use_snglinst"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4136 echo "$ac_t""yes" 1>&6
4137 else
4138 echo "$ac_t""no" 1>&6
4139 fi
4140
4141
4142
4143 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4144 echo "configure:4145: checking for --enable-mimetype" >&5
4145 no_cache=0
4146 # Check whether --enable-mimetype or --disable-mimetype was given.
4147 if test "${enable_mimetype+set}" = set; then
4148 enableval="$enable_mimetype"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4152 else
4153 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4154 fi
4155
4156 else
4157
4158 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4166
4167 fi
4168
4169
4170 eval "$ac_cv_use_mimetype"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_MIMETYPE" = yes; then
4176 echo "$ac_t""yes" 1>&6
4177 else
4178 echo "$ac_t""no" 1>&6
4179 fi
4180
4181
4182 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4183 echo "configure:4184: checking for --enable-system_options" >&5
4184 no_cache=0
4185 # Check whether --enable-system_options or --disable-system_options was given.
4186 if test "${enable_system_options+set}" = set; then
4187 enableval="$enable_system_options"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4191 else
4192 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4193 fi
4194
4195 else
4196
4197 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4205
4206 fi
4207
4208
4209 eval "$ac_cv_use_system_options"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
4221
4222
4223 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4224 echo "configure:4225: checking for --enable-threads" >&5
4225 no_cache=0
4226 # Check whether --enable-threads or --disable-threads was given.
4227 if test "${enable_threads+set}" = set; then
4228 enableval="$enable_threads"
4229
4230 if test "$enableval" = yes; then
4231 ac_cv_use_threads='wxUSE_THREADS=yes'
4232 else
4233 ac_cv_use_threads='wxUSE_THREADS=no'
4234 fi
4235
4236 else
4237
4238 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4246
4247 fi
4248
4249
4250 eval "$ac_cv_use_threads"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_THREADS" = yes; then
4256 echo "$ac_t""yes" 1>&6
4257 else
4258 echo "$ac_t""no" 1>&6
4259 fi
4260
4261
4262 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4263 echo "configure:4264: checking for --enable-serial" >&5
4264 no_cache=0
4265 # Check whether --enable-serial or --disable-serial was given.
4266 if test "${enable_serial+set}" = set; then
4267 enableval="$enable_serial"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_serial='wxUSE_SERIAL=yes'
4271 else
4272 ac_cv_use_serial='wxUSE_SERIAL=no'
4273 fi
4274
4275 else
4276
4277 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4285
4286 fi
4287
4288
4289 eval "$ac_cv_use_serial"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_SERIAL" = yes; then
4295 echo "$ac_t""yes" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300
4301 if test "$wxUSE_GUI" = "yes"; then
4302
4303
4304
4305 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4306 echo "configure:4307: checking for --enable-docview" >&5
4307 no_cache=0
4308 # Check whether --enable-docview or --disable-docview was given.
4309 if test "${enable_docview+set}" = set; then
4310 enableval="$enable_docview"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4314 else
4315 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4316 fi
4317
4318 else
4319
4320 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4328
4329 fi
4330
4331
4332 eval "$ac_cv_use_docview"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4341 fi
4342
4343
4344 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4345 echo "configure:4346: checking for --enable-help" >&5
4346 no_cache=0
4347 # Check whether --enable-help or --disable-help was given.
4348 if test "${enable_help+set}" = set; then
4349 enableval="$enable_help"
4350
4351 if test "$enableval" = yes; then
4352 ac_cv_use_help='wxUSE_HELP=yes'
4353 else
4354 ac_cv_use_help='wxUSE_HELP=no'
4355 fi
4356
4357 else
4358
4359 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
4366 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4367
4368 fi
4369
4370
4371 eval "$ac_cv_use_help"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_HELP" = yes; then
4377 echo "$ac_t""yes" 1>&6
4378 else
4379 echo "$ac_t""no" 1>&6
4380 fi
4381
4382
4383 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4384 echo "configure:4385: checking for --enable-mshtmlhelp" >&5
4385 no_cache=0
4386 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4387 if test "${enable_mshtmlhelp+set}" = set; then
4388 enableval="$enable_mshtmlhelp"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4392 else
4393 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4394 fi
4395
4396 else
4397
4398 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4406
4407 fi
4408
4409
4410 eval "$ac_cv_use_mshtmlhelp"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_MS_HTML_HELP" = yes; then
4416 echo "$ac_t""yes" 1>&6
4417 else
4418 echo "$ac_t""no" 1>&6
4419 fi
4420
4421
4422 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4423 echo "configure:4424: checking for --enable-html" >&5
4424 no_cache=0
4425 # Check whether --enable-html or --disable-html was given.
4426 if test "${enable_html+set}" = set; then
4427 enableval="$enable_html"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_html='wxUSE_HTML=yes'
4431 else
4432 ac_cv_use_html='wxUSE_HTML=no'
4433 fi
4434
4435 else
4436
4437 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4445
4446 fi
4447
4448
4449 eval "$ac_cv_use_html"
4450 if test "$no_cache" != 1; then
4451 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4452 fi
4453
4454 if test "$wxUSE_HTML" = yes; then
4455 echo "$ac_t""yes" 1>&6
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459
4460
4461 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4462 echo "configure:4463: checking for --enable-htmlhelp" >&5
4463 no_cache=0
4464 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4465 if test "${enable_htmlhelp+set}" = set; then
4466 enableval="$enable_htmlhelp"
4467
4468 if test "$enableval" = yes; then
4469 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4470 else
4471 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4472 fi
4473
4474 else
4475
4476 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4477 if test "x$LINE" != x ; then
4478 eval "DEFAULT_$LINE"
4479 else
4480 no_cache=1
4481 fi
4482
4483 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4484
4485 fi
4486
4487
4488 eval "$ac_cv_use_htmlhelp"
4489 if test "$no_cache" != 1; then
4490 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4491 fi
4492
4493 if test "$wxUSE_WXHTML_HELP" = yes; then
4494 echo "$ac_t""yes" 1>&6
4495 else
4496 echo "$ac_t""no" 1>&6
4497 fi
4498
4499
4500 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4501 echo "configure:4502: checking for --enable-constraints" >&5
4502 no_cache=0
4503 # Check whether --enable-constraints or --disable-constraints was given.
4504 if test "${enable_constraints+set}" = set; then
4505 enableval="$enable_constraints"
4506
4507 if test "$enableval" = yes; then
4508 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4509 else
4510 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4511 fi
4512
4513 else
4514
4515 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4516 if test "x$LINE" != x ; then
4517 eval "DEFAULT_$LINE"
4518 else
4519 no_cache=1
4520 fi
4521
4522 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4523
4524 fi
4525
4526
4527 eval "$ac_cv_use_constraints"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_CONSTRAINTS" = yes; then
4533 echo "$ac_t""yes" 1>&6
4534 else
4535 echo "$ac_t""no" 1>&6
4536 fi
4537
4538
4539 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4540 echo "configure:4541: checking for --enable-printarch" >&5
4541 no_cache=0
4542 # Check whether --enable-printarch or --disable-printarch was given.
4543 if test "${enable_printarch+set}" = set; then
4544 enableval="$enable_printarch"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4548 else
4549 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4550 fi
4551
4552 else
4553
4554 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4562
4563 fi
4564
4565
4566 eval "$ac_cv_use_printarch"
4567 if test "$no_cache" != 1; then
4568 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4569 fi
4570
4571 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4572 echo "$ac_t""yes" 1>&6
4573 else
4574 echo "$ac_t""no" 1>&6
4575 fi
4576
4577
4578 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4579 echo "configure:4580: checking for --enable-mdi" >&5
4580 no_cache=0
4581 # Check whether --enable-mdi or --disable-mdi was given.
4582 if test "${enable_mdi+set}" = set; then
4583 enableval="$enable_mdi"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4587 else
4588 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4589 fi
4590
4591 else
4592
4593 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4601
4602 fi
4603
4604
4605 eval "$ac_cv_use_mdi"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4611 echo "$ac_t""yes" 1>&6
4612 else
4613 echo "$ac_t""no" 1>&6
4614 fi
4615
4616
4617 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4618 echo "configure:4619: checking for --enable-loggui" >&5
4619 no_cache=0
4620 # Check whether --enable-loggui or --disable-loggui was given.
4621 if test "${enable_loggui+set}" = set; then
4622 enableval="$enable_loggui"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4626 else
4627 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4628 fi
4629
4630 else
4631
4632 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4640
4641 fi
4642
4643
4644 eval "$ac_cv_use_loggui"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_LOGGUI" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4657 echo "configure:4658: checking for --enable-logwin" >&5
4658 no_cache=0
4659 # Check whether --enable-logwin or --disable-logwin was given.
4660 if test "${enable_logwin+set}" = set; then
4661 enableval="$enable_logwin"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4665 else
4666 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4667 fi
4668
4669 else
4670
4671 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4679
4680 fi
4681
4682
4683 eval "$ac_cv_use_logwin"
4684 if test "$no_cache" != 1; then
4685 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4686 fi
4687
4688 if test "$wxUSE_LOGWINDOW" = yes; then
4689 echo "$ac_t""yes" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4692 fi
4693
4694
4695
4696 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4697 echo "configure:4698: checking for --enable-postscript" >&5
4698 no_cache=0
4699 # Check whether --enable-postscript or --disable-postscript was given.
4700 if test "${enable_postscript+set}" = set; then
4701 enableval="$enable_postscript"
4702
4703 if test "$enableval" = yes; then
4704 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4705 else
4706 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4707 fi
4708
4709 else
4710
4711 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
4718 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4719
4720 fi
4721
4722
4723 eval "$ac_cv_use_postscript"
4724 if test "$no_cache" != 1; then
4725 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4726 fi
4727
4728 if test "$wxUSE_POSTSCRIPT" = yes; then
4729 echo "$ac_t""yes" 1>&6
4730 else
4731 echo "$ac_t""no" 1>&6
4732 fi
4733
4734
4735
4736
4737
4738 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4739 echo "configure:4740: checking for --enable-prologio" >&5
4740 no_cache=0
4741 # Check whether --enable-prologio or --disable-prologio was given.
4742 if test "${enable_prologio+set}" = set; then
4743 enableval="$enable_prologio"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4747 else
4748 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4749 fi
4750
4751 else
4752
4753 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4761
4762 fi
4763
4764
4765 eval "$ac_cv_use_prologio"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROLOGIO" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4778 echo "configure:4779: checking for --enable-resources" >&5
4779 no_cache=0
4780 # Check whether --enable-resources or --disable-resources was given.
4781 if test "${enable_resources+set}" = set; then
4782 enableval="$enable_resources"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4786 else
4787 ac_cv_use_resources='wxUSE_RESOURCES=no'
4788 fi
4789
4790 else
4791
4792 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4800
4801 fi
4802
4803
4804 eval "$ac_cv_use_resources"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_RESOURCES" = yes; then
4810 echo "$ac_t""yes" 1>&6
4811 else
4812 echo "$ac_t""no" 1>&6
4813 fi
4814
4815
4816
4817 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4818 echo "configure:4819: checking for --enable-xresources" >&5
4819 no_cache=0
4820 # Check whether --enable-xresources or --disable-xresources was given.
4821 if test "${enable_xresources+set}" = set; then
4822 enableval="$enable_xresources"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4826 else
4827 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4828 fi
4829
4830 else
4831
4832 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4840
4841 fi
4842
4843
4844 eval "$ac_cv_use_xresources"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_X_RESOURCES" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856
4857
4858 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4859 echo "configure:4860: checking for --enable-clipboard" >&5
4860 no_cache=0
4861 # Check whether --enable-clipboard or --disable-clipboard was given.
4862 if test "${enable_clipboard+set}" = set; then
4863 enableval="$enable_clipboard"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4867 else
4868 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4869 fi
4870
4871 else
4872
4873 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4881
4882 fi
4883
4884
4885 eval "$ac_cv_use_clipboard"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_CLIPBOARD" = yes; then
4891 echo "$ac_t""yes" 1>&6
4892 else
4893 echo "$ac_t""no" 1>&6
4894 fi
4895
4896
4897 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4898 echo "configure:4899: checking for --enable-dnd" >&5
4899 no_cache=0
4900 # Check whether --enable-dnd or --disable-dnd was given.
4901 if test "${enable_dnd+set}" = set; then
4902 enableval="$enable_dnd"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4906 else
4907 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4908 fi
4909
4910 else
4911
4912 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4920
4921 fi
4922
4923
4924 eval "$ac_cv_use_dnd"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4930 echo "$ac_t""yes" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4933 fi
4934
4935
4936 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4937 echo "configure:4938: checking for --enable-metafile" >&5
4938 no_cache=0
4939 # Check whether --enable-metafile or --disable-metafile was given.
4940 if test "${enable_metafile+set}" = set; then
4941 enableval="$enable_metafile"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4945 else
4946 ac_cv_use_metafile='wxUSE_METAFILE=no'
4947 fi
4948
4949 else
4950
4951 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4959
4960 fi
4961
4962
4963 eval "$ac_cv_use_metafile"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_METAFILE" = yes; then
4969 echo "$ac_t""yes" 1>&6
4970 else
4971 echo "$ac_t""no" 1>&6
4972 fi
4973
4974
4975
4976 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4977 echo "configure:4978: checking for --enable-treelayout" >&5
4978 no_cache=0
4979 # Check whether --enable-treelayout or --disable-treelayout was given.
4980 if test "${enable_treelayout+set}" = set; then
4981 enableval="$enable_treelayout"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4985 else
4986 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4987 fi
4988
4989 else
4990
4991 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4999
5000 fi
5001
5002
5003 eval "$ac_cv_use_treelayout"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_TREELAYOUT" = yes; then
5009 echo "$ac_t""yes" 1>&6
5010 else
5011 echo "$ac_t""no" 1>&6
5012 fi
5013
5014
5015
5016
5017 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5018 echo "configure:5019: checking for --enable-controls" >&5
5019 no_cache=0
5020 # Check whether --enable-controls or --disable-controls was given.
5021 if test "${enable_controls+set}" = set; then
5022 enableval="$enable_controls"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5026 else
5027 ac_cv_use_controls='wxUSE_CONTROLS=no'
5028 fi
5029
5030 else
5031
5032 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5040
5041 fi
5042
5043
5044 eval "$ac_cv_use_controls"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_CONTROLS" = yes; then
5050 echo "$ac_t""yes" 1>&6
5051 else
5052 echo "$ac_t""no" 1>&6
5053 fi
5054
5055
5056 if test "$wxUSE_CONTROLS" = "yes"; then
5057 DEFAULT_wxUSE_ACCEL=yes
5058 DEFAULT_wxUSE_BMPBUTTON=yes
5059 DEFAULT_wxUSE_BUTTON=yes
5060 DEFAULT_wxUSE_CALCTRL=no
5061 DEFAULT_wxUSE_CARET=yes
5062 DEFAULT_wxUSE_COMBOBOX=yes
5063 DEFAULT_wxUSE_CHECKBOX=yes
5064 DEFAULT_wxUSE_CHECKLISTBOX=yes
5065 DEFAULT_wxUSE_CHOICE=yes
5066 DEFAULT_wxUSE_GAUGE=yes
5067 DEFAULT_wxUSE_GRID=yes
5068 DEFAULT_wxUSE_NEW_GRID=yes
5069 DEFAULT_wxUSE_IMAGLIST=yes
5070 DEFAULT_wxUSE_LISTBOX=yes
5071 DEFAULT_wxUSE_LISTCTRL=yes
5072 DEFAULT_wxUSE_NOTEBOOK=yes
5073 DEFAULT_wxUSE_PROPSHEET=yes
5074 DEFAULT_wxUSE_RADIOBOX=yes
5075 DEFAULT_wxUSE_RADIOBTN=yes
5076 DEFAULT_wxUSE_SASH=yes
5077 DEFAULT_wxUSE_SCROLLBAR=yes
5078 DEFAULT_wxUSE_SLIDER=yes
5079 DEFAULT_wxUSE_SPINBTN=yes
5080 DEFAULT_wxUSE_SPINCTRL=yes
5081 DEFAULT_wxUSE_SPLITTER=yes
5082 DEFAULT_wxUSE_STATBMP=yes
5083 DEFAULT_wxUSE_STATBOX=yes
5084 DEFAULT_wxUSE_STATLINE=yes
5085 DEFAULT_wxUSE_STATUSBAR=yes
5086 DEFAULT_wxUSE_TAB_DIALOG=yes
5087 DEFAULT_wxUSE_TOGGLEBTN=yes
5088 DEFAULT_wxUSE_TOOLBAR=yes
5089 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5090 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5091 DEFAULT_wxUSE_TOOLTIPS=yes
5092 DEFAULT_wxUSE_TREECTRL=yes
5093 DEFAULT_wxUSE_POPUPWIN=yes
5094 elif test "$wxUSE_CONTROLS" = "no"; then
5095 DEFAULT_wxUSE_ACCEL=no
5096 DEFAULT_wxUSE_BMPBUTTON=no
5097 DEFAULT_wxUSE_BUTTON=no
5098 DEFAULT_wxUSE_CALCTRL=no
5099 DEFAULT_wxUSE_CARET=no
5100 DEFAULT_wxUSE_COMBOBOX=no
5101 DEFAULT_wxUSE_CHECKBOX=no
5102 DEFAULT_wxUSE_CHECKLISTBOX=no
5103 DEFAULT_wxUSE_CHOICE=no
5104 DEFAULT_wxUSE_GAUGE=no
5105 DEFAULT_wxUSE_GRID=no
5106 DEFAULT_wxUSE_NEW_GRID=no
5107 DEFAULT_wxUSE_IMAGLIST=no
5108 DEFAULT_wxUSE_LISTBOX=no
5109 DEFAULT_wxUSE_LISTCTRL=no
5110 DEFAULT_wxUSE_NOTEBOOK=no
5111 DEFAULT_wxUSE_PROPSHEET=no
5112 DEFAULT_wxUSE_RADIOBOX=no
5113 DEFAULT_wxUSE_RADIOBTN=no
5114 DEFAULT_wxUSE_SASH=no
5115 DEFAULT_wxUSE_SCROLLBAR=no
5116 DEFAULT_wxUSE_SLIDER=no
5117 DEFAULT_wxUSE_SPINBTN=no
5118 DEFAULT_wxUSE_SPINCTRL=no
5119 DEFAULT_wxUSE_SPLITTER=no
5120 DEFAULT_wxUSE_STATBMP=no
5121 DEFAULT_wxUSE_STATBOX=no
5122 DEFAULT_wxUSE_STATLINE=no
5123 DEFAULT_wxUSE_STATUSBAR=no
5124 DEFAULT_wxUSE_TAB_DIALOG=no
5125 DEFAULT_wxUSE_TOGGLEBTN=no
5126 DEFAULT_wxUSE_TOOLBAR=no
5127 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5129 DEFAULT_wxUSE_TOOLTIPS=no
5130 DEFAULT_wxUSE_TREECTRL=no
5131 DEFAULT_wxUSE_POPUPWIN=no
5132 fi
5133
5134
5135 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5136 echo "configure:5137: checking for --enable-accel" >&5
5137 no_cache=0
5138 # Check whether --enable-accel or --disable-accel was given.
5139 if test "${enable_accel+set}" = set; then
5140 enableval="$enable_accel"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_accel='wxUSE_ACCEL=yes'
5144 else
5145 ac_cv_use_accel='wxUSE_ACCEL=no'
5146 fi
5147
5148 else
5149
5150 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5158
5159 fi
5160
5161
5162 eval "$ac_cv_use_accel"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_ACCEL" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5175 echo "configure:5176: checking for --enable-button" >&5
5176 no_cache=0
5177 # Check whether --enable-button or --disable-button was given.
5178 if test "${enable_button+set}" = set; then
5179 enableval="$enable_button"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_button='wxUSE_BUTTON=yes'
5183 else
5184 ac_cv_use_button='wxUSE_BUTTON=no'
5185 fi
5186
5187 else
5188
5189 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5197
5198 fi
5199
5200
5201 eval "$ac_cv_use_button"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_BUTTON" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5214 echo "configure:5215: checking for --enable-bmpbutton" >&5
5215 no_cache=0
5216 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5217 if test "${enable_bmpbutton+set}" = set; then
5218 enableval="$enable_bmpbutton"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5222 else
5223 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5224 fi
5225
5226 else
5227
5228 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5236
5237 fi
5238
5239
5240 eval "$ac_cv_use_bmpbutton"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_BMPBUTTON" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5253 echo "configure:5254: checking for --enable-calendar" >&5
5254 no_cache=0
5255 # Check whether --enable-calendar or --disable-calendar was given.
5256 if test "${enable_calendar+set}" = set; then
5257 enableval="$enable_calendar"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5261 else
5262 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5263 fi
5264
5265 else
5266
5267 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5275
5276 fi
5277
5278
5279 eval "$ac_cv_use_calendar"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_CALCTRL" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5292 echo "configure:5293: checking for --enable-caret" >&5
5293 no_cache=0
5294 # Check whether --enable-caret or --disable-caret was given.
5295 if test "${enable_caret+set}" = set; then
5296 enableval="$enable_caret"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_caret='wxUSE_CARET=yes'
5300 else
5301 ac_cv_use_caret='wxUSE_CARET=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_caret"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_CARET" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5331 echo "configure:5332: checking for --enable-checkbox" >&5
5332 no_cache=0
5333 # Check whether --enable-checkbox or --disable-checkbox was given.
5334 if test "${enable_checkbox+set}" = set; then
5335 enableval="$enable_checkbox"
5336
5337 if test "$enableval" = yes; then
5338 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5339 else
5340 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5341 fi
5342
5343 else
5344
5345 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5353
5354 fi
5355
5356
5357 eval "$ac_cv_use_checkbox"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_CHECKBOX" = yes; then
5363 echo "$ac_t""yes" 1>&6
5364 else
5365 echo "$ac_t""no" 1>&6
5366 fi
5367
5368
5369 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5370 echo "configure:5371: checking for --enable-checklst" >&5
5371 no_cache=0
5372 # Check whether --enable-checklst or --disable-checklst was given.
5373 if test "${enable_checklst+set}" = set; then
5374 enableval="$enable_checklst"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5378 else
5379 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5380 fi
5381
5382 else
5383
5384 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5392
5393 fi
5394
5395
5396 eval "$ac_cv_use_checklst"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_CHECKLST" = yes; then
5402 echo "$ac_t""yes" 1>&6
5403 else
5404 echo "$ac_t""no" 1>&6
5405 fi
5406
5407
5408 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5409 echo "configure:5410: checking for --enable-choice" >&5
5410 no_cache=0
5411 # Check whether --enable-choice or --disable-choice was given.
5412 if test "${enable_choice+set}" = set; then
5413 enableval="$enable_choice"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_choice='wxUSE_CHOICE=yes'
5417 else
5418 ac_cv_use_choice='wxUSE_CHOICE=no'
5419 fi
5420
5421 else
5422
5423 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5431
5432 fi
5433
5434
5435 eval "$ac_cv_use_choice"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_CHOICE" = yes; then
5441 echo "$ac_t""yes" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5444 fi
5445
5446
5447 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5448 echo "configure:5449: checking for --enable-combobox" >&5
5449 no_cache=0
5450 # Check whether --enable-combobox or --disable-combobox was given.
5451 if test "${enable_combobox+set}" = set; then
5452 enableval="$enable_combobox"
5453
5454 if test "$enableval" = yes; then
5455 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5456 else
5457 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5458 fi
5459
5460 else
5461
5462 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5470
5471 fi
5472
5473
5474 eval "$ac_cv_use_combobox"
5475 if test "$no_cache" != 1; then
5476 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5477 fi
5478
5479 if test "$wxUSE_COMBOBOX" = yes; then
5480 echo "$ac_t""yes" 1>&6
5481 else
5482 echo "$ac_t""no" 1>&6
5483 fi
5484
5485
5486 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5487 echo "configure:5488: checking for --enable-gauge" >&5
5488 no_cache=0
5489 # Check whether --enable-gauge or --disable-gauge was given.
5490 if test "${enable_gauge+set}" = set; then
5491 enableval="$enable_gauge"
5492
5493 if test "$enableval" = yes; then
5494 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5495 else
5496 ac_cv_use_gauge='wxUSE_GAUGE=no'
5497 fi
5498
5499 else
5500
5501 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5509
5510 fi
5511
5512
5513 eval "$ac_cv_use_gauge"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_GAUGE" = yes; then
5519 echo "$ac_t""yes" 1>&6
5520 else
5521 echo "$ac_t""no" 1>&6
5522 fi
5523
5524
5525 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5526 echo "configure:5527: checking for --enable-grid" >&5
5527 no_cache=0
5528 # Check whether --enable-grid or --disable-grid was given.
5529 if test "${enable_grid+set}" = set; then
5530 enableval="$enable_grid"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_grid='wxUSE_GRID=yes'
5534 else
5535 ac_cv_use_grid='wxUSE_GRID=no'
5536 fi
5537
5538 else
5539
5540 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5548
5549 fi
5550
5551
5552 eval "$ac_cv_use_grid"
5553 if test "$no_cache" != 1; then
5554 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5555 fi
5556
5557 if test "$wxUSE_GRID" = yes; then
5558 echo "$ac_t""yes" 1>&6
5559 else
5560 echo "$ac_t""no" 1>&6
5561 fi
5562
5563
5564 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5565 echo "configure:5566: checking for --enable-newgrid" >&5
5566 no_cache=0
5567 # Check whether --enable-newgrid or --disable-newgrid was given.
5568 if test "${enable_newgrid+set}" = set; then
5569 enableval="$enable_newgrid"
5570
5571 if test "$enableval" = yes; then
5572 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5573 else
5574 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5575 fi
5576
5577 else
5578
5579 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5587
5588 fi
5589
5590
5591 eval "$ac_cv_use_newgrid"
5592 if test "$no_cache" != 1; then
5593 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5594 fi
5595
5596 if test "$wxUSE_NEW_GRID" = yes; then
5597 echo "$ac_t""yes" 1>&6
5598 else
5599 echo "$ac_t""no" 1>&6
5600 fi
5601
5602
5603 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5604 echo "configure:5605: checking for --enable-imaglist" >&5
5605 no_cache=0
5606 # Check whether --enable-imaglist or --disable-imaglist was given.
5607 if test "${enable_imaglist+set}" = set; then
5608 enableval="$enable_imaglist"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5612 else
5613 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5614 fi
5615
5616 else
5617
5618 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5626
5627 fi
5628
5629
5630 eval "$ac_cv_use_imaglist"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_IMAGLIST" = yes; then
5636 echo "$ac_t""yes" 1>&6
5637 else
5638 echo "$ac_t""no" 1>&6
5639 fi
5640
5641
5642 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5643 echo "configure:5644: checking for --enable-listbox" >&5
5644 no_cache=0
5645 # Check whether --enable-listbox or --disable-listbox was given.
5646 if test "${enable_listbox+set}" = set; then
5647 enableval="$enable_listbox"
5648
5649 if test "$enableval" = yes; then
5650 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5651 else
5652 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5653 fi
5654
5655 else
5656
5657 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
5664 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5665
5666 fi
5667
5668
5669 eval "$ac_cv_use_listbox"
5670 if test "$no_cache" != 1; then
5671 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5672 fi
5673
5674 if test "$wxUSE_LISTBOX" = yes; then
5675 echo "$ac_t""yes" 1>&6
5676 else
5677 echo "$ac_t""no" 1>&6
5678 fi
5679
5680
5681 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5682 echo "configure:5683: checking for --enable-listctrl" >&5
5683 no_cache=0
5684 # Check whether --enable-listctrl or --disable-listctrl was given.
5685 if test "${enable_listctrl+set}" = set; then
5686 enableval="$enable_listctrl"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5690 else
5691 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5692 fi
5693
5694 else
5695
5696 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5704
5705 fi
5706
5707
5708 eval "$ac_cv_use_listctrl"
5709 if test "$no_cache" != 1; then
5710 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5711 fi
5712
5713 if test "$wxUSE_LISTCTRL" = yes; then
5714 echo "$ac_t""yes" 1>&6
5715 else
5716 echo "$ac_t""no" 1>&6
5717 fi
5718
5719
5720 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5721 echo "configure:5722: checking for --enable-notebook" >&5
5722 no_cache=0
5723 # Check whether --enable-notebook or --disable-notebook was given.
5724 if test "${enable_notebook+set}" = set; then
5725 enableval="$enable_notebook"
5726
5727 if test "$enableval" = yes; then
5728 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5729 else
5730 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5731 fi
5732
5733 else
5734
5735 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5736 if test "x$LINE" != x ; then
5737 eval "DEFAULT_$LINE"
5738 else
5739 no_cache=1
5740 fi
5741
5742 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5743
5744 fi
5745
5746
5747 eval "$ac_cv_use_notebook"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_NOTEBOOK" = yes; then
5753 echo "$ac_t""yes" 1>&6
5754 else
5755 echo "$ac_t""no" 1>&6
5756 fi
5757
5758
5759 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5760 echo "configure:5761: checking for --enable-propsheet" >&5
5761 no_cache=0
5762 # Check whether --enable-propsheet or --disable-propsheet was given.
5763 if test "${enable_propsheet+set}" = set; then
5764 enableval="$enable_propsheet"
5765
5766 if test "$enableval" = yes; then
5767 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5768 else
5769 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5770 fi
5771
5772 else
5773
5774 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5775 if test "x$LINE" != x ; then
5776 eval "DEFAULT_$LINE"
5777 else
5778 no_cache=1
5779 fi
5780
5781 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5782
5783 fi
5784
5785
5786 eval "$ac_cv_use_propsheet"
5787 if test "$no_cache" != 1; then
5788 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5789 fi
5790
5791 if test "$wxUSE_PROPSHEET" = yes; then
5792 echo "$ac_t""yes" 1>&6
5793 else
5794 echo "$ac_t""no" 1>&6
5795 fi
5796
5797
5798 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5799 echo "configure:5800: checking for --enable-radiobox" >&5
5800 no_cache=0
5801 # Check whether --enable-radiobox or --disable-radiobox was given.
5802 if test "${enable_radiobox+set}" = set; then
5803 enableval="$enable_radiobox"
5804
5805 if test "$enableval" = yes; then
5806 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5807 else
5808 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5809 fi
5810
5811 else
5812
5813 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5814 if test "x$LINE" != x ; then
5815 eval "DEFAULT_$LINE"
5816 else
5817 no_cache=1
5818 fi
5819
5820 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5821
5822 fi
5823
5824
5825 eval "$ac_cv_use_radiobox"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_RADIOBOX" = yes; then
5831 echo "$ac_t""yes" 1>&6
5832 else
5833 echo "$ac_t""no" 1>&6
5834 fi
5835
5836
5837 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5838 echo "configure:5839: checking for --enable-radiobtn" >&5
5839 no_cache=0
5840 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5841 if test "${enable_radiobtn+set}" = set; then
5842 enableval="$enable_radiobtn"
5843
5844 if test "$enableval" = yes; then
5845 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5846 else
5847 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5848 fi
5849
5850 else
5851
5852 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5853 if test "x$LINE" != x ; then
5854 eval "DEFAULT_$LINE"
5855 else
5856 no_cache=1
5857 fi
5858
5859 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5860
5861 fi
5862
5863
5864 eval "$ac_cv_use_radiobtn"
5865 if test "$no_cache" != 1; then
5866 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5867 fi
5868
5869 if test "$wxUSE_RADIOBTN" = yes; then
5870 echo "$ac_t""yes" 1>&6
5871 else
5872 echo "$ac_t""no" 1>&6
5873 fi
5874
5875
5876 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5877 echo "configure:5878: checking for --enable-sash" >&5
5878 no_cache=0
5879 # Check whether --enable-sash or --disable-sash was given.
5880 if test "${enable_sash+set}" = set; then
5881 enableval="$enable_sash"
5882
5883 if test "$enableval" = yes; then
5884 ac_cv_use_sash='wxUSE_SASH=yes'
5885 else
5886 ac_cv_use_sash='wxUSE_SASH=no'
5887 fi
5888
5889 else
5890
5891 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5899
5900 fi
5901
5902
5903 eval "$ac_cv_use_sash"
5904 if test "$no_cache" != 1; then
5905 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5906 fi
5907
5908 if test "$wxUSE_SASH" = yes; then
5909 echo "$ac_t""yes" 1>&6
5910 else
5911 echo "$ac_t""no" 1>&6
5912 fi
5913
5914
5915 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5916 echo "configure:5917: checking for --enable-scrollbar" >&5
5917 no_cache=0
5918 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5919 if test "${enable_scrollbar+set}" = set; then
5920 enableval="$enable_scrollbar"
5921
5922 if test "$enableval" = yes; then
5923 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5924 else
5925 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5926 fi
5927
5928 else
5929
5930 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5931 if test "x$LINE" != x ; then
5932 eval "DEFAULT_$LINE"
5933 else
5934 no_cache=1
5935 fi
5936
5937 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5938
5939 fi
5940
5941
5942 eval "$ac_cv_use_scrollbar"
5943 if test "$no_cache" != 1; then
5944 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5945 fi
5946
5947 if test "$wxUSE_SCROLLBAR" = yes; then
5948 echo "$ac_t""yes" 1>&6
5949 else
5950 echo "$ac_t""no" 1>&6
5951 fi
5952
5953
5954 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5955 echo "configure:5956: checking for --enable-slider" >&5
5956 no_cache=0
5957 # Check whether --enable-slider or --disable-slider was given.
5958 if test "${enable_slider+set}" = set; then
5959 enableval="$enable_slider"
5960
5961 if test "$enableval" = yes; then
5962 ac_cv_use_slider='wxUSE_SLIDER=yes'
5963 else
5964 ac_cv_use_slider='wxUSE_SLIDER=no'
5965 fi
5966
5967 else
5968
5969 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5970 if test "x$LINE" != x ; then
5971 eval "DEFAULT_$LINE"
5972 else
5973 no_cache=1
5974 fi
5975
5976 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5977
5978 fi
5979
5980
5981 eval "$ac_cv_use_slider"
5982 if test "$no_cache" != 1; then
5983 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5984 fi
5985
5986 if test "$wxUSE_SLIDER" = yes; then
5987 echo "$ac_t""yes" 1>&6
5988 else
5989 echo "$ac_t""no" 1>&6
5990 fi
5991
5992
5993 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5994 echo "configure:5995: checking for --enable-spinbtn" >&5
5995 no_cache=0
5996 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5997 if test "${enable_spinbtn+set}" = set; then
5998 enableval="$enable_spinbtn"
5999
6000 if test "$enableval" = yes; then
6001 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6002 else
6003 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6004 fi
6005
6006 else
6007
6008 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6016
6017 fi
6018
6019
6020 eval "$ac_cv_use_spinbtn"
6021 if test "$no_cache" != 1; then
6022 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6023 fi
6024
6025 if test "$wxUSE_SPINBTN" = yes; then
6026 echo "$ac_t""yes" 1>&6
6027 else
6028 echo "$ac_t""no" 1>&6
6029 fi
6030
6031
6032 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6033 echo "configure:6034: checking for --enable-spinctrl" >&5
6034 no_cache=0
6035 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6036 if test "${enable_spinctrl+set}" = set; then
6037 enableval="$enable_spinctrl"
6038
6039 if test "$enableval" = yes; then
6040 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6041 else
6042 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6043 fi
6044
6045 else
6046
6047 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6055
6056 fi
6057
6058
6059 eval "$ac_cv_use_spinctrl"
6060 if test "$no_cache" != 1; then
6061 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6062 fi
6063
6064 if test "$wxUSE_SPINCTRL" = yes; then
6065 echo "$ac_t""yes" 1>&6
6066 else
6067 echo "$ac_t""no" 1>&6
6068 fi
6069
6070
6071 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6072 echo "configure:6073: checking for --enable-splitter" >&5
6073 no_cache=0
6074 # Check whether --enable-splitter or --disable-splitter was given.
6075 if test "${enable_splitter+set}" = set; then
6076 enableval="$enable_splitter"
6077
6078 if test "$enableval" = yes; then
6079 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6080 else
6081 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6082 fi
6083
6084 else
6085
6086 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
6088 eval "DEFAULT_$LINE"
6089 else
6090 no_cache=1
6091 fi
6092
6093 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6094
6095 fi
6096
6097
6098 eval "$ac_cv_use_splitter"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_SPLITTER" = yes; then
6104 echo "$ac_t""yes" 1>&6
6105 else
6106 echo "$ac_t""no" 1>&6
6107 fi
6108
6109
6110 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6111 echo "configure:6112: checking for --enable-statbmp" >&5
6112 no_cache=0
6113 # Check whether --enable-statbmp or --disable-statbmp was given.
6114 if test "${enable_statbmp+set}" = set; then
6115 enableval="$enable_statbmp"
6116
6117 if test "$enableval" = yes; then
6118 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6119 else
6120 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6121 fi
6122
6123 else
6124
6125 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6126 if test "x$LINE" != x ; then
6127 eval "DEFAULT_$LINE"
6128 else
6129 no_cache=1
6130 fi
6131
6132 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6133
6134 fi
6135
6136
6137 eval "$ac_cv_use_statbmp"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_STATBMP" = yes; then
6143 echo "$ac_t""yes" 1>&6
6144 else
6145 echo "$ac_t""no" 1>&6
6146 fi
6147
6148
6149 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6150 echo "configure:6151: checking for --enable-statbox" >&5
6151 no_cache=0
6152 # Check whether --enable-statbox or --disable-statbox was given.
6153 if test "${enable_statbox+set}" = set; then
6154 enableval="$enable_statbox"
6155
6156 if test "$enableval" = yes; then
6157 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6158 else
6159 ac_cv_use_statbox='wxUSE_STATBOX=no'
6160 fi
6161
6162 else
6163
6164 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6172
6173 fi
6174
6175
6176 eval "$ac_cv_use_statbox"
6177 if test "$no_cache" != 1; then
6178 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6179 fi
6180
6181 if test "$wxUSE_STATBOX" = yes; then
6182 echo "$ac_t""yes" 1>&6
6183 else
6184 echo "$ac_t""no" 1>&6
6185 fi
6186
6187
6188 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6189 echo "configure:6190: checking for --enable-statline" >&5
6190 no_cache=0
6191 # Check whether --enable-statline or --disable-statline was given.
6192 if test "${enable_statline+set}" = set; then
6193 enableval="$enable_statline"
6194
6195 if test "$enableval" = yes; then
6196 ac_cv_use_statline='wxUSE_STATLINE=yes'
6197 else
6198 ac_cv_use_statline='wxUSE_STATLINE=no'
6199 fi
6200
6201 else
6202
6203 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6204 if test "x$LINE" != x ; then
6205 eval "DEFAULT_$LINE"
6206 else
6207 no_cache=1
6208 fi
6209
6210 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6211
6212 fi
6213
6214
6215 eval "$ac_cv_use_statline"
6216 if test "$no_cache" != 1; then
6217 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6218 fi
6219
6220 if test "$wxUSE_STATLINE" = yes; then
6221 echo "$ac_t""yes" 1>&6
6222 else
6223 echo "$ac_t""no" 1>&6
6224 fi
6225
6226
6227 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6228 echo "configure:6229: checking for --enable-stattext" >&5
6229 no_cache=0
6230 # Check whether --enable-stattext or --disable-stattext was given.
6231 if test "${enable_stattext+set}" = set; then
6232 enableval="$enable_stattext"
6233
6234 if test "$enableval" = yes; then
6235 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6236 else
6237 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6238 fi
6239
6240 else
6241
6242 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6243 if test "x$LINE" != x ; then
6244 eval "DEFAULT_$LINE"
6245 else
6246 no_cache=1
6247 fi
6248
6249 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6250
6251 fi
6252
6253
6254 eval "$ac_cv_use_stattext"
6255 if test "$no_cache" != 1; then
6256 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6257 fi
6258
6259 if test "$wxUSE_STATTEXT" = yes; then
6260 echo "$ac_t""yes" 1>&6
6261 else
6262 echo "$ac_t""no" 1>&6
6263 fi
6264
6265
6266 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6267 echo "configure:6268: checking for --enable-statusbar" >&5
6268 no_cache=0
6269 # Check whether --enable-statusbar or --disable-statusbar was given.
6270 if test "${enable_statusbar+set}" = set; then
6271 enableval="$enable_statusbar"
6272
6273 if test "$enableval" = yes; then
6274 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6275 else
6276 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6277 fi
6278
6279 else
6280
6281 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6282 if test "x$LINE" != x ; then
6283 eval "DEFAULT_$LINE"
6284 else
6285 no_cache=1
6286 fi
6287
6288 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6289
6290 fi
6291
6292
6293 eval "$ac_cv_use_statusbar"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_STATUSBAR" = yes; then
6299 echo "$ac_t""yes" 1>&6
6300 else
6301 echo "$ac_t""no" 1>&6
6302 fi
6303
6304
6305 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6306 echo "configure:6307: checking for --enable-tabdialog" >&5
6307 no_cache=0
6308 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6309 if test "${enable_tabdialog+set}" = set; then
6310 enableval="$enable_tabdialog"
6311
6312 if test "$enableval" = yes; then
6313 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6314 else
6315 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6316 fi
6317
6318 else
6319
6320 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6328
6329 fi
6330
6331
6332 eval "$ac_cv_use_tabdialog"
6333 if test "$no_cache" != 1; then
6334 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6335 fi
6336
6337 if test "$wxUSE_TABDIALOG" = yes; then
6338 echo "$ac_t""yes" 1>&6
6339 else
6340 echo "$ac_t""no" 1>&6
6341 fi
6342
6343
6344 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6345 echo "configure:6346: checking for --enable-textctrl" >&5
6346 no_cache=0
6347 # Check whether --enable-textctrl or --disable-textctrl was given.
6348 if test "${enable_textctrl+set}" = set; then
6349 enableval="$enable_textctrl"
6350
6351 if test "$enableval" = yes; then
6352 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6353 else
6354 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6355 fi
6356
6357 else
6358
6359 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6367
6368 fi
6369
6370
6371 eval "$ac_cv_use_textctrl"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_TEXTCTRL" = yes; then
6377 echo "$ac_t""yes" 1>&6
6378 else
6379 echo "$ac_t""no" 1>&6
6380 fi
6381
6382
6383 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6384 echo "configure:6385: checking for --enable-togglebtn" >&5
6385 no_cache=0
6386 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6387 if test "${enable_togglebtn+set}" = set; then
6388 enableval="$enable_togglebtn"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6392 else
6393 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6394 fi
6395
6396 else
6397
6398 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6406
6407 fi
6408
6409
6410 eval "$ac_cv_use_togglebtn"
6411 if test "$no_cache" != 1; then
6412 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6413 fi
6414
6415 if test "$wxUSE_TOGGLEBTN" = yes; then
6416 echo "$ac_t""yes" 1>&6
6417 else
6418 echo "$ac_t""no" 1>&6
6419 fi
6420
6421
6422 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6423 echo "configure:6424: checking for --enable-toolbar" >&5
6424 no_cache=0
6425 # Check whether --enable-toolbar or --disable-toolbar was given.
6426 if test "${enable_toolbar+set}" = set; then
6427 enableval="$enable_toolbar"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6431 else
6432 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6433 fi
6434
6435 else
6436
6437 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6445
6446 fi
6447
6448
6449 eval "$ac_cv_use_toolbar"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_TOOLBAR" = yes; then
6455 echo "$ac_t""yes" 1>&6
6456 else
6457 echo "$ac_t""no" 1>&6
6458 fi
6459
6460
6461 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6462 echo "configure:6463: checking for --enable-tbarnative" >&5
6463 no_cache=0
6464 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6465 if test "${enable_tbarnative+set}" = set; then
6466 enableval="$enable_tbarnative"
6467
6468 if test "$enableval" = yes; then
6469 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6470 else
6471 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6472 fi
6473
6474 else
6475
6476 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6477 if test "x$LINE" != x ; then
6478 eval "DEFAULT_$LINE"
6479 else
6480 no_cache=1
6481 fi
6482
6483 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6484
6485 fi
6486
6487
6488 eval "$ac_cv_use_tbarnative"
6489 if test "$no_cache" != 1; then
6490 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6491 fi
6492
6493 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6494 echo "$ac_t""yes" 1>&6
6495 else
6496 echo "$ac_t""no" 1>&6
6497 fi
6498
6499
6500 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6501 echo "configure:6502: checking for --enable-tbarsmpl" >&5
6502 no_cache=0
6503 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6504 if test "${enable_tbarsmpl+set}" = set; then
6505 enableval="$enable_tbarsmpl"
6506
6507 if test "$enableval" = yes; then
6508 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6509 else
6510 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6511 fi
6512
6513 else
6514
6515 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6516 if test "x$LINE" != x ; then
6517 eval "DEFAULT_$LINE"
6518 else
6519 no_cache=1
6520 fi
6521
6522 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6523
6524 fi
6525
6526
6527 eval "$ac_cv_use_tbarsmpl"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6533 echo "$ac_t""yes" 1>&6
6534 else
6535 echo "$ac_t""no" 1>&6
6536 fi
6537
6538
6539 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6540 echo "configure:6541: checking for --enable-treectrl" >&5
6541 no_cache=0
6542 # Check whether --enable-treectrl or --disable-treectrl was given.
6543 if test "${enable_treectrl+set}" = set; then
6544 enableval="$enable_treectrl"
6545
6546 if test "$enableval" = yes; then
6547 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6548 else
6549 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6550 fi
6551
6552 else
6553
6554 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6555 if test "x$LINE" != x ; then
6556 eval "DEFAULT_$LINE"
6557 else
6558 no_cache=1
6559 fi
6560
6561 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6562
6563 fi
6564
6565
6566 eval "$ac_cv_use_treectrl"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_TREECTRL" = yes; then
6572 echo "$ac_t""yes" 1>&6
6573 else
6574 echo "$ac_t""no" 1>&6
6575 fi
6576
6577
6578 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6579 echo "configure:6580: checking for --enable-popupwin" >&5
6580 no_cache=0
6581 # Check whether --enable-popupwin or --disable-popupwin was given.
6582 if test "${enable_popupwin+set}" = set; then
6583 enableval="$enable_popupwin"
6584
6585 if test "$enableval" = yes; then
6586 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6587 else
6588 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6589 fi
6590
6591 else
6592
6593 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
6600 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6601
6602 fi
6603
6604
6605 eval "$ac_cv_use_popupwin"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_POPUPWIN" = yes; then
6611 echo "$ac_t""yes" 1>&6
6612 else
6613 echo "$ac_t""no" 1>&6
6614 fi
6615
6616
6617
6618
6619 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6620 echo "configure:6621: checking for --enable-commondlg" >&5
6621 no_cache=0
6622 # Check whether --enable-commondlg or --disable-commondlg was given.
6623 if test "${enable_commondlg+set}" = set; then
6624 enableval="$enable_commondlg"
6625
6626 if test "$enableval" = yes; then
6627 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6628 else
6629 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6630 fi
6631
6632 else
6633
6634 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6635 if test "x$LINE" != x ; then
6636 eval "DEFAULT_$LINE"
6637 else
6638 no_cache=1
6639 fi
6640
6641 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6642
6643 fi
6644
6645
6646 eval "$ac_cv_use_commondlg"
6647 if test "$no_cache" != 1; then
6648 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6649 fi
6650
6651 if test "$wxUSE_COMMONDLGS" = yes; then
6652 echo "$ac_t""yes" 1>&6
6653 else
6654 echo "$ac_t""no" 1>&6
6655 fi
6656
6657
6658 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6659 echo "configure:6660: checking for --enable-choicedlg" >&5
6660 no_cache=0
6661 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6662 if test "${enable_choicedlg+set}" = set; then
6663 enableval="$enable_choicedlg"
6664
6665 if test "$enableval" = yes; then
6666 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6667 else
6668 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6669 fi
6670
6671 else
6672
6673 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6674 if test "x$LINE" != x ; then
6675 eval "DEFAULT_$LINE"
6676 else
6677 no_cache=1
6678 fi
6679
6680 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6681
6682 fi
6683
6684
6685 eval "$ac_cv_use_choicedlg"
6686 if test "$no_cache" != 1; then
6687 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6688 fi
6689
6690 if test "$wxUSE_CHOICEDLG" = yes; then
6691 echo "$ac_t""yes" 1>&6
6692 else
6693 echo "$ac_t""no" 1>&6
6694 fi
6695
6696
6697 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6698 echo "configure:6699: checking for --enable-coldlg" >&5
6699 no_cache=0
6700 # Check whether --enable-coldlg or --disable-coldlg was given.
6701 if test "${enable_coldlg+set}" = set; then
6702 enableval="$enable_coldlg"
6703
6704 if test "$enableval" = yes; then
6705 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6706 else
6707 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6708 fi
6709
6710 else
6711
6712 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6713 if test "x$LINE" != x ; then
6714 eval "DEFAULT_$LINE"
6715 else
6716 no_cache=1
6717 fi
6718
6719 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6720
6721 fi
6722
6723
6724 eval "$ac_cv_use_coldlg"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_COLOURDLG" = yes; then
6730 echo "$ac_t""yes" 1>&6
6731 else
6732 echo "$ac_t""no" 1>&6
6733 fi
6734
6735
6736 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6737 echo "configure:6738: checking for --enable-filedlg" >&5
6738 no_cache=0
6739 # Check whether --enable-filedlg or --disable-filedlg was given.
6740 if test "${enable_filedlg+set}" = set; then
6741 enableval="$enable_filedlg"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6745 else
6746 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6747 fi
6748
6749 else
6750
6751 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6759
6760 fi
6761
6762
6763 eval "$ac_cv_use_filedlg"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6766 fi
6767
6768 if test "$wxUSE_FILEDLG" = yes; then
6769 echo "$ac_t""yes" 1>&6
6770 else
6771 echo "$ac_t""no" 1>&6
6772 fi
6773
6774
6775 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6776 echo "configure:6777: checking for --enable-filedlg" >&5
6777 no_cache=0
6778 # Check whether --enable-filedlg or --disable-filedlg was given.
6779 if test "${enable_filedlg+set}" = set; then
6780 enableval="$enable_filedlg"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6784 else
6785 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6786 fi
6787
6788 else
6789
6790 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6798
6799 fi
6800
6801
6802 eval "$ac_cv_use_filedlg"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_FINDREPLDLG" = yes; then
6808 echo "$ac_t""yes" 1>&6
6809 else
6810 echo "$ac_t""no" 1>&6
6811 fi
6812
6813
6814 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6815 echo "configure:6816: checking for --enable-fontdlg" >&5
6816 no_cache=0
6817 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6818 if test "${enable_fontdlg+set}" = set; then
6819 enableval="$enable_fontdlg"
6820
6821 if test "$enableval" = yes; then
6822 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6823 else
6824 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6825 fi
6826
6827 else
6828
6829 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6837
6838 fi
6839
6840
6841 eval "$ac_cv_use_fontdlg"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_FONTDLG" = yes; then
6847 echo "$ac_t""yes" 1>&6
6848 else
6849 echo "$ac_t""no" 1>&6
6850 fi
6851
6852
6853 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6854 echo "configure:6855: checking for --enable-dirdlg" >&5
6855 no_cache=0
6856 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6857 if test "${enable_dirdlg+set}" = set; then
6858 enableval="$enable_dirdlg"
6859
6860 if test "$enableval" = yes; then
6861 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6862 else
6863 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6864 fi
6865
6866 else
6867
6868 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6876
6877 fi
6878
6879
6880 eval "$ac_cv_use_dirdlg"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_DIRDLG" = yes; then
6886 echo "$ac_t""yes" 1>&6
6887 else
6888 echo "$ac_t""no" 1>&6
6889 fi
6890
6891
6892 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6893 echo "configure:6894: checking for --enable-msgdlg" >&5
6894 no_cache=0
6895 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6896 if test "${enable_msgdlg+set}" = set; then
6897 enableval="$enable_msgdlg"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6901 else
6902 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6903 fi
6904
6905 else
6906
6907 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6915
6916 fi
6917
6918
6919 eval "$ac_cv_use_msgdlg"
6920 if test "$no_cache" != 1; then
6921 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6922 fi
6923
6924 if test "$wxUSE_MSGDLG" = yes; then
6925 echo "$ac_t""yes" 1>&6
6926 else
6927 echo "$ac_t""no" 1>&6
6928 fi
6929
6930
6931 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6932 echo "configure:6933: checking for --enable-numberdlg" >&5
6933 no_cache=0
6934 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6935 if test "${enable_numberdlg+set}" = set; then
6936 enableval="$enable_numberdlg"
6937
6938 if test "$enableval" = yes; then
6939 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6940 else
6941 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6942 fi
6943
6944 else
6945
6946 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6947 if test "x$LINE" != x ; then
6948 eval "DEFAULT_$LINE"
6949 else
6950 no_cache=1
6951 fi
6952
6953 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6954
6955 fi
6956
6957
6958 eval "$ac_cv_use_numberdlg"
6959 if test "$no_cache" != 1; then
6960 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6961 fi
6962
6963 if test "$wxUSE_NUMBERDLG" = yes; then
6964 echo "$ac_t""yes" 1>&6
6965 else
6966 echo "$ac_t""no" 1>&6
6967 fi
6968
6969
6970 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6971 echo "configure:6972: checking for --enable-textdlg" >&5
6972 no_cache=0
6973 # Check whether --enable-textdlg or --disable-textdlg was given.
6974 if test "${enable_textdlg+set}" = set; then
6975 enableval="$enable_textdlg"
6976
6977 if test "$enableval" = yes; then
6978 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6979 else
6980 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6981 fi
6982
6983 else
6984
6985 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6993
6994 fi
6995
6996
6997 eval "$ac_cv_use_textdlg"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_TEXTDLG" = yes; then
7003 echo "$ac_t""yes" 1>&6
7004 else
7005 echo "$ac_t""no" 1>&6
7006 fi
7007
7008
7009 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7010 echo "configure:7011: checking for --enable-tipdlg" >&5
7011 no_cache=0
7012 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7013 if test "${enable_tipdlg+set}" = set; then
7014 enableval="$enable_tipdlg"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7018 else
7019 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7020 fi
7021
7022 else
7023
7024 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7032
7033 fi
7034
7035
7036 eval "$ac_cv_use_tipdlg"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STARTUP_TIPS" = yes; then
7042 echo "$ac_t""yes" 1>&6
7043 else
7044 echo "$ac_t""no" 1>&6
7045 fi
7046
7047
7048 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7049 echo "configure:7050: checking for --enable-progressdlg" >&5
7050 no_cache=0
7051 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7052 if test "${enable_progressdlg+set}" = set; then
7053 enableval="$enable_progressdlg"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7057 else
7058 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7059 fi
7060
7061 else
7062
7063 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7071
7072 fi
7073
7074
7075 eval "$ac_cv_use_progressdlg"
7076 if test "$no_cache" != 1; then
7077 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7078 fi
7079
7080 if test "$wxUSE_PROGRESSDLG" = yes; then
7081 echo "$ac_t""yes" 1>&6
7082 else
7083 echo "$ac_t""no" 1>&6
7084 fi
7085
7086
7087 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7088 echo "configure:7089: checking for --enable-wizarddlg" >&5
7089 no_cache=0
7090 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7091 if test "${enable_wizarddlg+set}" = set; then
7092 enableval="$enable_wizarddlg"
7093
7094 if test "$enableval" = yes; then
7095 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7096 else
7097 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7098 fi
7099
7100 else
7101
7102 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7103 if test "x$LINE" != x ; then
7104 eval "DEFAULT_$LINE"
7105 else
7106 no_cache=1
7107 fi
7108
7109 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7110
7111 fi
7112
7113
7114 eval "$ac_cv_use_wizarddlg"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_WIZARDDLG" = yes; then
7120 echo "$ac_t""yes" 1>&6
7121 else
7122 echo "$ac_t""no" 1>&6
7123 fi
7124
7125
7126
7127
7128 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7129 echo "configure:7130: checking for --enable-menus" >&5
7130 no_cache=0
7131 # Check whether --enable-menus or --disable-menus was given.
7132 if test "${enable_menus+set}" = set; then
7133 enableval="$enable_menus"
7134
7135 if test "$enableval" = yes; then
7136 ac_cv_use_menus='wxUSE_MENUS=yes'
7137 else
7138 ac_cv_use_menus='wxUSE_MENUS=no'
7139 fi
7140
7141 else
7142
7143 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7144 if test "x$LINE" != x ; then
7145 eval "DEFAULT_$LINE"
7146 else
7147 no_cache=1
7148 fi
7149
7150 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7151
7152 fi
7153
7154
7155 eval "$ac_cv_use_menus"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_MENUS" = yes; then
7161 echo "$ac_t""yes" 1>&6
7162 else
7163 echo "$ac_t""no" 1>&6
7164 fi
7165
7166
7167 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7168 echo "configure:7169: checking for --enable-miniframe" >&5
7169 no_cache=0
7170 # Check whether --enable-miniframe or --disable-miniframe was given.
7171 if test "${enable_miniframe+set}" = set; then
7172 enableval="$enable_miniframe"
7173
7174 if test "$enableval" = yes; then
7175 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7176 else
7177 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7178 fi
7179
7180 else
7181
7182 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7183 if test "x$LINE" != x ; then
7184 eval "DEFAULT_$LINE"
7185 else
7186 no_cache=1
7187 fi
7188
7189 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7190
7191 fi
7192
7193
7194 eval "$ac_cv_use_miniframe"
7195 if test "$no_cache" != 1; then
7196 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7197 fi
7198
7199 if test "$wxUSE_MINIFRAME" = yes; then
7200 echo "$ac_t""yes" 1>&6
7201 else
7202 echo "$ac_t""no" 1>&6
7203 fi
7204
7205
7206 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7207 echo "configure:7208: checking for --enable-tooltips" >&5
7208 no_cache=0
7209 # Check whether --enable-tooltips or --disable-tooltips was given.
7210 if test "${enable_tooltips+set}" = set; then
7211 enableval="$enable_tooltips"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7215 else
7216 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7217 fi
7218
7219 else
7220
7221 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7229
7230 fi
7231
7232
7233 eval "$ac_cv_use_tooltips"
7234 if test "$no_cache" != 1; then
7235 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7236 fi
7237
7238 if test "$wxUSE_TOOLTIPS" = yes; then
7239 echo "$ac_t""yes" 1>&6
7240 else
7241 echo "$ac_t""no" 1>&6
7242 fi
7243
7244
7245 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7246 echo "configure:7247: checking for --enable-splines" >&5
7247 no_cache=0
7248 # Check whether --enable-splines or --disable-splines was given.
7249 if test "${enable_splines+set}" = set; then
7250 enableval="$enable_splines"
7251
7252 if test "$enableval" = yes; then
7253 ac_cv_use_splines='wxUSE_SPLINES=yes'
7254 else
7255 ac_cv_use_splines='wxUSE_SPLINES=no'
7256 fi
7257
7258 else
7259
7260 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7261 if test "x$LINE" != x ; then
7262 eval "DEFAULT_$LINE"
7263 else
7264 no_cache=1
7265 fi
7266
7267 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7268
7269 fi
7270
7271
7272 eval "$ac_cv_use_splines"
7273 if test "$no_cache" != 1; then
7274 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7275 fi
7276
7277 if test "$wxUSE_SPLINES" = yes; then
7278 echo "$ac_t""yes" 1>&6
7279 else
7280 echo "$ac_t""no" 1>&6
7281 fi
7282
7283
7284 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7285 echo "configure:7286: checking for --enable-validators" >&5
7286 no_cache=0
7287 # Check whether --enable-validators or --disable-validators was given.
7288 if test "${enable_validators+set}" = set; then
7289 enableval="$enable_validators"
7290
7291 if test "$enableval" = yes; then
7292 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7293 else
7294 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7295 fi
7296
7297 else
7298
7299 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7300 if test "x$LINE" != x ; then
7301 eval "DEFAULT_$LINE"
7302 else
7303 no_cache=1
7304 fi
7305
7306 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7307
7308 fi
7309
7310
7311 eval "$ac_cv_use_validators"
7312 if test "$no_cache" != 1; then
7313 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7314 fi
7315
7316 if test "$wxUSE_VALIDATORS" = yes; then
7317 echo "$ac_t""yes" 1>&6
7318 else
7319 echo "$ac_t""no" 1>&6
7320 fi
7321
7322
7323 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7324 echo "configure:7325: checking for --enable-busyinfo" >&5
7325 no_cache=0
7326 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7327 if test "${enable_busyinfo+set}" = set; then
7328 enableval="$enable_busyinfo"
7329
7330 if test "$enableval" = yes; then
7331 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7332 else
7333 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7334 fi
7335
7336 else
7337
7338 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7339 if test "x$LINE" != x ; then
7340 eval "DEFAULT_$LINE"
7341 else
7342 no_cache=1
7343 fi
7344
7345 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7346
7347 fi
7348
7349
7350 eval "$ac_cv_use_busyinfo"
7351 if test "$no_cache" != 1; then
7352 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7353 fi
7354
7355 if test "$wxUSE_BUSYINFO" = yes; then
7356 echo "$ac_t""yes" 1>&6
7357 else
7358 echo "$ac_t""no" 1>&6
7359 fi
7360
7361
7362 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7363 echo "configure:7364: checking for --enable-joystick" >&5
7364 no_cache=0
7365 # Check whether --enable-joystick or --disable-joystick was given.
7366 if test "${enable_joystick+set}" = set; then
7367 enableval="$enable_joystick"
7368
7369 if test "$enableval" = yes; then
7370 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7371 else
7372 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7373 fi
7374
7375 else
7376
7377 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7385
7386 fi
7387
7388
7389 eval "$ac_cv_use_joystick"
7390 if test "$no_cache" != 1; then
7391 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7392 fi
7393
7394 if test "$wxUSE_JOYSTICK" = yes; then
7395 echo "$ac_t""yes" 1>&6
7396 else
7397 echo "$ac_t""no" 1>&6
7398 fi
7399
7400
7401 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7402 echo "configure:7403: checking for --enable-metafile" >&5
7403 no_cache=0
7404 # Check whether --enable-metafile or --disable-metafile was given.
7405 if test "${enable_metafile+set}" = set; then
7406 enableval="$enable_metafile"
7407
7408 if test "$enableval" = yes; then
7409 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7410 else
7411 ac_cv_use_metafile='wxUSE_METAFILE=no'
7412 fi
7413
7414 else
7415
7416 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7417 if test "x$LINE" != x ; then
7418 eval "DEFAULT_$LINE"
7419 else
7420 no_cache=1
7421 fi
7422
7423 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7424
7425 fi
7426
7427
7428 eval "$ac_cv_use_metafile"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_METAFILE" = yes; then
7434 echo "$ac_t""yes" 1>&6
7435 else
7436 echo "$ac_t""no" 1>&6
7437 fi
7438
7439
7440 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7441 echo "configure:7442: checking for --enable-dragimage" >&5
7442 no_cache=0
7443 # Check whether --enable-dragimage or --disable-dragimage was given.
7444 if test "${enable_dragimage+set}" = set; then
7445 enableval="$enable_dragimage"
7446
7447 if test "$enableval" = yes; then
7448 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7449 else
7450 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7451 fi
7452
7453 else
7454
7455 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7463
7464 fi
7465
7466
7467 eval "$ac_cv_use_dragimage"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_DRAGIMAGE" = yes; then
7473 echo "$ac_t""yes" 1>&6
7474 else
7475 echo "$ac_t""no" 1>&6
7476 fi
7477
7478
7479
7480
7481 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7482 echo "configure:7483: checking for --enable-image" >&5
7483 no_cache=0
7484 # Check whether --enable-image or --disable-image was given.
7485 if test "${enable_image+set}" = set; then
7486 enableval="$enable_image"
7487
7488 if test "$enableval" = yes; then
7489 ac_cv_use_image='wxUSE_IMAGE=yes'
7490 else
7491 ac_cv_use_image='wxUSE_IMAGE=no'
7492 fi
7493
7494 else
7495
7496 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7497 if test "x$LINE" != x ; then
7498 eval "DEFAULT_$LINE"
7499 else
7500 no_cache=1
7501 fi
7502
7503 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7504
7505 fi
7506
7507
7508 eval "$ac_cv_use_image"
7509 if test "$no_cache" != 1; then
7510 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7511 fi
7512
7513 if test "$wxUSE_IMAGE" = yes; then
7514 echo "$ac_t""yes" 1>&6
7515 else
7516 echo "$ac_t""no" 1>&6
7517 fi
7518
7519
7520 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7521 echo "configure:7522: checking for --enable-gif" >&5
7522 no_cache=0
7523 # Check whether --enable-gif or --disable-gif was given.
7524 if test "${enable_gif+set}" = set; then
7525 enableval="$enable_gif"
7526
7527 if test "$enableval" = yes; then
7528 ac_cv_use_gif='wxUSE_GIF=yes'
7529 else
7530 ac_cv_use_gif='wxUSE_GIF=no'
7531 fi
7532
7533 else
7534
7535 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7543
7544 fi
7545
7546
7547 eval "$ac_cv_use_gif"
7548 if test "$no_cache" != 1; then
7549 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7550 fi
7551
7552 if test "$wxUSE_GIF" = yes; then
7553 echo "$ac_t""yes" 1>&6
7554 else
7555 echo "$ac_t""no" 1>&6
7556 fi
7557
7558
7559 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7560 echo "configure:7561: checking for --enable-pcx" >&5
7561 no_cache=0
7562 # Check whether --enable-pcx or --disable-pcx was given.
7563 if test "${enable_pcx+set}" = set; then
7564 enableval="$enable_pcx"
7565
7566 if test "$enableval" = yes; then
7567 ac_cv_use_pcx='wxUSE_PCX=yes'
7568 else
7569 ac_cv_use_pcx='wxUSE_PCX=no'
7570 fi
7571
7572 else
7573
7574 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7575 if test "x$LINE" != x ; then
7576 eval "DEFAULT_$LINE"
7577 else
7578 no_cache=1
7579 fi
7580
7581 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7582
7583 fi
7584
7585
7586 eval "$ac_cv_use_pcx"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_PCX" = yes; then
7592 echo "$ac_t""yes" 1>&6
7593 else
7594 echo "$ac_t""no" 1>&6
7595 fi
7596
7597
7598 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7599 echo "configure:7600: checking for --enable-pnm" >&5
7600 no_cache=0
7601 # Check whether --enable-pnm or --disable-pnm was given.
7602 if test "${enable_pnm+set}" = set; then
7603 enableval="$enable_pnm"
7604
7605 if test "$enableval" = yes; then
7606 ac_cv_use_pnm='wxUSE_PNM=yes'
7607 else
7608 ac_cv_use_pnm='wxUSE_PNM=no'
7609 fi
7610
7611 else
7612
7613 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7614 if test "x$LINE" != x ; then
7615 eval "DEFAULT_$LINE"
7616 else
7617 no_cache=1
7618 fi
7619
7620 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7621
7622 fi
7623
7624
7625 eval "$ac_cv_use_pnm"
7626 if test "$no_cache" != 1; then
7627 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7628 fi
7629
7630 if test "$wxUSE_PNM" = yes; then
7631 echo "$ac_t""yes" 1>&6
7632 else
7633 echo "$ac_t""no" 1>&6
7634 fi
7635
7636
7637 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7638 echo "configure:7639: checking for --enable-pnm" >&5
7639 no_cache=0
7640 # Check whether --enable-pnm or --disable-pnm was given.
7641 if test "${enable_pnm+set}" = set; then
7642 enableval="$enable_pnm"
7643
7644 if test "$enableval" = yes; then
7645 ac_cv_use_pnm='wxUSE_XPM=yes'
7646 else
7647 ac_cv_use_pnm='wxUSE_XPM=no'
7648 fi
7649
7650 else
7651
7652 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7653 if test "x$LINE" != x ; then
7654 eval "DEFAULT_$LINE"
7655 else
7656 no_cache=1
7657 fi
7658
7659 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7660
7661 fi
7662
7663
7664 eval "$ac_cv_use_pnm"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_XPM" = yes; then
7670 echo "$ac_t""yes" 1>&6
7671 else
7672 echo "$ac_t""no" 1>&6
7673 fi
7674
7675
7676 fi
7677
7678
7679 echo "saving argument cache $wx_arg_cache_file"
7680 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7681
7682
7683
7684 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7685 echo "configure:7686: checking for toolkit" >&5
7686
7687 if test "$wxUSE_GUI" = "yes"; then
7688
7689 if test "$USE_BEOS" = 1; then
7690 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7691 fi
7692
7693 if test "$TOOLKIT_GIVEN" = 1; then
7694 for toolkit in `echo $ALL_TOOLKITS`; do
7695 var=wxUSE_$toolkit
7696 eval "value=\$${var}"
7697 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7698 done
7699 else
7700 for toolkit in `echo $ALL_TOOLKITS`; do
7701 if test "$has_toolkit_in_cache" != 1; then
7702 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7703 else
7704 var=DEFAULT_wxUSE_$toolkit
7705 fi
7706 eval "wxUSE_$toolkit=\$${var}"
7707 done
7708 fi
7709
7710 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7711
7712 case "${host}" in
7713 *-pc-os2_emx )
7714 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7715 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7716 LEX_STEM="lexyy"
7717 ;;
7718 *)
7719 PATH_IFS=':'
7720 LEX_STEM="lex.yy"
7721 ;;
7722 esac
7723
7724 case "$NUM_TOOLKITS" in
7725 1)
7726 ;;
7727 0)
7728 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7729 ;;
7730 *)
7731 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7732 esac
7733
7734 for toolkit in `echo $ALL_TOOLKITS`; do
7735 var=wxUSE_$toolkit
7736 eval "value=\$${var}"
7737 if test "x$value" != x; then
7738 cache_var=CACHE_$toolkit
7739 eval "cache=\$${cache_var}"
7740 if test "$cache" = 1; then
7741 echo "$var=$value" >> ${wx_arg_cache_file}
7742 fi
7743 if test "$value" = 1; then
7744 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7745 echo "$ac_t""$toolkit_echo" 1>&6
7746 fi
7747 fi
7748 done
7749
7750 else
7751 PATH_IFS=':'
7752 echo "$ac_t""base only" 1>&6
7753 fi
7754
7755
7756 cat > confcache <<\EOF
7757 # This file is a shell script that caches the results of configure
7758 # tests run on this system so they can be shared between configure
7759 # scripts and configure runs. It is not useful on other systems.
7760 # If it contains results you don't want to keep, you may remove or edit it.
7761 #
7762 # By default, configure uses ./config.cache as the cache file,
7763 # creating it if it does not exist already. You can give configure
7764 # the --cache-file=FILE option to use a different cache file; that is
7765 # what configure does when it calls configure scripts in
7766 # subdirectories, so they share the cache.
7767 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7768 # config.status only pays attention to the cache file if you give it the
7769 # --recheck option to rerun configure.
7770 #
7771 EOF
7772 # The following way of writing the cache mishandles newlines in values,
7773 # but we know of no workaround that is simple, portable, and efficient.
7774 # So, don't put newlines in cache variables' values.
7775 # Ultrix sh set writes to stderr and can't be redirected directly,
7776 # and sets the high bit in the cache file unless we assign to the vars.
7777 (set) 2>&1 |
7778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7779 *ac_space=\ *)
7780 # `set' does not quote correctly, so add quotes (double-quote substitution
7781 # turns \\\\ into \\, and sed turns \\ into \).
7782 sed -n \
7783 -e "s/'/'\\\\''/g" \
7784 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7785 ;;
7786 *)
7787 # `set' quotes correctly as required by POSIX, so do not add quotes.
7788 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7789 ;;
7790 esac >> confcache
7791 if cmp -s $cache_file confcache; then
7792 :
7793 else
7794 if test -w $cache_file; then
7795 echo "updating cache $cache_file"
7796 cat confcache > $cache_file
7797 else
7798 echo "not updating unwritable cache $cache_file"
7799 fi
7800 fi
7801 rm -f confcache
7802
7803
7804 if test "$build" != "$host" ; then
7805 CC=$host_alias-gcc
7806 CXX=$host_alias-c++
7807 AR=$host_alias-ar
7808 RANLIB=$host_alias-ranlib
7809 DLLTOOL=$host_alias-dlltool
7810 RESCOMP=$host_alias-windres
7811 LD=$host_alias-ld
7812 NM=$host_alias-nm
7813 STRIP=$host_alias-strip
7814 fi
7815
7816 # Extract the first word of "gcc", so it can be a program name with args.
7817 set dummy gcc; ac_word=$2
7818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_word" >&5
7820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823 if test -n "$CC"; then
7824 ac_cv_prog_CC="$CC" # Let the user override the test.
7825 else
7826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7827 ac_dummy="$PATH"
7828 for ac_dir in $ac_dummy; do
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/$ac_word; then
7831 ac_cv_prog_CC="gcc"
7832 break
7833 fi
7834 done
7835 IFS="$ac_save_ifs"
7836 fi
7837 fi
7838 CC="$ac_cv_prog_CC"
7839 if test -n "$CC"; then
7840 echo "$ac_t""$CC" 1>&6
7841 else
7842 echo "$ac_t""no" 1>&6
7843 fi
7844
7845 if test -z "$CC"; then
7846 # Extract the first word of "cc", so it can be a program name with args.
7847 set dummy cc; ac_word=$2
7848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_word" >&5
7850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7852 else
7853 if test -n "$CC"; then
7854 ac_cv_prog_CC="$CC" # Let the user override the test.
7855 else
7856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7857 ac_prog_rejected=no
7858 ac_dummy="$PATH"
7859 for ac_dir in $ac_dummy; do
7860 test -z "$ac_dir" && ac_dir=.
7861 if test -f $ac_dir/$ac_word; then
7862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7863 ac_prog_rejected=yes
7864 continue
7865 fi
7866 ac_cv_prog_CC="cc"
7867 break
7868 fi
7869 done
7870 IFS="$ac_save_ifs"
7871 if test $ac_prog_rejected = yes; then
7872 # We found a bogon in the path, so make sure we never use it.
7873 set dummy $ac_cv_prog_CC
7874 shift
7875 if test $# -gt 0; then
7876 # We chose a different compiler from the bogus one.
7877 # However, it has the same basename, so the bogon will be chosen
7878 # first if we set CC to just the basename; use the full file name.
7879 shift
7880 set dummy "$ac_dir/$ac_word" "$@"
7881 shift
7882 ac_cv_prog_CC="$@"
7883 fi
7884 fi
7885 fi
7886 fi
7887 CC="$ac_cv_prog_CC"
7888 if test -n "$CC"; then
7889 echo "$ac_t""$CC" 1>&6
7890 else
7891 echo "$ac_t""no" 1>&6
7892 fi
7893
7894 if test -z "$CC"; then
7895 case "`uname -s`" in
7896 *win32* | *WIN32*)
7897 # Extract the first word of "cl", so it can be a program name with args.
7898 set dummy cl; ac_word=$2
7899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7900 echo "configure:7901: checking for $ac_word" >&5
7901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7903 else
7904 if test -n "$CC"; then
7905 ac_cv_prog_CC="$CC" # Let the user override the test.
7906 else
7907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7908 ac_dummy="$PATH"
7909 for ac_dir in $ac_dummy; do
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/$ac_word; then
7912 ac_cv_prog_CC="cl"
7913 break
7914 fi
7915 done
7916 IFS="$ac_save_ifs"
7917 fi
7918 fi
7919 CC="$ac_cv_prog_CC"
7920 if test -n "$CC"; then
7921 echo "$ac_t""$CC" 1>&6
7922 else
7923 echo "$ac_t""no" 1>&6
7924 fi
7925 ;;
7926 esac
7927 fi
7928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7929 fi
7930
7931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7932 echo "configure:7933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7933
7934 ac_ext=c
7935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7939 cross_compiling=$ac_cv_prog_cc_cross
7940
7941 cat > conftest.$ac_ext << EOF
7942
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945
7946 main(){return(0);}
7947 EOF
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 ac_cv_prog_cc_works=yes
7950 # If we can't run a trivial program, we are probably using a cross compiler.
7951 if (./conftest; exit) 2>/dev/null; then
7952 ac_cv_prog_cc_cross=no
7953 else
7954 ac_cv_prog_cc_cross=yes
7955 fi
7956 else
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 ac_cv_prog_cc_works=no
7960 fi
7961 rm -fr conftest*
7962 ac_ext=c
7963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7967 cross_compiling=$ac_cv_prog_cc_cross
7968
7969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7970 if test $ac_cv_prog_cc_works = no; then
7971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7972 fi
7973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7974 echo "configure:7975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7976 cross_compiling=$ac_cv_prog_cc_cross
7977
7978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7979 echo "configure:7980: checking whether we are using GNU C" >&5
7980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983 cat > conftest.c <<EOF
7984 #ifdef __GNUC__
7985 yes;
7986 #endif
7987 EOF
7988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7989 ac_cv_prog_gcc=yes
7990 else
7991 ac_cv_prog_gcc=no
7992 fi
7993 fi
7994
7995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7996
7997 if test $ac_cv_prog_gcc = yes; then
7998 GCC=yes
7999 else
8000 GCC=
8001 fi
8002
8003 ac_test_CFLAGS="${CFLAGS+set}"
8004 ac_save_CFLAGS="$CFLAGS"
8005 CFLAGS=
8006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8007 echo "configure:8008: checking whether ${CC-cc} accepts -g" >&5
8008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010 else
8011 echo 'void f(){}' > conftest.c
8012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8013 ac_cv_prog_cc_g=yes
8014 else
8015 ac_cv_prog_cc_g=no
8016 fi
8017 rm -f conftest*
8018
8019 fi
8020
8021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8022 if test "$ac_test_CFLAGS" = set; then
8023 CFLAGS="$ac_save_CFLAGS"
8024 elif test $ac_cv_prog_cc_g = yes; then
8025 if test "$GCC" = yes; then
8026 CFLAGS="-g -O2"
8027 else
8028 CFLAGS="-g"
8029 fi
8030 else
8031 if test "$GCC" = yes; then
8032 CFLAGS="-O2"
8033 else
8034 CFLAGS=
8035 fi
8036 fi
8037
8038
8039 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8040
8041 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8042 echo "configure:8043: checking how to run the C preprocessor" >&5
8043 # On Suns, sometimes $CPP names a directory.
8044 if test -n "$CPP" && test -d "$CPP"; then
8045 CPP=
8046 fi
8047 if test -z "$CPP"; then
8048 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8050 else
8051 # This must be in double quotes, not single quotes, because CPP may get
8052 # substituted into the Makefile and "${CC-cc}" will confuse make.
8053 CPP="${CC-cc} -E"
8054 # On the NeXT, cc -E runs the code through the compiler's parser,
8055 # not just through cpp.
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 #include <assert.h>
8060 Syntax Error
8061 EOF
8062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065 if test -z "$ac_err"; then
8066 :
8067 else
8068 echo "$ac_err" >&5
8069 echo "configure: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8071 rm -rf conftest*
8072 CPP="${CC-cc} -E -traditional-cpp"
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 #include <assert.h>
8077 Syntax Error
8078 EOF
8079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8080 { (eval echo configure:8081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8082 if test -z "$ac_err"; then
8083 :
8084 else
8085 echo "$ac_err" >&5
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 rm -rf conftest*
8089 CPP="${CC-cc} -nologo -E"
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 #include <assert.h>
8094 Syntax Error
8095 EOF
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099 if test -z "$ac_err"; then
8100 :
8101 else
8102 echo "$ac_err" >&5
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 rm -rf conftest*
8106 CPP=/lib/cpp
8107 fi
8108 rm -f conftest*
8109 fi
8110 rm -f conftest*
8111 fi
8112 rm -f conftest*
8113 ac_cv_prog_CPP="$CPP"
8114 fi
8115 CPP="$ac_cv_prog_CPP"
8116 else
8117 ac_cv_prog_CPP="$CPP"
8118 fi
8119 echo "$ac_t""$CPP" 1>&6
8120
8121
8122 if test $ac_cv_prog_gcc = yes; then
8123 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8124 echo "configure:8125: checking whether ${CC-cc} needs -traditional" >&5
8125 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8127 else
8128 ac_pattern="Autoconf.*'x'"
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 #include <sgtty.h>
8133 Autoconf TIOCGETP
8134 EOF
8135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136 egrep "$ac_pattern" >/dev/null 2>&1; then
8137 rm -rf conftest*
8138 ac_cv_prog_gcc_traditional=yes
8139 else
8140 rm -rf conftest*
8141 ac_cv_prog_gcc_traditional=no
8142 fi
8143 rm -f conftest*
8144
8145
8146 if test $ac_cv_prog_gcc_traditional = no; then
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 #include <termio.h>
8151 Autoconf TCGETA
8152 EOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 egrep "$ac_pattern" >/dev/null 2>&1; then
8155 rm -rf conftest*
8156 ac_cv_prog_gcc_traditional=yes
8157 fi
8158 rm -f conftest*
8159
8160 fi
8161 fi
8162
8163 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8164 if test $ac_cv_prog_gcc_traditional = yes; then
8165 CC="$CC -traditional"
8166 fi
8167 fi
8168
8169
8170
8171 ac_ext=C
8172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8173 ac_cpp='$CXXCPP $CPPFLAGS'
8174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8176 cross_compiling=$ac_cv_prog_cxx_cross
8177
8178
8179 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8180 do
8181 # Extract the first word of "$ac_prog", so it can be a program name with args.
8182 set dummy $ac_prog; ac_word=$2
8183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8184 echo "configure:8185: checking for $ac_word" >&5
8185 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
8187 else
8188 if test -n "$CXX"; then
8189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8190 else
8191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8192 ac_dummy="$PATH"
8193 for ac_dir in $ac_dummy; do
8194 test -z "$ac_dir" && ac_dir=.
8195 if test -f $ac_dir/$ac_word; then
8196 ac_cv_prog_CXX="$ac_prog"
8197 break
8198 fi
8199 done
8200 IFS="$ac_save_ifs"
8201 fi
8202 fi
8203 CXX="$ac_cv_prog_CXX"
8204 if test -n "$CXX"; then
8205 echo "$ac_t""$CXX" 1>&6
8206 else
8207 echo "$ac_t""no" 1>&6
8208 fi
8209
8210 test -n "$CXX" && break
8211 done
8212 test -n "$CXX" || CXX="gcc"
8213
8214
8215 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8216 echo "configure:8217: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8217
8218 ac_ext=C
8219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8220 ac_cpp='$CXXCPP $CPPFLAGS'
8221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8223 cross_compiling=$ac_cv_prog_cxx_cross
8224
8225 cat > conftest.$ac_ext << EOF
8226
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229
8230 int main(){return(0);}
8231 EOF
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8233 ac_cv_prog_cxx_works=yes
8234 # If we can't run a trivial program, we are probably using a cross compiler.
8235 if (./conftest; exit) 2>/dev/null; then
8236 ac_cv_prog_cxx_cross=no
8237 else
8238 ac_cv_prog_cxx_cross=yes
8239 fi
8240 else
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8243 ac_cv_prog_cxx_works=no
8244 fi
8245 rm -fr conftest*
8246 ac_ext=C
8247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8248 ac_cpp='$CXXCPP $CPPFLAGS'
8249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8251 cross_compiling=$ac_cv_prog_cxx_cross
8252
8253 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8254 if test $ac_cv_prog_cxx_works = no; then
8255 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8256 fi
8257 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8258 echo "configure:8259: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8259 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8260 cross_compiling=$ac_cv_prog_cxx_cross
8261
8262 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8263 echo "configure:8264: checking whether we are using GNU C++" >&5
8264 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8266 else
8267 cat > conftest.C <<EOF
8268 #ifdef __GNUC__
8269 yes;
8270 #endif
8271 EOF
8272 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8273 ac_cv_prog_gxx=yes
8274 else
8275 ac_cv_prog_gxx=no
8276 fi
8277 fi
8278
8279 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8280
8281 if test $ac_cv_prog_gxx = yes; then
8282 GXX=yes
8283 else
8284 GXX=
8285 fi
8286
8287 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8288 ac_save_CXXFLAGS="$CXXFLAGS"
8289 CXXFLAGS=
8290 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8291 echo "configure:8292: checking whether ${CXX-g++} accepts -g" >&5
8292 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294 else
8295 echo 'void f(){}' > conftest.cc
8296 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8297 ac_cv_prog_cxx_g=yes
8298 else
8299 ac_cv_prog_cxx_g=no
8300 fi
8301 rm -f conftest*
8302
8303 fi
8304
8305 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8306 if test "$ac_test_CXXFLAGS" = set; then
8307 CXXFLAGS="$ac_save_CXXFLAGS"
8308 elif test $ac_cv_prog_cxx_g = yes; then
8309 if test "$GXX" = yes; then
8310 CXXFLAGS="-g -O2"
8311 else
8312 CXXFLAGS="-g"
8313 fi
8314 else
8315 if test "$GXX" = yes; then
8316 CXXFLAGS="-O2"
8317 else
8318 CXXFLAGS=
8319 fi
8320 fi
8321
8322
8323 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8324 echo "configure:8325: checking how to run the C++ preprocessor" >&5
8325 if test -z "$CXXCPP"; then
8326 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
8328 else
8329 ac_ext=C
8330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8331 ac_cpp='$CXXCPP $CPPFLAGS'
8332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8334 cross_compiling=$ac_cv_prog_cxx_cross
8335 CXXCPP="${CXX-g++} -E"
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 #include <stdlib.h>
8340 EOF
8341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8342 { (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8344 if test -z "$ac_err"; then
8345 :
8346 else
8347 echo "$ac_err" >&5
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 rm -rf conftest*
8351 CXXCPP=/lib/cpp
8352 fi
8353 rm -f conftest*
8354 ac_cv_prog_CXXCPP="$CXXCPP"
8355 ac_ext=C
8356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8357 ac_cpp='$CXXCPP $CPPFLAGS'
8358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8360 cross_compiling=$ac_cv_prog_cxx_cross
8361 fi
8362 fi
8363 CXXCPP="$ac_cv_prog_CXXCPP"
8364 echo "$ac_t""$CXXCPP" 1>&6
8365
8366
8367 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8368
8369 ac_ext=c
8370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8371 ac_cpp='$CPP $CPPFLAGS'
8372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8374 cross_compiling=$ac_cv_prog_cc_cross
8375
8376
8377 # Extract the first word of "ranlib", so it can be a program name with args.
8378 set dummy ranlib; ac_word=$2
8379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8380 echo "configure:8381: checking for $ac_word" >&5
8381 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8383 else
8384 if test -n "$RANLIB"; then
8385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8386 else
8387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8388 ac_dummy="$PATH"
8389 for ac_dir in $ac_dummy; do
8390 test -z "$ac_dir" && ac_dir=.
8391 if test -f $ac_dir/$ac_word; then
8392 ac_cv_prog_RANLIB="ranlib"
8393 break
8394 fi
8395 done
8396 IFS="$ac_save_ifs"
8397 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8398 fi
8399 fi
8400 RANLIB="$ac_cv_prog_RANLIB"
8401 if test -n "$RANLIB"; then
8402 echo "$ac_t""$RANLIB" 1>&6
8403 else
8404 echo "$ac_t""no" 1>&6
8405 fi
8406
8407
8408 # Extract the first word of "ar", so it can be a program name with args.
8409 set dummy ar; ac_word=$2
8410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_word" >&5
8412 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8414 else
8415 if test -n "$AR"; then
8416 ac_cv_prog_AR="$AR" # Let the user override the test.
8417 else
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_AR="ar"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
8428 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8429 fi
8430 fi
8431 AR="$ac_cv_prog_AR"
8432 if test -n "$AR"; then
8433 echo "$ac_t""$AR" 1>&6
8434 else
8435 echo "$ac_t""no" 1>&6
8436 fi
8437
8438
8439 # Find a good install program. We prefer a C program (faster),
8440 # so one script is as good as another. But avoid the broken or
8441 # incompatible versions:
8442 # SysV /etc/install, /usr/sbin/install
8443 # SunOS /usr/etc/install
8444 # IRIX /sbin/install
8445 # AIX /bin/install
8446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8449 # ./install, which can be erroneously created by make from ./install.sh.
8450 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8451 echo "configure:8452: checking for a BSD compatible install" >&5
8452 if test -z "$INSTALL"; then
8453 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455 else
8456 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8457 for ac_dir in $PATH; do
8458 # Account for people who put trailing slashes in PATH elements.
8459 case "$ac_dir/" in
8460 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8461 *)
8462 # OSF1 and SCO ODT 3.0 have their own names for install.
8463 # Don't use installbsd from OSF since it installs stuff as root
8464 # by default.
8465 for ac_prog in ginstall scoinst install; do
8466 if test -f $ac_dir/$ac_prog; then
8467 if test $ac_prog = install &&
8468 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8469 # AIX install. It has an incompatible calling convention.
8470 :
8471 else
8472 ac_cv_path_install="$ac_dir/$ac_prog -c"
8473 break 2
8474 fi
8475 fi
8476 done
8477 ;;
8478 esac
8479 done
8480 IFS="$ac_save_IFS"
8481
8482 fi
8483 if test "${ac_cv_path_install+set}" = set; then
8484 INSTALL="$ac_cv_path_install"
8485 else
8486 # As a last resort, use the slow shell script. We don't cache a
8487 # path for INSTALL within a source directory, because that will
8488 # break other packages using the cache if that directory is
8489 # removed, or if the path is relative.
8490 INSTALL="$ac_install_sh"
8491 fi
8492 fi
8493 echo "$ac_t""$INSTALL" 1>&6
8494
8495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496 # It thinks the first close brace ends the variable substitution.
8497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
8499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8500
8501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
8503
8504 # Extract the first word of "strip", so it can be a program name with args.
8505 set dummy strip; ac_word=$2
8506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8507 echo "configure:8508: checking for $ac_word" >&5
8508 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8510 else
8511 if test -n "$STRIP"; then
8512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8513 else
8514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8515 ac_dummy="$PATH"
8516 for ac_dir in $ac_dummy; do
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/$ac_word; then
8519 ac_cv_prog_STRIP="strip"
8520 break
8521 fi
8522 done
8523 IFS="$ac_save_ifs"
8524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8525 fi
8526 fi
8527 STRIP="$ac_cv_prog_STRIP"
8528 if test -n "$STRIP"; then
8529 echo "$ac_t""$STRIP" 1>&6
8530 else
8531 echo "$ac_t""no" 1>&6
8532 fi
8533
8534
8535 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8536 echo "configure:8537: checking make for VPATH support" >&5
8537 cat - << EOF > confMake
8538 check : file
8539 cp \$? \$@
8540 cp \$? final_file
8541 EOF
8542
8543 if test ! -d sub ; then
8544 mkdir sub
8545 fi
8546 echo dummy > sub/file
8547 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8548 RESULT=$?
8549 rm -f sub/file check final_file confMake
8550 rmdir sub
8551 if test "$RESULT" = 0; then
8552 echo "$ac_t""yes" 1>&6
8553 else
8554 echo "$ac_t""no" 1>&6
8555 { echo "configure: error:
8556 You need a make-utility that is able to use the variable
8557 VPATH correctly.
8558 If your version of make does not support VPATH correctly,
8559 please install GNU-make (possibly as gmake), and start
8560 configure with the following command:
8561 export MAKE=gmake; ./configure for sh-type shells
8562 setenv MAKE gmake; ./configure for csh-type shells
8563 Also please do remember to use gmake in this case every time
8564 you are trying to compile.
8565 " 1>&2; exit 1; }
8566 fi
8567
8568 for ac_prog in 'bison -y' byacc
8569 do
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571 set dummy $ac_prog; ac_word=$2
8572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8573 echo "configure:8574: checking for $ac_word" >&5
8574 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8576 else
8577 if test -n "$YACC"; then
8578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8579 else
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8581 ac_dummy="$PATH"
8582 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/$ac_word; then
8585 ac_cv_prog_YACC="$ac_prog"
8586 break
8587 fi
8588 done
8589 IFS="$ac_save_ifs"
8590 fi
8591 fi
8592 YACC="$ac_cv_prog_YACC"
8593 if test -n "$YACC"; then
8594 echo "$ac_t""$YACC" 1>&6
8595 else
8596 echo "$ac_t""no" 1>&6
8597 fi
8598
8599 test -n "$YACC" && break
8600 done
8601 test -n "$YACC" || YACC="yacc"
8602
8603
8604 # Extract the first word of "flex", so it can be a program name with args.
8605 set dummy flex; ac_word=$2
8606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8607 echo "configure:8608: checking for $ac_word" >&5
8608 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8610 else
8611 if test -n "$LEX"; then
8612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8613 else
8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8615 ac_dummy="$PATH"
8616 for ac_dir in $ac_dummy; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f $ac_dir/$ac_word; then
8619 ac_cv_prog_LEX="flex"
8620 break
8621 fi
8622 done
8623 IFS="$ac_save_ifs"
8624 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8625 fi
8626 fi
8627 LEX="$ac_cv_prog_LEX"
8628 if test -n "$LEX"; then
8629 echo "$ac_t""$LEX" 1>&6
8630 else
8631 echo "$ac_t""no" 1>&6
8632 fi
8633
8634 if test -z "$LEXLIB"
8635 then
8636 case "$LEX" in
8637 flex*) ac_lib=fl ;;
8638 *) ac_lib=l ;;
8639 esac
8640 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8641 echo "configure:8642: checking for yywrap in -l$ac_lib" >&5
8642 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8646 ac_save_LIBS="$LIBS"
8647 LIBS="-l$ac_lib $LIBS"
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8654 char yywrap();
8655
8656 int main() {
8657 yywrap()
8658 ; return 0; }
8659 EOF
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8661 rm -rf conftest*
8662 eval "ac_cv_lib_$ac_lib_var=yes"
8663 else
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_lib_$ac_lib_var=no"
8668 fi
8669 rm -f conftest*
8670 LIBS="$ac_save_LIBS"
8671
8672 fi
8673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 LEXLIB="-l$ac_lib"
8676 else
8677 echo "$ac_t""no" 1>&6
8678 fi
8679
8680 fi
8681
8682
8683 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8684 echo "configure:8685: checking whether ln -s works" >&5
8685 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688 rm -f conftestdata
8689 if ln -s X conftestdata 2>/dev/null
8690 then
8691 rm -f conftestdata
8692 ac_cv_prog_LN_S="ln -s"
8693 else
8694 ac_cv_prog_LN_S=ln
8695 fi
8696 fi
8697 LN_S="$ac_cv_prog_LN_S"
8698 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8699 echo "$ac_t""yes" 1>&6
8700 else
8701 echo "$ac_t""no" 1>&6
8702 fi
8703
8704
8705
8706 SEARCH_INCLUDE="\
8707 /usr/local/include \
8708 \
8709 /usr/Motif-1.2/include \
8710 /usr/Motif-2.1/include \
8711 \
8712 /usr/include/Motif1.2 \
8713 /opt/xpm/include/X11 \
8714 /opt/GBxpm/include/ \
8715 /opt/GBxpm/X11/include/ \
8716 \
8717 /usr/Motif1.2/include \
8718 /usr/dt/include \
8719 /usr/openwin/include \
8720 \
8721 /usr/include/Xm \
8722 \
8723 /usr/X11R6/include \
8724 /usr/X11R6.4/include \
8725 /usr/X11R5/include \
8726 /usr/X11R4/include \
8727 \
8728 /usr/include/X11R6 \
8729 /usr/include/X11R5 \
8730 /usr/include/X11R4 \
8731 \
8732 /usr/local/X11R6/include \
8733 /usr/local/X11R5/include \
8734 /usr/local/X11R4/include \
8735 \
8736 /usr/local/include/X11R6 \
8737 /usr/local/include/X11R5 \
8738 /usr/local/include/X11R4 \
8739 \
8740 /usr/X11/include \
8741 /usr/include/X11 \
8742 /usr/local/X11/include \
8743 /usr/local/include/X11 \
8744 \
8745 /usr/X386/include \
8746 /usr/x386/include \
8747 /usr/XFree86/include/X11 \
8748 \
8749 X:/XFree86/include \
8750 X:/XFree86/include/X11 \
8751 \
8752 /usr/include/gtk \
8753 /usr/local/include/gtk \
8754 /usr/include/glib \
8755 /usr/local/include/glib \
8756 \
8757 /usr/include/qt \
8758 /usr/local/include/qt \
8759 \
8760 /usr/include/windows \
8761 /usr/include/wine \
8762 /usr/local/include/wine \
8763 \
8764 /usr/unsupported/include \
8765 /usr/athena/include \
8766 /usr/local/x11r5/include \
8767 /usr/lpp/Xamples/include \
8768 \
8769 /usr/openwin/share/include \
8770 \
8771 /usr/include"
8772
8773 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8774
8775
8776 cat > confcache <<\EOF
8777 # This file is a shell script that caches the results of configure
8778 # tests run on this system so they can be shared between configure
8779 # scripts and configure runs. It is not useful on other systems.
8780 # If it contains results you don't want to keep, you may remove or edit it.
8781 #
8782 # By default, configure uses ./config.cache as the cache file,
8783 # creating it if it does not exist already. You can give configure
8784 # the --cache-file=FILE option to use a different cache file; that is
8785 # what configure does when it calls configure scripts in
8786 # subdirectories, so they share the cache.
8787 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8788 # config.status only pays attention to the cache file if you give it the
8789 # --recheck option to rerun configure.
8790 #
8791 EOF
8792 # The following way of writing the cache mishandles newlines in values,
8793 # but we know of no workaround that is simple, portable, and efficient.
8794 # So, don't put newlines in cache variables' values.
8795 # Ultrix sh set writes to stderr and can't be redirected directly,
8796 # and sets the high bit in the cache file unless we assign to the vars.
8797 (set) 2>&1 |
8798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8799 *ac_space=\ *)
8800 # `set' does not quote correctly, so add quotes (double-quote substitution
8801 # turns \\\\ into \\, and sed turns \\ into \).
8802 sed -n \
8803 -e "s/'/'\\\\''/g" \
8804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8805 ;;
8806 *)
8807 # `set' quotes correctly as required by POSIX, so do not add quotes.
8808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8809 ;;
8810 esac >> confcache
8811 if cmp -s $cache_file confcache; then
8812 :
8813 else
8814 if test -w $cache_file; then
8815 echo "updating cache $cache_file"
8816 cat confcache > $cache_file
8817 else
8818 echo "not updating unwritable cache $cache_file"
8819 fi
8820 fi
8821 rm -f confcache
8822
8823
8824
8825 AFMINSTALL=
8826
8827 if test "$wxUSE_GUI" = "yes"; then
8828 USE_GUI=1
8829
8830 TOOLKIT=
8831 TOOLKIT_INCLUDE=
8832
8833 GUI_TK_LIBRARY=
8834 GUI_TK_LINK=
8835
8836 WXGTK12=
8837 WXGTK127=
8838 WXGTK20=
8839
8840 WXWINE=
8841
8842 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8843 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8844 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8845 echo "configure:8846: checking for windows.h" >&5
8846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8848 else
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 #include <windows.h>
8853 EOF
8854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8855 { (eval echo configure:8856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8857 if test -z "$ac_err"; then
8858 rm -rf conftest*
8859 eval "ac_cv_header_$ac_safe=yes"
8860 else
8861 echo "$ac_err" >&5
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 rm -rf conftest*
8865 eval "ac_cv_header_$ac_safe=no"
8866 fi
8867 rm -f conftest*
8868 fi
8869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8870 echo "$ac_t""yes" 1>&6
8871 :
8872 else
8873 echo "$ac_t""no" 1>&6
8874
8875 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8876
8877 fi
8878
8879
8880 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8881
8882 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
8883
8884 if test "$wxUSE_ODBC" = "yes" ; then
8885 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8886 fi
8887
8888 if test "$wxUSE_MINGW" = 1; then
8889 LDFLAGS="$LDFLAGS -mwindows"
8890 fi
8891
8892 TOOLKIT=MSW
8893 GUIDIST=MSW_DIST
8894
8895 RCINCSWITCH="--include-dir"
8896 RCDEFSWITCH="--define"
8897 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8898 RCINPUTSWITCH="-i"
8899 RCOUTPUTSWITCH="-o"
8900 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8901
8902 RESPROGRAM="\$(RES_PROGRAM)"
8903 fi
8904
8905 if test "$wxUSE_GTK" = 1; then
8906 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8907 echo "configure:8908: checking for GTK+ version" >&5
8908
8909 gtk_version_cached=1
8910 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8911 echo $ac_n "(cached) $ac_c" 1>&6
8912 else
8913
8914 gtk_version_cached=0
8915 echo "$ac_t""""" 1>&6
8916
8917 wx_cv_lib_gtk=
8918 if test "x$wxUSE_GTK2" = "xyes"; then
8919 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8920 if test "${with_gtk_prefix+set}" = set; then
8921 withval="$with_gtk_prefix"
8922 gtk_config_prefix="$withval"
8923 else
8924 gtk_config_prefix=""
8925 fi
8926
8927 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8928 if test "${with_gtk_exec_prefix+set}" = set; then
8929 withval="$with_gtk_exec_prefix"
8930 gtk_config_exec_prefix="$withval"
8931 else
8932 gtk_config_exec_prefix=""
8933 fi
8934
8935 # Check whether --enable-gtktest or --disable-gtktest was given.
8936 if test "${enable_gtktest+set}" = set; then
8937 enableval="$enable_gtktest"
8938 :
8939 else
8940 enable_gtktest=yes
8941 fi
8942
8943
8944 for module in .
8945 do
8946 case "$module" in
8947 gthread)
8948 gtk_config_args="$gtk_config_args gthread"
8949 ;;
8950 esac
8951 done
8952
8953 if test x$gtk_config_exec_prefix != x ; then
8954 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8955 if test x${GTK_CONFIG_2_0+set} != xset ; then
8956 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8957 fi
8958 fi
8959 if test x$gtk_config_prefix != x ; then
8960 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8961 if test x${GTK_CONFIG_2_0+set} != xset ; then
8962 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8963 fi
8964 fi
8965
8966 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8967 set dummy gtk-config-2.0; ac_word=$2
8968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8969 echo "configure:8970: checking for $ac_word" >&5
8970 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
8972 else
8973 case "$GTK_CONFIG_2_0" in
8974 /*)
8975 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8976 ;;
8977 ?:/*)
8978 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8979 ;;
8980 *)
8981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8982 ac_dummy="$PATH"
8983 for ac_dir in $ac_dummy; do
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f $ac_dir/$ac_word; then
8986 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8987 break
8988 fi
8989 done
8990 IFS="$ac_save_ifs"
8991 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8992 ;;
8993 esac
8994 fi
8995 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8996 if test -n "$GTK_CONFIG_2_0"; then
8997 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8998 else
8999 echo "$ac_t""no" 1>&6
9000 fi
9001
9002 min_gtk_version=1.3.1
9003 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9004 echo "configure:9005: checking for GTK - version >= $min_gtk_version" >&5
9005 no_gtk=""
9006 if test "$GTK_CONFIG_2_0" = "no" ; then
9007 no_gtk=yes
9008 else
9009 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9010 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9011 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9013 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9015 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9016 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9017 if test "x$enable_gtktest" = "xyes" ; then
9018 ac_save_CFLAGS="$CFLAGS"
9019 ac_save_LIBS="$LIBS"
9020 CFLAGS="$CFLAGS $GTK_CFLAGS"
9021 LIBS="$GTK_LIBS $LIBS"
9022 rm -f conf.gtktest
9023 if test "$cross_compiling" = yes; then
9024 echo $ac_n "cross compiling; assumed OK... $ac_c"
9025 else
9026 cat > conftest.$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9029
9030 #include <gtk/gtk.h>
9031 #include <stdio.h>
9032 #include <stdlib.h>
9033
9034 int
9035 main ()
9036 {
9037 int major, minor, micro;
9038 char *tmp_version;
9039
9040 system ("touch conf.gtktest");
9041
9042 /* HP/UX 9 (%@#!) writes to sscanf strings */
9043 tmp_version = g_strdup("$min_gtk_version");
9044 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9045 printf("%s, bad version string\n", "$min_gtk_version");
9046 exit(1);
9047 }
9048
9049 if ((gtk_major_version != $gtk_config_major_version) ||
9050 (gtk_minor_version != $gtk_config_minor_version) ||
9051 (gtk_micro_version != $gtk_config_micro_version))
9052 {
9053 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9054 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9055 gtk_major_version, gtk_minor_version, gtk_micro_version);
9056 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9057 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9058 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9059 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9060 printf("*** required on your system.\n");
9061 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9062 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9063 printf("*** before re-running configure\n");
9064 }
9065 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9066 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9067 (gtk_minor_version != GTK_MINOR_VERSION) ||
9068 (gtk_micro_version != GTK_MICRO_VERSION))
9069 {
9070 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9071 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9072 printf("*** library (version %d.%d.%d)\n",
9073 gtk_major_version, gtk_minor_version, gtk_micro_version);
9074 }
9075 #endif /* defined (GTK_MAJOR_VERSION) ... */
9076 else
9077 {
9078 if ((gtk_major_version > major) ||
9079 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9080 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9081 {
9082 return 0;
9083 }
9084 else
9085 {
9086 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9087 gtk_major_version, gtk_minor_version, gtk_micro_version);
9088 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9089 major, minor, micro);
9090 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9091 printf("***\n");
9092 printf("*** If you have already installed a sufficiently new version, this error\n");
9093 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9094 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9095 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9096 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9097 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9098 printf("*** so that the correct libraries are found at run-time))\n");
9099 }
9100 }
9101 return 1;
9102 }
9103
9104 EOF
9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9106 then
9107 :
9108 else
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -fr conftest*
9112 no_gtk=yes
9113 fi
9114 rm -fr conftest*
9115 fi
9116
9117 CFLAGS="$ac_save_CFLAGS"
9118 LIBS="$ac_save_LIBS"
9119 fi
9120 fi
9121 if test "x$no_gtk" = x ; then
9122 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9123 wx_cv_lib_gtk=2.0
9124 else
9125 echo "$ac_t""no" 1>&6
9126 if test "$GTK_CONFIG_2_0" = "no" ; then
9127 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9128 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9129 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9130 echo "*** full path to gtk-config-2.0."
9131 else
9132 if test -f conf.gtktest ; then
9133 :
9134 else
9135 echo "*** Could not run GTK test program, checking why..."
9136 CFLAGS="$CFLAGS $GTK_CFLAGS"
9137 LIBS="$LIBS $GTK_LIBS"
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9140 "configure"
9140 #include "confdefs.h"
9141
9142 #include <gtk/gtk.h>
9143 #include <stdio.h>
9144
9145 int main() {
9146 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9147 ; return 0; }
9148 EOF
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9150 rm -rf conftest*
9151 echo "*** The test program compiled, but did not run. This usually means"
9152 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9153 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9154 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9155 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9156 echo "*** is required on your system"
9157 echo "***"
9158 echo "*** If you have an old version installed, it is best to remove it, although"
9159 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9160 echo "***"
9161 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9162 echo "*** came with the system with the command"
9163 echo "***"
9164 echo "*** rpm --erase --nodeps gtk gtk-devel"
9165 else
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 rm -rf conftest*
9169 echo "*** The test program failed to compile or link. See the file config.log for the"
9170 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9171 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9172 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9173 fi
9174 rm -f conftest*
9175 CFLAGS="$ac_save_CFLAGS"
9176 LIBS="$ac_save_LIBS"
9177 fi
9178 fi
9179 GTK_CFLAGS=""
9180 GTK_LIBS=""
9181 gthread
9182 fi
9183
9184
9185 rm -f conf.gtktest
9186
9187 fi
9188
9189 if test -z "$wx_cv_lib_gtk"; then
9190
9191 if test x$gtk_config_exec_prefix != x ; then
9192 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9193 if test x${GTK_CONFIG+set} != xset ; then
9194 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9195 fi
9196 fi
9197 if test x$gtk_config_prefix != x ; then
9198 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9199 if test x${GTK_CONFIG+set} != xset ; then
9200 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9201 fi
9202 fi
9203
9204 # Extract the first word of "gtk-config", so it can be a program name with args.
9205 set dummy gtk-config; ac_word=$2
9206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9207 echo "configure:9208: checking for $ac_word" >&5
9208 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9210 else
9211 case "$GTK_CONFIG" in
9212 /*)
9213 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9214 ;;
9215 ?:/*)
9216 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9217 ;;
9218 *)
9219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9220 ac_dummy="$PATH"
9221 for ac_dir in $ac_dummy; do
9222 test -z "$ac_dir" && ac_dir=.
9223 if test -f $ac_dir/$ac_word; then
9224 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9225 break
9226 fi
9227 done
9228 IFS="$ac_save_ifs"
9229 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9230 ;;
9231 esac
9232 fi
9233 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9234 if test -n "$GTK_CONFIG"; then
9235 echo "$ac_t""$GTK_CONFIG" 1>&6
9236 else
9237 echo "$ac_t""no" 1>&6
9238 fi
9239
9240 min_gtk_version=1.2.7
9241 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9242 echo "configure:9243: checking for GTK - version >= $min_gtk_version" >&5
9243 no_gtk=""
9244 if test "$GTK_CONFIG" != "no" ; then
9245 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9246 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9247 ac_save_CFLAGS="$CFLAGS"
9248 ac_save_LIBS="$LIBS"
9249 CFLAGS="$CFLAGS $GTK_CFLAGS"
9250 LIBS="$LIBS $GTK_LIBS"
9251 if test "$cross_compiling" = yes; then
9252 echo $ac_n "cross compiling; assumed OK... $ac_c"
9253 else
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257
9258 #include <gtk/gtk.h>
9259 #include <gtk/gtkfeatures.h>
9260 #include <stdio.h>
9261 #include <stdlib.h>
9262
9263 int
9264 main ()
9265 {
9266 int major, minor, micro;
9267
9268 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9269 printf("%s, bad version string\n", "$min_gtk_version");
9270 exit(1);
9271 }
9272
9273 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9274 (GTK_MINOR_VERSION != gtk_minor_version) ||
9275 (GTK_MICRO_VERSION != gtk_micro_version)) {
9276 printf("Headers vs. library version mismatch!\n");
9277 exit(1);
9278 }
9279
9280 if (gtk_minor_version == 1) return FALSE;
9281
9282 return !((gtk_major_version > major) ||
9283 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9284 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9285 }
9286
9287 EOF
9288 if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9289 then
9290 :
9291 else
9292 echo "configure: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294 rm -fr conftest*
9295 no_gtk=yes
9296 fi
9297 rm -fr conftest*
9298 fi
9299
9300 CFLAGS="$ac_save_CFLAGS"
9301 LIBS="$ac_save_LIBS"
9302 else
9303 no_gtk=yes
9304 fi
9305 if test "x$no_gtk" = x ; then
9306 echo "$ac_t""yes" 1>&6
9307 wx_cv_lib_gtk=1.2.7
9308 else
9309 echo "$ac_t""no" 1>&6
9310 GTK_CFLAGS=""
9311 GTK_LIBS=""
9312 :
9313 fi
9314
9315
9316
9317 fi
9318
9319 if test -z "$wx_cv_lib_gtk"; then
9320
9321 if test x$gtk_config_exec_prefix != x ; then
9322 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9323 if test x${GTK_CONFIG+set} != xset ; then
9324 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9325 fi
9326 fi
9327 if test x$gtk_config_prefix != x ; then
9328 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9329 if test x${GTK_CONFIG+set} != xset ; then
9330 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9331 fi
9332 fi
9333
9334 # Extract the first word of "gtk-config", so it can be a program name with args.
9335 set dummy gtk-config; ac_word=$2
9336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9337 echo "configure:9338: checking for $ac_word" >&5
9338 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9340 else
9341 case "$GTK_CONFIG" in
9342 /*)
9343 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9344 ;;
9345 ?:/*)
9346 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9347 ;;
9348 *)
9349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9350 ac_dummy="$PATH"
9351 for ac_dir in $ac_dummy; do
9352 test -z "$ac_dir" && ac_dir=.
9353 if test -f $ac_dir/$ac_word; then
9354 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9355 break
9356 fi
9357 done
9358 IFS="$ac_save_ifs"
9359 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9360 ;;
9361 esac
9362 fi
9363 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9364 if test -n "$GTK_CONFIG"; then
9365 echo "$ac_t""$GTK_CONFIG" 1>&6
9366 else
9367 echo "$ac_t""no" 1>&6
9368 fi
9369
9370 min_gtk_version=1.2.3
9371 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9372 echo "configure:9373: checking for GTK - version >= $min_gtk_version" >&5
9373 no_gtk=""
9374 if test "$GTK_CONFIG" != "no" ; then
9375 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9376 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9377 ac_save_CFLAGS="$CFLAGS"
9378 ac_save_LIBS="$LIBS"
9379 CFLAGS="$CFLAGS $GTK_CFLAGS"
9380 LIBS="$LIBS $GTK_LIBS"
9381 if test "$cross_compiling" = yes; then
9382 echo $ac_n "cross compiling; assumed OK... $ac_c"
9383 else
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387
9388 #include <gtk/gtk.h>
9389 #include <gtk/gtkfeatures.h>
9390 #include <stdio.h>
9391 #include <stdlib.h>
9392
9393 int
9394 main ()
9395 {
9396 int major, minor, micro;
9397
9398 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9399 printf("%s, bad version string\n", "$min_gtk_version");
9400 exit(1);
9401 }
9402
9403 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9404 (GTK_MINOR_VERSION != gtk_minor_version) ||
9405 (GTK_MICRO_VERSION != gtk_micro_version)) {
9406 printf("Headers vs. library version mismatch!\n");
9407 exit(1);
9408 }
9409
9410 if (gtk_minor_version == 1) return FALSE;
9411
9412 return !((gtk_major_version > major) ||
9413 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9414 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9415 }
9416
9417 EOF
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9419 then
9420 :
9421 else
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 rm -fr conftest*
9425 no_gtk=yes
9426 fi
9427 rm -fr conftest*
9428 fi
9429
9430 CFLAGS="$ac_save_CFLAGS"
9431 LIBS="$ac_save_LIBS"
9432 else
9433 no_gtk=yes
9434 fi
9435 if test "x$no_gtk" = x ; then
9436 echo "$ac_t""yes" 1>&6
9437 wx_cv_lib_gtk=1.2.3
9438 else
9439 echo "$ac_t""no" 1>&6
9440 GTK_CFLAGS=""
9441 GTK_LIBS=""
9442 :
9443 fi
9444
9445
9446
9447 fi
9448
9449 if test -z "$wx_cv_lib_gtk"; then
9450 wx_cv_lib_gtk=none
9451 else
9452 wx_cv_cflags_gtk=$GTK_CFLAGS
9453 wx_cv_libs_gtk=$GTK_LIBS
9454 fi
9455
9456
9457 fi
9458
9459
9460 if test "$gtk_version_cached" = 1; then
9461 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9462 fi
9463
9464 case "$wx_cv_lib_gtk" in
9465 2.0) WXGTK20=1
9466 ;;
9467 1.2.7) WXGTK127=1
9468 WXGTK12=1
9469 ;;
9470 1.2.3) WXGTK12=1
9471 ;;
9472 *) { echo "configure: error:
9473 Please check that gtk-config is in path, the directory
9474 where GTK+ libraries are installed (returned by
9475 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9476 equivalent variable and GTK+ is version 1.2.3 or above.
9477 " 1>&2; exit 1; }
9478 ;;
9479 esac
9480
9481 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9482 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9483
9484 AFMINSTALL=afminstall
9485 TOOLKIT=GTK
9486 GUIDIST=GTK_DIST
9487
9488 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9489 echo "configure:9490: checking for gdk_im_open in -lgdk" >&5
9490 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9494 ac_save_LIBS="$LIBS"
9495 LIBS="-lgdk $LIBS"
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502 char gdk_im_open();
9503
9504 int main() {
9505 gdk_im_open()
9506 ; return 0; }
9507 EOF
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9509 rm -rf conftest*
9510 eval "ac_cv_lib_$ac_lib_var=yes"
9511 else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 eval "ac_cv_lib_$ac_lib_var=no"
9516 fi
9517 rm -f conftest*
9518 LIBS="$ac_save_LIBS"
9519
9520 fi
9521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9522 echo "$ac_t""yes" 1>&6
9523 cat >> confdefs.h <<\EOF
9524 #define HAVE_XIM 1
9525 EOF
9526
9527 else
9528 echo "$ac_t""no" 1>&6
9529 fi
9530
9531 fi
9532
9533 if test "$wxUSE_MGL" = 1; then
9534
9535 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9536 echo "configure:9537: checking for SciTech MGL library" >&5
9537 if test "x$MGL_ROOT" = x ; then
9538 echo "$ac_t""not found" 1>&6
9539 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9540 else
9541 echo "$ac_t""$MGL_ROOT" 1>&6
9542 fi
9543
9544 MGL_OS=linux/gcc/glibc
9545 MGL_LIB_TYPE=""
9546
9547 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9548 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9549 MGL_LIB_TYPE=debug
9550 fi
9551 fi
9552 if test "x$MGL_LIB_TYPE" = x ; then
9553 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9554 MGL_LIB_TYPE=release
9555 else
9556 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9557 fi
9558 fi
9559
9560 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9561 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9562
9563 AFMINSTALL=afminstall
9564 TOOLKIT=MGL
9565 GUIDIST=MGL_DIST
9566 fi
9567
9568 if test "$wxUSE_WINE" = 1; then
9569 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9570 echo "configure:9571: checking for WINE includes" >&5
9571
9572 ac_find_includes=
9573 for ac_dir in $SEARCH_INCLUDE;
9574 do
9575 if test -f "$ac_dir/windows.h"; then
9576 ac_find_includes=$ac_dir
9577 break
9578 fi
9579 done
9580
9581 if test "$ac_find_includes" != "" ; then
9582 echo "$ac_t""found $ac_find_includes" 1>&6
9583 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9584 else
9585 echo "$ac_t""no" 1>&6
9586 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9587 fi
9588
9589 XPM_LINK=""
9590 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9591 echo "configure:9592: checking for Xpm library" >&5
9592
9593 ac_find_libraries=
9594 for ac_dir in $SEARCH_LIB;
9595 do
9596 for ac_extension in a so sl dylib; do
9597 if test -f "$ac_dir/libXpm.$ac_extension"; then
9598 ac_find_libraries=$ac_dir
9599 break 2
9600 fi
9601 done
9602 done
9603
9604 if test "$ac_find_libraries" != "" ; then
9605 GUI_TK_LIBRARY="-L$ac_find_libraries"
9606 XPM_LINK="-lXpm"
9607 cat >> confdefs.h <<\EOF
9608 #define wxHAVE_LIB_XPM 1
9609 EOF
9610
9611 echo "$ac_t""found at $ac_find_libraries" 1>&6
9612 else
9613 echo "$ac_t""no" 1>&6
9614 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9615 fi
9616
9617 MESA_LINK=""
9618 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9619 echo "configure:9620: checking for Mesa library" >&5
9620
9621 ac_find_libraries=
9622 for ac_dir in $SEARCH_LIB;
9623 do
9624 for ac_extension in a so sl dylib; do
9625 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9626 ac_find_libraries=$ac_dir
9627 break 2
9628 fi
9629 done
9630 done
9631
9632 if test "$ac_find_libraries" != "" ; then
9633 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9634 MESA_LINK="-lMesaGL"
9635 echo "$ac_t""found at $ac_find_libraries" 1>&6
9636 else
9637 { echo "configure: error: no" 1>&2; exit 1; }
9638 fi
9639
9640 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9641 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9642 WXWINE=1
9643 TOOLKIT=MSW
9644 GUIDIST=MSW_DIST
9645 fi
9646
9647
9648 # If we find X, set shell vars x_includes and x_libraries to the
9649 # paths, otherwise set no_x=yes.
9650 # Uses ac_ vars as temps to allow command line to override cache and checks.
9651 # --without-x overrides everything else, but does not touch the cache.
9652 echo $ac_n "checking for X""... $ac_c" 1>&6
9653 echo "configure:9654: checking for X" >&5
9654
9655 # Check whether --with-x or --without-x was given.
9656 if test "${with_x+set}" = set; then
9657 withval="$with_x"
9658 :
9659 fi
9660
9661 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9662 if test "x$with_x" = xno; then
9663 # The user explicitly disabled X.
9664 have_x=disabled
9665 else
9666 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9667 # Both variables are already set.
9668 have_x=yes
9669 else
9670 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673 # One or both of the vars are not set, and there is no cached value.
9674 ac_x_includes=NO ac_x_libraries=NO
9675 rm -fr conftestdir
9676 if mkdir conftestdir; then
9677 cd conftestdir
9678 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9679 cat > Imakefile <<'EOF'
9680 acfindx:
9681 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9682 EOF
9683 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9685 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9686 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9687 for ac_extension in a so sl; do
9688 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9689 test -f $ac_im_libdir/libX11.$ac_extension; then
9690 ac_im_usrlibdir=$ac_im_libdir; break
9691 fi
9692 done
9693 # Screen out bogus values from the imake configuration. They are
9694 # bogus both because they are the default anyway, and because
9695 # using them would break gcc on systems where it needs fixed includes.
9696 case "$ac_im_incroot" in
9697 /usr/include) ;;
9698 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9699 esac
9700 case "$ac_im_usrlibdir" in
9701 /usr/lib | /lib) ;;
9702 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9703 esac
9704 fi
9705 cd ..
9706 rm -fr conftestdir
9707 fi
9708
9709 if test "$ac_x_includes" = NO; then
9710 # Guess where to find include files, by looking for this one X11 .h file.
9711 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9712
9713 # First, try using that file with no special directory specified.
9714 cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9717 #include <$x_direct_test_include>
9718 EOF
9719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9720 { (eval echo configure:9721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9722 if test -z "$ac_err"; then
9723 rm -rf conftest*
9724 # We can compile using X headers with no special include directory.
9725 ac_x_includes=
9726 else
9727 echo "$ac_err" >&5
9728 echo "configure: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9730 rm -rf conftest*
9731 # Look for the header file in a standard set of common directories.
9732 # Check X11 before X11Rn because it is often a symlink to the current release.
9733 for ac_dir in \
9734 /usr/X11/include \
9735 /usr/X11R6/include \
9736 /usr/X11R5/include \
9737 /usr/X11R4/include \
9738 \
9739 /usr/include/X11 \
9740 /usr/include/X11R6 \
9741 /usr/include/X11R5 \
9742 /usr/include/X11R4 \
9743 \
9744 /usr/local/X11/include \
9745 /usr/local/X11R6/include \
9746 /usr/local/X11R5/include \
9747 /usr/local/X11R4/include \
9748 \
9749 /usr/local/include/X11 \
9750 /usr/local/include/X11R6 \
9751 /usr/local/include/X11R5 \
9752 /usr/local/include/X11R4 \
9753 \
9754 /usr/X386/include \
9755 /usr/x386/include \
9756 /usr/XFree86/include/X11 \
9757 \
9758 /usr/include \
9759 /usr/local/include \
9760 /usr/unsupported/include \
9761 /usr/athena/include \
9762 /usr/local/x11r5/include \
9763 /usr/lpp/Xamples/include \
9764 \
9765 /usr/openwin/include \
9766 /usr/openwin/share/include \
9767 ; \
9768 do
9769 if test -r "$ac_dir/$x_direct_test_include"; then
9770 ac_x_includes=$ac_dir
9771 break
9772 fi
9773 done
9774 fi
9775 rm -f conftest*
9776 fi # $ac_x_includes = NO
9777
9778 if test "$ac_x_libraries" = NO; then
9779 # Check for the libraries.
9780
9781 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9782 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9783
9784 # See if we find them without any special options.
9785 # Don't add to $LIBS permanently.
9786 ac_save_LIBS="$LIBS"
9787 LIBS="-l$x_direct_test_library $LIBS"
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791
9792 int main() {
9793 ${x_direct_test_function}()
9794 ; return 0; }
9795 EOF
9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 rm -rf conftest*
9798 LIBS="$ac_save_LIBS"
9799 # We can link X programs with no special library path.
9800 ac_x_libraries=
9801 else
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -rf conftest*
9805 LIBS="$ac_save_LIBS"
9806 # First see if replacing the include by lib works.
9807 # Check X11 before X11Rn because it is often a symlink to the current release.
9808 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9809 /usr/X11/lib \
9810 /usr/X11R6/lib \
9811 /usr/X11R5/lib \
9812 /usr/X11R4/lib \
9813 \
9814 /usr/lib/X11 \
9815 /usr/lib/X11R6 \
9816 /usr/lib/X11R5 \
9817 /usr/lib/X11R4 \
9818 \
9819 /usr/local/X11/lib \
9820 /usr/local/X11R6/lib \
9821 /usr/local/X11R5/lib \
9822 /usr/local/X11R4/lib \
9823 \
9824 /usr/local/lib/X11 \
9825 /usr/local/lib/X11R6 \
9826 /usr/local/lib/X11R5 \
9827 /usr/local/lib/X11R4 \
9828 \
9829 /usr/X386/lib \
9830 /usr/x386/lib \
9831 /usr/XFree86/lib/X11 \
9832 \
9833 /usr/lib \
9834 /usr/local/lib \
9835 /usr/unsupported/lib \
9836 /usr/athena/lib \
9837 /usr/local/x11r5/lib \
9838 /usr/lpp/Xamples/lib \
9839 /lib/usr/lib/X11 \
9840 \
9841 /usr/openwin/lib \
9842 /usr/openwin/share/lib \
9843 ; \
9844 do
9845 for ac_extension in a so sl; do
9846 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9847 ac_x_libraries=$ac_dir
9848 break 2
9849 fi
9850 done
9851 done
9852 fi
9853 rm -f conftest*
9854 fi # $ac_x_libraries = NO
9855
9856 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9857 # Didn't find X anywhere. Cache the known absence of X.
9858 ac_cv_have_x="have_x=no"
9859 else
9860 # Record where we found X for the cache.
9861 ac_cv_have_x="have_x=yes \
9862 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9863 fi
9864 fi
9865 fi
9866 eval "$ac_cv_have_x"
9867 fi # $with_x != no
9868
9869 if test "$have_x" != yes; then
9870 echo "$ac_t""$have_x" 1>&6
9871 no_x=yes
9872 else
9873 # If each of the values was on the command line, it overrides each guess.
9874 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9875 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9876 # Update the cache value to reflect the command line values.
9877 ac_cv_have_x="have_x=yes \
9878 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9879 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9880 fi
9881
9882 if test "$no_x" = yes; then
9883 # Not all programs may use this symbol, but it does not hurt to define it.
9884 cat >> confdefs.h <<\EOF
9885 #define X_DISPLAY_MISSING 1
9886 EOF
9887
9888 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9889 else
9890 if test -n "$x_includes"; then
9891 X_CFLAGS="$X_CFLAGS -I$x_includes"
9892 fi
9893
9894 # It would also be nice to do this for all -L options, not just this one.
9895 if test -n "$x_libraries"; then
9896 X_LIBS="$X_LIBS -L$x_libraries"
9897 # For Solaris; some versions of Sun CC require a space after -R and
9898 # others require no space. Words are not sufficient . . . .
9899 case "`(uname -sr) 2>/dev/null`" in
9900 "SunOS 5"*)
9901 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9902 echo "configure:9903: checking whether -R must be followed by a space" >&5
9903 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907
9908 int main() {
9909
9910 ; return 0; }
9911 EOF
9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9913 rm -rf conftest*
9914 ac_R_nospace=yes
9915 else
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 rm -rf conftest*
9919 ac_R_nospace=no
9920 fi
9921 rm -f conftest*
9922 if test $ac_R_nospace = yes; then
9923 echo "$ac_t""no" 1>&6
9924 X_LIBS="$X_LIBS -R$x_libraries"
9925 else
9926 LIBS="$ac_xsave_LIBS -R $x_libraries"
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930
9931 int main() {
9932
9933 ; return 0; }
9934 EOF
9935 if { (eval echo configure:9936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9936 rm -rf conftest*
9937 ac_R_space=yes
9938 else
9939 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 rm -rf conftest*
9942 ac_R_space=no
9943 fi
9944 rm -f conftest*
9945 if test $ac_R_space = yes; then
9946 echo "$ac_t""yes" 1>&6
9947 X_LIBS="$X_LIBS -R $x_libraries"
9948 else
9949 echo "$ac_t""neither works" 1>&6
9950 fi
9951 fi
9952 LIBS="$ac_xsave_LIBS"
9953 esac
9954 fi
9955
9956 # Check for system-dependent libraries X programs must link with.
9957 # Do this before checking for the system-independent R6 libraries
9958 # (-lICE), since we may need -lsocket or whatever for X linking.
9959
9960 if test "$ISC" = yes; then
9961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9962 else
9963 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9964 # libraries were built with DECnet support. And karl@cs.umb.edu says
9965 # the Alpha needs dnet_stub (dnet does not exist).
9966 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9967 echo "configure:9968: checking for dnet_ntoa in -ldnet" >&5
9968 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9972 ac_save_LIBS="$LIBS"
9973 LIBS="-ldnet $LIBS"
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9980 char dnet_ntoa();
9981
9982 int main() {
9983 dnet_ntoa()
9984 ; return 0; }
9985 EOF
9986 if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9987 rm -rf conftest*
9988 eval "ac_cv_lib_$ac_lib_var=yes"
9989 else
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 eval "ac_cv_lib_$ac_lib_var=no"
9994 fi
9995 rm -f conftest*
9996 LIBS="$ac_save_LIBS"
9997
9998 fi
9999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10000 echo "$ac_t""yes" 1>&6
10001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10002 else
10003 echo "$ac_t""no" 1>&6
10004 fi
10005
10006 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10007 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10008 echo "configure:10009: checking for dnet_ntoa in -ldnet_stub" >&5
10009 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012 else
10013 ac_save_LIBS="$LIBS"
10014 LIBS="-ldnet_stub $LIBS"
10015 cat > conftest.$ac_ext <<EOF
10016 #line 10017 "configure"
10017 #include "confdefs.h"
10018 /* Override any gcc2 internal prototype to avoid an error. */
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10021 char dnet_ntoa();
10022
10023 int main() {
10024 dnet_ntoa()
10025 ; return 0; }
10026 EOF
10027 if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10028 rm -rf conftest*
10029 eval "ac_cv_lib_$ac_lib_var=yes"
10030 else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 eval "ac_cv_lib_$ac_lib_var=no"
10035 fi
10036 rm -f conftest*
10037 LIBS="$ac_save_LIBS"
10038
10039 fi
10040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10041 echo "$ac_t""yes" 1>&6
10042 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10043 else
10044 echo "$ac_t""no" 1>&6
10045 fi
10046
10047 fi
10048
10049 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10050 # to get the SysV transport functions.
10051 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10052 # needs -lnsl.
10053 # The nsl library prevents programs from opening the X display
10054 # on Irix 5.2, according to dickey@clark.net.
10055 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10056 echo "configure:10057: checking for gethostbyname" >&5
10057 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10059 else
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 /* System header to define __stub macros and hopefully few prototypes,
10064 which can conflict with char gethostbyname(); below. */
10065 #include <assert.h>
10066 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char gethostbyname();
10070
10071 int main() {
10072
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10077 choke me
10078 #else
10079 gethostbyname();
10080 #endif
10081
10082 ; return 0; }
10083 EOF
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10085 rm -rf conftest*
10086 eval "ac_cv_func_gethostbyname=yes"
10087 else
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 eval "ac_cv_func_gethostbyname=no"
10092 fi
10093 rm -f conftest*
10094 fi
10095
10096 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098 :
10099 else
10100 echo "$ac_t""no" 1>&6
10101 fi
10102
10103 if test $ac_cv_func_gethostbyname = no; then
10104 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10105 echo "configure:10106: checking for gethostbyname in -lnsl" >&5
10106 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10109 else
10110 ac_save_LIBS="$LIBS"
10111 LIBS="-lnsl $LIBS"
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118 char gethostbyname();
10119
10120 int main() {
10121 gethostbyname()
10122 ; return 0; }
10123 EOF
10124 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10125 rm -rf conftest*
10126 eval "ac_cv_lib_$ac_lib_var=yes"
10127 else
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 rm -rf conftest*
10131 eval "ac_cv_lib_$ac_lib_var=no"
10132 fi
10133 rm -f conftest*
10134 LIBS="$ac_save_LIBS"
10135
10136 fi
10137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10139 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10140 else
10141 echo "$ac_t""no" 1>&6
10142 fi
10143
10144 fi
10145
10146 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10147 # socket/setsockopt and other routines are undefined under SCO ODT
10148 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10149 # on later versions), says simon@lia.di.epfl.ch: it contains
10150 # gethostby* variants that don't use the nameserver (or something).
10151 # -lsocket must be given before -lnsl if both are needed.
10152 # We assume that if connect needs -lnsl, so does gethostbyname.
10153 echo $ac_n "checking for connect""... $ac_c" 1>&6
10154 echo "configure:10155: checking for connect" >&5
10155 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10157 else
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char connect(); below. */
10163 #include <assert.h>
10164 /* Override any gcc2 internal prototype to avoid an error. */
10165 /* We use char because int might match the return type of a gcc2
10166 builtin and then its argument prototype would still apply. */
10167 char connect();
10168
10169 int main() {
10170
10171 /* The GNU C library defines this for functions which it implements
10172 to always fail with ENOSYS. Some functions are actually named
10173 something starting with __ and the normal name is an alias. */
10174 #if defined (__stub_connect) || defined (__stub___connect)
10175 choke me
10176 #else
10177 connect();
10178 #endif
10179
10180 ; return 0; }
10181 EOF
10182 if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10183 rm -rf conftest*
10184 eval "ac_cv_func_connect=yes"
10185 else
10186 echo "configure: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 rm -rf conftest*
10189 eval "ac_cv_func_connect=no"
10190 fi
10191 rm -f conftest*
10192 fi
10193
10194 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10196 :
10197 else
10198 echo "$ac_t""no" 1>&6
10199 fi
10200
10201 if test $ac_cv_func_connect = no; then
10202 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10203 echo "configure:10204: checking for connect in -lsocket" >&5
10204 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207 else
10208 ac_save_LIBS="$LIBS"
10209 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 /* Override any gcc2 internal prototype to avoid an error. */
10214 /* We use char because int might match the return type of a gcc2
10215 builtin and then its argument prototype would still apply. */
10216 char connect();
10217
10218 int main() {
10219 connect()
10220 ; return 0; }
10221 EOF
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10223 rm -rf conftest*
10224 eval "ac_cv_lib_$ac_lib_var=yes"
10225 else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=no"
10230 fi
10231 rm -f conftest*
10232 LIBS="$ac_save_LIBS"
10233
10234 fi
10235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10236 echo "$ac_t""yes" 1>&6
10237 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10238 else
10239 echo "$ac_t""no" 1>&6
10240 fi
10241
10242 fi
10243
10244 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10245 echo $ac_n "checking for remove""... $ac_c" 1>&6
10246 echo "configure:10247: checking for remove" >&5
10247 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10248 echo $ac_n "(cached) $ac_c" 1>&6
10249 else
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 /* System header to define __stub macros and hopefully few prototypes,
10254 which can conflict with char remove(); below. */
10255 #include <assert.h>
10256 /* Override any gcc2 internal prototype to avoid an error. */
10257 /* We use char because int might match the return type of a gcc2
10258 builtin and then its argument prototype would still apply. */
10259 char remove();
10260
10261 int main() {
10262
10263 /* The GNU C library defines this for functions which it implements
10264 to always fail with ENOSYS. Some functions are actually named
10265 something starting with __ and the normal name is an alias. */
10266 #if defined (__stub_remove) || defined (__stub___remove)
10267 choke me
10268 #else
10269 remove();
10270 #endif
10271
10272 ; return 0; }
10273 EOF
10274 if { (eval echo configure:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10275 rm -rf conftest*
10276 eval "ac_cv_func_remove=yes"
10277 else
10278 echo "configure: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 rm -rf conftest*
10281 eval "ac_cv_func_remove=no"
10282 fi
10283 rm -f conftest*
10284 fi
10285
10286 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 :
10289 else
10290 echo "$ac_t""no" 1>&6
10291 fi
10292
10293 if test $ac_cv_func_remove = no; then
10294 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10295 echo "configure:10296: checking for remove in -lposix" >&5
10296 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10299 else
10300 ac_save_LIBS="$LIBS"
10301 LIBS="-lposix $LIBS"
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10305 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char remove();
10309
10310 int main() {
10311 remove()
10312 ; return 0; }
10313 EOF
10314 if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10315 rm -rf conftest*
10316 eval "ac_cv_lib_$ac_lib_var=yes"
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 eval "ac_cv_lib_$ac_lib_var=no"
10322 fi
10323 rm -f conftest*
10324 LIBS="$ac_save_LIBS"
10325
10326 fi
10327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
10329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10330 else
10331 echo "$ac_t""no" 1>&6
10332 fi
10333
10334 fi
10335
10336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10337 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10338 echo "configure:10339: checking for shmat" >&5
10339 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10341 else
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 /* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char shmat(); below. */
10347 #include <assert.h>
10348 /* Override any gcc2 internal prototype to avoid an error. */
10349 /* We use char because int might match the return type of a gcc2
10350 builtin and then its argument prototype would still apply. */
10351 char shmat();
10352
10353 int main() {
10354
10355 /* The GNU C library defines this for functions which it implements
10356 to always fail with ENOSYS. Some functions are actually named
10357 something starting with __ and the normal name is an alias. */
10358 #if defined (__stub_shmat) || defined (__stub___shmat)
10359 choke me
10360 #else
10361 shmat();
10362 #endif
10363
10364 ; return 0; }
10365 EOF
10366 if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10367 rm -rf conftest*
10368 eval "ac_cv_func_shmat=yes"
10369 else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 rm -rf conftest*
10373 eval "ac_cv_func_shmat=no"
10374 fi
10375 rm -f conftest*
10376 fi
10377
10378 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10379 echo "$ac_t""yes" 1>&6
10380 :
10381 else
10382 echo "$ac_t""no" 1>&6
10383 fi
10384
10385 if test $ac_cv_func_shmat = no; then
10386 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10387 echo "configure:10388: checking for shmat in -lipc" >&5
10388 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10390 echo $ac_n "(cached) $ac_c" 1>&6
10391 else
10392 ac_save_LIBS="$LIBS"
10393 LIBS="-lipc $LIBS"
10394 cat > conftest.$ac_ext <<EOF
10395 #line 10396 "configure"
10396 #include "confdefs.h"
10397 /* Override any gcc2 internal prototype to avoid an error. */
10398 /* We use char because int might match the return type of a gcc2
10399 builtin and then its argument prototype would still apply. */
10400 char shmat();
10401
10402 int main() {
10403 shmat()
10404 ; return 0; }
10405 EOF
10406 if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407 rm -rf conftest*
10408 eval "ac_cv_lib_$ac_lib_var=yes"
10409 else
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10412 rm -rf conftest*
10413 eval "ac_cv_lib_$ac_lib_var=no"
10414 fi
10415 rm -f conftest*
10416 LIBS="$ac_save_LIBS"
10417
10418 fi
10419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
10421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10422 else
10423 echo "$ac_t""no" 1>&6
10424 fi
10425
10426 fi
10427 fi
10428
10429 # Check for libraries that X11R6 Xt/Xaw programs need.
10430 ac_save_LDFLAGS="$LDFLAGS"
10431 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10432 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10433 # check for ICE first), but we must link in the order -lSM -lICE or
10434 # we get undefined symbols. So assume we have SM if we have ICE.
10435 # These have to be linked with before -lX11, unlike the other
10436 # libraries we check for below, so use a different variable.
10437 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10438 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10439 echo "configure:10440: checking for IceConnectionNumber in -lICE" >&5
10440 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443 else
10444 ac_save_LIBS="$LIBS"
10445 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 /* Override any gcc2 internal prototype to avoid an error. */
10450 /* We use char because int might match the return type of a gcc2
10451 builtin and then its argument prototype would still apply. */
10452 char IceConnectionNumber();
10453
10454 int main() {
10455 IceConnectionNumber()
10456 ; return 0; }
10457 EOF
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10459 rm -rf conftest*
10460 eval "ac_cv_lib_$ac_lib_var=yes"
10461 else
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 rm -rf conftest*
10465 eval "ac_cv_lib_$ac_lib_var=no"
10466 fi
10467 rm -f conftest*
10468 LIBS="$ac_save_LIBS"
10469
10470 fi
10471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10472 echo "$ac_t""yes" 1>&6
10473 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10474 else
10475 echo "$ac_t""no" 1>&6
10476 fi
10477
10478 LDFLAGS="$ac_save_LDFLAGS"
10479
10480 fi
10481
10482 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10483 LDFLAGS="$LDFLAGS $X_LIBS"
10484
10485 if test "$wxUSE_MOTIF" = 1; then
10486 if test "$no_x" = "yes"; then
10487 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10488 fi
10489
10490 GUI_TK_LIBRARY="$X_LIBS"
10491 TOOLKIT_INCLUDE="$X_CFLAGS"
10492
10493 AFMINSTALL=afminstall
10494
10495
10496 COMPILED_X_PROGRAM=0
10497
10498 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10499 echo "configure:10500: checking for Motif/Lesstif headers" >&5
10500
10501 ac_find_includes=
10502 for ac_dir in $SEARCH_INCLUDE;
10503 do
10504 if test -f "$ac_dir/Xm/Xm.h"; then
10505 ac_find_includes=$ac_dir
10506 break
10507 fi
10508 done
10509
10510 if test "$ac_find_includes" != "" ; then
10511 echo "$ac_t""found $ac_find_includes" 1>&6
10512 else
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10516
10517 #include <Xm/Xm.h>
10518
10519 int main() {
10520
10521 int version;
10522
10523 version = xmUseVersion;
10524
10525 ; return 0; }
10526 EOF
10527 if { (eval echo configure:10528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10528 rm -rf conftest*
10529
10530 echo "$ac_t""found in default search path" 1>&6
10531 COMPILED_X_PROGRAM=1
10532
10533 else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537
10538 echo "$ac_t""no" 1>&6
10539 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10540
10541
10542 fi
10543 rm -f conftest*
10544 fi
10545
10546 if test "$COMPILED_X_PROGRAM" = 0; then
10547 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10548 echo "configure:10549: checking for Motif/Lesstif library" >&5
10549
10550 ac_find_libraries=
10551 for ac_dir in $SEARCH_LIB;
10552 do
10553 for ac_extension in a so sl dylib; do
10554 if test -f "$ac_dir/libXm.$ac_extension"; then
10555 ac_find_libraries=$ac_dir
10556 break 2
10557 fi
10558 done
10559 done
10560
10561 if test "$ac_find_libraries" != "" ; then
10562
10563 ac_path_to_include=$ac_find_includes
10564 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10565 result=$?
10566 if test $result = 0; then
10567 ac_path_to_include=""
10568 else
10569 ac_path_to_include="-I$ac_find_includes"
10570 fi
10571
10572
10573 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10574 result=$?
10575 if test $result = 0; then
10576 ac_path_to_link=""
10577 else
10578 ac_path_to_link="-L$ac_find_libraries"
10579 fi
10580
10581
10582 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10583 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10584 echo "$ac_t""found at $ac_find_libraries" 1>&6
10585 else
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10589
10590 #include <Xm/Xm.h>
10591
10592 int main() {
10593
10594 int version;
10595
10596 version = xmUseVersion;
10597
10598 ; return 0; }
10599 EOF
10600 if { (eval echo configure:10601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10601 rm -rf conftest*
10602
10603 echo "$ac_t""found in default search path" 1>&6
10604 COMPILED_X_PROGRAM=1
10605
10606 else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -rf conftest*
10610
10611 echo "$ac_t""no" 1>&6
10612 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10613
10614
10615 fi
10616 rm -f conftest*
10617 fi
10618 fi
10619
10620
10621 XPM_LINK=""
10622 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10623 echo "configure:10624: checking for Xpm library" >&5
10624
10625 ac_find_libraries=
10626 for ac_dir in $SEARCH_LIB;
10627 do
10628 for ac_extension in a so sl dylib; do
10629 if test -f "$ac_dir/libXpm.$ac_extension"; then
10630 ac_find_libraries=$ac_dir
10631 break 2
10632 fi
10633 done
10634 done
10635
10636 if test "$ac_find_libraries" != "" ; then
10637
10638 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10639 result=$?
10640 if test $result = 0; then
10641 ac_path_to_link=""
10642 else
10643 ac_path_to_link="-L$ac_find_libraries"
10644 fi
10645
10646 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10647 XPM_LINK="-lXpm "
10648 cat >> confdefs.h <<\EOF
10649 #define wxHAVE_LIB_XPM 1
10650 EOF
10651
10652 echo "$ac_t""found at $ac_find_libraries" 1>&6
10653 else
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657
10658 #include <X11/xpm.h>
10659
10660 int main() {
10661
10662 int version;
10663
10664 version = XpmLibraryVersion();
10665
10666 ; return 0; }
10667 EOF
10668 if { (eval echo configure:10669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10669 rm -rf conftest*
10670
10671 XPM_LINK="-lXpm "
10672 cat >> confdefs.h <<\EOF
10673 #define wxHAVE_LIB_XPM 1
10674 EOF
10675
10676 echo "$ac_t""found in default search path" 1>&6
10677 COMPILED_X_PROGRAM=0
10678
10679 else
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10682 rm -rf conftest*
10683
10684 echo "$ac_t""no" 1>&6
10685 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10686
10687
10688 fi
10689 rm -f conftest*
10690 fi
10691
10692 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10693 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10694 TOOLKIT=MOTIF
10695 GUIDIST=MOTIF_DIST
10696 fi
10697
10698 if test "$wxUSE_MAC" = 1; then
10699 TOOLKIT=MAC
10700 GUIDIST=MACX_DIST
10701 fi
10702
10703 if test "$wxUSE_PM" = 1; then
10704 TOOLKIT=PM
10705 GUIDIST=GTK_DIST
10706 fi
10707
10708 if test "$TOOLKIT" != "PM" ; then
10709 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10710 else
10711 TOOLKIT_DIR="os2"
10712 fi
10713
10714 TOOLKIT_NAME="${TOOLKIT_DIR}"
10715
10716 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10717
10718 if test "$TOOLKIT_NAME" = "motif"; then
10719 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10720 fi
10721
10722 if test "$wxUSE_UNIVERSAL" = "yes"; then
10723 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10724 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10725 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10726 SETUPH_DIR="univ"
10727 else
10728 SETUPH_DIR="${TOOLKIT_DIR}"
10729 fi
10730
10731 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10732 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10733 fi
10734
10735 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10736 if test "$wxUSE_UNIVERSAL" = "yes"; then
10737 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10738 fi
10739
10740 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10741
10742 if test "$wxUSE_UNIVERSAL" = "yes"; then
10743 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10744 else
10745 ALL_OBJECTS="\$(GUIOBJS)"
10746 fi
10747
10748 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10749
10750 if test "$TOOLKIT" != "MSW"; then
10751 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10752 fi
10753
10754 if test "$wxUSE_HTML" = "yes"; then
10755 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10756 fi
10757
10758 if test "$TOOLKIT" != "MSW"; then
10759 if test "$wxUSE_ODBC" = "yes" ; then
10760 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10761 fi
10762 fi
10763
10764 if test "x$REGEX_INCLUDE" != "x" ; then
10765 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10766 fi
10767
10768 if test "$wxUSE_LIBJPEG" = "yes" ; then
10769 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10770 fi
10771 if test "$wxUSE_LIBTIFF" = "yes" ; then
10772 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10773 fi
10774 if test "$wxUSE_LIBPNG" = "yes" ; then
10775 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10776 fi
10777 if test "$wxUSE_ZLIB" = "yes" ; then
10778 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10779 fi
10780 if test "$wxUSE_FREETYPE" = "yes" ; then
10781 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10782 fi
10783
10784 if test "$wxUSE_UNIVERSAL" = "yes"; then
10785 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10786 else
10787 ALL_DEPFILES="\$(GUIDEPS)"
10788 fi
10789
10790 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10791
10792 if test "$TOOLKIT" != "MSW"; then
10793 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10794 fi
10795
10796 if test "$wxUSE_HTML" = "yes"; then
10797 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10798 fi
10799
10800 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10801 if test "$wxUSE_UNIVERSAL" = "yes"; then
10802 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10803 fi
10804 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10805 RPM_SPEC="wx\$(TOOLKIT).spec"
10806
10807 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10808 DISTDIR="wx\$(TOOLKIT)"
10809 else
10810 USE_GUI=0
10811
10812 TOOLKIT_DIR="base"
10813
10814 TOOLKIT_VPATH="."
10815
10816 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10817 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10818 else
10819 TOOLKIT_NAME="${TOOLKIT_DIR}"
10820 fi
10821
10822 TOOLKIT_DEF="-D__WXBASE__"
10823
10824 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10825 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10826
10827 if test "x$REGEX_INCLUDE" != "x" ; then
10828 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10829 fi
10830
10831 if test "$wxUSE_ZLIB" = "yes" ; then
10832 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10833 fi
10834
10835 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10836
10837 PORT_FILES="\${top_srcdir}/src/files.lst"
10838 RPM_FILES="src/rpmfiles.lst"
10839 RPM_SPEC="wxBase.spec"
10840
10841 GUIDIST="BASE_DIST"
10842 DISTDIR="wxBase"
10843 fi
10844
10845 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10846 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10847
10848 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10849 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10850
10851 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10852 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10853
10854 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10855 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10856 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10857 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10858 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10859 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10860
10861 SHARED_LD=
10862 PIC_FLAG=
10863 WX_ALL=
10864 WX_ALL_INSTALLED=
10865 BURNT_LIBRARY_NAME=
10866 WX_TARGET_LIBRARY_SONAME=
10867
10868
10869 if test "$wxUSE_SHARED" = "yes"; then
10870 case "${host}" in
10871 *-hp-hpux* )
10872 if test "$GCC" = yes ; then
10873 SHARED_LD="${CXX} -shared -fPIC -o"
10874 PIC_FLAG="-fPIC"
10875 else
10876 LDFLAGS="-L/usr/lib"
10877
10878 SHARED_LD="${CXX} -b -o"
10879 PIC_FLAG="+Z"
10880 fi
10881 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10882 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10883 if test "$wxUSE_OPENGL" = "yes"; then
10884 WX_ALL_INSTALLED="preinstall_gl"
10885 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10886 else
10887 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10888 fi
10889 ;;
10890
10891 *-*-linux* )
10892 SHARED_LD="${CXX} -shared -o"
10893 PIC_FLAG="-fPIC"
10894 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10895 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10896 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10897 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10898 fi
10899 if test "$wxUSE_OPENGL" = "yes"; then
10900 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10901 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10902 else
10903 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10904 WX_ALL="CREATE_LINKS"
10905 fi
10906 ;;
10907 *-*-irix5* | *-*-irix6* )
10908 if test "$GCC" = yes ; then
10909 SHARED_LD="${CXX} -shared -o"
10910 PIC_FLAG="-fPIC"
10911 else
10912 SHARED_LD="${CXX} -shared -o"
10913 fi
10914 if test "$wxUSE_OPENGL" = "yes"; then
10915 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10916 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10917 else
10918 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10919 WX_ALL="CREATE_LINKS"
10920 fi
10921 ;;
10922 *-*-solaris2* )
10923 if test "$GCC" = yes ; then
10924 SHARED_LD="${CXX} -shared -o"
10925 PIC_FLAG="-fPIC"
10926
10927 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10928 else
10929 SHARED_LD="${CXX} -G -o"
10930 PIC_FLAG="-KPIC"
10931 fi
10932 if test "$wxUSE_OPENGL" = "yes"; then
10933 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10934 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10935 else
10936 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10937 WX_ALL="CREATE_LINKS"
10938 fi
10939 ;;
10940 *-*-sunos4* )
10941 SHARED_LD="${CXX} -shared -o"
10942 PIC_FLAG="-fPIC"
10943 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10944 WX_ALL="CREATE_LINKS"
10945 ;;
10946 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10947 SHARED_LD="${CXX} -shared -o"
10948 PIC_FLAG="-fPIC"
10949 if test "$wxUSE_OPENGL" = "yes"; then
10950 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10951 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10952 else
10953 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10954 WX_ALL="CREATE_LINKS"
10955 fi
10956 ;;
10957 *-*-darwin* )
10958 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
10959 CFLAGS="${CFLAGS} -fno-common"
10960 CPPFLAGS="${CPPFLAGS} -fno-common"
10961 SHARED_LD="${CXX} -dynamiclib -o"
10962 PIC_FLAG="-dynamic -fPIC"
10963 if test "$wxUSE_OPENGL" = "yes"; then
10964 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10965 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10966 else
10967 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10968 WX_ALL="CREATE_LINKS"
10969 fi
10970 if test "$wxUSE_MAC" = 1 ; then
10971 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10972 fi
10973 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10974 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10975 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10976 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10977 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10978 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10979 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10980 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10981 ;;
10982 *-*-osf* )
10983 SHARED_LD="${CXX} -shared -o"
10984 PIC_FLAG="-fPIC"
10985 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10986 WX_ALL="CREATE_LINKS"
10987 ;;
10988 *-*-dgux5* )
10989 SHARED_LD="${CXX} -shared -o"
10990 PIC_FLAG="-fPIC"
10991 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10992 WX_ALL="CREATE_LINKS"
10993 ;;
10994 *-*-sysv5* )
10995 SHARED_LD="${CXX} -shared -o"
10996 PIC_FLAG="-fPIC"
10997 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10998 WX_ALL="CREATE_LINKS"
10999 ;;
11000 *-*-aix* )
11001 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11002 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11003 ;;
11004 *-*-cygwin* )
11005 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11006 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11007 if test "$wxUSE_OPENGL" = "yes"; then
11008 WX_ALL_INSTALLED="preinstall_gl"
11009 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11010 else
11011 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11012 fi
11013 ;;
11014 *-*-mingw32* )
11015 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11016 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11017 if test "$wxUSE_OPENGL" = "yes"; then
11018 WX_ALL_INSTALLED="preinstall_gl"
11019 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11020 else
11021 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11022 fi
11023 ;;
11024 *-pc-os2_emx )
11025 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11026 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11027 ;;
11028 *-*-beos* )
11029 SHARED_LD="${LD} -shared -o"
11030 PIC_FLAG="-fPIC"
11031 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11032 WX_ALL="CREATE_LINKS"
11033 ;;
11034 *)
11035 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11036 esac
11037
11038 if test "x$WX_TARGET_LIBRARY" = "x"; then
11039 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11040 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11041 fi
11042 WX_TARGET_LIBRARY_TYPE="so"
11043 else
11044 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11045 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11046
11047 if test "$wxUSE_OPENGL" = "yes"; then
11048 WX_ALL_INSTALLED="preinstall_gl"
11049 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11050 else
11051 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11052 fi
11053
11054 if test "$wxUSE_GUI" = "no"; then
11055 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11056 fi
11057
11058 WX_TARGET_LIBRARY_TYPE="a"
11059 fi
11060
11061
11062 for ac_hdr in strings.h
11063 do
11064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11066 echo "configure:11067: checking for $ac_hdr" >&5
11067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11068 echo $ac_n "(cached) $ac_c" 1>&6
11069 else
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11073 #include <$ac_hdr>
11074 EOF
11075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11076 { (eval echo configure:11077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11078 if test -z "$ac_err"; then
11079 rm -rf conftest*
11080 eval "ac_cv_header_$ac_safe=yes"
11081 else
11082 echo "$ac_err" >&5
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11085 rm -rf conftest*
11086 eval "ac_cv_header_$ac_safe=no"
11087 fi
11088 rm -f conftest*
11089 fi
11090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11091 echo "$ac_t""yes" 1>&6
11092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11093 cat >> confdefs.h <<EOF
11094 #define $ac_tr_hdr 1
11095 EOF
11096
11097 else
11098 echo "$ac_t""no" 1>&6
11099 fi
11100 done
11101
11102 for ac_hdr in stdlib.h
11103 do
11104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11106 echo "configure:11107: checking for $ac_hdr" >&5
11107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11109 else
11110 cat > conftest.$ac_ext <<EOF
11111 #line 11112 "configure"
11112 #include "confdefs.h"
11113 #include <$ac_hdr>
11114 EOF
11115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11116 { (eval echo configure:11117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11118 if test -z "$ac_err"; then
11119 rm -rf conftest*
11120 eval "ac_cv_header_$ac_safe=yes"
11121 else
11122 echo "$ac_err" >&5
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 rm -rf conftest*
11126 eval "ac_cv_header_$ac_safe=no"
11127 fi
11128 rm -f conftest*
11129 fi
11130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11131 echo "$ac_t""yes" 1>&6
11132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11133 cat >> confdefs.h <<EOF
11134 #define $ac_tr_hdr 1
11135 EOF
11136
11137 else
11138 echo "$ac_t""no" 1>&6
11139 fi
11140 done
11141
11142 for ac_hdr in unistd.h
11143 do
11144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11146 echo "configure:11147: checking for $ac_hdr" >&5
11147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11148 echo $ac_n "(cached) $ac_c" 1>&6
11149 else
11150 cat > conftest.$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11153 #include <$ac_hdr>
11154 EOF
11155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11156 { (eval echo configure:11157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11158 if test -z "$ac_err"; then
11159 rm -rf conftest*
11160 eval "ac_cv_header_$ac_safe=yes"
11161 else
11162 echo "$ac_err" >&5
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 rm -rf conftest*
11166 eval "ac_cv_header_$ac_safe=no"
11167 fi
11168 rm -f conftest*
11169 fi
11170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11171 echo "$ac_t""yes" 1>&6
11172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11173 cat >> confdefs.h <<EOF
11174 #define $ac_tr_hdr 1
11175 EOF
11176
11177 else
11178 echo "$ac_t""no" 1>&6
11179 fi
11180 done
11181
11182 for ac_hdr in wchar.h
11183 do
11184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11186 echo "configure:11187: checking for $ac_hdr" >&5
11187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11189 else
11190 cat > conftest.$ac_ext <<EOF
11191 #line 11192 "configure"
11192 #include "confdefs.h"
11193 #include <$ac_hdr>
11194 EOF
11195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11196 { (eval echo configure:11197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11198 if test -z "$ac_err"; then
11199 rm -rf conftest*
11200 eval "ac_cv_header_$ac_safe=yes"
11201 else
11202 echo "$ac_err" >&5
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -rf conftest*
11206 eval "ac_cv_header_$ac_safe=no"
11207 fi
11208 rm -f conftest*
11209 fi
11210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11211 echo "$ac_t""yes" 1>&6
11212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11213 cat >> confdefs.h <<EOF
11214 #define $ac_tr_hdr 1
11215 EOF
11216
11217 else
11218 echo "$ac_t""no" 1>&6
11219 fi
11220 done
11221
11222 for ac_hdr in wcstr.h
11223 do
11224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11226 echo "configure:11227: checking for $ac_hdr" >&5
11227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229 else
11230 cat > conftest.$ac_ext <<EOF
11231 #line 11232 "configure"
11232 #include "confdefs.h"
11233 #include <$ac_hdr>
11234 EOF
11235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11236 { (eval echo configure:11237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11238 if test -z "$ac_err"; then
11239 rm -rf conftest*
11240 eval "ac_cv_header_$ac_safe=yes"
11241 else
11242 echo "$ac_err" >&5
11243 echo "configure: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 rm -rf conftest*
11246 eval "ac_cv_header_$ac_safe=no"
11247 fi
11248 rm -f conftest*
11249 fi
11250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11251 echo "$ac_t""yes" 1>&6
11252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11253 cat >> confdefs.h <<EOF
11254 #define $ac_tr_hdr 1
11255 EOF
11256
11257 else
11258 echo "$ac_t""no" 1>&6
11259 fi
11260 done
11261
11262 for ac_hdr in fnmatch.h
11263 do
11264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11266 echo "configure:11267: checking for $ac_hdr" >&5
11267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11268 echo $ac_n "(cached) $ac_c" 1>&6
11269 else
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273 #include <$ac_hdr>
11274 EOF
11275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11276 { (eval echo configure:11277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11278 if test -z "$ac_err"; then
11279 rm -rf conftest*
11280 eval "ac_cv_header_$ac_safe=yes"
11281 else
11282 echo "$ac_err" >&5
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 eval "ac_cv_header_$ac_safe=no"
11287 fi
11288 rm -f conftest*
11289 fi
11290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11291 echo "$ac_t""yes" 1>&6
11292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11293 cat >> confdefs.h <<EOF
11294 #define $ac_tr_hdr 1
11295 EOF
11296
11297 else
11298 echo "$ac_t""no" 1>&6
11299 fi
11300 done
11301
11302 for ac_hdr in iconv.h
11303 do
11304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11306 echo "configure:11307: checking for $ac_hdr" >&5
11307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 #include <$ac_hdr>
11314 EOF
11315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11316 { (eval echo configure:11317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11318 if test -z "$ac_err"; then
11319 rm -rf conftest*
11320 eval "ac_cv_header_$ac_safe=yes"
11321 else
11322 echo "$ac_err" >&5
11323 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5
11325 rm -rf conftest*
11326 eval "ac_cv_header_$ac_safe=no"
11327 fi
11328 rm -f conftest*
11329 fi
11330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11331 echo "$ac_t""yes" 1>&6
11332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11333 cat >> confdefs.h <<EOF
11334 #define $ac_tr_hdr 1
11335 EOF
11336
11337 else
11338 echo "$ac_t""no" 1>&6
11339 fi
11340 done
11341
11342 for ac_hdr in langinfo.h
11343 do
11344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11346 echo "configure:11347: checking for $ac_hdr" >&5
11347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11348 echo $ac_n "(cached) $ac_c" 1>&6
11349 else
11350 cat > conftest.$ac_ext <<EOF
11351 #line 11352 "configure"
11352 #include "confdefs.h"
11353 #include <$ac_hdr>
11354 EOF
11355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11356 { (eval echo configure:11357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11358 if test -z "$ac_err"; then
11359 rm -rf conftest*
11360 eval "ac_cv_header_$ac_safe=yes"
11361 else
11362 echo "$ac_err" >&5
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -rf conftest*
11366 eval "ac_cv_header_$ac_safe=no"
11367 fi
11368 rm -f conftest*
11369 fi
11370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11373 cat >> confdefs.h <<EOF
11374 #define $ac_tr_hdr 1
11375 EOF
11376
11377 else
11378 echo "$ac_t""no" 1>&6
11379 fi
11380 done
11381
11382
11383 if test "$wxUSE_GUI" = "yes"; then
11384 if test "$wxUSE_UNIX" = "yes"; then
11385 for ac_hdr in X11/XKBlib.h
11386 do
11387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11389 echo "configure:11390: checking for $ac_hdr" >&5
11390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11392 else
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11396 #include <$ac_hdr>
11397 EOF
11398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11399 { (eval echo configure:11400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11401 if test -z "$ac_err"; then
11402 rm -rf conftest*
11403 eval "ac_cv_header_$ac_safe=yes"
11404 else
11405 echo "$ac_err" >&5
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11408 rm -rf conftest*
11409 eval "ac_cv_header_$ac_safe=no"
11410 fi
11411 rm -f conftest*
11412 fi
11413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11414 echo "$ac_t""yes" 1>&6
11415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11416 cat >> confdefs.h <<EOF
11417 #define $ac_tr_hdr 1
11418 EOF
11419
11420 else
11421 echo "$ac_t""no" 1>&6
11422 fi
11423 done
11424
11425 fi
11426 fi
11427
11428 if test "$USE_WIN32" = 1; then
11429 for ac_hdr in w32api.h
11430 do
11431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11433 echo "configure:11434: checking for $ac_hdr" >&5
11434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11436 else
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11440 #include <$ac_hdr>
11441 EOF
11442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11443 { (eval echo configure:11444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11445 if test -z "$ac_err"; then
11446 rm -rf conftest*
11447 eval "ac_cv_header_$ac_safe=yes"
11448 else
11449 echo "$ac_err" >&5
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 rm -rf conftest*
11453 eval "ac_cv_header_$ac_safe=no"
11454 fi
11455 rm -f conftest*
11456 fi
11457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11460 cat >> confdefs.h <<EOF
11461 #define $ac_tr_hdr 1
11462 EOF
11463
11464 else
11465 echo "$ac_t""no" 1>&6
11466 fi
11467 done
11468
11469 fi
11470
11471
11472 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11473 echo "configure:11474: checking for ANSI C header files" >&5
11474 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11476 else
11477 cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11480 #include <stdlib.h>
11481 #include <stdarg.h>
11482 #include <string.h>
11483 #include <float.h>
11484 EOF
11485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11486 { (eval echo configure:11487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11488 if test -z "$ac_err"; then
11489 rm -rf conftest*
11490 ac_cv_header_stdc=yes
11491 else
11492 echo "$ac_err" >&5
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 rm -rf conftest*
11496 ac_cv_header_stdc=no
11497 fi
11498 rm -f conftest*
11499
11500 if test $ac_cv_header_stdc = yes; then
11501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 #include <string.h>
11506 EOF
11507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11508 egrep "memchr" >/dev/null 2>&1; then
11509 :
11510 else
11511 rm -rf conftest*
11512 ac_cv_header_stdc=no
11513 fi
11514 rm -f conftest*
11515
11516 fi
11517
11518 if test $ac_cv_header_stdc = yes; then
11519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11520 cat > conftest.$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11523 #include <stdlib.h>
11524 EOF
11525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11526 egrep "free" >/dev/null 2>&1; then
11527 :
11528 else
11529 rm -rf conftest*
11530 ac_cv_header_stdc=no
11531 fi
11532 rm -f conftest*
11533
11534 fi
11535
11536 if test $ac_cv_header_stdc = yes; then
11537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11538 if test "$cross_compiling" = yes; then
11539 :
11540 else
11541 cat > conftest.$ac_ext <<EOF
11542 #line 11543 "configure"
11543 #include "confdefs.h"
11544 #include <ctype.h>
11545 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11546 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11548 int main () { int i; for (i = 0; i < 256; i++)
11549 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11550 exit (0); }
11551
11552 EOF
11553 if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11554 then
11555 :
11556 else
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 rm -fr conftest*
11560 ac_cv_header_stdc=no
11561 fi
11562 rm -fr conftest*
11563 fi
11564
11565 fi
11566 fi
11567
11568 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11569 if test $ac_cv_header_stdc = yes; then
11570 cat >> confdefs.h <<\EOF
11571 #define STDC_HEADERS 1
11572 EOF
11573
11574 fi
11575
11576 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11577 echo "configure:11578: checking for mode_t" >&5
11578 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580 else
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 #include <sys/types.h>
11585 #if STDC_HEADERS
11586 #include <stdlib.h>
11587 #include <stddef.h>
11588 #endif
11589 EOF
11590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11591 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11592 rm -rf conftest*
11593 ac_cv_type_mode_t=yes
11594 else
11595 rm -rf conftest*
11596 ac_cv_type_mode_t=no
11597 fi
11598 rm -f conftest*
11599
11600 fi
11601 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11602 if test $ac_cv_type_mode_t = no; then
11603 cat >> confdefs.h <<\EOF
11604 #define mode_t int
11605 EOF
11606
11607 fi
11608
11609 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11610 echo "configure:11611: checking for off_t" >&5
11611 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
11613 else
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure"
11616 #include "confdefs.h"
11617 #include <sys/types.h>
11618 #if STDC_HEADERS
11619 #include <stdlib.h>
11620 #include <stddef.h>
11621 #endif
11622 EOF
11623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11624 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11625 rm -rf conftest*
11626 ac_cv_type_off_t=yes
11627 else
11628 rm -rf conftest*
11629 ac_cv_type_off_t=no
11630 fi
11631 rm -f conftest*
11632
11633 fi
11634 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11635 if test $ac_cv_type_off_t = no; then
11636 cat >> confdefs.h <<\EOF
11637 #define off_t long
11638 EOF
11639
11640 fi
11641
11642 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11643 echo "configure:11644: checking for pid_t" >&5
11644 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11646 else
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 #include <sys/types.h>
11651 #if STDC_HEADERS
11652 #include <stdlib.h>
11653 #include <stddef.h>
11654 #endif
11655 EOF
11656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11657 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11658 rm -rf conftest*
11659 ac_cv_type_pid_t=yes
11660 else
11661 rm -rf conftest*
11662 ac_cv_type_pid_t=no
11663 fi
11664 rm -f conftest*
11665
11666 fi
11667 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11668 if test $ac_cv_type_pid_t = no; then
11669 cat >> confdefs.h <<\EOF
11670 #define pid_t int
11671 EOF
11672
11673 fi
11674
11675 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11676 echo "configure:11677: checking for size_t" >&5
11677 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11679 else
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11682 "configure"
11682 #include "confdefs.h"
11683 #include <sys/types.h>
11684 #if STDC_HEADERS
11685 #include <stdlib.h>
11686 #include <stddef.h>
11687 #endif
11688 EOF
11689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11690 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11691 rm -rf conftest*
11692 ac_cv_type_size_t=yes
11693 else
11694 rm -rf conftest*
11695 ac_cv_type_size_t=no
11696 fi
11697 rm -f conftest*
11698
11699 fi
11700 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11701 if test $ac_cv_type_size_t = no; then
11702 cat >> confdefs.h <<\EOF
11703 #define size_t unsigned
11704 EOF
11705
11706 fi
11707
11708 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11709 echo "configure:11710: checking for uid_t in sys/types.h" >&5
11710 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713 cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 #include <sys/types.h>
11717 EOF
11718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11719 egrep "uid_t" >/dev/null 2>&1; then
11720 rm -rf conftest*
11721 ac_cv_type_uid_t=yes
11722 else
11723 rm -rf conftest*
11724 ac_cv_type_uid_t=no
11725 fi
11726 rm -f conftest*
11727
11728 fi
11729
11730 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11731 if test $ac_cv_type_uid_t = no; then
11732 cat >> confdefs.h <<\EOF
11733 #define uid_t int
11734 EOF
11735
11736 cat >> confdefs.h <<\EOF
11737 #define gid_t int
11738 EOF
11739
11740 fi
11741
11742
11743 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11744 echo "configure:11745: checking for wchar_t" >&5
11745 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11746 echo $ac_n "(cached) $ac_c" 1>&6
11747 else
11748
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11752 #include <wchar.h>
11753 int main() {
11754
11755 wchar_t wc, *ws;
11756 wc = L'a';
11757 ws = L"Hello, world!";
11758
11759 ; return 0; }
11760 EOF
11761 if { (eval echo configure:11762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11762 rm -rf conftest*
11763 wx_cv_type_wchar_t=yes
11764 else
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11767 rm -rf conftest*
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11771 #include <stdlib.h>
11772 int main() {
11773
11774 wchar_t wc, *ws;
11775 wc = L'a';
11776 ws = L"Hello, world!";
11777
11778 ; return 0; }
11779 EOF
11780 if { (eval echo configure:11781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11781 rm -rf conftest*
11782 wx_cv_type_wchar_t=yes
11783 else
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11786 rm -rf conftest*
11787 wx_cv_type_wchar_t=no
11788 fi
11789 rm -f conftest*
11790
11791 fi
11792 rm -f conftest*
11793
11794 fi
11795
11796 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11797
11798 if test "$wx_cv_type_wchar_t" = "yes"; then
11799 cat >> confdefs.h <<\EOF
11800 #define wxUSE_WCHAR_T 1
11801 EOF
11802
11803 fi
11804
11805
11806 ac_ext=C
11807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11808 ac_cpp='$CXXCPP $CPPFLAGS'
11809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11811 cross_compiling=$ac_cv_prog_cxx_cross
11812
11813 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11814 echo "configure:11815: checking if size_t is unsigned int" >&5
11815 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11816 echo $ac_n "(cached) $ac_c" 1>&6
11817 else
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 #include <stddef.h>
11822 int main() {
11823
11824 return 0; }
11825
11826 struct Foo { void foo(size_t); void foo(unsigned int); };
11827
11828 int bar() {
11829
11830 ; return 0; }
11831 EOF
11832 if { (eval echo configure:11833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11833 rm -rf conftest*
11834 wx_cv_size_t_is_uint=no
11835 else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -rf conftest*
11839 wx_cv_size_t_is_uint=yes
11840
11841 fi
11842 rm -f conftest*
11843
11844 fi
11845
11846 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11847
11848 if test "$wx_cv_size_t_is_uint" = "yes"; then
11849 cat >> confdefs.h <<\EOF
11850 #define wxSIZE_T_IS_UINT 1
11851 EOF
11852
11853 else
11854 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11855 echo "configure:11856: checking if size_t is unsigned long" >&5
11856 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11857 echo $ac_n "(cached) $ac_c" 1>&6
11858 else
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11862 #include <stddef.h>
11863 int main() {
11864
11865 return 0; }
11866
11867 struct Foo { void foo(size_t); void foo(unsigned long); };
11868
11869 int bar() {
11870
11871 ; return 0; }
11872 EOF
11873 if { (eval echo configure:11874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11874 rm -rf conftest*
11875 wx_cv_size_t_is_ulong=no
11876 else
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 rm -rf conftest*
11880 wx_cv_size_t_is_ulong=yes
11881
11882 fi
11883 rm -f conftest*
11884
11885 fi
11886
11887 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11888
11889 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11890 cat >> confdefs.h <<\EOF
11891 #define wxSIZE_T_IS_ULONG 1
11892 EOF
11893
11894 fi
11895 fi
11896
11897 ac_ext=c
11898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11899 ac_cpp='$CPP $CPPFLAGS'
11900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11902 cross_compiling=$ac_cv_prog_cc_cross
11903
11904
11905
11906 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11907 echo "configure:11908: checking for pw_gecos in struct passwd" >&5
11908 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11909 echo $ac_n "(cached) $ac_c" 1>&6
11910 else
11911
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 #include <pwd.h>
11916 int main() {
11917
11918 char *p;
11919 struct passwd *pw;
11920 p = pw->pw_gecos;
11921
11922 ; return 0; }
11923 EOF
11924 if { (eval echo configure:11925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11925 rm -rf conftest*
11926
11927 wx_cv_struct_pw_gecos=yes
11928
11929 else
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11932 rm -rf conftest*
11933
11934 wx_cv_struct_pw_gecos=no
11935
11936
11937 fi
11938 rm -f conftest*
11939
11940
11941 fi
11942
11943 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11944
11945 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11946 cat >> confdefs.h <<\EOF
11947 #define HAVE_PW_GECOS 1
11948 EOF
11949
11950 fi
11951
11952
11953 echo $ac_n "checking for working const""... $ac_c" 1>&6
11954 echo "configure:11955: checking for working const" >&5
11955 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11957 else
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961
11962 int main() {
11963
11964 /* Ultrix mips cc rejects this. */
11965 typedef int charset[2]; const charset x;
11966 /* SunOS 4.1.1 cc rejects this. */
11967 char const *const *ccp;
11968 char **p;
11969 /* NEC SVR4.0.2 mips cc rejects this. */
11970 struct point {int x, y;};
11971 static struct point const zero = {0,0};
11972 /* AIX XL C 1.02.0.0 rejects this.
11973 It does not let you subtract one const X* pointer from another in an arm
11974 of an if-expression whose if-part is not a constant expression */
11975 const char *g = "string";
11976 ccp = &g + (g ? g-g : 0);
11977 /* HPUX 7.0 cc rejects these. */
11978 ++ccp;
11979 p = (char**) ccp;
11980 ccp = (char const *const *) p;
11981 { /* SCO 3.2v4 cc rejects this. */
11982 char *t;
11983 char const *s = 0 ? (char *) 0 : (char const *) 0;
11984
11985 *t++ = 0;
11986 }
11987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11988 int x[] = {25, 17};
11989 const int *foo = &x[0];
11990 ++foo;
11991 }
11992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11993 typedef const int *iptr;
11994 iptr p = 0;
11995 ++p;
11996 }
11997 { /* AIX XL C 1.02.0.0 rejects this saying
11998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11999 struct s { int j; const int *ap[3]; };
12000 struct s *b; b->j = 5;
12001 }
12002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12003 const int foo = 10;
12004 }
12005
12006 ; return 0; }
12007 EOF
12008 if { (eval echo configure:12009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12009 rm -rf conftest*
12010 ac_cv_c_const=yes
12011 else
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 rm -rf conftest*
12015 ac_cv_c_const=no
12016 fi
12017 rm -f conftest*
12018 fi
12019
12020 echo "$ac_t""$ac_cv_c_const" 1>&6
12021 if test $ac_cv_c_const = no; then
12022 cat >> confdefs.h <<\EOF
12023 #define const
12024 EOF
12025
12026 fi
12027
12028 echo $ac_n "checking for inline""... $ac_c" 1>&6
12029 echo "configure:12030: checking for inline" >&5
12030 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032 else
12033 ac_cv_c_inline=no
12034 for ac_kw in inline __inline__ __inline; do
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038
12039 int main() {
12040 } $ac_kw foo() {
12041 ; return 0; }
12042 EOF
12043 if { (eval echo configure:12044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12044 rm -rf conftest*
12045 ac_cv_c_inline=$ac_kw; break
12046 else
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12049 fi
12050 rm -f conftest*
12051 done
12052
12053 fi
12054
12055 echo "$ac_t""$ac_cv_c_inline" 1>&6
12056 case "$ac_cv_c_inline" in
12057 inline | yes) ;;
12058 no) cat >> confdefs.h <<\EOF
12059 #define inline
12060 EOF
12061 ;;
12062 *) cat >> confdefs.h <<EOF
12063 #define inline $ac_cv_c_inline
12064 EOF
12065 ;;
12066 esac
12067
12068
12069 echo $ac_n "checking size of char""... $ac_c" 1>&6
12070 echo "configure:12071: checking size of char" >&5
12071 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12072 echo $ac_n "(cached) $ac_c" 1>&6
12073 else
12074 if test "$cross_compiling" = yes; then
12075 ac_cv_sizeof_char=1
12076 else
12077 cat > conftest.$ac_ext <<EOF
12078 #line 12079 "configure"
12079 #include "confdefs.h"
12080 #include <stdio.h>
12081 main()
12082 {
12083 FILE *f=fopen("conftestval", "w");
12084 if (!f) exit(1);
12085 fprintf(f, "%d\n", sizeof(char));
12086 exit(0);
12087 }
12088 EOF
12089 if { (eval echo configure:12090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12090 then
12091 ac_cv_sizeof_char=`cat conftestval`
12092 else
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 rm -fr conftest*
12096 ac_cv_sizeof_char=0
12097 fi
12098 rm -fr conftest*
12099 fi
12100
12101 fi
12102 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12103 cat >> confdefs.h <<EOF
12104 #define SIZEOF_CHAR $ac_cv_sizeof_char
12105 EOF
12106
12107
12108 echo $ac_n "checking size of short""... $ac_c" 1>&6
12109 echo "configure:12110: checking size of short" >&5
12110 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
12112 else
12113 if test "$cross_compiling" = yes; then
12114 ac_cv_sizeof_short=2
12115 else
12116 cat > conftest.$ac_ext <<EOF
12117 #line 12118 "configure"
12118 #include "confdefs.h"
12119 #include <stdio.h>
12120 main()
12121 {
12122 FILE *f=fopen("conftestval", "w");
12123 if (!f) exit(1);
12124 fprintf(f, "%d\n", sizeof(short));
12125 exit(0);
12126 }
12127 EOF
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12129 then
12130 ac_cv_sizeof_short=`cat conftestval`
12131 else
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134 rm -fr conftest*
12135 ac_cv_sizeof_short=0
12136 fi
12137 rm -fr conftest*
12138 fi
12139
12140 fi
12141 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12142 cat >> confdefs.h <<EOF
12143 #define SIZEOF_SHORT $ac_cv_sizeof_short
12144 EOF
12145
12146
12147 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12148 echo "configure:12149: checking size of int *" >&5
12149 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12150 echo $ac_n "(cached) $ac_c" 1>&6
12151 else
12152 if test "$cross_compiling" = yes; then
12153 ac_cv_sizeof_int_p=4
12154 else
12155 cat > conftest.$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12158 #include <stdio.h>
12159 main()
12160 {
12161 FILE *f=fopen("conftestval", "w");
12162 if (!f) exit(1);
12163 fprintf(f, "%d\n", sizeof(int *));
12164 exit(0);
12165 }
12166 EOF
12167 if { (eval echo configure:12168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12168 then
12169 ac_cv_sizeof_int_p=`cat conftestval`
12170 else
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -fr conftest*
12174 ac_cv_sizeof_int_p=0
12175 fi
12176 rm -fr conftest*
12177 fi
12178
12179 fi
12180 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12181 cat >> confdefs.h <<EOF
12182 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12183 EOF
12184
12185
12186 echo $ac_n "checking size of int""... $ac_c" 1>&6
12187 echo "configure:12188: checking size of int" >&5
12188 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
12190 else
12191 if test "$cross_compiling" = yes; then
12192 ac_cv_sizeof_int=4
12193 else
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 #include <stdio.h>
12198 main()
12199 {
12200 FILE *f=fopen("conftestval", "w");
12201 if (!f) exit(1);
12202 fprintf(f, "%d\n", sizeof(int));
12203 exit(0);
12204 }
12205 EOF
12206 if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12207 then
12208 ac_cv_sizeof_int=`cat conftestval`
12209 else
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 rm -fr conftest*
12213 ac_cv_sizeof_int=0
12214 fi
12215 rm -fr conftest*
12216 fi
12217
12218 fi
12219 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12220 cat >> confdefs.h <<EOF
12221 #define SIZEOF_INT $ac_cv_sizeof_int
12222 EOF
12223
12224
12225 echo $ac_n "checking size of long""... $ac_c" 1>&6
12226 echo "configure:12227: checking size of long" >&5
12227 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12228 echo $ac_n "(cached) $ac_c" 1>&6
12229 else
12230 if test "$cross_compiling" = yes; then
12231 ac_cv_sizeof_long=4
12232 else
12233 cat > conftest.$ac_ext <<EOF
12234 #line 12235 "configure"
12235 #include "confdefs.h"
12236 #include <stdio.h>
12237 main()
12238 {
12239 FILE *f=fopen("conftestval", "w");
12240 if (!f) exit(1);
12241 fprintf(f, "%d\n", sizeof(long));
12242 exit(0);
12243 }
12244 EOF
12245 if { (eval echo configure:12246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12246 then
12247 ac_cv_sizeof_long=`cat conftestval`
12248 else
12249 echo "configure: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 rm -fr conftest*
12252 ac_cv_sizeof_long=0
12253 fi
12254 rm -fr conftest*
12255 fi
12256
12257 fi
12258 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12259 cat >> confdefs.h <<EOF
12260 #define SIZEOF_LONG $ac_cv_sizeof_long
12261 EOF
12262
12263
12264 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12265 echo "configure:12266: checking size of long long" >&5
12266 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12268 else
12269 if test "$cross_compiling" = yes; then
12270 ac_cv_sizeof_long_long=0
12271 else
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 #include <stdio.h>
12276 main()
12277 {
12278 FILE *f=fopen("conftestval", "w");
12279 if (!f) exit(1);
12280 fprintf(f, "%d\n", sizeof(long long));
12281 exit(0);
12282 }
12283 EOF
12284 if { (eval echo configure:12285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12285 then
12286 ac_cv_sizeof_long_long=`cat conftestval`
12287 else
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 rm -fr conftest*
12291 ac_cv_sizeof_long_long=0
12292 fi
12293 rm -fr conftest*
12294 fi
12295
12296 fi
12297 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12298 cat >> confdefs.h <<EOF
12299 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12300 EOF
12301
12302
12303
12304 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12305 echo "configure:12306: checking size of wchar_t" >&5
12306 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12308 else
12309
12310 if test "$cross_compiling" = yes; then
12311 wx_cv_sizeof_wchar_t=4
12312
12313 else
12314 cat > conftest.$ac_ext <<EOF
12315 #line 12316 "configure"
12316 #include "confdefs.h"
12317
12318 #ifdef HAVE_WCHAR_H
12319 # include <wchar.h>
12320 #endif
12321 #ifdef HAVE_STDLIB_H
12322 # include <stdlib.h>
12323 #endif
12324 #include <stdio.h>
12325 int main()
12326 {
12327 FILE *f=fopen("conftestval", "w");
12328 if (!f) exit(1);
12329 fprintf(f, "%i", sizeof(wchar_t));
12330 exit(0);
12331 }
12332
12333 EOF
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12335 then
12336 wx_cv_sizeof_wchar_t=`cat conftestval`
12337 else
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12340 rm -fr conftest*
12341 wx_cv_sizeof_wchar_t=0
12342 fi
12343 rm -fr conftest*
12344 fi
12345
12346
12347 fi
12348
12349 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12350
12351 cat >> confdefs.h <<EOF
12352 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12353 EOF
12354
12355
12356 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12357 echo "configure:12358: checking whether byte ordering is bigendian" >&5
12358 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12360 else
12361 ac_cv_c_bigendian=unknown
12362 # See if sys/param.h defines the BYTE_ORDER macro.
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366 #include <sys/types.h>
12367 #include <sys/param.h>
12368 int main() {
12369
12370 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12371 bogus endian macros
12372 #endif
12373 ; return 0; }
12374 EOF
12375 if { (eval echo configure:12376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12376 rm -rf conftest*
12377 # It does; now see whether it defined to BIG_ENDIAN or not.
12378 cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12381 #include <sys/types.h>
12382 #include <sys/param.h>
12383 int main() {
12384
12385 #if BYTE_ORDER != BIG_ENDIAN
12386 not big endian
12387 #endif
12388 ; return 0; }
12389 EOF
12390 if { (eval echo configure:12391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12391 rm -rf conftest*
12392 ac_cv_c_bigendian=yes
12393 else
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12396 rm -rf conftest*
12397 ac_cv_c_bigendian=no
12398 fi
12399 rm -f conftest*
12400 else
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12403 fi
12404 rm -f conftest*
12405 if test $ac_cv_c_bigendian = unknown; then
12406 if test "$cross_compiling" = yes; then
12407 ac_cv_c_bigendian=unknown
12408 else
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12412 main () {
12413 /* Are we little or big endian? From Harbison&Steele. */
12414 union
12415 {
12416 long l;
12417 char c[sizeof (long)];
12418 } u;
12419 u.l = 1;
12420 exit (u.c[sizeof (long) - 1] == 1);
12421 }
12422 EOF
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12424 then
12425 ac_cv_c_bigendian=no
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -fr conftest*
12430 ac_cv_c_bigendian=yes
12431 fi
12432 rm -fr conftest*
12433 fi
12434
12435 fi
12436 fi
12437
12438 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12439 if test $ac_cv_c_bigendian = unknown; then
12440 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
12441 fi
12442 if test $ac_cv_c_bigendian = yes; then
12443 cat >> confdefs.h <<\EOF
12444 #define WORDS_BIGENDIAN 1
12445 EOF
12446
12447 fi
12448
12449
12450
12451 if test "$cross_compiling" = "yes"; then
12452 cat >> confdefs.h <<\EOF
12453 #define wxUSE_IOSTREAMH 1
12454 EOF
12455
12456 else
12457
12458 ac_ext=C
12459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12460 ac_cpp='$CXXCPP $CPPFLAGS'
12461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12463 cross_compiling=$ac_cv_prog_cxx_cross
12464
12465
12466 for ac_hdr in iostream
12467 do
12468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12470 echo "configure:12471: checking for $ac_hdr" >&5
12471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12473 else
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12476 "configure"
12476 #include "confdefs.h"
12477 #include <$ac_hdr>
12478 EOF
12479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12480 { (eval echo configure:12481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12482 if test -z "$ac_err"; then
12483 rm -rf conftest*
12484 eval "ac_cv_header_$ac_safe=yes"
12485 else
12486 echo "$ac_err" >&5
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12489 rm -rf conftest*
12490 eval "ac_cv_header_$ac_safe=no"
12491 fi
12492 rm -f conftest*
12493 fi
12494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12495 echo "$ac_t""yes" 1>&6
12496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12497 cat >> confdefs.h <<EOF
12498 #define $ac_tr_hdr 1
12499 EOF
12500
12501 else
12502 echo "$ac_t""no" 1>&6
12503 fi
12504 done
12505
12506
12507 if test "$ac_cv_header_iostream" = "yes" ; then
12508 :
12509 else
12510 cat >> confdefs.h <<\EOF
12511 #define wxUSE_IOSTREAMH 1
12512 EOF
12513
12514 fi
12515
12516 ac_ext=c
12517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12518 ac_cpp='$CPP $CPPFLAGS'
12519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12521 cross_compiling=$ac_cv_prog_cc_cross
12522
12523 fi
12524
12525
12526
12527 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12528 echo "configure:12529: checking if C++ compiler supports bool" >&5
12529 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12530 echo $ac_n "(cached) $ac_c" 1>&6
12531 else
12532
12533
12534 ac_ext=C
12535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12539 cross_compiling=$ac_cv_prog_cxx_cross
12540
12541
12542 cat > conftest.$ac_ext <<EOF
12543 #line 12544 "configure"
12544 #include "confdefs.h"
12545
12546
12547 int main() {
12548
12549 bool b = true;
12550
12551 return 0;
12552
12553 ; return 0; }
12554 EOF
12555 if { (eval echo configure:12556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12556 rm -rf conftest*
12557
12558 wx_cv_cpp_bool=yes
12559
12560 else
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 rm -rf conftest*
12564
12565 wx_cv_cpp_bool=no
12566
12567
12568 fi
12569 rm -f conftest*
12570
12571 ac_ext=c
12572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12573 ac_cpp='$CPP $CPPFLAGS'
12574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12576 cross_compiling=$ac_cv_prog_cc_cross
12577
12578
12579 fi
12580
12581 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12582
12583 if test "$wx_cv_cpp_bool" = "yes"; then
12584 cat >> confdefs.h <<\EOF
12585 #define HAVE_BOOL 1
12586 EOF
12587
12588 fi
12589
12590
12591
12592 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12593 echo "configure:12594: checking for wcslen in -lc" >&5
12594 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12596 echo $ac_n "(cached) $ac_c" 1>&6
12597 else
12598 ac_save_LIBS="$LIBS"
12599 LIBS="-lc $LIBS"
12600 cat > conftest.$ac_ext <<EOF
12601 #line 12602 "configure"
12602 #include "confdefs.h"
12603 /* Override any gcc2 internal prototype to avoid an error. */
12604 /* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12606 char wcslen();
12607
12608 int main() {
12609 wcslen()
12610 ; return 0; }
12611 EOF
12612 if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12613 rm -rf conftest*
12614 eval "ac_cv_lib_$ac_lib_var=yes"
12615 else
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 rm -rf conftest*
12619 eval "ac_cv_lib_$ac_lib_var=no"
12620 fi
12621 rm -f conftest*
12622 LIBS="$ac_save_LIBS"
12623
12624 fi
12625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12626 echo "$ac_t""yes" 1>&6
12627
12628 cat >> confdefs.h <<\EOF
12629 #define HAVE_WCSLEN 1
12630 EOF
12631
12632 WCHAR_LINK=""
12633
12634 else
12635 echo "$ac_t""no" 1>&6
12636
12637 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12638 echo "configure:12639: checking for wcslen in -lw" >&5
12639 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12641 echo $ac_n "(cached) $ac_c" 1>&6
12642 else
12643 ac_save_LIBS="$LIBS"
12644 LIBS="-lw $LIBS"
12645 cat > conftest.$ac_ext <<EOF
12646 #line 12647 "configure"
12647 #include "confdefs.h"
12648 /* Override any gcc2 internal prototype to avoid an error. */
12649 /* We use char because int might match the return type of a gcc2
12650 builtin and then its argument prototype would still apply. */
12651 char wcslen();
12652
12653 int main() {
12654 wcslen()
12655 ; return 0; }
12656 EOF
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 eval "ac_cv_lib_$ac_lib_var=yes"
12660 else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_lib_$ac_lib_var=no"
12665 fi
12666 rm -f conftest*
12667 LIBS="$ac_save_LIBS"
12668
12669 fi
12670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12671 echo "$ac_t""yes" 1>&6
12672
12673 cat >> confdefs.h <<\EOF
12674 #define HAVE_WCSLEN 1
12675 EOF
12676
12677 WCHAR_LINK="-lw"
12678
12679 else
12680 echo "$ac_t""no" 1>&6
12681 fi
12682
12683
12684 fi
12685
12686
12687 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12688 echo "configure:12689: checking for vprintf" >&5
12689 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12691 else
12692 cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 /* System header to define __stub macros and hopefully few prototypes,
12696 which can conflict with char vprintf(); below. */
12697 #include <assert.h>
12698 /* Override any gcc2 internal prototype to avoid an error. */
12699 /* We use char because int might match the return type of a gcc2
12700 builtin and then its argument prototype would still apply. */
12701 char vprintf();
12702
12703 int main() {
12704
12705 /* The GNU C library defines this for functions which it implements
12706 to always fail with ENOSYS. Some functions are actually named
12707 something starting with __ and the normal name is an alias. */
12708 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12709 choke me
12710 #else
12711 vprintf();
12712 #endif
12713
12714 ; return 0; }
12715 EOF
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12717 rm -rf conftest*
12718 eval "ac_cv_func_vprintf=yes"
12719 else
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12722 rm -rf conftest*
12723 eval "ac_cv_func_vprintf=no"
12724 fi
12725 rm -f conftest*
12726 fi
12727
12728 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12729 echo "$ac_t""yes" 1>&6
12730 cat >> confdefs.h <<\EOF
12731 #define HAVE_VPRINTF 1
12732 EOF
12733
12734 else
12735 echo "$ac_t""no" 1>&6
12736 fi
12737
12738 if test "$ac_cv_func_vprintf" != yes; then
12739 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12740 echo "configure:12741: checking for _doprnt" >&5
12741 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12743 else
12744 cat > conftest.$ac_ext <<EOF
12745 #line 12746 "configure"
12746 #include "confdefs.h"
12747 /* System header to define __stub macros and hopefully few prototypes,
12748 which can conflict with char _doprnt(); below. */
12749 #include <assert.h>
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12753 char _doprnt();
12754
12755 int main() {
12756
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12761 choke me
12762 #else
12763 _doprnt();
12764 #endif
12765
12766 ; return 0; }
12767 EOF
12768 if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12769 rm -rf conftest*
12770 eval "ac_cv_func__doprnt=yes"
12771 else
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 rm -rf conftest*
12775 eval "ac_cv_func__doprnt=no"
12776 fi
12777 rm -f conftest*
12778 fi
12779
12780 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12781 echo "$ac_t""yes" 1>&6
12782 cat >> confdefs.h <<\EOF
12783 #define HAVE_DOPRNT 1
12784 EOF
12785
12786 else
12787 echo "$ac_t""no" 1>&6
12788 fi
12789
12790 fi
12791
12792
12793
12794
12795
12796
12797
12798 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12799 echo "configure:12800: checking for vsnprintf" >&5
12800 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12801 echo $ac_n "(cached) $ac_c" 1>&6
12802 else
12803
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12807
12808 #include <stdio.h>
12809 #include <stdarg.h>
12810
12811 int main() {
12812
12813 int wx_test_vsnprintf(const char *, ...);
12814
12815 wx_test_vsnprintf("%s");
12816 return 0;
12817 }
12818
12819 int wx_test_vsnprintf(const char *fmt, ...)
12820 {
12821 char *s;
12822
12823 va_list argp;
12824 va_start(argp, fmt);
12825 vsnprintf(s, 42, fmt, argp);
12826 va_end(argp);
12827
12828 ; return 0; }
12829 EOF
12830 if { (eval echo configure:12831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12831 rm -rf conftest*
12832
12833 wx_cv_func_vsnprintf=yes
12834
12835 else
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -rf conftest*
12839
12840 cat > conftest.$ac_ext <<EOF
12841 #line 12842 "configure"
12842 #include "confdefs.h"
12843
12844 #include <stdio.h>
12845 #include <stdarg.h>
12846
12847 int main() {
12848
12849 int wx_test_vsnprintf(const char *, ...);
12850
12851 wx_test_vsnprintf("%s");
12852 return 0;
12853 }
12854
12855 int wx_test_vsnprintf(const char *fmt, ...)
12856 {
12857 char *s;
12858
12859 va_list argp;
12860 va_start(argp, fmt);
12861 _vsnprintf(s, 42, fmt, argp);
12862 va_end(argp);
12863
12864 ; return 0; }
12865 EOF
12866 if { (eval echo configure:12867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12867 rm -rf conftest*
12868
12869 wx_cv_func_vsnprintf=yes
12870
12871 else
12872 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 rm -rf conftest*
12875
12876 wx_cv_func_vsnprintf=no
12877
12878 fi
12879 rm -f conftest*
12880
12881 fi
12882 rm -f conftest*
12883
12884 fi
12885
12886 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12887
12888 if test "$wx_cv_func_vsnprintf" = yes; then
12889 cat >> confdefs.h <<\EOF
12890 #define HAVE_VSNPRINTF 1
12891 EOF
12892
12893 else
12894 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12895 fi
12896
12897 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12898 echo "configure:12899: checking for vsscanf" >&5
12899 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12900 echo $ac_n "(cached) $ac_c" 1>&6
12901 else
12902
12903 cat > conftest.$ac_ext <<EOF
12904 #line 12905 "configure"
12905 #include "confdefs.h"
12906
12907 #include <stdio.h>
12908 #include <stdarg.h>
12909
12910 int main() {
12911
12912 int wx_test_vsscanf(const char *, ...);
12913
12914 wx_test_vsscanf("%d");
12915 return 0;
12916 }
12917
12918 int wx_test_vsscanf(const char *fmt, ...)
12919 {
12920 va_list argp;
12921 va_start(argp, fmt);
12922 vsscanf("42", fmt, argp);
12923 va_end(argp);
12924
12925 ; return 0; }
12926 EOF
12927 if { (eval echo configure:12928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12928 rm -rf conftest*
12929
12930 wx_cv_func_vsscanf=yes
12931
12932 else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936
12937 wx_cv_func_vsscanf=no
12938
12939 fi
12940 rm -f conftest*
12941
12942 fi
12943
12944 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12945
12946 if test "$wx_cv_func_vsscanf" = yes; then
12947 cat >> confdefs.h <<\EOF
12948 #define HAVE_VSSCANF 1
12949 EOF
12950
12951 fi
12952
12953 if test "$TOOLKIT" != "MSW"; then
12954
12955
12956
12957 ac_ext=C
12958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12959 ac_cpp='$CXXCPP $CPPFLAGS'
12960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12962 cross_compiling=$ac_cv_prog_cxx_cross
12963
12964 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12965 echo "configure:12966: checking if iconv() takes char**" >&5
12966 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12967 echo $ac_n "(cached) $ac_c" 1>&6
12968 else
12969
12970 cat > conftest.$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12973 #include <iconv.h>
12974 int main() {
12975
12976 char **inbuf, **outbuf;
12977 iconv_t cd;
12978 size_t insz, outsz;
12979 iconv(cd, inbuf, &insz, outbuf, &outsz);
12980
12981 ; return 0; }
12982 EOF
12983 if { (eval echo configure:12984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12984 rm -rf conftest*
12985 wx_cv_iconv_takes_char=yes
12986 else
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 wx_cv_iconv_takes_char=no
12991 fi
12992 rm -f conftest*
12993
12994 fi
12995
12996 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12997 ac_ext=c
12998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12999 ac_cpp='$CPP $CPPFLAGS'
13000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13002 cross_compiling=$ac_cv_prog_cc_cross
13003
13004 if test "$wx_cv_iconv_takes_char" = yes ; then
13005 cat >> confdefs.h <<\EOF
13006 #define WX_ICONV_TAKES_CHAR 1
13007 EOF
13008
13009 fi
13010
13011
13012 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13013 for ac_func in sigaction
13014 do
13015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13016 echo "configure:13017: checking for $ac_func" >&5
13017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13019 else
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13023 /* System header to define __stub macros and hopefully few prototypes,
13024 which can conflict with char $ac_func(); below. */
13025 #include <assert.h>
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 /* We use char because int might match the return type of a gcc2
13028 builtin and then its argument prototype would still apply. */
13029 char $ac_func();
13030
13031 int main() {
13032
13033 /* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13037 choke me
13038 #else
13039 $ac_func();
13040 #endif
13041
13042 ; return 0; }
13043 EOF
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13045 rm -rf conftest*
13046 eval "ac_cv_func_$ac_func=yes"
13047 else
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 rm -rf conftest*
13051 eval "ac_cv_func_$ac_func=no"
13052 fi
13053 rm -f conftest*
13054 fi
13055
13056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13059 cat >> confdefs.h <<EOF
13060 #define $ac_tr_func 1
13061 EOF
13062
13063 else
13064 echo "$ac_t""no" 1>&6
13065 fi
13066 done
13067
13068
13069 if test "$ac_cv_func_sigaction" = "no"; then
13070 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13071 wxUSE_ON_FATAL_EXCEPTION=no
13072 fi
13073
13074 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13075
13076 ac_ext=C
13077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13078 ac_cpp='$CXXCPP $CPPFLAGS'
13079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13081 cross_compiling=$ac_cv_prog_cxx_cross
13082
13083
13084 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13085 echo "configure:13086: checking for sa_handler type" >&5
13086 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13087 echo $ac_n "(cached) $ac_c" 1>&6
13088 else
13089
13090 cat > conftest.$ac_ext <<EOF
13091 #line 13092 "configure"
13092 #include "confdefs.h"
13093 #include <signal.h>
13094 int main() {
13095
13096 extern void testSigHandler(int);
13097
13098 struct sigaction sa;
13099 sa.sa_handler = testSigHandler;
13100
13101 ; return 0; }
13102 EOF
13103 if { (eval echo configure:13104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13104 rm -rf conftest*
13105
13106 wx_cv_type_sa_handler=int
13107
13108 else
13109 echo "configure: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 rm -rf conftest*
13112
13113 wx_cv_type_sa_handler=void
13114
13115 fi
13116 rm -f conftest*
13117
13118 fi
13119
13120 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13121
13122 ac_ext=c
13123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13124 ac_cpp='$CPP $CPPFLAGS'
13125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13127 cross_compiling=$ac_cv_prog_cc_cross
13128
13129
13130 cat >> confdefs.h <<EOF
13131 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13132 EOF
13133
13134 fi
13135 fi
13136
13137 for ac_func in vfork
13138 do
13139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13140 echo "configure:13141: checking for $ac_func" >&5
13141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13142 echo $ac_n "(cached) $ac_c" 1>&6
13143 else
13144 cat > conftest.$ac_ext <<EOF
13145 #line 13146 "configure"
13146 #include "confdefs.h"
13147 /* System header to define __stub macros and hopefully few prototypes,
13148 which can conflict with char $ac_func(); below. */
13149 #include <assert.h>
13150 /* Override any gcc2 internal prototype to avoid an error. */
13151 /* We use char because int might match the return type of a gcc2
13152 builtin and then its argument prototype would still apply. */
13153 char $ac_func();
13154
13155 int main() {
13156
13157 /* The GNU C library defines this for functions which it implements
13158 to always fail with ENOSYS. Some functions are actually named
13159 something starting with __ and the normal name is an alias. */
13160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13161 choke me
13162 #else
13163 $ac_func();
13164 #endif
13165
13166 ; return 0; }
13167 EOF
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13169 rm -rf conftest*
13170 eval "ac_cv_func_$ac_func=yes"
13171 else
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -rf conftest*
13175 eval "ac_cv_func_$ac_func=no"
13176 fi
13177 rm -f conftest*
13178 fi
13179
13180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13181 echo "$ac_t""yes" 1>&6
13182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13183 cat >> confdefs.h <<EOF
13184 #define $ac_tr_func 1
13185 EOF
13186
13187 else
13188 echo "$ac_t""no" 1>&6
13189 fi
13190 done
13191
13192
13193 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13194 for ac_func in fcntl flock
13195 do
13196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13197 echo "configure:13198: checking for $ac_func" >&5
13198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13199 echo $ac_n "(cached) $ac_c" 1>&6
13200 else
13201 cat > conftest.$ac_ext <<EOF
13202 #line 13203 "configure"
13203 #include "confdefs.h"
13204 /* System header to define __stub macros and hopefully few prototypes,
13205 which can conflict with char $ac_func(); below. */
13206 #include <assert.h>
13207 /* Override any gcc2 internal prototype to avoid an error. */
13208 /* We use char because int might match the return type of a gcc2
13209 builtin and then its argument prototype would still apply. */
13210 char $ac_func();
13211
13212 int main() {
13213
13214 /* The GNU C library defines this for functions which it implements
13215 to always fail with ENOSYS. Some functions are actually named
13216 something starting with __ and the normal name is an alias. */
13217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13218 choke me
13219 #else
13220 $ac_func();
13221 #endif
13222
13223 ; return 0; }
13224 EOF
13225 if { (eval echo configure:13226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13226 rm -rf conftest*
13227 eval "ac_cv_func_$ac_func=yes"
13228 else
13229 echo "configure: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13231 rm -rf conftest*
13232 eval "ac_cv_func_$ac_func=no"
13233 fi
13234 rm -f conftest*
13235 fi
13236
13237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13238 echo "$ac_t""yes" 1>&6
13239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13240 cat >> confdefs.h <<EOF
13241 #define $ac_tr_func 1
13242 EOF
13243 break
13244 else
13245 echo "$ac_t""no" 1>&6
13246 fi
13247 done
13248
13249
13250 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13251 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13252 wxUSE_SNGLINST_CHECKER=no
13253 fi
13254 fi
13255
13256 for ac_func in timegm
13257 do
13258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13259 echo "configure:13260: checking for $ac_func" >&5
13260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13261 echo $ac_n "(cached) $ac_c" 1>&6
13262 else
13263 cat > conftest.$ac_ext <<EOF
13264 #line 13265 "configure"
13265 #include "confdefs.h"
13266 /* System header to define __stub macros and hopefully few prototypes,
13267 which can conflict with char $ac_func(); below. */
13268 #include <assert.h>
13269 /* Override any gcc2 internal prototype to avoid an error. */
13270 /* We use char because int might match the return type of a gcc2
13271 builtin and then its argument prototype would still apply. */
13272 char $ac_func();
13273
13274 int main() {
13275
13276 /* The GNU C library defines this for functions which it implements
13277 to always fail with ENOSYS. Some functions are actually named
13278 something starting with __ and the normal name is an alias. */
13279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13280 choke me
13281 #else
13282 $ac_func();
13283 #endif
13284
13285 ; return 0; }
13286 EOF
13287 if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13288 rm -rf conftest*
13289 eval "ac_cv_func_$ac_func=yes"
13290 else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 rm -rf conftest*
13294 eval "ac_cv_func_$ac_func=no"
13295 fi
13296 rm -f conftest*
13297 fi
13298
13299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13300 echo "$ac_t""yes" 1>&6
13301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13302 cat >> confdefs.h <<EOF
13303 #define $ac_tr_func 1
13304 EOF
13305
13306 else
13307 echo "$ac_t""no" 1>&6
13308 fi
13309 done
13310
13311
13312 for ac_func in putenv setenv
13313 do
13314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13315 echo "configure:13316: checking for $ac_func" >&5
13316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13317 echo $ac_n "(cached) $ac_c" 1>&6
13318 else
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 /* System header to define __stub macros and hopefully few prototypes,
13323 which can conflict with char $ac_func(); below. */
13324 #include <assert.h>
13325 /* Override any gcc2 internal prototype to avoid an error. */
13326 /* We use char because int might match the return type of a gcc2
13327 builtin and then its argument prototype would still apply. */
13328 char $ac_func();
13329
13330 int main() {
13331
13332 /* The GNU C library defines this for functions which it implements
13333 to always fail with ENOSYS. Some functions are actually named
13334 something starting with __ and the normal name is an alias. */
13335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13336 choke me
13337 #else
13338 $ac_func();
13339 #endif
13340
13341 ; return 0; }
13342 EOF
13343 if { (eval echo configure:13344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13344 rm -rf conftest*
13345 eval "ac_cv_func_$ac_func=yes"
13346 else
13347 echo "configure: failed program was:" >&5
13348 cat conftest.$ac_ext >&5
13349 rm -rf conftest*
13350 eval "ac_cv_func_$ac_func=no"
13351 fi
13352 rm -f conftest*
13353 fi
13354
13355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13356 echo "$ac_t""yes" 1>&6
13357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13358 cat >> confdefs.h <<EOF
13359 #define $ac_tr_func 1
13360 EOF
13361 break
13362 else
13363 echo "$ac_t""no" 1>&6
13364 fi
13365 done
13366
13367
13368 HAVE_SOME_SLEEP_FUNC=0
13369 if test "$USE_BEOS" = 1; then
13370 cat >> confdefs.h <<\EOF
13371 #define HAVE_SLEEP 1
13372 EOF
13373
13374 HAVE_SOME_SLEEP_FUNC=1
13375 fi
13376
13377 if test "$USE_DARWIN" = 1; then
13378 cat >> confdefs.h <<\EOF
13379 #define HAVE_USLEEP 1
13380 EOF
13381
13382 HAVE_SOME_SLEEP_FUNC=1
13383 fi
13384
13385 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13386 POSIX4_LINK=
13387 for ac_func in nanosleep
13388 do
13389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13390 echo "configure:13391: checking for $ac_func" >&5
13391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13393 else
13394 cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 /* System header to define __stub macros and hopefully few prototypes,
13398 which can conflict with char $ac_func(); below. */
13399 #include <assert.h>
13400 /* Override any gcc2 internal prototype to avoid an error. */
13401 /* We use char because int might match the return type of a gcc2
13402 builtin and then its argument prototype would still apply. */
13403 char $ac_func();
13404
13405 int main() {
13406
13407 /* The GNU C library defines this for functions which it implements
13408 to always fail with ENOSYS. Some functions are actually named
13409 something starting with __ and the normal name is an alias. */
13410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13411 choke me
13412 #else
13413 $ac_func();
13414 #endif
13415
13416 ; return 0; }
13417 EOF
13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13419 rm -rf conftest*
13420 eval "ac_cv_func_$ac_func=yes"
13421 else
13422 echo "configure: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 rm -rf conftest*
13425 eval "ac_cv_func_$ac_func=no"
13426 fi
13427 rm -f conftest*
13428 fi
13429
13430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13431 echo "$ac_t""yes" 1>&6
13432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13433 cat >> confdefs.h <<EOF
13434 #define $ac_tr_func 1
13435 EOF
13436 cat >> confdefs.h <<\EOF
13437 #define HAVE_NANOSLEEP 1
13438 EOF
13439
13440 else
13441 echo "$ac_t""no" 1>&6
13442 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13443 echo "configure:13444: checking for nanosleep in -lposix4" >&5
13444 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13446 echo $ac_n "(cached) $ac_c" 1>&6
13447 else
13448 ac_save_LIBS="$LIBS"
13449 LIBS="-lposix4 $LIBS"
13450 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 /* Override any gcc2 internal prototype to avoid an error. */
13454 /* We use char because int might match the return type of a gcc2
13455 builtin and then its argument prototype would still apply. */
13456 char nanosleep();
13457
13458 int main() {
13459 nanosleep()
13460 ; return 0; }
13461 EOF
13462 if { (eval echo configure:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13463 rm -rf conftest*
13464 eval "ac_cv_lib_$ac_lib_var=yes"
13465 else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -rf conftest*
13469 eval "ac_cv_lib_$ac_lib_var=no"
13470 fi
13471 rm -f conftest*
13472 LIBS="$ac_save_LIBS"
13473
13474 fi
13475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13476 echo "$ac_t""yes" 1>&6
13477
13478 cat >> confdefs.h <<\EOF
13479 #define HAVE_NANOSLEEP 1
13480 EOF
13481
13482 POSIX4_LINK="-lposix4"
13483
13484 else
13485 echo "$ac_t""no" 1>&6
13486
13487 for ac_func in usleep
13488 do
13489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13490 echo "configure:13491: checking for $ac_func" >&5
13491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13492 echo $ac_n "(cached) $ac_c" 1>&6
13493 else
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13497 /* System header to define __stub macros and hopefully few prototypes,
13498 which can conflict with char $ac_func(); below. */
13499 #include <assert.h>
13500 /* Override any gcc2 internal prototype to avoid an error. */
13501 /* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
13503 char $ac_func();
13504
13505 int main() {
13506
13507 /* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13511 choke me
13512 #else
13513 $ac_func();
13514 #endif
13515
13516 ; return 0; }
13517 EOF
13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13519 rm -rf conftest*
13520 eval "ac_cv_func_$ac_func=yes"
13521 else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 eval "ac_cv_func_$ac_func=no"
13526 fi
13527 rm -f conftest*
13528 fi
13529
13530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13531 echo "$ac_t""yes" 1>&6
13532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13533 cat >> confdefs.h <<EOF
13534 #define $ac_tr_func 1
13535 EOF
13536 cat >> confdefs.h <<\EOF
13537 #define HAVE_USLEEP 1
13538 EOF
13539
13540 else
13541 echo "$ac_t""no" 1>&6
13542 echo "configure: warning: wxSleep() function will not work" 1>&2
13543
13544 fi
13545 done
13546
13547
13548
13549 fi
13550
13551
13552
13553 fi
13554 done
13555
13556 fi
13557
13558 for ac_func in uname gethostname
13559 do
13560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13561 echo "configure:13562: checking for $ac_func" >&5
13562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13563 echo $ac_n "(cached) $ac_c" 1>&6
13564 else
13565 cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure"
13567 #include "confdefs.h"
13568 /* System header to define __stub macros and hopefully few prototypes,
13569 which can conflict with char $ac_func(); below. */
13570 #include <assert.h>
13571 /* Override any gcc2 internal prototype to avoid an error. */
13572 /* We use char because int might match the return type of a gcc2
13573 builtin and then its argument prototype would still apply. */
13574 char $ac_func();
13575
13576 int main() {
13577
13578 /* The GNU C library defines this for functions which it implements
13579 to always fail with ENOSYS. Some functions are actually named
13580 something starting with __ and the normal name is an alias. */
13581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13582 choke me
13583 #else
13584 $ac_func();
13585 #endif
13586
13587 ; return 0; }
13588 EOF
13589 if { (eval echo configure:13590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13590 rm -rf conftest*
13591 eval "ac_cv_func_$ac_func=yes"
13592 else
13593 echo "configure: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13595 rm -rf conftest*
13596 eval "ac_cv_func_$ac_func=no"
13597 fi
13598 rm -f conftest*
13599 fi
13600
13601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13602 echo "$ac_t""yes" 1>&6
13603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13604 cat >> confdefs.h <<EOF
13605 #define $ac_tr_func 1
13606 EOF
13607 break
13608 else
13609 echo "$ac_t""no" 1>&6
13610 fi
13611 done
13612
13613
13614
13615 ac_ext=C
13616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13617 ac_cpp='$CXXCPP $CPPFLAGS'
13618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13620 cross_compiling=$ac_cv_prog_cxx_cross
13621
13622
13623 for ac_func in strtok_r
13624 do
13625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13626 echo "configure:13627: checking for $ac_func" >&5
13627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13628 echo $ac_n "(cached) $ac_c" 1>&6
13629 else
13630 cat > conftest.$ac_ext <<EOF
13631 #line 13632 "configure"
13632 #include "confdefs.h"
13633 /* System header to define __stub macros and hopefully few prototypes,
13634 which can conflict with char $ac_func(); below. */
13635 #include <assert.h>
13636 /* Override any gcc2 internal prototype to avoid an error. */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 /* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13642 char $ac_func();
13643
13644 int main() {
13645
13646 /* The GNU C library defines this for functions which it implements
13647 to always fail with ENOSYS. Some functions are actually named
13648 something starting with __ and the normal name is an alias. */
13649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13650 choke me
13651 #else
13652 $ac_func();
13653 #endif
13654
13655 ; return 0; }
13656 EOF
13657 if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13658 rm -rf conftest*
13659 eval "ac_cv_func_$ac_func=yes"
13660 else
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 rm -rf conftest*
13664 eval "ac_cv_func_$ac_func=no"
13665 fi
13666 rm -f conftest*
13667 fi
13668
13669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13670 echo "$ac_t""yes" 1>&6
13671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13672 cat >> confdefs.h <<EOF
13673 #define $ac_tr_func 1
13674 EOF
13675
13676 else
13677 echo "$ac_t""no" 1>&6
13678 fi
13679 done
13680
13681
13682 ac_ext=c
13683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13684 ac_cpp='$CPP $CPPFLAGS'
13685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13687 cross_compiling=$ac_cv_prog_cc_cross
13688
13689
13690 INET_LINK=
13691 for ac_func in inet_addr
13692 do
13693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13694 echo "configure:13695: checking for $ac_func" >&5
13695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13696 echo $ac_n "(cached) $ac_c" 1>&6
13697 else
13698 cat > conftest.$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13701 /* System header to define __stub macros and hopefully few prototypes,
13702 which can conflict with char $ac_func(); below. */
13703 #include <assert.h>
13704 /* Override any gcc2 internal prototype to avoid an error. */
13705 /* We use char because int might match the return type of a gcc2
13706 builtin and then its argument prototype would still apply. */
13707 char $ac_func();
13708
13709 int main() {
13710
13711 /* The GNU C library defines this for functions which it implements
13712 to always fail with ENOSYS. Some functions are actually named
13713 something starting with __ and the normal name is an alias. */
13714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13715 choke me
13716 #else
13717 $ac_func();
13718 #endif
13719
13720 ; return 0; }
13721 EOF
13722 if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13723 rm -rf conftest*
13724 eval "ac_cv_func_$ac_func=yes"
13725 else
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 eval "ac_cv_func_$ac_func=no"
13730 fi
13731 rm -f conftest*
13732 fi
13733
13734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13735 echo "$ac_t""yes" 1>&6
13736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13737 cat >> confdefs.h <<EOF
13738 #define $ac_tr_func 1
13739 EOF
13740 cat >> confdefs.h <<\EOF
13741 #define HAVE_INET_ADDR 1
13742 EOF
13743
13744 else
13745 echo "$ac_t""no" 1>&6
13746 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13747 echo "configure:13748: checking for inet_addr in -lnsl" >&5
13748 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
13751 else
13752 ac_save_LIBS="$LIBS"
13753 LIBS="-lnsl $LIBS"
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* Override any gcc2 internal prototype to avoid an error. */
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760 char inet_addr();
13761
13762 int main() {
13763 inet_addr()
13764 ; return 0; }
13765 EOF
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13767 rm -rf conftest*
13768 eval "ac_cv_lib_$ac_lib_var=yes"
13769 else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 eval "ac_cv_lib_$ac_lib_var=no"
13774 fi
13775 rm -f conftest*
13776 LIBS="$ac_save_LIBS"
13777
13778 fi
13779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
13781 INET_LINK="nsl"
13782 else
13783 echo "$ac_t""no" 1>&6
13784 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13785 echo "configure:13786: checking for inet_addr in -lresolv" >&5
13786 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13789 else
13790 ac_save_LIBS="$LIBS"
13791 LIBS="-lresolv $LIBS"
13792 cat > conftest.$ac_ext <<EOF
13793 #line 13794 "configure"
13794 #include "confdefs.h"
13795 /* Override any gcc2 internal prototype to avoid an error. */
13796 /* We use char because int might match the return type of a gcc2
13797 builtin and then its argument prototype would still apply. */
13798 char inet_addr();
13799
13800 int main() {
13801 inet_addr()
13802 ; return 0; }
13803 EOF
13804 if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805 rm -rf conftest*
13806 eval "ac_cv_lib_$ac_lib_var=yes"
13807 else
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 rm -rf conftest*
13811 eval "ac_cv_lib_$ac_lib_var=no"
13812 fi
13813 rm -f conftest*
13814 LIBS="$ac_save_LIBS"
13815
13816 fi
13817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13818 echo "$ac_t""yes" 1>&6
13819 INET_LINK="resolv"
13820
13821 else
13822 echo "$ac_t""no" 1>&6
13823 fi
13824
13825
13826 fi
13827
13828
13829
13830 fi
13831 done
13832
13833
13834 for ac_func in inet_aton
13835 do
13836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13837 echo "configure:13838: checking for $ac_func" >&5
13838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840 else
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13844 /* System header to define __stub macros and hopefully few prototypes,
13845 which can conflict with char $ac_func(); below. */
13846 #include <assert.h>
13847 /* Override any gcc2 internal prototype to avoid an error. */
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13850 char $ac_func();
13851
13852 int main() {
13853
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13858 choke me
13859 #else
13860 $ac_func();
13861 #endif
13862
13863 ; return 0; }
13864 EOF
13865 if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13866 rm -rf conftest*
13867 eval "ac_cv_func_$ac_func=yes"
13868 else
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 eval "ac_cv_func_$ac_func=no"
13873 fi
13874 rm -f conftest*
13875 fi
13876
13877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13880 cat >> confdefs.h <<EOF
13881 #define $ac_tr_func 1
13882 EOF
13883 cat >> confdefs.h <<\EOF
13884 #define HAVE_INET_ATON 1
13885 EOF
13886
13887 else
13888 echo "$ac_t""no" 1>&6
13889 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13890 echo "configure:13891: checking for inet_aton in -l$INET_LINK" >&5
13891 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894 else
13895 ac_save_LIBS="$LIBS"
13896 LIBS="-l$INET_LINK $LIBS"
13897 cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13900 /* Override any gcc2 internal prototype to avoid an error. */
13901 /* We use char because int might match the return type of a gcc2
13902 builtin and then its argument prototype would still apply. */
13903 char inet_aton();
13904
13905 int main() {
13906 inet_aton()
13907 ; return 0; }
13908 EOF
13909 if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13910 rm -rf conftest*
13911 eval "ac_cv_lib_$ac_lib_var=yes"
13912 else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
13916 eval "ac_cv_lib_$ac_lib_var=no"
13917 fi
13918 rm -f conftest*
13919 LIBS="$ac_save_LIBS"
13920
13921 fi
13922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13923 echo "$ac_t""yes" 1>&6
13924 cat >> confdefs.h <<\EOF
13925 #define HAVE_INET_ATON 1
13926 EOF
13927
13928 else
13929 echo "$ac_t""no" 1>&6
13930 fi
13931
13932
13933 fi
13934 done
13935
13936
13937 if test "x$INET_LINK" != "x"; then
13938 cat >> confdefs.h <<\EOF
13939 #define HAVE_INET_ADDR 1
13940 EOF
13941
13942 INET_LINK="-l$INET_LINK"
13943 fi
13944
13945 fi
13946
13947
13948 cat > confcache <<\EOF
13949 # This file is a shell script that caches the results of configure
13950 # tests run on this system so they can be shared between configure
13951 # scripts and configure runs. It is not useful on other systems.
13952 # If it contains results you don't want to keep, you may remove or edit it.
13953 #
13954 # By default, configure uses ./config.cache as the cache file,
13955 # creating it if it does not exist already. You can give configure
13956 # the --cache-file=FILE option to use a different cache file; that is
13957 # what configure does when it calls configure scripts in
13958 # subdirectories, so they share the cache.
13959 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13960 # config.status only pays attention to the cache file if you give it the
13961 # --recheck option to rerun configure.
13962 #
13963 EOF
13964 # The following way of writing the cache mishandles newlines in values,
13965 # but we know of no workaround that is simple, portable, and efficient.
13966 # So, don't put newlines in cache variables' values.
13967 # Ultrix sh set writes to stderr and can't be redirected directly,
13968 # and sets the high bit in the cache file unless we assign to the vars.
13969 (set) 2>&1 |
13970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13971 *ac_space=\ *)
13972 # `set' does not quote correctly, so add quotes (double-quote substitution
13973 # turns \\\\ into \\, and sed turns \\ into \).
13974 sed -n \
13975 -e "s/'/'\\\\''/g" \
13976 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13977 ;;
13978 *)
13979 # `set' quotes correctly as required by POSIX, so do not add quotes.
13980 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13981 ;;
13982 esac >> confcache
13983 if cmp -s $cache_file confcache; then
13984 :
13985 else
13986 if test -w $cache_file; then
13987 echo "updating cache $cache_file"
13988 cat confcache > $cache_file
13989 else
13990 echo "not updating unwritable cache $cache_file"
13991 fi
13992 fi
13993 rm -f confcache
13994
13995
13996
13997 if test "$TOOLKIT" != "MSW"; then
13998
13999
14000 THREADS_LINK=""
14001 THREADS_OBJ=""
14002
14003 if test "$wxUSE_THREADS" = "yes" ; then
14004 if test "$wxUSE_WINE" = 1 ; then
14005 echo "configure: warning: Threads are not supported under WINE" 1>&2
14006 wxUSE_THREADS="no"
14007 elif test "$USE_BEOS" = 1; then
14008 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14009 wxUSE_THREADS="no"
14010 fi
14011 fi
14012
14013 if test "$wxUSE_THREADS" = "yes" ; then
14014
14015 if test "$USE_AIX" = 1; then
14016 THREADS_LIB=pthreads
14017 else
14018 THREADS_LIB=pthread
14019 fi
14020
14021 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14022 echo "configure:14023: checking for pthread_create in -l$THREADS_LIB" >&5
14023 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14025 echo $ac_n "(cached) $ac_c" 1>&6
14026 else
14027 ac_save_LIBS="$LIBS"
14028 LIBS="-l$THREADS_LIB $LIBS"
14029 cat > conftest.$ac_ext <<EOF
14030 #line 14031 "configure"
14031 #include "confdefs.h"
14032 /* Override any gcc2 internal prototype to avoid an error. */
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14035 char pthread_create();
14036
14037 int main() {
14038 pthread_create()
14039 ; return 0; }
14040 EOF
14041 if { (eval echo configure:14042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14042 rm -rf conftest*
14043 eval "ac_cv_lib_$ac_lib_var=yes"
14044 else
14045 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14047 rm -rf conftest*
14048 eval "ac_cv_lib_$ac_lib_var=no"
14049 fi
14050 rm -f conftest*
14051 LIBS="$ac_save_LIBS"
14052
14053 fi
14054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14055 echo "$ac_t""yes" 1>&6
14056
14057 THREADS_OBJ="threadpsx.lo"
14058 THREADS_LINK=$THREADS_LIB
14059
14060 else
14061 echo "$ac_t""no" 1>&6
14062
14063 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14064 echo "configure:14065: checking for pthread_create in -lc_r" >&5
14065 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
14068 else
14069 ac_save_LIBS="$LIBS"
14070 LIBS="-lc_r $LIBS"
14071 cat > conftest.$ac_ext <<EOF
14072 #line 14073 "configure"
14073 #include "confdefs.h"
14074 /* Override any gcc2 internal prototype to avoid an error. */
14075 /* We use char because int might match the return type of a gcc2
14076 builtin and then its argument prototype would still apply. */
14077 char pthread_create();
14078
14079 int main() {
14080 pthread_create()
14081 ; return 0; }
14082 EOF
14083 if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14084 rm -rf conftest*
14085 eval "ac_cv_lib_$ac_lib_var=yes"
14086 else
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 rm -rf conftest*
14090 eval "ac_cv_lib_$ac_lib_var=no"
14091 fi
14092 rm -f conftest*
14093 LIBS="$ac_save_LIBS"
14094
14095 fi
14096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14097 echo "$ac_t""yes" 1>&6
14098
14099 THREADS_OBJ="threadpsx.lo"
14100 THREADS_LINK="c_r"
14101
14102 else
14103 echo "$ac_t""no" 1>&6
14104
14105 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14106 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14107 echo "configure:14108: checking for sys/prctl.h" >&5
14108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
14110 else
14111 cat > conftest.$ac_ext <<EOF
14112 #line 14113 "configure"
14113 #include "confdefs.h"
14114 #include <sys/prctl.h>
14115 EOF
14116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14117 { (eval echo configure:14118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14119 if test -z "$ac_err"; then
14120 rm -rf conftest*
14121 eval "ac_cv_header_$ac_safe=yes"
14122 else
14123 echo "$ac_err" >&5
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -rf conftest*
14127 eval "ac_cv_header_$ac_safe=no"
14128 fi
14129 rm -f conftest*
14130 fi
14131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14132 echo "$ac_t""yes" 1>&6
14133
14134 THREADS_OBJ="threadsgi.lo"
14135
14136 else
14137 echo "$ac_t""no" 1>&6
14138 fi
14139
14140
14141 fi
14142
14143
14144 fi
14145
14146
14147 if test -z "$THREADS_OBJ" ; then
14148 wxUSE_THREADS=no
14149 echo "configure: warning: No thread support on this system" 1>&2
14150 fi
14151 fi
14152
14153 if test "$wxUSE_THREADS" = "yes" ; then
14154 for ac_func in thr_setconcurrency
14155 do
14156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14157 echo "configure:14158: checking for $ac_func" >&5
14158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
14160 else
14161 cat > conftest.$ac_ext <<EOF
14162 #line 14163 "configure"
14163 #include "confdefs.h"
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func(); below. */
14166 #include <assert.h>
14167 /* Override any gcc2 internal prototype to avoid an error. */
14168 /* We use char because int might match the return type of a gcc2
14169 builtin and then its argument prototype would still apply. */
14170 char $ac_func();
14171
14172 int main() {
14173
14174 /* The GNU C library defines this for functions which it implements
14175 to always fail with ENOSYS. Some functions are actually named
14176 something starting with __ and the normal name is an alias. */
14177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14178 choke me
14179 #else
14180 $ac_func();
14181 #endif
14182
14183 ; return 0; }
14184 EOF
14185 if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14186 rm -rf conftest*
14187 eval "ac_cv_func_$ac_func=yes"
14188 else
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 rm -rf conftest*
14192 eval "ac_cv_func_$ac_func=no"
14193 fi
14194 rm -f conftest*
14195 fi
14196
14197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14198 echo "$ac_t""yes" 1>&6
14199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14200 cat >> confdefs.h <<EOF
14201 #define $ac_tr_func 1
14202 EOF
14203
14204 else
14205 echo "$ac_t""no" 1>&6
14206 fi
14207 done
14208
14209
14210
14211 for ac_hdr in sched.h
14212 do
14213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14215 echo "configure:14216: checking for $ac_hdr" >&5
14216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14217 echo $ac_n "(cached) $ac_c" 1>&6
14218 else
14219 cat > conftest.$ac_ext <<EOF
14220 #line 14221 "configure"
14221 #include "confdefs.h"
14222 #include <$ac_hdr>
14223 EOF
14224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14225 { (eval echo configure:14226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14227 if test -z "$ac_err"; then
14228 rm -rf conftest*
14229 eval "ac_cv_header_$ac_safe=yes"
14230 else
14231 echo "$ac_err" >&5
14232 echo "configure: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 rm -rf conftest*
14235 eval "ac_cv_header_$ac_safe=no"
14236 fi
14237 rm -f conftest*
14238 fi
14239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14240 echo "$ac_t""yes" 1>&6
14241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14242 cat >> confdefs.h <<EOF
14243 #define $ac_tr_hdr 1
14244 EOF
14245
14246 else
14247 echo "$ac_t""no" 1>&6
14248 fi
14249 done
14250
14251
14252 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14253 echo "configure:14254: checking for sched_yield in -l$THREADS_LINK" >&5
14254 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14257 else
14258 ac_save_LIBS="$LIBS"
14259 LIBS="-l$THREADS_LINK $LIBS"
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14263 /* Override any gcc2 internal prototype to avoid an error. */
14264 /* We use char because int might match the return type of a gcc2
14265 builtin and then its argument prototype would still apply. */
14266 char sched_yield();
14267
14268 int main() {
14269 sched_yield()
14270 ; return 0; }
14271 EOF
14272 if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14273 rm -rf conftest*
14274 eval "ac_cv_lib_$ac_lib_var=yes"
14275 else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_lib_$ac_lib_var=no"
14280 fi
14281 rm -f conftest*
14282 LIBS="$ac_save_LIBS"
14283
14284 fi
14285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14286 echo "$ac_t""yes" 1>&6
14287 cat >> confdefs.h <<\EOF
14288 #define HAVE_SCHED_YIELD 1
14289 EOF
14290
14291 else
14292 echo "$ac_t""no" 1>&6
14293 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14294 echo "configure:14295: checking for sched_yield in -lposix4" >&5
14295 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14297 echo $ac_n "(cached) $ac_c" 1>&6
14298 else
14299 ac_save_LIBS="$LIBS"
14300 LIBS="-lposix4 $LIBS"
14301 cat > conftest.$ac_ext <<EOF
14302 #line 14303 "configure"
14303 #include "confdefs.h"
14304 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14307 char sched_yield();
14308
14309 int main() {
14310 sched_yield()
14311 ; return 0; }
14312 EOF
14313 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314 rm -rf conftest*
14315 eval "ac_cv_lib_$ac_lib_var=yes"
14316 else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 rm -rf conftest*
14320 eval "ac_cv_lib_$ac_lib_var=no"
14321 fi
14322 rm -f conftest*
14323 LIBS="$ac_save_LIBS"
14324
14325 fi
14326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14327 echo "$ac_t""yes" 1>&6
14328 cat >> confdefs.h <<\EOF
14329 #define HAVE_SCHED_YIELD 1
14330 EOF
14331 POSIX4_LINK="-lposix4"
14332 else
14333 echo "$ac_t""no" 1>&6
14334 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14335
14336 fi
14337
14338
14339 fi
14340
14341
14342 HAVE_PRIOR_FUNCS=0
14343 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14344 echo "configure:14345: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14345 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14348 else
14349 ac_save_LIBS="$LIBS"
14350 LIBS="-l$THREADS_LINK $LIBS"
14351 cat > conftest.$ac_ext <<EOF
14352 #line 14353 "configure"
14353 #include "confdefs.h"
14354 /* Override any gcc2 internal prototype to avoid an error. */
14355 /* We use char because int might match the return type of a gcc2
14356 builtin and then its argument prototype would still apply. */
14357 char pthread_attr_getschedpolicy();
14358
14359 int main() {
14360 pthread_attr_getschedpolicy()
14361 ; return 0; }
14362 EOF
14363 if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14364 rm -rf conftest*
14365 eval "ac_cv_lib_$ac_lib_var=yes"
14366 else
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14369 rm -rf conftest*
14370 eval "ac_cv_lib_$ac_lib_var=no"
14371 fi
14372 rm -f conftest*
14373 LIBS="$ac_save_LIBS"
14374
14375 fi
14376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14377 echo "$ac_t""yes" 1>&6
14378 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14379 echo "configure:14380: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14380 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14382 echo $ac_n "(cached) $ac_c" 1>&6
14383 else
14384 ac_save_LIBS="$LIBS"
14385 LIBS="-l$THREADS_LINK $LIBS"
14386 cat > conftest.$ac_ext <<EOF
14387 #line 14388 "configure"
14388 #include "confdefs.h"
14389 /* Override any gcc2 internal prototype to avoid an error. */
14390 /* We use char because int might match the return type of a gcc2
14391 builtin and then its argument prototype would still apply. */
14392 char pthread_attr_setschedparam();
14393
14394 int main() {
14395 pthread_attr_setschedparam()
14396 ; return 0; }
14397 EOF
14398 if { (eval echo configure:14399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14399 rm -rf conftest*
14400 eval "ac_cv_lib_$ac_lib_var=yes"
14401 else
14402 echo "configure: failed program was:" >&5
14403 cat conftest.$ac_ext >&5
14404 rm -rf conftest*
14405 eval "ac_cv_lib_$ac_lib_var=no"
14406 fi
14407 rm -f conftest*
14408 LIBS="$ac_save_LIBS"
14409
14410 fi
14411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14412 echo "$ac_t""yes" 1>&6
14413 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14414 echo "configure:14415: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14415 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14417 echo $ac_n "(cached) $ac_c" 1>&6
14418 else
14419 ac_save_LIBS="$LIBS"
14420 LIBS="-l$THREADS_LINK $LIBS"
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.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. */
14427 char sched_get_priority_max();
14428
14429 int main() {
14430 sched_get_priority_max()
14431 ; return 0; }
14432 EOF
14433 if { (eval echo configure:14434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14434 rm -rf conftest*
14435 eval "ac_cv_lib_$ac_lib_var=yes"
14436 else
14437 echo "configure: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 rm -rf conftest*
14440 eval "ac_cv_lib_$ac_lib_var=no"
14441 fi
14442 rm -f conftest*
14443 LIBS="$ac_save_LIBS"
14444
14445 fi
14446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14447 echo "$ac_t""yes" 1>&6
14448 HAVE_PRIOR_FUNCS=1
14449 else
14450 echo "$ac_t""no" 1>&6
14451 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14452 echo "configure:14453: checking for sched_get_priority_max in -lposix4" >&5
14453 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14455 echo $ac_n "(cached) $ac_c" 1>&6
14456 else
14457 ac_save_LIBS="$LIBS"
14458 LIBS="-lposix4 $LIBS"
14459 cat > conftest.$ac_ext <<EOF
14460 #line 14461 "configure"
14461 #include "confdefs.h"
14462 /* Override any gcc2 internal prototype to avoid an error. */
14463 /* We use char because int might match the return type of a gcc2
14464 builtin and then its argument prototype would still apply. */
14465 char sched_get_priority_max();
14466
14467 int main() {
14468 sched_get_priority_max()
14469 ; return 0; }
14470 EOF
14471 if { (eval echo configure:14472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14472 rm -rf conftest*
14473 eval "ac_cv_lib_$ac_lib_var=yes"
14474 else
14475 echo "configure: failed program was:" >&5
14476 cat conftest.$ac_ext >&5
14477 rm -rf conftest*
14478 eval "ac_cv_lib_$ac_lib_var=no"
14479 fi
14480 rm -f conftest*
14481 LIBS="$ac_save_LIBS"
14482
14483 fi
14484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14485 echo "$ac_t""yes" 1>&6
14486
14487 HAVE_PRIOR_FUNCS=1
14488 POSIX4_LINK="-lposix4"
14489
14490 else
14491 echo "$ac_t""no" 1>&6
14492 fi
14493
14494
14495 fi
14496
14497
14498 else
14499 echo "$ac_t""no" 1>&6
14500 fi
14501
14502
14503 else
14504 echo "$ac_t""no" 1>&6
14505 fi
14506
14507
14508 if test "$HAVE_PRIOR_FUNCS" = 1; then
14509 cat >> confdefs.h <<\EOF
14510 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14511 EOF
14512
14513 else
14514 echo "configure: warning: Setting thread priority will not work" 1>&2
14515 fi
14516
14517 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14518 echo "configure:14519: checking for pthread_cancel in -l$THREADS_LINK" >&5
14519 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
14522 else
14523 ac_save_LIBS="$LIBS"
14524 LIBS="-l$THREADS_LINK $LIBS"
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 /* Override any gcc2 internal prototype to avoid an error. */
14529 /* We use char because int might match the return type of a gcc2
14530 builtin and then its argument prototype would still apply. */
14531 char pthread_cancel();
14532
14533 int main() {
14534 pthread_cancel()
14535 ; return 0; }
14536 EOF
14537 if { (eval echo configure:14538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14538 rm -rf conftest*
14539 eval "ac_cv_lib_$ac_lib_var=yes"
14540 else
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544 eval "ac_cv_lib_$ac_lib_var=no"
14545 fi
14546 rm -f conftest*
14547 LIBS="$ac_save_LIBS"
14548
14549 fi
14550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14551 echo "$ac_t""yes" 1>&6
14552 cat >> confdefs.h <<\EOF
14553 #define HAVE_PTHREAD_CANCEL 1
14554 EOF
14555
14556 else
14557 echo "$ac_t""no" 1>&6
14558 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14559 fi
14560
14561
14562 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14563 echo "configure:14564: checking for pthread_cleanup_push/pop" >&5
14564 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14565 echo $ac_n "(cached) $ac_c" 1>&6
14566 else
14567
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 #include <pthread.h>
14572 int main() {
14573
14574 pthread_cleanup_push(NULL, NULL);
14575 pthread_cleanup_pop(0);
14576
14577 ; return 0; }
14578 EOF
14579 if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14580 rm -rf conftest*
14581
14582 wx_cv_func_pthread_cleanup_push=yes
14583
14584 else
14585 echo "configure: failed program was:" >&5
14586 cat conftest.$ac_ext >&5
14587 rm -rf conftest*
14588
14589 wx_cv_func_pthread_cleanup_push=no
14590
14591 fi
14592 rm -f conftest*
14593
14594 fi
14595
14596 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14597
14598 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14599 cat >> confdefs.h <<\EOF
14600 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14601 EOF
14602
14603 fi
14604
14605
14606 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14607 echo "configure:14608: checking for pthread_mutexattr_t" >&5
14608 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610 else
14611
14612 cat > conftest.$ac_ext <<EOF
14613 #line 14614 "configure"
14614 #include "confdefs.h"
14615 #include <pthread.h>
14616 int main() {
14617
14618 pthread_mutexattr_t attr;
14619 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14620
14621 ; return 0; }
14622 EOF
14623 if { (eval echo configure:14624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14624 rm -rf conftest*
14625
14626 wx_cv_type_pthread_mutexattr_t=yes
14627
14628 else
14629 echo "configure: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14631 rm -rf conftest*
14632
14633 wx_cv_type_pthread_mutexattr_t=no
14634
14635
14636 fi
14637 rm -f conftest*
14638
14639 fi
14640
14641 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14642
14643 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14644 cat >> confdefs.h <<\EOF
14645 #define HAVE_PTHREAD_MUTEXATTR_T 1
14646 EOF
14647
14648 else
14649 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14650 echo "configure:14651: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14651 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14652 echo $ac_n "(cached) $ac_c" 1>&6
14653 else
14654
14655 cat > conftest.$ac_ext <<EOF
14656 #line 14657 "configure"
14657 #include "confdefs.h"
14658 #include <pthread.h>
14659 int main() {
14660
14661 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14662
14663 ; return 0; }
14664 EOF
14665 if { (eval echo configure:14666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14666 rm -rf conftest*
14667
14668 wx_cv_type_pthread_rec_mutex_init=yes
14669
14670 else
14671 echo "configure: failed program was:" >&5
14672 cat conftest.$ac_ext >&5
14673 rm -rf conftest*
14674
14675 wx_cv_type_pthread_rec_mutex_init=no
14676
14677
14678 fi
14679 rm -f conftest*
14680
14681 fi
14682
14683 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14684 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14685 cat >> confdefs.h <<\EOF
14686 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14687 EOF
14688
14689 else
14690 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14691 fi
14692 fi
14693
14694 THREADS_LINK="-l$THREADS_LINK"
14695
14696 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14697 CFLAGS="${CFLAGS} -mt"
14698 CXXFLAGS="${CXXFLAGS} -mt"
14699 LDFLAGS="${LDFLAGS} -mt"
14700 fi
14701 fi
14702
14703 fi
14704
14705 if test "$wxUSE_THREADS" = "yes"; then
14706 cat >> confdefs.h <<\EOF
14707 #define wxUSE_THREADS 1
14708 EOF
14709
14710
14711 if test "$USE_DARWIN" != 1; then
14712 CFLAGS="${CFLAGS} -D_REENTRANT"
14713 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14714 fi
14715
14716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14717 else
14718 if test "$ac_cv_func_strtok_r" = "yes"; then
14719 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14720 echo "configure:14721: checking if -D_REENTRANT is needed" >&5
14721 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14722 CFLAGS="${CFLAGS} -D_REENTRANT"
14723 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14724 echo "$ac_t""yes" 1>&6
14725 else
14726 echo "$ac_t""no" 1>&6
14727 fi
14728 fi
14729 fi
14730
14731 if test "$WXGTK20" = 1 ; then
14732 cat >> confdefs.h <<EOF
14733 #define __WXGTK20__ $WXGTK20
14734 EOF
14735
14736 WXGTK12=1
14737 fi
14738
14739 if test "$WXGTK12" = 1 ; then
14740 cat >> confdefs.h <<EOF
14741 #define __WXGTK12__ $WXGTK12
14742 EOF
14743
14744 fi
14745
14746 if test "$WXGTK127" = 1 ; then
14747 cat >> confdefs.h <<EOF
14748 #define __WXGTK127__ $WXGTK127
14749 EOF
14750
14751 fi
14752
14753 if test "$WXWINE" = 1 ; then
14754 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14755 fi
14756
14757 if test "$wxUSE_MAC" = 1 ; then
14758 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14759 CFLAGS="${CFLAGS} -fpascal-strings"
14760 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
14761 # Extract the first word of "Rez", so it can be a program name with args.
14762 set dummy Rez; ac_word=$2
14763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14764 echo "configure:14765: checking for $ac_word" >&5
14765 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14766 echo $ac_n "(cached) $ac_c" 1>&6
14767 else
14768 if test -n "$REZ"; then
14769 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14770 else
14771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14772 ac_dummy="$PATH"
14773 for ac_dir in $ac_dummy; do
14774 test -z "$ac_dir" && ac_dir=.
14775 if test -f $ac_dir/$ac_word; then
14776 ac_cv_prog_REZ="Rez"
14777 break
14778 fi
14779 done
14780 IFS="$ac_save_ifs"
14781 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14782 fi
14783 fi
14784 REZ="$ac_cv_prog_REZ"
14785 if test -n "$REZ"; then
14786 echo "$ac_t""$REZ" 1>&6
14787 else
14788 echo "$ac_t""no" 1>&6
14789 fi
14790
14791 # Extract the first word of "Derez", so it can be a program name with args.
14792 set dummy Derez; ac_word=$2
14793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14794 echo "configure:14795: checking for $ac_word" >&5
14795 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14796 echo $ac_n "(cached) $ac_c" 1>&6
14797 else
14798 if test -n "$DEREZ"; then
14799 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14800 else
14801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14802 ac_dummy="$PATH"
14803 for ac_dir in $ac_dummy; do
14804 test -z "$ac_dir" && ac_dir=.
14805 if test -f $ac_dir/$ac_word; then
14806 ac_cv_prog_DEREZ="Derez"
14807 break
14808 fi
14809 done
14810 IFS="$ac_save_ifs"
14811 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14812 fi
14813 fi
14814 DEREZ="$ac_cv_prog_DEREZ"
14815 if test -n "$DEREZ"; then
14816 echo "$ac_t""$DEREZ" 1>&6
14817 else
14818 echo "$ac_t""no" 1>&6
14819 fi
14820
14821 RESCOMP=${REZ}
14822 REZFLAGS="-d __UNIX__ -useDF"
14823 DEREZFLAGS="Carbon.r -useDF"
14824 RESFLAGS="Carbon.r -t APPL"
14825 LIBWXMACRES="\$(LIBWX_MACRES)"
14826 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14827 fi
14828
14829 if test "$wxUSE_CYGWIN" = 1 ; then
14830 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14831 fi
14832
14833 WXDEBUG=
14834
14835 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14836 WXDEBUG="-g"
14837 wxUSE_OPTIMISE=no
14838 fi
14839
14840 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14841 wxUSE_DEBUG_INFO=yes
14842 WXDEBUG="-ggdb"
14843 fi
14844
14845 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14846 cat >> confdefs.h <<\EOF
14847 #define WXDEBUG 1
14848 EOF
14849
14850 WXDEBUG_DEFINE="-D__WXDEBUG__"
14851 else
14852 if test "$wxUSE_GTK" = 1 ; then
14853 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14854 fi
14855 fi
14856
14857 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14858 cat >> confdefs.h <<\EOF
14859 #define wxUSE_MEMORY_TRACING 1
14860 EOF
14861
14862 cat >> confdefs.h <<\EOF
14863 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14864 EOF
14865
14866 cat >> confdefs.h <<\EOF
14867 #define wxUSE_DEBUG_NEW_ALWAYS 1
14868 EOF
14869
14870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14871 fi
14872
14873 if test "$wxUSE_DMALLOC" = "yes" ; then
14874 DMALLOC_LINK="-ldmalloc"
14875 fi
14876
14877 PROFILE=
14878 if test "$wxUSE_PROFILE" = "yes" ; then
14879 PROFILE="-pg"
14880 fi
14881
14882 DEP_INFO_FLAGS=
14883 CODE_GEN_FLAGS=
14884 CODE_GEN_FLAGS_CXX=
14885 if test "$GCC" = yes ; then
14886 if test "$wxUSE_NO_RTTI" = "yes" ; then
14887 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14888 fi
14889 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14890 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14891 fi
14892 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14893 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14894 fi
14895 if test "$wxUSE_NO_DEPS" = "no" ; then
14896 DEP_INFO_FLAGS="-MMD"
14897 fi
14898 fi
14899
14900
14901 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14902 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14903 if test "$wxUSE_OPTIMISE" = "no" ; then
14904 OPTIMISE=
14905 else
14906 if test "$GCC" = yes ; then
14907 OPTIMISE="-O2"
14908 case "${host}" in
14909 i586-*-*|i686-*-* )
14910 OPTIMISE="${OPTIMISE} "
14911 ;;
14912 esac
14913 else
14914 OPTIMISE="-O"
14915 fi
14916 fi
14917
14918 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14919 cat >> confdefs.h <<\EOF
14920 #define WXWIN_COMPATIBILITY_2 1
14921 EOF
14922
14923
14924 WXWIN_COMPATIBILITY_2_2="yes"
14925 fi
14926
14927 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14928 cat >> confdefs.h <<\EOF
14929 #define WXWIN_COMPATIBILITY_2_2 1
14930 EOF
14931
14932 fi
14933
14934
14935 REGEX_INCLUDE=
14936 if test "$wxUSE_REGEX" != "no"; then
14937 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14938 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
14939 echo "configure:14940: checking for regex.h" >&5
14940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14941 echo $ac_n "(cached) $ac_c" 1>&6
14942 else
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14946 #include <regex.h>
14947 EOF
14948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14949 { (eval echo configure:14950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14951 if test -z "$ac_err"; then
14952 rm -rf conftest*
14953 eval "ac_cv_header_$ac_safe=yes"
14954 else
14955 echo "$ac_err" >&5
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 rm -rf conftest*
14959 eval "ac_cv_header_$ac_safe=no"
14960 fi
14961 rm -f conftest*
14962 fi
14963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
14965 for ac_func in regcomp
14966 do
14967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14968 echo "configure:14969: checking for $ac_func" >&5
14969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14971 else
14972 cat > conftest.$ac_ext <<EOF
14973 #line 14974 "configure"
14974 #include "confdefs.h"
14975 /* System header to define __stub macros and hopefully few prototypes,
14976 which can conflict with char $ac_func(); below. */
14977 #include <assert.h>
14978 /* Override any gcc2 internal prototype to avoid an error. */
14979 /* We use char because int might match the return type of a gcc2
14980 builtin and then its argument prototype would still apply. */
14981 char $ac_func();
14982
14983 int main() {
14984
14985 /* The GNU C library defines this for functions which it implements
14986 to always fail with ENOSYS. Some functions are actually named
14987 something starting with __ and the normal name is an alias. */
14988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14989 choke me
14990 #else
14991 $ac_func();
14992 #endif
14993
14994 ; return 0; }
14995 EOF
14996 if { (eval echo configure:14997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14997 rm -rf conftest*
14998 eval "ac_cv_func_$ac_func=yes"
14999 else
15000 echo "configure: failed program was:" >&5
15001 cat conftest.$ac_ext >&5
15002 rm -rf conftest*
15003 eval "ac_cv_func_$ac_func=no"
15004 fi
15005 rm -f conftest*
15006 fi
15007
15008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15009 echo "$ac_t""yes" 1>&6
15010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15011 cat >> confdefs.h <<EOF
15012 #define $ac_tr_func 1
15013 EOF
15014
15015 else
15016 echo "$ac_t""no" 1>&6
15017 fi
15018 done
15019
15020 else
15021 echo "$ac_t""no" 1>&6
15022 fi
15023
15024
15025 if test "x$ac_cv_func_regcomp" != "xyes"; then
15026 if test "$wxUSE_REGEX" = "sys"; then
15027 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
15028 fi
15029
15030 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
15031 fi
15032
15033 cat >> confdefs.h <<\EOF
15034 #define wxUSE_REGEX 1
15035 EOF
15036
15037 fi
15038
15039 ZLIB_INCLUDE=
15040 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15041 cat >> confdefs.h <<\EOF
15042 #define wxUSE_ZLIB 1
15043 EOF
15044
15045 if test "$wxUSE_ZLIB" = "yes" ; then
15046 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15047 else
15048 ZLIB_LINK=
15049 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15050 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15051 echo "configure:15052: checking for zlib.h" >&5
15052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15053 echo $ac_n "(cached) $ac_c" 1>&6
15054 else
15055 cat > conftest.$ac_ext <<EOF
15056 #line 15057 "configure"
15057 #include "confdefs.h"
15058 #include <zlib.h>
15059 EOF
15060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15061 { (eval echo configure:15062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15063 if test -z "$ac_err"; then
15064 rm -rf conftest*
15065 eval "ac_cv_header_$ac_safe=yes"
15066 else
15067 echo "$ac_err" >&5
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 rm -rf conftest*
15071 eval "ac_cv_header_$ac_safe=no"
15072 fi
15073 rm -f conftest*
15074 fi
15075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15076 echo "$ac_t""yes" 1>&6
15077 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15078 echo "configure:15079: checking for deflate in -lz" >&5
15079 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15081 echo $ac_n "(cached) $ac_c" 1>&6
15082 else
15083 ac_save_LIBS="$LIBS"
15084 LIBS="-lz $LIBS"
15085 cat > conftest.$ac_ext <<EOF
15086 #line 15087 "configure"
15087 #include "confdefs.h"
15088 /* Override any gcc2 internal prototype to avoid an error. */
15089 /* We use char because int might match the return type of a gcc2
15090 builtin and then its argument prototype would still apply. */
15091 char deflate();
15092
15093 int main() {
15094 deflate()
15095 ; return 0; }
15096 EOF
15097 if { (eval echo configure:15098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15098 rm -rf conftest*
15099 eval "ac_cv_lib_$ac_lib_var=yes"
15100 else
15101 echo "configure: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15103 rm -rf conftest*
15104 eval "ac_cv_lib_$ac_lib_var=no"
15105 fi
15106 rm -f conftest*
15107 LIBS="$ac_save_LIBS"
15108
15109 fi
15110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15111 echo "$ac_t""yes" 1>&6
15112 ZLIB_LINK="-lz"
15113 else
15114 echo "$ac_t""no" 1>&6
15115 fi
15116
15117 else
15118 echo "$ac_t""no" 1>&6
15119 fi
15120
15121 if test "x$ZLIB_LINK" = "x" ; then
15122 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15123 fi
15124 fi
15125 fi
15126
15127 PNG_INCLUDE=
15128 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15129 cat >> confdefs.h <<\EOF
15130 #define wxUSE_LIBPNG 1
15131 EOF
15132
15133 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15134 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15135 wxUSE_LIBPNG=yes
15136 fi
15137
15138 if test "$wxUSE_LIBPNG" = "yes" ; then
15139 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15140 else
15141 PNG_LINK=
15142 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15143 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15144 echo "configure:15145: checking for png.h" >&5
15145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15146 echo $ac_n "(cached) $ac_c" 1>&6
15147 else
15148 cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 #include <png.h>
15152 EOF
15153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15154 { (eval echo configure:15155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15156 if test -z "$ac_err"; then
15157 rm -rf conftest*
15158 eval "ac_cv_header_$ac_safe=yes"
15159 else
15160 echo "$ac_err" >&5
15161 echo "configure: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 rm -rf conftest*
15164 eval "ac_cv_header_$ac_safe=no"
15165 fi
15166 rm -f conftest*
15167 fi
15168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15169 echo "$ac_t""yes" 1>&6
15170 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15171 echo "configure:15172: checking for png_check_sig in -lpng" >&5
15172 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15175 else
15176 ac_save_LIBS="$LIBS"
15177 LIBS="-lpng -lz -lm $LIBS"
15178 cat > conftest.$ac_ext <<EOF
15179 #line 15180 "configure"
15180 #include "confdefs.h"
15181 /* Override any gcc2 internal prototype to avoid an error. */
15182 /* We use char because int might match the return type of a gcc2
15183 builtin and then its argument prototype would still apply. */
15184 char png_check_sig();
15185
15186 int main() {
15187 png_check_sig()
15188 ; return 0; }
15189 EOF
15190 if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15191 rm -rf conftest*
15192 eval "ac_cv_lib_$ac_lib_var=yes"
15193 else
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 rm -rf conftest*
15197 eval "ac_cv_lib_$ac_lib_var=no"
15198 fi
15199 rm -f conftest*
15200 LIBS="$ac_save_LIBS"
15201
15202 fi
15203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15204 echo "$ac_t""yes" 1>&6
15205 PNG_LINK="-lpng"
15206 else
15207 echo "$ac_t""no" 1>&6
15208 fi
15209
15210
15211 else
15212 echo "$ac_t""no" 1>&6
15213 fi
15214
15215 if test "x$PNG_LINK" = "x" ; then
15216 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15217 fi
15218 fi
15219
15220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15221 fi
15222
15223 JPEG_INCLUDE=
15224 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15225 cat >> confdefs.h <<\EOF
15226 #define wxUSE_LIBJPEG 1
15227 EOF
15228
15229 if test "$wxUSE_LIBJPEG" = "yes" ; then
15230 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15231 else
15232 JPEG_LINK=
15233 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15234 echo "configure:15235: checking for jpeglib.h" >&5
15235 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
15237 else
15238 cat > conftest.$ac_ext <<EOF
15239 #line 15240 "configure"
15240 #include "confdefs.h"
15241
15242 #undef HAVE_STDLIB_H
15243 #include <stdio.h>
15244 #include <jpeglib.h>
15245
15246 int main() {
15247
15248
15249 ; return 0; }
15250 EOF
15251 if { (eval echo configure:15252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15252 rm -rf conftest*
15253 ac_cv_header_jpeglib_h=yes
15254 else
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15257 rm -rf conftest*
15258 ac_cv_header_jpeglib_h=no
15259
15260 fi
15261 rm -f conftest*
15262
15263 fi
15264
15265 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15266
15267 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15268 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15269 echo "configure:15270: checking for jpeg_read_header in -ljpeg" >&5
15270 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15272 echo $ac_n "(cached) $ac_c" 1>&6
15273 else
15274 ac_save_LIBS="$LIBS"
15275 LIBS="-ljpeg $LIBS"
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 /* Override any gcc2 internal prototype to avoid an error. */
15280 /* We use char because int might match the return type of a gcc2
15281 builtin and then its argument prototype would still apply. */
15282 char jpeg_read_header();
15283
15284 int main() {
15285 jpeg_read_header()
15286 ; return 0; }
15287 EOF
15288 if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15289 rm -rf conftest*
15290 eval "ac_cv_lib_$ac_lib_var=yes"
15291 else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 eval "ac_cv_lib_$ac_lib_var=no"
15296 fi
15297 rm -f conftest*
15298 LIBS="$ac_save_LIBS"
15299
15300 fi
15301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15302 echo "$ac_t""yes" 1>&6
15303 JPEG_LINK="-ljpeg"
15304 else
15305 echo "$ac_t""no" 1>&6
15306 fi
15307
15308 fi
15309
15310 if test "x$JPEG_LINK" = "x" ; then
15311 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15312 fi
15313 fi
15314 fi
15315
15316 TIFF_INCLUDE=
15317 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15318 cat >> confdefs.h <<\EOF
15319 #define wxUSE_LIBTIFF 1
15320 EOF
15321
15322 if test "$wxUSE_LIBTIFF" = "yes" ; then
15323 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15324 else
15325 TIFF_LINK=
15326 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15327 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15328 echo "configure:15329: checking for tiffio.h" >&5
15329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15330 echo $ac_n "(cached) $ac_c" 1>&6
15331 else
15332 cat > conftest.$ac_ext <<EOF
15333 #line 15334 "configure"
15334 #include "confdefs.h"
15335 #include <tiffio.h>
15336 EOF
15337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15338 { (eval echo configure:15339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15340 if test -z "$ac_err"; then
15341 rm -rf conftest*
15342 eval "ac_cv_header_$ac_safe=yes"
15343 else
15344 echo "$ac_err" >&5
15345 echo "configure: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15347 rm -rf conftest*
15348 eval "ac_cv_header_$ac_safe=no"
15349 fi
15350 rm -f conftest*
15351 fi
15352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15353 echo "$ac_t""yes" 1>&6
15354 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15355 echo "configure:15356: checking for TIFFError in -ltiff" >&5
15356 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
15359 else
15360 ac_save_LIBS="$LIBS"
15361 LIBS="-ltiff -lm $LIBS"
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 /* Override any gcc2 internal prototype to avoid an error. */
15366 /* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368 char TIFFError();
15369
15370 int main() {
15371 TIFFError()
15372 ; return 0; }
15373 EOF
15374 if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15375 rm -rf conftest*
15376 eval "ac_cv_lib_$ac_lib_var=yes"
15377 else
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381 eval "ac_cv_lib_$ac_lib_var=no"
15382 fi
15383 rm -f conftest*
15384 LIBS="$ac_save_LIBS"
15385
15386 fi
15387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15388 echo "$ac_t""yes" 1>&6
15389 TIFF_LINK="-ltiff"
15390 else
15391 echo "$ac_t""no" 1>&6
15392 fi
15393
15394 else
15395 echo "$ac_t""no" 1>&6
15396 fi
15397
15398 if test "x$TIFF_LINK" = "x" ; then
15399 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15400 fi
15401 fi
15402 fi
15403
15404 FREETYPE_INCLUDE=
15405 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15406 cat >> confdefs.h <<\EOF
15407 #define wxUSE_FREETYPE 1
15408 EOF
15409
15410 if test "$wxUSE_FREETYPE" = "yes" ; then
15411 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15412 else
15413 FREETYPE_LINK=
15414 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15415 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15416 echo "configure:15417: checking for freetype.h" >&5
15417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 #include <freetype.h>
15424 EOF
15425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15426 { (eval echo configure:15427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15428 if test -z "$ac_err"; then
15429 rm -rf conftest*
15430 eval "ac_cv_header_$ac_safe=yes"
15431 else
15432 echo "$ac_err" >&5
15433 echo "configure: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 rm -rf conftest*
15436 eval "ac_cv_header_$ac_safe=no"
15437 fi
15438 rm -f conftest*
15439 fi
15440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15441 echo "$ac_t""yes" 1>&6
15442 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15443 echo "configure:15444: checking for FT_Render_Glyph in -lfreetype" >&5
15444 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
15447 else
15448 ac_save_LIBS="$LIBS"
15449 LIBS="-lfreetype -lm $LIBS"
15450 cat > conftest.$ac_ext <<EOF
15451 #line 15452 "configure"
15452 #include "confdefs.h"
15453 /* Override any gcc2 internal prototype to avoid an error. */
15454 /* We use char because int might match the return type of a gcc2
15455 builtin and then its argument prototype would still apply. */
15456 char FT_Render_Glyph();
15457
15458 int main() {
15459 FT_Render_Glyph()
15460 ; return 0; }
15461 EOF
15462 if { (eval echo configure:15463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15463 rm -rf conftest*
15464 eval "ac_cv_lib_$ac_lib_var=yes"
15465 else
15466 echo "configure: failed program was:" >&5
15467 cat conftest.$ac_ext >&5
15468 rm -rf conftest*
15469 eval "ac_cv_lib_$ac_lib_var=no"
15470 fi
15471 rm -f conftest*
15472 LIBS="$ac_save_LIBS"
15473
15474 fi
15475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15476 echo "$ac_t""yes" 1>&6
15477 FREETYPE_LINK="-lfreetype"
15478 else
15479 echo "$ac_t""no" 1>&6
15480 fi
15481
15482
15483 else
15484 echo "$ac_t""no" 1>&6
15485 fi
15486
15487 if test "x$FREETYPE_LINK" = "x" ; then
15488 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15489 fi
15490 fi
15491 fi
15492
15493 if test "$wxUSE_OPENGL" = "yes"; then
15494 if test "$wxUSE_MAC" = 1; then
15495 cat >> confdefs.h <<\EOF
15496 #define wxUSE_OPENGL 1
15497 EOF
15498
15499 cat >> confdefs.h <<\EOF
15500 #define wxUSE_GLCANVAS 1
15501 EOF
15502
15503 OPENGL_LINK="-framework OpenGL -framework AGL"
15504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15505 else
15506 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15507 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15508 echo "configure:15509: checking for GL/gl.h" >&5
15509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15510 echo $ac_n "(cached) $ac_c" 1>&6
15511 else
15512 cat > conftest.$ac_ext <<EOF
15513 #line 15514 "configure"
15514 #include "confdefs.h"
15515 #include <GL/gl.h>
15516 EOF
15517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15518 { (eval echo configure:15519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15520 if test -z "$ac_err"; then
15521 rm -rf conftest*
15522 eval "ac_cv_header_$ac_safe=yes"
15523 else
15524 echo "$ac_err" >&5
15525 echo "configure: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 rm -rf conftest*
15528 eval "ac_cv_header_$ac_safe=no"
15529 fi
15530 rm -f conftest*
15531 fi
15532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15533 echo "$ac_t""yes" 1>&6
15534
15535 cat >> confdefs.h <<\EOF
15536 #define wxUSE_OPENGL 1
15537 EOF
15538
15539 cat >> confdefs.h <<\EOF
15540 #define wxUSE_GLCANVAS 1
15541 EOF
15542
15543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15544 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15545 echo "configure:15546: checking for glFlush in -lGL" >&5
15546 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
15549 else
15550 ac_save_LIBS="$LIBS"
15551 LIBS="-lGL $LIBS"
15552 cat > conftest.$ac_ext <<EOF
15553 #line 15554 "configure"
15554 #include "confdefs.h"
15555 /* Override any gcc2 internal prototype to avoid an error. */
15556 /* We use char because int might match the return type of a gcc2
15557 builtin and then its argument prototype would still apply. */
15558 char glFlush();
15559
15560 int main() {
15561 glFlush()
15562 ; return 0; }
15563 EOF
15564 if { (eval echo configure:15565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15565 rm -rf conftest*
15566 eval "ac_cv_lib_$ac_lib_var=yes"
15567 else
15568 echo "configure: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 rm -rf conftest*
15571 eval "ac_cv_lib_$ac_lib_var=no"
15572 fi
15573 rm -f conftest*
15574 LIBS="$ac_save_LIBS"
15575
15576 fi
15577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15578 echo "$ac_t""yes" 1>&6
15579
15580 OPENGL_LINK="-lGL -lGLU"
15581
15582 else
15583 echo "$ac_t""no" 1>&6
15584
15585 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15586 echo "configure:15587: checking for glFlush in -lMesaGL" >&5
15587 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
15590 else
15591 ac_save_LIBS="$LIBS"
15592 LIBS="-lMesaGL $LIBS"
15593 cat > conftest.$ac_ext <<EOF
15594 #line 15595 "configure"
15595 #include "confdefs.h"
15596 /* Override any gcc2 internal prototype to avoid an error. */
15597 /* We use char because int might match the return type of a gcc2
15598 builtin and then its argument prototype would still apply. */
15599 char glFlush();
15600
15601 int main() {
15602 glFlush()
15603 ; return 0; }
15604 EOF
15605 if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15606 rm -rf conftest*
15607 eval "ac_cv_lib_$ac_lib_var=yes"
15608 else
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 rm -rf conftest*
15612 eval "ac_cv_lib_$ac_lib_var=no"
15613 fi
15614 rm -f conftest*
15615 LIBS="$ac_save_LIBS"
15616
15617 fi
15618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15619 echo "$ac_t""yes" 1>&6
15620
15621 OPENGL_LINK="-lMesaGL -lMesaGLU"
15622
15623 else
15624 echo "$ac_t""no" 1>&6
15625 fi
15626
15627
15628 fi
15629
15630
15631 else
15632 echo "$ac_t""no" 1>&6
15633 wxUSE_OPENGL=0
15634 fi
15635
15636 fi
15637 fi
15638
15639
15640 if test "$wxUSE_GUI" = "yes"; then
15641 cat >> confdefs.h <<\EOF
15642 #define wxUSE_GUI 1
15643 EOF
15644
15645
15646 else
15647 cat >> confdefs.h <<\EOF
15648 #define wxUSE_NOGUI 1
15649 EOF
15650
15651 fi
15652
15653
15654 if test "$wxUSE_UNIX" = "yes"; then
15655 cat >> confdefs.h <<\EOF
15656 #define wxUSE_UNIX 1
15657 EOF
15658
15659 fi
15660
15661
15662 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15663 cat >> confdefs.h <<\EOF
15664 #define wxUSE_APPLE_IEEE 1
15665 EOF
15666
15667 fi
15668
15669 if test "$wxUSE_TIMER" = "yes"; then
15670 cat >> confdefs.h <<\EOF
15671 #define wxUSE_TIMER 1
15672 EOF
15673
15674 fi
15675
15676 if test "$wxUSE_WAVE" = "yes"; then
15677 cat >> confdefs.h <<\EOF
15678 #define wxUSE_WAVE 1
15679 EOF
15680
15681 fi
15682
15683 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15684 cat >> confdefs.h <<\EOF
15685 #define wxUSE_CMDLINE_PARSER 1
15686 EOF
15687
15688 fi
15689
15690 if test "$wxUSE_STOPWATCH" = "yes"; then
15691 cat >> confdefs.h <<\EOF
15692 #define wxUSE_STOPWATCH 1
15693 EOF
15694
15695 fi
15696
15697 if test "$wxUSE_DATETIME" = "yes"; then
15698 cat >> confdefs.h <<\EOF
15699 #define wxUSE_DATETIME 1
15700 EOF
15701
15702 fi
15703
15704 if test "$wxUSE_TIMEDATE" = "yes"; then
15705 cat >> confdefs.h <<\EOF
15706 #define wxUSE_TIMEDATE 1
15707 EOF
15708
15709 fi
15710
15711 if test "$wxUSE_FILE" = "yes"; then
15712 cat >> confdefs.h <<\EOF
15713 #define wxUSE_FILE 1
15714 EOF
15715
15716 fi
15717
15718 if test "$wxUSE_FFILE" = "yes"; then
15719 cat >> confdefs.h <<\EOF
15720 #define wxUSE_FFILE 1
15721 EOF
15722
15723 fi
15724
15725 if test "$wxUSE_FILESYSTEM" = "yes"; then
15726 cat >> confdefs.h <<\EOF
15727 #define wxUSE_FILESYSTEM 1
15728 EOF
15729
15730 fi
15731
15732 if test "$wxUSE_FS_INET" = "yes"; then
15733 cat >> confdefs.h <<\EOF
15734 #define wxUSE_FS_INET 1
15735 EOF
15736
15737 fi
15738
15739 if test "$wxUSE_FS_ZIP" = "yes"; then
15740 cat >> confdefs.h <<\EOF
15741 #define wxUSE_FS_ZIP 1
15742 EOF
15743
15744 fi
15745
15746 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15747 cat >> confdefs.h <<\EOF
15748 #define wxUSE_ZIPSTREAM 1
15749 EOF
15750
15751 fi
15752
15753 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15754 cat >> confdefs.h <<\EOF
15755 #define wxUSE_ON_FATAL_EXCEPTION 1
15756 EOF
15757
15758 fi
15759
15760 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15761 cat >> confdefs.h <<\EOF
15762 #define wxUSE_SNGLINST_CHECKER 1
15763 EOF
15764
15765 fi
15766
15767 if test "$wxUSE_BUSYINFO" = "yes"; then
15768 cat >> confdefs.h <<\EOF
15769 #define wxUSE_BUSYINFO 1
15770 EOF
15771
15772 fi
15773
15774 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15775 cat >> confdefs.h <<\EOF
15776 #define wxUSE_STD_IOSTREAM 1
15777 EOF
15778
15779 fi
15780
15781 if test "$wxUSE_TEXTFILE" = "yes"; then
15782 if test "$wxUSE_FILE" != "yes"; then
15783 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15784 else
15785 cat >> confdefs.h <<\EOF
15786 #define wxUSE_TEXTFILE 1
15787 EOF
15788
15789 fi
15790 fi
15791
15792 if test "$wxUSE_CONFIG" = "yes" ; then
15793 if test "$wxUSE_TEXTFILE" != "yes"; then
15794 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15795 else
15796 cat >> confdefs.h <<\EOF
15797 #define wxUSE_CONFIG 1
15798 EOF
15799
15800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15801 fi
15802 fi
15803
15804 if test "$wxUSE_INTL" = "yes" ; then
15805 if test "$wxUSE_FILE" != "yes"; then
15806 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15807 else
15808 cat >> confdefs.h <<\EOF
15809 #define wxUSE_INTL 1
15810 EOF
15811
15812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15813 GUIDIST="$GUIDIST INTL_DIST"
15814 fi
15815 fi
15816
15817 if test "$wxUSE_LOG" = "yes"; then
15818 cat >> confdefs.h <<\EOF
15819 #define wxUSE_LOG 1
15820 EOF
15821
15822
15823 if test "$wxUSE_LOGGUI" = "yes"; then
15824 cat >> confdefs.h <<\EOF
15825 #define wxUSE_LOGGUI 1
15826 EOF
15827
15828 fi
15829
15830 if test "$wxUSE_LOGWINDOW" = "yes"; then
15831 cat >> confdefs.h <<\EOF
15832 #define wxUSE_LOGWINDOW 1
15833 EOF
15834
15835 fi
15836 fi
15837
15838 if test "$wxUSE_LONGLONG" = "yes"; then
15839 cat >> confdefs.h <<\EOF
15840 #define wxUSE_LONGLONG 1
15841 EOF
15842
15843 fi
15844
15845 if test "$wxUSE_GEOMETRY" = "yes"; then
15846 cat >> confdefs.h <<\EOF
15847 #define wxUSE_GEOMETRY 1
15848 EOF
15849
15850 fi
15851
15852 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15853 cat >> confdefs.h <<\EOF
15854 #define wxUSE_DIALUP_MANAGER 1
15855 EOF
15856
15857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15858 fi
15859
15860 if test "$wxUSE_STREAMS" = "yes" ; then
15861 cat >> confdefs.h <<\EOF
15862 #define wxUSE_STREAMS 1
15863 EOF
15864
15865 fi
15866
15867
15868 if test "$wxUSE_DATETIME" = "yes"; then
15869 for ac_func in strptime
15870 do
15871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15872 echo "configure:15873: checking for $ac_func" >&5
15873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15874 echo $ac_n "(cached) $ac_c" 1>&6
15875 else
15876 cat > conftest.$ac_ext <<EOF
15877 #line 15878 "configure"
15878 #include "confdefs.h"
15879 /* System header to define __stub macros and hopefully few prototypes,
15880 which can conflict with char $ac_func(); below. */
15881 #include <assert.h>
15882 /* Override any gcc2 internal prototype to avoid an error. */
15883 /* We use char because int might match the return type of a gcc2
15884 builtin and then its argument prototype would still apply. */
15885 char $ac_func();
15886
15887 int main() {
15888
15889 /* The GNU C library defines this for functions which it implements
15890 to always fail with ENOSYS. Some functions are actually named
15891 something starting with __ and the normal name is an alias. */
15892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15893 choke me
15894 #else
15895 $ac_func();
15896 #endif
15897
15898 ; return 0; }
15899 EOF
15900 if { (eval echo configure:15901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15901 rm -rf conftest*
15902 eval "ac_cv_func_$ac_func=yes"
15903 else
15904 echo "configure: failed program was:" >&5
15905 cat conftest.$ac_ext >&5
15906 rm -rf conftest*
15907 eval "ac_cv_func_$ac_func=no"
15908 fi
15909 rm -f conftest*
15910 fi
15911
15912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15915 cat >> confdefs.h <<EOF
15916 #define $ac_tr_func 1
15917 EOF
15918
15919 else
15920 echo "$ac_t""no" 1>&6
15921 fi
15922 done
15923
15924
15925 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15926 echo "configure:15927: checking for timezone variable in <time.h>" >&5
15927 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15928 echo $ac_n "(cached) $ac_c" 1>&6
15929 else
15930
15931 cat > conftest.$ac_ext <<EOF
15932 #line 15933 "configure"
15933 #include "confdefs.h"
15934
15935 #include <time.h>
15936
15937 int main() {
15938
15939 int tz;
15940 tz = timezone;
15941
15942 ; return 0; }
15943 EOF
15944 if { (eval echo configure:15945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15945 rm -rf conftest*
15946
15947 wx_cv_var_timezone=timezone
15948
15949 else
15950 echo "configure: failed program was:" >&5
15951 cat conftest.$ac_ext >&5
15952 rm -rf conftest*
15953
15954 cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15957
15958 #include <time.h>
15959
15960 int main() {
15961
15962 int tz;
15963 tz = _timezone;
15964
15965 ; return 0; }
15966 EOF
15967 if { (eval echo configure:15968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15968 rm -rf conftest*
15969
15970 wx_cv_var_timezone=_timezone
15971
15972 else
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15975 rm -rf conftest*
15976
15977 cat > conftest.$ac_ext <<EOF
15978 #line 15979 "configure"
15979 #include "confdefs.h"
15980
15981 #include <time.h>
15982
15983 int main() {
15984
15985 int tz;
15986 tz = __timezone;
15987
15988 ; return 0; }
15989 EOF
15990 if { (eval echo configure:15991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15991 rm -rf conftest*
15992
15993 wx_cv_var_timezone=__timezone
15994
15995 else
15996 echo "configure: failed program was:" >&5
15997 cat conftest.$ac_ext >&5
15998 rm -rf conftest*
15999 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16000
16001 fi
16002 rm -f conftest*
16003
16004
16005 fi
16006 rm -f conftest*
16007
16008
16009 fi
16010 rm -f conftest*
16011
16012
16013 fi
16014
16015 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16016
16017 cat >> confdefs.h <<EOF
16018 #define WX_TIMEZONE $wx_cv_var_timezone
16019 EOF
16020
16021
16022 for ac_func in localtime
16023 do
16024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16025 echo "configure:16026: checking for $ac_func" >&5
16026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16027 echo $ac_n "(cached) $ac_c" 1>&6
16028 else
16029 cat > conftest.$ac_ext <<EOF
16030 #line 16031 "configure"
16031 #include "confdefs.h"
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char $ac_func(); below. */
16034 #include <assert.h>
16035 /* Override any gcc2 internal prototype to avoid an error. */
16036 /* We use char because int might match the return type of a gcc2
16037 builtin and then its argument prototype would still apply. */
16038 char $ac_func();
16039
16040 int main() {
16041
16042 /* The GNU C library defines this for functions which it implements
16043 to always fail with ENOSYS. Some functions are actually named
16044 something starting with __ and the normal name is an alias. */
16045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16046 choke me
16047 #else
16048 $ac_func();
16049 #endif
16050
16051 ; return 0; }
16052 EOF
16053 if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16054 rm -rf conftest*
16055 eval "ac_cv_func_$ac_func=yes"
16056 else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_func_$ac_func=no"
16061 fi
16062 rm -f conftest*
16063 fi
16064
16065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16066 echo "$ac_t""yes" 1>&6
16067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16068 cat >> confdefs.h <<EOF
16069 #define $ac_tr_func 1
16070 EOF
16071
16072 else
16073 echo "$ac_t""no" 1>&6
16074 fi
16075 done
16076
16077
16078 if test "$ac_cv_func_localtime" = "yes"; then
16079 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16080 echo "configure:16081: checking for tm_gmtoff in struct tm" >&5
16081 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16082 echo $ac_n "(cached) $ac_c" 1>&6
16083 else
16084
16085 cat > conftest.$ac_ext <<EOF
16086 #line 16087 "configure"
16087 #include "confdefs.h"
16088
16089 #include <time.h>
16090
16091 int main() {
16092
16093 struct tm tm;
16094 tm.tm_gmtoff++;
16095
16096 ; return 0; }
16097 EOF
16098 if { (eval echo configure:16099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16099 rm -rf conftest*
16100
16101 wx_cv_struct_tm_has_gmtoff=yes
16102
16103 else
16104 echo "configure: failed program was:" >&5
16105 cat conftest.$ac_ext >&5
16106 rm -rf conftest*
16107 wx_cv_struct_tm_has_gmtoff=no
16108
16109 fi
16110 rm -f conftest*
16111
16112 fi
16113
16114 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16115 fi
16116
16117 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16118 cat >> confdefs.h <<\EOF
16119 #define WX_GMTOFF_IN_TM 1
16120 EOF
16121
16122 fi
16123
16124 for ac_func in gettimeofday ftime
16125 do
16126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16127 echo "configure:16128: checking for $ac_func" >&5
16128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16129 echo $ac_n "(cached) $ac_c" 1>&6
16130 else
16131 cat > conftest.$ac_ext <<EOF
16132 #line 16133 "configure"
16133 #include "confdefs.h"
16134 /* System header to define __stub macros and hopefully few prototypes,
16135 which can conflict with char $ac_func(); below. */
16136 #include <assert.h>
16137 /* Override any gcc2 internal prototype to avoid an error. */
16138 /* We use char because int might match the return type of a gcc2
16139 builtin and then its argument prototype would still apply. */
16140 char $ac_func();
16141
16142 int main() {
16143
16144 /* The GNU C library defines this for functions which it implements
16145 to always fail with ENOSYS. Some functions are actually named
16146 something starting with __ and the normal name is an alias. */
16147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16148 choke me
16149 #else
16150 $ac_func();
16151 #endif
16152
16153 ; return 0; }
16154 EOF
16155 if { (eval echo configure:16156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16156 rm -rf conftest*
16157 eval "ac_cv_func_$ac_func=yes"
16158 else
16159 echo "configure: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 rm -rf conftest*
16162 eval "ac_cv_func_$ac_func=no"
16163 fi
16164 rm -f conftest*
16165 fi
16166
16167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16168 echo "$ac_t""yes" 1>&6
16169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16170 cat >> confdefs.h <<EOF
16171 #define $ac_tr_func 1
16172 EOF
16173 break
16174 else
16175 echo "$ac_t""no" 1>&6
16176 fi
16177 done
16178
16179
16180 if test "$ac_cv_func_gettimeofday" = "yes"; then
16181 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16182 echo "configure:16183: checking whether gettimeofday takes two arguments" >&5
16183 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16184 echo $ac_n "(cached) $ac_c" 1>&6
16185 else
16186
16187
16188 ac_ext=C
16189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16190 ac_cpp='$CXXCPP $CPPFLAGS'
16191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16193 cross_compiling=$ac_cv_prog_cxx_cross
16194
16195
16196 cat > conftest.$ac_ext <<EOF
16197 #line 16198 "configure"
16198 #include "confdefs.h"
16199
16200 #include <sys/time.h>
16201 #include <unistd.h>
16202
16203 int main() {
16204
16205 struct timeval tv;
16206 struct timezone tz;
16207 gettimeofday(&tv, &tz);
16208
16209 ; return 0; }
16210 EOF
16211 if { (eval echo configure:16212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16212 rm -rf conftest*
16213 wx_cv_func_gettimeofday_has_2_args=yes
16214 else
16215 echo "configure: failed program was:" >&5
16216 cat conftest.$ac_ext >&5
16217 rm -rf conftest*
16218 cat > conftest.$ac_ext <<EOF
16219 #line 16220 "configure"
16220 #include "confdefs.h"
16221
16222 #include <sys/time.h>
16223 #include <unistd.h>
16224
16225 int main() {
16226
16227 struct timeval tv;
16228 gettimeofday(&tv);
16229
16230 ; return 0; }
16231 EOF
16232 if { (eval echo configure:16233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16233 rm -rf conftest*
16234 wx_cv_func_gettimeofday_has_2_args=no
16235 else
16236 echo "configure: failed program was:" >&5
16237 cat conftest.$ac_ext >&5
16238 rm -rf conftest*
16239 wx_cv_func_gettimeofday_has_2_args=unknown
16240
16241 fi
16242 rm -f conftest*
16243
16244 fi
16245 rm -f conftest*
16246 ac_ext=c
16247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16248 ac_cpp='$CPP $CPPFLAGS'
16249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16251 cross_compiling=$ac_cv_prog_cc_cross
16252
16253
16254 fi
16255
16256 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16257
16258 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16259 cat >> confdefs.h <<\EOF
16260 #define WX_GETTIMEOFDAY_NO_TZ 1
16261 EOF
16262
16263 fi
16264 fi
16265
16266 cat >> confdefs.h <<\EOF
16267 #define wxUSE_TIMEDATE 1
16268 EOF
16269
16270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16271 fi
16272
16273
16274 if test "$TOOLKIT" != "MSW"; then
16275
16276 if test "$wxUSE_SOCKETS" = "yes"; then
16277 echo $ac_n "checking for socket""... $ac_c" 1>&6
16278 echo "configure:16279: checking for socket" >&5
16279 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16280 echo $ac_n "(cached) $ac_c" 1>&6
16281 else
16282 cat > conftest.$ac_ext <<EOF
16283 #line 16284 "configure"
16284 #include "confdefs.h"
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char socket(); below. */
16287 #include <assert.h>
16288 /* Override any gcc2 internal prototype to avoid an error. */
16289 /* We use char because int might match the return type of a gcc2
16290 builtin and then its argument prototype would still apply. */
16291 char socket();
16292
16293 int main() {
16294
16295 /* The GNU C library defines this for functions which it implements
16296 to always fail with ENOSYS. Some functions are actually named
16297 something starting with __ and the normal name is an alias. */
16298 #if defined (__stub_socket) || defined (__stub___socket)
16299 choke me
16300 #else
16301 socket();
16302 #endif
16303
16304 ; return 0; }
16305 EOF
16306 if { (eval echo configure:16307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16307 rm -rf conftest*
16308 eval "ac_cv_func_socket=yes"
16309 else
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 rm -rf conftest*
16313 eval "ac_cv_func_socket=no"
16314 fi
16315 rm -f conftest*
16316 fi
16317
16318 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
16320 :
16321 else
16322 echo "$ac_t""no" 1>&6
16323 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16324 echo "configure:16325: checking for socket in -lsocket" >&5
16325 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16327 echo $ac_n "(cached) $ac_c" 1>&6
16328 else
16329 ac_save_LIBS="$LIBS"
16330 LIBS="-lsocket $LIBS"
16331 cat > conftest.$ac_ext <<EOF
16332 #line 16333 "configure"
16333 #include "confdefs.h"
16334 /* Override any gcc2 internal prototype to avoid an error. */
16335 /* We use char because int might match the return type of a gcc2
16336 builtin and then its argument prototype would still apply. */
16337 char socket();
16338
16339 int main() {
16340 socket()
16341 ; return 0; }
16342 EOF
16343 if { (eval echo configure:16344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16344 rm -rf conftest*
16345 eval "ac_cv_lib_$ac_lib_var=yes"
16346 else
16347 echo "configure: failed program was:" >&5
16348 cat conftest.$ac_ext >&5
16349 rm -rf conftest*
16350 eval "ac_cv_lib_$ac_lib_var=no"
16351 fi
16352 rm -f conftest*
16353 LIBS="$ac_save_LIBS"
16354
16355 fi
16356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16357 echo "$ac_t""yes" 1>&6
16358 INET_LINK="$INET_LINK -lsocket"
16359 else
16360 echo "$ac_t""no" 1>&6
16361
16362 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16363 wxUSE_SOCKETS=no
16364
16365
16366 fi
16367
16368
16369 fi
16370
16371 fi
16372
16373
16374 if test "$wxUSE_SOCKETS" = "yes" ; then
16375 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16376 echo "configure:16377: checking what is the type of the third argument of getsockname" >&5
16377 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379 else
16380
16381
16382 ac_ext=C
16383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16384 ac_cpp='$CXXCPP $CPPFLAGS'
16385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16387 cross_compiling=$ac_cv_prog_cxx_cross
16388
16389
16390 cat > conftest.$ac_ext <<EOF
16391 #line 16392 "configure"
16392 #include "confdefs.h"
16393
16394 #include <sys/types.h>
16395 #include <sys/socket.h>
16396
16397 int main() {
16398
16399 socklen_t len;
16400 getsockname(0, 0, &len);
16401
16402 ; return 0; }
16403 EOF
16404 if { (eval echo configure:16405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16405 rm -rf conftest*
16406 wx_cv_type_getsockname3=socklen_t
16407 else
16408 echo "configure: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16410 rm -rf conftest*
16411 cat > conftest.$ac_ext <<EOF
16412 #line 16413 "configure"
16413 #include "confdefs.h"
16414
16415 #include <sys/types.h>
16416 #include <sys/socket.h>
16417
16418 int main() {
16419
16420 size_t len;
16421 getsockname(0, 0, &len);
16422
16423 ; return 0; }
16424 EOF
16425 if { (eval echo configure:16426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16426 rm -rf conftest*
16427 wx_cv_type_getsockname3=size_t
16428 else
16429 echo "configure: failed program was:" >&5
16430 cat conftest.$ac_ext >&5
16431 rm -rf conftest*
16432 cat > conftest.$ac_ext <<EOF
16433 #line 16434 "configure"
16434 #include "confdefs.h"
16435
16436 #include <sys/types.h>
16437 #include <sys/socket.h>
16438
16439 int main() {
16440
16441 int len;
16442 getsockname(0, 0, &len);
16443
16444 ; return 0; }
16445 EOF
16446 if { (eval echo configure:16447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16447 rm -rf conftest*
16448 wx_cv_type_getsockname3=int
16449 else
16450 echo "configure: failed program was:" >&5
16451 cat conftest.$ac_ext >&5
16452 rm -rf conftest*
16453 wx_cv_type_getsockname3=unknown
16454
16455 fi
16456 rm -f conftest*
16457
16458 fi
16459 rm -f conftest*
16460
16461 fi
16462 rm -f conftest*
16463
16464 ac_ext=c
16465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16466 ac_cpp='$CPP $CPPFLAGS'
16467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16469 cross_compiling=$ac_cv_prog_cc_cross
16470
16471
16472 fi
16473
16474 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16475
16476 if test "$wx_cv_type_getsockname3" = "unknown"; then
16477 wxUSE_SOCKETS=no
16478 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16479 else
16480 cat >> confdefs.h <<EOF
16481 #define SOCKLEN_T $wx_cv_type_getsockname3
16482 EOF
16483
16484 fi
16485 fi
16486
16487 fi
16488
16489 if test "$wxUSE_SOCKETS" = "yes" ; then
16490 cat >> confdefs.h <<\EOF
16491 #define wxUSE_SOCKETS 1
16492 EOF
16493
16494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16495 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16496 fi
16497
16498
16499 if test "$wxUSE_GUI" = "yes"; then
16500
16501 if test "$TOOLKIT" != "MSW"; then
16502
16503 if test "$wxUSE_JOYSTICK" = "yes"; then
16504 for ac_hdr in linux/joystick.h
16505 do
16506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16508 echo "configure:16509: checking for $ac_hdr" >&5
16509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16510 echo $ac_n "(cached) $ac_c" 1>&6
16511 else
16512 cat > conftest.$ac_ext <<EOF
16513 #line 16514 "configure"
16514 #include "confdefs.h"
16515 #include <$ac_hdr>
16516 EOF
16517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16518 { (eval echo configure:16519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16520 if test -z "$ac_err"; then
16521 rm -rf conftest*
16522 eval "ac_cv_header_$ac_safe=yes"
16523 else
16524 echo "$ac_err" >&5
16525 echo "configure: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 rm -rf conftest*
16528 eval "ac_cv_header_$ac_safe=no"
16529 fi
16530 rm -f conftest*
16531 fi
16532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16533 echo "$ac_t""yes" 1>&6
16534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16535 cat >> confdefs.h <<EOF
16536 #define $ac_tr_hdr 1
16537 EOF
16538
16539 else
16540 echo "$ac_t""no" 1>&6
16541 fi
16542 done
16543
16544 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16545 wxUSE_JOYSTICK=no
16546 echo "configure: warning: Joystick not supported by this system" 1>&2
16547 fi
16548 fi
16549
16550 fi
16551
16552 if test "$wxUSE_JOYSTICK" = "yes"; then
16553 cat >> confdefs.h <<\EOF
16554 #define wxUSE_JOYSTICK 1
16555 EOF
16556
16557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16558 fi
16559
16560 fi
16561
16562
16563 if test "$TOOLKIT" != "MSW"; then
16564
16565 HAVE_DL_FUNCS=0
16566 HAVE_SHL_FUNCS=0
16567 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16568 if test "$USE_DARWIN" = 1; then
16569 HAVE_DL_FUNCS=1
16570 else
16571 for ac_func in dlopen
16572 do
16573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16574 echo "configure:16575: checking for $ac_func" >&5
16575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16576 echo $ac_n "(cached) $ac_c" 1>&6
16577 else
16578 cat > conftest.$ac_ext <<EOF
16579 #line 16580 "configure"
16580 #include "confdefs.h"
16581 /* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func(); below. */
16583 #include <assert.h>
16584 /* Override any gcc2 internal prototype to avoid an error. */
16585 /* We use char because int might match the return type of a gcc2
16586 builtin and then its argument prototype would still apply. */
16587 char $ac_func();
16588
16589 int main() {
16590
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16595 choke me
16596 #else
16597 $ac_func();
16598 #endif
16599
16600 ; return 0; }
16601 EOF
16602 if { (eval echo configure:16603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16603 rm -rf conftest*
16604 eval "ac_cv_func_$ac_func=yes"
16605 else
16606 echo "configure: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16608 rm -rf conftest*
16609 eval "ac_cv_func_$ac_func=no"
16610 fi
16611 rm -f conftest*
16612 fi
16613
16614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16615 echo "$ac_t""yes" 1>&6
16616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16617 cat >> confdefs.h <<EOF
16618 #define $ac_tr_func 1
16619 EOF
16620
16621 cat >> confdefs.h <<\EOF
16622 #define HAVE_DLOPEN 1
16623 EOF
16624
16625 HAVE_DL_FUNCS=1
16626
16627 else
16628 echo "$ac_t""no" 1>&6
16629 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16630 echo "configure:16631: checking for dlopen in -ldl" >&5
16631 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634 else
16635 ac_save_LIBS="$LIBS"
16636 LIBS="-ldl $LIBS"
16637 cat > conftest.$ac_ext <<EOF
16638 #line 16639 "configure"
16639 #include "confdefs.h"
16640 /* Override any gcc2 internal prototype to avoid an error. */
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643 char dlopen();
16644
16645 int main() {
16646 dlopen()
16647 ; return 0; }
16648 EOF
16649 if { (eval echo configure:16650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16650 rm -rf conftest*
16651 eval "ac_cv_lib_$ac_lib_var=yes"
16652 else
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16655 rm -rf conftest*
16656 eval "ac_cv_lib_$ac_lib_var=no"
16657 fi
16658 rm -f conftest*
16659 LIBS="$ac_save_LIBS"
16660
16661 fi
16662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16663 echo "$ac_t""yes" 1>&6
16664
16665 cat >> confdefs.h <<\EOF
16666 #define HAVE_DLOPEN 1
16667 EOF
16668
16669 HAVE_DL_FUNCS=1
16670 LIBS="$LIBS -ldl"
16671
16672 else
16673 echo "$ac_t""no" 1>&6
16674
16675 for ac_func in shl_load
16676 do
16677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16678 echo "configure:16679: checking for $ac_func" >&5
16679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16680 echo $ac_n "(cached) $ac_c" 1>&6
16681 else
16682 cat > conftest.$ac_ext <<EOF
16683 #line 16684 "configure"
16684 #include "confdefs.h"
16685 /* System header to define __stub macros and hopefully few prototypes,
16686 which can conflict with char $ac_func(); below. */
16687 #include <assert.h>
16688 /* Override any gcc2 internal prototype to avoid an error. */
16689 /* We use char because int might match the return type of a gcc2
16690 builtin and then its argument prototype would still apply. */
16691 char $ac_func();
16692
16693 int main() {
16694
16695 /* The GNU C library defines this for functions which it implements
16696 to always fail with ENOSYS. Some functions are actually named
16697 something starting with __ and the normal name is an alias. */
16698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16699 choke me
16700 #else
16701 $ac_func();
16702 #endif
16703
16704 ; return 0; }
16705 EOF
16706 if { (eval echo configure:16707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16707 rm -rf conftest*
16708 eval "ac_cv_func_$ac_func=yes"
16709 else
16710 echo "configure: failed program was:" >&5
16711 cat conftest.$ac_ext >&5
16712 rm -rf conftest*
16713 eval "ac_cv_func_$ac_func=no"
16714 fi
16715 rm -f conftest*
16716 fi
16717
16718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16719 echo "$ac_t""yes" 1>&6
16720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16721 cat >> confdefs.h <<EOF
16722 #define $ac_tr_func 1
16723 EOF
16724
16725 cat >> confdefs.h <<\EOF
16726 #define HAVE_SHL_LOAD 1
16727 EOF
16728
16729 HAVE_SHL_FUNCS=1
16730
16731 else
16732 echo "$ac_t""no" 1>&6
16733 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16734 echo "configure:16735: checking for dld in -lshl_load" >&5
16735 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16737 echo $ac_n "(cached) $ac_c" 1>&6
16738 else
16739 ac_save_LIBS="$LIBS"
16740 LIBS="-lshl_load $LIBS"
16741 cat > conftest.$ac_ext <<EOF
16742 #line 16743 "configure"
16743 #include "confdefs.h"
16744 /* Override any gcc2 internal prototype to avoid an error. */
16745 /* We use char because int might match the return type of a gcc2
16746 builtin and then its argument prototype would still apply. */
16747 char dld();
16748
16749 int main() {
16750 dld()
16751 ; return 0; }
16752 EOF
16753 if { (eval echo configure:16754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16754 rm -rf conftest*
16755 eval "ac_cv_lib_$ac_lib_var=yes"
16756 else
16757 echo "configure: failed program was:" >&5
16758 cat conftest.$ac_ext >&5
16759 rm -rf conftest*
16760 eval "ac_cv_lib_$ac_lib_var=no"
16761 fi
16762 rm -f conftest*
16763 LIBS="$ac_save_LIBS"
16764
16765 fi
16766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16767 echo "$ac_t""yes" 1>&6
16768
16769 HAVE_SHL_FUNCS=1
16770 LIBS="$LIBS -ldld"
16771
16772 else
16773 echo "$ac_t""no" 1>&6
16774 fi
16775
16776
16777 fi
16778 done
16779
16780
16781 fi
16782
16783
16784 fi
16785 done
16786
16787
16788 if test "$HAVE_DL_FUNCS" = 1; then
16789 for ac_func in dlerror
16790 do
16791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16792 echo "configure:16793: checking for $ac_func" >&5
16793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16794 echo $ac_n "(cached) $ac_c" 1>&6
16795 else
16796 cat > conftest.$ac_ext <<EOF
16797 #line 16798 "configure"
16798 #include "confdefs.h"
16799 /* System header to define __stub macros and hopefully few prototypes,
16800 which can conflict with char $ac_func(); below. */
16801 #include <assert.h>
16802 /* Override any gcc2 internal prototype to avoid an error. */
16803 /* We use char because int might match the return type of a gcc2
16804 builtin and then its argument prototype would still apply. */
16805 char $ac_func();
16806
16807 int main() {
16808
16809 /* The GNU C library defines this for functions which it implements
16810 to always fail with ENOSYS. Some functions are actually named
16811 something starting with __ and the normal name is an alias. */
16812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16813 choke me
16814 #else
16815 $ac_func();
16816 #endif
16817
16818 ; return 0; }
16819 EOF
16820 if { (eval echo configure:16821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16821 rm -rf conftest*
16822 eval "ac_cv_func_$ac_func=yes"
16823 else
16824 echo "configure: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16826 rm -rf conftest*
16827 eval "ac_cv_func_$ac_func=no"
16828 fi
16829 rm -f conftest*
16830 fi
16831
16832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16833 echo "$ac_t""yes" 1>&6
16834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16835 cat >> confdefs.h <<EOF
16836 #define $ac_tr_func 1
16837 EOF
16838 cat >> confdefs.h <<\EOF
16839 #define HAVE_DLERROR 1
16840 EOF
16841
16842 else
16843 echo "$ac_t""no" 1>&6
16844 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16845 echo "configure:16846: checking for dlerror in -ldl" >&5
16846 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16848 echo $ac_n "(cached) $ac_c" 1>&6
16849 else
16850 ac_save_LIBS="$LIBS"
16851 LIBS="-ldl $LIBS"
16852 cat > conftest.$ac_ext <<EOF
16853 #line 16854 "configure"
16854 #include "confdefs.h"
16855 /* Override any gcc2 internal prototype to avoid an error. */
16856 /* We use char because int might match the return type of a gcc2
16857 builtin and then its argument prototype would still apply. */
16858 char dlerror();
16859
16860 int main() {
16861 dlerror()
16862 ; return 0; }
16863 EOF
16864 if { (eval echo configure:16865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16865 rm -rf conftest*
16866 eval "ac_cv_lib_$ac_lib_var=yes"
16867 else
16868 echo "configure: failed program was:" >&5
16869 cat conftest.$ac_ext >&5
16870 rm -rf conftest*
16871 eval "ac_cv_lib_$ac_lib_var=no"
16872 fi
16873 rm -f conftest*
16874 LIBS="$ac_save_LIBS"
16875
16876 fi
16877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16878 echo "$ac_t""yes" 1>&6
16879 cat >> confdefs.h <<\EOF
16880 #define HAVE_DLERROR 1
16881 EOF
16882
16883 else
16884 echo "$ac_t""no" 1>&6
16885 fi
16886
16887 fi
16888 done
16889
16890 fi
16891 fi
16892
16893 if test "$HAVE_DL_FUNCS" = 0; then
16894 if test "$HAVE_SHL_FUNCS" = 0; then
16895 if test "$USE_UNIX" = 1; then
16896 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16897 wxUSE_DYNLIB_CLASS=no
16898 else
16899 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16900 fi
16901 fi
16902 fi
16903 fi
16904
16905 fi
16906
16907 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16908 cat >> confdefs.h <<\EOF
16909 #define wxUSE_DYNLIB_CLASS 1
16910 EOF
16911
16912 else
16913 wxUSE_ODBC=no
16914 wxUSE_SERIAL=no
16915 fi
16916
16917
16918 if test "$wxUSE_FONTMAP" = "yes" ; then
16919 cat >> confdefs.h <<\EOF
16920 #define wxUSE_FONTMAP 1
16921 EOF
16922
16923 fi
16924
16925 if test "$wxUSE_UNICODE" = "yes" ; then
16926 cat >> confdefs.h <<\EOF
16927 #define wxUSE_UNICODE 1
16928 EOF
16929
16930 fi
16931
16932 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16933 cat >> confdefs.h <<\EOF
16934 #define wxUSE_WCSRTOMBS 1
16935 EOF
16936
16937 fi
16938
16939 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16940 cat >> confdefs.h <<\EOF
16941 #define wxUSE_EXPERIMENTAL_PRINTF 1
16942 EOF
16943
16944 fi
16945
16946
16947 if test "$wxUSE_SERIAL" = "yes" ; then
16948 cat >> confdefs.h <<\EOF
16949 #define wxUSE_SERIAL 1
16950 EOF
16951
16952 fi
16953
16954
16955 IODBC_C_SRC=""
16956 if test "$wxUSE_ODBC" = "yes" ; then
16957 cat >> confdefs.h <<\EOF
16958 #define wxUSE_ODBC 1
16959 EOF
16960
16961 WXODBCFLAG="-D_IODBC_"
16962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16963 fi
16964
16965
16966 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16967 cat >> confdefs.h <<\EOF
16968 #define wxUSE_POSTSCRIPT 1
16969 EOF
16970
16971 fi
16972
16973 cat >> confdefs.h <<\EOF
16974 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16975 EOF
16976
16977
16978 cat >> confdefs.h <<\EOF
16979 #define wxUSE_NORMALIZED_PS_FONTS 1
16980 EOF
16981
16982
16983
16984 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16985 cat >> confdefs.h <<\EOF
16986 #define wxUSE_CONSTRAINTS 1
16987 EOF
16988
16989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16990 fi
16991
16992 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16993 cat >> confdefs.h <<\EOF
16994 #define wxUSE_MDI_ARCHITECTURE 1
16995 EOF
16996
16997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16998 fi
16999
17000 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17001 cat >> confdefs.h <<\EOF
17002 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17003 EOF
17004
17005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17006 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17008 fi
17009 fi
17010
17011 if test "$wxUSE_HELP" = "yes"; then
17012 cat >> confdefs.h <<\EOF
17013 #define wxUSE_HELP 1
17014 EOF
17015
17016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17017
17018 if test "$USE_WIN32" = 1; then
17019 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17020 cat >> confdefs.h <<\EOF
17021 #define wxUSE_MS_HTML_HELP 1
17022 EOF
17023
17024 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17025 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17026 echo "configure:17027: checking for htmlhelp.h" >&5
17027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17029 else
17030 cat > conftest.$ac_ext <<EOF
17031 #line 17032 "configure"
17032 #include "confdefs.h"
17033 #include <htmlhelp.h>
17034 EOF
17035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17036 { (eval echo configure:17037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17038 if test -z "$ac_err"; then
17039 rm -rf conftest*
17040 eval "ac_cv_header_$ac_safe=yes"
17041 else
17042 echo "$ac_err" >&5
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 eval "ac_cv_header_$ac_safe=no"
17047 fi
17048 rm -f conftest*
17049 fi
17050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17051 echo "$ac_t""yes" 1>&6
17052
17053 cat >> confdefs.h <<\EOF
17054 #define wxUSE_MS_HTML_HELP 1
17055 EOF
17056
17057
17058 else
17059 echo "$ac_t""no" 1>&6
17060
17061 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17062 wxUSE_MS_HTML_HELP=no
17063
17064 fi
17065
17066 fi
17067 fi
17068
17069 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17070 if test "$wxUSE_HTML" = "yes"; then
17071 cat >> confdefs.h <<\EOF
17072 #define wxUSE_WXHTML_HELP 1
17073 EOF
17074
17075 else
17076 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17077 wxUSE_WXHTML_HELP=no
17078 fi
17079 fi
17080 fi
17081
17082 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17083 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17084 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17085 else
17086 cat >> confdefs.h <<\EOF
17087 #define wxUSE_PRINTING_ARCHITECTURE 1
17088 EOF
17089
17090 fi
17091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17092 fi
17093
17094 if test "$wxUSE_PROLOGIO" = "yes" ; then
17095 cat >> confdefs.h <<\EOF
17096 #define wxUSE_PROLOGIO 1
17097 EOF
17098
17099 fi
17100
17101 if test "$wxUSE_RESOURCES" = "yes" ; then
17102 cat >> confdefs.h <<\EOF
17103 #define wxUSE_RESOURCES 1
17104 EOF
17105
17106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17107 fi
17108
17109 if test "$wxUSE_X_RESOURCES" = "yes"; then
17110 cat >> confdefs.h <<\EOF
17111 #define wxUSE_X_RESOURCES 1
17112 EOF
17113
17114 fi
17115
17116
17117 if test "$wxUSE_IPC" = "yes"; then
17118 if test "$wxUSE_SOCKETS" != "yes"; then
17119 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17120 fi
17121
17122 cat >> confdefs.h <<\EOF
17123 #define wxUSE_IPC 1
17124 EOF
17125
17126 fi
17127
17128 if test "$wxUSE_CLIPBOARD" = "yes"; then
17129 cat >> confdefs.h <<\EOF
17130 #define wxUSE_CLIPBOARD 1
17131 EOF
17132
17133 cat >> confdefs.h <<\EOF
17134 #define wxUSE_DATAOBJ 1
17135 EOF
17136
17137 fi
17138
17139 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17140 if test "$wxUSE_GTK" = 1; then
17141 if test "$WXGTK12" != 1; then
17142 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17143 wxUSE_DRAG_AND_DROP=no
17144 fi
17145 fi
17146
17147 if test "$wxUSE_MOTIF" = 1; then
17148 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17149 wxUSE_DRAG_AND_DROP=no
17150 fi
17151
17152 if test "$wxUSE_MAC" = 1; then
17153 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17154 wxUSE_DRAG_AND_DROP=no
17155 fi
17156
17157 if test "$USE_WIN32" = 1; then
17158
17159 for ac_hdr in ole2.h
17160 do
17161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17163 echo "configure:17164: checking for $ac_hdr" >&5
17164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17165 echo $ac_n "(cached) $ac_c" 1>&6
17166 else
17167 cat > conftest.$ac_ext <<EOF
17168 #line 17169 "configure"
17169 #include "confdefs.h"
17170 #include <$ac_hdr>
17171 EOF
17172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17173 { (eval echo configure:17174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17175 if test -z "$ac_err"; then
17176 rm -rf conftest*
17177 eval "ac_cv_header_$ac_safe=yes"
17178 else
17179 echo "$ac_err" >&5
17180 echo "configure: failed program was:" >&5
17181 cat conftest.$ac_ext >&5
17182 rm -rf conftest*
17183 eval "ac_cv_header_$ac_safe=no"
17184 fi
17185 rm -f conftest*
17186 fi
17187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17188 echo "$ac_t""yes" 1>&6
17189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17190 cat >> confdefs.h <<EOF
17191 #define $ac_tr_hdr 1
17192 EOF
17193
17194 else
17195 echo "$ac_t""no" 1>&6
17196 fi
17197 done
17198
17199
17200 if test "$ac_cv_header_ole2_h" = "yes" ; then
17201 if test "$GCC" = yes ; then
17202 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17203 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17204 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17205 LIBS="$LIBS -lole32 -luuid"
17206 cat >> confdefs.h <<\EOF
17207 #define wxUSE_OLE 1
17208 EOF
17209
17210
17211 if test "$wxUSE_METAFILE" = "yes"; then
17212 cat >> confdefs.h <<\EOF
17213 #define wxUSE_METAFILE 1
17214 EOF
17215
17216 cat >> confdefs.h <<\EOF
17217 #define wxUSE_ENH_METAFILE 1
17218 EOF
17219
17220 fi
17221 fi
17222 else
17223 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17224 wxUSE_DRAG_AND_DROP=no
17225 fi
17226 fi
17227
17228 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17229 cat >> confdefs.h <<\EOF
17230 #define wxUSE_DRAG_AND_DROP 1
17231 EOF
17232
17233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17234 fi
17235
17236 fi
17237
17238 if test "$wxUSE_SPLINES" = "yes" ; then
17239 cat >> confdefs.h <<\EOF
17240 #define wxUSE_SPLINES 1
17241 EOF
17242
17243 fi
17244
17245
17246 USES_CONTROLS=0
17247 if test "$wxUSE_CONTROLS" = "yes"; then
17248 USES_CONTROLS=1
17249 fi
17250
17251 if test "$wxUSE_ACCEL" = "yes"; then
17252 cat >> confdefs.h <<\EOF
17253 #define wxUSE_ACCEL 1
17254 EOF
17255
17256 USES_CONTROLS=1
17257 fi
17258
17259 if test "$wxUSE_BUTTON" = "yes"; then
17260 cat >> confdefs.h <<\EOF
17261 #define wxUSE_BUTTON 1
17262 EOF
17263
17264 USES_CONTROLS=1
17265 fi
17266
17267 if test "$wxUSE_BMPBUTTON" = "yes"; then
17268 cat >> confdefs.h <<\EOF
17269 #define wxUSE_BMPBUTTON 1
17270 EOF
17271
17272 USES_CONTROLS=1
17273 fi
17274
17275 if test "$wxUSE_CALCTRL" = "yes"; then
17276 cat >> confdefs.h <<\EOF
17277 #define wxUSE_CALENDARCTRL 1
17278 EOF
17279
17280 USES_CONTROLS=1
17281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17282 fi
17283
17284 if test "$wxUSE_CARET" = "yes"; then
17285 cat >> confdefs.h <<\EOF
17286 #define wxUSE_CARET 1
17287 EOF
17288
17289 USES_CONTROLS=1
17290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17291 fi
17292
17293 if test "$wxUSE_COMBOBOX" = "yes"; then
17294 cat >> confdefs.h <<\EOF
17295 #define wxUSE_COMBOBOX 1
17296 EOF
17297
17298 USES_CONTROLS=1
17299 fi
17300
17301 if test "$wxUSE_CHOICE" = "yes"; then
17302 cat >> confdefs.h <<\EOF
17303 #define wxUSE_CHOICE 1
17304 EOF
17305
17306 USES_CONTROLS=1
17307 fi
17308
17309 if test "$wxUSE_CHECKBOX" = "yes"; then
17310 cat >> confdefs.h <<\EOF
17311 #define wxUSE_CHECKBOX 1
17312 EOF
17313
17314 USES_CONTROLS=1
17315 fi
17316
17317 if test "$wxUSE_CHECKLST" = "yes"; then
17318 cat >> confdefs.h <<\EOF
17319 #define wxUSE_CHECKLISTBOX 1
17320 EOF
17321
17322 USES_CONTROLS=1
17323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17324 fi
17325
17326 if test "$wxUSE_GAUGE" = "yes"; then
17327 cat >> confdefs.h <<\EOF
17328 #define wxUSE_GAUGE 1
17329 EOF
17330
17331 USES_CONTROLS=1
17332 fi
17333
17334 if test "$wxUSE_NEW_GRID" = "yes"; then
17335 wxUSE_GRID="yes"
17336 cat >> confdefs.h <<\EOF
17337 #define wxUSE_NEW_GRID 1
17338 EOF
17339
17340 USES_CONTROLS=1
17341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17342 fi
17343
17344 if test "$wxUSE_GRID" = "yes"; then
17345 cat >> confdefs.h <<\EOF
17346 #define wxUSE_GRID 1
17347 EOF
17348
17349 USES_CONTROLS=1
17350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17351 fi
17352
17353 if test "$wxUSE_IMAGLIST" = "yes"; then
17354 cat >> confdefs.h <<\EOF
17355 #define wxUSE_IMAGLIST 1
17356 EOF
17357
17358 fi
17359
17360 if test "$wxUSE_LISTBOX" = "yes"; then
17361 cat >> confdefs.h <<\EOF
17362 #define wxUSE_LISTBOX 1
17363 EOF
17364
17365 USES_CONTROLS=1
17366 fi
17367
17368 if test "$wxUSE_LISTCTRL" = "yes"; then
17369 if test "$wxUSE_IMAGLIST" = "yes"; then
17370 cat >> confdefs.h <<\EOF
17371 #define wxUSE_LISTCTRL 1
17372 EOF
17373
17374 USES_CONTROLS=1
17375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17376 else
17377 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17378 fi
17379 fi
17380
17381 if test "$wxUSE_NOTEBOOK" = "yes"; then
17382 cat >> confdefs.h <<\EOF
17383 #define wxUSE_NOTEBOOK 1
17384 EOF
17385
17386 USES_CONTROLS=1
17387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17388 fi
17389
17390 if test "$wxUSE_PROPSHEET" = "yes"; then
17391 cat >> confdefs.h <<\EOF
17392 #define wxUSE_PROPSHEET 1
17393 EOF
17394
17395 USES_CONTROLS=1
17396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17397 fi
17398
17399 if test "$wxUSE_RADIOBOX" = "yes"; then
17400 cat >> confdefs.h <<\EOF
17401 #define wxUSE_RADIOBOX 1
17402 EOF
17403
17404 USES_CONTROLS=1
17405 fi
17406
17407 if test "$wxUSE_RADIOBTN" = "yes"; then
17408 cat >> confdefs.h <<\EOF
17409 #define wxUSE_RADIOBTN 1
17410 EOF
17411
17412 USES_CONTROLS=1
17413 fi
17414
17415 if test "$wxUSE_SASH" = "yes"; then
17416 cat >> confdefs.h <<\EOF
17417 #define wxUSE_SASH 1
17418 EOF
17419
17420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17421 fi
17422
17423 if test "$wxUSE_SCROLLBAR" = "yes"; then
17424 cat >> confdefs.h <<\EOF
17425 #define wxUSE_SCROLLBAR 1
17426 EOF
17427
17428 USES_CONTROLS=1
17429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17430 fi
17431
17432 if test "$wxUSE_SLIDER" = "yes"; then
17433 cat >> confdefs.h <<\EOF
17434 #define wxUSE_SLIDER 1
17435 EOF
17436
17437 USES_CONTROLS=1
17438 fi
17439
17440 if test "$wxUSE_SPINBTN" = "yes"; then
17441 cat >> confdefs.h <<\EOF
17442 #define wxUSE_SPINBTN 1
17443 EOF
17444
17445 USES_CONTROLS=1
17446 fi
17447
17448 if test "$wxUSE_SPINCTRL" = "yes"; then
17449 cat >> confdefs.h <<\EOF
17450 #define wxUSE_SPINCTRL 1
17451 EOF
17452
17453 USES_CONTROLS=1
17454 fi
17455
17456 if test "$wxUSE_SPLITTER" = "yes"; then
17457 cat >> confdefs.h <<\EOF
17458 #define wxUSE_SPLITTER 1
17459 EOF
17460
17461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17462 fi
17463
17464 if test "$wxUSE_STATBMP" = "yes"; then
17465 cat >> confdefs.h <<\EOF
17466 #define wxUSE_STATBMP 1
17467 EOF
17468
17469 USES_CONTROLS=1
17470 fi
17471
17472 if test "$wxUSE_STATBOX" = "yes"; then
17473 cat >> confdefs.h <<\EOF
17474 #define wxUSE_STATBOX 1
17475 EOF
17476
17477 USES_CONTROLS=1
17478 fi
17479
17480 if test "$wxUSE_STATTEXT" = "yes"; then
17481 cat >> confdefs.h <<\EOF
17482 #define wxUSE_STATTEXT 1
17483 EOF
17484
17485 USES_CONTROLS=1
17486 fi
17487
17488 if test "$wxUSE_STATLINE" = "yes"; then
17489 if test "$wxUSE_WINE" = 1 ; then
17490 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17491 else
17492 cat >> confdefs.h <<\EOF
17493 #define wxUSE_STATLINE 1
17494 EOF
17495
17496 USES_CONTROLS=1
17497 fi
17498 fi
17499
17500 if test "$wxUSE_STATUSBAR" = "yes"; then
17501 cat >> confdefs.h <<\EOF
17502 #define wxUSE_STATUSBAR 1
17503 EOF
17504
17505 USES_CONTROLS=1
17506
17507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17508 fi
17509
17510 if test "$wxUSE_TABDIALOG" = "yes"; then
17511 cat >> confdefs.h <<\EOF
17512 #define wxUSE_TAB_DIALOG 1
17513 EOF
17514
17515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17516 fi
17517
17518 if test "$wxUSE_TEXTCTRL" = "yes"; then
17519 cat >> confdefs.h <<\EOF
17520 #define wxUSE_TEXTCTRL 1
17521 EOF
17522
17523 USES_CONTROLS=1
17524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17525 fi
17526
17527 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17528 if test "$wxUSE_MAC" = 1; then
17529 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17530 wxUSE_TOGGLEBTN=no
17531 fi
17532
17533 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17534 cat >> confdefs.h <<\EOF
17535 #define wxUSE_TOGGLEBTN 1
17536 EOF
17537
17538 USES_CONTROLS=1
17539 fi
17540 fi
17541
17542 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17543 cat >> confdefs.h <<\EOF
17544 #define wxUSE_TOOLBAR_SIMPLE 1
17545 EOF
17546
17547 wxUSE_TOOLBAR="yes"
17548 USES_CONTROLS=1
17549 fi
17550
17551 if test "$wxUSE_TOOLBAR" = "yes"; then
17552 cat >> confdefs.h <<\EOF
17553 #define wxUSE_TOOLBAR 1
17554 EOF
17555
17556 USES_CONTROLS=1
17557
17558 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17559 wxUSE_TOOLBAR_NATIVE="yes"
17560 fi
17561
17562 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17563 cat >> confdefs.h <<\EOF
17564 #define wxUSE_TOOLBAR_NATIVE 1
17565 EOF
17566
17567 USES_CONTROLS=1
17568 fi
17569
17570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17571 fi
17572
17573 if test "$wxUSE_TOOLTIPS" = "yes"; then
17574 if test "$wxUSE_MOTIF" = 1; then
17575 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17576 else
17577 if test "$wxUSE_WINE" = 1; then
17578 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17579 else
17580 cat >> confdefs.h <<\EOF
17581 #define wxUSE_TOOLTIPS 1
17582 EOF
17583
17584 fi
17585 fi
17586 fi
17587
17588 if test "$wxUSE_TREECTRL" = "yes"; then
17589 if test "$wxUSE_IMAGLIST" = "yes"; then
17590 cat >> confdefs.h <<\EOF
17591 #define wxUSE_TREECTRL 1
17592 EOF
17593
17594 USES_CONTROLS=1
17595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17596 else
17597 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17598 fi
17599 fi
17600
17601 if test "$wxUSE_POPUPWIN" = "yes"; then
17602 if test "$wxUSE_MAC" = 1; then
17603 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17604 else
17605 cat >> confdefs.h <<\EOF
17606 #define wxUSE_POPUPWIN 1
17607 EOF
17608
17609 USES_CONTROLS=1
17610 fi
17611 fi
17612
17613 if test "$USES_CONTROLS" = 1; then
17614 cat >> confdefs.h <<\EOF
17615 #define wxUSE_CONTROLS 1
17616 EOF
17617
17618 fi
17619
17620
17621 if test "$wxUSE_TREELAYOUT" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_TREELAYOUT 1
17624 EOF
17625
17626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17627 fi
17628
17629 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17630 cat >> confdefs.h <<\EOF
17631 #define wxUSE_DRAGIMAGE 1
17632 EOF
17633
17634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17635 fi
17636
17637 if test "$wxUSE_MENUS" = "yes"; then
17638 cat >> confdefs.h <<\EOF
17639 #define wxUSE_MENUS 1
17640 EOF
17641
17642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17643 fi
17644
17645 if test "$wxUSE_METAFILE" = "yes"; then
17646 cat >> confdefs.h <<\EOF
17647 #define wxUSE_METAFILE 1
17648 EOF
17649
17650 fi
17651
17652 if test "$wxUSE_MIMETYPE" = "yes"; then
17653 cat >> confdefs.h <<\EOF
17654 #define wxUSE_MIMETYPE 1
17655 EOF
17656
17657 fi
17658
17659 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17660 cat >> confdefs.h <<\EOF
17661 #define wxUSE_SYSTEM_OPTIONS 1
17662 EOF
17663
17664 fi
17665
17666 if test "$wxUSE_MINIFRAME" = "yes"; then
17667 cat >> confdefs.h <<\EOF
17668 #define wxUSE_MINIFRAME 1
17669 EOF
17670
17671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17672 fi
17673
17674 if test "$wxUSE_HTML" = "yes"; then
17675 cat >> confdefs.h <<\EOF
17676 #define wxUSE_HTML 1
17677 EOF
17678
17679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17680 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17681 fi
17682
17683 if test "$wxUSE_VALIDATORS" = "yes"; then
17684 cat >> confdefs.h <<\EOF
17685 #define wxUSE_VALIDATORS 1
17686 EOF
17687
17688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17689 fi
17690
17691 if test "$wxUSE_IMAGE" = "yes" ; then
17692 cat >> confdefs.h <<\EOF
17693 #define wxUSE_IMAGE 1
17694 EOF
17695
17696 fi
17697
17698 if test "$wxUSE_GIF" = "yes" ; then
17699 cat >> confdefs.h <<\EOF
17700 #define wxUSE_GIF 1
17701 EOF
17702
17703 fi
17704
17705 if test "$wxUSE_PCX" = "yes" ; then
17706 cat >> confdefs.h <<\EOF
17707 #define wxUSE_PCX 1
17708 EOF
17709
17710 fi
17711
17712 if test "$wxUSE_PNM" = "yes" ; then
17713 cat >> confdefs.h <<\EOF
17714 #define wxUSE_PNM 1
17715 EOF
17716
17717 fi
17718
17719 if test "$wxUSE_XPM" = "yes" ; then
17720 cat >> confdefs.h <<\EOF
17721 #define wxUSE_XPM 1
17722 EOF
17723
17724 fi
17725
17726
17727 if test "$wxUSE_CHOICEDLG" = "yes"; then
17728 cat >> confdefs.h <<\EOF
17729 #define wxUSE_CHOICEDLG 1
17730 EOF
17731
17732 fi
17733
17734 if test "$wxUSE_COLOURDLG" = "yes"; then
17735 cat >> confdefs.h <<\EOF
17736 #define wxUSE_COLOURDLG 1
17737 EOF
17738
17739 fi
17740
17741 if test "$wxUSE_FILEDLG" = "yes"; then
17742 cat >> confdefs.h <<\EOF
17743 #define wxUSE_FILEDLG 1
17744 EOF
17745
17746 fi
17747
17748 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17749 cat >> confdefs.h <<\EOF
17750 #define wxUSE_FINDREPLDLG 1
17751 EOF
17752
17753 fi
17754
17755 if test "$wxUSE_FONTDLG" = "yes"; then
17756 cat >> confdefs.h <<\EOF
17757 #define wxUSE_FONTDLG 1
17758 EOF
17759
17760 fi
17761
17762 if test "$wxUSE_DIRDLG" = "yes"; then
17763 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17764 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17765 else
17766 if test "$wxUSE_TREECTRL" != "yes"; then
17767 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17768 else
17769 cat >> confdefs.h <<\EOF
17770 #define wxUSE_DIRDLG 1
17771 EOF
17772
17773 fi
17774 fi
17775 fi
17776
17777 if test "$wxUSE_MSGDLG" = "yes"; then
17778 cat >> confdefs.h <<\EOF
17779 #define wxUSE_MSGDLG 1
17780 EOF
17781
17782 fi
17783
17784 if test "$wxUSE_NUMBERDLG" = "yes"; then
17785 cat >> confdefs.h <<\EOF
17786 #define wxUSE_NUMBERDLG 1
17787 EOF
17788
17789 fi
17790
17791 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17792 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17793 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17794 else
17795 cat >> confdefs.h <<\EOF
17796 #define wxUSE_PROGRESSDLG 1
17797 EOF
17798
17799 fi
17800 fi
17801
17802 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17803 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17804 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17805 else
17806 cat >> confdefs.h <<\EOF
17807 #define wxUSE_STARTUP_TIPS 1
17808 EOF
17809
17810 fi
17811 fi
17812
17813 if test "$wxUSE_TEXTDLG" = "yes"; then
17814 cat >> confdefs.h <<\EOF
17815 #define wxUSE_TEXTDLG 1
17816 EOF
17817
17818 fi
17819
17820 if test "$wxUSE_WIZARDDLG" = "yes"; then
17821 cat >> confdefs.h <<\EOF
17822 #define wxUSE_WIZARDDLG 1
17823 EOF
17824
17825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17826 fi
17827
17828
17829 if test "$cross_compiling" = "yes"; then
17830 OSINFO="\"$host\""
17831 else
17832 OSINFO=`uname -s -r -m`
17833 OSINFO="\"$OSINFO\""
17834 fi
17835
17836 cat >> confdefs.h <<EOF
17837 #define WXWIN_OS_DESCRIPTION $OSINFO
17838 EOF
17839
17840
17841
17842 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17843 OPENGL_LIBS="$OPENGL_LINK"
17844
17845 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17846 if test "$wxUSE_MAC" = 1 ; then
17847 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17848 fi
17849 if test "$wxUSE_GUI" = "yes"; then
17850 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17851 fi
17852
17853 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17854
17855 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17856 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17857 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17858
17859 if test "$wxUSE_GTK" = 1; then
17860 WXCONFIG_INCLUDE=""
17861 else
17862 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17863 fi
17864
17865 if test "$GXX" = yes ; then
17866 CXXWARNINGS="-Wall"
17867 fi
17868 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17869
17870 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17871 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17872
17873 LDFLAGS="$LDFLAGS $PROFILE"
17874
17875 if test "$wxUSE_GUI" = "yes"; then
17876
17877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17878 drawing dynamic erase event exec font image \
17879 minimal richedit rotate widgets"
17880
17881 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17883 fi
17884
17885 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17886 else
17887 SAMPLES_SUBDIRS="console"
17888 fi
17889
17890 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17986 echo "configure:17987: checking whether ${MAKE-make} sets \${MAKE}" >&5
17987 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17988 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17989 echo $ac_n "(cached) $ac_c" 1>&6
17990 else
17991 cat > conftestmake <<\EOF
17992 all:
17993 @echo 'ac_maketemp="${MAKE}"'
17994 EOF
17995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17996 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17997 if test -n "$ac_maketemp"; then
17998 eval ac_cv_prog_make_${ac_make}_set=yes
17999 else
18000 eval ac_cv_prog_make_${ac_make}_set=no
18001 fi
18002 rm -f conftestmake
18003 fi
18004 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18005 echo "$ac_t""yes" 1>&6
18006 SET_MAKE=
18007 else
18008 echo "$ac_t""no" 1>&6
18009 SET_MAKE="MAKE=${MAKE-make}"
18010 fi
18011
18012
18013 if test -d include; then
18014 if test -d include/wx; then
18015 if test -d include/wx/${SETUPH_DIR}; then
18016 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18017 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
18018 fi
18019 fi
18020 fi
18021 fi
18022
18023
18024
18025 if test "$wxUSE_GUI" = "yes"; then
18026 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18027 wx_cv_path_ifs=$PATH_IFS
18028 wx_cv_program_ext=$PROGRAM_EXT
18029 wx_cv_target_library=$WX_TARGET_LIBRARY
18030 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18031 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18032 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18033 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18034 subdirs="demos samples utils contrib"
18035
18036 fi
18037
18038 trap '' 1 2 15
18039 cat > confcache <<\EOF
18040 # This file is a shell script that caches the results of configure
18041 # tests run on this system so they can be shared between configure
18042 # scripts and configure runs. It is not useful on other systems.
18043 # If it contains results you don't want to keep, you may remove or edit it.
18044 #
18045 # By default, configure uses ./config.cache as the cache file,
18046 # creating it if it does not exist already. You can give configure
18047 # the --cache-file=FILE option to use a different cache file; that is
18048 # what configure does when it calls configure scripts in
18049 # subdirectories, so they share the cache.
18050 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18051 # config.status only pays attention to the cache file if you give it the
18052 # --recheck option to rerun configure.
18053 #
18054 EOF
18055 # The following way of writing the cache mishandles newlines in values,
18056 # but we know of no workaround that is simple, portable, and efficient.
18057 # So, don't put newlines in cache variables' values.
18058 # Ultrix sh set writes to stderr and can't be redirected directly,
18059 # and sets the high bit in the cache file unless we assign to the vars.
18060 (set) 2>&1 |
18061 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18062 *ac_space=\ *)
18063 # `set' does not quote correctly, so add quotes (double-quote substitution
18064 # turns \\\\ into \\, and sed turns \\ into \).
18065 sed -n \
18066 -e "s/'/'\\\\''/g" \
18067 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18068 ;;
18069 *)
18070 # `set' quotes correctly as required by POSIX, so do not add quotes.
18071 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18072 ;;
18073 esac >> confcache
18074 if cmp -s $cache_file confcache; then
18075 :
18076 else
18077 if test -w $cache_file; then
18078 echo "updating cache $cache_file"
18079 cat confcache > $cache_file
18080 else
18081 echo "not updating unwritable cache $cache_file"
18082 fi
18083 fi
18084 rm -f confcache
18085
18086 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18087
18088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18089 # Let make expand exec_prefix.
18090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18091
18092 # Any assignment to VPATH causes Sun make to only execute
18093 # the first set of double-colon rules, so remove it if not needed.
18094 # If there is a colon in the path, we need to keep it.
18095 if test "x$srcdir" = x.; then
18096 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18097 fi
18098
18099 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18100
18101 DEFS=-DHAVE_CONFIG_H
18102
18103 # Without the "./", some shells look in PATH for config.status.
18104 : ${CONFIG_STATUS=./config.status}
18105
18106 echo creating $CONFIG_STATUS
18107 rm -f $CONFIG_STATUS
18108 cat > $CONFIG_STATUS <<EOF
18109 #! /bin/sh
18110 # Generated automatically by configure.
18111 # Run this file to recreate the current configuration.
18112 # This directory was configured as follows,
18113 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18114 #
18115 # $0 $ac_configure_args
18116 #
18117 # Compiler output produced by configure, useful for debugging
18118 # configure, is in ./config.log if it exists.
18119
18120 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18121 for ac_option
18122 do
18123 case "\$ac_option" in
18124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18125 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18126 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18127 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18128 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18129 exit 0 ;;
18130 -help | --help | --hel | --he | --h)
18131 echo "\$ac_cs_usage"; exit 0 ;;
18132 *) echo "\$ac_cs_usage"; exit 1 ;;
18133 esac
18134 done
18135
18136 ac_given_srcdir=$srcdir
18137 ac_given_INSTALL="$INSTALL"
18138
18139 trap 'rm -fr `echo "
18140 wx-config
18141 src/make.env
18142 src/makeprog.env
18143 src/makelib.env
18144 Makefile
18145 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18146 EOF
18147 cat >> $CONFIG_STATUS <<EOF
18148
18149 # Protect against being on the right side of a sed subst in config.status.
18150 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18151 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18152 $ac_vpsub
18153 $extrasub
18154 s%@SHELL@%$SHELL%g
18155 s%@CFLAGS@%$CFLAGS%g
18156 s%@CPPFLAGS@%$CPPFLAGS%g
18157 s%@CXXFLAGS@%$CXXFLAGS%g
18158 s%@FFLAGS@%$FFLAGS%g
18159 s%@DEFS@%$DEFS%g
18160 s%@LDFLAGS@%$LDFLAGS%g
18161 s%@LIBS@%$LIBS%g
18162 s%@exec_prefix@%$exec_prefix%g
18163 s%@prefix@%$prefix%g
18164 s%@program_transform_name@%$program_transform_name%g
18165 s%@bindir@%$bindir%g
18166 s%@sbindir@%$sbindir%g
18167 s%@libexecdir@%$libexecdir%g
18168 s%@datadir@%$datadir%g
18169 s%@sysconfdir@%$sysconfdir%g
18170 s%@sharedstatedir@%$sharedstatedir%g
18171 s%@localstatedir@%$localstatedir%g
18172 s%@libdir@%$libdir%g
18173 s%@includedir@%$includedir%g
18174 s%@oldincludedir@%$oldincludedir%g
18175 s%@infodir@%$infodir%g
18176 s%@mandir@%$mandir%g
18177 s%@host@%$host%g
18178 s%@host_alias@%$host_alias%g
18179 s%@host_cpu@%$host_cpu%g
18180 s%@host_vendor@%$host_vendor%g
18181 s%@host_os@%$host_os%g
18182 s%@target@%$target%g
18183 s%@target_alias@%$target_alias%g
18184 s%@target_cpu@%$target_cpu%g
18185 s%@target_vendor@%$target_vendor%g
18186 s%@target_os@%$target_os%g
18187 s%@build@%$build%g
18188 s%@build_alias@%$build_alias%g
18189 s%@build_cpu@%$build_cpu%g
18190 s%@build_vendor@%$build_vendor%g
18191 s%@build_os@%$build_os%g
18192 s%@CC@%$CC%g
18193 s%@CPP@%$CPP%g
18194 s%@CXX@%$CXX%g
18195 s%@CXXCPP@%$CXXCPP%g
18196 s%@RANLIB@%$RANLIB%g
18197 s%@AR@%$AR%g
18198 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18199 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18200 s%@INSTALL_DATA@%$INSTALL_DATA%g
18201 s%@STRIP@%$STRIP%g
18202 s%@YACC@%$YACC%g
18203 s%@LEX@%$LEX%g
18204 s%@LEXLIB@%$LEXLIB%g
18205 s%@LN_S@%$LN_S%g
18206 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18207 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18208 s%@GTK_LIBS@%$GTK_LIBS%g
18209 s%@GTK_CONFIG@%$GTK_CONFIG%g
18210 s%@X_CFLAGS@%$X_CFLAGS%g
18211 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18212 s%@X_LIBS@%$X_LIBS%g
18213 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18214 s%@REZ@%$REZ%g
18215 s%@DEREZ@%$DEREZ%g
18216 s%@LEX_STEM@%$LEX_STEM%g
18217 s%@PATH_IFS@%$PATH_IFS%g
18218 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18219 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18220 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18221 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18222 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18223 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18224 s%@WX_LIBRARY@%$WX_LIBRARY%g
18225 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18226 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18227 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18228 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18229 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18230 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18231 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18232 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18233 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18234 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18235 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18236 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18237 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18238 s%@WX_ALL@%$WX_ALL%g
18239 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18240 s%@SHARED_LD@%$SHARED_LD%g
18241 s%@PIC_FLAG@%$PIC_FLAG%g
18242 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18243 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18244 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18245 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18246 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18247 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18248 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18249 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18250 s%@USE_GUI@%$USE_GUI%g
18251 s%@AFMINSTALL@%$AFMINSTALL%g
18252 s%@SETUPH_DIR@%$SETUPH_DIR%g
18253 s%@TOOLKIT@%$TOOLKIT%g
18254 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18255 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18256 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18257 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18258 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18259 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18260 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18261 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18262 s%@GUIDIST@%$GUIDIST%g
18263 s%@PORT_FILES@%$PORT_FILES%g
18264 s%@DISTDIR@%$DISTDIR%g
18265 s%@RPM_SPEC@%$RPM_SPEC%g
18266 s%@RPM_FILES@%$RPM_FILES%g
18267 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18268 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18269 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18270 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18271 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18272 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18273 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18274 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18275 s%@EXTRADEFS@%$EXTRADEFS%g
18276 s%@LD_LIBS@%$LD_LIBS%g
18277 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18278 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18279 s%@RESPROGRAM@%$RESPROGRAM%g
18280 s%@RESCOMP@%$RESCOMP%g
18281 s%@RESFLAGS@%$RESFLAGS%g
18282 s%@REZFLAGS@%$REZFLAGS%g
18283 s%@DEREZFLAGS@%$DEREZFLAGS%g
18284 s%@LIBWXMACRES@%$LIBWXMACRES%g
18285 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18286 s%@DLLTOOL@%$DLLTOOL%g
18287 s%@AS@%$AS%g
18288 s%@NM@%$NM%g
18289 s%@LD@%$LD%g
18290 s%@MAKEINFO@%$MAKEINFO%g
18291 s%@SET_MAKE@%$SET_MAKE%g
18292 s%@subdirs@%$subdirs%g
18293
18294 CEOF
18295 EOF
18296
18297 cat >> $CONFIG_STATUS <<\EOF
18298
18299 # Split the substitutions into bite-sized pieces for seds with
18300 # small command number limits, like on Digital OSF/1 and HP-UX.
18301 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18302 ac_file=1 # Number of current file.
18303 ac_beg=1 # First line for current file.
18304 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18305 ac_more_lines=:
18306 ac_sed_cmds=""
18307 while $ac_more_lines; do
18308 if test $ac_beg -gt 1; then
18309 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18310 else
18311 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18312 fi
18313 if test ! -s conftest.s$ac_file; then
18314 ac_more_lines=false
18315 rm -f conftest.s$ac_file
18316 else
18317 if test -z "$ac_sed_cmds"; then
18318 ac_sed_cmds="sed -f conftest.s$ac_file"
18319 else
18320 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18321 fi
18322 ac_file=`expr $ac_file + 1`
18323 ac_beg=$ac_end
18324 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18325 fi
18326 done
18327 if test -z "$ac_sed_cmds"; then
18328 ac_sed_cmds=cat
18329 fi
18330 EOF
18331
18332 cat >> $CONFIG_STATUS <<EOF
18333
18334 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18335 src/make.env
18336 src/makeprog.env
18337 src/makelib.env
18338 Makefile
18339 "}
18340 EOF
18341 cat >> $CONFIG_STATUS <<\EOF
18342 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18344 case "$ac_file" in
18345 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18346 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18347 *) ac_file_in="${ac_file}.in" ;;
18348 esac
18349
18350 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18351
18352 # Remove last slash and all that follows it. Not all systems have dirname.
18353 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18355 # The file is in a subdirectory.
18356 test ! -d "$ac_dir" && mkdir "$ac_dir"
18357 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18358 # A "../" for each directory in $ac_dir_suffix.
18359 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18360 else
18361 ac_dir_suffix= ac_dots=
18362 fi
18363
18364 case "$ac_given_srcdir" in
18365 .) srcdir=.
18366 if test -z "$ac_dots"; then top_srcdir=.
18367 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18368 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18369 *) # Relative path.
18370 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18371 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18372 esac
18373
18374 case "$ac_given_INSTALL" in
18375 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18376 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18377 esac
18378
18379 echo creating "$ac_file"
18380 rm -f "$ac_file"
18381 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18382 case "$ac_file" in
18383 *Makefile*) ac_comsub="1i\\
18384 # $configure_input" ;;
18385 *) ac_comsub= ;;
18386 esac
18387
18388 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18389 sed -e "$ac_comsub
18390 s%@configure_input@%$configure_input%g
18391 s%@srcdir@%$srcdir%g
18392 s%@top_srcdir@%$top_srcdir%g
18393 s%@INSTALL@%$INSTALL%g
18394 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18395 fi; done
18396 rm -f conftest.s*
18397
18398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18400 #
18401 # ac_d sets the value in "#define NAME VALUE" lines.
18402 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18403 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18404 ac_dC='\3'
18405 ac_dD='%g'
18406 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18407 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18408 ac_uB='\([ ]\)%\1#\2define\3'
18409 ac_uC=' '
18410 ac_uD='\4%g'
18411 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18412 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18413 ac_eB='$%\1#\2define\3'
18414 ac_eC=' '
18415 ac_eD='%g'
18416
18417 if test "${CONFIG_HEADERS+set}" != set; then
18418 EOF
18419 cat >> $CONFIG_STATUS <<EOF
18420 CONFIG_HEADERS="setup.h:setup.h.in"
18421 EOF
18422 cat >> $CONFIG_STATUS <<\EOF
18423 fi
18424 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18426 case "$ac_file" in
18427 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18428 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18429 *) ac_file_in="${ac_file}.in" ;;
18430 esac
18431
18432 echo creating $ac_file
18433
18434 rm -f conftest.frag conftest.in conftest.out
18435 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18436 cat $ac_file_inputs > conftest.in
18437
18438 EOF
18439
18440 # Transform confdefs.h into a sed script conftest.vals that substitutes
18441 # the proper values into config.h.in to produce config.h. And first:
18442 # Protect against being on the right side of a sed subst in config.status.
18443 # Protect against being in an unquoted here document in config.status.
18444 rm -f conftest.vals
18445 cat > conftest.hdr <<\EOF
18446 s/[\\&%]/\\&/g
18447 s%[\\$`]%\\&%g
18448 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18449 s%ac_d%ac_u%gp
18450 s%ac_u%ac_e%gp
18451 EOF
18452 sed -n -f conftest.hdr confdefs.h > conftest.vals
18453 rm -f conftest.hdr
18454
18455 # This sed command replaces #undef with comments. This is necessary, for
18456 # example, in the case of _POSIX_SOURCE, which is predefined and required
18457 # on some systems where configure will not decide to define it.
18458 cat >> conftest.vals <<\EOF
18459 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18460 EOF
18461
18462 # Break up conftest.vals because some shells have a limit on
18463 # the size of here documents, and old seds have small limits too.
18464
18465 rm -f conftest.tail
18466 while :
18467 do
18468 ac_lines=`grep -c . conftest.vals`
18469 # grep -c gives empty output for an empty file on some AIX systems.
18470 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18471 # Write a limited-size here document to conftest.frag.
18472 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18473 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18474 echo 'CEOF
18475 sed -f conftest.frag conftest.in > conftest.out
18476 rm -f conftest.in
18477 mv conftest.out conftest.in
18478 ' >> $CONFIG_STATUS
18479 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18480 rm -f conftest.vals
18481 mv conftest.tail conftest.vals
18482 done
18483 rm -f conftest.vals
18484
18485 cat >> $CONFIG_STATUS <<\EOF
18486 rm -f conftest.frag conftest.h
18487 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18488 cat conftest.in >> conftest.h
18489 rm -f conftest.in
18490 if cmp -s $ac_file conftest.h 2>/dev/null; then
18491 echo "$ac_file is unchanged"
18492 rm -f conftest.h
18493 else
18494 # Remove last slash and all that follows it. Not all systems have dirname.
18495 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18496 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18497 # The file is in a subdirectory.
18498 test ! -d "$ac_dir" && mkdir "$ac_dir"
18499 fi
18500 rm -f $ac_file
18501 mv conftest.h $ac_file
18502 fi
18503 fi; done
18504
18505 EOF
18506 cat >> $CONFIG_STATUS <<EOF
18507
18508 SETUPH_DIR="${SETUPH_DIR}"
18509 TOOLKIT_NAME="${TOOLKIT_NAME}"
18510 LN_S="${LN_S}"
18511
18512
18513 EOF
18514 cat >> $CONFIG_STATUS <<\EOF
18515
18516 if test ! -f wx${TOOLKIT_NAME}-config; then
18517 chmod +x wx-config
18518 mv wx-config wx${TOOLKIT_NAME}-config
18519 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18520 fi
18521
18522
18523 if test ! -d lib; then
18524 mkdir lib
18525 fi
18526 if test ! -d lib/wx; then
18527 mkdir lib/wx
18528 fi
18529 if test ! -d lib/wx/include; then
18530 mkdir lib/wx/include
18531 fi
18532 if test ! -d lib/wx/include/wx; then
18533 mkdir lib/wx/include/wx
18534 fi
18535 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18536 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18537 fi
18538 if test -f setup.h; then
18539 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18540 fi
18541
18542
18543 if test ! -d include; then
18544 mkdir include
18545 fi
18546 if test ! -d include/wx; then
18547 mkdir include/wx
18548 fi
18549 if test ! -d include/wx/${SETUPH_DIR}; then
18550 mkdir include/wx/${SETUPH_DIR}
18551 fi
18552 if test -f setup.h; then
18553 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18554 fi
18555
18556
18557 exit 0
18558 EOF
18559 chmod +x $CONFIG_STATUS
18560 rm -fr confdefs* $ac_clean_files
18561 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18562
18563 if test "$no_recursion" != yes; then
18564
18565 # Remove --cache-file and --srcdir arguments so they do not pile up.
18566 ac_sub_configure_args=
18567 ac_prev=
18568 for ac_arg in $ac_configure_args; do
18569 if test -n "$ac_prev"; then
18570 ac_prev=
18571 continue
18572 fi
18573 case "$ac_arg" in
18574 -cache-file | --cache-file | --cache-fil | --cache-fi \
18575 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18576 ac_prev=cache_file ;;
18577 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18578 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18579 ;;
18580 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18581 ac_prev=srcdir ;;
18582 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18583 ;;
18584 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18585 esac
18586 done
18587
18588 for ac_config_dir in demos samples utils contrib; do
18589
18590 # Do not complain, so a configure script can configure whichever
18591 # parts of a large source tree are present.
18592 if test ! -d $srcdir/$ac_config_dir; then
18593 continue
18594 fi
18595
18596 echo configuring in $ac_config_dir
18597
18598 case "$srcdir" in
18599 .) ;;
18600 *)
18601 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18602 else
18603 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18604 fi
18605 ;;
18606 esac
18607
18608 ac_popdir=`pwd`
18609 cd $ac_config_dir
18610
18611 # A "../" for each directory in /$ac_config_dir.
18612 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18613
18614 case "$srcdir" in
18615 .) # No --srcdir option. We are building in place.
18616 ac_sub_srcdir=$srcdir ;;
18617 /*) # Absolute path.
18618 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18619 *) # Relative path.
18620 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18621 esac
18622
18623 # Check for guested configure; otherwise get Cygnus style configure.
18624 if test -f $ac_sub_srcdir/configure; then
18625 ac_sub_configure=$ac_sub_srcdir/configure
18626 elif test -f $ac_sub_srcdir/configure.in; then
18627 ac_sub_configure=$ac_configure
18628 else
18629 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18630 ac_sub_configure=
18631 fi
18632
18633 # The recursion is here.
18634 if test -n "$ac_sub_configure"; then
18635
18636 # Make the cache file name correct relative to the subdirectory.
18637 case "$cache_file" in
18638 /*) ac_sub_cache_file=$cache_file ;;
18639 *) # Relative path.
18640 ac_sub_cache_file="$ac_dots$cache_file" ;;
18641 esac
18642 case "$ac_given_INSTALL" in
18643 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18644 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18645 esac
18646
18647 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18648 # The eval makes quoting arguments work.
18649 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18650 then :
18651 else
18652 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18653 fi
18654 fi
18655
18656 cd $ac_popdir
18657 done
18658 fi
18659
18660