]> git.saurik.com Git - wxWidgets.git/blob - configure
Removed old grid code
[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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 # Configure paths for GTK+
66 # Owen Taylor 1997-2001
67
68
69
70 # Configure paths for GTK+
71 # Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.13
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 #
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
86
87 # Defaults:
88 ac_help=
89 ac_default_prefix=/usr/local
90 # Any additions from configure.in:
91 ac_help="$ac_help
92 --enable-gui use GUI classes"
93 ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95 ac_help="$ac_help
96 --with-gtk use GTK+"
97 ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99 ac_help="$ac_help
100 --with-mac use Mac OS X"
101 ac_help="$ac_help
102 --with-cocoa use Cocoa"
103 ac_help="$ac_help
104 --with-wine use Wine"
105 ac_help="$ac_help
106 --with-msw use MS-Windows"
107 ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109 ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111 ac_help="$ac_help
112 --with-microwin use MicroWindows"
113 ac_help="$ac_help
114 --with-x11 use X11"
115 ac_help="$ac_help
116 --enable-nanox use NanoX"
117 ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119 ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121 ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123 ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125 ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127 ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129 ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131 ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133 ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135 ac_help="$ac_help
136 --enable-shared create shared library code"
137 ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139 ac_help="$ac_help
140 --enable-optimise create optimised code"
141 ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143 ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145 ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147 ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149 ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151 ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153 ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155 ac_help="$ac_help
156 --enable-profile create code with profiling information"
157 ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159 ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161 ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163 ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165 ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167 ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169 ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171 ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173 ac_help="$ac_help
174 --enable-intl use internationalization system"
175 ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177 ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179 ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181 ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183 ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185 ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187 ac_help="$ac_help
188 --enable-ole use OLE classes"
189 ac_help="$ac_help
190 --enable-dataobj use data object classes"
191 ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193 ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195 ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197 ac_help="$ac_help
198 --enable-timedate use obsolete wxDate/wxTime classes"
199 ac_help="$ac_help
200 --enable-stopwatch use wxStopWatch class"
201 ac_help="$ac_help
202 --enable-dialupman use dialup network classes"
203 ac_help="$ac_help
204 --enable-apple_ieee use the Apple IEEE codec"
205 ac_help="$ac_help
206 --enable-timer use wxTimer class"
207 ac_help="$ac_help
208 --enable-wave use wxWave class"
209 ac_help="$ac_help
210 --enable-fraction use wxFraction class"
211 ac_help="$ac_help
212 --enable-dynlib use wxLibrary class for DLL loading"
213 ac_help="$ac_help
214 --enable-dynamicloader use (new) wxDynamicLibrary class"
215 ac_help="$ac_help
216 --enable-longlong use wxLongLong class"
217 ac_help="$ac_help
218 --enable-geometry use geometry class"
219 ac_help="$ac_help
220 --enable-log use logging system"
221 ac_help="$ac_help
222 --enable-streams use wxStream etc classes"
223 ac_help="$ac_help
224 --enable-file use wxFile classes"
225 ac_help="$ac_help
226 --enable-ffile use wxFFile classes"
227 ac_help="$ac_help
228 --enable-textbuf use wxTextBuffer class"
229 ac_help="$ac_help
230 --enable-textfile use wxTextFile class"
231 ac_help="$ac_help
232 --enable-fontmap use font encodings conversion classes"
233 ac_help="$ac_help
234 --enable-unicode compile wxString with Unicode support"
235 ac_help="$ac_help
236 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
237 ac_help="$ac_help
238 --enable-wxprintfv use wxWindows implementation of vprintf()"
239 ac_help="$ac_help
240 --enable-std_iostreams use standard C++ stream classes"
241 ac_help="$ac_help
242 --enable-filesystem use virtual file systems classes"
243 ac_help="$ac_help
244 --enable-fs_inet use virtual HTTP/FTP filesystems"
245 ac_help="$ac_help
246 --enable-fs_zip use virtual ZIP filesystems"
247 ac_help="$ac_help
248 --enable-zipstream use wxZipInputStream"
249 ac_help="$ac_help
250 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
251 ac_help="$ac_help
252 --enable-snglinst use wxSingleInstanceChecker class"
253 ac_help="$ac_help
254 --enable-mimetype use wxMimeTypesManager"
255 ac_help="$ac_help
256 --enable-sysoptions use wxSystemOptions"
257 ac_help="$ac_help
258 --enable-url use wxURL class"
259 ac_help="$ac_help
260 --enable-protocol use wxProtocol class"
261 ac_help="$ac_help
262 --enable-protocol-http HTTP support in wxProtocol"
263 ac_help="$ac_help
264 --enable-protocol-ftp FTP support in wxProtocol"
265 ac_help="$ac_help
266 --enable-protocol-file FILE support in wxProtocol"
267 ac_help="$ac_help
268 --enable-threads use threads"
269 ac_help="$ac_help
270 --enable-docview use document view architecture"
271 ac_help="$ac_help
272 --enable-help use help subsystem"
273 ac_help="$ac_help
274 --enable-mshtmlhelp use MS HTML Help (win32)"
275 ac_help="$ac_help
276 --enable-html use wxHTML sub-library"
277 ac_help="$ac_help
278 --enable-htmlhelp use wxHTML-based help"
279 ac_help="$ac_help
280 --enable-constraints use layout-constraints system"
281 ac_help="$ac_help
282 --enable-printarch use printing architecture"
283 ac_help="$ac_help
284 --enable-mdi use multiple document interface architecture"
285 ac_help="$ac_help
286 --enable-loggui use standard GUI logger"
287 ac_help="$ac_help
288 --enable-logwin use wxLogWindow"
289 ac_help="$ac_help
290 --enable-logdialog use wxLogDialog"
291 ac_help="$ac_help
292 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
293 ac_help="$ac_help
294 --enable-prologio use Prolog IO library"
295 ac_help="$ac_help
296 --enable-resources use wxWindows resources"
297 ac_help="$ac_help
298 --enable-xresources use X resources for save (default for gtk+)"
299 ac_help="$ac_help
300 --enable-clipboard use wxClipboard class"
301 ac_help="$ac_help
302 --enable-dnd use Drag'n'Drop classes"
303 ac_help="$ac_help
304 --enable-metafile use win32 metafiles"
305 ac_help="$ac_help
306 --enable-treelayout use wxTreeLayout class"
307 ac_help="$ac_help
308 --enable-controls use all usual controls"
309 ac_help="$ac_help
310 --enable-accel use accelerators"
311 ac_help="$ac_help
312 --enable-button use wxButton class"
313 ac_help="$ac_help
314 --enable-bmpbutton use wxBitmapButton class"
315 ac_help="$ac_help
316 --enable-calendar use wxCalendarCtrl class"
317 ac_help="$ac_help
318 --enable-caret use wxCaret class"
319 ac_help="$ac_help
320 --enable-checkbox use wxCheckBox class"
321 ac_help="$ac_help
322 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
323 ac_help="$ac_help
324 --enable-choice use wxChoice class"
325 ac_help="$ac_help
326 --enable-combobox use wxComboBox class"
327 ac_help="$ac_help
328 --enable-display use wxDisplay class"
329 ac_help="$ac_help
330 --enable-gauge use wxGauge class"
331 ac_help="$ac_help
332 --enable-grid use wxGrid class"
333 ac_help="$ac_help
334 --enable-newgrid use new wxGrid class"
335 ac_help="$ac_help
336 --enable-imaglist use wxImageList class"
337 ac_help="$ac_help
338 --enable-listbox use wxListBox class"
339 ac_help="$ac_help
340 --enable-listctrl use wxListCtrl class"
341 ac_help="$ac_help
342 --enable-notebook use wxNotebook class"
343 ac_help="$ac_help
344 --enable-propsheet use wxPropertySheet class"
345 ac_help="$ac_help
346 --enable-radiobox use wxRadioBox class"
347 ac_help="$ac_help
348 --enable-radiobtn use wxRadioButton class"
349 ac_help="$ac_help
350 --enable-sash use wxSashWindow class"
351 ac_help="$ac_help
352 --enable-scrollbar use wxScrollBar class and scrollable windows"
353 ac_help="$ac_help
354 --enable-slider use wxSlider class"
355 ac_help="$ac_help
356 --enable-spinbtn use wxSpinButton class"
357 ac_help="$ac_help
358 --enable-spinctrl use wxSpinCtrl class"
359 ac_help="$ac_help
360 --enable-splitter use wxSplitterWindow class"
361 ac_help="$ac_help
362 --enable-statbmp use wxStaticBitmap class"
363 ac_help="$ac_help
364 --enable-statbox use wxStaticBox class"
365 ac_help="$ac_help
366 --enable-statline use wxStaticLine class"
367 ac_help="$ac_help
368 --enable-stattext use wxStaticText class"
369 ac_help="$ac_help
370 --enable-statusbar use wxStatusBar class"
371 ac_help="$ac_help
372 --enable-tabdialog use wxTabControl class"
373 ac_help="$ac_help
374 --enable-textctrl use wxTextCtrl class"
375 ac_help="$ac_help
376 --enable-togglebtn use wxToggleButton class"
377 ac_help="$ac_help
378 --enable-toolbar use wxToolBar class"
379 ac_help="$ac_help
380 --enable-tbarnative use native wxToolBar class"
381 ac_help="$ac_help
382 --enable-tbarsmpl use wxToolBarSimple class"
383 ac_help="$ac_help
384 --enable-treectrl use wxTreeCtrl class"
385 ac_help="$ac_help
386 --enable-tipwindow use wxTipWindow class"
387 ac_help="$ac_help
388 --enable-popupwin use wxPopUpWindow class"
389 ac_help="$ac_help
390 --enable-commondlg use all common dialogs"
391 ac_help="$ac_help
392 --enable-choicedlg use wxChoiceDialog"
393 ac_help="$ac_help
394 --enable-coldlg use wxColourDialog"
395 ac_help="$ac_help
396 --enable-filedlg use wxFileDialog"
397 ac_help="$ac_help
398 --enable-finddlg use wxFindReplaceDialog"
399 ac_help="$ac_help
400 --enable-fontdlg use wxFontDialog"
401 ac_help="$ac_help
402 --enable-dirdlg use wxDirDialog"
403 ac_help="$ac_help
404 --enable-msgdlg use wxMessageDialog"
405 ac_help="$ac_help
406 --enable-numberdlg use wxNumberEntryDialog"
407 ac_help="$ac_help
408 --enable-splash use wxSplashScreen"
409 ac_help="$ac_help
410 --enable-textdlg use wxTextDialog"
411 ac_help="$ac_help
412 --enable-tipdlg use startup tips"
413 ac_help="$ac_help
414 --enable-progressdlg use wxProgressDialog"
415 ac_help="$ac_help
416 --enable-wizarddlg use wxWizard"
417 ac_help="$ac_help
418 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
419 ac_help="$ac_help
420 --enable-miniframe use wxMiniFrame class"
421 ac_help="$ac_help
422 --enable-tooltips use wxToolTip class"
423 ac_help="$ac_help
424 --enable-splines use spline drawing code"
425 ac_help="$ac_help
426 --enable-validators use wxValidator and derived classes"
427 ac_help="$ac_help
428 --enable-busyinfo use wxBusyInfo"
429 ac_help="$ac_help
430 --enable-joystick use wxJoystick (Linux only)"
431 ac_help="$ac_help
432 --enable-metafiles use wxMetaFile (Windows only)"
433 ac_help="$ac_help
434 --enable-dragimage use wxDragImage"
435 ac_help="$ac_help
436 --enable-palette use wxPalette class"
437 ac_help="$ac_help
438 --enable-image use wxImage class"
439 ac_help="$ac_help
440 --enable-gif use gif images (GIF file format)"
441 ac_help="$ac_help
442 --enable-pcx use pcx images (PCX file format)"
443 ac_help="$ac_help
444 --enable-iff use iff images (IFF file format)"
445 ac_help="$ac_help
446 --enable-pnm use pnm images (PNM file format)"
447 ac_help="$ac_help
448 --enable-xpm use xpm images (XPM file format)"
449 ac_help="$ac_help
450 --enable-icocur use Windows ICO and CUR formats"
451 ac_help="$ac_help
452 --disable-largefile omit support for large files"
453 ac_help="$ac_help
454 --disable-gtktest do not try to compile and run a test GTK+ program"
455 ac_help="$ac_help
456 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
457 ac_help="$ac_help
458 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
459 ac_help="$ac_help
460 --disable-gtktest Do not try to compile and run a test GTK program"
461 ac_help="$ac_help
462 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
463 ac_help="$ac_help
464 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
465 ac_help="$ac_help
466 --disable-gtktest Do not try to compile and run a test GTK program"
467 ac_help="$ac_help
468 --with-x use the X Window System"
469 ac_help="$ac_help
470 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
471
472 # Initialize some variables set by options.
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 build=NONE
476 cache_file=./config.cache
477 exec_prefix=NONE
478 host=NONE
479 no_create=
480 nonopt=NONE
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 target=NONE
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 # Initialize some other variables.
507 subdirs=
508 MFLAGS= MAKEFLAGS=
509 SHELL=${CONFIG_SHELL-/bin/sh}
510 # Maximum number of lines to put in a shell here document.
511 ac_max_here_lines=12
512
513 ac_prev=
514 for ac_option
515 do
516
517 # If the previous option needs an argument, assign it.
518 if test -n "$ac_prev"; then
519 eval "$ac_prev=\$ac_option"
520 ac_prev=
521 continue
522 fi
523
524 case "$ac_option" in
525 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
526 *) ac_optarg= ;;
527 esac
528
529 # Accept the important Cygnus configure options, so we can diagnose typos.
530
531 case "$ac_option" in
532
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
534 ac_prev=bindir ;;
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536 bindir="$ac_optarg" ;;
537
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build="$ac_optarg" ;;
542
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file="$ac_optarg" ;;
549
550 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551 ac_prev=datadir ;;
552 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553 | --da=*)
554 datadir="$ac_optarg" ;;
555
556 -disable-* | --disable-*)
557 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
558 # Reject names that are not valid shell variable names.
559 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
560 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
561 fi
562 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
563 eval "enable_${ac_feature}=no" ;;
564
565 -enable-* | --enable-*)
566 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
567 # Reject names that are not valid shell variable names.
568 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
569 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
570 fi
571 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
572 case "$ac_option" in
573 *=*) ;;
574 *) ac_optarg=yes ;;
575 esac
576 eval "enable_${ac_feature}='$ac_optarg'" ;;
577
578 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580 | --exec | --exe | --ex)
581 ac_prev=exec_prefix ;;
582 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584 | --exec=* | --exe=* | --ex=*)
585 exec_prefix="$ac_optarg" ;;
586
587 -gas | --gas | --ga | --g)
588 # Obsolete; use --with-gas.
589 with_gas=yes ;;
590
591 -help | --help | --hel | --he)
592 # Omit some internal or obsolete options to make the list less imposing.
593 # This message is too long to be a string in the A/UX 3.1 sh.
594 cat << EOF
595 Usage: configure [options] [host]
596 Options: [defaults in brackets after descriptions]
597 Configuration:
598 --cache-file=FILE cache test results in FILE
599 --help print this message
600 --no-create do not create output files
601 --quiet, --silent do not print \`checking...' messages
602 --version print the version of autoconf that created configure
603 Directory and file names:
604 --prefix=PREFIX install architecture-independent files in PREFIX
605 [$ac_default_prefix]
606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
607 [same as prefix]
608 --bindir=DIR user executables in DIR [EPREFIX/bin]
609 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
610 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
611 --datadir=DIR read-only architecture-independent data in DIR
612 [PREFIX/share]
613 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
614 --sharedstatedir=DIR modifiable architecture-independent data in DIR
615 [PREFIX/com]
616 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
617 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
618 --includedir=DIR C header files in DIR [PREFIX/include]
619 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
620 --infodir=DIR info documentation in DIR [PREFIX/info]
621 --mandir=DIR man documentation in DIR [PREFIX/man]
622 --srcdir=DIR find the sources in DIR [configure dir or ..]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM
626 run sed PROGRAM on installed program names
627 EOF
628 cat << EOF
629 Host type:
630 --build=BUILD configure for building on BUILD [BUILD=HOST]
631 --host=HOST configure for HOST [guessed]
632 --target=TARGET configure for TARGET [TARGET=HOST]
633 Features and packages:
634 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
635 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
638 --x-includes=DIR X include files are in DIR
639 --x-libraries=DIR X library files are in DIR
640 EOF
641 if test -n "$ac_help"; then
642 echo "--enable and --with options recognized:$ac_help"
643 fi
644 exit 0 ;;
645
646 -host | --host | --hos | --ho)
647 ac_prev=host ;;
648 -host=* | --host=* | --hos=* | --ho=*)
649 host="$ac_optarg" ;;
650
651 -includedir | --includedir | --includedi | --included | --include \
652 | --includ | --inclu | --incl | --inc)
653 ac_prev=includedir ;;
654 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
655 | --includ=* | --inclu=* | --incl=* | --inc=*)
656 includedir="$ac_optarg" ;;
657
658 -infodir | --infodir | --infodi | --infod | --info | --inf)
659 ac_prev=infodir ;;
660 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
661 infodir="$ac_optarg" ;;
662
663 -libdir | --libdir | --libdi | --libd)
664 ac_prev=libdir ;;
665 -libdir=* | --libdir=* | --libdi=* | --libd=*)
666 libdir="$ac_optarg" ;;
667
668 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
669 | --libexe | --libex | --libe)
670 ac_prev=libexecdir ;;
671 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
672 | --libexe=* | --libex=* | --libe=*)
673 libexecdir="$ac_optarg" ;;
674
675 -localstatedir | --localstatedir | --localstatedi | --localstated \
676 | --localstate | --localstat | --localsta | --localst \
677 | --locals | --local | --loca | --loc | --lo)
678 ac_prev=localstatedir ;;
679 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
680 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
681 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
682 localstatedir="$ac_optarg" ;;
683
684 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
685 ac_prev=mandir ;;
686 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
687 mandir="$ac_optarg" ;;
688
689 -nfp | --nfp | --nf)
690 # Obsolete; use --without-fp.
691 with_fp=no ;;
692
693 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
694 | --no-cr | --no-c)
695 no_create=yes ;;
696
697 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
698 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
699 no_recursion=yes ;;
700
701 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
702 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
703 | --oldin | --oldi | --old | --ol | --o)
704 ac_prev=oldincludedir ;;
705 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
706 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
707 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
708 oldincludedir="$ac_optarg" ;;
709
710 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
711 ac_prev=prefix ;;
712 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
713 prefix="$ac_optarg" ;;
714
715 -program-prefix | --program-prefix | --program-prefi | --program-pref \
716 | --program-pre | --program-pr | --program-p)
717 ac_prev=program_prefix ;;
718 -program-prefix=* | --program-prefix=* | --program-prefi=* \
719 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
720 program_prefix="$ac_optarg" ;;
721
722 -program-suffix | --program-suffix | --program-suffi | --program-suff \
723 | --program-suf | --program-su | --program-s)
724 ac_prev=program_suffix ;;
725 -program-suffix=* | --program-suffix=* | --program-suffi=* \
726 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
727 program_suffix="$ac_optarg" ;;
728
729 -program-transform-name | --program-transform-name \
730 | --program-transform-nam | --program-transform-na \
731 | --program-transform-n | --program-transform- \
732 | --program-transform | --program-transfor \
733 | --program-transfo | --program-transf \
734 | --program-trans | --program-tran \
735 | --progr-tra | --program-tr | --program-t)
736 ac_prev=program_transform_name ;;
737 -program-transform-name=* | --program-transform-name=* \
738 | --program-transform-nam=* | --program-transform-na=* \
739 | --program-transform-n=* | --program-transform-=* \
740 | --program-transform=* | --program-transfor=* \
741 | --program-transfo=* | --program-transf=* \
742 | --program-trans=* | --program-tran=* \
743 | --progr-tra=* | --program-tr=* | --program-t=*)
744 program_transform_name="$ac_optarg" ;;
745
746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
747 | -silent | --silent | --silen | --sile | --sil)
748 silent=yes ;;
749
750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
751 ac_prev=sbindir ;;
752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
753 | --sbi=* | --sb=*)
754 sbindir="$ac_optarg" ;;
755
756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
758 | --sharedst | --shareds | --shared | --share | --shar \
759 | --sha | --sh)
760 ac_prev=sharedstatedir ;;
761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
764 | --sha=* | --sh=*)
765 sharedstatedir="$ac_optarg" ;;
766
767 -site | --site | --sit)
768 ac_prev=site ;;
769 -site=* | --site=* | --sit=*)
770 site="$ac_optarg" ;;
771
772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
773 ac_prev=srcdir ;;
774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
775 srcdir="$ac_optarg" ;;
776
777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
778 | --syscon | --sysco | --sysc | --sys | --sy)
779 ac_prev=sysconfdir ;;
780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
782 sysconfdir="$ac_optarg" ;;
783
784 -target | --target | --targe | --targ | --tar | --ta | --t)
785 ac_prev=target ;;
786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
787 target="$ac_optarg" ;;
788
789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
790 verbose=yes ;;
791
792 -version | --version | --versio | --versi | --vers)
793 echo "configure generated by autoconf version 2.13"
794 exit 0 ;;
795
796 -with-* | --with-*)
797 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
798 # Reject names that are not valid shell variable names.
799 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
800 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
801 fi
802 ac_package=`echo $ac_package| sed 's/-/_/g'`
803 case "$ac_option" in
804 *=*) ;;
805 *) ac_optarg=yes ;;
806 esac
807 eval "with_${ac_package}='$ac_optarg'" ;;
808
809 -without-* | --without-*)
810 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
811 # Reject names that are not valid shell variable names.
812 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
813 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
814 fi
815 ac_package=`echo $ac_package| sed 's/-/_/g'`
816 eval "with_${ac_package}=no" ;;
817
818 --x)
819 # Obsolete; use --with-x.
820 with_x=yes ;;
821
822 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
823 | --x-incl | --x-inc | --x-in | --x-i)
824 ac_prev=x_includes ;;
825 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
826 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
827 x_includes="$ac_optarg" ;;
828
829 -x-libraries | --x-libraries | --x-librarie | --x-librari \
830 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
831 ac_prev=x_libraries ;;
832 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
833 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
834 x_libraries="$ac_optarg" ;;
835
836 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
837 ;;
838
839 *)
840 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
841 echo "configure: warning: $ac_option: invalid host type" 1>&2
842 fi
843 if test "x$nonopt" != xNONE; then
844 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
845 fi
846 nonopt="$ac_option"
847 ;;
848
849 esac
850 done
851
852 if test -n "$ac_prev"; then
853 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
854 fi
855
856 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
857
858 # File descriptor usage:
859 # 0 standard input
860 # 1 file creation
861 # 2 errors and warnings
862 # 3 some systems may open it to /dev/tty
863 # 4 used on the Kubota Titan
864 # 6 checking for... messages and results
865 # 5 compiler messages saved in config.log
866 if test "$silent" = yes; then
867 exec 6>/dev/null
868 else
869 exec 6>&1
870 fi
871 exec 5>./config.log
872
873 echo "\
874 This file contains any messages produced by compilers while
875 running configure, to aid debugging if configure makes a mistake.
876 " 1>&5
877
878 # Strip out --no-create and --no-recursion so they do not pile up.
879 # Also quote any args containing shell metacharacters.
880 ac_configure_args=
881 for ac_arg
882 do
883 case "$ac_arg" in
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c) ;;
886 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
887 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
888 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
889 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
890 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
891 esac
892 done
893
894 # NLS nuisances.
895 # Only set these to C if already set. These must not be set unconditionally
896 # because not all systems understand e.g. LANG=C (notably SCO).
897 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
898 # Non-C LC_CTYPE values break the ctype check.
899 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
900 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
901 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
902 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
903
904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
905 rm -rf conftest* confdefs.h
906 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
907 echo > confdefs.h
908
909 # A filename unique to this package, relative to the directory that
910 # configure is in, which we can look for to find out if srcdir is correct.
911 ac_unique_file=wx-config.in
912
913 # Find the source files, if location was not specified.
914 if test -z "$srcdir"; then
915 ac_srcdir_defaulted=yes
916 # Try the directory containing this script, then its parent.
917 ac_prog=$0
918 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
919 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
920 srcdir=$ac_confdir
921 if test ! -r $srcdir/$ac_unique_file; then
922 srcdir=..
923 fi
924 else
925 ac_srcdir_defaulted=no
926 fi
927 if test ! -r $srcdir/$ac_unique_file; then
928 if test "$ac_srcdir_defaulted" = yes; then
929 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
930 else
931 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
932 fi
933 fi
934 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
935
936 # Prefer explicitly selected file to automatically selected ones.
937 if test -z "$CONFIG_SITE"; then
938 if test "x$prefix" != xNONE; then
939 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
940 else
941 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
942 fi
943 fi
944 for ac_site_file in $CONFIG_SITE; do
945 if test -r "$ac_site_file"; then
946 echo "loading site script $ac_site_file"
947 . "$ac_site_file"
948 fi
949 done
950
951 if test -r "$cache_file"; then
952 echo "loading cache $cache_file"
953 . $cache_file
954 else
955 echo "creating cache $cache_file"
956 > $cache_file
957 fi
958
959 ac_ext=c
960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961 ac_cpp='$CPP $CPPFLAGS'
962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964 cross_compiling=$ac_cv_prog_cc_cross
965
966 ac_exeext=
967 ac_objext=o
968 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
969 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
970 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
971 ac_n= ac_c='
972 ' ac_t=' '
973 else
974 ac_n=-n ac_c= ac_t=
975 fi
976 else
977 ac_n= ac_c='\c' ac_t=
978 fi
979
980
981
982 ac_aux_dir=
983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984 if test -f $ac_dir/install-sh; then
985 ac_aux_dir=$ac_dir
986 ac_install_sh="$ac_aux_dir/install-sh -c"
987 break
988 elif test -f $ac_dir/install.sh; then
989 ac_aux_dir=$ac_dir
990 ac_install_sh="$ac_aux_dir/install.sh -c"
991 break
992 fi
993 done
994 if test -z "$ac_aux_dir"; then
995 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
996 fi
997 ac_config_guess=$ac_aux_dir/config.guess
998 ac_config_sub=$ac_aux_dir/config.sub
999 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1000
1001
1002 # Do some error checking and defaulting for the host and target type.
1003 # The inputs are:
1004 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 #
1006 # The rules are:
1007 # 1. You are not allowed to specify --host, --target, and nonopt at the
1008 # same time.
1009 # 2. Host defaults to nonopt.
1010 # 3. If nonopt is not specified, then host defaults to the current host,
1011 # as determined by config.guess.
1012 # 4. Target and build default to nonopt.
1013 # 5. If nonopt is not specified, then target and build default to host.
1014
1015 # The aliases save the names the user supplied, while $host etc.
1016 # will get canonicalized.
1017 case $host---$target---$nonopt in
1018 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1019 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 esac
1021
1022
1023 # Make sure we can run config.sub.
1024 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1025 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1026 fi
1027
1028 echo $ac_n "checking host system type""... $ac_c" 1>&6
1029 echo "configure:1030: checking host system type" >&5
1030
1031 host_alias=$host
1032 case "$host_alias" in
1033 NONE)
1034 case $nonopt in
1035 NONE)
1036 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1037 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1038 fi ;;
1039 *) host_alias=$nonopt ;;
1040 esac ;;
1041 esac
1042
1043 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1044 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$host" 1>&6
1048
1049 echo $ac_n "checking target system type""... $ac_c" 1>&6
1050 echo "configure:1051: checking target system type" >&5
1051
1052 target_alias=$target
1053 case "$target_alias" in
1054 NONE)
1055 case $nonopt in
1056 NONE) target_alias=$host_alias ;;
1057 *) target_alias=$nonopt ;;
1058 esac ;;
1059 esac
1060
1061 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1062 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$target" 1>&6
1066
1067 echo $ac_n "checking build system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking build system type" >&5
1069
1070 build_alias=$build
1071 case "$build_alias" in
1072 NONE)
1073 case $nonopt in
1074 NONE) build_alias=$host_alias ;;
1075 *) build_alias=$nonopt ;;
1076 esac ;;
1077 esac
1078
1079 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1080 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1081 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1082 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1083 echo "$ac_t""$build" 1>&6
1084
1085 test "$host_alias" != "$target_alias" &&
1086 test "$program_prefix$program_suffix$program_transform_name" = \
1087 NONENONEs,x,x, &&
1088 program_prefix=${target_alias}-
1089
1090
1091
1092 WX_MAJOR_VERSION_NUMBER=2
1093 WX_MINOR_VERSION_NUMBER=5
1094 WX_RELEASE_NUMBER=0
1095
1096 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1097 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1098
1099 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1100
1101 WX_CURRENT=0
1102 WX_REVISION=0
1103 WX_AGE=0
1104
1105
1106
1107 USE_UNIX=1
1108 USE_WIN32=0
1109 USE_DOS=0
1110 USE_BEOS=0
1111 USE_MAC=0
1112
1113 USE_LINUX=
1114 USE_SGI=
1115 USE_HPUX=
1116 USE_SYSV=
1117 USE_SVR4=
1118 USE_AIX=
1119 USE_SUN=
1120 USE_SOLARIS=
1121 USE_SUNOS=
1122 USE_ALPHA=
1123 USE_OSF=
1124 USE_BSD=
1125 USE_DARWIN=
1126 USE_FREEBSD=
1127 USE_OPENBSD=
1128 USE_NETBSD=
1129 USE_VMS=
1130 USE_ULTRIX=
1131 USE_DATA_GENERAL=
1132
1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1134
1135 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1136
1137 DEFAULT_wxUSE_COCOA=0
1138 DEFAULT_wxUSE_GTK=0
1139 DEFAULT_wxUSE_MAC=0
1140 DEFAULT_wxUSE_MGL=0
1141 DEFAULT_wxUSE_MICROWIN=0
1142 DEFAULT_wxUSE_MOTIF=0
1143 DEFAULT_wxUSE_MSW=0
1144 DEFAULT_wxUSE_PM=0
1145 DEFAULT_wxUSE_X11=0
1146
1147 DEFAULT_DEFAULT_wxUSE_COCOA=0
1148 DEFAULT_DEFAULT_wxUSE_GTK=0
1149 DEFAULT_DEFAULT_wxUSE_MAC=0
1150 DEFAULT_DEFAULT_wxUSE_MGL=0
1151 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1152 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1153 DEFAULT_DEFAULT_wxUSE_MSW=0
1154 DEFAULT_DEFAULT_wxUSE_PM=0
1155 DEFAULT_DEFAULT_wxUSE_X11=0
1156
1157 PROGRAM_EXT=
1158 SO_SUFFIX=so
1159
1160 case "${host}" in
1161 *-hp-hpux* )
1162 USE_HPUX=1
1163 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1164 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1165 SO_SUFFIX=sl
1166 cat >> confdefs.h <<\EOF
1167 #define __HPUX__ 1
1168 EOF
1169
1170 ;;
1171 *-*-linux* )
1172 USE_LINUX=1
1173 cat >> confdefs.h <<\EOF
1174 #define __LINUX__ 1
1175 EOF
1176
1177 TMP=`uname -m`
1178 if test "x$TMP" = "xalpha"; then
1179 USE_ALPHA=1
1180 cat >> confdefs.h <<\EOF
1181 #define __ALPHA__ 1
1182 EOF
1183
1184 fi
1185 DEFAULT_DEFAULT_wxUSE_GTK=1
1186 ;;
1187 *-*-irix5* | *-*-irix6* )
1188 USE_SGI=1
1189 USE_SVR4=1
1190 cat >> confdefs.h <<\EOF
1191 #define __SGI__ 1
1192 EOF
1193
1194 cat >> confdefs.h <<\EOF
1195 #define __SVR4__ 1
1196 EOF
1197
1198 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1199 ;;
1200 *-*-solaris2* )
1201 USE_SUN=1
1202 USE_SOLARIS=1
1203 USE_SVR4=1
1204 cat >> confdefs.h <<\EOF
1205 #define __SUN__ 1
1206 EOF
1207
1208 cat >> confdefs.h <<\EOF
1209 #define __SOLARIS__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __SVR4__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1218 ;;
1219 *-*-sunos4* )
1220 USE_SUN=1
1221 USE_SUNOS=1
1222 USE_BSD=1
1223 cat >> confdefs.h <<\EOF
1224 #define __SUN__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __SUNOS__ 1
1229 EOF
1230
1231 cat >> confdefs.h <<\EOF
1232 #define __BSD__ 1
1233 EOF
1234
1235 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1236 ;;
1237 *-*-freebsd*)
1238 USE_BSD=1
1239 USE_FREEBSD=1
1240 cat >> confdefs.h <<\EOF
1241 #define __FREEBSD__ 1
1242 EOF
1243
1244 cat >> confdefs.h <<\EOF
1245 #define __BSD__ 1
1246 EOF
1247
1248 DEFAULT_DEFAULT_wxUSE_GTK=1
1249 ;;
1250 *-*-openbsd*)
1251 USE_BSD=1
1252 USE_OPENBSD=1
1253 cat >> confdefs.h <<\EOF
1254 #define __OPENBSD__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __BSD__ 1
1259 EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_GTK=1
1262 ;;
1263 *-*-netbsd*)
1264 USE_BSD=1
1265 USE_NETBSD=1
1266 cat >> confdefs.h <<\EOF
1267 #define __NETBSD__ 1
1268 EOF
1269
1270 cat >> confdefs.h <<\EOF
1271 #define __BSD__ 1
1272 EOF
1273
1274 DEFAULT_DEFAULT_wxUSE_GTK=1
1275 ;;
1276 *-*-osf* )
1277 USE_ALPHA=1
1278 USE_OSF=1
1279 cat >> confdefs.h <<\EOF
1280 #define __ALPHA__ 1
1281 EOF
1282
1283 cat >> confdefs.h <<\EOF
1284 #define __OSF__ 1
1285 EOF
1286
1287 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1288 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1289 ;;
1290 *-*-dgux5* )
1291 USE_ALPHA=1
1292 USE_SVR4=1
1293 cat >> confdefs.h <<\EOF
1294 #define __ALPHA__ 1
1295 EOF
1296
1297 cat >> confdefs.h <<\EOF
1298 #define __SVR4__ 1
1299 EOF
1300
1301 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1302 ;;
1303 *-*-sysv5* )
1304 USE_SYSV=1
1305 USE_SVR4=1
1306 cat >> confdefs.h <<\EOF
1307 #define __SYSV__ 1
1308 EOF
1309
1310 cat >> confdefs.h <<\EOF
1311 #define __SVR4__ 1
1312 EOF
1313
1314 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1315 ;;
1316 *-*-aix* )
1317 USE_AIX=1
1318 USE_SYSV=1
1319 USE_SVR4=1
1320 SO_SUFFIX=a
1321 cat >> confdefs.h <<\EOF
1322 #define __AIX__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define __SYSV__ 1
1327 EOF
1328
1329 cat >> confdefs.h <<\EOF
1330 #define __SVR4__ 1
1331 EOF
1332
1333 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1334 ;;
1335
1336 *-*-cygwin* | *-*-mingw32* )
1337 SO_SUFFIX=dll
1338 PROGRAM_EXT=".exe"
1339 RESCOMP=windres
1340 DEFAULT_DEFAULT_wxUSE_MSW=1
1341 ;;
1342
1343 *-pc-msdosdjgpp )
1344 USE_UNIX=0
1345 USE_DOS=1
1346 cat >> confdefs.h <<\EOF
1347 #define __DOS__ 1
1348 EOF
1349
1350 PROGRAM_EXT=".exe"
1351 DEFAULT_DEFAULT_wxUSE_MGL=1
1352 LIBS="$LIBS -lstdc++"
1353 ;;
1354
1355 *-pc-os2_emx | *-pc-os2-emx )
1356 cat >> confdefs.h <<\EOF
1357 #define __EMX__ 1
1358 EOF
1359
1360 PROGRAM_EXT=".exe"
1361 DEFAULT_DEFAULT_wxUSE_PM=1
1362 ;;
1363
1364 powerpc-*-darwin* )
1365 USE_BSD=1
1366 USE_DARWIN=1
1367 SO_SUFFIX=dylib
1368 cat >> confdefs.h <<\EOF
1369 #define __BSD__ 1
1370 EOF
1371
1372 cat >> confdefs.h <<\EOF
1373 #define __DARWIN__ 1
1374 EOF
1375
1376 cat >> confdefs.h <<\EOF
1377 #define __POWERPC__ 1
1378 EOF
1379
1380 cat >> confdefs.h <<\EOF
1381 #define TARGET_CARBON 1
1382 EOF
1383
1384 DEFAULT_DEFAULT_wxUSE_MAC=1
1385 ;;
1386
1387 *-*-beos* )
1388 USE_BEOS=1
1389 cat >> confdefs.h <<\EOF
1390 #define __BEOS__ 1
1391 EOF
1392
1393 ;;
1394
1395 *)
1396 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1397 esac
1398
1399
1400
1401
1402 wx_arg_cache_file="configarg.cache"
1403 echo "loading argument cache $wx_arg_cache_file"
1404 rm -f ${wx_arg_cache_file}.tmp
1405 touch ${wx_arg_cache_file}.tmp
1406 touch ${wx_arg_cache_file}
1407
1408
1409 DEBUG_CONFIGURE=0
1410 if test $DEBUG_CONFIGURE = 1; then
1411 DEFAULT_wxUSE_UNIVERSAL=no
1412
1413 DEFAULT_wxUSE_NANOX=no
1414
1415 DEFAULT_wxUSE_THREADS=yes
1416
1417 DEFAULT_wxUSE_SHARED=yes
1418 DEFAULT_wxUSE_SONAME=no
1419 DEFAULT_wxUSE_OPTIMISE=no
1420 DEFAULT_wxUSE_PROFILE=no
1421 DEFAULT_wxUSE_NO_DEPS=no
1422 DEFAULT_wxUSE_NO_RTTI=no
1423 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1424 DEFAULT_wxUSE_PERMISSIVE=no
1425 DEFAULT_wxUSE_DEBUG_FLAG=yes
1426 DEFAULT_wxUSE_DEBUG_INFO=yes
1427 DEFAULT_wxUSE_DEBUG_GDB=yes
1428 DEFAULT_wxUSE_MEM_TRACING=no
1429 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1430 DEFAULT_wxUSE_DMALLOC=no
1431 DEFAULT_wxUSE_PRECOMP=no
1432 DEFAULT_wxUSE_APPLE_IEEE=no
1433
1434 DEFAULT_wxUSE_LOG=yes
1435 DEFAULT_wxUSE_LOGWINDOW=no
1436 DEFAULT_wxUSE_LOGGUI=no
1437 DEFAULT_wxUSE_LOGDIALOG=no
1438
1439 DEFAULT_wxUSE_GUI=yes
1440 DEFAULT_wxUSE_CONTROLS=no
1441
1442 DEFAULT_wxUSE_REGEX=no
1443 DEFAULT_wxUSE_ZLIB=no
1444 DEFAULT_wxUSE_LIBPNG=no
1445 DEFAULT_wxUSE_LIBJPEG=no
1446 DEFAULT_wxUSE_LIBTIFF=no
1447 DEFAULT_wxUSE_ODBC=no
1448 DEFAULT_wxUSE_OPENGL=no
1449
1450 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1451 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1452 DEFAULT_wxUSE_STD_IOSTREAM=no
1453 DEFAULT_wxUSE_CMDLINE_PARSER=no
1454 DEFAULT_wxUSE_DATETIME=no
1455 DEFAULT_wxUSE_TIMEDATE=no
1456 DEFAULT_wxUSE_TIMER=no
1457 DEFAULT_wxUSE_STOPWATCH=no
1458 DEFAULT_wxUSE_FILE=no
1459 DEFAULT_wxUSE_FFILE=no
1460 DEFAULT_wxUSE_TEXTBUFFER=no
1461 DEFAULT_wxUSE_TEXTFILE=no
1462 DEFAULT_wxUSE_WAVE=no
1463 DEFAULT_wxUSE_INTL=no
1464 DEFAULT_wxUSE_CONFIG=no
1465 DEFAULT_wxUSE_FONTMAP=no
1466 DEFAULT_wxUSE_STREAMS=no
1467 DEFAULT_wxUSE_SOCKETS=no
1468 DEFAULT_wxUSE_OLE=no
1469 DEFAULT_wxUSE_DATAOBJ=no
1470 DEFAULT_wxUSE_DIALUP_MANAGER=no
1471 DEFAULT_wxUSE_JOYSTICK=no
1472 DEFAULT_wxUSE_DYNLIB_CLASS=no
1473 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1474 DEFAULT_wxUSE_LONGLONG=no
1475 DEFAULT_wxUSE_GEOMETRY=no
1476
1477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1479 DEFAULT_wxUSE_POSTSCRIPT=no
1480
1481 DEFAULT_wxUSE_X_RESOURCES=no
1482 DEFAULT_wxUSE_CLIPBOARD=no
1483 DEFAULT_wxUSE_TOOLTIPS=no
1484 DEFAULT_wxUSE_DRAG_AND_DROP=no
1485 DEFAULT_wxUSE_DRAGIMAGE=no
1486 DEFAULT_wxUSE_SPLINES=no
1487
1488 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1489 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1490 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1491
1492 DEFAULT_wxUSE_PROLOGIO=no
1493 DEFAULT_wxUSE_RESOURCES=no
1494 DEFAULT_wxUSE_CONSTRAINTS=no
1495 DEFAULT_wxUSE_IPC=no
1496 DEFAULT_wxUSE_HELP=no
1497 DEFAULT_wxUSE_MS_HTML_HELP=no
1498 DEFAULT_wxUSE_WXHTML_HELP=no
1499 DEFAULT_wxUSE_TREELAYOUT=no
1500 DEFAULT_wxUSE_METAFILE=no
1501 DEFAULT_wxUSE_MIMETYPE=no
1502 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503 DEFAULT_wxUSE_PROTOCOL=no
1504 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FILE=no
1507 DEFAULT_wxUSE_URL=no
1508
1509 DEFAULT_wxUSE_COMMONDLGS=no
1510 DEFAULT_wxUSE_CHOICEDLG=no
1511 DEFAULT_wxUSE_COLOURDLG=no
1512 DEFAULT_wxUSE_DIRDLG=no
1513 DEFAULT_wxUSE_FILEDLG=no
1514 DEFAULT_wxUSE_FINDREPLDLG=no
1515 DEFAULT_wxUSE_FONTDLG=no
1516 DEFAULT_wxUSE_MSGDLG=no
1517 DEFAULT_wxUSE_NUMBERDLG=no
1518 DEFAULT_wxUSE_TEXTDLG=no
1519 DEFAULT_wxUSE_SPLASH=no
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
1522 DEFAULT_wxUSE_WIZARDDLG=no
1523
1524 DEFAULT_wxUSE_MENUS=no
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
1527 DEFAULT_wxUSE_FILESYSTEM=no
1528 DEFAULT_wxUSE_FS_INET=no
1529 DEFAULT_wxUSE_FS_ZIP=no
1530 DEFAULT_wxUSE_BUSYINFO=no
1531 DEFAULT_wxUSE_ZIPSTREAM=no
1532 DEFAULT_wxUSE_VALIDATORS=no
1533
1534 DEFAULT_wxUSE_ACCEL=no
1535 DEFAULT_wxUSE_BUTTON=no
1536 DEFAULT_wxUSE_BMPBUTTON=no
1537 DEFAULT_wxUSE_CALCTRL=no
1538 DEFAULT_wxUSE_CARET=no
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1541 DEFAULT_wxUSE_CHOICE=no
1542 DEFAULT_wxUSE_COMBOBOX=no
1543 DEFAULT_wxUSE_DISPLAY=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_NEW_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
1551 DEFAULT_wxUSE_PROPSHEET=no
1552 DEFAULT_wxUSE_RADIOBOX=no
1553 DEFAULT_wxUSE_RADIOBTN=no
1554 DEFAULT_wxUSE_SASH=no
1555 DEFAULT_wxUSE_SCROLLBAR=no
1556 DEFAULT_wxUSE_SLIDER=no
1557 DEFAULT_wxUSE_SPINBTN=no
1558 DEFAULT_wxUSE_SPINCTRL=no
1559 DEFAULT_wxUSE_SPLITTER=no
1560 DEFAULT_wxUSE_STATBMP=no
1561 DEFAULT_wxUSE_STATBOX=no
1562 DEFAULT_wxUSE_STATLINE=no
1563 DEFAULT_wxUSE_STATTEXT=no
1564 DEFAULT_wxUSE_STATUSBAR=yes
1565 DEFAULT_wxUSE_TABDIALOG=no
1566 DEFAULT_wxUSE_TEXTCTRL=no
1567 DEFAULT_wxUSE_TOGGLEBTN=no
1568 DEFAULT_wxUSE_TOOLBAR=no
1569 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1570 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1571 DEFAULT_wxUSE_TREECTRL=no
1572 DEFAULT_wxUSE_POPUPWIN=no
1573 DEFAULT_wxUSE_TIPWINDOW=no
1574
1575 DEFAULT_wxUSE_UNICODE=no
1576 DEFAULT_wxUSE_UNICODE_MSLU=no
1577 DEFAULT_wxUSE_WCSRTOMBS=no
1578
1579 DEFAULT_wxUSE_PALETTE=no
1580 DEFAULT_wxUSE_IMAGE=no
1581 DEFAULT_wxUSE_GIF=no
1582 DEFAULT_wxUSE_PCX=no
1583 DEFAULT_wxUSE_PNM=no
1584 DEFAULT_wxUSE_IFF=no
1585 DEFAULT_wxUSE_XPM=no
1586 DEFAULT_wxUSE_ICO_CUR=no
1587 else
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
1590 DEFAULT_wxUSE_NANOX=no
1591
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
1595 DEFAULT_wxUSE_SONAME=no
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
1608 DEFAULT_wxUSE_PRECOMP=no
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
1614 DEFAULT_wxUSE_LOGDIALOG=yes
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
1618 DEFAULT_wxUSE_REGEX=yes
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
1622 DEFAULT_wxUSE_LIBTIFF=yes
1623 DEFAULT_wxUSE_ODBC=no
1624 DEFAULT_wxUSE_OPENGL=no
1625
1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMEDATE=no
1632 DEFAULT_wxUSE_TIMER=yes
1633 DEFAULT_wxUSE_STOPWATCH=yes
1634 DEFAULT_wxUSE_FILE=yes
1635 DEFAULT_wxUSE_FFILE=yes
1636 DEFAULT_wxUSE_TEXTBUFFER=yes
1637 DEFAULT_wxUSE_TEXTFILE=yes
1638 DEFAULT_wxUSE_WAVE=no
1639 DEFAULT_wxUSE_INTL=yes
1640 DEFAULT_wxUSE_CONFIG=yes
1641 DEFAULT_wxUSE_FONTMAP=yes
1642 DEFAULT_wxUSE_STREAMS=yes
1643 DEFAULT_wxUSE_SOCKETS=yes
1644 DEFAULT_wxUSE_OLE=yes
1645 DEFAULT_wxUSE_DATAOBJ=yes
1646 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1647 DEFAULT_wxUSE_JOYSTICK=yes
1648 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1649 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1650 DEFAULT_wxUSE_LONGLONG=yes
1651 DEFAULT_wxUSE_GEOMETRY=yes
1652
1653 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1654 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1655 DEFAULT_wxUSE_POSTSCRIPT=yes
1656
1657 DEFAULT_wxUSE_X_RESOURCES=no
1658 DEFAULT_wxUSE_CLIPBOARD=yes
1659 DEFAULT_wxUSE_TOOLTIPS=yes
1660 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1661 DEFAULT_wxUSE_DRAGIMAGE=yes
1662 DEFAULT_wxUSE_SPLINES=yes
1663
1664 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1666 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1667
1668 DEFAULT_wxUSE_PROLOGIO=no
1669 DEFAULT_wxUSE_RESOURCES=no
1670 DEFAULT_wxUSE_CONSTRAINTS=yes
1671 DEFAULT_wxUSE_IPC=yes
1672 DEFAULT_wxUSE_HELP=yes
1673 DEFAULT_wxUSE_MS_HTML_HELP=yes
1674 DEFAULT_wxUSE_WXHTML_HELP=yes
1675 DEFAULT_wxUSE_TREELAYOUT=yes
1676 DEFAULT_wxUSE_METAFILE=yes
1677 DEFAULT_wxUSE_MIMETYPE=yes
1678 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1679 DEFAULT_wxUSE_PROTOCOL=yes
1680 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1681 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1682 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1683 DEFAULT_wxUSE_URL=yes
1684
1685 DEFAULT_wxUSE_COMMONDLGS=yes
1686 DEFAULT_wxUSE_CHOICEDLG=yes
1687 DEFAULT_wxUSE_COLOURDLG=yes
1688 DEFAULT_wxUSE_DIRDLG=yes
1689 DEFAULT_wxUSE_FILEDLG=yes
1690 DEFAULT_wxUSE_FINDREPLDLG=yes
1691 DEFAULT_wxUSE_FONTDLG=yes
1692 DEFAULT_wxUSE_MSGDLG=yes
1693 DEFAULT_wxUSE_NUMBERDLG=yes
1694 DEFAULT_wxUSE_TEXTDLG=yes
1695 DEFAULT_wxUSE_SPLASH=yes
1696 DEFAULT_wxUSE_STARTUP_TIPS=yes
1697 DEFAULT_wxUSE_PROGRESSDLG=yes
1698 DEFAULT_wxUSE_WIZARDDLG=yes
1699
1700 DEFAULT_wxUSE_MENUS=yes
1701 DEFAULT_wxUSE_MINIFRAME=yes
1702 DEFAULT_wxUSE_HTML=yes
1703 DEFAULT_wxUSE_FILESYSTEM=yes
1704 DEFAULT_wxUSE_FS_INET=yes
1705 DEFAULT_wxUSE_FS_ZIP=yes
1706 DEFAULT_wxUSE_BUSYINFO=yes
1707 DEFAULT_wxUSE_ZIPSTREAM=yes
1708 DEFAULT_wxUSE_VALIDATORS=yes
1709
1710 DEFAULT_wxUSE_ACCEL=yes
1711 DEFAULT_wxUSE_BUTTON=yes
1712 DEFAULT_wxUSE_BMPBUTTON=yes
1713 DEFAULT_wxUSE_CALCTRL=yes
1714 DEFAULT_wxUSE_CARET=yes
1715 DEFAULT_wxUSE_CHECKBOX=yes
1716 DEFAULT_wxUSE_CHECKLST=yes
1717 DEFAULT_wxUSE_CHOICE=yes
1718 DEFAULT_wxUSE_COMBOBOX=yes
1719 DEFAULT_wxUSE_DISPLAY=no
1720 DEFAULT_wxUSE_GAUGE=yes
1721 DEFAULT_wxUSE_GRID=yes
1722 DEFAULT_wxUSE_NEW_GRID=yes
1723 DEFAULT_wxUSE_IMAGLIST=yes
1724 DEFAULT_wxUSE_LISTBOX=yes
1725 DEFAULT_wxUSE_LISTCTRL=yes
1726 DEFAULT_wxUSE_NOTEBOOK=yes
1727 DEFAULT_wxUSE_PROPSHEET=yes
1728 DEFAULT_wxUSE_RADIOBOX=yes
1729 DEFAULT_wxUSE_RADIOBTN=yes
1730 DEFAULT_wxUSE_SASH=yes
1731 DEFAULT_wxUSE_SCROLLBAR=yes
1732 DEFAULT_wxUSE_SLIDER=yes
1733 DEFAULT_wxUSE_SPINBTN=yes
1734 DEFAULT_wxUSE_SPINCTRL=yes
1735 DEFAULT_wxUSE_SPLITTER=yes
1736 DEFAULT_wxUSE_STATBMP=yes
1737 DEFAULT_wxUSE_STATBOX=yes
1738 DEFAULT_wxUSE_STATLINE=yes
1739 DEFAULT_wxUSE_STATTEXT=yes
1740 DEFAULT_wxUSE_STATUSBAR=yes
1741 DEFAULT_wxUSE_TABDIALOG=no
1742 DEFAULT_wxUSE_TEXTCTRL=yes
1743 DEFAULT_wxUSE_TOGGLEBTN=yes
1744 DEFAULT_wxUSE_TOOLBAR=yes
1745 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1746 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1747 DEFAULT_wxUSE_TREECTRL=yes
1748 DEFAULT_wxUSE_POPUPWIN=yes
1749 DEFAULT_wxUSE_TIPWINDOW=yes
1750
1751 DEFAULT_wxUSE_UNICODE=no
1752 DEFAULT_wxUSE_UNICODE_MSLU=yes
1753 DEFAULT_wxUSE_WCSRTOMBS=no
1754
1755 DEFAULT_wxUSE_PALETTE=yes
1756 DEFAULT_wxUSE_IMAGE=yes
1757 DEFAULT_wxUSE_GIF=yes
1758 DEFAULT_wxUSE_PCX=yes
1759 DEFAULT_wxUSE_IFF=no
1760 DEFAULT_wxUSE_PNM=yes
1761 DEFAULT_wxUSE_XPM=yes
1762 DEFAULT_wxUSE_ICO_CUR=yes
1763 fi
1764
1765
1766
1767 for toolkit in `echo $ALL_TOOLKITS`; do
1768 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1769 if test "x$LINE" != "x" ; then
1770 has_toolkit_in_cache=1
1771 eval "DEFAULT_$LINE"
1772 eval "CACHE_$toolkit=1"
1773 fi
1774 done
1775
1776
1777
1778 enablestring=
1779 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1780 echo "configure:1781: checking for --${enablestring:-enable}-gui" >&5
1781 no_cache=0
1782 # Check whether --enable-gui or --disable-gui was given.
1783 if test "${enable_gui+set}" = set; then
1784 enableval="$enable_gui"
1785
1786 if test "$enableval" = yes; then
1787 ac_cv_use_gui='wxUSE_GUI=yes'
1788 else
1789 ac_cv_use_gui='wxUSE_GUI=no'
1790 fi
1791
1792 else
1793
1794 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1795 if test "x$LINE" != x ; then
1796 eval "DEFAULT_$LINE"
1797 else
1798 no_cache=1
1799 fi
1800
1801 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1802
1803 fi
1804
1805
1806 eval "$ac_cv_use_gui"
1807 if test "$no_cache" != 1; then
1808 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1809 fi
1810
1811 if test "$wxUSE_GUI" = yes; then
1812 echo "$ac_t""yes" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1815 fi
1816
1817
1818 if test "$wxUSE_GUI" = "yes"; then
1819
1820
1821 enablestring=
1822 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1823 echo "configure:1824: checking for --${enablestring:-enable}-universal" >&5
1824 no_cache=0
1825 # Check whether --enable-universal or --disable-universal was given.
1826 if test "${enable_universal+set}" = set; then
1827 enableval="$enable_universal"
1828
1829 if test "$enableval" = yes; then
1830 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1831 else
1832 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1833 fi
1834
1835 else
1836
1837 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1838 if test "x$LINE" != x ; then
1839 eval "DEFAULT_$LINE"
1840 else
1841 no_cache=1
1842 fi
1843
1844 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1845
1846 fi
1847
1848
1849 eval "$ac_cv_use_universal"
1850 if test "$no_cache" != 1; then
1851 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1852 fi
1853
1854 if test "$wxUSE_UNIVERSAL" = yes; then
1855 echo "$ac_t""yes" 1>&6
1856 else
1857 echo "$ac_t""no" 1>&6
1858 fi
1859
1860 # Check whether --with-gtk or --without-gtk was given.
1861 if test "${with_gtk+set}" = set; then
1862 withval="$with_gtk"
1863 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1864 fi
1865
1866 # Check whether --with-motif or --without-motif was given.
1867 if test "${with_motif+set}" = set; then
1868 withval="$with_motif"
1869 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1870 fi
1871
1872 # Check whether --with-mac or --without-mac was given.
1873 if test "${with_mac+set}" = set; then
1874 withval="$with_mac"
1875 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1876 fi
1877
1878 # Check whether --with-cocoa or --without-cocoa was given.
1879 if test "${with_cocoa+set}" = set; then
1880 withval="$with_cocoa"
1881 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1882 fi
1883
1884 # Check whether --with-wine or --without-wine was given.
1885 if test "${with_wine+set}" = set; then
1886 withval="$with_wine"
1887 wxUSE_WINE="$withval" CACHE_WINE=1
1888 fi
1889
1890 # Check whether --with-msw or --without-msw was given.
1891 if test "${with_msw+set}" = set; then
1892 withval="$with_msw"
1893 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1894 fi
1895
1896 # Check whether --with-pm or --without-pm was given.
1897 if test "${with_pm+set}" = set; then
1898 withval="$with_pm"
1899 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1900 fi
1901
1902 # Check whether --with-mgl or --without-mgl was given.
1903 if test "${with_mgl+set}" = set; then
1904 withval="$with_mgl"
1905 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1906 fi
1907
1908 # Check whether --with-microwin or --without-microwin was given.
1909 if test "${with_microwin+set}" = set; then
1910 withval="$with_microwin"
1911 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1912 fi
1913
1914 # Check whether --with-x11 or --without-x11 was given.
1915 if test "${with_x11+set}" = set; then
1916 withval="$with_x11"
1917 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1918 fi
1919
1920
1921 enablestring=
1922 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1923 echo "configure:1924: checking for --${enablestring:-enable}-nanox" >&5
1924 no_cache=0
1925 # Check whether --enable-nanox or --disable-nanox was given.
1926 if test "${enable_nanox+set}" = set; then
1927 enableval="$enable_nanox"
1928
1929 if test "$enableval" = yes; then
1930 ac_cv_use_nanox='wxUSE_NANOX=yes'
1931 else
1932 ac_cv_use_nanox='wxUSE_NANOX=no'
1933 fi
1934
1935 else
1936
1937 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1938 if test "x$LINE" != x ; then
1939 eval "DEFAULT_$LINE"
1940 else
1941 no_cache=1
1942 fi
1943
1944 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1945
1946 fi
1947
1948
1949 eval "$ac_cv_use_nanox"
1950 if test "$no_cache" != 1; then
1951 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1952 fi
1953
1954 if test "$wxUSE_NANOX" = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1958 fi
1959
1960
1961
1962 enablestring=
1963 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1964 echo "configure:1965: checking for --${enablestring:-enable}-gtk2" >&5
1965 no_cache=0
1966 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1967 if test "${enable_gtk2+set}" = set; then
1968 enableval="$enable_gtk2"
1969
1970 if test "$enableval" = yes; then
1971 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1972 else
1973 ac_cv_use_gtk2='wxUSE_GTK2=no'
1974 fi
1975
1976 else
1977
1978 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1986
1987 fi
1988
1989
1990 eval "$ac_cv_use_gtk2"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_GTK2" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 else
1998 echo "$ac_t""no" 1>&6
1999 fi
2000
2001
2002
2003 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2004 echo "configure:2005: checking for --with-libpng" >&5
2005 no_cache=0
2006 # Check whether --with-libpng or --without-libpng was given.
2007 if test "${with_libpng+set}" = set; then
2008 withval="$with_libpng"
2009
2010 if test "$withval" = yes; then
2011 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2012 elif test "$withval" = no; then
2013 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2014 elif test "$withval" = sys; then
2015 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2016 elif test "$withval" = builtin; then
2017 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2018 else
2019 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2020 fi
2021
2022 else
2023
2024 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2025 if test "x$LINE" != x ; then
2026 eval "DEFAULT_$LINE"
2027 else
2028 no_cache=1
2029 fi
2030
2031 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2032
2033 fi
2034
2035
2036 eval "$ac_cv_use_libpng"
2037 if test "$no_cache" != 1; then
2038 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2039 fi
2040
2041 if test "$wxUSE_LIBPNG" = yes; then
2042 echo "$ac_t""yes" 1>&6
2043 elif test "$wxUSE_LIBPNG" = no; then
2044 echo "$ac_t""no" 1>&6
2045 elif test "$wxUSE_LIBPNG" = sys; then
2046 echo "$ac_t""system version" 1>&6
2047 elif test "$wxUSE_LIBPNG" = builtin; then
2048 echo "$ac_t""builtin version" 1>&6
2049 else
2050 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2051 fi
2052
2053
2054 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2055 echo "configure:2056: checking for --with-libjpeg" >&5
2056 no_cache=0
2057 # Check whether --with-libjpeg or --without-libjpeg was given.
2058 if test "${with_libjpeg+set}" = set; then
2059 withval="$with_libjpeg"
2060
2061 if test "$withval" = yes; then
2062 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2063 elif test "$withval" = no; then
2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2065 elif test "$withval" = sys; then
2066 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2067 elif test "$withval" = builtin; then
2068 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2069 else
2070 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2071 fi
2072
2073 else
2074
2075 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2076 if test "x$LINE" != x ; then
2077 eval "DEFAULT_$LINE"
2078 else
2079 no_cache=1
2080 fi
2081
2082 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2083
2084 fi
2085
2086
2087 eval "$ac_cv_use_libjpeg"
2088 if test "$no_cache" != 1; then
2089 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2090 fi
2091
2092 if test "$wxUSE_LIBJPEG" = yes; then
2093 echo "$ac_t""yes" 1>&6
2094 elif test "$wxUSE_LIBJPEG" = no; then
2095 echo "$ac_t""no" 1>&6
2096 elif test "$wxUSE_LIBJPEG" = sys; then
2097 echo "$ac_t""system version" 1>&6
2098 elif test "$wxUSE_LIBJPEG" = builtin; then
2099 echo "$ac_t""builtin version" 1>&6
2100 else
2101 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2102 fi
2103
2104
2105 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2106 echo "configure:2107: checking for --with-libtiff" >&5
2107 no_cache=0
2108 # Check whether --with-libtiff or --without-libtiff was given.
2109 if test "${with_libtiff+set}" = set; then
2110 withval="$with_libtiff"
2111
2112 if test "$withval" = yes; then
2113 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2114 elif test "$withval" = no; then
2115 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2116 elif test "$withval" = sys; then
2117 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2118 elif test "$withval" = builtin; then
2119 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2120 else
2121 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2122 fi
2123
2124 else
2125
2126 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2127 if test "x$LINE" != x ; then
2128 eval "DEFAULT_$LINE"
2129 else
2130 no_cache=1
2131 fi
2132
2133 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2134
2135 fi
2136
2137
2138 eval "$ac_cv_use_libtiff"
2139 if test "$no_cache" != 1; then
2140 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2141 fi
2142
2143 if test "$wxUSE_LIBTIFF" = yes; then
2144 echo "$ac_t""yes" 1>&6
2145 elif test "$wxUSE_LIBTIFF" = no; then
2146 echo "$ac_t""no" 1>&6
2147 elif test "$wxUSE_LIBTIFF" = sys; then
2148 echo "$ac_t""system version" 1>&6
2149 elif test "$wxUSE_LIBTIFF" = builtin; then
2150 echo "$ac_t""builtin version" 1>&6
2151 else
2152 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2153 fi
2154
2155
2156 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2157 echo "configure:2158: checking for --with-opengl" >&5
2158 no_cache=0
2159 # Check whether --with-opengl or --without-opengl was given.
2160 if test "${with_opengl+set}" = set; then
2161 withval="$with_opengl"
2162
2163 if test "$withval" = yes; then
2164 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2165 else
2166 ac_cv_use_opengl='wxUSE_OPENGL=no'
2167 fi
2168
2169 else
2170
2171 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2172 if test "x$LINE" != x ; then
2173 eval "DEFAULT_$LINE"
2174 else
2175 no_cache=1
2176 fi
2177
2178 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2179
2180 fi
2181
2182
2183 eval "$ac_cv_use_opengl"
2184 if test "$no_cache" != 1; then
2185 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2186 fi
2187
2188 if test "$wxUSE_OPENGL" = yes; then
2189 echo "$ac_t""yes" 1>&6
2190 else
2191 echo "$ac_t""no" 1>&6
2192 fi
2193
2194
2195 fi
2196
2197
2198 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2199 echo "configure:2200: checking for --with-dmalloc" >&5
2200 no_cache=0
2201 # Check whether --with-dmalloc or --without-dmalloc was given.
2202 if test "${with_dmalloc+set}" = set; then
2203 withval="$with_dmalloc"
2204
2205 if test "$withval" = yes; then
2206 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2207 else
2208 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2209 fi
2210
2211 else
2212
2213 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2214 if test "x$LINE" != x ; then
2215 eval "DEFAULT_$LINE"
2216 else
2217 no_cache=1
2218 fi
2219
2220 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2221
2222 fi
2223
2224
2225 eval "$ac_cv_use_dmalloc"
2226 if test "$no_cache" != 1; then
2227 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2228 fi
2229
2230 if test "$wxUSE_DMALLOC" = yes; then
2231 echo "$ac_t""yes" 1>&6
2232 else
2233 echo "$ac_t""no" 1>&6
2234 fi
2235
2236
2237 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2238 echo "configure:2239: checking for --with-regex" >&5
2239 no_cache=0
2240 # Check whether --with-regex or --without-regex was given.
2241 if test "${with_regex+set}" = set; then
2242 withval="$with_regex"
2243
2244 if test "$withval" = yes; then
2245 ac_cv_use_regex='wxUSE_REGEX=yes'
2246 elif test "$withval" = no; then
2247 ac_cv_use_regex='wxUSE_REGEX=no'
2248 elif test "$withval" = sys; then
2249 ac_cv_use_regex='wxUSE_REGEX=sys'
2250 elif test "$withval" = builtin; then
2251 ac_cv_use_regex='wxUSE_REGEX=builtin'
2252 else
2253 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2254 fi
2255
2256 else
2257
2258 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2259 if test "x$LINE" != x ; then
2260 eval "DEFAULT_$LINE"
2261 else
2262 no_cache=1
2263 fi
2264
2265 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2266
2267 fi
2268
2269
2270 eval "$ac_cv_use_regex"
2271 if test "$no_cache" != 1; then
2272 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2273 fi
2274
2275 if test "$wxUSE_REGEX" = yes; then
2276 echo "$ac_t""yes" 1>&6
2277 elif test "$wxUSE_REGEX" = no; then
2278 echo "$ac_t""no" 1>&6
2279 elif test "$wxUSE_REGEX" = sys; then
2280 echo "$ac_t""system version" 1>&6
2281 elif test "$wxUSE_REGEX" = builtin; then
2282 echo "$ac_t""builtin version" 1>&6
2283 else
2284 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2285 fi
2286
2287
2288 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2289 echo "configure:2290: checking for --with-zlib" >&5
2290 no_cache=0
2291 # Check whether --with-zlib or --without-zlib was given.
2292 if test "${with_zlib+set}" = set; then
2293 withval="$with_zlib"
2294
2295 if test "$withval" = yes; then
2296 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2297 elif test "$withval" = no; then
2298 ac_cv_use_zlib='wxUSE_ZLIB=no'
2299 elif test "$withval" = sys; then
2300 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2301 elif test "$withval" = builtin; then
2302 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2303 else
2304 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2305 fi
2306
2307 else
2308
2309 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2317
2318 fi
2319
2320
2321 eval "$ac_cv_use_zlib"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_ZLIB" = yes; then
2327 echo "$ac_t""yes" 1>&6
2328 elif test "$wxUSE_ZLIB" = no; then
2329 echo "$ac_t""no" 1>&6
2330 elif test "$wxUSE_ZLIB" = sys; then
2331 echo "$ac_t""system version" 1>&6
2332 elif test "$wxUSE_ZLIB" = builtin; then
2333 echo "$ac_t""builtin version" 1>&6
2334 else
2335 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2336 fi
2337
2338
2339 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2340 echo "configure:2341: checking for --with-odbc" >&5
2341 no_cache=0
2342 # Check whether --with-odbc or --without-odbc was given.
2343 if test "${with_odbc+set}" = set; then
2344 withval="$with_odbc"
2345
2346 if test "$withval" = yes; then
2347 ac_cv_use_odbc='wxUSE_ODBC=yes'
2348 else
2349 ac_cv_use_odbc='wxUSE_ODBC=no'
2350 fi
2351
2352 else
2353
2354 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2355 if test "x$LINE" != x ; then
2356 eval "DEFAULT_$LINE"
2357 else
2358 no_cache=1
2359 fi
2360
2361 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2362
2363 fi
2364
2365
2366 eval "$ac_cv_use_odbc"
2367 if test "$no_cache" != 1; then
2368 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2369 fi
2370
2371 if test "$wxUSE_ODBC" = yes; then
2372 echo "$ac_t""yes" 1>&6
2373 else
2374 echo "$ac_t""no" 1>&6
2375 fi
2376
2377
2378
2379
2380 enablestring=
2381 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2382 echo "configure:2383: checking for --${enablestring:-enable}-shared" >&5
2383 no_cache=0
2384 # Check whether --enable-shared or --disable-shared was given.
2385 if test "${enable_shared+set}" = set; then
2386 enableval="$enable_shared"
2387
2388 if test "$enableval" = yes; then
2389 ac_cv_use_shared='wxUSE_SHARED=yes'
2390 else
2391 ac_cv_use_shared='wxUSE_SHARED=no'
2392 fi
2393
2394 else
2395
2396 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2397 if test "x$LINE" != x ; then
2398 eval "DEFAULT_$LINE"
2399 else
2400 no_cache=1
2401 fi
2402
2403 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2404
2405 fi
2406
2407
2408 eval "$ac_cv_use_shared"
2409 if test "$no_cache" != 1; then
2410 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2411 fi
2412
2413 if test "$wxUSE_SHARED" = yes; then
2414 echo "$ac_t""yes" 1>&6
2415 else
2416 echo "$ac_t""no" 1>&6
2417 fi
2418
2419
2420 enablestring=
2421 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2422 echo "configure:2423: checking for --${enablestring:-enable}-soname" >&5
2423 no_cache=0
2424 # Check whether --enable-soname or --disable-soname was given.
2425 if test "${enable_soname+set}" = set; then
2426 enableval="$enable_soname"
2427
2428 if test "$enableval" = yes; then
2429 ac_cv_use_soname='wxUSE_SONAME=yes'
2430 else
2431 ac_cv_use_soname='wxUSE_SONAME=no'
2432 fi
2433
2434 else
2435
2436 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2437 if test "x$LINE" != x ; then
2438 eval "DEFAULT_$LINE"
2439 else
2440 no_cache=1
2441 fi
2442
2443 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2444
2445 fi
2446
2447
2448 eval "$ac_cv_use_soname"
2449 if test "$no_cache" != 1; then
2450 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2451 fi
2452
2453 if test "$wxUSE_SONAME" = yes; then
2454 echo "$ac_t""yes" 1>&6
2455 else
2456 echo "$ac_t""no" 1>&6
2457 fi
2458
2459
2460 enablestring=
2461 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2462 echo "configure:2463: checking for --${enablestring:-enable}-optimise" >&5
2463 no_cache=0
2464 # Check whether --enable-optimise or --disable-optimise was given.
2465 if test "${enable_optimise+set}" = set; then
2466 enableval="$enable_optimise"
2467
2468 if test "$enableval" = yes; then
2469 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2470 else
2471 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2472 fi
2473
2474 else
2475
2476 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2477 if test "x$LINE" != x ; then
2478 eval "DEFAULT_$LINE"
2479 else
2480 no_cache=1
2481 fi
2482
2483 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2484
2485 fi
2486
2487
2488 eval "$ac_cv_use_optimise"
2489 if test "$no_cache" != 1; then
2490 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2491 fi
2492
2493 if test "$wxUSE_OPTIMISE" = yes; then
2494 echo "$ac_t""yes" 1>&6
2495 else
2496 echo "$ac_t""no" 1>&6
2497 fi
2498
2499
2500 enablestring=
2501 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2502 echo "configure:2503: checking for --${enablestring:-enable}-debug" >&5
2503 no_cache=0
2504 # Check whether --enable-debug or --disable-debug was given.
2505 if test "${enable_debug+set}" = set; then
2506 enableval="$enable_debug"
2507
2508 if test "$enableval" = yes; then
2509 ac_cv_use_debug='wxUSE_DEBUG=yes'
2510 else
2511 ac_cv_use_debug='wxUSE_DEBUG=no'
2512 fi
2513
2514 else
2515
2516 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2517 if test "x$LINE" != x ; then
2518 eval "DEFAULT_$LINE"
2519 else
2520 no_cache=1
2521 fi
2522
2523 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2524
2525 fi
2526
2527
2528 eval "$ac_cv_use_debug"
2529 if test "$no_cache" != 1; then
2530 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2531 fi
2532
2533 if test "$wxUSE_DEBUG" = yes; then
2534 echo "$ac_t""yes" 1>&6
2535 else
2536 echo "$ac_t""no" 1>&6
2537 fi
2538
2539
2540
2541 enablestring=
2542 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2543 echo "configure:2544: checking for --${enablestring:-enable}-precomp" >&5
2544 no_cache=0
2545 # Check whether --enable-precomp or --disable-precomp was given.
2546 if test "${enable_precomp+set}" = set; then
2547 enableval="$enable_precomp"
2548
2549 if test "$enableval" = yes; then
2550 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2551 else
2552 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2553 fi
2554
2555 else
2556
2557 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2565
2566 fi
2567
2568
2569 eval "$ac_cv_use_precomp"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_PRECOMP" = yes; then
2575 echo "$ac_t""yes" 1>&6
2576 else
2577 echo "$ac_t""no" 1>&6
2578 fi
2579
2580
2581 if test "$wxUSE_DEBUG" = "yes"; then
2582 DEFAULT_wxUSE_DEBUG_FLAG=yes
2583 DEFAULT_wxUSE_DEBUG_INFO=yes
2584 elif test "$wxUSE_DEBUG" = "no"; then
2585 DEFAULT_wxUSE_DEBUG_FLAG=no
2586 DEFAULT_wxUSE_DEBUG_INFO=no
2587 fi
2588
2589
2590 enablestring=
2591 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2592 echo "configure:2593: checking for --${enablestring:-enable}-debug_flag" >&5
2593 no_cache=0
2594 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2595 if test "${enable_debug_flag+set}" = set; then
2596 enableval="$enable_debug_flag"
2597
2598 if test "$enableval" = yes; then
2599 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2600 else
2601 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2602 fi
2603
2604 else
2605
2606 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
2613 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2614
2615 fi
2616
2617
2618 eval "$ac_cv_use_debug_flag"
2619 if test "$no_cache" != 1; then
2620 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2621 fi
2622
2623 if test "$wxUSE_DEBUG_FLAG" = yes; then
2624 echo "$ac_t""yes" 1>&6
2625 else
2626 echo "$ac_t""no" 1>&6
2627 fi
2628
2629
2630 enablestring=
2631 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2632 echo "configure:2633: checking for --${enablestring:-enable}-debug_info" >&5
2633 no_cache=0
2634 # Check whether --enable-debug_info or --disable-debug_info was given.
2635 if test "${enable_debug_info+set}" = set; then
2636 enableval="$enable_debug_info"
2637
2638 if test "$enableval" = yes; then
2639 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2640 else
2641 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2642 fi
2643
2644 else
2645
2646 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
2653 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2654
2655 fi
2656
2657
2658 eval "$ac_cv_use_debug_info"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_DEBUG_INFO" = yes; then
2664 echo "$ac_t""yes" 1>&6
2665 else
2666 echo "$ac_t""no" 1>&6
2667 fi
2668
2669
2670 enablestring=
2671 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2672 echo "configure:2673: checking for --${enablestring:-enable}-debug_gdb" >&5
2673 no_cache=0
2674 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2675 if test "${enable_debug_gdb+set}" = set; then
2676 enableval="$enable_debug_gdb"
2677
2678 if test "$enableval" = yes; then
2679 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2680 else
2681 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2682 fi
2683
2684 else
2685
2686 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2687 if test "x$LINE" != x ; then
2688 eval "DEFAULT_$LINE"
2689 else
2690 no_cache=1
2691 fi
2692
2693 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2694
2695 fi
2696
2697
2698 eval "$ac_cv_use_debug_gdb"
2699 if test "$no_cache" != 1; then
2700 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2701 fi
2702
2703 if test "$wxUSE_DEBUG_GDB" = yes; then
2704 echo "$ac_t""yes" 1>&6
2705 else
2706 echo "$ac_t""no" 1>&6
2707 fi
2708
2709
2710 enablestring=
2711 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2712 echo "configure:2713: checking for --${enablestring:-enable}-debug_cntxt" >&5
2713 no_cache=0
2714 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2715 if test "${enable_debug_cntxt+set}" = set; then
2716 enableval="$enable_debug_cntxt"
2717
2718 if test "$enableval" = yes; then
2719 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2720 else
2721 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2722 fi
2723
2724 else
2725
2726 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
2733 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2734
2735 fi
2736
2737
2738 eval "$ac_cv_use_debug_cntxt"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2744 echo "$ac_t""yes" 1>&6
2745 else
2746 echo "$ac_t""no" 1>&6
2747 fi
2748
2749
2750 enablestring=
2751 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2752 echo "configure:2753: checking for --${enablestring:-enable}-mem_tracing" >&5
2753 no_cache=0
2754 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2755 if test "${enable_mem_tracing+set}" = set; then
2756 enableval="$enable_mem_tracing"
2757
2758 if test "$enableval" = yes; then
2759 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2760 else
2761 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2762 fi
2763
2764 else
2765
2766 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2767 if test "x$LINE" != x ; then
2768 eval "DEFAULT_$LINE"
2769 else
2770 no_cache=1
2771 fi
2772
2773 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2774
2775 fi
2776
2777
2778 eval "$ac_cv_use_mem_tracing"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_MEM_TRACING" = yes; then
2784 echo "$ac_t""yes" 1>&6
2785 else
2786 echo "$ac_t""no" 1>&6
2787 fi
2788
2789
2790 enablestring=
2791 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2792 echo "configure:2793: checking for --${enablestring:-enable}-profile" >&5
2793 no_cache=0
2794 # Check whether --enable-profile or --disable-profile was given.
2795 if test "${enable_profile+set}" = set; then
2796 enableval="$enable_profile"
2797
2798 if test "$enableval" = yes; then
2799 ac_cv_use_profile='wxUSE_PROFILE=yes'
2800 else
2801 ac_cv_use_profile='wxUSE_PROFILE=no'
2802 fi
2803
2804 else
2805
2806 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2814
2815 fi
2816
2817
2818 eval "$ac_cv_use_profile"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_PROFILE" = yes; then
2824 echo "$ac_t""yes" 1>&6
2825 else
2826 echo "$ac_t""no" 1>&6
2827 fi
2828
2829
2830 enablestring=
2831 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2832 echo "configure:2833: checking for --${enablestring:-enable}-no_rtti" >&5
2833 no_cache=0
2834 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2835 if test "${enable_no_rtti+set}" = set; then
2836 enableval="$enable_no_rtti"
2837
2838 if test "$enableval" = yes; then
2839 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2840 else
2841 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2842 fi
2843
2844 else
2845
2846 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2854
2855 fi
2856
2857
2858 eval "$ac_cv_use_no_rtti"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_NO_RTTI" = yes; then
2864 echo "$ac_t""yes" 1>&6
2865 else
2866 echo "$ac_t""no" 1>&6
2867 fi
2868
2869
2870 enablestring=
2871 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2872 echo "configure:2873: checking for --${enablestring:-enable}-no_exceptions" >&5
2873 no_cache=0
2874 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2875 if test "${enable_no_exceptions+set}" = set; then
2876 enableval="$enable_no_exceptions"
2877
2878 if test "$enableval" = yes; then
2879 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2880 else
2881 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2882 fi
2883
2884 else
2885
2886 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2887 if test "x$LINE" != x ; then
2888 eval "DEFAULT_$LINE"
2889 else
2890 no_cache=1
2891 fi
2892
2893 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2894
2895 fi
2896
2897
2898 eval "$ac_cv_use_no_exceptions"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2904 echo "$ac_t""yes" 1>&6
2905 else
2906 echo "$ac_t""no" 1>&6
2907 fi
2908
2909
2910 enablestring=
2911 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2912 echo "configure:2913: checking for --${enablestring:-enable}-permissive" >&5
2913 no_cache=0
2914 # Check whether --enable-permissive or --disable-permissive was given.
2915 if test "${enable_permissive+set}" = set; then
2916 enableval="$enable_permissive"
2917
2918 if test "$enableval" = yes; then
2919 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2920 else
2921 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2922 fi
2923
2924 else
2925
2926 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2927 if test "x$LINE" != x ; then
2928 eval "DEFAULT_$LINE"
2929 else
2930 no_cache=1
2931 fi
2932
2933 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2934
2935 fi
2936
2937
2938 eval "$ac_cv_use_permissive"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_PERMISSIVE" = yes; then
2944 echo "$ac_t""yes" 1>&6
2945 else
2946 echo "$ac_t""no" 1>&6
2947 fi
2948
2949
2950 enablestring=
2951 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2952 echo "configure:2953: checking for --${enablestring:-enable}-no_deps" >&5
2953 no_cache=0
2954 # Check whether --enable-no_deps or --disable-no_deps was given.
2955 if test "${enable_no_deps+set}" = set; then
2956 enableval="$enable_no_deps"
2957
2958 if test "$enableval" = yes; then
2959 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2960 else
2961 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2962 fi
2963
2964 else
2965
2966 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2967 if test "x$LINE" != x ; then
2968 eval "DEFAULT_$LINE"
2969 else
2970 no_cache=1
2971 fi
2972
2973 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2974
2975 fi
2976
2977
2978 eval "$ac_cv_use_no_deps"
2979 if test "$no_cache" != 1; then
2980 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2981 fi
2982
2983 if test "$wxUSE_NO_DEPS" = yes; then
2984 echo "$ac_t""yes" 1>&6
2985 else
2986 echo "$ac_t""no" 1>&6
2987 fi
2988
2989
2990
2991 enablestring=
2992 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2993 echo "configure:2994: checking for --${enablestring:-enable}-compat20" >&5
2994 no_cache=0
2995 # Check whether --enable-compat20 or --disable-compat20 was given.
2996 if test "${enable_compat20+set}" = set; then
2997 enableval="$enable_compat20"
2998
2999 if test "$enableval" = yes; then
3000 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3001 else
3002 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3003 fi
3004
3005 else
3006
3007 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3015
3016 fi
3017
3018
3019 eval "$ac_cv_use_compat20"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3025 echo "$ac_t""yes" 1>&6
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030
3031 enablestring=
3032 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3033 echo "configure:3034: checking for --${enablestring:-enable}-compat22" >&5
3034 no_cache=0
3035 # Check whether --enable-compat22 or --disable-compat22 was given.
3036 if test "${enable_compat22+set}" = set; then
3037 enableval="$enable_compat22"
3038
3039 if test "$enableval" = yes; then
3040 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3041 else
3042 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3043 fi
3044
3045 else
3046
3047 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3055
3056 fi
3057
3058
3059 eval "$ac_cv_use_compat22"
3060 if test "$no_cache" != 1; then
3061 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3062 fi
3063
3064 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3065 echo "$ac_t""yes" 1>&6
3066 else
3067 echo "$ac_t""no" 1>&6
3068 fi
3069
3070
3071 enablestring=disable
3072 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3073 echo "configure:3074: checking for --${enablestring:-enable}-compat24" >&5
3074 no_cache=0
3075 # Check whether --enable-compat24 or --disable-compat24 was given.
3076 if test "${enable_compat24+set}" = set; then
3077 enableval="$enable_compat24"
3078
3079 if test "$enableval" = yes; then
3080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3081 else
3082 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3083 fi
3084
3085 else
3086
3087 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3088 if test "x$LINE" != x ; then
3089 eval "DEFAULT_$LINE"
3090 else
3091 no_cache=1
3092 fi
3093
3094 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3095
3096 fi
3097
3098
3099 eval "$ac_cv_use_compat24"
3100 if test "$no_cache" != 1; then
3101 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3102 fi
3103
3104 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3105 echo "$ac_t""yes" 1>&6
3106 else
3107 echo "$ac_t""no" 1>&6
3108 fi
3109
3110
3111 # Check whether --enable-rpath or --disable-rpath was given.
3112 if test "${enable_rpath+set}" = set; then
3113 enableval="$enable_rpath"
3114 wxRPATH_DIR="$enableval"
3115 fi
3116
3117
3118 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3119 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3120 fi
3121
3122
3123
3124
3125 enablestring=
3126 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3127 echo "configure:3128: checking for --${enablestring:-enable}-intl" >&5
3128 no_cache=0
3129 # Check whether --enable-intl or --disable-intl was given.
3130 if test "${enable_intl+set}" = set; then
3131 enableval="$enable_intl"
3132
3133 if test "$enableval" = yes; then
3134 ac_cv_use_intl='wxUSE_INTL=yes'
3135 else
3136 ac_cv_use_intl='wxUSE_INTL=no'
3137 fi
3138
3139 else
3140
3141 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3149
3150 fi
3151
3152
3153 eval "$ac_cv_use_intl"
3154 if test "$no_cache" != 1; then
3155 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3156 fi
3157
3158 if test "$wxUSE_INTL" = yes; then
3159 echo "$ac_t""yes" 1>&6
3160 else
3161 echo "$ac_t""no" 1>&6
3162 fi
3163
3164
3165 enablestring=
3166 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3167 echo "configure:3168: checking for --${enablestring:-enable}-config" >&5
3168 no_cache=0
3169 # Check whether --enable-config or --disable-config was given.
3170 if test "${enable_config+set}" = set; then
3171 enableval="$enable_config"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_config='wxUSE_CONFIG=yes'
3175 else
3176 ac_cv_use_config='wxUSE_CONFIG=no'
3177 fi
3178
3179 else
3180
3181 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3189
3190 fi
3191
3192
3193 eval "$ac_cv_use_config"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_CONFIG" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
3205
3206 enablestring=
3207 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3208 echo "configure:3209: checking for --${enablestring:-enable}-protocols" >&5
3209 no_cache=0
3210 # Check whether --enable-protocols or --disable-protocols was given.
3211 if test "${enable_protocols+set}" = set; then
3212 enableval="$enable_protocols"
3213
3214 if test "$enableval" = yes; then
3215 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3216 else
3217 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3218 fi
3219
3220 else
3221
3222 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
3229 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3230
3231 fi
3232
3233
3234 eval "$ac_cv_use_protocols"
3235 if test "$no_cache" != 1; then
3236 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3237 fi
3238
3239 if test "$wxUSE_PROTOCOL" = yes; then
3240 echo "$ac_t""yes" 1>&6
3241 else
3242 echo "$ac_t""no" 1>&6
3243 fi
3244
3245
3246 enablestring=
3247 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3248 echo "configure:3249: checking for --${enablestring:-enable}-ftp" >&5
3249 no_cache=0
3250 # Check whether --enable-ftp or --disable-ftp was given.
3251 if test "${enable_ftp+set}" = set; then
3252 enableval="$enable_ftp"
3253
3254 if test "$enableval" = yes; then
3255 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3256 else
3257 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3258 fi
3259
3260 else
3261
3262 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3270
3271 fi
3272
3273
3274 eval "$ac_cv_use_ftp"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3280 echo "$ac_t""yes" 1>&6
3281 else
3282 echo "$ac_t""no" 1>&6
3283 fi
3284
3285
3286 enablestring=
3287 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3288 echo "configure:3289: checking for --${enablestring:-enable}-http" >&5
3289 no_cache=0
3290 # Check whether --enable-http or --disable-http was given.
3291 if test "${enable_http+set}" = set; then
3292 enableval="$enable_http"
3293
3294 if test "$enableval" = yes; then
3295 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3296 else
3297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3298 fi
3299
3300 else
3301
3302 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3310
3311 fi
3312
3313
3314 eval "$ac_cv_use_http"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3320 echo "$ac_t""yes" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3323 fi
3324
3325
3326 enablestring=
3327 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3328 echo "configure:3329: checking for --${enablestring:-enable}-fileproto" >&5
3329 no_cache=0
3330 # Check whether --enable-fileproto or --disable-fileproto was given.
3331 if test "${enable_fileproto+set}" = set; then
3332 enableval="$enable_fileproto"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3336 else
3337 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3338 fi
3339
3340 else
3341
3342 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3350
3351 fi
3352
3353
3354 eval "$ac_cv_use_fileproto"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 enablestring=
3367 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3368 echo "configure:3369: checking for --${enablestring:-enable}-sockets" >&5
3369 no_cache=0
3370 # Check whether --enable-sockets or --disable-sockets was given.
3371 if test "${enable_sockets+set}" = set; then
3372 enableval="$enable_sockets"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3376 else
3377 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3378 fi
3379
3380 else
3381
3382 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3390
3391 fi
3392
3393
3394 eval "$ac_cv_use_sockets"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_SOCKETS" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 enablestring=
3407 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3408 echo "configure:3409: checking for --${enablestring:-enable}-ole" >&5
3409 no_cache=0
3410 # Check whether --enable-ole or --disable-ole was given.
3411 if test "${enable_ole+set}" = set; then
3412 enableval="$enable_ole"
3413
3414 if test "$enableval" = yes; then
3415 ac_cv_use_ole='wxUSE_OLE=yes'
3416 else
3417 ac_cv_use_ole='wxUSE_OLE=no'
3418 fi
3419
3420 else
3421
3422 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3423 if test "x$LINE" != x ; then
3424 eval "DEFAULT_$LINE"
3425 else
3426 no_cache=1
3427 fi
3428
3429 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3430
3431 fi
3432
3433
3434 eval "$ac_cv_use_ole"
3435 if test "$no_cache" != 1; then
3436 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3437 fi
3438
3439 if test "$wxUSE_OLE" = yes; then
3440 echo "$ac_t""yes" 1>&6
3441 else
3442 echo "$ac_t""no" 1>&6
3443 fi
3444
3445
3446 enablestring=
3447 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3448 echo "configure:3449: checking for --${enablestring:-enable}-dataobj" >&5
3449 no_cache=0
3450 # Check whether --enable-dataobj or --disable-dataobj was given.
3451 if test "${enable_dataobj+set}" = set; then
3452 enableval="$enable_dataobj"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3456 else
3457 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3458 fi
3459
3460 else
3461
3462 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3470
3471 fi
3472
3473
3474 eval "$ac_cv_use_dataobj"
3475 if test "$no_cache" != 1; then
3476 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3477 fi
3478
3479 if test "$wxUSE_DATAOBJ" = yes; then
3480 echo "$ac_t""yes" 1>&6
3481 else
3482 echo "$ac_t""no" 1>&6
3483 fi
3484
3485
3486
3487 enablestring=
3488 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3489 echo "configure:3490: checking for --${enablestring:-enable}-ipc" >&5
3490 no_cache=0
3491 # Check whether --enable-ipc or --disable-ipc was given.
3492 if test "${enable_ipc+set}" = set; then
3493 enableval="$enable_ipc"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_ipc='wxUSE_IPC=yes'
3497 else
3498 ac_cv_use_ipc='wxUSE_IPC=no'
3499 fi
3500
3501 else
3502
3503 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3511
3512 fi
3513
3514
3515 eval "$ac_cv_use_ipc"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_IPC" = yes; then
3521 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 fi
3525
3526
3527
3528 enablestring=
3529 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3530 echo "configure:3531: checking for --${enablestring:-enable}-cmdline" >&5
3531 no_cache=0
3532 # Check whether --enable-cmdline or --disable-cmdline was given.
3533 if test "${enable_cmdline+set}" = set; then
3534 enableval="$enable_cmdline"
3535
3536 if test "$enableval" = yes; then
3537 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3538 else
3539 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3540 fi
3541
3542 else
3543
3544 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3545 if test "x$LINE" != x ; then
3546 eval "DEFAULT_$LINE"
3547 else
3548 no_cache=1
3549 fi
3550
3551 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3552
3553 fi
3554
3555
3556 eval "$ac_cv_use_cmdline"
3557 if test "$no_cache" != 1; then
3558 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3559 fi
3560
3561 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3562 echo "$ac_t""yes" 1>&6
3563 else
3564 echo "$ac_t""no" 1>&6
3565 fi
3566
3567
3568 enablestring=
3569 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3570 echo "configure:3571: checking for --${enablestring:-enable}-datetime" >&5
3571 no_cache=0
3572 # Check whether --enable-datetime or --disable-datetime was given.
3573 if test "${enable_datetime+set}" = set; then
3574 enableval="$enable_datetime"
3575
3576 if test "$enableval" = yes; then
3577 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3578 else
3579 ac_cv_use_datetime='wxUSE_DATETIME=no'
3580 fi
3581
3582 else
3583
3584 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3585 if test "x$LINE" != x ; then
3586 eval "DEFAULT_$LINE"
3587 else
3588 no_cache=1
3589 fi
3590
3591 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3592
3593 fi
3594
3595
3596 eval "$ac_cv_use_datetime"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_DATETIME" = yes; then
3602 echo "$ac_t""yes" 1>&6
3603 else
3604 echo "$ac_t""no" 1>&6
3605 fi
3606
3607
3608 enablestring=
3609 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3610 echo "configure:3611: checking for --${enablestring:-enable}-timedate" >&5
3611 no_cache=0
3612 # Check whether --enable-timedate or --disable-timedate was given.
3613 if test "${enable_timedate+set}" = set; then
3614 enableval="$enable_timedate"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3618 else
3619 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3620 fi
3621
3622 else
3623
3624 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3632
3633 fi
3634
3635
3636 eval "$ac_cv_use_timedate"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_TIMEDATE" = yes; then
3642 echo "$ac_t""yes" 1>&6
3643 else
3644 echo "$ac_t""no" 1>&6
3645 fi
3646
3647
3648 enablestring=
3649 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3650 echo "configure:3651: checking for --${enablestring:-enable}-stopwatch" >&5
3651 no_cache=0
3652 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3653 if test "${enable_stopwatch+set}" = set; then
3654 enableval="$enable_stopwatch"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3658 else
3659 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3660 fi
3661
3662 else
3663
3664 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3672
3673 fi
3674
3675
3676 eval "$ac_cv_use_stopwatch"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_STOPWATCH" = yes; then
3682 echo "$ac_t""yes" 1>&6
3683 else
3684 echo "$ac_t""no" 1>&6
3685 fi
3686
3687
3688 enablestring=
3689 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3690 echo "configure:3691: checking for --${enablestring:-enable}-dialupman" >&5
3691 no_cache=0
3692 # Check whether --enable-dialupman or --disable-dialupman was given.
3693 if test "${enable_dialupman+set}" = set; then
3694 enableval="$enable_dialupman"
3695
3696 if test "$enableval" = yes; then
3697 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3698 else
3699 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3700 fi
3701
3702 else
3703
3704 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3705 if test "x$LINE" != x ; then
3706 eval "DEFAULT_$LINE"
3707 else
3708 no_cache=1
3709 fi
3710
3711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3712
3713 fi
3714
3715
3716 eval "$ac_cv_use_dialupman"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3722 echo "$ac_t""yes" 1>&6
3723 else
3724 echo "$ac_t""no" 1>&6
3725 fi
3726
3727
3728 enablestring=
3729 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3730 echo "configure:3731: checking for --${enablestring:-enable}-apple_ieee" >&5
3731 no_cache=0
3732 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3733 if test "${enable_apple_ieee+set}" = set; then
3734 enableval="$enable_apple_ieee"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3738 else
3739 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3740 fi
3741
3742 else
3743
3744 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3752
3753 fi
3754
3755
3756 eval "$ac_cv_use_apple_ieee"
3757 if test "$no_cache" != 1; then
3758 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3759 fi
3760
3761 if test "$wxUSE_APPLE_IEEE" = yes; then
3762 echo "$ac_t""yes" 1>&6
3763 else
3764 echo "$ac_t""no" 1>&6
3765 fi
3766
3767
3768 enablestring=
3769 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3770 echo "configure:3771: checking for --${enablestring:-enable}-timer" >&5
3771 no_cache=0
3772 # Check whether --enable-timer or --disable-timer was given.
3773 if test "${enable_timer+set}" = set; then
3774 enableval="$enable_timer"
3775
3776 if test "$enableval" = yes; then
3777 ac_cv_use_timer='wxUSE_TIMER=yes'
3778 else
3779 ac_cv_use_timer='wxUSE_TIMER=no'
3780 fi
3781
3782 else
3783
3784 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3785 if test "x$LINE" != x ; then
3786 eval "DEFAULT_$LINE"
3787 else
3788 no_cache=1
3789 fi
3790
3791 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3792
3793 fi
3794
3795
3796 eval "$ac_cv_use_timer"
3797 if test "$no_cache" != 1; then
3798 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3799 fi
3800
3801 if test "$wxUSE_TIMER" = yes; then
3802 echo "$ac_t""yes" 1>&6
3803 else
3804 echo "$ac_t""no" 1>&6
3805 fi
3806
3807
3808 enablestring=
3809 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3810 echo "configure:3811: checking for --${enablestring:-enable}-wave" >&5
3811 no_cache=0
3812 # Check whether --enable-wave or --disable-wave was given.
3813 if test "${enable_wave+set}" = set; then
3814 enableval="$enable_wave"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_wave='wxUSE_WAVE=yes'
3818 else
3819 ac_cv_use_wave='wxUSE_WAVE=no'
3820 fi
3821
3822 else
3823
3824 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3832
3833 fi
3834
3835
3836 eval "$ac_cv_use_wave"
3837 if test "$no_cache" != 1; then
3838 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3839 fi
3840
3841 if test "$wxUSE_WAVE" = yes; then
3842 echo "$ac_t""yes" 1>&6
3843 else
3844 echo "$ac_t""no" 1>&6
3845 fi
3846
3847
3848 enablestring=
3849 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3850 echo "configure:3851: checking for --${enablestring:-enable}-fraction" >&5
3851 no_cache=0
3852 # Check whether --enable-fraction or --disable-fraction was given.
3853 if test "${enable_fraction+set}" = set; then
3854 enableval="$enable_fraction"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3858 else
3859 ac_cv_use_fraction='wxUSE_FRACTION=no'
3860 fi
3861
3862 else
3863
3864 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3872
3873 fi
3874
3875
3876 eval "$ac_cv_use_fraction"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_FRACTION" = yes; then
3882 echo "$ac_t""yes" 1>&6
3883 else
3884 echo "$ac_t""no" 1>&6
3885 fi
3886
3887
3888 enablestring=
3889 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3890 echo "configure:3891: checking for --${enablestring:-enable}-dynlib" >&5
3891 no_cache=0
3892 # Check whether --enable-dynlib or --disable-dynlib was given.
3893 if test "${enable_dynlib+set}" = set; then
3894 enableval="$enable_dynlib"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3898 else
3899 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3900 fi
3901
3902 else
3903
3904 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3912
3913 fi
3914
3915
3916 eval "$ac_cv_use_dynlib"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3922 echo "$ac_t""yes" 1>&6
3923 else
3924 echo "$ac_t""no" 1>&6
3925 fi
3926
3927
3928 enablestring=
3929 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3930 echo "configure:3931: checking for --${enablestring:-enable}-dynamicloader" >&5
3931 no_cache=0
3932 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3933 if test "${enable_dynamicloader+set}" = set; then
3934 enableval="$enable_dynamicloader"
3935
3936 if test "$enableval" = yes; then
3937 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3938 else
3939 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3940 fi
3941
3942 else
3943
3944 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3952
3953 fi
3954
3955
3956 eval "$ac_cv_use_dynamicloader"
3957 if test "$no_cache" != 1; then
3958 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3959 fi
3960
3961 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3962 echo "$ac_t""yes" 1>&6
3963 else
3964 echo "$ac_t""no" 1>&6
3965 fi
3966
3967
3968 enablestring=
3969 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3970 echo "configure:3971: checking for --${enablestring:-enable}-longlong" >&5
3971 no_cache=0
3972 # Check whether --enable-longlong or --disable-longlong was given.
3973 if test "${enable_longlong+set}" = set; then
3974 enableval="$enable_longlong"
3975
3976 if test "$enableval" = yes; then
3977 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3978 else
3979 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3980 fi
3981
3982 else
3983
3984 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3992
3993 fi
3994
3995
3996 eval "$ac_cv_use_longlong"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_LONGLONG" = yes; then
4002 echo "$ac_t""yes" 1>&6
4003 else
4004 echo "$ac_t""no" 1>&6
4005 fi
4006
4007
4008 enablestring=
4009 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
4010 echo "configure:4011: checking for --${enablestring:-enable}-geometry" >&5
4011 no_cache=0
4012 # Check whether --enable-geometry or --disable-geometry was given.
4013 if test "${enable_geometry+set}" = set; then
4014 enableval="$enable_geometry"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4018 else
4019 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4020 fi
4021
4022 else
4023
4024 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4032
4033 fi
4034
4035
4036 eval "$ac_cv_use_geometry"
4037 if test "$no_cache" != 1; then
4038 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4039 fi
4040
4041 if test "$wxUSE_GEOMETRY" = yes; then
4042 echo "$ac_t""yes" 1>&6
4043 else
4044 echo "$ac_t""no" 1>&6
4045 fi
4046
4047
4048 enablestring=
4049 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4050 echo "configure:4051: checking for --${enablestring:-enable}-log" >&5
4051 no_cache=0
4052 # Check whether --enable-log or --disable-log was given.
4053 if test "${enable_log+set}" = set; then
4054 enableval="$enable_log"
4055
4056 if test "$enableval" = yes; then
4057 ac_cv_use_log='wxUSE_LOG=yes'
4058 else
4059 ac_cv_use_log='wxUSE_LOG=no'
4060 fi
4061
4062 else
4063
4064 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4072
4073 fi
4074
4075
4076 eval "$ac_cv_use_log"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_LOG" = yes; then
4082 echo "$ac_t""yes" 1>&6
4083 else
4084 echo "$ac_t""no" 1>&6
4085 fi
4086
4087
4088 enablestring=
4089 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4090 echo "configure:4091: checking for --${enablestring:-enable}-streams" >&5
4091 no_cache=0
4092 # Check whether --enable-streams or --disable-streams was given.
4093 if test "${enable_streams+set}" = set; then
4094 enableval="$enable_streams"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_streams='wxUSE_STREAMS=yes'
4098 else
4099 ac_cv_use_streams='wxUSE_STREAMS=no'
4100 fi
4101
4102 else
4103
4104 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4112
4113 fi
4114
4115
4116 eval "$ac_cv_use_streams"
4117 if test "$no_cache" != 1; then
4118 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4119 fi
4120
4121 if test "$wxUSE_STREAMS" = yes; then
4122 echo "$ac_t""yes" 1>&6
4123 else
4124 echo "$ac_t""no" 1>&6
4125 fi
4126
4127
4128 enablestring=
4129 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4130 echo "configure:4131: checking for --${enablestring:-enable}-file" >&5
4131 no_cache=0
4132 # Check whether --enable-file or --disable-file was given.
4133 if test "${enable_file+set}" = set; then
4134 enableval="$enable_file"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_file='wxUSE_FILE=yes'
4138 else
4139 ac_cv_use_file='wxUSE_FILE=no'
4140 fi
4141
4142 else
4143
4144 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4152
4153 fi
4154
4155
4156 eval "$ac_cv_use_file"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_FILE" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168 enablestring=
4169 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4170 echo "configure:4171: checking for --${enablestring:-enable}-ffile" >&5
4171 no_cache=0
4172 # Check whether --enable-ffile or --disable-ffile was given.
4173 if test "${enable_ffile+set}" = set; then
4174 enableval="$enable_ffile"
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_ffile='wxUSE_FFILE=yes'
4178 else
4179 ac_cv_use_ffile='wxUSE_FFILE=no'
4180 fi
4181
4182 else
4183
4184 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4192
4193 fi
4194
4195
4196 eval "$ac_cv_use_ffile"
4197 if test "$no_cache" != 1; then
4198 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4199 fi
4200
4201 if test "$wxUSE_FFILE" = yes; then
4202 echo "$ac_t""yes" 1>&6
4203 else
4204 echo "$ac_t""no" 1>&6
4205 fi
4206
4207
4208 enablestring=
4209 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4210 echo "configure:4211: checking for --${enablestring:-enable}-textbuf" >&5
4211 no_cache=0
4212 # Check whether --enable-textbuf or --disable-textbuf was given.
4213 if test "${enable_textbuf+set}" = set; then
4214 enableval="$enable_textbuf"
4215
4216 if test "$enableval" = yes; then
4217 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4218 else
4219 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4220 fi
4221
4222 else
4223
4224 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4232
4233 fi
4234
4235
4236 eval "$ac_cv_use_textbuf"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_TEXTBUFFER" = yes; then
4242 echo "$ac_t""yes" 1>&6
4243 else
4244 echo "$ac_t""no" 1>&6
4245 fi
4246
4247
4248 enablestring=
4249 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4250 echo "configure:4251: checking for --${enablestring:-enable}-textfile" >&5
4251 no_cache=0
4252 # Check whether --enable-textfile or --disable-textfile was given.
4253 if test "${enable_textfile+set}" = set; then
4254 enableval="$enable_textfile"
4255
4256 if test "$enableval" = yes; then
4257 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4258 else
4259 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4260 fi
4261
4262 else
4263
4264 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4265 if test "x$LINE" != x ; then
4266 eval "DEFAULT_$LINE"
4267 else
4268 no_cache=1
4269 fi
4270
4271 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4272
4273 fi
4274
4275
4276 eval "$ac_cv_use_textfile"
4277 if test "$no_cache" != 1; then
4278 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4279 fi
4280
4281 if test "$wxUSE_TEXTFILE" = yes; then
4282 echo "$ac_t""yes" 1>&6
4283 else
4284 echo "$ac_t""no" 1>&6
4285 fi
4286
4287
4288 enablestring=
4289 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4290 echo "configure:4291: checking for --${enablestring:-enable}-fontmap" >&5
4291 no_cache=0
4292 # Check whether --enable-fontmap or --disable-fontmap was given.
4293 if test "${enable_fontmap+set}" = set; then
4294 enableval="$enable_fontmap"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4298 else
4299 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4300 fi
4301
4302 else
4303
4304 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4312
4313 fi
4314
4315
4316 eval "$ac_cv_use_fontmap"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_FONTMAP" = yes; then
4322 echo "$ac_t""yes" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4325 fi
4326
4327
4328 enablestring=
4329 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4330 echo "configure:4331: checking for --${enablestring:-enable}-unicode" >&5
4331 no_cache=0
4332 # Check whether --enable-unicode or --disable-unicode was given.
4333 if test "${enable_unicode+set}" = set; then
4334 enableval="$enable_unicode"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4338 else
4339 ac_cv_use_unicode='wxUSE_UNICODE=no'
4340 fi
4341
4342 else
4343
4344 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4352
4353 fi
4354
4355
4356 eval "$ac_cv_use_unicode"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_UNICODE" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
4368 enablestring=
4369 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4370 echo "configure:4371: checking for --${enablestring:-enable}-mslu" >&5
4371 no_cache=0
4372 # Check whether --enable-mslu or --disable-mslu was given.
4373 if test "${enable_mslu+set}" = set; then
4374 enableval="$enable_mslu"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4378 else
4379 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4380 fi
4381
4382 else
4383
4384 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4392
4393 fi
4394
4395
4396 eval "$ac_cv_use_mslu"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_UNICODE_MSLU" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408 enablestring=
4409 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4410 echo "configure:4411: checking for --${enablestring:-enable}-wxprintfv" >&5
4411 no_cache=0
4412 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4413 if test "${enable_wxprintfv+set}" = set; then
4414 enableval="$enable_wxprintfv"
4415
4416 if test "$enableval" = yes; then
4417 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4418 else
4419 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4420 fi
4421
4422 else
4423
4424 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4425 if test "x$LINE" != x ; then
4426 eval "DEFAULT_$LINE"
4427 else
4428 no_cache=1
4429 fi
4430
4431 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4432
4433 fi
4434
4435
4436 eval "$ac_cv_use_wxprintfv"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4442 echo "$ac_t""yes" 1>&6
4443 else
4444 echo "$ac_t""no" 1>&6
4445 fi
4446
4447
4448 enablestring=
4449 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4450 echo "configure:4451: checking for --${enablestring:-enable}-std_iostreams" >&5
4451 no_cache=0
4452 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4453 if test "${enable_std_iostreams+set}" = set; then
4454 enableval="$enable_std_iostreams"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4458 else
4459 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4460 fi
4461
4462 else
4463
4464 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4472
4473 fi
4474
4475
4476 eval "$ac_cv_use_std_iostreams"
4477 if test "$no_cache" != 1; then
4478 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4479 fi
4480
4481 if test "$wxUSE_STD_IOSTREAM" = yes; then
4482 echo "$ac_t""yes" 1>&6
4483 else
4484 echo "$ac_t""no" 1>&6
4485 fi
4486
4487
4488 enablestring=
4489 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4490 echo "configure:4491: checking for --${enablestring:-enable}-filesystem" >&5
4491 no_cache=0
4492 # Check whether --enable-filesystem or --disable-filesystem was given.
4493 if test "${enable_filesystem+set}" = set; then
4494 enableval="$enable_filesystem"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4498 else
4499 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4500 fi
4501
4502 else
4503
4504 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4512
4513 fi
4514
4515
4516 eval "$ac_cv_use_filesystem"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_FILESYSTEM" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 enablestring=
4529 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4530 echo "configure:4531: checking for --${enablestring:-enable}-fs_inet" >&5
4531 no_cache=0
4532 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4533 if test "${enable_fs_inet+set}" = set; then
4534 enableval="$enable_fs_inet"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4538 else
4539 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4540 fi
4541
4542 else
4543
4544 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4552
4553 fi
4554
4555
4556 eval "$ac_cv_use_fs_inet"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_FS_INET" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 enablestring=
4569 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4570 echo "configure:4571: checking for --${enablestring:-enable}-fs_zip" >&5
4571 no_cache=0
4572 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4573 if test "${enable_fs_zip+set}" = set; then
4574 enableval="$enable_fs_zip"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4578 else
4579 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4580 fi
4581
4582 else
4583
4584 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4592
4593 fi
4594
4595
4596 eval "$ac_cv_use_fs_zip"
4597 if test "$no_cache" != 1; then
4598 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4599 fi
4600
4601 if test "$wxUSE_FS_ZIP" = yes; then
4602 echo "$ac_t""yes" 1>&6
4603 else
4604 echo "$ac_t""no" 1>&6
4605 fi
4606
4607
4608 enablestring=
4609 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4610 echo "configure:4611: checking for --${enablestring:-enable}-zipstream" >&5
4611 no_cache=0
4612 # Check whether --enable-zipstream or --disable-zipstream was given.
4613 if test "${enable_zipstream+set}" = set; then
4614 enableval="$enable_zipstream"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4618 else
4619 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4620 fi
4621
4622 else
4623
4624 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4632
4633 fi
4634
4635
4636 eval "$ac_cv_use_zipstream"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_ZIPSTREAM" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648
4649 enablestring=
4650 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4651 echo "configure:4652: checking for --${enablestring:-enable}-catch_segvs" >&5
4652 no_cache=0
4653 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4654 if test "${enable_catch_segvs+set}" = set; then
4655 enableval="$enable_catch_segvs"
4656
4657 if test "$enableval" = yes; then
4658 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4659 else
4660 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4661 fi
4662
4663 else
4664
4665 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4673
4674 fi
4675
4676
4677 eval "$ac_cv_use_catch_segvs"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4683 echo "$ac_t""yes" 1>&6
4684 else
4685 echo "$ac_t""no" 1>&6
4686 fi
4687
4688
4689 enablestring=
4690 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4691 echo "configure:4692: checking for --${enablestring:-enable}-snglinst" >&5
4692 no_cache=0
4693 # Check whether --enable-snglinst or --disable-snglinst was given.
4694 if test "${enable_snglinst+set}" = set; then
4695 enableval="$enable_snglinst"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4699 else
4700 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4701 fi
4702
4703 else
4704
4705 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4713
4714 fi
4715
4716
4717 eval "$ac_cv_use_snglinst"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729
4730 enablestring=
4731 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4732 echo "configure:4733: checking for --${enablestring:-enable}-mimetype" >&5
4733 no_cache=0
4734 # Check whether --enable-mimetype or --disable-mimetype was given.
4735 if test "${enable_mimetype+set}" = set; then
4736 enableval="$enable_mimetype"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4740 else
4741 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4742 fi
4743
4744 else
4745
4746 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4754
4755 fi
4756
4757
4758 eval "$ac_cv_use_mimetype"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_MIMETYPE" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770 enablestring=
4771 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4772 echo "configure:4773: checking for --${enablestring:-enable}-system_options" >&5
4773 no_cache=0
4774 # Check whether --enable-system_options or --disable-system_options was given.
4775 if test "${enable_system_options+set}" = set; then
4776 enableval="$enable_system_options"
4777
4778 if test "$enableval" = yes; then
4779 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4780 else
4781 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4782 fi
4783
4784 else
4785
4786 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4794
4795 fi
4796
4797
4798 eval "$ac_cv_use_system_options"
4799 if test "$no_cache" != 1; then
4800 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4801 fi
4802
4803 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4804 echo "$ac_t""yes" 1>&6
4805 else
4806 echo "$ac_t""no" 1>&6
4807 fi
4808
4809
4810
4811 enablestring=
4812 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4813 echo "configure:4814: checking for --${enablestring:-enable}-url" >&5
4814 no_cache=0
4815 # Check whether --enable-url or --disable-url was given.
4816 if test "${enable_url+set}" = set; then
4817 enableval="$enable_url"
4818
4819 if test "$enableval" = yes; then
4820 ac_cv_use_url='wxUSE_URL=yes'
4821 else
4822 ac_cv_use_url='wxUSE_URL=no'
4823 fi
4824
4825 else
4826
4827 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4835
4836 fi
4837
4838
4839 eval "$ac_cv_use_url"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_URL" = yes; then
4845 echo "$ac_t""yes" 1>&6
4846 else
4847 echo "$ac_t""no" 1>&6
4848 fi
4849
4850
4851 enablestring=
4852 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4853 echo "configure:4854: checking for --${enablestring:-enable}-protocol" >&5
4854 no_cache=0
4855 # Check whether --enable-protocol or --disable-protocol was given.
4856 if test "${enable_protocol+set}" = set; then
4857 enableval="$enable_protocol"
4858
4859 if test "$enableval" = yes; then
4860 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4861 else
4862 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4863 fi
4864
4865 else
4866
4867 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4868 if test "x$LINE" != x ; then
4869 eval "DEFAULT_$LINE"
4870 else
4871 no_cache=1
4872 fi
4873
4874 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4875
4876 fi
4877
4878
4879 eval "$ac_cv_use_protocol"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_PROTOCOL" = yes; then
4885 echo "$ac_t""yes" 1>&6
4886 else
4887 echo "$ac_t""no" 1>&6
4888 fi
4889
4890
4891 enablestring=
4892 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4893 echo "configure:4894: checking for --${enablestring:-enable}-protocol_http" >&5
4894 no_cache=0
4895 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4896 if test "${enable_protocol_http+set}" = set; then
4897 enableval="$enable_protocol_http"
4898
4899 if test "$enableval" = yes; then
4900 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4901 else
4902 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4903 fi
4904
4905 else
4906
4907 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4908 if test "x$LINE" != x ; then
4909 eval "DEFAULT_$LINE"
4910 else
4911 no_cache=1
4912 fi
4913
4914 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4915
4916 fi
4917
4918
4919 eval "$ac_cv_use_protocol_http"
4920 if test "$no_cache" != 1; then
4921 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4922 fi
4923
4924 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4925 echo "$ac_t""yes" 1>&6
4926 else
4927 echo "$ac_t""no" 1>&6
4928 fi
4929
4930
4931 enablestring=
4932 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4933 echo "configure:4934: checking for --${enablestring:-enable}-protocol_ftp" >&5
4934 no_cache=0
4935 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4936 if test "${enable_protocol_ftp+set}" = set; then
4937 enableval="$enable_protocol_ftp"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4941 else
4942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4943 fi
4944
4945 else
4946
4947 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4955
4956 fi
4957
4958
4959 eval "$ac_cv_use_protocol_ftp"
4960 if test "$no_cache" != 1; then
4961 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4962 fi
4963
4964 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4965 echo "$ac_t""yes" 1>&6
4966 else
4967 echo "$ac_t""no" 1>&6
4968 fi
4969
4970
4971 enablestring=
4972 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4973 echo "configure:4974: checking for --${enablestring:-enable}-protocol_file" >&5
4974 no_cache=0
4975 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4976 if test "${enable_protocol_file+set}" = set; then
4977 enableval="$enable_protocol_file"
4978
4979 if test "$enableval" = yes; then
4980 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4981 else
4982 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4983 fi
4984
4985 else
4986
4987 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4995
4996 fi
4997
4998
4999 eval "$ac_cv_use_protocol_file"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5005 echo "$ac_t""yes" 1>&6
5006 else
5007 echo "$ac_t""no" 1>&6
5008 fi
5009
5010
5011
5012
5013
5014 enablestring=
5015 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
5016 echo "configure:5017: checking for --${enablestring:-enable}-threads" >&5
5017 no_cache=0
5018 # Check whether --enable-threads or --disable-threads was given.
5019 if test "${enable_threads+set}" = set; then
5020 enableval="$enable_threads"
5021
5022 if test "$enableval" = yes; then
5023 ac_cv_use_threads='wxUSE_THREADS=yes'
5024 else
5025 ac_cv_use_threads='wxUSE_THREADS=no'
5026 fi
5027
5028 else
5029
5030 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5031 if test "x$LINE" != x ; then
5032 eval "DEFAULT_$LINE"
5033 else
5034 no_cache=1
5035 fi
5036
5037 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5038
5039 fi
5040
5041
5042 eval "$ac_cv_use_threads"
5043 if test "$no_cache" != 1; then
5044 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5045 fi
5046
5047 if test "$wxUSE_THREADS" = yes; then
5048 echo "$ac_t""yes" 1>&6
5049 else
5050 echo "$ac_t""no" 1>&6
5051 fi
5052
5053
5054 if test "$wxUSE_GUI" = "yes"; then
5055
5056
5057
5058 enablestring=
5059 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5060 echo "configure:5061: checking for --${enablestring:-enable}-docview" >&5
5061 no_cache=0
5062 # Check whether --enable-docview or --disable-docview was given.
5063 if test "${enable_docview+set}" = set; then
5064 enableval="$enable_docview"
5065
5066 if test "$enableval" = yes; then
5067 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5068 else
5069 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5070 fi
5071
5072 else
5073
5074 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5082
5083 fi
5084
5085
5086 eval "$ac_cv_use_docview"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5092 echo "$ac_t""yes" 1>&6
5093 else
5094 echo "$ac_t""no" 1>&6
5095 fi
5096
5097
5098 enablestring=
5099 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5100 echo "configure:5101: checking for --${enablestring:-enable}-help" >&5
5101 no_cache=0
5102 # Check whether --enable-help or --disable-help was given.
5103 if test "${enable_help+set}" = set; then
5104 enableval="$enable_help"
5105
5106 if test "$enableval" = yes; then
5107 ac_cv_use_help='wxUSE_HELP=yes'
5108 else
5109 ac_cv_use_help='wxUSE_HELP=no'
5110 fi
5111
5112 else
5113
5114 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5122
5123 fi
5124
5125
5126 eval "$ac_cv_use_help"
5127 if test "$no_cache" != 1; then
5128 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5129 fi
5130
5131 if test "$wxUSE_HELP" = yes; then
5132 echo "$ac_t""yes" 1>&6
5133 else
5134 echo "$ac_t""no" 1>&6
5135 fi
5136
5137
5138 enablestring=
5139 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5140 echo "configure:5141: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5141 no_cache=0
5142 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5143 if test "${enable_mshtmlhelp+set}" = set; then
5144 enableval="$enable_mshtmlhelp"
5145
5146 if test "$enableval" = yes; then
5147 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5148 else
5149 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5150 fi
5151
5152 else
5153
5154 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5155 if test "x$LINE" != x ; then
5156 eval "DEFAULT_$LINE"
5157 else
5158 no_cache=1
5159 fi
5160
5161 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5162
5163 fi
5164
5165
5166 eval "$ac_cv_use_mshtmlhelp"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_MS_HTML_HELP" = yes; then
5172 echo "$ac_t""yes" 1>&6
5173 else
5174 echo "$ac_t""no" 1>&6
5175 fi
5176
5177
5178 enablestring=
5179 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5180 echo "configure:5181: checking for --${enablestring:-enable}-html" >&5
5181 no_cache=0
5182 # Check whether --enable-html or --disable-html was given.
5183 if test "${enable_html+set}" = set; then
5184 enableval="$enable_html"
5185
5186 if test "$enableval" = yes; then
5187 ac_cv_use_html='wxUSE_HTML=yes'
5188 else
5189 ac_cv_use_html='wxUSE_HTML=no'
5190 fi
5191
5192 else
5193
5194 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5195 if test "x$LINE" != x ; then
5196 eval "DEFAULT_$LINE"
5197 else
5198 no_cache=1
5199 fi
5200
5201 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5202
5203 fi
5204
5205
5206 eval "$ac_cv_use_html"
5207 if test "$no_cache" != 1; then
5208 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5209 fi
5210
5211 if test "$wxUSE_HTML" = yes; then
5212 echo "$ac_t""yes" 1>&6
5213 else
5214 echo "$ac_t""no" 1>&6
5215 fi
5216
5217
5218 enablestring=
5219 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5220 echo "configure:5221: checking for --${enablestring:-enable}-htmlhelp" >&5
5221 no_cache=0
5222 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5223 if test "${enable_htmlhelp+set}" = set; then
5224 enableval="$enable_htmlhelp"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5228 else
5229 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5230 fi
5231
5232 else
5233
5234 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5242
5243 fi
5244
5245
5246 eval "$ac_cv_use_htmlhelp"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_WXHTML_HELP" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258 enablestring=
5259 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5260 echo "configure:5261: checking for --${enablestring:-enable}-constraints" >&5
5261 no_cache=0
5262 # Check whether --enable-constraints or --disable-constraints was given.
5263 if test "${enable_constraints+set}" = set; then
5264 enableval="$enable_constraints"
5265
5266 if test "$enableval" = yes; then
5267 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5268 else
5269 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5270 fi
5271
5272 else
5273
5274 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5275 if test "x$LINE" != x ; then
5276 eval "DEFAULT_$LINE"
5277 else
5278 no_cache=1
5279 fi
5280
5281 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5282
5283 fi
5284
5285
5286 eval "$ac_cv_use_constraints"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_CONSTRAINTS" = yes; then
5292 echo "$ac_t""yes" 1>&6
5293 else
5294 echo "$ac_t""no" 1>&6
5295 fi
5296
5297
5298 enablestring=
5299 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5300 echo "configure:5301: checking for --${enablestring:-enable}-printarch" >&5
5301 no_cache=0
5302 # Check whether --enable-printarch or --disable-printarch was given.
5303 if test "${enable_printarch+set}" = set; then
5304 enableval="$enable_printarch"
5305
5306 if test "$enableval" = yes; then
5307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5308 else
5309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5310 fi
5311
5312 else
5313
5314 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5315 if test "x$LINE" != x ; then
5316 eval "DEFAULT_$LINE"
5317 else
5318 no_cache=1
5319 fi
5320
5321 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5322
5323 fi
5324
5325
5326 eval "$ac_cv_use_printarch"
5327 if test "$no_cache" != 1; then
5328 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5329 fi
5330
5331 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5332 echo "$ac_t""yes" 1>&6
5333 else
5334 echo "$ac_t""no" 1>&6
5335 fi
5336
5337
5338 enablestring=
5339 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5340 echo "configure:5341: checking for --${enablestring:-enable}-mdi" >&5
5341 no_cache=0
5342 # Check whether --enable-mdi or --disable-mdi was given.
5343 if test "${enable_mdi+set}" = set; then
5344 enableval="$enable_mdi"
5345
5346 if test "$enableval" = yes; then
5347 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5348 else
5349 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5350 fi
5351
5352 else
5353
5354 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5362
5363 fi
5364
5365
5366 eval "$ac_cv_use_mdi"
5367 if test "$no_cache" != 1; then
5368 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5369 fi
5370
5371 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5372 echo "$ac_t""yes" 1>&6
5373 else
5374 echo "$ac_t""no" 1>&6
5375 fi
5376
5377
5378 enablestring=
5379 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5380 echo "configure:5381: checking for --${enablestring:-enable}-loggui" >&5
5381 no_cache=0
5382 # Check whether --enable-loggui or --disable-loggui was given.
5383 if test "${enable_loggui+set}" = set; then
5384 enableval="$enable_loggui"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5388 else
5389 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5390 fi
5391
5392 else
5393
5394 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5402
5403 fi
5404
5405
5406 eval "$ac_cv_use_loggui"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_LOGGUI" = yes; then
5412 echo "$ac_t""yes" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5415 fi
5416
5417
5418 enablestring=
5419 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5420 echo "configure:5421: checking for --${enablestring:-enable}-logwin" >&5
5421 no_cache=0
5422 # Check whether --enable-logwin or --disable-logwin was given.
5423 if test "${enable_logwin+set}" = set; then
5424 enableval="$enable_logwin"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5428 else
5429 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5430 fi
5431
5432 else
5433
5434 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5442
5443 fi
5444
5445
5446 eval "$ac_cv_use_logwin"
5447 if test "$no_cache" != 1; then
5448 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5449 fi
5450
5451 if test "$wxUSE_LOGWINDOW" = yes; then
5452 echo "$ac_t""yes" 1>&6
5453 else
5454 echo "$ac_t""no" 1>&6
5455 fi
5456
5457
5458 enablestring=
5459 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5460 echo "configure:5461: checking for --${enablestring:-enable}-logdialog" >&5
5461 no_cache=0
5462 # Check whether --enable-logdialog or --disable-logdialog was given.
5463 if test "${enable_logdialog+set}" = set; then
5464 enableval="$enable_logdialog"
5465
5466 if test "$enableval" = yes; then
5467 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5468 else
5469 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5470 fi
5471
5472 else
5473
5474 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5482
5483 fi
5484
5485
5486 eval "$ac_cv_use_logdialog"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_LOGDIALOG" = yes; then
5492 echo "$ac_t""yes" 1>&6
5493 else
5494 echo "$ac_t""no" 1>&6
5495 fi
5496
5497
5498
5499 enablestring=
5500 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5501 echo "configure:5502: checking for --${enablestring:-enable}-postscript" >&5
5502 no_cache=0
5503 # Check whether --enable-postscript or --disable-postscript was given.
5504 if test "${enable_postscript+set}" = set; then
5505 enableval="$enable_postscript"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5509 else
5510 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5511 fi
5512
5513 else
5514
5515 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5523
5524 fi
5525
5526
5527 eval "$ac_cv_use_postscript"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_POSTSCRIPT" = yes; then
5533 echo "$ac_t""yes" 1>&6
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538
5539
5540
5541
5542 enablestring=
5543 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5544 echo "configure:5545: checking for --${enablestring:-enable}-prologio" >&5
5545 no_cache=0
5546 # Check whether --enable-prologio or --disable-prologio was given.
5547 if test "${enable_prologio+set}" = set; then
5548 enableval="$enable_prologio"
5549
5550 if test "$enableval" = yes; then
5551 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5552 else
5553 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5554 fi
5555
5556 else
5557
5558 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
5565 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5566
5567 fi
5568
5569
5570 eval "$ac_cv_use_prologio"
5571 if test "$no_cache" != 1; then
5572 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5573 fi
5574
5575 if test "$wxUSE_PROLOGIO" = yes; then
5576 echo "$ac_t""yes" 1>&6
5577 else
5578 echo "$ac_t""no" 1>&6
5579 fi
5580
5581
5582 enablestring=
5583 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5584 echo "configure:5585: checking for --${enablestring:-enable}-resources" >&5
5585 no_cache=0
5586 # Check whether --enable-resources or --disable-resources was given.
5587 if test "${enable_resources+set}" = set; then
5588 enableval="$enable_resources"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5592 else
5593 ac_cv_use_resources='wxUSE_RESOURCES=no'
5594 fi
5595
5596 else
5597
5598 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5606
5607 fi
5608
5609
5610 eval "$ac_cv_use_resources"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_RESOURCES" = yes; then
5616 echo "$ac_t""yes" 1>&6
5617 else
5618 echo "$ac_t""no" 1>&6
5619 fi
5620
5621
5622
5623 enablestring=
5624 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5625 echo "configure:5626: checking for --${enablestring:-enable}-xresources" >&5
5626 no_cache=0
5627 # Check whether --enable-xresources or --disable-xresources was given.
5628 if test "${enable_xresources+set}" = set; then
5629 enableval="$enable_xresources"
5630
5631 if test "$enableval" = yes; then
5632 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5633 else
5634 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5635 fi
5636
5637 else
5638
5639 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5640 if test "x$LINE" != x ; then
5641 eval "DEFAULT_$LINE"
5642 else
5643 no_cache=1
5644 fi
5645
5646 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5647
5648 fi
5649
5650
5651 eval "$ac_cv_use_xresources"
5652 if test "$no_cache" != 1; then
5653 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5654 fi
5655
5656 if test "$wxUSE_X_RESOURCES" = yes; then
5657 echo "$ac_t""yes" 1>&6
5658 else
5659 echo "$ac_t""no" 1>&6
5660 fi
5661
5662
5663
5664
5665 enablestring=
5666 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5667 echo "configure:5668: checking for --${enablestring:-enable}-clipboard" >&5
5668 no_cache=0
5669 # Check whether --enable-clipboard or --disable-clipboard was given.
5670 if test "${enable_clipboard+set}" = set; then
5671 enableval="$enable_clipboard"
5672
5673 if test "$enableval" = yes; then
5674 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5675 else
5676 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5677 fi
5678
5679 else
5680
5681 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5682 if test "x$LINE" != x ; then
5683 eval "DEFAULT_$LINE"
5684 else
5685 no_cache=1
5686 fi
5687
5688 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5689
5690 fi
5691
5692
5693 eval "$ac_cv_use_clipboard"
5694 if test "$no_cache" != 1; then
5695 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5696 fi
5697
5698 if test "$wxUSE_CLIPBOARD" = yes; then
5699 echo "$ac_t""yes" 1>&6
5700 else
5701 echo "$ac_t""no" 1>&6
5702 fi
5703
5704
5705 enablestring=
5706 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5707 echo "configure:5708: checking for --${enablestring:-enable}-dnd" >&5
5708 no_cache=0
5709 # Check whether --enable-dnd or --disable-dnd was given.
5710 if test "${enable_dnd+set}" = set; then
5711 enableval="$enable_dnd"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5715 else
5716 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5717 fi
5718
5719 else
5720
5721 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5729
5730 fi
5731
5732
5733 eval "$ac_cv_use_dnd"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5739 echo "$ac_t""yes" 1>&6
5740 else
5741 echo "$ac_t""no" 1>&6
5742 fi
5743
5744
5745 enablestring=
5746 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5747 echo "configure:5748: checking for --${enablestring:-enable}-metafile" >&5
5748 no_cache=0
5749 # Check whether --enable-metafile or --disable-metafile was given.
5750 if test "${enable_metafile+set}" = set; then
5751 enableval="$enable_metafile"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5755 else
5756 ac_cv_use_metafile='wxUSE_METAFILE=no'
5757 fi
5758
5759 else
5760
5761 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5769
5770 fi
5771
5772
5773 eval "$ac_cv_use_metafile"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_METAFILE" = yes; then
5779 echo "$ac_t""yes" 1>&6
5780 else
5781 echo "$ac_t""no" 1>&6
5782 fi
5783
5784
5785
5786 enablestring=
5787 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5788 echo "configure:5789: checking for --${enablestring:-enable}-treelayout" >&5
5789 no_cache=0
5790 # Check whether --enable-treelayout or --disable-treelayout was given.
5791 if test "${enable_treelayout+set}" = set; then
5792 enableval="$enable_treelayout"
5793
5794 if test "$enableval" = yes; then
5795 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5796 else
5797 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5798 fi
5799
5800 else
5801
5802 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5810
5811 fi
5812
5813
5814 eval "$ac_cv_use_treelayout"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_TREELAYOUT" = yes; then
5820 echo "$ac_t""yes" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5823 fi
5824
5825
5826
5827
5828 enablestring=
5829 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5830 echo "configure:5831: checking for --${enablestring:-enable}-controls" >&5
5831 no_cache=0
5832 # Check whether --enable-controls or --disable-controls was given.
5833 if test "${enable_controls+set}" = set; then
5834 enableval="$enable_controls"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5838 else
5839 ac_cv_use_controls='wxUSE_CONTROLS=no'
5840 fi
5841
5842 else
5843
5844 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5852
5853 fi
5854
5855
5856 eval "$ac_cv_use_controls"
5857 if test "$no_cache" != 1; then
5858 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5859 fi
5860
5861 if test "$wxUSE_CONTROLS" = yes; then
5862 echo "$ac_t""yes" 1>&6
5863 else
5864 echo "$ac_t""no" 1>&6
5865 fi
5866
5867
5868 if test "$wxUSE_CONTROLS" = "yes"; then
5869 DEFAULT_wxUSE_ACCEL=yes
5870 DEFAULT_wxUSE_BMPBUTTON=yes
5871 DEFAULT_wxUSE_BUTTON=yes
5872 DEFAULT_wxUSE_CALCTRL=no
5873 DEFAULT_wxUSE_CARET=yes
5874 DEFAULT_wxUSE_COMBOBOX=yes
5875 DEFAULT_wxUSE_CHECKBOX=yes
5876 DEFAULT_wxUSE_CHECKLISTBOX=yes
5877 DEFAULT_wxUSE_CHOICE=yes
5878 DEFAULT_wxUSE_GAUGE=yes
5879 DEFAULT_wxUSE_GRID=yes
5880 DEFAULT_wxUSE_NEW_GRID=yes
5881 DEFAULT_wxUSE_IMAGLIST=yes
5882 DEFAULT_wxUSE_LISTBOX=yes
5883 DEFAULT_wxUSE_LISTCTRL=yes
5884 DEFAULT_wxUSE_NOTEBOOK=yes
5885 DEFAULT_wxUSE_PROPSHEET=yes
5886 DEFAULT_wxUSE_RADIOBOX=yes
5887 DEFAULT_wxUSE_RADIOBTN=yes
5888 DEFAULT_wxUSE_SASH=yes
5889 DEFAULT_wxUSE_SCROLLBAR=yes
5890 DEFAULT_wxUSE_SLIDER=yes
5891 DEFAULT_wxUSE_SPINBTN=yes
5892 DEFAULT_wxUSE_SPINCTRL=yes
5893 DEFAULT_wxUSE_SPLITTER=yes
5894 DEFAULT_wxUSE_STATBMP=yes
5895 DEFAULT_wxUSE_STATBOX=yes
5896 DEFAULT_wxUSE_STATLINE=yes
5897 DEFAULT_wxUSE_STATUSBAR=yes
5898 DEFAULT_wxUSE_TAB_DIALOG=yes
5899 DEFAULT_wxUSE_TOGGLEBTN=yes
5900 DEFAULT_wxUSE_TOOLBAR=yes
5901 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5902 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5903 DEFAULT_wxUSE_TOOLTIPS=yes
5904 DEFAULT_wxUSE_TREECTRL=yes
5905 DEFAULT_wxUSE_POPUPWIN=yes
5906 DEFAULT_wxUSE_TIPWINDOW=yes
5907 elif test "$wxUSE_CONTROLS" = "no"; then
5908 DEFAULT_wxUSE_ACCEL=no
5909 DEFAULT_wxUSE_BMPBUTTON=no
5910 DEFAULT_wxUSE_BUTTON=no
5911 DEFAULT_wxUSE_CALCTRL=no
5912 DEFAULT_wxUSE_CARET=no
5913 DEFAULT_wxUSE_COMBOBOX=no
5914 DEFAULT_wxUSE_CHECKBOX=no
5915 DEFAULT_wxUSE_CHECKLISTBOX=no
5916 DEFAULT_wxUSE_CHOICE=no
5917 DEFAULT_wxUSE_GAUGE=no
5918 DEFAULT_wxUSE_GRID=no
5919 DEFAULT_wxUSE_NEW_GRID=no
5920 DEFAULT_wxUSE_IMAGLIST=no
5921 DEFAULT_wxUSE_LISTBOX=no
5922 DEFAULT_wxUSE_LISTCTRL=no
5923 DEFAULT_wxUSE_NOTEBOOK=no
5924 DEFAULT_wxUSE_PROPSHEET=no
5925 DEFAULT_wxUSE_RADIOBOX=no
5926 DEFAULT_wxUSE_RADIOBTN=no
5927 DEFAULT_wxUSE_SASH=no
5928 DEFAULT_wxUSE_SCROLLBAR=no
5929 DEFAULT_wxUSE_SLIDER=no
5930 DEFAULT_wxUSE_SPINBTN=no
5931 DEFAULT_wxUSE_SPINCTRL=no
5932 DEFAULT_wxUSE_SPLITTER=no
5933 DEFAULT_wxUSE_STATBMP=no
5934 DEFAULT_wxUSE_STATBOX=no
5935 DEFAULT_wxUSE_STATLINE=no
5936 DEFAULT_wxUSE_STATUSBAR=no
5937 DEFAULT_wxUSE_TAB_DIALOG=no
5938 DEFAULT_wxUSE_TOGGLEBTN=no
5939 DEFAULT_wxUSE_TOOLBAR=no
5940 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5941 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5942 DEFAULT_wxUSE_TOOLTIPS=no
5943 DEFAULT_wxUSE_TREECTRL=no
5944 DEFAULT_wxUSE_POPUPWIN=no
5945 DEFAULT_wxUSE_TIPWINDOW=no
5946 fi
5947
5948 ## FIXME: This is a blatant hack
5949 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5950 wxUSE_PRINTING_ARCHITECTURE=no
5951 wxUSE_HELP=no
5952 wxUSE_CLIPBOARD=no
5953 wxUSE_DRAG_AND_DROP=no
5954 wxUSE_DATAOBJ=no
5955 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5956 DEFAULT_wxUSE_TEXTDLG=no
5957 DEFAULT_wxUSE_GAUGE=no
5958 DEFAULT_wxUSE_SCROLLBAR=no
5959 DEFAULT_wxUSE_SLIDER=no
5960 DEFAULT_wxUSE_COMBOBOX=no
5961 DEFAULT_wxUSE_CALCTRL=no
5962 DEFAULT_wxUSE_SPINBTN=no
5963 DEFAULT_wxUSE_SPINCTRL=no
5964 DEFAULT_wxUSE_TOOLTIPS=no
5965 DEFAULT_wxUSE_COLOURDLG=no
5966 DEFAULT_wxUSE_DIRDLG=no
5967 DEFAULT_wxUSE_DRAGIMAGE=no
5968 DEFAULT_wxUSE_FINDREPLDLG=no
5969 DEFAULT_wxUSE_FONTDLG=no
5970 DEFAULT_wxUSE_GRID=no
5971 DEFAULT_wxUSE_NEW_GRID=no
5972 DEFAULT_wxUSE_NUMBERDLG=no
5973 DEFAULT_wxUSE_PROGRESSDLG=no
5974 DEFAULT_wxUSE_PROPSHEET=no
5975 DEFAULT_wxUSE_SASH=no
5976 DEFAULT_wxUSE_SPLITTER=no
5977 DEFAULT_wxUSE_WIZARDDLG=no
5978 DEFAULT_wxUSE_SPLITTER=no
5979 DEFAULT_wxUSE_STARTUP_TIPS=no
5980 DEFAULT_wxUSE_TREECTRL=no
5981 fi
5982
5983
5984 enablestring=
5985 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5986 echo "configure:5987: checking for --${enablestring:-enable}-accel" >&5
5987 no_cache=0
5988 # Check whether --enable-accel or --disable-accel was given.
5989 if test "${enable_accel+set}" = set; then
5990 enableval="$enable_accel"
5991
5992 if test "$enableval" = yes; then
5993 ac_cv_use_accel='wxUSE_ACCEL=yes'
5994 else
5995 ac_cv_use_accel='wxUSE_ACCEL=no'
5996 fi
5997
5998 else
5999
6000 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6001 if test "x$LINE" != x ; then
6002 eval "DEFAULT_$LINE"
6003 else
6004 no_cache=1
6005 fi
6006
6007 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6008
6009 fi
6010
6011
6012 eval "$ac_cv_use_accel"
6013 if test "$no_cache" != 1; then
6014 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6015 fi
6016
6017 if test "$wxUSE_ACCEL" = yes; then
6018 echo "$ac_t""yes" 1>&6
6019 else
6020 echo "$ac_t""no" 1>&6
6021 fi
6022
6023
6024 enablestring=
6025 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
6026 echo "configure:6027: checking for --${enablestring:-enable}-button" >&5
6027 no_cache=0
6028 # Check whether --enable-button or --disable-button was given.
6029 if test "${enable_button+set}" = set; then
6030 enableval="$enable_button"
6031
6032 if test "$enableval" = yes; then
6033 ac_cv_use_button='wxUSE_BUTTON=yes'
6034 else
6035 ac_cv_use_button='wxUSE_BUTTON=no'
6036 fi
6037
6038 else
6039
6040 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6041 if test "x$LINE" != x ; then
6042 eval "DEFAULT_$LINE"
6043 else
6044 no_cache=1
6045 fi
6046
6047 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6048
6049 fi
6050
6051
6052 eval "$ac_cv_use_button"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_BUTTON" = yes; then
6058 echo "$ac_t""yes" 1>&6
6059 else
6060 echo "$ac_t""no" 1>&6
6061 fi
6062
6063
6064 enablestring=
6065 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6066 echo "configure:6067: checking for --${enablestring:-enable}-bmpbutton" >&5
6067 no_cache=0
6068 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6069 if test "${enable_bmpbutton+set}" = set; then
6070 enableval="$enable_bmpbutton"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6074 else
6075 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6076 fi
6077
6078 else
6079
6080 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6088
6089 fi
6090
6091
6092 eval "$ac_cv_use_bmpbutton"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_BMPBUTTON" = yes; then
6098 echo "$ac_t""yes" 1>&6
6099 else
6100 echo "$ac_t""no" 1>&6
6101 fi
6102
6103
6104 enablestring=
6105 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6106 echo "configure:6107: checking for --${enablestring:-enable}-calendar" >&5
6107 no_cache=0
6108 # Check whether --enable-calendar or --disable-calendar was given.
6109 if test "${enable_calendar+set}" = set; then
6110 enableval="$enable_calendar"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6114 else
6115 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6116 fi
6117
6118 else
6119
6120 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6128
6129 fi
6130
6131
6132 eval "$ac_cv_use_calendar"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_CALCTRL" = yes; then
6138 echo "$ac_t""yes" 1>&6
6139 else
6140 echo "$ac_t""no" 1>&6
6141 fi
6142
6143
6144 enablestring=
6145 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6146 echo "configure:6147: checking for --${enablestring:-enable}-caret" >&5
6147 no_cache=0
6148 # Check whether --enable-caret or --disable-caret was given.
6149 if test "${enable_caret+set}" = set; then
6150 enableval="$enable_caret"
6151
6152 if test "$enableval" = yes; then
6153 ac_cv_use_caret='wxUSE_CARET=yes'
6154 else
6155 ac_cv_use_caret='wxUSE_CARET=no'
6156 fi
6157
6158 else
6159
6160 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6161 if test "x$LINE" != x ; then
6162 eval "DEFAULT_$LINE"
6163 else
6164 no_cache=1
6165 fi
6166
6167 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6168
6169 fi
6170
6171
6172 eval "$ac_cv_use_caret"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_CARET" = yes; then
6178 echo "$ac_t""yes" 1>&6
6179 else
6180 echo "$ac_t""no" 1>&6
6181 fi
6182
6183
6184 enablestring=
6185 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6186 echo "configure:6187: checking for --${enablestring:-enable}-checkbox" >&5
6187 no_cache=0
6188 # Check whether --enable-checkbox or --disable-checkbox was given.
6189 if test "${enable_checkbox+set}" = set; then
6190 enableval="$enable_checkbox"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6194 else
6195 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6196 fi
6197
6198 else
6199
6200 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6208
6209 fi
6210
6211
6212 eval "$ac_cv_use_checkbox"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_CHECKBOX" = yes; then
6218 echo "$ac_t""yes" 1>&6
6219 else
6220 echo "$ac_t""no" 1>&6
6221 fi
6222
6223
6224 enablestring=
6225 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6226 echo "configure:6227: checking for --${enablestring:-enable}-checklst" >&5
6227 no_cache=0
6228 # Check whether --enable-checklst or --disable-checklst was given.
6229 if test "${enable_checklst+set}" = set; then
6230 enableval="$enable_checklst"
6231
6232 if test "$enableval" = yes; then
6233 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6234 else
6235 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6236 fi
6237
6238 else
6239
6240 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6248
6249 fi
6250
6251
6252 eval "$ac_cv_use_checklst"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_CHECKLST" = yes; then
6258 echo "$ac_t""yes" 1>&6
6259 else
6260 echo "$ac_t""no" 1>&6
6261 fi
6262
6263
6264 enablestring=
6265 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6266 echo "configure:6267: checking for --${enablestring:-enable}-choice" >&5
6267 no_cache=0
6268 # Check whether --enable-choice or --disable-choice was given.
6269 if test "${enable_choice+set}" = set; then
6270 enableval="$enable_choice"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_choice='wxUSE_CHOICE=yes'
6274 else
6275 ac_cv_use_choice='wxUSE_CHOICE=no'
6276 fi
6277
6278 else
6279
6280 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6288
6289 fi
6290
6291
6292 eval "$ac_cv_use_choice"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_CHOICE" = yes; then
6298 echo "$ac_t""yes" 1>&6
6299 else
6300 echo "$ac_t""no" 1>&6
6301 fi
6302
6303
6304 enablestring=
6305 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6306 echo "configure:6307: checking for --${enablestring:-enable}-combobox" >&5
6307 no_cache=0
6308 # Check whether --enable-combobox or --disable-combobox was given.
6309 if test "${enable_combobox+set}" = set; then
6310 enableval="$enable_combobox"
6311
6312 if test "$enableval" = yes; then
6313 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6314 else
6315 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6316 fi
6317
6318 else
6319
6320 LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6328
6329 fi
6330
6331
6332 eval "$ac_cv_use_combobox"
6333 if test "$no_cache" != 1; then
6334 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6335 fi
6336
6337 if test "$wxUSE_COMBOBOX" = yes; then
6338 echo "$ac_t""yes" 1>&6
6339 else
6340 echo "$ac_t""no" 1>&6
6341 fi
6342
6343
6344 enablestring=
6345 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6346 echo "configure:6347: checking for --${enablestring:-enable}-display" >&5
6347 no_cache=0
6348 # Check whether --enable-display or --disable-display was given.
6349 if test "${enable_display+set}" = set; then
6350 enableval="$enable_display"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_display='wxUSE_DISPLAY=yes'
6354 else
6355 ac_cv_use_display='wxUSE_DISPLAY=no'
6356 fi
6357
6358 else
6359
6360 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6368
6369 fi
6370
6371
6372 eval "$ac_cv_use_display"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_DISPLAY" = yes; then
6378 echo "$ac_t""yes" 1>&6
6379 else
6380 echo "$ac_t""no" 1>&6
6381 fi
6382
6383
6384 enablestring=
6385 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6386 echo "configure:6387: checking for --${enablestring:-enable}-gauge" >&5
6387 no_cache=0
6388 # Check whether --enable-gauge or --disable-gauge was given.
6389 if test "${enable_gauge+set}" = set; then
6390 enableval="$enable_gauge"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6394 else
6395 ac_cv_use_gauge='wxUSE_GAUGE=no'
6396 fi
6397
6398 else
6399
6400 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6408
6409 fi
6410
6411
6412 eval "$ac_cv_use_gauge"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_GAUGE" = yes; then
6418 echo "$ac_t""yes" 1>&6
6419 else
6420 echo "$ac_t""no" 1>&6
6421 fi
6422
6423
6424 enablestring=
6425 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6426 echo "configure:6427: checking for --${enablestring:-enable}-grid" >&5
6427 no_cache=0
6428 # Check whether --enable-grid or --disable-grid was given.
6429 if test "${enable_grid+set}" = set; then
6430 enableval="$enable_grid"
6431
6432 if test "$enableval" = yes; then
6433 ac_cv_use_grid='wxUSE_GRID=yes'
6434 else
6435 ac_cv_use_grid='wxUSE_GRID=no'
6436 fi
6437
6438 else
6439
6440 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6441 if test "x$LINE" != x ; then
6442 eval "DEFAULT_$LINE"
6443 else
6444 no_cache=1
6445 fi
6446
6447 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6448
6449 fi
6450
6451
6452 eval "$ac_cv_use_grid"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_GRID" = yes; then
6458 echo "$ac_t""yes" 1>&6
6459 else
6460 echo "$ac_t""no" 1>&6
6461 fi
6462
6463
6464 enablestring=
6465 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6466 echo "configure:6467: checking for --${enablestring:-enable}-newgrid" >&5
6467 no_cache=0
6468 # Check whether --enable-newgrid or --disable-newgrid was given.
6469 if test "${enable_newgrid+set}" = set; then
6470 enableval="$enable_newgrid"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6474 else
6475 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6476 fi
6477
6478 else
6479
6480 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6488
6489 fi
6490
6491
6492 eval "$ac_cv_use_newgrid"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_NEW_GRID" = yes; then
6498 echo "$ac_t""yes" 1>&6
6499 else
6500 echo "$ac_t""no" 1>&6
6501 fi
6502
6503
6504 enablestring=
6505 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6506 echo "configure:6507: checking for --${enablestring:-enable}-imaglist" >&5
6507 no_cache=0
6508 # Check whether --enable-imaglist or --disable-imaglist was given.
6509 if test "${enable_imaglist+set}" = set; then
6510 enableval="$enable_imaglist"
6511
6512 if test "$enableval" = yes; then
6513 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6514 else
6515 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6516 fi
6517
6518 else
6519
6520 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6521 if test "x$LINE" != x ; then
6522 eval "DEFAULT_$LINE"
6523 else
6524 no_cache=1
6525 fi
6526
6527 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6528
6529 fi
6530
6531
6532 eval "$ac_cv_use_imaglist"
6533 if test "$no_cache" != 1; then
6534 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6535 fi
6536
6537 if test "$wxUSE_IMAGLIST" = yes; then
6538 echo "$ac_t""yes" 1>&6
6539 else
6540 echo "$ac_t""no" 1>&6
6541 fi
6542
6543
6544 enablestring=
6545 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6546 echo "configure:6547: checking for --${enablestring:-enable}-listbox" >&5
6547 no_cache=0
6548 # Check whether --enable-listbox or --disable-listbox was given.
6549 if test "${enable_listbox+set}" = set; then
6550 enableval="$enable_listbox"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6554 else
6555 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6556 fi
6557
6558 else
6559
6560 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6568
6569 fi
6570
6571
6572 eval "$ac_cv_use_listbox"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_LISTBOX" = yes; then
6578 echo "$ac_t""yes" 1>&6
6579 else
6580 echo "$ac_t""no" 1>&6
6581 fi
6582
6583
6584 enablestring=
6585 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6586 echo "configure:6587: checking for --${enablestring:-enable}-listctrl" >&5
6587 no_cache=0
6588 # Check whether --enable-listctrl or --disable-listctrl was given.
6589 if test "${enable_listctrl+set}" = set; then
6590 enableval="$enable_listctrl"
6591
6592 if test "$enableval" = yes; then
6593 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6594 else
6595 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6596 fi
6597
6598 else
6599
6600 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6608
6609 fi
6610
6611
6612 eval "$ac_cv_use_listctrl"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_LISTCTRL" = yes; then
6618 echo "$ac_t""yes" 1>&6
6619 else
6620 echo "$ac_t""no" 1>&6
6621 fi
6622
6623
6624 enablestring=
6625 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6626 echo "configure:6627: checking for --${enablestring:-enable}-notebook" >&5
6627 no_cache=0
6628 # Check whether --enable-notebook or --disable-notebook was given.
6629 if test "${enable_notebook+set}" = set; then
6630 enableval="$enable_notebook"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6634 else
6635 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6636 fi
6637
6638 else
6639
6640 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6648
6649 fi
6650
6651
6652 eval "$ac_cv_use_notebook"
6653 if test "$no_cache" != 1; then
6654 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6655 fi
6656
6657 if test "$wxUSE_NOTEBOOK" = yes; then
6658 echo "$ac_t""yes" 1>&6
6659 else
6660 echo "$ac_t""no" 1>&6
6661 fi
6662
6663
6664 enablestring=
6665 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6666 echo "configure:6667: checking for --${enablestring:-enable}-propsheet" >&5
6667 no_cache=0
6668 # Check whether --enable-propsheet or --disable-propsheet was given.
6669 if test "${enable_propsheet+set}" = set; then
6670 enableval="$enable_propsheet"
6671
6672 if test "$enableval" = yes; then
6673 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6674 else
6675 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6676 fi
6677
6678 else
6679
6680 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6688
6689 fi
6690
6691
6692 eval "$ac_cv_use_propsheet"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_PROPSHEET" = yes; then
6698 echo "$ac_t""yes" 1>&6
6699 else
6700 echo "$ac_t""no" 1>&6
6701 fi
6702
6703
6704 enablestring=
6705 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6706 echo "configure:6707: checking for --${enablestring:-enable}-radiobox" >&5
6707 no_cache=0
6708 # Check whether --enable-radiobox or --disable-radiobox was given.
6709 if test "${enable_radiobox+set}" = set; then
6710 enableval="$enable_radiobox"
6711
6712 if test "$enableval" = yes; then
6713 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6714 else
6715 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6716 fi
6717
6718 else
6719
6720 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6728
6729 fi
6730
6731
6732 eval "$ac_cv_use_radiobox"
6733 if test "$no_cache" != 1; then
6734 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6735 fi
6736
6737 if test "$wxUSE_RADIOBOX" = yes; then
6738 echo "$ac_t""yes" 1>&6
6739 else
6740 echo "$ac_t""no" 1>&6
6741 fi
6742
6743
6744 enablestring=
6745 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6746 echo "configure:6747: checking for --${enablestring:-enable}-radiobtn" >&5
6747 no_cache=0
6748 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6749 if test "${enable_radiobtn+set}" = set; then
6750 enableval="$enable_radiobtn"
6751
6752 if test "$enableval" = yes; then
6753 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6754 else
6755 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6756 fi
6757
6758 else
6759
6760 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6761 if test "x$LINE" != x ; then
6762 eval "DEFAULT_$LINE"
6763 else
6764 no_cache=1
6765 fi
6766
6767 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6768
6769 fi
6770
6771
6772 eval "$ac_cv_use_radiobtn"
6773 if test "$no_cache" != 1; then
6774 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6775 fi
6776
6777 if test "$wxUSE_RADIOBTN" = yes; then
6778 echo "$ac_t""yes" 1>&6
6779 else
6780 echo "$ac_t""no" 1>&6
6781 fi
6782
6783
6784 enablestring=
6785 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6786 echo "configure:6787: checking for --${enablestring:-enable}-sash" >&5
6787 no_cache=0
6788 # Check whether --enable-sash or --disable-sash was given.
6789 if test "${enable_sash+set}" = set; then
6790 enableval="$enable_sash"
6791
6792 if test "$enableval" = yes; then
6793 ac_cv_use_sash='wxUSE_SASH=yes'
6794 else
6795 ac_cv_use_sash='wxUSE_SASH=no'
6796 fi
6797
6798 else
6799
6800 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6801 if test "x$LINE" != x ; then
6802 eval "DEFAULT_$LINE"
6803 else
6804 no_cache=1
6805 fi
6806
6807 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6808
6809 fi
6810
6811
6812 eval "$ac_cv_use_sash"
6813 if test "$no_cache" != 1; then
6814 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6815 fi
6816
6817 if test "$wxUSE_SASH" = yes; then
6818 echo "$ac_t""yes" 1>&6
6819 else
6820 echo "$ac_t""no" 1>&6
6821 fi
6822
6823
6824 enablestring=
6825 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6826 echo "configure:6827: checking for --${enablestring:-enable}-scrollbar" >&5
6827 no_cache=0
6828 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6829 if test "${enable_scrollbar+set}" = set; then
6830 enableval="$enable_scrollbar"
6831
6832 if test "$enableval" = yes; then
6833 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6834 else
6835 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6836 fi
6837
6838 else
6839
6840 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6848
6849 fi
6850
6851
6852 eval "$ac_cv_use_scrollbar"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_SCROLLBAR" = yes; then
6858 echo "$ac_t""yes" 1>&6
6859 else
6860 echo "$ac_t""no" 1>&6
6861 fi
6862
6863
6864 enablestring=
6865 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6866 echo "configure:6867: checking for --${enablestring:-enable}-slider" >&5
6867 no_cache=0
6868 # Check whether --enable-slider or --disable-slider was given.
6869 if test "${enable_slider+set}" = set; then
6870 enableval="$enable_slider"
6871
6872 if test "$enableval" = yes; then
6873 ac_cv_use_slider='wxUSE_SLIDER=yes'
6874 else
6875 ac_cv_use_slider='wxUSE_SLIDER=no'
6876 fi
6877
6878 else
6879
6880 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6881 if test "x$LINE" != x ; then
6882 eval "DEFAULT_$LINE"
6883 else
6884 no_cache=1
6885 fi
6886
6887 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6888
6889 fi
6890
6891
6892 eval "$ac_cv_use_slider"
6893 if test "$no_cache" != 1; then
6894 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6895 fi
6896
6897 if test "$wxUSE_SLIDER" = yes; then
6898 echo "$ac_t""yes" 1>&6
6899 else
6900 echo "$ac_t""no" 1>&6
6901 fi
6902
6903
6904 enablestring=
6905 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6906 echo "configure:6907: checking for --${enablestring:-enable}-spinbtn" >&5
6907 no_cache=0
6908 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6909 if test "${enable_spinbtn+set}" = set; then
6910 enableval="$enable_spinbtn"
6911
6912 if test "$enableval" = yes; then
6913 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6914 else
6915 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6916 fi
6917
6918 else
6919
6920 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6921 if test "x$LINE" != x ; then
6922 eval "DEFAULT_$LINE"
6923 else
6924 no_cache=1
6925 fi
6926
6927 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6928
6929 fi
6930
6931
6932 eval "$ac_cv_use_spinbtn"
6933 if test "$no_cache" != 1; then
6934 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6935 fi
6936
6937 if test "$wxUSE_SPINBTN" = yes; then
6938 echo "$ac_t""yes" 1>&6
6939 else
6940 echo "$ac_t""no" 1>&6
6941 fi
6942
6943
6944 enablestring=
6945 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6946 echo "configure:6947: checking for --${enablestring:-enable}-spinctrl" >&5
6947 no_cache=0
6948 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6949 if test "${enable_spinctrl+set}" = set; then
6950 enableval="$enable_spinctrl"
6951
6952 if test "$enableval" = yes; then
6953 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6954 else
6955 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6956 fi
6957
6958 else
6959
6960 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6961 if test "x$LINE" != x ; then
6962 eval "DEFAULT_$LINE"
6963 else
6964 no_cache=1
6965 fi
6966
6967 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6968
6969 fi
6970
6971
6972 eval "$ac_cv_use_spinctrl"
6973 if test "$no_cache" != 1; then
6974 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6975 fi
6976
6977 if test "$wxUSE_SPINCTRL" = yes; then
6978 echo "$ac_t""yes" 1>&6
6979 else
6980 echo "$ac_t""no" 1>&6
6981 fi
6982
6983
6984 enablestring=
6985 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6986 echo "configure:6987: checking for --${enablestring:-enable}-splitter" >&5
6987 no_cache=0
6988 # Check whether --enable-splitter or --disable-splitter was given.
6989 if test "${enable_splitter+set}" = set; then
6990 enableval="$enable_splitter"
6991
6992 if test "$enableval" = yes; then
6993 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6994 else
6995 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6996 fi
6997
6998 else
6999
7000 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7008
7009 fi
7010
7011
7012 eval "$ac_cv_use_splitter"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_SPLITTER" = yes; then
7018 echo "$ac_t""yes" 1>&6
7019 else
7020 echo "$ac_t""no" 1>&6
7021 fi
7022
7023
7024 enablestring=
7025 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
7026 echo "configure:7027: checking for --${enablestring:-enable}-statbmp" >&5
7027 no_cache=0
7028 # Check whether --enable-statbmp or --disable-statbmp was given.
7029 if test "${enable_statbmp+set}" = set; then
7030 enableval="$enable_statbmp"
7031
7032 if test "$enableval" = yes; then
7033 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7034 else
7035 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7036 fi
7037
7038 else
7039
7040 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7041 if test "x$LINE" != x ; then
7042 eval "DEFAULT_$LINE"
7043 else
7044 no_cache=1
7045 fi
7046
7047 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7048
7049 fi
7050
7051
7052 eval "$ac_cv_use_statbmp"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_STATBMP" = yes; then
7058 echo "$ac_t""yes" 1>&6
7059 else
7060 echo "$ac_t""no" 1>&6
7061 fi
7062
7063
7064 enablestring=
7065 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
7066 echo "configure:7067: checking for --${enablestring:-enable}-statbox" >&5
7067 no_cache=0
7068 # Check whether --enable-statbox or --disable-statbox was given.
7069 if test "${enable_statbox+set}" = set; then
7070 enableval="$enable_statbox"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7074 else
7075 ac_cv_use_statbox='wxUSE_STATBOX=no'
7076 fi
7077
7078 else
7079
7080 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7088
7089 fi
7090
7091
7092 eval "$ac_cv_use_statbox"
7093 if test "$no_cache" != 1; then
7094 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7095 fi
7096
7097 if test "$wxUSE_STATBOX" = yes; then
7098 echo "$ac_t""yes" 1>&6
7099 else
7100 echo "$ac_t""no" 1>&6
7101 fi
7102
7103
7104 enablestring=
7105 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7106 echo "configure:7107: checking for --${enablestring:-enable}-statline" >&5
7107 no_cache=0
7108 # Check whether --enable-statline or --disable-statline was given.
7109 if test "${enable_statline+set}" = set; then
7110 enableval="$enable_statline"
7111
7112 if test "$enableval" = yes; then
7113 ac_cv_use_statline='wxUSE_STATLINE=yes'
7114 else
7115 ac_cv_use_statline='wxUSE_STATLINE=no'
7116 fi
7117
7118 else
7119
7120 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7121 if test "x$LINE" != x ; then
7122 eval "DEFAULT_$LINE"
7123 else
7124 no_cache=1
7125 fi
7126
7127 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7128
7129 fi
7130
7131
7132 eval "$ac_cv_use_statline"
7133 if test "$no_cache" != 1; then
7134 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7135 fi
7136
7137 if test "$wxUSE_STATLINE" = yes; then
7138 echo "$ac_t""yes" 1>&6
7139 else
7140 echo "$ac_t""no" 1>&6
7141 fi
7142
7143
7144 enablestring=
7145 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7146 echo "configure:7147: checking for --${enablestring:-enable}-stattext" >&5
7147 no_cache=0
7148 # Check whether --enable-stattext or --disable-stattext was given.
7149 if test "${enable_stattext+set}" = set; then
7150 enableval="$enable_stattext"
7151
7152 if test "$enableval" = yes; then
7153 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7154 else
7155 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7156 fi
7157
7158 else
7159
7160 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7161 if test "x$LINE" != x ; then
7162 eval "DEFAULT_$LINE"
7163 else
7164 no_cache=1
7165 fi
7166
7167 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7168
7169 fi
7170
7171
7172 eval "$ac_cv_use_stattext"
7173 if test "$no_cache" != 1; then
7174 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7175 fi
7176
7177 if test "$wxUSE_STATTEXT" = yes; then
7178 echo "$ac_t""yes" 1>&6
7179 else
7180 echo "$ac_t""no" 1>&6
7181 fi
7182
7183
7184 enablestring=
7185 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7186 echo "configure:7187: checking for --${enablestring:-enable}-statusbar" >&5
7187 no_cache=0
7188 # Check whether --enable-statusbar or --disable-statusbar was given.
7189 if test "${enable_statusbar+set}" = set; then
7190 enableval="$enable_statusbar"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7194 else
7195 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7196 fi
7197
7198 else
7199
7200 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7208
7209 fi
7210
7211
7212 eval "$ac_cv_use_statusbar"
7213 if test "$no_cache" != 1; then
7214 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7215 fi
7216
7217 if test "$wxUSE_STATUSBAR" = yes; then
7218 echo "$ac_t""yes" 1>&6
7219 else
7220 echo "$ac_t""no" 1>&6
7221 fi
7222
7223
7224 enablestring=
7225 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7226 echo "configure:7227: checking for --${enablestring:-enable}-tabdialog" >&5
7227 no_cache=0
7228 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7229 if test "${enable_tabdialog+set}" = set; then
7230 enableval="$enable_tabdialog"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7234 else
7235 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7236 fi
7237
7238 else
7239
7240 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7248
7249 fi
7250
7251
7252 eval "$ac_cv_use_tabdialog"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_TABDIALOG" = yes; then
7258 echo "$ac_t""yes" 1>&6
7259 else
7260 echo "$ac_t""no" 1>&6
7261 fi
7262
7263
7264 enablestring=
7265 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7266 echo "configure:7267: checking for --${enablestring:-enable}-textctrl" >&5
7267 no_cache=0
7268 # Check whether --enable-textctrl or --disable-textctrl was given.
7269 if test "${enable_textctrl+set}" = set; then
7270 enableval="$enable_textctrl"
7271
7272 if test "$enableval" = yes; then
7273 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7274 else
7275 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7276 fi
7277
7278 else
7279
7280 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7281 if test "x$LINE" != x ; then
7282 eval "DEFAULT_$LINE"
7283 else
7284 no_cache=1
7285 fi
7286
7287 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7288
7289 fi
7290
7291
7292 eval "$ac_cv_use_textctrl"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_TEXTCTRL" = yes; then
7298 echo "$ac_t""yes" 1>&6
7299 else
7300 echo "$ac_t""no" 1>&6
7301 fi
7302
7303
7304 enablestring=
7305 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7306 echo "configure:7307: checking for --${enablestring:-enable}-togglebtn" >&5
7307 no_cache=0
7308 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7309 if test "${enable_togglebtn+set}" = set; then
7310 enableval="$enable_togglebtn"
7311
7312 if test "$enableval" = yes; then
7313 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7314 else
7315 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7316 fi
7317
7318 else
7319
7320 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7321 if test "x$LINE" != x ; then
7322 eval "DEFAULT_$LINE"
7323 else
7324 no_cache=1
7325 fi
7326
7327 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7328
7329 fi
7330
7331
7332 eval "$ac_cv_use_togglebtn"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_TOGGLEBTN" = yes; then
7338 echo "$ac_t""yes" 1>&6
7339 else
7340 echo "$ac_t""no" 1>&6
7341 fi
7342
7343
7344 enablestring=
7345 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7346 echo "configure:7347: checking for --${enablestring:-enable}-toolbar" >&5
7347 no_cache=0
7348 # Check whether --enable-toolbar or --disable-toolbar was given.
7349 if test "${enable_toolbar+set}" = set; then
7350 enableval="$enable_toolbar"
7351
7352 if test "$enableval" = yes; then
7353 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7354 else
7355 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7356 fi
7357
7358 else
7359
7360 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7361 if test "x$LINE" != x ; then
7362 eval "DEFAULT_$LINE"
7363 else
7364 no_cache=1
7365 fi
7366
7367 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7368
7369 fi
7370
7371
7372 eval "$ac_cv_use_toolbar"
7373 if test "$no_cache" != 1; then
7374 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7375 fi
7376
7377 if test "$wxUSE_TOOLBAR" = yes; then
7378 echo "$ac_t""yes" 1>&6
7379 else
7380 echo "$ac_t""no" 1>&6
7381 fi
7382
7383
7384 enablestring=
7385 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7386 echo "configure:7387: checking for --${enablestring:-enable}-tbarnative" >&5
7387 no_cache=0
7388 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7389 if test "${enable_tbarnative+set}" = set; then
7390 enableval="$enable_tbarnative"
7391
7392 if test "$enableval" = yes; then
7393 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7394 else
7395 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7396 fi
7397
7398 else
7399
7400 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7401 if test "x$LINE" != x ; then
7402 eval "DEFAULT_$LINE"
7403 else
7404 no_cache=1
7405 fi
7406
7407 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7408
7409 fi
7410
7411
7412 eval "$ac_cv_use_tbarnative"
7413 if test "$no_cache" != 1; then
7414 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7415 fi
7416
7417 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7418 echo "$ac_t""yes" 1>&6
7419 else
7420 echo "$ac_t""no" 1>&6
7421 fi
7422
7423
7424 enablestring=
7425 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7426 echo "configure:7427: checking for --${enablestring:-enable}-tbarsmpl" >&5
7427 no_cache=0
7428 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7429 if test "${enable_tbarsmpl+set}" = set; then
7430 enableval="$enable_tbarsmpl"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7434 else
7435 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7436 fi
7437
7438 else
7439
7440 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7448
7449 fi
7450
7451
7452 eval "$ac_cv_use_tbarsmpl"
7453 if test "$no_cache" != 1; then
7454 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7455 fi
7456
7457 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7458 echo "$ac_t""yes" 1>&6
7459 else
7460 echo "$ac_t""no" 1>&6
7461 fi
7462
7463
7464 enablestring=
7465 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7466 echo "configure:7467: checking for --${enablestring:-enable}-treectrl" >&5
7467 no_cache=0
7468 # Check whether --enable-treectrl or --disable-treectrl was given.
7469 if test "${enable_treectrl+set}" = set; then
7470 enableval="$enable_treectrl"
7471
7472 if test "$enableval" = yes; then
7473 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7474 else
7475 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7476 fi
7477
7478 else
7479
7480 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7481 if test "x$LINE" != x ; then
7482 eval "DEFAULT_$LINE"
7483 else
7484 no_cache=1
7485 fi
7486
7487 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7488
7489 fi
7490
7491
7492 eval "$ac_cv_use_treectrl"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_TREECTRL" = yes; then
7498 echo "$ac_t""yes" 1>&6
7499 else
7500 echo "$ac_t""no" 1>&6
7501 fi
7502
7503
7504 enablestring=
7505 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7506 echo "configure:7507: checking for --${enablestring:-enable}-tipwindow" >&5
7507 no_cache=0
7508 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7509 if test "${enable_tipwindow+set}" = set; then
7510 enableval="$enable_tipwindow"
7511
7512 if test "$enableval" = yes; then
7513 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7514 else
7515 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7516 fi
7517
7518 else
7519
7520 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7521 if test "x$LINE" != x ; then
7522 eval "DEFAULT_$LINE"
7523 else
7524 no_cache=1
7525 fi
7526
7527 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7528
7529 fi
7530
7531
7532 eval "$ac_cv_use_tipwindow"
7533 if test "$no_cache" != 1; then
7534 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7535 fi
7536
7537 if test "$wxUSE_TIPWINDOW" = yes; then
7538 echo "$ac_t""yes" 1>&6
7539 else
7540 echo "$ac_t""no" 1>&6
7541 fi
7542
7543
7544 enablestring=
7545 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7546 echo "configure:7547: checking for --${enablestring:-enable}-popupwin" >&5
7547 no_cache=0
7548 # Check whether --enable-popupwin or --disable-popupwin was given.
7549 if test "${enable_popupwin+set}" = set; then
7550 enableval="$enable_popupwin"
7551
7552 if test "$enableval" = yes; then
7553 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7554 else
7555 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7556 fi
7557
7558 else
7559
7560 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7568
7569 fi
7570
7571
7572 eval "$ac_cv_use_popupwin"
7573 if test "$no_cache" != 1; then
7574 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7575 fi
7576
7577 if test "$wxUSE_POPUPWIN" = yes; then
7578 echo "$ac_t""yes" 1>&6
7579 else
7580 echo "$ac_t""no" 1>&6
7581 fi
7582
7583
7584
7585
7586 enablestring=
7587 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7588 echo "configure:7589: checking for --${enablestring:-enable}-commondlg" >&5
7589 no_cache=0
7590 # Check whether --enable-commondlg or --disable-commondlg was given.
7591 if test "${enable_commondlg+set}" = set; then
7592 enableval="$enable_commondlg"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7596 else
7597 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7598 fi
7599
7600 else
7601
7602 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7610
7611 fi
7612
7613
7614 eval "$ac_cv_use_commondlg"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_COMMONDLGS" = yes; then
7620 echo "$ac_t""yes" 1>&6
7621 else
7622 echo "$ac_t""no" 1>&6
7623 fi
7624
7625
7626 enablestring=
7627 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7628 echo "configure:7629: checking for --${enablestring:-enable}-choicedlg" >&5
7629 no_cache=0
7630 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7631 if test "${enable_choicedlg+set}" = set; then
7632 enableval="$enable_choicedlg"
7633
7634 if test "$enableval" = yes; then
7635 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7636 else
7637 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7638 fi
7639
7640 else
7641
7642 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7650
7651 fi
7652
7653
7654 eval "$ac_cv_use_choicedlg"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_CHOICEDLG" = yes; then
7660 echo "$ac_t""yes" 1>&6
7661 else
7662 echo "$ac_t""no" 1>&6
7663 fi
7664
7665
7666 enablestring=
7667 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7668 echo "configure:7669: checking for --${enablestring:-enable}-coldlg" >&5
7669 no_cache=0
7670 # Check whether --enable-coldlg or --disable-coldlg was given.
7671 if test "${enable_coldlg+set}" = set; then
7672 enableval="$enable_coldlg"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7676 else
7677 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7678 fi
7679
7680 else
7681
7682 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7690
7691 fi
7692
7693
7694 eval "$ac_cv_use_coldlg"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_COLOURDLG" = yes; then
7700 echo "$ac_t""yes" 1>&6
7701 else
7702 echo "$ac_t""no" 1>&6
7703 fi
7704
7705
7706 enablestring=
7707 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7708 echo "configure:7709: checking for --${enablestring:-enable}-filedlg" >&5
7709 no_cache=0
7710 # Check whether --enable-filedlg or --disable-filedlg was given.
7711 if test "${enable_filedlg+set}" = set; then
7712 enableval="$enable_filedlg"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7716 else
7717 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7718 fi
7719
7720 else
7721
7722 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7730
7731 fi
7732
7733
7734 eval "$ac_cv_use_filedlg"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_FILEDLG" = yes; then
7740 echo "$ac_t""yes" 1>&6
7741 else
7742 echo "$ac_t""no" 1>&6
7743 fi
7744
7745
7746 enablestring=
7747 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7748 echo "configure:7749: checking for --${enablestring:-enable}-finddlg" >&5
7749 no_cache=0
7750 # Check whether --enable-finddlg or --disable-finddlg was given.
7751 if test "${enable_finddlg+set}" = set; then
7752 enableval="$enable_finddlg"
7753
7754 if test "$enableval" = yes; then
7755 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7756 else
7757 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7758 fi
7759
7760 else
7761
7762 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7763 if test "x$LINE" != x ; then
7764 eval "DEFAULT_$LINE"
7765 else
7766 no_cache=1
7767 fi
7768
7769 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7770
7771 fi
7772
7773
7774 eval "$ac_cv_use_finddlg"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_FINDREPLDLG" = yes; then
7780 echo "$ac_t""yes" 1>&6
7781 else
7782 echo "$ac_t""no" 1>&6
7783 fi
7784
7785
7786 enablestring=
7787 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7788 echo "configure:7789: checking for --${enablestring:-enable}-fontdlg" >&5
7789 no_cache=0
7790 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7791 if test "${enable_fontdlg+set}" = set; then
7792 enableval="$enable_fontdlg"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7796 else
7797 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7798 fi
7799
7800 else
7801
7802 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7810
7811 fi
7812
7813
7814 eval "$ac_cv_use_fontdlg"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_FONTDLG" = yes; then
7820 echo "$ac_t""yes" 1>&6
7821 else
7822 echo "$ac_t""no" 1>&6
7823 fi
7824
7825
7826 enablestring=
7827 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7828 echo "configure:7829: checking for --${enablestring:-enable}-dirdlg" >&5
7829 no_cache=0
7830 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7831 if test "${enable_dirdlg+set}" = set; then
7832 enableval="$enable_dirdlg"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7836 else
7837 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7838 fi
7839
7840 else
7841
7842 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7850
7851 fi
7852
7853
7854 eval "$ac_cv_use_dirdlg"
7855 if test "$no_cache" != 1; then
7856 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7857 fi
7858
7859 if test "$wxUSE_DIRDLG" = yes; then
7860 echo "$ac_t""yes" 1>&6
7861 else
7862 echo "$ac_t""no" 1>&6
7863 fi
7864
7865
7866 enablestring=
7867 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7868 echo "configure:7869: checking for --${enablestring:-enable}-msgdlg" >&5
7869 no_cache=0
7870 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7871 if test "${enable_msgdlg+set}" = set; then
7872 enableval="$enable_msgdlg"
7873
7874 if test "$enableval" = yes; then
7875 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7876 else
7877 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7878 fi
7879
7880 else
7881
7882 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7890
7891 fi
7892
7893
7894 eval "$ac_cv_use_msgdlg"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_MSGDLG" = yes; then
7900 echo "$ac_t""yes" 1>&6
7901 else
7902 echo "$ac_t""no" 1>&6
7903 fi
7904
7905
7906 enablestring=
7907 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7908 echo "configure:7909: checking for --${enablestring:-enable}-numberdlg" >&5
7909 no_cache=0
7910 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7911 if test "${enable_numberdlg+set}" = set; then
7912 enableval="$enable_numberdlg"
7913
7914 if test "$enableval" = yes; then
7915 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7916 else
7917 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7918 fi
7919
7920 else
7921
7922 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7923 if test "x$LINE" != x ; then
7924 eval "DEFAULT_$LINE"
7925 else
7926 no_cache=1
7927 fi
7928
7929 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7930
7931 fi
7932
7933
7934 eval "$ac_cv_use_numberdlg"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_NUMBERDLG" = yes; then
7940 echo "$ac_t""yes" 1>&6
7941 else
7942 echo "$ac_t""no" 1>&6
7943 fi
7944
7945
7946 enablestring=
7947 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7948 echo "configure:7949: checking for --${enablestring:-enable}-splash" >&5
7949 no_cache=0
7950 # Check whether --enable-splash or --disable-splash was given.
7951 if test "${enable_splash+set}" = set; then
7952 enableval="$enable_splash"
7953
7954 if test "$enableval" = yes; then
7955 ac_cv_use_splash='wxUSE_SPLASH=yes'
7956 else
7957 ac_cv_use_splash='wxUSE_SPLASH=no'
7958 fi
7959
7960 else
7961
7962 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7963 if test "x$LINE" != x ; then
7964 eval "DEFAULT_$LINE"
7965 else
7966 no_cache=1
7967 fi
7968
7969 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7970
7971 fi
7972
7973
7974 eval "$ac_cv_use_splash"
7975 if test "$no_cache" != 1; then
7976 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7977 fi
7978
7979 if test "$wxUSE_SPLASH" = yes; then
7980 echo "$ac_t""yes" 1>&6
7981 else
7982 echo "$ac_t""no" 1>&6
7983 fi
7984
7985
7986 enablestring=
7987 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7988 echo "configure:7989: checking for --${enablestring:-enable}-textdlg" >&5
7989 no_cache=0
7990 # Check whether --enable-textdlg or --disable-textdlg was given.
7991 if test "${enable_textdlg+set}" = set; then
7992 enableval="$enable_textdlg"
7993
7994 if test "$enableval" = yes; then
7995 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7996 else
7997 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7998 fi
7999
8000 else
8001
8002 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8003 if test "x$LINE" != x ; then
8004 eval "DEFAULT_$LINE"
8005 else
8006 no_cache=1
8007 fi
8008
8009 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8010
8011 fi
8012
8013
8014 eval "$ac_cv_use_textdlg"
8015 if test "$no_cache" != 1; then
8016 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8017 fi
8018
8019 if test "$wxUSE_TEXTDLG" = yes; then
8020 echo "$ac_t""yes" 1>&6
8021 else
8022 echo "$ac_t""no" 1>&6
8023 fi
8024
8025
8026 enablestring=
8027 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
8028 echo "configure:8029: checking for --${enablestring:-enable}-tipdlg" >&5
8029 no_cache=0
8030 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8031 if test "${enable_tipdlg+set}" = set; then
8032 enableval="$enable_tipdlg"
8033
8034 if test "$enableval" = yes; then
8035 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8036 else
8037 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8038 fi
8039
8040 else
8041
8042 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8043 if test "x$LINE" != x ; then
8044 eval "DEFAULT_$LINE"
8045 else
8046 no_cache=1
8047 fi
8048
8049 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8050
8051 fi
8052
8053
8054 eval "$ac_cv_use_tipdlg"
8055 if test "$no_cache" != 1; then
8056 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8057 fi
8058
8059 if test "$wxUSE_STARTUP_TIPS" = yes; then
8060 echo "$ac_t""yes" 1>&6
8061 else
8062 echo "$ac_t""no" 1>&6
8063 fi
8064
8065
8066 enablestring=
8067 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
8068 echo "configure:8069: checking for --${enablestring:-enable}-progressdlg" >&5
8069 no_cache=0
8070 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8071 if test "${enable_progressdlg+set}" = set; then
8072 enableval="$enable_progressdlg"
8073
8074 if test "$enableval" = yes; then
8075 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8076 else
8077 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8078 fi
8079
8080 else
8081
8082 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8083 if test "x$LINE" != x ; then
8084 eval "DEFAULT_$LINE"
8085 else
8086 no_cache=1
8087 fi
8088
8089 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8090
8091 fi
8092
8093
8094 eval "$ac_cv_use_progressdlg"
8095 if test "$no_cache" != 1; then
8096 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8097 fi
8098
8099 if test "$wxUSE_PROGRESSDLG" = yes; then
8100 echo "$ac_t""yes" 1>&6
8101 else
8102 echo "$ac_t""no" 1>&6
8103 fi
8104
8105
8106 enablestring=
8107 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8108 echo "configure:8109: checking for --${enablestring:-enable}-wizarddlg" >&5
8109 no_cache=0
8110 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8111 if test "${enable_wizarddlg+set}" = set; then
8112 enableval="$enable_wizarddlg"
8113
8114 if test "$enableval" = yes; then
8115 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8116 else
8117 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8118 fi
8119
8120 else
8121
8122 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8123 if test "x$LINE" != x ; then
8124 eval "DEFAULT_$LINE"
8125 else
8126 no_cache=1
8127 fi
8128
8129 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8130
8131 fi
8132
8133
8134 eval "$ac_cv_use_wizarddlg"
8135 if test "$no_cache" != 1; then
8136 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8137 fi
8138
8139 if test "$wxUSE_WIZARDDLG" = yes; then
8140 echo "$ac_t""yes" 1>&6
8141 else
8142 echo "$ac_t""no" 1>&6
8143 fi
8144
8145
8146
8147
8148 enablestring=
8149 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8150 echo "configure:8151: checking for --${enablestring:-enable}-menus" >&5
8151 no_cache=0
8152 # Check whether --enable-menus or --disable-menus was given.
8153 if test "${enable_menus+set}" = set; then
8154 enableval="$enable_menus"
8155
8156 if test "$enableval" = yes; then
8157 ac_cv_use_menus='wxUSE_MENUS=yes'
8158 else
8159 ac_cv_use_menus='wxUSE_MENUS=no'
8160 fi
8161
8162 else
8163
8164 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8165 if test "x$LINE" != x ; then
8166 eval "DEFAULT_$LINE"
8167 else
8168 no_cache=1
8169 fi
8170
8171 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8172
8173 fi
8174
8175
8176 eval "$ac_cv_use_menus"
8177 if test "$no_cache" != 1; then
8178 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8179 fi
8180
8181 if test "$wxUSE_MENUS" = yes; then
8182 echo "$ac_t""yes" 1>&6
8183 else
8184 echo "$ac_t""no" 1>&6
8185 fi
8186
8187
8188 enablestring=
8189 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8190 echo "configure:8191: checking for --${enablestring:-enable}-miniframe" >&5
8191 no_cache=0
8192 # Check whether --enable-miniframe or --disable-miniframe was given.
8193 if test "${enable_miniframe+set}" = set; then
8194 enableval="$enable_miniframe"
8195
8196 if test "$enableval" = yes; then
8197 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8198 else
8199 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8200 fi
8201
8202 else
8203
8204 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8205 if test "x$LINE" != x ; then
8206 eval "DEFAULT_$LINE"
8207 else
8208 no_cache=1
8209 fi
8210
8211 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8212
8213 fi
8214
8215
8216 eval "$ac_cv_use_miniframe"
8217 if test "$no_cache" != 1; then
8218 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8219 fi
8220
8221 if test "$wxUSE_MINIFRAME" = yes; then
8222 echo "$ac_t""yes" 1>&6
8223 else
8224 echo "$ac_t""no" 1>&6
8225 fi
8226
8227
8228 enablestring=
8229 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8230 echo "configure:8231: checking for --${enablestring:-enable}-tooltips" >&5
8231 no_cache=0
8232 # Check whether --enable-tooltips or --disable-tooltips was given.
8233 if test "${enable_tooltips+set}" = set; then
8234 enableval="$enable_tooltips"
8235
8236 if test "$enableval" = yes; then
8237 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8238 else
8239 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8240 fi
8241
8242 else
8243
8244 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8252
8253 fi
8254
8255
8256 eval "$ac_cv_use_tooltips"
8257 if test "$no_cache" != 1; then
8258 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8259 fi
8260
8261 if test "$wxUSE_TOOLTIPS" = yes; then
8262 echo "$ac_t""yes" 1>&6
8263 else
8264 echo "$ac_t""no" 1>&6
8265 fi
8266
8267
8268 enablestring=
8269 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8270 echo "configure:8271: checking for --${enablestring:-enable}-splines" >&5
8271 no_cache=0
8272 # Check whether --enable-splines or --disable-splines was given.
8273 if test "${enable_splines+set}" = set; then
8274 enableval="$enable_splines"
8275
8276 if test "$enableval" = yes; then
8277 ac_cv_use_splines='wxUSE_SPLINES=yes'
8278 else
8279 ac_cv_use_splines='wxUSE_SPLINES=no'
8280 fi
8281
8282 else
8283
8284 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8285 if test "x$LINE" != x ; then
8286 eval "DEFAULT_$LINE"
8287 else
8288 no_cache=1
8289 fi
8290
8291 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8292
8293 fi
8294
8295
8296 eval "$ac_cv_use_splines"
8297 if test "$no_cache" != 1; then
8298 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8299 fi
8300
8301 if test "$wxUSE_SPLINES" = yes; then
8302 echo "$ac_t""yes" 1>&6
8303 else
8304 echo "$ac_t""no" 1>&6
8305 fi
8306
8307
8308 enablestring=
8309 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8310 echo "configure:8311: checking for --${enablestring:-enable}-validators" >&5
8311 no_cache=0
8312 # Check whether --enable-validators or --disable-validators was given.
8313 if test "${enable_validators+set}" = set; then
8314 enableval="$enable_validators"
8315
8316 if test "$enableval" = yes; then
8317 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8318 else
8319 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8320 fi
8321
8322 else
8323
8324 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8325 if test "x$LINE" != x ; then
8326 eval "DEFAULT_$LINE"
8327 else
8328 no_cache=1
8329 fi
8330
8331 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8332
8333 fi
8334
8335
8336 eval "$ac_cv_use_validators"
8337 if test "$no_cache" != 1; then
8338 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8339 fi
8340
8341 if test "$wxUSE_VALIDATORS" = yes; then
8342 echo "$ac_t""yes" 1>&6
8343 else
8344 echo "$ac_t""no" 1>&6
8345 fi
8346
8347
8348 enablestring=
8349 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8350 echo "configure:8351: checking for --${enablestring:-enable}-busyinfo" >&5
8351 no_cache=0
8352 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8353 if test "${enable_busyinfo+set}" = set; then
8354 enableval="$enable_busyinfo"
8355
8356 if test "$enableval" = yes; then
8357 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8358 else
8359 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8360 fi
8361
8362 else
8363
8364 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8365 if test "x$LINE" != x ; then
8366 eval "DEFAULT_$LINE"
8367 else
8368 no_cache=1
8369 fi
8370
8371 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8372
8373 fi
8374
8375
8376 eval "$ac_cv_use_busyinfo"
8377 if test "$no_cache" != 1; then
8378 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8379 fi
8380
8381 if test "$wxUSE_BUSYINFO" = yes; then
8382 echo "$ac_t""yes" 1>&6
8383 else
8384 echo "$ac_t""no" 1>&6
8385 fi
8386
8387
8388 enablestring=
8389 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8390 echo "configure:8391: checking for --${enablestring:-enable}-joystick" >&5
8391 no_cache=0
8392 # Check whether --enable-joystick or --disable-joystick was given.
8393 if test "${enable_joystick+set}" = set; then
8394 enableval="$enable_joystick"
8395
8396 if test "$enableval" = yes; then
8397 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8398 else
8399 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8400 fi
8401
8402 else
8403
8404 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8405 if test "x$LINE" != x ; then
8406 eval "DEFAULT_$LINE"
8407 else
8408 no_cache=1
8409 fi
8410
8411 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8412
8413 fi
8414
8415
8416 eval "$ac_cv_use_joystick"
8417 if test "$no_cache" != 1; then
8418 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8419 fi
8420
8421 if test "$wxUSE_JOYSTICK" = yes; then
8422 echo "$ac_t""yes" 1>&6
8423 else
8424 echo "$ac_t""no" 1>&6
8425 fi
8426
8427
8428 enablestring=
8429 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8430 echo "configure:8431: checking for --${enablestring:-enable}-metafile" >&5
8431 no_cache=0
8432 # Check whether --enable-metafile or --disable-metafile was given.
8433 if test "${enable_metafile+set}" = set; then
8434 enableval="$enable_metafile"
8435
8436 if test "$enableval" = yes; then
8437 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8438 else
8439 ac_cv_use_metafile='wxUSE_METAFILE=no'
8440 fi
8441
8442 else
8443
8444 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
8451 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8452
8453 fi
8454
8455
8456 eval "$ac_cv_use_metafile"
8457 if test "$no_cache" != 1; then
8458 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8459 fi
8460
8461 if test "$wxUSE_METAFILE" = yes; then
8462 echo "$ac_t""yes" 1>&6
8463 else
8464 echo "$ac_t""no" 1>&6
8465 fi
8466
8467
8468 enablestring=
8469 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8470 echo "configure:8471: checking for --${enablestring:-enable}-dragimage" >&5
8471 no_cache=0
8472 # Check whether --enable-dragimage or --disable-dragimage was given.
8473 if test "${enable_dragimage+set}" = set; then
8474 enableval="$enable_dragimage"
8475
8476 if test "$enableval" = yes; then
8477 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8478 else
8479 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8480 fi
8481
8482 else
8483
8484 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8485 if test "x$LINE" != x ; then
8486 eval "DEFAULT_$LINE"
8487 else
8488 no_cache=1
8489 fi
8490
8491 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8492
8493 fi
8494
8495
8496 eval "$ac_cv_use_dragimage"
8497 if test "$no_cache" != 1; then
8498 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8499 fi
8500
8501 if test "$wxUSE_DRAGIMAGE" = yes; then
8502 echo "$ac_t""yes" 1>&6
8503 else
8504 echo "$ac_t""no" 1>&6
8505 fi
8506
8507
8508
8509
8510 enablestring=
8511 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8512 echo "configure:8513: checking for --${enablestring:-enable}-palette" >&5
8513 no_cache=0
8514 # Check whether --enable-palette or --disable-palette was given.
8515 if test "${enable_palette+set}" = set; then
8516 enableval="$enable_palette"
8517
8518 if test "$enableval" = yes; then
8519 ac_cv_use_palette='wxUSE_PALETTE=yes'
8520 else
8521 ac_cv_use_palette='wxUSE_PALETTE=no'
8522 fi
8523
8524 else
8525
8526 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8527 if test "x$LINE" != x ; then
8528 eval "DEFAULT_$LINE"
8529 else
8530 no_cache=1
8531 fi
8532
8533 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8534
8535 fi
8536
8537
8538 eval "$ac_cv_use_palette"
8539 if test "$no_cache" != 1; then
8540 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8541 fi
8542
8543 if test "$wxUSE_PALETTE" = yes; then
8544 echo "$ac_t""yes" 1>&6
8545 else
8546 echo "$ac_t""no" 1>&6
8547 fi
8548
8549
8550 enablestring=
8551 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8552 echo "configure:8553: checking for --${enablestring:-enable}-image" >&5
8553 no_cache=0
8554 # Check whether --enable-image or --disable-image was given.
8555 if test "${enable_image+set}" = set; then
8556 enableval="$enable_image"
8557
8558 if test "$enableval" = yes; then
8559 ac_cv_use_image='wxUSE_IMAGE=yes'
8560 else
8561 ac_cv_use_image='wxUSE_IMAGE=no'
8562 fi
8563
8564 else
8565
8566 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8574
8575 fi
8576
8577
8578 eval "$ac_cv_use_image"
8579 if test "$no_cache" != 1; then
8580 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8581 fi
8582
8583 if test "$wxUSE_IMAGE" = yes; then
8584 echo "$ac_t""yes" 1>&6
8585 else
8586 echo "$ac_t""no" 1>&6
8587 fi
8588
8589
8590 enablestring=
8591 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8592 echo "configure:8593: checking for --${enablestring:-enable}-gif" >&5
8593 no_cache=0
8594 # Check whether --enable-gif or --disable-gif was given.
8595 if test "${enable_gif+set}" = set; then
8596 enableval="$enable_gif"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_gif='wxUSE_GIF=yes'
8600 else
8601 ac_cv_use_gif='wxUSE_GIF=no'
8602 fi
8603
8604 else
8605
8606 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8614
8615 fi
8616
8617
8618 eval "$ac_cv_use_gif"
8619 if test "$no_cache" != 1; then
8620 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8621 fi
8622
8623 if test "$wxUSE_GIF" = yes; then
8624 echo "$ac_t""yes" 1>&6
8625 else
8626 echo "$ac_t""no" 1>&6
8627 fi
8628
8629
8630 enablestring=
8631 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8632 echo "configure:8633: checking for --${enablestring:-enable}-pcx" >&5
8633 no_cache=0
8634 # Check whether --enable-pcx or --disable-pcx was given.
8635 if test "${enable_pcx+set}" = set; then
8636 enableval="$enable_pcx"
8637
8638 if test "$enableval" = yes; then
8639 ac_cv_use_pcx='wxUSE_PCX=yes'
8640 else
8641 ac_cv_use_pcx='wxUSE_PCX=no'
8642 fi
8643
8644 else
8645
8646 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8647 if test "x$LINE" != x ; then
8648 eval "DEFAULT_$LINE"
8649 else
8650 no_cache=1
8651 fi
8652
8653 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8654
8655 fi
8656
8657
8658 eval "$ac_cv_use_pcx"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_PCX" = yes; then
8664 echo "$ac_t""yes" 1>&6
8665 else
8666 echo "$ac_t""no" 1>&6
8667 fi
8668
8669
8670 enablestring=
8671 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8672 echo "configure:8673: checking for --${enablestring:-enable}-iff" >&5
8673 no_cache=0
8674 # Check whether --enable-iff or --disable-iff was given.
8675 if test "${enable_iff+set}" = set; then
8676 enableval="$enable_iff"
8677
8678 if test "$enableval" = yes; then
8679 ac_cv_use_iff='wxUSE_IFF=yes'
8680 else
8681 ac_cv_use_iff='wxUSE_IFF=no'
8682 fi
8683
8684 else
8685
8686 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8687 if test "x$LINE" != x ; then
8688 eval "DEFAULT_$LINE"
8689 else
8690 no_cache=1
8691 fi
8692
8693 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8694
8695 fi
8696
8697
8698 eval "$ac_cv_use_iff"
8699 if test "$no_cache" != 1; then
8700 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8701 fi
8702
8703 if test "$wxUSE_IFF" = yes; then
8704 echo "$ac_t""yes" 1>&6
8705 else
8706 echo "$ac_t""no" 1>&6
8707 fi
8708
8709
8710 enablestring=
8711 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8712 echo "configure:8713: checking for --${enablestring:-enable}-pnm" >&5
8713 no_cache=0
8714 # Check whether --enable-pnm or --disable-pnm was given.
8715 if test "${enable_pnm+set}" = set; then
8716 enableval="$enable_pnm"
8717
8718 if test "$enableval" = yes; then
8719 ac_cv_use_pnm='wxUSE_PNM=yes'
8720 else
8721 ac_cv_use_pnm='wxUSE_PNM=no'
8722 fi
8723
8724 else
8725
8726 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8727 if test "x$LINE" != x ; then
8728 eval "DEFAULT_$LINE"
8729 else
8730 no_cache=1
8731 fi
8732
8733 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8734
8735 fi
8736
8737
8738 eval "$ac_cv_use_pnm"
8739 if test "$no_cache" != 1; then
8740 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8741 fi
8742
8743 if test "$wxUSE_PNM" = yes; then
8744 echo "$ac_t""yes" 1>&6
8745 else
8746 echo "$ac_t""no" 1>&6
8747 fi
8748
8749
8750 enablestring=
8751 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8752 echo "configure:8753: checking for --${enablestring:-enable}-xpm" >&5
8753 no_cache=0
8754 # Check whether --enable-xpm or --disable-xpm was given.
8755 if test "${enable_xpm+set}" = set; then
8756 enableval="$enable_xpm"
8757
8758 if test "$enableval" = yes; then
8759 ac_cv_use_xpm='wxUSE_XPM=yes'
8760 else
8761 ac_cv_use_xpm='wxUSE_XPM=no'
8762 fi
8763
8764 else
8765
8766 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8767 if test "x$LINE" != x ; then
8768 eval "DEFAULT_$LINE"
8769 else
8770 no_cache=1
8771 fi
8772
8773 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8774
8775 fi
8776
8777
8778 eval "$ac_cv_use_xpm"
8779 if test "$no_cache" != 1; then
8780 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8781 fi
8782
8783 if test "$wxUSE_XPM" = yes; then
8784 echo "$ac_t""yes" 1>&6
8785 else
8786 echo "$ac_t""no" 1>&6
8787 fi
8788
8789
8790 enablestring=
8791 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8792 echo "configure:8793: checking for --${enablestring:-enable}-ico_cur" >&5
8793 no_cache=0
8794 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8795 if test "${enable_ico_cur+set}" = set; then
8796 enableval="$enable_ico_cur"
8797
8798 if test "$enableval" = yes; then
8799 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8800 else
8801 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8802 fi
8803
8804 else
8805
8806 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8807 if test "x$LINE" != x ; then
8808 eval "DEFAULT_$LINE"
8809 else
8810 no_cache=1
8811 fi
8812
8813 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8814
8815 fi
8816
8817
8818 eval "$ac_cv_use_ico_cur"
8819 if test "$no_cache" != 1; then
8820 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8821 fi
8822
8823 if test "$wxUSE_ICO_CUR" = yes; then
8824 echo "$ac_t""yes" 1>&6
8825 else
8826 echo "$ac_t""no" 1>&6
8827 fi
8828
8829
8830 fi
8831
8832 case "${host}" in
8833 *-pc-os2_emx | *-pc-os2-emx )
8834 PATH_IFS=';'
8835 LEX_STEM="lexyy"
8836 ;;
8837 *)
8838 PATH_IFS=':'
8839 LEX_STEM="lex.yy"
8840 ;;
8841 esac
8842
8843
8844
8845 echo "saving argument cache $wx_arg_cache_file"
8846 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8847
8848
8849
8850 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8851 echo "configure:8852: checking for toolkit" >&5
8852
8853 # In Wine, we need to default to MSW, not GTK or MOTIF
8854 if test "$wxUSE_WINE" = "yes"; then
8855 DEFAULT_DEFAULT_wxUSE_GTK=0
8856 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8857 DEFAULT_DEFAULT_wxUSE_MSW=1
8858 fi
8859
8860 if test "$wxUSE_GUI" = "yes"; then
8861
8862 if test "$USE_BEOS" = 1; then
8863 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8864 fi
8865
8866 if test "$TOOLKIT_GIVEN" = 1; then
8867 for toolkit in `echo $ALL_TOOLKITS`; do
8868 var=wxUSE_$toolkit
8869 eval "value=\$${var}"
8870 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8871 done
8872 else
8873 for toolkit in `echo $ALL_TOOLKITS`; do
8874 if test "$has_toolkit_in_cache" != 1; then
8875 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8876 else
8877 var=DEFAULT_wxUSE_$toolkit
8878 fi
8879 eval "wxUSE_$toolkit=\$${var}"
8880 done
8881 fi
8882
8883 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8884 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8885 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8886
8887 case "${host}" in
8888 *-pc-os2_emx | *-pc-os2-emx )
8889 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8890 esac
8891
8892 case "$NUM_TOOLKITS" in
8893 1)
8894 ;;
8895 0)
8896 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8897 ;;
8898 *)
8899 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8900 esac
8901
8902 for toolkit in `echo $ALL_TOOLKITS`; do
8903 var=wxUSE_$toolkit
8904 eval "value=\$${var}"
8905 if test "x$value" != x; then
8906 cache_var=CACHE_$toolkit
8907 eval "cache=\$${cache_var}"
8908 if test "$cache" = 1; then
8909 echo "$var=$value" >> ${wx_arg_cache_file}
8910 fi
8911 if test "$value" = 1; then
8912 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8913 echo "$ac_t""$toolkit_echo" 1>&6
8914 fi
8915 fi
8916 done
8917 else
8918 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8919 fi
8920
8921 wants_win32=0
8922 doesnt_want_win32=0
8923 case "${host}" in
8924 *-*-cygwin*)
8925 if test "$wxUSE_MSW" = 1 ; then
8926 wants_win32=1
8927 else
8928 doesnt_want_win32=1
8929 fi
8930 ;;
8931 *-*-mingw*)
8932 wants_win32=1
8933 ;;
8934 esac
8935
8936 if test "$wxUSE_WINE" = "yes"; then
8937 wants_win32=1
8938 CC=winegcc
8939 CXX=wineg++
8940 RESCOMP=wrc
8941 fi
8942
8943 if test "$wants_win32" = 1 ; then
8944 USE_UNIX=0
8945 USE_WIN32=1
8946 cat >> confdefs.h <<\EOF
8947 #define __WIN32__ 1
8948 EOF
8949
8950 cat >> confdefs.h <<\EOF
8951 #define __WIN95__ 1
8952 EOF
8953
8954 cat >> confdefs.h <<\EOF
8955 #define __WINDOWS__ 1
8956 EOF
8957
8958 cat >> confdefs.h <<\EOF
8959 #define __GNUWIN32__ 1
8960 EOF
8961
8962 cat >> confdefs.h <<\EOF
8963 #define STRICT 1
8964 EOF
8965
8966 cat >> confdefs.h <<\EOF
8967 #define WINVER 0x0400
8968 EOF
8969
8970 fi
8971 if test "$doesnt_want_win32" = 1 ; then
8972 USE_UNIX=1
8973 USE_WIN32=0
8974 fi
8975
8976 if test "$USE_UNIX" = 1 ; then
8977 wxUSE_UNIX=yes
8978 cat >> confdefs.h <<\EOF
8979 #define __UNIX__ 1
8980 EOF
8981
8982 fi
8983
8984
8985 cat > confcache <<\EOF
8986 # This file is a shell script that caches the results of configure
8987 # tests run on this system so they can be shared between configure
8988 # scripts and configure runs. It is not useful on other systems.
8989 # If it contains results you don't want to keep, you may remove or edit it.
8990 #
8991 # By default, configure uses ./config.cache as the cache file,
8992 # creating it if it does not exist already. You can give configure
8993 # the --cache-file=FILE option to use a different cache file; that is
8994 # what configure does when it calls configure scripts in
8995 # subdirectories, so they share the cache.
8996 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8997 # config.status only pays attention to the cache file if you give it the
8998 # --recheck option to rerun configure.
8999 #
9000 EOF
9001 # The following way of writing the cache mishandles newlines in values,
9002 # but we know of no workaround that is simple, portable, and efficient.
9003 # So, don't put newlines in cache variables' values.
9004 # Ultrix sh set writes to stderr and can't be redirected directly,
9005 # and sets the high bit in the cache file unless we assign to the vars.
9006 (set) 2>&1 |
9007 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9008 *ac_space=\ *)
9009 # `set' does not quote correctly, so add quotes (double-quote substitution
9010 # turns \\\\ into \\, and sed turns \\ into \).
9011 sed -n \
9012 -e "s/'/'\\\\''/g" \
9013 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9014 ;;
9015 *)
9016 # `set' quotes correctly as required by POSIX, so do not add quotes.
9017 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9018 ;;
9019 esac >> confcache
9020 if cmp -s $cache_file confcache; then
9021 :
9022 else
9023 if test -w $cache_file; then
9024 echo "updating cache $cache_file"
9025 cat confcache > $cache_file
9026 else
9027 echo "not updating unwritable cache $cache_file"
9028 fi
9029 fi
9030 rm -f confcache
9031
9032
9033 if test "$build" != "$host" ; then
9034 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9035 CC=$host_alias-gcc
9036 CXX=$host_alias-c++
9037 AR=$host_alias-ar
9038 RANLIB=$host_alias-ranlib
9039 DLLTOOL=$host_alias-dlltool
9040 RESCOMP=$host_alias-windres
9041 LD=$host_alias-ld
9042 NM=$host_alias-nm
9043 STRIP=$host_alias-strip
9044 else
9045 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
9046 fi
9047 fi
9048
9049 CFLAGS=${CFLAGS:=}
9050 # Extract the first word of "gcc", so it can be a program name with args.
9051 set dummy gcc; ac_word=$2
9052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9053 echo "configure:9054: checking for $ac_word" >&5
9054 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057 if test -n "$CC"; then
9058 ac_cv_prog_CC="$CC" # Let the user override the test.
9059 else
9060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9061 ac_dummy="$PATH"
9062 for ac_dir in $ac_dummy; do
9063 test -z "$ac_dir" && ac_dir=.
9064 if test -f $ac_dir/$ac_word; then
9065 ac_cv_prog_CC="gcc"
9066 break
9067 fi
9068 done
9069 IFS="$ac_save_ifs"
9070 fi
9071 fi
9072 CC="$ac_cv_prog_CC"
9073 if test -n "$CC"; then
9074 echo "$ac_t""$CC" 1>&6
9075 else
9076 echo "$ac_t""no" 1>&6
9077 fi
9078
9079 if test -z "$CC"; then
9080 # Extract the first word of "cc", so it can be a program name with args.
9081 set dummy cc; ac_word=$2
9082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9083 echo "configure:9084: checking for $ac_word" >&5
9084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9086 else
9087 if test -n "$CC"; then
9088 ac_cv_prog_CC="$CC" # Let the user override the test.
9089 else
9090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9091 ac_prog_rejected=no
9092 ac_dummy="$PATH"
9093 for ac_dir in $ac_dummy; do
9094 test -z "$ac_dir" && ac_dir=.
9095 if test -f $ac_dir/$ac_word; then
9096 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9097 ac_prog_rejected=yes
9098 continue
9099 fi
9100 ac_cv_prog_CC="cc"
9101 break
9102 fi
9103 done
9104 IFS="$ac_save_ifs"
9105 if test $ac_prog_rejected = yes; then
9106 # We found a bogon in the path, so make sure we never use it.
9107 set dummy $ac_cv_prog_CC
9108 shift
9109 if test $# -gt 0; then
9110 # We chose a different compiler from the bogus one.
9111 # However, it has the same basename, so the bogon will be chosen
9112 # first if we set CC to just the basename; use the full file name.
9113 shift
9114 set dummy "$ac_dir/$ac_word" "$@"
9115 shift
9116 ac_cv_prog_CC="$@"
9117 fi
9118 fi
9119 fi
9120 fi
9121 CC="$ac_cv_prog_CC"
9122 if test -n "$CC"; then
9123 echo "$ac_t""$CC" 1>&6
9124 else
9125 echo "$ac_t""no" 1>&6
9126 fi
9127
9128 if test -z "$CC"; then
9129 case "`uname -s`" in
9130 *win32* | *WIN32*)
9131 # Extract the first word of "cl", so it can be a program name with args.
9132 set dummy cl; ac_word=$2
9133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9134 echo "configure:9135: checking for $ac_word" >&5
9135 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9137 else
9138 if test -n "$CC"; then
9139 ac_cv_prog_CC="$CC" # Let the user override the test.
9140 else
9141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9142 ac_dummy="$PATH"
9143 for ac_dir in $ac_dummy; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f $ac_dir/$ac_word; then
9146 ac_cv_prog_CC="cl"
9147 break
9148 fi
9149 done
9150 IFS="$ac_save_ifs"
9151 fi
9152 fi
9153 CC="$ac_cv_prog_CC"
9154 if test -n "$CC"; then
9155 echo "$ac_t""$CC" 1>&6
9156 else
9157 echo "$ac_t""no" 1>&6
9158 fi
9159 ;;
9160 esac
9161 fi
9162 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9163 fi
9164
9165 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9166 echo "configure:9167: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9167
9168 ac_ext=c
9169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9170 ac_cpp='$CPP $CPPFLAGS'
9171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9173 cross_compiling=$ac_cv_prog_cc_cross
9174
9175 cat > conftest.$ac_ext << EOF
9176
9177 #line 9178 "configure"
9178 #include "confdefs.h"
9179
9180 main(){return(0);}
9181 EOF
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9183 ac_cv_prog_cc_works=yes
9184 # If we can't run a trivial program, we are probably using a cross compiler.
9185 if (./conftest; exit) 2>/dev/null; then
9186 ac_cv_prog_cc_cross=no
9187 else
9188 ac_cv_prog_cc_cross=yes
9189 fi
9190 else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 ac_cv_prog_cc_works=no
9194 fi
9195 rm -fr conftest*
9196 ac_ext=c
9197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9198 ac_cpp='$CPP $CPPFLAGS'
9199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9201 cross_compiling=$ac_cv_prog_cc_cross
9202
9203 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9204 if test $ac_cv_prog_cc_works = no; then
9205 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9206 fi
9207 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9208 echo "configure:9209: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9209 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9210 cross_compiling=$ac_cv_prog_cc_cross
9211
9212 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9213 echo "configure:9214: checking whether we are using GNU C" >&5
9214 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9216 else
9217 cat > conftest.c <<EOF
9218 #ifdef __GNUC__
9219 yes;
9220 #endif
9221 EOF
9222 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9223 ac_cv_prog_gcc=yes
9224 else
9225 ac_cv_prog_gcc=no
9226 fi
9227 fi
9228
9229 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9230
9231 if test $ac_cv_prog_gcc = yes; then
9232 GCC=yes
9233 else
9234 GCC=
9235 fi
9236
9237 ac_test_CFLAGS="${CFLAGS+set}"
9238 ac_save_CFLAGS="$CFLAGS"
9239 CFLAGS=
9240 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9241 echo "configure:9242: checking whether ${CC-cc} accepts -g" >&5
9242 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9244 else
9245 echo 'void f(){}' > conftest.c
9246 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9247 ac_cv_prog_cc_g=yes
9248 else
9249 ac_cv_prog_cc_g=no
9250 fi
9251 rm -f conftest*
9252
9253 fi
9254
9255 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9256 if test "$ac_test_CFLAGS" = set; then
9257 CFLAGS="$ac_save_CFLAGS"
9258 elif test $ac_cv_prog_cc_g = yes; then
9259 if test "$GCC" = yes; then
9260 CFLAGS="-g -O2"
9261 else
9262 CFLAGS="-g"
9263 fi
9264 else
9265 if test "$GCC" = yes; then
9266 CFLAGS="-O2"
9267 else
9268 CFLAGS=
9269 fi
9270 fi
9271
9272
9273 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9274 echo "configure:9275: checking how to run the C preprocessor" >&5
9275 # On Suns, sometimes $CPP names a directory.
9276 if test -n "$CPP" && test -d "$CPP"; then
9277 CPP=
9278 fi
9279 if test -z "$CPP"; then
9280 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282 else
9283 # This must be in double quotes, not single quotes, because CPP may get
9284 # substituted into the Makefile and "${CC-cc}" will confuse make.
9285 CPP="${CC-cc} -E"
9286 # On the NeXT, cc -E runs the code through the compiler's parser,
9287 # not just through cpp.
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 #include <assert.h>
9292 Syntax Error
9293 EOF
9294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9295 { (eval echo configure:9296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9297 if test -z "$ac_err"; then
9298 :
9299 else
9300 echo "$ac_err" >&5
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 rm -rf conftest*
9304 CPP="${CC-cc} -E -traditional-cpp"
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 #include <assert.h>
9309 Syntax Error
9310 EOF
9311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9312 { (eval echo configure:9313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9314 if test -z "$ac_err"; then
9315 :
9316 else
9317 echo "$ac_err" >&5
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9320 rm -rf conftest*
9321 CPP="${CC-cc} -nologo -E"
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 #include <assert.h>
9326 Syntax Error
9327 EOF
9328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9329 { (eval echo configure:9330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9331 if test -z "$ac_err"; then
9332 :
9333 else
9334 echo "$ac_err" >&5
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -rf conftest*
9338 CPP=/lib/cpp
9339 fi
9340 rm -f conftest*
9341 fi
9342 rm -f conftest*
9343 fi
9344 rm -f conftest*
9345 ac_cv_prog_CPP="$CPP"
9346 fi
9347 CPP="$ac_cv_prog_CPP"
9348 else
9349 ac_cv_prog_CPP="$CPP"
9350 fi
9351 echo "$ac_t""$CPP" 1>&6
9352
9353 if test $ac_cv_prog_gcc = yes; then
9354 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9355 echo "configure:9356: checking whether ${CC-cc} needs -traditional" >&5
9356 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9357 echo $ac_n "(cached) $ac_c" 1>&6
9358 else
9359 ac_pattern="Autoconf.*'x'"
9360 cat > conftest.$ac_ext <<EOF
9361 #line 9362 "configure"
9362 #include "confdefs.h"
9363 #include <sgtty.h>
9364 Autoconf TIOCGETP
9365 EOF
9366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9367 egrep "$ac_pattern" >/dev/null 2>&1; then
9368 rm -rf conftest*
9369 ac_cv_prog_gcc_traditional=yes
9370 else
9371 rm -rf conftest*
9372 ac_cv_prog_gcc_traditional=no
9373 fi
9374 rm -f conftest*
9375
9376
9377 if test $ac_cv_prog_gcc_traditional = no; then
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381 #include <termio.h>
9382 Autoconf TCGETA
9383 EOF
9384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9385 egrep "$ac_pattern" >/dev/null 2>&1; then
9386 rm -rf conftest*
9387 ac_cv_prog_gcc_traditional=yes
9388 fi
9389 rm -f conftest*
9390
9391 fi
9392 fi
9393
9394 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9395 if test $ac_cv_prog_gcc_traditional = yes; then
9396 CC="$CC -traditional"
9397 fi
9398 fi
9399
9400
9401
9402 ac_ext=C
9403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9404 ac_cpp='$CXXCPP $CPPFLAGS'
9405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9407 cross_compiling=$ac_cv_prog_cxx_cross
9408
9409
9410 CXXFLAGS=${CXXFLAGS:=}
9411 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9412 do
9413 # Extract the first word of "$ac_prog", so it can be a program name with args.
9414 set dummy $ac_prog; ac_word=$2
9415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9416 echo "configure:9417: checking for $ac_word" >&5
9417 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9420 if test -n "$CXX"; then
9421 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9422 else
9423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9424 ac_dummy="$PATH"
9425 for ac_dir in $ac_dummy; do
9426 test -z "$ac_dir" && ac_dir=.
9427 if test -f $ac_dir/$ac_word; then
9428 ac_cv_prog_CXX="$ac_prog"
9429 break
9430 fi
9431 done
9432 IFS="$ac_save_ifs"
9433 fi
9434 fi
9435 CXX="$ac_cv_prog_CXX"
9436 if test -n "$CXX"; then
9437 echo "$ac_t""$CXX" 1>&6
9438 else
9439 echo "$ac_t""no" 1>&6
9440 fi
9441
9442 test -n "$CXX" && break
9443 done
9444 test -n "$CXX" || CXX="gcc"
9445
9446
9447 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9448 echo "configure:9449: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9449
9450 ac_ext=C
9451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9452 ac_cpp='$CXXCPP $CPPFLAGS'
9453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9455 cross_compiling=$ac_cv_prog_cxx_cross
9456
9457 cat > conftest.$ac_ext << EOF
9458
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461
9462 int main(){return(0);}
9463 EOF
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 ac_cv_prog_cxx_works=yes
9466 # If we can't run a trivial program, we are probably using a cross compiler.
9467 if (./conftest; exit) 2>/dev/null; then
9468 ac_cv_prog_cxx_cross=no
9469 else
9470 ac_cv_prog_cxx_cross=yes
9471 fi
9472 else
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 ac_cv_prog_cxx_works=no
9476 fi
9477 rm -fr conftest*
9478 ac_ext=C
9479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9480 ac_cpp='$CXXCPP $CPPFLAGS'
9481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9483 cross_compiling=$ac_cv_prog_cxx_cross
9484
9485 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9486 if test $ac_cv_prog_cxx_works = no; then
9487 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9488 fi
9489 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9490 echo "configure:9491: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9491 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9492 cross_compiling=$ac_cv_prog_cxx_cross
9493
9494 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9495 echo "configure:9496: checking whether we are using GNU C++" >&5
9496 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
9498 else
9499 cat > conftest.C <<EOF
9500 #ifdef __GNUC__
9501 yes;
9502 #endif
9503 EOF
9504 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9505 ac_cv_prog_gxx=yes
9506 else
9507 ac_cv_prog_gxx=no
9508 fi
9509 fi
9510
9511 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9512
9513 if test $ac_cv_prog_gxx = yes; then
9514 GXX=yes
9515 else
9516 GXX=
9517 fi
9518
9519 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9520 ac_save_CXXFLAGS="$CXXFLAGS"
9521 CXXFLAGS=
9522 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9523 echo "configure:9524: checking whether ${CXX-g++} accepts -g" >&5
9524 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9526 else
9527 echo 'void f(){}' > conftest.cc
9528 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9529 ac_cv_prog_cxx_g=yes
9530 else
9531 ac_cv_prog_cxx_g=no
9532 fi
9533 rm -f conftest*
9534
9535 fi
9536
9537 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9538 if test "$ac_test_CXXFLAGS" = set; then
9539 CXXFLAGS="$ac_save_CXXFLAGS"
9540 elif test $ac_cv_prog_cxx_g = yes; then
9541 if test "$GXX" = yes; then
9542 CXXFLAGS="-g -O2"
9543 else
9544 CXXFLAGS="-g"
9545 fi
9546 else
9547 if test "$GXX" = yes; then
9548 CXXFLAGS="-O2"
9549 else
9550 CXXFLAGS=
9551 fi
9552 fi
9553
9554
9555 ac_ext=c
9556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9557 ac_cpp='$CPP $CPPFLAGS'
9558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9560 cross_compiling=$ac_cv_prog_cc_cross
9561
9562
9563 # Extract the first word of "ranlib", so it can be a program name with args.
9564 set dummy ranlib; ac_word=$2
9565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9566 echo "configure:9567: checking for $ac_word" >&5
9567 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9568 echo $ac_n "(cached) $ac_c" 1>&6
9569 else
9570 if test -n "$RANLIB"; then
9571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9572 else
9573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9574 ac_dummy="$PATH"
9575 for ac_dir in $ac_dummy; do
9576 test -z "$ac_dir" && ac_dir=.
9577 if test -f $ac_dir/$ac_word; then
9578 ac_cv_prog_RANLIB="ranlib"
9579 break
9580 fi
9581 done
9582 IFS="$ac_save_ifs"
9583 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9584 fi
9585 fi
9586 RANLIB="$ac_cv_prog_RANLIB"
9587 if test -n "$RANLIB"; then
9588 echo "$ac_t""$RANLIB" 1>&6
9589 else
9590 echo "$ac_t""no" 1>&6
9591 fi
9592
9593
9594 # Extract the first word of "ar", so it can be a program name with args.
9595 set dummy ar; ac_word=$2
9596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9597 echo "configure:9598: checking for $ac_word" >&5
9598 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9600 else
9601 if test -n "$AR"; then
9602 ac_cv_prog_AR="$AR" # Let the user override the test.
9603 else
9604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9605 ac_dummy="$PATH"
9606 for ac_dir in $ac_dummy; do
9607 test -z "$ac_dir" && ac_dir=.
9608 if test -f $ac_dir/$ac_word; then
9609 ac_cv_prog_AR="ar"
9610 break
9611 fi
9612 done
9613 IFS="$ac_save_ifs"
9614 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9615 fi
9616 fi
9617 AR="$ac_cv_prog_AR"
9618 if test -n "$AR"; then
9619 echo "$ac_t""$AR" 1>&6
9620 else
9621 echo "$ac_t""no" 1>&6
9622 fi
9623
9624
9625 # Find a good install program. We prefer a C program (faster),
9626 # so one script is as good as another. But avoid the broken or
9627 # incompatible versions:
9628 # SysV /etc/install, /usr/sbin/install
9629 # SunOS /usr/etc/install
9630 # IRIX /sbin/install
9631 # AIX /bin/install
9632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9635 # ./install, which can be erroneously created by make from ./install.sh.
9636 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9637 echo "configure:9638: checking for a BSD compatible install" >&5
9638 if test -z "$INSTALL"; then
9639 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9640 echo $ac_n "(cached) $ac_c" 1>&6
9641 else
9642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9643 for ac_dir in $PATH; do
9644 # Account for people who put trailing slashes in PATH elements.
9645 case "$ac_dir/" in
9646 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9647 *)
9648 # OSF1 and SCO ODT 3.0 have their own names for install.
9649 # Don't use installbsd from OSF since it installs stuff as root
9650 # by default.
9651 for ac_prog in ginstall scoinst install; do
9652 if test -f $ac_dir/$ac_prog; then
9653 if test $ac_prog = install &&
9654 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9655 # AIX install. It has an incompatible calling convention.
9656 :
9657 else
9658 ac_cv_path_install="$ac_dir/$ac_prog -c"
9659 break 2
9660 fi
9661 fi
9662 done
9663 ;;
9664 esac
9665 done
9666 IFS="$ac_save_IFS"
9667
9668 fi
9669 if test "${ac_cv_path_install+set}" = set; then
9670 INSTALL="$ac_cv_path_install"
9671 else
9672 # As a last resort, use the slow shell script. We don't cache a
9673 # path for INSTALL within a source directory, because that will
9674 # break other packages using the cache if that directory is
9675 # removed, or if the path is relative.
9676 INSTALL="$ac_install_sh"
9677 fi
9678 fi
9679 echo "$ac_t""$INSTALL" 1>&6
9680
9681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9682 # It thinks the first close brace ends the variable substitution.
9683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9684
9685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9686
9687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9688
9689
9690 case ${INSTALL} in
9691 /* ) # Absolute
9692 ;;
9693 ?:* ) # Drive letter, considered as absolute.
9694 ;;
9695 *)
9696 INSTALL=`pwd`/${INSTALL} ;;
9697 esac
9698
9699 case ${host} in
9700 *-hp-hpux* )
9701 INSTALL_DIR="mkdir"
9702 ;;
9703
9704 *) INSTALL_DIR="$INSTALL -d"
9705 ;;
9706 esac
9707
9708
9709 case "${host}" in
9710
9711 powerpc-*-darwin* )
9712 INSTALL_PROGRAM="cp -fp"
9713 INSTALL_DATA="cp -fp"
9714 ;;
9715 *)
9716 ;;
9717 esac
9718
9719 # Extract the first word of "strip", so it can be a program name with args.
9720 set dummy strip; ac_word=$2
9721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9722 echo "configure:9723: checking for $ac_word" >&5
9723 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9725 else
9726 if test -n "$STRIP"; then
9727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9728 else
9729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9730 ac_dummy="$PATH"
9731 for ac_dir in $ac_dummy; do
9732 test -z "$ac_dir" && ac_dir=.
9733 if test -f $ac_dir/$ac_word; then
9734 ac_cv_prog_STRIP="strip"
9735 break
9736 fi
9737 done
9738 IFS="$ac_save_ifs"
9739 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9740 fi
9741 fi
9742 STRIP="$ac_cv_prog_STRIP"
9743 if test -n "$STRIP"; then
9744 echo "$ac_t""$STRIP" 1>&6
9745 else
9746 echo "$ac_t""no" 1>&6
9747 fi
9748
9749
9750 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9751 echo "configure:9752: checking if make is GNU make" >&5
9752 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9754 else
9755
9756 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9757 egrep -s GNU > /dev/null); then
9758 wx_cv_prog_makeisgnu="yes"
9759 else
9760 wx_cv_prog_makeisgnu="no"
9761 fi
9762
9763 fi
9764
9765 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9766
9767 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9768 IF_GNU_MAKE=""
9769 else
9770 IF_GNU_MAKE="#"
9771 fi
9772
9773
9774
9775 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9776 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9777 echo "configure:9778: checking if make supports VPATH" >&5
9778 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9780 else
9781
9782 cat - << EOF > confMake
9783 check : file
9784 cp \$? \$@
9785 cp \$? final_file
9786 EOF
9787
9788 if test ! -d sub ; then
9789 mkdir sub
9790 fi
9791 echo dummy > sub/file
9792 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9793 RESULT=$?
9794 rm -f sub/file check final_file confMake
9795 rmdir sub
9796 if test "$RESULT" = 0; then
9797 wx_cv_prog_makevpath="yes"
9798 else
9799 wx_cv_prog_makevpath="no"
9800 fi
9801
9802 fi
9803
9804 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9805
9806 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9807 { echo "configure: error:
9808 You need a make-utility that is able to use the variable
9809 VPATH correctly.
9810 If your version of make does not support VPATH correctly,
9811 please install GNU-make (possibly as gmake), and start
9812 configure with the following command:
9813 export MAKE=gmake; ./configure for sh-type shells
9814 setenv MAKE gmake; ./configure for csh-type shells
9815 Also please do remember to use gmake in this case every time
9816 you are trying to compile.
9817 " 1>&2; exit 1; }
9818 fi fi
9819 for ac_prog in 'bison -y' byacc
9820 do
9821 # Extract the first word of "$ac_prog", so it can be a program name with args.
9822 set dummy $ac_prog; ac_word=$2
9823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9824 echo "configure:9825: checking for $ac_word" >&5
9825 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9827 else
9828 if test -n "$YACC"; then
9829 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9830 else
9831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9832 ac_dummy="$PATH"
9833 for ac_dir in $ac_dummy; do
9834 test -z "$ac_dir" && ac_dir=.
9835 if test -f $ac_dir/$ac_word; then
9836 ac_cv_prog_YACC="$ac_prog"
9837 break
9838 fi
9839 done
9840 IFS="$ac_save_ifs"
9841 fi
9842 fi
9843 YACC="$ac_cv_prog_YACC"
9844 if test -n "$YACC"; then
9845 echo "$ac_t""$YACC" 1>&6
9846 else
9847 echo "$ac_t""no" 1>&6
9848 fi
9849
9850 test -n "$YACC" && break
9851 done
9852 test -n "$YACC" || YACC="yacc"
9853
9854
9855 # Extract the first word of "flex", so it can be a program name with args.
9856 set dummy flex; ac_word=$2
9857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9858 echo "configure:9859: checking for $ac_word" >&5
9859 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9861 else
9862 if test -n "$LEX"; then
9863 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9864 else
9865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9866 ac_dummy="$PATH"
9867 for ac_dir in $ac_dummy; do
9868 test -z "$ac_dir" && ac_dir=.
9869 if test -f $ac_dir/$ac_word; then
9870 ac_cv_prog_LEX="flex"
9871 break
9872 fi
9873 done
9874 IFS="$ac_save_ifs"
9875 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9876 fi
9877 fi
9878 LEX="$ac_cv_prog_LEX"
9879 if test -n "$LEX"; then
9880 echo "$ac_t""$LEX" 1>&6
9881 else
9882 echo "$ac_t""no" 1>&6
9883 fi
9884
9885 if test -z "$LEXLIB"
9886 then
9887 case "$LEX" in
9888 flex*) ac_lib=fl ;;
9889 *) ac_lib=l ;;
9890 esac
9891 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9892 echo "configure:9893: checking for yywrap in -l$ac_lib" >&5
9893 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9896 else
9897 ac_save_LIBS="$LIBS"
9898 LIBS="-l$ac_lib $LIBS"
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 /* Override any gcc2 internal prototype to avoid an error. */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9905 char yywrap();
9906
9907 int main() {
9908 yywrap()
9909 ; return 0; }
9910 EOF
9911 if { (eval echo configure:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9912 rm -rf conftest*
9913 eval "ac_cv_lib_$ac_lib_var=yes"
9914 else
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9917 rm -rf conftest*
9918 eval "ac_cv_lib_$ac_lib_var=no"
9919 fi
9920 rm -f conftest*
9921 LIBS="$ac_save_LIBS"
9922
9923 fi
9924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9925 echo "$ac_t""yes" 1>&6
9926 LEXLIB="-l$ac_lib"
9927 else
9928 echo "$ac_t""no" 1>&6
9929 fi
9930
9931 fi
9932
9933
9934 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9935 echo "configure:9936: checking whether ln -s works" >&5
9936 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9937 echo $ac_n "(cached) $ac_c" 1>&6
9938 else
9939 rm -f conftestdata
9940 if ln -s X conftestdata 2>/dev/null
9941 then
9942 rm -f conftestdata
9943 ac_cv_prog_LN_S="ln -s"
9944 else
9945 ac_cv_prog_LN_S=ln
9946 fi
9947 fi
9948 LN_S="$ac_cv_prog_LN_S"
9949 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9950 echo "$ac_t""yes" 1>&6
9951 else
9952 echo "$ac_t""no" 1>&6
9953 fi
9954
9955
9956 case "${host}" in
9957 *-pc-os2_emx | *-pc-os2-emx )
9958 LIBS="$LIBS -lstdcpp"
9959 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9960 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9961 echo "configure:9962: checking for drand48 in -lcExt" >&5
9962 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9965 else
9966 ac_save_LIBS="$LIBS"
9967 LIBS="-lcExt $LIBS"
9968 cat > conftest.$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 /* Override any gcc2 internal prototype to avoid an error. */
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9974 char drand48();
9975
9976 int main() {
9977 drand48()
9978 ; return 0; }
9979 EOF
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9981 rm -rf conftest*
9982 eval "ac_cv_lib_$ac_lib_var=yes"
9983 else
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9986 rm -rf conftest*
9987 eval "ac_cv_lib_$ac_lib_var=no"
9988 fi
9989 rm -f conftest*
9990 LIBS="$ac_save_LIBS"
9991
9992 fi
9993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9994 echo "$ac_t""yes" 1>&6
9995 LIBS="$LIBS -lcExt"
9996 else
9997 echo "$ac_t""no" 1>&6
9998 fi
9999
10000 else
10001 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
10002 fi
10003 ;;
10004 esac
10005
10006
10007 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
10008 for ac_hdr in strings.h
10009 do
10010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10012 echo "configure:10013: checking for $ac_hdr" >&5
10013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 #include <$ac_hdr>
10020 EOF
10021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10022 { (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10024 if test -z "$ac_err"; then
10025 rm -rf conftest*
10026 eval "ac_cv_header_$ac_safe=yes"
10027 else
10028 echo "$ac_err" >&5
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 rm -rf conftest*
10032 eval "ac_cv_header_$ac_safe=no"
10033 fi
10034 rm -f conftest*
10035 fi
10036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10039 cat >> confdefs.h <<EOF
10040 #define $ac_tr_hdr 1
10041 EOF
10042
10043 else
10044 echo "$ac_t""no" 1>&6
10045 fi
10046 done
10047
10048 fi
10049
10050 for ac_hdr in stdlib.h
10051 do
10052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10054 echo "configure:10055: checking for $ac_hdr" >&5
10055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057 else
10058 cat > conftest.$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 #include <$ac_hdr>
10062 EOF
10063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10064 { (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10066 if test -z "$ac_err"; then
10067 rm -rf conftest*
10068 eval "ac_cv_header_$ac_safe=yes"
10069 else
10070 echo "$ac_err" >&5
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 rm -rf conftest*
10074 eval "ac_cv_header_$ac_safe=no"
10075 fi
10076 rm -f conftest*
10077 fi
10078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10079 echo "$ac_t""yes" 1>&6
10080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10081 cat >> confdefs.h <<EOF
10082 #define $ac_tr_hdr 1
10083 EOF
10084
10085 else
10086 echo "$ac_t""no" 1>&6
10087 fi
10088 done
10089
10090 for ac_hdr in malloc.h
10091 do
10092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10094 echo "configure:10095: checking for $ac_hdr" >&5
10095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10097 else
10098 cat > conftest.$ac_ext <<EOF
10099 #line 10100 "configure"
10100 #include "confdefs.h"
10101 #include <$ac_hdr>
10102 EOF
10103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10104 { (eval echo configure:10105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10106 if test -z "$ac_err"; then
10107 rm -rf conftest*
10108 eval "ac_cv_header_$ac_safe=yes"
10109 else
10110 echo "$ac_err" >&5
10111 echo "configure: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 rm -rf conftest*
10114 eval "ac_cv_header_$ac_safe=no"
10115 fi
10116 rm -f conftest*
10117 fi
10118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10119 echo "$ac_t""yes" 1>&6
10120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10121 cat >> confdefs.h <<EOF
10122 #define $ac_tr_hdr 1
10123 EOF
10124
10125 else
10126 echo "$ac_t""no" 1>&6
10127 fi
10128 done
10129
10130 for ac_hdr in unistd.h
10131 do
10132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10134 echo "configure:10135: checking for $ac_hdr" >&5
10135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10137 else
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 #include <$ac_hdr>
10142 EOF
10143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10144 { (eval echo configure:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10146 if test -z "$ac_err"; then
10147 rm -rf conftest*
10148 eval "ac_cv_header_$ac_safe=yes"
10149 else
10150 echo "$ac_err" >&5
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 rm -rf conftest*
10154 eval "ac_cv_header_$ac_safe=no"
10155 fi
10156 rm -f conftest*
10157 fi
10158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10161 cat >> confdefs.h <<EOF
10162 #define $ac_tr_hdr 1
10163 EOF
10164
10165 else
10166 echo "$ac_t""no" 1>&6
10167 fi
10168 done
10169
10170 for ac_hdr in wchar.h
10171 do
10172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10174 echo "configure:10175: checking for $ac_hdr" >&5
10175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10177 else
10178 cat > conftest.$ac_ext <<EOF
10179 #line 10180 "configure"
10180 #include "confdefs.h"
10181 #include <$ac_hdr>
10182 EOF
10183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10184 { (eval echo configure:10185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10186 if test -z "$ac_err"; then
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=yes"
10189 else
10190 echo "$ac_err" >&5
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 eval "ac_cv_header_$ac_safe=no"
10195 fi
10196 rm -f conftest*
10197 fi
10198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10199 echo "$ac_t""yes" 1>&6
10200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10201 cat >> confdefs.h <<EOF
10202 #define $ac_tr_hdr 1
10203 EOF
10204
10205 else
10206 echo "$ac_t""no" 1>&6
10207 fi
10208 done
10209
10210
10211 if test "$ac_cv_header_wchar_h" != "yes"; then
10212 for ac_hdr in wcstr.h
10213 do
10214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10216 echo "configure:10217: checking for $ac_hdr" >&5
10217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10218 echo $ac_n "(cached) $ac_c" 1>&6
10219 else
10220 cat > conftest.$ac_ext <<EOF
10221 #line 10222 "configure"
10222 #include "confdefs.h"
10223 #include <$ac_hdr>
10224 EOF
10225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10226 { (eval echo configure:10227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10228 if test -z "$ac_err"; then
10229 rm -rf conftest*
10230 eval "ac_cv_header_$ac_safe=yes"
10231 else
10232 echo "$ac_err" >&5
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 rm -rf conftest*
10236 eval "ac_cv_header_$ac_safe=no"
10237 fi
10238 rm -f conftest*
10239 fi
10240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10243 cat >> confdefs.h <<EOF
10244 #define $ac_tr_hdr 1
10245 EOF
10246
10247 else
10248 echo "$ac_t""no" 1>&6
10249 fi
10250 done
10251
10252 fi
10253
10254 for ac_hdr in fnmatch.h
10255 do
10256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10258 echo "configure:10259: checking for $ac_hdr" >&5
10259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10261 else
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10265 #include <$ac_hdr>
10266 EOF
10267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10268 { (eval echo configure:10269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10270 if test -z "$ac_err"; then
10271 rm -rf conftest*
10272 eval "ac_cv_header_$ac_safe=yes"
10273 else
10274 echo "$ac_err" >&5
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_header_$ac_safe=no"
10279 fi
10280 rm -f conftest*
10281 fi
10282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10285 cat >> confdefs.h <<EOF
10286 #define $ac_tr_hdr 1
10287 EOF
10288
10289 else
10290 echo "$ac_t""no" 1>&6
10291 fi
10292 done
10293
10294
10295 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10296 for ac_func in fnmatch
10297 do
10298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10299 echo "configure:10300: checking for $ac_func" >&5
10300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10302 else
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10306 /* System header to define __stub macros and hopefully few prototypes,
10307 which can conflict with char $ac_func(); below. */
10308 #include <assert.h>
10309 /* Override any gcc2 internal prototype to avoid an error. */
10310 /* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312 char $ac_func();
10313
10314 int main() {
10315
10316 /* The GNU C library defines this for functions which it implements
10317 to always fail with ENOSYS. Some functions are actually named
10318 something starting with __ and the normal name is an alias. */
10319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10320 choke me
10321 #else
10322 $ac_func();
10323 #endif
10324
10325 ; return 0; }
10326 EOF
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10328 rm -rf conftest*
10329 eval "ac_cv_func_$ac_func=yes"
10330 else
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 rm -rf conftest*
10334 eval "ac_cv_func_$ac_func=no"
10335 fi
10336 rm -f conftest*
10337 fi
10338
10339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10340 echo "$ac_t""yes" 1>&6
10341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10342 cat >> confdefs.h <<EOF
10343 #define $ac_tr_func 1
10344 EOF
10345
10346 else
10347 echo "$ac_t""no" 1>&6
10348 fi
10349 done
10350
10351 fi
10352
10353 for ac_hdr in langinfo.h
10354 do
10355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10357 echo "configure:10358: checking for $ac_hdr" >&5
10358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10359 echo $ac_n "(cached) $ac_c" 1>&6
10360 else
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 #include <$ac_hdr>
10365 EOF
10366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10367 { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10369 if test -z "$ac_err"; then
10370 rm -rf conftest*
10371 eval "ac_cv_header_$ac_safe=yes"
10372 else
10373 echo "$ac_err" >&5
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_header_$ac_safe=no"
10378 fi
10379 rm -f conftest*
10380 fi
10381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10382 echo "$ac_t""yes" 1>&6
10383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10384 cat >> confdefs.h <<EOF
10385 #define $ac_tr_hdr 1
10386 EOF
10387
10388 else
10389 echo "$ac_t""no" 1>&6
10390 fi
10391 done
10392
10393
10394 case "${host}" in
10395 *-pc-os2_emx | *-pc-os2-emx )
10396 if test $ac_cv_header_langinfo_h = "yes"; then
10397 LIBS="$LIBS -lintl"
10398 fi
10399 ;;
10400 esac
10401
10402 if test "$wxUSE_GUI" = "yes"; then
10403 if test "$wxUSE_UNIX" = "yes"; then
10404 for ac_hdr in X11/XKBlib.h
10405 do
10406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10408 echo "configure:10409: checking for $ac_hdr" >&5
10409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10411 else
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10415 #include <$ac_hdr>
10416 EOF
10417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10418 { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10420 if test -z "$ac_err"; then
10421 rm -rf conftest*
10422 eval "ac_cv_header_$ac_safe=yes"
10423 else
10424 echo "$ac_err" >&5
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 rm -rf conftest*
10428 eval "ac_cv_header_$ac_safe=no"
10429 fi
10430 rm -f conftest*
10431 fi
10432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10435 cat >> confdefs.h <<EOF
10436 #define $ac_tr_hdr 1
10437 EOF
10438
10439 else
10440 echo "$ac_t""no" 1>&6
10441 fi
10442 done
10443
10444 fi
10445 fi
10446
10447
10448 echo $ac_n "checking for working const""... $ac_c" 1>&6
10449 echo "configure:10450: checking for working const" >&5
10450 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10452 else
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456
10457 int main() {
10458
10459 /* Ultrix mips cc rejects this. */
10460 typedef int charset[2]; const charset x;
10461 /* SunOS 4.1.1 cc rejects this. */
10462 char const *const *ccp;
10463 char **p;
10464 /* NEC SVR4.0.2 mips cc rejects this. */
10465 struct point {int x, y;};
10466 static struct point const zero = {0,0};
10467 /* AIX XL C 1.02.0.0 rejects this.
10468 It does not let you subtract one const X* pointer from another in an arm
10469 of an if-expression whose if-part is not a constant expression */
10470 const char *g = "string";
10471 ccp = &g + (g ? g-g : 0);
10472 /* HPUX 7.0 cc rejects these. */
10473 ++ccp;
10474 p = (char**) ccp;
10475 ccp = (char const *const *) p;
10476 { /* SCO 3.2v4 cc rejects this. */
10477 char *t;
10478 char const *s = 0 ? (char *) 0 : (char const *) 0;
10479
10480 *t++ = 0;
10481 }
10482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10483 int x[] = {25, 17};
10484 const int *foo = &x[0];
10485 ++foo;
10486 }
10487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10488 typedef const int *iptr;
10489 iptr p = 0;
10490 ++p;
10491 }
10492 { /* AIX XL C 1.02.0.0 rejects this saying
10493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10494 struct s { int j; const int *ap[3]; };
10495 struct s *b; b->j = 5;
10496 }
10497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10498 const int foo = 10;
10499 }
10500
10501 ; return 0; }
10502 EOF
10503 if { (eval echo configure:10504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10504 rm -rf conftest*
10505 ac_cv_c_const=yes
10506 else
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10509 rm -rf conftest*
10510 ac_cv_c_const=no
10511 fi
10512 rm -f conftest*
10513 fi
10514
10515 echo "$ac_t""$ac_cv_c_const" 1>&6
10516 if test $ac_cv_c_const = no; then
10517 cat >> confdefs.h <<\EOF
10518 #define const
10519 EOF
10520
10521 fi
10522
10523 echo $ac_n "checking for inline""... $ac_c" 1>&6
10524 echo "configure:10525: checking for inline" >&5
10525 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10527 else
10528 ac_cv_c_inline=no
10529 for ac_kw in inline __inline__ __inline; do
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533
10534 int main() {
10535 } $ac_kw foo() {
10536 ; return 0; }
10537 EOF
10538 if { (eval echo configure:10539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10539 rm -rf conftest*
10540 ac_cv_c_inline=$ac_kw; break
10541 else
10542 echo "configure: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10544 fi
10545 rm -f conftest*
10546 done
10547
10548 fi
10549
10550 echo "$ac_t""$ac_cv_c_inline" 1>&6
10551 case "$ac_cv_c_inline" in
10552 inline | yes) ;;
10553 no) cat >> confdefs.h <<\EOF
10554 #define inline
10555 EOF
10556 ;;
10557 *) cat >> confdefs.h <<EOF
10558 #define inline $ac_cv_c_inline
10559 EOF
10560 ;;
10561 esac
10562
10563
10564 echo $ac_n "checking size of char""... $ac_c" 1>&6
10565 echo "configure:10566: checking size of char" >&5
10566 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10568 else
10569 if test "$cross_compiling" = yes; then
10570 ac_cv_sizeof_char=1
10571 else
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10575 #include <stdio.h>
10576 main()
10577 {
10578 FILE *f=fopen("conftestval", "w");
10579 if (!f) exit(1);
10580 fprintf(f, "%d\n", sizeof(char));
10581 exit(0);
10582 }
10583 EOF
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10585 then
10586 ac_cv_sizeof_char=`cat conftestval`
10587 else
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10590 rm -fr conftest*
10591 ac_cv_sizeof_char=0
10592 fi
10593 rm -fr conftest*
10594 fi
10595
10596 fi
10597 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10598 cat >> confdefs.h <<EOF
10599 #define SIZEOF_CHAR $ac_cv_sizeof_char
10600 EOF
10601
10602
10603 echo $ac_n "checking size of short""... $ac_c" 1>&6
10604 echo "configure:10605: checking size of short" >&5
10605 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10607 else
10608 if test "$cross_compiling" = yes; then
10609 ac_cv_sizeof_short=2
10610 else
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure"
10613 #include "confdefs.h"
10614 #include <stdio.h>
10615 main()
10616 {
10617 FILE *f=fopen("conftestval", "w");
10618 if (!f) exit(1);
10619 fprintf(f, "%d\n", sizeof(short));
10620 exit(0);
10621 }
10622 EOF
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10624 then
10625 ac_cv_sizeof_short=`cat conftestval`
10626 else
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10629 rm -fr conftest*
10630 ac_cv_sizeof_short=0
10631 fi
10632 rm -fr conftest*
10633 fi
10634
10635 fi
10636 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10637 cat >> confdefs.h <<EOF
10638 #define SIZEOF_SHORT $ac_cv_sizeof_short
10639 EOF
10640
10641
10642 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10643 echo "configure:10644: checking size of void *" >&5
10644 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10646 else
10647 if test "$cross_compiling" = yes; then
10648 ac_cv_sizeof_void_p=4
10649 else
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 #include <stdio.h>
10654 main()
10655 {
10656 FILE *f=fopen("conftestval", "w");
10657 if (!f) exit(1);
10658 fprintf(f, "%d\n", sizeof(void *));
10659 exit(0);
10660 }
10661 EOF
10662 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10663 then
10664 ac_cv_sizeof_void_p=`cat conftestval`
10665 else
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -fr conftest*
10669 ac_cv_sizeof_void_p=0
10670 fi
10671 rm -fr conftest*
10672 fi
10673
10674 fi
10675 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10676 cat >> confdefs.h <<EOF
10677 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10678 EOF
10679
10680
10681 echo $ac_n "checking size of int""... $ac_c" 1>&6
10682 echo "configure:10683: checking size of int" >&5
10683 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10685 else
10686 if test "$cross_compiling" = yes; then
10687 ac_cv_sizeof_int=4
10688 else
10689 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10692 #include <stdio.h>
10693 main()
10694 {
10695 FILE *f=fopen("conftestval", "w");
10696 if (!f) exit(1);
10697 fprintf(f, "%d\n", sizeof(int));
10698 exit(0);
10699 }
10700 EOF
10701 if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10702 then
10703 ac_cv_sizeof_int=`cat conftestval`
10704 else
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10707 rm -fr conftest*
10708 ac_cv_sizeof_int=0
10709 fi
10710 rm -fr conftest*
10711 fi
10712
10713 fi
10714 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10715 cat >> confdefs.h <<EOF
10716 #define SIZEOF_INT $ac_cv_sizeof_int
10717 EOF
10718
10719
10720 echo $ac_n "checking size of long""... $ac_c" 1>&6
10721 echo "configure:10722: checking size of long" >&5
10722 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10723 echo $ac_n "(cached) $ac_c" 1>&6
10724 else
10725 if test "$cross_compiling" = yes; then
10726 ac_cv_sizeof_long=4
10727 else
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include <stdio.h>
10732 main()
10733 {
10734 FILE *f=fopen("conftestval", "w");
10735 if (!f) exit(1);
10736 fprintf(f, "%d\n", sizeof(long));
10737 exit(0);
10738 }
10739 EOF
10740 if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10741 then
10742 ac_cv_sizeof_long=`cat conftestval`
10743 else
10744 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10746 rm -fr conftest*
10747 ac_cv_sizeof_long=0
10748 fi
10749 rm -fr conftest*
10750 fi
10751
10752 fi
10753 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10754 cat >> confdefs.h <<EOF
10755 #define SIZEOF_LONG $ac_cv_sizeof_long
10756 EOF
10757
10758
10759
10760 case "${host}" in
10761 arm-*-linux* )
10762 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10763 echo "configure:10764: checking size of long long" >&5
10764 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10766 else
10767 if test "$cross_compiling" = yes; then
10768 ac_cv_sizeof_long_long=8
10769 else
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 #include <stdio.h>
10774 main()
10775 {
10776 FILE *f=fopen("conftestval", "w");
10777 if (!f) exit(1);
10778 fprintf(f, "%d\n", sizeof(long long));
10779 exit(0);
10780 }
10781 EOF
10782 if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10783 then
10784 ac_cv_sizeof_long_long=`cat conftestval`
10785 else
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10788 rm -fr conftest*
10789 ac_cv_sizeof_long_long=0
10790 fi
10791 rm -fr conftest*
10792 fi
10793
10794 fi
10795 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10796 cat >> confdefs.h <<EOF
10797 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10798 EOF
10799
10800
10801 ;;
10802 *-hp-hpux* )
10803 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10804 echo "configure:10805: checking size of long long" >&5
10805 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807 else
10808 if test "$cross_compiling" = yes; then
10809 ac_cv_sizeof_long_long=0
10810 else
10811 cat > conftest.$ac_ext <<EOF
10812 #line 10813 "configure"
10813 #include "confdefs.h"
10814 #include <stdio.h>
10815 main()
10816 {
10817 FILE *f=fopen("conftestval", "w");
10818 if (!f) exit(1);
10819 fprintf(f, "%d\n", sizeof(long long));
10820 exit(0);
10821 }
10822 EOF
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10824 then
10825 ac_cv_sizeof_long_long=`cat conftestval`
10826 else
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 rm -fr conftest*
10830 ac_cv_sizeof_long_long=0
10831 fi
10832 rm -fr conftest*
10833 fi
10834
10835 fi
10836 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10837 cat >> confdefs.h <<EOF
10838 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10839 EOF
10840
10841
10842 if test "$ac_cv_sizeof_long_long" != "0"; then
10843 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10844 fi
10845 ;;
10846 * )
10847 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10848 echo "configure:10849: checking size of long long" >&5
10849 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851 else
10852 if test "$cross_compiling" = yes; then
10853 ac_cv_sizeof_long_long=0
10854 else
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <stdio.h>
10859 main()
10860 {
10861 FILE *f=fopen("conftestval", "w");
10862 if (!f) exit(1);
10863 fprintf(f, "%d\n", sizeof(long long));
10864 exit(0);
10865 }
10866 EOF
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10868 then
10869 ac_cv_sizeof_long_long=`cat conftestval`
10870 else
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 rm -fr conftest*
10874 ac_cv_sizeof_long_long=0
10875 fi
10876 rm -fr conftest*
10877 fi
10878
10879 fi
10880 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10881 cat >> confdefs.h <<EOF
10882 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10883 EOF
10884
10885
10886 esac
10887
10888 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10889 echo "configure:10890: checking size of wchar_t" >&5
10890 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10891 echo $ac_n "(cached) $ac_c" 1>&6
10892 else
10893
10894 if test "$cross_compiling" = yes; then
10895
10896 case "${host}" in
10897 *-pc-msdosdjgpp )
10898 wx_cv_sizeof_wchar_t=0
10899 ;;
10900 * )
10901 wx_cv_sizeof_wchar_t=4
10902 ;;
10903 esac
10904
10905
10906 else
10907 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910
10911 /* DJGPP only has fake wchar_t: */
10912 #ifdef __DJGPP__
10913 # error "fake wchar_t"
10914 #endif
10915 #ifdef HAVE_WCHAR_H
10916 # ifdef __CYGWIN__
10917 # include <stddef.h>
10918 # endif
10919 # include <wchar.h>
10920 #endif
10921 #ifdef HAVE_STDLIB_H
10922 # include <stdlib.h>
10923 #endif
10924 #include <stdio.h>
10925 int main()
10926 {
10927 FILE *f=fopen("conftestval", "w");
10928 if (!f) exit(1);
10929 fprintf(f, "%i", sizeof(wchar_t));
10930 exit(0);
10931 }
10932
10933 EOF
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10935 then
10936 wx_cv_sizeof_wchar_t=`cat conftestval`
10937 else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -fr conftest*
10941 wx_cv_sizeof_wchar_t=0
10942 fi
10943 rm -fr conftest*
10944 fi
10945
10946
10947 fi
10948
10949 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10950
10951 cat >> confdefs.h <<EOF
10952 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10953 EOF
10954
10955
10956 # Check whether --enable-largefile or --disable-largefile was given.
10957 if test "${enable_largefile+set}" = set; then
10958 enableval="$enable_largefile"
10959 :
10960 fi
10961
10962 if test "$enable_largefile" != no; then
10963 wx_largefile=no
10964
10965 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10966 echo "configure:10967: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10967 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10969 else
10970
10971 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure"
10973 #include "confdefs.h"
10974 #define _FILE_OFFSET_BITS 64
10975 #include <sys/types.h>
10976 int main() {
10977 typedef struct {
10978 unsigned int field: sizeof(off_t) == 8;
10979 } wxlf;
10980
10981 ; return 0; }
10982 EOF
10983 if { (eval echo configure:10984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10984 rm -rf conftest*
10985 ac_cv_sys_file_offset_bits=64
10986 else
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10989 rm -rf conftest*
10990 ac_cv_sys_file_offset_bits=no
10991 fi
10992 rm -f conftest*
10993
10994
10995 fi
10996
10997 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10998
10999 if test "$ac_cv_sys_file_offset_bits" != no; then
11000 wx_largefile=yes
11001 cat >> confdefs.h <<EOF
11002 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11003 EOF
11004
11005 fi
11006
11007 if test "x$wx_largefile" != "xyes"; then
11008
11009 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
11010 echo "configure:11011: checking for _LARGE_FILES value needed for large files" >&5
11011 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
11012 echo $ac_n "(cached) $ac_c" 1>&6
11013 else
11014
11015 cat > conftest.$ac_ext <<EOF
11016 #line 11017 "configure"
11017 #include "confdefs.h"
11018 #define _LARGE_FILES 1
11019 #include <sys/types.h>
11020 int main() {
11021 typedef struct {
11022 unsigned int field: sizeof(off_t) == 8;
11023 } wxlf;
11024
11025 ; return 0; }
11026 EOF
11027 if { (eval echo configure:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11028 rm -rf conftest*
11029 ac_cv_sys_large_files=1
11030 else
11031 echo "configure: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 rm -rf conftest*
11034 ac_cv_sys_large_files=no
11035 fi
11036 rm -f conftest*
11037
11038
11039 fi
11040
11041 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
11042
11043 if test "$ac_cv_sys_large_files" != no; then
11044 wx_largefile=yes
11045 cat >> confdefs.h <<EOF
11046 #define _LARGE_FILES $ac_cv_sys_large_files
11047 EOF
11048
11049 fi
11050
11051 fi
11052
11053 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
11054 echo "configure:11055: checking if large file support is available" >&5
11055 if test "x$wx_largefile" = "xyes"; then
11056 cat >> confdefs.h <<\EOF
11057 #define HAVE_LARGEFILE_SUPPORT 1
11058 EOF
11059
11060 fi
11061 echo "$ac_t""$wx_largefile" 1>&6
11062 fi
11063
11064
11065 if test "x$wx_largefile" = "xyes"; then
11066 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
11067 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
11068 else
11069 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
11070 fi
11071 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
11072 fi
11073
11074 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11075 echo "configure:11076: checking whether byte ordering is bigendian" >&5
11076 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11077 echo $ac_n "(cached) $ac_c" 1>&6
11078 else
11079 ac_cv_c_bigendian=unknown
11080 # See if sys/param.h defines the BYTE_ORDER macro.
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 #include <sys/types.h>
11085 #include <sys/param.h>
11086 int main() {
11087
11088 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11089 bogus endian macros
11090 #endif
11091 ; return 0; }
11092 EOF
11093 if { (eval echo configure:11094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11094 rm -rf conftest*
11095 # It does; now see whether it defined to BIG_ENDIAN or not.
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11099 #include <sys/types.h>
11100 #include <sys/param.h>
11101 int main() {
11102
11103 #if BYTE_ORDER != BIG_ENDIAN
11104 not big endian
11105 #endif
11106 ; return 0; }
11107 EOF
11108 if { (eval echo configure:11109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11109 rm -rf conftest*
11110 ac_cv_c_bigendian=yes
11111 else
11112 echo "configure: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 rm -rf conftest*
11115 ac_cv_c_bigendian=no
11116 fi
11117 rm -f conftest*
11118 else
11119 echo "configure: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 fi
11122 rm -f conftest*
11123 if test $ac_cv_c_bigendian = unknown; then
11124 if test "$cross_compiling" = yes; then
11125 ac_cv_c_bigendian=unknown
11126 else
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 main () {
11131 /* Are we little or big endian? From Harbison&Steele. */
11132 union
11133 {
11134 long l;
11135 char c[sizeof (long)];
11136 } u;
11137 u.l = 1;
11138 exit (u.c[sizeof (long) - 1] == 1);
11139 }
11140 EOF
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11142 then
11143 ac_cv_c_bigendian=no
11144 else
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 rm -fr conftest*
11148 ac_cv_c_bigendian=yes
11149 fi
11150 rm -fr conftest*
11151 fi
11152
11153 fi
11154 fi
11155
11156 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11157 if test $ac_cv_c_bigendian = unknown; then
11158 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
11159 fi
11160 if test $ac_cv_c_bigendian = yes; then
11161 cat >> confdefs.h <<\EOF
11162 #define WORDS_BIGENDIAN 1
11163 EOF
11164
11165 fi
11166
11167
11168 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11169 echo "configure:11170: checking how to run the C++ preprocessor" >&5
11170 if test -z "$CXXCPP"; then
11171 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11173 else
11174 ac_ext=C
11175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11176 ac_cpp='$CXXCPP $CPPFLAGS'
11177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11179 cross_compiling=$ac_cv_prog_cxx_cross
11180 CXXCPP="${CXX-g++} -E"
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11184 #include <stdlib.h>
11185 EOF
11186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11187 { (eval echo configure:11188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11189 if test -z "$ac_err"; then
11190 :
11191 else
11192 echo "$ac_err" >&5
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11195 rm -rf conftest*
11196 CXXCPP=/lib/cpp
11197 fi
11198 rm -f conftest*
11199 ac_cv_prog_CXXCPP="$CXXCPP"
11200 ac_ext=C
11201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11202 ac_cpp='$CXXCPP $CPPFLAGS'
11203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11205 cross_compiling=$ac_cv_prog_cxx_cross
11206 fi
11207 fi
11208 CXXCPP="$ac_cv_prog_CXXCPP"
11209 echo "$ac_t""$CXXCPP" 1>&6
11210
11211
11212 if test "$cross_compiling" = "yes"; then
11213 cat >> confdefs.h <<\EOF
11214 #define wxUSE_IOSTREAMH 1
11215 EOF
11216
11217 else
11218
11219 ac_ext=C
11220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11221 ac_cpp='$CXXCPP $CPPFLAGS'
11222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11224 cross_compiling=$ac_cv_prog_cxx_cross
11225
11226
11227 for ac_hdr in iostream
11228 do
11229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11231 echo "configure:11232: checking for $ac_hdr" >&5
11232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11234 else
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11238 #include <$ac_hdr>
11239 EOF
11240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11241 { (eval echo configure:11242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11243 if test -z "$ac_err"; then
11244 rm -rf conftest*
11245 eval "ac_cv_header_$ac_safe=yes"
11246 else
11247 echo "$ac_err" >&5
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_header_$ac_safe=no"
11252 fi
11253 rm -f conftest*
11254 fi
11255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11256 echo "$ac_t""yes" 1>&6
11257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11258 cat >> confdefs.h <<EOF
11259 #define $ac_tr_hdr 1
11260 EOF
11261
11262 else
11263 echo "$ac_t""no" 1>&6
11264 fi
11265 done
11266
11267
11268 if test "$ac_cv_header_iostream" = "yes" ; then
11269 :
11270 else
11271 cat >> confdefs.h <<\EOF
11272 #define wxUSE_IOSTREAMH 1
11273 EOF
11274
11275 fi
11276
11277 ac_ext=c
11278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11279 ac_cpp='$CPP $CPPFLAGS'
11280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11282 cross_compiling=$ac_cv_prog_cc_cross
11283
11284 fi
11285
11286
11287
11288 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11289 echo "configure:11290: checking if C++ compiler supports bool" >&5
11290 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11293
11294
11295 ac_ext=C
11296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11297 ac_cpp='$CXXCPP $CPPFLAGS'
11298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300 cross_compiling=$ac_cv_prog_cxx_cross
11301
11302
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11306
11307
11308 int main() {
11309
11310 bool b = true;
11311
11312 return 0;
11313
11314 ; return 0; }
11315 EOF
11316 if { (eval echo configure:11317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11317 rm -rf conftest*
11318
11319 wx_cv_cpp_bool=yes
11320
11321 else
11322 echo "configure: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 rm -rf conftest*
11325
11326 wx_cv_cpp_bool=no
11327
11328
11329 fi
11330 rm -f conftest*
11331
11332 ac_ext=c
11333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11337 cross_compiling=$ac_cv_prog_cc_cross
11338
11339
11340 fi
11341
11342 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11343
11344 if test "$wx_cv_cpp_bool" = "yes"; then
11345 cat >> confdefs.h <<\EOF
11346 #define HAVE_BOOL 1
11347 EOF
11348
11349 fi
11350
11351
11352
11353 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11354 echo "configure:11355: checking if C++ compiler supports the explicit keyword" >&5
11355 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11356 echo $ac_n "(cached) $ac_c" 1>&6
11357 else
11358
11359
11360 ac_ext=C
11361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11362 ac_cpp='$CXXCPP $CPPFLAGS'
11363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11365 cross_compiling=$ac_cv_prog_cxx_cross
11366
11367
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371
11372 class Foo { public: explicit Foo(int) {} };
11373
11374 int main() {
11375
11376 return 0;
11377
11378 ; return 0; }
11379 EOF
11380 if { (eval echo configure:11381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11381 rm -rf conftest*
11382
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11386
11387 class Foo { public: explicit Foo(int) {} };
11388 static void TakeFoo(const Foo& foo) { }
11389
11390 int main() {
11391
11392 TakeFoo(17);
11393 return 0;
11394
11395 ; return 0; }
11396 EOF
11397 if { (eval echo configure:11398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11398 rm -rf conftest*
11399 wx_cv_explicit=no
11400 else
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 rm -rf conftest*
11404 wx_cv_explicit=yes
11405
11406 fi
11407 rm -f conftest*
11408
11409 else
11410 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11412 rm -rf conftest*
11413 wx_cv_explicit=no
11414
11415 fi
11416 rm -f conftest*
11417
11418 ac_ext=c
11419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11423 cross_compiling=$ac_cv_prog_cc_cross
11424
11425
11426 fi
11427
11428 echo "$ac_t""$wx_cv_explicit" 1>&6
11429
11430 if test "$wx_cv_explicit" = "yes"; then
11431 cat >> confdefs.h <<\EOF
11432 #define HAVE_EXPLICIT 1
11433 EOF
11434
11435 fi
11436
11437
11438 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11439 echo "configure:11440: checking whether the compiler supports const_cast<>" >&5
11440 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11441 echo $ac_n "(cached) $ac_c" 1>&6
11442 else
11443
11444 ac_ext=C
11445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11446 ac_cpp='$CXXCPP $CPPFLAGS'
11447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11449 cross_compiling=$ac_cv_prog_cxx_cross
11450
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454
11455 int main() {
11456 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11457 ; return 0; }
11458 EOF
11459 if { (eval echo configure:11460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11460 rm -rf conftest*
11461 ac_cv_cxx_const_cast=yes
11462 else
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 rm -rf conftest*
11466 ac_cv_cxx_const_cast=no
11467 fi
11468 rm -f conftest*
11469 ac_ext=c
11470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11471 ac_cpp='$CPP $CPPFLAGS'
11472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11474 cross_compiling=$ac_cv_prog_cc_cross
11475
11476
11477 fi
11478
11479 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11480 if test "$ac_cv_cxx_const_cast" = yes; then
11481 cat >> confdefs.h <<\EOF
11482 #define HAVE_CONST_CAST
11483 EOF
11484
11485 fi
11486
11487
11488
11489 SEARCH_INCLUDE="\
11490 /usr/local/include \
11491 \
11492 /usr/Motif-1.2/include \
11493 /usr/Motif-2.1/include \
11494 \
11495 /usr/include/Motif1.2 \
11496 /opt/xpm/include/X11 \
11497 /opt/GBxpm/include/ \
11498 /opt/GBxpm/X11/include/ \
11499 \
11500 /usr/Motif1.2/include \
11501 /usr/dt/include \
11502 /usr/openwin/include \
11503 \
11504 /usr/include/Xm \
11505 \
11506 /usr/X11R6/include \
11507 /usr/X11R6.4/include \
11508 /usr/X11R5/include \
11509 /usr/X11R4/include \
11510 \
11511 /usr/include/X11R6 \
11512 /usr/include/X11R5 \
11513 /usr/include/X11R4 \
11514 \
11515 /usr/local/X11R6/include \
11516 /usr/local/X11R5/include \
11517 /usr/local/X11R4/include \
11518 \
11519 /usr/local/include/X11R6 \
11520 /usr/local/include/X11R5 \
11521 /usr/local/include/X11R4 \
11522 \
11523 /usr/X11/include \
11524 /usr/include/X11 \
11525 /usr/local/X11/include \
11526 /usr/local/include/X11 \
11527 \
11528 /usr/X386/include \
11529 /usr/x386/include \
11530 /usr/XFree86/include/X11 \
11531 \
11532 X:/XFree86/include \
11533 X:/XFree86/include/X11 \
11534 \
11535 /usr/include/gtk \
11536 /usr/local/include/gtk \
11537 /usr/include/glib \
11538 /usr/local/include/glib \
11539 \
11540 /usr/include/qt \
11541 /usr/local/include/qt \
11542 \
11543 /usr/include/windows \
11544 /usr/include/wine \
11545 /usr/local/include/wine \
11546 \
11547 /usr/unsupported/include \
11548 /usr/athena/include \
11549 /usr/local/x11r5/include \
11550 /usr/lpp/Xamples/include \
11551 \
11552 /usr/openwin/share/include"
11553
11554 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11555
11556
11557 cat > confcache <<\EOF
11558 # This file is a shell script that caches the results of configure
11559 # tests run on this system so they can be shared between configure
11560 # scripts and configure runs. It is not useful on other systems.
11561 # If it contains results you don't want to keep, you may remove or edit it.
11562 #
11563 # By default, configure uses ./config.cache as the cache file,
11564 # creating it if it does not exist already. You can give configure
11565 # the --cache-file=FILE option to use a different cache file; that is
11566 # what configure does when it calls configure scripts in
11567 # subdirectories, so they share the cache.
11568 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11569 # config.status only pays attention to the cache file if you give it the
11570 # --recheck option to rerun configure.
11571 #
11572 EOF
11573 # The following way of writing the cache mishandles newlines in values,
11574 # but we know of no workaround that is simple, portable, and efficient.
11575 # So, don't put newlines in cache variables' values.
11576 # Ultrix sh set writes to stderr and can't be redirected directly,
11577 # and sets the high bit in the cache file unless we assign to the vars.
11578 (set) 2>&1 |
11579 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11580 *ac_space=\ *)
11581 # `set' does not quote correctly, so add quotes (double-quote substitution
11582 # turns \\\\ into \\, and sed turns \\ into \).
11583 sed -n \
11584 -e "s/'/'\\\\''/g" \
11585 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11586 ;;
11587 *)
11588 # `set' quotes correctly as required by POSIX, so do not add quotes.
11589 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11590 ;;
11591 esac >> confcache
11592 if cmp -s $cache_file confcache; then
11593 :
11594 else
11595 if test -w $cache_file; then
11596 echo "updating cache $cache_file"
11597 cat confcache > $cache_file
11598 else
11599 echo "not updating unwritable cache $cache_file"
11600 fi
11601 fi
11602 rm -f confcache
11603
11604
11605 if test "$USE_LINUX" = 1; then
11606 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11607 echo "configure:11608: checking for glibc 2.1 or later" >&5
11608 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11610 else
11611
11612 cat > conftest.$ac_ext <<EOF
11613 #line 11614 "configure"
11614 #include "confdefs.h"
11615 #include <features.h>
11616 int main() {
11617
11618 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11619 #error not glibc2.1
11620 #endif
11621
11622 ; return 0; }
11623 EOF
11624 if { (eval echo configure:11625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11625 rm -rf conftest*
11626
11627 wx_cv_lib_glibc21=yes
11628
11629 else
11630 echo "configure: failed program was:" >&5
11631 cat conftest.$ac_ext >&5
11632 rm -rf conftest*
11633
11634 wx_cv_lib_glibc21=no
11635
11636
11637 fi
11638 rm -f conftest*
11639
11640 fi
11641
11642 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11643 if test "$wx_cv_lib_glibc21" = "yes"; then
11644 cat >> confdefs.h <<\EOF
11645 #define wxHAVE_GLIBC2 1
11646 EOF
11647
11648 fi
11649 fi
11650
11651 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11652 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11653 cat >> confdefs.h <<\EOF
11654 #define _GNU_SOURCE 1
11655 EOF
11656
11657 fi
11658 fi
11659
11660
11661
11662 REGEX_INCLUDE=
11663 if test "$wxUSE_REGEX" != "no"; then
11664 cat >> confdefs.h <<\EOF
11665 #define wxUSE_REGEX 1
11666 EOF
11667
11668
11669 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11670 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11671 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11672 echo "configure:11673: checking for regex.h" >&5
11673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11674 echo $ac_n "(cached) $ac_c" 1>&6
11675 else
11676 cat > conftest.$ac_ext <<EOF
11677 #line 11678 "configure"
11678 #include "confdefs.h"
11679 #include <regex.h>
11680 EOF
11681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11682 { (eval echo configure:11683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11684 if test -z "$ac_err"; then
11685 rm -rf conftest*
11686 eval "ac_cv_header_$ac_safe=yes"
11687 else
11688 echo "$ac_err" >&5
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 rm -rf conftest*
11692 eval "ac_cv_header_$ac_safe=no"
11693 fi
11694 rm -f conftest*
11695 fi
11696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11697 echo "$ac_t""yes" 1>&6
11698 for ac_func in regcomp
11699 do
11700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11701 echo "configure:11702: checking for $ac_func" >&5
11702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11704 else
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11708 /* System header to define __stub macros and hopefully few prototypes,
11709 which can conflict with char $ac_func(); below. */
11710 #include <assert.h>
11711 /* Override any gcc2 internal prototype to avoid an error. */
11712 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */
11714 char $ac_func();
11715
11716 int main() {
11717
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11722 choke me
11723 #else
11724 $ac_func();
11725 #endif
11726
11727 ; return 0; }
11728 EOF
11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11730 rm -rf conftest*
11731 eval "ac_cv_func_$ac_func=yes"
11732 else
11733 echo "configure: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11735 rm -rf conftest*
11736 eval "ac_cv_func_$ac_func=no"
11737 fi
11738 rm -f conftest*
11739 fi
11740
11741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11742 echo "$ac_t""yes" 1>&6
11743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11744 cat >> confdefs.h <<EOF
11745 #define $ac_tr_func 1
11746 EOF
11747
11748 else
11749 echo "$ac_t""no" 1>&6
11750 fi
11751 done
11752
11753 else
11754 echo "$ac_t""no" 1>&6
11755 fi
11756
11757
11758 if test "x$ac_cv_func_regcomp" != "xyes"; then
11759 if test "$wxUSE_REGEX" = "sys" ; then
11760 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11761 else
11762 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11763 wxUSE_REGEX=builtin
11764 fi
11765 else
11766 wxUSE_REGEX=sys
11767 fi
11768 fi
11769
11770 if test "$wxUSE_REGEX" = "builtin" ; then
11771 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11772 fi
11773 fi
11774
11775
11776 ZLIB_INCLUDE=
11777 ZLIB_LINK=
11778 if test "$wxUSE_ZLIB" != "no" ; then
11779 cat >> confdefs.h <<\EOF
11780 #define wxUSE_ZLIB 1
11781 EOF
11782
11783
11784 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11785 if test "$USE_DARWIN" = 1; then
11786 system_zlib_h_ok="yes"
11787 else
11788 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11789 echo "configure:11790: checking for zlib.h >= 1.1.4" >&5
11790 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11792 else
11793 if test "$cross_compiling" = yes; then
11794 unset ac_cv_header_zlib_h
11795
11796 else
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800
11801 #include <zlib.h>
11802 #include <stdio.h>
11803
11804
11805 int main()
11806 {
11807 FILE *f=fopen("conftestval", "w");
11808 if (!f) exit(1);
11809 fprintf(f, "%s",
11810 ZLIB_VERSION[0] == '1' &&
11811 (ZLIB_VERSION[2] > '1' ||
11812 (ZLIB_VERSION[2] == '1' &&
11813 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11814 exit(0);
11815 }
11816
11817
11818 EOF
11819 if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11820 then
11821 ac_cv_header_zlib_h=`cat conftestval`
11822 else
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11825 rm -fr conftest*
11826 ac_cv_header_zlib_h=no
11827 fi
11828 rm -fr conftest*
11829 fi
11830
11831
11832 fi
11833
11834 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11835 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11836 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11837 echo "configure:11838: checking for zlib.h" >&5
11838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840 else
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 #include <zlib.h>
11845 EOF
11846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11847 { (eval echo configure:11848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11849 if test -z "$ac_err"; then
11850 rm -rf conftest*
11851 eval "ac_cv_header_$ac_safe=yes"
11852 else
11853 echo "$ac_err" >&5
11854 echo "configure: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11856 rm -rf conftest*
11857 eval "ac_cv_header_$ac_safe=no"
11858 fi
11859 rm -f conftest*
11860 fi
11861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11862 echo "$ac_t""yes" 1>&6
11863 :
11864 else
11865 echo "$ac_t""no" 1>&6
11866 fi
11867
11868
11869 system_zlib_h_ok=$ac_cv_header_zlib_h
11870 fi
11871
11872 if test "$system_zlib_h_ok" = "yes"; then
11873 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11874 echo "configure:11875: checking for deflate in -lz" >&5
11875 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11877 echo $ac_n "(cached) $ac_c" 1>&6
11878 else
11879 ac_save_LIBS="$LIBS"
11880 LIBS="-lz $LIBS"
11881 cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11884 /* Override any gcc2 internal prototype to avoid an error. */
11885 /* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11887 char deflate();
11888
11889 int main() {
11890 deflate()
11891 ; return 0; }
11892 EOF
11893 if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11894 rm -rf conftest*
11895 eval "ac_cv_lib_$ac_lib_var=yes"
11896 else
11897 echo "configure: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 rm -rf conftest*
11900 eval "ac_cv_lib_$ac_lib_var=no"
11901 fi
11902 rm -f conftest*
11903 LIBS="$ac_save_LIBS"
11904
11905 fi
11906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11907 echo "$ac_t""yes" 1>&6
11908 ZLIB_LINK=" -lz"
11909 else
11910 echo "$ac_t""no" 1>&6
11911 fi
11912
11913 fi
11914
11915 if test "x$ZLIB_LINK" = "x" ; then
11916 if test "$wxUSE_ZLIB" = "sys" ; then
11917 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11918 else
11919 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11920 wxUSE_ZLIB=builtin
11921 fi
11922 else
11923 wxUSE_ZLIB=sys
11924 fi
11925 fi
11926
11927 if test "$wxUSE_ZLIB" = "builtin" ; then
11928 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11929 fi
11930 fi
11931
11932
11933 PNG_INCLUDE=
11934 PNG_LINK=
11935 if test "$wxUSE_LIBPNG" != "no" ; then
11936 cat >> confdefs.h <<\EOF
11937 #define wxUSE_LIBPNG 1
11938 EOF
11939
11940
11941 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11942 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11943 wxUSE_LIBPNG=sys
11944 fi
11945
11946 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11947 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11948 wxUSE_LIBPNG=builtin
11949 fi
11950
11951 if test "$wxUSE_MGL" != 1 ; then
11952 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11953 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11954 echo "configure:11955: checking for png.h > 0.90" >&5
11955 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11957 else
11958 if test "$cross_compiling" = yes; then
11959 unset ac_cv_header_png_h
11960
11961 else
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965
11966 #include <png.h>
11967 #include <stdio.h>
11968
11969 int main()
11970 {
11971 FILE *f=fopen("conftestval", "w");
11972 if (!f) exit(1);
11973 fprintf(f, "%s",
11974 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11975 exit(0);
11976 }
11977
11978 EOF
11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11980 then
11981 ac_cv_header_png_h=`cat conftestval`
11982 else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -fr conftest*
11986 ac_cv_header_png_h=no
11987 fi
11988 rm -fr conftest*
11989 fi
11990
11991
11992 fi
11993
11994 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11995 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11996 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11997 echo "configure:11998: checking for png.h" >&5
11998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11999 echo $ac_n "(cached) $ac_c" 1>&6
12000 else
12001 cat > conftest.$ac_ext <<EOF
12002 #line 12003 "configure"
12003 #include "confdefs.h"
12004 #include <png.h>
12005 EOF
12006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12007 { (eval echo configure:12008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12009 if test -z "$ac_err"; then
12010 rm -rf conftest*
12011 eval "ac_cv_header_$ac_safe=yes"
12012 else
12013 echo "$ac_err" >&5
12014 echo "configure: failed program was:" >&5
12015 cat conftest.$ac_ext >&5
12016 rm -rf conftest*
12017 eval "ac_cv_header_$ac_safe=no"
12018 fi
12019 rm -f conftest*
12020 fi
12021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12022 echo "$ac_t""yes" 1>&6
12023 :
12024 else
12025 echo "$ac_t""no" 1>&6
12026 fi
12027
12028
12029 if test "$ac_cv_header_png_h" = "yes"; then
12030 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
12031 echo "configure:12032: checking for png_check_sig in -lpng" >&5
12032 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12035 else
12036 ac_save_LIBS="$LIBS"
12037 LIBS="-lpng -lz -lm $LIBS"
12038 cat > conftest.$ac_ext <<EOF
12039 #line 12040 "configure"
12040 #include "confdefs.h"
12041 /* Override any gcc2 internal prototype to avoid an error. */
12042 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12044 char png_check_sig();
12045
12046 int main() {
12047 png_check_sig()
12048 ; return 0; }
12049 EOF
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12051 rm -rf conftest*
12052 eval "ac_cv_lib_$ac_lib_var=yes"
12053 else
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 rm -rf conftest*
12057 eval "ac_cv_lib_$ac_lib_var=no"
12058 fi
12059 rm -f conftest*
12060 LIBS="$ac_save_LIBS"
12061
12062 fi
12063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12064 echo "$ac_t""yes" 1>&6
12065 PNG_LINK=" -lpng"
12066 else
12067 echo "$ac_t""no" 1>&6
12068 fi
12069
12070 fi
12071
12072 if test "x$PNG_LINK" = "x" ; then
12073 if test "$wxUSE_LIBPNG" = "sys" ; then
12074 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
12075 else
12076 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
12077 wxUSE_LIBPNG=builtin
12078 fi
12079 else
12080 wxUSE_LIBPNG=sys
12081 fi
12082 fi
12083 fi
12084
12085 if test "$wxUSE_LIBPNG" = "builtin" ; then
12086 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12087 fi
12088
12089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12090 fi
12091
12092
12093 JPEG_INCLUDE=
12094 JPEG_LINK=
12095 if test "$wxUSE_LIBJPEG" != "no" ; then
12096 cat >> confdefs.h <<\EOF
12097 #define wxUSE_LIBJPEG 1
12098 EOF
12099
12100
12101 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
12102 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
12103 wxUSE_LIBJPEG=sys
12104 fi
12105
12106 if test "$wxUSE_MGL" != 1 ; then
12107 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
12108 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
12109 echo "configure:12110: checking for jpeglib.h" >&5
12110 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
12112 else
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116
12117 #undef HAVE_STDLIB_H
12118 #include <stdio.h>
12119 #include <jpeglib.h>
12120
12121 int main() {
12122
12123
12124 ; return 0; }
12125 EOF
12126 if { (eval echo configure:12127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12127 rm -rf conftest*
12128 ac_cv_header_jpeglib_h=yes
12129 else
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -rf conftest*
12133 ac_cv_header_jpeglib_h=no
12134
12135 fi
12136 rm -f conftest*
12137
12138 fi
12139
12140 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
12141
12142 if test "$ac_cv_header_jpeglib_h" = "yes"; then
12143 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
12144 echo "configure:12145: checking for jpeg_read_header in -ljpeg" >&5
12145 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12147 echo $ac_n "(cached) $ac_c" 1>&6
12148 else
12149 ac_save_LIBS="$LIBS"
12150 LIBS="-ljpeg $LIBS"
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154 /* Override any gcc2 internal prototype to avoid an error. */
12155 /* We use char because int might match the return type of a gcc2
12156 builtin and then its argument prototype would still apply. */
12157 char jpeg_read_header();
12158
12159 int main() {
12160 jpeg_read_header()
12161 ; return 0; }
12162 EOF
12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12164 rm -rf conftest*
12165 eval "ac_cv_lib_$ac_lib_var=yes"
12166 else
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12169 rm -rf conftest*
12170 eval "ac_cv_lib_$ac_lib_var=no"
12171 fi
12172 rm -f conftest*
12173 LIBS="$ac_save_LIBS"
12174
12175 fi
12176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12177 echo "$ac_t""yes" 1>&6
12178 JPEG_LINK=" -ljpeg"
12179 else
12180 echo "$ac_t""no" 1>&6
12181 fi
12182
12183 fi
12184
12185 if test "x$JPEG_LINK" = "x" ; then
12186 if test "$wxUSE_LIBJPEG" = "sys" ; then
12187 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12188 else
12189 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12190 wxUSE_LIBJPEG=builtin
12191 fi
12192 else
12193 wxUSE_LIBJPEG=sys
12194 fi
12195 fi
12196 fi
12197
12198 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12199 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12200 fi
12201 fi
12202
12203
12204 TIFF_INCLUDE=
12205 TIFF_LINK=
12206 TIFF_PREREQ_LINKS=-lm
12207 if test "$wxUSE_LIBTIFF" != "no" ; then
12208 cat >> confdefs.h <<\EOF
12209 #define wxUSE_LIBTIFF 1
12210 EOF
12211
12212
12213 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12214 if test "$wxUSE_LIBJPEG" = "sys"; then
12215 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12216 fi
12217 if test "$wxUSE_ZLIB" = "sys"; then
12218 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12219 fi
12220 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12221 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12222 echo "configure:12223: checking for tiffio.h" >&5
12223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12225 else
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229 #include <tiffio.h>
12230 EOF
12231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12232 { (eval echo configure:12233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12234 if test -z "$ac_err"; then
12235 rm -rf conftest*
12236 eval "ac_cv_header_$ac_safe=yes"
12237 else
12238 echo "$ac_err" >&5
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 rm -rf conftest*
12242 eval "ac_cv_header_$ac_safe=no"
12243 fi
12244 rm -f conftest*
12245 fi
12246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12247 echo "$ac_t""yes" 1>&6
12248 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12249 echo "configure:12250: checking for TIFFError in -ltiff" >&5
12250 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12252 echo $ac_n "(cached) $ac_c" 1>&6
12253 else
12254 ac_save_LIBS="$LIBS"
12255 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12256 cat > conftest.$ac_ext <<EOF
12257 #line 12258 "configure"
12258 #include "confdefs.h"
12259 /* Override any gcc2 internal prototype to avoid an error. */
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12262 char TIFFError();
12263
12264 int main() {
12265 TIFFError()
12266 ; return 0; }
12267 EOF
12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12269 rm -rf conftest*
12270 eval "ac_cv_lib_$ac_lib_var=yes"
12271 else
12272 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274 rm -rf conftest*
12275 eval "ac_cv_lib_$ac_lib_var=no"
12276 fi
12277 rm -f conftest*
12278 LIBS="$ac_save_LIBS"
12279
12280 fi
12281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12282 echo "$ac_t""yes" 1>&6
12283 TIFF_LINK=" -ltiff"
12284 else
12285 echo "$ac_t""no" 1>&6
12286 fi
12287
12288
12289 else
12290 echo "$ac_t""no" 1>&6
12291 fi
12292
12293
12294 if test "x$TIFF_LINK" = "x" ; then
12295 if test "$wxUSE_LIBTIFF" = "sys" ; then
12296 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12297 else
12298 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12299 wxUSE_LIBTIFF=builtin
12300 fi
12301 else
12302 wxUSE_LIBTIFF=sys
12303 fi
12304 fi
12305
12306 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12307 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12308 fi
12309 fi
12310
12311
12312 AFMINSTALL=
12313 WIN32INSTALL=
12314
12315 TOOLKIT=
12316 TOOLKIT_INCLUDE=
12317 WIDGET_SET=
12318
12319 if test "$USE_WIN32" = 1 ; then
12320 for ac_hdr in w32api.h
12321 do
12322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12324 echo "configure:12325: checking for $ac_hdr" >&5
12325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12326 echo $ac_n "(cached) $ac_c" 1>&6
12327 else
12328 cat > conftest.$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12331 #include <$ac_hdr>
12332 EOF
12333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12334 { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12336 if test -z "$ac_err"; then
12337 rm -rf conftest*
12338 eval "ac_cv_header_$ac_safe=yes"
12339 else
12340 echo "$ac_err" >&5
12341 echo "configure: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12343 rm -rf conftest*
12344 eval "ac_cv_header_$ac_safe=no"
12345 fi
12346 rm -f conftest*
12347 fi
12348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12349 echo "$ac_t""yes" 1>&6
12350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12351 cat >> confdefs.h <<EOF
12352 #define $ac_tr_hdr 1
12353 EOF
12354
12355 else
12356 echo "$ac_t""no" 1>&6
12357 fi
12358 done
12359
12360 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12361 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12362 echo "configure:12363: checking for windows.h" >&5
12363 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12365 else
12366 cat > conftest.$ac_ext <<EOF
12367 #line 12368 "configure"
12368 #include "confdefs.h"
12369 #include <windows.h>
12370 EOF
12371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12372 { (eval echo configure:12373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12374 if test -z "$ac_err"; then
12375 rm -rf conftest*
12376 eval "ac_cv_header_$ac_safe=yes"
12377 else
12378 echo "$ac_err" >&5
12379 echo "configure: failed program was:" >&5
12380 cat conftest.$ac_ext >&5
12381 rm -rf conftest*
12382 eval "ac_cv_header_$ac_safe=no"
12383 fi
12384 rm -f conftest*
12385 fi
12386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12387 echo "$ac_t""yes" 1>&6
12388 :
12389 else
12390 echo "$ac_t""no" 1>&6
12391
12392 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12393
12394 fi
12395
12396
12397 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12398 echo "configure:12399: checking if w32api has good enough MSIE support" >&5
12399 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401 else
12402
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 #include <w32api.h>
12407 int main() {
12408
12409 #define wxCHECK_W32API_VERSION( major, minor ) \
12410 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12411 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12412 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12413
12414 #if !wxCHECK_W32API_VERSION(1,1)
12415 #error You need w32api 1.1 or newer
12416 #endif
12417
12418 ; return 0; }
12419 EOF
12420 if { (eval echo configure:12421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12421 rm -rf conftest*
12422
12423 wx_cv_w32api_win32_ie=yes
12424
12425 else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -rf conftest*
12429
12430 wx_cv_w32api_win32_ie=no
12431
12432 fi
12433 rm -f conftest*
12434
12435 fi
12436
12437 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12438 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12439 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12440 fi
12441
12442 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12443
12444 case "${host}" in
12445 *-*-cygwin* )
12446 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12447 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12448 esac
12449
12450 if test "$wxUSE_ODBC" = "yes" ; then
12451 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12452 fi
12453
12454 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12455 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12456
12457 WIN32INSTALL=win32install
12458 fi
12459
12460 if test "$USE_DARWIN" = 1; then
12461 if test "$wxUSE_PRECOMP" = "yes"; then
12462 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12463 else
12464 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12465 fi
12466 fi
12467
12468 if test "$wxUSE_GUI" = "yes"; then
12469 USE_GUI=1
12470
12471 GUI_TK_LIBRARY=
12472
12473 WXGTK12=
12474 WXGTK127=
12475 WXGTK20=
12476
12477 if test "$wxUSE_MSW" = 1 ; then
12478 TOOLKIT=MSW
12479 GUIDIST=MSW_DIST
12480
12481 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12482 fi
12483
12484 if test "$wxUSE_GTK" = 1; then
12485 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12486 echo "configure:12487: checking for GTK+ version" >&5
12487
12488 gtk_version_cached=1
12489 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12490 echo $ac_n "(cached) $ac_c" 1>&6
12491 else
12492
12493 gtk_version_cached=0
12494 echo "$ac_t""" 1>&6
12495
12496 GTK_MODULES=
12497 if test "$wxUSE_THREADS" = "yes"; then
12498 GTK_MODULES=gthread
12499 fi
12500
12501 wx_cv_lib_gtk=
12502 if test "x$wxUSE_GTK2" = "xyes"; then
12503 # Check whether --enable-gtktest or --disable-gtktest was given.
12504 if test "${enable_gtktest+set}" = set; then
12505 enableval="$enable_gtktest"
12506 :
12507 else
12508 enable_gtktest=yes
12509 fi
12510
12511
12512 pkg_config_args=gtk+-2.0
12513 for module in . $GTK_MODULES
12514 do
12515 case "$module" in
12516 gthread)
12517 pkg_config_args="$pkg_config_args gthread-2.0"
12518 ;;
12519 esac
12520 done
12521
12522 no_gtk=""
12523
12524 # Extract the first word of "pkg-config", so it can be a program name with args.
12525 set dummy pkg-config; ac_word=$2
12526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12527 echo "configure:12528: checking for $ac_word" >&5
12528 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530 else
12531 case "$PKG_CONFIG" in
12532 /*)
12533 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12534 ;;
12535 ?:/*)
12536 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12537 ;;
12538 *)
12539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12540 ac_dummy="$PATH"
12541 for ac_dir in $ac_dummy; do
12542 test -z "$ac_dir" && ac_dir=.
12543 if test -f $ac_dir/$ac_word; then
12544 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12545 break
12546 fi
12547 done
12548 IFS="$ac_save_ifs"
12549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12550 ;;
12551 esac
12552 fi
12553 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12554 if test -n "$PKG_CONFIG"; then
12555 echo "$ac_t""$PKG_CONFIG" 1>&6
12556 else
12557 echo "$ac_t""no" 1>&6
12558 fi
12559
12560
12561 if test x$PKG_CONFIG != xno ; then
12562 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12563 :
12564 else
12565 echo *** pkg-config too old; version 0.7 or better required.
12566 no_gtk=yes
12567 PKG_CONFIG=no
12568 fi
12569 else
12570 no_gtk=yes
12571 fi
12572
12573 min_gtk_version=2.0.0
12574 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12575 echo "configure:12576: checking for GTK+ - version >= $min_gtk_version" >&5
12576
12577 if test x$PKG_CONFIG != xno ; then
12578 ## don't try to run the test against uninstalled libtool libs
12579 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12580 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12581 enable_gtktest=no
12582 fi
12583
12584 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12585 :
12586 else
12587 no_gtk=yes
12588 fi
12589 fi
12590
12591 if test x"$no_gtk" = x ; then
12592 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12593 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12594 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12595 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12596 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12597 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12598 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12599 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12600 if test "x$enable_gtktest" = "xyes" ; then
12601 ac_save_CFLAGS="$CFLAGS"
12602 ac_save_LIBS="$LIBS"
12603 CFLAGS="$CFLAGS $GTK_CFLAGS"
12604 LIBS="$GTK_LIBS $LIBS"
12605 rm -f conf.gtktest
12606 if test "$cross_compiling" = yes; then
12607 echo $ac_n "cross compiling; assumed OK... $ac_c"
12608 else
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612
12613 #include <gtk/gtk.h>
12614 #include <stdio.h>
12615 #include <stdlib.h>
12616
12617 int
12618 main ()
12619 {
12620 int major, minor, micro;
12621 char *tmp_version;
12622
12623 system ("touch conf.gtktest");
12624
12625 /* HP/UX 9 (%@#!) writes to sscanf strings */
12626 tmp_version = g_strdup("$min_gtk_version");
12627 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12628 printf("%s, bad version string\n", "$min_gtk_version");
12629 exit(1);
12630 }
12631
12632 if ((gtk_major_version != $gtk_config_major_version) ||
12633 (gtk_minor_version != $gtk_config_minor_version) ||
12634 (gtk_micro_version != $gtk_config_micro_version))
12635 {
12636 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12637 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12638 gtk_major_version, gtk_minor_version, gtk_micro_version);
12639 printf ("*** was found! If pkg-config was correct, then it is best\n");
12640 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12641 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12642 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12643 printf("*** required on your system.\n");
12644 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12645 printf("*** to point to the correct configuration files\n");
12646 }
12647 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12648 (gtk_minor_version != GTK_MINOR_VERSION) ||
12649 (gtk_micro_version != GTK_MICRO_VERSION))
12650 {
12651 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12652 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12653 printf("*** library (version %d.%d.%d)\n",
12654 gtk_major_version, gtk_minor_version, gtk_micro_version);
12655 }
12656 else
12657 {
12658 if ((gtk_major_version > major) ||
12659 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12660 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12661 {
12662 return 0;
12663 }
12664 else
12665 {
12666 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12667 gtk_major_version, gtk_minor_version, gtk_micro_version);
12668 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12669 major, minor, micro);
12670 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12671 printf("***\n");
12672 printf("*** If you have already installed a sufficiently new version, this error\n");
12673 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12674 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12675 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12676 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12677 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12678 printf("*** so that the correct libraries are found at run-time))\n");
12679 }
12680 }
12681 return 1;
12682 }
12683
12684 EOF
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12686 then
12687 :
12688 else
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 rm -fr conftest*
12692 no_gtk=yes
12693 fi
12694 rm -fr conftest*
12695 fi
12696
12697 CFLAGS="$ac_save_CFLAGS"
12698 LIBS="$ac_save_LIBS"
12699 fi
12700 fi
12701 if test "x$no_gtk" = x ; then
12702 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12703 wx_cv_lib_gtk=2.0
12704 else
12705 echo "$ac_t""no" 1>&6
12706 if test "$PKG_CONFIG" = "no" ; then
12707 echo "*** A new enough version of pkg-config was not found."
12708 echo "*** See http://pkgconfig.sourceforge.net"
12709 else
12710 if test -f conf.gtktest ; then
12711 :
12712 else
12713 echo "*** Could not run GTK+ test program, checking why..."
12714 ac_save_CFLAGS="$CFLAGS"
12715 ac_save_LIBS="$LIBS"
12716 CFLAGS="$CFLAGS $GTK_CFLAGS"
12717 LIBS="$LIBS $GTK_LIBS"
12718 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12721
12722 #include <gtk/gtk.h>
12723 #include <stdio.h>
12724
12725 int main() {
12726 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12727 ; return 0; }
12728 EOF
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12730 rm -rf conftest*
12731 echo "*** The test program compiled, but did not run. This usually means"
12732 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12733 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12734 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12735 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12736 echo "*** is required on your system"
12737 echo "***"
12738 echo "*** If you have an old version installed, it is best to remove it, although"
12739 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12740 else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 echo "*** The test program failed to compile or link. See the file config.log for the"
12745 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12746 fi
12747 rm -f conftest*
12748 CFLAGS="$ac_save_CFLAGS"
12749 LIBS="$ac_save_LIBS"
12750 fi
12751 fi
12752 GTK_CFLAGS=""
12753 GTK_LIBS=""
12754 :
12755 fi
12756
12757
12758 rm -f conf.gtktest
12759
12760 else
12761 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12762 if test "${with_gtk_prefix+set}" = set; then
12763 withval="$with_gtk_prefix"
12764 gtk_config_prefix="$withval"
12765 else
12766 gtk_config_prefix=""
12767 fi
12768
12769 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12770 if test "${with_gtk_exec_prefix+set}" = set; then
12771 withval="$with_gtk_exec_prefix"
12772 gtk_config_exec_prefix="$withval"
12773 else
12774 gtk_config_exec_prefix=""
12775 fi
12776
12777 # Check whether --enable-gtktest or --disable-gtktest was given.
12778 if test "${enable_gtktest+set}" = set; then
12779 enableval="$enable_gtktest"
12780 :
12781 else
12782 enable_gtktest=yes
12783 fi
12784
12785
12786 for module in . $GTK_MODULES
12787 do
12788 case "$module" in
12789 gthread)
12790 gtk_config_args="$gtk_config_args gthread"
12791 ;;
12792 esac
12793 done
12794
12795 if test x$gtk_config_exec_prefix != x ; then
12796 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12797 if test x${GTK_CONFIG+set} != xset ; then
12798 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12799 fi
12800 fi
12801 if test x$gtk_config_prefix != x ; then
12802 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12803 if test x${GTK_CONFIG+set} != xset ; then
12804 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12805 fi
12806 fi
12807
12808 # Extract the first word of "gtk-config", so it can be a program name with args.
12809 set dummy gtk-config; ac_word=$2
12810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12811 echo "configure:12812: checking for $ac_word" >&5
12812 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815 case "$GTK_CONFIG" in
12816 /*)
12817 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12818 ;;
12819 ?:/*)
12820 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12821 ;;
12822 *)
12823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12824 ac_dummy="$PATH"
12825 for ac_dir in $ac_dummy; do
12826 test -z "$ac_dir" && ac_dir=.
12827 if test -f $ac_dir/$ac_word; then
12828 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12829 break
12830 fi
12831 done
12832 IFS="$ac_save_ifs"
12833 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12834 ;;
12835 esac
12836 fi
12837 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12838 if test -n "$GTK_CONFIG"; then
12839 echo "$ac_t""$GTK_CONFIG" 1>&6
12840 else
12841 echo "$ac_t""no" 1>&6
12842 fi
12843
12844 min_gtk_version=1.2.7
12845 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12846 echo "configure:12847: checking for GTK - version >= $min_gtk_version" >&5
12847 no_gtk=""
12848 if test "$GTK_CONFIG" = "no" ; then
12849 no_gtk=yes
12850 else
12851 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12852 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12853 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12854 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12855 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12856 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12857 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12858 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12859 if test "x$enable_gtktest" = "xyes" ; then
12860 ac_save_CFLAGS="$CFLAGS"
12861 ac_save_LIBS="$LIBS"
12862 CFLAGS="$CFLAGS $GTK_CFLAGS"
12863 LIBS="$GTK_LIBS $LIBS"
12864 rm -f conf.gtktest
12865 if test "$cross_compiling" = yes; then
12866 echo $ac_n "cross compiling; assumed OK... $ac_c"
12867 else
12868 cat > conftest.$ac_ext <<EOF
12869 #line 12870 "configure"
12870 #include "confdefs.h"
12871
12872 #include <gtk/gtk.h>
12873 #include <stdio.h>
12874 #include <stdlib.h>
12875
12876 int
12877 main ()
12878 {
12879 int major, minor, micro;
12880 char *tmp_version;
12881
12882 system ("touch conf.gtktest");
12883
12884 /* HP/UX 9 (%@#!) writes to sscanf strings */
12885 tmp_version = g_strdup("$min_gtk_version");
12886 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12887 printf("%s, bad version string\n", "$min_gtk_version");
12888 exit(1);
12889 }
12890
12891 if ((gtk_major_version != $gtk_config_major_version) ||
12892 (gtk_minor_version != $gtk_config_minor_version) ||
12893 (gtk_micro_version != $gtk_config_micro_version))
12894 {
12895 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12896 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12897 gtk_major_version, gtk_minor_version, gtk_micro_version);
12898 printf ("*** was found! If gtk-config was correct, then it is best\n");
12899 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12900 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12901 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12902 printf("*** required on your system.\n");
12903 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12904 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12905 printf("*** before re-running configure\n");
12906 }
12907 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12908 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12909 (gtk_minor_version != GTK_MINOR_VERSION) ||
12910 (gtk_micro_version != GTK_MICRO_VERSION))
12911 {
12912 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12913 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12914 printf("*** library (version %d.%d.%d)\n",
12915 gtk_major_version, gtk_minor_version, gtk_micro_version);
12916 }
12917 #endif /* defined (GTK_MAJOR_VERSION) ... */
12918 else
12919 {
12920 if ((gtk_major_version > major) ||
12921 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12922 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12923 {
12924 return 0;
12925 }
12926 else
12927 {
12928 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12929 gtk_major_version, gtk_minor_version, gtk_micro_version);
12930 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12931 major, minor, micro);
12932 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12933 printf("***\n");
12934 printf("*** If you have already installed a sufficiently new version, this error\n");
12935 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12936 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12937 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12938 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12939 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12940 printf("*** so that the correct libraries are found at run-time))\n");
12941 }
12942 }
12943 return 1;
12944 }
12945
12946 EOF
12947 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12948 then
12949 :
12950 else
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 rm -fr conftest*
12954 no_gtk=yes
12955 fi
12956 rm -fr conftest*
12957 fi
12958
12959 CFLAGS="$ac_save_CFLAGS"
12960 LIBS="$ac_save_LIBS"
12961 fi
12962 fi
12963 if test "x$no_gtk" = x ; then
12964 echo "$ac_t""yes" 1>&6
12965 wx_cv_lib_gtk=1.2.7
12966 else
12967 echo "$ac_t""no" 1>&6
12968 if test "$GTK_CONFIG" = "no" ; then
12969 echo "*** The gtk-config script installed by GTK could not be found"
12970 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12971 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12972 echo "*** full path to gtk-config."
12973 else
12974 if test -f conf.gtktest ; then
12975 :
12976 else
12977 echo "*** Could not run GTK test program, checking why..."
12978 CFLAGS="$CFLAGS $GTK_CFLAGS"
12979 LIBS="$LIBS $GTK_LIBS"
12980 cat > conftest.$ac_ext <<EOF
12981 #line 12982 "configure"
12982 #include "confdefs.h"
12983
12984 #include <gtk/gtk.h>
12985 #include <stdio.h>
12986
12987 int main() {
12988 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12989 ; return 0; }
12990 EOF
12991 if { (eval echo configure:12992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12992 rm -rf conftest*
12993 echo "*** The test program compiled, but did not run. This usually means"
12994 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12995 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12996 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12997 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12998 echo "*** is required on your system"
12999 echo "***"
13000 echo "*** If you have an old version installed, it is best to remove it, although"
13001 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13002 echo "***"
13003 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13004 echo "*** came with the system with the command"
13005 echo "***"
13006 echo "*** rpm --erase --nodeps gtk gtk-devel"
13007 else
13008 echo "configure: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13010 rm -rf conftest*
13011 echo "*** The test program failed to compile or link. See the file config.log for the"
13012 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13013 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13014 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13015 fi
13016 rm -f conftest*
13017 CFLAGS="$ac_save_CFLAGS"
13018 LIBS="$ac_save_LIBS"
13019 fi
13020 fi
13021 GTK_CFLAGS=""
13022 GTK_LIBS=""
13023 :
13024 fi
13025
13026
13027 rm -f conf.gtktest
13028
13029
13030 if test -z "$wx_cv_lib_gtk"; then
13031 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
13032 if test "${with_gtk_prefix+set}" = set; then
13033 withval="$with_gtk_prefix"
13034 gtk_config_prefix="$withval"
13035 else
13036 gtk_config_prefix=""
13037 fi
13038
13039 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
13040 if test "${with_gtk_exec_prefix+set}" = set; then
13041 withval="$with_gtk_exec_prefix"
13042 gtk_config_exec_prefix="$withval"
13043 else
13044 gtk_config_exec_prefix=""
13045 fi
13046
13047 # Check whether --enable-gtktest or --disable-gtktest was given.
13048 if test "${enable_gtktest+set}" = set; then
13049 enableval="$enable_gtktest"
13050 :
13051 else
13052 enable_gtktest=yes
13053 fi
13054
13055
13056 for module in . $GTK_MODULES
13057 do
13058 case "$module" in
13059 gthread)
13060 gtk_config_args="$gtk_config_args gthread"
13061 ;;
13062 esac
13063 done
13064
13065 if test x$gtk_config_exec_prefix != x ; then
13066 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
13067 if test x${GTK_CONFIG+set} != xset ; then
13068 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
13069 fi
13070 fi
13071 if test x$gtk_config_prefix != x ; then
13072 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
13073 if test x${GTK_CONFIG+set} != xset ; then
13074 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
13075 fi
13076 fi
13077
13078 # Extract the first word of "gtk-config", so it can be a program name with args.
13079 set dummy gtk-config; ac_word=$2
13080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13081 echo "configure:13082: checking for $ac_word" >&5
13082 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
13083 echo $ac_n "(cached) $ac_c" 1>&6
13084 else
13085 case "$GTK_CONFIG" in
13086 /*)
13087 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13088 ;;
13089 ?:/*)
13090 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
13091 ;;
13092 *)
13093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13094 ac_dummy="$PATH"
13095 for ac_dir in $ac_dummy; do
13096 test -z "$ac_dir" && ac_dir=.
13097 if test -f $ac_dir/$ac_word; then
13098 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13099 break
13100 fi
13101 done
13102 IFS="$ac_save_ifs"
13103 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13104 ;;
13105 esac
13106 fi
13107 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
13108 if test -n "$GTK_CONFIG"; then
13109 echo "$ac_t""$GTK_CONFIG" 1>&6
13110 else
13111 echo "$ac_t""no" 1>&6
13112 fi
13113
13114 min_gtk_version=1.2.3
13115 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
13116 echo "configure:13117: checking for GTK - version >= $min_gtk_version" >&5
13117 no_gtk=""
13118 if test "$GTK_CONFIG" = "no" ; then
13119 no_gtk=yes
13120 else
13121 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13122 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13123 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13124 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13125 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13126 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13127 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13129 if test "x$enable_gtktest" = "xyes" ; then
13130 ac_save_CFLAGS="$CFLAGS"
13131 ac_save_LIBS="$LIBS"
13132 CFLAGS="$CFLAGS $GTK_CFLAGS"
13133 LIBS="$GTK_LIBS $LIBS"
13134 rm -f conf.gtktest
13135 if test "$cross_compiling" = yes; then
13136 echo $ac_n "cross compiling; assumed OK... $ac_c"
13137 else
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13141
13142 #include <gtk/gtk.h>
13143 #include <stdio.h>
13144 #include <stdlib.h>
13145
13146 int
13147 main ()
13148 {
13149 int major, minor, micro;
13150 char *tmp_version;
13151
13152 system ("touch conf.gtktest");
13153
13154 /* HP/UX 9 (%@#!) writes to sscanf strings */
13155 tmp_version = g_strdup("$min_gtk_version");
13156 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13157 printf("%s, bad version string\n", "$min_gtk_version");
13158 exit(1);
13159 }
13160
13161 if ((gtk_major_version != $gtk_config_major_version) ||
13162 (gtk_minor_version != $gtk_config_minor_version) ||
13163 (gtk_micro_version != $gtk_config_micro_version))
13164 {
13165 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13166 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13167 gtk_major_version, gtk_minor_version, gtk_micro_version);
13168 printf ("*** was found! If gtk-config was correct, then it is best\n");
13169 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13170 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13171 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13172 printf("*** required on your system.\n");
13173 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13174 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13175 printf("*** before re-running configure\n");
13176 }
13177 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13178 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13179 (gtk_minor_version != GTK_MINOR_VERSION) ||
13180 (gtk_micro_version != GTK_MICRO_VERSION))
13181 {
13182 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13183 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13184 printf("*** library (version %d.%d.%d)\n",
13185 gtk_major_version, gtk_minor_version, gtk_micro_version);
13186 }
13187 #endif /* defined (GTK_MAJOR_VERSION) ... */
13188 else
13189 {
13190 if ((gtk_major_version > major) ||
13191 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13192 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13193 {
13194 return 0;
13195 }
13196 else
13197 {
13198 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13199 gtk_major_version, gtk_minor_version, gtk_micro_version);
13200 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13201 major, minor, micro);
13202 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13203 printf("***\n");
13204 printf("*** If you have already installed a sufficiently new version, this error\n");
13205 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13206 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13207 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13208 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13209 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13210 printf("*** so that the correct libraries are found at run-time))\n");
13211 }
13212 }
13213 return 1;
13214 }
13215
13216 EOF
13217 if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13218 then
13219 :
13220 else
13221 echo "configure: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 rm -fr conftest*
13224 no_gtk=yes
13225 fi
13226 rm -fr conftest*
13227 fi
13228
13229 CFLAGS="$ac_save_CFLAGS"
13230 LIBS="$ac_save_LIBS"
13231 fi
13232 fi
13233 if test "x$no_gtk" = x ; then
13234 echo "$ac_t""yes" 1>&6
13235 wx_cv_lib_gtk=1.2.3
13236 else
13237 echo "$ac_t""no" 1>&6
13238 if test "$GTK_CONFIG" = "no" ; then
13239 echo "*** The gtk-config script installed by GTK could not be found"
13240 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13241 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13242 echo "*** full path to gtk-config."
13243 else
13244 if test -f conf.gtktest ; then
13245 :
13246 else
13247 echo "*** Could not run GTK test program, checking why..."
13248 CFLAGS="$CFLAGS $GTK_CFLAGS"
13249 LIBS="$LIBS $GTK_LIBS"
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253
13254 #include <gtk/gtk.h>
13255 #include <stdio.h>
13256
13257 int main() {
13258 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13259 ; return 0; }
13260 EOF
13261 if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13262 rm -rf conftest*
13263 echo "*** The test program compiled, but did not run. This usually means"
13264 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13265 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13266 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13267 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13268 echo "*** is required on your system"
13269 echo "***"
13270 echo "*** If you have an old version installed, it is best to remove it, although"
13271 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13272 echo "***"
13273 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13274 echo "*** came with the system with the command"
13275 echo "***"
13276 echo "*** rpm --erase --nodeps gtk gtk-devel"
13277 else
13278 echo "configure: failed program was:" >&5
13279 cat conftest.$ac_ext >&5
13280 rm -rf conftest*
13281 echo "*** The test program failed to compile or link. See the file config.log for the"
13282 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13283 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13284 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13285 fi
13286 rm -f conftest*
13287 CFLAGS="$ac_save_CFLAGS"
13288 LIBS="$ac_save_LIBS"
13289 fi
13290 fi
13291 GTK_CFLAGS=""
13292 GTK_LIBS=""
13293 :
13294 fi
13295
13296
13297 rm -f conf.gtktest
13298
13299 fi
13300 fi
13301
13302 if test -z "$wx_cv_lib_gtk"; then
13303 wx_cv_lib_gtk=none
13304 else
13305 wx_cv_cflags_gtk=$GTK_CFLAGS
13306 wx_cv_libs_gtk=$GTK_LIBS
13307 fi
13308
13309
13310 fi
13311
13312
13313 if test "$gtk_version_cached" = 1; then
13314 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13315 fi
13316
13317 case "$wx_cv_lib_gtk" in
13318 2.0) WXGTK20=1
13319 TOOLKIT_VERSION=2
13320 ;;
13321 1.2.7) WXGTK127=1
13322 WXGTK12=1
13323 ;;
13324 1.2.3) WXGTK12=1
13325 ;;
13326 *) { echo "configure: error:
13327 Please check that gtk-config is in path, the directory
13328 where GTK+ libraries are installed (returned by
13329 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13330 equivalent variable and GTK+ is version 1.2.3 or above.
13331 " 1>&2; exit 1; }
13332 ;;
13333 esac
13334
13335 if test "$WXGTK20" = 1; then
13336 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13337
13338 succeeded=no
13339
13340 if test -z "$PKG_CONFIG"; then
13341 # Extract the first word of "pkg-config", so it can be a program name with args.
13342 set dummy pkg-config; ac_word=$2
13343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13344 echo "configure:13345: checking for $ac_word" >&5
13345 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
13347 else
13348 case "$PKG_CONFIG" in
13349 /*)
13350 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13351 ;;
13352 ?:/*)
13353 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13354 ;;
13355 *)
13356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13357 ac_dummy="$PATH"
13358 for ac_dir in $ac_dummy; do
13359 test -z "$ac_dir" && ac_dir=.
13360 if test -f $ac_dir/$ac_word; then
13361 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13362 break
13363 fi
13364 done
13365 IFS="$ac_save_ifs"
13366 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13367 ;;
13368 esac
13369 fi
13370 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13371 if test -n "$PKG_CONFIG"; then
13372 echo "$ac_t""$PKG_CONFIG" 1>&6
13373 else
13374 echo "$ac_t""no" 1>&6
13375 fi
13376
13377 fi
13378
13379 if test "$PKG_CONFIG" = "no" ; then
13380 echo "*** The pkg-config script could not be found. Make sure it is"
13381 echo "*** in your path, or set the PKG_CONFIG environment variable"
13382 echo "*** to the full path to pkg-config."
13383 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13384 else
13385 PKG_CONFIG_MIN_VERSION=0.9.0
13386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13387 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13388 echo "configure:13389: checking for pangoft2" >&5
13389
13390 if $PKG_CONFIG --exists "pangoft2" ; then
13391 echo "$ac_t""yes" 1>&6
13392 succeeded=yes
13393
13394 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13395 echo "configure:13396: checking PANGOFT2_CFLAGS" >&5
13396 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13397 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13398
13399 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13400 echo "configure:13401: checking PANGOFT2_LIBS" >&5
13401 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13402 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13403 else
13404 PANGOFT2_CFLAGS=""
13405 PANGOFT2_LIBS=""
13406 ## If we have a custom action on failure, don't print errors, but
13407 ## do set a variable so people can do so.
13408 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13409
13410 fi
13411
13412
13413
13414 else
13415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13417 fi
13418 fi
13419
13420 if test $succeeded = yes; then
13421
13422 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13423 LIBS="$LIBS $PANGOFT2_LIBS"
13424
13425 else
13426
13427 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13428 wxUSE_PRINTING_ARCHITECTURE="no"
13429
13430
13431 fi
13432
13433 fi
13434 else
13435 if test "$wxUSE_UNICODE" = "yes"; then
13436 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13437 wxUSE_UNICODE=no
13438 fi
13439 fi
13440
13441 if test "$USE_DARWIN" != 1; then
13442 for ac_func in poll
13443 do
13444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13445 echo "configure:13446: checking for $ac_func" >&5
13446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13447 echo $ac_n "(cached) $ac_c" 1>&6
13448 else
13449 cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 /* System header to define __stub macros and hopefully few prototypes,
13453 which can conflict with char $ac_func(); below. */
13454 #include <assert.h>
13455 /* Override any gcc2 internal prototype to avoid an error. */
13456 /* We use char because int might match the return type of a gcc2
13457 builtin and then its argument prototype would still apply. */
13458 char $ac_func();
13459
13460 int main() {
13461
13462 /* The GNU C library defines this for functions which it implements
13463 to always fail with ENOSYS. Some functions are actually named
13464 something starting with __ and the normal name is an alias. */
13465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13466 choke me
13467 #else
13468 $ac_func();
13469 #endif
13470
13471 ; return 0; }
13472 EOF
13473 if { (eval echo configure:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13474 rm -rf conftest*
13475 eval "ac_cv_func_$ac_func=yes"
13476 else
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 rm -rf conftest*
13480 eval "ac_cv_func_$ac_func=no"
13481 fi
13482 rm -f conftest*
13483 fi
13484
13485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13486 echo "$ac_t""yes" 1>&6
13487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13488 cat >> confdefs.h <<EOF
13489 #define $ac_tr_func 1
13490 EOF
13491
13492 else
13493 echo "$ac_t""no" 1>&6
13494 fi
13495 done
13496
13497 fi
13498
13499 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13500 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13501
13502 AFMINSTALL=afminstall
13503 TOOLKIT=GTK
13504 GUIDIST=GTK_DIST
13505
13506 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13507 echo "configure:13508: checking for gdk_im_open in -lgdk" >&5
13508 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13511 else
13512 ac_save_LIBS="$LIBS"
13513 LIBS="-lgdk $LIBS"
13514 cat > conftest.$ac_ext <<EOF
13515 #line 13516 "configure"
13516 #include "confdefs.h"
13517 /* Override any gcc2 internal prototype to avoid an error. */
13518 /* We use char because int might match the return type of a gcc2
13519 builtin and then its argument prototype would still apply. */
13520 char gdk_im_open();
13521
13522 int main() {
13523 gdk_im_open()
13524 ; return 0; }
13525 EOF
13526 if { (eval echo configure:13527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13527 rm -rf conftest*
13528 eval "ac_cv_lib_$ac_lib_var=yes"
13529 else
13530 echo "configure: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
13532 rm -rf conftest*
13533 eval "ac_cv_lib_$ac_lib_var=no"
13534 fi
13535 rm -f conftest*
13536 LIBS="$ac_save_LIBS"
13537
13538 fi
13539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13540 echo "$ac_t""yes" 1>&6
13541 cat >> confdefs.h <<\EOF
13542 #define HAVE_XIM 1
13543 EOF
13544
13545 else
13546 echo "$ac_t""no" 1>&6
13547 fi
13548
13549 fi
13550
13551 if test "$wxUSE_MGL" = 1; then
13552 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13553 echo "configure:13554: checking for SciTech MGL library" >&5
13554 if test "x$MGL_ROOT" = x ; then
13555 echo "$ac_t""not found" 1>&6
13556 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13557 else
13558 echo "$ac_t""$MGL_ROOT" 1>&6
13559 fi
13560
13561 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13562 echo "configure:13563: checking for libmgl location" >&5
13563 case "${host}" in
13564 *-*-linux* )
13565 if test "x$wxUSE_SHARED" = xyes ; then
13566 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13567 else
13568 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13569 fi
13570 ;;
13571 *-pc-msdosdjgpp )
13572 mgl_os_candidates="dos32/dj2"
13573 ;;
13574 *)
13575 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13576 esac
13577
13578 mgl_lib_type=""
13579 mgl_os=""
13580
13581 for mgl_os_i in $mgl_os_candidates ; do
13582 if test "x$mgl_os" = x ; then
13583 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13584 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13585 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13586 mgl_lib_type=debug
13587 mgl_os=$mgl_os_i
13588 fi
13589 fi
13590 if test "x$mgl_lib_type" = x ; then
13591 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13592 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13593 mgl_lib_type=release
13594 mgl_os=$mgl_os_i
13595 fi
13596 fi
13597 fi
13598 done
13599
13600 if test "x$mgl_os" = x ; then
13601 echo "$ac_t""not found" 1>&6
13602 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13603 fi
13604 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13605
13606 wxUSE_UNIVERSAL="yes"
13607
13608 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13609 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13610
13611 AFMINSTALL=afminstall
13612 TOOLKIT=MGL
13613 GUIDIST=MGL_DIST
13614 fi
13615
13616 if test "$wxUSE_MICROWIN" = 1; then
13617 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13618 echo "configure:13619: checking for MicroWindows" >&5
13619 if test "x$MICROWINDOWS" = x ; then
13620 echo "$ac_t""not found" 1>&6
13621 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13622 else
13623 echo "$ac_t""$MICROWINDOWS" 1>&6
13624 fi
13625
13626 if test -f $MICROWINDOWS/lib/libmwin.a; then
13627 echo "$ac_t""MicroWindows' libraries found." 1>&6
13628 else
13629 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13630 fi
13631
13632 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13633 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13634
13635 wxUSE_UNIVERSAL="yes"
13636
13637 AFMINSTALL=afminstall
13638 TOOLKIT=MICROWIN
13639 GUIDIST=MICROWIN_DIST
13640
13641 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13642 fi
13643
13644 if test "$wxUSE_X11" = 1; then
13645 # If we find X, set shell vars x_includes and x_libraries to the
13646 # paths, otherwise set no_x=yes.
13647 # Uses ac_ vars as temps to allow command line to override cache and checks.
13648 # --without-x overrides everything else, but does not touch the cache.
13649 echo $ac_n "checking for X""... $ac_c" 1>&6
13650 echo "configure:13651: checking for X" >&5
13651
13652 # Check whether --with-x or --without-x was given.
13653 if test "${with_x+set}" = set; then
13654 withval="$with_x"
13655 :
13656 fi
13657
13658 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13659 if test "x$with_x" = xno; then
13660 # The user explicitly disabled X.
13661 have_x=disabled
13662 else
13663 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13664 # Both variables are already set.
13665 have_x=yes
13666 else
13667 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13668 echo $ac_n "(cached) $ac_c" 1>&6
13669 else
13670 # One or both of the vars are not set, and there is no cached value.
13671 ac_x_includes=NO ac_x_libraries=NO
13672 rm -fr conftestdir
13673 if mkdir conftestdir; then
13674 cd conftestdir
13675 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13676 cat > Imakefile <<'EOF'
13677 acfindx:
13678 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13679 EOF
13680 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13682 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13683 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13684 for ac_extension in a so sl; do
13685 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13686 test -f $ac_im_libdir/libX11.$ac_extension; then
13687 ac_im_usrlibdir=$ac_im_libdir; break
13688 fi
13689 done
13690 # Screen out bogus values from the imake configuration. They are
13691 # bogus both because they are the default anyway, and because
13692 # using them would break gcc on systems where it needs fixed includes.
13693 case "$ac_im_incroot" in
13694 /usr/include) ;;
13695 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13696 esac
13697 case "$ac_im_usrlibdir" in
13698 /usr/lib | /lib) ;;
13699 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13700 esac
13701 fi
13702 cd ..
13703 rm -fr conftestdir
13704 fi
13705
13706 if test "$ac_x_includes" = NO; then
13707 # Guess where to find include files, by looking for this one X11 .h file.
13708 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13709
13710 # First, try using that file with no special directory specified.
13711 cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 #include <$x_direct_test_include>
13715 EOF
13716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13717 { (eval echo configure:13718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13719 if test -z "$ac_err"; then
13720 rm -rf conftest*
13721 # We can compile using X headers with no special include directory.
13722 ac_x_includes=
13723 else
13724 echo "$ac_err" >&5
13725 echo "configure: failed program was:" >&5
13726 cat conftest.$ac_ext >&5
13727 rm -rf conftest*
13728 # Look for the header file in a standard set of common directories.
13729 # Check X11 before X11Rn because it is often a symlink to the current release.
13730 for ac_dir in \
13731 /usr/X11/include \
13732 /usr/X11R6/include \
13733 /usr/X11R5/include \
13734 /usr/X11R4/include \
13735 \
13736 /usr/include/X11 \
13737 /usr/include/X11R6 \
13738 /usr/include/X11R5 \
13739 /usr/include/X11R4 \
13740 \
13741 /usr/local/X11/include \
13742 /usr/local/X11R6/include \
13743 /usr/local/X11R5/include \
13744 /usr/local/X11R4/include \
13745 \
13746 /usr/local/include/X11 \
13747 /usr/local/include/X11R6 \
13748 /usr/local/include/X11R5 \
13749 /usr/local/include/X11R4 \
13750 \
13751 /usr/X386/include \
13752 /usr/x386/include \
13753 /usr/XFree86/include/X11 \
13754 \
13755 /usr/include \
13756 /usr/local/include \
13757 /usr/unsupported/include \
13758 /usr/athena/include \
13759 /usr/local/x11r5/include \
13760 /usr/lpp/Xamples/include \
13761 \
13762 /usr/openwin/include \
13763 /usr/openwin/share/include \
13764 ; \
13765 do
13766 if test -r "$ac_dir/$x_direct_test_include"; then
13767 ac_x_includes=$ac_dir
13768 break
13769 fi
13770 done
13771 fi
13772 rm -f conftest*
13773 fi # $ac_x_includes = NO
13774
13775 if test "$ac_x_libraries" = NO; then
13776 # Check for the libraries.
13777
13778 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13779 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13780
13781 # See if we find them without any special options.
13782 # Don't add to $LIBS permanently.
13783 ac_save_LIBS="$LIBS"
13784 LIBS="-l$x_direct_test_library $LIBS"
13785 cat > conftest.$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13788
13789 int main() {
13790 ${x_direct_test_function}()
13791 ; return 0; }
13792 EOF
13793 if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13794 rm -rf conftest*
13795 LIBS="$ac_save_LIBS"
13796 # We can link X programs with no special library path.
13797 ac_x_libraries=
13798 else
13799 echo "configure: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13801 rm -rf conftest*
13802 LIBS="$ac_save_LIBS"
13803 # First see if replacing the include by lib works.
13804 # Check X11 before X11Rn because it is often a symlink to the current release.
13805 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13806 /usr/X11/lib \
13807 /usr/X11R6/lib \
13808 /usr/X11R5/lib \
13809 /usr/X11R4/lib \
13810 \
13811 /usr/lib/X11 \
13812 /usr/lib/X11R6 \
13813 /usr/lib/X11R5 \
13814 /usr/lib/X11R4 \
13815 \
13816 /usr/local/X11/lib \
13817 /usr/local/X11R6/lib \
13818 /usr/local/X11R5/lib \
13819 /usr/local/X11R4/lib \
13820 \
13821 /usr/local/lib/X11 \
13822 /usr/local/lib/X11R6 \
13823 /usr/local/lib/X11R5 \
13824 /usr/local/lib/X11R4 \
13825 \
13826 /usr/X386/lib \
13827 /usr/x386/lib \
13828 /usr/XFree86/lib/X11 \
13829 \
13830 /usr/lib \
13831 /usr/local/lib \
13832 /usr/unsupported/lib \
13833 /usr/athena/lib \
13834 /usr/local/x11r5/lib \
13835 /usr/lpp/Xamples/lib \
13836 /lib/usr/lib/X11 \
13837 \
13838 /usr/openwin/lib \
13839 /usr/openwin/share/lib \
13840 ; \
13841 do
13842 for ac_extension in a so sl; do
13843 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13844 ac_x_libraries=$ac_dir
13845 break 2
13846 fi
13847 done
13848 done
13849 fi
13850 rm -f conftest*
13851 fi # $ac_x_libraries = NO
13852
13853 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13854 # Didn't find X anywhere. Cache the known absence of X.
13855 ac_cv_have_x="have_x=no"
13856 else
13857 # Record where we found X for the cache.
13858 ac_cv_have_x="have_x=yes \
13859 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13860 fi
13861 fi
13862 fi
13863 eval "$ac_cv_have_x"
13864 fi # $with_x != no
13865
13866 if test "$have_x" != yes; then
13867 echo "$ac_t""$have_x" 1>&6
13868 no_x=yes
13869 else
13870 # If each of the values was on the command line, it overrides each guess.
13871 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13872 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13873 # Update the cache value to reflect the command line values.
13874 ac_cv_have_x="have_x=yes \
13875 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13876 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13877 fi
13878
13879 if test "$no_x" = yes; then
13880 # Not all programs may use this symbol, but it does not hurt to define it.
13881 cat >> confdefs.h <<\EOF
13882 #define X_DISPLAY_MISSING 1
13883 EOF
13884
13885 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13886 else
13887 if test -n "$x_includes"; then
13888 X_CFLAGS="$X_CFLAGS -I$x_includes"
13889 fi
13890
13891 # It would also be nice to do this for all -L options, not just this one.
13892 if test -n "$x_libraries"; then
13893 X_LIBS="$X_LIBS -L$x_libraries"
13894 # For Solaris; some versions of Sun CC require a space after -R and
13895 # others require no space. Words are not sufficient . . . .
13896 case "`(uname -sr) 2>/dev/null`" in
13897 "SunOS 5"*)
13898 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13899 echo "configure:13900: checking whether -R must be followed by a space" >&5
13900 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13901 cat > conftest.$ac_ext <<EOF
13902 #line 13903 "configure"
13903 #include "confdefs.h"
13904
13905 int main() {
13906
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 ac_R_nospace=yes
13912 else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
13916 ac_R_nospace=no
13917 fi
13918 rm -f conftest*
13919 if test $ac_R_nospace = yes; then
13920 echo "$ac_t""no" 1>&6
13921 X_LIBS="$X_LIBS -R$x_libraries"
13922 else
13923 LIBS="$ac_xsave_LIBS -R $x_libraries"
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927
13928 int main() {
13929
13930 ; return 0; }
13931 EOF
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13933 rm -rf conftest*
13934 ac_R_space=yes
13935 else
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 rm -rf conftest*
13939 ac_R_space=no
13940 fi
13941 rm -f conftest*
13942 if test $ac_R_space = yes; then
13943 echo "$ac_t""yes" 1>&6
13944 X_LIBS="$X_LIBS -R $x_libraries"
13945 else
13946 echo "$ac_t""neither works" 1>&6
13947 fi
13948 fi
13949 LIBS="$ac_xsave_LIBS"
13950 esac
13951 fi
13952
13953 # Check for system-dependent libraries X programs must link with.
13954 # Do this before checking for the system-independent R6 libraries
13955 # (-lICE), since we may need -lsocket or whatever for X linking.
13956
13957 if test "$ISC" = yes; then
13958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13959 else
13960 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13961 # libraries were built with DECnet support. And karl@cs.umb.edu says
13962 # the Alpha needs dnet_stub (dnet does not exist).
13963 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13964 echo "configure:13965: checking for dnet_ntoa in -ldnet" >&5
13965 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13967 echo $ac_n "(cached) $ac_c" 1>&6
13968 else
13969 ac_save_LIBS="$LIBS"
13970 LIBS="-ldnet $LIBS"
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 /* Override any gcc2 internal prototype to avoid an error. */
13975 /* We use char because int might match the return type of a gcc2
13976 builtin and then its argument prototype would still apply. */
13977 char dnet_ntoa();
13978
13979 int main() {
13980 dnet_ntoa()
13981 ; return 0; }
13982 EOF
13983 if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13984 rm -rf conftest*
13985 eval "ac_cv_lib_$ac_lib_var=yes"
13986 else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 eval "ac_cv_lib_$ac_lib_var=no"
13991 fi
13992 rm -f conftest*
13993 LIBS="$ac_save_LIBS"
13994
13995 fi
13996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
13998 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13999 else
14000 echo "$ac_t""no" 1>&6
14001 fi
14002
14003 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14004 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14005 echo "configure:14006: checking for dnet_ntoa in -ldnet_stub" >&5
14006 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14009 else
14010 ac_save_LIBS="$LIBS"
14011 LIBS="-ldnet_stub $LIBS"
14012 cat > conftest.$ac_ext <<EOF
14013 #line 14014 "configure"
14014 #include "confdefs.h"
14015 /* Override any gcc2 internal prototype to avoid an error. */
14016 /* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018 char dnet_ntoa();
14019
14020 int main() {
14021 dnet_ntoa()
14022 ; return 0; }
14023 EOF
14024 if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14025 rm -rf conftest*
14026 eval "ac_cv_lib_$ac_lib_var=yes"
14027 else
14028 echo "configure: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14030 rm -rf conftest*
14031 eval "ac_cv_lib_$ac_lib_var=no"
14032 fi
14033 rm -f conftest*
14034 LIBS="$ac_save_LIBS"
14035
14036 fi
14037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14040 else
14041 echo "$ac_t""no" 1>&6
14042 fi
14043
14044 fi
14045
14046 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14047 # to get the SysV transport functions.
14048 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14049 # needs -lnsl.
14050 # The nsl library prevents programs from opening the X display
14051 # on Irix 5.2, according to dickey@clark.net.
14052 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14053 echo "configure:14054: checking for gethostbyname" >&5
14054 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14056 else
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 /* System header to define __stub macros and hopefully few prototypes,
14061 which can conflict with char gethostbyname(); below. */
14062 #include <assert.h>
14063 /* Override any gcc2 internal prototype to avoid an error. */
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14066 char gethostbyname();
14067
14068 int main() {
14069
14070 /* The GNU C library defines this for functions which it implements
14071 to always fail with ENOSYS. Some functions are actually named
14072 something starting with __ and the normal name is an alias. */
14073 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14074 choke me
14075 #else
14076 gethostbyname();
14077 #endif
14078
14079 ; return 0; }
14080 EOF
14081 if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14082 rm -rf conftest*
14083 eval "ac_cv_func_gethostbyname=yes"
14084 else
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 rm -rf conftest*
14088 eval "ac_cv_func_gethostbyname=no"
14089 fi
14090 rm -f conftest*
14091 fi
14092
14093 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14094 echo "$ac_t""yes" 1>&6
14095 :
14096 else
14097 echo "$ac_t""no" 1>&6
14098 fi
14099
14100 if test $ac_cv_func_gethostbyname = no; then
14101 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14102 echo "configure:14103: checking for gethostbyname in -lnsl" >&5
14103 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14107 ac_save_LIBS="$LIBS"
14108 LIBS="-lnsl $LIBS"
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* Override any gcc2 internal prototype to avoid an error. */
14113 /* We use char because int might match the return type of a gcc2
14114 builtin and then its argument prototype would still apply. */
14115 char gethostbyname();
14116
14117 int main() {
14118 gethostbyname()
14119 ; return 0; }
14120 EOF
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14122 rm -rf conftest*
14123 eval "ac_cv_lib_$ac_lib_var=yes"
14124 else
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14127 rm -rf conftest*
14128 eval "ac_cv_lib_$ac_lib_var=no"
14129 fi
14130 rm -f conftest*
14131 LIBS="$ac_save_LIBS"
14132
14133 fi
14134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14137 else
14138 echo "$ac_t""no" 1>&6
14139 fi
14140
14141 fi
14142
14143 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14144 # socket/setsockopt and other routines are undefined under SCO ODT
14145 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14146 # on later versions), says simon@lia.di.epfl.ch: it contains
14147 # gethostby* variants that don't use the nameserver (or something).
14148 # -lsocket must be given before -lnsl if both are needed.
14149 # We assume that if connect needs -lnsl, so does gethostbyname.
14150 echo $ac_n "checking for connect""... $ac_c" 1>&6
14151 echo "configure:14152: checking for connect" >&5
14152 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14153 echo $ac_n "(cached) $ac_c" 1>&6
14154 else
14155 cat > conftest.$ac_ext <<EOF
14156 #line 14157 "configure"
14157 #include "confdefs.h"
14158 /* System header to define __stub macros and hopefully few prototypes,
14159 which can conflict with char connect(); below. */
14160 #include <assert.h>
14161 /* Override any gcc2 internal prototype to avoid an error. */
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14164 char connect();
14165
14166 int main() {
14167
14168 /* The GNU C library defines this for functions which it implements
14169 to always fail with ENOSYS. Some functions are actually named
14170 something starting with __ and the normal name is an alias. */
14171 #if defined (__stub_connect) || defined (__stub___connect)
14172 choke me
14173 #else
14174 connect();
14175 #endif
14176
14177 ; return 0; }
14178 EOF
14179 if { (eval echo configure:14180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14180 rm -rf conftest*
14181 eval "ac_cv_func_connect=yes"
14182 else
14183 echo "configure: failed program was:" >&5
14184 cat conftest.$ac_ext >&5
14185 rm -rf conftest*
14186 eval "ac_cv_func_connect=no"
14187 fi
14188 rm -f conftest*
14189 fi
14190
14191 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 :
14194 else
14195 echo "$ac_t""no" 1>&6
14196 fi
14197
14198 if test $ac_cv_func_connect = no; then
14199 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14200 echo "configure:14201: checking for connect in -lsocket" >&5
14201 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14203 echo $ac_n "(cached) $ac_c" 1>&6
14204 else
14205 ac_save_LIBS="$LIBS"
14206 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14207 cat > conftest.$ac_ext <<EOF
14208 #line 14209 "configure"
14209 #include "confdefs.h"
14210 /* Override any gcc2 internal prototype to avoid an error. */
14211 /* We use char because int might match the return type of a gcc2
14212 builtin and then its argument prototype would still apply. */
14213 char connect();
14214
14215 int main() {
14216 connect()
14217 ; return 0; }
14218 EOF
14219 if { (eval echo configure:14220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14220 rm -rf conftest*
14221 eval "ac_cv_lib_$ac_lib_var=yes"
14222 else
14223 echo "configure: failed program was:" >&5
14224 cat conftest.$ac_ext >&5
14225 rm -rf conftest*
14226 eval "ac_cv_lib_$ac_lib_var=no"
14227 fi
14228 rm -f conftest*
14229 LIBS="$ac_save_LIBS"
14230
14231 fi
14232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14233 echo "$ac_t""yes" 1>&6
14234 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14235 else
14236 echo "$ac_t""no" 1>&6
14237 fi
14238
14239 fi
14240
14241 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14242 echo $ac_n "checking for remove""... $ac_c" 1>&6
14243 echo "configure:14244: checking for remove" >&5
14244 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14245 echo $ac_n "(cached) $ac_c" 1>&6
14246 else
14247 cat > conftest.$ac_ext <<EOF
14248 #line 14249 "configure"
14249 #include "confdefs.h"
14250 /* System header to define __stub macros and hopefully few prototypes,
14251 which can conflict with char remove(); below. */
14252 #include <assert.h>
14253 /* Override any gcc2 internal prototype to avoid an error. */
14254 /* We use char because int might match the return type of a gcc2
14255 builtin and then its argument prototype would still apply. */
14256 char remove();
14257
14258 int main() {
14259
14260 /* The GNU C library defines this for functions which it implements
14261 to always fail with ENOSYS. Some functions are actually named
14262 something starting with __ and the normal name is an alias. */
14263 #if defined (__stub_remove) || defined (__stub___remove)
14264 choke me
14265 #else
14266 remove();
14267 #endif
14268
14269 ; return 0; }
14270 EOF
14271 if { (eval echo configure:14272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14272 rm -rf conftest*
14273 eval "ac_cv_func_remove=yes"
14274 else
14275 echo "configure: failed program was:" >&5
14276 cat conftest.$ac_ext >&5
14277 rm -rf conftest*
14278 eval "ac_cv_func_remove=no"
14279 fi
14280 rm -f conftest*
14281 fi
14282
14283 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14284 echo "$ac_t""yes" 1>&6
14285 :
14286 else
14287 echo "$ac_t""no" 1>&6
14288 fi
14289
14290 if test $ac_cv_func_remove = no; then
14291 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14292 echo "configure:14293: checking for remove in -lposix" >&5
14293 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14295 echo $ac_n "(cached) $ac_c" 1>&6
14296 else
14297 ac_save_LIBS="$LIBS"
14298 LIBS="-lposix $LIBS"
14299 cat > conftest.$ac_ext <<EOF
14300 #line 14301 "configure"
14301 #include "confdefs.h"
14302 /* Override any gcc2 internal prototype to avoid an error. */
14303 /* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */
14305 char remove();
14306
14307 int main() {
14308 remove()
14309 ; return 0; }
14310 EOF
14311 if { (eval echo configure:14312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14312 rm -rf conftest*
14313 eval "ac_cv_lib_$ac_lib_var=yes"
14314 else
14315 echo "configure: failed program was:" >&5
14316 cat conftest.$ac_ext >&5
14317 rm -rf conftest*
14318 eval "ac_cv_lib_$ac_lib_var=no"
14319 fi
14320 rm -f conftest*
14321 LIBS="$ac_save_LIBS"
14322
14323 fi
14324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14325 echo "$ac_t""yes" 1>&6
14326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14327 else
14328 echo "$ac_t""no" 1>&6
14329 fi
14330
14331 fi
14332
14333 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14334 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14335 echo "configure:14336: checking for shmat" >&5
14336 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14337 echo $ac_n "(cached) $ac_c" 1>&6
14338 else
14339 cat > conftest.$ac_ext <<EOF
14340 #line 14341 "configure"
14341 #include "confdefs.h"
14342 /* System header to define __stub macros and hopefully few prototypes,
14343 which can conflict with char shmat(); below. */
14344 #include <assert.h>
14345 /* Override any gcc2 internal prototype to avoid an error. */
14346 /* We use char because int might match the return type of a gcc2
14347 builtin and then its argument prototype would still apply. */
14348 char shmat();
14349
14350 int main() {
14351
14352 /* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355 #if defined (__stub_shmat) || defined (__stub___shmat)
14356 choke me
14357 #else
14358 shmat();
14359 #endif
14360
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_func_shmat=yes"
14366 else
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14369 rm -rf conftest*
14370 eval "ac_cv_func_shmat=no"
14371 fi
14372 rm -f conftest*
14373 fi
14374
14375 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14376 echo "$ac_t""yes" 1>&6
14377 :
14378 else
14379 echo "$ac_t""no" 1>&6
14380 fi
14381
14382 if test $ac_cv_func_shmat = no; then
14383 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14384 echo "configure:14385: checking for shmat in -lipc" >&5
14385 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14388 else
14389 ac_save_LIBS="$LIBS"
14390 LIBS="-lipc $LIBS"
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14397 char shmat();
14398
14399 int main() {
14400 shmat()
14401 ; return 0; }
14402 EOF
14403 if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14404 rm -rf conftest*
14405 eval "ac_cv_lib_$ac_lib_var=yes"
14406 else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 eval "ac_cv_lib_$ac_lib_var=no"
14411 fi
14412 rm -f conftest*
14413 LIBS="$ac_save_LIBS"
14414
14415 fi
14416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14417 echo "$ac_t""yes" 1>&6
14418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14419 else
14420 echo "$ac_t""no" 1>&6
14421 fi
14422
14423 fi
14424 fi
14425
14426 # Check for libraries that X11R6 Xt/Xaw programs need.
14427 ac_save_LDFLAGS="$LDFLAGS"
14428 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14429 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14430 # check for ICE first), but we must link in the order -lSM -lICE or
14431 # we get undefined symbols. So assume we have SM if we have ICE.
14432 # These have to be linked with before -lX11, unlike the other
14433 # libraries we check for below, so use a different variable.
14434 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14435 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14436 echo "configure:14437: checking for IceConnectionNumber in -lICE" >&5
14437 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14439 echo $ac_n "(cached) $ac_c" 1>&6
14440 else
14441 ac_save_LIBS="$LIBS"
14442 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 /* We use char because int might match the return type of a gcc2
14448 builtin and then its argument prototype would still apply. */
14449 char IceConnectionNumber();
14450
14451 int main() {
14452 IceConnectionNumber()
14453 ; return 0; }
14454 EOF
14455 if { (eval echo configure:14456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14456 rm -rf conftest*
14457 eval "ac_cv_lib_$ac_lib_var=yes"
14458 else
14459 echo "configure: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14461 rm -rf conftest*
14462 eval "ac_cv_lib_$ac_lib_var=no"
14463 fi
14464 rm -f conftest*
14465 LIBS="$ac_save_LIBS"
14466
14467 fi
14468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14469 echo "$ac_t""yes" 1>&6
14470 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14471 else
14472 echo "$ac_t""no" 1>&6
14473 fi
14474
14475 LDFLAGS="$ac_save_LDFLAGS"
14476
14477 fi
14478
14479
14480 if test "$no_x" = "yes"; then
14481 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14482 fi
14483
14484 GUI_TK_LIBRARY="$X_LIBS"
14485 TOOLKIT_INCLUDE="$X_CFLAGS"
14486 AFMINSTALL=afminstall
14487 COMPILED_X_PROGRAM=0
14488
14489 if test "$wxUSE_NANOX" = "yes"; then
14490 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14491 echo "configure:14492: checking for MicroWindows/NanoX distribution" >&5
14492 if test "x$MICROWIN" = x ; then
14493 echo "$ac_t""not found" 1>&6
14494 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14495 else
14496 echo "$ac_t""$MICROWIN" 1>&6
14497 cat >> confdefs.h <<\EOF
14498 #define wxUSE_NANOX 1
14499 EOF
14500
14501 fi
14502 fi
14503
14504 xpm_link=
14505 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14506 echo "configure:14507: checking for Xpm library" >&5
14507
14508 ac_find_libraries=
14509 for ac_dir in $SEARCH_LIB /usr/lib;
14510 do
14511 for ac_extension in a so sl dylib; do
14512 if test -f "$ac_dir/libXpm.$ac_extension"; then
14513 ac_find_libraries=$ac_dir
14514 break 2
14515 fi
14516 done
14517 done
14518
14519 if test "$ac_find_libraries" != "" ; then
14520
14521 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14522 result=$?
14523 if test $result = 0; then
14524 ac_path_to_link=""
14525 else
14526 ac_path_to_link=" -L$ac_find_libraries"
14527 fi
14528
14529 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14530 xpm_link=" -lXpm"
14531 cat >> confdefs.h <<\EOF
14532 #define wxHAVE_LIB_XPM 1
14533 EOF
14534
14535 echo "$ac_t""found at $ac_find_libraries" 1>&6
14536 else
14537 cat > conftest.$ac_ext <<EOF
14538 #line 14539 "configure"
14539 #include "confdefs.h"
14540
14541 #include <X11/xpm.h>
14542
14543 int main() {
14544
14545 int version;
14546 version = XpmLibraryVersion();
14547
14548 ; return 0; }
14549 EOF
14550 if { (eval echo configure:14551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14551 rm -rf conftest*
14552
14553 xpm_link=" -lXpm"
14554 cat >> confdefs.h <<\EOF
14555 #define wxHAVE_LIB_XPM 1
14556 EOF
14557
14558 echo "$ac_t""found in default search path" 1>&6
14559 COMPILED_X_PROGRAM=0
14560
14561 else
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14564 rm -rf conftest*
14565
14566 echo "$ac_t""no" 1>&6
14567 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14568
14569
14570 fi
14571 rm -f conftest*
14572 fi
14573
14574 if test "$wxUSE_UNICODE" = "yes"; then
14575
14576 succeeded=no
14577
14578 if test -z "$PKG_CONFIG"; then
14579 # Extract the first word of "pkg-config", so it can be a program name with args.
14580 set dummy pkg-config; ac_word=$2
14581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14582 echo "configure:14583: checking for $ac_word" >&5
14583 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14584 echo $ac_n "(cached) $ac_c" 1>&6
14585 else
14586 case "$PKG_CONFIG" in
14587 /*)
14588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14589 ;;
14590 ?:/*)
14591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14592 ;;
14593 *)
14594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14595 ac_dummy="$PATH"
14596 for ac_dir in $ac_dummy; do
14597 test -z "$ac_dir" && ac_dir=.
14598 if test -f $ac_dir/$ac_word; then
14599 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14600 break
14601 fi
14602 done
14603 IFS="$ac_save_ifs"
14604 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14605 ;;
14606 esac
14607 fi
14608 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14609 if test -n "$PKG_CONFIG"; then
14610 echo "$ac_t""$PKG_CONFIG" 1>&6
14611 else
14612 echo "$ac_t""no" 1>&6
14613 fi
14614
14615 fi
14616
14617 if test "$PKG_CONFIG" = "no" ; then
14618 echo "*** The pkg-config script could not be found. Make sure it is"
14619 echo "*** in your path, or set the PKG_CONFIG environment variable"
14620 echo "*** to the full path to pkg-config."
14621 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14622 else
14623 PKG_CONFIG_MIN_VERSION=0.9.0
14624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14625 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14626 echo "configure:14627: checking for pangox" >&5
14627
14628 if $PKG_CONFIG --exists "pangox" ; then
14629 echo "$ac_t""yes" 1>&6
14630 succeeded=yes
14631
14632 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14633 echo "configure:14634: checking PANGOX_CFLAGS" >&5
14634 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14635 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14636
14637 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14638 echo "configure:14639: checking PANGOX_LIBS" >&5
14639 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14640 echo "$ac_t""$PANGOX_LIBS" 1>&6
14641 else
14642 PANGOX_CFLAGS=""
14643 PANGOX_LIBS=""
14644 ## If we have a custom action on failure, don't print errors, but
14645 ## do set a variable so people can do so.
14646 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14647
14648 fi
14649
14650
14651
14652 else
14653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14655 fi
14656 fi
14657
14658 if test $succeeded = yes; then
14659
14660 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14661 LIBS="$LIBS $PANGOX_LIBS"
14662
14663 else
14664
14665 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14666
14667
14668 fi
14669
14670
14671 succeeded=no
14672
14673 if test -z "$PKG_CONFIG"; then
14674 # Extract the first word of "pkg-config", so it can be a program name with args.
14675 set dummy pkg-config; ac_word=$2
14676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14677 echo "configure:14678: checking for $ac_word" >&5
14678 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14679 echo $ac_n "(cached) $ac_c" 1>&6
14680 else
14681 case "$PKG_CONFIG" in
14682 /*)
14683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14684 ;;
14685 ?:/*)
14686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14687 ;;
14688 *)
14689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14690 ac_dummy="$PATH"
14691 for ac_dir in $ac_dummy; do
14692 test -z "$ac_dir" && ac_dir=.
14693 if test -f $ac_dir/$ac_word; then
14694 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14695 break
14696 fi
14697 done
14698 IFS="$ac_save_ifs"
14699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14700 ;;
14701 esac
14702 fi
14703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14704 if test -n "$PKG_CONFIG"; then
14705 echo "$ac_t""$PKG_CONFIG" 1>&6
14706 else
14707 echo "$ac_t""no" 1>&6
14708 fi
14709
14710 fi
14711
14712 if test "$PKG_CONFIG" = "no" ; then
14713 echo "*** The pkg-config script could not be found. Make sure it is"
14714 echo "*** in your path, or set the PKG_CONFIG environment variable"
14715 echo "*** to the full path to pkg-config."
14716 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14717 else
14718 PKG_CONFIG_MIN_VERSION=0.9.0
14719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14720 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14721 echo "configure:14722: checking for pangoft2" >&5
14722
14723 if $PKG_CONFIG --exists "pangoft2" ; then
14724 echo "$ac_t""yes" 1>&6
14725 succeeded=yes
14726
14727 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14728 echo "configure:14729: checking PANGOFT2_CFLAGS" >&5
14729 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14730 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14731
14732 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14733 echo "configure:14734: checking PANGOFT2_LIBS" >&5
14734 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14735 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14736 else
14737 PANGOFT2_CFLAGS=""
14738 PANGOFT2_LIBS=""
14739 ## If we have a custom action on failure, don't print errors, but
14740 ## do set a variable so people can do so.
14741 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14742
14743 fi
14744
14745
14746
14747 else
14748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14750 fi
14751 fi
14752
14753 if test $succeeded = yes; then
14754
14755 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14756 LIBS="$LIBS $PANGOFT2_LIBS"
14757
14758 else
14759
14760 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14761 wxUSE_PRINTING_ARCHITECTURE="no"
14762
14763
14764 fi
14765
14766
14767 succeeded=no
14768
14769 if test -z "$PKG_CONFIG"; then
14770 # Extract the first word of "pkg-config", so it can be a program name with args.
14771 set dummy pkg-config; ac_word=$2
14772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14773 echo "configure:14774: checking for $ac_word" >&5
14774 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14775 echo $ac_n "(cached) $ac_c" 1>&6
14776 else
14777 case "$PKG_CONFIG" in
14778 /*)
14779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14780 ;;
14781 ?:/*)
14782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14783 ;;
14784 *)
14785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14786 ac_dummy="$PATH"
14787 for ac_dir in $ac_dummy; do
14788 test -z "$ac_dir" && ac_dir=.
14789 if test -f $ac_dir/$ac_word; then
14790 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14791 break
14792 fi
14793 done
14794 IFS="$ac_save_ifs"
14795 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14796 ;;
14797 esac
14798 fi
14799 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14800 if test -n "$PKG_CONFIG"; then
14801 echo "$ac_t""$PKG_CONFIG" 1>&6
14802 else
14803 echo "$ac_t""no" 1>&6
14804 fi
14805
14806 fi
14807
14808 if test "$PKG_CONFIG" = "no" ; then
14809 echo "*** The pkg-config script could not be found. Make sure it is"
14810 echo "*** in your path, or set the PKG_CONFIG environment variable"
14811 echo "*** to the full path to pkg-config."
14812 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14813 else
14814 PKG_CONFIG_MIN_VERSION=0.9.0
14815 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14816 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14817 echo "configure:14818: checking for pangoxft" >&5
14818
14819 if $PKG_CONFIG --exists "pangoxft" ; then
14820 echo "$ac_t""yes" 1>&6
14821 succeeded=yes
14822
14823 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14824 echo "configure:14825: checking PANGOXFT_CFLAGS" >&5
14825 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14826 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14827
14828 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14829 echo "configure:14830: checking PANGOXFT_LIBS" >&5
14830 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14831 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14832 else
14833 PANGOXFT_CFLAGS=""
14834 PANGOXFT_LIBS=""
14835 ## If we have a custom action on failure, don't print errors, but
14836 ## do set a variable so people can do so.
14837 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14838
14839 fi
14840
14841
14842
14843 else
14844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14846 fi
14847 fi
14848
14849 if test $succeeded = yes; then
14850
14851 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14852 LIBS="$LIBS $PANGOXFT_LIBS"
14853
14854 else
14855
14856 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14857
14858
14859 fi
14860
14861 fi
14862
14863 wxUSE_UNIVERSAL="yes"
14864
14865 if test "$wxUSE_NANOX" = "yes"; then
14866 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14867 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14868 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14869 else
14870 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14871 fi
14872
14873 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14874 TOOLKIT=X11
14875 GUIDIST=X11_DIST
14876 fi
14877
14878 if test "$wxUSE_MOTIF" = 1; then
14879 if test "$no_x" = yes; then
14880 # Not all programs may use this symbol, but it does not hurt to define it.
14881 cat >> confdefs.h <<\EOF
14882 #define X_DISPLAY_MISSING 1
14883 EOF
14884
14885 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14886 else
14887 if test -n "$x_includes"; then
14888 X_CFLAGS="$X_CFLAGS -I$x_includes"
14889 fi
14890
14891 # It would also be nice to do this for all -L options, not just this one.
14892 if test -n "$x_libraries"; then
14893 X_LIBS="$X_LIBS -L$x_libraries"
14894 # For Solaris; some versions of Sun CC require a space after -R and
14895 # others require no space. Words are not sufficient . . . .
14896 case "`(uname -sr) 2>/dev/null`" in
14897 "SunOS 5"*)
14898 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14899 echo "configure:14900: checking whether -R must be followed by a space" >&5
14900 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14901 cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904
14905 int main() {
14906
14907 ; return 0; }
14908 EOF
14909 if { (eval echo configure:14910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14910 rm -rf conftest*
14911 ac_R_nospace=yes
14912 else
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 rm -rf conftest*
14916 ac_R_nospace=no
14917 fi
14918 rm -f conftest*
14919 if test $ac_R_nospace = yes; then
14920 echo "$ac_t""no" 1>&6
14921 X_LIBS="$X_LIBS -R$x_libraries"
14922 else
14923 LIBS="$ac_xsave_LIBS -R $x_libraries"
14924 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927
14928 int main() {
14929
14930 ; return 0; }
14931 EOF
14932 if { (eval echo configure:14933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14933 rm -rf conftest*
14934 ac_R_space=yes
14935 else
14936 echo "configure: failed program was:" >&5
14937 cat conftest.$ac_ext >&5
14938 rm -rf conftest*
14939 ac_R_space=no
14940 fi
14941 rm -f conftest*
14942 if test $ac_R_space = yes; then
14943 echo "$ac_t""yes" 1>&6
14944 X_LIBS="$X_LIBS -R $x_libraries"
14945 else
14946 echo "$ac_t""neither works" 1>&6
14947 fi
14948 fi
14949 LIBS="$ac_xsave_LIBS"
14950 esac
14951 fi
14952
14953 # Check for system-dependent libraries X programs must link with.
14954 # Do this before checking for the system-independent R6 libraries
14955 # (-lICE), since we may need -lsocket or whatever for X linking.
14956
14957 if test "$ISC" = yes; then
14958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14959 else
14960 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14961 # libraries were built with DECnet support. And karl@cs.umb.edu says
14962 # the Alpha needs dnet_stub (dnet does not exist).
14963 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14964 echo "configure:14965: checking for dnet_ntoa in -ldnet" >&5
14965 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14967 echo $ac_n "(cached) $ac_c" 1>&6
14968 else
14969 ac_save_LIBS="$LIBS"
14970 LIBS="-ldnet $LIBS"
14971 cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 /* Override any gcc2 internal prototype to avoid an error. */
14975 /* We use char because int might match the return type of a gcc2
14976 builtin and then its argument prototype would still apply. */
14977 char dnet_ntoa();
14978
14979 int main() {
14980 dnet_ntoa()
14981 ; return 0; }
14982 EOF
14983 if { (eval echo configure:14984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14984 rm -rf conftest*
14985 eval "ac_cv_lib_$ac_lib_var=yes"
14986 else
14987 echo "configure: failed program was:" >&5
14988 cat conftest.$ac_ext >&5
14989 rm -rf conftest*
14990 eval "ac_cv_lib_$ac_lib_var=no"
14991 fi
14992 rm -f conftest*
14993 LIBS="$ac_save_LIBS"
14994
14995 fi
14996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14997 echo "$ac_t""yes" 1>&6
14998 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14999 else
15000 echo "$ac_t""no" 1>&6
15001 fi
15002
15003 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15004 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
15005 echo "configure:15006: checking for dnet_ntoa in -ldnet_stub" >&5
15006 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
15007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15008 echo $ac_n "(cached) $ac_c" 1>&6
15009 else
15010 ac_save_LIBS="$LIBS"
15011 LIBS="-ldnet_stub $LIBS"
15012 cat > conftest.$ac_ext <<EOF
15013 #line 15014 "configure"
15014 #include "confdefs.h"
15015 /* Override any gcc2 internal prototype to avoid an error. */
15016 /* We use char because int might match the return type of a gcc2
15017 builtin and then its argument prototype would still apply. */
15018 char dnet_ntoa();
15019
15020 int main() {
15021 dnet_ntoa()
15022 ; return 0; }
15023 EOF
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15025 rm -rf conftest*
15026 eval "ac_cv_lib_$ac_lib_var=yes"
15027 else
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15030 rm -rf conftest*
15031 eval "ac_cv_lib_$ac_lib_var=no"
15032 fi
15033 rm -f conftest*
15034 LIBS="$ac_save_LIBS"
15035
15036 fi
15037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15038 echo "$ac_t""yes" 1>&6
15039 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15040 else
15041 echo "$ac_t""no" 1>&6
15042 fi
15043
15044 fi
15045
15046 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15047 # to get the SysV transport functions.
15048 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
15049 # needs -lnsl.
15050 # The nsl library prevents programs from opening the X display
15051 # on Irix 5.2, according to dickey@clark.net.
15052 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
15053 echo "configure:15054: checking for gethostbyname" >&5
15054 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15056 else
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 /* System header to define __stub macros and hopefully few prototypes,
15061 which can conflict with char gethostbyname(); below. */
15062 #include <assert.h>
15063 /* Override any gcc2 internal prototype to avoid an error. */
15064 /* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15066 char gethostbyname();
15067
15068 int main() {
15069
15070 /* The GNU C library defines this for functions which it implements
15071 to always fail with ENOSYS. Some functions are actually named
15072 something starting with __ and the normal name is an alias. */
15073 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
15074 choke me
15075 #else
15076 gethostbyname();
15077 #endif
15078
15079 ; return 0; }
15080 EOF
15081 if { (eval echo configure:15082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15082 rm -rf conftest*
15083 eval "ac_cv_func_gethostbyname=yes"
15084 else
15085 echo "configure: failed program was:" >&5
15086 cat conftest.$ac_ext >&5
15087 rm -rf conftest*
15088 eval "ac_cv_func_gethostbyname=no"
15089 fi
15090 rm -f conftest*
15091 fi
15092
15093 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15094 echo "$ac_t""yes" 1>&6
15095 :
15096 else
15097 echo "$ac_t""no" 1>&6
15098 fi
15099
15100 if test $ac_cv_func_gethostbyname = no; then
15101 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15102 echo "configure:15103: checking for gethostbyname in -lnsl" >&5
15103 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15105 echo $ac_n "(cached) $ac_c" 1>&6
15106 else
15107 ac_save_LIBS="$LIBS"
15108 LIBS="-lnsl $LIBS"
15109 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 /* Override any gcc2 internal prototype to avoid an error. */
15113 /* We use char because int might match the return type of a gcc2
15114 builtin and then its argument prototype would still apply. */
15115 char gethostbyname();
15116
15117 int main() {
15118 gethostbyname()
15119 ; return 0; }
15120 EOF
15121 if { (eval echo configure:15122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15122 rm -rf conftest*
15123 eval "ac_cv_lib_$ac_lib_var=yes"
15124 else
15125 echo "configure: failed program was:" >&5
15126 cat conftest.$ac_ext >&5
15127 rm -rf conftest*
15128 eval "ac_cv_lib_$ac_lib_var=no"
15129 fi
15130 rm -f conftest*
15131 LIBS="$ac_save_LIBS"
15132
15133 fi
15134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15135 echo "$ac_t""yes" 1>&6
15136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15137 else
15138 echo "$ac_t""no" 1>&6
15139 fi
15140
15141 fi
15142
15143 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15144 # socket/setsockopt and other routines are undefined under SCO ODT
15145 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15146 # on later versions), says simon@lia.di.epfl.ch: it contains
15147 # gethostby* variants that don't use the nameserver (or something).
15148 # -lsocket must be given before -lnsl if both are needed.
15149 # We assume that if connect needs -lnsl, so does gethostbyname.
15150 echo $ac_n "checking for connect""... $ac_c" 1>&6
15151 echo "configure:15152: checking for connect" >&5
15152 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15153 echo $ac_n "(cached) $ac_c" 1>&6
15154 else
15155 cat > conftest.$ac_ext <<EOF
15156 #line 15157 "configure"
15157 #include "confdefs.h"
15158 /* System header to define __stub macros and hopefully few prototypes,
15159 which can conflict with char connect(); below. */
15160 #include <assert.h>
15161 /* Override any gcc2 internal prototype to avoid an error. */
15162 /* We use char because int might match the return type of a gcc2
15163 builtin and then its argument prototype would still apply. */
15164 char connect();
15165
15166 int main() {
15167
15168 /* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171 #if defined (__stub_connect) || defined (__stub___connect)
15172 choke me
15173 #else
15174 connect();
15175 #endif
15176
15177 ; return 0; }
15178 EOF
15179 if { (eval echo configure:15180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15180 rm -rf conftest*
15181 eval "ac_cv_func_connect=yes"
15182 else
15183 echo "configure: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15185 rm -rf conftest*
15186 eval "ac_cv_func_connect=no"
15187 fi
15188 rm -f conftest*
15189 fi
15190
15191 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15192 echo "$ac_t""yes" 1>&6
15193 :
15194 else
15195 echo "$ac_t""no" 1>&6
15196 fi
15197
15198 if test $ac_cv_func_connect = no; then
15199 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15200 echo "configure:15201: checking for connect in -lsocket" >&5
15201 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15203 echo $ac_n "(cached) $ac_c" 1>&6
15204 else
15205 ac_save_LIBS="$LIBS"
15206 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 /* Override any gcc2 internal prototype to avoid an error. */
15211 /* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213 char connect();
15214
15215 int main() {
15216 connect()
15217 ; return 0; }
15218 EOF
15219 if { (eval echo configure:15220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15220 rm -rf conftest*
15221 eval "ac_cv_lib_$ac_lib_var=yes"
15222 else
15223 echo "configure: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 rm -rf conftest*
15226 eval "ac_cv_lib_$ac_lib_var=no"
15227 fi
15228 rm -f conftest*
15229 LIBS="$ac_save_LIBS"
15230
15231 fi
15232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15233 echo "$ac_t""yes" 1>&6
15234 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15235 else
15236 echo "$ac_t""no" 1>&6
15237 fi
15238
15239 fi
15240
15241 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15242 echo $ac_n "checking for remove""... $ac_c" 1>&6
15243 echo "configure:15244: checking for remove" >&5
15244 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15245 echo $ac_n "(cached) $ac_c" 1>&6
15246 else
15247 cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure"
15249 #include "confdefs.h"
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char remove(); below. */
15252 #include <assert.h>
15253 /* Override any gcc2 internal prototype to avoid an error. */
15254 /* We use char because int might match the return type of a gcc2
15255 builtin and then its argument prototype would still apply. */
15256 char remove();
15257
15258 int main() {
15259
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub_remove) || defined (__stub___remove)
15264 choke me
15265 #else
15266 remove();
15267 #endif
15268
15269 ; return 0; }
15270 EOF
15271 if { (eval echo configure:15272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15272 rm -rf conftest*
15273 eval "ac_cv_func_remove=yes"
15274 else
15275 echo "configure: failed program was:" >&5
15276 cat conftest.$ac_ext >&5
15277 rm -rf conftest*
15278 eval "ac_cv_func_remove=no"
15279 fi
15280 rm -f conftest*
15281 fi
15282
15283 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15284 echo "$ac_t""yes" 1>&6
15285 :
15286 else
15287 echo "$ac_t""no" 1>&6
15288 fi
15289
15290 if test $ac_cv_func_remove = no; then
15291 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15292 echo "configure:15293: checking for remove in -lposix" >&5
15293 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15295 echo $ac_n "(cached) $ac_c" 1>&6
15296 else
15297 ac_save_LIBS="$LIBS"
15298 LIBS="-lposix $LIBS"
15299 cat > conftest.$ac_ext <<EOF
15300 #line 15301 "configure"
15301 #include "confdefs.h"
15302 /* Override any gcc2 internal prototype to avoid an error. */
15303 /* We use char because int might match the return type of a gcc2
15304 builtin and then its argument prototype would still apply. */
15305 char remove();
15306
15307 int main() {
15308 remove()
15309 ; return 0; }
15310 EOF
15311 if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15312 rm -rf conftest*
15313 eval "ac_cv_lib_$ac_lib_var=yes"
15314 else
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15317 rm -rf conftest*
15318 eval "ac_cv_lib_$ac_lib_var=no"
15319 fi
15320 rm -f conftest*
15321 LIBS="$ac_save_LIBS"
15322
15323 fi
15324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15325 echo "$ac_t""yes" 1>&6
15326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15327 else
15328 echo "$ac_t""no" 1>&6
15329 fi
15330
15331 fi
15332
15333 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15334 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15335 echo "configure:15336: checking for shmat" >&5
15336 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15337 echo $ac_n "(cached) $ac_c" 1>&6
15338 else
15339 cat > conftest.$ac_ext <<EOF
15340 #line 15341 "configure"
15341 #include "confdefs.h"
15342 /* System header to define __stub macros and hopefully few prototypes,
15343 which can conflict with char shmat(); below. */
15344 #include <assert.h>
15345 /* Override any gcc2 internal prototype to avoid an error. */
15346 /* We use char because int might match the return type of a gcc2
15347 builtin and then its argument prototype would still apply. */
15348 char shmat();
15349
15350 int main() {
15351
15352 /* The GNU C library defines this for functions which it implements
15353 to always fail with ENOSYS. Some functions are actually named
15354 something starting with __ and the normal name is an alias. */
15355 #if defined (__stub_shmat) || defined (__stub___shmat)
15356 choke me
15357 #else
15358 shmat();
15359 #endif
15360
15361 ; return 0; }
15362 EOF
15363 if { (eval echo configure:15364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15364 rm -rf conftest*
15365 eval "ac_cv_func_shmat=yes"
15366 else
15367 echo "configure: failed program was:" >&5
15368 cat conftest.$ac_ext >&5
15369 rm -rf conftest*
15370 eval "ac_cv_func_shmat=no"
15371 fi
15372 rm -f conftest*
15373 fi
15374
15375 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15376 echo "$ac_t""yes" 1>&6
15377 :
15378 else
15379 echo "$ac_t""no" 1>&6
15380 fi
15381
15382 if test $ac_cv_func_shmat = no; then
15383 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15384 echo "configure:15385: checking for shmat in -lipc" >&5
15385 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15387 echo $ac_n "(cached) $ac_c" 1>&6
15388 else
15389 ac_save_LIBS="$LIBS"
15390 LIBS="-lipc $LIBS"
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15397 char shmat();
15398
15399 int main() {
15400 shmat()
15401 ; return 0; }
15402 EOF
15403 if { (eval echo configure:15404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15404 rm -rf conftest*
15405 eval "ac_cv_lib_$ac_lib_var=yes"
15406 else
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 rm -rf conftest*
15410 eval "ac_cv_lib_$ac_lib_var=no"
15411 fi
15412 rm -f conftest*
15413 LIBS="$ac_save_LIBS"
15414
15415 fi
15416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15417 echo "$ac_t""yes" 1>&6
15418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15419 else
15420 echo "$ac_t""no" 1>&6
15421 fi
15422
15423 fi
15424 fi
15425
15426 # Check for libraries that X11R6 Xt/Xaw programs need.
15427 ac_save_LDFLAGS="$LDFLAGS"
15428 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15429 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15430 # check for ICE first), but we must link in the order -lSM -lICE or
15431 # we get undefined symbols. So assume we have SM if we have ICE.
15432 # These have to be linked with before -lX11, unlike the other
15433 # libraries we check for below, so use a different variable.
15434 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15435 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15436 echo "configure:15437: checking for IceConnectionNumber in -lICE" >&5
15437 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15439 echo $ac_n "(cached) $ac_c" 1>&6
15440 else
15441 ac_save_LIBS="$LIBS"
15442 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15443 cat > conftest.$ac_ext <<EOF
15444 #line 15445 "configure"
15445 #include "confdefs.h"
15446 /* Override any gcc2 internal prototype to avoid an error. */
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15449 char IceConnectionNumber();
15450
15451 int main() {
15452 IceConnectionNumber()
15453 ; return 0; }
15454 EOF
15455 if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15456 rm -rf conftest*
15457 eval "ac_cv_lib_$ac_lib_var=yes"
15458 else
15459 echo "configure: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 rm -rf conftest*
15462 eval "ac_cv_lib_$ac_lib_var=no"
15463 fi
15464 rm -f conftest*
15465 LIBS="$ac_save_LIBS"
15466
15467 fi
15468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15469 echo "$ac_t""yes" 1>&6
15470 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15471 else
15472 echo "$ac_t""no" 1>&6
15473 fi
15474
15475 LDFLAGS="$ac_save_LDFLAGS"
15476
15477 fi
15478
15479
15480 if test "$no_x" = "yes"; then
15481 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15482 fi
15483
15484 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15485 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15486 AFMINSTALL=afminstall
15487 COMPILED_X_PROGRAM=0
15488
15489 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15490 echo "configure:15491: checking for Motif/Lesstif headers" >&5
15491
15492 ac_find_includes=
15493 for ac_dir in $SEARCH_INCLUDE /usr/include;
15494 do
15495 if test -f "$ac_dir/Xm/Xm.h"; then
15496 ac_find_includes=$ac_dir
15497 break
15498 fi
15499 done
15500
15501 if test "$ac_find_includes" != "" ; then
15502 echo "$ac_t""found in $ac_find_includes" 1>&6
15503
15504 if test "x$ac_find_includes" = "x/usr/include"; then
15505 ac_path_to_include=""
15506 else
15507 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15508 result=$?
15509 if test $result = 0; then
15510 ac_path_to_include=""
15511 else
15512 ac_path_to_include=" -I$ac_find_includes"
15513 fi
15514 fi
15515
15516 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15517 else
15518 cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521
15522 #include <Xm/Xm.h>
15523
15524 int main() {
15525
15526 int version;
15527 version = xmUseVersion;
15528
15529 ; return 0; }
15530 EOF
15531 if { (eval echo configure:15532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15532 rm -rf conftest*
15533
15534 echo "$ac_t""found in default search path" 1>&6
15535 COMPILED_X_PROGRAM=1
15536
15537 else
15538 echo "configure: failed program was:" >&5
15539 cat conftest.$ac_ext >&5
15540 rm -rf conftest*
15541
15542 echo "$ac_t""no" 1>&6
15543 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15544
15545
15546 fi
15547 rm -f conftest*
15548 fi
15549
15550 if test "$COMPILED_X_PROGRAM" = 0; then
15551 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15552 echo "configure:15553: checking for Motif/Lesstif library" >&5
15553
15554 ac_find_libraries=
15555 for ac_dir in $SEARCH_LIB /usr/lib;
15556 do
15557 for ac_extension in a so sl dylib; do
15558 if test -f "$ac_dir/libXm.$ac_extension"; then
15559 ac_find_libraries=$ac_dir
15560 break 2
15561 fi
15562 done
15563 done
15564
15565 if test "$ac_find_libraries" != "" ; then
15566 echo "$ac_t""found at $ac_find_libraries" 1>&6
15567
15568
15569 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15570 result=$?
15571 if test $result = 0; then
15572 ac_path_to_link=""
15573 else
15574 ac_path_to_link=" -L$ac_find_libraries"
15575 fi
15576
15577 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15578 else
15579 save_CFLAGS=$CFLAGS
15580 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15581
15582 cat > conftest.$ac_ext <<EOF
15583 #line 15584 "configure"
15584 #include "confdefs.h"
15585
15586 #include <Xm/Xm.h>
15587
15588 int main() {
15589
15590 int version;
15591 version = xmUseVersion;
15592
15593 ; return 0; }
15594 EOF
15595 if { (eval echo configure:15596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15596 rm -rf conftest*
15597
15598 echo "$ac_t""found in default search path" 1>&6
15599 COMPILED_X_PROGRAM=1
15600
15601 else
15602 echo "configure: failed program was:" >&5
15603 cat conftest.$ac_ext >&5
15604 rm -rf conftest*
15605
15606 echo "$ac_t""no" 1>&6
15607 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15608
15609
15610 fi
15611 rm -f conftest*
15612
15613 CFLAGS=$save_CFLAGS
15614 fi
15615 fi
15616
15617 xpm_link=
15618 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15619 echo "configure:15620: checking for Xpm library" >&5
15620
15621 ac_find_libraries=
15622 for ac_dir in $SEARCH_LIB /usr/lib;
15623 do
15624 for ac_extension in a so sl dylib; do
15625 if test -f "$ac_dir/libXpm.$ac_extension"; then
15626 ac_find_libraries=$ac_dir
15627 break 2
15628 fi
15629 done
15630 done
15631
15632 if test "$ac_find_libraries" != "" ; then
15633
15634 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15635 result=$?
15636 if test $result = 0; then
15637 ac_path_to_link=""
15638 else
15639 ac_path_to_link=" -L$ac_find_libraries"
15640 fi
15641
15642 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15643
15644 xpm_link=" -lXpm"
15645 cat >> confdefs.h <<\EOF
15646 #define wxHAVE_LIB_XPM 1
15647 EOF
15648
15649 echo "$ac_t""found at $ac_find_libraries" 1>&6
15650 else
15651 save_CFLAGS=$CFLAGS
15652 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15653
15654 cat > conftest.$ac_ext <<EOF
15655 #line 15656 "configure"
15656 #include "confdefs.h"
15657
15658 #include <X11/xpm.h>
15659
15660 int main() {
15661
15662 int version;
15663 version = XpmLibraryVersion();
15664
15665 ; return 0; }
15666 EOF
15667 if { (eval echo configure:15668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15668 rm -rf conftest*
15669
15670 xpm_link=" -lXpm"
15671 cat >> confdefs.h <<\EOF
15672 #define wxHAVE_LIB_XPM 1
15673 EOF
15674
15675 echo "$ac_t""found in default search path" 1>&6
15676 COMPILED_X_PROGRAM=0
15677
15678 else
15679 echo "configure: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15681 rm -rf conftest*
15682
15683 echo "$ac_t""no" 1>&6
15684 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15685
15686
15687 fi
15688 rm -f conftest*
15689
15690 CFLAGS=$save_CFLAGS
15691 fi
15692
15693 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15694 echo "configure:15695: checking if we need -lXp and/or -lSM -lICE" >&5
15695 libp_link=""
15696 libsm_ice_link=""
15697 libs_found=0
15698 for libp in "" " -lXp"; do
15699 if test "$libs_found" = "0"; then
15700 for libsm_ice in " -lSM -lICE"; do
15701 if test "$libs_found" = "0"; then
15702 save_LIBS="$LIBS"
15703 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15704 save_CFLAGS=$CFLAGS
15705 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15706
15707 cat > conftest.$ac_ext <<EOF
15708 #line 15709 "configure"
15709 #include "confdefs.h"
15710
15711 #include <Xm/Xm.h>
15712 #include <Xm/List.h>
15713
15714 int main() {
15715
15716 XmString string = NULL;
15717 Widget w = NULL;
15718 int position = 0;
15719 XmListAddItem(w, string, position);
15720
15721 ; return 0; }
15722 EOF
15723 if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15724 rm -rf conftest*
15725
15726 libp_link="$libp"
15727 libsm_ice_link="$libsm_ice"
15728 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15729 libs_found=1
15730
15731 else
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 rm -rf conftest*
15735
15736
15737 fi
15738 rm -f conftest*
15739
15740 LIBS="$save_LIBS"
15741 CFLAGS=$save_CFLAGS
15742 fi
15743 done
15744 fi
15745 done
15746
15747 if test "$libs_found" = "0"; then
15748 echo "$ac_t""can't find the right libraries" 1>&6
15749 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15750 fi
15751
15752 save_CFLAGS=$CFLAGS
15753 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15754 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15755 echo "configure:15756: checking for Motif 2" >&5
15756 cat > conftest.$ac_ext <<EOF
15757 #line 15758 "configure"
15758 #include "confdefs.h"
15759
15760 #include <Xm/Xm.h>
15761
15762 int main() {
15763
15764 #if XmVersion < 2000
15765 #error "Not Motif 2"
15766 #endif
15767
15768 ; return 0; }
15769 EOF
15770 if { (eval echo configure:15771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15771 rm -rf conftest*
15772
15773 cat >> confdefs.h <<\EOF
15774 #define __WXMOTIF20__ 1
15775 EOF
15776
15777 echo "$ac_t""found" 1>&6
15778
15779 else
15780 echo "configure: failed program was:" >&5
15781 cat conftest.$ac_ext >&5
15782 rm -rf conftest*
15783
15784 cat >> confdefs.h <<\EOF
15785 #define __WXMOTIF20__ 0
15786 EOF
15787
15788 echo "$ac_t""not found" 1>&6
15789
15790 fi
15791 rm -f conftest*
15792 CFLAGS=$save_CFLAGS
15793
15794 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15795 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15796 TOOLKIT=MOTIF
15797 GUIDIST=MOTIF_DIST
15798 fi
15799
15800 if test "$wxUSE_MAC" = 1; then
15801 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15802
15803 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15804 TOOLKIT=MAC
15805 GUIDIST=MACX_DIST
15806 fi
15807
15808 if test "$wxUSE_COCOA" = 1; then
15809 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15810 TOOLKIT=COCOA
15811 GUIDIST=COCOA_DIST
15812 fi
15813
15814 if test "$wxUSE_PM" = 1; then
15815 TOOLKIT=PM
15816 GUIDIST=GTK_DIST
15817 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15818 wxUSE_PROLOGIO="yes"
15819 wxUSE_RESOURCES="yes"
15820 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15821 wxUSE_THREADS="no"
15822 fi
15823
15824 if test "$TOOLKIT" = "PM" ; then
15825 TOOLKIT_DIR="os2"
15826 else
15827 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15828 fi
15829
15830 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15831
15832 if test "$wxUSE_UNIVERSAL" = "yes"; then
15833 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15834
15835 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15836 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15837
15838 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15839 if test "$wxUSE_X11" = 1; then
15840 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15841 else
15842 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15843 fi
15844 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15845 WIDGET_SET=univ
15846 else
15847 ALL_OBJECTS="\$(GUIOBJS)"
15848 ALL_SOURCES="\$(ALL_SOURCES)"
15849 ALL_HEADERS="\$(ALL_HEADERS)"
15850 fi
15851
15852 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15853
15854 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15855 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15856 fi
15857
15858 if test "$wxUSE_HTML" = "yes"; then
15859 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15860 fi
15861
15862 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15863 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15864 fi
15865 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15866 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15867 fi
15868 if test "$wxUSE_LIBPNG" = "builtin" ; then
15869 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15870 fi
15871
15872 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15873 DISTDIR="wx\$(TOOLKIT)"
15874 else
15875 USE_GUI=0
15876
15877 TOOLKIT_DIR="base"
15878
15879 if test "$USE_WIN32" = 1 ; then
15880 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15881 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15882
15883 TOOLKIT="MSW"
15884 else
15885 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15886 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15887 fi
15888
15889 ALL_SOURCES="\$(ALL_SOURCES)"
15890 ALL_HEADERS="\$(ALL_HEADERS)"
15891
15892 PORT_FILES="\${top_srcdir}/src/files.lst"
15893
15894 GUIDIST="BASE_DIST"
15895 DISTDIR="wxBase"
15896 fi
15897
15898
15899 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15900 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15901 fi
15902
15903 if test "$wxUSE_REGEX" = "builtin" ; then
15904 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15905 fi
15906 if test "$wxUSE_ZLIB" = "builtin" ; then
15907 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15908 fi
15909
15910
15911 if test "$wxUSE_OPENGL" = "yes"; then
15912 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15913 OPENGL_LIBS="-framework OpenGL -framework AGL"
15914 elif test "$wxUSE_MSW" = 1; then
15915 OPENGL_LIBS="-lopengl32 -lglu32"
15916 else
15917 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15918 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15919 echo "configure:15920: checking for GL/gl.h" >&5
15920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15921 echo $ac_n "(cached) $ac_c" 1>&6
15922 else
15923 cat > conftest.$ac_ext <<EOF
15924 #line 15925 "configure"
15925 #include "confdefs.h"
15926 #include <GL/gl.h>
15927 EOF
15928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15929 { (eval echo configure:15930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15931 if test -z "$ac_err"; then
15932 rm -rf conftest*
15933 eval "ac_cv_header_$ac_safe=yes"
15934 else
15935 echo "$ac_err" >&5
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15938 rm -rf conftest*
15939 eval "ac_cv_header_$ac_safe=no"
15940 fi
15941 rm -f conftest*
15942 fi
15943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15944 echo "$ac_t""yes" 1>&6
15945
15946 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15947 echo "configure:15948: checking for -lGL" >&5
15948
15949 ac_find_libraries=
15950 for ac_dir in $SEARCH_LIB /usr/lib;
15951 do
15952 for ac_extension in a so sl dylib; do
15953 if test -f "$ac_dir/libGL.$ac_extension"; then
15954 ac_find_libraries=$ac_dir
15955 break 2
15956 fi
15957 done
15958 done
15959
15960 if test "$ac_find_libraries" != "" ; then
15961
15962 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15963 result=$?
15964 if test $result = 0; then
15965 ac_path_to_link=""
15966 else
15967 ac_path_to_link=" -L$ac_find_libraries"
15968 fi
15969
15970 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15971 LDFLAGS_GL="$LDFLAGS"
15972 else
15973 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15974 fi
15975 OPENGL_LIBS="-lGL -lGLU"
15976 echo "$ac_t""yes" 1>&6
15977 else
15978 echo "$ac_t""no" 1>&6
15979 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15980 echo "configure:15981: checking for -lMesaGL" >&5
15981
15982 ac_find_libraries=
15983 for ac_dir in $SEARCH_LIB /usr/lib;
15984 do
15985 for ac_extension in a so sl dylib; do
15986 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15987 ac_find_libraries=$ac_dir
15988 break 2
15989 fi
15990 done
15991 done
15992
15993 if test "$ac_find_libraries" != "" ; then
15994
15995 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15996 result=$?
15997 if test $result = 0; then
15998 ac_path_to_link=""
15999 else
16000 ac_path_to_link=" -L$ac_find_libraries"
16001 fi
16002
16003 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16004 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16005 echo "$ac_t""yes" 1>&6
16006 else
16007 echo "$ac_t""no" 1>&6
16008 fi
16009 fi
16010
16011 else
16012 echo "$ac_t""no" 1>&6
16013 fi
16014
16015
16016 if test "x$OPENGL_LIBS" = "x"; then
16017 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16018 fi
16019 fi
16020
16021 if test "$wxUSE_OPENGL" = "yes"; then
16022 cat >> confdefs.h <<\EOF
16023 #define wxUSE_OPENGL 1
16024 EOF
16025
16026 cat >> confdefs.h <<\EOF
16027 #define wxUSE_GLCANVAS 1
16028 EOF
16029
16030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16031 fi
16032 fi
16033
16034 if test -z "$TOOLKIT_VPATH" ; then
16035 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16036 fi
16037
16038 if test -n "$TOOLKIT" ; then
16039 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16040 fi
16041
16042 lib_unicode_suffix=
16043 if test "$wxUSE_UNICODE" = "yes"; then
16044 lib_unicode_suffix=u
16045 fi
16046
16047 lib_debug_suffix=
16048 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16049 lib_debug_suffix=d
16050 fi
16051
16052 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16053
16054 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16055 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16056
16057 if test "$cross_compiling" = "yes"; then
16058 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16059 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16060 fi
16061
16062 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16063 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16064 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16065
16066 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16067 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16068
16069 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16070 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16071 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16072 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16073
16074 case "${host}" in
16075 *-*-cygwin* | *-*-mingw32* )
16076
16077
16078
16079 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16080 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16081 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16082 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16083 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16084 else
16085 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16086 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16087 fi
16088 ;;
16089
16090 *-*-darwin* )
16091
16092 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16093 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16094
16095 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16096 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16097 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16098 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16099
16100 if test "$wxUSE_MAC" = 1; then
16101 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16102 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16103 fi
16104 ;;
16105 esac
16106
16107 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16108 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16109
16110 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16111 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16112
16113 if test "$wxUSE_OPENGL" = "yes"; then
16114 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16115 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16116 fi
16117
16118
16119
16120 if test "$wxUSE_SHARED" = "yes"; then
16121 case "${host}" in
16122 *-pc-os2_emx | *-pc-os2-emx | \
16123 *-pc-msdosdjgpp )
16124 wxUSE_SHARED=no
16125 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16126 ;;
16127 esac
16128 fi
16129
16130 if test "$wxUSE_SHARED" = "yes"; then
16131
16132 if test "$wxUSE_OPENGL" = "yes"; then
16133 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16134 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16135 else
16136 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16137 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16138 fi
16139
16140 if test "$GCC" = "yes"; then
16141 PIC_FLAG="-fPIC"
16142 fi
16143
16144
16145
16146 found_versioning=no
16147
16148
16149 if test $found_versioning = no ; then
16150 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16151 echo "configure:16152: checking if the linker accepts --version-script" >&5
16152 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16153 echo $ac_n "(cached) $ac_c" 1>&6
16154 else
16155
16156 echo "VER_1 { *; };" >conftest.sym
16157 echo "int main() { return 0; }" >conftest.cpp
16158
16159 if { ac_try='
16160 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16161 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16162 if test -s conftest.stderr ; then
16163 wx_cv_version_script=no
16164 else
16165 wx_cv_version_script=yes
16166 fi
16167 else
16168 wx_cv_version_script=no
16169 fi
16170 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16171
16172 fi
16173
16174 echo "$ac_t""$wx_cv_version_script" 1>&6
16175 if test $wx_cv_version_script = yes ; then
16176 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16177 fi
16178 fi
16179
16180
16181 SHARED_LD="${CXX} -shared -o"
16182
16183 case "${host}" in
16184 *-hp-hpux* )
16185 if test "$GCC" = "yes"; then
16186 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16187 else
16188 LDFLAGS="$LDFLAGS -L/usr/lib"
16189
16190 SHARED_LD="${CXX} -b -o"
16191 PIC_FLAG="+Z"
16192 fi
16193
16194 if test "$wxUSE_OPENGL" = "yes"; then
16195 WX_ALL_INSTALLED="preinstall_gl"
16196 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16197 else
16198 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16199 fi
16200 ;;
16201
16202 *-*-linux* )
16203 if test "$GCC" != "yes"; then
16204 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16205 echo "configure:16206: checking for Intel compiler" >&5
16206 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16207 echo $ac_n "(cached) $ac_c" 1>&6
16208 else
16209
16210 cat > conftest.$ac_ext <<EOF
16211 #line 16212 "configure"
16212 #include "confdefs.h"
16213
16214 int main() {
16215
16216 #ifndef __INTEL_COMPILER
16217 #error Not icc
16218 #endif
16219
16220 ; return 0; }
16221 EOF
16222 if { (eval echo configure:16223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16223 rm -rf conftest*
16224 wx_cv_prog_icc=yes
16225 else
16226 echo "configure: failed program was:" >&5
16227 cat conftest.$ac_ext >&5
16228 rm -rf conftest*
16229 wx_cv_prog_icc=no
16230
16231 fi
16232 rm -f conftest*
16233
16234 fi
16235
16236 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16237 if test "$wx_cv_prog_icc" = "yes"; then
16238 PIC_FLAG="-KPIC"
16239 fi
16240 fi
16241
16242 if test "$wxUSE_SONAME" = "yes" ; then
16243 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16244 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16245 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16246 fi
16247 ;;
16248
16249 *-*-solaris2* )
16250 if test "$GCC" = yes ; then
16251 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16252 else
16253 SHARED_LD="${CXX} -G -o"
16254 PIC_FLAG="-KPIC"
16255 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16256 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16257 fi
16258 ;;
16259
16260 *-*-darwin* )
16261 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16262 CFLAGS="$CFLAGS -fno-common"
16263 CXXFLAGS="$CXXFLAGS -fno-common"
16264 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16265 PIC_FLAG="-dynamic -fPIC"
16266 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16267 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16268 ;;
16269
16270 *-*-aix* )
16271 if test "$GCC" != "yes"; then
16272 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16273 set dummy makeC++SharedLib; ac_word=$2
16274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16275 echo "configure:16276: checking for $ac_word" >&5
16276 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16277 echo $ac_n "(cached) $ac_c" 1>&6
16278 else
16279 if test -n "$AIX_CXX_LD"; then
16280 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16281 else
16282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16283 ac_dummy="$PATH"
16284 for ac_dir in $ac_dummy; do
16285 test -z "$ac_dir" && ac_dir=.
16286 if test -f $ac_dir/$ac_word; then
16287 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16288 break
16289 fi
16290 done
16291 IFS="$ac_save_ifs"
16292 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16293 fi
16294 fi
16295 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16296 if test -n "$AIX_CXX_LD"; then
16297 echo "$ac_t""$AIX_CXX_LD" 1>&6
16298 else
16299 echo "$ac_t""no" 1>&6
16300 fi
16301
16302
16303 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16304 fi
16305 ;;
16306
16307 *-*-cygwin* | *-*-mingw32* )
16308 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16309
16310 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16311 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16312
16313 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16314
16315 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16316 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16317
16318 if test "$wxUSE_OPENGL" = "yes"; then
16319 LIBS="${LIBS} ${OPENGL_LIBS}"
16320 fi
16321 ;;
16322
16323 *-*-beos* )
16324 SHARED_LD="${LD} -shared -o"
16325 ;;
16326
16327 *-*-irix* )
16328 if test "$GCC" != "yes"; then
16329 PIC_FLAG="-KPIC"
16330 fi
16331 ;;
16332
16333 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16334 *-*-sunos4* | \
16335 *-*-osf* | \
16336 *-*-dgux5* | \
16337 *-*-sysv5* )
16338 ;;
16339
16340 *)
16341 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16342 esac
16343
16344 if test "x$WX_TARGET_LIBRARY" = "x"; then
16345 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16346 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16347 fi
16348
16349 WX_TARGET_LIBRARY_TYPE="so"
16350 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16351 fi
16352
16353 if test "$wxUSE_SHARED" = "no"; then
16354
16355 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16356 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16357 fi
16358
16359 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16360 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16361 fi
16362
16363 if test "$wxUSE_OPENGL" = "yes"; then
16364 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16365 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16366 else
16367 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16368 fi
16369
16370 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16371 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16372
16373 WX_TARGET_LIBRARY_TYPE="a"
16374 INSTALL_LIBRARY='$(INSTALL_DATA)'
16375
16376 STATIC_FLAG="yes"
16377 else
16378 STATIC_FLAG="no"
16379 fi
16380
16381 MACRESCOMP="@#"
16382 MACSETFILE="@#"
16383 MACRESWXCONFIG="#"
16384 if test "$wxUSE_MAC" = 1; then
16385 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16386 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16387 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16388 # Extract the first word of "Rez", so it can be a program name with args.
16389 set dummy Rez; ac_word=$2
16390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16391 echo "configure:16392: checking for $ac_word" >&5
16392 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16393 echo $ac_n "(cached) $ac_c" 1>&6
16394 else
16395 if test -n "$RESCOMP"; then
16396 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16397 else
16398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16399 ac_dummy="$PATH"
16400 for ac_dir in $ac_dummy; do
16401 test -z "$ac_dir" && ac_dir=.
16402 if test -f $ac_dir/$ac_word; then
16403 ac_cv_prog_RESCOMP="Rez"
16404 break
16405 fi
16406 done
16407 IFS="$ac_save_ifs"
16408 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16409 fi
16410 fi
16411 RESCOMP="$ac_cv_prog_RESCOMP"
16412 if test -n "$RESCOMP"; then
16413 echo "$ac_t""$RESCOMP" 1>&6
16414 else
16415 echo "$ac_t""no" 1>&6
16416 fi
16417
16418 # Extract the first word of "DeRez", so it can be a program name with args.
16419 set dummy DeRez; ac_word=$2
16420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16421 echo "configure:16422: checking for $ac_word" >&5
16422 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16423 echo $ac_n "(cached) $ac_c" 1>&6
16424 else
16425 if test -n "$DEREZ"; then
16426 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16427 else
16428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16429 ac_dummy="$PATH"
16430 for ac_dir in $ac_dummy; do
16431 test -z "$ac_dir" && ac_dir=.
16432 if test -f $ac_dir/$ac_word; then
16433 ac_cv_prog_DEREZ="DeRez"
16434 break
16435 fi
16436 done
16437 IFS="$ac_save_ifs"
16438 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16439 fi
16440 fi
16441 DEREZ="$ac_cv_prog_DEREZ"
16442 if test -n "$DEREZ"; then
16443 echo "$ac_t""$DEREZ" 1>&6
16444 else
16445 echo "$ac_t""no" 1>&6
16446 fi
16447
16448 # Extract the first word of "SetFile", so it can be a program name with args.
16449 set dummy SetFile; ac_word=$2
16450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16451 echo "configure:16452: checking for $ac_word" >&5
16452 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16453 echo $ac_n "(cached) $ac_c" 1>&6
16454 else
16455 if test -n "$SETFILE"; then
16456 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16457 else
16458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16459 ac_dummy="$PATH"
16460 for ac_dir in $ac_dummy; do
16461 test -z "$ac_dir" && ac_dir=.
16462 if test -f $ac_dir/$ac_word; then
16463 ac_cv_prog_SETFILE="SetFile"
16464 break
16465 fi
16466 done
16467 IFS="$ac_save_ifs"
16468 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16469 fi
16470 fi
16471 SETFILE="$ac_cv_prog_SETFILE"
16472 if test -n "$SETFILE"; then
16473 echo "$ac_t""$SETFILE" 1>&6
16474 else
16475 echo "$ac_t""no" 1>&6
16476 fi
16477
16478 MACOSX_BUNDLE="bundle"
16479 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16480 MACSETFILE="\$(SETFILE)"
16481 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16482 else
16483 if test "$wxUSE_PM" = 1; then
16484 MACRESCOMP="emxbind -ep"
16485 fi
16486 fi
16487
16488
16489 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16490 echo "configure:16491: checking for ANSI C header files" >&5
16491 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16493 else
16494 cat > conftest.$ac_ext <<EOF
16495 #line 16496 "configure"
16496 #include "confdefs.h"
16497 #include <stdlib.h>
16498 #include <stdarg.h>
16499 #include <string.h>
16500 #include <float.h>
16501 EOF
16502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16503 { (eval echo configure:16504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16505 if test -z "$ac_err"; then
16506 rm -rf conftest*
16507 ac_cv_header_stdc=yes
16508 else
16509 echo "$ac_err" >&5
16510 echo "configure: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16512 rm -rf conftest*
16513 ac_cv_header_stdc=no
16514 fi
16515 rm -f conftest*
16516
16517 if test $ac_cv_header_stdc = yes; then
16518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16519 cat > conftest.$ac_ext <<EOF
16520 #line 16521 "configure"
16521 #include "confdefs.h"
16522 #include <string.h>
16523 EOF
16524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16525 egrep "memchr" >/dev/null 2>&1; then
16526 :
16527 else
16528 rm -rf conftest*
16529 ac_cv_header_stdc=no
16530 fi
16531 rm -f conftest*
16532
16533 fi
16534
16535 if test $ac_cv_header_stdc = yes; then
16536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16537 cat > conftest.$ac_ext <<EOF
16538 #line 16539 "configure"
16539 #include "confdefs.h"
16540 #include <stdlib.h>
16541 EOF
16542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16543 egrep "free" >/dev/null 2>&1; then
16544 :
16545 else
16546 rm -rf conftest*
16547 ac_cv_header_stdc=no
16548 fi
16549 rm -f conftest*
16550
16551 fi
16552
16553 if test $ac_cv_header_stdc = yes; then
16554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16555 if test "$cross_compiling" = yes; then
16556 :
16557 else
16558 cat > conftest.$ac_ext <<EOF
16559 #line 16560 "configure"
16560 #include "confdefs.h"
16561 #include <ctype.h>
16562 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16563 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16565 int main () { int i; for (i = 0; i < 256; i++)
16566 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16567 exit (0); }
16568
16569 EOF
16570 if { (eval echo configure:16571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16571 then
16572 :
16573 else
16574 echo "configure: failed program was:" >&5
16575 cat conftest.$ac_ext >&5
16576 rm -fr conftest*
16577 ac_cv_header_stdc=no
16578 fi
16579 rm -fr conftest*
16580 fi
16581
16582 fi
16583 fi
16584
16585 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16586 if test $ac_cv_header_stdc = yes; then
16587 cat >> confdefs.h <<\EOF
16588 #define STDC_HEADERS 1
16589 EOF
16590
16591 fi
16592
16593 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16594 echo "configure:16595: checking for mode_t" >&5
16595 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16596 echo $ac_n "(cached) $ac_c" 1>&6
16597 else
16598 cat > conftest.$ac_ext <<EOF
16599 #line 16600 "configure"
16600 #include "confdefs.h"
16601 #include <sys/types.h>
16602 #if STDC_HEADERS
16603 #include <stdlib.h>
16604 #include <stddef.h>
16605 #endif
16606 EOF
16607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16609 rm -rf conftest*
16610 ac_cv_type_mode_t=yes
16611 else
16612 rm -rf conftest*
16613 ac_cv_type_mode_t=no
16614 fi
16615 rm -f conftest*
16616
16617 fi
16618 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16619 if test $ac_cv_type_mode_t = no; then
16620 cat >> confdefs.h <<\EOF
16621 #define mode_t int
16622 EOF
16623
16624 fi
16625
16626 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16627 echo "configure:16628: checking for off_t" >&5
16628 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16629 echo $ac_n "(cached) $ac_c" 1>&6
16630 else
16631 cat > conftest.$ac_ext <<EOF
16632 #line 16633 "configure"
16633 #include "confdefs.h"
16634 #include <sys/types.h>
16635 #if STDC_HEADERS
16636 #include <stdlib.h>
16637 #include <stddef.h>
16638 #endif
16639 EOF
16640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16641 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16642 rm -rf conftest*
16643 ac_cv_type_off_t=yes
16644 else
16645 rm -rf conftest*
16646 ac_cv_type_off_t=no
16647 fi
16648 rm -f conftest*
16649
16650 fi
16651 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16652 if test $ac_cv_type_off_t = no; then
16653 cat >> confdefs.h <<\EOF
16654 #define off_t long
16655 EOF
16656
16657 fi
16658
16659 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16660 echo "configure:16661: checking for pid_t" >&5
16661 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16662 echo $ac_n "(cached) $ac_c" 1>&6
16663 else
16664 cat > conftest.$ac_ext <<EOF
16665 #line 16666 "configure"
16666 #include "confdefs.h"
16667 #include <sys/types.h>
16668 #if STDC_HEADERS
16669 #include <stdlib.h>
16670 #include <stddef.h>
16671 #endif
16672 EOF
16673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16674 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16675 rm -rf conftest*
16676 ac_cv_type_pid_t=yes
16677 else
16678 rm -rf conftest*
16679 ac_cv_type_pid_t=no
16680 fi
16681 rm -f conftest*
16682
16683 fi
16684 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16685 if test $ac_cv_type_pid_t = no; then
16686 cat >> confdefs.h <<\EOF
16687 #define pid_t int
16688 EOF
16689
16690 fi
16691
16692 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16693 echo "configure:16694: checking for size_t" >&5
16694 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
16696 else
16697 cat > conftest.$ac_ext <<EOF
16698 #line 16699 "configure"
16699 #include "confdefs.h"
16700 #include <sys/types.h>
16701 #if STDC_HEADERS
16702 #include <stdlib.h>
16703 #include <stddef.h>
16704 #endif
16705 EOF
16706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16707 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16708 rm -rf conftest*
16709 ac_cv_type_size_t=yes
16710 else
16711 rm -rf conftest*
16712 ac_cv_type_size_t=no
16713 fi
16714 rm -f conftest*
16715
16716 fi
16717 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16718 if test $ac_cv_type_size_t = no; then
16719 cat >> confdefs.h <<\EOF
16720 #define size_t unsigned
16721 EOF
16722
16723 fi
16724
16725 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16726 echo "configure:16727: checking for uid_t in sys/types.h" >&5
16727 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16728 echo $ac_n "(cached) $ac_c" 1>&6
16729 else
16730 cat > conftest.$ac_ext <<EOF
16731 #line 16732 "configure"
16732 #include "confdefs.h"
16733 #include <sys/types.h>
16734 EOF
16735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16736 egrep "uid_t" >/dev/null 2>&1; then
16737 rm -rf conftest*
16738 ac_cv_type_uid_t=yes
16739 else
16740 rm -rf conftest*
16741 ac_cv_type_uid_t=no
16742 fi
16743 rm -f conftest*
16744
16745 fi
16746
16747 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16748 if test $ac_cv_type_uid_t = no; then
16749 cat >> confdefs.h <<\EOF
16750 #define uid_t int
16751 EOF
16752
16753 cat >> confdefs.h <<\EOF
16754 #define gid_t int
16755 EOF
16756
16757 fi
16758
16759
16760
16761 ac_ext=C
16762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16763 ac_cpp='$CXXCPP $CPPFLAGS'
16764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16766 cross_compiling=$ac_cv_prog_cxx_cross
16767
16768 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16769 echo "configure:16770: checking if size_t is unsigned int" >&5
16770 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16771 echo $ac_n "(cached) $ac_c" 1>&6
16772 else
16773 cat > conftest.$ac_ext <<EOF
16774 #line 16775 "configure"
16775 #include "confdefs.h"
16776 #include <stddef.h>
16777 int main() {
16778
16779 return 0; }
16780
16781 struct Foo { void foo(size_t); void foo(unsigned int); };
16782
16783 int bar() {
16784
16785 ; return 0; }
16786 EOF
16787 if { (eval echo configure:16788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16788 rm -rf conftest*
16789 wx_cv_size_t_is_uint=no
16790 else
16791 echo "configure: failed program was:" >&5
16792 cat conftest.$ac_ext >&5
16793 rm -rf conftest*
16794 wx_cv_size_t_is_uint=yes
16795
16796 fi
16797 rm -f conftest*
16798
16799 fi
16800
16801 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16802
16803 if test "$wx_cv_size_t_is_uint" = "yes"; then
16804 cat >> confdefs.h <<\EOF
16805 #define wxSIZE_T_IS_UINT 1
16806 EOF
16807
16808 else
16809 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16810 echo "configure:16811: checking if size_t is unsigned long" >&5
16811 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16812 echo $ac_n "(cached) $ac_c" 1>&6
16813 else
16814 cat > conftest.$ac_ext <<EOF
16815 #line 16816 "configure"
16816 #include "confdefs.h"
16817 #include <stddef.h>
16818 int main() {
16819
16820 return 0; }
16821
16822 struct Foo { void foo(size_t); void foo(unsigned long); };
16823
16824 int bar() {
16825
16826 ; return 0; }
16827 EOF
16828 if { (eval echo configure:16829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16829 rm -rf conftest*
16830 wx_cv_size_t_is_ulong=no
16831 else
16832 echo "configure: failed program was:" >&5
16833 cat conftest.$ac_ext >&5
16834 rm -rf conftest*
16835 wx_cv_size_t_is_ulong=yes
16836
16837 fi
16838 rm -f conftest*
16839
16840 fi
16841
16842 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16843
16844 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16845 cat >> confdefs.h <<\EOF
16846 #define wxSIZE_T_IS_ULONG 1
16847 EOF
16848
16849 fi
16850 fi
16851
16852 ac_ext=c
16853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16854 ac_cpp='$CPP $CPPFLAGS'
16855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16857 cross_compiling=$ac_cv_prog_cc_cross
16858
16859
16860
16861 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16862 echo "configure:16863: checking for pw_gecos in struct passwd" >&5
16863 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16864 echo $ac_n "(cached) $ac_c" 1>&6
16865 else
16866
16867 cat > conftest.$ac_ext <<EOF
16868 #line 16869 "configure"
16869 #include "confdefs.h"
16870 #include <pwd.h>
16871 int main() {
16872
16873 char *p;
16874 struct passwd *pw;
16875 p = pw->pw_gecos;
16876
16877 ; return 0; }
16878 EOF
16879 if { (eval echo configure:16880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16880 rm -rf conftest*
16881
16882 wx_cv_struct_pw_gecos=yes
16883
16884 else
16885 echo "configure: failed program was:" >&5
16886 cat conftest.$ac_ext >&5
16887 rm -rf conftest*
16888
16889 wx_cv_struct_pw_gecos=no
16890
16891
16892 fi
16893 rm -f conftest*
16894
16895
16896 fi
16897
16898 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16899
16900 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16901 cat >> confdefs.h <<\EOF
16902 #define HAVE_PW_GECOS 1
16903 EOF
16904
16905 fi
16906
16907
16908 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16909 cat >> confdefs.h <<\EOF
16910 #define wxUSE_WCHAR_T 1
16911 EOF
16912
16913
16914 WCSLEN_FOUND=0
16915 WCHAR_LINK=
16916 for ac_func in wcslen
16917 do
16918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16919 echo "configure:16920: checking for $ac_func" >&5
16920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16922 else
16923 cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16926 /* System header to define __stub macros and hopefully few prototypes,
16927 which can conflict with char $ac_func(); below. */
16928 #include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16930 /* We use char because int might match the return type of a gcc2
16931 builtin and then its argument prototype would still apply. */
16932 char $ac_func();
16933
16934 int main() {
16935
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 choke me
16941 #else
16942 $ac_func();
16943 #endif
16944
16945 ; return 0; }
16946 EOF
16947 if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16948 rm -rf conftest*
16949 eval "ac_cv_func_$ac_func=yes"
16950 else
16951 echo "configure: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 rm -rf conftest*
16954 eval "ac_cv_func_$ac_func=no"
16955 fi
16956 rm -f conftest*
16957 fi
16958
16959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16960 echo "$ac_t""yes" 1>&6
16961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16962 cat >> confdefs.h <<EOF
16963 #define $ac_tr_func 1
16964 EOF
16965 WCSLEN_FOUND=1
16966 else
16967 echo "$ac_t""no" 1>&6
16968 fi
16969 done
16970
16971
16972 if test "$WCSLEN_FOUND" = 0; then
16973 if test "$TOOLKIT" = "MSW"; then
16974 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16975 echo "configure:16976: checking for wcslen in -lmsvcrt" >&5
16976 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16978 echo $ac_n "(cached) $ac_c" 1>&6
16979 else
16980 ac_save_LIBS="$LIBS"
16981 LIBS="-lmsvcrt $LIBS"
16982 cat > conftest.$ac_ext <<EOF
16983 #line 16984 "configure"
16984 #include "confdefs.h"
16985 /* Override any gcc2 internal prototype to avoid an error. */
16986 /* We use char because int might match the return type of a gcc2
16987 builtin and then its argument prototype would still apply. */
16988 char wcslen();
16989
16990 int main() {
16991 wcslen()
16992 ; return 0; }
16993 EOF
16994 if { (eval echo configure:16995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16995 rm -rf conftest*
16996 eval "ac_cv_lib_$ac_lib_var=yes"
16997 else
16998 echo "configure: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17000 rm -rf conftest*
17001 eval "ac_cv_lib_$ac_lib_var=no"
17002 fi
17003 rm -f conftest*
17004 LIBS="$ac_save_LIBS"
17005
17006 fi
17007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17008 echo "$ac_t""yes" 1>&6
17009 WCHAR_OK=1
17010 else
17011 echo "$ac_t""no" 1>&6
17012 fi
17013
17014 else
17015 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17016 echo "configure:17017: checking for wcslen in -lw" >&5
17017 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17019 echo $ac_n "(cached) $ac_c" 1>&6
17020 else
17021 ac_save_LIBS="$LIBS"
17022 LIBS="-lw $LIBS"
17023 cat > conftest.$ac_ext <<EOF
17024 #line 17025 "configure"
17025 #include "confdefs.h"
17026 /* Override any gcc2 internal prototype to avoid an error. */
17027 /* We use char because int might match the return type of a gcc2
17028 builtin and then its argument prototype would still apply. */
17029 char wcslen();
17030
17031 int main() {
17032 wcslen()
17033 ; return 0; }
17034 EOF
17035 if { (eval echo configure:17036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17036 rm -rf conftest*
17037 eval "ac_cv_lib_$ac_lib_var=yes"
17038 else
17039 echo "configure: failed program was:" >&5
17040 cat conftest.$ac_ext >&5
17041 rm -rf conftest*
17042 eval "ac_cv_lib_$ac_lib_var=no"
17043 fi
17044 rm -f conftest*
17045 LIBS="$ac_save_LIBS"
17046
17047 fi
17048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17049 echo "$ac_t""yes" 1>&6
17050
17051 WCHAR_LINK=" -lw"
17052 WCSLEN_FOUND=1
17053
17054 else
17055 echo "$ac_t""no" 1>&6
17056 fi
17057
17058 fi
17059 fi
17060
17061 if test "$WCSLEN_FOUND" = 1; then
17062 cat >> confdefs.h <<\EOF
17063 #define HAVE_WCSLEN 1
17064 EOF
17065
17066 fi
17067
17068 for ac_func in wcsrtombs
17069 do
17070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17071 echo "configure:17072: checking for $ac_func" >&5
17072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17073 echo $ac_n "(cached) $ac_c" 1>&6
17074 else
17075 cat > conftest.$ac_ext <<EOF
17076 #line 17077 "configure"
17077 #include "confdefs.h"
17078 /* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char $ac_func(); below. */
17080 #include <assert.h>
17081 /* Override any gcc2 internal prototype to avoid an error. */
17082 /* We use char because int might match the return type of a gcc2
17083 builtin and then its argument prototype would still apply. */
17084 char $ac_func();
17085
17086 int main() {
17087
17088 /* The GNU C library defines this for functions which it implements
17089 to always fail with ENOSYS. Some functions are actually named
17090 something starting with __ and the normal name is an alias. */
17091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17092 choke me
17093 #else
17094 $ac_func();
17095 #endif
17096
17097 ; return 0; }
17098 EOF
17099 if { (eval echo configure:17100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17100 rm -rf conftest*
17101 eval "ac_cv_func_$ac_func=yes"
17102 else
17103 echo "configure: failed program was:" >&5
17104 cat conftest.$ac_ext >&5
17105 rm -rf conftest*
17106 eval "ac_cv_func_$ac_func=no"
17107 fi
17108 rm -f conftest*
17109 fi
17110
17111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17112 echo "$ac_t""yes" 1>&6
17113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17114 cat >> confdefs.h <<EOF
17115 #define $ac_tr_func 1
17116 EOF
17117
17118 else
17119 echo "$ac_t""no" 1>&6
17120 fi
17121 done
17122
17123 else
17124 echo "configure: warning: Wide character support is unavailable" 1>&2
17125 fi
17126
17127
17128 ac_ext=C
17129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17130 ac_cpp='$CXXCPP $CPPFLAGS'
17131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17133 cross_compiling=$ac_cv_prog_cxx_cross
17134
17135
17136 for ac_func in vsnprintf
17137 do
17138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17139 echo "configure:17140: checking for $ac_func" >&5
17140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17141 echo $ac_n "(cached) $ac_c" 1>&6
17142 else
17143 cat > conftest.$ac_ext <<EOF
17144 #line 17145 "configure"
17145 #include "confdefs.h"
17146 /* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char $ac_func(); below. */
17148 #include <assert.h>
17149 /* Override any gcc2 internal prototype to avoid an error. */
17150 #ifdef __cplusplus
17151 extern "C"
17152 #endif
17153 /* We use char because int might match the return type of a gcc2
17154 builtin and then its argument prototype would still apply. */
17155 char $ac_func();
17156
17157 int main() {
17158
17159 /* The GNU C library defines this for functions which it implements
17160 to always fail with ENOSYS. Some functions are actually named
17161 something starting with __ and the normal name is an alias. */
17162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17163 choke me
17164 #else
17165 $ac_func();
17166 #endif
17167
17168 ; return 0; }
17169 EOF
17170 if { (eval echo configure:17171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17171 rm -rf conftest*
17172 eval "ac_cv_func_$ac_func=yes"
17173 else
17174 echo "configure: failed program was:" >&5
17175 cat conftest.$ac_ext >&5
17176 rm -rf conftest*
17177 eval "ac_cv_func_$ac_func=no"
17178 fi
17179 rm -f conftest*
17180 fi
17181
17182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17183 echo "$ac_t""yes" 1>&6
17184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17185 cat >> confdefs.h <<EOF
17186 #define $ac_tr_func 1
17187 EOF
17188
17189 else
17190 echo "$ac_t""no" 1>&6
17191 fi
17192 done
17193
17194
17195 if test "$ac_cv_func_vsnprintf" = "yes"; then
17196 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17197 echo "configure:17198: checking for vsnprintf declaration" >&5
17198 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17199 echo $ac_n "(cached) $ac_c" 1>&6
17200 else
17201
17202 cat > conftest.$ac_ext <<EOF
17203 #line 17204 "configure"
17204 #include "confdefs.h"
17205
17206 #include <stdio.h>
17207 #include <stdarg.h>
17208
17209 int main() {
17210
17211 char *buf;
17212 va_list ap;
17213 vsnprintf(buf, 10u, "%s", ap);
17214
17215 ; return 0; }
17216 EOF
17217 if { (eval echo configure:17218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17218 rm -rf conftest*
17219 wx_cv_func_vsnprintf_decl=yes
17220 else
17221 echo "configure: failed program was:" >&5
17222 cat conftest.$ac_ext >&5
17223 rm -rf conftest*
17224 wx_cv_func_vsnprintf_decl=no
17225
17226 fi
17227 rm -f conftest*
17228
17229
17230 fi
17231
17232 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17233
17234 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17235 cat >> confdefs.h <<\EOF
17236 #define HAVE_VSNPRINTF_DECL 1
17237 EOF
17238
17239 fi
17240 fi
17241
17242 if test "$wxUSE_UNICODE" = yes; then
17243 for ac_func in fputwc wprintf vswprintf
17244 do
17245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17246 echo "configure:17247: checking for $ac_func" >&5
17247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17248 echo $ac_n "(cached) $ac_c" 1>&6
17249 else
17250 cat > conftest.$ac_ext <<EOF
17251 #line 17252 "configure"
17252 #include "confdefs.h"
17253 /* System header to define __stub macros and hopefully few prototypes,
17254 which can conflict with char $ac_func(); below. */
17255 #include <assert.h>
17256 /* Override any gcc2 internal prototype to avoid an error. */
17257 #ifdef __cplusplus
17258 extern "C"
17259 #endif
17260 /* We use char because int might match the return type of a gcc2
17261 builtin and then its argument prototype would still apply. */
17262 char $ac_func();
17263
17264 int main() {
17265
17266 /* The GNU C library defines this for functions which it implements
17267 to always fail with ENOSYS. Some functions are actually named
17268 something starting with __ and the normal name is an alias. */
17269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17270 choke me
17271 #else
17272 $ac_func();
17273 #endif
17274
17275 ; return 0; }
17276 EOF
17277 if { (eval echo configure:17278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17278 rm -rf conftest*
17279 eval "ac_cv_func_$ac_func=yes"
17280 else
17281 echo "configure: failed program was:" >&5
17282 cat conftest.$ac_ext >&5
17283 rm -rf conftest*
17284 eval "ac_cv_func_$ac_func=no"
17285 fi
17286 rm -f conftest*
17287 fi
17288
17289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17290 echo "$ac_t""yes" 1>&6
17291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17292 cat >> confdefs.h <<EOF
17293 #define $ac_tr_func 1
17294 EOF
17295
17296 else
17297 echo "$ac_t""no" 1>&6
17298 fi
17299 done
17300
17301
17302 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17303 echo "configure:17304: checking for _vsnwprintf" >&5
17304 cat > conftest.$ac_ext <<EOF
17305 #line 17306 "configure"
17306 #include "confdefs.h"
17307 #include <wchar.h>
17308 int main() {
17309 &_vsnwprintf;
17310 ; return 0; }
17311 EOF
17312 if { (eval echo configure:17313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17313 rm -rf conftest*
17314 echo "$ac_t""yes" 1>&6
17315 cat >> confdefs.h <<\EOF
17316 #define HAVE__VSNWPRINTF 1
17317 EOF
17318
17319 else
17320 echo "configure: failed program was:" >&5
17321 cat conftest.$ac_ext >&5
17322 rm -rf conftest*
17323 echo "$ac_t""no" 1>&6
17324 fi
17325 rm -f conftest*;
17326 fi
17327
17328 ac_ext=c
17329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17330 ac_cpp='$CPP $CPPFLAGS'
17331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17333 cross_compiling=$ac_cv_prog_cc_cross
17334
17335
17336
17337
17338 if test "$TOOLKIT" != "MSW"; then
17339
17340
17341
17342 ac_ext=C
17343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17344 ac_cpp='$CXXCPP $CPPFLAGS'
17345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17347 cross_compiling=$ac_cv_prog_cxx_cross
17348
17349
17350
17351 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17352 if test "${with_libiconv_prefix+set}" = set; then
17353 withval="$with_libiconv_prefix"
17354
17355 for dir in `echo "$withval" | tr : ' '`; do
17356 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17357 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17358 done
17359
17360 fi
17361
17362
17363 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17364 echo "configure:17365: checking for iconv" >&5
17365 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17366 echo $ac_n "(cached) $ac_c" 1>&6
17367 else
17368
17369 am_cv_func_iconv="no, consider installing GNU libiconv"
17370 am_cv_lib_iconv=no
17371 cat > conftest.$ac_ext <<EOF
17372 #line 17373 "configure"
17373 #include "confdefs.h"
17374 #include <stdlib.h>
17375 #include <iconv.h>
17376 int main() {
17377 iconv_t cd = iconv_open("","");
17378 iconv(cd,NULL,NULL,NULL,NULL);
17379 iconv_close(cd);
17380 ; return 0; }
17381 EOF
17382 if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383 rm -rf conftest*
17384 am_cv_func_iconv=yes
17385 else
17386 echo "configure: failed program was:" >&5
17387 cat conftest.$ac_ext >&5
17388 fi
17389 rm -f conftest*
17390 if test "$am_cv_func_iconv" != yes; then
17391 am_save_LIBS="$LIBS"
17392 LIBS="$LIBS -liconv"
17393 cat > conftest.$ac_ext <<EOF
17394 #line 17395 "configure"
17395 #include "confdefs.h"
17396 #include <stdlib.h>
17397 #include <iconv.h>
17398 int main() {
17399 iconv_t cd = iconv_open("","");
17400 iconv(cd,NULL,NULL,NULL,NULL);
17401 iconv_close(cd);
17402 ; return 0; }
17403 EOF
17404 if { (eval echo configure:17405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17405 rm -rf conftest*
17406 am_cv_lib_iconv=yes
17407 am_cv_func_iconv=yes
17408 else
17409 echo "configure: failed program was:" >&5
17410 cat conftest.$ac_ext >&5
17411 fi
17412 rm -f conftest*
17413 LIBS="$am_save_LIBS"
17414 fi
17415
17416 fi
17417
17418 echo "$ac_t""$am_cv_func_iconv" 1>&6
17419 if test "$am_cv_func_iconv" = yes; then
17420 cat >> confdefs.h <<\EOF
17421 #define HAVE_ICONV 1
17422 EOF
17423
17424 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17425 echo "configure:17426: checking if iconv needs const" >&5
17426 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17427 echo $ac_n "(cached) $ac_c" 1>&6
17428 else
17429 cat > conftest.$ac_ext <<EOF
17430 #line 17431 "configure"
17431 #include "confdefs.h"
17432
17433 #include <stdlib.h>
17434 #include <iconv.h>
17435 extern
17436 #ifdef __cplusplus
17437 "C"
17438 #endif
17439 #if defined(__STDC__) || defined(__cplusplus)
17440 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17441 #else
17442 size_t iconv();
17443 #endif
17444
17445 int main() {
17446
17447 ; return 0; }
17448 EOF
17449 if { (eval echo configure:17450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17450 rm -rf conftest*
17451 wx_cv_func_iconv_const="no"
17452 else
17453 echo "configure: failed program was:" >&5
17454 cat conftest.$ac_ext >&5
17455 rm -rf conftest*
17456 wx_cv_func_iconv_const="yes"
17457
17458 fi
17459 rm -f conftest*
17460
17461 fi
17462
17463 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17464
17465 iconv_const=
17466 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17467 iconv_const="const"
17468 fi
17469
17470 cat >> confdefs.h <<EOF
17471 #define ICONV_CONST $iconv_const
17472 EOF
17473
17474 fi
17475 LIBICONV=
17476 if test "$am_cv_lib_iconv" = yes; then
17477 LIBICONV="-liconv"
17478 fi
17479
17480
17481 LIBS="$LIBICONV $LIBS"
17482 ac_ext=c
17483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17484 ac_cpp='$CPP $CPPFLAGS'
17485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17487 cross_compiling=$ac_cv_prog_cc_cross
17488
17489
17490 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17491 for ac_func in sigaction
17492 do
17493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17494 echo "configure:17495: checking for $ac_func" >&5
17495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17496 echo $ac_n "(cached) $ac_c" 1>&6
17497 else
17498 cat > conftest.$ac_ext <<EOF
17499 #line 17500 "configure"
17500 #include "confdefs.h"
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func(); below. */
17503 #include <assert.h>
17504 /* Override any gcc2 internal prototype to avoid an error. */
17505 /* We use char because int might match the return type of a gcc2
17506 builtin and then its argument prototype would still apply. */
17507 char $ac_func();
17508
17509 int main() {
17510
17511 /* The GNU C library defines this for functions which it implements
17512 to always fail with ENOSYS. Some functions are actually named
17513 something starting with __ and the normal name is an alias. */
17514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17515 choke me
17516 #else
17517 $ac_func();
17518 #endif
17519
17520 ; return 0; }
17521 EOF
17522 if { (eval echo configure:17523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17523 rm -rf conftest*
17524 eval "ac_cv_func_$ac_func=yes"
17525 else
17526 echo "configure: failed program was:" >&5
17527 cat conftest.$ac_ext >&5
17528 rm -rf conftest*
17529 eval "ac_cv_func_$ac_func=no"
17530 fi
17531 rm -f conftest*
17532 fi
17533
17534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17535 echo "$ac_t""yes" 1>&6
17536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17537 cat >> confdefs.h <<EOF
17538 #define $ac_tr_func 1
17539 EOF
17540
17541 else
17542 echo "$ac_t""no" 1>&6
17543 fi
17544 done
17545
17546
17547 if test "$ac_cv_func_sigaction" = "no"; then
17548 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17549 wxUSE_ON_FATAL_EXCEPTION=no
17550 fi
17551
17552 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17553
17554 ac_ext=C
17555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17556 ac_cpp='$CXXCPP $CPPFLAGS'
17557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17559 cross_compiling=$ac_cv_prog_cxx_cross
17560
17561
17562 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17563 echo "configure:17564: checking for sa_handler type" >&5
17564 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17565 echo $ac_n "(cached) $ac_c" 1>&6
17566 else
17567
17568 cat > conftest.$ac_ext <<EOF
17569 #line 17570 "configure"
17570 #include "confdefs.h"
17571 #include <signal.h>
17572 int main() {
17573
17574 extern void testSigHandler(int);
17575
17576 struct sigaction sa;
17577 sa.sa_handler = testSigHandler;
17578
17579 ; return 0; }
17580 EOF
17581 if { (eval echo configure:17582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17582 rm -rf conftest*
17583
17584 wx_cv_type_sa_handler=int
17585
17586 else
17587 echo "configure: failed program was:" >&5
17588 cat conftest.$ac_ext >&5
17589 rm -rf conftest*
17590
17591 wx_cv_type_sa_handler=void
17592
17593 fi
17594 rm -f conftest*
17595
17596 fi
17597
17598 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17599
17600 ac_ext=c
17601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17602 ac_cpp='$CPP $CPPFLAGS'
17603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17605 cross_compiling=$ac_cv_prog_cc_cross
17606
17607
17608 cat >> confdefs.h <<EOF
17609 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17610 EOF
17611
17612 fi
17613 fi
17614
17615 for ac_func in mkstemp mktemp
17616 do
17617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17618 echo "configure:17619: checking for $ac_func" >&5
17619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17620 echo $ac_n "(cached) $ac_c" 1>&6
17621 else
17622 cat > conftest.$ac_ext <<EOF
17623 #line 17624 "configure"
17624 #include "confdefs.h"
17625 /* System header to define __stub macros and hopefully few prototypes,
17626 which can conflict with char $ac_func(); below. */
17627 #include <assert.h>
17628 /* Override any gcc2 internal prototype to avoid an error. */
17629 /* We use char because int might match the return type of a gcc2
17630 builtin and then its argument prototype would still apply. */
17631 char $ac_func();
17632
17633 int main() {
17634
17635 /* The GNU C library defines this for functions which it implements
17636 to always fail with ENOSYS. Some functions are actually named
17637 something starting with __ and the normal name is an alias. */
17638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17639 choke me
17640 #else
17641 $ac_func();
17642 #endif
17643
17644 ; return 0; }
17645 EOF
17646 if { (eval echo configure:17647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17647 rm -rf conftest*
17648 eval "ac_cv_func_$ac_func=yes"
17649 else
17650 echo "configure: failed program was:" >&5
17651 cat conftest.$ac_ext >&5
17652 rm -rf conftest*
17653 eval "ac_cv_func_$ac_func=no"
17654 fi
17655 rm -f conftest*
17656 fi
17657
17658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17659 echo "$ac_t""yes" 1>&6
17660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17661 cat >> confdefs.h <<EOF
17662 #define $ac_tr_func 1
17663 EOF
17664 break
17665 else
17666 echo "$ac_t""no" 1>&6
17667 fi
17668 done
17669
17670
17671 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17672 echo "configure:17673: checking for statfs" >&5
17673 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17674 echo $ac_n "(cached) $ac_c" 1>&6
17675 else
17676 cat > conftest.$ac_ext <<EOF
17677 #line 17678 "configure"
17678 #include "confdefs.h"
17679
17680 #if defined(__BSD__)
17681 #include <sys/param.h>
17682 #include <sys/mount.h>
17683 #else
17684 #include <sys/vfs.h>
17685 #endif
17686
17687 int main() {
17688
17689 long l;
17690 struct statfs fs;
17691 statfs("/", &fs);
17692 l = fs.f_bsize;
17693 l += fs.f_blocks;
17694 l += fs.f_bavail;
17695
17696 ; return 0; }
17697 EOF
17698 if { (eval echo configure:17699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17699 rm -rf conftest*
17700
17701 wx_cv_func_statfs=yes
17702
17703 else
17704 echo "configure: failed program was:" >&5
17705 cat conftest.$ac_ext >&5
17706 rm -rf conftest*
17707
17708 wx_cv_func_statfs=no
17709
17710
17711 fi
17712 rm -f conftest*
17713
17714 fi
17715
17716 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17717
17718 if test "$wx_cv_func_statfs" = "yes"; then
17719 wx_cv_type_statvfs_t="struct statfs"
17720 cat >> confdefs.h <<\EOF
17721 #define HAVE_STATFS 1
17722 EOF
17723
17724 else
17725 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17726 echo "configure:17727: checking for statvfs" >&5
17727 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17728 echo $ac_n "(cached) $ac_c" 1>&6
17729 else
17730 cat > conftest.$ac_ext <<EOF
17731 #line 17732 "configure"
17732 #include "confdefs.h"
17733
17734 #include <stddef.h>
17735 #include <sys/statvfs.h>
17736
17737 int main() {
17738
17739 statvfs("/", NULL);
17740
17741 ; return 0; }
17742 EOF
17743 if { (eval echo configure:17744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17744 rm -rf conftest*
17745 wx_cv_func_statvfs=yes
17746 else
17747 echo "configure: failed program was:" >&5
17748 cat conftest.$ac_ext >&5
17749 rm -rf conftest*
17750 wx_cv_func_statvfs=no
17751
17752 fi
17753 rm -f conftest*
17754
17755 fi
17756
17757 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17758
17759 if test "$wx_cv_func_statvfs" = "yes"; then
17760
17761 ac_ext=C
17762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17763 ac_cpp='$CXXCPP $CPPFLAGS'
17764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17766 cross_compiling=$ac_cv_prog_cxx_cross
17767
17768
17769 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17770 echo "configure:17771: checking for statvfs argument type" >&5
17771 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17772 echo $ac_n "(cached) $ac_c" 1>&6
17773 else
17774 cat > conftest.$ac_ext <<EOF
17775 #line 17776 "configure"
17776 #include "confdefs.h"
17777
17778 #include <sys/statvfs.h>
17779
17780 int main() {
17781
17782 long l;
17783 statvfs_t fs;
17784 statvfs("/", &fs);
17785 l = fs.f_bsize;
17786 l += fs.f_blocks;
17787 l += fs.f_bavail;
17788
17789 ; return 0; }
17790 EOF
17791 if { (eval echo configure:17792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17792 rm -rf conftest*
17793 wx_cv_type_statvfs_t=statvfs_t
17794 else
17795 echo "configure: failed program was:" >&5
17796 cat conftest.$ac_ext >&5
17797 rm -rf conftest*
17798
17799 cat > conftest.$ac_ext <<EOF
17800 #line 17801 "configure"
17801 #include "confdefs.h"
17802
17803 #include <sys/statvfs.h>
17804
17805 int main() {
17806
17807 long l;
17808 struct statvfs fs;
17809 statvfs("/", &fs);
17810 l = fs.f_bsize;
17811 l += fs.f_blocks;
17812 l += fs.f_bavail;
17813
17814 ; return 0; }
17815 EOF
17816 if { (eval echo configure:17817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17817 rm -rf conftest*
17818 wx_cv_type_statvfs_t="struct statvfs"
17819 else
17820 echo "configure: failed program was:" >&5
17821 cat conftest.$ac_ext >&5
17822 rm -rf conftest*
17823 wx_cv_type_statvfs_t="unknown"
17824
17825 fi
17826 rm -f conftest*
17827
17828
17829 fi
17830 rm -f conftest*
17831
17832 fi
17833
17834 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17835
17836 ac_ext=c
17837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17841 cross_compiling=$ac_cv_prog_cc_cross
17842
17843
17844 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17845 cat >> confdefs.h <<\EOF
17846 #define HAVE_STATVFS 1
17847 EOF
17848
17849 fi
17850 else
17851 wx_cv_type_statvfs_t="unknown"
17852 fi
17853 fi
17854
17855 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17856 cat >> confdefs.h <<EOF
17857 #define WX_STATFS_T $wx_cv_type_statvfs_t
17858 EOF
17859
17860 else
17861 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17862 fi
17863
17864 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17865 for ac_func in fcntl flock
17866 do
17867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17868 echo "configure:17869: checking for $ac_func" >&5
17869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17870 echo $ac_n "(cached) $ac_c" 1>&6
17871 else
17872 cat > conftest.$ac_ext <<EOF
17873 #line 17874 "configure"
17874 #include "confdefs.h"
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char $ac_func(); below. */
17877 #include <assert.h>
17878 /* Override any gcc2 internal prototype to avoid an error. */
17879 /* We use char because int might match the return type of a gcc2
17880 builtin and then its argument prototype would still apply. */
17881 char $ac_func();
17882
17883 int main() {
17884
17885 /* The GNU C library defines this for functions which it implements
17886 to always fail with ENOSYS. Some functions are actually named
17887 something starting with __ and the normal name is an alias. */
17888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17889 choke me
17890 #else
17891 $ac_func();
17892 #endif
17893
17894 ; return 0; }
17895 EOF
17896 if { (eval echo configure:17897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17897 rm -rf conftest*
17898 eval "ac_cv_func_$ac_func=yes"
17899 else
17900 echo "configure: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17902 rm -rf conftest*
17903 eval "ac_cv_func_$ac_func=no"
17904 fi
17905 rm -f conftest*
17906 fi
17907
17908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17909 echo "$ac_t""yes" 1>&6
17910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17911 cat >> confdefs.h <<EOF
17912 #define $ac_tr_func 1
17913 EOF
17914 break
17915 else
17916 echo "$ac_t""no" 1>&6
17917 fi
17918 done
17919
17920
17921 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17922 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17923 wxUSE_SNGLINST_CHECKER=no
17924 fi
17925 fi
17926
17927 for ac_func in timegm
17928 do
17929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17930 echo "configure:17931: checking for $ac_func" >&5
17931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17932 echo $ac_n "(cached) $ac_c" 1>&6
17933 else
17934 cat > conftest.$ac_ext <<EOF
17935 #line 17936 "configure"
17936 #include "confdefs.h"
17937 /* System header to define __stub macros and hopefully few prototypes,
17938 which can conflict with char $ac_func(); below. */
17939 #include <assert.h>
17940 /* Override any gcc2 internal prototype to avoid an error. */
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17943 char $ac_func();
17944
17945 int main() {
17946
17947 /* The GNU C library defines this for functions which it implements
17948 to always fail with ENOSYS. Some functions are actually named
17949 something starting with __ and the normal name is an alias. */
17950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17951 choke me
17952 #else
17953 $ac_func();
17954 #endif
17955
17956 ; return 0; }
17957 EOF
17958 if { (eval echo configure:17959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17959 rm -rf conftest*
17960 eval "ac_cv_func_$ac_func=yes"
17961 else
17962 echo "configure: failed program was:" >&5
17963 cat conftest.$ac_ext >&5
17964 rm -rf conftest*
17965 eval "ac_cv_func_$ac_func=no"
17966 fi
17967 rm -f conftest*
17968 fi
17969
17970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17971 echo "$ac_t""yes" 1>&6
17972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17973 cat >> confdefs.h <<EOF
17974 #define $ac_tr_func 1
17975 EOF
17976
17977 else
17978 echo "$ac_t""no" 1>&6
17979 fi
17980 done
17981
17982
17983 for ac_func in putenv setenv
17984 do
17985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17986 echo "configure:17987: checking for $ac_func" >&5
17987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17988 echo $ac_n "(cached) $ac_c" 1>&6
17989 else
17990 cat > conftest.$ac_ext <<EOF
17991 #line 17992 "configure"
17992 #include "confdefs.h"
17993 /* System header to define __stub macros and hopefully few prototypes,
17994 which can conflict with char $ac_func(); below. */
17995 #include <assert.h>
17996 /* Override any gcc2 internal prototype to avoid an error. */
17997 /* We use char because int might match the return type of a gcc2
17998 builtin and then its argument prototype would still apply. */
17999 char $ac_func();
18000
18001 int main() {
18002
18003 /* The GNU C library defines this for functions which it implements
18004 to always fail with ENOSYS. Some functions are actually named
18005 something starting with __ and the normal name is an alias. */
18006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18007 choke me
18008 #else
18009 $ac_func();
18010 #endif
18011
18012 ; return 0; }
18013 EOF
18014 if { (eval echo configure:18015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18015 rm -rf conftest*
18016 eval "ac_cv_func_$ac_func=yes"
18017 else
18018 echo "configure: failed program was:" >&5
18019 cat conftest.$ac_ext >&5
18020 rm -rf conftest*
18021 eval "ac_cv_func_$ac_func=no"
18022 fi
18023 rm -f conftest*
18024 fi
18025
18026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18027 echo "$ac_t""yes" 1>&6
18028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18029 cat >> confdefs.h <<EOF
18030 #define $ac_tr_func 1
18031 EOF
18032 break
18033 else
18034 echo "$ac_t""no" 1>&6
18035 fi
18036 done
18037
18038
18039 HAVE_SOME_SLEEP_FUNC=0
18040 if test "$USE_BEOS" = 1; then
18041 cat >> confdefs.h <<\EOF
18042 #define HAVE_SLEEP 1
18043 EOF
18044
18045 HAVE_SOME_SLEEP_FUNC=1
18046 fi
18047
18048 if test "$USE_DARWIN" = 1; then
18049 cat >> confdefs.h <<\EOF
18050 #define HAVE_USLEEP 1
18051 EOF
18052
18053 HAVE_SOME_SLEEP_FUNC=1
18054 fi
18055
18056 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18057 POSIX4_LINK=
18058 for ac_func in nanosleep
18059 do
18060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18061 echo "configure:18062: checking for $ac_func" >&5
18062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18063 echo $ac_n "(cached) $ac_c" 1>&6
18064 else
18065 cat > conftest.$ac_ext <<EOF
18066 #line 18067 "configure"
18067 #include "confdefs.h"
18068 /* System header to define __stub macros and hopefully few prototypes,
18069 which can conflict with char $ac_func(); below. */
18070 #include <assert.h>
18071 /* Override any gcc2 internal prototype to avoid an error. */
18072 /* We use char because int might match the return type of a gcc2
18073 builtin and then its argument prototype would still apply. */
18074 char $ac_func();
18075
18076 int main() {
18077
18078 /* The GNU C library defines this for functions which it implements
18079 to always fail with ENOSYS. Some functions are actually named
18080 something starting with __ and the normal name is an alias. */
18081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18082 choke me
18083 #else
18084 $ac_func();
18085 #endif
18086
18087 ; return 0; }
18088 EOF
18089 if { (eval echo configure:18090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18090 rm -rf conftest*
18091 eval "ac_cv_func_$ac_func=yes"
18092 else
18093 echo "configure: failed program was:" >&5
18094 cat conftest.$ac_ext >&5
18095 rm -rf conftest*
18096 eval "ac_cv_func_$ac_func=no"
18097 fi
18098 rm -f conftest*
18099 fi
18100
18101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18102 echo "$ac_t""yes" 1>&6
18103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18104 cat >> confdefs.h <<EOF
18105 #define $ac_tr_func 1
18106 EOF
18107 cat >> confdefs.h <<\EOF
18108 #define HAVE_NANOSLEEP 1
18109 EOF
18110
18111 else
18112 echo "$ac_t""no" 1>&6
18113 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18114 echo "configure:18115: checking for nanosleep in -lposix4" >&5
18115 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18117 echo $ac_n "(cached) $ac_c" 1>&6
18118 else
18119 ac_save_LIBS="$LIBS"
18120 LIBS="-lposix4 $LIBS"
18121 cat > conftest.$ac_ext <<EOF
18122 #line 18123 "configure"
18123 #include "confdefs.h"
18124 /* Override any gcc2 internal prototype to avoid an error. */
18125 /* We use char because int might match the return type of a gcc2
18126 builtin and then its argument prototype would still apply. */
18127 char nanosleep();
18128
18129 int main() {
18130 nanosleep()
18131 ; return 0; }
18132 EOF
18133 if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18134 rm -rf conftest*
18135 eval "ac_cv_lib_$ac_lib_var=yes"
18136 else
18137 echo "configure: failed program was:" >&5
18138 cat conftest.$ac_ext >&5
18139 rm -rf conftest*
18140 eval "ac_cv_lib_$ac_lib_var=no"
18141 fi
18142 rm -f conftest*
18143 LIBS="$ac_save_LIBS"
18144
18145 fi
18146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18147 echo "$ac_t""yes" 1>&6
18148
18149 cat >> confdefs.h <<\EOF
18150 #define HAVE_NANOSLEEP 1
18151 EOF
18152
18153 POSIX4_LINK=" -lposix4"
18154
18155 else
18156 echo "$ac_t""no" 1>&6
18157
18158 for ac_func in usleep
18159 do
18160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18161 echo "configure:18162: checking for $ac_func" >&5
18162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18163 echo $ac_n "(cached) $ac_c" 1>&6
18164 else
18165 cat > conftest.$ac_ext <<EOF
18166 #line 18167 "configure"
18167 #include "confdefs.h"
18168 /* System header to define __stub macros and hopefully few prototypes,
18169 which can conflict with char $ac_func(); below. */
18170 #include <assert.h>
18171 /* Override any gcc2 internal prototype to avoid an error. */
18172 /* We use char because int might match the return type of a gcc2
18173 builtin and then its argument prototype would still apply. */
18174 char $ac_func();
18175
18176 int main() {
18177
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18182 choke me
18183 #else
18184 $ac_func();
18185 #endif
18186
18187 ; return 0; }
18188 EOF
18189 if { (eval echo configure:18190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18190 rm -rf conftest*
18191 eval "ac_cv_func_$ac_func=yes"
18192 else
18193 echo "configure: failed program was:" >&5
18194 cat conftest.$ac_ext >&5
18195 rm -rf conftest*
18196 eval "ac_cv_func_$ac_func=no"
18197 fi
18198 rm -f conftest*
18199 fi
18200
18201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18202 echo "$ac_t""yes" 1>&6
18203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18204 cat >> confdefs.h <<EOF
18205 #define $ac_tr_func 1
18206 EOF
18207 cat >> confdefs.h <<\EOF
18208 #define HAVE_USLEEP 1
18209 EOF
18210
18211 else
18212 echo "$ac_t""no" 1>&6
18213 echo "configure: warning: wxSleep() function will not work" 1>&2
18214
18215 fi
18216 done
18217
18218
18219
18220 fi
18221
18222
18223
18224 fi
18225 done
18226
18227 fi
18228
18229 for ac_func in uname gethostname
18230 do
18231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18232 echo "configure:18233: checking for $ac_func" >&5
18233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18234 echo $ac_n "(cached) $ac_c" 1>&6
18235 else
18236 cat > conftest.$ac_ext <<EOF
18237 #line 18238 "configure"
18238 #include "confdefs.h"
18239 /* System header to define __stub macros and hopefully few prototypes,
18240 which can conflict with char $ac_func(); below. */
18241 #include <assert.h>
18242 /* Override any gcc2 internal prototype to avoid an error. */
18243 /* We use char because int might match the return type of a gcc2
18244 builtin and then its argument prototype would still apply. */
18245 char $ac_func();
18246
18247 int main() {
18248
18249 /* The GNU C library defines this for functions which it implements
18250 to always fail with ENOSYS. Some functions are actually named
18251 something starting with __ and the normal name is an alias. */
18252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18253 choke me
18254 #else
18255 $ac_func();
18256 #endif
18257
18258 ; return 0; }
18259 EOF
18260 if { (eval echo configure:18261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18261 rm -rf conftest*
18262 eval "ac_cv_func_$ac_func=yes"
18263 else
18264 echo "configure: failed program was:" >&5
18265 cat conftest.$ac_ext >&5
18266 rm -rf conftest*
18267 eval "ac_cv_func_$ac_func=no"
18268 fi
18269 rm -f conftest*
18270 fi
18271
18272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18273 echo "$ac_t""yes" 1>&6
18274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18275 cat >> confdefs.h <<EOF
18276 #define $ac_tr_func 1
18277 EOF
18278 break
18279 else
18280 echo "$ac_t""no" 1>&6
18281 fi
18282 done
18283
18284
18285
18286 ac_ext=C
18287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18288 ac_cpp='$CXXCPP $CPPFLAGS'
18289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18291 cross_compiling=$ac_cv_prog_cxx_cross
18292
18293
18294 for ac_func in strtok_r
18295 do
18296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18297 echo "configure:18298: checking for $ac_func" >&5
18298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18299 echo $ac_n "(cached) $ac_c" 1>&6
18300 else
18301 cat > conftest.$ac_ext <<EOF
18302 #line 18303 "configure"
18303 #include "confdefs.h"
18304 /* System header to define __stub macros and hopefully few prototypes,
18305 which can conflict with char $ac_func(); below. */
18306 #include <assert.h>
18307 /* Override any gcc2 internal prototype to avoid an error. */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 /* We use char because int might match the return type of a gcc2
18312 builtin and then its argument prototype would still apply. */
18313 char $ac_func();
18314
18315 int main() {
18316
18317 /* The GNU C library defines this for functions which it implements
18318 to always fail with ENOSYS. Some functions are actually named
18319 something starting with __ and the normal name is an alias. */
18320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18321 choke me
18322 #else
18323 $ac_func();
18324 #endif
18325
18326 ; return 0; }
18327 EOF
18328 if { (eval echo configure:18329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18329 rm -rf conftest*
18330 eval "ac_cv_func_$ac_func=yes"
18331 else
18332 echo "configure: failed program was:" >&5
18333 cat conftest.$ac_ext >&5
18334 rm -rf conftest*
18335 eval "ac_cv_func_$ac_func=no"
18336 fi
18337 rm -f conftest*
18338 fi
18339
18340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18341 echo "$ac_t""yes" 1>&6
18342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18343 cat >> confdefs.h <<EOF
18344 #define $ac_tr_func 1
18345 EOF
18346
18347 else
18348 echo "$ac_t""no" 1>&6
18349 fi
18350 done
18351
18352
18353 ac_ext=c
18354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18355 ac_cpp='$CPP $CPPFLAGS'
18356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18358 cross_compiling=$ac_cv_prog_cc_cross
18359
18360
18361 INET_LINK=
18362 for ac_func in inet_addr
18363 do
18364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18365 echo "configure:18366: checking for $ac_func" >&5
18366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18367 echo $ac_n "(cached) $ac_c" 1>&6
18368 else
18369 cat > conftest.$ac_ext <<EOF
18370 #line 18371 "configure"
18371 #include "confdefs.h"
18372 /* System header to define __stub macros and hopefully few prototypes,
18373 which can conflict with char $ac_func(); below. */
18374 #include <assert.h>
18375 /* Override any gcc2 internal prototype to avoid an error. */
18376 /* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18378 char $ac_func();
18379
18380 int main() {
18381
18382 /* The GNU C library defines this for functions which it implements
18383 to always fail with ENOSYS. Some functions are actually named
18384 something starting with __ and the normal name is an alias. */
18385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18386 choke me
18387 #else
18388 $ac_func();
18389 #endif
18390
18391 ; return 0; }
18392 EOF
18393 if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18394 rm -rf conftest*
18395 eval "ac_cv_func_$ac_func=yes"
18396 else
18397 echo "configure: failed program was:" >&5
18398 cat conftest.$ac_ext >&5
18399 rm -rf conftest*
18400 eval "ac_cv_func_$ac_func=no"
18401 fi
18402 rm -f conftest*
18403 fi
18404
18405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18406 echo "$ac_t""yes" 1>&6
18407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18408 cat >> confdefs.h <<EOF
18409 #define $ac_tr_func 1
18410 EOF
18411 cat >> confdefs.h <<\EOF
18412 #define HAVE_INET_ADDR 1
18413 EOF
18414
18415 else
18416 echo "$ac_t""no" 1>&6
18417 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18418 echo "configure:18419: checking for inet_addr in -lnsl" >&5
18419 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18421 echo $ac_n "(cached) $ac_c" 1>&6
18422 else
18423 ac_save_LIBS="$LIBS"
18424 LIBS="-lnsl $LIBS"
18425 cat > conftest.$ac_ext <<EOF
18426 #line 18427 "configure"
18427 #include "confdefs.h"
18428 /* Override any gcc2 internal prototype to avoid an error. */
18429 /* We use char because int might match the return type of a gcc2
18430 builtin and then its argument prototype would still apply. */
18431 char inet_addr();
18432
18433 int main() {
18434 inet_addr()
18435 ; return 0; }
18436 EOF
18437 if { (eval echo configure:18438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18438 rm -rf conftest*
18439 eval "ac_cv_lib_$ac_lib_var=yes"
18440 else
18441 echo "configure: failed program was:" >&5
18442 cat conftest.$ac_ext >&5
18443 rm -rf conftest*
18444 eval "ac_cv_lib_$ac_lib_var=no"
18445 fi
18446 rm -f conftest*
18447 LIBS="$ac_save_LIBS"
18448
18449 fi
18450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18451 echo "$ac_t""yes" 1>&6
18452 INET_LINK="nsl"
18453 else
18454 echo "$ac_t""no" 1>&6
18455 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18456 echo "configure:18457: checking for inet_addr in -lresolv" >&5
18457 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18459 echo $ac_n "(cached) $ac_c" 1>&6
18460 else
18461 ac_save_LIBS="$LIBS"
18462 LIBS="-lresolv $LIBS"
18463 cat > conftest.$ac_ext <<EOF
18464 #line 18465 "configure"
18465 #include "confdefs.h"
18466 /* Override any gcc2 internal prototype to avoid an error. */
18467 /* We use char because int might match the return type of a gcc2
18468 builtin and then its argument prototype would still apply. */
18469 char inet_addr();
18470
18471 int main() {
18472 inet_addr()
18473 ; return 0; }
18474 EOF
18475 if { (eval echo configure:18476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18476 rm -rf conftest*
18477 eval "ac_cv_lib_$ac_lib_var=yes"
18478 else
18479 echo "configure: failed program was:" >&5
18480 cat conftest.$ac_ext >&5
18481 rm -rf conftest*
18482 eval "ac_cv_lib_$ac_lib_var=no"
18483 fi
18484 rm -f conftest*
18485 LIBS="$ac_save_LIBS"
18486
18487 fi
18488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18489 echo "$ac_t""yes" 1>&6
18490 INET_LINK="resolv"
18491 else
18492 echo "$ac_t""no" 1>&6
18493 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18494 echo "configure:18495: checking for inet_addr in -lsocket" >&5
18495 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18497 echo $ac_n "(cached) $ac_c" 1>&6
18498 else
18499 ac_save_LIBS="$LIBS"
18500 LIBS="-lsocket $LIBS"
18501 cat > conftest.$ac_ext <<EOF
18502 #line 18503 "configure"
18503 #include "confdefs.h"
18504 /* Override any gcc2 internal prototype to avoid an error. */
18505 /* We use char because int might match the return type of a gcc2
18506 builtin and then its argument prototype would still apply. */
18507 char inet_addr();
18508
18509 int main() {
18510 inet_addr()
18511 ; return 0; }
18512 EOF
18513 if { (eval echo configure:18514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18514 rm -rf conftest*
18515 eval "ac_cv_lib_$ac_lib_var=yes"
18516 else
18517 echo "configure: failed program was:" >&5
18518 cat conftest.$ac_ext >&5
18519 rm -rf conftest*
18520 eval "ac_cv_lib_$ac_lib_var=no"
18521 fi
18522 rm -f conftest*
18523 LIBS="$ac_save_LIBS"
18524
18525 fi
18526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18527 echo "$ac_t""yes" 1>&6
18528 INET_LINK="socket"
18529
18530 else
18531 echo "$ac_t""no" 1>&6
18532 fi
18533
18534
18535 fi
18536
18537
18538 fi
18539
18540
18541
18542 fi
18543 done
18544
18545
18546 for ac_func in inet_aton
18547 do
18548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18549 echo "configure:18550: checking for $ac_func" >&5
18550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18551 echo $ac_n "(cached) $ac_c" 1>&6
18552 else
18553 cat > conftest.$ac_ext <<EOF
18554 #line 18555 "configure"
18555 #include "confdefs.h"
18556 /* System header to define __stub macros and hopefully few prototypes,
18557 which can conflict with char $ac_func(); below. */
18558 #include <assert.h>
18559 /* Override any gcc2 internal prototype to avoid an error. */
18560 /* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18562 char $ac_func();
18563
18564 int main() {
18565
18566 /* The GNU C library defines this for functions which it implements
18567 to always fail with ENOSYS. Some functions are actually named
18568 something starting with __ and the normal name is an alias. */
18569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18570 choke me
18571 #else
18572 $ac_func();
18573 #endif
18574
18575 ; return 0; }
18576 EOF
18577 if { (eval echo configure:18578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18578 rm -rf conftest*
18579 eval "ac_cv_func_$ac_func=yes"
18580 else
18581 echo "configure: failed program was:" >&5
18582 cat conftest.$ac_ext >&5
18583 rm -rf conftest*
18584 eval "ac_cv_func_$ac_func=no"
18585 fi
18586 rm -f conftest*
18587 fi
18588
18589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18590 echo "$ac_t""yes" 1>&6
18591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18592 cat >> confdefs.h <<EOF
18593 #define $ac_tr_func 1
18594 EOF
18595 cat >> confdefs.h <<\EOF
18596 #define HAVE_INET_ATON 1
18597 EOF
18598
18599 else
18600 echo "$ac_t""no" 1>&6
18601 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18602 echo "configure:18603: checking for inet_aton in -l$INET_LINK" >&5
18603 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18605 echo $ac_n "(cached) $ac_c" 1>&6
18606 else
18607 ac_save_LIBS="$LIBS"
18608 LIBS="-l$INET_LINK $LIBS"
18609 cat > conftest.$ac_ext <<EOF
18610 #line 18611 "configure"
18611 #include "confdefs.h"
18612 /* Override any gcc2 internal prototype to avoid an error. */
18613 /* We use char because int might match the return type of a gcc2
18614 builtin and then its argument prototype would still apply. */
18615 char inet_aton();
18616
18617 int main() {
18618 inet_aton()
18619 ; return 0; }
18620 EOF
18621 if { (eval echo configure:18622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18622 rm -rf conftest*
18623 eval "ac_cv_lib_$ac_lib_var=yes"
18624 else
18625 echo "configure: failed program was:" >&5
18626 cat conftest.$ac_ext >&5
18627 rm -rf conftest*
18628 eval "ac_cv_lib_$ac_lib_var=no"
18629 fi
18630 rm -f conftest*
18631 LIBS="$ac_save_LIBS"
18632
18633 fi
18634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18635 echo "$ac_t""yes" 1>&6
18636 cat >> confdefs.h <<\EOF
18637 #define HAVE_INET_ATON 1
18638 EOF
18639
18640 else
18641 echo "$ac_t""no" 1>&6
18642 fi
18643
18644
18645 fi
18646 done
18647
18648
18649 if test "x$INET_LINK" != "x"; then
18650 cat >> confdefs.h <<\EOF
18651 #define HAVE_INET_ADDR 1
18652 EOF
18653
18654 INET_LINK=" -l$INET_LINK"
18655 fi
18656
18657 fi
18658
18659
18660 cat > confcache <<\EOF
18661 # This file is a shell script that caches the results of configure
18662 # tests run on this system so they can be shared between configure
18663 # scripts and configure runs. It is not useful on other systems.
18664 # If it contains results you don't want to keep, you may remove or edit it.
18665 #
18666 # By default, configure uses ./config.cache as the cache file,
18667 # creating it if it does not exist already. You can give configure
18668 # the --cache-file=FILE option to use a different cache file; that is
18669 # what configure does when it calls configure scripts in
18670 # subdirectories, so they share the cache.
18671 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18672 # config.status only pays attention to the cache file if you give it the
18673 # --recheck option to rerun configure.
18674 #
18675 EOF
18676 # The following way of writing the cache mishandles newlines in values,
18677 # but we know of no workaround that is simple, portable, and efficient.
18678 # So, don't put newlines in cache variables' values.
18679 # Ultrix sh set writes to stderr and can't be redirected directly,
18680 # and sets the high bit in the cache file unless we assign to the vars.
18681 (set) 2>&1 |
18682 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18683 *ac_space=\ *)
18684 # `set' does not quote correctly, so add quotes (double-quote substitution
18685 # turns \\\\ into \\, and sed turns \\ into \).
18686 sed -n \
18687 -e "s/'/'\\\\''/g" \
18688 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18689 ;;
18690 *)
18691 # `set' quotes correctly as required by POSIX, so do not add quotes.
18692 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18693 ;;
18694 esac >> confcache
18695 if cmp -s $cache_file confcache; then
18696 :
18697 else
18698 if test -w $cache_file; then
18699 echo "updating cache $cache_file"
18700 cat confcache > $cache_file
18701 else
18702 echo "not updating unwritable cache $cache_file"
18703 fi
18704 fi
18705 rm -f confcache
18706
18707
18708
18709 CPP_MT_FLAG=
18710 if test "$TOOLKIT" != "MSW"; then
18711
18712
18713 THREADS_LINK=
18714 THREADS_CFLAGS=
18715
18716 if test "$wxUSE_THREADS" = "yes" ; then
18717 if test "$USE_BEOS" = 1; then
18718 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18719 wxUSE_THREADS="no"
18720 fi
18721 fi
18722
18723 if test "$wxUSE_THREADS" = "yes" ; then
18724
18725
18726 THREAD_OPTS="-pthread"
18727 case "${host}" in
18728 *-*-solaris2* | *-*-sunos4* )
18729 if test "x$GCC" = "xyes"; then
18730 THREAD_OPTS="-pthreads $THREAD_OPTS"
18731 else
18732 THREAD_OPTS="-mt $THREAD_OPTS"
18733 fi
18734 ;;
18735 *-*-freebsd*)
18736 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18737 ;;
18738 *-*-darwin* | *-*-cygwin* )
18739 THREAD_OPTS=""
18740 ;;
18741 *-*-aix*)
18742 THREAD_OPTS="pthreads"
18743 ;;
18744 *-hp-hpux* )
18745 if test "x$GCC" != "xyes"; then
18746 THREAD_OPTS=""
18747 fi
18748 esac
18749
18750 THREAD_OPTS="$THREAD_OPTS pthread none"
18751
18752 THREADS_OK=no
18753 for flag in $THREAD_OPTS; do
18754 case $flag in
18755 none)
18756 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18757 echo "configure:18758: checking whether pthreads work without any flags" >&5
18758 ;;
18759
18760 -*)
18761 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18762 echo "configure:18763: checking whether pthreads work with $flag" >&5
18763 THREADS_CFLAGS="$flag"
18764 ;;
18765
18766 *)
18767 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18768 echo "configure:18769: checking for the pthreads library -l$flag" >&5
18769 THREADS_LINK="-l$flag"
18770 ;;
18771 esac
18772
18773 save_LIBS="$LIBS"
18774 save_CFLAGS="$CFLAGS"
18775 LIBS="$THREADS_LINK $LIBS"
18776 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18777
18778 cat > conftest.$ac_ext <<EOF
18779 #line 18780 "configure"
18780 #include "confdefs.h"
18781 #include <pthread.h>
18782 int main() {
18783 pthread_create(0,0,0,0);
18784 ; return 0; }
18785 EOF
18786 if { (eval echo configure:18787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18787 rm -rf conftest*
18788 THREADS_OK=yes
18789 else
18790 echo "configure: failed program was:" >&5
18791 cat conftest.$ac_ext >&5
18792 fi
18793 rm -f conftest*
18794
18795 LIBS="$save_LIBS"
18796 CFLAGS="$save_CFLAGS"
18797
18798 echo "$ac_t""$THREADS_OK" 1>&6
18799 if test "x$THREADS_OK" = "xyes"; then
18800 break;
18801 fi
18802
18803 THREADS_LINK=""
18804 THREADS_CFLAGS=""
18805 done
18806
18807 if test "x$THREADS_OK" != "xyes"; then
18808 wxUSE_THREADS=no
18809 echo "configure: warning: No thread support on this system... disabled" 1>&2
18810 else
18811 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18812 LIBS="$THREADS_LINK $LIBS"
18813
18814 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18815 echo "configure:18816: checking if more special flags are required for pthreads" >&5
18816 flag=no
18817 case "${host}" in
18818 *-aix*)
18819 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18820 flag="-D_THREAD_SAFE"
18821 ;;
18822 *-freebsd*)
18823 flag="-D_THREAD_SAFE"
18824 ;;
18825 *-hp-hpux* )
18826 flag="-D_REENTRANT"
18827 if test "x$GCC" != "xyes"; then
18828 flag="$flag -D_RWSTD_MULTI_THREAD"
18829 fi
18830 ;;
18831 *solaris* | alpha*-osf*)
18832 flag="-D_REENTRANT"
18833 ;;
18834 esac
18835 echo "$ac_t""${flag}" 1>&6
18836 if test "x$flag" != xno; then
18837 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18838 fi
18839
18840 if test "x$THREADS_CFLAGS" != "x"; then
18841 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18842 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18843 fi
18844 fi
18845 fi
18846
18847 if test "$wxUSE_THREADS" = "yes" ; then
18848 for ac_func in thr_setconcurrency
18849 do
18850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18851 echo "configure:18852: checking for $ac_func" >&5
18852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18853 echo $ac_n "(cached) $ac_c" 1>&6
18854 else
18855 cat > conftest.$ac_ext <<EOF
18856 #line 18857 "configure"
18857 #include "confdefs.h"
18858 /* System header to define __stub macros and hopefully few prototypes,
18859 which can conflict with char $ac_func(); below. */
18860 #include <assert.h>
18861 /* Override any gcc2 internal prototype to avoid an error. */
18862 /* We use char because int might match the return type of a gcc2
18863 builtin and then its argument prototype would still apply. */
18864 char $ac_func();
18865
18866 int main() {
18867
18868 /* The GNU C library defines this for functions which it implements
18869 to always fail with ENOSYS. Some functions are actually named
18870 something starting with __ and the normal name is an alias. */
18871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18872 choke me
18873 #else
18874 $ac_func();
18875 #endif
18876
18877 ; return 0; }
18878 EOF
18879 if { (eval echo configure:18880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18880 rm -rf conftest*
18881 eval "ac_cv_func_$ac_func=yes"
18882 else
18883 echo "configure: failed program was:" >&5
18884 cat conftest.$ac_ext >&5
18885 rm -rf conftest*
18886 eval "ac_cv_func_$ac_func=no"
18887 fi
18888 rm -f conftest*
18889 fi
18890
18891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18892 echo "$ac_t""yes" 1>&6
18893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18894 cat >> confdefs.h <<EOF
18895 #define $ac_tr_func 1
18896 EOF
18897
18898 else
18899 echo "$ac_t""no" 1>&6
18900 fi
18901 done
18902
18903
18904 for ac_hdr in sched.h
18905 do
18906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18908 echo "configure:18909: checking for $ac_hdr" >&5
18909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18910 echo $ac_n "(cached) $ac_c" 1>&6
18911 else
18912 cat > conftest.$ac_ext <<EOF
18913 #line 18914 "configure"
18914 #include "confdefs.h"
18915 #include <$ac_hdr>
18916 EOF
18917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18918 { (eval echo configure:18919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18920 if test -z "$ac_err"; then
18921 rm -rf conftest*
18922 eval "ac_cv_header_$ac_safe=yes"
18923 else
18924 echo "$ac_err" >&5
18925 echo "configure: failed program was:" >&5
18926 cat conftest.$ac_ext >&5
18927 rm -rf conftest*
18928 eval "ac_cv_header_$ac_safe=no"
18929 fi
18930 rm -f conftest*
18931 fi
18932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18933 echo "$ac_t""yes" 1>&6
18934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18935 cat >> confdefs.h <<EOF
18936 #define $ac_tr_hdr 1
18937 EOF
18938
18939 else
18940 echo "$ac_t""no" 1>&6
18941 fi
18942 done
18943
18944 if test "$ac_cv_header_sched_h" = "yes"; then
18945 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18946 echo "configure:18947: checking for sched_yield" >&5
18947 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18948 echo $ac_n "(cached) $ac_c" 1>&6
18949 else
18950 cat > conftest.$ac_ext <<EOF
18951 #line 18952 "configure"
18952 #include "confdefs.h"
18953 /* System header to define __stub macros and hopefully few prototypes,
18954 which can conflict with char sched_yield(); below. */
18955 #include <assert.h>
18956 /* Override any gcc2 internal prototype to avoid an error. */
18957 /* We use char because int might match the return type of a gcc2
18958 builtin and then its argument prototype would still apply. */
18959 char sched_yield();
18960
18961 int main() {
18962
18963 /* The GNU C library defines this for functions which it implements
18964 to always fail with ENOSYS. Some functions are actually named
18965 something starting with __ and the normal name is an alias. */
18966 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18967 choke me
18968 #else
18969 sched_yield();
18970 #endif
18971
18972 ; return 0; }
18973 EOF
18974 if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18975 rm -rf conftest*
18976 eval "ac_cv_func_sched_yield=yes"
18977 else
18978 echo "configure: failed program was:" >&5
18979 cat conftest.$ac_ext >&5
18980 rm -rf conftest*
18981 eval "ac_cv_func_sched_yield=no"
18982 fi
18983 rm -f conftest*
18984 fi
18985
18986 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18987 echo "$ac_t""yes" 1>&6
18988 cat >> confdefs.h <<\EOF
18989 #define HAVE_SCHED_YIELD 1
18990 EOF
18991
18992 else
18993 echo "$ac_t""no" 1>&6
18994
18995 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18996 echo "configure:18997: checking for sched_yield in -lposix4" >&5
18997 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18999 echo $ac_n "(cached) $ac_c" 1>&6
19000 else
19001 ac_save_LIBS="$LIBS"
19002 LIBS="-lposix4 $LIBS"
19003 cat > conftest.$ac_ext <<EOF
19004 #line 19005 "configure"
19005 #include "confdefs.h"
19006 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char sched_yield();
19010
19011 int main() {
19012 sched_yield()
19013 ; return 0; }
19014 EOF
19015 if { (eval echo configure:19016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19016 rm -rf conftest*
19017 eval "ac_cv_lib_$ac_lib_var=yes"
19018 else
19019 echo "configure: failed program was:" >&5
19020 cat conftest.$ac_ext >&5
19021 rm -rf conftest*
19022 eval "ac_cv_lib_$ac_lib_var=no"
19023 fi
19024 rm -f conftest*
19025 LIBS="$ac_save_LIBS"
19026
19027 fi
19028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19029 echo "$ac_t""yes" 1>&6
19030 cat >> confdefs.h <<\EOF
19031 #define HAVE_SCHED_YIELD 1
19032 EOF
19033 POSIX4_LINK=" -lposix4"
19034 else
19035 echo "$ac_t""no" 1>&6
19036 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19037
19038 fi
19039
19040
19041
19042 fi
19043
19044 fi
19045
19046 HAVE_PRIOR_FUNCS=0
19047 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19048 echo "configure:19049: checking for pthread_attr_getschedpolicy" >&5
19049 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19050 echo $ac_n "(cached) $ac_c" 1>&6
19051 else
19052 cat > conftest.$ac_ext <<EOF
19053 #line 19054 "configure"
19054 #include "confdefs.h"
19055 /* System header to define __stub macros and hopefully few prototypes,
19056 which can conflict with char pthread_attr_getschedpolicy(); below. */
19057 #include <assert.h>
19058 /* Override any gcc2 internal prototype to avoid an error. */
19059 /* We use char because int might match the return type of a gcc2
19060 builtin and then its argument prototype would still apply. */
19061 char pthread_attr_getschedpolicy();
19062
19063 int main() {
19064
19065 /* The GNU C library defines this for functions which it implements
19066 to always fail with ENOSYS. Some functions are actually named
19067 something starting with __ and the normal name is an alias. */
19068 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19069 choke me
19070 #else
19071 pthread_attr_getschedpolicy();
19072 #endif
19073
19074 ; return 0; }
19075 EOF
19076 if { (eval echo configure:19077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19077 rm -rf conftest*
19078 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19079 else
19080 echo "configure: failed program was:" >&5
19081 cat conftest.$ac_ext >&5
19082 rm -rf conftest*
19083 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19084 fi
19085 rm -f conftest*
19086 fi
19087
19088 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19089 echo "$ac_t""yes" 1>&6
19090 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19091 echo "configure:19092: checking for pthread_attr_setschedparam" >&5
19092 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19093 echo $ac_n "(cached) $ac_c" 1>&6
19094 else
19095 cat > conftest.$ac_ext <<EOF
19096 #line 19097 "configure"
19097 #include "confdefs.h"
19098 /* System header to define __stub macros and hopefully few prototypes,
19099 which can conflict with char pthread_attr_setschedparam(); below. */
19100 #include <assert.h>
19101 /* Override any gcc2 internal prototype to avoid an error. */
19102 /* We use char because int might match the return type of a gcc2
19103 builtin and then its argument prototype would still apply. */
19104 char pthread_attr_setschedparam();
19105
19106 int main() {
19107
19108 /* The GNU C library defines this for functions which it implements
19109 to always fail with ENOSYS. Some functions are actually named
19110 something starting with __ and the normal name is an alias. */
19111 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19112 choke me
19113 #else
19114 pthread_attr_setschedparam();
19115 #endif
19116
19117 ; return 0; }
19118 EOF
19119 if { (eval echo configure:19120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19120 rm -rf conftest*
19121 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19122 else
19123 echo "configure: failed program was:" >&5
19124 cat conftest.$ac_ext >&5
19125 rm -rf conftest*
19126 eval "ac_cv_func_pthread_attr_setschedparam=no"
19127 fi
19128 rm -f conftest*
19129 fi
19130
19131 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19132 echo "$ac_t""yes" 1>&6
19133 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19134 echo "configure:19135: checking for sched_get_priority_max" >&5
19135 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19136 echo $ac_n "(cached) $ac_c" 1>&6
19137 else
19138 cat > conftest.$ac_ext <<EOF
19139 #line 19140 "configure"
19140 #include "confdefs.h"
19141 /* System header to define __stub macros and hopefully few prototypes
19142 else
19143 echo "$ac_t""no" 1>&6
19144 which can conflict with char sched_get_priority_max(); below. */
19145 #include <assert.h>
19146 /* Override any gcc2 internal prototype to avoid an error. */
19147 /* We use char because int might match the return type of a gcc2
19148 builtin and then its argument prototype would still apply. */
19149 char sched_get_priority_max();
19150
19151 int main() {
19152
19153 /* The GNU C library defines this for functions which it implements
19154 to always fail with ENOSYS. Some functions are actually named
19155 something starting with __ and the normal name is an alias. */
19156 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19157 choke me
19158 #else
19159 sched_get_priority_max();
19160 #endif
19161
19162 ; return 0; }
19163 EOF
19164 if { (eval echo configure:19165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19165 rm -rf conftest*
19166 eval "ac_cv_func_sched_get_priority_max=yes"
19167 else
19168 echo "configure: failed program was:" >&5
19169 cat conftest.$ac_ext >&5
19170 rm -rf conftest*
19171 eval "ac_cv_func_sched_get_priority_max=no"
19172 fi
19173 rm -f conftest*
19174 fi
19175
19176 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19177 echo "$ac_t""yes" 1>&6
19178 HAVE_PRIOR_FUNCS=1
19179 else
19180 echo "$ac_t""no" 1>&6
19181 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19182 echo "configure:19183: checking for sched_get_priority_max in -lposix4" >&5
19183 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19185 echo $ac_n "(cached) $ac_c" 1>&6
19186 else
19187 ac_save_LIBS="$LIBS"
19188 LIBS="-lposix4 $LIBS"
19189 cat > conftest.$ac_ext <<EOF
19190 #line 19191 "configure"
19191 #include "confdefs.h"
19192 /* Override any gcc2 internal prototype to avoid an error. */
19193 /* We use char because int might match the return type of a gcc2
19194 builtin and then its argument prototype would still apply. */
19195 char sched_get_priority_max();
19196
19197 int main() {
19198 sched_get_priority_max()
19199 ; return 0; }
19200 EOF
19201 if { (eval echo configure:19202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19202 rm -rf conftest*
19203 eval "ac_cv_lib_$ac_lib_var=yes"
19204 else
19205 echo "configure: failed program was:" >&5
19206 cat conftest.$ac_ext >&5
19207 rm -rf conftest*
19208 eval "ac_cv_lib_$ac_lib_var=no"
19209 fi
19210 rm -f conftest*
19211 LIBS="$ac_save_LIBS"
19212
19213 fi
19214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19215 echo "$ac_t""yes" 1>&6
19216
19217 HAVE_PRIOR_FUNCS=1
19218 POSIX4_LINK=" -lposix4"
19219
19220 else
19221 echo "$ac_t""no" 1>&6
19222 fi
19223
19224
19225 fi
19226
19227
19228 else
19229 echo "$ac_t""no" 1>&6
19230 fi
19231
19232
19233 fi
19234
19235
19236 if test "$HAVE_PRIOR_FUNCS" = 1; then
19237 cat >> confdefs.h <<\EOF
19238 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19239 EOF
19240
19241 else
19242 echo "configure: warning: Setting thread priority will not work" 1>&2
19243 fi
19244
19245 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19246 echo "configure:19247: checking for pthread_cancel" >&5
19247 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19248 echo $ac_n "(cached) $ac_c" 1>&6
19249 else
19250 cat > conftest.$ac_ext <<EOF
19251 #line 19252 "configure"
19252 #include "confdefs.h"
19253 /* System header to define __stub macros and hopefully few prototypes,
19254 which can conflict with char pthread_cancel(); below. */
19255 #include <assert.h>
19256 /* Override any gcc2 internal prototype to avoid an error. */
19257 /* We use char because int might match the return type of a gcc2
19258 builtin and then its argument prototype would still apply. */
19259 char pthread_cancel();
19260
19261 int main() {
19262
19263 /* The GNU C library defines this for functions which it implements
19264 to always fail with ENOSYS. Some functions are actually named
19265 something starting with __ and the normal name is an alias. */
19266 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19267 choke me
19268 #else
19269 pthread_cancel();
19270 #endif
19271
19272 ; return 0; }
19273 EOF
19274 if { (eval echo configure:19275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19275 rm -rf conftest*
19276 eval "ac_cv_func_pthread_cancel=yes"
19277 else
19278 echo "configure: failed program was:" >&5
19279 cat conftest.$ac_ext >&5
19280 rm -rf conftest*
19281 eval "ac_cv_func_pthread_cancel=no"
19282 fi
19283 rm -f conftest*
19284 fi
19285
19286 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19287 echo "$ac_t""yes" 1>&6
19288 cat >> confdefs.h <<\EOF
19289 #define HAVE_PTHREAD_CANCEL 1
19290 EOF
19291
19292 else
19293 echo "$ac_t""no" 1>&6
19294 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19295 fi
19296
19297
19298 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19299 echo "configure:19300: checking for pthread_cleanup_push/pop" >&5
19300 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19301 echo $ac_n "(cached) $ac_c" 1>&6
19302 else
19303
19304 cat > conftest.$ac_ext <<EOF
19305 #line 19306 "configure"
19306 #include "confdefs.h"
19307 #include <pthread.h>
19308 int main() {
19309
19310 pthread_cleanup_push(NULL, NULL);
19311 pthread_cleanup_pop(0);
19312
19313 ; return 0; }
19314 EOF
19315 if { (eval echo configure:19316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19316 rm -rf conftest*
19317
19318 wx_cv_func_pthread_cleanup_push=yes
19319
19320 else
19321 echo "configure: failed program was:" >&5
19322 cat conftest.$ac_ext >&5
19323 rm -rf conftest*
19324
19325 wx_cv_func_pthread_cleanup_push=no
19326
19327 fi
19328 rm -f conftest*
19329
19330 fi
19331
19332 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19333
19334 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19335 cat >> confdefs.h <<\EOF
19336 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19337 EOF
19338
19339 fi
19340
19341
19342 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19343 echo "configure:19344: checking for pthread_mutexattr_t" >&5
19344 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19345 echo $ac_n "(cached) $ac_c" 1>&6
19346 else
19347
19348 cat > conftest.$ac_ext <<EOF
19349 #line 19350 "configure"
19350 #include "confdefs.h"
19351 #include <pthread.h>
19352 int main() {
19353
19354 pthread_mutexattr_t attr;
19355 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19356
19357 ; return 0; }
19358 EOF
19359 if { (eval echo configure:19360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19360 rm -rf conftest*
19361
19362 wx_cv_type_pthread_mutexattr_t=yes
19363
19364 else
19365 echo "configure: failed program was:" >&5
19366 cat conftest.$ac_ext >&5
19367 rm -rf conftest*
19368
19369 wx_cv_type_pthread_mutexattr_t=no
19370
19371
19372 fi
19373 rm -f conftest*
19374
19375 fi
19376
19377 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19378
19379 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19380 cat >> confdefs.h <<\EOF
19381 #define HAVE_PTHREAD_MUTEXATTR_T 1
19382 EOF
19383
19384 else
19385 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19386 echo "configure:19387: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19387 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19388 echo $ac_n "(cached) $ac_c" 1>&6
19389 else
19390
19391 cat > conftest.$ac_ext <<EOF
19392 #line 19393 "configure"
19393 #include "confdefs.h"
19394 #include <pthread.h>
19395 int main() {
19396
19397 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19398
19399 ; return 0; }
19400 EOF
19401 if { (eval echo configure:19402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19402 rm -rf conftest*
19403
19404 wx_cv_type_pthread_rec_mutex_init=yes
19405
19406 else
19407 echo "configure: failed program was:" >&5
19408 cat conftest.$ac_ext >&5
19409 rm -rf conftest*
19410
19411 wx_cv_type_pthread_rec_mutex_init=no
19412
19413
19414 fi
19415 rm -f conftest*
19416
19417 fi
19418
19419 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19420 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19421 cat >> confdefs.h <<\EOF
19422 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19423 EOF
19424
19425 else
19426 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19427 fi
19428 fi
19429 fi
19430
19431 else
19432 if test "$wxUSE_THREADS" = "yes" ; then
19433 case "${host}" in
19434 *-*-mingw32* )
19435 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19436 echo "configure:19437: checking if compiler supports -mthreads" >&5
19437 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19438 echo $ac_n "(cached) $ac_c" 1>&6
19439 else
19440
19441 CFLAGS_OLD="$CFLAGS"
19442 CFLAGS="$CFLAGS -mthreads"
19443 cat > conftest.$ac_ext <<EOF
19444 #line 19445 "configure"
19445 #include "confdefs.h"
19446
19447 int main() {
19448
19449 ; return 0; }
19450 EOF
19451 if { (eval echo configure:19452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19452 rm -rf conftest*
19453 wx_cv_cflags_mthread=yes
19454 else
19455 echo "configure: failed program was:" >&5
19456 cat conftest.$ac_ext >&5
19457 rm -rf conftest*
19458 wx_cv_cflags_mthread=no
19459
19460 fi
19461 rm -f conftest*
19462
19463
19464 fi
19465
19466 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19467
19468 if test "$wx_cv_cflags_mthread" = "yes"; then
19469 CXXFLAGS="$CXXFLAGS -mthreads"
19470 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19471 LDFLAGS="$LDFLAGS -mthreads"
19472 else
19473 CFLAGS="$CFLAGS_OLD"
19474 fi
19475 ;;
19476 esac
19477 fi
19478 fi
19479
19480 if test "$wxUSE_THREADS" = "yes"; then
19481 cat >> confdefs.h <<\EOF
19482 #define wxUSE_THREADS 1
19483 EOF
19484
19485
19486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19487 else
19488 if test "$ac_cv_func_strtok_r" = "yes"; then
19489 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19490 echo "configure:19491: checking if -D_REENTRANT is needed" >&5
19491 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19492 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19493 echo "$ac_t""yes" 1>&6
19494 else
19495 echo "$ac_t""no" 1>&6
19496 fi
19497 fi
19498 fi
19499
19500 if test "$WXGTK20" = 1 ; then
19501 cat >> confdefs.h <<EOF
19502 #define __WXGTK20__ $WXGTK20
19503 EOF
19504
19505 WXGTK12=1
19506 fi
19507
19508 if test "$WXGTK12" = 1 ; then
19509 cat >> confdefs.h <<EOF
19510 #define __WXGTK12__ $WXGTK12
19511 EOF
19512
19513 fi
19514
19515 if test "$WXGTK127" = 1 ; then
19516 cat >> confdefs.h <<EOF
19517 #define __WXGTK127__ $WXGTK127
19518 EOF
19519
19520 fi
19521
19522 WXDEBUG=
19523
19524 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19525 WXDEBUG="-g"
19526 wxUSE_OPTIMISE=no
19527 fi
19528
19529 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19530 wxUSE_DEBUG_INFO=yes
19531 WXDEBUG="-ggdb"
19532 fi
19533
19534 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19535 cat >> confdefs.h <<\EOF
19536 #define WXDEBUG 1
19537 EOF
19538
19539 WXDEBUG_DEFINE="-D__WXDEBUG__"
19540 else
19541 if test "$wxUSE_GTK" = 1 ; then
19542 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19543 fi
19544 fi
19545
19546 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19547 cat >> confdefs.h <<\EOF
19548 #define wxUSE_MEMORY_TRACING 1
19549 EOF
19550
19551 cat >> confdefs.h <<\EOF
19552 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19553 EOF
19554
19555 cat >> confdefs.h <<\EOF
19556 #define wxUSE_DEBUG_NEW_ALWAYS 1
19557 EOF
19558
19559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19560 fi
19561
19562 if test "$wxUSE_DMALLOC" = "yes" ; then
19563 DMALLOC_LIBS="-ldmalloc"
19564 fi
19565
19566 PROFILE=
19567 if test "$wxUSE_PROFILE" = "yes" ; then
19568 PROFILE=" -pg"
19569 fi
19570
19571 CODE_GEN_FLAGS=
19572 CODE_GEN_FLAGS_CXX=
19573 if test "$GCC" = "yes" ; then
19574 if test "$wxUSE_NO_RTTI" = "yes" ; then
19575 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19576 fi
19577 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19578 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19579 fi
19580 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19581 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19582 fi
19583 if test "$USE_WIN32" = 1 ; then
19584 # I'm not even really sure what this was ever added to solve,
19585 # but someone added it for mingw native builds, so I guess
19586 # they had a reason, right??
19587 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19588 fi
19589
19590 case "${host}" in
19591 powerpc*-*-aix* )
19592 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19593 ;;
19594 *-hppa* )
19595 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19596 ;;
19597 esac
19598 fi
19599
19600 OPTIMISE=
19601 if test "$wxUSE_OPTIMISE" = "no" ; then
19602 if test "$GCC" = yes ; then
19603 OPTIMISE="-O0"
19604 fi
19605 else
19606 if test "$GCC" = yes ; then
19607 OPTIMISE="-O2"
19608
19609 case "${host}" in
19610 i586-*-*|i686-*-* )
19611 OPTIMISE="${OPTIMISE} "
19612 ;;
19613 esac
19614 else
19615 OPTIMISE="-O"
19616 fi
19617 fi
19618
19619
19620 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19621 cat >> confdefs.h <<\EOF
19622 #define WXWIN_COMPATIBILITY_2 1
19623 EOF
19624
19625
19626 WXWIN_COMPATIBILITY_2_2="yes"
19627 fi
19628
19629 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19630 cat >> confdefs.h <<\EOF
19631 #define WXWIN_COMPATIBILITY_2_2 1
19632 EOF
19633
19634
19635 WXWIN_COMPATIBILITY_2_4="yes"
19636 fi
19637
19638 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19639 cat >> confdefs.h <<\EOF
19640 #define WXWIN_COMPATIBILITY_2_4 1
19641 EOF
19642
19643 fi
19644
19645
19646 if test "$wxUSE_GUI" = "yes"; then
19647 cat >> confdefs.h <<\EOF
19648 #define wxUSE_GUI 1
19649 EOF
19650
19651
19652 else
19653 cat >> confdefs.h <<\EOF
19654 #define wxUSE_NOGUI 1
19655 EOF
19656
19657 fi
19658
19659
19660 if test "$wxUSE_UNIX" = "yes"; then
19661 cat >> confdefs.h <<\EOF
19662 #define wxUSE_UNIX 1
19663 EOF
19664
19665 fi
19666
19667
19668 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19669 cat >> confdefs.h <<\EOF
19670 #define wxUSE_APPLE_IEEE 1
19671 EOF
19672
19673 fi
19674
19675 if test "$wxUSE_TIMER" = "yes"; then
19676 cat >> confdefs.h <<\EOF
19677 #define wxUSE_TIMER 1
19678 EOF
19679
19680 fi
19681
19682 if test "$wxUSE_WAVE" = "yes"; then
19683 cat >> confdefs.h <<\EOF
19684 #define wxUSE_WAVE 1
19685 EOF
19686
19687 fi
19688
19689 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19690 cat >> confdefs.h <<\EOF
19691 #define wxUSE_CMDLINE_PARSER 1
19692 EOF
19693
19694 fi
19695
19696 if test "$wxUSE_STOPWATCH" = "yes"; then
19697 cat >> confdefs.h <<\EOF
19698 #define wxUSE_STOPWATCH 1
19699 EOF
19700
19701 fi
19702
19703 if test "$wxUSE_DATETIME" = "yes"; then
19704 cat >> confdefs.h <<\EOF
19705 #define wxUSE_DATETIME 1
19706 EOF
19707
19708 fi
19709
19710 if test "$wxUSE_TIMEDATE" = "yes"; then
19711 cat >> confdefs.h <<\EOF
19712 #define wxUSE_TIMEDATE 1
19713 EOF
19714
19715 fi
19716
19717 if test "$wxUSE_FILE" = "yes"; then
19718 cat >> confdefs.h <<\EOF
19719 #define wxUSE_FILE 1
19720 EOF
19721
19722 fi
19723
19724 if test "$wxUSE_FFILE" = "yes"; then
19725 cat >> confdefs.h <<\EOF
19726 #define wxUSE_FFILE 1
19727 EOF
19728
19729 fi
19730
19731 if test "$wxUSE_FILESYSTEM" = "yes"; then
19732 cat >> confdefs.h <<\EOF
19733 #define wxUSE_FILESYSTEM 1
19734 EOF
19735
19736 fi
19737
19738 if test "$wxUSE_FS_INET" = "yes"; then
19739 cat >> confdefs.h <<\EOF
19740 #define wxUSE_FS_INET 1
19741 EOF
19742
19743 fi
19744
19745 if test "$wxUSE_FS_ZIP" = "yes"; then
19746 cat >> confdefs.h <<\EOF
19747 #define wxUSE_FS_ZIP 1
19748 EOF
19749
19750 fi
19751
19752 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19753 cat >> confdefs.h <<\EOF
19754 #define wxUSE_ZIPSTREAM 1
19755 EOF
19756
19757 fi
19758
19759 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19760 cat >> confdefs.h <<\EOF
19761 #define wxUSE_ON_FATAL_EXCEPTION 1
19762 EOF
19763
19764 fi
19765
19766 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19767 cat >> confdefs.h <<\EOF
19768 #define wxUSE_SNGLINST_CHECKER 1
19769 EOF
19770
19771 fi
19772
19773 if test "$wxUSE_BUSYINFO" = "yes"; then
19774 cat >> confdefs.h <<\EOF
19775 #define wxUSE_BUSYINFO 1
19776 EOF
19777
19778 fi
19779
19780 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19781 cat >> confdefs.h <<\EOF
19782 #define wxUSE_STD_IOSTREAM 1
19783 EOF
19784
19785 fi
19786
19787 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19788 cat >> confdefs.h <<\EOF
19789 #define wxUSE_TEXTBUFFER 1
19790 EOF
19791
19792 fi
19793
19794 if test "$wxUSE_TEXTFILE" = "yes"; then
19795 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19796 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19797 else
19798 cat >> confdefs.h <<\EOF
19799 #define wxUSE_TEXTFILE 1
19800 EOF
19801
19802 fi
19803 fi
19804
19805 if test "$wxUSE_CONFIG" = "yes" ; then
19806 if test "$wxUSE_TEXTFILE" != "yes"; then
19807 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19808 else
19809 cat >> confdefs.h <<\EOF
19810 #define wxUSE_CONFIG 1
19811 EOF
19812
19813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19814 fi
19815 fi
19816
19817 if test "$wxUSE_INTL" = "yes" ; then
19818 if test "$wxUSE_FILE" != "yes"; then
19819 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19820 else
19821 cat >> confdefs.h <<\EOF
19822 #define wxUSE_INTL 1
19823 EOF
19824
19825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19826 GUIDIST="$GUIDIST INTL_DIST"
19827 fi
19828 fi
19829
19830 if test "$wxUSE_LOG" = "yes"; then
19831 cat >> confdefs.h <<\EOF
19832 #define wxUSE_LOG 1
19833 EOF
19834
19835
19836 if test "$wxUSE_LOGGUI" = "yes"; then
19837 cat >> confdefs.h <<\EOF
19838 #define wxUSE_LOGGUI 1
19839 EOF
19840
19841 fi
19842
19843 if test "$wxUSE_LOGWINDOW" = "yes"; then
19844 cat >> confdefs.h <<\EOF
19845 #define wxUSE_LOGWINDOW 1
19846 EOF
19847
19848 fi
19849
19850 if test "$wxUSE_LOGDIALOG" = "yes"; then
19851 cat >> confdefs.h <<\EOF
19852 #define wxUSE_LOG_DIALOG 1
19853 EOF
19854
19855 fi
19856 fi
19857
19858 if test "$wxUSE_LONGLONG" = "yes"; then
19859 cat >> confdefs.h <<\EOF
19860 #define wxUSE_LONGLONG 1
19861 EOF
19862
19863 fi
19864
19865 if test "$wxUSE_GEOMETRY" = "yes"; then
19866 cat >> confdefs.h <<\EOF
19867 #define wxUSE_GEOMETRY 1
19868 EOF
19869
19870 fi
19871
19872 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19873 cat >> confdefs.h <<\EOF
19874 #define wxUSE_DIALUP_MANAGER 1
19875 EOF
19876
19877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19878 fi
19879
19880 if test "$wxUSE_STREAMS" = "yes" ; then
19881 cat >> confdefs.h <<\EOF
19882 #define wxUSE_STREAMS 1
19883 EOF
19884
19885 fi
19886
19887
19888 if test "$wxUSE_DATETIME" = "yes"; then
19889 for ac_func in strptime
19890 do
19891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19892 echo "configure:19893: checking for $ac_func" >&5
19893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19894 echo $ac_n "(cached) $ac_c" 1>&6
19895 else
19896 cat > conftest.$ac_ext <<EOF
19897 #line 19898 "configure"
19898 #include "confdefs.h"
19899 /* System header to define __stub macros and hopefully few prototypes,
19900 which can conflict with char $ac_func(); below. */
19901 #include <assert.h>
19902 /* Override any gcc2 internal prototype to avoid an error. */
19903 /* We use char because int might match the return type of a gcc2
19904 builtin and then its argument prototype would still apply. */
19905 char $ac_func();
19906
19907 int main() {
19908
19909 /* The GNU C library defines this for functions which it implements
19910 to always fail with ENOSYS. Some functions are actually named
19911 something starting with __ and the normal name is an alias. */
19912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19913 choke me
19914 #else
19915 $ac_func();
19916 #endif
19917
19918 ; return 0; }
19919 EOF
19920 if { (eval echo configure:19921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19921 rm -rf conftest*
19922 eval "ac_cv_func_$ac_func=yes"
19923 else
19924 echo "configure: failed program was:" >&5
19925 cat conftest.$ac_ext >&5
19926 rm -rf conftest*
19927 eval "ac_cv_func_$ac_func=no"
19928 fi
19929 rm -f conftest*
19930 fi
19931
19932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19933 echo "$ac_t""yes" 1>&6
19934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19935 cat >> confdefs.h <<EOF
19936 #define $ac_tr_func 1
19937 EOF
19938
19939 else
19940 echo "$ac_t""no" 1>&6
19941 fi
19942 done
19943
19944
19945 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19946 echo "configure:19947: checking for timezone variable in <time.h>" >&5
19947 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19948 echo $ac_n "(cached) $ac_c" 1>&6
19949 else
19950
19951 cat > conftest.$ac_ext <<EOF
19952 #line 19953 "configure"
19953 #include "confdefs.h"
19954
19955 #include <time.h>
19956
19957 int main() {
19958
19959 int tz;
19960 tz = timezone;
19961
19962 ; return 0; }
19963 EOF
19964 if { (eval echo configure:19965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19965 rm -rf conftest*
19966
19967 wx_cv_var_timezone=timezone
19968
19969 else
19970 echo "configure: failed program was:" >&5
19971 cat conftest.$ac_ext >&5
19972 rm -rf conftest*
19973
19974 cat > conftest.$ac_ext <<EOF
19975 #line 19976 "configure"
19976 #include "confdefs.h"
19977
19978 #include <time.h>
19979
19980 int main() {
19981
19982 int tz;
19983 tz = _timezone;
19984
19985 ; return 0; }
19986 EOF
19987 if { (eval echo configure:19988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19988 rm -rf conftest*
19989
19990 wx_cv_var_timezone=_timezone
19991
19992 else
19993 echo "configure: failed program was:" >&5
19994 cat conftest.$ac_ext >&5
19995 rm -rf conftest*
19996
19997 cat > conftest.$ac_ext <<EOF
19998 #line 19999 "configure"
19999 #include "confdefs.h"
20000
20001 #include <time.h>
20002
20003 int main() {
20004
20005 int tz;
20006 tz = __timezone;
20007
20008 ; return 0; }
20009 EOF
20010 if { (eval echo configure:20011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20011 rm -rf conftest*
20012
20013 wx_cv_var_timezone=__timezone
20014
20015 else
20016 echo "configure: failed program was:" >&5
20017 cat conftest.$ac_ext >&5
20018 rm -rf conftest*
20019
20020 if test "$USE_DOS" = 0 ; then
20021 echo "configure: warning: no timezone variable" 1>&2
20022 fi
20023
20024
20025 fi
20026 rm -f conftest*
20027
20028
20029 fi
20030 rm -f conftest*
20031
20032
20033 fi
20034 rm -f conftest*
20035
20036
20037 fi
20038
20039 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20040
20041 if test "x$wx_cv_var_timezone" != x ; then
20042 cat >> confdefs.h <<EOF
20043 #define WX_TIMEZONE $wx_cv_var_timezone
20044 EOF
20045
20046 fi
20047
20048 for ac_func in localtime
20049 do
20050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20051 echo "configure:20052: checking for $ac_func" >&5
20052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20053 echo $ac_n "(cached) $ac_c" 1>&6
20054 else
20055 cat > conftest.$ac_ext <<EOF
20056 #line 20057 "configure"
20057 #include "confdefs.h"
20058 /* System header to define __stub macros and hopefully few prototypes,
20059 which can conflict with char $ac_func(); below. */
20060 #include <assert.h>
20061 /* Override any gcc2 internal prototype to avoid an error. */
20062 /* We use char because int might match the return type of a gcc2
20063 builtin and then its argument prototype would still apply. */
20064 char $ac_func();
20065
20066 int main() {
20067
20068 /* The GNU C library defines this for functions which it implements
20069 to always fail with ENOSYS. Some functions are actually named
20070 something starting with __ and the normal name is an alias. */
20071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20072 choke me
20073 #else
20074 $ac_func();
20075 #endif
20076
20077 ; return 0; }
20078 EOF
20079 if { (eval echo configure:20080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20080 rm -rf conftest*
20081 eval "ac_cv_func_$ac_func=yes"
20082 else
20083 echo "configure: failed program was:" >&5
20084 cat conftest.$ac_ext >&5
20085 rm -rf conftest*
20086 eval "ac_cv_func_$ac_func=no"
20087 fi
20088 rm -f conftest*
20089 fi
20090
20091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20092 echo "$ac_t""yes" 1>&6
20093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20094 cat >> confdefs.h <<EOF
20095 #define $ac_tr_func 1
20096 EOF
20097
20098 else
20099 echo "$ac_t""no" 1>&6
20100 fi
20101 done
20102
20103
20104 if test "$ac_cv_func_localtime" = "yes"; then
20105 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20106 echo "configure:20107: checking for tm_gmtoff in struct tm" >&5
20107 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20108 echo $ac_n "(cached) $ac_c" 1>&6
20109 else
20110
20111 cat > conftest.$ac_ext <<EOF
20112 #line 20113 "configure"
20113 #include "confdefs.h"
20114
20115 #include <time.h>
20116
20117 int main() {
20118
20119 struct tm tm;
20120 tm.tm_gmtoff++;
20121
20122 ; return 0; }
20123 EOF
20124 if { (eval echo configure:20125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20125 rm -rf conftest*
20126
20127 wx_cv_struct_tm_has_gmtoff=yes
20128
20129 else
20130 echo "configure: failed program was:" >&5
20131 cat conftest.$ac_ext >&5
20132 rm -rf conftest*
20133 wx_cv_struct_tm_has_gmtoff=no
20134
20135 fi
20136 rm -f conftest*
20137
20138 fi
20139
20140 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20141 fi
20142
20143 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20144 cat >> confdefs.h <<\EOF
20145 #define WX_GMTOFF_IN_TM 1
20146 EOF
20147
20148 fi
20149
20150 for ac_func in gettimeofday ftime
20151 do
20152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20153 echo "configure:20154: checking for $ac_func" >&5
20154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20155 echo $ac_n "(cached) $ac_c" 1>&6
20156 else
20157 cat > conftest.$ac_ext <<EOF
20158 #line 20159 "configure"
20159 #include "confdefs.h"
20160 /* System header to define __stub macros and hopefully few prototypes,
20161 which can conflict with char $ac_func(); below. */
20162 #include <assert.h>
20163 /* Override any gcc2 internal prototype to avoid an error. */
20164 /* We use char because int might match the return type of a gcc2
20165 builtin and then its argument prototype would still apply. */
20166 char $ac_func();
20167
20168 int main() {
20169
20170 /* The GNU C library defines this for functions which it implements
20171 to always fail with ENOSYS. Some functions are actually named
20172 something starting with __ and the normal name is an alias. */
20173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20174 choke me
20175 #else
20176 $ac_func();
20177 #endif
20178
20179 ; return 0; }
20180 EOF
20181 if { (eval echo configure:20182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20182 rm -rf conftest*
20183 eval "ac_cv_func_$ac_func=yes"
20184 else
20185 echo "configure: failed program was:" >&5
20186 cat conftest.$ac_ext >&5
20187 rm -rf conftest*
20188 eval "ac_cv_func_$ac_func=no"
20189 fi
20190 rm -f conftest*
20191 fi
20192
20193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20194 echo "$ac_t""yes" 1>&6
20195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20196 cat >> confdefs.h <<EOF
20197 #define $ac_tr_func 1
20198 EOF
20199 break
20200 else
20201 echo "$ac_t""no" 1>&6
20202 fi
20203 done
20204
20205
20206 if test "$ac_cv_func_gettimeofday" = "yes"; then
20207 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20208 echo "configure:20209: checking whether gettimeofday takes two arguments" >&5
20209 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20210 echo $ac_n "(cached) $ac_c" 1>&6
20211 else
20212
20213
20214 ac_ext=C
20215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20216 ac_cpp='$CXXCPP $CPPFLAGS'
20217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20219 cross_compiling=$ac_cv_prog_cxx_cross
20220
20221
20222 cat > conftest.$ac_ext <<EOF
20223 #line 20224 "configure"
20224 #include "confdefs.h"
20225
20226 #include <sys/time.h>
20227 #include <unistd.h>
20228
20229 int main() {
20230
20231 struct timeval tv;
20232 gettimeofday(&tv, NULL);
20233
20234 ; return 0; }
20235 EOF
20236 if { (eval echo configure:20237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20237 rm -rf conftest*
20238 wx_cv_func_gettimeofday_has_2_args=yes
20239 else
20240 echo "configure: failed program was:" >&5
20241 cat conftest.$ac_ext >&5
20242 rm -rf conftest*
20243 cat > conftest.$ac_ext <<EOF
20244 #line 20245 "configure"
20245 #include "confdefs.h"
20246
20247 #include <sys/time.h>
20248 #include <unistd.h>
20249
20250 int main() {
20251
20252 struct timeval tv;
20253 gettimeofday(&tv);
20254
20255 ; return 0; }
20256 EOF
20257 if { (eval echo configure:20258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20258 rm -rf conftest*
20259 wx_cv_func_gettimeofday_has_2_args=no
20260 else
20261 echo "configure: failed program was:" >&5
20262 cat conftest.$ac_ext >&5
20263 rm -rf conftest*
20264
20265 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20266 wx_cv_func_gettimeofday_has_2_args=unknown
20267
20268
20269 fi
20270 rm -f conftest*
20271
20272 fi
20273 rm -f conftest*
20274 ac_ext=c
20275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20276 ac_cpp='$CPP $CPPFLAGS'
20277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20279 cross_compiling=$ac_cv_prog_cc_cross
20280
20281
20282 fi
20283
20284 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20285
20286 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20287 cat >> confdefs.h <<\EOF
20288 #define WX_GETTIMEOFDAY_NO_TZ 1
20289 EOF
20290
20291 fi
20292 fi
20293
20294 cat >> confdefs.h <<\EOF
20295 #define wxUSE_TIMEDATE 1
20296 EOF
20297
20298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20299 fi
20300
20301
20302 if test "$wxUSE_SOCKETS" = "yes"; then
20303 if test "$wxUSE_MGL" = "1"; then
20304 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20305 wxUSE_SOCKETS="no"
20306 fi
20307 fi
20308
20309 if test "$wxUSE_SOCKETS" = "yes"; then
20310 if test "$TOOLKIT" != "MSW"; then
20311 echo $ac_n "checking for socket""... $ac_c" 1>&6
20312 echo "configure:20313: checking for socket" >&5
20313 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20314 echo $ac_n "(cached) $ac_c" 1>&6
20315 else
20316 cat > conftest.$ac_ext <<EOF
20317 #line 20318 "configure"
20318 #include "confdefs.h"
20319 /* System header to define __stub macros and hopefully few prototypes,
20320 which can conflict with char socket(); below. */
20321 #include <assert.h>
20322 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20325 char socket();
20326
20327 int main() {
20328
20329 /* The GNU C library defines this for functions which it implements
20330 to always fail with ENOSYS. Some functions are actually named
20331 something starting with __ and the normal name is an alias. */
20332 #if defined (__stub_socket) || defined (__stub___socket)
20333 choke me
20334 #else
20335 socket();
20336 #endif
20337
20338 ; return 0; }
20339 EOF
20340 if { (eval echo configure:20341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20341 rm -rf conftest*
20342 eval "ac_cv_func_socket=yes"
20343 else
20344 echo "configure: failed program was:" >&5
20345 cat conftest.$ac_ext >&5
20346 rm -rf conftest*
20347 eval "ac_cv_func_socket=no"
20348 fi
20349 rm -f conftest*
20350 fi
20351
20352 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20353 echo "$ac_t""yes" 1>&6
20354 :
20355 else
20356 echo "$ac_t""no" 1>&6
20357 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20358 echo "configure:20359: checking for socket in -lsocket" >&5
20359 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20361 echo $ac_n "(cached) $ac_c" 1>&6
20362 else
20363 ac_save_LIBS="$LIBS"
20364 LIBS="-lsocket $LIBS"
20365 cat > conftest.$ac_ext <<EOF
20366 #line 20367 "configure"
20367 #include "confdefs.h"
20368 /* Override any gcc2 internal prototype to avoid an error. */
20369 /* We use char because int might match the return type of a gcc2
20370 builtin and then its argument prototype would still apply. */
20371 char socket();
20372
20373 int main() {
20374 socket()
20375 ; return 0; }
20376 EOF
20377 if { (eval echo configure:20378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20378 rm -rf conftest*
20379 eval "ac_cv_lib_$ac_lib_var=yes"
20380 else
20381 echo "configure: failed program was:" >&5
20382 cat conftest.$ac_ext >&5
20383 rm -rf conftest*
20384 eval "ac_cv_lib_$ac_lib_var=no"
20385 fi
20386 rm -f conftest*
20387 LIBS="$ac_save_LIBS"
20388
20389 fi
20390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20391 echo "$ac_t""yes" 1>&6
20392 if test "$INET_LINK" != " -lsocket"; then
20393 INET_LINK="$INET_LINK -lsocket"
20394 fi
20395 else
20396 echo "$ac_t""no" 1>&6
20397
20398 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20399 wxUSE_SOCKETS=no
20400
20401
20402 fi
20403
20404
20405 fi
20406
20407 fi
20408 fi
20409
20410 if test "$wxUSE_SOCKETS" = "yes" ; then
20411 if test "$TOOLKIT" != "MSW"; then
20412 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20413 echo "configure:20414: checking what is the type of the third argument of getsockname" >&5
20414 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20415 echo $ac_n "(cached) $ac_c" 1>&6
20416 else
20417
20418
20419 ac_ext=C
20420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20421 ac_cpp='$CXXCPP $CPPFLAGS'
20422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20424 cross_compiling=$ac_cv_prog_cxx_cross
20425
20426
20427 cat > conftest.$ac_ext <<EOF
20428 #line 20429 "configure"
20429 #include "confdefs.h"
20430
20431 #include <sys/types.h>
20432 #include <sys/socket.h>
20433
20434 int main() {
20435
20436 socklen_t len;
20437 getsockname(0, 0, &len);
20438
20439 ; return 0; }
20440 EOF
20441 if { (eval echo configure:20442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20442 rm -rf conftest*
20443 wx_cv_type_getsockname3=socklen_t
20444 else
20445 echo "configure: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20447 rm -rf conftest*
20448 cat > conftest.$ac_ext <<EOF
20449 #line 20450 "configure"
20450 #include "confdefs.h"
20451
20452 #include <sys/types.h>
20453 #include <sys/socket.h>
20454
20455 int main() {
20456
20457 size_t len;
20458 getsockname(0, 0, &len);
20459
20460 ; return 0; }
20461 EOF
20462 if { (eval echo configure:20463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20463 rm -rf conftest*
20464 wx_cv_type_getsockname3=size_t
20465 else
20466 echo "configure: failed program was:" >&5
20467 cat conftest.$ac_ext >&5
20468 rm -rf conftest*
20469 cat > conftest.$ac_ext <<EOF
20470 #line 20471 "configure"
20471 #include "confdefs.h"
20472
20473 #include <sys/types.h>
20474 #include <sys/socket.h>
20475
20476 int main() {
20477
20478 int len;
20479 getsockname(0, 0, &len);
20480
20481 ; return 0; }
20482 EOF
20483 if { (eval echo configure:20484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20484 rm -rf conftest*
20485 wx_cv_type_getsockname3=int
20486 else
20487 echo "configure: failed program was:" >&5
20488 cat conftest.$ac_ext >&5
20489 rm -rf conftest*
20490 wx_cv_type_getsockname3=unknown
20491
20492 fi
20493 rm -f conftest*
20494
20495 fi
20496 rm -f conftest*
20497
20498 fi
20499 rm -f conftest*
20500
20501 ac_ext=c
20502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20506 cross_compiling=$ac_cv_prog_cc_cross
20507
20508
20509 fi
20510
20511 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20512
20513 if test "$wx_cv_type_getsockname3" = "unknown"; then
20514 wxUSE_SOCKETS=no
20515 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20516 else
20517 cat >> confdefs.h <<EOF
20518 #define SOCKLEN_T $wx_cv_type_getsockname3
20519 EOF
20520
20521 fi
20522 fi
20523 fi
20524
20525 if test "$wxUSE_SOCKETS" = "yes" ; then
20526 cat >> confdefs.h <<\EOF
20527 #define wxUSE_SOCKETS 1
20528 EOF
20529
20530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20531 fi
20532
20533
20534 if test "$wxUSE_GUI" = "yes"; then
20535
20536 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20537 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20538 wxUSE_JOYSTICK=no
20539 fi
20540 if test "$TOOLKIT" = "MOTIF"; then
20541 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20542 wxUSE_JOYSTICK=no
20543 fi
20544 if test "$TOOLKIT" = "X11"; then
20545 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20546 wxUSE_JOYSTICK=no
20547 fi
20548
20549 if test "$TOOLKIT" != "MSW"; then
20550 if test "$wxUSE_JOYSTICK" = "yes"; then
20551 for ac_hdr in linux/joystick.h
20552 do
20553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20555 echo "configure:20556: checking for $ac_hdr" >&5
20556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20557 echo $ac_n "(cached) $ac_c" 1>&6
20558 else
20559 cat > conftest.$ac_ext <<EOF
20560 #line 20561 "configure"
20561 #include "confdefs.h"
20562 #include <$ac_hdr>
20563 EOF
20564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20565 { (eval echo configure:20566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20567 if test -z "$ac_err"; then
20568 rm -rf conftest*
20569 eval "ac_cv_header_$ac_safe=yes"
20570 else
20571 echo "$ac_err" >&5
20572 echo "configure: failed program was:" >&5
20573 cat conftest.$ac_ext >&5
20574 rm -rf conftest*
20575 eval "ac_cv_header_$ac_safe=no"
20576 fi
20577 rm -f conftest*
20578 fi
20579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20580 echo "$ac_t""yes" 1>&6
20581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20582 cat >> confdefs.h <<EOF
20583 #define $ac_tr_hdr 1
20584 EOF
20585
20586 else
20587 echo "$ac_t""no" 1>&6
20588 fi
20589 done
20590
20591 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20592 wxUSE_JOYSTICK=no
20593 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20594 fi
20595 fi
20596 fi
20597
20598 if test "$wxUSE_JOYSTICK" = "yes"; then
20599 cat >> confdefs.h <<\EOF
20600 #define wxUSE_JOYSTICK 1
20601 EOF
20602
20603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20604 fi
20605 fi
20606
20607
20608 if test "$TOOLKIT" != "MSW"; then
20609
20610 HAVE_DL_FUNCS=0
20611 HAVE_SHL_FUNCS=0
20612 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20613 if test "$USE_DARWIN" = 1; then
20614 HAVE_DL_FUNCS=1
20615 else
20616 for ac_func in dlopen
20617 do
20618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20619 echo "configure:20620: checking for $ac_func" >&5
20620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20621 echo $ac_n "(cached) $ac_c" 1>&6
20622 else
20623 cat > conftest.$ac_ext <<EOF
20624 #line 20625 "configure"
20625 #include "confdefs.h"
20626 /* System header to define __stub macros and hopefully few prototypes,
20627 which can conflict with char $ac_func(); below. */
20628 #include <assert.h>
20629 /* Override any gcc2 internal prototype to avoid an error. */
20630 /* We use char because int might match the return type of a gcc2
20631 builtin and then its argument prototype would still apply. */
20632 char $ac_func();
20633
20634 int main() {
20635
20636 /* The GNU C library defines this for functions which it implements
20637 to always fail with ENOSYS. Some functions are actually named
20638 something starting with __ and the normal name is an alias. */
20639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20640 choke me
20641 #else
20642 $ac_func();
20643 #endif
20644
20645 ; return 0; }
20646 EOF
20647 if { (eval echo configure:20648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20648 rm -rf conftest*
20649 eval "ac_cv_func_$ac_func=yes"
20650 else
20651 echo "configure: failed program was:" >&5
20652 cat conftest.$ac_ext >&5
20653 rm -rf conftest*
20654 eval "ac_cv_func_$ac_func=no"
20655 fi
20656 rm -f conftest*
20657 fi
20658
20659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20660 echo "$ac_t""yes" 1>&6
20661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20662 cat >> confdefs.h <<EOF
20663 #define $ac_tr_func 1
20664 EOF
20665
20666 cat >> confdefs.h <<\EOF
20667 #define HAVE_DLOPEN 1
20668 EOF
20669
20670 HAVE_DL_FUNCS=1
20671
20672 else
20673 echo "$ac_t""no" 1>&6
20674 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20675 echo "configure:20676: checking for dlopen in -ldl" >&5
20676 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20678 echo $ac_n "(cached) $ac_c" 1>&6
20679 else
20680 ac_save_LIBS="$LIBS"
20681 LIBS="-ldl $LIBS"
20682 cat > conftest.$ac_ext <<EOF
20683 #line 20684 "configure"
20684 #include "confdefs.h"
20685 /* Override any gcc2 internal prototype to avoid an error. */
20686 /* We use char because int might match the return type of a gcc2
20687 builtin and then its argument prototype would still apply. */
20688 char dlopen();
20689
20690 int main() {
20691 dlopen()
20692 ; return 0; }
20693 EOF
20694 if { (eval echo configure:20695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20695 rm -rf conftest*
20696 eval "ac_cv_lib_$ac_lib_var=yes"
20697 else
20698 echo "configure: failed program was:" >&5
20699 cat conftest.$ac_ext >&5
20700 rm -rf conftest*
20701 eval "ac_cv_lib_$ac_lib_var=no"
20702 fi
20703 rm -f conftest*
20704 LIBS="$ac_save_LIBS"
20705
20706 fi
20707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20708 echo "$ac_t""yes" 1>&6
20709
20710 cat >> confdefs.h <<\EOF
20711 #define HAVE_DLOPEN 1
20712 EOF
20713
20714 HAVE_DL_FUNCS=1
20715 DL_LINK=" -ldl$DL_LINK"
20716
20717 else
20718 echo "$ac_t""no" 1>&6
20719
20720 for ac_func in shl_load
20721 do
20722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20723 echo "configure:20724: checking for $ac_func" >&5
20724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20725 echo $ac_n "(cached) $ac_c" 1>&6
20726 else
20727 cat > conftest.$ac_ext <<EOF
20728 #line 20729 "configure"
20729 #include "confdefs.h"
20730 /* System header to define __stub macros and hopefully few prototypes,
20731 which can conflict with char $ac_func(); below. */
20732 #include <assert.h>
20733 /* Override any gcc2 internal prototype to avoid an error. */
20734 /* We use char because int might match the return type of a gcc2
20735 builtin and then its argument prototype would still apply. */
20736 char $ac_func();
20737
20738 int main() {
20739
20740 /* The GNU C library defines this for functions which it implements
20741 to always fail with ENOSYS. Some functions are actually named
20742 something starting with __ and the normal name is an alias. */
20743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20744 choke me
20745 #else
20746 $ac_func();
20747 #endif
20748
20749 ; return 0; }
20750 EOF
20751 if { (eval echo configure:20752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20752 rm -rf conftest*
20753 eval "ac_cv_func_$ac_func=yes"
20754 else
20755 echo "configure: failed program was:" >&5
20756 cat conftest.$ac_ext >&5
20757 rm -rf conftest*
20758 eval "ac_cv_func_$ac_func=no"
20759 fi
20760 rm -f conftest*
20761 fi
20762
20763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20764 echo "$ac_t""yes" 1>&6
20765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20766 cat >> confdefs.h <<EOF
20767 #define $ac_tr_func 1
20768 EOF
20769
20770 cat >> confdefs.h <<\EOF
20771 #define HAVE_SHL_LOAD 1
20772 EOF
20773
20774 HAVE_SHL_FUNCS=1
20775
20776 else
20777 echo "$ac_t""no" 1>&6
20778 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20779 echo "configure:20780: checking for dld in -lshl_load" >&5
20780 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20782 echo $ac_n "(cached) $ac_c" 1>&6
20783 else
20784 ac_save_LIBS="$LIBS"
20785 LIBS="-lshl_load $LIBS"
20786 cat > conftest.$ac_ext <<EOF
20787 #line 20788 "configure"
20788 #include "confdefs.h"
20789 /* Override any gcc2 internal prototype to avoid an error. */
20790 /* We use char because int might match the return type of a gcc2
20791 builtin and then its argument prototype would still apply. */
20792 char dld();
20793
20794 int main() {
20795 dld()
20796 ; return 0; }
20797 EOF
20798 if { (eval echo configure:20799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20799 rm -rf conftest*
20800 eval "ac_cv_lib_$ac_lib_var=yes"
20801 else
20802 echo "configure: failed program was:" >&5
20803 cat conftest.$ac_ext >&5
20804 rm -rf conftest*
20805 eval "ac_cv_lib_$ac_lib_var=no"
20806 fi
20807 rm -f conftest*
20808 LIBS="$ac_save_LIBS"
20809
20810 fi
20811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20812 echo "$ac_t""yes" 1>&6
20813
20814 HAVE_SHL_FUNCS=1
20815 DL_LINK=" -ldld$DL_LINK"
20816
20817 else
20818 echo "$ac_t""no" 1>&6
20819 fi
20820
20821
20822 fi
20823 done
20824
20825
20826 fi
20827
20828
20829 fi
20830 done
20831
20832
20833 if test "$HAVE_DL_FUNCS" = 1; then
20834 for ac_func in dlerror
20835 do
20836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20837 echo "configure:20838: checking for $ac_func" >&5
20838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20839 echo $ac_n "(cached) $ac_c" 1>&6
20840 else
20841 cat > conftest.$ac_ext <<EOF
20842 #line 20843 "configure"
20843 #include "confdefs.h"
20844 /* System header to define __stub macros and hopefully few prototypes,
20845 which can conflict with char $ac_func(); below. */
20846 #include <assert.h>
20847 /* Override any gcc2 internal prototype to avoid an error. */
20848 /* We use char because int might match the return type of a gcc2
20849 builtin and then its argument prototype would still apply. */
20850 char $ac_func();
20851
20852 int main() {
20853
20854 /* The GNU C library defines this for functions which it implements
20855 to always fail with ENOSYS. Some functions are actually named
20856 something starting with __ and the normal name is an alias. */
20857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20858 choke me
20859 #else
20860 $ac_func();
20861 #endif
20862
20863 ; return 0; }
20864 EOF
20865 if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20866 rm -rf conftest*
20867 eval "ac_cv_func_$ac_func=yes"
20868 else
20869 echo "configure: failed program was:" >&5
20870 cat conftest.$ac_ext >&5
20871 rm -rf conftest*
20872 eval "ac_cv_func_$ac_func=no"
20873 fi
20874 rm -f conftest*
20875 fi
20876
20877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20878 echo "$ac_t""yes" 1>&6
20879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20880 cat >> confdefs.h <<EOF
20881 #define $ac_tr_func 1
20882 EOF
20883 cat >> confdefs.h <<\EOF
20884 #define HAVE_DLERROR 1
20885 EOF
20886
20887 else
20888 echo "$ac_t""no" 1>&6
20889 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20890 echo "configure:20891: checking for dlerror in -ldl" >&5
20891 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20893 echo $ac_n "(cached) $ac_c" 1>&6
20894 else
20895 ac_save_LIBS="$LIBS"
20896 LIBS="-ldl $LIBS"
20897 cat > conftest.$ac_ext <<EOF
20898 #line 20899 "configure"
20899 #include "confdefs.h"
20900 /* Override any gcc2 internal prototype to avoid an error. */
20901 /* We use char because int might match the return type of a gcc2
20902 builtin and then its argument prototype would still apply. */
20903 char dlerror();
20904
20905 int main() {
20906 dlerror()
20907 ; return 0; }
20908 EOF
20909 if { (eval echo configure:20910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20910 rm -rf conftest*
20911 eval "ac_cv_lib_$ac_lib_var=yes"
20912 else
20913 echo "configure: failed program was:" >&5
20914 cat conftest.$ac_ext >&5
20915 rm -rf conftest*
20916 eval "ac_cv_lib_$ac_lib_var=no"
20917 fi
20918 rm -f conftest*
20919 LIBS="$ac_save_LIBS"
20920
20921 fi
20922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20923 echo "$ac_t""yes" 1>&6
20924 cat >> confdefs.h <<\EOF
20925 #define HAVE_DLERROR 1
20926 EOF
20927
20928 else
20929 echo "$ac_t""no" 1>&6
20930 fi
20931
20932 fi
20933 done
20934
20935 fi
20936 fi
20937
20938 if test "$HAVE_DL_FUNCS" = 0; then
20939 if test "$HAVE_SHL_FUNCS" = 0; then
20940 if test "$USE_UNIX" = 1; then
20941 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20942 wxUSE_DYNAMIC_LOADER=no
20943 wxUSE_DYNLIB_CLASS=no
20944 else
20945 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20946 fi
20947 fi
20948 fi
20949 fi
20950 fi
20951
20952 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20953 cat >> confdefs.h <<\EOF
20954 #define wxUSE_DYNAMIC_LOADER 1
20955 EOF
20956
20957 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20958 cat >> confdefs.h <<\EOF
20959 #define wxUSE_DYNLIB_CLASS 1
20960 EOF
20961
20962 fi
20963
20964
20965 if test "$wxUSE_FONTMAP" = "yes" ; then
20966 cat >> confdefs.h <<\EOF
20967 #define wxUSE_FONTMAP 1
20968 EOF
20969
20970 fi
20971
20972 if test "$wxUSE_UNICODE" = "yes" ; then
20973 cat >> confdefs.h <<\EOF
20974 #define wxUSE_UNICODE 1
20975 EOF
20976
20977
20978 if test "$wxUSE_MSW" != 1; then
20979 wxUSE_UNICODE_MSLU=no
20980 fi
20981
20982 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20983 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20984 echo "configure:20985: checking for main in -lunicows" >&5
20985 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20987 echo $ac_n "(cached) $ac_c" 1>&6
20988 else
20989 ac_save_LIBS="$LIBS"
20990 LIBS="-lunicows $LIBS"
20991 cat > conftest.$ac_ext <<EOF
20992 #line 20993 "configure"
20993 #include "confdefs.h"
20994
20995 int main() {
20996 main()
20997 ; return 0; }
20998 EOF
20999 if { (eval echo configure:21000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21000 rm -rf conftest*
21001 eval "ac_cv_lib_$ac_lib_var=yes"
21002 else
21003 echo "configure: failed program was:" >&5
21004 cat conftest.$ac_ext >&5
21005 rm -rf conftest*
21006 eval "ac_cv_lib_$ac_lib_var=no"
21007 fi
21008 rm -f conftest*
21009 LIBS="$ac_save_LIBS"
21010
21011 fi
21012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21013 echo "$ac_t""yes" 1>&6
21014
21015 cat >> confdefs.h <<\EOF
21016 #define wxUSE_UNICODE_MSLU 1
21017 EOF
21018
21019
21020 else
21021 echo "$ac_t""no" 1>&6
21022
21023 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21024 Applications will only run on Windows NT/2000/XP!" 1>&2
21025 wxUSE_UNICODE_MSLU=no
21026
21027 fi
21028
21029 fi
21030 fi
21031
21032 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21033 cat >> confdefs.h <<\EOF
21034 #define wxUSE_EXPERIMENTAL_PRINTF 1
21035 EOF
21036
21037 fi
21038
21039
21040
21041 IODBC_C_SRC=""
21042 if test "$wxUSE_ODBC" = "yes" ; then
21043 cat >> confdefs.h <<\EOF
21044 #define wxUSE_ODBC 1
21045 EOF
21046
21047 WXODBCFLAG="-D_IODBC_"
21048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
21049 fi
21050
21051
21052 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21053 cat >> confdefs.h <<\EOF
21054 #define wxUSE_POSTSCRIPT 1
21055 EOF
21056
21057 fi
21058
21059 cat >> confdefs.h <<\EOF
21060 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21061 EOF
21062
21063
21064 cat >> confdefs.h <<\EOF
21065 #define wxUSE_NORMALIZED_PS_FONTS 1
21066 EOF
21067
21068
21069
21070 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21071 cat >> confdefs.h <<\EOF
21072 #define wxUSE_CONSTRAINTS 1
21073 EOF
21074
21075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21076 fi
21077
21078 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21079
21080
21081 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21082 cat >> confdefs.h <<\EOF
21083 #define wxUSE_MDI_ARCHITECTURE 1
21084 EOF
21085
21086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21087 fi
21088 fi
21089
21090 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21091 cat >> confdefs.h <<\EOF
21092 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21093 EOF
21094
21095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21096 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21097 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21098 fi
21099 fi
21100
21101 if test "$wxUSE_HELP" = "yes"; then
21102 cat >> confdefs.h <<\EOF
21103 #define wxUSE_HELP 1
21104 EOF
21105
21106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21107
21108 if test "$wxUSE_MSW" = 1; then
21109 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21110 cat >> confdefs.h <<\EOF
21111 #define wxUSE_MS_HTML_HELP 1
21112 EOF
21113
21114 fi
21115 fi
21116
21117 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21118 if test "$wxUSE_HTML" = "yes"; then
21119 cat >> confdefs.h <<\EOF
21120 #define wxUSE_WXHTML_HELP 1
21121 EOF
21122
21123 else
21124 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21125 wxUSE_WXHTML_HELP=no
21126 fi
21127 fi
21128 fi
21129
21130 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21131 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21132 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21133 else
21134 cat >> confdefs.h <<\EOF
21135 #define wxUSE_PRINTING_ARCHITECTURE 1
21136 EOF
21137
21138 fi
21139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21140 fi
21141
21142 if test "$wxUSE_PROLOGIO" = "yes" ; then
21143 cat >> confdefs.h <<\EOF
21144 #define wxUSE_PROLOGIO 1
21145 EOF
21146
21147 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21148 fi
21149
21150 if test "$wxUSE_RESOURCES" = "yes" ; then
21151 if test "$wxUSE_NANOX" = "yes"; then
21152 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
21153 else
21154 cat >> confdefs.h <<\EOF
21155 #define wxUSE_RESOURCES 1
21156 EOF
21157
21158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
21159 fi
21160 if test "$wxUSE_PROLOGIO" != "yes" ; then
21161 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21162 fi
21163 fi
21164
21165 if test "$wxUSE_X_RESOURCES" = "yes"; then
21166 cat >> confdefs.h <<\EOF
21167 #define wxUSE_X_RESOURCES 1
21168 EOF
21169
21170 fi
21171
21172
21173 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21174 -o "$wxUSE_CLIPBOARD" = "yes" \
21175 -o "$wxUSE_OLE" = "yes" \
21176 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21177 for ac_hdr in ole2.h
21178 do
21179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21181 echo "configure:21182: checking for $ac_hdr" >&5
21182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21183 echo $ac_n "(cached) $ac_c" 1>&6
21184 else
21185 cat > conftest.$ac_ext <<EOF
21186 #line 21187 "configure"
21187 #include "confdefs.h"
21188 #include <$ac_hdr>
21189 EOF
21190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21191 { (eval echo configure:21192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21193 if test -z "$ac_err"; then
21194 rm -rf conftest*
21195 eval "ac_cv_header_$ac_safe=yes"
21196 else
21197 echo "$ac_err" >&5
21198 echo "configure: failed program was:" >&5
21199 cat conftest.$ac_ext >&5
21200 rm -rf conftest*
21201 eval "ac_cv_header_$ac_safe=no"
21202 fi
21203 rm -f conftest*
21204 fi
21205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21206 echo "$ac_t""yes" 1>&6
21207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21208 cat >> confdefs.h <<EOF
21209 #define $ac_tr_hdr 1
21210 EOF
21211
21212 else
21213 echo "$ac_t""no" 1>&6
21214 fi
21215 done
21216
21217
21218 if test "$ac_cv_header_ole2_h" = "yes" ; then
21219 if test "$GCC" = yes ; then
21220
21221 ac_ext=C
21222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21223 ac_cpp='$CXXCPP $CPPFLAGS'
21224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21226 cross_compiling=$ac_cv_prog_cxx_cross
21227
21228
21229 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21230 echo "configure:21231: checking if g++ requires -fvtable-thunks" >&5
21231 cat > conftest.$ac_ext <<EOF
21232 #line 21233 "configure"
21233 #include "confdefs.h"
21234 #include <windows.h>
21235 #include <ole2.h>
21236 int main() {
21237
21238 ; return 0; }
21239 EOF
21240 if { (eval echo configure:21241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21241 rm -rf conftest*
21242 echo "$ac_t""no" 1>&6
21243 else
21244 echo "configure: failed program was:" >&5
21245 cat conftest.$ac_ext >&5
21246 rm -rf conftest*
21247 echo "$ac_t""yes" 1>&6
21248 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21249 fi
21250 rm -f conftest*
21251 ac_ext=c
21252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21256 cross_compiling=$ac_cv_prog_cc_cross
21257
21258 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21259 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21260 cat >> confdefs.h <<\EOF
21261 #define wxUSE_OLE 1
21262 EOF
21263
21264
21265 fi
21266
21267 cat >> confdefs.h <<\EOF
21268 #define wxUSE_DATAOBJ 1
21269 EOF
21270
21271 else
21272 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21273
21274 wxUSE_CLIPBOARD=no
21275 wxUSE_DRAG_AND_DROP=no
21276 wxUSE_DATAOBJ=no
21277 wxUSE_OLE=no
21278 fi
21279
21280 if test "$wxUSE_METAFILE" = "yes"; then
21281 cat >> confdefs.h <<\EOF
21282 #define wxUSE_METAFILE 1
21283 EOF
21284
21285
21286 cat >> confdefs.h <<\EOF
21287 #define wxUSE_ENH_METAFILE 1
21288 EOF
21289
21290 fi
21291 fi
21292
21293 if test "$wxUSE_IPC" = "yes"; then
21294 if test "$wxUSE_SOCKETS" != "yes"; then
21295 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21296 fi
21297
21298 cat >> confdefs.h <<\EOF
21299 #define wxUSE_IPC 1
21300 EOF
21301
21302 fi
21303
21304 if test "$wxUSE_CLIPBOARD" = "yes"; then
21305 if test "$wxUSE_MGL" = 1; then
21306 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21307 wxUSE_CLIPBOARD=no
21308 fi
21309
21310 if test "$wxUSE_CLIPBOARD" = "yes"; then
21311 cat >> confdefs.h <<\EOF
21312 #define wxUSE_CLIPBOARD 1
21313 EOF
21314
21315
21316 cat >> confdefs.h <<\EOF
21317 #define wxUSE_DATAOBJ 1
21318 EOF
21319
21320 fi
21321 fi
21322
21323 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21324 if test "$wxUSE_GTK" = 1; then
21325 if test "$WXGTK12" != 1; then
21326 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21327 wxUSE_DRAG_AND_DROP=no
21328 fi
21329 fi
21330
21331 if test "$wxUSE_MOTIF" = 1; then
21332 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21333 wxUSE_DRAG_AND_DROP=no
21334 fi
21335
21336 if test "$wxUSE_X11" = 1; then
21337 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21338 wxUSE_DRAG_AND_DROP=no
21339 fi
21340
21341 if test "$wxUSE_MGL" = 1; then
21342 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21343 wxUSE_DRAG_AND_DROP=no
21344 fi
21345
21346 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21347 cat >> confdefs.h <<\EOF
21348 #define wxUSE_DRAG_AND_DROP 1
21349 EOF
21350
21351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21352 fi
21353
21354 fi
21355
21356 if test "$wxUSE_SPLINES" = "yes" ; then
21357 cat >> confdefs.h <<\EOF
21358 #define wxUSE_SPLINES 1
21359 EOF
21360
21361 fi
21362
21363
21364 USES_CONTROLS=0
21365 if test "$wxUSE_CONTROLS" = "yes"; then
21366 USES_CONTROLS=1
21367 fi
21368
21369 if test "$wxUSE_ACCEL" = "yes"; then
21370 cat >> confdefs.h <<\EOF
21371 #define wxUSE_ACCEL 1
21372 EOF
21373
21374 USES_CONTROLS=1
21375 fi
21376
21377 if test "$wxUSE_BUTTON" = "yes"; then
21378 cat >> confdefs.h <<\EOF
21379 #define wxUSE_BUTTON 1
21380 EOF
21381
21382 USES_CONTROLS=1
21383 fi
21384
21385 if test "$wxUSE_BMPBUTTON" = "yes"; then
21386 cat >> confdefs.h <<\EOF
21387 #define wxUSE_BMPBUTTON 1
21388 EOF
21389
21390 USES_CONTROLS=1
21391 fi
21392
21393 if test "$wxUSE_CALCTRL" = "yes"; then
21394 cat >> confdefs.h <<\EOF
21395 #define wxUSE_CALENDARCTRL 1
21396 EOF
21397
21398 USES_CONTROLS=1
21399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21400 fi
21401
21402 if test "$wxUSE_CARET" = "yes"; then
21403 cat >> confdefs.h <<\EOF
21404 #define wxUSE_CARET 1
21405 EOF
21406
21407 USES_CONTROLS=1
21408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21409 fi
21410
21411 if test "$wxUSE_COMBOBOX" = "yes"; then
21412 cat >> confdefs.h <<\EOF
21413 #define wxUSE_COMBOBOX 1
21414 EOF
21415
21416 USES_CONTROLS=1
21417 fi
21418
21419 if test "$wxUSE_CHOICE" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421 #define wxUSE_CHOICE 1
21422 EOF
21423
21424 USES_CONTROLS=1
21425 fi
21426
21427 if test "$wxUSE_CHECKBOX" = "yes"; then
21428 cat >> confdefs.h <<\EOF
21429 #define wxUSE_CHECKBOX 1
21430 EOF
21431
21432 USES_CONTROLS=1
21433 fi
21434
21435 if test "$wxUSE_CHECKLST" = "yes"; then
21436 cat >> confdefs.h <<\EOF
21437 #define wxUSE_CHECKLISTBOX 1
21438 EOF
21439
21440 USES_CONTROLS=1
21441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21442 fi
21443
21444 if test "$wxUSE_DISPLAY" = "yes"; then
21445 cat >> confdefs.h <<\EOF
21446 #define wxUSE_DISPLAY 1
21447 EOF
21448
21449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21450 fi
21451
21452 if test "$wxUSE_GAUGE" = "yes"; then
21453 cat >> confdefs.h <<\EOF
21454 #define wxUSE_GAUGE 1
21455 EOF
21456
21457 USES_CONTROLS=1
21458 fi
21459
21460 if test "$wxUSE_NEW_GRID" = "yes"; then
21461 wxUSE_GRID="yes"
21462 cat >> confdefs.h <<\EOF
21463 #define wxUSE_NEW_GRID 1
21464 EOF
21465
21466 USES_CONTROLS=1
21467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21468 fi
21469
21470 if test "$wxUSE_GRID" = "yes"; then
21471 cat >> confdefs.h <<\EOF
21472 #define wxUSE_GRID 1
21473 EOF
21474
21475 USES_CONTROLS=1
21476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21477 fi
21478
21479 if test "$wxUSE_IMAGLIST" = "yes"; then
21480 cat >> confdefs.h <<\EOF
21481 #define wxUSE_IMAGLIST 1
21482 EOF
21483
21484 fi
21485
21486 if test "$wxUSE_LISTBOX" = "yes"; then
21487 cat >> confdefs.h <<\EOF
21488 #define wxUSE_LISTBOX 1
21489 EOF
21490
21491 USES_CONTROLS=1
21492 fi
21493
21494 if test "$wxUSE_LISTCTRL" = "yes"; then
21495 if test "$wxUSE_IMAGLIST" = "yes"; then
21496 cat >> confdefs.h <<\EOF
21497 #define wxUSE_LISTCTRL 1
21498 EOF
21499
21500 USES_CONTROLS=1
21501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21502 else
21503 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21504 fi
21505 fi
21506
21507 if test "$wxUSE_NOTEBOOK" = "yes"; then
21508 cat >> confdefs.h <<\EOF
21509 #define wxUSE_NOTEBOOK 1
21510 EOF
21511
21512 USES_CONTROLS=1
21513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21514 fi
21515
21516 if test "$wxUSE_PROPSHEET" = "yes"; then
21517 cat >> confdefs.h <<\EOF
21518 #define wxUSE_PROPSHEET 1
21519 EOF
21520
21521 USES_CONTROLS=1
21522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21523 fi
21524
21525 if test "$wxUSE_RADIOBOX" = "yes"; then
21526 cat >> confdefs.h <<\EOF
21527 #define wxUSE_RADIOBOX 1
21528 EOF
21529
21530 USES_CONTROLS=1
21531 fi
21532
21533 if test "$wxUSE_RADIOBTN" = "yes"; then
21534 cat >> confdefs.h <<\EOF
21535 #define wxUSE_RADIOBTN 1
21536 EOF
21537
21538 USES_CONTROLS=1
21539 fi
21540
21541 if test "$wxUSE_SASH" = "yes"; then
21542 cat >> confdefs.h <<\EOF
21543 #define wxUSE_SASH 1
21544 EOF
21545
21546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21547 fi
21548
21549 if test "$wxUSE_SCROLLBAR" = "yes"; then
21550 cat >> confdefs.h <<\EOF
21551 #define wxUSE_SCROLLBAR 1
21552 EOF
21553
21554 USES_CONTROLS=1
21555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21556 fi
21557
21558 if test "$wxUSE_SLIDER" = "yes"; then
21559 cat >> confdefs.h <<\EOF
21560 #define wxUSE_SLIDER 1
21561 EOF
21562
21563 USES_CONTROLS=1
21564 fi
21565
21566 if test "$wxUSE_SPINBTN" = "yes"; then
21567 cat >> confdefs.h <<\EOF
21568 #define wxUSE_SPINBTN 1
21569 EOF
21570
21571 USES_CONTROLS=1
21572 fi
21573
21574 if test "$wxUSE_SPINCTRL" = "yes"; then
21575 cat >> confdefs.h <<\EOF
21576 #define wxUSE_SPINCTRL 1
21577 EOF
21578
21579 USES_CONTROLS=1
21580 fi
21581
21582 if test "$wxUSE_SPLITTER" = "yes"; then
21583 cat >> confdefs.h <<\EOF
21584 #define wxUSE_SPLITTER 1
21585 EOF
21586
21587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21588 fi
21589
21590 if test "$wxUSE_STATBMP" = "yes"; then
21591 cat >> confdefs.h <<\EOF
21592 #define wxUSE_STATBMP 1
21593 EOF
21594
21595 USES_CONTROLS=1
21596 fi
21597
21598 if test "$wxUSE_STATBOX" = "yes"; then
21599 cat >> confdefs.h <<\EOF
21600 #define wxUSE_STATBOX 1
21601 EOF
21602
21603 USES_CONTROLS=1
21604 fi
21605
21606 if test "$wxUSE_STATTEXT" = "yes"; then
21607 cat >> confdefs.h <<\EOF
21608 #define wxUSE_STATTEXT 1
21609 EOF
21610
21611 USES_CONTROLS=1
21612 fi
21613
21614 if test "$wxUSE_STATLINE" = "yes"; then
21615 cat >> confdefs.h <<\EOF
21616 #define wxUSE_STATLINE 1
21617 EOF
21618
21619 USES_CONTROLS=1
21620 fi
21621
21622 if test "$wxUSE_STATUSBAR" = "yes"; then
21623 cat >> confdefs.h <<\EOF
21624 #define wxUSE_STATUSBAR 1
21625 EOF
21626
21627 USES_CONTROLS=1
21628
21629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21630 fi
21631
21632 if test "$wxUSE_TABDIALOG" = "yes"; then
21633 cat >> confdefs.h <<\EOF
21634 #define wxUSE_TAB_DIALOG 1
21635 EOF
21636
21637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21638 fi
21639
21640 if test "$wxUSE_TEXTCTRL" = "yes"; then
21641 cat >> confdefs.h <<\EOF
21642 #define wxUSE_TEXTCTRL 1
21643 EOF
21644
21645 USES_CONTROLS=1
21646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21647 fi
21648
21649 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21650 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21651 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21652 wxUSE_TOGGLEBTN=no
21653 fi
21654 if test "$wxUSE_UNIVERSAL" = "yes"; then
21655 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21656 wxUSE_TOGGLEBTN=no
21657 fi
21658
21659 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21660 cat >> confdefs.h <<\EOF
21661 #define wxUSE_TOGGLEBTN 1
21662 EOF
21663
21664 USES_CONTROLS=1
21665 fi
21666 fi
21667
21668 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21669 cat >> confdefs.h <<\EOF
21670 #define wxUSE_TOOLBAR_SIMPLE 1
21671 EOF
21672
21673 wxUSE_TOOLBAR="yes"
21674 USES_CONTROLS=1
21675 fi
21676
21677 if test "$wxUSE_TOOLBAR" = "yes"; then
21678 cat >> confdefs.h <<\EOF
21679 #define wxUSE_TOOLBAR 1
21680 EOF
21681
21682 USES_CONTROLS=1
21683
21684 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21685 wxUSE_TOOLBAR_NATIVE="yes"
21686 fi
21687
21688 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21689 cat >> confdefs.h <<\EOF
21690 #define wxUSE_TOOLBAR_NATIVE 1
21691 EOF
21692
21693 USES_CONTROLS=1
21694 fi
21695
21696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21697 fi
21698
21699 if test "$wxUSE_TOOLTIPS" = "yes"; then
21700 if test "$wxUSE_MOTIF" = 1; then
21701 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21702 else
21703 if test "$wxUSE_UNIVERSAL" = "yes"; then
21704 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21705 else
21706 cat >> confdefs.h <<\EOF
21707 #define wxUSE_TOOLTIPS 1
21708 EOF
21709
21710 fi
21711 fi
21712 fi
21713
21714 if test "$wxUSE_TREECTRL" = "yes"; then
21715 if test "$wxUSE_IMAGLIST" = "yes"; then
21716 cat >> confdefs.h <<\EOF
21717 #define wxUSE_TREECTRL 1
21718 EOF
21719
21720 USES_CONTROLS=1
21721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21722 else
21723 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21724 fi
21725 fi
21726
21727 if test "$wxUSE_POPUPWIN" = "yes"; then
21728 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21729 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21730 else
21731 if test "$wxUSE_MOTIF" = 1; then
21732 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21733 else
21734 if test "$wxUSE_PM" = 1; then
21735 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21736 else
21737 cat >> confdefs.h <<\EOF
21738 #define wxUSE_POPUPWIN 1
21739 EOF
21740
21741
21742 USES_CONTROLS=1
21743 fi
21744 fi
21745 fi
21746 fi
21747
21748 if test "$wxUSE_TIPWINDOW" = "yes"; then
21749 if test "$wxUSE_PM" = 1; then
21750 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21751 else
21752 cat >> confdefs.h <<\EOF
21753 #define wxUSE_TIPWINDOW 1
21754 EOF
21755
21756 fi
21757 fi
21758
21759 if test "$USES_CONTROLS" = 1; then
21760 cat >> confdefs.h <<\EOF
21761 #define wxUSE_CONTROLS 1
21762 EOF
21763
21764 fi
21765
21766
21767 if test "$wxUSE_TREELAYOUT" = "yes"; then
21768 cat >> confdefs.h <<\EOF
21769 #define wxUSE_TREELAYOUT 1
21770 EOF
21771
21772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21773 fi
21774
21775 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21776 cat >> confdefs.h <<\EOF
21777 #define wxUSE_DRAGIMAGE 1
21778 EOF
21779
21780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21781 fi
21782
21783 if test "$wxUSE_MENUS" = "yes"; then
21784 cat >> confdefs.h <<\EOF
21785 #define wxUSE_MENUS 1
21786 EOF
21787
21788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21789 fi
21790
21791 if test "$wxUSE_METAFILE" = "yes"; then
21792 cat >> confdefs.h <<\EOF
21793 #define wxUSE_METAFILE 1
21794 EOF
21795
21796 fi
21797
21798 if test "$wxUSE_MIMETYPE" = "yes"; then
21799 cat >> confdefs.h <<\EOF
21800 #define wxUSE_MIMETYPE 1
21801 EOF
21802
21803 fi
21804
21805 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21806 cat >> confdefs.h <<\EOF
21807 #define wxUSE_SYSTEM_OPTIONS 1
21808 EOF
21809
21810 if test "$TOOLKIT" = "MSW"; then
21811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21812 fi
21813
21814 fi
21815
21816 if test "$wxUSE_PROTOCOL" = "yes"; then
21817 if test "$wxUSE_SOCKETS" != "yes"; then
21818 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21819 wxUSE_PROTOCOL=no
21820 fi
21821
21822 if test "$wxUSE_PROTOCOL" = "yes"; then
21823 cat >> confdefs.h <<\EOF
21824 #define wxUSE_PROTOCOL 1
21825 EOF
21826
21827
21828 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21829 cat >> confdefs.h <<\EOF
21830 #define wxUSE_PROTOCOL_HTTP 1
21831 EOF
21832
21833 fi
21834 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21835 cat >> confdefs.h <<\EOF
21836 #define wxUSE_PROTOCOL_FTP 1
21837 EOF
21838
21839 fi
21840 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21841 cat >> confdefs.h <<\EOF
21842 #define wxUSE_PROTOCOL_FILE 1
21843 EOF
21844
21845 fi
21846 fi
21847 fi
21848
21849 if test "$wxUSE_URL" = "yes"; then
21850 if test "$wxUSE_PROTOCOL" != "yes"; then
21851 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21852 wxUSE_URL=no
21853 fi
21854 if test "$wxUSE_URL" = "yes"; then
21855 cat >> confdefs.h <<\EOF
21856 #define wxUSE_URL 1
21857 EOF
21858
21859 fi
21860 fi
21861
21862 if test "$wxUSE_MINIFRAME" = "yes"; then
21863 cat >> confdefs.h <<\EOF
21864 #define wxUSE_MINIFRAME 1
21865 EOF
21866
21867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21868 fi
21869
21870 if test "$wxUSE_HTML" = "yes"; then
21871 cat >> confdefs.h <<\EOF
21872 #define wxUSE_HTML 1
21873 EOF
21874
21875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21876 fi
21877
21878 if test "$wxUSE_VALIDATORS" = "yes"; then
21879 cat >> confdefs.h <<\EOF
21880 #define wxUSE_VALIDATORS 1
21881 EOF
21882
21883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21884 fi
21885
21886 if test "$wxUSE_PALETTE" = "yes" ; then
21887 cat >> confdefs.h <<\EOF
21888 #define wxUSE_PALETTE 1
21889 EOF
21890
21891 fi
21892
21893 if test "$wxUSE_IMAGE" = "yes" ; then
21894 cat >> confdefs.h <<\EOF
21895 #define wxUSE_IMAGE 1
21896 EOF
21897
21898 fi
21899
21900 if test "$wxUSE_GIF" = "yes" ; then
21901 cat >> confdefs.h <<\EOF
21902 #define wxUSE_GIF 1
21903 EOF
21904
21905 fi
21906
21907 if test "$wxUSE_PCX" = "yes" ; then
21908 cat >> confdefs.h <<\EOF
21909 #define wxUSE_PCX 1
21910 EOF
21911
21912 fi
21913
21914 if test "$wxUSE_IFF" = "yes" ; then
21915 cat >> confdefs.h <<\EOF
21916 #define wxUSE_IFF 1
21917 EOF
21918
21919 fi
21920
21921 if test "$wxUSE_PNM" = "yes" ; then
21922 cat >> confdefs.h <<\EOF
21923 #define wxUSE_PNM 1
21924 EOF
21925
21926 fi
21927
21928 if test "$wxUSE_XPM" = "yes" ; then
21929 cat >> confdefs.h <<\EOF
21930 #define wxUSE_XPM 1
21931 EOF
21932
21933 fi
21934
21935 if test "$wxUSE_ICO_CUR" = "yes" ; then
21936 cat >> confdefs.h <<\EOF
21937 #define wxUSE_ICO_CUR 1
21938 EOF
21939
21940 fi
21941
21942 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21943 LIBS=" -lunicows $LIBS"
21944 fi
21945
21946
21947 if test "$wxUSE_CHOICEDLG" = "yes"; then
21948 cat >> confdefs.h <<\EOF
21949 #define wxUSE_CHOICEDLG 1
21950 EOF
21951
21952 fi
21953
21954 if test "$wxUSE_COLOURDLG" = "yes"; then
21955 cat >> confdefs.h <<\EOF
21956 #define wxUSE_COLOURDLG 1
21957 EOF
21958
21959 fi
21960
21961 if test "$wxUSE_FILEDLG" = "yes"; then
21962 cat >> confdefs.h <<\EOF
21963 #define wxUSE_FILEDLG 1
21964 EOF
21965
21966 fi
21967
21968 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21969 cat >> confdefs.h <<\EOF
21970 #define wxUSE_FINDREPLDLG 1
21971 EOF
21972
21973 fi
21974
21975 if test "$wxUSE_FONTDLG" = "yes"; then
21976 cat >> confdefs.h <<\EOF
21977 #define wxUSE_FONTDLG 1
21978 EOF
21979
21980 fi
21981
21982 if test "$wxUSE_DIRDLG" = "yes"; then
21983 if test "$wxUSE_TREECTRL" != "yes"; then
21984 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21985 else
21986 cat >> confdefs.h <<\EOF
21987 #define wxUSE_DIRDLG 1
21988 EOF
21989
21990 fi
21991 fi
21992
21993 if test "$wxUSE_MSGDLG" = "yes"; then
21994 cat >> confdefs.h <<\EOF
21995 #define wxUSE_MSGDLG 1
21996 EOF
21997
21998 fi
21999
22000 if test "$wxUSE_NUMBERDLG" = "yes"; then
22001 cat >> confdefs.h <<\EOF
22002 #define wxUSE_NUMBERDLG 1
22003 EOF
22004
22005 fi
22006
22007 if test "$wxUSE_PROGRESSDLG" = "yes"; then
22008 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22009 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22010 else
22011 cat >> confdefs.h <<\EOF
22012 #define wxUSE_PROGRESSDLG 1
22013 EOF
22014
22015 fi
22016 fi
22017
22018 if test "$wxUSE_SPLASH" = "yes"; then
22019 cat >> confdefs.h <<\EOF
22020 #define wxUSE_SPLASH 1
22021 EOF
22022
22023 fi
22024
22025 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22026 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22027 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22028 else
22029 cat >> confdefs.h <<\EOF
22030 #define wxUSE_STARTUP_TIPS 1
22031 EOF
22032
22033 fi
22034 fi
22035
22036 if test "$wxUSE_TEXTDLG" = "yes"; then
22037 cat >> confdefs.h <<\EOF
22038 #define wxUSE_TEXTDLG 1
22039 EOF
22040
22041 fi
22042
22043 if test "$wxUSE_WIZARDDLG" = "yes"; then
22044 cat >> confdefs.h <<\EOF
22045 #define wxUSE_WIZARDDLG 1
22046 EOF
22047
22048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22049 fi
22050
22051
22052 if test "$cross_compiling" = "yes"; then
22053 OSINFO="\"$host\""
22054 else
22055 OSINFO=`uname -s -r -m`
22056 OSINFO="\"$OSINFO\""
22057 fi
22058
22059 cat >> confdefs.h <<EOF
22060 #define WXWIN_OS_DESCRIPTION $OSINFO
22061 EOF
22062
22063
22064
22065 if test "x$prefix" != "xNONE"; then
22066 wxPREFIX=$prefix
22067 else
22068 wxPREFIX=$ac_default_prefix
22069 fi
22070
22071 cat >> confdefs.h <<EOF
22072 #define wxINSTALL_PREFIX "$wxPREFIX"
22073 EOF
22074
22075
22076 top_builddir=`pwd`
22077
22078
22079
22080
22081 if test "$wxUSE_MAC" = 1 ; then
22082 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22083 fi
22084 if test "$wxUSE_COCOA" = 1 ; then
22085 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22086 fi
22087
22088
22089 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22090
22091 have_cos=0
22092 have_floor=0
22093 for ac_func in cos
22094 do
22095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22096 echo "configure:22097: checking for $ac_func" >&5
22097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22098 echo $ac_n "(cached) $ac_c" 1>&6
22099 else
22100 cat > conftest.$ac_ext <<EOF
22101 #line 22102 "configure"
22102 #include "confdefs.h"
22103 /* System header to define __stub macros and hopefully few prototypes,
22104 which can conflict with char $ac_func(); below. */
22105 #include <assert.h>
22106 /* Override any gcc2 internal prototype to avoid an error. */
22107 /* We use char because int might match the return type of a gcc2
22108 builtin and then its argument prototype would still apply. */
22109 char $ac_func();
22110
22111 int main() {
22112
22113 /* The GNU C library defines this for functions which it implements
22114 to always fail with ENOSYS. Some functions are actually named
22115 something starting with __ and the normal name is an alias. */
22116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22117 choke me
22118 #else
22119 $ac_func();
22120 #endif
22121
22122 ; return 0; }
22123 EOF
22124 if { (eval echo configure:22125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22125 rm -rf conftest*
22126 eval "ac_cv_func_$ac_func=yes"
22127 else
22128 echo "configure: failed program was:" >&5
22129 cat conftest.$ac_ext >&5
22130 rm -rf conftest*
22131 eval "ac_cv_func_$ac_func=no"
22132 fi
22133 rm -f conftest*
22134 fi
22135
22136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22137 echo "$ac_t""yes" 1>&6
22138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22139 cat >> confdefs.h <<EOF
22140 #define $ac_tr_func 1
22141 EOF
22142 have_cos=1
22143 else
22144 echo "$ac_t""no" 1>&6
22145 fi
22146 done
22147
22148 for ac_func in floor
22149 do
22150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22151 echo "configure:22152: checking for $ac_func" >&5
22152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22153 echo $ac_n "(cached) $ac_c" 1>&6
22154 else
22155 cat > conftest.$ac_ext <<EOF
22156 #line 22157 "configure"
22157 #include "confdefs.h"
22158 /* System header to define __stub macros and hopefully few prototypes,
22159 which can conflict with char $ac_func(); below. */
22160 #include <assert.h>
22161 /* Override any gcc2 internal prototype to avoid an error. */
22162 /* We use char because int might match the return type of a gcc2
22163 builtin and then its argument prototype would still apply. */
22164 char $ac_func();
22165
22166 int main() {
22167
22168 /* The GNU C library defines this for functions which it implements
22169 to always fail with ENOSYS. Some functions are actually named
22170 something starting with __ and the normal name is an alias. */
22171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22172 choke me
22173 #else
22174 $ac_func();
22175 #endif
22176
22177 ; return 0; }
22178 EOF
22179 if { (eval echo configure:22180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22180 rm -rf conftest*
22181 eval "ac_cv_func_$ac_func=yes"
22182 else
22183 echo "configure: failed program was:" >&5
22184 cat conftest.$ac_ext >&5
22185 rm -rf conftest*
22186 eval "ac_cv_func_$ac_func=no"
22187 fi
22188 rm -f conftest*
22189 fi
22190
22191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22192 echo "$ac_t""yes" 1>&6
22193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22194 cat >> confdefs.h <<EOF
22195 #define $ac_tr_func 1
22196 EOF
22197 have_floor=1
22198 else
22199 echo "$ac_t""no" 1>&6
22200 fi
22201 done
22202
22203 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22204 echo "configure:22205: checking if floating point functions link without -lm" >&5
22205 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22206 echo "$ac_t""yes" 1>&6
22207 else
22208 echo "$ac_t""no" 1>&6
22209 LIBS="$LIBS -lm"
22210 # use different functions to avoid configure caching
22211 have_sin=0
22212 have_ceil=0
22213 for ac_func in sin
22214 do
22215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22216 echo "configure:22217: checking for $ac_func" >&5
22217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22218 echo $ac_n "(cached) $ac_c" 1>&6
22219 else
22220 cat > conftest.$ac_ext <<EOF
22221 #line 22222 "configure"
22222 #include "confdefs.h"
22223 /* System header to define __stub macros and hopefully few prototypes,
22224 which can conflict with char $ac_func(); below. */
22225 #include <assert.h>
22226 /* Override any gcc2 internal prototype to avoid an error. */
22227 /* We use char because int might match the return type of a gcc2
22228 builtin and then its argument prototype would still apply. */
22229 char $ac_func();
22230
22231 int main() {
22232
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22237 choke me
22238 #else
22239 $ac_func();
22240 #endif
22241
22242 ; return 0; }
22243 EOF
22244 if { (eval echo configure:22245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22245 rm -rf conftest*
22246 eval "ac_cv_func_$ac_func=yes"
22247 else
22248 echo "configure: failed program was:" >&5
22249 cat conftest.$ac_ext >&5
22250 rm -rf conftest*
22251 eval "ac_cv_func_$ac_func=no"
22252 fi
22253 rm -f conftest*
22254 fi
22255
22256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22257 echo "$ac_t""yes" 1>&6
22258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22259 cat >> confdefs.h <<EOF
22260 #define $ac_tr_func 1
22261 EOF
22262 have_sin=1
22263 else
22264 echo "$ac_t""no" 1>&6
22265 fi
22266 done
22267
22268 for ac_func in ceil
22269 do
22270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22271 echo "configure:22272: checking for $ac_func" >&5
22272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22273 echo $ac_n "(cached) $ac_c" 1>&6
22274 else
22275 cat > conftest.$ac_ext <<EOF
22276 #line 22277 "configure"
22277 #include "confdefs.h"
22278 /* System header to define __stub macros and hopefully few prototypes,
22279 which can conflict with char $ac_func(); below. */
22280 #include <assert.h>
22281 /* Override any gcc2 internal prototype to avoid an error. */
22282 /* We use char because int might match the return type of a gcc2
22283 builtin and then its argument prototype would still apply. */
22284 char $ac_func();
22285
22286 int main() {
22287
22288 /* The GNU C library defines this for functions which it implements
22289 to always fail with ENOSYS. Some functions are actually named
22290 something starting with __ and the normal name is an alias. */
22291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22292 choke me
22293 #else
22294 $ac_func();
22295 #endif
22296
22297 ; return 0; }
22298 EOF
22299 if { (eval echo configure:22300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22300 rm -rf conftest*
22301 eval "ac_cv_func_$ac_func=yes"
22302 else
22303 echo "configure: failed program was:" >&5
22304 cat conftest.$ac_ext >&5
22305 rm -rf conftest*
22306 eval "ac_cv_func_$ac_func=no"
22307 fi
22308 rm -f conftest*
22309 fi
22310
22311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22312 echo "$ac_t""yes" 1>&6
22313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22314 cat >> confdefs.h <<EOF
22315 #define $ac_tr_func 1
22316 EOF
22317 have_ceil=1
22318 else
22319 echo "$ac_t""no" 1>&6
22320 fi
22321 done
22322
22323 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22324 echo "configure:22325: checking if floating point functions link with -lm" >&5
22325 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22326 echo "$ac_t""yes" 1>&6
22327 else
22328 echo "$ac_t""no" 1>&6
22329 # not sure we should warn the user, crash, etc.
22330 fi
22331 fi
22332
22333 if test "$wxUSE_GUI" = "yes"; then
22334
22335 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22336
22337
22338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22339 drawing dynamic erase event exec font image \
22340 minimal propsize rotate widgets"
22341
22342 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22343 else
22344 SAMPLES_SUBDIRS="console"
22345 fi
22346
22347
22348 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22349 -I\${top_srcdir}/include \
22350 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22351 $TOOLKIT_INCLUDE"
22352
22353 if test "$wxUSE_GTK" = 1; then
22354 WXCONFIG_INCLUDE=
22355 else
22356 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22357 fi
22358
22359 if test "$GXX" = yes ; then
22360 CXXWARNINGS="-Wall"
22361
22362 if test "$wxUSE_NO_DEPS" = "no" ; then
22363 CFLAGS="-MMD $CFLAGS"
22364 CXXFLAGS="-MMD $CXXFLAGS"
22365 fi
22366 fi
22367
22368 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22369
22370 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22371 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22372 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22373 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22374
22375 LDFLAGS="$LDFLAGS $PROFILE"
22376
22377 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22480 echo "configure:22481: checking whether ${MAKE-make} sets \${MAKE}" >&5
22481 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22482 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22483 echo $ac_n "(cached) $ac_c" 1>&6
22484 else
22485 cat > conftestmake <<\EOF
22486 all:
22487 @echo 'ac_maketemp="${MAKE}"'
22488 EOF
22489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22490 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22491 if test -n "$ac_maketemp"; then
22492 eval ac_cv_prog_make_${ac_make}_set=yes
22493 else
22494 eval ac_cv_prog_make_${ac_make}_set=no
22495 fi
22496 rm -f conftestmake
22497 fi
22498 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22499 echo "$ac_t""yes" 1>&6
22500 SET_MAKE=
22501 else
22502 echo "$ac_t""no" 1>&6
22503 SET_MAKE="MAKE=${MAKE-make}"
22504 fi
22505
22506
22507 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22508 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22509 fi
22510
22511
22512
22513 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22514 wx_cv_if_gnu_make=$IF_GNU_MAKE
22515 wx_cv_path_ifs=$PATH_IFS
22516 wx_cv_program_ext=$PROGRAM_EXT
22517 wx_cv_target_library=$WX_TARGET_LIBRARY
22518 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22519 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22520 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22521 wx_cv_release=${WX_RELEASE}
22522 wx_cv_current=${WX_CURRENT}
22523 wx_cv_revision=${WX_REVISION}
22524 wx_cv_age=${WX_AGE}
22525 wx_cv_use_gui=${USE_GUI}
22526 wx_cv_use_resources=${wxUSE_RESOURCES}
22527 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22528 wx_cv_path_ifs wx_cv_program_ext \
22529 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22530 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22531 wx_cv_use_gui wx_cv_use_resources
22532
22533 subdirs="demos samples utils contrib"
22534
22535
22536 trap '' 1 2 15
22537 cat > confcache <<\EOF
22538 # This file is a shell script that caches the results of configure
22539 # tests run on this system so they can be shared between configure
22540 # scripts and configure runs. It is not useful on other systems.
22541 # If it contains results you don't want to keep, you may remove or edit it.
22542 #
22543 # By default, configure uses ./config.cache as the cache file,
22544 # creating it if it does not exist already. You can give configure
22545 # the --cache-file=FILE option to use a different cache file; that is
22546 # what configure does when it calls configure scripts in
22547 # subdirectories, so they share the cache.
22548 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22549 # config.status only pays attention to the cache file if you give it the
22550 # --recheck option to rerun configure.
22551 #
22552 EOF
22553 # The following way of writing the cache mishandles newlines in values,
22554 # but we know of no workaround that is simple, portable, and efficient.
22555 # So, don't put newlines in cache variables' values.
22556 # Ultrix sh set writes to stderr and can't be redirected directly,
22557 # and sets the high bit in the cache file unless we assign to the vars.
22558 (set) 2>&1 |
22559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22560 *ac_space=\ *)
22561 # `set' does not quote correctly, so add quotes (double-quote substitution
22562 # turns \\\\ into \\, and sed turns \\ into \).
22563 sed -n \
22564 -e "s/'/'\\\\''/g" \
22565 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22566 ;;
22567 *)
22568 # `set' quotes correctly as required by POSIX, so do not add quotes.
22569 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22570 ;;
22571 esac >> confcache
22572 if cmp -s $cache_file confcache; then
22573 :
22574 else
22575 if test -w $cache_file; then
22576 echo "updating cache $cache_file"
22577 cat confcache > $cache_file
22578 else
22579 echo "not updating unwritable cache $cache_file"
22580 fi
22581 fi
22582 rm -f confcache
22583
22584 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22585
22586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22587 # Let make expand exec_prefix.
22588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22589
22590 # Any assignment to VPATH causes Sun make to only execute
22591 # the first set of double-colon rules, so remove it if not needed.
22592 # If there is a colon in the path, we need to keep it.
22593 if test "x$srcdir" = x.; then
22594 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22595 fi
22596
22597 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22598
22599 DEFS=-DHAVE_CONFIG_H
22600
22601 # Without the "./", some shells look in PATH for config.status.
22602 : ${CONFIG_STATUS=./config.status}
22603
22604 echo creating $CONFIG_STATUS
22605 rm -f $CONFIG_STATUS
22606 cat > $CONFIG_STATUS <<EOF
22607 #! /bin/sh
22608 # Generated automatically by configure.
22609 # Run this file to recreate the current configuration.
22610 # This directory was configured as follows,
22611 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22612 #
22613 # $0 $ac_configure_args
22614 #
22615 # Compiler output produced by configure, useful for debugging
22616 # configure, is in ./config.log if it exists.
22617
22618 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22619 for ac_option
22620 do
22621 case "\$ac_option" in
22622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22623 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22624 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22625 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22626 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22627 exit 0 ;;
22628 -help | --help | --hel | --he | --h)
22629 echo "\$ac_cs_usage"; exit 0 ;;
22630 *) echo "\$ac_cs_usage"; exit 1 ;;
22631 esac
22632 done
22633
22634 ac_given_srcdir=$srcdir
22635 ac_given_INSTALL="$INSTALL"
22636
22637 trap 'rm -fr `echo "
22638 wx-config
22639 version-script
22640 src/make.env
22641 src/makeprog.env
22642 src/makelib.env
22643 Makefile
22644 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22645 EOF
22646 cat >> $CONFIG_STATUS <<EOF
22647
22648 # Protect against being on the right side of a sed subst in config.status.
22649 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22650 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22651 $ac_vpsub
22652 $extrasub
22653 s%@SHELL@%$SHELL%g
22654 s%@CFLAGS@%$CFLAGS%g
22655 s%@CPPFLAGS@%$CPPFLAGS%g
22656 s%@CXXFLAGS@%$CXXFLAGS%g
22657 s%@FFLAGS@%$FFLAGS%g
22658 s%@DEFS@%$DEFS%g
22659 s%@LDFLAGS@%$LDFLAGS%g
22660 s%@LIBS@%$LIBS%g
22661 s%@exec_prefix@%$exec_prefix%g
22662 s%@prefix@%$prefix%g
22663 s%@program_transform_name@%$program_transform_name%g
22664 s%@bindir@%$bindir%g
22665 s%@sbindir@%$sbindir%g
22666 s%@libexecdir@%$libexecdir%g
22667 s%@datadir@%$datadir%g
22668 s%@sysconfdir@%$sysconfdir%g
22669 s%@sharedstatedir@%$sharedstatedir%g
22670 s%@localstatedir@%$localstatedir%g
22671 s%@libdir@%$libdir%g
22672 s%@includedir@%$includedir%g
22673 s%@oldincludedir@%$oldincludedir%g
22674 s%@infodir@%$infodir%g
22675 s%@mandir@%$mandir%g
22676 s%@host@%$host%g
22677 s%@host_alias@%$host_alias%g
22678 s%@host_cpu@%$host_cpu%g
22679 s%@host_vendor@%$host_vendor%g
22680 s%@host_os@%$host_os%g
22681 s%@target@%$target%g
22682 s%@target_alias@%$target_alias%g
22683 s%@target_cpu@%$target_cpu%g
22684 s%@target_vendor@%$target_vendor%g
22685 s%@target_os@%$target_os%g
22686 s%@build@%$build%g
22687 s%@build_alias@%$build_alias%g
22688 s%@build_cpu@%$build_cpu%g
22689 s%@build_vendor@%$build_vendor%g
22690 s%@build_os@%$build_os%g
22691 s%@CC@%$CC%g
22692 s%@CPP@%$CPP%g
22693 s%@CXX@%$CXX%g
22694 s%@RANLIB@%$RANLIB%g
22695 s%@AR@%$AR%g
22696 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22697 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22698 s%@INSTALL_DATA@%$INSTALL_DATA%g
22699 s%@STRIP@%$STRIP%g
22700 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22701 s%@YACC@%$YACC%g
22702 s%@LEX@%$LEX%g
22703 s%@LEXLIB@%$LEXLIB%g
22704 s%@LN_S@%$LN_S%g
22705 s%@CXXCPP@%$CXXCPP%g
22706 s%@PKG_CONFIG@%$PKG_CONFIG%g
22707 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22708 s%@GTK_LIBS@%$GTK_LIBS%g
22709 s%@GTK_CONFIG@%$GTK_CONFIG%g
22710 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22711 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22712 s%@X_CFLAGS@%$X_CFLAGS%g
22713 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22714 s%@X_LIBS@%$X_LIBS%g
22715 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22716 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22717 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22718 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22719 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22720 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22721 s%@RESCOMP@%$RESCOMP%g
22722 s%@DEREZ@%$DEREZ%g
22723 s%@SETFILE@%$SETFILE%g
22724 s%@LIBICONV@%$LIBICONV%g
22725 s%@LEX_STEM@%$LEX_STEM%g
22726 s%@PATH_IFS@%$PATH_IFS%g
22727 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22728 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22729 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22730 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22731 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22732 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22733 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22734 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22735 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22736 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22737 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22738 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22739 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22740 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22741 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22742 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22743 s%@WX_ALL@%$WX_ALL%g
22744 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22745 s%@SHARED_LD@%$SHARED_LD%g
22746 s%@PIC_FLAG@%$PIC_FLAG%g
22747 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22748 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22749 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22750 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22751 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22752 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22753 s%@STATIC_FLAG@%$STATIC_FLAG%g
22754 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22755 s%@USE_GUI@%$USE_GUI%g
22756 s%@AFMINSTALL@%$AFMINSTALL%g
22757 s%@WIN32INSTALL@%$WIN32INSTALL%g
22758 s%@TOOLKIT@%$TOOLKIT%g
22759 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22760 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22761 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22762 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22763 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22764 s%@top_builddir@%$top_builddir%g
22765 s%@cross_compiling@%$cross_compiling%g
22766 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22767 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22768 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22769 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22770 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22771 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22772 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22773 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22774 s%@ALL_HEADERS@%$ALL_HEADERS%g
22775 s%@ALL_SOURCES@%$ALL_SOURCES%g
22776 s%@GUIDIST@%$GUIDIST%g
22777 s%@PORT_FILES@%$PORT_FILES%g
22778 s%@DISTDIR@%$DISTDIR%g
22779 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22780 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22781 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22782 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22783 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22784 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22785 s%@EXTRADEFS@%$EXTRADEFS%g
22786 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22787 s%@RESFLAGS@%$RESFLAGS%g
22788 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22789 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22790 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22791 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22792 s%@LIBWXMACRES@%$LIBWXMACRES%g
22793 s%@MACRESCOMP@%$MACRESCOMP%g
22794 s%@MACSETFILE@%$MACSETFILE%g
22795 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22796 s%@GCC@%$GCC%g
22797 s%@DLLTOOL@%$DLLTOOL%g
22798 s%@AS@%$AS%g
22799 s%@NM@%$NM%g
22800 s%@LD@%$LD%g
22801 s%@MAKEINFO@%$MAKEINFO%g
22802 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22803 s%@INSTALL_DIR@%$INSTALL_DIR%g
22804 s%@SET_MAKE@%$SET_MAKE%g
22805 s%@subdirs@%$subdirs%g
22806
22807 CEOF
22808 EOF
22809
22810 cat >> $CONFIG_STATUS <<\EOF
22811
22812 # Split the substitutions into bite-sized pieces for seds with
22813 # small command number limits, like on Digital OSF/1 and HP-UX.
22814 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22815 ac_file=1 # Number of current file.
22816 ac_beg=1 # First line for current file.
22817 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22818 ac_more_lines=:
22819 ac_sed_cmds=""
22820 while $ac_more_lines; do
22821 if test $ac_beg -gt 1; then
22822 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22823 else
22824 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22825 fi
22826 if test ! -s conftest.s$ac_file; then
22827 ac_more_lines=false
22828 rm -f conftest.s$ac_file
22829 else
22830 if test -z "$ac_sed_cmds"; then
22831 ac_sed_cmds="sed -f conftest.s$ac_file"
22832 else
22833 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22834 fi
22835 ac_file=`expr $ac_file + 1`
22836 ac_beg=$ac_end
22837 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22838 fi
22839 done
22840 if test -z "$ac_sed_cmds"; then
22841 ac_sed_cmds=cat
22842 fi
22843 EOF
22844
22845 cat >> $CONFIG_STATUS <<EOF
22846
22847 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22848 version-script
22849 src/make.env
22850 src/makeprog.env
22851 src/makelib.env
22852 Makefile
22853 "}
22854 EOF
22855 cat >> $CONFIG_STATUS <<\EOF
22856 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22858 case "$ac_file" in
22859 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22860 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22861 *) ac_file_in="${ac_file}.in" ;;
22862 esac
22863
22864 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22865
22866 # Remove last slash and all that follows it. Not all systems have dirname.
22867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22869 # The file is in a subdirectory.
22870 test ! -d "$ac_dir" && mkdir "$ac_dir"
22871 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22872 # A "../" for each directory in $ac_dir_suffix.
22873 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22874 else
22875 ac_dir_suffix= ac_dots=
22876 fi
22877
22878 case "$ac_given_srcdir" in
22879 .) srcdir=.
22880 if test -z "$ac_dots"; then top_srcdir=.
22881 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22882 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22883 *) # Relative path.
22884 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22885 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22886 esac
22887
22888 case "$ac_given_INSTALL" in
22889 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22890 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22891 esac
22892
22893 echo creating "$ac_file"
22894 rm -f "$ac_file"
22895 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22896 case "$ac_file" in
22897 *Makefile*) ac_comsub="1i\\
22898 # $configure_input" ;;
22899 *) ac_comsub= ;;
22900 esac
22901
22902 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22903 sed -e "$ac_comsub
22904 s%@configure_input@%$configure_input%g
22905 s%@srcdir@%$srcdir%g
22906 s%@top_srcdir@%$top_srcdir%g
22907 s%@INSTALL@%$INSTALL%g
22908 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22909 fi; done
22910 rm -f conftest.s*
22911
22912 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22913 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22914 #
22915 # ac_d sets the value in "#define NAME VALUE" lines.
22916 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22917 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22918 ac_dC='\3'
22919 ac_dD='%g'
22920 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22921 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22922 ac_uB='\([ ]\)%\1#\2define\3'
22923 ac_uC=' '
22924 ac_uD='\4%g'
22925 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22926 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22927 ac_eB='$%\1#\2define\3'
22928 ac_eC=' '
22929 ac_eD='%g'
22930
22931 if test "${CONFIG_HEADERS+set}" != set; then
22932 EOF
22933 cat >> $CONFIG_STATUS <<EOF
22934 CONFIG_HEADERS="setup.h:setup.h.in"
22935 EOF
22936 cat >> $CONFIG_STATUS <<\EOF
22937 fi
22938 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22940 case "$ac_file" in
22941 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22942 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22943 *) ac_file_in="${ac_file}.in" ;;
22944 esac
22945
22946 echo creating $ac_file
22947
22948 rm -f conftest.frag conftest.in conftest.out
22949 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22950 cat $ac_file_inputs > conftest.in
22951
22952 EOF
22953
22954 # Transform confdefs.h into a sed script conftest.vals that substitutes
22955 # the proper values into config.h.in to produce config.h. And first:
22956 # Protect against being on the right side of a sed subst in config.status.
22957 # Protect against being in an unquoted here document in config.status.
22958 rm -f conftest.vals
22959 cat > conftest.hdr <<\EOF
22960 s/[\\&%]/\\&/g
22961 s%[\\$`]%\\&%g
22962 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22963 s%ac_d%ac_u%gp
22964 s%ac_u%ac_e%gp
22965 EOF
22966 sed -n -f conftest.hdr confdefs.h > conftest.vals
22967 rm -f conftest.hdr
22968
22969 # This sed command replaces #undef with comments. This is necessary, for
22970 # example, in the case of _POSIX_SOURCE, which is predefined and required
22971 # on some systems where configure will not decide to define it.
22972 cat >> conftest.vals <<\EOF
22973 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22974 EOF
22975
22976 # Break up conftest.vals because some shells have a limit on
22977 # the size of here documents, and old seds have small limits too.
22978
22979 rm -f conftest.tail
22980 while :
22981 do
22982 ac_lines=`grep -c . conftest.vals`
22983 # grep -c gives empty output for an empty file on some AIX systems.
22984 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22985 # Write a limited-size here document to conftest.frag.
22986 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22987 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22988 echo 'CEOF
22989 sed -f conftest.frag conftest.in > conftest.out
22990 rm -f conftest.in
22991 mv conftest.out conftest.in
22992 ' >> $CONFIG_STATUS
22993 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22994 rm -f conftest.vals
22995 mv conftest.tail conftest.vals
22996 done
22997 rm -f conftest.vals
22998
22999 cat >> $CONFIG_STATUS <<\EOF
23000 rm -f conftest.frag conftest.h
23001 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23002 cat conftest.in >> conftest.h
23003 rm -f conftest.in
23004 if cmp -s $ac_file conftest.h 2>/dev/null; then
23005 echo "$ac_file is unchanged"
23006 rm -f conftest.h
23007 else
23008 # Remove last slash and all that follows it. Not all systems have dirname.
23009 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23010 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23011 # The file is in a subdirectory.
23012 test ! -d "$ac_dir" && mkdir "$ac_dir"
23013 fi
23014 rm -f $ac_file
23015 mv conftest.h $ac_file
23016 fi
23017 fi; done
23018
23019 EOF
23020 cat >> $CONFIG_STATUS <<EOF
23021
23022 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23023 LN_S="${LN_S}"
23024
23025
23026 EOF
23027 cat >> $CONFIG_STATUS <<\EOF
23028
23029 if test ! -h wx-config; then
23030 chmod +x wx-config
23031 mv wx-config wx${TOOLCHAIN_NAME}-config
23032 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23033 fi
23034
23035 if test ! -d lib; then
23036 mkdir lib
23037 fi
23038 if test ! -d lib/wx; then
23039 mkdir lib/wx
23040 fi
23041 if test ! -d lib/wx/include; then
23042 mkdir lib/wx/include
23043 fi
23044 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23045 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23046 fi
23047 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23048 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23049 fi
23050 if test -f setup.h; then
23051 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23052 fi
23053
23054 exit 0
23055 EOF
23056 chmod +x $CONFIG_STATUS
23057 rm -fr confdefs* $ac_clean_files
23058 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23059
23060 if test "$no_recursion" != yes; then
23061
23062 # Remove --cache-file and --srcdir arguments so they do not pile up.
23063 ac_sub_configure_args=
23064 ac_prev=
23065 for ac_arg in $ac_configure_args; do
23066 if test -n "$ac_prev"; then
23067 ac_prev=
23068 continue
23069 fi
23070 case "$ac_arg" in
23071 -cache-file | --cache-file | --cache-fil | --cache-fi \
23072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23073 ac_prev=cache_file ;;
23074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23076 ;;
23077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23078 ac_prev=srcdir ;;
23079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23080 ;;
23081 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23082 esac
23083 done
23084
23085 for ac_config_dir in demos samples utils contrib; do
23086
23087 # Do not complain, so a configure script can configure whichever
23088 # parts of a large source tree are present.
23089 if test ! -d $srcdir/$ac_config_dir; then
23090 continue
23091 fi
23092
23093 echo configuring in $ac_config_dir
23094
23095 case "$srcdir" in
23096 .) ;;
23097 *)
23098 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23099 else
23100 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23101 fi
23102 ;;
23103 esac
23104
23105 ac_popdir=`pwd`
23106 cd $ac_config_dir
23107
23108 # A "../" for each directory in /$ac_config_dir.
23109 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23110
23111 case "$srcdir" in
23112 .) # No --srcdir option. We are building in place.
23113 ac_sub_srcdir=$srcdir ;;
23114 /*) # Absolute path.
23115 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23116 *) # Relative path.
23117 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23118 esac
23119
23120 # Check for guested configure; otherwise get Cygnus style configure.
23121 if test -f $ac_sub_srcdir/configure; then
23122 ac_sub_configure=$ac_sub_srcdir/configure
23123 elif test -f $ac_sub_srcdir/configure.in; then
23124 ac_sub_configure=$ac_configure
23125 else
23126 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23127 ac_sub_configure=
23128 fi
23129
23130 # The recursion is here.
23131 if test -n "$ac_sub_configure"; then
23132
23133 # Make the cache file name correct relative to the subdirectory.
23134 case "$cache_file" in
23135 /*) ac_sub_cache_file=$cache_file ;;
23136 *) # Relative path.
23137 ac_sub_cache_file="$ac_dots$cache_file" ;;
23138 esac
23139 case "$ac_given_INSTALL" in
23140 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23141 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23142 esac
23143
23144 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23145 # The eval makes quoting arguments work.
23146 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23147 then :
23148 else
23149 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23150 fi
23151 fi
23152
23153 cd $ac_popdir
23154 done
23155 fi
23156
23157
23158 echo
23159 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23160 echo ""
23161 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23162
23163 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23164 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23165 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23166
23167 echo " What level of wxWindows compatibility should be enabled?"
23168 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23169 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23170 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23171
23172 echo " Which libraries should wxWindows use?"
23173 echo " jpeg ${wxUSE_LIBJPEG-none}"
23174 echo " png ${wxUSE_LIBPNG-none}"
23175 echo " regex ${wxUSE_REGEX}"
23176 echo " tiff ${wxUSE_LIBTIFF-none}"
23177 echo " zlib ${wxUSE_ZLIB}"
23178
23179 echo ""
23180