Allow wxUSE_DIRDLG and wxUSE_TREECTRL for wxCocoa (both are generic)
[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-stopwatch      use wxStopWatch class"
199 ac_help="$ac_help
200   --enable-dialupman      use dialup network classes"
201 ac_help="$ac_help
202   --enable-apple_ieee     use the Apple IEEE codec"
203 ac_help="$ac_help
204   --enable-timer          use wxTimer class"
205 ac_help="$ac_help
206   --enable-wave           use wxWave class"
207 ac_help="$ac_help
208   --enable-fraction       use wxFraction class"
209 ac_help="$ac_help
210   --enable-dynlib         use wxLibrary class for DLL loading"
211 ac_help="$ac_help
212   --enable-dynamicloader  use (new) wxDynamicLibrary class"
213 ac_help="$ac_help
214   --enable-longlong       use wxLongLong class"
215 ac_help="$ac_help
216   --enable-geometry       use geometry class"
217 ac_help="$ac_help
218   --enable-log            use logging system"
219 ac_help="$ac_help
220   --enable-streams        use wxStream etc classes"
221 ac_help="$ac_help
222   --enable-file           use wxFile classes"
223 ac_help="$ac_help
224   --enable-ffile          use wxFFile classes"
225 ac_help="$ac_help
226   --enable-textbuf        use wxTextBuffer class"
227 ac_help="$ac_help
228   --enable-textfile       use wxTextFile class"
229 ac_help="$ac_help
230   --enable-fontmap        use font encodings conversion classes"
231 ac_help="$ac_help
232   --enable-unicode        compile wxString with Unicode support"
233 ac_help="$ac_help
234   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
235 ac_help="$ac_help
236   --enable-wxprintfv      use wxWindows implementation of vprintf()"
237 ac_help="$ac_help
238   --enable-std_iostreams  use standard C++ stream classes"
239 ac_help="$ac_help
240   --enable-filesystem     use virtual file systems classes"
241 ac_help="$ac_help
242   --enable-fs_inet        use virtual HTTP/FTP filesystems"
243 ac_help="$ac_help
244   --enable-fs_zip         use virtual ZIP filesystems"
245 ac_help="$ac_help
246   --enable-zipstream      use wxZipInputStream"
247 ac_help="$ac_help
248   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
249 ac_help="$ac_help
250   --enable-snglinst       use wxSingleInstanceChecker class"
251 ac_help="$ac_help
252   --enable-mimetype       use wxMimeTypesManager"
253 ac_help="$ac_help
254   --enable-sysoptions     use wxSystemOptions"
255 ac_help="$ac_help
256   --enable-url            use wxURL class"
257 ac_help="$ac_help
258   --enable-protocol       use wxProtocol class"
259 ac_help="$ac_help
260   --enable-protocol-http  HTTP support in wxProtocol"
261 ac_help="$ac_help
262   --enable-protocol-ftp   FTP support in wxProtocol"
263 ac_help="$ac_help
264   --enable-protocol-file  FILE support in wxProtocol"
265 ac_help="$ac_help
266   --enable-threads        use threads"
267 ac_help="$ac_help
268   --enable-docview        use document view architecture"
269 ac_help="$ac_help
270   --enable-help           use help subsystem"
271 ac_help="$ac_help
272   --enable-mshtmlhelp     use MS HTML Help (win32)"
273 ac_help="$ac_help
274   --enable-html           use wxHTML sub-library"
275 ac_help="$ac_help
276   --enable-htmlhelp       use wxHTML-based help"
277 ac_help="$ac_help
278   --enable-constraints    use layout-constraints system"
279 ac_help="$ac_help
280   --enable-printarch      use printing architecture"
281 ac_help="$ac_help
282   --enable-mdi            use multiple document interface architecture"
283 ac_help="$ac_help
284   --enable-loggui         use standard GUI logger"
285 ac_help="$ac_help
286   --enable-logwin         use wxLogWindow"
287 ac_help="$ac_help
288   --enable-logdialog      use wxLogDialog"
289 ac_help="$ac_help
290   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
291 ac_help="$ac_help
292   --enable-resources      use wxWindows resources"
293 ac_help="$ac_help
294   --enable-xresources     use X resources for save (default for gtk+)"
295 ac_help="$ac_help
296   --enable-clipboard      use wxClipboard class"
297 ac_help="$ac_help
298   --enable-dnd            use Drag'n'Drop classes"
299 ac_help="$ac_help
300   --enable-metafile       use win32 metafiles"
301 ac_help="$ac_help
302   --enable-controls       use all usual controls"
303 ac_help="$ac_help
304   --enable-accel          use accelerators"
305 ac_help="$ac_help
306   --enable-button         use wxButton class"
307 ac_help="$ac_help
308   --enable-bmpbutton      use wxBitmapButton class"
309 ac_help="$ac_help
310   --enable-calendar       use wxCalendarCtrl class"
311 ac_help="$ac_help
312   --enable-caret          use wxCaret class"
313 ac_help="$ac_help
314   --enable-checkbox       use wxCheckBox class"
315 ac_help="$ac_help
316   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
317 ac_help="$ac_help
318   --enable-choice         use wxChoice class"
319 ac_help="$ac_help
320   --enable-combobox       use wxComboBox class"
321 ac_help="$ac_help
322   --enable-display        use wxDisplay class"
323 ac_help="$ac_help
324   --enable-gauge          use wxGauge class"
325 ac_help="$ac_help
326   --enable-grid           use wxGrid class"
327 ac_help="$ac_help
328   --enable-imaglist       use wxImageList class"
329 ac_help="$ac_help
330   --enable-listbox        use wxListBox class"
331 ac_help="$ac_help
332   --enable-listctrl       use wxListCtrl class"
333 ac_help="$ac_help
334   --enable-notebook       use wxNotebook class"
335 ac_help="$ac_help
336   --enable-radiobox       use wxRadioBox class"
337 ac_help="$ac_help
338   --enable-radiobtn       use wxRadioButton class"
339 ac_help="$ac_help
340   --enable-sash           use wxSashWindow class"
341 ac_help="$ac_help
342   --enable-scrollbar      use wxScrollBar class and scrollable windows"
343 ac_help="$ac_help
344   --enable-slider         use wxSlider class"
345 ac_help="$ac_help
346   --enable-spinbtn        use wxSpinButton class"
347 ac_help="$ac_help
348   --enable-spinctrl       use wxSpinCtrl class"
349 ac_help="$ac_help
350   --enable-splitter       use wxSplitterWindow class"
351 ac_help="$ac_help
352   --enable-statbmp        use wxStaticBitmap class"
353 ac_help="$ac_help
354   --enable-statbox        use wxStaticBox class"
355 ac_help="$ac_help
356   --enable-statline       use wxStaticLine class"
357 ac_help="$ac_help
358   --enable-stattext       use wxStaticText class"
359 ac_help="$ac_help
360   --enable-statusbar      use wxStatusBar class"
361 ac_help="$ac_help
362   --enable-tabdialog      use wxTabControl class"
363 ac_help="$ac_help
364   --enable-textctrl       use wxTextCtrl class"
365 ac_help="$ac_help
366   --enable-togglebtn      use wxToggleButton class"
367 ac_help="$ac_help
368   --enable-toolbar        use wxToolBar class"
369 ac_help="$ac_help
370   --enable-tbarnative     use native wxToolBar class"
371 ac_help="$ac_help
372   --enable-tbarsmpl       use wxToolBarSimple class"
373 ac_help="$ac_help
374   --enable-treectrl       use wxTreeCtrl class"
375 ac_help="$ac_help
376   --enable-tipwindow      use wxTipWindow class"
377 ac_help="$ac_help
378   --enable-popupwin       use wxPopUpWindow class"
379 ac_help="$ac_help
380   --enable-commondlg      use all common dialogs"
381 ac_help="$ac_help
382   --enable-choicedlg      use wxChoiceDialog"
383 ac_help="$ac_help
384   --enable-coldlg         use wxColourDialog"
385 ac_help="$ac_help
386   --enable-filedlg        use wxFileDialog"
387 ac_help="$ac_help
388   --enable-finddlg        use wxFindReplaceDialog"
389 ac_help="$ac_help
390   --enable-fontdlg        use wxFontDialog"
391 ac_help="$ac_help
392   --enable-dirdlg         use wxDirDialog"
393 ac_help="$ac_help
394   --enable-msgdlg         use wxMessageDialog"
395 ac_help="$ac_help
396   --enable-numberdlg      use wxNumberEntryDialog"
397 ac_help="$ac_help
398   --enable-splash         use wxSplashScreen"
399 ac_help="$ac_help
400   --enable-textdlg        use wxTextDialog"
401 ac_help="$ac_help
402   --enable-tipdlg         use startup tips"
403 ac_help="$ac_help
404   --enable-progressdlg    use wxProgressDialog"
405 ac_help="$ac_help
406   --enable-wizarddlg      use wxWizard"
407 ac_help="$ac_help
408   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
409 ac_help="$ac_help
410   --enable-miniframe      use wxMiniFrame class"
411 ac_help="$ac_help
412   --enable-tooltips       use wxToolTip class"
413 ac_help="$ac_help
414   --enable-splines        use spline drawing code"
415 ac_help="$ac_help
416   --enable-validators     use wxValidator and derived classes"
417 ac_help="$ac_help
418   --enable-busyinfo       use wxBusyInfo"
419 ac_help="$ac_help
420   --enable-joystick       use wxJoystick (Linux only)"
421 ac_help="$ac_help
422   --enable-metafiles      use wxMetaFile (Windows only)"
423 ac_help="$ac_help
424   --enable-dragimage      use wxDragImage"
425 ac_help="$ac_help
426   --enable-palette        use wxPalette class"
427 ac_help="$ac_help
428   --enable-image          use wxImage class"
429 ac_help="$ac_help
430   --enable-gif            use gif images (GIF file format)"
431 ac_help="$ac_help
432   --enable-pcx            use pcx images (PCX file format)"
433 ac_help="$ac_help
434   --enable-iff            use iff images (IFF file format)"
435 ac_help="$ac_help
436   --enable-pnm            use pnm images (PNM file format)"
437 ac_help="$ac_help
438   --enable-xpm            use xpm images (XPM file format)"
439 ac_help="$ac_help
440   --enable-icocur         use Windows ICO and CUR formats"
441 ac_help="$ac_help
442   --disable-largefile     omit support for large files"
443 ac_help="$ac_help
444   --disable-gtktest       do not try to compile and run a test GTK+ program"
445 ac_help="$ac_help
446   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450   --disable-gtktest       Do not try to compile and run a test GTK program"
451 ac_help="$ac_help
452   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
453 ac_help="$ac_help
454   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456   --disable-gtktest       Do not try to compile and run a test GTK program"
457 ac_help="$ac_help
458   --with-x                use the X Window System"
459 ac_help="$ac_help
460   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
461
462 # Initialize some variables set by options.
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
465 build=NONE
466 cache_file=./config.cache
467 exec_prefix=NONE
468 host=NONE
469 no_create=
470 nonopt=NONE
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 target=NONE
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483 bindir='${exec_prefix}/bin'
484 sbindir='${exec_prefix}/sbin'
485 libexecdir='${exec_prefix}/libexec'
486 datadir='${prefix}/share'
487 sysconfdir='${prefix}/etc'
488 sharedstatedir='${prefix}/com'
489 localstatedir='${prefix}/var'
490 libdir='${exec_prefix}/lib'
491 includedir='${prefix}/include'
492 oldincludedir='/usr/include'
493 infodir='${prefix}/info'
494 mandir='${prefix}/man'
495
496 # Initialize some other variables.
497 subdirs=
498 MFLAGS= MAKEFLAGS=
499 SHELL=${CONFIG_SHELL-/bin/sh}
500 # Maximum number of lines to put in a shell here document.
501 ac_max_here_lines=12
502
503 ac_prev=
504 for ac_option
505 do
506
507   # If the previous option needs an argument, assign it.
508   if test -n "$ac_prev"; then
509     eval "$ac_prev=\$ac_option"
510     ac_prev=
511     continue
512   fi
513
514   case "$ac_option" in
515   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
516   *) ac_optarg= ;;
517   esac
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case "$ac_option" in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir="$ac_optarg" ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build="$ac_optarg" ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file="$ac_optarg" ;;
539
540   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541     ac_prev=datadir ;;
542   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543   | --da=*)
544     datadir="$ac_optarg" ;;
545
546   -disable-* | --disable-*)
547     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
548     # Reject names that are not valid shell variable names.
549     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
550       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
551     fi
552     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
553     eval "enable_${ac_feature}=no" ;;
554
555   -enable-* | --enable-*)
556     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
557     # Reject names that are not valid shell variable names.
558     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
559       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
560     fi
561     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
562     case "$ac_option" in
563       *=*) ;;
564       *) ac_optarg=yes ;;
565     esac
566     eval "enable_${ac_feature}='$ac_optarg'" ;;
567
568   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570   | --exec | --exe | --ex)
571     ac_prev=exec_prefix ;;
572   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574   | --exec=* | --exe=* | --ex=*)
575     exec_prefix="$ac_optarg" ;;
576
577   -gas | --gas | --ga | --g)
578     # Obsolete; use --with-gas.
579     with_gas=yes ;;
580
581   -help | --help | --hel | --he)
582     # Omit some internal or obsolete options to make the list less imposing.
583     # This message is too long to be a string in the A/UX 3.1 sh.
584     cat << EOF
585 Usage: configure [options] [host]
586 Options: [defaults in brackets after descriptions]
587 Configuration:
588   --cache-file=FILE       cache test results in FILE
589   --help                  print this message
590   --no-create             do not create output files
591   --quiet, --silent       do not print \`checking...' messages
592   --version               print the version of autoconf that created configure
593 Directory and file names:
594   --prefix=PREFIX         install architecture-independent files in PREFIX
595                           [$ac_default_prefix]
596   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
597                           [same as prefix]
598   --bindir=DIR            user executables in DIR [EPREFIX/bin]
599   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
600   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
601   --datadir=DIR           read-only architecture-independent data in DIR
602                           [PREFIX/share]
603   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
604   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
605                           [PREFIX/com]
606   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
607   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
608   --includedir=DIR        C header files in DIR [PREFIX/include]
609   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
610   --infodir=DIR           info documentation in DIR [PREFIX/info]
611   --mandir=DIR            man documentation in DIR [PREFIX/man]
612   --srcdir=DIR            find the sources in DIR [configure dir or ..]
613   --program-prefix=PREFIX prepend PREFIX to installed program names
614   --program-suffix=SUFFIX append SUFFIX to installed program names
615   --program-transform-name=PROGRAM
616                           run sed PROGRAM on installed program names
617 EOF
618     cat << EOF
619 Host type:
620   --build=BUILD           configure for building on BUILD [BUILD=HOST]
621   --host=HOST             configure for HOST [guessed]
622   --target=TARGET         configure for TARGET [TARGET=HOST]
623 Features and packages:
624   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
625   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
626   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
627   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
628   --x-includes=DIR        X include files are in DIR
629   --x-libraries=DIR       X library files are in DIR
630 EOF
631     if test -n "$ac_help"; then
632       echo "--enable and --with options recognized:$ac_help"
633     fi
634     exit 0 ;;
635
636   -host | --host | --hos | --ho)
637     ac_prev=host ;;
638   -host=* | --host=* | --hos=* | --ho=*)
639     host="$ac_optarg" ;;
640
641   -includedir | --includedir | --includedi | --included | --include \
642   | --includ | --inclu | --incl | --inc)
643     ac_prev=includedir ;;
644   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
645   | --includ=* | --inclu=* | --incl=* | --inc=*)
646     includedir="$ac_optarg" ;;
647
648   -infodir | --infodir | --infodi | --infod | --info | --inf)
649     ac_prev=infodir ;;
650   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
651     infodir="$ac_optarg" ;;
652
653   -libdir | --libdir | --libdi | --libd)
654     ac_prev=libdir ;;
655   -libdir=* | --libdir=* | --libdi=* | --libd=*)
656     libdir="$ac_optarg" ;;
657
658   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
659   | --libexe | --libex | --libe)
660     ac_prev=libexecdir ;;
661   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
662   | --libexe=* | --libex=* | --libe=*)
663     libexecdir="$ac_optarg" ;;
664
665   -localstatedir | --localstatedir | --localstatedi | --localstated \
666   | --localstate | --localstat | --localsta | --localst \
667   | --locals | --local | --loca | --loc | --lo)
668     ac_prev=localstatedir ;;
669   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
670   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
671   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
672     localstatedir="$ac_optarg" ;;
673
674   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
675     ac_prev=mandir ;;
676   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
677     mandir="$ac_optarg" ;;
678
679   -nfp | --nfp | --nf)
680     # Obsolete; use --without-fp.
681     with_fp=no ;;
682
683   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
684   | --no-cr | --no-c)
685     no_create=yes ;;
686
687   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
688   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
689     no_recursion=yes ;;
690
691   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
692   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
693   | --oldin | --oldi | --old | --ol | --o)
694     ac_prev=oldincludedir ;;
695   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
696   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
697   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698     oldincludedir="$ac_optarg" ;;
699
700   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
701     ac_prev=prefix ;;
702   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
703     prefix="$ac_optarg" ;;
704
705   -program-prefix | --program-prefix | --program-prefi | --program-pref \
706   | --program-pre | --program-pr | --program-p)
707     ac_prev=program_prefix ;;
708   -program-prefix=* | --program-prefix=* | --program-prefi=* \
709   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
710     program_prefix="$ac_optarg" ;;
711
712   -program-suffix | --program-suffix | --program-suffi | --program-suff \
713   | --program-suf | --program-su | --program-s)
714     ac_prev=program_suffix ;;
715   -program-suffix=* | --program-suffix=* | --program-suffi=* \
716   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
717     program_suffix="$ac_optarg" ;;
718
719   -program-transform-name | --program-transform-name \
720   | --program-transform-nam | --program-transform-na \
721   | --program-transform-n | --program-transform- \
722   | --program-transform | --program-transfor \
723   | --program-transfo | --program-transf \
724   | --program-trans | --program-tran \
725   | --progr-tra | --program-tr | --program-t)
726     ac_prev=program_transform_name ;;
727   -program-transform-name=* | --program-transform-name=* \
728   | --program-transform-nam=* | --program-transform-na=* \
729   | --program-transform-n=* | --program-transform-=* \
730   | --program-transform=* | --program-transfor=* \
731   | --program-transfo=* | --program-transf=* \
732   | --program-trans=* | --program-tran=* \
733   | --progr-tra=* | --program-tr=* | --program-t=*)
734     program_transform_name="$ac_optarg" ;;
735
736   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
737   | -silent | --silent | --silen | --sile | --sil)
738     silent=yes ;;
739
740   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
741     ac_prev=sbindir ;;
742   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
743   | --sbi=* | --sb=*)
744     sbindir="$ac_optarg" ;;
745
746   -sharedstatedir | --sharedstatedir | --sharedstatedi \
747   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
748   | --sharedst | --shareds | --shared | --share | --shar \
749   | --sha | --sh)
750     ac_prev=sharedstatedir ;;
751   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
752   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
753   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
754   | --sha=* | --sh=*)
755     sharedstatedir="$ac_optarg" ;;
756
757   -site | --site | --sit)
758     ac_prev=site ;;
759   -site=* | --site=* | --sit=*)
760     site="$ac_optarg" ;;
761
762   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
763     ac_prev=srcdir ;;
764   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
765     srcdir="$ac_optarg" ;;
766
767   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
768   | --syscon | --sysco | --sysc | --sys | --sy)
769     ac_prev=sysconfdir ;;
770   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
771   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
772     sysconfdir="$ac_optarg" ;;
773
774   -target | --target | --targe | --targ | --tar | --ta | --t)
775     ac_prev=target ;;
776   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
777     target="$ac_optarg" ;;
778
779   -v | -verbose | --verbose | --verbos | --verbo | --verb)
780     verbose=yes ;;
781
782   -version | --version | --versio | --versi | --vers)
783     echo "configure generated by autoconf version 2.13"
784     exit 0 ;;
785
786   -with-* | --with-*)
787     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
788     # Reject names that are not valid shell variable names.
789     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
790       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791     fi
792     ac_package=`echo $ac_package| sed 's/-/_/g'`
793     case "$ac_option" in
794       *=*) ;;
795       *) ac_optarg=yes ;;
796     esac
797     eval "with_${ac_package}='$ac_optarg'" ;;
798
799   -without-* | --without-*)
800     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
801     # Reject names that are not valid shell variable names.
802     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
803       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
804     fi
805     ac_package=`echo $ac_package| sed 's/-/_/g'`
806     eval "with_${ac_package}=no" ;;
807
808   --x)
809     # Obsolete; use --with-x.
810     with_x=yes ;;
811
812   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
813   | --x-incl | --x-inc | --x-in | --x-i)
814     ac_prev=x_includes ;;
815   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
816   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
817     x_includes="$ac_optarg" ;;
818
819   -x-libraries | --x-libraries | --x-librarie | --x-librari \
820   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
821     ac_prev=x_libraries ;;
822   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
823   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
824     x_libraries="$ac_optarg" ;;
825
826   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
827     ;;
828
829   *)
830     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
831       echo "configure: warning: $ac_option: invalid host type" 1>&2
832     fi
833     if test "x$nonopt" != xNONE; then
834       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
835     fi
836     nonopt="$ac_option"
837     ;;
838
839   esac
840 done
841
842 if test -n "$ac_prev"; then
843   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
844 fi
845
846 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
847
848 # File descriptor usage:
849 # 0 standard input
850 # 1 file creation
851 # 2 errors and warnings
852 # 3 some systems may open it to /dev/tty
853 # 4 used on the Kubota Titan
854 # 6 checking for... messages and results
855 # 5 compiler messages saved in config.log
856 if test "$silent" = yes; then
857   exec 6>/dev/null
858 else
859   exec 6>&1
860 fi
861 exec 5>./config.log
862
863 echo "\
864 This file contains any messages produced by compilers while
865 running configure, to aid debugging if configure makes a mistake.
866 " 1>&5
867
868 # Strip out --no-create and --no-recursion so they do not pile up.
869 # Also quote any args containing shell metacharacters.
870 ac_configure_args=
871 for ac_arg
872 do
873   case "$ac_arg" in
874   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875   | --no-cr | --no-c) ;;
876   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
878   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
879   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
880   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
881   esac
882 done
883
884 # NLS nuisances.
885 # Only set these to C if already set.  These must not be set unconditionally
886 # because not all systems understand e.g. LANG=C (notably SCO).
887 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
888 # Non-C LC_CTYPE values break the ctype check.
889 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
890 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
891 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
892 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
893
894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
895 rm -rf conftest* confdefs.h
896 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
897 echo > confdefs.h
898
899 # A filename unique to this package, relative to the directory that
900 # configure is in, which we can look for to find out if srcdir is correct.
901 ac_unique_file=wx-config.in
902
903 # Find the source files, if location was not specified.
904 if test -z "$srcdir"; then
905   ac_srcdir_defaulted=yes
906   # Try the directory containing this script, then its parent.
907   ac_prog=$0
908   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
909   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
910   srcdir=$ac_confdir
911   if test ! -r $srcdir/$ac_unique_file; then
912     srcdir=..
913   fi
914 else
915   ac_srcdir_defaulted=no
916 fi
917 if test ! -r $srcdir/$ac_unique_file; then
918   if test "$ac_srcdir_defaulted" = yes; then
919     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
920   else
921     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
922   fi
923 fi
924 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
925
926 # Prefer explicitly selected file to automatically selected ones.
927 if test -z "$CONFIG_SITE"; then
928   if test "x$prefix" != xNONE; then
929     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
930   else
931     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
932   fi
933 fi
934 for ac_site_file in $CONFIG_SITE; do
935   if test -r "$ac_site_file"; then
936     echo "loading site script $ac_site_file"
937     . "$ac_site_file"
938   fi
939 done
940
941 if test -r "$cache_file"; then
942   echo "loading cache $cache_file"
943   . $cache_file
944 else
945   echo "creating cache $cache_file"
946   > $cache_file
947 fi
948
949 ac_ext=c
950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954 cross_compiling=$ac_cv_prog_cc_cross
955
956 ac_exeext=
957 ac_objext=o
958 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
959   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
960   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
961     ac_n= ac_c='
962 ' ac_t='        '
963   else
964     ac_n=-n ac_c= ac_t=
965   fi
966 else
967   ac_n= ac_c='\c' ac_t=
968 fi
969
970
971
972 ac_aux_dir=
973 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974   if test -f $ac_dir/install-sh; then
975     ac_aux_dir=$ac_dir
976     ac_install_sh="$ac_aux_dir/install-sh -c"
977     break
978   elif test -f $ac_dir/install.sh; then
979     ac_aux_dir=$ac_dir
980     ac_install_sh="$ac_aux_dir/install.sh -c"
981     break
982   fi
983 done
984 if test -z "$ac_aux_dir"; then
985   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
986 fi
987 ac_config_guess=$ac_aux_dir/config.guess
988 ac_config_sub=$ac_aux_dir/config.sub
989 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
990
991
992 # Do some error checking and defaulting for the host and target type.
993 # The inputs are:
994 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
995 #
996 # The rules are:
997 # 1. You are not allowed to specify --host, --target, and nonopt at the
998 #    same time.
999 # 2. Host defaults to nonopt.
1000 # 3. If nonopt is not specified, then host defaults to the current host,
1001 #    as determined by config.guess.
1002 # 4. Target and build default to nonopt.
1003 # 5. If nonopt is not specified, then target and build default to host.
1004
1005 # The aliases save the names the user supplied, while $host etc.
1006 # will get canonicalized.
1007 case $host---$target---$nonopt in
1008 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010 esac
1011
1012
1013 # Make sure we can run config.sub.
1014 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1015 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016 fi
1017
1018 echo $ac_n "checking host system type""... $ac_c" 1>&6
1019 echo "configure:1020: checking host system type" >&5
1020
1021 host_alias=$host
1022 case "$host_alias" in
1023 NONE)
1024   case $nonopt in
1025   NONE)
1026     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1027     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1028     fi ;;
1029   *) host_alias=$nonopt ;;
1030   esac ;;
1031 esac
1032
1033 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1034 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$host" 1>&6
1038
1039 echo $ac_n "checking target system type""... $ac_c" 1>&6
1040 echo "configure:1041: checking target system type" >&5
1041
1042 target_alias=$target
1043 case "$target_alias" in
1044 NONE)
1045   case $nonopt in
1046   NONE) target_alias=$host_alias ;;
1047   *) target_alias=$nonopt ;;
1048   esac ;;
1049 esac
1050
1051 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1052 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 echo "$ac_t""$target" 1>&6
1056
1057 echo $ac_n "checking build system type""... $ac_c" 1>&6
1058 echo "configure:1059: checking build system type" >&5
1059
1060 build_alias=$build
1061 case "$build_alias" in
1062 NONE)
1063   case $nonopt in
1064   NONE) build_alias=$host_alias ;;
1065   *) build_alias=$nonopt ;;
1066   esac ;;
1067 esac
1068
1069 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1070 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1071 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1072 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1073 echo "$ac_t""$build" 1>&6
1074
1075 test "$host_alias" != "$target_alias" &&
1076   test "$program_prefix$program_suffix$program_transform_name" = \
1077     NONENONEs,x,x, &&
1078   program_prefix=${target_alias}-
1079
1080
1081
1082 WX_MAJOR_VERSION_NUMBER=2
1083 WX_MINOR_VERSION_NUMBER=5
1084 WX_RELEASE_NUMBER=0
1085
1086 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1087 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1088
1089 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1090
1091 WX_CURRENT=0
1092 WX_REVISION=0
1093 WX_AGE=0
1094
1095
1096
1097 USE_UNIX=1
1098 USE_WIN32=0
1099 USE_DOS=0
1100 USE_BEOS=0
1101 USE_MAC=0
1102
1103 USE_LINUX=
1104 USE_SGI=
1105 USE_HPUX=
1106 USE_SYSV=
1107 USE_SVR4=
1108 USE_AIX=
1109 USE_SUN=
1110 USE_SOLARIS=
1111 USE_SUNOS=
1112 USE_ALPHA=
1113 USE_OSF=
1114 USE_BSD=
1115 USE_DARWIN=
1116 USE_FREEBSD=
1117 USE_OPENBSD=
1118 USE_NETBSD=
1119 USE_VMS=
1120 USE_ULTRIX=
1121 USE_DATA_GENERAL=
1122
1123 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1124
1125 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1126
1127 DEFAULT_wxUSE_COCOA=0
1128 DEFAULT_wxUSE_GTK=0
1129 DEFAULT_wxUSE_MAC=0
1130 DEFAULT_wxUSE_MGL=0
1131 DEFAULT_wxUSE_MICROWIN=0
1132 DEFAULT_wxUSE_MOTIF=0
1133 DEFAULT_wxUSE_MSW=0
1134 DEFAULT_wxUSE_PM=0
1135 DEFAULT_wxUSE_X11=0
1136
1137 DEFAULT_DEFAULT_wxUSE_COCOA=0
1138 DEFAULT_DEFAULT_wxUSE_GTK=0
1139 DEFAULT_DEFAULT_wxUSE_MAC=0
1140 DEFAULT_DEFAULT_wxUSE_MGL=0
1141 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1143 DEFAULT_DEFAULT_wxUSE_MSW=0
1144 DEFAULT_DEFAULT_wxUSE_PM=0
1145 DEFAULT_DEFAULT_wxUSE_X11=0
1146
1147 PROGRAM_EXT=
1148 SO_SUFFIX=so
1149
1150 case "${host}" in
1151   *-hp-hpux* )
1152     USE_HPUX=1
1153     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1154     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1155     SO_SUFFIX=sl
1156     cat >> confdefs.h <<\EOF
1157 #define __HPUX__ 1
1158 EOF
1159
1160   ;;
1161   *-*-linux* )
1162     USE_LINUX=1
1163     cat >> confdefs.h <<\EOF
1164 #define __LINUX__ 1
1165 EOF
1166
1167     TMP=`uname -m`
1168     if test "x$TMP" = "xalpha"; then
1169       USE_ALPHA=1
1170       cat >> confdefs.h <<\EOF
1171 #define __ALPHA__ 1
1172 EOF
1173
1174     fi
1175     DEFAULT_DEFAULT_wxUSE_GTK=1
1176   ;;
1177   *-*-irix5* | *-*-irix6* )
1178     USE_SGI=1
1179     USE_SVR4=1
1180     cat >> confdefs.h <<\EOF
1181 #define __SGI__ 1
1182 EOF
1183
1184     cat >> confdefs.h <<\EOF
1185 #define __SVR4__ 1
1186 EOF
1187
1188     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1189   ;;
1190   *-*-solaris2* )
1191     USE_SUN=1
1192     USE_SOLARIS=1
1193     USE_SVR4=1
1194     cat >> confdefs.h <<\EOF
1195 #define __SUN__ 1
1196 EOF
1197
1198     cat >> confdefs.h <<\EOF
1199 #define __SOLARIS__ 1
1200 EOF
1201
1202     cat >> confdefs.h <<\EOF
1203 #define __SVR4__ 1
1204 EOF
1205
1206     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1207     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1208   ;;
1209   *-*-sunos4* )
1210     USE_SUN=1
1211     USE_SUNOS=1
1212     USE_BSD=1
1213     cat >> confdefs.h <<\EOF
1214 #define __SUN__ 1
1215 EOF
1216
1217     cat >> confdefs.h <<\EOF
1218 #define __SUNOS__ 1
1219 EOF
1220
1221     cat >> confdefs.h <<\EOF
1222 #define __BSD__ 1
1223 EOF
1224
1225     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1226   ;;
1227   *-*-freebsd*)
1228     USE_BSD=1
1229     USE_FREEBSD=1
1230     cat >> confdefs.h <<\EOF
1231 #define __FREEBSD__ 1
1232 EOF
1233
1234     cat >> confdefs.h <<\EOF
1235 #define __BSD__ 1
1236 EOF
1237
1238     DEFAULT_DEFAULT_wxUSE_GTK=1
1239   ;;
1240   *-*-openbsd*)
1241     USE_BSD=1
1242     USE_OPENBSD=1
1243     cat >> confdefs.h <<\EOF
1244 #define __OPENBSD__ 1
1245 EOF
1246
1247     cat >> confdefs.h <<\EOF
1248 #define __BSD__ 1
1249 EOF
1250
1251     DEFAULT_DEFAULT_wxUSE_GTK=1
1252   ;;
1253   *-*-netbsd*)
1254     USE_BSD=1
1255     USE_NETBSD=1
1256     cat >> confdefs.h <<\EOF
1257 #define __NETBSD__ 1
1258 EOF
1259
1260     cat >> confdefs.h <<\EOF
1261 #define __BSD__ 1
1262 EOF
1263
1264     DEFAULT_DEFAULT_wxUSE_GTK=1
1265   ;;
1266   *-*-osf* )
1267     USE_ALPHA=1
1268     USE_OSF=1
1269     cat >> confdefs.h <<\EOF
1270 #define __ALPHA__ 1
1271 EOF
1272
1273     cat >> confdefs.h <<\EOF
1274 #define __OSF__ 1
1275 EOF
1276
1277     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1278     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1279   ;;
1280   *-*-dgux5* )
1281     USE_ALPHA=1
1282     USE_SVR4=1
1283     cat >> confdefs.h <<\EOF
1284 #define __ALPHA__ 1
1285 EOF
1286
1287     cat >> confdefs.h <<\EOF
1288 #define __SVR4__ 1
1289 EOF
1290
1291     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292   ;;
1293   *-*-sysv5* )
1294     USE_SYSV=1
1295     USE_SVR4=1
1296     cat >> confdefs.h <<\EOF
1297 #define __SYSV__ 1
1298 EOF
1299
1300     cat >> confdefs.h <<\EOF
1301 #define __SVR4__ 1
1302 EOF
1303
1304     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1305   ;;
1306   *-*-aix* )
1307     USE_AIX=1
1308     USE_SYSV=1
1309     USE_SVR4=1
1310                         SO_SUFFIX=a
1311     cat >> confdefs.h <<\EOF
1312 #define __AIX__ 1
1313 EOF
1314
1315     cat >> confdefs.h <<\EOF
1316 #define __SYSV__ 1
1317 EOF
1318
1319     cat >> confdefs.h <<\EOF
1320 #define __SVR4__ 1
1321 EOF
1322
1323     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1324   ;;
1325
1326   *-*-cygwin* | *-*-mingw32* )
1327                 SO_SUFFIX=dll
1328     PROGRAM_EXT=".exe"
1329     RESCOMP=windres
1330     DEFAULT_DEFAULT_wxUSE_MSW=1
1331   ;;
1332
1333   *-pc-msdosdjgpp )
1334     USE_UNIX=0
1335     USE_DOS=1
1336     cat >> confdefs.h <<\EOF
1337 #define __DOS__ 1
1338 EOF
1339
1340     PROGRAM_EXT=".exe"
1341     DEFAULT_DEFAULT_wxUSE_MGL=1
1342         LIBS="$LIBS -lstdc++"
1343   ;;
1344
1345   *-pc-os2_emx | *-pc-os2-emx )
1346     cat >> confdefs.h <<\EOF
1347 #define __EMX__ 1
1348 EOF
1349
1350     PROGRAM_EXT=".exe"
1351     DEFAULT_DEFAULT_wxUSE_PM=1
1352   ;;
1353
1354   powerpc-*-darwin* )
1355         USE_BSD=1
1356     USE_DARWIN=1
1357     SO_SUFFIX=dylib
1358     cat >> confdefs.h <<\EOF
1359 #define __BSD__ 1
1360 EOF
1361
1362     cat >> confdefs.h <<\EOF
1363 #define __DARWIN__ 1
1364 EOF
1365
1366     cat >> confdefs.h <<\EOF
1367 #define __POWERPC__ 1
1368 EOF
1369
1370     cat >> confdefs.h <<\EOF
1371 #define TARGET_CARBON 1
1372 EOF
1373
1374     DEFAULT_DEFAULT_wxUSE_MAC=1
1375   ;;
1376
1377   *-*-beos* )
1378         USE_BEOS=1
1379     cat >> confdefs.h <<\EOF
1380 #define __BEOS__ 1
1381 EOF
1382
1383   ;;
1384
1385   *)
1386     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1387 esac
1388
1389
1390
1391
1392           wx_arg_cache_file="configarg.cache"
1393           echo "loading argument cache $wx_arg_cache_file"
1394           rm -f ${wx_arg_cache_file}.tmp
1395           touch ${wx_arg_cache_file}.tmp
1396           touch ${wx_arg_cache_file}
1397         
1398
1399 DEBUG_CONFIGURE=0
1400 if test $DEBUG_CONFIGURE = 1; then
1401   DEFAULT_wxUSE_UNIVERSAL=no
1402
1403   DEFAULT_wxUSE_NANOX=no
1404
1405   DEFAULT_wxUSE_THREADS=yes
1406
1407   DEFAULT_wxUSE_SHARED=yes
1408   DEFAULT_wxUSE_SONAME=no
1409   DEFAULT_wxUSE_OPTIMISE=no
1410   DEFAULT_wxUSE_PROFILE=no
1411   DEFAULT_wxUSE_NO_DEPS=no
1412   DEFAULT_wxUSE_NO_RTTI=no
1413   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1414   DEFAULT_wxUSE_PERMISSIVE=no
1415   DEFAULT_wxUSE_DEBUG_FLAG=yes
1416   DEFAULT_wxUSE_DEBUG_INFO=yes
1417   DEFAULT_wxUSE_DEBUG_GDB=yes
1418   DEFAULT_wxUSE_MEM_TRACING=no
1419   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1420   DEFAULT_wxUSE_DMALLOC=no
1421   DEFAULT_wxUSE_PRECOMP=no
1422   DEFAULT_wxUSE_APPLE_IEEE=no
1423
1424   DEFAULT_wxUSE_LOG=yes
1425   DEFAULT_wxUSE_LOGWINDOW=no
1426   DEFAULT_wxUSE_LOGGUI=no
1427   DEFAULT_wxUSE_LOGDIALOG=no
1428
1429   DEFAULT_wxUSE_GUI=yes
1430   DEFAULT_wxUSE_CONTROLS=no
1431
1432   DEFAULT_wxUSE_REGEX=no
1433   DEFAULT_wxUSE_ZLIB=no
1434   DEFAULT_wxUSE_LIBPNG=no
1435   DEFAULT_wxUSE_LIBJPEG=no
1436   DEFAULT_wxUSE_LIBTIFF=no
1437   DEFAULT_wxUSE_ODBC=no
1438   DEFAULT_wxUSE_OPENGL=no
1439
1440   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1441   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1442   DEFAULT_wxUSE_STD_IOSTREAM=no
1443   DEFAULT_wxUSE_CMDLINE_PARSER=no
1444   DEFAULT_wxUSE_DATETIME=no
1445   DEFAULT_wxUSE_TIMER=no
1446   DEFAULT_wxUSE_STOPWATCH=no
1447   DEFAULT_wxUSE_FILE=no
1448   DEFAULT_wxUSE_FFILE=no
1449   DEFAULT_wxUSE_TEXTBUFFER=no
1450   DEFAULT_wxUSE_TEXTFILE=no
1451   DEFAULT_wxUSE_WAVE=no
1452   DEFAULT_wxUSE_INTL=no
1453   DEFAULT_wxUSE_CONFIG=no
1454   DEFAULT_wxUSE_FONTMAP=no
1455   DEFAULT_wxUSE_STREAMS=no
1456   DEFAULT_wxUSE_SOCKETS=no
1457   DEFAULT_wxUSE_OLE=no
1458   DEFAULT_wxUSE_DATAOBJ=no
1459   DEFAULT_wxUSE_DIALUP_MANAGER=no
1460   DEFAULT_wxUSE_JOYSTICK=no
1461   DEFAULT_wxUSE_DYNLIB_CLASS=no
1462   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1463   DEFAULT_wxUSE_LONGLONG=no
1464   DEFAULT_wxUSE_GEOMETRY=no
1465
1466   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1467   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1468   DEFAULT_wxUSE_POSTSCRIPT=no
1469
1470   DEFAULT_wxUSE_X_RESOURCES=no
1471   DEFAULT_wxUSE_CLIPBOARD=no
1472   DEFAULT_wxUSE_TOOLTIPS=no
1473   DEFAULT_wxUSE_DRAG_AND_DROP=no
1474   DEFAULT_wxUSE_DRAGIMAGE=no
1475   DEFAULT_wxUSE_SPLINES=no
1476
1477   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1478   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1479   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1480
1481   DEFAULT_wxUSE_RESOURCES=no
1482   DEFAULT_wxUSE_CONSTRAINTS=no
1483   DEFAULT_wxUSE_IPC=no
1484   DEFAULT_wxUSE_HELP=no
1485   DEFAULT_wxUSE_MS_HTML_HELP=no
1486   DEFAULT_wxUSE_WXHTML_HELP=no
1487   DEFAULT_wxUSE_TREELAYOUT=no
1488   DEFAULT_wxUSE_METAFILE=no
1489   DEFAULT_wxUSE_MIMETYPE=no
1490   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1491   DEFAULT_wxUSE_PROTOCOL=no
1492   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1493   DEFAULT_wxUSE_PROTOCOL_FTP=no
1494   DEFAULT_wxUSE_PROTOCOL_FILE=no
1495   DEFAULT_wxUSE_URL=no
1496
1497   DEFAULT_wxUSE_COMMONDLGS=no
1498   DEFAULT_wxUSE_CHOICEDLG=no
1499   DEFAULT_wxUSE_COLOURDLG=no
1500   DEFAULT_wxUSE_DIRDLG=no
1501   DEFAULT_wxUSE_FILEDLG=no
1502   DEFAULT_wxUSE_FINDREPLDLG=no
1503   DEFAULT_wxUSE_FONTDLG=no
1504   DEFAULT_wxUSE_MSGDLG=no
1505   DEFAULT_wxUSE_NUMBERDLG=no
1506   DEFAULT_wxUSE_TEXTDLG=no
1507   DEFAULT_wxUSE_SPLASH=no
1508   DEFAULT_wxUSE_STARTUP_TIPS=no
1509   DEFAULT_wxUSE_PROGRESSDLG=no
1510   DEFAULT_wxUSE_WIZARDDLG=no
1511
1512   DEFAULT_wxUSE_MENUS=no
1513   DEFAULT_wxUSE_MINIFRAME=no
1514   DEFAULT_wxUSE_HTML=no
1515   DEFAULT_wxUSE_FILESYSTEM=no
1516   DEFAULT_wxUSE_FS_INET=no
1517   DEFAULT_wxUSE_FS_ZIP=no
1518   DEFAULT_wxUSE_BUSYINFO=no
1519   DEFAULT_wxUSE_ZIPSTREAM=no
1520   DEFAULT_wxUSE_VALIDATORS=no
1521
1522   DEFAULT_wxUSE_ACCEL=no
1523   DEFAULT_wxUSE_BUTTON=no
1524   DEFAULT_wxUSE_BMPBUTTON=no
1525   DEFAULT_wxUSE_CALCTRL=no
1526   DEFAULT_wxUSE_CARET=no
1527   DEFAULT_wxUSE_CHECKBOX=no
1528   DEFAULT_wxUSE_CHECKLST=no
1529   DEFAULT_wxUSE_CHOICE=no
1530   DEFAULT_wxUSE_COMBOBOX=no
1531   DEFAULT_wxUSE_DISPLAY=no
1532   DEFAULT_wxUSE_GAUGE=no
1533   DEFAULT_wxUSE_GRID=no
1534   DEFAULT_wxUSE_IMAGLIST=no
1535   DEFAULT_wxUSE_LISTBOX=no
1536   DEFAULT_wxUSE_LISTCTRL=no
1537   DEFAULT_wxUSE_NOTEBOOK=no
1538   DEFAULT_wxUSE_RADIOBOX=no
1539   DEFAULT_wxUSE_RADIOBTN=no
1540   DEFAULT_wxUSE_SASH=no
1541   DEFAULT_wxUSE_SCROLLBAR=no
1542   DEFAULT_wxUSE_SLIDER=no
1543   DEFAULT_wxUSE_SPINBTN=no
1544   DEFAULT_wxUSE_SPINCTRL=no
1545   DEFAULT_wxUSE_SPLITTER=no
1546   DEFAULT_wxUSE_STATBMP=no
1547   DEFAULT_wxUSE_STATBOX=no
1548   DEFAULT_wxUSE_STATLINE=no
1549   DEFAULT_wxUSE_STATTEXT=no
1550   DEFAULT_wxUSE_STATUSBAR=yes
1551   DEFAULT_wxUSE_TABDIALOG=no
1552   DEFAULT_wxUSE_TEXTCTRL=no
1553   DEFAULT_wxUSE_TOGGLEBTN=no
1554   DEFAULT_wxUSE_TOOLBAR=no
1555   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1557   DEFAULT_wxUSE_TREECTRL=no
1558   DEFAULT_wxUSE_POPUPWIN=no
1559   DEFAULT_wxUSE_TIPWINDOW=no
1560
1561   DEFAULT_wxUSE_UNICODE=no
1562   DEFAULT_wxUSE_UNICODE_MSLU=no
1563   DEFAULT_wxUSE_WCSRTOMBS=no
1564
1565   DEFAULT_wxUSE_PALETTE=no
1566   DEFAULT_wxUSE_IMAGE=no
1567   DEFAULT_wxUSE_GIF=no
1568   DEFAULT_wxUSE_PCX=no
1569   DEFAULT_wxUSE_PNM=no
1570   DEFAULT_wxUSE_IFF=no
1571   DEFAULT_wxUSE_XPM=no
1572   DEFAULT_wxUSE_ICO_CUR=no
1573 else
1574   DEFAULT_wxUSE_UNIVERSAL=no
1575
1576   DEFAULT_wxUSE_NANOX=no
1577
1578   DEFAULT_wxUSE_THREADS=yes
1579
1580   DEFAULT_wxUSE_SHARED=yes
1581   DEFAULT_wxUSE_SONAME=no
1582   DEFAULT_wxUSE_OPTIMISE=yes
1583   DEFAULT_wxUSE_PROFILE=no
1584   DEFAULT_wxUSE_NO_DEPS=no
1585   DEFAULT_wxUSE_NO_RTTI=no
1586   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1587   DEFAULT_wxUSE_PERMISSIVE=no
1588   DEFAULT_wxUSE_DEBUG_FLAG=no
1589   DEFAULT_wxUSE_DEBUG_INFO=no
1590   DEFAULT_wxUSE_DEBUG_GDB=no
1591   DEFAULT_wxUSE_MEM_TRACING=no
1592   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593   DEFAULT_wxUSE_DMALLOC=no
1594   DEFAULT_wxUSE_PRECOMP=no
1595   DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597   DEFAULT_wxUSE_LOG=yes
1598   DEFAULT_wxUSE_LOGWINDOW=yes
1599   DEFAULT_wxUSE_LOGGUI=yes
1600   DEFAULT_wxUSE_LOGDIALOG=yes
1601
1602   DEFAULT_wxUSE_GUI=yes
1603
1604   DEFAULT_wxUSE_REGEX=yes
1605   DEFAULT_wxUSE_ZLIB=yes
1606   DEFAULT_wxUSE_LIBPNG=yes
1607   DEFAULT_wxUSE_LIBJPEG=yes
1608   DEFAULT_wxUSE_LIBTIFF=yes
1609   DEFAULT_wxUSE_ODBC=no
1610   DEFAULT_wxUSE_OPENGL=no
1611
1612   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1613   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1614   DEFAULT_wxUSE_STD_IOSTREAM=no
1615   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616   DEFAULT_wxUSE_DATETIME=yes
1617   DEFAULT_wxUSE_TIMER=yes
1618   DEFAULT_wxUSE_STOPWATCH=yes
1619   DEFAULT_wxUSE_FILE=yes
1620   DEFAULT_wxUSE_FFILE=yes
1621   DEFAULT_wxUSE_TEXTBUFFER=yes
1622   DEFAULT_wxUSE_TEXTFILE=yes
1623   DEFAULT_wxUSE_WAVE=no
1624   DEFAULT_wxUSE_INTL=yes
1625   DEFAULT_wxUSE_CONFIG=yes
1626   DEFAULT_wxUSE_FONTMAP=yes
1627   DEFAULT_wxUSE_STREAMS=yes
1628   DEFAULT_wxUSE_SOCKETS=yes
1629   DEFAULT_wxUSE_OLE=yes
1630   DEFAULT_wxUSE_DATAOBJ=yes
1631   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1632   DEFAULT_wxUSE_JOYSTICK=yes
1633   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1634   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1635   DEFAULT_wxUSE_LONGLONG=yes
1636   DEFAULT_wxUSE_GEOMETRY=yes
1637
1638   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1639   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1640   DEFAULT_wxUSE_POSTSCRIPT=yes
1641
1642   DEFAULT_wxUSE_X_RESOURCES=no
1643   DEFAULT_wxUSE_CLIPBOARD=yes
1644   DEFAULT_wxUSE_TOOLTIPS=yes
1645   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1646   DEFAULT_wxUSE_DRAGIMAGE=yes
1647   DEFAULT_wxUSE_SPLINES=yes
1648
1649   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1650   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1651   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1652
1653   DEFAULT_wxUSE_RESOURCES=no
1654   DEFAULT_wxUSE_CONSTRAINTS=yes
1655   DEFAULT_wxUSE_IPC=yes
1656   DEFAULT_wxUSE_HELP=yes
1657   DEFAULT_wxUSE_MS_HTML_HELP=yes
1658   DEFAULT_wxUSE_WXHTML_HELP=yes
1659   DEFAULT_wxUSE_TREELAYOUT=yes
1660   DEFAULT_wxUSE_METAFILE=yes
1661   DEFAULT_wxUSE_MIMETYPE=yes
1662   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1663   DEFAULT_wxUSE_PROTOCOL=yes
1664   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1665   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1666   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1667   DEFAULT_wxUSE_URL=yes
1668
1669   DEFAULT_wxUSE_COMMONDLGS=yes
1670   DEFAULT_wxUSE_CHOICEDLG=yes
1671   DEFAULT_wxUSE_COLOURDLG=yes
1672   DEFAULT_wxUSE_DIRDLG=yes
1673   DEFAULT_wxUSE_FILEDLG=yes
1674   DEFAULT_wxUSE_FINDREPLDLG=yes
1675   DEFAULT_wxUSE_FONTDLG=yes
1676   DEFAULT_wxUSE_MSGDLG=yes
1677   DEFAULT_wxUSE_NUMBERDLG=yes
1678   DEFAULT_wxUSE_TEXTDLG=yes
1679   DEFAULT_wxUSE_SPLASH=yes
1680   DEFAULT_wxUSE_STARTUP_TIPS=yes
1681   DEFAULT_wxUSE_PROGRESSDLG=yes
1682   DEFAULT_wxUSE_WIZARDDLG=yes
1683
1684   DEFAULT_wxUSE_MENUS=yes
1685   DEFAULT_wxUSE_MINIFRAME=yes
1686   DEFAULT_wxUSE_HTML=yes
1687   DEFAULT_wxUSE_FILESYSTEM=yes
1688   DEFAULT_wxUSE_FS_INET=yes
1689   DEFAULT_wxUSE_FS_ZIP=yes
1690   DEFAULT_wxUSE_BUSYINFO=yes
1691   DEFAULT_wxUSE_ZIPSTREAM=yes
1692   DEFAULT_wxUSE_VALIDATORS=yes
1693
1694   DEFAULT_wxUSE_ACCEL=yes
1695   DEFAULT_wxUSE_BUTTON=yes
1696   DEFAULT_wxUSE_BMPBUTTON=yes
1697   DEFAULT_wxUSE_CALCTRL=yes
1698   DEFAULT_wxUSE_CARET=yes
1699   DEFAULT_wxUSE_CHECKBOX=yes
1700   DEFAULT_wxUSE_CHECKLST=yes
1701   DEFAULT_wxUSE_CHOICE=yes
1702   DEFAULT_wxUSE_COMBOBOX=yes
1703   DEFAULT_wxUSE_DISPLAY=no
1704   DEFAULT_wxUSE_GAUGE=yes
1705   DEFAULT_wxUSE_GRID=yes
1706   DEFAULT_wxUSE_IMAGLIST=yes
1707   DEFAULT_wxUSE_LISTBOX=yes
1708   DEFAULT_wxUSE_LISTCTRL=yes
1709   DEFAULT_wxUSE_NOTEBOOK=yes
1710   DEFAULT_wxUSE_RADIOBOX=yes
1711   DEFAULT_wxUSE_RADIOBTN=yes
1712   DEFAULT_wxUSE_SASH=yes
1713   DEFAULT_wxUSE_SCROLLBAR=yes
1714   DEFAULT_wxUSE_SLIDER=yes
1715   DEFAULT_wxUSE_SPINBTN=yes
1716   DEFAULT_wxUSE_SPINCTRL=yes
1717   DEFAULT_wxUSE_SPLITTER=yes
1718   DEFAULT_wxUSE_STATBMP=yes
1719   DEFAULT_wxUSE_STATBOX=yes
1720   DEFAULT_wxUSE_STATLINE=yes
1721   DEFAULT_wxUSE_STATTEXT=yes
1722   DEFAULT_wxUSE_STATUSBAR=yes
1723   DEFAULT_wxUSE_TABDIALOG=no
1724   DEFAULT_wxUSE_TEXTCTRL=yes
1725   DEFAULT_wxUSE_TOGGLEBTN=yes
1726   DEFAULT_wxUSE_TOOLBAR=yes
1727   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1729   DEFAULT_wxUSE_TREECTRL=yes
1730   DEFAULT_wxUSE_POPUPWIN=yes
1731   DEFAULT_wxUSE_TIPWINDOW=yes
1732
1733   DEFAULT_wxUSE_UNICODE=no
1734   DEFAULT_wxUSE_UNICODE_MSLU=yes
1735   DEFAULT_wxUSE_WCSRTOMBS=no
1736
1737   DEFAULT_wxUSE_PALETTE=yes
1738   DEFAULT_wxUSE_IMAGE=yes
1739   DEFAULT_wxUSE_GIF=yes
1740   DEFAULT_wxUSE_PCX=yes
1741   DEFAULT_wxUSE_IFF=no
1742   DEFAULT_wxUSE_PNM=yes
1743   DEFAULT_wxUSE_XPM=yes
1744   DEFAULT_wxUSE_ICO_CUR=yes
1745 fi
1746
1747
1748
1749 for toolkit in `echo $ALL_TOOLKITS`; do
1750   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751   if test "x$LINE" != "x" ; then
1752     has_toolkit_in_cache=1
1753     eval "DEFAULT_$LINE"
1754     eval "CACHE_$toolkit=1"
1755   fi
1756 done
1757
1758
1759
1760           enablestring=
1761           echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1762 echo "configure:1763: checking for --${enablestring:-enable}-gui" >&5
1763           no_cache=0
1764           # Check whether --enable-gui or --disable-gui was given.
1765 if test "${enable_gui+set}" = set; then
1766   enableval="$enable_gui"
1767   
1768                           if test "$enableval" = yes; then
1769                             ac_cv_use_gui='wxUSE_GUI=yes'
1770                           else
1771                             ac_cv_use_gui='wxUSE_GUI=no'
1772                           fi
1773                         
1774 else
1775   
1776                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1777                           if test "x$LINE" != x ; then
1778                             eval "DEFAULT_$LINE"
1779                           else
1780                             no_cache=1
1781                           fi
1782
1783                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1784                         
1785 fi
1786
1787
1788           eval "$ac_cv_use_gui"
1789           if test "$no_cache" != 1; then
1790             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1791           fi
1792
1793           if test "$wxUSE_GUI" = yes; then
1794             echo "$ac_t""yes" 1>&6
1795           else
1796             echo "$ac_t""no" 1>&6
1797           fi
1798         
1799
1800 if test "$wxUSE_GUI" = "yes"; then
1801
1802
1803           enablestring=
1804           echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1805 echo "configure:1806: checking for --${enablestring:-enable}-universal" >&5
1806           no_cache=0
1807           # Check whether --enable-universal or --disable-universal was given.
1808 if test "${enable_universal+set}" = set; then
1809   enableval="$enable_universal"
1810   
1811                           if test "$enableval" = yes; then
1812                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1813                           else
1814                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1815                           fi
1816                         
1817 else
1818   
1819                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1820                           if test "x$LINE" != x ; then
1821                             eval "DEFAULT_$LINE"
1822                           else
1823                             no_cache=1
1824                           fi
1825
1826                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1827                         
1828 fi
1829
1830
1831           eval "$ac_cv_use_universal"
1832           if test "$no_cache" != 1; then
1833             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1834           fi
1835
1836           if test "$wxUSE_UNIVERSAL" = yes; then
1837             echo "$ac_t""yes" 1>&6
1838           else
1839             echo "$ac_t""no" 1>&6
1840           fi
1841         
1842 # Check whether --with-gtk or --without-gtk was given.
1843 if test "${with_gtk+set}" = set; then
1844   withval="$with_gtk"
1845   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1846 fi
1847
1848 # Check whether --with-motif or --without-motif was given.
1849 if test "${with_motif+set}" = set; then
1850   withval="$with_motif"
1851   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1852 fi
1853
1854 # Check whether --with-mac or --without-mac was given.
1855 if test "${with_mac+set}" = set; then
1856   withval="$with_mac"
1857   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1858 fi
1859
1860 # Check whether --with-cocoa or --without-cocoa was given.
1861 if test "${with_cocoa+set}" = set; then
1862   withval="$with_cocoa"
1863   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1864 fi
1865
1866 # Check whether --with-wine or --without-wine was given.
1867 if test "${with_wine+set}" = set; then
1868   withval="$with_wine"
1869   wxUSE_WINE="$withval" CACHE_WINE=1
1870 fi
1871
1872 # Check whether --with-msw or --without-msw was given.
1873 if test "${with_msw+set}" = set; then
1874   withval="$with_msw"
1875   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1876 fi
1877
1878 # Check whether --with-pm or --without-pm was given.
1879 if test "${with_pm+set}" = set; then
1880   withval="$with_pm"
1881   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1882 fi
1883
1884 # Check whether --with-mgl or --without-mgl was given.
1885 if test "${with_mgl+set}" = set; then
1886   withval="$with_mgl"
1887   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1888 fi
1889
1890 # Check whether --with-microwin or --without-microwin was given.
1891 if test "${with_microwin+set}" = set; then
1892   withval="$with_microwin"
1893   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1894 fi
1895
1896 # Check whether --with-x11 or --without-x11 was given.
1897 if test "${with_x11+set}" = set; then
1898   withval="$with_x11"
1899   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1900 fi
1901
1902
1903           enablestring=
1904           echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1905 echo "configure:1906: checking for --${enablestring:-enable}-nanox" >&5
1906           no_cache=0
1907           # Check whether --enable-nanox or --disable-nanox was given.
1908 if test "${enable_nanox+set}" = set; then
1909   enableval="$enable_nanox"
1910   
1911                           if test "$enableval" = yes; then
1912                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1913                           else
1914                             ac_cv_use_nanox='wxUSE_NANOX=no'
1915                           fi
1916                         
1917 else
1918   
1919                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1920                           if test "x$LINE" != x ; then
1921                             eval "DEFAULT_$LINE"
1922                           else
1923                             no_cache=1
1924                           fi
1925
1926                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1927                         
1928 fi
1929
1930
1931           eval "$ac_cv_use_nanox"
1932           if test "$no_cache" != 1; then
1933             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1934           fi
1935
1936           if test "$wxUSE_NANOX" = yes; then
1937             echo "$ac_t""yes" 1>&6
1938           else
1939             echo "$ac_t""no" 1>&6
1940           fi
1941         
1942
1943
1944           enablestring=
1945           echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1946 echo "configure:1947: checking for --${enablestring:-enable}-gtk2" >&5
1947           no_cache=0
1948           # Check whether --enable-gtk2 or --disable-gtk2 was given.
1949 if test "${enable_gtk2+set}" = set; then
1950   enableval="$enable_gtk2"
1951   
1952                           if test "$enableval" = yes; then
1953                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
1954                           else
1955                             ac_cv_use_gtk2='wxUSE_GTK2=no'
1956                           fi
1957                         
1958 else
1959   
1960                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1961                           if test "x$LINE" != x ; then
1962                             eval "DEFAULT_$LINE"
1963                           else
1964                             no_cache=1
1965                           fi
1966
1967                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1968                         
1969 fi
1970
1971
1972           eval "$ac_cv_use_gtk2"
1973           if test "$no_cache" != 1; then
1974             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1975           fi
1976
1977           if test "$wxUSE_GTK2" = yes; then
1978             echo "$ac_t""yes" 1>&6
1979           else
1980             echo "$ac_t""no" 1>&6
1981           fi
1982         
1983
1984
1985           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1986 echo "configure:1987: checking for --with-libpng" >&5
1987           no_cache=0
1988           # Check whether --with-libpng or --without-libpng was given.
1989 if test "${with_libpng+set}" = set; then
1990   withval="$with_libpng"
1991   
1992                         if test "$withval" = yes; then
1993                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1994                         elif test "$withval" = no; then
1995                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1996                         elif test "$withval" = sys; then
1997                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1998                         elif test "$withval" = builtin; then
1999                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2000                         else
2001                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2002                         fi
2003                       
2004 else
2005   
2006                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2007                         if test "x$LINE" != x ; then
2008                           eval "DEFAULT_$LINE"
2009                         else
2010                           no_cache=1
2011                         fi
2012
2013                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2014                       
2015 fi
2016
2017
2018           eval "$ac_cv_use_libpng"
2019           if test "$no_cache" != 1; then
2020             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2021           fi
2022
2023           if test "$wxUSE_LIBPNG" = yes; then
2024             echo "$ac_t""yes" 1>&6
2025           elif test "$wxUSE_LIBPNG" = no; then
2026             echo "$ac_t""no" 1>&6
2027           elif test "$wxUSE_LIBPNG" = sys; then
2028             echo "$ac_t""system version" 1>&6
2029           elif test "$wxUSE_LIBPNG" = builtin; then
2030             echo "$ac_t""builtin version" 1>&6
2031           else
2032             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2033           fi
2034         
2035
2036           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2037 echo "configure:2038: checking for --with-libjpeg" >&5
2038           no_cache=0
2039           # Check whether --with-libjpeg or --without-libjpeg was given.
2040 if test "${with_libjpeg+set}" = set; then
2041   withval="$with_libjpeg"
2042   
2043                         if test "$withval" = yes; then
2044                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2045                         elif test "$withval" = no; then
2046                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2047                         elif test "$withval" = sys; then
2048                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2049                         elif test "$withval" = builtin; then
2050                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2051                         else
2052                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2053                         fi
2054                       
2055 else
2056   
2057                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2058                         if test "x$LINE" != x ; then
2059                           eval "DEFAULT_$LINE"
2060                         else
2061                           no_cache=1
2062                         fi
2063
2064                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2065                       
2066 fi
2067
2068
2069           eval "$ac_cv_use_libjpeg"
2070           if test "$no_cache" != 1; then
2071             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2072           fi
2073
2074           if test "$wxUSE_LIBJPEG" = yes; then
2075             echo "$ac_t""yes" 1>&6
2076           elif test "$wxUSE_LIBJPEG" = no; then
2077             echo "$ac_t""no" 1>&6
2078           elif test "$wxUSE_LIBJPEG" = sys; then
2079             echo "$ac_t""system version" 1>&6
2080           elif test "$wxUSE_LIBJPEG" = builtin; then
2081             echo "$ac_t""builtin version" 1>&6
2082           else
2083             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2084           fi
2085         
2086
2087           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2088 echo "configure:2089: checking for --with-libtiff" >&5
2089           no_cache=0
2090           # Check whether --with-libtiff or --without-libtiff was given.
2091 if test "${with_libtiff+set}" = set; then
2092   withval="$with_libtiff"
2093   
2094                         if test "$withval" = yes; then
2095                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2096                         elif test "$withval" = no; then
2097                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2098                         elif test "$withval" = sys; then
2099                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2100                         elif test "$withval" = builtin; then
2101                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2102                         else
2103                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2104                         fi
2105                       
2106 else
2107   
2108                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2109                         if test "x$LINE" != x ; then
2110                           eval "DEFAULT_$LINE"
2111                         else
2112                           no_cache=1
2113                         fi
2114
2115                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2116                       
2117 fi
2118
2119
2120           eval "$ac_cv_use_libtiff"
2121           if test "$no_cache" != 1; then
2122             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2123           fi
2124
2125           if test "$wxUSE_LIBTIFF" = yes; then
2126             echo "$ac_t""yes" 1>&6
2127           elif test "$wxUSE_LIBTIFF" = no; then
2128             echo "$ac_t""no" 1>&6
2129           elif test "$wxUSE_LIBTIFF" = sys; then
2130             echo "$ac_t""system version" 1>&6
2131           elif test "$wxUSE_LIBTIFF" = builtin; then
2132             echo "$ac_t""builtin version" 1>&6
2133           else
2134             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2135           fi
2136         
2137
2138           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2139 echo "configure:2140: checking for --with-opengl" >&5
2140           no_cache=0
2141           # Check whether --with-opengl or --without-opengl was given.
2142 if test "${with_opengl+set}" = set; then
2143   withval="$with_opengl"
2144   
2145                         if test "$withval" = yes; then
2146                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2147                         else
2148                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2149                         fi
2150                       
2151 else
2152   
2153                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2154                         if test "x$LINE" != x ; then
2155                           eval "DEFAULT_$LINE"
2156                         else
2157                           no_cache=1
2158                         fi
2159
2160                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2161                       
2162 fi
2163
2164
2165           eval "$ac_cv_use_opengl"
2166           if test "$no_cache" != 1; then
2167             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2168           fi
2169
2170           if test "$wxUSE_OPENGL" = yes; then
2171             echo "$ac_t""yes" 1>&6
2172           else
2173             echo "$ac_t""no" 1>&6
2174           fi
2175         
2176
2177 fi
2178
2179
2180           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2181 echo "configure:2182: checking for --with-dmalloc" >&5
2182           no_cache=0
2183           # Check whether --with-dmalloc or --without-dmalloc was given.
2184 if test "${with_dmalloc+set}" = set; then
2185   withval="$with_dmalloc"
2186   
2187                         if test "$withval" = yes; then
2188                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2189                         else
2190                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2191                         fi
2192                       
2193 else
2194   
2195                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2196                         if test "x$LINE" != x ; then
2197                           eval "DEFAULT_$LINE"
2198                         else
2199                           no_cache=1
2200                         fi
2201
2202                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2203                       
2204 fi
2205
2206
2207           eval "$ac_cv_use_dmalloc"
2208           if test "$no_cache" != 1; then
2209             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2210           fi
2211
2212           if test "$wxUSE_DMALLOC" = yes; then
2213             echo "$ac_t""yes" 1>&6
2214           else
2215             echo "$ac_t""no" 1>&6
2216           fi
2217         
2218
2219           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2220 echo "configure:2221: checking for --with-regex" >&5
2221           no_cache=0
2222           # Check whether --with-regex or --without-regex was given.
2223 if test "${with_regex+set}" = set; then
2224   withval="$with_regex"
2225   
2226                         if test "$withval" = yes; then
2227                           ac_cv_use_regex='wxUSE_REGEX=yes'
2228                         elif test "$withval" = no; then
2229                           ac_cv_use_regex='wxUSE_REGEX=no'
2230                         elif test "$withval" = sys; then
2231                           ac_cv_use_regex='wxUSE_REGEX=sys'
2232                         elif test "$withval" = builtin; then
2233                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2234                         else
2235                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2236                         fi
2237                       
2238 else
2239   
2240                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2241                         if test "x$LINE" != x ; then
2242                           eval "DEFAULT_$LINE"
2243                         else
2244                           no_cache=1
2245                         fi
2246
2247                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2248                       
2249 fi
2250
2251
2252           eval "$ac_cv_use_regex"
2253           if test "$no_cache" != 1; then
2254             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2255           fi
2256
2257           if test "$wxUSE_REGEX" = yes; then
2258             echo "$ac_t""yes" 1>&6
2259           elif test "$wxUSE_REGEX" = no; then
2260             echo "$ac_t""no" 1>&6
2261           elif test "$wxUSE_REGEX" = sys; then
2262             echo "$ac_t""system version" 1>&6
2263           elif test "$wxUSE_REGEX" = builtin; then
2264             echo "$ac_t""builtin version" 1>&6
2265           else
2266             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2267           fi
2268         
2269
2270           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2271 echo "configure:2272: checking for --with-zlib" >&5
2272           no_cache=0
2273           # Check whether --with-zlib or --without-zlib was given.
2274 if test "${with_zlib+set}" = set; then
2275   withval="$with_zlib"
2276   
2277                         if test "$withval" = yes; then
2278                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2279                         elif test "$withval" = no; then
2280                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2281                         elif test "$withval" = sys; then
2282                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2283                         elif test "$withval" = builtin; then
2284                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2285                         else
2286                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2287                         fi
2288                       
2289 else
2290   
2291                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2292                         if test "x$LINE" != x ; then
2293                           eval "DEFAULT_$LINE"
2294                         else
2295                           no_cache=1
2296                         fi
2297
2298                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2299                       
2300 fi
2301
2302
2303           eval "$ac_cv_use_zlib"
2304           if test "$no_cache" != 1; then
2305             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2306           fi
2307
2308           if test "$wxUSE_ZLIB" = yes; then
2309             echo "$ac_t""yes" 1>&6
2310           elif test "$wxUSE_ZLIB" = no; then
2311             echo "$ac_t""no" 1>&6
2312           elif test "$wxUSE_ZLIB" = sys; then
2313             echo "$ac_t""system version" 1>&6
2314           elif test "$wxUSE_ZLIB" = builtin; then
2315             echo "$ac_t""builtin version" 1>&6
2316           else
2317             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2318           fi
2319         
2320
2321           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2322 echo "configure:2323: checking for --with-odbc" >&5
2323           no_cache=0
2324           # Check whether --with-odbc or --without-odbc was given.
2325 if test "${with_odbc+set}" = set; then
2326   withval="$with_odbc"
2327   
2328                         if test "$withval" = yes; then
2329                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2330                         else
2331                           ac_cv_use_odbc='wxUSE_ODBC=no'
2332                         fi
2333                       
2334 else
2335   
2336                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2337                         if test "x$LINE" != x ; then
2338                           eval "DEFAULT_$LINE"
2339                         else
2340                           no_cache=1
2341                         fi
2342
2343                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2344                       
2345 fi
2346
2347
2348           eval "$ac_cv_use_odbc"
2349           if test "$no_cache" != 1; then
2350             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2351           fi
2352
2353           if test "$wxUSE_ODBC" = yes; then
2354             echo "$ac_t""yes" 1>&6
2355           else
2356             echo "$ac_t""no" 1>&6
2357           fi
2358         
2359
2360
2361
2362           enablestring=
2363           echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2364 echo "configure:2365: checking for --${enablestring:-enable}-shared" >&5
2365           no_cache=0
2366           # Check whether --enable-shared or --disable-shared was given.
2367 if test "${enable_shared+set}" = set; then
2368   enableval="$enable_shared"
2369   
2370                           if test "$enableval" = yes; then
2371                             ac_cv_use_shared='wxUSE_SHARED=yes'
2372                           else
2373                             ac_cv_use_shared='wxUSE_SHARED=no'
2374                           fi
2375                         
2376 else
2377   
2378                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2379                           if test "x$LINE" != x ; then
2380                             eval "DEFAULT_$LINE"
2381                           else
2382                             no_cache=1
2383                           fi
2384
2385                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2386                         
2387 fi
2388
2389
2390           eval "$ac_cv_use_shared"
2391           if test "$no_cache" != 1; then
2392             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2393           fi
2394
2395           if test "$wxUSE_SHARED" = yes; then
2396             echo "$ac_t""yes" 1>&6
2397           else
2398             echo "$ac_t""no" 1>&6
2399           fi
2400         
2401
2402           enablestring=
2403           echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2404 echo "configure:2405: checking for --${enablestring:-enable}-soname" >&5
2405           no_cache=0
2406           # Check whether --enable-soname or --disable-soname was given.
2407 if test "${enable_soname+set}" = set; then
2408   enableval="$enable_soname"
2409   
2410                           if test "$enableval" = yes; then
2411                             ac_cv_use_soname='wxUSE_SONAME=yes'
2412                           else
2413                             ac_cv_use_soname='wxUSE_SONAME=no'
2414                           fi
2415                         
2416 else
2417   
2418                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2419                           if test "x$LINE" != x ; then
2420                             eval "DEFAULT_$LINE"
2421                           else
2422                             no_cache=1
2423                           fi
2424
2425                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2426                         
2427 fi
2428
2429
2430           eval "$ac_cv_use_soname"
2431           if test "$no_cache" != 1; then
2432             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2433           fi
2434
2435           if test "$wxUSE_SONAME" = yes; then
2436             echo "$ac_t""yes" 1>&6
2437           else
2438             echo "$ac_t""no" 1>&6
2439           fi
2440         
2441
2442           enablestring=
2443           echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2444 echo "configure:2445: checking for --${enablestring:-enable}-optimise" >&5
2445           no_cache=0
2446           # Check whether --enable-optimise or --disable-optimise was given.
2447 if test "${enable_optimise+set}" = set; then
2448   enableval="$enable_optimise"
2449   
2450                           if test "$enableval" = yes; then
2451                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2452                           else
2453                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2454                           fi
2455                         
2456 else
2457   
2458                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2459                           if test "x$LINE" != x ; then
2460                             eval "DEFAULT_$LINE"
2461                           else
2462                             no_cache=1
2463                           fi
2464
2465                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2466                         
2467 fi
2468
2469
2470           eval "$ac_cv_use_optimise"
2471           if test "$no_cache" != 1; then
2472             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2473           fi
2474
2475           if test "$wxUSE_OPTIMISE" = yes; then
2476             echo "$ac_t""yes" 1>&6
2477           else
2478             echo "$ac_t""no" 1>&6
2479           fi
2480         
2481
2482           enablestring=
2483           echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2484 echo "configure:2485: checking for --${enablestring:-enable}-debug" >&5
2485           no_cache=0
2486           # Check whether --enable-debug or --disable-debug was given.
2487 if test "${enable_debug+set}" = set; then
2488   enableval="$enable_debug"
2489   
2490                           if test "$enableval" = yes; then
2491                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2492                           else
2493                             ac_cv_use_debug='wxUSE_DEBUG=no'
2494                           fi
2495                         
2496 else
2497   
2498                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2499                           if test "x$LINE" != x ; then
2500                             eval "DEFAULT_$LINE"
2501                           else
2502                             no_cache=1
2503                           fi
2504
2505                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2506                         
2507 fi
2508
2509
2510           eval "$ac_cv_use_debug"
2511           if test "$no_cache" != 1; then
2512             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2513           fi
2514
2515           if test "$wxUSE_DEBUG" = yes; then
2516             echo "$ac_t""yes" 1>&6
2517           else
2518             echo "$ac_t""no" 1>&6
2519           fi
2520         
2521
2522
2523           enablestring=
2524           echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2525 echo "configure:2526: checking for --${enablestring:-enable}-precomp" >&5
2526           no_cache=0
2527           # Check whether --enable-precomp or --disable-precomp was given.
2528 if test "${enable_precomp+set}" = set; then
2529   enableval="$enable_precomp"
2530   
2531                           if test "$enableval" = yes; then
2532                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2533                           else
2534                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2535                           fi
2536                         
2537 else
2538   
2539                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2540                           if test "x$LINE" != x ; then
2541                             eval "DEFAULT_$LINE"
2542                           else
2543                             no_cache=1
2544                           fi
2545
2546                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2547                         
2548 fi
2549
2550
2551           eval "$ac_cv_use_precomp"
2552           if test "$no_cache" != 1; then
2553             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2554           fi
2555
2556           if test "$wxUSE_PRECOMP" = yes; then
2557             echo "$ac_t""yes" 1>&6
2558           else
2559             echo "$ac_t""no" 1>&6
2560           fi
2561         
2562
2563 if test "$wxUSE_DEBUG" = "yes"; then
2564   DEFAULT_wxUSE_DEBUG_FLAG=yes
2565   DEFAULT_wxUSE_DEBUG_INFO=yes
2566 elif test "$wxUSE_DEBUG" = "no"; then
2567   DEFAULT_wxUSE_DEBUG_FLAG=no
2568   DEFAULT_wxUSE_DEBUG_INFO=no
2569 fi
2570
2571
2572           enablestring=
2573           echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2574 echo "configure:2575: checking for --${enablestring:-enable}-debug_flag" >&5
2575           no_cache=0
2576           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2577 if test "${enable_debug_flag+set}" = set; then
2578   enableval="$enable_debug_flag"
2579   
2580                           if test "$enableval" = yes; then
2581                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2582                           else
2583                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2584                           fi
2585                         
2586 else
2587   
2588                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2589                           if test "x$LINE" != x ; then
2590                             eval "DEFAULT_$LINE"
2591                           else
2592                             no_cache=1
2593                           fi
2594
2595                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2596                         
2597 fi
2598
2599
2600           eval "$ac_cv_use_debug_flag"
2601           if test "$no_cache" != 1; then
2602             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2603           fi
2604
2605           if test "$wxUSE_DEBUG_FLAG" = yes; then
2606             echo "$ac_t""yes" 1>&6
2607           else
2608             echo "$ac_t""no" 1>&6
2609           fi
2610         
2611
2612           enablestring=
2613           echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2614 echo "configure:2615: checking for --${enablestring:-enable}-debug_info" >&5
2615           no_cache=0
2616           # Check whether --enable-debug_info or --disable-debug_info was given.
2617 if test "${enable_debug_info+set}" = set; then
2618   enableval="$enable_debug_info"
2619   
2620                           if test "$enableval" = yes; then
2621                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2622                           else
2623                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2624                           fi
2625                         
2626 else
2627   
2628                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2629                           if test "x$LINE" != x ; then
2630                             eval "DEFAULT_$LINE"
2631                           else
2632                             no_cache=1
2633                           fi
2634
2635                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2636                         
2637 fi
2638
2639
2640           eval "$ac_cv_use_debug_info"
2641           if test "$no_cache" != 1; then
2642             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2643           fi
2644
2645           if test "$wxUSE_DEBUG_INFO" = yes; then
2646             echo "$ac_t""yes" 1>&6
2647           else
2648             echo "$ac_t""no" 1>&6
2649           fi
2650         
2651
2652           enablestring=
2653           echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2654 echo "configure:2655: checking for --${enablestring:-enable}-debug_gdb" >&5
2655           no_cache=0
2656           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2657 if test "${enable_debug_gdb+set}" = set; then
2658   enableval="$enable_debug_gdb"
2659   
2660                           if test "$enableval" = yes; then
2661                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2662                           else
2663                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2664                           fi
2665                         
2666 else
2667   
2668                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2669                           if test "x$LINE" != x ; then
2670                             eval "DEFAULT_$LINE"
2671                           else
2672                             no_cache=1
2673                           fi
2674
2675                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2676                         
2677 fi
2678
2679
2680           eval "$ac_cv_use_debug_gdb"
2681           if test "$no_cache" != 1; then
2682             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2683           fi
2684
2685           if test "$wxUSE_DEBUG_GDB" = yes; then
2686             echo "$ac_t""yes" 1>&6
2687           else
2688             echo "$ac_t""no" 1>&6
2689           fi
2690         
2691
2692           enablestring=
2693           echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2694 echo "configure:2695: checking for --${enablestring:-enable}-debug_cntxt" >&5
2695           no_cache=0
2696           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2697 if test "${enable_debug_cntxt+set}" = set; then
2698   enableval="$enable_debug_cntxt"
2699   
2700                           if test "$enableval" = yes; then
2701                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2702                           else
2703                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2704                           fi
2705                         
2706 else
2707   
2708                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2709                           if test "x$LINE" != x ; then
2710                             eval "DEFAULT_$LINE"
2711                           else
2712                             no_cache=1
2713                           fi
2714
2715                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2716                         
2717 fi
2718
2719
2720           eval "$ac_cv_use_debug_cntxt"
2721           if test "$no_cache" != 1; then
2722             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2723           fi
2724
2725           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2726             echo "$ac_t""yes" 1>&6
2727           else
2728             echo "$ac_t""no" 1>&6
2729           fi
2730         
2731
2732           enablestring=
2733           echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2734 echo "configure:2735: checking for --${enablestring:-enable}-mem_tracing" >&5
2735           no_cache=0
2736           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2737 if test "${enable_mem_tracing+set}" = set; then
2738   enableval="$enable_mem_tracing"
2739   
2740                           if test "$enableval" = yes; then
2741                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2742                           else
2743                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2744                           fi
2745                         
2746 else
2747   
2748                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2749                           if test "x$LINE" != x ; then
2750                             eval "DEFAULT_$LINE"
2751                           else
2752                             no_cache=1
2753                           fi
2754
2755                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2756                         
2757 fi
2758
2759
2760           eval "$ac_cv_use_mem_tracing"
2761           if test "$no_cache" != 1; then
2762             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2763           fi
2764
2765           if test "$wxUSE_MEM_TRACING" = yes; then
2766             echo "$ac_t""yes" 1>&6
2767           else
2768             echo "$ac_t""no" 1>&6
2769           fi
2770         
2771
2772           enablestring=
2773           echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2774 echo "configure:2775: checking for --${enablestring:-enable}-profile" >&5
2775           no_cache=0
2776           # Check whether --enable-profile or --disable-profile was given.
2777 if test "${enable_profile+set}" = set; then
2778   enableval="$enable_profile"
2779   
2780                           if test "$enableval" = yes; then
2781                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2782                           else
2783                             ac_cv_use_profile='wxUSE_PROFILE=no'
2784                           fi
2785                         
2786 else
2787   
2788                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2789                           if test "x$LINE" != x ; then
2790                             eval "DEFAULT_$LINE"
2791                           else
2792                             no_cache=1
2793                           fi
2794
2795                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2796                         
2797 fi
2798
2799
2800           eval "$ac_cv_use_profile"
2801           if test "$no_cache" != 1; then
2802             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2803           fi
2804
2805           if test "$wxUSE_PROFILE" = yes; then
2806             echo "$ac_t""yes" 1>&6
2807           else
2808             echo "$ac_t""no" 1>&6
2809           fi
2810         
2811
2812           enablestring=
2813           echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2814 echo "configure:2815: checking for --${enablestring:-enable}-no_rtti" >&5
2815           no_cache=0
2816           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2817 if test "${enable_no_rtti+set}" = set; then
2818   enableval="$enable_no_rtti"
2819   
2820                           if test "$enableval" = yes; then
2821                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2822                           else
2823                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2824                           fi
2825                         
2826 else
2827   
2828                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2829                           if test "x$LINE" != x ; then
2830                             eval "DEFAULT_$LINE"
2831                           else
2832                             no_cache=1
2833                           fi
2834
2835                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2836                         
2837 fi
2838
2839
2840           eval "$ac_cv_use_no_rtti"
2841           if test "$no_cache" != 1; then
2842             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2843           fi
2844
2845           if test "$wxUSE_NO_RTTI" = yes; then
2846             echo "$ac_t""yes" 1>&6
2847           else
2848             echo "$ac_t""no" 1>&6
2849           fi
2850         
2851
2852           enablestring=
2853           echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2854 echo "configure:2855: checking for --${enablestring:-enable}-no_exceptions" >&5
2855           no_cache=0
2856           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2857 if test "${enable_no_exceptions+set}" = set; then
2858   enableval="$enable_no_exceptions"
2859   
2860                           if test "$enableval" = yes; then
2861                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2862                           else
2863                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2864                           fi
2865                         
2866 else
2867   
2868                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2869                           if test "x$LINE" != x ; then
2870                             eval "DEFAULT_$LINE"
2871                           else
2872                             no_cache=1
2873                           fi
2874
2875                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2876                         
2877 fi
2878
2879
2880           eval "$ac_cv_use_no_exceptions"
2881           if test "$no_cache" != 1; then
2882             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2883           fi
2884
2885           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2886             echo "$ac_t""yes" 1>&6
2887           else
2888             echo "$ac_t""no" 1>&6
2889           fi
2890         
2891
2892           enablestring=
2893           echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2894 echo "configure:2895: checking for --${enablestring:-enable}-permissive" >&5
2895           no_cache=0
2896           # Check whether --enable-permissive or --disable-permissive was given.
2897 if test "${enable_permissive+set}" = set; then
2898   enableval="$enable_permissive"
2899   
2900                           if test "$enableval" = yes; then
2901                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2902                           else
2903                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2904                           fi
2905                         
2906 else
2907   
2908                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2909                           if test "x$LINE" != x ; then
2910                             eval "DEFAULT_$LINE"
2911                           else
2912                             no_cache=1
2913                           fi
2914
2915                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2916                         
2917 fi
2918
2919
2920           eval "$ac_cv_use_permissive"
2921           if test "$no_cache" != 1; then
2922             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2923           fi
2924
2925           if test "$wxUSE_PERMISSIVE" = yes; then
2926             echo "$ac_t""yes" 1>&6
2927           else
2928             echo "$ac_t""no" 1>&6
2929           fi
2930         
2931
2932           enablestring=
2933           echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2934 echo "configure:2935: checking for --${enablestring:-enable}-no_deps" >&5
2935           no_cache=0
2936           # Check whether --enable-no_deps or --disable-no_deps was given.
2937 if test "${enable_no_deps+set}" = set; then
2938   enableval="$enable_no_deps"
2939   
2940                           if test "$enableval" = yes; then
2941                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2942                           else
2943                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2944                           fi
2945                         
2946 else
2947   
2948                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2949                           if test "x$LINE" != x ; then
2950                             eval "DEFAULT_$LINE"
2951                           else
2952                             no_cache=1
2953                           fi
2954
2955                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2956                         
2957 fi
2958
2959
2960           eval "$ac_cv_use_no_deps"
2961           if test "$no_cache" != 1; then
2962             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2963           fi
2964
2965           if test "$wxUSE_NO_DEPS" = yes; then
2966             echo "$ac_t""yes" 1>&6
2967           else
2968             echo "$ac_t""no" 1>&6
2969           fi
2970         
2971
2972
2973           enablestring=
2974           echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2975 echo "configure:2976: checking for --${enablestring:-enable}-compat20" >&5
2976           no_cache=0
2977           # Check whether --enable-compat20 or --disable-compat20 was given.
2978 if test "${enable_compat20+set}" = set; then
2979   enableval="$enable_compat20"
2980   
2981                           if test "$enableval" = yes; then
2982                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2983                           else
2984                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2985                           fi
2986                         
2987 else
2988   
2989                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2990                           if test "x$LINE" != x ; then
2991                             eval "DEFAULT_$LINE"
2992                           else
2993                             no_cache=1
2994                           fi
2995
2996                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2997                         
2998 fi
2999
3000
3001           eval "$ac_cv_use_compat20"
3002           if test "$no_cache" != 1; then
3003             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3004           fi
3005
3006           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3007             echo "$ac_t""yes" 1>&6
3008           else
3009             echo "$ac_t""no" 1>&6
3010           fi
3011         
3012
3013           enablestring=
3014           echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3015 echo "configure:3016: checking for --${enablestring:-enable}-compat22" >&5
3016           no_cache=0
3017           # Check whether --enable-compat22 or --disable-compat22 was given.
3018 if test "${enable_compat22+set}" = set; then
3019   enableval="$enable_compat22"
3020   
3021                           if test "$enableval" = yes; then
3022                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3023                           else
3024                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3025                           fi
3026                         
3027 else
3028   
3029                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3030                           if test "x$LINE" != x ; then
3031                             eval "DEFAULT_$LINE"
3032                           else
3033                             no_cache=1
3034                           fi
3035
3036                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3037                         
3038 fi
3039
3040
3041           eval "$ac_cv_use_compat22"
3042           if test "$no_cache" != 1; then
3043             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3044           fi
3045
3046           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3047             echo "$ac_t""yes" 1>&6
3048           else
3049             echo "$ac_t""no" 1>&6
3050           fi
3051         
3052
3053           enablestring=disable
3054           echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3055 echo "configure:3056: checking for --${enablestring:-enable}-compat24" >&5
3056           no_cache=0
3057           # Check whether --enable-compat24 or --disable-compat24 was given.
3058 if test "${enable_compat24+set}" = set; then
3059   enableval="$enable_compat24"
3060   
3061                           if test "$enableval" = yes; then
3062                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3063                           else
3064                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3065                           fi
3066                         
3067 else
3068   
3069                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3070                           if test "x$LINE" != x ; then
3071                             eval "DEFAULT_$LINE"
3072                           else
3073                             no_cache=1
3074                           fi
3075
3076                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3077                         
3078 fi
3079
3080
3081           eval "$ac_cv_use_compat24"
3082           if test "$no_cache" != 1; then
3083             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3084           fi
3085
3086           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3087             echo "$ac_t""yes" 1>&6
3088           else
3089             echo "$ac_t""no" 1>&6
3090           fi
3091         
3092
3093 # Check whether --enable-rpath or --disable-rpath was given.
3094 if test "${enable_rpath+set}" = set; then
3095   enableval="$enable_rpath"
3096   wxRPATH_DIR="$enableval"
3097 fi
3098
3099
3100 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3101    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3102 fi
3103
3104
3105
3106
3107           enablestring=
3108           echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3109 echo "configure:3110: checking for --${enablestring:-enable}-intl" >&5
3110           no_cache=0
3111           # Check whether --enable-intl or --disable-intl was given.
3112 if test "${enable_intl+set}" = set; then
3113   enableval="$enable_intl"
3114   
3115                           if test "$enableval" = yes; then
3116                             ac_cv_use_intl='wxUSE_INTL=yes'
3117                           else
3118                             ac_cv_use_intl='wxUSE_INTL=no'
3119                           fi
3120                         
3121 else
3122   
3123                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3124                           if test "x$LINE" != x ; then
3125                             eval "DEFAULT_$LINE"
3126                           else
3127                             no_cache=1
3128                           fi
3129
3130                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3131                         
3132 fi
3133
3134
3135           eval "$ac_cv_use_intl"
3136           if test "$no_cache" != 1; then
3137             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3138           fi
3139
3140           if test "$wxUSE_INTL" = yes; then
3141             echo "$ac_t""yes" 1>&6
3142           else
3143             echo "$ac_t""no" 1>&6
3144           fi
3145         
3146
3147           enablestring=
3148           echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3149 echo "configure:3150: checking for --${enablestring:-enable}-config" >&5
3150           no_cache=0
3151           # Check whether --enable-config or --disable-config was given.
3152 if test "${enable_config+set}" = set; then
3153   enableval="$enable_config"
3154   
3155                           if test "$enableval" = yes; then
3156                             ac_cv_use_config='wxUSE_CONFIG=yes'
3157                           else
3158                             ac_cv_use_config='wxUSE_CONFIG=no'
3159                           fi
3160                         
3161 else
3162   
3163                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3164                           if test "x$LINE" != x ; then
3165                             eval "DEFAULT_$LINE"
3166                           else
3167                             no_cache=1
3168                           fi
3169
3170                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3171                         
3172 fi
3173
3174
3175           eval "$ac_cv_use_config"
3176           if test "$no_cache" != 1; then
3177             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3178           fi
3179
3180           if test "$wxUSE_CONFIG" = yes; then
3181             echo "$ac_t""yes" 1>&6
3182           else
3183             echo "$ac_t""no" 1>&6
3184           fi
3185         
3186
3187
3188           enablestring=
3189           echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3190 echo "configure:3191: checking for --${enablestring:-enable}-protocols" >&5
3191           no_cache=0
3192           # Check whether --enable-protocols or --disable-protocols was given.
3193 if test "${enable_protocols+set}" = set; then
3194   enableval="$enable_protocols"
3195   
3196                           if test "$enableval" = yes; then
3197                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3198                           else
3199                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3200                           fi
3201                         
3202 else
3203   
3204                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3205                           if test "x$LINE" != x ; then
3206                             eval "DEFAULT_$LINE"
3207                           else
3208                             no_cache=1
3209                           fi
3210
3211                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3212                         
3213 fi
3214
3215
3216           eval "$ac_cv_use_protocols"
3217           if test "$no_cache" != 1; then
3218             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3219           fi
3220
3221           if test "$wxUSE_PROTOCOL" = yes; then
3222             echo "$ac_t""yes" 1>&6
3223           else
3224             echo "$ac_t""no" 1>&6
3225           fi
3226         
3227
3228           enablestring=
3229           echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3230 echo "configure:3231: checking for --${enablestring:-enable}-ftp" >&5
3231           no_cache=0
3232           # Check whether --enable-ftp or --disable-ftp was given.
3233 if test "${enable_ftp+set}" = set; then
3234   enableval="$enable_ftp"
3235   
3236                           if test "$enableval" = yes; then
3237                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3238                           else
3239                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3240                           fi
3241                         
3242 else
3243   
3244                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3245                           if test "x$LINE" != x ; then
3246                             eval "DEFAULT_$LINE"
3247                           else
3248                             no_cache=1
3249                           fi
3250
3251                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3252                         
3253 fi
3254
3255
3256           eval "$ac_cv_use_ftp"
3257           if test "$no_cache" != 1; then
3258             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3259           fi
3260
3261           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3262             echo "$ac_t""yes" 1>&6
3263           else
3264             echo "$ac_t""no" 1>&6
3265           fi
3266         
3267
3268           enablestring=
3269           echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3270 echo "configure:3271: checking for --${enablestring:-enable}-http" >&5
3271           no_cache=0
3272           # Check whether --enable-http or --disable-http was given.
3273 if test "${enable_http+set}" = set; then
3274   enableval="$enable_http"
3275   
3276                           if test "$enableval" = yes; then
3277                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3278                           else
3279                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3280                           fi
3281                         
3282 else
3283   
3284                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3285                           if test "x$LINE" != x ; then
3286                             eval "DEFAULT_$LINE"
3287                           else
3288                             no_cache=1
3289                           fi
3290
3291                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3292                         
3293 fi
3294
3295
3296           eval "$ac_cv_use_http"
3297           if test "$no_cache" != 1; then
3298             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3299           fi
3300
3301           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3302             echo "$ac_t""yes" 1>&6
3303           else
3304             echo "$ac_t""no" 1>&6
3305           fi
3306         
3307
3308           enablestring=
3309           echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3310 echo "configure:3311: checking for --${enablestring:-enable}-fileproto" >&5
3311           no_cache=0
3312           # Check whether --enable-fileproto or --disable-fileproto was given.
3313 if test "${enable_fileproto+set}" = set; then
3314   enableval="$enable_fileproto"
3315   
3316                           if test "$enableval" = yes; then
3317                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3318                           else
3319                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3320                           fi
3321                         
3322 else
3323   
3324                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3325                           if test "x$LINE" != x ; then
3326                             eval "DEFAULT_$LINE"
3327                           else
3328                             no_cache=1
3329                           fi
3330
3331                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3332                         
3333 fi
3334
3335
3336           eval "$ac_cv_use_fileproto"
3337           if test "$no_cache" != 1; then
3338             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3339           fi
3340
3341           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3342             echo "$ac_t""yes" 1>&6
3343           else
3344             echo "$ac_t""no" 1>&6
3345           fi
3346         
3347
3348           enablestring=
3349           echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3350 echo "configure:3351: checking for --${enablestring:-enable}-sockets" >&5
3351           no_cache=0
3352           # Check whether --enable-sockets or --disable-sockets was given.
3353 if test "${enable_sockets+set}" = set; then
3354   enableval="$enable_sockets"
3355   
3356                           if test "$enableval" = yes; then
3357                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3358                           else
3359                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3360                           fi
3361                         
3362 else
3363   
3364                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3365                           if test "x$LINE" != x ; then
3366                             eval "DEFAULT_$LINE"
3367                           else
3368                             no_cache=1
3369                           fi
3370
3371                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3372                         
3373 fi
3374
3375
3376           eval "$ac_cv_use_sockets"
3377           if test "$no_cache" != 1; then
3378             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3379           fi
3380
3381           if test "$wxUSE_SOCKETS" = yes; then
3382             echo "$ac_t""yes" 1>&6
3383           else
3384             echo "$ac_t""no" 1>&6
3385           fi
3386         
3387
3388           enablestring=
3389           echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3390 echo "configure:3391: checking for --${enablestring:-enable}-ole" >&5
3391           no_cache=0
3392           # Check whether --enable-ole or --disable-ole was given.
3393 if test "${enable_ole+set}" = set; then
3394   enableval="$enable_ole"
3395   
3396                           if test "$enableval" = yes; then
3397                             ac_cv_use_ole='wxUSE_OLE=yes'
3398                           else
3399                             ac_cv_use_ole='wxUSE_OLE=no'
3400                           fi
3401                         
3402 else
3403   
3404                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3405                           if test "x$LINE" != x ; then
3406                             eval "DEFAULT_$LINE"
3407                           else
3408                             no_cache=1
3409                           fi
3410
3411                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3412                         
3413 fi
3414
3415
3416           eval "$ac_cv_use_ole"
3417           if test "$no_cache" != 1; then
3418             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3419           fi
3420
3421           if test "$wxUSE_OLE" = yes; then
3422             echo "$ac_t""yes" 1>&6
3423           else
3424             echo "$ac_t""no" 1>&6
3425           fi
3426         
3427
3428           enablestring=
3429           echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3430 echo "configure:3431: checking for --${enablestring:-enable}-dataobj" >&5
3431           no_cache=0
3432           # Check whether --enable-dataobj or --disable-dataobj was given.
3433 if test "${enable_dataobj+set}" = set; then
3434   enableval="$enable_dataobj"
3435   
3436                           if test "$enableval" = yes; then
3437                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3438                           else
3439                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3440                           fi
3441                         
3442 else
3443   
3444                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3445                           if test "x$LINE" != x ; then
3446                             eval "DEFAULT_$LINE"
3447                           else
3448                             no_cache=1
3449                           fi
3450
3451                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3452                         
3453 fi
3454
3455
3456           eval "$ac_cv_use_dataobj"
3457           if test "$no_cache" != 1; then
3458             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3459           fi
3460
3461           if test "$wxUSE_DATAOBJ" = yes; then
3462             echo "$ac_t""yes" 1>&6
3463           else
3464             echo "$ac_t""no" 1>&6
3465           fi
3466         
3467
3468
3469           enablestring=
3470           echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --${enablestring:-enable}-ipc" >&5
3472           no_cache=0
3473           # Check whether --enable-ipc or --disable-ipc was given.
3474 if test "${enable_ipc+set}" = set; then
3475   enableval="$enable_ipc"
3476   
3477                           if test "$enableval" = yes; then
3478                             ac_cv_use_ipc='wxUSE_IPC=yes'
3479                           else
3480                             ac_cv_use_ipc='wxUSE_IPC=no'
3481                           fi
3482                         
3483 else
3484   
3485                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3486                           if test "x$LINE" != x ; then
3487                             eval "DEFAULT_$LINE"
3488                           else
3489                             no_cache=1
3490                           fi
3491
3492                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3493                         
3494 fi
3495
3496
3497           eval "$ac_cv_use_ipc"
3498           if test "$no_cache" != 1; then
3499             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3500           fi
3501
3502           if test "$wxUSE_IPC" = yes; then
3503             echo "$ac_t""yes" 1>&6
3504           else
3505             echo "$ac_t""no" 1>&6
3506           fi
3507         
3508
3509
3510           enablestring=
3511           echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3512 echo "configure:3513: checking for --${enablestring:-enable}-cmdline" >&5
3513           no_cache=0
3514           # Check whether --enable-cmdline or --disable-cmdline was given.
3515 if test "${enable_cmdline+set}" = set; then
3516   enableval="$enable_cmdline"
3517   
3518                           if test "$enableval" = yes; then
3519                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3520                           else
3521                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3522                           fi
3523                         
3524 else
3525   
3526                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3527                           if test "x$LINE" != x ; then
3528                             eval "DEFAULT_$LINE"
3529                           else
3530                             no_cache=1
3531                           fi
3532
3533                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3534                         
3535 fi
3536
3537
3538           eval "$ac_cv_use_cmdline"
3539           if test "$no_cache" != 1; then
3540             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3541           fi
3542
3543           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3544             echo "$ac_t""yes" 1>&6
3545           else
3546             echo "$ac_t""no" 1>&6
3547           fi
3548         
3549
3550           enablestring=
3551           echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --${enablestring:-enable}-datetime" >&5
3553           no_cache=0
3554           # Check whether --enable-datetime or --disable-datetime was given.
3555 if test "${enable_datetime+set}" = set; then
3556   enableval="$enable_datetime"
3557   
3558                           if test "$enableval" = yes; then
3559                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3560                           else
3561                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3562                           fi
3563                         
3564 else
3565   
3566                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3567                           if test "x$LINE" != x ; then
3568                             eval "DEFAULT_$LINE"
3569                           else
3570                             no_cache=1
3571                           fi
3572
3573                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3574                         
3575 fi
3576
3577
3578           eval "$ac_cv_use_datetime"
3579           if test "$no_cache" != 1; then
3580             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3581           fi
3582
3583           if test "$wxUSE_DATETIME" = yes; then
3584             echo "$ac_t""yes" 1>&6
3585           else
3586             echo "$ac_t""no" 1>&6
3587           fi
3588         
3589
3590           enablestring=
3591           echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3592 echo "configure:3593: checking for --${enablestring:-enable}-stopwatch" >&5
3593           no_cache=0
3594           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3595 if test "${enable_stopwatch+set}" = set; then
3596   enableval="$enable_stopwatch"
3597   
3598                           if test "$enableval" = yes; then
3599                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3600                           else
3601                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3602                           fi
3603                         
3604 else
3605   
3606                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3607                           if test "x$LINE" != x ; then
3608                             eval "DEFAULT_$LINE"
3609                           else
3610                             no_cache=1
3611                           fi
3612
3613                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3614                         
3615 fi
3616
3617
3618           eval "$ac_cv_use_stopwatch"
3619           if test "$no_cache" != 1; then
3620             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3621           fi
3622
3623           if test "$wxUSE_STOPWATCH" = yes; then
3624             echo "$ac_t""yes" 1>&6
3625           else
3626             echo "$ac_t""no" 1>&6
3627           fi
3628         
3629
3630           enablestring=
3631           echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3632 echo "configure:3633: checking for --${enablestring:-enable}-dialupman" >&5
3633           no_cache=0
3634           # Check whether --enable-dialupman or --disable-dialupman was given.
3635 if test "${enable_dialupman+set}" = set; then
3636   enableval="$enable_dialupman"
3637   
3638                           if test "$enableval" = yes; then
3639                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3640                           else
3641                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3642                           fi
3643                         
3644 else
3645   
3646                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3647                           if test "x$LINE" != x ; then
3648                             eval "DEFAULT_$LINE"
3649                           else
3650                             no_cache=1
3651                           fi
3652
3653                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3654                         
3655 fi
3656
3657
3658           eval "$ac_cv_use_dialupman"
3659           if test "$no_cache" != 1; then
3660             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3661           fi
3662
3663           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3664             echo "$ac_t""yes" 1>&6
3665           else
3666             echo "$ac_t""no" 1>&6
3667           fi
3668         
3669
3670           enablestring=
3671           echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3672 echo "configure:3673: checking for --${enablestring:-enable}-apple_ieee" >&5
3673           no_cache=0
3674           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3675 if test "${enable_apple_ieee+set}" = set; then
3676   enableval="$enable_apple_ieee"
3677   
3678                           if test "$enableval" = yes; then
3679                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3680                           else
3681                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3682                           fi
3683                         
3684 else
3685   
3686                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3687                           if test "x$LINE" != x ; then
3688                             eval "DEFAULT_$LINE"
3689                           else
3690                             no_cache=1
3691                           fi
3692
3693                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3694                         
3695 fi
3696
3697
3698           eval "$ac_cv_use_apple_ieee"
3699           if test "$no_cache" != 1; then
3700             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3701           fi
3702
3703           if test "$wxUSE_APPLE_IEEE" = yes; then
3704             echo "$ac_t""yes" 1>&6
3705           else
3706             echo "$ac_t""no" 1>&6
3707           fi
3708         
3709
3710           enablestring=
3711           echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3712 echo "configure:3713: checking for --${enablestring:-enable}-timer" >&5
3713           no_cache=0
3714           # Check whether --enable-timer or --disable-timer was given.
3715 if test "${enable_timer+set}" = set; then
3716   enableval="$enable_timer"
3717   
3718                           if test "$enableval" = yes; then
3719                             ac_cv_use_timer='wxUSE_TIMER=yes'
3720                           else
3721                             ac_cv_use_timer='wxUSE_TIMER=no'
3722                           fi
3723                         
3724 else
3725   
3726                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3727                           if test "x$LINE" != x ; then
3728                             eval "DEFAULT_$LINE"
3729                           else
3730                             no_cache=1
3731                           fi
3732
3733                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3734                         
3735 fi
3736
3737
3738           eval "$ac_cv_use_timer"
3739           if test "$no_cache" != 1; then
3740             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3741           fi
3742
3743           if test "$wxUSE_TIMER" = yes; then
3744             echo "$ac_t""yes" 1>&6
3745           else
3746             echo "$ac_t""no" 1>&6
3747           fi
3748         
3749
3750           enablestring=
3751           echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3752 echo "configure:3753: checking for --${enablestring:-enable}-wave" >&5
3753           no_cache=0
3754           # Check whether --enable-wave or --disable-wave was given.
3755 if test "${enable_wave+set}" = set; then
3756   enableval="$enable_wave"
3757   
3758                           if test "$enableval" = yes; then
3759                             ac_cv_use_wave='wxUSE_WAVE=yes'
3760                           else
3761                             ac_cv_use_wave='wxUSE_WAVE=no'
3762                           fi
3763                         
3764 else
3765   
3766                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3767                           if test "x$LINE" != x ; then
3768                             eval "DEFAULT_$LINE"
3769                           else
3770                             no_cache=1
3771                           fi
3772
3773                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3774                         
3775 fi
3776
3777
3778           eval "$ac_cv_use_wave"
3779           if test "$no_cache" != 1; then
3780             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3781           fi
3782
3783           if test "$wxUSE_WAVE" = yes; then
3784             echo "$ac_t""yes" 1>&6
3785           else
3786             echo "$ac_t""no" 1>&6
3787           fi
3788         
3789
3790           enablestring=
3791           echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3792 echo "configure:3793: checking for --${enablestring:-enable}-fraction" >&5
3793           no_cache=0
3794           # Check whether --enable-fraction or --disable-fraction was given.
3795 if test "${enable_fraction+set}" = set; then
3796   enableval="$enable_fraction"
3797   
3798                           if test "$enableval" = yes; then
3799                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3800                           else
3801                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3802                           fi
3803                         
3804 else
3805   
3806                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3807                           if test "x$LINE" != x ; then
3808                             eval "DEFAULT_$LINE"
3809                           else
3810                             no_cache=1
3811                           fi
3812
3813                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3814                         
3815 fi
3816
3817
3818           eval "$ac_cv_use_fraction"
3819           if test "$no_cache" != 1; then
3820             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3821           fi
3822
3823           if test "$wxUSE_FRACTION" = yes; then
3824             echo "$ac_t""yes" 1>&6
3825           else
3826             echo "$ac_t""no" 1>&6
3827           fi
3828         
3829
3830           enablestring=
3831           echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3832 echo "configure:3833: checking for --${enablestring:-enable}-dynlib" >&5
3833           no_cache=0
3834           # Check whether --enable-dynlib or --disable-dynlib was given.
3835 if test "${enable_dynlib+set}" = set; then
3836   enableval="$enable_dynlib"
3837   
3838                           if test "$enableval" = yes; then
3839                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3840                           else
3841                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3842                           fi
3843                         
3844 else
3845   
3846                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3847                           if test "x$LINE" != x ; then
3848                             eval "DEFAULT_$LINE"
3849                           else
3850                             no_cache=1
3851                           fi
3852
3853                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3854                         
3855 fi
3856
3857
3858           eval "$ac_cv_use_dynlib"
3859           if test "$no_cache" != 1; then
3860             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3861           fi
3862
3863           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3864             echo "$ac_t""yes" 1>&6
3865           else
3866             echo "$ac_t""no" 1>&6
3867           fi
3868         
3869
3870           enablestring=
3871           echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3872 echo "configure:3873: checking for --${enablestring:-enable}-dynamicloader" >&5
3873           no_cache=0
3874           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3875 if test "${enable_dynamicloader+set}" = set; then
3876   enableval="$enable_dynamicloader"
3877   
3878                           if test "$enableval" = yes; then
3879                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3880                           else
3881                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3882                           fi
3883                         
3884 else
3885   
3886                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3887                           if test "x$LINE" != x ; then
3888                             eval "DEFAULT_$LINE"
3889                           else
3890                             no_cache=1
3891                           fi
3892
3893                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3894                         
3895 fi
3896
3897
3898           eval "$ac_cv_use_dynamicloader"
3899           if test "$no_cache" != 1; then
3900             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3901           fi
3902
3903           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3904             echo "$ac_t""yes" 1>&6
3905           else
3906             echo "$ac_t""no" 1>&6
3907           fi
3908         
3909
3910           enablestring=
3911           echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3912 echo "configure:3913: checking for --${enablestring:-enable}-longlong" >&5
3913           no_cache=0
3914           # Check whether --enable-longlong or --disable-longlong was given.
3915 if test "${enable_longlong+set}" = set; then
3916   enableval="$enable_longlong"
3917   
3918                           if test "$enableval" = yes; then
3919                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3920                           else
3921                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3922                           fi
3923                         
3924 else
3925   
3926                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3927                           if test "x$LINE" != x ; then
3928                             eval "DEFAULT_$LINE"
3929                           else
3930                             no_cache=1
3931                           fi
3932
3933                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3934                         
3935 fi
3936
3937
3938           eval "$ac_cv_use_longlong"
3939           if test "$no_cache" != 1; then
3940             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3941           fi
3942
3943           if test "$wxUSE_LONGLONG" = yes; then
3944             echo "$ac_t""yes" 1>&6
3945           else
3946             echo "$ac_t""no" 1>&6
3947           fi
3948         
3949
3950           enablestring=
3951           echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3952 echo "configure:3953: checking for --${enablestring:-enable}-geometry" >&5
3953           no_cache=0
3954           # Check whether --enable-geometry or --disable-geometry was given.
3955 if test "${enable_geometry+set}" = set; then
3956   enableval="$enable_geometry"
3957   
3958                           if test "$enableval" = yes; then
3959                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3960                           else
3961                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3962                           fi
3963                         
3964 else
3965   
3966                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3967                           if test "x$LINE" != x ; then
3968                             eval "DEFAULT_$LINE"
3969                           else
3970                             no_cache=1
3971                           fi
3972
3973                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3974                         
3975 fi
3976
3977
3978           eval "$ac_cv_use_geometry"
3979           if test "$no_cache" != 1; then
3980             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3981           fi
3982
3983           if test "$wxUSE_GEOMETRY" = yes; then
3984             echo "$ac_t""yes" 1>&6
3985           else
3986             echo "$ac_t""no" 1>&6
3987           fi
3988         
3989
3990           enablestring=
3991           echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3992 echo "configure:3993: checking for --${enablestring:-enable}-log" >&5
3993           no_cache=0
3994           # Check whether --enable-log or --disable-log was given.
3995 if test "${enable_log+set}" = set; then
3996   enableval="$enable_log"
3997   
3998                           if test "$enableval" = yes; then
3999                             ac_cv_use_log='wxUSE_LOG=yes'
4000                           else
4001                             ac_cv_use_log='wxUSE_LOG=no'
4002                           fi
4003                         
4004 else
4005   
4006                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4007                           if test "x$LINE" != x ; then
4008                             eval "DEFAULT_$LINE"
4009                           else
4010                             no_cache=1
4011                           fi
4012
4013                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4014                         
4015 fi
4016
4017
4018           eval "$ac_cv_use_log"
4019           if test "$no_cache" != 1; then
4020             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4021           fi
4022
4023           if test "$wxUSE_LOG" = yes; then
4024             echo "$ac_t""yes" 1>&6
4025           else
4026             echo "$ac_t""no" 1>&6
4027           fi
4028         
4029
4030           enablestring=
4031           echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4032 echo "configure:4033: checking for --${enablestring:-enable}-streams" >&5
4033           no_cache=0
4034           # Check whether --enable-streams or --disable-streams was given.
4035 if test "${enable_streams+set}" = set; then
4036   enableval="$enable_streams"
4037   
4038                           if test "$enableval" = yes; then
4039                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4040                           else
4041                             ac_cv_use_streams='wxUSE_STREAMS=no'
4042                           fi
4043                         
4044 else
4045   
4046                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4047                           if test "x$LINE" != x ; then
4048                             eval "DEFAULT_$LINE"
4049                           else
4050                             no_cache=1
4051                           fi
4052
4053                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4054                         
4055 fi
4056
4057
4058           eval "$ac_cv_use_streams"
4059           if test "$no_cache" != 1; then
4060             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4061           fi
4062
4063           if test "$wxUSE_STREAMS" = yes; then
4064             echo "$ac_t""yes" 1>&6
4065           else
4066             echo "$ac_t""no" 1>&6
4067           fi
4068         
4069
4070           enablestring=
4071           echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4072 echo "configure:4073: checking for --${enablestring:-enable}-file" >&5
4073           no_cache=0
4074           # Check whether --enable-file or --disable-file was given.
4075 if test "${enable_file+set}" = set; then
4076   enableval="$enable_file"
4077   
4078                           if test "$enableval" = yes; then
4079                             ac_cv_use_file='wxUSE_FILE=yes'
4080                           else
4081                             ac_cv_use_file='wxUSE_FILE=no'
4082                           fi
4083                         
4084 else
4085   
4086                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4087                           if test "x$LINE" != x ; then
4088                             eval "DEFAULT_$LINE"
4089                           else
4090                             no_cache=1
4091                           fi
4092
4093                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4094                         
4095 fi
4096
4097
4098           eval "$ac_cv_use_file"
4099           if test "$no_cache" != 1; then
4100             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4101           fi
4102
4103           if test "$wxUSE_FILE" = yes; then
4104             echo "$ac_t""yes" 1>&6
4105           else
4106             echo "$ac_t""no" 1>&6
4107           fi
4108         
4109
4110           enablestring=
4111           echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4112 echo "configure:4113: checking for --${enablestring:-enable}-ffile" >&5
4113           no_cache=0
4114           # Check whether --enable-ffile or --disable-ffile was given.
4115 if test "${enable_ffile+set}" = set; then
4116   enableval="$enable_ffile"
4117   
4118                           if test "$enableval" = yes; then
4119                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4120                           else
4121                             ac_cv_use_ffile='wxUSE_FFILE=no'
4122                           fi
4123                         
4124 else
4125   
4126                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4127                           if test "x$LINE" != x ; then
4128                             eval "DEFAULT_$LINE"
4129                           else
4130                             no_cache=1
4131                           fi
4132
4133                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4134                         
4135 fi
4136
4137
4138           eval "$ac_cv_use_ffile"
4139           if test "$no_cache" != 1; then
4140             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4141           fi
4142
4143           if test "$wxUSE_FFILE" = yes; then
4144             echo "$ac_t""yes" 1>&6
4145           else
4146             echo "$ac_t""no" 1>&6
4147           fi
4148         
4149
4150           enablestring=
4151           echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4152 echo "configure:4153: checking for --${enablestring:-enable}-textbuf" >&5
4153           no_cache=0
4154           # Check whether --enable-textbuf or --disable-textbuf was given.
4155 if test "${enable_textbuf+set}" = set; then
4156   enableval="$enable_textbuf"
4157   
4158                           if test "$enableval" = yes; then
4159                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4160                           else
4161                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4162                           fi
4163                         
4164 else
4165   
4166                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4167                           if test "x$LINE" != x ; then
4168                             eval "DEFAULT_$LINE"
4169                           else
4170                             no_cache=1
4171                           fi
4172
4173                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4174                         
4175 fi
4176
4177
4178           eval "$ac_cv_use_textbuf"
4179           if test "$no_cache" != 1; then
4180             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4181           fi
4182
4183           if test "$wxUSE_TEXTBUFFER" = yes; then
4184             echo "$ac_t""yes" 1>&6
4185           else
4186             echo "$ac_t""no" 1>&6
4187           fi
4188         
4189
4190           enablestring=
4191           echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4192 echo "configure:4193: checking for --${enablestring:-enable}-textfile" >&5
4193           no_cache=0
4194           # Check whether --enable-textfile or --disable-textfile was given.
4195 if test "${enable_textfile+set}" = set; then
4196   enableval="$enable_textfile"
4197   
4198                           if test "$enableval" = yes; then
4199                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4200                           else
4201                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4202                           fi
4203                         
4204 else
4205   
4206                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4207                           if test "x$LINE" != x ; then
4208                             eval "DEFAULT_$LINE"
4209                           else
4210                             no_cache=1
4211                           fi
4212
4213                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4214                         
4215 fi
4216
4217
4218           eval "$ac_cv_use_textfile"
4219           if test "$no_cache" != 1; then
4220             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4221           fi
4222
4223           if test "$wxUSE_TEXTFILE" = yes; then
4224             echo "$ac_t""yes" 1>&6
4225           else
4226             echo "$ac_t""no" 1>&6
4227           fi
4228         
4229
4230           enablestring=
4231           echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4232 echo "configure:4233: checking for --${enablestring:-enable}-fontmap" >&5
4233           no_cache=0
4234           # Check whether --enable-fontmap or --disable-fontmap was given.
4235 if test "${enable_fontmap+set}" = set; then
4236   enableval="$enable_fontmap"
4237   
4238                           if test "$enableval" = yes; then
4239                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4240                           else
4241                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4242                           fi
4243                         
4244 else
4245   
4246                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4247                           if test "x$LINE" != x ; then
4248                             eval "DEFAULT_$LINE"
4249                           else
4250                             no_cache=1
4251                           fi
4252
4253                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4254                         
4255 fi
4256
4257
4258           eval "$ac_cv_use_fontmap"
4259           if test "$no_cache" != 1; then
4260             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4261           fi
4262
4263           if test "$wxUSE_FONTMAP" = yes; then
4264             echo "$ac_t""yes" 1>&6
4265           else
4266             echo "$ac_t""no" 1>&6
4267           fi
4268         
4269
4270           enablestring=
4271           echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4272 echo "configure:4273: checking for --${enablestring:-enable}-unicode" >&5
4273           no_cache=0
4274           # Check whether --enable-unicode or --disable-unicode was given.
4275 if test "${enable_unicode+set}" = set; then
4276   enableval="$enable_unicode"
4277   
4278                           if test "$enableval" = yes; then
4279                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4280                           else
4281                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4282                           fi
4283                         
4284 else
4285   
4286                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4287                           if test "x$LINE" != x ; then
4288                             eval "DEFAULT_$LINE"
4289                           else
4290                             no_cache=1
4291                           fi
4292
4293                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4294                         
4295 fi
4296
4297
4298           eval "$ac_cv_use_unicode"
4299           if test "$no_cache" != 1; then
4300             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4301           fi
4302
4303           if test "$wxUSE_UNICODE" = yes; then
4304             echo "$ac_t""yes" 1>&6
4305           else
4306             echo "$ac_t""no" 1>&6
4307           fi
4308         
4309
4310           enablestring=
4311           echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4312 echo "configure:4313: checking for --${enablestring:-enable}-mslu" >&5
4313           no_cache=0
4314           # Check whether --enable-mslu or --disable-mslu was given.
4315 if test "${enable_mslu+set}" = set; then
4316   enableval="$enable_mslu"
4317   
4318                           if test "$enableval" = yes; then
4319                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4320                           else
4321                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4322                           fi
4323                         
4324 else
4325   
4326                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4327                           if test "x$LINE" != x ; then
4328                             eval "DEFAULT_$LINE"
4329                           else
4330                             no_cache=1
4331                           fi
4332
4333                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4334                         
4335 fi
4336
4337
4338           eval "$ac_cv_use_mslu"
4339           if test "$no_cache" != 1; then
4340             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4341           fi
4342
4343           if test "$wxUSE_UNICODE_MSLU" = yes; then
4344             echo "$ac_t""yes" 1>&6
4345           else
4346             echo "$ac_t""no" 1>&6
4347           fi
4348         
4349
4350           enablestring=
4351           echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4352 echo "configure:4353: checking for --${enablestring:-enable}-wxprintfv" >&5
4353           no_cache=0
4354           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4355 if test "${enable_wxprintfv+set}" = set; then
4356   enableval="$enable_wxprintfv"
4357   
4358                           if test "$enableval" = yes; then
4359                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4360                           else
4361                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4362                           fi
4363                         
4364 else
4365   
4366                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4367                           if test "x$LINE" != x ; then
4368                             eval "DEFAULT_$LINE"
4369                           else
4370                             no_cache=1
4371                           fi
4372
4373                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4374                         
4375 fi
4376
4377
4378           eval "$ac_cv_use_wxprintfv"
4379           if test "$no_cache" != 1; then
4380             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4381           fi
4382
4383           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4384             echo "$ac_t""yes" 1>&6
4385           else
4386             echo "$ac_t""no" 1>&6
4387           fi
4388         
4389
4390           enablestring=
4391           echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4392 echo "configure:4393: checking for --${enablestring:-enable}-std_iostreams" >&5
4393           no_cache=0
4394           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4395 if test "${enable_std_iostreams+set}" = set; then
4396   enableval="$enable_std_iostreams"
4397   
4398                           if test "$enableval" = yes; then
4399                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4400                           else
4401                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4402                           fi
4403                         
4404 else
4405   
4406                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4407                           if test "x$LINE" != x ; then
4408                             eval "DEFAULT_$LINE"
4409                           else
4410                             no_cache=1
4411                           fi
4412
4413                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4414                         
4415 fi
4416
4417
4418           eval "$ac_cv_use_std_iostreams"
4419           if test "$no_cache" != 1; then
4420             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4421           fi
4422
4423           if test "$wxUSE_STD_IOSTREAM" = yes; then
4424             echo "$ac_t""yes" 1>&6
4425           else
4426             echo "$ac_t""no" 1>&6
4427           fi
4428         
4429
4430           enablestring=
4431           echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4432 echo "configure:4433: checking for --${enablestring:-enable}-filesystem" >&5
4433           no_cache=0
4434           # Check whether --enable-filesystem or --disable-filesystem was given.
4435 if test "${enable_filesystem+set}" = set; then
4436   enableval="$enable_filesystem"
4437   
4438                           if test "$enableval" = yes; then
4439                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4440                           else
4441                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4442                           fi
4443                         
4444 else
4445   
4446                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4447                           if test "x$LINE" != x ; then
4448                             eval "DEFAULT_$LINE"
4449                           else
4450                             no_cache=1
4451                           fi
4452
4453                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4454                         
4455 fi
4456
4457
4458           eval "$ac_cv_use_filesystem"
4459           if test "$no_cache" != 1; then
4460             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4461           fi
4462
4463           if test "$wxUSE_FILESYSTEM" = yes; then
4464             echo "$ac_t""yes" 1>&6
4465           else
4466             echo "$ac_t""no" 1>&6
4467           fi
4468         
4469
4470           enablestring=
4471           echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4472 echo "configure:4473: checking for --${enablestring:-enable}-fs_inet" >&5
4473           no_cache=0
4474           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4475 if test "${enable_fs_inet+set}" = set; then
4476   enableval="$enable_fs_inet"
4477   
4478                           if test "$enableval" = yes; then
4479                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4480                           else
4481                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4482                           fi
4483                         
4484 else
4485   
4486                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4487                           if test "x$LINE" != x ; then
4488                             eval "DEFAULT_$LINE"
4489                           else
4490                             no_cache=1
4491                           fi
4492
4493                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4494                         
4495 fi
4496
4497
4498           eval "$ac_cv_use_fs_inet"
4499           if test "$no_cache" != 1; then
4500             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4501           fi
4502
4503           if test "$wxUSE_FS_INET" = yes; then
4504             echo "$ac_t""yes" 1>&6
4505           else
4506             echo "$ac_t""no" 1>&6
4507           fi
4508         
4509
4510           enablestring=
4511           echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4512 echo "configure:4513: checking for --${enablestring:-enable}-fs_zip" >&5
4513           no_cache=0
4514           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4515 if test "${enable_fs_zip+set}" = set; then
4516   enableval="$enable_fs_zip"
4517   
4518                           if test "$enableval" = yes; then
4519                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4520                           else
4521                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4522                           fi
4523                         
4524 else
4525   
4526                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4527                           if test "x$LINE" != x ; then
4528                             eval "DEFAULT_$LINE"
4529                           else
4530                             no_cache=1
4531                           fi
4532
4533                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4534                         
4535 fi
4536
4537
4538           eval "$ac_cv_use_fs_zip"
4539           if test "$no_cache" != 1; then
4540             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4541           fi
4542
4543           if test "$wxUSE_FS_ZIP" = yes; then
4544             echo "$ac_t""yes" 1>&6
4545           else
4546             echo "$ac_t""no" 1>&6
4547           fi
4548         
4549
4550           enablestring=
4551           echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4552 echo "configure:4553: checking for --${enablestring:-enable}-zipstream" >&5
4553           no_cache=0
4554           # Check whether --enable-zipstream or --disable-zipstream was given.
4555 if test "${enable_zipstream+set}" = set; then
4556   enableval="$enable_zipstream"
4557   
4558                           if test "$enableval" = yes; then
4559                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4560                           else
4561                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4562                           fi
4563                         
4564 else
4565   
4566                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4567                           if test "x$LINE" != x ; then
4568                             eval "DEFAULT_$LINE"
4569                           else
4570                             no_cache=1
4571                           fi
4572
4573                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4574                         
4575 fi
4576
4577
4578           eval "$ac_cv_use_zipstream"
4579           if test "$no_cache" != 1; then
4580             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4581           fi
4582
4583           if test "$wxUSE_ZIPSTREAM" = yes; then
4584             echo "$ac_t""yes" 1>&6
4585           else
4586             echo "$ac_t""no" 1>&6
4587           fi
4588         
4589
4590
4591           enablestring=
4592           echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4593 echo "configure:4594: checking for --${enablestring:-enable}-catch_segvs" >&5
4594           no_cache=0
4595           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4596 if test "${enable_catch_segvs+set}" = set; then
4597   enableval="$enable_catch_segvs"
4598   
4599                           if test "$enableval" = yes; then
4600                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4601                           else
4602                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4603                           fi
4604                         
4605 else
4606   
4607                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4608                           if test "x$LINE" != x ; then
4609                             eval "DEFAULT_$LINE"
4610                           else
4611                             no_cache=1
4612                           fi
4613
4614                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4615                         
4616 fi
4617
4618
4619           eval "$ac_cv_use_catch_segvs"
4620           if test "$no_cache" != 1; then
4621             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4622           fi
4623
4624           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4625             echo "$ac_t""yes" 1>&6
4626           else
4627             echo "$ac_t""no" 1>&6
4628           fi
4629         
4630
4631           enablestring=
4632           echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4633 echo "configure:4634: checking for --${enablestring:-enable}-snglinst" >&5
4634           no_cache=0
4635           # Check whether --enable-snglinst or --disable-snglinst was given.
4636 if test "${enable_snglinst+set}" = set; then
4637   enableval="$enable_snglinst"
4638   
4639                           if test "$enableval" = yes; then
4640                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4641                           else
4642                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4643                           fi
4644                         
4645 else
4646   
4647                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4648                           if test "x$LINE" != x ; then
4649                             eval "DEFAULT_$LINE"
4650                           else
4651                             no_cache=1
4652                           fi
4653
4654                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4655                         
4656 fi
4657
4658
4659           eval "$ac_cv_use_snglinst"
4660           if test "$no_cache" != 1; then
4661             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4662           fi
4663
4664           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4665             echo "$ac_t""yes" 1>&6
4666           else
4667             echo "$ac_t""no" 1>&6
4668           fi
4669         
4670
4671
4672           enablestring=
4673           echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4674 echo "configure:4675: checking for --${enablestring:-enable}-mimetype" >&5
4675           no_cache=0
4676           # Check whether --enable-mimetype or --disable-mimetype was given.
4677 if test "${enable_mimetype+set}" = set; then
4678   enableval="$enable_mimetype"
4679   
4680                           if test "$enableval" = yes; then
4681                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4682                           else
4683                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4684                           fi
4685                         
4686 else
4687   
4688                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4689                           if test "x$LINE" != x ; then
4690                             eval "DEFAULT_$LINE"
4691                           else
4692                             no_cache=1
4693                           fi
4694
4695                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4696                         
4697 fi
4698
4699
4700           eval "$ac_cv_use_mimetype"
4701           if test "$no_cache" != 1; then
4702             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4703           fi
4704
4705           if test "$wxUSE_MIMETYPE" = yes; then
4706             echo "$ac_t""yes" 1>&6
4707           else
4708             echo "$ac_t""no" 1>&6
4709           fi
4710         
4711
4712           enablestring=
4713           echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4714 echo "configure:4715: checking for --${enablestring:-enable}-system_options" >&5
4715           no_cache=0
4716           # Check whether --enable-system_options or --disable-system_options was given.
4717 if test "${enable_system_options+set}" = set; then
4718   enableval="$enable_system_options"
4719   
4720                           if test "$enableval" = yes; then
4721                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4722                           else
4723                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4724                           fi
4725                         
4726 else
4727   
4728                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4729                           if test "x$LINE" != x ; then
4730                             eval "DEFAULT_$LINE"
4731                           else
4732                             no_cache=1
4733                           fi
4734
4735                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4736                         
4737 fi
4738
4739
4740           eval "$ac_cv_use_system_options"
4741           if test "$no_cache" != 1; then
4742             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4743           fi
4744
4745           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4746             echo "$ac_t""yes" 1>&6
4747           else
4748             echo "$ac_t""no" 1>&6
4749           fi
4750         
4751
4752
4753           enablestring=
4754           echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4755 echo "configure:4756: checking for --${enablestring:-enable}-url" >&5
4756           no_cache=0
4757           # Check whether --enable-url or --disable-url was given.
4758 if test "${enable_url+set}" = set; then
4759   enableval="$enable_url"
4760   
4761                           if test "$enableval" = yes; then
4762                             ac_cv_use_url='wxUSE_URL=yes'
4763                           else
4764                             ac_cv_use_url='wxUSE_URL=no'
4765                           fi
4766                         
4767 else
4768   
4769                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4770                           if test "x$LINE" != x ; then
4771                             eval "DEFAULT_$LINE"
4772                           else
4773                             no_cache=1
4774                           fi
4775
4776                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4777                         
4778 fi
4779
4780
4781           eval "$ac_cv_use_url"
4782           if test "$no_cache" != 1; then
4783             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4784           fi
4785
4786           if test "$wxUSE_URL" = yes; then
4787             echo "$ac_t""yes" 1>&6
4788           else
4789             echo "$ac_t""no" 1>&6
4790           fi
4791         
4792
4793           enablestring=
4794           echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4795 echo "configure:4796: checking for --${enablestring:-enable}-protocol" >&5
4796           no_cache=0
4797           # Check whether --enable-protocol or --disable-protocol was given.
4798 if test "${enable_protocol+set}" = set; then
4799   enableval="$enable_protocol"
4800   
4801                           if test "$enableval" = yes; then
4802                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4803                           else
4804                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4805                           fi
4806                         
4807 else
4808   
4809                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4810                           if test "x$LINE" != x ; then
4811                             eval "DEFAULT_$LINE"
4812                           else
4813                             no_cache=1
4814                           fi
4815
4816                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4817                         
4818 fi
4819
4820
4821           eval "$ac_cv_use_protocol"
4822           if test "$no_cache" != 1; then
4823             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4824           fi
4825
4826           if test "$wxUSE_PROTOCOL" = yes; then
4827             echo "$ac_t""yes" 1>&6
4828           else
4829             echo "$ac_t""no" 1>&6
4830           fi
4831         
4832
4833           enablestring=
4834           echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4835 echo "configure:4836: checking for --${enablestring:-enable}-protocol_http" >&5
4836           no_cache=0
4837           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4838 if test "${enable_protocol_http+set}" = set; then
4839   enableval="$enable_protocol_http"
4840   
4841                           if test "$enableval" = yes; then
4842                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4843                           else
4844                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4845                           fi
4846                         
4847 else
4848   
4849                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4850                           if test "x$LINE" != x ; then
4851                             eval "DEFAULT_$LINE"
4852                           else
4853                             no_cache=1
4854                           fi
4855
4856                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4857                         
4858 fi
4859
4860
4861           eval "$ac_cv_use_protocol_http"
4862           if test "$no_cache" != 1; then
4863             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4864           fi
4865
4866           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4867             echo "$ac_t""yes" 1>&6
4868           else
4869             echo "$ac_t""no" 1>&6
4870           fi
4871         
4872
4873           enablestring=
4874           echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4875 echo "configure:4876: checking for --${enablestring:-enable}-protocol_ftp" >&5
4876           no_cache=0
4877           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4878 if test "${enable_protocol_ftp+set}" = set; then
4879   enableval="$enable_protocol_ftp"
4880   
4881                           if test "$enableval" = yes; then
4882                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4883                           else
4884                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4885                           fi
4886                         
4887 else
4888   
4889                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4890                           if test "x$LINE" != x ; then
4891                             eval "DEFAULT_$LINE"
4892                           else
4893                             no_cache=1
4894                           fi
4895
4896                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4897                         
4898 fi
4899
4900
4901           eval "$ac_cv_use_protocol_ftp"
4902           if test "$no_cache" != 1; then
4903             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4904           fi
4905
4906           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4907             echo "$ac_t""yes" 1>&6
4908           else
4909             echo "$ac_t""no" 1>&6
4910           fi
4911         
4912
4913           enablestring=
4914           echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4915 echo "configure:4916: checking for --${enablestring:-enable}-protocol_file" >&5
4916           no_cache=0
4917           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4918 if test "${enable_protocol_file+set}" = set; then
4919   enableval="$enable_protocol_file"
4920   
4921                           if test "$enableval" = yes; then
4922                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4923                           else
4924                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4925                           fi
4926                         
4927 else
4928   
4929                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4930                           if test "x$LINE" != x ; then
4931                             eval "DEFAULT_$LINE"
4932                           else
4933                             no_cache=1
4934                           fi
4935
4936                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4937                         
4938 fi
4939
4940
4941           eval "$ac_cv_use_protocol_file"
4942           if test "$no_cache" != 1; then
4943             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4944           fi
4945
4946           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4947             echo "$ac_t""yes" 1>&6
4948           else
4949             echo "$ac_t""no" 1>&6
4950           fi
4951         
4952
4953
4954
4955
4956           enablestring=
4957           echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4958 echo "configure:4959: checking for --${enablestring:-enable}-threads" >&5
4959           no_cache=0
4960           # Check whether --enable-threads or --disable-threads was given.
4961 if test "${enable_threads+set}" = set; then
4962   enableval="$enable_threads"
4963   
4964                           if test "$enableval" = yes; then
4965                             ac_cv_use_threads='wxUSE_THREADS=yes'
4966                           else
4967                             ac_cv_use_threads='wxUSE_THREADS=no'
4968                           fi
4969                         
4970 else
4971   
4972                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4973                           if test "x$LINE" != x ; then
4974                             eval "DEFAULT_$LINE"
4975                           else
4976                             no_cache=1
4977                           fi
4978
4979                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4980                         
4981 fi
4982
4983
4984           eval "$ac_cv_use_threads"
4985           if test "$no_cache" != 1; then
4986             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4987           fi
4988
4989           if test "$wxUSE_THREADS" = yes; then
4990             echo "$ac_t""yes" 1>&6
4991           else
4992             echo "$ac_t""no" 1>&6
4993           fi
4994         
4995
4996 if test "$wxUSE_GUI" = "yes"; then
4997
4998
4999
5000           enablestring=
5001           echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5002 echo "configure:5003: checking for --${enablestring:-enable}-docview" >&5
5003           no_cache=0
5004           # Check whether --enable-docview or --disable-docview was given.
5005 if test "${enable_docview+set}" = set; then
5006   enableval="$enable_docview"
5007   
5008                           if test "$enableval" = yes; then
5009                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5010                           else
5011                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5012                           fi
5013                         
5014 else
5015   
5016                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5017                           if test "x$LINE" != x ; then
5018                             eval "DEFAULT_$LINE"
5019                           else
5020                             no_cache=1
5021                           fi
5022
5023                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5024                         
5025 fi
5026
5027
5028           eval "$ac_cv_use_docview"
5029           if test "$no_cache" != 1; then
5030             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5031           fi
5032
5033           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5034             echo "$ac_t""yes" 1>&6
5035           else
5036             echo "$ac_t""no" 1>&6
5037           fi
5038         
5039
5040           enablestring=
5041           echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5042 echo "configure:5043: checking for --${enablestring:-enable}-help" >&5
5043           no_cache=0
5044           # Check whether --enable-help or --disable-help was given.
5045 if test "${enable_help+set}" = set; then
5046   enableval="$enable_help"
5047   
5048                           if test "$enableval" = yes; then
5049                             ac_cv_use_help='wxUSE_HELP=yes'
5050                           else
5051                             ac_cv_use_help='wxUSE_HELP=no'
5052                           fi
5053                         
5054 else
5055   
5056                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5057                           if test "x$LINE" != x ; then
5058                             eval "DEFAULT_$LINE"
5059                           else
5060                             no_cache=1
5061                           fi
5062
5063                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5064                         
5065 fi
5066
5067
5068           eval "$ac_cv_use_help"
5069           if test "$no_cache" != 1; then
5070             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5071           fi
5072
5073           if test "$wxUSE_HELP" = yes; then
5074             echo "$ac_t""yes" 1>&6
5075           else
5076             echo "$ac_t""no" 1>&6
5077           fi
5078         
5079
5080           enablestring=
5081           echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5082 echo "configure:5083: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5083           no_cache=0
5084           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5085 if test "${enable_mshtmlhelp+set}" = set; then
5086   enableval="$enable_mshtmlhelp"
5087   
5088                           if test "$enableval" = yes; then
5089                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5090                           else
5091                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5092                           fi
5093                         
5094 else
5095   
5096                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5097                           if test "x$LINE" != x ; then
5098                             eval "DEFAULT_$LINE"
5099                           else
5100                             no_cache=1
5101                           fi
5102
5103                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5104                         
5105 fi
5106
5107
5108           eval "$ac_cv_use_mshtmlhelp"
5109           if test "$no_cache" != 1; then
5110             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5111           fi
5112
5113           if test "$wxUSE_MS_HTML_HELP" = yes; then
5114             echo "$ac_t""yes" 1>&6
5115           else
5116             echo "$ac_t""no" 1>&6
5117           fi
5118         
5119
5120           enablestring=
5121           echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5122 echo "configure:5123: checking for --${enablestring:-enable}-html" >&5
5123           no_cache=0
5124           # Check whether --enable-html or --disable-html was given.
5125 if test "${enable_html+set}" = set; then
5126   enableval="$enable_html"
5127   
5128                           if test "$enableval" = yes; then
5129                             ac_cv_use_html='wxUSE_HTML=yes'
5130                           else
5131                             ac_cv_use_html='wxUSE_HTML=no'
5132                           fi
5133                         
5134 else
5135   
5136                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5137                           if test "x$LINE" != x ; then
5138                             eval "DEFAULT_$LINE"
5139                           else
5140                             no_cache=1
5141                           fi
5142
5143                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5144                         
5145 fi
5146
5147
5148           eval "$ac_cv_use_html"
5149           if test "$no_cache" != 1; then
5150             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5151           fi
5152
5153           if test "$wxUSE_HTML" = yes; then
5154             echo "$ac_t""yes" 1>&6
5155           else
5156             echo "$ac_t""no" 1>&6
5157           fi
5158         
5159
5160           enablestring=
5161           echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5162 echo "configure:5163: checking for --${enablestring:-enable}-htmlhelp" >&5
5163           no_cache=0
5164           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5165 if test "${enable_htmlhelp+set}" = set; then
5166   enableval="$enable_htmlhelp"
5167   
5168                           if test "$enableval" = yes; then
5169                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5170                           else
5171                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5172                           fi
5173                         
5174 else
5175   
5176                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5177                           if test "x$LINE" != x ; then
5178                             eval "DEFAULT_$LINE"
5179                           else
5180                             no_cache=1
5181                           fi
5182
5183                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5184                         
5185 fi
5186
5187
5188           eval "$ac_cv_use_htmlhelp"
5189           if test "$no_cache" != 1; then
5190             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5191           fi
5192
5193           if test "$wxUSE_WXHTML_HELP" = yes; then
5194             echo "$ac_t""yes" 1>&6
5195           else
5196             echo "$ac_t""no" 1>&6
5197           fi
5198         
5199
5200           enablestring=
5201           echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5202 echo "configure:5203: checking for --${enablestring:-enable}-constraints" >&5
5203           no_cache=0
5204           # Check whether --enable-constraints or --disable-constraints was given.
5205 if test "${enable_constraints+set}" = set; then
5206   enableval="$enable_constraints"
5207   
5208                           if test "$enableval" = yes; then
5209                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5210                           else
5211                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5212                           fi
5213                         
5214 else
5215   
5216                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5217                           if test "x$LINE" != x ; then
5218                             eval "DEFAULT_$LINE"
5219                           else
5220                             no_cache=1
5221                           fi
5222
5223                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5224                         
5225 fi
5226
5227
5228           eval "$ac_cv_use_constraints"
5229           if test "$no_cache" != 1; then
5230             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5231           fi
5232
5233           if test "$wxUSE_CONSTRAINTS" = yes; then
5234             echo "$ac_t""yes" 1>&6
5235           else
5236             echo "$ac_t""no" 1>&6
5237           fi
5238         
5239
5240           enablestring=
5241           echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5242 echo "configure:5243: checking for --${enablestring:-enable}-printarch" >&5
5243           no_cache=0
5244           # Check whether --enable-printarch or --disable-printarch was given.
5245 if test "${enable_printarch+set}" = set; then
5246   enableval="$enable_printarch"
5247   
5248                           if test "$enableval" = yes; then
5249                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5250                           else
5251                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5252                           fi
5253                         
5254 else
5255   
5256                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5257                           if test "x$LINE" != x ; then
5258                             eval "DEFAULT_$LINE"
5259                           else
5260                             no_cache=1
5261                           fi
5262
5263                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5264                         
5265 fi
5266
5267
5268           eval "$ac_cv_use_printarch"
5269           if test "$no_cache" != 1; then
5270             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5271           fi
5272
5273           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5274             echo "$ac_t""yes" 1>&6
5275           else
5276             echo "$ac_t""no" 1>&6
5277           fi
5278         
5279
5280           enablestring=
5281           echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5282 echo "configure:5283: checking for --${enablestring:-enable}-mdi" >&5
5283           no_cache=0
5284           # Check whether --enable-mdi or --disable-mdi was given.
5285 if test "${enable_mdi+set}" = set; then
5286   enableval="$enable_mdi"
5287   
5288                           if test "$enableval" = yes; then
5289                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5290                           else
5291                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5292                           fi
5293                         
5294 else
5295   
5296                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5297                           if test "x$LINE" != x ; then
5298                             eval "DEFAULT_$LINE"
5299                           else
5300                             no_cache=1
5301                           fi
5302
5303                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5304                         
5305 fi
5306
5307
5308           eval "$ac_cv_use_mdi"
5309           if test "$no_cache" != 1; then
5310             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5311           fi
5312
5313           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5314             echo "$ac_t""yes" 1>&6
5315           else
5316             echo "$ac_t""no" 1>&6
5317           fi
5318         
5319
5320           enablestring=
5321           echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5322 echo "configure:5323: checking for --${enablestring:-enable}-loggui" >&5
5323           no_cache=0
5324           # Check whether --enable-loggui or --disable-loggui was given.
5325 if test "${enable_loggui+set}" = set; then
5326   enableval="$enable_loggui"
5327   
5328                           if test "$enableval" = yes; then
5329                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5330                           else
5331                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5332                           fi
5333                         
5334 else
5335   
5336                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5337                           if test "x$LINE" != x ; then
5338                             eval "DEFAULT_$LINE"
5339                           else
5340                             no_cache=1
5341                           fi
5342
5343                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5344                         
5345 fi
5346
5347
5348           eval "$ac_cv_use_loggui"
5349           if test "$no_cache" != 1; then
5350             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5351           fi
5352
5353           if test "$wxUSE_LOGGUI" = yes; then
5354             echo "$ac_t""yes" 1>&6
5355           else
5356             echo "$ac_t""no" 1>&6
5357           fi
5358         
5359
5360           enablestring=
5361           echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5362 echo "configure:5363: checking for --${enablestring:-enable}-logwin" >&5
5363           no_cache=0
5364           # Check whether --enable-logwin or --disable-logwin was given.
5365 if test "${enable_logwin+set}" = set; then
5366   enableval="$enable_logwin"
5367   
5368                           if test "$enableval" = yes; then
5369                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5370                           else
5371                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5372                           fi
5373                         
5374 else
5375   
5376                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5377                           if test "x$LINE" != x ; then
5378                             eval "DEFAULT_$LINE"
5379                           else
5380                             no_cache=1
5381                           fi
5382
5383                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5384                         
5385 fi
5386
5387
5388           eval "$ac_cv_use_logwin"
5389           if test "$no_cache" != 1; then
5390             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5391           fi
5392
5393           if test "$wxUSE_LOGWINDOW" = yes; then
5394             echo "$ac_t""yes" 1>&6
5395           else
5396             echo "$ac_t""no" 1>&6
5397           fi
5398         
5399
5400           enablestring=
5401           echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5402 echo "configure:5403: checking for --${enablestring:-enable}-logdialog" >&5
5403           no_cache=0
5404           # Check whether --enable-logdialog or --disable-logdialog was given.
5405 if test "${enable_logdialog+set}" = set; then
5406   enableval="$enable_logdialog"
5407   
5408                           if test "$enableval" = yes; then
5409                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5410                           else
5411                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5412                           fi
5413                         
5414 else
5415   
5416                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5417                           if test "x$LINE" != x ; then
5418                             eval "DEFAULT_$LINE"
5419                           else
5420                             no_cache=1
5421                           fi
5422
5423                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5424                         
5425 fi
5426
5427
5428           eval "$ac_cv_use_logdialog"
5429           if test "$no_cache" != 1; then
5430             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5431           fi
5432
5433           if test "$wxUSE_LOGDIALOG" = yes; then
5434             echo "$ac_t""yes" 1>&6
5435           else
5436             echo "$ac_t""no" 1>&6
5437           fi
5438         
5439
5440
5441           enablestring=
5442           echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5443 echo "configure:5444: checking for --${enablestring:-enable}-postscript" >&5
5444           no_cache=0
5445           # Check whether --enable-postscript or --disable-postscript was given.
5446 if test "${enable_postscript+set}" = set; then
5447   enableval="$enable_postscript"
5448   
5449                           if test "$enableval" = yes; then
5450                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5451                           else
5452                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5453                           fi
5454                         
5455 else
5456   
5457                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5458                           if test "x$LINE" != x ; then
5459                             eval "DEFAULT_$LINE"
5460                           else
5461                             no_cache=1
5462                           fi
5463
5464                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5465                         
5466 fi
5467
5468
5469           eval "$ac_cv_use_postscript"
5470           if test "$no_cache" != 1; then
5471             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5472           fi
5473
5474           if test "$wxUSE_POSTSCRIPT" = yes; then
5475             echo "$ac_t""yes" 1>&6
5476           else
5477             echo "$ac_t""no" 1>&6
5478           fi
5479         
5480
5481
5482
5483
5484           enablestring=
5485           echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5486 echo "configure:5487: checking for --${enablestring:-enable}-resources" >&5
5487           no_cache=0
5488           # Check whether --enable-resources or --disable-resources was given.
5489 if test "${enable_resources+set}" = set; then
5490   enableval="$enable_resources"
5491   
5492                           if test "$enableval" = yes; then
5493                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5494                           else
5495                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5496                           fi
5497                         
5498 else
5499   
5500                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5501                           if test "x$LINE" != x ; then
5502                             eval "DEFAULT_$LINE"
5503                           else
5504                             no_cache=1
5505                           fi
5506
5507                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5508                         
5509 fi
5510
5511
5512           eval "$ac_cv_use_resources"
5513           if test "$no_cache" != 1; then
5514             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5515           fi
5516
5517           if test "$wxUSE_RESOURCES" = yes; then
5518             echo "$ac_t""yes" 1>&6
5519           else
5520             echo "$ac_t""no" 1>&6
5521           fi
5522         
5523
5524
5525           enablestring=
5526           echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5527 echo "configure:5528: checking for --${enablestring:-enable}-xresources" >&5
5528           no_cache=0
5529           # Check whether --enable-xresources or --disable-xresources was given.
5530 if test "${enable_xresources+set}" = set; then
5531   enableval="$enable_xresources"
5532   
5533                           if test "$enableval" = yes; then
5534                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5535                           else
5536                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5537                           fi
5538                         
5539 else
5540   
5541                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5542                           if test "x$LINE" != x ; then
5543                             eval "DEFAULT_$LINE"
5544                           else
5545                             no_cache=1
5546                           fi
5547
5548                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5549                         
5550 fi
5551
5552
5553           eval "$ac_cv_use_xresources"
5554           if test "$no_cache" != 1; then
5555             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5556           fi
5557
5558           if test "$wxUSE_X_RESOURCES" = yes; then
5559             echo "$ac_t""yes" 1>&6
5560           else
5561             echo "$ac_t""no" 1>&6
5562           fi
5563         
5564
5565
5566
5567           enablestring=
5568           echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5569 echo "configure:5570: checking for --${enablestring:-enable}-clipboard" >&5
5570           no_cache=0
5571           # Check whether --enable-clipboard or --disable-clipboard was given.
5572 if test "${enable_clipboard+set}" = set; then
5573   enableval="$enable_clipboard"
5574   
5575                           if test "$enableval" = yes; then
5576                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5577                           else
5578                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5579                           fi
5580                         
5581 else
5582   
5583                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5584                           if test "x$LINE" != x ; then
5585                             eval "DEFAULT_$LINE"
5586                           else
5587                             no_cache=1
5588                           fi
5589
5590                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5591                         
5592 fi
5593
5594
5595           eval "$ac_cv_use_clipboard"
5596           if test "$no_cache" != 1; then
5597             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5598           fi
5599
5600           if test "$wxUSE_CLIPBOARD" = yes; then
5601             echo "$ac_t""yes" 1>&6
5602           else
5603             echo "$ac_t""no" 1>&6
5604           fi
5605         
5606
5607           enablestring=
5608           echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5609 echo "configure:5610: checking for --${enablestring:-enable}-dnd" >&5
5610           no_cache=0
5611           # Check whether --enable-dnd or --disable-dnd was given.
5612 if test "${enable_dnd+set}" = set; then
5613   enableval="$enable_dnd"
5614   
5615                           if test "$enableval" = yes; then
5616                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5617                           else
5618                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5619                           fi
5620                         
5621 else
5622   
5623                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5624                           if test "x$LINE" != x ; then
5625                             eval "DEFAULT_$LINE"
5626                           else
5627                             no_cache=1
5628                           fi
5629
5630                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5631                         
5632 fi
5633
5634
5635           eval "$ac_cv_use_dnd"
5636           if test "$no_cache" != 1; then
5637             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5638           fi
5639
5640           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5641             echo "$ac_t""yes" 1>&6
5642           else
5643             echo "$ac_t""no" 1>&6
5644           fi
5645         
5646
5647           enablestring=
5648           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5649 echo "configure:5650: checking for --${enablestring:-enable}-metafile" >&5
5650           no_cache=0
5651           # Check whether --enable-metafile or --disable-metafile was given.
5652 if test "${enable_metafile+set}" = set; then
5653   enableval="$enable_metafile"
5654   
5655                           if test "$enableval" = yes; then
5656                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5657                           else
5658                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5659                           fi
5660                         
5661 else
5662   
5663                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5664                           if test "x$LINE" != x ; then
5665                             eval "DEFAULT_$LINE"
5666                           else
5667                             no_cache=1
5668                           fi
5669
5670                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5671                         
5672 fi
5673
5674
5675           eval "$ac_cv_use_metafile"
5676           if test "$no_cache" != 1; then
5677             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5678           fi
5679
5680           if test "$wxUSE_METAFILE" = yes; then
5681             echo "$ac_t""yes" 1>&6
5682           else
5683             echo "$ac_t""no" 1>&6
5684           fi
5685         
5686
5687
5688
5689
5690           enablestring=
5691           echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5692 echo "configure:5693: checking for --${enablestring:-enable}-controls" >&5
5693           no_cache=0
5694           # Check whether --enable-controls or --disable-controls was given.
5695 if test "${enable_controls+set}" = set; then
5696   enableval="$enable_controls"
5697   
5698                           if test "$enableval" = yes; then
5699                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5700                           else
5701                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5702                           fi
5703                         
5704 else
5705   
5706                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5707                           if test "x$LINE" != x ; then
5708                             eval "DEFAULT_$LINE"
5709                           else
5710                             no_cache=1
5711                           fi
5712
5713                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5714                         
5715 fi
5716
5717
5718           eval "$ac_cv_use_controls"
5719           if test "$no_cache" != 1; then
5720             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5721           fi
5722
5723           if test "$wxUSE_CONTROLS" = yes; then
5724             echo "$ac_t""yes" 1>&6
5725           else
5726             echo "$ac_t""no" 1>&6
5727           fi
5728         
5729
5730 if test "$wxUSE_CONTROLS" = "yes"; then
5731   DEFAULT_wxUSE_ACCEL=yes
5732   DEFAULT_wxUSE_BMPBUTTON=yes
5733   DEFAULT_wxUSE_BUTTON=yes
5734   DEFAULT_wxUSE_CALCTRL=no
5735   DEFAULT_wxUSE_CARET=yes
5736   DEFAULT_wxUSE_COMBOBOX=yes
5737   DEFAULT_wxUSE_CHECKBOX=yes
5738   DEFAULT_wxUSE_CHECKLISTBOX=yes
5739   DEFAULT_wxUSE_CHOICE=yes
5740   DEFAULT_wxUSE_GAUGE=yes
5741   DEFAULT_wxUSE_GRID=yes
5742   DEFAULT_wxUSE_IMAGLIST=yes
5743   DEFAULT_wxUSE_LISTBOX=yes
5744   DEFAULT_wxUSE_LISTCTRL=yes
5745   DEFAULT_wxUSE_NOTEBOOK=yes
5746   DEFAULT_wxUSE_RADIOBOX=yes
5747   DEFAULT_wxUSE_RADIOBTN=yes
5748   DEFAULT_wxUSE_SASH=yes
5749   DEFAULT_wxUSE_SCROLLBAR=yes
5750   DEFAULT_wxUSE_SLIDER=yes
5751   DEFAULT_wxUSE_SPINBTN=yes
5752   DEFAULT_wxUSE_SPINCTRL=yes
5753   DEFAULT_wxUSE_SPLITTER=yes
5754   DEFAULT_wxUSE_STATBMP=yes
5755   DEFAULT_wxUSE_STATBOX=yes
5756   DEFAULT_wxUSE_STATLINE=yes
5757   DEFAULT_wxUSE_STATUSBAR=yes
5758   DEFAULT_wxUSE_TAB_DIALOG=yes
5759   DEFAULT_wxUSE_TOGGLEBTN=yes
5760   DEFAULT_wxUSE_TOOLBAR=yes
5761   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5762   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5763   DEFAULT_wxUSE_TOOLTIPS=yes
5764   DEFAULT_wxUSE_TREECTRL=yes
5765   DEFAULT_wxUSE_POPUPWIN=yes
5766   DEFAULT_wxUSE_TIPWINDOW=yes
5767 elif test "$wxUSE_CONTROLS" = "no"; then
5768   DEFAULT_wxUSE_ACCEL=no
5769   DEFAULT_wxUSE_BMPBUTTON=no
5770   DEFAULT_wxUSE_BUTTON=no
5771   DEFAULT_wxUSE_CALCTRL=no
5772   DEFAULT_wxUSE_CARET=no
5773   DEFAULT_wxUSE_COMBOBOX=no
5774   DEFAULT_wxUSE_CHECKBOX=no
5775   DEFAULT_wxUSE_CHECKLISTBOX=no
5776   DEFAULT_wxUSE_CHOICE=no
5777   DEFAULT_wxUSE_GAUGE=no
5778   DEFAULT_wxUSE_GRID=no
5779   DEFAULT_wxUSE_IMAGLIST=no
5780   DEFAULT_wxUSE_LISTBOX=no
5781   DEFAULT_wxUSE_LISTCTRL=no
5782   DEFAULT_wxUSE_NOTEBOOK=no
5783   DEFAULT_wxUSE_RADIOBOX=no
5784   DEFAULT_wxUSE_RADIOBTN=no
5785   DEFAULT_wxUSE_SASH=no
5786   DEFAULT_wxUSE_SCROLLBAR=no
5787   DEFAULT_wxUSE_SLIDER=no
5788   DEFAULT_wxUSE_SPINBTN=no
5789   DEFAULT_wxUSE_SPINCTRL=no
5790   DEFAULT_wxUSE_SPLITTER=no
5791   DEFAULT_wxUSE_STATBMP=no
5792   DEFAULT_wxUSE_STATBOX=no
5793   DEFAULT_wxUSE_STATLINE=no
5794   DEFAULT_wxUSE_STATUSBAR=no
5795   DEFAULT_wxUSE_TAB_DIALOG=no
5796   DEFAULT_wxUSE_TOGGLEBTN=no
5797   DEFAULT_wxUSE_TOOLBAR=no
5798   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5799   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5800   DEFAULT_wxUSE_TOOLTIPS=no
5801   DEFAULT_wxUSE_TREECTRL=no
5802   DEFAULT_wxUSE_POPUPWIN=no
5803   DEFAULT_wxUSE_TIPWINDOW=no
5804 fi
5805
5806 ## FIXME: This is a blatant hack
5807 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5808   wxUSE_PRINTING_ARCHITECTURE=no
5809   wxUSE_HELP=no
5810   wxUSE_CLIPBOARD=no
5811   wxUSE_DRAG_AND_DROP=no
5812   wxUSE_DATAOBJ=no
5813   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5814   DEFAULT_wxUSE_TEXTDLG=no
5815   DEFAULT_wxUSE_GAUGE=no
5816   DEFAULT_wxUSE_SCROLLBAR=no
5817   DEFAULT_wxUSE_SLIDER=no
5818   DEFAULT_wxUSE_COMBOBOX=no
5819   DEFAULT_wxUSE_CALCTRL=no
5820   DEFAULT_wxUSE_SPINBTN=no
5821   DEFAULT_wxUSE_SPINCTRL=no
5822   DEFAULT_wxUSE_TOOLTIPS=no
5823   DEFAULT_wxUSE_COLOURDLG=no
5824   DEFAULT_wxUSE_DRAGIMAGE=no
5825   DEFAULT_wxUSE_FINDREPLDLG=no
5826   DEFAULT_wxUSE_FONTDLG=no
5827   DEFAULT_wxUSE_GRID=no
5828   DEFAULT_wxUSE_NUMBERDLG=no
5829   DEFAULT_wxUSE_PROGRESSDLG=no
5830   DEFAULT_wxUSE_SASH=no
5831   DEFAULT_wxUSE_SPLITTER=no
5832   DEFAULT_wxUSE_WIZARDDLG=no
5833   DEFAULT_wxUSE_SPLITTER=no
5834   DEFAULT_wxUSE_STARTUP_TIPS=no
5835 fi
5836
5837
5838           enablestring=
5839           echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5840 echo "configure:5841: checking for --${enablestring:-enable}-accel" >&5
5841           no_cache=0
5842           # Check whether --enable-accel or --disable-accel was given.
5843 if test "${enable_accel+set}" = set; then
5844   enableval="$enable_accel"
5845   
5846                           if test "$enableval" = yes; then
5847                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5848                           else
5849                             ac_cv_use_accel='wxUSE_ACCEL=no'
5850                           fi
5851                         
5852 else
5853   
5854                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5855                           if test "x$LINE" != x ; then
5856                             eval "DEFAULT_$LINE"
5857                           else
5858                             no_cache=1
5859                           fi
5860
5861                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5862                         
5863 fi
5864
5865
5866           eval "$ac_cv_use_accel"
5867           if test "$no_cache" != 1; then
5868             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5869           fi
5870
5871           if test "$wxUSE_ACCEL" = yes; then
5872             echo "$ac_t""yes" 1>&6
5873           else
5874             echo "$ac_t""no" 1>&6
5875           fi
5876         
5877
5878           enablestring=
5879           echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5880 echo "configure:5881: checking for --${enablestring:-enable}-button" >&5
5881           no_cache=0
5882           # Check whether --enable-button or --disable-button was given.
5883 if test "${enable_button+set}" = set; then
5884   enableval="$enable_button"
5885   
5886                           if test "$enableval" = yes; then
5887                             ac_cv_use_button='wxUSE_BUTTON=yes'
5888                           else
5889                             ac_cv_use_button='wxUSE_BUTTON=no'
5890                           fi
5891                         
5892 else
5893   
5894                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5895                           if test "x$LINE" != x ; then
5896                             eval "DEFAULT_$LINE"
5897                           else
5898                             no_cache=1
5899                           fi
5900
5901                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5902                         
5903 fi
5904
5905
5906           eval "$ac_cv_use_button"
5907           if test "$no_cache" != 1; then
5908             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5909           fi
5910
5911           if test "$wxUSE_BUTTON" = yes; then
5912             echo "$ac_t""yes" 1>&6
5913           else
5914             echo "$ac_t""no" 1>&6
5915           fi
5916         
5917
5918           enablestring=
5919           echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5920 echo "configure:5921: checking for --${enablestring:-enable}-bmpbutton" >&5
5921           no_cache=0
5922           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5923 if test "${enable_bmpbutton+set}" = set; then
5924   enableval="$enable_bmpbutton"
5925   
5926                           if test "$enableval" = yes; then
5927                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5928                           else
5929                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5930                           fi
5931                         
5932 else
5933   
5934                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5935                           if test "x$LINE" != x ; then
5936                             eval "DEFAULT_$LINE"
5937                           else
5938                             no_cache=1
5939                           fi
5940
5941                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5942                         
5943 fi
5944
5945
5946           eval "$ac_cv_use_bmpbutton"
5947           if test "$no_cache" != 1; then
5948             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5949           fi
5950
5951           if test "$wxUSE_BMPBUTTON" = yes; then
5952             echo "$ac_t""yes" 1>&6
5953           else
5954             echo "$ac_t""no" 1>&6
5955           fi
5956         
5957
5958           enablestring=
5959           echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5960 echo "configure:5961: checking for --${enablestring:-enable}-calendar" >&5
5961           no_cache=0
5962           # Check whether --enable-calendar or --disable-calendar was given.
5963 if test "${enable_calendar+set}" = set; then
5964   enableval="$enable_calendar"
5965   
5966                           if test "$enableval" = yes; then
5967                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5968                           else
5969                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
5970                           fi
5971                         
5972 else
5973   
5974                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5975                           if test "x$LINE" != x ; then
5976                             eval "DEFAULT_$LINE"
5977                           else
5978                             no_cache=1
5979                           fi
5980
5981                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5982                         
5983 fi
5984
5985
5986           eval "$ac_cv_use_calendar"
5987           if test "$no_cache" != 1; then
5988             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5989           fi
5990
5991           if test "$wxUSE_CALCTRL" = yes; then
5992             echo "$ac_t""yes" 1>&6
5993           else
5994             echo "$ac_t""no" 1>&6
5995           fi
5996         
5997
5998           enablestring=
5999           echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6000 echo "configure:6001: checking for --${enablestring:-enable}-caret" >&5
6001           no_cache=0
6002           # Check whether --enable-caret or --disable-caret was given.
6003 if test "${enable_caret+set}" = set; then
6004   enableval="$enable_caret"
6005   
6006                           if test "$enableval" = yes; then
6007                             ac_cv_use_caret='wxUSE_CARET=yes'
6008                           else
6009                             ac_cv_use_caret='wxUSE_CARET=no'
6010                           fi
6011                         
6012 else
6013   
6014                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6015                           if test "x$LINE" != x ; then
6016                             eval "DEFAULT_$LINE"
6017                           else
6018                             no_cache=1
6019                           fi
6020
6021                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6022                         
6023 fi
6024
6025
6026           eval "$ac_cv_use_caret"
6027           if test "$no_cache" != 1; then
6028             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6029           fi
6030
6031           if test "$wxUSE_CARET" = yes; then
6032             echo "$ac_t""yes" 1>&6
6033           else
6034             echo "$ac_t""no" 1>&6
6035           fi
6036         
6037
6038           enablestring=
6039           echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6040 echo "configure:6041: checking for --${enablestring:-enable}-checkbox" >&5
6041           no_cache=0
6042           # Check whether --enable-checkbox or --disable-checkbox was given.
6043 if test "${enable_checkbox+set}" = set; then
6044   enableval="$enable_checkbox"
6045   
6046                           if test "$enableval" = yes; then
6047                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6048                           else
6049                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6050                           fi
6051                         
6052 else
6053   
6054                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6055                           if test "x$LINE" != x ; then
6056                             eval "DEFAULT_$LINE"
6057                           else
6058                             no_cache=1
6059                           fi
6060
6061                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6062                         
6063 fi
6064
6065
6066           eval "$ac_cv_use_checkbox"
6067           if test "$no_cache" != 1; then
6068             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6069           fi
6070
6071           if test "$wxUSE_CHECKBOX" = yes; then
6072             echo "$ac_t""yes" 1>&6
6073           else
6074             echo "$ac_t""no" 1>&6
6075           fi
6076         
6077
6078           enablestring=
6079           echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6080 echo "configure:6081: checking for --${enablestring:-enable}-checklst" >&5
6081           no_cache=0
6082           # Check whether --enable-checklst or --disable-checklst was given.
6083 if test "${enable_checklst+set}" = set; then
6084   enableval="$enable_checklst"
6085   
6086                           if test "$enableval" = yes; then
6087                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6088                           else
6089                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6090                           fi
6091                         
6092 else
6093   
6094                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6095                           if test "x$LINE" != x ; then
6096                             eval "DEFAULT_$LINE"
6097                           else
6098                             no_cache=1
6099                           fi
6100
6101                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6102                         
6103 fi
6104
6105
6106           eval "$ac_cv_use_checklst"
6107           if test "$no_cache" != 1; then
6108             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6109           fi
6110
6111           if test "$wxUSE_CHECKLST" = yes; then
6112             echo "$ac_t""yes" 1>&6
6113           else
6114             echo "$ac_t""no" 1>&6
6115           fi
6116         
6117
6118           enablestring=
6119           echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6120 echo "configure:6121: checking for --${enablestring:-enable}-choice" >&5
6121           no_cache=0
6122           # Check whether --enable-choice or --disable-choice was given.
6123 if test "${enable_choice+set}" = set; then
6124   enableval="$enable_choice"
6125   
6126                           if test "$enableval" = yes; then
6127                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6128                           else
6129                             ac_cv_use_choice='wxUSE_CHOICE=no'
6130                           fi
6131                         
6132 else
6133   
6134                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6135                           if test "x$LINE" != x ; then
6136                             eval "DEFAULT_$LINE"
6137                           else
6138                             no_cache=1
6139                           fi
6140
6141                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6142                         
6143 fi
6144
6145
6146           eval "$ac_cv_use_choice"
6147           if test "$no_cache" != 1; then
6148             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6149           fi
6150
6151           if test "$wxUSE_CHOICE" = yes; then
6152             echo "$ac_t""yes" 1>&6
6153           else
6154             echo "$ac_t""no" 1>&6
6155           fi
6156         
6157
6158           enablestring=
6159           echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6160 echo "configure:6161: checking for --${enablestring:-enable}-combobox" >&5
6161           no_cache=0
6162           # Check whether --enable-combobox or --disable-combobox was given.
6163 if test "${enable_combobox+set}" = set; then
6164   enableval="$enable_combobox"
6165   
6166                           if test "$enableval" = yes; then
6167                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6168                           else
6169                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6170                           fi
6171                         
6172 else
6173   
6174                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6175                           if test "x$LINE" != x ; then
6176                             eval "DEFAULT_$LINE"
6177                           else
6178                             no_cache=1
6179                           fi
6180
6181                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6182                         
6183 fi
6184
6185
6186           eval "$ac_cv_use_combobox"
6187           if test "$no_cache" != 1; then
6188             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6189           fi
6190
6191           if test "$wxUSE_COMBOBOX" = yes; then
6192             echo "$ac_t""yes" 1>&6
6193           else
6194             echo "$ac_t""no" 1>&6
6195           fi
6196         
6197
6198           enablestring=
6199           echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6200 echo "configure:6201: checking for --${enablestring:-enable}-display" >&5
6201           no_cache=0
6202           # Check whether --enable-display or --disable-display was given.
6203 if test "${enable_display+set}" = set; then
6204   enableval="$enable_display"
6205   
6206                           if test "$enableval" = yes; then
6207                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6208                           else
6209                             ac_cv_use_display='wxUSE_DISPLAY=no'
6210                           fi
6211                         
6212 else
6213   
6214                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6215                           if test "x$LINE" != x ; then
6216                             eval "DEFAULT_$LINE"
6217                           else
6218                             no_cache=1
6219                           fi
6220
6221                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6222                         
6223 fi
6224
6225
6226           eval "$ac_cv_use_display"
6227           if test "$no_cache" != 1; then
6228             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6229           fi
6230
6231           if test "$wxUSE_DISPLAY" = yes; then
6232             echo "$ac_t""yes" 1>&6
6233           else
6234             echo "$ac_t""no" 1>&6
6235           fi
6236         
6237
6238           enablestring=
6239           echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6240 echo "configure:6241: checking for --${enablestring:-enable}-gauge" >&5
6241           no_cache=0
6242           # Check whether --enable-gauge or --disable-gauge was given.
6243 if test "${enable_gauge+set}" = set; then
6244   enableval="$enable_gauge"
6245   
6246                           if test "$enableval" = yes; then
6247                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6248                           else
6249                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6250                           fi
6251                         
6252 else
6253   
6254                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6255                           if test "x$LINE" != x ; then
6256                             eval "DEFAULT_$LINE"
6257                           else
6258                             no_cache=1
6259                           fi
6260
6261                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6262                         
6263 fi
6264
6265
6266           eval "$ac_cv_use_gauge"
6267           if test "$no_cache" != 1; then
6268             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6269           fi
6270
6271           if test "$wxUSE_GAUGE" = yes; then
6272             echo "$ac_t""yes" 1>&6
6273           else
6274             echo "$ac_t""no" 1>&6
6275           fi
6276         
6277
6278           enablestring=
6279           echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6280 echo "configure:6281: checking for --${enablestring:-enable}-grid" >&5
6281           no_cache=0
6282           # Check whether --enable-grid or --disable-grid was given.
6283 if test "${enable_grid+set}" = set; then
6284   enableval="$enable_grid"
6285   
6286                           if test "$enableval" = yes; then
6287                             ac_cv_use_grid='wxUSE_GRID=yes'
6288                           else
6289                             ac_cv_use_grid='wxUSE_GRID=no'
6290                           fi
6291                         
6292 else
6293   
6294                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6295                           if test "x$LINE" != x ; then
6296                             eval "DEFAULT_$LINE"
6297                           else
6298                             no_cache=1
6299                           fi
6300
6301                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6302                         
6303 fi
6304
6305
6306           eval "$ac_cv_use_grid"
6307           if test "$no_cache" != 1; then
6308             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6309           fi
6310
6311           if test "$wxUSE_GRID" = yes; then
6312             echo "$ac_t""yes" 1>&6
6313           else
6314             echo "$ac_t""no" 1>&6
6315           fi
6316         
6317
6318           enablestring=
6319           echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6320 echo "configure:6321: checking for --${enablestring:-enable}-imaglist" >&5
6321           no_cache=0
6322           # Check whether --enable-imaglist or --disable-imaglist was given.
6323 if test "${enable_imaglist+set}" = set; then
6324   enableval="$enable_imaglist"
6325   
6326                           if test "$enableval" = yes; then
6327                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6328                           else
6329                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6330                           fi
6331                         
6332 else
6333   
6334                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6335                           if test "x$LINE" != x ; then
6336                             eval "DEFAULT_$LINE"
6337                           else
6338                             no_cache=1
6339                           fi
6340
6341                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6342                         
6343 fi
6344
6345
6346           eval "$ac_cv_use_imaglist"
6347           if test "$no_cache" != 1; then
6348             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6349           fi
6350
6351           if test "$wxUSE_IMAGLIST" = yes; then
6352             echo "$ac_t""yes" 1>&6
6353           else
6354             echo "$ac_t""no" 1>&6
6355           fi
6356         
6357
6358           enablestring=
6359           echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6360 echo "configure:6361: checking for --${enablestring:-enable}-listbox" >&5
6361           no_cache=0
6362           # Check whether --enable-listbox or --disable-listbox was given.
6363 if test "${enable_listbox+set}" = set; then
6364   enableval="$enable_listbox"
6365   
6366                           if test "$enableval" = yes; then
6367                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6368                           else
6369                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6370                           fi
6371                         
6372 else
6373   
6374                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6375                           if test "x$LINE" != x ; then
6376                             eval "DEFAULT_$LINE"
6377                           else
6378                             no_cache=1
6379                           fi
6380
6381                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6382                         
6383 fi
6384
6385
6386           eval "$ac_cv_use_listbox"
6387           if test "$no_cache" != 1; then
6388             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6389           fi
6390
6391           if test "$wxUSE_LISTBOX" = yes; then
6392             echo "$ac_t""yes" 1>&6
6393           else
6394             echo "$ac_t""no" 1>&6
6395           fi
6396         
6397
6398           enablestring=
6399           echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6400 echo "configure:6401: checking for --${enablestring:-enable}-listctrl" >&5
6401           no_cache=0
6402           # Check whether --enable-listctrl or --disable-listctrl was given.
6403 if test "${enable_listctrl+set}" = set; then
6404   enableval="$enable_listctrl"
6405   
6406                           if test "$enableval" = yes; then
6407                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6408                           else
6409                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6410                           fi
6411                         
6412 else
6413   
6414                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6415                           if test "x$LINE" != x ; then
6416                             eval "DEFAULT_$LINE"
6417                           else
6418                             no_cache=1
6419                           fi
6420
6421                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6422                         
6423 fi
6424
6425
6426           eval "$ac_cv_use_listctrl"
6427           if test "$no_cache" != 1; then
6428             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6429           fi
6430
6431           if test "$wxUSE_LISTCTRL" = yes; then
6432             echo "$ac_t""yes" 1>&6
6433           else
6434             echo "$ac_t""no" 1>&6
6435           fi
6436         
6437
6438           enablestring=
6439           echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6440 echo "configure:6441: checking for --${enablestring:-enable}-notebook" >&5
6441           no_cache=0
6442           # Check whether --enable-notebook or --disable-notebook was given.
6443 if test "${enable_notebook+set}" = set; then
6444   enableval="$enable_notebook"
6445   
6446                           if test "$enableval" = yes; then
6447                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6448                           else
6449                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6450                           fi
6451                         
6452 else
6453   
6454                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6455                           if test "x$LINE" != x ; then
6456                             eval "DEFAULT_$LINE"
6457                           else
6458                             no_cache=1
6459                           fi
6460
6461                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6462                         
6463 fi
6464
6465
6466           eval "$ac_cv_use_notebook"
6467           if test "$no_cache" != 1; then
6468             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6469           fi
6470
6471           if test "$wxUSE_NOTEBOOK" = yes; then
6472             echo "$ac_t""yes" 1>&6
6473           else
6474             echo "$ac_t""no" 1>&6
6475           fi
6476         
6477
6478           enablestring=
6479           echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6480 echo "configure:6481: checking for --${enablestring:-enable}-radiobox" >&5
6481           no_cache=0
6482           # Check whether --enable-radiobox or --disable-radiobox was given.
6483 if test "${enable_radiobox+set}" = set; then
6484   enableval="$enable_radiobox"
6485   
6486                           if test "$enableval" = yes; then
6487                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6488                           else
6489                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6490                           fi
6491                         
6492 else
6493   
6494                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6495                           if test "x$LINE" != x ; then
6496                             eval "DEFAULT_$LINE"
6497                           else
6498                             no_cache=1
6499                           fi
6500
6501                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6502                         
6503 fi
6504
6505
6506           eval "$ac_cv_use_radiobox"
6507           if test "$no_cache" != 1; then
6508             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6509           fi
6510
6511           if test "$wxUSE_RADIOBOX" = yes; then
6512             echo "$ac_t""yes" 1>&6
6513           else
6514             echo "$ac_t""no" 1>&6
6515           fi
6516         
6517
6518           enablestring=
6519           echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6520 echo "configure:6521: checking for --${enablestring:-enable}-radiobtn" >&5
6521           no_cache=0
6522           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6523 if test "${enable_radiobtn+set}" = set; then
6524   enableval="$enable_radiobtn"
6525   
6526                           if test "$enableval" = yes; then
6527                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6528                           else
6529                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6530                           fi
6531                         
6532 else
6533   
6534                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6535                           if test "x$LINE" != x ; then
6536                             eval "DEFAULT_$LINE"
6537                           else
6538                             no_cache=1
6539                           fi
6540
6541                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6542                         
6543 fi
6544
6545
6546           eval "$ac_cv_use_radiobtn"
6547           if test "$no_cache" != 1; then
6548             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6549           fi
6550
6551           if test "$wxUSE_RADIOBTN" = yes; then
6552             echo "$ac_t""yes" 1>&6
6553           else
6554             echo "$ac_t""no" 1>&6
6555           fi
6556         
6557
6558           enablestring=
6559           echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6560 echo "configure:6561: checking for --${enablestring:-enable}-sash" >&5
6561           no_cache=0
6562           # Check whether --enable-sash or --disable-sash was given.
6563 if test "${enable_sash+set}" = set; then
6564   enableval="$enable_sash"
6565   
6566                           if test "$enableval" = yes; then
6567                             ac_cv_use_sash='wxUSE_SASH=yes'
6568                           else
6569                             ac_cv_use_sash='wxUSE_SASH=no'
6570                           fi
6571                         
6572 else
6573   
6574                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6575                           if test "x$LINE" != x ; then
6576                             eval "DEFAULT_$LINE"
6577                           else
6578                             no_cache=1
6579                           fi
6580
6581                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6582                         
6583 fi
6584
6585
6586           eval "$ac_cv_use_sash"
6587           if test "$no_cache" != 1; then
6588             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6589           fi
6590
6591           if test "$wxUSE_SASH" = yes; then
6592             echo "$ac_t""yes" 1>&6
6593           else
6594             echo "$ac_t""no" 1>&6
6595           fi
6596         
6597
6598           enablestring=
6599           echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6600 echo "configure:6601: checking for --${enablestring:-enable}-scrollbar" >&5
6601           no_cache=0
6602           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6603 if test "${enable_scrollbar+set}" = set; then
6604   enableval="$enable_scrollbar"
6605   
6606                           if test "$enableval" = yes; then
6607                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6608                           else
6609                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6610                           fi
6611                         
6612 else
6613   
6614                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6615                           if test "x$LINE" != x ; then
6616                             eval "DEFAULT_$LINE"
6617                           else
6618                             no_cache=1
6619                           fi
6620
6621                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6622                         
6623 fi
6624
6625
6626           eval "$ac_cv_use_scrollbar"
6627           if test "$no_cache" != 1; then
6628             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6629           fi
6630
6631           if test "$wxUSE_SCROLLBAR" = yes; then
6632             echo "$ac_t""yes" 1>&6
6633           else
6634             echo "$ac_t""no" 1>&6
6635           fi
6636         
6637
6638           enablestring=
6639           echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6640 echo "configure:6641: checking for --${enablestring:-enable}-slider" >&5
6641           no_cache=0
6642           # Check whether --enable-slider or --disable-slider was given.
6643 if test "${enable_slider+set}" = set; then
6644   enableval="$enable_slider"
6645   
6646                           if test "$enableval" = yes; then
6647                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6648                           else
6649                             ac_cv_use_slider='wxUSE_SLIDER=no'
6650                           fi
6651                         
6652 else
6653   
6654                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6655                           if test "x$LINE" != x ; then
6656                             eval "DEFAULT_$LINE"
6657                           else
6658                             no_cache=1
6659                           fi
6660
6661                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6662                         
6663 fi
6664
6665
6666           eval "$ac_cv_use_slider"
6667           if test "$no_cache" != 1; then
6668             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6669           fi
6670
6671           if test "$wxUSE_SLIDER" = yes; then
6672             echo "$ac_t""yes" 1>&6
6673           else
6674             echo "$ac_t""no" 1>&6
6675           fi
6676         
6677
6678           enablestring=
6679           echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6680 echo "configure:6681: checking for --${enablestring:-enable}-spinbtn" >&5
6681           no_cache=0
6682           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6683 if test "${enable_spinbtn+set}" = set; then
6684   enableval="$enable_spinbtn"
6685   
6686                           if test "$enableval" = yes; then
6687                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6688                           else
6689                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6690                           fi
6691                         
6692 else
6693   
6694                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6695                           if test "x$LINE" != x ; then
6696                             eval "DEFAULT_$LINE"
6697                           else
6698                             no_cache=1
6699                           fi
6700
6701                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6702                         
6703 fi
6704
6705
6706           eval "$ac_cv_use_spinbtn"
6707           if test "$no_cache" != 1; then
6708             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6709           fi
6710
6711           if test "$wxUSE_SPINBTN" = yes; then
6712             echo "$ac_t""yes" 1>&6
6713           else
6714             echo "$ac_t""no" 1>&6
6715           fi
6716         
6717
6718           enablestring=
6719           echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6720 echo "configure:6721: checking for --${enablestring:-enable}-spinctrl" >&5
6721           no_cache=0
6722           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6723 if test "${enable_spinctrl+set}" = set; then
6724   enableval="$enable_spinctrl"
6725   
6726                           if test "$enableval" = yes; then
6727                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6728                           else
6729                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6730                           fi
6731                         
6732 else
6733   
6734                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6735                           if test "x$LINE" != x ; then
6736                             eval "DEFAULT_$LINE"
6737                           else
6738                             no_cache=1
6739                           fi
6740
6741                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6742                         
6743 fi
6744
6745
6746           eval "$ac_cv_use_spinctrl"
6747           if test "$no_cache" != 1; then
6748             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6749           fi
6750
6751           if test "$wxUSE_SPINCTRL" = yes; then
6752             echo "$ac_t""yes" 1>&6
6753           else
6754             echo "$ac_t""no" 1>&6
6755           fi
6756         
6757
6758           enablestring=
6759           echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6760 echo "configure:6761: checking for --${enablestring:-enable}-splitter" >&5
6761           no_cache=0
6762           # Check whether --enable-splitter or --disable-splitter was given.
6763 if test "${enable_splitter+set}" = set; then
6764   enableval="$enable_splitter"
6765   
6766                           if test "$enableval" = yes; then
6767                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6768                           else
6769                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6770                           fi
6771                         
6772 else
6773   
6774                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6775                           if test "x$LINE" != x ; then
6776                             eval "DEFAULT_$LINE"
6777                           else
6778                             no_cache=1
6779                           fi
6780
6781                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6782                         
6783 fi
6784
6785
6786           eval "$ac_cv_use_splitter"
6787           if test "$no_cache" != 1; then
6788             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6789           fi
6790
6791           if test "$wxUSE_SPLITTER" = yes; then
6792             echo "$ac_t""yes" 1>&6
6793           else
6794             echo "$ac_t""no" 1>&6
6795           fi
6796         
6797
6798           enablestring=
6799           echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6800 echo "configure:6801: checking for --${enablestring:-enable}-statbmp" >&5
6801           no_cache=0
6802           # Check whether --enable-statbmp or --disable-statbmp was given.
6803 if test "${enable_statbmp+set}" = set; then
6804   enableval="$enable_statbmp"
6805   
6806                           if test "$enableval" = yes; then
6807                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6808                           else
6809                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6810                           fi
6811                         
6812 else
6813   
6814                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6815                           if test "x$LINE" != x ; then
6816                             eval "DEFAULT_$LINE"
6817                           else
6818                             no_cache=1
6819                           fi
6820
6821                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6822                         
6823 fi
6824
6825
6826           eval "$ac_cv_use_statbmp"
6827           if test "$no_cache" != 1; then
6828             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6829           fi
6830
6831           if test "$wxUSE_STATBMP" = yes; then
6832             echo "$ac_t""yes" 1>&6
6833           else
6834             echo "$ac_t""no" 1>&6
6835           fi
6836         
6837
6838           enablestring=
6839           echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6840 echo "configure:6841: checking for --${enablestring:-enable}-statbox" >&5
6841           no_cache=0
6842           # Check whether --enable-statbox or --disable-statbox was given.
6843 if test "${enable_statbox+set}" = set; then
6844   enableval="$enable_statbox"
6845   
6846                           if test "$enableval" = yes; then
6847                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6848                           else
6849                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6850                           fi
6851                         
6852 else
6853   
6854                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6855                           if test "x$LINE" != x ; then
6856                             eval "DEFAULT_$LINE"
6857                           else
6858                             no_cache=1
6859                           fi
6860
6861                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6862                         
6863 fi
6864
6865
6866           eval "$ac_cv_use_statbox"
6867           if test "$no_cache" != 1; then
6868             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6869           fi
6870
6871           if test "$wxUSE_STATBOX" = yes; then
6872             echo "$ac_t""yes" 1>&6
6873           else
6874             echo "$ac_t""no" 1>&6
6875           fi
6876         
6877
6878           enablestring=
6879           echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6880 echo "configure:6881: checking for --${enablestring:-enable}-statline" >&5
6881           no_cache=0
6882           # Check whether --enable-statline or --disable-statline was given.
6883 if test "${enable_statline+set}" = set; then
6884   enableval="$enable_statline"
6885   
6886                           if test "$enableval" = yes; then
6887                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6888                           else
6889                             ac_cv_use_statline='wxUSE_STATLINE=no'
6890                           fi
6891                         
6892 else
6893   
6894                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6895                           if test "x$LINE" != x ; then
6896                             eval "DEFAULT_$LINE"
6897                           else
6898                             no_cache=1
6899                           fi
6900
6901                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6902                         
6903 fi
6904
6905
6906           eval "$ac_cv_use_statline"
6907           if test "$no_cache" != 1; then
6908             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6909           fi
6910
6911           if test "$wxUSE_STATLINE" = yes; then
6912             echo "$ac_t""yes" 1>&6
6913           else
6914             echo "$ac_t""no" 1>&6
6915           fi
6916         
6917
6918           enablestring=
6919           echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6920 echo "configure:6921: checking for --${enablestring:-enable}-stattext" >&5
6921           no_cache=0
6922           # Check whether --enable-stattext or --disable-stattext was given.
6923 if test "${enable_stattext+set}" = set; then
6924   enableval="$enable_stattext"
6925   
6926                           if test "$enableval" = yes; then
6927                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6928                           else
6929                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
6930                           fi
6931                         
6932 else
6933   
6934                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6935                           if test "x$LINE" != x ; then
6936                             eval "DEFAULT_$LINE"
6937                           else
6938                             no_cache=1
6939                           fi
6940
6941                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6942                         
6943 fi
6944
6945
6946           eval "$ac_cv_use_stattext"
6947           if test "$no_cache" != 1; then
6948             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6949           fi
6950
6951           if test "$wxUSE_STATTEXT" = yes; then
6952             echo "$ac_t""yes" 1>&6
6953           else
6954             echo "$ac_t""no" 1>&6
6955           fi
6956         
6957
6958           enablestring=
6959           echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6960 echo "configure:6961: checking for --${enablestring:-enable}-statusbar" >&5
6961           no_cache=0
6962           # Check whether --enable-statusbar or --disable-statusbar was given.
6963 if test "${enable_statusbar+set}" = set; then
6964   enableval="$enable_statusbar"
6965   
6966                           if test "$enableval" = yes; then
6967                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6968                           else
6969                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6970                           fi
6971                         
6972 else
6973   
6974                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6975                           if test "x$LINE" != x ; then
6976                             eval "DEFAULT_$LINE"
6977                           else
6978                             no_cache=1
6979                           fi
6980
6981                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6982                         
6983 fi
6984
6985
6986           eval "$ac_cv_use_statusbar"
6987           if test "$no_cache" != 1; then
6988             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6989           fi
6990
6991           if test "$wxUSE_STATUSBAR" = yes; then
6992             echo "$ac_t""yes" 1>&6
6993           else
6994             echo "$ac_t""no" 1>&6
6995           fi
6996         
6997
6998           enablestring=
6999           echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7000 echo "configure:7001: checking for --${enablestring:-enable}-tabdialog" >&5
7001           no_cache=0
7002           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7003 if test "${enable_tabdialog+set}" = set; then
7004   enableval="$enable_tabdialog"
7005   
7006                           if test "$enableval" = yes; then
7007                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7008                           else
7009                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7010                           fi
7011                         
7012 else
7013   
7014                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7015                           if test "x$LINE" != x ; then
7016                             eval "DEFAULT_$LINE"
7017                           else
7018                             no_cache=1
7019                           fi
7020
7021                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7022                         
7023 fi
7024
7025
7026           eval "$ac_cv_use_tabdialog"
7027           if test "$no_cache" != 1; then
7028             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7029           fi
7030
7031           if test "$wxUSE_TABDIALOG" = yes; then
7032             echo "$ac_t""yes" 1>&6
7033           else
7034             echo "$ac_t""no" 1>&6
7035           fi
7036         
7037
7038           enablestring=
7039           echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7040 echo "configure:7041: checking for --${enablestring:-enable}-textctrl" >&5
7041           no_cache=0
7042           # Check whether --enable-textctrl or --disable-textctrl was given.
7043 if test "${enable_textctrl+set}" = set; then
7044   enableval="$enable_textctrl"
7045   
7046                           if test "$enableval" = yes; then
7047                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7048                           else
7049                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7050                           fi
7051                         
7052 else
7053   
7054                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7055                           if test "x$LINE" != x ; then
7056                             eval "DEFAULT_$LINE"
7057                           else
7058                             no_cache=1
7059                           fi
7060
7061                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7062                         
7063 fi
7064
7065
7066           eval "$ac_cv_use_textctrl"
7067           if test "$no_cache" != 1; then
7068             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7069           fi
7070
7071           if test "$wxUSE_TEXTCTRL" = yes; then
7072             echo "$ac_t""yes" 1>&6
7073           else
7074             echo "$ac_t""no" 1>&6
7075           fi
7076         
7077
7078           enablestring=
7079           echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7080 echo "configure:7081: checking for --${enablestring:-enable}-togglebtn" >&5
7081           no_cache=0
7082           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7083 if test "${enable_togglebtn+set}" = set; then
7084   enableval="$enable_togglebtn"
7085   
7086                           if test "$enableval" = yes; then
7087                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7088                           else
7089                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7090                           fi
7091                         
7092 else
7093   
7094                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7095                           if test "x$LINE" != x ; then
7096                             eval "DEFAULT_$LINE"
7097                           else
7098                             no_cache=1
7099                           fi
7100
7101                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7102                         
7103 fi
7104
7105
7106           eval "$ac_cv_use_togglebtn"
7107           if test "$no_cache" != 1; then
7108             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7109           fi
7110
7111           if test "$wxUSE_TOGGLEBTN" = yes; then
7112             echo "$ac_t""yes" 1>&6
7113           else
7114             echo "$ac_t""no" 1>&6
7115           fi
7116         
7117
7118           enablestring=
7119           echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7120 echo "configure:7121: checking for --${enablestring:-enable}-toolbar" >&5
7121           no_cache=0
7122           # Check whether --enable-toolbar or --disable-toolbar was given.
7123 if test "${enable_toolbar+set}" = set; then
7124   enableval="$enable_toolbar"
7125   
7126                           if test "$enableval" = yes; then
7127                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7128                           else
7129                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7130                           fi
7131                         
7132 else
7133   
7134                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7135                           if test "x$LINE" != x ; then
7136                             eval "DEFAULT_$LINE"
7137                           else
7138                             no_cache=1
7139                           fi
7140
7141                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7142                         
7143 fi
7144
7145
7146           eval "$ac_cv_use_toolbar"
7147           if test "$no_cache" != 1; then
7148             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7149           fi
7150
7151           if test "$wxUSE_TOOLBAR" = yes; then
7152             echo "$ac_t""yes" 1>&6
7153           else
7154             echo "$ac_t""no" 1>&6
7155           fi
7156         
7157
7158           enablestring=
7159           echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7160 echo "configure:7161: checking for --${enablestring:-enable}-tbarnative" >&5
7161           no_cache=0
7162           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7163 if test "${enable_tbarnative+set}" = set; then
7164   enableval="$enable_tbarnative"
7165   
7166                           if test "$enableval" = yes; then
7167                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7168                           else
7169                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7170                           fi
7171                         
7172 else
7173   
7174                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7175                           if test "x$LINE" != x ; then
7176                             eval "DEFAULT_$LINE"
7177                           else
7178                             no_cache=1
7179                           fi
7180
7181                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7182                         
7183 fi
7184
7185
7186           eval "$ac_cv_use_tbarnative"
7187           if test "$no_cache" != 1; then
7188             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7189           fi
7190
7191           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7192             echo "$ac_t""yes" 1>&6
7193           else
7194             echo "$ac_t""no" 1>&6
7195           fi
7196         
7197
7198           enablestring=
7199           echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7200 echo "configure:7201: checking for --${enablestring:-enable}-tbarsmpl" >&5
7201           no_cache=0
7202           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7203 if test "${enable_tbarsmpl+set}" = set; then
7204   enableval="$enable_tbarsmpl"
7205   
7206                           if test "$enableval" = yes; then
7207                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7208                           else
7209                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7210                           fi
7211                         
7212 else
7213   
7214                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7215                           if test "x$LINE" != x ; then
7216                             eval "DEFAULT_$LINE"
7217                           else
7218                             no_cache=1
7219                           fi
7220
7221                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7222                         
7223 fi
7224
7225
7226           eval "$ac_cv_use_tbarsmpl"
7227           if test "$no_cache" != 1; then
7228             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7229           fi
7230
7231           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7232             echo "$ac_t""yes" 1>&6
7233           else
7234             echo "$ac_t""no" 1>&6
7235           fi
7236         
7237
7238           enablestring=
7239           echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7240 echo "configure:7241: checking for --${enablestring:-enable}-treectrl" >&5
7241           no_cache=0
7242           # Check whether --enable-treectrl or --disable-treectrl was given.
7243 if test "${enable_treectrl+set}" = set; then
7244   enableval="$enable_treectrl"
7245   
7246                           if test "$enableval" = yes; then
7247                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7248                           else
7249                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7250                           fi
7251                         
7252 else
7253   
7254                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7255                           if test "x$LINE" != x ; then
7256                             eval "DEFAULT_$LINE"
7257                           else
7258                             no_cache=1
7259                           fi
7260
7261                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7262                         
7263 fi
7264
7265
7266           eval "$ac_cv_use_treectrl"
7267           if test "$no_cache" != 1; then
7268             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7269           fi
7270
7271           if test "$wxUSE_TREECTRL" = yes; then
7272             echo "$ac_t""yes" 1>&6
7273           else
7274             echo "$ac_t""no" 1>&6
7275           fi
7276         
7277
7278           enablestring=
7279           echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7280 echo "configure:7281: checking for --${enablestring:-enable}-tipwindow" >&5
7281           no_cache=0
7282           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7283 if test "${enable_tipwindow+set}" = set; then
7284   enableval="$enable_tipwindow"
7285   
7286                           if test "$enableval" = yes; then
7287                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7288                           else
7289                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7290                           fi
7291                         
7292 else
7293   
7294                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7295                           if test "x$LINE" != x ; then
7296                             eval "DEFAULT_$LINE"
7297                           else
7298                             no_cache=1
7299                           fi
7300
7301                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7302                         
7303 fi
7304
7305
7306           eval "$ac_cv_use_tipwindow"
7307           if test "$no_cache" != 1; then
7308             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7309           fi
7310
7311           if test "$wxUSE_TIPWINDOW" = yes; then
7312             echo "$ac_t""yes" 1>&6
7313           else
7314             echo "$ac_t""no" 1>&6
7315           fi
7316         
7317
7318           enablestring=
7319           echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7320 echo "configure:7321: checking for --${enablestring:-enable}-popupwin" >&5
7321           no_cache=0
7322           # Check whether --enable-popupwin or --disable-popupwin was given.
7323 if test "${enable_popupwin+set}" = set; then
7324   enableval="$enable_popupwin"
7325   
7326                           if test "$enableval" = yes; then
7327                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7328                           else
7329                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7330                           fi
7331                         
7332 else
7333   
7334                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7335                           if test "x$LINE" != x ; then
7336                             eval "DEFAULT_$LINE"
7337                           else
7338                             no_cache=1
7339                           fi
7340
7341                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7342                         
7343 fi
7344
7345
7346           eval "$ac_cv_use_popupwin"
7347           if test "$no_cache" != 1; then
7348             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7349           fi
7350
7351           if test "$wxUSE_POPUPWIN" = yes; then
7352             echo "$ac_t""yes" 1>&6
7353           else
7354             echo "$ac_t""no" 1>&6
7355           fi
7356         
7357
7358
7359
7360           enablestring=
7361           echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7362 echo "configure:7363: checking for --${enablestring:-enable}-commondlg" >&5
7363           no_cache=0
7364           # Check whether --enable-commondlg or --disable-commondlg was given.
7365 if test "${enable_commondlg+set}" = set; then
7366   enableval="$enable_commondlg"
7367   
7368                           if test "$enableval" = yes; then
7369                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7370                           else
7371                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7372                           fi
7373                         
7374 else
7375   
7376                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7377                           if test "x$LINE" != x ; then
7378                             eval "DEFAULT_$LINE"
7379                           else
7380                             no_cache=1
7381                           fi
7382
7383                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7384                         
7385 fi
7386
7387
7388           eval "$ac_cv_use_commondlg"
7389           if test "$no_cache" != 1; then
7390             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7391           fi
7392
7393           if test "$wxUSE_COMMONDLGS" = yes; then
7394             echo "$ac_t""yes" 1>&6
7395           else
7396             echo "$ac_t""no" 1>&6
7397           fi
7398         
7399
7400           enablestring=
7401           echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7402 echo "configure:7403: checking for --${enablestring:-enable}-choicedlg" >&5
7403           no_cache=0
7404           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7405 if test "${enable_choicedlg+set}" = set; then
7406   enableval="$enable_choicedlg"
7407   
7408                           if test "$enableval" = yes; then
7409                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7410                           else
7411                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7412                           fi
7413                         
7414 else
7415   
7416                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7417                           if test "x$LINE" != x ; then
7418                             eval "DEFAULT_$LINE"
7419                           else
7420                             no_cache=1
7421                           fi
7422
7423                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7424                         
7425 fi
7426
7427
7428           eval "$ac_cv_use_choicedlg"
7429           if test "$no_cache" != 1; then
7430             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7431           fi
7432
7433           if test "$wxUSE_CHOICEDLG" = yes; then
7434             echo "$ac_t""yes" 1>&6
7435           else
7436             echo "$ac_t""no" 1>&6
7437           fi
7438         
7439
7440           enablestring=
7441           echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7442 echo "configure:7443: checking for --${enablestring:-enable}-coldlg" >&5
7443           no_cache=0
7444           # Check whether --enable-coldlg or --disable-coldlg was given.
7445 if test "${enable_coldlg+set}" = set; then
7446   enableval="$enable_coldlg"
7447   
7448                           if test "$enableval" = yes; then
7449                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7450                           else
7451                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7452                           fi
7453                         
7454 else
7455   
7456                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7457                           if test "x$LINE" != x ; then
7458                             eval "DEFAULT_$LINE"
7459                           else
7460                             no_cache=1
7461                           fi
7462
7463                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7464                         
7465 fi
7466
7467
7468           eval "$ac_cv_use_coldlg"
7469           if test "$no_cache" != 1; then
7470             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7471           fi
7472
7473           if test "$wxUSE_COLOURDLG" = yes; then
7474             echo "$ac_t""yes" 1>&6
7475           else
7476             echo "$ac_t""no" 1>&6
7477           fi
7478         
7479
7480           enablestring=
7481           echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7482 echo "configure:7483: checking for --${enablestring:-enable}-filedlg" >&5
7483           no_cache=0
7484           # Check whether --enable-filedlg or --disable-filedlg was given.
7485 if test "${enable_filedlg+set}" = set; then
7486   enableval="$enable_filedlg"
7487   
7488                           if test "$enableval" = yes; then
7489                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7490                           else
7491                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7492                           fi
7493                         
7494 else
7495   
7496                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7497                           if test "x$LINE" != x ; then
7498                             eval "DEFAULT_$LINE"
7499                           else
7500                             no_cache=1
7501                           fi
7502
7503                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7504                         
7505 fi
7506
7507
7508           eval "$ac_cv_use_filedlg"
7509           if test "$no_cache" != 1; then
7510             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7511           fi
7512
7513           if test "$wxUSE_FILEDLG" = yes; then
7514             echo "$ac_t""yes" 1>&6
7515           else
7516             echo "$ac_t""no" 1>&6
7517           fi
7518         
7519
7520           enablestring=
7521           echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7522 echo "configure:7523: checking for --${enablestring:-enable}-finddlg" >&5
7523           no_cache=0
7524           # Check whether --enable-finddlg or --disable-finddlg was given.
7525 if test "${enable_finddlg+set}" = set; then
7526   enableval="$enable_finddlg"
7527   
7528                           if test "$enableval" = yes; then
7529                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7530                           else
7531                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7532                           fi
7533                         
7534 else
7535   
7536                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7537                           if test "x$LINE" != x ; then
7538                             eval "DEFAULT_$LINE"
7539                           else
7540                             no_cache=1
7541                           fi
7542
7543                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7544                         
7545 fi
7546
7547
7548           eval "$ac_cv_use_finddlg"
7549           if test "$no_cache" != 1; then
7550             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7551           fi
7552
7553           if test "$wxUSE_FINDREPLDLG" = yes; then
7554             echo "$ac_t""yes" 1>&6
7555           else
7556             echo "$ac_t""no" 1>&6
7557           fi
7558         
7559
7560           enablestring=
7561           echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7562 echo "configure:7563: checking for --${enablestring:-enable}-fontdlg" >&5
7563           no_cache=0
7564           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7565 if test "${enable_fontdlg+set}" = set; then
7566   enableval="$enable_fontdlg"
7567   
7568                           if test "$enableval" = yes; then
7569                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7570                           else
7571                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7572                           fi
7573                         
7574 else
7575   
7576                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7577                           if test "x$LINE" != x ; then
7578                             eval "DEFAULT_$LINE"
7579                           else
7580                             no_cache=1
7581                           fi
7582
7583                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7584                         
7585 fi
7586
7587
7588           eval "$ac_cv_use_fontdlg"
7589           if test "$no_cache" != 1; then
7590             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7591           fi
7592
7593           if test "$wxUSE_FONTDLG" = yes; then
7594             echo "$ac_t""yes" 1>&6
7595           else
7596             echo "$ac_t""no" 1>&6
7597           fi
7598         
7599
7600           enablestring=
7601           echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7602 echo "configure:7603: checking for --${enablestring:-enable}-dirdlg" >&5
7603           no_cache=0
7604           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7605 if test "${enable_dirdlg+set}" = set; then
7606   enableval="$enable_dirdlg"
7607   
7608                           if test "$enableval" = yes; then
7609                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7610                           else
7611                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7612                           fi
7613                         
7614 else
7615   
7616                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7617                           if test "x$LINE" != x ; then
7618                             eval "DEFAULT_$LINE"
7619                           else
7620                             no_cache=1
7621                           fi
7622
7623                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7624                         
7625 fi
7626
7627
7628           eval "$ac_cv_use_dirdlg"
7629           if test "$no_cache" != 1; then
7630             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7631           fi
7632
7633           if test "$wxUSE_DIRDLG" = yes; then
7634             echo "$ac_t""yes" 1>&6
7635           else
7636             echo "$ac_t""no" 1>&6
7637           fi
7638         
7639
7640           enablestring=
7641           echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7642 echo "configure:7643: checking for --${enablestring:-enable}-msgdlg" >&5
7643           no_cache=0
7644           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7645 if test "${enable_msgdlg+set}" = set; then
7646   enableval="$enable_msgdlg"
7647   
7648                           if test "$enableval" = yes; then
7649                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7650                           else
7651                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7652                           fi
7653                         
7654 else
7655   
7656                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7657                           if test "x$LINE" != x ; then
7658                             eval "DEFAULT_$LINE"
7659                           else
7660                             no_cache=1
7661                           fi
7662
7663                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7664                         
7665 fi
7666
7667
7668           eval "$ac_cv_use_msgdlg"
7669           if test "$no_cache" != 1; then
7670             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7671           fi
7672
7673           if test "$wxUSE_MSGDLG" = yes; then
7674             echo "$ac_t""yes" 1>&6
7675           else
7676             echo "$ac_t""no" 1>&6
7677           fi
7678         
7679
7680           enablestring=
7681           echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7682 echo "configure:7683: checking for --${enablestring:-enable}-numberdlg" >&5
7683           no_cache=0
7684           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7685 if test "${enable_numberdlg+set}" = set; then
7686   enableval="$enable_numberdlg"
7687   
7688                           if test "$enableval" = yes; then
7689                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7690                           else
7691                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7692                           fi
7693                         
7694 else
7695   
7696                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7697                           if test "x$LINE" != x ; then
7698                             eval "DEFAULT_$LINE"
7699                           else
7700                             no_cache=1
7701                           fi
7702
7703                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7704                         
7705 fi
7706
7707
7708           eval "$ac_cv_use_numberdlg"
7709           if test "$no_cache" != 1; then
7710             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7711           fi
7712
7713           if test "$wxUSE_NUMBERDLG" = yes; then
7714             echo "$ac_t""yes" 1>&6
7715           else
7716             echo "$ac_t""no" 1>&6
7717           fi
7718         
7719
7720           enablestring=
7721           echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7722 echo "configure:7723: checking for --${enablestring:-enable}-splash" >&5
7723           no_cache=0
7724           # Check whether --enable-splash or --disable-splash was given.
7725 if test "${enable_splash+set}" = set; then
7726   enableval="$enable_splash"
7727   
7728                           if test "$enableval" = yes; then
7729                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7730                           else
7731                             ac_cv_use_splash='wxUSE_SPLASH=no'
7732                           fi
7733                         
7734 else
7735   
7736                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7737                           if test "x$LINE" != x ; then
7738                             eval "DEFAULT_$LINE"
7739                           else
7740                             no_cache=1
7741                           fi
7742
7743                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7744                         
7745 fi
7746
7747
7748           eval "$ac_cv_use_splash"
7749           if test "$no_cache" != 1; then
7750             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7751           fi
7752
7753           if test "$wxUSE_SPLASH" = yes; then
7754             echo "$ac_t""yes" 1>&6
7755           else
7756             echo "$ac_t""no" 1>&6
7757           fi
7758         
7759
7760           enablestring=
7761           echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7762 echo "configure:7763: checking for --${enablestring:-enable}-textdlg" >&5
7763           no_cache=0
7764           # Check whether --enable-textdlg or --disable-textdlg was given.
7765 if test "${enable_textdlg+set}" = set; then
7766   enableval="$enable_textdlg"
7767   
7768                           if test "$enableval" = yes; then
7769                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7770                           else
7771                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7772                           fi
7773                         
7774 else
7775   
7776                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7777                           if test "x$LINE" != x ; then
7778                             eval "DEFAULT_$LINE"
7779                           else
7780                             no_cache=1
7781                           fi
7782
7783                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7784                         
7785 fi
7786
7787
7788           eval "$ac_cv_use_textdlg"
7789           if test "$no_cache" != 1; then
7790             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7791           fi
7792
7793           if test "$wxUSE_TEXTDLG" = yes; then
7794             echo "$ac_t""yes" 1>&6
7795           else
7796             echo "$ac_t""no" 1>&6
7797           fi
7798         
7799
7800           enablestring=
7801           echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7802 echo "configure:7803: checking for --${enablestring:-enable}-tipdlg" >&5
7803           no_cache=0
7804           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7805 if test "${enable_tipdlg+set}" = set; then
7806   enableval="$enable_tipdlg"
7807   
7808                           if test "$enableval" = yes; then
7809                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7810                           else
7811                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7812                           fi
7813                         
7814 else
7815   
7816                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7817                           if test "x$LINE" != x ; then
7818                             eval "DEFAULT_$LINE"
7819                           else
7820                             no_cache=1
7821                           fi
7822
7823                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7824                         
7825 fi
7826
7827
7828           eval "$ac_cv_use_tipdlg"
7829           if test "$no_cache" != 1; then
7830             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7831           fi
7832
7833           if test "$wxUSE_STARTUP_TIPS" = yes; then
7834             echo "$ac_t""yes" 1>&6
7835           else
7836             echo "$ac_t""no" 1>&6
7837           fi
7838         
7839
7840           enablestring=
7841           echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7842 echo "configure:7843: checking for --${enablestring:-enable}-progressdlg" >&5
7843           no_cache=0
7844           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7845 if test "${enable_progressdlg+set}" = set; then
7846   enableval="$enable_progressdlg"
7847   
7848                           if test "$enableval" = yes; then
7849                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7850                           else
7851                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7852                           fi
7853                         
7854 else
7855   
7856                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7857                           if test "x$LINE" != x ; then
7858                             eval "DEFAULT_$LINE"
7859                           else
7860                             no_cache=1
7861                           fi
7862
7863                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7864                         
7865 fi
7866
7867
7868           eval "$ac_cv_use_progressdlg"
7869           if test "$no_cache" != 1; then
7870             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7871           fi
7872
7873           if test "$wxUSE_PROGRESSDLG" = yes; then
7874             echo "$ac_t""yes" 1>&6
7875           else
7876             echo "$ac_t""no" 1>&6
7877           fi
7878         
7879
7880           enablestring=
7881           echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7882 echo "configure:7883: checking for --${enablestring:-enable}-wizarddlg" >&5
7883           no_cache=0
7884           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7885 if test "${enable_wizarddlg+set}" = set; then
7886   enableval="$enable_wizarddlg"
7887   
7888                           if test "$enableval" = yes; then
7889                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7890                           else
7891                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7892                           fi
7893                         
7894 else
7895   
7896                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7897                           if test "x$LINE" != x ; then
7898                             eval "DEFAULT_$LINE"
7899                           else
7900                             no_cache=1
7901                           fi
7902
7903                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7904                         
7905 fi
7906
7907
7908           eval "$ac_cv_use_wizarddlg"
7909           if test "$no_cache" != 1; then
7910             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7911           fi
7912
7913           if test "$wxUSE_WIZARDDLG" = yes; then
7914             echo "$ac_t""yes" 1>&6
7915           else
7916             echo "$ac_t""no" 1>&6
7917           fi
7918         
7919
7920
7921
7922           enablestring=
7923           echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7924 echo "configure:7925: checking for --${enablestring:-enable}-menus" >&5
7925           no_cache=0
7926           # Check whether --enable-menus or --disable-menus was given.
7927 if test "${enable_menus+set}" = set; then
7928   enableval="$enable_menus"
7929   
7930                           if test "$enableval" = yes; then
7931                             ac_cv_use_menus='wxUSE_MENUS=yes'
7932                           else
7933                             ac_cv_use_menus='wxUSE_MENUS=no'
7934                           fi
7935                         
7936 else
7937   
7938                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7939                           if test "x$LINE" != x ; then
7940                             eval "DEFAULT_$LINE"
7941                           else
7942                             no_cache=1
7943                           fi
7944
7945                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7946                         
7947 fi
7948
7949
7950           eval "$ac_cv_use_menus"
7951           if test "$no_cache" != 1; then
7952             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7953           fi
7954
7955           if test "$wxUSE_MENUS" = yes; then
7956             echo "$ac_t""yes" 1>&6
7957           else
7958             echo "$ac_t""no" 1>&6
7959           fi
7960         
7961
7962           enablestring=
7963           echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7964 echo "configure:7965: checking for --${enablestring:-enable}-miniframe" >&5
7965           no_cache=0
7966           # Check whether --enable-miniframe or --disable-miniframe was given.
7967 if test "${enable_miniframe+set}" = set; then
7968   enableval="$enable_miniframe"
7969   
7970                           if test "$enableval" = yes; then
7971                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7972                           else
7973                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7974                           fi
7975                         
7976 else
7977   
7978                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7979                           if test "x$LINE" != x ; then
7980                             eval "DEFAULT_$LINE"
7981                           else
7982                             no_cache=1
7983                           fi
7984
7985                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7986                         
7987 fi
7988
7989
7990           eval "$ac_cv_use_miniframe"
7991           if test "$no_cache" != 1; then
7992             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7993           fi
7994
7995           if test "$wxUSE_MINIFRAME" = yes; then
7996             echo "$ac_t""yes" 1>&6
7997           else
7998             echo "$ac_t""no" 1>&6
7999           fi
8000         
8001
8002           enablestring=
8003           echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8004 echo "configure:8005: checking for --${enablestring:-enable}-tooltips" >&5
8005           no_cache=0
8006           # Check whether --enable-tooltips or --disable-tooltips was given.
8007 if test "${enable_tooltips+set}" = set; then
8008   enableval="$enable_tooltips"
8009   
8010                           if test "$enableval" = yes; then
8011                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8012                           else
8013                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8014                           fi
8015                         
8016 else
8017   
8018                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8019                           if test "x$LINE" != x ; then
8020                             eval "DEFAULT_$LINE"
8021                           else
8022                             no_cache=1
8023                           fi
8024
8025                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8026                         
8027 fi
8028
8029
8030           eval "$ac_cv_use_tooltips"
8031           if test "$no_cache" != 1; then
8032             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8033           fi
8034
8035           if test "$wxUSE_TOOLTIPS" = yes; then
8036             echo "$ac_t""yes" 1>&6
8037           else
8038             echo "$ac_t""no" 1>&6
8039           fi
8040         
8041
8042           enablestring=
8043           echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8044 echo "configure:8045: checking for --${enablestring:-enable}-splines" >&5
8045           no_cache=0
8046           # Check whether --enable-splines or --disable-splines was given.
8047 if test "${enable_splines+set}" = set; then
8048   enableval="$enable_splines"
8049   
8050                           if test "$enableval" = yes; then
8051                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8052                           else
8053                             ac_cv_use_splines='wxUSE_SPLINES=no'
8054                           fi
8055                         
8056 else
8057   
8058                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8059                           if test "x$LINE" != x ; then
8060                             eval "DEFAULT_$LINE"
8061                           else
8062                             no_cache=1
8063                           fi
8064
8065                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8066                         
8067 fi
8068
8069
8070           eval "$ac_cv_use_splines"
8071           if test "$no_cache" != 1; then
8072             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8073           fi
8074
8075           if test "$wxUSE_SPLINES" = yes; then
8076             echo "$ac_t""yes" 1>&6
8077           else
8078             echo "$ac_t""no" 1>&6
8079           fi
8080         
8081
8082           enablestring=
8083           echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8084 echo "configure:8085: checking for --${enablestring:-enable}-validators" >&5
8085           no_cache=0
8086           # Check whether --enable-validators or --disable-validators was given.
8087 if test "${enable_validators+set}" = set; then
8088   enableval="$enable_validators"
8089   
8090                           if test "$enableval" = yes; then
8091                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8092                           else
8093                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8094                           fi
8095                         
8096 else
8097   
8098                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8099                           if test "x$LINE" != x ; then
8100                             eval "DEFAULT_$LINE"
8101                           else
8102                             no_cache=1
8103                           fi
8104
8105                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8106                         
8107 fi
8108
8109
8110           eval "$ac_cv_use_validators"
8111           if test "$no_cache" != 1; then
8112             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8113           fi
8114
8115           if test "$wxUSE_VALIDATORS" = yes; then
8116             echo "$ac_t""yes" 1>&6
8117           else
8118             echo "$ac_t""no" 1>&6
8119           fi
8120         
8121
8122           enablestring=
8123           echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8124 echo "configure:8125: checking for --${enablestring:-enable}-busyinfo" >&5
8125           no_cache=0
8126           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8127 if test "${enable_busyinfo+set}" = set; then
8128   enableval="$enable_busyinfo"
8129   
8130                           if test "$enableval" = yes; then
8131                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8132                           else
8133                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8134                           fi
8135                         
8136 else
8137   
8138                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8139                           if test "x$LINE" != x ; then
8140                             eval "DEFAULT_$LINE"
8141                           else
8142                             no_cache=1
8143                           fi
8144
8145                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8146                         
8147 fi
8148
8149
8150           eval "$ac_cv_use_busyinfo"
8151           if test "$no_cache" != 1; then
8152             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8153           fi
8154
8155           if test "$wxUSE_BUSYINFO" = yes; then
8156             echo "$ac_t""yes" 1>&6
8157           else
8158             echo "$ac_t""no" 1>&6
8159           fi
8160         
8161
8162           enablestring=
8163           echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8164 echo "configure:8165: checking for --${enablestring:-enable}-joystick" >&5
8165           no_cache=0
8166           # Check whether --enable-joystick or --disable-joystick was given.
8167 if test "${enable_joystick+set}" = set; then
8168   enableval="$enable_joystick"
8169   
8170                           if test "$enableval" = yes; then
8171                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8172                           else
8173                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8174                           fi
8175                         
8176 else
8177   
8178                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8179                           if test "x$LINE" != x ; then
8180                             eval "DEFAULT_$LINE"
8181                           else
8182                             no_cache=1
8183                           fi
8184
8185                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8186                         
8187 fi
8188
8189
8190           eval "$ac_cv_use_joystick"
8191           if test "$no_cache" != 1; then
8192             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8193           fi
8194
8195           if test "$wxUSE_JOYSTICK" = yes; then
8196             echo "$ac_t""yes" 1>&6
8197           else
8198             echo "$ac_t""no" 1>&6
8199           fi
8200         
8201
8202           enablestring=
8203           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8204 echo "configure:8205: checking for --${enablestring:-enable}-metafile" >&5
8205           no_cache=0
8206           # Check whether --enable-metafile or --disable-metafile was given.
8207 if test "${enable_metafile+set}" = set; then
8208   enableval="$enable_metafile"
8209   
8210                           if test "$enableval" = yes; then
8211                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8212                           else
8213                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8214                           fi
8215                         
8216 else
8217   
8218                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8219                           if test "x$LINE" != x ; then
8220                             eval "DEFAULT_$LINE"
8221                           else
8222                             no_cache=1
8223                           fi
8224
8225                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8226                         
8227 fi
8228
8229
8230           eval "$ac_cv_use_metafile"
8231           if test "$no_cache" != 1; then
8232             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8233           fi
8234
8235           if test "$wxUSE_METAFILE" = yes; then
8236             echo "$ac_t""yes" 1>&6
8237           else
8238             echo "$ac_t""no" 1>&6
8239           fi
8240         
8241
8242           enablestring=
8243           echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8244 echo "configure:8245: checking for --${enablestring:-enable}-dragimage" >&5
8245           no_cache=0
8246           # Check whether --enable-dragimage or --disable-dragimage was given.
8247 if test "${enable_dragimage+set}" = set; then
8248   enableval="$enable_dragimage"
8249   
8250                           if test "$enableval" = yes; then
8251                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8252                           else
8253                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8254                           fi
8255                         
8256 else
8257   
8258                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8259                           if test "x$LINE" != x ; then
8260                             eval "DEFAULT_$LINE"
8261                           else
8262                             no_cache=1
8263                           fi
8264
8265                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8266                         
8267 fi
8268
8269
8270           eval "$ac_cv_use_dragimage"
8271           if test "$no_cache" != 1; then
8272             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8273           fi
8274
8275           if test "$wxUSE_DRAGIMAGE" = yes; then
8276             echo "$ac_t""yes" 1>&6
8277           else
8278             echo "$ac_t""no" 1>&6
8279           fi
8280         
8281
8282
8283
8284           enablestring=
8285           echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8286 echo "configure:8287: checking for --${enablestring:-enable}-palette" >&5
8287           no_cache=0
8288           # Check whether --enable-palette or --disable-palette was given.
8289 if test "${enable_palette+set}" = set; then
8290   enableval="$enable_palette"
8291   
8292                           if test "$enableval" = yes; then
8293                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8294                           else
8295                             ac_cv_use_palette='wxUSE_PALETTE=no'
8296                           fi
8297                         
8298 else
8299   
8300                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8301                           if test "x$LINE" != x ; then
8302                             eval "DEFAULT_$LINE"
8303                           else
8304                             no_cache=1
8305                           fi
8306
8307                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8308                         
8309 fi
8310
8311
8312           eval "$ac_cv_use_palette"
8313           if test "$no_cache" != 1; then
8314             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8315           fi
8316
8317           if test "$wxUSE_PALETTE" = yes; then
8318             echo "$ac_t""yes" 1>&6
8319           else
8320             echo "$ac_t""no" 1>&6
8321           fi
8322         
8323
8324           enablestring=
8325           echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8326 echo "configure:8327: checking for --${enablestring:-enable}-image" >&5
8327           no_cache=0
8328           # Check whether --enable-image or --disable-image was given.
8329 if test "${enable_image+set}" = set; then
8330   enableval="$enable_image"
8331   
8332                           if test "$enableval" = yes; then
8333                             ac_cv_use_image='wxUSE_IMAGE=yes'
8334                           else
8335                             ac_cv_use_image='wxUSE_IMAGE=no'
8336                           fi
8337                         
8338 else
8339   
8340                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8341                           if test "x$LINE" != x ; then
8342                             eval "DEFAULT_$LINE"
8343                           else
8344                             no_cache=1
8345                           fi
8346
8347                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8348                         
8349 fi
8350
8351
8352           eval "$ac_cv_use_image"
8353           if test "$no_cache" != 1; then
8354             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8355           fi
8356
8357           if test "$wxUSE_IMAGE" = yes; then
8358             echo "$ac_t""yes" 1>&6
8359           else
8360             echo "$ac_t""no" 1>&6
8361           fi
8362         
8363
8364           enablestring=
8365           echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8366 echo "configure:8367: checking for --${enablestring:-enable}-gif" >&5
8367           no_cache=0
8368           # Check whether --enable-gif or --disable-gif was given.
8369 if test "${enable_gif+set}" = set; then
8370   enableval="$enable_gif"
8371   
8372                           if test "$enableval" = yes; then
8373                             ac_cv_use_gif='wxUSE_GIF=yes'
8374                           else
8375                             ac_cv_use_gif='wxUSE_GIF=no'
8376                           fi
8377                         
8378 else
8379   
8380                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8381                           if test "x$LINE" != x ; then
8382                             eval "DEFAULT_$LINE"
8383                           else
8384                             no_cache=1
8385                           fi
8386
8387                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8388                         
8389 fi
8390
8391
8392           eval "$ac_cv_use_gif"
8393           if test "$no_cache" != 1; then
8394             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8395           fi
8396
8397           if test "$wxUSE_GIF" = yes; then
8398             echo "$ac_t""yes" 1>&6
8399           else
8400             echo "$ac_t""no" 1>&6
8401           fi
8402         
8403
8404           enablestring=
8405           echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8406 echo "configure:8407: checking for --${enablestring:-enable}-pcx" >&5
8407           no_cache=0
8408           # Check whether --enable-pcx or --disable-pcx was given.
8409 if test "${enable_pcx+set}" = set; then
8410   enableval="$enable_pcx"
8411   
8412                           if test "$enableval" = yes; then
8413                             ac_cv_use_pcx='wxUSE_PCX=yes'
8414                           else
8415                             ac_cv_use_pcx='wxUSE_PCX=no'
8416                           fi
8417                         
8418 else
8419   
8420                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8421                           if test "x$LINE" != x ; then
8422                             eval "DEFAULT_$LINE"
8423                           else
8424                             no_cache=1
8425                           fi
8426
8427                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8428                         
8429 fi
8430
8431
8432           eval "$ac_cv_use_pcx"
8433           if test "$no_cache" != 1; then
8434             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8435           fi
8436
8437           if test "$wxUSE_PCX" = yes; then
8438             echo "$ac_t""yes" 1>&6
8439           else
8440             echo "$ac_t""no" 1>&6
8441           fi
8442         
8443
8444           enablestring=
8445           echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8446 echo "configure:8447: checking for --${enablestring:-enable}-iff" >&5
8447           no_cache=0
8448           # Check whether --enable-iff or --disable-iff was given.
8449 if test "${enable_iff+set}" = set; then
8450   enableval="$enable_iff"
8451   
8452                           if test "$enableval" = yes; then
8453                             ac_cv_use_iff='wxUSE_IFF=yes'
8454                           else
8455                             ac_cv_use_iff='wxUSE_IFF=no'
8456                           fi
8457                         
8458 else
8459   
8460                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8461                           if test "x$LINE" != x ; then
8462                             eval "DEFAULT_$LINE"
8463                           else
8464                             no_cache=1
8465                           fi
8466
8467                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8468                         
8469 fi
8470
8471
8472           eval "$ac_cv_use_iff"
8473           if test "$no_cache" != 1; then
8474             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8475           fi
8476
8477           if test "$wxUSE_IFF" = yes; then
8478             echo "$ac_t""yes" 1>&6
8479           else
8480             echo "$ac_t""no" 1>&6
8481           fi
8482         
8483
8484           enablestring=
8485           echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8486 echo "configure:8487: checking for --${enablestring:-enable}-pnm" >&5
8487           no_cache=0
8488           # Check whether --enable-pnm or --disable-pnm was given.
8489 if test "${enable_pnm+set}" = set; then
8490   enableval="$enable_pnm"
8491   
8492                           if test "$enableval" = yes; then
8493                             ac_cv_use_pnm='wxUSE_PNM=yes'
8494                           else
8495                             ac_cv_use_pnm='wxUSE_PNM=no'
8496                           fi
8497                         
8498 else
8499   
8500                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8501                           if test "x$LINE" != x ; then
8502                             eval "DEFAULT_$LINE"
8503                           else
8504                             no_cache=1
8505                           fi
8506
8507                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8508                         
8509 fi
8510
8511
8512           eval "$ac_cv_use_pnm"
8513           if test "$no_cache" != 1; then
8514             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8515           fi
8516
8517           if test "$wxUSE_PNM" = yes; then
8518             echo "$ac_t""yes" 1>&6
8519           else
8520             echo "$ac_t""no" 1>&6
8521           fi
8522         
8523
8524           enablestring=
8525           echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8526 echo "configure:8527: checking for --${enablestring:-enable}-xpm" >&5
8527           no_cache=0
8528           # Check whether --enable-xpm or --disable-xpm was given.
8529 if test "${enable_xpm+set}" = set; then
8530   enableval="$enable_xpm"
8531   
8532                           if test "$enableval" = yes; then
8533                             ac_cv_use_xpm='wxUSE_XPM=yes'
8534                           else
8535                             ac_cv_use_xpm='wxUSE_XPM=no'
8536                           fi
8537                         
8538 else
8539   
8540                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8541                           if test "x$LINE" != x ; then
8542                             eval "DEFAULT_$LINE"
8543                           else
8544                             no_cache=1
8545                           fi
8546
8547                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8548                         
8549 fi
8550
8551
8552           eval "$ac_cv_use_xpm"
8553           if test "$no_cache" != 1; then
8554             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8555           fi
8556
8557           if test "$wxUSE_XPM" = yes; then
8558             echo "$ac_t""yes" 1>&6
8559           else
8560             echo "$ac_t""no" 1>&6
8561           fi
8562         
8563
8564           enablestring=
8565           echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8566 echo "configure:8567: checking for --${enablestring:-enable}-ico_cur" >&5
8567           no_cache=0
8568           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8569 if test "${enable_ico_cur+set}" = set; then
8570   enableval="$enable_ico_cur"
8571   
8572                           if test "$enableval" = yes; then
8573                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8574                           else
8575                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8576                           fi
8577                         
8578 else
8579   
8580                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8581                           if test "x$LINE" != x ; then
8582                             eval "DEFAULT_$LINE"
8583                           else
8584                             no_cache=1
8585                           fi
8586
8587                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8588                         
8589 fi
8590
8591
8592           eval "$ac_cv_use_ico_cur"
8593           if test "$no_cache" != 1; then
8594             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8595           fi
8596
8597           if test "$wxUSE_ICO_CUR" = yes; then
8598             echo "$ac_t""yes" 1>&6
8599           else
8600             echo "$ac_t""no" 1>&6
8601           fi
8602         
8603
8604 fi
8605
8606 case "${host}" in
8607   *-pc-os2_emx | *-pc-os2-emx )
8608     PATH_IFS=';'
8609     LEX_STEM="lexyy"
8610   ;;
8611   *)
8612     PATH_IFS=':'
8613     LEX_STEM="lex.yy"
8614   ;;
8615 esac
8616
8617
8618
8619           echo "saving argument cache $wx_arg_cache_file"
8620           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8621         
8622
8623
8624 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8625 echo "configure:8626: checking for toolkit" >&5
8626
8627 # In Wine, we need to default to MSW, not GTK or MOTIF
8628 if test "$wxUSE_WINE" = "yes"; then
8629     DEFAULT_DEFAULT_wxUSE_GTK=0
8630     DEFAULT_DEFAULT_wxUSE_MOTIF=0
8631     DEFAULT_DEFAULT_wxUSE_MSW=1
8632 fi
8633
8634 if test "$wxUSE_GUI" = "yes"; then
8635
8636     if test "$USE_BEOS" = 1; then
8637         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8638     fi
8639
8640     if test "$TOOLKIT_GIVEN" = 1; then
8641             for toolkit in `echo $ALL_TOOLKITS`; do
8642         var=wxUSE_$toolkit
8643         eval "value=\$${var}"
8644         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8645       done
8646     else
8647             for toolkit in `echo $ALL_TOOLKITS`; do
8648         if test "$has_toolkit_in_cache" != 1; then
8649           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8650         else
8651           var=DEFAULT_wxUSE_$toolkit
8652         fi
8653         eval "wxUSE_$toolkit=\$${var}"
8654       done
8655     fi
8656
8657             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8658                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8659                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8660
8661         case "${host}" in
8662       *-pc-os2_emx | *-pc-os2-emx )
8663         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8664     esac
8665
8666     case "$NUM_TOOLKITS" in
8667       1)
8668       ;;
8669       0)
8670         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8671       ;;
8672       *)
8673         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8674     esac
8675
8676         for toolkit in `echo $ALL_TOOLKITS`; do
8677       var=wxUSE_$toolkit
8678       eval "value=\$${var}"
8679       if test "x$value" != x; then
8680         cache_var=CACHE_$toolkit
8681         eval "cache=\$${cache_var}"
8682         if test "$cache" = 1; then
8683           echo "$var=$value" >> ${wx_arg_cache_file}
8684         fi
8685         if test "$value" = 1; then
8686           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8687           echo "$ac_t""$toolkit_echo" 1>&6
8688         fi
8689       fi
8690     done
8691 else
8692     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8693 fi
8694
8695 wants_win32=0
8696 doesnt_want_win32=0
8697 case "${host}" in
8698   *-*-cygwin*)
8699       if test "$wxUSE_MSW" = 1 ; then
8700         wants_win32=1
8701       else
8702         doesnt_want_win32=1
8703       fi
8704   ;;
8705   *-*-mingw*)
8706       wants_win32=1
8707   ;;
8708 esac
8709
8710 if test "$wxUSE_WINE" = "yes"; then
8711     wants_win32=1
8712         CC=winegcc
8713     CXX=wineg++
8714     RESCOMP=wrc
8715 fi
8716
8717 if test "$wants_win32" = 1 ; then
8718     USE_UNIX=0
8719     USE_WIN32=1
8720     cat >> confdefs.h <<\EOF
8721 #define __WIN32__ 1
8722 EOF
8723
8724     cat >> confdefs.h <<\EOF
8725 #define __WIN95__ 1
8726 EOF
8727
8728     cat >> confdefs.h <<\EOF
8729 #define __WINDOWS__ 1
8730 EOF
8731
8732     cat >> confdefs.h <<\EOF
8733 #define __GNUWIN32__ 1
8734 EOF
8735
8736     cat >> confdefs.h <<\EOF
8737 #define STRICT 1
8738 EOF
8739
8740     cat >> confdefs.h <<\EOF
8741 #define WINVER 0x0400
8742 EOF
8743
8744 fi
8745 if test "$doesnt_want_win32" = 1 ; then
8746     USE_UNIX=1
8747     USE_WIN32=0
8748 fi
8749
8750 if test "$USE_UNIX" = 1 ; then
8751     wxUSE_UNIX=yes
8752     cat >> confdefs.h <<\EOF
8753 #define __UNIX__ 1
8754 EOF
8755
8756 fi
8757
8758
8759 cat > confcache <<\EOF
8760 # This file is a shell script that caches the results of configure
8761 # tests run on this system so they can be shared between configure
8762 # scripts and configure runs.  It is not useful on other systems.
8763 # If it contains results you don't want to keep, you may remove or edit it.
8764 #
8765 # By default, configure uses ./config.cache as the cache file,
8766 # creating it if it does not exist already.  You can give configure
8767 # the --cache-file=FILE option to use a different cache file; that is
8768 # what configure does when it calls configure scripts in
8769 # subdirectories, so they share the cache.
8770 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8771 # config.status only pays attention to the cache file if you give it the
8772 # --recheck option to rerun configure.
8773 #
8774 EOF
8775 # The following way of writing the cache mishandles newlines in values,
8776 # but we know of no workaround that is simple, portable, and efficient.
8777 # So, don't put newlines in cache variables' values.
8778 # Ultrix sh set writes to stderr and can't be redirected directly,
8779 # and sets the high bit in the cache file unless we assign to the vars.
8780 (set) 2>&1 |
8781   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8782   *ac_space=\ *)
8783     # `set' does not quote correctly, so add quotes (double-quote substitution
8784     # turns \\\\ into \\, and sed turns \\ into \).
8785     sed -n \
8786       -e "s/'/'\\\\''/g" \
8787       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8788     ;;
8789   *)
8790     # `set' quotes correctly as required by POSIX, so do not add quotes.
8791     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8792     ;;
8793   esac >> confcache
8794 if cmp -s $cache_file confcache; then
8795   :
8796 else
8797   if test -w $cache_file; then
8798     echo "updating cache $cache_file"
8799     cat confcache > $cache_file
8800   else
8801     echo "not updating unwritable cache $cache_file"
8802   fi
8803 fi
8804 rm -f confcache
8805
8806
8807 if test "$build" != "$host" ; then
8808     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8809         CC=$host_alias-gcc
8810         CXX=$host_alias-c++
8811         AR=$host_alias-ar
8812         RANLIB=$host_alias-ranlib
8813         DLLTOOL=$host_alias-dlltool
8814         RESCOMP=$host_alias-windres
8815         LD=$host_alias-ld
8816         NM=$host_alias-nm
8817         STRIP=$host_alias-strip
8818     else
8819         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8820     fi
8821 fi
8822
8823 CFLAGS=${CFLAGS:=}
8824 # Extract the first word of "gcc", so it can be a program name with args.
8825 set dummy gcc; ac_word=$2
8826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8827 echo "configure:8828: checking for $ac_word" >&5
8828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8829   echo $ac_n "(cached) $ac_c" 1>&6
8830 else
8831   if test -n "$CC"; then
8832   ac_cv_prog_CC="$CC" # Let the user override the test.
8833 else
8834   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8835   ac_dummy="$PATH"
8836   for ac_dir in $ac_dummy; do
8837     test -z "$ac_dir" && ac_dir=.
8838     if test -f $ac_dir/$ac_word; then
8839       ac_cv_prog_CC="gcc"
8840       break
8841     fi
8842   done
8843   IFS="$ac_save_ifs"
8844 fi
8845 fi
8846 CC="$ac_cv_prog_CC"
8847 if test -n "$CC"; then
8848   echo "$ac_t""$CC" 1>&6
8849 else
8850   echo "$ac_t""no" 1>&6
8851 fi
8852
8853 if test -z "$CC"; then
8854   # Extract the first word of "cc", so it can be a program name with args.
8855 set dummy cc; ac_word=$2
8856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8857 echo "configure:8858: checking for $ac_word" >&5
8858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8859   echo $ac_n "(cached) $ac_c" 1>&6
8860 else
8861   if test -n "$CC"; then
8862   ac_cv_prog_CC="$CC" # Let the user override the test.
8863 else
8864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8865   ac_prog_rejected=no
8866   ac_dummy="$PATH"
8867   for ac_dir in $ac_dummy; do
8868     test -z "$ac_dir" && ac_dir=.
8869     if test -f $ac_dir/$ac_word; then
8870       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8871         ac_prog_rejected=yes
8872         continue
8873       fi
8874       ac_cv_prog_CC="cc"
8875       break
8876     fi
8877   done
8878   IFS="$ac_save_ifs"
8879 if test $ac_prog_rejected = yes; then
8880   # We found a bogon in the path, so make sure we never use it.
8881   set dummy $ac_cv_prog_CC
8882   shift
8883   if test $# -gt 0; then
8884     # We chose a different compiler from the bogus one.
8885     # However, it has the same basename, so the bogon will be chosen
8886     # first if we set CC to just the basename; use the full file name.
8887     shift
8888     set dummy "$ac_dir/$ac_word" "$@"
8889     shift
8890     ac_cv_prog_CC="$@"
8891   fi
8892 fi
8893 fi
8894 fi
8895 CC="$ac_cv_prog_CC"
8896 if test -n "$CC"; then
8897   echo "$ac_t""$CC" 1>&6
8898 else
8899   echo "$ac_t""no" 1>&6
8900 fi
8901
8902   if test -z "$CC"; then
8903     case "`uname -s`" in
8904     *win32* | *WIN32*)
8905       # Extract the first word of "cl", so it can be a program name with args.
8906 set dummy cl; ac_word=$2
8907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8908 echo "configure:8909: checking for $ac_word" >&5
8909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8910   echo $ac_n "(cached) $ac_c" 1>&6
8911 else
8912   if test -n "$CC"; then
8913   ac_cv_prog_CC="$CC" # Let the user override the test.
8914 else
8915   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8916   ac_dummy="$PATH"
8917   for ac_dir in $ac_dummy; do
8918     test -z "$ac_dir" && ac_dir=.
8919     if test -f $ac_dir/$ac_word; then
8920       ac_cv_prog_CC="cl"
8921       break
8922     fi
8923   done
8924   IFS="$ac_save_ifs"
8925 fi
8926 fi
8927 CC="$ac_cv_prog_CC"
8928 if test -n "$CC"; then
8929   echo "$ac_t""$CC" 1>&6
8930 else
8931   echo "$ac_t""no" 1>&6
8932 fi
8933  ;;
8934     esac
8935   fi
8936   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8937 fi
8938
8939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8940 echo "configure:8941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8941
8942 ac_ext=c
8943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8944 ac_cpp='$CPP $CPPFLAGS'
8945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8947 cross_compiling=$ac_cv_prog_cc_cross
8948
8949 cat > conftest.$ac_ext << EOF
8950
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8953
8954 main(){return(0);}
8955 EOF
8956 if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8957   ac_cv_prog_cc_works=yes
8958   # If we can't run a trivial program, we are probably using a cross compiler.
8959   if (./conftest; exit) 2>/dev/null; then
8960     ac_cv_prog_cc_cross=no
8961   else
8962     ac_cv_prog_cc_cross=yes
8963   fi
8964 else
8965   echo "configure: failed program was:" >&5
8966   cat conftest.$ac_ext >&5
8967   ac_cv_prog_cc_works=no
8968 fi
8969 rm -fr conftest*
8970 ac_ext=c
8971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8972 ac_cpp='$CPP $CPPFLAGS'
8973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8975 cross_compiling=$ac_cv_prog_cc_cross
8976
8977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8978 if test $ac_cv_prog_cc_works = no; then
8979   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8980 fi
8981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8982 echo "configure:8983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8984 cross_compiling=$ac_cv_prog_cc_cross
8985
8986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8987 echo "configure:8988: checking whether we are using GNU C" >&5
8988 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8989   echo $ac_n "(cached) $ac_c" 1>&6
8990 else
8991   cat > conftest.c <<EOF
8992 #ifdef __GNUC__
8993   yes;
8994 #endif
8995 EOF
8996 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8997   ac_cv_prog_gcc=yes
8998 else
8999   ac_cv_prog_gcc=no
9000 fi
9001 fi
9002
9003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9004
9005 if test $ac_cv_prog_gcc = yes; then
9006   GCC=yes
9007 else
9008   GCC=
9009 fi
9010
9011 ac_test_CFLAGS="${CFLAGS+set}"
9012 ac_save_CFLAGS="$CFLAGS"
9013 CFLAGS=
9014 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9015 echo "configure:9016: checking whether ${CC-cc} accepts -g" >&5
9016 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9017   echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9019   echo 'void f(){}' > conftest.c
9020 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9021   ac_cv_prog_cc_g=yes
9022 else
9023   ac_cv_prog_cc_g=no
9024 fi
9025 rm -f conftest*
9026
9027 fi
9028
9029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9030 if test "$ac_test_CFLAGS" = set; then
9031   CFLAGS="$ac_save_CFLAGS"
9032 elif test $ac_cv_prog_cc_g = yes; then
9033   if test "$GCC" = yes; then
9034     CFLAGS="-g -O2"
9035   else
9036     CFLAGS="-g"
9037   fi
9038 else
9039   if test "$GCC" = yes; then
9040     CFLAGS="-O2"
9041   else
9042     CFLAGS=
9043   fi
9044 fi
9045
9046
9047 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9048 echo "configure:9049: checking how to run the C preprocessor" >&5
9049 # On Suns, sometimes $CPP names a directory.
9050 if test -n "$CPP" && test -d "$CPP"; then
9051   CPP=
9052 fi
9053 if test -z "$CPP"; then
9054 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9055   echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057     # This must be in double quotes, not single quotes, because CPP may get
9058   # substituted into the Makefile and "${CC-cc}" will confuse make.
9059   CPP="${CC-cc} -E"
9060   # On the NeXT, cc -E runs the code through the compiler's parser,
9061   # not just through cpp.
9062   cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 #include <assert.h>
9066 Syntax Error
9067 EOF
9068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9069 { (eval echo configure:9070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9071 if test -z "$ac_err"; then
9072   :
9073 else
9074   echo "$ac_err" >&5
9075   echo "configure: failed program was:" >&5
9076   cat conftest.$ac_ext >&5
9077   rm -rf conftest*
9078   CPP="${CC-cc} -E -traditional-cpp"
9079   cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9082 #include <assert.h>
9083 Syntax Error
9084 EOF
9085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9086 { (eval echo configure:9087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9088 if test -z "$ac_err"; then
9089   :
9090 else
9091   echo "$ac_err" >&5
9092   echo "configure: failed program was:" >&5
9093   cat conftest.$ac_ext >&5
9094   rm -rf conftest*
9095   CPP="${CC-cc} -nologo -E"
9096   cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <assert.h>
9100 Syntax Error
9101 EOF
9102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9103 { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9105 if test -z "$ac_err"; then
9106   :
9107 else
9108   echo "$ac_err" >&5
9109   echo "configure: failed program was:" >&5
9110   cat conftest.$ac_ext >&5
9111   rm -rf conftest*
9112   CPP=/lib/cpp
9113 fi
9114 rm -f conftest*
9115 fi
9116 rm -f conftest*
9117 fi
9118 rm -f conftest*
9119   ac_cv_prog_CPP="$CPP"
9120 fi
9121   CPP="$ac_cv_prog_CPP"
9122 else
9123   ac_cv_prog_CPP="$CPP"
9124 fi
9125 echo "$ac_t""$CPP" 1>&6
9126
9127 if test $ac_cv_prog_gcc = yes; then
9128     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9129 echo "configure:9130: checking whether ${CC-cc} needs -traditional" >&5
9130 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9131   echo $ac_n "(cached) $ac_c" 1>&6
9132 else
9133     ac_pattern="Autoconf.*'x'"
9134   cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9137 #include <sgtty.h>
9138 Autoconf TIOCGETP
9139 EOF
9140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9141   egrep "$ac_pattern" >/dev/null 2>&1; then
9142   rm -rf conftest*
9143   ac_cv_prog_gcc_traditional=yes
9144 else
9145   rm -rf conftest*
9146   ac_cv_prog_gcc_traditional=no
9147 fi
9148 rm -f conftest*
9149
9150
9151   if test $ac_cv_prog_gcc_traditional = no; then
9152     cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9155 #include <termio.h>
9156 Autoconf TCGETA
9157 EOF
9158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9159   egrep "$ac_pattern" >/dev/null 2>&1; then
9160   rm -rf conftest*
9161   ac_cv_prog_gcc_traditional=yes
9162 fi
9163 rm -f conftest*
9164
9165   fi
9166 fi
9167
9168 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9169   if test $ac_cv_prog_gcc_traditional = yes; then
9170     CC="$CC -traditional"
9171   fi
9172 fi
9173
9174
9175
9176 ac_ext=C
9177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9178 ac_cpp='$CXXCPP $CPPFLAGS'
9179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9181 cross_compiling=$ac_cv_prog_cxx_cross
9182
9183
9184 CXXFLAGS=${CXXFLAGS:=}
9185 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9186 do
9187 # Extract the first word of "$ac_prog", so it can be a program name with args.
9188 set dummy $ac_prog; ac_word=$2
9189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9190 echo "configure:9191: checking for $ac_word" >&5
9191 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9192   echo $ac_n "(cached) $ac_c" 1>&6
9193 else
9194   if test -n "$CXX"; then
9195   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9196 else
9197   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9198   ac_dummy="$PATH"
9199   for ac_dir in $ac_dummy; do
9200     test -z "$ac_dir" && ac_dir=.
9201     if test -f $ac_dir/$ac_word; then
9202       ac_cv_prog_CXX="$ac_prog"
9203       break
9204     fi
9205   done
9206   IFS="$ac_save_ifs"
9207 fi
9208 fi
9209 CXX="$ac_cv_prog_CXX"
9210 if test -n "$CXX"; then
9211   echo "$ac_t""$CXX" 1>&6
9212 else
9213   echo "$ac_t""no" 1>&6
9214 fi
9215
9216 test -n "$CXX" && break
9217 done
9218 test -n "$CXX" || CXX="gcc"
9219
9220
9221 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9222 echo "configure:9223: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9223
9224 ac_ext=C
9225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9226 ac_cpp='$CXXCPP $CPPFLAGS'
9227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9229 cross_compiling=$ac_cv_prog_cxx_cross
9230
9231 cat > conftest.$ac_ext << EOF
9232
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9235
9236 int main(){return(0);}
9237 EOF
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239   ac_cv_prog_cxx_works=yes
9240   # If we can't run a trivial program, we are probably using a cross compiler.
9241   if (./conftest; exit) 2>/dev/null; then
9242     ac_cv_prog_cxx_cross=no
9243   else
9244     ac_cv_prog_cxx_cross=yes
9245   fi
9246 else
9247   echo "configure: failed program was:" >&5
9248   cat conftest.$ac_ext >&5
9249   ac_cv_prog_cxx_works=no
9250 fi
9251 rm -fr conftest*
9252 ac_ext=C
9253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9254 ac_cpp='$CXXCPP $CPPFLAGS'
9255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9257 cross_compiling=$ac_cv_prog_cxx_cross
9258
9259 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9260 if test $ac_cv_prog_cxx_works = no; then
9261   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9262 fi
9263 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9264 echo "configure:9265: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9265 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9266 cross_compiling=$ac_cv_prog_cxx_cross
9267
9268 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9269 echo "configure:9270: checking whether we are using GNU C++" >&5
9270 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9271   echo $ac_n "(cached) $ac_c" 1>&6
9272 else
9273   cat > conftest.C <<EOF
9274 #ifdef __GNUC__
9275   yes;
9276 #endif
9277 EOF
9278 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9279   ac_cv_prog_gxx=yes
9280 else
9281   ac_cv_prog_gxx=no
9282 fi
9283 fi
9284
9285 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9286
9287 if test $ac_cv_prog_gxx = yes; then
9288   GXX=yes
9289 else
9290   GXX=
9291 fi
9292
9293 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9294 ac_save_CXXFLAGS="$CXXFLAGS"
9295 CXXFLAGS=
9296 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9297 echo "configure:9298: checking whether ${CXX-g++} accepts -g" >&5
9298 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9299   echo $ac_n "(cached) $ac_c" 1>&6
9300 else
9301   echo 'void f(){}' > conftest.cc
9302 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9303   ac_cv_prog_cxx_g=yes
9304 else
9305   ac_cv_prog_cxx_g=no
9306 fi
9307 rm -f conftest*
9308
9309 fi
9310
9311 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9312 if test "$ac_test_CXXFLAGS" = set; then
9313   CXXFLAGS="$ac_save_CXXFLAGS"
9314 elif test $ac_cv_prog_cxx_g = yes; then
9315   if test "$GXX" = yes; then
9316     CXXFLAGS="-g -O2"
9317   else
9318     CXXFLAGS="-g"
9319   fi
9320 else
9321   if test "$GXX" = yes; then
9322     CXXFLAGS="-O2"
9323   else
9324     CXXFLAGS=
9325   fi
9326 fi
9327
9328
9329 ac_ext=c
9330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9331 ac_cpp='$CPP $CPPFLAGS'
9332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9334 cross_compiling=$ac_cv_prog_cc_cross
9335
9336
9337 # Extract the first word of "ranlib", so it can be a program name with args.
9338 set dummy ranlib; ac_word=$2
9339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9340 echo "configure:9341: checking for $ac_word" >&5
9341 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9342   echo $ac_n "(cached) $ac_c" 1>&6
9343 else
9344   if test -n "$RANLIB"; then
9345   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9346 else
9347   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9348   ac_dummy="$PATH"
9349   for ac_dir in $ac_dummy; do
9350     test -z "$ac_dir" && ac_dir=.
9351     if test -f $ac_dir/$ac_word; then
9352       ac_cv_prog_RANLIB="ranlib"
9353       break
9354     fi
9355   done
9356   IFS="$ac_save_ifs"
9357   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9358 fi
9359 fi
9360 RANLIB="$ac_cv_prog_RANLIB"
9361 if test -n "$RANLIB"; then
9362   echo "$ac_t""$RANLIB" 1>&6
9363 else
9364   echo "$ac_t""no" 1>&6
9365 fi
9366
9367
9368 # Extract the first word of "ar", so it can be a program name with args.
9369 set dummy ar; ac_word=$2
9370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9371 echo "configure:9372: checking for $ac_word" >&5
9372 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9373   echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9375   if test -n "$AR"; then
9376   ac_cv_prog_AR="$AR" # Let the user override the test.
9377 else
9378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9379   ac_dummy="$PATH"
9380   for ac_dir in $ac_dummy; do
9381     test -z "$ac_dir" && ac_dir=.
9382     if test -f $ac_dir/$ac_word; then
9383       ac_cv_prog_AR="ar"
9384       break
9385     fi
9386   done
9387   IFS="$ac_save_ifs"
9388   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9389 fi
9390 fi
9391 AR="$ac_cv_prog_AR"
9392 if test -n "$AR"; then
9393   echo "$ac_t""$AR" 1>&6
9394 else
9395   echo "$ac_t""no" 1>&6
9396 fi
9397
9398
9399 # Find a good install program.  We prefer a C program (faster),
9400 # so one script is as good as another.  But avoid the broken or
9401 # incompatible versions:
9402 # SysV /etc/install, /usr/sbin/install
9403 # SunOS /usr/etc/install
9404 # IRIX /sbin/install
9405 # AIX /bin/install
9406 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9407 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9408 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9409 # ./install, which can be erroneously created by make from ./install.sh.
9410 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9411 echo "configure:9412: checking for a BSD compatible install" >&5
9412 if test -z "$INSTALL"; then
9413 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9414   echo $ac_n "(cached) $ac_c" 1>&6
9415 else
9416     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9417   for ac_dir in $PATH; do
9418     # Account for people who put trailing slashes in PATH elements.
9419     case "$ac_dir/" in
9420     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9421     *)
9422       # OSF1 and SCO ODT 3.0 have their own names for install.
9423       # Don't use installbsd from OSF since it installs stuff as root
9424       # by default.
9425       for ac_prog in ginstall scoinst install; do
9426         if test -f $ac_dir/$ac_prog; then
9427           if test $ac_prog = install &&
9428             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9429             # AIX install.  It has an incompatible calling convention.
9430             :
9431           else
9432             ac_cv_path_install="$ac_dir/$ac_prog -c"
9433             break 2
9434           fi
9435         fi
9436       done
9437       ;;
9438     esac
9439   done
9440   IFS="$ac_save_IFS"
9441
9442 fi
9443   if test "${ac_cv_path_install+set}" = set; then
9444     INSTALL="$ac_cv_path_install"
9445   else
9446     # As a last resort, use the slow shell script.  We don't cache a
9447     # path for INSTALL within a source directory, because that will
9448     # break other packages using the cache if that directory is
9449     # removed, or if the path is relative.
9450     INSTALL="$ac_install_sh"
9451   fi
9452 fi
9453 echo "$ac_t""$INSTALL" 1>&6
9454
9455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9456 # It thinks the first close brace ends the variable substitution.
9457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9458
9459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9460
9461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9462
9463
9464 case ${INSTALL} in
9465   /* ) # Absolute
9466      ;;
9467   ?:* ) # Drive letter, considered as absolute.
9468      ;;
9469   *)
9470      INSTALL=`pwd`/${INSTALL} ;;
9471 esac
9472
9473 case ${host} in
9474     *-hp-hpux* )
9475         INSTALL_DIR="mkdir"
9476         ;;
9477
9478     *)  INSTALL_DIR="$INSTALL -d"
9479         ;;
9480 esac
9481
9482
9483 case "${host}" in
9484
9485                 powerpc-*-darwin* )
9486         INSTALL_PROGRAM="cp -fp"
9487         INSTALL_DATA="cp -fp"
9488         ;;
9489     *)
9490         ;;
9491 esac
9492
9493 # Extract the first word of "strip", so it can be a program name with args.
9494 set dummy strip; ac_word=$2
9495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9496 echo "configure:9497: checking for $ac_word" >&5
9497 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9498   echo $ac_n "(cached) $ac_c" 1>&6
9499 else
9500   if test -n "$STRIP"; then
9501   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9502 else
9503   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9504   ac_dummy="$PATH"
9505   for ac_dir in $ac_dummy; do
9506     test -z "$ac_dir" && ac_dir=.
9507     if test -f $ac_dir/$ac_word; then
9508       ac_cv_prog_STRIP="strip"
9509       break
9510     fi
9511   done
9512   IFS="$ac_save_ifs"
9513   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9514 fi
9515 fi
9516 STRIP="$ac_cv_prog_STRIP"
9517 if test -n "$STRIP"; then
9518   echo "$ac_t""$STRIP" 1>&6
9519 else
9520   echo "$ac_t""no" 1>&6
9521 fi
9522
9523
9524 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9525 echo "configure:9526: checking if make is GNU make" >&5
9526 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9527   echo $ac_n "(cached) $ac_c" 1>&6
9528 else
9529   
9530     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9531             egrep -s GNU > /dev/null); then
9532         wx_cv_prog_makeisgnu="yes"
9533     else
9534         wx_cv_prog_makeisgnu="no"
9535     fi
9536
9537 fi
9538
9539 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9540
9541 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9542     IF_GNU_MAKE=""
9543 else
9544     IF_GNU_MAKE="#"
9545 fi
9546
9547
9548
9549 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9550 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9551 echo "configure:9552: checking if make supports VPATH" >&5
9552 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9553   echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9555   
9556 cat - << EOF > confMake
9557 check : file
9558         cp \$? \$@
9559         cp \$? final_file
9560 EOF
9561
9562 if test ! -d sub ; then
9563   mkdir sub
9564 fi
9565 echo dummy > sub/file
9566 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9567 RESULT=$?
9568 rm -f sub/file check final_file confMake
9569 rmdir sub
9570 if test "$RESULT" = 0; then
9571   wx_cv_prog_makevpath="yes"
9572 else
9573   wx_cv_prog_makevpath="no"
9574 fi
9575
9576 fi
9577
9578 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9579
9580 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9581 { echo "configure: error: 
9582 You need a make-utility that is able to use the variable
9583 VPATH correctly.
9584 If your version of make does not support VPATH correctly,
9585 please install GNU-make (possibly as gmake), and start
9586 configure with the following command:
9587 export MAKE=gmake; ./configure  for sh-type shells
9588 setenv MAKE gmake; ./configure  for csh-type shells
9589 Also please do remember to use gmake in this case every time
9590 you are trying to compile.
9591 " 1>&2; exit 1; }
9592 fi fi 
9593 for ac_prog in 'bison -y' byacc
9594 do
9595 # Extract the first word of "$ac_prog", so it can be a program name with args.
9596 set dummy $ac_prog; ac_word=$2
9597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9598 echo "configure:9599: checking for $ac_word" >&5
9599 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9600   echo $ac_n "(cached) $ac_c" 1>&6
9601 else
9602   if test -n "$YACC"; then
9603   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9604 else
9605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9606   ac_dummy="$PATH"
9607   for ac_dir in $ac_dummy; do
9608     test -z "$ac_dir" && ac_dir=.
9609     if test -f $ac_dir/$ac_word; then
9610       ac_cv_prog_YACC="$ac_prog"
9611       break
9612     fi
9613   done
9614   IFS="$ac_save_ifs"
9615 fi
9616 fi
9617 YACC="$ac_cv_prog_YACC"
9618 if test -n "$YACC"; then
9619   echo "$ac_t""$YACC" 1>&6
9620 else
9621   echo "$ac_t""no" 1>&6
9622 fi
9623
9624 test -n "$YACC" && break
9625 done
9626 test -n "$YACC" || YACC="yacc"
9627
9628
9629 # Extract the first word of "flex", so it can be a program name with args.
9630 set dummy flex; ac_word=$2
9631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9632 echo "configure:9633: checking for $ac_word" >&5
9633 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9634   echo $ac_n "(cached) $ac_c" 1>&6
9635 else
9636   if test -n "$LEX"; then
9637   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9638 else
9639   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9640   ac_dummy="$PATH"
9641   for ac_dir in $ac_dummy; do
9642     test -z "$ac_dir" && ac_dir=.
9643     if test -f $ac_dir/$ac_word; then
9644       ac_cv_prog_LEX="flex"
9645       break
9646     fi
9647   done
9648   IFS="$ac_save_ifs"
9649   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9650 fi
9651 fi
9652 LEX="$ac_cv_prog_LEX"
9653 if test -n "$LEX"; then
9654   echo "$ac_t""$LEX" 1>&6
9655 else
9656   echo "$ac_t""no" 1>&6
9657 fi
9658
9659 if test -z "$LEXLIB"
9660 then
9661   case "$LEX" in
9662   flex*) ac_lib=fl ;;
9663   *) ac_lib=l ;;
9664   esac
9665   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9666 echo "configure:9667: checking for yywrap in -l$ac_lib" >&5
9667 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9669   echo $ac_n "(cached) $ac_c" 1>&6
9670 else
9671   ac_save_LIBS="$LIBS"
9672 LIBS="-l$ac_lib  $LIBS"
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 /* Override any gcc2 internal prototype to avoid an error.  */
9677 /* We use char because int might match the return type of a gcc2
9678     builtin and then its argument prototype would still apply.  */
9679 char yywrap();
9680
9681 int main() {
9682 yywrap()
9683 ; return 0; }
9684 EOF
9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9686   rm -rf conftest*
9687   eval "ac_cv_lib_$ac_lib_var=yes"
9688 else
9689   echo "configure: failed program was:" >&5
9690   cat conftest.$ac_ext >&5
9691   rm -rf conftest*
9692   eval "ac_cv_lib_$ac_lib_var=no"
9693 fi
9694 rm -f conftest*
9695 LIBS="$ac_save_LIBS"
9696
9697 fi
9698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9699   echo "$ac_t""yes" 1>&6
9700   LEXLIB="-l$ac_lib"
9701 else
9702   echo "$ac_t""no" 1>&6
9703 fi
9704
9705 fi
9706
9707
9708 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9709 echo "configure:9710: checking whether ln -s works" >&5
9710 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9711   echo $ac_n "(cached) $ac_c" 1>&6
9712 else
9713   rm -f conftestdata
9714 if ln -s X conftestdata 2>/dev/null
9715 then
9716   rm -f conftestdata
9717   ac_cv_prog_LN_S="ln -s"
9718 else
9719   ac_cv_prog_LN_S=ln
9720 fi
9721 fi
9722 LN_S="$ac_cv_prog_LN_S"
9723 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9724   echo "$ac_t""yes" 1>&6
9725 else
9726   echo "$ac_t""no" 1>&6
9727 fi
9728
9729
9730 case "${host}" in
9731   *-pc-os2_emx | *-pc-os2-emx )
9732             LIBS="$LIBS -lstdcpp"
9733       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9734                               echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9735 echo "configure:9736: checking for drand48 in -lcExt" >&5
9736 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9738   echo $ac_n "(cached) $ac_c" 1>&6
9739 else
9740   ac_save_LIBS="$LIBS"
9741 LIBS="-lcExt  $LIBS"
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error.  */
9746 /* We use char because int might match the return type of a gcc2
9747     builtin and then its argument prototype would still apply.  */
9748 char drand48();
9749
9750 int main() {
9751 drand48()
9752 ; return 0; }
9753 EOF
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755   rm -rf conftest*
9756   eval "ac_cv_lib_$ac_lib_var=yes"
9757 else
9758   echo "configure: failed program was:" >&5
9759   cat conftest.$ac_ext >&5
9760   rm -rf conftest*
9761   eval "ac_cv_lib_$ac_lib_var=no"
9762 fi
9763 rm -f conftest*
9764 LIBS="$ac_save_LIBS"
9765
9766 fi
9767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9768   echo "$ac_t""yes" 1>&6
9769   LIBS="$LIBS -lcExt"
9770 else
9771   echo "$ac_t""no" 1>&6
9772 fi
9773
9774       else
9775                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9776       fi
9777   ;;
9778 esac
9779
9780
9781 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9782     for ac_hdr in strings.h
9783 do
9784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9786 echo "configure:9787: checking for $ac_hdr" >&5
9787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9788   echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9790   cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 #include <$ac_hdr>
9794 EOF
9795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9796 { (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9798 if test -z "$ac_err"; then
9799   rm -rf conftest*
9800   eval "ac_cv_header_$ac_safe=yes"
9801 else
9802   echo "$ac_err" >&5
9803   echo "configure: failed program was:" >&5
9804   cat conftest.$ac_ext >&5
9805   rm -rf conftest*
9806   eval "ac_cv_header_$ac_safe=no"
9807 fi
9808 rm -f conftest*
9809 fi
9810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9811   echo "$ac_t""yes" 1>&6
9812     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9813   cat >> confdefs.h <<EOF
9814 #define $ac_tr_hdr 1
9815 EOF
9816  
9817 else
9818   echo "$ac_t""no" 1>&6
9819 fi
9820 done
9821
9822 fi
9823
9824 for ac_hdr in stdlib.h
9825 do
9826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9828 echo "configure:9829: checking for $ac_hdr" >&5
9829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9830   echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9832   cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 #include <$ac_hdr>
9836 EOF
9837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9838 { (eval echo configure:9839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9840 if test -z "$ac_err"; then
9841   rm -rf conftest*
9842   eval "ac_cv_header_$ac_safe=yes"
9843 else
9844   echo "$ac_err" >&5
9845   echo "configure: failed program was:" >&5
9846   cat conftest.$ac_ext >&5
9847   rm -rf conftest*
9848   eval "ac_cv_header_$ac_safe=no"
9849 fi
9850 rm -f conftest*
9851 fi
9852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9853   echo "$ac_t""yes" 1>&6
9854     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9855   cat >> confdefs.h <<EOF
9856 #define $ac_tr_hdr 1
9857 EOF
9858  
9859 else
9860   echo "$ac_t""no" 1>&6
9861 fi
9862 done
9863
9864 for ac_hdr in malloc.h
9865 do
9866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9868 echo "configure:9869: checking for $ac_hdr" >&5
9869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9870   echo $ac_n "(cached) $ac_c" 1>&6
9871 else
9872   cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9875 #include <$ac_hdr>
9876 EOF
9877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9878 { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9880 if test -z "$ac_err"; then
9881   rm -rf conftest*
9882   eval "ac_cv_header_$ac_safe=yes"
9883 else
9884   echo "$ac_err" >&5
9885   echo "configure: failed program was:" >&5
9886   cat conftest.$ac_ext >&5
9887   rm -rf conftest*
9888   eval "ac_cv_header_$ac_safe=no"
9889 fi
9890 rm -f conftest*
9891 fi
9892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893   echo "$ac_t""yes" 1>&6
9894     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895   cat >> confdefs.h <<EOF
9896 #define $ac_tr_hdr 1
9897 EOF
9898  
9899 else
9900   echo "$ac_t""no" 1>&6
9901 fi
9902 done
9903
9904 for ac_hdr in unistd.h
9905 do
9906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9908 echo "configure:9909: checking for $ac_hdr" >&5
9909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9910   echo $ac_n "(cached) $ac_c" 1>&6
9911 else
9912   cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <$ac_hdr>
9916 EOF
9917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9918 { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920 if test -z "$ac_err"; then
9921   rm -rf conftest*
9922   eval "ac_cv_header_$ac_safe=yes"
9923 else
9924   echo "$ac_err" >&5
9925   echo "configure: failed program was:" >&5
9926   cat conftest.$ac_ext >&5
9927   rm -rf conftest*
9928   eval "ac_cv_header_$ac_safe=no"
9929 fi
9930 rm -f conftest*
9931 fi
9932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933   echo "$ac_t""yes" 1>&6
9934     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9935   cat >> confdefs.h <<EOF
9936 #define $ac_tr_hdr 1
9937 EOF
9938  
9939 else
9940   echo "$ac_t""no" 1>&6
9941 fi
9942 done
9943
9944 for ac_hdr in wchar.h
9945 do
9946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9948 echo "configure:9949: checking for $ac_hdr" >&5
9949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9950   echo $ac_n "(cached) $ac_c" 1>&6
9951 else
9952   cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 #include <$ac_hdr>
9956 EOF
9957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9958 { (eval echo configure:9959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9960 if test -z "$ac_err"; then
9961   rm -rf conftest*
9962   eval "ac_cv_header_$ac_safe=yes"
9963 else
9964   echo "$ac_err" >&5
9965   echo "configure: failed program was:" >&5
9966   cat conftest.$ac_ext >&5
9967   rm -rf conftest*
9968   eval "ac_cv_header_$ac_safe=no"
9969 fi
9970 rm -f conftest*
9971 fi
9972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9973   echo "$ac_t""yes" 1>&6
9974     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9975   cat >> confdefs.h <<EOF
9976 #define $ac_tr_hdr 1
9977 EOF
9978  
9979 else
9980   echo "$ac_t""no" 1>&6
9981 fi
9982 done
9983
9984
9985 if test "$ac_cv_header_wchar_h" != "yes"; then
9986         for ac_hdr in wcstr.h
9987 do
9988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9990 echo "configure:9991: checking for $ac_hdr" >&5
9991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9992   echo $ac_n "(cached) $ac_c" 1>&6
9993 else
9994   cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <$ac_hdr>
9998 EOF
9999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10000 { (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10002 if test -z "$ac_err"; then
10003   rm -rf conftest*
10004   eval "ac_cv_header_$ac_safe=yes"
10005 else
10006   echo "$ac_err" >&5
10007   echo "configure: failed program was:" >&5
10008   cat conftest.$ac_ext >&5
10009   rm -rf conftest*
10010   eval "ac_cv_header_$ac_safe=no"
10011 fi
10012 rm -f conftest*
10013 fi
10014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10015   echo "$ac_t""yes" 1>&6
10016     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10017   cat >> confdefs.h <<EOF
10018 #define $ac_tr_hdr 1
10019 EOF
10020  
10021 else
10022   echo "$ac_t""no" 1>&6
10023 fi
10024 done
10025
10026 fi
10027
10028 for ac_hdr in fnmatch.h
10029 do
10030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10032 echo "configure:10033: checking for $ac_hdr" >&5
10033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10034   echo $ac_n "(cached) $ac_c" 1>&6
10035 else
10036   cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 #include <$ac_hdr>
10040 EOF
10041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10042 { (eval echo configure:10043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10044 if test -z "$ac_err"; then
10045   rm -rf conftest*
10046   eval "ac_cv_header_$ac_safe=yes"
10047 else
10048   echo "$ac_err" >&5
10049   echo "configure: failed program was:" >&5
10050   cat conftest.$ac_ext >&5
10051   rm -rf conftest*
10052   eval "ac_cv_header_$ac_safe=no"
10053 fi
10054 rm -f conftest*
10055 fi
10056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10057   echo "$ac_t""yes" 1>&6
10058     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10059   cat >> confdefs.h <<EOF
10060 #define $ac_tr_hdr 1
10061 EOF
10062  
10063 else
10064   echo "$ac_t""no" 1>&6
10065 fi
10066 done
10067
10068
10069 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10070     for ac_func in fnmatch
10071 do
10072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10073 echo "configure:10074: checking for $ac_func" >&5
10074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10075   echo $ac_n "(cached) $ac_c" 1>&6
10076 else
10077   cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 /* System header to define __stub macros and hopefully few prototypes,
10081     which can conflict with char $ac_func(); below.  */
10082 #include <assert.h>
10083 /* Override any gcc2 internal prototype to avoid an error.  */
10084 /* We use char because int might match the return type of a gcc2
10085     builtin and then its argument prototype would still apply.  */
10086 char $ac_func();
10087
10088 int main() {
10089
10090 /* The GNU C library defines this for functions which it implements
10091     to always fail with ENOSYS.  Some functions are actually named
10092     something starting with __ and the normal name is an alias.  */
10093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10094 choke me
10095 #else
10096 $ac_func();
10097 #endif
10098
10099 ; return 0; }
10100 EOF
10101 if { (eval echo configure:10102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10102   rm -rf conftest*
10103   eval "ac_cv_func_$ac_func=yes"
10104 else
10105   echo "configure: failed program was:" >&5
10106   cat conftest.$ac_ext >&5
10107   rm -rf conftest*
10108   eval "ac_cv_func_$ac_func=no"
10109 fi
10110 rm -f conftest*
10111 fi
10112
10113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10114   echo "$ac_t""yes" 1>&6
10115     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10116   cat >> confdefs.h <<EOF
10117 #define $ac_tr_func 1
10118 EOF
10119  
10120 else
10121   echo "$ac_t""no" 1>&6
10122 fi
10123 done
10124
10125 fi
10126
10127 for ac_hdr in langinfo.h
10128 do
10129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10131 echo "configure:10132: checking for $ac_hdr" >&5
10132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10133   echo $ac_n "(cached) $ac_c" 1>&6
10134 else
10135   cat > conftest.$ac_ext <<EOF
10136 #line 10137 "configure"
10137 #include "confdefs.h"
10138 #include <$ac_hdr>
10139 EOF
10140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10141 { (eval echo configure:10142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10143 if test -z "$ac_err"; then
10144   rm -rf conftest*
10145   eval "ac_cv_header_$ac_safe=yes"
10146 else
10147   echo "$ac_err" >&5
10148   echo "configure: failed program was:" >&5
10149   cat conftest.$ac_ext >&5
10150   rm -rf conftest*
10151   eval "ac_cv_header_$ac_safe=no"
10152 fi
10153 rm -f conftest*
10154 fi
10155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10156   echo "$ac_t""yes" 1>&6
10157     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10158   cat >> confdefs.h <<EOF
10159 #define $ac_tr_hdr 1
10160 EOF
10161  
10162 else
10163   echo "$ac_t""no" 1>&6
10164 fi
10165 done
10166
10167
10168 case "${host}" in
10169   *-pc-os2_emx | *-pc-os2-emx )
10170             if test $ac_cv_header_langinfo_h = "yes"; then
10171           LIBS="$LIBS -lintl"
10172       fi
10173   ;;
10174 esac
10175
10176 if test "$wxUSE_GUI" = "yes"; then
10177     if test "$wxUSE_UNIX" = "yes"; then
10178                 for ac_hdr in X11/XKBlib.h
10179 do
10180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10182 echo "configure:10183: checking for $ac_hdr" >&5
10183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10184   echo $ac_n "(cached) $ac_c" 1>&6
10185 else
10186   cat > conftest.$ac_ext <<EOF
10187 #line 10188 "configure"
10188 #include "confdefs.h"
10189 #include <$ac_hdr>
10190 EOF
10191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10192 { (eval echo configure:10193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10194 if test -z "$ac_err"; then
10195   rm -rf conftest*
10196   eval "ac_cv_header_$ac_safe=yes"
10197 else
10198   echo "$ac_err" >&5
10199   echo "configure: failed program was:" >&5
10200   cat conftest.$ac_ext >&5
10201   rm -rf conftest*
10202   eval "ac_cv_header_$ac_safe=no"
10203 fi
10204 rm -f conftest*
10205 fi
10206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10207   echo "$ac_t""yes" 1>&6
10208     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10209   cat >> confdefs.h <<EOF
10210 #define $ac_tr_hdr 1
10211 EOF
10212  
10213 else
10214   echo "$ac_t""no" 1>&6
10215 fi
10216 done
10217
10218     fi
10219 fi
10220
10221
10222 echo $ac_n "checking for working const""... $ac_c" 1>&6
10223 echo "configure:10224: checking for working const" >&5
10224 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10225   echo $ac_n "(cached) $ac_c" 1>&6
10226 else
10227   cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230
10231 int main() {
10232
10233 /* Ultrix mips cc rejects this.  */
10234 typedef int charset[2]; const charset x;
10235 /* SunOS 4.1.1 cc rejects this.  */
10236 char const *const *ccp;
10237 char **p;
10238 /* NEC SVR4.0.2 mips cc rejects this.  */
10239 struct point {int x, y;};
10240 static struct point const zero = {0,0};
10241 /* AIX XL C 1.02.0.0 rejects this.
10242    It does not let you subtract one const X* pointer from another in an arm
10243    of an if-expression whose if-part is not a constant expression */
10244 const char *g = "string";
10245 ccp = &g + (g ? g-g : 0);
10246 /* HPUX 7.0 cc rejects these. */
10247 ++ccp;
10248 p = (char**) ccp;
10249 ccp = (char const *const *) p;
10250 { /* SCO 3.2v4 cc rejects this.  */
10251   char *t;
10252   char const *s = 0 ? (char *) 0 : (char const *) 0;
10253
10254   *t++ = 0;
10255 }
10256 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10257   int x[] = {25, 17};
10258   const int *foo = &x[0];
10259   ++foo;
10260 }
10261 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10262   typedef const int *iptr;
10263   iptr p = 0;
10264   ++p;
10265 }
10266 { /* AIX XL C 1.02.0.0 rejects this saying
10267      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10268   struct s { int j; const int *ap[3]; };
10269   struct s *b; b->j = 5;
10270 }
10271 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10272   const int foo = 10;
10273 }
10274
10275 ; return 0; }
10276 EOF
10277 if { (eval echo configure:10278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10278   rm -rf conftest*
10279   ac_cv_c_const=yes
10280 else
10281   echo "configure: failed program was:" >&5
10282   cat conftest.$ac_ext >&5
10283   rm -rf conftest*
10284   ac_cv_c_const=no
10285 fi
10286 rm -f conftest*
10287 fi
10288
10289 echo "$ac_t""$ac_cv_c_const" 1>&6
10290 if test $ac_cv_c_const = no; then
10291   cat >> confdefs.h <<\EOF
10292 #define const 
10293 EOF
10294
10295 fi
10296
10297 echo $ac_n "checking for inline""... $ac_c" 1>&6
10298 echo "configure:10299: checking for inline" >&5
10299 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10300   echo $ac_n "(cached) $ac_c" 1>&6
10301 else
10302   ac_cv_c_inline=no
10303 for ac_kw in inline __inline__ __inline; do
10304   cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307
10308 int main() {
10309 } $ac_kw foo() {
10310 ; return 0; }
10311 EOF
10312 if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10313   rm -rf conftest*
10314   ac_cv_c_inline=$ac_kw; break
10315 else
10316   echo "configure: failed program was:" >&5
10317   cat conftest.$ac_ext >&5
10318 fi
10319 rm -f conftest*
10320 done
10321
10322 fi
10323
10324 echo "$ac_t""$ac_cv_c_inline" 1>&6
10325 case "$ac_cv_c_inline" in
10326   inline | yes) ;;
10327   no) cat >> confdefs.h <<\EOF
10328 #define inline 
10329 EOF
10330  ;;
10331   *)  cat >> confdefs.h <<EOF
10332 #define inline $ac_cv_c_inline
10333 EOF
10334  ;;
10335 esac
10336
10337
10338 echo $ac_n "checking size of char""... $ac_c" 1>&6
10339 echo "configure:10340: checking size of char" >&5
10340 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10341   echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10343   if test "$cross_compiling" = yes; then
10344   ac_cv_sizeof_char=1
10345 else
10346   cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 #include <stdio.h>
10350 main()
10351 {
10352   FILE *f=fopen("conftestval", "w");
10353   if (!f) exit(1);
10354   fprintf(f, "%d\n", sizeof(char));
10355   exit(0);
10356 }
10357 EOF
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10359 then
10360   ac_cv_sizeof_char=`cat conftestval`
10361 else
10362   echo "configure: failed program was:" >&5
10363   cat conftest.$ac_ext >&5
10364   rm -fr conftest*
10365   ac_cv_sizeof_char=0
10366 fi
10367 rm -fr conftest*
10368 fi
10369
10370 fi
10371 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10372 cat >> confdefs.h <<EOF
10373 #define SIZEOF_CHAR $ac_cv_sizeof_char
10374 EOF
10375
10376
10377 echo $ac_n "checking size of short""... $ac_c" 1>&6
10378 echo "configure:10379: checking size of short" >&5
10379 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10380   echo $ac_n "(cached) $ac_c" 1>&6
10381 else
10382   if test "$cross_compiling" = yes; then
10383   ac_cv_sizeof_short=2
10384 else
10385   cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10388 #include <stdio.h>
10389 main()
10390 {
10391   FILE *f=fopen("conftestval", "w");
10392   if (!f) exit(1);
10393   fprintf(f, "%d\n", sizeof(short));
10394   exit(0);
10395 }
10396 EOF
10397 if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10398 then
10399   ac_cv_sizeof_short=`cat conftestval`
10400 else
10401   echo "configure: failed program was:" >&5
10402   cat conftest.$ac_ext >&5
10403   rm -fr conftest*
10404   ac_cv_sizeof_short=0
10405 fi
10406 rm -fr conftest*
10407 fi
10408
10409 fi
10410 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10411 cat >> confdefs.h <<EOF
10412 #define SIZEOF_SHORT $ac_cv_sizeof_short
10413 EOF
10414
10415
10416 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10417 echo "configure:10418: checking size of void *" >&5
10418 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10419   echo $ac_n "(cached) $ac_c" 1>&6
10420 else
10421   if test "$cross_compiling" = yes; then
10422   ac_cv_sizeof_void_p=4
10423 else
10424   cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10427 #include <stdio.h>
10428 main()
10429 {
10430   FILE *f=fopen("conftestval", "w");
10431   if (!f) exit(1);
10432   fprintf(f, "%d\n", sizeof(void *));
10433   exit(0);
10434 }
10435 EOF
10436 if { (eval echo configure:10437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10437 then
10438   ac_cv_sizeof_void_p=`cat conftestval`
10439 else
10440   echo "configure: failed program was:" >&5
10441   cat conftest.$ac_ext >&5
10442   rm -fr conftest*
10443   ac_cv_sizeof_void_p=0
10444 fi
10445 rm -fr conftest*
10446 fi
10447
10448 fi
10449 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10450 cat >> confdefs.h <<EOF
10451 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10452 EOF
10453
10454
10455 echo $ac_n "checking size of int""... $ac_c" 1>&6
10456 echo "configure:10457: checking size of int" >&5
10457 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10458   echo $ac_n "(cached) $ac_c" 1>&6
10459 else
10460   if test "$cross_compiling" = yes; then
10461   ac_cv_sizeof_int=4
10462 else
10463   cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10466 #include <stdio.h>
10467 main()
10468 {
10469   FILE *f=fopen("conftestval", "w");
10470   if (!f) exit(1);
10471   fprintf(f, "%d\n", sizeof(int));
10472   exit(0);
10473 }
10474 EOF
10475 if { (eval echo configure:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10476 then
10477   ac_cv_sizeof_int=`cat conftestval`
10478 else
10479   echo "configure: failed program was:" >&5
10480   cat conftest.$ac_ext >&5
10481   rm -fr conftest*
10482   ac_cv_sizeof_int=0
10483 fi
10484 rm -fr conftest*
10485 fi
10486
10487 fi
10488 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10489 cat >> confdefs.h <<EOF
10490 #define SIZEOF_INT $ac_cv_sizeof_int
10491 EOF
10492
10493
10494 echo $ac_n "checking size of long""... $ac_c" 1>&6
10495 echo "configure:10496: checking size of long" >&5
10496 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10497   echo $ac_n "(cached) $ac_c" 1>&6
10498 else
10499   if test "$cross_compiling" = yes; then
10500   ac_cv_sizeof_long=4
10501 else
10502   cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 #include <stdio.h>
10506 main()
10507 {
10508   FILE *f=fopen("conftestval", "w");
10509   if (!f) exit(1);
10510   fprintf(f, "%d\n", sizeof(long));
10511   exit(0);
10512 }
10513 EOF
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10515 then
10516   ac_cv_sizeof_long=`cat conftestval`
10517 else
10518   echo "configure: failed program was:" >&5
10519   cat conftest.$ac_ext >&5
10520   rm -fr conftest*
10521   ac_cv_sizeof_long=0
10522 fi
10523 rm -fr conftest*
10524 fi
10525
10526 fi
10527 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10528 cat >> confdefs.h <<EOF
10529 #define SIZEOF_LONG $ac_cv_sizeof_long
10530 EOF
10531
10532
10533
10534 case "${host}" in
10535     arm-*-linux* )
10536         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10537 echo "configure:10538: checking size of long long" >&5
10538 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10539   echo $ac_n "(cached) $ac_c" 1>&6
10540 else
10541   if test "$cross_compiling" = yes; then
10542   ac_cv_sizeof_long_long=8
10543 else
10544   cat > conftest.$ac_ext <<EOF
10545 #line 10546 "configure"
10546 #include "confdefs.h"
10547 #include <stdio.h>
10548 main()
10549 {
10550   FILE *f=fopen("conftestval", "w");
10551   if (!f) exit(1);
10552   fprintf(f, "%d\n", sizeof(long long));
10553   exit(0);
10554 }
10555 EOF
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10557 then
10558   ac_cv_sizeof_long_long=`cat conftestval`
10559 else
10560   echo "configure: failed program was:" >&5
10561   cat conftest.$ac_ext >&5
10562   rm -fr conftest*
10563   ac_cv_sizeof_long_long=0
10564 fi
10565 rm -fr conftest*
10566 fi
10567
10568 fi
10569 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10570 cat >> confdefs.h <<EOF
10571 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10572 EOF
10573
10574
10575     ;;
10576     *-hp-hpux* )
10577         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10578 echo "configure:10579: checking size of long long" >&5
10579 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10580   echo $ac_n "(cached) $ac_c" 1>&6
10581 else
10582   if test "$cross_compiling" = yes; then
10583   ac_cv_sizeof_long_long=0
10584 else
10585   cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 #include <stdio.h>
10589 main()
10590 {
10591   FILE *f=fopen("conftestval", "w");
10592   if (!f) exit(1);
10593   fprintf(f, "%d\n", sizeof(long long));
10594   exit(0);
10595 }
10596 EOF
10597 if { (eval echo configure:10598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10598 then
10599   ac_cv_sizeof_long_long=`cat conftestval`
10600 else
10601   echo "configure: failed program was:" >&5
10602   cat conftest.$ac_ext >&5
10603   rm -fr conftest*
10604   ac_cv_sizeof_long_long=0
10605 fi
10606 rm -fr conftest*
10607 fi
10608
10609 fi
10610 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10611 cat >> confdefs.h <<EOF
10612 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10613 EOF
10614
10615
10616         if test "$ac_cv_sizeof_long_long" != "0"; then
10617                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10618         fi
10619     ;;
10620     * )
10621         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10622 echo "configure:10623: checking size of long long" >&5
10623 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10624   echo $ac_n "(cached) $ac_c" 1>&6
10625 else
10626   if test "$cross_compiling" = yes; then
10627   ac_cv_sizeof_long_long=0
10628 else
10629   cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632 #include <stdio.h>
10633 main()
10634 {
10635   FILE *f=fopen("conftestval", "w");
10636   if (!f) exit(1);
10637   fprintf(f, "%d\n", sizeof(long long));
10638   exit(0);
10639 }
10640 EOF
10641 if { (eval echo configure:10642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10642 then
10643   ac_cv_sizeof_long_long=`cat conftestval`
10644 else
10645   echo "configure: failed program was:" >&5
10646   cat conftest.$ac_ext >&5
10647   rm -fr conftest*
10648   ac_cv_sizeof_long_long=0
10649 fi
10650 rm -fr conftest*
10651 fi
10652
10653 fi
10654 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10655 cat >> confdefs.h <<EOF
10656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10657 EOF
10658
10659
10660 esac
10661
10662 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10663 echo "configure:10664: checking size of wchar_t" >&5
10664 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10665   echo $ac_n "(cached) $ac_c" 1>&6
10666 else
10667   
10668     if test "$cross_compiling" = yes; then
10669   
10670             case "${host}" in
10671               *-pc-msdosdjgpp )
10672                 wx_cv_sizeof_wchar_t=0
10673                 ;;
10674               * )
10675                 wx_cv_sizeof_wchar_t=4
10676                 ;;
10677             esac
10678         
10679     
10680 else
10681   cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684
10685             /* DJGPP only has fake wchar_t: */
10686             #ifdef __DJGPP__
10687             #  error "fake wchar_t"
10688             #endif
10689             #ifdef HAVE_WCHAR_H
10690             #  ifdef __CYGWIN__
10691             #    include <stddef.h>
10692             #  endif
10693             #  include <wchar.h>
10694             #endif
10695             #ifdef HAVE_STDLIB_H
10696             #  include <stdlib.h>
10697             #endif
10698             #include <stdio.h>
10699             int main()
10700             {
10701                 FILE *f=fopen("conftestval", "w");
10702                 if (!f) exit(1);
10703                 fprintf(f, "%i", sizeof(wchar_t));
10704                 exit(0);
10705             }
10706         
10707 EOF
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10709 then
10710   wx_cv_sizeof_wchar_t=`cat conftestval`
10711 else
10712   echo "configure: failed program was:" >&5
10713   cat conftest.$ac_ext >&5
10714   rm -fr conftest*
10715   wx_cv_sizeof_wchar_t=0
10716 fi
10717 rm -fr conftest*
10718 fi
10719
10720
10721 fi
10722
10723 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10724
10725 cat >> confdefs.h <<EOF
10726 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10727 EOF
10728
10729
10730 # Check whether --enable-largefile or --disable-largefile was given.
10731 if test "${enable_largefile+set}" = set; then
10732   enableval="$enable_largefile"
10733   :
10734 fi
10735
10736 if test "$enable_largefile" != no; then
10737             wx_largefile=no
10738     
10739     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10740 echo "configure:10741: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10741 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10742   echo $ac_n "(cached) $ac_c" 1>&6
10743 else
10744   
10745           cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 #define _FILE_OFFSET_BITS 64
10749                           #include <sys/types.h>
10750 int main() {
10751 typedef struct {
10752     unsigned int field: sizeof(off_t) == 8;
10753 } wxlf;
10754
10755 ; return 0; }
10756 EOF
10757 if { (eval echo configure:10758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10758   rm -rf conftest*
10759   ac_cv_sys_file_offset_bits=64
10760 else
10761   echo "configure: failed program was:" >&5
10762   cat conftest.$ac_ext >&5
10763   rm -rf conftest*
10764   ac_cv_sys_file_offset_bits=no
10765 fi
10766 rm -f conftest*
10767         
10768     
10769 fi
10770
10771 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10772
10773     if test "$ac_cv_sys_file_offset_bits" != no; then
10774         wx_largefile=yes
10775         cat >> confdefs.h <<EOF
10776 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10777 EOF
10778
10779     fi
10780
10781     if test "x$wx_largefile" != "xyes"; then
10782         
10783     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10784 echo "configure:10785: checking for _LARGE_FILES value needed for large files" >&5
10785 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10786   echo $ac_n "(cached) $ac_c" 1>&6
10787 else
10788   
10789           cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 #define _LARGE_FILES 1
10793                           #include <sys/types.h>
10794 int main() {
10795 typedef struct {
10796     unsigned int field: sizeof(off_t) == 8;
10797 } wxlf;
10798
10799 ; return 0; }
10800 EOF
10801 if { (eval echo configure:10802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10802   rm -rf conftest*
10803   ac_cv_sys_large_files=1
10804 else
10805   echo "configure: failed program was:" >&5
10806   cat conftest.$ac_ext >&5
10807   rm -rf conftest*
10808   ac_cv_sys_large_files=no
10809 fi
10810 rm -f conftest*
10811         
10812     
10813 fi
10814
10815 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10816
10817     if test "$ac_cv_sys_large_files" != no; then
10818         wx_largefile=yes
10819         cat >> confdefs.h <<EOF
10820 #define _LARGE_FILES $ac_cv_sys_large_files
10821 EOF
10822
10823     fi
10824
10825     fi
10826
10827     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10828 echo "configure:10829: checking if large file support is available" >&5
10829     if test "x$wx_largefile" = "xyes"; then
10830         cat >> confdefs.h <<\EOF
10831 #define HAVE_LARGEFILE_SUPPORT 1
10832 EOF
10833
10834     fi
10835     echo "$ac_t""$wx_largefile" 1>&6
10836 fi
10837
10838
10839 if test "x$wx_largefile" = "xyes"; then
10840     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10841         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10842     else
10843         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10844     fi
10845     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10846 fi
10847
10848 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10849 echo "configure:10850: checking whether byte ordering is bigendian" >&5
10850 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10851   echo $ac_n "(cached) $ac_c" 1>&6
10852 else
10853   ac_cv_c_bigendian=unknown
10854 # See if sys/param.h defines the BYTE_ORDER macro.
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <sys/types.h>
10859 #include <sys/param.h>
10860 int main() {
10861
10862 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10863  bogus endian macros
10864 #endif
10865 ; return 0; }
10866 EOF
10867 if { (eval echo configure:10868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10868   rm -rf conftest*
10869   # It does; now see whether it defined to BIG_ENDIAN or not.
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10873 #include <sys/types.h>
10874 #include <sys/param.h>
10875 int main() {
10876
10877 #if BYTE_ORDER != BIG_ENDIAN
10878  not big endian
10879 #endif
10880 ; return 0; }
10881 EOF
10882 if { (eval echo configure:10883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10883   rm -rf conftest*
10884   ac_cv_c_bigendian=yes
10885 else
10886   echo "configure: failed program was:" >&5
10887   cat conftest.$ac_ext >&5
10888   rm -rf conftest*
10889   ac_cv_c_bigendian=no
10890 fi
10891 rm -f conftest*
10892 else
10893   echo "configure: failed program was:" >&5
10894   cat conftest.$ac_ext >&5
10895 fi
10896 rm -f conftest*
10897 if test $ac_cv_c_bigendian = unknown; then
10898 if test "$cross_compiling" = yes; then
10899   ac_cv_c_bigendian=unknown
10900 else
10901   cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 main () {
10905   /* Are we little or big endian?  From Harbison&Steele.  */
10906   union
10907   {
10908     long l;
10909     char c[sizeof (long)];
10910   } u;
10911   u.l = 1;
10912   exit (u.c[sizeof (long) - 1] == 1);
10913 }
10914 EOF
10915 if { (eval echo configure:10916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10916 then
10917   ac_cv_c_bigendian=no
10918 else
10919   echo "configure: failed program was:" >&5
10920   cat conftest.$ac_ext >&5
10921   rm -fr conftest*
10922   ac_cv_c_bigendian=yes
10923 fi
10924 rm -fr conftest*
10925 fi
10926
10927 fi
10928 fi
10929
10930 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10931 if test $ac_cv_c_bigendian = unknown; then
10932   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
10933 fi
10934 if test $ac_cv_c_bigendian = yes; then
10935   cat >> confdefs.h <<\EOF
10936 #define WORDS_BIGENDIAN 1
10937 EOF
10938
10939 fi
10940
10941
10942 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10943 echo "configure:10944: checking how to run the C++ preprocessor" >&5
10944 if test -z "$CXXCPP"; then
10945 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10946   echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10948   ac_ext=C
10949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10950 ac_cpp='$CXXCPP $CPPFLAGS'
10951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10953 cross_compiling=$ac_cv_prog_cxx_cross
10954   CXXCPP="${CXX-g++} -E"
10955   cat > conftest.$ac_ext <<EOF
10956 #line 10957 "configure"
10957 #include "confdefs.h"
10958 #include <stdlib.h>
10959 EOF
10960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10961 { (eval echo configure:10962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10963 if test -z "$ac_err"; then
10964   :
10965 else
10966   echo "$ac_err" >&5
10967   echo "configure: failed program was:" >&5
10968   cat conftest.$ac_ext >&5
10969   rm -rf conftest*
10970   CXXCPP=/lib/cpp
10971 fi
10972 rm -f conftest*
10973   ac_cv_prog_CXXCPP="$CXXCPP"
10974 ac_ext=C
10975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10976 ac_cpp='$CXXCPP $CPPFLAGS'
10977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10979 cross_compiling=$ac_cv_prog_cxx_cross
10980 fi
10981 fi
10982 CXXCPP="$ac_cv_prog_CXXCPP"
10983 echo "$ac_t""$CXXCPP" 1>&6
10984
10985
10986   if test "$cross_compiling" = "yes"; then
10987     cat >> confdefs.h <<\EOF
10988 #define wxUSE_IOSTREAMH 1
10989 EOF
10990
10991   else
10992     
10993     ac_ext=C
10994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10995 ac_cpp='$CXXCPP $CPPFLAGS'
10996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10998 cross_compiling=$ac_cv_prog_cxx_cross
10999
11000
11001     for ac_hdr in iostream
11002 do
11003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11005 echo "configure:11006: checking for $ac_hdr" >&5
11006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11007   echo $ac_n "(cached) $ac_c" 1>&6
11008 else
11009   cat > conftest.$ac_ext <<EOF
11010 #line 11011 "configure"
11011 #include "confdefs.h"
11012 #include <$ac_hdr>
11013 EOF
11014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11015 { (eval echo configure:11016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11017 if test -z "$ac_err"; then
11018   rm -rf conftest*
11019   eval "ac_cv_header_$ac_safe=yes"
11020 else
11021   echo "$ac_err" >&5
11022   echo "configure: failed program was:" >&5
11023   cat conftest.$ac_ext >&5
11024   rm -rf conftest*
11025   eval "ac_cv_header_$ac_safe=no"
11026 fi
11027 rm -f conftest*
11028 fi
11029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11030   echo "$ac_t""yes" 1>&6
11031     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11032   cat >> confdefs.h <<EOF
11033 #define $ac_tr_hdr 1
11034 EOF
11035  
11036 else
11037   echo "$ac_t""no" 1>&6
11038 fi
11039 done
11040
11041
11042     if test "$ac_cv_header_iostream" = "yes" ; then
11043       :
11044     else
11045       cat >> confdefs.h <<\EOF
11046 #define wxUSE_IOSTREAMH 1
11047 EOF
11048
11049     fi
11050
11051     ac_ext=c
11052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11053 ac_cpp='$CPP $CPPFLAGS'
11054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11056 cross_compiling=$ac_cv_prog_cc_cross
11057
11058   fi
11059
11060
11061
11062   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11063 echo "configure:11064: checking if C++ compiler supports bool" >&5
11064 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11065   echo $ac_n "(cached) $ac_c" 1>&6
11066 else
11067   
11068     
11069     ac_ext=C
11070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11071 ac_cpp='$CXXCPP $CPPFLAGS'
11072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11074 cross_compiling=$ac_cv_prog_cxx_cross
11075
11076
11077     cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080
11081       
11082 int main() {
11083
11084         bool b = true;
11085
11086         return 0;
11087       
11088 ; return 0; }
11089 EOF
11090 if { (eval echo configure:11091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11091   rm -rf conftest*
11092   
11093         wx_cv_cpp_bool=yes
11094       
11095 else
11096   echo "configure: failed program was:" >&5
11097   cat conftest.$ac_ext >&5
11098   rm -rf conftest*
11099   
11100         wx_cv_cpp_bool=no
11101       
11102     
11103 fi
11104 rm -f conftest*
11105
11106     ac_ext=c
11107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11108 ac_cpp='$CPP $CPPFLAGS'
11109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11111 cross_compiling=$ac_cv_prog_cc_cross
11112
11113   
11114 fi
11115
11116 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11117
11118   if test "$wx_cv_cpp_bool" = "yes"; then
11119     cat >> confdefs.h <<\EOF
11120 #define HAVE_BOOL 1
11121 EOF
11122
11123   fi
11124
11125
11126
11127   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11128 echo "configure:11129: checking if C++ compiler supports the explicit keyword" >&5
11129 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11130   echo $ac_n "(cached) $ac_c" 1>&6
11131 else
11132   
11133     
11134     ac_ext=C
11135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11136 ac_cpp='$CXXCPP $CPPFLAGS'
11137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11139 cross_compiling=$ac_cv_prog_cxx_cross
11140
11141
11142             cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145
11146         class Foo { public: explicit Foo(int) {} };
11147       
11148 int main() {
11149
11150         return 0;
11151       
11152 ; return 0; }
11153 EOF
11154 if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11155   rm -rf conftest*
11156   
11157         cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160
11161                 class Foo { public: explicit Foo(int) {} };
11162                 static void TakeFoo(const Foo& foo) { }
11163             
11164 int main() {
11165
11166                 TakeFoo(17);
11167                 return 0;
11168             
11169 ; return 0; }
11170 EOF
11171 if { (eval echo configure:11172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11172   rm -rf conftest*
11173   wx_cv_explicit=no
11174 else
11175   echo "configure: failed program was:" >&5
11176   cat conftest.$ac_ext >&5
11177   rm -rf conftest*
11178   wx_cv_explicit=yes
11179         
11180 fi
11181 rm -f conftest*
11182       
11183 else
11184   echo "configure: failed program was:" >&5
11185   cat conftest.$ac_ext >&5
11186   rm -rf conftest*
11187   wx_cv_explicit=no
11188     
11189 fi
11190 rm -f conftest*
11191
11192     ac_ext=c
11193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11194 ac_cpp='$CPP $CPPFLAGS'
11195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11197 cross_compiling=$ac_cv_prog_cc_cross
11198
11199   
11200 fi
11201
11202 echo "$ac_t""$wx_cv_explicit" 1>&6
11203
11204   if test "$wx_cv_explicit" = "yes"; then
11205     cat >> confdefs.h <<\EOF
11206 #define HAVE_EXPLICIT 1
11207 EOF
11208
11209   fi
11210
11211
11212 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11213 echo "configure:11214: checking whether the compiler supports const_cast<>" >&5
11214 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11215   echo $ac_n "(cached) $ac_c" 1>&6
11216 else
11217   
11218  ac_ext=C
11219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11220 ac_cpp='$CXXCPP $CPPFLAGS'
11221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11223 cross_compiling=$ac_cv_prog_cxx_cross
11224
11225  cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11228
11229 int main() {
11230 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11231 ; return 0; }
11232 EOF
11233 if { (eval echo configure:11234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11234   rm -rf conftest*
11235   ac_cv_cxx_const_cast=yes
11236 else
11237   echo "configure: failed program was:" >&5
11238   cat conftest.$ac_ext >&5
11239   rm -rf conftest*
11240   ac_cv_cxx_const_cast=no
11241 fi
11242 rm -f conftest*
11243  ac_ext=c
11244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11245 ac_cpp='$CPP $CPPFLAGS'
11246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11248 cross_compiling=$ac_cv_prog_cc_cross
11249
11250
11251 fi
11252
11253 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11254 if test "$ac_cv_cxx_const_cast" = yes; then
11255   cat >> confdefs.h <<\EOF
11256 #define HAVE_CONST_CAST 
11257 EOF
11258
11259 fi
11260
11261
11262
11263 SEARCH_INCLUDE="\
11264     /usr/local/include        \
11265                               \
11266     /usr/Motif-1.2/include    \
11267     /usr/Motif-2.1/include    \
11268                               \
11269     /usr/include/Motif1.2     \
11270     /opt/xpm/include/X11      \
11271     /opt/GBxpm/include/       \
11272     /opt/GBxpm/X11/include/   \
11273                               \
11274     /usr/Motif1.2/include     \
11275     /usr/dt/include           \
11276     /usr/openwin/include      \
11277                               \
11278     /usr/include/Xm           \
11279                               \
11280     /usr/X11R6/include        \
11281     /usr/X11R6.4/include      \
11282     /usr/X11R5/include        \
11283     /usr/X11R4/include        \
11284                               \
11285     /usr/include/X11R6        \
11286     /usr/include/X11R5        \
11287     /usr/include/X11R4        \
11288                               \
11289     /usr/local/X11R6/include  \
11290     /usr/local/X11R5/include  \
11291     /usr/local/X11R4/include  \
11292                               \
11293     /usr/local/include/X11R6  \
11294     /usr/local/include/X11R5  \
11295     /usr/local/include/X11R4  \
11296                               \
11297     /usr/X11/include          \
11298     /usr/include/X11          \
11299     /usr/local/X11/include    \
11300     /usr/local/include/X11    \
11301                               \
11302     /usr/X386/include         \
11303     /usr/x386/include         \
11304     /usr/XFree86/include/X11  \
11305                               \
11306     X:/XFree86/include        \
11307     X:/XFree86/include/X11    \
11308                               \
11309     /usr/include/gtk          \
11310     /usr/local/include/gtk    \
11311     /usr/include/glib         \
11312     /usr/local/include/glib   \
11313                               \
11314     /usr/include/qt           \
11315     /usr/local/include/qt     \
11316                               \
11317     /usr/include/windows      \
11318     /usr/include/wine         \
11319     /usr/local/include/wine   \
11320                               \
11321     /usr/unsupported/include  \
11322     /usr/athena/include       \
11323     /usr/local/x11r5/include  \
11324     /usr/lpp/Xamples/include  \
11325                               \
11326     /usr/openwin/share/include"
11327
11328 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11329
11330
11331 cat > confcache <<\EOF
11332 # This file is a shell script that caches the results of configure
11333 # tests run on this system so they can be shared between configure
11334 # scripts and configure runs.  It is not useful on other systems.
11335 # If it contains results you don't want to keep, you may remove or edit it.
11336 #
11337 # By default, configure uses ./config.cache as the cache file,
11338 # creating it if it does not exist already.  You can give configure
11339 # the --cache-file=FILE option to use a different cache file; that is
11340 # what configure does when it calls configure scripts in
11341 # subdirectories, so they share the cache.
11342 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11343 # config.status only pays attention to the cache file if you give it the
11344 # --recheck option to rerun configure.
11345 #
11346 EOF
11347 # The following way of writing the cache mishandles newlines in values,
11348 # but we know of no workaround that is simple, portable, and efficient.
11349 # So, don't put newlines in cache variables' values.
11350 # Ultrix sh set writes to stderr and can't be redirected directly,
11351 # and sets the high bit in the cache file unless we assign to the vars.
11352 (set) 2>&1 |
11353   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11354   *ac_space=\ *)
11355     # `set' does not quote correctly, so add quotes (double-quote substitution
11356     # turns \\\\ into \\, and sed turns \\ into \).
11357     sed -n \
11358       -e "s/'/'\\\\''/g" \
11359       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11360     ;;
11361   *)
11362     # `set' quotes correctly as required by POSIX, so do not add quotes.
11363     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11364     ;;
11365   esac >> confcache
11366 if cmp -s $cache_file confcache; then
11367   :
11368 else
11369   if test -w $cache_file; then
11370     echo "updating cache $cache_file"
11371     cat confcache > $cache_file
11372   else
11373     echo "not updating unwritable cache $cache_file"
11374   fi
11375 fi
11376 rm -f confcache
11377
11378
11379 if test "$USE_LINUX" = 1; then
11380     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11381 echo "configure:11382: checking for glibc 2.1 or later" >&5
11382 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11383   echo $ac_n "(cached) $ac_c" 1>&6
11384 else
11385   
11386         cat > conftest.$ac_ext <<EOF
11387 #line 11388 "configure"
11388 #include "confdefs.h"
11389 #include <features.h>
11390 int main() {
11391
11392                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11393                     #error not glibc2.1
11394                 #endif
11395             
11396 ; return 0; }
11397 EOF
11398 if { (eval echo configure:11399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11399   rm -rf conftest*
11400   
11401                 wx_cv_lib_glibc21=yes
11402             
11403 else
11404   echo "configure: failed program was:" >&5
11405   cat conftest.$ac_ext >&5
11406   rm -rf conftest*
11407   
11408                 wx_cv_lib_glibc21=no
11409             
11410         
11411 fi
11412 rm -f conftest*
11413     
11414 fi
11415
11416 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11417     if test "$wx_cv_lib_glibc21" = "yes"; then
11418         cat >> confdefs.h <<\EOF
11419 #define wxHAVE_GLIBC2 1
11420 EOF
11421
11422     fi
11423 fi
11424
11425 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11426     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11427         cat >> confdefs.h <<\EOF
11428 #define _GNU_SOURCE 1
11429 EOF
11430
11431     fi
11432 fi
11433
11434
11435
11436 REGEX_INCLUDE=
11437 if test "$wxUSE_REGEX" != "no"; then
11438     cat >> confdefs.h <<\EOF
11439 #define wxUSE_REGEX 1
11440 EOF
11441
11442
11443     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11444                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11445 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11446 echo "configure:11447: checking for regex.h" >&5
11447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11448   echo $ac_n "(cached) $ac_c" 1>&6
11449 else
11450   cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11453 #include <regex.h>
11454 EOF
11455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11456 { (eval echo configure:11457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11458 if test -z "$ac_err"; then
11459   rm -rf conftest*
11460   eval "ac_cv_header_$ac_safe=yes"
11461 else
11462   echo "$ac_err" >&5
11463   echo "configure: failed program was:" >&5
11464   cat conftest.$ac_ext >&5
11465   rm -rf conftest*
11466   eval "ac_cv_header_$ac_safe=no"
11467 fi
11468 rm -f conftest*
11469 fi
11470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11471   echo "$ac_t""yes" 1>&6
11472   for ac_func in regcomp
11473 do
11474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11475 echo "configure:11476: checking for $ac_func" >&5
11476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11477   echo $ac_n "(cached) $ac_c" 1>&6
11478 else
11479   cat > conftest.$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11482 /* System header to define __stub macros and hopefully few prototypes,
11483     which can conflict with char $ac_func(); below.  */
11484 #include <assert.h>
11485 /* Override any gcc2 internal prototype to avoid an error.  */
11486 /* We use char because int might match the return type of a gcc2
11487     builtin and then its argument prototype would still apply.  */
11488 char $ac_func();
11489
11490 int main() {
11491
11492 /* The GNU C library defines this for functions which it implements
11493     to always fail with ENOSYS.  Some functions are actually named
11494     something starting with __ and the normal name is an alias.  */
11495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11496 choke me
11497 #else
11498 $ac_func();
11499 #endif
11500
11501 ; return 0; }
11502 EOF
11503 if { (eval echo configure:11504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11504   rm -rf conftest*
11505   eval "ac_cv_func_$ac_func=yes"
11506 else
11507   echo "configure: failed program was:" >&5
11508   cat conftest.$ac_ext >&5
11509   rm -rf conftest*
11510   eval "ac_cv_func_$ac_func=no"
11511 fi
11512 rm -f conftest*
11513 fi
11514
11515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11516   echo "$ac_t""yes" 1>&6
11517     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11518   cat >> confdefs.h <<EOF
11519 #define $ac_tr_func 1
11520 EOF
11521  
11522 else
11523   echo "$ac_t""no" 1>&6
11524 fi
11525 done
11526
11527 else
11528   echo "$ac_t""no" 1>&6
11529 fi
11530
11531
11532         if test "x$ac_cv_func_regcomp" != "xyes"; then
11533             if test "$wxUSE_REGEX" = "sys" ; then
11534                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11535             else
11536                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11537                 wxUSE_REGEX=builtin
11538             fi
11539         else
11540                         wxUSE_REGEX=sys
11541         fi
11542     fi
11543
11544     if test "$wxUSE_REGEX" = "builtin" ; then
11545         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11546     fi
11547 fi
11548
11549
11550 ZLIB_INCLUDE=
11551 ZLIB_LINK=
11552 if test "$wxUSE_ZLIB" != "no" ; then
11553     cat >> confdefs.h <<\EOF
11554 #define wxUSE_ZLIB 1
11555 EOF
11556
11557
11558     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11559                                                 if test "$USE_DARWIN" = 1; then
11560             system_zlib_h_ok="yes"
11561         else
11562                                                                                     echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11563 echo "configure:11564: checking for zlib.h >= 1.1.4" >&5
11564 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11565   echo $ac_n "(cached) $ac_c" 1>&6
11566 else
11567   if test "$cross_compiling" = yes; then
11568                       unset ac_cv_header_zlib_h
11569                 
11570 else
11571   cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11574
11575                                                 #include <zlib.h>
11576                         #include <stdio.h>
11577
11578                                                 
11579                         int main()
11580                         {
11581                             FILE *f=fopen("conftestval", "w");
11582                             if (!f) exit(1);
11583                             fprintf(f, "%s",
11584                                     ZLIB_VERSION[0] == '1' &&
11585                                     (ZLIB_VERSION[2] > '1' ||
11586                                     (ZLIB_VERSION[2] == '1' &&
11587                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11588                             exit(0);
11589                         }
11590                         
11591                     
11592 EOF
11593 if { (eval echo configure:11594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11594 then
11595   ac_cv_header_zlib_h=`cat conftestval`
11596 else
11597   echo "configure: failed program was:" >&5
11598   cat conftest.$ac_ext >&5
11599   rm -fr conftest*
11600   ac_cv_header_zlib_h=no
11601 fi
11602 rm -fr conftest*
11603 fi
11604
11605             
11606 fi
11607
11608 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11609                                     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11610 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11611 echo "configure:11612: checking for zlib.h" >&5
11612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11613   echo $ac_n "(cached) $ac_c" 1>&6
11614 else
11615   cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure"
11617 #include "confdefs.h"
11618 #include <zlib.h>
11619 EOF
11620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11621 { (eval echo configure:11622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11623 if test -z "$ac_err"; then
11624   rm -rf conftest*
11625   eval "ac_cv_header_$ac_safe=yes"
11626 else
11627   echo "$ac_err" >&5
11628   echo "configure: failed program was:" >&5
11629   cat conftest.$ac_ext >&5
11630   rm -rf conftest*
11631   eval "ac_cv_header_$ac_safe=no"
11632 fi
11633 rm -f conftest*
11634 fi
11635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11636   echo "$ac_t""yes" 1>&6
11637   :
11638 else
11639   echo "$ac_t""no" 1>&6
11640 fi
11641
11642
11643             system_zlib_h_ok=$ac_cv_header_zlib_h
11644         fi
11645
11646         if test "$system_zlib_h_ok" = "yes"; then
11647             echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11648 echo "configure:11649: checking for deflate in -lz" >&5
11649 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11651   echo $ac_n "(cached) $ac_c" 1>&6
11652 else
11653   ac_save_LIBS="$LIBS"
11654 LIBS="-lz  $LIBS"
11655 cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11658 /* Override any gcc2 internal prototype to avoid an error.  */
11659 /* We use char because int might match the return type of a gcc2
11660     builtin and then its argument prototype would still apply.  */
11661 char deflate();
11662
11663 int main() {
11664 deflate()
11665 ; return 0; }
11666 EOF
11667 if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11668   rm -rf conftest*
11669   eval "ac_cv_lib_$ac_lib_var=yes"
11670 else
11671   echo "configure: failed program was:" >&5
11672   cat conftest.$ac_ext >&5
11673   rm -rf conftest*
11674   eval "ac_cv_lib_$ac_lib_var=no"
11675 fi
11676 rm -f conftest*
11677 LIBS="$ac_save_LIBS"
11678
11679 fi
11680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11681   echo "$ac_t""yes" 1>&6
11682   ZLIB_LINK=" -lz"
11683 else
11684   echo "$ac_t""no" 1>&6
11685 fi
11686
11687         fi
11688
11689         if test "x$ZLIB_LINK" = "x" ; then
11690             if test "$wxUSE_ZLIB" = "sys" ; then
11691                 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11692             else
11693                 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11694                 wxUSE_ZLIB=builtin
11695             fi
11696         else
11697                         wxUSE_ZLIB=sys
11698         fi
11699     fi
11700
11701     if test "$wxUSE_ZLIB" = "builtin" ; then
11702         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11703     fi
11704 fi
11705
11706
11707 PNG_INCLUDE=
11708 PNG_LINK=
11709 if test "$wxUSE_LIBPNG" != "no" ; then
11710     cat >> confdefs.h <<\EOF
11711 #define wxUSE_LIBPNG 1
11712 EOF
11713
11714
11715     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11716         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11717         wxUSE_LIBPNG=sys
11718     fi
11719
11720                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11721         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11722         wxUSE_LIBPNG=builtin
11723     fi
11724
11725     if test "$wxUSE_MGL" != 1 ; then
11726                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11727                                     echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11728 echo "configure:11729: checking for png.h > 0.90" >&5
11729 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11730   echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732   if test "$cross_compiling" = yes; then
11733                       unset ac_cv_header_png_h
11734                 
11735 else
11736   cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739
11740                                                 #include <png.h>
11741                         #include <stdio.h>
11742
11743                         int main()
11744                         {
11745                             FILE *f=fopen("conftestval", "w");
11746                             if (!f) exit(1);
11747                             fprintf(f, "%s",
11748                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
11749                             exit(0);
11750                         }
11751                     
11752 EOF
11753 if { (eval echo configure:11754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11754 then
11755   ac_cv_header_png_h=`cat conftestval`
11756 else
11757   echo "configure: failed program was:" >&5
11758   cat conftest.$ac_ext >&5
11759   rm -fr conftest*
11760   ac_cv_header_png_h=no
11761 fi
11762 rm -fr conftest*
11763 fi
11764
11765             
11766 fi
11767
11768 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11769             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11770 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11771 echo "configure:11772: checking for png.h" >&5
11772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11773   echo $ac_n "(cached) $ac_c" 1>&6
11774 else
11775   cat > conftest.$ac_ext <<EOF
11776 #line 11777 "configure"
11777 #include "confdefs.h"
11778 #include <png.h>
11779 EOF
11780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11781 { (eval echo configure:11782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11783 if test -z "$ac_err"; then
11784   rm -rf conftest*
11785   eval "ac_cv_header_$ac_safe=yes"
11786 else
11787   echo "$ac_err" >&5
11788   echo "configure: failed program was:" >&5
11789   cat conftest.$ac_ext >&5
11790   rm -rf conftest*
11791   eval "ac_cv_header_$ac_safe=no"
11792 fi
11793 rm -f conftest*
11794 fi
11795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11796   echo "$ac_t""yes" 1>&6
11797   :
11798 else
11799   echo "$ac_t""no" 1>&6
11800 fi
11801
11802
11803             if test "$ac_cv_header_png_h" = "yes"; then
11804                 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11805 echo "configure:11806: checking for png_check_sig in -lpng" >&5
11806 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11808   echo $ac_n "(cached) $ac_c" 1>&6
11809 else
11810   ac_save_LIBS="$LIBS"
11811 LIBS="-lpng -lz -lm $LIBS"
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 /* Override any gcc2 internal prototype to avoid an error.  */
11816 /* We use char because int might match the return type of a gcc2
11817     builtin and then its argument prototype would still apply.  */
11818 char png_check_sig();
11819
11820 int main() {
11821 png_check_sig()
11822 ; return 0; }
11823 EOF
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11825   rm -rf conftest*
11826   eval "ac_cv_lib_$ac_lib_var=yes"
11827 else
11828   echo "configure: failed program was:" >&5
11829   cat conftest.$ac_ext >&5
11830   rm -rf conftest*
11831   eval "ac_cv_lib_$ac_lib_var=no"
11832 fi
11833 rm -f conftest*
11834 LIBS="$ac_save_LIBS"
11835
11836 fi
11837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11838   echo "$ac_t""yes" 1>&6
11839   PNG_LINK=" -lpng"
11840 else
11841   echo "$ac_t""no" 1>&6
11842 fi
11843
11844             fi
11845
11846             if test "x$PNG_LINK" = "x" ; then
11847                 if test "$wxUSE_LIBPNG" = "sys" ; then
11848                     { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11849                 else
11850                     echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11851                     wxUSE_LIBPNG=builtin
11852                 fi
11853             else
11854                                 wxUSE_LIBPNG=sys
11855             fi
11856         fi
11857     fi
11858
11859     if test "$wxUSE_LIBPNG" = "builtin" ; then
11860         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11861     fi
11862
11863     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11864 fi
11865
11866
11867 JPEG_INCLUDE=
11868 JPEG_LINK=
11869 if test "$wxUSE_LIBJPEG" != "no" ; then
11870     cat >> confdefs.h <<\EOF
11871 #define wxUSE_LIBJPEG 1
11872 EOF
11873
11874
11875     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11876         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11877         wxUSE_LIBJPEG=sys
11878     fi
11879
11880     if test "$wxUSE_MGL" != 1 ; then
11881                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11882                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11883 echo "configure:11884: checking for jpeglib.h" >&5
11884             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11885   echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11887   cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890
11891                         #undef HAVE_STDLIB_H
11892                         #include <stdio.h>
11893                         #include <jpeglib.h>
11894                     
11895 int main() {
11896
11897                     
11898 ; return 0; }
11899 EOF
11900 if { (eval echo configure:11901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11901   rm -rf conftest*
11902   ac_cv_header_jpeglib_h=yes
11903 else
11904   echo "configure: failed program was:" >&5
11905   cat conftest.$ac_ext >&5
11906   rm -rf conftest*
11907   ac_cv_header_jpeglib_h=no
11908                 
11909 fi
11910 rm -f conftest*
11911             
11912 fi
11913
11914             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11915
11916             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11917                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11918 echo "configure:11919: checking for jpeg_read_header in -ljpeg" >&5
11919 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11921   echo $ac_n "(cached) $ac_c" 1>&6
11922 else
11923   ac_save_LIBS="$LIBS"
11924 LIBS="-ljpeg  $LIBS"
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928 /* Override any gcc2 internal prototype to avoid an error.  */
11929 /* We use char because int might match the return type of a gcc2
11930     builtin and then its argument prototype would still apply.  */
11931 char jpeg_read_header();
11932
11933 int main() {
11934 jpeg_read_header()
11935 ; return 0; }
11936 EOF
11937 if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11938   rm -rf conftest*
11939   eval "ac_cv_lib_$ac_lib_var=yes"
11940 else
11941   echo "configure: failed program was:" >&5
11942   cat conftest.$ac_ext >&5
11943   rm -rf conftest*
11944   eval "ac_cv_lib_$ac_lib_var=no"
11945 fi
11946 rm -f conftest*
11947 LIBS="$ac_save_LIBS"
11948
11949 fi
11950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11951   echo "$ac_t""yes" 1>&6
11952   JPEG_LINK=" -ljpeg"
11953 else
11954   echo "$ac_t""no" 1>&6
11955 fi
11956
11957             fi
11958
11959             if test "x$JPEG_LINK" = "x" ; then
11960                 if test "$wxUSE_LIBJPEG" = "sys" ; then
11961                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11962                 else
11963                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11964                     wxUSE_LIBJPEG=builtin
11965                 fi
11966             else
11967                                 wxUSE_LIBJPEG=sys
11968             fi
11969         fi
11970     fi
11971
11972     if test "$wxUSE_LIBJPEG" = "builtin" ; then
11973         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11974     fi
11975 fi
11976
11977
11978 TIFF_INCLUDE=
11979 TIFF_LINK=
11980 TIFF_PREREQ_LINKS=-lm
11981 if test "$wxUSE_LIBTIFF" != "no" ; then
11982     cat >> confdefs.h <<\EOF
11983 #define wxUSE_LIBTIFF 1
11984 EOF
11985
11986
11987     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11988                         if test "$wxUSE_LIBJPEG" = "sys"; then
11989             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
11990         fi
11991         if test "$wxUSE_ZLIB" = "sys"; then
11992             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
11993         fi
11994         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11995 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11996 echo "configure:11997: checking for tiffio.h" >&5
11997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11998   echo $ac_n "(cached) $ac_c" 1>&6
11999 else
12000   cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 #include <tiffio.h>
12004 EOF
12005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12006 { (eval echo configure:12007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12008 if test -z "$ac_err"; then
12009   rm -rf conftest*
12010   eval "ac_cv_header_$ac_safe=yes"
12011 else
12012   echo "$ac_err" >&5
12013   echo "configure: failed program was:" >&5
12014   cat conftest.$ac_ext >&5
12015   rm -rf conftest*
12016   eval "ac_cv_header_$ac_safe=no"
12017 fi
12018 rm -f conftest*
12019 fi
12020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12021   echo "$ac_t""yes" 1>&6
12022   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12023 echo "configure:12024: checking for TIFFError in -ltiff" >&5
12024 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12026   echo $ac_n "(cached) $ac_c" 1>&6
12027 else
12028   ac_save_LIBS="$LIBS"
12029 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12030 cat > conftest.$ac_ext <<EOF
12031 #line 12032 "configure"
12032 #include "confdefs.h"
12033 /* Override any gcc2 internal prototype to avoid an error.  */
12034 /* We use char because int might match the return type of a gcc2
12035     builtin and then its argument prototype would still apply.  */
12036 char TIFFError();
12037
12038 int main() {
12039 TIFFError()
12040 ; return 0; }
12041 EOF
12042 if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12043   rm -rf conftest*
12044   eval "ac_cv_lib_$ac_lib_var=yes"
12045 else
12046   echo "configure: failed program was:" >&5
12047   cat conftest.$ac_ext >&5
12048   rm -rf conftest*
12049   eval "ac_cv_lib_$ac_lib_var=no"
12050 fi
12051 rm -f conftest*
12052 LIBS="$ac_save_LIBS"
12053
12054 fi
12055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12056   echo "$ac_t""yes" 1>&6
12057   TIFF_LINK=" -ltiff"
12058 else
12059   echo "$ac_t""no" 1>&6
12060 fi
12061
12062                        
12063 else
12064   echo "$ac_t""no" 1>&6
12065 fi
12066
12067
12068         if test "x$TIFF_LINK" = "x" ; then
12069             if test "$wxUSE_LIBTIFF" = "sys" ; then
12070                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12071             else
12072                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12073                 wxUSE_LIBTIFF=builtin
12074             fi
12075         else
12076                         wxUSE_LIBTIFF=sys
12077         fi
12078     fi
12079
12080     if test "$wxUSE_LIBTIFF" = "builtin" ; then
12081         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12082     fi
12083 fi
12084
12085
12086 AFMINSTALL=
12087 WIN32INSTALL=
12088
12089 TOOLKIT=
12090 TOOLKIT_INCLUDE=
12091 WIDGET_SET=
12092
12093 if test "$USE_WIN32" = 1 ; then
12094     for ac_hdr in w32api.h
12095 do
12096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12098 echo "configure:12099: checking for $ac_hdr" >&5
12099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12100   echo $ac_n "(cached) $ac_c" 1>&6
12101 else
12102   cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 #include <$ac_hdr>
12106 EOF
12107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12108 { (eval echo configure:12109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12110 if test -z "$ac_err"; then
12111   rm -rf conftest*
12112   eval "ac_cv_header_$ac_safe=yes"
12113 else
12114   echo "$ac_err" >&5
12115   echo "configure: failed program was:" >&5
12116   cat conftest.$ac_ext >&5
12117   rm -rf conftest*
12118   eval "ac_cv_header_$ac_safe=no"
12119 fi
12120 rm -f conftest*
12121 fi
12122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12123   echo "$ac_t""yes" 1>&6
12124     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12125   cat >> confdefs.h <<EOF
12126 #define $ac_tr_hdr 1
12127 EOF
12128  
12129 else
12130   echo "$ac_t""no" 1>&6
12131 fi
12132 done
12133
12134     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12135 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12136 echo "configure:12137: checking for windows.h" >&5
12137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12138   echo $ac_n "(cached) $ac_c" 1>&6
12139 else
12140   cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 #include <windows.h>
12144 EOF
12145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12146 { (eval echo configure:12147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12148 if test -z "$ac_err"; then
12149   rm -rf conftest*
12150   eval "ac_cv_header_$ac_safe=yes"
12151 else
12152   echo "$ac_err" >&5
12153   echo "configure: failed program was:" >&5
12154   cat conftest.$ac_ext >&5
12155   rm -rf conftest*
12156   eval "ac_cv_header_$ac_safe=no"
12157 fi
12158 rm -f conftest*
12159 fi
12160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12161   echo "$ac_t""yes" 1>&6
12162   :
12163 else
12164   echo "$ac_t""no" 1>&6
12165
12166         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12167     
12168 fi
12169
12170
12171         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12172 echo "configure:12173: checking if w32api has good enough MSIE support" >&5
12173 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12174   echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176   
12177       cat > conftest.$ac_ext <<EOF
12178 #line 12179 "configure"
12179 #include "confdefs.h"
12180 #include <w32api.h>
12181 int main() {
12182
12183                        #define wxCHECK_W32API_VERSION( major, minor ) \
12184                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12185                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
12186                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12187
12188                        #if !wxCHECK_W32API_VERSION(1,1)
12189                        #error You need w32api 1.1 or newer
12190                        #endif
12191                      
12192 ; return 0; }
12193 EOF
12194 if { (eval echo configure:12195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12195   rm -rf conftest*
12196   
12197                         wx_cv_w32api_win32_ie=yes
12198                      
12199 else
12200   echo "configure: failed program was:" >&5
12201   cat conftest.$ac_ext >&5
12202   rm -rf conftest*
12203   
12204                         wx_cv_w32api_win32_ie=no
12205                      
12206 fi
12207 rm -f conftest*
12208     
12209 fi
12210
12211 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12212     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12213         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12214     fi
12215
12216             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12217
12218     case "${host}" in
12219         *-*-cygwin* )
12220                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12221             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12222     esac
12223
12224         if test "$wxUSE_ODBC" = "yes" ; then
12225         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12226     fi
12227
12228     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12229     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12230
12231         WIN32INSTALL=win32install
12232 fi
12233
12234 if test "$USE_DARWIN" = 1; then
12235             if test "$wxUSE_PRECOMP" = "yes"; then
12236         CPPFLAGS="$CPPFLAGS -cpp-precomp"
12237     else
12238         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12239     fi
12240 fi
12241
12242 if test "$wxUSE_GUI" = "yes"; then
12243     USE_GUI=1
12244
12245     GUI_TK_LIBRARY=
12246
12247     WXGTK12=
12248     WXGTK127=
12249     WXGTK20=
12250
12251     if test "$wxUSE_MSW" = 1 ; then
12252         TOOLKIT=MSW
12253         GUIDIST=MSW_DIST
12254
12255                         LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12256     fi
12257
12258     if test "$wxUSE_GTK" = 1; then
12259         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12260 echo "configure:12261: checking for GTK+ version" >&5
12261
12262         gtk_version_cached=1
12263         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12264   echo $ac_n "(cached) $ac_c" 1>&6
12265 else
12266   
12267                                                 gtk_version_cached=0
12268                 echo "$ac_t""" 1>&6
12269
12270                                                 GTK_MODULES=
12271                 if test "$wxUSE_THREADS" = "yes"; then
12272                     GTK_MODULES=gthread
12273                 fi
12274
12275                                                 wx_cv_lib_gtk=
12276                 if test "x$wxUSE_GTK2" = "xyes"; then
12277                     # Check whether --enable-gtktest or --disable-gtktest was given.
12278 if test "${enable_gtktest+set}" = set; then
12279   enableval="$enable_gtktest"
12280   :
12281 else
12282   enable_gtktest=yes
12283 fi
12284
12285
12286   pkg_config_args=gtk+-2.0
12287   for module in . $GTK_MODULES
12288   do
12289       case "$module" in
12290          gthread) 
12291              pkg_config_args="$pkg_config_args gthread-2.0"
12292          ;;
12293       esac
12294   done
12295
12296   no_gtk=""
12297
12298   # Extract the first word of "pkg-config", so it can be a program name with args.
12299 set dummy pkg-config; ac_word=$2
12300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12301 echo "configure:12302: checking for $ac_word" >&5
12302 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12303   echo $ac_n "(cached) $ac_c" 1>&6
12304 else
12305   case "$PKG_CONFIG" in
12306   /*)
12307   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12308   ;;
12309   ?:/*)                  
12310   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12311   ;;
12312   *)
12313   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12314   ac_dummy="$PATH"
12315   for ac_dir in $ac_dummy; do 
12316     test -z "$ac_dir" && ac_dir=.
12317     if test -f $ac_dir/$ac_word; then
12318       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12319       break
12320     fi
12321   done
12322   IFS="$ac_save_ifs"
12323   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12324   ;;
12325 esac
12326 fi
12327 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12328 if test -n "$PKG_CONFIG"; then
12329   echo "$ac_t""$PKG_CONFIG" 1>&6
12330 else
12331   echo "$ac_t""no" 1>&6
12332 fi
12333
12334
12335   if test x$PKG_CONFIG != xno ; then
12336     if pkg-config --atleast-pkgconfig-version 0.7 ; then
12337       :
12338     else
12339       echo *** pkg-config too old; version 0.7 or better required.
12340       no_gtk=yes
12341       PKG_CONFIG=no
12342     fi
12343   else
12344     no_gtk=yes
12345   fi
12346
12347   min_gtk_version=2.0.0
12348   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12349 echo "configure:12350: checking for GTK+ - version >= $min_gtk_version" >&5
12350
12351   if test x$PKG_CONFIG != xno ; then
12352     ## don't try to run the test against uninstalled libtool libs
12353     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12354           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12355           enable_gtktest=no
12356     fi
12357
12358     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12359           :
12360     else
12361           no_gtk=yes
12362     fi
12363   fi
12364
12365   if test x"$no_gtk" = x ; then
12366     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12367     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12368     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12369            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12370     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12371            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12372     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12373            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12374     if test "x$enable_gtktest" = "xyes" ; then
12375       ac_save_CFLAGS="$CFLAGS"
12376       ac_save_LIBS="$LIBS"
12377       CFLAGS="$CFLAGS $GTK_CFLAGS"
12378       LIBS="$GTK_LIBS $LIBS"
12379       rm -f conf.gtktest
12380       if test "$cross_compiling" = yes; then
12381   echo $ac_n "cross compiling; assumed OK... $ac_c"
12382 else
12383   cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386
12387 #include <gtk/gtk.h>
12388 #include <stdio.h>
12389 #include <stdlib.h>
12390
12391 int 
12392 main ()
12393 {
12394   int major, minor, micro;
12395   char *tmp_version;
12396
12397   system ("touch conf.gtktest");
12398
12399   /* HP/UX 9 (%@#!) writes to sscanf strings */
12400   tmp_version = g_strdup("$min_gtk_version");
12401   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12402      printf("%s, bad version string\n", "$min_gtk_version");
12403      exit(1);
12404    }
12405
12406   if ((gtk_major_version != $gtk_config_major_version) ||
12407       (gtk_minor_version != $gtk_config_minor_version) ||
12408       (gtk_micro_version != $gtk_config_micro_version))
12409     {
12410       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12411              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12412              gtk_major_version, gtk_minor_version, gtk_micro_version);
12413       printf ("*** was found! If pkg-config was correct, then it is best\n");
12414       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12415       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12416       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12417       printf("*** required on your system.\n");
12418       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12419       printf("*** to point to the correct configuration files\n");
12420     } 
12421   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12422            (gtk_minor_version != GTK_MINOR_VERSION) ||
12423            (gtk_micro_version != GTK_MICRO_VERSION))
12424     {
12425       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12426              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12427       printf("*** library (version %d.%d.%d)\n",
12428              gtk_major_version, gtk_minor_version, gtk_micro_version);
12429     }
12430   else
12431     {
12432       if ((gtk_major_version > major) ||
12433         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12434         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12435       {
12436         return 0;
12437        }
12438      else
12439       {
12440         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12441                gtk_major_version, gtk_minor_version, gtk_micro_version);
12442         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12443                major, minor, micro);
12444         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12445         printf("***\n");
12446         printf("*** If you have already installed a sufficiently new version, this error\n");
12447         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12448         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12449         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12450         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12451         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12452         printf("*** so that the correct libraries are found at run-time))\n");
12453       }
12454     }
12455   return 1;
12456 }
12457
12458 EOF
12459 if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12460 then
12461   :
12462 else
12463   echo "configure: failed program was:" >&5
12464   cat conftest.$ac_ext >&5
12465   rm -fr conftest*
12466   no_gtk=yes
12467 fi
12468 rm -fr conftest*
12469 fi
12470
12471        CFLAGS="$ac_save_CFLAGS"
12472        LIBS="$ac_save_LIBS"
12473      fi
12474   fi
12475   if test "x$no_gtk" = x ; then
12476      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12477      wx_cv_lib_gtk=2.0     
12478   else
12479      echo "$ac_t""no" 1>&6
12480      if test "$PKG_CONFIG" = "no" ; then
12481        echo "*** A new enough version of pkg-config was not found."
12482        echo "*** See http://pkgconfig.sourceforge.net"
12483      else
12484        if test -f conf.gtktest ; then
12485         :
12486        else
12487           echo "*** Could not run GTK+ test program, checking why..."
12488           ac_save_CFLAGS="$CFLAGS"
12489           ac_save_LIBS="$LIBS"
12490           CFLAGS="$CFLAGS $GTK_CFLAGS"
12491           LIBS="$LIBS $GTK_LIBS"
12492           cat > conftest.$ac_ext <<EOF
12493 #line 12494 "configure"
12494 #include "confdefs.h"
12495
12496 #include <gtk/gtk.h>
12497 #include <stdio.h>
12498
12499 int main() {
12500  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12501 ; return 0; }
12502 EOF
12503 if { (eval echo configure:12504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12504   rm -rf conftest*
12505    echo "*** The test program compiled, but did not run. This usually means"
12506           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12507           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12508           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12509           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12510           echo "*** is required on your system"
12511           echo "***"
12512           echo "*** If you have an old version installed, it is best to remove it, although"
12513           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
12514 else
12515   echo "configure: failed program was:" >&5
12516   cat conftest.$ac_ext >&5
12517   rm -rf conftest*
12518    echo "*** The test program failed to compile or link. See the file config.log for the"
12519           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12520 fi
12521 rm -f conftest*
12522           CFLAGS="$ac_save_CFLAGS"
12523           LIBS="$ac_save_LIBS"
12524        fi
12525      fi
12526      GTK_CFLAGS=""
12527      GTK_LIBS=""
12528      :
12529   fi
12530   
12531   
12532   rm -f conf.gtktest
12533
12534                 else
12535                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12536 if test "${with_gtk_prefix+set}" = set; then
12537   withval="$with_gtk_prefix"
12538   gtk_config_prefix="$withval"
12539 else
12540   gtk_config_prefix=""
12541 fi
12542
12543 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12544 if test "${with_gtk_exec_prefix+set}" = set; then
12545   withval="$with_gtk_exec_prefix"
12546   gtk_config_exec_prefix="$withval"
12547 else
12548   gtk_config_exec_prefix=""
12549 fi
12550
12551 # Check whether --enable-gtktest or --disable-gtktest was given.
12552 if test "${enable_gtktest+set}" = set; then
12553   enableval="$enable_gtktest"
12554   :
12555 else
12556   enable_gtktest=yes
12557 fi
12558
12559
12560   for module in . $GTK_MODULES
12561   do
12562       case "$module" in
12563          gthread) 
12564              gtk_config_args="$gtk_config_args gthread"
12565          ;;
12566       esac
12567   done
12568
12569   if test x$gtk_config_exec_prefix != x ; then
12570      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12571      if test x${GTK_CONFIG+set} != xset ; then
12572         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12573      fi
12574   fi
12575   if test x$gtk_config_prefix != x ; then
12576      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12577      if test x${GTK_CONFIG+set} != xset ; then
12578         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12579      fi
12580   fi
12581
12582   # Extract the first word of "gtk-config", so it can be a program name with args.
12583 set dummy gtk-config; ac_word=$2
12584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12585 echo "configure:12586: checking for $ac_word" >&5
12586 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12587   echo $ac_n "(cached) $ac_c" 1>&6
12588 else
12589   case "$GTK_CONFIG" in
12590   /*)
12591   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12592   ;;
12593   ?:/*)                  
12594   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12595   ;;
12596   *)
12597   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12598   ac_dummy="$PATH"
12599   for ac_dir in $ac_dummy; do 
12600     test -z "$ac_dir" && ac_dir=.
12601     if test -f $ac_dir/$ac_word; then
12602       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12603       break
12604     fi
12605   done
12606   IFS="$ac_save_ifs"
12607   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12608   ;;
12609 esac
12610 fi
12611 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12612 if test -n "$GTK_CONFIG"; then
12613   echo "$ac_t""$GTK_CONFIG" 1>&6
12614 else
12615   echo "$ac_t""no" 1>&6
12616 fi
12617
12618   min_gtk_version=1.2.7
12619   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12620 echo "configure:12621: checking for GTK - version >= $min_gtk_version" >&5
12621   no_gtk=""
12622   if test "$GTK_CONFIG" = "no" ; then
12623     no_gtk=yes
12624   else
12625     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12626     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12627     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12628            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12629     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12630            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12631     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12632            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12633     if test "x$enable_gtktest" = "xyes" ; then
12634       ac_save_CFLAGS="$CFLAGS"
12635       ac_save_LIBS="$LIBS"
12636       CFLAGS="$CFLAGS $GTK_CFLAGS"
12637       LIBS="$GTK_LIBS $LIBS"
12638       rm -f conf.gtktest
12639       if test "$cross_compiling" = yes; then
12640   echo $ac_n "cross compiling; assumed OK... $ac_c"
12641 else
12642   cat > conftest.$ac_ext <<EOF
12643 #line 12644 "configure"
12644 #include "confdefs.h"
12645
12646 #include <gtk/gtk.h>
12647 #include <stdio.h>
12648 #include <stdlib.h>
12649
12650 int 
12651 main ()
12652 {
12653   int major, minor, micro;
12654   char *tmp_version;
12655
12656   system ("touch conf.gtktest");
12657
12658   /* HP/UX 9 (%@#!) writes to sscanf strings */
12659   tmp_version = g_strdup("$min_gtk_version");
12660   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12661      printf("%s, bad version string\n", "$min_gtk_version");
12662      exit(1);
12663    }
12664
12665   if ((gtk_major_version != $gtk_config_major_version) ||
12666       (gtk_minor_version != $gtk_config_minor_version) ||
12667       (gtk_micro_version != $gtk_config_micro_version))
12668     {
12669       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12670              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12671              gtk_major_version, gtk_minor_version, gtk_micro_version);
12672       printf ("*** was found! If gtk-config was correct, then it is best\n");
12673       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12674       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12675       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12676       printf("*** required on your system.\n");
12677       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12678       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12679       printf("*** before re-running configure\n");
12680     } 
12681 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12682   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12683            (gtk_minor_version != GTK_MINOR_VERSION) ||
12684            (gtk_micro_version != GTK_MICRO_VERSION))
12685     {
12686       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12687              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12688       printf("*** library (version %d.%d.%d)\n",
12689              gtk_major_version, gtk_minor_version, gtk_micro_version);
12690     }
12691 #endif /* defined (GTK_MAJOR_VERSION) ... */
12692   else
12693     {
12694       if ((gtk_major_version > major) ||
12695         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12696         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12697       {
12698         return 0;
12699        }
12700      else
12701       {
12702         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12703                gtk_major_version, gtk_minor_version, gtk_micro_version);
12704         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12705                major, minor, micro);
12706         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12707         printf("***\n");
12708         printf("*** If you have already installed a sufficiently new version, this error\n");
12709         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12710         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12711         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12712         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12713         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12714         printf("*** so that the correct libraries are found at run-time))\n");
12715       }
12716     }
12717   return 1;
12718 }
12719
12720 EOF
12721 if { (eval echo configure:12722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12722 then
12723   :
12724 else
12725   echo "configure: failed program was:" >&5
12726   cat conftest.$ac_ext >&5
12727   rm -fr conftest*
12728   no_gtk=yes
12729 fi
12730 rm -fr conftest*
12731 fi
12732
12733        CFLAGS="$ac_save_CFLAGS"
12734        LIBS="$ac_save_LIBS"
12735      fi
12736   fi
12737   if test "x$no_gtk" = x ; then
12738      echo "$ac_t""yes" 1>&6
12739      wx_cv_lib_gtk=1.2.7     
12740   else
12741      echo "$ac_t""no" 1>&6
12742      if test "$GTK_CONFIG" = "no" ; then
12743        echo "*** The gtk-config script installed by GTK could not be found"
12744        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12745        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12746        echo "*** full path to gtk-config."
12747      else
12748        if test -f conf.gtktest ; then
12749         :
12750        else
12751           echo "*** Could not run GTK test program, checking why..."
12752           CFLAGS="$CFLAGS $GTK_CFLAGS"
12753           LIBS="$LIBS $GTK_LIBS"
12754           cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757
12758 #include <gtk/gtk.h>
12759 #include <stdio.h>
12760
12761 int main() {
12762  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12763 ; return 0; }
12764 EOF
12765 if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12766   rm -rf conftest*
12767    echo "*** The test program compiled, but did not run. This usually means"
12768           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12769           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12770           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12771           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12772           echo "*** is required on your system"
12773           echo "***"
12774           echo "*** If you have an old version installed, it is best to remove it, although"
12775           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12776           echo "***"
12777           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12778           echo "*** came with the system with the command"
12779           echo "***"
12780           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12781 else
12782   echo "configure: failed program was:" >&5
12783   cat conftest.$ac_ext >&5
12784   rm -rf conftest*
12785    echo "*** The test program failed to compile or link. See the file config.log for the"
12786           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12787           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12788           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12789 fi
12790 rm -f conftest*
12791           CFLAGS="$ac_save_CFLAGS"
12792           LIBS="$ac_save_LIBS"
12793        fi
12794      fi
12795      GTK_CFLAGS=""
12796      GTK_LIBS=""
12797      :
12798   fi
12799   
12800   
12801   rm -f conf.gtktest
12802
12803
12804                     if test -z "$wx_cv_lib_gtk"; then
12805                         # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12806 if test "${with_gtk_prefix+set}" = set; then
12807   withval="$with_gtk_prefix"
12808   gtk_config_prefix="$withval"
12809 else
12810   gtk_config_prefix=""
12811 fi
12812
12813 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12814 if test "${with_gtk_exec_prefix+set}" = set; then
12815   withval="$with_gtk_exec_prefix"
12816   gtk_config_exec_prefix="$withval"
12817 else
12818   gtk_config_exec_prefix=""
12819 fi
12820
12821 # Check whether --enable-gtktest or --disable-gtktest was given.
12822 if test "${enable_gtktest+set}" = set; then
12823   enableval="$enable_gtktest"
12824   :
12825 else
12826   enable_gtktest=yes
12827 fi
12828
12829
12830   for module in . $GTK_MODULES
12831   do
12832       case "$module" in
12833          gthread) 
12834              gtk_config_args="$gtk_config_args gthread"
12835          ;;
12836       esac
12837   done
12838
12839   if test x$gtk_config_exec_prefix != x ; then
12840      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12841      if test x${GTK_CONFIG+set} != xset ; then
12842         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12843      fi
12844   fi
12845   if test x$gtk_config_prefix != x ; then
12846      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12847      if test x${GTK_CONFIG+set} != xset ; then
12848         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12849      fi
12850   fi
12851
12852   # Extract the first word of "gtk-config", so it can be a program name with args.
12853 set dummy gtk-config; ac_word=$2
12854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12855 echo "configure:12856: checking for $ac_word" >&5
12856 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12857   echo $ac_n "(cached) $ac_c" 1>&6
12858 else
12859   case "$GTK_CONFIG" in
12860   /*)
12861   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12862   ;;
12863   ?:/*)                  
12864   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12865   ;;
12866   *)
12867   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12868   ac_dummy="$PATH"
12869   for ac_dir in $ac_dummy; do 
12870     test -z "$ac_dir" && ac_dir=.
12871     if test -f $ac_dir/$ac_word; then
12872       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12873       break
12874     fi
12875   done
12876   IFS="$ac_save_ifs"
12877   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12878   ;;
12879 esac
12880 fi
12881 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12882 if test -n "$GTK_CONFIG"; then
12883   echo "$ac_t""$GTK_CONFIG" 1>&6
12884 else
12885   echo "$ac_t""no" 1>&6
12886 fi
12887
12888   min_gtk_version=1.2.3
12889   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12890 echo "configure:12891: checking for GTK - version >= $min_gtk_version" >&5
12891   no_gtk=""
12892   if test "$GTK_CONFIG" = "no" ; then
12893     no_gtk=yes
12894   else
12895     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12896     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12897     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12898            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12899     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12900            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12901     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12902            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12903     if test "x$enable_gtktest" = "xyes" ; then
12904       ac_save_CFLAGS="$CFLAGS"
12905       ac_save_LIBS="$LIBS"
12906       CFLAGS="$CFLAGS $GTK_CFLAGS"
12907       LIBS="$GTK_LIBS $LIBS"
12908       rm -f conf.gtktest
12909       if test "$cross_compiling" = yes; then
12910   echo $ac_n "cross compiling; assumed OK... $ac_c"
12911 else
12912   cat > conftest.$ac_ext <<EOF
12913 #line 12914 "configure"
12914 #include "confdefs.h"
12915
12916 #include <gtk/gtk.h>
12917 #include <stdio.h>
12918 #include <stdlib.h>
12919
12920 int 
12921 main ()
12922 {
12923   int major, minor, micro;
12924   char *tmp_version;
12925
12926   system ("touch conf.gtktest");
12927
12928   /* HP/UX 9 (%@#!) writes to sscanf strings */
12929   tmp_version = g_strdup("$min_gtk_version");
12930   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12931      printf("%s, bad version string\n", "$min_gtk_version");
12932      exit(1);
12933    }
12934
12935   if ((gtk_major_version != $gtk_config_major_version) ||
12936       (gtk_minor_version != $gtk_config_minor_version) ||
12937       (gtk_micro_version != $gtk_config_micro_version))
12938     {
12939       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12940              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12941              gtk_major_version, gtk_minor_version, gtk_micro_version);
12942       printf ("*** was found! If gtk-config was correct, then it is best\n");
12943       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12944       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12945       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12946       printf("*** required on your system.\n");
12947       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12948       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12949       printf("*** before re-running configure\n");
12950     } 
12951 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12952   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12953            (gtk_minor_version != GTK_MINOR_VERSION) ||
12954            (gtk_micro_version != GTK_MICRO_VERSION))
12955     {
12956       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12957              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12958       printf("*** library (version %d.%d.%d)\n",
12959              gtk_major_version, gtk_minor_version, gtk_micro_version);
12960     }
12961 #endif /* defined (GTK_MAJOR_VERSION) ... */
12962   else
12963     {
12964       if ((gtk_major_version > major) ||
12965         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12966         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12967       {
12968         return 0;
12969        }
12970      else
12971       {
12972         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12973                gtk_major_version, gtk_minor_version, gtk_micro_version);
12974         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12975                major, minor, micro);
12976         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12977         printf("***\n");
12978         printf("*** If you have already installed a sufficiently new version, this error\n");
12979         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12980         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12981         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12982         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12983         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12984         printf("*** so that the correct libraries are found at run-time))\n");
12985       }
12986     }
12987   return 1;
12988 }
12989
12990 EOF
12991 if { (eval echo configure:12992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12992 then
12993   :
12994 else
12995   echo "configure: failed program was:" >&5
12996   cat conftest.$ac_ext >&5
12997   rm -fr conftest*
12998   no_gtk=yes
12999 fi
13000 rm -fr conftest*
13001 fi
13002
13003        CFLAGS="$ac_save_CFLAGS"
13004        LIBS="$ac_save_LIBS"
13005      fi
13006   fi
13007   if test "x$no_gtk" = x ; then
13008      echo "$ac_t""yes" 1>&6
13009      wx_cv_lib_gtk=1.2.3     
13010   else
13011      echo "$ac_t""no" 1>&6
13012      if test "$GTK_CONFIG" = "no" ; then
13013        echo "*** The gtk-config script installed by GTK could not be found"
13014        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13015        echo "*** your path, or set the GTK_CONFIG environment variable to the"
13016        echo "*** full path to gtk-config."
13017      else
13018        if test -f conf.gtktest ; then
13019         :
13020        else
13021           echo "*** Could not run GTK test program, checking why..."
13022           CFLAGS="$CFLAGS $GTK_CFLAGS"
13023           LIBS="$LIBS $GTK_LIBS"
13024           cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027
13028 #include <gtk/gtk.h>
13029 #include <stdio.h>
13030
13031 int main() {
13032  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
13033 ; return 0; }
13034 EOF
13035 if { (eval echo configure:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13036   rm -rf conftest*
13037    echo "*** The test program compiled, but did not run. This usually means"
13038           echo "*** that the run-time linker is not finding GTK or finding the wrong"
13039           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13040           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13041           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13042           echo "*** is required on your system"
13043           echo "***"
13044           echo "*** If you have an old version installed, it is best to remove it, although"
13045           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13046           echo "***"
13047           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13048           echo "*** came with the system with the command"
13049           echo "***"
13050           echo "***    rpm --erase --nodeps gtk gtk-devel" 
13051 else
13052   echo "configure: failed program was:" >&5
13053   cat conftest.$ac_ext >&5
13054   rm -rf conftest*
13055    echo "*** The test program failed to compile or link. See the file config.log for the"
13056           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13057           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13058           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
13059 fi
13060 rm -f conftest*
13061           CFLAGS="$ac_save_CFLAGS"
13062           LIBS="$ac_save_LIBS"
13063        fi
13064      fi
13065      GTK_CFLAGS=""
13066      GTK_LIBS=""
13067      :
13068   fi
13069   
13070   
13071   rm -f conf.gtktest
13072
13073                     fi
13074                 fi
13075
13076                 if test -z "$wx_cv_lib_gtk"; then
13077                                         wx_cv_lib_gtk=none
13078                 else
13079                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
13080                     wx_cv_libs_gtk=$GTK_LIBS
13081                 fi
13082             
13083         
13084 fi
13085
13086
13087                         if test "$gtk_version_cached" = 1; then
13088             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13089         fi
13090
13091         case "$wx_cv_lib_gtk" in
13092             2.0)    WXGTK20=1
13093                     TOOLKIT_VERSION=2
13094                     ;;
13095             1.2.7)  WXGTK127=1
13096                     WXGTK12=1
13097                     ;;
13098             1.2.3)  WXGTK12=1
13099                     ;;
13100             *)      { echo "configure: error: 
13101 Please check that gtk-config is in path, the directory
13102 where GTK+ libraries are installed (returned by
13103 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13104 equivalent variable and GTK+ is version 1.2.3 or above.
13105                             " 1>&2; exit 1; }
13106                     ;;
13107         esac
13108
13109         if test "$WXGTK20" = 1; then
13110             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13111                 
13112   succeeded=no
13113
13114   if test -z "$PKG_CONFIG"; then
13115     # Extract the first word of "pkg-config", so it can be a program name with args.
13116 set dummy pkg-config; ac_word=$2
13117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13118 echo "configure:13119: checking for $ac_word" >&5
13119 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13120   echo $ac_n "(cached) $ac_c" 1>&6
13121 else
13122   case "$PKG_CONFIG" in
13123   /*)
13124   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13125   ;;
13126   ?:/*)                  
13127   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13128   ;;
13129   *)
13130   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
13131   ac_dummy="$PATH"
13132   for ac_dir in $ac_dummy; do 
13133     test -z "$ac_dir" && ac_dir=.
13134     if test -f $ac_dir/$ac_word; then
13135       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13136       break
13137     fi
13138   done
13139   IFS="$ac_save_ifs"
13140   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13141   ;;
13142 esac
13143 fi
13144 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13145 if test -n "$PKG_CONFIG"; then
13146   echo "$ac_t""$PKG_CONFIG" 1>&6
13147 else
13148   echo "$ac_t""no" 1>&6
13149 fi
13150
13151   fi
13152
13153   if test "$PKG_CONFIG" = "no" ; then
13154      echo "*** The pkg-config script could not be found. Make sure it is"
13155      echo "*** in your path, or set the PKG_CONFIG environment variable"
13156      echo "*** to the full path to pkg-config."
13157      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13158   else
13159      PKG_CONFIG_MIN_VERSION=0.9.0
13160      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13162 echo "configure:13163: checking for pangoft2" >&5
13163
13164         if $PKG_CONFIG --exists "pangoft2" ; then
13165             echo "$ac_t""yes" 1>&6
13166             succeeded=yes
13167
13168             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13169 echo "configure:13170: checking PANGOFT2_CFLAGS" >&5
13170             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13171             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13172
13173             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13174 echo "configure:13175: checking PANGOFT2_LIBS" >&5
13175             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13176             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13177         else
13178             PANGOFT2_CFLAGS=""
13179             PANGOFT2_LIBS=""
13180             ## If we have a custom action on failure, don't print errors, but 
13181             ## do set a variable so people can do so.
13182             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13183             
13184         fi
13185
13186         
13187         
13188      else
13189         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13190         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13191      fi
13192   fi
13193
13194   if test $succeeded = yes; then
13195      
13196                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13197                         LIBS="$LIBS $PANGOFT2_LIBS"
13198                     
13199   else
13200      
13201                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13202                         wxUSE_PRINTING_ARCHITECTURE="no"
13203                     
13204                 
13205   fi
13206
13207             fi
13208         else
13209             if test "$wxUSE_UNICODE" = "yes"; then
13210                 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13211                 wxUSE_UNICODE=no
13212             fi
13213         fi
13214
13215                         if test "$USE_DARWIN" != 1; then
13216             for ac_func in poll
13217 do
13218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13219 echo "configure:13220: checking for $ac_func" >&5
13220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13221   echo $ac_n "(cached) $ac_c" 1>&6
13222 else
13223   cat > conftest.$ac_ext <<EOF
13224 #line 13225 "configure"
13225 #include "confdefs.h"
13226 /* System header to define __stub macros and hopefully few prototypes,
13227     which can conflict with char $ac_func(); below.  */
13228 #include <assert.h>
13229 /* Override any gcc2 internal prototype to avoid an error.  */
13230 /* We use char because int might match the return type of a gcc2
13231     builtin and then its argument prototype would still apply.  */
13232 char $ac_func();
13233
13234 int main() {
13235
13236 /* The GNU C library defines this for functions which it implements
13237     to always fail with ENOSYS.  Some functions are actually named
13238     something starting with __ and the normal name is an alias.  */
13239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13240 choke me
13241 #else
13242 $ac_func();
13243 #endif
13244
13245 ; return 0; }
13246 EOF
13247 if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13248   rm -rf conftest*
13249   eval "ac_cv_func_$ac_func=yes"
13250 else
13251   echo "configure: failed program was:" >&5
13252   cat conftest.$ac_ext >&5
13253   rm -rf conftest*
13254   eval "ac_cv_func_$ac_func=no"
13255 fi
13256 rm -f conftest*
13257 fi
13258
13259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13260   echo "$ac_t""yes" 1>&6
13261     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13262   cat >> confdefs.h <<EOF
13263 #define $ac_tr_func 1
13264 EOF
13265  
13266 else
13267   echo "$ac_t""no" 1>&6
13268 fi
13269 done
13270
13271         fi
13272
13273         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13274         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13275
13276         AFMINSTALL=afminstall
13277         TOOLKIT=GTK
13278         GUIDIST=GTK_DIST
13279
13280                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13281 echo "configure:13282: checking for gdk_im_open in -lgdk" >&5
13282 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13284   echo $ac_n "(cached) $ac_c" 1>&6
13285 else
13286   ac_save_LIBS="$LIBS"
13287 LIBS="-lgdk  $LIBS"
13288 cat > conftest.$ac_ext <<EOF
13289 #line 13290 "configure"
13290 #include "confdefs.h"
13291 /* Override any gcc2 internal prototype to avoid an error.  */
13292 /* We use char because int might match the return type of a gcc2
13293     builtin and then its argument prototype would still apply.  */
13294 char gdk_im_open();
13295
13296 int main() {
13297 gdk_im_open()
13298 ; return 0; }
13299 EOF
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301   rm -rf conftest*
13302   eval "ac_cv_lib_$ac_lib_var=yes"
13303 else
13304   echo "configure: failed program was:" >&5
13305   cat conftest.$ac_ext >&5
13306   rm -rf conftest*
13307   eval "ac_cv_lib_$ac_lib_var=no"
13308 fi
13309 rm -f conftest*
13310 LIBS="$ac_save_LIBS"
13311
13312 fi
13313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13314   echo "$ac_t""yes" 1>&6
13315   cat >> confdefs.h <<\EOF
13316 #define HAVE_XIM 1
13317 EOF
13318
13319 else
13320   echo "$ac_t""no" 1>&6
13321 fi
13322
13323     fi
13324
13325     if test "$wxUSE_MGL" = 1; then
13326        echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13327 echo "configure:13328: checking for SciTech MGL library" >&5
13328         if test "x$MGL_ROOT" = x ; then
13329             echo "$ac_t""not found" 1>&6
13330             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13331         else
13332             echo "$ac_t""$MGL_ROOT" 1>&6
13333         fi
13334
13335         echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13336 echo "configure:13337: checking for libmgl location" >&5
13337                         case "${host}" in
13338             *-*-linux* )
13339               if test "x$wxUSE_SHARED" = xyes ; then
13340                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13341               else
13342                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13343               fi
13344               ;;
13345             *-pc-msdosdjgpp )
13346               mgl_os_candidates="dos32/dj2"
13347               ;;
13348             *)
13349               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13350         esac
13351
13352         mgl_lib_type=""
13353         mgl_os=""
13354
13355         for mgl_os_i in $mgl_os_candidates ; do
13356             if test "x$mgl_os" = x ; then
13357                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13358                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13359                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13360                         mgl_lib_type=debug
13361                         mgl_os=$mgl_os_i
13362                     fi
13363                 fi
13364                 if test "x$mgl_lib_type" = x ; then
13365                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13366                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13367                         mgl_lib_type=release
13368                         mgl_os=$mgl_os_i
13369                     fi
13370                 fi
13371             fi
13372         done
13373
13374         if test "x$mgl_os" = x ; then
13375             echo "$ac_t""not found" 1>&6
13376             { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13377         fi
13378         echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13379
13380         wxUSE_UNIVERSAL="yes"
13381
13382         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13383         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13384
13385         AFMINSTALL=afminstall
13386         TOOLKIT=MGL
13387         GUIDIST=MGL_DIST
13388     fi
13389
13390     if test "$wxUSE_MICROWIN" = 1; then
13391         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13392 echo "configure:13393: checking for MicroWindows" >&5
13393         if test "x$MICROWINDOWS" = x ; then
13394             echo "$ac_t""not found" 1>&6
13395             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13396         else
13397             echo "$ac_t""$MICROWINDOWS" 1>&6
13398         fi
13399
13400         if test -f $MICROWINDOWS/lib/libmwin.a; then
13401             echo "$ac_t""MicroWindows' libraries found." 1>&6
13402         else
13403             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13404         fi
13405
13406         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13407         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13408
13409         wxUSE_UNIVERSAL="yes"
13410
13411         AFMINSTALL=afminstall
13412         TOOLKIT=MICROWIN
13413         GUIDIST=MICROWIN_DIST
13414
13415         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13416     fi
13417
13418     if test "$wxUSE_X11" = 1; then
13419                         # If we find X, set shell vars x_includes and x_libraries to the
13420 # paths, otherwise set no_x=yes.
13421 # Uses ac_ vars as temps to allow command line to override cache and checks.
13422 # --without-x overrides everything else, but does not touch the cache.
13423 echo $ac_n "checking for X""... $ac_c" 1>&6
13424 echo "configure:13425: checking for X" >&5
13425
13426 # Check whether --with-x or --without-x was given.
13427 if test "${with_x+set}" = set; then
13428   withval="$with_x"
13429   :
13430 fi
13431
13432 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13433 if test "x$with_x" = xno; then
13434   # The user explicitly disabled X.
13435   have_x=disabled
13436 else
13437   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13438     # Both variables are already set.
13439     have_x=yes
13440   else
13441 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13442   echo $ac_n "(cached) $ac_c" 1>&6
13443 else
13444   # One or both of the vars are not set, and there is no cached value.
13445 ac_x_includes=NO ac_x_libraries=NO
13446 rm -fr conftestdir
13447 if mkdir conftestdir; then
13448   cd conftestdir
13449   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13450   cat > Imakefile <<'EOF'
13451 acfindx:
13452         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13453 EOF
13454   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13455     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13456     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13457     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13458     for ac_extension in a so sl; do
13459       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13460         test -f $ac_im_libdir/libX11.$ac_extension; then
13461         ac_im_usrlibdir=$ac_im_libdir; break
13462       fi
13463     done
13464     # Screen out bogus values from the imake configuration.  They are
13465     # bogus both because they are the default anyway, and because
13466     # using them would break gcc on systems where it needs fixed includes.
13467     case "$ac_im_incroot" in
13468         /usr/include) ;;
13469         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13470     esac
13471     case "$ac_im_usrlibdir" in
13472         /usr/lib | /lib) ;;
13473         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13474     esac
13475   fi
13476   cd ..
13477   rm -fr conftestdir
13478 fi
13479
13480 if test "$ac_x_includes" = NO; then
13481   # Guess where to find include files, by looking for this one X11 .h file.
13482   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13483
13484   # First, try using that file with no special directory specified.
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488 #include <$x_direct_test_include>
13489 EOF
13490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13491 { (eval echo configure:13492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13493 if test -z "$ac_err"; then
13494   rm -rf conftest*
13495   # We can compile using X headers with no special include directory.
13496 ac_x_includes=
13497 else
13498   echo "$ac_err" >&5
13499   echo "configure: failed program was:" >&5
13500   cat conftest.$ac_ext >&5
13501   rm -rf conftest*
13502   # Look for the header file in a standard set of common directories.
13503 # Check X11 before X11Rn because it is often a symlink to the current release.
13504   for ac_dir in               \
13505     /usr/X11/include          \
13506     /usr/X11R6/include        \
13507     /usr/X11R5/include        \
13508     /usr/X11R4/include        \
13509                               \
13510     /usr/include/X11          \
13511     /usr/include/X11R6        \
13512     /usr/include/X11R5        \
13513     /usr/include/X11R4        \
13514                               \
13515     /usr/local/X11/include    \
13516     /usr/local/X11R6/include  \
13517     /usr/local/X11R5/include  \
13518     /usr/local/X11R4/include  \
13519                               \
13520     /usr/local/include/X11    \
13521     /usr/local/include/X11R6  \
13522     /usr/local/include/X11R5  \
13523     /usr/local/include/X11R4  \
13524                               \
13525     /usr/X386/include         \
13526     /usr/x386/include         \
13527     /usr/XFree86/include/X11  \
13528                               \
13529     /usr/include              \
13530     /usr/local/include        \
13531     /usr/unsupported/include  \
13532     /usr/athena/include       \
13533     /usr/local/x11r5/include  \
13534     /usr/lpp/Xamples/include  \
13535                               \
13536     /usr/openwin/include      \
13537     /usr/openwin/share/include \
13538     ; \
13539   do
13540     if test -r "$ac_dir/$x_direct_test_include"; then
13541       ac_x_includes=$ac_dir
13542       break
13543     fi
13544   done
13545 fi
13546 rm -f conftest*
13547 fi # $ac_x_includes = NO
13548
13549 if test "$ac_x_libraries" = NO; then
13550   # Check for the libraries.
13551
13552   test -z "$x_direct_test_library" && x_direct_test_library=Xt
13553   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13554
13555   # See if we find them without any special options.
13556   # Don't add to $LIBS permanently.
13557   ac_save_LIBS="$LIBS"
13558   LIBS="-l$x_direct_test_library $LIBS"
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562
13563 int main() {
13564 ${x_direct_test_function}()
13565 ; return 0; }
13566 EOF
13567 if { (eval echo configure:13568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13568   rm -rf conftest*
13569   LIBS="$ac_save_LIBS"
13570 # We can link X programs with no special library path.
13571 ac_x_libraries=
13572 else
13573   echo "configure: failed program was:" >&5
13574   cat conftest.$ac_ext >&5
13575   rm -rf conftest*
13576   LIBS="$ac_save_LIBS"
13577 # First see if replacing the include by lib works.
13578 # Check X11 before X11Rn because it is often a symlink to the current release.
13579 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13580     /usr/X11/lib          \
13581     /usr/X11R6/lib        \
13582     /usr/X11R5/lib        \
13583     /usr/X11R4/lib        \
13584                           \
13585     /usr/lib/X11          \
13586     /usr/lib/X11R6        \
13587     /usr/lib/X11R5        \
13588     /usr/lib/X11R4        \
13589                           \
13590     /usr/local/X11/lib    \
13591     /usr/local/X11R6/lib  \
13592     /usr/local/X11R5/lib  \
13593     /usr/local/X11R4/lib  \
13594                           \
13595     /usr/local/lib/X11    \
13596     /usr/local/lib/X11R6  \
13597     /usr/local/lib/X11R5  \
13598     /usr/local/lib/X11R4  \
13599                           \
13600     /usr/X386/lib         \
13601     /usr/x386/lib         \
13602     /usr/XFree86/lib/X11  \
13603                           \
13604     /usr/lib              \
13605     /usr/local/lib        \
13606     /usr/unsupported/lib  \
13607     /usr/athena/lib       \
13608     /usr/local/x11r5/lib  \
13609     /usr/lpp/Xamples/lib  \
13610     /lib/usr/lib/X11      \
13611                           \
13612     /usr/openwin/lib      \
13613     /usr/openwin/share/lib \
13614     ; \
13615 do
13616   for ac_extension in a so sl; do
13617     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13618       ac_x_libraries=$ac_dir
13619       break 2
13620     fi
13621   done
13622 done
13623 fi
13624 rm -f conftest*
13625 fi # $ac_x_libraries = NO
13626
13627 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13628   # Didn't find X anywhere.  Cache the known absence of X.
13629   ac_cv_have_x="have_x=no"
13630 else
13631   # Record where we found X for the cache.
13632   ac_cv_have_x="have_x=yes \
13633                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13634 fi
13635 fi
13636   fi
13637   eval "$ac_cv_have_x"
13638 fi # $with_x != no
13639
13640 if test "$have_x" != yes; then
13641   echo "$ac_t""$have_x" 1>&6
13642   no_x=yes
13643 else
13644   # If each of the values was on the command line, it overrides each guess.
13645   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13646   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13647   # Update the cache value to reflect the command line values.
13648   ac_cv_have_x="have_x=yes \
13649                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13650   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13651 fi
13652
13653 if test "$no_x" = yes; then
13654   # Not all programs may use this symbol, but it does not hurt to define it.
13655   cat >> confdefs.h <<\EOF
13656 #define X_DISPLAY_MISSING 1
13657 EOF
13658
13659   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13660 else
13661   if test -n "$x_includes"; then
13662     X_CFLAGS="$X_CFLAGS -I$x_includes"
13663   fi
13664
13665   # It would also be nice to do this for all -L options, not just this one.
13666   if test -n "$x_libraries"; then
13667     X_LIBS="$X_LIBS -L$x_libraries"
13668     # For Solaris; some versions of Sun CC require a space after -R and
13669     # others require no space.  Words are not sufficient . . . .
13670     case "`(uname -sr) 2>/dev/null`" in
13671     "SunOS 5"*)
13672       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13673 echo "configure:13674: checking whether -R must be followed by a space" >&5
13674       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13675       cat > conftest.$ac_ext <<EOF
13676 #line 13677 "configure"
13677 #include "confdefs.h"
13678
13679 int main() {
13680
13681 ; return 0; }
13682 EOF
13683 if { (eval echo configure:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13684   rm -rf conftest*
13685   ac_R_nospace=yes
13686 else
13687   echo "configure: failed program was:" >&5
13688   cat conftest.$ac_ext >&5
13689   rm -rf conftest*
13690   ac_R_nospace=no
13691 fi
13692 rm -f conftest*
13693       if test $ac_R_nospace = yes; then
13694         echo "$ac_t""no" 1>&6
13695         X_LIBS="$X_LIBS -R$x_libraries"
13696       else
13697         LIBS="$ac_xsave_LIBS -R $x_libraries"
13698         cat > conftest.$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13701
13702 int main() {
13703
13704 ; return 0; }
13705 EOF
13706 if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13707   rm -rf conftest*
13708   ac_R_space=yes
13709 else
13710   echo "configure: failed program was:" >&5
13711   cat conftest.$ac_ext >&5
13712   rm -rf conftest*
13713   ac_R_space=no
13714 fi
13715 rm -f conftest*
13716         if test $ac_R_space = yes; then
13717           echo "$ac_t""yes" 1>&6
13718           X_LIBS="$X_LIBS -R $x_libraries"
13719         else
13720           echo "$ac_t""neither works" 1>&6
13721         fi
13722       fi
13723       LIBS="$ac_xsave_LIBS"
13724     esac
13725   fi
13726
13727   # Check for system-dependent libraries X programs must link with.
13728   # Do this before checking for the system-independent R6 libraries
13729   # (-lICE), since we may need -lsocket or whatever for X linking.
13730
13731   if test "$ISC" = yes; then
13732     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13733   else
13734     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13735     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13736     # the Alpha needs dnet_stub (dnet does not exist).
13737     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13738 echo "configure:13739: checking for dnet_ntoa in -ldnet" >&5
13739 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13741   echo $ac_n "(cached) $ac_c" 1>&6
13742 else
13743   ac_save_LIBS="$LIBS"
13744 LIBS="-ldnet  $LIBS"
13745 cat > conftest.$ac_ext <<EOF
13746 #line 13747 "configure"
13747 #include "confdefs.h"
13748 /* Override any gcc2 internal prototype to avoid an error.  */
13749 /* We use char because int might match the return type of a gcc2
13750     builtin and then its argument prototype would still apply.  */
13751 char dnet_ntoa();
13752
13753 int main() {
13754 dnet_ntoa()
13755 ; return 0; }
13756 EOF
13757 if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13758   rm -rf conftest*
13759   eval "ac_cv_lib_$ac_lib_var=yes"
13760 else
13761   echo "configure: failed program was:" >&5
13762   cat conftest.$ac_ext >&5
13763   rm -rf conftest*
13764   eval "ac_cv_lib_$ac_lib_var=no"
13765 fi
13766 rm -f conftest*
13767 LIBS="$ac_save_LIBS"
13768
13769 fi
13770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13771   echo "$ac_t""yes" 1>&6
13772   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13773 else
13774   echo "$ac_t""no" 1>&6
13775 fi
13776
13777     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13778       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13779 echo "configure:13780: checking for dnet_ntoa in -ldnet_stub" >&5
13780 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13782   echo $ac_n "(cached) $ac_c" 1>&6
13783 else
13784   ac_save_LIBS="$LIBS"
13785 LIBS="-ldnet_stub  $LIBS"
13786 cat > conftest.$ac_ext <<EOF
13787 #line 13788 "configure"
13788 #include "confdefs.h"
13789 /* Override any gcc2 internal prototype to avoid an error.  */
13790 /* We use char because int might match the return type of a gcc2
13791     builtin and then its argument prototype would still apply.  */
13792 char dnet_ntoa();
13793
13794 int main() {
13795 dnet_ntoa()
13796 ; return 0; }
13797 EOF
13798 if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13799   rm -rf conftest*
13800   eval "ac_cv_lib_$ac_lib_var=yes"
13801 else
13802   echo "configure: failed program was:" >&5
13803   cat conftest.$ac_ext >&5
13804   rm -rf conftest*
13805   eval "ac_cv_lib_$ac_lib_var=no"
13806 fi
13807 rm -f conftest*
13808 LIBS="$ac_save_LIBS"
13809
13810 fi
13811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13812   echo "$ac_t""yes" 1>&6
13813   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13814 else
13815   echo "$ac_t""no" 1>&6
13816 fi
13817
13818     fi
13819
13820     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13821     # to get the SysV transport functions.
13822     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13823     # needs -lnsl.
13824     # The nsl library prevents programs from opening the X display
13825     # on Irix 5.2, according to dickey@clark.net.
13826     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13827 echo "configure:13828: checking for gethostbyname" >&5
13828 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13829   echo $ac_n "(cached) $ac_c" 1>&6
13830 else
13831   cat > conftest.$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13834 /* System header to define __stub macros and hopefully few prototypes,
13835     which can conflict with char gethostbyname(); below.  */
13836 #include <assert.h>
13837 /* Override any gcc2 internal prototype to avoid an error.  */
13838 /* We use char because int might match the return type of a gcc2
13839     builtin and then its argument prototype would still apply.  */
13840 char gethostbyname();
13841
13842 int main() {
13843
13844 /* The GNU C library defines this for functions which it implements
13845     to always fail with ENOSYS.  Some functions are actually named
13846     something starting with __ and the normal name is an alias.  */
13847 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13848 choke me
13849 #else
13850 gethostbyname();
13851 #endif
13852
13853 ; return 0; }
13854 EOF
13855 if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13856   rm -rf conftest*
13857   eval "ac_cv_func_gethostbyname=yes"
13858 else
13859   echo "configure: failed program was:" >&5
13860   cat conftest.$ac_ext >&5
13861   rm -rf conftest*
13862   eval "ac_cv_func_gethostbyname=no"
13863 fi
13864 rm -f conftest*
13865 fi
13866
13867 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13868   echo "$ac_t""yes" 1>&6
13869   :
13870 else
13871   echo "$ac_t""no" 1>&6
13872 fi
13873
13874     if test $ac_cv_func_gethostbyname = no; then
13875       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13876 echo "configure:13877: checking for gethostbyname in -lnsl" >&5
13877 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13879   echo $ac_n "(cached) $ac_c" 1>&6
13880 else
13881   ac_save_LIBS="$LIBS"
13882 LIBS="-lnsl  $LIBS"
13883 cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 /* Override any gcc2 internal prototype to avoid an error.  */
13887 /* We use char because int might match the return type of a gcc2
13888     builtin and then its argument prototype would still apply.  */
13889 char gethostbyname();
13890
13891 int main() {
13892 gethostbyname()
13893 ; return 0; }
13894 EOF
13895 if { (eval echo configure:13896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13896   rm -rf conftest*
13897   eval "ac_cv_lib_$ac_lib_var=yes"
13898 else
13899   echo "configure: failed program was:" >&5
13900   cat conftest.$ac_ext >&5
13901   rm -rf conftest*
13902   eval "ac_cv_lib_$ac_lib_var=no"
13903 fi
13904 rm -f conftest*
13905 LIBS="$ac_save_LIBS"
13906
13907 fi
13908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13909   echo "$ac_t""yes" 1>&6
13910   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13911 else
13912   echo "$ac_t""no" 1>&6
13913 fi
13914
13915     fi
13916
13917     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13918     # socket/setsockopt and other routines are undefined under SCO ODT
13919     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13920     # on later versions), says simon@lia.di.epfl.ch: it contains
13921     # gethostby* variants that don't use the nameserver (or something).
13922     # -lsocket must be given before -lnsl if both are needed.
13923     # We assume that if connect needs -lnsl, so does gethostbyname.
13924     echo $ac_n "checking for connect""... $ac_c" 1>&6
13925 echo "configure:13926: checking for connect" >&5
13926 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13927   echo $ac_n "(cached) $ac_c" 1>&6
13928 else
13929   cat > conftest.$ac_ext <<EOF
13930 #line 13931 "configure"
13931 #include "confdefs.h"
13932 /* System header to define __stub macros and hopefully few prototypes,
13933     which can conflict with char connect(); below.  */
13934 #include <assert.h>
13935 /* Override any gcc2 internal prototype to avoid an error.  */
13936 /* We use char because int might match the return type of a gcc2
13937     builtin and then its argument prototype would still apply.  */
13938 char connect();
13939
13940 int main() {
13941
13942 /* The GNU C library defines this for functions which it implements
13943     to always fail with ENOSYS.  Some functions are actually named
13944     something starting with __ and the normal name is an alias.  */
13945 #if defined (__stub_connect) || defined (__stub___connect)
13946 choke me
13947 #else
13948 connect();
13949 #endif
13950
13951 ; return 0; }
13952 EOF
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954   rm -rf conftest*
13955   eval "ac_cv_func_connect=yes"
13956 else
13957   echo "configure: failed program was:" >&5
13958   cat conftest.$ac_ext >&5
13959   rm -rf conftest*
13960   eval "ac_cv_func_connect=no"
13961 fi
13962 rm -f conftest*
13963 fi
13964
13965 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13966   echo "$ac_t""yes" 1>&6
13967   :
13968 else
13969   echo "$ac_t""no" 1>&6
13970 fi
13971
13972     if test $ac_cv_func_connect = no; then
13973       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13974 echo "configure:13975: checking for connect in -lsocket" >&5
13975 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13977   echo $ac_n "(cached) $ac_c" 1>&6
13978 else
13979   ac_save_LIBS="$LIBS"
13980 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13981 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 /* Override any gcc2 internal prototype to avoid an error.  */
13985 /* We use char because int might match the return type of a gcc2
13986     builtin and then its argument prototype would still apply.  */
13987 char connect();
13988
13989 int main() {
13990 connect()
13991 ; return 0; }
13992 EOF
13993 if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13994   rm -rf conftest*
13995   eval "ac_cv_lib_$ac_lib_var=yes"
13996 else
13997   echo "configure: failed program was:" >&5
13998   cat conftest.$ac_ext >&5
13999   rm -rf conftest*
14000   eval "ac_cv_lib_$ac_lib_var=no"
14001 fi
14002 rm -f conftest*
14003 LIBS="$ac_save_LIBS"
14004
14005 fi
14006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14007   echo "$ac_t""yes" 1>&6
14008   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14009 else
14010   echo "$ac_t""no" 1>&6
14011 fi
14012
14013     fi
14014
14015     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14016     echo $ac_n "checking for remove""... $ac_c" 1>&6
14017 echo "configure:14018: checking for remove" >&5
14018 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14019   echo $ac_n "(cached) $ac_c" 1>&6
14020 else
14021   cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 /* System header to define __stub macros and hopefully few prototypes,
14025     which can conflict with char remove(); below.  */
14026 #include <assert.h>
14027 /* Override any gcc2 internal prototype to avoid an error.  */
14028 /* We use char because int might match the return type of a gcc2
14029     builtin and then its argument prototype would still apply.  */
14030 char remove();
14031
14032 int main() {
14033
14034 /* The GNU C library defines this for functions which it implements
14035     to always fail with ENOSYS.  Some functions are actually named
14036     something starting with __ and the normal name is an alias.  */
14037 #if defined (__stub_remove) || defined (__stub___remove)
14038 choke me
14039 #else
14040 remove();
14041 #endif
14042
14043 ; return 0; }
14044 EOF
14045 if { (eval echo configure:14046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14046   rm -rf conftest*
14047   eval "ac_cv_func_remove=yes"
14048 else
14049   echo "configure: failed program was:" >&5
14050   cat conftest.$ac_ext >&5
14051   rm -rf conftest*
14052   eval "ac_cv_func_remove=no"
14053 fi
14054 rm -f conftest*
14055 fi
14056
14057 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14058   echo "$ac_t""yes" 1>&6
14059   :
14060 else
14061   echo "$ac_t""no" 1>&6
14062 fi
14063
14064     if test $ac_cv_func_remove = no; then
14065       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14066 echo "configure:14067: checking for remove in -lposix" >&5
14067 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14069   echo $ac_n "(cached) $ac_c" 1>&6
14070 else
14071   ac_save_LIBS="$LIBS"
14072 LIBS="-lposix  $LIBS"
14073 cat > conftest.$ac_ext <<EOF
14074 #line 14075 "configure"
14075 #include "confdefs.h"
14076 /* Override any gcc2 internal prototype to avoid an error.  */
14077 /* We use char because int might match the return type of a gcc2
14078     builtin and then its argument prototype would still apply.  */
14079 char remove();
14080
14081 int main() {
14082 remove()
14083 ; return 0; }
14084 EOF
14085 if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14086   rm -rf conftest*
14087   eval "ac_cv_lib_$ac_lib_var=yes"
14088 else
14089   echo "configure: failed program was:" >&5
14090   cat conftest.$ac_ext >&5
14091   rm -rf conftest*
14092   eval "ac_cv_lib_$ac_lib_var=no"
14093 fi
14094 rm -f conftest*
14095 LIBS="$ac_save_LIBS"
14096
14097 fi
14098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14099   echo "$ac_t""yes" 1>&6
14100   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14101 else
14102   echo "$ac_t""no" 1>&6
14103 fi
14104
14105     fi
14106
14107     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14108     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14109 echo "configure:14110: checking for shmat" >&5
14110 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14111   echo $ac_n "(cached) $ac_c" 1>&6
14112 else
14113   cat > conftest.$ac_ext <<EOF
14114 #line 14115 "configure"
14115 #include "confdefs.h"
14116 /* System header to define __stub macros and hopefully few prototypes,
14117     which can conflict with char shmat(); below.  */
14118 #include <assert.h>
14119 /* Override any gcc2 internal prototype to avoid an error.  */
14120 /* We use char because int might match the return type of a gcc2
14121     builtin and then its argument prototype would still apply.  */
14122 char shmat();
14123
14124 int main() {
14125
14126 /* The GNU C library defines this for functions which it implements
14127     to always fail with ENOSYS.  Some functions are actually named
14128     something starting with __ and the normal name is an alias.  */
14129 #if defined (__stub_shmat) || defined (__stub___shmat)
14130 choke me
14131 #else
14132 shmat();
14133 #endif
14134
14135 ; return 0; }
14136 EOF
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14138   rm -rf conftest*
14139   eval "ac_cv_func_shmat=yes"
14140 else
14141   echo "configure: failed program was:" >&5
14142   cat conftest.$ac_ext >&5
14143   rm -rf conftest*
14144   eval "ac_cv_func_shmat=no"
14145 fi
14146 rm -f conftest*
14147 fi
14148
14149 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14150   echo "$ac_t""yes" 1>&6
14151   :
14152 else
14153   echo "$ac_t""no" 1>&6
14154 fi
14155
14156     if test $ac_cv_func_shmat = no; then
14157       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14158 echo "configure:14159: checking for shmat in -lipc" >&5
14159 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14161   echo $ac_n "(cached) $ac_c" 1>&6
14162 else
14163   ac_save_LIBS="$LIBS"
14164 LIBS="-lipc  $LIBS"
14165 cat > conftest.$ac_ext <<EOF
14166 #line 14167 "configure"
14167 #include "confdefs.h"
14168 /* Override any gcc2 internal prototype to avoid an error.  */
14169 /* We use char because int might match the return type of a gcc2
14170     builtin and then its argument prototype would still apply.  */
14171 char shmat();
14172
14173 int main() {
14174 shmat()
14175 ; return 0; }
14176 EOF
14177 if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14178   rm -rf conftest*
14179   eval "ac_cv_lib_$ac_lib_var=yes"
14180 else
14181   echo "configure: failed program was:" >&5
14182   cat conftest.$ac_ext >&5
14183   rm -rf conftest*
14184   eval "ac_cv_lib_$ac_lib_var=no"
14185 fi
14186 rm -f conftest*
14187 LIBS="$ac_save_LIBS"
14188
14189 fi
14190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14191   echo "$ac_t""yes" 1>&6
14192   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14193 else
14194   echo "$ac_t""no" 1>&6
14195 fi
14196
14197     fi
14198   fi
14199
14200   # Check for libraries that X11R6 Xt/Xaw programs need.
14201   ac_save_LDFLAGS="$LDFLAGS"
14202   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14203   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14204   # check for ICE first), but we must link in the order -lSM -lICE or
14205   # we get undefined symbols.  So assume we have SM if we have ICE.
14206   # These have to be linked with before -lX11, unlike the other
14207   # libraries we check for below, so use a different variable.
14208   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14209   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14210 echo "configure:14211: checking for IceConnectionNumber in -lICE" >&5
14211 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14213   echo $ac_n "(cached) $ac_c" 1>&6
14214 else
14215   ac_save_LIBS="$LIBS"
14216 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14217 cat > conftest.$ac_ext <<EOF
14218 #line 14219 "configure"
14219 #include "confdefs.h"
14220 /* Override any gcc2 internal prototype to avoid an error.  */
14221 /* We use char because int might match the return type of a gcc2
14222     builtin and then its argument prototype would still apply.  */
14223 char IceConnectionNumber();
14224
14225 int main() {
14226 IceConnectionNumber()
14227 ; return 0; }
14228 EOF
14229 if { (eval echo configure:14230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14230   rm -rf conftest*
14231   eval "ac_cv_lib_$ac_lib_var=yes"
14232 else
14233   echo "configure: failed program was:" >&5
14234   cat conftest.$ac_ext >&5
14235   rm -rf conftest*
14236   eval "ac_cv_lib_$ac_lib_var=no"
14237 fi
14238 rm -f conftest*
14239 LIBS="$ac_save_LIBS"
14240
14241 fi
14242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14243   echo "$ac_t""yes" 1>&6
14244   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14245 else
14246   echo "$ac_t""no" 1>&6
14247 fi
14248
14249   LDFLAGS="$ac_save_LDFLAGS"
14250
14251 fi
14252
14253
14254         if test "$no_x" = "yes"; then
14255           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14256         fi
14257
14258         GUI_TK_LIBRARY="$X_LIBS"
14259         TOOLKIT_INCLUDE="$X_CFLAGS"
14260         AFMINSTALL=afminstall
14261         COMPILED_X_PROGRAM=0
14262
14263         if test "$wxUSE_NANOX" = "yes"; then
14264             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14265 echo "configure:14266: checking for MicroWindows/NanoX distribution" >&5
14266             if test "x$MICROWIN" = x ; then
14267                 echo "$ac_t""not found" 1>&6
14268                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14269             else
14270                 echo "$ac_t""$MICROWIN" 1>&6
14271                 cat >> confdefs.h <<\EOF
14272 #define wxUSE_NANOX 1
14273 EOF
14274
14275             fi
14276         fi
14277
14278         xpm_link=
14279         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14280 echo "configure:14281: checking for Xpm library" >&5
14281         
14282 ac_find_libraries=
14283 for ac_dir in $SEARCH_LIB /usr/lib;
14284   do
14285     for ac_extension in a so sl dylib; do
14286       if test -f "$ac_dir/libXpm.$ac_extension"; then
14287         ac_find_libraries=$ac_dir
14288         break 2
14289       fi
14290     done
14291   done
14292
14293         if test "$ac_find_libraries" != "" ; then
14294             
14295   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14296   result=$?
14297   if test $result = 0; then
14298     ac_path_to_link=""
14299   else
14300     ac_path_to_link=" -L$ac_find_libraries"
14301   fi
14302
14303             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14304             xpm_link=" -lXpm"
14305             cat >> confdefs.h <<\EOF
14306 #define wxHAVE_LIB_XPM 1
14307 EOF
14308
14309             echo "$ac_t""found at $ac_find_libraries" 1>&6
14310         else
14311             cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14314
14315                     #include <X11/xpm.h>
14316                 
14317 int main() {
14318
14319                     int version;
14320                     version = XpmLibraryVersion();
14321                 
14322 ; return 0; }
14323 EOF
14324 if { (eval echo configure:14325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14325   rm -rf conftest*
14326   
14327                     xpm_link=" -lXpm"
14328                     cat >> confdefs.h <<\EOF
14329 #define wxHAVE_LIB_XPM 1
14330 EOF
14331
14332                     echo "$ac_t""found in default search path" 1>&6
14333                     COMPILED_X_PROGRAM=0
14334                 
14335 else
14336   echo "configure: failed program was:" >&5
14337   cat conftest.$ac_ext >&5
14338   rm -rf conftest*
14339   
14340                     echo "$ac_t""no" 1>&6
14341                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14342                 
14343             
14344 fi
14345 rm -f conftest*
14346         fi
14347
14348         if test "$wxUSE_UNICODE" = "yes"; then
14349                 
14350   succeeded=no
14351
14352   if test -z "$PKG_CONFIG"; then
14353     # Extract the first word of "pkg-config", so it can be a program name with args.
14354 set dummy pkg-config; ac_word=$2
14355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14356 echo "configure:14357: checking for $ac_word" >&5
14357 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14358   echo $ac_n "(cached) $ac_c" 1>&6
14359 else
14360   case "$PKG_CONFIG" in
14361   /*)
14362   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14363   ;;
14364   ?:/*)                  
14365   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14366   ;;
14367   *)
14368   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14369   ac_dummy="$PATH"
14370   for ac_dir in $ac_dummy; do 
14371     test -z "$ac_dir" && ac_dir=.
14372     if test -f $ac_dir/$ac_word; then
14373       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14374       break
14375     fi
14376   done
14377   IFS="$ac_save_ifs"
14378   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14379   ;;
14380 esac
14381 fi
14382 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14383 if test -n "$PKG_CONFIG"; then
14384   echo "$ac_t""$PKG_CONFIG" 1>&6
14385 else
14386   echo "$ac_t""no" 1>&6
14387 fi
14388
14389   fi
14390
14391   if test "$PKG_CONFIG" = "no" ; then
14392      echo "*** The pkg-config script could not be found. Make sure it is"
14393      echo "*** in your path, or set the PKG_CONFIG environment variable"
14394      echo "*** to the full path to pkg-config."
14395      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14396   else
14397      PKG_CONFIG_MIN_VERSION=0.9.0
14398      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14399         echo $ac_n "checking for pangox""... $ac_c" 1>&6
14400 echo "configure:14401: checking for pangox" >&5
14401
14402         if $PKG_CONFIG --exists "pangox" ; then
14403             echo "$ac_t""yes" 1>&6
14404             succeeded=yes
14405
14406             echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14407 echo "configure:14408: checking PANGOX_CFLAGS" >&5
14408             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14409             echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14410
14411             echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14412 echo "configure:14413: checking PANGOX_LIBS" >&5
14413             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14414             echo "$ac_t""$PANGOX_LIBS" 1>&6
14415         else
14416             PANGOX_CFLAGS=""
14417             PANGOX_LIBS=""
14418             ## If we have a custom action on failure, don't print errors, but 
14419             ## do set a variable so people can do so.
14420             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14421             
14422         fi
14423
14424         
14425         
14426      else
14427         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14428         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14429      fi
14430   fi
14431
14432   if test $succeeded = yes; then
14433      
14434                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14435                         LIBS="$LIBS $PANGOX_LIBS"
14436                     
14437   else
14438      
14439                         { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14440                     
14441                 
14442   fi
14443
14444                 
14445   succeeded=no
14446
14447   if test -z "$PKG_CONFIG"; then
14448     # Extract the first word of "pkg-config", so it can be a program name with args.
14449 set dummy pkg-config; ac_word=$2
14450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14451 echo "configure:14452: checking for $ac_word" >&5
14452 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14453   echo $ac_n "(cached) $ac_c" 1>&6
14454 else
14455   case "$PKG_CONFIG" in
14456   /*)
14457   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14458   ;;
14459   ?:/*)                  
14460   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14461   ;;
14462   *)
14463   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14464   ac_dummy="$PATH"
14465   for ac_dir in $ac_dummy; do 
14466     test -z "$ac_dir" && ac_dir=.
14467     if test -f $ac_dir/$ac_word; then
14468       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14469       break
14470     fi
14471   done
14472   IFS="$ac_save_ifs"
14473   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14474   ;;
14475 esac
14476 fi
14477 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14478 if test -n "$PKG_CONFIG"; then
14479   echo "$ac_t""$PKG_CONFIG" 1>&6
14480 else
14481   echo "$ac_t""no" 1>&6
14482 fi
14483
14484   fi
14485
14486   if test "$PKG_CONFIG" = "no" ; then
14487      echo "*** The pkg-config script could not be found. Make sure it is"
14488      echo "*** in your path, or set the PKG_CONFIG environment variable"
14489      echo "*** to the full path to pkg-config."
14490      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14491   else
14492      PKG_CONFIG_MIN_VERSION=0.9.0
14493      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14494         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14495 echo "configure:14496: checking for pangoft2" >&5
14496
14497         if $PKG_CONFIG --exists "pangoft2" ; then
14498             echo "$ac_t""yes" 1>&6
14499             succeeded=yes
14500
14501             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14502 echo "configure:14503: checking PANGOFT2_CFLAGS" >&5
14503             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14504             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14505
14506             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14507 echo "configure:14508: checking PANGOFT2_LIBS" >&5
14508             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14509             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14510         else
14511             PANGOFT2_CFLAGS=""
14512             PANGOFT2_LIBS=""
14513             ## If we have a custom action on failure, don't print errors, but 
14514             ## do set a variable so people can do so.
14515             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14516             
14517         fi
14518
14519         
14520         
14521      else
14522         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14523         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14524      fi
14525   fi
14526
14527   if test $succeeded = yes; then
14528      
14529                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14530                         LIBS="$LIBS $PANGOFT2_LIBS"
14531                     
14532   else
14533      
14534                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14535                         wxUSE_PRINTING_ARCHITECTURE="no"
14536                     
14537                 
14538   fi
14539
14540                 
14541   succeeded=no
14542
14543   if test -z "$PKG_CONFIG"; then
14544     # Extract the first word of "pkg-config", so it can be a program name with args.
14545 set dummy pkg-config; ac_word=$2
14546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14547 echo "configure:14548: checking for $ac_word" >&5
14548 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14549   echo $ac_n "(cached) $ac_c" 1>&6
14550 else
14551   case "$PKG_CONFIG" in
14552   /*)
14553   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14554   ;;
14555   ?:/*)                  
14556   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14557   ;;
14558   *)
14559   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14560   ac_dummy="$PATH"
14561   for ac_dir in $ac_dummy; do 
14562     test -z "$ac_dir" && ac_dir=.
14563     if test -f $ac_dir/$ac_word; then
14564       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14565       break
14566     fi
14567   done
14568   IFS="$ac_save_ifs"
14569   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14570   ;;
14571 esac
14572 fi
14573 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14574 if test -n "$PKG_CONFIG"; then
14575   echo "$ac_t""$PKG_CONFIG" 1>&6
14576 else
14577   echo "$ac_t""no" 1>&6
14578 fi
14579
14580   fi
14581
14582   if test "$PKG_CONFIG" = "no" ; then
14583      echo "*** The pkg-config script could not be found. Make sure it is"
14584      echo "*** in your path, or set the PKG_CONFIG environment variable"
14585      echo "*** to the full path to pkg-config."
14586      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14587   else
14588      PKG_CONFIG_MIN_VERSION=0.9.0
14589      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14590         echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14591 echo "configure:14592: checking for pangoxft" >&5
14592
14593         if $PKG_CONFIG --exists "pangoxft" ; then
14594             echo "$ac_t""yes" 1>&6
14595             succeeded=yes
14596
14597             echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14598 echo "configure:14599: checking PANGOXFT_CFLAGS" >&5
14599             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14600             echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14601
14602             echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14603 echo "configure:14604: checking PANGOXFT_LIBS" >&5
14604             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14605             echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14606         else
14607             PANGOXFT_CFLAGS=""
14608             PANGOXFT_LIBS=""
14609             ## If we have a custom action on failure, don't print errors, but 
14610             ## do set a variable so people can do so.
14611             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14612             
14613         fi
14614
14615         
14616         
14617      else
14618         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14619         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14620      fi
14621   fi
14622
14623   if test $succeeded = yes; then
14624      
14625                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14626                         LIBS="$LIBS $PANGOXFT_LIBS"
14627                     
14628   else
14629      
14630                         echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14631                     
14632                 
14633   fi
14634
14635         fi
14636
14637         wxUSE_UNIVERSAL="yes"
14638
14639         if test "$wxUSE_NANOX" = "yes"; then
14640             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14641             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"
14642             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14643         else
14644             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14645         fi
14646
14647         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14648         TOOLKIT=X11
14649         GUIDIST=X11_DIST
14650     fi
14651
14652     if test "$wxUSE_MOTIF" = 1; then
14653                         if test "$no_x" = yes; then
14654   # Not all programs may use this symbol, but it does not hurt to define it.
14655   cat >> confdefs.h <<\EOF
14656 #define X_DISPLAY_MISSING 1
14657 EOF
14658
14659   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14660 else
14661   if test -n "$x_includes"; then
14662     X_CFLAGS="$X_CFLAGS -I$x_includes"
14663   fi
14664
14665   # It would also be nice to do this for all -L options, not just this one.
14666   if test -n "$x_libraries"; then
14667     X_LIBS="$X_LIBS -L$x_libraries"
14668     # For Solaris; some versions of Sun CC require a space after -R and
14669     # others require no space.  Words are not sufficient . . . .
14670     case "`(uname -sr) 2>/dev/null`" in
14671     "SunOS 5"*)
14672       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14673 echo "configure:14674: checking whether -R must be followed by a space" >&5
14674       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14675       cat > conftest.$ac_ext <<EOF
14676 #line 14677 "configure"
14677 #include "confdefs.h"
14678
14679 int main() {
14680
14681 ; return 0; }
14682 EOF
14683 if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14684   rm -rf conftest*
14685   ac_R_nospace=yes
14686 else
14687   echo "configure: failed program was:" >&5
14688   cat conftest.$ac_ext >&5
14689   rm -rf conftest*
14690   ac_R_nospace=no
14691 fi
14692 rm -f conftest*
14693       if test $ac_R_nospace = yes; then
14694         echo "$ac_t""no" 1>&6
14695         X_LIBS="$X_LIBS -R$x_libraries"
14696       else
14697         LIBS="$ac_xsave_LIBS -R $x_libraries"
14698         cat > conftest.$ac_ext <<EOF
14699 #line 14700 "configure"
14700 #include "confdefs.h"
14701
14702 int main() {
14703
14704 ; return 0; }
14705 EOF
14706 if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14707   rm -rf conftest*
14708   ac_R_space=yes
14709 else
14710   echo "configure: failed program was:" >&5
14711   cat conftest.$ac_ext >&5
14712   rm -rf conftest*
14713   ac_R_space=no
14714 fi
14715 rm -f conftest*
14716         if test $ac_R_space = yes; then
14717           echo "$ac_t""yes" 1>&6
14718           X_LIBS="$X_LIBS -R $x_libraries"
14719         else
14720           echo "$ac_t""neither works" 1>&6
14721         fi
14722       fi
14723       LIBS="$ac_xsave_LIBS"
14724     esac
14725   fi
14726
14727   # Check for system-dependent libraries X programs must link with.
14728   # Do this before checking for the system-independent R6 libraries
14729   # (-lICE), since we may need -lsocket or whatever for X linking.
14730
14731   if test "$ISC" = yes; then
14732     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14733   else
14734     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14735     # libraries were built with DECnet support.  And karl@cs.umb.edu says
14736     # the Alpha needs dnet_stub (dnet does not exist).
14737     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14738 echo "configure:14739: checking for dnet_ntoa in -ldnet" >&5
14739 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14741   echo $ac_n "(cached) $ac_c" 1>&6
14742 else
14743   ac_save_LIBS="$LIBS"
14744 LIBS="-ldnet  $LIBS"
14745 cat > conftest.$ac_ext <<EOF
14746 #line 14747 "configure"
14747 #include "confdefs.h"
14748 /* Override any gcc2 internal prototype to avoid an error.  */
14749 /* We use char because int might match the return type of a gcc2
14750     builtin and then its argument prototype would still apply.  */
14751 char dnet_ntoa();
14752
14753 int main() {
14754 dnet_ntoa()
14755 ; return 0; }
14756 EOF
14757 if { (eval echo configure:14758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14758   rm -rf conftest*
14759   eval "ac_cv_lib_$ac_lib_var=yes"
14760 else
14761   echo "configure: failed program was:" >&5
14762   cat conftest.$ac_ext >&5
14763   rm -rf conftest*
14764   eval "ac_cv_lib_$ac_lib_var=no"
14765 fi
14766 rm -f conftest*
14767 LIBS="$ac_save_LIBS"
14768
14769 fi
14770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14771   echo "$ac_t""yes" 1>&6
14772   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14773 else
14774   echo "$ac_t""no" 1>&6
14775 fi
14776
14777     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14778       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14779 echo "configure:14780: checking for dnet_ntoa in -ldnet_stub" >&5
14780 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14782   echo $ac_n "(cached) $ac_c" 1>&6
14783 else
14784   ac_save_LIBS="$LIBS"
14785 LIBS="-ldnet_stub  $LIBS"
14786 cat > conftest.$ac_ext <<EOF
14787 #line 14788 "configure"
14788 #include "confdefs.h"
14789 /* Override any gcc2 internal prototype to avoid an error.  */
14790 /* We use char because int might match the return type of a gcc2
14791     builtin and then its argument prototype would still apply.  */
14792 char dnet_ntoa();
14793
14794 int main() {
14795 dnet_ntoa()
14796 ; return 0; }
14797 EOF
14798 if { (eval echo configure:14799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14799   rm -rf conftest*
14800   eval "ac_cv_lib_$ac_lib_var=yes"
14801 else
14802   echo "configure: failed program was:" >&5
14803   cat conftest.$ac_ext >&5
14804   rm -rf conftest*
14805   eval "ac_cv_lib_$ac_lib_var=no"
14806 fi
14807 rm -f conftest*
14808 LIBS="$ac_save_LIBS"
14809
14810 fi
14811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14812   echo "$ac_t""yes" 1>&6
14813   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14814 else
14815   echo "$ac_t""no" 1>&6
14816 fi
14817
14818     fi
14819
14820     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14821     # to get the SysV transport functions.
14822     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14823     # needs -lnsl.
14824     # The nsl library prevents programs from opening the X display
14825     # on Irix 5.2, according to dickey@clark.net.
14826     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14827 echo "configure:14828: checking for gethostbyname" >&5
14828 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14829   echo $ac_n "(cached) $ac_c" 1>&6
14830 else
14831   cat > conftest.$ac_ext <<EOF
14832 #line 14833 "configure"
14833 #include "confdefs.h"
14834 /* System header to define __stub macros and hopefully few prototypes,
14835     which can conflict with char gethostbyname(); below.  */
14836 #include <assert.h>
14837 /* Override any gcc2 internal prototype to avoid an error.  */
14838 /* We use char because int might match the return type of a gcc2
14839     builtin and then its argument prototype would still apply.  */
14840 char gethostbyname();
14841
14842 int main() {
14843
14844 /* The GNU C library defines this for functions which it implements
14845     to always fail with ENOSYS.  Some functions are actually named
14846     something starting with __ and the normal name is an alias.  */
14847 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14848 choke me
14849 #else
14850 gethostbyname();
14851 #endif
14852
14853 ; return 0; }
14854 EOF
14855 if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14856   rm -rf conftest*
14857   eval "ac_cv_func_gethostbyname=yes"
14858 else
14859   echo "configure: failed program was:" >&5
14860   cat conftest.$ac_ext >&5
14861   rm -rf conftest*
14862   eval "ac_cv_func_gethostbyname=no"
14863 fi
14864 rm -f conftest*
14865 fi
14866
14867 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14868   echo "$ac_t""yes" 1>&6
14869   :
14870 else
14871   echo "$ac_t""no" 1>&6
14872 fi
14873
14874     if test $ac_cv_func_gethostbyname = no; then
14875       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14876 echo "configure:14877: checking for gethostbyname in -lnsl" >&5
14877 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14879   echo $ac_n "(cached) $ac_c" 1>&6
14880 else
14881   ac_save_LIBS="$LIBS"
14882 LIBS="-lnsl  $LIBS"
14883 cat > conftest.$ac_ext <<EOF
14884 #line 14885 "configure"
14885 #include "confdefs.h"
14886 /* Override any gcc2 internal prototype to avoid an error.  */
14887 /* We use char because int might match the return type of a gcc2
14888     builtin and then its argument prototype would still apply.  */
14889 char gethostbyname();
14890
14891 int main() {
14892 gethostbyname()
14893 ; return 0; }
14894 EOF
14895 if { (eval echo configure:14896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14896   rm -rf conftest*
14897   eval "ac_cv_lib_$ac_lib_var=yes"
14898 else
14899   echo "configure: failed program was:" >&5
14900   cat conftest.$ac_ext >&5
14901   rm -rf conftest*
14902   eval "ac_cv_lib_$ac_lib_var=no"
14903 fi
14904 rm -f conftest*
14905 LIBS="$ac_save_LIBS"
14906
14907 fi
14908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14909   echo "$ac_t""yes" 1>&6
14910   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14911 else
14912   echo "$ac_t""no" 1>&6
14913 fi
14914
14915     fi
14916
14917     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14918     # socket/setsockopt and other routines are undefined under SCO ODT
14919     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14920     # on later versions), says simon@lia.di.epfl.ch: it contains
14921     # gethostby* variants that don't use the nameserver (or something).
14922     # -lsocket must be given before -lnsl if both are needed.
14923     # We assume that if connect needs -lnsl, so does gethostbyname.
14924     echo $ac_n "checking for connect""... $ac_c" 1>&6
14925 echo "configure:14926: checking for connect" >&5
14926 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14927   echo $ac_n "(cached) $ac_c" 1>&6
14928 else
14929   cat > conftest.$ac_ext <<EOF
14930 #line 14931 "configure"
14931 #include "confdefs.h"
14932 /* System header to define __stub macros and hopefully few prototypes,
14933     which can conflict with char connect(); below.  */
14934 #include <assert.h>
14935 /* Override any gcc2 internal prototype to avoid an error.  */
14936 /* We use char because int might match the return type of a gcc2
14937     builtin and then its argument prototype would still apply.  */
14938 char connect();
14939
14940 int main() {
14941
14942 /* The GNU C library defines this for functions which it implements
14943     to always fail with ENOSYS.  Some functions are actually named
14944     something starting with __ and the normal name is an alias.  */
14945 #if defined (__stub_connect) || defined (__stub___connect)
14946 choke me
14947 #else
14948 connect();
14949 #endif
14950
14951 ; return 0; }
14952 EOF
14953 if { (eval echo configure:14954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14954   rm -rf conftest*
14955   eval "ac_cv_func_connect=yes"
14956 else
14957   echo "configure: failed program was:" >&5
14958   cat conftest.$ac_ext >&5
14959   rm -rf conftest*
14960   eval "ac_cv_func_connect=no"
14961 fi
14962 rm -f conftest*
14963 fi
14964
14965 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14966   echo "$ac_t""yes" 1>&6
14967   :
14968 else
14969   echo "$ac_t""no" 1>&6
14970 fi
14971
14972     if test $ac_cv_func_connect = no; then
14973       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14974 echo "configure:14975: checking for connect in -lsocket" >&5
14975 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14977   echo $ac_n "(cached) $ac_c" 1>&6
14978 else
14979   ac_save_LIBS="$LIBS"
14980 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14981 cat > conftest.$ac_ext <<EOF
14982 #line 14983 "configure"
14983 #include "confdefs.h"
14984 /* Override any gcc2 internal prototype to avoid an error.  */
14985 /* We use char because int might match the return type of a gcc2
14986     builtin and then its argument prototype would still apply.  */
14987 char connect();
14988
14989 int main() {
14990 connect()
14991 ; return 0; }
14992 EOF
14993 if { (eval echo configure:14994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14994   rm -rf conftest*
14995   eval "ac_cv_lib_$ac_lib_var=yes"
14996 else
14997   echo "configure: failed program was:" >&5
14998   cat conftest.$ac_ext >&5
14999   rm -rf conftest*
15000   eval "ac_cv_lib_$ac_lib_var=no"
15001 fi
15002 rm -f conftest*
15003 LIBS="$ac_save_LIBS"
15004
15005 fi
15006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15007   echo "$ac_t""yes" 1>&6
15008   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15009 else
15010   echo "$ac_t""no" 1>&6
15011 fi
15012
15013     fi
15014
15015     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15016     echo $ac_n "checking for remove""... $ac_c" 1>&6
15017 echo "configure:15018: checking for remove" >&5
15018 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15019   echo $ac_n "(cached) $ac_c" 1>&6
15020 else
15021   cat > conftest.$ac_ext <<EOF
15022 #line 15023 "configure"
15023 #include "confdefs.h"
15024 /* System header to define __stub macros and hopefully few prototypes,
15025     which can conflict with char remove(); below.  */
15026 #include <assert.h>
15027 /* Override any gcc2 internal prototype to avoid an error.  */
15028 /* We use char because int might match the return type of a gcc2
15029     builtin and then its argument prototype would still apply.  */
15030 char remove();
15031
15032 int main() {
15033
15034 /* The GNU C library defines this for functions which it implements
15035     to always fail with ENOSYS.  Some functions are actually named
15036     something starting with __ and the normal name is an alias.  */
15037 #if defined (__stub_remove) || defined (__stub___remove)
15038 choke me
15039 #else
15040 remove();
15041 #endif
15042
15043 ; return 0; }
15044 EOF
15045 if { (eval echo configure:15046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15046   rm -rf conftest*
15047   eval "ac_cv_func_remove=yes"
15048 else
15049   echo "configure: failed program was:" >&5
15050   cat conftest.$ac_ext >&5
15051   rm -rf conftest*
15052   eval "ac_cv_func_remove=no"
15053 fi
15054 rm -f conftest*
15055 fi
15056
15057 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15058   echo "$ac_t""yes" 1>&6
15059   :
15060 else
15061   echo "$ac_t""no" 1>&6
15062 fi
15063
15064     if test $ac_cv_func_remove = no; then
15065       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15066 echo "configure:15067: checking for remove in -lposix" >&5
15067 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15069   echo $ac_n "(cached) $ac_c" 1>&6
15070 else
15071   ac_save_LIBS="$LIBS"
15072 LIBS="-lposix  $LIBS"
15073 cat > conftest.$ac_ext <<EOF
15074 #line 15075 "configure"
15075 #include "confdefs.h"
15076 /* Override any gcc2 internal prototype to avoid an error.  */
15077 /* We use char because int might match the return type of a gcc2
15078     builtin and then its argument prototype would still apply.  */
15079 char remove();
15080
15081 int main() {
15082 remove()
15083 ; return 0; }
15084 EOF
15085 if { (eval echo configure:15086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15086   rm -rf conftest*
15087   eval "ac_cv_lib_$ac_lib_var=yes"
15088 else
15089   echo "configure: failed program was:" >&5
15090   cat conftest.$ac_ext >&5
15091   rm -rf conftest*
15092   eval "ac_cv_lib_$ac_lib_var=no"
15093 fi
15094 rm -f conftest*
15095 LIBS="$ac_save_LIBS"
15096
15097 fi
15098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15099   echo "$ac_t""yes" 1>&6
15100   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15101 else
15102   echo "$ac_t""no" 1>&6
15103 fi
15104
15105     fi
15106
15107     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15108     echo $ac_n "checking for shmat""... $ac_c" 1>&6
15109 echo "configure:15110: checking for shmat" >&5
15110 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15111   echo $ac_n "(cached) $ac_c" 1>&6
15112 else
15113   cat > conftest.$ac_ext <<EOF
15114 #line 15115 "configure"
15115 #include "confdefs.h"
15116 /* System header to define __stub macros and hopefully few prototypes,
15117     which can conflict with char shmat(); below.  */
15118 #include <assert.h>
15119 /* Override any gcc2 internal prototype to avoid an error.  */
15120 /* We use char because int might match the return type of a gcc2
15121     builtin and then its argument prototype would still apply.  */
15122 char shmat();
15123
15124 int main() {
15125
15126 /* The GNU C library defines this for functions which it implements
15127     to always fail with ENOSYS.  Some functions are actually named
15128     something starting with __ and the normal name is an alias.  */
15129 #if defined (__stub_shmat) || defined (__stub___shmat)
15130 choke me
15131 #else
15132 shmat();
15133 #endif
15134
15135 ; return 0; }
15136 EOF
15137 if { (eval echo configure:15138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15138   rm -rf conftest*
15139   eval "ac_cv_func_shmat=yes"
15140 else
15141   echo "configure: failed program was:" >&5
15142   cat conftest.$ac_ext >&5
15143   rm -rf conftest*
15144   eval "ac_cv_func_shmat=no"
15145 fi
15146 rm -f conftest*
15147 fi
15148
15149 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15150   echo "$ac_t""yes" 1>&6
15151   :
15152 else
15153   echo "$ac_t""no" 1>&6
15154 fi
15155
15156     if test $ac_cv_func_shmat = no; then
15157       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15158 echo "configure:15159: checking for shmat in -lipc" >&5
15159 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15161   echo $ac_n "(cached) $ac_c" 1>&6
15162 else
15163   ac_save_LIBS="$LIBS"
15164 LIBS="-lipc  $LIBS"
15165 cat > conftest.$ac_ext <<EOF
15166 #line 15167 "configure"
15167 #include "confdefs.h"
15168 /* Override any gcc2 internal prototype to avoid an error.  */
15169 /* We use char because int might match the return type of a gcc2
15170     builtin and then its argument prototype would still apply.  */
15171 char shmat();
15172
15173 int main() {
15174 shmat()
15175 ; return 0; }
15176 EOF
15177 if { (eval echo configure:15178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15178   rm -rf conftest*
15179   eval "ac_cv_lib_$ac_lib_var=yes"
15180 else
15181   echo "configure: failed program was:" >&5
15182   cat conftest.$ac_ext >&5
15183   rm -rf conftest*
15184   eval "ac_cv_lib_$ac_lib_var=no"
15185 fi
15186 rm -f conftest*
15187 LIBS="$ac_save_LIBS"
15188
15189 fi
15190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15191   echo "$ac_t""yes" 1>&6
15192   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15193 else
15194   echo "$ac_t""no" 1>&6
15195 fi
15196
15197     fi
15198   fi
15199
15200   # Check for libraries that X11R6 Xt/Xaw programs need.
15201   ac_save_LDFLAGS="$LDFLAGS"
15202   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15203   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15204   # check for ICE first), but we must link in the order -lSM -lICE or
15205   # we get undefined symbols.  So assume we have SM if we have ICE.
15206   # These have to be linked with before -lX11, unlike the other
15207   # libraries we check for below, so use a different variable.
15208   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15209   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15210 echo "configure:15211: checking for IceConnectionNumber in -lICE" >&5
15211 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15213   echo $ac_n "(cached) $ac_c" 1>&6
15214 else
15215   ac_save_LIBS="$LIBS"
15216 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15217 cat > conftest.$ac_ext <<EOF
15218 #line 15219 "configure"
15219 #include "confdefs.h"
15220 /* Override any gcc2 internal prototype to avoid an error.  */
15221 /* We use char because int might match the return type of a gcc2
15222     builtin and then its argument prototype would still apply.  */
15223 char IceConnectionNumber();
15224
15225 int main() {
15226 IceConnectionNumber()
15227 ; return 0; }
15228 EOF
15229 if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230   rm -rf conftest*
15231   eval "ac_cv_lib_$ac_lib_var=yes"
15232 else
15233   echo "configure: failed program was:" >&5
15234   cat conftest.$ac_ext >&5
15235   rm -rf conftest*
15236   eval "ac_cv_lib_$ac_lib_var=no"
15237 fi
15238 rm -f conftest*
15239 LIBS="$ac_save_LIBS"
15240
15241 fi
15242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15243   echo "$ac_t""yes" 1>&6
15244   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15245 else
15246   echo "$ac_t""no" 1>&6
15247 fi
15248
15249   LDFLAGS="$ac_save_LDFLAGS"
15250
15251 fi
15252
15253
15254         if test "$no_x" = "yes"; then
15255           { echo "configure: error: X11 not found" 1>&2; exit 1; }
15256         fi
15257
15258                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15259         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15260         AFMINSTALL=afminstall
15261         COMPILED_X_PROGRAM=0
15262
15263         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15264 echo "configure:15265: checking for Motif/Lesstif headers" >&5
15265         
15266 ac_find_includes=
15267 for ac_dir in $SEARCH_INCLUDE /usr/include;
15268   do
15269     if test -f "$ac_dir/Xm/Xm.h"; then
15270       ac_find_includes=$ac_dir
15271       break
15272     fi
15273   done
15274
15275         if test "$ac_find_includes" != "" ; then
15276             echo "$ac_t""found in $ac_find_includes" 1>&6
15277             
15278     if test "x$ac_find_includes" = "x/usr/include"; then
15279     ac_path_to_include=""
15280   else
15281     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15282     result=$?
15283     if test $result = 0; then
15284       ac_path_to_include=""
15285     else
15286       ac_path_to_include=" -I$ac_find_includes"
15287     fi
15288   fi
15289
15290             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15291         else
15292             cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295
15296                     #include <Xm/Xm.h>
15297                 
15298 int main() {
15299
15300                     int version;
15301                     version = xmUseVersion;
15302                 
15303 ; return 0; }
15304 EOF
15305 if { (eval echo configure:15306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15306   rm -rf conftest*
15307   
15308                     echo "$ac_t""found in default search path" 1>&6
15309                     COMPILED_X_PROGRAM=1
15310                 
15311 else
15312   echo "configure: failed program was:" >&5
15313   cat conftest.$ac_ext >&5
15314   rm -rf conftest*
15315   
15316                     echo "$ac_t""no" 1>&6
15317                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15318                 
15319             
15320 fi
15321 rm -f conftest*
15322         fi
15323
15324         if test "$COMPILED_X_PROGRAM" = 0; then
15325             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15326 echo "configure:15327: checking for Motif/Lesstif library" >&5
15327             
15328 ac_find_libraries=
15329 for ac_dir in $SEARCH_LIB /usr/lib;
15330   do
15331     for ac_extension in a so sl dylib; do
15332       if test -f "$ac_dir/libXm.$ac_extension"; then
15333         ac_find_libraries=$ac_dir
15334         break 2
15335       fi
15336     done
15337   done
15338
15339             if test "$ac_find_libraries" != "" ; then
15340                 echo "$ac_t""found at $ac_find_libraries" 1>&6
15341
15342                 
15343   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15344   result=$?
15345   if test $result = 0; then
15346     ac_path_to_link=""
15347   else
15348     ac_path_to_link=" -L$ac_find_libraries"
15349   fi
15350
15351                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15352             else
15353                                                                 save_CFLAGS=$CFLAGS
15354                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15355
15356                 cat > conftest.$ac_ext <<EOF
15357 #line 15358 "configure"
15358 #include "confdefs.h"
15359
15360                         #include <Xm/Xm.h>
15361                     
15362 int main() {
15363
15364                         int version;
15365                         version = xmUseVersion;
15366                     
15367 ; return 0; }
15368 EOF
15369 if { (eval echo configure:15370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15370   rm -rf conftest*
15371   
15372                         echo "$ac_t""found in default search path" 1>&6
15373                         COMPILED_X_PROGRAM=1
15374                     
15375 else
15376   echo "configure: failed program was:" >&5
15377   cat conftest.$ac_ext >&5
15378   rm -rf conftest*
15379   
15380                         echo "$ac_t""no" 1>&6
15381                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15382                     
15383                 
15384 fi
15385 rm -f conftest*
15386
15387                 CFLAGS=$save_CFLAGS
15388             fi
15389         fi
15390
15391         xpm_link=
15392         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15393 echo "configure:15394: checking for Xpm library" >&5
15394         
15395 ac_find_libraries=
15396 for ac_dir in $SEARCH_LIB /usr/lib;
15397   do
15398     for ac_extension in a so sl dylib; do
15399       if test -f "$ac_dir/libXpm.$ac_extension"; then
15400         ac_find_libraries=$ac_dir
15401         break 2
15402       fi
15403     done
15404   done
15405
15406         if test "$ac_find_libraries" != "" ; then
15407             
15408   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15409   result=$?
15410   if test $result = 0; then
15411     ac_path_to_link=""
15412   else
15413     ac_path_to_link=" -L$ac_find_libraries"
15414   fi
15415
15416             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15417
15418             xpm_link=" -lXpm"
15419             cat >> confdefs.h <<\EOF
15420 #define wxHAVE_LIB_XPM 1
15421 EOF
15422
15423             echo "$ac_t""found at $ac_find_libraries" 1>&6
15424         else
15425             save_CFLAGS=$CFLAGS
15426             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15427
15428             cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431
15432                     #include <X11/xpm.h>
15433                 
15434 int main() {
15435
15436                     int version;
15437                     version = XpmLibraryVersion();
15438                 
15439 ; return 0; }
15440 EOF
15441 if { (eval echo configure:15442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15442   rm -rf conftest*
15443   
15444                     xpm_link=" -lXpm"
15445                     cat >> confdefs.h <<\EOF
15446 #define wxHAVE_LIB_XPM 1
15447 EOF
15448
15449                     echo "$ac_t""found in default search path" 1>&6
15450                     COMPILED_X_PROGRAM=0
15451                 
15452 else
15453   echo "configure: failed program was:" >&5
15454   cat conftest.$ac_ext >&5
15455   rm -rf conftest*
15456   
15457                     echo "$ac_t""no" 1>&6
15458                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15459                 
15460             
15461 fi
15462 rm -f conftest*
15463
15464             CFLAGS=$save_CFLAGS
15465         fi
15466
15467         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15468 echo "configure:15469: checking if we need -lXp and/or -lSM -lICE" >&5
15469         libp_link=""
15470         libsm_ice_link=""
15471         libs_found=0
15472         for libp in "" " -lXp"; do
15473             if test "$libs_found" = "0"; then
15474                 for libsm_ice in " -lSM -lICE"; do
15475                     if test "$libs_found" = "0"; then
15476                         save_LIBS="$LIBS"
15477                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15478                         save_CFLAGS=$CFLAGS
15479                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15480
15481                         cat > conftest.$ac_ext <<EOF
15482 #line 15483 "configure"
15483 #include "confdefs.h"
15484
15485                                 #include <Xm/Xm.h>
15486                                 #include <Xm/List.h>
15487                             
15488 int main() {
15489
15490                                 XmString string = NULL;
15491                                 Widget w = NULL;
15492                                 int position = 0;
15493                                 XmListAddItem(w, string, position);
15494                             
15495 ; return 0; }
15496 EOF
15497 if { (eval echo configure:15498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15498   rm -rf conftest*
15499   
15500                                 libp_link="$libp"
15501                                 libsm_ice_link="$libsm_ice"
15502                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15503                                 libs_found=1
15504                             
15505 else
15506   echo "configure: failed program was:" >&5
15507   cat conftest.$ac_ext >&5
15508   rm -rf conftest*
15509   
15510                         
15511 fi
15512 rm -f conftest*
15513
15514                         LIBS="$save_LIBS"
15515                         CFLAGS=$save_CFLAGS
15516                     fi
15517                 done
15518             fi
15519         done
15520
15521         if test "$libs_found" = "0"; then
15522             echo "$ac_t""can't find the right libraries" 1>&6
15523             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15524         fi
15525
15526         save_CFLAGS=$CFLAGS
15527         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15528         echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15529 echo "configure:15530: checking for Motif 2" >&5
15530         cat > conftest.$ac_ext <<EOF
15531 #line 15532 "configure"
15532 #include "confdefs.h"
15533
15534                         #include <Xm/Xm.h>
15535                        
15536 int main() {
15537
15538                         #if XmVersion < 2000
15539                         #error "Not Motif 2"
15540                         #endif
15541                        
15542 ; return 0; }
15543 EOF
15544 if { (eval echo configure:15545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15545   rm -rf conftest*
15546   
15547                         cat >> confdefs.h <<\EOF
15548 #define __WXMOTIF20__ 1
15549 EOF
15550
15551                         echo "$ac_t""found" 1>&6
15552                        
15553 else
15554   echo "configure: failed program was:" >&5
15555   cat conftest.$ac_ext >&5
15556   rm -rf conftest*
15557   
15558                         cat >> confdefs.h <<\EOF
15559 #define __WXMOTIF20__ 0
15560 EOF
15561
15562                         echo "$ac_t""not found" 1>&6
15563                        
15564 fi
15565 rm -f conftest*
15566         CFLAGS=$save_CFLAGS
15567
15568         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15569         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15570         TOOLKIT=MOTIF
15571         GUIDIST=MOTIF_DIST
15572     fi
15573
15574     if test "$wxUSE_MAC" = 1; then
15575         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15576
15577         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15578         TOOLKIT=MAC
15579                 GUIDIST=MACX_DIST
15580     fi
15581
15582     if test "$wxUSE_COCOA" = 1; then
15583         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15584         TOOLKIT=COCOA
15585         GUIDIST=COCOA_DIST
15586     fi
15587
15588     if test "$wxUSE_PM" = 1; then
15589         TOOLKIT=PM
15590         GUIDIST=GTK_DIST
15591         echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15592         wxUSE_THREADS="no"
15593     fi
15594
15595         if test "$TOOLKIT" = "PM" ; then
15596         TOOLKIT_DIR="os2"
15597     else
15598         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15599     fi
15600
15601         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15602
15603     if test "$wxUSE_UNIVERSAL" = "yes"; then
15604         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15605
15606                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15607         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15608
15609         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15610         if test "$wxUSE_X11" = 1; then
15611             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15612         else
15613             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15614         fi
15615         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15616         WIDGET_SET=univ
15617     else
15618         ALL_OBJECTS="\$(GUIOBJS)"
15619         ALL_SOURCES="\$(ALL_SOURCES)"
15620         ALL_HEADERS="\$(ALL_HEADERS)"
15621     fi
15622
15623     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15624
15625     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15626         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15627     fi
15628
15629     if test "$wxUSE_HTML" = "yes"; then
15630         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15631     fi
15632
15633     if test "$wxUSE_LIBJPEG" = "builtin" ; then
15634         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15635     fi
15636     if test "$wxUSE_LIBTIFF" = "builtin" ; then
15637         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15638     fi
15639     if test "$wxUSE_LIBPNG" = "builtin" ; then
15640         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15641     fi
15642
15643         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15644     DISTDIR="wx\$(TOOLKIT)"
15645 else
15646     USE_GUI=0
15647
15648             TOOLKIT_DIR="base"
15649
15650         if test "$USE_WIN32" = 1 ; then
15651         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15652         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15653
15654                         TOOLKIT="MSW"
15655     else
15656         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15657         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15658     fi
15659
15660     ALL_SOURCES="\$(ALL_SOURCES)"
15661     ALL_HEADERS="\$(ALL_HEADERS)"
15662
15663     PORT_FILES="\${top_srcdir}/src/files.lst"
15664
15665         GUIDIST="BASE_DIST"
15666     DISTDIR="wxBase"
15667 fi
15668
15669
15670 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15671     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15672 fi
15673
15674 if test "$wxUSE_REGEX" = "builtin" ; then
15675     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15676 fi
15677 if test "$wxUSE_ZLIB" = "builtin" ; then
15678     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15679 fi
15680
15681
15682 if test "$wxUSE_OPENGL" = "yes"; then
15683     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15684         OPENGL_LIBS="-framework OpenGL -framework AGL"
15685     elif test "$wxUSE_MSW" = 1; then
15686         OPENGL_LIBS="-lopengl32 -lglu32"
15687     else
15688         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15689 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15690 echo "configure:15691: checking for GL/gl.h" >&5
15691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15692   echo $ac_n "(cached) $ac_c" 1>&6
15693 else
15694   cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 #include <GL/gl.h>
15698 EOF
15699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15700 { (eval echo configure:15701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15702 if test -z "$ac_err"; then
15703   rm -rf conftest*
15704   eval "ac_cv_header_$ac_safe=yes"
15705 else
15706   echo "$ac_err" >&5
15707   echo "configure: failed program was:" >&5
15708   cat conftest.$ac_ext >&5
15709   rm -rf conftest*
15710   eval "ac_cv_header_$ac_safe=no"
15711 fi
15712 rm -f conftest*
15713 fi
15714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15715   echo "$ac_t""yes" 1>&6
15716   
15717                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15718 echo "configure:15719: checking for -lGL" >&5
15719                 
15720 ac_find_libraries=
15721 for ac_dir in $SEARCH_LIB /usr/lib;
15722   do
15723     for ac_extension in a so sl dylib; do
15724       if test -f "$ac_dir/libGL.$ac_extension"; then
15725         ac_find_libraries=$ac_dir
15726         break 2
15727       fi
15728     done
15729   done
15730
15731                 if test "$ac_find_libraries" != "" ; then
15732                     
15733   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15734   result=$?
15735   if test $result = 0; then
15736     ac_path_to_link=""
15737   else
15738     ac_path_to_link=" -L$ac_find_libraries"
15739   fi
15740
15741                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
15742                         LDFLAGS_GL="$LDFLAGS"
15743                     else
15744                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15745                     fi
15746                     OPENGL_LIBS="-lGL -lGLU"
15747                     echo "$ac_t""yes" 1>&6
15748                 else
15749                     echo "$ac_t""no" 1>&6
15750                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15751 echo "configure:15752: checking for -lMesaGL" >&5
15752                     
15753 ac_find_libraries=
15754 for ac_dir in $SEARCH_LIB /usr/lib;
15755   do
15756     for ac_extension in a so sl dylib; do
15757       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15758         ac_find_libraries=$ac_dir
15759         break 2
15760       fi
15761     done
15762   done
15763
15764                     if test "$ac_find_libraries" != "" ; then
15765                         
15766   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15767   result=$?
15768   if test $result = 0; then
15769     ac_path_to_link=""
15770   else
15771     ac_path_to_link=" -L$ac_find_libraries"
15772   fi
15773
15774                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15775                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
15776                         echo "$ac_t""yes" 1>&6
15777                     else
15778                         echo "$ac_t""no" 1>&6
15779                     fi
15780                 fi
15781             
15782 else
15783   echo "$ac_t""no" 1>&6
15784 fi
15785
15786
15787         if test "x$OPENGL_LIBS" = "x"; then
15788                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15789         fi
15790     fi
15791
15792     if test "$wxUSE_OPENGL" = "yes"; then
15793         cat >> confdefs.h <<\EOF
15794 #define wxUSE_OPENGL 1
15795 EOF
15796
15797         cat >> confdefs.h <<\EOF
15798 #define wxUSE_GLCANVAS 1
15799 EOF
15800
15801         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15802     fi
15803 fi
15804
15805 if test -z "$TOOLKIT_VPATH" ; then
15806     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15807 fi
15808
15809 if test -n "$TOOLKIT" ; then
15810     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15811 fi
15812
15813 lib_unicode_suffix=
15814 if test "$wxUSE_UNICODE" = "yes"; then
15815     lib_unicode_suffix=u
15816 fi
15817
15818 lib_debug_suffix=
15819 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15820     lib_debug_suffix=d
15821 fi
15822
15823 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15824
15825 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15826 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15827
15828 if test "$cross_compiling" = "yes"; then
15829     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15830     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15831 fi
15832
15833 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15834 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15835 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15836
15837 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15838 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15839
15840 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15841 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15842 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15843 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15844
15845 case "${host}" in
15846     *-*-cygwin* | *-*-mingw32* )
15847
15848                         
15849         
15850         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15851             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15852             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15853             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15854             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15855         else
15856             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15857             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15858         fi
15859         ;;
15860
15861     *-*-darwin* )
15862                 
15863         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15864         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15865
15866         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15867         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15868         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15869         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15870
15871                         if test "$wxUSE_MAC" = 1; then
15872                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15873             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
15874         fi
15875         ;;
15876 esac
15877
15878 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15879 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15880
15881 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15882 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15883
15884 if test "$wxUSE_OPENGL" = "yes"; then
15885     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15886     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15887 fi
15888
15889
15890
15891 if test "$wxUSE_SHARED" = "yes"; then
15892     case "${host}" in
15893       *-pc-os2_emx | *-pc-os2-emx | \
15894       *-pc-msdosdjgpp )
15895                 wxUSE_SHARED=no
15896         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15897       ;;
15898     esac
15899 fi
15900
15901 if test "$wxUSE_SHARED" = "yes"; then
15902
15903         if test "$wxUSE_OPENGL" = "yes"; then
15904         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15905         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15906     else
15907         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15908         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15909     fi
15910
15911         if test "$GCC" = "yes"; then
15912                 PIC_FLAG="-fPIC"
15913     fi
15914
15915
15916         
15917   found_versioning=no
15918
15919                         
15920     if test $found_versioning = no ; then
15921       echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15922 echo "configure:15923: checking if the linker accepts --version-script" >&5
15923 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15924   echo $ac_n "(cached) $ac_c" 1>&6
15925 else
15926   
15927         echo "VER_1 { *; };" >conftest.sym
15928         echo "int main() { return 0; }" >conftest.cpp
15929   
15930         if { ac_try='
15931                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15932                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15933           if test -s conftest.stderr ; then
15934               wx_cv_version_script=no
15935           else
15936               wx_cv_version_script=yes
15937           fi
15938         else
15939           wx_cv_version_script=no
15940         fi
15941         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15942       
15943 fi
15944
15945 echo "$ac_t""$wx_cv_version_script" 1>&6
15946       if test $wx_cv_version_script = yes ; then
15947         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15948       fi
15949   fi
15950
15951
15952         SHARED_LD="${CXX} -shared -o"
15953
15954     case "${host}" in
15955       *-hp-hpux* )
15956                 if test "$GCC" = "yes"; then
15957                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15958         else
15959                         LDFLAGS="$LDFLAGS -L/usr/lib"
15960
15961             SHARED_LD="${CXX} -b -o"
15962             PIC_FLAG="+Z"
15963         fi
15964
15965                 if test "$wxUSE_OPENGL" = "yes"; then
15966             WX_ALL_INSTALLED="preinstall_gl"
15967             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15968         else
15969             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15970         fi
15971       ;;
15972
15973       *-*-linux* )
15974         if test "$GCC" != "yes"; then
15975             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15976 echo "configure:15977: checking for Intel compiler" >&5
15977 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15978   echo $ac_n "(cached) $ac_c" 1>&6
15979 else
15980   
15981                 cat > conftest.$ac_ext <<EOF
15982 #line 15983 "configure"
15983 #include "confdefs.h"
15984
15985 int main() {
15986
15987                         #ifndef __INTEL_COMPILER
15988                         #error Not icc
15989                         #endif
15990                     
15991 ; return 0; }
15992 EOF
15993 if { (eval echo configure:15994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15994   rm -rf conftest*
15995   wx_cv_prog_icc=yes
15996 else
15997   echo "configure: failed program was:" >&5
15998   cat conftest.$ac_ext >&5
15999   rm -rf conftest*
16000   wx_cv_prog_icc=no
16001                 
16002 fi
16003 rm -f conftest*
16004             
16005 fi
16006
16007 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16008             if test "$wx_cv_prog_icc" = "yes"; then
16009                 PIC_FLAG="-KPIC"
16010             fi
16011         fi
16012
16013         if test "$wxUSE_SONAME" = "yes" ; then
16014             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16015             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16016                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16017         fi
16018       ;;
16019
16020       *-*-solaris2* )
16021         if test "$GCC" = yes ; then
16022                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16023         else
16024             SHARED_LD="${CXX} -G -o"
16025             PIC_FLAG="-KPIC"
16026             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16027             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16028         fi
16029       ;;
16030
16031       *-*-darwin* )
16032                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16033         CFLAGS="$CFLAGS -fno-common"
16034         CXXFLAGS="$CXXFLAGS -fno-common"
16035                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16036         PIC_FLAG="-dynamic -fPIC"
16037                                 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16038         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16039       ;;
16040
16041       *-*-aix* )
16042                 if test "$GCC" != "yes"; then
16043                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16044 set dummy makeC++SharedLib; ac_word=$2
16045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16046 echo "configure:16047: checking for $ac_word" >&5
16047 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16048   echo $ac_n "(cached) $ac_c" 1>&6
16049 else
16050   if test -n "$AIX_CXX_LD"; then
16051   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16052 else
16053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16054   ac_dummy="$PATH"
16055   for ac_dir in $ac_dummy; do
16056     test -z "$ac_dir" && ac_dir=.
16057     if test -f $ac_dir/$ac_word; then
16058       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16059       break
16060     fi
16061   done
16062   IFS="$ac_save_ifs"
16063   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16064 fi
16065 fi
16066 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16067 if test -n "$AIX_CXX_LD"; then
16068   echo "$ac_t""$AIX_CXX_LD" 1>&6
16069 else
16070   echo "$ac_t""no" 1>&6
16071 fi
16072
16073
16074             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16075         fi
16076       ;;
16077
16078       *-*-cygwin* | *-*-mingw32* )
16079         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16080
16081         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16082         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16083
16084         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16085
16086                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16087         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16088
16089         if test "$wxUSE_OPENGL" = "yes"; then
16090             LIBS="${LIBS} ${OPENGL_LIBS}"
16091         fi
16092       ;;
16093
16094       *-*-beos* )
16095                         SHARED_LD="${LD} -shared -o"
16096       ;;
16097
16098       *-*-irix* )
16099                 if test "$GCC" != "yes"; then
16100             PIC_FLAG="-KPIC"
16101         fi
16102       ;;
16103
16104       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16105       *-*-sunos4* | \
16106       *-*-osf* | \
16107       *-*-dgux5* | \
16108       *-*-sysv5* )
16109               ;;
16110
16111       *)
16112         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16113     esac
16114
16115         if test "x$WX_TARGET_LIBRARY" = "x"; then
16116         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16117         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16118     fi
16119
16120         WX_TARGET_LIBRARY_TYPE="so"
16121     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16122 fi
16123
16124 if test "$wxUSE_SHARED" = "no"; then
16125
16126         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16127                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16128     fi
16129
16130     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16131         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16132     fi
16133
16134     if test "$wxUSE_OPENGL" = "yes"; then
16135         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16136         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16137     else
16138         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16139     fi
16140
16141     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16142     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16143
16144     WX_TARGET_LIBRARY_TYPE="a"
16145     INSTALL_LIBRARY='$(INSTALL_DATA)'
16146
16147             STATIC_FLAG="yes"
16148 else
16149     STATIC_FLAG="no"
16150 fi
16151
16152 MACRESCOMP="@#"
16153 MACSETFILE="@#"
16154 MACRESWXCONFIG="#"
16155 if test "$wxUSE_MAC" = 1; then
16156         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16157     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16158     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16159     # Extract the first word of "Rez", so it can be a program name with args.
16160 set dummy Rez; ac_word=$2
16161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16162 echo "configure:16163: checking for $ac_word" >&5
16163 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16164   echo $ac_n "(cached) $ac_c" 1>&6
16165 else
16166   if test -n "$RESCOMP"; then
16167   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16168 else
16169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16170   ac_dummy="$PATH"
16171   for ac_dir in $ac_dummy; do
16172     test -z "$ac_dir" && ac_dir=.
16173     if test -f $ac_dir/$ac_word; then
16174       ac_cv_prog_RESCOMP="Rez"
16175       break
16176     fi
16177   done
16178   IFS="$ac_save_ifs"
16179   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16180 fi
16181 fi
16182 RESCOMP="$ac_cv_prog_RESCOMP"
16183 if test -n "$RESCOMP"; then
16184   echo "$ac_t""$RESCOMP" 1>&6
16185 else
16186   echo "$ac_t""no" 1>&6
16187 fi
16188
16189     # Extract the first word of "DeRez", so it can be a program name with args.
16190 set dummy DeRez; ac_word=$2
16191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16192 echo "configure:16193: checking for $ac_word" >&5
16193 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16194   echo $ac_n "(cached) $ac_c" 1>&6
16195 else
16196   if test -n "$DEREZ"; then
16197   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16198 else
16199   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16200   ac_dummy="$PATH"
16201   for ac_dir in $ac_dummy; do
16202     test -z "$ac_dir" && ac_dir=.
16203     if test -f $ac_dir/$ac_word; then
16204       ac_cv_prog_DEREZ="DeRez"
16205       break
16206     fi
16207   done
16208   IFS="$ac_save_ifs"
16209   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16210 fi
16211 fi
16212 DEREZ="$ac_cv_prog_DEREZ"
16213 if test -n "$DEREZ"; then
16214   echo "$ac_t""$DEREZ" 1>&6
16215 else
16216   echo "$ac_t""no" 1>&6
16217 fi
16218
16219     # Extract the first word of "SetFile", so it can be a program name with args.
16220 set dummy SetFile; ac_word=$2
16221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16222 echo "configure:16223: checking for $ac_word" >&5
16223 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16224   echo $ac_n "(cached) $ac_c" 1>&6
16225 else
16226   if test -n "$SETFILE"; then
16227   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16228 else
16229   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16230   ac_dummy="$PATH"
16231   for ac_dir in $ac_dummy; do
16232     test -z "$ac_dir" && ac_dir=.
16233     if test -f $ac_dir/$ac_word; then
16234       ac_cv_prog_SETFILE="SetFile"
16235       break
16236     fi
16237   done
16238   IFS="$ac_save_ifs"
16239   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16240 fi
16241 fi
16242 SETFILE="$ac_cv_prog_SETFILE"
16243 if test -n "$SETFILE"; then
16244   echo "$ac_t""$SETFILE" 1>&6
16245 else
16246   echo "$ac_t""no" 1>&6
16247 fi
16248
16249     MACOSX_BUNDLE="bundle"
16250             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16251     MACSETFILE="\$(SETFILE)"
16252     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16253 else
16254     if test "$wxUSE_PM" = 1; then
16255         MACRESCOMP="emxbind -ep"
16256     fi
16257 fi
16258
16259
16260 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16261 echo "configure:16262: checking for ANSI C header files" >&5
16262 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16263   echo $ac_n "(cached) $ac_c" 1>&6
16264 else
16265   cat > conftest.$ac_ext <<EOF
16266 #line 16267 "configure"
16267 #include "confdefs.h"
16268 #include <stdlib.h>
16269 #include <stdarg.h>
16270 #include <string.h>
16271 #include <float.h>
16272 EOF
16273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16274 { (eval echo configure:16275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16276 if test -z "$ac_err"; then
16277   rm -rf conftest*
16278   ac_cv_header_stdc=yes
16279 else
16280   echo "$ac_err" >&5
16281   echo "configure: failed program was:" >&5
16282   cat conftest.$ac_ext >&5
16283   rm -rf conftest*
16284   ac_cv_header_stdc=no
16285 fi
16286 rm -f conftest*
16287
16288 if test $ac_cv_header_stdc = yes; then
16289   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16290 cat > conftest.$ac_ext <<EOF
16291 #line 16292 "configure"
16292 #include "confdefs.h"
16293 #include <string.h>
16294 EOF
16295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16296   egrep "memchr" >/dev/null 2>&1; then
16297   :
16298 else
16299   rm -rf conftest*
16300   ac_cv_header_stdc=no
16301 fi
16302 rm -f conftest*
16303
16304 fi
16305
16306 if test $ac_cv_header_stdc = yes; then
16307   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16308 cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 #include <stdlib.h>
16312 EOF
16313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16314   egrep "free" >/dev/null 2>&1; then
16315   :
16316 else
16317   rm -rf conftest*
16318   ac_cv_header_stdc=no
16319 fi
16320 rm -f conftest*
16321
16322 fi
16323
16324 if test $ac_cv_header_stdc = yes; then
16325   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16326 if test "$cross_compiling" = yes; then
16327   :
16328 else
16329   cat > conftest.$ac_ext <<EOF
16330 #line 16331 "configure"
16331 #include "confdefs.h"
16332 #include <ctype.h>
16333 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16334 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16336 int main () { int i; for (i = 0; i < 256; i++)
16337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16338 exit (0); }
16339
16340 EOF
16341 if { (eval echo configure:16342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16342 then
16343   :
16344 else
16345   echo "configure: failed program was:" >&5
16346   cat conftest.$ac_ext >&5
16347   rm -fr conftest*
16348   ac_cv_header_stdc=no
16349 fi
16350 rm -fr conftest*
16351 fi
16352
16353 fi
16354 fi
16355
16356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16357 if test $ac_cv_header_stdc = yes; then
16358   cat >> confdefs.h <<\EOF
16359 #define STDC_HEADERS 1
16360 EOF
16361
16362 fi
16363
16364 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16365 echo "configure:16366: checking for mode_t" >&5
16366 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16367   echo $ac_n "(cached) $ac_c" 1>&6
16368 else
16369   cat > conftest.$ac_ext <<EOF
16370 #line 16371 "configure"
16371 #include "confdefs.h"
16372 #include <sys/types.h>
16373 #if STDC_HEADERS
16374 #include <stdlib.h>
16375 #include <stddef.h>
16376 #endif
16377 EOF
16378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16379   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16380   rm -rf conftest*
16381   ac_cv_type_mode_t=yes
16382 else
16383   rm -rf conftest*
16384   ac_cv_type_mode_t=no
16385 fi
16386 rm -f conftest*
16387
16388 fi
16389 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16390 if test $ac_cv_type_mode_t = no; then
16391   cat >> confdefs.h <<\EOF
16392 #define mode_t int
16393 EOF
16394
16395 fi
16396
16397 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16398 echo "configure:16399: checking for off_t" >&5
16399 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16400   echo $ac_n "(cached) $ac_c" 1>&6
16401 else
16402   cat > conftest.$ac_ext <<EOF
16403 #line 16404 "configure"
16404 #include "confdefs.h"
16405 #include <sys/types.h>
16406 #if STDC_HEADERS
16407 #include <stdlib.h>
16408 #include <stddef.h>
16409 #endif
16410 EOF
16411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16412   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16413   rm -rf conftest*
16414   ac_cv_type_off_t=yes
16415 else
16416   rm -rf conftest*
16417   ac_cv_type_off_t=no
16418 fi
16419 rm -f conftest*
16420
16421 fi
16422 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16423 if test $ac_cv_type_off_t = no; then
16424   cat >> confdefs.h <<\EOF
16425 #define off_t long
16426 EOF
16427
16428 fi
16429
16430 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16431 echo "configure:16432: checking for pid_t" >&5
16432 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16433   echo $ac_n "(cached) $ac_c" 1>&6
16434 else
16435   cat > conftest.$ac_ext <<EOF
16436 #line 16437 "configure"
16437 #include "confdefs.h"
16438 #include <sys/types.h>
16439 #if STDC_HEADERS
16440 #include <stdlib.h>
16441 #include <stddef.h>
16442 #endif
16443 EOF
16444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16445   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16446   rm -rf conftest*
16447   ac_cv_type_pid_t=yes
16448 else
16449   rm -rf conftest*
16450   ac_cv_type_pid_t=no
16451 fi
16452 rm -f conftest*
16453
16454 fi
16455 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16456 if test $ac_cv_type_pid_t = no; then
16457   cat >> confdefs.h <<\EOF
16458 #define pid_t int
16459 EOF
16460
16461 fi
16462
16463 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16464 echo "configure:16465: checking for size_t" >&5
16465 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16466   echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468   cat > conftest.$ac_ext <<EOF
16469 #line 16470 "configure"
16470 #include "confdefs.h"
16471 #include <sys/types.h>
16472 #if STDC_HEADERS
16473 #include <stdlib.h>
16474 #include <stddef.h>
16475 #endif
16476 EOF
16477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16478   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16479   rm -rf conftest*
16480   ac_cv_type_size_t=yes
16481 else
16482   rm -rf conftest*
16483   ac_cv_type_size_t=no
16484 fi
16485 rm -f conftest*
16486
16487 fi
16488 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16489 if test $ac_cv_type_size_t = no; then
16490   cat >> confdefs.h <<\EOF
16491 #define size_t unsigned
16492 EOF
16493
16494 fi
16495
16496 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16497 echo "configure:16498: checking for uid_t in sys/types.h" >&5
16498 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16499   echo $ac_n "(cached) $ac_c" 1>&6
16500 else
16501   cat > conftest.$ac_ext <<EOF
16502 #line 16503 "configure"
16503 #include "confdefs.h"
16504 #include <sys/types.h>
16505 EOF
16506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16507   egrep "uid_t" >/dev/null 2>&1; then
16508   rm -rf conftest*
16509   ac_cv_type_uid_t=yes
16510 else
16511   rm -rf conftest*
16512   ac_cv_type_uid_t=no
16513 fi
16514 rm -f conftest*
16515
16516 fi
16517
16518 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16519 if test $ac_cv_type_uid_t = no; then
16520   cat >> confdefs.h <<\EOF
16521 #define uid_t int
16522 EOF
16523
16524   cat >> confdefs.h <<\EOF
16525 #define gid_t int
16526 EOF
16527
16528 fi
16529
16530
16531
16532 ac_ext=C
16533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16534 ac_cpp='$CXXCPP $CPPFLAGS'
16535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16537 cross_compiling=$ac_cv_prog_cxx_cross
16538
16539 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16540 echo "configure:16541: checking if size_t is unsigned int" >&5
16541 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16542   echo $ac_n "(cached) $ac_c" 1>&6
16543 else
16544                           cat > conftest.$ac_ext <<EOF
16545 #line 16546 "configure"
16546 #include "confdefs.h"
16547 #include <stddef.h>
16548 int main() {
16549
16550             return 0; }
16551
16552             struct Foo { void foo(size_t); void foo(unsigned int); };
16553
16554             int bar() {
16555         
16556 ; return 0; }
16557 EOF
16558 if { (eval echo configure:16559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16559   rm -rf conftest*
16560   wx_cv_size_t_is_uint=no
16561 else
16562   echo "configure: failed program was:" >&5
16563   cat conftest.$ac_ext >&5
16564   rm -rf conftest*
16565   wx_cv_size_t_is_uint=yes
16566     
16567 fi
16568 rm -f conftest*
16569
16570 fi
16571
16572 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16573
16574 if test "$wx_cv_size_t_is_uint" = "yes"; then
16575     cat >> confdefs.h <<\EOF
16576 #define wxSIZE_T_IS_UINT 1
16577 EOF
16578
16579 else
16580     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16581 echo "configure:16582: checking if size_t is unsigned long" >&5
16582 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16583   echo $ac_n "(cached) $ac_c" 1>&6
16584 else
16585   cat > conftest.$ac_ext <<EOF
16586 #line 16587 "configure"
16587 #include "confdefs.h"
16588 #include <stddef.h>
16589 int main() {
16590
16591                 return 0; }
16592
16593                 struct Foo { void foo(size_t); void foo(unsigned long); };
16594
16595                 int bar() {
16596             
16597 ; return 0; }
16598 EOF
16599 if { (eval echo configure:16600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16600   rm -rf conftest*
16601   wx_cv_size_t_is_ulong=no
16602 else
16603   echo "configure: failed program was:" >&5
16604   cat conftest.$ac_ext >&5
16605   rm -rf conftest*
16606   wx_cv_size_t_is_ulong=yes
16607         
16608 fi
16609 rm -f conftest*
16610     
16611 fi
16612
16613 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16614
16615     if test "$wx_cv_size_t_is_ulong" = "yes"; then
16616         cat >> confdefs.h <<\EOF
16617 #define wxSIZE_T_IS_ULONG 1
16618 EOF
16619
16620     fi
16621 fi
16622
16623 ac_ext=c
16624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16625 ac_cpp='$CPP $CPPFLAGS'
16626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16628 cross_compiling=$ac_cv_prog_cc_cross
16629
16630
16631
16632 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16633 echo "configure:16634: checking for pw_gecos in struct passwd" >&5
16634 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16635   echo $ac_n "(cached) $ac_c" 1>&6
16636 else
16637   
16638         cat > conftest.$ac_ext <<EOF
16639 #line 16640 "configure"
16640 #include "confdefs.h"
16641 #include <pwd.h>
16642 int main() {
16643
16644                 char *p;
16645                 struct passwd *pw;
16646                 p = pw->pw_gecos;
16647              
16648 ; return 0; }
16649 EOF
16650 if { (eval echo configure:16651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16651   rm -rf conftest*
16652   
16653                 wx_cv_struct_pw_gecos=yes
16654              
16655 else
16656   echo "configure: failed program was:" >&5
16657   cat conftest.$ac_ext >&5
16658   rm -rf conftest*
16659   
16660                 wx_cv_struct_pw_gecos=no
16661              
16662         
16663 fi
16664 rm -f conftest*
16665     
16666
16667 fi
16668
16669 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16670
16671 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16672     cat >> confdefs.h <<\EOF
16673 #define HAVE_PW_GECOS 1
16674 EOF
16675
16676 fi
16677
16678
16679 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16680     cat >> confdefs.h <<\EOF
16681 #define wxUSE_WCHAR_T 1
16682 EOF
16683
16684
16685         WCSLEN_FOUND=0
16686     WCHAR_LINK=
16687     for ac_func in wcslen
16688 do
16689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16690 echo "configure:16691: checking for $ac_func" >&5
16691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16692   echo $ac_n "(cached) $ac_c" 1>&6
16693 else
16694   cat > conftest.$ac_ext <<EOF
16695 #line 16696 "configure"
16696 #include "confdefs.h"
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char $ac_func(); below.  */
16699 #include <assert.h>
16700 /* Override any gcc2 internal prototype to avoid an error.  */
16701 /* We use char because int might match the return type of a gcc2
16702     builtin and then its argument prototype would still apply.  */
16703 char $ac_func();
16704
16705 int main() {
16706
16707 /* The GNU C library defines this for functions which it implements
16708     to always fail with ENOSYS.  Some functions are actually named
16709     something starting with __ and the normal name is an alias.  */
16710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16711 choke me
16712 #else
16713 $ac_func();
16714 #endif
16715
16716 ; return 0; }
16717 EOF
16718 if { (eval echo configure:16719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16719   rm -rf conftest*
16720   eval "ac_cv_func_$ac_func=yes"
16721 else
16722   echo "configure: failed program was:" >&5
16723   cat conftest.$ac_ext >&5
16724   rm -rf conftest*
16725   eval "ac_cv_func_$ac_func=no"
16726 fi
16727 rm -f conftest*
16728 fi
16729
16730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16731   echo "$ac_t""yes" 1>&6
16732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16733   cat >> confdefs.h <<EOF
16734 #define $ac_tr_func 1
16735 EOF
16736  WCSLEN_FOUND=1
16737 else
16738   echo "$ac_t""no" 1>&6
16739 fi
16740 done
16741
16742
16743     if test "$WCSLEN_FOUND" = 0; then
16744         if test "$TOOLKIT" = "MSW"; then
16745             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16746 echo "configure:16747: checking for wcslen in -lmsvcrt" >&5
16747 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16749   echo $ac_n "(cached) $ac_c" 1>&6
16750 else
16751   ac_save_LIBS="$LIBS"
16752 LIBS="-lmsvcrt  $LIBS"
16753 cat > conftest.$ac_ext <<EOF
16754 #line 16755 "configure"
16755 #include "confdefs.h"
16756 /* Override any gcc2 internal prototype to avoid an error.  */
16757 /* We use char because int might match the return type of a gcc2
16758     builtin and then its argument prototype would still apply.  */
16759 char wcslen();
16760
16761 int main() {
16762 wcslen()
16763 ; return 0; }
16764 EOF
16765 if { (eval echo configure:16766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16766   rm -rf conftest*
16767   eval "ac_cv_lib_$ac_lib_var=yes"
16768 else
16769   echo "configure: failed program was:" >&5
16770   cat conftest.$ac_ext >&5
16771   rm -rf conftest*
16772   eval "ac_cv_lib_$ac_lib_var=no"
16773 fi
16774 rm -f conftest*
16775 LIBS="$ac_save_LIBS"
16776
16777 fi
16778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16779   echo "$ac_t""yes" 1>&6
16780   WCHAR_OK=1
16781 else
16782   echo "$ac_t""no" 1>&6
16783 fi
16784
16785         else
16786             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16787 echo "configure:16788: checking for wcslen in -lw" >&5
16788 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16790   echo $ac_n "(cached) $ac_c" 1>&6
16791 else
16792   ac_save_LIBS="$LIBS"
16793 LIBS="-lw  $LIBS"
16794 cat > conftest.$ac_ext <<EOF
16795 #line 16796 "configure"
16796 #include "confdefs.h"
16797 /* Override any gcc2 internal prototype to avoid an error.  */
16798 /* We use char because int might match the return type of a gcc2
16799     builtin and then its argument prototype would still apply.  */
16800 char wcslen();
16801
16802 int main() {
16803 wcslen()
16804 ; return 0; }
16805 EOF
16806 if { (eval echo configure:16807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16807   rm -rf conftest*
16808   eval "ac_cv_lib_$ac_lib_var=yes"
16809 else
16810   echo "configure: failed program was:" >&5
16811   cat conftest.$ac_ext >&5
16812   rm -rf conftest*
16813   eval "ac_cv_lib_$ac_lib_var=no"
16814 fi
16815 rm -f conftest*
16816 LIBS="$ac_save_LIBS"
16817
16818 fi
16819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16820   echo "$ac_t""yes" 1>&6
16821   
16822                             WCHAR_LINK=" -lw"
16823                             WCSLEN_FOUND=1
16824                         
16825 else
16826   echo "$ac_t""no" 1>&6
16827 fi
16828
16829         fi
16830     fi
16831
16832     if test "$WCSLEN_FOUND" = 1; then
16833         cat >> confdefs.h <<\EOF
16834 #define HAVE_WCSLEN 1
16835 EOF
16836
16837     fi
16838
16839             for ac_func in wcsrtombs
16840 do
16841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16842 echo "configure:16843: checking for $ac_func" >&5
16843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16844   echo $ac_n "(cached) $ac_c" 1>&6
16845 else
16846   cat > conftest.$ac_ext <<EOF
16847 #line 16848 "configure"
16848 #include "confdefs.h"
16849 /* System header to define __stub macros and hopefully few prototypes,
16850     which can conflict with char $ac_func(); below.  */
16851 #include <assert.h>
16852 /* Override any gcc2 internal prototype to avoid an error.  */
16853 /* We use char because int might match the return type of a gcc2
16854     builtin and then its argument prototype would still apply.  */
16855 char $ac_func();
16856
16857 int main() {
16858
16859 /* The GNU C library defines this for functions which it implements
16860     to always fail with ENOSYS.  Some functions are actually named
16861     something starting with __ and the normal name is an alias.  */
16862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16863 choke me
16864 #else
16865 $ac_func();
16866 #endif
16867
16868 ; return 0; }
16869 EOF
16870 if { (eval echo configure:16871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16871   rm -rf conftest*
16872   eval "ac_cv_func_$ac_func=yes"
16873 else
16874   echo "configure: failed program was:" >&5
16875   cat conftest.$ac_ext >&5
16876   rm -rf conftest*
16877   eval "ac_cv_func_$ac_func=no"
16878 fi
16879 rm -f conftest*
16880 fi
16881
16882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16883   echo "$ac_t""yes" 1>&6
16884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16885   cat >> confdefs.h <<EOF
16886 #define $ac_tr_func 1
16887 EOF
16888  
16889 else
16890   echo "$ac_t""no" 1>&6
16891 fi
16892 done
16893
16894 else
16895     echo "configure: warning: Wide character support is unavailable" 1>&2
16896 fi
16897
16898
16899 ac_ext=C
16900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16901 ac_cpp='$CXXCPP $CPPFLAGS'
16902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16904 cross_compiling=$ac_cv_prog_cxx_cross
16905
16906
16907 for ac_func in vsnprintf
16908 do
16909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16910 echo "configure:16911: checking for $ac_func" >&5
16911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16912   echo $ac_n "(cached) $ac_c" 1>&6
16913 else
16914   cat > conftest.$ac_ext <<EOF
16915 #line 16916 "configure"
16916 #include "confdefs.h"
16917 /* System header to define __stub macros and hopefully few prototypes,
16918     which can conflict with char $ac_func(); below.  */
16919 #include <assert.h>
16920 /* Override any gcc2 internal prototype to avoid an error.  */
16921 #ifdef __cplusplus
16922 extern "C"
16923 #endif
16924 /* We use char because int might match the return type of a gcc2
16925     builtin and then its argument prototype would still apply.  */
16926 char $ac_func();
16927
16928 int main() {
16929
16930 /* The GNU C library defines this for functions which it implements
16931     to always fail with ENOSYS.  Some functions are actually named
16932     something starting with __ and the normal name is an alias.  */
16933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16934 choke me
16935 #else
16936 $ac_func();
16937 #endif
16938
16939 ; return 0; }
16940 EOF
16941 if { (eval echo configure:16942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16942   rm -rf conftest*
16943   eval "ac_cv_func_$ac_func=yes"
16944 else
16945   echo "configure: failed program was:" >&5
16946   cat conftest.$ac_ext >&5
16947   rm -rf conftest*
16948   eval "ac_cv_func_$ac_func=no"
16949 fi
16950 rm -f conftest*
16951 fi
16952
16953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16954   echo "$ac_t""yes" 1>&6
16955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16956   cat >> confdefs.h <<EOF
16957 #define $ac_tr_func 1
16958 EOF
16959  
16960 else
16961   echo "$ac_t""no" 1>&6
16962 fi
16963 done
16964
16965
16966 if test "$ac_cv_func_vsnprintf" = "yes"; then
16967         echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
16968 echo "configure:16969: checking for vsnprintf declaration" >&5
16969 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
16970   echo $ac_n "(cached) $ac_c" 1>&6
16971 else
16972   
16973             cat > conftest.$ac_ext <<EOF
16974 #line 16975 "configure"
16975 #include "confdefs.h"
16976
16977                     #include <stdio.h>
16978                     #include <stdarg.h>
16979                 
16980 int main() {
16981
16982                     char *buf;
16983                     va_list ap;
16984                     vsnprintf(buf, 10u, "%s", ap);
16985                 
16986 ; return 0; }
16987 EOF
16988 if { (eval echo configure:16989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16989   rm -rf conftest*
16990   wx_cv_func_vsnprintf_decl=yes
16991 else
16992   echo "configure: failed program was:" >&5
16993   cat conftest.$ac_ext >&5
16994   rm -rf conftest*
16995   wx_cv_func_vsnprintf_decl=no
16996             
16997 fi
16998 rm -f conftest*
16999         
17000     
17001 fi
17002
17003 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17004
17005     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17006         cat >> confdefs.h <<\EOF
17007 #define HAVE_VSNPRINTF_DECL 1
17008 EOF
17009
17010     fi
17011 fi
17012
17013 if test "$wxUSE_UNICODE" = yes; then
17014         for ac_func in fputwc wprintf vswprintf
17015 do
17016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17017 echo "configure:17018: checking for $ac_func" >&5
17018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17019   echo $ac_n "(cached) $ac_c" 1>&6
17020 else
17021   cat > conftest.$ac_ext <<EOF
17022 #line 17023 "configure"
17023 #include "confdefs.h"
17024 /* System header to define __stub macros and hopefully few prototypes,
17025     which can conflict with char $ac_func(); below.  */
17026 #include <assert.h>
17027 /* Override any gcc2 internal prototype to avoid an error.  */
17028 #ifdef __cplusplus
17029 extern "C"
17030 #endif
17031 /* We use char because int might match the return type of a gcc2
17032     builtin and then its argument prototype would still apply.  */
17033 char $ac_func();
17034
17035 int main() {
17036
17037 /* The GNU C library defines this for functions which it implements
17038     to always fail with ENOSYS.  Some functions are actually named
17039     something starting with __ and the normal name is an alias.  */
17040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17041 choke me
17042 #else
17043 $ac_func();
17044 #endif
17045
17046 ; return 0; }
17047 EOF
17048 if { (eval echo configure:17049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17049   rm -rf conftest*
17050   eval "ac_cv_func_$ac_func=yes"
17051 else
17052   echo "configure: failed program was:" >&5
17053   cat conftest.$ac_ext >&5
17054   rm -rf conftest*
17055   eval "ac_cv_func_$ac_func=no"
17056 fi
17057 rm -f conftest*
17058 fi
17059
17060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17061   echo "$ac_t""yes" 1>&6
17062     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17063   cat >> confdefs.h <<EOF
17064 #define $ac_tr_func 1
17065 EOF
17066  
17067 else
17068   echo "$ac_t""no" 1>&6
17069 fi
17070 done
17071
17072
17073                 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17074 echo "configure:17075: checking for _vsnwprintf" >&5
17075     cat > conftest.$ac_ext <<EOF
17076 #line 17077 "configure"
17077 #include "confdefs.h"
17078 #include <wchar.h>
17079 int main() {
17080 &_vsnwprintf;
17081 ; return 0; }
17082 EOF
17083 if { (eval echo configure:17084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17084   rm -rf conftest*
17085   echo "$ac_t""yes" 1>&6
17086                     cat >> confdefs.h <<\EOF
17087 #define HAVE__VSNWPRINTF 1
17088 EOF
17089
17090 else
17091   echo "configure: failed program was:" >&5
17092   cat conftest.$ac_ext >&5
17093   rm -rf conftest*
17094   echo "$ac_t""no" 1>&6
17095 fi
17096 rm -f conftest*;
17097 fi
17098
17099 ac_ext=c
17100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17101 ac_cpp='$CPP $CPPFLAGS'
17102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17104 cross_compiling=$ac_cv_prog_cc_cross
17105
17106
17107
17108
17109 if test "$TOOLKIT" != "MSW"; then
17110
17111
17112
17113 ac_ext=C
17114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17115 ac_cpp='$CXXCPP $CPPFLAGS'
17116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17118 cross_compiling=$ac_cv_prog_cxx_cross
17119
17120
17121     
17122   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17123 if test "${with_libiconv_prefix+set}" = set; then
17124   withval="$with_libiconv_prefix"
17125   
17126     for dir in `echo "$withval" | tr : ' '`; do
17127       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17128       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17129     done
17130    
17131 fi
17132
17133
17134   echo $ac_n "checking for iconv""... $ac_c" 1>&6
17135 echo "configure:17136: checking for iconv" >&5
17136 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17137   echo $ac_n "(cached) $ac_c" 1>&6
17138 else
17139   
17140     am_cv_func_iconv="no, consider installing GNU libiconv"
17141     am_cv_lib_iconv=no
17142     cat > conftest.$ac_ext <<EOF
17143 #line 17144 "configure"
17144 #include "confdefs.h"
17145 #include <stdlib.h>
17146 #include <iconv.h>
17147 int main() {
17148 iconv_t cd = iconv_open("","");
17149        iconv(cd,NULL,NULL,NULL,NULL);
17150        iconv_close(cd);
17151 ; return 0; }
17152 EOF
17153 if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17154   rm -rf conftest*
17155   am_cv_func_iconv=yes
17156 else
17157   echo "configure: failed program was:" >&5
17158   cat conftest.$ac_ext >&5
17159 fi
17160 rm -f conftest*
17161     if test "$am_cv_func_iconv" != yes; then
17162       am_save_LIBS="$LIBS"
17163       LIBS="$LIBS -liconv"
17164       cat > conftest.$ac_ext <<EOF
17165 #line 17166 "configure"
17166 #include "confdefs.h"
17167 #include <stdlib.h>
17168 #include <iconv.h>
17169 int main() {
17170 iconv_t cd = iconv_open("","");
17171          iconv(cd,NULL,NULL,NULL,NULL);
17172          iconv_close(cd);
17173 ; return 0; }
17174 EOF
17175 if { (eval echo configure:17176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17176   rm -rf conftest*
17177   am_cv_lib_iconv=yes
17178         am_cv_func_iconv=yes
17179 else
17180   echo "configure: failed program was:" >&5
17181   cat conftest.$ac_ext >&5
17182 fi
17183 rm -f conftest*
17184       LIBS="$am_save_LIBS"
17185     fi
17186   
17187 fi
17188
17189 echo "$ac_t""$am_cv_func_iconv" 1>&6
17190   if test "$am_cv_func_iconv" = yes; then
17191     cat >> confdefs.h <<\EOF
17192 #define HAVE_ICONV 1
17193 EOF
17194
17195     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17196 echo "configure:17197: checking if iconv needs const" >&5
17197 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17198   echo $ac_n "(cached) $ac_c" 1>&6
17199 else
17200   cat > conftest.$ac_ext <<EOF
17201 #line 17202 "configure"
17202 #include "confdefs.h"
17203
17204 #include <stdlib.h>
17205 #include <iconv.h>
17206 extern
17207 #ifdef __cplusplus
17208 "C"
17209 #endif
17210 #if defined(__STDC__) || defined(__cplusplus)
17211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17212 #else
17213 size_t iconv();
17214 #endif
17215         
17216 int main() {
17217
17218 ; return 0; }
17219 EOF
17220 if { (eval echo configure:17221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17221   rm -rf conftest*
17222   wx_cv_func_iconv_const="no"
17223 else
17224   echo "configure: failed program was:" >&5
17225   cat conftest.$ac_ext >&5
17226   rm -rf conftest*
17227   wx_cv_func_iconv_const="yes"
17228       
17229 fi
17230 rm -f conftest*
17231     
17232 fi
17233
17234 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17235
17236     iconv_const=
17237     if test "x$wx_cv_func_iconv_const" = "xyes"; then
17238         iconv_const="const"
17239     fi
17240
17241     cat >> confdefs.h <<EOF
17242 #define ICONV_CONST $iconv_const
17243 EOF
17244
17245   fi
17246   LIBICONV=
17247   if test "$am_cv_lib_iconv" = yes; then
17248     LIBICONV="-liconv"
17249   fi
17250   
17251
17252 LIBS="$LIBICONV $LIBS"
17253 ac_ext=c
17254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17255 ac_cpp='$CPP $CPPFLAGS'
17256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17258 cross_compiling=$ac_cv_prog_cc_cross
17259
17260
17261 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17262     for ac_func in sigaction
17263 do
17264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17265 echo "configure:17266: checking for $ac_func" >&5
17266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17267   echo $ac_n "(cached) $ac_c" 1>&6
17268 else
17269   cat > conftest.$ac_ext <<EOF
17270 #line 17271 "configure"
17271 #include "confdefs.h"
17272 /* System header to define __stub macros and hopefully few prototypes,
17273     which can conflict with char $ac_func(); below.  */
17274 #include <assert.h>
17275 /* Override any gcc2 internal prototype to avoid an error.  */
17276 /* We use char because int might match the return type of a gcc2
17277     builtin and then its argument prototype would still apply.  */
17278 char $ac_func();
17279
17280 int main() {
17281
17282 /* The GNU C library defines this for functions which it implements
17283     to always fail with ENOSYS.  Some functions are actually named
17284     something starting with __ and the normal name is an alias.  */
17285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17286 choke me
17287 #else
17288 $ac_func();
17289 #endif
17290
17291 ; return 0; }
17292 EOF
17293 if { (eval echo configure:17294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17294   rm -rf conftest*
17295   eval "ac_cv_func_$ac_func=yes"
17296 else
17297   echo "configure: failed program was:" >&5
17298   cat conftest.$ac_ext >&5
17299   rm -rf conftest*
17300   eval "ac_cv_func_$ac_func=no"
17301 fi
17302 rm -f conftest*
17303 fi
17304
17305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17306   echo "$ac_t""yes" 1>&6
17307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17308   cat >> confdefs.h <<EOF
17309 #define $ac_tr_func 1
17310 EOF
17311  
17312 else
17313   echo "$ac_t""no" 1>&6
17314 fi
17315 done
17316
17317
17318     if test "$ac_cv_func_sigaction" = "no"; then
17319         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17320         wxUSE_ON_FATAL_EXCEPTION=no
17321     fi
17322
17323     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17324       
17325       ac_ext=C
17326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17327 ac_cpp='$CXXCPP $CPPFLAGS'
17328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17330 cross_compiling=$ac_cv_prog_cxx_cross
17331
17332
17333       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17334 echo "configure:17335: checking for sa_handler type" >&5
17335 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17336   echo $ac_n "(cached) $ac_c" 1>&6
17337 else
17338   
17339         cat > conftest.$ac_ext <<EOF
17340 #line 17341 "configure"
17341 #include "confdefs.h"
17342 #include <signal.h>
17343 int main() {
17344
17345                         extern void testSigHandler(int);
17346
17347                         struct sigaction sa;
17348                         sa.sa_handler = testSigHandler;
17349                      
17350 ; return 0; }
17351 EOF
17352 if { (eval echo configure:17353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17353   rm -rf conftest*
17354   
17355                         wx_cv_type_sa_handler=int
17356                      
17357 else
17358   echo "configure: failed program was:" >&5
17359   cat conftest.$ac_ext >&5
17360   rm -rf conftest*
17361   
17362                         wx_cv_type_sa_handler=void
17363                      
17364 fi
17365 rm -f conftest*
17366       
17367 fi
17368
17369 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17370
17371       ac_ext=c
17372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17373 ac_cpp='$CPP $CPPFLAGS'
17374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17376 cross_compiling=$ac_cv_prog_cc_cross
17377
17378
17379       cat >> confdefs.h <<EOF
17380 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17381 EOF
17382
17383     fi
17384 fi
17385
17386 for ac_func in mkstemp mktemp
17387 do
17388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17389 echo "configure:17390: checking for $ac_func" >&5
17390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17391   echo $ac_n "(cached) $ac_c" 1>&6
17392 else
17393   cat > conftest.$ac_ext <<EOF
17394 #line 17395 "configure"
17395 #include "confdefs.h"
17396 /* System header to define __stub macros and hopefully few prototypes,
17397     which can conflict with char $ac_func(); below.  */
17398 #include <assert.h>
17399 /* Override any gcc2 internal prototype to avoid an error.  */
17400 /* We use char because int might match the return type of a gcc2
17401     builtin and then its argument prototype would still apply.  */
17402 char $ac_func();
17403
17404 int main() {
17405
17406 /* The GNU C library defines this for functions which it implements
17407     to always fail with ENOSYS.  Some functions are actually named
17408     something starting with __ and the normal name is an alias.  */
17409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17410 choke me
17411 #else
17412 $ac_func();
17413 #endif
17414
17415 ; return 0; }
17416 EOF
17417 if { (eval echo configure:17418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17418   rm -rf conftest*
17419   eval "ac_cv_func_$ac_func=yes"
17420 else
17421   echo "configure: failed program was:" >&5
17422   cat conftest.$ac_ext >&5
17423   rm -rf conftest*
17424   eval "ac_cv_func_$ac_func=no"
17425 fi
17426 rm -f conftest*
17427 fi
17428
17429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17430   echo "$ac_t""yes" 1>&6
17431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17432   cat >> confdefs.h <<EOF
17433 #define $ac_tr_func 1
17434 EOF
17435  break
17436 else
17437   echo "$ac_t""no" 1>&6
17438 fi
17439 done
17440
17441
17442 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17443 echo "configure:17444: checking for statfs" >&5
17444 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17445   echo $ac_n "(cached) $ac_c" 1>&6
17446 else
17447   cat > conftest.$ac_ext <<EOF
17448 #line 17449 "configure"
17449 #include "confdefs.h"
17450
17451              #if defined(__BSD__)
17452                #include <sys/param.h>
17453                #include <sys/mount.h>
17454              #else
17455                #include <sys/vfs.h>
17456              #endif
17457         
17458 int main() {
17459
17460              long l;
17461              struct statfs fs;
17462              statfs("/", &fs);
17463              l = fs.f_bsize;
17464              l += fs.f_blocks;
17465              l += fs.f_bavail;
17466         
17467 ; return 0; }
17468 EOF
17469 if { (eval echo configure:17470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17470   rm -rf conftest*
17471   
17472              wx_cv_func_statfs=yes
17473         
17474 else
17475   echo "configure: failed program was:" >&5
17476   cat conftest.$ac_ext >&5
17477   rm -rf conftest*
17478   
17479              wx_cv_func_statfs=no
17480         
17481     
17482 fi
17483 rm -f conftest*
17484
17485 fi
17486
17487 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17488
17489 if test "$wx_cv_func_statfs" = "yes"; then
17490     wx_cv_type_statvfs_t="struct statfs"
17491     cat >> confdefs.h <<\EOF
17492 #define HAVE_STATFS 1
17493 EOF
17494
17495 else
17496     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17497 echo "configure:17498: checking for statvfs" >&5
17498 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17499   echo $ac_n "(cached) $ac_c" 1>&6
17500 else
17501   cat > conftest.$ac_ext <<EOF
17502 #line 17503 "configure"
17503 #include "confdefs.h"
17504
17505                 #include <stddef.h>
17506                 #include <sys/statvfs.h>
17507             
17508 int main() {
17509
17510                 statvfs("/", NULL);
17511             
17512 ; return 0; }
17513 EOF
17514 if { (eval echo configure:17515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17515   rm -rf conftest*
17516   wx_cv_func_statvfs=yes
17517 else
17518   echo "configure: failed program was:" >&5
17519   cat conftest.$ac_ext >&5
17520   rm -rf conftest*
17521   wx_cv_func_statvfs=no
17522         
17523 fi
17524 rm -f conftest*
17525     
17526 fi
17527
17528 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17529
17530     if test "$wx_cv_func_statvfs" = "yes"; then
17531                                                                 
17532         ac_ext=C
17533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17534 ac_cpp='$CXXCPP $CPPFLAGS'
17535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17537 cross_compiling=$ac_cv_prog_cxx_cross
17538
17539
17540         echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17541 echo "configure:17542: checking for statvfs argument type" >&5
17542 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17543   echo $ac_n "(cached) $ac_c" 1>&6
17544 else
17545   cat > conftest.$ac_ext <<EOF
17546 #line 17547 "configure"
17547 #include "confdefs.h"
17548
17549                     #include <sys/statvfs.h>
17550                 
17551 int main() {
17552
17553                     long l;
17554                     statvfs_t fs;
17555                     statvfs("/", &fs);
17556                     l = fs.f_bsize;
17557                     l += fs.f_blocks;
17558                     l += fs.f_bavail;
17559                 
17560 ; return 0; }
17561 EOF
17562 if { (eval echo configure:17563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17563   rm -rf conftest*
17564   wx_cv_type_statvfs_t=statvfs_t
17565 else
17566   echo "configure: failed program was:" >&5
17567   cat conftest.$ac_ext >&5
17568   rm -rf conftest*
17569   
17570                     cat > conftest.$ac_ext <<EOF
17571 #line 17572 "configure"
17572 #include "confdefs.h"
17573
17574                             #include <sys/statvfs.h>
17575                         
17576 int main() {
17577
17578                             long l;
17579                             struct statvfs fs;
17580                             statvfs("/", &fs);
17581                             l = fs.f_bsize;
17582                             l += fs.f_blocks;
17583                             l += fs.f_bavail;
17584                         
17585 ; return 0; }
17586 EOF
17587 if { (eval echo configure:17588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17588   rm -rf conftest*
17589   wx_cv_type_statvfs_t="struct statvfs"
17590 else
17591   echo "configure: failed program was:" >&5
17592   cat conftest.$ac_ext >&5
17593   rm -rf conftest*
17594   wx_cv_type_statvfs_t="unknown"
17595                     
17596 fi
17597 rm -f conftest*
17598                 
17599             
17600 fi
17601 rm -f conftest*
17602         
17603 fi
17604
17605 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17606
17607         ac_ext=c
17608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17609 ac_cpp='$CPP $CPPFLAGS'
17610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17612 cross_compiling=$ac_cv_prog_cc_cross
17613
17614
17615         if test "$wx_cv_type_statvfs_t" != "unknown"; then
17616             cat >> confdefs.h <<\EOF
17617 #define HAVE_STATVFS 1
17618 EOF
17619
17620         fi
17621     else
17622                 wx_cv_type_statvfs_t="unknown"
17623     fi
17624 fi
17625
17626 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17627     cat >> confdefs.h <<EOF
17628 #define WX_STATFS_T $wx_cv_type_statvfs_t
17629 EOF
17630
17631 else
17632     echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17633 fi
17634
17635 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17636     for ac_func in fcntl flock
17637 do
17638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17639 echo "configure:17640: checking for $ac_func" >&5
17640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17641   echo $ac_n "(cached) $ac_c" 1>&6
17642 else
17643   cat > conftest.$ac_ext <<EOF
17644 #line 17645 "configure"
17645 #include "confdefs.h"
17646 /* System header to define __stub macros and hopefully few prototypes,
17647     which can conflict with char $ac_func(); below.  */
17648 #include <assert.h>
17649 /* Override any gcc2 internal prototype to avoid an error.  */
17650 /* We use char because int might match the return type of a gcc2
17651     builtin and then its argument prototype would still apply.  */
17652 char $ac_func();
17653
17654 int main() {
17655
17656 /* The GNU C library defines this for functions which it implements
17657     to always fail with ENOSYS.  Some functions are actually named
17658     something starting with __ and the normal name is an alias.  */
17659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17660 choke me
17661 #else
17662 $ac_func();
17663 #endif
17664
17665 ; return 0; }
17666 EOF
17667 if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17668   rm -rf conftest*
17669   eval "ac_cv_func_$ac_func=yes"
17670 else
17671   echo "configure: failed program was:" >&5
17672   cat conftest.$ac_ext >&5
17673   rm -rf conftest*
17674   eval "ac_cv_func_$ac_func=no"
17675 fi
17676 rm -f conftest*
17677 fi
17678
17679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17680   echo "$ac_t""yes" 1>&6
17681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17682   cat >> confdefs.h <<EOF
17683 #define $ac_tr_func 1
17684 EOF
17685  break
17686 else
17687   echo "$ac_t""no" 1>&6
17688 fi
17689 done
17690
17691
17692     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17693         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17694         wxUSE_SNGLINST_CHECKER=no
17695     fi
17696 fi
17697
17698 for ac_func in timegm
17699 do
17700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17701 echo "configure:17702: checking for $ac_func" >&5
17702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17703   echo $ac_n "(cached) $ac_c" 1>&6
17704 else
17705   cat > conftest.$ac_ext <<EOF
17706 #line 17707 "configure"
17707 #include "confdefs.h"
17708 /* System header to define __stub macros and hopefully few prototypes,
17709     which can conflict with char $ac_func(); below.  */
17710 #include <assert.h>
17711 /* Override any gcc2 internal prototype to avoid an error.  */
17712 /* We use char because int might match the return type of a gcc2
17713     builtin and then its argument prototype would still apply.  */
17714 char $ac_func();
17715
17716 int main() {
17717
17718 /* The GNU C library defines this for functions which it implements
17719     to always fail with ENOSYS.  Some functions are actually named
17720     something starting with __ and the normal name is an alias.  */
17721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17722 choke me
17723 #else
17724 $ac_func();
17725 #endif
17726
17727 ; return 0; }
17728 EOF
17729 if { (eval echo configure:17730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17730   rm -rf conftest*
17731   eval "ac_cv_func_$ac_func=yes"
17732 else
17733   echo "configure: failed program was:" >&5
17734   cat conftest.$ac_ext >&5
17735   rm -rf conftest*
17736   eval "ac_cv_func_$ac_func=no"
17737 fi
17738 rm -f conftest*
17739 fi
17740
17741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17742   echo "$ac_t""yes" 1>&6
17743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17744   cat >> confdefs.h <<EOF
17745 #define $ac_tr_func 1
17746 EOF
17747  
17748 else
17749   echo "$ac_t""no" 1>&6
17750 fi
17751 done
17752
17753
17754 for ac_func in putenv setenv
17755 do
17756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17757 echo "configure:17758: checking for $ac_func" >&5
17758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17759   echo $ac_n "(cached) $ac_c" 1>&6
17760 else
17761   cat > conftest.$ac_ext <<EOF
17762 #line 17763 "configure"
17763 #include "confdefs.h"
17764 /* System header to define __stub macros and hopefully few prototypes,
17765     which can conflict with char $ac_func(); below.  */
17766 #include <assert.h>
17767 /* Override any gcc2 internal prototype to avoid an error.  */
17768 /* We use char because int might match the return type of a gcc2
17769     builtin and then its argument prototype would still apply.  */
17770 char $ac_func();
17771
17772 int main() {
17773
17774 /* The GNU C library defines this for functions which it implements
17775     to always fail with ENOSYS.  Some functions are actually named
17776     something starting with __ and the normal name is an alias.  */
17777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17778 choke me
17779 #else
17780 $ac_func();
17781 #endif
17782
17783 ; return 0; }
17784 EOF
17785 if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17786   rm -rf conftest*
17787   eval "ac_cv_func_$ac_func=yes"
17788 else
17789   echo "configure: failed program was:" >&5
17790   cat conftest.$ac_ext >&5
17791   rm -rf conftest*
17792   eval "ac_cv_func_$ac_func=no"
17793 fi
17794 rm -f conftest*
17795 fi
17796
17797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17798   echo "$ac_t""yes" 1>&6
17799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17800   cat >> confdefs.h <<EOF
17801 #define $ac_tr_func 1
17802 EOF
17803  break
17804 else
17805   echo "$ac_t""no" 1>&6
17806 fi
17807 done
17808
17809
17810 HAVE_SOME_SLEEP_FUNC=0
17811 if test "$USE_BEOS" = 1; then
17812             cat >> confdefs.h <<\EOF
17813 #define HAVE_SLEEP 1
17814 EOF
17815
17816     HAVE_SOME_SLEEP_FUNC=1
17817 fi
17818
17819 if test "$USE_DARWIN" = 1; then
17820             cat >> confdefs.h <<\EOF
17821 #define HAVE_USLEEP 1
17822 EOF
17823
17824     HAVE_SOME_SLEEP_FUNC=1
17825 fi
17826
17827 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17828         POSIX4_LINK=
17829     for ac_func in nanosleep
17830 do
17831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17832 echo "configure:17833: checking for $ac_func" >&5
17833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17834   echo $ac_n "(cached) $ac_c" 1>&6
17835 else
17836   cat > conftest.$ac_ext <<EOF
17837 #line 17838 "configure"
17838 #include "confdefs.h"
17839 /* System header to define __stub macros and hopefully few prototypes,
17840     which can conflict with char $ac_func(); below.  */
17841 #include <assert.h>
17842 /* Override any gcc2 internal prototype to avoid an error.  */
17843 /* We use char because int might match the return type of a gcc2
17844     builtin and then its argument prototype would still apply.  */
17845 char $ac_func();
17846
17847 int main() {
17848
17849 /* The GNU C library defines this for functions which it implements
17850     to always fail with ENOSYS.  Some functions are actually named
17851     something starting with __ and the normal name is an alias.  */
17852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17853 choke me
17854 #else
17855 $ac_func();
17856 #endif
17857
17858 ; return 0; }
17859 EOF
17860 if { (eval echo configure:17861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17861   rm -rf conftest*
17862   eval "ac_cv_func_$ac_func=yes"
17863 else
17864   echo "configure: failed program was:" >&5
17865   cat conftest.$ac_ext >&5
17866   rm -rf conftest*
17867   eval "ac_cv_func_$ac_func=no"
17868 fi
17869 rm -f conftest*
17870 fi
17871
17872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17873   echo "$ac_t""yes" 1>&6
17874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17875   cat >> confdefs.h <<EOF
17876 #define $ac_tr_func 1
17877 EOF
17878  cat >> confdefs.h <<\EOF
17879 #define HAVE_NANOSLEEP 1
17880 EOF
17881
17882 else
17883   echo "$ac_t""no" 1>&6
17884 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17885 echo "configure:17886: checking for nanosleep in -lposix4" >&5
17886 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17888   echo $ac_n "(cached) $ac_c" 1>&6
17889 else
17890   ac_save_LIBS="$LIBS"
17891 LIBS="-lposix4  $LIBS"
17892 cat > conftest.$ac_ext <<EOF
17893 #line 17894 "configure"
17894 #include "confdefs.h"
17895 /* Override any gcc2 internal prototype to avoid an error.  */
17896 /* We use char because int might match the return type of a gcc2
17897     builtin and then its argument prototype would still apply.  */
17898 char nanosleep();
17899
17900 int main() {
17901 nanosleep()
17902 ; return 0; }
17903 EOF
17904 if { (eval echo configure:17905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17905   rm -rf conftest*
17906   eval "ac_cv_lib_$ac_lib_var=yes"
17907 else
17908   echo "configure: failed program was:" >&5
17909   cat conftest.$ac_ext >&5
17910   rm -rf conftest*
17911   eval "ac_cv_lib_$ac_lib_var=no"
17912 fi
17913 rm -f conftest*
17914 LIBS="$ac_save_LIBS"
17915
17916 fi
17917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17918   echo "$ac_t""yes" 1>&6
17919   
17920                     cat >> confdefs.h <<\EOF
17921 #define HAVE_NANOSLEEP 1
17922 EOF
17923
17924                     POSIX4_LINK=" -lposix4"
17925                 
17926 else
17927   echo "$ac_t""no" 1>&6
17928
17929                     for ac_func in usleep
17930 do
17931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17932 echo "configure:17933: checking for $ac_func" >&5
17933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17934   echo $ac_n "(cached) $ac_c" 1>&6
17935 else
17936   cat > conftest.$ac_ext <<EOF
17937 #line 17938 "configure"
17938 #include "confdefs.h"
17939 /* System header to define __stub macros and hopefully few prototypes,
17940     which can conflict with char $ac_func(); below.  */
17941 #include <assert.h>
17942 /* Override any gcc2 internal prototype to avoid an error.  */
17943 /* We use char because int might match the return type of a gcc2
17944     builtin and then its argument prototype would still apply.  */
17945 char $ac_func();
17946
17947 int main() {
17948
17949 /* The GNU C library defines this for functions which it implements
17950     to always fail with ENOSYS.  Some functions are actually named
17951     something starting with __ and the normal name is an alias.  */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953 choke me
17954 #else
17955 $ac_func();
17956 #endif
17957
17958 ; return 0; }
17959 EOF
17960 if { (eval echo configure:17961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17961   rm -rf conftest*
17962   eval "ac_cv_func_$ac_func=yes"
17963 else
17964   echo "configure: failed program was:" >&5
17965   cat conftest.$ac_ext >&5
17966   rm -rf conftest*
17967   eval "ac_cv_func_$ac_func=no"
17968 fi
17969 rm -f conftest*
17970 fi
17971
17972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17973   echo "$ac_t""yes" 1>&6
17974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17975   cat >> confdefs.h <<EOF
17976 #define $ac_tr_func 1
17977 EOF
17978  cat >> confdefs.h <<\EOF
17979 #define HAVE_USLEEP 1
17980 EOF
17981
17982 else
17983   echo "$ac_t""no" 1>&6
17984 echo "configure: warning: wxSleep() function will not work" 1>&2
17985                     
17986 fi
17987 done
17988
17989                 
17990             
17991 fi
17992
17993         
17994     
17995 fi
17996 done
17997
17998 fi
17999
18000 for ac_func in uname gethostname
18001 do
18002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18003 echo "configure:18004: checking for $ac_func" >&5
18004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18005   echo $ac_n "(cached) $ac_c" 1>&6
18006 else
18007   cat > conftest.$ac_ext <<EOF
18008 #line 18009 "configure"
18009 #include "confdefs.h"
18010 /* System header to define __stub macros and hopefully few prototypes,
18011     which can conflict with char $ac_func(); below.  */
18012 #include <assert.h>
18013 /* Override any gcc2 internal prototype to avoid an error.  */
18014 /* We use char because int might match the return type of a gcc2
18015     builtin and then its argument prototype would still apply.  */
18016 char $ac_func();
18017
18018 int main() {
18019
18020 /* The GNU C library defines this for functions which it implements
18021     to always fail with ENOSYS.  Some functions are actually named
18022     something starting with __ and the normal name is an alias.  */
18023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18024 choke me
18025 #else
18026 $ac_func();
18027 #endif
18028
18029 ; return 0; }
18030 EOF
18031 if { (eval echo configure:18032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18032   rm -rf conftest*
18033   eval "ac_cv_func_$ac_func=yes"
18034 else
18035   echo "configure: failed program was:" >&5
18036   cat conftest.$ac_ext >&5
18037   rm -rf conftest*
18038   eval "ac_cv_func_$ac_func=no"
18039 fi
18040 rm -f conftest*
18041 fi
18042
18043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18044   echo "$ac_t""yes" 1>&6
18045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18046   cat >> confdefs.h <<EOF
18047 #define $ac_tr_func 1
18048 EOF
18049  break
18050 else
18051   echo "$ac_t""no" 1>&6
18052 fi
18053 done
18054
18055
18056
18057 ac_ext=C
18058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18059 ac_cpp='$CXXCPP $CPPFLAGS'
18060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18062 cross_compiling=$ac_cv_prog_cxx_cross
18063
18064
18065 for ac_func in strtok_r
18066 do
18067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18068 echo "configure:18069: checking for $ac_func" >&5
18069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18070   echo $ac_n "(cached) $ac_c" 1>&6
18071 else
18072   cat > conftest.$ac_ext <<EOF
18073 #line 18074 "configure"
18074 #include "confdefs.h"
18075 /* System header to define __stub macros and hopefully few prototypes,
18076     which can conflict with char $ac_func(); below.  */
18077 #include <assert.h>
18078 /* Override any gcc2 internal prototype to avoid an error.  */
18079 #ifdef __cplusplus
18080 extern "C"
18081 #endif
18082 /* We use char because int might match the return type of a gcc2
18083     builtin and then its argument prototype would still apply.  */
18084 char $ac_func();
18085
18086 int main() {
18087
18088 /* The GNU C library defines this for functions which it implements
18089     to always fail with ENOSYS.  Some functions are actually named
18090     something starting with __ and the normal name is an alias.  */
18091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18092 choke me
18093 #else
18094 $ac_func();
18095 #endif
18096
18097 ; return 0; }
18098 EOF
18099 if { (eval echo configure:18100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18100   rm -rf conftest*
18101   eval "ac_cv_func_$ac_func=yes"
18102 else
18103   echo "configure: failed program was:" >&5
18104   cat conftest.$ac_ext >&5
18105   rm -rf conftest*
18106   eval "ac_cv_func_$ac_func=no"
18107 fi
18108 rm -f conftest*
18109 fi
18110
18111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18112   echo "$ac_t""yes" 1>&6
18113     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18114   cat >> confdefs.h <<EOF
18115 #define $ac_tr_func 1
18116 EOF
18117  
18118 else
18119   echo "$ac_t""no" 1>&6
18120 fi
18121 done
18122
18123
18124 ac_ext=c
18125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18126 ac_cpp='$CPP $CPPFLAGS'
18127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18129 cross_compiling=$ac_cv_prog_cc_cross
18130
18131
18132 INET_LINK=
18133 for ac_func in inet_addr
18134 do
18135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18136 echo "configure:18137: checking for $ac_func" >&5
18137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18138   echo $ac_n "(cached) $ac_c" 1>&6
18139 else
18140   cat > conftest.$ac_ext <<EOF
18141 #line 18142 "configure"
18142 #include "confdefs.h"
18143 /* System header to define __stub macros and hopefully few prototypes,
18144     which can conflict with char $ac_func(); below.  */
18145 #include <assert.h>
18146 /* Override any gcc2 internal prototype to avoid an error.  */
18147 /* We use char because int might match the return type of a gcc2
18148     builtin and then its argument prototype would still apply.  */
18149 char $ac_func();
18150
18151 int main() {
18152
18153 /* The GNU C library defines this for functions which it implements
18154     to always fail with ENOSYS.  Some functions are actually named
18155     something starting with __ and the normal name is an alias.  */
18156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18157 choke me
18158 #else
18159 $ac_func();
18160 #endif
18161
18162 ; return 0; }
18163 EOF
18164 if { (eval echo configure:18165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18165   rm -rf conftest*
18166   eval "ac_cv_func_$ac_func=yes"
18167 else
18168   echo "configure: failed program was:" >&5
18169   cat conftest.$ac_ext >&5
18170   rm -rf conftest*
18171   eval "ac_cv_func_$ac_func=no"
18172 fi
18173 rm -f conftest*
18174 fi
18175
18176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18177   echo "$ac_t""yes" 1>&6
18178     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18179   cat >> confdefs.h <<EOF
18180 #define $ac_tr_func 1
18181 EOF
18182  cat >> confdefs.h <<\EOF
18183 #define HAVE_INET_ADDR 1
18184 EOF
18185
18186 else
18187   echo "$ac_t""no" 1>&6
18188 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18189 echo "configure:18190: checking for inet_addr in -lnsl" >&5
18190 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18192   echo $ac_n "(cached) $ac_c" 1>&6
18193 else
18194   ac_save_LIBS="$LIBS"
18195 LIBS="-lnsl  $LIBS"
18196 cat > conftest.$ac_ext <<EOF
18197 #line 18198 "configure"
18198 #include "confdefs.h"
18199 /* Override any gcc2 internal prototype to avoid an error.  */
18200 /* We use char because int might match the return type of a gcc2
18201     builtin and then its argument prototype would still apply.  */
18202 char inet_addr();
18203
18204 int main() {
18205 inet_addr()
18206 ; return 0; }
18207 EOF
18208 if { (eval echo configure:18209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18209   rm -rf conftest*
18210   eval "ac_cv_lib_$ac_lib_var=yes"
18211 else
18212   echo "configure: failed program was:" >&5
18213   cat conftest.$ac_ext >&5
18214   rm -rf conftest*
18215   eval "ac_cv_lib_$ac_lib_var=no"
18216 fi
18217 rm -f conftest*
18218 LIBS="$ac_save_LIBS"
18219
18220 fi
18221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18222   echo "$ac_t""yes" 1>&6
18223   INET_LINK="nsl"
18224 else
18225   echo "$ac_t""no" 1>&6
18226 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18227 echo "configure:18228: checking for inet_addr in -lresolv" >&5
18228 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18230   echo $ac_n "(cached) $ac_c" 1>&6
18231 else
18232   ac_save_LIBS="$LIBS"
18233 LIBS="-lresolv  $LIBS"
18234 cat > conftest.$ac_ext <<EOF
18235 #line 18236 "configure"
18236 #include "confdefs.h"
18237 /* Override any gcc2 internal prototype to avoid an error.  */
18238 /* We use char because int might match the return type of a gcc2
18239     builtin and then its argument prototype would still apply.  */
18240 char inet_addr();
18241
18242 int main() {
18243 inet_addr()
18244 ; return 0; }
18245 EOF
18246 if { (eval echo configure:18247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18247   rm -rf conftest*
18248   eval "ac_cv_lib_$ac_lib_var=yes"
18249 else
18250   echo "configure: failed program was:" >&5
18251   cat conftest.$ac_ext >&5
18252   rm -rf conftest*
18253   eval "ac_cv_lib_$ac_lib_var=no"
18254 fi
18255 rm -f conftest*
18256 LIBS="$ac_save_LIBS"
18257
18258 fi
18259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18260   echo "$ac_t""yes" 1>&6
18261   INET_LINK="resolv"
18262 else
18263   echo "$ac_t""no" 1>&6
18264 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18265 echo "configure:18266: checking for inet_addr in -lsocket" >&5
18266 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18268   echo $ac_n "(cached) $ac_c" 1>&6
18269 else
18270   ac_save_LIBS="$LIBS"
18271 LIBS="-lsocket  $LIBS"
18272 cat > conftest.$ac_ext <<EOF
18273 #line 18274 "configure"
18274 #include "confdefs.h"
18275 /* Override any gcc2 internal prototype to avoid an error.  */
18276 /* We use char because int might match the return type of a gcc2
18277     builtin and then its argument prototype would still apply.  */
18278 char inet_addr();
18279
18280 int main() {
18281 inet_addr()
18282 ; return 0; }
18283 EOF
18284 if { (eval echo configure:18285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18285   rm -rf conftest*
18286   eval "ac_cv_lib_$ac_lib_var=yes"
18287 else
18288   echo "configure: failed program was:" >&5
18289   cat conftest.$ac_ext >&5
18290   rm -rf conftest*
18291   eval "ac_cv_lib_$ac_lib_var=no"
18292 fi
18293 rm -f conftest*
18294 LIBS="$ac_save_LIBS"
18295
18296 fi
18297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18298   echo "$ac_t""yes" 1>&6
18299   INET_LINK="socket"
18300                 
18301 else
18302   echo "$ac_t""no" 1>&6
18303 fi
18304
18305             
18306 fi
18307
18308         
18309 fi
18310
18311     
18312
18313 fi
18314 done
18315
18316
18317 for ac_func in inet_aton
18318 do
18319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18320 echo "configure:18321: checking for $ac_func" >&5
18321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18322   echo $ac_n "(cached) $ac_c" 1>&6
18323 else
18324   cat > conftest.$ac_ext <<EOF
18325 #line 18326 "configure"
18326 #include "confdefs.h"
18327 /* System header to define __stub macros and hopefully few prototypes,
18328     which can conflict with char $ac_func(); below.  */
18329 #include <assert.h>
18330 /* Override any gcc2 internal prototype to avoid an error.  */
18331 /* We use char because int might match the return type of a gcc2
18332     builtin and then its argument prototype would still apply.  */
18333 char $ac_func();
18334
18335 int main() {
18336
18337 /* The GNU C library defines this for functions which it implements
18338     to always fail with ENOSYS.  Some functions are actually named
18339     something starting with __ and the normal name is an alias.  */
18340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18341 choke me
18342 #else
18343 $ac_func();
18344 #endif
18345
18346 ; return 0; }
18347 EOF
18348 if { (eval echo configure:18349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18349   rm -rf conftest*
18350   eval "ac_cv_func_$ac_func=yes"
18351 else
18352   echo "configure: failed program was:" >&5
18353   cat conftest.$ac_ext >&5
18354   rm -rf conftest*
18355   eval "ac_cv_func_$ac_func=no"
18356 fi
18357 rm -f conftest*
18358 fi
18359
18360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18361   echo "$ac_t""yes" 1>&6
18362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18363   cat >> confdefs.h <<EOF
18364 #define $ac_tr_func 1
18365 EOF
18366  cat >> confdefs.h <<\EOF
18367 #define HAVE_INET_ATON 1
18368 EOF
18369
18370 else
18371   echo "$ac_t""no" 1>&6
18372             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18373 echo "configure:18374: checking for inet_aton in -l$INET_LINK" >&5
18374 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18376   echo $ac_n "(cached) $ac_c" 1>&6
18377 else
18378   ac_save_LIBS="$LIBS"
18379 LIBS="-l$INET_LINK  $LIBS"
18380 cat > conftest.$ac_ext <<EOF
18381 #line 18382 "configure"
18382 #include "confdefs.h"
18383 /* Override any gcc2 internal prototype to avoid an error.  */
18384 /* We use char because int might match the return type of a gcc2
18385     builtin and then its argument prototype would still apply.  */
18386 char inet_aton();
18387
18388 int main() {
18389 inet_aton()
18390 ; return 0; }
18391 EOF
18392 if { (eval echo configure:18393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18393   rm -rf conftest*
18394   eval "ac_cv_lib_$ac_lib_var=yes"
18395 else
18396   echo "configure: failed program was:" >&5
18397   cat conftest.$ac_ext >&5
18398   rm -rf conftest*
18399   eval "ac_cv_lib_$ac_lib_var=no"
18400 fi
18401 rm -f conftest*
18402 LIBS="$ac_save_LIBS"
18403
18404 fi
18405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18406   echo "$ac_t""yes" 1>&6
18407   cat >> confdefs.h <<\EOF
18408 #define HAVE_INET_ATON 1
18409 EOF
18410
18411 else
18412   echo "$ac_t""no" 1>&6
18413 fi
18414
18415         
18416 fi
18417 done
18418
18419
18420 if test "x$INET_LINK" != "x"; then
18421     cat >> confdefs.h <<\EOF
18422 #define HAVE_INET_ADDR 1
18423 EOF
18424
18425     INET_LINK=" -l$INET_LINK"
18426 fi
18427
18428 fi
18429
18430
18431 cat > confcache <<\EOF
18432 # This file is a shell script that caches the results of configure
18433 # tests run on this system so they can be shared between configure
18434 # scripts and configure runs.  It is not useful on other systems.
18435 # If it contains results you don't want to keep, you may remove or edit it.
18436 #
18437 # By default, configure uses ./config.cache as the cache file,
18438 # creating it if it does not exist already.  You can give configure
18439 # the --cache-file=FILE option to use a different cache file; that is
18440 # what configure does when it calls configure scripts in
18441 # subdirectories, so they share the cache.
18442 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18443 # config.status only pays attention to the cache file if you give it the
18444 # --recheck option to rerun configure.
18445 #
18446 EOF
18447 # The following way of writing the cache mishandles newlines in values,
18448 # but we know of no workaround that is simple, portable, and efficient.
18449 # So, don't put newlines in cache variables' values.
18450 # Ultrix sh set writes to stderr and can't be redirected directly,
18451 # and sets the high bit in the cache file unless we assign to the vars.
18452 (set) 2>&1 |
18453   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18454   *ac_space=\ *)
18455     # `set' does not quote correctly, so add quotes (double-quote substitution
18456     # turns \\\\ into \\, and sed turns \\ into \).
18457     sed -n \
18458       -e "s/'/'\\\\''/g" \
18459       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18460     ;;
18461   *)
18462     # `set' quotes correctly as required by POSIX, so do not add quotes.
18463     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18464     ;;
18465   esac >> confcache
18466 if cmp -s $cache_file confcache; then
18467   :
18468 else
18469   if test -w $cache_file; then
18470     echo "updating cache $cache_file"
18471     cat confcache > $cache_file
18472   else
18473     echo "not updating unwritable cache $cache_file"
18474   fi
18475 fi
18476 rm -f confcache
18477
18478
18479
18480 CPP_MT_FLAG=
18481 if test "$TOOLKIT" != "MSW"; then
18482
18483                             
18484     THREADS_LINK=
18485     THREADS_CFLAGS=
18486
18487     if test "$wxUSE_THREADS" = "yes" ; then
18488         if test "$USE_BEOS" = 1; then
18489             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18490             wxUSE_THREADS="no"
18491         fi
18492     fi
18493
18494     if test "$wxUSE_THREADS" = "yes" ; then
18495                                                         
18496         
18497                                 THREAD_OPTS="-pthread"
18498         case "${host}" in
18499           *-*-solaris2* | *-*-sunos4* )
18500                 if test "x$GCC" = "xyes"; then
18501                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
18502                 else
18503                     THREAD_OPTS="-mt $THREAD_OPTS"
18504                 fi
18505                 ;;
18506           *-*-freebsd*)
18507                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18508                 ;;
18509           *-*-darwin* | *-*-cygwin* )
18510                                                 THREAD_OPTS=""
18511                 ;;
18512           *-*-aix*)
18513                                 THREAD_OPTS="pthreads"
18514                 ;;
18515           *-hp-hpux* )
18516                                                                 if test "x$GCC" != "xyes"; then
18517                     THREAD_OPTS=""
18518                 fi
18519         esac
18520
18521                                 THREAD_OPTS="$THREAD_OPTS pthread none"
18522
18523                 THREADS_OK=no
18524         for flag in $THREAD_OPTS; do
18525             case $flag in
18526                 none)
18527                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18528 echo "configure:18529: checking whether pthreads work without any flags" >&5
18529                     ;;
18530
18531                 -*)
18532                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18533 echo "configure:18534: checking whether pthreads work with $flag" >&5
18534                     THREADS_CFLAGS="$flag"
18535                     ;;
18536
18537                 *)
18538                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18539 echo "configure:18540: checking for the pthreads library -l$flag" >&5
18540                     THREADS_LINK="-l$flag"
18541                     ;;
18542               esac
18543
18544               save_LIBS="$LIBS"
18545               save_CFLAGS="$CFLAGS"
18546               LIBS="$THREADS_LINK $LIBS"
18547               CFLAGS="$THREADS_CFLAGS $CFLAGS"
18548
18549               cat > conftest.$ac_ext <<EOF
18550 #line 18551 "configure"
18551 #include "confdefs.h"
18552 #include <pthread.h>
18553 int main() {
18554 pthread_create(0,0,0,0);
18555 ; return 0; }
18556 EOF
18557 if { (eval echo configure:18558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18558   rm -rf conftest*
18559   THREADS_OK=yes
18560 else
18561   echo "configure: failed program was:" >&5
18562   cat conftest.$ac_ext >&5
18563 fi
18564 rm -f conftest*
18565
18566               LIBS="$save_LIBS"
18567               CFLAGS="$save_CFLAGS"
18568
18569               echo "$ac_t""$THREADS_OK" 1>&6
18570               if test "x$THREADS_OK" = "xyes"; then
18571                       break;
18572               fi
18573
18574               THREADS_LINK=""
18575               THREADS_CFLAGS=""
18576       done
18577
18578       if test "x$THREADS_OK" != "xyes"; then
18579           wxUSE_THREADS=no
18580           echo "configure: warning: No thread support on this system... disabled" 1>&2
18581       else
18582                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18583           LIBS="$THREADS_LINK $LIBS"
18584
18585           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18586 echo "configure:18587: checking if more special flags are required for pthreads" >&5
18587           flag=no
18588           case "${host}" in
18589             *-aix*)
18590                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18591                 flag="-D_THREAD_SAFE"
18592                 ;;
18593             *-freebsd*)
18594                 flag="-D_THREAD_SAFE"
18595                 ;;
18596             *-hp-hpux* )
18597                 flag="-D_REENTRANT"
18598                 if test "x$GCC" != "xyes"; then
18599                                         flag="$flag -D_RWSTD_MULTI_THREAD"
18600                 fi
18601                 ;;
18602             *solaris* | alpha*-osf*)
18603                 flag="-D_REENTRANT"
18604                 ;;
18605           esac
18606           echo "$ac_t""${flag}" 1>&6
18607           if test "x$flag" != xno; then
18608               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18609           fi
18610
18611           if test "x$THREADS_CFLAGS" != "x"; then
18612                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
18613             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18614           fi
18615       fi
18616     fi
18617
18618         if test "$wxUSE_THREADS" = "yes" ; then
18619       for ac_func in thr_setconcurrency
18620 do
18621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18622 echo "configure:18623: checking for $ac_func" >&5
18623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18624   echo $ac_n "(cached) $ac_c" 1>&6
18625 else
18626   cat > conftest.$ac_ext <<EOF
18627 #line 18628 "configure"
18628 #include "confdefs.h"
18629 /* System header to define __stub macros and hopefully few prototypes,
18630     which can conflict with char $ac_func(); below.  */
18631 #include <assert.h>
18632 /* Override any gcc2 internal prototype to avoid an error.  */
18633 /* We use char because int might match the return type of a gcc2
18634     builtin and then its argument prototype would still apply.  */
18635 char $ac_func();
18636
18637 int main() {
18638
18639 /* The GNU C library defines this for functions which it implements
18640     to always fail with ENOSYS.  Some functions are actually named
18641     something starting with __ and the normal name is an alias.  */
18642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18643 choke me
18644 #else
18645 $ac_func();
18646 #endif
18647
18648 ; return 0; }
18649 EOF
18650 if { (eval echo configure:18651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18651   rm -rf conftest*
18652   eval "ac_cv_func_$ac_func=yes"
18653 else
18654   echo "configure: failed program was:" >&5
18655   cat conftest.$ac_ext >&5
18656   rm -rf conftest*
18657   eval "ac_cv_func_$ac_func=no"
18658 fi
18659 rm -f conftest*
18660 fi
18661
18662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18663   echo "$ac_t""yes" 1>&6
18664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18665   cat >> confdefs.h <<EOF
18666 #define $ac_tr_func 1
18667 EOF
18668  
18669 else
18670   echo "$ac_t""no" 1>&6
18671 fi
18672 done
18673
18674
18675       for ac_hdr in sched.h
18676 do
18677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18679 echo "configure:18680: checking for $ac_hdr" >&5
18680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18681   echo $ac_n "(cached) $ac_c" 1>&6
18682 else
18683   cat > conftest.$ac_ext <<EOF
18684 #line 18685 "configure"
18685 #include "confdefs.h"
18686 #include <$ac_hdr>
18687 EOF
18688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18689 { (eval echo configure:18690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18691 if test -z "$ac_err"; then
18692   rm -rf conftest*
18693   eval "ac_cv_header_$ac_safe=yes"
18694 else
18695   echo "$ac_err" >&5
18696   echo "configure: failed program was:" >&5
18697   cat conftest.$ac_ext >&5
18698   rm -rf conftest*
18699   eval "ac_cv_header_$ac_safe=no"
18700 fi
18701 rm -f conftest*
18702 fi
18703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18704   echo "$ac_t""yes" 1>&6
18705     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18706   cat >> confdefs.h <<EOF
18707 #define $ac_tr_hdr 1
18708 EOF
18709  
18710 else
18711   echo "$ac_t""no" 1>&6
18712 fi
18713 done
18714
18715       if test "$ac_cv_header_sched_h" = "yes"; then
18716           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18717 echo "configure:18718: checking for sched_yield" >&5
18718 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18719   echo $ac_n "(cached) $ac_c" 1>&6
18720 else
18721   cat > conftest.$ac_ext <<EOF
18722 #line 18723 "configure"
18723 #include "confdefs.h"
18724 /* System header to define __stub macros and hopefully few prototypes,
18725     which can conflict with char sched_yield(); below.  */
18726 #include <assert.h>
18727 /* Override any gcc2 internal prototype to avoid an error.  */
18728 /* We use char because int might match the return type of a gcc2
18729     builtin and then its argument prototype would still apply.  */
18730 char sched_yield();
18731
18732 int main() {
18733
18734 /* The GNU C library defines this for functions which it implements
18735     to always fail with ENOSYS.  Some functions are actually named
18736     something starting with __ and the normal name is an alias.  */
18737 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18738 choke me
18739 #else
18740 sched_yield();
18741 #endif
18742
18743 ; return 0; }
18744 EOF
18745 if { (eval echo configure:18746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18746   rm -rf conftest*
18747   eval "ac_cv_func_sched_yield=yes"
18748 else
18749   echo "configure: failed program was:" >&5
18750   cat conftest.$ac_ext >&5
18751   rm -rf conftest*
18752   eval "ac_cv_func_sched_yield=no"
18753 fi
18754 rm -f conftest*
18755 fi
18756
18757 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18758   echo "$ac_t""yes" 1>&6
18759   cat >> confdefs.h <<\EOF
18760 #define HAVE_SCHED_YIELD 1
18761 EOF
18762
18763 else
18764   echo "$ac_t""no" 1>&6
18765
18766                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18767 echo "configure:18768: checking for sched_yield in -lposix4" >&5
18768 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18770   echo $ac_n "(cached) $ac_c" 1>&6
18771 else
18772   ac_save_LIBS="$LIBS"
18773 LIBS="-lposix4  $LIBS"
18774 cat > conftest.$ac_ext <<EOF
18775 #line 18776 "configure"
18776 #include "confdefs.h"
18777 /* Override any gcc2 internal prototype to avoid an error.  */
18778 /* We use char because int might match the return type of a gcc2
18779     builtin and then its argument prototype would still apply.  */
18780 char sched_yield();
18781
18782 int main() {
18783 sched_yield()
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   eval "ac_cv_lib_$ac_lib_var=yes"
18789 else
18790   echo "configure: failed program was:" >&5
18791   cat conftest.$ac_ext >&5
18792   rm -rf conftest*
18793   eval "ac_cv_lib_$ac_lib_var=no"
18794 fi
18795 rm -f conftest*
18796 LIBS="$ac_save_LIBS"
18797
18798 fi
18799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18800   echo "$ac_t""yes" 1>&6
18801   cat >> confdefs.h <<\EOF
18802 #define HAVE_SCHED_YIELD 1
18803 EOF
18804  POSIX4_LINK=" -lposix4"
18805 else
18806   echo "$ac_t""no" 1>&6
18807 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18808                 
18809 fi
18810
18811             
18812           
18813 fi
18814
18815       fi
18816
18817                                           HAVE_PRIOR_FUNCS=0
18818       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18819 echo "configure:18820: checking for pthread_attr_getschedpolicy" >&5
18820 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18821   echo $ac_n "(cached) $ac_c" 1>&6
18822 else
18823   cat > conftest.$ac_ext <<EOF
18824 #line 18825 "configure"
18825 #include "confdefs.h"
18826 /* System header to define __stub macros and hopefully few prototypes,
18827     which can conflict with char pthread_attr_getschedpolicy(); below.  */
18828 #include <assert.h>
18829 /* Override any gcc2 internal prototype to avoid an error.  */
18830 /* We use char because int might match the return type of a gcc2
18831     builtin and then its argument prototype would still apply.  */
18832 char pthread_attr_getschedpolicy();
18833
18834 int main() {
18835
18836 /* The GNU C library defines this for functions which it implements
18837     to always fail with ENOSYS.  Some functions are actually named
18838     something starting with __ and the normal name is an alias.  */
18839 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18840 choke me
18841 #else
18842 pthread_attr_getschedpolicy();
18843 #endif
18844
18845 ; return 0; }
18846 EOF
18847 if { (eval echo configure:18848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18848   rm -rf conftest*
18849   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18850 else
18851   echo "configure: failed program was:" >&5
18852   cat conftest.$ac_ext >&5
18853   rm -rf conftest*
18854   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18855 fi
18856 rm -f conftest*
18857 fi
18858
18859 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18860   echo "$ac_t""yes" 1>&6
18861   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18862 echo "configure:18863: checking for pthread_attr_setschedparam" >&5
18863 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18864   echo $ac_n "(cached) $ac_c" 1>&6
18865 else
18866   cat > conftest.$ac_ext <<EOF
18867 #line 18868 "configure"
18868 #include "confdefs.h"
18869 /* System header to define __stub macros and hopefully few prototypes,
18870     which can conflict with char pthread_attr_setschedparam(); below.  */
18871 #include <assert.h>
18872 /* Override any gcc2 internal prototype to avoid an error.  */
18873 /* We use char because int might match the return type of a gcc2
18874     builtin and then its argument prototype would still apply.  */
18875 char pthread_attr_setschedparam();
18876
18877 int main() {
18878
18879 /* The GNU C library defines this for functions which it implements
18880     to always fail with ENOSYS.  Some functions are actually named
18881     something starting with __ and the normal name is an alias.  */
18882 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18883 choke me
18884 #else
18885 pthread_attr_setschedparam();
18886 #endif
18887
18888 ; return 0; }
18889 EOF
18890 if { (eval echo configure:18891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18891   rm -rf conftest*
18892   eval "ac_cv_func_pthread_attr_setschedparam=yes"
18893 else
18894   echo "configure: failed program was:" >&5
18895   cat conftest.$ac_ext >&5
18896   rm -rf conftest*
18897   eval "ac_cv_func_pthread_attr_setschedparam=no"
18898 fi
18899 rm -f conftest*
18900 fi
18901
18902 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18903   echo "$ac_t""yes" 1>&6
18904   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18905 echo "configure:18906: checking for sched_get_priority_max" >&5
18906 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18907   echo $ac_n "(cached) $ac_c" 1>&6
18908 else
18909   cat > conftest.$ac_ext <<EOF
18910 #line 18911 "configure"
18911 #include "confdefs.h"
18912 /* System header to define __stub macros and hopefully few prototypes
18913 else
18914   echo "$ac_t""no" 1>&6
18915 which can conflict with char sched_get_priority_max(); below.  */
18916 #include <assert.h>
18917 /* Override any gcc2 internal prototype to avoid an error.  */
18918 /* We use char because int might match the return type of a gcc2
18919     builtin and then its argument prototype would still apply.  */
18920 char sched_get_priority_max();
18921
18922 int main() {
18923
18924 /* The GNU C library defines this for functions which it implements
18925     to always fail with ENOSYS.  Some functions are actually named
18926     something starting with __ and the normal name is an alias.  */
18927 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18928 choke me
18929 #else
18930 sched_get_priority_max();
18931 #endif
18932
18933 ; return 0; }
18934 EOF
18935 if { (eval echo configure:18936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18936   rm -rf conftest*
18937   eval "ac_cv_func_sched_get_priority_max=yes"
18938 else
18939   echo "configure: failed program was:" >&5
18940   cat conftest.$ac_ext >&5
18941   rm -rf conftest*
18942   eval "ac_cv_func_sched_get_priority_max=no"
18943 fi
18944 rm -f conftest*
18945 fi
18946
18947 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18948   echo "$ac_t""yes" 1>&6
18949   HAVE_PRIOR_FUNCS=1
18950 else
18951   echo "$ac_t""no" 1>&6
18952 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18953 echo "configure:18954: checking for sched_get_priority_max in -lposix4" >&5
18954 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18956   echo $ac_n "(cached) $ac_c" 1>&6
18957 else
18958   ac_save_LIBS="$LIBS"
18959 LIBS="-lposix4  $LIBS"
18960 cat > conftest.$ac_ext <<EOF
18961 #line 18962 "configure"
18962 #include "confdefs.h"
18963 /* Override any gcc2 internal prototype to avoid an error.  */
18964 /* We use char because int might match the return type of a gcc2
18965     builtin and then its argument prototype would still apply.  */
18966 char sched_get_priority_max();
18967
18968 int main() {
18969 sched_get_priority_max()
18970 ; return 0; }
18971 EOF
18972 if { (eval echo configure:18973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18973   rm -rf conftest*
18974   eval "ac_cv_lib_$ac_lib_var=yes"
18975 else
18976   echo "configure: failed program was:" >&5
18977   cat conftest.$ac_ext >&5
18978   rm -rf conftest*
18979   eval "ac_cv_lib_$ac_lib_var=no"
18980 fi
18981 rm -f conftest*
18982 LIBS="$ac_save_LIBS"
18983
18984 fi
18985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18986   echo "$ac_t""yes" 1>&6
18987   
18988                                 HAVE_PRIOR_FUNCS=1
18989                                 POSIX4_LINK=" -lposix4"
18990                              
18991 else
18992   echo "$ac_t""no" 1>&6
18993 fi
18994
18995                        
18996 fi
18997
18998                      
18999 else
19000   echo "$ac_t""no" 1>&6
19001 fi
19002
19003                    
19004 fi
19005
19006
19007       if test "$HAVE_PRIOR_FUNCS" = 1; then
19008         cat >> confdefs.h <<\EOF
19009 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19010 EOF
19011
19012       else
19013         echo "configure: warning: Setting thread priority will not work" 1>&2
19014       fi
19015
19016       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19017 echo "configure:19018: checking for pthread_cancel" >&5
19018 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19019   echo $ac_n "(cached) $ac_c" 1>&6
19020 else
19021   cat > conftest.$ac_ext <<EOF
19022 #line 19023 "configure"
19023 #include "confdefs.h"
19024 /* System header to define __stub macros and hopefully few prototypes,
19025     which can conflict with char pthread_cancel(); below.  */
19026 #include <assert.h>
19027 /* Override any gcc2 internal prototype to avoid an error.  */
19028 /* We use char because int might match the return type of a gcc2
19029     builtin and then its argument prototype would still apply.  */
19030 char pthread_cancel();
19031
19032 int main() {
19033
19034 /* The GNU C library defines this for functions which it implements
19035     to always fail with ENOSYS.  Some functions are actually named
19036     something starting with __ and the normal name is an alias.  */
19037 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19038 choke me
19039 #else
19040 pthread_cancel();
19041 #endif
19042
19043 ; return 0; }
19044 EOF
19045 if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19046   rm -rf conftest*
19047   eval "ac_cv_func_pthread_cancel=yes"
19048 else
19049   echo "configure: failed program was:" >&5
19050   cat conftest.$ac_ext >&5
19051   rm -rf conftest*
19052   eval "ac_cv_func_pthread_cancel=no"
19053 fi
19054 rm -f conftest*
19055 fi
19056
19057 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19058   echo "$ac_t""yes" 1>&6
19059   cat >> confdefs.h <<\EOF
19060 #define HAVE_PTHREAD_CANCEL 1
19061 EOF
19062
19063 else
19064   echo "$ac_t""no" 1>&6
19065 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19066 fi
19067
19068
19069       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19070 echo "configure:19071: checking for pthread_cleanup_push/pop" >&5
19071 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19072   echo $ac_n "(cached) $ac_c" 1>&6
19073 else
19074   
19075         cat > conftest.$ac_ext <<EOF
19076 #line 19077 "configure"
19077 #include "confdefs.h"
19078 #include <pthread.h>
19079 int main() {
19080
19081                         pthread_cleanup_push(NULL, NULL);
19082                         pthread_cleanup_pop(0);
19083                      
19084 ; return 0; }
19085 EOF
19086 if { (eval echo configure:19087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19087   rm -rf conftest*
19088   
19089                         wx_cv_func_pthread_cleanup_push=yes
19090                      
19091 else
19092   echo "configure: failed program was:" >&5
19093   cat conftest.$ac_ext >&5
19094   rm -rf conftest*
19095   
19096                         wx_cv_func_pthread_cleanup_push=no
19097                      
19098 fi
19099 rm -f conftest*
19100       
19101 fi
19102
19103 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19104
19105       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19106           cat >> confdefs.h <<\EOF
19107 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19108 EOF
19109
19110       fi
19111
19112                                                 
19113       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19114 echo "configure:19115: checking for pthread_mutexattr_t" >&5
19115 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19116   echo $ac_n "(cached) $ac_c" 1>&6
19117 else
19118   
19119         cat > conftest.$ac_ext <<EOF
19120 #line 19121 "configure"
19121 #include "confdefs.h"
19122 #include <pthread.h>
19123 int main() {
19124
19125                pthread_mutexattr_t attr;
19126                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19127             
19128 ; return 0; }
19129 EOF
19130 if { (eval echo configure:19131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19131   rm -rf conftest*
19132   
19133                wx_cv_type_pthread_mutexattr_t=yes
19134             
19135 else
19136   echo "configure: failed program was:" >&5
19137   cat conftest.$ac_ext >&5
19138   rm -rf conftest*
19139   
19140                wx_cv_type_pthread_mutexattr_t=no
19141             
19142         
19143 fi
19144 rm -f conftest*
19145       
19146 fi
19147
19148 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19149
19150       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19151         cat >> confdefs.h <<\EOF
19152 #define HAVE_PTHREAD_MUTEXATTR_T 1
19153 EOF
19154
19155       else
19156                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19157 echo "configure:19158: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19158 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19159   echo $ac_n "(cached) $ac_c" 1>&6
19160 else
19161   
19162             cat > conftest.$ac_ext <<EOF
19163 #line 19164 "configure"
19164 #include "confdefs.h"
19165 #include <pthread.h>
19166 int main() {
19167
19168                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19169                 
19170 ; return 0; }
19171 EOF
19172 if { (eval echo configure:19173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19173   rm -rf conftest*
19174   
19175                     wx_cv_type_pthread_rec_mutex_init=yes
19176                 
19177 else
19178   echo "configure: failed program was:" >&5
19179   cat conftest.$ac_ext >&5
19180   rm -rf conftest*
19181   
19182                     wx_cv_type_pthread_rec_mutex_init=no
19183                 
19184             
19185 fi
19186 rm -f conftest*
19187         
19188 fi
19189
19190 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19191         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19192           cat >> confdefs.h <<\EOF
19193 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19194 EOF
19195
19196         else
19197                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19198         fi
19199       fi
19200     fi
19201
19202 else
19203     if test "$wxUSE_THREADS" = "yes" ; then
19204       case "${host}" in
19205         *-*-mingw32* )
19206                         echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19207 echo "configure:19208: checking if compiler supports -mthreads" >&5
19208 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19209   echo $ac_n "(cached) $ac_c" 1>&6
19210 else
19211   
19212                     CFLAGS_OLD="$CFLAGS"
19213                     CFLAGS="$CFLAGS -mthreads"
19214                     cat > conftest.$ac_ext <<EOF
19215 #line 19216 "configure"
19216 #include "confdefs.h"
19217
19218 int main() {
19219
19220 ; return 0; }
19221 EOF
19222 if { (eval echo configure:19223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19223   rm -rf conftest*
19224   wx_cv_cflags_mthread=yes
19225 else
19226   echo "configure: failed program was:" >&5
19227   cat conftest.$ac_ext >&5
19228   rm -rf conftest*
19229   wx_cv_cflags_mthread=no
19230                     
19231 fi
19232 rm -f conftest*
19233                 
19234             
19235 fi
19236
19237 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19238
19239             if test "$wx_cv_cflags_mthread" = "yes"; then
19240                                 CXXFLAGS="$CXXFLAGS -mthreads"
19241                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19242                 LDFLAGS="$LDFLAGS -mthreads"
19243             else
19244                                 CFLAGS="$CFLAGS_OLD"
19245             fi
19246         ;;
19247       esac
19248     fi
19249 fi
19250
19251 if test "$wxUSE_THREADS" = "yes"; then
19252   cat >> confdefs.h <<\EOF
19253 #define wxUSE_THREADS 1
19254 EOF
19255
19256
19257   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19258 else
19259       if test "$ac_cv_func_strtok_r" = "yes"; then
19260     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19261 echo "configure:19262: checking if -D_REENTRANT is needed" >&5
19262     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19263         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19264         echo "$ac_t""yes" 1>&6
19265     else
19266         echo "$ac_t""no" 1>&6
19267     fi
19268   fi
19269 fi
19270
19271 if test "$WXGTK20" = 1 ; then
19272   cat >> confdefs.h <<EOF
19273 #define __WXGTK20__ $WXGTK20
19274 EOF
19275
19276   WXGTK12=1
19277 fi
19278
19279 if test "$WXGTK12" = 1 ; then
19280   cat >> confdefs.h <<EOF
19281 #define __WXGTK12__ $WXGTK12
19282 EOF
19283
19284 fi
19285
19286 if test "$WXGTK127" = 1 ; then
19287   cat >> confdefs.h <<EOF
19288 #define __WXGTK127__ $WXGTK127
19289 EOF
19290
19291 fi
19292
19293 WXDEBUG=
19294
19295 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19296     WXDEBUG="-g"
19297     wxUSE_OPTIMISE=no
19298 fi
19299
19300 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19301     wxUSE_DEBUG_INFO=yes
19302     WXDEBUG="-ggdb"
19303 fi
19304
19305 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19306     cat >> confdefs.h <<\EOF
19307 #define WXDEBUG 1
19308 EOF
19309
19310     WXDEBUG_DEFINE="-D__WXDEBUG__"
19311 else
19312     if test "$wxUSE_GTK" = 1 ; then
19313         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19314     fi
19315 fi
19316
19317 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19318     cat >> confdefs.h <<\EOF
19319 #define wxUSE_MEMORY_TRACING 1
19320 EOF
19321
19322     cat >> confdefs.h <<\EOF
19323 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19324 EOF
19325
19326     cat >> confdefs.h <<\EOF
19327 #define wxUSE_DEBUG_NEW_ALWAYS 1
19328 EOF
19329
19330     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19331 fi
19332
19333 if test "$wxUSE_DMALLOC" = "yes" ; then
19334     DMALLOC_LIBS="-ldmalloc"
19335 fi
19336
19337 PROFILE=
19338 if test "$wxUSE_PROFILE" = "yes" ; then
19339     PROFILE=" -pg"
19340 fi
19341
19342 CODE_GEN_FLAGS=
19343 CODE_GEN_FLAGS_CXX=
19344 if test "$GCC" = "yes" ; then
19345     if test "$wxUSE_NO_RTTI" = "yes" ; then
19346         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19347     fi
19348     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19349         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19350     fi
19351     if test "$wxUSE_PERMISSIVE" = "yes" ; then
19352         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19353     fi
19354     if test "$USE_WIN32" = 1 ; then
19355         # I'm not even really sure what this was ever added to solve,
19356         # but someone added it for mingw native builds, so I guess
19357         # they had a reason, right??
19358         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19359     fi
19360
19361                                                 case "${host}" in
19362       powerpc*-*-aix* )
19363         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19364         ;;
19365       *-hppa* )
19366         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19367         ;;
19368     esac
19369 fi
19370
19371 OPTIMISE=
19372 if test "$wxUSE_OPTIMISE" = "no" ; then
19373     if test "$GCC" = yes ; then
19374                         OPTIMISE="-O0"
19375     fi
19376 else
19377     if test "$GCC" = yes ; then
19378         OPTIMISE="-O2"
19379
19380                 case "${host}" in
19381             i586-*-*|i686-*-* )
19382             OPTIMISE="${OPTIMISE} "
19383         ;;
19384         esac
19385     else
19386         OPTIMISE="-O"
19387     fi
19388 fi
19389
19390
19391 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19392     cat >> confdefs.h <<\EOF
19393 #define WXWIN_COMPATIBILITY_2 1
19394 EOF
19395
19396
19397     WXWIN_COMPATIBILITY_2_2="yes"
19398 fi
19399
19400 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19401     cat >> confdefs.h <<\EOF
19402 #define WXWIN_COMPATIBILITY_2_2 1
19403 EOF
19404
19405
19406     WXWIN_COMPATIBILITY_2_4="yes"
19407 fi
19408
19409 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19410     cat >> confdefs.h <<\EOF
19411 #define WXWIN_COMPATIBILITY_2_4 1
19412 EOF
19413
19414 fi
19415
19416
19417 if test "$wxUSE_GUI" = "yes"; then
19418   cat >> confdefs.h <<\EOF
19419 #define wxUSE_GUI 1
19420 EOF
19421
19422
19423                       else
19424   cat >> confdefs.h <<\EOF
19425 #define wxUSE_NOGUI 1
19426 EOF
19427
19428 fi
19429
19430
19431 if test "$wxUSE_UNIX" = "yes"; then
19432   cat >> confdefs.h <<\EOF
19433 #define wxUSE_UNIX 1
19434 EOF
19435
19436 fi
19437
19438
19439 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19440   cat >> confdefs.h <<\EOF
19441 #define wxUSE_APPLE_IEEE 1
19442 EOF
19443
19444 fi
19445
19446 if test "$wxUSE_TIMER" = "yes"; then
19447   cat >> confdefs.h <<\EOF
19448 #define wxUSE_TIMER 1
19449 EOF
19450
19451 fi
19452
19453 if test "$wxUSE_WAVE" = "yes"; then
19454   cat >> confdefs.h <<\EOF
19455 #define wxUSE_WAVE 1
19456 EOF
19457
19458 fi
19459
19460 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19461   cat >> confdefs.h <<\EOF
19462 #define wxUSE_CMDLINE_PARSER 1
19463 EOF
19464
19465 fi
19466
19467 if test "$wxUSE_STOPWATCH" = "yes"; then
19468   cat >> confdefs.h <<\EOF
19469 #define wxUSE_STOPWATCH 1
19470 EOF
19471
19472 fi
19473
19474 if test "$wxUSE_DATETIME" = "yes"; then
19475   cat >> confdefs.h <<\EOF
19476 #define wxUSE_DATETIME 1
19477 EOF
19478
19479 fi
19480
19481 if test "$wxUSE_FILE" = "yes"; then
19482   cat >> confdefs.h <<\EOF
19483 #define wxUSE_FILE 1
19484 EOF
19485
19486 fi
19487
19488 if test "$wxUSE_FFILE" = "yes"; then
19489   cat >> confdefs.h <<\EOF
19490 #define wxUSE_FFILE 1
19491 EOF
19492
19493 fi
19494
19495 if test "$wxUSE_FILESYSTEM" = "yes"; then
19496   cat >> confdefs.h <<\EOF
19497 #define wxUSE_FILESYSTEM 1
19498 EOF
19499
19500 fi
19501
19502 if test "$wxUSE_FS_INET" = "yes"; then
19503   cat >> confdefs.h <<\EOF
19504 #define wxUSE_FS_INET 1
19505 EOF
19506
19507 fi
19508
19509 if test "$wxUSE_FS_ZIP" = "yes"; then
19510   cat >> confdefs.h <<\EOF
19511 #define wxUSE_FS_ZIP 1
19512 EOF
19513
19514 fi
19515
19516 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19517   cat >> confdefs.h <<\EOF
19518 #define wxUSE_ZIPSTREAM 1
19519 EOF
19520
19521 fi
19522
19523 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19524   cat >> confdefs.h <<\EOF
19525 #define wxUSE_ON_FATAL_EXCEPTION 1
19526 EOF
19527
19528 fi
19529
19530 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19531   cat >> confdefs.h <<\EOF
19532 #define wxUSE_SNGLINST_CHECKER 1
19533 EOF
19534
19535 fi
19536
19537 if test "$wxUSE_BUSYINFO" = "yes"; then
19538   cat >> confdefs.h <<\EOF
19539 #define wxUSE_BUSYINFO 1
19540 EOF
19541
19542 fi
19543
19544 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19545   cat >> confdefs.h <<\EOF
19546 #define wxUSE_STD_IOSTREAM 1
19547 EOF
19548
19549 fi
19550
19551 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19552     cat >> confdefs.h <<\EOF
19553 #define wxUSE_TEXTBUFFER 1
19554 EOF
19555
19556 fi
19557
19558 if test "$wxUSE_TEXTFILE" = "yes"; then
19559   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19560     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19561   else
19562     cat >> confdefs.h <<\EOF
19563 #define wxUSE_TEXTFILE 1
19564 EOF
19565
19566   fi
19567 fi
19568
19569 if test "$wxUSE_CONFIG" = "yes" ; then
19570   if test "$wxUSE_TEXTFILE" != "yes"; then
19571     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19572   else
19573     cat >> confdefs.h <<\EOF
19574 #define wxUSE_CONFIG 1
19575 EOF
19576
19577     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19578   fi
19579 fi
19580
19581 if test "$wxUSE_INTL" = "yes" ; then
19582   if test "$wxUSE_FILE" != "yes"; then
19583     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19584   else
19585     cat >> confdefs.h <<\EOF
19586 #define wxUSE_INTL 1
19587 EOF
19588
19589     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19590     GUIDIST="$GUIDIST INTL_DIST"
19591   fi
19592 fi
19593
19594 if test "$wxUSE_LOG" = "yes"; then
19595   cat >> confdefs.h <<\EOF
19596 #define wxUSE_LOG 1
19597 EOF
19598
19599
19600     if test "$wxUSE_LOGGUI" = "yes"; then
19601       cat >> confdefs.h <<\EOF
19602 #define wxUSE_LOGGUI 1
19603 EOF
19604
19605     fi
19606
19607     if test "$wxUSE_LOGWINDOW" = "yes"; then
19608       cat >> confdefs.h <<\EOF
19609 #define wxUSE_LOGWINDOW 1
19610 EOF
19611
19612     fi
19613
19614     if test "$wxUSE_LOGDIALOG" = "yes"; then
19615       cat >> confdefs.h <<\EOF
19616 #define wxUSE_LOG_DIALOG 1
19617 EOF
19618
19619     fi
19620 fi
19621
19622 if test "$wxUSE_LONGLONG" = "yes"; then
19623   cat >> confdefs.h <<\EOF
19624 #define wxUSE_LONGLONG 1
19625 EOF
19626
19627 fi
19628
19629 if test "$wxUSE_GEOMETRY" = "yes"; then
19630   cat >> confdefs.h <<\EOF
19631 #define wxUSE_GEOMETRY 1
19632 EOF
19633
19634 fi
19635
19636 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19637   cat >> confdefs.h <<\EOF
19638 #define wxUSE_DIALUP_MANAGER 1
19639 EOF
19640
19641   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19642 fi
19643
19644 if test "$wxUSE_STREAMS" = "yes" ; then
19645   cat >> confdefs.h <<\EOF
19646 #define wxUSE_STREAMS 1
19647 EOF
19648
19649 fi
19650
19651
19652 if test "$wxUSE_DATETIME" = "yes"; then
19653         for ac_func in strptime
19654 do
19655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19656 echo "configure:19657: checking for $ac_func" >&5
19657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19658   echo $ac_n "(cached) $ac_c" 1>&6
19659 else
19660   cat > conftest.$ac_ext <<EOF
19661 #line 19662 "configure"
19662 #include "confdefs.h"
19663 /* System header to define __stub macros and hopefully few prototypes,
19664     which can conflict with char $ac_func(); below.  */
19665 #include <assert.h>
19666 /* Override any gcc2 internal prototype to avoid an error.  */
19667 /* We use char because int might match the return type of a gcc2
19668     builtin and then its argument prototype would still apply.  */
19669 char $ac_func();
19670
19671 int main() {
19672
19673 /* The GNU C library defines this for functions which it implements
19674     to always fail with ENOSYS.  Some functions are actually named
19675     something starting with __ and the normal name is an alias.  */
19676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19677 choke me
19678 #else
19679 $ac_func();
19680 #endif
19681
19682 ; return 0; }
19683 EOF
19684 if { (eval echo configure:19685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19685   rm -rf conftest*
19686   eval "ac_cv_func_$ac_func=yes"
19687 else
19688   echo "configure: failed program was:" >&5
19689   cat conftest.$ac_ext >&5
19690   rm -rf conftest*
19691   eval "ac_cv_func_$ac_func=no"
19692 fi
19693 rm -f conftest*
19694 fi
19695
19696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19697   echo "$ac_t""yes" 1>&6
19698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19699   cat >> confdefs.h <<EOF
19700 #define $ac_tr_func 1
19701 EOF
19702  
19703 else
19704   echo "$ac_t""no" 1>&6
19705 fi
19706 done
19707
19708
19709             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19710 echo "configure:19711: checking for timezone variable in <time.h>" >&5
19711 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19712   echo $ac_n "(cached) $ac_c" 1>&6
19713 else
19714   
19715                         cat > conftest.$ac_ext <<EOF
19716 #line 19717 "configure"
19717 #include "confdefs.h"
19718
19719                                 #include <time.h>
19720                             
19721 int main() {
19722
19723                                 int tz;
19724                                 tz = timezone;
19725                             
19726 ; return 0; }
19727 EOF
19728 if { (eval echo configure:19729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19729   rm -rf conftest*
19730   
19731                                 wx_cv_var_timezone=timezone
19732                             
19733 else
19734   echo "configure: failed program was:" >&5
19735   cat conftest.$ac_ext >&5
19736   rm -rf conftest*
19737   
19738                                 cat > conftest.$ac_ext <<EOF
19739 #line 19740 "configure"
19740 #include "confdefs.h"
19741
19742                                         #include <time.h>
19743                                     
19744 int main() {
19745
19746                                         int tz;
19747                                         tz = _timezone;
19748                                     
19749 ; return 0; }
19750 EOF
19751 if { (eval echo configure:19752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19752   rm -rf conftest*
19753   
19754                                         wx_cv_var_timezone=_timezone
19755                                     
19756 else
19757   echo "configure: failed program was:" >&5
19758   cat conftest.$ac_ext >&5
19759   rm -rf conftest*
19760   
19761                                         cat > conftest.$ac_ext <<EOF
19762 #line 19763 "configure"
19763 #include "confdefs.h"
19764
19765                                                 #include <time.h>
19766                                             
19767 int main() {
19768
19769                                                 int tz;
19770                                                 tz = __timezone;
19771                                             
19772 ; return 0; }
19773 EOF
19774 if { (eval echo configure:19775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19775   rm -rf conftest*
19776   
19777                                                 wx_cv_var_timezone=__timezone
19778                                             
19779 else
19780   echo "configure: failed program was:" >&5
19781   cat conftest.$ac_ext >&5
19782   rm -rf conftest*
19783   
19784                                                 if test "$USE_DOS" = 0 ; then
19785                                                     echo "configure: warning: no timezone variable" 1>&2
19786                                                 fi
19787                                             
19788                                         
19789 fi
19790 rm -f conftest*
19791                                     
19792                                 
19793 fi
19794 rm -f conftest*
19795                             
19796                         
19797 fi
19798 rm -f conftest*
19799                    
19800     
19801 fi
19802
19803 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19804
19805         if test "x$wx_cv_var_timezone" != x ; then
19806         cat >> confdefs.h <<EOF
19807 #define WX_TIMEZONE $wx_cv_var_timezone
19808 EOF
19809
19810     fi
19811
19812         for ac_func in localtime
19813 do
19814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19815 echo "configure:19816: checking for $ac_func" >&5
19816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19817   echo $ac_n "(cached) $ac_c" 1>&6
19818 else
19819   cat > conftest.$ac_ext <<EOF
19820 #line 19821 "configure"
19821 #include "confdefs.h"
19822 /* System header to define __stub macros and hopefully few prototypes,
19823     which can conflict with char $ac_func(); below.  */
19824 #include <assert.h>
19825 /* Override any gcc2 internal prototype to avoid an error.  */
19826 /* We use char because int might match the return type of a gcc2
19827     builtin and then its argument prototype would still apply.  */
19828 char $ac_func();
19829
19830 int main() {
19831
19832 /* The GNU C library defines this for functions which it implements
19833     to always fail with ENOSYS.  Some functions are actually named
19834     something starting with __ and the normal name is an alias.  */
19835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19836 choke me
19837 #else
19838 $ac_func();
19839 #endif
19840
19841 ; return 0; }
19842 EOF
19843 if { (eval echo configure:19844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19844   rm -rf conftest*
19845   eval "ac_cv_func_$ac_func=yes"
19846 else
19847   echo "configure: failed program was:" >&5
19848   cat conftest.$ac_ext >&5
19849   rm -rf conftest*
19850   eval "ac_cv_func_$ac_func=no"
19851 fi
19852 rm -f conftest*
19853 fi
19854
19855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19856   echo "$ac_t""yes" 1>&6
19857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19858   cat >> confdefs.h <<EOF
19859 #define $ac_tr_func 1
19860 EOF
19861  
19862 else
19863   echo "$ac_t""no" 1>&6
19864 fi
19865 done
19866
19867
19868     if test "$ac_cv_func_localtime" = "yes"; then
19869         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19870 echo "configure:19871: checking for tm_gmtoff in struct tm" >&5
19871 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19872   echo $ac_n "(cached) $ac_c" 1>&6
19873 else
19874   
19875             cat > conftest.$ac_ext <<EOF
19876 #line 19877 "configure"
19877 #include "confdefs.h"
19878
19879                     #include <time.h>
19880                 
19881 int main() {
19882
19883                     struct tm tm;
19884                     tm.tm_gmtoff++;
19885                 
19886 ; return 0; }
19887 EOF
19888 if { (eval echo configure:19889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19889   rm -rf conftest*
19890   
19891                     wx_cv_struct_tm_has_gmtoff=yes
19892                 
19893 else
19894   echo "configure: failed program was:" >&5
19895   cat conftest.$ac_ext >&5
19896   rm -rf conftest*
19897   wx_cv_struct_tm_has_gmtoff=no
19898             
19899 fi
19900 rm -f conftest*
19901         
19902 fi
19903
19904 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19905     fi
19906
19907     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19908         cat >> confdefs.h <<\EOF
19909 #define WX_GMTOFF_IN_TM 1
19910 EOF
19911
19912     fi
19913
19914             for ac_func in gettimeofday ftime
19915 do
19916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19917 echo "configure:19918: checking for $ac_func" >&5
19918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19919   echo $ac_n "(cached) $ac_c" 1>&6
19920 else
19921   cat > conftest.$ac_ext <<EOF
19922 #line 19923 "configure"
19923 #include "confdefs.h"
19924 /* System header to define __stub macros and hopefully few prototypes,
19925     which can conflict with char $ac_func(); below.  */
19926 #include <assert.h>
19927 /* Override any gcc2 internal prototype to avoid an error.  */
19928 /* We use char because int might match the return type of a gcc2
19929     builtin and then its argument prototype would still apply.  */
19930 char $ac_func();
19931
19932 int main() {
19933
19934 /* The GNU C library defines this for functions which it implements
19935     to always fail with ENOSYS.  Some functions are actually named
19936     something starting with __ and the normal name is an alias.  */
19937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19938 choke me
19939 #else
19940 $ac_func();
19941 #endif
19942
19943 ; return 0; }
19944 EOF
19945 if { (eval echo configure:19946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19946   rm -rf conftest*
19947   eval "ac_cv_func_$ac_func=yes"
19948 else
19949   echo "configure: failed program was:" >&5
19950   cat conftest.$ac_ext >&5
19951   rm -rf conftest*
19952   eval "ac_cv_func_$ac_func=no"
19953 fi
19954 rm -f conftest*
19955 fi
19956
19957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19958   echo "$ac_t""yes" 1>&6
19959     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19960   cat >> confdefs.h <<EOF
19961 #define $ac_tr_func 1
19962 EOF
19963  break
19964 else
19965   echo "$ac_t""no" 1>&6
19966 fi
19967 done
19968
19969
19970     if test "$ac_cv_func_gettimeofday" = "yes"; then
19971         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19972 echo "configure:19973: checking whether gettimeofday takes two arguments" >&5
19973 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19974   echo $ac_n "(cached) $ac_c" 1>&6
19975 else
19976   
19977                         
19978             ac_ext=C
19979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19980 ac_cpp='$CXXCPP $CPPFLAGS'
19981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19983 cross_compiling=$ac_cv_prog_cxx_cross
19984
19985
19986             cat > conftest.$ac_ext <<EOF
19987 #line 19988 "configure"
19988 #include "confdefs.h"
19989
19990                     #include <sys/time.h>
19991                     #include <unistd.h>
19992                 
19993 int main() {
19994
19995                     struct timeval tv;
19996                     gettimeofday(&tv, NULL);
19997                 
19998 ; return 0; }
19999 EOF
20000 if { (eval echo configure:20001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20001   rm -rf conftest*
20002   wx_cv_func_gettimeofday_has_2_args=yes
20003 else
20004   echo "configure: failed program was:" >&5
20005   cat conftest.$ac_ext >&5
20006   rm -rf conftest*
20007   cat > conftest.$ac_ext <<EOF
20008 #line 20009 "configure"
20009 #include "confdefs.h"
20010
20011                         #include <sys/time.h>
20012                         #include <unistd.h>
20013                     
20014 int main() {
20015
20016                         struct timeval tv;
20017                         gettimeofday(&tv);
20018                     
20019 ; return 0; }
20020 EOF
20021 if { (eval echo configure:20022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20022   rm -rf conftest*
20023   wx_cv_func_gettimeofday_has_2_args=no
20024 else
20025   echo "configure: failed program was:" >&5
20026   cat conftest.$ac_ext >&5
20027   rm -rf conftest*
20028   
20029                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20030                         wx_cv_func_gettimeofday_has_2_args=unknown
20031                     
20032                 
20033 fi
20034 rm -f conftest*
20035             
20036 fi
20037 rm -f conftest*
20038             ac_ext=c
20039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20040 ac_cpp='$CPP $CPPFLAGS'
20041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20043 cross_compiling=$ac_cv_prog_cc_cross
20044
20045         
20046 fi
20047
20048 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20049
20050         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20051             cat >> confdefs.h <<\EOF
20052 #define WX_GETTIMEOFDAY_NO_TZ 1
20053 EOF
20054
20055         fi
20056     fi
20057
20058     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20059 fi
20060
20061
20062 if test "$wxUSE_SOCKETS" = "yes"; then
20063     if test "$wxUSE_MGL" = "1"; then
20064         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20065         wxUSE_SOCKETS="no"
20066     fi
20067 fi
20068
20069 if test "$wxUSE_SOCKETS" = "yes"; then
20070         if test "$TOOLKIT" != "MSW"; then
20071                 echo $ac_n "checking for socket""... $ac_c" 1>&6
20072 echo "configure:20073: checking for socket" >&5
20073 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20074   echo $ac_n "(cached) $ac_c" 1>&6
20075 else
20076   cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 /* System header to define __stub macros and hopefully few prototypes,
20080     which can conflict with char socket(); below.  */
20081 #include <assert.h>
20082 /* Override any gcc2 internal prototype to avoid an error.  */
20083 /* We use char because int might match the return type of a gcc2
20084     builtin and then its argument prototype would still apply.  */
20085 char socket();
20086
20087 int main() {
20088
20089 /* The GNU C library defines this for functions which it implements
20090     to always fail with ENOSYS.  Some functions are actually named
20091     something starting with __ and the normal name is an alias.  */
20092 #if defined (__stub_socket) || defined (__stub___socket)
20093 choke me
20094 #else
20095 socket();
20096 #endif
20097
20098 ; return 0; }
20099 EOF
20100 if { (eval echo configure:20101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20101   rm -rf conftest*
20102   eval "ac_cv_func_socket=yes"
20103 else
20104   echo "configure: failed program was:" >&5
20105   cat conftest.$ac_ext >&5
20106   rm -rf conftest*
20107   eval "ac_cv_func_socket=no"
20108 fi
20109 rm -f conftest*
20110 fi
20111
20112 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20113   echo "$ac_t""yes" 1>&6
20114   :
20115 else
20116   echo "$ac_t""no" 1>&6
20117 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20118 echo "configure:20119: checking for socket in -lsocket" >&5
20119 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20121   echo $ac_n "(cached) $ac_c" 1>&6
20122 else
20123   ac_save_LIBS="$LIBS"
20124 LIBS="-lsocket  $LIBS"
20125 cat > conftest.$ac_ext <<EOF
20126 #line 20127 "configure"
20127 #include "confdefs.h"
20128 /* Override any gcc2 internal prototype to avoid an error.  */
20129 /* We use char because int might match the return type of a gcc2
20130     builtin and then its argument prototype would still apply.  */
20131 char socket();
20132
20133 int main() {
20134 socket()
20135 ; return 0; }
20136 EOF
20137 if { (eval echo configure:20138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20138   rm -rf conftest*
20139   eval "ac_cv_lib_$ac_lib_var=yes"
20140 else
20141   echo "configure: failed program was:" >&5
20142   cat conftest.$ac_ext >&5
20143   rm -rf conftest*
20144   eval "ac_cv_lib_$ac_lib_var=no"
20145 fi
20146 rm -f conftest*
20147 LIBS="$ac_save_LIBS"
20148
20149 fi
20150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20151   echo "$ac_t""yes" 1>&6
20152   if test "$INET_LINK" != " -lsocket"; then
20153                     INET_LINK="$INET_LINK -lsocket"
20154                 fi
20155 else
20156   echo "$ac_t""no" 1>&6
20157
20158                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20159                     wxUSE_SOCKETS=no
20160                 
20161             
20162 fi
20163
20164         
20165 fi
20166
20167     fi
20168 fi
20169
20170 if test "$wxUSE_SOCKETS" = "yes" ; then
20171                 if test "$TOOLKIT" != "MSW"; then
20172                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20173 echo "configure:20174: checking what is the type of the third argument of getsockname" >&5
20174 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20175   echo $ac_n "(cached) $ac_c" 1>&6
20176 else
20177   
20178                 
20179                 ac_ext=C
20180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20181 ac_cpp='$CXXCPP $CPPFLAGS'
20182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20184 cross_compiling=$ac_cv_prog_cxx_cross
20185
20186
20187                 cat > conftest.$ac_ext <<EOF
20188 #line 20189 "configure"
20189 #include "confdefs.h"
20190
20191                         #include <sys/types.h>
20192                         #include <sys/socket.h>
20193                     
20194 int main() {
20195
20196                         socklen_t len;
20197                         getsockname(0, 0, &len);
20198                     
20199 ; return 0; }
20200 EOF
20201 if { (eval echo configure:20202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20202   rm -rf conftest*
20203   wx_cv_type_getsockname3=socklen_t
20204 else
20205   echo "configure: failed program was:" >&5
20206   cat conftest.$ac_ext >&5
20207   rm -rf conftest*
20208   cat > conftest.$ac_ext <<EOF
20209 #line 20210 "configure"
20210 #include "confdefs.h"
20211
20212                             #include <sys/types.h>
20213                             #include <sys/socket.h>
20214                         
20215 int main() {
20216
20217                             size_t len;
20218                             getsockname(0, 0, &len);
20219                         
20220 ; return 0; }
20221 EOF
20222 if { (eval echo configure:20223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20223   rm -rf conftest*
20224   wx_cv_type_getsockname3=size_t
20225 else
20226   echo "configure: failed program was:" >&5
20227   cat conftest.$ac_ext >&5
20228   rm -rf conftest*
20229   cat > conftest.$ac_ext <<EOF
20230 #line 20231 "configure"
20231 #include "confdefs.h"
20232
20233                                 #include <sys/types.h>
20234                                 #include <sys/socket.h>
20235                             
20236 int main() {
20237
20238                                 int len;
20239                                 getsockname(0, 0, &len);
20240                             
20241 ; return 0; }
20242 EOF
20243 if { (eval echo configure:20244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20244   rm -rf conftest*
20245   wx_cv_type_getsockname3=int
20246 else
20247   echo "configure: failed program was:" >&5
20248   cat conftest.$ac_ext >&5
20249   rm -rf conftest*
20250   wx_cv_type_getsockname3=unknown
20251                         
20252 fi
20253 rm -f conftest*
20254                     
20255 fi
20256 rm -f conftest*
20257                 
20258 fi
20259 rm -f conftest*
20260
20261                 ac_ext=c
20262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20263 ac_cpp='$CPP $CPPFLAGS'
20264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20266 cross_compiling=$ac_cv_prog_cc_cross
20267
20268             
20269 fi
20270
20271 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20272
20273         if test "$wx_cv_type_getsockname3" = "unknown"; then
20274             wxUSE_SOCKETS=no
20275             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20276         else
20277             cat >> confdefs.h <<EOF
20278 #define SOCKLEN_T $wx_cv_type_getsockname3
20279 EOF
20280
20281         fi
20282     fi
20283 fi
20284
20285 if test "$wxUSE_SOCKETS" = "yes" ; then
20286     cat >> confdefs.h <<\EOF
20287 #define wxUSE_SOCKETS 1
20288 EOF
20289
20290     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20291 fi
20292
20293
20294 if test "$wxUSE_GUI" = "yes"; then
20295
20296     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20297         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20298         wxUSE_JOYSTICK=no
20299      fi
20300     if test "$TOOLKIT" = "MOTIF"; then
20301         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20302         wxUSE_JOYSTICK=no
20303      fi
20304     if test "$TOOLKIT" = "X11"; then
20305         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20306         wxUSE_JOYSTICK=no
20307      fi
20308
20309         if test "$TOOLKIT" != "MSW"; then
20310         if test "$wxUSE_JOYSTICK" = "yes"; then
20311                         for ac_hdr in linux/joystick.h
20312 do
20313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20315 echo "configure:20316: checking for $ac_hdr" >&5
20316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20317   echo $ac_n "(cached) $ac_c" 1>&6
20318 else
20319   cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 #include <$ac_hdr>
20323 EOF
20324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20325 { (eval echo configure:20326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20327 if test -z "$ac_err"; then
20328   rm -rf conftest*
20329   eval "ac_cv_header_$ac_safe=yes"
20330 else
20331   echo "$ac_err" >&5
20332   echo "configure: failed program was:" >&5
20333   cat conftest.$ac_ext >&5
20334   rm -rf conftest*
20335   eval "ac_cv_header_$ac_safe=no"
20336 fi
20337 rm -f conftest*
20338 fi
20339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20340   echo "$ac_t""yes" 1>&6
20341     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20342   cat >> confdefs.h <<EOF
20343 #define $ac_tr_hdr 1
20344 EOF
20345  
20346 else
20347   echo "$ac_t""no" 1>&6
20348 fi
20349 done
20350
20351             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20352                 wxUSE_JOYSTICK=no
20353                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20354             fi
20355         fi
20356     fi
20357
20358     if test "$wxUSE_JOYSTICK" = "yes"; then
20359         cat >> confdefs.h <<\EOF
20360 #define wxUSE_JOYSTICK 1
20361 EOF
20362
20363         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20364     fi
20365 fi
20366
20367
20368 if test "$TOOLKIT" != "MSW"; then
20369
20370     HAVE_DL_FUNCS=0
20371     HAVE_SHL_FUNCS=0
20372     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20373         if test "$USE_DARWIN" = 1; then
20374                         HAVE_DL_FUNCS=1
20375         else
20376                                                 for ac_func in dlopen
20377 do
20378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20379 echo "configure:20380: checking for $ac_func" >&5
20380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20381   echo $ac_n "(cached) $ac_c" 1>&6
20382 else
20383   cat > conftest.$ac_ext <<EOF
20384 #line 20385 "configure"
20385 #include "confdefs.h"
20386 /* System header to define __stub macros and hopefully few prototypes,
20387     which can conflict with char $ac_func(); below.  */
20388 #include <assert.h>
20389 /* Override any gcc2 internal prototype to avoid an error.  */
20390 /* We use char because int might match the return type of a gcc2
20391     builtin and then its argument prototype would still apply.  */
20392 char $ac_func();
20393
20394 int main() {
20395
20396 /* The GNU C library defines this for functions which it implements
20397     to always fail with ENOSYS.  Some functions are actually named
20398     something starting with __ and the normal name is an alias.  */
20399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20400 choke me
20401 #else
20402 $ac_func();
20403 #endif
20404
20405 ; return 0; }
20406 EOF
20407 if { (eval echo configure:20408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20408   rm -rf conftest*
20409   eval "ac_cv_func_$ac_func=yes"
20410 else
20411   echo "configure: failed program was:" >&5
20412   cat conftest.$ac_ext >&5
20413   rm -rf conftest*
20414   eval "ac_cv_func_$ac_func=no"
20415 fi
20416 rm -f conftest*
20417 fi
20418
20419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20420   echo "$ac_t""yes" 1>&6
20421     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20422   cat >> confdefs.h <<EOF
20423 #define $ac_tr_func 1
20424 EOF
20425  
20426                 cat >> confdefs.h <<\EOF
20427 #define HAVE_DLOPEN 1
20428 EOF
20429
20430                 HAVE_DL_FUNCS=1
20431             
20432 else
20433   echo "$ac_t""no" 1>&6
20434 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20435 echo "configure:20436: checking for dlopen in -ldl" >&5
20436 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20438   echo $ac_n "(cached) $ac_c" 1>&6
20439 else
20440   ac_save_LIBS="$LIBS"
20441 LIBS="-ldl  $LIBS"
20442 cat > conftest.$ac_ext <<EOF
20443 #line 20444 "configure"
20444 #include "confdefs.h"
20445 /* Override any gcc2 internal prototype to avoid an error.  */
20446 /* We use char because int might match the return type of a gcc2
20447     builtin and then its argument prototype would still apply.  */
20448 char dlopen();
20449
20450 int main() {
20451 dlopen()
20452 ; return 0; }
20453 EOF
20454 if { (eval echo configure:20455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20455   rm -rf conftest*
20456   eval "ac_cv_lib_$ac_lib_var=yes"
20457 else
20458   echo "configure: failed program was:" >&5
20459   cat conftest.$ac_ext >&5
20460   rm -rf conftest*
20461   eval "ac_cv_lib_$ac_lib_var=no"
20462 fi
20463 rm -f conftest*
20464 LIBS="$ac_save_LIBS"
20465
20466 fi
20467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20468   echo "$ac_t""yes" 1>&6
20469   
20470                                 cat >> confdefs.h <<\EOF
20471 #define HAVE_DLOPEN 1
20472 EOF
20473
20474                                 HAVE_DL_FUNCS=1
20475                                 DL_LINK=" -ldl$DL_LINK"
20476                             
20477 else
20478   echo "$ac_t""no" 1>&6
20479
20480                                 for ac_func in shl_load
20481 do
20482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20483 echo "configure:20484: checking for $ac_func" >&5
20484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20485   echo $ac_n "(cached) $ac_c" 1>&6
20486 else
20487   cat > conftest.$ac_ext <<EOF
20488 #line 20489 "configure"
20489 #include "confdefs.h"
20490 /* System header to define __stub macros and hopefully few prototypes,
20491     which can conflict with char $ac_func(); below.  */
20492 #include <assert.h>
20493 /* Override any gcc2 internal prototype to avoid an error.  */
20494 /* We use char because int might match the return type of a gcc2
20495     builtin and then its argument prototype would still apply.  */
20496 char $ac_func();
20497
20498 int main() {
20499
20500 /* The GNU C library defines this for functions which it implements
20501     to always fail with ENOSYS.  Some functions are actually named
20502     something starting with __ and the normal name is an alias.  */
20503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20504 choke me
20505 #else
20506 $ac_func();
20507 #endif
20508
20509 ; return 0; }
20510 EOF
20511 if { (eval echo configure:20512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20512   rm -rf conftest*
20513   eval "ac_cv_func_$ac_func=yes"
20514 else
20515   echo "configure: failed program was:" >&5
20516   cat conftest.$ac_ext >&5
20517   rm -rf conftest*
20518   eval "ac_cv_func_$ac_func=no"
20519 fi
20520 rm -f conftest*
20521 fi
20522
20523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20524   echo "$ac_t""yes" 1>&6
20525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20526   cat >> confdefs.h <<EOF
20527 #define $ac_tr_func 1
20528 EOF
20529  
20530                                                 cat >> confdefs.h <<\EOF
20531 #define HAVE_SHL_LOAD 1
20532 EOF
20533
20534                                                 HAVE_SHL_FUNCS=1
20535                                               
20536 else
20537   echo "$ac_t""no" 1>&6
20538 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20539 echo "configure:20540: checking for dld in -lshl_load" >&5
20540 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20542   echo $ac_n "(cached) $ac_c" 1>&6
20543 else
20544   ac_save_LIBS="$LIBS"
20545 LIBS="-lshl_load  $LIBS"
20546 cat > conftest.$ac_ext <<EOF
20547 #line 20548 "configure"
20548 #include "confdefs.h"
20549 /* Override any gcc2 internal prototype to avoid an error.  */
20550 /* We use char because int might match the return type of a gcc2
20551     builtin and then its argument prototype would still apply.  */
20552 char dld();
20553
20554 int main() {
20555 dld()
20556 ; return 0; }
20557 EOF
20558 if { (eval echo configure:20559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20559   rm -rf conftest*
20560   eval "ac_cv_lib_$ac_lib_var=yes"
20561 else
20562   echo "configure: failed program was:" >&5
20563   cat conftest.$ac_ext >&5
20564   rm -rf conftest*
20565   eval "ac_cv_lib_$ac_lib_var=no"
20566 fi
20567 rm -f conftest*
20568 LIBS="$ac_save_LIBS"
20569
20570 fi
20571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20572   echo "$ac_t""yes" 1>&6
20573   
20574                                                                 HAVE_SHL_FUNCS=1
20575                                                                 DL_LINK=" -ldld$DL_LINK"
20576                                                              
20577 else
20578   echo "$ac_t""no" 1>&6
20579 fi
20580
20581                                               
20582 fi
20583 done
20584
20585                             
20586 fi
20587
20588             
20589 fi
20590 done
20591
20592
20593                 if test "$HAVE_DL_FUNCS" = 1; then
20594             for ac_func in dlerror
20595 do
20596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20597 echo "configure:20598: checking for $ac_func" >&5
20598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20599   echo $ac_n "(cached) $ac_c" 1>&6
20600 else
20601   cat > conftest.$ac_ext <<EOF
20602 #line 20603 "configure"
20603 #include "confdefs.h"
20604 /* System header to define __stub macros and hopefully few prototypes,
20605     which can conflict with char $ac_func(); below.  */
20606 #include <assert.h>
20607 /* Override any gcc2 internal prototype to avoid an error.  */
20608 /* We use char because int might match the return type of a gcc2
20609     builtin and then its argument prototype would still apply.  */
20610 char $ac_func();
20611
20612 int main() {
20613
20614 /* The GNU C library defines this for functions which it implements
20615     to always fail with ENOSYS.  Some functions are actually named
20616     something starting with __ and the normal name is an alias.  */
20617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20618 choke me
20619 #else
20620 $ac_func();
20621 #endif
20622
20623 ; return 0; }
20624 EOF
20625 if { (eval echo configure:20626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20626   rm -rf conftest*
20627   eval "ac_cv_func_$ac_func=yes"
20628 else
20629   echo "configure: failed program was:" >&5
20630   cat conftest.$ac_ext >&5
20631   rm -rf conftest*
20632   eval "ac_cv_func_$ac_func=no"
20633 fi
20634 rm -f conftest*
20635 fi
20636
20637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20638   echo "$ac_t""yes" 1>&6
20639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20640   cat >> confdefs.h <<EOF
20641 #define $ac_tr_func 1
20642 EOF
20643  cat >> confdefs.h <<\EOF
20644 #define HAVE_DLERROR 1
20645 EOF
20646
20647 else
20648   echo "$ac_t""no" 1>&6
20649 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20650 echo "configure:20651: checking for dlerror in -ldl" >&5
20651 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20653   echo $ac_n "(cached) $ac_c" 1>&6
20654 else
20655   ac_save_LIBS="$LIBS"
20656 LIBS="-ldl  $LIBS"
20657 cat > conftest.$ac_ext <<EOF
20658 #line 20659 "configure"
20659 #include "confdefs.h"
20660 /* Override any gcc2 internal prototype to avoid an error.  */
20661 /* We use char because int might match the return type of a gcc2
20662     builtin and then its argument prototype would still apply.  */
20663 char dlerror();
20664
20665 int main() {
20666 dlerror()
20667 ; return 0; }
20668 EOF
20669 if { (eval echo configure:20670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20670   rm -rf conftest*
20671   eval "ac_cv_lib_$ac_lib_var=yes"
20672 else
20673   echo "configure: failed program was:" >&5
20674   cat conftest.$ac_ext >&5
20675   rm -rf conftest*
20676   eval "ac_cv_lib_$ac_lib_var=no"
20677 fi
20678 rm -f conftest*
20679 LIBS="$ac_save_LIBS"
20680
20681 fi
20682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20683   echo "$ac_t""yes" 1>&6
20684   cat >> confdefs.h <<\EOF
20685 #define HAVE_DLERROR 1
20686 EOF
20687
20688 else
20689   echo "$ac_t""no" 1>&6
20690 fi
20691
20692 fi
20693 done
20694
20695         fi
20696         fi
20697
20698         if test "$HAVE_DL_FUNCS" = 0; then
20699             if test "$HAVE_SHL_FUNCS" = 0; then
20700               if test "$USE_UNIX" = 1; then
20701                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20702                   wxUSE_DYNAMIC_LOADER=no
20703                   wxUSE_DYNLIB_CLASS=no
20704               else
20705                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20706               fi
20707             fi
20708         fi
20709     fi
20710 fi
20711
20712 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20713     cat >> confdefs.h <<\EOF
20714 #define wxUSE_DYNAMIC_LOADER 1
20715 EOF
20716
20717 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20718     cat >> confdefs.h <<\EOF
20719 #define wxUSE_DYNLIB_CLASS 1
20720 EOF
20721
20722 fi
20723
20724
20725 if test "$wxUSE_FONTMAP" = "yes" ; then
20726   cat >> confdefs.h <<\EOF
20727 #define wxUSE_FONTMAP 1
20728 EOF
20729
20730 fi
20731
20732 if test "$wxUSE_UNICODE" = "yes" ; then
20733   cat >> confdefs.h <<\EOF
20734 #define wxUSE_UNICODE 1
20735 EOF
20736
20737
20738   if test "$wxUSE_MSW" != 1; then
20739       wxUSE_UNICODE_MSLU=no
20740   fi
20741
20742   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20743         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20744 echo "configure:20745: checking for main in -lunicows" >&5
20745 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20747   echo $ac_n "(cached) $ac_c" 1>&6
20748 else
20749   ac_save_LIBS="$LIBS"
20750 LIBS="-lunicows  $LIBS"
20751 cat > conftest.$ac_ext <<EOF
20752 #line 20753 "configure"
20753 #include "confdefs.h"
20754
20755 int main() {
20756 main()
20757 ; return 0; }
20758 EOF
20759 if { (eval echo configure:20760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20760   rm -rf conftest*
20761   eval "ac_cv_lib_$ac_lib_var=yes"
20762 else
20763   echo "configure: failed program was:" >&5
20764   cat conftest.$ac_ext >&5
20765   rm -rf conftest*
20766   eval "ac_cv_lib_$ac_lib_var=no"
20767 fi
20768 rm -f conftest*
20769 LIBS="$ac_save_LIBS"
20770
20771 fi
20772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20773   echo "$ac_t""yes" 1>&6
20774   
20775                 cat >> confdefs.h <<\EOF
20776 #define wxUSE_UNICODE_MSLU 1
20777 EOF
20778
20779             
20780 else
20781   echo "$ac_t""no" 1>&6
20782
20783                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20784                              Applications will only run on Windows NT/2000/XP!" 1>&2
20785                 wxUSE_UNICODE_MSLU=no
20786             
20787 fi
20788
20789     fi
20790 fi
20791
20792 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20793   cat >> confdefs.h <<\EOF
20794 #define wxUSE_EXPERIMENTAL_PRINTF 1
20795 EOF
20796
20797 fi
20798
20799
20800
20801 IODBC_C_SRC=""
20802 if test "$wxUSE_ODBC" = "yes" ; then
20803     cat >> confdefs.h <<\EOF
20804 #define wxUSE_ODBC 1
20805 EOF
20806
20807     WXODBCFLAG="-D_IODBC_"
20808     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20809 fi
20810
20811
20812 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20813   cat >> confdefs.h <<\EOF
20814 #define wxUSE_POSTSCRIPT 1
20815 EOF
20816
20817 fi
20818
20819 cat >> confdefs.h <<\EOF
20820 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20821 EOF
20822
20823
20824 cat >> confdefs.h <<\EOF
20825 #define wxUSE_NORMALIZED_PS_FONTS 1
20826 EOF
20827
20828
20829
20830 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20831     cat >> confdefs.h <<\EOF
20832 #define wxUSE_CONSTRAINTS 1
20833 EOF
20834
20835     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20836 fi
20837
20838 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20839
20840
20841    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20842        cat >> confdefs.h <<\EOF
20843 #define wxUSE_MDI_ARCHITECTURE 1
20844 EOF
20845
20846        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20847    fi
20848 fi
20849
20850 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20851     cat >> confdefs.h <<\EOF
20852 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20853 EOF
20854
20855     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20856     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20857         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20858     fi
20859 fi
20860
20861 if test "$wxUSE_HELP" = "yes"; then
20862     cat >> confdefs.h <<\EOF
20863 #define wxUSE_HELP 1
20864 EOF
20865
20866     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20867
20868     if test "$wxUSE_MSW" = 1; then
20869       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20870         cat >> confdefs.h <<\EOF
20871 #define wxUSE_MS_HTML_HELP 1
20872 EOF
20873
20874       fi
20875     fi
20876
20877     if test "$wxUSE_WXHTML_HELP" = "yes"; then
20878       if test "$wxUSE_HTML" = "yes"; then
20879         cat >> confdefs.h <<\EOF
20880 #define wxUSE_WXHTML_HELP 1
20881 EOF
20882
20883       else
20884         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20885         wxUSE_WXHTML_HELP=no
20886       fi
20887     fi
20888 fi
20889
20890 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20891     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20892         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20893     else
20894         cat >> confdefs.h <<\EOF
20895 #define wxUSE_PRINTING_ARCHITECTURE 1
20896 EOF
20897
20898     fi
20899     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20900 fi
20901
20902
20903
20904 if test "$wxUSE_X_RESOURCES" = "yes"; then
20905     cat >> confdefs.h <<\EOF
20906 #define wxUSE_X_RESOURCES 1
20907 EOF
20908
20909 fi
20910
20911
20912 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
20913                           -o "$wxUSE_CLIPBOARD"     = "yes" \
20914                           -o "$wxUSE_OLE"     = "yes" \
20915                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20916     for ac_hdr in ole2.h
20917 do
20918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20920 echo "configure:20921: checking for $ac_hdr" >&5
20921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20922   echo $ac_n "(cached) $ac_c" 1>&6
20923 else
20924   cat > conftest.$ac_ext <<EOF
20925 #line 20926 "configure"
20926 #include "confdefs.h"
20927 #include <$ac_hdr>
20928 EOF
20929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20930 { (eval echo configure:20931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20932 if test -z "$ac_err"; then
20933   rm -rf conftest*
20934   eval "ac_cv_header_$ac_safe=yes"
20935 else
20936   echo "$ac_err" >&5
20937   echo "configure: failed program was:" >&5
20938   cat conftest.$ac_ext >&5
20939   rm -rf conftest*
20940   eval "ac_cv_header_$ac_safe=no"
20941 fi
20942 rm -f conftest*
20943 fi
20944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20945   echo "$ac_t""yes" 1>&6
20946     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20947   cat >> confdefs.h <<EOF
20948 #define $ac_tr_hdr 1
20949 EOF
20950  
20951 else
20952   echo "$ac_t""no" 1>&6
20953 fi
20954 done
20955
20956
20957     if test "$ac_cv_header_ole2_h" = "yes" ; then
20958         if test "$GCC" = yes ; then
20959             
20960             ac_ext=C
20961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20962 ac_cpp='$CXXCPP $CPPFLAGS'
20963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20965 cross_compiling=$ac_cv_prog_cxx_cross
20966
20967
20968             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20969 echo "configure:20970: checking if g++ requires -fvtable-thunks" >&5
20970             cat > conftest.$ac_ext <<EOF
20971 #line 20972 "configure"
20972 #include "confdefs.h"
20973 #include <windows.h>
20974                             #include <ole2.h>
20975 int main() {
20976
20977 ; return 0; }
20978 EOF
20979 if { (eval echo configure:20980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20980   rm -rf conftest*
20981   echo "$ac_t""no" 1>&6
20982 else
20983   echo "configure: failed program was:" >&5
20984   cat conftest.$ac_ext >&5
20985   rm -rf conftest*
20986   echo "$ac_t""yes" 1>&6
20987                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20988 fi
20989 rm -f conftest*
20990             ac_ext=c
20991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20992 ac_cpp='$CPP $CPPFLAGS'
20993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20995 cross_compiling=$ac_cv_prog_cc_cross
20996
20997             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20998             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20999             cat >> confdefs.h <<\EOF
21000 #define wxUSE_OLE 1
21001 EOF
21002
21003
21004         fi
21005
21006                 cat >> confdefs.h <<\EOF
21007 #define wxUSE_DATAOBJ 1
21008 EOF
21009
21010     else
21011         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21012
21013         wxUSE_CLIPBOARD=no
21014         wxUSE_DRAG_AND_DROP=no
21015         wxUSE_DATAOBJ=no
21016         wxUSE_OLE=no
21017     fi
21018
21019     if test "$wxUSE_METAFILE" = "yes"; then
21020         cat >> confdefs.h <<\EOF
21021 #define wxUSE_METAFILE 1
21022 EOF
21023
21024
21025                 cat >> confdefs.h <<\EOF
21026 #define wxUSE_ENH_METAFILE 1
21027 EOF
21028
21029     fi
21030 fi
21031
21032 if test "$wxUSE_IPC" = "yes"; then
21033     if test "$wxUSE_SOCKETS" != "yes"; then
21034         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21035     fi
21036
21037     cat >> confdefs.h <<\EOF
21038 #define wxUSE_IPC 1
21039 EOF
21040
21041 fi
21042
21043 if test "$wxUSE_CLIPBOARD" = "yes"; then
21044     if test "$wxUSE_MGL" = 1; then
21045         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21046         wxUSE_CLIPBOARD=no
21047     fi
21048
21049     if test "$wxUSE_CLIPBOARD" = "yes"; then
21050         cat >> confdefs.h <<\EOF
21051 #define wxUSE_CLIPBOARD 1
21052 EOF
21053
21054
21055                 cat >> confdefs.h <<\EOF
21056 #define wxUSE_DATAOBJ 1
21057 EOF
21058
21059     fi
21060 fi
21061
21062 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21063     if test "$wxUSE_GTK" = 1; then
21064         if test "$WXGTK12" != 1; then
21065             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21066             wxUSE_DRAG_AND_DROP=no
21067         fi
21068     fi
21069
21070     if test "$wxUSE_MOTIF" = 1; then
21071         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21072         wxUSE_DRAG_AND_DROP=no
21073     fi
21074
21075     if test "$wxUSE_X11" = 1; then
21076         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21077         wxUSE_DRAG_AND_DROP=no
21078     fi
21079
21080     if test "$wxUSE_MGL" = 1; then
21081         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21082         wxUSE_DRAG_AND_DROP=no
21083     fi
21084
21085     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21086         cat >> confdefs.h <<\EOF
21087 #define wxUSE_DRAG_AND_DROP 1
21088 EOF
21089
21090         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21091     fi
21092
21093 fi
21094
21095 if test "$wxUSE_SPLINES" = "yes" ; then
21096   cat >> confdefs.h <<\EOF
21097 #define wxUSE_SPLINES 1
21098 EOF
21099
21100 fi
21101
21102
21103 USES_CONTROLS=0
21104 if test "$wxUSE_CONTROLS" = "yes"; then
21105   USES_CONTROLS=1
21106 fi
21107
21108 if test "$wxUSE_ACCEL" = "yes"; then
21109   cat >> confdefs.h <<\EOF
21110 #define wxUSE_ACCEL 1
21111 EOF
21112
21113   USES_CONTROLS=1
21114 fi
21115
21116 if test "$wxUSE_BUTTON" = "yes"; then
21117   cat >> confdefs.h <<\EOF
21118 #define wxUSE_BUTTON 1
21119 EOF
21120
21121   USES_CONTROLS=1
21122 fi
21123
21124 if test "$wxUSE_BMPBUTTON" = "yes"; then
21125   cat >> confdefs.h <<\EOF
21126 #define wxUSE_BMPBUTTON 1
21127 EOF
21128
21129   USES_CONTROLS=1
21130 fi
21131
21132 if test "$wxUSE_CALCTRL" = "yes"; then
21133   cat >> confdefs.h <<\EOF
21134 #define wxUSE_CALENDARCTRL 1
21135 EOF
21136
21137   USES_CONTROLS=1
21138   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21139 fi
21140
21141 if test "$wxUSE_CARET" = "yes"; then
21142   cat >> confdefs.h <<\EOF
21143 #define wxUSE_CARET 1
21144 EOF
21145
21146   USES_CONTROLS=1
21147   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21148 fi
21149
21150 if test "$wxUSE_COMBOBOX" = "yes"; then
21151   cat >> confdefs.h <<\EOF
21152 #define wxUSE_COMBOBOX 1
21153 EOF
21154
21155   USES_CONTROLS=1
21156 fi
21157
21158 if test "$wxUSE_CHOICE" = "yes"; then
21159   cat >> confdefs.h <<\EOF
21160 #define wxUSE_CHOICE 1
21161 EOF
21162
21163   USES_CONTROLS=1
21164 fi
21165
21166 if test "$wxUSE_CHECKBOX" = "yes"; then
21167   cat >> confdefs.h <<\EOF
21168 #define wxUSE_CHECKBOX 1
21169 EOF
21170
21171   USES_CONTROLS=1
21172 fi
21173
21174 if test "$wxUSE_CHECKLST" = "yes"; then
21175   cat >> confdefs.h <<\EOF
21176 #define wxUSE_CHECKLISTBOX 1
21177 EOF
21178
21179   USES_CONTROLS=1
21180   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21181 fi
21182
21183 if test "$wxUSE_DISPLAY" = "yes"; then
21184     cat >> confdefs.h <<\EOF
21185 #define wxUSE_DISPLAY 1
21186 EOF
21187
21188     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21189 fi
21190
21191 if test "$wxUSE_GAUGE" = "yes"; then
21192   cat >> confdefs.h <<\EOF
21193 #define wxUSE_GAUGE 1
21194 EOF
21195
21196   USES_CONTROLS=1
21197 fi
21198
21199 if test "$wxUSE_GRID" = "yes"; then
21200   cat >> confdefs.h <<\EOF
21201 #define wxUSE_GRID 1
21202 EOF
21203
21204   USES_CONTROLS=1
21205   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21206 fi
21207
21208 if test "$wxUSE_IMAGLIST" = "yes"; then
21209     cat >> confdefs.h <<\EOF
21210 #define wxUSE_IMAGLIST 1
21211 EOF
21212
21213 fi
21214
21215 if test "$wxUSE_LISTBOX" = "yes"; then
21216     cat >> confdefs.h <<\EOF
21217 #define wxUSE_LISTBOX 1
21218 EOF
21219
21220     USES_CONTROLS=1
21221 fi
21222
21223 if test "$wxUSE_LISTCTRL" = "yes"; then
21224     if test "$wxUSE_IMAGLIST" = "yes"; then
21225         cat >> confdefs.h <<\EOF
21226 #define wxUSE_LISTCTRL 1
21227 EOF
21228
21229         USES_CONTROLS=1
21230         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21231     else
21232         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21233     fi
21234 fi
21235
21236 if test "$wxUSE_NOTEBOOK" = "yes"; then
21237     cat >> confdefs.h <<\EOF
21238 #define wxUSE_NOTEBOOK 1
21239 EOF
21240
21241     USES_CONTROLS=1
21242     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21243 fi
21244
21245
21246 if test "$wxUSE_RADIOBOX" = "yes"; then
21247     cat >> confdefs.h <<\EOF
21248 #define wxUSE_RADIOBOX 1
21249 EOF
21250
21251     USES_CONTROLS=1
21252 fi
21253
21254 if test "$wxUSE_RADIOBTN" = "yes"; then
21255     cat >> confdefs.h <<\EOF
21256 #define wxUSE_RADIOBTN 1
21257 EOF
21258
21259     USES_CONTROLS=1
21260 fi
21261
21262 if test "$wxUSE_SASH" = "yes"; then
21263     cat >> confdefs.h <<\EOF
21264 #define wxUSE_SASH 1
21265 EOF
21266
21267     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21268 fi
21269
21270 if test "$wxUSE_SCROLLBAR" = "yes"; then
21271     cat >> confdefs.h <<\EOF
21272 #define wxUSE_SCROLLBAR 1
21273 EOF
21274
21275     USES_CONTROLS=1
21276     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21277 fi
21278
21279 if test "$wxUSE_SLIDER" = "yes"; then
21280     cat >> confdefs.h <<\EOF
21281 #define wxUSE_SLIDER 1
21282 EOF
21283
21284     USES_CONTROLS=1
21285 fi
21286
21287 if test "$wxUSE_SPINBTN" = "yes"; then
21288     cat >> confdefs.h <<\EOF
21289 #define wxUSE_SPINBTN 1
21290 EOF
21291
21292     USES_CONTROLS=1
21293 fi
21294
21295 if test "$wxUSE_SPINCTRL" = "yes"; then
21296     cat >> confdefs.h <<\EOF
21297 #define wxUSE_SPINCTRL 1
21298 EOF
21299
21300     USES_CONTROLS=1
21301 fi
21302
21303 if test "$wxUSE_SPLITTER" = "yes"; then
21304     cat >> confdefs.h <<\EOF
21305 #define wxUSE_SPLITTER 1
21306 EOF
21307
21308     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21309 fi
21310
21311 if test "$wxUSE_STATBMP" = "yes"; then
21312     cat >> confdefs.h <<\EOF
21313 #define wxUSE_STATBMP 1
21314 EOF
21315
21316     USES_CONTROLS=1
21317 fi
21318
21319 if test "$wxUSE_STATBOX" = "yes"; then
21320     cat >> confdefs.h <<\EOF
21321 #define wxUSE_STATBOX 1
21322 EOF
21323
21324     USES_CONTROLS=1
21325 fi
21326
21327 if test "$wxUSE_STATTEXT" = "yes"; then
21328     cat >> confdefs.h <<\EOF
21329 #define wxUSE_STATTEXT 1
21330 EOF
21331
21332     USES_CONTROLS=1
21333 fi
21334
21335 if test "$wxUSE_STATLINE" = "yes"; then
21336     cat >> confdefs.h <<\EOF
21337 #define wxUSE_STATLINE 1
21338 EOF
21339
21340     USES_CONTROLS=1
21341 fi
21342
21343 if test "$wxUSE_STATUSBAR" = "yes"; then
21344     cat >> confdefs.h <<\EOF
21345 #define wxUSE_STATUSBAR 1
21346 EOF
21347
21348     USES_CONTROLS=1
21349
21350     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21351 fi
21352
21353 if test "$wxUSE_TABDIALOG" = "yes"; then
21354     cat >> confdefs.h <<\EOF
21355 #define wxUSE_TAB_DIALOG 1
21356 EOF
21357
21358     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21359 fi
21360
21361 if test "$wxUSE_TEXTCTRL" = "yes"; then
21362     cat >> confdefs.h <<\EOF
21363 #define wxUSE_TEXTCTRL 1
21364 EOF
21365
21366     USES_CONTROLS=1
21367     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21368 fi
21369
21370 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21371     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21372         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21373         wxUSE_TOGGLEBTN=no
21374     fi
21375     if test "$wxUSE_UNIVERSAL" = "yes"; then
21376         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21377         wxUSE_TOGGLEBTN=no
21378     fi
21379
21380     if test "$wxUSE_TOGGLEBTN" = "yes"; then
21381         cat >> confdefs.h <<\EOF
21382 #define wxUSE_TOGGLEBTN 1
21383 EOF
21384
21385         USES_CONTROLS=1
21386     fi
21387 fi
21388
21389 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21390     cat >> confdefs.h <<\EOF
21391 #define wxUSE_TOOLBAR_SIMPLE 1
21392 EOF
21393
21394     wxUSE_TOOLBAR="yes"
21395     USES_CONTROLS=1
21396 fi
21397
21398 if test "$wxUSE_TOOLBAR" = "yes"; then
21399     cat >> confdefs.h <<\EOF
21400 #define wxUSE_TOOLBAR 1
21401 EOF
21402
21403     USES_CONTROLS=1
21404
21405         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21406         wxUSE_TOOLBAR_NATIVE="yes"
21407     fi
21408
21409     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21410         cat >> confdefs.h <<\EOF
21411 #define wxUSE_TOOLBAR_NATIVE 1
21412 EOF
21413
21414         USES_CONTROLS=1
21415     fi
21416
21417     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21418 fi
21419
21420 if test "$wxUSE_TOOLTIPS" = "yes"; then
21421     if test "$wxUSE_MOTIF" = 1; then
21422         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21423     else
21424         if test "$wxUSE_UNIVERSAL" = "yes"; then
21425             echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21426         else
21427             cat >> confdefs.h <<\EOF
21428 #define wxUSE_TOOLTIPS 1
21429 EOF
21430
21431         fi
21432     fi
21433 fi
21434
21435 if test "$wxUSE_TREECTRL" = "yes"; then
21436     if test "$wxUSE_IMAGLIST" = "yes"; then
21437         cat >> confdefs.h <<\EOF
21438 #define wxUSE_TREECTRL 1
21439 EOF
21440
21441         USES_CONTROLS=1
21442         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21443     else
21444         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21445     fi
21446 fi
21447
21448 if test "$wxUSE_POPUPWIN" = "yes"; then
21449     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21450         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21451     else
21452         if test "$wxUSE_MOTIF" = 1; then
21453             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21454         else
21455             if test "$wxUSE_PM" = 1; then
21456                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21457             else
21458                 cat >> confdefs.h <<\EOF
21459 #define wxUSE_POPUPWIN 1
21460 EOF
21461
21462
21463                 USES_CONTROLS=1
21464             fi
21465         fi
21466     fi
21467 fi
21468
21469 if test "$wxUSE_TIPWINDOW" = "yes"; then
21470     if test "$wxUSE_PM" = 1; then
21471         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21472     else
21473         cat >> confdefs.h <<\EOF
21474 #define wxUSE_TIPWINDOW 1
21475 EOF
21476
21477     fi
21478 fi
21479
21480 if test "$USES_CONTROLS" = 1; then
21481     cat >> confdefs.h <<\EOF
21482 #define wxUSE_CONTROLS 1
21483 EOF
21484
21485 fi
21486
21487
21488
21489 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21490     cat >> confdefs.h <<\EOF
21491 #define wxUSE_DRAGIMAGE 1
21492 EOF
21493
21494     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21495 fi
21496
21497 if test "$wxUSE_MENUS" = "yes"; then
21498     cat >> confdefs.h <<\EOF
21499 #define wxUSE_MENUS 1
21500 EOF
21501
21502     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21503 fi
21504
21505 if test "$wxUSE_METAFILE" = "yes"; then
21506     cat >> confdefs.h <<\EOF
21507 #define wxUSE_METAFILE 1
21508 EOF
21509
21510 fi
21511
21512 if test "$wxUSE_MIMETYPE" = "yes"; then
21513     cat >> confdefs.h <<\EOF
21514 #define wxUSE_MIMETYPE 1
21515 EOF
21516
21517 fi
21518
21519 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21520     cat >> confdefs.h <<\EOF
21521 #define wxUSE_SYSTEM_OPTIONS 1
21522 EOF
21523
21524 if test "$TOOLKIT" = "MSW"; then
21525     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21526 fi
21527
21528 fi
21529
21530 if test "$wxUSE_PROTOCOL" = "yes"; then
21531     if test "$wxUSE_SOCKETS" != "yes"; then
21532         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21533         wxUSE_PROTOCOL=no
21534     fi
21535
21536     if test "$wxUSE_PROTOCOL" = "yes"; then
21537         cat >> confdefs.h <<\EOF
21538 #define wxUSE_PROTOCOL 1
21539 EOF
21540
21541
21542         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21543             cat >> confdefs.h <<\EOF
21544 #define wxUSE_PROTOCOL_HTTP 1
21545 EOF
21546
21547         fi
21548         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21549             cat >> confdefs.h <<\EOF
21550 #define wxUSE_PROTOCOL_FTP 1
21551 EOF
21552
21553         fi
21554         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21555             cat >> confdefs.h <<\EOF
21556 #define wxUSE_PROTOCOL_FILE 1
21557 EOF
21558
21559         fi
21560     fi
21561 fi
21562
21563 if test "$wxUSE_URL" = "yes"; then
21564     if test "$wxUSE_PROTOCOL" != "yes"; then
21565         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21566         wxUSE_URL=no
21567     fi
21568     if test "$wxUSE_URL" = "yes"; then
21569         cat >> confdefs.h <<\EOF
21570 #define wxUSE_URL 1
21571 EOF
21572
21573     fi
21574 fi
21575
21576 if test "$wxUSE_MINIFRAME" = "yes"; then
21577     cat >> confdefs.h <<\EOF
21578 #define wxUSE_MINIFRAME 1
21579 EOF
21580
21581     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21582 fi
21583
21584 if test "$wxUSE_HTML" = "yes"; then
21585     cat >> confdefs.h <<\EOF
21586 #define wxUSE_HTML 1
21587 EOF
21588
21589     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21590 fi
21591
21592 if test "$wxUSE_VALIDATORS" = "yes"; then
21593     cat >> confdefs.h <<\EOF
21594 #define wxUSE_VALIDATORS 1
21595 EOF
21596
21597     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21598 fi
21599
21600 if test "$wxUSE_PALETTE" = "yes" ; then
21601   cat >> confdefs.h <<\EOF
21602 #define wxUSE_PALETTE 1
21603 EOF
21604
21605 fi
21606
21607 if test "$wxUSE_IMAGE" = "yes" ; then
21608   cat >> confdefs.h <<\EOF
21609 #define wxUSE_IMAGE 1
21610 EOF
21611
21612 fi
21613
21614 if test "$wxUSE_GIF" = "yes" ; then
21615   cat >> confdefs.h <<\EOF
21616 #define wxUSE_GIF 1
21617 EOF
21618
21619 fi
21620
21621 if test "$wxUSE_PCX" = "yes" ; then
21622   cat >> confdefs.h <<\EOF
21623 #define wxUSE_PCX 1
21624 EOF
21625
21626 fi
21627
21628 if test "$wxUSE_IFF" = "yes" ; then
21629   cat >> confdefs.h <<\EOF
21630 #define wxUSE_IFF 1
21631 EOF
21632
21633 fi
21634
21635 if test "$wxUSE_PNM" = "yes" ; then
21636   cat >> confdefs.h <<\EOF
21637 #define wxUSE_PNM 1
21638 EOF
21639
21640 fi
21641
21642 if test "$wxUSE_XPM" = "yes" ; then
21643   cat >> confdefs.h <<\EOF
21644 #define wxUSE_XPM 1
21645 EOF
21646
21647 fi
21648
21649 if test "$wxUSE_ICO_CUR" = "yes" ; then
21650   cat >> confdefs.h <<\EOF
21651 #define wxUSE_ICO_CUR 1
21652 EOF
21653
21654 fi
21655
21656 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21657     LIBS=" -lunicows $LIBS"
21658 fi
21659
21660
21661 if test "$wxUSE_CHOICEDLG" = "yes"; then
21662     cat >> confdefs.h <<\EOF
21663 #define wxUSE_CHOICEDLG 1
21664 EOF
21665
21666 fi
21667
21668 if test "$wxUSE_COLOURDLG" = "yes"; then
21669     cat >> confdefs.h <<\EOF
21670 #define wxUSE_COLOURDLG 1
21671 EOF
21672
21673 fi
21674
21675 if test "$wxUSE_FILEDLG" = "yes"; then
21676     cat >> confdefs.h <<\EOF
21677 #define wxUSE_FILEDLG 1
21678 EOF
21679
21680 fi
21681
21682 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21683     cat >> confdefs.h <<\EOF
21684 #define wxUSE_FINDREPLDLG 1
21685 EOF
21686
21687 fi
21688
21689 if test "$wxUSE_FONTDLG" = "yes"; then
21690     cat >> confdefs.h <<\EOF
21691 #define wxUSE_FONTDLG 1
21692 EOF
21693
21694 fi
21695
21696 if test "$wxUSE_DIRDLG" = "yes"; then
21697     if test "$wxUSE_TREECTRL" != "yes"; then
21698         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21699     else
21700         cat >> confdefs.h <<\EOF
21701 #define wxUSE_DIRDLG 1
21702 EOF
21703
21704     fi
21705 fi
21706
21707 if test "$wxUSE_MSGDLG" = "yes"; then
21708     cat >> confdefs.h <<\EOF
21709 #define wxUSE_MSGDLG 1
21710 EOF
21711
21712 fi
21713
21714 if test "$wxUSE_NUMBERDLG" = "yes"; then
21715     cat >> confdefs.h <<\EOF
21716 #define wxUSE_NUMBERDLG 1
21717 EOF
21718
21719 fi
21720
21721 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21722     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21723        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21724     else
21725         cat >> confdefs.h <<\EOF
21726 #define wxUSE_PROGRESSDLG 1
21727 EOF
21728
21729     fi
21730 fi
21731
21732 if test "$wxUSE_SPLASH" = "yes"; then
21733     cat >> confdefs.h <<\EOF
21734 #define wxUSE_SPLASH 1
21735 EOF
21736
21737 fi
21738
21739 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21740     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21741        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21742     else
21743         cat >> confdefs.h <<\EOF
21744 #define wxUSE_STARTUP_TIPS 1
21745 EOF
21746
21747     fi
21748 fi
21749
21750 if test "$wxUSE_TEXTDLG" = "yes"; then
21751     cat >> confdefs.h <<\EOF
21752 #define wxUSE_TEXTDLG 1
21753 EOF
21754
21755 fi
21756
21757 if test "$wxUSE_WIZARDDLG" = "yes"; then
21758     cat >> confdefs.h <<\EOF
21759 #define wxUSE_WIZARDDLG 1
21760 EOF
21761
21762     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21763 fi
21764
21765
21766 if test "$cross_compiling" = "yes"; then
21767         OSINFO="\"$host\""
21768 else
21769         OSINFO=`uname -s -r -m`
21770     OSINFO="\"$OSINFO\""
21771 fi
21772
21773 cat >> confdefs.h <<EOF
21774 #define WXWIN_OS_DESCRIPTION $OSINFO
21775 EOF
21776
21777
21778
21779 if test "x$prefix" != "xNONE"; then
21780     wxPREFIX=$prefix
21781 else
21782     wxPREFIX=$ac_default_prefix
21783 fi
21784
21785 cat >> confdefs.h <<EOF
21786 #define wxINSTALL_PREFIX "$wxPREFIX"
21787 EOF
21788
21789
21790 top_builddir=`pwd`
21791
21792
21793
21794
21795 if test "$wxUSE_MAC" = 1 ; then
21796     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21797 fi
21798 if test "$wxUSE_COCOA" = 1 ; then
21799     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
21800 fi
21801
21802
21803 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21804
21805 have_cos=0
21806 have_floor=0
21807 for ac_func in cos
21808 do
21809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21810 echo "configure:21811: checking for $ac_func" >&5
21811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21812   echo $ac_n "(cached) $ac_c" 1>&6
21813 else
21814   cat > conftest.$ac_ext <<EOF
21815 #line 21816 "configure"
21816 #include "confdefs.h"
21817 /* System header to define __stub macros and hopefully few prototypes,
21818     which can conflict with char $ac_func(); below.  */
21819 #include <assert.h>
21820 /* Override any gcc2 internal prototype to avoid an error.  */
21821 /* We use char because int might match the return type of a gcc2
21822     builtin and then its argument prototype would still apply.  */
21823 char $ac_func();
21824
21825 int main() {
21826
21827 /* The GNU C library defines this for functions which it implements
21828     to always fail with ENOSYS.  Some functions are actually named
21829     something starting with __ and the normal name is an alias.  */
21830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21831 choke me
21832 #else
21833 $ac_func();
21834 #endif
21835
21836 ; return 0; }
21837 EOF
21838 if { (eval echo configure:21839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21839   rm -rf conftest*
21840   eval "ac_cv_func_$ac_func=yes"
21841 else
21842   echo "configure: failed program was:" >&5
21843   cat conftest.$ac_ext >&5
21844   rm -rf conftest*
21845   eval "ac_cv_func_$ac_func=no"
21846 fi
21847 rm -f conftest*
21848 fi
21849
21850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21851   echo "$ac_t""yes" 1>&6
21852     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21853   cat >> confdefs.h <<EOF
21854 #define $ac_tr_func 1
21855 EOF
21856  have_cos=1
21857 else
21858   echo "$ac_t""no" 1>&6
21859 fi
21860 done
21861
21862 for ac_func in floor
21863 do
21864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21865 echo "configure:21866: checking for $ac_func" >&5
21866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21867   echo $ac_n "(cached) $ac_c" 1>&6
21868 else
21869   cat > conftest.$ac_ext <<EOF
21870 #line 21871 "configure"
21871 #include "confdefs.h"
21872 /* System header to define __stub macros and hopefully few prototypes,
21873     which can conflict with char $ac_func(); below.  */
21874 #include <assert.h>
21875 /* Override any gcc2 internal prototype to avoid an error.  */
21876 /* We use char because int might match the return type of a gcc2
21877     builtin and then its argument prototype would still apply.  */
21878 char $ac_func();
21879
21880 int main() {
21881
21882 /* The GNU C library defines this for functions which it implements
21883     to always fail with ENOSYS.  Some functions are actually named
21884     something starting with __ and the normal name is an alias.  */
21885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21886 choke me
21887 #else
21888 $ac_func();
21889 #endif
21890
21891 ; return 0; }
21892 EOF
21893 if { (eval echo configure:21894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21894   rm -rf conftest*
21895   eval "ac_cv_func_$ac_func=yes"
21896 else
21897   echo "configure: failed program was:" >&5
21898   cat conftest.$ac_ext >&5
21899   rm -rf conftest*
21900   eval "ac_cv_func_$ac_func=no"
21901 fi
21902 rm -f conftest*
21903 fi
21904
21905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21906   echo "$ac_t""yes" 1>&6
21907     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21908   cat >> confdefs.h <<EOF
21909 #define $ac_tr_func 1
21910 EOF
21911  have_floor=1
21912 else
21913   echo "$ac_t""no" 1>&6
21914 fi
21915 done
21916
21917 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21918 echo "configure:21919: checking if floating point functions link without -lm" >&5
21919 if test "$have_cos" = 1 -a "$have_floor" = 1; then
21920     echo "$ac_t""yes" 1>&6
21921 else
21922     echo "$ac_t""no" 1>&6
21923     LIBS="$LIBS -lm"
21924     # use different functions to avoid configure caching
21925     have_sin=0
21926     have_ceil=0
21927     for ac_func in sin
21928 do
21929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21930 echo "configure:21931: checking for $ac_func" >&5
21931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21932   echo $ac_n "(cached) $ac_c" 1>&6
21933 else
21934   cat > conftest.$ac_ext <<EOF
21935 #line 21936 "configure"
21936 #include "confdefs.h"
21937 /* System header to define __stub macros and hopefully few prototypes,
21938     which can conflict with char $ac_func(); below.  */
21939 #include <assert.h>
21940 /* Override any gcc2 internal prototype to avoid an error.  */
21941 /* We use char because int might match the return type of a gcc2
21942     builtin and then its argument prototype would still apply.  */
21943 char $ac_func();
21944
21945 int main() {
21946
21947 /* The GNU C library defines this for functions which it implements
21948     to always fail with ENOSYS.  Some functions are actually named
21949     something starting with __ and the normal name is an alias.  */
21950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21951 choke me
21952 #else
21953 $ac_func();
21954 #endif
21955
21956 ; return 0; }
21957 EOF
21958 if { (eval echo configure:21959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21959   rm -rf conftest*
21960   eval "ac_cv_func_$ac_func=yes"
21961 else
21962   echo "configure: failed program was:" >&5
21963   cat conftest.$ac_ext >&5
21964   rm -rf conftest*
21965   eval "ac_cv_func_$ac_func=no"
21966 fi
21967 rm -f conftest*
21968 fi
21969
21970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21971   echo "$ac_t""yes" 1>&6
21972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21973   cat >> confdefs.h <<EOF
21974 #define $ac_tr_func 1
21975 EOF
21976  have_sin=1
21977 else
21978   echo "$ac_t""no" 1>&6
21979 fi
21980 done
21981
21982     for ac_func in ceil
21983 do
21984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21985 echo "configure:21986: checking for $ac_func" >&5
21986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21987   echo $ac_n "(cached) $ac_c" 1>&6
21988 else
21989   cat > conftest.$ac_ext <<EOF
21990 #line 21991 "configure"
21991 #include "confdefs.h"
21992 /* System header to define __stub macros and hopefully few prototypes,
21993     which can conflict with char $ac_func(); below.  */
21994 #include <assert.h>
21995 /* Override any gcc2 internal prototype to avoid an error.  */
21996 /* We use char because int might match the return type of a gcc2
21997     builtin and then its argument prototype would still apply.  */
21998 char $ac_func();
21999
22000 int main() {
22001
22002 /* The GNU C library defines this for functions which it implements
22003     to always fail with ENOSYS.  Some functions are actually named
22004     something starting with __ and the normal name is an alias.  */
22005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22006 choke me
22007 #else
22008 $ac_func();
22009 #endif
22010
22011 ; return 0; }
22012 EOF
22013 if { (eval echo configure:22014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22014   rm -rf conftest*
22015   eval "ac_cv_func_$ac_func=yes"
22016 else
22017   echo "configure: failed program was:" >&5
22018   cat conftest.$ac_ext >&5
22019   rm -rf conftest*
22020   eval "ac_cv_func_$ac_func=no"
22021 fi
22022 rm -f conftest*
22023 fi
22024
22025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22026   echo "$ac_t""yes" 1>&6
22027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22028   cat >> confdefs.h <<EOF
22029 #define $ac_tr_func 1
22030 EOF
22031  have_ceil=1
22032 else
22033   echo "$ac_t""no" 1>&6
22034 fi
22035 done
22036
22037     echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22038 echo "configure:22039: checking if floating point functions link with -lm" >&5
22039     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22040         echo "$ac_t""yes" 1>&6
22041     else
22042         echo "$ac_t""no" 1>&6
22043         # not sure we should warn the user, crash, etc.
22044     fi
22045 fi
22046
22047 if test "$wxUSE_GUI" = "yes"; then
22048
22049     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22050
22051         
22052             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22053                      drawing dynamic erase event exec font image \
22054                      minimal propsize rotate shaped widgets"
22055
22056         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22057 else
22058     SAMPLES_SUBDIRS="console"
22059 fi
22060
22061
22062 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22063 -I\${top_srcdir}/include \
22064 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22065 $TOOLKIT_INCLUDE"
22066
22067 if test "$wxUSE_GTK" = 1; then
22068     WXCONFIG_INCLUDE=
22069 else
22070     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22071 fi
22072
22073 if test "$GXX" = yes ; then
22074         CXXWARNINGS="-Wall"
22075         
22076             if test "$wxUSE_NO_DEPS" = "no" ; then
22077         CFLAGS="-MMD $CFLAGS"
22078         CXXFLAGS="-MMD $CXXFLAGS"
22079     fi
22080 fi
22081
22082 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22083
22084 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22085 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22086 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22087 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22088
22089 LDFLAGS="$LDFLAGS $PROFILE"
22090
22091 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22194 echo "configure:22195: checking whether ${MAKE-make} sets \${MAKE}" >&5
22195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22196 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22197   echo $ac_n "(cached) $ac_c" 1>&6
22198 else
22199   cat > conftestmake <<\EOF
22200 all:
22201         @echo 'ac_maketemp="${MAKE}"'
22202 EOF
22203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22204 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22205 if test -n "$ac_maketemp"; then
22206   eval ac_cv_prog_make_${ac_make}_set=yes
22207 else
22208   eval ac_cv_prog_make_${ac_make}_set=no
22209 fi
22210 rm -f conftestmake
22211 fi
22212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22213   echo "$ac_t""yes" 1>&6
22214   SET_MAKE=
22215 else
22216   echo "$ac_t""no" 1>&6
22217   SET_MAKE="MAKE=${MAKE-make}"
22218 fi
22219
22220
22221 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22222     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22223 fi
22224
22225
22226
22227 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22228 wx_cv_if_gnu_make=$IF_GNU_MAKE
22229 wx_cv_path_ifs=$PATH_IFS
22230 wx_cv_program_ext=$PROGRAM_EXT
22231 wx_cv_target_library=$WX_TARGET_LIBRARY
22232 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22233 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22234 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22235 wx_cv_release=${WX_RELEASE}
22236 wx_cv_current=${WX_CURRENT}
22237 wx_cv_revision=${WX_REVISION}
22238 wx_cv_age=${WX_AGE}
22239 wx_cv_use_gui=${USE_GUI}
22240 wx_cv_use_resources=${wxUSE_RESOURCES}
22241 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22242        wx_cv_path_ifs wx_cv_program_ext \
22243        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22244        wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22245        wx_cv_use_gui wx_cv_use_resources
22246
22247 subdirs="demos samples utils contrib"
22248
22249
22250 trap '' 1 2 15
22251 cat > confcache <<\EOF
22252 # This file is a shell script that caches the results of configure
22253 # tests run on this system so they can be shared between configure
22254 # scripts and configure runs.  It is not useful on other systems.
22255 # If it contains results you don't want to keep, you may remove or edit it.
22256 #
22257 # By default, configure uses ./config.cache as the cache file,
22258 # creating it if it does not exist already.  You can give configure
22259 # the --cache-file=FILE option to use a different cache file; that is
22260 # what configure does when it calls configure scripts in
22261 # subdirectories, so they share the cache.
22262 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22263 # config.status only pays attention to the cache file if you give it the
22264 # --recheck option to rerun configure.
22265 #
22266 EOF
22267 # The following way of writing the cache mishandles newlines in values,
22268 # but we know of no workaround that is simple, portable, and efficient.
22269 # So, don't put newlines in cache variables' values.
22270 # Ultrix sh set writes to stderr and can't be redirected directly,
22271 # and sets the high bit in the cache file unless we assign to the vars.
22272 (set) 2>&1 |
22273   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22274   *ac_space=\ *)
22275     # `set' does not quote correctly, so add quotes (double-quote substitution
22276     # turns \\\\ into \\, and sed turns \\ into \).
22277     sed -n \
22278       -e "s/'/'\\\\''/g" \
22279       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22280     ;;
22281   *)
22282     # `set' quotes correctly as required by POSIX, so do not add quotes.
22283     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22284     ;;
22285   esac >> confcache
22286 if cmp -s $cache_file confcache; then
22287   :
22288 else
22289   if test -w $cache_file; then
22290     echo "updating cache $cache_file"
22291     cat confcache > $cache_file
22292   else
22293     echo "not updating unwritable cache $cache_file"
22294   fi
22295 fi
22296 rm -f confcache
22297
22298 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22299
22300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22301 # Let make expand exec_prefix.
22302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22303
22304 # Any assignment to VPATH causes Sun make to only execute
22305 # the first set of double-colon rules, so remove it if not needed.
22306 # If there is a colon in the path, we need to keep it.
22307 if test "x$srcdir" = x.; then
22308   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22309 fi
22310
22311 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22312
22313 DEFS=-DHAVE_CONFIG_H
22314
22315 # Without the "./", some shells look in PATH for config.status.
22316 : ${CONFIG_STATUS=./config.status}
22317
22318 echo creating $CONFIG_STATUS
22319 rm -f $CONFIG_STATUS
22320 cat > $CONFIG_STATUS <<EOF
22321 #! /bin/sh
22322 # Generated automatically by configure.
22323 # Run this file to recreate the current configuration.
22324 # This directory was configured as follows,
22325 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22326 #
22327 # $0 $ac_configure_args
22328 #
22329 # Compiler output produced by configure, useful for debugging
22330 # configure, is in ./config.log if it exists.
22331
22332 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22333 for ac_option
22334 do
22335   case "\$ac_option" in
22336   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22337     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22338     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22339   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22340     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22341     exit 0 ;;
22342   -help | --help | --hel | --he | --h)
22343     echo "\$ac_cs_usage"; exit 0 ;;
22344   *) echo "\$ac_cs_usage"; exit 1 ;;
22345   esac
22346 done
22347
22348 ac_given_srcdir=$srcdir
22349 ac_given_INSTALL="$INSTALL"
22350
22351 trap 'rm -fr `echo "
22352             wx-config
22353             version-script
22354             src/make.env
22355             src/makeprog.env
22356             src/makelib.env
22357             Makefile
22358            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22359 EOF
22360 cat >> $CONFIG_STATUS <<EOF
22361
22362 # Protect against being on the right side of a sed subst in config.status.
22363 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22364  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22365 $ac_vpsub
22366 $extrasub
22367 s%@SHELL@%$SHELL%g
22368 s%@CFLAGS@%$CFLAGS%g
22369 s%@CPPFLAGS@%$CPPFLAGS%g
22370 s%@CXXFLAGS@%$CXXFLAGS%g
22371 s%@FFLAGS@%$FFLAGS%g
22372 s%@DEFS@%$DEFS%g
22373 s%@LDFLAGS@%$LDFLAGS%g
22374 s%@LIBS@%$LIBS%g
22375 s%@exec_prefix@%$exec_prefix%g
22376 s%@prefix@%$prefix%g
22377 s%@program_transform_name@%$program_transform_name%g
22378 s%@bindir@%$bindir%g
22379 s%@sbindir@%$sbindir%g
22380 s%@libexecdir@%$libexecdir%g
22381 s%@datadir@%$datadir%g
22382 s%@sysconfdir@%$sysconfdir%g
22383 s%@sharedstatedir@%$sharedstatedir%g
22384 s%@localstatedir@%$localstatedir%g
22385 s%@libdir@%$libdir%g
22386 s%@includedir@%$includedir%g
22387 s%@oldincludedir@%$oldincludedir%g
22388 s%@infodir@%$infodir%g
22389 s%@mandir@%$mandir%g
22390 s%@host@%$host%g
22391 s%@host_alias@%$host_alias%g
22392 s%@host_cpu@%$host_cpu%g
22393 s%@host_vendor@%$host_vendor%g
22394 s%@host_os@%$host_os%g
22395 s%@target@%$target%g
22396 s%@target_alias@%$target_alias%g
22397 s%@target_cpu@%$target_cpu%g
22398 s%@target_vendor@%$target_vendor%g
22399 s%@target_os@%$target_os%g
22400 s%@build@%$build%g
22401 s%@build_alias@%$build_alias%g
22402 s%@build_cpu@%$build_cpu%g
22403 s%@build_vendor@%$build_vendor%g
22404 s%@build_os@%$build_os%g
22405 s%@CC@%$CC%g
22406 s%@CPP@%$CPP%g
22407 s%@CXX@%$CXX%g
22408 s%@RANLIB@%$RANLIB%g
22409 s%@AR@%$AR%g
22410 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22411 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22412 s%@INSTALL_DATA@%$INSTALL_DATA%g
22413 s%@STRIP@%$STRIP%g
22414 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22415 s%@YACC@%$YACC%g
22416 s%@LEX@%$LEX%g
22417 s%@LEXLIB@%$LEXLIB%g
22418 s%@LN_S@%$LN_S%g
22419 s%@CXXCPP@%$CXXCPP%g
22420 s%@PKG_CONFIG@%$PKG_CONFIG%g
22421 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22422 s%@GTK_LIBS@%$GTK_LIBS%g
22423 s%@GTK_CONFIG@%$GTK_CONFIG%g
22424 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22425 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22426 s%@X_CFLAGS@%$X_CFLAGS%g
22427 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22428 s%@X_LIBS@%$X_LIBS%g
22429 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22430 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22431 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22432 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22433 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22434 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22435 s%@RESCOMP@%$RESCOMP%g
22436 s%@DEREZ@%$DEREZ%g
22437 s%@SETFILE@%$SETFILE%g
22438 s%@LIBICONV@%$LIBICONV%g
22439 s%@LEX_STEM@%$LEX_STEM%g
22440 s%@PATH_IFS@%$PATH_IFS%g
22441 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22442 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22443 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22444 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22445 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22446 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22447 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22448 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22449 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22450 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22451 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22452 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22453 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22454 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22455 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22456 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22457 s%@WX_ALL@%$WX_ALL%g
22458 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22459 s%@SHARED_LD@%$SHARED_LD%g
22460 s%@PIC_FLAG@%$PIC_FLAG%g
22461 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22462 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22463 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22464 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22465 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22466 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22467 s%@STATIC_FLAG@%$STATIC_FLAG%g
22468 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22469 s%@USE_GUI@%$USE_GUI%g
22470 s%@AFMINSTALL@%$AFMINSTALL%g
22471 s%@WIN32INSTALL@%$WIN32INSTALL%g
22472 s%@TOOLKIT@%$TOOLKIT%g
22473 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22474 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22475 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22476 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22477 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22478 s%@top_builddir@%$top_builddir%g
22479 s%@cross_compiling@%$cross_compiling%g
22480 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22481 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22482 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22483 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22484 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22485 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22486 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22487 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22488 s%@ALL_HEADERS@%$ALL_HEADERS%g
22489 s%@ALL_SOURCES@%$ALL_SOURCES%g
22490 s%@GUIDIST@%$GUIDIST%g
22491 s%@PORT_FILES@%$PORT_FILES%g
22492 s%@DISTDIR@%$DISTDIR%g
22493 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22494 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22495 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22496 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22497 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22498 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22499 s%@EXTRADEFS@%$EXTRADEFS%g
22500 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22501 s%@RESFLAGS@%$RESFLAGS%g
22502 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22503 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22504 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22505 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22506 s%@LIBWXMACRES@%$LIBWXMACRES%g
22507 s%@MACRESCOMP@%$MACRESCOMP%g
22508 s%@MACSETFILE@%$MACSETFILE%g
22509 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22510 s%@GCC@%$GCC%g
22511 s%@DLLTOOL@%$DLLTOOL%g
22512 s%@AS@%$AS%g
22513 s%@NM@%$NM%g
22514 s%@LD@%$LD%g
22515 s%@MAKEINFO@%$MAKEINFO%g
22516 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22517 s%@INSTALL_DIR@%$INSTALL_DIR%g
22518 s%@SET_MAKE@%$SET_MAKE%g
22519 s%@subdirs@%$subdirs%g
22520
22521 CEOF
22522 EOF
22523
22524 cat >> $CONFIG_STATUS <<\EOF
22525
22526 # Split the substitutions into bite-sized pieces for seds with
22527 # small command number limits, like on Digital OSF/1 and HP-UX.
22528 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22529 ac_file=1 # Number of current file.
22530 ac_beg=1 # First line for current file.
22531 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22532 ac_more_lines=:
22533 ac_sed_cmds=""
22534 while $ac_more_lines; do
22535   if test $ac_beg -gt 1; then
22536     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22537   else
22538     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22539   fi
22540   if test ! -s conftest.s$ac_file; then
22541     ac_more_lines=false
22542     rm -f conftest.s$ac_file
22543   else
22544     if test -z "$ac_sed_cmds"; then
22545       ac_sed_cmds="sed -f conftest.s$ac_file"
22546     else
22547       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22548     fi
22549     ac_file=`expr $ac_file + 1`
22550     ac_beg=$ac_end
22551     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22552   fi
22553 done
22554 if test -z "$ac_sed_cmds"; then
22555   ac_sed_cmds=cat
22556 fi
22557 EOF
22558
22559 cat >> $CONFIG_STATUS <<EOF
22560
22561 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22562             version-script
22563             src/make.env
22564             src/makeprog.env
22565             src/makelib.env
22566             Makefile
22567           "}
22568 EOF
22569 cat >> $CONFIG_STATUS <<\EOF
22570 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22571   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22572   case "$ac_file" in
22573   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22574        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22575   *) ac_file_in="${ac_file}.in" ;;
22576   esac
22577
22578   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22579
22580   # Remove last slash and all that follows it.  Not all systems have dirname.
22581   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22582   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22583     # The file is in a subdirectory.
22584     test ! -d "$ac_dir" && mkdir "$ac_dir"
22585     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22586     # A "../" for each directory in $ac_dir_suffix.
22587     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22588   else
22589     ac_dir_suffix= ac_dots=
22590   fi
22591
22592   case "$ac_given_srcdir" in
22593   .)  srcdir=.
22594       if test -z "$ac_dots"; then top_srcdir=.
22595       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22596   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22597   *) # Relative path.
22598     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22599     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22600   esac
22601
22602   case "$ac_given_INSTALL" in
22603   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22604   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22605   esac
22606
22607   echo creating "$ac_file"
22608   rm -f "$ac_file"
22609   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22610   case "$ac_file" in
22611   *Makefile*) ac_comsub="1i\\
22612 # $configure_input" ;;
22613   *) ac_comsub= ;;
22614   esac
22615
22616   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22617   sed -e "$ac_comsub
22618 s%@configure_input@%$configure_input%g
22619 s%@srcdir@%$srcdir%g
22620 s%@top_srcdir@%$top_srcdir%g
22621 s%@INSTALL@%$INSTALL%g
22622 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22623 fi; done
22624 rm -f conftest.s*
22625
22626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22627 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22628 #
22629 # ac_d sets the value in "#define NAME VALUE" lines.
22630 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22631 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22632 ac_dC='\3'
22633 ac_dD='%g'
22634 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22635 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22636 ac_uB='\([      ]\)%\1#\2define\3'
22637 ac_uC=' '
22638 ac_uD='\4%g'
22639 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22640 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22641 ac_eB='$%\1#\2define\3'
22642 ac_eC=' '
22643 ac_eD='%g'
22644
22645 if test "${CONFIG_HEADERS+set}" != set; then
22646 EOF
22647 cat >> $CONFIG_STATUS <<EOF
22648   CONFIG_HEADERS="setup.h:setup.h.in"
22649 EOF
22650 cat >> $CONFIG_STATUS <<\EOF
22651 fi
22652 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22653   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22654   case "$ac_file" in
22655   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22656        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22657   *) ac_file_in="${ac_file}.in" ;;
22658   esac
22659
22660   echo creating $ac_file
22661
22662   rm -f conftest.frag conftest.in conftest.out
22663   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22664   cat $ac_file_inputs > conftest.in
22665
22666 EOF
22667
22668 # Transform confdefs.h into a sed script conftest.vals that substitutes
22669 # the proper values into config.h.in to produce config.h.  And first:
22670 # Protect against being on the right side of a sed subst in config.status.
22671 # Protect against being in an unquoted here document in config.status.
22672 rm -f conftest.vals
22673 cat > conftest.hdr <<\EOF
22674 s/[\\&%]/\\&/g
22675 s%[\\$`]%\\&%g
22676 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22677 s%ac_d%ac_u%gp
22678 s%ac_u%ac_e%gp
22679 EOF
22680 sed -n -f conftest.hdr confdefs.h > conftest.vals
22681 rm -f conftest.hdr
22682
22683 # This sed command replaces #undef with comments.  This is necessary, for
22684 # example, in the case of _POSIX_SOURCE, which is predefined and required
22685 # on some systems where configure will not decide to define it.
22686 cat >> conftest.vals <<\EOF
22687 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22688 EOF
22689
22690 # Break up conftest.vals because some shells have a limit on
22691 # the size of here documents, and old seds have small limits too.
22692
22693 rm -f conftest.tail
22694 while :
22695 do
22696   ac_lines=`grep -c . conftest.vals`
22697   # grep -c gives empty output for an empty file on some AIX systems.
22698   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22699   # Write a limited-size here document to conftest.frag.
22700   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22701   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22702   echo 'CEOF
22703   sed -f conftest.frag conftest.in > conftest.out
22704   rm -f conftest.in
22705   mv conftest.out conftest.in
22706 ' >> $CONFIG_STATUS
22707   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22708   rm -f conftest.vals
22709   mv conftest.tail conftest.vals
22710 done
22711 rm -f conftest.vals
22712
22713 cat >> $CONFIG_STATUS <<\EOF
22714   rm -f conftest.frag conftest.h
22715   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22716   cat conftest.in >> conftest.h
22717   rm -f conftest.in
22718   if cmp -s $ac_file conftest.h 2>/dev/null; then
22719     echo "$ac_file is unchanged"
22720     rm -f conftest.h
22721   else
22722     # Remove last slash and all that follows it.  Not all systems have dirname.
22723       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22724       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22725       # The file is in a subdirectory.
22726       test ! -d "$ac_dir" && mkdir "$ac_dir"
22727     fi
22728     rm -f $ac_file
22729     mv conftest.h $ac_file
22730   fi
22731 fi; done
22732
22733 EOF
22734 cat >> $CONFIG_STATUS <<EOF
22735
22736             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22737             LN_S="${LN_S}"
22738           
22739          
22740 EOF
22741 cat >> $CONFIG_STATUS <<\EOF
22742
22743                                                                                                 if test ! -h wx-config; then
22744                 chmod +x wx-config
22745                 mv wx-config wx${TOOLCHAIN_NAME}-config
22746                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22747             fi
22748
22749             if test ! -d lib; then
22750               mkdir lib
22751             fi
22752             if test ! -d lib/wx; then
22753               mkdir lib/wx
22754             fi
22755             if test ! -d lib/wx/include; then
22756               mkdir lib/wx/include
22757             fi
22758             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22759               mkdir lib/wx/include/${TOOLCHAIN_NAME}
22760             fi
22761             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22762               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22763             fi
22764             if test -f setup.h; then
22765               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22766             fi
22767           
22768 exit 0
22769 EOF
22770 chmod +x $CONFIG_STATUS
22771 rm -fr confdefs* $ac_clean_files
22772 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22773
22774 if test "$no_recursion" != yes; then
22775
22776   # Remove --cache-file and --srcdir arguments so they do not pile up.
22777   ac_sub_configure_args=
22778   ac_prev=
22779   for ac_arg in $ac_configure_args; do
22780     if test -n "$ac_prev"; then
22781       ac_prev=
22782       continue
22783     fi
22784     case "$ac_arg" in
22785     -cache-file | --cache-file | --cache-fil | --cache-fi \
22786     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22787       ac_prev=cache_file ;;
22788     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22789     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22790       ;;
22791     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22792       ac_prev=srcdir ;;
22793     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22794       ;;
22795     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22796     esac
22797   done
22798
22799   for ac_config_dir in demos samples utils contrib; do
22800
22801     # Do not complain, so a configure script can configure whichever
22802     # parts of a large source tree are present.
22803     if test ! -d $srcdir/$ac_config_dir; then
22804       continue
22805     fi
22806
22807     echo configuring in $ac_config_dir
22808
22809     case "$srcdir" in
22810     .) ;;
22811     *)
22812       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22813       else
22814         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22815       fi
22816       ;;
22817     esac
22818
22819     ac_popdir=`pwd`
22820     cd $ac_config_dir
22821
22822       # A "../" for each directory in /$ac_config_dir.
22823       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22824
22825     case "$srcdir" in
22826     .) # No --srcdir option.  We are building in place.
22827       ac_sub_srcdir=$srcdir ;;
22828     /*) # Absolute path.
22829       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22830     *) # Relative path.
22831       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22832     esac
22833
22834     # Check for guested configure; otherwise get Cygnus style configure.
22835     if test -f $ac_sub_srcdir/configure; then
22836       ac_sub_configure=$ac_sub_srcdir/configure
22837     elif test -f $ac_sub_srcdir/configure.in; then
22838       ac_sub_configure=$ac_configure
22839     else
22840       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22841       ac_sub_configure=
22842     fi
22843
22844     # The recursion is here.
22845     if test -n "$ac_sub_configure"; then
22846
22847       # Make the cache file name correct relative to the subdirectory.
22848       case "$cache_file" in
22849       /*) ac_sub_cache_file=$cache_file ;;
22850       *) # Relative path.
22851         ac_sub_cache_file="$ac_dots$cache_file" ;;
22852       esac
22853   case "$ac_given_INSTALL" in
22854         [/$]*) INSTALL="$ac_given_INSTALL" ;;
22855         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22856         esac
22857
22858       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22859       # The eval makes quoting arguments work.
22860       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22861       then :
22862       else
22863         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22864       fi
22865     fi
22866
22867     cd $ac_popdir
22868   done
22869 fi
22870
22871
22872 echo
22873 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22874 echo ""
22875 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
22876
22877 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
22878 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
22879 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
22880
22881 echo "  What level of wxWindows compatibility should be enabled?"
22882 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
22883 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
22884 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
22885
22886 echo "  Which libraries should wxWindows use?"
22887 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
22888 echo "                                       png                ${wxUSE_LIBPNG-none}"
22889 echo "                                       regex              ${wxUSE_REGEX}"
22890 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
22891 echo "                                       zlib               ${wxUSE_ZLIB}"
22892
22893 echo ""
22894