added tests for fputwc() and wprintf()
[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 # Configure paths for GTK+
60 # Owen Taylor     1997-2001
61
62
63
64
65
66
67
68
69 # Configure paths for GTK+
70 # Owen Taylor     97-11-3
71
72
73
74 # Guess values for system-dependent variables and create Makefiles.
75 # Generated automatically using autoconf version 2.13 
76 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77 #
78 # This configure script is free software; the Free Software Foundation
79 # gives unlimited permission to copy, distribute and modify it.
80
81 # Defaults:
82 ac_help=
83 ac_default_prefix=/usr/local
84 # Any additions from configure.in:
85 ac_help="$ac_help
86   --enable-gui            use GUI classes"
87 ac_help="$ac_help
88   --enable-universal      use wxWindows GUI controls instead of native ones"
89 ac_help="$ac_help
90   --with-gtk              use GTK+"
91 ac_help="$ac_help
92   --with-motif            use Motif/Lesstif"
93 ac_help="$ac_help
94   --with-mac              use Mac OS X"
95 ac_help="$ac_help
96   --with-wine             use WINE"
97 ac_help="$ac_help
98   --with-msw              use MS-Windows"
99 ac_help="$ac_help
100   --with-pm               use OS/2 Presentation Manager"
101 ac_help="$ac_help
102   --with-mgl              use SciTech MGL"
103 ac_help="$ac_help
104   --with-microwin         use MicroWindows"
105 ac_help="$ac_help
106   --with-x11              use X11"
107 ac_help="$ac_help
108   --enable-nanox          use NanoX"
109 ac_help="$ac_help
110   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
111 ac_help="$ac_help
112   --with-libpng           use libpng (PNG image format)"
113 ac_help="$ac_help
114   --with-libjpeg          use libjpeg (JPEG file format)"
115 ac_help="$ac_help
116   --with-libtiff          use libtiff (TIFF file format)"
117 ac_help="$ac_help
118   --with-opengl           use OpenGL (or Mesa)"
119 ac_help="$ac_help
120   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
121 ac_help="$ac_help
122   --with-regex            enable support for wxRegEx class"
123 ac_help="$ac_help
124   --with-zlib             use zlib for LZW compression"
125 ac_help="$ac_help
126   --with-odbc             use the IODBC and wxODBC classes"
127 ac_help="$ac_help
128   --enable-shared         create shared library code"
129 ac_help="$ac_help
130   --enable-soname         set the DT_SONAME field in ELF shared libraries"
131 ac_help="$ac_help
132   --enable-optimise       create optimised code"
133 ac_help="$ac_help
134   --enable-debug          same as debug_flag and debug_info"
135 ac_help="$ac_help
136   --enable-precomp        enable use of precompiled headers (Mac OS X)"
137 ac_help="$ac_help
138   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
139 ac_help="$ac_help
140   --enable-debug_info     create code with debugging information"
141 ac_help="$ac_help
142   --enable-debug_gdb      create code with extra GDB debugging information"
143 ac_help="$ac_help
144   --enable-debug_cntxt    use wxDebugContext"
145 ac_help="$ac_help
146   --enable-mem_tracing    create code with memory tracing"
147 ac_help="$ac_help
148   --enable-profile        create code with profiling information"
149 ac_help="$ac_help
150   --enable-no_rtti        create code without RTTI information"
151 ac_help="$ac_help
152   --enable-no_exceptions  create code without C++ exceptions handling"
153 ac_help="$ac_help
154   --enable-permissive     compile code disregarding strict ANSI"
155 ac_help="$ac_help
156   --enable-no_deps        create code without dependency information"
157 ac_help="$ac_help
158   --enable-compat20       enable wxWindows 2.0 compatibility"
159 ac_help="$ac_help
160   --disable-compat22      disable wxWindows 2.2 compatibility"
161 ac_help="$ac_help
162   --enable-rpath=DIR      output the rpath flag from wx-config"
163 ac_help="$ac_help
164   --enable-intl           use internationalization system"
165 ac_help="$ac_help
166   --enable-config         use wxConfig (and derived) classes"
167 ac_help="$ac_help
168   --enable-protocols      use wxProtocol and derived classes"
169 ac_help="$ac_help
170   --enable-ftp            use wxFTP (requires wxProtocol"
171 ac_help="$ac_help
172   --enable-http           use wxHTTP (requires wxProtocol"
173 ac_help="$ac_help
174   --enable-fileproto      use wxFileProto class (requires wxProtocol"
175 ac_help="$ac_help
176   --enable-sockets        use socket/network classes"
177 ac_help="$ac_help
178   --enable-ipc            use interprocess communication (wxSocket etc.)"
179 ac_help="$ac_help
180   --enable-cmdline        use wxCmdLineParser class"
181 ac_help="$ac_help
182   --enable-datetime       use wxDateTime class"
183 ac_help="$ac_help
184   --enable-timedate       use obsolete wxDate/wxTime classes"
185 ac_help="$ac_help
186   --enable-stopwatch      use wxStopWatch class"
187 ac_help="$ac_help
188   --enable-dialupman      use dialup network classes"
189 ac_help="$ac_help
190   --enable-apple_ieee     use the Apple IEEE codec"
191 ac_help="$ac_help
192   --enable-timer          use wxTimer class"
193 ac_help="$ac_help
194   --enable-wave           use wxWave class"
195 ac_help="$ac_help
196   --enable-fraction       use wxFraction class"
197 ac_help="$ac_help
198   --enable-dynlib         use wxLibrary class for DLL loading"
199 ac_help="$ac_help
200   --enable-dynamicloader  use (new) wxDynamicLibrary class"
201 ac_help="$ac_help
202   --enable-longlong       use wxLongLong class"
203 ac_help="$ac_help
204   --enable-geometry       use geometry class"
205 ac_help="$ac_help
206   --enable-log            use logging system"
207 ac_help="$ac_help
208   --enable-streams        use wxStream etc classes"
209 ac_help="$ac_help
210   --enable-file           use wxFile classes"
211 ac_help="$ac_help
212   --enable-ffile          use wxFFile classes"
213 ac_help="$ac_help
214   --enable-textbuf        use wxTextBuffer class"
215 ac_help="$ac_help
216   --enable-textfile       use wxTextFile class"
217 ac_help="$ac_help
218   --enable-fontmap        use font encodings conversion classes"
219 ac_help="$ac_help
220   --enable-unicode        compile wxString with Unicode support"
221 ac_help="$ac_help
222   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
223 ac_help="$ac_help
224   --enable-wxprintfv      use wxWindows implementation of vprintf()"
225 ac_help="$ac_help
226   --enable-std_iostreams  use standard C++ stream classes"
227 ac_help="$ac_help
228   --enable-filesystem     use virtual file systems classes"
229 ac_help="$ac_help
230   --enable-fs_inet        use virtual HTTP/FTP filesystems"
231 ac_help="$ac_help
232   --enable-fs_zip         use virtual ZIP filesystems"
233 ac_help="$ac_help
234   --enable-zipstream      use wxZipInputStream"
235 ac_help="$ac_help
236   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
237 ac_help="$ac_help
238   --enable-snglinst       use wxSingleInstanceChecker class"
239 ac_help="$ac_help
240   --enable-mimetype       use wxMimeTypesManager"
241 ac_help="$ac_help
242   --enable-sysoptions     use wxSystemOptions"
243 ac_help="$ac_help
244   --enable-url            use wxURL class"
245 ac_help="$ac_help
246   --enable-protocol       use wxProtocol class"
247 ac_help="$ac_help
248   --enable-protocol-http  HTTP support in wxProtocol"
249 ac_help="$ac_help
250   --enable-protocol-ftp   FTP support in wxProtocol"
251 ac_help="$ac_help
252   --enable-protocol-file  FILE support in wxProtocol"
253 ac_help="$ac_help
254   --enable-threads        use threads"
255 ac_help="$ac_help
256   --enable-docview        use document view architecture"
257 ac_help="$ac_help
258   --enable-help           use help subsystem"
259 ac_help="$ac_help
260   --enable-mshtmlhelp     use MS HTML Help (win32)"
261 ac_help="$ac_help
262   --enable-html           use wxHTML sub-library"
263 ac_help="$ac_help
264   --enable-htmlhelp       use wxHTML-based help"
265 ac_help="$ac_help
266   --enable-constraints    use layout-constraints system"
267 ac_help="$ac_help
268   --enable-printarch      use printing architecture"
269 ac_help="$ac_help
270   --enable-mdi            use multiple document interface architecture"
271 ac_help="$ac_help
272   --enable-loggui         use standard GUI logger"
273 ac_help="$ac_help
274   --enable-logwin         use wxLogWindow"
275 ac_help="$ac_help
276   --enable-logdialog      use wxLogDialog"
277 ac_help="$ac_help
278   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
279 ac_help="$ac_help
280   --enable-prologio       use Prolog IO library"
281 ac_help="$ac_help
282   --enable-resources      use wxWindows resources"
283 ac_help="$ac_help
284   --enable-xresources     use X resources for save (default for gtk+)"
285 ac_help="$ac_help
286   --enable-clipboard      use wxClipboard classes"
287 ac_help="$ac_help
288   --enable-dnd            use Drag'n'Drop classes"
289 ac_help="$ac_help
290   --enable-metafile       use win32 metafiles"
291 ac_help="$ac_help
292   --enable-treelayout     use wxTreeLayout classes"
293 ac_help="$ac_help
294   --enable-controls       use all usual controls"
295 ac_help="$ac_help
296   --enable-accel          use accelerators"
297 ac_help="$ac_help
298   --enable-button         use wxButton class"
299 ac_help="$ac_help
300   --enable-bmpbutton      use wxBitmapButton class"
301 ac_help="$ac_help
302   --enable-calendar       use wxCalendarCtrl class"
303 ac_help="$ac_help
304   --enable-caret          use wxCaret class"
305 ac_help="$ac_help
306   --enable-checkbox       use wxCheckBox class"
307 ac_help="$ac_help
308   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
309 ac_help="$ac_help
310   --enable-choice         use wxChoice class"
311 ac_help="$ac_help
312   --enable-combobox       use wxComboBox classes"
313 ac_help="$ac_help
314   --enable-gauge          use wxGauge class"
315 ac_help="$ac_help
316   --enable-grid           use wxGrid class"
317 ac_help="$ac_help
318   --enable-newgrid        use new wxGrid class"
319 ac_help="$ac_help
320   --enable-imaglist       use wxImageList class"
321 ac_help="$ac_help
322   --enable-listbox        use wxListBox class"
323 ac_help="$ac_help
324   --enable-listctrl       use wxListCtrl class"
325 ac_help="$ac_help
326   --enable-notebook       use wxNotebook class"
327 ac_help="$ac_help
328   --enable-propsheet      use wxPropertySheet class"
329 ac_help="$ac_help
330   --enable-radiobox       use wxRadioBox class"
331 ac_help="$ac_help
332   --enable-radiobtn       use wxRadioButton class"
333 ac_help="$ac_help
334   --enable-sash           use wxSashWindow class"
335 ac_help="$ac_help
336   --enable-scrollbar      use wxScrollBar class and scrollable windows"
337 ac_help="$ac_help
338   --enable-slider         use wxSlider class"
339 ac_help="$ac_help
340   --enable-spinbtn        use wxSpinButton class"
341 ac_help="$ac_help
342   --enable-spinctrl       use wxSpinCtrl class"
343 ac_help="$ac_help
344   --enable-splitter       use wxSplitterWindow class"
345 ac_help="$ac_help
346   --enable-statbmp        use wxStaticBitmap class"
347 ac_help="$ac_help
348   --enable-statbox        use wxStaticBox class"
349 ac_help="$ac_help
350   --enable-statline       use wxStaticLine class"
351 ac_help="$ac_help
352   --enable-stattext       use wxStaticText class"
353 ac_help="$ac_help
354   --enable-statusbar      use wxStatusBar class"
355 ac_help="$ac_help
356   --enable-tabdialog      use wxTabControl class"
357 ac_help="$ac_help
358   --enable-textctrl       use wxTextCtrl class"
359 ac_help="$ac_help
360   --enable-togglebtn      use wxToggleButton class"
361 ac_help="$ac_help
362   --enable-toolbar        use wxToolBar class"
363 ac_help="$ac_help
364   --enable-tbarnative     use native wxToolBar class"
365 ac_help="$ac_help
366   --enable-tbarsmpl       use wxToolBarSimple class"
367 ac_help="$ac_help
368   --enable-treectrl       use wxTreeCtrl class"
369 ac_help="$ac_help
370   --enable-tipwindow      use wxTipWindow class"
371 ac_help="$ac_help
372   --enable-popupwin       use wxPopUpWindow class"
373 ac_help="$ac_help
374   --enable-commondlg      use all common dialogs"
375 ac_help="$ac_help
376   --enable-choicedlg      use wxChoiceDialog"
377 ac_help="$ac_help
378   --enable-coldlg         use wxColourDialog"
379 ac_help="$ac_help
380   --enable-filedlg        use wxFileDialog"
381 ac_help="$ac_help
382   --enable-finddlg        use wxFindReplaceDialog"
383 ac_help="$ac_help
384   --enable-fontdlg        use wxFontDialog"
385 ac_help="$ac_help
386   --enable-dirdlg         use wxDirDialog"
387 ac_help="$ac_help
388   --enable-msgdlg         use wxMessageDialog"
389 ac_help="$ac_help
390   --enable-numberdlg      use wxNumberEntryDialog"
391 ac_help="$ac_help
392   --enable-splash         use wxSplashScreen"
393 ac_help="$ac_help
394   --enable-textdlg        use wxTextDialog"
395 ac_help="$ac_help
396   --enable-tipdlg         use startup tips"
397 ac_help="$ac_help
398   --enable-progressdlg    use wxProgressDialog"
399 ac_help="$ac_help
400   --enable-wizarddlg      use wxWizard"
401 ac_help="$ac_help
402   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
403 ac_help="$ac_help
404   --enable-miniframe      use wxMiniFrame class"
405 ac_help="$ac_help
406   --enable-tooltips       use wxToolTip class"
407 ac_help="$ac_help
408   --enable-splines        use spline drawing code"
409 ac_help="$ac_help
410   --enable-validators     use wxValidator and derived classes"
411 ac_help="$ac_help
412   --enable-busyinfo       use wxBusyInfo"
413 ac_help="$ac_help
414   --enable-joystick       use wxJoystick (Linux only)"
415 ac_help="$ac_help
416   --enable-metafiles      use wxMetaFile (Windows only)"
417 ac_help="$ac_help
418   --enable-dragimage      use wxDragImage"
419 ac_help="$ac_help
420   --enable-palette        use wxPalette class"
421 ac_help="$ac_help
422   --enable-image          use wxImage class"
423 ac_help="$ac_help
424   --enable-gif            use gif images (GIF file format)"
425 ac_help="$ac_help
426   --enable-pcx            use pcx images (PCX file format)"
427 ac_help="$ac_help
428   --enable-iff            use iff images (IFF file format)"
429 ac_help="$ac_help
430   --enable-pnm            use pnm images (PNM file format)"
431 ac_help="$ac_help
432   --enable-xpm            use xpm images (XPM file format)"
433 ac_help="$ac_help
434   --enable-icocur         use Windows ICO and CUR formats"
435 ac_help="$ac_help
436   --disable-largefile     omit support for large files"
437 ac_help="$ac_help
438   --disable-gtktest       do not try to compile and run a test GTK+ program"
439 ac_help="$ac_help
440   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
441 ac_help="$ac_help
442   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
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-x                use the X Window System"
453 ac_help="$ac_help
454   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
455
456 # Initialize some variables set by options.
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
459 build=NONE
460 cache_file=./config.cache
461 exec_prefix=NONE
462 host=NONE
463 no_create=
464 nonopt=NONE
465 no_recursion=
466 prefix=NONE
467 program_prefix=NONE
468 program_suffix=NONE
469 program_transform_name=s,x,x,
470 silent=
471 site=
472 srcdir=
473 target=NONE
474 verbose=
475 x_includes=NONE
476 x_libraries=NONE
477 bindir='${exec_prefix}/bin'
478 sbindir='${exec_prefix}/sbin'
479 libexecdir='${exec_prefix}/libexec'
480 datadir='${prefix}/share'
481 sysconfdir='${prefix}/etc'
482 sharedstatedir='${prefix}/com'
483 localstatedir='${prefix}/var'
484 libdir='${exec_prefix}/lib'
485 includedir='${prefix}/include'
486 oldincludedir='/usr/include'
487 infodir='${prefix}/info'
488 mandir='${prefix}/man'
489
490 # Initialize some other variables.
491 subdirs=
492 MFLAGS= MAKEFLAGS=
493 SHELL=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 ac_max_here_lines=12
496
497 ac_prev=
498 for ac_option
499 do
500
501   # If the previous option needs an argument, assign it.
502   if test -n "$ac_prev"; then
503     eval "$ac_prev=\$ac_option"
504     ac_prev=
505     continue
506   fi
507
508   case "$ac_option" in
509   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
510   *) ac_optarg= ;;
511   esac
512
513   # Accept the important Cygnus configure options, so we can diagnose typos.
514
515   case "$ac_option" in
516
517   -bindir | --bindir | --bindi | --bind | --bin | --bi)
518     ac_prev=bindir ;;
519   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520     bindir="$ac_optarg" ;;
521
522   -build | --build | --buil | --bui | --bu)
523     ac_prev=build ;;
524   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525     build="$ac_optarg" ;;
526
527   -cache-file | --cache-file | --cache-fil | --cache-fi \
528   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529     ac_prev=cache_file ;;
530   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532     cache_file="$ac_optarg" ;;
533
534   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535     ac_prev=datadir ;;
536   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537   | --da=*)
538     datadir="$ac_optarg" ;;
539
540   -disable-* | --disable-*)
541     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
542     # Reject names that are not valid shell variable names.
543     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
544       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
545     fi
546     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
547     eval "enable_${ac_feature}=no" ;;
548
549   -enable-* | --enable-*)
550     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
551     # Reject names that are not valid shell variable names.
552     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
553       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554     fi
555     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556     case "$ac_option" in
557       *=*) ;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "enable_${ac_feature}='$ac_optarg'" ;;
561
562   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564   | --exec | --exe | --ex)
565     ac_prev=exec_prefix ;;
566   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568   | --exec=* | --exe=* | --ex=*)
569     exec_prefix="$ac_optarg" ;;
570
571   -gas | --gas | --ga | --g)
572     # Obsolete; use --with-gas.
573     with_gas=yes ;;
574
575   -help | --help | --hel | --he)
576     # Omit some internal or obsolete options to make the list less imposing.
577     # This message is too long to be a string in the A/UX 3.1 sh.
578     cat << EOF
579 Usage: configure [options] [host]
580 Options: [defaults in brackets after descriptions]
581 Configuration:
582   --cache-file=FILE       cache test results in FILE
583   --help                  print this message
584   --no-create             do not create output files
585   --quiet, --silent       do not print \`checking...' messages
586   --version               print the version of autoconf that created configure
587 Directory and file names:
588   --prefix=PREFIX         install architecture-independent files in PREFIX
589                           [$ac_default_prefix]
590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
591                           [same as prefix]
592   --bindir=DIR            user executables in DIR [EPREFIX/bin]
593   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
594   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
595   --datadir=DIR           read-only architecture-independent data in DIR
596                           [PREFIX/share]
597   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
598   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
599                           [PREFIX/com]
600   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
601   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
602   --includedir=DIR        C header files in DIR [PREFIX/include]
603   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
604   --infodir=DIR           info documentation in DIR [PREFIX/info]
605   --mandir=DIR            man documentation in DIR [PREFIX/man]
606   --srcdir=DIR            find the sources in DIR [configure dir or ..]
607   --program-prefix=PREFIX prepend PREFIX to installed program names
608   --program-suffix=SUFFIX append SUFFIX to installed program names
609   --program-transform-name=PROGRAM
610                           run sed PROGRAM on installed program names
611 EOF
612     cat << EOF
613 Host type:
614   --build=BUILD           configure for building on BUILD [BUILD=HOST]
615   --host=HOST             configure for HOST [guessed]
616   --target=TARGET         configure for TARGET [TARGET=HOST]
617 Features and packages:
618   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
619   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
620   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
621   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
622   --x-includes=DIR        X include files are in DIR
623   --x-libraries=DIR       X library files are in DIR
624 EOF
625     if test -n "$ac_help"; then
626       echo "--enable and --with options recognized:$ac_help"
627     fi
628     exit 0 ;;
629
630   -host | --host | --hos | --ho)
631     ac_prev=host ;;
632   -host=* | --host=* | --hos=* | --ho=*)
633     host="$ac_optarg" ;;
634
635   -includedir | --includedir | --includedi | --included | --include \
636   | --includ | --inclu | --incl | --inc)
637     ac_prev=includedir ;;
638   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
639   | --includ=* | --inclu=* | --incl=* | --inc=*)
640     includedir="$ac_optarg" ;;
641
642   -infodir | --infodir | --infodi | --infod | --info | --inf)
643     ac_prev=infodir ;;
644   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
645     infodir="$ac_optarg" ;;
646
647   -libdir | --libdir | --libdi | --libd)
648     ac_prev=libdir ;;
649   -libdir=* | --libdir=* | --libdi=* | --libd=*)
650     libdir="$ac_optarg" ;;
651
652   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
653   | --libexe | --libex | --libe)
654     ac_prev=libexecdir ;;
655   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
656   | --libexe=* | --libex=* | --libe=*)
657     libexecdir="$ac_optarg" ;;
658
659   -localstatedir | --localstatedir | --localstatedi | --localstated \
660   | --localstate | --localstat | --localsta | --localst \
661   | --locals | --local | --loca | --loc | --lo)
662     ac_prev=localstatedir ;;
663   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
664   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
665   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
666     localstatedir="$ac_optarg" ;;
667
668   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
669     ac_prev=mandir ;;
670   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
671     mandir="$ac_optarg" ;;
672
673   -nfp | --nfp | --nf)
674     # Obsolete; use --without-fp.
675     with_fp=no ;;
676
677   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
678   | --no-cr | --no-c)
679     no_create=yes ;;
680
681   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
682   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
683     no_recursion=yes ;;
684
685   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
686   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
687   | --oldin | --oldi | --old | --ol | --o)
688     ac_prev=oldincludedir ;;
689   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
690   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
691   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
692     oldincludedir="$ac_optarg" ;;
693
694   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
695     ac_prev=prefix ;;
696   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
697     prefix="$ac_optarg" ;;
698
699   -program-prefix | --program-prefix | --program-prefi | --program-pref \
700   | --program-pre | --program-pr | --program-p)
701     ac_prev=program_prefix ;;
702   -program-prefix=* | --program-prefix=* | --program-prefi=* \
703   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
704     program_prefix="$ac_optarg" ;;
705
706   -program-suffix | --program-suffix | --program-suffi | --program-suff \
707   | --program-suf | --program-su | --program-s)
708     ac_prev=program_suffix ;;
709   -program-suffix=* | --program-suffix=* | --program-suffi=* \
710   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
711     program_suffix="$ac_optarg" ;;
712
713   -program-transform-name | --program-transform-name \
714   | --program-transform-nam | --program-transform-na \
715   | --program-transform-n | --program-transform- \
716   | --program-transform | --program-transfor \
717   | --program-transfo | --program-transf \
718   | --program-trans | --program-tran \
719   | --progr-tra | --program-tr | --program-t)
720     ac_prev=program_transform_name ;;
721   -program-transform-name=* | --program-transform-name=* \
722   | --program-transform-nam=* | --program-transform-na=* \
723   | --program-transform-n=* | --program-transform-=* \
724   | --program-transform=* | --program-transfor=* \
725   | --program-transfo=* | --program-transf=* \
726   | --program-trans=* | --program-tran=* \
727   | --progr-tra=* | --program-tr=* | --program-t=*)
728     program_transform_name="$ac_optarg" ;;
729
730   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
731   | -silent | --silent | --silen | --sile | --sil)
732     silent=yes ;;
733
734   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
735     ac_prev=sbindir ;;
736   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
737   | --sbi=* | --sb=*)
738     sbindir="$ac_optarg" ;;
739
740   -sharedstatedir | --sharedstatedir | --sharedstatedi \
741   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
742   | --sharedst | --shareds | --shared | --share | --shar \
743   | --sha | --sh)
744     ac_prev=sharedstatedir ;;
745   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
746   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
747   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
748   | --sha=* | --sh=*)
749     sharedstatedir="$ac_optarg" ;;
750
751   -site | --site | --sit)
752     ac_prev=site ;;
753   -site=* | --site=* | --sit=*)
754     site="$ac_optarg" ;;
755
756   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
757     ac_prev=srcdir ;;
758   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
759     srcdir="$ac_optarg" ;;
760
761   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
762   | --syscon | --sysco | --sysc | --sys | --sy)
763     ac_prev=sysconfdir ;;
764   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
765   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
766     sysconfdir="$ac_optarg" ;;
767
768   -target | --target | --targe | --targ | --tar | --ta | --t)
769     ac_prev=target ;;
770   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
771     target="$ac_optarg" ;;
772
773   -v | -verbose | --verbose | --verbos | --verbo | --verb)
774     verbose=yes ;;
775
776   -version | --version | --versio | --versi | --vers)
777     echo "configure generated by autoconf version 2.13"
778     exit 0 ;;
779
780   -with-* | --with-*)
781     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
782     # Reject names that are not valid shell variable names.
783     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
784       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
785     fi
786     ac_package=`echo $ac_package| sed 's/-/_/g'`
787     case "$ac_option" in
788       *=*) ;;
789       *) ac_optarg=yes ;;
790     esac
791     eval "with_${ac_package}='$ac_optarg'" ;;
792
793   -without-* | --without-*)
794     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
795     # Reject names that are not valid shell variable names.
796     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
797       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
798     fi
799     ac_package=`echo $ac_package| sed 's/-/_/g'`
800     eval "with_${ac_package}=no" ;;
801
802   --x)
803     # Obsolete; use --with-x.
804     with_x=yes ;;
805
806   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
807   | --x-incl | --x-inc | --x-in | --x-i)
808     ac_prev=x_includes ;;
809   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
810   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
811     x_includes="$ac_optarg" ;;
812
813   -x-libraries | --x-libraries | --x-librarie | --x-librari \
814   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
815     ac_prev=x_libraries ;;
816   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
817   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
818     x_libraries="$ac_optarg" ;;
819
820   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
821     ;;
822
823   *)
824     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
825       echo "configure: warning: $ac_option: invalid host type" 1>&2
826     fi
827     if test "x$nonopt" != xNONE; then
828       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
829     fi
830     nonopt="$ac_option"
831     ;;
832
833   esac
834 done
835
836 if test -n "$ac_prev"; then
837   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
838 fi
839
840 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
841
842 # File descriptor usage:
843 # 0 standard input
844 # 1 file creation
845 # 2 errors and warnings
846 # 3 some systems may open it to /dev/tty
847 # 4 used on the Kubota Titan
848 # 6 checking for... messages and results
849 # 5 compiler messages saved in config.log
850 if test "$silent" = yes; then
851   exec 6>/dev/null
852 else
853   exec 6>&1
854 fi
855 exec 5>./config.log
856
857 echo "\
858 This file contains any messages produced by compilers while
859 running configure, to aid debugging if configure makes a mistake.
860 " 1>&5
861
862 # Strip out --no-create and --no-recursion so they do not pile up.
863 # Also quote any args containing shell metacharacters.
864 ac_configure_args=
865 for ac_arg
866 do
867   case "$ac_arg" in
868   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869   | --no-cr | --no-c) ;;
870   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
873   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
874   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
875   esac
876 done
877
878 # NLS nuisances.
879 # Only set these to C if already set.  These must not be set unconditionally
880 # because not all systems understand e.g. LANG=C (notably SCO).
881 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
882 # Non-C LC_CTYPE values break the ctype check.
883 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
884 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
885 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
886 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
887
888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
889 rm -rf conftest* confdefs.h
890 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
891 echo > confdefs.h
892
893 # A filename unique to this package, relative to the directory that
894 # configure is in, which we can look for to find out if srcdir is correct.
895 ac_unique_file=wx-config.in
896
897 # Find the source files, if location was not specified.
898 if test -z "$srcdir"; then
899   ac_srcdir_defaulted=yes
900   # Try the directory containing this script, then its parent.
901   ac_prog=$0
902   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
903   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
904   srcdir=$ac_confdir
905   if test ! -r $srcdir/$ac_unique_file; then
906     srcdir=..
907   fi
908 else
909   ac_srcdir_defaulted=no
910 fi
911 if test ! -r $srcdir/$ac_unique_file; then
912   if test "$ac_srcdir_defaulted" = yes; then
913     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
914   else
915     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
916   fi
917 fi
918 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
919
920 # Prefer explicitly selected file to automatically selected ones.
921 if test -z "$CONFIG_SITE"; then
922   if test "x$prefix" != xNONE; then
923     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
924   else
925     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
926   fi
927 fi
928 for ac_site_file in $CONFIG_SITE; do
929   if test -r "$ac_site_file"; then
930     echo "loading site script $ac_site_file"
931     . "$ac_site_file"
932   fi
933 done
934
935 if test -r "$cache_file"; then
936   echo "loading cache $cache_file"
937   . $cache_file
938 else
939   echo "creating cache $cache_file"
940   > $cache_file
941 fi
942
943 ac_ext=c
944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945 ac_cpp='$CPP $CPPFLAGS'
946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948 cross_compiling=$ac_cv_prog_cc_cross
949
950 ac_exeext=
951 ac_objext=o
952 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
953   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
954   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
955     ac_n= ac_c='
956 ' ac_t='        '
957   else
958     ac_n=-n ac_c= ac_t=
959   fi
960 else
961   ac_n= ac_c='\c' ac_t=
962 fi
963
964
965
966 ac_aux_dir=
967 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968   if test -f $ac_dir/install-sh; then
969     ac_aux_dir=$ac_dir
970     ac_install_sh="$ac_aux_dir/install-sh -c"
971     break
972   elif test -f $ac_dir/install.sh; then
973     ac_aux_dir=$ac_dir
974     ac_install_sh="$ac_aux_dir/install.sh -c"
975     break
976   fi
977 done
978 if test -z "$ac_aux_dir"; then
979   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
980 fi
981 ac_config_guess=$ac_aux_dir/config.guess
982 ac_config_sub=$ac_aux_dir/config.sub
983 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
984
985
986 # Do some error checking and defaulting for the host and target type.
987 # The inputs are:
988 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
989 #
990 # The rules are:
991 # 1. You are not allowed to specify --host, --target, and nonopt at the
992 #    same time.
993 # 2. Host defaults to nonopt.
994 # 3. If nonopt is not specified, then host defaults to the current host,
995 #    as determined by config.guess.
996 # 4. Target and build default to nonopt.
997 # 5. If nonopt is not specified, then target and build default to host.
998
999 # The aliases save the names the user supplied, while $host etc.
1000 # will get canonicalized.
1001 case $host---$target---$nonopt in
1002 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1003 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004 esac
1005
1006
1007 # Make sure we can run config.sub.
1008 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1009 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1010 fi
1011
1012 echo $ac_n "checking host system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking host system type" >&5
1014
1015 host_alias=$host
1016 case "$host_alias" in
1017 NONE)
1018   case $nonopt in
1019   NONE)
1020     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1021     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1022     fi ;;
1023   *) host_alias=$nonopt ;;
1024   esac ;;
1025 esac
1026
1027 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1028 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$host" 1>&6
1032
1033 echo $ac_n "checking target system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking target system type" >&5
1035
1036 target_alias=$target
1037 case "$target_alias" in
1038 NONE)
1039   case $nonopt in
1040   NONE) target_alias=$host_alias ;;
1041   *) target_alias=$nonopt ;;
1042   esac ;;
1043 esac
1044
1045 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1046 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$target" 1>&6
1050
1051 echo $ac_n "checking build system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking build system type" >&5
1053
1054 build_alias=$build
1055 case "$build_alias" in
1056 NONE)
1057   case $nonopt in
1058   NONE) build_alias=$host_alias ;;
1059   *) build_alias=$nonopt ;;
1060   esac ;;
1061 esac
1062
1063 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$build" 1>&6
1068
1069 test "$host_alias" != "$target_alias" &&
1070   test "$program_prefix$program_suffix$program_transform_name" = \
1071     NONENONEs,x,x, &&
1072   program_prefix=${target_alias}-
1073
1074
1075
1076 WX_MAJOR_VERSION_NUMBER=2
1077 WX_MINOR_VERSION_NUMBER=3
1078 WX_RELEASE_NUMBER=3
1079
1080 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1081 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1082
1083 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1084
1085 WX_CURRENT=2
1086 WX_REVISION=0
1087 WX_AGE=0
1088
1089
1090
1091 USE_UNIX=1
1092 USE_WIN32=0
1093 USE_DOS=0
1094 USE_BEOS=0
1095 USE_MAC=0
1096
1097 USE_LINUX=
1098 USE_SGI=
1099 USE_HPUX=
1100 USE_SYSV=
1101 USE_SVR4=
1102 USE_AIX=
1103 USE_SUN=
1104 USE_SOLARIS=
1105 USE_SUNOS=
1106 USE_ALPHA=
1107 USE_OSF=
1108 USE_BSD=
1109 USE_DARWIN=
1110 USE_FREEBSD=
1111 USE_OPENBSD=
1112 USE_NETBSD=
1113 USE_VMS=
1114 USE_ULTRIX=
1115 USE_DATA_GENERAL=
1116
1117 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1118
1119 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1120
1121 DEFAULT_wxUSE_GTK=0
1122 DEFAULT_wxUSE_MAC=0
1123 DEFAULT_wxUSE_MGL=0
1124 DEFAULT_wxUSE_MICROWIN=0
1125 DEFAULT_wxUSE_MOTIF=0
1126 DEFAULT_wxUSE_MSW=0
1127 DEFAULT_wxUSE_PM=0
1128 DEFAULT_wxUSE_WINE=0
1129 DEFAULT_wxUSE_X11=0
1130
1131 DEFAULT_DEFAULT_wxUSE_GTK=0
1132 DEFAULT_DEFAULT_wxUSE_MAC=0
1133 DEFAULT_DEFAULT_wxUSE_MGL=0
1134 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1136 DEFAULT_DEFAULT_wxUSE_MSW=0
1137 DEFAULT_DEFAULT_wxUSE_PM=0
1138 DEFAULT_DEFAULT_wxUSE_WINE=0
1139 DEFAULT_DEFAULT_wxUSE_X11=0
1140
1141 PROGRAM_EXT=
1142 SO_SUFFIX=so
1143
1144 case "${host}" in
1145   *-hp-hpux* )
1146     USE_HPUX=1
1147     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1148     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1149     SO_SUFFIX=sl
1150     cat >> confdefs.h <<\EOF
1151 #define __HPUX__ 1
1152 EOF
1153
1154   ;;
1155   *-*-linux* )
1156     USE_LINUX=1
1157     cat >> confdefs.h <<\EOF
1158 #define __LINUX__ 1
1159 EOF
1160
1161     TMP=`uname -m`
1162     if test "x$TMP" = "xalpha"; then
1163       USE_ALPHA=1
1164       cat >> confdefs.h <<\EOF
1165 #define __ALPHA__ 1
1166 EOF
1167
1168     fi
1169     DEFAULT_DEFAULT_wxUSE_GTK=1
1170   ;;
1171   *-*-irix5* | *-*-irix6* )
1172     USE_SGI=1
1173     USE_SVR4=1
1174     cat >> confdefs.h <<\EOF
1175 #define __SGI__ 1
1176 EOF
1177
1178     cat >> confdefs.h <<\EOF
1179 #define __SVR4__ 1
1180 EOF
1181
1182     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183   ;;
1184   *-*-solaris2* )
1185     USE_SUN=1
1186     USE_SOLARIS=1
1187     USE_SVR4=1
1188     cat >> confdefs.h <<\EOF
1189 #define __SUN__ 1
1190 EOF
1191
1192     cat >> confdefs.h <<\EOF
1193 #define __SOLARIS__ 1
1194 EOF
1195
1196     cat >> confdefs.h <<\EOF
1197 #define __SVR4__ 1
1198 EOF
1199
1200     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1201     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1202   ;;
1203   *-*-sunos4* )
1204     USE_SUN=1
1205     USE_SUNOS=1
1206     USE_BSD=1
1207     cat >> confdefs.h <<\EOF
1208 #define __SUN__ 1
1209 EOF
1210
1211     cat >> confdefs.h <<\EOF
1212 #define __SUNOS__ 1
1213 EOF
1214
1215     cat >> confdefs.h <<\EOF
1216 #define __BSD__ 1
1217 EOF
1218
1219     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1220   ;;
1221   *-*-freebsd*)
1222     USE_BSD=1
1223     USE_FREEBSD=1
1224     cat >> confdefs.h <<\EOF
1225 #define __FREEBSD__ 1
1226 EOF
1227
1228     cat >> confdefs.h <<\EOF
1229 #define __BSD__ 1
1230 EOF
1231
1232     DEFAULT_DEFAULT_wxUSE_GTK=1
1233   ;;
1234   *-*-openbsd*)
1235     USE_BSD=1
1236     USE_OPENBSD=1
1237     cat >> confdefs.h <<\EOF
1238 #define __FREEBSD__ 1
1239 EOF
1240
1241     cat >> confdefs.h <<\EOF
1242 #define __OPENBSD__ 1
1243 EOF
1244
1245     DEFAULT_DEFAULT_wxUSE_GTK=1
1246   ;;
1247   *-*-netbsd*)
1248     USE_BSD=1
1249     USE_NETBSD=1
1250     cat >> confdefs.h <<\EOF
1251 #define __FREEBSD__ 1
1252 EOF
1253
1254     cat >> confdefs.h <<\EOF
1255 #define __NETBSD__ 1
1256 EOF
1257
1258     DEFAULT_DEFAULT_wxUSE_GTK=1
1259   ;;
1260   *-*-osf* )
1261     USE_ALPHA=1
1262     USE_OSF=1
1263     cat >> confdefs.h <<\EOF
1264 #define __ALPHA__ 1
1265 EOF
1266
1267     cat >> confdefs.h <<\EOF
1268 #define __OSF__ 1
1269 EOF
1270
1271     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1273   ;;
1274   *-*-dgux5* )
1275     USE_ALPHA=1
1276     USE_SVR4=1
1277     cat >> confdefs.h <<\EOF
1278 #define __ALPHA__ 1
1279 EOF
1280
1281     cat >> confdefs.h <<\EOF
1282 #define __SVR4__ 1
1283 EOF
1284
1285     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1286   ;;
1287   *-*-sysv5* )
1288     USE_SYSV=1
1289     USE_SVR4=1
1290     cat >> confdefs.h <<\EOF
1291 #define __SYSV__ 1
1292 EOF
1293
1294     cat >> confdefs.h <<\EOF
1295 #define __SVR4__ 1
1296 EOF
1297
1298     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1299   ;;
1300   *-*-aix* )
1301     USE_AIX=1
1302     USE_SYSV=1
1303     USE_SVR4=1
1304             SO_SUFFIX=a
1305     cat >> confdefs.h <<\EOF
1306 #define __AIX__ 1
1307 EOF
1308
1309     cat >> confdefs.h <<\EOF
1310 #define __SYSV__ 1
1311 EOF
1312
1313     cat >> confdefs.h <<\EOF
1314 #define __SVR4__ 1
1315 EOF
1316
1317     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1318   ;;
1319
1320   *-*-cygwin* | *-*-mingw32* )
1321                 SO_SUFFIX=dll
1322     PROGRAM_EXT=".exe"
1323     RESCOMP=windres
1324     DEFAULT_DEFAULT_wxUSE_MSW=1
1325   ;;
1326
1327   *-pc-msdosdjgpp )
1328     USE_UNIX=0
1329     USE_DOS=1
1330     cat >> confdefs.h <<\EOF
1331 #define __DOS__ 1
1332 EOF
1333
1334     PROGRAM_EXT=".exe"
1335     DEFAULT_DEFAULT_wxUSE_MGL=1
1336         LIBS="$LIBS -lstdc++"
1337   ;;
1338
1339   *-pc-os2_emx | *-pc-os2-emx )
1340     cat >> confdefs.h <<\EOF
1341 #define __EMX__ 1
1342 EOF
1343
1344     PROGRAM_EXT=".exe"
1345     DEFAULT_DEFAULT_wxUSE_PM=1
1346     LIBS="$LIBS -lstdcpp"
1347   ;;
1348
1349   powerpc-*-darwin* )
1350         USE_BSD=1
1351     USE_DARWIN=1
1352     SO_SUFFIX=dylib
1353     cat >> confdefs.h <<\EOF
1354 #define __BSD__ 1
1355 EOF
1356
1357     cat >> confdefs.h <<\EOF
1358 #define __DARWIN__ 1
1359 EOF
1360
1361     cat >> confdefs.h <<\EOF
1362 #define __POWERPC__ 1
1363 EOF
1364
1365     DEFAULT_DEFAULT_wxUSE_MAC=1
1366   ;;
1367
1368   *-*-beos* )
1369         USE_BEOS=1
1370     cat >> confdefs.h <<\EOF
1371 #define __BEOS__ 1
1372 EOF
1373
1374   ;;
1375
1376   *)
1377     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1378 esac
1379
1380
1381
1382
1383           wx_arg_cache_file="configarg.cache"
1384           echo "loading argument cache $wx_arg_cache_file"
1385           rm -f ${wx_arg_cache_file}.tmp
1386           touch ${wx_arg_cache_file}.tmp
1387           touch ${wx_arg_cache_file}
1388         
1389
1390 DEBUG_CONFIGURE=0
1391 if test $DEBUG_CONFIGURE = 1; then
1392   DEFAULT_wxUSE_UNIVERSAL=no
1393
1394   DEFAULT_wxUSE_NANOX=no
1395
1396   DEFAULT_wxUSE_THREADS=yes
1397
1398   DEFAULT_wxUSE_SHARED=yes
1399   DEFAULT_wxUSE_SONAME=no
1400   DEFAULT_wxUSE_OPTIMISE=no
1401   DEFAULT_wxUSE_PROFILE=no
1402   DEFAULT_wxUSE_NO_DEPS=no
1403   DEFAULT_wxUSE_NO_RTTI=no
1404   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1405   DEFAULT_wxUSE_PERMISSIVE=no
1406   DEFAULT_wxUSE_DEBUG_FLAG=yes
1407   DEFAULT_wxUSE_DEBUG_INFO=yes
1408   DEFAULT_wxUSE_DEBUG_GDB=yes
1409   DEFAULT_wxUSE_MEM_TRACING=no
1410   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1411   DEFAULT_wxUSE_DMALLOC=no
1412   DEFAULT_wxUSE_PRECOMP=no
1413   DEFAULT_wxUSE_APPLE_IEEE=no
1414
1415   DEFAULT_wxUSE_LOG=yes
1416   DEFAULT_wxUSE_LOGWINDOW=no
1417   DEFAULT_wxUSE_LOGGUI=no
1418   DEFAULT_wxUSE_LOGDIALOG=no
1419
1420   DEFAULT_wxUSE_GUI=yes
1421   DEFAULT_wxUSE_CONTROLS=no
1422
1423   DEFAULT_wxUSE_REGEX=no
1424   DEFAULT_wxUSE_ZLIB=no
1425   DEFAULT_wxUSE_LIBPNG=no
1426   DEFAULT_wxUSE_LIBJPEG=no
1427   DEFAULT_wxUSE_LIBTIFF=no
1428   DEFAULT_wxUSE_ODBC=no
1429   DEFAULT_wxUSE_OPENGL=no
1430
1431   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1432   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1433   DEFAULT_wxUSE_STD_IOSTREAM=no
1434   DEFAULT_wxUSE_CMDLINE_PARSER=no
1435   DEFAULT_wxUSE_DATETIME=no
1436   DEFAULT_wxUSE_TIMEDATE=no
1437   DEFAULT_wxUSE_TIMER=no
1438   DEFAULT_wxUSE_STOPWATCH=no
1439   DEFAULT_wxUSE_FILE=no
1440   DEFAULT_wxUSE_FFILE=no
1441   DEFAULT_wxUSE_TEXTBUFFER=no
1442   DEFAULT_wxUSE_TEXTFILE=no
1443   DEFAULT_wxUSE_WAVE=no
1444   DEFAULT_wxUSE_INTL=no
1445   DEFAULT_wxUSE_CONFIG=no
1446   DEFAULT_wxUSE_FONTMAP=no
1447   DEFAULT_wxUSE_STREAMS=no
1448   DEFAULT_wxUSE_SOCKETS=no
1449   DEFAULT_wxUSE_DIALUP_MANAGER=no
1450   DEFAULT_wxUSE_JOYSTICK=no
1451   DEFAULT_wxUSE_DYNLIB_CLASS=no
1452   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1453   DEFAULT_wxUSE_LONGLONG=no
1454   DEFAULT_wxUSE_GEOMETRY=no
1455
1456   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1457   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1458   DEFAULT_wxUSE_POSTSCRIPT=no
1459
1460   DEFAULT_wxUSE_X_RESOURCES=no
1461   DEFAULT_wxUSE_CLIPBOARD=no
1462   DEFAULT_wxUSE_TOOLTIPS=no
1463   DEFAULT_wxUSE_DRAG_AND_DROP=no
1464   DEFAULT_wxUSE_DRAGIMAGE=no
1465   DEFAULT_wxUSE_SPLINES=no
1466
1467   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1468   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1469   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1470
1471   DEFAULT_wxUSE_PROLOGIO=no
1472   DEFAULT_wxUSE_RESOURCES=no
1473   DEFAULT_wxUSE_CONSTRAINTS=no
1474   DEFAULT_wxUSE_IPC=no
1475   DEFAULT_wxUSE_HELP=no
1476   DEFAULT_wxUSE_MS_HTML_HELP=no
1477   DEFAULT_wxUSE_WXHTML_HELP=no
1478   DEFAULT_wxUSE_TREELAYOUT=no
1479   DEFAULT_wxUSE_METAFILE=no
1480   DEFAULT_wxUSE_MIMETYPE=no
1481   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1482   DEFAULT_wxUSE_PROTOCOL=no
1483   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1484   DEFAULT_wxUSE_PROTOCOL_FTP=no
1485   DEFAULT_wxUSE_PROTOCOL_FILE=no
1486   DEFAULT_wxUSE_URL=no
1487
1488   DEFAULT_wxUSE_COMMONDLGS=no
1489   DEFAULT_wxUSE_CHOICEDLG=no
1490   DEFAULT_wxUSE_COLOURDLG=no
1491   DEFAULT_wxUSE_DIRDLG=no
1492   DEFAULT_wxUSE_FILEDLG=no
1493   DEFAULT_wxUSE_FINDREPLDLG=no
1494   DEFAULT_wxUSE_FONTDLG=no
1495   DEFAULT_wxUSE_MSGDLG=no
1496   DEFAULT_wxUSE_NUMBERDLG=no
1497   DEFAULT_wxUSE_TEXTDLG=no
1498   DEFAULT_wxUSE_SPLASH=no
1499   DEFAULT_wxUSE_STARTUP_TIPS=no
1500   DEFAULT_wxUSE_PROGRESSDLG=no
1501   DEFAULT_wxUSE_WIZARDDLG=no
1502
1503   DEFAULT_wxUSE_MENUS=no
1504   DEFAULT_wxUSE_MINIFRAME=no
1505   DEFAULT_wxUSE_HTML=no
1506   DEFAULT_wxUSE_FILESYSTEM=no
1507   DEFAULT_wxUSE_FS_INET=no
1508   DEFAULT_wxUSE_FS_ZIP=no
1509   DEFAULT_wxUSE_BUSYINFO=no
1510   DEFAULT_wxUSE_ZIPSTREAM=no
1511   DEFAULT_wxUSE_VALIDATORS=no
1512
1513   DEFAULT_wxUSE_ACCEL=no
1514   DEFAULT_wxUSE_BUTTON=no
1515   DEFAULT_wxUSE_BMPBUTTON=no
1516   DEFAULT_wxUSE_CALCTRL=no
1517   DEFAULT_wxUSE_CARET=no
1518   DEFAULT_wxUSE_CHECKBOX=no
1519   DEFAULT_wxUSE_CHECKLST=no
1520   DEFAULT_wxUSE_CHOICE=no
1521   DEFAULT_wxUSE_COMBOBOX=no
1522   DEFAULT_wxUSE_GAUGE=no
1523   DEFAULT_wxUSE_GRID=no
1524   DEFAULT_wxUSE_NEW_GRID=no
1525   DEFAULT_wxUSE_IMAGLIST=no
1526   DEFAULT_wxUSE_LISTBOX=no
1527   DEFAULT_wxUSE_LISTCTRL=no
1528   DEFAULT_wxUSE_NOTEBOOK=no
1529   DEFAULT_wxUSE_PROPSHEET=no
1530   DEFAULT_wxUSE_RADIOBOX=no
1531   DEFAULT_wxUSE_RADIOBTN=no
1532   DEFAULT_wxUSE_SASH=no
1533   DEFAULT_wxUSE_SCROLLBAR=no
1534   DEFAULT_wxUSE_SLIDER=no
1535   DEFAULT_wxUSE_SPINBTN=no
1536   DEFAULT_wxUSE_SPINCTRL=no
1537   DEFAULT_wxUSE_SPLITTER=no
1538   DEFAULT_wxUSE_STATBMP=no
1539   DEFAULT_wxUSE_STATBOX=no
1540   DEFAULT_wxUSE_STATLINE=no
1541   DEFAULT_wxUSE_STATTEXT=no
1542   DEFAULT_wxUSE_STATUSBAR=yes
1543   DEFAULT_wxUSE_TABDIALOG=no
1544   DEFAULT_wxUSE_TEXTCTRL=no
1545   DEFAULT_wxUSE_TOGGLEBTN=no
1546   DEFAULT_wxUSE_TOOLBAR=no
1547   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1548   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1549   DEFAULT_wxUSE_TREECTRL=no
1550   DEFAULT_wxUSE_POPUPWIN=no
1551   DEFAULT_wxUSE_TIPWINDOW=no
1552
1553   DEFAULT_wxUSE_UNICODE=no
1554   DEFAULT_wxUSE_UNICODE_MSLU=no
1555   DEFAULT_wxUSE_WCSRTOMBS=no
1556
1557   DEFAULT_wxUSE_PALETTE=no
1558   DEFAULT_wxUSE_IMAGE=no
1559   DEFAULT_wxUSE_GIF=no
1560   DEFAULT_wxUSE_PCX=no
1561   DEFAULT_wxUSE_PNM=no
1562   DEFAULT_wxUSE_IFF=no
1563   DEFAULT_wxUSE_XPM=no
1564   DEFAULT_wxUSE_ICO_CUR=no
1565 else
1566   DEFAULT_wxUSE_UNIVERSAL=no
1567
1568   DEFAULT_wxUSE_NANOX=no
1569
1570   DEFAULT_wxUSE_THREADS=yes
1571
1572   DEFAULT_wxUSE_SHARED=yes
1573   DEFAULT_wxUSE_SONAME=no
1574   DEFAULT_wxUSE_OPTIMISE=yes
1575   DEFAULT_wxUSE_PROFILE=no
1576   DEFAULT_wxUSE_NO_DEPS=no
1577   DEFAULT_wxUSE_NO_RTTI=no
1578   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1579   DEFAULT_wxUSE_PERMISSIVE=no
1580   DEFAULT_wxUSE_DEBUG_FLAG=no
1581   DEFAULT_wxUSE_DEBUG_INFO=no
1582   DEFAULT_wxUSE_DEBUG_GDB=no
1583   DEFAULT_wxUSE_MEM_TRACING=no
1584   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1585   DEFAULT_wxUSE_DMALLOC=no
1586   DEFAULT_wxUSE_PRECOMP=no
1587   DEFAULT_wxUSE_APPLE_IEEE=yes
1588
1589   DEFAULT_wxUSE_LOG=yes
1590   DEFAULT_wxUSE_LOGWINDOW=yes
1591   DEFAULT_wxUSE_LOGGUI=yes
1592   DEFAULT_wxUSE_LOGDIALOG=yes
1593
1594   DEFAULT_wxUSE_GUI=yes
1595
1596   DEFAULT_wxUSE_REGEX=yes
1597   DEFAULT_wxUSE_ZLIB=yes
1598   DEFAULT_wxUSE_LIBPNG=yes
1599   DEFAULT_wxUSE_LIBJPEG=yes
1600   DEFAULT_wxUSE_LIBTIFF=yes
1601   DEFAULT_wxUSE_ODBC=no
1602   DEFAULT_wxUSE_OPENGL=no
1603
1604   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1605   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1606   DEFAULT_wxUSE_STD_IOSTREAM=no
1607   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1608   DEFAULT_wxUSE_DATETIME=yes
1609   DEFAULT_wxUSE_TIMEDATE=no
1610   DEFAULT_wxUSE_TIMER=yes
1611   DEFAULT_wxUSE_STOPWATCH=yes
1612   DEFAULT_wxUSE_FILE=yes
1613   DEFAULT_wxUSE_FFILE=yes
1614   DEFAULT_wxUSE_TEXTBUFFER=yes
1615   DEFAULT_wxUSE_TEXTFILE=yes
1616   DEFAULT_wxUSE_WAVE=no
1617   DEFAULT_wxUSE_INTL=yes
1618   DEFAULT_wxUSE_CONFIG=yes
1619   DEFAULT_wxUSE_FONTMAP=yes
1620   DEFAULT_wxUSE_STREAMS=yes
1621   DEFAULT_wxUSE_SOCKETS=yes
1622   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1623   DEFAULT_wxUSE_JOYSTICK=yes
1624   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1625   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1626   DEFAULT_wxUSE_LONGLONG=yes
1627   DEFAULT_wxUSE_GEOMETRY=yes
1628
1629   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1630   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1631   DEFAULT_wxUSE_POSTSCRIPT=yes
1632
1633   DEFAULT_wxUSE_X_RESOURCES=no
1634   DEFAULT_wxUSE_CLIPBOARD=yes
1635   DEFAULT_wxUSE_TOOLTIPS=yes
1636   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1637   DEFAULT_wxUSE_DRAGIMAGE=yes
1638   DEFAULT_wxUSE_SPLINES=yes
1639
1640   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1641   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1642   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1643
1644   DEFAULT_wxUSE_PROLOGIO=yes
1645   DEFAULT_wxUSE_RESOURCES=yes
1646   DEFAULT_wxUSE_CONSTRAINTS=yes
1647   DEFAULT_wxUSE_IPC=yes
1648   DEFAULT_wxUSE_HELP=yes
1649   DEFAULT_wxUSE_MS_HTML_HELP=yes
1650   DEFAULT_wxUSE_WXHTML_HELP=yes
1651   DEFAULT_wxUSE_TREELAYOUT=yes
1652   DEFAULT_wxUSE_METAFILE=yes
1653   DEFAULT_wxUSE_MIMETYPE=yes
1654   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1655   DEFAULT_wxUSE_PROTOCOL=yes
1656   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1657   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1658   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1659   DEFAULT_wxUSE_URL=yes
1660
1661   DEFAULT_wxUSE_COMMONDLGS=yes
1662   DEFAULT_wxUSE_CHOICEDLG=yes
1663   DEFAULT_wxUSE_COLOURDLG=yes
1664   DEFAULT_wxUSE_DIRDLG=yes
1665   DEFAULT_wxUSE_FILEDLG=yes
1666   DEFAULT_wxUSE_FINDREPLDLG=yes
1667   DEFAULT_wxUSE_FONTDLG=yes
1668   DEFAULT_wxUSE_MSGDLG=yes
1669   DEFAULT_wxUSE_NUMBERDLG=yes
1670   DEFAULT_wxUSE_TEXTDLG=yes
1671   DEFAULT_wxUSE_SPLASH=yes
1672   DEFAULT_wxUSE_STARTUP_TIPS=yes
1673   DEFAULT_wxUSE_PROGRESSDLG=yes
1674   DEFAULT_wxUSE_WIZARDDLG=yes
1675
1676   DEFAULT_wxUSE_MENUS=yes
1677   DEFAULT_wxUSE_MINIFRAME=yes
1678   DEFAULT_wxUSE_HTML=yes
1679   DEFAULT_wxUSE_FILESYSTEM=yes
1680   DEFAULT_wxUSE_FS_INET=yes
1681   DEFAULT_wxUSE_FS_ZIP=yes
1682   DEFAULT_wxUSE_BUSYINFO=yes
1683   DEFAULT_wxUSE_ZIPSTREAM=yes
1684   DEFAULT_wxUSE_VALIDATORS=yes
1685
1686   DEFAULT_wxUSE_ACCEL=yes
1687   DEFAULT_wxUSE_BUTTON=yes
1688   DEFAULT_wxUSE_BMPBUTTON=yes
1689   DEFAULT_wxUSE_CALCTRL=yes
1690   DEFAULT_wxUSE_CARET=yes
1691   DEFAULT_wxUSE_CHECKBOX=yes
1692   DEFAULT_wxUSE_CHECKLST=yes
1693   DEFAULT_wxUSE_CHOICE=yes
1694   DEFAULT_wxUSE_COMBOBOX=yes
1695   DEFAULT_wxUSE_GAUGE=yes
1696   DEFAULT_wxUSE_GRID=yes
1697   DEFAULT_wxUSE_NEW_GRID=yes
1698   DEFAULT_wxUSE_IMAGLIST=yes
1699   DEFAULT_wxUSE_LISTBOX=yes
1700   DEFAULT_wxUSE_LISTCTRL=yes
1701   DEFAULT_wxUSE_NOTEBOOK=yes
1702   DEFAULT_wxUSE_PROPSHEET=yes
1703   DEFAULT_wxUSE_RADIOBOX=yes
1704   DEFAULT_wxUSE_RADIOBTN=yes
1705   DEFAULT_wxUSE_SASH=yes
1706   DEFAULT_wxUSE_SCROLLBAR=yes
1707   DEFAULT_wxUSE_SLIDER=yes
1708   DEFAULT_wxUSE_SPINBTN=yes
1709   DEFAULT_wxUSE_SPINCTRL=yes
1710   DEFAULT_wxUSE_SPLITTER=yes
1711   DEFAULT_wxUSE_STATBMP=yes
1712   DEFAULT_wxUSE_STATBOX=yes
1713   DEFAULT_wxUSE_STATLINE=yes
1714   DEFAULT_wxUSE_STATTEXT=yes
1715   DEFAULT_wxUSE_STATUSBAR=yes
1716   DEFAULT_wxUSE_TABDIALOG=no
1717   DEFAULT_wxUSE_TEXTCTRL=yes
1718   DEFAULT_wxUSE_TOGGLEBTN=yes
1719   DEFAULT_wxUSE_TOOLBAR=yes
1720   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1721   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1722   DEFAULT_wxUSE_TREECTRL=yes
1723   DEFAULT_wxUSE_POPUPWIN=yes
1724   DEFAULT_wxUSE_TIPWINDOW=yes
1725
1726   DEFAULT_wxUSE_UNICODE=no
1727   DEFAULT_wxUSE_UNICODE_MSLU=yes
1728   DEFAULT_wxUSE_WCSRTOMBS=no
1729
1730   DEFAULT_wxUSE_PALETTE=yes
1731   DEFAULT_wxUSE_IMAGE=yes
1732   DEFAULT_wxUSE_GIF=yes
1733   DEFAULT_wxUSE_PCX=yes
1734   DEFAULT_wxUSE_IFF=no
1735   DEFAULT_wxUSE_PNM=yes
1736   DEFAULT_wxUSE_XPM=yes
1737   DEFAULT_wxUSE_ICO_CUR=yes
1738 fi
1739
1740
1741
1742 for toolkit in `echo $ALL_TOOLKITS`; do
1743   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1744   if test "x$LINE" != "x" ; then
1745     has_toolkit_in_cache=1
1746     eval "DEFAULT_$LINE"
1747     eval "CACHE_$toolkit=1"
1748   fi
1749 done
1750
1751
1752
1753           echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1754 echo "configure:1755: checking for --enable-gui" >&5
1755           no_cache=0
1756           # Check whether --enable-gui or --disable-gui was given.
1757 if test "${enable_gui+set}" = set; then
1758   enableval="$enable_gui"
1759   
1760                           if test "$enableval" = yes; then
1761                             ac_cv_use_gui='wxUSE_GUI=yes'
1762                           else
1763                             ac_cv_use_gui='wxUSE_GUI=no'
1764                           fi
1765                         
1766 else
1767   
1768                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1769                           if test "x$LINE" != x ; then
1770                             eval "DEFAULT_$LINE"
1771                           else
1772                             no_cache=1
1773                           fi
1774
1775                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1776                         
1777 fi
1778
1779
1780           eval "$ac_cv_use_gui"
1781           if test "$no_cache" != 1; then
1782             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1783           fi
1784
1785           if test "$wxUSE_GUI" = yes; then
1786             echo "$ac_t""yes" 1>&6
1787           else
1788             echo "$ac_t""no" 1>&6
1789           fi
1790         
1791
1792 if test "$wxUSE_GUI" = "yes"; then
1793
1794
1795           echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1796 echo "configure:1797: checking for --enable-universal" >&5
1797           no_cache=0
1798           # Check whether --enable-universal or --disable-universal was given.
1799 if test "${enable_universal+set}" = set; then
1800   enableval="$enable_universal"
1801   
1802                           if test "$enableval" = yes; then
1803                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1804                           else
1805                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1806                           fi
1807                         
1808 else
1809   
1810                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1811                           if test "x$LINE" != x ; then
1812                             eval "DEFAULT_$LINE"
1813                           else
1814                             no_cache=1
1815                           fi
1816
1817                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1818                         
1819 fi
1820
1821
1822           eval "$ac_cv_use_universal"
1823           if test "$no_cache" != 1; then
1824             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1825           fi
1826
1827           if test "$wxUSE_UNIVERSAL" = yes; then
1828             echo "$ac_t""yes" 1>&6
1829           else
1830             echo "$ac_t""no" 1>&6
1831           fi
1832         
1833 # Check whether --with-gtk or --without-gtk was given.
1834 if test "${with_gtk+set}" = set; then
1835   withval="$with_gtk"
1836   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1837 fi
1838
1839 # Check whether --with-motif or --without-motif was given.
1840 if test "${with_motif+set}" = set; then
1841   withval="$with_motif"
1842   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1843 fi
1844
1845 # Check whether --with-mac or --without-mac was given.
1846 if test "${with_mac+set}" = set; then
1847   withval="$with_mac"
1848   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1849 fi
1850
1851 # Check whether --with-wine or --without-wine was given.
1852 if test "${with_wine+set}" = set; then
1853   withval="$with_wine"
1854   wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1855 fi
1856
1857 # Check whether --with-msw or --without-msw was given.
1858 if test "${with_msw+set}" = set; then
1859   withval="$with_msw"
1860   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1861 fi
1862
1863 # Check whether --with-pm or --without-pm was given.
1864 if test "${with_pm+set}" = set; then
1865   withval="$with_pm"
1866   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1867 fi
1868
1869 # Check whether --with-mgl or --without-mgl was given.
1870 if test "${with_mgl+set}" = set; then
1871   withval="$with_mgl"
1872   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1873 fi
1874
1875 # Check whether --with-microwin or --without-microwin was given.
1876 if test "${with_microwin+set}" = set; then
1877   withval="$with_microwin"
1878   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1879 fi
1880
1881 # Check whether --with-x11 or --without-x11 was given.
1882 if test "${with_x11+set}" = set; then
1883   withval="$with_x11"
1884   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1885 fi
1886
1887
1888           echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1889 echo "configure:1890: checking for --enable-nanox" >&5
1890           no_cache=0
1891           # Check whether --enable-nanox or --disable-nanox was given.
1892 if test "${enable_nanox+set}" = set; then
1893   enableval="$enable_nanox"
1894   
1895                           if test "$enableval" = yes; then
1896                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1897                           else
1898                             ac_cv_use_nanox='wxUSE_NANOX=no'
1899                           fi
1900                         
1901 else
1902   
1903                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1904                           if test "x$LINE" != x ; then
1905                             eval "DEFAULT_$LINE"
1906                           else
1907                             no_cache=1
1908                           fi
1909
1910                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1911                         
1912 fi
1913
1914
1915           eval "$ac_cv_use_nanox"
1916           if test "$no_cache" != 1; then
1917             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1918           fi
1919
1920           if test "$wxUSE_NANOX" = yes; then
1921             echo "$ac_t""yes" 1>&6
1922           else
1923             echo "$ac_t""no" 1>&6
1924           fi
1925         
1926
1927
1928           echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6
1929 echo "configure:1930: checking for --enable-gtk2" >&5
1930           no_cache=0
1931           # Check whether --enable-gtk2 or --disable-gtk2 was given.
1932 if test "${enable_gtk2+set}" = set; then
1933   enableval="$enable_gtk2"
1934   
1935                           if test "$enableval" = yes; then
1936                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
1937                           else
1938                             ac_cv_use_gtk2='wxUSE_GTK2=no'
1939                           fi
1940                         
1941 else
1942   
1943                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1944                           if test "x$LINE" != x ; then
1945                             eval "DEFAULT_$LINE"
1946                           else
1947                             no_cache=1
1948                           fi
1949
1950                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1951                         
1952 fi
1953
1954
1955           eval "$ac_cv_use_gtk2"
1956           if test "$no_cache" != 1; then
1957             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1958           fi
1959
1960           if test "$wxUSE_GTK2" = yes; then
1961             echo "$ac_t""yes" 1>&6
1962           else
1963             echo "$ac_t""no" 1>&6
1964           fi
1965         
1966
1967
1968           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1969 echo "configure:1970: checking for --with-libpng" >&5
1970           no_cache=0
1971           # Check whether --with-libpng or --without-libpng was given.
1972 if test "${with_libpng+set}" = set; then
1973   withval="$with_libpng"
1974   
1975                         if test "$withval" = yes; then
1976                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1977                         elif test "$withval" = no; then
1978                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1979                         elif test "$withval" = sys; then
1980                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1981                         elif test "$withval" = builtin; then
1982                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1983                         else
1984                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1985                         fi
1986                       
1987 else
1988   
1989                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1990                         if test "x$LINE" != x ; then
1991                           eval "DEFAULT_$LINE"
1992                         else
1993                           no_cache=1
1994                         fi
1995
1996                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1997                       
1998 fi
1999
2000
2001           eval "$ac_cv_use_libpng"
2002           if test "$no_cache" != 1; then
2003             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2004           fi
2005
2006           if test "$wxUSE_LIBPNG" = yes; then
2007             echo "$ac_t""yes" 1>&6
2008           elif test "$wxUSE_LIBPNG" = no; then
2009             echo "$ac_t""no" 1>&6
2010           elif test "$wxUSE_LIBPNG" = sys; then
2011             echo "$ac_t""system version" 1>&6
2012           elif test "$wxUSE_LIBPNG" = builtin; then
2013             echo "$ac_t""builtin version" 1>&6
2014           else
2015             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2016           fi
2017         
2018
2019           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2020 echo "configure:2021: checking for --with-libjpeg" >&5
2021           no_cache=0
2022           # Check whether --with-libjpeg or --without-libjpeg was given.
2023 if test "${with_libjpeg+set}" = set; then
2024   withval="$with_libjpeg"
2025   
2026                         if test "$withval" = yes; then
2027                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2028                         elif test "$withval" = no; then
2029                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2030                         elif test "$withval" = sys; then
2031                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2032                         elif test "$withval" = builtin; then
2033                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2034                         else
2035                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2036                         fi
2037                       
2038 else
2039   
2040                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2041                         if test "x$LINE" != x ; then
2042                           eval "DEFAULT_$LINE"
2043                         else
2044                           no_cache=1
2045                         fi
2046
2047                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2048                       
2049 fi
2050
2051
2052           eval "$ac_cv_use_libjpeg"
2053           if test "$no_cache" != 1; then
2054             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2055           fi
2056
2057           if test "$wxUSE_LIBJPEG" = yes; then
2058             echo "$ac_t""yes" 1>&6
2059           elif test "$wxUSE_LIBJPEG" = no; then
2060             echo "$ac_t""no" 1>&6
2061           elif test "$wxUSE_LIBJPEG" = sys; then
2062             echo "$ac_t""system version" 1>&6
2063           elif test "$wxUSE_LIBJPEG" = builtin; then
2064             echo "$ac_t""builtin version" 1>&6
2065           else
2066             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2067           fi
2068         
2069
2070           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2071 echo "configure:2072: checking for --with-libtiff" >&5
2072           no_cache=0
2073           # Check whether --with-libtiff or --without-libtiff was given.
2074 if test "${with_libtiff+set}" = set; then
2075   withval="$with_libtiff"
2076   
2077                         if test "$withval" = yes; then
2078                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2079                         elif test "$withval" = no; then
2080                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2081                         elif test "$withval" = sys; then
2082                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2083                         elif test "$withval" = builtin; then
2084                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2085                         else
2086                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2087                         fi
2088                       
2089 else
2090   
2091                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2092                         if test "x$LINE" != x ; then
2093                           eval "DEFAULT_$LINE"
2094                         else
2095                           no_cache=1
2096                         fi
2097
2098                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2099                       
2100 fi
2101
2102
2103           eval "$ac_cv_use_libtiff"
2104           if test "$no_cache" != 1; then
2105             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2106           fi
2107
2108           if test "$wxUSE_LIBTIFF" = yes; then
2109             echo "$ac_t""yes" 1>&6
2110           elif test "$wxUSE_LIBTIFF" = no; then
2111             echo "$ac_t""no" 1>&6
2112           elif test "$wxUSE_LIBTIFF" = sys; then
2113             echo "$ac_t""system version" 1>&6
2114           elif test "$wxUSE_LIBTIFF" = builtin; then
2115             echo "$ac_t""builtin version" 1>&6
2116           else
2117             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2118           fi
2119         
2120
2121           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2122 echo "configure:2123: checking for --with-opengl" >&5
2123           no_cache=0
2124           # Check whether --with-opengl or --without-opengl was given.
2125 if test "${with_opengl+set}" = set; then
2126   withval="$with_opengl"
2127   
2128                         if test "$withval" = yes; then
2129                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2130                         else
2131                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2132                         fi
2133                       
2134 else
2135   
2136                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2137                         if test "x$LINE" != x ; then
2138                           eval "DEFAULT_$LINE"
2139                         else
2140                           no_cache=1
2141                         fi
2142
2143                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2144                       
2145 fi
2146
2147
2148           eval "$ac_cv_use_opengl"
2149           if test "$no_cache" != 1; then
2150             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2151           fi
2152
2153           if test "$wxUSE_OPENGL" = yes; then
2154             echo "$ac_t""yes" 1>&6
2155           else
2156             echo "$ac_t""no" 1>&6
2157           fi
2158         
2159
2160 fi
2161
2162
2163           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2164 echo "configure:2165: checking for --with-dmalloc" >&5
2165           no_cache=0
2166           # Check whether --with-dmalloc or --without-dmalloc was given.
2167 if test "${with_dmalloc+set}" = set; then
2168   withval="$with_dmalloc"
2169   
2170                         if test "$withval" = yes; then
2171                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2172                         else
2173                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2174                         fi
2175                       
2176 else
2177   
2178                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2179                         if test "x$LINE" != x ; then
2180                           eval "DEFAULT_$LINE"
2181                         else
2182                           no_cache=1
2183                         fi
2184
2185                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2186                       
2187 fi
2188
2189
2190           eval "$ac_cv_use_dmalloc"
2191           if test "$no_cache" != 1; then
2192             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2193           fi
2194
2195           if test "$wxUSE_DMALLOC" = yes; then
2196             echo "$ac_t""yes" 1>&6
2197           else
2198             echo "$ac_t""no" 1>&6
2199           fi
2200         
2201
2202           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2203 echo "configure:2204: checking for --with-regex" >&5
2204           no_cache=0
2205           # Check whether --with-regex or --without-regex was given.
2206 if test "${with_regex+set}" = set; then
2207   withval="$with_regex"
2208   
2209                         if test "$withval" = yes; then
2210                           ac_cv_use_regex='wxUSE_REGEX=yes'
2211                         elif test "$withval" = no; then
2212                           ac_cv_use_regex='wxUSE_REGEX=no'
2213                         elif test "$withval" = sys; then
2214                           ac_cv_use_regex='wxUSE_REGEX=sys'
2215                         elif test "$withval" = builtin; then
2216                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2217                         else
2218                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2219                         fi
2220                       
2221 else
2222   
2223                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2224                         if test "x$LINE" != x ; then
2225                           eval "DEFAULT_$LINE"
2226                         else
2227                           no_cache=1
2228                         fi
2229
2230                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2231                       
2232 fi
2233
2234
2235           eval "$ac_cv_use_regex"
2236           if test "$no_cache" != 1; then
2237             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2238           fi
2239
2240           if test "$wxUSE_REGEX" = yes; then
2241             echo "$ac_t""yes" 1>&6
2242           elif test "$wxUSE_REGEX" = no; then
2243             echo "$ac_t""no" 1>&6
2244           elif test "$wxUSE_REGEX" = sys; then
2245             echo "$ac_t""system version" 1>&6
2246           elif test "$wxUSE_REGEX" = builtin; then
2247             echo "$ac_t""builtin version" 1>&6
2248           else
2249             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2250           fi
2251         
2252
2253           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2254 echo "configure:2255: checking for --with-zlib" >&5
2255           no_cache=0
2256           # Check whether --with-zlib or --without-zlib was given.
2257 if test "${with_zlib+set}" = set; then
2258   withval="$with_zlib"
2259   
2260                         if test "$withval" = yes; then
2261                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2262                         elif test "$withval" = no; then
2263                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2264                         elif test "$withval" = sys; then
2265                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2266                         elif test "$withval" = builtin; then
2267                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2268                         else
2269                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2270                         fi
2271                       
2272 else
2273   
2274                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2275                         if test "x$LINE" != x ; then
2276                           eval "DEFAULT_$LINE"
2277                         else
2278                           no_cache=1
2279                         fi
2280
2281                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2282                       
2283 fi
2284
2285
2286           eval "$ac_cv_use_zlib"
2287           if test "$no_cache" != 1; then
2288             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2289           fi
2290
2291           if test "$wxUSE_ZLIB" = yes; then
2292             echo "$ac_t""yes" 1>&6
2293           elif test "$wxUSE_ZLIB" = no; then
2294             echo "$ac_t""no" 1>&6
2295           elif test "$wxUSE_ZLIB" = sys; then
2296             echo "$ac_t""system version" 1>&6
2297           elif test "$wxUSE_ZLIB" = builtin; then
2298             echo "$ac_t""builtin version" 1>&6
2299           else
2300             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2301           fi
2302         
2303
2304           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2305 echo "configure:2306: checking for --with-odbc" >&5
2306           no_cache=0
2307           # Check whether --with-odbc or --without-odbc was given.
2308 if test "${with_odbc+set}" = set; then
2309   withval="$with_odbc"
2310   
2311                         if test "$withval" = yes; then
2312                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2313                         else
2314                           ac_cv_use_odbc='wxUSE_ODBC=no'
2315                         fi
2316                       
2317 else
2318   
2319                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2320                         if test "x$LINE" != x ; then
2321                           eval "DEFAULT_$LINE"
2322                         else
2323                           no_cache=1
2324                         fi
2325
2326                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2327                       
2328 fi
2329
2330
2331           eval "$ac_cv_use_odbc"
2332           if test "$no_cache" != 1; then
2333             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2334           fi
2335
2336           if test "$wxUSE_ODBC" = yes; then
2337             echo "$ac_t""yes" 1>&6
2338           else
2339             echo "$ac_t""no" 1>&6
2340           fi
2341         
2342
2343
2344
2345           echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2346 echo "configure:2347: checking for --enable-shared" >&5
2347           no_cache=0
2348           # Check whether --enable-shared or --disable-shared was given.
2349 if test "${enable_shared+set}" = set; then
2350   enableval="$enable_shared"
2351   
2352                           if test "$enableval" = yes; then
2353                             ac_cv_use_shared='wxUSE_SHARED=yes'
2354                           else
2355                             ac_cv_use_shared='wxUSE_SHARED=no'
2356                           fi
2357                         
2358 else
2359   
2360                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2361                           if test "x$LINE" != x ; then
2362                             eval "DEFAULT_$LINE"
2363                           else
2364                             no_cache=1
2365                           fi
2366
2367                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2368                         
2369 fi
2370
2371
2372           eval "$ac_cv_use_shared"
2373           if test "$no_cache" != 1; then
2374             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2375           fi
2376
2377           if test "$wxUSE_SHARED" = yes; then
2378             echo "$ac_t""yes" 1>&6
2379           else
2380             echo "$ac_t""no" 1>&6
2381           fi
2382         
2383
2384           echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2385 echo "configure:2386: checking for --enable-soname" >&5
2386           no_cache=0
2387           # Check whether --enable-soname or --disable-soname was given.
2388 if test "${enable_soname+set}" = set; then
2389   enableval="$enable_soname"
2390   
2391                           if test "$enableval" = yes; then
2392                             ac_cv_use_soname='wxUSE_SONAME=yes'
2393                           else
2394                             ac_cv_use_soname='wxUSE_SONAME=no'
2395                           fi
2396                         
2397 else
2398   
2399                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2400                           if test "x$LINE" != x ; then
2401                             eval "DEFAULT_$LINE"
2402                           else
2403                             no_cache=1
2404                           fi
2405
2406                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2407                         
2408 fi
2409
2410
2411           eval "$ac_cv_use_soname"
2412           if test "$no_cache" != 1; then
2413             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2414           fi
2415
2416           if test "$wxUSE_SONAME" = yes; then
2417             echo "$ac_t""yes" 1>&6
2418           else
2419             echo "$ac_t""no" 1>&6
2420           fi
2421         
2422
2423           echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2424 echo "configure:2425: checking for --enable-optimise" >&5
2425           no_cache=0
2426           # Check whether --enable-optimise or --disable-optimise was given.
2427 if test "${enable_optimise+set}" = set; then
2428   enableval="$enable_optimise"
2429   
2430                           if test "$enableval" = yes; then
2431                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2432                           else
2433                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2434                           fi
2435                         
2436 else
2437   
2438                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2439                           if test "x$LINE" != x ; then
2440                             eval "DEFAULT_$LINE"
2441                           else
2442                             no_cache=1
2443                           fi
2444
2445                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2446                         
2447 fi
2448
2449
2450           eval "$ac_cv_use_optimise"
2451           if test "$no_cache" != 1; then
2452             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2453           fi
2454
2455           if test "$wxUSE_OPTIMISE" = yes; then
2456             echo "$ac_t""yes" 1>&6
2457           else
2458             echo "$ac_t""no" 1>&6
2459           fi
2460         
2461
2462           echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2463 echo "configure:2464: checking for --enable-debug" >&5
2464           no_cache=0
2465           # Check whether --enable-debug or --disable-debug was given.
2466 if test "${enable_debug+set}" = set; then
2467   enableval="$enable_debug"
2468   
2469                           if test "$enableval" = yes; then
2470                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2471                           else
2472                             ac_cv_use_debug='wxUSE_DEBUG=no'
2473                           fi
2474                         
2475 else
2476   
2477                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2478                           if test "x$LINE" != x ; then
2479                             eval "DEFAULT_$LINE"
2480                           else
2481                             no_cache=1
2482                           fi
2483
2484                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2485                         
2486 fi
2487
2488
2489           eval "$ac_cv_use_debug"
2490           if test "$no_cache" != 1; then
2491             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2492           fi
2493
2494           if test "$wxUSE_DEBUG" = yes; then
2495             echo "$ac_t""yes" 1>&6
2496           else
2497             echo "$ac_t""no" 1>&6
2498           fi
2499         
2500
2501
2502           echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2503 echo "configure:2504: checking for --enable-precomp" >&5
2504           no_cache=0
2505           # Check whether --enable-precomp or --disable-precomp was given.
2506 if test "${enable_precomp+set}" = set; then
2507   enableval="$enable_precomp"
2508   
2509                           if test "$enableval" = yes; then
2510                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2511                           else
2512                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2513                           fi
2514                         
2515 else
2516   
2517                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2518                           if test "x$LINE" != x ; then
2519                             eval "DEFAULT_$LINE"
2520                           else
2521                             no_cache=1
2522                           fi
2523
2524                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2525                         
2526 fi
2527
2528
2529           eval "$ac_cv_use_precomp"
2530           if test "$no_cache" != 1; then
2531             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2532           fi
2533
2534           if test "$wxUSE_PRECOMP" = yes; then
2535             echo "$ac_t""yes" 1>&6
2536           else
2537             echo "$ac_t""no" 1>&6
2538           fi
2539         
2540
2541 if test "$wxUSE_DEBUG" = "yes"; then
2542   DEFAULT_wxUSE_DEBUG_FLAG=yes
2543   DEFAULT_wxUSE_DEBUG_INFO=yes
2544 elif test "$wxUSE_DEBUG" = "no"; then
2545   DEFAULT_wxUSE_DEBUG_FLAG=no
2546   DEFAULT_wxUSE_DEBUG_INFO=no
2547 fi
2548
2549
2550           echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2551 echo "configure:2552: checking for --enable-debug_flag" >&5
2552           no_cache=0
2553           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2554 if test "${enable_debug_flag+set}" = set; then
2555   enableval="$enable_debug_flag"
2556   
2557                           if test "$enableval" = yes; then
2558                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2559                           else
2560                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2561                           fi
2562                         
2563 else
2564   
2565                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2566                           if test "x$LINE" != x ; then
2567                             eval "DEFAULT_$LINE"
2568                           else
2569                             no_cache=1
2570                           fi
2571
2572                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2573                         
2574 fi
2575
2576
2577           eval "$ac_cv_use_debug_flag"
2578           if test "$no_cache" != 1; then
2579             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2580           fi
2581
2582           if test "$wxUSE_DEBUG_FLAG" = yes; then
2583             echo "$ac_t""yes" 1>&6
2584           else
2585             echo "$ac_t""no" 1>&6
2586           fi
2587         
2588
2589           echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2590 echo "configure:2591: checking for --enable-debug_info" >&5
2591           no_cache=0
2592           # Check whether --enable-debug_info or --disable-debug_info was given.
2593 if test "${enable_debug_info+set}" = set; then
2594   enableval="$enable_debug_info"
2595   
2596                           if test "$enableval" = yes; then
2597                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2598                           else
2599                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2600                           fi
2601                         
2602 else
2603   
2604                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2605                           if test "x$LINE" != x ; then
2606                             eval "DEFAULT_$LINE"
2607                           else
2608                             no_cache=1
2609                           fi
2610
2611                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2612                         
2613 fi
2614
2615
2616           eval "$ac_cv_use_debug_info"
2617           if test "$no_cache" != 1; then
2618             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2619           fi
2620
2621           if test "$wxUSE_DEBUG_INFO" = yes; then
2622             echo "$ac_t""yes" 1>&6
2623           else
2624             echo "$ac_t""no" 1>&6
2625           fi
2626         
2627
2628           echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2629 echo "configure:2630: checking for --enable-debug_gdb" >&5
2630           no_cache=0
2631           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2632 if test "${enable_debug_gdb+set}" = set; then
2633   enableval="$enable_debug_gdb"
2634   
2635                           if test "$enableval" = yes; then
2636                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2637                           else
2638                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2639                           fi
2640                         
2641 else
2642   
2643                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2644                           if test "x$LINE" != x ; then
2645                             eval "DEFAULT_$LINE"
2646                           else
2647                             no_cache=1
2648                           fi
2649
2650                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2651                         
2652 fi
2653
2654
2655           eval "$ac_cv_use_debug_gdb"
2656           if test "$no_cache" != 1; then
2657             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2658           fi
2659
2660           if test "$wxUSE_DEBUG_GDB" = yes; then
2661             echo "$ac_t""yes" 1>&6
2662           else
2663             echo "$ac_t""no" 1>&6
2664           fi
2665         
2666
2667           echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2668 echo "configure:2669: checking for --enable-debug_cntxt" >&5
2669           no_cache=0
2670           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2671 if test "${enable_debug_cntxt+set}" = set; then
2672   enableval="$enable_debug_cntxt"
2673   
2674                           if test "$enableval" = yes; then
2675                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2676                           else
2677                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2678                           fi
2679                         
2680 else
2681   
2682                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2683                           if test "x$LINE" != x ; then
2684                             eval "DEFAULT_$LINE"
2685                           else
2686                             no_cache=1
2687                           fi
2688
2689                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2690                         
2691 fi
2692
2693
2694           eval "$ac_cv_use_debug_cntxt"
2695           if test "$no_cache" != 1; then
2696             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2697           fi
2698
2699           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2700             echo "$ac_t""yes" 1>&6
2701           else
2702             echo "$ac_t""no" 1>&6
2703           fi
2704         
2705
2706           echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2707 echo "configure:2708: checking for --enable-mem_tracing" >&5
2708           no_cache=0
2709           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2710 if test "${enable_mem_tracing+set}" = set; then
2711   enableval="$enable_mem_tracing"
2712   
2713                           if test "$enableval" = yes; then
2714                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2715                           else
2716                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2717                           fi
2718                         
2719 else
2720   
2721                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2722                           if test "x$LINE" != x ; then
2723                             eval "DEFAULT_$LINE"
2724                           else
2725                             no_cache=1
2726                           fi
2727
2728                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2729                         
2730 fi
2731
2732
2733           eval "$ac_cv_use_mem_tracing"
2734           if test "$no_cache" != 1; then
2735             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2736           fi
2737
2738           if test "$wxUSE_MEM_TRACING" = yes; then
2739             echo "$ac_t""yes" 1>&6
2740           else
2741             echo "$ac_t""no" 1>&6
2742           fi
2743         
2744
2745           echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2746 echo "configure:2747: checking for --enable-profile" >&5
2747           no_cache=0
2748           # Check whether --enable-profile or --disable-profile was given.
2749 if test "${enable_profile+set}" = set; then
2750   enableval="$enable_profile"
2751   
2752                           if test "$enableval" = yes; then
2753                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2754                           else
2755                             ac_cv_use_profile='wxUSE_PROFILE=no'
2756                           fi
2757                         
2758 else
2759   
2760                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2761                           if test "x$LINE" != x ; then
2762                             eval "DEFAULT_$LINE"
2763                           else
2764                             no_cache=1
2765                           fi
2766
2767                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2768                         
2769 fi
2770
2771
2772           eval "$ac_cv_use_profile"
2773           if test "$no_cache" != 1; then
2774             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2775           fi
2776
2777           if test "$wxUSE_PROFILE" = yes; then
2778             echo "$ac_t""yes" 1>&6
2779           else
2780             echo "$ac_t""no" 1>&6
2781           fi
2782         
2783
2784           echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2785 echo "configure:2786: checking for --enable-no_rtti" >&5
2786           no_cache=0
2787           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2788 if test "${enable_no_rtti+set}" = set; then
2789   enableval="$enable_no_rtti"
2790   
2791                           if test "$enableval" = yes; then
2792                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2793                           else
2794                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2795                           fi
2796                         
2797 else
2798   
2799                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2800                           if test "x$LINE" != x ; then
2801                             eval "DEFAULT_$LINE"
2802                           else
2803                             no_cache=1
2804                           fi
2805
2806                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2807                         
2808 fi
2809
2810
2811           eval "$ac_cv_use_no_rtti"
2812           if test "$no_cache" != 1; then
2813             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2814           fi
2815
2816           if test "$wxUSE_NO_RTTI" = yes; then
2817             echo "$ac_t""yes" 1>&6
2818           else
2819             echo "$ac_t""no" 1>&6
2820           fi
2821         
2822
2823           echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2824 echo "configure:2825: checking for --enable-no_exceptions" >&5
2825           no_cache=0
2826           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2827 if test "${enable_no_exceptions+set}" = set; then
2828   enableval="$enable_no_exceptions"
2829   
2830                           if test "$enableval" = yes; then
2831                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2832                           else
2833                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2834                           fi
2835                         
2836 else
2837   
2838                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2839                           if test "x$LINE" != x ; then
2840                             eval "DEFAULT_$LINE"
2841                           else
2842                             no_cache=1
2843                           fi
2844
2845                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2846                         
2847 fi
2848
2849
2850           eval "$ac_cv_use_no_exceptions"
2851           if test "$no_cache" != 1; then
2852             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2853           fi
2854
2855           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2856             echo "$ac_t""yes" 1>&6
2857           else
2858             echo "$ac_t""no" 1>&6
2859           fi
2860         
2861
2862           echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2863 echo "configure:2864: checking for --enable-permissive" >&5
2864           no_cache=0
2865           # Check whether --enable-permissive or --disable-permissive was given.
2866 if test "${enable_permissive+set}" = set; then
2867   enableval="$enable_permissive"
2868   
2869                           if test "$enableval" = yes; then
2870                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2871                           else
2872                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2873                           fi
2874                         
2875 else
2876   
2877                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2878                           if test "x$LINE" != x ; then
2879                             eval "DEFAULT_$LINE"
2880                           else
2881                             no_cache=1
2882                           fi
2883
2884                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2885                         
2886 fi
2887
2888
2889           eval "$ac_cv_use_permissive"
2890           if test "$no_cache" != 1; then
2891             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2892           fi
2893
2894           if test "$wxUSE_PERMISSIVE" = yes; then
2895             echo "$ac_t""yes" 1>&6
2896           else
2897             echo "$ac_t""no" 1>&6
2898           fi
2899         
2900
2901           echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2902 echo "configure:2903: checking for --enable-no_deps" >&5
2903           no_cache=0
2904           # Check whether --enable-no_deps or --disable-no_deps was given.
2905 if test "${enable_no_deps+set}" = set; then
2906   enableval="$enable_no_deps"
2907   
2908                           if test "$enableval" = yes; then
2909                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2910                           else
2911                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2912                           fi
2913                         
2914 else
2915   
2916                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2917                           if test "x$LINE" != x ; then
2918                             eval "DEFAULT_$LINE"
2919                           else
2920                             no_cache=1
2921                           fi
2922
2923                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2924                         
2925 fi
2926
2927
2928           eval "$ac_cv_use_no_deps"
2929           if test "$no_cache" != 1; then
2930             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2931           fi
2932
2933           if test "$wxUSE_NO_DEPS" = yes; then
2934             echo "$ac_t""yes" 1>&6
2935           else
2936             echo "$ac_t""no" 1>&6
2937           fi
2938         
2939
2940
2941           echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2942 echo "configure:2943: checking for --enable-compat20" >&5
2943           no_cache=0
2944           # Check whether --enable-compat20 or --disable-compat20 was given.
2945 if test "${enable_compat20+set}" = set; then
2946   enableval="$enable_compat20"
2947   
2948                           if test "$enableval" = yes; then
2949                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2950                           else
2951                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2952                           fi
2953                         
2954 else
2955   
2956                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2957                           if test "x$LINE" != x ; then
2958                             eval "DEFAULT_$LINE"
2959                           else
2960                             no_cache=1
2961                           fi
2962
2963                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2964                         
2965 fi
2966
2967
2968           eval "$ac_cv_use_compat20"
2969           if test "$no_cache" != 1; then
2970             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2971           fi
2972
2973           if test "$WXWIN_COMPATIBILITY_2" = yes; then
2974             echo "$ac_t""yes" 1>&6
2975           else
2976             echo "$ac_t""no" 1>&6
2977           fi
2978         
2979
2980           echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2981 echo "configure:2982: checking for --enable-compat22" >&5
2982           no_cache=0
2983           # Check whether --enable-compat22 or --disable-compat22 was given.
2984 if test "${enable_compat22+set}" = set; then
2985   enableval="$enable_compat22"
2986   
2987                           if test "$enableval" = yes; then
2988                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2989                           else
2990                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2991                           fi
2992                         
2993 else
2994   
2995                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2996                           if test "x$LINE" != x ; then
2997                             eval "DEFAULT_$LINE"
2998                           else
2999                             no_cache=1
3000                           fi
3001
3002                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3003                         
3004 fi
3005
3006
3007           eval "$ac_cv_use_compat22"
3008           if test "$no_cache" != 1; then
3009             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3010           fi
3011
3012           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3013             echo "$ac_t""yes" 1>&6
3014           else
3015             echo "$ac_t""no" 1>&6
3016           fi
3017         
3018
3019 # Check whether --enable-rpath or --disable-rpath was given.
3020 if test "${enable_rpath+set}" = set; then
3021   enableval="$enable_rpath"
3022   wxRPATH_DIR="$enableval"
3023 fi
3024
3025
3026 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3027    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3028 fi
3029
3030
3031
3032
3033           echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3034 echo "configure:3035: checking for --enable-intl" >&5
3035           no_cache=0
3036           # Check whether --enable-intl or --disable-intl was given.
3037 if test "${enable_intl+set}" = set; then
3038   enableval="$enable_intl"
3039   
3040                           if test "$enableval" = yes; then
3041                             ac_cv_use_intl='wxUSE_INTL=yes'
3042                           else
3043                             ac_cv_use_intl='wxUSE_INTL=no'
3044                           fi
3045                         
3046 else
3047   
3048                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3049                           if test "x$LINE" != x ; then
3050                             eval "DEFAULT_$LINE"
3051                           else
3052                             no_cache=1
3053                           fi
3054
3055                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3056                         
3057 fi
3058
3059
3060           eval "$ac_cv_use_intl"
3061           if test "$no_cache" != 1; then
3062             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3063           fi
3064
3065           if test "$wxUSE_INTL" = yes; then
3066             echo "$ac_t""yes" 1>&6
3067           else
3068             echo "$ac_t""no" 1>&6
3069           fi
3070         
3071
3072           echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3073 echo "configure:3074: checking for --enable-config" >&5
3074           no_cache=0
3075           # Check whether --enable-config or --disable-config was given.
3076 if test "${enable_config+set}" = set; then
3077   enableval="$enable_config"
3078   
3079                           if test "$enableval" = yes; then
3080                             ac_cv_use_config='wxUSE_CONFIG=yes'
3081                           else
3082                             ac_cv_use_config='wxUSE_CONFIG=no'
3083                           fi
3084                         
3085 else
3086   
3087                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3088                           if test "x$LINE" != x ; then
3089                             eval "DEFAULT_$LINE"
3090                           else
3091                             no_cache=1
3092                           fi
3093
3094                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3095                         
3096 fi
3097
3098
3099           eval "$ac_cv_use_config"
3100           if test "$no_cache" != 1; then
3101             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3102           fi
3103
3104           if test "$wxUSE_CONFIG" = yes; then
3105             echo "$ac_t""yes" 1>&6
3106           else
3107             echo "$ac_t""no" 1>&6
3108           fi
3109         
3110
3111
3112           echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3113 echo "configure:3114: checking for --enable-protocols" >&5
3114           no_cache=0
3115           # Check whether --enable-protocols or --disable-protocols was given.
3116 if test "${enable_protocols+set}" = set; then
3117   enableval="$enable_protocols"
3118   
3119                           if test "$enableval" = yes; then
3120                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3121                           else
3122                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3123                           fi
3124                         
3125 else
3126   
3127                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3128                           if test "x$LINE" != x ; then
3129                             eval "DEFAULT_$LINE"
3130                           else
3131                             no_cache=1
3132                           fi
3133
3134                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3135                         
3136 fi
3137
3138
3139           eval "$ac_cv_use_protocols"
3140           if test "$no_cache" != 1; then
3141             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3142           fi
3143
3144           if test "$wxUSE_PROTOCOL" = yes; then
3145             echo "$ac_t""yes" 1>&6
3146           else
3147             echo "$ac_t""no" 1>&6
3148           fi
3149         
3150
3151           echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3152 echo "configure:3153: checking for --enable-ftp" >&5
3153           no_cache=0
3154           # Check whether --enable-ftp or --disable-ftp was given.
3155 if test "${enable_ftp+set}" = set; then
3156   enableval="$enable_ftp"
3157   
3158                           if test "$enableval" = yes; then
3159                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3160                           else
3161                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3162                           fi
3163                         
3164 else
3165   
3166                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3167                           if test "x$LINE" != x ; then
3168                             eval "DEFAULT_$LINE"
3169                           else
3170                             no_cache=1
3171                           fi
3172
3173                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3174                         
3175 fi
3176
3177
3178           eval "$ac_cv_use_ftp"
3179           if test "$no_cache" != 1; then
3180             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3181           fi
3182
3183           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3184             echo "$ac_t""yes" 1>&6
3185           else
3186             echo "$ac_t""no" 1>&6
3187           fi
3188         
3189
3190           echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3191 echo "configure:3192: checking for --enable-http" >&5
3192           no_cache=0
3193           # Check whether --enable-http or --disable-http was given.
3194 if test "${enable_http+set}" = set; then
3195   enableval="$enable_http"
3196   
3197                           if test "$enableval" = yes; then
3198                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3199                           else
3200                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3201                           fi
3202                         
3203 else
3204   
3205                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3206                           if test "x$LINE" != x ; then
3207                             eval "DEFAULT_$LINE"
3208                           else
3209                             no_cache=1
3210                           fi
3211
3212                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3213                         
3214 fi
3215
3216
3217           eval "$ac_cv_use_http"
3218           if test "$no_cache" != 1; then
3219             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3220           fi
3221
3222           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3223             echo "$ac_t""yes" 1>&6
3224           else
3225             echo "$ac_t""no" 1>&6
3226           fi
3227         
3228
3229           echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3230 echo "configure:3231: checking for --enable-fileproto" >&5
3231           no_cache=0
3232           # Check whether --enable-fileproto or --disable-fileproto was given.
3233 if test "${enable_fileproto+set}" = set; then
3234   enableval="$enable_fileproto"
3235   
3236                           if test "$enableval" = yes; then
3237                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3238                           else
3239                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3240                           fi
3241                         
3242 else
3243   
3244                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3252                         
3253 fi
3254
3255
3256           eval "$ac_cv_use_fileproto"
3257           if test "$no_cache" != 1; then
3258             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3259           fi
3260
3261           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3262             echo "$ac_t""yes" 1>&6
3263           else
3264             echo "$ac_t""no" 1>&6
3265           fi
3266         
3267
3268           echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3269 echo "configure:3270: checking for --enable-sockets" >&5
3270           no_cache=0
3271           # Check whether --enable-sockets or --disable-sockets was given.
3272 if test "${enable_sockets+set}" = set; then
3273   enableval="$enable_sockets"
3274   
3275                           if test "$enableval" = yes; then
3276                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3277                           else
3278                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3279                           fi
3280                         
3281 else
3282   
3283                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3284                           if test "x$LINE" != x ; then
3285                             eval "DEFAULT_$LINE"
3286                           else
3287                             no_cache=1
3288                           fi
3289
3290                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3291                         
3292 fi
3293
3294
3295           eval "$ac_cv_use_sockets"
3296           if test "$no_cache" != 1; then
3297             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3298           fi
3299
3300           if test "$wxUSE_SOCKETS" = yes; then
3301             echo "$ac_t""yes" 1>&6
3302           else
3303             echo "$ac_t""no" 1>&6
3304           fi
3305         
3306
3307
3308           echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3309 echo "configure:3310: checking for --enable-ipc" >&5
3310           no_cache=0
3311           # Check whether --enable-ipc or --disable-ipc was given.
3312 if test "${enable_ipc+set}" = set; then
3313   enableval="$enable_ipc"
3314   
3315                           if test "$enableval" = yes; then
3316                             ac_cv_use_ipc='wxUSE_IPC=yes'
3317                           else
3318                             ac_cv_use_ipc='wxUSE_IPC=no'
3319                           fi
3320                         
3321 else
3322   
3323                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3324                           if test "x$LINE" != x ; then
3325                             eval "DEFAULT_$LINE"
3326                           else
3327                             no_cache=1
3328                           fi
3329
3330                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3331                         
3332 fi
3333
3334
3335           eval "$ac_cv_use_ipc"
3336           if test "$no_cache" != 1; then
3337             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3338           fi
3339
3340           if test "$wxUSE_IPC" = yes; then
3341             echo "$ac_t""yes" 1>&6
3342           else
3343             echo "$ac_t""no" 1>&6
3344           fi
3345         
3346
3347
3348           echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3349 echo "configure:3350: checking for --enable-cmdline" >&5
3350           no_cache=0
3351           # Check whether --enable-cmdline or --disable-cmdline was given.
3352 if test "${enable_cmdline+set}" = set; then
3353   enableval="$enable_cmdline"
3354   
3355                           if test "$enableval" = yes; then
3356                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3357                           else
3358                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3359                           fi
3360                         
3361 else
3362   
3363                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3364                           if test "x$LINE" != x ; then
3365                             eval "DEFAULT_$LINE"
3366                           else
3367                             no_cache=1
3368                           fi
3369
3370                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3371                         
3372 fi
3373
3374
3375           eval "$ac_cv_use_cmdline"
3376           if test "$no_cache" != 1; then
3377             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3378           fi
3379
3380           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3381             echo "$ac_t""yes" 1>&6
3382           else
3383             echo "$ac_t""no" 1>&6
3384           fi
3385         
3386
3387           echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3388 echo "configure:3389: checking for --enable-datetime" >&5
3389           no_cache=0
3390           # Check whether --enable-datetime or --disable-datetime was given.
3391 if test "${enable_datetime+set}" = set; then
3392   enableval="$enable_datetime"
3393   
3394                           if test "$enableval" = yes; then
3395                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3396                           else
3397                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3398                           fi
3399                         
3400 else
3401   
3402                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3403                           if test "x$LINE" != x ; then
3404                             eval "DEFAULT_$LINE"
3405                           else
3406                             no_cache=1
3407                           fi
3408
3409                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3410                         
3411 fi
3412
3413
3414           eval "$ac_cv_use_datetime"
3415           if test "$no_cache" != 1; then
3416             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3417           fi
3418
3419           if test "$wxUSE_DATETIME" = yes; then
3420             echo "$ac_t""yes" 1>&6
3421           else
3422             echo "$ac_t""no" 1>&6
3423           fi
3424         
3425
3426           echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3427 echo "configure:3428: checking for --enable-timedate" >&5
3428           no_cache=0
3429           # Check whether --enable-timedate or --disable-timedate was given.
3430 if test "${enable_timedate+set}" = set; then
3431   enableval="$enable_timedate"
3432   
3433                           if test "$enableval" = yes; then
3434                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3435                           else
3436                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3437                           fi
3438                         
3439 else
3440   
3441                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3442                           if test "x$LINE" != x ; then
3443                             eval "DEFAULT_$LINE"
3444                           else
3445                             no_cache=1
3446                           fi
3447
3448                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3449                         
3450 fi
3451
3452
3453           eval "$ac_cv_use_timedate"
3454           if test "$no_cache" != 1; then
3455             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3456           fi
3457
3458           if test "$wxUSE_TIMEDATE" = yes; then
3459             echo "$ac_t""yes" 1>&6
3460           else
3461             echo "$ac_t""no" 1>&6
3462           fi
3463         
3464
3465           echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3466 echo "configure:3467: checking for --enable-stopwatch" >&5
3467           no_cache=0
3468           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3469 if test "${enable_stopwatch+set}" = set; then
3470   enableval="$enable_stopwatch"
3471   
3472                           if test "$enableval" = yes; then
3473                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3474                           else
3475                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3476                           fi
3477                         
3478 else
3479   
3480                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3481                           if test "x$LINE" != x ; then
3482                             eval "DEFAULT_$LINE"
3483                           else
3484                             no_cache=1
3485                           fi
3486
3487                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3488                         
3489 fi
3490
3491
3492           eval "$ac_cv_use_stopwatch"
3493           if test "$no_cache" != 1; then
3494             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3495           fi
3496
3497           if test "$wxUSE_STOPWATCH" = yes; then
3498             echo "$ac_t""yes" 1>&6
3499           else
3500             echo "$ac_t""no" 1>&6
3501           fi
3502         
3503
3504           echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3505 echo "configure:3506: checking for --enable-dialupman" >&5
3506           no_cache=0
3507           # Check whether --enable-dialupman or --disable-dialupman was given.
3508 if test "${enable_dialupman+set}" = set; then
3509   enableval="$enable_dialupman"
3510   
3511                           if test "$enableval" = yes; then
3512                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3513                           else
3514                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3515                           fi
3516                         
3517 else
3518   
3519                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3520                           if test "x$LINE" != x ; then
3521                             eval "DEFAULT_$LINE"
3522                           else
3523                             no_cache=1
3524                           fi
3525
3526                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3527                         
3528 fi
3529
3530
3531           eval "$ac_cv_use_dialupman"
3532           if test "$no_cache" != 1; then
3533             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3534           fi
3535
3536           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3537             echo "$ac_t""yes" 1>&6
3538           else
3539             echo "$ac_t""no" 1>&6
3540           fi
3541         
3542
3543           echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3544 echo "configure:3545: checking for --enable-apple_ieee" >&5
3545           no_cache=0
3546           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3547 if test "${enable_apple_ieee+set}" = set; then
3548   enableval="$enable_apple_ieee"
3549   
3550                           if test "$enableval" = yes; then
3551                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3552                           else
3553                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3554                           fi
3555                         
3556 else
3557   
3558                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3559                           if test "x$LINE" != x ; then
3560                             eval "DEFAULT_$LINE"
3561                           else
3562                             no_cache=1
3563                           fi
3564
3565                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3566                         
3567 fi
3568
3569
3570           eval "$ac_cv_use_apple_ieee"
3571           if test "$no_cache" != 1; then
3572             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3573           fi
3574
3575           if test "$wxUSE_APPLE_IEEE" = yes; then
3576             echo "$ac_t""yes" 1>&6
3577           else
3578             echo "$ac_t""no" 1>&6
3579           fi
3580         
3581
3582           echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3583 echo "configure:3584: checking for --enable-timer" >&5
3584           no_cache=0
3585           # Check whether --enable-timer or --disable-timer was given.
3586 if test "${enable_timer+set}" = set; then
3587   enableval="$enable_timer"
3588   
3589                           if test "$enableval" = yes; then
3590                             ac_cv_use_timer='wxUSE_TIMER=yes'
3591                           else
3592                             ac_cv_use_timer='wxUSE_TIMER=no'
3593                           fi
3594                         
3595 else
3596   
3597                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3598                           if test "x$LINE" != x ; then
3599                             eval "DEFAULT_$LINE"
3600                           else
3601                             no_cache=1
3602                           fi
3603
3604                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3605                         
3606 fi
3607
3608
3609           eval "$ac_cv_use_timer"
3610           if test "$no_cache" != 1; then
3611             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3612           fi
3613
3614           if test "$wxUSE_TIMER" = yes; then
3615             echo "$ac_t""yes" 1>&6
3616           else
3617             echo "$ac_t""no" 1>&6
3618           fi
3619         
3620
3621           echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3622 echo "configure:3623: checking for --enable-wave" >&5
3623           no_cache=0
3624           # Check whether --enable-wave or --disable-wave was given.
3625 if test "${enable_wave+set}" = set; then
3626   enableval="$enable_wave"
3627   
3628                           if test "$enableval" = yes; then
3629                             ac_cv_use_wave='wxUSE_WAVE=yes'
3630                           else
3631                             ac_cv_use_wave='wxUSE_WAVE=no'
3632                           fi
3633                         
3634 else
3635   
3636                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3637                           if test "x$LINE" != x ; then
3638                             eval "DEFAULT_$LINE"
3639                           else
3640                             no_cache=1
3641                           fi
3642
3643                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3644                         
3645 fi
3646
3647
3648           eval "$ac_cv_use_wave"
3649           if test "$no_cache" != 1; then
3650             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3651           fi
3652
3653           if test "$wxUSE_WAVE" = yes; then
3654             echo "$ac_t""yes" 1>&6
3655           else
3656             echo "$ac_t""no" 1>&6
3657           fi
3658         
3659
3660           echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3661 echo "configure:3662: checking for --enable-fraction" >&5
3662           no_cache=0
3663           # Check whether --enable-fraction or --disable-fraction was given.
3664 if test "${enable_fraction+set}" = set; then
3665   enableval="$enable_fraction"
3666   
3667                           if test "$enableval" = yes; then
3668                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3669                           else
3670                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3671                           fi
3672                         
3673 else
3674   
3675                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3676                           if test "x$LINE" != x ; then
3677                             eval "DEFAULT_$LINE"
3678                           else
3679                             no_cache=1
3680                           fi
3681
3682                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3683                         
3684 fi
3685
3686
3687           eval "$ac_cv_use_fraction"
3688           if test "$no_cache" != 1; then
3689             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3690           fi
3691
3692           if test "$wxUSE_FRACTION" = yes; then
3693             echo "$ac_t""yes" 1>&6
3694           else
3695             echo "$ac_t""no" 1>&6
3696           fi
3697         
3698
3699           echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3700 echo "configure:3701: checking for --enable-dynlib" >&5
3701           no_cache=0
3702           # Check whether --enable-dynlib or --disable-dynlib was given.
3703 if test "${enable_dynlib+set}" = set; then
3704   enableval="$enable_dynlib"
3705   
3706                           if test "$enableval" = yes; then
3707                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3708                           else
3709                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3710                           fi
3711                         
3712 else
3713   
3714                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3715                           if test "x$LINE" != x ; then
3716                             eval "DEFAULT_$LINE"
3717                           else
3718                             no_cache=1
3719                           fi
3720
3721                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3722                         
3723 fi
3724
3725
3726           eval "$ac_cv_use_dynlib"
3727           if test "$no_cache" != 1; then
3728             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3729           fi
3730
3731           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3732             echo "$ac_t""yes" 1>&6
3733           else
3734             echo "$ac_t""no" 1>&6
3735           fi
3736         
3737
3738           echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3739 echo "configure:3740: checking for --enable-dynamicloader" >&5
3740           no_cache=0
3741           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3742 if test "${enable_dynamicloader+set}" = set; then
3743   enableval="$enable_dynamicloader"
3744   
3745                           if test "$enableval" = yes; then
3746                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3747                           else
3748                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3749                           fi
3750                         
3751 else
3752   
3753                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3754                           if test "x$LINE" != x ; then
3755                             eval "DEFAULT_$LINE"
3756                           else
3757                             no_cache=1
3758                           fi
3759
3760                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3761                         
3762 fi
3763
3764
3765           eval "$ac_cv_use_dynamicloader"
3766           if test "$no_cache" != 1; then
3767             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3768           fi
3769
3770           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3771             echo "$ac_t""yes" 1>&6
3772           else
3773             echo "$ac_t""no" 1>&6
3774           fi
3775         
3776
3777           echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3778 echo "configure:3779: checking for --enable-longlong" >&5
3779           no_cache=0
3780           # Check whether --enable-longlong or --disable-longlong was given.
3781 if test "${enable_longlong+set}" = set; then
3782   enableval="$enable_longlong"
3783   
3784                           if test "$enableval" = yes; then
3785                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3786                           else
3787                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3788                           fi
3789                         
3790 else
3791   
3792                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3793                           if test "x$LINE" != x ; then
3794                             eval "DEFAULT_$LINE"
3795                           else
3796                             no_cache=1
3797                           fi
3798
3799                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3800                         
3801 fi
3802
3803
3804           eval "$ac_cv_use_longlong"
3805           if test "$no_cache" != 1; then
3806             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3807           fi
3808
3809           if test "$wxUSE_LONGLONG" = yes; then
3810             echo "$ac_t""yes" 1>&6
3811           else
3812             echo "$ac_t""no" 1>&6
3813           fi
3814         
3815
3816           echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3817 echo "configure:3818: checking for --enable-geometry" >&5
3818           no_cache=0
3819           # Check whether --enable-geometry or --disable-geometry was given.
3820 if test "${enable_geometry+set}" = set; then
3821   enableval="$enable_geometry"
3822   
3823                           if test "$enableval" = yes; then
3824                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3825                           else
3826                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3827                           fi
3828                         
3829 else
3830   
3831                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3832                           if test "x$LINE" != x ; then
3833                             eval "DEFAULT_$LINE"
3834                           else
3835                             no_cache=1
3836                           fi
3837
3838                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3839                         
3840 fi
3841
3842
3843           eval "$ac_cv_use_geometry"
3844           if test "$no_cache" != 1; then
3845             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3846           fi
3847
3848           if test "$wxUSE_GEOMETRY" = yes; then
3849             echo "$ac_t""yes" 1>&6
3850           else
3851             echo "$ac_t""no" 1>&6
3852           fi
3853         
3854
3855           echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3856 echo "configure:3857: checking for --enable-log" >&5
3857           no_cache=0
3858           # Check whether --enable-log or --disable-log was given.
3859 if test "${enable_log+set}" = set; then
3860   enableval="$enable_log"
3861   
3862                           if test "$enableval" = yes; then
3863                             ac_cv_use_log='wxUSE_LOG=yes'
3864                           else
3865                             ac_cv_use_log='wxUSE_LOG=no'
3866                           fi
3867                         
3868 else
3869   
3870                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3871                           if test "x$LINE" != x ; then
3872                             eval "DEFAULT_$LINE"
3873                           else
3874                             no_cache=1
3875                           fi
3876
3877                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3878                         
3879 fi
3880
3881
3882           eval "$ac_cv_use_log"
3883           if test "$no_cache" != 1; then
3884             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3885           fi
3886
3887           if test "$wxUSE_LOG" = yes; then
3888             echo "$ac_t""yes" 1>&6
3889           else
3890             echo "$ac_t""no" 1>&6
3891           fi
3892         
3893
3894           echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3895 echo "configure:3896: checking for --enable-streams" >&5
3896           no_cache=0
3897           # Check whether --enable-streams or --disable-streams was given.
3898 if test "${enable_streams+set}" = set; then
3899   enableval="$enable_streams"
3900   
3901                           if test "$enableval" = yes; then
3902                             ac_cv_use_streams='wxUSE_STREAMS=yes'
3903                           else
3904                             ac_cv_use_streams='wxUSE_STREAMS=no'
3905                           fi
3906                         
3907 else
3908   
3909                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3910                           if test "x$LINE" != x ; then
3911                             eval "DEFAULT_$LINE"
3912                           else
3913                             no_cache=1
3914                           fi
3915
3916                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3917                         
3918 fi
3919
3920
3921           eval "$ac_cv_use_streams"
3922           if test "$no_cache" != 1; then
3923             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3924           fi
3925
3926           if test "$wxUSE_STREAMS" = yes; then
3927             echo "$ac_t""yes" 1>&6
3928           else
3929             echo "$ac_t""no" 1>&6
3930           fi
3931         
3932
3933           echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3934 echo "configure:3935: checking for --enable-file" >&5
3935           no_cache=0
3936           # Check whether --enable-file or --disable-file was given.
3937 if test "${enable_file+set}" = set; then
3938   enableval="$enable_file"
3939   
3940                           if test "$enableval" = yes; then
3941                             ac_cv_use_file='wxUSE_FILE=yes'
3942                           else
3943                             ac_cv_use_file='wxUSE_FILE=no'
3944                           fi
3945                         
3946 else
3947   
3948                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3949                           if test "x$LINE" != x ; then
3950                             eval "DEFAULT_$LINE"
3951                           else
3952                             no_cache=1
3953                           fi
3954
3955                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3956                         
3957 fi
3958
3959
3960           eval "$ac_cv_use_file"
3961           if test "$no_cache" != 1; then
3962             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3963           fi
3964
3965           if test "$wxUSE_FILE" = yes; then
3966             echo "$ac_t""yes" 1>&6
3967           else
3968             echo "$ac_t""no" 1>&6
3969           fi
3970         
3971
3972           echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3973 echo "configure:3974: checking for --enable-ffile" >&5
3974           no_cache=0
3975           # Check whether --enable-ffile or --disable-ffile was given.
3976 if test "${enable_ffile+set}" = set; then
3977   enableval="$enable_ffile"
3978   
3979                           if test "$enableval" = yes; then
3980                             ac_cv_use_ffile='wxUSE_FFILE=yes'
3981                           else
3982                             ac_cv_use_ffile='wxUSE_FFILE=no'
3983                           fi
3984                         
3985 else
3986   
3987                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3988                           if test "x$LINE" != x ; then
3989                             eval "DEFAULT_$LINE"
3990                           else
3991                             no_cache=1
3992                           fi
3993
3994                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3995                         
3996 fi
3997
3998
3999           eval "$ac_cv_use_ffile"
4000           if test "$no_cache" != 1; then
4001             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4002           fi
4003
4004           if test "$wxUSE_FFILE" = yes; then
4005             echo "$ac_t""yes" 1>&6
4006           else
4007             echo "$ac_t""no" 1>&6
4008           fi
4009         
4010
4011           echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4012 echo "configure:4013: checking for --enable-textbuf" >&5
4013           no_cache=0
4014           # Check whether --enable-textbuf or --disable-textbuf was given.
4015 if test "${enable_textbuf+set}" = set; then
4016   enableval="$enable_textbuf"
4017   
4018                           if test "$enableval" = yes; then
4019                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4020                           else
4021                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4022                           fi
4023                         
4024 else
4025   
4026                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4027                           if test "x$LINE" != x ; then
4028                             eval "DEFAULT_$LINE"
4029                           else
4030                             no_cache=1
4031                           fi
4032
4033                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4034                         
4035 fi
4036
4037
4038           eval "$ac_cv_use_textbuf"
4039           if test "$no_cache" != 1; then
4040             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4041           fi
4042
4043           if test "$wxUSE_TEXTBUFFER" = yes; then
4044             echo "$ac_t""yes" 1>&6
4045           else
4046             echo "$ac_t""no" 1>&6
4047           fi
4048         
4049
4050           echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4051 echo "configure:4052: checking for --enable-textfile" >&5
4052           no_cache=0
4053           # Check whether --enable-textfile or --disable-textfile was given.
4054 if test "${enable_textfile+set}" = set; then
4055   enableval="$enable_textfile"
4056   
4057                           if test "$enableval" = yes; then
4058                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4059                           else
4060                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4061                           fi
4062                         
4063 else
4064   
4065                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4066                           if test "x$LINE" != x ; then
4067                             eval "DEFAULT_$LINE"
4068                           else
4069                             no_cache=1
4070                           fi
4071
4072                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4073                         
4074 fi
4075
4076
4077           eval "$ac_cv_use_textfile"
4078           if test "$no_cache" != 1; then
4079             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4080           fi
4081
4082           if test "$wxUSE_TEXTFILE" = yes; then
4083             echo "$ac_t""yes" 1>&6
4084           else
4085             echo "$ac_t""no" 1>&6
4086           fi
4087         
4088
4089           echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4090 echo "configure:4091: checking for --enable-fontmap" >&5
4091           no_cache=0
4092           # Check whether --enable-fontmap or --disable-fontmap was given.
4093 if test "${enable_fontmap+set}" = set; then
4094   enableval="$enable_fontmap"
4095   
4096                           if test "$enableval" = yes; then
4097                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4098                           else
4099                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4100                           fi
4101                         
4102 else
4103   
4104                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4105                           if test "x$LINE" != x ; then
4106                             eval "DEFAULT_$LINE"
4107                           else
4108                             no_cache=1
4109                           fi
4110
4111                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4112                         
4113 fi
4114
4115
4116           eval "$ac_cv_use_fontmap"
4117           if test "$no_cache" != 1; then
4118             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4119           fi
4120
4121           if test "$wxUSE_FONTMAP" = yes; then
4122             echo "$ac_t""yes" 1>&6
4123           else
4124             echo "$ac_t""no" 1>&6
4125           fi
4126         
4127
4128           echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4129 echo "configure:4130: checking for --enable-unicode" >&5
4130           no_cache=0
4131           # Check whether --enable-unicode or --disable-unicode was given.
4132 if test "${enable_unicode+set}" = set; then
4133   enableval="$enable_unicode"
4134   
4135                           if test "$enableval" = yes; then
4136                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4137                           else
4138                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4139                           fi
4140                         
4141 else
4142   
4143                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4144                           if test "x$LINE" != x ; then
4145                             eval "DEFAULT_$LINE"
4146                           else
4147                             no_cache=1
4148                           fi
4149
4150                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4151                         
4152 fi
4153
4154
4155           eval "$ac_cv_use_unicode"
4156           if test "$no_cache" != 1; then
4157             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4158           fi
4159
4160           if test "$wxUSE_UNICODE" = yes; then
4161             echo "$ac_t""yes" 1>&6
4162           else
4163             echo "$ac_t""no" 1>&6
4164           fi
4165         
4166
4167           echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4168 echo "configure:4169: checking for --enable-mslu" >&5
4169           no_cache=0
4170           # Check whether --enable-mslu or --disable-mslu was given.
4171 if test "${enable_mslu+set}" = set; then
4172   enableval="$enable_mslu"
4173   
4174                           if test "$enableval" = yes; then
4175                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4176                           else
4177                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4178                           fi
4179                         
4180 else
4181   
4182                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4183                           if test "x$LINE" != x ; then
4184                             eval "DEFAULT_$LINE"
4185                           else
4186                             no_cache=1
4187                           fi
4188
4189                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4190                         
4191 fi
4192
4193
4194           eval "$ac_cv_use_mslu"
4195           if test "$no_cache" != 1; then
4196             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4197           fi
4198
4199           if test "$wxUSE_UNICODE_MSLU" = yes; then
4200             echo "$ac_t""yes" 1>&6
4201           else
4202             echo "$ac_t""no" 1>&6
4203           fi
4204         
4205
4206           echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4207 echo "configure:4208: checking for --enable-wxprintfv" >&5
4208           no_cache=0
4209           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4210 if test "${enable_wxprintfv+set}" = set; then
4211   enableval="$enable_wxprintfv"
4212   
4213                           if test "$enableval" = yes; then
4214                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4215                           else
4216                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4217                           fi
4218                         
4219 else
4220   
4221                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4222                           if test "x$LINE" != x ; then
4223                             eval "DEFAULT_$LINE"
4224                           else
4225                             no_cache=1
4226                           fi
4227
4228                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4229                         
4230 fi
4231
4232
4233           eval "$ac_cv_use_wxprintfv"
4234           if test "$no_cache" != 1; then
4235             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4236           fi
4237
4238           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4239             echo "$ac_t""yes" 1>&6
4240           else
4241             echo "$ac_t""no" 1>&6
4242           fi
4243         
4244
4245           echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4246 echo "configure:4247: checking for --enable-std_iostreams" >&5
4247           no_cache=0
4248           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4249 if test "${enable_std_iostreams+set}" = set; then
4250   enableval="$enable_std_iostreams"
4251   
4252                           if test "$enableval" = yes; then
4253                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4254                           else
4255                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4256                           fi
4257                         
4258 else
4259   
4260                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4261                           if test "x$LINE" != x ; then
4262                             eval "DEFAULT_$LINE"
4263                           else
4264                             no_cache=1
4265                           fi
4266
4267                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4268                         
4269 fi
4270
4271
4272           eval "$ac_cv_use_std_iostreams"
4273           if test "$no_cache" != 1; then
4274             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4275           fi
4276
4277           if test "$wxUSE_STD_IOSTREAM" = yes; then
4278             echo "$ac_t""yes" 1>&6
4279           else
4280             echo "$ac_t""no" 1>&6
4281           fi
4282         
4283
4284           echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4285 echo "configure:4286: checking for --enable-filesystem" >&5
4286           no_cache=0
4287           # Check whether --enable-filesystem or --disable-filesystem was given.
4288 if test "${enable_filesystem+set}" = set; then
4289   enableval="$enable_filesystem"
4290   
4291                           if test "$enableval" = yes; then
4292                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4293                           else
4294                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4295                           fi
4296                         
4297 else
4298   
4299                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4300                           if test "x$LINE" != x ; then
4301                             eval "DEFAULT_$LINE"
4302                           else
4303                             no_cache=1
4304                           fi
4305
4306                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4307                         
4308 fi
4309
4310
4311           eval "$ac_cv_use_filesystem"
4312           if test "$no_cache" != 1; then
4313             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4314           fi
4315
4316           if test "$wxUSE_FILESYSTEM" = yes; then
4317             echo "$ac_t""yes" 1>&6
4318           else
4319             echo "$ac_t""no" 1>&6
4320           fi
4321         
4322
4323           echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4324 echo "configure:4325: checking for --enable-fs_inet" >&5
4325           no_cache=0
4326           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4327 if test "${enable_fs_inet+set}" = set; then
4328   enableval="$enable_fs_inet"
4329   
4330                           if test "$enableval" = yes; then
4331                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4332                           else
4333                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4334                           fi
4335                         
4336 else
4337   
4338                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4339                           if test "x$LINE" != x ; then
4340                             eval "DEFAULT_$LINE"
4341                           else
4342                             no_cache=1
4343                           fi
4344
4345                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4346                         
4347 fi
4348
4349
4350           eval "$ac_cv_use_fs_inet"
4351           if test "$no_cache" != 1; then
4352             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4353           fi
4354
4355           if test "$wxUSE_FS_INET" = yes; then
4356             echo "$ac_t""yes" 1>&6
4357           else
4358             echo "$ac_t""no" 1>&6
4359           fi
4360         
4361
4362           echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4363 echo "configure:4364: checking for --enable-fs_zip" >&5
4364           no_cache=0
4365           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4366 if test "${enable_fs_zip+set}" = set; then
4367   enableval="$enable_fs_zip"
4368   
4369                           if test "$enableval" = yes; then
4370                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4371                           else
4372                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4373                           fi
4374                         
4375 else
4376   
4377                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4378                           if test "x$LINE" != x ; then
4379                             eval "DEFAULT_$LINE"
4380                           else
4381                             no_cache=1
4382                           fi
4383
4384                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4385                         
4386 fi
4387
4388
4389           eval "$ac_cv_use_fs_zip"
4390           if test "$no_cache" != 1; then
4391             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4392           fi
4393
4394           if test "$wxUSE_FS_ZIP" = yes; then
4395             echo "$ac_t""yes" 1>&6
4396           else
4397             echo "$ac_t""no" 1>&6
4398           fi
4399         
4400
4401           echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4402 echo "configure:4403: checking for --enable-zipstream" >&5
4403           no_cache=0
4404           # Check whether --enable-zipstream or --disable-zipstream was given.
4405 if test "${enable_zipstream+set}" = set; then
4406   enableval="$enable_zipstream"
4407   
4408                           if test "$enableval" = yes; then
4409                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4410                           else
4411                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4412                           fi
4413                         
4414 else
4415   
4416                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4417                           if test "x$LINE" != x ; then
4418                             eval "DEFAULT_$LINE"
4419                           else
4420                             no_cache=1
4421                           fi
4422
4423                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4424                         
4425 fi
4426
4427
4428           eval "$ac_cv_use_zipstream"
4429           if test "$no_cache" != 1; then
4430             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4431           fi
4432
4433           if test "$wxUSE_ZIPSTREAM" = yes; then
4434             echo "$ac_t""yes" 1>&6
4435           else
4436             echo "$ac_t""no" 1>&6
4437           fi
4438         
4439
4440
4441           echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4442 echo "configure:4443: checking for --enable-catch_segvs" >&5
4443           no_cache=0
4444           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4445 if test "${enable_catch_segvs+set}" = set; then
4446   enableval="$enable_catch_segvs"
4447   
4448                           if test "$enableval" = yes; then
4449                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4450                           else
4451                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4452                           fi
4453                         
4454 else
4455   
4456                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4457                           if test "x$LINE" != x ; then
4458                             eval "DEFAULT_$LINE"
4459                           else
4460                             no_cache=1
4461                           fi
4462
4463                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4464                         
4465 fi
4466
4467
4468           eval "$ac_cv_use_catch_segvs"
4469           if test "$no_cache" != 1; then
4470             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4471           fi
4472
4473           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4474             echo "$ac_t""yes" 1>&6
4475           else
4476             echo "$ac_t""no" 1>&6
4477           fi
4478         
4479
4480           echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4481 echo "configure:4482: checking for --enable-snglinst" >&5
4482           no_cache=0
4483           # Check whether --enable-snglinst or --disable-snglinst was given.
4484 if test "${enable_snglinst+set}" = set; then
4485   enableval="$enable_snglinst"
4486   
4487                           if test "$enableval" = yes; then
4488                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4489                           else
4490                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4491                           fi
4492                         
4493 else
4494   
4495                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4496                           if test "x$LINE" != x ; then
4497                             eval "DEFAULT_$LINE"
4498                           else
4499                             no_cache=1
4500                           fi
4501
4502                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4503                         
4504 fi
4505
4506
4507           eval "$ac_cv_use_snglinst"
4508           if test "$no_cache" != 1; then
4509             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4510           fi
4511
4512           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4513             echo "$ac_t""yes" 1>&6
4514           else
4515             echo "$ac_t""no" 1>&6
4516           fi
4517         
4518
4519
4520           echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4521 echo "configure:4522: checking for --enable-mimetype" >&5
4522           no_cache=0
4523           # Check whether --enable-mimetype or --disable-mimetype was given.
4524 if test "${enable_mimetype+set}" = set; then
4525   enableval="$enable_mimetype"
4526   
4527                           if test "$enableval" = yes; then
4528                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4529                           else
4530                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4531                           fi
4532                         
4533 else
4534   
4535                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4536                           if test "x$LINE" != x ; then
4537                             eval "DEFAULT_$LINE"
4538                           else
4539                             no_cache=1
4540                           fi
4541
4542                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4543                         
4544 fi
4545
4546
4547           eval "$ac_cv_use_mimetype"
4548           if test "$no_cache" != 1; then
4549             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4550           fi
4551
4552           if test "$wxUSE_MIMETYPE" = yes; then
4553             echo "$ac_t""yes" 1>&6
4554           else
4555             echo "$ac_t""no" 1>&6
4556           fi
4557         
4558
4559           echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4560 echo "configure:4561: checking for --enable-system_options" >&5
4561           no_cache=0
4562           # Check whether --enable-system_options or --disable-system_options was given.
4563 if test "${enable_system_options+set}" = set; then
4564   enableval="$enable_system_options"
4565   
4566                           if test "$enableval" = yes; then
4567                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4568                           else
4569                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4570                           fi
4571                         
4572 else
4573   
4574                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4575                           if test "x$LINE" != x ; then
4576                             eval "DEFAULT_$LINE"
4577                           else
4578                             no_cache=1
4579                           fi
4580
4581                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4582                         
4583 fi
4584
4585
4586           eval "$ac_cv_use_system_options"
4587           if test "$no_cache" != 1; then
4588             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4589           fi
4590
4591           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4592             echo "$ac_t""yes" 1>&6
4593           else
4594             echo "$ac_t""no" 1>&6
4595           fi
4596         
4597
4598
4599           echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4600 echo "configure:4601: checking for --enable-url" >&5
4601           no_cache=0
4602           # Check whether --enable-url or --disable-url was given.
4603 if test "${enable_url+set}" = set; then
4604   enableval="$enable_url"
4605   
4606                           if test "$enableval" = yes; then
4607                             ac_cv_use_url='wxUSE_URL=yes'
4608                           else
4609                             ac_cv_use_url='wxUSE_URL=no'
4610                           fi
4611                         
4612 else
4613   
4614                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4615                           if test "x$LINE" != x ; then
4616                             eval "DEFAULT_$LINE"
4617                           else
4618                             no_cache=1
4619                           fi
4620
4621                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4622                         
4623 fi
4624
4625
4626           eval "$ac_cv_use_url"
4627           if test "$no_cache" != 1; then
4628             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4629           fi
4630
4631           if test "$wxUSE_URL" = yes; then
4632             echo "$ac_t""yes" 1>&6
4633           else
4634             echo "$ac_t""no" 1>&6
4635           fi
4636         
4637
4638           echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4639 echo "configure:4640: checking for --enable-protocol" >&5
4640           no_cache=0
4641           # Check whether --enable-protocol or --disable-protocol was given.
4642 if test "${enable_protocol+set}" = set; then
4643   enableval="$enable_protocol"
4644   
4645                           if test "$enableval" = yes; then
4646                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4647                           else
4648                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4649                           fi
4650                         
4651 else
4652   
4653                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4654                           if test "x$LINE" != x ; then
4655                             eval "DEFAULT_$LINE"
4656                           else
4657                             no_cache=1
4658                           fi
4659
4660                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4661                         
4662 fi
4663
4664
4665           eval "$ac_cv_use_protocol"
4666           if test "$no_cache" != 1; then
4667             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4668           fi
4669
4670           if test "$wxUSE_PROTOCOL" = yes; then
4671             echo "$ac_t""yes" 1>&6
4672           else
4673             echo "$ac_t""no" 1>&6
4674           fi
4675         
4676
4677           echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4678 echo "configure:4679: checking for --enable-protocol_http" >&5
4679           no_cache=0
4680           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4681 if test "${enable_protocol_http+set}" = set; then
4682   enableval="$enable_protocol_http"
4683   
4684                           if test "$enableval" = yes; then
4685                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4686                           else
4687                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4688                           fi
4689                         
4690 else
4691   
4692                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4693                           if test "x$LINE" != x ; then
4694                             eval "DEFAULT_$LINE"
4695                           else
4696                             no_cache=1
4697                           fi
4698
4699                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4700                         
4701 fi
4702
4703
4704           eval "$ac_cv_use_protocol_http"
4705           if test "$no_cache" != 1; then
4706             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4707           fi
4708
4709           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4710             echo "$ac_t""yes" 1>&6
4711           else
4712             echo "$ac_t""no" 1>&6
4713           fi
4714         
4715
4716           echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4717 echo "configure:4718: checking for --enable-protocol_ftp" >&5
4718           no_cache=0
4719           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4720 if test "${enable_protocol_ftp+set}" = set; then
4721   enableval="$enable_protocol_ftp"
4722   
4723                           if test "$enableval" = yes; then
4724                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4725                           else
4726                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4727                           fi
4728                         
4729 else
4730   
4731                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4732                           if test "x$LINE" != x ; then
4733                             eval "DEFAULT_$LINE"
4734                           else
4735                             no_cache=1
4736                           fi
4737
4738                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4739                         
4740 fi
4741
4742
4743           eval "$ac_cv_use_protocol_ftp"
4744           if test "$no_cache" != 1; then
4745             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4746           fi
4747
4748           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4749             echo "$ac_t""yes" 1>&6
4750           else
4751             echo "$ac_t""no" 1>&6
4752           fi
4753         
4754
4755           echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4756 echo "configure:4757: checking for --enable-protocol_file" >&5
4757           no_cache=0
4758           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4759 if test "${enable_protocol_file+set}" = set; then
4760   enableval="$enable_protocol_file"
4761   
4762                           if test "$enableval" = yes; then
4763                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4764                           else
4765                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4766                           fi
4767                         
4768 else
4769   
4770                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4771                           if test "x$LINE" != x ; then
4772                             eval "DEFAULT_$LINE"
4773                           else
4774                             no_cache=1
4775                           fi
4776
4777                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4778                         
4779 fi
4780
4781
4782           eval "$ac_cv_use_protocol_file"
4783           if test "$no_cache" != 1; then
4784             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4785           fi
4786
4787           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4788             echo "$ac_t""yes" 1>&6
4789           else
4790             echo "$ac_t""no" 1>&6
4791           fi
4792         
4793
4794
4795
4796
4797           echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4798 echo "configure:4799: checking for --enable-threads" >&5
4799           no_cache=0
4800           # Check whether --enable-threads or --disable-threads was given.
4801 if test "${enable_threads+set}" = set; then
4802   enableval="$enable_threads"
4803   
4804                           if test "$enableval" = yes; then
4805                             ac_cv_use_threads='wxUSE_THREADS=yes'
4806                           else
4807                             ac_cv_use_threads='wxUSE_THREADS=no'
4808                           fi
4809                         
4810 else
4811   
4812                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4813                           if test "x$LINE" != x ; then
4814                             eval "DEFAULT_$LINE"
4815                           else
4816                             no_cache=1
4817                           fi
4818
4819                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4820                         
4821 fi
4822
4823
4824           eval "$ac_cv_use_threads"
4825           if test "$no_cache" != 1; then
4826             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4827           fi
4828
4829           if test "$wxUSE_THREADS" = yes; then
4830             echo "$ac_t""yes" 1>&6
4831           else
4832             echo "$ac_t""no" 1>&6
4833           fi
4834         
4835
4836 if test "$wxUSE_GUI" = "yes"; then
4837
4838
4839
4840           echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4841 echo "configure:4842: checking for --enable-docview" >&5
4842           no_cache=0
4843           # Check whether --enable-docview or --disable-docview was given.
4844 if test "${enable_docview+set}" = set; then
4845   enableval="$enable_docview"
4846   
4847                           if test "$enableval" = yes; then
4848                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4849                           else
4850                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4851                           fi
4852                         
4853 else
4854   
4855                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4856                           if test "x$LINE" != x ; then
4857                             eval "DEFAULT_$LINE"
4858                           else
4859                             no_cache=1
4860                           fi
4861
4862                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4863                         
4864 fi
4865
4866
4867           eval "$ac_cv_use_docview"
4868           if test "$no_cache" != 1; then
4869             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4870           fi
4871
4872           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4873             echo "$ac_t""yes" 1>&6
4874           else
4875             echo "$ac_t""no" 1>&6
4876           fi
4877         
4878
4879           echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4880 echo "configure:4881: checking for --enable-help" >&5
4881           no_cache=0
4882           # Check whether --enable-help or --disable-help was given.
4883 if test "${enable_help+set}" = set; then
4884   enableval="$enable_help"
4885   
4886                           if test "$enableval" = yes; then
4887                             ac_cv_use_help='wxUSE_HELP=yes'
4888                           else
4889                             ac_cv_use_help='wxUSE_HELP=no'
4890                           fi
4891                         
4892 else
4893   
4894                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4895                           if test "x$LINE" != x ; then
4896                             eval "DEFAULT_$LINE"
4897                           else
4898                             no_cache=1
4899                           fi
4900
4901                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4902                         
4903 fi
4904
4905
4906           eval "$ac_cv_use_help"
4907           if test "$no_cache" != 1; then
4908             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4909           fi
4910
4911           if test "$wxUSE_HELP" = yes; then
4912             echo "$ac_t""yes" 1>&6
4913           else
4914             echo "$ac_t""no" 1>&6
4915           fi
4916         
4917
4918           echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4919 echo "configure:4920: checking for --enable-mshtmlhelp" >&5
4920           no_cache=0
4921           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4922 if test "${enable_mshtmlhelp+set}" = set; then
4923   enableval="$enable_mshtmlhelp"
4924   
4925                           if test "$enableval" = yes; then
4926                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4927                           else
4928                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4929                           fi
4930                         
4931 else
4932   
4933                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4934                           if test "x$LINE" != x ; then
4935                             eval "DEFAULT_$LINE"
4936                           else
4937                             no_cache=1
4938                           fi
4939
4940                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4941                         
4942 fi
4943
4944
4945           eval "$ac_cv_use_mshtmlhelp"
4946           if test "$no_cache" != 1; then
4947             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4948           fi
4949
4950           if test "$wxUSE_MS_HTML_HELP" = yes; then
4951             echo "$ac_t""yes" 1>&6
4952           else
4953             echo "$ac_t""no" 1>&6
4954           fi
4955         
4956
4957           echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4958 echo "configure:4959: checking for --enable-html" >&5
4959           no_cache=0
4960           # Check whether --enable-html or --disable-html was given.
4961 if test "${enable_html+set}" = set; then
4962   enableval="$enable_html"
4963   
4964                           if test "$enableval" = yes; then
4965                             ac_cv_use_html='wxUSE_HTML=yes'
4966                           else
4967                             ac_cv_use_html='wxUSE_HTML=no'
4968                           fi
4969                         
4970 else
4971   
4972                           LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4980                         
4981 fi
4982
4983
4984           eval "$ac_cv_use_html"
4985           if test "$no_cache" != 1; then
4986             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4987           fi
4988
4989           if test "$wxUSE_HTML" = yes; then
4990             echo "$ac_t""yes" 1>&6
4991           else
4992             echo "$ac_t""no" 1>&6
4993           fi
4994         
4995
4996           echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4997 echo "configure:4998: checking for --enable-htmlhelp" >&5
4998           no_cache=0
4999           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5000 if test "${enable_htmlhelp+set}" = set; then
5001   enableval="$enable_htmlhelp"
5002   
5003                           if test "$enableval" = yes; then
5004                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5005                           else
5006                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5007                           fi
5008                         
5009 else
5010   
5011                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5012                           if test "x$LINE" != x ; then
5013                             eval "DEFAULT_$LINE"
5014                           else
5015                             no_cache=1
5016                           fi
5017
5018                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5019                         
5020 fi
5021
5022
5023           eval "$ac_cv_use_htmlhelp"
5024           if test "$no_cache" != 1; then
5025             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5026           fi
5027
5028           if test "$wxUSE_WXHTML_HELP" = yes; then
5029             echo "$ac_t""yes" 1>&6
5030           else
5031             echo "$ac_t""no" 1>&6
5032           fi
5033         
5034
5035           echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5036 echo "configure:5037: checking for --enable-constraints" >&5
5037           no_cache=0
5038           # Check whether --enable-constraints or --disable-constraints was given.
5039 if test "${enable_constraints+set}" = set; then
5040   enableval="$enable_constraints"
5041   
5042                           if test "$enableval" = yes; then
5043                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5044                           else
5045                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5046                           fi
5047                         
5048 else
5049   
5050                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5051                           if test "x$LINE" != x ; then
5052                             eval "DEFAULT_$LINE"
5053                           else
5054                             no_cache=1
5055                           fi
5056
5057                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5058                         
5059 fi
5060
5061
5062           eval "$ac_cv_use_constraints"
5063           if test "$no_cache" != 1; then
5064             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5065           fi
5066
5067           if test "$wxUSE_CONSTRAINTS" = yes; then
5068             echo "$ac_t""yes" 1>&6
5069           else
5070             echo "$ac_t""no" 1>&6
5071           fi
5072         
5073
5074           echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5075 echo "configure:5076: checking for --enable-printarch" >&5
5076           no_cache=0
5077           # Check whether --enable-printarch or --disable-printarch was given.
5078 if test "${enable_printarch+set}" = set; then
5079   enableval="$enable_printarch"
5080   
5081                           if test "$enableval" = yes; then
5082                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5083                           else
5084                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5085                           fi
5086                         
5087 else
5088   
5089                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5090                           if test "x$LINE" != x ; then
5091                             eval "DEFAULT_$LINE"
5092                           else
5093                             no_cache=1
5094                           fi
5095
5096                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5097                         
5098 fi
5099
5100
5101           eval "$ac_cv_use_printarch"
5102           if test "$no_cache" != 1; then
5103             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5104           fi
5105
5106           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5107             echo "$ac_t""yes" 1>&6
5108           else
5109             echo "$ac_t""no" 1>&6
5110           fi
5111         
5112
5113           echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5114 echo "configure:5115: checking for --enable-mdi" >&5
5115           no_cache=0
5116           # Check whether --enable-mdi or --disable-mdi was given.
5117 if test "${enable_mdi+set}" = set; then
5118   enableval="$enable_mdi"
5119   
5120                           if test "$enableval" = yes; then
5121                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5122                           else
5123                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5124                           fi
5125                         
5126 else
5127   
5128                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5129                           if test "x$LINE" != x ; then
5130                             eval "DEFAULT_$LINE"
5131                           else
5132                             no_cache=1
5133                           fi
5134
5135                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5136                         
5137 fi
5138
5139
5140           eval "$ac_cv_use_mdi"
5141           if test "$no_cache" != 1; then
5142             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5143           fi
5144
5145           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5146             echo "$ac_t""yes" 1>&6
5147           else
5148             echo "$ac_t""no" 1>&6
5149           fi
5150         
5151
5152           echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5153 echo "configure:5154: checking for --enable-loggui" >&5
5154           no_cache=0
5155           # Check whether --enable-loggui or --disable-loggui was given.
5156 if test "${enable_loggui+set}" = set; then
5157   enableval="$enable_loggui"
5158   
5159                           if test "$enableval" = yes; then
5160                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5161                           else
5162                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5163                           fi
5164                         
5165 else
5166   
5167                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5168                           if test "x$LINE" != x ; then
5169                             eval "DEFAULT_$LINE"
5170                           else
5171                             no_cache=1
5172                           fi
5173
5174                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5175                         
5176 fi
5177
5178
5179           eval "$ac_cv_use_loggui"
5180           if test "$no_cache" != 1; then
5181             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5182           fi
5183
5184           if test "$wxUSE_LOGGUI" = yes; then
5185             echo "$ac_t""yes" 1>&6
5186           else
5187             echo "$ac_t""no" 1>&6
5188           fi
5189         
5190
5191           echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5192 echo "configure:5193: checking for --enable-logwin" >&5
5193           no_cache=0
5194           # Check whether --enable-logwin or --disable-logwin was given.
5195 if test "${enable_logwin+set}" = set; then
5196   enableval="$enable_logwin"
5197   
5198                           if test "$enableval" = yes; then
5199                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5200                           else
5201                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5202                           fi
5203                         
5204 else
5205   
5206                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5207                           if test "x$LINE" != x ; then
5208                             eval "DEFAULT_$LINE"
5209                           else
5210                             no_cache=1
5211                           fi
5212
5213                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5214                         
5215 fi
5216
5217
5218           eval "$ac_cv_use_logwin"
5219           if test "$no_cache" != 1; then
5220             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5221           fi
5222
5223           if test "$wxUSE_LOGWINDOW" = yes; then
5224             echo "$ac_t""yes" 1>&6
5225           else
5226             echo "$ac_t""no" 1>&6
5227           fi
5228         
5229
5230           echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5231 echo "configure:5232: checking for --enable-logdialog" >&5
5232           no_cache=0
5233           # Check whether --enable-logdialog or --disable-logdialog was given.
5234 if test "${enable_logdialog+set}" = set; then
5235   enableval="$enable_logdialog"
5236   
5237                           if test "$enableval" = yes; then
5238                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5239                           else
5240                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5241                           fi
5242                         
5243 else
5244   
5245                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5246                           if test "x$LINE" != x ; then
5247                             eval "DEFAULT_$LINE"
5248                           else
5249                             no_cache=1
5250                           fi
5251
5252                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5253                         
5254 fi
5255
5256
5257           eval "$ac_cv_use_logdialog"
5258           if test "$no_cache" != 1; then
5259             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5260           fi
5261
5262           if test "$wxUSE_LOGDIALOG" = yes; then
5263             echo "$ac_t""yes" 1>&6
5264           else
5265             echo "$ac_t""no" 1>&6
5266           fi
5267         
5268
5269
5270           echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5271 echo "configure:5272: checking for --enable-postscript" >&5
5272           no_cache=0
5273           # Check whether --enable-postscript or --disable-postscript was given.
5274 if test "${enable_postscript+set}" = set; then
5275   enableval="$enable_postscript"
5276   
5277                           if test "$enableval" = yes; then
5278                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5279                           else
5280                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5281                           fi
5282                         
5283 else
5284   
5285                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5286                           if test "x$LINE" != x ; then
5287                             eval "DEFAULT_$LINE"
5288                           else
5289                             no_cache=1
5290                           fi
5291
5292                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5293                         
5294 fi
5295
5296
5297           eval "$ac_cv_use_postscript"
5298           if test "$no_cache" != 1; then
5299             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5300           fi
5301
5302           if test "$wxUSE_POSTSCRIPT" = yes; then
5303             echo "$ac_t""yes" 1>&6
5304           else
5305             echo "$ac_t""no" 1>&6
5306           fi
5307         
5308
5309
5310
5311
5312           echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5313 echo "configure:5314: checking for --enable-prologio" >&5
5314           no_cache=0
5315           # Check whether --enable-prologio or --disable-prologio was given.
5316 if test "${enable_prologio+set}" = set; then
5317   enableval="$enable_prologio"
5318   
5319                           if test "$enableval" = yes; then
5320                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5321                           else
5322                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5323                           fi
5324                         
5325 else
5326   
5327                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5328                           if test "x$LINE" != x ; then
5329                             eval "DEFAULT_$LINE"
5330                           else
5331                             no_cache=1
5332                           fi
5333
5334                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5335                         
5336 fi
5337
5338
5339           eval "$ac_cv_use_prologio"
5340           if test "$no_cache" != 1; then
5341             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5342           fi
5343
5344           if test "$wxUSE_PROLOGIO" = yes; then
5345             echo "$ac_t""yes" 1>&6
5346           else
5347             echo "$ac_t""no" 1>&6
5348           fi
5349         
5350
5351           echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5352 echo "configure:5353: checking for --enable-resources" >&5
5353           no_cache=0
5354           # Check whether --enable-resources or --disable-resources was given.
5355 if test "${enable_resources+set}" = set; then
5356   enableval="$enable_resources"
5357   
5358                           if test "$enableval" = yes; then
5359                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5360                           else
5361                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5362                           fi
5363                         
5364 else
5365   
5366                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5367                           if test "x$LINE" != x ; then
5368                             eval "DEFAULT_$LINE"
5369                           else
5370                             no_cache=1
5371                           fi
5372
5373                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5374                         
5375 fi
5376
5377
5378           eval "$ac_cv_use_resources"
5379           if test "$no_cache" != 1; then
5380             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5381           fi
5382
5383           if test "$wxUSE_RESOURCES" = yes; then
5384             echo "$ac_t""yes" 1>&6
5385           else
5386             echo "$ac_t""no" 1>&6
5387           fi
5388         
5389
5390
5391           echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5392 echo "configure:5393: checking for --enable-xresources" >&5
5393           no_cache=0
5394           # Check whether --enable-xresources or --disable-xresources was given.
5395 if test "${enable_xresources+set}" = set; then
5396   enableval="$enable_xresources"
5397   
5398                           if test "$enableval" = yes; then
5399                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5400                           else
5401                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5402                           fi
5403                         
5404 else
5405   
5406                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5407                           if test "x$LINE" != x ; then
5408                             eval "DEFAULT_$LINE"
5409                           else
5410                             no_cache=1
5411                           fi
5412
5413                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5414                         
5415 fi
5416
5417
5418           eval "$ac_cv_use_xresources"
5419           if test "$no_cache" != 1; then
5420             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5421           fi
5422
5423           if test "$wxUSE_X_RESOURCES" = yes; then
5424             echo "$ac_t""yes" 1>&6
5425           else
5426             echo "$ac_t""no" 1>&6
5427           fi
5428         
5429
5430
5431
5432           echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5433 echo "configure:5434: checking for --enable-clipboard" >&5
5434           no_cache=0
5435           # Check whether --enable-clipboard or --disable-clipboard was given.
5436 if test "${enable_clipboard+set}" = set; then
5437   enableval="$enable_clipboard"
5438   
5439                           if test "$enableval" = yes; then
5440                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5441                           else
5442                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5443                           fi
5444                         
5445 else
5446   
5447                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5448                           if test "x$LINE" != x ; then
5449                             eval "DEFAULT_$LINE"
5450                           else
5451                             no_cache=1
5452                           fi
5453
5454                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5455                         
5456 fi
5457
5458
5459           eval "$ac_cv_use_clipboard"
5460           if test "$no_cache" != 1; then
5461             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5462           fi
5463
5464           if test "$wxUSE_CLIPBOARD" = yes; then
5465             echo "$ac_t""yes" 1>&6
5466           else
5467             echo "$ac_t""no" 1>&6
5468           fi
5469         
5470
5471           echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5472 echo "configure:5473: checking for --enable-dnd" >&5
5473           no_cache=0
5474           # Check whether --enable-dnd or --disable-dnd was given.
5475 if test "${enable_dnd+set}" = set; then
5476   enableval="$enable_dnd"
5477   
5478                           if test "$enableval" = yes; then
5479                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5480                           else
5481                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5482                           fi
5483                         
5484 else
5485   
5486                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5487                           if test "x$LINE" != x ; then
5488                             eval "DEFAULT_$LINE"
5489                           else
5490                             no_cache=1
5491                           fi
5492
5493                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5494                         
5495 fi
5496
5497
5498           eval "$ac_cv_use_dnd"
5499           if test "$no_cache" != 1; then
5500             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5501           fi
5502
5503           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5504             echo "$ac_t""yes" 1>&6
5505           else
5506             echo "$ac_t""no" 1>&6
5507           fi
5508         
5509
5510           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5511 echo "configure:5512: checking for --enable-metafile" >&5
5512           no_cache=0
5513           # Check whether --enable-metafile or --disable-metafile was given.
5514 if test "${enable_metafile+set}" = set; then
5515   enableval="$enable_metafile"
5516   
5517                           if test "$enableval" = yes; then
5518                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5519                           else
5520                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5521                           fi
5522                         
5523 else
5524   
5525                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5526                           if test "x$LINE" != x ; then
5527                             eval "DEFAULT_$LINE"
5528                           else
5529                             no_cache=1
5530                           fi
5531
5532                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5533                         
5534 fi
5535
5536
5537           eval "$ac_cv_use_metafile"
5538           if test "$no_cache" != 1; then
5539             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5540           fi
5541
5542           if test "$wxUSE_METAFILE" = yes; then
5543             echo "$ac_t""yes" 1>&6
5544           else
5545             echo "$ac_t""no" 1>&6
5546           fi
5547         
5548
5549
5550           echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5551 echo "configure:5552: checking for --enable-treelayout" >&5
5552           no_cache=0
5553           # Check whether --enable-treelayout or --disable-treelayout was given.
5554 if test "${enable_treelayout+set}" = set; then
5555   enableval="$enable_treelayout"
5556   
5557                           if test "$enableval" = yes; then
5558                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5559                           else
5560                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5561                           fi
5562                         
5563 else
5564   
5565                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5566                           if test "x$LINE" != x ; then
5567                             eval "DEFAULT_$LINE"
5568                           else
5569                             no_cache=1
5570                           fi
5571
5572                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5573                         
5574 fi
5575
5576
5577           eval "$ac_cv_use_treelayout"
5578           if test "$no_cache" != 1; then
5579             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5580           fi
5581
5582           if test "$wxUSE_TREELAYOUT" = yes; then
5583             echo "$ac_t""yes" 1>&6
5584           else
5585             echo "$ac_t""no" 1>&6
5586           fi
5587         
5588
5589
5590
5591           echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5592 echo "configure:5593: checking for --enable-controls" >&5
5593           no_cache=0
5594           # Check whether --enable-controls or --disable-controls was given.
5595 if test "${enable_controls+set}" = set; then
5596   enableval="$enable_controls"
5597   
5598                           if test "$enableval" = yes; then
5599                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5600                           else
5601                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5602                           fi
5603                         
5604 else
5605   
5606                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5607                           if test "x$LINE" != x ; then
5608                             eval "DEFAULT_$LINE"
5609                           else
5610                             no_cache=1
5611                           fi
5612
5613                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5614                         
5615 fi
5616
5617
5618           eval "$ac_cv_use_controls"
5619           if test "$no_cache" != 1; then
5620             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5621           fi
5622
5623           if test "$wxUSE_CONTROLS" = yes; then
5624             echo "$ac_t""yes" 1>&6
5625           else
5626             echo "$ac_t""no" 1>&6
5627           fi
5628         
5629
5630 if test "$wxUSE_CONTROLS" = "yes"; then
5631   DEFAULT_wxUSE_ACCEL=yes
5632   DEFAULT_wxUSE_BMPBUTTON=yes
5633   DEFAULT_wxUSE_BUTTON=yes
5634   DEFAULT_wxUSE_CALCTRL=no
5635   DEFAULT_wxUSE_CARET=yes
5636   DEFAULT_wxUSE_COMBOBOX=yes
5637   DEFAULT_wxUSE_CHECKBOX=yes
5638   DEFAULT_wxUSE_CHECKLISTBOX=yes
5639   DEFAULT_wxUSE_CHOICE=yes
5640   DEFAULT_wxUSE_GAUGE=yes
5641   DEFAULT_wxUSE_GRID=yes
5642   DEFAULT_wxUSE_NEW_GRID=yes
5643   DEFAULT_wxUSE_IMAGLIST=yes
5644   DEFAULT_wxUSE_LISTBOX=yes
5645   DEFAULT_wxUSE_LISTCTRL=yes
5646   DEFAULT_wxUSE_NOTEBOOK=yes
5647   DEFAULT_wxUSE_PROPSHEET=yes
5648   DEFAULT_wxUSE_RADIOBOX=yes
5649   DEFAULT_wxUSE_RADIOBTN=yes
5650   DEFAULT_wxUSE_SASH=yes
5651   DEFAULT_wxUSE_SCROLLBAR=yes
5652   DEFAULT_wxUSE_SLIDER=yes
5653   DEFAULT_wxUSE_SPINBTN=yes
5654   DEFAULT_wxUSE_SPINCTRL=yes
5655   DEFAULT_wxUSE_SPLITTER=yes
5656   DEFAULT_wxUSE_STATBMP=yes
5657   DEFAULT_wxUSE_STATBOX=yes
5658   DEFAULT_wxUSE_STATLINE=yes
5659   DEFAULT_wxUSE_STATUSBAR=yes
5660   DEFAULT_wxUSE_TAB_DIALOG=yes
5661   DEFAULT_wxUSE_TOGGLEBTN=yes
5662   DEFAULT_wxUSE_TOOLBAR=yes
5663   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5664   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5665   DEFAULT_wxUSE_TOOLTIPS=yes
5666   DEFAULT_wxUSE_TREECTRL=yes
5667   DEFAULT_wxUSE_POPUPWIN=yes
5668   DEFAULT_wxUSE_TIPWINDOW=yes
5669 elif test "$wxUSE_CONTROLS" = "no"; then
5670   DEFAULT_wxUSE_ACCEL=no
5671   DEFAULT_wxUSE_BMPBUTTON=no
5672   DEFAULT_wxUSE_BUTTON=no
5673   DEFAULT_wxUSE_CALCTRL=no
5674   DEFAULT_wxUSE_CARET=no
5675   DEFAULT_wxUSE_COMBOBOX=no
5676   DEFAULT_wxUSE_CHECKBOX=no
5677   DEFAULT_wxUSE_CHECKLISTBOX=no
5678   DEFAULT_wxUSE_CHOICE=no
5679   DEFAULT_wxUSE_GAUGE=no
5680   DEFAULT_wxUSE_GRID=no
5681   DEFAULT_wxUSE_NEW_GRID=no
5682   DEFAULT_wxUSE_IMAGLIST=no
5683   DEFAULT_wxUSE_LISTBOX=no
5684   DEFAULT_wxUSE_LISTCTRL=no
5685   DEFAULT_wxUSE_NOTEBOOK=no
5686   DEFAULT_wxUSE_PROPSHEET=no
5687   DEFAULT_wxUSE_RADIOBOX=no
5688   DEFAULT_wxUSE_RADIOBTN=no
5689   DEFAULT_wxUSE_SASH=no
5690   DEFAULT_wxUSE_SCROLLBAR=no
5691   DEFAULT_wxUSE_SLIDER=no
5692   DEFAULT_wxUSE_SPINBTN=no
5693   DEFAULT_wxUSE_SPINCTRL=no
5694   DEFAULT_wxUSE_SPLITTER=no
5695   DEFAULT_wxUSE_STATBMP=no
5696   DEFAULT_wxUSE_STATBOX=no
5697   DEFAULT_wxUSE_STATLINE=no
5698   DEFAULT_wxUSE_STATUSBAR=no
5699   DEFAULT_wxUSE_TAB_DIALOG=no
5700   DEFAULT_wxUSE_TOGGLEBTN=no
5701   DEFAULT_wxUSE_TOOLBAR=no
5702   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5703   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5704   DEFAULT_wxUSE_TOOLTIPS=no
5705   DEFAULT_wxUSE_TREECTRL=no
5706   DEFAULT_wxUSE_POPUPWIN=no
5707   DEFAULT_wxUSE_TIPWINDOW=no
5708 fi
5709
5710
5711           echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5712 echo "configure:5713: checking for --enable-accel" >&5
5713           no_cache=0
5714           # Check whether --enable-accel or --disable-accel was given.
5715 if test "${enable_accel+set}" = set; then
5716   enableval="$enable_accel"
5717   
5718                           if test "$enableval" = yes; then
5719                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5720                           else
5721                             ac_cv_use_accel='wxUSE_ACCEL=no'
5722                           fi
5723                         
5724 else
5725   
5726                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5727                           if test "x$LINE" != x ; then
5728                             eval "DEFAULT_$LINE"
5729                           else
5730                             no_cache=1
5731                           fi
5732
5733                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5734                         
5735 fi
5736
5737
5738           eval "$ac_cv_use_accel"
5739           if test "$no_cache" != 1; then
5740             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5741           fi
5742
5743           if test "$wxUSE_ACCEL" = yes; then
5744             echo "$ac_t""yes" 1>&6
5745           else
5746             echo "$ac_t""no" 1>&6
5747           fi
5748         
5749
5750           echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5751 echo "configure:5752: checking for --enable-button" >&5
5752           no_cache=0
5753           # Check whether --enable-button or --disable-button was given.
5754 if test "${enable_button+set}" = set; then
5755   enableval="$enable_button"
5756   
5757                           if test "$enableval" = yes; then
5758                             ac_cv_use_button='wxUSE_BUTTON=yes'
5759                           else
5760                             ac_cv_use_button='wxUSE_BUTTON=no'
5761                           fi
5762                         
5763 else
5764   
5765                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5766                           if test "x$LINE" != x ; then
5767                             eval "DEFAULT_$LINE"
5768                           else
5769                             no_cache=1
5770                           fi
5771
5772                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5773                         
5774 fi
5775
5776
5777           eval "$ac_cv_use_button"
5778           if test "$no_cache" != 1; then
5779             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5780           fi
5781
5782           if test "$wxUSE_BUTTON" = yes; then
5783             echo "$ac_t""yes" 1>&6
5784           else
5785             echo "$ac_t""no" 1>&6
5786           fi
5787         
5788
5789           echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5790 echo "configure:5791: checking for --enable-bmpbutton" >&5
5791           no_cache=0
5792           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5793 if test "${enable_bmpbutton+set}" = set; then
5794   enableval="$enable_bmpbutton"
5795   
5796                           if test "$enableval" = yes; then
5797                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5798                           else
5799                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5800                           fi
5801                         
5802 else
5803   
5804                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5805                           if test "x$LINE" != x ; then
5806                             eval "DEFAULT_$LINE"
5807                           else
5808                             no_cache=1
5809                           fi
5810
5811                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5812                         
5813 fi
5814
5815
5816           eval "$ac_cv_use_bmpbutton"
5817           if test "$no_cache" != 1; then
5818             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5819           fi
5820
5821           if test "$wxUSE_BMPBUTTON" = yes; then
5822             echo "$ac_t""yes" 1>&6
5823           else
5824             echo "$ac_t""no" 1>&6
5825           fi
5826         
5827
5828           echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5829 echo "configure:5830: checking for --enable-calendar" >&5
5830           no_cache=0
5831           # Check whether --enable-calendar or --disable-calendar was given.
5832 if test "${enable_calendar+set}" = set; then
5833   enableval="$enable_calendar"
5834   
5835                           if test "$enableval" = yes; then
5836                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5837                           else
5838                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
5839                           fi
5840                         
5841 else
5842   
5843                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5844                           if test "x$LINE" != x ; then
5845                             eval "DEFAULT_$LINE"
5846                           else
5847                             no_cache=1
5848                           fi
5849
5850                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5851                         
5852 fi
5853
5854
5855           eval "$ac_cv_use_calendar"
5856           if test "$no_cache" != 1; then
5857             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5858           fi
5859
5860           if test "$wxUSE_CALCTRL" = yes; then
5861             echo "$ac_t""yes" 1>&6
5862           else
5863             echo "$ac_t""no" 1>&6
5864           fi
5865         
5866
5867           echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5868 echo "configure:5869: checking for --enable-caret" >&5
5869           no_cache=0
5870           # Check whether --enable-caret or --disable-caret was given.
5871 if test "${enable_caret+set}" = set; then
5872   enableval="$enable_caret"
5873   
5874                           if test "$enableval" = yes; then
5875                             ac_cv_use_caret='wxUSE_CARET=yes'
5876                           else
5877                             ac_cv_use_caret='wxUSE_CARET=no'
5878                           fi
5879                         
5880 else
5881   
5882                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5883                           if test "x$LINE" != x ; then
5884                             eval "DEFAULT_$LINE"
5885                           else
5886                             no_cache=1
5887                           fi
5888
5889                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5890                         
5891 fi
5892
5893
5894           eval "$ac_cv_use_caret"
5895           if test "$no_cache" != 1; then
5896             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5897           fi
5898
5899           if test "$wxUSE_CARET" = yes; then
5900             echo "$ac_t""yes" 1>&6
5901           else
5902             echo "$ac_t""no" 1>&6
5903           fi
5904         
5905
5906           echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5907 echo "configure:5908: checking for --enable-checkbox" >&5
5908           no_cache=0
5909           # Check whether --enable-checkbox or --disable-checkbox was given.
5910 if test "${enable_checkbox+set}" = set; then
5911   enableval="$enable_checkbox"
5912   
5913                           if test "$enableval" = yes; then
5914                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5915                           else
5916                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5917                           fi
5918                         
5919 else
5920   
5921                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5922                           if test "x$LINE" != x ; then
5923                             eval "DEFAULT_$LINE"
5924                           else
5925                             no_cache=1
5926                           fi
5927
5928                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5929                         
5930 fi
5931
5932
5933           eval "$ac_cv_use_checkbox"
5934           if test "$no_cache" != 1; then
5935             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5936           fi
5937
5938           if test "$wxUSE_CHECKBOX" = yes; then
5939             echo "$ac_t""yes" 1>&6
5940           else
5941             echo "$ac_t""no" 1>&6
5942           fi
5943         
5944
5945           echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5946 echo "configure:5947: checking for --enable-checklst" >&5
5947           no_cache=0
5948           # Check whether --enable-checklst or --disable-checklst was given.
5949 if test "${enable_checklst+set}" = set; then
5950   enableval="$enable_checklst"
5951   
5952                           if test "$enableval" = yes; then
5953                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5954                           else
5955                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
5956                           fi
5957                         
5958 else
5959   
5960                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5961                           if test "x$LINE" != x ; then
5962                             eval "DEFAULT_$LINE"
5963                           else
5964                             no_cache=1
5965                           fi
5966
5967                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5968                         
5969 fi
5970
5971
5972           eval "$ac_cv_use_checklst"
5973           if test "$no_cache" != 1; then
5974             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5975           fi
5976
5977           if test "$wxUSE_CHECKLST" = yes; then
5978             echo "$ac_t""yes" 1>&6
5979           else
5980             echo "$ac_t""no" 1>&6
5981           fi
5982         
5983
5984           echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5985 echo "configure:5986: checking for --enable-choice" >&5
5986           no_cache=0
5987           # Check whether --enable-choice or --disable-choice was given.
5988 if test "${enable_choice+set}" = set; then
5989   enableval="$enable_choice"
5990   
5991                           if test "$enableval" = yes; then
5992                             ac_cv_use_choice='wxUSE_CHOICE=yes'
5993                           else
5994                             ac_cv_use_choice='wxUSE_CHOICE=no'
5995                           fi
5996                         
5997 else
5998   
5999                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6000                           if test "x$LINE" != x ; then
6001                             eval "DEFAULT_$LINE"
6002                           else
6003                             no_cache=1
6004                           fi
6005
6006                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6007                         
6008 fi
6009
6010
6011           eval "$ac_cv_use_choice"
6012           if test "$no_cache" != 1; then
6013             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6014           fi
6015
6016           if test "$wxUSE_CHOICE" = yes; then
6017             echo "$ac_t""yes" 1>&6
6018           else
6019             echo "$ac_t""no" 1>&6
6020           fi
6021         
6022
6023           echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6024 echo "configure:6025: checking for --enable-combobox" >&5
6025           no_cache=0
6026           # Check whether --enable-combobox or --disable-combobox was given.
6027 if test "${enable_combobox+set}" = set; then
6028   enableval="$enable_combobox"
6029   
6030                           if test "$enableval" = yes; then
6031                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6032                           else
6033                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6034                           fi
6035                         
6036 else
6037   
6038                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6039                           if test "x$LINE" != x ; then
6040                             eval "DEFAULT_$LINE"
6041                           else
6042                             no_cache=1
6043                           fi
6044
6045                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6046                         
6047 fi
6048
6049
6050           eval "$ac_cv_use_combobox"
6051           if test "$no_cache" != 1; then
6052             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6053           fi
6054
6055           if test "$wxUSE_COMBOBOX" = yes; then
6056             echo "$ac_t""yes" 1>&6
6057           else
6058             echo "$ac_t""no" 1>&6
6059           fi
6060         
6061
6062           echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6063 echo "configure:6064: checking for --enable-gauge" >&5
6064           no_cache=0
6065           # Check whether --enable-gauge or --disable-gauge was given.
6066 if test "${enable_gauge+set}" = set; then
6067   enableval="$enable_gauge"
6068   
6069                           if test "$enableval" = yes; then
6070                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6071                           else
6072                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6073                           fi
6074                         
6075 else
6076   
6077                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6078                           if test "x$LINE" != x ; then
6079                             eval "DEFAULT_$LINE"
6080                           else
6081                             no_cache=1
6082                           fi
6083
6084                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6085                         
6086 fi
6087
6088
6089           eval "$ac_cv_use_gauge"
6090           if test "$no_cache" != 1; then
6091             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6092           fi
6093
6094           if test "$wxUSE_GAUGE" = yes; then
6095             echo "$ac_t""yes" 1>&6
6096           else
6097             echo "$ac_t""no" 1>&6
6098           fi
6099         
6100
6101           echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6102 echo "configure:6103: checking for --enable-grid" >&5
6103           no_cache=0
6104           # Check whether --enable-grid or --disable-grid was given.
6105 if test "${enable_grid+set}" = set; then
6106   enableval="$enable_grid"
6107   
6108                           if test "$enableval" = yes; then
6109                             ac_cv_use_grid='wxUSE_GRID=yes'
6110                           else
6111                             ac_cv_use_grid='wxUSE_GRID=no'
6112                           fi
6113                         
6114 else
6115   
6116                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6117                           if test "x$LINE" != x ; then
6118                             eval "DEFAULT_$LINE"
6119                           else
6120                             no_cache=1
6121                           fi
6122
6123                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6124                         
6125 fi
6126
6127
6128           eval "$ac_cv_use_grid"
6129           if test "$no_cache" != 1; then
6130             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6131           fi
6132
6133           if test "$wxUSE_GRID" = yes; then
6134             echo "$ac_t""yes" 1>&6
6135           else
6136             echo "$ac_t""no" 1>&6
6137           fi
6138         
6139
6140           echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6141 echo "configure:6142: checking for --enable-newgrid" >&5
6142           no_cache=0
6143           # Check whether --enable-newgrid or --disable-newgrid was given.
6144 if test "${enable_newgrid+set}" = set; then
6145   enableval="$enable_newgrid"
6146   
6147                           if test "$enableval" = yes; then
6148                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6149                           else
6150                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6151                           fi
6152                         
6153 else
6154   
6155                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6156                           if test "x$LINE" != x ; then
6157                             eval "DEFAULT_$LINE"
6158                           else
6159                             no_cache=1
6160                           fi
6161
6162                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6163                         
6164 fi
6165
6166
6167           eval "$ac_cv_use_newgrid"
6168           if test "$no_cache" != 1; then
6169             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6170           fi
6171
6172           if test "$wxUSE_NEW_GRID" = yes; then
6173             echo "$ac_t""yes" 1>&6
6174           else
6175             echo "$ac_t""no" 1>&6
6176           fi
6177         
6178
6179           echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6180 echo "configure:6181: checking for --enable-imaglist" >&5
6181           no_cache=0
6182           # Check whether --enable-imaglist or --disable-imaglist was given.
6183 if test "${enable_imaglist+set}" = set; then
6184   enableval="$enable_imaglist"
6185   
6186                           if test "$enableval" = yes; then
6187                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6188                           else
6189                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6190                           fi
6191                         
6192 else
6193   
6194                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6195                           if test "x$LINE" != x ; then
6196                             eval "DEFAULT_$LINE"
6197                           else
6198                             no_cache=1
6199                           fi
6200
6201                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6202                         
6203 fi
6204
6205
6206           eval "$ac_cv_use_imaglist"
6207           if test "$no_cache" != 1; then
6208             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6209           fi
6210
6211           if test "$wxUSE_IMAGLIST" = yes; then
6212             echo "$ac_t""yes" 1>&6
6213           else
6214             echo "$ac_t""no" 1>&6
6215           fi
6216         
6217
6218           echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6219 echo "configure:6220: checking for --enable-listbox" >&5
6220           no_cache=0
6221           # Check whether --enable-listbox or --disable-listbox was given.
6222 if test "${enable_listbox+set}" = set; then
6223   enableval="$enable_listbox"
6224   
6225                           if test "$enableval" = yes; then
6226                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6227                           else
6228                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6229                           fi
6230                         
6231 else
6232   
6233                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6234                           if test "x$LINE" != x ; then
6235                             eval "DEFAULT_$LINE"
6236                           else
6237                             no_cache=1
6238                           fi
6239
6240                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6241                         
6242 fi
6243
6244
6245           eval "$ac_cv_use_listbox"
6246           if test "$no_cache" != 1; then
6247             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6248           fi
6249
6250           if test "$wxUSE_LISTBOX" = yes; then
6251             echo "$ac_t""yes" 1>&6
6252           else
6253             echo "$ac_t""no" 1>&6
6254           fi
6255         
6256
6257           echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6258 echo "configure:6259: checking for --enable-listctrl" >&5
6259           no_cache=0
6260           # Check whether --enable-listctrl or --disable-listctrl was given.
6261 if test "${enable_listctrl+set}" = set; then
6262   enableval="$enable_listctrl"
6263   
6264                           if test "$enableval" = yes; then
6265                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6266                           else
6267                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6268                           fi
6269                         
6270 else
6271   
6272                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6273                           if test "x$LINE" != x ; then
6274                             eval "DEFAULT_$LINE"
6275                           else
6276                             no_cache=1
6277                           fi
6278
6279                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6280                         
6281 fi
6282
6283
6284           eval "$ac_cv_use_listctrl"
6285           if test "$no_cache" != 1; then
6286             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6287           fi
6288
6289           if test "$wxUSE_LISTCTRL" = yes; then
6290             echo "$ac_t""yes" 1>&6
6291           else
6292             echo "$ac_t""no" 1>&6
6293           fi
6294         
6295
6296           echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6297 echo "configure:6298: checking for --enable-notebook" >&5
6298           no_cache=0
6299           # Check whether --enable-notebook or --disable-notebook was given.
6300 if test "${enable_notebook+set}" = set; then
6301   enableval="$enable_notebook"
6302   
6303                           if test "$enableval" = yes; then
6304                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6305                           else
6306                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6307                           fi
6308                         
6309 else
6310   
6311                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6312                           if test "x$LINE" != x ; then
6313                             eval "DEFAULT_$LINE"
6314                           else
6315                             no_cache=1
6316                           fi
6317
6318                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6319                         
6320 fi
6321
6322
6323           eval "$ac_cv_use_notebook"
6324           if test "$no_cache" != 1; then
6325             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6326           fi
6327
6328           if test "$wxUSE_NOTEBOOK" = yes; then
6329             echo "$ac_t""yes" 1>&6
6330           else
6331             echo "$ac_t""no" 1>&6
6332           fi
6333         
6334
6335           echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6336 echo "configure:6337: checking for --enable-propsheet" >&5
6337           no_cache=0
6338           # Check whether --enable-propsheet or --disable-propsheet was given.
6339 if test "${enable_propsheet+set}" = set; then
6340   enableval="$enable_propsheet"
6341   
6342                           if test "$enableval" = yes; then
6343                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6344                           else
6345                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6346                           fi
6347                         
6348 else
6349   
6350                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6351                           if test "x$LINE" != x ; then
6352                             eval "DEFAULT_$LINE"
6353                           else
6354                             no_cache=1
6355                           fi
6356
6357                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6358                         
6359 fi
6360
6361
6362           eval "$ac_cv_use_propsheet"
6363           if test "$no_cache" != 1; then
6364             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6365           fi
6366
6367           if test "$wxUSE_PROPSHEET" = yes; then
6368             echo "$ac_t""yes" 1>&6
6369           else
6370             echo "$ac_t""no" 1>&6
6371           fi
6372         
6373
6374           echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6375 echo "configure:6376: checking for --enable-radiobox" >&5
6376           no_cache=0
6377           # Check whether --enable-radiobox or --disable-radiobox was given.
6378 if test "${enable_radiobox+set}" = set; then
6379   enableval="$enable_radiobox"
6380   
6381                           if test "$enableval" = yes; then
6382                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6383                           else
6384                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6385                           fi
6386                         
6387 else
6388   
6389                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6390                           if test "x$LINE" != x ; then
6391                             eval "DEFAULT_$LINE"
6392                           else
6393                             no_cache=1
6394                           fi
6395
6396                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6397                         
6398 fi
6399
6400
6401           eval "$ac_cv_use_radiobox"
6402           if test "$no_cache" != 1; then
6403             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6404           fi
6405
6406           if test "$wxUSE_RADIOBOX" = yes; then
6407             echo "$ac_t""yes" 1>&6
6408           else
6409             echo "$ac_t""no" 1>&6
6410           fi
6411         
6412
6413           echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6414 echo "configure:6415: checking for --enable-radiobtn" >&5
6415           no_cache=0
6416           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6417 if test "${enable_radiobtn+set}" = set; then
6418   enableval="$enable_radiobtn"
6419   
6420                           if test "$enableval" = yes; then
6421                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6422                           else
6423                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6424                           fi
6425                         
6426 else
6427   
6428                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6429                           if test "x$LINE" != x ; then
6430                             eval "DEFAULT_$LINE"
6431                           else
6432                             no_cache=1
6433                           fi
6434
6435                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6436                         
6437 fi
6438
6439
6440           eval "$ac_cv_use_radiobtn"
6441           if test "$no_cache" != 1; then
6442             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6443           fi
6444
6445           if test "$wxUSE_RADIOBTN" = yes; then
6446             echo "$ac_t""yes" 1>&6
6447           else
6448             echo "$ac_t""no" 1>&6
6449           fi
6450         
6451
6452           echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6453 echo "configure:6454: checking for --enable-sash" >&5
6454           no_cache=0
6455           # Check whether --enable-sash or --disable-sash was given.
6456 if test "${enable_sash+set}" = set; then
6457   enableval="$enable_sash"
6458   
6459                           if test "$enableval" = yes; then
6460                             ac_cv_use_sash='wxUSE_SASH=yes'
6461                           else
6462                             ac_cv_use_sash='wxUSE_SASH=no'
6463                           fi
6464                         
6465 else
6466   
6467                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6468                           if test "x$LINE" != x ; then
6469                             eval "DEFAULT_$LINE"
6470                           else
6471                             no_cache=1
6472                           fi
6473
6474                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6475                         
6476 fi
6477
6478
6479           eval "$ac_cv_use_sash"
6480           if test "$no_cache" != 1; then
6481             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6482           fi
6483
6484           if test "$wxUSE_SASH" = yes; then
6485             echo "$ac_t""yes" 1>&6
6486           else
6487             echo "$ac_t""no" 1>&6
6488           fi
6489         
6490
6491           echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6492 echo "configure:6493: checking for --enable-scrollbar" >&5
6493           no_cache=0
6494           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6495 if test "${enable_scrollbar+set}" = set; then
6496   enableval="$enable_scrollbar"
6497   
6498                           if test "$enableval" = yes; then
6499                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6500                           else
6501                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6502                           fi
6503                         
6504 else
6505   
6506                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6507                           if test "x$LINE" != x ; then
6508                             eval "DEFAULT_$LINE"
6509                           else
6510                             no_cache=1
6511                           fi
6512
6513                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6514                         
6515 fi
6516
6517
6518           eval "$ac_cv_use_scrollbar"
6519           if test "$no_cache" != 1; then
6520             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6521           fi
6522
6523           if test "$wxUSE_SCROLLBAR" = yes; then
6524             echo "$ac_t""yes" 1>&6
6525           else
6526             echo "$ac_t""no" 1>&6
6527           fi
6528         
6529
6530           echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6531 echo "configure:6532: checking for --enable-slider" >&5
6532           no_cache=0
6533           # Check whether --enable-slider or --disable-slider was given.
6534 if test "${enable_slider+set}" = set; then
6535   enableval="$enable_slider"
6536   
6537                           if test "$enableval" = yes; then
6538                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6539                           else
6540                             ac_cv_use_slider='wxUSE_SLIDER=no'
6541                           fi
6542                         
6543 else
6544   
6545                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6546                           if test "x$LINE" != x ; then
6547                             eval "DEFAULT_$LINE"
6548                           else
6549                             no_cache=1
6550                           fi
6551
6552                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6553                         
6554 fi
6555
6556
6557           eval "$ac_cv_use_slider"
6558           if test "$no_cache" != 1; then
6559             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6560           fi
6561
6562           if test "$wxUSE_SLIDER" = yes; then
6563             echo "$ac_t""yes" 1>&6
6564           else
6565             echo "$ac_t""no" 1>&6
6566           fi
6567         
6568
6569           echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6570 echo "configure:6571: checking for --enable-spinbtn" >&5
6571           no_cache=0
6572           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6573 if test "${enable_spinbtn+set}" = set; then
6574   enableval="$enable_spinbtn"
6575   
6576                           if test "$enableval" = yes; then
6577                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6578                           else
6579                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6580                           fi
6581                         
6582 else
6583   
6584                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6585                           if test "x$LINE" != x ; then
6586                             eval "DEFAULT_$LINE"
6587                           else
6588                             no_cache=1
6589                           fi
6590
6591                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6592                         
6593 fi
6594
6595
6596           eval "$ac_cv_use_spinbtn"
6597           if test "$no_cache" != 1; then
6598             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6599           fi
6600
6601           if test "$wxUSE_SPINBTN" = yes; then
6602             echo "$ac_t""yes" 1>&6
6603           else
6604             echo "$ac_t""no" 1>&6
6605           fi
6606         
6607
6608           echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6609 echo "configure:6610: checking for --enable-spinctrl" >&5
6610           no_cache=0
6611           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6612 if test "${enable_spinctrl+set}" = set; then
6613   enableval="$enable_spinctrl"
6614   
6615                           if test "$enableval" = yes; then
6616                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6617                           else
6618                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6619                           fi
6620                         
6621 else
6622   
6623                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6624                           if test "x$LINE" != x ; then
6625                             eval "DEFAULT_$LINE"
6626                           else
6627                             no_cache=1
6628                           fi
6629
6630                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6631                         
6632 fi
6633
6634
6635           eval "$ac_cv_use_spinctrl"
6636           if test "$no_cache" != 1; then
6637             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6638           fi
6639
6640           if test "$wxUSE_SPINCTRL" = yes; then
6641             echo "$ac_t""yes" 1>&6
6642           else
6643             echo "$ac_t""no" 1>&6
6644           fi
6645         
6646
6647           echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6648 echo "configure:6649: checking for --enable-splitter" >&5
6649           no_cache=0
6650           # Check whether --enable-splitter or --disable-splitter was given.
6651 if test "${enable_splitter+set}" = set; then
6652   enableval="$enable_splitter"
6653   
6654                           if test "$enableval" = yes; then
6655                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6656                           else
6657                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6658                           fi
6659                         
6660 else
6661   
6662                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6663                           if test "x$LINE" != x ; then
6664                             eval "DEFAULT_$LINE"
6665                           else
6666                             no_cache=1
6667                           fi
6668
6669                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6670                         
6671 fi
6672
6673
6674           eval "$ac_cv_use_splitter"
6675           if test "$no_cache" != 1; then
6676             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6677           fi
6678
6679           if test "$wxUSE_SPLITTER" = yes; then
6680             echo "$ac_t""yes" 1>&6
6681           else
6682             echo "$ac_t""no" 1>&6
6683           fi
6684         
6685
6686           echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6687 echo "configure:6688: checking for --enable-statbmp" >&5
6688           no_cache=0
6689           # Check whether --enable-statbmp or --disable-statbmp was given.
6690 if test "${enable_statbmp+set}" = set; then
6691   enableval="$enable_statbmp"
6692   
6693                           if test "$enableval" = yes; then
6694                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6695                           else
6696                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6697                           fi
6698                         
6699 else
6700   
6701                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6702                           if test "x$LINE" != x ; then
6703                             eval "DEFAULT_$LINE"
6704                           else
6705                             no_cache=1
6706                           fi
6707
6708                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6709                         
6710 fi
6711
6712
6713           eval "$ac_cv_use_statbmp"
6714           if test "$no_cache" != 1; then
6715             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6716           fi
6717
6718           if test "$wxUSE_STATBMP" = yes; then
6719             echo "$ac_t""yes" 1>&6
6720           else
6721             echo "$ac_t""no" 1>&6
6722           fi
6723         
6724
6725           echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6726 echo "configure:6727: checking for --enable-statbox" >&5
6727           no_cache=0
6728           # Check whether --enable-statbox or --disable-statbox was given.
6729 if test "${enable_statbox+set}" = set; then
6730   enableval="$enable_statbox"
6731   
6732                           if test "$enableval" = yes; then
6733                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6734                           else
6735                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6736                           fi
6737                         
6738 else
6739   
6740                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6741                           if test "x$LINE" != x ; then
6742                             eval "DEFAULT_$LINE"
6743                           else
6744                             no_cache=1
6745                           fi
6746
6747                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6748                         
6749 fi
6750
6751
6752           eval "$ac_cv_use_statbox"
6753           if test "$no_cache" != 1; then
6754             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6755           fi
6756
6757           if test "$wxUSE_STATBOX" = yes; then
6758             echo "$ac_t""yes" 1>&6
6759           else
6760             echo "$ac_t""no" 1>&6
6761           fi
6762         
6763
6764           echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6765 echo "configure:6766: checking for --enable-statline" >&5
6766           no_cache=0
6767           # Check whether --enable-statline or --disable-statline was given.
6768 if test "${enable_statline+set}" = set; then
6769   enableval="$enable_statline"
6770   
6771                           if test "$enableval" = yes; then
6772                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6773                           else
6774                             ac_cv_use_statline='wxUSE_STATLINE=no'
6775                           fi
6776                         
6777 else
6778   
6779                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6780                           if test "x$LINE" != x ; then
6781                             eval "DEFAULT_$LINE"
6782                           else
6783                             no_cache=1
6784                           fi
6785
6786                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6787                         
6788 fi
6789
6790
6791           eval "$ac_cv_use_statline"
6792           if test "$no_cache" != 1; then
6793             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6794           fi
6795
6796           if test "$wxUSE_STATLINE" = yes; then
6797             echo "$ac_t""yes" 1>&6
6798           else
6799             echo "$ac_t""no" 1>&6
6800           fi
6801         
6802
6803           echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6804 echo "configure:6805: checking for --enable-stattext" >&5
6805           no_cache=0
6806           # Check whether --enable-stattext or --disable-stattext was given.
6807 if test "${enable_stattext+set}" = set; then
6808   enableval="$enable_stattext"
6809   
6810                           if test "$enableval" = yes; then
6811                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6812                           else
6813                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
6814                           fi
6815                         
6816 else
6817   
6818                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6819                           if test "x$LINE" != x ; then
6820                             eval "DEFAULT_$LINE"
6821                           else
6822                             no_cache=1
6823                           fi
6824
6825                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6826                         
6827 fi
6828
6829
6830           eval "$ac_cv_use_stattext"
6831           if test "$no_cache" != 1; then
6832             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6833           fi
6834
6835           if test "$wxUSE_STATTEXT" = yes; then
6836             echo "$ac_t""yes" 1>&6
6837           else
6838             echo "$ac_t""no" 1>&6
6839           fi
6840         
6841
6842           echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6843 echo "configure:6844: checking for --enable-statusbar" >&5
6844           no_cache=0
6845           # Check whether --enable-statusbar or --disable-statusbar was given.
6846 if test "${enable_statusbar+set}" = set; then
6847   enableval="$enable_statusbar"
6848   
6849                           if test "$enableval" = yes; then
6850                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6851                           else
6852                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6853                           fi
6854                         
6855 else
6856   
6857                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6858                           if test "x$LINE" != x ; then
6859                             eval "DEFAULT_$LINE"
6860                           else
6861                             no_cache=1
6862                           fi
6863
6864                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6865                         
6866 fi
6867
6868
6869           eval "$ac_cv_use_statusbar"
6870           if test "$no_cache" != 1; then
6871             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6872           fi
6873
6874           if test "$wxUSE_STATUSBAR" = yes; then
6875             echo "$ac_t""yes" 1>&6
6876           else
6877             echo "$ac_t""no" 1>&6
6878           fi
6879         
6880
6881           echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6882 echo "configure:6883: checking for --enable-tabdialog" >&5
6883           no_cache=0
6884           # Check whether --enable-tabdialog or --disable-tabdialog was given.
6885 if test "${enable_tabdialog+set}" = set; then
6886   enableval="$enable_tabdialog"
6887   
6888                           if test "$enableval" = yes; then
6889                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6890                           else
6891                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6892                           fi
6893                         
6894 else
6895   
6896                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6897                           if test "x$LINE" != x ; then
6898                             eval "DEFAULT_$LINE"
6899                           else
6900                             no_cache=1
6901                           fi
6902
6903                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6904                         
6905 fi
6906
6907
6908           eval "$ac_cv_use_tabdialog"
6909           if test "$no_cache" != 1; then
6910             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6911           fi
6912
6913           if test "$wxUSE_TABDIALOG" = yes; then
6914             echo "$ac_t""yes" 1>&6
6915           else
6916             echo "$ac_t""no" 1>&6
6917           fi
6918         
6919
6920           echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6921 echo "configure:6922: checking for --enable-textctrl" >&5
6922           no_cache=0
6923           # Check whether --enable-textctrl or --disable-textctrl was given.
6924 if test "${enable_textctrl+set}" = set; then
6925   enableval="$enable_textctrl"
6926   
6927                           if test "$enableval" = yes; then
6928                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6929                           else
6930                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6931                           fi
6932                         
6933 else
6934   
6935                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6936                           if test "x$LINE" != x ; then
6937                             eval "DEFAULT_$LINE"
6938                           else
6939                             no_cache=1
6940                           fi
6941
6942                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6943                         
6944 fi
6945
6946
6947           eval "$ac_cv_use_textctrl"
6948           if test "$no_cache" != 1; then
6949             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6950           fi
6951
6952           if test "$wxUSE_TEXTCTRL" = yes; then
6953             echo "$ac_t""yes" 1>&6
6954           else
6955             echo "$ac_t""no" 1>&6
6956           fi
6957         
6958
6959           echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6960 echo "configure:6961: checking for --enable-togglebtn" >&5
6961           no_cache=0
6962           # Check whether --enable-togglebtn or --disable-togglebtn was given.
6963 if test "${enable_togglebtn+set}" = set; then
6964   enableval="$enable_togglebtn"
6965   
6966                           if test "$enableval" = yes; then
6967                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6968                           else
6969                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6970                           fi
6971                         
6972 else
6973   
6974                           LINE=`grep "wxUSE_TOGGLEBTN" ${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_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6982                         
6983 fi
6984
6985
6986           eval "$ac_cv_use_togglebtn"
6987           if test "$no_cache" != 1; then
6988             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6989           fi
6990
6991           if test "$wxUSE_TOGGLEBTN" = yes; then
6992             echo "$ac_t""yes" 1>&6
6993           else
6994             echo "$ac_t""no" 1>&6
6995           fi
6996         
6997
6998           echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6999 echo "configure:7000: checking for --enable-toolbar" >&5
7000           no_cache=0
7001           # Check whether --enable-toolbar or --disable-toolbar was given.
7002 if test "${enable_toolbar+set}" = set; then
7003   enableval="$enable_toolbar"
7004   
7005                           if test "$enableval" = yes; then
7006                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7007                           else
7008                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7009                           fi
7010                         
7011 else
7012   
7013                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7014                           if test "x$LINE" != x ; then
7015                             eval "DEFAULT_$LINE"
7016                           else
7017                             no_cache=1
7018                           fi
7019
7020                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7021                         
7022 fi
7023
7024
7025           eval "$ac_cv_use_toolbar"
7026           if test "$no_cache" != 1; then
7027             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7028           fi
7029
7030           if test "$wxUSE_TOOLBAR" = yes; then
7031             echo "$ac_t""yes" 1>&6
7032           else
7033             echo "$ac_t""no" 1>&6
7034           fi
7035         
7036
7037           echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7038 echo "configure:7039: checking for --enable-tbarnative" >&5
7039           no_cache=0
7040           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7041 if test "${enable_tbarnative+set}" = set; then
7042   enableval="$enable_tbarnative"
7043   
7044                           if test "$enableval" = yes; then
7045                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7046                           else
7047                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7048                           fi
7049                         
7050 else
7051   
7052                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7053                           if test "x$LINE" != x ; then
7054                             eval "DEFAULT_$LINE"
7055                           else
7056                             no_cache=1
7057                           fi
7058
7059                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7060                         
7061 fi
7062
7063
7064           eval "$ac_cv_use_tbarnative"
7065           if test "$no_cache" != 1; then
7066             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7067           fi
7068
7069           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7070             echo "$ac_t""yes" 1>&6
7071           else
7072             echo "$ac_t""no" 1>&6
7073           fi
7074         
7075
7076           echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7077 echo "configure:7078: checking for --enable-tbarsmpl" >&5
7078           no_cache=0
7079           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7080 if test "${enable_tbarsmpl+set}" = set; then
7081   enableval="$enable_tbarsmpl"
7082   
7083                           if test "$enableval" = yes; then
7084                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7085                           else
7086                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7087                           fi
7088                         
7089 else
7090   
7091                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7092                           if test "x$LINE" != x ; then
7093                             eval "DEFAULT_$LINE"
7094                           else
7095                             no_cache=1
7096                           fi
7097
7098                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7099                         
7100 fi
7101
7102
7103           eval "$ac_cv_use_tbarsmpl"
7104           if test "$no_cache" != 1; then
7105             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7106           fi
7107
7108           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7109             echo "$ac_t""yes" 1>&6
7110           else
7111             echo "$ac_t""no" 1>&6
7112           fi
7113         
7114
7115           echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7116 echo "configure:7117: checking for --enable-treectrl" >&5
7117           no_cache=0
7118           # Check whether --enable-treectrl or --disable-treectrl was given.
7119 if test "${enable_treectrl+set}" = set; then
7120   enableval="$enable_treectrl"
7121   
7122                           if test "$enableval" = yes; then
7123                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7124                           else
7125                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7126                           fi
7127                         
7128 else
7129   
7130                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7131                           if test "x$LINE" != x ; then
7132                             eval "DEFAULT_$LINE"
7133                           else
7134                             no_cache=1
7135                           fi
7136
7137                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7138                         
7139 fi
7140
7141
7142           eval "$ac_cv_use_treectrl"
7143           if test "$no_cache" != 1; then
7144             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7145           fi
7146
7147           if test "$wxUSE_TREECTRL" = yes; then
7148             echo "$ac_t""yes" 1>&6
7149           else
7150             echo "$ac_t""no" 1>&6
7151           fi
7152         
7153
7154           echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7155 echo "configure:7156: checking for --enable-tipwindow" >&5
7156           no_cache=0
7157           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7158 if test "${enable_tipwindow+set}" = set; then
7159   enableval="$enable_tipwindow"
7160   
7161                           if test "$enableval" = yes; then
7162                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7163                           else
7164                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7165                           fi
7166                         
7167 else
7168   
7169                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7170                           if test "x$LINE" != x ; then
7171                             eval "DEFAULT_$LINE"
7172                           else
7173                             no_cache=1
7174                           fi
7175
7176                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7177                         
7178 fi
7179
7180
7181           eval "$ac_cv_use_tipwindow"
7182           if test "$no_cache" != 1; then
7183             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7184           fi
7185
7186           if test "$wxUSE_TIPWINDOW" = yes; then
7187             echo "$ac_t""yes" 1>&6
7188           else
7189             echo "$ac_t""no" 1>&6
7190           fi
7191         
7192
7193           echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7194 echo "configure:7195: checking for --enable-popupwin" >&5
7195           no_cache=0
7196           # Check whether --enable-popupwin or --disable-popupwin was given.
7197 if test "${enable_popupwin+set}" = set; then
7198   enableval="$enable_popupwin"
7199   
7200                           if test "$enableval" = yes; then
7201                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7202                           else
7203                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7204                           fi
7205                         
7206 else
7207   
7208                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7209                           if test "x$LINE" != x ; then
7210                             eval "DEFAULT_$LINE"
7211                           else
7212                             no_cache=1
7213                           fi
7214
7215                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7216                         
7217 fi
7218
7219
7220           eval "$ac_cv_use_popupwin"
7221           if test "$no_cache" != 1; then
7222             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7223           fi
7224
7225           if test "$wxUSE_POPUPWIN" = yes; then
7226             echo "$ac_t""yes" 1>&6
7227           else
7228             echo "$ac_t""no" 1>&6
7229           fi
7230         
7231
7232
7233
7234           echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7235 echo "configure:7236: checking for --enable-commondlg" >&5
7236           no_cache=0
7237           # Check whether --enable-commondlg or --disable-commondlg was given.
7238 if test "${enable_commondlg+set}" = set; then
7239   enableval="$enable_commondlg"
7240   
7241                           if test "$enableval" = yes; then
7242                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7243                           else
7244                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7245                           fi
7246                         
7247 else
7248   
7249                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7250                           if test "x$LINE" != x ; then
7251                             eval "DEFAULT_$LINE"
7252                           else
7253                             no_cache=1
7254                           fi
7255
7256                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7257                         
7258 fi
7259
7260
7261           eval "$ac_cv_use_commondlg"
7262           if test "$no_cache" != 1; then
7263             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7264           fi
7265
7266           if test "$wxUSE_COMMONDLGS" = yes; then
7267             echo "$ac_t""yes" 1>&6
7268           else
7269             echo "$ac_t""no" 1>&6
7270           fi
7271         
7272
7273           echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7274 echo "configure:7275: checking for --enable-choicedlg" >&5
7275           no_cache=0
7276           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7277 if test "${enable_choicedlg+set}" = set; then
7278   enableval="$enable_choicedlg"
7279   
7280                           if test "$enableval" = yes; then
7281                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7282                           else
7283                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7284                           fi
7285                         
7286 else
7287   
7288                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7289                           if test "x$LINE" != x ; then
7290                             eval "DEFAULT_$LINE"
7291                           else
7292                             no_cache=1
7293                           fi
7294
7295                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7296                         
7297 fi
7298
7299
7300           eval "$ac_cv_use_choicedlg"
7301           if test "$no_cache" != 1; then
7302             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7303           fi
7304
7305           if test "$wxUSE_CHOICEDLG" = yes; then
7306             echo "$ac_t""yes" 1>&6
7307           else
7308             echo "$ac_t""no" 1>&6
7309           fi
7310         
7311
7312           echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7313 echo "configure:7314: checking for --enable-coldlg" >&5
7314           no_cache=0
7315           # Check whether --enable-coldlg or --disable-coldlg was given.
7316 if test "${enable_coldlg+set}" = set; then
7317   enableval="$enable_coldlg"
7318   
7319                           if test "$enableval" = yes; then
7320                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7321                           else
7322                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7323                           fi
7324                         
7325 else
7326   
7327                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7328                           if test "x$LINE" != x ; then
7329                             eval "DEFAULT_$LINE"
7330                           else
7331                             no_cache=1
7332                           fi
7333
7334                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7335                         
7336 fi
7337
7338
7339           eval "$ac_cv_use_coldlg"
7340           if test "$no_cache" != 1; then
7341             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7342           fi
7343
7344           if test "$wxUSE_COLOURDLG" = yes; then
7345             echo "$ac_t""yes" 1>&6
7346           else
7347             echo "$ac_t""no" 1>&6
7348           fi
7349         
7350
7351           echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7352 echo "configure:7353: checking for --enable-filedlg" >&5
7353           no_cache=0
7354           # Check whether --enable-filedlg or --disable-filedlg was given.
7355 if test "${enable_filedlg+set}" = set; then
7356   enableval="$enable_filedlg"
7357   
7358                           if test "$enableval" = yes; then
7359                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7360                           else
7361                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7362                           fi
7363                         
7364 else
7365   
7366                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7367                           if test "x$LINE" != x ; then
7368                             eval "DEFAULT_$LINE"
7369                           else
7370                             no_cache=1
7371                           fi
7372
7373                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7374                         
7375 fi
7376
7377
7378           eval "$ac_cv_use_filedlg"
7379           if test "$no_cache" != 1; then
7380             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7381           fi
7382
7383           if test "$wxUSE_FILEDLG" = yes; then
7384             echo "$ac_t""yes" 1>&6
7385           else
7386             echo "$ac_t""no" 1>&6
7387           fi
7388         
7389
7390           echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7391 echo "configure:7392: checking for --enable-finddlg" >&5
7392           no_cache=0
7393           # Check whether --enable-finddlg or --disable-finddlg was given.
7394 if test "${enable_finddlg+set}" = set; then
7395   enableval="$enable_finddlg"
7396   
7397                           if test "$enableval" = yes; then
7398                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7399                           else
7400                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7401                           fi
7402                         
7403 else
7404   
7405                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7406                           if test "x$LINE" != x ; then
7407                             eval "DEFAULT_$LINE"
7408                           else
7409                             no_cache=1
7410                           fi
7411
7412                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7413                         
7414 fi
7415
7416
7417           eval "$ac_cv_use_finddlg"
7418           if test "$no_cache" != 1; then
7419             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7420           fi
7421
7422           if test "$wxUSE_FINDREPLDLG" = yes; then
7423             echo "$ac_t""yes" 1>&6
7424           else
7425             echo "$ac_t""no" 1>&6
7426           fi
7427         
7428
7429           echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7430 echo "configure:7431: checking for --enable-fontdlg" >&5
7431           no_cache=0
7432           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7433 if test "${enable_fontdlg+set}" = set; then
7434   enableval="$enable_fontdlg"
7435   
7436                           if test "$enableval" = yes; then
7437                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7438                           else
7439                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7440                           fi
7441                         
7442 else
7443   
7444                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7445                           if test "x$LINE" != x ; then
7446                             eval "DEFAULT_$LINE"
7447                           else
7448                             no_cache=1
7449                           fi
7450
7451                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7452                         
7453 fi
7454
7455
7456           eval "$ac_cv_use_fontdlg"
7457           if test "$no_cache" != 1; then
7458             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7459           fi
7460
7461           if test "$wxUSE_FONTDLG" = yes; then
7462             echo "$ac_t""yes" 1>&6
7463           else
7464             echo "$ac_t""no" 1>&6
7465           fi
7466         
7467
7468           echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7469 echo "configure:7470: checking for --enable-dirdlg" >&5
7470           no_cache=0
7471           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7472 if test "${enable_dirdlg+set}" = set; then
7473   enableval="$enable_dirdlg"
7474   
7475                           if test "$enableval" = yes; then
7476                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7477                           else
7478                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7479                           fi
7480                         
7481 else
7482   
7483                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7484                           if test "x$LINE" != x ; then
7485                             eval "DEFAULT_$LINE"
7486                           else
7487                             no_cache=1
7488                           fi
7489
7490                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7491                         
7492 fi
7493
7494
7495           eval "$ac_cv_use_dirdlg"
7496           if test "$no_cache" != 1; then
7497             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7498           fi
7499
7500           if test "$wxUSE_DIRDLG" = yes; then
7501             echo "$ac_t""yes" 1>&6
7502           else
7503             echo "$ac_t""no" 1>&6
7504           fi
7505         
7506
7507           echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7508 echo "configure:7509: checking for --enable-msgdlg" >&5
7509           no_cache=0
7510           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7511 if test "${enable_msgdlg+set}" = set; then
7512   enableval="$enable_msgdlg"
7513   
7514                           if test "$enableval" = yes; then
7515                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7516                           else
7517                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7518                           fi
7519                         
7520 else
7521   
7522                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7523                           if test "x$LINE" != x ; then
7524                             eval "DEFAULT_$LINE"
7525                           else
7526                             no_cache=1
7527                           fi
7528
7529                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7530                         
7531 fi
7532
7533
7534           eval "$ac_cv_use_msgdlg"
7535           if test "$no_cache" != 1; then
7536             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7537           fi
7538
7539           if test "$wxUSE_MSGDLG" = yes; then
7540             echo "$ac_t""yes" 1>&6
7541           else
7542             echo "$ac_t""no" 1>&6
7543           fi
7544         
7545
7546           echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7547 echo "configure:7548: checking for --enable-numberdlg" >&5
7548           no_cache=0
7549           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7550 if test "${enable_numberdlg+set}" = set; then
7551   enableval="$enable_numberdlg"
7552   
7553                           if test "$enableval" = yes; then
7554                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7555                           else
7556                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7557                           fi
7558                         
7559 else
7560   
7561                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7562                           if test "x$LINE" != x ; then
7563                             eval "DEFAULT_$LINE"
7564                           else
7565                             no_cache=1
7566                           fi
7567
7568                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7569                         
7570 fi
7571
7572
7573           eval "$ac_cv_use_numberdlg"
7574           if test "$no_cache" != 1; then
7575             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7576           fi
7577
7578           if test "$wxUSE_NUMBERDLG" = yes; then
7579             echo "$ac_t""yes" 1>&6
7580           else
7581             echo "$ac_t""no" 1>&6
7582           fi
7583         
7584
7585           echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7586 echo "configure:7587: checking for --enable-splash" >&5
7587           no_cache=0
7588           # Check whether --enable-splash or --disable-splash was given.
7589 if test "${enable_splash+set}" = set; then
7590   enableval="$enable_splash"
7591   
7592                           if test "$enableval" = yes; then
7593                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7594                           else
7595                             ac_cv_use_splash='wxUSE_SPLASH=no'
7596                           fi
7597                         
7598 else
7599   
7600                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7601                           if test "x$LINE" != x ; then
7602                             eval "DEFAULT_$LINE"
7603                           else
7604                             no_cache=1
7605                           fi
7606
7607                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7608                         
7609 fi
7610
7611
7612           eval "$ac_cv_use_splash"
7613           if test "$no_cache" != 1; then
7614             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7615           fi
7616
7617           if test "$wxUSE_SPLASH" = yes; then
7618             echo "$ac_t""yes" 1>&6
7619           else
7620             echo "$ac_t""no" 1>&6
7621           fi
7622         
7623
7624           echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7625 echo "configure:7626: checking for --enable-textdlg" >&5
7626           no_cache=0
7627           # Check whether --enable-textdlg or --disable-textdlg was given.
7628 if test "${enable_textdlg+set}" = set; then
7629   enableval="$enable_textdlg"
7630   
7631                           if test "$enableval" = yes; then
7632                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7633                           else
7634                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7635                           fi
7636                         
7637 else
7638   
7639                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7640                           if test "x$LINE" != x ; then
7641                             eval "DEFAULT_$LINE"
7642                           else
7643                             no_cache=1
7644                           fi
7645
7646                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7647                         
7648 fi
7649
7650
7651           eval "$ac_cv_use_textdlg"
7652           if test "$no_cache" != 1; then
7653             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7654           fi
7655
7656           if test "$wxUSE_TEXTDLG" = yes; then
7657             echo "$ac_t""yes" 1>&6
7658           else
7659             echo "$ac_t""no" 1>&6
7660           fi
7661         
7662
7663           echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7664 echo "configure:7665: checking for --enable-tipdlg" >&5
7665           no_cache=0
7666           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7667 if test "${enable_tipdlg+set}" = set; then
7668   enableval="$enable_tipdlg"
7669   
7670                           if test "$enableval" = yes; then
7671                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7672                           else
7673                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7674                           fi
7675                         
7676 else
7677   
7678                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7679                           if test "x$LINE" != x ; then
7680                             eval "DEFAULT_$LINE"
7681                           else
7682                             no_cache=1
7683                           fi
7684
7685                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7686                         
7687 fi
7688
7689
7690           eval "$ac_cv_use_tipdlg"
7691           if test "$no_cache" != 1; then
7692             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7693           fi
7694
7695           if test "$wxUSE_STARTUP_TIPS" = yes; then
7696             echo "$ac_t""yes" 1>&6
7697           else
7698             echo "$ac_t""no" 1>&6
7699           fi
7700         
7701
7702           echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7703 echo "configure:7704: checking for --enable-progressdlg" >&5
7704           no_cache=0
7705           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7706 if test "${enable_progressdlg+set}" = set; then
7707   enableval="$enable_progressdlg"
7708   
7709                           if test "$enableval" = yes; then
7710                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7711                           else
7712                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7713                           fi
7714                         
7715 else
7716   
7717                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7718                           if test "x$LINE" != x ; then
7719                             eval "DEFAULT_$LINE"
7720                           else
7721                             no_cache=1
7722                           fi
7723
7724                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7725                         
7726 fi
7727
7728
7729           eval "$ac_cv_use_progressdlg"
7730           if test "$no_cache" != 1; then
7731             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7732           fi
7733
7734           if test "$wxUSE_PROGRESSDLG" = yes; then
7735             echo "$ac_t""yes" 1>&6
7736           else
7737             echo "$ac_t""no" 1>&6
7738           fi
7739         
7740
7741           echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7742 echo "configure:7743: checking for --enable-wizarddlg" >&5
7743           no_cache=0
7744           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7745 if test "${enable_wizarddlg+set}" = set; then
7746   enableval="$enable_wizarddlg"
7747   
7748                           if test "$enableval" = yes; then
7749                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7750                           else
7751                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7752                           fi
7753                         
7754 else
7755   
7756                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7757                           if test "x$LINE" != x ; then
7758                             eval "DEFAULT_$LINE"
7759                           else
7760                             no_cache=1
7761                           fi
7762
7763                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7764                         
7765 fi
7766
7767
7768           eval "$ac_cv_use_wizarddlg"
7769           if test "$no_cache" != 1; then
7770             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7771           fi
7772
7773           if test "$wxUSE_WIZARDDLG" = yes; then
7774             echo "$ac_t""yes" 1>&6
7775           else
7776             echo "$ac_t""no" 1>&6
7777           fi
7778         
7779
7780
7781
7782           echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7783 echo "configure:7784: checking for --enable-menus" >&5
7784           no_cache=0
7785           # Check whether --enable-menus or --disable-menus was given.
7786 if test "${enable_menus+set}" = set; then
7787   enableval="$enable_menus"
7788   
7789                           if test "$enableval" = yes; then
7790                             ac_cv_use_menus='wxUSE_MENUS=yes'
7791                           else
7792                             ac_cv_use_menus='wxUSE_MENUS=no'
7793                           fi
7794                         
7795 else
7796   
7797                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7798                           if test "x$LINE" != x ; then
7799                             eval "DEFAULT_$LINE"
7800                           else
7801                             no_cache=1
7802                           fi
7803
7804                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7805                         
7806 fi
7807
7808
7809           eval "$ac_cv_use_menus"
7810           if test "$no_cache" != 1; then
7811             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7812           fi
7813
7814           if test "$wxUSE_MENUS" = yes; then
7815             echo "$ac_t""yes" 1>&6
7816           else
7817             echo "$ac_t""no" 1>&6
7818           fi
7819         
7820
7821           echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7822 echo "configure:7823: checking for --enable-miniframe" >&5
7823           no_cache=0
7824           # Check whether --enable-miniframe or --disable-miniframe was given.
7825 if test "${enable_miniframe+set}" = set; then
7826   enableval="$enable_miniframe"
7827   
7828                           if test "$enableval" = yes; then
7829                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7830                           else
7831                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7832                           fi
7833                         
7834 else
7835   
7836                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7837                           if test "x$LINE" != x ; then
7838                             eval "DEFAULT_$LINE"
7839                           else
7840                             no_cache=1
7841                           fi
7842
7843                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7844                         
7845 fi
7846
7847
7848           eval "$ac_cv_use_miniframe"
7849           if test "$no_cache" != 1; then
7850             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7851           fi
7852
7853           if test "$wxUSE_MINIFRAME" = yes; then
7854             echo "$ac_t""yes" 1>&6
7855           else
7856             echo "$ac_t""no" 1>&6
7857           fi
7858         
7859
7860           echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7861 echo "configure:7862: checking for --enable-tooltips" >&5
7862           no_cache=0
7863           # Check whether --enable-tooltips or --disable-tooltips was given.
7864 if test "${enable_tooltips+set}" = set; then
7865   enableval="$enable_tooltips"
7866   
7867                           if test "$enableval" = yes; then
7868                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7869                           else
7870                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7871                           fi
7872                         
7873 else
7874   
7875                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7876                           if test "x$LINE" != x ; then
7877                             eval "DEFAULT_$LINE"
7878                           else
7879                             no_cache=1
7880                           fi
7881
7882                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7883                         
7884 fi
7885
7886
7887           eval "$ac_cv_use_tooltips"
7888           if test "$no_cache" != 1; then
7889             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7890           fi
7891
7892           if test "$wxUSE_TOOLTIPS" = yes; then
7893             echo "$ac_t""yes" 1>&6
7894           else
7895             echo "$ac_t""no" 1>&6
7896           fi
7897         
7898
7899           echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7900 echo "configure:7901: checking for --enable-splines" >&5
7901           no_cache=0
7902           # Check whether --enable-splines or --disable-splines was given.
7903 if test "${enable_splines+set}" = set; then
7904   enableval="$enable_splines"
7905   
7906                           if test "$enableval" = yes; then
7907                             ac_cv_use_splines='wxUSE_SPLINES=yes'
7908                           else
7909                             ac_cv_use_splines='wxUSE_SPLINES=no'
7910                           fi
7911                         
7912 else
7913   
7914                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7915                           if test "x$LINE" != x ; then
7916                             eval "DEFAULT_$LINE"
7917                           else
7918                             no_cache=1
7919                           fi
7920
7921                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7922                         
7923 fi
7924
7925
7926           eval "$ac_cv_use_splines"
7927           if test "$no_cache" != 1; then
7928             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7929           fi
7930
7931           if test "$wxUSE_SPLINES" = yes; then
7932             echo "$ac_t""yes" 1>&6
7933           else
7934             echo "$ac_t""no" 1>&6
7935           fi
7936         
7937
7938           echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7939 echo "configure:7940: checking for --enable-validators" >&5
7940           no_cache=0
7941           # Check whether --enable-validators or --disable-validators was given.
7942 if test "${enable_validators+set}" = set; then
7943   enableval="$enable_validators"
7944   
7945                           if test "$enableval" = yes; then
7946                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7947                           else
7948                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
7949                           fi
7950                         
7951 else
7952   
7953                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7954                           if test "x$LINE" != x ; then
7955                             eval "DEFAULT_$LINE"
7956                           else
7957                             no_cache=1
7958                           fi
7959
7960                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7961                         
7962 fi
7963
7964
7965           eval "$ac_cv_use_validators"
7966           if test "$no_cache" != 1; then
7967             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7968           fi
7969
7970           if test "$wxUSE_VALIDATORS" = yes; then
7971             echo "$ac_t""yes" 1>&6
7972           else
7973             echo "$ac_t""no" 1>&6
7974           fi
7975         
7976
7977           echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7978 echo "configure:7979: checking for --enable-busyinfo" >&5
7979           no_cache=0
7980           # Check whether --enable-busyinfo or --disable-busyinfo was given.
7981 if test "${enable_busyinfo+set}" = set; then
7982   enableval="$enable_busyinfo"
7983   
7984                           if test "$enableval" = yes; then
7985                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7986                           else
7987                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7988                           fi
7989                         
7990 else
7991   
7992                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7993                           if test "x$LINE" != x ; then
7994                             eval "DEFAULT_$LINE"
7995                           else
7996                             no_cache=1
7997                           fi
7998
7999                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8000                         
8001 fi
8002
8003
8004           eval "$ac_cv_use_busyinfo"
8005           if test "$no_cache" != 1; then
8006             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8007           fi
8008
8009           if test "$wxUSE_BUSYINFO" = yes; then
8010             echo "$ac_t""yes" 1>&6
8011           else
8012             echo "$ac_t""no" 1>&6
8013           fi
8014         
8015
8016           echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8017 echo "configure:8018: checking for --enable-joystick" >&5
8018           no_cache=0
8019           # Check whether --enable-joystick or --disable-joystick was given.
8020 if test "${enable_joystick+set}" = set; then
8021   enableval="$enable_joystick"
8022   
8023                           if test "$enableval" = yes; then
8024                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8025                           else
8026                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8027                           fi
8028                         
8029 else
8030   
8031                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8032                           if test "x$LINE" != x ; then
8033                             eval "DEFAULT_$LINE"
8034                           else
8035                             no_cache=1
8036                           fi
8037
8038                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8039                         
8040 fi
8041
8042
8043           eval "$ac_cv_use_joystick"
8044           if test "$no_cache" != 1; then
8045             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8046           fi
8047
8048           if test "$wxUSE_JOYSTICK" = yes; then
8049             echo "$ac_t""yes" 1>&6
8050           else
8051             echo "$ac_t""no" 1>&6
8052           fi
8053         
8054
8055           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8056 echo "configure:8057: checking for --enable-metafile" >&5
8057           no_cache=0
8058           # Check whether --enable-metafile or --disable-metafile was given.
8059 if test "${enable_metafile+set}" = set; then
8060   enableval="$enable_metafile"
8061   
8062                           if test "$enableval" = yes; then
8063                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8064                           else
8065                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8066                           fi
8067                         
8068 else
8069   
8070                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8071                           if test "x$LINE" != x ; then
8072                             eval "DEFAULT_$LINE"
8073                           else
8074                             no_cache=1
8075                           fi
8076
8077                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8078                         
8079 fi
8080
8081
8082           eval "$ac_cv_use_metafile"
8083           if test "$no_cache" != 1; then
8084             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8085           fi
8086
8087           if test "$wxUSE_METAFILE" = yes; then
8088             echo "$ac_t""yes" 1>&6
8089           else
8090             echo "$ac_t""no" 1>&6
8091           fi
8092         
8093
8094           echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8095 echo "configure:8096: checking for --enable-dragimage" >&5
8096           no_cache=0
8097           # Check whether --enable-dragimage or --disable-dragimage was given.
8098 if test "${enable_dragimage+set}" = set; then
8099   enableval="$enable_dragimage"
8100   
8101                           if test "$enableval" = yes; then
8102                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8103                           else
8104                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8105                           fi
8106                         
8107 else
8108   
8109                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8110                           if test "x$LINE" != x ; then
8111                             eval "DEFAULT_$LINE"
8112                           else
8113                             no_cache=1
8114                           fi
8115
8116                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8117                         
8118 fi
8119
8120
8121           eval "$ac_cv_use_dragimage"
8122           if test "$no_cache" != 1; then
8123             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8124           fi
8125
8126           if test "$wxUSE_DRAGIMAGE" = yes; then
8127             echo "$ac_t""yes" 1>&6
8128           else
8129             echo "$ac_t""no" 1>&6
8130           fi
8131         
8132
8133
8134
8135           echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8136 echo "configure:8137: checking for --enable-palette" >&5
8137           no_cache=0
8138           # Check whether --enable-palette or --disable-palette was given.
8139 if test "${enable_palette+set}" = set; then
8140   enableval="$enable_palette"
8141   
8142                           if test "$enableval" = yes; then
8143                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8144                           else
8145                             ac_cv_use_palette='wxUSE_PALETTE=no'
8146                           fi
8147                         
8148 else
8149   
8150                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8151                           if test "x$LINE" != x ; then
8152                             eval "DEFAULT_$LINE"
8153                           else
8154                             no_cache=1
8155                           fi
8156
8157                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8158                         
8159 fi
8160
8161
8162           eval "$ac_cv_use_palette"
8163           if test "$no_cache" != 1; then
8164             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8165           fi
8166
8167           if test "$wxUSE_PALETTE" = yes; then
8168             echo "$ac_t""yes" 1>&6
8169           else
8170             echo "$ac_t""no" 1>&6
8171           fi
8172         
8173
8174           echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8175 echo "configure:8176: checking for --enable-image" >&5
8176           no_cache=0
8177           # Check whether --enable-image or --disable-image was given.
8178 if test "${enable_image+set}" = set; then
8179   enableval="$enable_image"
8180   
8181                           if test "$enableval" = yes; then
8182                             ac_cv_use_image='wxUSE_IMAGE=yes'
8183                           else
8184                             ac_cv_use_image='wxUSE_IMAGE=no'
8185                           fi
8186                         
8187 else
8188   
8189                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8190                           if test "x$LINE" != x ; then
8191                             eval "DEFAULT_$LINE"
8192                           else
8193                             no_cache=1
8194                           fi
8195
8196                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8197                         
8198 fi
8199
8200
8201           eval "$ac_cv_use_image"
8202           if test "$no_cache" != 1; then
8203             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8204           fi
8205
8206           if test "$wxUSE_IMAGE" = yes; then
8207             echo "$ac_t""yes" 1>&6
8208           else
8209             echo "$ac_t""no" 1>&6
8210           fi
8211         
8212
8213           echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8214 echo "configure:8215: checking for --enable-gif" >&5
8215           no_cache=0
8216           # Check whether --enable-gif or --disable-gif was given.
8217 if test "${enable_gif+set}" = set; then
8218   enableval="$enable_gif"
8219   
8220                           if test "$enableval" = yes; then
8221                             ac_cv_use_gif='wxUSE_GIF=yes'
8222                           else
8223                             ac_cv_use_gif='wxUSE_GIF=no'
8224                           fi
8225                         
8226 else
8227   
8228                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8229                           if test "x$LINE" != x ; then
8230                             eval "DEFAULT_$LINE"
8231                           else
8232                             no_cache=1
8233                           fi
8234
8235                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8236                         
8237 fi
8238
8239
8240           eval "$ac_cv_use_gif"
8241           if test "$no_cache" != 1; then
8242             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8243           fi
8244
8245           if test "$wxUSE_GIF" = yes; then
8246             echo "$ac_t""yes" 1>&6
8247           else
8248             echo "$ac_t""no" 1>&6
8249           fi
8250         
8251
8252           echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8253 echo "configure:8254: checking for --enable-pcx" >&5
8254           no_cache=0
8255           # Check whether --enable-pcx or --disable-pcx was given.
8256 if test "${enable_pcx+set}" = set; then
8257   enableval="$enable_pcx"
8258   
8259                           if test "$enableval" = yes; then
8260                             ac_cv_use_pcx='wxUSE_PCX=yes'
8261                           else
8262                             ac_cv_use_pcx='wxUSE_PCX=no'
8263                           fi
8264                         
8265 else
8266   
8267                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8268                           if test "x$LINE" != x ; then
8269                             eval "DEFAULT_$LINE"
8270                           else
8271                             no_cache=1
8272                           fi
8273
8274                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8275                         
8276 fi
8277
8278
8279           eval "$ac_cv_use_pcx"
8280           if test "$no_cache" != 1; then
8281             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8282           fi
8283
8284           if test "$wxUSE_PCX" = yes; then
8285             echo "$ac_t""yes" 1>&6
8286           else
8287             echo "$ac_t""no" 1>&6
8288           fi
8289         
8290
8291           echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8292 echo "configure:8293: checking for --enable-iff" >&5
8293           no_cache=0
8294           # Check whether --enable-iff or --disable-iff was given.
8295 if test "${enable_iff+set}" = set; then
8296   enableval="$enable_iff"
8297   
8298                           if test "$enableval" = yes; then
8299                             ac_cv_use_iff='wxUSE_IFF=yes'
8300                           else
8301                             ac_cv_use_iff='wxUSE_IFF=no'
8302                           fi
8303                         
8304 else
8305   
8306                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8307                           if test "x$LINE" != x ; then
8308                             eval "DEFAULT_$LINE"
8309                           else
8310                             no_cache=1
8311                           fi
8312
8313                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8314                         
8315 fi
8316
8317
8318           eval "$ac_cv_use_iff"
8319           if test "$no_cache" != 1; then
8320             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8321           fi
8322
8323           if test "$wxUSE_IFF" = yes; then
8324             echo "$ac_t""yes" 1>&6
8325           else
8326             echo "$ac_t""no" 1>&6
8327           fi
8328         
8329
8330           echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8331 echo "configure:8332: checking for --enable-pnm" >&5
8332           no_cache=0
8333           # Check whether --enable-pnm or --disable-pnm was given.
8334 if test "${enable_pnm+set}" = set; then
8335   enableval="$enable_pnm"
8336   
8337                           if test "$enableval" = yes; then
8338                             ac_cv_use_pnm='wxUSE_PNM=yes'
8339                           else
8340                             ac_cv_use_pnm='wxUSE_PNM=no'
8341                           fi
8342                         
8343 else
8344   
8345                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8346                           if test "x$LINE" != x ; then
8347                             eval "DEFAULT_$LINE"
8348                           else
8349                             no_cache=1
8350                           fi
8351
8352                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8353                         
8354 fi
8355
8356
8357           eval "$ac_cv_use_pnm"
8358           if test "$no_cache" != 1; then
8359             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8360           fi
8361
8362           if test "$wxUSE_PNM" = yes; then
8363             echo "$ac_t""yes" 1>&6
8364           else
8365             echo "$ac_t""no" 1>&6
8366           fi
8367         
8368
8369           echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8370 echo "configure:8371: checking for --enable-xpm" >&5
8371           no_cache=0
8372           # Check whether --enable-xpm or --disable-xpm was given.
8373 if test "${enable_xpm+set}" = set; then
8374   enableval="$enable_xpm"
8375   
8376                           if test "$enableval" = yes; then
8377                             ac_cv_use_xpm='wxUSE_XPM=yes'
8378                           else
8379                             ac_cv_use_xpm='wxUSE_XPM=no'
8380                           fi
8381                         
8382 else
8383   
8384                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8385                           if test "x$LINE" != x ; then
8386                             eval "DEFAULT_$LINE"
8387                           else
8388                             no_cache=1
8389                           fi
8390
8391                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8392                         
8393 fi
8394
8395
8396           eval "$ac_cv_use_xpm"
8397           if test "$no_cache" != 1; then
8398             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8399           fi
8400
8401           if test "$wxUSE_XPM" = yes; then
8402             echo "$ac_t""yes" 1>&6
8403           else
8404             echo "$ac_t""no" 1>&6
8405           fi
8406         
8407
8408           echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8409 echo "configure:8410: checking for --enable-ico_cur" >&5
8410           no_cache=0
8411           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8412 if test "${enable_ico_cur+set}" = set; then
8413   enableval="$enable_ico_cur"
8414   
8415                           if test "$enableval" = yes; then
8416                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8417                           else
8418                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8419                           fi
8420                         
8421 else
8422   
8423                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8424                           if test "x$LINE" != x ; then
8425                             eval "DEFAULT_$LINE"
8426                           else
8427                             no_cache=1
8428                           fi
8429
8430                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8431                         
8432 fi
8433
8434
8435           eval "$ac_cv_use_ico_cur"
8436           if test "$no_cache" != 1; then
8437             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8438           fi
8439
8440           if test "$wxUSE_ICO_CUR" = yes; then
8441             echo "$ac_t""yes" 1>&6
8442           else
8443             echo "$ac_t""no" 1>&6
8444           fi
8445         
8446
8447 fi
8448
8449 case "${host}" in
8450   *-pc-os2_emx | *-pc-os2-emx )
8451         LEX_STEM="lexyy"
8452   ;;
8453   *)
8454     PATH_IFS=':'
8455     LEX_STEM="lex.yy"
8456   ;;
8457 esac
8458
8459
8460
8461           echo "saving argument cache $wx_arg_cache_file"
8462           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8463         
8464
8465
8466 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8467 echo "configure:8468: checking for toolkit" >&5
8468
8469 if test "$wxUSE_GUI" = "yes"; then
8470
8471     if test "$USE_BEOS" = 1; then
8472         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8473     fi
8474
8475     if test "$TOOLKIT_GIVEN" = 1; then
8476             for toolkit in `echo $ALL_TOOLKITS`; do
8477         var=wxUSE_$toolkit
8478         eval "value=\$${var}"
8479         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8480       done
8481     else
8482             for toolkit in `echo $ALL_TOOLKITS`; do
8483         if test "$has_toolkit_in_cache" != 1; then
8484           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8485         else
8486           var=DEFAULT_wxUSE_$toolkit
8487         fi
8488         eval "wxUSE_$toolkit=\$${var}"
8489       done
8490     fi
8491
8492             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
8493                   + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8494
8495         case "${host}" in
8496       *-pc-os2_emx | *-pc-os2-emx )
8497         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8498     esac
8499
8500     case "$NUM_TOOLKITS" in
8501       1)
8502       ;;
8503       0)
8504         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8505       ;;
8506       *)
8507         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8508     esac
8509
8510         for toolkit in `echo $ALL_TOOLKITS`; do
8511       var=wxUSE_$toolkit
8512       eval "value=\$${var}"
8513       if test "x$value" != x; then
8514         cache_var=CACHE_$toolkit
8515         eval "cache=\$${cache_var}"
8516         if test "$cache" = 1; then
8517           echo "$var=$value" >> ${wx_arg_cache_file}
8518         fi
8519         if test "$value" = 1; then
8520           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8521           echo "$ac_t""$toolkit_echo" 1>&6
8522         fi
8523       fi
8524     done
8525 else
8526     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8527 fi
8528
8529
8530 wants_win32=0
8531 doesnt_want_win32=0
8532 case "${host}" in
8533   *-*-cygwin*)
8534       if test "$wxUSE_MSW" = 1 ; then
8535         wants_win32=1
8536       else
8537         doesnt_want_win32=1
8538       fi
8539   ;;
8540   *-*-mingw*)
8541       wants_win32=1
8542   ;;
8543 esac
8544
8545 if test "$wants_win32" = 1 ; then
8546     USE_UNIX=0
8547     USE_WIN32=1
8548     cat >> confdefs.h <<\EOF
8549 #define __WIN32__ 1
8550 EOF
8551
8552     cat >> confdefs.h <<\EOF
8553 #define __WIN95__ 1
8554 EOF
8555
8556     cat >> confdefs.h <<\EOF
8557 #define __WINDOWS__ 1
8558 EOF
8559
8560     cat >> confdefs.h <<\EOF
8561 #define __GNUWIN32__ 1
8562 EOF
8563
8564     cat >> confdefs.h <<\EOF
8565 #define STRICT 1
8566 EOF
8567
8568     cat >> confdefs.h <<\EOF
8569 #define WINVER 0x0400
8570 EOF
8571
8572 fi
8573 if test "$doesnt_want_win32" = 1 ; then
8574     USE_UNIX=1
8575     USE_WIN32=0
8576 fi
8577
8578 if test "$USE_UNIX" = 1 ; then
8579     wxUSE_UNIX=yes
8580     cat >> confdefs.h <<\EOF
8581 #define __UNIX__ 1
8582 EOF
8583
8584 fi
8585
8586
8587 cat > confcache <<\EOF
8588 # This file is a shell script that caches the results of configure
8589 # tests run on this system so they can be shared between configure
8590 # scripts and configure runs.  It is not useful on other systems.
8591 # If it contains results you don't want to keep, you may remove or edit it.
8592 #
8593 # By default, configure uses ./config.cache as the cache file,
8594 # creating it if it does not exist already.  You can give configure
8595 # the --cache-file=FILE option to use a different cache file; that is
8596 # what configure does when it calls configure scripts in
8597 # subdirectories, so they share the cache.
8598 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8599 # config.status only pays attention to the cache file if you give it the
8600 # --recheck option to rerun configure.
8601 #
8602 EOF
8603 # The following way of writing the cache mishandles newlines in values,
8604 # but we know of no workaround that is simple, portable, and efficient.
8605 # So, don't put newlines in cache variables' values.
8606 # Ultrix sh set writes to stderr and can't be redirected directly,
8607 # and sets the high bit in the cache file unless we assign to the vars.
8608 (set) 2>&1 |
8609   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8610   *ac_space=\ *)
8611     # `set' does not quote correctly, so add quotes (double-quote substitution
8612     # turns \\\\ into \\, and sed turns \\ into \).
8613     sed -n \
8614       -e "s/'/'\\\\''/g" \
8615       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8616     ;;
8617   *)
8618     # `set' quotes correctly as required by POSIX, so do not add quotes.
8619     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8620     ;;
8621   esac >> confcache
8622 if cmp -s $cache_file confcache; then
8623   :
8624 else
8625   if test -w $cache_file; then
8626     echo "updating cache $cache_file"
8627     cat confcache > $cache_file
8628   else
8629     echo "not updating unwritable cache $cache_file"
8630   fi
8631 fi
8632 rm -f confcache
8633
8634
8635 if test "$build" != "$host" ; then
8636     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8637         CC=$host_alias-gcc
8638         CXX=$host_alias-c++
8639         AR=$host_alias-ar
8640         RANLIB=$host_alias-ranlib
8641         DLLTOOL=$host_alias-dlltool
8642         RESCOMP=$host_alias-windres
8643         LD=$host_alias-ld
8644         NM=$host_alias-nm
8645         STRIP=$host_alias-strip
8646     else
8647         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8648     fi
8649 fi
8650
8651 CFLAGS=${CFLAGS:=}
8652 # Extract the first word of "gcc", so it can be a program name with args.
8653 set dummy gcc; ac_word=$2
8654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8655 echo "configure:8656: checking for $ac_word" >&5
8656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8657   echo $ac_n "(cached) $ac_c" 1>&6
8658 else
8659   if test -n "$CC"; then
8660   ac_cv_prog_CC="$CC" # Let the user override the test.
8661 else
8662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8663   ac_dummy="$PATH"
8664   for ac_dir in $ac_dummy; do
8665     test -z "$ac_dir" && ac_dir=.
8666     if test -f $ac_dir/$ac_word; then
8667       ac_cv_prog_CC="gcc"
8668       break
8669     fi
8670   done
8671   IFS="$ac_save_ifs"
8672 fi
8673 fi
8674 CC="$ac_cv_prog_CC"
8675 if test -n "$CC"; then
8676   echo "$ac_t""$CC" 1>&6
8677 else
8678   echo "$ac_t""no" 1>&6
8679 fi
8680
8681 if test -z "$CC"; then
8682   # Extract the first word of "cc", so it can be a program name with args.
8683 set dummy cc; ac_word=$2
8684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8685 echo "configure:8686: checking for $ac_word" >&5
8686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8687   echo $ac_n "(cached) $ac_c" 1>&6
8688 else
8689   if test -n "$CC"; then
8690   ac_cv_prog_CC="$CC" # Let the user override the test.
8691 else
8692   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8693   ac_prog_rejected=no
8694   ac_dummy="$PATH"
8695   for ac_dir in $ac_dummy; do
8696     test -z "$ac_dir" && ac_dir=.
8697     if test -f $ac_dir/$ac_word; then
8698       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8699         ac_prog_rejected=yes
8700         continue
8701       fi
8702       ac_cv_prog_CC="cc"
8703       break
8704     fi
8705   done
8706   IFS="$ac_save_ifs"
8707 if test $ac_prog_rejected = yes; then
8708   # We found a bogon in the path, so make sure we never use it.
8709   set dummy $ac_cv_prog_CC
8710   shift
8711   if test $# -gt 0; then
8712     # We chose a different compiler from the bogus one.
8713     # However, it has the same basename, so the bogon will be chosen
8714     # first if we set CC to just the basename; use the full file name.
8715     shift
8716     set dummy "$ac_dir/$ac_word" "$@"
8717     shift
8718     ac_cv_prog_CC="$@"
8719   fi
8720 fi
8721 fi
8722 fi
8723 CC="$ac_cv_prog_CC"
8724 if test -n "$CC"; then
8725   echo "$ac_t""$CC" 1>&6
8726 else
8727   echo "$ac_t""no" 1>&6
8728 fi
8729
8730   if test -z "$CC"; then
8731     case "`uname -s`" in
8732     *win32* | *WIN32*)
8733       # Extract the first word of "cl", so it can be a program name with args.
8734 set dummy cl; ac_word=$2
8735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8736 echo "configure:8737: checking for $ac_word" >&5
8737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8738   echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740   if test -n "$CC"; then
8741   ac_cv_prog_CC="$CC" # Let the user override the test.
8742 else
8743   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8744   ac_dummy="$PATH"
8745   for ac_dir in $ac_dummy; do
8746     test -z "$ac_dir" && ac_dir=.
8747     if test -f $ac_dir/$ac_word; then
8748       ac_cv_prog_CC="cl"
8749       break
8750     fi
8751   done
8752   IFS="$ac_save_ifs"
8753 fi
8754 fi
8755 CC="$ac_cv_prog_CC"
8756 if test -n "$CC"; then
8757   echo "$ac_t""$CC" 1>&6
8758 else
8759   echo "$ac_t""no" 1>&6
8760 fi
8761  ;;
8762     esac
8763   fi
8764   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8765 fi
8766
8767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8768 echo "configure:8769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8769
8770 ac_ext=c
8771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8772 ac_cpp='$CPP $CPPFLAGS'
8773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8775 cross_compiling=$ac_cv_prog_cc_cross
8776
8777 cat > conftest.$ac_ext << EOF
8778
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781
8782 main(){return(0);}
8783 EOF
8784 if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8785   ac_cv_prog_cc_works=yes
8786   # If we can't run a trivial program, we are probably using a cross compiler.
8787   if (./conftest; exit) 2>/dev/null; then
8788     ac_cv_prog_cc_cross=no
8789   else
8790     ac_cv_prog_cc_cross=yes
8791   fi
8792 else
8793   echo "configure: failed program was:" >&5
8794   cat conftest.$ac_ext >&5
8795   ac_cv_prog_cc_works=no
8796 fi
8797 rm -fr conftest*
8798 ac_ext=c
8799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8803 cross_compiling=$ac_cv_prog_cc_cross
8804
8805 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8806 if test $ac_cv_prog_cc_works = no; then
8807   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8808 fi
8809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8810 echo "configure:8811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8811 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8812 cross_compiling=$ac_cv_prog_cc_cross
8813
8814 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8815 echo "configure:8816: checking whether we are using GNU C" >&5
8816 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8817   echo $ac_n "(cached) $ac_c" 1>&6
8818 else
8819   cat > conftest.c <<EOF
8820 #ifdef __GNUC__
8821   yes;
8822 #endif
8823 EOF
8824 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8825   ac_cv_prog_gcc=yes
8826 else
8827   ac_cv_prog_gcc=no
8828 fi
8829 fi
8830
8831 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8832
8833 if test $ac_cv_prog_gcc = yes; then
8834   GCC=yes
8835 else
8836   GCC=
8837 fi
8838
8839 ac_test_CFLAGS="${CFLAGS+set}"
8840 ac_save_CFLAGS="$CFLAGS"
8841 CFLAGS=
8842 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8843 echo "configure:8844: checking whether ${CC-cc} accepts -g" >&5
8844 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8845   echo $ac_n "(cached) $ac_c" 1>&6
8846 else
8847   echo 'void f(){}' > conftest.c
8848 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8849   ac_cv_prog_cc_g=yes
8850 else
8851   ac_cv_prog_cc_g=no
8852 fi
8853 rm -f conftest*
8854
8855 fi
8856
8857 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8858 if test "$ac_test_CFLAGS" = set; then
8859   CFLAGS="$ac_save_CFLAGS"
8860 elif test $ac_cv_prog_cc_g = yes; then
8861   if test "$GCC" = yes; then
8862     CFLAGS="-g -O2"
8863   else
8864     CFLAGS="-g"
8865   fi
8866 else
8867   if test "$GCC" = yes; then
8868     CFLAGS="-O2"
8869   else
8870     CFLAGS=
8871   fi
8872 fi
8873
8874
8875 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8876 echo "configure:8877: checking how to run the C preprocessor" >&5
8877 # On Suns, sometimes $CPP names a directory.
8878 if test -n "$CPP" && test -d "$CPP"; then
8879   CPP=
8880 fi
8881 if test -z "$CPP"; then
8882 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8883   echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8885     # This must be in double quotes, not single quotes, because CPP may get
8886   # substituted into the Makefile and "${CC-cc}" will confuse make.
8887   CPP="${CC-cc} -E"
8888   # On the NeXT, cc -E runs the code through the compiler's parser,
8889   # not just through cpp.
8890   cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 #include <assert.h>
8894 Syntax Error
8895 EOF
8896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8897 { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8899 if test -z "$ac_err"; then
8900   :
8901 else
8902   echo "$ac_err" >&5
8903   echo "configure: failed program was:" >&5
8904   cat conftest.$ac_ext >&5
8905   rm -rf conftest*
8906   CPP="${CC-cc} -E -traditional-cpp"
8907   cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 #include <assert.h>
8911 Syntax Error
8912 EOF
8913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8914 { (eval echo configure:8915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8916 if test -z "$ac_err"; then
8917   :
8918 else
8919   echo "$ac_err" >&5
8920   echo "configure: failed program was:" >&5
8921   cat conftest.$ac_ext >&5
8922   rm -rf conftest*
8923   CPP="${CC-cc} -nologo -E"
8924   cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 #include <assert.h>
8928 Syntax Error
8929 EOF
8930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8931 { (eval echo configure:8932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8933 if test -z "$ac_err"; then
8934   :
8935 else
8936   echo "$ac_err" >&5
8937   echo "configure: failed program was:" >&5
8938   cat conftest.$ac_ext >&5
8939   rm -rf conftest*
8940   CPP=/lib/cpp
8941 fi
8942 rm -f conftest*
8943 fi
8944 rm -f conftest*
8945 fi
8946 rm -f conftest*
8947   ac_cv_prog_CPP="$CPP"
8948 fi
8949   CPP="$ac_cv_prog_CPP"
8950 else
8951   ac_cv_prog_CPP="$CPP"
8952 fi
8953 echo "$ac_t""$CPP" 1>&6
8954
8955 if test $ac_cv_prog_gcc = yes; then
8956     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8957 echo "configure:8958: checking whether ${CC-cc} needs -traditional" >&5
8958 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8959   echo $ac_n "(cached) $ac_c" 1>&6
8960 else
8961     ac_pattern="Autoconf.*'x'"
8962   cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 #include <sgtty.h>
8966 Autoconf TIOCGETP
8967 EOF
8968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8969   egrep "$ac_pattern" >/dev/null 2>&1; then
8970   rm -rf conftest*
8971   ac_cv_prog_gcc_traditional=yes
8972 else
8973   rm -rf conftest*
8974   ac_cv_prog_gcc_traditional=no
8975 fi
8976 rm -f conftest*
8977
8978
8979   if test $ac_cv_prog_gcc_traditional = no; then
8980     cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 #include <termio.h>
8984 Autoconf TCGETA
8985 EOF
8986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8987   egrep "$ac_pattern" >/dev/null 2>&1; then
8988   rm -rf conftest*
8989   ac_cv_prog_gcc_traditional=yes
8990 fi
8991 rm -f conftest*
8992
8993   fi
8994 fi
8995
8996 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8997   if test $ac_cv_prog_gcc_traditional = yes; then
8998     CC="$CC -traditional"
8999   fi
9000 fi
9001
9002
9003
9004 ac_ext=C
9005 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9006 ac_cpp='$CXXCPP $CPPFLAGS'
9007 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9008 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9009 cross_compiling=$ac_cv_prog_cxx_cross
9010
9011
9012 CXXFLAGS=${CXXFLAGS:=}
9013 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9014 do
9015 # Extract the first word of "$ac_prog", so it can be a program name with args.
9016 set dummy $ac_prog; ac_word=$2
9017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9018 echo "configure:9019: checking for $ac_word" >&5
9019 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9020   echo $ac_n "(cached) $ac_c" 1>&6
9021 else
9022   if test -n "$CXX"; then
9023   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9024 else
9025   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9026   ac_dummy="$PATH"
9027   for ac_dir in $ac_dummy; do
9028     test -z "$ac_dir" && ac_dir=.
9029     if test -f $ac_dir/$ac_word; then
9030       ac_cv_prog_CXX="$ac_prog"
9031       break
9032     fi
9033   done
9034   IFS="$ac_save_ifs"
9035 fi
9036 fi
9037 CXX="$ac_cv_prog_CXX"
9038 if test -n "$CXX"; then
9039   echo "$ac_t""$CXX" 1>&6
9040 else
9041   echo "$ac_t""no" 1>&6
9042 fi
9043
9044 test -n "$CXX" && break
9045 done
9046 test -n "$CXX" || CXX="gcc"
9047
9048
9049 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9050 echo "configure:9051: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9051
9052 ac_ext=C
9053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9054 ac_cpp='$CXXCPP $CPPFLAGS'
9055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9057 cross_compiling=$ac_cv_prog_cxx_cross
9058
9059 cat > conftest.$ac_ext << EOF
9060
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063
9064 int main(){return(0);}
9065 EOF
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067   ac_cv_prog_cxx_works=yes
9068   # If we can't run a trivial program, we are probably using a cross compiler.
9069   if (./conftest; exit) 2>/dev/null; then
9070     ac_cv_prog_cxx_cross=no
9071   else
9072     ac_cv_prog_cxx_cross=yes
9073   fi
9074 else
9075   echo "configure: failed program was:" >&5
9076   cat conftest.$ac_ext >&5
9077   ac_cv_prog_cxx_works=no
9078 fi
9079 rm -fr conftest*
9080 ac_ext=C
9081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9082 ac_cpp='$CXXCPP $CPPFLAGS'
9083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9085 cross_compiling=$ac_cv_prog_cxx_cross
9086
9087 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9088 if test $ac_cv_prog_cxx_works = no; then
9089   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9090 fi
9091 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9092 echo "configure:9093: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9093 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9094 cross_compiling=$ac_cv_prog_cxx_cross
9095
9096 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9097 echo "configure:9098: checking whether we are using GNU C++" >&5
9098 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9099   echo $ac_n "(cached) $ac_c" 1>&6
9100 else
9101   cat > conftest.C <<EOF
9102 #ifdef __GNUC__
9103   yes;
9104 #endif
9105 EOF
9106 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9107   ac_cv_prog_gxx=yes
9108 else
9109   ac_cv_prog_gxx=no
9110 fi
9111 fi
9112
9113 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9114
9115 if test $ac_cv_prog_gxx = yes; then
9116   GXX=yes
9117 else
9118   GXX=
9119 fi
9120
9121 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9122 ac_save_CXXFLAGS="$CXXFLAGS"
9123 CXXFLAGS=
9124 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9125 echo "configure:9126: checking whether ${CXX-g++} accepts -g" >&5
9126 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9127   echo $ac_n "(cached) $ac_c" 1>&6
9128 else
9129   echo 'void f(){}' > conftest.cc
9130 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9131   ac_cv_prog_cxx_g=yes
9132 else
9133   ac_cv_prog_cxx_g=no
9134 fi
9135 rm -f conftest*
9136
9137 fi
9138
9139 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9140 if test "$ac_test_CXXFLAGS" = set; then
9141   CXXFLAGS="$ac_save_CXXFLAGS"
9142 elif test $ac_cv_prog_cxx_g = yes; then
9143   if test "$GXX" = yes; then
9144     CXXFLAGS="-g -O2"
9145   else
9146     CXXFLAGS="-g"
9147   fi
9148 else
9149   if test "$GXX" = yes; then
9150     CXXFLAGS="-O2"
9151   else
9152     CXXFLAGS=
9153   fi
9154 fi
9155
9156
9157 ac_ext=c
9158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9159 ac_cpp='$CPP $CPPFLAGS'
9160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9162 cross_compiling=$ac_cv_prog_cc_cross
9163
9164
9165 # Extract the first word of "ranlib", so it can be a program name with args.
9166 set dummy ranlib; ac_word=$2
9167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9168 echo "configure:9169: checking for $ac_word" >&5
9169 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9170   echo $ac_n "(cached) $ac_c" 1>&6
9171 else
9172   if test -n "$RANLIB"; then
9173   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9174 else
9175   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9176   ac_dummy="$PATH"
9177   for ac_dir in $ac_dummy; do
9178     test -z "$ac_dir" && ac_dir=.
9179     if test -f $ac_dir/$ac_word; then
9180       ac_cv_prog_RANLIB="ranlib"
9181       break
9182     fi
9183   done
9184   IFS="$ac_save_ifs"
9185   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9186 fi
9187 fi
9188 RANLIB="$ac_cv_prog_RANLIB"
9189 if test -n "$RANLIB"; then
9190   echo "$ac_t""$RANLIB" 1>&6
9191 else
9192   echo "$ac_t""no" 1>&6
9193 fi
9194
9195
9196 # Extract the first word of "ar", so it can be a program name with args.
9197 set dummy ar; ac_word=$2
9198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9199 echo "configure:9200: checking for $ac_word" >&5
9200 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9201   echo $ac_n "(cached) $ac_c" 1>&6
9202 else
9203   if test -n "$AR"; then
9204   ac_cv_prog_AR="$AR" # Let the user override the test.
9205 else
9206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9207   ac_dummy="$PATH"
9208   for ac_dir in $ac_dummy; do
9209     test -z "$ac_dir" && ac_dir=.
9210     if test -f $ac_dir/$ac_word; then
9211       ac_cv_prog_AR="ar"
9212       break
9213     fi
9214   done
9215   IFS="$ac_save_ifs"
9216   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9217 fi
9218 fi
9219 AR="$ac_cv_prog_AR"
9220 if test -n "$AR"; then
9221   echo "$ac_t""$AR" 1>&6
9222 else
9223   echo "$ac_t""no" 1>&6
9224 fi
9225
9226
9227 # Find a good install program.  We prefer a C program (faster),
9228 # so one script is as good as another.  But avoid the broken or
9229 # incompatible versions:
9230 # SysV /etc/install, /usr/sbin/install
9231 # SunOS /usr/etc/install
9232 # IRIX /sbin/install
9233 # AIX /bin/install
9234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9237 # ./install, which can be erroneously created by make from ./install.sh.
9238 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9239 echo "configure:9240: checking for a BSD compatible install" >&5
9240 if test -z "$INSTALL"; then
9241 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9242   echo $ac_n "(cached) $ac_c" 1>&6
9243 else
9244     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9245   for ac_dir in $PATH; do
9246     # Account for people who put trailing slashes in PATH elements.
9247     case "$ac_dir/" in
9248     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9249     *)
9250       # OSF1 and SCO ODT 3.0 have their own names for install.
9251       # Don't use installbsd from OSF since it installs stuff as root
9252       # by default.
9253       for ac_prog in ginstall scoinst install; do
9254         if test -f $ac_dir/$ac_prog; then
9255           if test $ac_prog = install &&
9256             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9257             # AIX install.  It has an incompatible calling convention.
9258             :
9259           else
9260             ac_cv_path_install="$ac_dir/$ac_prog -c"
9261             break 2
9262           fi
9263         fi
9264       done
9265       ;;
9266     esac
9267   done
9268   IFS="$ac_save_IFS"
9269
9270 fi
9271   if test "${ac_cv_path_install+set}" = set; then
9272     INSTALL="$ac_cv_path_install"
9273   else
9274     # As a last resort, use the slow shell script.  We don't cache a
9275     # path for INSTALL within a source directory, because that will
9276     # break other packages using the cache if that directory is
9277     # removed, or if the path is relative.
9278     INSTALL="$ac_install_sh"
9279   fi
9280 fi
9281 echo "$ac_t""$INSTALL" 1>&6
9282
9283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9284 # It thinks the first close brace ends the variable substitution.
9285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9286
9287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9288
9289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9290
9291
9292 case ${INSTALL} in
9293   /* ) # Absolute
9294      ;;
9295   *)
9296      INSTALL=`pwd`/${INSTALL} ;;
9297 esac
9298
9299
9300 case "${host}" in
9301
9302                 powerpc-*-darwin* )
9303         INSTALL_PROGRAM="cp -fp"
9304         INSTALL_DATA="cp -fp"
9305         ;;
9306     *)
9307         ;;
9308 esac
9309
9310 # Extract the first word of "strip", so it can be a program name with args.
9311 set dummy strip; ac_word=$2
9312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9313 echo "configure:9314: checking for $ac_word" >&5
9314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9315   echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9317   if test -n "$STRIP"; then
9318   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9319 else
9320   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9321   ac_dummy="$PATH"
9322   for ac_dir in $ac_dummy; do
9323     test -z "$ac_dir" && ac_dir=.
9324     if test -f $ac_dir/$ac_word; then
9325       ac_cv_prog_STRIP="strip"
9326       break
9327     fi
9328   done
9329   IFS="$ac_save_ifs"
9330   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9331 fi
9332 fi
9333 STRIP="$ac_cv_prog_STRIP"
9334 if test -n "$STRIP"; then
9335   echo "$ac_t""$STRIP" 1>&6
9336 else
9337   echo "$ac_t""no" 1>&6
9338 fi
9339
9340
9341 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9342 echo "configure:9343: checking if make is GNU make" >&5
9343 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9344   echo $ac_n "(cached) $ac_c" 1>&6
9345 else
9346   
9347     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9348             egrep -s GNU > /dev/null); then
9349         wx_cv_prog_makeisgnu="yes"
9350     else
9351         wx_cv_prog_makeisgnu="no"
9352     fi
9353
9354 fi
9355
9356 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9357
9358 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9359     IF_GNU_MAKE=""
9360 else
9361     IF_GNU_MAKE="#"
9362 fi
9363
9364
9365
9366 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9367 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9368 echo "configure:9369: checking if make supports VPATH" >&5
9369 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9370   echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9372   
9373 cat - << EOF > confMake
9374 check : file
9375         cp \$? \$@
9376         cp \$? final_file
9377 EOF
9378
9379 if test ! -d sub ; then
9380   mkdir sub
9381 fi
9382 echo dummy > sub/file
9383 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9384 RESULT=$?
9385 rm -f sub/file check final_file confMake
9386 rmdir sub
9387 if test "$RESULT" = 0; then
9388   wx_cv_prog_makevpath="yes"
9389 else
9390   wx_cv_prog_makevpath="no"
9391 fi
9392
9393 fi
9394
9395 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9396
9397 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9398 { echo "configure: error: 
9399 You need a make-utility that is able to use the variable
9400 VPATH correctly.
9401 If your version of make does not support VPATH correctly,
9402 please install GNU-make (possibly as gmake), and start
9403 configure with the following command:
9404 export MAKE=gmake; ./configure  for sh-type shells
9405 setenv MAKE gmake; ./configure  for csh-type shells
9406 Also please do remember to use gmake in this case every time
9407 you are trying to compile.
9408 " 1>&2; exit 1; }
9409 fi fi 
9410 for ac_prog in 'bison -y' byacc
9411 do
9412 # Extract the first word of "$ac_prog", so it can be a program name with args.
9413 set dummy $ac_prog; ac_word=$2
9414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9415 echo "configure:9416: checking for $ac_word" >&5
9416 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9417   echo $ac_n "(cached) $ac_c" 1>&6
9418 else
9419   if test -n "$YACC"; then
9420   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9421 else
9422   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9423   ac_dummy="$PATH"
9424   for ac_dir in $ac_dummy; do
9425     test -z "$ac_dir" && ac_dir=.
9426     if test -f $ac_dir/$ac_word; then
9427       ac_cv_prog_YACC="$ac_prog"
9428       break
9429     fi
9430   done
9431   IFS="$ac_save_ifs"
9432 fi
9433 fi
9434 YACC="$ac_cv_prog_YACC"
9435 if test -n "$YACC"; then
9436   echo "$ac_t""$YACC" 1>&6
9437 else
9438   echo "$ac_t""no" 1>&6
9439 fi
9440
9441 test -n "$YACC" && break
9442 done
9443 test -n "$YACC" || YACC="yacc"
9444
9445
9446 # Extract the first word of "flex", so it can be a program name with args.
9447 set dummy flex; ac_word=$2
9448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9449 echo "configure:9450: checking for $ac_word" >&5
9450 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9451   echo $ac_n "(cached) $ac_c" 1>&6
9452 else
9453   if test -n "$LEX"; then
9454   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9455 else
9456   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9457   ac_dummy="$PATH"
9458   for ac_dir in $ac_dummy; do
9459     test -z "$ac_dir" && ac_dir=.
9460     if test -f $ac_dir/$ac_word; then
9461       ac_cv_prog_LEX="flex"
9462       break
9463     fi
9464   done
9465   IFS="$ac_save_ifs"
9466   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9467 fi
9468 fi
9469 LEX="$ac_cv_prog_LEX"
9470 if test -n "$LEX"; then
9471   echo "$ac_t""$LEX" 1>&6
9472 else
9473   echo "$ac_t""no" 1>&6
9474 fi
9475
9476 if test -z "$LEXLIB"
9477 then
9478   case "$LEX" in
9479   flex*) ac_lib=fl ;;
9480   *) ac_lib=l ;;
9481   esac
9482   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9483 echo "configure:9484: checking for yywrap in -l$ac_lib" >&5
9484 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9486   echo $ac_n "(cached) $ac_c" 1>&6
9487 else
9488   ac_save_LIBS="$LIBS"
9489 LIBS="-l$ac_lib  $LIBS"
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9493 /* Override any gcc2 internal prototype to avoid an error.  */
9494 /* We use char because int might match the return type of a gcc2
9495     builtin and then its argument prototype would still apply.  */
9496 char yywrap();
9497
9498 int main() {
9499 yywrap()
9500 ; return 0; }
9501 EOF
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9503   rm -rf conftest*
9504   eval "ac_cv_lib_$ac_lib_var=yes"
9505 else
9506   echo "configure: failed program was:" >&5
9507   cat conftest.$ac_ext >&5
9508   rm -rf conftest*
9509   eval "ac_cv_lib_$ac_lib_var=no"
9510 fi
9511 rm -f conftest*
9512 LIBS="$ac_save_LIBS"
9513
9514 fi
9515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9516   echo "$ac_t""yes" 1>&6
9517   LEXLIB="-l$ac_lib"
9518 else
9519   echo "$ac_t""no" 1>&6
9520 fi
9521
9522 fi
9523
9524
9525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9526 echo "configure:9527: checking whether ln -s works" >&5
9527 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9528   echo $ac_n "(cached) $ac_c" 1>&6
9529 else
9530   rm -f conftestdata
9531 if ln -s X conftestdata 2>/dev/null
9532 then
9533   rm -f conftestdata
9534   ac_cv_prog_LN_S="ln -s"
9535 else
9536   ac_cv_prog_LN_S=ln
9537 fi
9538 fi
9539 LN_S="$ac_cv_prog_LN_S"
9540 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9541   echo "$ac_t""yes" 1>&6
9542 else
9543   echo "$ac_t""no" 1>&6
9544 fi
9545
9546
9547
9548 if test "$wxUSE_MAC" != 1; then
9549     for ac_hdr in strings.h
9550 do
9551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9553 echo "configure:9554: checking for $ac_hdr" >&5
9554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9555   echo $ac_n "(cached) $ac_c" 1>&6
9556 else
9557   cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 #include <$ac_hdr>
9561 EOF
9562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9563 { (eval echo configure:9564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9565 if test -z "$ac_err"; then
9566   rm -rf conftest*
9567   eval "ac_cv_header_$ac_safe=yes"
9568 else
9569   echo "$ac_err" >&5
9570   echo "configure: failed program was:" >&5
9571   cat conftest.$ac_ext >&5
9572   rm -rf conftest*
9573   eval "ac_cv_header_$ac_safe=no"
9574 fi
9575 rm -f conftest*
9576 fi
9577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9578   echo "$ac_t""yes" 1>&6
9579     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9580   cat >> confdefs.h <<EOF
9581 #define $ac_tr_hdr 1
9582 EOF
9583  
9584 else
9585   echo "$ac_t""no" 1>&6
9586 fi
9587 done
9588
9589 fi
9590
9591 for ac_hdr in stdlib.h
9592 do
9593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9595 echo "configure:9596: checking for $ac_hdr" >&5
9596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9597   echo $ac_n "(cached) $ac_c" 1>&6
9598 else
9599   cat > conftest.$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9602 #include <$ac_hdr>
9603 EOF
9604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9605 { (eval echo configure:9606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9607 if test -z "$ac_err"; then
9608   rm -rf conftest*
9609   eval "ac_cv_header_$ac_safe=yes"
9610 else
9611   echo "$ac_err" >&5
9612   echo "configure: failed program was:" >&5
9613   cat conftest.$ac_ext >&5
9614   rm -rf conftest*
9615   eval "ac_cv_header_$ac_safe=no"
9616 fi
9617 rm -f conftest*
9618 fi
9619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9620   echo "$ac_t""yes" 1>&6
9621     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9622   cat >> confdefs.h <<EOF
9623 #define $ac_tr_hdr 1
9624 EOF
9625  
9626 else
9627   echo "$ac_t""no" 1>&6
9628 fi
9629 done
9630
9631 for ac_hdr in malloc.h
9632 do
9633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9635 echo "configure:9636: checking for $ac_hdr" >&5
9636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9637   echo $ac_n "(cached) $ac_c" 1>&6
9638 else
9639   cat > conftest.$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9642 #include <$ac_hdr>
9643 EOF
9644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9645 { (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9647 if test -z "$ac_err"; then
9648   rm -rf conftest*
9649   eval "ac_cv_header_$ac_safe=yes"
9650 else
9651   echo "$ac_err" >&5
9652   echo "configure: failed program was:" >&5
9653   cat conftest.$ac_ext >&5
9654   rm -rf conftest*
9655   eval "ac_cv_header_$ac_safe=no"
9656 fi
9657 rm -f conftest*
9658 fi
9659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9660   echo "$ac_t""yes" 1>&6
9661     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9662   cat >> confdefs.h <<EOF
9663 #define $ac_tr_hdr 1
9664 EOF
9665  
9666 else
9667   echo "$ac_t""no" 1>&6
9668 fi
9669 done
9670
9671 for ac_hdr in unistd.h
9672 do
9673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9675 echo "configure:9676: checking for $ac_hdr" >&5
9676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9677   echo $ac_n "(cached) $ac_c" 1>&6
9678 else
9679   cat > conftest.$ac_ext <<EOF
9680 #line 9681 "configure"
9681 #include "confdefs.h"
9682 #include <$ac_hdr>
9683 EOF
9684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9685 { (eval echo configure:9686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9687 if test -z "$ac_err"; then
9688   rm -rf conftest*
9689   eval "ac_cv_header_$ac_safe=yes"
9690 else
9691   echo "$ac_err" >&5
9692   echo "configure: failed program was:" >&5
9693   cat conftest.$ac_ext >&5
9694   rm -rf conftest*
9695   eval "ac_cv_header_$ac_safe=no"
9696 fi
9697 rm -f conftest*
9698 fi
9699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9700   echo "$ac_t""yes" 1>&6
9701     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9702   cat >> confdefs.h <<EOF
9703 #define $ac_tr_hdr 1
9704 EOF
9705  
9706 else
9707   echo "$ac_t""no" 1>&6
9708 fi
9709 done
9710
9711 for ac_hdr in wchar.h
9712 do
9713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9715 echo "configure:9716: checking for $ac_hdr" >&5
9716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9717   echo $ac_n "(cached) $ac_c" 1>&6
9718 else
9719   cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9722 #include <$ac_hdr>
9723 EOF
9724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9725 { (eval echo configure:9726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9727 if test -z "$ac_err"; then
9728   rm -rf conftest*
9729   eval "ac_cv_header_$ac_safe=yes"
9730 else
9731   echo "$ac_err" >&5
9732   echo "configure: failed program was:" >&5
9733   cat conftest.$ac_ext >&5
9734   rm -rf conftest*
9735   eval "ac_cv_header_$ac_safe=no"
9736 fi
9737 rm -f conftest*
9738 fi
9739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9740   echo "$ac_t""yes" 1>&6
9741     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9742   cat >> confdefs.h <<EOF
9743 #define $ac_tr_hdr 1
9744 EOF
9745  
9746 else
9747   echo "$ac_t""no" 1>&6
9748 fi
9749 done
9750
9751
9752 if test "$ac_cv_header_wchar_h" != "yes"; then
9753         for ac_hdr in wcstr.h
9754 do
9755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9757 echo "configure:9758: checking for $ac_hdr" >&5
9758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9759   echo $ac_n "(cached) $ac_c" 1>&6
9760 else
9761   cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9764 #include <$ac_hdr>
9765 EOF
9766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9767 { (eval echo configure:9768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9769 if test -z "$ac_err"; then
9770   rm -rf conftest*
9771   eval "ac_cv_header_$ac_safe=yes"
9772 else
9773   echo "$ac_err" >&5
9774   echo "configure: failed program was:" >&5
9775   cat conftest.$ac_ext >&5
9776   rm -rf conftest*
9777   eval "ac_cv_header_$ac_safe=no"
9778 fi
9779 rm -f conftest*
9780 fi
9781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9782   echo "$ac_t""yes" 1>&6
9783     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9784   cat >> confdefs.h <<EOF
9785 #define $ac_tr_hdr 1
9786 EOF
9787  
9788 else
9789   echo "$ac_t""no" 1>&6
9790 fi
9791 done
9792
9793 fi
9794
9795 for ac_hdr in fnmatch.h
9796 do
9797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9799 echo "configure:9800: checking for $ac_hdr" >&5
9800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9801   echo $ac_n "(cached) $ac_c" 1>&6
9802 else
9803   cat > conftest.$ac_ext <<EOF
9804 #line 9805 "configure"
9805 #include "confdefs.h"
9806 #include <$ac_hdr>
9807 EOF
9808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9809 { (eval echo configure:9810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9811 if test -z "$ac_err"; then
9812   rm -rf conftest*
9813   eval "ac_cv_header_$ac_safe=yes"
9814 else
9815   echo "$ac_err" >&5
9816   echo "configure: failed program was:" >&5
9817   cat conftest.$ac_ext >&5
9818   rm -rf conftest*
9819   eval "ac_cv_header_$ac_safe=no"
9820 fi
9821 rm -f conftest*
9822 fi
9823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9824   echo "$ac_t""yes" 1>&6
9825     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9826   cat >> confdefs.h <<EOF
9827 #define $ac_tr_hdr 1
9828 EOF
9829  
9830 else
9831   echo "$ac_t""no" 1>&6
9832 fi
9833 done
9834
9835
9836 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9837     for ac_func in fnmatch
9838 do
9839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9840 echo "configure:9841: checking for $ac_func" >&5
9841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9842   echo $ac_n "(cached) $ac_c" 1>&6
9843 else
9844   cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9847 /* System header to define __stub macros and hopefully few prototypes,
9848     which can conflict with char $ac_func(); below.  */
9849 #include <assert.h>
9850 /* Override any gcc2 internal prototype to avoid an error.  */
9851 /* We use char because int might match the return type of a gcc2
9852     builtin and then its argument prototype would still apply.  */
9853 char $ac_func();
9854
9855 int main() {
9856
9857 /* The GNU C library defines this for functions which it implements
9858     to always fail with ENOSYS.  Some functions are actually named
9859     something starting with __ and the normal name is an alias.  */
9860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9861 choke me
9862 #else
9863 $ac_func();
9864 #endif
9865
9866 ; return 0; }
9867 EOF
9868 if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9869   rm -rf conftest*
9870   eval "ac_cv_func_$ac_func=yes"
9871 else
9872   echo "configure: failed program was:" >&5
9873   cat conftest.$ac_ext >&5
9874   rm -rf conftest*
9875   eval "ac_cv_func_$ac_func=no"
9876 fi
9877 rm -f conftest*
9878 fi
9879
9880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9881   echo "$ac_t""yes" 1>&6
9882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9883   cat >> confdefs.h <<EOF
9884 #define $ac_tr_func 1
9885 EOF
9886  
9887 else
9888   echo "$ac_t""no" 1>&6
9889 fi
9890 done
9891
9892 fi
9893
9894 for ac_hdr in langinfo.h
9895 do
9896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9898 echo "configure:9899: checking for $ac_hdr" >&5
9899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9900   echo $ac_n "(cached) $ac_c" 1>&6
9901 else
9902   cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <$ac_hdr>
9906 EOF
9907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9908 { (eval echo configure:9909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9910 if test -z "$ac_err"; then
9911   rm -rf conftest*
9912   eval "ac_cv_header_$ac_safe=yes"
9913 else
9914   echo "$ac_err" >&5
9915   echo "configure: failed program was:" >&5
9916   cat conftest.$ac_ext >&5
9917   rm -rf conftest*
9918   eval "ac_cv_header_$ac_safe=no"
9919 fi
9920 rm -f conftest*
9921 fi
9922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9923   echo "$ac_t""yes" 1>&6
9924     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9925   cat >> confdefs.h <<EOF
9926 #define $ac_tr_hdr 1
9927 EOF
9928  
9929 else
9930   echo "$ac_t""no" 1>&6
9931 fi
9932 done
9933
9934
9935 if test "$wxUSE_GUI" = "yes"; then
9936     if test "$wxUSE_UNIX" = "yes"; then
9937                 for ac_hdr in X11/XKBlib.h
9938 do
9939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9941 echo "configure:9942: checking for $ac_hdr" >&5
9942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9943   echo $ac_n "(cached) $ac_c" 1>&6
9944 else
9945   cat > conftest.$ac_ext <<EOF
9946 #line 9947 "configure"
9947 #include "confdefs.h"
9948 #include <$ac_hdr>
9949 EOF
9950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9951 { (eval echo configure:9952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9953 if test -z "$ac_err"; then
9954   rm -rf conftest*
9955   eval "ac_cv_header_$ac_safe=yes"
9956 else
9957   echo "$ac_err" >&5
9958   echo "configure: failed program was:" >&5
9959   cat conftest.$ac_ext >&5
9960   rm -rf conftest*
9961   eval "ac_cv_header_$ac_safe=no"
9962 fi
9963 rm -f conftest*
9964 fi
9965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9966   echo "$ac_t""yes" 1>&6
9967     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9968   cat >> confdefs.h <<EOF
9969 #define $ac_tr_hdr 1
9970 EOF
9971  
9972 else
9973   echo "$ac_t""no" 1>&6
9974 fi
9975 done
9976
9977     fi
9978 fi
9979
9980
9981 echo $ac_n "checking for working const""... $ac_c" 1>&6
9982 echo "configure:9983: checking for working const" >&5
9983 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9984   echo $ac_n "(cached) $ac_c" 1>&6
9985 else
9986   cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989
9990 int main() {
9991
9992 /* Ultrix mips cc rejects this.  */
9993 typedef int charset[2]; const charset x;
9994 /* SunOS 4.1.1 cc rejects this.  */
9995 char const *const *ccp;
9996 char **p;
9997 /* NEC SVR4.0.2 mips cc rejects this.  */
9998 struct point {int x, y;};
9999 static struct point const zero = {0,0};
10000 /* AIX XL C 1.02.0.0 rejects this.
10001    It does not let you subtract one const X* pointer from another in an arm
10002    of an if-expression whose if-part is not a constant expression */
10003 const char *g = "string";
10004 ccp = &g + (g ? g-g : 0);
10005 /* HPUX 7.0 cc rejects these. */
10006 ++ccp;
10007 p = (char**) ccp;
10008 ccp = (char const *const *) p;
10009 { /* SCO 3.2v4 cc rejects this.  */
10010   char *t;
10011   char const *s = 0 ? (char *) 0 : (char const *) 0;
10012
10013   *t++ = 0;
10014 }
10015 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10016   int x[] = {25, 17};
10017   const int *foo = &x[0];
10018   ++foo;
10019 }
10020 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10021   typedef const int *iptr;
10022   iptr p = 0;
10023   ++p;
10024 }
10025 { /* AIX XL C 1.02.0.0 rejects this saying
10026      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10027   struct s { int j; const int *ap[3]; };
10028   struct s *b; b->j = 5;
10029 }
10030 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10031   const int foo = 10;
10032 }
10033
10034 ; return 0; }
10035 EOF
10036 if { (eval echo configure:10037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10037   rm -rf conftest*
10038   ac_cv_c_const=yes
10039 else
10040   echo "configure: failed program was:" >&5
10041   cat conftest.$ac_ext >&5
10042   rm -rf conftest*
10043   ac_cv_c_const=no
10044 fi
10045 rm -f conftest*
10046 fi
10047
10048 echo "$ac_t""$ac_cv_c_const" 1>&6
10049 if test $ac_cv_c_const = no; then
10050   cat >> confdefs.h <<\EOF
10051 #define const 
10052 EOF
10053
10054 fi
10055
10056 echo $ac_n "checking for inline""... $ac_c" 1>&6
10057 echo "configure:10058: checking for inline" >&5
10058 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10059   echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10061   ac_cv_c_inline=no
10062 for ac_kw in inline __inline__ __inline; do
10063   cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066
10067 int main() {
10068 } $ac_kw foo() {
10069 ; return 0; }
10070 EOF
10071 if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10072   rm -rf conftest*
10073   ac_cv_c_inline=$ac_kw; break
10074 else
10075   echo "configure: failed program was:" >&5
10076   cat conftest.$ac_ext >&5
10077 fi
10078 rm -f conftest*
10079 done
10080
10081 fi
10082
10083 echo "$ac_t""$ac_cv_c_inline" 1>&6
10084 case "$ac_cv_c_inline" in
10085   inline | yes) ;;
10086   no) cat >> confdefs.h <<\EOF
10087 #define inline 
10088 EOF
10089  ;;
10090   *)  cat >> confdefs.h <<EOF
10091 #define inline $ac_cv_c_inline
10092 EOF
10093  ;;
10094 esac
10095
10096
10097 echo $ac_n "checking size of char""... $ac_c" 1>&6
10098 echo "configure:10099: checking size of char" >&5
10099 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10100   echo $ac_n "(cached) $ac_c" 1>&6
10101 else
10102   if test "$cross_compiling" = yes; then
10103   ac_cv_sizeof_char=1
10104 else
10105   cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10108 #include <stdio.h>
10109 main()
10110 {
10111   FILE *f=fopen("conftestval", "w");
10112   if (!f) exit(1);
10113   fprintf(f, "%d\n", sizeof(char));
10114   exit(0);
10115 }
10116 EOF
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10118 then
10119   ac_cv_sizeof_char=`cat conftestval`
10120 else
10121   echo "configure: failed program was:" >&5
10122   cat conftest.$ac_ext >&5
10123   rm -fr conftest*
10124   ac_cv_sizeof_char=0
10125 fi
10126 rm -fr conftest*
10127 fi
10128
10129 fi
10130 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10131 cat >> confdefs.h <<EOF
10132 #define SIZEOF_CHAR $ac_cv_sizeof_char
10133 EOF
10134
10135
10136 echo $ac_n "checking size of short""... $ac_c" 1>&6
10137 echo "configure:10138: checking size of short" >&5
10138 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10139   echo $ac_n "(cached) $ac_c" 1>&6
10140 else
10141   if test "$cross_compiling" = yes; then
10142   ac_cv_sizeof_short=2
10143 else
10144   cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 #include <stdio.h>
10148 main()
10149 {
10150   FILE *f=fopen("conftestval", "w");
10151   if (!f) exit(1);
10152   fprintf(f, "%d\n", sizeof(short));
10153   exit(0);
10154 }
10155 EOF
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10157 then
10158   ac_cv_sizeof_short=`cat conftestval`
10159 else
10160   echo "configure: failed program was:" >&5
10161   cat conftest.$ac_ext >&5
10162   rm -fr conftest*
10163   ac_cv_sizeof_short=0
10164 fi
10165 rm -fr conftest*
10166 fi
10167
10168 fi
10169 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10170 cat >> confdefs.h <<EOF
10171 #define SIZEOF_SHORT $ac_cv_sizeof_short
10172 EOF
10173
10174
10175 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10176 echo "configure:10177: checking size of void *" >&5
10177 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10178   echo $ac_n "(cached) $ac_c" 1>&6
10179 else
10180   if test "$cross_compiling" = yes; then
10181   ac_cv_sizeof_void_p=4
10182 else
10183   cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 #include <stdio.h>
10187 main()
10188 {
10189   FILE *f=fopen("conftestval", "w");
10190   if (!f) exit(1);
10191   fprintf(f, "%d\n", sizeof(void *));
10192   exit(0);
10193 }
10194 EOF
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10196 then
10197   ac_cv_sizeof_void_p=`cat conftestval`
10198 else
10199   echo "configure: failed program was:" >&5
10200   cat conftest.$ac_ext >&5
10201   rm -fr conftest*
10202   ac_cv_sizeof_void_p=0
10203 fi
10204 rm -fr conftest*
10205 fi
10206
10207 fi
10208 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10209 cat >> confdefs.h <<EOF
10210 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10211 EOF
10212
10213
10214 echo $ac_n "checking size of int""... $ac_c" 1>&6
10215 echo "configure:10216: checking size of int" >&5
10216 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10217   echo $ac_n "(cached) $ac_c" 1>&6
10218 else
10219   if test "$cross_compiling" = yes; then
10220   ac_cv_sizeof_int=4
10221 else
10222   cat > conftest.$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include <stdio.h>
10226 main()
10227 {
10228   FILE *f=fopen("conftestval", "w");
10229   if (!f) exit(1);
10230   fprintf(f, "%d\n", sizeof(int));
10231   exit(0);
10232 }
10233 EOF
10234 if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10235 then
10236   ac_cv_sizeof_int=`cat conftestval`
10237 else
10238   echo "configure: failed program was:" >&5
10239   cat conftest.$ac_ext >&5
10240   rm -fr conftest*
10241   ac_cv_sizeof_int=0
10242 fi
10243 rm -fr conftest*
10244 fi
10245
10246 fi
10247 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10248 cat >> confdefs.h <<EOF
10249 #define SIZEOF_INT $ac_cv_sizeof_int
10250 EOF
10251
10252
10253 echo $ac_n "checking size of long""... $ac_c" 1>&6
10254 echo "configure:10255: checking size of long" >&5
10255 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10256   echo $ac_n "(cached) $ac_c" 1>&6
10257 else
10258   if test "$cross_compiling" = yes; then
10259   ac_cv_sizeof_long=4
10260 else
10261   cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <stdio.h>
10265 main()
10266 {
10267   FILE *f=fopen("conftestval", "w");
10268   if (!f) exit(1);
10269   fprintf(f, "%d\n", sizeof(long));
10270   exit(0);
10271 }
10272 EOF
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10274 then
10275   ac_cv_sizeof_long=`cat conftestval`
10276 else
10277   echo "configure: failed program was:" >&5
10278   cat conftest.$ac_ext >&5
10279   rm -fr conftest*
10280   ac_cv_sizeof_long=0
10281 fi
10282 rm -fr conftest*
10283 fi
10284
10285 fi
10286 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10287 cat >> confdefs.h <<EOF
10288 #define SIZEOF_LONG $ac_cv_sizeof_long
10289 EOF
10290
10291
10292
10293 case "${host}" in
10294     arm-*-linux* )
10295         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10296 echo "configure:10297: checking size of long long" >&5
10297 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10298   echo $ac_n "(cached) $ac_c" 1>&6
10299 else
10300   if test "$cross_compiling" = yes; then
10301   ac_cv_sizeof_long_long=8
10302 else
10303   cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10306 #include <stdio.h>
10307 main()
10308 {
10309   FILE *f=fopen("conftestval", "w");
10310   if (!f) exit(1);
10311   fprintf(f, "%d\n", sizeof(long long));
10312   exit(0);
10313 }
10314 EOF
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10316 then
10317   ac_cv_sizeof_long_long=`cat conftestval`
10318 else
10319   echo "configure: failed program was:" >&5
10320   cat conftest.$ac_ext >&5
10321   rm -fr conftest*
10322   ac_cv_sizeof_long_long=0
10323 fi
10324 rm -fr conftest*
10325 fi
10326
10327 fi
10328 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10329 cat >> confdefs.h <<EOF
10330 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10331 EOF
10332
10333
10334     ;;
10335     * )
10336         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10337 echo "configure:10338: checking size of long long" >&5
10338 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10339   echo $ac_n "(cached) $ac_c" 1>&6
10340 else
10341   if test "$cross_compiling" = yes; then
10342   ac_cv_sizeof_long_long=0
10343 else
10344   cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10347 #include <stdio.h>
10348 main()
10349 {
10350   FILE *f=fopen("conftestval", "w");
10351   if (!f) exit(1);
10352   fprintf(f, "%d\n", sizeof(long long));
10353   exit(0);
10354 }
10355 EOF
10356 if { (eval echo configure:10357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10357 then
10358   ac_cv_sizeof_long_long=`cat conftestval`
10359 else
10360   echo "configure: failed program was:" >&5
10361   cat conftest.$ac_ext >&5
10362   rm -fr conftest*
10363   ac_cv_sizeof_long_long=0
10364 fi
10365 rm -fr conftest*
10366 fi
10367
10368 fi
10369 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10370 cat >> confdefs.h <<EOF
10371 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10372 EOF
10373
10374
10375 esac
10376
10377 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10378 echo "configure:10379: checking size of wchar_t" >&5
10379 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10380   echo $ac_n "(cached) $ac_c" 1>&6
10381 else
10382   
10383     if test "$cross_compiling" = yes; then
10384   wx_cv_sizeof_wchar_t=4
10385     
10386 else
10387   cat > conftest.$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10390
10391             #ifdef HAVE_WCHAR_H
10392             #  ifdef __CYGWIN__
10393             #    include <stddef.h>
10394             #  endif
10395             #  include <wchar.h>
10396             #endif
10397             #ifdef HAVE_STDLIB_H
10398             #  include <stdlib.h>
10399             #endif
10400             #include <stdio.h>
10401             int main()
10402             {
10403                 FILE *f=fopen("conftestval", "w");
10404                 if (!f) exit(1);
10405                 fprintf(f, "%i", sizeof(wchar_t));
10406                 exit(0);
10407             }
10408         
10409 EOF
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10411 then
10412   wx_cv_sizeof_wchar_t=`cat conftestval`
10413 else
10414   echo "configure: failed program was:" >&5
10415   cat conftest.$ac_ext >&5
10416   rm -fr conftest*
10417   wx_cv_sizeof_wchar_t=0
10418 fi
10419 rm -fr conftest*
10420 fi
10421
10422
10423 fi
10424
10425 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10426
10427 cat >> confdefs.h <<EOF
10428 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10429 EOF
10430
10431
10432 # Check whether --enable-largefile or --disable-largefile was given.
10433 if test "${enable_largefile+set}" = set; then
10434   enableval="$enable_largefile"
10435   :
10436 fi
10437
10438 if test "$enable_largefile" != no; then
10439             wx_largefile=no
10440     
10441     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10442 echo "configure:10443: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10443 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10444   echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10446   
10447           cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #define _FILE_OFFSET_BITS 64
10451                           #include <sys/types.h>
10452 int main() {
10453 typedef struct {
10454     unsigned int field: sizeof(off_t) == 8;
10455 } wxlf;
10456
10457 ; return 0; }
10458 EOF
10459 if { (eval echo configure:10460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10460   rm -rf conftest*
10461   ac_cv_sys_file_offset_bits=64
10462 else
10463   echo "configure: failed program was:" >&5
10464   cat conftest.$ac_ext >&5
10465   rm -rf conftest*
10466   ac_cv_sys_file_offset_bits=no
10467 fi
10468 rm -f conftest*
10469         
10470     
10471 fi
10472
10473 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10474
10475     if test "$ac_cv_sys_file_offset_bits" != no; then
10476         wx_largefile=yes
10477         cat >> confdefs.h <<EOF
10478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10479 EOF
10480
10481     fi
10482
10483     if test "x$wx_largefile" != "xyes"; then
10484         
10485     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10486 echo "configure:10487: checking for _LARGE_FILES value needed for large files" >&5
10487 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10488   echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10490   
10491           cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 #define _LARGE_FILES 1
10495                           #include <sys/types.h>
10496 int main() {
10497 typedef struct {
10498     unsigned int field: sizeof(off_t) == 8;
10499 } wxlf;
10500
10501 ; return 0; }
10502 EOF
10503 if { (eval echo configure:10504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10504   rm -rf conftest*
10505   ac_cv_sys_large_files=1
10506 else
10507   echo "configure: failed program was:" >&5
10508   cat conftest.$ac_ext >&5
10509   rm -rf conftest*
10510   ac_cv_sys_large_files=no
10511 fi
10512 rm -f conftest*
10513         
10514     
10515 fi
10516
10517 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10518
10519     if test "$ac_cv_sys_large_files" != no; then
10520         wx_largefile=yes
10521         cat >> confdefs.h <<EOF
10522 #define _LARGE_FILES $ac_cv_sys_large_files
10523 EOF
10524
10525     fi
10526
10527     fi
10528
10529     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10530 echo "configure:10531: checking if large file support is available" >&5
10531     if test "x$wx_largefile" = "xyes"; then
10532         cat >> confdefs.h <<\EOF
10533 #define HAVE_LARGEFILE_SUPPORT 1
10534 EOF
10535
10536     fi
10537     echo "$ac_t""$wx_largefile" 1>&6
10538 fi
10539
10540
10541 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10542 echo "configure:10543: checking whether byte ordering is bigendian" >&5
10543 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10544   echo $ac_n "(cached) $ac_c" 1>&6
10545 else
10546   ac_cv_c_bigendian=unknown
10547 # See if sys/param.h defines the BYTE_ORDER macro.
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10551 #include <sys/types.h>
10552 #include <sys/param.h>
10553 int main() {
10554
10555 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10556  bogus endian macros
10557 #endif
10558 ; return 0; }
10559 EOF
10560 if { (eval echo configure:10561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10561   rm -rf conftest*
10562   # It does; now see whether it defined to BIG_ENDIAN or not.
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10566 #include <sys/types.h>
10567 #include <sys/param.h>
10568 int main() {
10569
10570 #if BYTE_ORDER != BIG_ENDIAN
10571  not big endian
10572 #endif
10573 ; return 0; }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576   rm -rf conftest*
10577   ac_cv_c_bigendian=yes
10578 else
10579   echo "configure: failed program was:" >&5
10580   cat conftest.$ac_ext >&5
10581   rm -rf conftest*
10582   ac_cv_c_bigendian=no
10583 fi
10584 rm -f conftest*
10585 else
10586   echo "configure: failed program was:" >&5
10587   cat conftest.$ac_ext >&5
10588 fi
10589 rm -f conftest*
10590 if test $ac_cv_c_bigendian = unknown; then
10591 if test "$cross_compiling" = yes; then
10592   ac_cv_c_bigendian=unknown
10593 else
10594   cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597 main () {
10598   /* Are we little or big endian?  From Harbison&Steele.  */
10599   union
10600   {
10601     long l;
10602     char c[sizeof (long)];
10603   } u;
10604   u.l = 1;
10605   exit (u.c[sizeof (long) - 1] == 1);
10606 }
10607 EOF
10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10609 then
10610   ac_cv_c_bigendian=no
10611 else
10612   echo "configure: failed program was:" >&5
10613   cat conftest.$ac_ext >&5
10614   rm -fr conftest*
10615   ac_cv_c_bigendian=yes
10616 fi
10617 rm -fr conftest*
10618 fi
10619
10620 fi
10621 fi
10622
10623 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10624 if test $ac_cv_c_bigendian = unknown; then
10625   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
10626 fi
10627 if test $ac_cv_c_bigendian = yes; then
10628   cat >> confdefs.h <<\EOF
10629 #define WORDS_BIGENDIAN 1
10630 EOF
10631
10632 fi
10633
10634
10635 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10636 echo "configure:10637: checking how to run the C++ preprocessor" >&5
10637 if test -z "$CXXCPP"; then
10638 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10639   echo $ac_n "(cached) $ac_c" 1>&6
10640 else
10641   ac_ext=C
10642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10643 ac_cpp='$CXXCPP $CPPFLAGS'
10644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10646 cross_compiling=$ac_cv_prog_cxx_cross
10647   CXXCPP="${CXX-g++} -E"
10648   cat > conftest.$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10651 #include <stdlib.h>
10652 EOF
10653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10654 { (eval echo configure:10655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10656 if test -z "$ac_err"; then
10657   :
10658 else
10659   echo "$ac_err" >&5
10660   echo "configure: failed program was:" >&5
10661   cat conftest.$ac_ext >&5
10662   rm -rf conftest*
10663   CXXCPP=/lib/cpp
10664 fi
10665 rm -f conftest*
10666   ac_cv_prog_CXXCPP="$CXXCPP"
10667 ac_ext=C
10668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10669 ac_cpp='$CXXCPP $CPPFLAGS'
10670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10672 cross_compiling=$ac_cv_prog_cxx_cross
10673 fi
10674 fi
10675 CXXCPP="$ac_cv_prog_CXXCPP"
10676 echo "$ac_t""$CXXCPP" 1>&6
10677
10678
10679   if test "$cross_compiling" = "yes"; then
10680     cat >> confdefs.h <<\EOF
10681 #define wxUSE_IOSTREAMH 1
10682 EOF
10683
10684   else
10685     
10686     ac_ext=C
10687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10688 ac_cpp='$CXXCPP $CPPFLAGS'
10689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10691 cross_compiling=$ac_cv_prog_cxx_cross
10692
10693
10694     for ac_hdr in iostream
10695 do
10696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10698 echo "configure:10699: checking for $ac_hdr" >&5
10699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10700   echo $ac_n "(cached) $ac_c" 1>&6
10701 else
10702   cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10705 #include <$ac_hdr>
10706 EOF
10707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10708 { (eval echo configure:10709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10710 if test -z "$ac_err"; then
10711   rm -rf conftest*
10712   eval "ac_cv_header_$ac_safe=yes"
10713 else
10714   echo "$ac_err" >&5
10715   echo "configure: failed program was:" >&5
10716   cat conftest.$ac_ext >&5
10717   rm -rf conftest*
10718   eval "ac_cv_header_$ac_safe=no"
10719 fi
10720 rm -f conftest*
10721 fi
10722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10723   echo "$ac_t""yes" 1>&6
10724     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10725   cat >> confdefs.h <<EOF
10726 #define $ac_tr_hdr 1
10727 EOF
10728  
10729 else
10730   echo "$ac_t""no" 1>&6
10731 fi
10732 done
10733
10734
10735     if test "$ac_cv_header_iostream" = "yes" ; then
10736       :
10737     else
10738       cat >> confdefs.h <<\EOF
10739 #define wxUSE_IOSTREAMH 1
10740 EOF
10741
10742     fi
10743
10744     ac_ext=c
10745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10749 cross_compiling=$ac_cv_prog_cc_cross
10750
10751   fi
10752
10753
10754
10755   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10756 echo "configure:10757: checking if C++ compiler supports bool" >&5
10757 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10758   echo $ac_n "(cached) $ac_c" 1>&6
10759 else
10760   
10761     
10762     ac_ext=C
10763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10764 ac_cpp='$CXXCPP $CPPFLAGS'
10765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10767 cross_compiling=$ac_cv_prog_cxx_cross
10768
10769
10770     cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773
10774       
10775 int main() {
10776
10777         bool b = true;
10778
10779         return 0;
10780       
10781 ; return 0; }
10782 EOF
10783 if { (eval echo configure:10784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10784   rm -rf conftest*
10785   
10786         wx_cv_cpp_bool=yes
10787       
10788 else
10789   echo "configure: failed program was:" >&5
10790   cat conftest.$ac_ext >&5
10791   rm -rf conftest*
10792   
10793         wx_cv_cpp_bool=no
10794       
10795     
10796 fi
10797 rm -f conftest*
10798
10799     ac_ext=c
10800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10801 ac_cpp='$CPP $CPPFLAGS'
10802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10804 cross_compiling=$ac_cv_prog_cc_cross
10805
10806   
10807 fi
10808
10809 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10810
10811   if test "$wx_cv_cpp_bool" = "yes"; then
10812     cat >> confdefs.h <<\EOF
10813 #define HAVE_BOOL 1
10814 EOF
10815
10816   fi
10817
10818
10819
10820   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10821 echo "configure:10822: checking if C++ compiler supports the explicit keyword" >&5
10822 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10823   echo $ac_n "(cached) $ac_c" 1>&6
10824 else
10825   
10826     
10827     ac_ext=C
10828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10829 ac_cpp='$CXXCPP $CPPFLAGS'
10830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10832 cross_compiling=$ac_cv_prog_cxx_cross
10833
10834
10835             cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838
10839         class Foo { public: explicit Foo(int) {} };
10840       
10841 int main() {
10842
10843         return 0;
10844       
10845 ; return 0; }
10846 EOF
10847 if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10848   rm -rf conftest*
10849   
10850         cat > conftest.$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853
10854                 class Foo { public: explicit Foo(int) {} };
10855                 static void TakeFoo(const Foo& foo) { }
10856             
10857 int main() {
10858
10859                 TakeFoo(17);
10860                 return 0;
10861             
10862 ; return 0; }
10863 EOF
10864 if { (eval echo configure:10865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10865   rm -rf conftest*
10866   wx_cv_explicit=no
10867 else
10868   echo "configure: failed program was:" >&5
10869   cat conftest.$ac_ext >&5
10870   rm -rf conftest*
10871   wx_cv_explicit=yes
10872         
10873 fi
10874 rm -f conftest*
10875       
10876 else
10877   echo "configure: failed program was:" >&5
10878   cat conftest.$ac_ext >&5
10879   rm -rf conftest*
10880   wx_cv_explicit=no
10881     
10882 fi
10883 rm -f conftest*
10884
10885     ac_ext=c
10886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10887 ac_cpp='$CPP $CPPFLAGS'
10888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10890 cross_compiling=$ac_cv_prog_cc_cross
10891
10892   
10893 fi
10894
10895 echo "$ac_t""$wx_cv_explicit" 1>&6
10896
10897   if test "$wx_cv_explicit" = "yes"; then
10898     cat >> confdefs.h <<\EOF
10899 #define HAVE_EXPLICIT 1
10900 EOF
10901
10902   fi
10903
10904
10905
10906 SEARCH_INCLUDE="\
10907     /usr/local/include        \
10908                               \
10909     /usr/Motif-1.2/include    \
10910     /usr/Motif-2.1/include    \
10911                               \
10912     /usr/include/Motif1.2     \
10913     /opt/xpm/include/X11      \
10914     /opt/GBxpm/include/       \
10915     /opt/GBxpm/X11/include/   \
10916                               \
10917     /usr/Motif1.2/include     \
10918     /usr/dt/include           \
10919     /usr/openwin/include      \
10920                               \
10921     /usr/include/Xm           \
10922                               \
10923     /usr/X11R6/include        \
10924     /usr/X11R6.4/include      \
10925     /usr/X11R5/include        \
10926     /usr/X11R4/include        \
10927                               \
10928     /usr/include/X11R6        \
10929     /usr/include/X11R5        \
10930     /usr/include/X11R4        \
10931                               \
10932     /usr/local/X11R6/include  \
10933     /usr/local/X11R5/include  \
10934     /usr/local/X11R4/include  \
10935                               \
10936     /usr/local/include/X11R6  \
10937     /usr/local/include/X11R5  \
10938     /usr/local/include/X11R4  \
10939                               \
10940     /usr/X11/include          \
10941     /usr/include/X11          \
10942     /usr/local/X11/include    \
10943     /usr/local/include/X11    \
10944                               \
10945     /usr/X386/include         \
10946     /usr/x386/include         \
10947     /usr/XFree86/include/X11  \
10948                               \
10949     X:/XFree86/include        \
10950     X:/XFree86/include/X11    \
10951                               \
10952     /usr/include/gtk          \
10953     /usr/local/include/gtk    \
10954     /usr/include/glib         \
10955     /usr/local/include/glib   \
10956                               \
10957     /usr/include/qt           \
10958     /usr/local/include/qt     \
10959                               \
10960     /usr/include/windows      \
10961     /usr/include/wine         \
10962     /usr/local/include/wine   \
10963                               \
10964     /usr/unsupported/include  \
10965     /usr/athena/include       \
10966     /usr/local/x11r5/include  \
10967     /usr/lpp/Xamples/include  \
10968                               \
10969     /usr/openwin/share/include \
10970                                \
10971     /usr/include"
10972
10973 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10974
10975
10976 cat > confcache <<\EOF
10977 # This file is a shell script that caches the results of configure
10978 # tests run on this system so they can be shared between configure
10979 # scripts and configure runs.  It is not useful on other systems.
10980 # If it contains results you don't want to keep, you may remove or edit it.
10981 #
10982 # By default, configure uses ./config.cache as the cache file,
10983 # creating it if it does not exist already.  You can give configure
10984 # the --cache-file=FILE option to use a different cache file; that is
10985 # what configure does when it calls configure scripts in
10986 # subdirectories, so they share the cache.
10987 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10988 # config.status only pays attention to the cache file if you give it the
10989 # --recheck option to rerun configure.
10990 #
10991 EOF
10992 # The following way of writing the cache mishandles newlines in values,
10993 # but we know of no workaround that is simple, portable, and efficient.
10994 # So, don't put newlines in cache variables' values.
10995 # Ultrix sh set writes to stderr and can't be redirected directly,
10996 # and sets the high bit in the cache file unless we assign to the vars.
10997 (set) 2>&1 |
10998   case `(ac_space=' '; set | grep ac_space) 2>&1` in
10999   *ac_space=\ *)
11000     # `set' does not quote correctly, so add quotes (double-quote substitution
11001     # turns \\\\ into \\, and sed turns \\ into \).
11002     sed -n \
11003       -e "s/'/'\\\\''/g" \
11004       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11005     ;;
11006   *)
11007     # `set' quotes correctly as required by POSIX, so do not add quotes.
11008     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11009     ;;
11010   esac >> confcache
11011 if cmp -s $cache_file confcache; then
11012   :
11013 else
11014   if test -w $cache_file; then
11015     echo "updating cache $cache_file"
11016     cat confcache > $cache_file
11017   else
11018     echo "not updating unwritable cache $cache_file"
11019   fi
11020 fi
11021 rm -f confcache
11022
11023
11024 if test "$USE_LINUX" = 1; then
11025     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11026 echo "configure:11027: checking for glibc 2.1 or later" >&5
11027 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11028   echo $ac_n "(cached) $ac_c" 1>&6
11029 else
11030   
11031         cat > conftest.$ac_ext <<EOF
11032 #line 11033 "configure"
11033 #include "confdefs.h"
11034 #include <features.h>
11035 int main() {
11036
11037                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11038                     #error not glibc2.1
11039                 #endif
11040             
11041 ; return 0; }
11042 EOF
11043 if { (eval echo configure:11044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11044   rm -rf conftest*
11045   
11046                 wx_cv_lib_glibc21=yes
11047             
11048 else
11049   echo "configure: failed program was:" >&5
11050   cat conftest.$ac_ext >&5
11051   rm -rf conftest*
11052   
11053                 wx_cv_lib_glibc21=no
11054             
11055         
11056 fi
11057 rm -f conftest*
11058     
11059 fi
11060
11061 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11062     if test "$wx_cv_lib_glibc21" = "yes"; then
11063         cat >> confdefs.h <<\EOF
11064 #define wxHAVE_GLIBC2 1
11065 EOF
11066
11067     fi
11068 fi
11069
11070 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11071     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11072         cat >> confdefs.h <<\EOF
11073 #define _GNU_SOURCE 1
11074 EOF
11075
11076     fi
11077 fi
11078
11079
11080
11081 REGEX_INCLUDE=
11082 if test "$wxUSE_REGEX" != "no"; then
11083     cat >> confdefs.h <<\EOF
11084 #define wxUSE_REGEX 1
11085 EOF
11086
11087
11088     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11089                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11090 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11091 echo "configure:11092: checking for regex.h" >&5
11092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11093   echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11095   cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11098 #include <regex.h>
11099 EOF
11100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11101 { (eval echo configure:11102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11103 if test -z "$ac_err"; then
11104   rm -rf conftest*
11105   eval "ac_cv_header_$ac_safe=yes"
11106 else
11107   echo "$ac_err" >&5
11108   echo "configure: failed program was:" >&5
11109   cat conftest.$ac_ext >&5
11110   rm -rf conftest*
11111   eval "ac_cv_header_$ac_safe=no"
11112 fi
11113 rm -f conftest*
11114 fi
11115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11116   echo "$ac_t""yes" 1>&6
11117   for ac_func in regcomp
11118 do
11119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11120 echo "configure:11121: checking for $ac_func" >&5
11121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11122   echo $ac_n "(cached) $ac_c" 1>&6
11123 else
11124   cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 /* System header to define __stub macros and hopefully few prototypes,
11128     which can conflict with char $ac_func(); below.  */
11129 #include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error.  */
11131 /* We use char because int might match the return type of a gcc2
11132     builtin and then its argument prototype would still apply.  */
11133 char $ac_func();
11134
11135 int main() {
11136
11137 /* The GNU C library defines this for functions which it implements
11138     to always fail with ENOSYS.  Some functions are actually named
11139     something starting with __ and the normal name is an alias.  */
11140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141 choke me
11142 #else
11143 $ac_func();
11144 #endif
11145
11146 ; return 0; }
11147 EOF
11148 if { (eval echo configure:11149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11149   rm -rf conftest*
11150   eval "ac_cv_func_$ac_func=yes"
11151 else
11152   echo "configure: failed program was:" >&5
11153   cat conftest.$ac_ext >&5
11154   rm -rf conftest*
11155   eval "ac_cv_func_$ac_func=no"
11156 fi
11157 rm -f conftest*
11158 fi
11159
11160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11161   echo "$ac_t""yes" 1>&6
11162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11163   cat >> confdefs.h <<EOF
11164 #define $ac_tr_func 1
11165 EOF
11166  
11167 else
11168   echo "$ac_t""no" 1>&6
11169 fi
11170 done
11171
11172 else
11173   echo "$ac_t""no" 1>&6
11174 fi
11175
11176
11177         if test "x$ac_cv_func_regcomp" != "xyes"; then
11178             if test "$wxUSE_REGEX" = "sys" ; then
11179                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11180             else
11181                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11182                 wxUSE_REGEX=builtin
11183             fi
11184         else
11185                         wxUSE_REGEX=sys
11186         fi
11187     fi
11188
11189     if test "$wxUSE_REGEX" = "builtin" ; then
11190         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11191     fi
11192 fi
11193
11194
11195 ZLIB_INCLUDE=
11196 ZLIB_LINK=
11197 if test "$wxUSE_ZLIB" != "no" ; then
11198     cat >> confdefs.h <<\EOF
11199 #define wxUSE_ZLIB 1
11200 EOF
11201
11202
11203     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11204         ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11205 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11206 echo "configure:11207: checking for zlib.h" >&5
11207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11208   echo $ac_n "(cached) $ac_c" 1>&6
11209 else
11210   cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11213 #include <zlib.h>
11214 EOF
11215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11216 { (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11218 if test -z "$ac_err"; then
11219   rm -rf conftest*
11220   eval "ac_cv_header_$ac_safe=yes"
11221 else
11222   echo "$ac_err" >&5
11223   echo "configure: failed program was:" >&5
11224   cat conftest.$ac_ext >&5
11225   rm -rf conftest*
11226   eval "ac_cv_header_$ac_safe=no"
11227 fi
11228 rm -f conftest*
11229 fi
11230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11231   echo "$ac_t""yes" 1>&6
11232   echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11233 echo "configure:11234: checking for deflate in -lz" >&5
11234 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11236   echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238   ac_save_LIBS="$LIBS"
11239 LIBS="-lz  $LIBS"
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 /* Override any gcc2 internal prototype to avoid an error.  */
11244 /* We use char because int might match the return type of a gcc2
11245     builtin and then its argument prototype would still apply.  */
11246 char deflate();
11247
11248 int main() {
11249 deflate()
11250 ; return 0; }
11251 EOF
11252 if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11253   rm -rf conftest*
11254   eval "ac_cv_lib_$ac_lib_var=yes"
11255 else
11256   echo "configure: failed program was:" >&5
11257   cat conftest.$ac_ext >&5
11258   rm -rf conftest*
11259   eval "ac_cv_lib_$ac_lib_var=no"
11260 fi
11261 rm -f conftest*
11262 LIBS="$ac_save_LIBS"
11263
11264 fi
11265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11266   echo "$ac_t""yes" 1>&6
11267   ZLIB_LINK=" -lz"
11268 else
11269   echo "$ac_t""no" 1>&6
11270 fi
11271
11272 else
11273   echo "$ac_t""no" 1>&6
11274 fi
11275
11276
11277         if test "x$ZLIB_LINK" = "x" ; then
11278             if test "$wxUSE_ZLIB" = "sys" ; then
11279                 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11280             else
11281                 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11282                 wxUSE_ZLIB=builtin
11283             fi
11284         else
11285                         wxUSE_ZLIB=sys
11286         fi
11287     fi
11288
11289     if test "$wxUSE_ZLIB" = "builtin" ; then
11290         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11291     fi
11292 fi
11293
11294
11295 PNG_INCLUDE=
11296 PNG_LINK=
11297 if test "$wxUSE_LIBPNG" != "no" ; then
11298     cat >> confdefs.h <<\EOF
11299 #define wxUSE_LIBPNG 1
11300 EOF
11301
11302
11303     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11304         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11305         wxUSE_LIBPNG=sys
11306     fi
11307
11308                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11309         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11310         wxUSE_LIBPNG=builtin
11311     fi
11312
11313     if test "$wxUSE_MGL" != 1 ; then
11314                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11315             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11316 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11317 echo "configure:11318: checking for png.h" >&5
11318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11319   echo $ac_n "(cached) $ac_c" 1>&6
11320 else
11321   cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 #include <png.h>
11325 EOF
11326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11327 { (eval echo configure:11328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11329 if test -z "$ac_err"; then
11330   rm -rf conftest*
11331   eval "ac_cv_header_$ac_safe=yes"
11332 else
11333   echo "$ac_err" >&5
11334   echo "configure: failed program was:" >&5
11335   cat conftest.$ac_ext >&5
11336   rm -rf conftest*
11337   eval "ac_cv_header_$ac_safe=no"
11338 fi
11339 rm -f conftest*
11340 fi
11341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11342   echo "$ac_t""yes" 1>&6
11343   echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11344 echo "configure:11345: checking for png_check_sig in -lpng" >&5
11345 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11347   echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11349   ac_save_LIBS="$LIBS"
11350 LIBS="-lpng -lz -lm $LIBS"
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* Override any gcc2 internal prototype to avoid an error.  */
11355 /* We use char because int might match the return type of a gcc2
11356     builtin and then its argument prototype would still apply.  */
11357 char png_check_sig();
11358
11359 int main() {
11360 png_check_sig()
11361 ; return 0; }
11362 EOF
11363 if { (eval echo configure:11364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11364   rm -rf conftest*
11365   eval "ac_cv_lib_$ac_lib_var=yes"
11366 else
11367   echo "configure: failed program was:" >&5
11368   cat conftest.$ac_ext >&5
11369   rm -rf conftest*
11370   eval "ac_cv_lib_$ac_lib_var=no"
11371 fi
11372 rm -f conftest*
11373 LIBS="$ac_save_LIBS"
11374
11375 fi
11376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11377   echo "$ac_t""yes" 1>&6
11378   PNG_LINK=" -lpng"
11379 else
11380   echo "$ac_t""no" 1>&6
11381 fi
11382
11383                            
11384 else
11385   echo "$ac_t""no" 1>&6
11386 fi
11387
11388
11389             if test "x$PNG_LINK" = "x" ; then
11390                 if test "$wxUSE_LIBPNG" = "sys" ; then
11391                     { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11392                 else
11393                     echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11394                     wxUSE_LIBPNG=builtin
11395                 fi
11396             else
11397                                 wxUSE_LIBPNG=yes
11398             fi
11399         fi
11400     fi
11401
11402     if test "$wxUSE_LIBPNG" = "builtin" ; then
11403         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11404     fi
11405
11406     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11407 fi
11408
11409
11410 JPEG_INCLUDE=
11411 JPEG_LINK=
11412 if test "$wxUSE_LIBJPEG" != "no" ; then
11413     cat >> confdefs.h <<\EOF
11414 #define wxUSE_LIBJPEG 1
11415 EOF
11416
11417
11418     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11419         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11420         wxUSE_LIBJPEG=sys
11421     fi
11422
11423     if test "$wxUSE_MGL" != 1 ; then
11424                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11425                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11426 echo "configure:11427: checking for jpeglib.h" >&5
11427             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11428   echo $ac_n "(cached) $ac_c" 1>&6
11429 else
11430   cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11433
11434                         #undef HAVE_STDLIB_H
11435                         #include <stdio.h>
11436                         #include <jpeglib.h>
11437                     
11438 int main() {
11439
11440                     
11441 ; return 0; }
11442 EOF
11443 if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444   rm -rf conftest*
11445   ac_cv_header_jpeglib_h=yes
11446 else
11447   echo "configure: failed program was:" >&5
11448   cat conftest.$ac_ext >&5
11449   rm -rf conftest*
11450   ac_cv_header_jpeglib_h=no
11451                 
11452 fi
11453 rm -f conftest*
11454             
11455 fi
11456
11457             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11458
11459             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11460                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11461 echo "configure:11462: checking for jpeg_read_header in -ljpeg" >&5
11462 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11464   echo $ac_n "(cached) $ac_c" 1>&6
11465 else
11466   ac_save_LIBS="$LIBS"
11467 LIBS="-ljpeg  $LIBS"
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 /* Override any gcc2 internal prototype to avoid an error.  */
11472 /* We use char because int might match the return type of a gcc2
11473     builtin and then its argument prototype would still apply.  */
11474 char jpeg_read_header();
11475
11476 int main() {
11477 jpeg_read_header()
11478 ; return 0; }
11479 EOF
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11481   rm -rf conftest*
11482   eval "ac_cv_lib_$ac_lib_var=yes"
11483 else
11484   echo "configure: failed program was:" >&5
11485   cat conftest.$ac_ext >&5
11486   rm -rf conftest*
11487   eval "ac_cv_lib_$ac_lib_var=no"
11488 fi
11489 rm -f conftest*
11490 LIBS="$ac_save_LIBS"
11491
11492 fi
11493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11494   echo "$ac_t""yes" 1>&6
11495   JPEG_LINK=" -ljpeg"
11496 else
11497   echo "$ac_t""no" 1>&6
11498 fi
11499
11500             fi
11501
11502             if test "x$JPEG_LINK" = "x" ; then
11503                 if test "$wxUSE_LIBJPEG" = "sys" ; then
11504                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11505                 else
11506                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11507                     wxUSE_LIBJPEG=builtin
11508                 fi
11509             else
11510                                 wxUSE_LIBJPEG=sys
11511             fi
11512         fi
11513     fi
11514
11515     if test "$wxUSE_LIBJPEG" = "builtin" ; then
11516         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11517     fi
11518 fi
11519
11520
11521 TIFF_INCLUDE=
11522 TIFF_LINK=
11523 if test "$wxUSE_LIBTIFF" != "no" ; then
11524     cat >> confdefs.h <<\EOF
11525 #define wxUSE_LIBTIFF 1
11526 EOF
11527
11528
11529     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11530         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11531 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11532 echo "configure:11533: checking for tiffio.h" >&5
11533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11534   echo $ac_n "(cached) $ac_c" 1>&6
11535 else
11536   cat > conftest.$ac_ext <<EOF
11537 #line 11538 "configure"
11538 #include "confdefs.h"
11539 #include <tiffio.h>
11540 EOF
11541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11542 { (eval echo configure:11543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11544 if test -z "$ac_err"; then
11545   rm -rf conftest*
11546   eval "ac_cv_header_$ac_safe=yes"
11547 else
11548   echo "$ac_err" >&5
11549   echo "configure: failed program was:" >&5
11550   cat conftest.$ac_ext >&5
11551   rm -rf conftest*
11552   eval "ac_cv_header_$ac_safe=no"
11553 fi
11554 rm -f conftest*
11555 fi
11556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11557   echo "$ac_t""yes" 1>&6
11558   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11559 echo "configure:11560: checking for TIFFError in -ltiff" >&5
11560 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11562   echo $ac_n "(cached) $ac_c" 1>&6
11563 else
11564   ac_save_LIBS="$LIBS"
11565 LIBS="-ltiff -lm $LIBS"
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11569 /* Override any gcc2 internal prototype to avoid an error.  */
11570 /* We use char because int might match the return type of a gcc2
11571     builtin and then its argument prototype would still apply.  */
11572 char TIFFError();
11573
11574 int main() {
11575 TIFFError()
11576 ; return 0; }
11577 EOF
11578 if { (eval echo configure:11579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11579   rm -rf conftest*
11580   eval "ac_cv_lib_$ac_lib_var=yes"
11581 else
11582   echo "configure: failed program was:" >&5
11583   cat conftest.$ac_ext >&5
11584   rm -rf conftest*
11585   eval "ac_cv_lib_$ac_lib_var=no"
11586 fi
11587 rm -f conftest*
11588 LIBS="$ac_save_LIBS"
11589
11590 fi
11591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11592   echo "$ac_t""yes" 1>&6
11593   TIFF_LINK=" -ltiff"
11594 else
11595   echo "$ac_t""no" 1>&6
11596 fi
11597
11598                        
11599 else
11600   echo "$ac_t""no" 1>&6
11601 fi
11602
11603
11604         if test "x$TIFF_LINK" = "x" ; then
11605             if test "$wxUSE_LIBTIFF" = "sys" ; then
11606                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11607             else
11608                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11609                 wxUSE_LIBTIFF=builtin
11610             fi
11611         else
11612                         wxUSE_LIBTIFF=sys
11613         fi
11614     fi
11615
11616     if test "$wxUSE_LIBTIFF" = "builtin" ; then
11617         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11618     fi
11619 fi
11620
11621
11622 AFMINSTALL=
11623
11624 TOOLKIT=
11625 TOOLKIT_INCLUDE=
11626 WIDGET_SET=
11627
11628 if test "$USE_WIN32" = 1 ; then
11629     for ac_hdr in w32api.h
11630 do
11631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11633 echo "configure:11634: checking for $ac_hdr" >&5
11634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11635   echo $ac_n "(cached) $ac_c" 1>&6
11636 else
11637   cat > conftest.$ac_ext <<EOF
11638 #line 11639 "configure"
11639 #include "confdefs.h"
11640 #include <$ac_hdr>
11641 EOF
11642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11643 { (eval echo configure:11644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11645 if test -z "$ac_err"; then
11646   rm -rf conftest*
11647   eval "ac_cv_header_$ac_safe=yes"
11648 else
11649   echo "$ac_err" >&5
11650   echo "configure: failed program was:" >&5
11651   cat conftest.$ac_ext >&5
11652   rm -rf conftest*
11653   eval "ac_cv_header_$ac_safe=no"
11654 fi
11655 rm -f conftest*
11656 fi
11657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11658   echo "$ac_t""yes" 1>&6
11659     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11660   cat >> confdefs.h <<EOF
11661 #define $ac_tr_hdr 1
11662 EOF
11663  
11664 else
11665   echo "$ac_t""no" 1>&6
11666 fi
11667 done
11668
11669     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11670 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11671 echo "configure:11672: checking for windows.h" >&5
11672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11673   echo $ac_n "(cached) $ac_c" 1>&6
11674 else
11675   cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11678 #include <windows.h>
11679 EOF
11680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11681 { (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683 if test -z "$ac_err"; then
11684   rm -rf conftest*
11685   eval "ac_cv_header_$ac_safe=yes"
11686 else
11687   echo "$ac_err" >&5
11688   echo "configure: failed program was:" >&5
11689   cat conftest.$ac_ext >&5
11690   rm -rf conftest*
11691   eval "ac_cv_header_$ac_safe=no"
11692 fi
11693 rm -f conftest*
11694 fi
11695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696   echo "$ac_t""yes" 1>&6
11697   :
11698 else
11699   echo "$ac_t""no" 1>&6
11700
11701         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11702     
11703 fi
11704
11705
11706         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11707 echo "configure:11708: checking if w32api has good enough MSIE support" >&5
11708 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11709   echo $ac_n "(cached) $ac_c" 1>&6
11710 else
11711   
11712       cat > conftest.$ac_ext <<EOF
11713 #line 11714 "configure"
11714 #include "confdefs.h"
11715 #include <w32api.h>
11716 int main() {
11717
11718                        #define wxCHECK_W32API_VERSION( major, minor ) \
11719                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11720                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
11721                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11722
11723                        #if !wxCHECK_W32API_VERSION(1,1)
11724                        #error You need w32api 1.1 or newer
11725                        #endif
11726                      
11727 ; return 0; }
11728 EOF
11729 if { (eval echo configure:11730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11730   rm -rf conftest*
11731   
11732                         wx_cv_w32api_win32_ie=yes
11733                      
11734 else
11735   echo "configure: failed program was:" >&5
11736   cat conftest.$ac_ext >&5
11737   rm -rf conftest*
11738   
11739                         wx_cv_w32api_win32_ie=no
11740                      
11741 fi
11742 rm -f conftest*
11743     
11744 fi
11745
11746 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11747     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11748         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11749     fi
11750
11751             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11752
11753     case "${host}" in
11754         *-*-cygwin* )
11755                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11756             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11757     esac
11758
11759         if test "$wxUSE_ODBC" = "yes" ; then
11760         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11761     fi
11762
11763     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11764     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11765 fi
11766
11767 if test "$wxUSE_GUI" = "yes"; then
11768     USE_GUI=1
11769
11770     GUI_TK_LIBRARY=
11771
11772     WXGTK12=
11773     WXGTK127=
11774     WXGTK20=
11775
11776     if test "$wxUSE_MSW" = 1 ; then
11777         TOOLKIT=MSW
11778         GUIDIST=MSW_DIST
11779
11780                                 case "${host}" in
11781             *-*-mingw32* )
11782                 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11783         esac
11784     fi
11785
11786     if test "$wxUSE_GTK" = 1; then
11787         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11788 echo "configure:11789: checking for GTK+ version" >&5
11789
11790         gtk_version_cached=1
11791         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11792   echo $ac_n "(cached) $ac_c" 1>&6
11793 else
11794   
11795                                                 gtk_version_cached=0
11796                 echo "$ac_t""" 1>&6
11797
11798                                                 GTK_MODULES=
11799                 if test "$wxUSE_THREADS" = "yes"; then
11800                     GTK_MODULES=gthread
11801                 fi
11802
11803                 wx_cv_lib_gtk=
11804                 if test "x$wxUSE_GTK2" = "xyes"; then
11805                     # Check whether --enable-gtktest or --disable-gtktest was given.
11806 if test "${enable_gtktest+set}" = set; then
11807   enableval="$enable_gtktest"
11808   :
11809 else
11810   enable_gtktest=yes
11811 fi
11812
11813
11814   pkg_config_args=gtk+-2.0
11815   for module in . $GTK_MODULES
11816   do
11817       case "$module" in
11818          gthread) 
11819              pkg_config_args="$pkg_config_args gthread-2.0"
11820          ;;
11821       esac
11822   done
11823
11824   no_gtk=""
11825
11826   # Extract the first word of "pkg-config", so it can be a program name with args.
11827 set dummy pkg-config; ac_word=$2
11828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11829 echo "configure:11830: checking for $ac_word" >&5
11830 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11831   echo $ac_n "(cached) $ac_c" 1>&6
11832 else
11833   case "$PKG_CONFIG" in
11834   /*)
11835   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11836   ;;
11837   ?:/*)                  
11838   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11839   ;;
11840   *)
11841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
11842   ac_dummy="$PATH"
11843   for ac_dir in $ac_dummy; do 
11844     test -z "$ac_dir" && ac_dir=.
11845     if test -f $ac_dir/$ac_word; then
11846       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11847       break
11848     fi
11849   done
11850   IFS="$ac_save_ifs"
11851   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11852   ;;
11853 esac
11854 fi
11855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11856 if test -n "$PKG_CONFIG"; then
11857   echo "$ac_t""$PKG_CONFIG" 1>&6
11858 else
11859   echo "$ac_t""no" 1>&6
11860 fi
11861
11862
11863   if test x$PKG_CONFIG != xno ; then
11864     if pkg-config --atleast-pkgconfig-version 0.7 ; then
11865       :
11866     else
11867       echo *** pkg-config too old; version 0.7 or better required.
11868       no_gtk=yes
11869       PKG_CONFIG=no
11870     fi
11871   else
11872     no_gtk=yes
11873   fi
11874
11875   min_gtk_version=2.0.0
11876   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11877 echo "configure:11878: checking for GTK+ - version >= $min_gtk_version" >&5
11878
11879   if test x$PKG_CONFIG != xno ; then
11880     ## don't try to run the test against uninstalled libtool libs
11881     if $PKG_CONFIG --uninstalled $pkg_config_args; then
11882           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11883           enable_gtktest=no
11884     fi
11885
11886     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11887           :
11888     else
11889           no_gtk=yes
11890     fi
11891   fi
11892
11893   if test x"$no_gtk" = x ; then
11894     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11895     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11896     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11897            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11898     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11899            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11900     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11901            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11902     if test "x$enable_gtktest" = "xyes" ; then
11903       ac_save_CFLAGS="$CFLAGS"
11904       ac_save_LIBS="$LIBS"
11905       CFLAGS="$CFLAGS $GTK_CFLAGS"
11906       LIBS="$GTK_LIBS $LIBS"
11907       rm -f conf.gtktest
11908       if test "$cross_compiling" = yes; then
11909   echo $ac_n "cross compiling; assumed OK... $ac_c"
11910 else
11911   cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11914
11915 #include <gtk/gtk.h>
11916 #include <stdio.h>
11917 #include <stdlib.h>
11918
11919 int 
11920 main ()
11921 {
11922   int major, minor, micro;
11923   char *tmp_version;
11924
11925   system ("touch conf.gtktest");
11926
11927   /* HP/UX 9 (%@#!) writes to sscanf strings */
11928   tmp_version = g_strdup("$min_gtk_version");
11929   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11930      printf("%s, bad version string\n", "$min_gtk_version");
11931      exit(1);
11932    }
11933
11934   if ((gtk_major_version != $gtk_config_major_version) ||
11935       (gtk_minor_version != $gtk_config_minor_version) ||
11936       (gtk_micro_version != $gtk_config_micro_version))
11937     {
11938       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
11939              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11940              gtk_major_version, gtk_minor_version, gtk_micro_version);
11941       printf ("*** was found! If pkg-config was correct, then it is best\n");
11942       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11943       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11944       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11945       printf("*** required on your system.\n");
11946       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11947       printf("*** to point to the correct configuration files\n");
11948     } 
11949   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11950            (gtk_minor_version != GTK_MINOR_VERSION) ||
11951            (gtk_micro_version != GTK_MICRO_VERSION))
11952     {
11953       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11954              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11955       printf("*** library (version %d.%d.%d)\n",
11956              gtk_major_version, gtk_minor_version, gtk_micro_version);
11957     }
11958   else
11959     {
11960       if ((gtk_major_version > major) ||
11961         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11962         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11963       {
11964         return 0;
11965        }
11966      else
11967       {
11968         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11969                gtk_major_version, gtk_minor_version, gtk_micro_version);
11970         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11971                major, minor, micro);
11972         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11973         printf("***\n");
11974         printf("*** If you have already installed a sufficiently new version, this error\n");
11975         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11976         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11977         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11978         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11979         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11980         printf("*** so that the correct libraries are found at run-time))\n");
11981       }
11982     }
11983   return 1;
11984 }
11985
11986 EOF
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11988 then
11989   :
11990 else
11991   echo "configure: failed program was:" >&5
11992   cat conftest.$ac_ext >&5
11993   rm -fr conftest*
11994   no_gtk=yes
11995 fi
11996 rm -fr conftest*
11997 fi
11998
11999        CFLAGS="$ac_save_CFLAGS"
12000        LIBS="$ac_save_LIBS"
12001      fi
12002   fi
12003   if test "x$no_gtk" = x ; then
12004      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12005      wx_cv_lib_gtk=2.0     
12006   else
12007      echo "$ac_t""no" 1>&6
12008      if test "$PKG_CONFIG" = "no" ; then
12009        echo "*** A new enough version of pkg-config was not found."
12010        echo "*** See http://pkgconfig.sourceforge.net"
12011      else
12012        if test -f conf.gtktest ; then
12013         :
12014        else
12015           echo "*** Could not run GTK+ test program, checking why..."
12016           ac_save_CFLAGS="$CFLAGS"
12017           ac_save_LIBS="$LIBS"
12018           CFLAGS="$CFLAGS $GTK_CFLAGS"
12019           LIBS="$LIBS $GTK_LIBS"
12020           cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12023
12024 #include <gtk/gtk.h>
12025 #include <stdio.h>
12026
12027 int main() {
12028  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12029 ; return 0; }
12030 EOF
12031 if { (eval echo configure:12032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12032   rm -rf conftest*
12033    echo "*** The test program compiled, but did not run. This usually means"
12034           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12035           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12036           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12037           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12038           echo "*** is required on your system"
12039           echo "***"
12040           echo "*** If you have an old version installed, it is best to remove it, although"
12041           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
12042 else
12043   echo "configure: failed program was:" >&5
12044   cat conftest.$ac_ext >&5
12045   rm -rf conftest*
12046    echo "*** The test program failed to compile or link. See the file config.log for the"
12047           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12048 fi
12049 rm -f conftest*
12050           CFLAGS="$ac_save_CFLAGS"
12051           LIBS="$ac_save_LIBS"
12052        fi
12053      fi
12054      GTK_CFLAGS=""
12055      GTK_LIBS=""
12056      :
12057   fi
12058   
12059   
12060   rm -f conf.gtktest
12061
12062                 fi
12063
12064                 if test -z "$wx_cv_lib_gtk"; then
12065                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12066 if test "${with_gtk_prefix+set}" = set; then
12067   withval="$with_gtk_prefix"
12068   gtk_config_prefix="$withval"
12069 else
12070   gtk_config_prefix=""
12071 fi
12072
12073 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12074 if test "${with_gtk_exec_prefix+set}" = set; then
12075   withval="$with_gtk_exec_prefix"
12076   gtk_config_exec_prefix="$withval"
12077 else
12078   gtk_config_exec_prefix=""
12079 fi
12080
12081 # Check whether --enable-gtktest or --disable-gtktest was given.
12082 if test "${enable_gtktest+set}" = set; then
12083   enableval="$enable_gtktest"
12084   :
12085 else
12086   enable_gtktest=yes
12087 fi
12088
12089
12090   for module in . $GTK_MODULES
12091   do
12092       case "$module" in
12093          gthread) 
12094              gtk_config_args="$gtk_config_args gthread"
12095          ;;
12096       esac
12097   done
12098
12099   if test x$gtk_config_exec_prefix != x ; then
12100      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12101      if test x${GTK_CONFIG+set} != xset ; then
12102         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12103      fi
12104   fi
12105   if test x$gtk_config_prefix != x ; then
12106      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12107      if test x${GTK_CONFIG+set} != xset ; then
12108         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12109      fi
12110   fi
12111
12112   # Extract the first word of "gtk-config", so it can be a program name with args.
12113 set dummy gtk-config; ac_word=$2
12114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12115 echo "configure:12116: checking for $ac_word" >&5
12116 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12117   echo $ac_n "(cached) $ac_c" 1>&6
12118 else
12119   case "$GTK_CONFIG" in
12120   /*)
12121   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12122   ;;
12123   ?:/*)                  
12124   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12125   ;;
12126   *)
12127   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12128   ac_dummy="$PATH"
12129   for ac_dir in $ac_dummy; do 
12130     test -z "$ac_dir" && ac_dir=.
12131     if test -f $ac_dir/$ac_word; then
12132       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12133       break
12134     fi
12135   done
12136   IFS="$ac_save_ifs"
12137   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12138   ;;
12139 esac
12140 fi
12141 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12142 if test -n "$GTK_CONFIG"; then
12143   echo "$ac_t""$GTK_CONFIG" 1>&6
12144 else
12145   echo "$ac_t""no" 1>&6
12146 fi
12147
12148   min_gtk_version=1.2.7
12149   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12150 echo "configure:12151: checking for GTK - version >= $min_gtk_version" >&5
12151   no_gtk=""
12152   if test "$GTK_CONFIG" = "no" ; then
12153     no_gtk=yes
12154   else
12155     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12156     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12157     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12158            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12159     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12160            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12161     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12162            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12163     if test "x$enable_gtktest" = "xyes" ; then
12164       ac_save_CFLAGS="$CFLAGS"
12165       ac_save_LIBS="$LIBS"
12166       CFLAGS="$CFLAGS $GTK_CFLAGS"
12167       LIBS="$GTK_LIBS $LIBS"
12168       rm -f conf.gtktest
12169       if test "$cross_compiling" = yes; then
12170   echo $ac_n "cross compiling; assumed OK... $ac_c"
12171 else
12172   cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12175
12176 #include <gtk/gtk.h>
12177 #include <stdio.h>
12178 #include <stdlib.h>
12179
12180 int 
12181 main ()
12182 {
12183   int major, minor, micro;
12184   char *tmp_version;
12185
12186   system ("touch conf.gtktest");
12187
12188   /* HP/UX 9 (%@#!) writes to sscanf strings */
12189   tmp_version = g_strdup("$min_gtk_version");
12190   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12191      printf("%s, bad version string\n", "$min_gtk_version");
12192      exit(1);
12193    }
12194
12195   if ((gtk_major_version != $gtk_config_major_version) ||
12196       (gtk_minor_version != $gtk_config_minor_version) ||
12197       (gtk_micro_version != $gtk_config_micro_version))
12198     {
12199       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12200              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12201              gtk_major_version, gtk_minor_version, gtk_micro_version);
12202       printf ("*** was found! If gtk-config was correct, then it is best\n");
12203       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12204       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12205       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12206       printf("*** required on your system.\n");
12207       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12208       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12209       printf("*** before re-running configure\n");
12210     } 
12211 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12212   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12213            (gtk_minor_version != GTK_MINOR_VERSION) ||
12214            (gtk_micro_version != GTK_MICRO_VERSION))
12215     {
12216       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12217              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12218       printf("*** library (version %d.%d.%d)\n",
12219              gtk_major_version, gtk_minor_version, gtk_micro_version);
12220     }
12221 #endif /* defined (GTK_MAJOR_VERSION) ... */
12222   else
12223     {
12224       if ((gtk_major_version > major) ||
12225         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12226         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12227       {
12228         return 0;
12229        }
12230      else
12231       {
12232         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12233                gtk_major_version, gtk_minor_version, gtk_micro_version);
12234         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12235                major, minor, micro);
12236         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12237         printf("***\n");
12238         printf("*** If you have already installed a sufficiently new version, this error\n");
12239         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12240         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12241         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12242         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12243         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12244         printf("*** so that the correct libraries are found at run-time))\n");
12245       }
12246     }
12247   return 1;
12248 }
12249
12250 EOF
12251 if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12252 then
12253   :
12254 else
12255   echo "configure: failed program was:" >&5
12256   cat conftest.$ac_ext >&5
12257   rm -fr conftest*
12258   no_gtk=yes
12259 fi
12260 rm -fr conftest*
12261 fi
12262
12263        CFLAGS="$ac_save_CFLAGS"
12264        LIBS="$ac_save_LIBS"
12265      fi
12266   fi
12267   if test "x$no_gtk" = x ; then
12268      echo "$ac_t""yes" 1>&6
12269      wx_cv_lib_gtk=1.2.7     
12270   else
12271      echo "$ac_t""no" 1>&6
12272      if test "$GTK_CONFIG" = "no" ; then
12273        echo "*** The gtk-config script installed by GTK could not be found"
12274        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12275        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12276        echo "*** full path to gtk-config."
12277      else
12278        if test -f conf.gtktest ; then
12279         :
12280        else
12281           echo "*** Could not run GTK test program, checking why..."
12282           CFLAGS="$CFLAGS $GTK_CFLAGS"
12283           LIBS="$LIBS $GTK_LIBS"
12284           cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287
12288 #include <gtk/gtk.h>
12289 #include <stdio.h>
12290
12291 int main() {
12292  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12293 ; return 0; }
12294 EOF
12295 if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12296   rm -rf conftest*
12297    echo "*** The test program compiled, but did not run. This usually means"
12298           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12299           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12300           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12301           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12302           echo "*** is required on your system"
12303           echo "***"
12304           echo "*** If you have an old version installed, it is best to remove it, although"
12305           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12306           echo "***"
12307           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12308           echo "*** came with the system with the command"
12309           echo "***"
12310           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12311 else
12312   echo "configure: failed program was:" >&5
12313   cat conftest.$ac_ext >&5
12314   rm -rf conftest*
12315    echo "*** The test program failed to compile or link. See the file config.log for the"
12316           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12317           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12318           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12319 fi
12320 rm -f conftest*
12321           CFLAGS="$ac_save_CFLAGS"
12322           LIBS="$ac_save_LIBS"
12323        fi
12324      fi
12325      GTK_CFLAGS=""
12326      GTK_LIBS=""
12327      :
12328   fi
12329   
12330   
12331   rm -f conf.gtktest
12332
12333                 fi
12334
12335                 if test -z "$wx_cv_lib_gtk"; then
12336                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12337 if test "${with_gtk_prefix+set}" = set; then
12338   withval="$with_gtk_prefix"
12339   gtk_config_prefix="$withval"
12340 else
12341   gtk_config_prefix=""
12342 fi
12343
12344 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12345 if test "${with_gtk_exec_prefix+set}" = set; then
12346   withval="$with_gtk_exec_prefix"
12347   gtk_config_exec_prefix="$withval"
12348 else
12349   gtk_config_exec_prefix=""
12350 fi
12351
12352 # Check whether --enable-gtktest or --disable-gtktest was given.
12353 if test "${enable_gtktest+set}" = set; then
12354   enableval="$enable_gtktest"
12355   :
12356 else
12357   enable_gtktest=yes
12358 fi
12359
12360
12361   for module in . $GTK_MODULES
12362   do
12363       case "$module" in
12364          gthread) 
12365              gtk_config_args="$gtk_config_args gthread"
12366          ;;
12367       esac
12368   done
12369
12370   if test x$gtk_config_exec_prefix != x ; then
12371      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12372      if test x${GTK_CONFIG+set} != xset ; then
12373         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12374      fi
12375   fi
12376   if test x$gtk_config_prefix != x ; then
12377      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12378      if test x${GTK_CONFIG+set} != xset ; then
12379         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12380      fi
12381   fi
12382
12383   # Extract the first word of "gtk-config", so it can be a program name with args.
12384 set dummy gtk-config; ac_word=$2
12385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12386 echo "configure:12387: checking for $ac_word" >&5
12387 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12388   echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12390   case "$GTK_CONFIG" in
12391   /*)
12392   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12393   ;;
12394   ?:/*)                  
12395   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12396   ;;
12397   *)
12398   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12399   ac_dummy="$PATH"
12400   for ac_dir in $ac_dummy; do 
12401     test -z "$ac_dir" && ac_dir=.
12402     if test -f $ac_dir/$ac_word; then
12403       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12404       break
12405     fi
12406   done
12407   IFS="$ac_save_ifs"
12408   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12409   ;;
12410 esac
12411 fi
12412 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12413 if test -n "$GTK_CONFIG"; then
12414   echo "$ac_t""$GTK_CONFIG" 1>&6
12415 else
12416   echo "$ac_t""no" 1>&6
12417 fi
12418
12419   min_gtk_version=1.2.3
12420   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12421 echo "configure:12422: checking for GTK - version >= $min_gtk_version" >&5
12422   no_gtk=""
12423   if test "$GTK_CONFIG" = "no" ; then
12424     no_gtk=yes
12425   else
12426     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12427     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12428     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12429            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12430     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12431            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12432     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12433            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12434     if test "x$enable_gtktest" = "xyes" ; then
12435       ac_save_CFLAGS="$CFLAGS"
12436       ac_save_LIBS="$LIBS"
12437       CFLAGS="$CFLAGS $GTK_CFLAGS"
12438       LIBS="$GTK_LIBS $LIBS"
12439       rm -f conf.gtktest
12440       if test "$cross_compiling" = yes; then
12441   echo $ac_n "cross compiling; assumed OK... $ac_c"
12442 else
12443   cat > conftest.$ac_ext <<EOF
12444 #line 12445 "configure"
12445 #include "confdefs.h"
12446
12447 #include <gtk/gtk.h>
12448 #include <stdio.h>
12449 #include <stdlib.h>
12450
12451 int 
12452 main ()
12453 {
12454   int major, minor, micro;
12455   char *tmp_version;
12456
12457   system ("touch conf.gtktest");
12458
12459   /* HP/UX 9 (%@#!) writes to sscanf strings */
12460   tmp_version = g_strdup("$min_gtk_version");
12461   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12462      printf("%s, bad version string\n", "$min_gtk_version");
12463      exit(1);
12464    }
12465
12466   if ((gtk_major_version != $gtk_config_major_version) ||
12467       (gtk_minor_version != $gtk_config_minor_version) ||
12468       (gtk_micro_version != $gtk_config_micro_version))
12469     {
12470       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12471              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12472              gtk_major_version, gtk_minor_version, gtk_micro_version);
12473       printf ("*** was found! If gtk-config was correct, then it is best\n");
12474       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12475       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12476       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12477       printf("*** required on your system.\n");
12478       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12479       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12480       printf("*** before re-running configure\n");
12481     } 
12482 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12483   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12484            (gtk_minor_version != GTK_MINOR_VERSION) ||
12485            (gtk_micro_version != GTK_MICRO_VERSION))
12486     {
12487       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12488              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12489       printf("*** library (version %d.%d.%d)\n",
12490              gtk_major_version, gtk_minor_version, gtk_micro_version);
12491     }
12492 #endif /* defined (GTK_MAJOR_VERSION) ... */
12493   else
12494     {
12495       if ((gtk_major_version > major) ||
12496         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12497         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12498       {
12499         return 0;
12500        }
12501      else
12502       {
12503         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12504                gtk_major_version, gtk_minor_version, gtk_micro_version);
12505         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12506                major, minor, micro);
12507         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12508         printf("***\n");
12509         printf("*** If you have already installed a sufficiently new version, this error\n");
12510         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12511         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12512         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12513         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12514         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12515         printf("*** so that the correct libraries are found at run-time))\n");
12516       }
12517     }
12518   return 1;
12519 }
12520
12521 EOF
12522 if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12523 then
12524   :
12525 else
12526   echo "configure: failed program was:" >&5
12527   cat conftest.$ac_ext >&5
12528   rm -fr conftest*
12529   no_gtk=yes
12530 fi
12531 rm -fr conftest*
12532 fi
12533
12534        CFLAGS="$ac_save_CFLAGS"
12535        LIBS="$ac_save_LIBS"
12536      fi
12537   fi
12538   if test "x$no_gtk" = x ; then
12539      echo "$ac_t""yes" 1>&6
12540      wx_cv_lib_gtk=1.2.3     
12541   else
12542      echo "$ac_t""no" 1>&6
12543      if test "$GTK_CONFIG" = "no" ; then
12544        echo "*** The gtk-config script installed by GTK could not be found"
12545        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12546        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12547        echo "*** full path to gtk-config."
12548      else
12549        if test -f conf.gtktest ; then
12550         :
12551        else
12552           echo "*** Could not run GTK test program, checking why..."
12553           CFLAGS="$CFLAGS $GTK_CFLAGS"
12554           LIBS="$LIBS $GTK_LIBS"
12555           cat > conftest.$ac_ext <<EOF
12556 #line 12557 "configure"
12557 #include "confdefs.h"
12558
12559 #include <gtk/gtk.h>
12560 #include <stdio.h>
12561
12562 int main() {
12563  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12564 ; return 0; }
12565 EOF
12566 if { (eval echo configure:12567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12567   rm -rf conftest*
12568    echo "*** The test program compiled, but did not run. This usually means"
12569           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12570           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12571           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12572           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12573           echo "*** is required on your system"
12574           echo "***"
12575           echo "*** If you have an old version installed, it is best to remove it, although"
12576           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12577           echo "***"
12578           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12579           echo "*** came with the system with the command"
12580           echo "***"
12581           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12582 else
12583   echo "configure: failed program was:" >&5
12584   cat conftest.$ac_ext >&5
12585   rm -rf conftest*
12586    echo "*** The test program failed to compile or link. See the file config.log for the"
12587           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12588           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12589           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12590 fi
12591 rm -f conftest*
12592           CFLAGS="$ac_save_CFLAGS"
12593           LIBS="$ac_save_LIBS"
12594        fi
12595      fi
12596      GTK_CFLAGS=""
12597      GTK_LIBS=""
12598      :
12599   fi
12600   
12601   
12602   rm -f conf.gtktest
12603
12604                 fi
12605
12606                 if test -z "$wx_cv_lib_gtk"; then
12607                                         wx_cv_lib_gtk=none
12608                 else
12609                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
12610                     wx_cv_libs_gtk=$GTK_LIBS
12611                 fi
12612             
12613         
12614 fi
12615
12616
12617                         if test "$gtk_version_cached" = 1; then
12618             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12619         fi
12620
12621         case "$wx_cv_lib_gtk" in
12622             2.0)    WXGTK20=1
12623                     ;;
12624             1.2.7)  WXGTK127=1
12625                     WXGTK12=1
12626                     ;;
12627             1.2.3)  WXGTK12=1
12628                     ;;
12629             *)      { echo "configure: error: 
12630 Please check that gtk-config is in path, the directory
12631 where GTK+ libraries are installed (returned by
12632 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12633 equivalent variable and GTK+ is version 1.2.3 or above.
12634                             " 1>&2; exit 1; }
12635                     ;;
12636         esac
12637
12638         if test "$WXGTK20" = 1; then
12639             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12640                 
12641   succeeded=no
12642
12643   if test -z "$PKG_CONFIG"; then
12644     # Extract the first word of "pkg-config", so it can be a program name with args.
12645 set dummy pkg-config; ac_word=$2
12646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12647 echo "configure:12648: checking for $ac_word" >&5
12648 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12649   echo $ac_n "(cached) $ac_c" 1>&6
12650 else
12651   case "$PKG_CONFIG" in
12652   /*)
12653   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12654   ;;
12655   ?:/*)                  
12656   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12657   ;;
12658   *)
12659   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12660   ac_dummy="$PATH"
12661   for ac_dir in $ac_dummy; do 
12662     test -z "$ac_dir" && ac_dir=.
12663     if test -f $ac_dir/$ac_word; then
12664       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12665       break
12666     fi
12667   done
12668   IFS="$ac_save_ifs"
12669   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12670   ;;
12671 esac
12672 fi
12673 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12674 if test -n "$PKG_CONFIG"; then
12675   echo "$ac_t""$PKG_CONFIG" 1>&6
12676 else
12677   echo "$ac_t""no" 1>&6
12678 fi
12679
12680   fi
12681
12682   if test "$PKG_CONFIG" = "no" ; then
12683      echo "*** The pkg-config script could not be found. Make sure it is"
12684      echo "*** in your path, or set the PKG_CONFIG environment variable"
12685      echo "*** to the full path to pkg-config."
12686      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12687   else
12688      PKG_CONFIG_MIN_VERSION=0.9.0
12689      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12690         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
12691 echo "configure:12692: checking for pangoft2" >&5
12692
12693         if $PKG_CONFIG --exists "pangoft2" ; then
12694             echo "$ac_t""yes" 1>&6
12695             succeeded=yes
12696
12697             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
12698 echo "configure:12699: checking PANGOFT2_CFLAGS" >&5
12699             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12700             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
12701
12702             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
12703 echo "configure:12704: checking PANGOFT2_LIBS" >&5
12704             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12705             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
12706         else
12707             PANGOFT2_CFLAGS=""
12708             PANGOFT2_LIBS=""
12709             ## If we have a custom action on failure, don't print errors, but 
12710             ## do set a variable so people can do so.
12711             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12712             
12713         fi
12714
12715         
12716         
12717      else
12718         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12719         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12720      fi
12721   fi
12722
12723   if test $succeeded = yes; then
12724      
12725                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12726                         LIBS="$LIBS $PANGOFT2_LIBS"
12727                     
12728   else
12729      
12730                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12731                         wxUSE_PRINTING_ARCHITECTURE="no"
12732                     
12733                 
12734   fi
12735
12736             fi
12737         fi
12738
12739         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12740         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12741
12742         AFMINSTALL=afminstall
12743         TOOLKIT=GTK
12744         GUIDIST=GTK_DIST
12745
12746                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12747 echo "configure:12748: checking for gdk_im_open in -lgdk" >&5
12748 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12750   echo $ac_n "(cached) $ac_c" 1>&6
12751 else
12752   ac_save_LIBS="$LIBS"
12753 LIBS="-lgdk  $LIBS"
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 /* Override any gcc2 internal prototype to avoid an error.  */
12758 /* We use char because int might match the return type of a gcc2
12759     builtin and then its argument prototype would still apply.  */
12760 char gdk_im_open();
12761
12762 int main() {
12763 gdk_im_open()
12764 ; return 0; }
12765 EOF
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12767   rm -rf conftest*
12768   eval "ac_cv_lib_$ac_lib_var=yes"
12769 else
12770   echo "configure: failed program was:" >&5
12771   cat conftest.$ac_ext >&5
12772   rm -rf conftest*
12773   eval "ac_cv_lib_$ac_lib_var=no"
12774 fi
12775 rm -f conftest*
12776 LIBS="$ac_save_LIBS"
12777
12778 fi
12779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12780   echo "$ac_t""yes" 1>&6
12781   cat >> confdefs.h <<\EOF
12782 #define HAVE_XIM 1
12783 EOF
12784
12785 else
12786   echo "$ac_t""no" 1>&6
12787 fi
12788
12789     fi
12790
12791     if test "$wxUSE_MGL" = 1; then
12792         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12793 echo "configure:12794: checking for SciTech MGL library" >&5
12794         if test "x$MGL_ROOT" = x ; then
12795             echo "$ac_t""not found" 1>&6
12796             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12797         else
12798             echo "$ac_t""$MGL_ROOT" 1>&6
12799         fi
12800
12801                         case "${host}" in
12802             *-*-linux* )
12803               mgl_os=linux/gcc/glibc
12804               ;;
12805             *-pc-msdosdjgpp )
12806               mgl_os=dos32/dj2
12807               ;;
12808             *)
12809               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12810         esac
12811
12812         mgl_lib_type=""
12813
12814         if test "$wxUSE_DEBUG_FLAG" = yes ; then
12815             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12816                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12817                 mgl_lib_type=debug
12818             fi
12819         fi
12820         if test "x$mgl_lib_type" = x ; then
12821             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12822                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12823                 mgl_lib_type=release
12824             else
12825                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12826             fi
12827         fi
12828
12829         wxUSE_UNIVERSAL="yes"
12830
12831         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12832         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12833
12834         AFMINSTALL=afminstall
12835         TOOLKIT=MGL
12836         GUIDIST=MGL_DIST
12837     fi
12838
12839     if test "$wxUSE_MICROWIN" = 1; then
12840         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12841 echo "configure:12842: checking for MicroWindows" >&5
12842         if test "x$MICROWINDOWS" = x ; then
12843             echo "$ac_t""not found" 1>&6
12844             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12845         else
12846             echo "$ac_t""$MICROWINDOWS" 1>&6
12847         fi
12848
12849         if test -f $MICROWINDOWS/lib/libmwin.a; then
12850             echo "$ac_t""MicroWindows' libraries found." 1>&6
12851         else
12852             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12853         fi
12854
12855         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12856         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12857
12858         wxUSE_UNIVERSAL="yes"
12859
12860         AFMINSTALL=afminstall
12861         TOOLKIT=MICROWIN
12862         GUIDIST=MICROWIN_DIST
12863
12864         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12865     fi
12866
12867     if test "$wxUSE_X11" = 1; then
12868                         # If we find X, set shell vars x_includes and x_libraries to the
12869 # paths, otherwise set no_x=yes.
12870 # Uses ac_ vars as temps to allow command line to override cache and checks.
12871 # --without-x overrides everything else, but does not touch the cache.
12872 echo $ac_n "checking for X""... $ac_c" 1>&6
12873 echo "configure:12874: checking for X" >&5
12874
12875 # Check whether --with-x or --without-x was given.
12876 if test "${with_x+set}" = set; then
12877   withval="$with_x"
12878   :
12879 fi
12880
12881 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12882 if test "x$with_x" = xno; then
12883   # The user explicitly disabled X.
12884   have_x=disabled
12885 else
12886   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12887     # Both variables are already set.
12888     have_x=yes
12889   else
12890 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12891   echo $ac_n "(cached) $ac_c" 1>&6
12892 else
12893   # One or both of the vars are not set, and there is no cached value.
12894 ac_x_includes=NO ac_x_libraries=NO
12895 rm -fr conftestdir
12896 if mkdir conftestdir; then
12897   cd conftestdir
12898   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12899   cat > Imakefile <<'EOF'
12900 acfindx:
12901         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12902 EOF
12903   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12904     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12905     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12906     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12907     for ac_extension in a so sl; do
12908       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12909         test -f $ac_im_libdir/libX11.$ac_extension; then
12910         ac_im_usrlibdir=$ac_im_libdir; break
12911       fi
12912     done
12913     # Screen out bogus values from the imake configuration.  They are
12914     # bogus both because they are the default anyway, and because
12915     # using them would break gcc on systems where it needs fixed includes.
12916     case "$ac_im_incroot" in
12917         /usr/include) ;;
12918         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12919     esac
12920     case "$ac_im_usrlibdir" in
12921         /usr/lib | /lib) ;;
12922         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12923     esac
12924   fi
12925   cd ..
12926   rm -fr conftestdir
12927 fi
12928
12929 if test "$ac_x_includes" = NO; then
12930   # Guess where to find include files, by looking for this one X11 .h file.
12931   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12932
12933   # First, try using that file with no special directory specified.
12934 cat > conftest.$ac_ext <<EOF
12935 #line 12936 "configure"
12936 #include "confdefs.h"
12937 #include <$x_direct_test_include>
12938 EOF
12939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12940 { (eval echo configure:12941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12942 if test -z "$ac_err"; then
12943   rm -rf conftest*
12944   # We can compile using X headers with no special include directory.
12945 ac_x_includes=
12946 else
12947   echo "$ac_err" >&5
12948   echo "configure: failed program was:" >&5
12949   cat conftest.$ac_ext >&5
12950   rm -rf conftest*
12951   # Look for the header file in a standard set of common directories.
12952 # Check X11 before X11Rn because it is often a symlink to the current release.
12953   for ac_dir in               \
12954     /usr/X11/include          \
12955     /usr/X11R6/include        \
12956     /usr/X11R5/include        \
12957     /usr/X11R4/include        \
12958                               \
12959     /usr/include/X11          \
12960     /usr/include/X11R6        \
12961     /usr/include/X11R5        \
12962     /usr/include/X11R4        \
12963                               \
12964     /usr/local/X11/include    \
12965     /usr/local/X11R6/include  \
12966     /usr/local/X11R5/include  \
12967     /usr/local/X11R4/include  \
12968                               \
12969     /usr/local/include/X11    \
12970     /usr/local/include/X11R6  \
12971     /usr/local/include/X11R5  \
12972     /usr/local/include/X11R4  \
12973                               \
12974     /usr/X386/include         \
12975     /usr/x386/include         \
12976     /usr/XFree86/include/X11  \
12977                               \
12978     /usr/include              \
12979     /usr/local/include        \
12980     /usr/unsupported/include  \
12981     /usr/athena/include       \
12982     /usr/local/x11r5/include  \
12983     /usr/lpp/Xamples/include  \
12984                               \
12985     /usr/openwin/include      \
12986     /usr/openwin/share/include \
12987     ; \
12988   do
12989     if test -r "$ac_dir/$x_direct_test_include"; then
12990       ac_x_includes=$ac_dir
12991       break
12992     fi
12993   done
12994 fi
12995 rm -f conftest*
12996 fi # $ac_x_includes = NO
12997
12998 if test "$ac_x_libraries" = NO; then
12999   # Check for the libraries.
13000
13001   test -z "$x_direct_test_library" && x_direct_test_library=Xt
13002   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13003
13004   # See if we find them without any special options.
13005   # Don't add to $LIBS permanently.
13006   ac_save_LIBS="$LIBS"
13007   LIBS="-l$x_direct_test_library $LIBS"
13008 cat > conftest.$ac_ext <<EOF
13009 #line 13010 "configure"
13010 #include "confdefs.h"
13011
13012 int main() {
13013 ${x_direct_test_function}()
13014 ; return 0; }
13015 EOF
13016 if { (eval echo configure:13017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13017   rm -rf conftest*
13018   LIBS="$ac_save_LIBS"
13019 # We can link X programs with no special library path.
13020 ac_x_libraries=
13021 else
13022   echo "configure: failed program was:" >&5
13023   cat conftest.$ac_ext >&5
13024   rm -rf conftest*
13025   LIBS="$ac_save_LIBS"
13026 # First see if replacing the include by lib works.
13027 # Check X11 before X11Rn because it is often a symlink to the current release.
13028 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13029     /usr/X11/lib          \
13030     /usr/X11R6/lib        \
13031     /usr/X11R5/lib        \
13032     /usr/X11R4/lib        \
13033                           \
13034     /usr/lib/X11          \
13035     /usr/lib/X11R6        \
13036     /usr/lib/X11R5        \
13037     /usr/lib/X11R4        \
13038                           \
13039     /usr/local/X11/lib    \
13040     /usr/local/X11R6/lib  \
13041     /usr/local/X11R5/lib  \
13042     /usr/local/X11R4/lib  \
13043                           \
13044     /usr/local/lib/X11    \
13045     /usr/local/lib/X11R6  \
13046     /usr/local/lib/X11R5  \
13047     /usr/local/lib/X11R4  \
13048                           \
13049     /usr/X386/lib         \
13050     /usr/x386/lib         \
13051     /usr/XFree86/lib/X11  \
13052                           \
13053     /usr/lib              \
13054     /usr/local/lib        \
13055     /usr/unsupported/lib  \
13056     /usr/athena/lib       \
13057     /usr/local/x11r5/lib  \
13058     /usr/lpp/Xamples/lib  \
13059     /lib/usr/lib/X11      \
13060                           \
13061     /usr/openwin/lib      \
13062     /usr/openwin/share/lib \
13063     ; \
13064 do
13065   for ac_extension in a so sl; do
13066     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13067       ac_x_libraries=$ac_dir
13068       break 2
13069     fi
13070   done
13071 done
13072 fi
13073 rm -f conftest*
13074 fi # $ac_x_libraries = NO
13075
13076 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13077   # Didn't find X anywhere.  Cache the known absence of X.
13078   ac_cv_have_x="have_x=no"
13079 else
13080   # Record where we found X for the cache.
13081   ac_cv_have_x="have_x=yes \
13082                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13083 fi
13084 fi
13085   fi
13086   eval "$ac_cv_have_x"
13087 fi # $with_x != no
13088
13089 if test "$have_x" != yes; then
13090   echo "$ac_t""$have_x" 1>&6
13091   no_x=yes
13092 else
13093   # If each of the values was on the command line, it overrides each guess.
13094   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13095   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13096   # Update the cache value to reflect the command line values.
13097   ac_cv_have_x="have_x=yes \
13098                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13099   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13100 fi
13101
13102 if test "$no_x" = yes; then
13103   # Not all programs may use this symbol, but it does not hurt to define it.
13104   cat >> confdefs.h <<\EOF
13105 #define X_DISPLAY_MISSING 1
13106 EOF
13107
13108   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13109 else
13110   if test -n "$x_includes"; then
13111     X_CFLAGS="$X_CFLAGS -I$x_includes"
13112   fi
13113
13114   # It would also be nice to do this for all -L options, not just this one.
13115   if test -n "$x_libraries"; then
13116     X_LIBS="$X_LIBS -L$x_libraries"
13117     # For Solaris; some versions of Sun CC require a space after -R and
13118     # others require no space.  Words are not sufficient . . . .
13119     case "`(uname -sr) 2>/dev/null`" in
13120     "SunOS 5"*)
13121       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13122 echo "configure:13123: checking whether -R must be followed by a space" >&5
13123       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13124       cat > conftest.$ac_ext <<EOF
13125 #line 13126 "configure"
13126 #include "confdefs.h"
13127
13128 int main() {
13129
13130 ; return 0; }
13131 EOF
13132 if { (eval echo configure:13133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13133   rm -rf conftest*
13134   ac_R_nospace=yes
13135 else
13136   echo "configure: failed program was:" >&5
13137   cat conftest.$ac_ext >&5
13138   rm -rf conftest*
13139   ac_R_nospace=no
13140 fi
13141 rm -f conftest*
13142       if test $ac_R_nospace = yes; then
13143         echo "$ac_t""no" 1>&6
13144         X_LIBS="$X_LIBS -R$x_libraries"
13145       else
13146         LIBS="$ac_xsave_LIBS -R $x_libraries"
13147         cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13150
13151 int main() {
13152
13153 ; return 0; }
13154 EOF
13155 if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13156   rm -rf conftest*
13157   ac_R_space=yes
13158 else
13159   echo "configure: failed program was:" >&5
13160   cat conftest.$ac_ext >&5
13161   rm -rf conftest*
13162   ac_R_space=no
13163 fi
13164 rm -f conftest*
13165         if test $ac_R_space = yes; then
13166           echo "$ac_t""yes" 1>&6
13167           X_LIBS="$X_LIBS -R $x_libraries"
13168         else
13169           echo "$ac_t""neither works" 1>&6
13170         fi
13171       fi
13172       LIBS="$ac_xsave_LIBS"
13173     esac
13174   fi
13175
13176   # Check for system-dependent libraries X programs must link with.
13177   # Do this before checking for the system-independent R6 libraries
13178   # (-lICE), since we may need -lsocket or whatever for X linking.
13179
13180   if test "$ISC" = yes; then
13181     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13182   else
13183     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13184     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13185     # the Alpha needs dnet_stub (dnet does not exist).
13186     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13187 echo "configure:13188: checking for dnet_ntoa in -ldnet" >&5
13188 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13190   echo $ac_n "(cached) $ac_c" 1>&6
13191 else
13192   ac_save_LIBS="$LIBS"
13193 LIBS="-ldnet  $LIBS"
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 /* Override any gcc2 internal prototype to avoid an error.  */
13198 /* We use char because int might match the return type of a gcc2
13199     builtin and then its argument prototype would still apply.  */
13200 char dnet_ntoa();
13201
13202 int main() {
13203 dnet_ntoa()
13204 ; return 0; }
13205 EOF
13206 if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13207   rm -rf conftest*
13208   eval "ac_cv_lib_$ac_lib_var=yes"
13209 else
13210   echo "configure: failed program was:" >&5
13211   cat conftest.$ac_ext >&5
13212   rm -rf conftest*
13213   eval "ac_cv_lib_$ac_lib_var=no"
13214 fi
13215 rm -f conftest*
13216 LIBS="$ac_save_LIBS"
13217
13218 fi
13219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13220   echo "$ac_t""yes" 1>&6
13221   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13222 else
13223   echo "$ac_t""no" 1>&6
13224 fi
13225
13226     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13227       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13228 echo "configure:13229: checking for dnet_ntoa in -ldnet_stub" >&5
13229 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13231   echo $ac_n "(cached) $ac_c" 1>&6
13232 else
13233   ac_save_LIBS="$LIBS"
13234 LIBS="-ldnet_stub  $LIBS"
13235 cat > conftest.$ac_ext <<EOF
13236 #line 13237 "configure"
13237 #include "confdefs.h"
13238 /* Override any gcc2 internal prototype to avoid an error.  */
13239 /* We use char because int might match the return type of a gcc2
13240     builtin and then its argument prototype would still apply.  */
13241 char dnet_ntoa();
13242
13243 int main() {
13244 dnet_ntoa()
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_lib_$ac_lib_var=yes"
13250 else
13251   echo "configure: failed program was:" >&5
13252   cat conftest.$ac_ext >&5
13253   rm -rf conftest*
13254   eval "ac_cv_lib_$ac_lib_var=no"
13255 fi
13256 rm -f conftest*
13257 LIBS="$ac_save_LIBS"
13258
13259 fi
13260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13261   echo "$ac_t""yes" 1>&6
13262   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13263 else
13264   echo "$ac_t""no" 1>&6
13265 fi
13266
13267     fi
13268
13269     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13270     # to get the SysV transport functions.
13271     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13272     # needs -lnsl.
13273     # The nsl library prevents programs from opening the X display
13274     # on Irix 5.2, according to dickey@clark.net.
13275     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13276 echo "configure:13277: checking for gethostbyname" >&5
13277 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13278   echo $ac_n "(cached) $ac_c" 1>&6
13279 else
13280   cat > conftest.$ac_ext <<EOF
13281 #line 13282 "configure"
13282 #include "confdefs.h"
13283 /* System header to define __stub macros and hopefully few prototypes,
13284     which can conflict with char gethostbyname(); below.  */
13285 #include <assert.h>
13286 /* Override any gcc2 internal prototype to avoid an error.  */
13287 /* We use char because int might match the return type of a gcc2
13288     builtin and then its argument prototype would still apply.  */
13289 char gethostbyname();
13290
13291 int main() {
13292
13293 /* The GNU C library defines this for functions which it implements
13294     to always fail with ENOSYS.  Some functions are actually named
13295     something starting with __ and the normal name is an alias.  */
13296 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13297 choke me
13298 #else
13299 gethostbyname();
13300 #endif
13301
13302 ; return 0; }
13303 EOF
13304 if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13305   rm -rf conftest*
13306   eval "ac_cv_func_gethostbyname=yes"
13307 else
13308   echo "configure: failed program was:" >&5
13309   cat conftest.$ac_ext >&5
13310   rm -rf conftest*
13311   eval "ac_cv_func_gethostbyname=no"
13312 fi
13313 rm -f conftest*
13314 fi
13315
13316 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13317   echo "$ac_t""yes" 1>&6
13318   :
13319 else
13320   echo "$ac_t""no" 1>&6
13321 fi
13322
13323     if test $ac_cv_func_gethostbyname = no; then
13324       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13325 echo "configure:13326: checking for gethostbyname in -lnsl" >&5
13326 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13328   echo $ac_n "(cached) $ac_c" 1>&6
13329 else
13330   ac_save_LIBS="$LIBS"
13331 LIBS="-lnsl  $LIBS"
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 /* Override any gcc2 internal prototype to avoid an error.  */
13336 /* We use char because int might match the return type of a gcc2
13337     builtin and then its argument prototype would still apply.  */
13338 char gethostbyname();
13339
13340 int main() {
13341 gethostbyname()
13342 ; return 0; }
13343 EOF
13344 if { (eval echo configure:13345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13345   rm -rf conftest*
13346   eval "ac_cv_lib_$ac_lib_var=yes"
13347 else
13348   echo "configure: failed program was:" >&5
13349   cat conftest.$ac_ext >&5
13350   rm -rf conftest*
13351   eval "ac_cv_lib_$ac_lib_var=no"
13352 fi
13353 rm -f conftest*
13354 LIBS="$ac_save_LIBS"
13355
13356 fi
13357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13358   echo "$ac_t""yes" 1>&6
13359   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13360 else
13361   echo "$ac_t""no" 1>&6
13362 fi
13363
13364     fi
13365
13366     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13367     # socket/setsockopt and other routines are undefined under SCO ODT
13368     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13369     # on later versions), says simon@lia.di.epfl.ch: it contains
13370     # gethostby* variants that don't use the nameserver (or something).
13371     # -lsocket must be given before -lnsl if both are needed.
13372     # We assume that if connect needs -lnsl, so does gethostbyname.
13373     echo $ac_n "checking for connect""... $ac_c" 1>&6
13374 echo "configure:13375: checking for connect" >&5
13375 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13376   echo $ac_n "(cached) $ac_c" 1>&6
13377 else
13378   cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 /* System header to define __stub macros and hopefully few prototypes,
13382     which can conflict with char connect(); below.  */
13383 #include <assert.h>
13384 /* Override any gcc2 internal prototype to avoid an error.  */
13385 /* We use char because int might match the return type of a gcc2
13386     builtin and then its argument prototype would still apply.  */
13387 char connect();
13388
13389 int main() {
13390
13391 /* The GNU C library defines this for functions which it implements
13392     to always fail with ENOSYS.  Some functions are actually named
13393     something starting with __ and the normal name is an alias.  */
13394 #if defined (__stub_connect) || defined (__stub___connect)
13395 choke me
13396 #else
13397 connect();
13398 #endif
13399
13400 ; return 0; }
13401 EOF
13402 if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13403   rm -rf conftest*
13404   eval "ac_cv_func_connect=yes"
13405 else
13406   echo "configure: failed program was:" >&5
13407   cat conftest.$ac_ext >&5
13408   rm -rf conftest*
13409   eval "ac_cv_func_connect=no"
13410 fi
13411 rm -f conftest*
13412 fi
13413
13414 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13415   echo "$ac_t""yes" 1>&6
13416   :
13417 else
13418   echo "$ac_t""no" 1>&6
13419 fi
13420
13421     if test $ac_cv_func_connect = no; then
13422       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13423 echo "configure:13424: checking for connect in -lsocket" >&5
13424 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13426   echo $ac_n "(cached) $ac_c" 1>&6
13427 else
13428   ac_save_LIBS="$LIBS"
13429 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13430 cat > conftest.$ac_ext <<EOF
13431 #line 13432 "configure"
13432 #include "confdefs.h"
13433 /* Override any gcc2 internal prototype to avoid an error.  */
13434 /* We use char because int might match the return type of a gcc2
13435     builtin and then its argument prototype would still apply.  */
13436 char connect();
13437
13438 int main() {
13439 connect()
13440 ; return 0; }
13441 EOF
13442 if { (eval echo configure:13443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13443   rm -rf conftest*
13444   eval "ac_cv_lib_$ac_lib_var=yes"
13445 else
13446   echo "configure: failed program was:" >&5
13447   cat conftest.$ac_ext >&5
13448   rm -rf conftest*
13449   eval "ac_cv_lib_$ac_lib_var=no"
13450 fi
13451 rm -f conftest*
13452 LIBS="$ac_save_LIBS"
13453
13454 fi
13455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13456   echo "$ac_t""yes" 1>&6
13457   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13458 else
13459   echo "$ac_t""no" 1>&6
13460 fi
13461
13462     fi
13463
13464     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13465     echo $ac_n "checking for remove""... $ac_c" 1>&6
13466 echo "configure:13467: checking for remove" >&5
13467 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13468   echo $ac_n "(cached) $ac_c" 1>&6
13469 else
13470   cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 /* System header to define __stub macros and hopefully few prototypes,
13474     which can conflict with char remove(); below.  */
13475 #include <assert.h>
13476 /* Override any gcc2 internal prototype to avoid an error.  */
13477 /* We use char because int might match the return type of a gcc2
13478     builtin and then its argument prototype would still apply.  */
13479 char remove();
13480
13481 int main() {
13482
13483 /* The GNU C library defines this for functions which it implements
13484     to always fail with ENOSYS.  Some functions are actually named
13485     something starting with __ and the normal name is an alias.  */
13486 #if defined (__stub_remove) || defined (__stub___remove)
13487 choke me
13488 #else
13489 remove();
13490 #endif
13491
13492 ; return 0; }
13493 EOF
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495   rm -rf conftest*
13496   eval "ac_cv_func_remove=yes"
13497 else
13498   echo "configure: failed program was:" >&5
13499   cat conftest.$ac_ext >&5
13500   rm -rf conftest*
13501   eval "ac_cv_func_remove=no"
13502 fi
13503 rm -f conftest*
13504 fi
13505
13506 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13507   echo "$ac_t""yes" 1>&6
13508   :
13509 else
13510   echo "$ac_t""no" 1>&6
13511 fi
13512
13513     if test $ac_cv_func_remove = no; then
13514       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13515 echo "configure:13516: checking for remove in -lposix" >&5
13516 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13518   echo $ac_n "(cached) $ac_c" 1>&6
13519 else
13520   ac_save_LIBS="$LIBS"
13521 LIBS="-lposix  $LIBS"
13522 cat > conftest.$ac_ext <<EOF
13523 #line 13524 "configure"
13524 #include "confdefs.h"
13525 /* Override any gcc2 internal prototype to avoid an error.  */
13526 /* We use char because int might match the return type of a gcc2
13527     builtin and then its argument prototype would still apply.  */
13528 char remove();
13529
13530 int main() {
13531 remove()
13532 ; return 0; }
13533 EOF
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13535   rm -rf conftest*
13536   eval "ac_cv_lib_$ac_lib_var=yes"
13537 else
13538   echo "configure: failed program was:" >&5
13539   cat conftest.$ac_ext >&5
13540   rm -rf conftest*
13541   eval "ac_cv_lib_$ac_lib_var=no"
13542 fi
13543 rm -f conftest*
13544 LIBS="$ac_save_LIBS"
13545
13546 fi
13547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13548   echo "$ac_t""yes" 1>&6
13549   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13550 else
13551   echo "$ac_t""no" 1>&6
13552 fi
13553
13554     fi
13555
13556     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13557     echo $ac_n "checking for shmat""... $ac_c" 1>&6
13558 echo "configure:13559: checking for shmat" >&5
13559 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13560   echo $ac_n "(cached) $ac_c" 1>&6
13561 else
13562   cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565 /* System header to define __stub macros and hopefully few prototypes,
13566     which can conflict with char shmat(); below.  */
13567 #include <assert.h>
13568 /* Override any gcc2 internal prototype to avoid an error.  */
13569 /* We use char because int might match the return type of a gcc2
13570     builtin and then its argument prototype would still apply.  */
13571 char shmat();
13572
13573 int main() {
13574
13575 /* The GNU C library defines this for functions which it implements
13576     to always fail with ENOSYS.  Some functions are actually named
13577     something starting with __ and the normal name is an alias.  */
13578 #if defined (__stub_shmat) || defined (__stub___shmat)
13579 choke me
13580 #else
13581 shmat();
13582 #endif
13583
13584 ; return 0; }
13585 EOF
13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13587   rm -rf conftest*
13588   eval "ac_cv_func_shmat=yes"
13589 else
13590   echo "configure: failed program was:" >&5
13591   cat conftest.$ac_ext >&5
13592   rm -rf conftest*
13593   eval "ac_cv_func_shmat=no"
13594 fi
13595 rm -f conftest*
13596 fi
13597
13598 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13599   echo "$ac_t""yes" 1>&6
13600   :
13601 else
13602   echo "$ac_t""no" 1>&6
13603 fi
13604
13605     if test $ac_cv_func_shmat = no; then
13606       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13607 echo "configure:13608: checking for shmat in -lipc" >&5
13608 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13610   echo $ac_n "(cached) $ac_c" 1>&6
13611 else
13612   ac_save_LIBS="$LIBS"
13613 LIBS="-lipc  $LIBS"
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 /* Override any gcc2 internal prototype to avoid an error.  */
13618 /* We use char because int might match the return type of a gcc2
13619     builtin and then its argument prototype would still apply.  */
13620 char shmat();
13621
13622 int main() {
13623 shmat()
13624 ; return 0; }
13625 EOF
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13627   rm -rf conftest*
13628   eval "ac_cv_lib_$ac_lib_var=yes"
13629 else
13630   echo "configure: failed program was:" >&5
13631   cat conftest.$ac_ext >&5
13632   rm -rf conftest*
13633   eval "ac_cv_lib_$ac_lib_var=no"
13634 fi
13635 rm -f conftest*
13636 LIBS="$ac_save_LIBS"
13637
13638 fi
13639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13640   echo "$ac_t""yes" 1>&6
13641   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13642 else
13643   echo "$ac_t""no" 1>&6
13644 fi
13645
13646     fi
13647   fi
13648
13649   # Check for libraries that X11R6 Xt/Xaw programs need.
13650   ac_save_LDFLAGS="$LDFLAGS"
13651   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13652   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13653   # check for ICE first), but we must link in the order -lSM -lICE or
13654   # we get undefined symbols.  So assume we have SM if we have ICE.
13655   # These have to be linked with before -lX11, unlike the other
13656   # libraries we check for below, so use a different variable.
13657   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13658   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13659 echo "configure:13660: checking for IceConnectionNumber in -lICE" >&5
13660 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13662   echo $ac_n "(cached) $ac_c" 1>&6
13663 else
13664   ac_save_LIBS="$LIBS"
13665 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 /* Override any gcc2 internal prototype to avoid an error.  */
13670 /* We use char because int might match the return type of a gcc2
13671     builtin and then its argument prototype would still apply.  */
13672 char IceConnectionNumber();
13673
13674 int main() {
13675 IceConnectionNumber()
13676 ; return 0; }
13677 EOF
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13679   rm -rf conftest*
13680   eval "ac_cv_lib_$ac_lib_var=yes"
13681 else
13682   echo "configure: failed program was:" >&5
13683   cat conftest.$ac_ext >&5
13684   rm -rf conftest*
13685   eval "ac_cv_lib_$ac_lib_var=no"
13686 fi
13687 rm -f conftest*
13688 LIBS="$ac_save_LIBS"
13689
13690 fi
13691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13692   echo "$ac_t""yes" 1>&6
13693   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13694 else
13695   echo "$ac_t""no" 1>&6
13696 fi
13697
13698   LDFLAGS="$ac_save_LDFLAGS"
13699
13700 fi
13701
13702
13703         if test "$no_x" = "yes"; then
13704           { echo "configure: error: X11 not found" 1>&2; exit 1; }
13705         fi
13706
13707         GUI_TK_LIBRARY="$X_LIBS"
13708         TOOLKIT_INCLUDE="$X_CFLAGS"
13709         AFMINSTALL=afminstall
13710         COMPILED_X_PROGRAM=0
13711
13712         if test "$wxUSE_NANOX" = "yes"; then
13713             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13714 echo "configure:13715: checking for MicroWindows/NanoX distribution" >&5
13715             if test "x$MICROWIN" = x ; then
13716                 echo "$ac_t""not found" 1>&6
13717                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13718             else
13719                 echo "$ac_t""$MICROWIN" 1>&6
13720                 cat >> confdefs.h <<\EOF
13721 #define wxUSE_NANOX 1
13722 EOF
13723
13724             fi
13725         fi
13726
13727         xpm_link=
13728         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13729 echo "configure:13730: checking for Xpm library" >&5
13730         
13731 ac_find_libraries=
13732 for ac_dir in $SEARCH_LIB;
13733   do
13734     for ac_extension in a so sl dylib; do
13735       if test -f "$ac_dir/libXpm.$ac_extension"; then
13736         ac_find_libraries=$ac_dir
13737         break 2
13738       fi
13739     done
13740   done
13741
13742         if test "$ac_find_libraries" != "" ; then
13743             
13744   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13745   result=$?
13746   if test $result = 0; then
13747     ac_path_to_link=""
13748   else
13749     ac_path_to_link=" -L$ac_find_libraries"
13750   fi
13751
13752             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13753             xpm_link=" -lXpm"
13754             cat >> confdefs.h <<\EOF
13755 #define wxHAVE_LIB_XPM 1
13756 EOF
13757
13758             echo "$ac_t""found at $ac_find_libraries" 1>&6
13759         else
13760             cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763
13764                     #include <X11/xpm.h>
13765                 
13766 int main() {
13767
13768                     int version;
13769                     version = XpmLibraryVersion();
13770                 
13771 ; return 0; }
13772 EOF
13773 if { (eval echo configure:13774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13774   rm -rf conftest*
13775   
13776                     xpm_link=" -lXpm"
13777                     cat >> confdefs.h <<\EOF
13778 #define wxHAVE_LIB_XPM 1
13779 EOF
13780
13781                     echo "$ac_t""found in default search path" 1>&6
13782                     COMPILED_X_PROGRAM=0
13783                 
13784 else
13785   echo "configure: failed program was:" >&5
13786   cat conftest.$ac_ext >&5
13787   rm -rf conftest*
13788   
13789                     echo "$ac_t""no" 1>&6
13790                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13791                 
13792             
13793 fi
13794 rm -f conftest*
13795         fi
13796
13797         wxUSE_UNIVERSAL="yes"
13798
13799         if test "$wxUSE_NANOX" = "yes"; then
13800             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13801             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"
13802             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13803         else
13804             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13805         fi
13806
13807         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13808         TOOLKIT=X11
13809         GUIDIST=X11_DIST
13810     fi
13811
13812     if test "$wxUSE_WINE" = 1; then
13813         ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13814 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13815 echo "configure:13816: checking for windows.h" >&5
13816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13817   echo $ac_n "(cached) $ac_c" 1>&6
13818 else
13819   cat > conftest.$ac_ext <<EOF
13820 #line 13821 "configure"
13821 #include "confdefs.h"
13822 #include <windows.h>
13823 EOF
13824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13825 { (eval echo configure:13826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13827 if test -z "$ac_err"; then
13828   rm -rf conftest*
13829   eval "ac_cv_header_$ac_safe=yes"
13830 else
13831   echo "$ac_err" >&5
13832   echo "configure: failed program was:" >&5
13833   cat conftest.$ac_ext >&5
13834   rm -rf conftest*
13835   eval "ac_cv_header_$ac_safe=no"
13836 fi
13837 rm -f conftest*
13838 fi
13839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13840   echo "$ac_t""yes" 1>&6
13841   :
13842 else
13843   echo "$ac_t""no" 1>&6
13844
13845             { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13846         
13847 fi
13848
13849
13850         xpm_link=
13851         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13852 echo "configure:13853: checking for Xpm library" >&5
13853         
13854 ac_find_libraries=
13855 for ac_dir in $SEARCH_LIB;
13856   do
13857     for ac_extension in a so sl dylib; do
13858       if test -f "$ac_dir/libXpm.$ac_extension"; then
13859         ac_find_libraries=$ac_dir
13860         break 2
13861       fi
13862     done
13863   done
13864
13865         if test "$ac_find_libraries" != "" ; then
13866             GUI_TK_LIBRARY="-L$ac_find_libraries"
13867             xpm_link=" -lXpm"
13868             cat >> confdefs.h <<\EOF
13869 #define wxHAVE_LIB_XPM 1
13870 EOF
13871
13872             echo "$ac_t""found at $ac_find_libraries" 1>&6
13873         else
13874             echo "$ac_t""no" 1>&6
13875             echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13876         fi
13877
13878         mesa_link=
13879         echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13880 echo "configure:13881: checking for Mesa library" >&5
13881         
13882 ac_find_libraries=
13883 for ac_dir in $SEARCH_LIB;
13884   do
13885     for ac_extension in a so sl dylib; do
13886       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13887         ac_find_libraries=$ac_dir
13888         break 2
13889       fi
13890     done
13891   done
13892
13893         if test "$ac_find_libraries" != "" ; then
13894             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13895             mesa_link=" -lMesaGL"
13896             echo "$ac_t""found at $ac_find_libraries" 1>&6
13897         else
13898             { echo "configure: error: no" 1>&2; exit 1; }
13899         fi
13900
13901         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13902         TOOLKIT=MSW
13903         GUIDIST=MSW_DIST
13904         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13905     fi
13906
13907     if test "$wxUSE_MOTIF" = 1; then
13908                         if test "$no_x" = yes; then
13909   # Not all programs may use this symbol, but it does not hurt to define it.
13910   cat >> confdefs.h <<\EOF
13911 #define X_DISPLAY_MISSING 1
13912 EOF
13913
13914   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13915 else
13916   if test -n "$x_includes"; then
13917     X_CFLAGS="$X_CFLAGS -I$x_includes"
13918   fi
13919
13920   # It would also be nice to do this for all -L options, not just this one.
13921   if test -n "$x_libraries"; then
13922     X_LIBS="$X_LIBS -L$x_libraries"
13923     # For Solaris; some versions of Sun CC require a space after -R and
13924     # others require no space.  Words are not sufficient . . . .
13925     case "`(uname -sr) 2>/dev/null`" in
13926     "SunOS 5"*)
13927       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13928 echo "configure:13929: checking whether -R must be followed by a space" >&5
13929       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13930       cat > conftest.$ac_ext <<EOF
13931 #line 13932 "configure"
13932 #include "confdefs.h"
13933
13934 int main() {
13935
13936 ; return 0; }
13937 EOF
13938 if { (eval echo configure:13939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13939   rm -rf conftest*
13940   ac_R_nospace=yes
13941 else
13942   echo "configure: failed program was:" >&5
13943   cat conftest.$ac_ext >&5
13944   rm -rf conftest*
13945   ac_R_nospace=no
13946 fi
13947 rm -f conftest*
13948       if test $ac_R_nospace = yes; then
13949         echo "$ac_t""no" 1>&6
13950         X_LIBS="$X_LIBS -R$x_libraries"
13951       else
13952         LIBS="$ac_xsave_LIBS -R $x_libraries"
13953         cat > conftest.$ac_ext <<EOF
13954 #line 13955 "configure"
13955 #include "confdefs.h"
13956
13957 int main() {
13958
13959 ; return 0; }
13960 EOF
13961 if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13962   rm -rf conftest*
13963   ac_R_space=yes
13964 else
13965   echo "configure: failed program was:" >&5
13966   cat conftest.$ac_ext >&5
13967   rm -rf conftest*
13968   ac_R_space=no
13969 fi
13970 rm -f conftest*
13971         if test $ac_R_space = yes; then
13972           echo "$ac_t""yes" 1>&6
13973           X_LIBS="$X_LIBS -R $x_libraries"
13974         else
13975           echo "$ac_t""neither works" 1>&6
13976         fi
13977       fi
13978       LIBS="$ac_xsave_LIBS"
13979     esac
13980   fi
13981
13982   # Check for system-dependent libraries X programs must link with.
13983   # Do this before checking for the system-independent R6 libraries
13984   # (-lICE), since we may need -lsocket or whatever for X linking.
13985
13986   if test "$ISC" = yes; then
13987     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13988   else
13989     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13990     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13991     # the Alpha needs dnet_stub (dnet does not exist).
13992     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13993 echo "configure:13994: checking for dnet_ntoa in -ldnet" >&5
13994 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13996   echo $ac_n "(cached) $ac_c" 1>&6
13997 else
13998   ac_save_LIBS="$LIBS"
13999 LIBS="-ldnet  $LIBS"
14000 cat > conftest.$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 /* Override any gcc2 internal prototype to avoid an error.  */
14004 /* We use char because int might match the return type of a gcc2
14005     builtin and then its argument prototype would still apply.  */
14006 char dnet_ntoa();
14007
14008 int main() {
14009 dnet_ntoa()
14010 ; return 0; }
14011 EOF
14012 if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14013   rm -rf conftest*
14014   eval "ac_cv_lib_$ac_lib_var=yes"
14015 else
14016   echo "configure: failed program was:" >&5
14017   cat conftest.$ac_ext >&5
14018   rm -rf conftest*
14019   eval "ac_cv_lib_$ac_lib_var=no"
14020 fi
14021 rm -f conftest*
14022 LIBS="$ac_save_LIBS"
14023
14024 fi
14025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14026   echo "$ac_t""yes" 1>&6
14027   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14028 else
14029   echo "$ac_t""no" 1>&6
14030 fi
14031
14032     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14033       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14034 echo "configure:14035: checking for dnet_ntoa in -ldnet_stub" >&5
14035 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14037   echo $ac_n "(cached) $ac_c" 1>&6
14038 else
14039   ac_save_LIBS="$LIBS"
14040 LIBS="-ldnet_stub  $LIBS"
14041 cat > conftest.$ac_ext <<EOF
14042 #line 14043 "configure"
14043 #include "confdefs.h"
14044 /* Override any gcc2 internal prototype to avoid an error.  */
14045 /* We use char because int might match the return type of a gcc2
14046     builtin and then its argument prototype would still apply.  */
14047 char dnet_ntoa();
14048
14049 int main() {
14050 dnet_ntoa()
14051 ; return 0; }
14052 EOF
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14054   rm -rf conftest*
14055   eval "ac_cv_lib_$ac_lib_var=yes"
14056 else
14057   echo "configure: failed program was:" >&5
14058   cat conftest.$ac_ext >&5
14059   rm -rf conftest*
14060   eval "ac_cv_lib_$ac_lib_var=no"
14061 fi
14062 rm -f conftest*
14063 LIBS="$ac_save_LIBS"
14064
14065 fi
14066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14067   echo "$ac_t""yes" 1>&6
14068   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14069 else
14070   echo "$ac_t""no" 1>&6
14071 fi
14072
14073     fi
14074
14075     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14076     # to get the SysV transport functions.
14077     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14078     # needs -lnsl.
14079     # The nsl library prevents programs from opening the X display
14080     # on Irix 5.2, according to dickey@clark.net.
14081     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14082 echo "configure:14083: checking for gethostbyname" >&5
14083 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14084   echo $ac_n "(cached) $ac_c" 1>&6
14085 else
14086   cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14089 /* System header to define __stub macros and hopefully few prototypes,
14090     which can conflict with char gethostbyname(); below.  */
14091 #include <assert.h>
14092 /* Override any gcc2 internal prototype to avoid an error.  */
14093 /* We use char because int might match the return type of a gcc2
14094     builtin and then its argument prototype would still apply.  */
14095 char gethostbyname();
14096
14097 int main() {
14098
14099 /* The GNU C library defines this for functions which it implements
14100     to always fail with ENOSYS.  Some functions are actually named
14101     something starting with __ and the normal name is an alias.  */
14102 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14103 choke me
14104 #else
14105 gethostbyname();
14106 #endif
14107
14108 ; return 0; }
14109 EOF
14110 if { (eval echo configure:14111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14111   rm -rf conftest*
14112   eval "ac_cv_func_gethostbyname=yes"
14113 else
14114   echo "configure: failed program was:" >&5
14115   cat conftest.$ac_ext >&5
14116   rm -rf conftest*
14117   eval "ac_cv_func_gethostbyname=no"
14118 fi
14119 rm -f conftest*
14120 fi
14121
14122 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14123   echo "$ac_t""yes" 1>&6
14124   :
14125 else
14126   echo "$ac_t""no" 1>&6
14127 fi
14128
14129     if test $ac_cv_func_gethostbyname = no; then
14130       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14131 echo "configure:14132: checking for gethostbyname in -lnsl" >&5
14132 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14134   echo $ac_n "(cached) $ac_c" 1>&6
14135 else
14136   ac_save_LIBS="$LIBS"
14137 LIBS="-lnsl  $LIBS"
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* Override any gcc2 internal prototype to avoid an error.  */
14142 /* We use char because int might match the return type of a gcc2
14143     builtin and then its argument prototype would still apply.  */
14144 char gethostbyname();
14145
14146 int main() {
14147 gethostbyname()
14148 ; return 0; }
14149 EOF
14150 if { (eval echo configure:14151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14151   rm -rf conftest*
14152   eval "ac_cv_lib_$ac_lib_var=yes"
14153 else
14154   echo "configure: failed program was:" >&5
14155   cat conftest.$ac_ext >&5
14156   rm -rf conftest*
14157   eval "ac_cv_lib_$ac_lib_var=no"
14158 fi
14159 rm -f conftest*
14160 LIBS="$ac_save_LIBS"
14161
14162 fi
14163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14164   echo "$ac_t""yes" 1>&6
14165   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14166 else
14167   echo "$ac_t""no" 1>&6
14168 fi
14169
14170     fi
14171
14172     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14173     # socket/setsockopt and other routines are undefined under SCO ODT
14174     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14175     # on later versions), says simon@lia.di.epfl.ch: it contains
14176     # gethostby* variants that don't use the nameserver (or something).
14177     # -lsocket must be given before -lnsl if both are needed.
14178     # We assume that if connect needs -lnsl, so does gethostbyname.
14179     echo $ac_n "checking for connect""... $ac_c" 1>&6
14180 echo "configure:14181: checking for connect" >&5
14181 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14182   echo $ac_n "(cached) $ac_c" 1>&6
14183 else
14184   cat > conftest.$ac_ext <<EOF
14185 #line 14186 "configure"
14186 #include "confdefs.h"
14187 /* System header to define __stub macros and hopefully few prototypes,
14188     which can conflict with char connect(); below.  */
14189 #include <assert.h>
14190 /* Override any gcc2 internal prototype to avoid an error.  */
14191 /* We use char because int might match the return type of a gcc2
14192     builtin and then its argument prototype would still apply.  */
14193 char connect();
14194
14195 int main() {
14196
14197 /* The GNU C library defines this for functions which it implements
14198     to always fail with ENOSYS.  Some functions are actually named
14199     something starting with __ and the normal name is an alias.  */
14200 #if defined (__stub_connect) || defined (__stub___connect)
14201 choke me
14202 #else
14203 connect();
14204 #endif
14205
14206 ; return 0; }
14207 EOF
14208 if { (eval echo configure:14209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14209   rm -rf conftest*
14210   eval "ac_cv_func_connect=yes"
14211 else
14212   echo "configure: failed program was:" >&5
14213   cat conftest.$ac_ext >&5
14214   rm -rf conftest*
14215   eval "ac_cv_func_connect=no"
14216 fi
14217 rm -f conftest*
14218 fi
14219
14220 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14221   echo "$ac_t""yes" 1>&6
14222   :
14223 else
14224   echo "$ac_t""no" 1>&6
14225 fi
14226
14227     if test $ac_cv_func_connect = no; then
14228       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14229 echo "configure:14230: checking for connect in -lsocket" >&5
14230 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14232   echo $ac_n "(cached) $ac_c" 1>&6
14233 else
14234   ac_save_LIBS="$LIBS"
14235 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14236 cat > conftest.$ac_ext <<EOF
14237 #line 14238 "configure"
14238 #include "confdefs.h"
14239 /* Override any gcc2 internal prototype to avoid an error.  */
14240 /* We use char because int might match the return type of a gcc2
14241     builtin and then its argument prototype would still apply.  */
14242 char connect();
14243
14244 int main() {
14245 connect()
14246 ; return 0; }
14247 EOF
14248 if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14249   rm -rf conftest*
14250   eval "ac_cv_lib_$ac_lib_var=yes"
14251 else
14252   echo "configure: failed program was:" >&5
14253   cat conftest.$ac_ext >&5
14254   rm -rf conftest*
14255   eval "ac_cv_lib_$ac_lib_var=no"
14256 fi
14257 rm -f conftest*
14258 LIBS="$ac_save_LIBS"
14259
14260 fi
14261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14262   echo "$ac_t""yes" 1>&6
14263   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14264 else
14265   echo "$ac_t""no" 1>&6
14266 fi
14267
14268     fi
14269
14270     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14271     echo $ac_n "checking for remove""... $ac_c" 1>&6
14272 echo "configure:14273: checking for remove" >&5
14273 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14274   echo $ac_n "(cached) $ac_c" 1>&6
14275 else
14276   cat > conftest.$ac_ext <<EOF
14277 #line 14278 "configure"
14278 #include "confdefs.h"
14279 /* System header to define __stub macros and hopefully few prototypes,
14280     which can conflict with char remove(); below.  */
14281 #include <assert.h>
14282 /* Override any gcc2 internal prototype to avoid an error.  */
14283 /* We use char because int might match the return type of a gcc2
14284     builtin and then its argument prototype would still apply.  */
14285 char remove();
14286
14287 int main() {
14288
14289 /* The GNU C library defines this for functions which it implements
14290     to always fail with ENOSYS.  Some functions are actually named
14291     something starting with __ and the normal name is an alias.  */
14292 #if defined (__stub_remove) || defined (__stub___remove)
14293 choke me
14294 #else
14295 remove();
14296 #endif
14297
14298 ; return 0; }
14299 EOF
14300 if { (eval echo configure:14301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14301   rm -rf conftest*
14302   eval "ac_cv_func_remove=yes"
14303 else
14304   echo "configure: failed program was:" >&5
14305   cat conftest.$ac_ext >&5
14306   rm -rf conftest*
14307   eval "ac_cv_func_remove=no"
14308 fi
14309 rm -f conftest*
14310 fi
14311
14312 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14313   echo "$ac_t""yes" 1>&6
14314   :
14315 else
14316   echo "$ac_t""no" 1>&6
14317 fi
14318
14319     if test $ac_cv_func_remove = no; then
14320       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14321 echo "configure:14322: checking for remove in -lposix" >&5
14322 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14324   echo $ac_n "(cached) $ac_c" 1>&6
14325 else
14326   ac_save_LIBS="$LIBS"
14327 LIBS="-lposix  $LIBS"
14328 cat > conftest.$ac_ext <<EOF
14329 #line 14330 "configure"
14330 #include "confdefs.h"
14331 /* Override any gcc2 internal prototype to avoid an error.  */
14332 /* We use char because int might match the return type of a gcc2
14333     builtin and then its argument prototype would still apply.  */
14334 char remove();
14335
14336 int main() {
14337 remove()
14338 ; return 0; }
14339 EOF
14340 if { (eval echo configure:14341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14341   rm -rf conftest*
14342   eval "ac_cv_lib_$ac_lib_var=yes"
14343 else
14344   echo "configure: failed program was:" >&5
14345   cat conftest.$ac_ext >&5
14346   rm -rf conftest*
14347   eval "ac_cv_lib_$ac_lib_var=no"
14348 fi
14349 rm -f conftest*
14350 LIBS="$ac_save_LIBS"
14351
14352 fi
14353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14354   echo "$ac_t""yes" 1>&6
14355   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14356 else
14357   echo "$ac_t""no" 1>&6
14358 fi
14359
14360     fi
14361
14362     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14363     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14364 echo "configure:14365: checking for shmat" >&5
14365 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14366   echo $ac_n "(cached) $ac_c" 1>&6
14367 else
14368   cat > conftest.$ac_ext <<EOF
14369 #line 14370 "configure"
14370 #include "confdefs.h"
14371 /* System header to define __stub macros and hopefully few prototypes,
14372     which can conflict with char shmat(); below.  */
14373 #include <assert.h>
14374 /* Override any gcc2 internal prototype to avoid an error.  */
14375 /* We use char because int might match the return type of a gcc2
14376     builtin and then its argument prototype would still apply.  */
14377 char shmat();
14378
14379 int main() {
14380
14381 /* The GNU C library defines this for functions which it implements
14382     to always fail with ENOSYS.  Some functions are actually named
14383     something starting with __ and the normal name is an alias.  */
14384 #if defined (__stub_shmat) || defined (__stub___shmat)
14385 choke me
14386 #else
14387 shmat();
14388 #endif
14389
14390 ; return 0; }
14391 EOF
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14393   rm -rf conftest*
14394   eval "ac_cv_func_shmat=yes"
14395 else
14396   echo "configure: failed program was:" >&5
14397   cat conftest.$ac_ext >&5
14398   rm -rf conftest*
14399   eval "ac_cv_func_shmat=no"
14400 fi
14401 rm -f conftest*
14402 fi
14403
14404 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14405   echo "$ac_t""yes" 1>&6
14406   :
14407 else
14408   echo "$ac_t""no" 1>&6
14409 fi
14410
14411     if test $ac_cv_func_shmat = no; then
14412       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14413 echo "configure:14414: checking for shmat in -lipc" >&5
14414 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14416   echo $ac_n "(cached) $ac_c" 1>&6
14417 else
14418   ac_save_LIBS="$LIBS"
14419 LIBS="-lipc  $LIBS"
14420 cat > conftest.$ac_ext <<EOF
14421 #line 14422 "configure"
14422 #include "confdefs.h"
14423 /* Override any gcc2 internal prototype to avoid an error.  */
14424 /* We use char because int might match the return type of a gcc2
14425     builtin and then its argument prototype would still apply.  */
14426 char shmat();
14427
14428 int main() {
14429 shmat()
14430 ; return 0; }
14431 EOF
14432 if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14433   rm -rf conftest*
14434   eval "ac_cv_lib_$ac_lib_var=yes"
14435 else
14436   echo "configure: failed program was:" >&5
14437   cat conftest.$ac_ext >&5
14438   rm -rf conftest*
14439   eval "ac_cv_lib_$ac_lib_var=no"
14440 fi
14441 rm -f conftest*
14442 LIBS="$ac_save_LIBS"
14443
14444 fi
14445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14446   echo "$ac_t""yes" 1>&6
14447   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14448 else
14449   echo "$ac_t""no" 1>&6
14450 fi
14451
14452     fi
14453   fi
14454
14455   # Check for libraries that X11R6 Xt/Xaw programs need.
14456   ac_save_LDFLAGS="$LDFLAGS"
14457   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14458   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14459   # check for ICE first), but we must link in the order -lSM -lICE or
14460   # we get undefined symbols.  So assume we have SM if we have ICE.
14461   # These have to be linked with before -lX11, unlike the other
14462   # libraries we check for below, so use a different variable.
14463   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14464   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14465 echo "configure:14466: checking for IceConnectionNumber in -lICE" >&5
14466 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14468   echo $ac_n "(cached) $ac_c" 1>&6
14469 else
14470   ac_save_LIBS="$LIBS"
14471 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14472 cat > conftest.$ac_ext <<EOF
14473 #line 14474 "configure"
14474 #include "confdefs.h"
14475 /* Override any gcc2 internal prototype to avoid an error.  */
14476 /* We use char because int might match the return type of a gcc2
14477     builtin and then its argument prototype would still apply.  */
14478 char IceConnectionNumber();
14479
14480 int main() {
14481 IceConnectionNumber()
14482 ; return 0; }
14483 EOF
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485   rm -rf conftest*
14486   eval "ac_cv_lib_$ac_lib_var=yes"
14487 else
14488   echo "configure: failed program was:" >&5
14489   cat conftest.$ac_ext >&5
14490   rm -rf conftest*
14491   eval "ac_cv_lib_$ac_lib_var=no"
14492 fi
14493 rm -f conftest*
14494 LIBS="$ac_save_LIBS"
14495
14496 fi
14497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14498   echo "$ac_t""yes" 1>&6
14499   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14500 else
14501   echo "$ac_t""no" 1>&6
14502 fi
14503
14504   LDFLAGS="$ac_save_LDFLAGS"
14505
14506 fi
14507
14508
14509         if test "$no_x" = "yes"; then
14510           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14511         fi
14512
14513         GUI_TK_LIBRARY="$X_LIBS"
14514         TOOLKIT_INCLUDE="$X_CFLAGS"
14515         AFMINSTALL=afminstall
14516         COMPILED_X_PROGRAM=0
14517
14518         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14519 echo "configure:14520: checking for Motif/Lesstif headers" >&5
14520         
14521 ac_find_includes=
14522 for ac_dir in $SEARCH_INCLUDE;
14523   do
14524     if test -f "$ac_dir/Xm/Xm.h"; then
14525       ac_find_includes=$ac_dir
14526       break
14527     fi
14528   done
14529
14530         if test "$ac_find_includes" != "" ; then
14531             echo "$ac_t""found in $ac_find_includes" 1>&6
14532             
14533   ac_path_to_include=$ac_find_includes
14534   echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14535   result=$?
14536   if test $result = 0; then
14537     ac_path_to_include=""
14538   else
14539     ac_path_to_include=" -I$ac_find_includes"
14540   fi
14541
14542             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14543         else
14544             cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547
14548                     #include <Xm/Xm.h>
14549                 
14550 int main() {
14551
14552                     int version;
14553                     version = xmUseVersion;
14554                 
14555 ; return 0; }
14556 EOF
14557 if { (eval echo configure:14558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14558   rm -rf conftest*
14559   
14560                     echo "$ac_t""found in default search path" 1>&6
14561                     COMPILED_X_PROGRAM=1
14562                 
14563 else
14564   echo "configure: failed program was:" >&5
14565   cat conftest.$ac_ext >&5
14566   rm -rf conftest*
14567   
14568                     echo "$ac_t""no" 1>&6
14569                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14570                 
14571             
14572 fi
14573 rm -f conftest*
14574         fi
14575
14576         if test "$COMPILED_X_PROGRAM" = 0; then
14577             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14578 echo "configure:14579: checking for Motif/Lesstif library" >&5
14579             
14580 ac_find_libraries=
14581 for ac_dir in $SEARCH_LIB;
14582   do
14583     for ac_extension in a so sl dylib; do
14584       if test -f "$ac_dir/libXm.$ac_extension"; then
14585         ac_find_libraries=$ac_dir
14586         break 2
14587       fi
14588     done
14589   done
14590
14591             if test "$ac_find_libraries" != "" ; then
14592                 echo "$ac_t""found at $ac_find_libraries" 1>&6
14593
14594                 
14595   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14596   result=$?
14597   if test $result = 0; then
14598     ac_path_to_link=""
14599   else
14600     ac_path_to_link=" -L$ac_find_libraries"
14601   fi
14602
14603                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14604             else
14605                                                                 save_CFLAGS=$CFLAGS
14606                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14607
14608                 cat > conftest.$ac_ext <<EOF
14609 #line 14610 "configure"
14610 #include "confdefs.h"
14611
14612                         #include <Xm/Xm.h>
14613                     
14614 int main() {
14615
14616                         int version;
14617                         version = xmUseVersion;
14618                     
14619 ; return 0; }
14620 EOF
14621 if { (eval echo configure:14622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14622   rm -rf conftest*
14623   
14624                         echo "$ac_t""found in default search path" 1>&6
14625                         COMPILED_X_PROGRAM=1
14626                     
14627 else
14628   echo "configure: failed program was:" >&5
14629   cat conftest.$ac_ext >&5
14630   rm -rf conftest*
14631   
14632                         echo "$ac_t""no" 1>&6
14633                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14634                     
14635                 
14636 fi
14637 rm -f conftest*
14638
14639                 CFLAGS=$save_CFLAGS
14640             fi
14641         fi
14642
14643         xpm_link=
14644         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14645 echo "configure:14646: checking for Xpm library" >&5
14646         
14647 ac_find_libraries=
14648 for ac_dir in $SEARCH_LIB;
14649   do
14650     for ac_extension in a so sl dylib; do
14651       if test -f "$ac_dir/libXpm.$ac_extension"; then
14652         ac_find_libraries=$ac_dir
14653         break 2
14654       fi
14655     done
14656   done
14657
14658         if test "$ac_find_libraries" != "" ; then
14659             
14660   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14661   result=$?
14662   if test $result = 0; then
14663     ac_path_to_link=""
14664   else
14665     ac_path_to_link=" -L$ac_find_libraries"
14666   fi
14667
14668             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14669
14670             xpm_link=" -lXpm"
14671             cat >> confdefs.h <<\EOF
14672 #define wxHAVE_LIB_XPM 1
14673 EOF
14674
14675             echo "$ac_t""found at $ac_find_libraries" 1>&6
14676         else
14677             save_CFLAGS=$CFLAGS
14678             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14679
14680             cat > conftest.$ac_ext <<EOF
14681 #line 14682 "configure"
14682 #include "confdefs.h"
14683
14684                     #include <X11/xpm.h>
14685                 
14686 int main() {
14687
14688                     int version;
14689                     version = XpmLibraryVersion();
14690                 
14691 ; return 0; }
14692 EOF
14693 if { (eval echo configure:14694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14694   rm -rf conftest*
14695   
14696                     xpm_link=" -lXpm"
14697                     cat >> confdefs.h <<\EOF
14698 #define wxHAVE_LIB_XPM 1
14699 EOF
14700
14701                     echo "$ac_t""found in default search path" 1>&6
14702                     COMPILED_X_PROGRAM=0
14703                 
14704 else
14705   echo "configure: failed program was:" >&5
14706   cat conftest.$ac_ext >&5
14707   rm -rf conftest*
14708   
14709                     echo "$ac_t""no" 1>&6
14710                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14711                 
14712             
14713 fi
14714 rm -f conftest*
14715
14716             CFLAGS=$save_CFLAGS
14717         fi
14718
14719         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14720 echo "configure:14721: checking if we need -lXp and/or -lSM -lICE" >&5
14721         libp_link=""
14722         libsm_ice_link=""
14723         libs_found=0
14724         for libp in "" " -lXp"; do
14725             if test "$libs_found" = "0"; then
14726                 for libsm_ice in " -lSM -lICE"; do
14727                     if test "$libs_found" = "0"; then                
14728                         save_LIBS="$LIBS"
14729                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14730                         save_CFLAGS=$CFLAGS
14731                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14732
14733                         cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736
14737                                 #include <Xm/Xm.h>
14738                                 #include <Xm/List.h>
14739                             
14740 int main() {
14741
14742                                 XmString string = NULL;
14743                                 Widget w = NULL;
14744                                 int position = 0;
14745                                 XmListAddItem(w, string, position);
14746                             
14747 ; return 0; }
14748 EOF
14749 if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14750   rm -rf conftest*
14751   
14752                                 libp_link="$libp"
14753                                 libsm_ice_link="$libsm_ice"
14754                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14755                                 libs_found=1
14756                             
14757 else
14758   echo "configure: failed program was:" >&5
14759   cat conftest.$ac_ext >&5
14760   rm -rf conftest*
14761   
14762                         
14763 fi
14764 rm -f conftest*
14765
14766                         LIBS="$save_LIBS"
14767                         CFLAGS=$save_CFLAGS
14768                     fi
14769                 done
14770             fi
14771         done
14772
14773         if test "$libs_found" = "0"; then
14774             echo "$ac_t""can't find the right libraries" 1>&6
14775             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14776         fi
14777
14778         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14779         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14780         TOOLKIT=MOTIF
14781         GUIDIST=MOTIF_DIST
14782     fi
14783
14784     if test "$wxUSE_MAC" = 1; then
14785         if test "$wxUSE_PRECOMP" = "yes"; then
14786             CPPFLAGS="$CPPFLAGS -cpp-precomp"
14787         else
14788             CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14789         fi
14790         CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14791         CFLAGS="$CFLAGS -fpascal-strings"
14792         CXXFLAGS="$CXXFLAGS -fpascal-strings"
14793
14794         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14795         TOOLKIT=MAC
14796                 GUIDIST=MACX_DIST
14797     fi
14798
14799     if test "$wxUSE_PM" = 1; then
14800         TOOLKIT=PM
14801         GUIDIST=GTK_DIST
14802     fi
14803
14804         if test "$TOOLKIT" = "PM" ; then
14805         TOOLKIT_DIR="os2"
14806     else
14807         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14808     fi
14809
14810         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14811
14812     if test "$wxUSE_UNIVERSAL" = "yes"; then
14813         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14814
14815                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14816         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14817
14818         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14819         if test "$wxUSE_X11" = 1; then
14820             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14821         else
14822             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14823         fi
14824         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14825         WIDGET_SET=univ
14826     else
14827         ALL_OBJECTS="\$(GUIOBJS)"
14828         ALL_SOURCES="\$(ALL_SOURCES)"
14829         ALL_HEADERS="\$(ALL_HEADERS)"
14830     fi
14831
14832     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14833
14834     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14835         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14836     fi
14837
14838     if test "$wxUSE_HTML" = "yes"; then
14839         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14840     fi
14841
14842     if test "$wxUSE_LIBJPEG" = "builtin" ; then
14843         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14844     fi
14845     if test "$wxUSE_LIBTIFF" = "builtin" ; then
14846         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14847     fi
14848     if test "$wxUSE_LIBPNG" = "builtin" ; then
14849         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14850     fi
14851
14852         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14853     DISTDIR="wx\$(TOOLKIT)"
14854 else
14855     USE_GUI=0
14856
14857             TOOLKIT_DIR="base"
14858
14859         if test "$USE_WIN32" = 1 ; then
14860         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14861         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14862
14863                         TOOLKIT="MSW"
14864     else
14865         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14866         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14867     fi
14868
14869     ALL_SOURCES="\$(ALL_SOURCES)"
14870     ALL_HEADERS="\$(ALL_HEADERS)"
14871
14872     PORT_FILES="\${top_srcdir}/src/files.lst"
14873
14874         GUIDIST="BASE_DIST"
14875     DISTDIR="wxBase"
14876 fi
14877
14878
14879 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14880     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14881 fi
14882
14883 if test "$wxUSE_REGEX" = "builtin" ; then
14884     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14885 fi
14886 if test "$wxUSE_ZLIB" = "builtin" ; then
14887     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14888 fi
14889
14890
14891 if test "$wxUSE_OPENGL" = "yes"; then
14892     if test "$wxUSE_MAC" = 1; then
14893         OPENGL_LIBS="-framework OpenGL -framework AGL"
14894     elif test "$wxUSE_MSW" = 1; then
14895         OPENGL_LIBS="-lopengl32 -lglu32"
14896     else
14897         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14898 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14899 echo "configure:14900: checking for GL/gl.h" >&5
14900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14901   echo $ac_n "(cached) $ac_c" 1>&6
14902 else
14903   cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 #include <GL/gl.h>
14907 EOF
14908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14909 { (eval echo configure:14910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14911 if test -z "$ac_err"; then
14912   rm -rf conftest*
14913   eval "ac_cv_header_$ac_safe=yes"
14914 else
14915   echo "$ac_err" >&5
14916   echo "configure: failed program was:" >&5
14917   cat conftest.$ac_ext >&5
14918   rm -rf conftest*
14919   eval "ac_cv_header_$ac_safe=no"
14920 fi
14921 rm -f conftest*
14922 fi
14923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14924   echo "$ac_t""yes" 1>&6
14925   
14926                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14927 echo "configure:14928: checking for -lGL" >&5
14928                 
14929 ac_find_libraries=
14930 for ac_dir in $SEARCH_LIB;
14931   do
14932     for ac_extension in a so sl dylib; do
14933       if test -f "$ac_dir/libGL.$ac_extension"; then
14934         ac_find_libraries=$ac_dir
14935         break 2
14936       fi
14937     done
14938   done
14939
14940                 if test "$ac_find_libraries" != "" ; then
14941                     
14942   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14943   result=$?
14944   if test $result = 0; then
14945     ac_path_to_link=""
14946   else
14947     ac_path_to_link=" -L$ac_find_libraries"
14948   fi
14949
14950                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
14951                         LDFLAGS_GL="$LDFLAGS"
14952                     else
14953                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14954                     fi
14955                     OPENGL_LIBS="-lGL -lGLU"
14956                     echo "$ac_t""yes" 1>&6
14957                 else
14958                     echo "$ac_t""no" 1>&6
14959                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14960 echo "configure:14961: checking for -lMesaGL" >&5
14961                     
14962 ac_find_libraries=
14963 for ac_dir in $SEARCH_LIB;
14964   do
14965     for ac_extension in a so sl dylib; do
14966       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14967         ac_find_libraries=$ac_dir
14968         break 2
14969       fi
14970     done
14971   done
14972
14973                     if test "$ac_find_libraries" != "" ; then
14974                         
14975   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14976   result=$?
14977   if test $result = 0; then
14978     ac_path_to_link=""
14979   else
14980     ac_path_to_link=" -L$ac_find_libraries"
14981   fi
14982
14983                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14984                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
14985                         echo "$ac_t""yes" 1>&6
14986                     else
14987                         echo "$ac_t""no" 1>&6
14988                     fi
14989                 fi
14990             
14991 else
14992   echo "$ac_t""no" 1>&6
14993 fi
14994
14995
14996         if test "x$OPENGL_LIBS" = "x"; then
14997                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14998         fi
14999     fi
15000
15001     if test "$wxUSE_OPENGL" = "yes"; then
15002         cat >> confdefs.h <<\EOF
15003 #define wxUSE_OPENGL 1
15004 EOF
15005
15006         cat >> confdefs.h <<\EOF
15007 #define wxUSE_GLCANVAS 1
15008 EOF
15009
15010         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15011     fi
15012 fi
15013
15014 if test -z "$TOOLKIT_VPATH" ; then
15015     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15016 fi
15017
15018 if test -n "$TOOLKIT" ; then
15019     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15020 fi
15021
15022 lib_unicode_suffix=
15023 if test "$wxUSE_UNICODE" = "yes"; then
15024     lib_unicode_suffix=u
15025 fi
15026
15027 lib_debug_suffix=
15028 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15029     lib_debug_suffix=d
15030 fi
15031
15032 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15033 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15034
15035 if test "$cross_compiling" = "yes"; then
15036     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15037     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15038 fi
15039
15040 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15041 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15042
15043 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15044 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15045
15046 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15047 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15048 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15049 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15050
15051 case "${host}" in
15052     *-*-cygwin* | *-*-mingw32* )
15053
15054                         
15055         
15056         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15057             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15058             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15059             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15060             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15061         else
15062             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15063             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15064         fi
15065         ;;
15066
15067     *-*-darwin* )
15068                         if test "$wxUSE_MAC" = 1; then
15069                         WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15070             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15071         fi
15072         ;;
15073 esac
15074
15075 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15076 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15077
15078 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15079 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15080
15081 if test "$wxUSE_OPENGL" = "yes"; then
15082     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15083     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15084 fi
15085
15086
15087
15088 if test "$wxUSE_SHARED" = "yes"; then
15089     case "${host}" in
15090       *-pc-os2_emx | *-pc-os2-emx | \
15091       *-pc-msdosdjgpp )
15092                 wxUSE_SHARED=no
15093         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15094       ;;
15095     esac
15096 fi
15097
15098 if test "$wxUSE_SHARED" = "yes"; then
15099
15100         if test "$wxUSE_OPENGL" = "yes"; then
15101         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15102         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15103     else
15104         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15105         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15106     fi
15107
15108         if test "$GCC" = "yes"; then
15109                 PIC_FLAG="-fPIC"
15110     fi
15111
15112         SHARED_LD="${CXX} -shared -o"
15113
15114     case "${host}" in
15115       *-hp-hpux* )
15116                 if test "$GCC" == "yes"; then
15117             SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15118         else
15119                         LDFLAGS="$LDFLAGS -L/usr/lib"
15120
15121             SHARED_LD="${CXX} -b -o"
15122             PIC_FLAG="+Z"
15123         fi
15124
15125                 if test "$wxUSE_OPENGL" = "yes"; then
15126             WX_ALL_INSTALLED="preinstall_gl"
15127             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15128         else
15129             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15130         fi
15131       ;;
15132
15133       *-*-linux* )
15134         if test "$GCC" != "yes"; then
15135             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15136 echo "configure:15137: checking for Intel compiler" >&5
15137 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15138   echo $ac_n "(cached) $ac_c" 1>&6
15139 else
15140   
15141                 cat > conftest.$ac_ext <<EOF
15142 #line 15143 "configure"
15143 #include "confdefs.h"
15144
15145 int main() {
15146
15147                         #ifndef __INTEL_COMPILER
15148                         #error Not icc
15149                         #endif
15150                     
15151 ; return 0; }
15152 EOF
15153 if { (eval echo configure:15154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15154   rm -rf conftest*
15155   wx_cv_prog_icc=yes
15156 else
15157   echo "configure: failed program was:" >&5
15158   cat conftest.$ac_ext >&5
15159   rm -rf conftest*
15160   wx_cv_prog_icc=no
15161                 
15162 fi
15163 rm -f conftest*
15164             
15165 fi
15166
15167 echo "$ac_t""$wx_cv_prog_icc" 1>&6
15168             if test "$wx_cv_prog_icc" = "yes"; then
15169                 PIC_FLAG="-KPIC"
15170             fi
15171         fi
15172
15173         if test "$wxUSE_SONAME" = "yes" ; then
15174             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15175             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15176                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15177         fi
15178       ;;
15179
15180       *-*-solaris2* )
15181         if test "$GCC" = yes ; then
15182                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15183         else
15184             SHARED_LD="${CXX} -G -o"
15185             PIC_FLAG="-KPIC"
15186             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15187             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15188         fi
15189       ;;
15190
15191       *-*-darwin* )
15192                         CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15193         CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15194                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15195         PIC_FLAG="-dynamic -fPIC"
15196         SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15197         SONAME_FLAGS_GL=${SONAME_FLAGS}
15198       ;;
15199
15200       *-*-aix* )
15201                         # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15202 set dummy makeC++SharedLib; ac_word=$2
15203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15204 echo "configure:15205: checking for $ac_word" >&5
15205 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15206   echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15208   if test -n "$AIX_CXX_LD"; then
15209   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15210 else
15211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15212   ac_dummy="$PATH"
15213   for ac_dir in $ac_dummy; do
15214     test -z "$ac_dir" && ac_dir=.
15215     if test -f $ac_dir/$ac_word; then
15216       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15217       break
15218     fi
15219   done
15220   IFS="$ac_save_ifs"
15221   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15222 fi
15223 fi
15224 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15225 if test -n "$AIX_CXX_LD"; then
15226   echo "$ac_t""$AIX_CXX_LD" 1>&6
15227 else
15228   echo "$ac_t""no" 1>&6
15229 fi
15230
15231
15232         SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15233       ;;
15234
15235       *-*-cygwin* | *-*-mingw32* )
15236
15237         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15238
15239         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15240         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15241
15242         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15243
15244                 if test "$wxUSE_OPENGL" = "yes"; then
15245             WX_ALL_INSTALLED="preinstall_gl"
15246             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15247         else
15248             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15249         fi
15250       ;;
15251
15252       *-*-beos* )
15253                         SHARED_LD="${LD} -shared -o"
15254       ;;
15255
15256       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15257       *-*-sunos4* | \
15258       *-*-irix5* | *-*-irix6* | \
15259       *-*-osf* | \
15260       *-*-dgux5* | \
15261       *-*-sysv5* )
15262               ;;
15263
15264       *)
15265         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15266     esac
15267
15268         if test "x$WX_TARGET_LIBRARY" = "x"; then
15269         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15270         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15271     fi
15272
15273         WX_TARGET_LIBRARY_TYPE="so"
15274     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15275 fi
15276
15277 if test "$wxUSE_SHARED" = "no"; then
15278
15279         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15280                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15281     fi
15282
15283     if test "$wxUSE_MAC" = 1; then
15284         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15285     fi
15286
15287     if test "$wxUSE_OPENGL" = "yes"; then
15288         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15289         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15290     else
15291         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15292     fi
15293
15294     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15295     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15296
15297     WX_TARGET_LIBRARY_TYPE="a"
15298     INSTALL_LIBRARY='$(INSTALL_DATA)'
15299 fi
15300
15301 if test "$wxUSE_MAC" = 1; then
15302         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15303     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15304     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15305     # Extract the first word of "Rez", so it can be a program name with args.
15306 set dummy Rez; ac_word=$2
15307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15308 echo "configure:15309: checking for $ac_word" >&5
15309 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15310   echo $ac_n "(cached) $ac_c" 1>&6
15311 else
15312   if test -n "$RESCOMP"; then
15313   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15314 else
15315   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15316   ac_dummy="$PATH"
15317   for ac_dir in $ac_dummy; do
15318     test -z "$ac_dir" && ac_dir=.
15319     if test -f $ac_dir/$ac_word; then
15320       ac_cv_prog_RESCOMP="Rez"
15321       break
15322     fi
15323   done
15324   IFS="$ac_save_ifs"
15325   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15326 fi
15327 fi
15328 RESCOMP="$ac_cv_prog_RESCOMP"
15329 if test -n "$RESCOMP"; then
15330   echo "$ac_t""$RESCOMP" 1>&6
15331 else
15332   echo "$ac_t""no" 1>&6
15333 fi
15334
15335     # Extract the first word of "DeRez", so it can be a program name with args.
15336 set dummy DeRez; ac_word=$2
15337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15338 echo "configure:15339: checking for $ac_word" >&5
15339 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15340   echo $ac_n "(cached) $ac_c" 1>&6
15341 else
15342   if test -n "$DEREZ"; then
15343   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15344 else
15345   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15346   ac_dummy="$PATH"
15347   for ac_dir in $ac_dummy; do
15348     test -z "$ac_dir" && ac_dir=.
15349     if test -f $ac_dir/$ac_word; then
15350       ac_cv_prog_DEREZ="DeRez"
15351       break
15352     fi
15353   done
15354   IFS="$ac_save_ifs"
15355   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15356 fi
15357 fi
15358 DEREZ="$ac_cv_prog_DEREZ"
15359 if test -n "$DEREZ"; then
15360   echo "$ac_t""$DEREZ" 1>&6
15361 else
15362   echo "$ac_t""no" 1>&6
15363 fi
15364
15365     MACOSX_BUNDLE="bundle"
15366     if test "$wxUSE_SHARED" = "yes"; then
15367                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15368         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15369     else
15370                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15371         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15372     fi
15373 else
15374     if test "$wxUSE_PM" = 1; then
15375         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15376     fi
15377 fi
15378
15379
15380 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15381 echo "configure:15382: checking for ANSI C header files" >&5
15382 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15383   echo $ac_n "(cached) $ac_c" 1>&6
15384 else
15385   cat > conftest.$ac_ext <<EOF
15386 #line 15387 "configure"
15387 #include "confdefs.h"
15388 #include <stdlib.h>
15389 #include <stdarg.h>
15390 #include <string.h>
15391 #include <float.h>
15392 EOF
15393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15394 { (eval echo configure:15395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15396 if test -z "$ac_err"; then
15397   rm -rf conftest*
15398   ac_cv_header_stdc=yes
15399 else
15400   echo "$ac_err" >&5
15401   echo "configure: failed program was:" >&5
15402   cat conftest.$ac_ext >&5
15403   rm -rf conftest*
15404   ac_cv_header_stdc=no
15405 fi
15406 rm -f conftest*
15407
15408 if test $ac_cv_header_stdc = yes; then
15409   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15410 cat > conftest.$ac_ext <<EOF
15411 #line 15412 "configure"
15412 #include "confdefs.h"
15413 #include <string.h>
15414 EOF
15415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15416   egrep "memchr" >/dev/null 2>&1; then
15417   :
15418 else
15419   rm -rf conftest*
15420   ac_cv_header_stdc=no
15421 fi
15422 rm -f conftest*
15423
15424 fi
15425
15426 if test $ac_cv_header_stdc = yes; then
15427   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15428 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 #include <stdlib.h>
15432 EOF
15433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15434   egrep "free" >/dev/null 2>&1; then
15435   :
15436 else
15437   rm -rf conftest*
15438   ac_cv_header_stdc=no
15439 fi
15440 rm -f conftest*
15441
15442 fi
15443
15444 if test $ac_cv_header_stdc = yes; then
15445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15446 if test "$cross_compiling" = yes; then
15447   :
15448 else
15449   cat > conftest.$ac_ext <<EOF
15450 #line 15451 "configure"
15451 #include "confdefs.h"
15452 #include <ctype.h>
15453 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15454 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15456 int main () { int i; for (i = 0; i < 256; i++)
15457 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15458 exit (0); }
15459
15460 EOF
15461 if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15462 then
15463   :
15464 else
15465   echo "configure: failed program was:" >&5
15466   cat conftest.$ac_ext >&5
15467   rm -fr conftest*
15468   ac_cv_header_stdc=no
15469 fi
15470 rm -fr conftest*
15471 fi
15472
15473 fi
15474 fi
15475
15476 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15477 if test $ac_cv_header_stdc = yes; then
15478   cat >> confdefs.h <<\EOF
15479 #define STDC_HEADERS 1
15480 EOF
15481
15482 fi
15483
15484 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15485 echo "configure:15486: checking for mode_t" >&5
15486 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15487   echo $ac_n "(cached) $ac_c" 1>&6
15488 else
15489   cat > conftest.$ac_ext <<EOF
15490 #line 15491 "configure"
15491 #include "confdefs.h"
15492 #include <sys/types.h>
15493 #if STDC_HEADERS
15494 #include <stdlib.h>
15495 #include <stddef.h>
15496 #endif
15497 EOF
15498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15499   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15500   rm -rf conftest*
15501   ac_cv_type_mode_t=yes
15502 else
15503   rm -rf conftest*
15504   ac_cv_type_mode_t=no
15505 fi
15506 rm -f conftest*
15507
15508 fi
15509 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15510 if test $ac_cv_type_mode_t = no; then
15511   cat >> confdefs.h <<\EOF
15512 #define mode_t int
15513 EOF
15514
15515 fi
15516
15517 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15518 echo "configure:15519: checking for off_t" >&5
15519 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15520   echo $ac_n "(cached) $ac_c" 1>&6
15521 else
15522   cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15525 #include <sys/types.h>
15526 #if STDC_HEADERS
15527 #include <stdlib.h>
15528 #include <stddef.h>
15529 #endif
15530 EOF
15531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15532   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15533   rm -rf conftest*
15534   ac_cv_type_off_t=yes
15535 else
15536   rm -rf conftest*
15537   ac_cv_type_off_t=no
15538 fi
15539 rm -f conftest*
15540
15541 fi
15542 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15543 if test $ac_cv_type_off_t = no; then
15544   cat >> confdefs.h <<\EOF
15545 #define off_t long
15546 EOF
15547
15548 fi
15549
15550 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15551 echo "configure:15552: checking for pid_t" >&5
15552 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15553   echo $ac_n "(cached) $ac_c" 1>&6
15554 else
15555   cat > conftest.$ac_ext <<EOF
15556 #line 15557 "configure"
15557 #include "confdefs.h"
15558 #include <sys/types.h>
15559 #if STDC_HEADERS
15560 #include <stdlib.h>
15561 #include <stddef.h>
15562 #endif
15563 EOF
15564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15565   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15566   rm -rf conftest*
15567   ac_cv_type_pid_t=yes
15568 else
15569   rm -rf conftest*
15570   ac_cv_type_pid_t=no
15571 fi
15572 rm -f conftest*
15573
15574 fi
15575 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15576 if test $ac_cv_type_pid_t = no; then
15577   cat >> confdefs.h <<\EOF
15578 #define pid_t int
15579 EOF
15580
15581 fi
15582
15583 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15584 echo "configure:15585: checking for size_t" >&5
15585 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15586   echo $ac_n "(cached) $ac_c" 1>&6
15587 else
15588   cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15591 #include <sys/types.h>
15592 #if STDC_HEADERS
15593 #include <stdlib.h>
15594 #include <stddef.h>
15595 #endif
15596 EOF
15597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15598   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15599   rm -rf conftest*
15600   ac_cv_type_size_t=yes
15601 else
15602   rm -rf conftest*
15603   ac_cv_type_size_t=no
15604 fi
15605 rm -f conftest*
15606
15607 fi
15608 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15609 if test $ac_cv_type_size_t = no; then
15610   cat >> confdefs.h <<\EOF
15611 #define size_t unsigned
15612 EOF
15613
15614 fi
15615
15616 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15617 echo "configure:15618: checking for uid_t in sys/types.h" >&5
15618 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15619   echo $ac_n "(cached) $ac_c" 1>&6
15620 else
15621   cat > conftest.$ac_ext <<EOF
15622 #line 15623 "configure"
15623 #include "confdefs.h"
15624 #include <sys/types.h>
15625 EOF
15626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15627   egrep "uid_t" >/dev/null 2>&1; then
15628   rm -rf conftest*
15629   ac_cv_type_uid_t=yes
15630 else
15631   rm -rf conftest*
15632   ac_cv_type_uid_t=no
15633 fi
15634 rm -f conftest*
15635
15636 fi
15637
15638 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15639 if test $ac_cv_type_uid_t = no; then
15640   cat >> confdefs.h <<\EOF
15641 #define uid_t int
15642 EOF
15643
15644   cat >> confdefs.h <<\EOF
15645 #define gid_t int
15646 EOF
15647
15648 fi
15649
15650
15651
15652 ac_ext=C
15653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15654 ac_cpp='$CXXCPP $CPPFLAGS'
15655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15657 cross_compiling=$ac_cv_prog_cxx_cross
15658
15659 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15660 echo "configure:15661: checking if size_t is unsigned int" >&5
15661 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15662   echo $ac_n "(cached) $ac_c" 1>&6
15663 else
15664                           cat > conftest.$ac_ext <<EOF
15665 #line 15666 "configure"
15666 #include "confdefs.h"
15667 #include <stddef.h>
15668 int main() {
15669
15670             return 0; }
15671
15672             struct Foo { void foo(size_t); void foo(unsigned int); };
15673
15674             int bar() {
15675         
15676 ; return 0; }
15677 EOF
15678 if { (eval echo configure:15679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15679   rm -rf conftest*
15680   wx_cv_size_t_is_uint=no
15681 else
15682   echo "configure: failed program was:" >&5
15683   cat conftest.$ac_ext >&5
15684   rm -rf conftest*
15685   wx_cv_size_t_is_uint=yes
15686     
15687 fi
15688 rm -f conftest*
15689
15690 fi
15691
15692 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15693
15694 if test "$wx_cv_size_t_is_uint" = "yes"; then
15695     cat >> confdefs.h <<\EOF
15696 #define wxSIZE_T_IS_UINT 1
15697 EOF
15698
15699 else
15700     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15701 echo "configure:15702: checking if size_t is unsigned long" >&5
15702 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15703   echo $ac_n "(cached) $ac_c" 1>&6
15704 else
15705   cat > conftest.$ac_ext <<EOF
15706 #line 15707 "configure"
15707 #include "confdefs.h"
15708 #include <stddef.h>
15709 int main() {
15710
15711                 return 0; }
15712
15713                 struct Foo { void foo(size_t); void foo(unsigned long); };
15714
15715                 int bar() {
15716             
15717 ; return 0; }
15718 EOF
15719 if { (eval echo configure:15720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15720   rm -rf conftest*
15721   wx_cv_size_t_is_ulong=no
15722 else
15723   echo "configure: failed program was:" >&5
15724   cat conftest.$ac_ext >&5
15725   rm -rf conftest*
15726   wx_cv_size_t_is_ulong=yes
15727         
15728 fi
15729 rm -f conftest*
15730     
15731 fi
15732
15733 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15734
15735     if test "$wx_cv_size_t_is_ulong" = "yes"; then
15736         cat >> confdefs.h <<\EOF
15737 #define wxSIZE_T_IS_ULONG 1
15738 EOF
15739
15740     fi
15741 fi
15742
15743 ac_ext=c
15744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15745 ac_cpp='$CPP $CPPFLAGS'
15746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15748 cross_compiling=$ac_cv_prog_cc_cross
15749
15750
15751
15752 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15753 echo "configure:15754: checking for pw_gecos in struct passwd" >&5
15754 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15755   echo $ac_n "(cached) $ac_c" 1>&6
15756 else
15757   
15758         cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15761 #include <pwd.h>
15762 int main() {
15763
15764                 char *p;
15765                 struct passwd *pw;
15766                 p = pw->pw_gecos;
15767              
15768 ; return 0; }
15769 EOF
15770 if { (eval echo configure:15771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15771   rm -rf conftest*
15772   
15773                 wx_cv_struct_pw_gecos=yes
15774              
15775 else
15776   echo "configure: failed program was:" >&5
15777   cat conftest.$ac_ext >&5
15778   rm -rf conftest*
15779   
15780                 wx_cv_struct_pw_gecos=no
15781              
15782         
15783 fi
15784 rm -f conftest*
15785     
15786
15787 fi
15788
15789 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15790
15791 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15792     cat >> confdefs.h <<\EOF
15793 #define HAVE_PW_GECOS 1
15794 EOF
15795
15796 fi
15797
15798
15799 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15800     cat >> confdefs.h <<\EOF
15801 #define wxUSE_WCHAR_T 1
15802 EOF
15803
15804
15805         WCSLEN_FOUND=0
15806     WCHAR_LINK=
15807     for ac_func in wcslen
15808 do
15809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15810 echo "configure:15811: checking for $ac_func" >&5
15811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15812   echo $ac_n "(cached) $ac_c" 1>&6
15813 else
15814   cat > conftest.$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15817 /* System header to define __stub macros and hopefully few prototypes,
15818     which can conflict with char $ac_func(); below.  */
15819 #include <assert.h>
15820 /* Override any gcc2 internal prototype to avoid an error.  */
15821 /* We use char because int might match the return type of a gcc2
15822     builtin and then its argument prototype would still apply.  */
15823 char $ac_func();
15824
15825 int main() {
15826
15827 /* The GNU C library defines this for functions which it implements
15828     to always fail with ENOSYS.  Some functions are actually named
15829     something starting with __ and the normal name is an alias.  */
15830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15831 choke me
15832 #else
15833 $ac_func();
15834 #endif
15835
15836 ; return 0; }
15837 EOF
15838 if { (eval echo configure:15839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15839   rm -rf conftest*
15840   eval "ac_cv_func_$ac_func=yes"
15841 else
15842   echo "configure: failed program was:" >&5
15843   cat conftest.$ac_ext >&5
15844   rm -rf conftest*
15845   eval "ac_cv_func_$ac_func=no"
15846 fi
15847 rm -f conftest*
15848 fi
15849
15850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15851   echo "$ac_t""yes" 1>&6
15852     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15853   cat >> confdefs.h <<EOF
15854 #define $ac_tr_func 1
15855 EOF
15856  WCSLEN_FOUND=1
15857 else
15858   echo "$ac_t""no" 1>&6
15859 fi
15860 done
15861
15862
15863     if test "$WCSLEN_FOUND" = 0; then
15864         if test "$TOOLKIT" = "MSW"; then
15865             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15866 echo "configure:15867: checking for wcslen in -lmsvcrt" >&5
15867 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15869   echo $ac_n "(cached) $ac_c" 1>&6
15870 else
15871   ac_save_LIBS="$LIBS"
15872 LIBS="-lmsvcrt  $LIBS"
15873 cat > conftest.$ac_ext <<EOF
15874 #line 15875 "configure"
15875 #include "confdefs.h"
15876 /* Override any gcc2 internal prototype to avoid an error.  */
15877 /* We use char because int might match the return type of a gcc2
15878     builtin and then its argument prototype would still apply.  */
15879 char wcslen();
15880
15881 int main() {
15882 wcslen()
15883 ; return 0; }
15884 EOF
15885 if { (eval echo configure:15886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15886   rm -rf conftest*
15887   eval "ac_cv_lib_$ac_lib_var=yes"
15888 else
15889   echo "configure: failed program was:" >&5
15890   cat conftest.$ac_ext >&5
15891   rm -rf conftest*
15892   eval "ac_cv_lib_$ac_lib_var=no"
15893 fi
15894 rm -f conftest*
15895 LIBS="$ac_save_LIBS"
15896
15897 fi
15898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15899   echo "$ac_t""yes" 1>&6
15900   WCHAR_OK=1
15901 else
15902   echo "$ac_t""no" 1>&6
15903 fi
15904
15905         else
15906             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15907 echo "configure:15908: checking for wcslen in -lw" >&5
15908 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15910   echo $ac_n "(cached) $ac_c" 1>&6
15911 else
15912   ac_save_LIBS="$LIBS"
15913 LIBS="-lw  $LIBS"
15914 cat > conftest.$ac_ext <<EOF
15915 #line 15916 "configure"
15916 #include "confdefs.h"
15917 /* Override any gcc2 internal prototype to avoid an error.  */
15918 /* We use char because int might match the return type of a gcc2
15919     builtin and then its argument prototype would still apply.  */
15920 char wcslen();
15921
15922 int main() {
15923 wcslen()
15924 ; return 0; }
15925 EOF
15926 if { (eval echo configure:15927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15927   rm -rf conftest*
15928   eval "ac_cv_lib_$ac_lib_var=yes"
15929 else
15930   echo "configure: failed program was:" >&5
15931   cat conftest.$ac_ext >&5
15932   rm -rf conftest*
15933   eval "ac_cv_lib_$ac_lib_var=no"
15934 fi
15935 rm -f conftest*
15936 LIBS="$ac_save_LIBS"
15937
15938 fi
15939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15940   echo "$ac_t""yes" 1>&6
15941   
15942                             WCHAR_LINK=" -lw"
15943                             WCSLEN_FOUND=1
15944                         
15945 else
15946   echo "$ac_t""no" 1>&6
15947 fi
15948
15949         fi
15950     fi
15951
15952     if test "$WCSLEN_FOUND" = 1; then
15953         cat >> confdefs.h <<\EOF
15954 #define HAVE_WCSLEN 1
15955 EOF
15956
15957     fi
15958
15959             for ac_func in wcsrtombs
15960 do
15961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15962 echo "configure:15963: checking for $ac_func" >&5
15963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15964   echo $ac_n "(cached) $ac_c" 1>&6
15965 else
15966   cat > conftest.$ac_ext <<EOF
15967 #line 15968 "configure"
15968 #include "confdefs.h"
15969 /* System header to define __stub macros and hopefully few prototypes,
15970     which can conflict with char $ac_func(); below.  */
15971 #include <assert.h>
15972 /* Override any gcc2 internal prototype to avoid an error.  */
15973 /* We use char because int might match the return type of a gcc2
15974     builtin and then its argument prototype would still apply.  */
15975 char $ac_func();
15976
15977 int main() {
15978
15979 /* The GNU C library defines this for functions which it implements
15980     to always fail with ENOSYS.  Some functions are actually named
15981     something starting with __ and the normal name is an alias.  */
15982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15983 choke me
15984 #else
15985 $ac_func();
15986 #endif
15987
15988 ; return 0; }
15989 EOF
15990 if { (eval echo configure:15991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15991   rm -rf conftest*
15992   eval "ac_cv_func_$ac_func=yes"
15993 else
15994   echo "configure: failed program was:" >&5
15995   cat conftest.$ac_ext >&5
15996   rm -rf conftest*
15997   eval "ac_cv_func_$ac_func=no"
15998 fi
15999 rm -f conftest*
16000 fi
16001
16002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16003   echo "$ac_t""yes" 1>&6
16004     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16005   cat >> confdefs.h <<EOF
16006 #define $ac_tr_func 1
16007 EOF
16008  
16009 else
16010   echo "$ac_t""no" 1>&6
16011 fi
16012 done
16013
16014 else
16015     echo "configure: warning: Wide character support is unavailable" 1>&2
16016 fi
16017
16018 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16019 echo "configure:16020: checking for vprintf" >&5
16020 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
16021   echo $ac_n "(cached) $ac_c" 1>&6
16022 else
16023   cat > conftest.$ac_ext <<EOF
16024 #line 16025 "configure"
16025 #include "confdefs.h"
16026 /* System header to define __stub macros and hopefully few prototypes,
16027     which can conflict with char vprintf(); below.  */
16028 #include <assert.h>
16029 /* Override any gcc2 internal prototype to avoid an error.  */
16030 /* We use char because int might match the return type of a gcc2
16031     builtin and then its argument prototype would still apply.  */
16032 char vprintf();
16033
16034 int main() {
16035
16036 /* The GNU C library defines this for functions which it implements
16037     to always fail with ENOSYS.  Some functions are actually named
16038     something starting with __ and the normal name is an alias.  */
16039 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16040 choke me
16041 #else
16042 vprintf();
16043 #endif
16044
16045 ; return 0; }
16046 EOF
16047 if { (eval echo configure:16048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16048   rm -rf conftest*
16049   eval "ac_cv_func_vprintf=yes"
16050 else
16051   echo "configure: failed program was:" >&5
16052   cat conftest.$ac_ext >&5
16053   rm -rf conftest*
16054   eval "ac_cv_func_vprintf=no"
16055 fi
16056 rm -f conftest*
16057 fi
16058
16059 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16060   echo "$ac_t""yes" 1>&6
16061   cat >> confdefs.h <<\EOF
16062 #define HAVE_VPRINTF 1
16063 EOF
16064
16065 else
16066   echo "$ac_t""no" 1>&6
16067 fi
16068
16069 if test "$ac_cv_func_vprintf" != yes; then
16070 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16071 echo "configure:16072: checking for _doprnt" >&5
16072 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
16073   echo $ac_n "(cached) $ac_c" 1>&6
16074 else
16075   cat > conftest.$ac_ext <<EOF
16076 #line 16077 "configure"
16077 #include "confdefs.h"
16078 /* System header to define __stub macros and hopefully few prototypes,
16079     which can conflict with char _doprnt(); below.  */
16080 #include <assert.h>
16081 /* Override any gcc2 internal prototype to avoid an error.  */
16082 /* We use char because int might match the return type of a gcc2
16083     builtin and then its argument prototype would still apply.  */
16084 char _doprnt();
16085
16086 int main() {
16087
16088 /* The GNU C library defines this for functions which it implements
16089     to always fail with ENOSYS.  Some functions are actually named
16090     something starting with __ and the normal name is an alias.  */
16091 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16092 choke me
16093 #else
16094 _doprnt();
16095 #endif
16096
16097 ; return 0; }
16098 EOF
16099 if { (eval echo configure:16100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16100   rm -rf conftest*
16101   eval "ac_cv_func__doprnt=yes"
16102 else
16103   echo "configure: failed program was:" >&5
16104   cat conftest.$ac_ext >&5
16105   rm -rf conftest*
16106   eval "ac_cv_func__doprnt=no"
16107 fi
16108 rm -f conftest*
16109 fi
16110
16111 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16112   echo "$ac_t""yes" 1>&6
16113   cat >> confdefs.h <<\EOF
16114 #define HAVE_DOPRNT 1
16115 EOF
16116
16117 else
16118   echo "$ac_t""no" 1>&6
16119 fi
16120
16121 fi
16122
16123
16124
16125
16126
16127
16128 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
16129 echo "configure:16130: checking for vsnprintf" >&5
16130 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
16131   echo $ac_n "(cached) $ac_c" 1>&6
16132 else
16133   
16134   cat > conftest.$ac_ext <<EOF
16135 #line 16136 "configure"
16136 #include "confdefs.h"
16137
16138                     #include <stdio.h>
16139                     #include <stdarg.h>
16140                  
16141 int main() {
16142
16143                     int wx_test_vsnprintf(const char *, ...);
16144
16145                     wx_test_vsnprintf("%s");
16146                     return 0;
16147                  }
16148
16149                  int wx_test_vsnprintf(const char *fmt, ...)
16150                  {
16151                     char *s;
16152
16153                     va_list argp;
16154                     va_start(argp, fmt);
16155                     vsnprintf(s, 42, fmt, argp);
16156                     va_end(argp);
16157                  
16158 ; return 0; }
16159 EOF
16160 if { (eval echo configure:16161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16161   rm -rf conftest*
16162   
16163                     wx_cv_func_vsnprintf=yes
16164                  
16165 else
16166   echo "configure: failed program was:" >&5
16167   cat conftest.$ac_ext >&5
16168   rm -rf conftest*
16169   
16170                     cat > conftest.$ac_ext <<EOF
16171 #line 16172 "configure"
16172 #include "confdefs.h"
16173
16174                                       #include <stdio.h>
16175                                       #include <stdarg.h>
16176                                    
16177 int main() {
16178
16179                                       int wx_test_vsnprintf(const char *, ...);
16180
16181                                       wx_test_vsnprintf("%s");
16182                                       return 0;
16183                                    }
16184
16185                                    int wx_test_vsnprintf(const char *fmt, ...)
16186                                    {
16187                                       char *s;
16188
16189                                       va_list argp;
16190                                       va_start(argp, fmt);
16191                                       _vsnprintf(s, 42, fmt, argp);
16192                                       va_end(argp);
16193                                    
16194 ; return 0; }
16195 EOF
16196 if { (eval echo configure:16197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16197   rm -rf conftest*
16198   
16199                                       wx_cv_func_vsnprintf=yes
16200                                    
16201 else
16202   echo "configure: failed program was:" >&5
16203   cat conftest.$ac_ext >&5
16204   rm -rf conftest*
16205   
16206                                       wx_cv_func_vsnprintf=no
16207                                    
16208 fi
16209 rm -f conftest*
16210                  
16211 fi
16212 rm -f conftest*
16213
16214 fi
16215
16216 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16217
16218 if test "$wx_cv_func_vsnprintf" = yes; then
16219     cat >> confdefs.h <<\EOF
16220 #define HAVE_VSNPRINTF 1
16221 EOF
16222
16223 else
16224     echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16225 fi
16226
16227 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16228 echo "configure:16229: checking for vsscanf" >&5
16229 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16230   echo $ac_n "(cached) $ac_c" 1>&6
16231 else
16232   
16233   cat > conftest.$ac_ext <<EOF
16234 #line 16235 "configure"
16235 #include "confdefs.h"
16236
16237                     #include <stdio.h>
16238                     #include <stdarg.h>
16239                 
16240 int main() {
16241
16242                     int wx_test_vsscanf(const char *, ...);
16243
16244                     wx_test_vsscanf("%d");
16245                     return 0;
16246                 }
16247
16248                 int wx_test_vsscanf(const char *fmt, ...)
16249                 {
16250                     va_list argp;
16251                     va_start(argp, fmt);
16252                     vsscanf("42", fmt, argp);
16253                     va_end(argp);
16254                 
16255 ; return 0; }
16256 EOF
16257 if { (eval echo configure:16258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16258   rm -rf conftest*
16259   
16260                     wx_cv_func_vsscanf=yes
16261                 
16262 else
16263   echo "configure: failed program was:" >&5
16264   cat conftest.$ac_ext >&5
16265   rm -rf conftest*
16266   
16267                     wx_cv_func_vsscanf=no
16268                 
16269 fi
16270 rm -f conftest*
16271
16272 fi
16273
16274 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16275
16276 if test "$wx_cv_func_vsscanf" = yes; then
16277     cat >> confdefs.h <<\EOF
16278 #define HAVE_VSSCANF 1
16279 EOF
16280
16281 fi
16282
16283 if test "$wxUSE_UNICODE" = yes; then
16284         for ac_func in fputwc wprintf
16285 do
16286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16287 echo "configure:16288: checking for $ac_func" >&5
16288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16289   echo $ac_n "(cached) $ac_c" 1>&6
16290 else
16291   cat > conftest.$ac_ext <<EOF
16292 #line 16293 "configure"
16293 #include "confdefs.h"
16294 /* System header to define __stub macros and hopefully few prototypes,
16295     which can conflict with char $ac_func(); below.  */
16296 #include <assert.h>
16297 /* Override any gcc2 internal prototype to avoid an error.  */
16298 /* We use char because int might match the return type of a gcc2
16299     builtin and then its argument prototype would still apply.  */
16300 char $ac_func();
16301
16302 int main() {
16303
16304 /* The GNU C library defines this for functions which it implements
16305     to always fail with ENOSYS.  Some functions are actually named
16306     something starting with __ and the normal name is an alias.  */
16307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16308 choke me
16309 #else
16310 $ac_func();
16311 #endif
16312
16313 ; return 0; }
16314 EOF
16315 if { (eval echo configure:16316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16316   rm -rf conftest*
16317   eval "ac_cv_func_$ac_func=yes"
16318 else
16319   echo "configure: failed program was:" >&5
16320   cat conftest.$ac_ext >&5
16321   rm -rf conftest*
16322   eval "ac_cv_func_$ac_func=no"
16323 fi
16324 rm -f conftest*
16325 fi
16326
16327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16328   echo "$ac_t""yes" 1>&6
16329     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16330   cat >> confdefs.h <<EOF
16331 #define $ac_tr_func 1
16332 EOF
16333  
16334 else
16335   echo "$ac_t""no" 1>&6
16336 fi
16337 done
16338
16339 fi
16340
16341 if test "$TOOLKIT" != "MSW"; then
16342
16343
16344
16345 ac_ext=C
16346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16347 ac_cpp='$CXXCPP $CPPFLAGS'
16348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16350 cross_compiling=$ac_cv_prog_cxx_cross
16351
16352
16353     
16354   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16355 if test "${with_libiconv_prefix+set}" = set; then
16356   withval="$with_libiconv_prefix"
16357   
16358     for dir in `echo "$withval" | tr : ' '`; do
16359       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16360       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16361     done
16362    
16363 fi
16364
16365
16366   echo $ac_n "checking for iconv""... $ac_c" 1>&6
16367 echo "configure:16368: checking for iconv" >&5
16368 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16369   echo $ac_n "(cached) $ac_c" 1>&6
16370 else
16371   
16372     am_cv_func_iconv="no, consider installing GNU libiconv"
16373     am_cv_lib_iconv=no
16374     cat > conftest.$ac_ext <<EOF
16375 #line 16376 "configure"
16376 #include "confdefs.h"
16377 #include <stdlib.h>
16378 #include <iconv.h>
16379 int main() {
16380 iconv_t cd = iconv_open("","");
16381        iconv(cd,NULL,NULL,NULL,NULL);
16382        iconv_close(cd);
16383 ; return 0; }
16384 EOF
16385 if { (eval echo configure:16386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16386   rm -rf conftest*
16387   am_cv_func_iconv=yes
16388 else
16389   echo "configure: failed program was:" >&5
16390   cat conftest.$ac_ext >&5
16391 fi
16392 rm -f conftest*
16393     if test "$am_cv_func_iconv" != yes; then
16394       am_save_LIBS="$LIBS"
16395       LIBS="$LIBS -liconv"
16396       cat > conftest.$ac_ext <<EOF
16397 #line 16398 "configure"
16398 #include "confdefs.h"
16399 #include <stdlib.h>
16400 #include <iconv.h>
16401 int main() {
16402 iconv_t cd = iconv_open("","");
16403          iconv(cd,NULL,NULL,NULL,NULL);
16404          iconv_close(cd);
16405 ; return 0; }
16406 EOF
16407 if { (eval echo configure:16408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16408   rm -rf conftest*
16409   am_cv_lib_iconv=yes
16410         am_cv_func_iconv=yes
16411 else
16412   echo "configure: failed program was:" >&5
16413   cat conftest.$ac_ext >&5
16414 fi
16415 rm -f conftest*
16416       LIBS="$am_save_LIBS"
16417     fi
16418   
16419 fi
16420
16421 echo "$ac_t""$am_cv_func_iconv" 1>&6
16422   if test "$am_cv_func_iconv" = yes; then
16423     cat >> confdefs.h <<\EOF
16424 #define HAVE_ICONV 1
16425 EOF
16426
16427     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16428 echo "configure:16429: checking if iconv needs const" >&5
16429 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16430   echo $ac_n "(cached) $ac_c" 1>&6
16431 else
16432   cat > conftest.$ac_ext <<EOF
16433 #line 16434 "configure"
16434 #include "confdefs.h"
16435
16436 #include <stdlib.h>
16437 #include <iconv.h>
16438 extern
16439 #ifdef __cplusplus
16440 "C"
16441 #endif
16442 #if defined(__STDC__) || defined(__cplusplus)
16443 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16444 #else
16445 size_t iconv();
16446 #endif
16447         
16448 int main() {
16449
16450 ; return 0; }
16451 EOF
16452 if { (eval echo configure:16453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16453   rm -rf conftest*
16454   wx_cv_func_iconv_const="no"
16455 else
16456   echo "configure: failed program was:" >&5
16457   cat conftest.$ac_ext >&5
16458   rm -rf conftest*
16459   wx_cv_func_iconv_const="yes"
16460       
16461 fi
16462 rm -f conftest*
16463     
16464 fi
16465
16466 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16467
16468     iconv_const=
16469     if test "x$wx_cv_func_iconv_const" = "xyes"; then
16470         iconv_const="const"
16471     fi
16472
16473     cat >> confdefs.h <<EOF
16474 #define ICONV_CONST $iconv_const
16475 EOF
16476
16477   fi
16478   LIBICONV=
16479   if test "$am_cv_lib_iconv" = yes; then
16480     LIBICONV="-liconv"
16481   fi
16482   
16483
16484 LIBS="$LIBICONV $LIBS"
16485 ac_ext=c
16486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16487 ac_cpp='$CPP $CPPFLAGS'
16488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16490 cross_compiling=$ac_cv_prog_cc_cross
16491
16492
16493 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16494     for ac_func in sigaction
16495 do
16496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16497 echo "configure:16498: checking for $ac_func" >&5
16498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
16505     which can conflict with char $ac_func(); below.  */
16506 #include <assert.h>
16507 /* Override any gcc2 internal prototype to avoid an error.  */
16508 /* We use char because int might match the return type of a gcc2
16509     builtin and then its argument prototype would still apply.  */
16510 char $ac_func();
16511
16512 int main() {
16513
16514 /* The GNU C library defines this for functions which it implements
16515     to always fail with ENOSYS.  Some functions are actually named
16516     something starting with __ and the normal name is an alias.  */
16517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16518 choke me
16519 #else
16520 $ac_func();
16521 #endif
16522
16523 ; return 0; }
16524 EOF
16525 if { (eval echo configure:16526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16526   rm -rf conftest*
16527   eval "ac_cv_func_$ac_func=yes"
16528 else
16529   echo "configure: failed program was:" >&5
16530   cat conftest.$ac_ext >&5
16531   rm -rf conftest*
16532   eval "ac_cv_func_$ac_func=no"
16533 fi
16534 rm -f conftest*
16535 fi
16536
16537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16538   echo "$ac_t""yes" 1>&6
16539     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16540   cat >> confdefs.h <<EOF
16541 #define $ac_tr_func 1
16542 EOF
16543  
16544 else
16545   echo "$ac_t""no" 1>&6
16546 fi
16547 done
16548
16549
16550     if test "$ac_cv_func_sigaction" = "no"; then
16551         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16552         wxUSE_ON_FATAL_EXCEPTION=no
16553     fi
16554
16555     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16556       
16557       ac_ext=C
16558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16559 ac_cpp='$CXXCPP $CPPFLAGS'
16560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16562 cross_compiling=$ac_cv_prog_cxx_cross
16563
16564
16565       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16566 echo "configure:16567: checking for sa_handler type" >&5
16567 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16568   echo $ac_n "(cached) $ac_c" 1>&6
16569 else
16570   
16571         cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 #include <signal.h>
16575 int main() {
16576
16577                         extern void testSigHandler(int);
16578
16579                         struct sigaction sa;
16580                         sa.sa_handler = testSigHandler;
16581                      
16582 ; return 0; }
16583 EOF
16584 if { (eval echo configure:16585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16585   rm -rf conftest*
16586   
16587                         wx_cv_type_sa_handler=int
16588                      
16589 else
16590   echo "configure: failed program was:" >&5
16591   cat conftest.$ac_ext >&5
16592   rm -rf conftest*
16593   
16594                         wx_cv_type_sa_handler=void
16595                      
16596 fi
16597 rm -f conftest*
16598       
16599 fi
16600
16601 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16602
16603       ac_ext=c
16604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16605 ac_cpp='$CPP $CPPFLAGS'
16606 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16607 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16608 cross_compiling=$ac_cv_prog_cc_cross
16609
16610
16611       cat >> confdefs.h <<EOF
16612 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16613 EOF
16614
16615     fi
16616 fi
16617
16618 for ac_func in vfork
16619 do
16620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16621 echo "configure:16622: checking for $ac_func" >&5
16622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16623   echo $ac_n "(cached) $ac_c" 1>&6
16624 else
16625   cat > conftest.$ac_ext <<EOF
16626 #line 16627 "configure"
16627 #include "confdefs.h"
16628 /* System header to define __stub macros and hopefully few prototypes,
16629     which can conflict with char $ac_func(); below.  */
16630 #include <assert.h>
16631 /* Override any gcc2 internal prototype to avoid an error.  */
16632 /* We use char because int might match the return type of a gcc2
16633     builtin and then its argument prototype would still apply.  */
16634 char $ac_func();
16635
16636 int main() {
16637
16638 /* The GNU C library defines this for functions which it implements
16639     to always fail with ENOSYS.  Some functions are actually named
16640     something starting with __ and the normal name is an alias.  */
16641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16642 choke me
16643 #else
16644 $ac_func();
16645 #endif
16646
16647 ; return 0; }
16648 EOF
16649 if { (eval echo configure:16650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16650   rm -rf conftest*
16651   eval "ac_cv_func_$ac_func=yes"
16652 else
16653   echo "configure: failed program was:" >&5
16654   cat conftest.$ac_ext >&5
16655   rm -rf conftest*
16656   eval "ac_cv_func_$ac_func=no"
16657 fi
16658 rm -f conftest*
16659 fi
16660
16661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16662   echo "$ac_t""yes" 1>&6
16663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16664   cat >> confdefs.h <<EOF
16665 #define $ac_tr_func 1
16666 EOF
16667  
16668 else
16669   echo "$ac_t""no" 1>&6
16670 fi
16671 done
16672
16673
16674 for ac_func in mkstemp mktemp
16675 do
16676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16677 echo "configure:16678: checking for $ac_func" >&5
16678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16679   echo $ac_n "(cached) $ac_c" 1>&6
16680 else
16681   cat > conftest.$ac_ext <<EOF
16682 #line 16683 "configure"
16683 #include "confdefs.h"
16684 /* System header to define __stub macros and hopefully few prototypes,
16685     which can conflict with char $ac_func(); below.  */
16686 #include <assert.h>
16687 /* Override any gcc2 internal prototype to avoid an error.  */
16688 /* We use char because int might match the return type of a gcc2
16689     builtin and then its argument prototype would still apply.  */
16690 char $ac_func();
16691
16692 int main() {
16693
16694 /* The GNU C library defines this for functions which it implements
16695     to always fail with ENOSYS.  Some functions are actually named
16696     something starting with __ and the normal name is an alias.  */
16697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16698 choke me
16699 #else
16700 $ac_func();
16701 #endif
16702
16703 ; return 0; }
16704 EOF
16705 if { (eval echo configure:16706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16706   rm -rf conftest*
16707   eval "ac_cv_func_$ac_func=yes"
16708 else
16709   echo "configure: failed program was:" >&5
16710   cat conftest.$ac_ext >&5
16711   rm -rf conftest*
16712   eval "ac_cv_func_$ac_func=no"
16713 fi
16714 rm -f conftest*
16715 fi
16716
16717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16718   echo "$ac_t""yes" 1>&6
16719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16720   cat >> confdefs.h <<EOF
16721 #define $ac_tr_func 1
16722 EOF
16723  break
16724 else
16725   echo "$ac_t""no" 1>&6
16726 fi
16727 done
16728
16729
16730 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16731 echo "configure:16732: checking for statfs" >&5
16732 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16733   echo $ac_n "(cached) $ac_c" 1>&6
16734 else
16735   cat > conftest.$ac_ext <<EOF
16736 #line 16737 "configure"
16737 #include "confdefs.h"
16738
16739              #if defined(__BSD__)
16740                #include <sys/param.h>
16741                #include <sys/mount.h>
16742              #else
16743                #include <sys/vfs.h>
16744              #endif
16745         
16746 int main() {
16747
16748              long l;
16749              struct statfs fs;
16750              statfs("/", &fs);
16751              l = fs.f_bsize;
16752              l += fs.f_blocks;
16753              l += fs.f_bavail;
16754         
16755 ; return 0; }
16756 EOF
16757 if { (eval echo configure:16758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16758   rm -rf conftest*
16759   
16760              wx_cv_func_statfs=yes
16761         
16762 else
16763   echo "configure: failed program was:" >&5
16764   cat conftest.$ac_ext >&5
16765   rm -rf conftest*
16766   
16767              wx_cv_func_statfs=no
16768         
16769     
16770 fi
16771 rm -f conftest*
16772
16773 fi
16774
16775 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16776
16777 if test "$wx_cv_func_statfs" = "yes"; then
16778     cat >> confdefs.h <<\EOF
16779 #define HAVE_STATFS 1
16780 EOF
16781
16782 else
16783     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16784 echo "configure:16785: checking for statvfs" >&5
16785 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16786   echo $ac_n "(cached) $ac_c" 1>&6
16787 else
16788   cat > conftest.$ac_ext <<EOF
16789 #line 16790 "configure"
16790 #include "confdefs.h"
16791
16792                  #include <sys/statvfs.h>
16793             
16794 int main() {
16795
16796                  long l;
16797                  struct statvfs fs;
16798                  statvfs("/", &fs);
16799                  l = fs.f_bsize;
16800                  l += fs.f_blocks;
16801                  l += fs.f_bavail;
16802             
16803 ; return 0; }
16804 EOF
16805 if { (eval echo configure:16806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16806   rm -rf conftest*
16807   
16808                  wx_cv_func_statvfs=yes
16809             
16810 else
16811   echo "configure: failed program was:" >&5
16812   cat conftest.$ac_ext >&5
16813   rm -rf conftest*
16814   
16815                  wx_cv_func_statvfs=no
16816             
16817         
16818 fi
16819 rm -f conftest*
16820     
16821 fi
16822
16823 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16824
16825     if test "$wx_cv_func_statvfs" = "yes"; then
16826         cat >> confdefs.h <<\EOF
16827 #define HAVE_STATVFS 1
16828 EOF
16829
16830     else
16831         echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16832     fi
16833 fi
16834
16835 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16836     for ac_func in fcntl flock
16837 do
16838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16839 echo "configure:16840: checking for $ac_func" >&5
16840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16841   echo $ac_n "(cached) $ac_c" 1>&6
16842 else
16843   cat > conftest.$ac_ext <<EOF
16844 #line 16845 "configure"
16845 #include "confdefs.h"
16846 /* System header to define __stub macros and hopefully few prototypes,
16847     which can conflict with char $ac_func(); below.  */
16848 #include <assert.h>
16849 /* Override any gcc2 internal prototype to avoid an error.  */
16850 /* We use char because int might match the return type of a gcc2
16851     builtin and then its argument prototype would still apply.  */
16852 char $ac_func();
16853
16854 int main() {
16855
16856 /* The GNU C library defines this for functions which it implements
16857     to always fail with ENOSYS.  Some functions are actually named
16858     something starting with __ and the normal name is an alias.  */
16859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16860 choke me
16861 #else
16862 $ac_func();
16863 #endif
16864
16865 ; return 0; }
16866 EOF
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16868   rm -rf conftest*
16869   eval "ac_cv_func_$ac_func=yes"
16870 else
16871   echo "configure: failed program was:" >&5
16872   cat conftest.$ac_ext >&5
16873   rm -rf conftest*
16874   eval "ac_cv_func_$ac_func=no"
16875 fi
16876 rm -f conftest*
16877 fi
16878
16879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16880   echo "$ac_t""yes" 1>&6
16881     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16882   cat >> confdefs.h <<EOF
16883 #define $ac_tr_func 1
16884 EOF
16885  break
16886 else
16887   echo "$ac_t""no" 1>&6
16888 fi
16889 done
16890
16891
16892     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16893         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16894         wxUSE_SNGLINST_CHECKER=no
16895     fi
16896 fi
16897
16898 for ac_func in timegm
16899 do
16900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16901 echo "configure:16902: checking for $ac_func" >&5
16902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16903   echo $ac_n "(cached) $ac_c" 1>&6
16904 else
16905   cat > conftest.$ac_ext <<EOF
16906 #line 16907 "configure"
16907 #include "confdefs.h"
16908 /* System header to define __stub macros and hopefully few prototypes,
16909     which can conflict with char $ac_func(); below.  */
16910 #include <assert.h>
16911 /* Override any gcc2 internal prototype to avoid an error.  */
16912 /* We use char because int might match the return type of a gcc2
16913     builtin and then its argument prototype would still apply.  */
16914 char $ac_func();
16915
16916 int main() {
16917
16918 /* The GNU C library defines this for functions which it implements
16919     to always fail with ENOSYS.  Some functions are actually named
16920     something starting with __ and the normal name is an alias.  */
16921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16922 choke me
16923 #else
16924 $ac_func();
16925 #endif
16926
16927 ; return 0; }
16928 EOF
16929 if { (eval echo configure:16930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16930   rm -rf conftest*
16931   eval "ac_cv_func_$ac_func=yes"
16932 else
16933   echo "configure: failed program was:" >&5
16934   cat conftest.$ac_ext >&5
16935   rm -rf conftest*
16936   eval "ac_cv_func_$ac_func=no"
16937 fi
16938 rm -f conftest*
16939 fi
16940
16941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16942   echo "$ac_t""yes" 1>&6
16943     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16944   cat >> confdefs.h <<EOF
16945 #define $ac_tr_func 1
16946 EOF
16947  
16948 else
16949   echo "$ac_t""no" 1>&6
16950 fi
16951 done
16952
16953
16954 for ac_func in putenv setenv
16955 do
16956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16957 echo "configure:16958: checking for $ac_func" >&5
16958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16959   echo $ac_n "(cached) $ac_c" 1>&6
16960 else
16961   cat > conftest.$ac_ext <<EOF
16962 #line 16963 "configure"
16963 #include "confdefs.h"
16964 /* System header to define __stub macros and hopefully few prototypes,
16965     which can conflict with char $ac_func(); below.  */
16966 #include <assert.h>
16967 /* Override any gcc2 internal prototype to avoid an error.  */
16968 /* We use char because int might match the return type of a gcc2
16969     builtin and then its argument prototype would still apply.  */
16970 char $ac_func();
16971
16972 int main() {
16973
16974 /* The GNU C library defines this for functions which it implements
16975     to always fail with ENOSYS.  Some functions are actually named
16976     something starting with __ and the normal name is an alias.  */
16977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16978 choke me
16979 #else
16980 $ac_func();
16981 #endif
16982
16983 ; return 0; }
16984 EOF
16985 if { (eval echo configure:16986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16986   rm -rf conftest*
16987   eval "ac_cv_func_$ac_func=yes"
16988 else
16989   echo "configure: failed program was:" >&5
16990   cat conftest.$ac_ext >&5
16991   rm -rf conftest*
16992   eval "ac_cv_func_$ac_func=no"
16993 fi
16994 rm -f conftest*
16995 fi
16996
16997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16998   echo "$ac_t""yes" 1>&6
16999     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17000   cat >> confdefs.h <<EOF
17001 #define $ac_tr_func 1
17002 EOF
17003  break
17004 else
17005   echo "$ac_t""no" 1>&6
17006 fi
17007 done
17008
17009
17010 HAVE_SOME_SLEEP_FUNC=0
17011 if test "$USE_BEOS" = 1; then
17012             cat >> confdefs.h <<\EOF
17013 #define HAVE_SLEEP 1
17014 EOF
17015
17016     HAVE_SOME_SLEEP_FUNC=1
17017 fi
17018
17019 if test "$USE_DARWIN" = 1; then
17020             cat >> confdefs.h <<\EOF
17021 #define HAVE_USLEEP 1
17022 EOF
17023
17024     HAVE_SOME_SLEEP_FUNC=1
17025 fi
17026
17027 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17028         POSIX4_LINK=
17029     for ac_func in nanosleep
17030 do
17031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17032 echo "configure:17033: checking for $ac_func" >&5
17033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17034   echo $ac_n "(cached) $ac_c" 1>&6
17035 else
17036   cat > conftest.$ac_ext <<EOF
17037 #line 17038 "configure"
17038 #include "confdefs.h"
17039 /* System header to define __stub macros and hopefully few prototypes,
17040     which can conflict with char $ac_func(); below.  */
17041 #include <assert.h>
17042 /* Override any gcc2 internal prototype to avoid an error.  */
17043 /* We use char because int might match the return type of a gcc2
17044     builtin and then its argument prototype would still apply.  */
17045 char $ac_func();
17046
17047 int main() {
17048
17049 /* The GNU C library defines this for functions which it implements
17050     to always fail with ENOSYS.  Some functions are actually named
17051     something starting with __ and the normal name is an alias.  */
17052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17053 choke me
17054 #else
17055 $ac_func();
17056 #endif
17057
17058 ; return 0; }
17059 EOF
17060 if { (eval echo configure:17061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17061   rm -rf conftest*
17062   eval "ac_cv_func_$ac_func=yes"
17063 else
17064   echo "configure: failed program was:" >&5
17065   cat conftest.$ac_ext >&5
17066   rm -rf conftest*
17067   eval "ac_cv_func_$ac_func=no"
17068 fi
17069 rm -f conftest*
17070 fi
17071
17072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17073   echo "$ac_t""yes" 1>&6
17074     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17075   cat >> confdefs.h <<EOF
17076 #define $ac_tr_func 1
17077 EOF
17078  cat >> confdefs.h <<\EOF
17079 #define HAVE_NANOSLEEP 1
17080 EOF
17081
17082 else
17083   echo "$ac_t""no" 1>&6
17084 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17085 echo "configure:17086: checking for nanosleep in -lposix4" >&5
17086 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17088   echo $ac_n "(cached) $ac_c" 1>&6
17089 else
17090   ac_save_LIBS="$LIBS"
17091 LIBS="-lposix4  $LIBS"
17092 cat > conftest.$ac_ext <<EOF
17093 #line 17094 "configure"
17094 #include "confdefs.h"
17095 /* Override any gcc2 internal prototype to avoid an error.  */
17096 /* We use char because int might match the return type of a gcc2
17097     builtin and then its argument prototype would still apply.  */
17098 char nanosleep();
17099
17100 int main() {
17101 nanosleep()
17102 ; return 0; }
17103 EOF
17104 if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17105   rm -rf conftest*
17106   eval "ac_cv_lib_$ac_lib_var=yes"
17107 else
17108   echo "configure: failed program was:" >&5
17109   cat conftest.$ac_ext >&5
17110   rm -rf conftest*
17111   eval "ac_cv_lib_$ac_lib_var=no"
17112 fi
17113 rm -f conftest*
17114 LIBS="$ac_save_LIBS"
17115
17116 fi
17117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17118   echo "$ac_t""yes" 1>&6
17119   
17120                     cat >> confdefs.h <<\EOF
17121 #define HAVE_NANOSLEEP 1
17122 EOF
17123
17124                     POSIX4_LINK=" -lposix4"
17125                 
17126 else
17127   echo "$ac_t""no" 1>&6
17128
17129                     for ac_func in usleep
17130 do
17131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17132 echo "configure:17133: checking for $ac_func" >&5
17133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17134   echo $ac_n "(cached) $ac_c" 1>&6
17135 else
17136   cat > conftest.$ac_ext <<EOF
17137 #line 17138 "configure"
17138 #include "confdefs.h"
17139 /* System header to define __stub macros and hopefully few prototypes,
17140     which can conflict with char $ac_func(); below.  */
17141 #include <assert.h>
17142 /* Override any gcc2 internal prototype to avoid an error.  */
17143 /* We use char because int might match the return type of a gcc2
17144     builtin and then its argument prototype would still apply.  */
17145 char $ac_func();
17146
17147 int main() {
17148
17149 /* The GNU C library defines this for functions which it implements
17150     to always fail with ENOSYS.  Some functions are actually named
17151     something starting with __ and the normal name is an alias.  */
17152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153 choke me
17154 #else
17155 $ac_func();
17156 #endif
17157
17158 ; return 0; }
17159 EOF
17160 if { (eval echo configure:17161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17161   rm -rf conftest*
17162   eval "ac_cv_func_$ac_func=yes"
17163 else
17164   echo "configure: failed program was:" >&5
17165   cat conftest.$ac_ext >&5
17166   rm -rf conftest*
17167   eval "ac_cv_func_$ac_func=no"
17168 fi
17169 rm -f conftest*
17170 fi
17171
17172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17173   echo "$ac_t""yes" 1>&6
17174     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17175   cat >> confdefs.h <<EOF
17176 #define $ac_tr_func 1
17177 EOF
17178  cat >> confdefs.h <<\EOF
17179 #define HAVE_USLEEP 1
17180 EOF
17181
17182 else
17183   echo "$ac_t""no" 1>&6
17184 echo "configure: warning: wxSleep() function will not work" 1>&2
17185                     
17186 fi
17187 done
17188
17189                 
17190             
17191 fi
17192
17193         
17194     
17195 fi
17196 done
17197
17198 fi
17199
17200 for ac_func in uname gethostname
17201 do
17202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17203 echo "configure:17204: checking for $ac_func" >&5
17204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17205   echo $ac_n "(cached) $ac_c" 1>&6
17206 else
17207   cat > conftest.$ac_ext <<EOF
17208 #line 17209 "configure"
17209 #include "confdefs.h"
17210 /* System header to define __stub macros and hopefully few prototypes,
17211     which can conflict with char $ac_func(); below.  */
17212 #include <assert.h>
17213 /* Override any gcc2 internal prototype to avoid an error.  */
17214 /* We use char because int might match the return type of a gcc2
17215     builtin and then its argument prototype would still apply.  */
17216 char $ac_func();
17217
17218 int main() {
17219
17220 /* The GNU C library defines this for functions which it implements
17221     to always fail with ENOSYS.  Some functions are actually named
17222     something starting with __ and the normal name is an alias.  */
17223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17224 choke me
17225 #else
17226 $ac_func();
17227 #endif
17228
17229 ; return 0; }
17230 EOF
17231 if { (eval echo configure:17232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17232   rm -rf conftest*
17233   eval "ac_cv_func_$ac_func=yes"
17234 else
17235   echo "configure: failed program was:" >&5
17236   cat conftest.$ac_ext >&5
17237   rm -rf conftest*
17238   eval "ac_cv_func_$ac_func=no"
17239 fi
17240 rm -f conftest*
17241 fi
17242
17243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17244   echo "$ac_t""yes" 1>&6
17245     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17246   cat >> confdefs.h <<EOF
17247 #define $ac_tr_func 1
17248 EOF
17249  break
17250 else
17251   echo "$ac_t""no" 1>&6
17252 fi
17253 done
17254
17255
17256
17257 ac_ext=C
17258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17259 ac_cpp='$CXXCPP $CPPFLAGS'
17260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17262 cross_compiling=$ac_cv_prog_cxx_cross
17263
17264
17265 for ac_func in strtok_r
17266 do
17267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17268 echo "configure:17269: checking for $ac_func" >&5
17269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17270   echo $ac_n "(cached) $ac_c" 1>&6
17271 else
17272   cat > conftest.$ac_ext <<EOF
17273 #line 17274 "configure"
17274 #include "confdefs.h"
17275 /* System header to define __stub macros and hopefully few prototypes,
17276     which can conflict with char $ac_func(); below.  */
17277 #include <assert.h>
17278 /* Override any gcc2 internal prototype to avoid an error.  */
17279 #ifdef __cplusplus
17280 extern "C"
17281 #endif
17282 /* We use char because int might match the return type of a gcc2
17283     builtin and then its argument prototype would still apply.  */
17284 char $ac_func();
17285
17286 int main() {
17287
17288 /* The GNU C library defines this for functions which it implements
17289     to always fail with ENOSYS.  Some functions are actually named
17290     something starting with __ and the normal name is an alias.  */
17291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17292 choke me
17293 #else
17294 $ac_func();
17295 #endif
17296
17297 ; return 0; }
17298 EOF
17299 if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17300   rm -rf conftest*
17301   eval "ac_cv_func_$ac_func=yes"
17302 else
17303   echo "configure: failed program was:" >&5
17304   cat conftest.$ac_ext >&5
17305   rm -rf conftest*
17306   eval "ac_cv_func_$ac_func=no"
17307 fi
17308 rm -f conftest*
17309 fi
17310
17311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17312   echo "$ac_t""yes" 1>&6
17313     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17314   cat >> confdefs.h <<EOF
17315 #define $ac_tr_func 1
17316 EOF
17317  
17318 else
17319   echo "$ac_t""no" 1>&6
17320 fi
17321 done
17322
17323
17324 ac_ext=c
17325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17326 ac_cpp='$CPP $CPPFLAGS'
17327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17329 cross_compiling=$ac_cv_prog_cc_cross
17330
17331
17332 INET_LINK=
17333 for ac_func in inet_addr
17334 do
17335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17336 echo "configure:17337: checking for $ac_func" >&5
17337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17338   echo $ac_n "(cached) $ac_c" 1>&6
17339 else
17340   cat > conftest.$ac_ext <<EOF
17341 #line 17342 "configure"
17342 #include "confdefs.h"
17343 /* System header to define __stub macros and hopefully few prototypes,
17344     which can conflict with char $ac_func(); below.  */
17345 #include <assert.h>
17346 /* Override any gcc2 internal prototype to avoid an error.  */
17347 /* We use char because int might match the return type of a gcc2
17348     builtin and then its argument prototype would still apply.  */
17349 char $ac_func();
17350
17351 int main() {
17352
17353 /* The GNU C library defines this for functions which it implements
17354     to always fail with ENOSYS.  Some functions are actually named
17355     something starting with __ and the normal name is an alias.  */
17356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17357 choke me
17358 #else
17359 $ac_func();
17360 #endif
17361
17362 ; return 0; }
17363 EOF
17364 if { (eval echo configure:17365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17365   rm -rf conftest*
17366   eval "ac_cv_func_$ac_func=yes"
17367 else
17368   echo "configure: failed program was:" >&5
17369   cat conftest.$ac_ext >&5
17370   rm -rf conftest*
17371   eval "ac_cv_func_$ac_func=no"
17372 fi
17373 rm -f conftest*
17374 fi
17375
17376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17377   echo "$ac_t""yes" 1>&6
17378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17379   cat >> confdefs.h <<EOF
17380 #define $ac_tr_func 1
17381 EOF
17382  cat >> confdefs.h <<\EOF
17383 #define HAVE_INET_ADDR 1
17384 EOF
17385
17386 else
17387   echo "$ac_t""no" 1>&6
17388 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17389 echo "configure:17390: checking for inet_addr in -lnsl" >&5
17390 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17392   echo $ac_n "(cached) $ac_c" 1>&6
17393 else
17394   ac_save_LIBS="$LIBS"
17395 LIBS="-lnsl  $LIBS"
17396 cat > conftest.$ac_ext <<EOF
17397 #line 17398 "configure"
17398 #include "confdefs.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 inet_addr();
17403
17404 int main() {
17405 inet_addr()
17406 ; return 0; }
17407 EOF
17408 if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17409   rm -rf conftest*
17410   eval "ac_cv_lib_$ac_lib_var=yes"
17411 else
17412   echo "configure: failed program was:" >&5
17413   cat conftest.$ac_ext >&5
17414   rm -rf conftest*
17415   eval "ac_cv_lib_$ac_lib_var=no"
17416 fi
17417 rm -f conftest*
17418 LIBS="$ac_save_LIBS"
17419
17420 fi
17421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17422   echo "$ac_t""yes" 1>&6
17423   INET_LINK="nsl"
17424 else
17425   echo "$ac_t""no" 1>&6
17426 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17427 echo "configure:17428: checking for inet_addr in -lresolv" >&5
17428 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17430   echo $ac_n "(cached) $ac_c" 1>&6
17431 else
17432   ac_save_LIBS="$LIBS"
17433 LIBS="-lresolv  $LIBS"
17434 cat > conftest.$ac_ext <<EOF
17435 #line 17436 "configure"
17436 #include "confdefs.h"
17437 /* Override any gcc2 internal prototype to avoid an error.  */
17438 /* We use char because int might match the return type of a gcc2
17439     builtin and then its argument prototype would still apply.  */
17440 char inet_addr();
17441
17442 int main() {
17443 inet_addr()
17444 ; return 0; }
17445 EOF
17446 if { (eval echo configure:17447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17447   rm -rf conftest*
17448   eval "ac_cv_lib_$ac_lib_var=yes"
17449 else
17450   echo "configure: failed program was:" >&5
17451   cat conftest.$ac_ext >&5
17452   rm -rf conftest*
17453   eval "ac_cv_lib_$ac_lib_var=no"
17454 fi
17455 rm -f conftest*
17456 LIBS="$ac_save_LIBS"
17457
17458 fi
17459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17460   echo "$ac_t""yes" 1>&6
17461   INET_LINK="resolv"
17462 else
17463   echo "$ac_t""no" 1>&6
17464 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17465 echo "configure:17466: checking for inet_addr in -lsocket" >&5
17466 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17468   echo $ac_n "(cached) $ac_c" 1>&6
17469 else
17470   ac_save_LIBS="$LIBS"
17471 LIBS="-lsocket  $LIBS"
17472 cat > conftest.$ac_ext <<EOF
17473 #line 17474 "configure"
17474 #include "confdefs.h"
17475 /* Override any gcc2 internal prototype to avoid an error.  */
17476 /* We use char because int might match the return type of a gcc2
17477     builtin and then its argument prototype would still apply.  */
17478 char inet_addr();
17479
17480 int main() {
17481 inet_addr()
17482 ; return 0; }
17483 EOF
17484 if { (eval echo configure:17485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17485   rm -rf conftest*
17486   eval "ac_cv_lib_$ac_lib_var=yes"
17487 else
17488   echo "configure: failed program was:" >&5
17489   cat conftest.$ac_ext >&5
17490   rm -rf conftest*
17491   eval "ac_cv_lib_$ac_lib_var=no"
17492 fi
17493 rm -f conftest*
17494 LIBS="$ac_save_LIBS"
17495
17496 fi
17497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17498   echo "$ac_t""yes" 1>&6
17499   INET_LINK="socket"
17500                 
17501 else
17502   echo "$ac_t""no" 1>&6
17503 fi
17504
17505             
17506 fi
17507
17508         
17509 fi
17510
17511     
17512
17513 fi
17514 done
17515
17516
17517 for ac_func in inet_aton
17518 do
17519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17520 echo "configure:17521: checking for $ac_func" >&5
17521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17522   echo $ac_n "(cached) $ac_c" 1>&6
17523 else
17524   cat > conftest.$ac_ext <<EOF
17525 #line 17526 "configure"
17526 #include "confdefs.h"
17527 /* System header to define __stub macros and hopefully few prototypes,
17528     which can conflict with char $ac_func(); below.  */
17529 #include <assert.h>
17530 /* Override any gcc2 internal prototype to avoid an error.  */
17531 /* We use char because int might match the return type of a gcc2
17532     builtin and then its argument prototype would still apply.  */
17533 char $ac_func();
17534
17535 int main() {
17536
17537 /* The GNU C library defines this for functions which it implements
17538     to always fail with ENOSYS.  Some functions are actually named
17539     something starting with __ and the normal name is an alias.  */
17540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17541 choke me
17542 #else
17543 $ac_func();
17544 #endif
17545
17546 ; return 0; }
17547 EOF
17548 if { (eval echo configure:17549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17549   rm -rf conftest*
17550   eval "ac_cv_func_$ac_func=yes"
17551 else
17552   echo "configure: failed program was:" >&5
17553   cat conftest.$ac_ext >&5
17554   rm -rf conftest*
17555   eval "ac_cv_func_$ac_func=no"
17556 fi
17557 rm -f conftest*
17558 fi
17559
17560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17561   echo "$ac_t""yes" 1>&6
17562     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17563   cat >> confdefs.h <<EOF
17564 #define $ac_tr_func 1
17565 EOF
17566  cat >> confdefs.h <<\EOF
17567 #define HAVE_INET_ATON 1
17568 EOF
17569
17570 else
17571   echo "$ac_t""no" 1>&6
17572             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17573 echo "configure:17574: checking for inet_aton in -l$INET_LINK" >&5
17574 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17576   echo $ac_n "(cached) $ac_c" 1>&6
17577 else
17578   ac_save_LIBS="$LIBS"
17579 LIBS="-l$INET_LINK  $LIBS"
17580 cat > conftest.$ac_ext <<EOF
17581 #line 17582 "configure"
17582 #include "confdefs.h"
17583 /* Override any gcc2 internal prototype to avoid an error.  */
17584 /* We use char because int might match the return type of a gcc2
17585     builtin and then its argument prototype would still apply.  */
17586 char inet_aton();
17587
17588 int main() {
17589 inet_aton()
17590 ; return 0; }
17591 EOF
17592 if { (eval echo configure:17593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17593   rm -rf conftest*
17594   eval "ac_cv_lib_$ac_lib_var=yes"
17595 else
17596   echo "configure: failed program was:" >&5
17597   cat conftest.$ac_ext >&5
17598   rm -rf conftest*
17599   eval "ac_cv_lib_$ac_lib_var=no"
17600 fi
17601 rm -f conftest*
17602 LIBS="$ac_save_LIBS"
17603
17604 fi
17605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17606   echo "$ac_t""yes" 1>&6
17607   cat >> confdefs.h <<\EOF
17608 #define HAVE_INET_ATON 1
17609 EOF
17610
17611 else
17612   echo "$ac_t""no" 1>&6
17613 fi
17614
17615         
17616 fi
17617 done
17618
17619
17620 if test "x$INET_LINK" != "x"; then
17621     cat >> confdefs.h <<\EOF
17622 #define HAVE_INET_ADDR 1
17623 EOF
17624
17625     INET_LINK=" -l$INET_LINK"
17626 fi
17627
17628 fi
17629
17630
17631 cat > confcache <<\EOF
17632 # This file is a shell script that caches the results of configure
17633 # tests run on this system so they can be shared between configure
17634 # scripts and configure runs.  It is not useful on other systems.
17635 # If it contains results you don't want to keep, you may remove or edit it.
17636 #
17637 # By default, configure uses ./config.cache as the cache file,
17638 # creating it if it does not exist already.  You can give configure
17639 # the --cache-file=FILE option to use a different cache file; that is
17640 # what configure does when it calls configure scripts in
17641 # subdirectories, so they share the cache.
17642 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17643 # config.status only pays attention to the cache file if you give it the
17644 # --recheck option to rerun configure.
17645 #
17646 EOF
17647 # The following way of writing the cache mishandles newlines in values,
17648 # but we know of no workaround that is simple, portable, and efficient.
17649 # So, don't put newlines in cache variables' values.
17650 # Ultrix sh set writes to stderr and can't be redirected directly,
17651 # and sets the high bit in the cache file unless we assign to the vars.
17652 (set) 2>&1 |
17653   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17654   *ac_space=\ *)
17655     # `set' does not quote correctly, so add quotes (double-quote substitution
17656     # turns \\\\ into \\, and sed turns \\ into \).
17657     sed -n \
17658       -e "s/'/'\\\\''/g" \
17659       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17660     ;;
17661   *)
17662     # `set' quotes correctly as required by POSIX, so do not add quotes.
17663     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17664     ;;
17665   esac >> confcache
17666 if cmp -s $cache_file confcache; then
17667   :
17668 else
17669   if test -w $cache_file; then
17670     echo "updating cache $cache_file"
17671     cat confcache > $cache_file
17672   else
17673     echo "not updating unwritable cache $cache_file"
17674   fi
17675 fi
17676 rm -f confcache
17677
17678
17679
17680 CPP_MT_FLAG=
17681 if test "$TOOLKIT" != "MSW"; then
17682
17683                             
17684     THREADS_LINK=
17685     THREADS_CFLAGS=
17686
17687     if test "$wxUSE_THREADS" = "yes" ; then
17688         if test "$wxUSE_WINE" = 1 ; then
17689             echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17690             wxUSE_THREADS="no"
17691         elif test "$USE_BEOS" = 1; then
17692             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17693             wxUSE_THREADS="no"
17694         fi
17695     fi
17696
17697     if test "$wxUSE_THREADS" = "yes" ; then
17698                                                         
17699         
17700                                 THREAD_OPTS="-pthread"
17701         case "${host}" in
17702           *-*-solaris2* | *-*-sunos4* )
17703                 if test "x$GCC" = "xyes"; then
17704                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
17705                 else
17706                     THREAD_OPTS="-mt $THREAD_OPTS"
17707                 fi
17708                 ;;
17709           *-*-freebsd*)
17710                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17711                 ;;
17712           *-*-darwin* | *-*-cygwin* )
17713                                                 THREAD_OPTS=""
17714                 ;;
17715           *-*-aix*)
17716                                 THREAD_OPTS="pthreads"
17717                 ;;
17718         esac
17719
17720                                 THREAD_OPTS="$THREAD_OPTS pthread none"
17721
17722                 THREADS_OK=no
17723         for flag in $THREAD_OPTS; do
17724             case $flag in
17725                 none)
17726                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17727 echo "configure:17728: checking whether pthreads work without any flags" >&5
17728                     ;;
17729
17730                 -*)
17731                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17732 echo "configure:17733: checking whether pthreads work with $flag" >&5
17733                     THREADS_CFLAGS="$flag"
17734                     ;;
17735
17736                 *)
17737                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17738 echo "configure:17739: checking for the pthreads library -l$flag" >&5
17739                     THREADS_LINK="-l$flag"
17740                     ;;
17741               esac
17742
17743               save_LIBS="$LIBS"
17744               save_CFLAGS="$CFLAGS"
17745               LIBS="$THREADS_LINK $LIBS"
17746               CFLAGS="$THREADS_CFLAGS $CFLAGS"
17747
17748               cat > conftest.$ac_ext <<EOF
17749 #line 17750 "configure"
17750 #include "confdefs.h"
17751 #include <pthread.h>
17752 int main() {
17753 pthread_create(0,0,0,0);
17754 ; return 0; }
17755 EOF
17756 if { (eval echo configure:17757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17757   rm -rf conftest*
17758   THREADS_OK=yes
17759 else
17760   echo "configure: failed program was:" >&5
17761   cat conftest.$ac_ext >&5
17762 fi
17763 rm -f conftest*
17764
17765               LIBS="$save_LIBS"
17766               CFLAGS="$save_CFLAGS"
17767
17768               echo "$ac_t""$THREADS_OK" 1>&6
17769               if test "x$THREADS_OK" = "xyes"; then
17770                       break;
17771               fi
17772
17773               THREADS_LINK=""
17774               THREADS_CFLAGS=""
17775       done
17776
17777       if test "x$THREADS_OK" != "xyes"; then
17778           wxUSE_THREADS=no
17779           echo "configure: warning: No thread support on this system... disabled" 1>&2
17780       else
17781                               LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17782
17783           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17784 echo "configure:17785: checking if more special flags are required for pthreads" >&5
17785           flag=no
17786           case "${host}" in
17787             *-aix* | *-freebsd*)
17788                 flag="-D_THREAD_SAFE"
17789                 ;;
17790             *solaris* | alpha*-osf*)
17791                 flag="-D_REENTRANT"
17792                 ;;
17793           esac
17794           echo "$ac_t""${flag}" 1>&6
17795           if test "x$flag" != xno; then
17796               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17797           fi
17798
17799           if test "x$THREADS_CFLAGS" != "x"; then
17800                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
17801             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17802           fi
17803       fi
17804     fi
17805
17806         if test "$wxUSE_THREADS" = "yes" ; then
17807       for ac_func in thr_setconcurrency
17808 do
17809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17810 echo "configure:17811: checking for $ac_func" >&5
17811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17812   echo $ac_n "(cached) $ac_c" 1>&6
17813 else
17814   cat > conftest.$ac_ext <<EOF
17815 #line 17816 "configure"
17816 #include "confdefs.h"
17817 /* System header to define __stub macros and hopefully few prototypes,
17818     which can conflict with char $ac_func(); below.  */
17819 #include <assert.h>
17820 /* Override any gcc2 internal prototype to avoid an error.  */
17821 /* We use char because int might match the return type of a gcc2
17822     builtin and then its argument prototype would still apply.  */
17823 char $ac_func();
17824
17825 int main() {
17826
17827 /* The GNU C library defines this for functions which it implements
17828     to always fail with ENOSYS.  Some functions are actually named
17829     something starting with __ and the normal name is an alias.  */
17830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17831 choke me
17832 #else
17833 $ac_func();
17834 #endif
17835
17836 ; return 0; }
17837 EOF
17838 if { (eval echo configure:17839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17839   rm -rf conftest*
17840   eval "ac_cv_func_$ac_func=yes"
17841 else
17842   echo "configure: failed program was:" >&5
17843   cat conftest.$ac_ext >&5
17844   rm -rf conftest*
17845   eval "ac_cv_func_$ac_func=no"
17846 fi
17847 rm -f conftest*
17848 fi
17849
17850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17851   echo "$ac_t""yes" 1>&6
17852     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17853   cat >> confdefs.h <<EOF
17854 #define $ac_tr_func 1
17855 EOF
17856  
17857 else
17858   echo "$ac_t""no" 1>&6
17859 fi
17860 done
17861
17862
17863       for ac_hdr in sched.h
17864 do
17865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17867 echo "configure:17868: checking for $ac_hdr" >&5
17868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17869   echo $ac_n "(cached) $ac_c" 1>&6
17870 else
17871   cat > conftest.$ac_ext <<EOF
17872 #line 17873 "configure"
17873 #include "confdefs.h"
17874 #include <$ac_hdr>
17875 EOF
17876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17877 { (eval echo configure:17878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17879 if test -z "$ac_err"; then
17880   rm -rf conftest*
17881   eval "ac_cv_header_$ac_safe=yes"
17882 else
17883   echo "$ac_err" >&5
17884   echo "configure: failed program was:" >&5
17885   cat conftest.$ac_ext >&5
17886   rm -rf conftest*
17887   eval "ac_cv_header_$ac_safe=no"
17888 fi
17889 rm -f conftest*
17890 fi
17891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17892   echo "$ac_t""yes" 1>&6
17893     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17894   cat >> confdefs.h <<EOF
17895 #define $ac_tr_hdr 1
17896 EOF
17897  
17898 else
17899   echo "$ac_t""no" 1>&6
17900 fi
17901 done
17902
17903       if test "$ac_cv_header_sched_h" = "yes"; then
17904           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17905 echo "configure:17906: checking for sched_yield" >&5
17906 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17907   echo $ac_n "(cached) $ac_c" 1>&6
17908 else
17909   cat > conftest.$ac_ext <<EOF
17910 #line 17911 "configure"
17911 #include "confdefs.h"
17912 /* System header to define __stub macros and hopefully few prototypes,
17913     which can conflict with char sched_yield(); below.  */
17914 #include <assert.h>
17915 /* Override any gcc2 internal prototype to avoid an error.  */
17916 /* We use char because int might match the return type of a gcc2
17917     builtin and then its argument prototype would still apply.  */
17918 char sched_yield();
17919
17920 int main() {
17921
17922 /* The GNU C library defines this for functions which it implements
17923     to always fail with ENOSYS.  Some functions are actually named
17924     something starting with __ and the normal name is an alias.  */
17925 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17926 choke me
17927 #else
17928 sched_yield();
17929 #endif
17930
17931 ; return 0; }
17932 EOF
17933 if { (eval echo configure:17934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17934   rm -rf conftest*
17935   eval "ac_cv_func_sched_yield=yes"
17936 else
17937   echo "configure: failed program was:" >&5
17938   cat conftest.$ac_ext >&5
17939   rm -rf conftest*
17940   eval "ac_cv_func_sched_yield=no"
17941 fi
17942 rm -f conftest*
17943 fi
17944
17945 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17946   echo "$ac_t""yes" 1>&6
17947   cat >> confdefs.h <<\EOF
17948 #define HAVE_SCHED_YIELD 1
17949 EOF
17950
17951 else
17952   echo "$ac_t""no" 1>&6
17953
17954                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17955 echo "configure:17956: checking for sched_yield in -lposix4" >&5
17956 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17958   echo $ac_n "(cached) $ac_c" 1>&6
17959 else
17960   ac_save_LIBS="$LIBS"
17961 LIBS="-lposix4  $LIBS"
17962 cat > conftest.$ac_ext <<EOF
17963 #line 17964 "configure"
17964 #include "confdefs.h"
17965 /* Override any gcc2 internal prototype to avoid an error.  */
17966 /* We use char because int might match the return type of a gcc2
17967     builtin and then its argument prototype would still apply.  */
17968 char sched_yield();
17969
17970 int main() {
17971 sched_yield()
17972 ; return 0; }
17973 EOF
17974 if { (eval echo configure:17975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17975   rm -rf conftest*
17976   eval "ac_cv_lib_$ac_lib_var=yes"
17977 else
17978   echo "configure: failed program was:" >&5
17979   cat conftest.$ac_ext >&5
17980   rm -rf conftest*
17981   eval "ac_cv_lib_$ac_lib_var=no"
17982 fi
17983 rm -f conftest*
17984 LIBS="$ac_save_LIBS"
17985
17986 fi
17987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17988   echo "$ac_t""yes" 1>&6
17989   cat >> confdefs.h <<\EOF
17990 #define HAVE_SCHED_YIELD 1
17991 EOF
17992  POSIX4_LINK=" -lposix4"
17993 else
17994   echo "$ac_t""no" 1>&6
17995 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17996                 
17997 fi
17998
17999             
18000           
18001 fi
18002
18003       fi
18004
18005                                           HAVE_PRIOR_FUNCS=0
18006       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18007 echo "configure:18008: checking for pthread_attr_getschedpolicy" >&5
18008 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18009   echo $ac_n "(cached) $ac_c" 1>&6
18010 else
18011   cat > conftest.$ac_ext <<EOF
18012 #line 18013 "configure"
18013 #include "confdefs.h"
18014 /* System header to define __stub macros and hopefully few prototypes,
18015     which can conflict with char pthread_attr_getschedpolicy(); below.  */
18016 #include <assert.h>
18017 /* Override any gcc2 internal prototype to avoid an error.  */
18018 /* We use char because int might match the return type of a gcc2
18019     builtin and then its argument prototype would still apply.  */
18020 char pthread_attr_getschedpolicy();
18021
18022 int main() {
18023
18024 /* The GNU C library defines this for functions which it implements
18025     to always fail with ENOSYS.  Some functions are actually named
18026     something starting with __ and the normal name is an alias.  */
18027 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18028 choke me
18029 #else
18030 pthread_attr_getschedpolicy();
18031 #endif
18032
18033 ; return 0; }
18034 EOF
18035 if { (eval echo configure:18036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18036   rm -rf conftest*
18037   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18038 else
18039   echo "configure: failed program was:" >&5
18040   cat conftest.$ac_ext >&5
18041   rm -rf conftest*
18042   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18043 fi
18044 rm -f conftest*
18045 fi
18046
18047 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18048   echo "$ac_t""yes" 1>&6
18049   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18050 echo "configure:18051: checking for pthread_attr_setschedparam" >&5
18051 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18052   echo $ac_n "(cached) $ac_c" 1>&6
18053 else
18054   cat > conftest.$ac_ext <<EOF
18055 #line 18056 "configure"
18056 #include "confdefs.h"
18057 /* System header to define __stub macros and hopefully few prototypes,
18058     which can conflict with char pthread_attr_setschedparam(); below.  */
18059 #include <assert.h>
18060 /* Override any gcc2 internal prototype to avoid an error.  */
18061 /* We use char because int might match the return type of a gcc2
18062     builtin and then its argument prototype would still apply.  */
18063 char pthread_attr_setschedparam();
18064
18065 int main() {
18066
18067 /* The GNU C library defines this for functions which it implements
18068     to always fail with ENOSYS.  Some functions are actually named
18069     something starting with __ and the normal name is an alias.  */
18070 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18071 choke me
18072 #else
18073 pthread_attr_setschedparam();
18074 #endif
18075
18076 ; return 0; }
18077 EOF
18078 if { (eval echo configure:18079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18079   rm -rf conftest*
18080   eval "ac_cv_func_pthread_attr_setschedparam=yes"
18081 else
18082   echo "configure: failed program was:" >&5
18083   cat conftest.$ac_ext >&5
18084   rm -rf conftest*
18085   eval "ac_cv_func_pthread_attr_setschedparam=no"
18086 fi
18087 rm -f conftest*
18088 fi
18089
18090 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18091   echo "$ac_t""yes" 1>&6
18092   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18093 echo "configure:18094: checking for sched_get_priority_max" >&5
18094 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18095   echo $ac_n "(cached) $ac_c" 1>&6
18096 else
18097   cat > conftest.$ac_ext <<EOF
18098 #line 18099 "configure"
18099 #include "confdefs.h"
18100 /* System header to define __stub macros and hopefully few prototypes
18101 else
18102   echo "$ac_t""no" 1>&6
18103 which can conflict with char sched_get_priority_max(); below.  */
18104 #include <assert.h>
18105 /* Override any gcc2 internal prototype to avoid an error.  */
18106 /* We use char because int might match the return type of a gcc2
18107     builtin and then its argument prototype would still apply.  */
18108 char sched_get_priority_max();
18109
18110 int main() {
18111
18112 /* The GNU C library defines this for functions which it implements
18113     to always fail with ENOSYS.  Some functions are actually named
18114     something starting with __ and the normal name is an alias.  */
18115 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18116 choke me
18117 #else
18118 sched_get_priority_max();
18119 #endif
18120
18121 ; return 0; }
18122 EOF
18123 if { (eval echo configure:18124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18124   rm -rf conftest*
18125   eval "ac_cv_func_sched_get_priority_max=yes"
18126 else
18127   echo "configure: failed program was:" >&5
18128   cat conftest.$ac_ext >&5
18129   rm -rf conftest*
18130   eval "ac_cv_func_sched_get_priority_max=no"
18131 fi
18132 rm -f conftest*
18133 fi
18134
18135 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18136   echo "$ac_t""yes" 1>&6
18137   HAVE_PRIOR_FUNCS=1
18138 else
18139   echo "$ac_t""no" 1>&6
18140 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18141 echo "configure:18142: checking for sched_get_priority_max in -lposix4" >&5
18142 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18144   echo $ac_n "(cached) $ac_c" 1>&6
18145 else
18146   ac_save_LIBS="$LIBS"
18147 LIBS="-lposix4  $LIBS"
18148 cat > conftest.$ac_ext <<EOF
18149 #line 18150 "configure"
18150 #include "confdefs.h"
18151 /* Override any gcc2 internal prototype to avoid an error.  */
18152 /* We use char because int might match the return type of a gcc2
18153     builtin and then its argument prototype would still apply.  */
18154 char sched_get_priority_max();
18155
18156 int main() {
18157 sched_get_priority_max()
18158 ; return 0; }
18159 EOF
18160 if { (eval echo configure:18161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18161   rm -rf conftest*
18162   eval "ac_cv_lib_$ac_lib_var=yes"
18163 else
18164   echo "configure: failed program was:" >&5
18165   cat conftest.$ac_ext >&5
18166   rm -rf conftest*
18167   eval "ac_cv_lib_$ac_lib_var=no"
18168 fi
18169 rm -f conftest*
18170 LIBS="$ac_save_LIBS"
18171
18172 fi
18173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18174   echo "$ac_t""yes" 1>&6
18175   
18176                                 HAVE_PRIOR_FUNCS=1
18177                                 POSIX4_LINK=" -lposix4"
18178                              
18179 else
18180   echo "$ac_t""no" 1>&6
18181 fi
18182
18183                        
18184 fi
18185
18186                      
18187 else
18188   echo "$ac_t""no" 1>&6
18189 fi
18190
18191                    
18192 fi
18193
18194
18195       if test "$HAVE_PRIOR_FUNCS" = 1; then
18196         cat >> confdefs.h <<\EOF
18197 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18198 EOF
18199
18200       else
18201         echo "configure: warning: Setting thread priority will not work" 1>&2
18202       fi
18203
18204       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18205 echo "configure:18206: checking for pthread_cancel" >&5
18206 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18207   echo $ac_n "(cached) $ac_c" 1>&6
18208 else
18209   cat > conftest.$ac_ext <<EOF
18210 #line 18211 "configure"
18211 #include "confdefs.h"
18212 /* System header to define __stub macros and hopefully few prototypes,
18213     which can conflict with char pthread_cancel(); below.  */
18214 #include <assert.h>
18215 /* Override any gcc2 internal prototype to avoid an error.  */
18216 /* We use char because int might match the return type of a gcc2
18217     builtin and then its argument prototype would still apply.  */
18218 char pthread_cancel();
18219
18220 int main() {
18221
18222 /* The GNU C library defines this for functions which it implements
18223     to always fail with ENOSYS.  Some functions are actually named
18224     something starting with __ and the normal name is an alias.  */
18225 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18226 choke me
18227 #else
18228 pthread_cancel();
18229 #endif
18230
18231 ; return 0; }
18232 EOF
18233 if { (eval echo configure:18234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18234   rm -rf conftest*
18235   eval "ac_cv_func_pthread_cancel=yes"
18236 else
18237   echo "configure: failed program was:" >&5
18238   cat conftest.$ac_ext >&5
18239   rm -rf conftest*
18240   eval "ac_cv_func_pthread_cancel=no"
18241 fi
18242 rm -f conftest*
18243 fi
18244
18245 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18246   echo "$ac_t""yes" 1>&6
18247   cat >> confdefs.h <<\EOF
18248 #define HAVE_PTHREAD_CANCEL 1
18249 EOF
18250
18251 else
18252   echo "$ac_t""no" 1>&6
18253 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18254 fi
18255
18256
18257       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18258 echo "configure:18259: checking for pthread_cleanup_push/pop" >&5
18259 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18260   echo $ac_n "(cached) $ac_c" 1>&6
18261 else
18262   
18263         cat > conftest.$ac_ext <<EOF
18264 #line 18265 "configure"
18265 #include "confdefs.h"
18266 #include <pthread.h>
18267 int main() {
18268
18269                         pthread_cleanup_push(NULL, NULL);
18270                         pthread_cleanup_pop(0);
18271                      
18272 ; return 0; }
18273 EOF
18274 if { (eval echo configure:18275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18275   rm -rf conftest*
18276   
18277                         wx_cv_func_pthread_cleanup_push=yes
18278                      
18279 else
18280   echo "configure: failed program was:" >&5
18281   cat conftest.$ac_ext >&5
18282   rm -rf conftest*
18283   
18284                         wx_cv_func_pthread_cleanup_push=no
18285                      
18286 fi
18287 rm -f conftest*
18288       
18289 fi
18290
18291 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18292
18293       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18294           cat >> confdefs.h <<\EOF
18295 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18296 EOF
18297
18298       fi
18299
18300                                                 
18301       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18302 echo "configure:18303: checking for pthread_mutexattr_t" >&5
18303 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18304   echo $ac_n "(cached) $ac_c" 1>&6
18305 else
18306   
18307         cat > conftest.$ac_ext <<EOF
18308 #line 18309 "configure"
18309 #include "confdefs.h"
18310 #include <pthread.h>
18311 int main() {
18312
18313                pthread_mutexattr_t attr;
18314                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18315             
18316 ; return 0; }
18317 EOF
18318 if { (eval echo configure:18319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18319   rm -rf conftest*
18320   
18321                wx_cv_type_pthread_mutexattr_t=yes
18322             
18323 else
18324   echo "configure: failed program was:" >&5
18325   cat conftest.$ac_ext >&5
18326   rm -rf conftest*
18327   
18328                wx_cv_type_pthread_mutexattr_t=no
18329             
18330         
18331 fi
18332 rm -f conftest*
18333       
18334 fi
18335
18336 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18337
18338       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18339         cat >> confdefs.h <<\EOF
18340 #define HAVE_PTHREAD_MUTEXATTR_T 1
18341 EOF
18342
18343       else
18344                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18345 echo "configure:18346: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18346 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18347   echo $ac_n "(cached) $ac_c" 1>&6
18348 else
18349   
18350             cat > conftest.$ac_ext <<EOF
18351 #line 18352 "configure"
18352 #include "confdefs.h"
18353 #include <pthread.h>
18354 int main() {
18355
18356                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18357                 
18358 ; return 0; }
18359 EOF
18360 if { (eval echo configure:18361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18361   rm -rf conftest*
18362   
18363                     wx_cv_type_pthread_rec_mutex_init=yes
18364                 
18365 else
18366   echo "configure: failed program was:" >&5
18367   cat conftest.$ac_ext >&5
18368   rm -rf conftest*
18369   
18370                     wx_cv_type_pthread_rec_mutex_init=no
18371                 
18372             
18373 fi
18374 rm -f conftest*
18375         
18376 fi
18377
18378 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18379         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18380           cat >> confdefs.h <<\EOF
18381 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18382 EOF
18383
18384         else
18385                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18386         fi
18387       fi
18388     fi
18389
18390 fi
18391
18392 if test "$wxUSE_THREADS" = "yes"; then
18393   cat >> confdefs.h <<\EOF
18394 #define wxUSE_THREADS 1
18395 EOF
18396
18397
18398   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18399 else
18400       if test "$ac_cv_func_strtok_r" = "yes"; then
18401     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18402 echo "configure:18403: checking if -D_REENTRANT is needed" >&5
18403     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18404         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18405         echo "$ac_t""yes" 1>&6
18406     else
18407         echo "$ac_t""no" 1>&6
18408     fi
18409   fi
18410 fi
18411
18412 if test "$WXGTK20" = 1 ; then
18413   cat >> confdefs.h <<EOF
18414 #define __WXGTK20__ $WXGTK20
18415 EOF
18416
18417   WXGTK12=1
18418 fi
18419
18420 if test "$WXGTK12" = 1 ; then
18421   cat >> confdefs.h <<EOF
18422 #define __WXGTK12__ $WXGTK12
18423 EOF
18424
18425 fi
18426
18427 if test "$WXGTK127" = 1 ; then
18428   cat >> confdefs.h <<EOF
18429 #define __WXGTK127__ $WXGTK127
18430 EOF
18431
18432 fi
18433
18434 WXDEBUG=
18435
18436 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18437     WXDEBUG="-g"
18438     wxUSE_OPTIMISE=no
18439 fi
18440
18441 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18442     wxUSE_DEBUG_INFO=yes
18443     WXDEBUG="-ggdb"
18444 fi
18445
18446 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18447     cat >> confdefs.h <<\EOF
18448 #define WXDEBUG 1
18449 EOF
18450
18451     WXDEBUG_DEFINE="-D__WXDEBUG__"
18452 else
18453     if test "$wxUSE_GTK" = 1 ; then
18454         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18455     fi
18456 fi
18457
18458 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18459     cat >> confdefs.h <<\EOF
18460 #define wxUSE_MEMORY_TRACING 1
18461 EOF
18462
18463     cat >> confdefs.h <<\EOF
18464 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18465 EOF
18466
18467     cat >> confdefs.h <<\EOF
18468 #define wxUSE_DEBUG_NEW_ALWAYS 1
18469 EOF
18470
18471     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18472 fi
18473
18474 if test "$wxUSE_DMALLOC" = "yes" ; then
18475     DMALLOC_LIBS="-ldmalloc"
18476 fi
18477
18478 PROFILE=
18479 if test "$wxUSE_PROFILE" = "yes" ; then
18480     PROFILE=" -pg"
18481 fi
18482
18483 CODE_GEN_FLAGS=
18484 CODE_GEN_FLAGS_CXX=
18485 if test "$GCC" = "yes" ; then
18486     if test "$wxUSE_NO_RTTI" = "yes" ; then
18487         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18488     fi
18489     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18490         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18491     fi
18492     if test "$wxUSE_PERMISSIVE" = "yes" ; then
18493         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18494     fi
18495     if test "$USE_WIN32" = 1 ; then
18496         # I'm not even really sure what this was ever added to solve,
18497         # but someone added it for mingw native builds, so I guess
18498         # they had a reason, right??
18499         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18500     fi
18501
18502                             case "${host}" in
18503       powerpc*-*-aix* )
18504         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18505         ;;
18506     esac
18507 fi
18508
18509 if test "$wxUSE_OPTIMISE" = "no" ; then
18510     OPTIMISE=
18511 else
18512     if test "$GCC" = yes ; then
18513         OPTIMISE="-O2"
18514         case "${host}" in
18515             i586-*-*|i686-*-* )
18516             OPTIMISE="${OPTIMISE} "
18517         ;;
18518         esac
18519     else
18520         OPTIMISE="-O"
18521     fi
18522 fi
18523
18524 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18525     cat >> confdefs.h <<\EOF
18526 #define WXWIN_COMPATIBILITY_2 1
18527 EOF
18528
18529
18530     WXWIN_COMPATIBILITY_2_2="yes"
18531 fi
18532
18533 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18534     cat >> confdefs.h <<\EOF
18535 #define WXWIN_COMPATIBILITY_2_2 1
18536 EOF
18537
18538 fi
18539
18540
18541 if test "$wxUSE_GUI" = "yes"; then
18542   cat >> confdefs.h <<\EOF
18543 #define wxUSE_GUI 1
18544 EOF
18545
18546
18547                       else
18548   cat >> confdefs.h <<\EOF
18549 #define wxUSE_NOGUI 1
18550 EOF
18551
18552 fi
18553
18554
18555 if test "$wxUSE_UNIX" = "yes"; then
18556   cat >> confdefs.h <<\EOF
18557 #define wxUSE_UNIX 1
18558 EOF
18559
18560 fi
18561
18562
18563 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18564   cat >> confdefs.h <<\EOF
18565 #define wxUSE_APPLE_IEEE 1
18566 EOF
18567
18568 fi
18569
18570 if test "$wxUSE_TIMER" = "yes"; then
18571   cat >> confdefs.h <<\EOF
18572 #define wxUSE_TIMER 1
18573 EOF
18574
18575 fi
18576
18577 if test "$wxUSE_WAVE" = "yes"; then
18578   cat >> confdefs.h <<\EOF
18579 #define wxUSE_WAVE 1
18580 EOF
18581
18582 fi
18583
18584 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18585   cat >> confdefs.h <<\EOF
18586 #define wxUSE_CMDLINE_PARSER 1
18587 EOF
18588
18589 fi
18590
18591 if test "$wxUSE_STOPWATCH" = "yes"; then
18592   cat >> confdefs.h <<\EOF
18593 #define wxUSE_STOPWATCH 1
18594 EOF
18595
18596 fi
18597
18598 if test "$wxUSE_DATETIME" = "yes"; then
18599   cat >> confdefs.h <<\EOF
18600 #define wxUSE_DATETIME 1
18601 EOF
18602
18603 fi
18604
18605 if test "$wxUSE_TIMEDATE" = "yes"; then
18606   cat >> confdefs.h <<\EOF
18607 #define wxUSE_TIMEDATE 1
18608 EOF
18609
18610 fi
18611
18612 if test "$wxUSE_FILE" = "yes"; then
18613   cat >> confdefs.h <<\EOF
18614 #define wxUSE_FILE 1
18615 EOF
18616
18617 fi
18618
18619 if test "$wxUSE_FFILE" = "yes"; then
18620   cat >> confdefs.h <<\EOF
18621 #define wxUSE_FFILE 1
18622 EOF
18623
18624 fi
18625
18626 if test "$wxUSE_FILESYSTEM" = "yes"; then
18627   cat >> confdefs.h <<\EOF
18628 #define wxUSE_FILESYSTEM 1
18629 EOF
18630
18631 fi
18632
18633 if test "$wxUSE_FS_INET" = "yes"; then
18634   cat >> confdefs.h <<\EOF
18635 #define wxUSE_FS_INET 1
18636 EOF
18637
18638 fi
18639
18640 if test "$wxUSE_FS_ZIP" = "yes"; then
18641   cat >> confdefs.h <<\EOF
18642 #define wxUSE_FS_ZIP 1
18643 EOF
18644
18645 fi
18646
18647 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18648   cat >> confdefs.h <<\EOF
18649 #define wxUSE_ZIPSTREAM 1
18650 EOF
18651
18652 fi
18653
18654 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18655   cat >> confdefs.h <<\EOF
18656 #define wxUSE_ON_FATAL_EXCEPTION 1
18657 EOF
18658
18659 fi
18660
18661 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18662   cat >> confdefs.h <<\EOF
18663 #define wxUSE_SNGLINST_CHECKER 1
18664 EOF
18665
18666 fi
18667
18668 if test "$wxUSE_BUSYINFO" = "yes"; then
18669   cat >> confdefs.h <<\EOF
18670 #define wxUSE_BUSYINFO 1
18671 EOF
18672
18673 fi
18674
18675 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18676   cat >> confdefs.h <<\EOF
18677 #define wxUSE_STD_IOSTREAM 1
18678 EOF
18679
18680 fi
18681
18682 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18683     cat >> confdefs.h <<\EOF
18684 #define wxUSE_TEXTBUFFER 1
18685 EOF
18686
18687 fi
18688
18689 if test "$wxUSE_TEXTFILE" = "yes"; then
18690   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18691     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18692   else
18693     cat >> confdefs.h <<\EOF
18694 #define wxUSE_TEXTFILE 1
18695 EOF
18696
18697   fi
18698 fi
18699
18700 if test "$wxUSE_CONFIG" = "yes" ; then
18701   if test "$wxUSE_TEXTFILE" != "yes"; then
18702     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18703   else
18704     cat >> confdefs.h <<\EOF
18705 #define wxUSE_CONFIG 1
18706 EOF
18707
18708     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18709   fi
18710 fi
18711
18712 if test "$wxUSE_INTL" = "yes" ; then
18713   if test "$wxUSE_FILE" != "yes"; then
18714     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18715   else
18716     cat >> confdefs.h <<\EOF
18717 #define wxUSE_INTL 1
18718 EOF
18719
18720     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18721     GUIDIST="$GUIDIST INTL_DIST"
18722   fi
18723 fi
18724
18725 if test "$wxUSE_LOG" = "yes"; then
18726   cat >> confdefs.h <<\EOF
18727 #define wxUSE_LOG 1
18728 EOF
18729
18730
18731     if test "$wxUSE_LOGGUI" = "yes"; then
18732       cat >> confdefs.h <<\EOF
18733 #define wxUSE_LOGGUI 1
18734 EOF
18735
18736     fi
18737
18738     if test "$wxUSE_LOGWINDOW" = "yes"; then
18739       cat >> confdefs.h <<\EOF
18740 #define wxUSE_LOGWINDOW 1
18741 EOF
18742
18743     fi
18744
18745     if test "$wxUSE_LOGDIALOG" = "yes"; then
18746       cat >> confdefs.h <<\EOF
18747 #define wxUSE_LOG_DIALOG 1
18748 EOF
18749
18750     fi
18751 fi
18752
18753 if test "$wxUSE_LONGLONG" = "yes"; then
18754   cat >> confdefs.h <<\EOF
18755 #define wxUSE_LONGLONG 1
18756 EOF
18757
18758 fi
18759
18760 if test "$wxUSE_GEOMETRY" = "yes"; then
18761   cat >> confdefs.h <<\EOF
18762 #define wxUSE_GEOMETRY 1
18763 EOF
18764
18765 fi
18766
18767 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18768   cat >> confdefs.h <<\EOF
18769 #define wxUSE_DIALUP_MANAGER 1
18770 EOF
18771
18772   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18773 fi
18774
18775 if test "$wxUSE_STREAMS" = "yes" ; then
18776   cat >> confdefs.h <<\EOF
18777 #define wxUSE_STREAMS 1
18778 EOF
18779
18780 fi
18781
18782
18783 if test "$wxUSE_DATETIME" = "yes"; then
18784         for ac_func in strptime
18785 do
18786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18787 echo "configure:18788: checking for $ac_func" >&5
18788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18789   echo $ac_n "(cached) $ac_c" 1>&6
18790 else
18791   cat > conftest.$ac_ext <<EOF
18792 #line 18793 "configure"
18793 #include "confdefs.h"
18794 /* System header to define __stub macros and hopefully few prototypes,
18795     which can conflict with char $ac_func(); below.  */
18796 #include <assert.h>
18797 /* Override any gcc2 internal prototype to avoid an error.  */
18798 /* We use char because int might match the return type of a gcc2
18799     builtin and then its argument prototype would still apply.  */
18800 char $ac_func();
18801
18802 int main() {
18803
18804 /* The GNU C library defines this for functions which it implements
18805     to always fail with ENOSYS.  Some functions are actually named
18806     something starting with __ and the normal name is an alias.  */
18807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18808 choke me
18809 #else
18810 $ac_func();
18811 #endif
18812
18813 ; return 0; }
18814 EOF
18815 if { (eval echo configure:18816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18816   rm -rf conftest*
18817   eval "ac_cv_func_$ac_func=yes"
18818 else
18819   echo "configure: failed program was:" >&5
18820   cat conftest.$ac_ext >&5
18821   rm -rf conftest*
18822   eval "ac_cv_func_$ac_func=no"
18823 fi
18824 rm -f conftest*
18825 fi
18826
18827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18828   echo "$ac_t""yes" 1>&6
18829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18830   cat >> confdefs.h <<EOF
18831 #define $ac_tr_func 1
18832 EOF
18833  
18834 else
18835   echo "$ac_t""no" 1>&6
18836 fi
18837 done
18838
18839
18840             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18841 echo "configure:18842: checking for timezone variable in <time.h>" >&5
18842 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18843   echo $ac_n "(cached) $ac_c" 1>&6
18844 else
18845   
18846                         cat > conftest.$ac_ext <<EOF
18847 #line 18848 "configure"
18848 #include "confdefs.h"
18849
18850                                 #include <time.h>
18851                             
18852 int main() {
18853
18854                                 int tz;
18855                                 tz = timezone;
18856                             
18857 ; return 0; }
18858 EOF
18859 if { (eval echo configure:18860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18860   rm -rf conftest*
18861   
18862                                 wx_cv_var_timezone=timezone
18863                             
18864 else
18865   echo "configure: failed program was:" >&5
18866   cat conftest.$ac_ext >&5
18867   rm -rf conftest*
18868   
18869                                 cat > conftest.$ac_ext <<EOF
18870 #line 18871 "configure"
18871 #include "confdefs.h"
18872
18873                                         #include <time.h>
18874                                     
18875 int main() {
18876
18877                                         int tz;
18878                                         tz = _timezone;
18879                                     
18880 ; return 0; }
18881 EOF
18882 if { (eval echo configure:18883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18883   rm -rf conftest*
18884   
18885                                         wx_cv_var_timezone=_timezone
18886                                     
18887 else
18888   echo "configure: failed program was:" >&5
18889   cat conftest.$ac_ext >&5
18890   rm -rf conftest*
18891   
18892                                         cat > conftest.$ac_ext <<EOF
18893 #line 18894 "configure"
18894 #include "confdefs.h"
18895
18896                                                 #include <time.h>
18897                                             
18898 int main() {
18899
18900                                                 int tz;
18901                                                 tz = __timezone;
18902                                             
18903 ; return 0; }
18904 EOF
18905 if { (eval echo configure:18906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18906   rm -rf conftest*
18907   
18908                                                 wx_cv_var_timezone=__timezone
18909                                             
18910 else
18911   echo "configure: failed program was:" >&5
18912   cat conftest.$ac_ext >&5
18913   rm -rf conftest*
18914   
18915                                                 if test "$USE_DOS" = 0 ; then
18916                                                     echo "configure: warning: no timezone variable" 1>&2
18917                                                 fi
18918                                             
18919                                         
18920 fi
18921 rm -f conftest*
18922                                     
18923                                 
18924 fi
18925 rm -f conftest*
18926                             
18927                         
18928 fi
18929 rm -f conftest*
18930                    
18931     
18932 fi
18933
18934 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18935
18936         if test "x$wx_cv_var_timezone" != x ; then
18937         cat >> confdefs.h <<EOF
18938 #define WX_TIMEZONE $wx_cv_var_timezone
18939 EOF
18940
18941     fi
18942
18943         for ac_func in localtime
18944 do
18945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18946 echo "configure:18947: checking for $ac_func" >&5
18947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18948   echo $ac_n "(cached) $ac_c" 1>&6
18949 else
18950   cat > conftest.$ac_ext <<EOF
18951 #line 18952 "configure"
18952 #include "confdefs.h"
18953 /* System header to define __stub macros and hopefully few prototypes,
18954     which can conflict with char $ac_func(); below.  */
18955 #include <assert.h>
18956 /* Override any gcc2 internal prototype to avoid an error.  */
18957 /* We use char because int might match the return type of a gcc2
18958     builtin and then its argument prototype would still apply.  */
18959 char $ac_func();
18960
18961 int main() {
18962
18963 /* The GNU C library defines this for functions which it implements
18964     to always fail with ENOSYS.  Some functions are actually named
18965     something starting with __ and the normal name is an alias.  */
18966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18967 choke me
18968 #else
18969 $ac_func();
18970 #endif
18971
18972 ; return 0; }
18973 EOF
18974 if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18975   rm -rf conftest*
18976   eval "ac_cv_func_$ac_func=yes"
18977 else
18978   echo "configure: failed program was:" >&5
18979   cat conftest.$ac_ext >&5
18980   rm -rf conftest*
18981   eval "ac_cv_func_$ac_func=no"
18982 fi
18983 rm -f conftest*
18984 fi
18985
18986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18987   echo "$ac_t""yes" 1>&6
18988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18989   cat >> confdefs.h <<EOF
18990 #define $ac_tr_func 1
18991 EOF
18992  
18993 else
18994   echo "$ac_t""no" 1>&6
18995 fi
18996 done
18997
18998
18999     if test "$ac_cv_func_localtime" = "yes"; then
19000         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19001 echo "configure:19002: checking for tm_gmtoff in struct tm" >&5
19002 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19003   echo $ac_n "(cached) $ac_c" 1>&6
19004 else
19005   
19006             cat > conftest.$ac_ext <<EOF
19007 #line 19008 "configure"
19008 #include "confdefs.h"
19009
19010                     #include <time.h>
19011                 
19012 int main() {
19013
19014                     struct tm tm;
19015                     tm.tm_gmtoff++;
19016                 
19017 ; return 0; }
19018 EOF
19019 if { (eval echo configure:19020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19020   rm -rf conftest*
19021   
19022                     wx_cv_struct_tm_has_gmtoff=yes
19023                 
19024 else
19025   echo "configure: failed program was:" >&5
19026   cat conftest.$ac_ext >&5
19027   rm -rf conftest*
19028   wx_cv_struct_tm_has_gmtoff=no
19029             
19030 fi
19031 rm -f conftest*
19032         
19033 fi
19034
19035 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19036     fi
19037
19038     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19039         cat >> confdefs.h <<\EOF
19040 #define WX_GMTOFF_IN_TM 1
19041 EOF
19042
19043     fi
19044
19045             for ac_func in gettimeofday ftime
19046 do
19047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19048 echo "configure:19049: checking for $ac_func" >&5
19049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19050   echo $ac_n "(cached) $ac_c" 1>&6
19051 else
19052   cat > conftest.$ac_ext <<EOF
19053 #line 19054 "configure"
19054 #include "confdefs.h"
19055 /* System header to define __stub macros and hopefully few prototypes,
19056     which can conflict with char $ac_func(); below.  */
19057 #include <assert.h>
19058 /* Override any gcc2 internal prototype to avoid an error.  */
19059 /* We use char because int might match the return type of a gcc2
19060     builtin and then its argument prototype would still apply.  */
19061 char $ac_func();
19062
19063 int main() {
19064
19065 /* The GNU C library defines this for functions which it implements
19066     to always fail with ENOSYS.  Some functions are actually named
19067     something starting with __ and the normal name is an alias.  */
19068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19069 choke me
19070 #else
19071 $ac_func();
19072 #endif
19073
19074 ; return 0; }
19075 EOF
19076 if { (eval echo configure:19077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19077   rm -rf conftest*
19078   eval "ac_cv_func_$ac_func=yes"
19079 else
19080   echo "configure: failed program was:" >&5
19081   cat conftest.$ac_ext >&5
19082   rm -rf conftest*
19083   eval "ac_cv_func_$ac_func=no"
19084 fi
19085 rm -f conftest*
19086 fi
19087
19088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19089   echo "$ac_t""yes" 1>&6
19090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19091   cat >> confdefs.h <<EOF
19092 #define $ac_tr_func 1
19093 EOF
19094  break
19095 else
19096   echo "$ac_t""no" 1>&6
19097 fi
19098 done
19099
19100
19101     if test "$ac_cv_func_gettimeofday" = "yes"; then
19102         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19103 echo "configure:19104: checking whether gettimeofday takes two arguments" >&5
19104 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19105   echo $ac_n "(cached) $ac_c" 1>&6
19106 else
19107   
19108                         
19109             ac_ext=C
19110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19111 ac_cpp='$CXXCPP $CPPFLAGS'
19112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19114 cross_compiling=$ac_cv_prog_cxx_cross
19115
19116
19117             cat > conftest.$ac_ext <<EOF
19118 #line 19119 "configure"
19119 #include "confdefs.h"
19120
19121                     #include <sys/time.h>
19122                     #include <unistd.h>
19123                 
19124 int main() {
19125
19126                     struct timeval tv;
19127                     gettimeofday(&tv, NULL);
19128                 
19129 ; return 0; }
19130 EOF
19131 if { (eval echo configure:19132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19132   rm -rf conftest*
19133   wx_cv_func_gettimeofday_has_2_args=yes
19134 else
19135   echo "configure: failed program was:" >&5
19136   cat conftest.$ac_ext >&5
19137   rm -rf conftest*
19138   cat > conftest.$ac_ext <<EOF
19139 #line 19140 "configure"
19140 #include "confdefs.h"
19141
19142                         #include <sys/time.h>
19143                         #include <unistd.h>
19144                     
19145 int main() {
19146
19147                         struct timeval tv;
19148                         gettimeofday(&tv);
19149                     
19150 ; return 0; }
19151 EOF
19152 if { (eval echo configure:19153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19153   rm -rf conftest*
19154   wx_cv_func_gettimeofday_has_2_args=no
19155 else
19156   echo "configure: failed program was:" >&5
19157   cat conftest.$ac_ext >&5
19158   rm -rf conftest*
19159   
19160                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19161                         wx_cv_func_gettimeofday_has_2_args=unknown
19162                     
19163                 
19164 fi
19165 rm -f conftest*
19166             
19167 fi
19168 rm -f conftest*
19169             ac_ext=c
19170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19171 ac_cpp='$CPP $CPPFLAGS'
19172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19174 cross_compiling=$ac_cv_prog_cc_cross
19175
19176         
19177 fi
19178
19179 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19180
19181         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19182             cat >> confdefs.h <<\EOF
19183 #define WX_GETTIMEOFDAY_NO_TZ 1
19184 EOF
19185
19186         fi
19187     fi
19188
19189     cat >> confdefs.h <<\EOF
19190 #define wxUSE_TIMEDATE 1
19191 EOF
19192
19193     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19194 fi
19195
19196
19197 if test "$wxUSE_SOCKETS" = "yes"; then
19198     if test "$wxUSE_MGL" = "1"; then
19199         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19200         wxUSE_SOCKETS="no"
19201     fi
19202 fi
19203
19204 if test "$wxUSE_SOCKETS" = "yes"; then
19205         if test "$TOOLKIT" != "MSW"; then
19206                 echo $ac_n "checking for socket""... $ac_c" 1>&6
19207 echo "configure:19208: checking for socket" >&5
19208 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19209   echo $ac_n "(cached) $ac_c" 1>&6
19210 else
19211   cat > conftest.$ac_ext <<EOF
19212 #line 19213 "configure"
19213 #include "confdefs.h"
19214 /* System header to define __stub macros and hopefully few prototypes,
19215     which can conflict with char socket(); below.  */
19216 #include <assert.h>
19217 /* Override any gcc2 internal prototype to avoid an error.  */
19218 /* We use char because int might match the return type of a gcc2
19219     builtin and then its argument prototype would still apply.  */
19220 char socket();
19221
19222 int main() {
19223
19224 /* The GNU C library defines this for functions which it implements
19225     to always fail with ENOSYS.  Some functions are actually named
19226     something starting with __ and the normal name is an alias.  */
19227 #if defined (__stub_socket) || defined (__stub___socket)
19228 choke me
19229 #else
19230 socket();
19231 #endif
19232
19233 ; return 0; }
19234 EOF
19235 if { (eval echo configure:19236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19236   rm -rf conftest*
19237   eval "ac_cv_func_socket=yes"
19238 else
19239   echo "configure: failed program was:" >&5
19240   cat conftest.$ac_ext >&5
19241   rm -rf conftest*
19242   eval "ac_cv_func_socket=no"
19243 fi
19244 rm -f conftest*
19245 fi
19246
19247 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19248   echo "$ac_t""yes" 1>&6
19249   :
19250 else
19251   echo "$ac_t""no" 1>&6
19252 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19253 echo "configure:19254: checking for socket in -lsocket" >&5
19254 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19256   echo $ac_n "(cached) $ac_c" 1>&6
19257 else
19258   ac_save_LIBS="$LIBS"
19259 LIBS="-lsocket  $LIBS"
19260 cat > conftest.$ac_ext <<EOF
19261 #line 19262 "configure"
19262 #include "confdefs.h"
19263 /* Override any gcc2 internal prototype to avoid an error.  */
19264 /* We use char because int might match the return type of a gcc2
19265     builtin and then its argument prototype would still apply.  */
19266 char socket();
19267
19268 int main() {
19269 socket()
19270 ; return 0; }
19271 EOF
19272 if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19273   rm -rf conftest*
19274   eval "ac_cv_lib_$ac_lib_var=yes"
19275 else
19276   echo "configure: failed program was:" >&5
19277   cat conftest.$ac_ext >&5
19278   rm -rf conftest*
19279   eval "ac_cv_lib_$ac_lib_var=no"
19280 fi
19281 rm -f conftest*
19282 LIBS="$ac_save_LIBS"
19283
19284 fi
19285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19286   echo "$ac_t""yes" 1>&6
19287   if test "$INET_LINK" != " -lsocket"; then
19288                     INET_LINK="$INET_LINK -lsocket"
19289                 fi
19290 else
19291   echo "$ac_t""no" 1>&6
19292
19293                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19294                     wxUSE_SOCKETS=no
19295                 
19296             
19297 fi
19298
19299         
19300 fi
19301
19302     fi
19303 fi
19304
19305 if test "$wxUSE_SOCKETS" = "yes" ; then
19306                 if test "$TOOLKIT" != "MSW"; then
19307                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19308 echo "configure:19309: checking what is the type of the third argument of getsockname" >&5
19309 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19310   echo $ac_n "(cached) $ac_c" 1>&6
19311 else
19312   
19313                 
19314                 ac_ext=C
19315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19316 ac_cpp='$CXXCPP $CPPFLAGS'
19317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19319 cross_compiling=$ac_cv_prog_cxx_cross
19320
19321
19322                 cat > conftest.$ac_ext <<EOF
19323 #line 19324 "configure"
19324 #include "confdefs.h"
19325
19326                         #include <sys/types.h>
19327                         #include <sys/socket.h>
19328                     
19329 int main() {
19330
19331                         socklen_t len;
19332                         getsockname(0, 0, &len);
19333                     
19334 ; return 0; }
19335 EOF
19336 if { (eval echo configure:19337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19337   rm -rf conftest*
19338   wx_cv_type_getsockname3=socklen_t
19339 else
19340   echo "configure: failed program was:" >&5
19341   cat conftest.$ac_ext >&5
19342   rm -rf conftest*
19343   cat > conftest.$ac_ext <<EOF
19344 #line 19345 "configure"
19345 #include "confdefs.h"
19346
19347                             #include <sys/types.h>
19348                             #include <sys/socket.h>
19349                         
19350 int main() {
19351
19352                             size_t len;
19353                             getsockname(0, 0, &len);
19354                         
19355 ; return 0; }
19356 EOF
19357 if { (eval echo configure:19358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19358   rm -rf conftest*
19359   wx_cv_type_getsockname3=size_t
19360 else
19361   echo "configure: failed program was:" >&5
19362   cat conftest.$ac_ext >&5
19363   rm -rf conftest*
19364   cat > conftest.$ac_ext <<EOF
19365 #line 19366 "configure"
19366 #include "confdefs.h"
19367
19368                                 #include <sys/types.h>
19369                                 #include <sys/socket.h>
19370                             
19371 int main() {
19372
19373                                 int len;
19374                                 getsockname(0, 0, &len);
19375                             
19376 ; return 0; }
19377 EOF
19378 if { (eval echo configure:19379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19379   rm -rf conftest*
19380   wx_cv_type_getsockname3=int
19381 else
19382   echo "configure: failed program was:" >&5
19383   cat conftest.$ac_ext >&5
19384   rm -rf conftest*
19385   wx_cv_type_getsockname3=unknown
19386                         
19387 fi
19388 rm -f conftest*
19389                     
19390 fi
19391 rm -f conftest*
19392                 
19393 fi
19394 rm -f conftest*
19395
19396                 ac_ext=c
19397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19398 ac_cpp='$CPP $CPPFLAGS'
19399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19401 cross_compiling=$ac_cv_prog_cc_cross
19402
19403             
19404 fi
19405
19406 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19407
19408         if test "$wx_cv_type_getsockname3" = "unknown"; then
19409             wxUSE_SOCKETS=no
19410             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19411         else
19412             cat >> confdefs.h <<EOF
19413 #define SOCKLEN_T $wx_cv_type_getsockname3
19414 EOF
19415
19416         fi
19417     fi
19418 fi
19419
19420 if test "$wxUSE_SOCKETS" = "yes" ; then
19421     cat >> confdefs.h <<\EOF
19422 #define wxUSE_SOCKETS 1
19423 EOF
19424
19425     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19426 fi
19427
19428
19429 if test "$wxUSE_GUI" = "yes"; then
19430
19431     if test "$TOOLKIT" = "MAC"; then
19432         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19433         wxUSE_JOYSTICK=no
19434      fi
19435     if test "$TOOLKIT" = "MOTIF"; then
19436         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19437         wxUSE_JOYSTICK=no
19438      fi
19439     if test "$TOOLKIT" = "X11"; then
19440         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19441         wxUSE_JOYSTICK=no
19442      fi
19443
19444         if test "$TOOLKIT" != "MSW"; then
19445         if test "$wxUSE_JOYSTICK" = "yes"; then
19446                         for ac_hdr in linux/joystick.h
19447 do
19448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19450 echo "configure:19451: checking for $ac_hdr" >&5
19451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19452   echo $ac_n "(cached) $ac_c" 1>&6
19453 else
19454   cat > conftest.$ac_ext <<EOF
19455 #line 19456 "configure"
19456 #include "confdefs.h"
19457 #include <$ac_hdr>
19458 EOF
19459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19460 { (eval echo configure:19461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19462 if test -z "$ac_err"; then
19463   rm -rf conftest*
19464   eval "ac_cv_header_$ac_safe=yes"
19465 else
19466   echo "$ac_err" >&5
19467   echo "configure: failed program was:" >&5
19468   cat conftest.$ac_ext >&5
19469   rm -rf conftest*
19470   eval "ac_cv_header_$ac_safe=no"
19471 fi
19472 rm -f conftest*
19473 fi
19474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19475   echo "$ac_t""yes" 1>&6
19476     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19477   cat >> confdefs.h <<EOF
19478 #define $ac_tr_hdr 1
19479 EOF
19480  
19481 else
19482   echo "$ac_t""no" 1>&6
19483 fi
19484 done
19485
19486             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19487                 wxUSE_JOYSTICK=no
19488                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19489             fi
19490         fi
19491     fi
19492
19493     if test "$wxUSE_JOYSTICK" = "yes"; then
19494         cat >> confdefs.h <<\EOF
19495 #define wxUSE_JOYSTICK 1
19496 EOF
19497
19498         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19499     fi
19500 fi
19501
19502
19503 if test "$TOOLKIT" != "MSW"; then
19504
19505     HAVE_DL_FUNCS=0
19506     HAVE_SHL_FUNCS=0
19507     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19508         if test "$USE_DARWIN" = 1; then
19509                         HAVE_DL_FUNCS=1
19510         else
19511                                                 for ac_func in dlopen
19512 do
19513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19514 echo "configure:19515: checking for $ac_func" >&5
19515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19516   echo $ac_n "(cached) $ac_c" 1>&6
19517 else
19518   cat > conftest.$ac_ext <<EOF
19519 #line 19520 "configure"
19520 #include "confdefs.h"
19521 /* System header to define __stub macros and hopefully few prototypes,
19522     which can conflict with char $ac_func(); below.  */
19523 #include <assert.h>
19524 /* Override any gcc2 internal prototype to avoid an error.  */
19525 /* We use char because int might match the return type of a gcc2
19526     builtin and then its argument prototype would still apply.  */
19527 char $ac_func();
19528
19529 int main() {
19530
19531 /* The GNU C library defines this for functions which it implements
19532     to always fail with ENOSYS.  Some functions are actually named
19533     something starting with __ and the normal name is an alias.  */
19534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19535 choke me
19536 #else
19537 $ac_func();
19538 #endif
19539
19540 ; return 0; }
19541 EOF
19542 if { (eval echo configure:19543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19543   rm -rf conftest*
19544   eval "ac_cv_func_$ac_func=yes"
19545 else
19546   echo "configure: failed program was:" >&5
19547   cat conftest.$ac_ext >&5
19548   rm -rf conftest*
19549   eval "ac_cv_func_$ac_func=no"
19550 fi
19551 rm -f conftest*
19552 fi
19553
19554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19555   echo "$ac_t""yes" 1>&6
19556     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19557   cat >> confdefs.h <<EOF
19558 #define $ac_tr_func 1
19559 EOF
19560  
19561                 cat >> confdefs.h <<\EOF
19562 #define HAVE_DLOPEN 1
19563 EOF
19564
19565                 HAVE_DL_FUNCS=1
19566             
19567 else
19568   echo "$ac_t""no" 1>&6
19569 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19570 echo "configure:19571: checking for dlopen in -ldl" >&5
19571 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19573   echo $ac_n "(cached) $ac_c" 1>&6
19574 else
19575   ac_save_LIBS="$LIBS"
19576 LIBS="-ldl  $LIBS"
19577 cat > conftest.$ac_ext <<EOF
19578 #line 19579 "configure"
19579 #include "confdefs.h"
19580 /* Override any gcc2 internal prototype to avoid an error.  */
19581 /* We use char because int might match the return type of a gcc2
19582     builtin and then its argument prototype would still apply.  */
19583 char dlopen();
19584
19585 int main() {
19586 dlopen()
19587 ; return 0; }
19588 EOF
19589 if { (eval echo configure:19590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19590   rm -rf conftest*
19591   eval "ac_cv_lib_$ac_lib_var=yes"
19592 else
19593   echo "configure: failed program was:" >&5
19594   cat conftest.$ac_ext >&5
19595   rm -rf conftest*
19596   eval "ac_cv_lib_$ac_lib_var=no"
19597 fi
19598 rm -f conftest*
19599 LIBS="$ac_save_LIBS"
19600
19601 fi
19602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19603   echo "$ac_t""yes" 1>&6
19604   
19605                                 cat >> confdefs.h <<\EOF
19606 #define HAVE_DLOPEN 1
19607 EOF
19608
19609                                 HAVE_DL_FUNCS=1
19610                                 DL_LINK=" -ldl$DL_LINK"
19611                             
19612 else
19613   echo "$ac_t""no" 1>&6
19614
19615                                 for ac_func in shl_load
19616 do
19617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19618 echo "configure:19619: checking for $ac_func" >&5
19619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19620   echo $ac_n "(cached) $ac_c" 1>&6
19621 else
19622   cat > conftest.$ac_ext <<EOF
19623 #line 19624 "configure"
19624 #include "confdefs.h"
19625 /* System header to define __stub macros and hopefully few prototypes,
19626     which can conflict with char $ac_func(); below.  */
19627 #include <assert.h>
19628 /* Override any gcc2 internal prototype to avoid an error.  */
19629 /* We use char because int might match the return type of a gcc2
19630     builtin and then its argument prototype would still apply.  */
19631 char $ac_func();
19632
19633 int main() {
19634
19635 /* The GNU C library defines this for functions which it implements
19636     to always fail with ENOSYS.  Some functions are actually named
19637     something starting with __ and the normal name is an alias.  */
19638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19639 choke me
19640 #else
19641 $ac_func();
19642 #endif
19643
19644 ; return 0; }
19645 EOF
19646 if { (eval echo configure:19647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19647   rm -rf conftest*
19648   eval "ac_cv_func_$ac_func=yes"
19649 else
19650   echo "configure: failed program was:" >&5
19651   cat conftest.$ac_ext >&5
19652   rm -rf conftest*
19653   eval "ac_cv_func_$ac_func=no"
19654 fi
19655 rm -f conftest*
19656 fi
19657
19658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19659   echo "$ac_t""yes" 1>&6
19660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19661   cat >> confdefs.h <<EOF
19662 #define $ac_tr_func 1
19663 EOF
19664  
19665                                                 cat >> confdefs.h <<\EOF
19666 #define HAVE_SHL_LOAD 1
19667 EOF
19668
19669                                                 HAVE_SHL_FUNCS=1
19670                                               
19671 else
19672   echo "$ac_t""no" 1>&6
19673 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19674 echo "configure:19675: checking for dld in -lshl_load" >&5
19675 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19677   echo $ac_n "(cached) $ac_c" 1>&6
19678 else
19679   ac_save_LIBS="$LIBS"
19680 LIBS="-lshl_load  $LIBS"
19681 cat > conftest.$ac_ext <<EOF
19682 #line 19683 "configure"
19683 #include "confdefs.h"
19684 /* Override any gcc2 internal prototype to avoid an error.  */
19685 /* We use char because int might match the return type of a gcc2
19686     builtin and then its argument prototype would still apply.  */
19687 char dld();
19688
19689 int main() {
19690 dld()
19691 ; return 0; }
19692 EOF
19693 if { (eval echo configure:19694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19694   rm -rf conftest*
19695   eval "ac_cv_lib_$ac_lib_var=yes"
19696 else
19697   echo "configure: failed program was:" >&5
19698   cat conftest.$ac_ext >&5
19699   rm -rf conftest*
19700   eval "ac_cv_lib_$ac_lib_var=no"
19701 fi
19702 rm -f conftest*
19703 LIBS="$ac_save_LIBS"
19704
19705 fi
19706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19707   echo "$ac_t""yes" 1>&6
19708   
19709                                                                 HAVE_SHL_FUNCS=1
19710                                                                 DL_LINK=" -ldld$DL_LINK"
19711                                                              
19712 else
19713   echo "$ac_t""no" 1>&6
19714 fi
19715
19716                                               
19717 fi
19718 done
19719
19720                             
19721 fi
19722
19723             
19724 fi
19725 done
19726
19727
19728                 if test "$HAVE_DL_FUNCS" = 1; then
19729             for ac_func in dlerror
19730 do
19731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19732 echo "configure:19733: checking for $ac_func" >&5
19733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19734   echo $ac_n "(cached) $ac_c" 1>&6
19735 else
19736   cat > conftest.$ac_ext <<EOF
19737 #line 19738 "configure"
19738 #include "confdefs.h"
19739 /* System header to define __stub macros and hopefully few prototypes,
19740     which can conflict with char $ac_func(); below.  */
19741 #include <assert.h>
19742 /* Override any gcc2 internal prototype to avoid an error.  */
19743 /* We use char because int might match the return type of a gcc2
19744     builtin and then its argument prototype would still apply.  */
19745 char $ac_func();
19746
19747 int main() {
19748
19749 /* The GNU C library defines this for functions which it implements
19750     to always fail with ENOSYS.  Some functions are actually named
19751     something starting with __ and the normal name is an alias.  */
19752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19753 choke me
19754 #else
19755 $ac_func();
19756 #endif
19757
19758 ; return 0; }
19759 EOF
19760 if { (eval echo configure:19761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19761   rm -rf conftest*
19762   eval "ac_cv_func_$ac_func=yes"
19763 else
19764   echo "configure: failed program was:" >&5
19765   cat conftest.$ac_ext >&5
19766   rm -rf conftest*
19767   eval "ac_cv_func_$ac_func=no"
19768 fi
19769 rm -f conftest*
19770 fi
19771
19772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19773   echo "$ac_t""yes" 1>&6
19774     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19775   cat >> confdefs.h <<EOF
19776 #define $ac_tr_func 1
19777 EOF
19778  cat >> confdefs.h <<\EOF
19779 #define HAVE_DLERROR 1
19780 EOF
19781
19782 else
19783   echo "$ac_t""no" 1>&6
19784 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19785 echo "configure:19786: checking for dlerror in -ldl" >&5
19786 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19788   echo $ac_n "(cached) $ac_c" 1>&6
19789 else
19790   ac_save_LIBS="$LIBS"
19791 LIBS="-ldl  $LIBS"
19792 cat > conftest.$ac_ext <<EOF
19793 #line 19794 "configure"
19794 #include "confdefs.h"
19795 /* Override any gcc2 internal prototype to avoid an error.  */
19796 /* We use char because int might match the return type of a gcc2
19797     builtin and then its argument prototype would still apply.  */
19798 char dlerror();
19799
19800 int main() {
19801 dlerror()
19802 ; return 0; }
19803 EOF
19804 if { (eval echo configure:19805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19805   rm -rf conftest*
19806   eval "ac_cv_lib_$ac_lib_var=yes"
19807 else
19808   echo "configure: failed program was:" >&5
19809   cat conftest.$ac_ext >&5
19810   rm -rf conftest*
19811   eval "ac_cv_lib_$ac_lib_var=no"
19812 fi
19813 rm -f conftest*
19814 LIBS="$ac_save_LIBS"
19815
19816 fi
19817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19818   echo "$ac_t""yes" 1>&6
19819   cat >> confdefs.h <<\EOF
19820 #define HAVE_DLERROR 1
19821 EOF
19822
19823 else
19824   echo "$ac_t""no" 1>&6
19825 fi
19826
19827 fi
19828 done
19829
19830         fi
19831         fi
19832
19833         if test "$HAVE_DL_FUNCS" = 0; then
19834             if test "$HAVE_SHL_FUNCS" = 0; then
19835               if test "$USE_UNIX" = 1; then
19836                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19837                   wxUSE_DYNAMIC_LOADER=no
19838                   wxUSE_DYNLIB_CLASS=no
19839               else
19840                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19841               fi
19842             fi
19843         fi
19844     fi
19845 fi
19846
19847 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19848     cat >> confdefs.h <<\EOF
19849 #define wxUSE_DYNAMIC_LOADER 1
19850 EOF
19851
19852 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19853     cat >> confdefs.h <<\EOF
19854 #define wxUSE_DYNLIB_CLASS 1
19855 EOF
19856
19857 fi
19858
19859
19860 if test "$wxUSE_FONTMAP" = "yes" ; then
19861   cat >> confdefs.h <<\EOF
19862 #define wxUSE_FONTMAP 1
19863 EOF
19864
19865 fi
19866
19867 if test "$wxUSE_UNICODE" = "yes" ; then
19868   cat >> confdefs.h <<\EOF
19869 #define wxUSE_UNICODE 1
19870 EOF
19871
19872
19873   if test "$wxUSE_MSW" != 1; then
19874       wxUSE_UNICODE_MSLU=no
19875   fi
19876
19877   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19878         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19879 echo "configure:19880: checking for main in -lunicows" >&5
19880 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19882   echo $ac_n "(cached) $ac_c" 1>&6
19883 else
19884   ac_save_LIBS="$LIBS"
19885 LIBS="-lunicows  $LIBS"
19886 cat > conftest.$ac_ext <<EOF
19887 #line 19888 "configure"
19888 #include "confdefs.h"
19889
19890 int main() {
19891 main()
19892 ; return 0; }
19893 EOF
19894 if { (eval echo configure:19895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19895   rm -rf conftest*
19896   eval "ac_cv_lib_$ac_lib_var=yes"
19897 else
19898   echo "configure: failed program was:" >&5
19899   cat conftest.$ac_ext >&5
19900   rm -rf conftest*
19901   eval "ac_cv_lib_$ac_lib_var=no"
19902 fi
19903 rm -f conftest*
19904 LIBS="$ac_save_LIBS"
19905
19906 fi
19907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19908   echo "$ac_t""yes" 1>&6
19909   
19910                 cat >> confdefs.h <<\EOF
19911 #define wxUSE_UNICODE_MSLU 1
19912 EOF
19913
19914             
19915 else
19916   echo "$ac_t""no" 1>&6
19917
19918                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19919                              Applications will only run on Windows NT/2000/XP!" 1>&2
19920                 wxUSE_UNICODE_MSLU=no
19921             
19922 fi
19923
19924     fi
19925 fi
19926
19927 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19928   cat >> confdefs.h <<\EOF
19929 #define wxUSE_EXPERIMENTAL_PRINTF 1
19930 EOF
19931
19932 fi
19933
19934
19935
19936 IODBC_C_SRC=""
19937 if test "$wxUSE_ODBC" = "yes" ; then
19938     cat >> confdefs.h <<\EOF
19939 #define wxUSE_ODBC 1
19940 EOF
19941
19942     WXODBCFLAG="-D_IODBC_"
19943     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19944 fi
19945
19946
19947 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19948   cat >> confdefs.h <<\EOF
19949 #define wxUSE_POSTSCRIPT 1
19950 EOF
19951
19952 fi
19953
19954 cat >> confdefs.h <<\EOF
19955 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19956 EOF
19957
19958
19959 cat >> confdefs.h <<\EOF
19960 #define wxUSE_NORMALIZED_PS_FONTS 1
19961 EOF
19962
19963
19964
19965 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19966     cat >> confdefs.h <<\EOF
19967 #define wxUSE_CONSTRAINTS 1
19968 EOF
19969
19970     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19971 fi
19972
19973 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19974
19975
19976    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19977        cat >> confdefs.h <<\EOF
19978 #define wxUSE_MDI_ARCHITECTURE 1
19979 EOF
19980
19981        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19982    fi
19983 fi
19984
19985 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19986     cat >> confdefs.h <<\EOF
19987 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19988 EOF
19989
19990     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19991     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19992         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19993     fi
19994 fi
19995
19996 if test "$wxUSE_HELP" = "yes"; then
19997     cat >> confdefs.h <<\EOF
19998 #define wxUSE_HELP 1
19999 EOF
20000
20001     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20002
20003     if test "$wxUSE_MSW" = 1; then
20004       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20005         cat >> confdefs.h <<\EOF
20006 #define wxUSE_MS_HTML_HELP 1
20007 EOF
20008
20009       fi
20010     fi
20011
20012     if test "$wxUSE_WXHTML_HELP" = "yes"; then
20013       if test "$wxUSE_HTML" = "yes"; then
20014         cat >> confdefs.h <<\EOF
20015 #define wxUSE_WXHTML_HELP 1
20016 EOF
20017
20018       else
20019         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20020         wxUSE_WXHTML_HELP=no
20021       fi
20022     fi
20023 fi
20024
20025 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20026     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20027         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20028     else
20029         cat >> confdefs.h <<\EOF
20030 #define wxUSE_PRINTING_ARCHITECTURE 1
20031 EOF
20032
20033     fi
20034     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20035 fi
20036
20037 if test "$wxUSE_PROLOGIO" = "yes" ; then
20038     cat >> confdefs.h <<\EOF
20039 #define wxUSE_PROLOGIO 1
20040 EOF
20041
20042 fi
20043
20044 if test "$wxUSE_RESOURCES" = "yes" ; then
20045     if test "$wxUSE_NANOX" = "yes"; then
20046         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20047         else
20048                 cat >> confdefs.h <<\EOF
20049 #define wxUSE_RESOURCES 1
20050 EOF
20051
20052                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20053     fi
20054 fi
20055
20056 if test "$wxUSE_X_RESOURCES" = "yes"; then
20057     cat >> confdefs.h <<\EOF
20058 #define wxUSE_X_RESOURCES 1
20059 EOF
20060
20061 fi
20062
20063
20064 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
20065                           -o "$wxUSE_CLIPBOARD"     = "yes" \
20066                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20067     for ac_hdr in ole2.h
20068 do
20069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20071 echo "configure:20072: checking for $ac_hdr" >&5
20072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20073   echo $ac_n "(cached) $ac_c" 1>&6
20074 else
20075   cat > conftest.$ac_ext <<EOF
20076 #line 20077 "configure"
20077 #include "confdefs.h"
20078 #include <$ac_hdr>
20079 EOF
20080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20081 { (eval echo configure:20082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20083 if test -z "$ac_err"; then
20084   rm -rf conftest*
20085   eval "ac_cv_header_$ac_safe=yes"
20086 else
20087   echo "$ac_err" >&5
20088   echo "configure: failed program was:" >&5
20089   cat conftest.$ac_ext >&5
20090   rm -rf conftest*
20091   eval "ac_cv_header_$ac_safe=no"
20092 fi
20093 rm -f conftest*
20094 fi
20095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20096   echo "$ac_t""yes" 1>&6
20097     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20098   cat >> confdefs.h <<EOF
20099 #define $ac_tr_hdr 1
20100 EOF
20101  
20102 else
20103   echo "$ac_t""no" 1>&6
20104 fi
20105 done
20106
20107
20108     if test "$ac_cv_header_ole2_h" = "yes" ; then
20109         if test "$GCC" = yes ; then
20110             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20111             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20112             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20113             cat >> confdefs.h <<\EOF
20114 #define wxUSE_OLE 1
20115 EOF
20116
20117
20118         fi
20119
20120                 cat >> confdefs.h <<\EOF
20121 #define wxUSE_DATAOBJ 1
20122 EOF
20123
20124     else
20125         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20126
20127         wxUSE_CLIPBOARD=no
20128         wxUSE_DRAG_AND_DROP=no
20129         wxUSE_DATAOBJ=no
20130     fi
20131
20132     if test "$wxUSE_METAFILE" = "yes"; then
20133         cat >> confdefs.h <<\EOF
20134 #define wxUSE_METAFILE 1
20135 EOF
20136
20137
20138                 cat >> confdefs.h <<\EOF
20139 #define wxUSE_ENH_METAFILE 1
20140 EOF
20141
20142     fi
20143 fi
20144
20145 if test "$wxUSE_IPC" = "yes"; then
20146     if test "$wxUSE_SOCKETS" != "yes"; then
20147         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20148     fi
20149
20150     cat >> confdefs.h <<\EOF
20151 #define wxUSE_IPC 1
20152 EOF
20153
20154 fi
20155
20156 if test "$wxUSE_CLIPBOARD" = "yes"; then
20157     if test "$wxUSE_MGL" = 1; then
20158         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20159         wxUSE_CLIPBOARD=no
20160     fi
20161
20162     if test "$wxUSE_CLIPBOARD" = "yes"; then
20163         cat >> confdefs.h <<\EOF
20164 #define wxUSE_CLIPBOARD 1
20165 EOF
20166
20167
20168                 cat >> confdefs.h <<\EOF
20169 #define wxUSE_DATAOBJ 1
20170 EOF
20171
20172     fi
20173 fi
20174
20175 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20176     if test "$wxUSE_GTK" = 1; then
20177         if test "$WXGTK12" != 1; then
20178             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20179             wxUSE_DRAG_AND_DROP=no
20180         fi
20181     fi
20182
20183     if test "$wxUSE_MOTIF" = 1; then
20184         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20185         wxUSE_DRAG_AND_DROP=no
20186     fi
20187
20188     if test "$wxUSE_X11" = 1; then
20189         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20190         wxUSE_DRAG_AND_DROP=no
20191     fi
20192
20193     if test "$wxUSE_MGL" = 1; then
20194         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20195         wxUSE_DRAG_AND_DROP=no
20196     fi
20197
20198     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20199         cat >> confdefs.h <<\EOF
20200 #define wxUSE_DRAG_AND_DROP 1
20201 EOF
20202
20203         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20204     fi
20205
20206 fi
20207
20208 if test "$wxUSE_SPLINES" = "yes" ; then
20209   cat >> confdefs.h <<\EOF
20210 #define wxUSE_SPLINES 1
20211 EOF
20212
20213 fi
20214
20215
20216 USES_CONTROLS=0
20217 if test "$wxUSE_CONTROLS" = "yes"; then
20218   USES_CONTROLS=1
20219 fi
20220
20221 if test "$wxUSE_ACCEL" = "yes"; then
20222   cat >> confdefs.h <<\EOF
20223 #define wxUSE_ACCEL 1
20224 EOF
20225
20226   USES_CONTROLS=1
20227 fi
20228
20229 if test "$wxUSE_BUTTON" = "yes"; then
20230   cat >> confdefs.h <<\EOF
20231 #define wxUSE_BUTTON 1
20232 EOF
20233
20234   USES_CONTROLS=1
20235 fi
20236
20237 if test "$wxUSE_BMPBUTTON" = "yes"; then
20238   cat >> confdefs.h <<\EOF
20239 #define wxUSE_BMPBUTTON 1
20240 EOF
20241
20242   USES_CONTROLS=1
20243 fi
20244
20245 if test "$wxUSE_CALCTRL" = "yes"; then
20246   cat >> confdefs.h <<\EOF
20247 #define wxUSE_CALENDARCTRL 1
20248 EOF
20249
20250   USES_CONTROLS=1
20251   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20252 fi
20253
20254 if test "$wxUSE_CARET" = "yes"; then
20255   cat >> confdefs.h <<\EOF
20256 #define wxUSE_CARET 1
20257 EOF
20258
20259   USES_CONTROLS=1
20260   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20261 fi
20262
20263 if test "$wxUSE_COMBOBOX" = "yes"; then
20264   cat >> confdefs.h <<\EOF
20265 #define wxUSE_COMBOBOX 1
20266 EOF
20267
20268   USES_CONTROLS=1
20269 fi
20270
20271 if test "$wxUSE_CHOICE" = "yes"; then
20272   cat >> confdefs.h <<\EOF
20273 #define wxUSE_CHOICE 1
20274 EOF
20275
20276   USES_CONTROLS=1
20277 fi
20278
20279 if test "$wxUSE_CHECKBOX" = "yes"; then
20280   cat >> confdefs.h <<\EOF
20281 #define wxUSE_CHECKBOX 1
20282 EOF
20283
20284   USES_CONTROLS=1
20285 fi
20286
20287 if test "$wxUSE_CHECKLST" = "yes"; then
20288   cat >> confdefs.h <<\EOF
20289 #define wxUSE_CHECKLISTBOX 1
20290 EOF
20291
20292   USES_CONTROLS=1
20293   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20294 fi
20295
20296 if test "$wxUSE_GAUGE" = "yes"; then
20297   cat >> confdefs.h <<\EOF
20298 #define wxUSE_GAUGE 1
20299 EOF
20300
20301   USES_CONTROLS=1
20302 fi
20303
20304 if test "$wxUSE_NEW_GRID" = "yes"; then
20305   wxUSE_GRID="yes"
20306   cat >> confdefs.h <<\EOF
20307 #define wxUSE_NEW_GRID 1
20308 EOF
20309
20310   USES_CONTROLS=1
20311   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20312 fi
20313
20314 if test "$wxUSE_GRID" = "yes"; then
20315   cat >> confdefs.h <<\EOF
20316 #define wxUSE_GRID 1
20317 EOF
20318
20319   USES_CONTROLS=1
20320   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20321 fi
20322
20323 if test "$wxUSE_IMAGLIST" = "yes"; then
20324     cat >> confdefs.h <<\EOF
20325 #define wxUSE_IMAGLIST 1
20326 EOF
20327
20328 fi
20329
20330 if test "$wxUSE_LISTBOX" = "yes"; then
20331     cat >> confdefs.h <<\EOF
20332 #define wxUSE_LISTBOX 1
20333 EOF
20334
20335     USES_CONTROLS=1
20336 fi
20337
20338 if test "$wxUSE_LISTCTRL" = "yes"; then
20339     if test "$wxUSE_IMAGLIST" = "yes"; then
20340         cat >> confdefs.h <<\EOF
20341 #define wxUSE_LISTCTRL 1
20342 EOF
20343
20344         USES_CONTROLS=1
20345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20346     else
20347         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20348     fi
20349 fi
20350
20351 if test "$wxUSE_NOTEBOOK" = "yes"; then
20352     cat >> confdefs.h <<\EOF
20353 #define wxUSE_NOTEBOOK 1
20354 EOF
20355
20356     USES_CONTROLS=1
20357     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20358 fi
20359
20360 if test "$wxUSE_PROPSHEET" = "yes"; then
20361     cat >> confdefs.h <<\EOF
20362 #define wxUSE_PROPSHEET 1
20363 EOF
20364
20365     USES_CONTROLS=1
20366     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20367 fi
20368
20369 if test "$wxUSE_RADIOBOX" = "yes"; then
20370     cat >> confdefs.h <<\EOF
20371 #define wxUSE_RADIOBOX 1
20372 EOF
20373
20374     USES_CONTROLS=1
20375 fi
20376
20377 if test "$wxUSE_RADIOBTN" = "yes"; then
20378     cat >> confdefs.h <<\EOF
20379 #define wxUSE_RADIOBTN 1
20380 EOF
20381
20382     USES_CONTROLS=1
20383 fi
20384
20385 if test "$wxUSE_SASH" = "yes"; then
20386     cat >> confdefs.h <<\EOF
20387 #define wxUSE_SASH 1
20388 EOF
20389
20390     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20391 fi
20392
20393 if test "$wxUSE_SCROLLBAR" = "yes"; then
20394     cat >> confdefs.h <<\EOF
20395 #define wxUSE_SCROLLBAR 1
20396 EOF
20397
20398     USES_CONTROLS=1
20399     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20400 fi
20401
20402 if test "$wxUSE_SLIDER" = "yes"; then
20403     cat >> confdefs.h <<\EOF
20404 #define wxUSE_SLIDER 1
20405 EOF
20406
20407     USES_CONTROLS=1
20408 fi
20409
20410 if test "$wxUSE_SPINBTN" = "yes"; then
20411     cat >> confdefs.h <<\EOF
20412 #define wxUSE_SPINBTN 1
20413 EOF
20414
20415     USES_CONTROLS=1
20416 fi
20417
20418 if test "$wxUSE_SPINCTRL" = "yes"; then
20419     cat >> confdefs.h <<\EOF
20420 #define wxUSE_SPINCTRL 1
20421 EOF
20422
20423     USES_CONTROLS=1
20424 fi
20425
20426 if test "$wxUSE_SPLITTER" = "yes"; then
20427     cat >> confdefs.h <<\EOF
20428 #define wxUSE_SPLITTER 1
20429 EOF
20430
20431     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20432 fi
20433
20434 if test "$wxUSE_STATBMP" = "yes"; then
20435     cat >> confdefs.h <<\EOF
20436 #define wxUSE_STATBMP 1
20437 EOF
20438
20439     USES_CONTROLS=1
20440 fi
20441
20442 if test "$wxUSE_STATBOX" = "yes"; then
20443     cat >> confdefs.h <<\EOF
20444 #define wxUSE_STATBOX 1
20445 EOF
20446
20447     USES_CONTROLS=1
20448 fi
20449
20450 if test "$wxUSE_STATTEXT" = "yes"; then
20451     cat >> confdefs.h <<\EOF
20452 #define wxUSE_STATTEXT 1
20453 EOF
20454
20455     USES_CONTROLS=1
20456 fi
20457
20458 if test "$wxUSE_STATLINE" = "yes"; then
20459     if test "$wxUSE_WINE" = 1 ; then
20460         echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20461     else
20462         cat >> confdefs.h <<\EOF
20463 #define wxUSE_STATLINE 1
20464 EOF
20465
20466         USES_CONTROLS=1
20467     fi
20468 fi
20469
20470 if test "$wxUSE_STATUSBAR" = "yes"; then
20471     cat >> confdefs.h <<\EOF
20472 #define wxUSE_STATUSBAR 1
20473 EOF
20474
20475     USES_CONTROLS=1
20476
20477     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20478 fi
20479
20480 if test "$wxUSE_TABDIALOG" = "yes"; then
20481     cat >> confdefs.h <<\EOF
20482 #define wxUSE_TAB_DIALOG 1
20483 EOF
20484
20485     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20486 fi
20487
20488 if test "$wxUSE_TEXTCTRL" = "yes"; then
20489     cat >> confdefs.h <<\EOF
20490 #define wxUSE_TEXTCTRL 1
20491 EOF
20492
20493     USES_CONTROLS=1
20494     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20495 fi
20496
20497 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20498     if test "$wxUSE_MAC" = 1; then
20499         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20500         wxUSE_TOGGLEBTN=no
20501     fi
20502     if test "$wxUSE_UNIVERSAL" = "yes"; then
20503         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20504         wxUSE_TOGGLEBTN=no
20505     fi
20506
20507     if test "$wxUSE_TOGGLEBTN" = "yes"; then
20508         cat >> confdefs.h <<\EOF
20509 #define wxUSE_TOGGLEBTN 1
20510 EOF
20511
20512         USES_CONTROLS=1
20513     fi
20514 fi
20515
20516 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20517     cat >> confdefs.h <<\EOF
20518 #define wxUSE_TOOLBAR_SIMPLE 1
20519 EOF
20520
20521     wxUSE_TOOLBAR="yes"
20522     USES_CONTROLS=1
20523 fi
20524
20525 if test "$wxUSE_TOOLBAR" = "yes"; then
20526     cat >> confdefs.h <<\EOF
20527 #define wxUSE_TOOLBAR 1
20528 EOF
20529
20530     USES_CONTROLS=1
20531
20532         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20533         wxUSE_TOOLBAR_NATIVE="yes"
20534     fi
20535
20536     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20537         cat >> confdefs.h <<\EOF
20538 #define wxUSE_TOOLBAR_NATIVE 1
20539 EOF
20540
20541         USES_CONTROLS=1
20542     fi
20543
20544     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20545 fi
20546
20547 if test "$wxUSE_TOOLTIPS" = "yes"; then
20548     if test "$wxUSE_MOTIF" = 1; then
20549         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20550     else
20551         if test "$wxUSE_WINE" = 1; then
20552             echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20553         else
20554             if test "$wxUSE_UNIVERSAL" = "yes"; then
20555                 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20556             else
20557                 cat >> confdefs.h <<\EOF
20558 #define wxUSE_TOOLTIPS 1
20559 EOF
20560
20561             fi
20562         fi
20563     fi
20564 fi
20565
20566 if test "$wxUSE_TREECTRL" = "yes"; then
20567     if test "$wxUSE_IMAGLIST" = "yes"; then
20568         cat >> confdefs.h <<\EOF
20569 #define wxUSE_TREECTRL 1
20570 EOF
20571
20572         USES_CONTROLS=1
20573         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20574     else
20575         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20576     fi
20577 fi
20578
20579 if test "$wxUSE_POPUPWIN" = "yes"; then
20580     if test "$wxUSE_MAC" = 1; then
20581         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20582     else
20583         if test "$wxUSE_MOTIF" = 1; then
20584             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20585         else
20586             if test "$wxUSE_PM" = 1; then
20587                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20588             else
20589                 cat >> confdefs.h <<\EOF
20590 #define wxUSE_POPUPWIN 1
20591 EOF
20592
20593
20594                 USES_CONTROLS=1
20595             fi
20596         fi
20597     fi
20598 fi
20599
20600 if test "$wxUSE_TIPWINDOW" = "yes"; then
20601     if test "$wxUSE_PM" = 1; then
20602         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20603     else
20604         cat >> confdefs.h <<\EOF
20605 #define wxUSE_TIPWINDOW 1
20606 EOF
20607
20608     fi
20609 fi
20610
20611 if test "$USES_CONTROLS" = 1; then
20612     cat >> confdefs.h <<\EOF
20613 #define wxUSE_CONTROLS 1
20614 EOF
20615
20616 fi
20617
20618
20619 if test "$wxUSE_TREELAYOUT" = "yes"; then
20620     cat >> confdefs.h <<\EOF
20621 #define wxUSE_TREELAYOUT 1
20622 EOF
20623
20624     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20625 fi
20626
20627 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20628     cat >> confdefs.h <<\EOF
20629 #define wxUSE_DRAGIMAGE 1
20630 EOF
20631
20632     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20633 fi
20634
20635 if test "$wxUSE_MENUS" = "yes"; then
20636     cat >> confdefs.h <<\EOF
20637 #define wxUSE_MENUS 1
20638 EOF
20639
20640     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20641 fi
20642
20643 if test "$wxUSE_METAFILE" = "yes"; then
20644     cat >> confdefs.h <<\EOF
20645 #define wxUSE_METAFILE 1
20646 EOF
20647
20648 fi
20649
20650 if test "$wxUSE_MIMETYPE" = "yes"; then
20651     cat >> confdefs.h <<\EOF
20652 #define wxUSE_MIMETYPE 1
20653 EOF
20654
20655 fi
20656
20657 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20658     cat >> confdefs.h <<\EOF
20659 #define wxUSE_SYSTEM_OPTIONS 1
20660 EOF
20661
20662 if test "$TOOLKIT" = "MSW"; then
20663     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20664 fi
20665
20666 fi
20667
20668 if test "$wxUSE_PROTOCOL" = "yes"; then
20669     if test "$wxUSE_SOCKETS" != "yes"; then
20670         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20671         wxUSE_PROTOCOL=no
20672     fi
20673
20674     if test "$wxUSE_PROTOCOL" = "yes"; then
20675         cat >> confdefs.h <<\EOF
20676 #define wxUSE_PROTOCOL 1
20677 EOF
20678
20679
20680         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20681             cat >> confdefs.h <<\EOF
20682 #define wxUSE_PROTOCOL_HTTP 1
20683 EOF
20684
20685         fi
20686         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20687             cat >> confdefs.h <<\EOF
20688 #define wxUSE_PROTOCOL_FTP 1
20689 EOF
20690
20691         fi
20692         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20693             cat >> confdefs.h <<\EOF
20694 #define wxUSE_PROTOCOL_FILE 1
20695 EOF
20696
20697         fi
20698     fi
20699 fi
20700
20701 if test "$wxUSE_URL" = "yes"; then
20702     if test "$wxUSE_PROTOCOL" != "yes"; then
20703         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20704         wxUSE_URL=no
20705     fi
20706     if test "$wxUSE_URL" = "yes"; then
20707         cat >> confdefs.h <<\EOF
20708 #define wxUSE_URL 1
20709 EOF
20710
20711     fi
20712 fi
20713
20714 if test "$wxUSE_MINIFRAME" = "yes"; then
20715     cat >> confdefs.h <<\EOF
20716 #define wxUSE_MINIFRAME 1
20717 EOF
20718
20719     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20720 fi
20721
20722 if test "$wxUSE_HTML" = "yes"; then
20723     cat >> confdefs.h <<\EOF
20724 #define wxUSE_HTML 1
20725 EOF
20726
20727     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20728 fi
20729
20730 if test "$wxUSE_VALIDATORS" = "yes"; then
20731     cat >> confdefs.h <<\EOF
20732 #define wxUSE_VALIDATORS 1
20733 EOF
20734
20735     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20736 fi
20737
20738 if test "$wxUSE_PALETTE" = "yes" ; then
20739   cat >> confdefs.h <<\EOF
20740 #define wxUSE_PALETTE 1
20741 EOF
20742
20743 fi
20744
20745 if test "$wxUSE_IMAGE" = "yes" ; then
20746   cat >> confdefs.h <<\EOF
20747 #define wxUSE_IMAGE 1
20748 EOF
20749
20750 fi
20751
20752 if test "$wxUSE_GIF" = "yes" ; then
20753   cat >> confdefs.h <<\EOF
20754 #define wxUSE_GIF 1
20755 EOF
20756
20757 fi
20758
20759 if test "$wxUSE_PCX" = "yes" ; then
20760   cat >> confdefs.h <<\EOF
20761 #define wxUSE_PCX 1
20762 EOF
20763
20764 fi
20765
20766 if test "$wxUSE_IFF" = "yes" ; then
20767   cat >> confdefs.h <<\EOF
20768 #define wxUSE_IFF 1
20769 EOF
20770
20771 fi
20772
20773 if test "$wxUSE_PNM" = "yes" ; then
20774   cat >> confdefs.h <<\EOF
20775 #define wxUSE_PNM 1
20776 EOF
20777
20778 fi
20779
20780 if test "$wxUSE_XPM" = "yes" ; then
20781   cat >> confdefs.h <<\EOF
20782 #define wxUSE_XPM 1
20783 EOF
20784
20785 fi
20786
20787 if test "$wxUSE_ICO_CUR" = "yes" ; then
20788   cat >> confdefs.h <<\EOF
20789 #define wxUSE_ICO_CUR 1
20790 EOF
20791
20792 fi
20793
20794 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20795     LIBS=" -lunicows $LIBS"
20796 fi
20797
20798
20799 if test "$wxUSE_CHOICEDLG" = "yes"; then
20800     cat >> confdefs.h <<\EOF
20801 #define wxUSE_CHOICEDLG 1
20802 EOF
20803
20804 fi
20805
20806 if test "$wxUSE_COLOURDLG" = "yes"; then
20807     cat >> confdefs.h <<\EOF
20808 #define wxUSE_COLOURDLG 1
20809 EOF
20810
20811 fi
20812
20813 if test "$wxUSE_FILEDLG" = "yes"; then
20814     cat >> confdefs.h <<\EOF
20815 #define wxUSE_FILEDLG 1
20816 EOF
20817
20818 fi
20819
20820 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20821     cat >> confdefs.h <<\EOF
20822 #define wxUSE_FINDREPLDLG 1
20823 EOF
20824
20825 fi
20826
20827 if test "$wxUSE_FONTDLG" = "yes"; then
20828     cat >> confdefs.h <<\EOF
20829 #define wxUSE_FONTDLG 1
20830 EOF
20831
20832 fi
20833
20834 if test "$wxUSE_DIRDLG" = "yes"; then
20835     if test "$wxUSE_TREECTRL" != "yes"; then
20836         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20837     else
20838         cat >> confdefs.h <<\EOF
20839 #define wxUSE_DIRDLG 1
20840 EOF
20841
20842     fi
20843 fi
20844
20845 if test "$wxUSE_MSGDLG" = "yes"; then
20846     cat >> confdefs.h <<\EOF
20847 #define wxUSE_MSGDLG 1
20848 EOF
20849
20850 fi
20851
20852 if test "$wxUSE_NUMBERDLG" = "yes"; then
20853     cat >> confdefs.h <<\EOF
20854 #define wxUSE_NUMBERDLG 1
20855 EOF
20856
20857 fi
20858
20859 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20860     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20861        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20862     else
20863         cat >> confdefs.h <<\EOF
20864 #define wxUSE_PROGRESSDLG 1
20865 EOF
20866
20867     fi
20868 fi
20869
20870 if test "$wxUSE_SPLASH" = "yes"; then
20871     cat >> confdefs.h <<\EOF
20872 #define wxUSE_SPLASH 1
20873 EOF
20874
20875 fi
20876
20877 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20878     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20879        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20880     else
20881         cat >> confdefs.h <<\EOF
20882 #define wxUSE_STARTUP_TIPS 1
20883 EOF
20884
20885     fi
20886 fi
20887
20888 if test "$wxUSE_TEXTDLG" = "yes"; then
20889     cat >> confdefs.h <<\EOF
20890 #define wxUSE_TEXTDLG 1
20891 EOF
20892
20893 fi
20894
20895 if test "$wxUSE_WIZARDDLG" = "yes"; then
20896     cat >> confdefs.h <<\EOF
20897 #define wxUSE_WIZARDDLG 1
20898 EOF
20899
20900     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20901 fi
20902
20903
20904 if test "$cross_compiling" = "yes"; then
20905         OSINFO="\"$host\""
20906 else
20907         OSINFO=`uname -s -r -m`
20908     OSINFO="\"$OSINFO\""
20909 fi
20910
20911 cat >> confdefs.h <<EOF
20912 #define WXWIN_OS_DESCRIPTION $OSINFO
20913 EOF
20914
20915
20916
20917 if test "x$prefix" != "xNONE"; then
20918     wxPREFIX=$prefix
20919 else
20920     wxPREFIX=$ac_default_prefix
20921 fi
20922
20923 cat >> confdefs.h <<EOF
20924 #define wxINSTALL_PREFIX "$wxPREFIX"
20925 EOF
20926
20927
20928
20929
20930
20931 if test "$wxUSE_MAC" = 1 ; then
20932     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20933 fi
20934
20935
20936 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20937
20938 if test "$wxUSE_GUI" = "yes"; then
20939
20940     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20941
20942         
20943             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20944                      drawing dynamic erase event exec font image \
20945                      minimal propsize rotate widgets"
20946
20947         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20948 else
20949     SAMPLES_SUBDIRS="console"
20950 fi
20951
20952
20953 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20954 -I\${top_srcdir}/include \
20955 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20956 $TOOLKIT_INCLUDE"
20957
20958 if test "$wxUSE_GTK" = 1; then
20959     WXCONFIG_INCLUDE=
20960 else
20961     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20962 fi
20963
20964 if test "$GXX" = yes ; then
20965         CXXWARNINGS="-Wall"
20966         
20967             if test "$wxUSE_NO_DEPS" = "no" ; then
20968         CFLAGS="-MMD $CFLAGS"
20969         CXXFLAGS="-MMD $CXXFLAGS"
20970     fi
20971 fi
20972
20973 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20974
20975 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20976 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20977 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20978
20979 LDFLAGS="$LDFLAGS $PROFILE"
20980
20981 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
21073 echo "configure:21074: checking whether ${MAKE-make} sets \${MAKE}" >&5
21074 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
21075 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
21076   echo $ac_n "(cached) $ac_c" 1>&6
21077 else
21078   cat > conftestmake <<\EOF
21079 all:
21080         @echo 'ac_maketemp="${MAKE}"'
21081 EOF
21082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21083 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
21084 if test -n "$ac_maketemp"; then
21085   eval ac_cv_prog_make_${ac_make}_set=yes
21086 else
21087   eval ac_cv_prog_make_${ac_make}_set=no
21088 fi
21089 rm -f conftestmake
21090 fi
21091 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21092   echo "$ac_t""yes" 1>&6
21093   SET_MAKE=
21094 else
21095   echo "$ac_t""no" 1>&6
21096   SET_MAKE="MAKE=${MAKE-make}"
21097 fi
21098
21099
21100 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21101     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
21102 fi
21103
21104
21105
21106 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21107 wx_cv_if_gnu_make=$IF_GNU_MAKE
21108 wx_cv_path_ifs=$PATH_IFS
21109 wx_cv_program_ext=$PROGRAM_EXT
21110 wx_cv_target_library=$WX_TARGET_LIBRARY
21111 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21112 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21113 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21114        wx_cv_path_ifs wx_cv_program_ext \
21115        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21116
21117 subdirs="demos samples utils contrib"
21118
21119
21120 trap '' 1 2 15
21121 cat > confcache <<\EOF
21122 # This file is a shell script that caches the results of configure
21123 # tests run on this system so they can be shared between configure
21124 # scripts and configure runs.  It is not useful on other systems.
21125 # If it contains results you don't want to keep, you may remove or edit it.
21126 #
21127 # By default, configure uses ./config.cache as the cache file,
21128 # creating it if it does not exist already.  You can give configure
21129 # the --cache-file=FILE option to use a different cache file; that is
21130 # what configure does when it calls configure scripts in
21131 # subdirectories, so they share the cache.
21132 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21133 # config.status only pays attention to the cache file if you give it the
21134 # --recheck option to rerun configure.
21135 #
21136 EOF
21137 # The following way of writing the cache mishandles newlines in values,
21138 # but we know of no workaround that is simple, portable, and efficient.
21139 # So, don't put newlines in cache variables' values.
21140 # Ultrix sh set writes to stderr and can't be redirected directly,
21141 # and sets the high bit in the cache file unless we assign to the vars.
21142 (set) 2>&1 |
21143   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21144   *ac_space=\ *)
21145     # `set' does not quote correctly, so add quotes (double-quote substitution
21146     # turns \\\\ into \\, and sed turns \\ into \).
21147     sed -n \
21148       -e "s/'/'\\\\''/g" \
21149       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21150     ;;
21151   *)
21152     # `set' quotes correctly as required by POSIX, so do not add quotes.
21153     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21154     ;;
21155   esac >> confcache
21156 if cmp -s $cache_file confcache; then
21157   :
21158 else
21159   if test -w $cache_file; then
21160     echo "updating cache $cache_file"
21161     cat confcache > $cache_file
21162   else
21163     echo "not updating unwritable cache $cache_file"
21164   fi
21165 fi
21166 rm -f confcache
21167
21168 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21169
21170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21171 # Let make expand exec_prefix.
21172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21173
21174 # Any assignment to VPATH causes Sun make to only execute
21175 # the first set of double-colon rules, so remove it if not needed.
21176 # If there is a colon in the path, we need to keep it.
21177 if test "x$srcdir" = x.; then
21178   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21179 fi
21180
21181 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21182
21183 DEFS=-DHAVE_CONFIG_H
21184
21185 # Without the "./", some shells look in PATH for config.status.
21186 : ${CONFIG_STATUS=./config.status}
21187
21188 echo creating $CONFIG_STATUS
21189 rm -f $CONFIG_STATUS
21190 cat > $CONFIG_STATUS <<EOF
21191 #! /bin/sh
21192 # Generated automatically by configure.
21193 # Run this file to recreate the current configuration.
21194 # This directory was configured as follows,
21195 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21196 #
21197 # $0 $ac_configure_args
21198 #
21199 # Compiler output produced by configure, useful for debugging
21200 # configure, is in ./config.log if it exists.
21201
21202 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21203 for ac_option
21204 do
21205   case "\$ac_option" in
21206   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21207     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21208     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21209   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21210     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21211     exit 0 ;;
21212   -help | --help | --hel | --he | --h)
21213     echo "\$ac_cs_usage"; exit 0 ;;
21214   *) echo "\$ac_cs_usage"; exit 1 ;;
21215   esac
21216 done
21217
21218 ac_given_srcdir=$srcdir
21219 ac_given_INSTALL="$INSTALL"
21220
21221 trap 'rm -fr `echo "
21222             wx-config
21223             src/make.env
21224             src/makeprog.env
21225             src/makelib.env
21226             Makefile
21227            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21228 EOF
21229 cat >> $CONFIG_STATUS <<EOF
21230
21231 # Protect against being on the right side of a sed subst in config.status.
21232 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21233  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21234 $ac_vpsub
21235 $extrasub
21236 s%@SHELL@%$SHELL%g
21237 s%@CFLAGS@%$CFLAGS%g
21238 s%@CPPFLAGS@%$CPPFLAGS%g
21239 s%@CXXFLAGS@%$CXXFLAGS%g
21240 s%@FFLAGS@%$FFLAGS%g
21241 s%@DEFS@%$DEFS%g
21242 s%@LDFLAGS@%$LDFLAGS%g
21243 s%@LIBS@%$LIBS%g
21244 s%@exec_prefix@%$exec_prefix%g
21245 s%@prefix@%$prefix%g
21246 s%@program_transform_name@%$program_transform_name%g
21247 s%@bindir@%$bindir%g
21248 s%@sbindir@%$sbindir%g
21249 s%@libexecdir@%$libexecdir%g
21250 s%@datadir@%$datadir%g
21251 s%@sysconfdir@%$sysconfdir%g
21252 s%@sharedstatedir@%$sharedstatedir%g
21253 s%@localstatedir@%$localstatedir%g
21254 s%@libdir@%$libdir%g
21255 s%@includedir@%$includedir%g
21256 s%@oldincludedir@%$oldincludedir%g
21257 s%@infodir@%$infodir%g
21258 s%@mandir@%$mandir%g
21259 s%@host@%$host%g
21260 s%@host_alias@%$host_alias%g
21261 s%@host_cpu@%$host_cpu%g
21262 s%@host_vendor@%$host_vendor%g
21263 s%@host_os@%$host_os%g
21264 s%@target@%$target%g
21265 s%@target_alias@%$target_alias%g
21266 s%@target_cpu@%$target_cpu%g
21267 s%@target_vendor@%$target_vendor%g
21268 s%@target_os@%$target_os%g
21269 s%@build@%$build%g
21270 s%@build_alias@%$build_alias%g
21271 s%@build_cpu@%$build_cpu%g
21272 s%@build_vendor@%$build_vendor%g
21273 s%@build_os@%$build_os%g
21274 s%@CC@%$CC%g
21275 s%@CPP@%$CPP%g
21276 s%@CXX@%$CXX%g
21277 s%@RANLIB@%$RANLIB%g
21278 s%@AR@%$AR%g
21279 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21280 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21281 s%@INSTALL_DATA@%$INSTALL_DATA%g
21282 s%@STRIP@%$STRIP%g
21283 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21284 s%@YACC@%$YACC%g
21285 s%@LEX@%$LEX%g
21286 s%@LEXLIB@%$LEXLIB%g
21287 s%@LN_S@%$LN_S%g
21288 s%@CXXCPP@%$CXXCPP%g
21289 s%@PKG_CONFIG@%$PKG_CONFIG%g
21290 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21291 s%@GTK_LIBS@%$GTK_LIBS%g
21292 s%@GTK_CONFIG@%$GTK_CONFIG%g
21293 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21294 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21295 s%@X_CFLAGS@%$X_CFLAGS%g
21296 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21297 s%@X_LIBS@%$X_LIBS%g
21298 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21299 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21300 s%@RESCOMP@%$RESCOMP%g
21301 s%@DEREZ@%$DEREZ%g
21302 s%@LIBICONV@%$LIBICONV%g
21303 s%@LEX_STEM@%$LEX_STEM%g
21304 s%@PATH_IFS@%$PATH_IFS%g
21305 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21306 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21307 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21308 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21309 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21310 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21311 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21312 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21313 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21314 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21315 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21316 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21317 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21318 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21319 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21320 s%@WX_ALL@%$WX_ALL%g
21321 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21322 s%@SHARED_LD@%$SHARED_LD%g
21323 s%@PIC_FLAG@%$PIC_FLAG%g
21324 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21325 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21326 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21327 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21328 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21329 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21330 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21331 s%@USE_GUI@%$USE_GUI%g
21332 s%@AFMINSTALL@%$AFMINSTALL%g
21333 s%@TOOLKIT@%$TOOLKIT%g
21334 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21335 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21336 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21337 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21338 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21339 s%@cross_compiling@%$cross_compiling%g
21340 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21341 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21342 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21343 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21344 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21345 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21346 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21347 s%@ALL_HEADERS@%$ALL_HEADERS%g
21348 s%@ALL_SOURCES@%$ALL_SOURCES%g
21349 s%@GUIDIST@%$GUIDIST%g
21350 s%@PORT_FILES@%$PORT_FILES%g
21351 s%@DISTDIR@%$DISTDIR%g
21352 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21353 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21354 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21355 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21356 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21357 s%@EXTRADEFS@%$EXTRADEFS%g
21358 s%@RESFLAGS@%$RESFLAGS%g
21359 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21360 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21361 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21362 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21363 s%@LIBWXMACRES@%$LIBWXMACRES%g
21364 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21365 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21366 s%@DLLTOOL@%$DLLTOOL%g
21367 s%@AS@%$AS%g
21368 s%@NM@%$NM%g
21369 s%@LD@%$LD%g
21370 s%@MAKEINFO@%$MAKEINFO%g
21371 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21372 s%@SET_MAKE@%$SET_MAKE%g
21373 s%@subdirs@%$subdirs%g
21374
21375 CEOF
21376 EOF
21377
21378 cat >> $CONFIG_STATUS <<\EOF
21379
21380 # Split the substitutions into bite-sized pieces for seds with
21381 # small command number limits, like on Digital OSF/1 and HP-UX.
21382 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21383 ac_file=1 # Number of current file.
21384 ac_beg=1 # First line for current file.
21385 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21386 ac_more_lines=:
21387 ac_sed_cmds=""
21388 while $ac_more_lines; do
21389   if test $ac_beg -gt 1; then
21390     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21391   else
21392     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21393   fi
21394   if test ! -s conftest.s$ac_file; then
21395     ac_more_lines=false
21396     rm -f conftest.s$ac_file
21397   else
21398     if test -z "$ac_sed_cmds"; then
21399       ac_sed_cmds="sed -f conftest.s$ac_file"
21400     else
21401       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21402     fi
21403     ac_file=`expr $ac_file + 1`
21404     ac_beg=$ac_end
21405     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21406   fi
21407 done
21408 if test -z "$ac_sed_cmds"; then
21409   ac_sed_cmds=cat
21410 fi
21411 EOF
21412
21413 cat >> $CONFIG_STATUS <<EOF
21414
21415 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21416             src/make.env
21417             src/makeprog.env
21418             src/makelib.env
21419             Makefile
21420           "}
21421 EOF
21422 cat >> $CONFIG_STATUS <<\EOF
21423 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21424   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21425   case "$ac_file" in
21426   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21427        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21428   *) ac_file_in="${ac_file}.in" ;;
21429   esac
21430
21431   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21432
21433   # Remove last slash and all that follows it.  Not all systems have dirname.
21434   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21435   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21436     # The file is in a subdirectory.
21437     test ! -d "$ac_dir" && mkdir "$ac_dir"
21438     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21439     # A "../" for each directory in $ac_dir_suffix.
21440     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21441   else
21442     ac_dir_suffix= ac_dots=
21443   fi
21444
21445   case "$ac_given_srcdir" in
21446   .)  srcdir=.
21447       if test -z "$ac_dots"; then top_srcdir=.
21448       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21449   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21450   *) # Relative path.
21451     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21452     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21453   esac
21454
21455   case "$ac_given_INSTALL" in
21456   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21457   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21458   esac
21459
21460   echo creating "$ac_file"
21461   rm -f "$ac_file"
21462   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21463   case "$ac_file" in
21464   *Makefile*) ac_comsub="1i\\
21465 # $configure_input" ;;
21466   *) ac_comsub= ;;
21467   esac
21468
21469   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21470   sed -e "$ac_comsub
21471 s%@configure_input@%$configure_input%g
21472 s%@srcdir@%$srcdir%g
21473 s%@top_srcdir@%$top_srcdir%g
21474 s%@INSTALL@%$INSTALL%g
21475 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21476 fi; done
21477 rm -f conftest.s*
21478
21479 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21480 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21481 #
21482 # ac_d sets the value in "#define NAME VALUE" lines.
21483 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21484 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21485 ac_dC='\3'
21486 ac_dD='%g'
21487 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21488 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21489 ac_uB='\([      ]\)%\1#\2define\3'
21490 ac_uC=' '
21491 ac_uD='\4%g'
21492 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21493 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21494 ac_eB='$%\1#\2define\3'
21495 ac_eC=' '
21496 ac_eD='%g'
21497
21498 if test "${CONFIG_HEADERS+set}" != set; then
21499 EOF
21500 cat >> $CONFIG_STATUS <<EOF
21501   CONFIG_HEADERS="setup.h:setup.h.in"
21502 EOF
21503 cat >> $CONFIG_STATUS <<\EOF
21504 fi
21505 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21506   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21507   case "$ac_file" in
21508   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21509        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21510   *) ac_file_in="${ac_file}.in" ;;
21511   esac
21512
21513   echo creating $ac_file
21514
21515   rm -f conftest.frag conftest.in conftest.out
21516   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21517   cat $ac_file_inputs > conftest.in
21518
21519 EOF
21520
21521 # Transform confdefs.h into a sed script conftest.vals that substitutes
21522 # the proper values into config.h.in to produce config.h.  And first:
21523 # Protect against being on the right side of a sed subst in config.status.
21524 # Protect against being in an unquoted here document in config.status.
21525 rm -f conftest.vals
21526 cat > conftest.hdr <<\EOF
21527 s/[\\&%]/\\&/g
21528 s%[\\$`]%\\&%g
21529 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21530 s%ac_d%ac_u%gp
21531 s%ac_u%ac_e%gp
21532 EOF
21533 sed -n -f conftest.hdr confdefs.h > conftest.vals
21534 rm -f conftest.hdr
21535
21536 # This sed command replaces #undef with comments.  This is necessary, for
21537 # example, in the case of _POSIX_SOURCE, which is predefined and required
21538 # on some systems where configure will not decide to define it.
21539 cat >> conftest.vals <<\EOF
21540 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21541 EOF
21542
21543 # Break up conftest.vals because some shells have a limit on
21544 # the size of here documents, and old seds have small limits too.
21545
21546 rm -f conftest.tail
21547 while :
21548 do
21549   ac_lines=`grep -c . conftest.vals`
21550   # grep -c gives empty output for an empty file on some AIX systems.
21551   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21552   # Write a limited-size here document to conftest.frag.
21553   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21554   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21555   echo 'CEOF
21556   sed -f conftest.frag conftest.in > conftest.out
21557   rm -f conftest.in
21558   mv conftest.out conftest.in
21559 ' >> $CONFIG_STATUS
21560   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21561   rm -f conftest.vals
21562   mv conftest.tail conftest.vals
21563 done
21564 rm -f conftest.vals
21565
21566 cat >> $CONFIG_STATUS <<\EOF
21567   rm -f conftest.frag conftest.h
21568   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21569   cat conftest.in >> conftest.h
21570   rm -f conftest.in
21571   if cmp -s $ac_file conftest.h 2>/dev/null; then
21572     echo "$ac_file is unchanged"
21573     rm -f conftest.h
21574   else
21575     # Remove last slash and all that follows it.  Not all systems have dirname.
21576       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21577       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21578       # The file is in a subdirectory.
21579       test ! -d "$ac_dir" && mkdir "$ac_dir"
21580     fi
21581     rm -f $ac_file
21582     mv conftest.h $ac_file
21583   fi
21584 fi; done
21585
21586 EOF
21587 cat >> $CONFIG_STATUS <<EOF
21588
21589             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21590             LN_S="${LN_S}"
21591           
21592          
21593 EOF
21594 cat >> $CONFIG_STATUS <<\EOF
21595
21596                                                                                                 if test ! -h wx-config; then
21597                 chmod +x wx-config
21598                 mv wx-config wx${TOOLCHAIN_NAME}-config
21599                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21600             fi
21601
21602             if test ! -d lib; then
21603               mkdir lib
21604             fi
21605             if test ! -d lib/wx; then
21606               mkdir lib/wx
21607             fi
21608             if test ! -d lib/wx/include; then
21609               mkdir lib/wx/include
21610             fi
21611             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21612               mkdir lib/wx/include/${TOOLCHAIN_NAME}
21613             fi
21614             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21615               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21616             fi
21617             if test -f setup.h; then
21618               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21619             fi
21620           
21621 exit 0
21622 EOF
21623 chmod +x $CONFIG_STATUS
21624 rm -fr confdefs* $ac_clean_files
21625 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21626
21627 if test "$no_recursion" != yes; then
21628
21629   # Remove --cache-file and --srcdir arguments so they do not pile up.
21630   ac_sub_configure_args=
21631   ac_prev=
21632   for ac_arg in $ac_configure_args; do
21633     if test -n "$ac_prev"; then
21634       ac_prev=
21635       continue
21636     fi
21637     case "$ac_arg" in
21638     -cache-file | --cache-file | --cache-fil | --cache-fi \
21639     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21640       ac_prev=cache_file ;;
21641     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21642     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21643       ;;
21644     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21645       ac_prev=srcdir ;;
21646     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21647       ;;
21648     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21649     esac
21650   done
21651
21652   for ac_config_dir in demos samples utils contrib; do
21653
21654     # Do not complain, so a configure script can configure whichever
21655     # parts of a large source tree are present.
21656     if test ! -d $srcdir/$ac_config_dir; then
21657       continue
21658     fi
21659
21660     echo configuring in $ac_config_dir
21661
21662     case "$srcdir" in
21663     .) ;;
21664     *)
21665       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21666       else
21667         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21668       fi
21669       ;;
21670     esac
21671
21672     ac_popdir=`pwd`
21673     cd $ac_config_dir
21674
21675       # A "../" for each directory in /$ac_config_dir.
21676       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21677
21678     case "$srcdir" in
21679     .) # No --srcdir option.  We are building in place.
21680       ac_sub_srcdir=$srcdir ;;
21681     /*) # Absolute path.
21682       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21683     *) # Relative path.
21684       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21685     esac
21686
21687     # Check for guested configure; otherwise get Cygnus style configure.
21688     if test -f $ac_sub_srcdir/configure; then
21689       ac_sub_configure=$ac_sub_srcdir/configure
21690     elif test -f $ac_sub_srcdir/configure.in; then
21691       ac_sub_configure=$ac_configure
21692     else
21693       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21694       ac_sub_configure=
21695     fi
21696
21697     # The recursion is here.
21698     if test -n "$ac_sub_configure"; then
21699
21700       # Make the cache file name correct relative to the subdirectory.
21701       case "$cache_file" in
21702       /*) ac_sub_cache_file=$cache_file ;;
21703       *) # Relative path.
21704         ac_sub_cache_file="$ac_dots$cache_file" ;;
21705       esac
21706   case "$ac_given_INSTALL" in
21707         [/$]*) INSTALL="$ac_given_INSTALL" ;;
21708         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21709         esac
21710
21711       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21712       # The eval makes quoting arguments work.
21713       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21714       then :
21715       else
21716         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21717       fi
21718     fi
21719
21720     cd $ac_popdir
21721   done
21722 fi
21723
21724